@cubejs-client/playground 1.8.17 → 1.8.18

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.
Files changed (51) hide show
  1. package/build/vizard/assets/{cssMode-DtHNIdrr.js → cssMode-hgwruqj4.js} +1 -1
  2. package/{public/vizard/assets/freemarker2-D3hRPg66.js → build/vizard/assets/freemarker2-CtIurkuU.js} +1 -1
  3. package/{public/vizard/assets/handlebars-CmzyTLHM.js → build/vizard/assets/handlebars-sthQLz2Z.js} +1 -1
  4. package/{public/vizard/assets/html-BQlDvTLO.js → build/vizard/assets/html-DM9e-U-z.js} +1 -1
  5. package/build/vizard/assets/{htmlMode-B5vyN_yh.js → htmlMode-HvTeKP_c.js} +1 -1
  6. package/build/vizard/assets/icons-CXitmb5a.js +57 -0
  7. package/build/vizard/assets/index-D8PzmooP.js +7 -0
  8. package/build/vizard/assets/{javascript-Cqq1UmLD.js → javascript-C-rqiNxS.js} +1 -1
  9. package/{public/vizard/assets/jsonMode-CZ-xTnh0.js → build/vizard/assets/jsonMode-BJ3x3raR.js} +1 -1
  10. package/build/vizard/assets/{liquid-BwaniY5x.js → liquid-C7Pz5ZI3.js} +1 -1
  11. package/build/vizard/assets/{mdx-FYEkmf7B.js → mdx-B00F0-De.js} +1 -1
  12. package/build/vizard/assets/{monaco-CYdCgY0W.js → monaco-DziUc9N2.js} +3 -3
  13. package/build/vizard/assets/{python-CjR2h7KU.js → python-CBWCROMG.js} +1 -1
  14. package/build/vizard/assets/{razor-D4Y0dbDk.js → razor-BxsnWZFP.js} +1 -1
  15. package/{public/vizard/assets/tsMode-Cvjisfey.js → build/vizard/assets/tsMode-dvsmiEdm.js} +1 -1
  16. package/build/vizard/assets/{typescript-DwgdF-Pj.js → typescript-Bq9U0L_Y.js} +1 -1
  17. package/build/vizard/assets/uikit-Drm91Xd7.js +446 -0
  18. package/build/vizard/assets/{xml-xRWrYvkC.js → xml-pmw-kWy1.js} +1 -1
  19. package/build/vizard/assets/{yaml-W6T5Qjhq.js → yaml-DUYUU1_r.js} +1 -1
  20. package/build/vizard/download/react-typescript-antd-table.zip +0 -0
  21. package/build/vizard/download/react-typescript-chartjs-area+bar+doughnut+line+pie.zip +0 -0
  22. package/build/vizard/index.html +4 -4
  23. package/package.json +5 -5
  24. package/public/vizard/assets/{cssMode-DtHNIdrr.js → cssMode-hgwruqj4.js} +1 -1
  25. package/{build/vizard/assets/freemarker2-D3hRPg66.js → public/vizard/assets/freemarker2-CtIurkuU.js} +1 -1
  26. package/{build/vizard/assets/handlebars-CmzyTLHM.js → public/vizard/assets/handlebars-sthQLz2Z.js} +1 -1
  27. package/{build/vizard/assets/html-BQlDvTLO.js → public/vizard/assets/html-DM9e-U-z.js} +1 -1
  28. package/public/vizard/assets/{htmlMode-B5vyN_yh.js → htmlMode-HvTeKP_c.js} +1 -1
  29. package/public/vizard/assets/icons-CXitmb5a.js +57 -0
  30. package/public/vizard/assets/index-D8PzmooP.js +7 -0
  31. package/public/vizard/assets/{javascript-Cqq1UmLD.js → javascript-C-rqiNxS.js} +1 -1
  32. package/{build/vizard/assets/jsonMode-CZ-xTnh0.js → public/vizard/assets/jsonMode-BJ3x3raR.js} +1 -1
  33. package/public/vizard/assets/{liquid-BwaniY5x.js → liquid-C7Pz5ZI3.js} +1 -1
  34. package/public/vizard/assets/{mdx-FYEkmf7B.js → mdx-B00F0-De.js} +1 -1
  35. package/public/vizard/assets/{monaco-CYdCgY0W.js → monaco-DziUc9N2.js} +3 -3
  36. package/public/vizard/assets/{python-CjR2h7KU.js → python-CBWCROMG.js} +1 -1
  37. package/public/vizard/assets/{razor-D4Y0dbDk.js → razor-BxsnWZFP.js} +1 -1
  38. package/{build/vizard/assets/tsMode-Cvjisfey.js → public/vizard/assets/tsMode-dvsmiEdm.js} +1 -1
  39. package/public/vizard/assets/{typescript-DwgdF-Pj.js → typescript-Bq9U0L_Y.js} +1 -1
  40. package/public/vizard/assets/uikit-Drm91Xd7.js +446 -0
  41. package/public/vizard/assets/{xml-xRWrYvkC.js → xml-pmw-kWy1.js} +1 -1
  42. package/public/vizard/assets/{yaml-W6T5Qjhq.js → yaml-DUYUU1_r.js} +1 -1
  43. package/public/vizard/download/react-typescript-antd-table.zip +0 -0
  44. package/public/vizard/download/react-typescript-chartjs-area+bar+doughnut+line+pie.zip +0 -0
  45. package/public/vizard/index.html +4 -4
  46. package/build/vizard/assets/icons-CwVYGRlZ.js +0 -57
  47. package/build/vizard/assets/index-8akypj6R.js +0 -7
  48. package/build/vizard/assets/uikit-Bx93IdUi.js +0 -446
  49. package/public/vizard/assets/icons-CwVYGRlZ.js +0 -57
  50. package/public/vizard/assets/index-8akypj6R.js +0 -7
  51. package/public/vizard/assets/uikit-Bx93IdUi.js +0 -446
@@ -0,0 +1,446 @@
1
+ import{a as Hc,g as fs,r as b,S as X0,b as ho,R as ce,t as d2}from"./other-DNLijWhD.js";import{r as jc,R as f2,_ as ps,a as so,b as p2,c as h2}from"./icons-CXitmb5a.js";var bu={exports:{}},qi={};var vh;function v2(){if(vh)return qi;vh=1;var e=Hc(),n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function c(d,v,h){var m,g={},x=null,w=null;h!==void 0&&(x=""+h),v.key!==void 0&&(x=""+v.key),v.ref!==void 0&&(w=v.ref);for(m in v)o.call(v,m)&&!u.hasOwnProperty(m)&&(g[m]=v[m]);if(d&&d.defaultProps)for(m in v=d.defaultProps,v)g[m]===void 0&&(g[m]=v[m]);return{$$typeof:n,type:d,key:x,ref:w,props:g,_owner:s.current}}return qi.Fragment=i,qi.jsx=c,qi.jsxs=c,qi}var mh;function m2(){return mh||(mh=1,bu.exports=v2()),bu.exports}var E=m2(),Rl={},wu={exports:{}},ct={},Su={exports:{}},Eu={};var gh;function g2(){return gh||(gh=1,(function(e){function n(X,ee){var z=X.length;X.push(ee);e:for(;0<z;){var de=z-1>>>1,fe=X[de];if(0<s(fe,ee))X[de]=ee,X[z]=fe,z=de;else break e}}function i(X){return X.length===0?null:X[0]}function o(X){if(X.length===0)return null;var ee=X[0],z=X.pop();if(z!==ee){X[0]=z;e:for(var de=0,fe=X.length,Ot=fe>>>1;de<Ot;){var pt=2*(de+1)-1,An=X[pt],ht=pt+1,dn=X[ht];if(0>s(An,z))ht<fe&&0>s(dn,An)?(X[de]=dn,X[ht]=z,de=ht):(X[de]=An,X[pt]=z,de=pt);else if(ht<fe&&0>s(dn,z))X[de]=dn,X[ht]=z,de=ht;else break e}}return ee}function s(X,ee){var z=X.sortIndex-ee.sortIndex;return z!==0?z:X.id-ee.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var v=[],h=[],m=1,g=null,x=3,w=!1,$=!1,S=!1,k=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function R(X){for(var ee=i(h);ee!==null;){if(ee.callback===null)o(h);else if(ee.startTime<=X)o(h),ee.sortIndex=ee.expirationTime,n(v,ee);else break;ee=i(h)}}function B(X){if(S=!1,R(X),!$)if(i(v)!==null)$=!0,xe(_);else{var ee=i(h);ee!==null&&Y(B,ee.startTime-X)}}function _(X,ee){$=!1,S&&(S=!1,A(C),C=-1),w=!0;var z=x;try{for(R(ee),g=i(v);g!==null&&(!(g.expirationTime>ee)||X&&!H());){var de=g.callback;if(typeof de=="function"){g.callback=null,x=g.priorityLevel;var fe=de(g.expirationTime<=ee);ee=e.unstable_now(),typeof fe=="function"?g.callback=fe:g===i(v)&&o(v),R(ee)}else o(v);g=i(v)}if(g!==null)var Ot=!0;else{var pt=i(h);pt!==null&&Y(B,pt.startTime-ee),Ot=!1}return Ot}finally{g=null,x=z,w=!1}}var V=!1,W=null,C=-1,U=5,O=-1;function H(){return!(e.unstable_now()-O<U)}function ne(){if(W!==null){var X=e.unstable_now();O=X;var ee=!0;try{ee=W(!0,X)}finally{ee?D():(V=!1,W=null)}}else V=!1}var D;if(typeof I=="function")D=function(){I(ne)};else if(typeof MessageChannel<"u"){var j=new MessageChannel,ue=j.port2;j.port1.onmessage=ne,D=function(){ue.postMessage(null)}}else D=function(){k(ne,0)};function xe(X){W=X,V||(V=!0,D())}function Y(X,ee){C=k(function(){X(e.unstable_now())},ee)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(X){X.callback=null},e.unstable_continueExecution=function(){$||w||($=!0,xe(_))},e.unstable_forceFrameRate=function(X){0>X||125<X?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<X?Math.floor(1e3/X):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_getFirstCallbackNode=function(){return i(v)},e.unstable_next=function(X){switch(x){case 1:case 2:case 3:var ee=3;break;default:ee=x}var z=x;x=ee;try{return X()}finally{x=z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(X,ee){switch(X){case 1:case 2:case 3:case 4:case 5:break;default:X=3}var z=x;x=X;try{return ee()}finally{x=z}},e.unstable_scheduleCallback=function(X,ee,z){var de=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?de+z:de):z=de,X){case 1:var fe=-1;break;case 2:fe=250;break;case 5:fe=1073741823;break;case 4:fe=1e4;break;default:fe=5e3}return fe=z+fe,X={id:m++,callback:ee,priorityLevel:X,startTime:z,expirationTime:fe,sortIndex:-1},z>de?(X.sortIndex=z,n(h,X),i(v)===null&&X===i(h)&&(S?(A(C),C=-1):S=!0,Y(B,z-de))):(X.sortIndex=fe,n(v,X),$||w||($=!0,xe(_))),X},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(X){var ee=x;return function(){var z=x;x=ee;try{return X.apply(this,arguments)}finally{x=z}}}})(Eu)),Eu}var yh;function y2(){return yh||(yh=1,Su.exports=g2()),Su.exports}var xh;function x2(){if(xh)return ct;xh=1;var e=Hc(),n=y2();function i(t){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+t,l=1;l<arguments.length;l++)r+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+t+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,s={};function u(t,r){c(t,r),c(t+"Capture",r)}function c(t,r){for(s[t]=r,t=0;t<r.length;t++)o.add(r[t])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),v=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,m={},g={};function x(t){return v.call(g,t)?!0:v.call(m,t)?!1:h.test(t)?g[t]=!0:(m[t]=!0,!1)}function w(t,r,l,a){if(l!==null&&l.type===0)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":return a?!1:l!==null?!l.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function $(t,r,l,a){if(r===null||typeof r>"u"||w(t,r,l,a))return!0;if(a)return!1;if(l!==null)switch(l.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function S(t,r,l,a,f,p,y){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=a,this.attributeNamespace=f,this.mustUseProperty=l,this.propertyName=t,this.type=r,this.sanitizeURL=p,this.removeEmptyString=y}var k={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){k[t]=new S(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var r=t[0];k[r]=new S(r,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){k[t]=new S(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){k[t]=new S(t,2,!1,t,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){k[t]=new S(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){k[t]=new S(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){k[t]=new S(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){k[t]=new S(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){k[t]=new S(t,5,!1,t.toLowerCase(),null,!1,!1)});var A=/[\-:]([a-z])/g;function I(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var r=t.replace(A,I);k[r]=new S(r,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var r=t.replace(A,I);k[r]=new S(r,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var r=t.replace(A,I);k[r]=new S(r,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){k[t]=new S(t,1,!1,t.toLowerCase(),null,!1,!1)}),k.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){k[t]=new S(t,1,!1,t.toLowerCase(),null,!0,!0)});function R(t,r,l,a){var f=k.hasOwnProperty(r)?k[r]:null;(f!==null?f.type!==0:a||!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&($(r,l,f,a)&&(l=null),a||f===null?x(r)&&(l===null?t.removeAttribute(r):t.setAttribute(r,""+l)):f.mustUseProperty?t[f.propertyName]=l===null?f.type===3?!1:"":l:(r=f.attributeName,a=f.attributeNamespace,l===null?t.removeAttribute(r):(f=f.type,l=f===3||f===4&&l===!0?"":""+l,a?t.setAttributeNS(a,r,l):t.setAttribute(r,l))))}var B=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=Symbol.for("react.element"),V=Symbol.for("react.portal"),W=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),H=Symbol.for("react.context"),ne=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),ue=Symbol.for("react.memo"),xe=Symbol.for("react.lazy"),Y=Symbol.for("react.offscreen"),X=Symbol.iterator;function ee(t){return t===null||typeof t!="object"?null:(t=X&&t[X]||t["@@iterator"],typeof t=="function"?t:null)}var z=Object.assign,de;function fe(t){if(de===void 0)try{throw Error()}catch(l){var r=l.stack.trim().match(/\n( *(at )?)/);de=r&&r[1]||""}return`
2
+ `+de+t}var Ot=!1;function pt(t,r){if(!t||Ot)return"";Ot=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(r)if(r=function(){throw Error()},Object.defineProperty(r.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(r,[])}catch(N){var a=N}Reflect.construct(t,[],r)}else{try{r.call()}catch(N){a=N}t.call(r.prototype)}else{try{throw Error()}catch(N){a=N}t()}}catch(N){if(N&&a&&typeof N.stack=="string"){for(var f=N.stack.split(`
3
+ `),p=a.stack.split(`
4
+ `),y=f.length-1,P=p.length-1;1<=y&&0<=P&&f[y]!==p[P];)P--;for(;1<=y&&0<=P;y--,P--)if(f[y]!==p[P]){if(y!==1||P!==1)do if(y--,P--,0>P||f[y]!==p[P]){var T=`
5
+ `+f[y].replace(" at new "," at ");return t.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",t.displayName)),T}while(1<=y&&0<=P);break}}}finally{Ot=!1,Error.prepareStackTrace=l}return(t=t?t.displayName||t.name:"")?fe(t):""}function An(t){switch(t.tag){case 5:return fe(t.type);case 16:return fe("Lazy");case 13:return fe("Suspense");case 19:return fe("SuspenseList");case 0:case 2:case 15:return t=pt(t.type,!1),t;case 11:return t=pt(t.type.render,!1),t;case 1:return t=pt(t.type,!0),t;default:return""}}function ht(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case W:return"Fragment";case V:return"Portal";case U:return"Profiler";case C:return"StrictMode";case D:return"Suspense";case j:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case H:return(t.displayName||"Context")+".Consumer";case O:return(t._context.displayName||"Context")+".Provider";case ne:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case ue:return r=t.displayName||null,r!==null?r:ht(t.type)||"Memo";case xe:r=t._payload,t=t._init;try{return ht(t(r))}catch{}}return null}function dn(t){var r=t.type;switch(t.tag){case 24:return"Cache";case 9:return(r.displayName||"Context")+".Consumer";case 10:return(r._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=r.render,t=t.displayName||t.name||"",r.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return r;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ht(r);case 8:return r===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r}return null}function Bt(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function wo(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function Is(t){var r=wo(t)?"checked":"value",l=Object.getOwnPropertyDescriptor(t.constructor.prototype,r),a=""+t[r];if(!t.hasOwnProperty(r)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var f=l.get,p=l.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return f.call(this)},set:function(y){a=""+y,p.call(this,y)}}),Object.defineProperty(t,r,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(y){a=""+y},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function vr(t){t._valueTracker||(t._valueTracker=Is(t))}function ui(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var l=r.getValue(),a="";return t&&(a=wo(t)?t.checked?"true":"false":t.value),t=a,t!==l?(r.setValue(t),!0):!1}function mr(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function ci(t,r){var l=r.checked;return z({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??t._wrapperState.initialChecked})}function So(t,r){var l=r.defaultValue==null?"":r.defaultValue,a=r.checked!=null?r.checked:r.defaultChecked;l=Bt(r.value!=null?r.value:l),t._wrapperState={initialChecked:a,initialValue:l,controlled:r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null}}function bt(t,r){r=r.checked,r!=null&&R(t,"checked",r,!1)}function Ht(t,r){bt(t,r);var l=Bt(r.value),a=r.type;if(l!=null)a==="number"?(l===0&&t.value===""||t.value!=l)&&(t.value=""+l):t.value!==""+l&&(t.value=""+l);else if(a==="submit"||a==="reset"){t.removeAttribute("value");return}r.hasOwnProperty("value")?kt(t,r.type,l):r.hasOwnProperty("defaultValue")&&kt(t,r.type,Bt(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(t.defaultChecked=!!r.defaultChecked)}function qt(t,r,l){if(r.hasOwnProperty("value")||r.hasOwnProperty("defaultValue")){var a=r.type;if(!(a!=="submit"&&a!=="reset"||r.value!==void 0&&r.value!==null))return;r=""+t._wrapperState.initialValue,l||r===t.value||(t.value=r),t.defaultValue=r}l=t.name,l!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,l!==""&&(t.name=l)}function kt(t,r,l){(r!=="number"||mr(t.ownerDocument)!==t)&&(l==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+l&&(t.defaultValue=""+l))}var fn=Array.isArray;function gr(t,r,l,a){if(t=t.options,r){r={};for(var f=0;f<l.length;f++)r["$"+l[f]]=!0;for(l=0;l<t.length;l++)f=r.hasOwnProperty("$"+t[l].value),t[l].selected!==f&&(t[l].selected=f),f&&a&&(t[l].defaultSelected=!0)}else{for(l=""+Bt(l),r=null,f=0;f<t.length;f++){if(t[f].value===l){t[f].selected=!0,a&&(t[f].defaultSelected=!0);return}r!==null||t[f].disabled||(r=t[f])}r!==null&&(r.selected=!0)}}function Ls(t,r){if(r.dangerouslySetInnerHTML!=null)throw Error(i(91));return z({},r,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Ed(t,r){var l=r.value;if(l==null){if(l=r.children,r=r.defaultValue,l!=null){if(r!=null)throw Error(i(92));if(fn(l)){if(1<l.length)throw Error(i(93));l=l[0]}r=l}r==null&&(r=""),l=r}t._wrapperState={initialValue:Bt(l)}}function $d(t,r){var l=Bt(r.value),a=Bt(r.defaultValue);l!=null&&(l=""+l,l!==t.value&&(t.value=l),r.defaultValue==null&&t.defaultValue!==l&&(t.defaultValue=l)),a!=null&&(t.defaultValue=""+a)}function Pd(t){var r=t.textContent;r===t._wrapperState.initialValue&&r!==""&&r!==null&&(t.value=r)}function Cd(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Rs(t,r){return t==null||t==="http://www.w3.org/1999/xhtml"?Cd(r):t==="http://www.w3.org/2000/svg"&&r==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var Eo,Td=(function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(r,l,a,f){MSApp.execUnsafeLocalFunction(function(){return t(r,l,a,f)})}:t})(function(t,r){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=r;else{for(Eo=Eo||document.createElement("div"),Eo.innerHTML="<svg>"+r.valueOf().toString()+"</svg>",r=Eo.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;r.firstChild;)t.appendChild(r.firstChild)}});function di(t,r){if(r){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=r;return}}t.textContent=r}var fi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},v1=["Webkit","ms","Moz","O"];Object.keys(fi).forEach(function(t){v1.forEach(function(r){r=r+t.charAt(0).toUpperCase()+t.substring(1),fi[r]=fi[t]})});function kd(t,r,l){return r==null||typeof r=="boolean"||r===""?"":l||typeof r!="number"||r===0||fi.hasOwnProperty(t)&&fi[t]?(""+r).trim():r+"px"}function Id(t,r){t=t.style;for(var l in r)if(r.hasOwnProperty(l)){var a=l.indexOf("--")===0,f=kd(l,r[l],a);l==="float"&&(l="cssFloat"),a?t.setProperty(l,f):t[l]=f}}var m1=z({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _s(t,r){if(r){if(m1[t]&&(r.children!=null||r.dangerouslySetInnerHTML!=null))throw Error(i(137,t));if(r.dangerouslySetInnerHTML!=null){if(r.children!=null)throw Error(i(60));if(typeof r.dangerouslySetInnerHTML!="object"||!("__html"in r.dangerouslySetInnerHTML))throw Error(i(61))}if(r.style!=null&&typeof r.style!="object")throw Error(i(62))}}function Ms(t,r){if(t.indexOf("-")===-1)return typeof r.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Fs=null;function As(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ns=null,yr=null,xr=null;function Ld(t){if(t=Fi(t)){if(typeof Ns!="function")throw Error(i(280));var r=t.stateNode;r&&(r=Wo(r),Ns(t.stateNode,t.type,r))}}function Rd(t){yr?xr?xr.push(t):xr=[t]:yr=t}function _d(){if(yr){var t=yr,r=xr;if(xr=yr=null,Ld(t),r)for(t=0;t<r.length;t++)Ld(r[t])}}function Md(t,r){return t(r)}function Fd(){}var Ds=!1;function Ad(t,r,l){if(Ds)return t(r,l);Ds=!0;try{return Md(t,r,l)}finally{Ds=!1,(yr!==null||xr!==null)&&(Fd(),_d())}}function pi(t,r){var l=t.stateNode;if(l===null)return null;var a=Wo(l);if(a===null)return null;l=a[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break e;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(i(231,r,typeof l));return l}var Os=!1;if(d)try{var hi={};Object.defineProperty(hi,"passive",{get:function(){Os=!0}}),window.addEventListener("test",hi,hi),window.removeEventListener("test",hi,hi)}catch{Os=!1}function g1(t,r,l,a,f,p,y,P,T){var N=Array.prototype.slice.call(arguments,3);try{r.apply(l,N)}catch(G){this.onError(G)}}var vi=!1,$o=null,Po=!1,Bs=null,y1={onError:function(t){vi=!0,$o=t}};function x1(t,r,l,a,f,p,y,P,T){vi=!1,$o=null,g1.apply(y1,arguments)}function b1(t,r,l,a,f,p,y,P,T){if(x1.apply(this,arguments),vi){if(vi){var N=$o;vi=!1,$o=null}else throw Error(i(198));Po||(Po=!0,Bs=N)}}function Nn(t){var r=t,l=t;if(t.alternate)for(;r.return;)r=r.return;else{t=r;do r=t,(r.flags&4098)!==0&&(l=r.return),t=r.return;while(t)}return r.tag===3?l:null}function Nd(t){if(t.tag===13){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function Dd(t){if(Nn(t)!==t)throw Error(i(188))}function w1(t){var r=t.alternate;if(!r){if(r=Nn(t),r===null)throw Error(i(188));return r!==t?null:t}for(var l=t,a=r;;){var f=l.return;if(f===null)break;var p=f.alternate;if(p===null){if(a=f.return,a!==null){l=a;continue}break}if(f.child===p.child){for(p=f.child;p;){if(p===l)return Dd(f),t;if(p===a)return Dd(f),r;p=p.sibling}throw Error(i(188))}if(l.return!==a.return)l=f,a=p;else{for(var y=!1,P=f.child;P;){if(P===l){y=!0,l=f,a=p;break}if(P===a){y=!0,a=f,l=p;break}P=P.sibling}if(!y){for(P=p.child;P;){if(P===l){y=!0,l=p,a=f;break}if(P===a){y=!0,a=p,l=f;break}P=P.sibling}if(!y)throw Error(i(189))}}if(l.alternate!==a)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?t:r}function Od(t){return t=w1(t),t!==null?Bd(t):null}function Bd(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var r=Bd(t);if(r!==null)return r;t=t.sibling}return null}var Hd=n.unstable_scheduleCallback,jd=n.unstable_cancelCallback,S1=n.unstable_shouldYield,E1=n.unstable_requestPaint,Ae=n.unstable_now,$1=n.unstable_getCurrentPriorityLevel,Hs=n.unstable_ImmediatePriority,Vd=n.unstable_UserBlockingPriority,Co=n.unstable_NormalPriority,P1=n.unstable_LowPriority,zd=n.unstable_IdlePriority,To=null,jt=null;function C1(t){if(jt&&typeof jt.onCommitFiberRoot=="function")try{jt.onCommitFiberRoot(To,t,void 0,(t.current.flags&128)===128)}catch{}}var It=Math.clz32?Math.clz32:I1,T1=Math.log,k1=Math.LN2;function I1(t){return t>>>=0,t===0?32:31-(T1(t)/k1|0)|0}var ko=64,Io=4194304;function mi(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Lo(t,r){var l=t.pendingLanes;if(l===0)return 0;var a=0,f=t.suspendedLanes,p=t.pingedLanes,y=l&268435455;if(y!==0){var P=y&~f;P!==0?a=mi(P):(p&=y,p!==0&&(a=mi(p)))}else y=l&~f,y!==0?a=mi(y):p!==0&&(a=mi(p));if(a===0)return 0;if(r!==0&&r!==a&&(r&f)===0&&(f=a&-a,p=r&-r,f>=p||f===16&&(p&4194240)!==0))return r;if((a&4)!==0&&(a|=l&16),r=t.entangledLanes,r!==0)for(t=t.entanglements,r&=a;0<r;)l=31-It(r),f=1<<l,a|=t[l],r&=~f;return a}function L1(t,r){switch(t){case 1:case 2:case 4:return r+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function R1(t,r){for(var l=t.suspendedLanes,a=t.pingedLanes,f=t.expirationTimes,p=t.pendingLanes;0<p;){var y=31-It(p),P=1<<y,T=f[y];T===-1?((P&l)===0||(P&a)!==0)&&(f[y]=L1(P,r)):T<=r&&(t.expiredLanes|=P),p&=~P}}function js(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function Ud(){var t=ko;return ko<<=1,(ko&4194240)===0&&(ko=64),t}function Vs(t){for(var r=[],l=0;31>l;l++)r.push(t);return r}function gi(t,r,l){t.pendingLanes|=r,r!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,r=31-It(r),t[r]=l}function _1(t,r){var l=t.pendingLanes&~r;t.pendingLanes=r,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=r,t.mutableReadLanes&=r,t.entangledLanes&=r,r=t.entanglements;var a=t.eventTimes;for(t=t.expirationTimes;0<l;){var f=31-It(l),p=1<<f;r[f]=0,a[f]=-1,t[f]=-1,l&=~p}}function zs(t,r){var l=t.entangledLanes|=r;for(t=t.entanglements;l;){var a=31-It(l),f=1<<a;f&r|t[a]&r&&(t[a]|=r),l&=~f}}var we=0;function Kd(t){return t&=-t,1<t?4<t?(t&268435455)!==0?16:536870912:4:1}var Wd,Us,Gd,Zd,qd,Ks=!1,Ro=[],pn=null,hn=null,vn=null,yi=new Map,xi=new Map,mn=[],M1="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Xd(t,r){switch(t){case"focusin":case"focusout":pn=null;break;case"dragenter":case"dragleave":hn=null;break;case"mouseover":case"mouseout":vn=null;break;case"pointerover":case"pointerout":yi.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":xi.delete(r.pointerId)}}function bi(t,r,l,a,f,p){return t===null||t.nativeEvent!==p?(t={blockedOn:r,domEventName:l,eventSystemFlags:a,nativeEvent:p,targetContainers:[f]},r!==null&&(r=Fi(r),r!==null&&Us(r)),t):(t.eventSystemFlags|=a,r=t.targetContainers,f!==null&&r.indexOf(f)===-1&&r.push(f),t)}function F1(t,r,l,a,f){switch(r){case"focusin":return pn=bi(pn,t,r,l,a,f),!0;case"dragenter":return hn=bi(hn,t,r,l,a,f),!0;case"mouseover":return vn=bi(vn,t,r,l,a,f),!0;case"pointerover":var p=f.pointerId;return yi.set(p,bi(yi.get(p)||null,t,r,l,a,f)),!0;case"gotpointercapture":return p=f.pointerId,xi.set(p,bi(xi.get(p)||null,t,r,l,a,f)),!0}return!1}function Yd(t){var r=Dn(t.target);if(r!==null){var l=Nn(r);if(l!==null){if(r=l.tag,r===13){if(r=Nd(l),r!==null){t.blockedOn=r,qd(t.priority,function(){Gd(l)});return}}else if(r===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function _o(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var l=Gs(t.domEventName,t.eventSystemFlags,r[0],t.nativeEvent);if(l===null){l=t.nativeEvent;var a=new l.constructor(l.type,l);Fs=a,l.target.dispatchEvent(a),Fs=null}else return r=Fi(l),r!==null&&Us(r),t.blockedOn=l,!1;r.shift()}return!0}function Qd(t,r,l){_o(t)&&l.delete(r)}function A1(){Ks=!1,pn!==null&&_o(pn)&&(pn=null),hn!==null&&_o(hn)&&(hn=null),vn!==null&&_o(vn)&&(vn=null),yi.forEach(Qd),xi.forEach(Qd)}function wi(t,r){t.blockedOn===r&&(t.blockedOn=null,Ks||(Ks=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,A1)))}function Si(t){function r(f){return wi(f,t)}if(0<Ro.length){wi(Ro[0],t);for(var l=1;l<Ro.length;l++){var a=Ro[l];a.blockedOn===t&&(a.blockedOn=null)}}for(pn!==null&&wi(pn,t),hn!==null&&wi(hn,t),vn!==null&&wi(vn,t),yi.forEach(r),xi.forEach(r),l=0;l<mn.length;l++)a=mn[l],a.blockedOn===t&&(a.blockedOn=null);for(;0<mn.length&&(l=mn[0],l.blockedOn===null);)Yd(l),l.blockedOn===null&&mn.shift()}var br=B.ReactCurrentBatchConfig,Mo=!0;function N1(t,r,l,a){var f=we,p=br.transition;br.transition=null;try{we=1,Ws(t,r,l,a)}finally{we=f,br.transition=p}}function D1(t,r,l,a){var f=we,p=br.transition;br.transition=null;try{we=4,Ws(t,r,l,a)}finally{we=f,br.transition=p}}function Ws(t,r,l,a){if(Mo){var f=Gs(t,r,l,a);if(f===null)ca(t,r,a,Fo,l),Xd(t,a);else if(F1(f,t,r,l,a))a.stopPropagation();else if(Xd(t,a),r&4&&-1<M1.indexOf(t)){for(;f!==null;){var p=Fi(f);if(p!==null&&Wd(p),p=Gs(t,r,l,a),p===null&&ca(t,r,a,Fo,l),p===f)break;f=p}f!==null&&a.stopPropagation()}else ca(t,r,a,null,l)}}var Fo=null;function Gs(t,r,l,a){if(Fo=null,t=As(a),t=Dn(t),t!==null)if(r=Nn(t),r===null)t=null;else if(l=r.tag,l===13){if(t=Nd(r),t!==null)return t;t=null}else if(l===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;t=null}else r!==t&&(t=null);return Fo=t,null}function Jd(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch($1()){case Hs:return 1;case Vd:return 4;case Co:case P1:return 16;case zd:return 536870912;default:return 16}default:return 16}}var gn=null,Zs=null,Ao=null;function ef(){if(Ao)return Ao;var t,r=Zs,l=r.length,a,f="value"in gn?gn.value:gn.textContent,p=f.length;for(t=0;t<l&&r[t]===f[t];t++);var y=l-t;for(a=1;a<=y&&r[l-a]===f[p-a];a++);return Ao=f.slice(t,1<a?1-a:void 0)}function No(t){var r=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&r===13&&(t=13)):t=r,t===10&&(t=13),32<=t||t===13?t:0}function Do(){return!0}function tf(){return!1}function vt(t){function r(l,a,f,p,y){this._reactName=l,this._targetInst=f,this.type=a,this.nativeEvent=p,this.target=y,this.currentTarget=null;for(var P in t)t.hasOwnProperty(P)&&(l=t[P],this[P]=l?l(p):p[P]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?Do:tf,this.isPropagationStopped=tf,this}return z(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Do)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Do)},persist:function(){},isPersistent:Do}),r}var wr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qs=vt(wr),Ei=z({},wr,{view:0,detail:0}),O1=vt(Ei),Xs,Ys,$i,Oo=z({},Ei,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Js,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==$i&&($i&&t.type==="mousemove"?(Xs=t.screenX-$i.screenX,Ys=t.screenY-$i.screenY):Ys=Xs=0,$i=t),Xs)},movementY:function(t){return"movementY"in t?t.movementY:Ys}}),nf=vt(Oo),B1=z({},Oo,{dataTransfer:0}),H1=vt(B1),j1=z({},Ei,{relatedTarget:0}),Qs=vt(j1),V1=z({},wr,{animationName:0,elapsedTime:0,pseudoElement:0}),z1=vt(V1),U1=z({},wr,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),K1=vt(U1),W1=z({},wr,{data:0}),rf=vt(W1),G1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Z1={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},q1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function X1(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=q1[t])?!!r[t]:!1}function Js(){return X1}var Y1=z({},Ei,{key:function(t){if(t.key){var r=G1[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=No(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Z1[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Js,charCode:function(t){return t.type==="keypress"?No(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?No(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Q1=vt(Y1),J1=z({},Oo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),of=vt(J1),ey=z({},Ei,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Js}),ty=vt(ey),ny=z({},wr,{propertyName:0,elapsedTime:0,pseudoElement:0}),ry=vt(ny),iy=z({},Oo,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),oy=vt(iy),ly=[9,13,27,32],ea=d&&"CompositionEvent"in window,Pi=null;d&&"documentMode"in document&&(Pi=document.documentMode);var sy=d&&"TextEvent"in window&&!Pi,lf=d&&(!ea||Pi&&8<Pi&&11>=Pi),sf=" ",af=!1;function uf(t,r){switch(t){case"keyup":return ly.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cf(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Sr=!1;function ay(t,r){switch(t){case"compositionend":return cf(r);case"keypress":return r.which!==32?null:(af=!0,sf);case"textInput":return t=r.data,t===sf&&af?null:t;default:return null}}function uy(t,r){if(Sr)return t==="compositionend"||!ea&&uf(t,r)?(t=ef(),Ao=Zs=gn=null,Sr=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return lf&&r.locale!=="ko"?null:r.data;default:return null}}var cy={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function df(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!cy[t.type]:r==="textarea"}function ff(t,r,l,a){Rd(a),r=zo(r,"onChange"),0<r.length&&(l=new qs("onChange","change",null,l,a),t.push({event:l,listeners:r}))}var Ci=null,Ti=null;function dy(t){Lf(t,0)}function Bo(t){var r=Tr(t);if(ui(r))return t}function fy(t,r){if(t==="change")return r}var pf=!1;if(d){var ta;if(d){var na="oninput"in document;if(!na){var hf=document.createElement("div");hf.setAttribute("oninput","return;"),na=typeof hf.oninput=="function"}ta=na}else ta=!1;pf=ta&&(!document.documentMode||9<document.documentMode)}function vf(){Ci&&(Ci.detachEvent("onpropertychange",mf),Ti=Ci=null)}function mf(t){if(t.propertyName==="value"&&Bo(Ti)){var r=[];ff(r,Ti,t,As(t)),Ad(dy,r)}}function py(t,r,l){t==="focusin"?(vf(),Ci=r,Ti=l,Ci.attachEvent("onpropertychange",mf)):t==="focusout"&&vf()}function hy(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Bo(Ti)}function vy(t,r){if(t==="click")return Bo(r)}function my(t,r){if(t==="input"||t==="change")return Bo(r)}function gy(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var Lt=typeof Object.is=="function"?Object.is:gy;function ki(t,r){if(Lt(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;var l=Object.keys(t),a=Object.keys(r);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var f=l[a];if(!v.call(r,f)||!Lt(t[f],r[f]))return!1}return!0}function gf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function yf(t,r){var l=gf(t);t=0;for(var a;l;){if(l.nodeType===3){if(a=t+l.textContent.length,t<=r&&a>=r)return{node:l,offset:r-t};t=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=gf(l)}}function xf(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?xf(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function bf(){for(var t=window,r=mr();r instanceof t.HTMLIFrameElement;){try{var l=typeof r.contentWindow.location.href=="string"}catch{l=!1}if(l)t=r.contentWindow;else break;r=mr(t.document)}return r}function ra(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}function yy(t){var r=bf(),l=t.focusedElem,a=t.selectionRange;if(r!==l&&l&&l.ownerDocument&&xf(l.ownerDocument.documentElement,l)){if(a!==null&&ra(l)){if(r=a.start,t=a.end,t===void 0&&(t=r),"selectionStart"in l)l.selectionStart=r,l.selectionEnd=Math.min(t,l.value.length);else if(t=(r=l.ownerDocument||document)&&r.defaultView||window,t.getSelection){t=t.getSelection();var f=l.textContent.length,p=Math.min(a.start,f);a=a.end===void 0?p:Math.min(a.end,f),!t.extend&&p>a&&(f=a,a=p,p=f),f=yf(l,p);var y=yf(l,a);f&&y&&(t.rangeCount!==1||t.anchorNode!==f.node||t.anchorOffset!==f.offset||t.focusNode!==y.node||t.focusOffset!==y.offset)&&(r=r.createRange(),r.setStart(f.node,f.offset),t.removeAllRanges(),p>a?(t.addRange(r),t.extend(y.node,y.offset)):(r.setEnd(y.node,y.offset),t.addRange(r)))}}for(r=[],t=l;t=t.parentNode;)t.nodeType===1&&r.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<r.length;l++)t=r[l],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var xy=d&&"documentMode"in document&&11>=document.documentMode,Er=null,ia=null,Ii=null,oa=!1;function wf(t,r,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;oa||Er==null||Er!==mr(a)||(a=Er,"selectionStart"in a&&ra(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Ii&&ki(Ii,a)||(Ii=a,a=zo(ia,"onSelect"),0<a.length&&(r=new qs("onSelect","select",null,r,l),t.push({event:r,listeners:a}),r.target=Er)))}function Ho(t,r){var l={};return l[t.toLowerCase()]=r.toLowerCase(),l["Webkit"+t]="webkit"+r,l["Moz"+t]="moz"+r,l}var $r={animationend:Ho("Animation","AnimationEnd"),animationiteration:Ho("Animation","AnimationIteration"),animationstart:Ho("Animation","AnimationStart"),transitionend:Ho("Transition","TransitionEnd")},la={},Sf={};d&&(Sf=document.createElement("div").style,"AnimationEvent"in window||(delete $r.animationend.animation,delete $r.animationiteration.animation,delete $r.animationstart.animation),"TransitionEvent"in window||delete $r.transitionend.transition);function jo(t){if(la[t])return la[t];if(!$r[t])return t;var r=$r[t],l;for(l in r)if(r.hasOwnProperty(l)&&l in Sf)return la[t]=r[l];return t}var Ef=jo("animationend"),$f=jo("animationiteration"),Pf=jo("animationstart"),Cf=jo("transitionend"),Tf=new Map,kf="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function yn(t,r){Tf.set(t,r),u(r,[t])}for(var sa=0;sa<kf.length;sa++){var aa=kf[sa],by=aa.toLowerCase(),wy=aa[0].toUpperCase()+aa.slice(1);yn(by,"on"+wy)}yn(Ef,"onAnimationEnd"),yn($f,"onAnimationIteration"),yn(Pf,"onAnimationStart"),yn("dblclick","onDoubleClick"),yn("focusin","onFocus"),yn("focusout","onBlur"),yn(Cf,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Li="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Sy=new Set("cancel close invalid load scroll toggle".split(" ").concat(Li));function If(t,r,l){var a=t.type||"unknown-event";t.currentTarget=l,b1(a,r,void 0,t),t.currentTarget=null}function Lf(t,r){r=(r&4)!==0;for(var l=0;l<t.length;l++){var a=t[l],f=a.event;a=a.listeners;e:{var p=void 0;if(r)for(var y=a.length-1;0<=y;y--){var P=a[y],T=P.instance,N=P.currentTarget;if(P=P.listener,T!==p&&f.isPropagationStopped())break e;If(f,P,N),p=T}else for(y=0;y<a.length;y++){if(P=a[y],T=P.instance,N=P.currentTarget,P=P.listener,T!==p&&f.isPropagationStopped())break e;If(f,P,N),p=T}}}if(Po)throw t=Bs,Po=!1,Bs=null,t}function Ce(t,r){var l=r[ma];l===void 0&&(l=r[ma]=new Set);var a=t+"__bubble";l.has(a)||(Rf(r,t,2,!1),l.add(a))}function ua(t,r,l){var a=0;r&&(a|=4),Rf(l,t,a,r)}var Vo="_reactListening"+Math.random().toString(36).slice(2);function Ri(t){if(!t[Vo]){t[Vo]=!0,o.forEach(function(l){l!=="selectionchange"&&(Sy.has(l)||ua(l,!1,t),ua(l,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[Vo]||(r[Vo]=!0,ua("selectionchange",!1,r))}}function Rf(t,r,l,a){switch(Jd(r)){case 1:var f=N1;break;case 4:f=D1;break;default:f=Ws}l=f.bind(null,r,l,t),f=void 0,!Os||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(f=!0),a?f!==void 0?t.addEventListener(r,l,{capture:!0,passive:f}):t.addEventListener(r,l,!0):f!==void 0?t.addEventListener(r,l,{passive:f}):t.addEventListener(r,l,!1)}function ca(t,r,l,a,f){var p=a;if((r&1)===0&&(r&2)===0&&a!==null)e:for(;;){if(a===null)return;var y=a.tag;if(y===3||y===4){var P=a.stateNode.containerInfo;if(P===f||P.nodeType===8&&P.parentNode===f)break;if(y===4)for(y=a.return;y!==null;){var T=y.tag;if((T===3||T===4)&&(T=y.stateNode.containerInfo,T===f||T.nodeType===8&&T.parentNode===f))return;y=y.return}for(;P!==null;){if(y=Dn(P),y===null)return;if(T=y.tag,T===5||T===6){a=p=y;continue e}P=P.parentNode}}a=a.return}Ad(function(){var N=p,G=As(l),Z=[];e:{var K=Tf.get(t);if(K!==void 0){var Q=qs,te=t;switch(t){case"keypress":if(No(l)===0)break e;case"keydown":case"keyup":Q=Q1;break;case"focusin":te="focus",Q=Qs;break;case"focusout":te="blur",Q=Qs;break;case"beforeblur":case"afterblur":Q=Qs;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Q=nf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Q=H1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Q=ty;break;case Ef:case $f:case Pf:Q=z1;break;case Cf:Q=ry;break;case"scroll":Q=O1;break;case"wheel":Q=oy;break;case"copy":case"cut":case"paste":Q=K1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Q=of}var re=(r&4)!==0,Ne=!re&&t==="scroll",M=re?K!==null?K+"Capture":null:K;re=[];for(var L=N,F;L!==null;){F=L;var q=F.stateNode;if(F.tag===5&&q!==null&&(F=q,M!==null&&(q=pi(L,M),q!=null&&re.push(_i(L,q,F)))),Ne)break;L=L.return}0<re.length&&(K=new Q(K,te,null,l,G),Z.push({event:K,listeners:re}))}}if((r&7)===0){e:{if(K=t==="mouseover"||t==="pointerover",Q=t==="mouseout"||t==="pointerout",K&&l!==Fs&&(te=l.relatedTarget||l.fromElement)&&(Dn(te)||te[Xt]))break e;if((Q||K)&&(K=G.window===G?G:(K=G.ownerDocument)?K.defaultView||K.parentWindow:window,Q?(te=l.relatedTarget||l.toElement,Q=N,te=te?Dn(te):null,te!==null&&(Ne=Nn(te),te!==Ne||te.tag!==5&&te.tag!==6)&&(te=null)):(Q=null,te=N),Q!==te)){if(re=nf,q="onMouseLeave",M="onMouseEnter",L="mouse",(t==="pointerout"||t==="pointerover")&&(re=of,q="onPointerLeave",M="onPointerEnter",L="pointer"),Ne=Q==null?K:Tr(Q),F=te==null?K:Tr(te),K=new re(q,L+"leave",Q,l,G),K.target=Ne,K.relatedTarget=F,q=null,Dn(G)===N&&(re=new re(M,L+"enter",te,l,G),re.target=F,re.relatedTarget=Ne,q=re),Ne=q,Q&&te)t:{for(re=Q,M=te,L=0,F=re;F;F=Pr(F))L++;for(F=0,q=M;q;q=Pr(q))F++;for(;0<L-F;)re=Pr(re),L--;for(;0<F-L;)M=Pr(M),F--;for(;L--;){if(re===M||M!==null&&re===M.alternate)break t;re=Pr(re),M=Pr(M)}re=null}else re=null;Q!==null&&_f(Z,K,Q,re,!1),te!==null&&Ne!==null&&_f(Z,Ne,te,re,!0)}}e:{if(K=N?Tr(N):window,Q=K.nodeName&&K.nodeName.toLowerCase(),Q==="select"||Q==="input"&&K.type==="file")var ie=fy;else if(df(K))if(pf)ie=my;else{ie=hy;var oe=py}else(Q=K.nodeName)&&Q.toLowerCase()==="input"&&(K.type==="checkbox"||K.type==="radio")&&(ie=vy);if(ie&&(ie=ie(t,N))){ff(Z,ie,l,G);break e}oe&&oe(t,K,N),t==="focusout"&&(oe=K._wrapperState)&&oe.controlled&&K.type==="number"&&kt(K,"number",K.value)}switch(oe=N?Tr(N):window,t){case"focusin":(df(oe)||oe.contentEditable==="true")&&(Er=oe,ia=N,Ii=null);break;case"focusout":Ii=ia=Er=null;break;case"mousedown":oa=!0;break;case"contextmenu":case"mouseup":case"dragend":oa=!1,wf(Z,l,G);break;case"selectionchange":if(xy)break;case"keydown":case"keyup":wf(Z,l,G)}var le;if(ea)e:{switch(t){case"compositionstart":var ae="onCompositionStart";break e;case"compositionend":ae="onCompositionEnd";break e;case"compositionupdate":ae="onCompositionUpdate";break e}ae=void 0}else Sr?uf(t,l)&&(ae="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(ae="onCompositionStart");ae&&(lf&&l.locale!=="ko"&&(Sr||ae!=="onCompositionStart"?ae==="onCompositionEnd"&&Sr&&(le=ef()):(gn=G,Zs="value"in gn?gn.value:gn.textContent,Sr=!0)),oe=zo(N,ae),0<oe.length&&(ae=new rf(ae,t,null,l,G),Z.push({event:ae,listeners:oe}),le?ae.data=le:(le=cf(l),le!==null&&(ae.data=le)))),(le=sy?ay(t,l):uy(t,l))&&(N=zo(N,"onBeforeInput"),0<N.length&&(G=new rf("onBeforeInput","beforeinput",null,l,G),Z.push({event:G,listeners:N}),G.data=le))}Lf(Z,r)})}function _i(t,r,l){return{instance:t,listener:r,currentTarget:l}}function zo(t,r){for(var l=r+"Capture",a=[];t!==null;){var f=t,p=f.stateNode;f.tag===5&&p!==null&&(f=p,p=pi(t,l),p!=null&&a.unshift(_i(t,p,f)),p=pi(t,r),p!=null&&a.push(_i(t,p,f))),t=t.return}return a}function Pr(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function _f(t,r,l,a,f){for(var p=r._reactName,y=[];l!==null&&l!==a;){var P=l,T=P.alternate,N=P.stateNode;if(T!==null&&T===a)break;P.tag===5&&N!==null&&(P=N,f?(T=pi(l,p),T!=null&&y.unshift(_i(l,T,P))):f||(T=pi(l,p),T!=null&&y.push(_i(l,T,P)))),l=l.return}y.length!==0&&t.push({event:r,listeners:y})}var Ey=/\r\n?/g,$y=/\u0000|\uFFFD/g;function Mf(t){return(typeof t=="string"?t:""+t).replace(Ey,`
6
+ `).replace($y,"")}function Uo(t,r,l){if(r=Mf(r),Mf(t)!==r&&l)throw Error(i(425))}function Ko(){}var da=null,fa=null;function pa(t,r){return t==="textarea"||t==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var ha=typeof setTimeout=="function"?setTimeout:void 0,Py=typeof clearTimeout=="function"?clearTimeout:void 0,Ff=typeof Promise=="function"?Promise:void 0,Cy=typeof queueMicrotask=="function"?queueMicrotask:typeof Ff<"u"?function(t){return Ff.resolve(null).then(t).catch(Ty)}:ha;function Ty(t){setTimeout(function(){throw t})}function va(t,r){var l=r,a=0;do{var f=l.nextSibling;if(t.removeChild(l),f&&f.nodeType===8)if(l=f.data,l==="/$"){if(a===0){t.removeChild(f),Si(r);return}a--}else l!=="$"&&l!=="$?"&&l!=="$!"||a++;l=f}while(l);Si(r)}function xn(t){for(;t!=null;t=t.nextSibling){var r=t.nodeType;if(r===1||r===3)break;if(r===8){if(r=t.data,r==="$"||r==="$!"||r==="$?")break;if(r==="/$")return null}}return t}function Af(t){t=t.previousSibling;for(var r=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"){if(r===0)return t;r--}else l==="/$"&&r++}t=t.previousSibling}return null}var Cr=Math.random().toString(36).slice(2),Vt="__reactFiber$"+Cr,Mi="__reactProps$"+Cr,Xt="__reactContainer$"+Cr,ma="__reactEvents$"+Cr,ky="__reactListeners$"+Cr,Iy="__reactHandles$"+Cr;function Dn(t){var r=t[Vt];if(r)return r;for(var l=t.parentNode;l;){if(r=l[Xt]||l[Vt]){if(l=r.alternate,r.child!==null||l!==null&&l.child!==null)for(t=Af(t);t!==null;){if(l=t[Vt])return l;t=Af(t)}return r}t=l,l=t.parentNode}return null}function Fi(t){return t=t[Vt]||t[Xt],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Tr(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(i(33))}function Wo(t){return t[Mi]||null}var ga=[],kr=-1;function bn(t){return{current:t}}function Te(t){0>kr||(t.current=ga[kr],ga[kr]=null,kr--)}function $e(t,r){kr++,ga[kr]=t.current,t.current=r}var wn={},Xe=bn(wn),ot=bn(!1),On=wn;function Ir(t,r){var l=t.type.contextTypes;if(!l)return wn;var a=t.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===r)return a.__reactInternalMemoizedMaskedChildContext;var f={},p;for(p in l)f[p]=r[p];return a&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=r,t.__reactInternalMemoizedMaskedChildContext=f),f}function lt(t){return t=t.childContextTypes,t!=null}function Go(){Te(ot),Te(Xe)}function Nf(t,r,l){if(Xe.current!==wn)throw Error(i(168));$e(Xe,r),$e(ot,l)}function Df(t,r,l){var a=t.stateNode;if(r=r.childContextTypes,typeof a.getChildContext!="function")return l;a=a.getChildContext();for(var f in a)if(!(f in r))throw Error(i(108,dn(t)||"Unknown",f));return z({},l,a)}function Zo(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||wn,On=Xe.current,$e(Xe,t),$e(ot,ot.current),!0}function Of(t,r,l){var a=t.stateNode;if(!a)throw Error(i(169));l?(t=Df(t,r,On),a.__reactInternalMemoizedMergedChildContext=t,Te(ot),Te(Xe),$e(Xe,t)):Te(ot),$e(ot,l)}var Yt=null,qo=!1,ya=!1;function Bf(t){Yt===null?Yt=[t]:Yt.push(t)}function Ly(t){qo=!0,Bf(t)}function Sn(){if(!ya&&Yt!==null){ya=!0;var t=0,r=we;try{var l=Yt;for(we=1;t<l.length;t++){var a=l[t];do a=a(!0);while(a!==null)}Yt=null,qo=!1}catch(f){throw Yt!==null&&(Yt=Yt.slice(t+1)),Hd(Hs,Sn),f}finally{we=r,ya=!1}}return null}var Lr=[],Rr=0,Xo=null,Yo=0,wt=[],St=0,Bn=null,Qt=1,Jt="";function Hn(t,r){Lr[Rr++]=Yo,Lr[Rr++]=Xo,Xo=t,Yo=r}function Hf(t,r,l){wt[St++]=Qt,wt[St++]=Jt,wt[St++]=Bn,Bn=t;var a=Qt;t=Jt;var f=32-It(a)-1;a&=~(1<<f),l+=1;var p=32-It(r)+f;if(30<p){var y=f-f%5;p=(a&(1<<y)-1).toString(32),a>>=y,f-=y,Qt=1<<32-It(r)+f|l<<f|a,Jt=p+t}else Qt=1<<p|l<<f|a,Jt=t}function xa(t){t.return!==null&&(Hn(t,1),Hf(t,1,0))}function ba(t){for(;t===Xo;)Xo=Lr[--Rr],Lr[Rr]=null,Yo=Lr[--Rr],Lr[Rr]=null;for(;t===Bn;)Bn=wt[--St],wt[St]=null,Jt=wt[--St],wt[St]=null,Qt=wt[--St],wt[St]=null}var mt=null,gt=null,ke=!1,Rt=null;function jf(t,r){var l=Ct(5,null,null,0);l.elementType="DELETED",l.stateNode=r,l.return=t,r=t.deletions,r===null?(t.deletions=[l],t.flags|=16):r.push(l)}function Vf(t,r){switch(t.tag){case 5:var l=t.type;return r=r.nodeType!==1||l.toLowerCase()!==r.nodeName.toLowerCase()?null:r,r!==null?(t.stateNode=r,mt=t,gt=xn(r.firstChild),!0):!1;case 6:return r=t.pendingProps===""||r.nodeType!==3?null:r,r!==null?(t.stateNode=r,mt=t,gt=null,!0):!1;case 13:return r=r.nodeType!==8?null:r,r!==null?(l=Bn!==null?{id:Qt,overflow:Jt}:null,t.memoizedState={dehydrated:r,treeContext:l,retryLane:1073741824},l=Ct(18,null,null,0),l.stateNode=r,l.return=t,t.child=l,mt=t,gt=null,!0):!1;default:return!1}}function wa(t){return(t.mode&1)!==0&&(t.flags&128)===0}function Sa(t){if(ke){var r=gt;if(r){var l=r;if(!Vf(t,r)){if(wa(t))throw Error(i(418));r=xn(l.nextSibling);var a=mt;r&&Vf(t,r)?jf(a,l):(t.flags=t.flags&-4097|2,ke=!1,mt=t)}}else{if(wa(t))throw Error(i(418));t.flags=t.flags&-4097|2,ke=!1,mt=t}}}function zf(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;mt=t}function Qo(t){if(t!==mt)return!1;if(!ke)return zf(t),ke=!0,!1;var r;if((r=t.tag!==3)&&!(r=t.tag!==5)&&(r=t.type,r=r!=="head"&&r!=="body"&&!pa(t.type,t.memoizedProps)),r&&(r=gt)){if(wa(t))throw Uf(),Error(i(418));for(;r;)jf(t,r),r=xn(r.nextSibling)}if(zf(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));e:{for(t=t.nextSibling,r=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"){if(r===0){gt=xn(t.nextSibling);break e}r--}else l!=="$"&&l!=="$!"&&l!=="$?"||r++}t=t.nextSibling}gt=null}}else gt=mt?xn(t.stateNode.nextSibling):null;return!0}function Uf(){for(var t=gt;t;)t=xn(t.nextSibling)}function _r(){gt=mt=null,ke=!1}function Ea(t){Rt===null?Rt=[t]:Rt.push(t)}var Ry=B.ReactCurrentBatchConfig;function _t(t,r){if(t&&t.defaultProps){r=z({},r),t=t.defaultProps;for(var l in t)r[l]===void 0&&(r[l]=t[l]);return r}return r}var Jo=bn(null),el=null,Mr=null,$a=null;function Pa(){$a=Mr=el=null}function Ca(t){var r=Jo.current;Te(Jo),t._currentValue=r}function Ta(t,r,l){for(;t!==null;){var a=t.alternate;if((t.childLanes&r)!==r?(t.childLanes|=r,a!==null&&(a.childLanes|=r)):a!==null&&(a.childLanes&r)!==r&&(a.childLanes|=r),t===l)break;t=t.return}}function Fr(t,r){el=t,$a=Mr=null,t=t.dependencies,t!==null&&t.firstContext!==null&&((t.lanes&r)!==0&&(st=!0),t.firstContext=null)}function Et(t){var r=t._currentValue;if($a!==t)if(t={context:t,memoizedValue:r,next:null},Mr===null){if(el===null)throw Error(i(308));Mr=t,el.dependencies={lanes:0,firstContext:t}}else Mr=Mr.next=t;return r}var jn=null;function ka(t){jn===null?jn=[t]:jn.push(t)}function Kf(t,r,l,a){var f=r.interleaved;return f===null?(l.next=l,ka(r)):(l.next=f.next,f.next=l),r.interleaved=l,en(t,a)}function en(t,r){t.lanes|=r;var l=t.alternate;for(l!==null&&(l.lanes|=r),l=t,t=t.return;t!==null;)t.childLanes|=r,l=t.alternate,l!==null&&(l.childLanes|=r),l=t,t=t.return;return l.tag===3?l.stateNode:null}var En=!1;function Ia(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Wf(t,r){t=t.updateQueue,r.updateQueue===t&&(r.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function tn(t,r){return{eventTime:t,lane:r,tag:0,payload:null,callback:null,next:null}}function $n(t,r,l){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(me&2)!==0){var f=a.pending;return f===null?r.next=r:(r.next=f.next,f.next=r),a.pending=r,en(t,l)}return f=a.interleaved,f===null?(r.next=r,ka(a)):(r.next=f.next,f.next=r),a.interleaved=r,en(t,l)}function tl(t,r,l){if(r=r.updateQueue,r!==null&&(r=r.shared,(l&4194240)!==0)){var a=r.lanes;a&=t.pendingLanes,l|=a,r.lanes=l,zs(t,l)}}function Gf(t,r){var l=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var f=null,p=null;if(l=l.firstBaseUpdate,l!==null){do{var y={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};p===null?f=p=y:p=p.next=y,l=l.next}while(l!==null);p===null?f=p=r:p=p.next=r}else f=p=r;l={baseState:a.baseState,firstBaseUpdate:f,lastBaseUpdate:p,shared:a.shared,effects:a.effects},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=r:t.next=r,l.lastBaseUpdate=r}function nl(t,r,l,a){var f=t.updateQueue;En=!1;var p=f.firstBaseUpdate,y=f.lastBaseUpdate,P=f.shared.pending;if(P!==null){f.shared.pending=null;var T=P,N=T.next;T.next=null,y===null?p=N:y.next=N,y=T;var G=t.alternate;G!==null&&(G=G.updateQueue,P=G.lastBaseUpdate,P!==y&&(P===null?G.firstBaseUpdate=N:P.next=N,G.lastBaseUpdate=T))}if(p!==null){var Z=f.baseState;y=0,G=N=T=null,P=p;do{var K=P.lane,Q=P.eventTime;if((a&K)===K){G!==null&&(G=G.next={eventTime:Q,lane:0,tag:P.tag,payload:P.payload,callback:P.callback,next:null});e:{var te=t,re=P;switch(K=r,Q=l,re.tag){case 1:if(te=re.payload,typeof te=="function"){Z=te.call(Q,Z,K);break e}Z=te;break e;case 3:te.flags=te.flags&-65537|128;case 0:if(te=re.payload,K=typeof te=="function"?te.call(Q,Z,K):te,K==null)break e;Z=z({},Z,K);break e;case 2:En=!0}}P.callback!==null&&P.lane!==0&&(t.flags|=64,K=f.effects,K===null?f.effects=[P]:K.push(P))}else Q={eventTime:Q,lane:K,tag:P.tag,payload:P.payload,callback:P.callback,next:null},G===null?(N=G=Q,T=Z):G=G.next=Q,y|=K;if(P=P.next,P===null){if(P=f.shared.pending,P===null)break;K=P,P=K.next,K.next=null,f.lastBaseUpdate=K,f.shared.pending=null}}while(!0);if(G===null&&(T=Z),f.baseState=T,f.firstBaseUpdate=N,f.lastBaseUpdate=G,r=f.shared.interleaved,r!==null){f=r;do y|=f.lane,f=f.next;while(f!==r)}else p===null&&(f.shared.lanes=0);Un|=y,t.lanes=y,t.memoizedState=Z}}function Zf(t,r,l){if(t=r.effects,r.effects=null,t!==null)for(r=0;r<t.length;r++){var a=t[r],f=a.callback;if(f!==null){if(a.callback=null,a=l,typeof f!="function")throw Error(i(191,f));f.call(a)}}}var qf=new e.Component().refs;function La(t,r,l,a){r=t.memoizedState,l=l(a,r),l=l==null?r:z({},r,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var rl={isMounted:function(t){return(t=t._reactInternals)?Nn(t)===t:!1},enqueueSetState:function(t,r,l){t=t._reactInternals;var a=tt(),f=kn(t),p=tn(a,f);p.payload=r,l!=null&&(p.callback=l),r=$n(t,p,f),r!==null&&(At(r,t,f,a),tl(r,t,f))},enqueueReplaceState:function(t,r,l){t=t._reactInternals;var a=tt(),f=kn(t),p=tn(a,f);p.tag=1,p.payload=r,l!=null&&(p.callback=l),r=$n(t,p,f),r!==null&&(At(r,t,f,a),tl(r,t,f))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var l=tt(),a=kn(t),f=tn(l,a);f.tag=2,r!=null&&(f.callback=r),r=$n(t,f,a),r!==null&&(At(r,t,a,l),tl(r,t,a))}};function Xf(t,r,l,a,f,p,y){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,p,y):r.prototype&&r.prototype.isPureReactComponent?!ki(l,a)||!ki(f,p):!0}function Yf(t,r,l){var a=!1,f=wn,p=r.contextType;return typeof p=="object"&&p!==null?p=Et(p):(f=lt(r)?On:Xe.current,a=r.contextTypes,p=(a=a!=null)?Ir(t,f):wn),r=new r(l,p),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=rl,t.stateNode=r,r._reactInternals=t,a&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=f,t.__reactInternalMemoizedMaskedChildContext=p),r}function Qf(t,r,l,a){t=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(l,a),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(l,a),r.state!==t&&rl.enqueueReplaceState(r,r.state,null)}function Ra(t,r,l,a){var f=t.stateNode;f.props=l,f.state=t.memoizedState,f.refs=qf,Ia(t);var p=r.contextType;typeof p=="object"&&p!==null?f.context=Et(p):(p=lt(r)?On:Xe.current,f.context=Ir(t,p)),f.state=t.memoizedState,p=r.getDerivedStateFromProps,typeof p=="function"&&(La(t,r,p,l),f.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(r=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),r!==f.state&&rl.enqueueReplaceState(f,f.state,null),nl(t,l,f,a),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308)}function Ai(t,r,l){if(t=l.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(i(309));var a=l.stateNode}if(!a)throw Error(i(147,t));var f=a,p=""+t;return r!==null&&r.ref!==null&&typeof r.ref=="function"&&r.ref._stringRef===p?r.ref:(r=function(y){var P=f.refs;P===qf&&(P=f.refs={}),y===null?delete P[p]:P[p]=y},r._stringRef=p,r)}if(typeof t!="string")throw Error(i(284));if(!l._owner)throw Error(i(290,t))}return t}function il(t,r){throw t=Object.prototype.toString.call(r),Error(i(31,t==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":t))}function Jf(t){var r=t._init;return r(t._payload)}function ep(t){function r(M,L){if(t){var F=M.deletions;F===null?(M.deletions=[L],M.flags|=16):F.push(L)}}function l(M,L){if(!t)return null;for(;L!==null;)r(M,L),L=L.sibling;return null}function a(M,L){for(M=new Map;L!==null;)L.key!==null?M.set(L.key,L):M.set(L.index,L),L=L.sibling;return M}function f(M,L){return M=Ln(M,L),M.index=0,M.sibling=null,M}function p(M,L,F){return M.index=F,t?(F=M.alternate,F!==null?(F=F.index,F<L?(M.flags|=2,L):F):(M.flags|=2,L)):(M.flags|=1048576,L)}function y(M){return t&&M.alternate===null&&(M.flags|=2),M}function P(M,L,F,q){return L===null||L.tag!==6?(L=hu(F,M.mode,q),L.return=M,L):(L=f(L,F),L.return=M,L)}function T(M,L,F,q){var ie=F.type;return ie===W?G(M,L,F.props.children,q,F.key):L!==null&&(L.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===xe&&Jf(ie)===L.type)?(q=f(L,F.props),q.ref=Ai(M,L,F),q.return=M,q):(q=El(F.type,F.key,F.props,null,M.mode,q),q.ref=Ai(M,L,F),q.return=M,q)}function N(M,L,F,q){return L===null||L.tag!==4||L.stateNode.containerInfo!==F.containerInfo||L.stateNode.implementation!==F.implementation?(L=vu(F,M.mode,q),L.return=M,L):(L=f(L,F.children||[]),L.return=M,L)}function G(M,L,F,q,ie){return L===null||L.tag!==7?(L=Zn(F,M.mode,q,ie),L.return=M,L):(L=f(L,F),L.return=M,L)}function Z(M,L,F){if(typeof L=="string"&&L!==""||typeof L=="number")return L=hu(""+L,M.mode,F),L.return=M,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case _:return F=El(L.type,L.key,L.props,null,M.mode,F),F.ref=Ai(M,null,L),F.return=M,F;case V:return L=vu(L,M.mode,F),L.return=M,L;case xe:var q=L._init;return Z(M,q(L._payload),F)}if(fn(L)||ee(L))return L=Zn(L,M.mode,F,null),L.return=M,L;il(M,L)}return null}function K(M,L,F,q){var ie=L!==null?L.key:null;if(typeof F=="string"&&F!==""||typeof F=="number")return ie!==null?null:P(M,L,""+F,q);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case _:return F.key===ie?T(M,L,F,q):null;case V:return F.key===ie?N(M,L,F,q):null;case xe:return ie=F._init,K(M,L,ie(F._payload),q)}if(fn(F)||ee(F))return ie!==null?null:G(M,L,F,q,null);il(M,F)}return null}function Q(M,L,F,q,ie){if(typeof q=="string"&&q!==""||typeof q=="number")return M=M.get(F)||null,P(L,M,""+q,ie);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case _:return M=M.get(q.key===null?F:q.key)||null,T(L,M,q,ie);case V:return M=M.get(q.key===null?F:q.key)||null,N(L,M,q,ie);case xe:var oe=q._init;return Q(M,L,F,oe(q._payload),ie)}if(fn(q)||ee(q))return M=M.get(F)||null,G(L,M,q,ie,null);il(L,q)}return null}function te(M,L,F,q){for(var ie=null,oe=null,le=L,ae=L=0,Ke=null;le!==null&&ae<F.length;ae++){le.index>ae?(Ke=le,le=null):Ke=le.sibling;var ye=K(M,le,F[ae],q);if(ye===null){le===null&&(le=Ke);break}t&&le&&ye.alternate===null&&r(M,le),L=p(ye,L,ae),oe===null?ie=ye:oe.sibling=ye,oe=ye,le=Ke}if(ae===F.length)return l(M,le),ke&&Hn(M,ae),ie;if(le===null){for(;ae<F.length;ae++)le=Z(M,F[ae],q),le!==null&&(L=p(le,L,ae),oe===null?ie=le:oe.sibling=le,oe=le);return ke&&Hn(M,ae),ie}for(le=a(M,le);ae<F.length;ae++)Ke=Q(le,M,ae,F[ae],q),Ke!==null&&(t&&Ke.alternate!==null&&le.delete(Ke.key===null?ae:Ke.key),L=p(Ke,L,ae),oe===null?ie=Ke:oe.sibling=Ke,oe=Ke);return t&&le.forEach(function(Rn){return r(M,Rn)}),ke&&Hn(M,ae),ie}function re(M,L,F,q){var ie=ee(F);if(typeof ie!="function")throw Error(i(150));if(F=ie.call(F),F==null)throw Error(i(151));for(var oe=ie=null,le=L,ae=L=0,Ke=null,ye=F.next();le!==null&&!ye.done;ae++,ye=F.next()){le.index>ae?(Ke=le,le=null):Ke=le.sibling;var Rn=K(M,le,ye.value,q);if(Rn===null){le===null&&(le=Ke);break}t&&le&&Rn.alternate===null&&r(M,le),L=p(Rn,L,ae),oe===null?ie=Rn:oe.sibling=Rn,oe=Rn,le=Ke}if(ye.done)return l(M,le),ke&&Hn(M,ae),ie;if(le===null){for(;!ye.done;ae++,ye=F.next())ye=Z(M,ye.value,q),ye!==null&&(L=p(ye,L,ae),oe===null?ie=ye:oe.sibling=ye,oe=ye);return ke&&Hn(M,ae),ie}for(le=a(M,le);!ye.done;ae++,ye=F.next())ye=Q(le,M,ae,ye.value,q),ye!==null&&(t&&ye.alternate!==null&&le.delete(ye.key===null?ae:ye.key),L=p(ye,L,ae),oe===null?ie=ye:oe.sibling=ye,oe=ye);return t&&le.forEach(function(c2){return r(M,c2)}),ke&&Hn(M,ae),ie}function Ne(M,L,F,q){if(typeof F=="object"&&F!==null&&F.type===W&&F.key===null&&(F=F.props.children),typeof F=="object"&&F!==null){switch(F.$$typeof){case _:e:{for(var ie=F.key,oe=L;oe!==null;){if(oe.key===ie){if(ie=F.type,ie===W){if(oe.tag===7){l(M,oe.sibling),L=f(oe,F.props.children),L.return=M,M=L;break e}}else if(oe.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===xe&&Jf(ie)===oe.type){l(M,oe.sibling),L=f(oe,F.props),L.ref=Ai(M,oe,F),L.return=M,M=L;break e}l(M,oe);break}else r(M,oe);oe=oe.sibling}F.type===W?(L=Zn(F.props.children,M.mode,q,F.key),L.return=M,M=L):(q=El(F.type,F.key,F.props,null,M.mode,q),q.ref=Ai(M,L,F),q.return=M,M=q)}return y(M);case V:e:{for(oe=F.key;L!==null;){if(L.key===oe)if(L.tag===4&&L.stateNode.containerInfo===F.containerInfo&&L.stateNode.implementation===F.implementation){l(M,L.sibling),L=f(L,F.children||[]),L.return=M,M=L;break e}else{l(M,L);break}else r(M,L);L=L.sibling}L=vu(F,M.mode,q),L.return=M,M=L}return y(M);case xe:return oe=F._init,Ne(M,L,oe(F._payload),q)}if(fn(F))return te(M,L,F,q);if(ee(F))return re(M,L,F,q);il(M,F)}return typeof F=="string"&&F!==""||typeof F=="number"?(F=""+F,L!==null&&L.tag===6?(l(M,L.sibling),L=f(L,F),L.return=M,M=L):(l(M,L),L=hu(F,M.mode,q),L.return=M,M=L),y(M)):l(M,L)}return Ne}var Ar=ep(!0),tp=ep(!1),Ni={},zt=bn(Ni),Di=bn(Ni),Oi=bn(Ni);function Vn(t){if(t===Ni)throw Error(i(174));return t}function _a(t,r){switch($e(Oi,r),$e(Di,t),$e(zt,Ni),t=r.nodeType,t){case 9:case 11:r=(r=r.documentElement)?r.namespaceURI:Rs(null,"");break;default:t=t===8?r.parentNode:r,r=t.namespaceURI||null,t=t.tagName,r=Rs(r,t)}Te(zt),$e(zt,r)}function Nr(){Te(zt),Te(Di),Te(Oi)}function np(t){Vn(Oi.current);var r=Vn(zt.current),l=Rs(r,t.type);r!==l&&($e(Di,t),$e(zt,l))}function Ma(t){Di.current===t&&(Te(zt),Te(Di))}var Re=bn(0);function ol(t){for(var r=t;r!==null;){if(r.tag===13){var l=r.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var Fa=[];function Aa(){for(var t=0;t<Fa.length;t++)Fa[t]._workInProgressVersionPrimary=null;Fa.length=0}var ll=B.ReactCurrentDispatcher,Na=B.ReactCurrentBatchConfig,zn=0,_e=null,He=null,ze=null,sl=!1,Bi=!1,Hi=0,_y=0;function Ye(){throw Error(i(321))}function Da(t,r){if(r===null)return!1;for(var l=0;l<r.length&&l<t.length;l++)if(!Lt(t[l],r[l]))return!1;return!0}function Oa(t,r,l,a,f,p){if(zn=p,_e=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,ll.current=t===null||t.memoizedState===null?Ny:Dy,t=l(a,f),Bi){p=0;do{if(Bi=!1,Hi=0,25<=p)throw Error(i(301));p+=1,ze=He=null,r.updateQueue=null,ll.current=Oy,t=l(a,f)}while(Bi)}if(ll.current=cl,r=He!==null&&He.next!==null,zn=0,ze=He=_e=null,sl=!1,r)throw Error(i(300));return t}function Ba(){var t=Hi!==0;return Hi=0,t}function Ut(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ze===null?_e.memoizedState=ze=t:ze=ze.next=t,ze}function $t(){if(He===null){var t=_e.alternate;t=t!==null?t.memoizedState:null}else t=He.next;var r=ze===null?_e.memoizedState:ze.next;if(r!==null)ze=r,He=t;else{if(t===null)throw Error(i(310));He=t,t={memoizedState:He.memoizedState,baseState:He.baseState,baseQueue:He.baseQueue,queue:He.queue,next:null},ze===null?_e.memoizedState=ze=t:ze=ze.next=t}return ze}function ji(t,r){return typeof r=="function"?r(t):r}function Ha(t){var r=$t(),l=r.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=t;var a=He,f=a.baseQueue,p=l.pending;if(p!==null){if(f!==null){var y=f.next;f.next=p.next,p.next=y}a.baseQueue=f=p,l.pending=null}if(f!==null){p=f.next,a=a.baseState;var P=y=null,T=null,N=p;do{var G=N.lane;if((zn&G)===G)T!==null&&(T=T.next={lane:0,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),a=N.hasEagerState?N.eagerState:t(a,N.action);else{var Z={lane:G,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null};T===null?(P=T=Z,y=a):T=T.next=Z,_e.lanes|=G,Un|=G}N=N.next}while(N!==null&&N!==p);T===null?y=a:T.next=P,Lt(a,r.memoizedState)||(st=!0),r.memoizedState=a,r.baseState=y,r.baseQueue=T,l.lastRenderedState=a}if(t=l.interleaved,t!==null){f=t;do p=f.lane,_e.lanes|=p,Un|=p,f=f.next;while(f!==t)}else f===null&&(l.lanes=0);return[r.memoizedState,l.dispatch]}function ja(t){var r=$t(),l=r.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=t;var a=l.dispatch,f=l.pending,p=r.memoizedState;if(f!==null){l.pending=null;var y=f=f.next;do p=t(p,y.action),y=y.next;while(y!==f);Lt(p,r.memoizedState)||(st=!0),r.memoizedState=p,r.baseQueue===null&&(r.baseState=p),l.lastRenderedState=p}return[p,a]}function rp(){}function ip(t,r){var l=_e,a=$t(),f=r(),p=!Lt(a.memoizedState,f);if(p&&(a.memoizedState=f,st=!0),a=a.queue,Va(sp.bind(null,l,a,t),[t]),a.getSnapshot!==r||p||ze!==null&&ze.memoizedState.tag&1){if(l.flags|=2048,Vi(9,lp.bind(null,l,a,f,r),void 0,null),Ue===null)throw Error(i(349));(zn&30)!==0||op(l,r,f)}return f}function op(t,r,l){t.flags|=16384,t={getSnapshot:r,value:l},r=_e.updateQueue,r===null?(r={lastEffect:null,stores:null},_e.updateQueue=r,r.stores=[t]):(l=r.stores,l===null?r.stores=[t]:l.push(t))}function lp(t,r,l,a){r.value=l,r.getSnapshot=a,ap(r)&&up(t)}function sp(t,r,l){return l(function(){ap(r)&&up(t)})}function ap(t){var r=t.getSnapshot;t=t.value;try{var l=r();return!Lt(t,l)}catch{return!0}}function up(t){var r=en(t,1);r!==null&&At(r,t,1,-1)}function cp(t){var r=Ut();return typeof t=="function"&&(t=t()),r.memoizedState=r.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ji,lastRenderedState:t},r.queue=t,t=t.dispatch=Ay.bind(null,_e,t),[r.memoizedState,t]}function Vi(t,r,l,a){return t={tag:t,create:r,destroy:l,deps:a,next:null},r=_e.updateQueue,r===null?(r={lastEffect:null,stores:null},_e.updateQueue=r,r.lastEffect=t.next=t):(l=r.lastEffect,l===null?r.lastEffect=t.next=t:(a=l.next,l.next=t,t.next=a,r.lastEffect=t)),t}function dp(){return $t().memoizedState}function al(t,r,l,a){var f=Ut();_e.flags|=t,f.memoizedState=Vi(1|r,l,void 0,a===void 0?null:a)}function ul(t,r,l,a){var f=$t();a=a===void 0?null:a;var p=void 0;if(He!==null){var y=He.memoizedState;if(p=y.destroy,a!==null&&Da(a,y.deps)){f.memoizedState=Vi(r,l,p,a);return}}_e.flags|=t,f.memoizedState=Vi(1|r,l,p,a)}function fp(t,r){return al(8390656,8,t,r)}function Va(t,r){return ul(2048,8,t,r)}function pp(t,r){return ul(4,2,t,r)}function hp(t,r){return ul(4,4,t,r)}function vp(t,r){if(typeof r=="function")return t=t(),r(t),function(){r(null)};if(r!=null)return t=t(),r.current=t,function(){r.current=null}}function mp(t,r,l){return l=l!=null?l.concat([t]):null,ul(4,4,vp.bind(null,r,t),l)}function za(){}function gp(t,r){var l=$t();r=r===void 0?null:r;var a=l.memoizedState;return a!==null&&r!==null&&Da(r,a[1])?a[0]:(l.memoizedState=[t,r],t)}function yp(t,r){var l=$t();r=r===void 0?null:r;var a=l.memoizedState;return a!==null&&r!==null&&Da(r,a[1])?a[0]:(t=t(),l.memoizedState=[t,r],t)}function xp(t,r,l){return(zn&21)===0?(t.baseState&&(t.baseState=!1,st=!0),t.memoizedState=l):(Lt(l,r)||(l=Ud(),_e.lanes|=l,Un|=l,t.baseState=!0),r)}function My(t,r){var l=we;we=l!==0&&4>l?l:4,t(!0);var a=Na.transition;Na.transition={};try{t(!1),r()}finally{we=l,Na.transition=a}}function bp(){return $t().memoizedState}function Fy(t,r,l){var a=kn(t);if(l={lane:a,action:l,hasEagerState:!1,eagerState:null,next:null},wp(t))Sp(r,l);else if(l=Kf(t,r,l,a),l!==null){var f=tt();At(l,t,a,f),Ep(l,r,a)}}function Ay(t,r,l){var a=kn(t),f={lane:a,action:l,hasEagerState:!1,eagerState:null,next:null};if(wp(t))Sp(r,f);else{var p=t.alternate;if(t.lanes===0&&(p===null||p.lanes===0)&&(p=r.lastRenderedReducer,p!==null))try{var y=r.lastRenderedState,P=p(y,l);if(f.hasEagerState=!0,f.eagerState=P,Lt(P,y)){var T=r.interleaved;T===null?(f.next=f,ka(r)):(f.next=T.next,T.next=f),r.interleaved=f;return}}catch{}l=Kf(t,r,f,a),l!==null&&(f=tt(),At(l,t,a,f),Ep(l,r,a))}}function wp(t){var r=t.alternate;return t===_e||r!==null&&r===_e}function Sp(t,r){Bi=sl=!0;var l=t.pending;l===null?r.next=r:(r.next=l.next,l.next=r),t.pending=r}function Ep(t,r,l){if((l&4194240)!==0){var a=r.lanes;a&=t.pendingLanes,l|=a,r.lanes=l,zs(t,l)}}var cl={readContext:Et,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useInsertionEffect:Ye,useLayoutEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useMutableSource:Ye,useSyncExternalStore:Ye,useId:Ye,unstable_isNewReconciler:!1},Ny={readContext:Et,useCallback:function(t,r){return Ut().memoizedState=[t,r===void 0?null:r],t},useContext:Et,useEffect:fp,useImperativeHandle:function(t,r,l){return l=l!=null?l.concat([t]):null,al(4194308,4,vp.bind(null,r,t),l)},useLayoutEffect:function(t,r){return al(4194308,4,t,r)},useInsertionEffect:function(t,r){return al(4,2,t,r)},useMemo:function(t,r){var l=Ut();return r=r===void 0?null:r,t=t(),l.memoizedState=[t,r],t},useReducer:function(t,r,l){var a=Ut();return r=l!==void 0?l(r):r,a.memoizedState=a.baseState=r,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:r},a.queue=t,t=t.dispatch=Fy.bind(null,_e,t),[a.memoizedState,t]},useRef:function(t){var r=Ut();return t={current:t},r.memoizedState=t},useState:cp,useDebugValue:za,useDeferredValue:function(t){return Ut().memoizedState=t},useTransition:function(){var t=cp(!1),r=t[0];return t=My.bind(null,t[1]),Ut().memoizedState=t,[r,t]},useMutableSource:function(){},useSyncExternalStore:function(t,r,l){var a=_e,f=Ut();if(ke){if(l===void 0)throw Error(i(407));l=l()}else{if(l=r(),Ue===null)throw Error(i(349));(zn&30)!==0||op(a,r,l)}f.memoizedState=l;var p={value:l,getSnapshot:r};return f.queue=p,fp(sp.bind(null,a,p,t),[t]),a.flags|=2048,Vi(9,lp.bind(null,a,p,l,r),void 0,null),l},useId:function(){var t=Ut(),r=Ue.identifierPrefix;if(ke){var l=Jt,a=Qt;l=(a&~(1<<32-It(a)-1)).toString(32)+l,r=":"+r+"R"+l,l=Hi++,0<l&&(r+="H"+l.toString(32)),r+=":"}else l=_y++,r=":"+r+"r"+l.toString(32)+":";return t.memoizedState=r},unstable_isNewReconciler:!1},Dy={readContext:Et,useCallback:gp,useContext:Et,useEffect:Va,useImperativeHandle:mp,useInsertionEffect:pp,useLayoutEffect:hp,useMemo:yp,useReducer:Ha,useRef:dp,useState:function(){return Ha(ji)},useDebugValue:za,useDeferredValue:function(t){var r=$t();return xp(r,He.memoizedState,t)},useTransition:function(){var t=Ha(ji)[0],r=$t().memoizedState;return[t,r]},useMutableSource:rp,useSyncExternalStore:ip,useId:bp,unstable_isNewReconciler:!1},Oy={readContext:Et,useCallback:gp,useContext:Et,useEffect:Va,useImperativeHandle:mp,useInsertionEffect:pp,useLayoutEffect:hp,useMemo:yp,useReducer:ja,useRef:dp,useState:function(){return ja(ji)},useDebugValue:za,useDeferredValue:function(t){var r=$t();return He===null?r.memoizedState=t:xp(r,He.memoizedState,t)},useTransition:function(){var t=ja(ji)[0],r=$t().memoizedState;return[t,r]},useMutableSource:rp,useSyncExternalStore:ip,useId:bp,unstable_isNewReconciler:!1};function Dr(t,r){try{var l="",a=r;do l+=An(a),a=a.return;while(a);var f=l}catch(p){f=`
7
+ Error generating stack: `+p.message+`
8
+ `+p.stack}return{value:t,source:r,stack:f,digest:null}}function Ua(t,r,l){return{value:t,source:null,stack:l??null,digest:r??null}}function Ka(t,r){try{console.error(r.value)}catch(l){setTimeout(function(){throw l})}}var By=typeof WeakMap=="function"?WeakMap:Map;function $p(t,r,l){l=tn(-1,l),l.tag=3,l.payload={element:null};var a=r.value;return l.callback=function(){gl||(gl=!0,lu=a),Ka(t,r)},l}function Pp(t,r,l){l=tn(-1,l),l.tag=3;var a=t.type.getDerivedStateFromError;if(typeof a=="function"){var f=r.value;l.payload=function(){return a(f)},l.callback=function(){Ka(t,r)}}var p=t.stateNode;return p!==null&&typeof p.componentDidCatch=="function"&&(l.callback=function(){Ka(t,r),typeof a!="function"&&(Cn===null?Cn=new Set([this]):Cn.add(this));var y=r.stack;this.componentDidCatch(r.value,{componentStack:y!==null?y:""})}),l}function Cp(t,r,l){var a=t.pingCache;if(a===null){a=t.pingCache=new By;var f=new Set;a.set(r,f)}else f=a.get(r),f===void 0&&(f=new Set,a.set(r,f));f.has(l)||(f.add(l),t=Jy.bind(null,t,r,l),r.then(t,t))}function Tp(t){do{var r;if((r=t.tag===13)&&(r=t.memoizedState,r=r!==null?r.dehydrated!==null:!0),r)return t;t=t.return}while(t!==null);return null}function kp(t,r,l,a,f){return(t.mode&1)===0?(t===r?t.flags|=65536:(t.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(r=tn(-1,1),r.tag=2,$n(l,r,1))),l.lanes|=1),t):(t.flags|=65536,t.lanes=f,t)}var Hy=B.ReactCurrentOwner,st=!1;function et(t,r,l,a){r.child=t===null?tp(r,null,l,a):Ar(r,t.child,l,a)}function Ip(t,r,l,a,f){l=l.render;var p=r.ref;return Fr(r,f),a=Oa(t,r,l,a,p,f),l=Ba(),t!==null&&!st?(r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~f,nn(t,r,f)):(ke&&l&&xa(r),r.flags|=1,et(t,r,a,f),r.child)}function Lp(t,r,l,a,f){if(t===null){var p=l.type;return typeof p=="function"&&!pu(p)&&p.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(r.tag=15,r.type=p,Rp(t,r,p,a,f)):(t=El(l.type,null,a,r,r.mode,f),t.ref=r.ref,t.return=r,r.child=t)}if(p=t.child,(t.lanes&f)===0){var y=p.memoizedProps;if(l=l.compare,l=l!==null?l:ki,l(y,a)&&t.ref===r.ref)return nn(t,r,f)}return r.flags|=1,t=Ln(p,a),t.ref=r.ref,t.return=r,r.child=t}function Rp(t,r,l,a,f){if(t!==null){var p=t.memoizedProps;if(ki(p,a)&&t.ref===r.ref)if(st=!1,r.pendingProps=a=p,(t.lanes&f)!==0)(t.flags&131072)!==0&&(st=!0);else return r.lanes=t.lanes,nn(t,r,f)}return Wa(t,r,l,a,f)}function _p(t,r,l){var a=r.pendingProps,f=a.children,p=t!==null?t.memoizedState:null;if(a.mode==="hidden")if((r.mode&1)===0)r.memoizedState={baseLanes:0,cachePool:null,transitions:null},$e(Br,yt),yt|=l;else{if((l&1073741824)===0)return t=p!==null?p.baseLanes|l:l,r.lanes=r.childLanes=1073741824,r.memoizedState={baseLanes:t,cachePool:null,transitions:null},r.updateQueue=null,$e(Br,yt),yt|=t,null;r.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=p!==null?p.baseLanes:l,$e(Br,yt),yt|=a}else p!==null?(a=p.baseLanes|l,r.memoizedState=null):a=l,$e(Br,yt),yt|=a;return et(t,r,f,l),r.child}function Mp(t,r){var l=r.ref;(t===null&&l!==null||t!==null&&t.ref!==l)&&(r.flags|=512,r.flags|=2097152)}function Wa(t,r,l,a,f){var p=lt(l)?On:Xe.current;return p=Ir(r,p),Fr(r,f),l=Oa(t,r,l,a,p,f),a=Ba(),t!==null&&!st?(r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~f,nn(t,r,f)):(ke&&a&&xa(r),r.flags|=1,et(t,r,l,f),r.child)}function Fp(t,r,l,a,f){if(lt(l)){var p=!0;Zo(r)}else p=!1;if(Fr(r,f),r.stateNode===null)fl(t,r),Yf(r,l,a),Ra(r,l,a,f),a=!0;else if(t===null){var y=r.stateNode,P=r.memoizedProps;y.props=P;var T=y.context,N=l.contextType;typeof N=="object"&&N!==null?N=Et(N):(N=lt(l)?On:Xe.current,N=Ir(r,N));var G=l.getDerivedStateFromProps,Z=typeof G=="function"||typeof y.getSnapshotBeforeUpdate=="function";Z||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(P!==a||T!==N)&&Qf(r,y,a,N),En=!1;var K=r.memoizedState;y.state=K,nl(r,a,y,f),T=r.memoizedState,P!==a||K!==T||ot.current||En?(typeof G=="function"&&(La(r,l,G,a),T=r.memoizedState),(P=En||Xf(r,l,P,a,K,T,N))?(Z||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(r.flags|=4194308)):(typeof y.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=a,r.memoizedState=T),y.props=a,y.state=T,y.context=N,a=P):(typeof y.componentDidMount=="function"&&(r.flags|=4194308),a=!1)}else{y=r.stateNode,Wf(t,r),P=r.memoizedProps,N=r.type===r.elementType?P:_t(r.type,P),y.props=N,Z=r.pendingProps,K=y.context,T=l.contextType,typeof T=="object"&&T!==null?T=Et(T):(T=lt(l)?On:Xe.current,T=Ir(r,T));var Q=l.getDerivedStateFromProps;(G=typeof Q=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(P!==Z||K!==T)&&Qf(r,y,a,T),En=!1,K=r.memoizedState,y.state=K,nl(r,a,y,f);var te=r.memoizedState;P!==Z||K!==te||ot.current||En?(typeof Q=="function"&&(La(r,l,Q,a),te=r.memoizedState),(N=En||Xf(r,l,N,a,K,te,T)||!1)?(G||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(a,te,T),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(a,te,T)),typeof y.componentDidUpdate=="function"&&(r.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof y.componentDidUpdate!="function"||P===t.memoizedProps&&K===t.memoizedState||(r.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||P===t.memoizedProps&&K===t.memoizedState||(r.flags|=1024),r.memoizedProps=a,r.memoizedState=te),y.props=a,y.state=te,y.context=T,a=N):(typeof y.componentDidUpdate!="function"||P===t.memoizedProps&&K===t.memoizedState||(r.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||P===t.memoizedProps&&K===t.memoizedState||(r.flags|=1024),a=!1)}return Ga(t,r,l,a,p,f)}function Ga(t,r,l,a,f,p){Mp(t,r);var y=(r.flags&128)!==0;if(!a&&!y)return f&&Of(r,l,!1),nn(t,r,p);a=r.stateNode,Hy.current=r;var P=y&&typeof l.getDerivedStateFromError!="function"?null:a.render();return r.flags|=1,t!==null&&y?(r.child=Ar(r,t.child,null,p),r.child=Ar(r,null,P,p)):et(t,r,P,p),r.memoizedState=a.state,f&&Of(r,l,!0),r.child}function Ap(t){var r=t.stateNode;r.pendingContext?Nf(t,r.pendingContext,r.pendingContext!==r.context):r.context&&Nf(t,r.context,!1),_a(t,r.containerInfo)}function Np(t,r,l,a,f){return _r(),Ea(f),r.flags|=256,et(t,r,l,a),r.child}var Za={dehydrated:null,treeContext:null,retryLane:0};function qa(t){return{baseLanes:t,cachePool:null,transitions:null}}function Dp(t,r,l){var a=r.pendingProps,f=Re.current,p=!1,y=(r.flags&128)!==0,P;if((P=y)||(P=t!==null&&t.memoizedState===null?!1:(f&2)!==0),P?(p=!0,r.flags&=-129):(t===null||t.memoizedState!==null)&&(f|=1),$e(Re,f&1),t===null)return Sa(r),t=r.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?((r.mode&1)===0?r.lanes=1:t.data==="$!"?r.lanes=8:r.lanes=1073741824,null):(y=a.children,t=a.fallback,p?(a=r.mode,p=r.child,y={mode:"hidden",children:y},(a&1)===0&&p!==null?(p.childLanes=0,p.pendingProps=y):p=$l(y,a,0,null),t=Zn(t,a,l,null),p.return=r,t.return=r,p.sibling=t,r.child=p,r.child.memoizedState=qa(l),r.memoizedState=Za,t):Xa(r,y));if(f=t.memoizedState,f!==null&&(P=f.dehydrated,P!==null))return jy(t,r,y,a,P,f,l);if(p){p=a.fallback,y=r.mode,f=t.child,P=f.sibling;var T={mode:"hidden",children:a.children};return(y&1)===0&&r.child!==f?(a=r.child,a.childLanes=0,a.pendingProps=T,r.deletions=null):(a=Ln(f,T),a.subtreeFlags=f.subtreeFlags&14680064),P!==null?p=Ln(P,p):(p=Zn(p,y,l,null),p.flags|=2),p.return=r,a.return=r,a.sibling=p,r.child=a,a=p,p=r.child,y=t.child.memoizedState,y=y===null?qa(l):{baseLanes:y.baseLanes|l,cachePool:null,transitions:y.transitions},p.memoizedState=y,p.childLanes=t.childLanes&~l,r.memoizedState=Za,a}return p=t.child,t=p.sibling,a=Ln(p,{mode:"visible",children:a.children}),(r.mode&1)===0&&(a.lanes=l),a.return=r,a.sibling=null,t!==null&&(l=r.deletions,l===null?(r.deletions=[t],r.flags|=16):l.push(t)),r.child=a,r.memoizedState=null,a}function Xa(t,r){return r=$l({mode:"visible",children:r},t.mode,0,null),r.return=t,t.child=r}function dl(t,r,l,a){return a!==null&&Ea(a),Ar(r,t.child,null,l),t=Xa(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function jy(t,r,l,a,f,p,y){if(l)return r.flags&256?(r.flags&=-257,a=Ua(Error(i(422))),dl(t,r,y,a)):r.memoizedState!==null?(r.child=t.child,r.flags|=128,null):(p=a.fallback,f=r.mode,a=$l({mode:"visible",children:a.children},f,0,null),p=Zn(p,f,y,null),p.flags|=2,a.return=r,p.return=r,a.sibling=p,r.child=a,(r.mode&1)!==0&&Ar(r,t.child,null,y),r.child.memoizedState=qa(y),r.memoizedState=Za,p);if((r.mode&1)===0)return dl(t,r,y,null);if(f.data==="$!"){if(a=f.nextSibling&&f.nextSibling.dataset,a)var P=a.dgst;return a=P,p=Error(i(419)),a=Ua(p,a,void 0),dl(t,r,y,a)}if(P=(y&t.childLanes)!==0,st||P){if(a=Ue,a!==null){switch(y&-y){case 4:f=2;break;case 16:f=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:f=32;break;case 536870912:f=268435456;break;default:f=0}f=(f&(a.suspendedLanes|y))!==0?0:f,f!==0&&f!==p.retryLane&&(p.retryLane=f,en(t,f),At(a,t,f,-1))}return fu(),a=Ua(Error(i(421))),dl(t,r,y,a)}return f.data==="$?"?(r.flags|=128,r.child=t.child,r=e2.bind(null,t),f._reactRetry=r,null):(t=p.treeContext,gt=xn(f.nextSibling),mt=r,ke=!0,Rt=null,t!==null&&(wt[St++]=Qt,wt[St++]=Jt,wt[St++]=Bn,Qt=t.id,Jt=t.overflow,Bn=r),r=Xa(r,a.children),r.flags|=4096,r)}function Op(t,r,l){t.lanes|=r;var a=t.alternate;a!==null&&(a.lanes|=r),Ta(t.return,r,l)}function Ya(t,r,l,a,f){var p=t.memoizedState;p===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:f}:(p.isBackwards=r,p.rendering=null,p.renderingStartTime=0,p.last=a,p.tail=l,p.tailMode=f)}function Bp(t,r,l){var a=r.pendingProps,f=a.revealOrder,p=a.tail;if(et(t,r,a.children,l),a=Re.current,(a&2)!==0)a=a&1|2,r.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Op(t,l,r);else if(t.tag===19)Op(t,l,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break e;for(;t.sibling===null;){if(t.return===null||t.return===r)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}a&=1}if($e(Re,a),(r.mode&1)===0)r.memoizedState=null;else switch(f){case"forwards":for(l=r.child,f=null;l!==null;)t=l.alternate,t!==null&&ol(t)===null&&(f=l),l=l.sibling;l=f,l===null?(f=r.child,r.child=null):(f=l.sibling,l.sibling=null),Ya(r,!1,f,l,p);break;case"backwards":for(l=null,f=r.child,r.child=null;f!==null;){if(t=f.alternate,t!==null&&ol(t)===null){r.child=f;break}t=f.sibling,f.sibling=l,l=f,f=t}Ya(r,!0,l,null,p);break;case"together":Ya(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function fl(t,r){(r.mode&1)===0&&t!==null&&(t.alternate=null,r.alternate=null,r.flags|=2)}function nn(t,r,l){if(t!==null&&(r.dependencies=t.dependencies),Un|=r.lanes,(l&r.childLanes)===0)return null;if(t!==null&&r.child!==t.child)throw Error(i(153));if(r.child!==null){for(t=r.child,l=Ln(t,t.pendingProps),r.child=l,l.return=r;t.sibling!==null;)t=t.sibling,l=l.sibling=Ln(t,t.pendingProps),l.return=r;l.sibling=null}return r.child}function Vy(t,r,l){switch(r.tag){case 3:Ap(r),_r();break;case 5:np(r);break;case 1:lt(r.type)&&Zo(r);break;case 4:_a(r,r.stateNode.containerInfo);break;case 10:var a=r.type._context,f=r.memoizedProps.value;$e(Jo,a._currentValue),a._currentValue=f;break;case 13:if(a=r.memoizedState,a!==null)return a.dehydrated!==null?($e(Re,Re.current&1),r.flags|=128,null):(l&r.child.childLanes)!==0?Dp(t,r,l):($e(Re,Re.current&1),t=nn(t,r,l),t!==null?t.sibling:null);$e(Re,Re.current&1);break;case 19:if(a=(l&r.childLanes)!==0,(t.flags&128)!==0){if(a)return Bp(t,r,l);r.flags|=128}if(f=r.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),$e(Re,Re.current),a)break;return null;case 22:case 23:return r.lanes=0,_p(t,r,l)}return nn(t,r,l)}var Hp,Qa,jp,Vp;Hp=function(t,r){for(var l=r.child;l!==null;){if(l.tag===5||l.tag===6)t.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===r)break;for(;l.sibling===null;){if(l.return===null||l.return===r)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},Qa=function(){},jp=function(t,r,l,a){var f=t.memoizedProps;if(f!==a){t=r.stateNode,Vn(zt.current);var p=null;switch(l){case"input":f=ci(t,f),a=ci(t,a),p=[];break;case"select":f=z({},f,{value:void 0}),a=z({},a,{value:void 0}),p=[];break;case"textarea":f=Ls(t,f),a=Ls(t,a),p=[];break;default:typeof f.onClick!="function"&&typeof a.onClick=="function"&&(t.onclick=Ko)}_s(l,a);var y;l=null;for(N in f)if(!a.hasOwnProperty(N)&&f.hasOwnProperty(N)&&f[N]!=null)if(N==="style"){var P=f[N];for(y in P)P.hasOwnProperty(y)&&(l||(l={}),l[y]="")}else N!=="dangerouslySetInnerHTML"&&N!=="children"&&N!=="suppressContentEditableWarning"&&N!=="suppressHydrationWarning"&&N!=="autoFocus"&&(s.hasOwnProperty(N)?p||(p=[]):(p=p||[]).push(N,null));for(N in a){var T=a[N];if(P=f?.[N],a.hasOwnProperty(N)&&T!==P&&(T!=null||P!=null))if(N==="style")if(P){for(y in P)!P.hasOwnProperty(y)||T&&T.hasOwnProperty(y)||(l||(l={}),l[y]="");for(y in T)T.hasOwnProperty(y)&&P[y]!==T[y]&&(l||(l={}),l[y]=T[y])}else l||(p||(p=[]),p.push(N,l)),l=T;else N==="dangerouslySetInnerHTML"?(T=T?T.__html:void 0,P=P?P.__html:void 0,T!=null&&P!==T&&(p=p||[]).push(N,T)):N==="children"?typeof T!="string"&&typeof T!="number"||(p=p||[]).push(N,""+T):N!=="suppressContentEditableWarning"&&N!=="suppressHydrationWarning"&&(s.hasOwnProperty(N)?(T!=null&&N==="onScroll"&&Ce("scroll",t),p||P===T||(p=[])):(p=p||[]).push(N,T))}l&&(p=p||[]).push("style",l);var N=p;(r.updateQueue=N)&&(r.flags|=4)}},Vp=function(t,r,l,a){l!==a&&(r.flags|=4)};function zi(t,r){if(!ke)switch(t.tailMode){case"hidden":r=t.tail;for(var l=null;r!==null;)r.alternate!==null&&(l=r),r=r.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?r||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function Qe(t){var r=t.alternate!==null&&t.alternate.child===t.child,l=0,a=0;if(r)for(var f=t.child;f!==null;)l|=f.lanes|f.childLanes,a|=f.subtreeFlags&14680064,a|=f.flags&14680064,f.return=t,f=f.sibling;else for(f=t.child;f!==null;)l|=f.lanes|f.childLanes,a|=f.subtreeFlags,a|=f.flags,f.return=t,f=f.sibling;return t.subtreeFlags|=a,t.childLanes=l,r}function zy(t,r,l){var a=r.pendingProps;switch(ba(r),r.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qe(r),null;case 1:return lt(r.type)&&Go(),Qe(r),null;case 3:return a=r.stateNode,Nr(),Te(ot),Te(Xe),Aa(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Qo(r)?r.flags|=4:t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,Rt!==null&&(uu(Rt),Rt=null))),Qa(t,r),Qe(r),null;case 5:Ma(r);var f=Vn(Oi.current);if(l=r.type,t!==null&&r.stateNode!=null)jp(t,r,l,a,f),t.ref!==r.ref&&(r.flags|=512,r.flags|=2097152);else{if(!a){if(r.stateNode===null)throw Error(i(166));return Qe(r),null}if(t=Vn(zt.current),Qo(r)){a=r.stateNode,l=r.type;var p=r.memoizedProps;switch(a[Vt]=r,a[Mi]=p,t=(r.mode&1)!==0,l){case"dialog":Ce("cancel",a),Ce("close",a);break;case"iframe":case"object":case"embed":Ce("load",a);break;case"video":case"audio":for(f=0;f<Li.length;f++)Ce(Li[f],a);break;case"source":Ce("error",a);break;case"img":case"image":case"link":Ce("error",a),Ce("load",a);break;case"details":Ce("toggle",a);break;case"input":So(a,p),Ce("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!p.multiple},Ce("invalid",a);break;case"textarea":Ed(a,p),Ce("invalid",a)}_s(l,p),f=null;for(var y in p)if(p.hasOwnProperty(y)){var P=p[y];y==="children"?typeof P=="string"?a.textContent!==P&&(p.suppressHydrationWarning!==!0&&Uo(a.textContent,P,t),f=["children",P]):typeof P=="number"&&a.textContent!==""+P&&(p.suppressHydrationWarning!==!0&&Uo(a.textContent,P,t),f=["children",""+P]):s.hasOwnProperty(y)&&P!=null&&y==="onScroll"&&Ce("scroll",a)}switch(l){case"input":vr(a),qt(a,p,!0);break;case"textarea":vr(a),Pd(a);break;case"select":case"option":break;default:typeof p.onClick=="function"&&(a.onclick=Ko)}a=f,r.updateQueue=a,a!==null&&(r.flags|=4)}else{y=f.nodeType===9?f:f.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=Cd(l)),t==="http://www.w3.org/1999/xhtml"?l==="script"?(t=y.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof a.is=="string"?t=y.createElement(l,{is:a.is}):(t=y.createElement(l),l==="select"&&(y=t,a.multiple?y.multiple=!0:a.size&&(y.size=a.size))):t=y.createElementNS(t,l),t[Vt]=r,t[Mi]=a,Hp(t,r,!1,!1),r.stateNode=t;e:{switch(y=Ms(l,a),l){case"dialog":Ce("cancel",t),Ce("close",t),f=a;break;case"iframe":case"object":case"embed":Ce("load",t),f=a;break;case"video":case"audio":for(f=0;f<Li.length;f++)Ce(Li[f],t);f=a;break;case"source":Ce("error",t),f=a;break;case"img":case"image":case"link":Ce("error",t),Ce("load",t),f=a;break;case"details":Ce("toggle",t),f=a;break;case"input":So(t,a),f=ci(t,a),Ce("invalid",t);break;case"option":f=a;break;case"select":t._wrapperState={wasMultiple:!!a.multiple},f=z({},a,{value:void 0}),Ce("invalid",t);break;case"textarea":Ed(t,a),f=Ls(t,a),Ce("invalid",t);break;default:f=a}_s(l,f),P=f;for(p in P)if(P.hasOwnProperty(p)){var T=P[p];p==="style"?Id(t,T):p==="dangerouslySetInnerHTML"?(T=T?T.__html:void 0,T!=null&&Td(t,T)):p==="children"?typeof T=="string"?(l!=="textarea"||T!=="")&&di(t,T):typeof T=="number"&&di(t,""+T):p!=="suppressContentEditableWarning"&&p!=="suppressHydrationWarning"&&p!=="autoFocus"&&(s.hasOwnProperty(p)?T!=null&&p==="onScroll"&&Ce("scroll",t):T!=null&&R(t,p,T,y))}switch(l){case"input":vr(t),qt(t,a,!1);break;case"textarea":vr(t),Pd(t);break;case"option":a.value!=null&&t.setAttribute("value",""+Bt(a.value));break;case"select":t.multiple=!!a.multiple,p=a.value,p!=null?gr(t,!!a.multiple,p,!1):a.defaultValue!=null&&gr(t,!!a.multiple,a.defaultValue,!0);break;default:typeof f.onClick=="function"&&(t.onclick=Ko)}switch(l){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(r.flags|=4)}r.ref!==null&&(r.flags|=512,r.flags|=2097152)}return Qe(r),null;case 6:if(t&&r.stateNode!=null)Vp(t,r,t.memoizedProps,a);else{if(typeof a!="string"&&r.stateNode===null)throw Error(i(166));if(l=Vn(Oi.current),Vn(zt.current),Qo(r)){if(a=r.stateNode,l=r.memoizedProps,a[Vt]=r,(p=a.nodeValue!==l)&&(t=mt,t!==null))switch(t.tag){case 3:Uo(a.nodeValue,l,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Uo(a.nodeValue,l,(t.mode&1)!==0)}p&&(r.flags|=4)}else a=(l.nodeType===9?l:l.ownerDocument).createTextNode(a),a[Vt]=r,r.stateNode=a}return Qe(r),null;case 13:if(Te(Re),a=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(ke&&gt!==null&&(r.mode&1)!==0&&(r.flags&128)===0)Uf(),_r(),r.flags|=98560,p=!1;else if(p=Qo(r),a!==null&&a.dehydrated!==null){if(t===null){if(!p)throw Error(i(318));if(p=r.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(i(317));p[Vt]=r}else _r(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Qe(r),p=!1}else Rt!==null&&(uu(Rt),Rt=null),p=!0;if(!p)return r.flags&65536?r:null}return(r.flags&128)!==0?(r.lanes=l,r):(a=a!==null,a!==(t!==null&&t.memoizedState!==null)&&a&&(r.child.flags|=8192,(r.mode&1)!==0&&(t===null||(Re.current&1)!==0?je===0&&(je=3):fu())),r.updateQueue!==null&&(r.flags|=4),Qe(r),null);case 4:return Nr(),Qa(t,r),t===null&&Ri(r.stateNode.containerInfo),Qe(r),null;case 10:return Ca(r.type._context),Qe(r),null;case 17:return lt(r.type)&&Go(),Qe(r),null;case 19:if(Te(Re),p=r.memoizedState,p===null)return Qe(r),null;if(a=(r.flags&128)!==0,y=p.rendering,y===null)if(a)zi(p,!1);else{if(je!==0||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(y=ol(t),y!==null){for(r.flags|=128,zi(p,!1),a=y.updateQueue,a!==null&&(r.updateQueue=a,r.flags|=4),r.subtreeFlags=0,a=l,l=r.child;l!==null;)p=l,t=a,p.flags&=14680066,y=p.alternate,y===null?(p.childLanes=0,p.lanes=t,p.child=null,p.subtreeFlags=0,p.memoizedProps=null,p.memoizedState=null,p.updateQueue=null,p.dependencies=null,p.stateNode=null):(p.childLanes=y.childLanes,p.lanes=y.lanes,p.child=y.child,p.subtreeFlags=0,p.deletions=null,p.memoizedProps=y.memoizedProps,p.memoizedState=y.memoizedState,p.updateQueue=y.updateQueue,p.type=y.type,t=y.dependencies,p.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),l=l.sibling;return $e(Re,Re.current&1|2),r.child}t=t.sibling}p.tail!==null&&Ae()>Hr&&(r.flags|=128,a=!0,zi(p,!1),r.lanes=4194304)}else{if(!a)if(t=ol(y),t!==null){if(r.flags|=128,a=!0,l=t.updateQueue,l!==null&&(r.updateQueue=l,r.flags|=4),zi(p,!0),p.tail===null&&p.tailMode==="hidden"&&!y.alternate&&!ke)return Qe(r),null}else 2*Ae()-p.renderingStartTime>Hr&&l!==1073741824&&(r.flags|=128,a=!0,zi(p,!1),r.lanes=4194304);p.isBackwards?(y.sibling=r.child,r.child=y):(l=p.last,l!==null?l.sibling=y:r.child=y,p.last=y)}return p.tail!==null?(r=p.tail,p.rendering=r,p.tail=r.sibling,p.renderingStartTime=Ae(),r.sibling=null,l=Re.current,$e(Re,a?l&1|2:l&1),r):(Qe(r),null);case 22:case 23:return du(),a=r.memoizedState!==null,t!==null&&t.memoizedState!==null!==a&&(r.flags|=8192),a&&(r.mode&1)!==0?(yt&1073741824)!==0&&(Qe(r),r.subtreeFlags&6&&(r.flags|=8192)):Qe(r),null;case 24:return null;case 25:return null}throw Error(i(156,r.tag))}function Uy(t,r){switch(ba(r),r.tag){case 1:return lt(r.type)&&Go(),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return Nr(),Te(ot),Te(Xe),Aa(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 5:return Ma(r),null;case 13:if(Te(Re),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(i(340));_r()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return Te(Re),null;case 4:return Nr(),null;case 10:return Ca(r.type._context),null;case 22:case 23:return du(),null;case 24:return null;default:return null}}var pl=!1,Je=!1,Ky=typeof WeakSet=="function"?WeakSet:Set,J=null;function Or(t,r){var l=t.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(a){Me(t,r,a)}else l.current=null}function Ja(t,r,l){try{l()}catch(a){Me(t,r,a)}}var zp=!1;function Wy(t,r){if(da=Mo,t=bf(),ra(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else e:{l=(l=t.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var f=a.anchorOffset,p=a.focusNode;a=a.focusOffset;try{l.nodeType,p.nodeType}catch{l=null;break e}var y=0,P=-1,T=-1,N=0,G=0,Z=t,K=null;t:for(;;){for(var Q;Z!==l||f!==0&&Z.nodeType!==3||(P=y+f),Z!==p||a!==0&&Z.nodeType!==3||(T=y+a),Z.nodeType===3&&(y+=Z.nodeValue.length),(Q=Z.firstChild)!==null;)K=Z,Z=Q;for(;;){if(Z===t)break t;if(K===l&&++N===f&&(P=y),K===p&&++G===a&&(T=y),(Q=Z.nextSibling)!==null)break;Z=K,K=Z.parentNode}Z=Q}l=P===-1||T===-1?null:{start:P,end:T}}else l=null}l=l||{start:0,end:0}}else l=null;for(fa={focusedElem:t,selectionRange:l},Mo=!1,J=r;J!==null;)if(r=J,t=r.child,(r.subtreeFlags&1028)!==0&&t!==null)t.return=r,J=t;else for(;J!==null;){r=J;try{var te=r.alternate;if((r.flags&1024)!==0)switch(r.tag){case 0:case 11:case 15:break;case 1:if(te!==null){var re=te.memoizedProps,Ne=te.memoizedState,M=r.stateNode,L=M.getSnapshotBeforeUpdate(r.elementType===r.type?re:_t(r.type,re),Ne);M.__reactInternalSnapshotBeforeUpdate=L}break;case 3:var F=r.stateNode.containerInfo;F.nodeType===1?F.textContent="":F.nodeType===9&&F.documentElement&&F.removeChild(F.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(q){Me(r,r.return,q)}if(t=r.sibling,t!==null){t.return=r.return,J=t;break}J=r.return}return te=zp,zp=!1,te}function Ui(t,r,l){var a=r.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var f=a=a.next;do{if((f.tag&t)===t){var p=f.destroy;f.destroy=void 0,p!==void 0&&Ja(r,l,p)}f=f.next}while(f!==a)}}function hl(t,r){if(r=r.updateQueue,r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&t)===t){var a=l.create;l.destroy=a()}l=l.next}while(l!==r)}}function eu(t){var r=t.ref;if(r!==null){var l=t.stateNode;t.tag,t=l,typeof r=="function"?r(t):r.current=t}}function Up(t){var r=t.alternate;r!==null&&(t.alternate=null,Up(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&(delete r[Vt],delete r[Mi],delete r[ma],delete r[ky],delete r[Iy])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Kp(t){return t.tag===5||t.tag===3||t.tag===4}function Wp(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Kp(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function tu(t,r,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,r?l.nodeType===8?l.parentNode.insertBefore(t,r):l.insertBefore(t,r):(l.nodeType===8?(r=l.parentNode,r.insertBefore(t,l)):(r=l,r.appendChild(t)),l=l._reactRootContainer,l!=null||r.onclick!==null||(r.onclick=Ko));else if(a!==4&&(t=t.child,t!==null))for(tu(t,r,l),t=t.sibling;t!==null;)tu(t,r,l),t=t.sibling}function nu(t,r,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,r?l.insertBefore(t,r):l.appendChild(t);else if(a!==4&&(t=t.child,t!==null))for(nu(t,r,l),t=t.sibling;t!==null;)nu(t,r,l),t=t.sibling}var Ge=null,Mt=!1;function Pn(t,r,l){for(l=l.child;l!==null;)Gp(t,r,l),l=l.sibling}function Gp(t,r,l){if(jt&&typeof jt.onCommitFiberUnmount=="function")try{jt.onCommitFiberUnmount(To,l)}catch{}switch(l.tag){case 5:Je||Or(l,r);case 6:var a=Ge,f=Mt;Ge=null,Pn(t,r,l),Ge=a,Mt=f,Ge!==null&&(Mt?(t=Ge,l=l.stateNode,t.nodeType===8?t.parentNode.removeChild(l):t.removeChild(l)):Ge.removeChild(l.stateNode));break;case 18:Ge!==null&&(Mt?(t=Ge,l=l.stateNode,t.nodeType===8?va(t.parentNode,l):t.nodeType===1&&va(t,l),Si(t)):va(Ge,l.stateNode));break;case 4:a=Ge,f=Mt,Ge=l.stateNode.containerInfo,Mt=!0,Pn(t,r,l),Ge=a,Mt=f;break;case 0:case 11:case 14:case 15:if(!Je&&(a=l.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){f=a=a.next;do{var p=f,y=p.destroy;p=p.tag,y!==void 0&&((p&2)!==0||(p&4)!==0)&&Ja(l,r,y),f=f.next}while(f!==a)}Pn(t,r,l);break;case 1:if(!Je&&(Or(l,r),a=l.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=l.memoizedProps,a.state=l.memoizedState,a.componentWillUnmount()}catch(P){Me(l,r,P)}Pn(t,r,l);break;case 21:Pn(t,r,l);break;case 22:l.mode&1?(Je=(a=Je)||l.memoizedState!==null,Pn(t,r,l),Je=a):Pn(t,r,l);break;default:Pn(t,r,l)}}function Zp(t){var r=t.updateQueue;if(r!==null){t.updateQueue=null;var l=t.stateNode;l===null&&(l=t.stateNode=new Ky),r.forEach(function(a){var f=t2.bind(null,t,a);l.has(a)||(l.add(a),a.then(f,f))})}}function Ft(t,r){var l=r.deletions;if(l!==null)for(var a=0;a<l.length;a++){var f=l[a];try{var p=t,y=r,P=y;e:for(;P!==null;){switch(P.tag){case 5:Ge=P.stateNode,Mt=!1;break e;case 3:Ge=P.stateNode.containerInfo,Mt=!0;break e;case 4:Ge=P.stateNode.containerInfo,Mt=!0;break e}P=P.return}if(Ge===null)throw Error(i(160));Gp(p,y,f),Ge=null,Mt=!1;var T=f.alternate;T!==null&&(T.return=null),f.return=null}catch(N){Me(f,r,N)}}if(r.subtreeFlags&12854)for(r=r.child;r!==null;)qp(r,t),r=r.sibling}function qp(t,r){var l=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Ft(r,t),Kt(t),a&4){try{Ui(3,t,t.return),hl(3,t)}catch(re){Me(t,t.return,re)}try{Ui(5,t,t.return)}catch(re){Me(t,t.return,re)}}break;case 1:Ft(r,t),Kt(t),a&512&&l!==null&&Or(l,l.return);break;case 5:if(Ft(r,t),Kt(t),a&512&&l!==null&&Or(l,l.return),t.flags&32){var f=t.stateNode;try{di(f,"")}catch(re){Me(t,t.return,re)}}if(a&4&&(f=t.stateNode,f!=null)){var p=t.memoizedProps,y=l!==null?l.memoizedProps:p,P=t.type,T=t.updateQueue;if(t.updateQueue=null,T!==null)try{P==="input"&&p.type==="radio"&&p.name!=null&&bt(f,p),Ms(P,y);var N=Ms(P,p);for(y=0;y<T.length;y+=2){var G=T[y],Z=T[y+1];G==="style"?Id(f,Z):G==="dangerouslySetInnerHTML"?Td(f,Z):G==="children"?di(f,Z):R(f,G,Z,N)}switch(P){case"input":Ht(f,p);break;case"textarea":$d(f,p);break;case"select":var K=f._wrapperState.wasMultiple;f._wrapperState.wasMultiple=!!p.multiple;var Q=p.value;Q!=null?gr(f,!!p.multiple,Q,!1):K!==!!p.multiple&&(p.defaultValue!=null?gr(f,!!p.multiple,p.defaultValue,!0):gr(f,!!p.multiple,p.multiple?[]:"",!1))}f[Mi]=p}catch(re){Me(t,t.return,re)}}break;case 6:if(Ft(r,t),Kt(t),a&4){if(t.stateNode===null)throw Error(i(162));f=t.stateNode,p=t.memoizedProps;try{f.nodeValue=p}catch(re){Me(t,t.return,re)}}break;case 3:if(Ft(r,t),Kt(t),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Si(r.containerInfo)}catch(re){Me(t,t.return,re)}break;case 4:Ft(r,t),Kt(t);break;case 13:Ft(r,t),Kt(t),f=t.child,f.flags&8192&&(p=f.memoizedState!==null,f.stateNode.isHidden=p,!p||f.alternate!==null&&f.alternate.memoizedState!==null||(ou=Ae())),a&4&&Zp(t);break;case 22:if(G=l!==null&&l.memoizedState!==null,t.mode&1?(Je=(N=Je)||G,Ft(r,t),Je=N):Ft(r,t),Kt(t),a&8192){if(N=t.memoizedState!==null,(t.stateNode.isHidden=N)&&!G&&(t.mode&1)!==0)for(J=t,G=t.child;G!==null;){for(Z=J=G;J!==null;){switch(K=J,Q=K.child,K.tag){case 0:case 11:case 14:case 15:Ui(4,K,K.return);break;case 1:Or(K,K.return);var te=K.stateNode;if(typeof te.componentWillUnmount=="function"){a=K,l=K.return;try{r=a,te.props=r.memoizedProps,te.state=r.memoizedState,te.componentWillUnmount()}catch(re){Me(a,l,re)}}break;case 5:Or(K,K.return);break;case 22:if(K.memoizedState!==null){Qp(Z);continue}}Q!==null?(Q.return=K,J=Q):Qp(Z)}G=G.sibling}e:for(G=null,Z=t;;){if(Z.tag===5){if(G===null){G=Z;try{f=Z.stateNode,N?(p=f.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none"):(P=Z.stateNode,T=Z.memoizedProps.style,y=T!=null&&T.hasOwnProperty("display")?T.display:null,P.style.display=kd("display",y))}catch(re){Me(t,t.return,re)}}}else if(Z.tag===6){if(G===null)try{Z.stateNode.nodeValue=N?"":Z.memoizedProps}catch(re){Me(t,t.return,re)}}else if((Z.tag!==22&&Z.tag!==23||Z.memoizedState===null||Z===t)&&Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===t)break e;for(;Z.sibling===null;){if(Z.return===null||Z.return===t)break e;G===Z&&(G=null),Z=Z.return}G===Z&&(G=null),Z.sibling.return=Z.return,Z=Z.sibling}}break;case 19:Ft(r,t),Kt(t),a&4&&Zp(t);break;case 21:break;default:Ft(r,t),Kt(t)}}function Kt(t){var r=t.flags;if(r&2){try{e:{for(var l=t.return;l!==null;){if(Kp(l)){var a=l;break e}l=l.return}throw Error(i(160))}switch(a.tag){case 5:var f=a.stateNode;a.flags&32&&(di(f,""),a.flags&=-33);var p=Wp(t);nu(t,p,f);break;case 3:case 4:var y=a.stateNode.containerInfo,P=Wp(t);tu(t,P,y);break;default:throw Error(i(161))}}catch(T){Me(t,t.return,T)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function Gy(t,r,l){J=t,Xp(t)}function Xp(t,r,l){for(var a=(t.mode&1)!==0;J!==null;){var f=J,p=f.child;if(f.tag===22&&a){var y=f.memoizedState!==null||pl;if(!y){var P=f.alternate,T=P!==null&&P.memoizedState!==null||Je;P=pl;var N=Je;if(pl=y,(Je=T)&&!N)for(J=f;J!==null;)y=J,T=y.child,y.tag===22&&y.memoizedState!==null?Jp(f):T!==null?(T.return=y,J=T):Jp(f);for(;p!==null;)J=p,Xp(p),p=p.sibling;J=f,pl=P,Je=N}Yp(t)}else(f.subtreeFlags&8772)!==0&&p!==null?(p.return=f,J=p):Yp(t)}}function Yp(t){for(;J!==null;){var r=J;if((r.flags&8772)!==0){var l=r.alternate;try{if((r.flags&8772)!==0)switch(r.tag){case 0:case 11:case 15:Je||hl(5,r);break;case 1:var a=r.stateNode;if(r.flags&4&&!Je)if(l===null)a.componentDidMount();else{var f=r.elementType===r.type?l.memoizedProps:_t(r.type,l.memoizedProps);a.componentDidUpdate(f,l.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var p=r.updateQueue;p!==null&&Zf(r,p,a);break;case 3:var y=r.updateQueue;if(y!==null){if(l=null,r.child!==null)switch(r.child.tag){case 5:l=r.child.stateNode;break;case 1:l=r.child.stateNode}Zf(r,y,l)}break;case 5:var P=r.stateNode;if(l===null&&r.flags&4){l=P;var T=r.memoizedProps;switch(r.type){case"button":case"input":case"select":case"textarea":T.autoFocus&&l.focus();break;case"img":T.src&&(l.src=T.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(r.memoizedState===null){var N=r.alternate;if(N!==null){var G=N.memoizedState;if(G!==null){var Z=G.dehydrated;Z!==null&&Si(Z)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}Je||r.flags&512&&eu(r)}catch(K){Me(r,r.return,K)}}if(r===t){J=null;break}if(l=r.sibling,l!==null){l.return=r.return,J=l;break}J=r.return}}function Qp(t){for(;J!==null;){var r=J;if(r===t){J=null;break}var l=r.sibling;if(l!==null){l.return=r.return,J=l;break}J=r.return}}function Jp(t){for(;J!==null;){var r=J;try{switch(r.tag){case 0:case 11:case 15:var l=r.return;try{hl(4,r)}catch(T){Me(r,l,T)}break;case 1:var a=r.stateNode;if(typeof a.componentDidMount=="function"){var f=r.return;try{a.componentDidMount()}catch(T){Me(r,f,T)}}var p=r.return;try{eu(r)}catch(T){Me(r,p,T)}break;case 5:var y=r.return;try{eu(r)}catch(T){Me(r,y,T)}}}catch(T){Me(r,r.return,T)}if(r===t){J=null;break}var P=r.sibling;if(P!==null){P.return=r.return,J=P;break}J=r.return}}var Zy=Math.ceil,vl=B.ReactCurrentDispatcher,ru=B.ReactCurrentOwner,Pt=B.ReactCurrentBatchConfig,me=0,Ue=null,Oe=null,Ze=0,yt=0,Br=bn(0),je=0,Ki=null,Un=0,ml=0,iu=0,Wi=null,at=null,ou=0,Hr=1/0,rn=null,gl=!1,lu=null,Cn=null,yl=!1,Tn=null,xl=0,Gi=0,su=null,bl=-1,wl=0;function tt(){return(me&6)!==0?Ae():bl!==-1?bl:bl=Ae()}function kn(t){return(t.mode&1)===0?1:(me&2)!==0&&Ze!==0?Ze&-Ze:Ry.transition!==null?(wl===0&&(wl=Ud()),wl):(t=we,t!==0||(t=window.event,t=t===void 0?16:Jd(t.type)),t)}function At(t,r,l,a){if(50<Gi)throw Gi=0,su=null,Error(i(185));gi(t,l,a),((me&2)===0||t!==Ue)&&(t===Ue&&((me&2)===0&&(ml|=l),je===4&&In(t,Ze)),ut(t,a),l===1&&me===0&&(r.mode&1)===0&&(Hr=Ae()+500,qo&&Sn()))}function ut(t,r){var l=t.callbackNode;R1(t,r);var a=Lo(t,t===Ue?Ze:0);if(a===0)l!==null&&jd(l),t.callbackNode=null,t.callbackPriority=0;else if(r=a&-a,t.callbackPriority!==r){if(l!=null&&jd(l),r===1)t.tag===0?Ly(th.bind(null,t)):Bf(th.bind(null,t)),Cy(function(){(me&6)===0&&Sn()}),l=null;else{switch(Kd(a)){case 1:l=Hs;break;case 4:l=Vd;break;case 16:l=Co;break;case 536870912:l=zd;break;default:l=Co}l=uh(l,eh.bind(null,t))}t.callbackPriority=r,t.callbackNode=l}}function eh(t,r){if(bl=-1,wl=0,(me&6)!==0)throw Error(i(327));var l=t.callbackNode;if(jr()&&t.callbackNode!==l)return null;var a=Lo(t,t===Ue?Ze:0);if(a===0)return null;if((a&30)!==0||(a&t.expiredLanes)!==0||r)r=Sl(t,a);else{r=a;var f=me;me|=2;var p=rh();(Ue!==t||Ze!==r)&&(rn=null,Hr=Ae()+500,Wn(t,r));do try{Yy();break}catch(P){nh(t,P)}while(!0);Pa(),vl.current=p,me=f,Oe!==null?r=0:(Ue=null,Ze=0,r=je)}if(r!==0){if(r===2&&(f=js(t),f!==0&&(a=f,r=au(t,f))),r===1)throw l=Ki,Wn(t,0),In(t,a),ut(t,Ae()),l;if(r===6)In(t,a);else{if(f=t.current.alternate,(a&30)===0&&!qy(f)&&(r=Sl(t,a),r===2&&(p=js(t),p!==0&&(a=p,r=au(t,p))),r===1))throw l=Ki,Wn(t,0),In(t,a),ut(t,Ae()),l;switch(t.finishedWork=f,t.finishedLanes=a,r){case 0:case 1:throw Error(i(345));case 2:Gn(t,at,rn);break;case 3:if(In(t,a),(a&130023424)===a&&(r=ou+500-Ae(),10<r)){if(Lo(t,0)!==0)break;if(f=t.suspendedLanes,(f&a)!==a){tt(),t.pingedLanes|=t.suspendedLanes&f;break}t.timeoutHandle=ha(Gn.bind(null,t,at,rn),r);break}Gn(t,at,rn);break;case 4:if(In(t,a),(a&4194240)===a)break;for(r=t.eventTimes,f=-1;0<a;){var y=31-It(a);p=1<<y,y=r[y],y>f&&(f=y),a&=~p}if(a=f,a=Ae()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*Zy(a/1960))-a,10<a){t.timeoutHandle=ha(Gn.bind(null,t,at,rn),a);break}Gn(t,at,rn);break;case 5:Gn(t,at,rn);break;default:throw Error(i(329))}}}return ut(t,Ae()),t.callbackNode===l?eh.bind(null,t):null}function au(t,r){var l=Wi;return t.current.memoizedState.isDehydrated&&(Wn(t,r).flags|=256),t=Sl(t,r),t!==2&&(r=at,at=l,r!==null&&uu(r)),t}function uu(t){at===null?at=t:at.push.apply(at,t)}function qy(t){for(var r=t;;){if(r.flags&16384){var l=r.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var a=0;a<l.length;a++){var f=l[a],p=f.getSnapshot;f=f.value;try{if(!Lt(p(),f))return!1}catch{return!1}}}if(l=r.child,r.subtreeFlags&16384&&l!==null)l.return=r,r=l;else{if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function In(t,r){for(r&=~iu,r&=~ml,t.suspendedLanes|=r,t.pingedLanes&=~r,t=t.expirationTimes;0<r;){var l=31-It(r),a=1<<l;t[l]=-1,r&=~a}}function th(t){if((me&6)!==0)throw Error(i(327));jr();var r=Lo(t,0);if((r&1)===0)return ut(t,Ae()),null;var l=Sl(t,r);if(t.tag!==0&&l===2){var a=js(t);a!==0&&(r=a,l=au(t,a))}if(l===1)throw l=Ki,Wn(t,0),In(t,r),ut(t,Ae()),l;if(l===6)throw Error(i(345));return t.finishedWork=t.current.alternate,t.finishedLanes=r,Gn(t,at,rn),ut(t,Ae()),null}function cu(t,r){var l=me;me|=1;try{return t(r)}finally{me=l,me===0&&(Hr=Ae()+500,qo&&Sn())}}function Kn(t){Tn!==null&&Tn.tag===0&&(me&6)===0&&jr();var r=me;me|=1;var l=Pt.transition,a=we;try{if(Pt.transition=null,we=1,t)return t()}finally{we=a,Pt.transition=l,me=r,(me&6)===0&&Sn()}}function du(){yt=Br.current,Te(Br)}function Wn(t,r){t.finishedWork=null,t.finishedLanes=0;var l=t.timeoutHandle;if(l!==-1&&(t.timeoutHandle=-1,Py(l)),Oe!==null)for(l=Oe.return;l!==null;){var a=l;switch(ba(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&Go();break;case 3:Nr(),Te(ot),Te(Xe),Aa();break;case 5:Ma(a);break;case 4:Nr();break;case 13:Te(Re);break;case 19:Te(Re);break;case 10:Ca(a.type._context);break;case 22:case 23:du()}l=l.return}if(Ue=t,Oe=t=Ln(t.current,null),Ze=yt=r,je=0,Ki=null,iu=ml=Un=0,at=Wi=null,jn!==null){for(r=0;r<jn.length;r++)if(l=jn[r],a=l.interleaved,a!==null){l.interleaved=null;var f=a.next,p=l.pending;if(p!==null){var y=p.next;p.next=f,a.next=y}l.pending=a}jn=null}return t}function nh(t,r){do{var l=Oe;try{if(Pa(),ll.current=cl,sl){for(var a=_e.memoizedState;a!==null;){var f=a.queue;f!==null&&(f.pending=null),a=a.next}sl=!1}if(zn=0,ze=He=_e=null,Bi=!1,Hi=0,ru.current=null,l===null||l.return===null){je=1,Ki=r,Oe=null;break}e:{var p=t,y=l.return,P=l,T=r;if(r=Ze,P.flags|=32768,T!==null&&typeof T=="object"&&typeof T.then=="function"){var N=T,G=P,Z=G.tag;if((G.mode&1)===0&&(Z===0||Z===11||Z===15)){var K=G.alternate;K?(G.updateQueue=K.updateQueue,G.memoizedState=K.memoizedState,G.lanes=K.lanes):(G.updateQueue=null,G.memoizedState=null)}var Q=Tp(y);if(Q!==null){Q.flags&=-257,kp(Q,y,P,p,r),Q.mode&1&&Cp(p,N,r),r=Q,T=N;var te=r.updateQueue;if(te===null){var re=new Set;re.add(T),r.updateQueue=re}else te.add(T);break e}else{if((r&1)===0){Cp(p,N,r),fu();break e}T=Error(i(426))}}else if(ke&&P.mode&1){var Ne=Tp(y);if(Ne!==null){(Ne.flags&65536)===0&&(Ne.flags|=256),kp(Ne,y,P,p,r),Ea(Dr(T,P));break e}}p=T=Dr(T,P),je!==4&&(je=2),Wi===null?Wi=[p]:Wi.push(p),p=y;do{switch(p.tag){case 3:p.flags|=65536,r&=-r,p.lanes|=r;var M=$p(p,T,r);Gf(p,M);break e;case 1:P=T;var L=p.type,F=p.stateNode;if((p.flags&128)===0&&(typeof L.getDerivedStateFromError=="function"||F!==null&&typeof F.componentDidCatch=="function"&&(Cn===null||!Cn.has(F)))){p.flags|=65536,r&=-r,p.lanes|=r;var q=Pp(p,P,r);Gf(p,q);break e}}p=p.return}while(p!==null)}oh(l)}catch(ie){r=ie,Oe===l&&l!==null&&(Oe=l=l.return);continue}break}while(!0)}function rh(){var t=vl.current;return vl.current=cl,t===null?cl:t}function fu(){(je===0||je===3||je===2)&&(je=4),Ue===null||(Un&268435455)===0&&(ml&268435455)===0||In(Ue,Ze)}function Sl(t,r){var l=me;me|=2;var a=rh();(Ue!==t||Ze!==r)&&(rn=null,Wn(t,r));do try{Xy();break}catch(f){nh(t,f)}while(!0);if(Pa(),me=l,vl.current=a,Oe!==null)throw Error(i(261));return Ue=null,Ze=0,je}function Xy(){for(;Oe!==null;)ih(Oe)}function Yy(){for(;Oe!==null&&!S1();)ih(Oe)}function ih(t){var r=ah(t.alternate,t,yt);t.memoizedProps=t.pendingProps,r===null?oh(t):Oe=r,ru.current=null}function oh(t){var r=t;do{var l=r.alternate;if(t=r.return,(r.flags&32768)===0){if(l=zy(l,r,yt),l!==null){Oe=l;return}}else{if(l=Uy(l,r),l!==null){l.flags&=32767,Oe=l;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{je=6,Oe=null;return}}if(r=r.sibling,r!==null){Oe=r;return}Oe=r=t}while(r!==null);je===0&&(je=5)}function Gn(t,r,l){var a=we,f=Pt.transition;try{Pt.transition=null,we=1,Qy(t,r,l,a)}finally{Pt.transition=f,we=a}return null}function Qy(t,r,l,a){do jr();while(Tn!==null);if((me&6)!==0)throw Error(i(327));l=t.finishedWork;var f=t.finishedLanes;if(l===null)return null;if(t.finishedWork=null,t.finishedLanes=0,l===t.current)throw Error(i(177));t.callbackNode=null,t.callbackPriority=0;var p=l.lanes|l.childLanes;if(_1(t,p),t===Ue&&(Oe=Ue=null,Ze=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||yl||(yl=!0,uh(Co,function(){return jr(),null})),p=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||p){p=Pt.transition,Pt.transition=null;var y=we;we=1;var P=me;me|=4,ru.current=null,Wy(t,l),qp(l,t),yy(fa),Mo=!!da,fa=da=null,t.current=l,Gy(l),E1(),me=P,we=y,Pt.transition=p}else t.current=l;if(yl&&(yl=!1,Tn=t,xl=f),p=t.pendingLanes,p===0&&(Cn=null),C1(l.stateNode),ut(t,Ae()),r!==null)for(a=t.onRecoverableError,l=0;l<r.length;l++)f=r[l],a(f.value,{componentStack:f.stack,digest:f.digest});if(gl)throw gl=!1,t=lu,lu=null,t;return(xl&1)!==0&&t.tag!==0&&jr(),p=t.pendingLanes,(p&1)!==0?t===su?Gi++:(Gi=0,su=t):Gi=0,Sn(),null}function jr(){if(Tn!==null){var t=Kd(xl),r=Pt.transition,l=we;try{if(Pt.transition=null,we=16>t?16:t,Tn===null)var a=!1;else{if(t=Tn,Tn=null,xl=0,(me&6)!==0)throw Error(i(331));var f=me;for(me|=4,J=t.current;J!==null;){var p=J,y=p.child;if((J.flags&16)!==0){var P=p.deletions;if(P!==null){for(var T=0;T<P.length;T++){var N=P[T];for(J=N;J!==null;){var G=J;switch(G.tag){case 0:case 11:case 15:Ui(8,G,p)}var Z=G.child;if(Z!==null)Z.return=G,J=Z;else for(;J!==null;){G=J;var K=G.sibling,Q=G.return;if(Up(G),G===N){J=null;break}if(K!==null){K.return=Q,J=K;break}J=Q}}}var te=p.alternate;if(te!==null){var re=te.child;if(re!==null){te.child=null;do{var Ne=re.sibling;re.sibling=null,re=Ne}while(re!==null)}}J=p}}if((p.subtreeFlags&2064)!==0&&y!==null)y.return=p,J=y;else e:for(;J!==null;){if(p=J,(p.flags&2048)!==0)switch(p.tag){case 0:case 11:case 15:Ui(9,p,p.return)}var M=p.sibling;if(M!==null){M.return=p.return,J=M;break e}J=p.return}}var L=t.current;for(J=L;J!==null;){y=J;var F=y.child;if((y.subtreeFlags&2064)!==0&&F!==null)F.return=y,J=F;else e:for(y=L;J!==null;){if(P=J,(P.flags&2048)!==0)try{switch(P.tag){case 0:case 11:case 15:hl(9,P)}}catch(ie){Me(P,P.return,ie)}if(P===y){J=null;break e}var q=P.sibling;if(q!==null){q.return=P.return,J=q;break e}J=P.return}}if(me=f,Sn(),jt&&typeof jt.onPostCommitFiberRoot=="function")try{jt.onPostCommitFiberRoot(To,t)}catch{}a=!0}return a}finally{we=l,Pt.transition=r}}return!1}function lh(t,r,l){r=Dr(l,r),r=$p(t,r,1),t=$n(t,r,1),r=tt(),t!==null&&(gi(t,1,r),ut(t,r))}function Me(t,r,l){if(t.tag===3)lh(t,t,l);else for(;r!==null;){if(r.tag===3){lh(r,t,l);break}else if(r.tag===1){var a=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Cn===null||!Cn.has(a))){t=Dr(l,t),t=Pp(r,t,1),r=$n(r,t,1),t=tt(),r!==null&&(gi(r,1,t),ut(r,t));break}}r=r.return}}function Jy(t,r,l){var a=t.pingCache;a!==null&&a.delete(r),r=tt(),t.pingedLanes|=t.suspendedLanes&l,Ue===t&&(Ze&l)===l&&(je===4||je===3&&(Ze&130023424)===Ze&&500>Ae()-ou?Wn(t,0):iu|=l),ut(t,r)}function sh(t,r){r===0&&((t.mode&1)===0?r=1:(r=Io,Io<<=1,(Io&130023424)===0&&(Io=4194304)));var l=tt();t=en(t,r),t!==null&&(gi(t,r,l),ut(t,l))}function e2(t){var r=t.memoizedState,l=0;r!==null&&(l=r.retryLane),sh(t,l)}function t2(t,r){var l=0;switch(t.tag){case 13:var a=t.stateNode,f=t.memoizedState;f!==null&&(l=f.retryLane);break;case 19:a=t.stateNode;break;default:throw Error(i(314))}a!==null&&a.delete(r),sh(t,l)}var ah;ah=function(t,r,l){if(t!==null)if(t.memoizedProps!==r.pendingProps||ot.current)st=!0;else{if((t.lanes&l)===0&&(r.flags&128)===0)return st=!1,Vy(t,r,l);st=(t.flags&131072)!==0}else st=!1,ke&&(r.flags&1048576)!==0&&Hf(r,Yo,r.index);switch(r.lanes=0,r.tag){case 2:var a=r.type;fl(t,r),t=r.pendingProps;var f=Ir(r,Xe.current);Fr(r,l),f=Oa(null,r,a,t,f,l);var p=Ba();return r.flags|=1,typeof f=="object"&&f!==null&&typeof f.render=="function"&&f.$$typeof===void 0?(r.tag=1,r.memoizedState=null,r.updateQueue=null,lt(a)?(p=!0,Zo(r)):p=!1,r.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,Ia(r),f.updater=rl,r.stateNode=f,f._reactInternals=r,Ra(r,a,t,l),r=Ga(null,r,a,!0,p,l)):(r.tag=0,ke&&p&&xa(r),et(null,r,f,l),r=r.child),r;case 16:a=r.elementType;e:{switch(fl(t,r),t=r.pendingProps,f=a._init,a=f(a._payload),r.type=a,f=r.tag=r2(a),t=_t(a,t),f){case 0:r=Wa(null,r,a,t,l);break e;case 1:r=Fp(null,r,a,t,l);break e;case 11:r=Ip(null,r,a,t,l);break e;case 14:r=Lp(null,r,a,_t(a.type,t),l);break e}throw Error(i(306,a,""))}return r;case 0:return a=r.type,f=r.pendingProps,f=r.elementType===a?f:_t(a,f),Wa(t,r,a,f,l);case 1:return a=r.type,f=r.pendingProps,f=r.elementType===a?f:_t(a,f),Fp(t,r,a,f,l);case 3:e:{if(Ap(r),t===null)throw Error(i(387));a=r.pendingProps,p=r.memoizedState,f=p.element,Wf(t,r),nl(r,a,null,l);var y=r.memoizedState;if(a=y.element,p.isDehydrated)if(p={element:a,isDehydrated:!1,cache:y.cache,pendingSuspenseBoundaries:y.pendingSuspenseBoundaries,transitions:y.transitions},r.updateQueue.baseState=p,r.memoizedState=p,r.flags&256){f=Dr(Error(i(423)),r),r=Np(t,r,a,l,f);break e}else if(a!==f){f=Dr(Error(i(424)),r),r=Np(t,r,a,l,f);break e}else for(gt=xn(r.stateNode.containerInfo.firstChild),mt=r,ke=!0,Rt=null,l=tp(r,null,a,l),r.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(_r(),a===f){r=nn(t,r,l);break e}et(t,r,a,l)}r=r.child}return r;case 5:return np(r),t===null&&Sa(r),a=r.type,f=r.pendingProps,p=t!==null?t.memoizedProps:null,y=f.children,pa(a,f)?y=null:p!==null&&pa(a,p)&&(r.flags|=32),Mp(t,r),et(t,r,y,l),r.child;case 6:return t===null&&Sa(r),null;case 13:return Dp(t,r,l);case 4:return _a(r,r.stateNode.containerInfo),a=r.pendingProps,t===null?r.child=Ar(r,null,a,l):et(t,r,a,l),r.child;case 11:return a=r.type,f=r.pendingProps,f=r.elementType===a?f:_t(a,f),Ip(t,r,a,f,l);case 7:return et(t,r,r.pendingProps,l),r.child;case 8:return et(t,r,r.pendingProps.children,l),r.child;case 12:return et(t,r,r.pendingProps.children,l),r.child;case 10:e:{if(a=r.type._context,f=r.pendingProps,p=r.memoizedProps,y=f.value,$e(Jo,a._currentValue),a._currentValue=y,p!==null)if(Lt(p.value,y)){if(p.children===f.children&&!ot.current){r=nn(t,r,l);break e}}else for(p=r.child,p!==null&&(p.return=r);p!==null;){var P=p.dependencies;if(P!==null){y=p.child;for(var T=P.firstContext;T!==null;){if(T.context===a){if(p.tag===1){T=tn(-1,l&-l),T.tag=2;var N=p.updateQueue;if(N!==null){N=N.shared;var G=N.pending;G===null?T.next=T:(T.next=G.next,G.next=T),N.pending=T}}p.lanes|=l,T=p.alternate,T!==null&&(T.lanes|=l),Ta(p.return,l,r),P.lanes|=l;break}T=T.next}}else if(p.tag===10)y=p.type===r.type?null:p.child;else if(p.tag===18){if(y=p.return,y===null)throw Error(i(341));y.lanes|=l,P=y.alternate,P!==null&&(P.lanes|=l),Ta(y,l,r),y=p.sibling}else y=p.child;if(y!==null)y.return=p;else for(y=p;y!==null;){if(y===r){y=null;break}if(p=y.sibling,p!==null){p.return=y.return,y=p;break}y=y.return}p=y}et(t,r,f.children,l),r=r.child}return r;case 9:return f=r.type,a=r.pendingProps.children,Fr(r,l),f=Et(f),a=a(f),r.flags|=1,et(t,r,a,l),r.child;case 14:return a=r.type,f=_t(a,r.pendingProps),f=_t(a.type,f),Lp(t,r,a,f,l);case 15:return Rp(t,r,r.type,r.pendingProps,l);case 17:return a=r.type,f=r.pendingProps,f=r.elementType===a?f:_t(a,f),fl(t,r),r.tag=1,lt(a)?(t=!0,Zo(r)):t=!1,Fr(r,l),Yf(r,a,f),Ra(r,a,f,l),Ga(null,r,a,!0,t,l);case 19:return Bp(t,r,l);case 22:return _p(t,r,l)}throw Error(i(156,r.tag))};function uh(t,r){return Hd(t,r)}function n2(t,r,l,a){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ct(t,r,l,a){return new n2(t,r,l,a)}function pu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function r2(t){if(typeof t=="function")return pu(t)?1:0;if(t!=null){if(t=t.$$typeof,t===ne)return 11;if(t===ue)return 14}return 2}function Ln(t,r){var l=t.alternate;return l===null?(l=Ct(t.tag,r,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=r,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&14680064,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,r=t.dependencies,l.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l}function El(t,r,l,a,f,p){var y=2;if(a=t,typeof t=="function")pu(t)&&(y=1);else if(typeof t=="string")y=5;else e:switch(t){case W:return Zn(l.children,f,p,r);case C:y=8,f|=8;break;case U:return t=Ct(12,l,r,f|2),t.elementType=U,t.lanes=p,t;case D:return t=Ct(13,l,r,f),t.elementType=D,t.lanes=p,t;case j:return t=Ct(19,l,r,f),t.elementType=j,t.lanes=p,t;case Y:return $l(l,f,p,r);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case O:y=10;break e;case H:y=9;break e;case ne:y=11;break e;case ue:y=14;break e;case xe:y=16,a=null;break e}throw Error(i(130,t==null?t:typeof t,""))}return r=Ct(y,l,r,f),r.elementType=t,r.type=a,r.lanes=p,r}function Zn(t,r,l,a){return t=Ct(7,t,a,r),t.lanes=l,t}function $l(t,r,l,a){return t=Ct(22,t,a,r),t.elementType=Y,t.lanes=l,t.stateNode={isHidden:!1},t}function hu(t,r,l){return t=Ct(6,t,null,r),t.lanes=l,t}function vu(t,r,l){return r=Ct(4,t.children!==null?t.children:[],t.key,r),r.lanes=l,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}function i2(t,r,l,a,f){this.tag=r,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Vs(0),this.expirationTimes=Vs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vs(0),this.identifierPrefix=a,this.onRecoverableError=f,this.mutableSourceEagerHydrationData=null}function mu(t,r,l,a,f,p,y,P,T){return t=new i2(t,r,l,P,T),r===1?(r=1,p===!0&&(r|=8)):r=0,p=Ct(3,null,null,r),t.current=p,p.stateNode=t,p.memoizedState={element:a,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ia(p),t}function o2(t,r,l){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:V,key:a==null?null:""+a,children:t,containerInfo:r,implementation:l}}function ch(t){if(!t)return wn;t=t._reactInternals;e:{if(Nn(t)!==t||t.tag!==1)throw Error(i(170));var r=t;do{switch(r.tag){case 3:r=r.stateNode.context;break e;case 1:if(lt(r.type)){r=r.stateNode.__reactInternalMemoizedMergedChildContext;break e}}r=r.return}while(r!==null);throw Error(i(171))}if(t.tag===1){var l=t.type;if(lt(l))return Df(t,l,r)}return r}function dh(t,r,l,a,f,p,y,P,T){return t=mu(l,a,!0,t,f,p,y,P,T),t.context=ch(null),l=t.current,a=tt(),f=kn(l),p=tn(a,f),p.callback=r??null,$n(l,p,f),t.current.lanes=f,gi(t,f,a),ut(t,a),t}function Pl(t,r,l,a){var f=r.current,p=tt(),y=kn(f);return l=ch(l),r.context===null?r.context=l:r.pendingContext=l,r=tn(p,y),r.payload={element:t},a=a===void 0?null:a,a!==null&&(r.callback=a),t=$n(f,r,y),t!==null&&(At(t,f,y,p),tl(t,f,y)),y}function Cl(t){return t=t.current,t.child?(t.child.tag===5,t.child.stateNode):null}function fh(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<r?l:r}}function gu(t,r){fh(t,r),(t=t.alternate)&&fh(t,r)}function l2(){return null}var ph=typeof reportError=="function"?reportError:function(t){console.error(t)};function yu(t){this._internalRoot=t}Tl.prototype.render=yu.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(i(409));Pl(t,r,null,null)},Tl.prototype.unmount=yu.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;Kn(function(){Pl(null,t,null,null)}),r[Xt]=null}};function Tl(t){this._internalRoot=t}Tl.prototype.unstable_scheduleHydration=function(t){if(t){var r=Zd();t={blockedOn:null,target:t,priority:r};for(var l=0;l<mn.length&&r!==0&&r<mn[l].priority;l++);mn.splice(l,0,t),l===0&&Yd(t)}};function xu(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function kl(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function hh(){}function s2(t,r,l,a,f){if(f){if(typeof a=="function"){var p=a;a=function(){var N=Cl(y);p.call(N)}}var y=dh(r,a,t,0,null,!1,!1,"",hh);return t._reactRootContainer=y,t[Xt]=y.current,Ri(t.nodeType===8?t.parentNode:t),Kn(),y}for(;f=t.lastChild;)t.removeChild(f);if(typeof a=="function"){var P=a;a=function(){var N=Cl(T);P.call(N)}}var T=mu(t,0,!1,null,null,!1,!1,"",hh);return t._reactRootContainer=T,t[Xt]=T.current,Ri(t.nodeType===8?t.parentNode:t),Kn(function(){Pl(r,T,l,a)}),T}function Il(t,r,l,a,f){var p=l._reactRootContainer;if(p){var y=p;if(typeof f=="function"){var P=f;f=function(){var T=Cl(y);P.call(T)}}Pl(r,y,t,f)}else y=s2(l,r,t,f,a);return Cl(y)}Wd=function(t){switch(t.tag){case 3:var r=t.stateNode;if(r.current.memoizedState.isDehydrated){var l=mi(r.pendingLanes);l!==0&&(zs(r,l|1),ut(r,Ae()),(me&6)===0&&(Hr=Ae()+500,Sn()))}break;case 13:Kn(function(){var a=en(t,1);if(a!==null){var f=tt();At(a,t,1,f)}}),gu(t,1)}},Us=function(t){if(t.tag===13){var r=en(t,134217728);if(r!==null){var l=tt();At(r,t,134217728,l)}gu(t,134217728)}},Gd=function(t){if(t.tag===13){var r=kn(t),l=en(t,r);if(l!==null){var a=tt();At(l,t,r,a)}gu(t,r)}},Zd=function(){return we},qd=function(t,r){var l=we;try{return we=t,r()}finally{we=l}},Ns=function(t,r,l){switch(r){case"input":if(Ht(t,l),r=l.name,l.type==="radio"&&r!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),r=0;r<l.length;r++){var a=l[r];if(a!==t&&a.form===t.form){var f=Wo(a);if(!f)throw Error(i(90));ui(a),Ht(a,f)}}}break;case"textarea":$d(t,l);break;case"select":r=l.value,r!=null&&gr(t,!!l.multiple,r,!1)}},Md=cu,Fd=Kn;var a2={usingClientEntryPoint:!1,Events:[Fi,Tr,Wo,Rd,_d,cu]},Zi={findFiberByHostInstance:Dn,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},u2={bundleType:Zi.bundleType,version:Zi.version,rendererPackageName:Zi.rendererPackageName,rendererConfig:Zi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:B.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Od(t),t===null?null:t.stateNode},findFiberByHostInstance:Zi.findFiberByHostInstance||l2,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ll=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ll.isDisabled&&Ll.supportsFiber)try{To=Ll.inject(u2),jt=Ll}catch{}}return ct.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=a2,ct.createPortal=function(t,r){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!xu(r))throw Error(i(200));return o2(t,r,null,l)},ct.createRoot=function(t,r){if(!xu(t))throw Error(i(299));var l=!1,a="",f=ph;return r!=null&&(r.unstable_strictMode===!0&&(l=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onRecoverableError!==void 0&&(f=r.onRecoverableError)),r=mu(t,1,!1,null,null,l,!1,a,f),t[Xt]=r.current,Ri(t.nodeType===8?t.parentNode:t),new yu(r)},ct.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var r=t._reactInternals;if(r===void 0)throw typeof t.render=="function"?Error(i(188)):(t=Object.keys(t).join(","),Error(i(268,t)));return t=Od(r),t=t===null?null:t.stateNode,t},ct.flushSync=function(t){return Kn(t)},ct.hydrate=function(t,r,l){if(!kl(r))throw Error(i(200));return Il(null,t,r,!0,l)},ct.hydrateRoot=function(t,r,l){if(!xu(t))throw Error(i(405));var a=l!=null&&l.hydratedSources||null,f=!1,p="",y=ph;if(l!=null&&(l.unstable_strictMode===!0&&(f=!0),l.identifierPrefix!==void 0&&(p=l.identifierPrefix),l.onRecoverableError!==void 0&&(y=l.onRecoverableError)),r=dh(r,null,t,1,l??null,f,!1,p,y),t[Xt]=r.current,Ri(t),a)for(t=0;t<a.length;t++)l=a[t],f=l._getVersion,f=f(l._source),r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[l,f]:r.mutableSourceEagerHydrationData.push(l,f);return new Tl(r)},ct.render=function(t,r,l){if(!kl(r))throw Error(i(200));return Il(null,t,r,!1,l)},ct.unmountComponentAtNode=function(t){if(!kl(t))throw Error(i(40));return t._reactRootContainer?(Kn(function(){Il(null,null,t,!1,function(){t._reactRootContainer=null,t[Xt]=null})}),!0):!1},ct.unstable_batchedUpdates=cu,ct.unstable_renderSubtreeIntoContainer=function(t,r,l,a){if(!kl(l))throw Error(i(200));if(t==null||t._reactInternals===void 0)throw Error(i(38));return Il(t,r,l,!1,a)},ct.version="18.2.0-next-9e3b772b8-20220608",ct}var bh;function Y0(){if(bh)return wu.exports;bh=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),wu.exports=x2(),wu.exports}var wh;function b2(){if(wh)return Rl;wh=1;var e=Y0();return Rl.createRoot=e.createRoot,Rl.hydrateRoot=e.hydrateRoot,Rl}var w2=b2();const X8=fs(w2);const lc=b.createContext([980]);function S2({value:e,children:n}){return E.jsx(lc.Provider,{value:e,children:n})}function Q0(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function ao(e,n=1e3){let i={},o=0;return((s,u)=>{const c=typeof s=="string"&&u==null?s:JSON.stringify([s,u]);return i[c]||(o>n&&(i={},o=0),o++,i[c]=u==null?e(s):e(s,u)),i[c]})}function E2(e){return e?Object.keys(e).reduce((n,i)=>(e[i]&&(n[`data-is-${Q0(i)}`]=""),n),{}):null}const $2=ao(E2);function P2(e){return e.filter(n=>{const i=[];return!n.find(o=>{const s=o.match(/\[(.+?)[=\]]/);return s?i.includes(s[1])?!0:(i.push(s[1]),!1):!1})})}function C2(e,n){const i=n?[[]]:[];if(e.length===0)return[e];if(e.length<2)return i.concat([e]);const o=function(s=[],u){for(let c=0;c<u.length;c++)i.push([...s,u[c]]),o([...s,u[c]],u.slice(c+1))};return o([],e),P2(i)}const T2=typeof CSS<"u"&&typeof CSS?.supports=="function"?CSS.supports("height: 100dvh"):!1,J0={r:"var(--radius)",bw:"var(--border-width)",ow:"var(--outline-width)",x:"var(--gap)",fs:"var(--font-size)",lh:"var(--line-height)",rp:"var(--rem-pixel)",gp:"var(--column-gap)",dvh:function(n){return T2?`${n}dvh`:`calc(var(--cube-dynamic-viewport-height, 100dvh) / 100 * ${n})`},sp:function(n){return`((${n} * var(--column-width)) + (${n-1} * var(--column-gap)))`}},cn=["top","right","bottom","left"],k2=["rgb","rgba"],I2=["auto","max-content","min-content","none","subgrid","initial"],Sh=/("[^"]*")|('[^']*')|([a-z-]+\()|(#[a-z0-9.-]{2,}(?![a-f0-9[-]))|(--[a-z0-9-]+|@[a-z0-9-]+)|([a-z][a-z0-9-]*)|(([0-9]+(?![0-9.])|[0-9-.]{2,}|[0-9-]{2,}|[0-9.-]{3,})([a-z%]{0,3}))|([*/+-])|([()])|(,)/gi,L2=new Map,R2=new Map,_2=new Map,M2=1e4,F2=[R2,L2,_2],A2=/calc\((\d*)\)/gi,$u=new Map;function Eh(e){return $u.has(e)||$u.set(e,e.match(/^[a-z]/)?`[data-is-${Q0(e)}]`:e),$u.get(e)}function Ve(e,n=0){if(typeof e=="number"&&(e=String(e)),typeof e!="string")return{values:[],mods:[],all:[],value:""};const i=F2[n];if(!i.has(e)){i.size>M2&&i.clear();const o=[],s=[],u=[],c=n!==1;let d="",v=-1,h=0,m="",g="",x="",w="",$;for(Sh.lastIndex=0,e=e.replace(/@\(/g,"var(--");$=Sh.exec(e);){let[,S,k,A,I,R,B,_,V,W,C,U,O]=$;if(k||S)d+=`${k||S} `;else if(A)x=A.slice(0,-1),d+=A,h++;else if(I)n===2?g=I:g=io(I,!1).color;else if(B)h||I2.includes(B)?d+=`${B} `:(o.push(B),s.push(B),m+=`${B} `);else if(U)U==="("&&(~v||(v=h,d+="calc"),h++),U===")"&&h&&(d=d.trim(),h>0&&h--,h===v&&(v=-1)),U===")"&&!h&&(w=x,x=""),d+=`${U}${U===")"?" ":""}`;else if(C){if(!~v&&c){if(d){if(d.includes("(")){const H=d.lastIndexOf("(");d=`${d.slice(0,H)}(calc(${d.slice(H+1)}`,v=h,h++}}else if(u.length){m=m.slice(0,m.length-u[u.length-1].length-1);let H=u.splice(u.length-1,1)[0];s.splice(u.length-1,1),H&&(H.startsWith("calc(")&&(H=H.slice(4)),v=h,h++,d=`calc((${H}) `)}}d+=`${C} `}else if(_)if(W&&J0[W]){let H=B2(V,W);!~v&&H.startsWith("(")&&(d+="calc"),d+=`${H} `}else d+=`${_} `;else R?(R=R.replace("@","--"),x!=="var"?d+=`var(${R}) `:d+=`${R} `):O&&(~v?(v=-1,h--,d=`${d.trim()}), `):d=`${d.trim()}, `,h||s.push(","));if(d&&!h){let H=Ch(d);k2.includes(w)?g=H:H.startsWith("color(")?(H=H.slice(6,-1),g=io(H).color):(H!==","&&(u.push(H),s.push(H)),m+=`${H} `),d=""}}if(h){let S=Ch(`${d.trim()}${")".repeat(h)}`);S.startsWith("color(")?(S=S.slice(6,-1),g=io(S).color):(S!==","&&(u.push(S),s.push(S)),m+=S)}i.set(e,{values:u,mods:o,all:s,value:`${m} ${g}`.trim(),color:g})}return i.get(e)}function io(e,n=!1){if(e=e.trim(),!e)return{};if(e.startsWith("#")){e=e.slice(1);const d=e.split(".");let v=100;d.length>1&&(d[1].length===1?v=Number(d[1])*10:v=Number(d[1]),Number.isNaN(v)&&(v=100));const h=d[0];let m;return h==="current"?m="currentColor":v>100?v=100:v<0&&(v=0),m||(m=v!==100?$h(h,Math.round(v)/100):N2(h,null,Kl(`#${h}`))),{color:m,name:h,opacity:v??100}}let{values:i,mods:o,color:s}=Ve(e),u,c;if(s)return{color:(s.startsWith("var(")?s:Kl(s))||s};if(i.forEach(d=>{d.match(/^((var|rgb|rgba|hsl|hsla)\(|#[0-9a-f]{3,6})/)?s=d.startsWith("var")?d:Kl(d):d.endsWith("%")&&(c=parseInt(d))}),s)return{color:s};if(u=u||o[0],!u)return{};if(!c){let d;return u==="current"?d="currentColor":u==="inherit"?d="inherit":u!=="transparent"&&u!=="currentColor"?d=`var(--${u}-color, ${u})`:d=u,{name:u,color:d}}return{color:$h(u,Math.round(c)/100),name:u,opacity:c}}function $h(e,n,i,o){return`rgba(var(--${e}-color-rgb), ${n})`}function N2(e,n,i){const o=i?`, ${i}`:"";return`var(--${e}-color${o})`}function Kl(e,n=!1){if(e)return e.startsWith("rgb")?e:e.startsWith("#")?D2(e):null}function Ph(e){return e.match(/\d+/g).map(n=>parseInt(n)).slice(0,3)}function D2(e){const n=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(i,o,s,u)=>"#"+o+o+s+s+u+u).substring(1).match(/.{2}/g).map((i,o)=>parseInt(i,16)*(o===3?.00392156862745098:1));return Number.isNaN(n[0])?"rgba(0, 0, 0, 1)":n.length===3?`rgb(${n.join(", ")})`:n.length===4?`rgba(${n.join(", ")})`:null}function O2(e,n,i){e.forEach(o=>{n.includes(o)&&(i.push(o),n.splice(n.indexOf(o),1))})}function Ch(e){return e.trim().replace(A2,(n,i)=>i)}function Yl(e,n){return e.filter(i=>n.includes(i))}function B2(e,n){const i=J0[n];return typeof i=="function"?i(e):e==="1"||e===1?i:`(${e} * ${i})`}function Pe(e,n=[],i,o,s=[]){const u={...i,...e.styles};return Object.keys(e).forEach(c=>{const d=o&&o[c]||c,v=e[c];s&&s.includes(c)||n.includes(d)&&(u[d]=v)},{}),u}function ev(e,n=""){if(!e)return"";if(Array.isArray(e))return e.reduce((c,d)=>c+ev(d,n),"");const{$:i,css:o,...s}=e;let u=Object.keys(s).reduce((c,d)=>{const v=s[d];return Array.isArray(v)?c+v.reduce((h,m)=>m?h+`${d}:${m};
9
+ `:h,""):v?`${c}${d}:${v};
10
+ `:c},"");return o&&(u=o+`
11
+ `+u),u?Array.isArray(i)?`${n?`${n}{
12
+ `:""}${i.reduce((c,d)=>c+`${d?`&${d}{
13
+ `:""}${u}${d?`}
14
+ `:""}`,"")}${n?`}
15
+ `:""}`:`${n?`${n}{
16
+ `:""}${i?`&${i}{
17
+ `:""}${u}${i?`}
18
+ `:""}${n?`}
19
+ `:""}`:""}function H2(e,n,i=""){return n.reduce((o,s)=>{if(!s.value)return o;const u=`${(s.mods||[]).map(Eh).join("")}${(s.notMods||[]).map(c=>{let d=Eh(c);return d.startsWith(":not(")?d.slice(5,-1):`:not(${d})`}).join("")}`;return`${o}${e}${u}${i}{
20
+ ${s.value.replace(/^&&/,"&")}}
21
+ `},"")}function tv(e,n=1e3){const i=ao(s=>ev(e(s)),n),o=ao((s,u="")=>{if(s==null||s===!1)return null;const c=V2(s);return j2(c,i),H2("&&",c,u)},n);return Object.assign(o,{__lookupStyles:e.__lookupStyles})}function j2(e,n){const i=new Map;return e.forEach(o=>{i.get(o.value)||i.set(o.value,n(o.value)),o.value=i.get(o.value)}),e}function V2(e,n){const i=Object.keys(e);if(!i.length)return[];const o={};let s=new Set;i.forEach(d=>{o[d]=G2(e[d]),o[d].mods.forEach(s.add,s)});const u=Array.from(s),c=[];return C2(u,!0).forEach(d=>{c.push({mods:d,notMods:u.filter(v=>!d.includes(v)),value:i.reduce((v,h)=>(v[h]=o[h].states.find(m=>sc(m.model,g=>d.includes(g))).value,v),{})})}),c}const z2=/([&|!^])|([()])|([a-z][a-z0-9-]+)|(:[a-z][a-z0-9-]+\([:a-z0-9-]+\)|:[a-z][a-z0-9-]+)|(\.[a-z][a-z0-9-]+)|(\[[^\]]+])/gi,U2=["!","&","|","^"];function Pu(e){return e.length===1?e[0]:(U2.forEach(n=>{let i;for(;(i=e.indexOf(n))!==-1;){const o=e[i];o==="!"?e[i+1]&&e[i+1].length!==1?e.splice(i,2,["!",e[i+1]]):e.splice(i,1):e[i-1]&&e[i+1]&&e[i-1].length!==1&&e[i+1].length!==1?e.splice(i-1,3,[o,e[i-1],e[i+1]]):e.splice(i,1)}}),e.length===1?e[0]:e)}function K2(e,n){const i=e.replace(/,/g,"|").match(z2);if(!i||!i.length)return{model:void 0,mods:[],notMods:[],tokens:[],value:n};if(i.length===1)return{model:i[0],mods:i.slice(0),notMods:[],tokens:i,value:n};const o=[];let s=[[]],u=s[0],c=0;for(i.forEach(d=>{switch(d){case"(":const v=[];c++,u=s[c]=v;break;case")":c--,s[c].push(Pu(u)),u=s[c];break;default:d.length>1&&(o.includes(d)||o.push(d)),u.push(d)}});c;)c--,s[c].push(Pu(u)),u=s[c];return{tokens:i,mods:o,notMods:[],model:Pu(s[0]),value:n}}const W2=ao(K2);function G2(e){if(typeof e!="object"||!e)return{states:[{model:void 0,mods:[],notMods:[],value:e}],mods:[]};const n=[];Object.keys(e).forEach(s=>{const u=W2(s,e[s]);n.push(u)}),n.reverse();let i;const o=n.reduce((s,u)=>(u.mods.length?u.mods.forEach(c=>{s.includes(c)||s.push(c)}):i=u,s),[]);return i||n.push({mods:[],notMods:o,value:!0}),{states:n,mods:o}}const Z2={"!":e=>!e,"^":(e,n)=>e^n,"|":(e,n)=>e|n,"&":(e,n)=>e&n};function sc(e,n){if(!e)return!0;if(!Array.isArray(e))return typeof n=="function"?!!n(e):!!n[e];const i=Z2[e[0]];i||console.warn("CubeUIKit: unexpected compute method in the model",e);let o=e[1];if(typeof o=="object"?o=!!sc(o,n):typeof n=="function"?o=!!n(o):o=!!n[o],e.length===2)return i(o);let s=e[2];return typeof s=="object"?s=!!sc(s,n):typeof n=="function"?s=!!n(s):s=!!n[s],!!i(o,s)}function nv({display:e="block",flow:n,gap:i}){if(typeof i=="number"&&(i=`${i}px`),!i)return;i===!0&&(i="1.5x");const o=e.includes("grid"),s=e.includes("flex"),u=n?n.includes("wrap")&&!n.includes("nowrap"):!1;!o&&n==null&&(n=s?"row":"column");const{values:c}=Ve(i);if(i=c.join(" "),o||s)return{gap:i};const d=n.includes("row")?"right":"bottom";return u?[{"margin-right":`calc(-1 * ${c[1]||c[0]})`,"margin-bottom":`calc(-1 * ${c[0]})`},{$:"& > *","margin-right":c[1]||c[0],"margin-bottom":c[0]}]:{$:"& > *:not(:last-child)",[`margin-${d}`]:i}}nv.__lookupStyles=["display","flow","gap"];function rv({fill:e}){if(!e)return"";e.startsWith("#")&&(e=Ve(e).color||e);const n=e.match(/var\(--(.+?)-color/);let i="";n&&(i=n[1]);const o=[{"background-color":e}];return i&&o.push([{$:">*","--context-fill-color":e,"--context-fill-color-rgb":`var(--${i}-color-rgb)`}]),o}rv.__lookupStyles=["fill"];function iv({display:e="block",flow:n}){let i;return e.includes("grid")?i="grid-auto-flow":e.includes("flex")&&(i="flex-flow"),i?{[i]:n}:null}iv.__lookupStyles=["display","flow"];const Th={input:[{css:`
22
+ -webkit-appearance: none;
23
+ word-spacing: initial;
24
+ -webkit-text-fill-color: currentColor;
25
+ `},{$:"::-webkit-search-cancel-button",css:"display: none"},{$:[":-webkit-autofill",":-webkit-autofill:hover",":-webkit-autofill:focus"],css:`
26
+ caret-color: var(--purple-color);
27
+ -webkit-text-fill-color: var(--purple-color);
28
+ -webkit-box-shadow: 0 0 0px 9999rem var(--white-color) inset;
29
+ box-shadow: 0 0 0px 9999rem var(--white-color) inset;
30
+ font-family: inherit;
31
+ font-size: inherit;
32
+ line-height: inherit;
33
+ `},{$:"[disabled]",css:`
34
+ -webkit-opacity: 1;
35
+ `},{$:"::placeholder",css:`
36
+ -webkit-text-fill-color: var(--local-placeholder-color);
37
+ color: var(--local-placeholder-color);
38
+ filter: saturate(.33);
39
+ `},{$:"::-webkit-search-cancel-button",css:`
40
+ display: none;
41
+ -webkit-appearance: none;
42
+ `},{$:":not([disabled])::placeholder",css:`--local-placeholder-color: var(--placeholder-color, rgba(var(--dark-color-rgb), .3));
43
+ `}],button:[{css:`
44
+ appearance: none;
45
+ touch-action: manipulation;
46
+ -webkit-tap-highlight-color: transparent;
47
+ text-decoration: none;
48
+ `}]};function ov({reset:e}){if(!e)return;const{mods:n}=Ve(e,1);return n.reduce((i,o)=>(Th[o]&&i.push(...Th[o]),i),[])}ov.__lookupStyles=["reset"];function lv({color:e}){if(!e)return"";e===!0&&(e="currentColor"),e.startsWith("#")&&(e=io(e).color||e);const n=e.match(/var\(--(.+?)-color/);let i="";n&&(i=n[1]);const o=[{color:e}];return i&&o.push([{"--current-color":`var(--${i}-color, ${i})`,"--current-color-rgb":`var(--${i}-color-rgb)`}]),o}lv.__lookupStyles=["color"];const q2="var(--gap)",X2="100%";function _l(e){return typeof CSS<"u"&&typeof CSS?.supports=="function"?CSS.supports("height",e):!1}const kh="stretch",Ih="fill-available",Lh="-webkit-fill-available",Rh="-moz-fill-available",Y2=_l(kh)?kh:_l(Ih)?Ih:_l(Lh)?Lh:_l(Rh)?Rh:null,Q2=["max-content","min-content","fit-content","stretch"];function sv(e){const n=`min-${e}`,i=`max-${e}`;return o=>{if(!o)return"";typeof o=="number"&&(o=`${o}px`),o=String(o);const s={[e]:"auto",[n]:"initial",[i]:"initial"},{mods:u,values:c}=Ve(o);O2(Q2,u,c),c.forEach((v,h)=>{v==="stretch"&&(c[h]=Y2||(e==="height"?"100vh":"100vw"))});let d=!1;for(let v of u)switch(v){case"min":s[n]=c[0]||q2,d=!0;break;case"max":s[i]=c[0]||X2,d=!0;break}return(!d||!u.length)&&(c.length===2?(s[n]=c[0],s[i]=c[1]):c.length===3?(s[n]=c[0],s[e]=c[1],s[i]=c[2]):s[e]=c[0]||"auto"),s}}const J2=sv("width");function av({width:e}){return J2(e)}av.__lookupStyles=["width"];const ex=sv("height");function uv({height:e}){return ex(e)}uv.__lookupStyles=["height"];const qn="var(--radius)",Ml="var(--leaf-sharp-radius)";function cv({radius:e}){if(typeof e=="number"&&(e=`${e}px`),!e)return"";e===!0&&(e="1r");let{mods:n,values:i}=Ve(e,1);if(n.includes("round")?i=["9999rem"]:n.includes("ellipse")?i=["50%"]:i.length||(i=[qn]),n.includes("leaf"))i=[i[1]||Ml,i[0]||qn,i[1]||Ml,i[0]||qn];else if(n.includes("backleaf"))i=[i[0]||qn,i[1]||Ml,i[0]||qn,i[1]||Ml];else if(n.length){const o=["0","0","0","0"];let s=!1;cn.forEach((u,c)=>{n.includes(u)&&(s=!0,o[c]=i[0]||qn,o[(c+1)%4]=i[0]||qn)}),s&&(i=o)}return[{"--local-radius":i.join(" "),"border-radius":"var(--local-radius)"},{$:">*","--context-radius":i.join(" ")}]}cv.__lookupStyles=["radius"];const tx=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"];function dv({border:e}){if(!e&&e!==0)return;e===!0&&(e="1bw");const{values:n,mods:i,color:o}=Ve(String(e)),s=Yl(i,cn),u=Yl(i,tx),c=n[0]||"var(--border-width)",d=u[0]||"solid",v=o||"var(--border-color)",h=[c,d,v].join(" ");if(!s.length)return{border:h};const m=[0,d,v].join(" ");return cn.reduce((g,x)=>(i.includes(x)?g[`border-${x}`]=h:g[`border-${x}`]=m,g),{})}dv.__lookupStyles=["border"];function nx(e){const{values:n,mods:i,color:o}=Ve(e),s=i[0]||"",u=o||"var(--shadow-color)";return[s,...n,u].join(" ")}function fv({shadow:e}){return e?(e===!0&&(e="0 5px 15px #shadow"),{"--local-shadow-box-shadow":e.split(",").map(nx).join(",")}):""}fv.__lookupStyles=["shadow"];function pv({padding:e,paddingBlock:n,paddingInline:i,paddingTop:o,paddingRight:s,paddingBottom:u,paddingLeft:c}){if(typeof e=="number"&&(e=`${e}px`),!e)return"";e===!0&&(e="1x");let{values:d,mods:v}=Ve(e),h=Yl(v,cn);d.length||(d=["var(--gap)"]),h.length||(h=cn);const m=[o,s,u,c];return h.reduce((g,x)=>{const w=cn.indexOf(x);return(w%2&&i==null||!(w%2)&&n==null)&&m[w]==null&&(g[`padding-${x}`]=d[w]||d[w%2]||d[0]),g},{})}pv.__lookupStyles=["padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingBlock","paddingInline"];function hv({paddingBlock:e,paddingTop:n,paddingBottom:i}){if(typeof e=="number"&&(e=`${e}px`),!e)return"";e===!0&&(e="1x");let{values:o}=Ve(e);o.length||(o=["var(--gap)"]);const s={};return n==null&&(s["padding-top"]=o[0]),i==null&&(s["padding-bottom"]=o[1]||o[0]),s}hv.__lookupStyles=["paddingBlock","paddingTop","paddingBottom"];function vv({paddingInline:e,paddingLeft:n,paddingRight:i}){if(typeof e=="number"&&(e=`${e}px`),!e)return"";e===!0&&(e="1x");let{values:o}=Ve(e);o.length||(o=["var(--gap)"]);const s={};return n==null&&(s["padding-left"]=o[0]),i==null&&(s["padding-right"]=o[1]||o[0]),s}vv.__lookupStyles=["paddingInline","paddingLeft","paddingRight"];function on(e,n,i,o=!1){e[`--${n}`]=(()=>{if(i==="inherit")return"inherit";const s=`var(--default-${n}, ${n==="font-family"?"var(--font, NonexistentFontName)":"inherit"})`,u=n==="font-family"?", var(--font, sans-serif)":"";return i==="default"?`${s}${u}`:`var(--${i}-${n}, ${s})${u}`})(),o||(e[n]=e[`--${n}`])}function mv({preset:e,fontSize:n,lineHeight:i,textTransform:o,letterSpacing:s,fontWeight:u,fontStyle:c,font:d}){if(!e)return"";e===!0&&(e="");const{mods:v}=Ve(e),h=v[0]||"default",m={};return n||on(m,"font-size",h),i||on(m,"line-height",h),s||on(m,"letter-spacing",h),u||on(m,"font-weight",h),c||on(m,"font-style",h),o||on(m,"text-transform",h),d||on(m,"font-family",h),on(m,"bold-font-weight",h,!0),on(m,"icon-size",h,!0),m}mv.__lookupStyles=["preset","fontSize","lineHeight","letterSpacing","textTransform","fontWeight","fontStyle","font"];function gv({fontStyle:e}){return e===!0&&(e="italic"),e!=="inherit"&&(e=e?"italic":"normal"),{"font-style":e}}gv.__lookupStyles=["fontStyle"];function yv({margin:e,marginBlock:n,marginInline:i,marginTop:o,marginRight:s,marginBottom:u,marginLeft:c}){if(typeof e=="number"&&(e=`${e}px`),!e)return"";e===!0&&(e="1x");let{values:d,mods:v}=Ve(e),h=Yl(v,cn);d.length||(d=["var(--gap)"]),h.length||(h=cn);const m=[o,s,u,c];return h.reduce((g,x)=>{const w=cn.indexOf(x);return(w%2&&i==null||!(w%2)&&n==null)&&m[w]==null&&(g[`margin-${x}`]=d[w]||d[w%2]||d[0]),g},{})}yv.__lookupStyles=["margin","marginTop","marginRight","marginBottom","marginLeft","marginBlock","marginInline"];function xv({marginBlock:e,marginTop:n,marginBottom:i}){if(typeof e=="number"&&(e=`${e}px`),!e)return"";e===!0&&(e="1x");let{values:o}=Ve(e);o.length||(o=["var(--gap)"]);const s={};return n==null&&(s["margin-top"]=o[0]),i==null&&(s["margin-bottom"]=o[1]||o[0]),s}xv.__lookupStyles=["marginBlock","marginTop","marginBottom"];function bv({marginInline:e,marginLeft:n,marginRight:i}){if(typeof e=="number"&&(e=`${e}px`),!e)return"";e===!0&&(e="1x");let{values:o}=Ve(e);o.length||(o=["var(--gap)"]);const s={};return n==null&&(s["margin-left"]=o[0]),i==null&&(s["margin-right"]=o[1]||o[0]),s}bv.__lookupStyles=["marginInline","marginLeft","marginRight"];function wv({font:e}){if(e==null||e===!1)return null;const n=e==="monospace"?"var(--monospace-font)":e===!0?"var(--font)":`${e}, var(--font)`;return{"font-family":n,"--font-family":n}}wv.__lookupStyles=["font"];function Sv({outline:e}){if(!e&&e!==0)return"";e===!0&&(e="1ow");const{values:n,color:i,mods:o}=Ve(String(e)),s=o.includes("inset"),u=n[0]||"var(--outline-width)";return{"--local-outline-box-shadow":`${s?"inset ":""}0 0 0 ${u} ${i||"var(--outline-color)"}`}}Sv.__lookupStyles=["outline"];const rx={move:["transform"],rotate:["transform"],scale:["transform"],placeSelf:["transform","top","right","bottom","left"],fill:["background-color"],border:["border","box-shadow"],filter:["filter","backdrop-filter"],radius:["border-radius"],shadow:["box-shadow"],outline:["box-shadow"],preset:["font-size","line-height","letter-spacing","font-weight","font-style"],text:["font-weight","text-decoration-color"],theme:["color","background-color","box-shadow","border","border-radius"],inset:["box-shadow"],mark:["box-shadow"],width:["max-width","min-width","width"],height:["max-height","min-height","height"],gap:["gap","margin"],zIndex:["z-index"],image:["background-image","background-position","background-size"]},ix="linear";function ox(e){return`var(--${e}-transition, var(--transition))`}function Ev({transition:e}){if(!e)return;const n=Ve(e).all;if(!n)return;let i=[];const o=[];n.forEach(c=>{c===","?i&&(o.push(i),i=[]):i.push(c)}),i&&o.push(i);const s={};return o.forEach(c=>{const d=c[0],v=c[1],h=c[2],m=c[3];(rx[d]||[d]).forEach(x=>{s[x]=[d,h,v,m]})}),{transition:Object.entries(s).map(([c,[d,v,h,m]])=>`${c} ${h||ox(d)} ${v||ix} ${m||"0s"}`).join(", ")}}Ev.__lookupStyles=["transition"];const _h={row:["* 0 0 *","0 * * 0"],column:["* * 0 0","0 0 * *"]};function $v({groupRadius:e,flow:n}){if(!e)return"";e===!0&&(e="1r");const{values:i,mods:o}=Ve(e);n=n||"row";const s=o.includes("reverse");let u=i[0];u||(o.includes("round")?u="9999rem":o.includes("ellipse")?u="50%":u="var(--radius)");const c=_h[n][s?1:0].replace(/\*/g,u),d=_h[n][s?0:1].replace(/\*/g,u);return[{$:">:first-child:not(:last-child)","border-radius":c,"--local-radius":c},{$:">:last-child:not(:first-child)","border-radius":d,"--local-radius":d},{$:">:last-child:first-child","border-radius":u,"--local-radius":u},{$:">:not(:last-child):not(:first-child)","border-radius":"0","--local-radius":"0"}]}$v.__lookupStyles=["groupRadius","flow"];function Vc(e){const n=Vc.__lookupStyles.reduce((i,o)=>(e[o]&&i.push(`var(--local-${o}-box-shadow)`),i),[]);return n.length?{"box-shadow":n.join(", ")}:""}Vc.__lookupStyles=["outline","shadow"];function Pv({styledScrollbar:e}){return e==null?null:e?[{$:"::-webkit-scrollbar",width:"var(--scrollbar-width)",height:"var(--scrollbar-width)"},{$:"::-webkit-scrollbar-track","background-color":"var(--scrollbar-bg-color)"},{$:"::-webkit-scrollbar-thumb","background-color":"var(--scrollbar-thumb-color)","border-radius":"var(--scrollbar-radius)",border:"var(--scrollbar-outline-width) solid var(--scrollbar-outline-color)","background-clip":"padding-box"},{$:"::-webkit-scrollbar-corner","background-color":"var(--scrollbar-corner-color)"},{"scrollbar-width":"thin","scrollbar-color":"var(--scrollbar-bg-color) var(--scrollbar-thumb-color)"}]:[{$:"::-webkit-scrollbar",display:"none"},{"scrollbar-width":"none"}]}Pv.__lookupStyles=["styledScrollbar"];function Cv({display:e,hide:n}){return{display:n?"none":e}}Cv.__lookupStyles=["display","hide"];function Tv({align:e}){if(typeof e=="string"&&e)return{"align-items":e,"align-content":e}}Tv.__lookupStyles=["align"];function kv({justify:e}){if(typeof e=="string"&&e)return{"justify-items":e,"justify-content":e}}kv.__lookupStyles=["justify"];function lx(e){return e.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`)}const Cu={};function Iv(e,n,i){const o=`${e}.${n??""}`;if(!Cu[o]){const s=u=>{let c=u[e];if(c==null||c===!1)return;const d=n||lx(e).replace(/^@/,"--");if(i&&typeof c!="string"&&(c=i(c),!c))return;if(typeof c=="string"&&d.startsWith("--")&&d.endsWith("-color")){c=c.trim();const h=Kl(c),{color:m,name:g}=io(c);return g&&h?{[d]:`var(--${g}-color, ${h})`,[`${d}-rgb`]:`var(--${g}-color-rgb, ${Ph(h).join(", ")})`}:g?m?{[d]:m,[`${d}-rgb`]:`var(--${g}-color-rgb)`}:{[d]:`var(--${g}-color)`,[`${d}-rgb`]:`var(--${g}-color-rgb)`}:h?{[d]:h,[`${d}-rgb`]:Ph(h).join(", ")}:{[d]:m}}const{value:v}=Ve(c,1);return{[d]:v}};s.__lookupStyles=[e],Cu[o]=tv(s)}return Cu[o]}const Fl=e=>typeof e=="number"?`${e}px`:e,Mh=e=>{if(typeof e=="number")return"minmax(1px, 1fr) ".repeat(e).trim()},Fh=e=>{if(typeof e=="number")return"auto ".repeat(e).trim()},rr={};function Ah(e,n){let i;if(typeof e=="function")i=e,e=i.__lookupStyles;else if(n)i=Object.assign(n,{__lookupStyles:e});else{console.warn("CubeUIKit: incorrect custom style definition: ",e);return}i=tv(i),Array.isArray(e)&&e.forEach(o=>{rr[o]||(rr[o]=[]),rr[o].push(i)})}function Ie(e,n,i){const o=Iv(e,n,i);rr[e]||(rr[e]=[]),rr[e].push(o)}function sx(){return Ie("fontSize"),Ie("lineHeight"),Ie("fontWeight"),Ie("fontStyle"),Ie("letterSpacing"),Ie("textTransform"),Ie("fontFamily"),Ie("paddingTop"),Ie("paddingRight"),Ie("paddingBottom"),Ie("paddingLeft"),Ie("marginTop"),Ie("marginRight"),Ie("marginBottom"),Ie("marginLeft"),Ie("top","top",Fl),Ie("right","right",Fl),Ie("bottom","bottom",Fl),Ie("left","left",Fl),Ie("gridAreas","grid-template-areas"),Ie("gridColumns","grid-template-columns",Mh),Ie("gridRows","grid-template-rows",Fh),Ie("gridTemplate","grid-template",e=>{if(typeof e=="string")return e.split("/").map((n,i)=>(i?Mh:Fh)(n)).join("/")}),[Cv,Ev,ov,rv,av,yv,xv,bv,nv,iv,lv,uv,cv,dv,fv,pv,hv,vv,Tv,kv,mv,Vc,Sv,wv,gv,$v,Pv].forEach(e=>Ah(e)),{STYLE_HANDLER_MAP:rr,defineCustomStyle:Ah,defineStyleAlias:Ie}}const{STYLE_HANDLER_MAP:Nh}=sx();function ax(e,n){return n.filter(i=>i.mediaQuery).map((i,o)=>`@media ${i.mediaQuery} {${e[o]}}`).join(`
49
+ `)}const Tu={};function ku(e){const n=e.join("|");if(!Tu[n]){const i=[];e.forEach((o,s)=>{const u={};s&&(u.max=e[s-1]-1),u.min=o,i.push(u)}),i.push({max:e[e.length-1]-1}),i.forEach(o=>{const s=[];o.min&&s.push(`(min-width: ${o.min}px)`),o.max&&s.push(`(max-width: ${o.max}px)`),o.mediaQuery=s.join(" and ")}),Tu[n]=i}return Tu[n]}function ux(e,n){if(e==null)return e;const i=Array.from(Array(n));if(typeof e=="string")return i.map(()=>e);if(Array.isArray(e)){let o=null;for(let s=0;s<i.length;s++)i[s]=e[s]==null?o:e[s],o=i[s];return i}return[]}function ac(e){return e.startsWith("&")||e.startsWith(".")||e.match(/^[A-Z]/)}function cx(e){return e.startsWith("&")?e.slice(1):e.startsWith(".")?` ${e}`:e.match(/^[A-Z]/)?` [data-element="${e}"]`:null}let Al={},Iu=0;const dx=1e3;function Wl(e,n=[],i){const o=n,s=Array.from(Array(o.length)).map(()=>""),u=JSON.stringify({s:e,r:n,suffix:i});let c="";const d=[];if(!Al[u]){Iu++,Iu>dx&&(Iu=0,Al={});const v=e?Object.keys(e):[],h=v.filter(g=>ac(g));let m="";h.length&&h.forEach(g=>{const x=cx(g);m+=Wl(e?.[g],n,x)}),v.forEach(g=>{if(ac(g))return;let x=Nh[g];x||(x=Nh[g]=[Iv(g)]),x.forEach(w=>{if(d.find(A=>A.handler===w))return;let $=!1;const k=w.__lookupStyles.reduce((A,I)=>(A[I]=e?.[I],Array.isArray(A[I])&&(A[I].length===0?delete A[I]:(A[I].length===1&&(A[I]=A[I][0]),$=!0)),A),{});d.push({handler:w,styleMap:k,isResponsive:$})})}),d.forEach(({handler:g,styleMap:x,isResponsive:w})=>{const $=g.__lookupStyles;if(w){const S=$.reduce((I,R)=>(I[R]=ux(x[R],o.length),I),{});o.map((I,R)=>{const B={};return $.forEach(_=>{S!=null&&S[_]!=null&&(B[_]=S[_][R])}),B}).map(I=>g(I,i)).forEach((I,R)=>{s[R]+=I||""})}else c+=g(x,i)||""}),Al[u]=`&${i||""}{outline: none;
50
+ &[hidden]{display: none !important;}}${c}${n&&n.length&&s.filter(g=>g).length?ax(s,o):""}${m}`}return Al[u]}const Mn=["display","font","preset","hide","opacity","whiteSpace"],Lv=["gridArea","order","gridColumn","gridRow","placeSelf","alignSelf","justifySelf","zIndex","margin"],vo=["reset","padding","paddingInline","paddingBlock","shadow","border","radius","opacity","overflow","styledScrollbar","hide","outline","textAlign"],hs=["color","fill"],Wt=["textTransform","fontWeight","fontStyle"],zc=["width","height","flexBasis","flexGrow","flexShrink","flex"],fx=["flow","placeItems","placeContent","alignItems","alignContent","justifyItems","justifyContent","align","justify","gap","columnGap","rowGap","gridColumns","gridRows","gridTemplate","gridAreas"],We=[...Mn,...hs,...zc,...Lv,...vo,...fx],mo=[...Lv,...zc];function Gl(...e){let n=e[0]?{...e[0]}:{},i=1;for(;i in e;){const o=Object.keys(n).filter(u=>ac(u)&&n[u]),s=e[i];if(s){const u={...n,...s};for(let c of o)s?.[c]&&(u[c]={...n[c],...s[c]});n=u}i++}return n}const px="Anonymous";function hx(e,n=px){return typeof e=="function"?e.displayName??e.name??n:n}function se(e,n){if(typeof e=="string"){let m=e,g=n,x=X0`${({$css:$})=>$}`;const w=({breakpoints:$})=>{let S=b.useContext(lc);$=$??S;const k=$.join(",");let A=b.useMemo(()=>g?`
51
+ {}${m}{${Wl(g,ku($||[980]))}}`:"",[k]);return E.jsx(x,{$css:A})};return w.displayName=`TastyStyleDeclaration(${e})`,w}if(jc.isValidElementType(e)){let{as:m,element:g,...x}=n??{},w=["styles"].concat(Object.keys(x).filter(S=>S.endsWith("Styles"))),$=b.forwardRef((S,k)=>{const{as:A,element:I,...R}=S,B=w.map(V=>S[V]),_=b.useMemo(()=>w.reduce((V,W)=>(R[W]!=null&&x[W]!=null?V[W]=Gl(x[W],R[W]):V[W]=R[W]||x[W],V),{}),[B]);return E.jsx(e,{ref:k,...x,...R,..._,as:A??m,element:I||g})});return $.displayName=`TastyWrappedComponent(${hx(e,x.qa??m??"Anonymous")})`,$}const i=e;let{as:o="div",element:s,styles:u,styleProps:c,variants:d,...v}=i,h;if(d){const m=Object.keys(d).reduce((g,x)=>{const w=d?.[x];return g[x]=se({as:o,styles:Gl(u,w),styleProps:c,...v}),g},{});m.default||(m.default=se({as:o,styles:u,styleProps:c,...v})),h=b.forwardRef((g,x)=>{const{variant:w,...$}=g,S=m[w]||m.default;return E.jsx(S,{ref:x,...$})})}else{let m=ho[o](({$css:S})=>S);const g=ao(S=>Wl(u||{},ku(S)));let{qa:x,qaVal:w,...$}=v??{};h=b.forwardRef((S,k)=>{let{as:A,styles:I,variant:R,breakpoints:B,mods:_,element:V,qa:W,qaVal:C,...U}=S,O=(c?c.concat(Mn):Mn).reduce((X,ee)=>(ee in U&&(X[ee]=U[ee],delete U[ee]),X),{});Object.keys(O).length===0&&(O=null),(!I||I&&Object.keys(I).length===0)&&(I=void 0);const H=JSON.stringify(O),ne=b.useMemo(()=>JSON.stringify(I),[I]),D=!O&&!I,j=b.useMemo(()=>`${I?JSON.stringify(I):""}.${O?JSON.stringify(O):""}`,[H,ne]);let ue=b.useMemo(()=>D?u:Gl(u,I,O),[j]),xe=b.useContext(lc);B=B??xe;let Y=b.useMemo(()=>D?g(B):Wl(ue,ku(B)),[ue,B]);return _&&Object.assign(U,$2(_)),E.jsx(m,{as:A??o,"data-element":V||s,"data-qa":W||x,"data-qaval":C||w,...$,...U,ref:k,$css:Y})})}return h.displayName=`TastyComponent(${v.qa||o})`,h}const Rv=se({});const vx=new Set(["id"]),mx=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),gx=new Set(["role","as","element","css","qa","mods","qaVal","hidden","isHidden","disabled","isDisabled","children","style","className","href","target","tabIndex"]),yx=new Set(["onPress","onHoverStart","onHoverEnd","onPressStart","onPressEnd"]),xx=/^((data-).*)$/,bx=/^on[A-Z].+$/;function Be(e,n={}){let{labelable:i,propNames:o,eventProps:s}=n,u={};for(const c in e)Object.prototype.hasOwnProperty.call(e,c)&&(vx.has(c)||gx.has(c)||i&&mx.has(c)||s&&bx.test(c)&&!yx.has(c)||o?.has(c)||xx.test(c))&&(u[c]=e[c]);return u}const Se={valTypes:{none:"NONE",primitive:"PRIM",object:"OBJECT",array:"ARRAY"},getValType:function(e){if(!e||typeof e!="object"||Array.isArray(e))return Se.valTypes.primitive;if(typeof e=="object")return Se.valTypes.object},getPathType:function(e){let n=[];for(let i in e){let o=e[i];o?Se.isNumber(o)?n.push(Se.valTypes.array):n.push(Se.valTypes.object):n.push(Se.valTypes.none)}return n},isUndefined:function(e){return typeof e>"u"},isNumber:function(e){return!isNaN(parseInt(e))},isEmptyObj:function(e){for(let n in e)if(Object.hasOwnProperty.call(e,n))return!1;return JSON.stringify(e)===JSON.stringify({})},isPlainObject:function(e){return typeof e!="object"||e===null?!1:Object.getPrototypeOf(e)===Object.prototype},isNotObject:function(e){return!e||!this.isPlainObject(e)},isEmptyArray:function(e){return Array.isArray(e)&&e.length==0},isNotArray:function(e){return Array.isArray(e)==!1},removeEmptyArrayItem:function(e){return e.filter(function(n){return n!=null&&n!=""})},getFieldName:function(e,n,i,o,s){return s?(n||"")+(Se.isNumber(e)?"["+e+"]":(i&&!n?"":".")+e):o?(n||"")+"["+e+"]":(n?n+".":"")+e},startsWith:function(e,n){return e.indexOf(n)==0},convert:function(e,n=""){let i={};return Se.isNotObject(e)?n?(i[n]=e,i):e:(function o(s,u,c){let d=Array.isArray(s);for(let v in s){let h=s[v];h&&typeof h=="object"&&!Array.isArray(h)&&Se.isPlainObject(h)?d&&Se.isEmptyObj(h)==!1?i=o(h,Se.getFieldName(v,u,c,!0)):Se.isEmptyObj(h)==!1?i=o(h,Se.getFieldName(v,u,c)):Se.isEmptyObj(h)&&(i[Se.getFieldName(v,u,c,d)]=h):d||Se.isNumber(v)?i[Se.getFieldName(v,u,c,!0)]=h:i[Se.getFieldName(v,u,c)]=h}return i})(e,n,!0)},backward:function(e,n){let i={},o=/\[(\d+)\]/g;if(Se.isNotObject(e)&&Se.isNotArray(e))return n?e[n]:e;for(let c in e){let d=e[c];if(n){let v=new RegExp("^"+n);c=c.replace(v,"")}c=c.replace(o,".$1"),Se.startsWith(c,".")&&(c=c.replace(/^\./,""));var s=c.split("."),u=Se.getPathType(s);!Se.isUndefined(u)&&u[0]==Se.valTypes.array&&Array.isArray(i)==!1&&(i=[]),(function v(h,m,g,x){let w=s.shift(),$=u.shift();if(typeof w>"u"||w==""){i=h;return}let S=$==Se.valTypes.array;if(Se.isNumber(w)&&(w=parseInt(w)),s.length>0){typeof m[w]>"u"&&(S?m[w]=[]:m[w]={}),v(h,m[w],w,m);return}$==Se.valTypes.array&&g&&x?(Array.isArray(x[g])==!1&&(x[g]=[]),x[g].push(h)):m[w]=h})(d,i)}return i}};function Zl(...e){return(...n)=>{for(let i of e)typeof i=="function"&&i(...n)}}function _v(e){var n,i,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(n=0;n<e.length;n++)e[n]&&(i=_v(e[n]))&&(o&&(o+=" "),o+=i);else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function wx(){for(var e,n,i=0,o="";i<arguments.length;)(e=arguments[i++])&&(n=_v(e))&&(o&&(o+=" "),o+=n);return o}const Uc={prefix:String(Math.round(Math.random()*1e10)),current:0},Mv=ce.createContext(Uc),Sx=ce.createContext(!1);let Ex=!!(typeof window<"u"&&window.document&&window.document.createElement),Lu=new WeakMap;function $x(e=!1){let n=b.useContext(Mv),i=b.useRef(null);if(i.current===null&&!e){var o,s;let u=(s=ce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||s===void 0||(o=s.ReactCurrentOwner)===null||o===void 0?void 0:o.current;if(u){let c=Lu.get(u);c==null?Lu.set(u,{id:n.current,state:u.memoizedState}):u.memoizedState!==c.state&&(n.current=c.id,Lu.delete(u))}i.current=++n.current}return i.current}function Px(e){let n=b.useContext(Mv);n===Uc&&!Ex&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let i=$x(!!e),o=`react-aria${n.prefix}`;return e||`${o}-${i}`}function Cx(e){let n=ce.useId(),[i]=b.useState(Av()),o=i?"react-aria":`react-aria${Uc.prefix}`;return e||`${o}-${n}`}const Fv=typeof ce.useId=="function"?Cx:Px;function Tx(){return!1}function kx(){return!0}function Ix(e){return()=>{}}function Av(){return typeof ce.useSyncExternalStore=="function"?ce.useSyncExternalStore(Ix,Tx,kx):b.useContext(Sx)}const Nv=typeof window<"u"?b.useLayoutEffect:b.useEffect;let uc=new Map;function Dh(e){let n=b.useRef(!0);n.current=!0;let[i,o]=b.useState(e),s=b.useRef(null),u=d=>{n.current?s.current=d:o(d)};Nv(()=>{n.current=!1}),b.useEffect(()=>{let d=s.current;d&&(o(d),s.current=null)},[o,u]);let c=Fv(i);return uc.set(c,u),c}function Lx(e,n){if(e===n)return e;let i=uc.get(e);if(i)return i(n),n;let o=uc.get(n);return o?(o(e),e):n}function qe(...e){let n={};for(let i of e){for(let o in n)/^on[A-Z]/.test(o)&&typeof n[o]=="function"&&i&&typeof i[o]=="function"?n[o]=Zl(n[o],i[o]):o==="className"&&typeof n.className=="string"&&i&&typeof i.className=="string"?n[o]=wx(n.className,i.className):(o==="styles"||o.endsWith("Styles"))&&typeof n.styles=="object"&&i&&typeof i.styles=="object"?n[o]=Gl(n[o],i[o]):o==="mods"&&n.mods&&i?.mods?n.mods={...n.mods,...i?.mods}:o==="id"&&n.id&&i?.id?n.id=Lx(n.id,i?.id):n[o]=i&&i[o]!==void 0?i[o]:n[o];for(let o in i)n[o]===void 0&&(n[o]=i[o])}return n}const vs={};let Ql=b.createContext(vs);function dr(e,n){let i=e.slot||n,s=(b.useContext(Ql)??vs)[i];return qe(s,e)}function Rx(e){let n=b.useContext(Ql)??vs,{slots:i={},children:o}=e,s=b.useMemo(()=>Object.keys(n).concat(Object.keys(i)).reduce((u,c)=>({...u,[c]:qe(n[c]??{},i[c]??{})}),{}),[n,i]);return E.jsx(Ql.Provider,{value:s,children:o})}function _x(e){const{children:n,...i}=e;let o=n;return b.Children.toArray(n).length<=1&&typeof n=="function"&&(o=b.cloneElement(b.Children.only(n),i)),E.jsx(Ql.Provider,{value:vs,children:o})}function Mx(...e){const n=b.useRef();return b.useEffect(()=>{e.forEach(i=>{i&&(typeof i=="function"?i(n.current):i.current=n.current)})},[e]),n}function Fx(e,n){const i=e&&(Array.isArray(e)||jc.isFragment(e));return!e||!i&&b.isValidElement(e)?e:n()}let _n=typeof window<"u"&&window.visualViewport;function Ax(e={}){const{isDisabled:n}=e;let[i,o]=b.useState(()=>Oh());return b.useEffect(()=>{if(n)return;let s=()=>{o(u=>{let c=Oh();return c.width===u.width&&c.height===u.height?u:c})};return _n?_n.addEventListener("resize",s):window.addEventListener("resize",s),()=>{_n?_n.removeEventListener("resize",s):window.removeEventListener("resize",s)}},[n]),i}function Oh(){return{width:_n&&_n.width||(typeof window<"u"?window.innerWidth:0),height:_n&&_n.height||(typeof window<"u"?window.innerHeight:0)}}const Nx=[...Mn,...Wt,...hs],Dv={transform:"textTransform",weight:"fontWeight",italic:"fontStyle"},Dx=se({qa:"Text",as:"span",styles:{display:{"":"inline","ellipsis | block":"block"},margin:"0",whiteSpace:{"":"inherit","nowrap | ellipsis":"nowrap"},textOverflow:{"":!1,ellipsis:"ellipsis"},overflow:{"":!1,ellipsis:"hidden"},width:{"":!1,ellipsis:"max 100%"}}}),Xn=b.forwardRef(function(n,i){n=dr(n,"text");const{as:o,qa:s,block:u,styleName:c,ellipsis:d,nowrap:v,...h}=n,m=Pe(h,Nx,{},Dv);return E.jsx(Dx,{as:o||"span",qa:s||"Text",styleName:c,mods:{nowrap:v,ellipsis:!!d,block:!!u},...Be(h,{eventProps:!0}),ref:i,styles:m})}),Kc=Object.assign(Xn,{Minor:b.forwardRef(function(n,i){return E.jsx(Xn,{ref:i,color:"#minor",...n})}),Danger:b.forwardRef(function(n,i){return E.jsx(Xn,{ref:i,role:"alert",color:"#danger-text",...n})}),Success:b.forwardRef(function(n,i){return E.jsx(Xn,{ref:i,color:"#success-text",...n})}),Strong:b.forwardRef(function(n,i){return E.jsx(Xn,{ref:i,as:"strong",preset:"strong",color:"#dark",...n})}),Emphasis:b.forwardRef(function(n,i){return E.jsx(Xn,{ref:i,as:"em",preset:"em",...n})}),Selection:b.forwardRef(function(n,i){return E.jsx(Xn,{ref:i,color:"#dark",fill:"#note.30",...n})})});const Ox=[...Wt,...We],Bx=se({qa:"Title",as:"h1",styles:{gridArea:"heading",display:"block",color:"#dark",preset:{"":"h6",'[data-level="1"]':"h1",'[data-level="2"]':"h2",'[data-level="3"]':"h3",'[data-level="4"]':"h4",'[data-level="5"]':"h5",'[data-level="6"]':"h6"},margin:"0",whiteSpace:{"":"inherit","nowrap | ellipsis":"nowrap"},textOverflow:{"":!1,ellipsis:"ellipsis"},overflow:{"":!1,ellipsis:"hidden"},width:{"":!1,ellipsis:"max 100%"}}}),Ru=b.forwardRef(function({qa:n,as:i,styleName:o,inline:s,nowrap:u,ellipsis:c,level:d,...v},h){const m=dr(v,"heading"),g=`h${d||1}`,x=Pe(m,Ox,{},Dv);return E.jsx(Bx,{qa:n||"Title",as:i||g,styleName:o,"data-level":d||1,mods:{nowrap:u,ellipsis:c},inline:s,...Be(m,{eventProps:!0}),ref:h,styles:x})}),Ov=Object.assign(Ru,{Danger:b.forwardRef(function(n,i){return E.jsx(Ru,{ref:i,color:"#danger-text",...n})}),Success:b.forwardRef(function(n,i){return E.jsx(Ru,{ref:i,color:"#success-text",...n})})});const Hx={preset:"p3",color:"#dark.75",display:"block"},jx=[...We,...Wt],Wc=b.forwardRef(function(n,i){const o=Pe(n,jx,Hx);return E.jsx(Kc,{as:"p",qa:"Paragraph",...n,ref:i,styles:o})});function Vx(e,n){if(n.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function zx(e,n,i){Vx(e,n),n.set(e,i)}function go(e,n,i){let[o,s]=b.useState(e||n),u=b.useRef(e!==void 0),c=e!==void 0;b.useEffect(()=>{let h=u.current;h!==c&&console.warn(`WARN: A component changed from ${h?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}.`),u.current=c},[c]);let d=c?e:o,v=b.useCallback((h,...m)=>{let g=(x,...w)=>{i&&(Object.is(d,x)||i(x,...w)),c||(d=x)};typeof h=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),s((w,...$)=>{let S=h(c?d:w,...$);return g(S,...m),c?w:S})):(c||s(h),g(h,...m))},[c,d,i]);return[d,v]}function cc(e,n=-1/0,i=1/0){return Math.min(Math.max(e,n),i)}const Gc={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Bv={...Gc,customError:!0,valid:!1},Kr={isInvalid:!1,validationDetails:Gc,validationErrors:[]},Ux=b.createContext({}),dc="__formValidationState"+Date.now();function ms(e){if(e[dc]){let{realtimeValidation:n,displayValidation:i,updateValidation:o,resetValidation:s,commitValidation:u}=e[dc];return{realtimeValidation:n,displayValidation:i,updateValidation:o,resetValidation:s,commitValidation:u}}return Kx(e)}function Kx(e){let{isInvalid:n,validationState:i,name:o,value:s,builtinValidation:u,validate:c,validationBehavior:d="aria"}=e;i&&(n||(n=i==="invalid"));let v=n?{isInvalid:!0,validationErrors:[],validationDetails:Bv}:null,h=b.useMemo(()=>Bh(Wx(c,s)),[c,s]);u?.validationDetails.valid&&(u=null);let m=b.useContext(Ux),g=b.useMemo(()=>o?Array.isArray(o)?o.flatMap(O=>fc(m[O])):fc(m[o]):[],[m,o]),[x,w]=b.useState(m),[$,S]=b.useState(!1);m!==x&&(w(m),S(!1));let k=b.useMemo(()=>Bh($?[]:g),[$,g]),A=b.useRef(Kr),[I,R]=b.useState(Kr),B=b.useRef(Kr),_=()=>{if(!V)return;W(!1);let O=h||u||A.current;_u(O,B.current)||(B.current=O,R(O))},[V,W]=b.useState(!1);return b.useEffect(_),{realtimeValidation:v||k||h||u||Kr,displayValidation:d==="native"?v||k||I:v||k||h||u||I,updateValidation(O){d==="aria"&&!_u(I,O)?R(O):A.current=O},resetValidation(){let O=Kr;_u(O,B.current)||(B.current=O,R(O)),d==="native"&&W(!1),S(!0)},commitValidation(){d==="native"&&W(!0),S(!0)}}}function fc(e){return e?Array.isArray(e)?e:[e]:[]}function Wx(e,n){if(typeof e=="function"){let i=e(n);if(i&&typeof i!="boolean")return fc(i)}return[]}function Bh(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:Bv}:null}function _u(e,n){return e===n?!0:e&&n&&e.isInvalid===n.isInvalid&&e.validationErrors.length===n.validationErrors.length&&e.validationErrors.every((i,o)=>i===n.validationErrors[o])&&Object.entries(e.validationDetails).every(([i,o])=>n.validationDetails[i]===o)}function Gx(...e){let n=new Set,i=!1,o={...Gc};for(let c of e){var s,u;for(let d of c.validationErrors)n.add(d);i||(i=c.isInvalid);for(let d in o)(s=o)[u=d]||(s[u]=c.validationDetails[d])}return o.valid=!i,{isInvalid:i,validationErrors:[...n],validationDetails:o}}function Zx(e={}){let[n,i]=go(e.value,e.defaultValue||[],e.onChange),o=!!e.isRequired&&n.length===0,s=b.useRef(new Map),u=ms({...e,value:n}),c=u.displayValidation.isInvalid;var d;return{...u,value:n,setValue(h){e.isReadOnly||e.isDisabled||i(h)},isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isSelected(h){return n.includes(h)},addValue(h){e.isReadOnly||e.isDisabled||n.includes(h)||i(n.concat(h))},removeValue(h){e.isReadOnly||e.isDisabled||n.includes(h)&&i(n.filter(m=>m!==h))},toggleValue(h){e.isReadOnly||e.isDisabled||(n.includes(h)?i(n.filter(m=>m!==h)):i(n.concat(h)))},setInvalid(h,m){let g=new Map(s.current);m.isInvalid?g.set(h,m):g.delete(h),s.current=g,u.updateValidation(Gx(...g.values()))},validationState:(d=e.validationState)!==null&&d!==void 0?d:c?"invalid":null,isInvalid:c,isRequired:o}}function Hv(e){return null}Hv.getCollectionNode=function*(n,i){let{childItems:o,title:s,children:u}=n,c=n.title||n.children,d=n.textValue||(typeof c=="string"?c:"")||n["aria-label"]||"";!d&&!i?.suppressTextValueWarning&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:n,rendered:c,textValue:d,"aria-label":n["aria-label"],hasChildNodes:qx(n),*childNodes(){if(o)for(let v of o)yield{type:"item",value:v};else if(s){let v=[];ce.Children.forEach(u,h=>{v.push({type:"item",element:h})}),yield*v}}}};function qx(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&ce.Children.count(e.children)>0)}let Xx=Hv;class Yx{build(n,i){return this.context=i,Hh(()=>this.iterateCollection(n))}*iterateCollection(n){let{children:i,items:o}=n;if(typeof i=="function"){if(!o)throw new Error("props.children was a function but props.items is missing");for(let s of n.items)yield*this.getFullNode({value:s},{renderer:i})}else{let s=[];ce.Children.forEach(i,c=>{s.push(c)});let u=0;for(let c of s){let d=this.getFullNode({element:c,index:u},{});for(let v of d)u++,yield v}}}getKey(n,i,o,s){if(n.key!=null)return n.key;if(i.type==="cell"&&i.key!=null)return`${s}${i.key}`;let u=i.value;if(u!=null){var c;let d=(c=u.key)!==null&&c!==void 0?c:u.id;if(d==null)throw new Error("No key found for item");return d}return s?`${s}.${i.index}`:`$.${i.index}`}getChildState(n,i){return{renderer:i.renderer||n.renderer}}*getFullNode(n,i,o,s){let u=n.element;if(!u&&n.value&&i&&i.renderer){let v=this.cache.get(n.value);if(v&&(!v.shouldInvalidate||!v.shouldInvalidate(this.context))){v.index=n.index,v.parentKey=s?s.key:null,yield v;return}u=i.renderer(n.value)}if(ce.isValidElement(u)){let v=u.type;if(typeof v!="function"&&typeof v.getCollectionNode!="function"){let x=typeof u.type=="function"?u.type.name:u.type;throw new Error(`Unknown element <${x}> in collection.`)}let h=v.getCollectionNode(u.props,this.context),m=n.index,g=h.next();for(;!g.done&&g.value;){let x=g.value;n.index=m;let w=x.key;w||(w=x.element?null:this.getKey(u,n,i,o));let S=[...this.getFullNode({...x,key:w,index:m,wrapper:Qx(n.wrapper,x.wrapper)},this.getChildState(i,x),o?`${o}${u.key}`:u.key,s)];for(let k of S){if(k.value=x.value||n.value,k.value&&this.cache.set(k.value,k),n.type&&k.type!==n.type)throw new Error(`Unsupported type <${Mu(k.type)}> in <${Mu(s.type)}>. Only <${Mu(n.type)}> is supported.`);m++,yield k}g=h.next(S)}return}if(n.key==null)return;let c=this,d={type:n.type,props:n.props,key:n.key,parentKey:s?s.key:null,value:n.value,level:s?s.level+1:0,index:n.index,rendered:n.rendered,textValue:n.textValue,"aria-label":n["aria-label"],wrapper:n.wrapper,shouldInvalidate:n.shouldInvalidate,hasChildNodes:n.hasChildNodes,childNodes:Hh(function*(){if(!n.hasChildNodes)return;let v=0;for(let h of n.childNodes()){h.key!=null&&(h.key=`${d.key}${h.key}`),h.index=v;let m=c.getFullNode(h,c.getChildState(i,h),d.key,d);for(let g of m)v++,yield g}})};yield d}constructor(){this.cache=new WeakMap}}function Hh(e){let n=[],i=null;return{*[Symbol.iterator](){for(let o of n)yield o;i||(i=e());for(let o of i)n.push(o),yield o}}}function Qx(e,n){if(e&&n)return i=>e(n(i));if(e)return e;if(n)return n}function Mu(e){return e[0].toUpperCase()+e.slice(1)}function Jx(e,n,i){let o=b.useMemo(()=>new Yx,[]),{children:s,items:u,collection:c}=e;return b.useMemo(()=>{if(c)return c;let v=o.build({children:s,items:u},i);return n(v)},[o,s,u,c,i,n])}function eb(e,n){return typeof n.getChildren=="function"?n.getChildren(e.key):e.childNodes}function tb(e){return nb(e)}function nb(e,n){for(let i of e)return i}function Fu(e,n,i){if(n.parentKey===i.parentKey)return n.index-i.index;let o=[...jh(e,n),n],s=[...jh(e,i),i],u=o.slice(0,s.length).findIndex((c,d)=>c!==s[d]);return u!==-1?(n=o[u],i=s[u],n.index-i.index):o.findIndex(c=>c===i)>=0?1:(s.findIndex(c=>c===n)>=0,-1)}function jh(e,n){let i=[];for(;n?.parentKey!=null;)n=e.getItem(n.parentKey),i.unshift(n);return i}class Nt extends Set{constructor(n,i,o){super(n),n instanceof Nt?(this.anchorKey=i||n.anchorKey,this.currentKey=o||n.currentKey):(this.anchorKey=i,this.currentKey=o)}}function rb(e,n){if(e.size!==n.size)return!1;for(let i of e)if(!n.has(i))return!1;return!0}function ib(e){let{selectionMode:n="none",disallowEmptySelection:i,allowDuplicateSelectionEvents:o,selectionBehavior:s="toggle",disabledBehavior:u="all"}=e,c=b.useRef(!1),[,d]=b.useState(!1),v=b.useRef(null),h=b.useRef(null),[,m]=b.useState(null),g=b.useMemo(()=>Vh(e.selectedKeys),[e.selectedKeys]),x=b.useMemo(()=>Vh(e.defaultSelectedKeys,new Nt),[e.defaultSelectedKeys]),[w,$]=go(g,x,e.onSelectionChange),S=b.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[k,A]=b.useState(s);s==="replace"&&k==="toggle"&&typeof w=="object"&&w.size===0&&A("replace");let I=b.useRef(s);return b.useEffect(()=>{s!==I.current&&(A(s),I.current=s)},[s]),{selectionMode:n,disallowEmptySelection:i,selectionBehavior:k,setSelectionBehavior:A,get isFocused(){return c.current},setFocused(R){c.current=R,d(R)},get focusedKey(){return v.current},get childFocusStrategy(){return h.current},setFocusedKey(R,B="first"){v.current=R,h.current=B,m(R)},selectedKeys:w,setSelectedKeys(R){(o||!rb(R,w))&&$(R)},disabledKeys:S,disabledBehavior:u}}function Vh(e,n){return e?e==="all"?"all":new Nt(e):n}class ob{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(n){this.state.setSelectionBehavior(n)}get isFocused(){return this.state.isFocused}setFocused(n){this.state.setFocused(n)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(n,i){(n==null||this.collection.getItem(n))&&this.state.setFocusedKey(n,i)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(n){return this.state.selectionMode==="none"?!1:(n=this.getKey(n),this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n))}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let n=this.getSelectAllKeys(),i=this.state.selectedKeys;return this._isSelectAll=n.every(o=>i.has(o)),this._isSelectAll}get firstSelectedKey(){let n=null;for(let i of this.state.selectedKeys){let o=this.collection.getItem(i);(!n||o&&Fu(this.collection,o,n)<0)&&(n=o)}return n?.key}get lastSelectedKey(){let n=null;for(let i of this.state.selectedKeys){let o=this.collection.getItem(i);(!n||o&&Fu(this.collection,o,n)>0)&&(n=o)}return n?.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(n){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(n);return}n=this.getKey(n);let i;if(this.state.selectedKeys==="all")i=new Nt([n],n,n);else{let o=this.state.selectedKeys,s=o.anchorKey||n;i=new Nt(o,s,n);for(let u of this.getKeyRange(s,o.currentKey||n))i.delete(u);for(let u of this.getKeyRange(n,s))this.canSelectItem(u)&&i.add(u)}this.state.setSelectedKeys(i)}getKeyRange(n,i){let o=this.collection.getItem(n),s=this.collection.getItem(i);return o&&s?Fu(this.collection,o,s)<=0?this.getKeyRangeInternal(n,i):this.getKeyRangeInternal(i,n):[]}getKeyRangeInternal(n,i){let o=[],s=n;for(;s;){let u=this.collection.getItem(s);if((u&&u.type==="item"||u.type==="cell"&&this.allowsCellSelection)&&o.push(s),s===i)return o;s=this.collection.getKeyAfter(s)}return[]}getKey(n){let i=this.collection.getItem(n);if(!i||i.type==="cell"&&this.allowsCellSelection)return n;for(;i.type!=="item"&&i.parentKey!=null;)i=this.collection.getItem(i.parentKey);return!i||i.type!=="item"?null:i.key}toggleSelection(n){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(n)){this.replaceSelection(n);return}if(n=this.getKey(n),n==null)return;let i=new Nt(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);i.has(n)?i.delete(n):this.canSelectItem(n)&&(i.add(n),i.anchorKey=n,i.currentKey=n),!(this.disallowEmptySelection&&i.size===0)&&this.state.setSelectedKeys(i)}replaceSelection(n){if(this.selectionMode==="none"||(n=this.getKey(n),n==null))return;let i=this.canSelectItem(n)?new Nt([n],n,n):new Nt;this.state.setSelectedKeys(i)}setSelectedKeys(n){if(this.selectionMode==="none")return;let i=new Nt;for(let o of n)if(o=this.getKey(o),o!=null&&(i.add(o),this.selectionMode==="single"))break;this.state.setSelectedKeys(i)}getSelectAllKeys(){let n=[],i=o=>{for(;o;){if(this.canSelectItem(o)){let s=this.collection.getItem(o);s.type==="item"&&n.push(o),s.hasChildNodes&&(this.allowsCellSelection||s.type!=="item")&&i(tb(eb(s,this.collection)).key)}o=this.collection.getKeyAfter(o)}};return i(this.collection.getFirstKey()),n}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new Nt)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(n,i){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(n)&&!this.disallowEmptySelection?this.toggleSelection(n):this.replaceSelection(n):this.selectionBehavior==="toggle"||i&&(i.pointerType==="touch"||i.pointerType==="virtual")?this.toggleSelection(n):this.replaceSelection(n))}isSelectionEqual(n){if(n===this.state.selectedKeys)return!0;let i=this.selectedKeys;if(n.size!==i.size)return!1;for(let o of n)if(!i.has(o))return!1;for(let o of i)if(!n.has(o))return!1;return!0}canSelectItem(n){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(n))return!1;let i=this.collection.getItem(n);return!(!i||i.type==="cell"&&!this.allowsCellSelection)}isDisabled(n){return this.state.disabledKeys.has(n)&&this.state.disabledBehavior==="all"}isLink(n){var i,o;return!!(!((o=this.collection.getItem(n))===null||o===void 0||(i=o.props)===null||i===void 0)&&i.href)}constructor(n,i,o){this.collection=n,this.state=i;var s;this.allowsCellSelection=(s=o?.allowsCellSelection)!==null&&s!==void 0?s:!1,this._isSelectAll=null}}class zh{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(n){let i=this.keyMap.get(n);return i?i.prevKey:null}getKeyAfter(n){let i=this.keyMap.get(n);return i?i.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(n){return this.keyMap.get(n)}at(n){const i=[...this.getKeys()];return this.getItem(i[n])}getChildren(n){let i=this.keyMap.get(n);return i?.childNodes||[]}constructor(n){this.keyMap=new Map,this.iterable=n;let i=u=>{if(this.keyMap.set(u.key,u),u.childNodes&&u.type==="section")for(let c of u.childNodes)i(c)};for(let u of n)i(u);let o,s=0;for(let[u,c]of this.keyMap)o?(o.nextKey=u,c.prevKey=o.key):(this.firstKey=u,c.prevKey=void 0),c.type==="item"&&(c.index=s++),o=c,o.nextKey=void 0;this.lastKey=o?.key}}function lb(e){let{filter:n}=e,i=ib(e),o=b.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),s=b.useCallback(h=>n?new zh(n(h)):new zh(h),[n]),u=b.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),c=Jx(e,s,u),d=b.useMemo(()=>new ob(c,i),[c,i]);const v=b.useRef(null);return b.useEffect(()=>{if(i.focusedKey!=null&&!c.getItem(i.focusedKey)){const h=v.current.getItem(i.focusedKey),m=[...v.current.getKeys()].map(S=>{const k=v.current.getItem(S);return k.type==="item"?k:null}).filter(S=>S!==null),g=[...c.getKeys()].map(S=>{const k=c.getItem(S);return k.type==="item"?k:null}).filter(S=>S!==null),x=m.length-g.length;let w=Math.min(x>1?Math.max(h.index-x+1,0):h.index,g.length-1),$;for(;w>=0;){if(!d.isDisabled(g[w].key)){$=g[w];break}w<g.length-1?w++:(w>h.index&&(w=h.index),w--)}i.setFocusedKey($?$.key:null)}v.current=c},[c,d,i,i.focusedKey]),{collection:c,disabledKeys:o,selectionManager:d}}function sb(e){let[n,i]=go(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const o=b.useCallback(()=>{i(!0)},[i]),s=b.useCallback(()=>{i(!1)},[i]),u=b.useCallback(()=>{i(!n)},[i,n]);return{isOpen:n,setOpen:i,open:o,close:s,toggle:u}}const ab=Symbol.for("react-aria.i18n.locale"),ub=Symbol.for("react-aria.i18n.strings");let Vr;class gs{getStringForLocale(n,i){let s=this.getStringsForLocale(i)[n];if(!s)throw new Error(`Could not find intl message ${n} in ${i} locale`);return s}getStringsForLocale(n){let i=this.strings[n];return i||(i=cb(n,this.strings,this.defaultLocale),this.strings[n]=i),i}static getGlobalDictionaryForPackage(n){if(typeof window>"u")return null;let i=window[ab];if(Vr===void 0){let s=window[ub];if(!s)return null;Vr={};for(let u in s)Vr[u]=new gs({[i]:s[u]},i)}let o=Vr?.[n];if(!o)throw new Error(`Strings for package "${n}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return o}constructor(n,i="en-US"){this.strings={...n},this.defaultLocale=i}}function cb(e,n,i="en-US"){if(n[e])return n[e];let o=db(e);if(n[o])return n[o];for(let s in n)if(s.startsWith(o+"-"))return n[s];return n[i]}function db(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const Uh=new Map,Kh=new Map;class fb{format(n,i){let o=this.strings.getStringForLocale(n,this.locale);return typeof o=="function"?o(i,this):o}plural(n,i,o="cardinal"){let s=i["="+n];if(s)return typeof s=="function"?s():s;let u=this.locale+":"+o,c=Uh.get(u);c||(c=new Intl.PluralRules(this.locale,{type:o}),Uh.set(u,c));let d=c.select(n);return s=i[d]||i.other,typeof s=="function"?s():s}number(n){let i=Kh.get(this.locale);return i||(i=new Intl.NumberFormat(this.locale),Kh.set(this.locale,i)),i.format(n)}select(n,i){let o=n[i]||n.other;return typeof o=="function"?o():o}constructor(n,i){this.locale=n,this.strings=i}}let pb=Math.round(Math.random()*1e10),hb=0;function vb(e){let n=b.useMemo(()=>e.name||`radio-group-${pb}-${++hb}`,[e.name]);var i;let[o,s]=go(e.value,(i=e.defaultValue)!==null&&i!==void 0?i:null,e.onChange),[u,c]=b.useState(null),d=ms({...e,value:o}),v=m=>{!e.isReadOnly&&!e.isDisabled&&(s(m),d.commitValidation())},h=d.displayValidation.isInvalid;return{...d,name:n,selectedValue:o,setSelectedValue:v,lastFocusedValue:u,setLastFocusedValue:c,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,validationState:e.validationState||(h?"invalid":null),isInvalid:h}}function jv(e={}){let{isReadOnly:n}=e,[i,o]=go(e.isSelected,e.defaultSelected||!1,e.onChange);function s(c){n||o(c)}function u(){n||o(!i)}return{isSelected:i,setSelected:s,toggle:u}}const mb=1500,Wh=500;let Yn={},gb=0,Xi=!1,ln=null,Qn=null;function yb(e={}){let{delay:n=mb,closeDelay:i=Wh}=e,{isOpen:o,open:s,close:u}=sb(e),c=b.useMemo(()=>`${++gb}`,[]),d=b.useRef(),v=()=>{Yn[c]=g},h=()=>{for(let w in Yn)w!==c&&(Yn[w](!0),delete Yn[w])},m=()=>{clearTimeout(d.current),d.current=null,h(),v(),Xi=!0,s(),ln&&(clearTimeout(ln),ln=null),Qn&&(clearTimeout(Qn),Qn=null)},g=w=>{w||i<=0?(clearTimeout(d.current),d.current=null,u()):d.current||(d.current=setTimeout(()=>{d.current=null,u()},i)),ln&&(clearTimeout(ln),ln=null),Xi&&(Qn&&clearTimeout(Qn),Qn=setTimeout(()=>{delete Yn[c],Qn=null,Xi=!1},Math.max(Wh,i)))},x=()=>{h(),v(),!o&&!ln&&!Xi?ln=setTimeout(()=>{ln=null,Xi=!0,m()},n):o||m()};return b.useEffect(()=>()=>{clearTimeout(d.current),Yn[c]&&delete Yn[c]},[c]),{isOpen:o,open:w=>{!w&&n>0&&!d.current?x():m()},close:g}}const xb=se({styles:{display:"block"}}),bb=b.forwardRef(function(n,i){const o=Pe(n,We);return E.jsx(xb,{...Be(n,{eventProps:!0}),ref:i,styles:o})});function Vv(e){var n,i,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(n=0;n<s;n++)e[n]&&(i=Vv(e[n]))&&(o&&(o+=" "),o+=i)}else for(i in e)e[i]&&(o&&(o+=" "),o+=i);return o}function wb(){for(var e,n,i=0,o="",s=arguments.length;i<s;i++)(e=arguments[i])&&(n=Vv(e))&&(o&&(o+=" "),o+=n);return o}const xt=typeof document<"u"?ce.useLayoutEffect:()=>{};function rt(e){const n=b.useRef(null);return xt(()=>{n.current=e},[e]),b.useCallback((...i)=>{const o=n.current;return o?.(...i)},[])}function Sb(e){let[n,i]=b.useState(e),o=b.useRef(null),s=rt(()=>{if(!o.current)return;let c=o.current.next();if(c.done){o.current=null;return}n===c.value?s():i(c.value)});xt(()=>{o.current&&s()});let u=rt(c=>{o.current=c(n),s()});return[n,u]}let Eb=!!(typeof window<"u"&&window.document&&window.document.createElement),Jl=new Map;function ni(e){let[n,i]=b.useState(e),o=b.useRef(null),s=Fv(n),u=b.useCallback(c=>{o.current=c},[]);return Eb&&Jl.set(s,u),xt(()=>{let c=s;return()=>{Jl.delete(c)}},[s]),b.useEffect(()=>{let c=o.current;c&&(o.current=null,i(c))}),s}function $b(e,n){if(e===n)return e;let i=Jl.get(e);if(i)return i(n),n;let o=Jl.get(n);return o?(o(e),e):n}function pc(e=[]){let n=ni(),[i,o]=Sb(n),s=b.useCallback(()=>{o(function*(){yield n,yield document.getElementById(n)?n:void 0})},[n,o]);return xt(s,[n,s,...e]),i}function uo(...e){return(...n)=>{for(let i of e)typeof i=="function"&&i(...n)}}const ft=e=>{var n;return(n=e?.ownerDocument)!==null&&n!==void 0?n:document},Dt=e=>e&&"window"in e&&e.window===e?e:ft(e).defaultView||window;function Fe(...e){let n={...e[0]};for(let i=1;i<e.length;i++){let o=e[i];for(let s in o){let u=n[s],c=o[s];typeof u=="function"&&typeof c=="function"&&s[0]==="o"&&s[1]==="n"&&s.charCodeAt(2)>=65&&s.charCodeAt(2)<=90?n[s]=uo(u,c):(s==="className"||s==="UNSAFE_className")&&typeof u=="string"&&typeof c=="string"?n[s]=wb(u,c):s==="id"&&u&&c?n.id=$b(u,c):n[s]=c!==void 0?c:u}}return n}const Pb=new Set(["id"]),Cb=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Tb=new Set(["href","target","rel","download","ping","referrerPolicy"]),kb=/^(data-.*)$/;function fr(e,n={}){let{labelable:i,isLink:o,propNames:s}=n,u={};for(const c in e)Object.prototype.hasOwnProperty.call(e,c)&&(Pb.has(c)||i&&Cb.has(c)||o&&Tb.has(c)||s?.has(c)||kb.test(c))&&(u[c]=e[c]);return u}function un(e){if(Ib())e.focus({preventScroll:!0});else{let n=Lb(e);e.focus(),Rb(n)}}let Nl=null;function Ib(){if(Nl==null){Nl=!1;try{document.createElement("div").focus({get preventScroll(){return Nl=!0,!0}})}catch{}}return Nl}function Lb(e){let n=e.parentNode,i=[],o=document.scrollingElement||document.documentElement;for(;n instanceof HTMLElement&&n!==o;)(n.offsetHeight<n.scrollHeight||n.offsetWidth<n.scrollWidth)&&i.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),n=n.parentNode;return o instanceof HTMLElement&&i.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft}),i}function Rb(e){for(let{element:n,scrollTop:i,scrollLeft:o}of e)n.scrollTop=i,n.scrollLeft=o}function ys(e){var n;return typeof window>"u"||window.navigator==null?!1:((n=window.navigator.userAgentData)===null||n===void 0?void 0:n.brands.some(i=>e.test(i.brand)))||e.test(window.navigator.userAgent)}function Zc(e){var n;return typeof window<"u"&&window.navigator!=null?e.test(((n=window.navigator.userAgentData)===null||n===void 0?void 0:n.platform)||window.navigator.platform):!1}function or(){return Zc(/^Mac/i)}function _b(){return Zc(/^iPhone/i)}function zv(){return Zc(/^iPad/i)||or()&&navigator.maxTouchPoints>1}function xs(){return _b()||zv()}function Mb(){return or()||xs()}function Uv(){return ys(/AppleWebKit/i)&&!Fb()}function Fb(){return ys(/Chrome/i)}function Kv(){return ys(/Android/i)}function Ab(){return ys(/Firefox/i)}const Nb=b.createContext({isNative:!0,open:Ob});function Wv(){return b.useContext(Nb)}function lr(e,n,i=!0){var o,s;let{metaKey:u,ctrlKey:c,altKey:d,shiftKey:v}=n;Ab()&&(!((s=window.event)===null||s===void 0||(o=s.type)===null||o===void 0)&&o.startsWith("key"))&&e.target==="_blank"&&(or()?u=!0:c=!0);let h=Uv()&&or()&&!zv()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:u,ctrlKey:c,altKey:d,shiftKey:v}):new MouseEvent("click",{metaKey:u,ctrlKey:c,altKey:d,shiftKey:v,bubbles:!0,cancelable:!0});lr.isOpening=i,un(e),e.dispatchEvent(h),lr.isOpening=!1}lr.isOpening=!1;function Db(e,n){if(e instanceof HTMLAnchorElement)n(e);else if(e.hasAttribute("data-href")){let i=document.createElement("a");i.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(i.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(i.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(i.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(i.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(i.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(i),n(i),e.removeChild(i)}}function Ob(e,n){Db(e,i=>lr(i,n))}let Wr=new Map,hc=new Set;function Gh(){if(typeof window>"u")return;function e(o){return"propertyName"in o}let n=o=>{if(!e(o)||!o.target)return;let s=Wr.get(o.target);s||(s=new Set,Wr.set(o.target,s),o.target.addEventListener("transitioncancel",i,{once:!0})),s.add(o.propertyName)},i=o=>{if(!e(o)||!o.target)return;let s=Wr.get(o.target);if(s&&(s.delete(o.propertyName),s.size===0&&(o.target.removeEventListener("transitioncancel",i),Wr.delete(o.target)),Wr.size===0)){for(let u of hc)u();hc.clear()}};document.body.addEventListener("transitionrun",n),document.body.addEventListener("transitionend",i)}typeof document<"u"&&(document.readyState!=="loading"?Gh():document.addEventListener("DOMContentLoaded",Gh));function Gv(e){requestAnimationFrame(()=>{Wr.size===0?e():hc.add(e)})}function Zv(){let e=b.useRef(new Map),n=b.useCallback((s,u,c,d)=>{let v=d?.once?(...h)=>{e.current.delete(c),c(...h)}:c;e.current.set(c,{type:u,eventTarget:s,fn:v,options:d}),s.addEventListener(u,c,d)},[]),i=b.useCallback((s,u,c,d)=>{var v;let h=((v=e.current.get(c))===null||v===void 0?void 0:v.fn)||c;s.removeEventListener(u,h,d),e.current.delete(c)},[]),o=b.useCallback(()=>{e.current.forEach((s,u)=>{i(s.eventTarget,s.type,u,s.options)})},[i]);return b.useEffect(()=>o,[o]),{addGlobalListener:n,removeGlobalListener:i,removeAllGlobalListeners:o}}function qv(e,n){let{id:i,"aria-label":o,"aria-labelledby":s}=e;return i=ni(i),s&&o?s=[...new Set([i,...s.trim().split(/\s+/)])].join(" "):s&&(s=s.trim().split(/\s+/).join(" ")),!o&&!s&&n&&(o=n),{id:i,"aria-label":o,"aria-labelledby":s}}function Bb(e){const n=b.useRef(null);return b.useMemo(()=>({get current(){return n.current},set current(i){n.current=i,typeof e=="function"?e(i):e&&(e.current=i)}}),[e])}function Hb(){return typeof window.ResizeObserver<"u"}function jb(e){const{ref:n,onResize:i}=e;b.useEffect(()=>{let o=n?.current;if(o)if(Hb()){const s=new window.ResizeObserver(u=>{u.length&&i()});return s.observe(o),()=>{o&&s.unobserve(o)}}else return window.addEventListener("resize",i,!1),()=>{window.removeEventListener("resize",i,!1)}},[i,n])}function Xv(e,n){xt(()=>{if(e&&e.ref&&n)return e.ref.current=n.current,()=>{e.ref&&(e.ref.current=null)}})}function es(e,n){let i=e;for(ts(i,n)&&(i=i.parentElement);i&&!ts(i,n);)i=i.parentElement;return i||document.scrollingElement||document.documentElement}function ts(e,n){let i=window.getComputedStyle(e),o=/(auto|scroll)/.test(i.overflow+i.overflowX+i.overflowY);return o&&n&&(o=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),o}let Vb=0;const Au=new Map;function zb(e){let[n,i]=b.useState();return xt(()=>{if(!e)return;let o=Au.get(e);if(o)i(o.element.id);else{let s=`react-aria-description-${Vb++}`;i(s);let u=document.createElement("div");u.id=s,u.style.display="none",u.textContent=e,document.body.appendChild(u),o={refCount:0,element:u},Au.set(e,o)}return o.refCount++,()=>{o&&--o.refCount===0&&(o.element.remove(),Au.delete(e))}},[e]),{"aria-describedby":e?n:void 0}}function Ub(e,n,i,o){let s=rt(i),u=i==null;b.useEffect(()=>{if(u||!e.current)return;let c=e.current;return c.addEventListener(n,s,o),()=>{c.removeEventListener(n,s,o)}},[e,n,o,u,s])}function Yv(e,n){let i=Zh(e,n,"left"),o=Zh(e,n,"top"),s=n.offsetWidth,u=n.offsetHeight,c=e.scrollLeft,d=e.scrollTop,{borderTopWidth:v,borderLeftWidth:h}=getComputedStyle(e),m=e.scrollLeft+parseInt(h,10),g=e.scrollTop+parseInt(v,10),x=m+e.clientWidth,w=g+e.clientHeight;i<=c?c=i-parseInt(h,10):i+s>x&&(c+=i+s-x),o<=g?d=o-parseInt(v,10):o+u>w&&(d+=o+u-w),e.scrollLeft=c,e.scrollTop=d}function Zh(e,n,i){const o=i==="left"?"offsetLeft":"offsetTop";let s=0;for(;n.offsetParent&&(s+=n[o],n.offsetParent!==e);){if(n.offsetParent.contains(e)){s-=e[o];break}n=n.offsetParent}return s}function qh(e,n){if(document.contains(e)){let c=document.scrollingElement||document.documentElement;if(window.getComputedStyle(c).overflow==="hidden"){let v=es(e);for(;e&&v&&e!==c&&v!==c;)Yv(v,e),e=v,v=es(e)}else{var i;let{left:v,top:h}=e.getBoundingClientRect();e==null||(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"});let{left:m,top:g}=e.getBoundingClientRect();if(Math.abs(v-m)>1||Math.abs(h-g)>1){var o,s,u;n==null||(s=n.containingElement)===null||s===void 0||(o=s.scrollIntoView)===null||o===void 0||o.call(s,{block:"center",inline:"center"}),(u=e.scrollIntoView)===null||u===void 0||u.call(e,{block:"nearest"})}}}}function vc(e){return e.mozInputSource===0&&e.isTrusted?!0:Kv()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Kb(e){return!Kv()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function Qv(e,n,i){let o=b.useRef(n),s=rt(()=>{i&&i(o.current)});b.useEffect(()=>{var u;let c=e==null||(u=e.current)===null||u===void 0?void 0:u.form;return c?.addEventListener("reset",s),()=>{c?.removeEventListener("reset",s)}},[e,s])}function Wb(e,n){return n.get?n.get.call(e):n.value}function Jv(e,n,i){if(!n.has(e))throw new TypeError("attempted to "+i+" private field on non-instance");return n.get(e)}function Gb(e,n){var i=Jv(e,n,"get");return Wb(e,i)}function Zb(e,n,i){if(n.set)n.set.call(e,i);else{if(!n.writable)throw new TypeError("attempted to set read only private field");n.value=i}}function Xh(e,n,i){var o=Jv(e,n,"set");return Zb(e,o,i),i}let qr="default",mc="",ql=new WeakMap;function Yh(e){if(xs()){if(qr==="default"){const n=ft(e);mc=n.documentElement.style.webkitUserSelect,n.documentElement.style.webkitUserSelect="none"}qr="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(ql.set(e,e.style.userSelect),e.style.userSelect="none")}function Dl(e){if(xs()){if(qr!=="disabled")return;qr="restoring",setTimeout(()=>{Gv(()=>{if(qr==="restoring"){const n=ft(e);n.documentElement.style.webkitUserSelect==="none"&&(n.documentElement.style.webkitUserSelect=mc||""),mc="",qr="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&ql.has(e)){let n=ql.get(e);e.style.userSelect==="none"&&(e.style.userSelect=n),e.getAttribute("style")===""&&e.removeAttribute("style"),ql.delete(e)}}const em=ce.createContext({register:()=>{}});em.displayName="PressResponderContext";function qb(e){let n=b.useContext(em);if(n){let{register:i,...o}=n;e=Fe(o,e),i()}return Xv(n,e.ref),e}var Ol=new WeakMap;class Bl{continuePropagation(){Xh(this,Ol,!1)}get shouldStopPropagation(){return Gb(this,Ol)}constructor(n,i,o){zx(this,Ol,{writable:!0,value:void 0}),Xh(this,Ol,!0),this.type=n,this.pointerType=i,this.target=o.currentTarget,this.shiftKey=o.shiftKey,this.metaKey=o.metaKey,this.ctrlKey=o.ctrlKey,this.altKey=o.altKey}}const Qh=Symbol("linkClicked");function sr(e){let{onPress:n,onPressChange:i,onPressStart:o,onPressEnd:s,onPressUp:u,isDisabled:c,isPressed:d,preventFocusOnPress:v,shouldCancelOnPointerExit:h,allowTextSelectionOnPress:m,ref:g,...x}=qb(e),[w,$]=b.useState(!1),S=b.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:k,removeAllGlobalListeners:A}=Zv(),I=rt((C,U)=>{let O=S.current;if(c||O.didFirePressStart)return!1;let H=!0;if(O.isTriggeringEvent=!0,o){let ne=new Bl("pressstart",U,C);o(ne),H=ne.shouldStopPropagation}return i&&i(!0),O.isTriggeringEvent=!1,O.didFirePressStart=!0,$(!0),H}),R=rt((C,U,O=!0)=>{let H=S.current;if(!H.didFirePressStart)return!1;H.ignoreClickAfterPress=!0,H.didFirePressStart=!1,H.isTriggeringEvent=!0;let ne=!0;if(s){let D=new Bl("pressend",U,C);s(D),ne=D.shouldStopPropagation}if(i&&i(!1),$(!1),n&&O&&!c){let D=new Bl("press",U,C);n(D),ne&&(ne=D.shouldStopPropagation)}return H.isTriggeringEvent=!1,ne}),B=rt((C,U)=>{let O=S.current;if(c)return!1;if(u){O.isTriggeringEvent=!0;let H=new Bl("pressup",U,C);return u(H),O.isTriggeringEvent=!1,H.shouldStopPropagation}return!0}),_=rt(C=>{let U=S.current;U.isPressed&&U.target&&(U.isOverTarget&&U.pointerType!=null&&R(sn(U.target,C),U.pointerType,!1),U.isPressed=!1,U.isOverTarget=!1,U.activePointerId=null,U.pointerType=null,A(),m||Dl(U.target))}),V=rt(C=>{h&&_(C)}),W=b.useMemo(()=>{let C=S.current,U={onKeyDown(H){if(Nu(H.nativeEvent,H.currentTarget)&&H.currentTarget.contains(H.target)){var ne;e0(H.target,H.key)&&H.preventDefault();let D=!0;if(!C.isPressed&&!H.repeat){C.target=H.currentTarget,C.isPressed=!0,D=I(H,"keyboard");let j=H.currentTarget,ue=xe=>{Nu(xe,j)&&!xe.repeat&&j.contains(xe.target)&&C.target&&B(sn(C.target,xe),"keyboard")};k(ft(H.currentTarget),"keyup",uo(ue,O),!0)}D&&H.stopPropagation(),H.metaKey&&or()&&((ne=C.metaKeyEvents)===null||ne===void 0||ne.set(H.key,H.nativeEvent))}else H.key==="Meta"&&(C.metaKeyEvents=new Map)},onClick(H){if(!(H&&!H.currentTarget.contains(H.target))&&H&&H.button===0&&!C.isTriggeringEvent&&!lr.isOpening){let ne=!0;if(c&&H.preventDefault(),!C.ignoreClickAfterPress&&!C.ignoreEmulatedMouseEvents&&!C.isPressed&&(C.pointerType==="virtual"||vc(H.nativeEvent))){!c&&!v&&un(H.currentTarget);let D=I(H,"virtual"),j=B(H,"virtual"),ue=R(H,"virtual");ne=D&&j&&ue}C.ignoreEmulatedMouseEvents=!1,C.ignoreClickAfterPress=!1,ne&&H.stopPropagation()}}},O=H=>{var ne;if(C.isPressed&&C.target&&Nu(H,C.target)){var D;e0(H.target,H.key)&&H.preventDefault();let ue=H.target;R(sn(C.target,H),"keyboard",C.target.contains(ue)),A(),H.key!=="Enter"&&qc(C.target)&&C.target.contains(ue)&&!H[Qh]&&(H[Qh]=!0,lr(C.target,H,!1)),C.isPressed=!1,(D=C.metaKeyEvents)===null||D===void 0||D.delete(H.key)}else if(H.key==="Meta"&&(!((ne=C.metaKeyEvents)===null||ne===void 0)&&ne.size)){var j;let ue=C.metaKeyEvents;C.metaKeyEvents=void 0;for(let xe of ue.values())(j=C.target)===null||j===void 0||j.dispatchEvent(new KeyboardEvent("keyup",xe))}};if(typeof PointerEvent<"u"){U.onPointerDown=j=>{if(j.button!==0||!j.currentTarget.contains(j.target))return;if(Kb(j.nativeEvent)){C.pointerType="virtual";return}Du(j.currentTarget)&&j.preventDefault(),C.pointerType=j.pointerType;let ue=!0;C.isPressed||(C.isPressed=!0,C.isOverTarget=!0,C.activePointerId=j.pointerId,C.target=j.currentTarget,!c&&!v&&un(j.currentTarget),m||Yh(C.target),ue=I(j,C.pointerType),k(ft(j.currentTarget),"pointermove",H,!1),k(ft(j.currentTarget),"pointerup",ne,!1),k(ft(j.currentTarget),"pointercancel",D,!1)),ue&&j.stopPropagation()},U.onMouseDown=j=>{j.currentTarget.contains(j.target)&&j.button===0&&(Du(j.currentTarget)&&j.preventDefault(),j.stopPropagation())},U.onPointerUp=j=>{!j.currentTarget.contains(j.target)||C.pointerType==="virtual"||j.button===0&&zr(j,j.currentTarget)&&B(j,C.pointerType||j.pointerType)};let H=j=>{j.pointerId===C.activePointerId&&(C.target&&zr(j,C.target)?!C.isOverTarget&&C.pointerType!=null&&(C.isOverTarget=!0,I(sn(C.target,j),C.pointerType)):C.target&&C.isOverTarget&&C.pointerType!=null&&(C.isOverTarget=!1,R(sn(C.target,j),C.pointerType,!1),V(j)))},ne=j=>{j.pointerId===C.activePointerId&&C.isPressed&&j.button===0&&C.target&&(zr(j,C.target)&&C.pointerType!=null?R(sn(C.target,j),C.pointerType):C.isOverTarget&&C.pointerType!=null&&R(sn(C.target,j),C.pointerType,!1),C.isPressed=!1,C.isOverTarget=!1,C.activePointerId=null,C.pointerType=null,A(),m||Dl(C.target))},D=j=>{_(j)};U.onDragStart=j=>{j.currentTarget.contains(j.target)&&_(j)}}else{U.onMouseDown=D=>{if(D.button!==0||!D.currentTarget.contains(D.target))return;if(Du(D.currentTarget)&&D.preventDefault(),C.ignoreEmulatedMouseEvents){D.stopPropagation();return}C.isPressed=!0,C.isOverTarget=!0,C.target=D.currentTarget,C.pointerType=vc(D.nativeEvent)?"virtual":"mouse",!c&&!v&&un(D.currentTarget),I(D,C.pointerType)&&D.stopPropagation(),k(ft(D.currentTarget),"mouseup",H,!1)},U.onMouseEnter=D=>{if(!D.currentTarget.contains(D.target))return;let j=!0;C.isPressed&&!C.ignoreEmulatedMouseEvents&&C.pointerType!=null&&(C.isOverTarget=!0,j=I(D,C.pointerType)),j&&D.stopPropagation()},U.onMouseLeave=D=>{if(!D.currentTarget.contains(D.target))return;let j=!0;C.isPressed&&!C.ignoreEmulatedMouseEvents&&C.pointerType!=null&&(C.isOverTarget=!1,j=R(D,C.pointerType,!1),V(D)),j&&D.stopPropagation()},U.onMouseUp=D=>{D.currentTarget.contains(D.target)&&!C.ignoreEmulatedMouseEvents&&D.button===0&&B(D,C.pointerType||"mouse")};let H=D=>{if(D.button===0){if(C.isPressed=!1,A(),C.ignoreEmulatedMouseEvents){C.ignoreEmulatedMouseEvents=!1;return}C.target&&zr(D,C.target)&&C.pointerType!=null?R(sn(C.target,D),C.pointerType):C.target&&C.isOverTarget&&C.pointerType!=null&&R(sn(C.target,D),C.pointerType,!1),C.isOverTarget=!1}};U.onTouchStart=D=>{if(!D.currentTarget.contains(D.target))return;let j=Xb(D.nativeEvent);if(!j)return;C.activePointerId=j.identifier,C.ignoreEmulatedMouseEvents=!0,C.isOverTarget=!0,C.isPressed=!0,C.target=D.currentTarget,C.pointerType="touch",!c&&!v&&un(D.currentTarget),m||Yh(C.target),I(D,C.pointerType)&&D.stopPropagation(),k(Dt(D.currentTarget),"scroll",ne,!0)},U.onTouchMove=D=>{if(!D.currentTarget.contains(D.target))return;if(!C.isPressed){D.stopPropagation();return}let j=Jh(D.nativeEvent,C.activePointerId),ue=!0;j&&zr(j,D.currentTarget)?!C.isOverTarget&&C.pointerType!=null&&(C.isOverTarget=!0,ue=I(D,C.pointerType)):C.isOverTarget&&C.pointerType!=null&&(C.isOverTarget=!1,ue=R(D,C.pointerType,!1),V(D)),ue&&D.stopPropagation()},U.onTouchEnd=D=>{if(!D.currentTarget.contains(D.target))return;if(!C.isPressed){D.stopPropagation();return}let j=Jh(D.nativeEvent,C.activePointerId),ue=!0;j&&zr(j,D.currentTarget)&&C.pointerType!=null?(B(D,C.pointerType),ue=R(D,C.pointerType)):C.isOverTarget&&C.pointerType!=null&&(ue=R(D,C.pointerType,!1)),ue&&D.stopPropagation(),C.isPressed=!1,C.activePointerId=null,C.isOverTarget=!1,C.ignoreEmulatedMouseEvents=!0,C.target&&!m&&Dl(C.target),A()},U.onTouchCancel=D=>{D.currentTarget.contains(D.target)&&(D.stopPropagation(),C.isPressed&&_(D))};let ne=D=>{C.isPressed&&D.target.contains(C.target)&&_({currentTarget:C.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};U.onDragStart=D=>{D.currentTarget.contains(D.target)&&_(D)}}return U},[k,c,v,A,m,_,V,R,I,B]);return b.useEffect(()=>()=>{var C;m||Dl((C=S.current.target)!==null&&C!==void 0?C:void 0)},[m]),{isPressed:d||w,pressProps:Fe(x,W)}}function qc(e){return e.tagName==="A"&&e.hasAttribute("href")}function Nu(e,n){const{key:i,code:o}=e,s=n,u=s.getAttribute("role");return(i==="Enter"||i===" "||i==="Spacebar"||o==="Space")&&!(s instanceof Dt(s).HTMLInputElement&&!tm(s,i)||s instanceof Dt(s).HTMLTextAreaElement||s.isContentEditable)&&!((u==="link"||!u&&qc(s))&&i!=="Enter")}function Xb(e){const{targetTouches:n}=e;return n.length>0?n[0]:null}function Jh(e,n){const i=e.changedTouches;for(let o=0;o<i.length;o++){const s=i[o];if(s.identifier===n)return s}return null}function sn(e,n){return{currentTarget:e,shiftKey:n.shiftKey,ctrlKey:n.ctrlKey,metaKey:n.metaKey,altKey:n.altKey}}function Yb(e){let n=0,i=0;return e.width!==void 0?n=e.width/2:e.radiusX!==void 0&&(n=e.radiusX),e.height!==void 0?i=e.height/2:e.radiusY!==void 0&&(i=e.radiusY),{top:e.clientY-i,right:e.clientX+n,bottom:e.clientY+i,left:e.clientX-n}}function Qb(e,n){return!(e.left>n.right||n.left>e.right||e.top>n.bottom||n.top>e.bottom)}function zr(e,n){let i=n.getBoundingClientRect(),o=Yb(e);return Qb(i,o)}function Du(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function e0(e,n){return e instanceof HTMLInputElement?!tm(e,n):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!qc(e)}const Jb=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function tm(e,n){return e.type==="checkbox"||e.type==="radio"?n===" ":Jb.has(e.type)}class ew{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(n,i){this.nativeEvent=i,this.target=i.target,this.currentTarget=i.currentTarget,this.relatedTarget=i.relatedTarget,this.bubbles=i.bubbles,this.cancelable=i.cancelable,this.defaultPrevented=i.defaultPrevented,this.eventPhase=i.eventPhase,this.isTrusted=i.isTrusted,this.timeStamp=i.timeStamp,this.type=n}}function nm(e){let n=b.useRef({isFocused:!1,observer:null});xt(()=>{const o=n.current;return()=>{o.observer&&(o.observer.disconnect(),o.observer=null)}},[]);let i=rt(o=>{e?.(o)});return b.useCallback(o=>{if(o.target instanceof HTMLButtonElement||o.target instanceof HTMLInputElement||o.target instanceof HTMLTextAreaElement||o.target instanceof HTMLSelectElement){n.current.isFocused=!0;let s=o.target,u=c=>{n.current.isFocused=!1,s.disabled&&i(new ew("blur",c)),n.current.observer&&(n.current.observer.disconnect(),n.current.observer=null)};s.addEventListener("focusout",u,{once:!0}),n.current.observer=new MutationObserver(()=>{if(n.current.isFocused&&s.disabled){var c;(c=n.current.observer)===null||c===void 0||c.disconnect();let d=s===document.activeElement?null:document.activeElement;s.dispatchEvent(new FocusEvent("blur",{relatedTarget:d})),s.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:d}))}}),n.current.observer.observe(s,{attributes:!0,attributeFilter:["disabled"]})}},[i])}function Xc(e){let{isDisabled:n,onFocus:i,onBlur:o,onFocusChange:s}=e;const u=b.useCallback(v=>{if(v.target===v.currentTarget)return o&&o(v),s&&s(!1),!0},[o,s]),c=nm(u),d=b.useCallback(v=>{v.target===v.currentTarget&&document.activeElement===v.target&&(i&&i(v),s&&s(!0),c(v))},[s,i,c]);return{focusProps:{onFocus:!n&&(i||s||o)?d:void 0,onBlur:!n&&(o||s)?u:void 0}}}let pr=null,gc=new Set,oo=new Map,ar=!1,yc=!1;const tw={Tab:!0,Escape:!0};function bs(e,n){for(let i of gc)i(e,n)}function nw(e){return!(e.metaKey||!or()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ns(e){ar=!0,nw(e)&&(pr="keyboard",bs("keyboard",e))}function Tt(e){pr="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(ar=!0,bs("pointer",e))}function rm(e){vc(e)&&(ar=!0,pr="virtual")}function im(e){e.target===window||e.target===document||(!ar&&!yc&&(pr="virtual",bs("virtual",e)),ar=!1,yc=!1)}function om(){ar=!1,yc=!0}function xc(e){if(typeof window>"u"||oo.get(Dt(e)))return;const n=Dt(e),i=ft(e);let o=n.HTMLElement.prototype.focus;n.HTMLElement.prototype.focus=function(){ar=!0,o.apply(this,arguments)},i.addEventListener("keydown",ns,!0),i.addEventListener("keyup",ns,!0),i.addEventListener("click",rm,!0),n.addEventListener("focus",im,!0),n.addEventListener("blur",om,!1),typeof PointerEvent<"u"?(i.addEventListener("pointerdown",Tt,!0),i.addEventListener("pointermove",Tt,!0),i.addEventListener("pointerup",Tt,!0)):(i.addEventListener("mousedown",Tt,!0),i.addEventListener("mousemove",Tt,!0),i.addEventListener("mouseup",Tt,!0)),n.addEventListener("beforeunload",()=>{lm(e)},{once:!0}),oo.set(n,{focus:o})}const lm=(e,n)=>{const i=Dt(e),o=ft(e);n&&o.removeEventListener("DOMContentLoaded",n),oo.has(i)&&(i.HTMLElement.prototype.focus=oo.get(i).focus,o.removeEventListener("keydown",ns,!0),o.removeEventListener("keyup",ns,!0),o.removeEventListener("click",rm,!0),i.removeEventListener("focus",im,!0),i.removeEventListener("blur",om,!1),typeof PointerEvent<"u"?(o.removeEventListener("pointerdown",Tt,!0),o.removeEventListener("pointermove",Tt,!0),o.removeEventListener("pointerup",Tt,!0)):(o.removeEventListener("mousedown",Tt,!0),o.removeEventListener("mousemove",Tt,!0),o.removeEventListener("mouseup",Tt,!0)),oo.delete(i))};function rw(e){const n=ft(e);let i;return n.readyState!=="loading"?xc(e):(i=()=>{xc(e)},n.addEventListener("DOMContentLoaded",i)),()=>lm(e,i)}typeof document<"u"&&rw();function ws(){return pr!=="pointer"}function rs(){return pr}function iw(e){pr=e,bs(e,null)}const ow=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function lw(e,n,i){var o;const s=typeof window<"u"?Dt(i?.target).HTMLInputElement:HTMLInputElement,u=typeof window<"u"?Dt(i?.target).HTMLTextAreaElement:HTMLTextAreaElement,c=typeof window<"u"?Dt(i?.target).HTMLElement:HTMLElement,d=typeof window<"u"?Dt(i?.target).KeyboardEvent:KeyboardEvent;return e=e||i?.target instanceof s&&!ow.has(i==null||(o=i.target)===null||o===void 0?void 0:o.type)||i?.target instanceof u||i?.target instanceof c&&i?.target.isContentEditable,!(e&&n==="keyboard"&&i instanceof d&&!tw[i.key])}function sw(e={}){let{isTextInput:n,autoFocus:i}=e,[o,s]=b.useState(i||ws());return sm(u=>{s(u)},[n],{isTextInput:n}),{isFocusVisible:o}}function sm(e,n,i){xc(),b.useEffect(()=>{let o=(s,u)=>{lw(!!i?.isTextInput,s,u)&&e(ws())};return gc.add(o),()=>{gc.delete(o)}},n)}function yo(e){let{isDisabled:n,onBlurWithin:i,onFocusWithin:o,onFocusWithinChange:s}=e,u=b.useRef({isFocusWithin:!1}),c=b.useCallback(h=>{u.current.isFocusWithin&&!h.currentTarget.contains(h.relatedTarget)&&(u.current.isFocusWithin=!1,i&&i(h),s&&s(!1))},[i,s,u]),d=nm(c),v=b.useCallback(h=>{!u.current.isFocusWithin&&document.activeElement===h.target&&(o&&o(h),s&&s(!0),u.current.isFocusWithin=!0,d(h))},[o,s,d]);return n?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:v,onBlur:c}}}let is=!1,Ou=0;function bc(){is=!0,setTimeout(()=>{is=!1},50)}function t0(e){e.pointerType==="touch"&&bc()}function aw(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",t0):document.addEventListener("touchend",bc),Ou++,()=>{Ou--,!(Ou>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",t0):document.removeEventListener("touchend",bc))}}function Fn(e){let{onHoverStart:n,onHoverChange:i,onHoverEnd:o,isDisabled:s}=e,[u,c]=b.useState(!1),d=b.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;b.useEffect(aw,[]);let{hoverProps:v,triggerHoverEnd:h}=b.useMemo(()=>{let m=(w,$)=>{if(d.pointerType=$,s||$==="touch"||d.isHovered||!w.currentTarget.contains(w.target))return;d.isHovered=!0;let S=w.currentTarget;d.target=S,n&&n({type:"hoverstart",target:S,pointerType:$}),i&&i(!0),c(!0)},g=(w,$)=>{if(d.pointerType="",d.target=null,$==="touch"||!d.isHovered)return;d.isHovered=!1;let S=w.currentTarget;o&&o({type:"hoverend",target:S,pointerType:$}),i&&i(!1),c(!1)},x={};return typeof PointerEvent<"u"?(x.onPointerEnter=w=>{is&&w.pointerType==="mouse"||m(w,w.pointerType)},x.onPointerLeave=w=>{!s&&w.currentTarget.contains(w.target)&&g(w,w.pointerType)}):(x.onTouchStart=()=>{d.ignoreEmulatedMouseEvents=!0},x.onMouseEnter=w=>{!d.ignoreEmulatedMouseEvents&&!is&&m(w,"mouse"),d.ignoreEmulatedMouseEvents=!1},x.onMouseLeave=w=>{!s&&w.currentTarget.contains(w.target)&&g(w,"mouse")}),{hoverProps:x,triggerHoverEnd:g}},[n,i,o,s,d]);return b.useEffect(()=>{s&&h({currentTarget:d.target},d.pointerType)},[s]),{hoverProps:v,isHovered:u}}function uw(e){let{ref:n,onInteractOutside:i,isDisabled:o,onInteractOutsideStart:s}=e,u=b.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),c=rt(v=>{i&&Hl(v,n)&&(s&&s(v),u.current.isPointerDown=!0)}),d=rt(v=>{i&&i(v)});b.useEffect(()=>{let v=u.current;if(o)return;const h=n.current,m=ft(h);if(typeof PointerEvent<"u"){let g=x=>{v.isPointerDown&&Hl(x,n)&&d(x),v.isPointerDown=!1};return m.addEventListener("pointerdown",c,!0),m.addEventListener("pointerup",g,!0),()=>{m.removeEventListener("pointerdown",c,!0),m.removeEventListener("pointerup",g,!0)}}else{let g=w=>{v.ignoreEmulatedMouseEvents?v.ignoreEmulatedMouseEvents=!1:v.isPointerDown&&Hl(w,n)&&d(w),v.isPointerDown=!1},x=w=>{v.ignoreEmulatedMouseEvents=!0,v.isPointerDown&&Hl(w,n)&&d(w),v.isPointerDown=!1};return m.addEventListener("mousedown",c,!0),m.addEventListener("mouseup",g,!0),m.addEventListener("touchstart",c,!0),m.addEventListener("touchend",x,!0),()=>{m.removeEventListener("mousedown",c,!0),m.removeEventListener("mouseup",g,!0),m.removeEventListener("touchstart",c,!0),m.removeEventListener("touchend",x,!0)}}},[n,o,c,d])}function Hl(e,n){if(e.button>0)return!1;if(e.target){const i=e.target.ownerDocument;if(!i||!i.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return n.current&&!n.current.contains(e.target)}function n0(e){if(!e)return;let n=!0;return i=>{let o={...i,preventDefault(){i.preventDefault()},isDefaultPrevented(){return i.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){n=!1}};e(o),n&&i.stopPropagation()}}function cw(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:n0(e.onKeyDown),onKeyUp:n0(e.onKeyUp)}}}const dw=500;function fw(e){let{isDisabled:n,onLongPressStart:i,onLongPressEnd:o,onLongPress:s,threshold:u=dw,accessibilityDescription:c}=e;const d=b.useRef();let{addGlobalListener:v,removeGlobalListener:h}=Zv(),{pressProps:m}=sr({isDisabled:n,onPressStart(x){if(x.continuePropagation(),(x.pointerType==="mouse"||x.pointerType==="touch")&&(i&&i({...x,type:"longpressstart"}),d.current=setTimeout(()=>{x.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),s&&s({...x,type:"longpress"}),d.current=void 0},u),x.pointerType==="touch")){let w=$=>{$.preventDefault()};v(x.target,"contextmenu",w,{once:!0}),v(window,"pointerup",()=>{setTimeout(()=>{h(x.target,"contextmenu",w)},30)},{once:!0})}},onPressEnd(x){d.current&&clearTimeout(d.current),o&&(x.pointerType==="mouse"||x.pointerType==="touch")&&o({...x,type:"longpressend"})}}),g=zb(s&&!n?c:void 0);return{longPressProps:Fe(m,g)}}function ur(e){const n=ft(e);if(rs()==="virtual"){let i=n.activeElement;Gv(()=>{n.activeElement===i&&e.isConnected&&un(e)})}else un(e)}function pw(e){const n=Dt(e);if(!(e instanceof n.HTMLElement)&&!(e instanceof n.SVGElement))return!1;let{display:i,visibility:o}=e.style,s=i!=="none"&&o!=="hidden"&&o!=="collapse";if(s){const{getComputedStyle:u}=e.ownerDocument.defaultView;let{display:c,visibility:d}=u(e);s=c!=="none"&&d!=="hidden"&&d!=="collapse"}return s}function hw(e,n){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&n&&n.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function am(e,n){return e.nodeName!=="#comment"&&pw(e)&&hw(e,n)&&(!e.parentElement||am(e.parentElement,e))}let vw=null;const Yc=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],mw=Yc.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Yc.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const gw=Yc.join(':not([hidden]):not([tabindex="-1"]),');function Qc(e,n){return!e||!n?!1:n.some(i=>i.contains(e))}function yw(e,n=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:i}of i0.traverse(i0.getTreeNode(n)))if(i&&Qc(e,i.current))return!0;return!1}function xw(e){return yw(e,vw)}function um(e,n,i){let o=n?.tabbable?gw:mw,s=ft(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(u){var c;return!(n==null||(c=n.from)===null||c===void 0)&&c.contains(u)?NodeFilter.FILTER_REJECT:u.matches(o)&&am(u)&&(!i||Qc(u,i))&&(!n?.accept||n.accept(u))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return n?.from&&(s.currentNode=n.from),s}class Jc{get size(){return this.fastMap.size}getTreeNode(n){return this.fastMap.get(n)}addTreeNode(n,i,o){let s=this.fastMap.get(i??null);if(!s)return;let u=new r0({scopeRef:n});s.addChild(u),u.parent=s,this.fastMap.set(n,u),o&&(u.nodeToRestore=o)}addNode(n){this.fastMap.set(n.scopeRef,n)}removeTreeNode(n){if(n===null)return;let i=this.fastMap.get(n);if(!i)return;let o=i.parent;for(let u of this.traverse())u!==i&&i.nodeToRestore&&u.nodeToRestore&&i.scopeRef&&i.scopeRef.current&&Qc(u.nodeToRestore,i.scopeRef.current)&&(u.nodeToRestore=i.nodeToRestore);let s=i.children;o&&(o.removeChild(i),s.size>0&&s.forEach(u=>o&&o.addChild(u))),this.fastMap.delete(i.scopeRef)}*traverse(n=this.root){if(n.scopeRef!=null&&(yield n),n.children.size>0)for(let i of n.children)yield*this.traverse(i)}clone(){var n;let i=new Jc;var o;for(let s of this.traverse())i.addTreeNode(s.scopeRef,(o=(n=s.parent)===null||n===void 0?void 0:n.scopeRef)!==null&&o!==void 0?o:null,s.nodeToRestore);return i}constructor(){this.fastMap=new Map,this.root=new r0({scopeRef:null}),this.fastMap.set(null,this.root)}}class r0{addChild(n){this.children.add(n),n.parent=this}removeChild(n){this.children.delete(n),n.parent=void 0}constructor(n){this.children=new Set,this.contain=!1,this.scopeRef=n.scopeRef}}let i0=new Jc;function cm(e={}){let{autoFocus:n=!1,isTextInput:i,within:o}=e,s=b.useRef({isFocused:!1,isFocusVisible:n||ws()}),[u,c]=b.useState(!1),[d,v]=b.useState(()=>s.current.isFocused&&s.current.isFocusVisible),h=b.useCallback(()=>v(s.current.isFocused&&s.current.isFocusVisible),[]),m=b.useCallback(w=>{s.current.isFocused=w,c(w),h()},[h]);sm(w=>{s.current.isFocusVisible=w,h()},[],{isTextInput:i});let{focusProps:g}=Xc({isDisabled:o,onFocusChange:m}),{focusWithinProps:x}=yo({isDisabled:!o,onFocusWithinChange:m});return{isFocused:u,isFocusVisible:d,focusProps:o?x:g}}let dm=ce.createContext(null);function bw(e){let n=b.useContext(dm)||{};Xv(n,e);let{ref:i,...o}=n;return o}function ww(e,n){let{children:i,...o}=e,s=Bb(n),u={...o,ref:s};return ce.createElement(dm.Provider,{value:u},i)}let Sw=ce.forwardRef(ww);function xo(e,n){let{focusProps:i}=Xc(e),{keyboardProps:o}=cw(e),s=Fe(i,o),u=bw(n),c=e.isDisabled?{}:u,d=b.useRef(e.autoFocus);return b.useEffect(()=>{d.current&&n.current&&ur(n.current),d.current=!1},[n]),{focusableProps:Fe({...s,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},c)}}const Ew=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),$w=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Pw(e){if(Intl.Locale){let i=new Intl.Locale(e).maximize(),o=typeof i.getTextInfo=="function"?i.getTextInfo():i.textInfo;if(o)return o.direction==="rtl";if(i.script)return Ew.has(i.script)}let n=e.split("-")[0];return $w.has(n)}const Cw=Symbol.for("react-aria.i18n.locale");function fm(){let e=typeof window<"u"&&window[Cw]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Pw(e)?"rtl":"ltr"}}let wc=fm(),to=new Set;function o0(){wc=fm();for(let e of to)e(wc)}function Tw(){let e=Av(),[n,i]=b.useState(wc);return b.useEffect(()=>(to.size===0&&window.addEventListener("languagechange",o0),to.add(i),()=>{to.delete(i),to.size===0&&window.removeEventListener("languagechange",o0)}),[]),e?{locale:"en-US",direction:"ltr"}:n}const kw=ce.createContext(null);function li(){let e=Tw();return b.useContext(kw)||e}const l0=new WeakMap;function Iw(e){let n=l0.get(e);return n||(n=new gs(e),l0.set(e,n)),n}function Lw(e,n){return n&&gs.getGlobalDictionaryForPackage(n)||Iw(e)}function Rw(e,n){let{locale:i}=li(),o=Lw(e,n);return b.useMemo(()=>new fb(i,o),[i,o])}let Bu=new Map;function _w(e){let{locale:n}=li(),i=n+(e?Object.entries(e).sort((s,u)=>s[0]<u[0]?-1:1).join():"");if(Bu.has(i))return Bu.get(i);let o=new Intl.Collator(n,e);return Bu.set(i,o),o}var Sc=function(e,n){return Sc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(i[s]=o[s])},Sc(e,n)};function Ss(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");Sc(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}var ge=function(){return ge=Object.assign||function(n){for(var i,o=1,s=arguments.length;o<s;o++){i=arguments[o];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])}return n},ge.apply(this,arguments)};function Mw(e,n){var i={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(i[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(e);s<o.length;s++)n.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(e,o[s])&&(i[o[s]]=e[o[s]]);return i}function Hu(e,n,i){if(i||arguments.length===2)for(var o=0,s=n.length,u;o<s;o++)(u||!(o in n))&&(u||(u=Array.prototype.slice.call(n,0,o)),u[o]=n[o]);return e.concat(u||Array.prototype.slice.call(n))}var pe;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(pe||(pe={}));var Le;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Le||(Le={}));var ri;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(ri||(ri={}));function s0(e){return e.type===Le.literal}function Fw(e){return e.type===Le.argument}function pm(e){return e.type===Le.number}function hm(e){return e.type===Le.date}function vm(e){return e.type===Le.time}function mm(e){return e.type===Le.select}function gm(e){return e.type===Le.plural}function Aw(e){return e.type===Le.pound}function ym(e){return e.type===Le.tag}function xm(e){return!!(e&&typeof e=="object"&&e.type===ri.number)}function Ec(e){return!!(e&&typeof e=="object"&&e.type===ri.dateTime)}var bm=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Nw=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Dw(e){var n={};return e.replace(Nw,function(i){var o=i.length;switch(i[0]){case"G":n.era=o===4?"long":o===5?"narrow":"short";break;case"y":n.year=o===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":n.month=["numeric","2-digit","short","long","narrow"][o-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":n.day=["numeric","2-digit"][o-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":n.weekday=o===4?"long":o===5?"narrow":"short";break;case"e":if(o<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][o-4];break;case"c":if(o<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][o-4];break;case"a":n.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":n.hourCycle="h12",n.hour=["numeric","2-digit"][o-1];break;case"H":n.hourCycle="h23",n.hour=["numeric","2-digit"][o-1];break;case"K":n.hourCycle="h11",n.hour=["numeric","2-digit"][o-1];break;case"k":n.hourCycle="h24",n.hour=["numeric","2-digit"][o-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":n.minute=["numeric","2-digit"][o-1];break;case"s":n.second=["numeric","2-digit"][o-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":n.timeZoneName=o<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),n}var Ow=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Bw(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var n=e.split(Ow).filter(function(x){return x.length>0}),i=[],o=0,s=n;o<s.length;o++){var u=s[o],c=u.split("/");if(c.length===0)throw new Error("Invalid number skeleton");for(var d=c[0],v=c.slice(1),h=0,m=v;h<m.length;h++){var g=m[h];if(g.length===0)throw new Error("Invalid number skeleton")}i.push({stem:d,options:v})}return i}function Hw(e){return e.replace(/^(.*?)-/,"")}var a0=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,wm=/^(@+)?(\+|#+)?[rs]?$/g,jw=/(\*)(0+)|(#+)(0+)|(0+)/g,Sm=/^(0+)$/;function u0(e){var n={};return e[e.length-1]==="r"?n.roundingPriority="morePrecision":e[e.length-1]==="s"&&(n.roundingPriority="lessPrecision"),e.replace(wm,function(i,o,s){return typeof s!="string"?(n.minimumSignificantDigits=o.length,n.maximumSignificantDigits=o.length):s==="+"?n.minimumSignificantDigits=o.length:o[0]==="#"?n.maximumSignificantDigits=o.length:(n.minimumSignificantDigits=o.length,n.maximumSignificantDigits=o.length+(typeof s=="string"?s.length:0)),""}),n}function Em(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Vw(e){var n;if(e[0]==="E"&&e[1]==="E"?(n={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(n={notation:"scientific"},e=e.slice(1)),n){var i=e.slice(0,2);if(i==="+!"?(n.signDisplay="always",e=e.slice(2)):i==="+?"&&(n.signDisplay="exceptZero",e=e.slice(2)),!Sm.test(e))throw new Error("Malformed concise eng/scientific notation");n.minimumIntegerDigits=e.length}return n}function c0(e){var n={},i=Em(e);return i||n}function zw(e){for(var n={},i=0,o=e;i<o.length;i++){var s=o[i];switch(s.stem){case"percent":case"%":n.style="percent";continue;case"%x100":n.style="percent",n.scale=100;continue;case"currency":n.style="currency",n.currency=s.options[0];continue;case"group-off":case",_":n.useGrouping=!1;continue;case"precision-integer":case".":n.maximumFractionDigits=0;continue;case"measure-unit":case"unit":n.style="unit",n.unit=Hw(s.options[0]);continue;case"compact-short":case"K":n.notation="compact",n.compactDisplay="short";continue;case"compact-long":case"KK":n.notation="compact",n.compactDisplay="long";continue;case"scientific":n=ge(ge(ge({},n),{notation:"scientific"}),s.options.reduce(function(v,h){return ge(ge({},v),c0(h))},{}));continue;case"engineering":n=ge(ge(ge({},n),{notation:"engineering"}),s.options.reduce(function(v,h){return ge(ge({},v),c0(h))},{}));continue;case"notation-simple":n.notation="standard";continue;case"unit-width-narrow":n.currencyDisplay="narrowSymbol",n.unitDisplay="narrow";continue;case"unit-width-short":n.currencyDisplay="code",n.unitDisplay="short";continue;case"unit-width-full-name":n.currencyDisplay="name",n.unitDisplay="long";continue;case"unit-width-iso-code":n.currencyDisplay="symbol";continue;case"scale":n.scale=parseFloat(s.options[0]);continue;case"rounding-mode-floor":n.roundingMode="floor";continue;case"rounding-mode-ceiling":n.roundingMode="ceil";continue;case"rounding-mode-down":n.roundingMode="trunc";continue;case"rounding-mode-up":n.roundingMode="expand";continue;case"rounding-mode-half-even":n.roundingMode="halfEven";continue;case"rounding-mode-half-down":n.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":n.roundingMode="halfExpand";continue;case"integer-width":if(s.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");s.options[0].replace(jw,function(v,h,m,g,x,w){if(h)n.minimumIntegerDigits=m.length;else{if(g&&x)throw new Error("We currently do not support maximum integer digits");if(w)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Sm.test(s.stem)){n.minimumIntegerDigits=s.stem.length;continue}if(a0.test(s.stem)){if(s.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");s.stem.replace(a0,function(v,h,m,g,x,w){return m==="*"?n.minimumFractionDigits=h.length:g&&g[0]==="#"?n.maximumFractionDigits=g.length:x&&w?(n.minimumFractionDigits=x.length,n.maximumFractionDigits=x.length+w.length):(n.minimumFractionDigits=h.length,n.maximumFractionDigits=h.length),""});var u=s.options[0];u==="w"?n=ge(ge({},n),{trailingZeroDisplay:"stripIfInteger"}):u&&(n=ge(ge({},n),u0(u)));continue}if(wm.test(s.stem)){n=ge(ge({},n),u0(s.stem));continue}var c=Em(s.stem);c&&(n=ge(ge({},n),c));var d=Vw(s.stem);d&&(n=ge(ge({},n),d))}return n}var jl={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Uw(e,n){for(var i="",o=0;o<e.length;o++){var s=e.charAt(o);if(s==="j"){for(var u=0;o+1<e.length&&e.charAt(o+1)===s;)u++,o++;var c=1+(u&1),d=u<2?1:3+(u>>1),v="a",h=Kw(n);for((h=="H"||h=="k")&&(d=0);d-- >0;)i+=v;for(;c-- >0;)i=h+i}else s==="J"?i+="H":i+=s}return i}function Kw(e){var n=e.hourCycle;if(n===void 0&&e.hourCycles&&e.hourCycles.length&&(n=e.hourCycles[0]),n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var i=e.language,o;i!=="root"&&(o=e.maximize().region);var s=jl[o||""]||jl[i||""]||jl["".concat(i,"-001")]||jl["001"];return s[0]}var ju,Ww=new RegExp("^".concat(bm.source,"*")),Gw=new RegExp("".concat(bm.source,"*$"));function he(e,n){return{start:e,end:n}}var Zw=!!String.prototype.startsWith&&"_a".startsWith("a",1),qw=!!String.fromCodePoint,Xw=!!Object.fromEntries,Yw=!!String.prototype.codePointAt,Qw=!!String.prototype.trimStart,Jw=!!String.prototype.trimEnd,e6=!!Number.isSafeInteger,t6=e6?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},$c=!0;try{var n6=Pm("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");$c=((ju=n6.exec("a"))===null||ju===void 0?void 0:ju[0])==="a"}catch{$c=!1}var d0=Zw?function(n,i,o){return n.startsWith(i,o)}:function(n,i,o){return n.slice(o,o+i.length)===i},Pc=qw?String.fromCodePoint:function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];for(var o="",s=n.length,u=0,c;s>u;){if(c=n[u++],c>1114111)throw RangeError(c+" is not a valid code point");o+=c<65536?String.fromCharCode(c):String.fromCharCode(((c-=65536)>>10)+55296,c%1024+56320)}return o},f0=Xw?Object.fromEntries:function(n){for(var i={},o=0,s=n;o<s.length;o++){var u=s[o],c=u[0],d=u[1];i[c]=d}return i},$m=Yw?function(n,i){return n.codePointAt(i)}:function(n,i){var o=n.length;if(!(i<0||i>=o)){var s=n.charCodeAt(i),u;return s<55296||s>56319||i+1===o||(u=n.charCodeAt(i+1))<56320||u>57343?s:(s-55296<<10)+(u-56320)+65536}},r6=Qw?function(n){return n.trimStart()}:function(n){return n.replace(Ww,"")},i6=Jw?function(n){return n.trimEnd()}:function(n){return n.replace(Gw,"")};function Pm(e,n){return new RegExp(e,n)}var Cc;if($c){var p0=Pm("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Cc=function(n,i){var o;p0.lastIndex=i;var s=p0.exec(n);return(o=s[1])!==null&&o!==void 0?o:""}}else Cc=function(n,i){for(var o=[];;){var s=$m(n,i);if(s===void 0||Cm(s)||a6(s))break;o.push(s),i+=s>=65536?2:1}return Pc.apply(void 0,o)};var o6=(function(){function e(n,i){i===void 0&&(i={}),this.message=n,this.position={offset:0,line:1,column:1},this.ignoreTag=!!i.ignoreTag,this.locale=i.locale,this.requiresOtherClause=!!i.requiresOtherClause,this.shouldParseSkeletons=!!i.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(n,i,o){for(var s=[];!this.isEOF();){var u=this.char();if(u===123){var c=this.parseArgument(n,o);if(c.err)return c;s.push(c.val)}else{if(u===125&&n>0)break;if(u===35&&(i==="plural"||i==="selectordinal")){var d=this.clonePosition();this.bump(),s.push({type:Le.pound,location:he(d,this.clonePosition())})}else if(u===60&&!this.ignoreTag&&this.peek()===47){if(o)break;return this.error(pe.UNMATCHED_CLOSING_TAG,he(this.clonePosition(),this.clonePosition()))}else if(u===60&&!this.ignoreTag&&Tc(this.peek()||0)){var c=this.parseTag(n,i);if(c.err)return c;s.push(c.val)}else{var c=this.parseLiteral(n,i);if(c.err)return c;s.push(c.val)}}}return{val:s,err:null}},e.prototype.parseTag=function(n,i){var o=this.clonePosition();this.bump();var s=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Le.literal,value:"<".concat(s,"/>"),location:he(o,this.clonePosition())},err:null};if(this.bumpIf(">")){var u=this.parseMessage(n+1,i,!0);if(u.err)return u;var c=u.val,d=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Tc(this.char()))return this.error(pe.INVALID_TAG,he(d,this.clonePosition()));var v=this.clonePosition(),h=this.parseTagName();return s!==h?this.error(pe.UNMATCHED_CLOSING_TAG,he(v,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Le.tag,value:s,children:c,location:he(o,this.clonePosition())},err:null}:this.error(pe.INVALID_TAG,he(d,this.clonePosition())))}else return this.error(pe.UNCLOSED_TAG,he(o,this.clonePosition()))}else return this.error(pe.INVALID_TAG,he(o,this.clonePosition()))},e.prototype.parseTagName=function(){var n=this.offset();for(this.bump();!this.isEOF()&&s6(this.char());)this.bump();return this.message.slice(n,this.offset())},e.prototype.parseLiteral=function(n,i){for(var o=this.clonePosition(),s="";;){var u=this.tryParseQuote(i);if(u){s+=u;continue}var c=this.tryParseUnquoted(n,i);if(c){s+=c;continue}var d=this.tryParseLeftAngleBracket();if(d){s+=d;continue}break}var v=he(o,this.clonePosition());return{val:{type:Le.literal,value:s,location:v},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!l6(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(n){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(n==="plural"||n==="selectordinal")break;return null;default:return null}this.bump();var i=[this.char()];for(this.bump();!this.isEOF();){var o=this.char();if(o===39)if(this.peek()===39)i.push(39),this.bump();else{this.bump();break}else i.push(o);this.bump()}return Pc.apply(void 0,i)},e.prototype.tryParseUnquoted=function(n,i){if(this.isEOF())return null;var o=this.char();return o===60||o===123||o===35&&(i==="plural"||i==="selectordinal")||o===125&&n>0?null:(this.bump(),Pc(o))},e.prototype.parseArgument=function(n,i){var o=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(pe.EXPECT_ARGUMENT_CLOSING_BRACE,he(o,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(pe.EMPTY_ARGUMENT,he(o,this.clonePosition()));var s=this.parseIdentifierIfPossible().value;if(!s)return this.error(pe.MALFORMED_ARGUMENT,he(o,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(pe.EXPECT_ARGUMENT_CLOSING_BRACE,he(o,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Le.argument,value:s,location:he(o,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(pe.EXPECT_ARGUMENT_CLOSING_BRACE,he(o,this.clonePosition())):this.parseArgumentOptions(n,i,s,o);default:return this.error(pe.MALFORMED_ARGUMENT,he(o,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var n=this.clonePosition(),i=this.offset(),o=Cc(this.message,i),s=i+o.length;this.bumpTo(s);var u=this.clonePosition(),c=he(n,u);return{value:o,location:c}},e.prototype.parseArgumentOptions=function(n,i,o,s){var u,c=this.clonePosition(),d=this.parseIdentifierIfPossible().value,v=this.clonePosition();switch(d){case"":return this.error(pe.EXPECT_ARGUMENT_TYPE,he(c,v));case"number":case"date":case"time":{this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var m=this.clonePosition(),g=this.parseSimpleArgStyleIfPossible();if(g.err)return g;var x=i6(g.val);if(x.length===0)return this.error(pe.EXPECT_ARGUMENT_STYLE,he(this.clonePosition(),this.clonePosition()));var w=he(m,this.clonePosition());h={style:x,styleLocation:w}}var $=this.tryParseArgumentClose(s);if($.err)return $;var S=he(s,this.clonePosition());if(h&&d0(h?.style,"::",0)){var k=r6(h.style.slice(2));if(d==="number"){var g=this.parseNumberSkeletonFromString(k,h.styleLocation);return g.err?g:{val:{type:Le.number,value:o,location:S,style:g.val},err:null}}else{if(k.length===0)return this.error(pe.EXPECT_DATE_TIME_SKELETON,S);var A=k;this.locale&&(A=Uw(k,this.locale));var x={type:ri.dateTime,pattern:A,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?Dw(A):{}},I=d==="date"?Le.date:Le.time;return{val:{type:I,value:o,location:S,style:x},err:null}}}return{val:{type:d==="number"?Le.number:d==="date"?Le.date:Le.time,value:o,location:S,style:(u=h?.style)!==null&&u!==void 0?u:null},err:null}}case"plural":case"selectordinal":case"select":{var R=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(pe.EXPECT_SELECT_ARGUMENT_OPTIONS,he(R,ge({},R)));this.bumpSpace();var B=this.parseIdentifierIfPossible(),_=0;if(d!=="select"&&B.value==="offset"){if(!this.bumpIf(":"))return this.error(pe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,he(this.clonePosition(),this.clonePosition()));this.bumpSpace();var g=this.tryParseDecimalInteger(pe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,pe.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(g.err)return g;this.bumpSpace(),B=this.parseIdentifierIfPossible(),_=g.val}var V=this.tryParsePluralOrSelectOptions(n,d,i,B);if(V.err)return V;var $=this.tryParseArgumentClose(s);if($.err)return $;var W=he(s,this.clonePosition());return d==="select"?{val:{type:Le.select,value:o,options:f0(V.val),location:W},err:null}:{val:{type:Le.plural,value:o,options:f0(V.val),offset:_,pluralType:d==="plural"?"cardinal":"ordinal",location:W},err:null}}default:return this.error(pe.INVALID_ARGUMENT_TYPE,he(c,v))}},e.prototype.tryParseArgumentClose=function(n){return this.isEOF()||this.char()!==125?this.error(pe.EXPECT_ARGUMENT_CLOSING_BRACE,he(n,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var n=0,i=this.clonePosition();!this.isEOF();){var o=this.char();switch(o){case 39:{this.bump();var s=this.clonePosition();if(!this.bumpUntil("'"))return this.error(pe.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,he(s,this.clonePosition()));this.bump();break}case 123:{n+=1,this.bump();break}case 125:{if(n>0)n-=1;else return{val:this.message.slice(i.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(i.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(n,i){var o=[];try{o=Bw(n)}catch{return this.error(pe.INVALID_NUMBER_SKELETON,i)}return{val:{type:ri.number,tokens:o,location:i,parsedOptions:this.shouldParseSkeletons?zw(o):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(n,i,o,s){for(var u,c=!1,d=[],v=new Set,h=s.value,m=s.location;;){if(h.length===0){var g=this.clonePosition();if(i!=="select"&&this.bumpIf("=")){var x=this.tryParseDecimalInteger(pe.EXPECT_PLURAL_ARGUMENT_SELECTOR,pe.INVALID_PLURAL_ARGUMENT_SELECTOR);if(x.err)return x;m=he(g,this.clonePosition()),h=this.message.slice(g.offset,this.offset())}else break}if(v.has(h))return this.error(i==="select"?pe.DUPLICATE_SELECT_ARGUMENT_SELECTOR:pe.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,m);h==="other"&&(c=!0),this.bumpSpace();var w=this.clonePosition();if(!this.bumpIf("{"))return this.error(i==="select"?pe.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:pe.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,he(this.clonePosition(),this.clonePosition()));var $=this.parseMessage(n+1,i,o);if($.err)return $;var S=this.tryParseArgumentClose(w);if(S.err)return S;d.push([h,{value:$.val,location:he(w,this.clonePosition())}]),v.add(h),this.bumpSpace(),u=this.parseIdentifierIfPossible(),h=u.value,m=u.location}return d.length===0?this.error(i==="select"?pe.EXPECT_SELECT_ARGUMENT_SELECTOR:pe.EXPECT_PLURAL_ARGUMENT_SELECTOR,he(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!c?this.error(pe.MISSING_OTHER_CLAUSE,he(this.clonePosition(),this.clonePosition())):{val:d,err:null}},e.prototype.tryParseDecimalInteger=function(n,i){var o=1,s=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(o=-1);for(var u=!1,c=0;!this.isEOF();){var d=this.char();if(d>=48&&d<=57)u=!0,c=c*10+(d-48),this.bump();else break}var v=he(s,this.clonePosition());return u?(c*=o,t6(c)?{val:c,err:null}:this.error(i,v)):this.error(n,v)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var n=this.position.offset;if(n>=this.message.length)throw Error("out of bound");var i=$m(this.message,n);if(i===void 0)throw Error("Offset ".concat(n," is at invalid UTF-16 code unit boundary"));return i},e.prototype.error=function(n,i){return{val:null,err:{kind:n,message:this.message,location:i}}},e.prototype.bump=function(){if(!this.isEOF()){var n=this.char();n===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=n<65536?1:2)}},e.prototype.bumpIf=function(n){if(d0(this.message,n,this.offset())){for(var i=0;i<n.length;i++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(n){var i=this.offset(),o=this.message.indexOf(n,i);return o>=0?(this.bumpTo(o),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(n){if(this.offset()>n)throw Error("targetOffset ".concat(n," must be greater than or equal to the current offset ").concat(this.offset()));for(n=Math.min(n,this.message.length);;){var i=this.offset();if(i===n)break;if(i>n)throw Error("targetOffset ".concat(n," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Cm(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var n=this.char(),i=this.offset(),o=this.message.charCodeAt(i+(n>=65536?2:1));return o??null},e})();function Tc(e){return e>=97&&e<=122||e>=65&&e<=90}function l6(e){return Tc(e)||e===47}function s6(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Cm(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function a6(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function kc(e){e.forEach(function(n){if(delete n.location,mm(n)||gm(n))for(var i in n.options)delete n.options[i].location,kc(n.options[i].value);else pm(n)&&xm(n.style)||(hm(n)||vm(n))&&Ec(n.style)?delete n.style.location:ym(n)&&kc(n.children)})}function u6(e,n){n===void 0&&(n={}),n=ge({shouldParseSkeletons:!0,requiresOtherClause:!0},n);var i=new o6(e,n).parse();if(i.err){var o=SyntaxError(pe[i.err.kind]);throw o.location=i.err.location,o.originalMessage=i.err.message,o}return n?.captureLocation||kc(i.val),i.val}function Vu(e,n){var i=n&&n.cache?n.cache:v6,o=n&&n.serializer?n.serializer:h6,s=n&&n.strategy?n.strategy:f6;return s(e,{cache:i,serializer:o})}function c6(e){return e==null||typeof e=="number"||typeof e=="boolean"}function d6(e,n,i,o){var s=c6(o)?o:i(o),u=n.get(s);return typeof u>"u"&&(u=e.call(this,o),n.set(s,u)),u}function Tm(e,n,i){var o=Array.prototype.slice.call(arguments,3),s=i(o),u=n.get(s);return typeof u>"u"&&(u=e.apply(this,o),n.set(s,u)),u}function km(e,n,i,o,s){return i.bind(n,e,o,s)}function f6(e,n){var i=e.length===1?d6:Tm;return km(e,this,i,n.cache.create(),n.serializer)}function p6(e,n){return km(e,this,Tm,n.cache.create(),n.serializer)}var h6=function(){return JSON.stringify(arguments)};function ed(){this.cache=Object.create(null)}ed.prototype.get=function(e){return this.cache[e]};ed.prototype.set=function(e,n){this.cache[e]=n};var v6={create:function(){return new ed}},zu={variadic:p6},ii;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(ii||(ii={}));var Es=(function(e){Ss(n,e);function n(i,o,s){var u=e.call(this,i)||this;return u.code=o,u.originalMessage=s,u}return n.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},n})(Error),h0=(function(e){Ss(n,e);function n(i,o,s,u){return e.call(this,'Invalid values for "'.concat(i,'": "').concat(o,'". Options are "').concat(Object.keys(s).join('", "'),'"'),ii.INVALID_VALUE,u)||this}return n})(Es),m6=(function(e){Ss(n,e);function n(i,o,s){return e.call(this,'Value for "'.concat(i,'" must be of type ').concat(o),ii.INVALID_VALUE,s)||this}return n})(Es),g6=(function(e){Ss(n,e);function n(i,o){return e.call(this,'The intl string context variable "'.concat(i,'" was not provided to the string "').concat(o,'"'),ii.MISSING_VALUE,o)||this}return n})(Es),nt;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(nt||(nt={}));function y6(e){return e.length<2?e:e.reduce(function(n,i){var o=n[n.length-1];return!o||o.type!==nt.literal||i.type!==nt.literal?n.push(i):o.value+=i.value,n},[])}function x6(e){return typeof e=="function"}function Xl(e,n,i,o,s,u,c){if(e.length===1&&s0(e[0]))return[{type:nt.literal,value:e[0].value}];for(var d=[],v=0,h=e;v<h.length;v++){var m=h[v];if(s0(m)){d.push({type:nt.literal,value:m.value});continue}if(Aw(m)){typeof u=="number"&&d.push({type:nt.literal,value:i.getNumberFormat(n).format(u)});continue}var g=m.value;if(!(s&&g in s))throw new g6(g,c);var x=s[g];if(Fw(m)){(!x||typeof x=="string"||typeof x=="number")&&(x=typeof x=="string"||typeof x=="number"?String(x):""),d.push({type:typeof x=="string"?nt.literal:nt.object,value:x});continue}if(hm(m)){var w=typeof m.style=="string"?o.date[m.style]:Ec(m.style)?m.style.parsedOptions:void 0;d.push({type:nt.literal,value:i.getDateTimeFormat(n,w).format(x)});continue}if(vm(m)){var w=typeof m.style=="string"?o.time[m.style]:Ec(m.style)?m.style.parsedOptions:o.time.medium;d.push({type:nt.literal,value:i.getDateTimeFormat(n,w).format(x)});continue}if(pm(m)){var w=typeof m.style=="string"?o.number[m.style]:xm(m.style)?m.style.parsedOptions:void 0;w&&w.scale&&(x=x*(w.scale||1)),d.push({type:nt.literal,value:i.getNumberFormat(n,w).format(x)});continue}if(ym(m)){var $=m.children,S=m.value,k=s[S];if(!x6(k))throw new m6(S,"function",c);var A=Xl($,n,i,o,s,u),I=k(A.map(function(_){return _.value}));Array.isArray(I)||(I=[I]),d.push.apply(d,I.map(function(_){return{type:typeof _=="string"?nt.literal:nt.object,value:_}}))}if(mm(m)){var R=m.options[x]||m.options.other;if(!R)throw new h0(m.value,x,Object.keys(m.options),c);d.push.apply(d,Xl(R.value,n,i,o,s));continue}if(gm(m)){var R=m.options["=".concat(x)];if(!R){if(!Intl.PluralRules)throw new Es(`Intl.PluralRules is not available in this environment.
52
+ Try polyfilling it using "@formatjs/intl-pluralrules"
53
+ `,ii.MISSING_INTL_API,c);var B=i.getPluralRules(n,{type:m.pluralType}).select(x-(m.offset||0));R=m.options[B]||m.options.other}if(!R)throw new h0(m.value,x,Object.keys(m.options),c);d.push.apply(d,Xl(R.value,n,i,o,s,x-(m.offset||0)));continue}}return y6(d)}function b6(e,n){return n?ge(ge(ge({},e||{}),n||{}),Object.keys(e).reduce(function(i,o){return i[o]=ge(ge({},e[o]),n[o]||{}),i},{})):e}function w6(e,n){return n?Object.keys(e).reduce(function(i,o){return i[o]=b6(e[o],n[o]),i},ge({},e)):e}function Uu(e){return{create:function(){return{get:function(n){return e[n]},set:function(n,i){e[n]=i}}}}}function S6(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Vu(function(){for(var n,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return new((n=Intl.NumberFormat).bind.apply(n,Hu([void 0],i,!1)))},{cache:Uu(e.number),strategy:zu.variadic}),getDateTimeFormat:Vu(function(){for(var n,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return new((n=Intl.DateTimeFormat).bind.apply(n,Hu([void 0],i,!1)))},{cache:Uu(e.dateTime),strategy:zu.variadic}),getPluralRules:Vu(function(){for(var n,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return new((n=Intl.PluralRules).bind.apply(n,Hu([void 0],i,!1)))},{cache:Uu(e.pluralRules),strategy:zu.variadic})}}var E6=(function(){function e(n,i,o,s){var u=this;if(i===void 0&&(i=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(v){var h=u.formatToParts(v);if(h.length===1)return h[0].value;var m=h.reduce(function(g,x){return!g.length||x.type!==nt.literal||typeof g[g.length-1]!="string"?g.push(x.value):g[g.length-1]+=x.value,g},[]);return m.length<=1?m[0]||"":m},this.formatToParts=function(v){return Xl(u.ast,u.locales,u.formatters,u.formats,v,void 0,u.message)},this.resolvedOptions=function(){var v;return{locale:((v=u.resolvedLocale)===null||v===void 0?void 0:v.toString())||Intl.NumberFormat.supportedLocalesOf(u.locales)[0]}},this.getAst=function(){return u.ast},this.locales=i,this.resolvedLocale=e.resolveLocale(i),typeof n=="string"){if(this.message=n,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var c=s||{};c.formatters;var d=Mw(c,["formatters"]);this.ast=e.__parse(n,ge(ge({},d),{locale:this.resolvedLocale}))}else this.ast=n;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=w6(e.formats,o),this.formatters=s&&s.formatters||S6(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(n){if(!(typeof Intl.Locale>"u")){var i=Intl.NumberFormat.supportedLocalesOf(n);return i.length>0?new Intl.Locale(i[0]):new Intl.Locale(typeof n=="string"?n:n[0])}},e.__parse=u6,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e})();class $6{getStringForLocale(n,i){let o=this.messages[i];o||(o=P6(i,this.messages,this.defaultLocale),this.messages[i]=o);let s=o[n];if(!s)throw new Error(`Could not find intl message ${n} in ${i} locale`);return s}constructor(n,i="en-US"){this.messages={...n},this.defaultLocale=i}}function P6(e,n,i="en-US"){if(n[e])return n[e];let o=C6(e);if(n[o])return n[o];for(let s in n)if(s.startsWith(o+"-"))return n[s];return n[i]}function C6(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}class T6{format(n,i){let o=this.cache[n];if(!o){let u=this.messages.getStringForLocale(n,this.locale);if(!u)throw new Error(`Could not find intl message ${n} in ${this.locale} locale`);o=new E6(u,this.locale),this.cache[n]=o}let s;return i&&(s=Object.keys(i).reduce((u,c)=>(u[c]=i[c]==null?!1:i[c],u),{})),o.format(s)}constructor(n,i){this.locale=n,this.messages=i,this.cache={}}}const v0=new WeakMap;function k6(e){let n=v0.get(e);return n||(n=new $6(e),v0.set(e,n)),n}function I6(e){let{locale:n}=li(),i=b.useMemo(()=>k6(e),[e]),o=b.useMemo(()=>new T6(n,i),[n,i]);return b.useCallback((s,u)=>o.format(s,u),[o])}function L6(e,n){let{elementType:i="button",isDisabled:o,onPress:s,onPressStart:u,onPressEnd:c,onPressUp:d,onPressChange:v,preventFocusOnPress:h,allowFocusWhenDisabled:m,onClick:g,href:x,target:w,rel:$,type:S="button"}=e,k;i==="button"?k={type:S,disabled:o}:k={role:"button",tabIndex:o?void 0:0,href:i==="a"&&o?void 0:x,target:i==="a"?w:void 0,type:i==="input"?S:void 0,disabled:i==="input"?o:void 0,"aria-disabled":!o||i==="input"?void 0:o,rel:i==="a"?$:void 0};let{pressProps:A,isPressed:I}=sr({onPressStart:u,onPressEnd:c,onPressChange:v,onPress:s,onPressUp:d,isDisabled:o,preventFocusOnPress:h,ref:n}),{focusableProps:R}=xo(e,n);m&&(R.tabIndex=o?-1:R.tabIndex);let B=Fe(R,A,fr(e,{labelable:!0}));return{isPressed:I,buttonProps:Fe(k,B,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:_=>{g&&(g(_),console.warn("onClick is deprecated, please use onPress"))}})}}function Im(e,n,i){let{validationBehavior:o,focus:s}=e;xt(()=>{if(o==="native"&&i?.current){let v=n.realtimeValidation.isInvalid?n.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";i.current.setCustomValidity(v),i.current.hasAttribute("title")||(i.current.title=""),n.realtimeValidation.isInvalid||n.updateValidation(_6(i.current))}});let u=rt(()=>{n.resetValidation()}),c=rt(v=>{var h;n.displayValidation.isInvalid||n.commitValidation();let m=i==null||(h=i.current)===null||h===void 0?void 0:h.form;if(!v.defaultPrevented&&i&&m&&M6(m)===i.current){var g;s?s():(g=i.current)===null||g===void 0||g.focus(),iw("keyboard")}v.preventDefault()}),d=rt(()=>{n.commitValidation()});b.useEffect(()=>{let v=i?.current;if(!v)return;let h=v.form;return v.addEventListener("invalid",c),v.addEventListener("change",d),h?.addEventListener("reset",u),()=>{v.removeEventListener("invalid",c),v.removeEventListener("change",d),h?.removeEventListener("reset",u)}},[i,c,d,u,o])}function R6(e){let n=e.validity;return{badInput:n.badInput,customError:n.customError,patternMismatch:n.patternMismatch,rangeOverflow:n.rangeOverflow,rangeUnderflow:n.rangeUnderflow,stepMismatch:n.stepMismatch,tooLong:n.tooLong,tooShort:n.tooShort,typeMismatch:n.typeMismatch,valueMissing:n.valueMissing,valid:n.valid}}function _6(e){return{isInvalid:!e.validity.valid,validationDetails:R6(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function M6(e){for(let n=0;n<e.elements.length;n++){let i=e.elements[n];if(!i.validity.valid)return i}return null}function F6(e,n,i){let{isDisabled:o=!1,isReadOnly:s=!1,value:u,name:c,children:d,"aria-label":v,"aria-labelledby":h,validationState:m="valid",isInvalid:g}=e,x=V=>{V.stopPropagation(),n.setSelected(V.target.checked)},w=d!=null,$=v!=null||h!=null;!w&&!$&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:S,isPressed:k}=sr({isDisabled:o}),{pressProps:A,isPressed:I}=sr({isDisabled:o||s,onPress(){n.toggle()}}),{focusableProps:R}=xo(e,i),B=Fe(S,R),_=fr(e,{labelable:!0});return Qv(i,n.isSelected,n.setSelected),{labelProps:Fe(A,{onClick:V=>V.preventDefault()}),inputProps:Fe(_,{"aria-invalid":g||m==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":s||void 0,onChange:x,disabled:o,...u==null?{}:{value:u},name:c,type:"checkbox",...B}),isSelected:n.isSelected,isPressed:k||I,isDisabled:o,isReadOnly:s,isInvalid:g||m==="invalid"}}function A6(e){let{id:n,label:i,"aria-labelledby":o,"aria-label":s,labelElementType:u="label"}=e;n=ni(n);let c=ni(),d={};i?(o=o?`${c} ${o}`:c,d={id:c,htmlFor:u==="label"?n:void 0}):!o&&!s&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let v=qv({id:n,"aria-label":s,"aria-labelledby":o});return{labelProps:d,fieldProps:v}}function Lm(e){let{description:n,errorMessage:i,isInvalid:o,validationState:s}=e,{labelProps:u,fieldProps:c}=A6(e),d=pc([!!n,!!i,o,s]),v=pc([!!n,!!i,o,s]);return c=Fe(c,{"aria-describedby":[d,v,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:u,fieldProps:c,descriptionProps:{id:d},errorMessageProps:{id:v}}}function Rm(e,n,i){let o=ms({...e,value:n.isSelected}),{isInvalid:s,validationErrors:u,validationDetails:c}=o.displayValidation,{labelProps:d,inputProps:v,isSelected:h,isPressed:m,isDisabled:g,isReadOnly:x}=F6({...e,isInvalid:s},n,i);Im(e,o,i);let{isIndeterminate:w,isRequired:$,validationBehavior:S="aria"}=e;return b.useEffect(()=>{i.current&&(i.current.indeterminate=!!w)}),{labelProps:d,inputProps:{...v,checked:h,"aria-required":$&&S==="aria"||void 0,required:$&&S==="native"},isSelected:h,isPressed:m,isDisabled:g,isReadOnly:x,isInvalid:s,validationErrors:u,validationDetails:c}}const _m=new WeakMap;function N6(e,n){let{isDisabled:i,name:o,validationBehavior:s="aria"}=e,{isInvalid:u,validationErrors:c,validationDetails:d}=n.displayValidation,{labelProps:v,fieldProps:h,descriptionProps:m,errorMessageProps:g}=Lm({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||c});_m.set(n,{name:o,descriptionId:m.id,errorMessageId:g.id,validationBehavior:s});let x=fr(e,{labelable:!0}),{focusWithinProps:w}=yo({onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:Fe(x,{role:"group","aria-disabled":i||void 0,...h,...w}),labelProps:v,descriptionProps:m,errorMessageProps:g,isInvalid:u,validationErrors:c,validationDetails:d}}function D6(e,n,i){const o=jv({isReadOnly:e.isReadOnly||n.isReadOnly,isSelected:n.isSelected(e.value),onChange(k){k?n.addValue(e.value):n.removeValue(e.value),e.onChange&&e.onChange(k)}});let{name:s,descriptionId:u,errorMessageId:c,validationBehavior:d}=_m.get(n);var v;d=(v=e.validationBehavior)!==null&&v!==void 0?v:d;let{realtimeValidation:h}=ms({...e,value:o.isSelected,name:void 0,validationBehavior:"aria"}),m=b.useRef(Kr),g=()=>{n.setInvalid(e.value,h.isInvalid?h:m.current)};b.useEffect(g);let x=n.realtimeValidation.isInvalid?n.realtimeValidation:h,w=d==="native"?n.displayValidation:x;var $;let S=Rm({...e,isReadOnly:e.isReadOnly||n.isReadOnly,isDisabled:e.isDisabled||n.isDisabled,name:e.name||s,isRequired:($=e.isRequired)!==null&&$!==void 0?$:n.isRequired,validationBehavior:d,[dc]:{realtimeValidation:x,displayValidation:w,resetValidation:n.resetValidation,commitValidation:n.commitValidation,updateValidation(k){m.current=k,g()}}},o,i);return{...S,inputProps:{...S.inputProps,"aria-describedby":[e["aria-describedby"],n.isInvalid?c:null,u].filter(Boolean).join(" ")||void 0}}}var Mm={};Mm={dismiss:"تجاهل"};var Fm={};Fm={dismiss:"Отхвърляне"};var Am={};Am={dismiss:"Odstranit"};var Nm={};Nm={dismiss:"Luk"};var Dm={};Dm={dismiss:"Schließen"};var Om={};Om={dismiss:"Απόρριψη"};var Bm={};Bm={dismiss:"Dismiss"};var Hm={};Hm={dismiss:"Descartar"};var jm={};jm={dismiss:"Lõpeta"};var Vm={};Vm={dismiss:"Hylkää"};var zm={};zm={dismiss:"Rejeter"};var Um={};Um={dismiss:"התעלם"};var Km={};Km={dismiss:"Odbaci"};var Wm={};Wm={dismiss:"Elutasítás"};var Gm={};Gm={dismiss:"Ignora"};var Zm={};Zm={dismiss:"閉じる"};var qm={};qm={dismiss:"무시"};var Xm={};Xm={dismiss:"Atmesti"};var Ym={};Ym={dismiss:"Nerādīt"};var Qm={};Qm={dismiss:"Lukk"};var Jm={};Jm={dismiss:"Negeren"};var eg={};eg={dismiss:"Zignoruj"};var tg={};tg={dismiss:"Descartar"};var ng={};ng={dismiss:"Dispensar"};var rg={};rg={dismiss:"Revocare"};var ig={};ig={dismiss:"Пропустить"};var og={};og={dismiss:"Zrušiť"};var lg={};lg={dismiss:"Opusti"};var sg={};sg={dismiss:"Odbaci"};var ag={};ag={dismiss:"Avvisa"};var ug={};ug={dismiss:"Kapat"};var cg={};cg={dismiss:"Скасувати"};var dg={};dg={dismiss:"取消"};var fg={};fg={dismiss:"關閉"};var td=Y0();const no=fs(td),m0={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function O6(e={}){let{style:n,isFocusable:i}=e,[o,s]=b.useState(!1),{focusWithinProps:u}=yo({isDisabled:!i,onFocusWithinChange:d=>s(d)}),c=b.useMemo(()=>o?n:n?{...m0,...n}:m0,[o]);return{visuallyHiddenProps:{...u,style:c}}}function B6(e){let{children:n,elementType:i="div",isFocusable:o,style:s,...u}=e,{visuallyHiddenProps:c}=O6(e);return ce.createElement(i,Fe(u,c),n)}function H6(e){return e&&e.__esModule?e.default:e}const Xr={top:"top",bottom:"top",left:"left",right:"left"},os={top:"bottom",bottom:"top",left:"right",right:"left"},j6={top:"left",left:"top"},Ic={top:"height",left:"width"},pg={width:"totalWidth",height:"totalHeight"},Vl={};let dt=typeof document<"u"&&window.visualViewport;function g0(e){let n=0,i=0,o=0,s=0,u=0,c=0,d={},v=dt?.scale>1;if(e.tagName==="BODY"){let g=document.documentElement;o=g.clientWidth,s=g.clientHeight;var h;n=(h=dt?.width)!==null&&h!==void 0?h:o;var m;i=(m=dt?.height)!==null&&m!==void 0?m:s,d.top=g.scrollTop||e.scrollTop,d.left=g.scrollLeft||e.scrollLeft,dt&&(u=dt.offsetTop,c=dt.offsetLeft)}else({width:n,height:i,top:u,left:c}=Jr(e)),d.top=e.scrollTop,d.left=e.scrollLeft,o=n,s=i;return Uv()&&(e.tagName==="BODY"||e.tagName==="HTML")&&v&&(d.top=0,d.left=0,u=dt.pageTop,c=dt.pageLeft),{width:n,height:i,totalWidth:o,totalHeight:s,scroll:d,top:u,left:c}}function V6(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function y0(e,n,i,o,s,u,c){let d=s.scroll[e],v=o[Ic[e]],h=o.scroll[Xr[e]]+u,m=v+o.scroll[Xr[e]]-u,g=n-d+c[e]-o[Xr[e]],x=n-d+i+c[e]-o[Xr[e]];return g<h?h-g:x>m?Math.max(m-x,h-g):0}function z6(e){let n=window.getComputedStyle(e);return{top:parseInt(n.marginTop,10)||0,bottom:parseInt(n.marginBottom,10)||0,left:parseInt(n.marginLeft,10)||0,right:parseInt(n.marginRight,10)||0}}function x0(e){if(Vl[e])return Vl[e];let[n,i]=e.split(" "),o=Xr[n]||"right",s=j6[o];Xr[i]||(i="center");let u=Ic[o],c=Ic[s];return Vl[e]={placement:n,crossPlacement:i,axis:o,crossAxis:s,size:u,crossSize:c},Vl[e]}function Ku(e,n,i,o,s,u,c,d,v,h){let{placement:m,crossPlacement:g,axis:x,crossAxis:w,size:$,crossSize:S}=o,k={};k[w]=e[w],g==="center"?k[w]+=(e[S]-i[S])/2:g!==w&&(k[w]+=e[S]-i[S]),k[w]+=u;const A=e[w]-i[S]+v+h,I=e[w]+e[S]-v-h;if(k[w]=cc(k[w],A,I),m===x){const R=d?c[$]:n[pg[$]];k[os[x]]=Math.floor(R-e[x]+s)}else k[x]=Math.floor(e[x]+e[$]+s);return k}function U6(e,n,i,o,s,u,c,d){const v=o?i.height:n[pg.height];let h=e.top!=null?i.top+e.top:i.top+(v-e.bottom-c),m=d!=="top"?Math.max(0,n.height+n.top+n.scroll.top-h-(s.top+s.bottom+u)):Math.max(0,h+c-(n.top+n.scroll.top)-(s.top+s.bottom+u));return Math.min(n.height-u*2,m)}function b0(e,n,i,o,s,u){let{placement:c,axis:d,size:v}=u;return c===d?Math.max(0,i[d]-e[d]-e.scroll[d]+n[d]-o[d]-o[os[d]]-s):Math.max(0,e[v]+e[d]+e.scroll[d]-n[d]-i[d]-i[v]-o[d]-o[os[d]]-s)}function K6(e,n,i,o,s,u,c,d,v,h,m,g,x,w,$,S){let k=x0(e),{size:A,crossAxis:I,crossSize:R,placement:B,crossPlacement:_}=k,V=Ku(n,d,i,k,m,g,h,x,$,S),W=m,C=b0(d,h,n,s,u+m,k);if(c&&o[A]>C){let ee=x0(`${os[B]} ${_}`),z=Ku(n,d,i,ee,m,g,h,x,$,S);b0(d,h,n,s,u+m,ee)>C&&(k=ee,V=z,W=m)}let U="bottom";k.axis==="top"?k.placement==="top"?U="top":k.placement==="bottom"&&(U="bottom"):k.crossAxis==="top"&&(k.crossPlacement==="top"?U="bottom":k.crossPlacement==="bottom"&&(U="top"));let O=y0(I,V[I],i[R],d,v,u,h);V[I]+=O;let H=U6(V,d,h,x,s,u,i.height,U);w&&w<H&&(H=w),i.height=Math.min(i.height,H),V=Ku(n,d,i,k,W,g,h,x,$,S),O=y0(I,V[I],i[R],d,v,u,h),V[I]+=O;let ne={},D=n[I]+.5*n[R]-i[I];const j=$/2+S,ue=i[R]-$/2-S,xe=n[I]-i[I]+$/2,Y=n[I]+n[R]-i[I]-$/2,X=cc(D,xe,Y);return ne[I]=cc(X,j,ue),{position:V,maxHeight:H,arrowOffsetLeft:ne.left,arrowOffsetTop:ne.top,placement:k.placement}}function W6(e){let{placement:n,targetNode:i,overlayNode:o,scrollNode:s,padding:u,shouldFlip:c,boundaryElement:d,offset:v,crossOffset:h,maxHeight:m,arrowSize:g=0,arrowBoundaryOffset:x=0}=e,w=o instanceof HTMLElement?G6(o):document.documentElement,$=w===document.documentElement;const S=window.getComputedStyle(w).position;let k=!!S&&S!=="static",A=$?Jr(i):w0(i,w);if(!$){let{marginTop:C,marginLeft:U}=window.getComputedStyle(i);A.top+=parseInt(C,10)||0,A.left+=parseInt(U,10)||0}let I=Jr(o),R=z6(o);I.width+=R.left+R.right,I.height+=R.top+R.bottom;let B=V6(s),_=g0(d),V=g0(w),W=d.tagName==="BODY"?Jr(w):w0(w,d);return w.tagName==="HTML"&&d.tagName==="BODY"&&(V.scroll.top=0,V.scroll.left=0),K6(n,A,I,B,R,u,c,_,V,W,v,h,k,m,g,x)}function Jr(e){let{top:n,left:i,width:o,height:s}=e.getBoundingClientRect(),{scrollTop:u,scrollLeft:c,clientTop:d,clientLeft:v}=document.documentElement;return{top:n+u-d,left:i+c-v,width:o,height:s}}function w0(e,n){let i=window.getComputedStyle(e),o;if(i.position==="fixed"){let{top:s,left:u,width:c,height:d}=e.getBoundingClientRect();o={top:s,left:u,width:c,height:d}}else{o=Jr(e);let s=Jr(n),u=window.getComputedStyle(n);s.top+=(parseInt(u.borderTopWidth,10)||0)-n.scrollTop,s.left+=(parseInt(u.borderLeftWidth,10)||0)-n.scrollLeft,o.top-=s.top,o.left-=s.left}return o.top-=parseInt(i.marginTop,10)||0,o.left-=parseInt(i.marginLeft,10)||0,o}function G6(e){let n=e.offsetParent;if(n&&n===document.body&&window.getComputedStyle(n).position==="static"&&!S0(n)&&(n=document.documentElement),n==null)for(n=e.parentElement;n&&!S0(n);)n=n.parentElement;return n||document.documentElement}function S0(e){let n=window.getComputedStyle(e);return n.transform!=="none"||/transform|perspective/.test(n.willChange)||n.filter!=="none"||n.contain==="paint"||"backdropFilter"in n&&n.backdropFilter!=="none"||"WebkitBackdropFilter"in n&&n.WebkitBackdropFilter!=="none"}const Z6=new WeakMap;function q6(e){let{triggerRef:n,isOpen:i,onClose:o}=e;b.useEffect(()=>{if(!i||o===null)return;let s=u=>{let c=u.target;if(!n.current||c instanceof Node&&!c.contains(n.current))return;let d=o||Z6.get(n.current);d&&d()};return window.addEventListener("scroll",s,!0),()=>{window.removeEventListener("scroll",s,!0)}},[i,o,n])}let De=typeof document<"u"&&window.visualViewport;function X6(e){let{direction:n}=li(),{arrowSize:i=0,targetRef:o,overlayRef:s,scrollRef:u=s,placement:c="bottom",containerPadding:d=12,shouldFlip:v=!0,boundaryElement:h=typeof document<"u"?document.body:null,offset:m=0,crossOffset:g=0,shouldUpdatePosition:x=!0,isOpen:w=!0,onClose:$,maxHeight:S,arrowBoundaryOffset:k=0}=e,[A,I]=b.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),R=[x,c,s.current,o.current,u.current,d,v,h,m,g,w,n,S,k,i],B=b.useRef(De?.scale);b.useEffect(()=>{w&&(B.current=De?.scale)},[w]);let _=b.useCallback(()=>{if(x===!1||!w||!s.current||!o.current||!u.current||!h||De?.scale!==B.current)return;!S&&s.current&&(s.current.style.maxHeight="none");let C=W6({placement:Q6(c,n),overlayNode:s.current,targetNode:o.current,scrollNode:u.current,padding:d,shouldFlip:v,boundaryElement:h,offset:m,crossOffset:g,maxHeight:S,arrowSize:i,arrowBoundaryOffset:k});Object.keys(C.position).forEach(U=>s.current.style[U]=C.position[U]+"px"),s.current.style.maxHeight=C.maxHeight!=null?C.maxHeight+"px":void 0,I(C)},R);xt(_,R),Y6(_),jb({ref:s,onResize:_});let V=b.useRef(!1);xt(()=>{let C,U=()=>{V.current=!0,clearTimeout(C),C=setTimeout(()=>{V.current=!1},500),_()},O=()=>{V.current&&U()};return De?.addEventListener("resize",U),De?.addEventListener("scroll",O),()=>{De?.removeEventListener("resize",U),De?.removeEventListener("scroll",O)}},[_]);let W=b.useCallback(()=>{V.current||$()},[$,V]);return q6({triggerRef:o,isOpen:w,onClose:$&&W}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...A.position,maxHeight:A.maxHeight}},placement:A.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:A.arrowOffsetLeft,top:A.arrowOffsetTop}},updatePosition:_}}function Y6(e){xt(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function Q6(e,n){return n==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const an=[];function J6(e,n){let{onClose:i,shouldCloseOnBlur:o,isOpen:s,isDismissable:u=!1,isKeyboardDismissDisabled:c=!1,shouldCloseOnInteractOutside:d}=e;b.useEffect(()=>(s&&an.push(n),()=>{let $=an.indexOf(n);$>=0&&an.splice($,1)}),[s,n]);let v=()=>{an[an.length-1]===n&&i&&i()},h=$=>{(!d||d($.target))&&an[an.length-1]===n&&($.stopPropagation(),$.preventDefault())},m=$=>{(!d||d($.target))&&(an[an.length-1]===n&&($.stopPropagation(),$.preventDefault()),v())},g=$=>{$.key==="Escape"&&!c&&($.stopPropagation(),$.preventDefault(),v())};uw({ref:n,onInteractOutside:u&&s?m:null,onInteractOutsideStart:h});let{focusWithinProps:x}=yo({isDisabled:!o,onBlurWithin:$=>{!$.relatedTarget||xw($.relatedTarget)||(!d||d($.relatedTarget))&&i()}}),w=$=>{$.target===$.currentTarget&&$.preventDefault()};return{overlayProps:{onKeyDown:g,...x},underlayProps:{onPointerDown:w}}}const Wu=typeof document<"u"&&window.visualViewport,e4=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let zl=0,Gu;function t4(e={}){let{isDisabled:n}=e;xt(()=>{if(!n)return zl++,zl===1&&(xs()?Gu=r4():Gu=n4()),()=>{zl--,zl===0&&Gu()}},[n])}function n4(){return uo(Yr(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Yr(document.documentElement,"overflow","hidden"))}function r4(){let e,n,i=h=>{e=es(h.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(n=Yr(e,"overscrollBehavior","contain"))},o=h=>{if(!e||e===document.documentElement||e===document.body){h.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&h.preventDefault()},s=h=>{let m=h.target;$0(m)&&m!==document.activeElement&&(h.preventDefault(),d(),m.style.transform="translateY(-2000px)",m.focus(),requestAnimationFrame(()=>{m.style.transform=""})),n&&n()},u=h=>{let m=h.target;$0(m)&&(d(),m.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{m.style.transform="",Wu&&(Wu.height<window.innerHeight?requestAnimationFrame(()=>{E0(m)}):Wu.addEventListener("resize",()=>E0(m),{once:!0}))}))},c=null,d=()=>{if(c)return;let h=()=>{window.scrollTo(0,0)},m=window.pageXOffset,g=window.pageYOffset;c=uo(Yi(window,"scroll",h),Yr(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Yr(document.documentElement,"overflow","hidden"),Yr(document.body,"marginTop",`-${g}px`),()=>{window.scrollTo(m,g)}),window.scrollTo(0,0)},v=uo(Yi(document,"touchstart",i,{passive:!1,capture:!0}),Yi(document,"touchmove",o,{passive:!1,capture:!0}),Yi(document,"touchend",s,{passive:!1,capture:!0}),Yi(document,"focus",u,!0));return()=>{n?.(),c?.(),v()}}function Yr(e,n,i){let o=e.style[n];return e.style[n]=i,()=>{e.style[n]=o}}function Yi(e,n,i,o){return e.addEventListener(n,i,o),()=>{e.removeEventListener(n,i,o)}}function E0(e){let n=document.scrollingElement||document.documentElement;for(;e&&e!==n;){let i=es(e);if(i!==document.documentElement&&i!==document.body&&i!==e){let o=i.getBoundingClientRect().top,s=e.getBoundingClientRect().top;s>o+e.clientHeight&&(i.scrollTop+=s-o)}e=i.parentElement}}function $0(e){return e instanceof HTMLInputElement&&!e4.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const Lc=ce.createContext(null);function i4(e){let{children:n}=e,i=b.useContext(Lc),[o,s]=b.useState(0),u=b.useMemo(()=>({parent:i,modalCount:o,addModal(){s(c=>c+1),i&&i.addModal()},removeModal(){s(c=>c-1),i&&i.removeModal()}}),[i,o]);return ce.createElement(Lc.Provider,{value:u},n)}function o4(e){let n=b.useContext(Lc);if(!n)throw new Error("Modal is not contained within a provider");return b.useEffect(()=>{if(!(e?.isDisabled||!n||!n.parent))return n.parent.addModal(),()=>{n&&n.parent&&n.parent.removeModal()}},[n,n.parent,e?.isDisabled]),{modalProps:{"data-ismodal":!e?.isDisabled}}}var hg={};hg={"ar-AE":Mm,"bg-BG":Fm,"cs-CZ":Am,"da-DK":Nm,"de-DE":Dm,"el-GR":Om,"en-US":Bm,"es-ES":Hm,"et-EE":jm,"fi-FI":Vm,"fr-FR":zm,"he-IL":Um,"hr-HR":Km,"hu-HU":Wm,"it-IT":Gm,"ja-JP":Zm,"ko-KR":qm,"lt-LT":Xm,"lv-LV":Ym,"nb-NO":Qm,"nl-NL":Jm,"pl-PL":eg,"pt-BR":tg,"pt-PT":ng,"ro-RO":rg,"ru-RU":ig,"sk-SK":og,"sl-SI":lg,"sr-SP":sg,"sv-SE":ag,"tr-TR":ug,"uk-UA":cg,"zh-CN":dg,"zh-TW":fg};function l4(e){let{onDismiss:n,...i}=e,o=Rw(H6(hg),"@react-aria/overlays"),s=qv(i,o.format("dismiss")),u=()=>{n&&n()};return ce.createElement(B6,null,ce.createElement("button",{...s,tabIndex:-1,onClick:u,style:{width:1,height:1}}))}const s4=ce.createContext(null);function a4(){let e=b.useContext(s4),n=e?.setContain;xt(()=>{n?.(!0)},[n])}function Rc(e){return Mb()?e.altKey:e.ctrlKey}function Gr(e){return or()?e.metaKey:e.ctrlKey}const u4=1e3;function c4(e){let{keyboardDelegate:n,selectionManager:i,onTypeSelect:o}=e,s=b.useRef({search:"",timeout:null}).current,u=c=>{let d=d4(c.key);if(!d||c.ctrlKey||c.metaKey||!c.currentTarget.contains(c.target))return;d===" "&&s.search.trim().length>0&&(c.preventDefault(),"continuePropagation"in c||c.stopPropagation()),s.search+=d;let v=n.getKeyForSearch(s.search,i.focusedKey);v==null&&(v=n.getKeyForSearch(s.search)),v!=null&&(i.setFocusedKey(v),o&&o(v)),clearTimeout(s.timeout),s.timeout=setTimeout(()=>{s.search=""},u4)};return{typeSelectProps:{onKeyDownCapture:n.getKeyForSearch?u:null}}}function d4(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function f4(e){let{selectionManager:n,keyboardDelegate:i,ref:o,autoFocus:s=!1,shouldFocusWrap:u=!1,disallowEmptySelection:c=!1,disallowSelectAll:d=!1,selectOnFocus:v=n.selectionBehavior==="replace",disallowTypeAhead:h=!1,shouldUseVirtualFocus:m,allowsTabNavigation:g=!1,isVirtualized:x,scrollRef:w=o,linkBehavior:$="action"}=e,{direction:S}=li(),k=Wv(),A=O=>{if(O.altKey&&O.key==="Tab"&&O.preventDefault(),!o.current.contains(O.target))return;const H=(z,de)=>{if(z!=null){if(n.isLink(z)&&$==="selection"&&v&&!Rc(O)){td.flushSync(()=>{n.setFocusedKey(z,de)});let fe=w.current.querySelector(`[data-key="${CSS.escape(z.toString())}"]`);k.open(fe,O);return}if(n.setFocusedKey(z,de),n.isLink(z)&&$==="override")return;O.shiftKey&&n.selectionMode==="multiple"?n.extendSelection(z):v&&!Rc(O)&&n.replaceSelection(z)}};switch(O.key){case"ArrowDown":if(i.getKeyBelow){var ne,D;O.preventDefault();let z=n.focusedKey!=null?i.getKeyBelow(n.focusedKey):(ne=i.getFirstKey)===null||ne===void 0?void 0:ne.call(i);z==null&&u&&(z=(D=i.getFirstKey)===null||D===void 0?void 0:D.call(i,n.focusedKey)),H(z)}break;case"ArrowUp":if(i.getKeyAbove){var j,ue;O.preventDefault();let z=n.focusedKey!=null?i.getKeyAbove(n.focusedKey):(j=i.getLastKey)===null||j===void 0?void 0:j.call(i);z==null&&u&&(z=(ue=i.getLastKey)===null||ue===void 0?void 0:ue.call(i,n.focusedKey)),H(z)}break;case"ArrowLeft":if(i.getKeyLeftOf){var xe,Y;O.preventDefault();let z=i.getKeyLeftOf(n.focusedKey);z==null&&u&&(z=S==="rtl"?(xe=i.getFirstKey)===null||xe===void 0?void 0:xe.call(i,n.focusedKey):(Y=i.getLastKey)===null||Y===void 0?void 0:Y.call(i,n.focusedKey)),H(z,S==="rtl"?"first":"last")}break;case"ArrowRight":if(i.getKeyRightOf){var X,ee;O.preventDefault();let z=i.getKeyRightOf(n.focusedKey);z==null&&u&&(z=S==="rtl"?(X=i.getLastKey)===null||X===void 0?void 0:X.call(i,n.focusedKey):(ee=i.getFirstKey)===null||ee===void 0?void 0:ee.call(i,n.focusedKey)),H(z,S==="rtl"?"last":"first")}break;case"Home":if(i.getFirstKey){O.preventDefault();let z=i.getFirstKey(n.focusedKey,Gr(O));n.setFocusedKey(z),Gr(O)&&O.shiftKey&&n.selectionMode==="multiple"?n.extendSelection(z):v&&n.replaceSelection(z)}break;case"End":if(i.getLastKey){O.preventDefault();let z=i.getLastKey(n.focusedKey,Gr(O));n.setFocusedKey(z),Gr(O)&&O.shiftKey&&n.selectionMode==="multiple"?n.extendSelection(z):v&&n.replaceSelection(z)}break;case"PageDown":if(i.getKeyPageBelow){O.preventDefault();let z=i.getKeyPageBelow(n.focusedKey);H(z)}break;case"PageUp":if(i.getKeyPageAbove){O.preventDefault();let z=i.getKeyPageAbove(n.focusedKey);H(z)}break;case"a":Gr(O)&&n.selectionMode==="multiple"&&d!==!0&&(O.preventDefault(),n.selectAll());break;case"Escape":O.preventDefault(),c||n.clearSelection();break;case"Tab":if(!g){if(O.shiftKey)o.current.focus();else{let z=um(o.current,{tabbable:!0}),de,fe;do fe=z.lastChild(),fe&&(de=fe);while(fe);de&&!de.contains(document.activeElement)&&un(de)}break}}},I=b.useRef({top:0,left:0});Ub(w,"scroll",x?null:()=>{I.current={top:w.current.scrollTop,left:w.current.scrollLeft}});let R=O=>{if(n.isFocused){O.currentTarget.contains(O.target)||n.setFocused(!1);return}if(O.currentTarget.contains(O.target)){if(n.setFocused(!0),n.focusedKey==null){let D=ue=>{ue!=null&&(n.setFocusedKey(ue),v&&n.replaceSelection(ue))},j=O.relatedTarget;var H,ne;j&&O.currentTarget.compareDocumentPosition(j)&Node.DOCUMENT_POSITION_FOLLOWING?D((H=n.lastSelectedKey)!==null&&H!==void 0?H:i.getLastKey()):D((ne=n.firstSelectedKey)!==null&&ne!==void 0?ne:i.getFirstKey())}else x||(w.current.scrollTop=I.current.top,w.current.scrollLeft=I.current.left);if(!x&&n.focusedKey!=null){let D=w.current.querySelector(`[data-key="${CSS.escape(n.focusedKey.toString())}"]`);D&&(D.contains(document.activeElement)||un(D),rs()==="keyboard"&&qh(D,{containingElement:o.current}))}}},B=O=>{O.currentTarget.contains(O.relatedTarget)||n.setFocused(!1)};const _=b.useRef(s);b.useEffect(()=>{if(_.current){let O=null;s==="first"&&(O=i.getFirstKey()),s==="last"&&(O=i.getLastKey());let H=n.selectedKeys;if(H.size){for(let ne of H)if(n.canSelectItem(ne)){O=ne;break}}n.setFocused(!0),n.setFocusedKey(O),O==null&&!m&&ur(o.current)}},[]);let V=b.useRef(n.focusedKey);b.useEffect(()=>{let O=rs();if(n.isFocused&&n.focusedKey!=null&&w?.current){let H=w.current.querySelector(`[data-key="${CSS.escape(n.focusedKey.toString())}"]`);H&&(O==="keyboard"||_.current)&&(x||Yv(w.current,H),O!=="virtual"&&qh(H,{containingElement:o.current}))}n.isFocused&&n.focusedKey==null&&V.current!=null&&ur(o.current),V.current=n.focusedKey,_.current=!1},[x,w,n.focusedKey,n.isFocused,o]);let W={onKeyDown:A,onFocus:R,onBlur:B,onMouseDown(O){w.current===O.target&&O.preventDefault()}},{typeSelectProps:C}=c4({keyboardDelegate:i,selectionManager:n});h||(W=Fe(C,W));let U;return m||(U=n.focusedKey==null?0:-1),{collectionProps:{...W,tabIndex:U}}}function p4(e){let{selectionManager:n,key:i,ref:o,shouldSelectOnPressUp:s,shouldUseVirtualFocus:u,focus:c,isDisabled:d,onAction:v,allowsDifferentPressOrigin:h,linkBehavior:m="action"}=e,g=Wv(),x=Y=>{if(Y.pointerType==="keyboard"&&Rc(Y))n.toggleSelection(i);else{if(n.selectionMode==="none")return;if(n.isLink(i)){if(m==="selection"){g.open(o.current,Y),n.setSelectedKeys(n.selectedKeys);return}else if(m==="override"||m==="none")return}n.selectionMode==="single"?n.isSelected(i)&&!n.disallowEmptySelection?n.toggleSelection(i):n.replaceSelection(i):Y&&Y.shiftKey?n.extendSelection(i):n.selectionBehavior==="toggle"||Y&&(Gr(Y)||Y.pointerType==="touch"||Y.pointerType==="virtual")?n.toggleSelection(i):n.replaceSelection(i)}};b.useEffect(()=>{i===n.focusedKey&&n.isFocused&&!u&&(c?c():document.activeElement!==o.current&&ur(o.current))},[o,i,n.focusedKey,n.childFocusStrategy,n.isFocused,u]),d=d||n.isDisabled(i);let w={};!u&&!d?w={tabIndex:i===n.focusedKey?0:-1,onFocus(Y){Y.target===o.current&&n.setFocusedKey(i)}}:d&&(w.onMouseDown=Y=>{Y.preventDefault()});let $=n.isLink(i)&&m==="override",S=n.isLink(i)&&m!=="selection"&&m!=="none",k=!d&&n.canSelectItem(i)&&!$,A=(v||S)&&!d,I=A&&(n.selectionBehavior==="replace"?!k:!k||n.isEmpty),R=A&&k&&n.selectionBehavior==="replace",B=I||R,_=b.useRef(null),V=B&&k,W=b.useRef(!1),C=b.useRef(!1),U=Y=>{v&&v(),S&&g.open(o.current,Y)},O={};s?(O.onPressStart=Y=>{_.current=Y.pointerType,W.current=V,Y.pointerType==="keyboard"&&(!B||C0())&&x(Y)},h?(O.onPressUp=I?null:Y=>{Y.pointerType!=="keyboard"&&k&&x(Y)},O.onPress=I?U:null):O.onPress=Y=>{if(I||R&&Y.pointerType!=="mouse"){if(Y.pointerType==="keyboard"&&!P0())return;U(Y)}else Y.pointerType!=="keyboard"&&k&&x(Y)}):(O.onPressStart=Y=>{_.current=Y.pointerType,W.current=V,C.current=I,k&&(Y.pointerType==="mouse"&&!I||Y.pointerType==="keyboard"&&(!A||C0()))&&x(Y)},O.onPress=Y=>{(Y.pointerType==="touch"||Y.pointerType==="pen"||Y.pointerType==="virtual"||Y.pointerType==="keyboard"&&B&&P0()||Y.pointerType==="mouse"&&C.current)&&(B?U(Y):k&&x(Y))}),w["data-key"]=i,O.preventFocusOnPress=u;let{pressProps:H,isPressed:ne}=sr(O),D=R?Y=>{_.current==="mouse"&&(Y.stopPropagation(),Y.preventDefault(),U(Y))}:void 0,{longPressProps:j}=fw({isDisabled:!V,onLongPress(Y){Y.pointerType==="touch"&&(x(Y),n.setSelectionBehavior("toggle"))}}),ue=Y=>{_.current==="touch"&&W.current&&Y.preventDefault()},xe=n.isLink(i)?Y=>{lr.isOpening||Y.preventDefault()}:void 0;return{itemProps:Fe(w,k||I?H:{},V?j:{},{onDoubleClick:D,onDragStartCapture:ue,onClick:xe}),isPressed:ne,isSelected:n.isSelected(i),isFocused:n.isFocused&&n.focusedKey===i,isDisabled:d,allowsSelection:k,hasAction:B}}function P0(){let e=window.event;return e?.key==="Enter"}function C0(){let e=window.event;return e?.key===" "||e?.code==="Space"}class h4{getNextKey(n){for(n=this.collection.getKeyAfter(n);n!=null;){if(this.collection.getItem(n).type==="item"&&!this.disabledKeys.has(n))return n;n=this.collection.getKeyAfter(n)}return null}getPreviousKey(n){for(n=this.collection.getKeyBefore(n);n!=null;){if(this.collection.getItem(n).type==="item"&&!this.disabledKeys.has(n))return n;n=this.collection.getKeyBefore(n)}return null}findKey(n,i,o){let s=this.getItem(n);if(!s)return null;let u=s.getBoundingClientRect();do n=i(n),s=this.getItem(n);while(s&&o(u,s.getBoundingClientRect()));return n}isSameRow(n,i){return n.top===i.top||n.left!==i.left}isSameColumn(n,i){return n.left===i.left||n.top!==i.top}getKeyBelow(n){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(n,i=>this.getNextKey(i),this.isSameRow):this.getNextKey(n)}getKeyAbove(n){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(n,i=>this.getPreviousKey(i),this.isSameRow):this.getPreviousKey(n)}getNextColumn(n,i){return i?this.getPreviousKey(n):this.getNextKey(n)}getKeyRightOf(n){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(n,this.direction==="rtl"):this.findKey(n,i=>this.getNextColumn(i,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(n,this.direction==="rtl"):null}getKeyLeftOf(n){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(n,this.direction==="ltr"):this.findKey(n,i=>this.getNextColumn(i,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(n,this.direction==="ltr"):null}getFirstKey(){let n=this.collection.getFirstKey();for(;n!=null;){let i=this.collection.getItem(n);if(i?.type==="item"&&!this.disabledKeys.has(n))return n;n=this.collection.getKeyAfter(n)}return null}getLastKey(){let n=this.collection.getLastKey();for(;n!=null;){if(this.collection.getItem(n).type==="item"&&!this.disabledKeys.has(n))return n;n=this.collection.getKeyBefore(n)}return null}getItem(n){return this.ref.current.querySelector(`[data-key="${CSS.escape(n.toString())}"]`)}getKeyPageAbove(n){let i=this.ref.current,o=this.getItem(n);if(!o)return null;if(!ts(i))return this.getFirstKey();let s=i.getBoundingClientRect(),u=o.getBoundingClientRect();if(this.orientation==="horizontal"){let c=s.x-i.scrollLeft,d=Math.max(0,u.x-c+u.width-s.width);for(;o&&u.x-c>d;)n=this.getKeyAbove(n),o=n==null?null:this.getItem(n),u=o?.getBoundingClientRect()}else{let c=s.y-i.scrollTop,d=Math.max(0,u.y-c+u.height-s.height);for(;o&&u.y-c>d;)n=this.getKeyAbove(n),o=n==null?null:this.getItem(n),u=o?.getBoundingClientRect()}return n??this.getFirstKey()}getKeyPageBelow(n){let i=this.ref.current,o=this.getItem(n);if(!o)return null;if(!ts(i))return this.getLastKey();let s=i.getBoundingClientRect(),u=o.getBoundingClientRect();if(this.orientation==="horizontal"){let c=s.x-i.scrollLeft,d=Math.min(i.scrollWidth,u.x-c-u.width+s.width);for(;o&&u.x-c<d;)n=this.getKeyBelow(n),o=n==null?null:this.getItem(n),u=o?.getBoundingClientRect()}else{let c=s.y-i.scrollTop,d=Math.min(i.scrollHeight,u.y-c-u.height+s.height);for(;o&&u.y-c<d;)n=this.getKeyBelow(n),o=n==null?null:this.getItem(n),u=o?.getBoundingClientRect()}return n??this.getLastKey()}getKeyForSearch(n,i){if(!this.collator)return null;let o=this.collection,s=i||this.getFirstKey();for(;s!=null;){let u=o.getItem(s),c=u.textValue.slice(0,n.length);if(u.textValue&&this.collator.compare(c,n)===0)return s;s=this.getKeyBelow(s)}return null}constructor(...n){if(n.length===1){let i=n[0];this.collection=i.collection,this.ref=i.ref,this.collator=i.collator,this.disabledKeys=i.disabledKeys||new Set,this.orientation=i.orientation,this.direction=i.direction,this.layout=i.layout||"stack"}else this.collection=n[0],this.disabledKeys=n[1],this.ref=n[2],this.collator=n[3],this.layout="stack",this.orientation="vertical";this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function v4(e){let{selectionManager:n,collection:i,disabledKeys:o,ref:s,keyboardDelegate:u}=e,c=_w({usage:"search",sensitivity:"base"}),d=n.disabledBehavior,v=b.useMemo(()=>u||new h4(i,d==="selection"?new Set:o,s,c),[u,i,o,s,c,d]),{collectionProps:h}=f4({...e,ref:s,selectionManager:n,keyboardDelegate:v});return{listProps:h}}function m4(e,n){let{role:i="dialog"}=e,o=pc();o=e["aria-label"]?void 0:o;let s=b.useRef(!1);return b.useEffect(()=>{if(n.current&&!n.current.contains(document.activeElement)){ur(n.current);let u=setTimeout(()=>{document.activeElement===n.current&&(s.current=!0,n.current&&(n.current.blur(),ur(n.current)),s.current=!1)},500);return()=>{clearTimeout(u)}}},[n]),a4(),{dialogProps:{...fr(e,{labelable:!0}),role:i,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||o,onBlur:u=>{s.current&&u.stopPropagation()}},titleProps:{id:o}}}const vg=new WeakMap;function g4(e,n,i){let{value:o,children:s,"aria-label":u,"aria-labelledby":c}=e;const d=e.isDisabled||n.isDisabled;let v=s!=null,h=u!=null||c!=null;!v&&!h&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let m=n.selectedValue===o,g=C=>{C.stopPropagation(),n.setSelectedValue(o)},{pressProps:x,isPressed:w}=sr({isDisabled:d}),{pressProps:$,isPressed:S}=sr({isDisabled:d,onPress(){n.setSelectedValue(o)}}),{focusableProps:k}=xo(Fe(e,{onFocus:()=>n.setLastFocusedValue(o)}),i),A=Fe(x,k),I=fr(e,{labelable:!0}),R=-1;n.selectedValue!=null?n.selectedValue===o&&(R=0):(n.lastFocusedValue===o||n.lastFocusedValue==null)&&(R=0),d&&(R=void 0);let{name:B,descriptionId:_,errorMessageId:V,validationBehavior:W}=vg.get(n);return Qv(i,n.selectedValue,n.setSelectedValue),Im({validationBehavior:W},n,i),{labelProps:Fe($,{onClick:C=>C.preventDefault()}),inputProps:Fe(I,{...A,type:"radio",name:B,tabIndex:R,disabled:d,required:n.isRequired&&W==="native",checked:m,value:o,onChange:g,"aria-describedby":[e["aria-describedby"],n.isInvalid?V:null,_].filter(Boolean).join(" ")||void 0}),isDisabled:d,isSelected:m,isPressed:w||S}}function y4(e,n){let{name:i,isReadOnly:o,isRequired:s,isDisabled:u,orientation:c="vertical",validationBehavior:d="aria"}=e,{direction:v}=li(),{isInvalid:h,validationErrors:m,validationDetails:g}=n.displayValidation,{labelProps:x,fieldProps:w,descriptionProps:$,errorMessageProps:S}=Lm({...e,labelElementType:"span",isInvalid:n.isInvalid,errorMessage:e.errorMessage||m}),k=fr(e,{labelable:!0}),{focusWithinProps:A}=yo({onBlurWithin(B){var _;(_=e.onBlur)===null||_===void 0||_.call(e,B),n.selectedValue||n.setLastFocusedValue(null)},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),I=B=>{let _;switch(B.key){case"ArrowRight":v==="rtl"&&c!=="vertical"?_="prev":_="next";break;case"ArrowLeft":v==="rtl"&&c!=="vertical"?_="next":_="prev";break;case"ArrowDown":_="next";break;case"ArrowUp":_="prev";break;default:return}B.preventDefault();let V=um(B.currentTarget,{from:B.target}),W;_==="next"?(W=V.nextNode(),W||(V.currentNode=B.currentTarget,W=V.firstChild())):(W=V.previousNode(),W||(V.currentNode=B.currentTarget,W=V.lastChild())),W&&(W.focus(),n.setSelectedValue(W.value))},R=ni(i);return vg.set(n,{name:R,descriptionId:$.id,errorMessageId:S.id,validationBehavior:d}),{radioGroupProps:Fe(k,{role:"radiogroup",onKeyDown:I,"aria-invalid":n.isInvalid||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":o||void 0,"aria-required":s||void 0,"aria-disabled":u||void 0,"aria-orientation":c,...w,...A}),labelProps:x,descriptionProps:$,errorMessageProps:S,isInvalid:h,validationErrors:m,validationDetails:g}}function x4(e,n){let i=fr(e,{labelable:!0}),{hoverProps:o}=Fn({onHoverStart:()=>n?.open(!0),onHoverEnd:()=>n?.close()});return{tooltipProps:Fe(i,o,{role:"tooltip"})}}function b4(e,n,i){let{isDisabled:o,trigger:s}=e,u=ni(),c=b.useRef(!1),d=b.useRef(!1),v=()=>{(c.current||d.current)&&n.open(d.current)},h=A=>{!c.current&&!d.current&&n.close(A)};b.useEffect(()=>{let A=I=>{i&&i.current&&I.key==="Escape"&&(I.stopPropagation(),n.close(!0))};if(n.isOpen)return document.addEventListener("keydown",A,!0),()=>{document.removeEventListener("keydown",A,!0)}},[i,n]);let m=()=>{s!=="focus"&&(rs()==="pointer"?c.current=!0:c.current=!1,v())},g=()=>{s!=="focus"&&(d.current=!1,c.current=!1,h())},x=()=>{d.current=!1,c.current=!1,h(!0)},w=()=>{ws()&&(d.current=!0,v())},$=()=>{d.current=!1,c.current=!1,h(!0)},{hoverProps:S}=Fn({isDisabled:o,onHoverStart:m,onHoverEnd:g}),{focusableProps:k}=xo({isDisabled:o,onFocus:w,onBlur:$},i);return{triggerProps:{"aria-describedby":n.isOpen?u:void 0,...Fe(k,S,{onPointerDown:x,onKeyDown:x})},tooltipProps:{id:u}}}function nd(e){return{UNSAFE_getDOMNode(){return e.current}}}function w4(e,n=e){return{...nd(e),focus(){n.current&&n.current.focus()}}}function si(e){let n=b.useRef(null);return b.useImperativeHandle(e,()=>nd(n)),n}function $s(e,n){let i=b.useRef(null);return b.useImperativeHandle(e,()=>w4(i,n)),i}const S4=ce.createContext(null);S4.displayName="BreakpointContext";function Ps({isDisabled:e},n=!1){b.useEffect(()=>{o(!1)},[e]);let[i,o]=b.useState(!1),{isFocusVisible:s}=sw({}),{focusProps:u}=Xc({isDisabled:e,onFocusChange:o});return{focusProps:u,isFocused:i&&(n?s:!0)}}const E4={display:"inline-grid",position:"relative",opacity:{"":1,"[disabled]":.4},transition:"theme"},$4=[...We,...Wt];function P4({as:e,label:n,onClick:i,...o},s){const u=o.isDisabled,c=Pe(o,$4,E4),d=$s(s);let{hoverProps:v,isHovered:h}=Fn({isDisabled:u}),{focusProps:m,isFocused:g}=Ps({isDisabled:u}),{focusableProps:x}=xo(o,d);return E.jsx(Rv,{"data-is-hovered":h&&!u?"":null,"data-is-focused":g&&!u?"":null,"data-is-disabled":u||null,"aria-label":n,...qe(v,m,x,{onClick:i},Be(o,{eventProps:!0})),ref:d,tabIndex:o.excludeFromTabOrder||u?-1:0,as:e,styles:c})}const C4=b.forwardRef(P4);function T0(...e){}function T4(e,{property:n,name:i,betterAlternative:o,reason:s}){}const ls=b.createContext({});function rd(e){let{breakpoints:n,children:i,insideForm:o,isDisabled:s,isReadOnly:u,isRequired:c,validationState:d,router:v,root:h,ref:m}=e;const g=b.useContext(ls);n&&(i=E.jsx(S2,{value:n,children:i}));const x=b.useMemo(()=>({ref:m,breakpoints:n,insideForm:o,isDisabled:s,isReadOnly:u,isRequired:c,validationState:d,router:v,root:h}),[m,n,o,s,u,c,d,v,h]),w=b.useMemo(()=>{let $=Object.assign({},g);return Object.keys(x).forEach(S=>{x[S]!=null&&($[S]=x[S])}),$},[g,x]);return E.jsx(ls.Provider,{value:w,children:i})}function hr(e){return{...b.useContext(ls),...e}}const mg=b.createContext({event(){}});function k4({children:e,event:n}){const i=b.useMemo(()=>({event:n}),[n]);return n?E.jsx(mg.Provider,{value:i,children:e}):E.jsx(E.Fragment,{children:e})}function I4(){return b.useContext(mg)}function L4(...e){const n=ce.useRef(!1);b.useEffect(()=>{n.current||(n.current=!0,T4(...e))},[e[0]])}function R4(e){const n=b.useRef(e);return Nv(()=>{n.current=e}),n}function it(e){const n=R4(e);return b.useCallback((...i)=>n.current(...i),[])}function ss(...e){return it((...n)=>{e.forEach(i=>{typeof i=="function"&&i(...n)})})}class k0{get status(){return this._status}set status(n){this._status=n}constructor(n,i){this.timerId=null,this.startTime=null,this._status="stopped",this.callback=n,this.delay=i,this.remaining=i,this.resume()}reset(){this.clear(),this.remaining=this.delay,this.status="stopped"}pause(){this.timerId===null||this.startTime===null||(this.clear(),this.remaining-=Date.now()-this.startTime,this.status="paused")}resume(){this.timerId===null&&(this.startTime=Date.now(),this.clear(),this.timerId=setTimeout(()=>{this.reset(),this.callback()},this.remaining),this.status="running")}clear(){this.timerId!==null&&(clearTimeout(this.timerId),this.timerId=null)}}function gg(e={}){const{callback:n,delay:i,isDisabled:o,timer:s=null}=e,u=it(()=>n?.()),[c,d]=b.useState(()=>s||(typeof i=="number"?new k0(u,i):null));return o?c?.reset():c?.resume(),b.useEffect(()=>(d(s),()=>c?.reset()),[s]),b.useEffect(()=>{if(!s)return typeof i=="number"&&d(new k0(u,i)),()=>c?.reset()},[i,s]),b.useEffect(()=>()=>c?.reset(),[c]),{timer:c}}function _4(){const e=b.useRef(!0);return e.current?(e.current=!1,!0):e.current}const Qi="Link Press",M4="Button Press",F4={propNames:new Set(["onMouseEnter","onMouseLeave"])};function I0(e,n){const i=document.createElement("a");i.href=e,n&&(i.target=n===!0?"_blank":n),document.body.appendChild(i),i.click(),document.body.removeChild(i)}function yg(e){const n=e&&typeof e=="string"&&e.startsWith("!"),i=e&&typeof e=="string"&&e.startsWith("@"),o=e&&typeof e=="string"?n||i?e.slice(1):e:void 0;return{newTab:n,nativeRoute:i,href:o}}function A4(e,{router:n,to:i,onPress:o,tracking:s}){const{newTab:u,nativeRoute:c,href:d}=yg(i),v=e.target,h=v?.getAttribute("data-qa");if(o?.(e),!i){s.event(M4,{qa:h},v);return}if(e.shiftKey||e.metaKey||u){I0(d,!0),s.event(Qi,{qa:h,href:d,type:"tab"},v);return}if(c)I0(d||window.location.href),s.event(Qi,{qa:h,href:d,type:"native"},v);else if(d&&d.startsWith("#")){const m=d.slice(1),g=document.getElementById(m);if(s.event(Qi,{qa:h,href:d,type:"hash",target:m},g),g){g.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"});return}}n?(s.event(Qi,{qa:h,href:d,type:"router"},v),n.push(d)):d&&(s.event(Qi,{qa:h,href:d,type:"native"},v),window.location.href=d)}const xg=function({to:n,as:i,htmlType:o,label:s,mods:u,onPress:c,...d},v){i=n?"a":i||"button";const h=I4(),m=b.useContext(ls).router,g=d.isDisabled,{newTab:x,href:w}=yg(n),$=x?"_blank":void 0,S=$s(v),k=it(C=>{A4(C,{router:m,to:n,onPress:c,tracking:h})});let{buttonProps:A,isPressed:I}=L6({"aria-label":s,...d,onPress:k},S),{hoverProps:R,isHovered:B}=Fn({isDisabled:g}),{focusProps:_,isFocused:V}=Ps({isDisabled:g},!0);const W=n?{onClick(C){C.preventDefault()}}:{};return{actionProps:{mods:{hovered:B&&!g,pressed:I&&!g,focused:V&&!g,disabled:g,...u},...qe(A,R,_,W,Be(d,F4)),ref:S,type:o||"button",rel:i==="a"&&x?'rel="noopener noreferrer"':void 0,as:i,isDisabled:g,target:$,href:w}}};const N4=[...We,...Wt],D4={display:"inline-grid",placeItems:"center stretch",placeContent:"center",position:"relative",margin:0,outline:{"":"#purple-03.0",focused:"#purple-03"},cursor:"pointer",gap:"1x",flow:"column",preset:{"":"t3m",'[data-size="large"]':"t2m"},textDecoration:"none",transition:"theme",reset:"button",padding:{"":"(1.25x - 1bw) (2x - 1bw)",'[data-size="small"]':"(.75x - 1bw) (1.5x - 1bw)",'[data-size="medium"]':"(1.25x - 1bw) (2x - 1bw)",'[data-size="large"]':"1.5x (2.5x - 1bw)",'single-icon-only | [data-type="link"]':0},width:{"":"initial",'[data-size="small"] & single-icon-only':"4x 4x",'[data-size="medium"] & single-icon-only':"5x 5x",'[data-size="large"] & single-icon-only':"6x 6x"},height:{"":"initial",'[data-size="small"] & single-icon-only':"4x 4x",'[data-size="medium"] & single-icon-only':"5x 5x",'[data-size="large"] & single-icon-only':"6x 6x"},whiteSpace:"nowrap",radius:{"":!0,'[data-type="link"] & !focused':0},"& .anticon":{transition:"display .2s steps(1, start), margin .2s linear, opacity .2s linear"},ButtonIcon:{display:"grid",fontSize:"@icon-size"}},O4=se({qa:"Button",styles:D4,variants:{default:{shadow:{"":!1,'[data-type="link"]':"0 @border-width 0 0 #purple.20",'[data-type="link"] & (pressed | hovered | [disabled])':"0 0 0 0 #purple.20"},outline:{"":"0 #purple-03.0",focused:"@outline-width #purple-03"},border:{"":"#clear",'[data-type="primary"] & pressed':"#purple-text",'[data-type="secondary"] & pressed':"#purple.3",'[data-type="outline"]':"#purple.3",'[data-type="outline"] & [disabled]':"#dark.12",'([data-type="clear"] | [data-type="outline"]) & pressed':"#purple-text.10",'[data-type="link"]':"0"},fill:{"":"#clear",'[data-type="primary"]':"#purple",'[data-type="primary"] & pressed':"#purple",'[data-type="primary"] & hovered':"#purple-text",'[data-type="secondary"]':"#purple.10",'[data-type="secondary"] & hovered':"#purple.16",'[data-type="secondary"] & pressed':"#purple-text.10",'[data-type="neutral"]':"#dark.0",'[data-type="neutral"] & hovered':"#dark.04",'[data-type="neutral"] & pressed':"#dark.05",'[disabled] & ![data-type="link"]':"#dark.04",'([data-type="clear"] | [data-type="outline"])':"#purple.0",'([data-type="clear"] | [data-type="outline"]) & hovered':"#purple.16",'([data-type="clear"] | [data-type="outline"]) & pressed':"#purple.10",'([data-type="clear"] | [data-type="outline"]) & [disabled]':"#purple.0"},color:{"":"#white",'[data-type="secondary"]':"#purple",'[data-type="clear"] | [data-type="outline"] | [data-type="link"]':"#purple-text",'[data-type="link"] & pressed':"#purple",'[data-type="neutral"]':"#dark.75",'[data-type="neutral"] & hovered':"#dark.75",'[data-type="neutral"] & pressed':"#purple","[disabled]":"#dark.30"}},danger:{shadow:{"":!1,'[data-type="link"]':"0 @border-width 0 0 #danger.20",'[data-type="link"] & (pressed | hovered | [disabled])':"0 0 0 0 #danger.20"},outline:{"":"0 #danger.0",focused:"@outline-width #danger.50"},border:{"":"#clear",'[data-type="primary"] & pressed':"#danger-text",'[data-type="secondary"] & pressed':"#danger.3",'[data-type="outline"]':"#danger-text.3",'([data-type="clear"] | [data-type="outline"]) & pressed':"#danger-text.10",'[data-type="outline"] & pressed':"#danger.3",'[data-type="link"]':"#clear"},fill:{"":"#clear",'[data-type="primary"]':"#danger",'[data-type="primary"] & hovered':"#danger-text",'[data-type="primary"] & pressed':"#danger",'[data-type="secondary"]':"#danger.05",'[data-type="secondary"] & hovered':"#danger.1",'[data-type="secondary"] & pressed':"#danger.05",'[data-type="neutral"]':"#dark.0",'[data-type="neutral"] & hovered':"#dark.04",'[data-type="neutral"] & pressed':"#dark.05",'[disabled] & ![data-type="link"]':"#dark.04",'[data-type="clear"] | [data-type="outline"]':"#danger.0",'([data-type="clear"] | [data-type="outline"]) & hovered':"#danger.1",'([data-type="clear"] | [data-type="outline"]) & pressed':"#danger.05",'([data-type="clear"] | [data-type="outline"]) & [disabled]':"#danger.0"},color:{"":"#white",'[data-type="neutral"]':"#dark.75",'[data-type="neutral"] & hovered':"#dark.75",'[data-type="secondary"]':"#danger",'[data-type="clear"] | [data-type="outline"] | [data-type="link"]':"#danger-text",'[data-type="link"] & pressed':"#danger",'[data-type="neutral"] & pressed':"#danger","[disabled]":"#dark.30"}},special:{shadow:{"":!1,'[data-type="link"]':"0 @border-width 0 0 #white.44",'[data-type="link"] & (pressed | hovered | [disabled])':"0 0 0 0 #white.44"},outline:{"":"0 #white.0",focused:"@outline-width #white.44",'([data-type="primary"] | [data-type="clear"])':"0 #dark-03.80",'([data-type="primary"] | [data-type="clear"]) & focused':"@outline-width #purple-03.80"},border:{"":"#clear",'[data-type="primary"] & pressed':"#purple-03",'[data-type="secondary"] & pressed':"#white.44",'[data-type="outline"] & !pressed':"#white.44"},fill:{"":"#clear",'[data-type="primary"]':"#purple",'[data-type="primary"] & pressed':"#purple",'[data-type="primary"] & hovered':"#purple-text",'[data-type="secondary"]':"#white.12",'[data-type="clear"]':"#white",'[data-type="clear"] & hovered':"#white.94",'[data-type="clear"] & pressed':"#white",'[disabled] & ![data-type="link"]':"#white.12",'([data-type="neutral"] | [data-type="outline"])':"#white.0",'([data-type="neutral"] | [data-type="outline"] | [data-type="secondary"]) & hovered':"#white.18",'([data-type="neutral"] | [data-type="outline"] | [data-type="secondary"]) & pressed':"#white.12",'([data-type="clear"] | [data-type="outline"]) & [disabled]':"#white.0"},color:{"":"#white",'[data-type="clear"]':"#purple","[disabled]":"#white.30"}}}}),B4=b.forwardRef(function(n,i){let{type:o,size:s,label:u,children:c,theme:d="default",icon:v,rightIcon:h,mods:m,...g}=n;const x=g.isDisabled||g.isLoading,w=g.isLoading,$=g.isSelected;if(c=c||v||h?c:u,!c){const B=u??g["aria-label"]??g["aria-labelledby"];B||(u="Unnamed")}v&&(v=b.cloneElement(v,{"data-element":"ButtonIcon"})),h&&(h=b.cloneElement(h,{"data-element":"ButtonIcon"}));const S=!!((v&&!h||h&&!v)&&!c),k=b.useMemo(()=>({loading:w,selected:$,"single-icon-only":S,...m}),[m,x,w,$,S]),{actionProps:A}=xg({...n,isDisabled:x,mods:k,...u?{label:u}:{}},i),I=Pe(g,N4),R=A.isDisabled;return delete A.isDisabled,E.jsxs(O4,{...A,disabled:R,variant:d,"data-theme":d,"data-type":o??"secondary","data-size":s??"medium",styles:I,children:[v||w?w?E.jsx(f2,{"data-element":"ButtonIcon"}):v:null,c,h]})});function L0(e=30){return new Promise(n=>{setTimeout(n,e)})}var Zu={exports:{}},R0;function H4(){return R0||(R0=1,(function(e){(function(n){n.exports.is_uri=o,n.exports.is_http_uri=s,n.exports.is_https_uri=u,n.exports.is_web_uri=c,n.exports.isUri=o,n.exports.isHttpUri=s,n.exports.isHttpsUri=u,n.exports.isWebUri=c;var i=function(d){var v=d.match(/(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/);return v};function o(d){if(d&&!/[^a-z0-9\:\/\?\#\[\]\@\!\$\&\'\(\)\*\+\,\;\=\.\-\_\~\%]/i.test(d)&&!/%[^0-9a-f]/i.test(d)&&!/%[0-9a-f](:?[^0-9a-f]|$)/i.test(d)){var v=[],h="",m="",g="",x="",w="",$="";if(v=i(d),h=v[1],m=v[2],g=v[3],x=v[4],w=v[5],!!(h&&h.length&&g.length>=0)){if(m&&m.length){if(!(g.length===0||/^\//.test(g)))return}else if(/^\/\//.test(g))return;if(/^[a-z][a-z0-9\+\-\.]*$/.test(h.toLowerCase()))return $+=h+":",m&&m.length&&($+="//"+m),$+=g,x&&x.length&&($+="?"+x),w&&w.length&&($+="#"+w),$}}}function s(d,v){if(o(d)){var h=[],m="",g="",x="",w="",$="",S="",k="";if(h=i(d),m=h[1],g=h[2],x=h[3],$=h[4],S=h[5],!!m){if(v){if(m.toLowerCase()!="https")return}else if(m.toLowerCase()!="http")return;if(g)return/:(\d+)$/.test(g)&&(w=g.match(/:(\d+)$/)[0],g=g.replace(/:\d+$/,"")),k+=m+":",k+="//"+g,w&&(k+=w),k+=x,$&&$.length&&(k+="?"+$),S&&S.length&&(k+="#"+S),k}}}function u(d){return s(d,!0)}function c(d){return s(d)||u(d)}})(e)})(Zu)),Zu.exports}var j4=H4();const V4=fs(j4);var qu={},_0;function z4(){if(_0)return qu;_0=1;var e=/^[-!#$%&'*+\/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/;return qu.validate=function(n){if(!n||n.length>254)return!1;var i=e.test(n);if(!i)return!1;var o=n.split("@");if(o[0].length>64)return!1;var s=o[1].split(".");return!s.some(function(u){return u.length>63})},qu}var U4=z4();const bg={string(e){return typeof e=="string"},number(e){return typeof e=="number"},boolean(e){return typeof e=="boolean"},method(e){return typeof e=="function"},regexp(e){return e instanceof RegExp},integer(e){return typeof e=="number"&&e===parseInt(String(e),10)},array(e){return Array.isArray(e)},object(e){return typeof e=="object"&&!Array.isArray(e)},date(e){return e instanceof Date},url(e){return typeof e=="string"&&V4.isUri(e)},hex(e){return typeof e=="string"&&e.match(/^#([0-9a-f]{3}|[0-9a-f]{6})$/)},email(e){return U4.validate(e)},any(e){return!0}},K4=Object.keys(bg),wg={async required(e){return Array.isArray(e)?e.length?Promise.resolve():Promise.reject():e||e===0?Promise.resolve():Promise.reject()},async whitespace(e){return typeof e!="string"||e.trim()?Promise.resolve():Promise.reject()},async pattern(e,n){const i=n.pattern;return typeof e!="string"||e.match(i)?Promise.resolve():Promise.reject()},async enum(e,n){const i=n.enum||[];return!e&&e!==0||i.includes(e)?Promise.resolve():Promise.reject()},async len(e,n){const i=n.len;return typeof e=="number"?e===i?Promise.resolve():Promise.reject():!e||!("length"in e)||e.length===i?Promise.resolve():Promise.reject()},async max(e,n){const i=n.max;return typeof e=="number"?e<=i?Promise.resolve():Promise.reject():!e||typeof e!="string"&&!Array.isArray(e)||e.length<=i?Promise.resolve():Promise.reject()},async min(e,n){const i=n.min;return typeof e=="number"?e>=i?Promise.resolve():Promise.reject():!e||typeof e!="string"&&!Array.isArray(e)||e.length>=i?Promise.resolve():Promise.reject()},async validator(e,n){return n.validator(n,e)},async type(e,n){const i=n.type;return K4.includes(i)?bg[i](e)?Promise.resolve():Promise.reject():Promise.resolve()}},W4=Object.keys(wg);async function G4(e,n,i){typeof n=="function"&&(n=n(i)),typeof n.transform=="function"&&(e=n.transform(e));for(let o of W4){if(!(o in n))continue;const s=wg[o];await s(e,n)}}async function Z4(e,n,i=0){const{value:o,rules:s}=e;if(!(!s||!s.length))for(let u of s){if(e.validationId&&i!==e.validationId)return;await G4(o,u,n).catch(c=>{throw c instanceof Error&&(c=c?.message||u.message),c||u.message})}}const q4=(e=500)=>{let n,i;return{async validator(){return clearTimeout(n),i&&i(),new Promise(o=>{i=o,n=setTimeout(()=>{o()},e)})}}};function X4(e,n,i){let o=n.split("."),s=e;for(;o.length-1;){let u=o.shift();u in s||(s[u]={}),s=s[u]}s[o[0]]=i}function M0(e,n){return JSON.stringify(e)===JSON.stringify(n)}class Y4{constructor(n=()=>{}){this.forceReRender=()=>{},this.initialFields={},this.fields={},this.ref={},this.isSubmitting=!1,this.submitError=null,this.onValuesChange=()=>{},this.onSubmit=()=>{},this.setFieldsValue=(i,o,s,u=!1,c=!1)=>{let d=!1;Object.keys(i).forEach(v=>{let h=this.fields[v];if(!h&&u&&(this.createField(v,s),h=this.fields[v]),!h||M0(h.value,i[v])){h&&o===!1&&(h.errors=[]);return}d=!0,c||(h.value=i[v]),h.inputValue=i[v],o===!0?h.touched=o:o===!1&&(h.touched=!1,h.errors=[])}),d&&!s&&(o&&!c&&(this.onValuesChange&&this.onValuesChange(this.getFormData()),this.submitError=null),this.forceReRender())},this.forceReRender=n,this.getFieldValue=this.getFieldValue.bind(this),this.getFieldsValue=this.getFieldsValue.bind(this),this.setFieldValue=this.setFieldValue.bind(this),this.getFieldError=this.getFieldError.bind(this),this.getFieldInstance=this.getFieldInstance.bind(this),this.setInitialFieldsValue=this.setInitialFieldsValue.bind(this),this.resetFields=this.resetFields.bind(this),this.validateField=this.validateField.bind(this),this.validateFields=this.validateFields.bind(this),this.isFieldValid=this.isFieldValid.bind(this),this.createField=this.createField.bind(this),this.isFieldInvalid=this.isFieldInvalid.bind(this),this.isFieldTouched=this.isFieldTouched.bind(this),this.setFields=this.setFields.bind(this)}async submit(){return this.onSubmit?.(this.getFormData())}getFieldValue(n){return this.fields[n]?.value}getFieldsValue(){return Object.values(this.fields).reduce((n,i)=>(i&&n&&(n[i.name]=i.value),n),{})}getFormData(){const n=this.getFieldsValue();return Object.keys(n).reduce((i,o)=>(X4(i,o,n[o]),o.includes(".")&&delete i[o],i),{})}setFieldValue(n,i,o=!1,s=!1,u=!1){const c=this.fields[n];!c||M0(i,u?c.inputValue:c.value)||(u||(c.value=i,c.status=void 0),c.inputValue=i,o&&(c.touched=o),s||(c.errors=[]),o&&!u&&(this.onValuesChange&&this.onValuesChange(this.getFormData()),this.submitError=null),s||this.forceReRender())}getFieldInstance(n){return this.fields[n]}setInitialFieldsValue(n){this.initialFields=Se.convert(n)??{}}updateInitialFieldsValue(n){this.initialFields={...this.initialFields,...Se.convert(n)}}resetFields(n,i){const o=this.getFieldsValue(),s=Object.keys({...o,...this.initialFields}),c=(n?s.filter(d=>n.includes(d)):s).reduce((d,v)=>(v in this.initialFields?d[v]=this.initialFields[v]:d[v]=void 0,d),{});this.setFieldsValue(c,!1,i,!0)}async validateField(n){const i=this.getFieldInstance(n);if(!i||!i.rules||i.status==="valid")return Promise.resolve();if(i.status==="invalid")return Promise.reject(i.errors[0]);i.validating=!0,i.validationId?i.validationId++:i.validationId=1;const o=i.validationId;return Z4(i,this,o).then(()=>{i.validationId===o&&(i.validating=!1,(!i.errors||i.errors.length)&&(i.errors=[]),i.status="valid",this.forceReRender())}).catch(s=>(i.validationId===o&&(i.errors=[s],i.validating=!1,i.status="invalid",this.forceReRender()),Promise.reject([s])))}validateFields(n){const i=n||Object.keys(this.fields),o=[];return Promise.allSettled(i.map(s=>this.validateField(s).catch(u=>(o.push({name:s,errors:u}),Promise.reject())))).then(()=>o.length?Promise.reject(o):this.getFormData())}isFieldValid(n){const i=this.getFieldInstance(n);return i?!i.errors.length:!0}isFieldInvalid(n){const i=this.getFieldInstance(n);return i?!!i.errors.length:!1}isFieldTouched(n){const i=this.getFieldInstance(n);return i?!!i.touched:!1}getFieldError(n){const i=this.getFieldInstance(n);return i?i.errors||[]:[]}createField(n,i){return n?(this.fields[n]||(this.fields[n]=this._createField(n)),i||this.forceReRender(),this.fields[n]):this._createField(n)}removeField(n,i){this.fields[n]&&delete this.fields[n],i||this.forceReRender()}setFields(n){n.forEach(({name:i,value:o,errors:s})=>{this.fields[i]=this._createField(i,{value:o,errors:s})}),this.forceReRender()}setSubmitting(n){this.isSubmitting!==n&&(this.isSubmitting=n,this.forceReRender())}_createField(n,i){let o={name:n,validating:!1,touched:!1,errors:[],validationId:0,...i,status:i?.errors?.length?"invalid":void 0};return o&&(o.inputValue=o.value),o}}function Sg(e,n,i={}){const{onSubmit:o,onValuesChange:s}=i,u=b.useRef(),[,c]=b.useState({});if(!u.current){if(e)u.current=e;else{const d=()=>{c({})};e=u.current=new Y4(d)}e.ref=n}return o&&(u.current.onSubmit=o),s&&(u.current.onValuesChange=s),[u.current]}const bo=b.createContext({}),Q4=se({as:"form",qa:"Form",styles:{display:{"":"block",horizontal:"flex"},flow:{"":"column",horizontal:"row"},placeItems:{"":"initial",horizontal:"center"},gap:"2x","@label-width":"25x"}});function ai(e){return{...b.useContext(bo),...e}}const J4=new Set(["action","autoComplete","encType","method","target"]);function e3(e,n){e=hr(e);let{qa:i,name:o,children:s,labelPosition:u,orientation:c,isRequired:d,necessityIndicator:v,isDisabled:h,isReadOnly:m,validationState:g,labelStyles:x,validateTrigger:w,showValid:$,defaultValues:S,onValuesChange:k,requiredMark:A=!0,form:I,labelWidth:R,onSubmit:B,onSubmitFailed:_,...V}=e;const W=b.useRef(!0),C=c==="horizontal";c||(c="vertical"),u||(u=C?"side":"top"),R||(R=C?"auto":void 0),n=Mx(n);let U;(B||_)&&!V.action&&(U=async D=>{if(D&&D?.preventDefault&&(D&&D?.preventDefault&&D?.preventDefault(),D&&D?.stopPropagation&&D?.stopPropagation(),D.nativeEvent)){const j=D.nativeEvent;if(j.submitter&&j.submitter.getAttribute("type")!=="submit")return}if(!(!I||I.isSubmitting)){I.submitError=null,I.setSubmitting(!0);try{try{await I.validateFields()}catch{I?.setSubmitting(!1);return}await L0(),await B?.(I.getFormData())}catch(j){if(await L0(),I.submitError=j,_?.(j),j instanceof Error)throw j}finally{I?.setSubmitting(!1)}}}),[I]=Sg(I,n&&n.current,{onSubmit:U,onValuesChange:k});let O=Pe(V,We);R&&(O["@label-width"]=R);let H=si(n),ne={labelPosition:u,labelStyles:x,orientation:c,necessityIndicator:v,validateTrigger:w,requiredMark:A,showValid:$,form:I,submitError:I.submitError,idPrefix:o};return W.current&&I&&S&&(I.setInitialFieldsValue(S),I.resetFields(void 0,!0),W.current=!1),b.useEffect(()=>{S&&I?.setInitialFieldsValue(S)},[S]),E.jsx(Q4,{...Be(V,{propNames:J4}),ref:H,noValidate:!0,styles:O,mods:{"has-sider":u==="side",horizontal:C},onSubmit:U,children:E.jsx(bo.Provider,{value:ne,children:E.jsx(rd,{insideForm:!0,isDisabled:h,isReadOnly:m,isRequired:d,validationState:g,children:s})})})}const t3=b.forwardRef(e3);const n3=se({styles:{display:"flex",gap:!0,flow:{"":"row",vertical:"column"},placeItems:{"":"center stretch",vertical:"stretch"}}}),Eg=b.forwardRef(function(n,i){const{mods:o,direction:s,...u}=n,c=Pe(u,We);return E.jsx(n3,{...Be(u,{eventProps:!0}),ref:i,mods:{vertical:s==="vertical"||u.flow==="column",...o},styles:c})});const r3=se(Eg,{qa:"ButtonGroup",styles:{gridArea:"buttonGroup"}}),id=b.forwardRef(function(n,i){return E.jsx(r3,{ref:i,...dr(n,"buttonGroup")})});const i3={reset:"button",position:"relative",margin:0,preset:"inherit",border:0,padding:0,outline:{"":"#purple-03.0",focused:"#purple-03"},transition:"theme",cursor:"pointer",textDecoration:"none",fill:"#clear"},o3=se({as:"button",styles:i3}),l3=[...We,...Wt],Y8=b.forwardRef(function({to:n,as:i,htmlType:o,label:s,theme:u,mods:c,onPress:d,...v},h){const{actionProps:m}=xg({to:n,as:i,htmlType:o,label:s,onPress:d,mods:c,...v},h),g=Pe(v,l3);return E.jsx(o3,{"data-theme":u,...m,styles:g})});const lo=Object.assign(B4,{Group:id});function _c(e,n){return _c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},_c(e,n)}function Cs(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,_c(e,n)}function s3(e,n){return e.classList?!!n&&e.classList.contains(n):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+n+" ")!==-1}function a3(e,n){e.classList?e.classList.add(n):s3(e,n)||(typeof e.className=="string"?e.className=e.className+" "+n:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+n))}function F0(e,n){return e.replace(new RegExp("(^|\\s)"+n+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function u3(e,n){e.classList?e.classList.remove(n):typeof e.className=="string"?e.className=F0(e.className,n):e.setAttribute("class",F0(e.className&&e.className.baseVal||"",n))}const A0={disabled:!1},as=ce.createContext(null);var $g=function(n){return n.scrollTop},ro="unmounted",Jn="exited",er="entering",Zr="entered",Mc="exiting",Gt=(function(e){Cs(n,e);function n(o,s){var u;u=e.call(this,o,s)||this;var c=s,d=c&&!c.isMounting?o.enter:o.appear,v;return u.appearStatus=null,o.in?d?(v=Jn,u.appearStatus=er):v=Zr:o.unmountOnExit||o.mountOnEnter?v=ro:v=Jn,u.state={status:v},u.nextCallback=null,u}n.getDerivedStateFromProps=function(s,u){var c=s.in;return c&&u.status===ro?{status:Jn}:null};var i=n.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(s){var u=null;if(s!==this.props){var c=this.state.status;this.props.in?c!==er&&c!==Zr&&(u=er):(c===er||c===Zr)&&(u=Mc)}this.updateStatus(!1,u)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var s=this.props.timeout,u,c,d;return u=c=d=s,s!=null&&typeof s!="number"&&(u=s.exit,c=s.enter,d=s.appear!==void 0?s.appear:c),{exit:u,enter:c,appear:d}},i.updateStatus=function(s,u){if(s===void 0&&(s=!1),u!==null)if(this.cancelNextCallback(),u===er){if(this.props.unmountOnExit||this.props.mountOnEnter){var c=this.props.nodeRef?this.props.nodeRef.current:no.findDOMNode(this);c&&$g(c)}this.performEnter(s)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Jn&&this.setState({status:ro})},i.performEnter=function(s){var u=this,c=this.props.enter,d=this.context?this.context.isMounting:s,v=this.props.nodeRef?[d]:[no.findDOMNode(this),d],h=v[0],m=v[1],g=this.getTimeouts(),x=d?g.appear:g.enter;if(!s&&!c||A0.disabled){this.safeSetState({status:Zr},function(){u.props.onEntered(h)});return}this.props.onEnter(h,m),this.safeSetState({status:er},function(){u.props.onEntering(h,m),u.onTransitionEnd(x,function(){u.safeSetState({status:Zr},function(){u.props.onEntered(h,m)})})})},i.performExit=function(){var s=this,u=this.props.exit,c=this.getTimeouts(),d=this.props.nodeRef?void 0:no.findDOMNode(this);if(!u||A0.disabled){this.safeSetState({status:Jn},function(){s.props.onExited(d)});return}this.props.onExit(d),this.safeSetState({status:Mc},function(){s.props.onExiting(d),s.onTransitionEnd(c.exit,function(){s.safeSetState({status:Jn},function(){s.props.onExited(d)})})})},i.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(s,u){u=this.setNextCallback(u),this.setState(s,u)},i.setNextCallback=function(s){var u=this,c=!0;return this.nextCallback=function(d){c&&(c=!1,u.nextCallback=null,s(d))},this.nextCallback.cancel=function(){c=!1},this.nextCallback},i.onTransitionEnd=function(s,u){this.setNextCallback(u);var c=this.props.nodeRef?this.props.nodeRef.current:no.findDOMNode(this),d=s==null&&!this.props.addEndListener;if(!c||d){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var v=this.props.nodeRef?[this.nextCallback]:[c,this.nextCallback],h=v[0],m=v[1];this.props.addEndListener(h,m)}s!=null&&setTimeout(this.nextCallback,s)},i.render=function(){var s=this.state.status;if(s===ro)return null;var u=this.props,c=u.children;u.in,u.mountOnEnter,u.unmountOnExit,u.appear,u.enter,u.exit,u.timeout,u.addEndListener,u.onEnter,u.onEntering,u.onEntered,u.onExit,u.onExiting,u.onExited,u.nodeRef;var d=ps(u,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ce.createElement(as.Provider,{value:null},typeof c=="function"?c(s,d):ce.cloneElement(ce.Children.only(c),d))},n})(ce.Component);Gt.contextType=as;Gt.propTypes={};function Ur(){}Gt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ur,onEntering:Ur,onEntered:Ur,onExit:Ur,onExiting:Ur,onExited:Ur};Gt.UNMOUNTED=ro;Gt.EXITED=Jn;Gt.ENTERING=er;Gt.ENTERED=Zr;Gt.EXITING=Mc;var c3=function(n,i){return n&&i&&i.split(" ").forEach(function(o){return a3(n,o)})},Xu=function(n,i){return n&&i&&i.split(" ").forEach(function(o){return u3(n,o)})},Ts=(function(e){Cs(n,e);function n(){for(var o,s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];return o=e.call.apply(e,[this].concat(u))||this,o.appliedClasses={appear:{},enter:{},exit:{}},o.onEnter=function(d,v){var h=o.resolveArguments(d,v),m=h[0],g=h[1];o.removeClasses(m,"exit"),o.addClass(m,g?"appear":"enter","base"),o.props.onEnter&&o.props.onEnter(d,v)},o.onEntering=function(d,v){var h=o.resolveArguments(d,v),m=h[0],g=h[1],x=g?"appear":"enter";o.addClass(m,x,"active"),o.props.onEntering&&o.props.onEntering(d,v)},o.onEntered=function(d,v){var h=o.resolveArguments(d,v),m=h[0],g=h[1],x=g?"appear":"enter";o.removeClasses(m,x),o.addClass(m,x,"done"),o.props.onEntered&&o.props.onEntered(d,v)},o.onExit=function(d){var v=o.resolveArguments(d),h=v[0];o.removeClasses(h,"appear"),o.removeClasses(h,"enter"),o.addClass(h,"exit","base"),o.props.onExit&&o.props.onExit(d)},o.onExiting=function(d){var v=o.resolveArguments(d),h=v[0];o.addClass(h,"exit","active"),o.props.onExiting&&o.props.onExiting(d)},o.onExited=function(d){var v=o.resolveArguments(d),h=v[0];o.removeClasses(h,"exit"),o.addClass(h,"exit","done"),o.props.onExited&&o.props.onExited(d)},o.resolveArguments=function(d,v){return o.props.nodeRef?[o.props.nodeRef.current,d]:[d,v]},o.getClassNames=function(d){var v=o.props.classNames,h=typeof v=="string",m=h&&v?v+"-":"",g=h?""+m+d:v[d],x=h?g+"-active":v[d+"Active"],w=h?g+"-done":v[d+"Done"];return{baseClassName:g,activeClassName:x,doneClassName:w}},o}var i=n.prototype;return i.addClass=function(s,u,c){var d=this.getClassNames(u)[c+"ClassName"],v=this.getClassNames("enter"),h=v.doneClassName;u==="appear"&&c==="done"&&h&&(d+=" "+h),c==="active"&&s&&$g(s),d&&(this.appliedClasses[u][c]=d,c3(s,d))},i.removeClasses=function(s,u){var c=this.appliedClasses[u],d=c.base,v=c.active,h=c.done;this.appliedClasses[u]={},d&&Xu(s,d),v&&Xu(s,v),h&&Xu(s,h)},i.render=function(){var s=this.props;s.classNames;var u=ps(s,["classNames"]);return ce.createElement(Gt,so({},u,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},n})(ce.Component);Ts.defaultProps={classNames:""};Ts.propTypes={};function d3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function od(e,n){var i=function(u){return n&&b.isValidElement(u)?n(u):u},o=Object.create(null);return e&&b.Children.map(e,function(s){return s}).forEach(function(s){o[s.key]=i(s)}),o}function f3(e,n){e=e||{},n=n||{};function i(m){return m in n?n[m]:e[m]}var o=Object.create(null),s=[];for(var u in e)u in n?s.length&&(o[u]=s,s=[]):s.push(u);var c,d={};for(var v in n){if(o[v])for(c=0;c<o[v].length;c++){var h=o[v][c];d[o[v][c]]=i(h)}d[v]=i(v)}for(c=0;c<s.length;c++)d[s[c]]=i(s[c]);return d}function tr(e,n,i){return i[n]!=null?i[n]:e.props[n]}function p3(e,n){return od(e.children,function(i){return b.cloneElement(i,{onExited:n.bind(null,i),in:!0,appear:tr(i,"appear",e),enter:tr(i,"enter",e),exit:tr(i,"exit",e)})})}function h3(e,n,i){var o=od(e.children),s=f3(n,o);return Object.keys(s).forEach(function(u){var c=s[u];if(b.isValidElement(c)){var d=u in n,v=u in o,h=n[u],m=b.isValidElement(h)&&!h.props.in;v&&(!d||m)?s[u]=b.cloneElement(c,{onExited:i.bind(null,c),in:!0,exit:tr(c,"exit",e),enter:tr(c,"enter",e)}):!v&&d&&!m?s[u]=b.cloneElement(c,{in:!1}):v&&d&&b.isValidElement(h)&&(s[u]=b.cloneElement(c,{onExited:i.bind(null,c),in:h.props.in,exit:tr(c,"exit",e),enter:tr(c,"enter",e)}))}}),s}var v3=Object.values||function(e){return Object.keys(e).map(function(n){return e[n]})},m3={component:"div",childFactory:function(n){return n}},ld=(function(e){Cs(n,e);function n(o,s){var u;u=e.call(this,o,s)||this;var c=u.handleExited.bind(d3(u));return u.state={contextValue:{isMounting:!0},handleExited:c,firstRender:!0},u}var i=n.prototype;return i.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},i.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(s,u){var c=u.children,d=u.handleExited,v=u.firstRender;return{children:v?p3(s,d):h3(s,c,d),firstRender:!1}},i.handleExited=function(s,u){var c=od(this.props.children);s.key in c||(s.props.onExited&&s.props.onExited(u),this.mounted&&this.setState(function(d){var v=so({},d.children);return delete v[s.key],{children:v}}))},i.render=function(){var s=this.props,u=s.component,c=s.childFactory,d=ps(s,["component","childFactory"]),v=this.state.contextValue,h=v3(this.state.children).map(c);return delete d.appear,delete d.enter,delete d.exit,u===null?ce.createElement(as.Provider,{value:v},h):ce.createElement(as.Provider,{value:v},ce.createElement(u,d,h))},n})(ce.Component);ld.propTypes={};ld.defaultProps=m3;const Pg=b.createContext(null);function g3(){return{root:b.useContext(Pg)}}const y3=Pg.Provider;var x3="Invariant failed";function Cg(e,n){if(!e)throw new Error(x3)}function b3(e){const{children:n,isDisabled:i=!1,root:o=null,onMount:s}=e,u=b.useRef(s),c=g3(),[d,v]=b.useState(null);return u.current=s,b.useEffect(()=>{if(!i){const h=c.root,m=o?.current??null,g=h?.current??null;Cg(!(h===null&&m===null)),v(m??g)}},[o,c.root,i]),b.useEffect(()=>{(i||d)&&u.current?.()},[i,d]),{isDisabled:i,children:n,mountRoot:d}}function us(e){const{children:n,mountRoot:i,isDisabled:o}=b3(e);return o?E.jsx(E.Fragment,{children:n}):i?no.createPortal(n,i):null}function w3({isOpen:e,placement:n,minOffset:i,minScale:o,children:s,container:u=null}){const c=b.useRef(u);typeof i=="number"&&(i=`${i}px`);const d=E.jsx(Ts,{unmountOnExit:!0,in:e,timeout:180,classNames:"cube-overlay-transition",children:E.jsx(E.Fragment,{children:s})});return E.jsx(us,{root:c,children:d})}const Tg=ce.createContext({});const S3=8,E3=0;function $3(e){let{children:n,activeWrap:i,crossOffset:o=E3,isDisabled:s,isMaterial:u,offset:c=S3,trigger:d,delay:v=250,isOpen:h,onOpenChange:m,defaultOpen:g}=e,[x,w]=b.Children.toArray(n),$=yb({delay:v,...e}),S=b.useRef(null),k=b.useRef(null),{triggerProps:A,tooltipProps:I}=b4({isDisabled:s,trigger:d},$,S),{overlayProps:R,arrowProps:B,placement:_}=X6({placement:e.placement||"top",targetRef:S,overlayRef:k,offset:c,crossOffset:o,isOpen:$.isOpen});if(!i&&typeof x=="string")return console.warn("CubeUIKit: Tooltips are only supported on elements that are both focusable and hoverable. To solve this issue you can: 1) Use active element as a trigger (`Button`, `Link`, etc); 2) Use `activeWrap` attribute to automatically wrap the content; 3) Use `ActiveZone` component to manually wrap the content."),E.jsx(bb,{children:x});function V(W){W?.currentTarget?.parentNode.click()}return E.jsxs(Sw,{...A,ref:S,children:[i?E.jsx(C4,{onClick:V,children:x}):x,E.jsx(Tg.Provider,{value:{state:$,placement:_,ref:k,overlayProps:R,arrowProps:B,minOffset:"var(--gap)",minScale:"1",isMaterial:u,...I},children:E.jsx(w3,{isOpen:$.isOpen,placement:e.placement||"top",children:w})})]})}let P3=$3;const C3={initial:"top center",top:"bottom center",right:"center left",left:"center right",bottom:"top center"},T3={initial:"translate(0px, calc(-1 * var(--overlay-offset)))",top:"translate(0px, calc(1 * var(--overlay-offset)))",right:"translate(calc(-1 * var(--overlay-offset)), 0px)",left:"translate(calc(1 * var(--overlay-offset)), 0px)",bottom:"translate(0px, calc(-1 * var(--overlay-offset)))"},k3=({suffix:e="",placement:n="initial",minScale:i=.8,minOffset:o="8px"}={})=>`
54
+ &${e} {
55
+ transform: var(--overlay-position);
56
+ transform-origin: ${C3[n]};
57
+ --overlay-offset: ${o};
58
+ --overlay-hidden-x-scale: ${n==="top"||n==="bottom"||n==="initial"?"1":i};
59
+ --overlay-hidden-y-scale: ${n==="left"||n==="right"?"1":i};
60
+ --overlay-translate-visible: translate(0px, 0px);
61
+ --overlay-translate-hidden: ${T3[n]};
62
+ --overlay-transition: 180ms;
63
+ --overlay-hidden-scale: scale(var(--overlay-hidden-x-scale), var(--overlay-hidden-y-scale));
64
+ --overlay-normal-scale: scale(1, 1);
65
+ }
66
+
67
+ &.cube-overlay-transition-enter${e} {
68
+ opacity: 0;
69
+ transform: var(--overlay-translate-hidden) var(--overlay-hidden-scale);
70
+ }
71
+
72
+ &.cube-overlay-transition-enter-active${e} {
73
+ opacity: 1;
74
+ transform: var(--overlay-translate-visible) var(--overlay-normal-scale);
75
+ transition: transform var(--overlay-transition) cubic-bezier(0, .66, 0, .66), opacity var(--overlay-transition) cubic-bezier(0, .66, 0, .66);
76
+ pointer-events: none;
77
+ }
78
+
79
+ &.cube-overlay-transition-exit${e} {
80
+ opacity: 1;
81
+ transform: var(--overlay-translate-visible) var(--overlay-normal-scale);
82
+ }
83
+
84
+ &.cube-overlay-transition-exit-active${e} {
85
+ opacity: 0;
86
+ transform: var(--overlay-translate-hidden) var(--overlay-hidden-scale);
87
+ pointer-events: none;
88
+ transition: transform var(--overlay-transition) cubic-bezier(.66, 0, .66, 0), opacity var(--overlay-transition) cubic-bezier(.66, 0, .66, 0);
89
+ }
90
+ `;const I3=se({styles:{display:"block",fill:"#dark.85",color:"#white",width:"initial 36x max-content",radius:!0,padding:".75x 1x",preset:"t3",backdropFilter:"blur(.5x)",whiteSpace:"pre-line",pointerEvents:{"":"none",material:"auto"}}}),L3=se({styles:{position:"absolute",width:"1px",height:"1px",border:".5x #clear",borderTop:".5x solid #dark.85",borderBottom:"0",top:{"":"initial",'[data-placement="left"] | [data-placement="right"]':"50%",'[data-placement="top"]':"100%"},left:{"":"initial",'[data-placement="top"] | [data-placement="bottom"]':"50%",'[data-placement="left"]':"100%"},right:{"":"initial",'[data-placement="right"]':"100%"},bottom:{"":"initial",'[data-placement="bottom"]':"100%"},transform:{"":"translate((-.375x - 1px), 0)",'[data-placement="bottom"]':"translate((-.375x - 1px), 0) rotate(180deg)",'[data-placement="left"]':"translate(-.25x, -.25x) rotate(270deg)",'[data-placement="right"]':"translate(.25x, -.25x) rotate(90deg)"},transition:"theme"}}),R3=ho(I3)`
91
+ ${e=>k3({placement:e?.["data-position"],minOffset:"0",minScale:1})}
92
+ `;function _3(e,n){let{ref:i,arrowProps:o,state:s,overlayProps:u,minOffset:c,minScale:d,...v}=b.useContext(Tg),h=b.useRef(null);const m=i??h;e=qe(e,v);let{placement:g="top",isOpen:x,tipStyles:w,showIcon:$,isMaterial:S,...k}=e;const A=Pe(k,We);let{tooltipProps:I}=x4(e,s);return b.useImperativeHandle(n,()=>nd(m)),typeof c=="number"&&(c=`${c}px`),typeof d=="number"&&(d=String(d)),E.jsxs(R3,{...I,...u,ref:i,styles:A,mods:{open:x,material:S},"data-min-offset":c,"data-min-scale":d,"data-placement":g,children:[e.children,E.jsx(L3,{"data-placement":g,styles:w,...o})]})}let M3=b.forwardRef(_3);function F3(e){const{ref:n,children:i,items:o}=e,s=lb({selectionMode:"none",children:i,items:o,suppressTextValueWarning:!0}),{listProps:u}=v4({ref:n,allowsTabNavigation:!0,...s});return{listProps:u,state:s}}function A3(e){const{ref:n,key:i,state:{selectionManager:o}}=e;return p4({ref:n,key:i,selectionManager:o})}const N3=se({as:"span",styles:{display:"inline-grid",verticalAlign:"middle",width:"1em 1em",height:"1em 1em","& svg":{width:"1em 1em",height:"1em 1em"}},styleProps:[...mo,...Mn,...hs]}),D3=b.memo(function(n){const{size:i,...o}=n;return E.jsx(N3,{qa:"Icon",...o,styles:i||n.styles?{fontSize:i,...n.styles}:void 0})});function ve(e,n){function i(o){return E.jsx(D3,{qa:e,"aria-hidden":"true",...o,children:n})}return i.displayName=e,i}const O3=E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.626 2.732a.6.6 0 0 0 0 .849L7.046 8l-4.42 4.42a.6.6 0 0 0 0 .848l.141.141a.6.6 0 0 0 .849 0l4.42-4.42 4.348 4.35a.6.6 0 0 0 .849 0l.141-.142a.6.6 0 0 0 0-.848L9.025 8l4.349-4.349a.6.6 0 0 0 0-.848l-.141-.142a.6.6 0 0 0-.849 0L8.035 7.01 3.616 2.59a.6.6 0 0 0-.849 0l-.141.142Z",clipRule:"evenodd"})});const B3=E.jsx("svg",{fill:"currentColor",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M7.94 11.04c-.82 0-1.49.67-1.49 1.49.08 1.96 2.9 1.96 2.97 0 0-.82-.67-1.49-1.48-1.49ZM9.42 2.68a1.93 1.93 0 0 0-3.39 1.58l.9 5.13c.2 1.12 1.8 1.12 2.02 0l.9-5.13c.1-.56-.06-1.14-.43-1.58Z"})});const H3=E.jsxs("svg",{fill:"currentColor",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{d:"M13.58 15.5H2.42a2.4 2.4 0 0 1-2.1-1.21 2.4 2.4 0 0 1 0-2.42l5.59-9.66A2.4 2.4 0 0 1 8 1c.87 0 1.66.45 2.1 1.2l5.57 9.67a2.4 2.4 0 0 1 0 2.42 2.4 2.4 0 0 1-2.09 1.2ZM8 2.6a.8.8 0 0 0-.7.4l-5.58 9.67a.8.8 0 0 0 0 .8c.07.12.28.4.7.4h11.16a.8.8 0 0 0 .7-.4.8.8 0 0 0 0-.8L8.7 3a.8.8 0 0 0-.7-.4Zm0 9.67a.8.8 0 1 1 0-1.62.8.8 0 1 1 0 1.62Zm0-3.23a.8.8 0 0 1-.8-.8V6.64a.8.8 0 1 1 1.6 0v1.6a.8.8 0 0 1-.8.81Z"}),E.jsx("path",{d:"M7.2 6.8a.8.8 0 1 1 1.6 0v2.4a.8.8 0 0 1-1.6 0V6.8Z"})]});const j3=E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.9 1.5a.6.6 0 0 0-.6.6v5.2H2.1a.6.6 0 0 0-.6.6v.2a.6.6 0 0 0 .6.6h5.2v5.2a.6.6 0 0 0 .6.6h.2a.6.6 0 0 0 .6-.6V8.7h5.2a.6.6 0 0 0 .6-.6v-.2a.6.6 0 0 0-.6-.6H8.7V2.1a.6.6 0 0 0-.6-.6h-.2Z",clipRule:"evenodd"})});const V3=E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none",children:E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.704 3.88a.6.6 0 0 1-1.2 0V1.468a.6.6 0 0 1 1.2 0V3.88ZM8.662 6.454a.625.625 0 0 1 .884.884l-7.468 7.468a.625.625 0 1 1-.884-.884l7.468-7.468Zm.442 6.47a.6.6 0 0 0 .6-.6V9.912a.6.6 0 0 0-1.2 0v2.412a.6.6 0 0 0 .6.6ZM6.088 6.296a.6.6 0 0 1 0 1.2H3.676a.6.6 0 1 1 0-1.2h2.412Zm9.044.6a.6.6 0 0 0-.6-.6H12.12a.6.6 0 1 0 0 1.2h2.412a.6.6 0 0 0 .6-.6ZM11.66 5.188a.6.6 0 1 1-.848-.849l1.705-1.705a.6.6 0 1 1 .849.848L11.66 5.188Zm-4.264 0a.6.6 0 0 0 0-.849L5.69 2.634a.6.6 0 1 0-.848.848l1.705 1.706a.6.6 0 0 0 .849 0Zm5.97 5.122a.6.6 0 1 1-.848.848l-1.706-1.705a.6.6 0 0 1 .849-.849l1.705 1.706Z",clipRule:"evenodd"})});const z3=E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.4 7.048V13.4H2.6v-2.269l4.332-2.976L8.58 9.77a.6.6 0 0 0 .76.067l4.06-2.79Zm1.2-1.149V1.982a.6.6 0 0 0-.94-.495L9.068 4.643 7.42 3.026a.6.6 0 0 0-.76-.067L2.6 5.75V2a.6.6 0 0 0-1.2 0v12a.6.6 0 0 0 .6.6h12a.6.6 0 0 0 .588-.72.6.6 0 0 0 .012-.12V5.9Zm-1.2-.307L9.068 8.569 7.42 6.952a.6.6 0 0 0-.76-.066L2.6 9.676V7.204l4.332-2.977L8.58 5.845a.6.6 0 0 0 .76.067l4.06-2.79v2.47Z",clipRule:"evenodd"})});const U3=E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m8.676 8 4.738-4.738a.6.6 0 0 0 0-.848l-.142-.142a.6.6 0 0 0-.848 0L7.12 7.576a.6.6 0 0 0 0 .848l5.303 5.304a.6.6 0 0 0 .848 0l.142-.142a.6.6 0 0 0 0-.848L8.676 8Z",clipRule:"evenodd"}),E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m3.676 8.152 4.738-4.738a.6.6 0 0 0 0-.848l-.142-.142a.6.6 0 0 0-.848 0L2.12 7.728a.6.6 0 0 0 0 .848l5.303 5.303a.6.6 0 0 0 .848 0l.142-.141a.6.6 0 0 0 0-.849L3.676 8.152Z",clipRule:"evenodd"})]});const K3=E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M2 1.4a.6.6 0 0 1 .6.6v11.4H14a.6.6 0 1 1 0 1.2H2a.6.6 0 0 1-.6-.6V2a.6.6 0 0 1 .6-.6Zm2.4 9.225V8.3a.7.7 0 0 1 1.4 0v2.6a.7.7 0 1 1-1.4 0v-.275ZM7.2 6.3V10.9a.7.7 0 1 0 1.4 0V6.3a.7.7 0 1 0-1.4 0Zm2.8 4.325V8.3a.7.7 0 1 1 1.4 0v2.6a.7.7 0 1 1-1.4 0v-.275ZM12.8 3.3V10.9a.7.7 0 1 0 1.4 0V3.3a.7.7 0 1 0-1.4 0Z",clipRule:"evenodd"})});const W3=E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.427 1.013 4.195 15.001H2.833l8.232-13.988h1.362ZM.04 2.964V1.821H5.25v1.143H3.292V8H1.997V2.964H.04Zm11.736 5.038v6.2h1.238v-2.22h2.591v-1.144h-2.59V9.145h2.868V8.002h-4.107Z",clipRule:"evenodd"})});const G3=E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.6 2.2H6.4c-1.14 0-1.923 0-2.53.05-.592.049-.91.138-1.141.255A2.8 2.8 0 0 0 1.505 3.73c-.117.23-.206.549-.254 1.142C1.2 5.477 1.2 6.26 1.2 7.4v1.2c0 1.14 0 1.923.05 2.53.049.592.138.91.255 1.141a2.8 2.8 0 0 0 1.224 1.224c.23.117.549.206 1.142.255.606.05 1.39.05 2.529.05h3.2c1.14 0 1.923 0 2.53-.05.592-.049.91-.138 1.141-.255a2.8 2.8 0 0 0 1.224-1.224c.117-.23.206-.549.255-1.142.05-.606.05-1.39.05-2.529V7.4c0-1.14 0-1.923-.05-2.53-.049-.592-.138-.91-.255-1.141a2.8 2.8 0 0 0-1.224-1.224c-.23-.117-.549-.206-1.142-.254C11.524 2.2 10.74 2.2 9.6 2.2Zm-9.164.984C0 4.04 0 5.16 0 7.4v1.2c0 2.24 0 3.36.436 4.216a4 4 0 0 0 1.748 1.748C3.04 15 4.16 15 6.4 15h3.2c2.24 0 3.36 0 4.216-.436a4 4 0 0 0 1.748-1.748C16 11.96 16 10.84 16 8.6V7.4c0-2.24 0-3.36-.436-4.216a4 4 0 0 0-1.748-1.748C12.96 1 11.84 1 9.6 1H6.4c-2.24 0-3.36 0-4.216.436A4 4 0 0 0 .436 3.184Zm5.443.998V10h-1.23V5.35h-.035l-1.332.835V5.094l1.44-.912H5.88Zm2.48 6.932V12h4.147v-1.006h-2.443v-.04l.85-.832c.399-.363.709-.675.928-.934.22-.262.373-.5.458-.714.087-.214.13-.43.13-.65 0-.335-.086-.633-.258-.892a1.726 1.726 0 0 0-.725-.608c-.308-.148-.671-.222-1.088-.222-.405 0-.763.077-1.074.23-.31.154-.552.37-.724.65-.172.281-.258.612-.258.992h1.167c0-.185.036-.345.108-.48a.744.744 0 0 1 .307-.31.962.962 0 0 1 .466-.107c.17 0 .323.034.457.102.135.066.24.162.318.287.078.123.117.27.117.44a.993.993 0 0 1-.094.43c-.062.13-.154.263-.275.4-.12.136-.268.29-.444.46l-2.07 1.918Z",clipRule:"evenodd"})});const Z3=E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.494.632a1.22 1.22 0 0 1 1.012 0l5.954 2.712c.435.198.714.632.714 1.11v7.096c0 .478-.28.912-.715 1.11l-5.954 2.708a1.22 1.22 0 0 1-1.01 0L1.541 12.66a1.22 1.22 0 0 1-.715-1.11V4.454c0-.478.279-.912.714-1.11L7.494.632ZM8 1.765 2.734 4.162 8 6.482l5.266-2.32L8 1.765Zm-5.934 9.772V5.223l5.314 2.34v6.39l-5.314-2.416Zm6.554 2.416 5.314-2.416V5.223L8.62 7.563v6.39Z",clipRule:"evenodd"})});const q3=E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:E.jsx("path",{fill:"currentColor",d:"M3.085 14.902a1.27 1.27 0 0 1-.931-.39 1.27 1.27 0 0 1-.39-.93V3.418c0-.364.13-.676.39-.938.26-.26.57-.392.93-.392h1v-.382c0-.17.06-.316.183-.437a.6.6 0 0 1 .436-.18c.174 0 .321.06.442.18s.182.267.182.438v.381h5.346v-.382c0-.17.061-.316.184-.437a.6.6 0 0 1 .436-.18c.174 0 .32.06.442.18.121.12.182.267.182.438v.381h.998c.364 0 .677.131.938.392.261.262.392.574.392.938v10.164c0 .361-.13.671-.392.93-.261.26-.574.39-.938.39h-9.83Zm0-1.32h9.83V6.5h-9.83v7.082Zm0-8.082h9.83V3.418h-9.83V5.5Z"})});const X3=E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.2 8a5.8 5.8 0 0 0 8.932 4.882l-1.446-1.814A3.5 3.5 0 1 1 7.4 4.55v-2.32A5.8 5.8 0 0 0 2.2 8Zm6.4-3.449a3.504 3.504 0 0 1 2.804 2.633h2.339A5.803 5.803 0 0 0 8.6 2.231v2.32Zm2.88 3.833a3.486 3.486 0 0 1-.857 1.934l1.446 1.815a5.782 5.782 0 0 0 1.718-3.749H11.48ZM8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1Zm0 9.3a2.3 2.3 0 1 1 0-4.6 2.3 2.3 0 0 1 0 4.6Z",clipRule:"evenodd"})});const Y3=E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m8 10.324 4.738-4.738a.6.6 0 0 1 .848 0l.142.142a.6.6 0 0 1 0 .848L8.424 11.88a.6.6 0 0 1-.848 0L2.272 6.576a.6.6 0 0 1 0-.848l.142-.142a.6.6 0 0 1 .848 0L8 10.324Z",clipRule:"evenodd"})});const Q3=E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.25 2.7h9.5c.306 0 .53 0 .703.006-.079.153-.187.35-.336.618l-3.045 5.493-.017.03c-.038.07-.088.158-.134.257a.604.604 0 0 0-.068-.004H6.077a4.023 4.023 0 0 0-.132-.253l-.017-.03-3.045-5.493a26.772 26.772 0 0 1-.336-.618c.172-.005.396-.006.703-.006Zm3.032 7.6v2.58c0 .148 0 .264.002.364v.053l.054.001c.1.002.216.002.364.002h2.596c.148 0 .264 0 .364-.002h.053l.001-.054c.002-.1.002-.216.002-.364V10.3H6.282Zm7.885-6.395c.448-.808.672-1.212.626-1.542a1 1 0 0 0-.39-.663c-.267-.2-.73-.2-1.653-.2h-9.5c-.924 0-1.386 0-1.653.2a1 1 0 0 0-.39.663c-.046.33.178.734.626 1.542L4.88 9.4c.077.14.116.21.143.283a1 1 0 0 1 .048.186c.012.078.012.157.012.316v2.696c0 .579 0 .868.116 1.088a1 1 0 0 0 .416.416c.22.116.509.116 1.088.116h2.596c.579 0 .868 0 1.088-.116a1 1 0 0 0 .416-.416c.116-.22.116-.51.116-1.088v-2.696c0-.159 0-.238.012-.316a.995.995 0 0 1 .048-.186c.027-.074.066-.144.143-.283l3.046-5.494Z",clipRule:"evenodd"})});const J3=E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.324 8 2.586 3.262a.6.6 0 0 1 0-.848l.142-.142a.6.6 0 0 1 .848 0L8.88 7.576a.6.6 0 0 1 0 .848l-5.303 5.304a.6.6 0 0 1-.848 0l-.142-.142a.6.6 0 0 1 0-.848L7.324 8Z",clipRule:"evenodd"}),E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.324 8.152 7.586 3.414a.6.6 0 0 1 0-.848l.142-.142a.6.6 0 0 1 .848 0l5.303 5.304a.6.6 0 0 1 0 .848L8.576 13.88a.6.6 0 0 1-.848 0l-.142-.141a.6.6 0 0 1 0-.849l4.738-4.737Z",clipRule:"evenodd"})]});const eS=E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M11 2.2a2.8 2.8 0 1 0 0 5.6 2.8 2.8 0 0 0 0-5.6Zm-2.4 6a4 4 0 1 0-.841-.856l-5.532 5.53a.6.6 0 1 0 .849.85l.942-.944 1.166 1.166.424.424.849-.848-.425-.425-1.165-1.165.797-.797 1.187 1.187.425.425.848-.85-.424-.423-1.188-1.188L8.6 8.2Z",clipRule:"evenodd"})});const tS=E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m5.676 8 4.738-4.738a.6.6 0 0 0 0-.848l-.142-.142a.6.6 0 0 0-.848 0L4.12 7.576a.6.6 0 0 0 0 .848l5.303 5.304a.6.6 0 0 0 .848 0l.142-.142a.6.6 0 0 0 0-.848L5.676 8Z",clipRule:"evenodd"})});const nS=E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.6 2a.6.6 0 0 0-1.2 0v8.995a.59.59 0 0 0 0 .01V14a.6.6 0 0 0 .6.6h12a.6.6 0 1 0 0-1.2H2.6v-2.112l4.355-3.484 1.62 1.62a.6.6 0 0 0 .8.045l5-4a.6.6 0 1 0-.75-.938l-4.58 3.665-1.62-1.62a.6.6 0 0 0-.8-.045L2.6 9.751V2Z",clipRule:"evenodd"})});const rS=E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.575.8h.85c.539 0 .98 0 1.337.03.371.03.706.094 1.018.253a2.6 2.6 0 0 1 1.137 1.137c.159.312.223.647.254 1.018.03.358.03.798.029 1.337v1.433c.462.015.765.06 1.017.188a1.8 1.8 0 0 1 .787.787c.196.385.196.889.196 1.897v3.24c0 1.008 0 1.512-.196 1.897a1.8 1.8 0 0 1-.787.787c-.385.196-.889.196-1.897.196H4.68c-1.008 0-1.512 0-1.897-.196a1.8 1.8 0 0 1-.787-.787c-.196-.385-.196-.889-.196-1.897V8.88c0-1.008 0-1.512.196-1.897a1.8 1.8 0 0 1 .787-.787c.252-.128.555-.173 1.017-.188V4.575c0-.539 0-.98.03-1.337.03-.371.094-.706.253-1.018A2.6 2.6 0 0 1 5.22 1.083C5.532.924 5.867.86 6.238.83 6.596.8 7.036.8 7.575.8ZM11 4.6V6H5V4.6c0-.57 0-.961.025-1.265.025-.296.069-.455.128-.57a1.4 1.4 0 0 1 .611-.612c.116-.06.275-.103.571-.128C6.64 2 7.03 2 7.6 2h.8c.57 0 .961 0 1.265.025.296.025.455.069.57.128a1.4 1.4 0 0 1 .613.611c.058.116.103.275.127.571C11 3.64 11 4.03 11 4.6ZM9.1 9.718c0 .36-.173.68-.44.88v1.56H7.34v-1.56A1.098 1.098 0 0 1 8 8.618a1.1 1.1 0 0 1 1.1 1.1Z",clipRule:"evenodd"})});const iS=E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.425.8h-.85c-.539 0-.98 0-1.337.03-.371.03-.706.094-1.018.253A2.6 2.6 0 0 0 4.083 2.22c-.159.312-.223.647-.254 1.018-.029.358-.029.798-.029 1.337v1.433c-.462.015-.765.06-1.017.188a1.8 1.8 0 0 0-.787.787C1.8 7.368 1.8 7.872 1.8 8.88v3.24c0 1.008 0 1.512.196 1.897a1.8 1.8 0 0 0 .787.787C3.168 15 3.672 15 4.68 15h6.64c1.008 0 1.512 0 1.897-.196a1.8 1.8 0 0 0 .787-.787c.196-.385.196-.889.196-1.897V8.88c0-1.008 0-1.512-.196-1.897a1.8 1.8 0 0 0-.787-.787c-.252-.128-.555-.173-1.017-.188V4.575c0-.539 0-.98-.03-1.337-.03-.371-.094-.706-.253-1.018a2.6 2.6 0 0 0-1.137-1.137C10.468.924 10.133.86 9.762.83 9.404.8 8.964.8 8.425.8ZM11 6V4.6c0-.57 0-.961-.025-1.265-.024-.296-.069-.455-.127-.57a1.4 1.4 0 0 0-.612-.612c-.116-.06-.275-.103-.571-.128C9.36 2 8.97 2 8.4 2h-.8c-.57 0-.961 0-1.265.025-.296.025-.455.069-.57.128a1.4 1.4 0 0 0-.612.611c-.06.116-.103.275-.128.571C5.001 3.64 5 4.03 5 4.6V6h6ZM4.68 7.2h6.64c.524 0 .845 0 1.085.02a1.536 1.536 0 0 1 .258.042.142.142 0 0 1 .008.003h.001a.6.6 0 0 1 .263.263l.001.003.002.006a1.528 1.528 0 0 1 .041.259c.02.24.021.56.021 1.084v3.24c0 .524 0 .845-.02 1.085a1.528 1.528 0 0 1-.042.258.6.6 0 0 1-.266.272h-.002l-.007.003a1.546 1.546 0 0 1-.258.041c-.24.02-.561.021-1.085.021H4.68c-.524 0-.845-.001-1.084-.02a1.547 1.547 0 0 1-.259-.042.6.6 0 0 1-.272-.266l-.003-.009a1.538 1.538 0 0 1-.041-.258C3 12.964 3 12.643 3 12.12V8.88c0-.524.001-.845.02-1.085a1.538 1.538 0 0 1 .042-.258l.003-.01a.6.6 0 0 1 .263-.262l.009-.003a1.537 1.537 0 0 1 .259-.041c.24-.02.56-.021 1.084-.021Zm3.92 3.429a1 1 0 1 0-1.2 0v1.418h1.2v-1.418Z",clipRule:"evenodd"})});const oS=E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.2 3.2a1.2 1.2 0 1 1-2.4 0 1.2 1.2 0 0 1 2.4 0Zm0 4.8a1.2 1.2 0 1 1-2.4 0 1.2 1.2 0 0 1 2.4 0ZM8 14a1.2 1.2 0 1 0 0-2.4A1.2 1.2 0 0 0 8 14Z",clipRule:"evenodd"})});const lS=E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.425 1h1.289l-.887 3.64h3.983L11.697 1h1.289l-.887 3.64h3.195l-.313 1.283h-3.195l-1.024 4.205h3.514l-.313 1.283H10.45L9.575 15H8.286l.875-3.589H5.178L4.303 15H3.014l.875-3.589H.706l.313-1.283H4.2l1.025-4.205H1.724l.313-1.283h3.501L6.425 1Zm3.048 9.128 1.025-4.205H6.515L5.49 10.128h3.983Z",clipRule:"evenodd"})});const sS=E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 13.8a5.8 5.8 0 0 1-.6-11.57v5.765a.6.6 0 0 0 .134.384l3.602 4.501c-.904.582-1.98.92-3.136.92Zm4.072-1.67a5.781 5.781 0 0 0 1.716-3.759H9.065l3.007 3.759Zm1.67-4.959A5.803 5.803 0 0 0 8.6 2.231v4.94h5.141ZM1 8a7 7 0 1 1 14 0A7 7 0 0 1 1 8Z",clipRule:"evenodd"})});const aS=E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.324 8 5.586 3.262a.6.6 0 0 1 0-.848l.142-.142a.6.6 0 0 1 .848 0l5.303 5.304a.6.6 0 0 1 0 .848l-5.303 5.304a.6.6 0 0 1-.848 0l-.142-.142a.6.6 0 0 1 0-.848L10.324 8Z",clipRule:"evenodd"})});const uS=E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:E.jsx("path",{fill:"currentColor",d:"M8.214 12.787c1.743 0 2.75-1.779 2.75-4.855 0-3.065-1.007-4.832-2.75-4.832C6.482 3.1 5.5 4.867 5.5 7.932c0 3.076.982 4.855 2.714 4.855Zm-5.674 0c1.1 0 2.246-.808 2.246-2.445 0-1.65-1.041-2.235-1.907-2.995-.667-.597-1.24-1.217-1.24-1.919 0-.585.41-.994.9-.994.691 0 .972.854.96 1.567h1.182C4.692 4.341 4.178 3.1 2.54 3.1.715 3.1.352 4.586.352 5.451c0 1.334.866 2.27 1.65 2.96.164.152.327.281.48.398.573.456 1.017.819 1.017 1.51 0 .56-.28 1.122-.96 1.122-.888 0-1.064-.924-1.122-1.836H.2c-.012 1.72.69 3.182 2.34 3.182ZM8.86 14.6h1.31l-.843-2.398h-1.31L8.86 14.6Zm-.647-3.124c-.89 0-1.463-1.38-1.463-3.544 0-2.153.574-3.522 1.463-3.522.889 0 1.462 1.369 1.462 3.522 0 2.164-.573 3.544-1.462 3.544Zm3.884 1.205h3.767v-1.263h-2.48V3.205h-1.287v9.476Z"})});const cS=E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1 1.4a.6.6 0 0 0-.6.6v12a.6.6 0 0 0 .6.6h14a.6.6 0 0 0 .6-.6V2a.6.6 0 0 0-.6-.6H1Zm.6 4.15V2.6h3.617v2.95H1.6Zm4.517.9v3.1h3.766v-3.1H6.117Zm4.666-.9V2.6H14.4v2.95h-3.617Zm3.617.9v3.1h-3.617v-3.1H14.4Zm0 4v2.95h-3.617v-2.95H14.4ZM6.117 13.4h3.766v-2.95H6.117v2.95ZM1.6 10.45h3.617v2.95H1.6v-2.95Zm4.517-4.9h3.766V2.6H6.117v2.95Zm-4.517.9h3.617v3.1H1.6v-3.1Z",clipRule:"evenodd"})});const dS=E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.995 14.306c-.053.217.21.375.374.216l9.036-8.621a.224.224 0 0 0-.155-.387h-3.235l2.967-3.749a.226.226 0 0 0-.177-.365H6.813a.224.224 0 0 0-.195.113L2.57 8.504a.225.225 0 0 0 .194.338h2.597l-1.225 4.9-.14.564ZM10.997 2.5 7.741 6.614h3.323l-5.269 5.027.975-3.899H4.282L7.317 2.5h3.68Z",clipRule:"evenodd"})});const fS=E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m13.338 5.578-2.536 2.42L5.92 2.67l.786-1.358a.124.124 0 0 1 .108-.063h5.993c.104 0 .162.12.098.203L9.81 5.364h3.442c.112 0 .167.138.086.214ZM8.731 9.975l3.131 3.434h1.697L3.241 2.091H1.543l2.882 3.161-1.767 3.053a.125.125 0 0 0 .108.187H5.49L4.094 14.08c-.03.122.117.208.208.12L8.73 9.975Z",clipRule:"evenodd"})});const pS=E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:E.jsx("path",{fill:"currentColor",d:"M13.25 5.614H9.808l3.095-3.91a.126.126 0 0 0-.098-.204H6.813a.124.124 0 0 0-.108.063L2.656 8.555a.125.125 0 0 0 .108.187H5.49L4.092 14.33c-.03.122.117.207.208.12l9.036-8.622a.124.124 0 0 0-.086-.214Z"})});const hS=E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.7 8A5.7 5.7 0 1 1 2.3 8a5.7 5.7 0 0 1 11.4 0ZM15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0ZM8.654 5.091V7.74l2.151 2.173a.616.616 0 0 1 .188.451.585.585 0 0 1-.188.442.662.662 0 0 1-.45.187.582.582 0 0 1-.45-.187l-2.288-2.37a.798.798 0 0 1-.128-.215.654.654 0 0 1-.043-.239v-2.89a.59.59 0 0 1 .606-.604.583.583 0 0 1 .602.604Z",clipRule:"evenodd"})});const vS=E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m8 5.676-4.738 4.738a.6.6 0 0 1-.848 0l-.142-.142a.6.6 0 0 1 0-.848L7.576 4.12a.6.6 0 0 1 .848 0l5.304 5.303a.6.6 0 0 1 0 .848l-.142.142a.6.6 0 0 1-.848 0L8 5.676Z",clipRule:"evenodd"})});const mS=E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.305 1.866A1.22 1.22 0 0 0 .182 3.562l4.16 9.827a1.22 1.22 0 0 0 1.123.745h5.07c.49 0 .933-.293 1.124-.745l4.16-9.827a1.22 1.22 0 0 0-1.125-1.696h-4.45c-.49 0-.932.293-1.123.745L8 5.258 6.88 2.611a1.22 1.22 0 0 0-1.124-.745h-4.45ZM8.673 6.85l2.204 5.207 3.787-8.95h-4.407L8.673 6.85Zm1.212 6.045L5.743 3.106H1.336l4.142 9.788h4.407Z",clipRule:"evenodd"})});const kg=ve("CloseIcon",O3),gS=ve("ExclamationIcon",B3),yS=ve("DangerIcon",H3);ve("PlusIcon",j3);ve("AiIcon",V3);const Q8=ve("AreaChartIcon",z3);ve("BackwardIcon",U3);const J8=ve("BarChartIcon",K3);ve("BooleanIcon",W3);ve("CountIcon",G3);ve("CubeIcon",Z3);ve("DateIcon",q3);const e$=ve("DonutIcon",X3);ve("DownIcon",Y3);ve("FilterIcon",Q3);ve("ForwardIcon",J3);ve("KeyIcon",eS);ve("LeftIcon",tS);const t$=ve("LineChartIcon",nS);ve("LockFilledIcon",rS);ve("LockIcon",iS);ve("MoreIcon",oS);ve("NumberIcon",lS);const n$=ve("PieChartIcon",sS);ve("RightIcon",aS);ve("SqlIcon",uS);const r$=ve("TableIcon",cS);ve("ThunderboltIcon",dS);ve("ThunderboltCrossedIcon",fS);ve("ThunderboltFilledIcon",pS);ve("TimeIcon",hS);ve("UpIcon",vS);ve("ViewIcon",mS);const xS=ve("SuccessIcon",E.jsx("svg",{fill:"currentColor",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"m13.67 5.88-5.8 5.8a1.1 1.1 0 0 1-1.55 0l-3-3a1.1 1.1 0 0 1 1.56-1.55l2.21 2.21 5.03-5.02a1.1 1.1 0 0 1 1.55 1.56Z"})})),bS=se({styles:{boxSizing:"border-box",display:"flex",alignSelf:"start",gridArea:"icon",minHeight:"3x",placeContent:"center"}}),wS=se({styles:{boxSizing:"border-box",display:"flex",fill:{"":"#note-bg",attention:"#note-bg",success:"#success-bg",danger:"#danger-bg"},color:{"":"#note-text",attention:"#note-text",success:"#success-text",danger:"#danger-text"},borderRadius:"0.5x",width:"3x",height:"3x",padding:"0.5x",alignItems:"center",justifyContent:"center","& svg":{width:"100%",height:"100%"}}}),SS=b.memo(function(n){const{icon:i,type:o}=n;return E.jsx(bS,{children:i||E.jsx(wS,{mods:{attention:o==="attention",success:o==="success",danger:o==="danger"},children:ES[o]})})}),ES={attention:E.jsx(gS,{}),success:E.jsx(xS,{}),danger:E.jsx(yS,{})};const $S=se(Ov,{as:"div",preset:"h6",styles:{gridArea:"header",cursor:"default","&:not(:empty)":{margin:"0.25x 0 0.5x"}}}),PS=b.memo(function(n){const{header:i,...o}=n;return E.jsx($S,{...o,children:i})});const CS=se(Wc,{as:"p",preset:"t4",styles:{gridArea:"description",display:"-webkit-box","-webkit-line-clamp":3,"-webkit-box-orient":"vertical",overflow:"hidden"}}),TS=b.memo(function(n){const{description:i,...o}=n;return E.jsx(CS,{...qe(o,{onPointerDown:s=>s.stopPropagation(),onMouseDown:s=>s.stopPropagation()}),children:i})});var Ul={},Yu={exports:{}},be={};var N0;function kS(){if(N0)return be;N0=1;var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,i=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,u=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,v=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,x=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,$=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,k=e?Symbol.for("react.fundamental"):60117,A=e?Symbol.for("react.responder"):60118,I=e?Symbol.for("react.scope"):60119;function R(_){if(typeof _=="object"&&_!==null){var V=_.$$typeof;switch(V){case n:switch(_=_.type,_){case v:case h:case o:case u:case s:case g:return _;default:switch(_=_&&_.$$typeof,_){case d:case m:case $:case w:case c:return _;default:return V}}case i:return V}}}function B(_){return R(_)===h}return be.AsyncMode=v,be.ConcurrentMode=h,be.ContextConsumer=d,be.ContextProvider=c,be.Element=n,be.ForwardRef=m,be.Fragment=o,be.Lazy=$,be.Memo=w,be.Portal=i,be.Profiler=u,be.StrictMode=s,be.Suspense=g,be.isAsyncMode=function(_){return B(_)||R(_)===v},be.isConcurrentMode=B,be.isContextConsumer=function(_){return R(_)===d},be.isContextProvider=function(_){return R(_)===c},be.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===n},be.isForwardRef=function(_){return R(_)===m},be.isFragment=function(_){return R(_)===o},be.isLazy=function(_){return R(_)===$},be.isMemo=function(_){return R(_)===w},be.isPortal=function(_){return R(_)===i},be.isProfiler=function(_){return R(_)===u},be.isStrictMode=function(_){return R(_)===s},be.isSuspense=function(_){return R(_)===g},be.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===o||_===h||_===u||_===s||_===g||_===x||typeof _=="object"&&_!==null&&(_.$$typeof===$||_.$$typeof===w||_.$$typeof===c||_.$$typeof===d||_.$$typeof===m||_.$$typeof===k||_.$$typeof===A||_.$$typeof===I||_.$$typeof===S)},be.typeOf=R,be}var D0;function IS(){return D0||(D0=1,Yu.exports=kS()),Yu.exports}var O0;function LS(){if(O0)return Ul;O0=1,Object.defineProperty(Ul,"__esModule",{value:!0});var e=Hc(),n=IS();function i(o,s,u){return s===void 0&&(s=0),u===void 0&&(u=[]),e.Children.toArray(o).reduce(function(c,d,v){return n.isFragment(d)?c.push.apply(c,i(d.props.children,s+1,u.concat(d.key||v))):e.isValidElement(d)?c.push(e.cloneElement(d,{key:u.concat(String(d.key)).join(".")})):(typeof d=="string"||typeof d=="number")&&c.push(d),c},[])}return Ul.default=i,Ul}var RS=LS();const _S=fs(RS);const MS=se(id,{styles:{gridArea:"footer",gap:"1x 2x",flow:"row wrap","&:not(:empty)":{margin:{"":"0.5x top","has-description":"1x top"}}}}),FS=b.memo(function(n){const{actions:i,onClose:o,onDismiss:s,hasDescription:u}=n;return E.jsx(MS,{mods:{"has-description":u},children:_S(typeof i=="function"?i({onClose:o,onDismiss:s}):i).filter(c=>jc.isElement(c)).map((c,d)=>{const{props:v}=c,h=d===0?"primary":"secondary";return ce.cloneElement(c,{...v,type:v.type??h},v.children)})})});const AS=se(lo,{icon:E.jsx(kg,{}),label:"Close the notification",qa:"NotificationCloseButton",type:"neutral",size:"small",styles:{gridArea:"close",display:"flex",padding:"1x"}}),NS=b.memo(function(n){const{onPress:i}=n;return E.jsx(AS,{onPress:i})});const DS=b.createContext(null);function OS(e){const{children:n,...i}=e;return E.jsx(DS.Provider,{value:i,children:n})}const BS=se({styles:{boxSizing:"border-box",position:"relative",display:"grid",width:"100%",padding:"0.5x 0.5x 1.5x 1.5x",gridAreas:`
93
+ ". . . . close"
94
+ "icon . header . close"
95
+ "icon . description . close"
96
+ ". . footer footer footer"
97
+ `,gridColumns:"min-content 1x minmax(0, auto) 1x minmax(0, min-content)",gridRows:"1x minmax(0, auto) minmax(0, auto) minmax(0, auto)",fill:"#white",boxShadow:{"":"0 0 0 4bw #purple-04.0 inset",focused:"0 0 0 4bw #purple-04 inset"}}}),HS=b.forwardRef(function(n,i){const{onClose:o,actions:s,header:u,icon:c,description:d,id:v,styles:h,type:m="attention",isDismissible:g=!0,duration:x=null,attributes:w={},qa:$="notification",timer:S,onDismiss:k}=n,A=Dh(),I=Dh(),R=it(()=>{o?.()}),B=it(()=>{g&&k?.()}),{hoverProps:_,isHovered:V}=Fn({}),{isFocusVisible:W,focusProps:C}=cm({within:!0});return gg({timer:S,delay:x,callback:B,isDisabled:W||V||!g}),E.jsx(_x,{children:E.jsx(OS,{onClose:o,children:E.jsxs(BS,{...qe(w,_,C),ref:i,styles:h,"data-id":v,"data-qa":$,"aria-labelledby":A,"aria-describedby":I,mods:{focused:W,"is-dismissible":g},children:[E.jsx(SS,{icon:c,type:m}),E.jsx(PS,{header:u,id:A}),d&&E.jsx(TS,{description:d,id:I}),E.jsx(FS,{hasDescription:!!d,actions:s,onClose:R,onDismiss:B}),g&&E.jsx(NS,{onPress:B})]})})})});const jS=se({styles:{overflow:"hidden",radius:"0.5x",boxShadow:"0 0.5x 2x #shadow",pointerEvents:"auto"}}),VS=b.memo(function(n){const{item:i,state:o,onRemoveNotification:s,id:u,isDisabledTimer:c,onDismissNotification:d}=n,{props:v,key:h}=i,m=b.useRef(null),g=ss(()=>s(u),v.onClose),x=ss(()=>d(u),()=>s(u),v.onDismiss),w=it(({key:k})=>{if(v.isDismissible===!1)return;["Delete","Backspace","Escape"].includes(k)&&x()}),{itemProps:$}=A3({key:h,ref:m,state:o}),{timer:S}=gg({callback:x,delay:v.duration,isDisabled:c});return E.jsx(jS,{children:E.jsx(HS,{ref:m,...v,timer:S,attributes:{...$,onKeyDown:w,role:"status","aria-atomic":"true"},qa:"FloatingNotification",onDismiss:x,onClose:g})})});const Ig="cube-notifications-css-transition",Lg=250;function zS(e){const{children:n,...i}=e,o=b.useRef(null),s=b.useCallback(()=>{o.current&&o.current.style.setProperty("--__notification-size__",`${o.current.scrollHeight}px`)},[]);return E.jsx(Ts,{unmountOnExit:!0,mountOnEnter:!0,timeout:Lg,classNames:Ig,onEnter:s,onExit:s,...i,children:E.jsx(US,{ref:o,children:n})})}const US=ho.div`
98
+ transition-property: height, opacity, margin-top, margin-bottom;
99
+ transition-duration: ${Lg}ms;
100
+ transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
101
+
102
+ &.${Ig} {
103
+ &-enter {
104
+ height: 0;
105
+ opacity: 0;
106
+ will-change: height, opacity;
107
+ }
108
+ &-enter-active {
109
+ height: var(--__notification-size__);
110
+ opacity: 1;
111
+ will-change: height, opacity;
112
+ }
113
+ &-exit {
114
+ height: var(--__notification-size__);
115
+ opacity: 1;
116
+ will-change: height, opacity, margin-top;
117
+ }
118
+ &-exit-active {
119
+ margin-top: -8px;
120
+ height: 0;
121
+ opacity: 0;
122
+ will-change: height, opacity;
123
+ }
124
+ }
125
+ `;const KS=se({styles:{boxSizing:"border-box",position:"fixed",bottom:"env(safe-area-inset-bottom, 0)",right:"env(safe-area-inset-right, 0)",display:"flex",flexDirection:"column-reverse",width:"auto 100% 50x",height:"100dvh max",padding:"2x",gap:"1x",zIndex:2147483647,overflow:"hidden",isolation:"isolate",pointerEvents:"none"}});function Fc(e){const{items:n,children:i,onRemoveNotification:o,onDismissNotification:s,limit:u=5}=e,c=b.useRef(null),[d,v]=b.useState(u+1),h=b.useRef(),{listProps:m,state:g}=F3({items:n,children:i,ref:c}),{hoverProps:x,isHovered:w}=Fn({}),{focusProps:$,isFocusVisible:S}=cm({within:!0}),k=it(_=>{const V=g.collection.getKeyBefore(_.toString())??g.collection.getKeyAfter(_.toString())??g.collection.getLastKey(),W=c.current?.querySelector(`[data-id="${V}"]`);W&&ur(W)}),A=ss(o,k);let I=[...g.collection].reverse();const R=I.length,B=I.findIndex(_=>_.props.id===h.current);return B!==-1&&(I=I.slice(0,B)),b.useLayoutEffect(()=>{v(u+1)},[R]),b.useLayoutEffect(()=>{d>u&&v(u)},[d]),I.slice(d).forEach(_=>{h.current=_.props.id}),b.useEffect(()=>{h.current&&(s(h.current),o(h.current),I.find(V=>V.props.id===h.current)?.props.onDismiss?.())},[h.current]),E.jsx(KS,{ref:c,qa:"NotificationsBar",role:"region","aria-live":"polite",...qe(m,x,$),children:E.jsx(ld,{enter:!0,exit:!0,component:null,children:I.slice(0,d).map(_=>E.jsx(zS,{children:E.jsx(VS,{isDisabledTimer:w||S,id:_.props.id,item:_,state:g,onRemoveNotification:A,onDismissNotification:s})},_.props.id))})})}Fc.Item=Xx;const Qu="cube:notification:dismiss";function WS(e){const n=b.useMemo(()=>new Date().getTime(),[]),i=b.useRef(0),o=b.useRef([]),[s,u]=b.useState(new Map),c=Object.assign(it(x=>{const w=i.current++,{id:$=`${n}_${w}`,duration:S,isDismissible:k=!0,...A}=x;return u(I=>{const R=new Map(I);return R.set($,{id:$,isDismissible:k,duration:S??(k?5e3:null),...A}),R}),{id:$,remove:()=>v($),update:I=>d($,I)}}),{success:x=>c({type:"success",...x}),danger:x=>c({type:"danger",...x}),attention:x=>c({type:"attention",...x})}),d=it((x,w)=>{u($=>{const S=$.get(x);if(S){const k=new Map($);return k.set(x,{...S,...w}),k}return $})}),v=it(x=>{u(w=>{if(w.has(x)){const $=new Map(w);return $.delete(x),$}return w})}),h=it(x=>{const w=s.get(x);w!=null&&w?.putNotificationInDropdownOnDismiss!==!1&&e?.current?.dispatchEvent(new CustomEvent(Qu,{detail:w}))}),m=it(x=>{const w=S=>x(S.detail),$=()=>e?.current?.removeEventListener(Qu,w);return o.current.push($),e?.current?.addEventListener(Qu,w),$});return b.useEffect(()=>()=>o.current.forEach(x=>x()),[]),{api:b.useMemo(()=>({notify:c,update:d,remove:v}),[]),notifications:b.useMemo(()=>[...s.values()],[s]),onDismissNotification:h,addOnDismissListener:m}}const GS=b.createContext(null);function ZS(e){const{children:n,rootRef:i}=e,{notifications:o,api:s,addOnDismissListener:u,onDismissNotification:c}=WS(i),d=b.useMemo(()=>({api:s,addOnDismissListener:u}),[]);return E.jsxs(GS.Provider,{value:d,children:[E.jsx(us,{children:E.jsx(Fc,{items:o,onRemoveNotification:s.remove,onDismissNotification:c,children:v=>E.jsx(Fc.Item,{...v},v.id)})}),n]})}const qS=se({qa:"Underlay",styles:{position:"fixed",top:0,right:0,bottom:0,left:0,zIndex:9,transitionDelay:"0ms",opacity:{"":0,open:.9999},pointerEvents:{"":"none",open:"auto"},fill:"#dark.30",overflow:"hidden",transition:"transform .25s ease-in-out, opacity .25s linear, visibility 0ms linear"}});function XS({isOpen:e,transitionState:n,...i},o){return E.jsx(qS,{ref:o,mods:{open:e},...i})}let YS=b.forwardRef(XS);const QS={entering:!1,entered:!0},Rg=b.createContext(null);function JS(){return b.useContext(Rg)}function eE(e){return E.jsx(Gt,{timeout:{enter:0,exit:350},...e,children:n=>E.jsx(Rg.Provider,{value:{transitionState:n},children:b.Children.map(e.children,i=>i&&b.cloneElement(i,{isOpen:!!QS[n],transitionState:n}))})})}function tE(e,n){let{children:i,isOpen:o,container:s=null,onEnter:u,onEntering:c,onEntered:d,onExit:v,onExiting:h,onExited:m,hideOnClose:g=!1}=e,[x,w]=b.useState(!o),{root:$}=hr({}),S=b.useCallback(()=>{w(!1),d?.()},[d]),k=b.useCallback(()=>{w(!0),m?.()},[m]);if(!(o||!x)&&!g)return null;let I=E.jsx(rd,{ref:n,children:E.jsx(eE,{appear:!0,in:o,onExit:v,onExiting:h,onExited:k,onEnter:u,onEntering:c,onEntered:S,children:i})});return td.createPortal(I,s||$||document.body)}let nE=b.forwardRef(tE);const rE={position:"fixed",display:"grid",left:0,top:0,placeItems:{"":"center",'[data-type="fullscreen"]':"center",'[data-type="fullscreenTakeover"] | [data-type="panel"]':"stretch"},boxSizing:"border-box",width:"100vw",height:"100dvh",pointerEvents:"none",zIndex:10,transition:{"":"visibility .5s steps(2, start)",open:"visibility 0s linear"}},iE=se({qa:"ModalWrapper",styles:rE}),oE=se({styles:{display:{"":"none","entering | entered":"grid",exiting:"grid",exited:"none"},zIndex:10,height:{"":"max 90dvh",'[data-type="fullscreenTakeover"] | [data-type="panel"]':"100dvh 100dvh",'[data-type="fullscreen"]':"90dvh 90dvh",'[data-type="fullscreenTakeover"]':"100dvh 100dvh"},width:{width:"288px 90vw"},pointerEvents:"none",transition:"opacity .25s linear, transform .25s ease-in-out",transform:{"":"initial",'[data-type="modal"] & !open':"translate(0, -3x) scale(1, 1)",'[data-type^="fullscreen"] & !open':"translate(0, 0) scale(1.02, 1.02)"},opacity:{"":0,open:.9999}}});function lE(e,n){let{qa:i,children:o,onClose:s,type:u,styles:c,...d}=e,v=si(n),{overlayProps:h,underlayProps:m}=J6({...e},v);return E.jsxs(nE,{...d,children:[u!=="fullscreenTakeover"&&E.jsx(YS,{...m}),E.jsx(sE,{ref:v,qa:i,type:u,overlayProps:h,styles:c,onClose:s,children:o})]})}let sE=b.forwardRef(function(n,i){let{qa:o,children:s,isOpen:u,type:c,placement:d,styles:v,overlayProps:h,transitionState:m,...g}=n;t4({isDisabled:m!=="entered"});let{modalProps:x}=o4({isDisabled:m!=="entered"});return E.jsx(iE,{"data-type":c,"data-placement":d,children:E.jsx(oE,{qa:o||"Modal",styles:v,mods:{open:u,entering:m==="entering",exiting:m==="exiting",exited:m==="exited",entered:m==="entered"},"data-type":c,"data-placement":d,...qe(g,h,x),ref:i,children:s})})}),aE=b.forwardRef(lE);const _g=b.createContext({});function Mg(){const e=b.useContext(_g);return Cg(e!==null),e}function uE(e){const{children:n,type:i="modal",onDismiss:o,isDismissable:s,isKeyboardDismissDisabled:u,isOpen:c}=e,d=b.Children.toArray(n);if(d.length>1)throw new Error("Only a single child can be passed to DialogContainer.");const v=b.useRef(),h=b.isValidElement(d[0])?d[0]:null;h&&(v.current=h);const m=typeof c!="boolean"?!!h:c,g={type:i,onClose:o,isDismissable:s};return E.jsx(aE,{isOpen:m,type:i,isDismissable:s,isKeyboardDismissDisabled:u,onClose:s?o:void 0,children:E.jsx(_g.Provider,{value:g,children:h})})}function cE(e){return sd(e,["value","defaultValue"],"string",n=>String(n))}function dE(e){return sd(e,["value","defaultValue"],"object",n=>Array.isArray(n)?n:[])}function fE(e){return sd(e,["isSelected","defaultSelected"],"boolean",n=>!!n)}function sd(e,n,i,o){return e={...e},n.forEach(s=>{e[s]===null&&(e[s]=void 0),i&&o&&e[s]!=null&&typeof e[s]!=i&&(e[s]=o(e[s]),console.warn("Wrong value type in",e,"in keys",JSON.stringify(n)))}),e}function pE(e){const[n,i]=b.useState(!1),{title:o,children:s,tooltipStyles:u,width:c,...d}=e;return b.useEffect(()=>{i(!0)},[]),n?E.jsxs(P3,{...d,children:[s,E.jsx(M3,{styles:u,...c?{width:c}:null,children:o})]}):E.jsx(E.Fragment,{children:s})}let hE=pE;const vE=se({styles:{display:"flex",flow:"row"}}),mE=b.forwardRef(function(n,i){const o=Pe(n,We);return E.jsx(vE,{...Be(n,{eventProps:!0}),ref:i,styles:o})});const gE=E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0px",y:"0px",viewBox:"0 0 100 125",style:{enableBackground:"new 0 0 100 100",width:".8em",height:".8em",transform:"rotate(-5deg)"},children:E.jsx("switch",{children:E.jsx("g",{children:E.jsx("polygon",{fill:"currentColor",points:"97.5,47.5 90.5,26.1 61.3,35.6 61.3,4.8 38.7,4.8 38.7,35.6 9.5,26.1 2.5,47.5 31.8,57 13.7,82 31.9,95.2 50,70.3 68.1,95.2 86.3,82 68.2,57"})})})}),yE={"(required)":"(required)","(optional)":"(optional)"},ad={preset:"t3",color:{"":"#dark.85",invalid:"#danger-text"},whiteSpace:"nowrap"},Fg={display:"block",preset:"h6",color:{"":"#dark",invalid:"#danger-text"},whiteSpace:"nowrap",width:{"":"initial",side:"@(label-width, initial)"}},xE=se({as:"label",qa:"Label",styles:Fg});function bE(e,n){e=hr(e);let{as:i,qa:o,children:s,labelPosition:u="top",isRequired:c,necessityIndicator:d=c!=null?"icon":null,includeNecessityIndicatorInAccessibilityName:v=!1,htmlFor:h,isDisabled:m,validationState:g,for:x,onClick:w,...$}=e,S=si(n);const k=Pe($,We);let A=B=>yE[B],I=A(c?"(required)":"(optional)"),R=E.jsx("span",{"aria-label":v?A("(required)"):void 0,children:gE});return E.jsx(xE,{...Be($),ref:S,styles:k,htmlFor:x||h,mods:{side:u==="side",disabled:m,invalid:g==="invalid",valid:g==="valid"},onClick:w,children:typeof s!="string"?s:E.jsxs(E.Fragment,{children:[s,(d==="label"||d==="icon"&&c)&&" ​",d==="label"&&E.jsx("span",{"aria-hidden":v?void 0:c,children:I}),d==="icon"&&c&&R]})})}let wE=b.forwardRef(bE);const SE=se({qa:"Field",styles:{display:"grid",gridColumns:{"":"minmax(0, 1fr)","has-sider":"@(full-label-width, auto) minmax(0, 1fr)"},gap:0,placeItems:"baseline stretch","@full-label-width":"(@label-width + 1x)",LabelArea:{display:"block",width:{"":"initial","has-sider":"@label-width"},margin:{"":"1x bottom","has-sider":"1x right",":empty":"0"}},InputArea:{display:"block",flow:"column",gridColumn:{"":"initial","has-sider":2}}}}),EE=se({qa:"Field_Message",styles:{preset:"t3",color:{"":"#dark.75",invalid:"#danger-text",valid:"#success-text",disabled:"#dark.40"},textAlign:"left",userSelect:"none"}}),Ag=b.forwardRef(function(n,i){const{as:o,labelPosition:s="top",label:u,extra:c,styles:d,isRequired:v,isDisabled:h,labelStyles:m,necessityIndicator:g,labelProps:x,fieldProps:w,message:$,messageStyles:S,description:k,Component:A,validationState:I,requiredMark:R=!0,tooltip:B,isHidden:_,labelSuffix:V,children:W}=n,C=u?E.jsx(wE,{as:o==="label"?"div":"label",styles:m,labelPosition:s,isRequired:R?v:!1,isDisabled:h,necessityIndicator:g,validationState:I,"aria-label":u,...x,children:E.jsxs(mE,{placeContent:"baseline space-between",width:"100%",children:[E.jsxs(Eg,{placeItems:"center",gap:"0.25x",children:[E.jsx("div",{children:u}),B?E.jsx(hE,{activeWrap:!0,title:B,width:"initial max-content 40x",children:E.jsx(p2,{style:{color:"var(--purple-text-color)",margin:"0 4px"}})}):null,E.jsx("div",{children:V})]}),c&&E.jsx(Kc,{preset:"t3",children:c})]})}):null;let U=k?E.jsx("div",{"data-element":"Description",children:Fx(k,()=>E.jsx(Wc,{children:k}))}):null;const O={"has-sider":s==="side","has-description":!!k,invalid:I==="invalid",valid:I==="valid"};return E.jsxs(E.Fragment,{children:[E.jsxs(SE,{ref:i,as:o??"div",mods:O,isHidden:_,styles:d,...w,children:[C||U?E.jsxs("div",{"data-element":"LabelArea",children:[C,U]}):null,E.jsxs("div",{"data-element":"InputArea",children:[A,$&&!h&&E.jsx(EE,{mods:O,styles:S,role:I==="invalid"?"alert":void 0,children:$})]})]}),W]})});const nr={};function $E(e){if(!e)return;nr[e]||(nr[e]=[]);let n=0,i;do i=n?`${e}_${n}`:e,n++;while(nr[e].includes(i));return nr[e].push(i),i}function PE(e,n){nr[e]&&(nr[e]=nr[e].filter(i=>i!==n))}function Ng(e,n){e=ai(e);let{defaultValue:i,id:o,idPrefix:s,name:u,form:c,rules:d,message:v,validateTrigger:h=n.defaultValidationTrigger,validationState:m,validationDelay:g,showValid:x,shouldUpdate:w}=e;d&&d.length&&g&&d.unshift(q4(g));const $=!u,S=u??"",k=_4();let[A,I]=b.useState(o||(s?`${s}_${S}`:S));b.useEffect(()=>{let W;return!o&&!$&&(W=$E(A),I(W)),()=>{o||PE(s?`${s}_${S}`:S,W),S&&c&&c.removeField(S)}},[]);let R=c?.getFieldInstance(S);R&&(R.rules=d);let B=d&&!!d.find(W=>W.required);b.useEffect(()=>{c&&(R?c.forceReRender():c.createField(S))},[R]),c&&(k&&(R||(R=c.createField(S,!0)),R?.value==null&&i!=null&&(c.setFieldValue(S,i,!1,!0),c.updateInitialFieldsValue({[S]:i}),R=c?.getFieldInstance(S))),!R?.touched&&i!=null&&c.setFieldValue(S,i,!1,!0));const _=it((W,C)=>{if(!c)return;const U=c.getFieldInstance(S);if(w){const O=c.getFieldsValue();if(typeof w=="boolean"?!w:!w(O,{...O,[S]:W}))return}c.setFieldValue(S,W,!C,!1,C),!C&&(h==="onChange"||U&&U.errors&&U.errors.length)&&c.validateField(S).catch(()=>{})}),V=it(()=>{h==="onBlur"&&setTimeout(()=>{c?.validateField(S).catch(()=>{})})});return b.useMemo(()=>({id:A,name:S,value:R?.inputValue,validateTrigger:h,form:c,field:R,nonInput:$,validationState:m??(R?.errors?.length?"invalid":x&&R?.status==="valid"?"valid":void 0),...B&&{isRequired:B},message:v??(R?.status==="invalid"&&R?.errors?.[0]),onBlur:V,onChange:_}),[c,R,R?.errors?.length,R?.status,R?.inputValue,A,S,B,V,_,h,m,x,$])}function ks(e,n={}){const i=b.useRef(n.unsafe__isDisabled??!1),{valuePropsMapper:o=({value:x,onChange:w})=>({value:x??null,onChange:w}),defaultValidationTrigger:s="onBlur"}=n,u=kE();if(e.rules&&e.name,u||i.current===!0||e.name==null)return e;const c=Ng(e,{defaultValidationTrigger:n.defaultValidationTrigger}),d=c?.form==null;e.rules&&d&&T0(`The "rules" prop is not supported for fields that are not part of a form. The "${e.name}" field is placed outside the form.`);const v=ss(c?.onBlur,"onBlur"in e?e.onBlur:void 0),h=it((x,w)=>c?.onChange?.(x,w,c?.validateTrigger??s)),m=d?{}:o({value:c.value,onChange:h});if(u&&!d){const x=d?[]:Object.keys(m).filter(w=>w.startsWith("on"));for(const w of x)w in e&&T0(`The "${w}" listener is not supported for input "${e.name}" that is linked to a form via a <Field> component. Remove the <Field> component and move its properties to the input itself.`)}const g=d?e:qe(e,c,m,{validateTrigger:c.validateTrigger??s,onBlur:v});return g.id&&(g.labelProps||(g.labelProps={}),g.labelProps.for=g.id),g}function CE(e){return e=e||"",e==="Number"||e.includes("Text")?"onBlur":"onChange"}function B0(e,n,i,o){return e=e||"",e==="Number"?{value:n??null,onChange:i}:e==="Text"?{value:typeof n=="string"||typeof n=="number"?String(n):"",onChange:i}:e==="Checkbox"?{isSelected:n??!1,isIndeterminate:!1,onChange:i}:e==="CheckboxGroup"?{value:n??[],onChange:i}:e==="RangeSlider"?{value:n??void 0,onChange:i}:e==="ComboBox"?{inputValue:n??"",onInputChange:s=>i(s,!o),onSelectionChange:i}:e==="Select"?{selectedKey:n??null,onSelectionChange:i}:{value:n??null,onChange:i}}function TE(e){const n=ai(e);let{children:i,form:o,label:s,extra:u,necessityLabel:c,necessityIndicator:d,description:v,tooltip:h,isHidden:m,isDisabled:g,isLoading:x,styles:w,labelProps:$,labelPosition:S="top",labelStyles:k,labelSuffix:A}=n;typeof i=="function"&&(i=i(o));let I=i==null?null:b.Children.only(i);const R=I?.type?.cubeInputType??"Text",B=Ng(n,{defaultValidationTrigger:CE(R)}),{validationState:_,message:V,isRequired:W,name:C,id:U}=B;if(!I)return null;if(U&&($||($={}),$.for=U),B.nonInput)return E.jsx(Ju,{children:E.jsx(Ag,{isHidden:m,isDisabled:g,validationState:B.validationState,necessityIndicator:d,necessityLabel:c,isRequired:W,label:s,labelProps:$,extra:u,tooltip:h,message:V,description:v,Component:I,styles:w,labelPosition:S,labelStyles:k,labelSuffix:A})});if(!o)return null;if(!B.field)return E.jsx(Ju,{children:b.cloneElement(I,qe(I.props,{...B0(R),label:C,name:C,id:U}))});const O={id:U,name:C,onBlur:B.onBlur};d!=null&&(O.necessityIndicator=d),c&&(O.necessityLabel=c),_&&(O.validationState=_),W&&(O.isRequired=W),s&&(O.label=s),u&&(O.extra=u),h&&(O.tooltip=h),V&&(O.message=V),m!=null&&(O.isHidden=m),g!=null&&(O.isDisabled=g),x!=null&&(O.isLoading=x),Object.assign(O,B0(R,B.field?.inputValue,B.onChange,I.props.allowsCustomValue));const{onChange:H,onSelectionChange:ne,...D}=I.props;return E.jsx(Ju,{children:b.cloneElement(I,qe(D,O,H?{onChange:B.onChange}:{},ne?{onSelectionChange:B.onChange}:{}))})}const Dg=b.createContext({insideLegacyField:!1});function Ju(e){const n=b.useMemo(()=>({insideLegacyField:!0}),[]);return E.jsx(Dg.Provider,{value:n,children:e.children})}function kE(){const{insideLegacyField:e=!1}=b.useContext(Dg);return e}const Ji={success:{fill:"#success-bg",color:"#success-text",border:"#success.40"},danger:{fill:"#danger-bg",color:"#danger-text",border:"#danger.40"},note:{fill:"#note-bg",color:"#note-text",border:"#note.40"},disabled:{fill:"#dark.10",color:"#dark.40",border:"#dark.20"}};const IE=[...We,...Wt];function LE(e){const{type:n,isDisabled:i=!1,theme:o}=e,s=Pe(e,IE);return L4(typeof n>"u",{property:"type",name:"Alert",betterAlternative:"theme"}),{styles:s,theme:i?"disabled":o??n??"note",filteredProps:Be(e,{eventProps:!0})}}const RE=se({name:"Alert",role:"alert",qa:"Alert",styles:{display:"block",flow:"column",radius:"1r",padding:"1.5x",preset:"t3",color:{"":"#dark",'[data-type="disabled"]':Ji.disabled.color},fill:{"":"#clear",...Object.keys(Ji).reduce((e,n)=>(e[`[data-type="${n}"]`]=Ji[n].fill,e),{})},border:{"":"#clear",...Object.keys(Ji).reduce((e,n)=>(e[`[data-type="${n}"]`]=Ji[n].border,e),{})}}}),_E=b.forwardRef(function(n,i){const{styles:o,theme:s,filteredProps:u}=LE(n);return E.jsx(RE,{...u,ref:i,"data-type":s,styles:o})});const ME=function(n){let{submitError:i}=b.useContext(bo);return i?(!b.isValidElement(i)&&typeof i!="string"&&(i="Internal error"),E.jsx(_E,{theme:"danger",...n,children:i})):null};const i$=Object.assign(t3,{Item:TE,useForm:Sg,SubmitError:ME});function ud(e,n,i){let{label:o,extra:s,labelPosition:u="top",labelStyles:c,isRequired:d,necessityIndicator:v,necessityLabel:h,validationState:m,message:g,description:x,isDisabled:w,labelProps:$,requiredMark:S=!0,tooltip:k,isHidden:A,labelSuffix:I,styles:R,children:B}=i;return E.jsx(Ag,{labelPosition:u,label:o,extra:s,styles:R,isRequired:d,labelStyles:c,necessityIndicator:v,necessityLabel:h,labelProps:$,isDisabled:w,validationState:m,message:g,description:x,requiredMark:S,tooltip:k,isHidden:A,labelSuffix:I,children:B,Component:e,ref:n})}const FE=[...We,...Wt],AE=se({qa:"Content",as:"section",styles:{gridArea:"content",preset:"p3",color:"#dark.75",display:"block",flow:"column",gap:"2x",overflow:"auto",styledScrollbar:!0}}),NE=b.forwardRef(function(n,i){n=dr(n,"content");const o=Pe(n,FE);return E.jsx(AE,{...Be(n,{eventProps:!0}),ref:i,styles:o})});const DE=[...We,...Wt],OE=se({qa:"Header",as:"header",styles:{display:"block",gridArea:"header",flow:"column"}}),BE=b.forwardRef(function(n,i){n=dr(n,"header");const o=Pe(n,DE);return E.jsx(OE,{...Be(n,{eventProps:!0}),ref:i,styles:o})});var Ac="data-focus-lock",Og="data-focus-lock-disabled",HE="data-no-focus-lock",jE="data-autofocus-inside",VE="data-no-autofocus";function ec(e,n){return typeof e=="function"?e(n):e&&(e.current=n),e}function zE(e,n){var i=b.useState(function(){return{value:e,callback:n,facade:{get current(){return i.value},set current(o){var s=i.value;s!==o&&(i.value=o,i.callback(o,s))}}}})[0];return i.callback=n,i.facade}var H0=new WeakMap;function UE(e,n){var i=zE(null,function(o){return e.forEach(function(s){return ec(s,o)})});return b.useLayoutEffect(function(){var o=H0.get(i);if(o){var s=new Set(o),u=new Set(e),c=i.current;s.forEach(function(d){u.has(d)||ec(d,null)}),u.forEach(function(d){s.has(d)||ec(d,c)})}H0.set(i,e)},[e]),i}var tc={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};function Bg(e){return e}function Hg(e,n){n===void 0&&(n=Bg);var i=[],o=!1,s={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:e},useMedium:function(u){var c=n(u,o);return i.push(c),function(){i=i.filter(function(d){return d!==c})}},assignSyncMedium:function(u){for(o=!0;i.length;){var c=i;i=[],c.forEach(u)}i={push:function(d){return u(d)},filter:function(){return i}}},assignMedium:function(u){o=!0;var c=[];if(i.length){var d=i;i=[],d.forEach(u),c=i}var v=function(){var m=c;c=[],m.forEach(u)},h=function(){return Promise.resolve().then(v)};h(),i={push:function(m){c.push(m),h()},filter:function(m){return c=c.filter(m),i}}}};return s}function cd(e,n){return n===void 0&&(n=Bg),Hg(e,n)}function KE(e){e===void 0&&(e={});var n=Hg(null);return n.options=ge({async:!0,ssr:!1},e),n}var jg=cd({},function(e){var n=e.target,i=e.currentTarget;return{target:n,currentTarget:i}}),Vg=cd(),WE=cd(),GE=KE({async:!0,ssr:typeof document<"u"}),ZE=b.createContext(void 0),qE=[],dd=b.forwardRef(function(n,i){var o,s=b.useState(),u=s[0],c=s[1],d=b.useRef(),v=b.useRef(!1),h=b.useRef(null),m=b.useState({}),g=m[1],x=n.children,w=n.disabled,$=w===void 0?!1:w,S=n.noFocusGuards,k=S===void 0?!1:S,A=n.persistentFocus,I=A===void 0?!1:A,R=n.crossFrame,B=R===void 0?!0:R,_=n.autoFocus,V=_===void 0?!0:_;n.allowTextSelection;var W=n.group,C=n.className,U=n.whiteList,O=n.hasPositiveIndices,H=n.shards,ne=H===void 0?qE:H,D=n.as,j=D===void 0?"div":D,ue=n.lockProps,xe=ue===void 0?{}:ue,Y=n.sideCar,X=n.returnFocus,ee=X===void 0?!1:X,z=n.focusOptions,de=n.onActivation,fe=n.onDeactivation,Ot=b.useState({}),pt=Ot[0],An=b.useCallback(function(bt){var Ht=bt.captureFocusRestore;if(!h.current){var qt,kt=(qt=document)==null?void 0:qt.activeElement;h.current=kt,kt!==document.body&&(h.current=Ht(kt))}d.current&&de&&de(d.current),v.current=!0,g()},[de]),ht=b.useCallback(function(){v.current=!1,fe&&fe(d.current),g()},[fe]),dn=b.useCallback(function(bt){var Ht=h.current;if(Ht){var qt=(typeof Ht=="function"?Ht():Ht)||document.body,kt=typeof ee=="function"?ee(qt):ee;if(kt){var fn=typeof kt=="object"?kt:void 0;h.current=null,bt?Promise.resolve().then(function(){return qt.focus(fn)}):qt.focus(fn)}}},[ee]),Bt=b.useCallback(function(bt){v.current&&jg.useMedium(bt)},[]),wo=Vg.useMedium,Is=b.useCallback(function(bt){d.current!==bt&&(d.current=bt,c(bt))},[]),vr=so((o={},o[Og]=$&&"disabled",o[Ac]=W,o),xe),ui=k!==!0,mr=ui&&k!=="tail",ci=UE([i,Is]),So=b.useMemo(function(){return{observed:d,shards:ne,enabled:!$,active:v.current}},[$,v.current,ne,u]);return b.createElement(b.Fragment,null,ui&&[b.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:$?-1:0,style:tc}),O?b.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:$?-1:1,style:tc}):null],!$&&b.createElement(Y,{id:pt,sideCar:GE,observed:u,disabled:$,persistentFocus:I,crossFrame:B,autoFocus:V,whiteList:U,shards:ne,onActivation:An,onDeactivation:ht,returnFocus:dn,focusOptions:z}),b.createElement(j,so({ref:ci},vr,{className:C,onBlur:wo,onFocus:Bt}),b.createElement(ZE.Provider,{value:So},x)),mr&&b.createElement("div",{"data-focus-guard":!0,tabIndex:$?-1:0,style:tc}))});dd.propTypes={};function XE(e,n){function i(o){return o.displayName||o.name||"Component"}return function(s){var u=[],c;function d(){c=e(u.map(function(h){return h.props})),n(c)}var v=(function(h){Cs(m,h);function m(){return h.apply(this,arguments)||this}m.peek=function(){return c};var g=m.prototype;return g.componentDidMount=function(){u.push(this),d()},g.componentDidUpdate=function(){d()},g.componentWillUnmount=function(){var w=u.indexOf(this);u.splice(w,1),d()},g.render=function(){return ce.createElement(s,this.props)},m})(b.PureComponent);return h2(v,"displayName","SideEffect("+i(s)+")"),v}}var Zt=function(e){for(var n=Array(e.length),i=0;i<e.length;++i)n[i]=e[i];return n},cr=function(e){return Array.isArray(e)?e:[e]},zg=function(e){return Array.isArray(e)?e[0]:e},YE=function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var n=window.getComputedStyle(e,null);return!n||!n.getPropertyValue?!1:n.getPropertyValue("display")==="none"||n.getPropertyValue("visibility")==="hidden"},Ug=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},Kg=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},QE=function(e){return e.hasAttribute("inert")},JE=function(e,n){return!e||Kg(e)||!YE(e)&&!QE(e)&&n(Ug(e))},Wg=function(e,n){var i=e.get(n);if(i!==void 0)return i;var o=JE(n,Wg.bind(void 0,e));return e.set(n,o),o},e5=function(e,n){return e&&!Kg(e)?r5(e)?n(Ug(e)):!1:!0},Gg=function(e,n){var i=e.get(n);if(i!==void 0)return i;var o=e5(n,Gg.bind(void 0,e));return e.set(n,o),o},Zg=function(e){return e.dataset},t5=function(e){return e.tagName==="BUTTON"},qg=function(e){return e.tagName==="INPUT"},Xg=function(e){return qg(e)&&e.type==="radio"},n5=function(e){return!((qg(e)||t5(e))&&(e.type==="hidden"||e.disabled))},r5=function(e){var n=e.getAttribute(VE);return![!0,"true",""].includes(n)},fd=function(e){var n;return!!(e&&(!((n=Zg(e))===null||n===void 0)&&n.focusGuard))},Nc=function(e){return!fd(e)},i5=function(e){return!!e},o5=function(e,n){var i=Math.max(0,e.tabIndex),o=Math.max(0,n.tabIndex),s=i-o,u=e.index-n.index;if(s){if(!i)return 1;if(!o)return-1}return s||u},l5=function(e){return e.tabIndex<0&&!e.hasAttribute("tabindex")?0:e.tabIndex},pd=function(e,n,i){return Zt(e).map(function(o,s){var u=l5(o);return{node:o,index:s,tabIndex:i&&u===-1?(o.dataset||{}).focusGuard?0:-1:u}}).filter(function(o){return!n||o.tabIndex>=0}).sort(o5)},s5=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],hd=s5.join(","),a5="".concat(hd,", [data-focus-guard]"),Yg=function(e,n){return Zt((e.shadowRoot||e).children).reduce(function(i,o){return i.concat(o.matches(n?a5:hd)?[o]:[],Yg(o))},[])},u5=function(e,n){var i;return e instanceof HTMLIFrameElement&&(!((i=e.contentDocument)===null||i===void 0)&&i.body)?oi([e.contentDocument.body],n):[e]},oi=function(e,n){return e.reduce(function(i,o){var s,u=Yg(o,n),c=(s=[]).concat.apply(s,u.map(function(d){return u5(d,n)}));return i.concat(c,o.parentNode?Zt(o.parentNode.querySelectorAll(hd)).filter(function(d){return d===o}):[])},[])},c5=function(e){var n=e.querySelectorAll("[".concat(jE,"]"));return Zt(n).map(function(i){return oi([i])}).reduce(function(i,o){return i.concat(o)},[])},vd=function(e,n){return Zt(e).filter(function(i){return Wg(n,i)}).filter(function(i){return n5(i)})},j0=function(e,n){return n===void 0&&(n=new Map),Zt(e).filter(function(i){return Gg(n,i)})},md=function(e,n,i){return pd(vd(oi(e,i),n),!0,i)},cs=function(e,n){return pd(vd(oi(e),n),!1)},d5=function(e,n){return vd(c5(e),n)},ir=function(e,n){return e.shadowRoot?ir(e.shadowRoot,n):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,n)?!0:Zt(e.children).some(function(i){var o;if(i instanceof HTMLIFrameElement){var s=(o=i.contentDocument)===null||o===void 0?void 0:o.body;return s?ir(s,n):!1}return ir(i,n)})},f5=function(e){for(var n=new Set,i=e.length,o=0;o<i;o+=1)for(var s=o+1;s<i;s+=1){var u=e[o].compareDocumentPosition(e[s]);(u&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&n.add(s),(u&Node.DOCUMENT_POSITION_CONTAINS)>0&&n.add(o)}return e.filter(function(c,d){return!n.has(d)})},Qg=function(e){return e.parentNode?Qg(e.parentNode):e},gd=function(e){var n=cr(e);return n.filter(Boolean).reduce(function(i,o){var s=o.getAttribute(Ac);return i.push.apply(i,s?f5(Zt(Qg(o).querySelectorAll("[".concat(Ac,'="').concat(s,'"]:not([').concat(Og,'="disabled"])')))):[o]),i},[])},p5=function(e){try{return e()}catch{return}},co=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var n=e.activeElement;return n.shadowRoot?co(n.shadowRoot):n instanceof HTMLIFrameElement&&p5(function(){return n.contentWindow.document})?co(n.contentWindow.document):n}},h5=function(e,n){return e===n},v5=function(e,n){return!!Zt(e.querySelectorAll("iframe")).some(function(i){return h5(i,n)})},Jg=function(e,n){return n===void 0&&(n=co(zg(e).ownerDocument)),!n||n.dataset&&n.dataset.focusGuard?!1:gd(e).some(function(i){return ir(i,n)||v5(i,n)})},m5=function(e){e===void 0&&(e=document);var n=co(e);return n?Zt(e.querySelectorAll("[".concat(HE,"]"))).some(function(i){return ir(i,n)}):!1},g5=function(e,n){return n.filter(Xg).filter(function(i){return i.name===e.name}).filter(function(i){return i.checked})[0]||e},yd=function(e,n){return Xg(e)&&e.name?g5(e,n):e},y5=function(e){var n=new Set;return e.forEach(function(i){return n.add(yd(i,e))}),e.filter(function(i){return n.has(i)})},V0=function(e){return e[0]&&e.length>1?yd(e[0],e):e[0]},z0=function(e,n){return e.indexOf(yd(n,e))},Dc="NEW_FOCUS",x5=function(e,n,i,o,s){var u=e.length,c=e[0],d=e[u-1],v=fd(o);if(!(o&&e.indexOf(o)>=0)){var h=o!==void 0?i.indexOf(o):-1,m=s?i.indexOf(s):h,g=s?e.indexOf(s):-1;if(h===-1)return g!==-1?g:Dc;if(g===-1)return Dc;var x=h-m,w=i.indexOf(c),$=i.indexOf(d),S=y5(i),k=o!==void 0?S.indexOf(o):-1,A=k-(s?S.indexOf(s):h);if(!x&&g>=0||n.length===0)return g;var I=z0(e,n[0]),R=z0(e,n[n.length-1]);if(h<=w&&v&&Math.abs(x)>1)return R;if(h>=$&&v&&Math.abs(x)>1)return I;if(x&&Math.abs(A)>1)return g;if(h<=w)return R;if(h>$)return I;if(x)return Math.abs(x)>1?g:(u+g+x)%u}},b5=function(e){return function(n){var i,o=(i=Zg(n))===null||i===void 0?void 0:i.autofocus;return n.autofocus||o!==void 0&&o!=="false"||e.indexOf(n)>=0}},U0=function(e,n,i){var o=e.map(function(u){var c=u.node;return c}),s=j0(o.filter(b5(i)));return s&&s.length?V0(s):V0(j0(n))},Oc=function(e,n){return n===void 0&&(n=[]),n.push(e),e.parentNode&&Oc(e.parentNode.host||e.parentNode,n),n},nc=function(e,n){for(var i=Oc(e),o=Oc(n),s=0;s<i.length;s+=1){var u=i[s];if(o.indexOf(u)>=0)return u}return!1},e1=function(e,n,i){var o=cr(e),s=cr(n),u=o[0],c=!1;return s.filter(Boolean).forEach(function(d){c=nc(c||d,d)||c,i.filter(Boolean).forEach(function(v){var h=nc(u,v);h&&(!c||ir(h,c)?c=h:c=nc(h,c))})}),c},K0=function(e,n){return e.reduce(function(i,o){return i.concat(d5(o,n))},[])},w5=function(e,n){var i=new Map;return n.forEach(function(o){return i.set(o.node,o)}),e.map(function(o){return i.get(o)}).filter(i5)},S5=function(e,n){var i=co(cr(e).length>0?document:zg(e).ownerDocument),o=gd(e).filter(Nc),s=e1(i||e,e,o),u=new Map,c=cs(o,u),d=c.filter(function($){var S=$.node;return Nc(S)});if(d[0]){var v=cs([s],u).map(function($){var S=$.node;return S}),h=w5(v,d),m=h.map(function($){var S=$.node;return S}),g=h.filter(function($){var S=$.tabIndex;return S>=0}).map(function($){var S=$.node;return S}),x=x5(m,g,v,i,n);if(x===Dc){var w=U0(c,g,K0(o,u))||U0(c,m,K0(o,u));if(w)return{node:w};console.warn("focus-lock: cannot find any node to move focus into");return}return x===void 0?x:h[x]}},E5=function(e){var n=gd(e).filter(Nc),i=e1(e,e,n),o=pd(oi([i],!0),!0,!0),s=oi(n,!1);return o.map(function(u){var c=u.node,d=u.index;return{node:c,index:d,lockItem:s.indexOf(c)>=0,guard:fd(c)}})},xd=function(e,n){e&&("focus"in e&&e.focus(n),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},rc=0,ic=!1,t1=function(e,n,i){i===void 0&&(i={});var o=S5(e,n);if(!ic&&o){if(rc>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),ic=!0,setTimeout(function(){ic=!1},1);return}rc++,xd(o.node,i.focusOptions),rc--}};function eo(e){if(!e)return null;var n=e?new WeakRef(e):null;return function(){return n?.deref()||null}}var $5=function(e){if(!e)return null;for(var n=[],i=e;i&&i!==document.body;)n.push({current:eo(i),parent:eo(i.parentElement),left:eo(i.previousElementSibling),right:eo(i.nextElementSibling)}),i=i.parentElement;return{element:eo(e),stack:n,ownerDocument:e.ownerDocument}},P5=function(e){var n,i,o,s,u;if(e)for(var c=e.stack,d=e.ownerDocument,v=new Map,h=0,m=c;h<m.length;h++){var g=m[h],x=(n=g.parent)===null||n===void 0?void 0:n.call(g);if(x&&d.contains(x)){for(var w=(i=g.left)===null||i===void 0?void 0:i.call(g),$=g.current(),S=x.contains($)?$:void 0,k=(o=g.right)===null||o===void 0?void 0:o.call(g),A=md([x],v),I=(u=(s=S??w?.nextElementSibling)!==null&&s!==void 0?s:k)!==null&&u!==void 0?u:w;I;){for(var R=0,B=A;R<B.length;R++){var _=B[R];if(I?.contains(_.node))return _.node}I=I.nextElementSibling}if(A.length)return A[0].node}}},C5=function(e){var n=$5(e);return function(){return P5(n)}},T5=function(e,n,i){if(!e||!n)return console.error("no element or scope given"),{};var o=cr(n);if(o.every(function(c){return!ir(c,e)}))return console.error("Active element is not contained in the scope"),{};var s=i?md(o,new Map):cs(o,new Map),u=s.findIndex(function(c){var d=c.node;return d===e});if(u!==-1)return{prev:s[u-1],next:s[u+1],first:s[0],last:s[s.length-1]}},k5=function(e,n){var i=n?md(cr(e),new Map):cs(cr(e),new Map);return{first:i[0],last:i[i.length-1]}},I5=function(e){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},e)},n1=function(e,n,i){n===void 0&&(n={});var o=I5(n),s=T5(e,o.scope,o.onlyTabbable);if(s){var u=i(s,o.cycle);u&&xd(u.node,o.focusOptions)}},L5=function(e,n){n===void 0&&(n={}),n1(e,n,function(i,o){var s=i.next,u=i.first;return s||o&&u})},R5=function(e,n){n===void 0&&(n={}),n1(e,n,function(i,o){var s=i.prev,u=i.last;return s||o&&u})},r1=function(e,n,i){var o,s=k5(e,(o=n.onlyTabbable)!==null&&o!==void 0?o:!0),u=s[i];u&&xd(u.node,n.focusOptions)},_5=function(e,n){n===void 0&&(n={}),r1(e,n,"first")},M5=function(e,n){n===void 0&&(n={}),r1(e,n,"last")};function bd(e){setTimeout(e,1)}var F5=function(n){return n&&"current"in n?n.current:n},A5=function(){return document&&document.activeElement===document.body},N5=function(){return A5()||m5()},ei=null,Qr=null,ti=null,fo=!1,D5=function(){return!0},O5=function(n){return(ei.whiteList||D5)(n)},B5=function(n,i){ti={observerNode:n,portaledElement:i}},H5=function(n){return ti&&ti.portaledElement===n};function W0(e,n,i,o){var s=null,u=e;do{var c=o[u];if(c.guard)c.node.dataset.focusAutoGuard&&(s=c);else if(c.lockItem){if(u!==e)return;s=null}else break}while((u+=i)!==n);s&&(s.node.tabIndex=0)}var j5=function(n){return n?!!fo:fo==="meanwhile"},V5=function e(n,i,o){return i&&(i.host===n&&(!i.activeElement||o.contains(i.activeElement))||i.parentNode&&e(n,i.parentNode,o))},z5=function(n,i){return i.some(function(o){return V5(n,o,o)})},ds=function(){var n=!1;if(ei){var i=ei,o=i.observed,s=i.persistentFocus,u=i.autoFocus,c=i.shards,d=i.crossFrame,v=i.focusOptions,h=o||ti&&ti.portaledElement,m=document&&document.activeElement;if(h){var g=[h].concat(c.map(F5).filter(Boolean));if((!m||O5(m))&&(s||j5(d)||!N5()||!Qr&&u)&&(h&&!(Jg(g)||m&&z5(m,g)||H5(m))&&(document&&!Qr&&m&&!u?(m.blur&&m.blur(),document.body.focus()):(n=t1(g,Qr,{focusOptions:v}),ti={})),fo=!1,Qr=document&&document.activeElement),document&&m!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var x=document&&document.activeElement,w=E5(g),$=w.map(function(S){var k=S.node;return k}).indexOf(x);$>-1&&(w.filter(function(S){var k=S.guard,A=S.node;return k&&A.dataset.focusAutoGuard}).forEach(function(S){var k=S.node;return k.removeAttribute("tabIndex")}),W0($,w.length,1,w),W0($,-1,-1,w))}}}return n},i1=function(n){ds()&&n&&(n.stopPropagation(),n.preventDefault())},wd=function(){return bd(ds)},U5=function(n){var i=n.target,o=n.currentTarget;o.contains(i)||B5(o,i)},K5=function(){return null},o1=function(){fo="just",bd(function(){fo="meanwhile"})},W5=function(){document.addEventListener("focusin",i1),document.addEventListener("focusout",wd),window.addEventListener("blur",o1)},G5=function(){document.removeEventListener("focusin",i1),document.removeEventListener("focusout",wd),window.removeEventListener("blur",o1)};function Z5(e){return e.filter(function(n){var i=n.disabled;return!i})}var l1={moveFocusInside:t1,focusInside:Jg,focusNextElement:L5,focusPrevElement:R5,focusFirstElement:_5,focusLastElement:M5,captureFocusRestore:C5};function q5(e){var n=e.slice(-1)[0];n&&!ei&&W5();var i=ei,o=i&&n&&n.id===i.id;ei=n,i&&!o&&(i.onDeactivation(),e.filter(function(s){var u=s.id;return u===i.id}).length||i.returnFocus(!n)),n?(Qr=null,(!o||i.observed!==n.observed)&&n.onActivation(l1),ds(),bd(ds)):(G5(),Qr=null)}jg.assignSyncMedium(U5);Vg.assignMedium(wd);WE.assignMedium(function(e){return e(l1)});const X5=XE(Z5,q5)(K5);var s1=b.forwardRef(function(n,i){return b.createElement(dd,so({sideCar:X5,ref:i},n))}),a1=dd.propTypes||{};a1.sideCar;ps(a1,["sideCar"]);s1.propTypes={};const Y5=[...Mn,...zc,...vo],Q5=se({as:"section",styles:{pointerEvents:"auto",position:"relative",display:"flex",placeItems:"stretch",placeContent:"stretch",width:{"":"288px @dialog-size 90vw",'[data-type="fullscreen"]':"90vw 90vw",'[data-type="fullscreenTakeover"]':"100vw 100vw",'[data-type="panel"]':"100vw 100vw"},height:{"":"max 90vh",'[data-type="fullscreenTakeover"] | [data-type="panel"]':"max 100vh"},gap:0,flow:"column",radius:{"":"2r",'[data-type="tray"]':"2r top",'[data-type="fullscreenTakeover"] | [data-type="panel"]':"0r"},fill:"#white",shadow:{"":"0 20px 30px #shadow",'[data-type="popover"]':"0px 4px 16px #shadow"},top:{"":!1,'[data-type="modal"]':"((50vh - 50%) / -3)"},placeSelf:"stretch","@dialog-heading-padding-v":{"":"2x",'[data-type="popover"]':"1x"},"@dialog-content-padding-v":{"":"3x",'[data-type="popover"]':"2x"},"@dialog-padding-h":{"":"3x",'[data-type="popover"]':"2x"},"@dialog-footer-v":{"":"2x",'[data-type="popover"]':"1x"},"@dialog-content-gap":"3x"}}),J5=ho(s1)`
126
+ display: contents;
127
+ `,e8={display:"flex",position:"absolute",top:"1x",right:"1x",width:"5x",height:"5x",placeContent:"center"},t8={S:"small",M:"medium",L:"large"},n8={small:360,medium:479,large:798},r8={"en-US":{dismiss:"Dismiss",alert:"Alert"}},i8=b.forwardRef(function(n,i){const s=JS()?.transitionState==="entered";return E.jsx(J5,{returnFocus:!0,disabled:!s,children:E.jsx(o8,{...n,ref:i},"content")})}),o8=b.forwardRef(function(n,i){let{type:o="modal",...s}=Mg(),{qa:u,children:c,size:d="S",isDismissable:v=s.isDismissable,onDismiss:h=s.onClose,closeIcon:m,closeButtonStyles:g,...x}=n;d=t8[d.toUpperCase()]||d;const w=Pe(x,Y5);let $=I6(r8),S=si(i),{dialogProps:k,titleProps:A}=m4(qe(s,n),S),I;(o==="popover"||o==="tray")&&(I=E.jsx(l4,{onDismiss:h}));let R={heading:{level:2,preset:"h4",...A},content:{styles:{flexGrow:1,padding:"@dialog-content-padding-v @dialog-padding-h",gap:"@dialog-content-gap",height:{"":"max (100% - (2 * @dialog-content-padding-v))",":last-child":"max (100% - @dialog-content-padding-v)"}}},header:{ellipsis:!0,styles:{display:"flex",flow:"row",gap:"1x",placeItems:"baseline stretch",placeContent:"space-between",padding:`@dialog-heading-padding-v ${v?"(@dialog-padding-h + 4x)":"@dialog-padding-h"} @dialog-heading-padding-v @dialog-padding-h`,border:"bottom"}},footer:{styles:{display:"flex",gap:"1x",flow:"row",placeItems:"baseline stretch",placeContent:"space-between",padding:"@dialog-footer-v @dialog-padding-h"}}};return E.jsxs(Q5,{ref:S,"data-id":"Dialog","data-qa":u||"Dialog",styles:w,as:"section",...k,mods:{dismissable:v},style:{"--dialog-size":`${n8[d]||288}px`},"data-type":o,"data-size":d,children:[I,E.jsxs(Rx,{slots:R,children:[v&&E.jsx(lo,{qa:"ModalCloseButton",type:"neutral",styles:e8,icon:m||E.jsx(kg,{}),label:$("dismiss"),onPress:()=>h&&h()}),c]})]})});const l8=se({styles:{display:"grid",flow:"row"}}),s8={template:"gridTemplate",columns:"gridColumns",rows:"gridRows",areas:"gridAreas"},o$=b.forwardRef(function(n,i){const o=Pe(n,We,void 0,s8);return E.jsx(l8,{...Be(n,{eventProps:!0}),ref:i,styles:o})});const a8=se({styles:{display:"block",flow:"column"}}),u8=We,l$=b.forwardRef(function(n,i){const o=Pe(n,u8);return E.jsx(a8,{...Be(n,{eventProps:!0}),ref:i,styles:o})});const Bc={pink:"255, 100, 146","pink-02":"255, 131, 168",purple:"122, 119, 255","purple-text":"102, 93, 232","purple-01":"122, 119, 255","purple-02":"149, 146, 255","purple-03":"175, 173, 255","purple-04":"202, 201, 255",text:"91, 92, 125",dark:"20, 20, 70","dark-01":"20, 20, 70","dark-02":"67, 67, 107","dark-03":"114, 114, 144","dark-04":"161, 161, 181","dark-05":"213, 213, 226","grey-light":"248, 248, 249",light:"246, 246, 248",white:"255, 255, 255",black:"0, 0, 0","danger-text":"227, 0, 42",danger:"255, 55, 73","light-grey":"248, 248, 249",success:"49, 195, 124","success-text":"48, 166, 102",note:"251, 188, 5",warning:"224, 86, 43"};function Ee(e,n=1){return`rgba(${Bc[e]}, ${n})`}const po={"font-size":"14px","line-height":"20px","input-font-size":"14px","input-line-height":"20px","input-letter-spacing":"0.02em","disabled-opacity":".4",gap:"8px","outline-width":"calc(1rem / 16 * 3)","border-width":"1px",radius:"4px","leaf-sharp-radius":"0px",transition:"80ms","clear-color":"transparent","border-color":Ee("dark",.1),"shadow-color":Ee("dark-03",.1),"draft-color":Ee("dark",.2),"minor-color":Ee("dark",.65),"success-bg-color":"rgba(41, 190, 110, .1)","note-bg-color":Ee("note",.1),"note-text-color":Ee("note",1),"danger-bg-color":Ee("danger",.05),"danger-bg-hover-color":Ee("danger",.1),"primary-1":Ee("purple",.9),"primary-2":Ee("purple",.8),"primary-3":Ee("purple",.7),"primary-4":Ee("purple",.6),"primary-5":Ee("purple",.5),"primary-6":Ee("purple",.4),"primary-7":Ee("purple",.3),"primary-8":Ee("purple",.2),"primary-9":Ee("purple",.1),"primary-10":Ee("purple",0),"dark-75-color":Ee("dark",.75),"primary-color":Ee("purple"),"pink-8-color":Ee("pink",.2),"pink-9-color":Ee("pink",.1),"disabled-color":Ee("dark-01",.25),"disabled-text-color":Ee("dark-01",.25),"disabled-bg":Ee("dark-05",.2),"disabled-bg-color":Ee("dark-05",.2),"max-content-width":"1440px","topbar-height":"48px","devmodebar-height":"54px","sidebar-width":"200px","border-radius-base":"4px","text-font-size":"14px","text-line-height":"20px","text-letter-spacing":"0","h1-font-size":"36px","h1-line-height":"44px","h1-letter-spacing":"-0.01em","h1-font-weight":"700","h2-font-size":"24px","h2-line-height":"36px","h2-letter-spacing":"0em","h2-font-weight":"700","h3-font-size":"20px","h3-line-height":"28px","h3-letter-spacing":"0em","h3-font-weight":"700","h4-font-size":"18px","h4-line-height":"24px","h4-letter-spacing":"0","h4-font-weight":"700","h5-font-size":"16px","h5-line-height":"22px","h5-letter-spacing":"0","h5-font-weight":"700","h5-icon-size":"18px","h6-font-size":"14px","h6-line-height":"20px","h6-letter-spacing":"0.01em","h6-font-weight":"600","h6-icon-size":"16px","t1-font-size":"18px","t1-line-height":"24px","t1-letter-spacing":"0","t1-font-weight":"400","t1-icon-size":"20px","t2-font-size":"16px","t2-line-height":"22px","t2-letter-spacing":"0","t2-font-weight":"400","t2-icon-size":"18px","t2m-font-size":"16px","t2m-line-height":"22px","t2m-letter-spacing":"0","t2m-font-weight":"500","t2m-icon-size":"18px","t3-font-size":"14px","t3-line-height":"20px","t3-letter-spacing":"0","t3-font-weight":"400","t3-icon-size":"16px","t3m-font-size":"14px","t3m-line-height":"20px","t3m-letter-spacing":"0","t3m-font-weight":"500","t3m-icon-size":"16px","t4-font-size":"12px","t4-line-height":"18px","t4-letter-spacing":"0","t4-font-weight":"500","t4-icon-size":"14px","t4m-font-size":"12px","t4m-line-height":"18px","t4m-letter-spacing":"0","t4m-font-weight":"600","t4m-icon-size":"14px","p1-font-size":"18px","p1-line-height":"28px","p1-letter-spacing":"0","p1-font-weight":"400","p1-icon-size":"20px","p2-font-size":"16px","p2-line-height":"24px","p2-letter-spacing":"0","p2-font-weight":"400","p2-icon-size":"18px","p3-font-size":"14px","p3-line-height":"22px","p3-letter-spacing":"0","p3-font-weight":"400","p3-icon-size":"16px","p4-font-size":"12px","p4-line-height":"20px","p4-letter-spacing":"0","p4-font-weight":"500","p4-icon-size":"14px","c1-font-size":"14px","c1-line-height":"20px","c1-letter-spacing":"0","c1-font-weight":"500","c1-text-transform":"uppercase","c1-icon-size":"16px","c2-font-size":"12px","c2-line-height":"18px","c2-letter-spacing":"0.01em","c2-font-weight":"500","c2-text-transform":"uppercase","c2-icon-size":"14px","tag-font-size":"12px","tag-line-height":"18px","tag-letter-spacing":"0.01em","tag-font-weight":"600","tag-icon-size":"14px","strong-font-size":"inherit","strong-line-height":"inherit","strong-letter-spacing":"inherit","strong-font-family":"inherit","strong-font-style":"inherit","strong-font-weight":"var(--bold-font-weight, var(--default-bold-font-weight, 700))","em-font-size":"inherit","em-line-height":"inherit","em-letter-spacing":"inherit","em-font-family":"inherit","em-font-style":"italic","em-font-weight":"inherit","default-font-size":"var(--t3-font-size)","default-line-height":"var(--t3-line-height)","default-letter-spacing":"var(--t3-letter-spacing)","default-font-weight":"var(--t3-font-weight)","default-bold-font-weight":"700","default-icon-size":"inherit","scrollbar-width":"1.5x","scrollbar-outline-width":"1ow","scrollbar-radius":"1.5r","scrollbar-thumb-color":"rgba(var(--text-color-rgb), .5)","scrollbar-outline-color":"var(--clear-color)","scrollbar-bg-color":"var(--grey-light-color)","scrollbar-corner-color":"var(--clear-color)"};Object.keys(Bc).forEach(e=>{po[`${e}-color`]=Ee(e),po[`${e}-color-rgb`]=Bc[e]});const c8={"overscroll-behavior-y":"none","background-color":"white !important","font-family":"var(--font)","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale",margin:"0",padding:"0",color:"rgba(20, 20, 70, .75)","font-size":"14px","line-height":"20px","letter-spacing":"0.02em","font-weight":"400"},d8=({publicUrl:e="",fontDisplay:n="swap"})=>`
128
+ @font-face {
129
+ font-family: 'Inter';
130
+ font-style: normal;
131
+ font-weight: 400;
132
+ font-display: ${n};
133
+ src: url(${e}/fonts/Inter-Regular.woff2) format('woff2'),
134
+ url(${e}/fonts/Inter-Regular.woff) format('woff');
135
+ }
136
+ @font-face {
137
+ font-family: 'Inter';
138
+ font-style: normal;
139
+ font-weight: 500;
140
+ font-display: ${n};
141
+ src: url(${e}/fonts/Inter-Medium.woff2) format('woff2'),
142
+ url(${e}/fonts/Inter-Medium.woff) format('woff');
143
+ }
144
+ @font-face {
145
+ font-family: 'Inter';
146
+ font-style: normal;
147
+ font-weight: 600;
148
+ font-display: ${n};
149
+ src: url(${e}/fonts/Inter-SemiBold.woff2) format('woff2'),
150
+ url(${e}/fonts/Inter-SemiBold.woff) format('woff');
151
+ }
152
+ @font-face {
153
+ font-family: 'Inter';
154
+ font-style: normal;
155
+ font-weight: 700;
156
+ font-display: ${n};
157
+ src: url(${e}/fonts/Inter-Bold.woff2) format('woff2'),
158
+ url(${e}/fonts/Inter-Bold.woff) format('woff');
159
+ }
160
+ @font-face {
161
+ font-family: 'Source Code Pro';
162
+ src: url('${e}/fonts/SourceCodePro-Regular.woff2') format('woff2'),
163
+ url('${e}/fonts/SourceCodePro-Regular.woff') format('woff');
164
+ font-weight: normal;
165
+ font-style: normal;
166
+ font-display: ${n};
167
+ }
168
+
169
+ @font-face {
170
+ font-family: 'JetBrains Mono';
171
+ font-style: normal;
172
+ font-weight: 400;
173
+ font-display: ${n};
174
+ src: url(${e}/fonts/JetBrainsMono-Regular.woff2) format('woff2'),
175
+ url(${e}/fonts/JetBrainsMono-Regular.woff) format('woff');
176
+ }
177
+
178
+ @font-face {
179
+ font-family: 'JetBrains Mono';
180
+ font-style: normal;
181
+ font-weight: 700;
182
+ font-display: ${n};
183
+ src: url(${e}/fonts/JetBrainsMono-Bold.woff2) format('woff2'),
184
+ url(${e}/fonts/JetBrainsMono-Bold.woff) format('woff');
185
+ }
186
+
187
+ @font-face {
188
+ font-family: 'text-security-disc';
189
+ src: url(${e}/fonts/text-security-disc.woff2) format('woff2'),
190
+ url(${e}/fonts/text-security-disc.woff) format('woff');
191
+ }
192
+ `,f8=X0`
193
+ body {
194
+ ${({$applyLegacyTokens:e})=>e?Object.entries(po).map(([n,i])=>(i==="inherit"&&(i=`var(--non-existent-${n}, inherit)`),`--${n}: ${i};`)).join(`
195
+ `):""}
196
+ ${({$bodyStyles:e})=>Object.entries({...c8,...e}).map(([n,i])=>`${n}: ${i};`).join(`
197
+ `)}
198
+ }
199
+
200
+ html {
201
+ overscroll-behavior-y: none;
202
+ --font: ${({$font:e})=>e||"Inter"}, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
203
+ --monospace-font: ${({$monospaceFont:e})=>`${e?`${e}, `:""}Menlo, Monaco, Consolas, 'Courier New', monospace;`}
204
+ }
205
+
206
+ kbd {
207
+ font-family: var(--c2-font-family);
208
+ font-weight: var(--c2-font-weight);
209
+ font-size: var(--c2-font-size);
210
+ border: var(--border-width) solid var(--dark-04-color);
211
+ background-color: white;
212
+ color: var(--dark-color);
213
+ border-radius: var(--radius);
214
+ padding: 0 var(--outline-width);
215
+ }
216
+
217
+ .cube-notification-container {
218
+ min-width: 288px;
219
+ max-width: 340px;
220
+ width: calc(100vw - 32px);
221
+ position: fixed;
222
+ top: 32px;
223
+ right: 16px;
224
+ z-index: 999999;
225
+ }
226
+
227
+ .cube-notifications {
228
+ display: grid;
229
+ grid-auto-flow: row;
230
+ grid-template-columns: 1fr;
231
+ }
232
+
233
+ .cube-notification-enter {
234
+ opacity: 0;
235
+ max-height: 0px;
236
+ margin-bottom: 0px;
237
+ transform: translate(100%, 0);
238
+ }
239
+
240
+ .cube-notification-enter-active {
241
+ opacity: 1;
242
+ max-height: 56px;
243
+ margin-bottom: 8px;
244
+ transform: translate(0, 0);
245
+ transition: all 300ms ease-in;
246
+
247
+ & > * {
248
+ margin-bottom: 0px;
249
+ }
250
+ }
251
+
252
+ .cube-notification-exit {
253
+ opacity: 1;
254
+ margin-bottom: 8px;
255
+ max-height: 56px;
256
+ transform: translate(0, 0);
257
+ }
258
+
259
+ .cube-notification-exit-active {
260
+ opacity: 0;
261
+ max-height: 0px;
262
+ margin-bottom: 0px;
263
+ transform: translate(100%, 0);
264
+ transition: all 300ms ease-in;
265
+
266
+ & > * {
267
+ margin-bottom: 0px;
268
+ }
269
+ }
270
+
271
+ b, strong {
272
+ font-weight: var(--bold-font-weight, 700);
273
+ }
274
+
275
+ [type=reset], [type=submit], button, html [type=button] {
276
+ -webkit-appearance: none;
277
+ }
278
+
279
+ code {
280
+ font-family: var(--monospace-font);
281
+ }
282
+
283
+ ${({$fonts:e,$publicUrl:n,$fontDisplay:i})=>e===!1?"":d8({publicUrl:n,...i?{fontDisplay:i}:{}})}
284
+ // Prism Code
285
+ code[class*="language-"],
286
+ pre[class*="language-"] {
287
+ color: var(--dark-color);
288
+ background: none;
289
+ font-family: "Source Code Pro", Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
290
+ text-align: left;
291
+ font-weight: normal;
292
+ font-size: 14px;
293
+ line-height: 20px;
294
+ white-space: pre;
295
+ word-spacing: normal;
296
+ word-break: normal;
297
+ word-wrap: normal;
298
+ border-radius: 4px;
299
+ border: none;
300
+
301
+ -moz-tab-size: 4;
302
+ -o-tab-size: 4;
303
+ tab-size: 4;
304
+
305
+ -webkit-hyphens: none;
306
+ -moz-hyphens: none;
307
+ -ms-hyphens: none;
308
+ hyphens: none;
309
+ }
310
+
311
+ pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
312
+ code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
313
+ text-shadow: none;
314
+ /*background: #b3d4fc;*/
315
+ }
316
+
317
+ pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
318
+ code[class*="language-"]::selection, code[class*="language-"] ::selection {
319
+ text-shadow: none;
320
+ /*background: #b3d4fc;*/
321
+ }
322
+
323
+ @media print {
324
+ code[class*="language-"],
325
+ pre[class*="language-"] {
326
+ text-shadow: none;
327
+ }
328
+ }
329
+
330
+ /* Code blocks */
331
+ pre[class*="language-"] {
332
+ overflow: auto;
333
+ }
334
+
335
+ :not(pre) > code[class*="language-"],
336
+ pre[class*="language-"] {
337
+ background: transparent;
338
+ }
339
+
340
+ /* Inline code */
341
+ :not(pre) > code[class*="language-"] {
342
+ border-radius: .3em;
343
+ white-space: normal;
344
+ }
345
+
346
+ .token.comment,
347
+ .token.prolog,
348
+ .token.doctype,
349
+ .token.cdata {
350
+ color: var(--dark-04-color);
351
+ }
352
+
353
+ .token.keyword,
354
+ .token.tag,
355
+ .token.operator,
356
+ .token.punctuation {
357
+ color: #993388;
358
+ }
359
+
360
+ .namespace {
361
+ opacity: .7;
362
+ }
363
+
364
+ .token.property,
365
+ .token.boolean,
366
+ .token.constant,
367
+ .token.symbol,
368
+ .token.deleted {
369
+ color: var(--pink-color);
370
+ }
371
+
372
+ .token.entity,
373
+ .token.number {
374
+ color: #30A666;
375
+ }
376
+
377
+ .token.selector,
378
+ .token.attr-name,
379
+ .token.string,
380
+ .token.char,
381
+ .token.builtin,
382
+ .token.inserted {
383
+ color: var(--purple-text-color);
384
+ }
385
+
386
+ .token.url,
387
+ .language-css .token.string,
388
+ .style .token.string {
389
+ color: var(--dark-color);
390
+ }
391
+
392
+ .token.atrule,
393
+ .token.attr-value {
394
+ color: var(--dark-color);
395
+ }
396
+
397
+ .token.atrule,
398
+ .token.keyword {
399
+ font-weight: 500;
400
+ }
401
+
402
+ .token.function,
403
+ .token.class-name {
404
+ color: var(--pink-color);
405
+ }
406
+
407
+ .token.regex,
408
+ .token.important,
409
+ .token.variable {
410
+ color: var(--pink-color);
411
+ }
412
+
413
+ .token.important,
414
+ .token.bold {
415
+ font-weight: bold;
416
+ }
417
+
418
+ .token.italic {
419
+ font-style: italic;
420
+ }
421
+
422
+ .token.entity {
423
+ cursor: help;
424
+ }
425
+ `,p8=e=>{const n={};return Object.entries(e).forEach(([i,o])=>{o!==void 0&&(n[`$${i}`]=o)}),E.jsx(f8,{...n})};const h8=[...We,...Wt],v8=se({qa:"Footer","data-id":"Footer",styles:{gridArea:"footer",display:"block",flow:"column"}}),m8=b.forwardRef(function(n,i){n=dr(n,"footer");const o=Pe(n,h8);return E.jsx(v8,{...Be(n,{eventProps:!0}),ref:i,styles:o})});const g8={label:"Ok",type:"primary"},y8={label:"Cancel"};function x8(e,n){const{onClose:i}=Mg(),{danger:o,actions:s,title:u,styles:c,noActions:d,content:v,...h}=e;let{confirm:m,secondary:g,cancel:x}=s??{};return m=m!==!1?{...g8,...typeof m=="object"?m:null}:void 0,x=x?{...y8,...typeof x=="object"?x:null}:void 0,E.jsxs(i8,{ref:n,role:"alertdialog",isDismissable:!1,...h,children:[u?E.jsx(BE,{children:E.jsx(Ov,{children:u})}):null,v?E.jsx(NE,{children:typeof v=="string"?E.jsx(Wc,{children:v}):v}):null,d?null:E.jsx(m8,{children:E.jsxs(id,{align:"end",children:[E.jsx(lo,{autoFocus:!0,theme:o?"danger":void 0,...m,onPress:w=>Zl(m?.onPress?.(w),i?.("confirm"))}),g&&E.jsx(lo,{...g,onPress:w=>Zl(g?.onPress?.(w),i?.("secondary"))}),x&&E.jsx(lo,{...x,onPress:w=>Zl(x?.onPress?.(w),i?.("cancel"))})]})})]})}const b8=b.forwardRef(x8);const G0="AlertDialogZone";function w8(e){const{openedDialog:n}=e;if(n===null)return E.jsx(us,{},G0);const{type:i,isDismissable:o=!0,actions:s,onDismiss:u,content:c,...d}=n.props,{resolve:v,reject:h,isVisible:m,dialogType:g}=n.meta,x=(()=>{const w=($,S)=>{if(typeof $>"u")return;if(typeof $=="boolean")return $?{onPress:()=>v(S)}:!1;const k=$.onPress;return{...$,onPress:A=>{k?.(A),v(S)}}};return typeof s>"u"?{}:{confirm:w(s.confirm,"confirm"),secondary:w(s.secondary,"secondary"),cancel:w(s.cancel,"cancel")}})();return E.jsx(us,{children:E.jsx(uE,{isOpen:m,isDismissable:o,type:i,onDismiss:u,children:E.jsx(b8,{noActions:g==="form",actions:x,isHidden:!m,content:typeof c=="function"?c({resolve:v,reject:h}):c,...d})})},G0)}const S8=b.createContext(null);function E8(e){const[n,i]=b.useState(null),o=b.useRef(0),s=b.useMemo(()=>({open:(u,c={})=>{const{onDismiss:d,...v}=u,{cancelToken:h}=c,m=++o.current,g={props:null,meta:{id:m,isClosed:!1,isVisible:!0}},x=()=>{g.meta.isClosed||(g.meta.isClosed=!0,c.cancelToken?.removeEventListener("abort",x),i(w=>w?.meta.id!==m?w:{props:w.props,meta:{...w.meta,isVisible:!1}}),setTimeout(()=>i(w=>w?.meta.id!==m?w:null),300))};return h?.aborted?new Promise(()=>{}):(h?.addEventListener("abort",x,{once:!0}),g.meta.promise=new Promise((w,$)=>{g.meta.resolve=S=>{x(),w(S)},g.meta.reject=S=>{x(),$(S)}}),g.props={...v,onDismiss:w=>{d?.(w),g.meta.reject(void 0)}},i(w=>w!==null?(g.meta.reject(new Error("Another dialog is already opened. It's a bad practice to open more than one <AlertDialog /> at the same time")),w):g),g.meta.promise)}}),[]);return E.jsxs(S8.Provider,{value:s,children:[E.jsx(w8,{openedDialog:n}),e.children]})}const $8=se({id:"cube-ui-kit-root",className:"root"}),P8={display:"block",preset:"t3",...Object.keys(po).reduce((e,n)=>(e[`@${n}`]=po[n],e),{})},C8=[...Mn,...vo],oc=typeof CSS<"u"&&typeof CSS?.supports=="function"?CSS.supports("height: 100dvh"):!1;function s$(e){let{children:n,bodyStyles:i,fontDisplay:o="swap",fonts:s,publicUrl:u,router:c,font:d,monospaceFont:v,applyLegacyTokens:h,tracking:m,...g}=e;const x=b.useRef(null),[w,$]=b.useState();let S=Ax({isDisabled:oc}),[k,A]=b.useState(oc?void 0:S.height),I=b.useRef();b.useEffect(()=>{oc&&typeof window<"u"||(I.current&&clearTimeout(I.current),S.height<(k||0)&&S.height<window.innerHeight?I.current=setTimeout(()=>{A(S.height)},500):A(S.height))},[k,S.height]),b.useEffect(()=>{w||$(x?.current)},[]);const R=Pe(g,C8,P8);return E.jsx(rd,{router:c,root:w,children:E.jsx(k4,{event:m?.event,children:E.jsx(d2,{children:E.jsxs($8,{ref:x,"data-font-display":o,...Be(g,{eventProps:!0}),styles:R,style:{"--cube-dynamic-viewport-height":k?k+"px":"100dvh"},children:[E.jsx(p8,{bodyStyles:i,applyLegacyTokens:h,publicUrl:u,fonts:s,font:d,monospaceFont:v,fontDisplay:o}),E.jsx(i4,{children:E.jsx(y3,{value:x,children:E.jsx(ZS,{rootRef:x,children:E.jsx(E8,{children:n})})})})]})})})})}const T8=se({styles:{gridArea:"divider",display:{"":"block",text:"grid"},gridColumns:"1fr auto 1fr",placeItems:"center stretch",gap:"1x",preset:"c1",height:{"":"1bw 1bw",text:"auto"},fill:{"":"#border",text:"none"},border:"0",margin:"0",Line:{height:"1bw 1bw",fill:"#border"}},styleProps:[...mo,...Mn,...hs]}),a$=b.forwardRef(function(n,i){const{mods:o,children:s,styles:u,...c}=dr(n,"divider");return E.jsx(T8,{as:s?"div":"hr",role:s?"separator":void 0,mods:{text:!!s,...o},...Be(c,{eventProps:!0}),ref:i,styles:u,children:s&&E.jsxs(E.Fragment,{children:[E.jsx("div",{"data-element":"Line"}),E.jsx("div",{children:s}),E.jsx("div",{"data-element":"Line"})]})})}),k8="modulepreload",I8=function(e){return"/vizard/"+e},Z0={},u$=function(n,i,o){let s=Promise.resolve();if(i&&i.length>0){let v=function(h){return Promise.all(h.map(m=>Promise.resolve(m).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),d=c?.nonce||c?.getAttribute("nonce");s=v(i.map(h=>{if(h=I8(h),h in Z0)return;Z0[h]=!0;const m=h.endsWith(".css"),g=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${g}`))return;const x=document.createElement("link");if(x.rel=m?"stylesheet":k8,m||(x.as="script"),x.crossOrigin="",x.href=h,d&&x.setAttribute("nonce",d),document.head.appendChild(x),m)return new Promise((w,$)=>{x.addEventListener("load",w),x.addEventListener("error",()=>$(new Error(`Unable to preload CSS for ${h}`)))})}))}function u(c){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=c,window.dispatchEvent(d),!d.defaultPrevented)throw c}return s.then(c=>{for(const d of c||[])d.status==="rejected"&&u(d.reason);return n().catch(u)})};const u1=ho.input`
426
+ &&&&& {
427
+ display: block;
428
+ font-family: inherit;
429
+ font-size: 100%;
430
+ line-height: 1.15;
431
+ margin: 0;
432
+ overflow: visible;
433
+ box-sizing: border-box;
434
+ padding: 0;
435
+ position: absolute;
436
+ top: 0;
437
+ right: 0;
438
+ left: 0;
439
+ bottom: 0;
440
+ opacity: 0.0001;
441
+ z-index: 1;
442
+ width: 100%;
443
+ height: 100%;
444
+ cursor: ${({$isButton:e})=>e?"pointer":"default"};
445
+ }
446
+ `;const c1=b.createContext(null);const L8=se({qa:"CheckboxGroup",styles:{display:"flex",placeItems:"start",placeContent:"start",flow:{"":"column",horizontal:"row wrap"},gap:{"":"1x",horizontal:"1x 2x"}}});function R8(e,n){e=dE(e),e=hr(e),e=ai(e),e=ks(e,{defaultValidationTrigger:"onChange",valuePropsMapper:({value:C,onChange:U})=>({value:C??[],onChange:U})});let{isDisabled:i,isRequired:o,necessityIndicator:s,necessityLabel:u,label:c,extra:d,validationState:v,children:h,orientation:m="vertical",message:g,description:x,labelStyles:w,tooltip:$,labelProps:S,labelSuffix:k,inputStyles:A,...I}=e,R=si(n),B=Pe(I,We),_=Zx(e),{labelProps:V}=N6(e,_),W=E.jsx(L8,{styles:A,mods:{horizontal:m==="horizontal"},children:E.jsx(bo.Provider,{value:{isDisabled:i,validationState:v},children:E.jsx(c1.Provider,{value:_,children:h})})});return ud(W,R,{...e,children:null,labelProps:qe(S,V),styles:B})}const d1=b.forwardRef(R8);d1.cubeInputType="CheckboxGroup";function _8(){return E.jsx("svg",{width:"10",height:"8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M3.417 7.604l-.017.018-3.4-3.4 1.433-1.433 1.985 1.985L8.192 0l1.432 1.433-6.189 6.189-.018-.018z",fill:"currentColor"})})}function M8(){return E.jsx("svg",{width:"8",height:"2",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M0 .044v2.001l.026.025h8.063V.044H0z",fill:"#fff"})})}const q0=se({as:"label",qa:"CheckboxWrapper",styles:{position:"relative",display:"flex",placeItems:"center start",placeContent:"baseline",gap:"1x",flow:"row",preset:"default",cursor:"pointer",width:"max max-content"}}),F8=se({qa:"Checkbox",styles:{display:"grid",placeItems:"center",radius:".5r",fill:{"":"#white","checked | indeterminate":"#purple-text","invalid & !checked":"#white","invalid & checked":"#danger-text",disabled:"#dark.12"},color:{"":"#white","disabled & !checked & !indeterminate":"#clear"},border:{"":"#dark.30",invalid:"#danger-text.50","disabled | ((indeterminate | checked) & !invalid)":"#clear"},width:"(2x - 2bw)",height:"(2x - 2bw)",outline:{"":"#purple-03.0",focused:"#purple-03"},transition:"theme"}});function A8(e,n){let i=b.useContext(c1);e=fE(e);let o=e;e=hr(e),e=ai(e),e=ks(e,{defaultValidationTrigger:"onChange",valuePropsMapper:({value:j,onChange:ue})=>({isSelected:j??!1,isIndeterminate:!1,onChange:ue}),unsafe__isDisabled:!!i});let{qa:s,isIndeterminate:u=!1,isDisabled:c=!1,insideForm:d,isRequired:v,children:h,label:m,validationState:g,labelProps:x,labelStyles:w,labelPosition:$,inputStyles:S,isHidden:k,...A}=e,I=Pe(e,mo);S=Pe(e,vo,S),w=b.useMemo(()=>({...d?Fg:ad,...w}),[d,w]);let{isFocused:R,focusProps:B}=Ps({isDisabled:c},!0),{hoverProps:_,isHovered:V}=Fn({isDisabled:c}),W=b.useRef(null),C=$s(n,W);const U=jv(e);let{inputProps:O}=i?D6({...e,value:e.value||"",isRequired:o.isRequired,validationState:o.validationState},i,W):Rm({...e,...typeof m=="string"&&m.trim()?{"aria-label":m}:{}},U,W),H=u?E.jsx(M8,{}):E.jsx(_8,{});if(i){for(let j of["isSelected","defaultSelected","isEmphasized"])o[j]!=null&&console.warn(`CubeUIKit: ${j} is unsupported on individual <Checkbox> elements within a <CheckboxGroup>. Please apply these props to the group instead.`);e.value==null&&console.warn("CubeUIKit: A <Checkbox> element within a <CheckboxGroup> requires a `value` property.")}const ne={checked:O.checked,indeterminate:u,invalid:g==="invalid",valid:g==="valid",disabled:c,hovered:V,focused:R,"side-label":$==="side","inside-form":d},D=E.jsxs(q0,{isHidden:k,mods:ne,styles:{position:"relative"},children:[E.jsx(u1,{"data-qa":"HiddenInput",...qe(O,B),ref:W}),E.jsx(F8,{qa:s||"Checkbox",mods:ne,styles:S,children:H}),h&&E.jsx(Kc,{nowrap:!0,children:h})]});return d&&!i?ud(D,C,{...e,children:null,labelStyles:w,styles:I}):E.jsxs(q0,{as:"label",styles:I,isHidden:k,..._,...Be(A),ref:C,children:[D,m?E.jsx(Rv,{styles:w,mods:{invalid:g==="invalid",valid:g==="valid",disabled:c},...Be(x),children:m}):null]})}let f1=b.forwardRef(A8);f1.cubeInputType="Checkbox";let c$=Object.assign(f1,{Group:d1});const p1=b.createContext(null);function N8(){return b.useContext(p1)}const D8=se({qa:"RadioGroup",styles:{display:"flex",placeItems:"start",placeContent:"start",flow:{"":"column",horizontal:"row wrap","horizontal & solid":"row"},gap:{"":"1x",solid:0},whiteSpace:"nowrap"}});function O8(e,n){e=cE(e),e=hr(e),e=ai(e),e=ks(e,{defaultValidationTrigger:"onChange"});let{isDisabled:i,isRequired:o,labelPosition:s="top",validationState:u,children:c,orientation:d,styles:v,groupStyles:h,insideForm:m,labelProps:g,isSolid:x,...w}=e,$=si(n);v=Pe(w,mo,v),h=Pe(w,vo,h);let S=vb(e);d==null&&(d=x?"horizontal":"vertical");let{labelProps:k}=y4(e,S),A=E.jsx(D8,{styles:h,mods:{horizontal:d==="horizontal","inside-form":m,"side-label":s==="side",solid:!!x},children:E.jsx(bo.Provider,{value:{isRequired:o,validationState:u,isDisabled:i},children:E.jsx(p1.Provider,{value:{state:S,name:e.name,isSolid:x},children:c})})});return ud(A,$,{...e,children:null,labelProps:qe(g,k),styles:v})}const Sd=b.forwardRef(O8);Sd.cubeInputType="RadioGroup";const B8=se({as:"label",qa:"RadioWrapper",styles:{position:"relative",display:"grid",placeItems:"center start",gap:"1x",flow:"column",preset:"default",width:"min-content",margin:{"":"1x right",'[data-type="button"]':"0"},zIndex:{"":"initial",checked:1},Input:{radius:{"":"round",button:!0,"button & solid":0,"button & solid & :first-child":"1r 0 0 1r","button & solid & :last-child":"0 1r 1r 0"},margin:{"":"initial","button & solid":"-1bw right","button & solid & :last-child":0}}}}),H8=se({styles:{fill:{"":"#white",hovered:"#purple-text.04",checked:"#white",disabled:"#dark.04"},color:{"":"#dark.85",invalid:"#danger-text",disabled:"#dark.40"},preset:"t3m",border:{"":"#dark-05",checked:"#purple-text","invalid & checked":"#danger-text","disabled & checked":"#dark.40",disabled:"#dark-05"},padding:"(.75x - 1bw) (1.5x - 1bw)",cursor:"pointer",opacity:{"":1,disabled:.5},outline:{"":"#purple-03.0",focused:"#purple-03"},transition:"theme"}}),j8=se({styles:{display:"grid",placeItems:"center",radius:"round",fill:{"":"#white",disabled:"#dark.04"},color:{checked:"#purple-text","invalid & checked":"#danger-text","disabled | !checked":"#clear","disabled & checked":"#dark.12"},border:{"":"#dark.30",checked:"#purple-text",invalid:"#danger-text.50",disabled:"#dark.12"},width:"2x",height:"2x",outline:{"":"#purple-03.0",focused:"#purple-03"},transition:"theme",RadioCircle:{display:"block",radius:"round",width:"1x",height:"1x",fill:"currentColor"}}}),V8=E.jsx("div",{"data-element":"RadioCircle"}),z8=se({qa:"RadioLabel",styles:ad});function U8(e,n){e=hr(e),e=ai(e),e=ks(e,{defaultValidationTrigger:"onChange"});let{qa:i,isDisabled:o,validationState:s,children:u,label:c,autoFocus:d,labelStyles:v,labelProps:h,inputStyles:m,type:g="radio","aria-label":x,...w}=e,$=g==="button";c=c||u;let S=Pe(w,mo);const k=$?H8:j8;v={...ad,...v};let A=N8(),I=A&&A.state,R=A&&A.name,B=A&&A.isSolid||!1;if(!I)throw new Error("CubeUI: The Radio button is used outside the RadioGroup.");let{isFocused:_,focusProps:V}=Ps({isDisabled:o},!0),{hoverProps:W,isHovered:C}=Fn({isDisabled:o}),U=b.useRef(null),O=$s(n,U),{inputProps:H,isDisabled:ne,isSelected:D}=g4({name:R,...e,isDisabled:o},I,U);const j=b.useMemo(()=>({checked:D,invalid:s==="invalid",valid:s==="valid",disabled:ne,hovered:C,button:$,focused:_,solid:B}),[D,s,ne,C,$,_,B]);return E.jsxs(B8,{styles:S,...W,ref:O,mods:j,"data-type":g,children:[E.jsx(u1,{"data-qa":i||"Radio","aria-label":x,...qe(H,V),ref:U,$isButton:$}),E.jsx(k,{"data-element":"Input",mods:j,"data-type":g,styles:m,children:$?u:V8}),c&&!$&&E.jsx(z8,{mods:j,styles:v,...Be(h),children:c})]})}function K8(e,n){const i=h1;return E.jsx(i,{...e,ref:n,type:"button"})}const h1=b.forwardRef(U8),W8=b.forwardRef(K8),G8=se(Sd,{isSolid:!0}),d$=Object.assign(h1,{Group:Sd,Button:W8,ButtonGroup:G8});export{Q8 as A,J8 as B,e$ as D,l$ as F,o$ as G,t$ as L,n$ as P,s$ as R,Eg as S,r$ as T,u$ as _,Y8 as a,lo as b,hE as c,bb as d,i$ as e,d$ as f,_E as g,a$ as h,c$ as i,E as j,X8 as k,se as t,Sg as u};