@narmi/design_system 6.5.2 → 6.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/style.css.map +1 -1
- package/dist/tokens/css/rgbColors.css +1 -1
- package/dist/tokens/css/rgbColors.scss +1 -1
- package/dist/tokens/css/tokens.css +2 -2
- package/dist/tokens/css/tokens.scss +2 -2
- package/dist/tokens/js/colors.esm.js +1 -1
- package/dist/tokens/js/colors.js +1 -1
- package/dist/tokens/js/manifest.esm.js +2 -2
- package/dist/tokens/js/manifest.js +2 -2
- package/dist/tokens/js/reactNativeWeb.js +2 -2
- package/dist/tokens/json/tokens.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -72,7 +72,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
72
72
|
* LICENSE file in the root directory of this source tree.
|
|
73
73
|
*/var rc;function Sm(){return rc||(rc=1,process.env.NODE_ENV!=="production"&&function(){var n=60103,t=60106,e=60107,r=60108,i=60114,o=60109,s=60110,a=60112,l=60113,u=60120,d=60115,f=60116,h=60121,p=60122,m=60117,v=60129,y=60131;if(typeof Symbol=="function"&&Symbol.for){var x=Symbol.for;n=x("react.element"),t=x("react.portal"),e=x("react.fragment"),r=x("react.strict_mode"),i=x("react.profiler"),o=x("react.provider"),s=x("react.context"),a=x("react.forward_ref"),l=x("react.suspense"),u=x("react.suspense_list"),d=x("react.memo"),f=x("react.lazy"),h=x("react.block"),p=x("react.server.block"),m=x("react.fundamental"),x("react.scope"),x("react.opaque.id"),v=x("react.debug_trace_mode"),x("react.offscreen"),y=x("react.legacy_hidden")}var g=!1;function M(te){return!!(typeof te=="string"||typeof te=="function"||te===e||te===i||te===v||te===r||te===l||te===u||te===y||g||typeof te=="object"&&te!==null&&(te.$$typeof===f||te.$$typeof===d||te.$$typeof===o||te.$$typeof===s||te.$$typeof===a||te.$$typeof===m||te.$$typeof===h||te[0]===p))}function b(te){if(typeof te=="object"&&te!==null){var Y=te.$$typeof;switch(Y){case n:var fe=te.type;switch(fe){case e:case i:case r:case l:case u:return fe;default:var re=fe&&fe.$$typeof;switch(re){case s:case a:case f:case d:case o:return re;default:return Y}}case t:return Y}}}var E=s,w=o,z=n,A=a,C=e,H=f,I=d,L=t,F=i,$=r,X=l,_=!1,B=!1;function W(te){return _||(_=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function N(te){return B||(B=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function T(te){return b(te)===s}function O(te){return b(te)===o}function k(te){return typeof te=="object"&&te!==null&&te.$$typeof===n}function V(te){return b(te)===a}function U(te){return b(te)===e}function G(te){return b(te)===f}function R(te){return b(te)===d}function ee(te){return b(te)===t}function Z(te){return b(te)===i}function D(te){return b(te)===r}function oe(te){return b(te)===l}ze.ContextConsumer=E,ze.ContextProvider=w,ze.Element=z,ze.ForwardRef=A,ze.Fragment=C,ze.Lazy=H,ze.Memo=I,ze.Portal=L,ze.Profiler=F,ze.StrictMode=$,ze.Suspense=X,ze.isAsyncMode=W,ze.isConcurrentMode=N,ze.isContextConsumer=T,ze.isContextProvider=O,ze.isElement=k,ze.isForwardRef=V,ze.isFragment=U,ze.isLazy=G,ze.isMemo=R,ze.isPortal=ee,ze.isProfiler=Z,ze.isStrictMode=D,ze.isSuspense=oe,ze.isValidElementType=M,ze.typeOf=b}()),ze}var ic;function Cm(){return ic||(ic=1,process.env.NODE_ENV==="production"?On.exports=wm():On.exports=Sm()),On.exports}var l4,oc;function Pm(){if(oc)return l4;oc=1;var n=Tn(),t=Ct(),e=U9(),r=n.boolean,i=n.number,o=n.spaceSeparated,s=n.commaSeparated,a=n.commaOrSpaceSeparated;return l4=t({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:e,properties:{about:a,accentHeight:i,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:i,amplitude:i,arabicForm:null,ascent:i,attributeName:null,attributeType:null,azimuth:i,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:i,by:null,calcMode:null,capHeight:i,className:o,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:i,diffuseConstant:i,direction:null,display:null,dur:null,divisor:i,dominantBaseline:null,download:r,dx:null,dy:null,edgeMode:null,editable:null,elevation:i,enableBackground:null,end:null,event:null,exponent:i,externalResourcesRequired:null,fill:null,fillOpacity:i,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:s,g2:s,glyphName:s,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:i,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:i,horizOriginX:i,horizOriginY:i,id:null,ideographic:i,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:i,k:i,k1:i,k2:i,k3:i,k4:i,kernelMatrix:a,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:i,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:i,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:i,overlineThickness:i,paintOrder:null,panose1:null,path:null,pathLength:i,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:o,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:i,pointsAtY:i,pointsAtZ:i,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:a,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:a,rev:a,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:a,requiredFeatures:a,requiredFonts:a,requiredFormats:a,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:i,specularExponent:i,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:i,strikethroughThickness:i,string:null,stroke:null,strokeDashArray:a,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:i,strokeOpacity:i,strokeWidth:null,style:null,surfaceScale:i,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:a,tabIndex:i,tableValues:null,target:null,targetX:i,targetY:i,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:a,to:null,transform:null,u1:null,u2:null,underlinePosition:i,underlineThickness:i,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:i,values:null,vAlphabetic:i,vMathematical:i,vectorEffect:null,vHanging:i,vIdeographic:i,version:null,vertAdvY:i,vertOriginX:i,vertOriginY:i,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:i,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),l4}var c4,sc;function km(){if(sc)return c4;sc=1;var n=T9(),t=H9(),e=q9(),r=G9(),i=J9(),o=Pm();return c4=n([e,t,r,i,o]),c4}var u4,ac;function zm(){if(ac)return u4;ac=1;var n=O9(),t=L9(),e=N9(),r="data";u4=a;var i=/^data[-\w.:]+$/i,o=/-[a-z]/g,s=/[A-Z]/g;function a(h,p){var m=n(p),v=p,y=e;return m in h.normal?h.property[h.normal[m]]:(m.length>4&&m.slice(0,4)===r&&i.test(p)&&(p.charAt(4)==="-"?v=l(p):p=u(p),y=t),new y(v,p))}function l(h){var p=h.slice(5).replace(o,f);return r+p.charAt(0).toUpperCase()+p.slice(1)}function u(h){var p=h.slice(4);return o.test(p)?h:(p=p.replace(s,d),p.charAt(0)!=="-"&&(p="-"+p),r+p)}function d(h){return"-"+h.toLowerCase()}function f(h){return h.charAt(1).toUpperCase()}return u4}const $m={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var _n={},lc;function Tm(){if(lc)return _n;lc=1,_n.parse=r,_n.stringify=i;var n="",t=" ",e=/[ \t\n\r\f]+/g;function r(o){var s=String(o||n).trim();return s===n?[]:s.split(e)}function i(o){return o.join(t).trim()}return _n}var Nn={},cc;function Dm(){if(cc)return Nn;cc=1,Nn.parse=r,Nn.stringify=i;var n=",",t=" ",e="";function r(o){for(var s=[],a=String(o||e),l=a.indexOf(n),u=0,d=!1,f;!d;)l===-1&&(l=a.length,d=!0),f=a.slice(u,l).trim(),(f||!d)&&s.push(f),u=l+1,l=a.indexOf(n,u);return s}function i(o,s){var a=s||{},l=a.padLeft===!1?e:t,u=a.padRight?t:e;return o[o.length-1]===e&&(o=o.concat(e)),o.join(u+n+l).trim()}return Nn}var d4,uc;function Om(){if(uc)return d4;uc=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,e=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,a=/^\s+|\s+$/g,l=`
|
|
74
74
|
`,u="/",d="*",f="",h="comment",p="declaration";d4=function(v,y){if(typeof v!="string")throw new TypeError("First argument must be a string");if(!v)return[];y=y||{};var x=1,g=1;function M(F){var $=F.match(t);$&&(x+=$.length);var X=F.lastIndexOf(l);g=~X?F.length-X:g+F.length}function b(){var F={line:x,column:g};return function($){return $.position=new E(F),A(),$}}function E(F){this.start=F,this.end={line:x,column:g},this.source=y.source}E.prototype.content=v;function w(F){var $=new Error(y.source+":"+x+":"+g+": "+F);if($.reason=F,$.filename=y.source,$.line=x,$.column=g,$.source=v,!y.silent)throw $}function z(F){var $=F.exec(v);if($){var X=$[0];return M(X),v=v.slice(X.length),$}}function A(){z(e)}function C(F){var $;for(F=F||[];$=H();)$!==!1&&F.push($);return F}function H(){var F=b();if(!(u!=v.charAt(0)||d!=v.charAt(1))){for(var $=2;f!=v.charAt($)&&(d!=v.charAt($)||u!=v.charAt($+1));)++$;if($+=2,f===v.charAt($-1))return w("End of comment missing");var X=v.slice(2,$-2);return g+=2,M(X),v=v.slice($),g+=2,F({type:h,comment:X})}}function I(){var F=b(),$=z(r);if($){if(H(),!z(i))return w("property missing ':'");var X=z(o),_=F({type:p,property:m($[0].replace(n,f)),value:X?m(X[0].replace(n,f)):f});return z(s),_}}function L(){var F=[];C(F);for(var $;$=I();)$!==!1&&(F.push($),C(F));return F}return A(),L()};function m(v){return v?v.replace(a,f):f}return d4}var f4,dc;function _m(){if(dc)return f4;dc=1;var n=Om();function t(e,r){var i=null;if(!e||typeof e!="string")return i;for(var o,s=n(e),a=typeof r=="function",l,u,d=0,f=s.length;d<f;d++)o=s[d],l=o.property,u=o.value,a?r(l,u,o):u&&(i||(i={}),i[l]=u);return i}return f4=t,f4}var fc;function Nm(){if(fc)return Dn;fc=1;const n=c,t=Cm(),e=km(),r=zm(),i=$m,o=Tm(),s=Dm(),a=_m();Dn.hastToReact=f,Dn.hastChildrenToReact=d;const l={}.hasOwnProperty,u=new Set(["table","thead","tbody","tfoot","tr"]);function d(g,M){const b=[];let E=-1,w;for(;++E<M.children.length;)w=M.children[E],w.type==="element"?b.push(f(g,w,E,M)):w.type==="text"?(M.type!=="element"||!u.has(M.tagName)||w.value!==`
|
|
75
|
-
`)&&b.push(w.value):w.type==="raw"&&!g.options.skipHtml&&b.push(w.value);return b}function f(g,M,b,E){const w=g.options,z=g.schema,A=M.tagName,C={};let H=z,I;if(z.space==="html"&&A==="svg"&&(H=e,g.schema=H),M.properties)for(I in M.properties)l.call(M.properties,I)&&m(C,I,M.properties[I],g);(A==="ol"||A==="ul")&&g.listDepth++;const L=d(g,M);(A==="ol"||A==="ul")&&g.listDepth--,g.schema=z;const F=M.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},$=w.components&&l.call(w.components,A)?w.components[A]:A,X=typeof $=="string"||$===n.Fragment;if(!t.isValidElementType($))throw new TypeError(`Component for name \`${A}\` not defined or is not renderable`);if(C.key=[A,F.start.line,F.start.column,b].join("-"),A==="a"&&w.linkTarget&&(C.target=typeof w.linkTarget=="function"?w.linkTarget(C.href,M.children,C.title):w.linkTarget),A==="a"&&w.transformLinkUri&&(C.href=w.transformLinkUri(C.href,M.children,C.title)),!X&&A==="code"&&E.type==="element"&&E.tagName!=="pre"&&(C.inline=!0),!X&&(A==="h1"||A==="h2"||A==="h3"||A==="h4"||A==="h5"||A==="h6")&&(C.level=parseInt(A.charAt(1),10)),A==="img"&&w.transformImageUri&&(C.src=w.transformImageUri(C.src,C.alt,C.title)),!X&&A==="li"&&E.type==="element"){const _=h(M);C.checked=_&&_.properties?!!_.properties.checked:null,C.index=p(E,M),C.ordered=E.tagName==="ol"}return!X&&(A==="ol"||A==="ul")&&(C.ordered=A==="ol",C.depth=g.listDepth),(A==="td"||A==="th")&&(C.align&&(C.style||(C.style={}),C.style.textAlign=C.align,delete C.align),X||(C.isHeader=A==="th")),!X&&A==="tr"&&E.type==="element"&&(C.isHeader=E.tagName==="thead"),w.sourcePos&&(C["data-sourcepos"]=x(F)),!X&&w.rawSourcePos&&(C.sourcePosition=M.position),!X&&w.includeElementIndex&&(C.index=p(E,M),C.siblingCount=p(E)),X||(C.node=M),L.length>0?n.createElement($,C,L):n.createElement($,C)}function h(g){let M=-1;for(;++M<g.children.length;){const b=g.children[M];if(b.type==="element"&&b.tagName==="input")return b}return null}function p(g,M){let b=-1,E=0;for(;++b<g.children.length&&g.children[b]!==M;)g.children[b].type==="element"&&E++;return E}function m(g,M,b,E){const w=r(E.schema,M);let z=b;z==null||z!==z||(z&&typeof z=="object"&&"length"in z&&(z=(w.commaSeparated?s:o).stringify(z)),w.property==="style"&&typeof z=="string"&&(z=v(z)),w.space&&w.property?g[l.call(i,w.property)?i[w.property]:w.property]=z:w.attribute&&(g[w.attribute]=z))}function v(g){const M={};try{a(g,b)}catch{}return M;function b(E,w){const z=E.slice(0,4)==="-ms-"?`ms-${E.slice(4)}`:E;M[z.replace(/-([a-z])/g,y)]=w}}function y(g,M){return M.toUpperCase()}function x(g){return[g.start.line,":",g.start.column,"-",g.end.line,":",g.end.column].map(M=>String(M)).join("")}return Dn}var p4,pc;function Am(){if(pc)return p4;pc=1;const n=c,t=R7(),e=Jh(),r=qv(),i=ym(),o=M0(),s=Mm(),a=Em(),l=Im(),u=Nm().hastChildrenToReact;p4=p;const d={}.hasOwnProperty,f="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",h={renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function p(m){for(const M in h)if(d.call(h,M)&&d.call(m,M)){const b=h[M];console.warn(`[react-markdown] Warning: please ${b.to?`use \`${b.to}\` instead of`:"remove"} \`${M}\` (see <${f}#${b.id}> for more info)`),delete h[M]}const v=e().use(r).use(m.remarkPlugins||m.plugins||[]).use(i,{allowDangerousHtml:!0}).use(m.rehypePlugins||[]).use(a,m);let y;typeof m.children=="string"?y=t(m.children):(m.children!==void 0&&m.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${m.children}\`)`),y=t());const x=v.runSync(v.parse(y),y);if(x.type!=="root")throw new TypeError("Expected a `root` node");let g=n.createElement(n.Fragment,{},u({options:m,schema:s,listDepth:0},x));return m.className&&(g=n.createElement("div",{className:m.className},g)),g}return p.defaultProps={transformLinkUri:l},p.propTypes={children:o.string,className:o.string,allowElement:o.func,allowedElements:o.arrayOf(o.string),disallowedElements:o.arrayOf(o.string),unwrapDisallowed:o.bool,remarkPlugins:o.arrayOf(o.oneOfType([o.object,o.func,o.arrayOf(o.oneOfType([o.object,o.func]))])),rehypePlugins:o.arrayOf(o.oneOfType([o.object,o.func,o.arrayOf(o.oneOfType([o.object,o.func]))])),sourcePos:o.bool,rawSourcePos:o.bool,skipHtml:o.bool,includeElementIndex:o.bool,transformLinkUri:o.oneOfType([o.func,o.bool]),linkTarget:o.oneOfType([o.func,o.string]),transformImageUri:o.func,components:o.object},p.uriTransformer=l,p4}var Fm=Am();const Lm=l0(Fm),m6=({isDisabled:n=!1,children:t})=>c.createElement("div",{className:ae(["nds-disabledShim",{"nds-disabledShim--disabled":n}]),"aria-disabled":n?"true":"false"},t);function h4(){return h4=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)({}).hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},h4.apply(null,arguments)}const Km=({label:n,markdownLabel:t,onChange:e=()=>{},id:r,name:i,defaultChecked:o,checked:s,disabled:a=!1,isDisabled:l=!1,indeterminate:u=!1,value:d,hasError:f,error:h,kind:p="normal",testId:m,...v})=>{const y=l||a,x=c.useRef(null),g=s!==void 0,[M,b]=c.useState(g?s:o||!1),[E,w]=c.useState(!1),z=p==="card",A=({href:L,children:F})=>c.createElement("a",{href:L,target:"_blank",rel:"noreferrer"},F);c.useEffect(()=>{g&&b(s),x.current&&(x.current.indeterminate=u)},[s,u]);const C=L=>{g||b(F=>!F),e(L)},H=()=>{w(!0)},I=()=>{w(!1)};return c.createElement("div",{className:`nds-checkbox-container nds-checkbox-container--${p}`},c.createElement(m6,{isDisabled:y&&p==="card"},c.createElement("label",{className:ae([`nds-checkbox nds-checkbox--${p}`,"fontWeight--default",{"nds-checkbox--checked":M||u,"nds-checkbox--disabled":y,"nds-checkbox--focused":E,"padding--y--xl padding--x rounded--all border--all":z}])},c.createElement("span",{className:ae([{"narmi-icon-check":!u,"narmi-icon-minus":u,error:f||!!h}])}),c.createElement("div",{className:"nds-checkbox-label"},t&&c.createElement(Lm,{components:{a:function({href:L,children:F}){return A({href:L,children:F})}}},t),!t&&c.createElement(c.Fragment,null,n)),c.createElement("input",h4({ref:x,onFocus:H,onBlur:I,onChange:C,checked:M,defaultChecked:o,disabled:y,name:i,id:r&&r.toString(),value:d,"data-testid":m},v,{type:"checkbox"})))),c.createElement(O1,{marginTop:"xs",error:h}))},hc=({value:n,kind:t="theme"})=>c.createElement("div",{role:"status",className:ae(["nds-count",`nds-count--${t}`])},n),Bm=({label:n,kind:t="primary",count:e,onDismiss:r,onClick:i,startIcon:o,endIcon:s,hasBorder:a=!1})=>{const l=typeof i=="function",u=!l&&typeof r=="function",d=t==="primary"||t==="secondary"?"theme":t;return c.createElement(It,{elementType:l?"button":"div",onClick:l?i:void 0,type:l?"button":void 0,className:ae(["nds-chip","fontSize--s",`nds-chip--${t}`,`fontColor--${t}`,{"button--reset":l,"nds-chip--button":l,"nds-chip--hasBorder":a}])},c.createElement(ce,{alignItems:"center",gapSize:"xs"},o&&c.createElement(ce.Item,{shrink:!0},c.createElement("span",{className:ae(["nds-chip-icon",`narmi-icon-${o}`])})),c.createElement(ce.Item,{shrink:!0},c.createElement("div",{className:"nds-chip-label whiteSpace--truncate"},n)),e&&c.createElement(ce.Item,{shrink:!0},c.createElement(hc,{kind:d,value:e})),s&&c.createElement(ce.Item,{shrink:!0},c.createElement("span",{className:ae(["nds-chip-icon",`narmi-icon-${s}`])})),u&&c.createElement(ce.Item,{shrink:!0},c.createElement("button",{onClick:r,"aria-label":"Remove chip",className:ae(["nds-chip-dismiss","nds-chip-icon","button--reset",`fontColor--${t}`])},c.createElement("span",{className:"narmi-icon-x"})))))};function v4(){return v4=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)({}).hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},v4.apply(null,arguments)}const Hm=({kind:n="plain",paddingSize:t="l",onClick:e=()=>{},isSelected:r=!1,children:i,testId:o,radiusSize:s="s",error:a,isDisabled:l,disabled:u})=>{const d=l??u??!1,f=["toggle","button"].some(v=>n===v),h=f&&n!=="button",p=()=>{const v={};return f&&(v.role="button",v.tabIndex="0",a||(v.onClick=e,v.onKeyUp=y=>{const{key:x}=y;(x==="Enter"||x===" ")&&e(y)})),h&&(v["aria-pressed"]=r),v},m=c.createElement("div",v4({"data-testid":o||"ndsContentCard",className:ae(["nds-contentCard",`nds-contentCard--${n}`,`padding--all--${t}`,`rounded--all--${s} bgColor--white`,{"button--reset":f,"nds-contentCard--error":f&&a,"nds-contentCard--disabled":d}])},p()),i);return c.createElement(c.Fragment,null,f?c.createElement(m6,{isDisabled:d},m):m,a&&c.createElement(O1,{error:a,marginTop:"s"}))},Fe=typeof document<"u"?c.useLayoutEffect:()=>{};var m4;const Vm=(m4=c.useInsertionEffect)!==null&&m4!==void 0?m4:Fe;function Je(n){const t=c.useRef(null);return Vm(()=>{t.current=n},[n]),c.useCallback((...e)=>{const r=t.current;return r?.(...e)},[])}function qm(n){let[t,e]=c.useState(n),r=c.useRef(null),i=Je(()=>{if(!r.current)return;let s=r.current.next();if(s.done){r.current=null;return}t===s.value?i():e(s.value)});Fe(()=>{r.current&&i()});let o=Je(s=>{r.current=s(t),i()});return[t,o]}const An={prefix:String(Math.round(Math.random()*1e10)),current:0},vc=c.createContext(An),jm=c.createContext(!1);let Um=!!(typeof window<"u"&&window.document&&window.document.createElement),g4=new WeakMap;function Wm(n=!1){let t=c.useContext(vc),e=c.useRef(null);if(e.current===null&&!n){var r,i;let o=(i=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(o){let s=g4.get(o);s==null?g4.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==s.state&&(t.current=s.id,g4.delete(o))}e.current=++t.current}return e.current}function Ym(n){let t=c.useContext(vc);t===An&&!Um&&process.env.NODE_ENV!=="production"&&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 e=Wm(!!n),r=t===An&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return n||`${r}-${e}`}function Rm(n){let t=c.useId(),[e]=c.useState(Fn()),r=e||process.env.NODE_ENV==="test"?"react-aria":`react-aria${An.prefix}`;return n||`${r}-${t}`}const Gm=typeof c.useId=="function"?Rm:Ym;function Xm(){return!1}function Jm(){return!0}function Zm(n){return()=>{}}function Fn(){return typeof c.useSyncExternalStore=="function"?c.useSyncExternalStore(Zm,Xm,Jm):c.useContext(jm)}let Qm=!!(typeof window<"u"&&window.document&&window.document.createElement),Pt=new Map,g6;typeof FinalizationRegistry<"u"&&(g6=new FinalizationRegistry(n=>{Pt.delete(n)}));function C1(n){let[t,e]=c.useState(n),r=c.useRef(null),i=Gm(t),o=c.useRef(null);if(g6&&g6.register(o,i),Qm){const s=Pt.get(i);s&&!s.includes(r)?s.push(r):Pt.set(i,[r])}return Fe(()=>{let s=i;return()=>{g6&&g6.unregister(o),Pt.delete(s)}},[i]),c.useEffect(()=>{let s=r.current;return s&&e(s),()=>{s&&(r.current=null)}}),i}function eg(n,t){if(n===t)return n;let e=Pt.get(n);if(e)return e.forEach(i=>i.current=t),t;let r=Pt.get(t);return r?(r.forEach(i=>i.current=n),n):t}function y4(n=[]){let t=C1(),[e,r]=qm(t),i=c.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Fe(i,[t,i,...n]),e}function b4(...n){return(...t)=>{for(let e of n)typeof e=="function"&&e(...t)}}const Pe=n=>{var t;return(t=n?.ownerDocument)!==null&&t!==void 0?t:document},v1=n=>n&&"window"in n&&n.window===n?n:Pe(n).defaultView||window;function tg(n){return n!==null&&typeof n=="object"&&"nodeType"in n&&typeof n.nodeType=="number"}function ng(n){return tg(n)&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in n}let rg=!1;function Ln(){return rg}function Ne(n,t){if(!Ln())return t&&n?n.contains(t):!1;if(!n||!t)return!1;let e=t;for(;e!==null;){if(e===n)return!0;e.tagName==="SLOT"&&e.assignedSlot?e=e.assignedSlot.parentNode:ng(e)?e=e.host:e=e.parentNode}return!1}const Ze=(n=document)=>{var t;if(!Ln())return n.activeElement;let e=n.activeElement;for(;e&&"shadowRoot"in e&&(!((t=e.shadowRoot)===null||t===void 0)&&t.activeElement);)e=e.shadowRoot.activeElement;return e};function Me(n){return Ln()&&n.target.shadowRoot&&n.composedPath?n.composedPath()[0]:n.target}class ig{get currentNode(){return this._currentNode}set currentNode(t){if(!Ne(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const e=[];let r=t,i=t;for(this._currentNode=t;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const s=r,a=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});e.push(a),a.currentNode=i,this._currentSetFor.add(a),r=i=s.host}else r=r.parentNode;const o=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});e.push(o),o.currentNode=i,this._currentSetFor.add(o),this._walkerStack=e}get doc(){return this._doc}firstChild(){let t=this.currentNode,e=this.nextNode();return Ne(t,e)?(e&&(this.currentNode=e),e):(this.currentNode=t,null)}lastChild(){let e=this._walkerStack[0].lastChild();return e&&(this.currentNode=e),e}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var e;let i;if(typeof this.filter=="function"?i=this.filter(t):!((e=this.filter)===null||e===void 0)&&e.acceptNode&&(i=this.filter.acceptNode(t)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let o=this.nextNode();return o&&(this.currentNode=o),o}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const e=t.previousNode();if(e){if(e.shadowRoot){var r;let o;if(typeof this.filter=="function"?o=this.filter(e):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(o=this.filter.acceptNode(e)),o===NodeFilter.FILTER_ACCEPT)return e&&(this.currentNode=e),e;let s=this.lastChild();return s&&(this.currentNode=s),s}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,e,r,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=s=>{if(s.nodeType===Node.ELEMENT_NODE){const l=s.shadowRoot;if(l){const u=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(u),NodeFilter.FILTER_ACCEPT}else{var a;if(typeof this.filter=="function")return this.filter(s);if(!((a=this.filter)===null||a===void 0)&&a.acceptNode)return this.filter.acceptNode(s);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=e,this.filter=i??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=e,this._walkerStack.unshift(t.createTreeWalker(e,r,this._acceptNode));const o=e.shadowRoot;if(o){const s=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(s)}}}function og(n,t,e,r){return Ln()?new ig(n,t,e,r):n.createTreeWalker(t,e,r)}function mc(n){var t,e,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n)){var i=n.length;for(t=0;t<i;t++)n[t]&&(e=mc(n[t]))&&(r&&(r+=" "),r+=e)}else for(e in n)n[e]&&(r&&(r+=" "),r+=e);return r}function sg(){for(var n,t,e=0,r="",i=arguments.length;e<i;e++)(n=arguments[e])&&(t=mc(n))&&(r&&(r+=" "),r+=t);return r}function De(...n){let t={...n[0]};for(let e=1;e<n.length;e++){let r=n[e];for(let i in r){let o=t[i],s=r[i];typeof o=="function"&&typeof s=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=b4(o,s):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof s=="string"?t[i]=sg(o,s):i==="id"&&o&&s?t.id=eg(o,s):t[i]=s!==void 0?s:o}}return t}function gc(...n){return n.length===1&&n[0]?n[0]:t=>{let e=!1;const r=n.map(i=>{const o=yc(i,t);return e||(e=typeof o=="function"),o});if(e)return()=>{r.forEach((i,o)=>{typeof i=="function"?i():yc(n[o],null)})}}}function yc(n,t){if(typeof n=="function")return n(t);n!=null&&(n.current=t)}const ag=new Set(["id"]),lg=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),cg=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),ug=new Set(["dir","lang","hidden","inert","translate"]),bc=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),dg=/^(data-.*)$/;function it(n,t={}){let{labelable:e,isLink:r,global:i,events:o=i,propNames:s}=t,a={};for(const l in n)Object.prototype.hasOwnProperty.call(n,l)&&(ag.has(l)||e&&lg.has(l)||r&&cg.has(l)||i&&ug.has(l)||o&&bc.has(l)||l.endsWith("Capture")&&bc.has(l.slice(0,-7))||s?.has(l)||dg.test(l))&&(a[l]=n[l]);return a}function m1(n){if(fg())n.focus({preventScroll:!0});else{let t=pg(n);n.focus(),hg(t)}}let Kn=null;function fg(){if(Kn==null){Kn=!1;try{document.createElement("div").focus({get preventScroll(){return Kn=!0,!0}})}catch{}}return Kn}function pg(n){let t=n.parentNode,e=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&e.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&e.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),e}function hg(n){for(let{element:t,scrollTop:e,scrollLeft:r}of n)t.scrollTop=e,t.scrollLeft=r}function Bn(n){var t;if(typeof window>"u"||window.navigator==null)return!1;let e=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(e)&&e.some(r=>n.test(r.brand))||n.test(window.navigator.userAgent)}function x4(n){var t;return typeof window<"u"&&window.navigator!=null?n.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function B1(n){if(process.env.NODE_ENV==="test")return n;let t=null;return()=>(t==null&&(t=n()),t)}const ot=B1(function(){return x4(/^Mac/i)}),vg=B1(function(){return x4(/^iPhone/i)}),xc=B1(function(){return x4(/^iPad/i)||ot()&&navigator.maxTouchPoints>1}),M4=B1(function(){return vg()||xc()}),mg=B1(function(){return ot()||M4()}),gg=B1(function(){return Bn(/AppleWebKit/i)&&!Mc()}),Mc=B1(function(){return Bn(/Chrome/i)}),E4=B1(function(){return Bn(/Android/i)}),yg=B1(function(){return Bn(/Firefox/i)}),bg=c.createContext({isNative:!0,open:Eg,useHref:n=>n});function Hn(){return c.useContext(bg)}function xg(n,t){let e=n.getAttribute("target");return(!e||e==="_self")&&n.origin===location.origin&&!n.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function st(n,t,e=!0){var r,i;let{metaKey:o,ctrlKey:s,altKey:a,shiftKey:l}=t;yg()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&n.target==="_blank"&&(ot()?o=!0:s=!0);let u=gg()&&ot()&&!xc()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:s,altKey:a,shiftKey:l}):new MouseEvent("click",{metaKey:o,ctrlKey:s,altKey:a,shiftKey:l,bubbles:!0,cancelable:!0});st.isOpening=e,m1(n),n.dispatchEvent(u),st.isOpening=!1}st.isOpening=!1;function Mg(n,t){if(n instanceof HTMLAnchorElement)t(n);else if(n.hasAttribute("data-href")){let e=document.createElement("a");e.href=n.getAttribute("data-href"),n.hasAttribute("data-target")&&(e.target=n.getAttribute("data-target")),n.hasAttribute("data-rel")&&(e.rel=n.getAttribute("data-rel")),n.hasAttribute("data-download")&&(e.download=n.getAttribute("data-download")),n.hasAttribute("data-ping")&&(e.ping=n.getAttribute("data-ping")),n.hasAttribute("data-referrer-policy")&&(e.referrerPolicy=n.getAttribute("data-referrer-policy")),n.appendChild(e),t(e),n.removeChild(e)}}function Eg(n,t){Mg(n,e=>st(e,t))}function Ig(n){let t=Hn();var e;const r=t.useHref((e=n?.href)!==null&&e!==void 0?e:"");return{href:n?.href?r:void 0,target:n?.target,rel:n?.rel,download:n?.download,ping:n?.ping,referrerPolicy:n?.referrerPolicy}}function wg(n,t,e,r){!t.isNative&&n.currentTarget instanceof HTMLAnchorElement&&n.currentTarget.href&&!n.isDefaultPrevented()&&xg(n.currentTarget,n)&&e&&(n.preventDefault(),t.open(n.currentTarget,n,e,r))}let G1=new Map,I4=new Set;function Ec(){if(typeof window>"u")return;function n(r){return"propertyName"in r}let t=r=>{if(!n(r)||!r.target)return;let i=G1.get(r.target);i||(i=new Set,G1.set(r.target,i),r.target.addEventListener("transitioncancel",e,{once:!0})),i.add(r.propertyName)},e=r=>{if(!n(r)||!r.target)return;let i=G1.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",e),G1.delete(r.target)),G1.size===0)){for(let o of I4)o();I4.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",e)}typeof document<"u"&&(document.readyState!=="loading"?Ec():document.addEventListener("DOMContentLoaded",Ec));function Sg(){for(const[n]of G1)"isConnected"in n&&!n.isConnected&&G1.delete(n)}function Ic(n){requestAnimationFrame(()=>{Sg(),G1.size===0?n():I4.add(n)})}function at(){let n=c.useRef(new Map),t=c.useCallback((i,o,s,a)=>{let l=a?.once?(...u)=>{n.current.delete(s),s(...u)}:s;n.current.set(s,{type:o,eventTarget:i,fn:l,options:a}),i.addEventListener(o,l,a)},[]),e=c.useCallback((i,o,s,a)=>{var l;let u=((l=n.current.get(s))===null||l===void 0?void 0:l.fn)||s;i.removeEventListener(o,u,a),n.current.delete(s)},[]),r=c.useCallback(()=>{n.current.forEach((i,o)=>{e(i.eventTarget,i.type,o,i.options)})},[e]);return c.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:e,removeAllGlobalListeners:r}}function Cg(n,t){let{id:e,"aria-label":r,"aria-labelledby":i}=n;return e=C1(e),i&&r?i=[...new Set([e,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:e,"aria-label":r,"aria-labelledby":i}}function Vn(n){const t=c.useRef(null),e=c.useRef(void 0),r=c.useCallback(i=>{if(typeof n=="function"){const o=n,s=o(i);return()=>{typeof s=="function"?s():o(null)}}else if(n)return n.current=i,()=>{n.current=null}},[n]);return c.useMemo(()=>({get current(){return t.current},set current(i){t.current=i,e.current&&(e.current(),e.current=void 0),i!=null&&(e.current=r(i))}}),[r])}function wc(n,t){const e=c.useRef(!0),r=c.useRef(null);Fe(()=>(e.current=!0,()=>{e.current=!1}),[]),Fe(()=>{e.current?e.current=!1:(!r.current||t.some((i,o)=>!Object.is(i,r[o])))&&n(),r.current=t},t)}function Pg(){return typeof window.ResizeObserver<"u"}function kg(n){const{ref:t,box:e,onResize:r}=n;c.useEffect(()=>{let i=t?.current;if(i)if(Pg()){const o=new window.ResizeObserver(s=>{s.length&&r()});return o.observe(i,{box:e}),()=>{i&&o.unobserve(i)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,e])}function w4(n,t){Fe(()=>{if(n&&n.ref&&t)return n.ref.current=t.current,()=>{n.ref&&(n.ref.current=null)}})}function S4(n,t){if(!n)return!1;let e=window.getComputedStyle(n),r=/(auto|scroll)/.test(e.overflow+e.overflowX+e.overflowY);return r&&t&&(r=n.scrollHeight!==n.clientHeight||n.scrollWidth!==n.clientWidth),r}function zg(n,t){const e=[];for(;n&&n!==document.documentElement;)S4(n,t)&&e.push(n),n=n.parentElement;return e}let $g=0;const C4=new Map;function Tg(n){let[t,e]=c.useState();return Fe(()=>{if(!n)return;let r=C4.get(n);if(r)e(r.element.id);else{let i=`react-aria-description-${$g++}`;e(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=n,document.body.appendChild(o),r={refCount:0,element:o},C4.set(n,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),C4.delete(n))}},[n]),{"aria-describedby":n?t:void 0}}function qn(n,t,e,r){let i=Je(e),o=e==null;c.useEffect(()=>{if(o||!n.current)return;let s=n.current;return s.addEventListener(t,i,r),()=>{s.removeEventListener(t,i,r)}},[n,t,r,o,i])}function Sc(n,t){let e=Cc(n,t,"left"),r=Cc(n,t,"top"),i=t.offsetWidth,o=t.offsetHeight,s=n.scrollLeft,a=n.scrollTop,{borderTopWidth:l,borderLeftWidth:u,scrollPaddingTop:d,scrollPaddingRight:f,scrollPaddingBottom:h,scrollPaddingLeft:p}=getComputedStyle(n),m=s+parseInt(u,10),v=a+parseInt(l,10),y=m+n.clientWidth,x=v+n.clientHeight,g=parseInt(d,10)||0,M=parseInt(h,10)||0,b=parseInt(f,10)||0,E=parseInt(p,10)||0;e<=s+E?s=e-parseInt(u,10)-E:e+i>y-b&&(s+=e+i-y+b),r<=v+g?a=r-parseInt(l,10)-g:r+o>x-M&&(a+=r+o-x+M),n.scrollLeft=s,n.scrollTop=a}function Cc(n,t,e){const r=e==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==n);){if(t.offsetParent.contains(n)){i-=n[r];break}t=t.offsetParent}return i}function Pc(n,t){if(n&&document.contains(n)){let s=document.scrollingElement||document.documentElement;if(window.getComputedStyle(s).overflow==="hidden"){let l=zg(n);for(let u of l)Sc(u,n)}else{var e;let{left:l,top:u}=n.getBoundingClientRect();n==null||(e=n.scrollIntoView)===null||e===void 0||e.call(n,{block:"nearest"});let{left:d,top:f}=n.getBoundingClientRect();if(Math.abs(l-d)>1||Math.abs(u-f)>1){var r,i,o;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(o=n.scrollIntoView)===null||o===void 0||o.call(n,{block:"nearest"})}}}}function P4(n){return n.mozInputSource===0&&n.isTrusted?!0:E4()&&n.pointerType?n.type==="click"&&n.buttons===1:n.detail===0&&!n.pointerType}function Dg(n){return!E4()&&n.width===0&&n.height===0||n.width===1&&n.height===1&&n.pressure===0&&n.detail===0&&n.pointerType==="mouse"}function Og(n,t,e){let r=Je(()=>{e&&e(t)});c.useEffect(()=>{var i;let o=n==null||(i=n.current)===null||i===void 0?void 0:i.form;return o?.addEventListener("reset",r),()=>{o?.removeEventListener("reset",r)}},[n,r])}const _g="react-aria-clear-focus",Ng="react-aria-focus";function kt(n){return ot()?n.metaKey:n.ctrlKey}const Ag=typeof Element<"u"&&"checkVisibility"in Element.prototype;function Fg(n){const t=v1(n);if(!(n instanceof t.HTMLElement)&&!(n instanceof t.SVGElement))return!1;let{display:e,visibility:r}=n.style,i=e!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=n.ownerDocument.defaultView;let{display:s,visibility:a}=o(n);i=s!=="none"&&a!=="hidden"&&a!=="collapse"}return i}function Lg(n,t){return!n.hasAttribute("hidden")&&!n.hasAttribute("data-react-aria-prevent-focus")&&(n.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?n.hasAttribute("open"):!0)}function k4(n,t){return Ag?n.checkVisibility():n.nodeName!=="#comment"&&Fg(n)&&Lg(n,t)&&(!n.parentElement||k4(n.parentElement,n))}const z4=["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]:not([contenteditable^="false"])',"permission"],Kg=z4.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";z4.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Bg=z4.join(':not([hidden]):not([tabindex="-1"]),');function kc(n){return n.matches(Kg)&&k4(n)&&!zc(n)}function Hg(n){return n.matches(Bg)&&k4(n)&&!zc(n)}function zc(n){let t=n;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function jn(n,t,e){let[r,i]=c.useState(n||t),o=c.useRef(n!==void 0),s=n!==void 0;c.useEffect(()=>{let u=o.current;u!==s&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),o.current=s},[s]);let a=s?n:r,l=c.useCallback((u,...d)=>{let f=(h,...p)=>{e&&(Object.is(a,h)||e(h,...p)),s||(a=h)};typeof u=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((p,...m)=>{let v=u(s?a:p,...m);return f(v,...d),s?p:v})):(s||i(u),f(u,...d))},[s,a,e]);return[a,l]}function $4(n,t=-1/0,e=1/0){return Math.min(Math.max(n,t),e)}function Un(n,t){let e=n,r=0,i=t.toString(),o=i.toLowerCase().indexOf("e-");if(o>0)r=Math.abs(Math.floor(Math.log10(Math.abs(t))))+o;else{let s=i.indexOf(".");s>=0&&(r=i.length-s)}if(r>0){let s=Math.pow(10,r);e=Math.round(e*s)/s}return e}function y6(n,t,e,r){t=Number(t),e=Number(e);let i=(n-(isNaN(t)?0:t))%r,o=Un(Math.abs(i)*2>=r?n+Math.sign(i)*(r-Math.abs(i)):n-i,r);return isNaN(t)?!isNaN(e)&&o>e&&(o=Math.floor(Un(e/r,r))*r):o<t?o=t:!isNaN(e)&&o>e&&(o=t+Math.floor(Un((e-t)/r,r))*r),o=Un(o,r),o}const $c=Symbol("default");function Wn({values:n,children:t}){for(let[e,r]of n)t=c.createElement(e.Provider,{value:r},t);return t}function Yn(n){let{className:t,style:e,children:r,defaultClassName:i,defaultChildren:o,defaultStyle:s,values:a}=n;return c.useMemo(()=>{let l,u,d;return typeof t=="function"?l=t({...a,defaultClassName:i}):l=t,typeof e=="function"?u=e({...a,defaultStyle:s||{}}):u=e,typeof r=="function"?d=r({...a,defaultChildren:o}):r==null?d=o:d=r,{className:l??i,style:u||s?{...s,...u}:void 0,children:d??o,"data-rac":""}},[t,e,r,i,o,s,a])}function Tc(n,t){let e=c.useContext(n);if(t===null)return null;if(e&&typeof e=="object"&&"slots"in e&&e.slots){let r=t||$c;if(!e.slots[r]){let i=new Intl.ListFormat().format(Object.keys(e.slots).map(s=>`"${s}"`)),o=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${o} Valid slot names are ${i}.`)}return e.slots[r]}return e}function T4(n,t,e){let r=Tc(e,n.slot)||{},{ref:i,...o}=r,s=Vn(c.useMemo(()=>gc(t,i),[t,i])),a=De(o,n);return"style"in o&&o.style&&"style"in n&&n.style&&(typeof o.style=="function"||typeof n.style=="function"?a.style=l=>{let u=typeof o.style=="function"?o.style(l):o.style,d={...l.defaultStyle,...u},f=typeof n.style=="function"?n.style({...l,defaultStyle:d}):n.style;return{...d,...f}}:a.style={...o.style,...n.style}),[a,s]}function Vg(n=!0){let[t,e]=c.useState(n),r=c.useRef(!1),i=c.useCallback(o=>{r.current=!0,e(!!o)},[]);return Fe(()=>{r.current||e(!1)},[]),[i,t]}class D4{get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new D4(this.type,this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t.render=this.render,t.colSpan=this.colSpan,t.colIndex=this.colIndex,t}constructor(t,e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=t,this.key=e}}class O4{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0}getChildren(t){let e=this.keyMap;return{*[Symbol.iterator](){let r=e.get(t),i=r?.firstChildKey!=null?e.get(r.firstChildKey):null;for(;i;)yield i,i=i.nextKey!=null?e.get(i.nextKey):void 0}}}getKeyBefore(t){let e=this.keyMap.get(t);if(!e)return null;if(e.prevKey!=null){for(e=this.keyMap.get(e.prevKey);e&&e.type!=="item"&&e.lastChildKey!=null;)e=this.keyMap.get(e.lastChildKey);var r;return(r=e?.key)!==null&&r!==void 0?r:null}return e.parentKey}getKeyAfter(t){let e=this.keyMap.get(t);if(!e)return null;if(e.type!=="item"&&e.firstChildKey!=null)return e.firstChildKey;for(;e;){if(e.nextKey!=null)return e.nextKey;if(e.parentKey!=null)e=this.keyMap.get(e.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;t?.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);var e;return(e=t?.key)!==null&&e!==void 0?e:null}getItem(t){var e;return(e=this.keyMap.get(t))!==null&&e!==void 0?e:null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,e=new t;return e.keyMap=new Map(this.keyMap),e.firstKey=this.firstKey,e.lastKey=this.lastKey,e.itemCount=this.itemCount,e}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");t.type==="item"&&this.keyMap.get(t.key)==null&&this.itemCount++,this.keyMap.set(t.key,t)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let e=this.keyMap.get(t);e!=null&&e.type==="item"&&this.itemCount--,this.keyMap.delete(t)}commit(t,e,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=e,this.frozen=!r}UNSTABLE_filter(t){let e=new O4,r=null;for(let i of this)if(i.type==="section"&&i.hasChildNodes){let o=i.clone(),s=null;for(let a of this.getChildren(i.key))if(Dc(a,t,this,e)){let l=a.clone();s==null&&(o.firstChildKey=l.key),e.firstKey==null&&(e.firstKey=o.key),s&&s.parentKey===l.parentKey?(s.nextKey=l.key,l.prevKey=s.key):l.prevKey=null,l.nextKey=null,e.addNode(l),s=l}s&&(s.type!=="header"?(o.lastChildKey=s.key,r==null?o.prevKey=null:(r.type==="section"||r.type==="separator")&&(r.nextKey=o.key,o.prevKey=r.key),o.nextKey=null,r=o,e.addNode(o)):(e.firstKey===o.key&&(e.firstKey=null),e.removeNode(s.key)))}else if(i.type==="separator"){let o=i.clone();o.nextKey=null,r?.type==="section"&&(r.nextKey=o.key,o.prevKey=r.key,r=o,e.addNode(o))}else{let o=i.clone();Dc(o,t,this,e)&&(e.firstKey==null&&(e.firstKey=o.key),r!=null&&r.type!=="section"&&r.type!=="separator"&&r.parentKey===o.parentKey?(r.nextKey=o.key,o.prevKey=r.key):o.prevKey=null,o.nextKey=null,e.addNode(o),r=o)}if(r?.type==="separator"&&r.nextKey===null){let i;r.prevKey!=null&&(i=e.getItem(r.prevKey),i.nextKey=null),e.removeNode(r.key),r=i}return e.lastKey=r?.key||null,e}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function Dc(n,t,e,r){if(n.type==="subdialogtrigger"||n.type==="submenutrigger"){let i=[...e.getChildren(n.key)][0];if(i&&t(i.textValue)){let o=i.clone();return r.addNode(o),!0}else return!1}else return n.type==="header"?!0:t(n.textValue)}class Oc{*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this)}get isConnected(){var t;return((t=this.parentNode)===null||t===void 0?void 0:t.isConnected)||!1}invalidateChildIndices(t){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||t.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=t,this.ownerDocument.markDirty(this))}updateChildIndices(){let t=this._minInvalidChildIndex;for(;t;)t.index=t.previousSibling?t.previousSibling.index+1:0,t=t.nextSibling;this._minInvalidChildIndex=null}appendChild(t){t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(t,e){if(e==null)return this.appendChild(t);t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=e,t.previousSibling=e.previousSibling,t.index=e.index-1,this.firstChild===e?this.firstChild=t:e.previousSibling&&(e.previousSibling.nextSibling=t),e.previousSibling=t,t.parentNode=e.parentNode,this.invalidateChildIndices(t),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(t){t.parentNode!==this||!this.ownerDocument.isMounted||(this._minInvalidChildIndex===t&&(this._minInvalidChildIndex=null),t.nextSibling&&(this.invalidateChildIndices(t.nextSibling),t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.markDirty(t),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let t=this.previousSibling;for(;t&&t.isHidden;)t=t.previousSibling;return t}get nextVisibleSibling(){let t=this.nextSibling;for(;t&&t.isHidden;)t=t.nextSibling;return t}get firstVisibleChild(){let t=this.firstChild;for(;t&&t.isHidden;)t=t.nextSibling;return t}get lastVisibleChild(){let t=this.lastChild;for(;t&&t.isHidden;)t=t.previousSibling;return t}constructor(t){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=t}}class zt extends Oc{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof zt?this.parentNode.level+(this.node.type==="item"?1:0):0}getMutableNode(){return this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node}updateNode(){var t,e,r;let i=this.nextVisibleSibling,o=this.getMutableNode();o.index=this.index,o.level=this.level,o.parentKey=this.parentNode instanceof zt?this.parentNode.node.key:null;var s;o.prevKey=(s=(t=this.previousVisibleSibling)===null||t===void 0?void 0:t.node.key)!==null&&s!==void 0?s:null;var a;o.nextKey=(a=i?.node.key)!==null&&a!==void 0?a:null,o.hasChildNodes=!!this.firstChild;var l;o.firstChildKey=(l=(e=this.firstVisibleChild)===null||e===void 0?void 0:e.node.key)!==null&&l!==void 0?l:null;var u;if(o.lastChildKey=(u=(r=this.lastVisibleChild)===null||r===void 0?void 0:r.node.key)!==null&&u!==void 0?u:null,(o.colSpan!=null||o.colIndex!=null)&&i){var d,f;let h=((d=o.colIndex)!==null&&d!==void 0?d:o.index)+((f=o.colSpan)!==null&&f!==void 0?f:1);if(h!==i.node.colIndex){let p=i.getMutableNode();p.colIndex=h}}}setProps(t,e,r,i){let o=this.getMutableNode(),{value:s,textValue:a,id:l,...u}=t;if(u.ref=e,o.props=u,o.rendered=r,o.render=i,o.value=s,o.textValue=a||(typeof u.children=="string"?u.children:"")||t["aria-label"]||"",l!=null&&l!==o.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");o.key=l}u.colSpan!=null&&(o.colSpan=u.colSpan),this.hasSetProps=!0,this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let t=this;return{get display(){return t.isHidden?"none":""},set display(e){let r=e==="none";if(t.isHidden!==r){var i,o;(((i=t.parentNode)===null||i===void 0?void 0:i.firstVisibleChild)===t||((o=t.parentNode)===null||o===void 0?void 0:o.lastVisibleChild)===t)&&t.ownerDocument.markDirty(t.parentNode);let s=t.previousVisibleSibling,a=t.nextVisibleSibling;s&&t.ownerDocument.markDirty(s),a&&t.ownerDocument.markDirty(a),t.isHidden=r,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,e){super(e),this.nodeType=8,this.isMutated=!0,this._index=0,this.hasSetProps=!1,this.isHidden=!1,this.node=new D4(t,`react-aria-${++e.nodeId}`)}}class qg extends Oc{get isConnected(){return this.isMounted}createElement(t){return new zt(t,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(t){this.dirtyNodes.add(t)}addNode(t){if(t.isHidden)return;let e=this.getMutableCollection();if(!e.getItem(t.node.key))for(let r of t)this.addNode(r);e.addNode(t.node)}removeNode(t){for(let r of t)this.removeNode(r);this.getMutableCollection().removeNode(t.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let o of this.dirtyNodes)o instanceof zt&&(!o.isConnected||o.isHidden)?this.removeNode(o):o.updateChildIndices();for(let o of this.dirtyNodes)o instanceof zt&&(o.isConnected&&!o.isHidden&&(o.updateNode(),this.addNode(o)),o.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var t,e,r,i;this.nextCollection.commit((r=(t=this.firstVisibleChild)===null||t===void 0?void 0:t.node.key)!==null&&r!==void 0?r:null,(i=(e=this.lastVisibleChild)===null||e===void 0?void 0:e.node.key)!==null&&i!==void 0?i:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let t of this.subscriptions)t();this.inSubscription=!1}}subscribe(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(t){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=t,this.nextCollection=t}}function _c(n){let{children:t,items:e,idScope:r,addIdAndValue:i,dependencies:o=[]}=n,s=c.useMemo(()=>new WeakMap,o);return c.useMemo(()=>{if(e&&typeof t=="function"){let u=[];for(let d of e){let f=s.get(d);if(!f){f=t(d);var a,l;let h=(l=(a=f.props.id)!==null&&a!==void 0?a:d.key)!==null&&l!==void 0?l:d.id;if(h==null)throw new Error("Could not determine key for item");r&&(h=r+":"+h),f=c.cloneElement(f,i?{key:h,id:h,value:d}:{key:h}),s.set(d,f)}u.push(f)}return u}else if(typeof t!="function")return t},[t,e,s,r,i])}if(typeof HTMLTemplateElement<"u"){const n=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:n.call(this)}})}const _4=c.createContext(!1);function jg(n){if(c.useContext(_4))return c.createElement(c.Fragment,null,n.children);let e=c.createElement(_4.Provider,{value:!0},n.children);return c.createElement("template",{"data-react-aria-hidden":!0},e)}function Ug(n){let t=(e,r)=>c.useContext(_4)?null:n(e,r);return t.displayName=n.displayName||n.name,c.forwardRef(t)}function N4(n){let t=n;return t.nativeEvent=n,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Nc(n,t){Object.defineProperty(n,"target",{value:t}),Object.defineProperty(n,"currentTarget",{value:t})}function Ac(n){let t=c.useRef({isFocused:!1,observer:null});Fe(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let e=Je(r=>{n?.(r)});return c.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,o=s=>{if(t.current.isFocused=!1,i.disabled){let a=N4(s);e(a)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let a=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let Rn=!1;function Fc(n){for(;n&&!kc(n);)n=n.parentElement;let t=v1(n),e=t.document.activeElement;if(!e||e===n)return;Rn=!0;let r=!1,i=d=>{(d.target===e||r)&&d.stopImmediatePropagation()},o=d=>{(d.target===e||r)&&(d.stopImmediatePropagation(),!n&&!r&&(r=!0,m1(e),l()))},s=d=>{(d.target===n||r)&&d.stopImmediatePropagation()},a=d=>{(d.target===n||r)&&(d.stopImmediatePropagation(),r||(r=!0,m1(e),l()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",o,!0),t.addEventListener("focusin",a,!0),t.addEventListener("focus",s,!0);let l=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",o,!0),t.removeEventListener("focusin",a,!0),t.removeEventListener("focus",s,!0),Rn=!1,r=!1},u=requestAnimationFrame(l);return l}let $t="default",A4="",Gn=new WeakMap;function F4(n){if(M4()){if($t==="default"){const t=Pe(n);A4=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}$t="disabled"}else if(n instanceof HTMLElement||n instanceof SVGElement){let t="userSelect"in n.style?"userSelect":"webkitUserSelect";Gn.set(n,n.style[t]),n.style[t]="none"}}function Xn(n){if(M4()){if($t!=="disabled")return;$t="restoring",setTimeout(()=>{Ic(()=>{if($t==="restoring"){const t=Pe(n);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=A4||""),A4="",$t="default"}})},300)}else if((n instanceof HTMLElement||n instanceof SVGElement)&&n&&Gn.has(n)){let t=Gn.get(n),e="userSelect"in n.style?"userSelect":"webkitUserSelect";n.style[e]==="none"&&(n.style[e]=t),n.getAttribute("style")===""&&n.removeAttribute("style"),Gn.delete(n)}}const Jn=c.createContext({register:()=>{}});Jn.displayName="PressResponderContext";function Wg(n,t){return t.get?t.get.call(n):t.value}function Lc(n,t,e){if(!t.has(n))throw new TypeError("attempted to "+e+" private field on non-instance");return t.get(n)}function Yg(n,t){var e=Lc(n,t,"get");return Wg(n,e)}function Rg(n,t){if(t.has(n))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Gg(n,t,e){Rg(n,t),t.set(n,e)}function Xg(n,t,e){if(t.set)t.set.call(n,e);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=e}}function Kc(n,t,e){var r=Lc(n,t,"set");return Xg(n,r,e),e}function Jg(n){let t=c.useContext(Jn);if(t){let{register:e,...r}=t;n=De(r,n),e()}return w4(t,n.ref),n}var Zn=new WeakMap;class Qn{continuePropagation(){Kc(this,Zn,!1)}get shouldStopPropagation(){return Yg(this,Zn)}constructor(t,e,r,i){Gg(this,Zn,{writable:!0,value:void 0}),Kc(this,Zn,!0);var o;let s=(o=i?.target)!==null&&o!==void 0?o:r.currentTarget;const a=s?.getBoundingClientRect();let l,u=0,d,f=null;r.clientX!=null&&r.clientY!=null&&(d=r.clientX,f=r.clientY),a&&(d!=null&&f!=null?(l=d-a.left,u=f-a.top):(l=a.width/2,u=a.height/2)),this.type=t,this.pointerType=e,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=u}}const Bc=Symbol("linkClicked"),Hc="react-aria-pressable-style",Vc="data-react-aria-pressable";function er(n){let{onPress:t,onPressChange:e,onPressStart:r,onPressEnd:i,onPressUp:o,onClick:s,isDisabled:a,isPressed:l,preventFocusOnPress:u,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:h,...p}=Jg(n),[m,v]=c.useState(!1),y=c.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:x,removeAllGlobalListeners:g}=at(),M=Je((I,L)=>{let F=y.current;if(a||F.didFirePressStart)return!1;let $=!0;if(F.isTriggeringEvent=!0,r){let X=new Qn("pressstart",L,I);r(X),$=X.shouldStopPropagation}return e&&e(!0),F.isTriggeringEvent=!1,F.didFirePressStart=!0,v(!0),$}),b=Je((I,L,F=!0)=>{let $=y.current;if(!$.didFirePressStart)return!1;$.didFirePressStart=!1,$.isTriggeringEvent=!0;let X=!0;if(i){let _=new Qn("pressend",L,I);i(_),X=_.shouldStopPropagation}if(e&&e(!1),v(!1),t&&F&&!a){let _=new Qn("press",L,I);t(_),X&&(X=_.shouldStopPropagation)}return $.isTriggeringEvent=!1,X}),E=Je((I,L)=>{let F=y.current;if(a)return!1;if(o){F.isTriggeringEvent=!0;let $=new Qn("pressup",L,I);return o($),F.isTriggeringEvent=!1,$.shouldStopPropagation}return!0}),w=Je(I=>{let L=y.current;if(L.isPressed&&L.target){L.didFirePressStart&&L.pointerType!=null&&b(lt(L.target,I),L.pointerType,!1),L.isPressed=!1,L.isOverTarget=!1,L.activePointerId=null,L.pointerType=null,g(),f||Xn(L.target);for(let F of L.disposables)F();L.disposables=[]}}),z=Je(I=>{d&&w(I)}),A=Je(I=>{s?.(I)}),C=Je((I,L)=>{if(s){let F=new MouseEvent("click",I);Nc(F,L),s(N4(F))}}),H=c.useMemo(()=>{let I=y.current,L={onKeyDown($){if(K4($.nativeEvent,$.currentTarget)&&Ne($.currentTarget,Me($.nativeEvent))){var X;Uc(Me($.nativeEvent),$.key)&&$.preventDefault();let _=!0;if(!I.isPressed&&!$.repeat){I.target=$.currentTarget,I.isPressed=!0,I.pointerType="keyboard",_=M($,"keyboard");let B=$.currentTarget,W=N=>{K4(N,B)&&!N.repeat&&Ne(B,Me(N))&&I.target&&E(lt(I.target,N),"keyboard")};x(Pe($.currentTarget),"keyup",b4(W,F),!0)}_&&$.stopPropagation(),$.metaKey&&ot()&&((X=I.metaKeyEvents)===null||X===void 0||X.set($.key,$.nativeEvent))}else $.key==="Meta"&&(I.metaKeyEvents=new Map)},onClick($){if(!($&&!Ne($.currentTarget,Me($.nativeEvent)))&&$&&$.button===0&&!I.isTriggeringEvent&&!st.isOpening){let X=!0;if(a&&$.preventDefault(),!I.ignoreEmulatedMouseEvents&&!I.isPressed&&(I.pointerType==="virtual"||P4($.nativeEvent))){let _=M($,"virtual"),B=E($,"virtual"),W=b($,"virtual");A($),X=_&&B&&W}else if(I.isPressed&&I.pointerType!=="keyboard"){let _=I.pointerType||$.nativeEvent.pointerType||"virtual",B=E(lt($.currentTarget,$),_),W=b(lt($.currentTarget,$),_,!0);X=B&&W,I.isOverTarget=!1,A($),w($)}I.ignoreEmulatedMouseEvents=!1,X&&$.stopPropagation()}}},F=$=>{var X;if(I.isPressed&&I.target&&K4($,I.target)){var _;Uc(Me($),$.key)&&$.preventDefault();let W=Me($),N=Ne(I.target,Me($));b(lt(I.target,$),"keyboard",N),N&&C($,I.target),g(),$.key!=="Enter"&&L4(I.target)&&Ne(I.target,W)&&!$[Bc]&&($[Bc]=!0,st(I.target,$,!1)),I.isPressed=!1,(_=I.metaKeyEvents)===null||_===void 0||_.delete($.key)}else if($.key==="Meta"&&(!((X=I.metaKeyEvents)===null||X===void 0)&&X.size)){var B;let W=I.metaKeyEvents;I.metaKeyEvents=void 0;for(let N of W.values())(B=I.target)===null||B===void 0||B.dispatchEvent(new KeyboardEvent("keyup",N))}};if(typeof PointerEvent<"u"){L.onPointerDown=_=>{if(_.button!==0||!Ne(_.currentTarget,Me(_.nativeEvent)))return;if(Dg(_.nativeEvent)){I.pointerType="virtual";return}I.pointerType=_.pointerType;let B=!0;if(!I.isPressed){I.isPressed=!0,I.isOverTarget=!0,I.activePointerId=_.pointerId,I.target=_.currentTarget,f||F4(I.target),B=M(_,I.pointerType);let W=Me(_.nativeEvent);"releasePointerCapture"in W&&W.releasePointerCapture(_.pointerId),x(Pe(_.currentTarget),"pointerup",$,!1),x(Pe(_.currentTarget),"pointercancel",X,!1)}B&&_.stopPropagation()},L.onMouseDown=_=>{if(Ne(_.currentTarget,Me(_.nativeEvent))&&_.button===0){if(u){let B=Fc(_.target);B&&I.disposables.push(B)}_.stopPropagation()}},L.onPointerUp=_=>{!Ne(_.currentTarget,Me(_.nativeEvent))||I.pointerType==="virtual"||_.button===0&&!I.isPressed&&E(_,I.pointerType||_.pointerType)},L.onPointerEnter=_=>{_.pointerId===I.activePointerId&&I.target&&!I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!0,M(lt(I.target,_),I.pointerType))},L.onPointerLeave=_=>{_.pointerId===I.activePointerId&&I.target&&I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!1,b(lt(I.target,_),I.pointerType,!1),z(_))};let $=_=>{if(_.pointerId===I.activePointerId&&I.isPressed&&_.button===0&&I.target){if(Ne(I.target,Me(_))&&I.pointerType!=null){let B=!1,W=setTimeout(()=>{I.isPressed&&I.target instanceof HTMLElement&&(B?w(_):(m1(I.target),I.target.click()))},80);x(_.currentTarget,"click",()=>B=!0,!0),I.disposables.push(()=>clearTimeout(W))}else w(_);I.isOverTarget=!1}},X=_=>{w(_)};L.onDragStart=_=>{Ne(_.currentTarget,Me(_.nativeEvent))&&w(_)}}else if(process.env.NODE_ENV==="test"){L.onMouseDown=_=>{if(_.button!==0||!Ne(_.currentTarget,Me(_.nativeEvent)))return;if(I.ignoreEmulatedMouseEvents){_.stopPropagation();return}if(I.isPressed=!0,I.isOverTarget=!0,I.target=_.currentTarget,I.pointerType=P4(_.nativeEvent)?"virtual":"mouse",x1.flushSync(()=>M(_,I.pointerType))&&_.stopPropagation(),u){let W=Fc(_.target);W&&I.disposables.push(W)}x(Pe(_.currentTarget),"mouseup",$,!1)},L.onMouseEnter=_=>{if(!Ne(_.currentTarget,Me(_.nativeEvent)))return;let B=!0;I.isPressed&&!I.ignoreEmulatedMouseEvents&&I.pointerType!=null&&(I.isOverTarget=!0,B=M(_,I.pointerType)),B&&_.stopPropagation()},L.onMouseLeave=_=>{if(!Ne(_.currentTarget,Me(_.nativeEvent)))return;let B=!0;I.isPressed&&!I.ignoreEmulatedMouseEvents&&I.pointerType!=null&&(I.isOverTarget=!1,B=b(_,I.pointerType,!1),z(_)),B&&_.stopPropagation()},L.onMouseUp=_=>{Ne(_.currentTarget,Me(_.nativeEvent))&&!I.ignoreEmulatedMouseEvents&&_.button===0&&!I.isPressed&&E(_,I.pointerType||"mouse")};let $=_=>{if(_.button===0){if(I.ignoreEmulatedMouseEvents){I.ignoreEmulatedMouseEvents=!1;return}I.target&&I.target.contains(_.target)&&I.pointerType!=null||w(_),I.isOverTarget=!1}};L.onTouchStart=_=>{if(!Ne(_.currentTarget,Me(_.nativeEvent)))return;let B=Zg(_.nativeEvent);if(!B)return;I.activePointerId=B.identifier,I.ignoreEmulatedMouseEvents=!0,I.isOverTarget=!0,I.isPressed=!0,I.target=_.currentTarget,I.pointerType="touch",f||F4(I.target),M(X1(I.target,_),I.pointerType)&&_.stopPropagation(),x(v1(_.currentTarget),"scroll",X,!0)},L.onTouchMove=_=>{if(!Ne(_.currentTarget,Me(_.nativeEvent)))return;if(!I.isPressed){_.stopPropagation();return}let B=qc(_.nativeEvent,I.activePointerId),W=!0;B&&jc(B,_.currentTarget)?!I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!0,W=M(X1(I.target,_),I.pointerType)):I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!1,W=b(X1(I.target,_),I.pointerType,!1),z(X1(I.target,_))),W&&_.stopPropagation()},L.onTouchEnd=_=>{if(!Ne(_.currentTarget,Me(_.nativeEvent)))return;if(!I.isPressed){_.stopPropagation();return}let B=qc(_.nativeEvent,I.activePointerId),W=!0;B&&jc(B,_.currentTarget)&&I.pointerType!=null?(E(X1(I.target,_),I.pointerType),W=b(X1(I.target,_),I.pointerType),C(_.nativeEvent,I.target)):I.isOverTarget&&I.pointerType!=null&&(W=b(X1(I.target,_),I.pointerType,!1)),W&&_.stopPropagation(),I.isPressed=!1,I.activePointerId=null,I.isOverTarget=!1,I.ignoreEmulatedMouseEvents=!0,I.target&&!f&&Xn(I.target),g()},L.onTouchCancel=_=>{Ne(_.currentTarget,Me(_.nativeEvent))&&(_.stopPropagation(),I.isPressed&&w(X1(I.target,_)))};let X=_=>{I.isPressed&&Ne(Me(_),I.target)&&w({currentTarget:I.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};L.onDragStart=_=>{Ne(_.currentTarget,Me(_.nativeEvent))&&w(_)}}return L},[x,a,u,g,f,w,z,b,M,E,A,C]);return c.useEffect(()=>{if(!h||process.env.NODE_ENV==="test")return;const I=Pe(h.current);if(!I||!I.head||I.getElementById(Hc))return;const L=I.createElement("style");L.id=Hc,L.textContent=`
|
|
75
|
+
`)&&b.push(w.value):w.type==="raw"&&!g.options.skipHtml&&b.push(w.value);return b}function f(g,M,b,E){const w=g.options,z=g.schema,A=M.tagName,C={};let H=z,I;if(z.space==="html"&&A==="svg"&&(H=e,g.schema=H),M.properties)for(I in M.properties)l.call(M.properties,I)&&m(C,I,M.properties[I],g);(A==="ol"||A==="ul")&&g.listDepth++;const L=d(g,M);(A==="ol"||A==="ul")&&g.listDepth--,g.schema=z;const F=M.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},$=w.components&&l.call(w.components,A)?w.components[A]:A,X=typeof $=="string"||$===n.Fragment;if(!t.isValidElementType($))throw new TypeError(`Component for name \`${A}\` not defined or is not renderable`);if(C.key=[A,F.start.line,F.start.column,b].join("-"),A==="a"&&w.linkTarget&&(C.target=typeof w.linkTarget=="function"?w.linkTarget(C.href,M.children,C.title):w.linkTarget),A==="a"&&w.transformLinkUri&&(C.href=w.transformLinkUri(C.href,M.children,C.title)),!X&&A==="code"&&E.type==="element"&&E.tagName!=="pre"&&(C.inline=!0),!X&&(A==="h1"||A==="h2"||A==="h3"||A==="h4"||A==="h5"||A==="h6")&&(C.level=parseInt(A.charAt(1),10)),A==="img"&&w.transformImageUri&&(C.src=w.transformImageUri(C.src,C.alt,C.title)),!X&&A==="li"&&E.type==="element"){const _=h(M);C.checked=_&&_.properties?!!_.properties.checked:null,C.index=p(E,M),C.ordered=E.tagName==="ol"}return!X&&(A==="ol"||A==="ul")&&(C.ordered=A==="ol",C.depth=g.listDepth),(A==="td"||A==="th")&&(C.align&&(C.style||(C.style={}),C.style.textAlign=C.align,delete C.align),X||(C.isHeader=A==="th")),!X&&A==="tr"&&E.type==="element"&&(C.isHeader=E.tagName==="thead"),w.sourcePos&&(C["data-sourcepos"]=x(F)),!X&&w.rawSourcePos&&(C.sourcePosition=M.position),!X&&w.includeElementIndex&&(C.index=p(E,M),C.siblingCount=p(E)),X||(C.node=M),L.length>0?n.createElement($,C,L):n.createElement($,C)}function h(g){let M=-1;for(;++M<g.children.length;){const b=g.children[M];if(b.type==="element"&&b.tagName==="input")return b}return null}function p(g,M){let b=-1,E=0;for(;++b<g.children.length&&g.children[b]!==M;)g.children[b].type==="element"&&E++;return E}function m(g,M,b,E){const w=r(E.schema,M);let z=b;z==null||z!==z||(z&&typeof z=="object"&&"length"in z&&(z=(w.commaSeparated?s:o).stringify(z)),w.property==="style"&&typeof z=="string"&&(z=v(z)),w.space&&w.property?g[l.call(i,w.property)?i[w.property]:w.property]=z:w.attribute&&(g[w.attribute]=z))}function v(g){const M={};try{a(g,b)}catch{}return M;function b(E,w){const z=E.slice(0,4)==="-ms-"?`ms-${E.slice(4)}`:E;M[z.replace(/-([a-z])/g,y)]=w}}function y(g,M){return M.toUpperCase()}function x(g){return[g.start.line,":",g.start.column,"-",g.end.line,":",g.end.column].map(M=>String(M)).join("")}return Dn}var p4,pc;function Am(){if(pc)return p4;pc=1;const n=c,t=R7(),e=Jh(),r=qv(),i=ym(),o=M0(),s=Mm(),a=Em(),l=Im(),u=Nm().hastChildrenToReact;p4=p;const d={}.hasOwnProperty,f="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",h={renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function p(m){for(const M in h)if(d.call(h,M)&&d.call(m,M)){const b=h[M];console.warn(`[react-markdown] Warning: please ${b.to?`use \`${b.to}\` instead of`:"remove"} \`${M}\` (see <${f}#${b.id}> for more info)`),delete h[M]}const v=e().use(r).use(m.remarkPlugins||m.plugins||[]).use(i,{allowDangerousHtml:!0}).use(m.rehypePlugins||[]).use(a,m);let y;typeof m.children=="string"?y=t(m.children):(m.children!==void 0&&m.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${m.children}\`)`),y=t());const x=v.runSync(v.parse(y),y);if(x.type!=="root")throw new TypeError("Expected a `root` node");let g=n.createElement(n.Fragment,{},u({options:m,schema:s,listDepth:0},x));return m.className&&(g=n.createElement("div",{className:m.className},g)),g}return p.defaultProps={transformLinkUri:l},p.propTypes={children:o.string,className:o.string,allowElement:o.func,allowedElements:o.arrayOf(o.string),disallowedElements:o.arrayOf(o.string),unwrapDisallowed:o.bool,remarkPlugins:o.arrayOf(o.oneOfType([o.object,o.func,o.arrayOf(o.oneOfType([o.object,o.func]))])),rehypePlugins:o.arrayOf(o.oneOfType([o.object,o.func,o.arrayOf(o.oneOfType([o.object,o.func]))])),sourcePos:o.bool,rawSourcePos:o.bool,skipHtml:o.bool,includeElementIndex:o.bool,transformLinkUri:o.oneOfType([o.func,o.bool]),linkTarget:o.oneOfType([o.func,o.string]),transformImageUri:o.func,components:o.object},p.uriTransformer=l,p4}var Fm=Am();const Lm=l0(Fm),m6=({isDisabled:n=!1,children:t})=>c.createElement("div",{className:ae(["nds-disabledShim",{"nds-disabledShim--disabled":n}]),"aria-disabled":n?"true":"false"},t);function h4(){return h4=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)({}).hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},h4.apply(null,arguments)}const Km=({label:n,markdownLabel:t,onChange:e=()=>{},id:r,name:i,defaultChecked:o,checked:s,disabled:a=!1,isDisabled:l=!1,indeterminate:u=!1,value:d,hasError:f,error:h,kind:p="normal",testId:m,...v})=>{const y=l||a,x=c.useRef(null),g=s!==void 0,[M,b]=c.useState(g?s:o||!1),[E,w]=c.useState(!1),z=p==="card",A=({href:L,children:F})=>c.createElement("a",{href:L,target:"_blank",rel:"noreferrer"},F);c.useEffect(()=>{g&&b(s),x.current&&(x.current.indeterminate=u)},[s,u]);const C=L=>{g||b(F=>!F),e(L)},H=()=>{w(!0)},I=()=>{w(!1)};return c.createElement("div",{className:`nds-checkbox-container nds-checkbox-container--${p}`},c.createElement(m6,{isDisabled:y&&p==="card"},c.createElement("label",{className:ae([`nds-checkbox nds-checkbox--${p}`,"fontWeight--default",{"nds-checkbox--checked":M||u,"nds-checkbox--disabled":y,"nds-checkbox--focused":E,"padding--y--xl padding--x rounded--all border--all":z}])},c.createElement("span",{className:ae([{"narmi-icon-check":!u,"narmi-icon-minus":u,error:f||!!h}])}),c.createElement("div",{className:"nds-checkbox-label"},t&&c.createElement(Lm,{components:{a:function({href:L,children:F}){return A({href:L,children:F})}}},t),!t&&c.createElement(c.Fragment,null,n)),c.createElement("input",h4({ref:x,onFocus:H,onBlur:I,onChange:C,checked:M,defaultChecked:o,disabled:y,name:i,id:r&&r.toString(),value:d,"data-testid":m},v,{type:"checkbox"})))),c.createElement(O1,{marginTop:"xs",error:h}))},hc=({value:n,kind:t="theme"})=>c.createElement("div",{role:"status",className:ae(["nds-count",`nds-count--${t}`])},n),Bm=({label:n,kind:t="primary",count:e,onDismiss:r,onClick:i,startIcon:o,endIcon:s,hasBorder:a=!1})=>{const l=typeof i=="function",u=!l&&typeof r=="function",d=t==="primary"||t==="secondary"?"theme":t;return c.createElement(It,{elementType:l?"button":"div",onClick:l?i:void 0,type:l?"button":void 0,className:ae(["nds-chip","fontSize--s",`nds-chip--${t}`,`fontColor--${t}`,{"button--reset":l,"nds-chip--button":l,"nds-chip--hasBorder":a}])},c.createElement(ce,{alignItems:"center",gapSize:"xs"},o&&c.createElement(ce.Item,{shrink:!0},c.createElement("span",{className:ae(["nds-chip-icon",`narmi-icon-${o}`])})),c.createElement(ce.Item,{shrink:!0},c.createElement("div",{className:"nds-chip-label whiteSpace--truncate"},n)),e&&c.createElement(ce.Item,{shrink:!0},c.createElement(hc,{kind:d,value:e})),s&&c.createElement(ce.Item,{shrink:!0},c.createElement("span",{className:ae(["nds-chip-icon",`narmi-icon-${s}`])})),u&&c.createElement(ce.Item,{shrink:!0},c.createElement("button",{onClick:r,"aria-label":"Remove chip",className:ae(["nds-chip-dismiss","nds-chip-icon","button--reset",`fontColor--${t}`])},c.createElement("span",{className:"narmi-icon-x"})))))};function v4(){return v4=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)({}).hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},v4.apply(null,arguments)}const Hm=({kind:n="plain",paddingSize:t="l",onClick:e=()=>{},isSelected:r=!1,children:i,testId:o,radiusSize:s="l",error:a,isDisabled:l,disabled:u})=>{const d=l??u??!1,f=["toggle","button"].some(v=>n===v),h=f&&n!=="button",p=()=>{const v={};return f&&(v.role="button",v.tabIndex="0",a||(v.onClick=e,v.onKeyUp=y=>{const{key:x}=y;(x==="Enter"||x===" ")&&e(y)})),h&&(v["aria-pressed"]=r),v},m=c.createElement("div",v4({"data-testid":o||"ndsContentCard",className:ae(["nds-contentCard",`nds-contentCard--${n}`,`padding--all--${t}`,`rounded--all--${s} bgColor--white`,{"button--reset":f,"nds-contentCard--error":f&&a,"nds-contentCard--disabled":d}])},p()),i);return c.createElement(c.Fragment,null,f?c.createElement(m6,{isDisabled:d},m):m,a&&c.createElement(O1,{error:a,marginTop:"s"}))},Fe=typeof document<"u"?c.useLayoutEffect:()=>{};var m4;const Vm=(m4=c.useInsertionEffect)!==null&&m4!==void 0?m4:Fe;function Je(n){const t=c.useRef(null);return Vm(()=>{t.current=n},[n]),c.useCallback((...e)=>{const r=t.current;return r?.(...e)},[])}function qm(n){let[t,e]=c.useState(n),r=c.useRef(null),i=Je(()=>{if(!r.current)return;let s=r.current.next();if(s.done){r.current=null;return}t===s.value?i():e(s.value)});Fe(()=>{r.current&&i()});let o=Je(s=>{r.current=s(t),i()});return[t,o]}const An={prefix:String(Math.round(Math.random()*1e10)),current:0},vc=c.createContext(An),jm=c.createContext(!1);let Um=!!(typeof window<"u"&&window.document&&window.document.createElement),g4=new WeakMap;function Wm(n=!1){let t=c.useContext(vc),e=c.useRef(null);if(e.current===null&&!n){var r,i;let o=(i=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(o){let s=g4.get(o);s==null?g4.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==s.state&&(t.current=s.id,g4.delete(o))}e.current=++t.current}return e.current}function Ym(n){let t=c.useContext(vc);t===An&&!Um&&process.env.NODE_ENV!=="production"&&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 e=Wm(!!n),r=t===An&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return n||`${r}-${e}`}function Rm(n){let t=c.useId(),[e]=c.useState(Fn()),r=e||process.env.NODE_ENV==="test"?"react-aria":`react-aria${An.prefix}`;return n||`${r}-${t}`}const Gm=typeof c.useId=="function"?Rm:Ym;function Xm(){return!1}function Jm(){return!0}function Zm(n){return()=>{}}function Fn(){return typeof c.useSyncExternalStore=="function"?c.useSyncExternalStore(Zm,Xm,Jm):c.useContext(jm)}let Qm=!!(typeof window<"u"&&window.document&&window.document.createElement),Pt=new Map,g6;typeof FinalizationRegistry<"u"&&(g6=new FinalizationRegistry(n=>{Pt.delete(n)}));function C1(n){let[t,e]=c.useState(n),r=c.useRef(null),i=Gm(t),o=c.useRef(null);if(g6&&g6.register(o,i),Qm){const s=Pt.get(i);s&&!s.includes(r)?s.push(r):Pt.set(i,[r])}return Fe(()=>{let s=i;return()=>{g6&&g6.unregister(o),Pt.delete(s)}},[i]),c.useEffect(()=>{let s=r.current;return s&&e(s),()=>{s&&(r.current=null)}}),i}function eg(n,t){if(n===t)return n;let e=Pt.get(n);if(e)return e.forEach(i=>i.current=t),t;let r=Pt.get(t);return r?(r.forEach(i=>i.current=n),n):t}function y4(n=[]){let t=C1(),[e,r]=qm(t),i=c.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Fe(i,[t,i,...n]),e}function b4(...n){return(...t)=>{for(let e of n)typeof e=="function"&&e(...t)}}const Pe=n=>{var t;return(t=n?.ownerDocument)!==null&&t!==void 0?t:document},v1=n=>n&&"window"in n&&n.window===n?n:Pe(n).defaultView||window;function tg(n){return n!==null&&typeof n=="object"&&"nodeType"in n&&typeof n.nodeType=="number"}function ng(n){return tg(n)&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in n}let rg=!1;function Ln(){return rg}function Ne(n,t){if(!Ln())return t&&n?n.contains(t):!1;if(!n||!t)return!1;let e=t;for(;e!==null;){if(e===n)return!0;e.tagName==="SLOT"&&e.assignedSlot?e=e.assignedSlot.parentNode:ng(e)?e=e.host:e=e.parentNode}return!1}const Ze=(n=document)=>{var t;if(!Ln())return n.activeElement;let e=n.activeElement;for(;e&&"shadowRoot"in e&&(!((t=e.shadowRoot)===null||t===void 0)&&t.activeElement);)e=e.shadowRoot.activeElement;return e};function Me(n){return Ln()&&n.target.shadowRoot&&n.composedPath?n.composedPath()[0]:n.target}class ig{get currentNode(){return this._currentNode}set currentNode(t){if(!Ne(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const e=[];let r=t,i=t;for(this._currentNode=t;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const s=r,a=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});e.push(a),a.currentNode=i,this._currentSetFor.add(a),r=i=s.host}else r=r.parentNode;const o=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});e.push(o),o.currentNode=i,this._currentSetFor.add(o),this._walkerStack=e}get doc(){return this._doc}firstChild(){let t=this.currentNode,e=this.nextNode();return Ne(t,e)?(e&&(this.currentNode=e),e):(this.currentNode=t,null)}lastChild(){let e=this._walkerStack[0].lastChild();return e&&(this.currentNode=e),e}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var e;let i;if(typeof this.filter=="function"?i=this.filter(t):!((e=this.filter)===null||e===void 0)&&e.acceptNode&&(i=this.filter.acceptNode(t)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let o=this.nextNode();return o&&(this.currentNode=o),o}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const e=t.previousNode();if(e){if(e.shadowRoot){var r;let o;if(typeof this.filter=="function"?o=this.filter(e):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(o=this.filter.acceptNode(e)),o===NodeFilter.FILTER_ACCEPT)return e&&(this.currentNode=e),e;let s=this.lastChild();return s&&(this.currentNode=s),s}return e&&(this.currentNode=e),e}else if(this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,e,r,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=s=>{if(s.nodeType===Node.ELEMENT_NODE){const l=s.shadowRoot;if(l){const u=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(u),NodeFilter.FILTER_ACCEPT}else{var a;if(typeof this.filter=="function")return this.filter(s);if(!((a=this.filter)===null||a===void 0)&&a.acceptNode)return this.filter.acceptNode(s);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=e,this.filter=i??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=e,this._walkerStack.unshift(t.createTreeWalker(e,r,this._acceptNode));const o=e.shadowRoot;if(o){const s=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(s)}}}function og(n,t,e,r){return Ln()?new ig(n,t,e,r):n.createTreeWalker(t,e,r)}function mc(n){var t,e,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n)){var i=n.length;for(t=0;t<i;t++)n[t]&&(e=mc(n[t]))&&(r&&(r+=" "),r+=e)}else for(e in n)n[e]&&(r&&(r+=" "),r+=e);return r}function sg(){for(var n,t,e=0,r="",i=arguments.length;e<i;e++)(n=arguments[e])&&(t=mc(n))&&(r&&(r+=" "),r+=t);return r}function De(...n){let t={...n[0]};for(let e=1;e<n.length;e++){let r=n[e];for(let i in r){let o=t[i],s=r[i];typeof o=="function"&&typeof s=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=b4(o,s):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof s=="string"?t[i]=sg(o,s):i==="id"&&o&&s?t.id=eg(o,s):t[i]=s!==void 0?s:o}}return t}function gc(...n){return n.length===1&&n[0]?n[0]:t=>{let e=!1;const r=n.map(i=>{const o=yc(i,t);return e||(e=typeof o=="function"),o});if(e)return()=>{r.forEach((i,o)=>{typeof i=="function"?i():yc(n[o],null)})}}}function yc(n,t){if(typeof n=="function")return n(t);n!=null&&(n.current=t)}const ag=new Set(["id"]),lg=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),cg=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),ug=new Set(["dir","lang","hidden","inert","translate"]),bc=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),dg=/^(data-.*)$/;function it(n,t={}){let{labelable:e,isLink:r,global:i,events:o=i,propNames:s}=t,a={};for(const l in n)Object.prototype.hasOwnProperty.call(n,l)&&(ag.has(l)||e&&lg.has(l)||r&&cg.has(l)||i&&ug.has(l)||o&&bc.has(l)||l.endsWith("Capture")&&bc.has(l.slice(0,-7))||s?.has(l)||dg.test(l))&&(a[l]=n[l]);return a}function m1(n){if(fg())n.focus({preventScroll:!0});else{let t=pg(n);n.focus(),hg(t)}}let Kn=null;function fg(){if(Kn==null){Kn=!1;try{document.createElement("div").focus({get preventScroll(){return Kn=!0,!0}})}catch{}}return Kn}function pg(n){let t=n.parentNode,e=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&e.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&e.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),e}function hg(n){for(let{element:t,scrollTop:e,scrollLeft:r}of n)t.scrollTop=e,t.scrollLeft=r}function Bn(n){var t;if(typeof window>"u"||window.navigator==null)return!1;let e=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(e)&&e.some(r=>n.test(r.brand))||n.test(window.navigator.userAgent)}function x4(n){var t;return typeof window<"u"&&window.navigator!=null?n.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function B1(n){if(process.env.NODE_ENV==="test")return n;let t=null;return()=>(t==null&&(t=n()),t)}const ot=B1(function(){return x4(/^Mac/i)}),vg=B1(function(){return x4(/^iPhone/i)}),xc=B1(function(){return x4(/^iPad/i)||ot()&&navigator.maxTouchPoints>1}),M4=B1(function(){return vg()||xc()}),mg=B1(function(){return ot()||M4()}),gg=B1(function(){return Bn(/AppleWebKit/i)&&!Mc()}),Mc=B1(function(){return Bn(/Chrome/i)}),E4=B1(function(){return Bn(/Android/i)}),yg=B1(function(){return Bn(/Firefox/i)}),bg=c.createContext({isNative:!0,open:Eg,useHref:n=>n});function Hn(){return c.useContext(bg)}function xg(n,t){let e=n.getAttribute("target");return(!e||e==="_self")&&n.origin===location.origin&&!n.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function st(n,t,e=!0){var r,i;let{metaKey:o,ctrlKey:s,altKey:a,shiftKey:l}=t;yg()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&n.target==="_blank"&&(ot()?o=!0:s=!0);let u=gg()&&ot()&&!xc()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:s,altKey:a,shiftKey:l}):new MouseEvent("click",{metaKey:o,ctrlKey:s,altKey:a,shiftKey:l,bubbles:!0,cancelable:!0});st.isOpening=e,m1(n),n.dispatchEvent(u),st.isOpening=!1}st.isOpening=!1;function Mg(n,t){if(n instanceof HTMLAnchorElement)t(n);else if(n.hasAttribute("data-href")){let e=document.createElement("a");e.href=n.getAttribute("data-href"),n.hasAttribute("data-target")&&(e.target=n.getAttribute("data-target")),n.hasAttribute("data-rel")&&(e.rel=n.getAttribute("data-rel")),n.hasAttribute("data-download")&&(e.download=n.getAttribute("data-download")),n.hasAttribute("data-ping")&&(e.ping=n.getAttribute("data-ping")),n.hasAttribute("data-referrer-policy")&&(e.referrerPolicy=n.getAttribute("data-referrer-policy")),n.appendChild(e),t(e),n.removeChild(e)}}function Eg(n,t){Mg(n,e=>st(e,t))}function Ig(n){let t=Hn();var e;const r=t.useHref((e=n?.href)!==null&&e!==void 0?e:"");return{href:n?.href?r:void 0,target:n?.target,rel:n?.rel,download:n?.download,ping:n?.ping,referrerPolicy:n?.referrerPolicy}}function wg(n,t,e,r){!t.isNative&&n.currentTarget instanceof HTMLAnchorElement&&n.currentTarget.href&&!n.isDefaultPrevented()&&xg(n.currentTarget,n)&&e&&(n.preventDefault(),t.open(n.currentTarget,n,e,r))}let G1=new Map,I4=new Set;function Ec(){if(typeof window>"u")return;function n(r){return"propertyName"in r}let t=r=>{if(!n(r)||!r.target)return;let i=G1.get(r.target);i||(i=new Set,G1.set(r.target,i),r.target.addEventListener("transitioncancel",e,{once:!0})),i.add(r.propertyName)},e=r=>{if(!n(r)||!r.target)return;let i=G1.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",e),G1.delete(r.target)),G1.size===0)){for(let o of I4)o();I4.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",e)}typeof document<"u"&&(document.readyState!=="loading"?Ec():document.addEventListener("DOMContentLoaded",Ec));function Sg(){for(const[n]of G1)"isConnected"in n&&!n.isConnected&&G1.delete(n)}function Ic(n){requestAnimationFrame(()=>{Sg(),G1.size===0?n():I4.add(n)})}function at(){let n=c.useRef(new Map),t=c.useCallback((i,o,s,a)=>{let l=a?.once?(...u)=>{n.current.delete(s),s(...u)}:s;n.current.set(s,{type:o,eventTarget:i,fn:l,options:a}),i.addEventListener(o,l,a)},[]),e=c.useCallback((i,o,s,a)=>{var l;let u=((l=n.current.get(s))===null||l===void 0?void 0:l.fn)||s;i.removeEventListener(o,u,a),n.current.delete(s)},[]),r=c.useCallback(()=>{n.current.forEach((i,o)=>{e(i.eventTarget,i.type,o,i.options)})},[e]);return c.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:e,removeAllGlobalListeners:r}}function Cg(n,t){let{id:e,"aria-label":r,"aria-labelledby":i}=n;return e=C1(e),i&&r?i=[...new Set([e,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:e,"aria-label":r,"aria-labelledby":i}}function Vn(n){const t=c.useRef(null),e=c.useRef(void 0),r=c.useCallback(i=>{if(typeof n=="function"){const o=n,s=o(i);return()=>{typeof s=="function"?s():o(null)}}else if(n)return n.current=i,()=>{n.current=null}},[n]);return c.useMemo(()=>({get current(){return t.current},set current(i){t.current=i,e.current&&(e.current(),e.current=void 0),i!=null&&(e.current=r(i))}}),[r])}function wc(n,t){const e=c.useRef(!0),r=c.useRef(null);Fe(()=>(e.current=!0,()=>{e.current=!1}),[]),Fe(()=>{e.current?e.current=!1:(!r.current||t.some((i,o)=>!Object.is(i,r[o])))&&n(),r.current=t},t)}function Pg(){return typeof window.ResizeObserver<"u"}function kg(n){const{ref:t,box:e,onResize:r}=n;c.useEffect(()=>{let i=t?.current;if(i)if(Pg()){const o=new window.ResizeObserver(s=>{s.length&&r()});return o.observe(i,{box:e}),()=>{i&&o.unobserve(i)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,e])}function w4(n,t){Fe(()=>{if(n&&n.ref&&t)return n.ref.current=t.current,()=>{n.ref&&(n.ref.current=null)}})}function S4(n,t){if(!n)return!1;let e=window.getComputedStyle(n),r=/(auto|scroll)/.test(e.overflow+e.overflowX+e.overflowY);return r&&t&&(r=n.scrollHeight!==n.clientHeight||n.scrollWidth!==n.clientWidth),r}function zg(n,t){const e=[];for(;n&&n!==document.documentElement;)S4(n,t)&&e.push(n),n=n.parentElement;return e}let $g=0;const C4=new Map;function Tg(n){let[t,e]=c.useState();return Fe(()=>{if(!n)return;let r=C4.get(n);if(r)e(r.element.id);else{let i=`react-aria-description-${$g++}`;e(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=n,document.body.appendChild(o),r={refCount:0,element:o},C4.set(n,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),C4.delete(n))}},[n]),{"aria-describedby":n?t:void 0}}function qn(n,t,e,r){let i=Je(e),o=e==null;c.useEffect(()=>{if(o||!n.current)return;let s=n.current;return s.addEventListener(t,i,r),()=>{s.removeEventListener(t,i,r)}},[n,t,r,o,i])}function Sc(n,t){let e=Cc(n,t,"left"),r=Cc(n,t,"top"),i=t.offsetWidth,o=t.offsetHeight,s=n.scrollLeft,a=n.scrollTop,{borderTopWidth:l,borderLeftWidth:u,scrollPaddingTop:d,scrollPaddingRight:f,scrollPaddingBottom:h,scrollPaddingLeft:p}=getComputedStyle(n),m=s+parseInt(u,10),v=a+parseInt(l,10),y=m+n.clientWidth,x=v+n.clientHeight,g=parseInt(d,10)||0,M=parseInt(h,10)||0,b=parseInt(f,10)||0,E=parseInt(p,10)||0;e<=s+E?s=e-parseInt(u,10)-E:e+i>y-b&&(s+=e+i-y+b),r<=v+g?a=r-parseInt(l,10)-g:r+o>x-M&&(a+=r+o-x+M),n.scrollLeft=s,n.scrollTop=a}function Cc(n,t,e){const r=e==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==n);){if(t.offsetParent.contains(n)){i-=n[r];break}t=t.offsetParent}return i}function Pc(n,t){if(n&&document.contains(n)){let s=document.scrollingElement||document.documentElement;if(window.getComputedStyle(s).overflow==="hidden"){let l=zg(n);for(let u of l)Sc(u,n)}else{var e;let{left:l,top:u}=n.getBoundingClientRect();n==null||(e=n.scrollIntoView)===null||e===void 0||e.call(n,{block:"nearest"});let{left:d,top:f}=n.getBoundingClientRect();if(Math.abs(l-d)>1||Math.abs(u-f)>1){var r,i,o;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(o=n.scrollIntoView)===null||o===void 0||o.call(n,{block:"nearest"})}}}}function P4(n){return n.mozInputSource===0&&n.isTrusted?!0:E4()&&n.pointerType?n.type==="click"&&n.buttons===1:n.detail===0&&!n.pointerType}function Dg(n){return!E4()&&n.width===0&&n.height===0||n.width===1&&n.height===1&&n.pressure===0&&n.detail===0&&n.pointerType==="mouse"}function Og(n,t,e){let r=Je(()=>{e&&e(t)});c.useEffect(()=>{var i;let o=n==null||(i=n.current)===null||i===void 0?void 0:i.form;return o?.addEventListener("reset",r),()=>{o?.removeEventListener("reset",r)}},[n,r])}const _g="react-aria-clear-focus",Ng="react-aria-focus";function kt(n){return ot()?n.metaKey:n.ctrlKey}const Ag=typeof Element<"u"&&"checkVisibility"in Element.prototype;function Fg(n){const t=v1(n);if(!(n instanceof t.HTMLElement)&&!(n instanceof t.SVGElement))return!1;let{display:e,visibility:r}=n.style,i=e!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=n.ownerDocument.defaultView;let{display:s,visibility:a}=o(n);i=s!=="none"&&a!=="hidden"&&a!=="collapse"}return i}function Lg(n,t){return!n.hasAttribute("hidden")&&!n.hasAttribute("data-react-aria-prevent-focus")&&(n.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?n.hasAttribute("open"):!0)}function k4(n,t){return Ag?n.checkVisibility():n.nodeName!=="#comment"&&Fg(n)&&Lg(n,t)&&(!n.parentElement||k4(n.parentElement,n))}const z4=["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]:not([contenteditable^="false"])',"permission"],Kg=z4.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";z4.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Bg=z4.join(':not([hidden]):not([tabindex="-1"]),');function kc(n){return n.matches(Kg)&&k4(n)&&!zc(n)}function Hg(n){return n.matches(Bg)&&k4(n)&&!zc(n)}function zc(n){let t=n;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function jn(n,t,e){let[r,i]=c.useState(n||t),o=c.useRef(n!==void 0),s=n!==void 0;c.useEffect(()=>{let u=o.current;u!==s&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),o.current=s},[s]);let a=s?n:r,l=c.useCallback((u,...d)=>{let f=(h,...p)=>{e&&(Object.is(a,h)||e(h,...p)),s||(a=h)};typeof u=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((p,...m)=>{let v=u(s?a:p,...m);return f(v,...d),s?p:v})):(s||i(u),f(u,...d))},[s,a,e]);return[a,l]}function $4(n,t=-1/0,e=1/0){return Math.min(Math.max(n,t),e)}function Un(n,t){let e=n,r=0,i=t.toString(),o=i.toLowerCase().indexOf("e-");if(o>0)r=Math.abs(Math.floor(Math.log10(Math.abs(t))))+o;else{let s=i.indexOf(".");s>=0&&(r=i.length-s)}if(r>0){let s=Math.pow(10,r);e=Math.round(e*s)/s}return e}function y6(n,t,e,r){t=Number(t),e=Number(e);let i=(n-(isNaN(t)?0:t))%r,o=Un(Math.abs(i)*2>=r?n+Math.sign(i)*(r-Math.abs(i)):n-i,r);return isNaN(t)?!isNaN(e)&&o>e&&(o=Math.floor(Un(e/r,r))*r):o<t?o=t:!isNaN(e)&&o>e&&(o=t+Math.floor(Un((e-t)/r,r))*r),o=Un(o,r),o}const $c=Symbol("default");function Wn({values:n,children:t}){for(let[e,r]of n)t=c.createElement(e.Provider,{value:r},t);return t}function Yn(n){let{className:t,style:e,children:r,defaultClassName:i,defaultChildren:o,defaultStyle:s,values:a}=n;return c.useMemo(()=>{let l,u,d;return typeof t=="function"?l=t({...a,defaultClassName:i}):l=t,typeof e=="function"?u=e({...a,defaultStyle:s||{}}):u=e,typeof r=="function"?d=r({...a,defaultChildren:o}):r==null?d=o:d=r,{className:l??i,style:u||s?{...s,...u}:void 0,children:d??o,"data-rac":""}},[t,e,r,i,o,s,a])}function Tc(n,t){let e=c.useContext(n);if(t===null)return null;if(e&&typeof e=="object"&&"slots"in e&&e.slots){let r=t||$c;if(!e.slots[r]){let i=new Intl.ListFormat().format(Object.keys(e.slots).map(s=>`"${s}"`)),o=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${o} Valid slot names are ${i}.`)}return e.slots[r]}return e}function T4(n,t,e){let r=Tc(e,n.slot)||{},{ref:i,...o}=r,s=Vn(c.useMemo(()=>gc(t,i),[t,i])),a=De(o,n);return"style"in o&&o.style&&"style"in n&&n.style&&(typeof o.style=="function"||typeof n.style=="function"?a.style=l=>{let u=typeof o.style=="function"?o.style(l):o.style,d={...l.defaultStyle,...u},f=typeof n.style=="function"?n.style({...l,defaultStyle:d}):n.style;return{...d,...f}}:a.style={...o.style,...n.style}),[a,s]}function Vg(n=!0){let[t,e]=c.useState(n),r=c.useRef(!1),i=c.useCallback(o=>{r.current=!0,e(!!o)},[]);return Fe(()=>{r.current||e(!1)},[]),[i,t]}class D4{get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new D4(this.type,this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t.render=this.render,t.colSpan=this.colSpan,t.colIndex=this.colIndex,t}constructor(t,e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=t,this.key=e}}class O4{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0}getChildren(t){let e=this.keyMap;return{*[Symbol.iterator](){let r=e.get(t),i=r?.firstChildKey!=null?e.get(r.firstChildKey):null;for(;i;)yield i,i=i.nextKey!=null?e.get(i.nextKey):void 0}}}getKeyBefore(t){let e=this.keyMap.get(t);if(!e)return null;if(e.prevKey!=null){for(e=this.keyMap.get(e.prevKey);e&&e.type!=="item"&&e.lastChildKey!=null;)e=this.keyMap.get(e.lastChildKey);var r;return(r=e?.key)!==null&&r!==void 0?r:null}return e.parentKey}getKeyAfter(t){let e=this.keyMap.get(t);if(!e)return null;if(e.type!=="item"&&e.firstChildKey!=null)return e.firstChildKey;for(;e;){if(e.nextKey!=null)return e.nextKey;if(e.parentKey!=null)e=this.keyMap.get(e.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;t?.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);var e;return(e=t?.key)!==null&&e!==void 0?e:null}getItem(t){var e;return(e=this.keyMap.get(t))!==null&&e!==void 0?e:null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,e=new t;return e.keyMap=new Map(this.keyMap),e.firstKey=this.firstKey,e.lastKey=this.lastKey,e.itemCount=this.itemCount,e}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");t.type==="item"&&this.keyMap.get(t.key)==null&&this.itemCount++,this.keyMap.set(t.key,t)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let e=this.keyMap.get(t);e!=null&&e.type==="item"&&this.itemCount--,this.keyMap.delete(t)}commit(t,e,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=e,this.frozen=!r}UNSTABLE_filter(t){let e=new O4,r=null;for(let i of this)if(i.type==="section"&&i.hasChildNodes){let o=i.clone(),s=null;for(let a of this.getChildren(i.key))if(Dc(a,t,this,e)){let l=a.clone();s==null&&(o.firstChildKey=l.key),e.firstKey==null&&(e.firstKey=o.key),s&&s.parentKey===l.parentKey?(s.nextKey=l.key,l.prevKey=s.key):l.prevKey=null,l.nextKey=null,e.addNode(l),s=l}s&&(s.type!=="header"?(o.lastChildKey=s.key,r==null?o.prevKey=null:(r.type==="section"||r.type==="separator")&&(r.nextKey=o.key,o.prevKey=r.key),o.nextKey=null,r=o,e.addNode(o)):(e.firstKey===o.key&&(e.firstKey=null),e.removeNode(s.key)))}else if(i.type==="separator"){let o=i.clone();o.nextKey=null,r?.type==="section"&&(r.nextKey=o.key,o.prevKey=r.key,r=o,e.addNode(o))}else{let o=i.clone();Dc(o,t,this,e)&&(e.firstKey==null&&(e.firstKey=o.key),r!=null&&r.type!=="section"&&r.type!=="separator"&&r.parentKey===o.parentKey?(r.nextKey=o.key,o.prevKey=r.key):o.prevKey=null,o.nextKey=null,e.addNode(o),r=o)}if(r?.type==="separator"&&r.nextKey===null){let i;r.prevKey!=null&&(i=e.getItem(r.prevKey),i.nextKey=null),e.removeNode(r.key),r=i}return e.lastKey=r?.key||null,e}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function Dc(n,t,e,r){if(n.type==="subdialogtrigger"||n.type==="submenutrigger"){let i=[...e.getChildren(n.key)][0];if(i&&t(i.textValue)){let o=i.clone();return r.addNode(o),!0}else return!1}else return n.type==="header"?!0:t(n.textValue)}class Oc{*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this)}get isConnected(){var t;return((t=this.parentNode)===null||t===void 0?void 0:t.isConnected)||!1}invalidateChildIndices(t){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||t.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=t,this.ownerDocument.markDirty(this))}updateChildIndices(){let t=this._minInvalidChildIndex;for(;t;)t.index=t.previousSibling?t.previousSibling.index+1:0,t=t.nextSibling;this._minInvalidChildIndex=null}appendChild(t){t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(t,e){if(e==null)return this.appendChild(t);t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=e,t.previousSibling=e.previousSibling,t.index=e.index-1,this.firstChild===e?this.firstChild=t:e.previousSibling&&(e.previousSibling.nextSibling=t),e.previousSibling=t,t.parentNode=e.parentNode,this.invalidateChildIndices(t),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(t){t.parentNode!==this||!this.ownerDocument.isMounted||(this._minInvalidChildIndex===t&&(this._minInvalidChildIndex=null),t.nextSibling&&(this.invalidateChildIndices(t.nextSibling),t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.markDirty(t),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let t=this.previousSibling;for(;t&&t.isHidden;)t=t.previousSibling;return t}get nextVisibleSibling(){let t=this.nextSibling;for(;t&&t.isHidden;)t=t.nextSibling;return t}get firstVisibleChild(){let t=this.firstChild;for(;t&&t.isHidden;)t=t.nextSibling;return t}get lastVisibleChild(){let t=this.lastChild;for(;t&&t.isHidden;)t=t.previousSibling;return t}constructor(t){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=t}}class zt extends Oc{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof zt?this.parentNode.level+(this.node.type==="item"?1:0):0}getMutableNode(){return this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node}updateNode(){var t,e,r;let i=this.nextVisibleSibling,o=this.getMutableNode();o.index=this.index,o.level=this.level,o.parentKey=this.parentNode instanceof zt?this.parentNode.node.key:null;var s;o.prevKey=(s=(t=this.previousVisibleSibling)===null||t===void 0?void 0:t.node.key)!==null&&s!==void 0?s:null;var a;o.nextKey=(a=i?.node.key)!==null&&a!==void 0?a:null,o.hasChildNodes=!!this.firstChild;var l;o.firstChildKey=(l=(e=this.firstVisibleChild)===null||e===void 0?void 0:e.node.key)!==null&&l!==void 0?l:null;var u;if(o.lastChildKey=(u=(r=this.lastVisibleChild)===null||r===void 0?void 0:r.node.key)!==null&&u!==void 0?u:null,(o.colSpan!=null||o.colIndex!=null)&&i){var d,f;let h=((d=o.colIndex)!==null&&d!==void 0?d:o.index)+((f=o.colSpan)!==null&&f!==void 0?f:1);if(h!==i.node.colIndex){let p=i.getMutableNode();p.colIndex=h}}}setProps(t,e,r,i){let o=this.getMutableNode(),{value:s,textValue:a,id:l,...u}=t;if(u.ref=e,o.props=u,o.rendered=r,o.render=i,o.value=s,o.textValue=a||(typeof u.children=="string"?u.children:"")||t["aria-label"]||"",l!=null&&l!==o.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");o.key=l}u.colSpan!=null&&(o.colSpan=u.colSpan),this.hasSetProps=!0,this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let t=this;return{get display(){return t.isHidden?"none":""},set display(e){let r=e==="none";if(t.isHidden!==r){var i,o;(((i=t.parentNode)===null||i===void 0?void 0:i.firstVisibleChild)===t||((o=t.parentNode)===null||o===void 0?void 0:o.lastVisibleChild)===t)&&t.ownerDocument.markDirty(t.parentNode);let s=t.previousVisibleSibling,a=t.nextVisibleSibling;s&&t.ownerDocument.markDirty(s),a&&t.ownerDocument.markDirty(a),t.isHidden=r,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,e){super(e),this.nodeType=8,this.isMutated=!0,this._index=0,this.hasSetProps=!1,this.isHidden=!1,this.node=new D4(t,`react-aria-${++e.nodeId}`)}}class qg extends Oc{get isConnected(){return this.isMounted}createElement(t){return new zt(t,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(t){this.dirtyNodes.add(t)}addNode(t){if(t.isHidden)return;let e=this.getMutableCollection();if(!e.getItem(t.node.key))for(let r of t)this.addNode(r);e.addNode(t.node)}removeNode(t){for(let r of t)this.removeNode(r);this.getMutableCollection().removeNode(t.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let o of this.dirtyNodes)o instanceof zt&&(!o.isConnected||o.isHidden)?this.removeNode(o):o.updateChildIndices();for(let o of this.dirtyNodes)o instanceof zt&&(o.isConnected&&!o.isHidden&&(o.updateNode(),this.addNode(o)),o.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var t,e,r,i;this.nextCollection.commit((r=(t=this.firstVisibleChild)===null||t===void 0?void 0:t.node.key)!==null&&r!==void 0?r:null,(i=(e=this.lastVisibleChild)===null||e===void 0?void 0:e.node.key)!==null&&i!==void 0?i:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let t of this.subscriptions)t();this.inSubscription=!1}}subscribe(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(t){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=t,this.nextCollection=t}}function _c(n){let{children:t,items:e,idScope:r,addIdAndValue:i,dependencies:o=[]}=n,s=c.useMemo(()=>new WeakMap,o);return c.useMemo(()=>{if(e&&typeof t=="function"){let u=[];for(let d of e){let f=s.get(d);if(!f){f=t(d);var a,l;let h=(l=(a=f.props.id)!==null&&a!==void 0?a:d.key)!==null&&l!==void 0?l:d.id;if(h==null)throw new Error("Could not determine key for item");r&&(h=r+":"+h),f=c.cloneElement(f,i?{key:h,id:h,value:d}:{key:h}),s.set(d,f)}u.push(f)}return u}else if(typeof t!="function")return t},[t,e,s,r,i])}if(typeof HTMLTemplateElement<"u"){const n=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:n.call(this)}})}const _4=c.createContext(!1);function jg(n){if(c.useContext(_4))return c.createElement(c.Fragment,null,n.children);let e=c.createElement(_4.Provider,{value:!0},n.children);return c.createElement("template",{"data-react-aria-hidden":!0},e)}function Ug(n){let t=(e,r)=>c.useContext(_4)?null:n(e,r);return t.displayName=n.displayName||n.name,c.forwardRef(t)}function N4(n){let t=n;return t.nativeEvent=n,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Nc(n,t){Object.defineProperty(n,"target",{value:t}),Object.defineProperty(n,"currentTarget",{value:t})}function Ac(n){let t=c.useRef({isFocused:!1,observer:null});Fe(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let e=Je(r=>{n?.(r)});return c.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,o=s=>{if(t.current.isFocused=!1,i.disabled){let a=N4(s);e(a)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let a=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let Rn=!1;function Fc(n){for(;n&&!kc(n);)n=n.parentElement;let t=v1(n),e=t.document.activeElement;if(!e||e===n)return;Rn=!0;let r=!1,i=d=>{(d.target===e||r)&&d.stopImmediatePropagation()},o=d=>{(d.target===e||r)&&(d.stopImmediatePropagation(),!n&&!r&&(r=!0,m1(e),l()))},s=d=>{(d.target===n||r)&&d.stopImmediatePropagation()},a=d=>{(d.target===n||r)&&(d.stopImmediatePropagation(),r||(r=!0,m1(e),l()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",o,!0),t.addEventListener("focusin",a,!0),t.addEventListener("focus",s,!0);let l=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",o,!0),t.removeEventListener("focusin",a,!0),t.removeEventListener("focus",s,!0),Rn=!1,r=!1},u=requestAnimationFrame(l);return l}let $t="default",A4="",Gn=new WeakMap;function F4(n){if(M4()){if($t==="default"){const t=Pe(n);A4=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}$t="disabled"}else if(n instanceof HTMLElement||n instanceof SVGElement){let t="userSelect"in n.style?"userSelect":"webkitUserSelect";Gn.set(n,n.style[t]),n.style[t]="none"}}function Xn(n){if(M4()){if($t!=="disabled")return;$t="restoring",setTimeout(()=>{Ic(()=>{if($t==="restoring"){const t=Pe(n);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=A4||""),A4="",$t="default"}})},300)}else if((n instanceof HTMLElement||n instanceof SVGElement)&&n&&Gn.has(n)){let t=Gn.get(n),e="userSelect"in n.style?"userSelect":"webkitUserSelect";n.style[e]==="none"&&(n.style[e]=t),n.getAttribute("style")===""&&n.removeAttribute("style"),Gn.delete(n)}}const Jn=c.createContext({register:()=>{}});Jn.displayName="PressResponderContext";function Wg(n,t){return t.get?t.get.call(n):t.value}function Lc(n,t,e){if(!t.has(n))throw new TypeError("attempted to "+e+" private field on non-instance");return t.get(n)}function Yg(n,t){var e=Lc(n,t,"get");return Wg(n,e)}function Rg(n,t){if(t.has(n))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Gg(n,t,e){Rg(n,t),t.set(n,e)}function Xg(n,t,e){if(t.set)t.set.call(n,e);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=e}}function Kc(n,t,e){var r=Lc(n,t,"set");return Xg(n,r,e),e}function Jg(n){let t=c.useContext(Jn);if(t){let{register:e,...r}=t;n=De(r,n),e()}return w4(t,n.ref),n}var Zn=new WeakMap;class Qn{continuePropagation(){Kc(this,Zn,!1)}get shouldStopPropagation(){return Yg(this,Zn)}constructor(t,e,r,i){Gg(this,Zn,{writable:!0,value:void 0}),Kc(this,Zn,!0);var o;let s=(o=i?.target)!==null&&o!==void 0?o:r.currentTarget;const a=s?.getBoundingClientRect();let l,u=0,d,f=null;r.clientX!=null&&r.clientY!=null&&(d=r.clientX,f=r.clientY),a&&(d!=null&&f!=null?(l=d-a.left,u=f-a.top):(l=a.width/2,u=a.height/2)),this.type=t,this.pointerType=e,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=u}}const Bc=Symbol("linkClicked"),Hc="react-aria-pressable-style",Vc="data-react-aria-pressable";function er(n){let{onPress:t,onPressChange:e,onPressStart:r,onPressEnd:i,onPressUp:o,onClick:s,isDisabled:a,isPressed:l,preventFocusOnPress:u,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:h,...p}=Jg(n),[m,v]=c.useState(!1),y=c.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:x,removeAllGlobalListeners:g}=at(),M=Je((I,L)=>{let F=y.current;if(a||F.didFirePressStart)return!1;let $=!0;if(F.isTriggeringEvent=!0,r){let X=new Qn("pressstart",L,I);r(X),$=X.shouldStopPropagation}return e&&e(!0),F.isTriggeringEvent=!1,F.didFirePressStart=!0,v(!0),$}),b=Je((I,L,F=!0)=>{let $=y.current;if(!$.didFirePressStart)return!1;$.didFirePressStart=!1,$.isTriggeringEvent=!0;let X=!0;if(i){let _=new Qn("pressend",L,I);i(_),X=_.shouldStopPropagation}if(e&&e(!1),v(!1),t&&F&&!a){let _=new Qn("press",L,I);t(_),X&&(X=_.shouldStopPropagation)}return $.isTriggeringEvent=!1,X}),E=Je((I,L)=>{let F=y.current;if(a)return!1;if(o){F.isTriggeringEvent=!0;let $=new Qn("pressup",L,I);return o($),F.isTriggeringEvent=!1,$.shouldStopPropagation}return!0}),w=Je(I=>{let L=y.current;if(L.isPressed&&L.target){L.didFirePressStart&&L.pointerType!=null&&b(lt(L.target,I),L.pointerType,!1),L.isPressed=!1,L.isOverTarget=!1,L.activePointerId=null,L.pointerType=null,g(),f||Xn(L.target);for(let F of L.disposables)F();L.disposables=[]}}),z=Je(I=>{d&&w(I)}),A=Je(I=>{s?.(I)}),C=Je((I,L)=>{if(s){let F=new MouseEvent("click",I);Nc(F,L),s(N4(F))}}),H=c.useMemo(()=>{let I=y.current,L={onKeyDown($){if(K4($.nativeEvent,$.currentTarget)&&Ne($.currentTarget,Me($.nativeEvent))){var X;Uc(Me($.nativeEvent),$.key)&&$.preventDefault();let _=!0;if(!I.isPressed&&!$.repeat){I.target=$.currentTarget,I.isPressed=!0,I.pointerType="keyboard",_=M($,"keyboard");let B=$.currentTarget,W=N=>{K4(N,B)&&!N.repeat&&Ne(B,Me(N))&&I.target&&E(lt(I.target,N),"keyboard")};x(Pe($.currentTarget),"keyup",b4(W,F),!0)}_&&$.stopPropagation(),$.metaKey&&ot()&&((X=I.metaKeyEvents)===null||X===void 0||X.set($.key,$.nativeEvent))}else $.key==="Meta"&&(I.metaKeyEvents=new Map)},onClick($){if(!($&&!Ne($.currentTarget,Me($.nativeEvent)))&&$&&$.button===0&&!I.isTriggeringEvent&&!st.isOpening){let X=!0;if(a&&$.preventDefault(),!I.ignoreEmulatedMouseEvents&&!I.isPressed&&(I.pointerType==="virtual"||P4($.nativeEvent))){let _=M($,"virtual"),B=E($,"virtual"),W=b($,"virtual");A($),X=_&&B&&W}else if(I.isPressed&&I.pointerType!=="keyboard"){let _=I.pointerType||$.nativeEvent.pointerType||"virtual",B=E(lt($.currentTarget,$),_),W=b(lt($.currentTarget,$),_,!0);X=B&&W,I.isOverTarget=!1,A($),w($)}I.ignoreEmulatedMouseEvents=!1,X&&$.stopPropagation()}}},F=$=>{var X;if(I.isPressed&&I.target&&K4($,I.target)){var _;Uc(Me($),$.key)&&$.preventDefault();let W=Me($),N=Ne(I.target,Me($));b(lt(I.target,$),"keyboard",N),N&&C($,I.target),g(),$.key!=="Enter"&&L4(I.target)&&Ne(I.target,W)&&!$[Bc]&&($[Bc]=!0,st(I.target,$,!1)),I.isPressed=!1,(_=I.metaKeyEvents)===null||_===void 0||_.delete($.key)}else if($.key==="Meta"&&(!((X=I.metaKeyEvents)===null||X===void 0)&&X.size)){var B;let W=I.metaKeyEvents;I.metaKeyEvents=void 0;for(let N of W.values())(B=I.target)===null||B===void 0||B.dispatchEvent(new KeyboardEvent("keyup",N))}};if(typeof PointerEvent<"u"){L.onPointerDown=_=>{if(_.button!==0||!Ne(_.currentTarget,Me(_.nativeEvent)))return;if(Dg(_.nativeEvent)){I.pointerType="virtual";return}I.pointerType=_.pointerType;let B=!0;if(!I.isPressed){I.isPressed=!0,I.isOverTarget=!0,I.activePointerId=_.pointerId,I.target=_.currentTarget,f||F4(I.target),B=M(_,I.pointerType);let W=Me(_.nativeEvent);"releasePointerCapture"in W&&W.releasePointerCapture(_.pointerId),x(Pe(_.currentTarget),"pointerup",$,!1),x(Pe(_.currentTarget),"pointercancel",X,!1)}B&&_.stopPropagation()},L.onMouseDown=_=>{if(Ne(_.currentTarget,Me(_.nativeEvent))&&_.button===0){if(u){let B=Fc(_.target);B&&I.disposables.push(B)}_.stopPropagation()}},L.onPointerUp=_=>{!Ne(_.currentTarget,Me(_.nativeEvent))||I.pointerType==="virtual"||_.button===0&&!I.isPressed&&E(_,I.pointerType||_.pointerType)},L.onPointerEnter=_=>{_.pointerId===I.activePointerId&&I.target&&!I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!0,M(lt(I.target,_),I.pointerType))},L.onPointerLeave=_=>{_.pointerId===I.activePointerId&&I.target&&I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!1,b(lt(I.target,_),I.pointerType,!1),z(_))};let $=_=>{if(_.pointerId===I.activePointerId&&I.isPressed&&_.button===0&&I.target){if(Ne(I.target,Me(_))&&I.pointerType!=null){let B=!1,W=setTimeout(()=>{I.isPressed&&I.target instanceof HTMLElement&&(B?w(_):(m1(I.target),I.target.click()))},80);x(_.currentTarget,"click",()=>B=!0,!0),I.disposables.push(()=>clearTimeout(W))}else w(_);I.isOverTarget=!1}},X=_=>{w(_)};L.onDragStart=_=>{Ne(_.currentTarget,Me(_.nativeEvent))&&w(_)}}else if(process.env.NODE_ENV==="test"){L.onMouseDown=_=>{if(_.button!==0||!Ne(_.currentTarget,Me(_.nativeEvent)))return;if(I.ignoreEmulatedMouseEvents){_.stopPropagation();return}if(I.isPressed=!0,I.isOverTarget=!0,I.target=_.currentTarget,I.pointerType=P4(_.nativeEvent)?"virtual":"mouse",x1.flushSync(()=>M(_,I.pointerType))&&_.stopPropagation(),u){let W=Fc(_.target);W&&I.disposables.push(W)}x(Pe(_.currentTarget),"mouseup",$,!1)},L.onMouseEnter=_=>{if(!Ne(_.currentTarget,Me(_.nativeEvent)))return;let B=!0;I.isPressed&&!I.ignoreEmulatedMouseEvents&&I.pointerType!=null&&(I.isOverTarget=!0,B=M(_,I.pointerType)),B&&_.stopPropagation()},L.onMouseLeave=_=>{if(!Ne(_.currentTarget,Me(_.nativeEvent)))return;let B=!0;I.isPressed&&!I.ignoreEmulatedMouseEvents&&I.pointerType!=null&&(I.isOverTarget=!1,B=b(_,I.pointerType,!1),z(_)),B&&_.stopPropagation()},L.onMouseUp=_=>{Ne(_.currentTarget,Me(_.nativeEvent))&&!I.ignoreEmulatedMouseEvents&&_.button===0&&!I.isPressed&&E(_,I.pointerType||"mouse")};let $=_=>{if(_.button===0){if(I.ignoreEmulatedMouseEvents){I.ignoreEmulatedMouseEvents=!1;return}I.target&&I.target.contains(_.target)&&I.pointerType!=null||w(_),I.isOverTarget=!1}};L.onTouchStart=_=>{if(!Ne(_.currentTarget,Me(_.nativeEvent)))return;let B=Zg(_.nativeEvent);if(!B)return;I.activePointerId=B.identifier,I.ignoreEmulatedMouseEvents=!0,I.isOverTarget=!0,I.isPressed=!0,I.target=_.currentTarget,I.pointerType="touch",f||F4(I.target),M(X1(I.target,_),I.pointerType)&&_.stopPropagation(),x(v1(_.currentTarget),"scroll",X,!0)},L.onTouchMove=_=>{if(!Ne(_.currentTarget,Me(_.nativeEvent)))return;if(!I.isPressed){_.stopPropagation();return}let B=qc(_.nativeEvent,I.activePointerId),W=!0;B&&jc(B,_.currentTarget)?!I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!0,W=M(X1(I.target,_),I.pointerType)):I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!1,W=b(X1(I.target,_),I.pointerType,!1),z(X1(I.target,_))),W&&_.stopPropagation()},L.onTouchEnd=_=>{if(!Ne(_.currentTarget,Me(_.nativeEvent)))return;if(!I.isPressed){_.stopPropagation();return}let B=qc(_.nativeEvent,I.activePointerId),W=!0;B&&jc(B,_.currentTarget)&&I.pointerType!=null?(E(X1(I.target,_),I.pointerType),W=b(X1(I.target,_),I.pointerType),C(_.nativeEvent,I.target)):I.isOverTarget&&I.pointerType!=null&&(W=b(X1(I.target,_),I.pointerType,!1)),W&&_.stopPropagation(),I.isPressed=!1,I.activePointerId=null,I.isOverTarget=!1,I.ignoreEmulatedMouseEvents=!0,I.target&&!f&&Xn(I.target),g()},L.onTouchCancel=_=>{Ne(_.currentTarget,Me(_.nativeEvent))&&(_.stopPropagation(),I.isPressed&&w(X1(I.target,_)))};let X=_=>{I.isPressed&&Ne(Me(_),I.target)&&w({currentTarget:I.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};L.onDragStart=_=>{Ne(_.currentTarget,Me(_.nativeEvent))&&w(_)}}return L},[x,a,u,g,f,w,z,b,M,E,A,C]);return c.useEffect(()=>{if(!h||process.env.NODE_ENV==="test")return;const I=Pe(h.current);if(!I||!I.head||I.getElementById(Hc))return;const L=I.createElement("style");L.id=Hc,L.textContent=`
|
|
76
76
|
@layer {
|
|
77
77
|
[${Vc}] {
|
|
78
78
|
touch-action: pan-x pan-y pinch-zoom;
|
|
@@ -94,7 +94,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
94
94
|
*
|
|
95
95
|
* This source code is licensed under the MIT license found in the
|
|
96
96
|
* LICENSE file in the root directory of this source tree.
|
|
97
|
-
*/var iu;function vy(){return iu||(iu=1,process.env.NODE_ENV!=="production"&&function(){function n(p,m){return p===m&&(p!==0||1/p===1/m)||p!==p&&m!==m}function t(p,m){d||i.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var v=m();if(!f){var y=m();o(v,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}y=s({inst:{value:v,getSnapshot:m}});var x=y[0].inst,g=y[1];return l(function(){x.value=v,x.getSnapshot=m,e(x)&&g({inst:x})},[p,v,m]),a(function(){return e(x)&&g({inst:x}),p(function(){e(x)&&g({inst:x})})},[p]),u(v),v}function e(p){var m=p.getSnapshot;p=p.value;try{var v=m();return!o(p,v)}catch{return!0}}function r(p,m){return m()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=c,o=typeof Object.is=="function"?Object.is:n,s=i.useState,a=i.useEffect,l=i.useLayoutEffect,u=i.useDebugValue,d=!1,f=!1,h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;G4.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:h,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),G4}var ou;function my(){return ou||(ou=1,process.env.NODE_ENV==="production"?ar.exports=hy():ar.exports=vy()),ar.exports}var gy=my();const su=c.createContext(!1),M6=c.createContext(null);function yy(n){if(c.useContext(M6))return n.content;let{collection:e,document:r}=Ey(n.createCollection);return c.createElement(c.Fragment,null,c.createElement(jg,null,c.createElement(M6.Provider,{value:r},n.content)),c.createElement(by,{render:n.children,collection:e}))}function by({collection:n,render:t}){return t(n)}function xy(n,t,e){let r=Fn(),i=c.useRef(r);i.current=r;let o=c.useCallback(()=>i.current?e():t(),[t,e]);return gy.useSyncExternalStore(n,o)}const My=typeof c.useSyncExternalStore=="function"?c.useSyncExternalStore:xy;function Ey(n){let[t]=c.useState(()=>new qg(n?.()||new O4)),e=c.useCallback(s=>t.subscribe(s),[t]),r=c.useCallback(()=>{let s=t.getCollection();return t.isSSR&&t.resetAfterSSR(),s},[t]),i=c.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]),o=My(e,r,i);return Fe(()=>(t.isMounted=!0,()=>{t.isMounted=!1}),[t]),{collection:o,document:t}}const X4=c.createContext(null);function Iy(n,t,e,r,i,o){let s=c.useCallback(l=>{l?.setProps(t,e,r,o)},[t,e,r,o]),a=c.useContext(X4);if(a){let l=a.ownerDocument.nodesByProps.get(t);return l||(l=a.ownerDocument.createElement(n),l.setProps(t,e,r,o),a.appendChild(l),a.ownerDocument.updateCollection(),a.ownerDocument.nodesByProps.set(t,l)),i?c.createElement(X4.Provider,{value:l},i):null}return c.createElement(n,{ref:s},i)}function wy(n,t){let e=({node:i})=>t(i.props,i.props.ref,i),r=c.forwardRef((i,o)=>{let s=c.useContext(U4);if(!c.useContext(su)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(i,o)}return Iy(n,i,o,"children"in i?i.children:null,null,l=>c.createElement(U4.Provider,{value:s},c.createElement(e,{node:l})))});return r.displayName=t.name,r}function Sy(n){return _c({...n,addIdAndValue:!0})}const au=c.createContext(null);function Cy(n){let t=c.useContext(au),e=(t?.dependencies||[]).concat(n.dependencies),r=n.idScope||t?.idScope,i=Sy({...n,idScope:r,dependencies:e});return c.useContext(M6)&&(i=c.createElement(Py,null,i)),t=c.useMemo(()=>({dependencies:e,idScope:r}),[r,...e]),c.createElement(au.Provider,{value:t},i)}function Py({children:n}){let t=c.useContext(M6),e=c.useMemo(()=>c.createElement(M6.Provider,{value:null},c.createElement(su.Provider,{value:!0},n)),[n]);return Fn()?c.createElement(X4.Provider,{value:t},e):x1.createPortal(e,t)}const ky=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),zy=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function $y(n){if(Intl.Locale){let e=new Intl.Locale(n).maximize(),r=typeof e.getTextInfo=="function"?e.getTextInfo():e.textInfo;if(r)return r.direction==="rtl";if(e.script)return ky.has(e.script)}let t=n.split("-")[0];return zy.has(t)}const Ty=Symbol.for("react-aria.i18n.locale");function lu(){let n=typeof window<"u"&&window[Ty]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([n])}catch{n="en-US"}return{locale:n,direction:$y(n)?"rtl":"ltr"}}let J4=lu(),E6=new Set;function cu(){J4=lu();for(let n of E6)n(J4)}function Dy(){let n=Fn(),[t,e]=c.useState(J4);return c.useEffect(()=>(E6.size===0&&window.addEventListener("languagechange",cu),E6.add(e),()=>{E6.delete(e),E6.size===0&&window.removeEventListener("languagechange",cu)}),[]),n?{locale:"en-US",direction:"ltr"}:t}const Oy=c.createContext(null);function Tt(){let n=Dy();return c.useContext(Oy)||n}const _y=Symbol.for("react-aria.i18n.locale"),Ny=Symbol.for("react-aria.i18n.strings");let Dt;class lr{getStringForLocale(t,e){let i=this.getStringsForLocale(e)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${e} locale`);return i}getStringsForLocale(t){let e=this.strings[t];return e||(e=Ay(t,this.strings,this.defaultLocale),this.strings[t]=e),e}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let e=window[_y];if(Dt===void 0){let i=window[Ny];if(!i)return null;Dt={};for(let o in i)Dt[o]=new lr({[e]:i[o]},e)}let r=Dt?.[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,e="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=e}}function Ay(n,t,e="en-US"){if(t[n])return t[n];let r=Fy(n);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[e]}function Fy(n){return Intl.Locale?new Intl.Locale(n).language:n.split("-")[0]}const uu=new Map,du=new Map;class Ly{format(t,e){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(e,this):r}plural(t,e,r="cardinal"){let i=e["="+t];if(i)return typeof i=="function"?i():i;let o=this.locale+":"+r,s=uu.get(o);s||(s=new Intl.PluralRules(this.locale,{type:r}),uu.set(o,s));let a=s.select(t);return i=e[a]||e.other,typeof i=="function"?i():i}number(t){let e=du.get(this.locale);return e||(e=new Intl.NumberFormat(this.locale),du.set(this.locale,e)),e.format(t)}select(t,e){let r=t[e]||t.other;return typeof r=="function"?r():r}constructor(t,e){this.locale=t,this.strings=e}}const fu=new WeakMap;function Ky(n){let t=fu.get(n);return t||(t=new lr(n),fu.set(n,t)),t}function By(n,t){return t&&lr.getGlobalDictionaryForPackage(t)||Ky(n)}function Hy(n,t){let{locale:e}=Tt(),r=By(n,t);return c.useMemo(()=>new Ly(e,r),[e,r])}let Z4=new Map,Q4=!1;try{Q4=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let cr=!1;try{cr=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const pu={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Vy{format(t){let e="";if(!Q4&&this.options.signDisplay!=null?e=jy(this.numberFormatter,this.options.signDisplay,t):e=this.numberFormatter.format(t),this.options.style==="unit"&&!cr){var r;let{unit:i,unitDisplay:o="short",locale:s}=this.resolvedOptions();if(!i)return e;let a=(r=pu[i])===null||r===void 0?void 0:r[o];e+=a[s]||a.default}return e}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,e){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,e);if(e<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(e)}`}formatRangeToParts(t,e){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,e);if(e<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(e);return[...r.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Q4&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!cr&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,e={}){this.numberFormatter=qy(t,e),this.options=e}}function qy(n,t={}){let{numberingSystem:e}=t;if(e&&n.includes("-nu-")&&(n.includes("-u-")||(n+="-u-"),n+=`-nu-${e}`),t.style==="unit"&&!cr){var r;let{unit:s,unitDisplay:a="short"}=t;if(!s)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=pu[s])===null||r===void 0)&&r[a]))throw new Error(`Unsupported unit ${s} with unitDisplay = ${a}`);t={...t,style:"decimal"}}let i=n+(t?Object.entries(t).sort((s,a)=>s[0]<a[0]?-1:1).join():"");if(Z4.has(i))return Z4.get(i);let o=new Intl.NumberFormat(n,t);return Z4.set(i,o),o}function jy(n,t,e){if(t==="auto")return n.format(e);if(t==="never")return n.format(Math.abs(e));{let r=!1;if(t==="always"?r=e>0||Object.is(e,0):t==="exceptZero"&&(Object.is(e,-0)||Object.is(e,0)?e=Math.abs(e):r=e>0),r){let i=n.format(-e),o=n.format(e),s=i.replace(o,"").replace(/\u200e|\u061C/,"");return[...s].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(o,"!!!").replace(s,"+").replace("!!!",o)}else return n.format(e)}}function Uy(n={}){let{locale:t}=Tt();return c.useMemo(()=>new Vy(t,n),[t,n])}let e5=new Map;function Wy(n){let{locale:t}=Tt(),e=t+(n?Object.entries(n).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(e5.has(e))return e5.get(e);let r=new Intl.Collator(t,n);return e5.set(e,r),r}function Yy(n,t){let{elementType:e="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:s,onPressUp:a,onPressChange:l,preventFocusOnPress:u,allowFocusWhenDisabled:d,onClick:f,href:h,target:p,rel:m,type:v="button"}=n,y;e==="button"?y={type:v,disabled:r,form:n.form,formAction:n.formAction,formEncType:n.formEncType,formMethod:n.formMethod,formNoValidate:n.formNoValidate,formTarget:n.formTarget,name:n.name,value:n.value}:y={role:"button",href:e==="a"&&!r?h:void 0,target:e==="a"?p:void 0,type:e==="input"?v:void 0,disabled:e==="input"?r:void 0,"aria-disabled":!r||e==="input"?void 0:r,rel:e==="a"?m:void 0};let{pressProps:x,isPressed:g}=er({onPressStart:o,onPressEnd:s,onPressChange:l,onPress:i,onPressUp:a,onClick:f,isDisabled:r,preventFocusOnPress:u,ref:t}),{focusableProps:M}=Zc(n,t);d&&(M.tabIndex=r?-1:M.tabIndex);let b=De(M,x,it(n,{labelable:!0}));return{isPressed:g,buttonProps:De(y,b,{"aria-haspopup":n["aria-haspopup"],"aria-expanded":n["aria-expanded"],"aria-controls":n["aria-controls"],"aria-pressed":n["aria-pressed"],"aria-current":n["aria-current"]})}}const hu=c.createContext(null),t5="react-aria-focus-scope-restore";let Oe=null;function Ry(n){let{children:t,contain:e,restoreFocus:r,autoFocus:i}=n,o=c.useRef(null),s=c.useRef(null),a=c.useRef([]),{parentNode:l}=c.useContext(hu)||{},u=c.useMemo(()=>new i5({scopeRef:a}),[a]);Fe(()=>{let h=l||Ke.root;if(Ke.getTreeNode(h.scopeRef)&&Oe&&!ur(Oe,h.scopeRef)){let p=Ke.getTreeNode(Oe);p&&(h=p)}h.addChild(u),Ke.addNode(u)},[u,l]),Fe(()=>{let h=Ke.getTreeNode(a);h&&(h.contain=!!e)},[e]),Fe(()=>{var h;let p=(h=o.current)===null||h===void 0?void 0:h.nextSibling,m=[],v=y=>y.stopPropagation();for(;p&&p!==s.current;)m.push(p),p.addEventListener(t5,v),p=p.nextSibling;return a.current=m,()=>{for(let y of m)y.removeEventListener(t5,v)}},[t]),Qy(a,r,e),Jy(a,e),eb(a,r,e),Zy(a,i),c.useEffect(()=>{const h=Ze(Pe(a.current?a.current[0]:void 0));let p=null;if(y1(h,a.current)){for(let m of Ke.traverse())m.scopeRef&&y1(h,m.scopeRef.current)&&(p=m);p===Ke.getTreeNode(a)&&(Oe=p.scopeRef)}},[a]),Fe(()=>()=>{var h,p,m;let v=(m=(p=Ke.getTreeNode(a))===null||p===void 0||(h=p.parent)===null||h===void 0?void 0:h.scopeRef)!==null&&m!==void 0?m:null;(a===Oe||ur(a,Oe))&&(!v||Ke.getTreeNode(v))&&(Oe=v),Ke.removeTreeNode(a)},[a]);let d=c.useMemo(()=>Gy(a),[]),f=c.useMemo(()=>({focusManager:d,parentNode:u}),[u,d]);return c.createElement(hu.Provider,{value:f},c.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),t,c.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:s}))}function Gy(n){return{focusNext(t={}){let e=n.current,{from:r,tabbable:i,wrap:o,accept:s}=t;var a;let l=r||Ze(Pe((a=e[0])!==null&&a!==void 0?a:void 0)),u=e[0].previousElementSibling,d=dt(e),f=V1(d,{tabbable:i,accept:s},e);f.currentNode=y1(l,e)?l:u;let h=f.nextNode();return!h&&o&&(f.currentNode=u,h=f.nextNode()),h&&H1(h,!0),h},focusPrevious(t={}){let e=n.current,{from:r,tabbable:i,wrap:o,accept:s}=t;var a;let l=r||Ze(Pe((a=e[0])!==null&&a!==void 0?a:void 0)),u=e[e.length-1].nextElementSibling,d=dt(e),f=V1(d,{tabbable:i,accept:s},e);f.currentNode=y1(l,e)?l:u;let h=f.previousNode();return!h&&o&&(f.currentNode=u,h=f.previousNode()),h&&H1(h,!0),h},focusFirst(t={}){let e=n.current,{tabbable:r,accept:i}=t,o=dt(e),s=V1(o,{tabbable:r,accept:i},e);s.currentNode=e[0].previousElementSibling;let a=s.nextNode();return a&&H1(a,!0),a},focusLast(t={}){let e=n.current,{tabbable:r,accept:i}=t,o=dt(e),s=V1(o,{tabbable:r,accept:i},e);s.currentNode=e[e.length-1].nextElementSibling;let a=s.previousNode();return a&&H1(a,!0),a}}}function dt(n){return n[0].parentElement}function I6(n){let t=Ke.getTreeNode(Oe);for(;t&&t.scopeRef!==n;){if(t.contain)return!1;t=t.parent}return!0}function Xy(n){if(n.checked)return!0;let t=[];if(!n.form)t=[...Pe(n).querySelectorAll(`input[type="radio"][name="${CSS.escape(n.name)}"]`)].filter(o=>!o.form);else{var e,r;let o=(r=n.form)===null||r===void 0||(e=r.elements)===null||e===void 0?void 0:e.namedItem(n.name);t=[...o??[]]}return t?!t.some(o=>o.checked):!1}function Jy(n,t){let e=c.useRef(void 0),r=c.useRef(void 0);Fe(()=>{let i=n.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const o=Pe(i?i[0]:void 0);let s=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!I6(n)||u.isComposing)return;let d=Ze(o),f=n.current;if(!f||!y1(d,f))return;let h=dt(f),p=V1(h,{tabbable:!0},f);if(!d)return;p.currentNode=d;let m=u.shiftKey?p.previousNode():p.nextNode();m||(p.currentNode=u.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,m=u.shiftKey?p.previousNode():p.nextNode()),u.preventDefault(),m&&H1(m,!0)},a=u=>{(!Oe||ur(Oe,n))&&y1(Me(u),n.current)?(Oe=n,e.current=Me(u)):I6(n)&&!ft(Me(u),n)?e.current?e.current.focus():Oe&&Oe.current&&n5(Oe.current):I6(n)&&(e.current=Me(u))},l=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let d=ir(),f=(d==="virtual"||d===null)&&E4()&&Mc(),h=Ze(o);if(!f&&h&&I6(n)&&!ft(h,n)){Oe=n;let m=Me(u);if(m&&m.isConnected){var p;e.current=m,(p=e.current)===null||p===void 0||p.focus()}else Oe.current&&n5(Oe.current)}})};return o.addEventListener("keydown",s,!1),o.addEventListener("focusin",a,!1),i?.forEach(u=>u.addEventListener("focusin",a,!1)),i?.forEach(u=>u.addEventListener("focusout",l,!1)),()=>{o.removeEventListener("keydown",s,!1),o.removeEventListener("focusin",a,!1),i?.forEach(u=>u.removeEventListener("focusin",a,!1)),i?.forEach(u=>u.removeEventListener("focusout",l,!1))}},[n,t]),Fe(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function vu(n){return ft(n)}function y1(n,t){return!n||!t?!1:t.some(e=>e.contains(n))}function ft(n,t=null){if(n instanceof Element&&n.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:e}of Ke.traverse(Ke.getTreeNode(t)))if(e&&y1(n,e.current))return!0;return!1}function ur(n,t){var e;let r=(e=Ke.getTreeNode(t))===null||e===void 0?void 0:e.parent;for(;r;){if(r.scopeRef===n)return!0;r=r.parent}return!1}function H1(n,t=!1){if(n!=null&&!t)try{x6(n)}catch{}else if(n!=null)try{n.focus()}catch{}}function mu(n,t=!0){let e=n[0].previousElementSibling,r=dt(n),i=V1(r,{tabbable:t},n);i.currentNode=e;let o=i.nextNode();return t&&!o&&(r=dt(n),i=V1(r,{tabbable:!1},n),i.currentNode=e,o=i.nextNode()),o}function n5(n,t=!0){H1(mu(n,t))}function Zy(n,t){const e=c.useRef(t);c.useEffect(()=>{if(e.current){Oe=n;const r=Pe(n.current?n.current[0]:void 0);!y1(Ze(r),Oe.current)&&n.current&&n5(n.current)}e.current=!1},[n])}function Qy(n,t,e){Fe(()=>{if(t||e)return;let r=n.current;const i=Pe(r?r[0]:void 0);let o=s=>{let a=Me(s);y1(a,n.current)?Oe=n:vu(a)||(Oe=null)};return i.addEventListener("focusin",o,!1),r?.forEach(s=>s.addEventListener("focusin",o,!1)),()=>{i.removeEventListener("focusin",o,!1),r?.forEach(s=>s.removeEventListener("focusin",o,!1))}},[n,t,e])}function gu(n){let t=Ke.getTreeNode(Oe);for(;t&&t.scopeRef!==n;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===n}function eb(n,t,e){const r=c.useRef(typeof document<"u"?Ze(Pe(n.current?n.current[0]:void 0)):null);Fe(()=>{let i=n.current;const o=Pe(i?i[0]:void 0);if(!t||e)return;let s=()=>{(!Oe||ur(Oe,n))&&y1(Ze(o),n.current)&&(Oe=n)};return o.addEventListener("focusin",s,!1),i?.forEach(a=>a.addEventListener("focusin",s,!1)),()=>{o.removeEventListener("focusin",s,!1),i?.forEach(a=>a.removeEventListener("focusin",s,!1))}},[n,e]),Fe(()=>{const i=Pe(n.current?n.current[0]:void 0);if(!t)return;let o=s=>{if(s.key!=="Tab"||s.altKey||s.ctrlKey||s.metaKey||!I6(n)||s.isComposing)return;let a=i.activeElement;if(!ft(a,n)||!gu(n))return;let l=Ke.getTreeNode(n);if(!l)return;let u=l.nodeToRestore,d=V1(i.body,{tabbable:!0});d.currentNode=a;let f=s.shiftKey?d.previousNode():d.nextNode();if((!u||!u.isConnected||u===i.body)&&(u=void 0,l.nodeToRestore=void 0),(!f||!ft(f,n))&&u){d.currentNode=u;do f=s.shiftKey?d.previousNode():d.nextNode();while(ft(f,n));s.preventDefault(),s.stopPropagation(),f?H1(f,!0):vu(u)?H1(u,!0):a.blur()}};return e||i.addEventListener("keydown",o,!0),()=>{e||i.removeEventListener("keydown",o,!0)}},[n,t,e]),Fe(()=>{const i=Pe(n.current?n.current[0]:void 0);if(!t)return;let o=Ke.getTreeNode(n);if(o){var s;return o.nodeToRestore=(s=r.current)!==null&&s!==void 0?s:void 0,()=>{let a=Ke.getTreeNode(n);if(!a)return;let l=a.nodeToRestore,u=Ze(i);if(t&&l&&(u&&ft(u,n)||u===i.body&&gu(n))){let d=Ke.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let f=d.getTreeNode(n);for(;f;){if(f.nodeToRestore&&f.nodeToRestore.isConnected){yu(f.nodeToRestore);return}f=f.parent}for(f=d.getTreeNode(n);f;){if(f.scopeRef&&f.scopeRef.current&&Ke.getTreeNode(f.scopeRef)){let h=mu(f.scopeRef.current,!0);yu(h);return}f=f.parent}}})}}}},[n,t])}function yu(n){n.dispatchEvent(new CustomEvent(t5,{bubbles:!0,cancelable:!0}))&&H1(n)}function V1(n,t,e){let r=t?.tabbable?Hg:kc,i=n?.nodeType===Node.ELEMENT_NODE?n:null,o=Pe(i),s=og(o,n||o,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var l;return!(t==null||(l=t.from)===null||l===void 0)&&l.contains(a)||t?.tabbable&&a.tagName==="INPUT"&&a.getAttribute("type")==="radio"&&(!Xy(a)||s.currentNode.tagName==="INPUT"&&s.currentNode.type==="radio"&&s.currentNode.name===a.name)?NodeFilter.FILTER_REJECT:r(a)&&(!e||y1(a,e))&&(!t?.accept||t.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(s.currentNode=t.from),s}class r5{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,e,r){let i=this.fastMap.get(e??null);if(!i)return;let o=new i5({scopeRef:t});i.addChild(o),o.parent=i,this.fastMap.set(t,o),r&&(o.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let e=this.fastMap.get(t);if(!e)return;let r=e.parent;for(let o of this.traverse())o!==e&&e.nodeToRestore&&o.nodeToRestore&&e.scopeRef&&e.scopeRef.current&&y1(o.nodeToRestore,e.scopeRef.current)&&(o.nodeToRestore=e.nodeToRestore);let i=e.children;r&&(r.removeChild(e),i.size>0&&i.forEach(o=>r&&r.addChild(o))),this.fastMap.delete(e.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let e of t.children)yield*this.traverse(e)}clone(){var t;let e=new r5;var r;for(let i of this.traverse())e.addTreeNode(i.scopeRef,(r=(t=i.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return e}constructor(){this.fastMap=new Map,this.root=new i5({scopeRef:null}),this.fastMap.set(null,this.root)}}class i5{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let Ke=new r5;function bu(n={}){let{autoFocus:t=!1,isTextInput:e,within:r}=n,i=c.useRef({isFocused:!1,isFocusVisible:t||rr()}),[o,s]=c.useState(!1),[a,l]=c.useState(()=>i.current.isFocused&&i.current.isFocusVisible),u=c.useCallback(()=>l(i.current.isFocused&&i.current.isFocusVisible),[]),d=c.useCallback(p=>{i.current.isFocused=p,s(p),u()},[u]);cy(p=>{i.current.isFocusVisible=p,u()},[],{isTextInput:e});let{focusProps:f}=q4({isDisabled:r,onFocusChange:d}),{focusWithinProps:h}=Qc({isDisabled:!r,onFocusWithinChange:d});return{isFocused:o,isFocusVisible:a,focusProps:r?h:f}}function xu(n){let t=nb(Pe(n));t!==n&&(t&&tb(t,n),n&&Mu(n,t))}function tb(n,t){n.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function Mu(n,t){n.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),n.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function nb(n){let t=Ze(n),e=t?.getAttribute("aria-activedescendant");return e&&n.getElementById(e)||t}const Eu=7e3;let _1=null;function Iu(n,t="assertive",e=Eu){_1?_1.announce(n,t,e):(_1=new rb,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?_1.announce(n,t,e):setTimeout(()=>{_1?.isAttached()&&_1?.announce(n,t,e)},100))}class rb{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let e=document.createElement("div");return e.setAttribute("role","log"),e.setAttribute("aria-live",t),e.setAttribute("aria-relevant","additions"),e}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,e="assertive",r=Eu){var i,o;if(!this.node)return;let s=document.createElement("div");typeof t=="object"?(s.setAttribute("role","img"),s.setAttribute("aria-labelledby",t["aria-labelledby"])):s.textContent=t,e==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(s):(o=this.politeLog)===null||o===void 0||o.appendChild(s),t!==""&&setTimeout(()=>{s.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}function wu(n){let{id:t,label:e,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=n;t=C1(t);let s=C1(),a={};e?(r=r?`${s} ${r}`:s,a={id:s,htmlFor:o==="label"?t:void 0}):!r&&!i&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=Cg({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:a,fieldProps:l}}const ib=0,ob=100,sb=1;function ab(n){const{isDisabled:t=!1,minValue:e=ib,maxValue:r=ob,numberFormatter:i,step:o=sb,orientation:s="horizontal"}=n;let a=c.useMemo(()=>{let k=(r-e)/10;return k=y6(k,0,k+o,o),Math.max(k,o)},[o,r,e]),l=c.useCallback(k=>k?.map((V,U)=>{let G=U===0?e:k[U-1],R=U===k.length-1?r:k[U+1];return y6(V,G,R,o)}),[e,r,o]),u=c.useMemo(()=>l(Cu(n.value)),[n.value,l]),d=c.useMemo(()=>{var k;return l((k=Cu(n.defaultValue))!==null&&k!==void 0?k:[e])},[n.defaultValue,e,l]),f=Pu(n.value,n.defaultValue,n.onChange),h=Pu(n.value,n.defaultValue,n.onChangeEnd);const[p,m]=jn(u,d,f);let[v]=c.useState(p);const[y,x]=c.useState(new Array(p.length).fill(!1)),g=c.useRef(new Array(p.length).fill(!0)),[M,b]=c.useState(void 0),E=c.useRef(p),w=c.useRef(y);let z=k=>{E.current=k,m(k)},A=k=>{w.current=k,x(k)};function C(k){return(k-e)/(r-e)}function H(k){return k===0?e:p[k-1]}function I(k){return k===p.length-1?r:p[k+1]}function L(k){return g.current[k]}function F(k,V){g.current[k]=V}function $(k,V){if(t||!L(k))return;const U=H(k),G=I(k);V=y6(V,U,G,o);let R=Su(E.current,k,V);z(R)}function X(k,V){if(t||!L(k))return;V&&(E.current=p);const U=w.current[k];w.current=Su(w.current,k,V),A(w.current),h&&U&&!w.current.some(Boolean)&&h(E.current)}function _(k){return i.format(k)}function B(k,V){$(k,N(V))}function W(k){return Math.round((k-e)/o)*o+e}function N(k){const V=k*(r-e)+e;return $4(W(V),e,r)}function T(k,V=1){let U=Math.max(V,o);$(k,y6(p[k]+U,e,r,o))}function O(k,V=1){let U=Math.max(V,o);$(k,y6(p[k]-U,e,r,o))}return{values:p,defaultValues:n.defaultValue!==void 0?d:v,getThumbValue:k=>p[k],setThumbValue:$,setThumbPercent:B,isThumbDragging:k=>y[k],setThumbDragging:X,focusedThumb:M,setFocusedThumb:b,getThumbPercent:k=>C(p[k]),getValuePercent:C,getThumbValueLabel:k=>_(p[k]),getFormattedValue:_,getThumbMinValue:H,getThumbMaxValue:I,getPercentValue:N,isThumbEditable:L,setThumbEditable:F,incrementThumb:T,decrementThumb:O,step:o,pageSize:a,orientation:s,isDisabled:t}}function Su(n,t,e){return n[t]===e?n:[...n.slice(0,t),e,...n.slice(t+1)]}function Cu(n){if(n!=null)return Array.isArray(n)?n:[n]}function Pu(n,t,e){return r=>{e?.(typeof n=="number"||typeof t=="number"?r[0]:r)}}const ku={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 lb(n={}){let{style:t,isFocusable:e}=n,[r,i]=c.useState(!1),{focusWithinProps:o}=Qc({isDisabled:!e,onFocusWithinChange:a=>i(a)}),s=c.useMemo(()=>r?t:t?{...ku,...t}:ku,[r]);return{visuallyHiddenProps:{...o,style:s}}}function zu(n){let{children:t,elementType:e="div",isFocusable:r,style:i,...o}=n,{visuallyHiddenProps:s}=lb(n);return c.createElement(e,De(o,s),t)}const o5=new WeakMap;function s5(n,t){let e=o5.get(n);if(!e)throw new Error("Unknown slider state");return`${e.id}-${t}`}function cb(n,t,e){let{labelProps:r,fieldProps:i}=wu(n),o=n.orientation==="vertical";var s;o5.set(t,{id:(s=r.id)!==null&&s!==void 0?s:i.id,"aria-describedby":n["aria-describedby"],"aria-details":n["aria-details"]});let{direction:a}=Tt(),{addGlobalListener:l,removeGlobalListener:u}=at();const d=c.useRef(null),f=a==="rtl",h=c.useRef(null),{moveProps:p}=tu({onMoveStart(){h.current=null},onMove({deltaX:x,deltaY:g}){if(!e.current)return;let{height:M,width:b}=e.current.getBoundingClientRect(),E=o?M:b;h.current==null&&d.current!=null&&(h.current=t.getThumbPercent(d.current)*E);let w=o?g:x;if((o||f)&&(w=-w),h.current+=w,d.current!=null&&e.current){const z=$4(h.current/E,0,1);t.setThumbPercent(d.current,z)}},onMoveEnd(){d.current!=null&&(t.setThumbDragging(d.current,!1),d.current=null)}});let m=c.useRef(void 0),v=(x,g,M,b)=>{if(e.current&&!n.isDisabled&&t.values.every((E,w)=>!t.isThumbDragging(w))){let{height:E,width:w,top:z,left:A}=e.current.getBoundingClientRect(),C=o?E:w,F=((o?b:M)-(o?z:A))/C;(a==="rtl"||o)&&(F=1-F);let $=t.getPercentValue(F),X,_=t.values.findIndex(B=>$-B<0);if(_===0)X=_;else if(_===-1)X=t.values.length-1;else{let B=t.values[_-1],W=t.values[_];Math.abs(B-$)<Math.abs(W-$)?X=_-1:X=_}X>=0&&t.isThumbEditable(X)?(x.preventDefault(),d.current=X,t.setFocusedThumb(X),m.current=g,t.setThumbDragging(d.current,!0),t.setThumbValue(X,$),l(window,"mouseup",y,!1),l(window,"touchend",y,!1),l(window,"pointerup",y,!1)):d.current=null}},y=x=>{var g,M;((M=x.pointerId)!==null&&M!==void 0?M:(g=x.changedTouches)===null||g===void 0?void 0:g[0].identifier)===m.current&&(d.current!=null&&(t.setThumbDragging(d.current,!1),d.current=null),u(window,"mouseup",y,!1),u(window,"touchend",y,!1),u(window,"pointerup",y,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var x;(x=document.getElementById(s5(t,0)))===null||x===void 0||x.focus(),sy("keyboard")}),{labelProps:r,groupProps:{role:"group",...i},trackProps:De({onMouseDown(x){x.button!==0||x.altKey||x.ctrlKey||x.metaKey||v(x,void 0,x.clientX,x.clientY)},onPointerDown(x){x.pointerType==="mouse"&&(x.button!==0||x.altKey||x.ctrlKey||x.metaKey)||v(x,x.pointerId,x.clientX,x.clientY)},onTouchStart(x){v(x,x.changedTouches[0].identifier,x.changedTouches[0].clientX,x.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},p),outputProps:{htmlFor:t.values.map((x,g)=>s5(t,g)).join(" "),"aria-live":"off"}}}function ub(n,t){let{index:e=0,isRequired:r,validationState:i,isInvalid:o,trackRef:s,inputRef:a,orientation:l=t.orientation,name:u,form:d}=n,f=n.isDisabled||t.isDisabled,h=l==="vertical",{direction:p}=Tt(),{addGlobalListener:m,removeGlobalListener:v}=at(),y=o5.get(t);var x;const{labelProps:g,fieldProps:M}=wu({...n,id:s5(t,e),"aria-labelledby":`${y.id} ${(x=n["aria-labelledby"])!==null&&x!==void 0?x:""}`.trim()}),b=t.values[e],E=c.useCallback(()=>{a.current&&m1(a.current)},[a]),w=t.focusedThumb===e;c.useEffect(()=>{w&&E()},[w,E]);let z=p==="rtl",A=c.useRef(null),{keyboardProps:C}=j4({onKeyDown(B){let{getThumbMaxValue:W,getThumbMinValue:N,decrementThumb:T,incrementThumb:O,setThumbValue:k,setThumbDragging:V,pageSize:U}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(B.key)){B.continuePropagation();return}switch(B.preventDefault(),V(e,!0),B.key){case"PageUp":O(e,U);break;case"PageDown":T(e,U);break;case"Home":k(e,N(e));break;case"End":k(e,W(e));break}V(e,!1)}}),{moveProps:H}=tu({onMoveStart(){A.current=null,t.setThumbDragging(e,!0)},onMove({deltaX:B,deltaY:W,pointerType:N,shiftKey:T}){const{getThumbPercent:O,setThumbPercent:k,decrementThumb:V,incrementThumb:U,step:G,pageSize:R}=t;if(!s.current)return;let{width:ee,height:Z}=s.current.getBoundingClientRect(),D=h?Z:ee;if(A.current==null&&(A.current=O(e)*D),N==="keyboard")B>0&&z||B<0&&!z||W>0?V(e,T?R:G):U(e,T?R:G);else{let oe=h?W:B;(h||z)&&(oe=-oe),A.current+=oe,k(e,$4(A.current/D,0,1))}},onMoveEnd(){t.setThumbDragging(e,!1)}});t.setThumbEditable(e,!f);const{focusableProps:I}=Zc(De(n,{onFocus:()=>t.setFocusedThumb(e),onBlur:()=>t.setFocusedThumb(void 0)}),a);let L=c.useRef(void 0),F=B=>{E(),L.current=B,t.setThumbDragging(e,!0),m(window,"mouseup",$,!1),m(window,"touchend",$,!1),m(window,"pointerup",$,!1)},$=B=>{var W,N;((N=B.pointerId)!==null&&N!==void 0?N:(W=B.changedTouches)===null||W===void 0?void 0:W[0].identifier)===L.current&&(E(),t.setThumbDragging(e,!1),v(window,"mouseup",$,!1),v(window,"touchend",$,!1),v(window,"pointerup",$,!1))},X=t.getThumbPercent(e);(h||p==="rtl")&&(X=1-X);let _=f?{}:De(C,H,{onMouseDown:B=>{B.button!==0||B.altKey||B.ctrlKey||B.metaKey||F()},onPointerDown:B=>{B.button!==0||B.altKey||B.ctrlKey||B.metaKey||F(B.pointerId)},onTouchStart:B=>{F(B.changedTouches[0].identifier)}});return Og(a,t.defaultValues[e],B=>{t.setThumbValue(e,B)}),{inputProps:De(I,M,{type:"range",tabIndex:f?void 0:0,min:t.getThumbMinValue(e),max:t.getThumbMaxValue(e),step:t.step,value:b,name:u,form:d,disabled:f,"aria-orientation":l,"aria-valuetext":t.getThumbValueLabel(e),"aria-required":r||void 0,"aria-invalid":o||i==="invalid"||void 0,"aria-errormessage":n["aria-errormessage"],"aria-describedby":[y["aria-describedby"],n["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[y["aria-details"],n["aria-details"]].filter(Boolean).join(" "),onChange:B=>{t.setThumbValue(e,parseFloat(B.target.value))}}),thumbProps:{..._,style:{position:"absolute",[h?"top":"left"]:`${X*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:g,isDragging:t.isThumbDragging(e),isDisabled:f,isFocused:w}}const db=new WeakMap;function fb(n,t,e){let{type:r}=n,{isOpen:i}=t;c.useEffect(()=>{e&&e.current&&db.set(e.current,t.close)});let o;r==="menu"?o=!0:r==="listbox"&&(o="listbox");let s=C1();return{triggerProps:{"aria-haspopup":o,"aria-expanded":i,"aria-controls":i?s:void 0,onPress:t.toggle},overlayProps:{id:s}}}function a5(n){return mg()?n.altKey:n.ctrlKey}function dr(n,t){var e,r;let i=`[data-key="${CSS.escape(String(t))}"]`,o=(e=n.current)===null||e===void 0?void 0:e.dataset.collection;return o&&(i=`[data-collection="${CSS.escape(o)}"]${i}`),(r=n.current)===null||r===void 0?void 0:r.querySelector(i)}const $u=new WeakMap;function pb(n){let t=C1();return $u.set(n,t),t}function hb(n){return $u.get(n)}const vb=1e3;function mb(n){let{keyboardDelegate:t,selectionManager:e,onTypeSelect:r}=n,i=c.useRef({search:"",timeout:void 0}).current,o=s=>{let a=gb(s.key);if(!(!a||s.ctrlKey||s.metaKey||!s.currentTarget.contains(s.target)||i.search.length===0&&a===" ")){if(a===" "&&i.search.trim().length>0&&(s.preventDefault(),"continuePropagation"in s||s.stopPropagation()),i.search+=a,t.getKeyForSearch!=null){let l=t.getKeyForSearch(i.search,e.focusedKey);l==null&&(l=t.getKeyForSearch(i.search)),l!=null&&(e.setFocusedKey(l),r&&r(l))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},vb)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?o:void 0}}}function gb(n){return n.length===1||!/^[A-Z]/i.test(n)?n:""}function yb(n){let{selectionManager:t,keyboardDelegate:e,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:s=!1,disallowSelectAll:a=!1,escapeKeyBehavior:l="clearSelection",selectOnFocus:u=t.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:f,allowsTabNavigation:h=!1,isVirtualized:p,scrollRef:m=r,linkBehavior:v="action"}=n,{direction:y}=Tt(),x=Hn(),g=B=>{var W;if(B.altKey&&B.key==="Tab"&&B.preventDefault(),!(!((W=r.current)===null||W===void 0)&&W.contains(B.target)))return;const N=(Y,fe)=>{if(Y!=null){if(t.isLink(Y)&&v==="selection"&&u&&!a5(B)){x1.flushSync(()=>{t.setFocusedKey(Y,fe)});let re=dr(r,Y),K=t.getItemProps(Y);re&&x.open(re,B,K.href,K.routerOptions);return}if(t.setFocusedKey(Y,fe),t.isLink(Y)&&v==="override")return;B.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Y):u&&!a5(B)&&t.replaceSelection(Y)}};switch(B.key){case"ArrowDown":if(e.getKeyBelow){var T,O,k;let Y=t.focusedKey!=null?(T=e.getKeyBelow)===null||T===void 0?void 0:T.call(e,t.focusedKey):(O=e.getFirstKey)===null||O===void 0?void 0:O.call(e);Y==null&&o&&(Y=(k=e.getFirstKey)===null||k===void 0?void 0:k.call(e,t.focusedKey)),Y!=null&&(B.preventDefault(),N(Y))}break;case"ArrowUp":if(e.getKeyAbove){var V,U,G;let Y=t.focusedKey!=null?(V=e.getKeyAbove)===null||V===void 0?void 0:V.call(e,t.focusedKey):(U=e.getLastKey)===null||U===void 0?void 0:U.call(e);Y==null&&o&&(Y=(G=e.getLastKey)===null||G===void 0?void 0:G.call(e,t.focusedKey)),Y!=null&&(B.preventDefault(),N(Y))}break;case"ArrowLeft":if(e.getKeyLeftOf){var R,ee,Z;let Y=t.focusedKey!=null?(R=e.getKeyLeftOf)===null||R===void 0?void 0:R.call(e,t.focusedKey):null;Y==null&&o&&(Y=y==="rtl"?(ee=e.getFirstKey)===null||ee===void 0?void 0:ee.call(e,t.focusedKey):(Z=e.getLastKey)===null||Z===void 0?void 0:Z.call(e,t.focusedKey)),Y!=null&&(B.preventDefault(),N(Y,y==="rtl"?"first":"last"))}break;case"ArrowRight":if(e.getKeyRightOf){var D,oe,te;let Y=t.focusedKey!=null?(D=e.getKeyRightOf)===null||D===void 0?void 0:D.call(e,t.focusedKey):null;Y==null&&o&&(Y=y==="rtl"?(oe=e.getLastKey)===null||oe===void 0?void 0:oe.call(e,t.focusedKey):(te=e.getFirstKey)===null||te===void 0?void 0:te.call(e,t.focusedKey)),Y!=null&&(B.preventDefault(),N(Y,y==="rtl"?"last":"first"))}break;case"Home":if(e.getFirstKey){if(t.focusedKey===null&&B.shiftKey)return;B.preventDefault();let Y=e.getFirstKey(t.focusedKey,kt(B));t.setFocusedKey(Y),Y!=null&&(kt(B)&&B.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Y):u&&t.replaceSelection(Y))}break;case"End":if(e.getLastKey){if(t.focusedKey===null&&B.shiftKey)return;B.preventDefault();let Y=e.getLastKey(t.focusedKey,kt(B));t.setFocusedKey(Y),Y!=null&&(kt(B)&&B.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Y):u&&t.replaceSelection(Y))}break;case"PageDown":if(e.getKeyPageBelow&&t.focusedKey!=null){let Y=e.getKeyPageBelow(t.focusedKey);Y!=null&&(B.preventDefault(),N(Y))}break;case"PageUp":if(e.getKeyPageAbove&&t.focusedKey!=null){let Y=e.getKeyPageAbove(t.focusedKey);Y!=null&&(B.preventDefault(),N(Y))}break;case"a":kt(B)&&t.selectionMode==="multiple"&&a!==!0&&(B.preventDefault(),t.selectAll());break;case"Escape":l==="clearSelection"&&!s&&t.selectedKeys.size!==0&&(B.stopPropagation(),B.preventDefault(),t.clearSelection());break;case"Tab":if(!h){if(B.shiftKey)r.current.focus();else{let Y=V1(r.current,{tabbable:!0}),fe,re;do re=Y.lastChild(),re&&(fe=re);while(re);fe&&!fe.contains(document.activeElement)&&m1(fe)}break}}},M=c.useRef({top:0,left:0});qn(m,"scroll",p?void 0:()=>{var B,W,N,T;M.current={top:(N=(B=m.current)===null||B===void 0?void 0:B.scrollTop)!==null&&N!==void 0?N:0,left:(T=(W=m.current)===null||W===void 0?void 0:W.scrollLeft)!==null&&T!==void 0?T:0}});let b=B=>{if(t.isFocused){B.currentTarget.contains(B.target)||t.setFocused(!1);return}if(B.currentTarget.contains(B.target)){if(t.setFocused(!0),t.focusedKey==null){var W,N;let k=U=>{U!=null&&(t.setFocusedKey(U),u&&!t.isSelected(U)&&t.replaceSelection(U))},V=B.relatedTarget;var T,O;V&&B.currentTarget.compareDocumentPosition(V)&Node.DOCUMENT_POSITION_FOLLOWING?k((T=t.lastSelectedKey)!==null&&T!==void 0?T:(W=e.getLastKey)===null||W===void 0?void 0:W.call(e)):k((O=t.firstSelectedKey)!==null&&O!==void 0?O:(N=e.getFirstKey)===null||N===void 0?void 0:N.call(e))}else!p&&m.current&&(m.current.scrollTop=M.current.top,m.current.scrollLeft=M.current.left);if(t.focusedKey!=null&&m.current){let k=dr(r,t.focusedKey);k instanceof HTMLElement&&(!k.contains(document.activeElement)&&!f&&m1(k),ir()==="keyboard"&&Pc(k,{containingElement:r.current}))}}},E=B=>{B.currentTarget.contains(B.relatedTarget)||t.setFocused(!1)},w=c.useRef(!1);qn(r,Ng,f?B=>{let{detail:W}=B;B.stopPropagation(),t.setFocused(!0),W?.focusStrategy==="first"&&(w.current=!0)}:void 0);let z=Je(()=>{var B,W;let N=(W=(B=e.getFirstKey)===null||B===void 0?void 0:B.call(e))!==null&&W!==void 0?W:null;if(N==null){let T=Ze();xu(r.current),Mu(T,null),t.collection.size>0&&(w.current=!1)}else t.setFocusedKey(N),w.current=!1});wc(()=>{w.current&&z()},[t.collection,z]);let A=Je(()=>{t.collection.size>0&&(w.current=!1)});wc(()=>{A()},[t.focusedKey,A]),qn(r,_g,f?B=>{var W;B.stopPropagation(),t.setFocused(!1),!((W=B.detail)===null||W===void 0)&&W.clearFocusKey&&t.setFocusedKey(null)}:void 0);const C=c.useRef(i),H=c.useRef(!1);c.useEffect(()=>{if(C.current){var B,W;let O=null;var N;i==="first"&&(O=(N=(B=e.getFirstKey)===null||B===void 0?void 0:B.call(e))!==null&&N!==void 0?N:null);var T;i==="last"&&(O=(T=(W=e.getLastKey)===null||W===void 0?void 0:W.call(e))!==null&&T!==void 0?T:null);let k=t.selectedKeys;if(k.size){for(let V of k)if(t.canSelectItem(V)){O=V;break}}t.setFocused(!0),t.setFocusedKey(O),O==null&&!f&&r.current&&x6(r.current),t.collection.size>0&&(C.current=!1,H.current=!0)}});let I=c.useRef(t.focusedKey),L=c.useRef(null);c.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==I.current||H.current)&&m.current&&r.current){let B=ir(),W=dr(r,t.focusedKey);if(!(W instanceof HTMLElement))return;(B==="keyboard"||H.current)&&(L.current&&cancelAnimationFrame(L.current),L.current=requestAnimationFrame(()=>{m.current&&(Sc(m.current,W),B!=="virtual"&&Pc(W,{containingElement:r.current}))}))}!f&&t.isFocused&&t.focusedKey==null&&I.current!=null&&r.current&&x6(r.current),I.current=t.focusedKey,H.current=!1}),c.useEffect(()=>()=>{L.current&&cancelAnimationFrame(L.current)},[]),qn(r,"react-aria-focus-scope-restore",B=>{B.preventDefault(),t.setFocused(!0)});let F={onKeyDown:g,onFocus:b,onBlur:E,onMouseDown(B){m.current===B.target&&B.preventDefault()}},{typeSelectProps:$}=mb({keyboardDelegate:e,selectionManager:t});d||(F=De($,F));let X;f||(X=t.focusedKey==null?0:-1);let _=pb(t.collection);return{collectionProps:De(F,{tabIndex:X,"data-collection":_})}}function bb(n){let{id:t,selectionManager:e,key:r,ref:i,shouldSelectOnPressUp:o,shouldUseVirtualFocus:s,focus:a,isDisabled:l,onAction:u,allowsDifferentPressOrigin:d,linkBehavior:f="action"}=n,h=Hn();t=C1(t);let p=N=>{if(N.pointerType==="keyboard"&&a5(N))e.toggleSelection(r);else{if(e.selectionMode==="none")return;if(e.isLink(r)){if(f==="selection"&&i.current){let T=e.getItemProps(r);h.open(i.current,N,T.href,T.routerOptions),e.setSelectedKeys(e.selectedKeys);return}else if(f==="override"||f==="none")return}e.selectionMode==="single"?e.isSelected(r)&&!e.disallowEmptySelection?e.toggleSelection(r):e.replaceSelection(r):N&&N.shiftKey?e.extendSelection(r):e.selectionBehavior==="toggle"||N&&(kt(N)||N.pointerType==="touch"||N.pointerType==="virtual")?e.toggleSelection(r):e.replaceSelection(r)}};c.useEffect(()=>{r===e.focusedKey&&e.isFocused&&(s?xu(i.current):a?a():document.activeElement!==i.current&&i.current&&x6(i.current))},[i,r,e.focusedKey,e.childFocusStrategy,e.isFocused,s]),l=l||e.isDisabled(r);let m={};!s&&!l?m={tabIndex:r===e.focusedKey?0:-1,onFocus(N){N.target===i.current&&e.setFocusedKey(r)}}:l&&(m.onMouseDown=N=>{N.preventDefault()});let v=e.isLink(r)&&f==="override",y=e.isLink(r)&&f!=="selection"&&f!=="none",x=!l&&e.canSelectItem(r)&&!v,g=(u||y)&&!l,M=g&&(e.selectionBehavior==="replace"?!x:!x||e.isEmpty),b=g&&x&&e.selectionBehavior==="replace",E=M||b,w=c.useRef(null),z=E&&x,A=c.useRef(!1),C=c.useRef(!1),H=e.getItemProps(r),I=N=>{u&&u(),y&&i.current&&h.open(i.current,N,H.href,H.routerOptions)},L={ref:i};if(o?(L.onPressStart=N=>{w.current=N.pointerType,A.current=z,N.pointerType==="keyboard"&&(!E||Du())&&p(N)},d?(L.onPressUp=M?void 0:N=>{N.pointerType==="mouse"&&x&&p(N)},L.onPress=M?I:N=>{N.pointerType!=="keyboard"&&N.pointerType!=="mouse"&&x&&p(N)}):L.onPress=N=>{if(M||b&&N.pointerType!=="mouse"){if(N.pointerType==="keyboard"&&!Tu())return;I(N)}else N.pointerType!=="keyboard"&&x&&p(N)}):(L.onPressStart=N=>{w.current=N.pointerType,A.current=z,C.current=M,x&&(N.pointerType==="mouse"&&!M||N.pointerType==="keyboard"&&(!g||Du()))&&p(N)},L.onPress=N=>{(N.pointerType==="touch"||N.pointerType==="pen"||N.pointerType==="virtual"||N.pointerType==="keyboard"&&E&&Tu()||N.pointerType==="mouse"&&C.current)&&(E?I(N):x&&p(N))}),m["data-collection"]=hb(e.collection),m["data-key"]=r,L.preventFocusOnPress=s,s&&(L=De(L,{onPressStart(N){N.pointerType!=="touch"&&(e.setFocused(!0),e.setFocusedKey(r))},onPress(N){N.pointerType==="touch"&&(e.setFocused(!0),e.setFocusedKey(r))}})),H)for(let N of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])H[N]&&(L[N]=b4(L[N],H[N]));let{pressProps:F,isPressed:$}=er(L),X=b?N=>{w.current==="mouse"&&(N.stopPropagation(),N.preventDefault(),I(N))}:void 0,{longPressProps:_}=nu({isDisabled:!z,onLongPress(N){N.pointerType==="touch"&&(p(N),e.setSelectionBehavior("toggle"))}}),B=N=>{w.current==="touch"&&A.current&&N.preventDefault()},W=f!=="none"&&e.isLink(r)?N=>{st.isOpening||N.preventDefault()}:void 0;return{itemProps:De(m,x||M||s&&!l?F:{},z?_:{},{onDoubleClick:X,onDragStartCapture:B,onClick:W,id:t},s?{onMouseDown:N=>N.preventDefault()}:void 0),isPressed:$,isSelected:e.isSelected(r),isFocused:e.isFocused&&e.focusedKey===r,isDisabled:l,allowsSelection:x,hasAction:E}}function Tu(){let n=window.event;return n?.key==="Enter"}function Du(){let n=window.event;return n?.key===" "||n?.code==="Space"}class Ou{getItemRect(t){let e=this.ref.current;if(!e)return null;let r=t!=null?dr(this.ref,t):null;if(!r)return null;let i=e.getBoundingClientRect(),o=r.getBoundingClientRect();return{x:o.left-i.left+e.scrollLeft,y:o.top-i.top+e.scrollTop,width:o.width,height:o.height}}getContentSize(){let t=this.ref.current;var e,r;return{width:(e=t?.scrollWidth)!==null&&e!==void 0?e:0,height:(r=t?.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let t=this.ref.current;var e,r,i,o;return{x:(e=t?.scrollLeft)!==null&&e!==void 0?e:0,y:(r=t?.scrollTop)!==null&&r!==void 0?r:0,width:(i=t?.offsetWidth)!==null&&i!==void 0?i:0,height:(o=t?.offsetHeight)!==null&&o!==void 0?o:0}}constructor(t){this.ref=t}}class xb{isDisabled(t){var e;return this.disabledBehavior==="all"&&(((e=t.props)===null||e===void 0?void 0:e.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,e){let r=t;for(;r!=null;){let i=this.collection.getItem(r);if(i?.type==="item"&&!this.isDisabled(i))return r;r=e(r)}return null}getNextKey(t){let e=t;return e=this.collection.getKeyAfter(e),this.findNextNonDisabled(e,r=>this.collection.getKeyAfter(r))}getPreviousKey(t){let e=t;return e=this.collection.getKeyBefore(e),this.findNextNonDisabled(e,r=>this.collection.getKeyBefore(r))}findKey(t,e,r){let i=t,o=this.layoutDelegate.getItemRect(i);if(!o||i==null)return null;let s=o;do{if(i=e(i),i==null)break;o=this.layoutDelegate.getItemRect(i)}while(o&&r(s,o)&&i!=null);return i}isSameRow(t,e){return t.y===e.y||t.x!==e.x}isSameColumn(t,e){return t.x===e.x||t.y!==e.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,e=>this.getNextKey(e),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,e=>this.getPreviousKey(e),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,e){return e?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let e=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[e]?(t=this.layoutDelegate[e](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[e](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let e=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[e]?(t=this.layoutDelegate[e](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[e](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,e=>this.collection.getKeyAfter(e))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,e=>this.collection.getKeyBefore(e))}getKeyPageAbove(t){let e=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(e&&!S4(e))return this.getFirstKey();let i=t;if(this.orientation==="horizontal"){let o=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getFirstKey()}getKeyPageBelow(t){let e=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(e&&!S4(e))return this.getLastKey();let i=t;if(this.orientation==="horizontal"){let o=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getLastKey()}getKeyForSearch(t,e){if(!this.collator)return null;let r=this.collection,i=e||this.getFirstKey();for(;i!=null;){let o=r.getItem(i);if(!o)return null;let s=o.textValue.slice(0,t.length);if(o.textValue&&this.collator.compare(s,t)===0)return i;i=this.getNextKey(i)}return null}constructor(...t){if(t.length===1){let e=t[0];this.collection=e.collection,this.ref=e.ref,this.collator=e.collator,this.disabledKeys=e.disabledKeys||new Set,this.disabledBehavior=e.disabledBehavior||"all",this.orientation=e.orientation||"vertical",this.direction=e.direction,this.layout=e.layout||"stack",this.layoutDelegate=e.layoutDelegate||new Ou(e.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new Ou(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function Mb(n){let{selectionManager:t,collection:e,disabledKeys:r,ref:i,keyboardDelegate:o,layoutDelegate:s}=n,a=Wy({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,u=c.useMemo(()=>o||new xb({collection:e,disabledKeys:r,disabledBehavior:l,ref:i,collator:a,layoutDelegate:s}),[o,s,e,r,i,a,l]),{collectionProps:d}=yb({...n,ref:i,selectionManager:t,keyboardDelegate:u});return{listProps:d}}class Eb{build(t,e){return this.context=e,_u(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:e,items:r}=t;if(c.isValidElement(e)&&e.type===c.Fragment)yield*this.iterateCollection({children:e.props.children,items:r});else if(typeof e=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let o of r)yield*this.getFullNode({value:o,index:i},{renderer:e}),i++}else{let i=[];c.Children.forEach(e,s=>{s&&i.push(s)});let o=0;for(let s of i){let a=this.getFullNode({element:s,index:o},{});for(let l of a)o++,yield l}}}getKey(t,e,r,i){if(t.key!=null)return t.key;if(e.type==="cell"&&e.key!=null)return`${i}${e.key}`;let o=e.value;if(o!=null){var s;let a=(s=o.key)!==null&&s!==void 0?s:o.id;if(a==null)throw new Error("No key found for item");return a}return i?`${i}.${e.index}`:`$.${e.index}`}getChildState(t,e){return{renderer:e.renderer||t.renderer}}*getFullNode(t,e,r,i){if(c.isValidElement(t.element)&&t.element.type===c.Fragment){let y=[];c.Children.forEach(t.element.props.children,g=>{y.push(g)});var o;let x=(o=t.index)!==null&&o!==void 0?o:0;for(const g of y)yield*this.getFullNode({element:g,index:x++},e,r,i);return}let s=t.element;if(!s&&t.value&&e&&e.renderer){let y=this.cache.get(t.value);if(y&&(!y.shouldInvalidate||!y.shouldInvalidate(this.context))){y.index=t.index,y.parentKey=i?i.key:null,yield y;return}s=e.renderer(t.value)}if(c.isValidElement(s)){let y=s.type;if(typeof y!="function"&&typeof y.getCollectionNode!="function"){let b=s.type;throw new Error(`Unknown element <${b}> in collection.`)}let x=y.getCollectionNode(s.props,this.context);var a;let g=(a=t.index)!==null&&a!==void 0?a:0,M=x.next();for(;!M.done&&M.value;){let b=M.value;t.index=g;var l;let E=(l=b.key)!==null&&l!==void 0?l:null;E==null&&(E=b.element?null:this.getKey(s,t,e,r));let z=[...this.getFullNode({...b,key:E,index:g,wrapper:Ib(t.wrapper,b.wrapper)},this.getChildState(e,b),r?`${r}${s.key}`:s.key,i)];for(let A of z){var u,d;A.value=(d=(u=b.value)!==null&&u!==void 0?u:t.value)!==null&&d!==void 0?d:null,A.value&&this.cache.set(A.value,A);var f;if(t.type&&A.type!==t.type)throw new Error(`Unsupported type <${l5(A.type)}> in <${l5((f=i?.type)!==null&&f!==void 0?f:"unknown parent type")}>. Only <${l5(t.type)}> is supported.`);g++,yield A}M=x.next(z)}return}if(t.key==null||t.type==null)return;let h=this;var p,m;let v={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:(p=t.value)!==null&&p!==void 0?p:null,level:i?i.level+1:0,index:t.index,rendered:t.rendered,textValue:(m=t.textValue)!==null&&m!==void 0?m:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:_u(function*(){if(!t.hasChildNodes||!t.childNodes)return;let y=0;for(let x of t.childNodes()){x.key!=null&&(x.key=`${v.key}${x.key}`);let g=h.getFullNode({...x,index:y},h.getChildState(e,x),v.key,v);for(let M of g)y++,yield M}})};yield v}constructor(){this.cache=new WeakMap}}function _u(n){let t=[],e=null;return{*[Symbol.iterator](){for(let r of t)yield r;e||(e=n());for(let r of e)t.push(r),yield r}}}function Ib(n,t){if(n&&t)return e=>n(t(e));if(n)return n;if(t)return t}function l5(n){return n[0].toUpperCase()+n.slice(1)}function wb(n,t,e){let r=c.useMemo(()=>new Eb,[]),{children:i,items:o,collection:s}=n;return c.useMemo(()=>{if(s)return s;let l=r.build({children:i,items:o},e);return t(l)},[r,i,o,s,e,t])}function Nu(n,t){return typeof t.getChildren=="function"?t.getChildren(n.key):n.childNodes}function Sb(n){return Cb(n)}function Cb(n,t){for(let e of n)return e}function c5(n,t,e){if(t.parentKey===e.parentKey)return t.index-e.index;let r=[...Au(n,t),t],i=[...Au(n,e),e],o=r.slice(0,i.length).findIndex((s,a)=>s!==i[a]);return o!==-1?(t=r[o],e=i[o],t.index-e.index):r.findIndex(s=>s===e)>=0?1:(i.findIndex(s=>s===t)>=0,-1)}function Au(n,t){let e=[],r=t;for(;r?.parentKey!=null;)r=n.getItem(r.parentKey),r&&e.unshift(r);return e}const Fu=new WeakMap;function Pb(n){let t=Fu.get(n);if(t!=null)return t;let e=0,r=i=>{for(let o of i)o.type==="section"?r(Nu(o,n)):o.type==="item"&&e++};return r(n),Fu.set(n,e),e}var Lu={};Lu={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var Ku={};Ku={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var Bu={};Bu={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var Hu={};Hu={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var Vu={};Vu={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var qu={};qu={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var ju={};ju={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var Uu={};Uu={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var Wu={};Wu={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var Yu={};Yu={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var Ru={};Ru={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var Gu={};Gu={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var Xu={};Xu={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var Ju={};Ju={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var Zu={};Zu={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var Qu={};Qu={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var e8={};e8={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var t8={};t8={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var n8={};n8={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var r8={};r8={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var i8={};i8={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var o8={};o8={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var s8={};s8={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var a8={};a8={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var l8={};l8={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var c8={};c8={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var u8={};u8={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var d8={};d8={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var f8={};f8={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var p8={};p8={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var h8={};h8={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var v8={};v8={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var m8={};m8={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var g8={};g8={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var y8={};y8={"ar-AE":Lu,"bg-BG":Ku,"cs-CZ":Bu,"da-DK":Hu,"de-DE":Vu,"el-GR":qu,"en-US":ju,"es-ES":Uu,"et-EE":Wu,"fi-FI":Yu,"fr-FR":Ru,"he-IL":Gu,"hr-HR":Xu,"hu-HU":Ju,"it-IT":Zu,"ja-JP":Qu,"ko-KR":e8,"lt-LT":t8,"lv-LV":n8,"nb-NO":r8,"nl-NL":i8,"pl-PL":o8,"pt-BR":s8,"pt-PT":a8,"ro-RO":l8,"ru-RU":c8,"sk-SK":u8,"sl-SI":d8,"sr-SP":f8,"sv-SE":p8,"tr-TR":h8,"uk-UA":v8,"zh-CN":m8,"zh-TW":g8};function kb(n){return n&&n.__esModule?n.default:n}function zb(n,t,e){let{type:r="menu",isDisabled:i,trigger:o="press"}=n,s=C1(),{triggerProps:a,overlayProps:l}=fb({type:r},t,e),u=p=>{if(!i&&!(o==="longPress"&&!p.altKey)&&e&&e.current)switch(p.key){case"Enter":case" ":if(o==="longPress"||p.isDefaultPrevented())return;case"ArrowDown":"continuePropagation"in p||p.stopPropagation(),p.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in p||p.stopPropagation(),p.preventDefault(),t.toggle("last");break;default:"continuePropagation"in p&&p.continuePropagation()}},d=Hy(kb(y8),"@react-aria/menu"),{longPressProps:f}=nu({isDisabled:i||o!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),h={preventFocusOnPress:!0,onPressStart(p){p.pointerType!=="touch"&&p.pointerType!=="keyboard"&&!i&&(m1(p.target),t.open(p.pointerType==="virtual"?"first":null))},onPress(p){p.pointerType==="touch"&&!i&&(m1(p.target),t.toggle())}};return delete a.onPress,{menuTriggerProps:{...a,...o==="press"?h:f,id:s,onKeyDown:u},menuProps:{...l,"aria-labelledby":s,autoFocus:t.focusStrategy||!0,onClose:t.close}}}const b8=new WeakMap;function $b(n,t,e){let{shouldFocusWrap:r=!0,onKeyDown:i,onKeyUp:o,...s}=n;!n["aria-label"]&&!n["aria-labelledby"]&&process.env.NODE_ENV!=="production"&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let a=it(n,{labelable:!0}),{listProps:l}=Mb({...s,ref:e,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return b8.set(t,{onClose:n.onClose,onAction:n.onAction,shouldUseVirtualFocus:n.shouldUseVirtualFocus}),{menuProps:De(a,{onKeyDown:i,onKeyUp:o},{role:"menu",...l,onKeyDown:u=>{var d;(u.key!=="Escape"||n.shouldUseVirtualFocus)&&((d=l.onKeyDown)===null||d===void 0||d.call(l,u))}})}}function Tb(n,t,e){let{id:r,key:i,closeOnSelect:o,isVirtualized:s,"aria-haspopup":a,onPressStart:l,onPressUp:u,onPress:d,onPressChange:f,onPressEnd:h,onClick:p,onHoverStart:m,onHoverChange:v,onHoverEnd:y,onKeyDown:x,onKeyUp:g,onFocus:M,onFocusChange:b,onBlur:E,selectionManager:w=t.selectionManager}=n,z=!!a,A=z&&n["aria-expanded"]==="true";var C;let H=(C=n.isDisabled)!==null&&C!==void 0?C:w.isDisabled(i);var I;let L=(I=n.isSelected)!==null&&I!==void 0?I:w.isSelected(i),F=b8.get(t),$=t.collection.getItem(i),X=n.onClose||F.onClose,_=Hn(),B=()=>{var de;if(!z&&(!($==null||(de=$.props)===null||de===void 0)&&de.onAction?$.props.onAction():n.onAction&&n.onAction(i),F.onAction)){let be=F.onAction;be(i)}},W="menuitem";z||(w.selectionMode==="single"?W="menuitemradio":w.selectionMode==="multiple"&&(W="menuitemcheckbox"));let N=y4(),T=y4(),O=y4(),k={id:r,"aria-disabled":H||void 0,role:W,"aria-label":n["aria-label"],"aria-labelledby":N,"aria-describedby":[T,O].filter(Boolean).join(" ")||void 0,"aria-controls":n["aria-controls"],"aria-haspopup":a,"aria-expanded":n["aria-expanded"]};w.selectionMode!=="none"&&!z&&(k["aria-checked"]=L),s&&(k["aria-posinset"]=$?.index,k["aria-setsize"]=Pb(t.collection));let V=de=>{de.pointerType==="keyboard"&&!w.isLink(i)&&de.target.click(),l?.(de)},U=c.useRef(!1),G=de=>{f?.(de),U.current=de},R=de=>{de.pointerType==="mouse"&&(U.current||de.target.click()),de.pointerType!=="keyboard"&&!z&&X&&(o??(w.selectionMode!=="multiple"||w.isLink(i)))&&X(),u?.(de)},ee=de=>{p?.(de),B(),wg(de,_,$.props.href,$?.props.routerOptions)},{itemProps:Z,isFocused:D}=bb({id:r,selectionManager:w,key:i,ref:e,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:F.shouldUseVirtualFocus}),{pressProps:oe,isPressed:te}=er({onPressStart:V,onPress:d,onPressUp:R,onPressChange:G,onPressEnd:h,isDisabled:H}),{hoverProps:Y}=Y4({isDisabled:H,onHoverStart(de){!rr()&&!(A&&a)&&(w.setFocused(!0),w.setFocusedKey(i)),m?.(de)},onHoverChange:v,onHoverEnd:y}),{keyboardProps:fe}=j4({onKeyDown:de=>{if(de.repeat){de.continuePropagation();return}switch(de.key){case" ":!H&&w.selectionMode==="none"&&!z&&o!==!1&&X&&X();break;case"Enter":!H&&o!==!1&&!z&&X&&X();break;default:z||de.continuePropagation(),x?.(de);break}},onKeyUp:g}),{focusProps:re}=q4({onBlur:E,onFocus:M,onFocusChange:b}),K=it($?.props);delete K.id;let he=Ig($?.props);return{menuItemProps:{...k,...De(K,he,z?{onFocus:Z.onFocus,"data-collection":Z["data-collection"],"data-key":Z["data-key"]}:Z,oe,Y,fe,re,F.shouldUseVirtualFocus||z?{onMouseDown:de=>de.preventDefault()}:void 0,H?void 0:{onClick:ee}),tabIndex:Z.tabIndex!=null&&A&&!F.shouldUseVirtualFocus?-1:Z.tabIndex},labelProps:{id:N},descriptionProps:{id:T},keyboardShortcutProps:{id:O},isFocused:D,isFocusVisible:D&&w.isFocused&&rr()&&!A,isSelected:L,isPressed:te,isDisabled:H}}function Db(n){let{heading:t,"aria-label":e}=n,r=C1();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":e,"aria-labelledby":t?r:void 0}}}const Ob=c.createContext(null),_b=c.createContext({}),Nb=Ug(function(t,e){[t,e]=T4(t,e,_b),t=Ab(t);let r=t,{isPending:i}=r,{buttonProps:o,isPressed:s}=Yy(t,e),{focusProps:a,isFocused:l,isFocusVisible:u}=bu(t),{hoverProps:d,isHovered:f}=Y4({...t,isDisabled:t.isDisabled||i}),h={isHovered:f,isPressed:(r.isPressed||s)&&!i,isFocused:l,isFocusVisible:u,isDisabled:t.isDisabled||!1,isPending:i??!1},p=Yn({...t,values:h,defaultClassName:"react-aria-Button"}),m=C1(o.id),v=C1(),y=o["aria-labelledby"];i&&(y?y=`${y} ${v}`:o["aria-label"]&&(y=`${m} ${v}`));let x=c.useRef(i);c.useEffect(()=>{let M={"aria-labelledby":y||m};(!x.current&&l&&i||x.current&&l&&!i)&&Iu(M,"assertive"),x.current=i},[i,l,y,m]);let g=it(t,{global:!0});return delete g.onClick,c.createElement("button",{...De(g,p,o,a,d),type:o.type==="submit"&&i?"button":o.type,id:m,ref:e,"aria-labelledby":y,slot:t.slot||void 0,"aria-disabled":i?"true":o["aria-disabled"],"data-disabled":t.isDisabled||void 0,"data-pressed":h.isPressed||void 0,"data-hovered":f||void 0,"data-focused":l||void 0,"data-pending":i||void 0,"data-focus-visible":u||void 0},c.createElement(Ob.Provider,{value:{id:v}},p.children))});function Ab(n){return n.isPending&&(n.onPress=void 0,n.onPressStart=void 0,n.onPressEnd=void 0,n.onPressChange=void 0,n.onPressUp=void 0,n.onKeyDown=void 0,n.onKeyUp=void 0,n.onClick=void 0,n.href=void 0),n}const Fb=c.createContext({});class P1 extends Set{constructor(t,e,r){super(t),t instanceof P1?(this.anchorKey=e??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=e??null,this.currentKey=r??null)}}function Lb(n,t){if(n.size!==t.size)return!1;for(let e of n)if(!t.has(e))return!1;return!0}function x8(n){let{selectionMode:t="none",disallowEmptySelection:e=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=n,s=c.useRef(!1),[,a]=c.useState(!1),l=c.useRef(null),u=c.useRef(null),[,d]=c.useState(null),f=c.useMemo(()=>M8(n.selectedKeys),[n.selectedKeys]),h=c.useMemo(()=>M8(n.defaultSelectedKeys,new P1),[n.defaultSelectedKeys]),[p,m]=jn(f,h,n.onSelectionChange),v=c.useMemo(()=>n.disabledKeys?new Set(n.disabledKeys):new Set,[n.disabledKeys]),[y,x]=c.useState(i);i==="replace"&&y==="toggle"&&typeof p=="object"&&p.size===0&&x("replace");let g=c.useRef(i);return c.useEffect(()=>{i!==g.current&&(x(i),g.current=i)},[i]),{selectionMode:t,disallowEmptySelection:e,selectionBehavior:y,setSelectionBehavior:x,get isFocused(){return s.current},setFocused(M){s.current=M,a(M)},get focusedKey(){return l.current},get childFocusStrategy(){return u.current},setFocusedKey(M,b="first"){l.current=M,u.current=b,d(M)},selectedKeys:p,setSelectedKeys(M){(r||!Lb(M,p))&&m(M)},disabledKeys:v,disabledBehavior:o}}function M8(n,t){return n?n==="all"?"all":new P1(n):t}class fr{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,e){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,e)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let e=this.getKey(t);return e==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(e):this.state.selectedKeys.has(e)}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 t=this.getSelectAllKeys(),e=this.state.selectedKeys;return this._isSelectAll=t.every(r=>e.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!t||i&&c5(this.collection,i,t)<0)&&(t=i)}var e;return(e=t?.key)!==null&&e!==void 0?e:null}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!t||i&&c5(this.collection,i,t)>0)&&(t=i)}var e;return(e=t?.key)!==null&&e!==void 0?e:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let e=this.getKey(t);if(e==null)return;let r;if(this.state.selectedKeys==="all")r=new P1([e],e,e);else{let s=this.state.selectedKeys;var i;let a=(i=s.anchorKey)!==null&&i!==void 0?i:e;r=new P1(s,a,e);var o;for(let l of this.getKeyRange(a,(o=s.currentKey)!==null&&o!==void 0?o:e))r.delete(l);for(let l of this.getKeyRange(e,a))this.canSelectItem(l)&&r.add(l)}this.state.setSelectedKeys(r)}getKeyRange(t,e){let r=this.collection.getItem(t),i=this.collection.getItem(e);return r&&i?c5(this.collection,r,i)<=0?this.getKeyRangeInternal(t,e):this.getKeyRangeInternal(e,t):[]}getKeyRangeInternal(t,e){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(t,e);let i=[],o=t;for(;o!=null;){let s=this.collection.getItem(o);if(s&&(s.type==="item"||s.type==="cell"&&this.allowsCellSelection)&&i.push(o),o===e)return i;o=this.collection.getKeyAfter(o)}return[]}getKey(t){let e=this.collection.getItem(t);if(!e||e.type==="cell"&&this.allowsCellSelection)return t;for(;e&&e.type!=="item"&&e.parentKey!=null;)e=this.collection.getItem(e.parentKey);return!e||e.type!=="item"?null:e.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let e=this.getKey(t);if(e==null)return;let r=new P1(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(e)?r.delete(e):this.canSelectItem(e)&&(r.add(e),r.anchorKey=e,r.currentKey=e),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none")return;let e=this.getKey(t);if(e==null)return;let r=this.canSelectItem(e)?new P1([e],e,e):new P1;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let e=new P1;for(let r of t){let i=this.getKey(r);if(i!=null&&(e.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(e)}getSelectAllKeys(){let t=[],e=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let s=this.collection.getItem(r);s?.type==="item"&&t.push(r);var o;s?.hasChildNodes&&(this.allowsCellSelection||s.type!=="item")&&e((o=(i=Sb(Nu(s,this.collection)))===null||i===void 0?void 0:i.key)!==null&&o!==void 0?o:null)}r=this.collection.getKeyAfter(r)}};return e(this.collection.getFirstKey()),t}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 P1)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,e){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||e&&(e.pointerType==="touch"||e.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let e=this.selectedKeys;if(t.size!==e.size)return!1;for(let r of t)if(!e.has(r))return!1;for(let r of e)if(!t.has(r))return!1;return!0}canSelectItem(t){var e;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(e=r.props)===null||e===void 0)&&e.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var e,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(e=r.props)===null||e===void 0)&&e.isDisabled))}isLink(t){var e,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(e=r.props)===null||e===void 0)&&e.href)}getItemProps(t){var e;return(e=this.collection.getItem(t))===null||e===void 0?void 0:e.props}withCollection(t){return new fr(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,e,r){this.collection=t,this.state=e;var i;this.allowsCellSelection=(i=r?.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=r?.layoutDelegate||null}}function Kb(n){let[t,e]=jn(n.isOpen,n.defaultOpen||!1,n.onOpenChange);const r=c.useCallback(()=>{e(!0)},[e]),i=c.useCallback(()=>{e(!1)},[e]),o=c.useCallback(()=>{e(!t)},[e,t]);return{isOpen:t,setOpen:e,open:r,close:i,toggle:o}}function E8(n){let t=Kb(n),[e,r]=c.useState(null),[i,o]=c.useState([]),s=()=>{o([]),t.close()};return{focusStrategy:e,...t,open(u=null){r(u),t.open()},toggle(u=null){r(u),t.toggle()},close(){s()},expandedKeysStack:i,openSubmenu:(u,d)=>{o(f=>d>f.length?f:[...f.slice(0,d),u])},closeSubmenu:(u,d)=>{o(f=>f[d]===u?f.slice(0,d):f)}}}class Bb{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let e=this.keyMap.get(t);var r;return e&&(r=e.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(t){let e=this.keyMap.get(t);var r;return e&&(r=e.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var e;return(e=this.keyMap.get(t))!==null&&e!==void 0?e:null}at(t){const e=[...this.getKeys()];return this.getItem(e[t])}constructor(t,{expandedKeys:e}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t,e=e||new Set;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&(a.type==="section"||e.has(a.key)))for(let l of a.childNodes)r(l)};for(let a of t)r(a);let i=null,o=0;for(let[a,l]of this.keyMap)i?(i.nextKey=a,l.prevKey=i.key):(this.firstKey=a,l.prevKey=void 0),l.type==="item"&&(l.index=o++),i=l,i.nextKey=void 0;var s;this.lastKey=(s=i?.key)!==null&&s!==void 0?s:null}}function Hb(n){let{onExpandedChange:t}=n,[e,r]=jn(n.expandedKeys?new Set(n.expandedKeys):void 0,n.defaultExpandedKeys?new Set(n.defaultExpandedKeys):new Set,t),i=x8(n),o=c.useMemo(()=>n.disabledKeys?new Set(n.disabledKeys):new Set,[n.disabledKeys]),s=wb(n,c.useCallback(l=>new Bb(l,{expandedKeys:e}),[e]),null);return c.useEffect(()=>{i.focusedKey!=null&&!s.getItem(i.focusedKey)&&i.setFocusedKey(null)},[s,i.focusedKey]),{collection:s,expandedKeys:e,disabledKeys:o,toggleKey:l=>{r(Vb(e,l))},setExpandedKeys:r,selectionManager:new fr(s,i)}}function Vb(n,t){let e=new Set(n);return e.has(t)?e.delete(t):e.add(t),e}const I8=c.createContext(null),qb=c.createContext(null),jb={CollectionRoot({collection:n,renderDropIndicator:t}){return w8(n,null,t)},CollectionBranch({collection:n,parent:t,renderDropIndicator:e}){return w8(n,t,e)}};function w8(n,t,e){return _c({items:t?n.getChildren(t.key):n,dependencies:[e],children(r){let i=r.render(r);return!e||r.type!=="item"?i:c.createElement(c.Fragment,null,e({type:"item",key:r.key,dropPosition:"before"}),i,Ub(n,r,e))}})}function Ub(n,t,e){let r=t.key,i=n.getKeyAfter(r),o=i!=null?n.getItem(i):null;for(;o!=null&&o.type!=="item";)i=n.getKeyAfter(o.key),o=i!=null?n.getItem(i):null;let s=t.nextKey!=null?n.getItem(t.nextKey):null;for(;s!=null&&s.type!=="item";)s=s.nextKey!=null?n.getItem(s.nextKey):null;let a=[];if(s==null){let l=t;for(;l&&(!o||l.parentKey!==o.parentKey&&o.level<l.level);){let u=e({type:"item",key:l.key,dropPosition:"after"});c.isValidElement(u)&&a.push(c.cloneElement(u,{key:`${l.key}-after`})),l=l.parentKey!=null?n.getItem(l.parentKey):null}}return a}const S8=c.createContext(jb);function Wb(n){return c.useMemo(()=>n!=null?new Set([n]):null,[n])}const Yb=c.createContext({}),Rb=c.createContext({}),Gb=c.createContext(null),Xb=c.createContext({}),C8=c.createContext(null),u5=c.createContext(null),d5=c.createContext(null),pr=c.createContext(null);function P8(n){let t=E8(n),e=c.useRef(null),{menuTriggerProps:r,menuProps:i}=zb({...n,type:"menu"},t,e),[o,s]=c.useState(null),a=c.useCallback(()=>{e.current&&s(e.current.offsetWidth+"px")},[e]);kg({ref:e,onResize:a});let l=c.useRef(null);return c.createElement(Wn,{values:[[C8,{...i,ref:l}],[tx,t],[d5,t],[Gb,{trigger:"MenuTrigger",triggerRef:e,scrollRef:l,placement:"bottom start",style:{"--trigger-width":o},"aria-labelledby":i["aria-labelledby"]}]]},c.createElement(dy,{...r,ref:e,isPressed:t.isOpen},n.children))}const Jb=c.createContext(null),k8=c.forwardRef(function(t,e){return[t,e]=T4(t,e,C8),c.createElement(yy,{content:c.createElement(Cy,t)},r=>c.createElement(Zb,{props:t,collection:r,menuRef:e}))});function Zb({props:n,collection:t,menuRef:e}){let{filter:r,collectionProps:i,collectionRef:o}=c.useContext(I8)||{};e=Vn(c.useMemo(()=>gc(e,o!==void 0?o:null),[o,e]));let s=c.useMemo(()=>r?t.UNSTABLE_filter(r):t,[t,r]),a=Hb({...n,collection:s,children:void 0}),l=c.useContext(d5),{isVirtualized:u,CollectionRoot:d}=c.useContext(S8),{menuProps:f}=$b({...n,...i,isVirtualized:u,onClose:n.onClose||l?.close},a,e),h=Yn({defaultClassName:"react-aria-Menu",className:n.className,style:n.style,values:{isEmpty:a.collection.size===0}}),p=null;a.collection.size===0&&n.renderEmptyState&&(p=c.createElement("div",{role:"menuitem",style:{display:"contents"}},n.renderEmptyState()));let m=it(n,{global:!0});return c.createElement(Ry,null,c.createElement("div",{...De(m,h,f),ref:e,slot:n.slot||void 0,"data-empty":a.collection.size===0||void 0,onScroll:n.onScroll},c.createElement(Wn,{values:[[u5,a],[Rb,{elementType:"div"}],[qb,{name:"MenuSection",render:ex}],[Jb,{parentMenuRef:e,shouldUseVirtualFocus:i?.shouldUseVirtualFocus}],[f5,null],[I8,null],[pr,a.selectionManager],[d5,l??E8({})]]},c.createElement(d,{collection:a.collection,persistedKeys:Wb(a.selectionManager.focusedKey),scrollRef:e})),p))}class Qb extends fr{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(t,e){return this.parent.setFocusedKey(t,e)}setFocused(t){this.parent.setFocused(t)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(t,e){super(t.collection,e),this.parent=t}}function ex(n,t,e,r="react-aria-MenuSection"){var i,o;let s=c.useContext(u5),{CollectionBranch:a}=c.useContext(S8),[l,u]=Vg();var d;let{headingProps:f,groupProps:h}=Db({heading:u,"aria-label":(d=e.props["aria-label"])!==null&&d!==void 0?d:void 0}),p=Yn({defaultClassName:r,className:(i=e.props)===null||i===void 0?void 0:i.className,style:(o=e.props)===null||o===void 0?void 0:o.style,values:{}}),m=c.useContext(pr),v=x8(n),y=n.selectionMode!=null?new Qb(m,v):m,x=it(n,{global:!0});return delete x.id,c.createElement("section",{...De(x,p,h),ref:t},c.createElement(Wn,{values:[[Yb,{...f,ref:l}],[pr,y]]},c.createElement(a,{collection:s.collection,parent:e})))}const f5=c.createContext(null),z8=wy("item",function(t,e,r){var i;[t,e]=T4(t,e,f5);let o=(i=Tc(f5))===null||i===void 0?void 0:i.id,s=c.useContext(u5),a=Vn(e),l=c.useContext(pr),{menuItemProps:u,labelProps:d,descriptionProps:f,keyboardShortcutProps:h,...p}=Tb({...t,id:o,key:r.key,selectionManager:l},s,a),{hoverProps:m,isHovered:v}=Y4({isDisabled:p.isDisabled}),y=Yn({...t,id:void 0,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...p,isHovered:v,isFocusVisible:p.isFocusVisible,selectionMode:l.selectionMode,selectionBehavior:l.selectionBehavior,hasSubmenu:!!t["aria-haspopup"],isOpen:t["aria-expanded"]==="true"}}),x=t.href?"a":"div",g=it(t,{global:!0});return delete g.id,delete g.onClick,c.createElement(x,{...De(g,y,u,m),ref:a,"data-disabled":p.isDisabled||void 0,"data-hovered":v||void 0,"data-focused":p.isFocused||void 0,"data-focus-visible":p.isFocusVisible||void 0,"data-pressed":p.isPressed||void 0,"data-selected":p.isSelected||void 0,"data-selection-mode":l.selectionMode==="none"?void 0:l.selectionMode,"data-has-submenu":!!t["aria-haspopup"]||void 0,"data-open":t["aria-expanded"]==="true"||void 0},c.createElement(Wn,{values:[[Fb,{slots:{[$c]:d,label:d,description:f}}],[Xb,h]]},y.children))}),tx=c.createContext(null);F1.icons.map(n=>n.properties.name);const $8=n=>c.createElement(c.Fragment,null);$8.displayName="MenuButton.Item";function hr(){return hr=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)({}).hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},hr.apply(null,arguments)}function T8({menuItems:n,testId:t,children:e}){const[r,i]=c.useState(!1),[o,s]=c.useState(!0),{handleMouseEvent:a,trigger:l,parentRef:u}=Yd({enabled:o}),{renderLayer:d,triggerProps:f,layerProps:h}=Zt({isOpen:r,auto:!0,onOutsideClick:()=>{i(!1),s(!0)},preferX:"right",preferY:"bottom",placement:"bottom-start",trigger:l,container:o6});function p(g){g.preventDefault(),i(!0),s(!1)}function m(g){g.preventDefault(),g.key==="F12"&&g.ctrlKey&&(i(!0),s(!1))}const v=g=>{const M=n.find(b=>b.props.id===g);M?.props.onSelect&&M.props.onSelect(M.props.label,M.props.id),i(!1),s(!0)},y=({key:g})=>{g==="Escape"&&r&&(i(!1),s(!0))},x=g=>{u.current?.contains(g.target)||(i(!1),s(!0))};return c.useEffect(()=>(window.addEventListener("keyup",y),window.addEventListener("contextmenu",x),()=>{window.removeEventListener("keyup",y),window.removeEventListener("contextmenu",x)}),[y]),c.createElement(P8,{isOpen:!0,onOpenChange:g=>{g&&i(g)},"data-testid":t},c.createElement("div",hr({ref:u,role:"button",tabIndex:0,"aria-label":"Press Control + F12 to open the context menu",onContextMenu:p,onKeyDown:m,onMouseMove:a},f),e),r&&d(c.createElement("div",hr({className:"nds-context-menu-popover"},h),c.createElement(k8,{onAction:v,className:"nds-context-menu rounded--all elevation--high"},n.map((g,M)=>c.createElement(z8,{key:g.props.id,id:g.props.id,value:g.props.id,className:({isSelected:b,isFocused:E,isDisabled:w})=>ae(["nds-context-menu-item","padding--x--s padding--y--xs",{"nds-context-menu-item--highlighted":b||E,"nds-context-menu-item--disabled":w,"rounded--top":M===0,"rounded--bottom":M===n.length-1}])},c.createElement(ce,{gapSize:"s"},g.props.startIcon&&c.createElement(ce.Item,{shrink:!0},c.createElement("span",{className:`narmi-icon-${g.props.startIcon}`})),c.createElement(ce.Item,null,g.props.label))))))))}T8.Item=$8;function vr(){return vr=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)({}).hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},vr.apply(null,arguments)}const p5=()=>{},nx=({title:n,subtitle:t,statusText:e,isOpen:r,trigger:i="header",onOpen:o=p5,onClose:s=p5,isDisabled:a=!1,onDisabledClick:l=p5,renderTitle:u,hasError:d=!1,disableHover:f=!1,children:h,radiusSize:p="m",kind:m="default"})=>{const[v,y]=c.useState(!1),x=(z=!1,A)=>{if(z){l();return}else A==="open"?(o(),y(!0)):A==="close"&&(s(),y(!1))},g=()=>{y(!1),r?s():o()},M=c.createElement("div",{className:ae(["collapsible-card-trigger","alignChild--center--center",{"padding--left":i=="caret-start","padding--right--l":i=="caret-end"}])},c.createElement(Mn,{kind:"action",label:r?"Close":"Open",onClick:g,name:`chevron-${r?"up":"down"}`,textSize:"l",onKeyUp:({key:z})=>{z==="Enter"&&g()}})),b=c.createElement("div",{className:ae(["collapsible-card-titleBar",`rounded--top--${m==="ai"?"m":p}`])},c.createElement(m6,{isDisabled:a},typeof u=="function"?u(r):c.createElement(ce,{alignItems:"center",gapSize:"s"},i==="caret-start"&&c.createElement(ce.Item,{shrink:!0},M),c.createElement(ce.Item,null,c.createElement("h4",{className:ae(["fontWeight--bold","fontSize--xl","padding--top--l","fontFamily--body",{"padding--left--l":i!=="caret-start"}])},n),c.createElement("div",{className:ae([a?"subtitle--disabled":"subtitle","padding--bottom--l","margin--top--xxs",{"padding--left--l":i!=="caret-start"}])},t)),i==="caret-end"&&c.createElement(ce.Item,{shrink:!0},M),e&&c.createElement(ce.Item,{shrink:!0},c.createElement("div",{className:"collapsible-card--statusText padding--right--l fontSize--s alignChild--right--center"},c.createElement("span",null,e)))))),E=ae(["collapsible-card--content-card",`collapisble-card--${m}`,{"content-card--hasCaretTrigger":i.includes("caret"),"content-card--error":d,"content-card--disabled":a,"content-card--hover":i==="header"&&!f&&v,"collapsible-card--no-user-select":!f||i==="header","collapsible-card--customTitle":typeof u=="function"},r&&!a?void 0:"content-card--closed",`rounded--all--${p}`,"bgColor--white"]),w=i==="header"?{role:"button",tabIndex:0,onKeyUp:({key:z})=>{if(z==="Enter"){const A=r&&!a?"close":"open";x(A==="open"?a:!1,A)}},onClick:()=>{const z=r&&!a?"close":"open";x(z==="open"?a:!1,z)}}:{};return c.createElement("div",{className:E},r&&!a?c.createElement(c.Fragment,null,c.createElement("div",vr({className:`collapsible-card--title-expanded rounded--top--${p}`,"aria-expanded":"true",onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1)},w),b),c.createElement("div",{className:"padding--all--l"},h)):c.createElement("div",vr({"aria-expanded":"false"},w),b))},h5=({children:n,value:t})=>c.createElement(c.Fragment,null,n||t);h5.displayName="Combobox.Item",h5.propTypes={value:q.string.isRequired,searchValue:q.string.isRequired,children:q.oneOfType([q.node,q.arrayOf(q.node)])};const D8=({text:n,kind:t="bold"})=>c.createElement("h5",{className:`nds-combobox-list-heading--${t}`},n);D8.displayName="Combobox.Heading";const mr=({children:n})=>c.createElement(c.Fragment,null,n);mr.displayName="Combobox.Category",mr.propTypes={label:q.string.isRequired,children:q.oneOfType([q.node,q.arrayOf(q.node)])};const rx=()=>{},v5=({onSelect:n=rx})=>c.createElement(c.Fragment,null);v5.displayName="Combobox.Action",v5.propTypes={onSelect:q.func.isRequired,label:q.string.isRequired};function gr(){return gr=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)({}).hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},gr.apply(null,arguments)}const w6=c.forwardRef(({isOpen:n=!1,showOpenIndicator:t=!0,disabled:e=!1,labelText:r,labelProps:i,displayValue:o,renderDisplayValue:s,errorText:a,hasError:l=!1,minWidth:u="auto",kind:d="default",testId:f,startContent:h=c.createElement(c.Fragment,null),endContent:p=c.createElement(c.Fragment,null),...m},v)=>c.createElement(c.Fragment,null,c.createElement("div",{className:`nds-dropdownTrigger nds-dropdownTrigger--${d}`,style:{minWidth:u}},c.createElement("button",gr({disabled:e,ref:v,"data-testid":f||"dropdownTriggerButton",className:ae(["nds-dropdownTrigger-button button--reset","padding--x--s rounded--all",{"nds-dropdownTrigger-button--hasValue":!!o,"nds-dropdownTrigger-button--hasError":!!a||l,"nds-dropdownTrigger-button--isActive":n,"nds-dropdownTrigger-button--disabled":e}]),"aria-expanded":n?"true":"false",type:"button"},m),h,r&&c.createElement("label",gr({className:"nds-dropdownTrigger-label"},i),r),s?s():o&&c.createElement("span",{className:"nds-dropdownTrigger-value"},o),p,t&&!e&&c.createElement("span",{role:"img","aria-label":n?"popup open":"popup closed",className:ae(["nds-dropdownTrigger-chevron fontSize--xl fontColor--secondary",`narmi-icon-chevron-${n?"up":"down"}`])}))),a&&c.createElement(O1,{error:a})));w6.displayName="DropdownTrigger";const m5=({children:n})=>c.createElement(c.Fragment,null,n);m5.displayName="Select.Item",m5.propTypes={value:q.string.isRequired,searchValue:q.string.isRequired,children:q.oneOfType([q.node,q.arrayOf(q.node)])};const g5=({children:n})=>c.createElement(c.Fragment,null,n);g5.displayName="Select.Action",g5.propTypes={onSelect:q.func.isRequired,children:q.oneOfType([q.node,q.arrayOf(q.node)])};const y5=({children:n})=>c.createElement(c.Fragment,null,n);y5.displayName="Select.Category",y5.propTypes={label:q.string,kind:q.oneOf(["heading","label"]),children:q.oneOfType([q.node,q.arrayOf(q.node)]),isFlat:q.bool};function Ot(){return Ot=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)({}).hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},Ot.apply(null,arguments)}const ix=()=>{},q1=n=>{let t=!1;return n&&n.props&&(t="onSelect"in n.props),t},ox=n=>{let t="";return n&&!q1(n)&&(t=n.props.children),t},O8=(n,t)=>t.filter(r=>!q1(r)).filter(({props:r})=>r.value===n).pop()||"",_8=(n,t)=>{let e=0;return q1(n)?e=t.map(({props:r})=>r.onSelect).indexOf(n.props.onSelect):e=t.map(({props:r})=>r.value).indexOf(n.props.value),e},sx=(n,t,e)=>{if(n<0)return!1;const r=e[n].props.value;return t.map(o=>o.props.value).includes(r)},ax=(n,t)=>{if(!n||q1(n))return!1;const e=n.props.value;return t.map(i=>i.props.value).includes(e)},lx=(n="",t)=>q1(t)?"":t.props.searchValue||t.props.value,yr=({id:n,label:t,children:e,onChange:r=ix,value:i,defaultValue:o,defaultOpen:s=!1,disabled:a=!1,getTypeaheadString:l=lx,clearSelectionOnAction:u=!1,errorText:d,testId:f,maxMenuHeight:h="40vh"})=>{let p=[],m=[];const v=c.useMemo(()=>c.Children.toArray(e).filter(N=>!q1(N)),[e]),y=c.Children.toArray(e).filter(q1),[x,g]=c.useState("");v.some(({type:N})=>N.displayName==="Select.Category")?(p=[...v.flatMap(({props:N})=>c.Children.toArray(N.children)),...y],m=v.map(({props:N})=>({label:N.label,categoryChildren:c.Children.toArray(N.children),kind:N.kind,isFlat:N.isFlat}))):p=[...v,...y];const M={id:n||`nds-select-${t}`,items:p,disabled:a,initialSelectedItem:o&&O8(o,p),initialIsOpen:s,itemToString:N=>l(x,N),onSelectedItemChange:({selectedItem:N})=>{N&&!q1(N)&&r(N.props?N.props.value:"")},stateReducer:(N,T)=>{const{type:O,changes:k}=T,{selectedItem:V}=N,{selectedItem:U}=k;let G=k.isOpen;if(O===p1.stateChangeTypes.ToggleButtonKeyDownCharacter){const{inputValue:R}=k;g(R),G=!0}else g("");return q1(U)?(U.props.onSelect(),u&&r(""),{...k,selectedItem:u?null:V,isOpen:!1}):{...k,isOpen:G}}};i!==void 0&&(M.selectedItem=O8(i,p));const{isOpen:b,selectedItem:E,getToggleButtonProps:w,getLabelProps:z,getMenuProps:A,highlightedIndex:C,getItemProps:H,closeMenu:I}=p1(M),{anchorProps:L,layerProps:F}=p6({isOpen:b,setIsOpen:N=>{N||I()}}),$=m.length>0,X=E!==null&&E.props,_=b&&p.length>0,B=(N,T)=>{const O=_8(N,T);return c.createElement("li",Ot({key:`item-${O}`,className:ae(["nds-select-item","alignChild--left--center padding--x--s padding--y--xs",{"nds-select-item--highlighted":C===O,"rounded--top":O===0,"rounded--bottom":O===T.length-1,"nds-select-item--hasGutter":$}])},H({item:N,index:O})),c.createElement(ce,{as:"span"},c.createElement(ce.Item,{as:"span"},N),X&&E.props.value===N.props.value&&c.createElement(ce.Item,{as:"span",shrink:!0},c.createElement("span",{className:"narmi-icon-check fontSize--xl fontWeight--bold"}))))},W=N=>{let T={};return(sx(C,N,p)||ax(E,N))&&(T.open=!0),T};return c.createElement("div",{className:"nds-select","data-testid":f},c.createElement("div",L,c.createElement(w6,Ot({isOpen:_,labelText:t,disabled:a,displayValue:ox(E)||x,labelProps:{...z()},hasError:!!d},w()))),c.createElement(O1,{error:d}),c.createElement("div",F,c.createElement("div",Ot({className:ae(["nds-select-list","bgColor--white",{"nds-select-list--error":!!d}])},A(),{style:{maxHeight:h}}),_&&$&&m.map(({label:N,kind:T,categoryChildren:O,isFlat:k})=>k?c.createElement(c.Fragment,null,N&&c.createElement("h4",{id:`select-category-${N}`,className:ae(["fontFamily--default","padding--x--s padding--y--xs",{"select-category-title--label":T==="label","select-category-title--heading":T==="heading"}])},N),c.createElement("ul",{className:"list--reset","aria-labelledby":`select-category-${N}`},O.map(V=>B(V,p)))):c.createElement("details",Ot({key:N,className:"nds-select-category"},W(O)),c.createElement("summary",{className:ae(["alignChild--left--center","padding--x--s",{"select-category-title--label":T==="label","select-category-title--heading":T==="heading"||!T}])},c.createElement("span",{id:`select-category-${N}`},N),c.createElement("span",{className:"nds-category-icon narmi-icon-chevron-down"}),c.createElement("span",{className:"nds-category-icon narmi-icon-chevron-up"})),c.createElement("ul",{className:"list--reset","aria-labelledby":`select-category-${N}`},O.map(V=>B(V,p))))),_&&$&&c.createElement("ul",{className:"list--reset"},y.map(N=>B(N,p))),_&&!$&&c.createElement("ul",{className:"list--reset"},v.map(N=>B(N,p)),y.map(N=>B(N,p))))))};yr.Item=m5,yr.Action=g5,yr.Category=y5;function _t(){return _t=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)({}).hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},_t.apply(null,arguments)}const N8=()=>{};F1.icons.map(n=>n.properties.name);const S6=n=>{let t=!1;return n&&n.props&&(t="label"in n.props),t},b5=n=>{let t=!1;return n&&(t=S6(n)||"value"in n.props),t},cx=(n,t,e,r,i)=>{let o=!1;if(t>-1&&e.length>0){const s=e[t].props.value;o=r.map(l=>l.props.value).includes(s)}return typeof n=="string"&&n.length>0&&(o=!0),i&&(o=r.map(s=>s.props.value).includes(i.props.value)),o},ux=(n,t)=>t.map(r=>r.props.value).reduce((r,i)=>{const o=n.find(s=>i===s.props.value);return o&&r.push(o),r},[]),dx=(n,t)=>n.filter(e=>(e.props.searchValue||e.props.value).toLowerCase().startsWith(t)),fx=n=>c.createElement("span",{className:`fontSize--xl fontColor--primary narmi-icon-${n?"chevron-up":"chevron-down"}`}),C6=({label:n,onChange:t=N8,onInputChange:e=N8,inputValue:r,filterItemsByInput:i=dx,children:o,disableFiltering:s=!1,clearSelectionOnAction:a=!1,errorText:l,icon:u,testId:d,renderEndContent:f=fx,maxMenuHeight:h="40vh"})=>{const p=c.useMemo(()=>c.Children.toArray(o),[o]),m=p.some(({type:O})=>O.displayName===mr.displayName);let v=[],y=p.length<1?[]:p.filter(({props:O})=>"value"in O||"text"in O);m?(y=p.flatMap(({props:O})=>c.Children.toArray(O.children)),v=p.map(({props:O})=>({label:O.label,categoryChildren:c.Children.toArray(O.children)}))):y=p;const[x,g]=c.useState(y),M=O=>O?.props?.searchValue||O?.props?.value||"",{isOpen:b,selectedItem:E,getInputProps:w,getMenuProps:z,getItemProps:A,highlightedIndex:C,inputValue:H,openMenu:I,closeMenu:L,reset:F}=c6({items:x,inputValue:r,itemToString:M,onInputValueChange:({inputValue:O})=>{if(O.length===0){g(y),F(),e("");return}if(!s){const k=y.filter(S6),V=i(y.filter(U=>!S6(U)&&b5(U)),O.toLowerCase());g([...V,...k])}e(O)},onSelectedItemChange:({selectedItem:O})=>{t(O?O.props.value:""),L()},stateReducer:(O,k)=>{const{changes:V}=k,{selectedItem:U}=O,{selectedItem:G}=V;return S6(G)?(G.props.onSelect(),{...V,selectedItem:a?null:U,inputValue:a?"":M(U),isOpen:!1}):V}}),{anchorProps:$,layerProps:X}=p6({isOpen:b,setIsOpen:O=>{O||L()}});c.useEffect(()=>{(!H||H.length===0)&&y.length!==x.length&&g(y)},[y,H]);const _=!!E,B=(O,k)=>{const V=S6(O);let U=c.createElement("li",{key:`${O}-${k}`,className:"alignChild--left--center"},O);return b5(O)&&(U=c.createElement("li",_t({key:`${O}-${k}`,className:ae(["nds-combobox-item","alignChild--left--center padding--x--s",{"nds-combobox-action":V,"padding--y--xs":!m,"nds-combobox-item--highlighted":C===k,"rounded--top":k===0,"rounded--bottom":k===x.length-1}])},A({item:O,index:k})),V&&c.createElement(ce,{as:"span",gapSize:"xxs"},c.createElement(ce.Item,{as:"span",shrink:!0},c.createElement("span",{className:"narmi-icon-plus fontWeight--bold"})),c.createElement(ce.Item,{as:"span"},c.createElement("span",{className:"fontWeight--semibold"},O.props.label))),!V&&c.createElement(ce,{as:"span"},c.createElement(ce.Item,{as:"span"},O),_&&E.props.value===O.props.value&&c.createElement(ce.Item,{as:"span",shrink:!0},c.createElement("span",{className:"narmi-icon-check fontSize--xl fontWeight--bold"}))))),U},W=({label:O,categoryChildren:k})=>{const V={},U=ux(x,k),G=U.length>0;return cx(H,C,x,k,E)&&(V.open=!0),G?c.createElement("details",_t({key:O,className:"nds-combobox-category",tabIndex:-1},V),c.createElement("summary",{className:"fontWeight--bold alignChild--left--center padding--x--s padding--y-xs",onFocus:R=>{R.target.blur()}},c.createElement("span",{id:`combobox-category-${O}`},O),c.createElement("span",{className:"nds-category-icon narmi-icon-chevron-down"}),c.createElement("span",{className:"nds-category-icon narmi-icon-chevron-up"})),c.createElement("ul",{className:"list--reset","aria-labelledby":`combobox-category-${O}`},U.map(R=>B(R,_8(R,x))))):null},N=()=>{b||(I(),_&&g(y.filter(b5)))},T=()=>{e(E?M(E):""),C!==-1&&L()};return y.length<1?c.createElement(U1,{error:l,label:n,startIcon:u,onChange:e,value:H}):c.createElement(c.Fragment,null,c.createElement("div",{className:ae(["nds-combobox",{"nds-combobox--active":b}]),"data-testid":d},c.createElement("div",$,c.createElement(U1,_t({error:l,renderError:!1,label:n,value:H,startIcon:u,endContent:f(b)},w({onBlur:T,onFocus:N,onClick:N}),{onClick:N}))),c.createElement(O1,{error:l,className:"margin--top--xs"}),c.createElement("div",X,c.createElement("ul",_t({className:ae(["nds-combobox-list","list--reset","bgColor--white",{"nds-combobox-list--error":!!l}])},z(),{style:{maxHeight:h}}),b&&(m?v.map(W):x.map(B))))))};C6.Item=h5,C6.Heading=D8,C6.Category=mr,C6.Action=v5;var P6={exports:{}},px=P6.exports,A8;function hx(){return A8||(A8=1,function(n,t){(function(e,r){r(t)})(px,function(e){var r={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(i){var o=i%100;if(o>3&&o<21)return"th";switch(o%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1};e.default=r,e.english=r,Object.defineProperty(e,"__esModule",{value:!0})})}(P6,P6.exports)),P6.exports}var x5=hx(),M5=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],Nt={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:typeof window=="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(n){return typeof console<"u"&&console.warn(n)},getWeek:function(n){var t=new Date(n.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var e=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-e.getTime())/864e5-3+(e.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},k6={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(n){var t=n%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},l1=function(n,t){return t===void 0&&(t=2),("000"+n).slice(t*-1)},b1=function(n){return n===!0?1:0};function F8(n,t){var e;return function(){var r=this,i=arguments;clearTimeout(e),e=setTimeout(function(){return n.apply(r,i)},t)}}var E5=function(n){return n instanceof Array?n:[n]};function i1(n,t,e){if(e===!0)return n.classList.add(t);n.classList.remove(t)}function Ee(n,t,e){var r=window.document.createElement(n);return t=t||"",e=e||"",r.className=t,e!==void 0&&(r.textContent=e),r}function br(n){for(;n.firstChild;)n.removeChild(n.firstChild)}function L8(n,t){if(t(n))return n;if(n.parentNode)return L8(n.parentNode,t)}function xr(n,t){var e=Ee("div","numInputWrapper"),r=Ee("input","numInput "+n),i=Ee("span","arrowUp"),o=Ee("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?r.type="number":(r.type="text",r.pattern="\\d*"),t!==void 0)for(var s in t)r.setAttribute(s,t[s]);return e.appendChild(r),e.appendChild(i),e.appendChild(o),e}function u1(n){try{if(typeof n.composedPath=="function"){var t=n.composedPath();return t[0]}return n.target}catch{return n.target}}var I5=function(){},Mr=function(n,t,e){return e.months[t?"shorthand":"longhand"][n]},vx={D:I5,F:function(n,t,e){n.setMonth(e.months.longhand.indexOf(t))},G:function(n,t){n.setHours((n.getHours()>=12?12:0)+parseFloat(t))},H:function(n,t){n.setHours(parseFloat(t))},J:function(n,t){n.setDate(parseFloat(t))},K:function(n,t,e){n.setHours(n.getHours()%12+12*b1(new RegExp(e.amPM[1],"i").test(t)))},M:function(n,t,e){n.setMonth(e.months.shorthand.indexOf(t))},S:function(n,t){n.setSeconds(parseFloat(t))},U:function(n,t){return new Date(parseFloat(t)*1e3)},W:function(n,t,e){var r=parseInt(t),i=new Date(n.getFullYear(),0,2+(r-1)*7,0,0,0,0);return i.setDate(i.getDate()-i.getDay()+e.firstDayOfWeek),i},Y:function(n,t){n.setFullYear(parseFloat(t))},Z:function(n,t){return new Date(t)},d:function(n,t){n.setDate(parseFloat(t))},h:function(n,t){n.setHours((n.getHours()>=12?12:0)+parseFloat(t))},i:function(n,t){n.setMinutes(parseFloat(t))},j:function(n,t){n.setDate(parseFloat(t))},l:I5,m:function(n,t){n.setMonth(parseFloat(t)-1)},n:function(n,t){n.setMonth(parseFloat(t)-1)},s:function(n,t){n.setSeconds(parseFloat(t))},u:function(n,t){return new Date(parseFloat(t))},w:I5,y:function(n,t){n.setFullYear(2e3+parseFloat(t))}},pt={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},z6={Z:function(n){return n.toISOString()},D:function(n,t,e){return t.weekdays.shorthand[z6.w(n,t,e)]},F:function(n,t,e){return Mr(z6.n(n,t,e)-1,!1,t)},G:function(n,t,e){return l1(z6.h(n,t,e))},H:function(n){return l1(n.getHours())},J:function(n,t){return t.ordinal!==void 0?n.getDate()+t.ordinal(n.getDate()):n.getDate()},K:function(n,t){return t.amPM[b1(n.getHours()>11)]},M:function(n,t){return Mr(n.getMonth(),!0,t)},S:function(n){return l1(n.getSeconds())},U:function(n){return n.getTime()/1e3},W:function(n,t,e){return e.getWeek(n)},Y:function(n){return l1(n.getFullYear(),4)},d:function(n){return l1(n.getDate())},h:function(n){return n.getHours()%12?n.getHours()%12:12},i:function(n){return l1(n.getMinutes())},j:function(n){return n.getDate()},l:function(n,t){return t.weekdays.longhand[n.getDay()]},m:function(n){return l1(n.getMonth()+1)},n:function(n){return n.getMonth()+1},s:function(n){return n.getSeconds()},u:function(n){return n.getTime()},w:function(n){return n.getDay()},y:function(n){return String(n.getFullYear()).substring(2)}},K8=function(n){var t=n.config,e=t===void 0?Nt:t,r=n.l10n,i=r===void 0?k6:r,o=n.isMobile,s=o===void 0?!1:o;return function(a,l,u){var d=u||i;return e.formatDate!==void 0&&!s?e.formatDate(a,l,d):l.split("").map(function(f,h,p){return z6[f]&&p[h-1]!=="\\"?z6[f](a,d,e):f!=="\\"?f:""}).join("")}},w5=function(n){var t=n.config,e=t===void 0?Nt:t,r=n.l10n,i=r===void 0?k6:r;return function(o,s,a,l){if(!(o!==0&&!o)){var u=l||i,d,f=o;if(o instanceof Date)d=new Date(o.getTime());else if(typeof o!="string"&&o.toFixed!==void 0)d=new Date(o);else if(typeof o=="string"){var h=s||(e||Nt).dateFormat,p=String(o).trim();if(p==="today")d=new Date,a=!0;else if(e&&e.parseDate)d=e.parseDate(o,h);else if(/Z$/.test(p)||/GMT$/.test(p))d=new Date(o);else{for(var m=void 0,v=[],y=0,x=0,g="";y<h.length;y++){var M=h[y],b=M==="\\",E=h[y-1]==="\\"||b;if(pt[M]&&!E){g+=pt[M];var w=new RegExp(g).exec(o);w&&(m=!0)&&v[M!=="Y"?"push":"unshift"]({fn:vx[M],val:w[++x]})}else b||(g+=".")}d=!e||!e.noCalendar?new Date(new Date().getFullYear(),0,1,0,0,0,0):new Date(new Date().setHours(0,0,0,0)),v.forEach(function(z){var A=z.fn,C=z.val;return d=A(d,C,u)||d}),d=m?d:void 0}}if(!(d instanceof Date&&!isNaN(d.getTime()))){e.errorHandler(new Error("Invalid date provided: "+f));return}return a===!0&&d.setHours(0,0,0,0),d}}};function d1(n,t,e){return e===void 0&&(e=!0),e!==!1?new Date(n.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):n.getTime()-t.getTime()}var mx=function(n,t,e){return n>Math.min(t,e)&&n<Math.max(t,e)},S5=function(n,t,e){return n*3600+t*60+e},gx=function(n){var t=Math.floor(n/3600),e=(n-t*3600)/60;return[t,e,n-t*3600-e*60]},yx={DAY:864e5};function C5(n){var t=n.defaultHour,e=n.defaultMinute,r=n.defaultSeconds;if(n.minDate!==void 0){var i=n.minDate.getHours(),o=n.minDate.getMinutes(),s=n.minDate.getSeconds();t<i&&(t=i),t===i&&e<o&&(e=o),t===i&&e===o&&r<s&&(r=n.minDate.getSeconds())}if(n.maxDate!==void 0){var a=n.maxDate.getHours(),l=n.maxDate.getMinutes();t=Math.min(t,a),t===a&&(e=Math.min(l,e)),t===a&&e===l&&(r=n.maxDate.getSeconds())}return{hours:t,minutes:e,seconds:r}}typeof Object.assign!="function"&&(Object.assign=function(n){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];if(!n)throw TypeError("Cannot convert undefined or null to object");for(var r=function(a){a&&Object.keys(a).forEach(function(l){return n[l]=a[l]})},i=0,o=t;i<o.length;i++){var s=o[i];r(s)}return n});var Qe=function(){return Qe=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n},Qe.apply(this,arguments)},B8=function(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;for(var r=Array(n),i=0,t=0;t<e;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r},bx=300;function xx(n,t){var e={config:Qe(Qe({},Nt),Be.defaultConfig),l10n:k6};e.parseDate=w5({config:e.config,l10n:e.l10n}),e._handlers=[],e.pluginElements=[],e.loadedPlugins=[],e._bind=v,e._setHoursFromDate=h,e._positionCalendar=$e,e.changeMonth=O,e.changeYear=ee,e.clear=k,e.close=V,e.onMouseOver=Y,e._createElement=Ee,e.createDay=w,e.destroy=U,e.isEnabled=Z,e.jumpToDate=g,e.updateValue=$1,e.open=re,e.redraw=We,e.set=o1,e.setDate=Ye,e.toggle=Vr;function r(){e.utils={getDaysInMonth:function(S,P){return S===void 0&&(S=e.currentMonth),P===void 0&&(P=e.currentYear),S===1&&(P%4===0&&P%100!==0||P%400===0)?29:e.l10n.daysInMonth[S]}}}function i(){e.element=e.input=n,e.isOpen=!1,he(),be(),Wt(),mt(),r(),e.isMobile||E(),x(),(e.selectedDates.length||e.config.noCalendar)&&(e.config.enableTime&&h(e.config.noCalendar?e.latestSelectedDateObj:void 0),$1(!1)),a();var S=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!e.isMobile&&S&&$e(),_e("onReady")}function o(){var S;return((S=e.calendarContainer)===null||S===void 0?void 0:S.getRootNode()).activeElement||document.activeElement}function s(S){return S.bind(e)}function a(){var S=e.config;S.weekNumbers===!1&&S.showMonths===1||S.noCalendar!==!0&&window.requestAnimationFrame(function(){if(e.calendarContainer!==void 0&&(e.calendarContainer.style.visibility="hidden",e.calendarContainer.style.display="block"),e.daysContainer!==void 0){var P=(e.days.offsetWidth+1)*S.showMonths;e.daysContainer.style.width=P+"px",e.calendarContainer.style.width=P+(e.weekWrapper!==void 0?e.weekWrapper.offsetWidth:0)+"px",e.calendarContainer.style.removeProperty("visibility"),e.calendarContainer.style.removeProperty("display")}})}function l(S){if(e.selectedDates.length===0){var P=e.config.minDate===void 0||d1(new Date,e.config.minDate)>=0?new Date:new Date(e.config.minDate.getTime()),j=C5(e.config);P.setHours(j.hours,j.minutes,j.seconds,P.getMilliseconds()),e.selectedDates=[P],e.latestSelectedDateObj=P}S!==void 0&&S.type!=="blur"&&Q(S);var J=e._input.value;f(),$1(),e._input.value!==J&&e._debouncedChange()}function u(S,P){return S%12+12*b1(P===e.l10n.amPM[1])}function d(S){switch(S%24){case 0:case 12:return 12;default:return S%12}}function f(){if(!(e.hourElement===void 0||e.minuteElement===void 0)){var S=(parseInt(e.hourElement.value.slice(-2),10)||0)%24,P=(parseInt(e.minuteElement.value,10)||0)%60,j=e.secondElement!==void 0?(parseInt(e.secondElement.value,10)||0)%60:0;e.amPM!==void 0&&(S=u(S,e.amPM.textContent));var J=e.config.minTime!==void 0||e.config.minDate&&e.minDateHasTime&&e.latestSelectedDateObj&&d1(e.latestSelectedDateObj,e.config.minDate,!0)===0,ne=e.config.maxTime!==void 0||e.config.maxDate&&e.maxDateHasTime&&e.latestSelectedDateObj&&d1(e.latestSelectedDateObj,e.config.maxDate,!0)===0;if(e.config.maxTime!==void 0&&e.config.minTime!==void 0&&e.config.minTime>e.config.maxTime){var se=S5(e.config.minTime.getHours(),e.config.minTime.getMinutes(),e.config.minTime.getSeconds()),me=S5(e.config.maxTime.getHours(),e.config.maxTime.getMinutes(),e.config.maxTime.getSeconds()),le=S5(S,P,j);if(le>me&&le<se){var ge=gx(se);S=ge[0],P=ge[1],j=ge[2]}}else{if(ne){var ie=e.config.maxTime!==void 0?e.config.maxTime:e.config.maxDate;S=Math.min(S,ie.getHours()),S===ie.getHours()&&(P=Math.min(P,ie.getMinutes())),P===ie.getMinutes()&&(j=Math.min(j,ie.getSeconds()))}if(J){var ve=e.config.minTime!==void 0?e.config.minTime:e.config.minDate;S=Math.max(S,ve.getHours()),S===ve.getHours()&&P<ve.getMinutes()&&(P=ve.getMinutes()),P===ve.getMinutes()&&(j=Math.max(j,ve.getSeconds()))}}p(S,P,j)}}function h(S){var P=S||e.latestSelectedDateObj;P&&P instanceof Date&&p(P.getHours(),P.getMinutes(),P.getSeconds())}function p(S,P,j){e.latestSelectedDateObj!==void 0&&e.latestSelectedDateObj.setHours(S%24,P,j||0,0),!(!e.hourElement||!e.minuteElement||e.isMobile)&&(e.hourElement.value=l1(e.config.time_24hr?S:(12+S)%12+12*b1(S%12===0)),e.minuteElement.value=l1(P),e.amPM!==void 0&&(e.amPM.textContent=e.l10n.amPM[b1(S>=12)]),e.secondElement!==void 0&&(e.secondElement.value=l1(j)))}function m(S){var P=u1(S),j=parseInt(P.value)+(S.delta||0);(j/1e3>1||S.key==="Enter"&&!/[^\d]/.test(j.toString()))&&ee(j)}function v(S,P,j,J){if(P instanceof Array)return P.forEach(function(ne){return v(S,ne,j,J)});if(S instanceof Array)return S.forEach(function(ne){return v(ne,P,j,J)});S.addEventListener(P,j,J),e._handlers.push({remove:function(){return S.removeEventListener(P,j,J)}})}function y(){_e("onChange")}function x(){if(e.config.wrap&&["open","close","toggle","clear"].forEach(function(j){Array.prototype.forEach.call(e.element.querySelectorAll("[data-"+j+"]"),function(J){return v(J,"click",e[j])})}),e.isMobile){Hr();return}var S=F8(fe,50);if(e._debouncedChange=F8(y,bx),e.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&v(e.daysContainer,"mouseover",function(j){e.config.mode==="range"&&Y(u1(j))}),v(e._input,"keydown",te),e.calendarContainer!==void 0&&v(e.calendarContainer,"keydown",te),!e.config.inline&&!e.config.static&&v(window,"resize",S),window.ontouchstart!==void 0?v(window.document,"touchstart",R):v(window.document,"mousedown",R),v(window.document,"focus",R,{capture:!0}),e.config.clickOpens===!0&&(v(e._input,"focus",e.open),v(e._input,"click",e.open)),e.daysContainer!==void 0&&(v(e.monthNav,"click",o0),v(e.monthNav,["keyup","increment"],m),v(e.daysContainer,"click",z1)),e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0){var P=function(j){return u1(j).select()};v(e.timeContainer,["increment"],l),v(e.timeContainer,"blur",l,{capture:!0}),v(e.timeContainer,"click",M),v([e.hourElement,e.minuteElement],["focus","click"],P),e.secondElement!==void 0&&v(e.secondElement,"focus",function(){return e.secondElement&&e.secondElement.select()}),e.amPM!==void 0&&v(e.amPM,"click",function(j){l(j)})}e.config.allowInput&&v(e._input,"blur",oe)}function g(S,P){var j=S!==void 0?e.parseDate(S):e.latestSelectedDateObj||(e.config.minDate&&e.config.minDate>e.now?e.config.minDate:e.config.maxDate&&e.config.maxDate<e.now?e.config.maxDate:e.now),J=e.currentYear,ne=e.currentMonth;try{j!==void 0&&(e.currentYear=j.getFullYear(),e.currentMonth=j.getMonth())}catch(se){se.message="Invalid date supplied: "+j,e.config.errorHandler(se)}P&&e.currentYear!==J&&(_e("onYearChange"),F()),P&&(e.currentYear!==J||e.currentMonth!==ne)&&_e("onMonthChange"),e.redraw()}function M(S){var P=u1(S);~P.className.indexOf("arrow")&&b(S,P.classList.contains("arrowUp")?1:-1)}function b(S,P,j){var J=S&&u1(S),ne=j||J&&J.parentNode&&J.parentNode.firstChild,se=Yt("increment");se.delta=P,ne&&ne.dispatchEvent(se)}function E(){var S=window.document.createDocumentFragment();if(e.calendarContainer=Ee("div","flatpickr-calendar"),e.calendarContainer.tabIndex=-1,!e.config.noCalendar){if(S.appendChild(_()),e.innerContainer=Ee("div","flatpickr-innerContainer"),e.config.weekNumbers){var P=T(),j=P.weekWrapper,J=P.weekNumbers;e.innerContainer.appendChild(j),e.weekNumbers=J,e.weekWrapper=j}e.rContainer=Ee("div","flatpickr-rContainer"),e.rContainer.appendChild(W()),e.daysContainer||(e.daysContainer=Ee("div","flatpickr-days"),e.daysContainer.tabIndex=-1),L(),e.rContainer.appendChild(e.daysContainer),e.innerContainer.appendChild(e.rContainer),S.appendChild(e.innerContainer)}e.config.enableTime&&S.appendChild(B()),i1(e.calendarContainer,"rangeMode",e.config.mode==="range"),i1(e.calendarContainer,"animate",e.config.animate===!0),i1(e.calendarContainer,"multiMonth",e.config.showMonths>1),e.calendarContainer.appendChild(S);var ne=e.config.appendTo!==void 0&&e.config.appendTo.nodeType!==void 0;if((e.config.inline||e.config.static)&&(e.calendarContainer.classList.add(e.config.inline?"inline":"static"),e.config.inline&&(!ne&&e.element.parentNode?e.element.parentNode.insertBefore(e.calendarContainer,e._input.nextSibling):e.config.appendTo!==void 0&&e.config.appendTo.appendChild(e.calendarContainer)),e.config.static)){var se=Ee("div","flatpickr-wrapper");e.element.parentNode&&e.element.parentNode.insertBefore(se,e.element),se.appendChild(e.element),e.altInput&&se.appendChild(e.altInput),se.appendChild(e.calendarContainer)}!e.config.static&&!e.config.inline&&(e.config.appendTo!==void 0?e.config.appendTo:window.document.body).appendChild(e.calendarContainer)}function w(S,P,j,J){var ne=Z(P,!0),se=Ee("span",S,P.getDate().toString());return se.dateObj=P,se.$i=J,se.setAttribute("aria-label",e.formatDate(P,e.config.ariaDateFormat)),S.indexOf("hidden")===-1&&d1(P,e.now)===0&&(e.todayDateElem=se,se.classList.add("today"),se.setAttribute("aria-current","date")),ne?(se.tabIndex=-1,Rt(P)&&(se.classList.add("selected"),e.selectedDateElem=se,e.config.mode==="range"&&(i1(se,"startRange",e.selectedDates[0]&&d1(P,e.selectedDates[0],!0)===0),i1(se,"endRange",e.selectedDates[1]&&d1(P,e.selectedDates[1],!0)===0),S==="nextMonthDay"&&se.classList.add("inRange")))):se.classList.add("flatpickr-disabled"),e.config.mode==="range"&&i0(P)&&!Rt(P)&&se.classList.add("inRange"),e.weekNumbers&&e.config.showMonths===1&&S!=="prevMonthDay"&&J%7===6&&e.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+e.config.getWeek(P)+"</span>"),_e("onDayCreate",se),se}function z(S){S.focus(),e.config.mode==="range"&&Y(S)}function A(S){for(var P=S>0?0:e.config.showMonths-1,j=S>0?e.config.showMonths:-1,J=P;J!=j;J+=S)for(var ne=e.daysContainer.children[J],se=S>0?0:ne.children.length-1,me=S>0?ne.children.length:-1,le=se;le!=me;le+=S){var ge=ne.children[le];if(ge.className.indexOf("hidden")===-1&&Z(ge.dateObj))return ge}}function C(S,P){for(var j=S.className.indexOf("Month")===-1?S.dateObj.getMonth():e.currentMonth,J=P>0?e.config.showMonths:-1,ne=P>0?1:-1,se=j-e.currentMonth;se!=J;se+=ne)for(var me=e.daysContainer.children[se],le=j-e.currentMonth===se?S.$i+P:P<0?me.children.length-1:0,ge=me.children.length,ie=le;ie>=0&&ie<ge&&ie!=(P>0?ge:-1);ie+=ne){var ve=me.children[ie];if(ve.className.indexOf("hidden")===-1&&Z(ve.dateObj)&&Math.abs(S.$i-ie)>=Math.abs(P))return z(ve)}e.changeMonth(ne),H(A(ne),0)}function H(S,P){var j=o(),J=D(j||document.body),ne=S!==void 0?S:J?j:e.selectedDateElem!==void 0&&D(e.selectedDateElem)?e.selectedDateElem:e.todayDateElem!==void 0&&D(e.todayDateElem)?e.todayDateElem:A(P>0?1:-1);ne===void 0?e._input.focus():J?C(ne,P):z(ne)}function I(S,P){for(var j=(new Date(S,P,1).getDay()-e.l10n.firstDayOfWeek+7)%7,J=e.utils.getDaysInMonth((P-1+12)%12,S),ne=e.utils.getDaysInMonth(P,S),se=window.document.createDocumentFragment(),me=e.config.showMonths>1,le=me?"prevMonthDay hidden":"prevMonthDay",ge=me?"nextMonthDay hidden":"nextMonthDay",ie=J+1-j,ve=0;ie<=J;ie++,ve++)se.appendChild(w("flatpickr-day "+le,new Date(S,P-1,ie),ie,ve));for(ie=1;ie<=ne;ie++,ve++)se.appendChild(w("flatpickr-day",new Date(S,P,ie),ie,ve));for(var ye=ne+1;ye<=42-j&&(e.config.showMonths===1||ve%7!==0);ye++,ve++)se.appendChild(w("flatpickr-day "+ge,new Date(S,P+1,ye%ne),ye,ve));var A1=Ee("div","dayContainer");return A1.appendChild(se),A1}function L(){if(e.daysContainer!==void 0){br(e.daysContainer),e.weekNumbers&&br(e.weekNumbers);for(var S=document.createDocumentFragment(),P=0;P<e.config.showMonths;P++){var j=new Date(e.currentYear,e.currentMonth,1);j.setMonth(e.currentMonth+P),S.appendChild(I(j.getFullYear(),j.getMonth()))}e.daysContainer.appendChild(S),e.days=e.daysContainer.firstChild,e.config.mode==="range"&&e.selectedDates.length===1&&Y()}}function F(){if(!(e.config.showMonths>1||e.config.monthSelectorType!=="dropdown")){var S=function(J){return e.config.minDate!==void 0&&e.currentYear===e.config.minDate.getFullYear()&&J<e.config.minDate.getMonth()?!1:!(e.config.maxDate!==void 0&&e.currentYear===e.config.maxDate.getFullYear()&&J>e.config.maxDate.getMonth())};e.monthsDropdownContainer.tabIndex=-1,e.monthsDropdownContainer.innerHTML="";for(var P=0;P<12;P++)if(S(P)){var j=Ee("option","flatpickr-monthDropdown-month");j.value=new Date(e.currentYear,P).getMonth().toString(),j.textContent=Mr(P,e.config.shorthandCurrentMonth,e.l10n),j.tabIndex=-1,e.currentMonth===P&&(j.selected=!0),e.monthsDropdownContainer.appendChild(j)}}}function $(){var S=Ee("div","flatpickr-month"),P=window.document.createDocumentFragment(),j;e.config.showMonths>1||e.config.monthSelectorType==="static"?j=Ee("span","cur-month"):(e.monthsDropdownContainer=Ee("select","flatpickr-monthDropdown-months"),e.monthsDropdownContainer.setAttribute("aria-label",e.l10n.monthAriaLabel),v(e.monthsDropdownContainer,"change",function(me){var le=u1(me),ge=parseInt(le.value,10);e.changeMonth(ge-e.currentMonth),_e("onMonthChange")}),F(),j=e.monthsDropdownContainer);var J=xr("cur-year",{tabindex:"-1"}),ne=J.getElementsByTagName("input")[0];ne.setAttribute("aria-label",e.l10n.yearAriaLabel),e.config.minDate&&ne.setAttribute("min",e.config.minDate.getFullYear().toString()),e.config.maxDate&&(ne.setAttribute("max",e.config.maxDate.getFullYear().toString()),ne.disabled=!!e.config.minDate&&e.config.minDate.getFullYear()===e.config.maxDate.getFullYear());var se=Ee("div","flatpickr-current-month");return se.appendChild(j),se.appendChild(J),P.appendChild(se),S.appendChild(P),{container:S,yearElement:ne,monthElement:j}}function X(){br(e.monthNav),e.monthNav.appendChild(e.prevMonthNav),e.config.showMonths&&(e.yearElements=[],e.monthElements=[]);for(var S=e.config.showMonths;S--;){var P=$();e.yearElements.push(P.yearElement),e.monthElements.push(P.monthElement),e.monthNav.appendChild(P.container)}e.monthNav.appendChild(e.nextMonthNav)}function _(){return e.monthNav=Ee("div","flatpickr-months"),e.yearElements=[],e.monthElements=[],e.prevMonthNav=Ee("span","flatpickr-prev-month"),e.prevMonthNav.innerHTML=e.config.prevArrow,e.nextMonthNav=Ee("span","flatpickr-next-month"),e.nextMonthNav.innerHTML=e.config.nextArrow,X(),Object.defineProperty(e,"_hidePrevMonthArrow",{get:function(){return e.__hidePrevMonthArrow},set:function(S){e.__hidePrevMonthArrow!==S&&(i1(e.prevMonthNav,"flatpickr-disabled",S),e.__hidePrevMonthArrow=S)}}),Object.defineProperty(e,"_hideNextMonthArrow",{get:function(){return e.__hideNextMonthArrow},set:function(S){e.__hideNextMonthArrow!==S&&(i1(e.nextMonthNav,"flatpickr-disabled",S),e.__hideNextMonthArrow=S)}}),e.currentYearElement=e.yearElements[0],Gt(),e.monthNav}function B(){e.calendarContainer.classList.add("hasTime"),e.config.noCalendar&&e.calendarContainer.classList.add("noCalendar");var S=C5(e.config);e.timeContainer=Ee("div","flatpickr-time"),e.timeContainer.tabIndex=-1;var P=Ee("span","flatpickr-time-separator",":"),j=xr("flatpickr-hour",{"aria-label":e.l10n.hourAriaLabel});e.hourElement=j.getElementsByTagName("input")[0];var J=xr("flatpickr-minute",{"aria-label":e.l10n.minuteAriaLabel});if(e.minuteElement=J.getElementsByTagName("input")[0],e.hourElement.tabIndex=e.minuteElement.tabIndex=-1,e.hourElement.value=l1(e.latestSelectedDateObj?e.latestSelectedDateObj.getHours():e.config.time_24hr?S.hours:d(S.hours)),e.minuteElement.value=l1(e.latestSelectedDateObj?e.latestSelectedDateObj.getMinutes():S.minutes),e.hourElement.setAttribute("step",e.config.hourIncrement.toString()),e.minuteElement.setAttribute("step",e.config.minuteIncrement.toString()),e.hourElement.setAttribute("min",e.config.time_24hr?"0":"1"),e.hourElement.setAttribute("max",e.config.time_24hr?"23":"12"),e.hourElement.setAttribute("maxlength","2"),e.minuteElement.setAttribute("min","0"),e.minuteElement.setAttribute("max","59"),e.minuteElement.setAttribute("maxlength","2"),e.timeContainer.appendChild(j),e.timeContainer.appendChild(P),e.timeContainer.appendChild(J),e.config.time_24hr&&e.timeContainer.classList.add("time24hr"),e.config.enableSeconds){e.timeContainer.classList.add("hasSeconds");var ne=xr("flatpickr-second");e.secondElement=ne.getElementsByTagName("input")[0],e.secondElement.value=l1(e.latestSelectedDateObj?e.latestSelectedDateObj.getSeconds():S.seconds),e.secondElement.setAttribute("step",e.minuteElement.getAttribute("step")),e.secondElement.setAttribute("min","0"),e.secondElement.setAttribute("max","59"),e.secondElement.setAttribute("maxlength","2"),e.timeContainer.appendChild(Ee("span","flatpickr-time-separator",":")),e.timeContainer.appendChild(ne)}return e.config.time_24hr||(e.amPM=Ee("span","flatpickr-am-pm",e.l10n.amPM[b1((e.latestSelectedDateObj?e.hourElement.value:e.config.defaultHour)>11)]),e.amPM.title=e.l10n.toggleTitle,e.amPM.tabIndex=-1,e.timeContainer.appendChild(e.amPM)),e.timeContainer}function W(){e.weekdayContainer?br(e.weekdayContainer):e.weekdayContainer=Ee("div","flatpickr-weekdays");for(var S=e.config.showMonths;S--;){var P=Ee("div","flatpickr-weekdaycontainer");e.weekdayContainer.appendChild(P)}return N(),e.weekdayContainer}function N(){if(e.weekdayContainer){var S=e.l10n.firstDayOfWeek,P=B8(e.l10n.weekdays.shorthand);S>0&&S<P.length&&(P=B8(P.splice(S,P.length),P.splice(0,S)));for(var j=e.config.showMonths;j--;)e.weekdayContainer.children[j].innerHTML=`
|
|
97
|
+
*/var iu;function vy(){return iu||(iu=1,process.env.NODE_ENV!=="production"&&function(){function n(p,m){return p===m&&(p!==0||1/p===1/m)||p!==p&&m!==m}function t(p,m){d||i.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var v=m();if(!f){var y=m();o(v,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}y=s({inst:{value:v,getSnapshot:m}});var x=y[0].inst,g=y[1];return l(function(){x.value=v,x.getSnapshot=m,e(x)&&g({inst:x})},[p,v,m]),a(function(){return e(x)&&g({inst:x}),p(function(){e(x)&&g({inst:x})})},[p]),u(v),v}function e(p){var m=p.getSnapshot;p=p.value;try{var v=m();return!o(p,v)}catch{return!0}}function r(p,m){return m()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=c,o=typeof Object.is=="function"?Object.is:n,s=i.useState,a=i.useEffect,l=i.useLayoutEffect,u=i.useDebugValue,d=!1,f=!1,h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;G4.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:h,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),G4}var ou;function my(){return ou||(ou=1,process.env.NODE_ENV==="production"?ar.exports=hy():ar.exports=vy()),ar.exports}var gy=my();const su=c.createContext(!1),M6=c.createContext(null);function yy(n){if(c.useContext(M6))return n.content;let{collection:e,document:r}=Ey(n.createCollection);return c.createElement(c.Fragment,null,c.createElement(jg,null,c.createElement(M6.Provider,{value:r},n.content)),c.createElement(by,{render:n.children,collection:e}))}function by({collection:n,render:t}){return t(n)}function xy(n,t,e){let r=Fn(),i=c.useRef(r);i.current=r;let o=c.useCallback(()=>i.current?e():t(),[t,e]);return gy.useSyncExternalStore(n,o)}const My=typeof c.useSyncExternalStore=="function"?c.useSyncExternalStore:xy;function Ey(n){let[t]=c.useState(()=>new qg(n?.()||new O4)),e=c.useCallback(s=>t.subscribe(s),[t]),r=c.useCallback(()=>{let s=t.getCollection();return t.isSSR&&t.resetAfterSSR(),s},[t]),i=c.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]),o=My(e,r,i);return Fe(()=>(t.isMounted=!0,()=>{t.isMounted=!1}),[t]),{collection:o,document:t}}const X4=c.createContext(null);function Iy(n,t,e,r,i,o){let s=c.useCallback(l=>{l?.setProps(t,e,r,o)},[t,e,r,o]),a=c.useContext(X4);if(a){let l=a.ownerDocument.nodesByProps.get(t);return l||(l=a.ownerDocument.createElement(n),l.setProps(t,e,r,o),a.appendChild(l),a.ownerDocument.updateCollection(),a.ownerDocument.nodesByProps.set(t,l)),i?c.createElement(X4.Provider,{value:l},i):null}return c.createElement(n,{ref:s},i)}function wy(n,t){let e=({node:i})=>t(i.props,i.props.ref,i),r=c.forwardRef((i,o)=>{let s=c.useContext(U4);if(!c.useContext(su)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(i,o)}return Iy(n,i,o,"children"in i?i.children:null,null,l=>c.createElement(U4.Provider,{value:s},c.createElement(e,{node:l})))});return r.displayName=t.name,r}function Sy(n){return _c({...n,addIdAndValue:!0})}const au=c.createContext(null);function Cy(n){let t=c.useContext(au),e=(t?.dependencies||[]).concat(n.dependencies),r=n.idScope||t?.idScope,i=Sy({...n,idScope:r,dependencies:e});return c.useContext(M6)&&(i=c.createElement(Py,null,i)),t=c.useMemo(()=>({dependencies:e,idScope:r}),[r,...e]),c.createElement(au.Provider,{value:t},i)}function Py({children:n}){let t=c.useContext(M6),e=c.useMemo(()=>c.createElement(M6.Provider,{value:null},c.createElement(su.Provider,{value:!0},n)),[n]);return Fn()?c.createElement(X4.Provider,{value:t},e):x1.createPortal(e,t)}const ky=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),zy=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function $y(n){if(Intl.Locale){let e=new Intl.Locale(n).maximize(),r=typeof e.getTextInfo=="function"?e.getTextInfo():e.textInfo;if(r)return r.direction==="rtl";if(e.script)return ky.has(e.script)}let t=n.split("-")[0];return zy.has(t)}const Ty=Symbol.for("react-aria.i18n.locale");function lu(){let n=typeof window<"u"&&window[Ty]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([n])}catch{n="en-US"}return{locale:n,direction:$y(n)?"rtl":"ltr"}}let J4=lu(),E6=new Set;function cu(){J4=lu();for(let n of E6)n(J4)}function Dy(){let n=Fn(),[t,e]=c.useState(J4);return c.useEffect(()=>(E6.size===0&&window.addEventListener("languagechange",cu),E6.add(e),()=>{E6.delete(e),E6.size===0&&window.removeEventListener("languagechange",cu)}),[]),n?{locale:"en-US",direction:"ltr"}:t}const Oy=c.createContext(null);function Tt(){let n=Dy();return c.useContext(Oy)||n}const _y=Symbol.for("react-aria.i18n.locale"),Ny=Symbol.for("react-aria.i18n.strings");let Dt;class lr{getStringForLocale(t,e){let i=this.getStringsForLocale(e)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${e} locale`);return i}getStringsForLocale(t){let e=this.strings[t];return e||(e=Ay(t,this.strings,this.defaultLocale),this.strings[t]=e),e}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let e=window[_y];if(Dt===void 0){let i=window[Ny];if(!i)return null;Dt={};for(let o in i)Dt[o]=new lr({[e]:i[o]},e)}let r=Dt?.[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,e="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=e}}function Ay(n,t,e="en-US"){if(t[n])return t[n];let r=Fy(n);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[e]}function Fy(n){return Intl.Locale?new Intl.Locale(n).language:n.split("-")[0]}const uu=new Map,du=new Map;class Ly{format(t,e){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(e,this):r}plural(t,e,r="cardinal"){let i=e["="+t];if(i)return typeof i=="function"?i():i;let o=this.locale+":"+r,s=uu.get(o);s||(s=new Intl.PluralRules(this.locale,{type:r}),uu.set(o,s));let a=s.select(t);return i=e[a]||e.other,typeof i=="function"?i():i}number(t){let e=du.get(this.locale);return e||(e=new Intl.NumberFormat(this.locale),du.set(this.locale,e)),e.format(t)}select(t,e){let r=t[e]||t.other;return typeof r=="function"?r():r}constructor(t,e){this.locale=t,this.strings=e}}const fu=new WeakMap;function Ky(n){let t=fu.get(n);return t||(t=new lr(n),fu.set(n,t)),t}function By(n,t){return t&&lr.getGlobalDictionaryForPackage(t)||Ky(n)}function Hy(n,t){let{locale:e}=Tt(),r=By(n,t);return c.useMemo(()=>new Ly(e,r),[e,r])}let Z4=new Map,Q4=!1;try{Q4=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let cr=!1;try{cr=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const pu={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Vy{format(t){let e="";if(!Q4&&this.options.signDisplay!=null?e=jy(this.numberFormatter,this.options.signDisplay,t):e=this.numberFormatter.format(t),this.options.style==="unit"&&!cr){var r;let{unit:i,unitDisplay:o="short",locale:s}=this.resolvedOptions();if(!i)return e;let a=(r=pu[i])===null||r===void 0?void 0:r[o];e+=a[s]||a.default}return e}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,e){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,e);if(e<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(e)}`}formatRangeToParts(t,e){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,e);if(e<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(e);return[...r.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Q4&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!cr&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,e={}){this.numberFormatter=qy(t,e),this.options=e}}function qy(n,t={}){let{numberingSystem:e}=t;if(e&&n.includes("-nu-")&&(n.includes("-u-")||(n+="-u-"),n+=`-nu-${e}`),t.style==="unit"&&!cr){var r;let{unit:s,unitDisplay:a="short"}=t;if(!s)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=pu[s])===null||r===void 0)&&r[a]))throw new Error(`Unsupported unit ${s} with unitDisplay = ${a}`);t={...t,style:"decimal"}}let i=n+(t?Object.entries(t).sort((s,a)=>s[0]<a[0]?-1:1).join():"");if(Z4.has(i))return Z4.get(i);let o=new Intl.NumberFormat(n,t);return Z4.set(i,o),o}function jy(n,t,e){if(t==="auto")return n.format(e);if(t==="never")return n.format(Math.abs(e));{let r=!1;if(t==="always"?r=e>0||Object.is(e,0):t==="exceptZero"&&(Object.is(e,-0)||Object.is(e,0)?e=Math.abs(e):r=e>0),r){let i=n.format(-e),o=n.format(e),s=i.replace(o,"").replace(/\u200e|\u061C/,"");return[...s].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(o,"!!!").replace(s,"+").replace("!!!",o)}else return n.format(e)}}function Uy(n={}){let{locale:t}=Tt();return c.useMemo(()=>new Vy(t,n),[t,n])}let e5=new Map;function Wy(n){let{locale:t}=Tt(),e=t+(n?Object.entries(n).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(e5.has(e))return e5.get(e);let r=new Intl.Collator(t,n);return e5.set(e,r),r}function Yy(n,t){let{elementType:e="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:s,onPressUp:a,onPressChange:l,preventFocusOnPress:u,allowFocusWhenDisabled:d,onClick:f,href:h,target:p,rel:m,type:v="button"}=n,y;e==="button"?y={type:v,disabled:r,form:n.form,formAction:n.formAction,formEncType:n.formEncType,formMethod:n.formMethod,formNoValidate:n.formNoValidate,formTarget:n.formTarget,name:n.name,value:n.value}:y={role:"button",href:e==="a"&&!r?h:void 0,target:e==="a"?p:void 0,type:e==="input"?v:void 0,disabled:e==="input"?r:void 0,"aria-disabled":!r||e==="input"?void 0:r,rel:e==="a"?m:void 0};let{pressProps:x,isPressed:g}=er({onPressStart:o,onPressEnd:s,onPressChange:l,onPress:i,onPressUp:a,onClick:f,isDisabled:r,preventFocusOnPress:u,ref:t}),{focusableProps:M}=Zc(n,t);d&&(M.tabIndex=r?-1:M.tabIndex);let b=De(M,x,it(n,{labelable:!0}));return{isPressed:g,buttonProps:De(y,b,{"aria-haspopup":n["aria-haspopup"],"aria-expanded":n["aria-expanded"],"aria-controls":n["aria-controls"],"aria-pressed":n["aria-pressed"],"aria-current":n["aria-current"]})}}const hu=c.createContext(null),t5="react-aria-focus-scope-restore";let Oe=null;function Ry(n){let{children:t,contain:e,restoreFocus:r,autoFocus:i}=n,o=c.useRef(null),s=c.useRef(null),a=c.useRef([]),{parentNode:l}=c.useContext(hu)||{},u=c.useMemo(()=>new i5({scopeRef:a}),[a]);Fe(()=>{let h=l||Ke.root;if(Ke.getTreeNode(h.scopeRef)&&Oe&&!ur(Oe,h.scopeRef)){let p=Ke.getTreeNode(Oe);p&&(h=p)}h.addChild(u),Ke.addNode(u)},[u,l]),Fe(()=>{let h=Ke.getTreeNode(a);h&&(h.contain=!!e)},[e]),Fe(()=>{var h;let p=(h=o.current)===null||h===void 0?void 0:h.nextSibling,m=[],v=y=>y.stopPropagation();for(;p&&p!==s.current;)m.push(p),p.addEventListener(t5,v),p=p.nextSibling;return a.current=m,()=>{for(let y of m)y.removeEventListener(t5,v)}},[t]),Qy(a,r,e),Jy(a,e),eb(a,r,e),Zy(a,i),c.useEffect(()=>{const h=Ze(Pe(a.current?a.current[0]:void 0));let p=null;if(y1(h,a.current)){for(let m of Ke.traverse())m.scopeRef&&y1(h,m.scopeRef.current)&&(p=m);p===Ke.getTreeNode(a)&&(Oe=p.scopeRef)}},[a]),Fe(()=>()=>{var h,p,m;let v=(m=(p=Ke.getTreeNode(a))===null||p===void 0||(h=p.parent)===null||h===void 0?void 0:h.scopeRef)!==null&&m!==void 0?m:null;(a===Oe||ur(a,Oe))&&(!v||Ke.getTreeNode(v))&&(Oe=v),Ke.removeTreeNode(a)},[a]);let d=c.useMemo(()=>Gy(a),[]),f=c.useMemo(()=>({focusManager:d,parentNode:u}),[u,d]);return c.createElement(hu.Provider,{value:f},c.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),t,c.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:s}))}function Gy(n){return{focusNext(t={}){let e=n.current,{from:r,tabbable:i,wrap:o,accept:s}=t;var a;let l=r||Ze(Pe((a=e[0])!==null&&a!==void 0?a:void 0)),u=e[0].previousElementSibling,d=dt(e),f=V1(d,{tabbable:i,accept:s},e);f.currentNode=y1(l,e)?l:u;let h=f.nextNode();return!h&&o&&(f.currentNode=u,h=f.nextNode()),h&&H1(h,!0),h},focusPrevious(t={}){let e=n.current,{from:r,tabbable:i,wrap:o,accept:s}=t;var a;let l=r||Ze(Pe((a=e[0])!==null&&a!==void 0?a:void 0)),u=e[e.length-1].nextElementSibling,d=dt(e),f=V1(d,{tabbable:i,accept:s},e);f.currentNode=y1(l,e)?l:u;let h=f.previousNode();return!h&&o&&(f.currentNode=u,h=f.previousNode()),h&&H1(h,!0),h},focusFirst(t={}){let e=n.current,{tabbable:r,accept:i}=t,o=dt(e),s=V1(o,{tabbable:r,accept:i},e);s.currentNode=e[0].previousElementSibling;let a=s.nextNode();return a&&H1(a,!0),a},focusLast(t={}){let e=n.current,{tabbable:r,accept:i}=t,o=dt(e),s=V1(o,{tabbable:r,accept:i},e);s.currentNode=e[e.length-1].nextElementSibling;let a=s.previousNode();return a&&H1(a,!0),a}}}function dt(n){return n[0].parentElement}function I6(n){let t=Ke.getTreeNode(Oe);for(;t&&t.scopeRef!==n;){if(t.contain)return!1;t=t.parent}return!0}function Xy(n){if(n.checked)return!0;let t=[];if(!n.form)t=[...Pe(n).querySelectorAll(`input[type="radio"][name="${CSS.escape(n.name)}"]`)].filter(o=>!o.form);else{var e,r;let o=(r=n.form)===null||r===void 0||(e=r.elements)===null||e===void 0?void 0:e.namedItem(n.name);t=[...o??[]]}return t?!t.some(o=>o.checked):!1}function Jy(n,t){let e=c.useRef(void 0),r=c.useRef(void 0);Fe(()=>{let i=n.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const o=Pe(i?i[0]:void 0);let s=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!I6(n)||u.isComposing)return;let d=Ze(o),f=n.current;if(!f||!y1(d,f))return;let h=dt(f),p=V1(h,{tabbable:!0},f);if(!d)return;p.currentNode=d;let m=u.shiftKey?p.previousNode():p.nextNode();m||(p.currentNode=u.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,m=u.shiftKey?p.previousNode():p.nextNode()),u.preventDefault(),m&&H1(m,!0)},a=u=>{(!Oe||ur(Oe,n))&&y1(Me(u),n.current)?(Oe=n,e.current=Me(u)):I6(n)&&!ft(Me(u),n)?e.current?e.current.focus():Oe&&Oe.current&&n5(Oe.current):I6(n)&&(e.current=Me(u))},l=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let d=ir(),f=(d==="virtual"||d===null)&&E4()&&Mc(),h=Ze(o);if(!f&&h&&I6(n)&&!ft(h,n)){Oe=n;let m=Me(u);if(m&&m.isConnected){var p;e.current=m,(p=e.current)===null||p===void 0||p.focus()}else Oe.current&&n5(Oe.current)}})};return o.addEventListener("keydown",s,!1),o.addEventListener("focusin",a,!1),i?.forEach(u=>u.addEventListener("focusin",a,!1)),i?.forEach(u=>u.addEventListener("focusout",l,!1)),()=>{o.removeEventListener("keydown",s,!1),o.removeEventListener("focusin",a,!1),i?.forEach(u=>u.removeEventListener("focusin",a,!1)),i?.forEach(u=>u.removeEventListener("focusout",l,!1))}},[n,t]),Fe(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function vu(n){return ft(n)}function y1(n,t){return!n||!t?!1:t.some(e=>e.contains(n))}function ft(n,t=null){if(n instanceof Element&&n.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:e}of Ke.traverse(Ke.getTreeNode(t)))if(e&&y1(n,e.current))return!0;return!1}function ur(n,t){var e;let r=(e=Ke.getTreeNode(t))===null||e===void 0?void 0:e.parent;for(;r;){if(r.scopeRef===n)return!0;r=r.parent}return!1}function H1(n,t=!1){if(n!=null&&!t)try{x6(n)}catch{}else if(n!=null)try{n.focus()}catch{}}function mu(n,t=!0){let e=n[0].previousElementSibling,r=dt(n),i=V1(r,{tabbable:t},n);i.currentNode=e;let o=i.nextNode();return t&&!o&&(r=dt(n),i=V1(r,{tabbable:!1},n),i.currentNode=e,o=i.nextNode()),o}function n5(n,t=!0){H1(mu(n,t))}function Zy(n,t){const e=c.useRef(t);c.useEffect(()=>{if(e.current){Oe=n;const r=Pe(n.current?n.current[0]:void 0);!y1(Ze(r),Oe.current)&&n.current&&n5(n.current)}e.current=!1},[n])}function Qy(n,t,e){Fe(()=>{if(t||e)return;let r=n.current;const i=Pe(r?r[0]:void 0);let o=s=>{let a=Me(s);y1(a,n.current)?Oe=n:vu(a)||(Oe=null)};return i.addEventListener("focusin",o,!1),r?.forEach(s=>s.addEventListener("focusin",o,!1)),()=>{i.removeEventListener("focusin",o,!1),r?.forEach(s=>s.removeEventListener("focusin",o,!1))}},[n,t,e])}function gu(n){let t=Ke.getTreeNode(Oe);for(;t&&t.scopeRef!==n;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===n}function eb(n,t,e){const r=c.useRef(typeof document<"u"?Ze(Pe(n.current?n.current[0]:void 0)):null);Fe(()=>{let i=n.current;const o=Pe(i?i[0]:void 0);if(!t||e)return;let s=()=>{(!Oe||ur(Oe,n))&&y1(Ze(o),n.current)&&(Oe=n)};return o.addEventListener("focusin",s,!1),i?.forEach(a=>a.addEventListener("focusin",s,!1)),()=>{o.removeEventListener("focusin",s,!1),i?.forEach(a=>a.removeEventListener("focusin",s,!1))}},[n,e]),Fe(()=>{const i=Pe(n.current?n.current[0]:void 0);if(!t)return;let o=s=>{if(s.key!=="Tab"||s.altKey||s.ctrlKey||s.metaKey||!I6(n)||s.isComposing)return;let a=i.activeElement;if(!ft(a,n)||!gu(n))return;let l=Ke.getTreeNode(n);if(!l)return;let u=l.nodeToRestore,d=V1(i.body,{tabbable:!0});d.currentNode=a;let f=s.shiftKey?d.previousNode():d.nextNode();if((!u||!u.isConnected||u===i.body)&&(u=void 0,l.nodeToRestore=void 0),(!f||!ft(f,n))&&u){d.currentNode=u;do f=s.shiftKey?d.previousNode():d.nextNode();while(ft(f,n));s.preventDefault(),s.stopPropagation(),f?H1(f,!0):vu(u)?H1(u,!0):a.blur()}};return e||i.addEventListener("keydown",o,!0),()=>{e||i.removeEventListener("keydown",o,!0)}},[n,t,e]),Fe(()=>{const i=Pe(n.current?n.current[0]:void 0);if(!t)return;let o=Ke.getTreeNode(n);if(o){var s;return o.nodeToRestore=(s=r.current)!==null&&s!==void 0?s:void 0,()=>{let a=Ke.getTreeNode(n);if(!a)return;let l=a.nodeToRestore,u=Ze(i);if(t&&l&&(u&&ft(u,n)||u===i.body&&gu(n))){let d=Ke.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let f=d.getTreeNode(n);for(;f;){if(f.nodeToRestore&&f.nodeToRestore.isConnected){yu(f.nodeToRestore);return}f=f.parent}for(f=d.getTreeNode(n);f;){if(f.scopeRef&&f.scopeRef.current&&Ke.getTreeNode(f.scopeRef)){let h=mu(f.scopeRef.current,!0);yu(h);return}f=f.parent}}})}}}},[n,t])}function yu(n){n.dispatchEvent(new CustomEvent(t5,{bubbles:!0,cancelable:!0}))&&H1(n)}function V1(n,t,e){let r=t?.tabbable?Hg:kc,i=n?.nodeType===Node.ELEMENT_NODE?n:null,o=Pe(i),s=og(o,n||o,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var l;return!(t==null||(l=t.from)===null||l===void 0)&&l.contains(a)||t?.tabbable&&a.tagName==="INPUT"&&a.getAttribute("type")==="radio"&&(!Xy(a)||s.currentNode.tagName==="INPUT"&&s.currentNode.type==="radio"&&s.currentNode.name===a.name)?NodeFilter.FILTER_REJECT:r(a)&&(!e||y1(a,e))&&(!t?.accept||t.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(s.currentNode=t.from),s}class r5{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,e,r){let i=this.fastMap.get(e??null);if(!i)return;let o=new i5({scopeRef:t});i.addChild(o),o.parent=i,this.fastMap.set(t,o),r&&(o.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let e=this.fastMap.get(t);if(!e)return;let r=e.parent;for(let o of this.traverse())o!==e&&e.nodeToRestore&&o.nodeToRestore&&e.scopeRef&&e.scopeRef.current&&y1(o.nodeToRestore,e.scopeRef.current)&&(o.nodeToRestore=e.nodeToRestore);let i=e.children;r&&(r.removeChild(e),i.size>0&&i.forEach(o=>r&&r.addChild(o))),this.fastMap.delete(e.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let e of t.children)yield*this.traverse(e)}clone(){var t;let e=new r5;var r;for(let i of this.traverse())e.addTreeNode(i.scopeRef,(r=(t=i.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return e}constructor(){this.fastMap=new Map,this.root=new i5({scopeRef:null}),this.fastMap.set(null,this.root)}}class i5{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let Ke=new r5;function bu(n={}){let{autoFocus:t=!1,isTextInput:e,within:r}=n,i=c.useRef({isFocused:!1,isFocusVisible:t||rr()}),[o,s]=c.useState(!1),[a,l]=c.useState(()=>i.current.isFocused&&i.current.isFocusVisible),u=c.useCallback(()=>l(i.current.isFocused&&i.current.isFocusVisible),[]),d=c.useCallback(p=>{i.current.isFocused=p,s(p),u()},[u]);cy(p=>{i.current.isFocusVisible=p,u()},[],{isTextInput:e});let{focusProps:f}=q4({isDisabled:r,onFocusChange:d}),{focusWithinProps:h}=Qc({isDisabled:!r,onFocusWithinChange:d});return{isFocused:o,isFocusVisible:a,focusProps:r?h:f}}function xu(n){let t=nb(Pe(n));t!==n&&(t&&tb(t,n),n&&Mu(n,t))}function tb(n,t){n.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function Mu(n,t){n.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),n.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function nb(n){let t=Ze(n),e=t?.getAttribute("aria-activedescendant");return e&&n.getElementById(e)||t}const Eu=7e3;let _1=null;function Iu(n,t="assertive",e=Eu){_1?_1.announce(n,t,e):(_1=new rb,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?_1.announce(n,t,e):setTimeout(()=>{_1?.isAttached()&&_1?.announce(n,t,e)},100))}class rb{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let e=document.createElement("div");return e.setAttribute("role","log"),e.setAttribute("aria-live",t),e.setAttribute("aria-relevant","additions"),e}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,e="assertive",r=Eu){var i,o;if(!this.node)return;let s=document.createElement("div");typeof t=="object"?(s.setAttribute("role","img"),s.setAttribute("aria-labelledby",t["aria-labelledby"])):s.textContent=t,e==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(s):(o=this.politeLog)===null||o===void 0||o.appendChild(s),t!==""&&setTimeout(()=>{s.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}function wu(n){let{id:t,label:e,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=n;t=C1(t);let s=C1(),a={};e?(r=r?`${s} ${r}`:s,a={id:s,htmlFor:o==="label"?t:void 0}):!r&&!i&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=Cg({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:a,fieldProps:l}}const ib=0,ob=100,sb=1;function ab(n){const{isDisabled:t=!1,minValue:e=ib,maxValue:r=ob,numberFormatter:i,step:o=sb,orientation:s="horizontal"}=n;let a=c.useMemo(()=>{let k=(r-e)/10;return k=y6(k,0,k+o,o),Math.max(k,o)},[o,r,e]),l=c.useCallback(k=>k?.map((V,U)=>{let G=U===0?e:k[U-1],R=U===k.length-1?r:k[U+1];return y6(V,G,R,o)}),[e,r,o]),u=c.useMemo(()=>l(Cu(n.value)),[n.value,l]),d=c.useMemo(()=>{var k;return l((k=Cu(n.defaultValue))!==null&&k!==void 0?k:[e])},[n.defaultValue,e,l]),f=Pu(n.value,n.defaultValue,n.onChange),h=Pu(n.value,n.defaultValue,n.onChangeEnd);const[p,m]=jn(u,d,f);let[v]=c.useState(p);const[y,x]=c.useState(new Array(p.length).fill(!1)),g=c.useRef(new Array(p.length).fill(!0)),[M,b]=c.useState(void 0),E=c.useRef(p),w=c.useRef(y);let z=k=>{E.current=k,m(k)},A=k=>{w.current=k,x(k)};function C(k){return(k-e)/(r-e)}function H(k){return k===0?e:p[k-1]}function I(k){return k===p.length-1?r:p[k+1]}function L(k){return g.current[k]}function F(k,V){g.current[k]=V}function $(k,V){if(t||!L(k))return;const U=H(k),G=I(k);V=y6(V,U,G,o);let R=Su(E.current,k,V);z(R)}function X(k,V){if(t||!L(k))return;V&&(E.current=p);const U=w.current[k];w.current=Su(w.current,k,V),A(w.current),h&&U&&!w.current.some(Boolean)&&h(E.current)}function _(k){return i.format(k)}function B(k,V){$(k,N(V))}function W(k){return Math.round((k-e)/o)*o+e}function N(k){const V=k*(r-e)+e;return $4(W(V),e,r)}function T(k,V=1){let U=Math.max(V,o);$(k,y6(p[k]+U,e,r,o))}function O(k,V=1){let U=Math.max(V,o);$(k,y6(p[k]-U,e,r,o))}return{values:p,defaultValues:n.defaultValue!==void 0?d:v,getThumbValue:k=>p[k],setThumbValue:$,setThumbPercent:B,isThumbDragging:k=>y[k],setThumbDragging:X,focusedThumb:M,setFocusedThumb:b,getThumbPercent:k=>C(p[k]),getValuePercent:C,getThumbValueLabel:k=>_(p[k]),getFormattedValue:_,getThumbMinValue:H,getThumbMaxValue:I,getPercentValue:N,isThumbEditable:L,setThumbEditable:F,incrementThumb:T,decrementThumb:O,step:o,pageSize:a,orientation:s,isDisabled:t}}function Su(n,t,e){return n[t]===e?n:[...n.slice(0,t),e,...n.slice(t+1)]}function Cu(n){if(n!=null)return Array.isArray(n)?n:[n]}function Pu(n,t,e){return r=>{e?.(typeof n=="number"||typeof t=="number"?r[0]:r)}}const ku={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 lb(n={}){let{style:t,isFocusable:e}=n,[r,i]=c.useState(!1),{focusWithinProps:o}=Qc({isDisabled:!e,onFocusWithinChange:a=>i(a)}),s=c.useMemo(()=>r?t:t?{...ku,...t}:ku,[r]);return{visuallyHiddenProps:{...o,style:s}}}function zu(n){let{children:t,elementType:e="div",isFocusable:r,style:i,...o}=n,{visuallyHiddenProps:s}=lb(n);return c.createElement(e,De(o,s),t)}const o5=new WeakMap;function s5(n,t){let e=o5.get(n);if(!e)throw new Error("Unknown slider state");return`${e.id}-${t}`}function cb(n,t,e){let{labelProps:r,fieldProps:i}=wu(n),o=n.orientation==="vertical";var s;o5.set(t,{id:(s=r.id)!==null&&s!==void 0?s:i.id,"aria-describedby":n["aria-describedby"],"aria-details":n["aria-details"]});let{direction:a}=Tt(),{addGlobalListener:l,removeGlobalListener:u}=at();const d=c.useRef(null),f=a==="rtl",h=c.useRef(null),{moveProps:p}=tu({onMoveStart(){h.current=null},onMove({deltaX:x,deltaY:g}){if(!e.current)return;let{height:M,width:b}=e.current.getBoundingClientRect(),E=o?M:b;h.current==null&&d.current!=null&&(h.current=t.getThumbPercent(d.current)*E);let w=o?g:x;if((o||f)&&(w=-w),h.current+=w,d.current!=null&&e.current){const z=$4(h.current/E,0,1);t.setThumbPercent(d.current,z)}},onMoveEnd(){d.current!=null&&(t.setThumbDragging(d.current,!1),d.current=null)}});let m=c.useRef(void 0),v=(x,g,M,b)=>{if(e.current&&!n.isDisabled&&t.values.every((E,w)=>!t.isThumbDragging(w))){let{height:E,width:w,top:z,left:A}=e.current.getBoundingClientRect(),C=o?E:w,F=((o?b:M)-(o?z:A))/C;(a==="rtl"||o)&&(F=1-F);let $=t.getPercentValue(F),X,_=t.values.findIndex(B=>$-B<0);if(_===0)X=_;else if(_===-1)X=t.values.length-1;else{let B=t.values[_-1],W=t.values[_];Math.abs(B-$)<Math.abs(W-$)?X=_-1:X=_}X>=0&&t.isThumbEditable(X)?(x.preventDefault(),d.current=X,t.setFocusedThumb(X),m.current=g,t.setThumbDragging(d.current,!0),t.setThumbValue(X,$),l(window,"mouseup",y,!1),l(window,"touchend",y,!1),l(window,"pointerup",y,!1)):d.current=null}},y=x=>{var g,M;((M=x.pointerId)!==null&&M!==void 0?M:(g=x.changedTouches)===null||g===void 0?void 0:g[0].identifier)===m.current&&(d.current!=null&&(t.setThumbDragging(d.current,!1),d.current=null),u(window,"mouseup",y,!1),u(window,"touchend",y,!1),u(window,"pointerup",y,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var x;(x=document.getElementById(s5(t,0)))===null||x===void 0||x.focus(),sy("keyboard")}),{labelProps:r,groupProps:{role:"group",...i},trackProps:De({onMouseDown(x){x.button!==0||x.altKey||x.ctrlKey||x.metaKey||v(x,void 0,x.clientX,x.clientY)},onPointerDown(x){x.pointerType==="mouse"&&(x.button!==0||x.altKey||x.ctrlKey||x.metaKey)||v(x,x.pointerId,x.clientX,x.clientY)},onTouchStart(x){v(x,x.changedTouches[0].identifier,x.changedTouches[0].clientX,x.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},p),outputProps:{htmlFor:t.values.map((x,g)=>s5(t,g)).join(" "),"aria-live":"off"}}}function ub(n,t){let{index:e=0,isRequired:r,validationState:i,isInvalid:o,trackRef:s,inputRef:a,orientation:l=t.orientation,name:u,form:d}=n,f=n.isDisabled||t.isDisabled,h=l==="vertical",{direction:p}=Tt(),{addGlobalListener:m,removeGlobalListener:v}=at(),y=o5.get(t);var x;const{labelProps:g,fieldProps:M}=wu({...n,id:s5(t,e),"aria-labelledby":`${y.id} ${(x=n["aria-labelledby"])!==null&&x!==void 0?x:""}`.trim()}),b=t.values[e],E=c.useCallback(()=>{a.current&&m1(a.current)},[a]),w=t.focusedThumb===e;c.useEffect(()=>{w&&E()},[w,E]);let z=p==="rtl",A=c.useRef(null),{keyboardProps:C}=j4({onKeyDown(B){let{getThumbMaxValue:W,getThumbMinValue:N,decrementThumb:T,incrementThumb:O,setThumbValue:k,setThumbDragging:V,pageSize:U}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(B.key)){B.continuePropagation();return}switch(B.preventDefault(),V(e,!0),B.key){case"PageUp":O(e,U);break;case"PageDown":T(e,U);break;case"Home":k(e,N(e));break;case"End":k(e,W(e));break}V(e,!1)}}),{moveProps:H}=tu({onMoveStart(){A.current=null,t.setThumbDragging(e,!0)},onMove({deltaX:B,deltaY:W,pointerType:N,shiftKey:T}){const{getThumbPercent:O,setThumbPercent:k,decrementThumb:V,incrementThumb:U,step:G,pageSize:R}=t;if(!s.current)return;let{width:ee,height:Z}=s.current.getBoundingClientRect(),D=h?Z:ee;if(A.current==null&&(A.current=O(e)*D),N==="keyboard")B>0&&z||B<0&&!z||W>0?V(e,T?R:G):U(e,T?R:G);else{let oe=h?W:B;(h||z)&&(oe=-oe),A.current+=oe,k(e,$4(A.current/D,0,1))}},onMoveEnd(){t.setThumbDragging(e,!1)}});t.setThumbEditable(e,!f);const{focusableProps:I}=Zc(De(n,{onFocus:()=>t.setFocusedThumb(e),onBlur:()=>t.setFocusedThumb(void 0)}),a);let L=c.useRef(void 0),F=B=>{E(),L.current=B,t.setThumbDragging(e,!0),m(window,"mouseup",$,!1),m(window,"touchend",$,!1),m(window,"pointerup",$,!1)},$=B=>{var W,N;((N=B.pointerId)!==null&&N!==void 0?N:(W=B.changedTouches)===null||W===void 0?void 0:W[0].identifier)===L.current&&(E(),t.setThumbDragging(e,!1),v(window,"mouseup",$,!1),v(window,"touchend",$,!1),v(window,"pointerup",$,!1))},X=t.getThumbPercent(e);(h||p==="rtl")&&(X=1-X);let _=f?{}:De(C,H,{onMouseDown:B=>{B.button!==0||B.altKey||B.ctrlKey||B.metaKey||F()},onPointerDown:B=>{B.button!==0||B.altKey||B.ctrlKey||B.metaKey||F(B.pointerId)},onTouchStart:B=>{F(B.changedTouches[0].identifier)}});return Og(a,t.defaultValues[e],B=>{t.setThumbValue(e,B)}),{inputProps:De(I,M,{type:"range",tabIndex:f?void 0:0,min:t.getThumbMinValue(e),max:t.getThumbMaxValue(e),step:t.step,value:b,name:u,form:d,disabled:f,"aria-orientation":l,"aria-valuetext":t.getThumbValueLabel(e),"aria-required":r||void 0,"aria-invalid":o||i==="invalid"||void 0,"aria-errormessage":n["aria-errormessage"],"aria-describedby":[y["aria-describedby"],n["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[y["aria-details"],n["aria-details"]].filter(Boolean).join(" "),onChange:B=>{t.setThumbValue(e,parseFloat(B.target.value))}}),thumbProps:{..._,style:{position:"absolute",[h?"top":"left"]:`${X*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:g,isDragging:t.isThumbDragging(e),isDisabled:f,isFocused:w}}const db=new WeakMap;function fb(n,t,e){let{type:r}=n,{isOpen:i}=t;c.useEffect(()=>{e&&e.current&&db.set(e.current,t.close)});let o;r==="menu"?o=!0:r==="listbox"&&(o="listbox");let s=C1();return{triggerProps:{"aria-haspopup":o,"aria-expanded":i,"aria-controls":i?s:void 0,onPress:t.toggle},overlayProps:{id:s}}}function a5(n){return mg()?n.altKey:n.ctrlKey}function dr(n,t){var e,r;let i=`[data-key="${CSS.escape(String(t))}"]`,o=(e=n.current)===null||e===void 0?void 0:e.dataset.collection;return o&&(i=`[data-collection="${CSS.escape(o)}"]${i}`),(r=n.current)===null||r===void 0?void 0:r.querySelector(i)}const $u=new WeakMap;function pb(n){let t=C1();return $u.set(n,t),t}function hb(n){return $u.get(n)}const vb=1e3;function mb(n){let{keyboardDelegate:t,selectionManager:e,onTypeSelect:r}=n,i=c.useRef({search:"",timeout:void 0}).current,o=s=>{let a=gb(s.key);if(!(!a||s.ctrlKey||s.metaKey||!s.currentTarget.contains(s.target)||i.search.length===0&&a===" ")){if(a===" "&&i.search.trim().length>0&&(s.preventDefault(),"continuePropagation"in s||s.stopPropagation()),i.search+=a,t.getKeyForSearch!=null){let l=t.getKeyForSearch(i.search,e.focusedKey);l==null&&(l=t.getKeyForSearch(i.search)),l!=null&&(e.setFocusedKey(l),r&&r(l))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},vb)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?o:void 0}}}function gb(n){return n.length===1||!/^[A-Z]/i.test(n)?n:""}function yb(n){let{selectionManager:t,keyboardDelegate:e,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:s=!1,disallowSelectAll:a=!1,escapeKeyBehavior:l="clearSelection",selectOnFocus:u=t.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:f,allowsTabNavigation:h=!1,isVirtualized:p,scrollRef:m=r,linkBehavior:v="action"}=n,{direction:y}=Tt(),x=Hn(),g=B=>{var W;if(B.altKey&&B.key==="Tab"&&B.preventDefault(),!(!((W=r.current)===null||W===void 0)&&W.contains(B.target)))return;const N=(Y,fe)=>{if(Y!=null){if(t.isLink(Y)&&v==="selection"&&u&&!a5(B)){x1.flushSync(()=>{t.setFocusedKey(Y,fe)});let re=dr(r,Y),K=t.getItemProps(Y);re&&x.open(re,B,K.href,K.routerOptions);return}if(t.setFocusedKey(Y,fe),t.isLink(Y)&&v==="override")return;B.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Y):u&&!a5(B)&&t.replaceSelection(Y)}};switch(B.key){case"ArrowDown":if(e.getKeyBelow){var T,O,k;let Y=t.focusedKey!=null?(T=e.getKeyBelow)===null||T===void 0?void 0:T.call(e,t.focusedKey):(O=e.getFirstKey)===null||O===void 0?void 0:O.call(e);Y==null&&o&&(Y=(k=e.getFirstKey)===null||k===void 0?void 0:k.call(e,t.focusedKey)),Y!=null&&(B.preventDefault(),N(Y))}break;case"ArrowUp":if(e.getKeyAbove){var V,U,G;let Y=t.focusedKey!=null?(V=e.getKeyAbove)===null||V===void 0?void 0:V.call(e,t.focusedKey):(U=e.getLastKey)===null||U===void 0?void 0:U.call(e);Y==null&&o&&(Y=(G=e.getLastKey)===null||G===void 0?void 0:G.call(e,t.focusedKey)),Y!=null&&(B.preventDefault(),N(Y))}break;case"ArrowLeft":if(e.getKeyLeftOf){var R,ee,Z;let Y=t.focusedKey!=null?(R=e.getKeyLeftOf)===null||R===void 0?void 0:R.call(e,t.focusedKey):null;Y==null&&o&&(Y=y==="rtl"?(ee=e.getFirstKey)===null||ee===void 0?void 0:ee.call(e,t.focusedKey):(Z=e.getLastKey)===null||Z===void 0?void 0:Z.call(e,t.focusedKey)),Y!=null&&(B.preventDefault(),N(Y,y==="rtl"?"first":"last"))}break;case"ArrowRight":if(e.getKeyRightOf){var D,oe,te;let Y=t.focusedKey!=null?(D=e.getKeyRightOf)===null||D===void 0?void 0:D.call(e,t.focusedKey):null;Y==null&&o&&(Y=y==="rtl"?(oe=e.getLastKey)===null||oe===void 0?void 0:oe.call(e,t.focusedKey):(te=e.getFirstKey)===null||te===void 0?void 0:te.call(e,t.focusedKey)),Y!=null&&(B.preventDefault(),N(Y,y==="rtl"?"last":"first"))}break;case"Home":if(e.getFirstKey){if(t.focusedKey===null&&B.shiftKey)return;B.preventDefault();let Y=e.getFirstKey(t.focusedKey,kt(B));t.setFocusedKey(Y),Y!=null&&(kt(B)&&B.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Y):u&&t.replaceSelection(Y))}break;case"End":if(e.getLastKey){if(t.focusedKey===null&&B.shiftKey)return;B.preventDefault();let Y=e.getLastKey(t.focusedKey,kt(B));t.setFocusedKey(Y),Y!=null&&(kt(B)&&B.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Y):u&&t.replaceSelection(Y))}break;case"PageDown":if(e.getKeyPageBelow&&t.focusedKey!=null){let Y=e.getKeyPageBelow(t.focusedKey);Y!=null&&(B.preventDefault(),N(Y))}break;case"PageUp":if(e.getKeyPageAbove&&t.focusedKey!=null){let Y=e.getKeyPageAbove(t.focusedKey);Y!=null&&(B.preventDefault(),N(Y))}break;case"a":kt(B)&&t.selectionMode==="multiple"&&a!==!0&&(B.preventDefault(),t.selectAll());break;case"Escape":l==="clearSelection"&&!s&&t.selectedKeys.size!==0&&(B.stopPropagation(),B.preventDefault(),t.clearSelection());break;case"Tab":if(!h){if(B.shiftKey)r.current.focus();else{let Y=V1(r.current,{tabbable:!0}),fe,re;do re=Y.lastChild(),re&&(fe=re);while(re);fe&&!fe.contains(document.activeElement)&&m1(fe)}break}}},M=c.useRef({top:0,left:0});qn(m,"scroll",p?void 0:()=>{var B,W,N,T;M.current={top:(N=(B=m.current)===null||B===void 0?void 0:B.scrollTop)!==null&&N!==void 0?N:0,left:(T=(W=m.current)===null||W===void 0?void 0:W.scrollLeft)!==null&&T!==void 0?T:0}});let b=B=>{if(t.isFocused){B.currentTarget.contains(B.target)||t.setFocused(!1);return}if(B.currentTarget.contains(B.target)){if(t.setFocused(!0),t.focusedKey==null){var W,N;let k=U=>{U!=null&&(t.setFocusedKey(U),u&&!t.isSelected(U)&&t.replaceSelection(U))},V=B.relatedTarget;var T,O;V&&B.currentTarget.compareDocumentPosition(V)&Node.DOCUMENT_POSITION_FOLLOWING?k((T=t.lastSelectedKey)!==null&&T!==void 0?T:(W=e.getLastKey)===null||W===void 0?void 0:W.call(e)):k((O=t.firstSelectedKey)!==null&&O!==void 0?O:(N=e.getFirstKey)===null||N===void 0?void 0:N.call(e))}else!p&&m.current&&(m.current.scrollTop=M.current.top,m.current.scrollLeft=M.current.left);if(t.focusedKey!=null&&m.current){let k=dr(r,t.focusedKey);k instanceof HTMLElement&&(!k.contains(document.activeElement)&&!f&&m1(k),ir()==="keyboard"&&Pc(k,{containingElement:r.current}))}}},E=B=>{B.currentTarget.contains(B.relatedTarget)||t.setFocused(!1)},w=c.useRef(!1);qn(r,Ng,f?B=>{let{detail:W}=B;B.stopPropagation(),t.setFocused(!0),W?.focusStrategy==="first"&&(w.current=!0)}:void 0);let z=Je(()=>{var B,W;let N=(W=(B=e.getFirstKey)===null||B===void 0?void 0:B.call(e))!==null&&W!==void 0?W:null;if(N==null){let T=Ze();xu(r.current),Mu(T,null),t.collection.size>0&&(w.current=!1)}else t.setFocusedKey(N),w.current=!1});wc(()=>{w.current&&z()},[t.collection,z]);let A=Je(()=>{t.collection.size>0&&(w.current=!1)});wc(()=>{A()},[t.focusedKey,A]),qn(r,_g,f?B=>{var W;B.stopPropagation(),t.setFocused(!1),!((W=B.detail)===null||W===void 0)&&W.clearFocusKey&&t.setFocusedKey(null)}:void 0);const C=c.useRef(i),H=c.useRef(!1);c.useEffect(()=>{if(C.current){var B,W;let O=null;var N;i==="first"&&(O=(N=(B=e.getFirstKey)===null||B===void 0?void 0:B.call(e))!==null&&N!==void 0?N:null);var T;i==="last"&&(O=(T=(W=e.getLastKey)===null||W===void 0?void 0:W.call(e))!==null&&T!==void 0?T:null);let k=t.selectedKeys;if(k.size){for(let V of k)if(t.canSelectItem(V)){O=V;break}}t.setFocused(!0),t.setFocusedKey(O),O==null&&!f&&r.current&&x6(r.current),t.collection.size>0&&(C.current=!1,H.current=!0)}});let I=c.useRef(t.focusedKey),L=c.useRef(null);c.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==I.current||H.current)&&m.current&&r.current){let B=ir(),W=dr(r,t.focusedKey);if(!(W instanceof HTMLElement))return;(B==="keyboard"||H.current)&&(L.current&&cancelAnimationFrame(L.current),L.current=requestAnimationFrame(()=>{m.current&&(Sc(m.current,W),B!=="virtual"&&Pc(W,{containingElement:r.current}))}))}!f&&t.isFocused&&t.focusedKey==null&&I.current!=null&&r.current&&x6(r.current),I.current=t.focusedKey,H.current=!1}),c.useEffect(()=>()=>{L.current&&cancelAnimationFrame(L.current)},[]),qn(r,"react-aria-focus-scope-restore",B=>{B.preventDefault(),t.setFocused(!0)});let F={onKeyDown:g,onFocus:b,onBlur:E,onMouseDown(B){m.current===B.target&&B.preventDefault()}},{typeSelectProps:$}=mb({keyboardDelegate:e,selectionManager:t});d||(F=De($,F));let X;f||(X=t.focusedKey==null?0:-1);let _=pb(t.collection);return{collectionProps:De(F,{tabIndex:X,"data-collection":_})}}function bb(n){let{id:t,selectionManager:e,key:r,ref:i,shouldSelectOnPressUp:o,shouldUseVirtualFocus:s,focus:a,isDisabled:l,onAction:u,allowsDifferentPressOrigin:d,linkBehavior:f="action"}=n,h=Hn();t=C1(t);let p=N=>{if(N.pointerType==="keyboard"&&a5(N))e.toggleSelection(r);else{if(e.selectionMode==="none")return;if(e.isLink(r)){if(f==="selection"&&i.current){let T=e.getItemProps(r);h.open(i.current,N,T.href,T.routerOptions),e.setSelectedKeys(e.selectedKeys);return}else if(f==="override"||f==="none")return}e.selectionMode==="single"?e.isSelected(r)&&!e.disallowEmptySelection?e.toggleSelection(r):e.replaceSelection(r):N&&N.shiftKey?e.extendSelection(r):e.selectionBehavior==="toggle"||N&&(kt(N)||N.pointerType==="touch"||N.pointerType==="virtual")?e.toggleSelection(r):e.replaceSelection(r)}};c.useEffect(()=>{r===e.focusedKey&&e.isFocused&&(s?xu(i.current):a?a():document.activeElement!==i.current&&i.current&&x6(i.current))},[i,r,e.focusedKey,e.childFocusStrategy,e.isFocused,s]),l=l||e.isDisabled(r);let m={};!s&&!l?m={tabIndex:r===e.focusedKey?0:-1,onFocus(N){N.target===i.current&&e.setFocusedKey(r)}}:l&&(m.onMouseDown=N=>{N.preventDefault()});let v=e.isLink(r)&&f==="override",y=e.isLink(r)&&f!=="selection"&&f!=="none",x=!l&&e.canSelectItem(r)&&!v,g=(u||y)&&!l,M=g&&(e.selectionBehavior==="replace"?!x:!x||e.isEmpty),b=g&&x&&e.selectionBehavior==="replace",E=M||b,w=c.useRef(null),z=E&&x,A=c.useRef(!1),C=c.useRef(!1),H=e.getItemProps(r),I=N=>{u&&u(),y&&i.current&&h.open(i.current,N,H.href,H.routerOptions)},L={ref:i};if(o?(L.onPressStart=N=>{w.current=N.pointerType,A.current=z,N.pointerType==="keyboard"&&(!E||Du())&&p(N)},d?(L.onPressUp=M?void 0:N=>{N.pointerType==="mouse"&&x&&p(N)},L.onPress=M?I:N=>{N.pointerType!=="keyboard"&&N.pointerType!=="mouse"&&x&&p(N)}):L.onPress=N=>{if(M||b&&N.pointerType!=="mouse"){if(N.pointerType==="keyboard"&&!Tu())return;I(N)}else N.pointerType!=="keyboard"&&x&&p(N)}):(L.onPressStart=N=>{w.current=N.pointerType,A.current=z,C.current=M,x&&(N.pointerType==="mouse"&&!M||N.pointerType==="keyboard"&&(!g||Du()))&&p(N)},L.onPress=N=>{(N.pointerType==="touch"||N.pointerType==="pen"||N.pointerType==="virtual"||N.pointerType==="keyboard"&&E&&Tu()||N.pointerType==="mouse"&&C.current)&&(E?I(N):x&&p(N))}),m["data-collection"]=hb(e.collection),m["data-key"]=r,L.preventFocusOnPress=s,s&&(L=De(L,{onPressStart(N){N.pointerType!=="touch"&&(e.setFocused(!0),e.setFocusedKey(r))},onPress(N){N.pointerType==="touch"&&(e.setFocused(!0),e.setFocusedKey(r))}})),H)for(let N of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])H[N]&&(L[N]=b4(L[N],H[N]));let{pressProps:F,isPressed:$}=er(L),X=b?N=>{w.current==="mouse"&&(N.stopPropagation(),N.preventDefault(),I(N))}:void 0,{longPressProps:_}=nu({isDisabled:!z,onLongPress(N){N.pointerType==="touch"&&(p(N),e.setSelectionBehavior("toggle"))}}),B=N=>{w.current==="touch"&&A.current&&N.preventDefault()},W=f!=="none"&&e.isLink(r)?N=>{st.isOpening||N.preventDefault()}:void 0;return{itemProps:De(m,x||M||s&&!l?F:{},z?_:{},{onDoubleClick:X,onDragStartCapture:B,onClick:W,id:t},s?{onMouseDown:N=>N.preventDefault()}:void 0),isPressed:$,isSelected:e.isSelected(r),isFocused:e.isFocused&&e.focusedKey===r,isDisabled:l,allowsSelection:x,hasAction:E}}function Tu(){let n=window.event;return n?.key==="Enter"}function Du(){let n=window.event;return n?.key===" "||n?.code==="Space"}class Ou{getItemRect(t){let e=this.ref.current;if(!e)return null;let r=t!=null?dr(this.ref,t):null;if(!r)return null;let i=e.getBoundingClientRect(),o=r.getBoundingClientRect();return{x:o.left-i.left+e.scrollLeft,y:o.top-i.top+e.scrollTop,width:o.width,height:o.height}}getContentSize(){let t=this.ref.current;var e,r;return{width:(e=t?.scrollWidth)!==null&&e!==void 0?e:0,height:(r=t?.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let t=this.ref.current;var e,r,i,o;return{x:(e=t?.scrollLeft)!==null&&e!==void 0?e:0,y:(r=t?.scrollTop)!==null&&r!==void 0?r:0,width:(i=t?.offsetWidth)!==null&&i!==void 0?i:0,height:(o=t?.offsetHeight)!==null&&o!==void 0?o:0}}constructor(t){this.ref=t}}class xb{isDisabled(t){var e;return this.disabledBehavior==="all"&&(((e=t.props)===null||e===void 0?void 0:e.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,e){let r=t;for(;r!=null;){let i=this.collection.getItem(r);if(i?.type==="item"&&!this.isDisabled(i))return r;r=e(r)}return null}getNextKey(t){let e=t;return e=this.collection.getKeyAfter(e),this.findNextNonDisabled(e,r=>this.collection.getKeyAfter(r))}getPreviousKey(t){let e=t;return e=this.collection.getKeyBefore(e),this.findNextNonDisabled(e,r=>this.collection.getKeyBefore(r))}findKey(t,e,r){let i=t,o=this.layoutDelegate.getItemRect(i);if(!o||i==null)return null;let s=o;do{if(i=e(i),i==null)break;o=this.layoutDelegate.getItemRect(i)}while(o&&r(s,o)&&i!=null);return i}isSameRow(t,e){return t.y===e.y||t.x!==e.x}isSameColumn(t,e){return t.x===e.x||t.y!==e.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,e=>this.getNextKey(e),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,e=>this.getPreviousKey(e),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,e){return e?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let e=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[e]?(t=this.layoutDelegate[e](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[e](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let e=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[e]?(t=this.layoutDelegate[e](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[e](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,e=>this.collection.getKeyAfter(e))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,e=>this.collection.getKeyBefore(e))}getKeyPageAbove(t){let e=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(e&&!S4(e))return this.getFirstKey();let i=t;if(this.orientation==="horizontal"){let o=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getFirstKey()}getKeyPageBelow(t){let e=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(e&&!S4(e))return this.getLastKey();let i=t;if(this.orientation==="horizontal"){let o=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getLastKey()}getKeyForSearch(t,e){if(!this.collator)return null;let r=this.collection,i=e||this.getFirstKey();for(;i!=null;){let o=r.getItem(i);if(!o)return null;let s=o.textValue.slice(0,t.length);if(o.textValue&&this.collator.compare(s,t)===0)return i;i=this.getNextKey(i)}return null}constructor(...t){if(t.length===1){let e=t[0];this.collection=e.collection,this.ref=e.ref,this.collator=e.collator,this.disabledKeys=e.disabledKeys||new Set,this.disabledBehavior=e.disabledBehavior||"all",this.orientation=e.orientation||"vertical",this.direction=e.direction,this.layout=e.layout||"stack",this.layoutDelegate=e.layoutDelegate||new Ou(e.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new Ou(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function Mb(n){let{selectionManager:t,collection:e,disabledKeys:r,ref:i,keyboardDelegate:o,layoutDelegate:s}=n,a=Wy({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,u=c.useMemo(()=>o||new xb({collection:e,disabledKeys:r,disabledBehavior:l,ref:i,collator:a,layoutDelegate:s}),[o,s,e,r,i,a,l]),{collectionProps:d}=yb({...n,ref:i,selectionManager:t,keyboardDelegate:u});return{listProps:d}}class Eb{build(t,e){return this.context=e,_u(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:e,items:r}=t;if(c.isValidElement(e)&&e.type===c.Fragment)yield*this.iterateCollection({children:e.props.children,items:r});else if(typeof e=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let o of r)yield*this.getFullNode({value:o,index:i},{renderer:e}),i++}else{let i=[];c.Children.forEach(e,s=>{s&&i.push(s)});let o=0;for(let s of i){let a=this.getFullNode({element:s,index:o},{});for(let l of a)o++,yield l}}}getKey(t,e,r,i){if(t.key!=null)return t.key;if(e.type==="cell"&&e.key!=null)return`${i}${e.key}`;let o=e.value;if(o!=null){var s;let a=(s=o.key)!==null&&s!==void 0?s:o.id;if(a==null)throw new Error("No key found for item");return a}return i?`${i}.${e.index}`:`$.${e.index}`}getChildState(t,e){return{renderer:e.renderer||t.renderer}}*getFullNode(t,e,r,i){if(c.isValidElement(t.element)&&t.element.type===c.Fragment){let y=[];c.Children.forEach(t.element.props.children,g=>{y.push(g)});var o;let x=(o=t.index)!==null&&o!==void 0?o:0;for(const g of y)yield*this.getFullNode({element:g,index:x++},e,r,i);return}let s=t.element;if(!s&&t.value&&e&&e.renderer){let y=this.cache.get(t.value);if(y&&(!y.shouldInvalidate||!y.shouldInvalidate(this.context))){y.index=t.index,y.parentKey=i?i.key:null,yield y;return}s=e.renderer(t.value)}if(c.isValidElement(s)){let y=s.type;if(typeof y!="function"&&typeof y.getCollectionNode!="function"){let b=s.type;throw new Error(`Unknown element <${b}> in collection.`)}let x=y.getCollectionNode(s.props,this.context);var a;let g=(a=t.index)!==null&&a!==void 0?a:0,M=x.next();for(;!M.done&&M.value;){let b=M.value;t.index=g;var l;let E=(l=b.key)!==null&&l!==void 0?l:null;E==null&&(E=b.element?null:this.getKey(s,t,e,r));let z=[...this.getFullNode({...b,key:E,index:g,wrapper:Ib(t.wrapper,b.wrapper)},this.getChildState(e,b),r?`${r}${s.key}`:s.key,i)];for(let A of z){var u,d;A.value=(d=(u=b.value)!==null&&u!==void 0?u:t.value)!==null&&d!==void 0?d:null,A.value&&this.cache.set(A.value,A);var f;if(t.type&&A.type!==t.type)throw new Error(`Unsupported type <${l5(A.type)}> in <${l5((f=i?.type)!==null&&f!==void 0?f:"unknown parent type")}>. Only <${l5(t.type)}> is supported.`);g++,yield A}M=x.next(z)}return}if(t.key==null||t.type==null)return;let h=this;var p,m;let v={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:(p=t.value)!==null&&p!==void 0?p:null,level:i?i.level+1:0,index:t.index,rendered:t.rendered,textValue:(m=t.textValue)!==null&&m!==void 0?m:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:_u(function*(){if(!t.hasChildNodes||!t.childNodes)return;let y=0;for(let x of t.childNodes()){x.key!=null&&(x.key=`${v.key}${x.key}`);let g=h.getFullNode({...x,index:y},h.getChildState(e,x),v.key,v);for(let M of g)y++,yield M}})};yield v}constructor(){this.cache=new WeakMap}}function _u(n){let t=[],e=null;return{*[Symbol.iterator](){for(let r of t)yield r;e||(e=n());for(let r of e)t.push(r),yield r}}}function Ib(n,t){if(n&&t)return e=>n(t(e));if(n)return n;if(t)return t}function l5(n){return n[0].toUpperCase()+n.slice(1)}function wb(n,t,e){let r=c.useMemo(()=>new Eb,[]),{children:i,items:o,collection:s}=n;return c.useMemo(()=>{if(s)return s;let l=r.build({children:i,items:o},e);return t(l)},[r,i,o,s,e,t])}function Nu(n,t){return typeof t.getChildren=="function"?t.getChildren(n.key):n.childNodes}function Sb(n){return Cb(n)}function Cb(n,t){for(let e of n)return e}function c5(n,t,e){if(t.parentKey===e.parentKey)return t.index-e.index;let r=[...Au(n,t),t],i=[...Au(n,e),e],o=r.slice(0,i.length).findIndex((s,a)=>s!==i[a]);return o!==-1?(t=r[o],e=i[o],t.index-e.index):r.findIndex(s=>s===e)>=0?1:(i.findIndex(s=>s===t)>=0,-1)}function Au(n,t){let e=[],r=t;for(;r?.parentKey!=null;)r=n.getItem(r.parentKey),r&&e.unshift(r);return e}const Fu=new WeakMap;function Pb(n){let t=Fu.get(n);if(t!=null)return t;let e=0,r=i=>{for(let o of i)o.type==="section"?r(Nu(o,n)):o.type==="item"&&e++};return r(n),Fu.set(n,e),e}var Lu={};Lu={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var Ku={};Ku={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var Bu={};Bu={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var Hu={};Hu={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var Vu={};Vu={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var qu={};qu={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var ju={};ju={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var Uu={};Uu={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var Wu={};Wu={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var Yu={};Yu={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var Ru={};Ru={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var Gu={};Gu={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var Xu={};Xu={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var Ju={};Ju={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var Zu={};Zu={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var Qu={};Qu={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var e8={};e8={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var t8={};t8={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var n8={};n8={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var r8={};r8={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var i8={};i8={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var o8={};o8={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var s8={};s8={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var a8={};a8={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var l8={};l8={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var c8={};c8={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var u8={};u8={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var d8={};d8={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var f8={};f8={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var p8={};p8={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var h8={};h8={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var v8={};v8={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var m8={};m8={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var g8={};g8={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var y8={};y8={"ar-AE":Lu,"bg-BG":Ku,"cs-CZ":Bu,"da-DK":Hu,"de-DE":Vu,"el-GR":qu,"en-US":ju,"es-ES":Uu,"et-EE":Wu,"fi-FI":Yu,"fr-FR":Ru,"he-IL":Gu,"hr-HR":Xu,"hu-HU":Ju,"it-IT":Zu,"ja-JP":Qu,"ko-KR":e8,"lt-LT":t8,"lv-LV":n8,"nb-NO":r8,"nl-NL":i8,"pl-PL":o8,"pt-BR":s8,"pt-PT":a8,"ro-RO":l8,"ru-RU":c8,"sk-SK":u8,"sl-SI":d8,"sr-SP":f8,"sv-SE":p8,"tr-TR":h8,"uk-UA":v8,"zh-CN":m8,"zh-TW":g8};function kb(n){return n&&n.__esModule?n.default:n}function zb(n,t,e){let{type:r="menu",isDisabled:i,trigger:o="press"}=n,s=C1(),{triggerProps:a,overlayProps:l}=fb({type:r},t,e),u=p=>{if(!i&&!(o==="longPress"&&!p.altKey)&&e&&e.current)switch(p.key){case"Enter":case" ":if(o==="longPress"||p.isDefaultPrevented())return;case"ArrowDown":"continuePropagation"in p||p.stopPropagation(),p.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in p||p.stopPropagation(),p.preventDefault(),t.toggle("last");break;default:"continuePropagation"in p&&p.continuePropagation()}},d=Hy(kb(y8),"@react-aria/menu"),{longPressProps:f}=nu({isDisabled:i||o!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),h={preventFocusOnPress:!0,onPressStart(p){p.pointerType!=="touch"&&p.pointerType!=="keyboard"&&!i&&(m1(p.target),t.open(p.pointerType==="virtual"?"first":null))},onPress(p){p.pointerType==="touch"&&!i&&(m1(p.target),t.toggle())}};return delete a.onPress,{menuTriggerProps:{...a,...o==="press"?h:f,id:s,onKeyDown:u},menuProps:{...l,"aria-labelledby":s,autoFocus:t.focusStrategy||!0,onClose:t.close}}}const b8=new WeakMap;function $b(n,t,e){let{shouldFocusWrap:r=!0,onKeyDown:i,onKeyUp:o,...s}=n;!n["aria-label"]&&!n["aria-labelledby"]&&process.env.NODE_ENV!=="production"&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let a=it(n,{labelable:!0}),{listProps:l}=Mb({...s,ref:e,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return b8.set(t,{onClose:n.onClose,onAction:n.onAction,shouldUseVirtualFocus:n.shouldUseVirtualFocus}),{menuProps:De(a,{onKeyDown:i,onKeyUp:o},{role:"menu",...l,onKeyDown:u=>{var d;(u.key!=="Escape"||n.shouldUseVirtualFocus)&&((d=l.onKeyDown)===null||d===void 0||d.call(l,u))}})}}function Tb(n,t,e){let{id:r,key:i,closeOnSelect:o,isVirtualized:s,"aria-haspopup":a,onPressStart:l,onPressUp:u,onPress:d,onPressChange:f,onPressEnd:h,onClick:p,onHoverStart:m,onHoverChange:v,onHoverEnd:y,onKeyDown:x,onKeyUp:g,onFocus:M,onFocusChange:b,onBlur:E,selectionManager:w=t.selectionManager}=n,z=!!a,A=z&&n["aria-expanded"]==="true";var C;let H=(C=n.isDisabled)!==null&&C!==void 0?C:w.isDisabled(i);var I;let L=(I=n.isSelected)!==null&&I!==void 0?I:w.isSelected(i),F=b8.get(t),$=t.collection.getItem(i),X=n.onClose||F.onClose,_=Hn(),B=()=>{var de;if(!z&&(!($==null||(de=$.props)===null||de===void 0)&&de.onAction?$.props.onAction():n.onAction&&n.onAction(i),F.onAction)){let be=F.onAction;be(i)}},W="menuitem";z||(w.selectionMode==="single"?W="menuitemradio":w.selectionMode==="multiple"&&(W="menuitemcheckbox"));let N=y4(),T=y4(),O=y4(),k={id:r,"aria-disabled":H||void 0,role:W,"aria-label":n["aria-label"],"aria-labelledby":N,"aria-describedby":[T,O].filter(Boolean).join(" ")||void 0,"aria-controls":n["aria-controls"],"aria-haspopup":a,"aria-expanded":n["aria-expanded"]};w.selectionMode!=="none"&&!z&&(k["aria-checked"]=L),s&&(k["aria-posinset"]=$?.index,k["aria-setsize"]=Pb(t.collection));let V=de=>{de.pointerType==="keyboard"&&!w.isLink(i)&&de.target.click(),l?.(de)},U=c.useRef(!1),G=de=>{f?.(de),U.current=de},R=de=>{de.pointerType==="mouse"&&(U.current||de.target.click()),de.pointerType!=="keyboard"&&!z&&X&&(o??(w.selectionMode!=="multiple"||w.isLink(i)))&&X(),u?.(de)},ee=de=>{p?.(de),B(),wg(de,_,$.props.href,$?.props.routerOptions)},{itemProps:Z,isFocused:D}=bb({id:r,selectionManager:w,key:i,ref:e,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:F.shouldUseVirtualFocus}),{pressProps:oe,isPressed:te}=er({onPressStart:V,onPress:d,onPressUp:R,onPressChange:G,onPressEnd:h,isDisabled:H}),{hoverProps:Y}=Y4({isDisabled:H,onHoverStart(de){!rr()&&!(A&&a)&&(w.setFocused(!0),w.setFocusedKey(i)),m?.(de)},onHoverChange:v,onHoverEnd:y}),{keyboardProps:fe}=j4({onKeyDown:de=>{if(de.repeat){de.continuePropagation();return}switch(de.key){case" ":!H&&w.selectionMode==="none"&&!z&&o!==!1&&X&&X();break;case"Enter":!H&&o!==!1&&!z&&X&&X();break;default:z||de.continuePropagation(),x?.(de);break}},onKeyUp:g}),{focusProps:re}=q4({onBlur:E,onFocus:M,onFocusChange:b}),K=it($?.props);delete K.id;let he=Ig($?.props);return{menuItemProps:{...k,...De(K,he,z?{onFocus:Z.onFocus,"data-collection":Z["data-collection"],"data-key":Z["data-key"]}:Z,oe,Y,fe,re,F.shouldUseVirtualFocus||z?{onMouseDown:de=>de.preventDefault()}:void 0,H?void 0:{onClick:ee}),tabIndex:Z.tabIndex!=null&&A&&!F.shouldUseVirtualFocus?-1:Z.tabIndex},labelProps:{id:N},descriptionProps:{id:T},keyboardShortcutProps:{id:O},isFocused:D,isFocusVisible:D&&w.isFocused&&rr()&&!A,isSelected:L,isPressed:te,isDisabled:H}}function Db(n){let{heading:t,"aria-label":e}=n,r=C1();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":e,"aria-labelledby":t?r:void 0}}}const Ob=c.createContext(null),_b=c.createContext({}),Nb=Ug(function(t,e){[t,e]=T4(t,e,_b),t=Ab(t);let r=t,{isPending:i}=r,{buttonProps:o,isPressed:s}=Yy(t,e),{focusProps:a,isFocused:l,isFocusVisible:u}=bu(t),{hoverProps:d,isHovered:f}=Y4({...t,isDisabled:t.isDisabled||i}),h={isHovered:f,isPressed:(r.isPressed||s)&&!i,isFocused:l,isFocusVisible:u,isDisabled:t.isDisabled||!1,isPending:i??!1},p=Yn({...t,values:h,defaultClassName:"react-aria-Button"}),m=C1(o.id),v=C1(),y=o["aria-labelledby"];i&&(y?y=`${y} ${v}`:o["aria-label"]&&(y=`${m} ${v}`));let x=c.useRef(i);c.useEffect(()=>{let M={"aria-labelledby":y||m};(!x.current&&l&&i||x.current&&l&&!i)&&Iu(M,"assertive"),x.current=i},[i,l,y,m]);let g=it(t,{global:!0});return delete g.onClick,c.createElement("button",{...De(g,p,o,a,d),type:o.type==="submit"&&i?"button":o.type,id:m,ref:e,"aria-labelledby":y,slot:t.slot||void 0,"aria-disabled":i?"true":o["aria-disabled"],"data-disabled":t.isDisabled||void 0,"data-pressed":h.isPressed||void 0,"data-hovered":f||void 0,"data-focused":l||void 0,"data-pending":i||void 0,"data-focus-visible":u||void 0},c.createElement(Ob.Provider,{value:{id:v}},p.children))});function Ab(n){return n.isPending&&(n.onPress=void 0,n.onPressStart=void 0,n.onPressEnd=void 0,n.onPressChange=void 0,n.onPressUp=void 0,n.onKeyDown=void 0,n.onKeyUp=void 0,n.onClick=void 0,n.href=void 0),n}const Fb=c.createContext({});class P1 extends Set{constructor(t,e,r){super(t),t instanceof P1?(this.anchorKey=e??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=e??null,this.currentKey=r??null)}}function Lb(n,t){if(n.size!==t.size)return!1;for(let e of n)if(!t.has(e))return!1;return!0}function x8(n){let{selectionMode:t="none",disallowEmptySelection:e=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=n,s=c.useRef(!1),[,a]=c.useState(!1),l=c.useRef(null),u=c.useRef(null),[,d]=c.useState(null),f=c.useMemo(()=>M8(n.selectedKeys),[n.selectedKeys]),h=c.useMemo(()=>M8(n.defaultSelectedKeys,new P1),[n.defaultSelectedKeys]),[p,m]=jn(f,h,n.onSelectionChange),v=c.useMemo(()=>n.disabledKeys?new Set(n.disabledKeys):new Set,[n.disabledKeys]),[y,x]=c.useState(i);i==="replace"&&y==="toggle"&&typeof p=="object"&&p.size===0&&x("replace");let g=c.useRef(i);return c.useEffect(()=>{i!==g.current&&(x(i),g.current=i)},[i]),{selectionMode:t,disallowEmptySelection:e,selectionBehavior:y,setSelectionBehavior:x,get isFocused(){return s.current},setFocused(M){s.current=M,a(M)},get focusedKey(){return l.current},get childFocusStrategy(){return u.current},setFocusedKey(M,b="first"){l.current=M,u.current=b,d(M)},selectedKeys:p,setSelectedKeys(M){(r||!Lb(M,p))&&m(M)},disabledKeys:v,disabledBehavior:o}}function M8(n,t){return n?n==="all"?"all":new P1(n):t}class fr{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,e){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,e)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let e=this.getKey(t);return e==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(e):this.state.selectedKeys.has(e)}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 t=this.getSelectAllKeys(),e=this.state.selectedKeys;return this._isSelectAll=t.every(r=>e.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!t||i&&c5(this.collection,i,t)<0)&&(t=i)}var e;return(e=t?.key)!==null&&e!==void 0?e:null}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!t||i&&c5(this.collection,i,t)>0)&&(t=i)}var e;return(e=t?.key)!==null&&e!==void 0?e:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let e=this.getKey(t);if(e==null)return;let r;if(this.state.selectedKeys==="all")r=new P1([e],e,e);else{let s=this.state.selectedKeys;var i;let a=(i=s.anchorKey)!==null&&i!==void 0?i:e;r=new P1(s,a,e);var o;for(let l of this.getKeyRange(a,(o=s.currentKey)!==null&&o!==void 0?o:e))r.delete(l);for(let l of this.getKeyRange(e,a))this.canSelectItem(l)&&r.add(l)}this.state.setSelectedKeys(r)}getKeyRange(t,e){let r=this.collection.getItem(t),i=this.collection.getItem(e);return r&&i?c5(this.collection,r,i)<=0?this.getKeyRangeInternal(t,e):this.getKeyRangeInternal(e,t):[]}getKeyRangeInternal(t,e){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(t,e);let i=[],o=t;for(;o!=null;){let s=this.collection.getItem(o);if(s&&(s.type==="item"||s.type==="cell"&&this.allowsCellSelection)&&i.push(o),o===e)return i;o=this.collection.getKeyAfter(o)}return[]}getKey(t){let e=this.collection.getItem(t);if(!e||e.type==="cell"&&this.allowsCellSelection)return t;for(;e&&e.type!=="item"&&e.parentKey!=null;)e=this.collection.getItem(e.parentKey);return!e||e.type!=="item"?null:e.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let e=this.getKey(t);if(e==null)return;let r=new P1(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(e)?r.delete(e):this.canSelectItem(e)&&(r.add(e),r.anchorKey=e,r.currentKey=e),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none")return;let e=this.getKey(t);if(e==null)return;let r=this.canSelectItem(e)?new P1([e],e,e):new P1;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let e=new P1;for(let r of t){let i=this.getKey(r);if(i!=null&&(e.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(e)}getSelectAllKeys(){let t=[],e=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let s=this.collection.getItem(r);s?.type==="item"&&t.push(r);var o;s?.hasChildNodes&&(this.allowsCellSelection||s.type!=="item")&&e((o=(i=Sb(Nu(s,this.collection)))===null||i===void 0?void 0:i.key)!==null&&o!==void 0?o:null)}r=this.collection.getKeyAfter(r)}};return e(this.collection.getFirstKey()),t}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 P1)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,e){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||e&&(e.pointerType==="touch"||e.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let e=this.selectedKeys;if(t.size!==e.size)return!1;for(let r of t)if(!e.has(r))return!1;for(let r of e)if(!t.has(r))return!1;return!0}canSelectItem(t){var e;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(e=r.props)===null||e===void 0)&&e.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var e,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(e=r.props)===null||e===void 0)&&e.isDisabled))}isLink(t){var e,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(e=r.props)===null||e===void 0)&&e.href)}getItemProps(t){var e;return(e=this.collection.getItem(t))===null||e===void 0?void 0:e.props}withCollection(t){return new fr(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,e,r){this.collection=t,this.state=e;var i;this.allowsCellSelection=(i=r?.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=r?.layoutDelegate||null}}function Kb(n){let[t,e]=jn(n.isOpen,n.defaultOpen||!1,n.onOpenChange);const r=c.useCallback(()=>{e(!0)},[e]),i=c.useCallback(()=>{e(!1)},[e]),o=c.useCallback(()=>{e(!t)},[e,t]);return{isOpen:t,setOpen:e,open:r,close:i,toggle:o}}function E8(n){let t=Kb(n),[e,r]=c.useState(null),[i,o]=c.useState([]),s=()=>{o([]),t.close()};return{focusStrategy:e,...t,open(u=null){r(u),t.open()},toggle(u=null){r(u),t.toggle()},close(){s()},expandedKeysStack:i,openSubmenu:(u,d)=>{o(f=>d>f.length?f:[...f.slice(0,d),u])},closeSubmenu:(u,d)=>{o(f=>f[d]===u?f.slice(0,d):f)}}}class Bb{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let e=this.keyMap.get(t);var r;return e&&(r=e.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(t){let e=this.keyMap.get(t);var r;return e&&(r=e.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var e;return(e=this.keyMap.get(t))!==null&&e!==void 0?e:null}at(t){const e=[...this.getKeys()];return this.getItem(e[t])}constructor(t,{expandedKeys:e}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t,e=e||new Set;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&(a.type==="section"||e.has(a.key)))for(let l of a.childNodes)r(l)};for(let a of t)r(a);let i=null,o=0;for(let[a,l]of this.keyMap)i?(i.nextKey=a,l.prevKey=i.key):(this.firstKey=a,l.prevKey=void 0),l.type==="item"&&(l.index=o++),i=l,i.nextKey=void 0;var s;this.lastKey=(s=i?.key)!==null&&s!==void 0?s:null}}function Hb(n){let{onExpandedChange:t}=n,[e,r]=jn(n.expandedKeys?new Set(n.expandedKeys):void 0,n.defaultExpandedKeys?new Set(n.defaultExpandedKeys):new Set,t),i=x8(n),o=c.useMemo(()=>n.disabledKeys?new Set(n.disabledKeys):new Set,[n.disabledKeys]),s=wb(n,c.useCallback(l=>new Bb(l,{expandedKeys:e}),[e]),null);return c.useEffect(()=>{i.focusedKey!=null&&!s.getItem(i.focusedKey)&&i.setFocusedKey(null)},[s,i.focusedKey]),{collection:s,expandedKeys:e,disabledKeys:o,toggleKey:l=>{r(Vb(e,l))},setExpandedKeys:r,selectionManager:new fr(s,i)}}function Vb(n,t){let e=new Set(n);return e.has(t)?e.delete(t):e.add(t),e}const I8=c.createContext(null),qb=c.createContext(null),jb={CollectionRoot({collection:n,renderDropIndicator:t}){return w8(n,null,t)},CollectionBranch({collection:n,parent:t,renderDropIndicator:e}){return w8(n,t,e)}};function w8(n,t,e){return _c({items:t?n.getChildren(t.key):n,dependencies:[e],children(r){let i=r.render(r);return!e||r.type!=="item"?i:c.createElement(c.Fragment,null,e({type:"item",key:r.key,dropPosition:"before"}),i,Ub(n,r,e))}})}function Ub(n,t,e){let r=t.key,i=n.getKeyAfter(r),o=i!=null?n.getItem(i):null;for(;o!=null&&o.type!=="item";)i=n.getKeyAfter(o.key),o=i!=null?n.getItem(i):null;let s=t.nextKey!=null?n.getItem(t.nextKey):null;for(;s!=null&&s.type!=="item";)s=s.nextKey!=null?n.getItem(s.nextKey):null;let a=[];if(s==null){let l=t;for(;l&&(!o||l.parentKey!==o.parentKey&&o.level<l.level);){let u=e({type:"item",key:l.key,dropPosition:"after"});c.isValidElement(u)&&a.push(c.cloneElement(u,{key:`${l.key}-after`})),l=l.parentKey!=null?n.getItem(l.parentKey):null}}return a}const S8=c.createContext(jb);function Wb(n){return c.useMemo(()=>n!=null?new Set([n]):null,[n])}const Yb=c.createContext({}),Rb=c.createContext({}),Gb=c.createContext(null),Xb=c.createContext({}),C8=c.createContext(null),u5=c.createContext(null),d5=c.createContext(null),pr=c.createContext(null);function P8(n){let t=E8(n),e=c.useRef(null),{menuTriggerProps:r,menuProps:i}=zb({...n,type:"menu"},t,e),[o,s]=c.useState(null),a=c.useCallback(()=>{e.current&&s(e.current.offsetWidth+"px")},[e]);kg({ref:e,onResize:a});let l=c.useRef(null);return c.createElement(Wn,{values:[[C8,{...i,ref:l}],[tx,t],[d5,t],[Gb,{trigger:"MenuTrigger",triggerRef:e,scrollRef:l,placement:"bottom start",style:{"--trigger-width":o},"aria-labelledby":i["aria-labelledby"]}]]},c.createElement(dy,{...r,ref:e,isPressed:t.isOpen},n.children))}const Jb=c.createContext(null),k8=c.forwardRef(function(t,e){return[t,e]=T4(t,e,C8),c.createElement(yy,{content:c.createElement(Cy,t)},r=>c.createElement(Zb,{props:t,collection:r,menuRef:e}))});function Zb({props:n,collection:t,menuRef:e}){let{filter:r,collectionProps:i,collectionRef:o}=c.useContext(I8)||{};e=Vn(c.useMemo(()=>gc(e,o!==void 0?o:null),[o,e]));let s=c.useMemo(()=>r?t.UNSTABLE_filter(r):t,[t,r]),a=Hb({...n,collection:s,children:void 0}),l=c.useContext(d5),{isVirtualized:u,CollectionRoot:d}=c.useContext(S8),{menuProps:f}=$b({...n,...i,isVirtualized:u,onClose:n.onClose||l?.close},a,e),h=Yn({defaultClassName:"react-aria-Menu",className:n.className,style:n.style,values:{isEmpty:a.collection.size===0}}),p=null;a.collection.size===0&&n.renderEmptyState&&(p=c.createElement("div",{role:"menuitem",style:{display:"contents"}},n.renderEmptyState()));let m=it(n,{global:!0});return c.createElement(Ry,null,c.createElement("div",{...De(m,h,f),ref:e,slot:n.slot||void 0,"data-empty":a.collection.size===0||void 0,onScroll:n.onScroll},c.createElement(Wn,{values:[[u5,a],[Rb,{elementType:"div"}],[qb,{name:"MenuSection",render:ex}],[Jb,{parentMenuRef:e,shouldUseVirtualFocus:i?.shouldUseVirtualFocus}],[f5,null],[I8,null],[pr,a.selectionManager],[d5,l??E8({})]]},c.createElement(d,{collection:a.collection,persistedKeys:Wb(a.selectionManager.focusedKey),scrollRef:e})),p))}class Qb extends fr{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(t,e){return this.parent.setFocusedKey(t,e)}setFocused(t){this.parent.setFocused(t)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(t,e){super(t.collection,e),this.parent=t}}function ex(n,t,e,r="react-aria-MenuSection"){var i,o;let s=c.useContext(u5),{CollectionBranch:a}=c.useContext(S8),[l,u]=Vg();var d;let{headingProps:f,groupProps:h}=Db({heading:u,"aria-label":(d=e.props["aria-label"])!==null&&d!==void 0?d:void 0}),p=Yn({defaultClassName:r,className:(i=e.props)===null||i===void 0?void 0:i.className,style:(o=e.props)===null||o===void 0?void 0:o.style,values:{}}),m=c.useContext(pr),v=x8(n),y=n.selectionMode!=null?new Qb(m,v):m,x=it(n,{global:!0});return delete x.id,c.createElement("section",{...De(x,p,h),ref:t},c.createElement(Wn,{values:[[Yb,{...f,ref:l}],[pr,y]]},c.createElement(a,{collection:s.collection,parent:e})))}const f5=c.createContext(null),z8=wy("item",function(t,e,r){var i;[t,e]=T4(t,e,f5);let o=(i=Tc(f5))===null||i===void 0?void 0:i.id,s=c.useContext(u5),a=Vn(e),l=c.useContext(pr),{menuItemProps:u,labelProps:d,descriptionProps:f,keyboardShortcutProps:h,...p}=Tb({...t,id:o,key:r.key,selectionManager:l},s,a),{hoverProps:m,isHovered:v}=Y4({isDisabled:p.isDisabled}),y=Yn({...t,id:void 0,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...p,isHovered:v,isFocusVisible:p.isFocusVisible,selectionMode:l.selectionMode,selectionBehavior:l.selectionBehavior,hasSubmenu:!!t["aria-haspopup"],isOpen:t["aria-expanded"]==="true"}}),x=t.href?"a":"div",g=it(t,{global:!0});return delete g.id,delete g.onClick,c.createElement(x,{...De(g,y,u,m),ref:a,"data-disabled":p.isDisabled||void 0,"data-hovered":v||void 0,"data-focused":p.isFocused||void 0,"data-focus-visible":p.isFocusVisible||void 0,"data-pressed":p.isPressed||void 0,"data-selected":p.isSelected||void 0,"data-selection-mode":l.selectionMode==="none"?void 0:l.selectionMode,"data-has-submenu":!!t["aria-haspopup"]||void 0,"data-open":t["aria-expanded"]==="true"||void 0},c.createElement(Wn,{values:[[Fb,{slots:{[$c]:d,label:d,description:f}}],[Xb,h]]},y.children))}),tx=c.createContext(null);F1.icons.map(n=>n.properties.name);const $8=n=>c.createElement(c.Fragment,null);$8.displayName="MenuButton.Item";function hr(){return hr=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)({}).hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},hr.apply(null,arguments)}function T8({menuItems:n,testId:t,children:e}){const[r,i]=c.useState(!1),[o,s]=c.useState(!0),{handleMouseEvent:a,trigger:l,parentRef:u}=Yd({enabled:o}),{renderLayer:d,triggerProps:f,layerProps:h}=Zt({isOpen:r,auto:!0,onOutsideClick:()=>{i(!1),s(!0)},preferX:"right",preferY:"bottom",placement:"bottom-start",trigger:l,container:o6});function p(g){g.preventDefault(),i(!0),s(!1)}function m(g){g.preventDefault(),g.key==="F12"&&g.ctrlKey&&(i(!0),s(!1))}const v=g=>{const M=n.find(b=>b.props.id===g);M?.props.onSelect&&M.props.onSelect(M.props.label,M.props.id),i(!1),s(!0)},y=({key:g})=>{g==="Escape"&&r&&(i(!1),s(!0))},x=g=>{u.current?.contains(g.target)||(i(!1),s(!0))};return c.useEffect(()=>(window.addEventListener("keyup",y),window.addEventListener("contextmenu",x),()=>{window.removeEventListener("keyup",y),window.removeEventListener("contextmenu",x)}),[y]),c.createElement(P8,{isOpen:!0,onOpenChange:g=>{g&&i(g)},"data-testid":t},c.createElement("div",hr({ref:u,role:"button",tabIndex:0,"aria-label":"Press Control + F12 to open the context menu",onContextMenu:p,onKeyDown:m,onMouseMove:a},f),e),r&&d(c.createElement("div",hr({className:"nds-context-menu-popover"},h),c.createElement(k8,{onAction:v,className:"nds-context-menu rounded--all elevation--high"},n.map((g,M)=>c.createElement(z8,{key:g.props.id,id:g.props.id,value:g.props.id,className:({isSelected:b,isFocused:E,isDisabled:w})=>ae(["nds-context-menu-item","padding--x--s padding--y--xs",{"nds-context-menu-item--highlighted":b||E,"nds-context-menu-item--disabled":w,"rounded--top":M===0,"rounded--bottom":M===n.length-1}])},c.createElement(ce,{gapSize:"s"},g.props.startIcon&&c.createElement(ce.Item,{shrink:!0},c.createElement("span",{className:`narmi-icon-${g.props.startIcon}`})),c.createElement(ce.Item,null,g.props.label))))))))}T8.Item=$8;function vr(){return vr=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)({}).hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},vr.apply(null,arguments)}const p5=()=>{},nx=({title:n,subtitle:t,statusText:e,isOpen:r,trigger:i="header",onOpen:o=p5,onClose:s=p5,isDisabled:a=!1,onDisabledClick:l=p5,renderTitle:u,hasError:d=!1,disableHover:f=!1,children:h,radiusSize:p="l",kind:m="default"})=>{const[v,y]=c.useState(!1),x=(z=!1,A)=>{if(z){l();return}else A==="open"?(o(),y(!0)):A==="close"&&(s(),y(!1))},g=()=>{y(!1),r?s():o()},M=c.createElement("div",{className:ae(["collapsible-card-trigger","alignChild--center--center",{"padding--left":i=="caret-start","padding--right--l":i=="caret-end"}])},c.createElement(Mn,{kind:"action",label:r?"Close":"Open",onClick:g,name:`chevron-${r?"up":"down"}`,textSize:"l",onKeyUp:({key:z})=>{z==="Enter"&&g()}})),b=c.createElement("div",{className:ae(["collapsible-card-titleBar",`rounded--top--${m==="ai"?"m":p}`])},c.createElement(m6,{isDisabled:a},typeof u=="function"?u(r):c.createElement(ce,{alignItems:"center",gapSize:"s"},i==="caret-start"&&c.createElement(ce.Item,{shrink:!0},M),c.createElement(ce.Item,null,c.createElement("h4",{className:ae(["fontWeight--bold","fontSize--xl","padding--top--l","fontFamily--body",{"padding--left--l":i!=="caret-start"}])},n),c.createElement("div",{className:ae([a?"subtitle--disabled":"subtitle","padding--bottom--l","margin--top--xxs",{"padding--left--l":i!=="caret-start"}])},t)),i==="caret-end"&&c.createElement(ce.Item,{shrink:!0},M),e&&c.createElement(ce.Item,{shrink:!0},c.createElement("div",{className:"collapsible-card--statusText padding--right--l fontSize--s alignChild--right--center"},c.createElement("span",null,e)))))),E=ae(["collapsible-card--content-card",`collapisble-card--${m}`,{"content-card--hasCaretTrigger":i.includes("caret"),"content-card--error":d,"content-card--disabled":a,"content-card--hover":i==="header"&&!f&&v,"collapsible-card--no-user-select":!f||i==="header","collapsible-card--customTitle":typeof u=="function"},r&&!a?void 0:"content-card--closed",`rounded--all--${p}`,"bgColor--white"]),w=i==="header"?{role:"button",tabIndex:0,onKeyUp:({key:z})=>{if(z==="Enter"){const A=r&&!a?"close":"open";x(A==="open"?a:!1,A)}},onClick:()=>{const z=r&&!a?"close":"open";x(z==="open"?a:!1,z)}}:{};return c.createElement("div",{className:E},r&&!a?c.createElement(c.Fragment,null,c.createElement("div",vr({className:`collapsible-card--title-expanded rounded--top--${p}`,"aria-expanded":"true",onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1)},w),b),c.createElement("div",{className:"padding--all--l"},h)):c.createElement("div",vr({"aria-expanded":"false"},w),b))},h5=({children:n,value:t})=>c.createElement(c.Fragment,null,n||t);h5.displayName="Combobox.Item",h5.propTypes={value:q.string.isRequired,searchValue:q.string.isRequired,children:q.oneOfType([q.node,q.arrayOf(q.node)])};const D8=({text:n,kind:t="bold"})=>c.createElement("h5",{className:`nds-combobox-list-heading--${t}`},n);D8.displayName="Combobox.Heading";const mr=({children:n})=>c.createElement(c.Fragment,null,n);mr.displayName="Combobox.Category",mr.propTypes={label:q.string.isRequired,children:q.oneOfType([q.node,q.arrayOf(q.node)])};const rx=()=>{},v5=({onSelect:n=rx})=>c.createElement(c.Fragment,null);v5.displayName="Combobox.Action",v5.propTypes={onSelect:q.func.isRequired,label:q.string.isRequired};function gr(){return gr=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)({}).hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},gr.apply(null,arguments)}const w6=c.forwardRef(({isOpen:n=!1,showOpenIndicator:t=!0,disabled:e=!1,labelText:r,labelProps:i,displayValue:o,renderDisplayValue:s,errorText:a,hasError:l=!1,minWidth:u="auto",kind:d="default",testId:f,startContent:h=c.createElement(c.Fragment,null),endContent:p=c.createElement(c.Fragment,null),...m},v)=>c.createElement(c.Fragment,null,c.createElement("div",{className:`nds-dropdownTrigger nds-dropdownTrigger--${d}`,style:{minWidth:u}},c.createElement("button",gr({disabled:e,ref:v,"data-testid":f||"dropdownTriggerButton",className:ae(["nds-dropdownTrigger-button button--reset","padding--x--s rounded--all",{"nds-dropdownTrigger-button--hasValue":!!o,"nds-dropdownTrigger-button--hasError":!!a||l,"nds-dropdownTrigger-button--isActive":n,"nds-dropdownTrigger-button--disabled":e}]),"aria-expanded":n?"true":"false",type:"button"},m),h,r&&c.createElement("label",gr({className:"nds-dropdownTrigger-label"},i),r),s?s():o&&c.createElement("span",{className:"nds-dropdownTrigger-value"},o),p,t&&!e&&c.createElement("span",{role:"img","aria-label":n?"popup open":"popup closed",className:ae(["nds-dropdownTrigger-chevron fontSize--xl fontColor--secondary",`narmi-icon-chevron-${n?"up":"down"}`])}))),a&&c.createElement(O1,{error:a})));w6.displayName="DropdownTrigger";const m5=({children:n})=>c.createElement(c.Fragment,null,n);m5.displayName="Select.Item",m5.propTypes={value:q.string.isRequired,searchValue:q.string.isRequired,children:q.oneOfType([q.node,q.arrayOf(q.node)])};const g5=({children:n})=>c.createElement(c.Fragment,null,n);g5.displayName="Select.Action",g5.propTypes={onSelect:q.func.isRequired,children:q.oneOfType([q.node,q.arrayOf(q.node)])};const y5=({children:n})=>c.createElement(c.Fragment,null,n);y5.displayName="Select.Category",y5.propTypes={label:q.string,kind:q.oneOf(["heading","label"]),children:q.oneOfType([q.node,q.arrayOf(q.node)]),isFlat:q.bool};function Ot(){return Ot=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)({}).hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},Ot.apply(null,arguments)}const ix=()=>{},q1=n=>{let t=!1;return n&&n.props&&(t="onSelect"in n.props),t},ox=n=>{let t="";return n&&!q1(n)&&(t=n.props.children),t},O8=(n,t)=>t.filter(r=>!q1(r)).filter(({props:r})=>r.value===n).pop()||"",_8=(n,t)=>{let e=0;return q1(n)?e=t.map(({props:r})=>r.onSelect).indexOf(n.props.onSelect):e=t.map(({props:r})=>r.value).indexOf(n.props.value),e},sx=(n,t,e)=>{if(n<0)return!1;const r=e[n].props.value;return t.map(o=>o.props.value).includes(r)},ax=(n,t)=>{if(!n||q1(n))return!1;const e=n.props.value;return t.map(i=>i.props.value).includes(e)},lx=(n="",t)=>q1(t)?"":t.props.searchValue||t.props.value,yr=({id:n,label:t,children:e,onChange:r=ix,value:i,defaultValue:o,defaultOpen:s=!1,disabled:a=!1,getTypeaheadString:l=lx,clearSelectionOnAction:u=!1,errorText:d,testId:f,maxMenuHeight:h="40vh"})=>{let p=[],m=[];const v=c.useMemo(()=>c.Children.toArray(e).filter(N=>!q1(N)),[e]),y=c.Children.toArray(e).filter(q1),[x,g]=c.useState("");v.some(({type:N})=>N.displayName==="Select.Category")?(p=[...v.flatMap(({props:N})=>c.Children.toArray(N.children)),...y],m=v.map(({props:N})=>({label:N.label,categoryChildren:c.Children.toArray(N.children),kind:N.kind,isFlat:N.isFlat}))):p=[...v,...y];const M={id:n||`nds-select-${t}`,items:p,disabled:a,initialSelectedItem:o&&O8(o,p),initialIsOpen:s,itemToString:N=>l(x,N),onSelectedItemChange:({selectedItem:N})=>{N&&!q1(N)&&r(N.props?N.props.value:"")},stateReducer:(N,T)=>{const{type:O,changes:k}=T,{selectedItem:V}=N,{selectedItem:U}=k;let G=k.isOpen;if(O===p1.stateChangeTypes.ToggleButtonKeyDownCharacter){const{inputValue:R}=k;g(R),G=!0}else g("");return q1(U)?(U.props.onSelect(),u&&r(""),{...k,selectedItem:u?null:V,isOpen:!1}):{...k,isOpen:G}}};i!==void 0&&(M.selectedItem=O8(i,p));const{isOpen:b,selectedItem:E,getToggleButtonProps:w,getLabelProps:z,getMenuProps:A,highlightedIndex:C,getItemProps:H,closeMenu:I}=p1(M),{anchorProps:L,layerProps:F}=p6({isOpen:b,setIsOpen:N=>{N||I()}}),$=m.length>0,X=E!==null&&E.props,_=b&&p.length>0,B=(N,T)=>{const O=_8(N,T);return c.createElement("li",Ot({key:`item-${O}`,className:ae(["nds-select-item","alignChild--left--center padding--x--s padding--y--xs",{"nds-select-item--highlighted":C===O,"rounded--top":O===0,"rounded--bottom":O===T.length-1,"nds-select-item--hasGutter":$}])},H({item:N,index:O})),c.createElement(ce,{as:"span"},c.createElement(ce.Item,{as:"span"},N),X&&E.props.value===N.props.value&&c.createElement(ce.Item,{as:"span",shrink:!0},c.createElement("span",{className:"narmi-icon-check fontSize--xl fontWeight--bold"}))))},W=N=>{let T={};return(sx(C,N,p)||ax(E,N))&&(T.open=!0),T};return c.createElement("div",{className:"nds-select","data-testid":f},c.createElement("div",L,c.createElement(w6,Ot({isOpen:_,labelText:t,disabled:a,displayValue:ox(E)||x,labelProps:{...z()},hasError:!!d},w()))),c.createElement(O1,{error:d}),c.createElement("div",F,c.createElement("div",Ot({className:ae(["nds-select-list","bgColor--white",{"nds-select-list--error":!!d}])},A(),{style:{maxHeight:h}}),_&&$&&m.map(({label:N,kind:T,categoryChildren:O,isFlat:k})=>k?c.createElement(c.Fragment,null,N&&c.createElement("h4",{id:`select-category-${N}`,className:ae(["fontFamily--default","padding--x--s padding--y--xs",{"select-category-title--label":T==="label","select-category-title--heading":T==="heading"}])},N),c.createElement("ul",{className:"list--reset","aria-labelledby":`select-category-${N}`},O.map(V=>B(V,p)))):c.createElement("details",Ot({key:N,className:"nds-select-category"},W(O)),c.createElement("summary",{className:ae(["alignChild--left--center","padding--x--s",{"select-category-title--label":T==="label","select-category-title--heading":T==="heading"||!T}])},c.createElement("span",{id:`select-category-${N}`},N),c.createElement("span",{className:"nds-category-icon narmi-icon-chevron-down"}),c.createElement("span",{className:"nds-category-icon narmi-icon-chevron-up"})),c.createElement("ul",{className:"list--reset","aria-labelledby":`select-category-${N}`},O.map(V=>B(V,p))))),_&&$&&c.createElement("ul",{className:"list--reset"},y.map(N=>B(N,p))),_&&!$&&c.createElement("ul",{className:"list--reset"},v.map(N=>B(N,p)),y.map(N=>B(N,p))))))};yr.Item=m5,yr.Action=g5,yr.Category=y5;function _t(){return _t=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)({}).hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},_t.apply(null,arguments)}const N8=()=>{};F1.icons.map(n=>n.properties.name);const S6=n=>{let t=!1;return n&&n.props&&(t="label"in n.props),t},b5=n=>{let t=!1;return n&&(t=S6(n)||"value"in n.props),t},cx=(n,t,e,r,i)=>{let o=!1;if(t>-1&&e.length>0){const s=e[t].props.value;o=r.map(l=>l.props.value).includes(s)}return typeof n=="string"&&n.length>0&&(o=!0),i&&(o=r.map(s=>s.props.value).includes(i.props.value)),o},ux=(n,t)=>t.map(r=>r.props.value).reduce((r,i)=>{const o=n.find(s=>i===s.props.value);return o&&r.push(o),r},[]),dx=(n,t)=>n.filter(e=>(e.props.searchValue||e.props.value).toLowerCase().startsWith(t)),fx=n=>c.createElement("span",{className:`fontSize--xl fontColor--primary narmi-icon-${n?"chevron-up":"chevron-down"}`}),C6=({label:n,onChange:t=N8,onInputChange:e=N8,inputValue:r,filterItemsByInput:i=dx,children:o,disableFiltering:s=!1,clearSelectionOnAction:a=!1,errorText:l,icon:u,testId:d,renderEndContent:f=fx,maxMenuHeight:h="40vh"})=>{const p=c.useMemo(()=>c.Children.toArray(o),[o]),m=p.some(({type:O})=>O.displayName===mr.displayName);let v=[],y=p.length<1?[]:p.filter(({props:O})=>"value"in O||"text"in O);m?(y=p.flatMap(({props:O})=>c.Children.toArray(O.children)),v=p.map(({props:O})=>({label:O.label,categoryChildren:c.Children.toArray(O.children)}))):y=p;const[x,g]=c.useState(y),M=O=>O?.props?.searchValue||O?.props?.value||"",{isOpen:b,selectedItem:E,getInputProps:w,getMenuProps:z,getItemProps:A,highlightedIndex:C,inputValue:H,openMenu:I,closeMenu:L,reset:F}=c6({items:x,inputValue:r,itemToString:M,onInputValueChange:({inputValue:O})=>{if(O.length===0){g(y),F(),e("");return}if(!s){const k=y.filter(S6),V=i(y.filter(U=>!S6(U)&&b5(U)),O.toLowerCase());g([...V,...k])}e(O)},onSelectedItemChange:({selectedItem:O})=>{t(O?O.props.value:""),L()},stateReducer:(O,k)=>{const{changes:V}=k,{selectedItem:U}=O,{selectedItem:G}=V;return S6(G)?(G.props.onSelect(),{...V,selectedItem:a?null:U,inputValue:a?"":M(U),isOpen:!1}):V}}),{anchorProps:$,layerProps:X}=p6({isOpen:b,setIsOpen:O=>{O||L()}});c.useEffect(()=>{(!H||H.length===0)&&y.length!==x.length&&g(y)},[y,H]);const _=!!E,B=(O,k)=>{const V=S6(O);let U=c.createElement("li",{key:`${O}-${k}`,className:"alignChild--left--center"},O);return b5(O)&&(U=c.createElement("li",_t({key:`${O}-${k}`,className:ae(["nds-combobox-item","alignChild--left--center padding--x--s",{"nds-combobox-action":V,"padding--y--xs":!m,"nds-combobox-item--highlighted":C===k,"rounded--top":k===0,"rounded--bottom":k===x.length-1}])},A({item:O,index:k})),V&&c.createElement(ce,{as:"span",gapSize:"xxs"},c.createElement(ce.Item,{as:"span",shrink:!0},c.createElement("span",{className:"narmi-icon-plus fontWeight--bold"})),c.createElement(ce.Item,{as:"span"},c.createElement("span",{className:"fontWeight--semibold"},O.props.label))),!V&&c.createElement(ce,{as:"span"},c.createElement(ce.Item,{as:"span"},O),_&&E.props.value===O.props.value&&c.createElement(ce.Item,{as:"span",shrink:!0},c.createElement("span",{className:"narmi-icon-check fontSize--xl fontWeight--bold"}))))),U},W=({label:O,categoryChildren:k})=>{const V={},U=ux(x,k),G=U.length>0;return cx(H,C,x,k,E)&&(V.open=!0),G?c.createElement("details",_t({key:O,className:"nds-combobox-category",tabIndex:-1},V),c.createElement("summary",{className:"fontWeight--bold alignChild--left--center padding--x--s padding--y-xs",onFocus:R=>{R.target.blur()}},c.createElement("span",{id:`combobox-category-${O}`},O),c.createElement("span",{className:"nds-category-icon narmi-icon-chevron-down"}),c.createElement("span",{className:"nds-category-icon narmi-icon-chevron-up"})),c.createElement("ul",{className:"list--reset","aria-labelledby":`combobox-category-${O}`},U.map(R=>B(R,_8(R,x))))):null},N=()=>{b||(I(),_&&g(y.filter(b5)))},T=()=>{e(E?M(E):""),C!==-1&&L()};return y.length<1?c.createElement(U1,{error:l,label:n,startIcon:u,onChange:e,value:H}):c.createElement(c.Fragment,null,c.createElement("div",{className:ae(["nds-combobox",{"nds-combobox--active":b}]),"data-testid":d},c.createElement("div",$,c.createElement(U1,_t({error:l,renderError:!1,label:n,value:H,startIcon:u,endContent:f(b)},w({onBlur:T,onFocus:N,onClick:N}),{onClick:N}))),c.createElement(O1,{error:l,className:"margin--top--xs"}),c.createElement("div",X,c.createElement("ul",_t({className:ae(["nds-combobox-list","list--reset","bgColor--white",{"nds-combobox-list--error":!!l}])},z(),{style:{maxHeight:h}}),b&&(m?v.map(W):x.map(B))))))};C6.Item=h5,C6.Heading=D8,C6.Category=mr,C6.Action=v5;var P6={exports:{}},px=P6.exports,A8;function hx(){return A8||(A8=1,function(n,t){(function(e,r){r(t)})(px,function(e){var r={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(i){var o=i%100;if(o>3&&o<21)return"th";switch(o%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1};e.default=r,e.english=r,Object.defineProperty(e,"__esModule",{value:!0})})}(P6,P6.exports)),P6.exports}var x5=hx(),M5=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],Nt={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:typeof window=="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(n){return typeof console<"u"&&console.warn(n)},getWeek:function(n){var t=new Date(n.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var e=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-e.getTime())/864e5-3+(e.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},k6={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(n){var t=n%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},l1=function(n,t){return t===void 0&&(t=2),("000"+n).slice(t*-1)},b1=function(n){return n===!0?1:0};function F8(n,t){var e;return function(){var r=this,i=arguments;clearTimeout(e),e=setTimeout(function(){return n.apply(r,i)},t)}}var E5=function(n){return n instanceof Array?n:[n]};function i1(n,t,e){if(e===!0)return n.classList.add(t);n.classList.remove(t)}function Ee(n,t,e){var r=window.document.createElement(n);return t=t||"",e=e||"",r.className=t,e!==void 0&&(r.textContent=e),r}function br(n){for(;n.firstChild;)n.removeChild(n.firstChild)}function L8(n,t){if(t(n))return n;if(n.parentNode)return L8(n.parentNode,t)}function xr(n,t){var e=Ee("div","numInputWrapper"),r=Ee("input","numInput "+n),i=Ee("span","arrowUp"),o=Ee("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?r.type="number":(r.type="text",r.pattern="\\d*"),t!==void 0)for(var s in t)r.setAttribute(s,t[s]);return e.appendChild(r),e.appendChild(i),e.appendChild(o),e}function u1(n){try{if(typeof n.composedPath=="function"){var t=n.composedPath();return t[0]}return n.target}catch{return n.target}}var I5=function(){},Mr=function(n,t,e){return e.months[t?"shorthand":"longhand"][n]},vx={D:I5,F:function(n,t,e){n.setMonth(e.months.longhand.indexOf(t))},G:function(n,t){n.setHours((n.getHours()>=12?12:0)+parseFloat(t))},H:function(n,t){n.setHours(parseFloat(t))},J:function(n,t){n.setDate(parseFloat(t))},K:function(n,t,e){n.setHours(n.getHours()%12+12*b1(new RegExp(e.amPM[1],"i").test(t)))},M:function(n,t,e){n.setMonth(e.months.shorthand.indexOf(t))},S:function(n,t){n.setSeconds(parseFloat(t))},U:function(n,t){return new Date(parseFloat(t)*1e3)},W:function(n,t,e){var r=parseInt(t),i=new Date(n.getFullYear(),0,2+(r-1)*7,0,0,0,0);return i.setDate(i.getDate()-i.getDay()+e.firstDayOfWeek),i},Y:function(n,t){n.setFullYear(parseFloat(t))},Z:function(n,t){return new Date(t)},d:function(n,t){n.setDate(parseFloat(t))},h:function(n,t){n.setHours((n.getHours()>=12?12:0)+parseFloat(t))},i:function(n,t){n.setMinutes(parseFloat(t))},j:function(n,t){n.setDate(parseFloat(t))},l:I5,m:function(n,t){n.setMonth(parseFloat(t)-1)},n:function(n,t){n.setMonth(parseFloat(t)-1)},s:function(n,t){n.setSeconds(parseFloat(t))},u:function(n,t){return new Date(parseFloat(t))},w:I5,y:function(n,t){n.setFullYear(2e3+parseFloat(t))}},pt={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},z6={Z:function(n){return n.toISOString()},D:function(n,t,e){return t.weekdays.shorthand[z6.w(n,t,e)]},F:function(n,t,e){return Mr(z6.n(n,t,e)-1,!1,t)},G:function(n,t,e){return l1(z6.h(n,t,e))},H:function(n){return l1(n.getHours())},J:function(n,t){return t.ordinal!==void 0?n.getDate()+t.ordinal(n.getDate()):n.getDate()},K:function(n,t){return t.amPM[b1(n.getHours()>11)]},M:function(n,t){return Mr(n.getMonth(),!0,t)},S:function(n){return l1(n.getSeconds())},U:function(n){return n.getTime()/1e3},W:function(n,t,e){return e.getWeek(n)},Y:function(n){return l1(n.getFullYear(),4)},d:function(n){return l1(n.getDate())},h:function(n){return n.getHours()%12?n.getHours()%12:12},i:function(n){return l1(n.getMinutes())},j:function(n){return n.getDate()},l:function(n,t){return t.weekdays.longhand[n.getDay()]},m:function(n){return l1(n.getMonth()+1)},n:function(n){return n.getMonth()+1},s:function(n){return n.getSeconds()},u:function(n){return n.getTime()},w:function(n){return n.getDay()},y:function(n){return String(n.getFullYear()).substring(2)}},K8=function(n){var t=n.config,e=t===void 0?Nt:t,r=n.l10n,i=r===void 0?k6:r,o=n.isMobile,s=o===void 0?!1:o;return function(a,l,u){var d=u||i;return e.formatDate!==void 0&&!s?e.formatDate(a,l,d):l.split("").map(function(f,h,p){return z6[f]&&p[h-1]!=="\\"?z6[f](a,d,e):f!=="\\"?f:""}).join("")}},w5=function(n){var t=n.config,e=t===void 0?Nt:t,r=n.l10n,i=r===void 0?k6:r;return function(o,s,a,l){if(!(o!==0&&!o)){var u=l||i,d,f=o;if(o instanceof Date)d=new Date(o.getTime());else if(typeof o!="string"&&o.toFixed!==void 0)d=new Date(o);else if(typeof o=="string"){var h=s||(e||Nt).dateFormat,p=String(o).trim();if(p==="today")d=new Date,a=!0;else if(e&&e.parseDate)d=e.parseDate(o,h);else if(/Z$/.test(p)||/GMT$/.test(p))d=new Date(o);else{for(var m=void 0,v=[],y=0,x=0,g="";y<h.length;y++){var M=h[y],b=M==="\\",E=h[y-1]==="\\"||b;if(pt[M]&&!E){g+=pt[M];var w=new RegExp(g).exec(o);w&&(m=!0)&&v[M!=="Y"?"push":"unshift"]({fn:vx[M],val:w[++x]})}else b||(g+=".")}d=!e||!e.noCalendar?new Date(new Date().getFullYear(),0,1,0,0,0,0):new Date(new Date().setHours(0,0,0,0)),v.forEach(function(z){var A=z.fn,C=z.val;return d=A(d,C,u)||d}),d=m?d:void 0}}if(!(d instanceof Date&&!isNaN(d.getTime()))){e.errorHandler(new Error("Invalid date provided: "+f));return}return a===!0&&d.setHours(0,0,0,0),d}}};function d1(n,t,e){return e===void 0&&(e=!0),e!==!1?new Date(n.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):n.getTime()-t.getTime()}var mx=function(n,t,e){return n>Math.min(t,e)&&n<Math.max(t,e)},S5=function(n,t,e){return n*3600+t*60+e},gx=function(n){var t=Math.floor(n/3600),e=(n-t*3600)/60;return[t,e,n-t*3600-e*60]},yx={DAY:864e5};function C5(n){var t=n.defaultHour,e=n.defaultMinute,r=n.defaultSeconds;if(n.minDate!==void 0){var i=n.minDate.getHours(),o=n.minDate.getMinutes(),s=n.minDate.getSeconds();t<i&&(t=i),t===i&&e<o&&(e=o),t===i&&e===o&&r<s&&(r=n.minDate.getSeconds())}if(n.maxDate!==void 0){var a=n.maxDate.getHours(),l=n.maxDate.getMinutes();t=Math.min(t,a),t===a&&(e=Math.min(l,e)),t===a&&e===l&&(r=n.maxDate.getSeconds())}return{hours:t,minutes:e,seconds:r}}typeof Object.assign!="function"&&(Object.assign=function(n){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];if(!n)throw TypeError("Cannot convert undefined or null to object");for(var r=function(a){a&&Object.keys(a).forEach(function(l){return n[l]=a[l]})},i=0,o=t;i<o.length;i++){var s=o[i];r(s)}return n});var Qe=function(){return Qe=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n},Qe.apply(this,arguments)},B8=function(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;for(var r=Array(n),i=0,t=0;t<e;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r},bx=300;function xx(n,t){var e={config:Qe(Qe({},Nt),Be.defaultConfig),l10n:k6};e.parseDate=w5({config:e.config,l10n:e.l10n}),e._handlers=[],e.pluginElements=[],e.loadedPlugins=[],e._bind=v,e._setHoursFromDate=h,e._positionCalendar=$e,e.changeMonth=O,e.changeYear=ee,e.clear=k,e.close=V,e.onMouseOver=Y,e._createElement=Ee,e.createDay=w,e.destroy=U,e.isEnabled=Z,e.jumpToDate=g,e.updateValue=$1,e.open=re,e.redraw=We,e.set=o1,e.setDate=Ye,e.toggle=Vr;function r(){e.utils={getDaysInMonth:function(S,P){return S===void 0&&(S=e.currentMonth),P===void 0&&(P=e.currentYear),S===1&&(P%4===0&&P%100!==0||P%400===0)?29:e.l10n.daysInMonth[S]}}}function i(){e.element=e.input=n,e.isOpen=!1,he(),be(),Wt(),mt(),r(),e.isMobile||E(),x(),(e.selectedDates.length||e.config.noCalendar)&&(e.config.enableTime&&h(e.config.noCalendar?e.latestSelectedDateObj:void 0),$1(!1)),a();var S=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!e.isMobile&&S&&$e(),_e("onReady")}function o(){var S;return((S=e.calendarContainer)===null||S===void 0?void 0:S.getRootNode()).activeElement||document.activeElement}function s(S){return S.bind(e)}function a(){var S=e.config;S.weekNumbers===!1&&S.showMonths===1||S.noCalendar!==!0&&window.requestAnimationFrame(function(){if(e.calendarContainer!==void 0&&(e.calendarContainer.style.visibility="hidden",e.calendarContainer.style.display="block"),e.daysContainer!==void 0){var P=(e.days.offsetWidth+1)*S.showMonths;e.daysContainer.style.width=P+"px",e.calendarContainer.style.width=P+(e.weekWrapper!==void 0?e.weekWrapper.offsetWidth:0)+"px",e.calendarContainer.style.removeProperty("visibility"),e.calendarContainer.style.removeProperty("display")}})}function l(S){if(e.selectedDates.length===0){var P=e.config.minDate===void 0||d1(new Date,e.config.minDate)>=0?new Date:new Date(e.config.minDate.getTime()),j=C5(e.config);P.setHours(j.hours,j.minutes,j.seconds,P.getMilliseconds()),e.selectedDates=[P],e.latestSelectedDateObj=P}S!==void 0&&S.type!=="blur"&&Q(S);var J=e._input.value;f(),$1(),e._input.value!==J&&e._debouncedChange()}function u(S,P){return S%12+12*b1(P===e.l10n.amPM[1])}function d(S){switch(S%24){case 0:case 12:return 12;default:return S%12}}function f(){if(!(e.hourElement===void 0||e.minuteElement===void 0)){var S=(parseInt(e.hourElement.value.slice(-2),10)||0)%24,P=(parseInt(e.minuteElement.value,10)||0)%60,j=e.secondElement!==void 0?(parseInt(e.secondElement.value,10)||0)%60:0;e.amPM!==void 0&&(S=u(S,e.amPM.textContent));var J=e.config.minTime!==void 0||e.config.minDate&&e.minDateHasTime&&e.latestSelectedDateObj&&d1(e.latestSelectedDateObj,e.config.minDate,!0)===0,ne=e.config.maxTime!==void 0||e.config.maxDate&&e.maxDateHasTime&&e.latestSelectedDateObj&&d1(e.latestSelectedDateObj,e.config.maxDate,!0)===0;if(e.config.maxTime!==void 0&&e.config.minTime!==void 0&&e.config.minTime>e.config.maxTime){var se=S5(e.config.minTime.getHours(),e.config.minTime.getMinutes(),e.config.minTime.getSeconds()),me=S5(e.config.maxTime.getHours(),e.config.maxTime.getMinutes(),e.config.maxTime.getSeconds()),le=S5(S,P,j);if(le>me&&le<se){var ge=gx(se);S=ge[0],P=ge[1],j=ge[2]}}else{if(ne){var ie=e.config.maxTime!==void 0?e.config.maxTime:e.config.maxDate;S=Math.min(S,ie.getHours()),S===ie.getHours()&&(P=Math.min(P,ie.getMinutes())),P===ie.getMinutes()&&(j=Math.min(j,ie.getSeconds()))}if(J){var ve=e.config.minTime!==void 0?e.config.minTime:e.config.minDate;S=Math.max(S,ve.getHours()),S===ve.getHours()&&P<ve.getMinutes()&&(P=ve.getMinutes()),P===ve.getMinutes()&&(j=Math.max(j,ve.getSeconds()))}}p(S,P,j)}}function h(S){var P=S||e.latestSelectedDateObj;P&&P instanceof Date&&p(P.getHours(),P.getMinutes(),P.getSeconds())}function p(S,P,j){e.latestSelectedDateObj!==void 0&&e.latestSelectedDateObj.setHours(S%24,P,j||0,0),!(!e.hourElement||!e.minuteElement||e.isMobile)&&(e.hourElement.value=l1(e.config.time_24hr?S:(12+S)%12+12*b1(S%12===0)),e.minuteElement.value=l1(P),e.amPM!==void 0&&(e.amPM.textContent=e.l10n.amPM[b1(S>=12)]),e.secondElement!==void 0&&(e.secondElement.value=l1(j)))}function m(S){var P=u1(S),j=parseInt(P.value)+(S.delta||0);(j/1e3>1||S.key==="Enter"&&!/[^\d]/.test(j.toString()))&&ee(j)}function v(S,P,j,J){if(P instanceof Array)return P.forEach(function(ne){return v(S,ne,j,J)});if(S instanceof Array)return S.forEach(function(ne){return v(ne,P,j,J)});S.addEventListener(P,j,J),e._handlers.push({remove:function(){return S.removeEventListener(P,j,J)}})}function y(){_e("onChange")}function x(){if(e.config.wrap&&["open","close","toggle","clear"].forEach(function(j){Array.prototype.forEach.call(e.element.querySelectorAll("[data-"+j+"]"),function(J){return v(J,"click",e[j])})}),e.isMobile){Hr();return}var S=F8(fe,50);if(e._debouncedChange=F8(y,bx),e.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&v(e.daysContainer,"mouseover",function(j){e.config.mode==="range"&&Y(u1(j))}),v(e._input,"keydown",te),e.calendarContainer!==void 0&&v(e.calendarContainer,"keydown",te),!e.config.inline&&!e.config.static&&v(window,"resize",S),window.ontouchstart!==void 0?v(window.document,"touchstart",R):v(window.document,"mousedown",R),v(window.document,"focus",R,{capture:!0}),e.config.clickOpens===!0&&(v(e._input,"focus",e.open),v(e._input,"click",e.open)),e.daysContainer!==void 0&&(v(e.monthNav,"click",o0),v(e.monthNav,["keyup","increment"],m),v(e.daysContainer,"click",z1)),e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0){var P=function(j){return u1(j).select()};v(e.timeContainer,["increment"],l),v(e.timeContainer,"blur",l,{capture:!0}),v(e.timeContainer,"click",M),v([e.hourElement,e.minuteElement],["focus","click"],P),e.secondElement!==void 0&&v(e.secondElement,"focus",function(){return e.secondElement&&e.secondElement.select()}),e.amPM!==void 0&&v(e.amPM,"click",function(j){l(j)})}e.config.allowInput&&v(e._input,"blur",oe)}function g(S,P){var j=S!==void 0?e.parseDate(S):e.latestSelectedDateObj||(e.config.minDate&&e.config.minDate>e.now?e.config.minDate:e.config.maxDate&&e.config.maxDate<e.now?e.config.maxDate:e.now),J=e.currentYear,ne=e.currentMonth;try{j!==void 0&&(e.currentYear=j.getFullYear(),e.currentMonth=j.getMonth())}catch(se){se.message="Invalid date supplied: "+j,e.config.errorHandler(se)}P&&e.currentYear!==J&&(_e("onYearChange"),F()),P&&(e.currentYear!==J||e.currentMonth!==ne)&&_e("onMonthChange"),e.redraw()}function M(S){var P=u1(S);~P.className.indexOf("arrow")&&b(S,P.classList.contains("arrowUp")?1:-1)}function b(S,P,j){var J=S&&u1(S),ne=j||J&&J.parentNode&&J.parentNode.firstChild,se=Yt("increment");se.delta=P,ne&&ne.dispatchEvent(se)}function E(){var S=window.document.createDocumentFragment();if(e.calendarContainer=Ee("div","flatpickr-calendar"),e.calendarContainer.tabIndex=-1,!e.config.noCalendar){if(S.appendChild(_()),e.innerContainer=Ee("div","flatpickr-innerContainer"),e.config.weekNumbers){var P=T(),j=P.weekWrapper,J=P.weekNumbers;e.innerContainer.appendChild(j),e.weekNumbers=J,e.weekWrapper=j}e.rContainer=Ee("div","flatpickr-rContainer"),e.rContainer.appendChild(W()),e.daysContainer||(e.daysContainer=Ee("div","flatpickr-days"),e.daysContainer.tabIndex=-1),L(),e.rContainer.appendChild(e.daysContainer),e.innerContainer.appendChild(e.rContainer),S.appendChild(e.innerContainer)}e.config.enableTime&&S.appendChild(B()),i1(e.calendarContainer,"rangeMode",e.config.mode==="range"),i1(e.calendarContainer,"animate",e.config.animate===!0),i1(e.calendarContainer,"multiMonth",e.config.showMonths>1),e.calendarContainer.appendChild(S);var ne=e.config.appendTo!==void 0&&e.config.appendTo.nodeType!==void 0;if((e.config.inline||e.config.static)&&(e.calendarContainer.classList.add(e.config.inline?"inline":"static"),e.config.inline&&(!ne&&e.element.parentNode?e.element.parentNode.insertBefore(e.calendarContainer,e._input.nextSibling):e.config.appendTo!==void 0&&e.config.appendTo.appendChild(e.calendarContainer)),e.config.static)){var se=Ee("div","flatpickr-wrapper");e.element.parentNode&&e.element.parentNode.insertBefore(se,e.element),se.appendChild(e.element),e.altInput&&se.appendChild(e.altInput),se.appendChild(e.calendarContainer)}!e.config.static&&!e.config.inline&&(e.config.appendTo!==void 0?e.config.appendTo:window.document.body).appendChild(e.calendarContainer)}function w(S,P,j,J){var ne=Z(P,!0),se=Ee("span",S,P.getDate().toString());return se.dateObj=P,se.$i=J,se.setAttribute("aria-label",e.formatDate(P,e.config.ariaDateFormat)),S.indexOf("hidden")===-1&&d1(P,e.now)===0&&(e.todayDateElem=se,se.classList.add("today"),se.setAttribute("aria-current","date")),ne?(se.tabIndex=-1,Rt(P)&&(se.classList.add("selected"),e.selectedDateElem=se,e.config.mode==="range"&&(i1(se,"startRange",e.selectedDates[0]&&d1(P,e.selectedDates[0],!0)===0),i1(se,"endRange",e.selectedDates[1]&&d1(P,e.selectedDates[1],!0)===0),S==="nextMonthDay"&&se.classList.add("inRange")))):se.classList.add("flatpickr-disabled"),e.config.mode==="range"&&i0(P)&&!Rt(P)&&se.classList.add("inRange"),e.weekNumbers&&e.config.showMonths===1&&S!=="prevMonthDay"&&J%7===6&&e.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+e.config.getWeek(P)+"</span>"),_e("onDayCreate",se),se}function z(S){S.focus(),e.config.mode==="range"&&Y(S)}function A(S){for(var P=S>0?0:e.config.showMonths-1,j=S>0?e.config.showMonths:-1,J=P;J!=j;J+=S)for(var ne=e.daysContainer.children[J],se=S>0?0:ne.children.length-1,me=S>0?ne.children.length:-1,le=se;le!=me;le+=S){var ge=ne.children[le];if(ge.className.indexOf("hidden")===-1&&Z(ge.dateObj))return ge}}function C(S,P){for(var j=S.className.indexOf("Month")===-1?S.dateObj.getMonth():e.currentMonth,J=P>0?e.config.showMonths:-1,ne=P>0?1:-1,se=j-e.currentMonth;se!=J;se+=ne)for(var me=e.daysContainer.children[se],le=j-e.currentMonth===se?S.$i+P:P<0?me.children.length-1:0,ge=me.children.length,ie=le;ie>=0&&ie<ge&&ie!=(P>0?ge:-1);ie+=ne){var ve=me.children[ie];if(ve.className.indexOf("hidden")===-1&&Z(ve.dateObj)&&Math.abs(S.$i-ie)>=Math.abs(P))return z(ve)}e.changeMonth(ne),H(A(ne),0)}function H(S,P){var j=o(),J=D(j||document.body),ne=S!==void 0?S:J?j:e.selectedDateElem!==void 0&&D(e.selectedDateElem)?e.selectedDateElem:e.todayDateElem!==void 0&&D(e.todayDateElem)?e.todayDateElem:A(P>0?1:-1);ne===void 0?e._input.focus():J?C(ne,P):z(ne)}function I(S,P){for(var j=(new Date(S,P,1).getDay()-e.l10n.firstDayOfWeek+7)%7,J=e.utils.getDaysInMonth((P-1+12)%12,S),ne=e.utils.getDaysInMonth(P,S),se=window.document.createDocumentFragment(),me=e.config.showMonths>1,le=me?"prevMonthDay hidden":"prevMonthDay",ge=me?"nextMonthDay hidden":"nextMonthDay",ie=J+1-j,ve=0;ie<=J;ie++,ve++)se.appendChild(w("flatpickr-day "+le,new Date(S,P-1,ie),ie,ve));for(ie=1;ie<=ne;ie++,ve++)se.appendChild(w("flatpickr-day",new Date(S,P,ie),ie,ve));for(var ye=ne+1;ye<=42-j&&(e.config.showMonths===1||ve%7!==0);ye++,ve++)se.appendChild(w("flatpickr-day "+ge,new Date(S,P+1,ye%ne),ye,ve));var A1=Ee("div","dayContainer");return A1.appendChild(se),A1}function L(){if(e.daysContainer!==void 0){br(e.daysContainer),e.weekNumbers&&br(e.weekNumbers);for(var S=document.createDocumentFragment(),P=0;P<e.config.showMonths;P++){var j=new Date(e.currentYear,e.currentMonth,1);j.setMonth(e.currentMonth+P),S.appendChild(I(j.getFullYear(),j.getMonth()))}e.daysContainer.appendChild(S),e.days=e.daysContainer.firstChild,e.config.mode==="range"&&e.selectedDates.length===1&&Y()}}function F(){if(!(e.config.showMonths>1||e.config.monthSelectorType!=="dropdown")){var S=function(J){return e.config.minDate!==void 0&&e.currentYear===e.config.minDate.getFullYear()&&J<e.config.minDate.getMonth()?!1:!(e.config.maxDate!==void 0&&e.currentYear===e.config.maxDate.getFullYear()&&J>e.config.maxDate.getMonth())};e.monthsDropdownContainer.tabIndex=-1,e.monthsDropdownContainer.innerHTML="";for(var P=0;P<12;P++)if(S(P)){var j=Ee("option","flatpickr-monthDropdown-month");j.value=new Date(e.currentYear,P).getMonth().toString(),j.textContent=Mr(P,e.config.shorthandCurrentMonth,e.l10n),j.tabIndex=-1,e.currentMonth===P&&(j.selected=!0),e.monthsDropdownContainer.appendChild(j)}}}function $(){var S=Ee("div","flatpickr-month"),P=window.document.createDocumentFragment(),j;e.config.showMonths>1||e.config.monthSelectorType==="static"?j=Ee("span","cur-month"):(e.monthsDropdownContainer=Ee("select","flatpickr-monthDropdown-months"),e.monthsDropdownContainer.setAttribute("aria-label",e.l10n.monthAriaLabel),v(e.monthsDropdownContainer,"change",function(me){var le=u1(me),ge=parseInt(le.value,10);e.changeMonth(ge-e.currentMonth),_e("onMonthChange")}),F(),j=e.monthsDropdownContainer);var J=xr("cur-year",{tabindex:"-1"}),ne=J.getElementsByTagName("input")[0];ne.setAttribute("aria-label",e.l10n.yearAriaLabel),e.config.minDate&&ne.setAttribute("min",e.config.minDate.getFullYear().toString()),e.config.maxDate&&(ne.setAttribute("max",e.config.maxDate.getFullYear().toString()),ne.disabled=!!e.config.minDate&&e.config.minDate.getFullYear()===e.config.maxDate.getFullYear());var se=Ee("div","flatpickr-current-month");return se.appendChild(j),se.appendChild(J),P.appendChild(se),S.appendChild(P),{container:S,yearElement:ne,monthElement:j}}function X(){br(e.monthNav),e.monthNav.appendChild(e.prevMonthNav),e.config.showMonths&&(e.yearElements=[],e.monthElements=[]);for(var S=e.config.showMonths;S--;){var P=$();e.yearElements.push(P.yearElement),e.monthElements.push(P.monthElement),e.monthNav.appendChild(P.container)}e.monthNav.appendChild(e.nextMonthNav)}function _(){return e.monthNav=Ee("div","flatpickr-months"),e.yearElements=[],e.monthElements=[],e.prevMonthNav=Ee("span","flatpickr-prev-month"),e.prevMonthNav.innerHTML=e.config.prevArrow,e.nextMonthNav=Ee("span","flatpickr-next-month"),e.nextMonthNav.innerHTML=e.config.nextArrow,X(),Object.defineProperty(e,"_hidePrevMonthArrow",{get:function(){return e.__hidePrevMonthArrow},set:function(S){e.__hidePrevMonthArrow!==S&&(i1(e.prevMonthNav,"flatpickr-disabled",S),e.__hidePrevMonthArrow=S)}}),Object.defineProperty(e,"_hideNextMonthArrow",{get:function(){return e.__hideNextMonthArrow},set:function(S){e.__hideNextMonthArrow!==S&&(i1(e.nextMonthNav,"flatpickr-disabled",S),e.__hideNextMonthArrow=S)}}),e.currentYearElement=e.yearElements[0],Gt(),e.monthNav}function B(){e.calendarContainer.classList.add("hasTime"),e.config.noCalendar&&e.calendarContainer.classList.add("noCalendar");var S=C5(e.config);e.timeContainer=Ee("div","flatpickr-time"),e.timeContainer.tabIndex=-1;var P=Ee("span","flatpickr-time-separator",":"),j=xr("flatpickr-hour",{"aria-label":e.l10n.hourAriaLabel});e.hourElement=j.getElementsByTagName("input")[0];var J=xr("flatpickr-minute",{"aria-label":e.l10n.minuteAriaLabel});if(e.minuteElement=J.getElementsByTagName("input")[0],e.hourElement.tabIndex=e.minuteElement.tabIndex=-1,e.hourElement.value=l1(e.latestSelectedDateObj?e.latestSelectedDateObj.getHours():e.config.time_24hr?S.hours:d(S.hours)),e.minuteElement.value=l1(e.latestSelectedDateObj?e.latestSelectedDateObj.getMinutes():S.minutes),e.hourElement.setAttribute("step",e.config.hourIncrement.toString()),e.minuteElement.setAttribute("step",e.config.minuteIncrement.toString()),e.hourElement.setAttribute("min",e.config.time_24hr?"0":"1"),e.hourElement.setAttribute("max",e.config.time_24hr?"23":"12"),e.hourElement.setAttribute("maxlength","2"),e.minuteElement.setAttribute("min","0"),e.minuteElement.setAttribute("max","59"),e.minuteElement.setAttribute("maxlength","2"),e.timeContainer.appendChild(j),e.timeContainer.appendChild(P),e.timeContainer.appendChild(J),e.config.time_24hr&&e.timeContainer.classList.add("time24hr"),e.config.enableSeconds){e.timeContainer.classList.add("hasSeconds");var ne=xr("flatpickr-second");e.secondElement=ne.getElementsByTagName("input")[0],e.secondElement.value=l1(e.latestSelectedDateObj?e.latestSelectedDateObj.getSeconds():S.seconds),e.secondElement.setAttribute("step",e.minuteElement.getAttribute("step")),e.secondElement.setAttribute("min","0"),e.secondElement.setAttribute("max","59"),e.secondElement.setAttribute("maxlength","2"),e.timeContainer.appendChild(Ee("span","flatpickr-time-separator",":")),e.timeContainer.appendChild(ne)}return e.config.time_24hr||(e.amPM=Ee("span","flatpickr-am-pm",e.l10n.amPM[b1((e.latestSelectedDateObj?e.hourElement.value:e.config.defaultHour)>11)]),e.amPM.title=e.l10n.toggleTitle,e.amPM.tabIndex=-1,e.timeContainer.appendChild(e.amPM)),e.timeContainer}function W(){e.weekdayContainer?br(e.weekdayContainer):e.weekdayContainer=Ee("div","flatpickr-weekdays");for(var S=e.config.showMonths;S--;){var P=Ee("div","flatpickr-weekdaycontainer");e.weekdayContainer.appendChild(P)}return N(),e.weekdayContainer}function N(){if(e.weekdayContainer){var S=e.l10n.firstDayOfWeek,P=B8(e.l10n.weekdays.shorthand);S>0&&S<P.length&&(P=B8(P.splice(S,P.length),P.splice(0,S)));for(var j=e.config.showMonths;j--;)e.weekdayContainer.children[j].innerHTML=`
|
|
98
98
|
<span class='flatpickr-weekday'>
|
|
99
99
|
`+P.join("</span><span class='flatpickr-weekday'>")+`
|
|
100
100
|
</span>
|