@fluidattacks/design 3.10.5 → 3.10.6-pr

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/dist/components/@core/index.js +1 -1
  2. package/dist/components/accordion/accordion-content/index.js +1 -1
  3. package/dist/components/accordion/index.js +1 -1
  4. package/dist/components/alert/index.js +1 -1
  5. package/dist/components/avatar/index.js +1 -1
  6. package/dist/components/button/index.js +1 -1
  7. package/dist/components/card/card-header/index.js +1 -1
  8. package/dist/components/card/card-with-image/index.js +1 -1
  9. package/dist/components/card/card-with-input/index.js +1 -1
  10. package/dist/components/card/card-with-options/index.js +1 -1
  11. package/dist/components/card/card-with-selector/index.js +1 -1
  12. package/dist/components/card/card-with-switch/index.js +1 -1
  13. package/dist/components/card/index.js +1 -1
  14. package/dist/components/carousel/index.js +1 -1
  15. package/dist/components/checkbox/index.js +1 -1
  16. package/dist/components/cloud-image/index.js +1 -1
  17. package/dist/components/code-snippet/index.js +1 -1
  18. package/dist/components/code-snippet/location-code/index.js +1 -1
  19. package/dist/components/colors/index.js +1 -1
  20. package/dist/components/confirm-dialog/index.js +1 -1
  21. package/dist/components/container/index.js +1 -1
  22. package/dist/components/content-card/category-tag/index.js +1 -1
  23. package/dist/components/content-card/event-date/index.js +1 -1
  24. package/dist/components/content-card/index.js +1 -1
  25. package/dist/components/content-card-carousel/index.js +1 -1
  26. package/dist/components/content-card-carousel/scroll-buttons/index.js +1 -1
  27. package/dist/components/divider/index.js +1 -1
  28. package/dist/components/empty-state/empty-button/index.js +1 -1
  29. package/dist/components/empty-state/index.js +1 -1
  30. package/dist/components/file-preview/index.js +1 -1
  31. package/dist/components/form/index.js +1 -1
  32. package/dist/components/form/inner-form/index.js +1 -1
  33. package/dist/components/grid-container/index.js +1 -1
  34. package/dist/components/group-selector/index.js +1 -1
  35. package/dist/components/group-selector/option-container/index.js +1 -1
  36. package/dist/components/icon/index.js +1 -1
  37. package/dist/components/icon-button/index.js +1 -1
  38. package/dist/components/indicator-card/index.js +1 -1
  39. package/dist/components/info-sidebar/index.js +1 -1
  40. package/dist/components/inputs/fields/combobox/field/index.js +1 -1
  41. package/dist/components/inputs/fields/combobox/index.js +1 -1
  42. package/dist/components/inputs/fields/combobox/option/index.js +1 -1
  43. package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
  44. package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
  45. package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
  46. package/dist/components/inputs/fields/date/calendar/index.js +1 -1
  47. package/dist/components/inputs/fields/date/index.js +1 -1
  48. package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
  49. package/dist/components/inputs/fields/date-range/index.js +1 -1
  50. package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
  51. package/dist/components/inputs/fields/date-time/index.js +1 -1
  52. package/dist/components/inputs/fields/editable/index.js +1 -1
  53. package/dist/components/inputs/fields/input/index.js +1 -1
  54. package/dist/components/inputs/fields/input-file/index.js +1 -1
  55. package/dist/components/inputs/fields/input-tags/field/index.js +1 -1
  56. package/dist/components/inputs/fields/input-tags/index.js +1 -1
  57. package/dist/components/inputs/fields/number/index.js +1 -1
  58. package/dist/components/inputs/fields/number-range/index.js +1 -1
  59. package/dist/components/inputs/fields/phone/index.js +1 -1
  60. package/dist/components/inputs/fields/text-area/index.js +1 -1
  61. package/dist/components/inputs/index.js +1 -1
  62. package/dist/components/inputs/label/index.js +1 -1
  63. package/dist/components/inputs/outline-container/index.js +1 -1
  64. package/dist/components/inputs/utils/action-button/index.js +1 -1
  65. package/dist/components/inputs/utils/calendar-button/index.js +1 -1
  66. package/dist/components/inputs/utils/date-selector/index.js +1 -1
  67. package/dist/components/inputs/utils/date-time-field/index.js +1 -1
  68. package/dist/components/inputs/utils/dialog/index.js +1 -1
  69. package/dist/components/inputs/utils/number-field/index.js +1 -1
  70. package/dist/components/inputs/utils/popover/index.js +1 -1
  71. package/dist/components/interactive-card/icon/index.js +1 -1
  72. package/dist/components/interactive-card/index.js +1 -1
  73. package/dist/components/language-selector/index.js +1 -1
  74. package/dist/components/language-selector/item-list/index.js +1 -1
  75. package/dist/components/layout/categories/buttons/index.js +1 -1
  76. package/dist/components/layout/categories/column/index.js +1 -1
  77. package/dist/components/layout/categories/gap/index.js +1 -1
  78. package/dist/components/layout/categories/row/index.js +1 -1
  79. package/dist/components/layout/index.js +1 -1
  80. package/dist/components/link/index.js +1 -1
  81. package/dist/components/list-item/index.js +1 -1
  82. package/dist/components/little-flag/index.js +1 -1
  83. package/dist/components/loading/index.js +1 -1
  84. package/dist/components/logo/index.js +1 -1
  85. package/dist/components/logo-carousel/index.js +1 -1
  86. package/dist/components/menu/index.js +1 -1
  87. package/dist/components/message-banner/index.js +1 -1
  88. package/dist/components/modal/columns-modal/index.js +1 -1
  89. package/dist/components/modal/columns-modal/preview-panel/index.js +1 -1
  90. package/dist/components/modal/columns-modal/search-panel/index.js +1 -1
  91. package/dist/components/modal/filters-modal/filter-control/index.d.ts +1 -1
  92. package/dist/components/modal/filters-modal/filter-control/index.js +1 -1
  93. package/dist/components/modal/filters-modal/filter-control/types.d.ts +2 -1
  94. package/dist/components/modal/filters-modal/filter-form/form-content/index.d.ts +2 -0
  95. package/dist/components/modal/filters-modal/filter-form/form-content/index.js +1 -0
  96. package/dist/components/modal/filters-modal/filter-form/form-content/types.d.ts +17 -0
  97. package/dist/components/modal/filters-modal/filter-form/hooks/index.d.ts +4 -0
  98. package/dist/components/modal/filters-modal/filter-form/hooks/index.js +1 -0
  99. package/dist/components/modal/filters-modal/filter-form/hooks/types.d.ts +21 -0
  100. package/dist/components/modal/filters-modal/filter-form/index.js +1 -1
  101. package/dist/components/modal/filters-modal/filter-form/types.d.ts +2 -2
  102. package/dist/components/modal/filters-modal/filter-form/utils.d.ts +6 -0
  103. package/dist/components/modal/filters-modal/filters-list/index.js +1 -1
  104. package/dist/components/modal/filters-modal/index.js +1 -1
  105. package/dist/components/modal/filters-modal/single-column-filters/index.js +1 -1
  106. package/dist/components/modal/filters-modal/two-columns-filters/index.js +1 -1
  107. package/dist/components/modal/filters-modal/types.d.ts +3 -3
  108. package/dist/components/modal/filters-modal/utils.d.ts +2 -1
  109. package/dist/components/modal/footer/index.js +1 -1
  110. package/dist/components/modal/header/index.js +1 -1
  111. package/dist/components/modal/index.js +1 -1
  112. package/dist/components/modal/modal-confirm/index.js +1 -1
  113. package/dist/components/modal/styles.d.ts +3 -1
  114. package/dist/components/notification/index.js +1 -1
  115. package/dist/components/notification-sign/index.js +1 -1
  116. package/dist/components/number-input/index.js +1 -1
  117. package/dist/components/oauth-selector/index.js +1 -1
  118. package/dist/components/oauth-selector/option-container/index.js +1 -1
  119. package/dist/components/plan-card/index.js +1 -1
  120. package/dist/components/plan-card/recommended-tag/index.js +1 -1
  121. package/dist/components/pop-up/description/index.js +1 -1
  122. package/dist/components/pop-up/index.js +1 -1
  123. package/dist/components/premium-feature/index.js +1 -1
  124. package/dist/components/priority-score/index.js +1 -1
  125. package/dist/components/progress/index.js +1 -1
  126. package/dist/components/progress-bar/index.js +1 -1
  127. package/dist/components/radio-button/index.js +1 -1
  128. package/dist/components/scroll-button/index.js +1 -1
  129. package/dist/components/search/index.js +1 -1
  130. package/dist/components/search-bar/index.js +1 -1
  131. package/dist/components/search-bar/item-searching/index.js +1 -1
  132. package/dist/components/severity-badge/index.js +1 -1
  133. package/dist/components/severity-overview/badge/index.js +1 -1
  134. package/dist/components/severity-overview/index.js +1 -1
  135. package/dist/components/show-on-hover/index.js +1 -1
  136. package/dist/components/slide-out-menu/index.js +1 -1
  137. package/dist/components/slide-out-menu/menu-item/index.js +1 -1
  138. package/dist/components/slider/index.js +1 -1
  139. package/dist/components/slider/thumb/index.js +1 -1
  140. package/dist/components/step-lapse/index.js +1 -1
  141. package/dist/components/table-button/index.js +1 -1
  142. package/dist/components/tabs/fixed-tabs/index.js +1 -1
  143. package/dist/components/tabs/index.js +1 -1
  144. package/dist/components/tabs/tab/index.js +1 -1
  145. package/dist/components/tag/index.js +1 -1
  146. package/dist/components/timeline/card/index.js +1 -1
  147. package/dist/components/timeline/index.js +1 -1
  148. package/dist/components/toggle/index.js +1 -1
  149. package/dist/components/toggle-buttons/index.js +1 -1
  150. package/dist/components/tooltip/index.js +1 -1
  151. package/dist/components/tour/index.js +1 -1
  152. package/dist/components/typography/heading/index.js +1 -1
  153. package/dist/components/typography/index.js +1 -1
  154. package/dist/components/typography/span/index.js +1 -1
  155. package/dist/components/typography/text/index.js +1 -1
  156. package/dist/components/web-form/index.js +1 -1
  157. package/dist/{components-CI8dNjRu.mjs → components-BYgK_TJv.mjs} +1883 -1764
  158. package/dist/{components-BQlgJi5F.js → components-Bn-1TGWY.js} +199 -198
  159. package/dist/hooks/index.js +1 -1
  160. package/dist/index.js +1 -1
  161. package/dist/{vendor-Sf9Y3XyV.mjs → vendor-DKL43FHN.mjs} +1 -1
  162. package/dist/{vendor-BkOGcq-r.js → vendor-DX1twqiV.js} +1 -1
  163. package/package.json +4 -1
@@ -81,7 +81,7 @@ __p += '`),ot&&($e+=`' +
81
81
  function print() { __p += __j.call(arguments, '') }
82
82
  `:`;
83
83
  `)+$e+`return __p
84
- }`;var Qe=Kx(function(){return lt(B,Be+"return "+$e).apply(n,q)});if(Qe.source=$e,Nm(Qe))throw Qe;return Qe}function cN(s){return dt(s).toLowerCase()}function fN(s){return dt(s).toUpperCase()}function dN(s,c,m){if(s=dt(s),s&&(m||c===n))return J3(s);if(!s||!(c=tr(c)))return s;var x=kr(s),P=kr(c),B=X3(x,P),q=Q3(x,P)+1;return Ea(x,B,q).join("")}function hN(s,c,m){if(s=dt(s),s&&(m||c===n))return s.slice(0,t$(s)+1);if(!s||!(c=tr(c)))return s;var x=kr(s),P=Q3(x,kr(c))+1;return Ea(x,0,P).join("")}function pN(s,c,m){if(s=dt(s),s&&(m||c===n))return s.replace(no,"");if(!s||!(c=tr(c)))return s;var x=kr(s),P=X3(x,kr(c));return Ea(x,P).join("")}function mN(s,c){var m=j,x=O;if(kt(c)){var P="separator"in c?c.separator:P;m="length"in c?Ze(c.length):m,x="omission"in c?tr(c.omission):x}s=dt(s);var B=s.length;if(gs(s)){var q=kr(s);B=q.length}if(m>=B)return s;var Y=m-ys(x);if(Y<1)return x;var te=q?Ea(q,0,Y).join(""):s.slice(0,Y);if(P===n)return te+x;if(q&&(Y+=te.length-Y),jm(P)){if(s.slice(Y).search(P)){var de,he=te;for(P.global||(P=rm(P.source,dt(Fr.exec(P))+"g")),P.lastIndex=0;de=P.exec(he);)var $e=de.index;te=te.slice(0,$e===n?Y:$e)}}else if(s.indexOf(tr(P),Y)!=Y){var Pe=te.lastIndexOf(P);Pe>-1&&(te=te.slice(0,Pe))}return te+x}function gN(s){return s=dt(s),s&&Qa.test(s)?s.replace(Mi,q8):s}var yN=Cs(function(s,c,m){return s+(m?" ":"")+c.toUpperCase()}),zm=U$("toUpperCase");function jx(s,c,m){return s=dt(s),c=m?n:c,c===n?N8(s)?G8(s):R8(s):s.match(c)||[]}var Kx=tt(function(s,c){try{return Qn(s,n,c)}catch(m){return Nm(m)?m:new He(m)}}),vN=Ni(function(s,c){return lr(c,function(m){m=fi(m),Li(s,m,Lm(s[m],s))}),s});function bN(s){var c=s==null?0:s.length,m=je();return s=c?Ot(s,function(x){if(typeof x[1]!="function")throw new cr(o);return[m(x[0]),x[1]]}):[],tt(function(x){for(var P=-1;++P<c;){var B=s[P];if(Qn(B[0],this,x))return Qn(B[1],this,x)}})}function $N(s){return qk(dr(s,h))}function qm(s){return function(){return s}}function xN(s,c){return s==null||s!==s?c:s}var wN=q$(),DN=q$(!0);function Kn(s){return s}function Wm(s){return x$(typeof s=="function"?s:dr(s,h))}function CN(s){return D$(dr(s,h))}function EN(s,c){return C$(s,dr(c,h))}var SN=tt(function(s,c){return function(m){return $l(m,s,c)}}),TN=tt(function(s,c){return function(m){return $l(s,m,c)}});function Hm(s,c,m){var x=sn(c),P=Bf(c,x);m==null&&!(kt(c)&&(P.length||!x.length))&&(m=c,c=s,s=this,P=Bf(c,sn(c)));var B=!(kt(m)&&"chain"in m)||!!m.chain,q=Ki(s);return lr(P,function(Y){var te=c[Y];s[Y]=te,q&&(s.prototype[Y]=function(){var de=this.__chain__;if(B||de){var he=s(this.__wrapped__),$e=he.__actions__=Vn(this.__actions__);return $e.push({func:te,args:arguments,thisArg:s}),he.__chain__=de,he}return te.apply(s,ba([this.value()],arguments))})}),s}function AN(){return Jt._===this&&(Jt._=ek),this}function Gm(){}function PN(s){return s=Ze(s),tt(function(c){return E$(c,s)})}var _N=Em(Ot),RN=Em(W3),ON=Em(Zp);function Ux(s){return Om(s)?Jp(fi(s)):uI(s)}function MN(s){return function(c){return s==null?n:po(s,c)}}var FN=H$(),kN=H$(!0);function Ym(){return[]}function Zm(){return!1}function IN(){return{}}function BN(){return""}function LN(){return!0}function VN(s,c){if(s=Ze(s),s<1||s>_)return[];var m=N,x=bn(s,N);c=je(c),s-=N;for(var P=em(x,c);++m<s;)c(m);return P}function NN(s){return Ge(s)?Ot(s,fi):nr(s)?[s]:Vn(lx(dt(s)))}function jN(s){var c=++X8;return dt(s)+c}var KN=Uf(function(s,c){return s+c},0),UN=Sm("ceil"),zN=Uf(function(s,c){return s/c},1),qN=Sm("floor");function WN(s){return s&&s.length?If(s,Kn,fm):n}function HN(s,c){return s&&s.length?If(s,je(c,2),fm):n}function GN(s){return Y3(s,Kn)}function YN(s,c){return Y3(s,je(c,2))}function ZN(s){return s&&s.length?If(s,Kn,mm):n}function JN(s,c){return s&&s.length?If(s,je(c,2),mm):n}var XN=Uf(function(s,c){return s*c},1),QN=Sm("round"),ej=Uf(function(s,c){return s-c},0);function tj(s){return s&&s.length?Qp(s,Kn):0}function nj(s,c){return s&&s.length?Qp(s,je(c,2)):0}return F.after=CL,F.ary=$x,F.assign=fV,F.assignIn=Fx,F.assignInWith=nd,F.assignWith=dV,F.at=hV,F.before=xx,F.bind=Lm,F.bindAll=vN,F.bindKey=wx,F.castArray=IL,F.chain=yx,F.chunk=qI,F.compact=WI,F.concat=HI,F.cond=bN,F.conforms=$N,F.constant=qm,F.countBy=tL,F.create=pV,F.curry=Dx,F.curryRight=Cx,F.debounce=Ex,F.defaults=mV,F.defaultsDeep=gV,F.defer=EL,F.delay=SL,F.difference=GI,F.differenceBy=YI,F.differenceWith=ZI,F.drop=JI,F.dropRight=XI,F.dropRightWhile=QI,F.dropWhile=eB,F.fill=tB,F.filter=rL,F.flatMap=oL,F.flatMapDeep=sL,F.flatMapDepth=uL,F.flatten=hx,F.flattenDeep=nB,F.flattenDepth=rB,F.flip=TL,F.flow=wN,F.flowRight=DN,F.fromPairs=iB,F.functions=DV,F.functionsIn=CV,F.groupBy=lL,F.initial=oB,F.intersection=sB,F.intersectionBy=uB,F.intersectionWith=lB,F.invert=SV,F.invertBy=TV,F.invokeMap=fL,F.iteratee=Wm,F.keyBy=dL,F.keys=sn,F.keysIn=jn,F.map=Zf,F.mapKeys=PV,F.mapValues=_V,F.matches=CN,F.matchesProperty=EN,F.memoize=Xf,F.merge=RV,F.mergeWith=kx,F.method=SN,F.methodOf=TN,F.mixin=Hm,F.negate=Qf,F.nthArg=PN,F.omit=OV,F.omitBy=MV,F.once=AL,F.orderBy=hL,F.over=_N,F.overArgs=PL,F.overEvery=RN,F.overSome=ON,F.partial=Vm,F.partialRight=Sx,F.partition=pL,F.pick=FV,F.pickBy=Ix,F.property=Ux,F.propertyOf=MN,F.pull=hB,F.pullAll=mx,F.pullAllBy=pB,F.pullAllWith=mB,F.pullAt=gB,F.range=FN,F.rangeRight=kN,F.rearg=_L,F.reject=yL,F.remove=yB,F.rest=RL,F.reverse=Im,F.sampleSize=bL,F.set=IV,F.setWith=BV,F.shuffle=$L,F.slice=vB,F.sortBy=DL,F.sortedUniq=EB,F.sortedUniqBy=SB,F.split=oN,F.spread=OL,F.tail=TB,F.take=AB,F.takeRight=PB,F.takeRightWhile=_B,F.takeWhile=RB,F.tap=WB,F.throttle=ML,F.thru=Yf,F.toArray=Rx,F.toPairs=Bx,F.toPairsIn=Lx,F.toPath=NN,F.toPlainObject=Mx,F.transform=LV,F.unary=FL,F.union=OB,F.unionBy=MB,F.unionWith=FB,F.uniq=kB,F.uniqBy=IB,F.uniqWith=BB,F.unset=VV,F.unzip=Bm,F.unzipWith=gx,F.update=NV,F.updateWith=jV,F.values=Ts,F.valuesIn=KV,F.without=LB,F.words=jx,F.wrap=kL,F.xor=VB,F.xorBy=NB,F.xorWith=jB,F.zip=KB,F.zipObject=UB,F.zipObjectDeep=zB,F.zipWith=qB,F.entries=Bx,F.entriesIn=Lx,F.extend=Fx,F.extendWith=nd,Hm(F,F),F.add=KN,F.attempt=Kx,F.camelCase=WV,F.capitalize=Vx,F.ceil=UN,F.clamp=UV,F.clone=BL,F.cloneDeep=VL,F.cloneDeepWith=NL,F.cloneWith=LL,F.conformsTo=jL,F.deburr=Nx,F.defaultTo=xN,F.divide=zN,F.endsWith=HV,F.eq=Br,F.escape=GV,F.escapeRegExp=YV,F.every=nL,F.find=iL,F.findIndex=fx,F.findKey=yV,F.findLast=aL,F.findLastIndex=dx,F.findLastKey=vV,F.floor=qN,F.forEach=vx,F.forEachRight=bx,F.forIn=bV,F.forInRight=$V,F.forOwn=xV,F.forOwnRight=wV,F.get=Km,F.gt=KL,F.gte=UL,F.has=EV,F.hasIn=Um,F.head=px,F.identity=Kn,F.includes=cL,F.indexOf=aB,F.inRange=zV,F.invoke=AV,F.isArguments=yo,F.isArray=Ge,F.isArrayBuffer=zL,F.isArrayLike=Nn,F.isArrayLikeObject=Kt,F.isBoolean=qL,F.isBuffer=Sa,F.isDate=WL,F.isElement=HL,F.isEmpty=GL,F.isEqual=YL,F.isEqualWith=ZL,F.isError=Nm,F.isFinite=JL,F.isFunction=Ki,F.isInteger=Tx,F.isLength=ed,F.isMap=Ax,F.isMatch=XL,F.isMatchWith=QL,F.isNaN=eV,F.isNative=tV,F.isNil=rV,F.isNull=nV,F.isNumber=Px,F.isObject=kt,F.isObjectLike=jt,F.isPlainObject=Sl,F.isRegExp=jm,F.isSafeInteger=iV,F.isSet=_x,F.isString=td,F.isSymbol=nr,F.isTypedArray=Ss,F.isUndefined=aV,F.isWeakMap=oV,F.isWeakSet=sV,F.join=cB,F.kebabCase=ZV,F.last=pr,F.lastIndexOf=fB,F.lowerCase=JV,F.lowerFirst=XV,F.lt=uV,F.lte=lV,F.max=WN,F.maxBy=HN,F.mean=GN,F.meanBy=YN,F.min=ZN,F.minBy=JN,F.stubArray=Ym,F.stubFalse=Zm,F.stubObject=IN,F.stubString=BN,F.stubTrue=LN,F.multiply=XN,F.nth=dB,F.noConflict=AN,F.noop=Gm,F.now=Jf,F.pad=QV,F.padEnd=eN,F.padStart=tN,F.parseInt=nN,F.random=qV,F.reduce=mL,F.reduceRight=gL,F.repeat=rN,F.replace=iN,F.result=kV,F.round=QN,F.runInContext=ee,F.sample=vL,F.size=xL,F.snakeCase=aN,F.some=wL,F.sortedIndex=bB,F.sortedIndexBy=$B,F.sortedIndexOf=xB,F.sortedLastIndex=wB,F.sortedLastIndexBy=DB,F.sortedLastIndexOf=CB,F.startCase=sN,F.startsWith=uN,F.subtract=ej,F.sum=tj,F.sumBy=nj,F.template=lN,F.times=VN,F.toFinite=Ui,F.toInteger=Ze,F.toLength=Ox,F.toLower=cN,F.toNumber=mr,F.toSafeInteger=cV,F.toString=dt,F.toUpper=fN,F.trim=dN,F.trimEnd=hN,F.trimStart=pN,F.truncate=mN,F.unescape=gN,F.uniqueId=jN,F.upperCase=yN,F.upperFirst=zm,F.each=vx,F.eachRight=bx,F.first=px,Hm(F,function(){var s={};return li(F,function(c,m){yt.call(F.prototype,m)||(s[m]=c)}),s}(),{chain:!1}),F.VERSION=r,lr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){F[s].placeholder=F}),lr(["drop","take"],function(s,c){at.prototype[s]=function(m){m=m===n?1:rn(Ze(m),0);var x=this.__filtered__&&!c?new at(this):this.clone();return x.__filtered__?x.__takeCount__=bn(m,x.__takeCount__):x.__views__.push({size:bn(m,N),type:s+(x.__dir__<0?"Right":"")}),x},at.prototype[s+"Right"]=function(m){return this.reverse()[s](m).reverse()}}),lr(["filter","map","takeWhile"],function(s,c){var m=c+1,x=m==V||m==L;at.prototype[s]=function(P){var B=this.clone();return B.__iteratees__.push({iteratee:je(P,3),type:m}),B.__filtered__=B.__filtered__||x,B}}),lr(["head","last"],function(s,c){var m="take"+(c?"Right":"");at.prototype[s]=function(){return this[m](1).value()[0]}}),lr(["initial","tail"],function(s,c){var m="drop"+(c?"":"Right");at.prototype[s]=function(){return this.__filtered__?new at(this):this[m](1)}}),at.prototype.compact=function(){return this.filter(Kn)},at.prototype.find=function(s){return this.filter(s).head()},at.prototype.findLast=function(s){return this.reverse().find(s)},at.prototype.invokeMap=tt(function(s,c){return typeof s=="function"?new at(this):this.map(function(m){return $l(m,s,c)})}),at.prototype.reject=function(s){return this.filter(Qf(je(s)))},at.prototype.slice=function(s,c){s=Ze(s);var m=this;return m.__filtered__&&(s>0||c<0)?new at(m):(s<0?m=m.takeRight(-s):s&&(m=m.drop(s)),c!==n&&(c=Ze(c),m=c<0?m.dropRight(-c):m.take(c-s)),m)},at.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},at.prototype.toArray=function(){return this.take(N)},li(at.prototype,function(s,c){var m=/^(?:filter|find|map|reject)|While$/.test(c),x=/^(?:head|last)$/.test(c),P=F[x?"take"+(c=="last"?"Right":""):c],B=x||/^find/.test(c);P&&(F.prototype[c]=function(){var q=this.__wrapped__,Y=x?[1]:arguments,te=q instanceof at,de=Y[0],he=te||Ge(q),$e=function(rt){var ot=P.apply(F,ba([rt],Y));return x&&Pe?ot[0]:ot};he&&m&&typeof de=="function"&&de.length!=1&&(te=he=!1);var Pe=this.__chain__,Be=!!this.__actions__.length,Ue=B&&!Pe,Qe=te&&!Be;if(!B&&he){q=Qe?q:new at(this);var ze=s.apply(q,Y);return ze.__actions__.push({func:Yf,args:[$e],thisArg:n}),new fr(ze,Pe)}return Ue&&Qe?s.apply(this,Y):(ze=this.thru($e),Ue?x?ze.value()[0]:ze.value():ze)})}),lr(["pop","push","shift","sort","splice","unshift"],function(s){var c=xf[s],m=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",x=/^(?:pop|shift)$/.test(s);F.prototype[s]=function(){var P=arguments;if(x&&!this.__chain__){var B=this.value();return c.apply(Ge(B)?B:[],P)}return this[m](function(q){return c.apply(Ge(q)?q:[],P)})}}),li(at.prototype,function(s,c){var m=F[c];if(m){var x=m.name+"";yt.call(xs,x)||(xs[x]=[]),xs[x].push({name:c,func:m})}}),xs[Kf(n,$).name]=[{name:"wrapper",func:n}],at.prototype.clone=gk,at.prototype.reverse=yk,at.prototype.value=vk,F.prototype.at=HB,F.prototype.chain=GB,F.prototype.commit=YB,F.prototype.next=ZB,F.prototype.plant=XB,F.prototype.reverse=QB,F.prototype.toJSON=F.prototype.valueOf=F.prototype.value=eL,F.prototype.first=F.prototype.head,hl&&(F.prototype[hl]=JB),F},vs=Y8();ui?((ui.exports=vs)._=vs,si._=vs):Jt._=vs}).call(bU)}(Ul,Ul.exports)),Ul.exports}var eA=$U();const xU=sa(eA);var Lc=e=>e.type==="checkbox",So=e=>e instanceof Date,Rn=e=>e==null;const tA=e=>typeof e=="object";var Gt=e=>!Rn(e)&&!Array.isArray(e)&&tA(e)&&!So(e),nA=e=>Gt(e)&&e.target?Lc(e.target)?e.target.checked:e.target.value:e,wU=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,rA=(e,t)=>e.has(wU(t)),DU=e=>{const t=e.constructor&&e.constructor.prototype;return Gt(t)&&t.hasOwnProperty("isPrototypeOf")},b1=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Un(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(b1&&(e instanceof Blob||r))&&(n||Gt(e)))if(t=n?[]:{},!n&&!DU(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=Un(e[i]));else return e;return t}var Qh=e=>Array.isArray(e)?e.filter(Boolean):[],Wt=e=>e===void 0,Ae=(e,t,n)=>{if(!t||!Gt(e))return n;const r=Qh(t.split(/[,[\].]+?/)).reduce((i,a)=>Rn(i)?i:i[a],e);return Wt(r)||r===e?Wt(e[t])?n:e[t]:r},wr=e=>typeof e=="boolean",$1=e=>/^\w*$/.test(e),iA=e=>Qh(e.replace(/["|']|\]/g,"").split(/\.|\[/)),gt=(e,t,n)=>{let r=-1;const i=$1(t)?[t]:iA(t),a=i.length,o=a-1;for(;++r<a;){const u=i[r];let l=n;if(r!==o){const f=e[u];l=Gt(f)||Array.isArray(f)?f:isNaN(+i[r+1])?{}:[]}if(u==="__proto__"||u==="constructor"||u==="prototype")return;e[u]=l,e=e[u]}return e};const rh={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Kr={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},qi={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},aA=C.createContext(null),ep=()=>C.useContext(aA),CU=e=>{const{children:t,...n}=e;return C.createElement(aA.Provider,{value:n},t)};var oA=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const o=a;return t._proxyFormState[o]!==Kr.all&&(t._proxyFormState[o]=!r||Kr.all),n&&(n[o]=!0),e[o]}});return i},zn=e=>Gt(e)&&!Object.keys(e).length,sA=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return zn(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(o=>t[o]===(!r||Kr.all))},tc=e=>Array.isArray(e)?e:[e],uA=(e,t,n)=>!e||!t||e===t||tc(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function x1(e){const t=C.useRef(e);t.current=e,C.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function EU(e){const t=ep(),{control:n=t.control,disabled:r,name:i,exact:a}=e||{},[o,u]=C.useState(n._formState),l=C.useRef(!0),f=C.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=C.useRef(i);return d.current=i,x1({disabled:r,next:h=>l.current&&uA(d.current,h.name,a)&&sA(h,f.current,n._updateFormState)&&u({...n._formState,...h}),subject:n._subjects.state}),C.useEffect(()=>(l.current=!0,f.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),C.useMemo(()=>oA(o,n,f.current,!1),[o,n])}var vi=e=>typeof e=="string",lA=(e,t,n,r,i)=>vi(e)?(r&&t.watch.add(e),Ae(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),Ae(n,a))):(r&&(t.watchAll=!0),n);function cA(e){const t=ep(),{control:n=t.control,name:r,defaultValue:i,disabled:a,exact:o}=e||{},u=C.useRef(r);u.current=r,x1({disabled:a,subject:n._subjects.values,next:d=>{uA(u.current,d.name,o)&&f(Un(lA(u.current,n._names,d.values||n._formValues,!1,i)))}});const[l,f]=C.useState(n._getWatch(r,i));return C.useEffect(()=>n._removeUnmounted()),l}function SU(e){const t=ep(),{name:n,disabled:r,control:i=t.control,shouldUnregister:a}=e,o=rA(i._names.array,n),u=cA({control:i,name:n,defaultValue:Ae(i._formValues,n,Ae(i._defaultValues,n,e.defaultValue)),exact:!0}),l=EU({control:i,name:n,exact:!0}),f=C.useRef(i.register(n,{...e.rules,value:u,...wr(e.disabled)?{disabled:e.disabled}:{}})),d=C.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ae(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!Ae(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Ae(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Ae(l.validatingFields,n)},error:{enumerable:!0,get:()=>Ae(l.errors,n)}}),[l,n]),h=C.useMemo(()=>({name:n,value:u,...wr(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:p=>f.current.onChange({target:{value:nA(p),name:n},type:rh.CHANGE}),onBlur:()=>f.current.onBlur({target:{value:Ae(i._formValues,n),name:n},type:rh.BLUR}),ref:p=>{const g=Ae(i._fields,n);g&&p&&(g._f.ref={focus:()=>p.focus(),select:()=>p.select(),setCustomValidity:y=>p.setCustomValidity(y),reportValidity:()=>p.reportValidity()})}}),[n,i._formValues,r,l.disabled,u,i._fields]);return C.useEffect(()=>{const p=i._options.shouldUnregister||a,g=(y,b)=>{const D=Ae(i._fields,y);D&&D._f&&(D._f.mount=b)};if(g(n,!0),p){const y=Un(Ae(i._options.defaultValues,n));gt(i._defaultValues,n,y),Wt(Ae(i._formValues,n))&&gt(i._formValues,n,y)}return!o&&i.register(n),()=>{(o?p&&!i._state.action:p)?i.unregister(n):g(n,!1)}},[n,i,o,a]),C.useEffect(()=>{i._updateDisabledField({disabled:r,fields:i._fields,name:n})},[r,n,i]),C.useMemo(()=>({field:h,formState:l,fieldState:d}),[h,l,d])}const TU=e=>e.render(SU(e));var fA=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},$w=e=>({isOnSubmit:!e||e===Kr.onSubmit,isOnBlur:e===Kr.onBlur,isOnChange:e===Kr.onChange,isOnAll:e===Kr.all,isOnTouch:e===Kr.onTouched}),xw=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const nc=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const a=Ae(e,i);if(a){const{_f:o,...u}=a;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],i)&&!r)return!0;if(o.ref&&t(o.ref,o.name)&&!r)return!0;if(nc(u,t))break}else if(Gt(u)&&nc(u,t))break}}};var AU=(e,t,n)=>{const r=tc(Ae(e,n));return gt(r,"root",t[n]),gt(e,n,r),e},w1=e=>e.type==="file",gi=e=>typeof e=="function",ih=e=>{if(!b1)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},kd=e=>vi(e),D1=e=>e.type==="radio",ah=e=>e instanceof RegExp;const ww={value:!1,isValid:!1},Dw={value:!0,isValid:!0};var dA=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Wt(e[0].attributes.value)?Wt(e[0].value)||e[0].value===""?Dw:{value:e[0].value,isValid:!0}:Dw:ww}return ww};const Cw={isValid:!1,value:null};var hA=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Cw):Cw;function Ew(e,t,n="validate"){if(kd(e)||Array.isArray(e)&&e.every(kd)||wr(e)&&!e)return{type:n,message:kd(e)?e:"",ref:t}}var Ps=e=>Gt(e)&&!ah(e)?e:{value:e,message:""},Sw=async(e,t,n,r,i,a)=>{const{ref:o,refs:u,required:l,maxLength:f,minLength:d,min:h,max:p,pattern:g,validate:y,name:b,valueAsNumber:D,mount:$}=e._f,v=Ae(n,b);if(!$||t.has(b))return{};const w=u?u[0]:o,T=Z=>{i&&w.reportValidity&&(w.setCustomValidity(wr(Z)?"":Z||""),w.reportValidity())},E={},A=D1(o),M=Lc(o),S=A||M,z=(D||w1(o))&&Wt(o.value)&&Wt(v)||ih(o)&&o.value===""||v===""||Array.isArray(v)&&!v.length,j=fA.bind(null,b,r,E),O=(Z,R,V,W=qi.maxLength,L=qi.minLength)=>{const k=Z?R:V;E[b]={type:Z?W:L,message:k,ref:o,...j(Z?W:L,k)}};if(a?!Array.isArray(v)||!v.length:l&&(!S&&(z||Rn(v))||wr(v)&&!v||M&&!dA(u).isValid||A&&!hA(u).isValid)){const{value:Z,message:R}=kd(l)?{value:!!l,message:l}:Ps(l);if(Z&&(E[b]={type:qi.required,message:R,ref:w,...j(qi.required,R)},!r))return T(R),E}if(!z&&(!Rn(h)||!Rn(p))){let Z,R;const V=Ps(p),W=Ps(h);if(!Rn(v)&&!isNaN(v)){const L=o.valueAsNumber||v&&+v;Rn(V.value)||(Z=L>V.value),Rn(W.value)||(R=L<W.value)}else{const L=o.valueAsDate||new Date(v),k=U=>new Date(new Date().toDateString()+" "+U),_=o.type=="time",H=o.type=="week";vi(V.value)&&v&&(Z=_?k(v)>k(V.value):H?v>V.value:L>new Date(V.value)),vi(W.value)&&v&&(R=_?k(v)<k(W.value):H?v<W.value:L<new Date(W.value))}if((Z||R)&&(O(!!Z,V.message,W.message,qi.max,qi.min),!r))return T(E[b].message),E}if((f||d)&&!z&&(vi(v)||a&&Array.isArray(v))){const Z=Ps(f),R=Ps(d),V=!Rn(Z.value)&&v.length>+Z.value,W=!Rn(R.value)&&v.length<+R.value;if((V||W)&&(O(V,Z.message,R.message),!r))return T(E[b].message),E}if(g&&!z&&vi(v)){const{value:Z,message:R}=Ps(g);if(ah(Z)&&!v.match(Z)&&(E[b]={type:qi.pattern,message:R,ref:o,...j(qi.pattern,R)},!r))return T(R),E}if(y){if(gi(y)){const Z=await y(v,n),R=Ew(Z,w);if(R&&(E[b]={...R,...j(qi.validate,R.message)},!r))return T(R.message),E}else if(Gt(y)){let Z={};for(const R in y){if(!zn(Z)&&!r)break;const V=Ew(await y[R](v,n),w,R);V&&(Z={...V,...j(R,V.message)},T(V.message),r&&(E[b]=Z))}if(!zn(Z)&&(E[b]={ref:w,...Z},!r))return E}}return T(!0),E};function PU(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Wt(e)?r++:e[t[r++]];return e}function _U(e){for(const t in e)if(e.hasOwnProperty(t)&&!Wt(e[t]))return!1;return!0}function an(e,t){const n=Array.isArray(t)?t:$1(t)?[t]:iA(t),r=n.length===1?e:PU(e,n),i=n.length-1,a=n[i];return r&&delete r[a],i!==0&&(Gt(r)&&zn(r)||Array.isArray(r)&&_U(r))&&an(e,n.slice(0,-1)),e}var og=()=>{let e=[];return{get observers(){return e},next:i=>{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}},jb=e=>Rn(e)||!tA(e);function Fa(e,t){if(jb(e)||jb(t))return e===t;if(So(e)&&So(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const o=t[i];if(So(a)&&So(o)||Gt(a)&&Gt(o)||Array.isArray(a)&&Array.isArray(o)?!Fa(a,o):a!==o)return!1}}return!0}var pA=e=>e.type==="select-multiple",RU=e=>D1(e)||Lc(e),sg=e=>ih(e)&&e.isConnected,mA=e=>{for(const t in e)if(gi(e[t]))return!0;return!1};function oh(e,t={}){const n=Array.isArray(e);if(Gt(e)||n)for(const r in e)Array.isArray(e[r])||Gt(e[r])&&!mA(e[r])?(t[r]=Array.isArray(e[r])?[]:{},oh(e[r],t[r])):Rn(e[r])||(t[r]=!0);return t}function gA(e,t,n){const r=Array.isArray(e);if(Gt(e)||r)for(const i in e)Array.isArray(e[i])||Gt(e[i])&&!mA(e[i])?Wt(t)||jb(n[i])?n[i]=Array.isArray(e[i])?oh(e[i],[]):{...oh(e[i])}:gA(e[i],Rn(t)?{}:t[i],n[i]):n[i]=!Fa(e[i],t[i]);return n}var Tl=(e,t)=>gA(e,t,oh(t)),yA=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Wt(e)?e:t?e===""?NaN:e&&+e:n&&vi(e)?new Date(e):r?r(e):e;function ug(e){const t=e.ref;return w1(t)?t.files:D1(t)?hA(e.refs).value:pA(t)?[...t.selectedOptions].map(({value:n})=>n):Lc(t)?dA(e.refs).value:yA(Wt(t.value)?e.ref.value:t.value,e)}var OU=(e,t,n,r)=>{const i={};for(const a of e){const o=Ae(t,a);o&&gt(i,a,o._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},Al=e=>Wt(e)?e:ah(e)?e.source:Gt(e)?ah(e.value)?e.value.source:e.value:e;const Tw="AsyncFunction";var MU=e=>!!e&&!!e.validate&&!!(gi(e.validate)&&e.validate.constructor.name===Tw||Gt(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===Tw)),FU=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Aw(e,t,n){const r=Ae(e,n);if(r||$1(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),o=Ae(t,a),u=Ae(e,a);if(o&&!Array.isArray(o)&&n!==a)return{name:n};if(u&&u.type)return{name:a,error:u};i.pop()}return{name:n}}var kU=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,IU=(e,t)=>!Qh(Ae(e,t)).length&&an(e,t);const BU={mode:Kr.onSubmit,reValidateMode:Kr.onChange,shouldFocusError:!0};function LU(e={}){let t={...BU,...e},n={submitCount:0,isDirty:!1,isLoading:gi(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=Gt(t.defaultValues)||Gt(t.values)?Un(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:Un(i),o={action:!1,mount:!1,watch:!1},u={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,f=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={values:og(),array:og(),state:og()},p=$w(t.mode),g=$w(t.reValidateMode),y=t.criteriaMode===Kr.all,b=G=>Q=>{clearTimeout(f),f=setTimeout(G,Q)},D=async G=>{if(!t.disabled&&(d.isValid||G)){const Q=t.resolver?zn((await S()).errors):await j(r,!0);Q!==n.isValid&&h.state.next({isValid:Q})}},$=(G,Q)=>{!t.disabled&&(d.isValidating||d.validatingFields)&&((G||Array.from(u.mount)).forEach(re=>{re&&(Q?gt(n.validatingFields,re,Q):an(n.validatingFields,re))}),h.state.next({validatingFields:n.validatingFields,isValidating:!zn(n.validatingFields)}))},v=(G,Q=[],re,ve,Se=!0,Ce=!0)=>{if(ve&&re&&!t.disabled){if(o.action=!0,Ce&&Array.isArray(Ae(r,G))){const Fe=re(Ae(r,G),ve.argA,ve.argB);Se&&gt(r,G,Fe)}if(Ce&&Array.isArray(Ae(n.errors,G))){const Fe=re(Ae(n.errors,G),ve.argA,ve.argB);Se&&gt(n.errors,G,Fe),IU(n.errors,G)}if(d.touchedFields&&Ce&&Array.isArray(Ae(n.touchedFields,G))){const Fe=re(Ae(n.touchedFields,G),ve.argA,ve.argB);Se&&gt(n.touchedFields,G,Fe)}d.dirtyFields&&(n.dirtyFields=Tl(i,a)),h.state.next({name:G,isDirty:Z(G,Q),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else gt(a,G,Q)},w=(G,Q)=>{gt(n.errors,G,Q),h.state.next({errors:n.errors})},T=G=>{n.errors=G,h.state.next({errors:n.errors,isValid:!1})},E=(G,Q,re,ve)=>{const Se=Ae(r,G);if(Se){const Ce=Ae(a,G,Wt(re)?Ae(i,G):re);Wt(Ce)||ve&&ve.defaultChecked||Q?gt(a,G,Q?Ce:ug(Se._f)):W(G,Ce),o.mount&&D()}},A=(G,Q,re,ve,Se)=>{let Ce=!1,Fe=!1;const Ne={name:G};if(!t.disabled){const _t=!!(Ae(r,G)&&Ae(r,G)._f&&Ae(r,G)._f.disabled);if(!re||ve){d.isDirty&&(Fe=n.isDirty,n.isDirty=Ne.isDirty=Z(),Ce=Fe!==Ne.isDirty);const ut=_t||Fa(Ae(i,G),Q);Fe=!!(!_t&&Ae(n.dirtyFields,G)),ut||_t?an(n.dirtyFields,G):gt(n.dirtyFields,G,!0),Ne.dirtyFields=n.dirtyFields,Ce=Ce||d.dirtyFields&&Fe!==!ut}if(re){const ut=Ae(n.touchedFields,G);ut||(gt(n.touchedFields,G,re),Ne.touchedFields=n.touchedFields,Ce=Ce||d.touchedFields&&ut!==re)}Ce&&Se&&h.state.next(Ne)}return Ce?Ne:{}},M=(G,Q,re,ve)=>{const Se=Ae(n.errors,G),Ce=d.isValid&&wr(Q)&&n.isValid!==Q;if(t.delayError&&re?(l=b(()=>w(G,re)),l(t.delayError)):(clearTimeout(f),l=null,re?gt(n.errors,G,re):an(n.errors,G)),(re?!Fa(Se,re):Se)||!zn(ve)||Ce){const Fe={...ve,...Ce&&wr(Q)?{isValid:Q}:{},errors:n.errors,name:G};n={...n,...Fe},h.state.next(Fe)}},S=async G=>{$(G,!0);const Q=await t.resolver(a,t.context,OU(G||u.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return $(G),Q},z=async G=>{const{errors:Q}=await S(G);if(G)for(const re of G){const ve=Ae(Q,re);ve?gt(n.errors,re,ve):an(n.errors,re)}else n.errors=Q;return Q},j=async(G,Q,re={valid:!0})=>{for(const ve in G){const Se=G[ve];if(Se){const{_f:Ce,...Fe}=Se;if(Ce){const Ne=u.array.has(Ce.name),_t=Se._f&&MU(Se._f);_t&&d.validatingFields&&$([ve],!0);const ut=await Sw(Se,u.disabled,a,y,t.shouldUseNativeValidation&&!Q,Ne);if(_t&&d.validatingFields&&$([ve]),ut[Ce.name]&&(re.valid=!1,Q))break;!Q&&(Ae(ut,Ce.name)?Ne?AU(n.errors,ut,Ce.name):gt(n.errors,Ce.name,ut[Ce.name]):an(n.errors,Ce.name))}!zn(Fe)&&await j(Fe,Q,re)}}return re.valid},O=()=>{for(const G of u.unMount){const Q=Ae(r,G);Q&&(Q._f.refs?Q._f.refs.every(re=>!sg(re)):!sg(Q._f.ref))&&De(G)}u.unMount=new Set},Z=(G,Q)=>!t.disabled&&(G&&Q&&gt(a,G,Q),!Fa(N(),i)),R=(G,Q,re)=>lA(G,u,{...o.mount?a:Wt(Q)?i:vi(G)?{[G]:Q}:Q},re,Q),V=G=>Qh(Ae(o.mount?a:i,G,t.shouldUnregister?Ae(i,G,[]):[])),W=(G,Q,re={})=>{const ve=Ae(r,G);let Se=Q;if(ve){const Ce=ve._f;Ce&&(!Ce.disabled&&gt(a,G,yA(Q,Ce)),Se=ih(Ce.ref)&&Rn(Q)?"":Q,pA(Ce.ref)?[...Ce.ref.options].forEach(Fe=>Fe.selected=Se.includes(Fe.value)):Ce.refs?Lc(Ce.ref)?Ce.refs.length>1?Ce.refs.forEach(Fe=>(!Fe.defaultChecked||!Fe.disabled)&&(Fe.checked=Array.isArray(Se)?!!Se.find(Ne=>Ne===Fe.value):Se===Fe.value)):Ce.refs[0]&&(Ce.refs[0].checked=!!Se):Ce.refs.forEach(Fe=>Fe.checked=Fe.value===Se):w1(Ce.ref)?Ce.ref.value="":(Ce.ref.value=Se,Ce.ref.type||h.values.next({name:G,values:{...a}})))}(re.shouldDirty||re.shouldTouch)&&A(G,Se,re.shouldTouch,re.shouldDirty,!0),re.shouldValidate&&U(G)},L=(G,Q,re)=>{for(const ve in Q){const Se=Q[ve],Ce=`${G}.${ve}`,Fe=Ae(r,Ce);(u.array.has(G)||Gt(Se)||Fe&&!Fe._f)&&!So(Se)?L(Ce,Se,re):W(Ce,Se,re)}},k=(G,Q,re={})=>{const ve=Ae(r,G),Se=u.array.has(G),Ce=Un(Q);gt(a,G,Ce),Se?(h.array.next({name:G,values:{...a}}),(d.isDirty||d.dirtyFields)&&re.shouldDirty&&h.state.next({name:G,dirtyFields:Tl(i,a),isDirty:Z(G,Ce)})):ve&&!ve._f&&!Rn(Ce)?L(G,Ce,re):W(G,Ce,re),xw(G,u)&&h.state.next({...n}),h.values.next({name:o.mount?G:void 0,values:{...a}})},_=async G=>{o.mount=!0;const Q=G.target;let re=Q.name,ve=!0;const Se=Ae(r,re),Ce=()=>Q.type?ug(Se._f):nA(G),Fe=Ne=>{ve=Number.isNaN(Ne)||So(Ne)&&isNaN(Ne.getTime())||Fa(Ne,Ae(a,re,Ne))};if(Se){let Ne,_t;const ut=Ce(),Zt=G.type===rh.BLUR||G.type===rh.FOCUS_OUT,Xr=!FU(Se._f)&&!t.resolver&&!Ae(n.errors,re)&&!Se._f.deps||kU(Zt,Ae(n.touchedFields,re),n.isSubmitted,g,p),Rr=xw(re,u,Zt);gt(a,re,ut),Zt?(Se._f.onBlur&&Se._f.onBlur(G),l&&l(0)):Se._f.onChange&&Se._f.onChange(G);const mn=A(re,ut,Zt,!1),Qr=!zn(mn)||Rr;if(!Zt&&h.values.next({name:re,type:G.type,values:{...a}}),Xr)return d.isValid&&(t.mode==="onBlur"&&Zt?D():Zt||D()),Qr&&h.state.next({name:re,...Rr?{}:mn});if(!Zt&&Rr&&h.state.next({...n}),t.resolver){const{errors:ei}=await S([re]);if(Fe(ut),ve){const ti=Aw(n.errors,r,re),Or=Aw(ei,r,ti.name||re);Ne=Or.error,re=Or.name,_t=zn(ei)}}else $([re],!0),Ne=(await Sw(Se,u.disabled,a,y,t.shouldUseNativeValidation))[re],$([re]),Fe(ut),ve&&(Ne?_t=!1:d.isValid&&(_t=await j(r,!0)));ve&&(Se._f.deps&&U(Se._f.deps),M(re,_t,Ne,mn))}},H=(G,Q)=>{if(Ae(n.errors,Q)&&G.focus)return G.focus(),1},U=async(G,Q={})=>{let re,ve;const Se=tc(G);if(t.resolver){const Ce=await z(Wt(G)?G:Se);re=zn(Ce),ve=G?!Se.some(Fe=>Ae(Ce,Fe)):re}else G?(ve=(await Promise.all(Se.map(async Ce=>{const Fe=Ae(r,Ce);return await j(Fe&&Fe._f?{[Ce]:Fe}:Fe)}))).every(Boolean),!(!ve&&!n.isValid)&&D()):ve=re=await j(r);return h.state.next({...!vi(G)||d.isValid&&re!==n.isValid?{}:{name:G},...t.resolver||!G?{isValid:re}:{},errors:n.errors}),Q.shouldFocus&&!ve&&nc(r,H,G?Se:u.mount),ve},N=G=>{const Q={...o.mount?a:i};return Wt(G)?Q:vi(G)?Ae(Q,G):G.map(re=>Ae(Q,re))},ne=(G,Q)=>({invalid:!!Ae((Q||n).errors,G),isDirty:!!Ae((Q||n).dirtyFields,G),error:Ae((Q||n).errors,G),isValidating:!!Ae(n.validatingFields,G),isTouched:!!Ae((Q||n).touchedFields,G)}),ie=G=>{G&&tc(G).forEach(Q=>an(n.errors,Q)),h.state.next({errors:G?n.errors:{}})},ce=(G,Q,re)=>{const ve=(Ae(r,G,{_f:{}})._f||{}).ref,Se=Ae(n.errors,G)||{},{ref:Ce,message:Fe,type:Ne,..._t}=Se;gt(n.errors,G,{..._t,...Q,ref:ve}),h.state.next({name:G,errors:n.errors,isValid:!1}),re&&re.shouldFocus&&ve&&ve.focus&&ve.focus()},xe=(G,Q)=>gi(G)?h.values.subscribe({next:re=>G(R(void 0,Q),re)}):R(G,Q,!0),De=(G,Q={})=>{for(const re of G?tc(G):u.mount)u.mount.delete(re),u.array.delete(re),Q.keepValue||(an(r,re),an(a,re)),!Q.keepError&&an(n.errors,re),!Q.keepDirty&&an(n.dirtyFields,re),!Q.keepTouched&&an(n.touchedFields,re),!Q.keepIsValidating&&an(n.validatingFields,re),!t.shouldUnregister&&!Q.keepDefaultValue&&an(i,re);h.values.next({values:{...a}}),h.state.next({...n,...Q.keepDirty?{isDirty:Z()}:{}}),!Q.keepIsValid&&D()},Ee=({disabled:G,name:Q,field:re,fields:ve})=>{(wr(G)&&o.mount||G||u.disabled.has(Q))&&(G?u.disabled.add(Q):u.disabled.delete(Q),A(Q,ug(re?re._f:Ae(ve,Q)._f),!1,!1,!0))},J=(G,Q={})=>{let re=Ae(r,G);const ve=wr(Q.disabled)||wr(t.disabled);return gt(r,G,{...re||{},_f:{...re&&re._f?re._f:{ref:{name:G}},name:G,mount:!0,...Q}}),u.mount.add(G),re?Ee({field:re,disabled:wr(Q.disabled)?Q.disabled:t.disabled,name:G}):E(G,!0,Q.value),{...ve?{disabled:Q.disabled||t.disabled}:{},...t.progressive?{required:!!Q.required,min:Al(Q.min),max:Al(Q.max),minLength:Al(Q.minLength),maxLength:Al(Q.maxLength),pattern:Al(Q.pattern)}:{},name:G,onChange:_,onBlur:_,ref:Se=>{if(Se){J(G,Q),re=Ae(r,G);const Ce=Wt(Se.value)&&Se.querySelectorAll&&Se.querySelectorAll("input,select,textarea")[0]||Se,Fe=RU(Ce),Ne=re._f.refs||[];if(Fe?Ne.find(_t=>_t===Ce):Ce===re._f.ref)return;gt(r,G,{_f:{...re._f,...Fe?{refs:[...Ne.filter(sg),Ce,...Array.isArray(Ae(i,G))?[{}]:[]],ref:{type:Ce.type,name:G}}:{ref:Ce}}}),E(G,!1,void 0,Ce)}else re=Ae(r,G,{}),re._f&&(re._f.mount=!1),(t.shouldUnregister||Q.shouldUnregister)&&!(rA(u.array,G)&&o.action)&&u.unMount.add(G)}}},ye=()=>t.shouldFocusError&&nc(r,H,u.mount),we=G=>{wr(G)&&(h.state.next({disabled:G}),nc(r,(Q,re)=>{const ve=Ae(r,re);ve&&(Q.disabled=ve._f.disabled||G,Array.isArray(ve._f.refs)&&ve._f.refs.forEach(Se=>{Se.disabled=ve._f.disabled||G}))},0,!1))},me=(G,Q)=>async re=>{let ve;re&&(re.preventDefault&&re.preventDefault(),re.persist&&re.persist());let Se=Un(a);if(u.disabled.size)for(const Ce of u.disabled)gt(Se,Ce,void 0);if(h.state.next({isSubmitting:!0}),t.resolver){const{errors:Ce,values:Fe}=await S();n.errors=Ce,Se=Fe}else await j(r);if(an(n.errors,"root"),zn(n.errors)){h.state.next({errors:{}});try{await G(Se,re)}catch(Ce){ve=Ce}}else Q&&await Q({...n.errors},re),ye(),setTimeout(ye);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:zn(n.errors)&&!ve,submitCount:n.submitCount+1,errors:n.errors}),ve)throw ve},ue=(G,Q={})=>{Ae(r,G)&&(Wt(Q.defaultValue)?k(G,Un(Ae(i,G))):(k(G,Q.defaultValue),gt(i,G,Un(Q.defaultValue))),Q.keepTouched||an(n.touchedFields,G),Q.keepDirty||(an(n.dirtyFields,G),n.isDirty=Q.defaultValue?Z(G,Un(Ae(i,G))):Z()),Q.keepError||(an(n.errors,G),d.isValid&&D()),h.state.next({...n}))},Le=(G,Q={})=>{const re=G?Un(G):i,ve=Un(re),Se=zn(G),Ce=Se?i:ve;if(Q.keepDefaultValues||(i=re),!Q.keepValues){if(Q.keepDirtyValues){const Fe=new Set([...u.mount,...Object.keys(Tl(i,a))]);for(const Ne of Array.from(Fe))Ae(n.dirtyFields,Ne)?gt(Ce,Ne,Ae(a,Ne)):k(Ne,Ae(Ce,Ne))}else{if(b1&&Wt(G))for(const Fe of u.mount){const Ne=Ae(r,Fe);if(Ne&&Ne._f){const _t=Array.isArray(Ne._f.refs)?Ne._f.refs[0]:Ne._f.ref;if(ih(_t)){const ut=_t.closest("form");if(ut){ut.reset();break}}}}r={}}a=t.shouldUnregister?Q.keepDefaultValues?Un(i):{}:Un(Ce),h.array.next({values:{...Ce}}),h.values.next({values:{...Ce}})}u={mount:Q.keepDirtyValues?u.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!d.isValid||!!Q.keepIsValid||!!Q.keepDirtyValues,o.watch=!!t.shouldUnregister,h.state.next({submitCount:Q.keepSubmitCount?n.submitCount:0,isDirty:Se?!1:Q.keepDirty?n.isDirty:!!(Q.keepDefaultValues&&!Fa(G,i)),isSubmitted:Q.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:Se?{}:Q.keepDirtyValues?Q.keepDefaultValues&&a?Tl(i,a):n.dirtyFields:Q.keepDefaultValues&&G?Tl(i,G):Q.keepDirty?n.dirtyFields:{},touchedFields:Q.keepTouched?n.touchedFields:{},errors:Q.keepErrors?n.errors:{},isSubmitSuccessful:Q.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},nt=(G,Q)=>Le(gi(G)?G(a):G,Q);return{control:{register:J,unregister:De,getFieldState:ne,handleSubmit:me,setError:ce,_executeSchema:S,_getWatch:R,_getDirty:Z,_updateValid:D,_removeUnmounted:O,_updateFieldArray:v,_updateDisabledField:Ee,_getFieldArray:V,_reset:Le,_resetDefaultValues:()=>gi(t.defaultValues)&&t.defaultValues().then(G=>{nt(G,t.resetOptions),h.state.next({isLoading:!1})}),_updateFormState:G=>{n={...n,...G}},_disableForm:we,_subjects:h,_proxyFormState:d,_setErrors:T,get _fields(){return r},get _formValues(){return a},get _state(){return o},set _state(G){o=G},get _defaultValues(){return i},get _names(){return u},set _names(G){u=G},get _formState(){return n},set _formState(G){n=G},get _options(){return t},set _options(G){t={...t,...G}}},trigger:U,register:J,handleSubmit:me,watch:xe,setValue:k,getValues:N,reset:nt,resetField:ue,clearErrors:ie,unregister:De,setError:ce,setFocus:(G,Q={})=>{const re=Ae(r,G),ve=re&&re._f;if(ve){const Se=ve.refs?ve.refs[0]:ve.ref;Se.focus&&(Se.focus(),Q.shouldSelect&&gi(Se.select)&&Se.select())}},getFieldState:ne}}function VU(e={}){const t=C.useRef(void 0),n=C.useRef(void 0),[r,i]=C.useState({isDirty:!1,isValidating:!1,isLoading:gi(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:gi(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...LU(e),formState:r});const a=t.current.control;return a._options=e,x1({subject:a._subjects.state,next:o=>{sA(o,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),C.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),C.useEffect(()=>{if(a._proxyFormState.isDirty){const o=a._getDirty();o!==r.isDirty&&a._subjects.state.next({isDirty:o})}},[a,r.isDirty]),C.useEffect(()=>{e.values&&!Fa(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values,i(o=>({...o}))):a._resetDefaultValues()},[e.values,a]),C.useEffect(()=>{e.errors&&a._setErrors(e.errors)},[e.errors,a]),C.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),C.useEffect(()=>{e.shouldUnregister&&a._subjects.values.next({values:a._getWatch()})},[e.shouldUnregister,a]),t.current.formState=oA(r,a),t.current}const Ct=typeof document<"u"?C.useLayoutEffect:()=>{};function Ht(e){const t=C.useRef(null);return Ct(()=>{t.current=e},[e]),C.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function NU(e){let[t,n]=C.useState(e),r=C.useRef(null),i=Ht(()=>{if(!r.current)return;let o=r.current.next();if(o.done){r.current=null;return}t===o.value?i():n(o.value)});Ct(()=>{r.current&&i()});let a=Ht(o=>{r.current=o(t),i()});return[t,a]}const sh={prefix:String(Math.round(Math.random()*1e10)),current:0},vA=C.createContext(sh),jU=C.createContext(!1);let KU=!!(typeof window<"u"&&window.document&&window.document.createElement),lg=new WeakMap;function UU(e=!1){let t=C.useContext(vA),n=C.useRef(null);if(n.current===null&&!e){var r,i;let a=(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(a){let o=lg.get(a);o==null?lg.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==o.state&&(t.current=o.id,lg.delete(a))}n.current=++t.current}return n.current}function zU(e){let t=C.useContext(vA);t===sh&&!KU&&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 n=UU(!!e),r=t===sh&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function qU(e){let t=C.useId(),[n]=C.useState(C1()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${sh.prefix}`;return e||`${r}-${t}`}const WU=typeof C.useId=="function"?qU:zU;function HU(){return!1}function GU(){return!0}function YU(e){return()=>{}}function C1(){return typeof C.useSyncExternalStore=="function"?C.useSyncExternalStore(YU,HU,GU):C.useContext(jU)}let ZU=!!(typeof window<"u"&&window.document&&window.document.createElement),Oa=new Map;function Yn(e){let[t,n]=C.useState(e),r=C.useRef(null),i=WU(t),a=C.useCallback(o=>{r.current=o},[]);return ZU&&(Oa.has(i)&&!Oa.get(i).includes(a)?Oa.set(i,[...Oa.get(i),a]):Oa.set(i,[a])),Ct(()=>{let o=i;return()=>{Oa.delete(o)}},[i]),C.useEffect(()=>{let o=r.current;o&&(r.current=null,n(o))}),i}function JU(e,t){if(e===t)return e;let n=Oa.get(e);if(n)return n.forEach(i=>i(t)),t;let r=Oa.get(t);return r?(r.forEach(i=>i(e)),e):t}function uu(e=[]){let t=Yn(),[n,r]=NU(t),i=C.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Ct(i,[t,i,...e]),n}function Uo(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Tt=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},qa=e=>e&&"window"in e&&e.window===e?e:Tt(e).defaultView||window;function bA(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=bA(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function XU(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=bA(e))&&(r&&(r+=" "),r+=t);return r}function ft(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let a=t[i],o=r[i];typeof a=="function"&&typeof o=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=Uo(a,o):(i==="className"||i==="UNSAFE_className")&&typeof a=="string"&&typeof o=="string"?t[i]=XU(a,o):i==="id"&&a&&o?t.id=JU(a,o):t[i]=o!==void 0?o:a}}return t}const QU=new Set(["id"]),ez=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),tz=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),nz=/^(data-.*)$/;function ua(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,a={};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(QU.has(o)||n&&ez.has(o)||r&&tz.has(o)||i!=null&&i.has(o)||nz.test(o))&&(a[o]=e[o]);return a}function Ur(e){if(rz())e.focus({preventScroll:!0});else{let t=iz(e);e.focus(),az(t)}}let ud=null;function rz(){if(ud==null){ud=!1;try{document.createElement("div").focus({get preventScroll(){return ud=!0,!0}})}catch{}}return ud}function iz(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function az(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function tp(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function E1(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function la(e){let t=null;return()=>(t==null&&(t=e()),t)}const ia=la(function(){return E1(/^Mac/i)}),oz=la(function(){return E1(/^iPhone/i)}),$A=la(function(){return E1(/^iPad/i)||ia()&&navigator.maxTouchPoints>1}),Vc=la(function(){return oz()||$A()}),Id=la(function(){return ia()||Vc()}),S1=la(function(){return tp(/AppleWebKit/i)&&!xA()}),xA=la(function(){return tp(/Chrome/i)}),T1=la(function(){return tp(/Android/i)}),sz=la(function(){return tp(/Firefox/i)}),uz=C.createContext({isNative:!0,open:cz,useHref:e=>e});function np(){return C.useContext(uz)}function zo(e,t,n=!0){var r,i;let{metaKey:a,ctrlKey:o,altKey:u,shiftKey:l}=t;sz()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(ia()?a=!0:o=!0);let f=S1()&&ia()&&!$A()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:o,altKey:u,shiftKey:l}):new MouseEvent("click",{metaKey:a,ctrlKey:o,altKey:u,shiftKey:l,bubbles:!0,cancelable:!0});zo.isOpening=n,Ur(e),e.dispatchEvent(f),zo.isOpening=!1}zo.isOpening=!1;function lz(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function cz(e,t){lz(e,n=>zo(n,t))}function fz(e){let t=np();var n;const r=t.useHref((n=e==null?void 0:e.href)!==null&&n!==void 0?n:"");return{href:e!=null&&e.href?r:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}let Ms=new Map,Kb=new Set;function Pw(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=Ms.get(r.target);i||(i=new Set,Ms.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let i=Ms.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),Ms.delete(r.target)),Ms.size===0)){for(let a of Kb)a();Kb.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Pw():document.addEventListener("DOMContentLoaded",Pw));function wA(e){requestAnimationFrame(()=>{Ms.size===0?e():Kb.add(e)})}function Tu(){let e=C.useRef(new Map),t=C.useCallback((i,a,o,u)=>{let l=u!=null&&u.once?(...f)=>{e.current.delete(o),o(...f)}:o;e.current.set(o,{type:a,eventTarget:i,fn:l,options:u}),i.addEventListener(a,l,u)},[]),n=C.useCallback((i,a,o,u)=>{var l;let f=((l=e.current.get(o))===null||l===void 0?void 0:l.fn)||o;i.removeEventListener(a,f,u),e.current.delete(o)},[]),r=C.useCallback(()=>{e.current.forEach((i,a)=>{n(i.eventTarget,i.type,a,i.options)})},[n]);return C.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function lu(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=Yn(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function _w(e,t){const n=C.useRef(!0),r=C.useRef(null);C.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),C.useEffect(()=>{n.current?n.current=!1:(!r.current||t.some((i,a)=>!Object.is(i,r[a])))&&e(),r.current=t},t)}function Rw(e,t){const n=C.useRef(!0),r=C.useRef(null);Ct(()=>(n.current=!0,()=>{n.current=!1}),[]),Ct(()=>{n.current?n.current=!1:(!r.current||t.some((i,a)=>!Object.is(i,r[a])))&&e(),r.current=t},t)}function dz(){return typeof window.ResizeObserver<"u"}function Ow(e){const{ref:t,box:n,onResize:r}=e;C.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(dz()){const a=new window.ResizeObserver(o=>{o.length&&r()});return a.observe(i,{box:n}),()=>{i&&a.unobserve(i)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,n])}function DA(e,t){Ct(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function pc(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function rp(e,t){let n=e;for(pc(n,t)&&(n=n.parentElement);n&&!pc(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function hz(e,t){const n=[];for(;e&&e!==document.documentElement;)pc(e,t)&&n.push(e),e=e.parentElement;return n}let pz=0;const cg=new Map;function Nc(e){let[t,n]=C.useState();return Ct(()=>{if(!e)return;let r=cg.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${pz++}`;n(i);let a=document.createElement("div");a.id=i,a.style.display="none",a.textContent=e,document.body.appendChild(a),r={refCount:0,element:a},cg.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),cg.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function bi(e,t,n,r){let i=Ht(n),a=n==null;C.useEffect(()=>{if(a||!e.current)return;let o=e.current;return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[e,t,r,a,i])}function CA(e,t){let n=Mw(e,t,"left"),r=Mw(e,t,"top"),i=t.offsetWidth,a=t.offsetHeight,o=e.scrollLeft,u=e.scrollTop,{borderTopWidth:l,borderLeftWidth:f,scrollPaddingTop:d,scrollPaddingRight:h,scrollPaddingBottom:p,scrollPaddingLeft:g}=getComputedStyle(e),y=o+parseInt(f,10),b=u+parseInt(l,10),D=y+e.clientWidth,$=b+e.clientHeight,v=parseInt(d,10)||0,w=parseInt(p,10)||0,T=parseInt(h,10)||0,E=parseInt(g,10)||0;n<=o+E?o=n-parseInt(f,10)-E:n+i>D-T&&(o+=n+i-D+T),r<=b+v?u=r-parseInt(l,10)-v:r+a>$-w&&(u+=r+a-$+w),e.scrollLeft=o,e.scrollTop=u}function Mw(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function uh(e,t){if(e&&document.contains(e)){let o=document.scrollingElement||document.documentElement;if(window.getComputedStyle(o).overflow==="hidden"){let l=hz(e);for(let f of l)CA(f,e)}else{var n;let{left:l,top:f}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:d,top:h}=e.getBoundingClientRect();if(Math.abs(l-d)>1||Math.abs(f-h)>1){var r,i,a;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(a=e.scrollIntoView)===null||a===void 0||a.call(e,{block:"nearest"})}}}}function Ub(e){return e.mozInputSource===0&&e.isTrusted?!0:T1()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function mz(e){return!T1()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function EA(e,t){let n=C.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function A1(e,t,n){let r=C.useRef(t),i=Ht(()=>{n&&n(r.current)});C.useEffect(()=>{var a;let o=e==null||(a=e.current)===null||a===void 0?void 0:a.form;return o==null||o.addEventListener("reset",i),()=>{o==null||o.removeEventListener("reset",i)}},[e,i])}const gz="react-aria-clear-focus",yz="react-aria-focus",SA="react-aria-update-activedescendant";function Fs(e){return ia()?e.metaKey:e.ctrlKey}function ar(e,t,n){let[r,i]=C.useState(e||t),a=C.useRef(e!==void 0),o=e!==void 0;C.useEffect(()=>{let f=a.current;f!==o&&console.warn(`WARN: A component changed from ${f?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}.`),a.current=o},[o]);let u=o?e:r,l=C.useCallback((f,...d)=>{let h=(p,...g)=>{n&&(Object.is(u,p)||n(p,...g)),o||(u=p)};typeof f=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((g,...y)=>{let b=f(o?u:g,...y);return h(b,...d),o?g:b})):(o||i(f),h(f,...d))},[o,u,n]);return[u,l]}function cu(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function ld(e,t){let n=e,r=t.toString(),i=r.indexOf("."),a=i>=0?r.length-i:0;if(a>0){let o=Math.pow(10,a);n=Math.round(n*o)/o}return n}function Pl(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%r,a=ld(Math.abs(i)*2>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i,r);return isNaN(t)?!isNaN(n)&&a>n&&(a=Math.floor(ld(n/r,r))*r):a<t?a=t:!isNaN(n)&&a>n&&(a=t+Math.floor(ld((n-t)/r,r))*r),a=ld(a,r),a}let Is="default",zb="",Bd=new WeakMap;function qb(e){if(Vc()){if(Is==="default"){const t=Tt(e);zb=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Is="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(Bd.set(e,e.style.userSelect),e.style.userSelect="none")}function zl(e){if(Vc()){if(Is!=="disabled")return;Is="restoring",setTimeout(()=>{wA(()=>{if(Is==="restoring"){const t=Tt(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=zb||""),zb="",Is="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Bd.has(e)){let t=Bd.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Bd.delete(e)}}const P1=C.createContext({register:()=>{}});P1.displayName="PressResponderContext";function vz(e,t){return t.get?t.get.call(e):t.value}function TA(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function bz(e,t){var n=TA(e,t,"get");return vz(e,n)}function $z(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function jc(e,t,n){$z(e,t),t.set(e,n)}function xz(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function Fw(e,t,n){var r=TA(e,t,"set");return xz(e,r,n),n}function wz(e){let t=C.useContext(P1);if(t){let{register:n,...r}=t;e=ft(r,e),n()}return DA(t,e.ref),e}var cd=new WeakMap;class fd{continuePropagation(){Fw(this,cd,!1)}get shouldStopPropagation(){return bz(this,cd)}constructor(t,n,r,i){jc(this,cd,{writable:!0,value:void 0}),Fw(this,cd,!0);var a;let o=(a=i==null?void 0:i.target)!==null&&a!==void 0?a:r.currentTarget;const u=o==null?void 0:o.getBoundingClientRect();let l,f=0,d,h=null;r.clientX!=null&&r.clientY!=null&&(d=r.clientX,h=r.clientY),u&&(d!=null&&h!=null?(l=d-u.left,f=h-u.top):(l=u.width/2,f=u.height/2)),this.type=t,this.pointerType=n,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=f}}const kw=Symbol("linkClicked");function Kc(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,isDisabled:o,isPressed:u,preventFocusOnPress:l,shouldCancelOnPointerExit:f,allowTextSelectionOnPress:d,ref:h,...p}=wz(e),[g,y]=C.useState(!1),b=C.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:D,removeAllGlobalListeners:$}=Tu(),v=Ht((S,z)=>{let j=b.current;if(o||j.didFirePressStart)return!1;let O=!0;if(j.isTriggeringEvent=!0,r){let Z=new fd("pressstart",z,S);r(Z),O=Z.shouldStopPropagation}return n&&n(!0),j.isTriggeringEvent=!1,j.didFirePressStart=!0,y(!0),O}),w=Ht((S,z,j=!0)=>{let O=b.current;if(!O.didFirePressStart)return!1;O.ignoreClickAfterPress=!0,O.didFirePressStart=!1,O.isTriggeringEvent=!0;let Z=!0;if(i){let R=new fd("pressend",z,S);i(R),Z=R.shouldStopPropagation}if(n&&n(!1),y(!1),t&&j&&!o){let R=new fd("press",z,S);t(R),Z&&(Z=R.shouldStopPropagation)}return O.isTriggeringEvent=!1,Z}),T=Ht((S,z)=>{let j=b.current;if(o)return!1;if(a){j.isTriggeringEvent=!0;let O=new fd("pressup",z,S);return a(O),j.isTriggeringEvent=!1,O.shouldStopPropagation}return!0}),E=Ht(S=>{let z=b.current;z.isPressed&&z.target&&(z.isOverTarget&&z.pointerType!=null&&w(Wi(z.target,S),z.pointerType,!1),z.isPressed=!1,z.isOverTarget=!1,z.activePointerId=null,z.pointerType=null,$(),d||zl(z.target))}),A=Ht(S=>{f&&E(S)}),M=C.useMemo(()=>{let S=b.current,z={onKeyDown(O){if(fg(O.nativeEvent,O.currentTarget)&&O.currentTarget.contains(O.target)){var Z;Bw(O.target,O.key)&&O.preventDefault();let R=!0;if(!S.isPressed&&!O.repeat){S.target=O.currentTarget,S.isPressed=!0,R=v(O,"keyboard");let V=O.currentTarget,W=L=>{fg(L,V)&&!L.repeat&&V.contains(L.target)&&S.target&&T(Wi(S.target,L),"keyboard")};D(Tt(O.currentTarget),"keyup",Uo(W,j),!0)}R&&O.stopPropagation(),O.metaKey&&ia()&&((Z=S.metaKeyEvents)===null||Z===void 0||Z.set(O.key,O.nativeEvent))}else O.key==="Meta"&&(S.metaKeyEvents=new Map)},onClick(O){if(!(O&&!O.currentTarget.contains(O.target))&&O&&O.button===0&&!S.isTriggeringEvent&&!zo.isOpening){let Z=!0;if(o&&O.preventDefault(),!S.ignoreClickAfterPress&&!S.ignoreEmulatedMouseEvents&&!S.isPressed&&(S.pointerType==="virtual"||Ub(O.nativeEvent))){!o&&!l&&Ur(O.currentTarget);let R=v(O,"virtual"),V=T(O,"virtual"),W=w(O,"virtual");Z=R&&V&&W}S.ignoreEmulatedMouseEvents=!1,S.ignoreClickAfterPress=!1,Z&&O.stopPropagation()}}},j=O=>{var Z;if(S.isPressed&&S.target&&fg(O,S.target)){var R;Bw(O.target,O.key)&&O.preventDefault();let W=O.target;w(Wi(S.target,O),"keyboard",S.target.contains(W)),$(),O.key!=="Enter"&&_1(S.target)&&S.target.contains(W)&&!O[kw]&&(O[kw]=!0,zo(S.target,O,!1)),S.isPressed=!1,(R=S.metaKeyEvents)===null||R===void 0||R.delete(O.key)}else if(O.key==="Meta"&&(!((Z=S.metaKeyEvents)===null||Z===void 0)&&Z.size)){var V;let W=S.metaKeyEvents;S.metaKeyEvents=void 0;for(let L of W.values())(V=S.target)===null||V===void 0||V.dispatchEvent(new KeyboardEvent("keyup",L))}};if(typeof PointerEvent<"u"){z.onPointerDown=V=>{if(V.button!==0||!V.currentTarget.contains(V.target))return;if(mz(V.nativeEvent)){S.pointerType="virtual";return}hg(V.currentTarget)&&V.preventDefault(),S.pointerType=V.pointerType;let W=!0;if(!S.isPressed){S.isPressed=!0,S.isOverTarget=!0,S.activePointerId=V.pointerId,S.target=V.currentTarget,!o&&!l&&Ur(V.currentTarget),d||qb(S.target),W=v(V,S.pointerType);let L=V.target;"releasePointerCapture"in L&&L.releasePointerCapture(V.pointerId),D(Tt(V.currentTarget),"pointerup",O,!1),D(Tt(V.currentTarget),"pointercancel",R,!1)}W&&V.stopPropagation()},z.onMouseDown=V=>{V.currentTarget.contains(V.target)&&V.button===0&&(hg(V.currentTarget)&&V.preventDefault(),V.stopPropagation())},z.onPointerUp=V=>{!V.currentTarget.contains(V.target)||S.pointerType==="virtual"||V.button===0&&T(V,S.pointerType||V.pointerType)},z.onPointerEnter=V=>{V.pointerId===S.activePointerId&&S.target&&!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,v(Wi(S.target,V),S.pointerType))},z.onPointerLeave=V=>{V.pointerId===S.activePointerId&&S.target&&S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,w(Wi(S.target,V),S.pointerType,!1),A(V))};let O=V=>{V.pointerId===S.activePointerId&&S.isPressed&&V.button===0&&S.target&&(S.target.contains(V.target)&&S.pointerType!=null?w(Wi(S.target,V),S.pointerType):S.isOverTarget&&S.pointerType!=null&&w(Wi(S.target,V),S.pointerType,!1),S.isPressed=!1,S.isOverTarget=!1,S.activePointerId=null,S.pointerType=null,$(),d||zl(S.target),"ontouchend"in S.target&&V.pointerType!=="mouse"&&D(S.target,"touchend",Z,{once:!0}))},Z=V=>{AA(V.currentTarget)&&V.preventDefault()},R=V=>{E(V)};z.onDragStart=V=>{V.currentTarget.contains(V.target)&&E(V)}}else{z.onMouseDown=R=>{if(R.button!==0||!R.currentTarget.contains(R.target))return;if(hg(R.currentTarget)&&R.preventDefault(),S.ignoreEmulatedMouseEvents){R.stopPropagation();return}S.isPressed=!0,S.isOverTarget=!0,S.target=R.currentTarget,S.pointerType=Ub(R.nativeEvent)?"virtual":"mouse",!o&&!l&&Ur(R.currentTarget),v(R,S.pointerType)&&R.stopPropagation(),D(Tt(R.currentTarget),"mouseup",O,!1)},z.onMouseEnter=R=>{if(!R.currentTarget.contains(R.target))return;let V=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!0,V=v(R,S.pointerType)),V&&R.stopPropagation()},z.onMouseLeave=R=>{if(!R.currentTarget.contains(R.target))return;let V=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!1,V=w(R,S.pointerType,!1),A(R)),V&&R.stopPropagation()},z.onMouseUp=R=>{R.currentTarget.contains(R.target)&&!S.ignoreEmulatedMouseEvents&&R.button===0&&T(R,S.pointerType||"mouse")};let O=R=>{if(R.button===0){if(S.isPressed=!1,$(),S.ignoreEmulatedMouseEvents){S.ignoreEmulatedMouseEvents=!1;return}S.target&&dg(R,S.target)&&S.pointerType!=null?w(Wi(S.target,R),S.pointerType):S.target&&S.isOverTarget&&S.pointerType!=null&&w(Wi(S.target,R),S.pointerType,!1),S.isOverTarget=!1}};z.onTouchStart=R=>{if(!R.currentTarget.contains(R.target))return;let V=Dz(R.nativeEvent);if(!V)return;S.activePointerId=V.identifier,S.ignoreEmulatedMouseEvents=!0,S.isOverTarget=!0,S.isPressed=!0,S.target=R.currentTarget,S.pointerType="touch",!o&&!l&&Ur(R.currentTarget),d||qb(S.target),v(Ta(S.target,R),S.pointerType)&&R.stopPropagation(),D(qa(R.currentTarget),"scroll",Z,!0)},z.onTouchMove=R=>{if(!R.currentTarget.contains(R.target))return;if(!S.isPressed){R.stopPropagation();return}let V=Iw(R.nativeEvent,S.activePointerId),W=!0;V&&dg(V,R.currentTarget)?!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,W=v(Ta(S.target,R),S.pointerType)):S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,W=w(Ta(S.target,R),S.pointerType,!1),A(Ta(S.target,R))),W&&R.stopPropagation()},z.onTouchEnd=R=>{if(!R.currentTarget.contains(R.target))return;if(!S.isPressed){R.stopPropagation();return}let V=Iw(R.nativeEvent,S.activePointerId),W=!0;V&&dg(V,R.currentTarget)&&S.pointerType!=null?(T(Ta(S.target,R),S.pointerType),W=w(Ta(S.target,R),S.pointerType)):S.isOverTarget&&S.pointerType!=null&&(W=w(Ta(S.target,R),S.pointerType,!1)),W&&R.stopPropagation(),S.isPressed=!1,S.activePointerId=null,S.isOverTarget=!1,S.ignoreEmulatedMouseEvents=!0,S.target&&!d&&zl(S.target),$()},z.onTouchCancel=R=>{R.currentTarget.contains(R.target)&&(R.stopPropagation(),S.isPressed&&E(Ta(S.target,R)))};let Z=R=>{S.isPressed&&R.target.contains(S.target)&&E({currentTarget:S.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};z.onDragStart=R=>{R.currentTarget.contains(R.target)&&E(R)}}return z},[D,o,l,$,d,E,A,w,v,T]);return C.useEffect(()=>()=>{var S;d||zl((S=b.current.target)!==null&&S!==void 0?S:void 0)},[d]),{isPressed:u||g,pressProps:ft(p,M)}}function _1(e){return e.tagName==="A"&&e.hasAttribute("href")}function fg(e,t){const{key:n,code:r}=e,i=t,a=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof qa(i).HTMLInputElement&&!PA(i,n)||i instanceof qa(i).HTMLTextAreaElement||i.isContentEditable)&&!((a==="link"||!a&&_1(i))&&n!=="Enter")}function Dz(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Iw(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===t)return i}return null}function Ta(e,t){let n=0,r=0;return t.targetTouches&&t.targetTouches.length===1&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function Wi(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function Cz(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function Ez(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function dg(e,t){let n=t.getBoundingClientRect(),r=Cz(e);return Ez(n,r)}function hg(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function AA(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!_1(e)}function Bw(e,t){return e instanceof HTMLInputElement?!PA(e,t):AA(e)}const Sz=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function PA(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Sz.has(e.type)}function Tz({children:e}){let t=C.useMemo(()=>({register:()=>{}}),[]);return C.createElement(P1.Provider,{value:t},e)}class Az{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function _A(e){let t=C.useRef({isFocused:!1,observer:null});Ct(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Ht(r=>{e==null||e(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,a=o=>{t.current.isFocused=!1,i.disabled&&n(new Az("blur",o)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var o;(o=t.current.observer)===null||o===void 0||o.disconnect();let u=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:u})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:u}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function Pz(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const a=C.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),o=_A(a),u=C.useCallback(l=>{const f=Tt(l.target);l.target===l.currentTarget&&f.activeElement===l.target&&(n&&n(l),i&&i(!0),o(l))},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?u:void 0,onBlur:!t&&(r||i)?a:void 0}}}let Yo=null,_z=new Set,rc=new Map,qo=!1,Wb=!1;function ip(e,t){for(let n of _z)n(e,t)}function Rz(e){return!(e.metaKey||!ia()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function lh(e){qo=!0,Rz(e)&&(Yo="keyboard",ip("keyboard",e))}function Dr(e){Yo="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(qo=!0,ip("pointer",e))}function RA(e){Ub(e)&&(qo=!0,Yo="virtual")}function OA(e){e.target===window||e.target===document||(!qo&&!Wb&&(Yo="virtual",ip("virtual",e)),qo=!1,Wb=!1)}function MA(){qo=!1,Wb=!0}function Lw(e){if(typeof window>"u"||rc.get(qa(e)))return;const t=qa(e),n=Tt(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){qo=!0,r.apply(this,arguments)},n.addEventListener("keydown",lh,!0),n.addEventListener("keyup",lh,!0),n.addEventListener("click",RA,!0),t.addEventListener("focus",OA,!0),t.addEventListener("blur",MA,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Dr,!0),n.addEventListener("pointermove",Dr,!0),n.addEventListener("pointerup",Dr,!0)):(n.addEventListener("mousedown",Dr,!0),n.addEventListener("mousemove",Dr,!0),n.addEventListener("mouseup",Dr,!0)),t.addEventListener("beforeunload",()=>{FA(e)},{once:!0}),rc.set(t,{focus:r})}const FA=(e,t)=>{const n=qa(e),r=Tt(e);t&&r.removeEventListener("DOMContentLoaded",t),rc.has(n)&&(n.HTMLElement.prototype.focus=rc.get(n).focus,r.removeEventListener("keydown",lh,!0),r.removeEventListener("keyup",lh,!0),r.removeEventListener("click",RA,!0),n.removeEventListener("focus",OA,!0),n.removeEventListener("blur",MA,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Dr,!0),r.removeEventListener("pointermove",Dr,!0),r.removeEventListener("pointerup",Dr,!0)):(r.removeEventListener("mousedown",Dr,!0),r.removeEventListener("mousemove",Dr,!0),r.removeEventListener("mouseup",Dr,!0)),rc.delete(n))};function Oz(e){const t=Tt(e);let n;return t.readyState!=="loading"?Lw(e):(n=()=>{Lw(e)},t.addEventListener("DOMContentLoaded",n)),()=>FA(e,n)}typeof document<"u"&&Oz();function Vw(){return Yo!=="pointer"}function mc(){return Yo}function kA(e){Yo=e,ip(e,null)}function Au(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=C.useRef({isFocusWithin:!1}),o=C.useCallback(f=>{a.current.isFocusWithin&&!f.currentTarget.contains(f.relatedTarget)&&(a.current.isFocusWithin=!1,n&&n(f),i&&i(!1))},[n,i,a]),u=_A(o),l=C.useCallback(f=>{!a.current.isFocusWithin&&document.activeElement===f.target&&(r&&r(f),i&&i(!0),a.current.isFocusWithin=!0,u(f))},[r,i,u]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:o}}}let ch=!1,pg=0;function Hb(){ch=!0,setTimeout(()=>{ch=!1},50)}function Nw(e){e.pointerType==="touch"&&Hb()}function Mz(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Nw):document.addEventListener("touchend",Hb),pg++,()=>{pg--,!(pg>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Nw):document.removeEventListener("touchend",Hb))}}function Fz(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[a,o]=C.useState(!1),u=C.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;C.useEffect(Mz,[]);let{hoverProps:l,triggerHoverEnd:f}=C.useMemo(()=>{let d=(g,y)=>{if(u.pointerType=y,i||y==="touch"||u.isHovered||!g.currentTarget.contains(g.target))return;u.isHovered=!0;let b=g.currentTarget;u.target=b,t&&t({type:"hoverstart",target:b,pointerType:y}),n&&n(!0),o(!0)},h=(g,y)=>{if(u.pointerType="",u.target=null,y==="touch"||!u.isHovered)return;u.isHovered=!1;let b=g.currentTarget;r&&r({type:"hoverend",target:b,pointerType:y}),n&&n(!1),o(!1)},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=g=>{ch&&g.pointerType==="mouse"||d(g,g.pointerType)},p.onPointerLeave=g=>{!i&&g.currentTarget.contains(g.target)&&h(g,g.pointerType)}):(p.onTouchStart=()=>{u.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=g=>{!u.ignoreEmulatedMouseEvents&&!ch&&d(g,"mouse"),u.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=g=>{!i&&g.currentTarget.contains(g.target)&&h(g,"mouse")}),{hoverProps:p,triggerHoverEnd:h}},[t,n,r,i,u]);return C.useEffect(()=>{i&&f({currentTarget:u.target},u.pointerType)},[i]),{hoverProps:l,isHovered:a}}function kz(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,a=C.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),o=Ht(l=>{n&&dd(l,t)&&(i&&i(l),a.current.isPointerDown=!0)}),u=Ht(l=>{n&&n(l)});C.useEffect(()=>{let l=a.current;if(r)return;const f=t.current,d=Tt(f);if(typeof PointerEvent<"u"){let h=p=>{l.isPointerDown&&dd(p,t)&&u(p),l.isPointerDown=!1};return d.addEventListener("pointerdown",o,!0),d.addEventListener("pointerup",h,!0),()=>{d.removeEventListener("pointerdown",o,!0),d.removeEventListener("pointerup",h,!0)}}else{let h=g=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&dd(g,t)&&u(g),l.isPointerDown=!1},p=g=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&dd(g,t)&&u(g),l.isPointerDown=!1};return d.addEventListener("mousedown",o,!0),d.addEventListener("mouseup",h,!0),d.addEventListener("touchstart",o,!0),d.addEventListener("touchend",p,!0),()=>{d.removeEventListener("mousedown",o,!0),d.removeEventListener("mouseup",h,!0),d.removeEventListener("touchstart",o,!0),d.removeEventListener("touchend",p,!0)}}},[t,r,o,u])}function dd(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function jw(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(r),t&&n.stopPropagation()}}function IA(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:jw(e.onKeyDown),onKeyUp:jw(e.onKeyUp)}}}function BA(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=C.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:a,removeGlobalListener:o}=Tu(),u=Ht((d,h,p,g)=>{p===0&&g===0||(i.current.didMove||(i.current.didMove=!0,t==null||t({type:"movestart",pointerType:h,shiftKey:d.shiftKey,metaKey:d.metaKey,ctrlKey:d.ctrlKey,altKey:d.altKey})),n==null||n({type:"move",pointerType:h,deltaX:p,deltaY:g,shiftKey:d.shiftKey,metaKey:d.metaKey,ctrlKey:d.ctrlKey,altKey:d.altKey}))}),l=Ht((d,h)=>{zl(),i.current.didMove&&(r==null||r({type:"moveend",pointerType:h,shiftKey:d.shiftKey,metaKey:d.metaKey,ctrlKey:d.ctrlKey,altKey:d.altKey}))});return{moveProps:C.useMemo(()=>{let d={},h=()=>{qb(),i.current.didMove=!1};if(typeof PointerEvent>"u"){let g=$=>{if($.button===0){var v,w,T,E;u($,"mouse",$.pageX-((T=(v=i.current.lastPosition)===null||v===void 0?void 0:v.pageX)!==null&&T!==void 0?T:0),$.pageY-((E=(w=i.current.lastPosition)===null||w===void 0?void 0:w.pageY)!==null&&E!==void 0?E:0)),i.current.lastPosition={pageX:$.pageX,pageY:$.pageY}}},y=$=>{$.button===0&&(l($,"mouse"),o(window,"mousemove",g,!1),o(window,"mouseup",y,!1))};d.onMouseDown=$=>{$.button===0&&(h(),$.stopPropagation(),$.preventDefault(),i.current.lastPosition={pageX:$.pageX,pageY:$.pageY},a(window,"mousemove",g,!1),a(window,"mouseup",y,!1))};let b=$=>{let v=[...$.changedTouches].findIndex(({identifier:M})=>M===i.current.id);if(v>=0){var w,T;let{pageX:M,pageY:S}=$.changedTouches[v];var E,A;u($,"touch",M-((E=(w=i.current.lastPosition)===null||w===void 0?void 0:w.pageX)!==null&&E!==void 0?E:0),S-((A=(T=i.current.lastPosition)===null||T===void 0?void 0:T.pageY)!==null&&A!==void 0?A:0)),i.current.lastPosition={pageX:M,pageY:S}}},D=$=>{[...$.changedTouches].findIndex(({identifier:w})=>w===i.current.id)>=0&&(l($,"touch"),i.current.id=null,o(window,"touchmove",b),o(window,"touchend",D),o(window,"touchcancel",D))};d.onTouchStart=$=>{if($.changedTouches.length===0||i.current.id!=null)return;let{pageX:v,pageY:w,identifier:T}=$.changedTouches[0];h(),$.stopPropagation(),$.preventDefault(),i.current.lastPosition={pageX:v,pageY:w},i.current.id=T,a(window,"touchmove",b,!1),a(window,"touchend",D,!1),a(window,"touchcancel",D,!1)}}else{let g=b=>{if(b.pointerId===i.current.id){var D,$;let T=b.pointerType||"mouse";var v,w;u(b,T,b.pageX-((v=(D=i.current.lastPosition)===null||D===void 0?void 0:D.pageX)!==null&&v!==void 0?v:0),b.pageY-((w=($=i.current.lastPosition)===null||$===void 0?void 0:$.pageY)!==null&&w!==void 0?w:0)),i.current.lastPosition={pageX:b.pageX,pageY:b.pageY}}},y=b=>{if(b.pointerId===i.current.id){let D=b.pointerType||"mouse";l(b,D),i.current.id=null,o(window,"pointermove",g,!1),o(window,"pointerup",y,!1),o(window,"pointercancel",y,!1)}};d.onPointerDown=b=>{b.button===0&&i.current.id==null&&(h(),b.stopPropagation(),b.preventDefault(),i.current.lastPosition={pageX:b.pageX,pageY:b.pageY},i.current.id=b.pointerId,a(window,"pointermove",g,!1),a(window,"pointerup",y,!1),a(window,"pointercancel",y,!1))}}let p=(g,y,b)=>{h(),u(g,"keyboard",y,b),l(g,"keyboard")};return d.onKeyDown=g=>{switch(g.key){case"Left":case"ArrowLeft":g.preventDefault(),g.stopPropagation(),p(g,-1,0);break;case"Right":case"ArrowRight":g.preventDefault(),g.stopPropagation(),p(g,1,0);break;case"Up":case"ArrowUp":g.preventDefault(),g.stopPropagation(),p(g,0,-1);break;case"Down":case"ArrowDown":g.preventDefault(),g.stopPropagation(),p(g,0,1);break}},d},[i,a,o,u,l])}}const Iz=500;function LA(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:a=Iz,accessibilityDescription:o}=e;const u=C.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:f}=Tu(),{pressProps:d}=Kc({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n({...p,type:"longpressstart"}),u.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),i&&i({...p,type:"longpress"}),u.current=void 0},a),p.pointerType==="touch")){let g=y=>{y.preventDefault()};l(p.target,"contextmenu",g,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{f(p.target,"contextmenu",g)},30)},{once:!0})}},onPressEnd(p){u.current&&clearTimeout(u.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),h=Nc(i&&!t?o:void 0);return{longPressProps:ft(d,h)}}function Wo(e){const t=Tt(e);if(mc()==="virtual"){let n=t.activeElement;wA(()=>{t.activeElement===n&&e.isConnected&&Ur(e)})}else Ur(e)}function Bz(e){const t=qa(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:a}=e.ownerDocument.defaultView;let{display:o,visibility:u}=a(e);i=o!=="none"&&u!=="hidden"&&u!=="collapse"}return i}function Lz(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function VA(e,t){return e.nodeName!=="#comment"&&Bz(e)&&Lz(e,t)&&(!e.parentElement||VA(e.parentElement,e))}const Kw=C.createContext(null),Gb="react-aria-focus-scope-restore";let St=null;function Vz(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,a=C.useRef(null),o=C.useRef(null),u=C.useRef([]),{parentNode:l}=C.useContext(Kw)||{},f=C.useMemo(()=>new Zb({scopeRef:u}),[u]);Ct(()=>{let p=l||Xt.root;if(Xt.getTreeNode(p.scopeRef)&&St&&!fh(St,p.scopeRef)){let g=Xt.getTreeNode(St);g&&(p=g)}p.addChild(f),Xt.addNode(f)},[f,l]),Ct(()=>{let p=Xt.getTreeNode(u);p&&(p.contain=!!n)},[n]),Ct(()=>{var p;let g=(p=a.current)===null||p===void 0?void 0:p.nextSibling,y=[],b=D=>D.stopPropagation();for(;g&&g!==o.current;)y.push(g),g.addEventListener(Gb,b),g=g.nextSibling;return u.current=y,()=>{for(let D of y)D.removeEventListener(Gb,b)}},[t]),Wz(u,r,n),Uz(u,n),Hz(u,r,n),qz(u,i),C.useEffect(()=>{const p=Tt(u.current?u.current[0]:void 0).activeElement;let g=null;if(_r(p,u.current)){for(let y of Xt.traverse())y.scopeRef&&_r(p,y.scopeRef.current)&&(g=y);g===Xt.getTreeNode(u)&&(St=g.scopeRef)}},[u]),Ct(()=>()=>{var p,g,y;let b=(y=(g=Xt.getTreeNode(u))===null||g===void 0||(p=g.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&y!==void 0?y:null;(u===St||fh(u,St))&&(!b||Xt.getTreeNode(b))&&(St=b),Xt.removeTreeNode(u)},[u]);let d=C.useMemo(()=>Nz(u),[]),h=C.useMemo(()=>({focusManager:d,parentNode:f}),[f,d]);return C.createElement(Kw.Provider,{value:h},C.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,C.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:o}))}function Nz(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t,u=r||Tt(n[0]).activeElement,l=n[0].previousElementSibling,f=To(n),d=Wn(f,{tabbable:i,accept:o},n);d.currentNode=_r(u,n)?u:l;let h=d.nextNode();return!h&&a&&(d.currentNode=l,h=d.nextNode()),h&&qn(h,!0),h},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t,u=r||Tt(n[0]).activeElement,l=n[n.length-1].nextElementSibling,f=To(n),d=Wn(f,{tabbable:i,accept:o},n);d.currentNode=_r(u,n)?u:l;let h=d.previousNode();return!h&&a&&(d.currentNode=l,h=d.previousNode()),h&&qn(h,!0),h},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=To(n),o=Wn(a,{tabbable:r,accept:i},n);o.currentNode=n[0].previousElementSibling;let u=o.nextNode();return u&&qn(u,!0),u},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=To(n),o=Wn(a,{tabbable:r,accept:i},n);o.currentNode=n[n.length-1].nextElementSibling;let u=o.previousNode();return u&&qn(u,!0),u}}}const R1=["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"])'],jz=R1.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";R1.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Kz=R1.join(':not([hidden]):not([tabindex="-1"]),');function To(e){return e[0].parentElement}function ql(e){let t=Xt.getTreeNode(St);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function Uz(e,t){let n=C.useRef(void 0),r=C.useRef(void 0);Ct(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const a=Tt(i?i[0]:void 0);let o=f=>{if(f.key!=="Tab"||f.altKey||f.ctrlKey||f.metaKey||!ql(e)||f.isComposing)return;let d=a.activeElement,h=e.current;if(!h||!_r(d,h))return;let p=To(h),g=Wn(p,{tabbable:!0},h);if(!d)return;g.currentNode=d;let y=f.shiftKey?g.previousNode():g.nextNode();y||(g.currentNode=f.shiftKey?h[h.length-1].nextElementSibling:h[0].previousElementSibling,y=f.shiftKey?g.previousNode():g.nextNode()),f.preventDefault(),y&&qn(y,!0)},u=f=>{(!St||fh(St,e))&&_r(f.target,e.current)?(St=e,n.current=f.target):ql(e)&&!Ia(f.target,e)?n.current?n.current.focus():St&&St.current&&Yb(St.current):ql(e)&&(n.current=f.target)},l=f=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let d=mc();if(!((d==="virtual"||d===null)&&T1()&&xA())&&a.activeElement&&ql(e)&&!Ia(a.activeElement,e))if(St=e,a.body.contains(f.target)){var p;n.current=f.target,(p=n.current)===null||p===void 0||p.focus()}else St.current&&Yb(St.current)})};return a.addEventListener("keydown",o,!1),a.addEventListener("focusin",u,!1),i==null||i.forEach(f=>f.addEventListener("focusin",u,!1)),i==null||i.forEach(f=>f.addEventListener("focusout",l,!1)),()=>{a.removeEventListener("keydown",o,!1),a.removeEventListener("focusin",u,!1),i==null||i.forEach(f=>f.removeEventListener("focusin",u,!1)),i==null||i.forEach(f=>f.removeEventListener("focusout",l,!1))}},[e,t]),Ct(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function NA(e){return Ia(e)}function _r(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function Ia(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Xt.traverse(Xt.getTreeNode(t)))if(n&&_r(e,n.current))return!0;return!1}function zz(e){return Ia(e,St)}function fh(e,t){var n;let r=(n=Xt.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function qn(e,t=!1){if(e!=null&&!t)try{Wo(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function jA(e,t=!0){let n=e[0].previousElementSibling,r=To(e),i=Wn(r,{tabbable:t},e);i.currentNode=n;let a=i.nextNode();return t&&!a&&(r=To(e),i=Wn(r,{tabbable:!1},e),i.currentNode=n,a=i.nextNode()),a}function Yb(e,t=!0){qn(jA(e,t))}function qz(e,t){const n=C.useRef(t);C.useEffect(()=>{if(n.current){St=e;const r=Tt(e.current?e.current[0]:void 0);!_r(r.activeElement,St.current)&&e.current&&Yb(e.current)}n.current=!1},[e])}function Wz(e,t,n){Ct(()=>{if(t||n)return;let r=e.current;const i=Tt(r?r[0]:void 0);let a=o=>{let u=o.target;_r(u,e.current)?St=e:NA(u)||(St=null)};return i.addEventListener("focusin",a,!1),r==null||r.forEach(o=>o.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),r==null||r.forEach(o=>o.removeEventListener("focusin",a,!1))}},[e,t,n])}function Uw(e){let t=Xt.getTreeNode(St);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function Hz(e,t,n){const r=C.useRef(typeof document<"u"?Tt(e.current?e.current[0]:void 0).activeElement:null);Ct(()=>{let i=e.current;const a=Tt(i?i[0]:void 0);if(!t||n)return;let o=()=>{(!St||fh(St,e))&&_r(a.activeElement,e.current)&&(St=e)};return a.addEventListener("focusin",o,!1),i==null||i.forEach(u=>u.addEventListener("focusin",o,!1)),()=>{a.removeEventListener("focusin",o,!1),i==null||i.forEach(u=>u.removeEventListener("focusin",o,!1))}},[e,n]),Ct(()=>{const i=Tt(e.current?e.current[0]:void 0);if(!t)return;let a=o=>{if(o.key!=="Tab"||o.altKey||o.ctrlKey||o.metaKey||!ql(e)||o.isComposing)return;let u=i.activeElement;if(!Ia(u,e)||!Uw(e))return;let l=Xt.getTreeNode(e);if(!l)return;let f=l.nodeToRestore,d=Wn(i.body,{tabbable:!0});d.currentNode=u;let h=o.shiftKey?d.previousNode():d.nextNode();if((!f||!i.body.contains(f)||f===i.body)&&(f=void 0,l.nodeToRestore=void 0),(!h||!Ia(h,e))&&f){d.currentNode=f;do h=o.shiftKey?d.previousNode():d.nextNode();while(Ia(h,e));o.preventDefault(),o.stopPropagation(),h?qn(h,!0):NA(f)?qn(f,!0):u.blur()}};return n||i.addEventListener("keydown",a,!0),()=>{n||i.removeEventListener("keydown",a,!0)}},[e,t,n]),Ct(()=>{const i=Tt(e.current?e.current[0]:void 0);if(!t)return;let a=Xt.getTreeNode(e);if(a){var o;return a.nodeToRestore=(o=r.current)!==null&&o!==void 0?o:void 0,()=>{let u=Xt.getTreeNode(e);if(!u)return;let l=u.nodeToRestore;if(t&&l&&(i.activeElement&&Ia(i.activeElement,e)||i.activeElement===i.body&&Uw(e))){let f=Xt.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let d=f.getTreeNode(e);for(;d;){if(d.nodeToRestore&&d.nodeToRestore.isConnected){zw(d.nodeToRestore);return}d=d.parent}for(d=f.getTreeNode(e);d;){if(d.scopeRef&&d.scopeRef.current&&Xt.getTreeNode(d.scopeRef)){let h=jA(d.scopeRef.current,!0);zw(h);return}d=d.parent}}})}}}},[e,t])}function zw(e){e.dispatchEvent(new CustomEvent(Gb,{bubbles:!0,cancelable:!0}))&&qn(e)}function Wn(e,t,n){let r=t!=null&&t.tabbable?Kz:jz,i=Tt(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var o;return!(t==null||(o=t.from)===null||o===void 0)&&o.contains(a)?NodeFilter.FILTER_REJECT:a.matches(r)&&VA(a)&&(!n||_r(a,n))&&(!(t!=null&&t.accept)||t.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}function ap(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:u=t.accept}=n,l=i||Tt(r).activeElement,f=Wn(r,{tabbable:a,accept:u});r.contains(l)&&(f.currentNode=l);let d=f.nextNode();return!d&&o&&(f.currentNode=r,d=f.nextNode()),d&&qn(d,!0),d},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:u=t.accept}=n,l=i||Tt(r).activeElement,f=Wn(r,{tabbable:a,accept:u});if(r.contains(l))f.currentNode=l;else{let h=mg(f);return h&&qn(h,!0),h??null}let d=f.previousNode();if(!d&&o){f.currentNode=r;let h=mg(f);if(!h)return null;d=h}return d&&qn(d,!0),d??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,u=Wn(r,{tabbable:i,accept:a}).nextNode();return u&&qn(u,!0),u},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,o=Wn(r,{tabbable:i,accept:a}),u=mg(o);return u&&qn(u,!0),u??null}}}function mg(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class O1{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n??null);if(!i)return;let a=new Zb({scopeRef:t});i.addChild(a),a.parent=i,this.fastMap.set(t,a),r&&(a.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let a of this.traverse())a!==n&&n.nodeToRestore&&a.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&_r(a.nodeToRestore,n.scopeRef.current)&&(a.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(a=>r&&r.addChild(a))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new O1;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(t=i.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Zb({scopeRef:null}),this.fastMap.set(null,this.root)}}class Zb{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 Xt=new O1,Gz=C.createContext(null);function Yz(e){let t=C.useContext(Gz)||{};DA(t,e);let{ref:n,...r}=t;return r}function M1(e,t){let{focusProps:n}=Pz(e),{keyboardProps:r}=IA(e),i=ft(n,r),a=Yz(t),o=e.isDisabled?{}:a,u=C.useRef(e.autoFocus);return C.useEffect(()=>{u.current&&t.current&&Wo(t.current),u.current=!1},[t]),{focusableProps:ft({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},o)}}const Zz=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Jz=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Xz(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return Zz.has(n.script)}let t=e.split("-")[0];return Jz.has(t)}const Qz=Symbol.for("react-aria.i18n.locale");function KA(){let e=typeof window<"u"&&window[Qz]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Xz(e)?"rtl":"ltr"}}let Jb=KA(),Wl=new Set;function qw(){Jb=KA();for(let e of Wl)e(Jb)}function eq(){let e=C1(),[t,n]=C.useState(Jb);return C.useEffect(()=>(Wl.size===0&&window.addEventListener("languagechange",qw),Wl.add(n),()=>{Wl.delete(n),Wl.size===0&&window.removeEventListener("languagechange",qw)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const tq=C.createContext(null);function Sn(){let e=eq();return C.useContext(tq)||e}const nq=Symbol.for("react-aria.i18n.locale"),rq=Symbol.for("react-aria.i18n.strings");let _s;class Za{getStringForLocale(t,n){let i=this.getStringsForLocale(n)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${n} locale`);return i}getStringsForLocale(t){let n=this.strings[t];return n||(n=iq(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[nq];if(_s===void 0){let i=window[rq];if(!i)return null;_s={};for(let a in i)_s[a]=new Za({[n]:i[a]},n)}let r=_s==null?void 0:_s[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,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function iq(e,t,n="en-US"){if(t[e])return t[e];let r=aq(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function aq(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const Ww=new Map,Hw=new Map;class UA{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let a=this.locale+":"+r,o=Ww.get(a);o||(o=new Intl.PluralRules(this.locale,{type:r}),Ww.set(a,o));let u=o.select(t);return i=n[u]||n.other,typeof i=="function"?i():i}number(t){let n=Hw.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Hw.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const Gw=new WeakMap;function oq(e){let t=Gw.get(e);return t||(t=new Za(e),Gw.set(e,t)),t}function zA(e,t){return t&&Za.getGlobalDictionaryForPackage(t)||oq(e)}function Ri(e,t){let{locale:n}=Sn(),r=zA(e,t);return C.useMemo(()=>new UA(n,r),[n,r])}function Gs(e,t){return e-t*Math.floor(e/t)}const qA=1721426;function Ao(e,t,n,r){t=Uc(e,t);let i=t-1,a=-2;return n<=2?a=0:Ba(t)&&(a=-1),qA-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function Ba(e){return e%4===0&&(e%100!==0||e%400===0)}function Uc(e,t){return e==="BC"?1-t:t}function op(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const sq={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class In{fromJulianDay(t){let n=t,r=n-qA,i=Math.floor(r/146097),a=Gs(r,146097),o=Math.floor(a/36524),u=Gs(a,36524),l=Math.floor(u/1461),f=Gs(u,1461),d=Math.floor(f/365),h=i*400+o*100+l*4+d+(o!==4&&d!==4?1:0),[p,g]=op(h),y=n-Ao(p,g,1,1),b=2;n<Ao(p,g,3,1)?b=0:Ba(g)&&(b=1);let D=Math.floor(((y+b)*12+373)/367),$=n-Ao(p,g,D,1)+1;return new Yt(p,g,D,$)}toJulianDay(t){return Ao(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return sq[Ba(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Ba(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const uq={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function on(e,t){return t=Lt(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function Xb(e,t){return e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function WA(e,t){return on(e,sp(t))}const lq={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function F1(e,t,n){let r=e.calendar.toJulianDay(e),i=n?lq[n]:mq(t),a=Math.ceil(r+1-i)%7;return a<0&&(a+=7),a}function HA(e){return Ji(Date.now(),e)}function sp(e){return kn(HA(e))}function GA(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function YA(e,t){return Yw(e)-Yw(t)}function Yw(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let gg=null;function zc(){return gg==null&&(gg=new Intl.DateTimeFormat().resolvedOptions().timeZone),gg}function qc(e){return e.subtract({days:e.day-1})}function Qb(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function cq(e){return qc(e.subtract({months:e.month-1}))}function fq(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function dq(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function gc(e,t,n){let r=F1(e,t,n);return e.subtract({days:r})}function hq(e,t,n){return gc(e,t,n).add({days:6})}const Zw=new Map;function pq(e){if(Intl.Locale){let n=Zw.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&Zw.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function mq(e){let t=pq(e);return t&&uq[t]||0}function gq(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((F1(qc(e),t,n)+r)/7)}function k1(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function I1(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function fu(e){e=Lt(e,new In);let t=Uc(e.era,e.year);return ZA(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function ZA(e,t,n,r,i,a,o){let u=new Date;return u.setUTCHours(r,i,a,o),u.setUTCFullYear(e,t-1,n),u.getTime()}function e0(e,t){if(t==="UTC")return 0;if(e>0&&t===zc())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:a,minute:o,second:u}=JA(e,t);return ZA(n,r,i,a,o,u,0)-Math.floor(e/1e3)*1e3}const Jw=new Map;function JA(e,t){let n=Jw.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),Jw.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let a of r)a.type!=="literal"&&(i[a.type]=a.value);return{year:i.era==="BC"||i.era==="B"?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour==="24"?0:+i.hour,minute:+i.minute,second:+i.second}}const Xw=864e5;function yq(e,t,n,r){return(n===r?[n]:[n,r]).filter(a=>vq(e,t,a))}function vq(e,t,n){let r=JA(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function Zi(e,t,n="compatible"){let r=Hr(e);if(t==="UTC")return fu(r);if(t===zc()&&n==="compatible"){r=Lt(r,new In);let l=new Date,f=Uc(r.era,r.year);return l.setFullYear(f,r.month-1,r.day),l.setHours(r.hour,r.minute,r.second,r.millisecond),l.getTime()}let i=fu(r),a=e0(i-Xw,t),o=e0(i+Xw,t),u=yq(r,t,i-a,i-o);if(u.length===1)return u[0];if(u.length>1)switch(n){case"compatible":case"earlier":return u[0];case"later":return u[u.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-a,i-o);case"compatible":case"later":return Math.max(i-a,i-o);case"reject":throw new RangeError("No such absolute time found")}}function XA(e,t,n="compatible"){return new Date(Zi(e,t,n))}function Ji(e,t){let n=e0(e,t),r=new Date(e+n),i=r.getUTCFullYear(),a=r.getUTCMonth()+1,o=r.getUTCDate(),u=r.getUTCHours(),l=r.getUTCMinutes(),f=r.getUTCSeconds(),d=r.getUTCMilliseconds();return new bc(i<1?"BC":"AD",i<1?-i+1:i,a,o,t,n,u,l,f,d)}function kn(e){return new Yt(e.calendar,e.era,e.year,e.month,e.day)}function Hr(e,t){let n=0,r=0,i=0,a=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:a}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:a}=t),new vc(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function Qw(e){return new Wc(e.hour,e.minute,e.second,e.millisecond)}function Lt(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,Ho(r),r}function QA(e,t,n){if(e instanceof bc)return e.timeZone===t?e:$q(e,t);let r=Zi(e,t,n);return Ji(r,t)}function bq(e){let t=fu(e)-e.offset;return new Date(t)}function $q(e,t){let n=fu(e)-e.offset;return Lt(Ji(n,t),e.calendar)}const _l=36e5;function up(e,t){let n=e.copy(),r="hour"in n?rP(n,t):0;t0(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,n0(n),eP(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,xq(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){var a,o;let l=(a=(o=n.calendar).isInverseEra)===null||a===void 0?void 0:a.call(o,n);n.year=i,n.month=l?1:n.calendar.getMonthsInYear(n),n.day=l?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let u=n.calendar.getMonthsInYear(n);return n.month>u&&(n.month=u,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function t0(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function n0(e){for(;e.month<1;)t0(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,t0(e,1)}function xq(e){for(;e.day<1;)e.month--,n0(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,n0(e)}function eP(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Ho(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),eP(e)}function B1(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function tP(e,t){return up(e,B1(t))}function L1(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),Ho(n),n}function yc(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),nP(n),n}function wq(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=hd(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=hd(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=hd(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=hd(e.hour,24),t}function nP(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function hd(e,t){let n=e%t;return n<0&&(n+=t),n}function rP(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,wq(e)}function iP(e,t){let n=e.copy();return rP(n,t),n}function Dq(e,t){return iP(e,B1(t))}function V1(e,t,n,r){let i=e.copy();switch(t){case"era":{let u=e.calendar.getEras(),l=u.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=Xi(l,n,0,u.length-1,r==null?void 0:r.round),i.era=u[l],Ho(i);break}case"year":var a,o;!((a=(o=i.calendar).isInverseEra)===null||a===void 0)&&a.call(o,i)&&(n=-n),i.year=Xi(e.year,n,-1/0,9999,r==null?void 0:r.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=Xi(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=Xi(e.day,n,1,e.calendar.getDaysInMonth(e),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),Ho(i),i}function N1(e,t,n,r){let i=e.copy();switch(t){case"hour":{let a=e.hour,o=0,u=23;if((r==null?void 0:r.hourCycle)===12){let l=a>=12;o=l?12:0,u=l?23:11}i.hour=Xi(a,n,o,u,r==null?void 0:r.round);break}case"minute":i.minute=Xi(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=Xi(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=Xi(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function Xi(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let a=Math.abs(t);t>0?e=Math.ceil(e/a)*a:e=Math.floor(e/a)*a,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function aP(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let i=up(Hr(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=Zi(i,e.timeZone)}else n=fu(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=Ji(n,e.timeZone);return Lt(r,e.calendar)}function Cq(e,t){return aP(e,B1(t))}function Eq(e,t,n,r){switch(t){case"hour":{let i=0,a=23;if((r==null?void 0:r.hourCycle)===12){let y=e.hour>=12;i=y?12:0,a=y?23:11}let o=Hr(e),u=Lt(yc(o,{hour:i}),new In),l=[Zi(u,e.timeZone,"earlier"),Zi(u,e.timeZone,"later")].filter(y=>Ji(y,e.timeZone).day===u.day)[0],f=Lt(yc(o,{hour:a}),new In),d=[Zi(f,e.timeZone,"earlier"),Zi(f,e.timeZone,"later")].filter(y=>Ji(y,e.timeZone).day===f.day).pop(),h=fu(e)-e.offset,p=Math.floor(h/_l),g=h%_l;return h=Xi(p,n,Math.floor(l/_l),Math.floor(d/_l),r==null?void 0:r.round)*_l+g,Lt(Ji(h,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return N1(e,t,n,r);case"era":case"year":case"month":case"day":{let i=V1(Hr(e),t,n,r),a=Zi(i,e.timeZone);return Lt(Ji(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function Sq(e,t,n){let r=Hr(e),i=yc(L1(r,t),t);if(i.compare(r)===0)return e;let a=Zi(i,e.timeZone,n);return Lt(Ji(a,e.timeZone),e.calendar)}const Tq=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,Aq=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/;function Pq(e){let t=e.match(Tq);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new Yt(di(t[1],0,9999),di(t[2],1,12),1);return n.day=di(t[3],0,n.calendar.getDaysInMonth(n)),n}function _q(e){let t=e.match(Aq);if(!t)throw new Error("Invalid ISO 8601 date time string: "+e);let n=di(t[1],-9999,9999),r=n<1?"BC":"AD",i=new vc(r,n<1?-n+1:n,di(t[2],1,12),1,t[4]?di(t[4],0,23):0,t[5]?di(t[5],0,59):0,t[6]?di(t[6],0,59):0,t[7]?di(t[7],0,1/0)*1e3:0);return i.day=di(t[3],0,i.calendar.getDaysInMonth(i)),i}function di(e,t,n){let r=Number(e);if(r<t||r>n)throw new RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function oP(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function sP(e){let t=Lt(e,new In),n;return t.era==="BC"?n=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):n=String(t.year).padStart(4,"0"),`${n}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function uP(e){return`${sP(e)}T${oP(e)}`}function Rq(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function Oq(e){return`${uP(e)}${Rq(e.offset)}[${e.timeZone}]`}function j1(e){let t=typeof e[0]=="object"?e.shift():new In,n;if(typeof e[0]=="string")n=e.shift();else{let o=t.getEras();n=o[o.length-1]}let r=e.shift(),i=e.shift(),a=e.shift();return[t,n,r,i,a]}var Mq=new WeakMap;class Yt{copy(){return this.era?new Yt(this.calendar,this.era,this.year,this.month,this.day):new Yt(this.calendar,this.year,this.month,this.day)}add(t){return up(this,t)}subtract(t){return tP(this,t)}set(t){return L1(this,t)}cycle(t,n,r){return V1(this,t,n,r)}toDate(t){return XA(this,t)}toString(){return sP(this)}compare(t){return GA(this,t)}constructor(...t){jc(this,Mq,{writable:!0,value:void 0});let[n,r,i,a,o]=j1(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,Ho(this)}}var Fq=new WeakMap;class Wc{copy(){return new Wc(this.hour,this.minute,this.second,this.millisecond)}add(t){return iP(this,t)}subtract(t){return Dq(this,t)}set(t){return yc(this,t)}cycle(t,n,r){return N1(this,t,n,r)}toString(){return oP(this)}compare(t){return YA(this,t)}constructor(t=0,n=0,r=0,i=0){jc(this,Fq,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,nP(this)}}var kq=new WeakMap;class vc{copy(){return this.era?new vc(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new vc(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return up(this,t)}subtract(t){return tP(this,t)}set(t){return L1(yc(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return V1(this,t,n,r);default:return N1(this,t,n,r)}}toDate(t,n){return XA(this,t,n)}toString(){return uP(this)}compare(t){let n=GA(this,t);return n===0?YA(this,Hr(t)):n}constructor(...t){jc(this,kq,{writable:!0,value:void 0});let[n,r,i,a,o]=j1(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Ho(this)}}var Iq=new WeakMap;class bc{copy(){return this.era?new bc(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new bc(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return aP(this,t)}subtract(t){return Cq(this,t)}set(t,n){return Sq(this,t,n)}cycle(t,n,r){return Eq(this,t,n,r)}toDate(){return bq(this)}toString(){return Oq(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-QA(t,this.timeZone).toDate().getTime()}constructor(...t){jc(this,Iq,{writable:!0,value:void 0});let[n,r,i,a,o]=j1(t),u=t.shift(),l=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,this.timeZone=u,this.offset=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Ho(this)}}const Ys=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],Bq=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Ld=[1867,1911,1925,1988,2018],Ma=["meiji","taisho","showa","heisei","reiwa"];function eD(e){const t=Ys.findIndex(([n,r,i])=>e.year<n||e.year===n&&e.month<r||e.year===n&&e.month===r&&e.day<i);return t===-1?Ys.length-1:t===0?0:t-1}function yg(e){let t=Ld[Ma.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Yt(e.year+t,e.month,e.day)}class Lq extends In{fromJulianDay(t){let n=super.fromJulianDay(t),r=eD(n);return new Yt(this,Ma[r],n.year-Ld[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(yg(t))}balanceDate(t){let n=yg(t),r=eD(n);Ma[r]!==t.era&&(t.era=Ma[r],t.year=n.year-Ld[r]),this.constrainDate(t)}constrainDate(t){let n=Ma.indexOf(t.era),r=Bq[n];if(r!=null){let[i,a,o]=r,u=i-Ld[n];t.year=Math.max(1,Math.min(u,t.year)),t.year===u&&(t.month=Math.min(a,t.month),t.month===a&&(t.day=Math.min(o,t.day)))}if(t.year===1&&n>=0){let[,i,a]=Ys[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(a,t.day))}}getEras(){return Ma}getYearsInEra(t){let n=Ma.indexOf(t.era),r=Ys[n],i=Ys[n+1];if(i==null)return 9999-r[0]+1;let a=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&a++,a}getDaysInMonth(t){return super.getDaysInMonth(yg(t))}getMinimumMonthInYear(t){let n=tD(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=tD(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function tD(e){if(e.year===1){let t=Ma.indexOf(e.era);return Ys[t]}}const lP=-543;class Vq extends In{fromJulianDay(t){let n=super.fromJulianDay(t),r=Uc(n.era,n.year);return new Yt(this,r-lP,n.month,n.day)}toJulianDay(t){return super.toJulianDay(nD(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(nD(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function nD(e){let[t,n]=op(e.year+lP);return new Yt(t,n,e.month,e.day)}const dh=1911;function cP(e){return e.era==="minguo"?e.year+dh:1-e.year+dh}function rD(e){let t=e-dh;return t>0?["minguo",t]:["before_minguo",1-t]}class Nq extends In{fromJulianDay(t){let n=super.fromJulianDay(t),r=Uc(n.era,n.year),[i,a]=rD(r);return new Yt(this,i,a,n.month,n.day)}toJulianDay(t){return super.toJulianDay(iD(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=rD(cP(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(iD(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-dh}constructor(...t){super(...t),this.identifier="roc"}}function iD(e){let[t,n]=op(cP(e));return new Yt(t,n,e.month,e.day)}const aD=1948320,oD=[0,31,62,93,124,155,186,216,246,276,306,336];class jq{fromJulianDay(t){let n=t-aD,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),a=n-i,o=a<216?Math.floor(a/31):Math.floor((a-6)/30),u=a-oD[o]+1;return new Yt(this,r,o+1,u)}toJulianDay(t){let n=aD-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=oD[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||Gs(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const vg=78,sD=80;class Kq extends In{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-vg,i=t-Ao(n.era,n.year,1,1),a;i<sD?(r--,a=Ba(n.year-1)?31:30,i+=a+155+90+10):(a=Ba(n.year)?31:30,i-=sD);let o,u;if(i<a)o=1,u=i+1;else{let l=i-a;l<155?(o=Math.floor(l/31)+2,u=l%31+1):(l-=155,o=Math.floor(l/30)+7,u=l%30+1)}return new Yt(this,r,o,u)}toJulianDay(t){let n=t.year+vg,[r,i]=op(n),a,o;return Ba(i)?(a=31,o=Ao(r,i,3,21)):(a=30,o=Ao(r,i,3,22)),t.month===1?o+t.day-1:(o+=a+Math.min(t.month-2,5)*31,t.month>=8&&(o+=(t.month-7)*30),o+=t.day-1,o)}getDaysInMonth(t){return t.month===1&&Ba(t.year+vg)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const hh=1948440,uD=1948439,xr=1300,Rs=1600,Uq=460322;function ph(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function fP(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+ph(t,r,1,1)))/29.5)+1),a=n-ph(t,r,i,1)+1;return new Yt(e,r,i,a)}function lD(e){return(14+11*e)%30<11}class K1{fromJulianDay(t){return fP(this,hh,t)}toJulianDay(t){return ph(hh,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&lD(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return lD(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class zq extends K1{fromJulianDay(t){return fP(this,uD,t)}toJulianDay(t){return ph(uD,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const qq="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let r0,Zs;function Vd(e){return Uq+Zs[e-xr]}function Hl(e,t){let n=e-xr,r=1<<11-(t-1);return r0[n]&r?30:29}function cD(e,t){let n=Vd(e);for(let r=1;r<t;r++)n+=Hl(e,r);return n}function fD(e){return Zs[e+1-xr]-Zs[e-xr]}class Wq extends K1{fromJulianDay(t){let n=t-hh,r=Vd(xr),i=Vd(Rs);if(n<r||n>i)return super.fromJulianDay(t);{let a=xr-1,o=1,u=1;for(;u>0;){a++,u=n-Vd(a)+1;let l=fD(a);if(u===l){o=12;break}else if(u<l){let f=Hl(a,o);for(o=1;u>f;)u-=f,o++,f=Hl(a,o);break}}return new Yt(this,a,o,n-cD(a,o)+1)}}toJulianDay(t){return t.year<xr||t.year>Rs?super.toJulianDay(t):hh+cD(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<xr||t.year>Rs?super.getDaysInMonth(t):Hl(t.year,t.month)}getDaysInYear(t){return t.year<xr||t.year>Rs?super.getDaysInYear(t):fD(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",r0||(r0=new Uint16Array(Uint8Array.from(atob(qq),t=>t.charCodeAt(0)).buffer)),!Zs){Zs=new Uint32Array(Rs-xr+1);let t=0;for(let n=xr;n<=Rs;n++){Zs[n-xr]=t;for(let r=1;r<=12;r++)t+=Hl(n,r)}}}}const dD=347997,dP=1080,hP=24*dP,Hq=29,Gq=12*dP+793,Yq=Hq*hP+Gq;function Do(e){return Gs(e*7+1,19)<7}function Nd(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return Gs(3*(r+1),7)<3&&(r+=1),r}function Zq(e){let t=Nd(e-1),n=Nd(e);return Nd(e+1)-n===356?2:n-t===382?1:0}function ic(e){return Nd(e)+Zq(e)}function pP(e){return ic(e+1)-ic(e)}function Jq(e){let t=pP(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function pd(e,t){if(t>=6&&!Do(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=Jq(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?Do(e)?30:0:30}class Xq{fromJulianDay(t){let n=t-dD,r=n*hP/Yq,i=Math.floor((19*r+234)/235)+1,a=ic(i),o=Math.floor(n-a);for(;o<1;)i--,a=ic(i),o=Math.floor(n-a);let u=1,l=0;for(;l<o;)l+=pd(i,u),u++;u--,l-=pd(i,u);let f=o-l;return new Yt(this,i,u,f)}toJulianDay(t){let n=ic(t.year);for(let r=1;r<t.month;r++)n+=pd(t.year,r);return n+t.day+dD}getDaysInMonth(t){return pd(t.year,t.month)}getMonthsInYear(t){return Do(t.year)?13:12}getDaysInYear(t){return pP(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(Do(n.year)&&!Do(t.year)&&n.month>6?t.month--:!Do(n.year)&&Do(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const i0=1723856,hD=1824665,a0=5500;function mh(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function U1(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-mh(e,n,1,1))/30),i=t+1-mh(e,n,r,1);return[n,r,i]}function mP(e){return Math.floor(e%4/3)}function gP(e,t){return t%13!==0?30:mP(e)+5}class z1{fromJulianDay(t){let[n,r,i]=U1(i0,t),a="AM";return n<=0&&(a="AA",n+=a0),new Yt(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=a0),mh(i0,n,t.month,t.day)}getDaysInMonth(t){return gP(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+mP(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class Qq extends z1{fromJulianDay(t){let[n,r,i]=U1(i0,t);return n+=a0,new Yt(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class eW extends z1{fromJulianDay(t){let[n,r,i]=U1(hD,t),a="CE";return n<=0&&(a="BCE",n=1-n),new Yt(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),mh(hD,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),gP(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function tW(e){switch(e){case"buddhist":return new Vq;case"ethiopic":return new z1;case"ethioaa":return new Qq;case"coptic":return new eW;case"hebrew":return new Xq;case"indian":return new Kq;case"islamic-civil":return new K1;case"islamic-tbla":return new zq;case"islamic-umalqura":return new Wq;case"japanese":return new Lq;case"persian":return new jq;case"roc":return new Nq;case"gregory":default:return new In}}let bg=new Map;class Er{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),i=this.formatter.formatToParts(n);return[...r.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return iW()&&(this.resolvedHourCycle||(this.resolvedHourCycle=aW(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,n={}){this.formatter=yP(t,n),this.options=n}}const nW={true:{ja:"h11"},false:{}};function yP(e,t={}){if(typeof t.hour12=="boolean"&&rW()){t={...t};let i=nW[String(t.hour12)][e.split("-")[0]],a=t.hour12?"h12":"h23";t.hourCycle=i??a,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(bg.has(n))return bg.get(n);let r=new Intl.DateTimeFormat(e,t);return bg.set(n,r),r}let $g=null;function rW(){return $g==null&&($g=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),$g}let xg=null;function iW(){return xg==null&&(xg=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),xg}function aW(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=yP(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(a=>a.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(a=>a.type==="hour").value,10);if(r===0&&i===23)return"h23";if(r===24&&i===23)return"h24";if(r===0&&i===11)return"h11";if(r===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}function $i(e){e=EA(e??{},oW);let{locale:t}=Sn();return C.useMemo(()=>new Er(t,e),[t,e])}function oW(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(t[i]!==e[i])return!1;return!0}let wg=new Map,o0=!1;try{o0=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let gh=!1;try{gh=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const vP={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class bP{format(t){let n="";if(!o0&&this.options.signDisplay!=null?n=uW(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!gh){var r;let{unit:i,unitDisplay:a="short",locale:o}=this.resolvedOptions();if(!i)return n;let u=(r=vP[i])===null||r===void 0?void 0:r[a];n+=u[o]||u.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(n);return[...r.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!o0&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!gh&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=sW(t,n),this.options=n}}function sW(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!gh){var r;let{unit:o,unitDisplay:u="short"}=t;if(!o)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=vP[o])===null||r===void 0)&&r[u]))throw new Error(`Unsupported unit ${o} with unitDisplay = ${u}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((o,u)=>o[0]<u[0]?-1:1).join():"");if(wg.has(i))return wg.get(i);let a=new Intl.NumberFormat(e,t);return wg.set(i,a),a}function uW(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let i=e.format(-n),a=e.format(n),o=i.replace(a,"").replace(/\u200e|\u061C/,"");return[...o].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(a,"!!!").replace(o,"+").replace("!!!",a)}else return e.format(n)}}const lW=new RegExp("^.*\\(.*\\).*$"),cW=["latn","arab","hanidec","deva","beng"];class $P{parse(t){return Dg(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return Dg(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return Dg(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const pD=new Map;function Dg(e,t,n){let r=mD(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of cW)if(i!==r.options.numberingSystem){let a=mD(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(a.isValidPartialNumber(n))return a}}return r}function mD(e,t){let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():""),r=pD.get(n);return r||(r=new fW(e,t),pD.set(n,r)),r}class fW{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=md(n,this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let o=n.indexOf("-");n=n.replace("-","");let u=n.indexOf(".");u===-1&&(u=n.length),n=n.replace(".",""),u-2===0?n=`0.${n}`:u-2===-1?n=`0.0${n}`:u-2===-2?n="0.00":n=`${n.slice(0,u-2)}.${n.slice(u-2)}`,o>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var i,a;let o={...this.options,style:"decimal",minimumFractionDigits:Math.min(((i=this.options.minimumFractionDigits)!==null&&i!==void 0?i:0)+2,20),maximumFractionDigits:Math.min(((a=this.options.maximumFractionDigits)!==null&&a!==void 0?a:0)+2,20)};return new $P(this.locale,o).parse(new bP(this.locale,o).format(r))}return this.options.currencySign==="accounting"&&lW.test(t)&&(r=-1*r),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=md(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=md(t,"."," ")),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=md(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=hW(t,this.formatter,this.options,n);var r,i;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((i=this.options.maximumFractionDigits)!==null&&i!==void 0?i:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const gD=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),dW=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function hW(e,t,n,r){var i,a,o,u;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),f=l.formatToParts(-10000.111),d=l.formatToParts(10000.111),h=dW.map(j=>l.formatToParts(j));var p;let g=(p=(i=f.find(j=>j.type==="minusSign"))===null||i===void 0?void 0:i.value)!==null&&p!==void 0?p:"-",y=(a=d.find(j=>j.type==="plusSign"))===null||a===void 0?void 0:a.value;!y&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(y="+");let D=(o=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(j=>j.type==="decimal"))===null||o===void 0?void 0:o.value,$=(u=f.find(j=>j.type==="group"))===null||u===void 0?void 0:u.value,v=f.filter(j=>!gD.has(j.type)).map(j=>yD(j.value)),w=h.flatMap(j=>j.filter(O=>!gD.has(O.type)).map(O=>yD(O.value))),T=[...new Set([...v,...w])].sort((j,O)=>O.length-j.length),E=T.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${T.join("|")}|[\\p{White_Space}]`,"gu"),A=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),M=new Map(A.map((j,O)=>[j,O])),S=new RegExp(`[${A.join("")}]`,"g");return{minusSign:g,plusSign:y,decimal:D,group:$,literals:E,numeral:S,index:j=>String(M.get(j))}}function md(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function yD(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function pW(e={}){let{locale:t}=Sn();return C.useMemo(()=>new bP(t,e),[t,e])}let Cg=new Map;function xP(e){let{locale:t}=Sn(),n=t+(e?Object.entries(e).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(Cg.has(n))return Cg.get(n);let r=new Intl.Collator(t,e);return Cg.set(n,r),r}function wP(e){let t=xP({usage:"search",...e}),n=C.useCallback((a,o)=>o.length===0?!0:(a=a.normalize("NFC"),o=o.normalize("NFC"),t.compare(a.slice(0,o.length),o)===0),[t]),r=C.useCallback((a,o)=>o.length===0?!0:(a=a.normalize("NFC"),o=o.normalize("NFC"),t.compare(a.slice(-o.length),o)===0),[t]),i=C.useCallback((a,o)=>{if(o.length===0)return!0;a=a.normalize("NFC"),o=o.normalize("NFC");let u=0,l=o.length;for(;u+l<=a.length;u++){let f=a.slice(u,u+l);if(t.compare(o,f)===0)return!0}return!1},[t]);return C.useMemo(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}function mW(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:a,onPressEnd:o,onPressUp:u,onPressChange:l,preventFocusOnPress:f,allowFocusWhenDisabled:d,onClick:h,href:p,target:g,rel:y,type:b="button"}=e,D;n==="button"?D={type:b,disabled:r}:D={role:"button",tabIndex:r?void 0:0,href:n==="a"&&!r?p:void 0,target:n==="a"?g:void 0,type:n==="input"?b:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?y:void 0};let{pressProps:$,isPressed:v}=Kc({onPressStart:a,onPressEnd:o,onPressChange:l,onPress:i,onPressUp:u,isDisabled:r,preventFocusOnPress:f,ref:t}),{focusableProps:w}=M1(e,t);d&&(w.tabIndex=r?-1:w.tabIndex);let T=ft(w,$,ua(e,{labelable:!0}));return{isPressed:v,buttonProps:ft(D,T,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:E=>{h&&(h(E),console.warn("onClick is deprecated, please use onPress"))}})}}var DP={};DP={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var CP={};CP={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var EP={};EP={dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`};var SP={};SP={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var TP={};TP={dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`};var AP={};AP={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var PP={};PP={previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`};var _P={};_P={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`};var RP={};RP={dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`};var OP={};OP={dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`};var MP={};MP={dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`};var FP={};FP={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var kP={};kP={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`};var IP={};IP={dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`};var BP={};BP={dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`};var LP={};LP={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var VP={};VP={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var NP={};NP={dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`};var jP={};jP={dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`};var KP={};KP={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var UP={};UP={dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`};var zP={};zP={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`};var qP={};qP={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var WP={};WP={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var HP={};HP={dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`};var GP={};GP={dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`};var YP={};YP={dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`};var ZP={};ZP={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`};var JP={};JP={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`};var XP={};XP={dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`};var QP={};QP={dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`};var e6={};e6={dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`};var t6={};t6={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`};var n6={};n6={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`};var Hc={};Hc={"ar-AE":DP,"bg-BG":CP,"cs-CZ":EP,"da-DK":SP,"de-DE":TP,"el-GR":AP,"en-US":PP,"es-ES":_P,"et-EE":RP,"fi-FI":OP,"fr-FR":MP,"he-IL":FP,"hr-HR":kP,"hu-HU":IP,"it-IT":BP,"ja-JP":LP,"ko-KR":VP,"lt-LT":NP,"lv-LV":jP,"nb-NO":KP,"nl-NL":UP,"pl-PL":zP,"pt-BR":qP,"pt-PT":WP,"ro-RO":HP,"ru-RU":GP,"sk-SK":YP,"sl-SI":ZP,"sr-SP":JP,"sv-SE":XP,"tr-TR":QP,"uk-UA":e6,"zh-CN":t6,"zh-TW":n6};function r6(e){return e&&e.__esModule?e.default:e}const q1=new WeakMap;function $c(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function gW(e){let t=Ri(r6(Hc),"@react-aria/calendar"),n,r;var i;"highlightedRange"in e?{start:n,end:r}=e.highlightedRange||{}:n=r=(i=e.value)!==null&&i!==void 0?i:void 0;let a=$i({weekday:"long",month:"long",year:"numeric",day:"numeric",era:$c(n)||$c(r),timeZone:e.timeZone}),o="anchorDate"in e?e.anchorDate:null;return C.useMemo(()=>{if(!o&&n&&r)if(on(n,r)){let u=a.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:u})}else{let u=u0(a,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:u})}return""},[n,r,o,e.timeZone,t,a])}function s0(e,t,n,r){let i=Ri(r6(Hc),"@react-aria/calendar"),a=$c(e)||$c(t),o=$i({month:"long",year:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n}),u=$i({month:"long",year:"numeric",day:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n});return C.useMemo(()=>{if(on(e,qc(e))){if(on(t,Qb(e)))return o.format(e.toDate(n));if(on(t,Qb(t)))return r?u0(o,i,e,t,n):o.formatRange(e.toDate(n),t.toDate(n))}return r?u0(u,i,e,t,n):u.formatRange(e.toDate(n),t.toDate(n))},[e,t,o,u,i,n,r])}function u0(e,t,n,r,i){let a=e.formatRangeToParts(n.toDate(i),r.toDate(i)),o=-1;for(let f=0;f<a.length;f++){let d=a[f];if(d.source==="shared"&&d.type==="literal")o=f;else if(d.source==="endRange")break}let u="",l="";for(let f=0;f<a.length;f++)f<o?u+=a[f].value:f>o&&(l+=a[f].value);return t.format("dateRange",{startDate:u,endDate:l})}const i6=7e3;let br=null;function Js(e,t="assertive",n=i6){br?br.announce(e,t,n):(br=new vW,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?br.announce(e,t,n):setTimeout(()=>{br!=null&&br.isAttached()&&(br==null||br.announce(e,t,n))},100))}function yW(e){br&&br.clear(e)}class vW{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=i6){var i,a;if(!this.node)return;let o=document.createElement("div");typeof t=="object"?(o.setAttribute("role","img"),o.setAttribute("aria-labelledby",t["aria-labelledby"])):o.textContent=t,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(o):(a=this.politeLog)===null||a===void 0||a.appendChild(o),t!==""&&setTimeout(()=>{o.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 bW(e){return e&&e.__esModule?e.default:e}function a6(e,t){let n=Ri(bW(Hc),"@react-aria/calendar"),r=ua(e),i=s0(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),a=s0(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);_w(()=>{t.isFocused||Js(a)},[a]);let o=gW(t);_w(()=>{o&&Js(o,"polite",4e3)},[o]);let u=uu([!!e.errorMessage,e.isInvalid,e.validationState]);q1.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:u,selectedDateDescription:o});let[l,f]=C.useState(!1),d=e.isDisabled||t.isNextVisibleRangeInvalid();d&&l&&(f(!1),t.setFocused(!0));let[h,p]=C.useState(!1),g=e.isDisabled||t.isPreviousVisibleRangeInvalid();g&&h&&(p(!1),t.setFocused(!0));let y=lu({id:e.id,"aria-label":[e["aria-label"],a].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:ft(r,y,{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:d,onFocusChange:f},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:g,onFocusChange:p},errorMessageProps:{id:u},title:i}}function $W(e,t){return a6(e,t)}function xW(e,t,n){let r=a6(e,t),i=C.useRef(!1),a=C.useRef(typeof window<"u"?window:null);return bi(a,"pointerdown",u=>{i.current=u.width===0&&u.height===0}),bi(a,"pointerup",u=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let l=u.target;n.current&&n.current.contains(document.activeElement)&&(!n.current.contains(l)||!l.closest('button, [role="button"]'))&&t.selectFocusedDate()}),r.calendarProps.onBlur=u=>{n.current&&(!u.relatedTarget||!n.current.contains(u.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},bi(n,"touchmove",u=>{t.isDragging&&u.preventDefault()},{passive:!1,capture:!0}),r}function wW(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end,firstDayOfWeek:i}=e,{direction:a}=Sn(),o=y=>{switch(y.key){case"Enter":case" ":y.preventDefault(),t.selectFocusedDate();break;case"PageUp":y.preventDefault(),y.stopPropagation(),t.focusPreviousSection(y.shiftKey);break;case"PageDown":y.preventDefault(),y.stopPropagation(),t.focusNextSection(y.shiftKey);break;case"End":y.preventDefault(),y.stopPropagation(),t.focusSectionEnd();break;case"Home":y.preventDefault(),y.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":y.preventDefault(),y.stopPropagation(),a==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":y.preventDefault(),y.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":y.preventDefault(),y.stopPropagation(),a==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":y.preventDefault(),y.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(y.preventDefault(),t.setAnchorDate(null));break}},u=s0(n,r,t.timeZone,!0),{ariaLabel:l,ariaLabelledBy:f}=q1.get(t),d=lu({"aria-label":[l,u].filter(Boolean).join(", "),"aria-labelledby":f}),h=$i({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:p}=Sn(),g=C.useMemo(()=>{let y=gc(sp(t.timeZone),p,i);return[...new Array(7).keys()].map(b=>{let $=y.add({days:b}).toDate(t.timeZone);return h.format($)})},[p,t.timeZone,h,i]);return{gridProps:ft(d,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:o,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:g}}function DW(e){return e&&e.__esModule?e.default:e}function CW(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:a,selectedDateDescription:o}=q1.get(t),u=Ri(DW(Hc),"@react-aria/calendar"),l=$i({weekday:"long",day:"numeric",month:"long",year:"numeric",era:$c(r),timeZone:t.timeZone}),f=t.isSelected(r),d=t.isCellFocused(r);i=i||t.isCellDisabled(r);let h=t.isCellUnavailable(r),p=!i&&!h,g=t.isValueInvalid&&!!("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:t.value&&on(t.value,r));g&&(f=!0),r=EA(r,Xb);let y=C.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),b=WA(r,t.timeZone),D=C.useMemo(()=>{let O="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(on(r,t.value.start)||on(r,t.value.end))&&(O=o+", "),O+=l.format(y),b?O=u.format(f?"todayDateSelected":"todayDate",{date:O}):f&&(O=u.format("dateSelected",{date:O})),t.minValue&&on(r,t.minValue)?O+=", "+u.format("minimumDate"):t.maxValue&&on(r,t.maxValue)&&(O+=", "+u.format("maximumDate")),O},[l,y,u,f,b,r,t,o]),$="";"anchorDate"in t&&d&&!t.isReadOnly&&p&&(t.anchorDate?$=u.format("finishRangeSelectionPrompt"):$=u.format("startRangeSelectionPrompt"));let v=Nc($),w=C.useRef(!1),T=C.useRef(!1),E=C.useRef(void 0),{pressProps:A,isPressed:M}=Kc({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!p||t.isReadOnly,onPressStart(O){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(O.pointerType==="mouse"||O.pointerType==="touch")){if(t.highlightedRange&&!g){if(on(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),T.current=!0;return}else if(on(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),T.current=!0;return}}let Z=()=>{t.setDragging(!0),E.current=void 0,t.selectDate(r),t.setFocusedDate(r),w.current=!0};O.pointerType==="touch"?E.current=setTimeout(Z,200):Z()}},onPressEnd(){T.current=!1,w.current=!1,clearTimeout(E.current),E.current=void 0},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(O){if(!t.isReadOnly&&("anchorDate"in t&&E.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(T.current)t.setAnchorDate(r);else if(t.anchorDate&&!w.current)t.selectDate(r),t.setFocusedDate(r);else if(O.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let Z=r.add({days:1});t.isInvalid(Z)&&(Z=r.subtract({days:1})),t.isInvalid(Z)||t.setFocusedDate(Z)}else O.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),S;i||(S=on(r,t.focusedDate)?0:-1),C.useEffect(()=>{d&&n.current&&(Ur(n.current),mc()!=="pointer"&&document.activeElement===n.current&&uh(n.current,{containingElement:rp(n.current)}))},[d,n]);let z=$i({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),j=C.useMemo(()=>z.formatToParts(y).find(O=>O.type==="day").value,[z,y]);return{cellProps:{role:"gridcell","aria-disabled":!p||void 0,"aria-selected":f||void 0,"aria-invalid":g||void 0},buttonProps:ft(A,{onFocus(){i||t.setFocusedDate(r)},tabIndex:S,role:"button","aria-disabled":!p||void 0,"aria-label":D,"aria-invalid":g||void 0,"aria-describedby":[g?a:void 0,v["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(O){"highlightDate"in t&&(O.pointerType!=="touch"||t.isDragging)&&p&&t.highlightDate(r)},onPointerDown(O){"releasePointerCapture"in O.target&&O.target.releasePointerCapture(O.pointerId)},onContextMenu(O){O.preventDefault()}}),isPressed:M,isFocused:d,isSelected:f,isDisabled:i,isUnavailable:h,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:g,formattedDate:j}}const lp={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},o6={...lp,customError:!0,valid:!1},Co={isInvalid:!1,validationDetails:lp,validationErrors:[]},EW=C.createContext({}),du="__formValidationState"+Date.now();function Gc(e){if(e[du]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[du];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return SW(e)}function SW(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:a,validate:o,validationBehavior:u="aria"}=e;n&&(t||(t=n==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:o6}:null,f=C.useMemo(()=>{if(!o||i==null)return null;let j=TW(o,i);return vD(j)},[o,i]);a!=null&&a.validationDetails.valid&&(a=void 0);let d=C.useContext(EW),h=C.useMemo(()=>r?Array.isArray(r)?r.flatMap(j=>l0(d[j])):l0(d[r]):[],[d,r]),[p,g]=C.useState(d),[y,b]=C.useState(!1);d!==p&&(g(d),b(!1));let D=C.useMemo(()=>vD(y?[]:h),[y,h]),$=C.useRef(Co),[v,w]=C.useState(Co),T=C.useRef(Co),E=()=>{if(!A)return;M(!1);let j=f||a||$.current;Eg(j,T.current)||(T.current=j,w(j))},[A,M]=C.useState(!1);return C.useEffect(E),{realtimeValidation:l||D||f||a||Co,displayValidation:u==="native"?l||D||v:l||D||f||a||v,updateValidation(j){u==="aria"&&!Eg(v,j)?w(j):$.current=j},resetValidation(){let j=Co;Eg(j,T.current)||(T.current=j,w(j)),u==="native"&&M(!1),b(!0)},commitValidation(){u==="native"&&M(!0),b(!0)}}}function l0(e){return e?Array.isArray(e)?e:[e]:[]}function TW(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return l0(n)}return[]}function vD(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:o6}:null}function Eg(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function yh(...e){let t=new Set,n=!1,r={...lp};for(let o of e){var i,a;for(let u of o.validationErrors)t.add(u);n||(n=o.isInvalid);for(let u in r)(i=r)[a=u]||(i[a]=o.validationDetails[u])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function s6(e,t,n){let{validationBehavior:r,focus:i}=e;Ct(()=>{if(r==="native"&&(n!=null&&n.current)&&!n.current.disabled){let l=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(l),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(PW(n.current))}});let a=Ht(()=>{t.resetValidation()}),o=Ht(l=>{var f;t.displayValidation.isInvalid||t.commitValidation();let d=n==null||(f=n.current)===null||f===void 0?void 0:f.form;if(!l.defaultPrevented&&n&&d&&_W(d)===n.current){var h;i?i():(h=n.current)===null||h===void 0||h.focus(),kA("keyboard")}l.preventDefault()}),u=Ht(()=>{t.commitValidation()});C.useEffect(()=>{let l=n==null?void 0:n.current;if(!l)return;let f=l.form;return l.addEventListener("invalid",o),l.addEventListener("change",u),f==null||f.addEventListener("reset",a),()=>{l.removeEventListener("invalid",o),l.removeEventListener("change",u),f==null||f.removeEventListener("reset",a)}},[n,o,u,a,r])}function AW(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function PW(e){return{isInvalid:!e.validity.valid,validationDetails:AW(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function _W(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}function cp(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a="label"}=e;t=Yn(t);let o=Yn(),u={};n?(r=r?`${o} ${r}`:o,u={id:o,htmlFor:a==="label"?t:void 0}):!r&&!i&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=lu({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:u,fieldProps:l}}function fp(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:o}=cp(e),u=uu([!!t,!!n,r,i]),l=uu([!!t,!!n,r,i]);return o=ft(o,{"aria-describedby":[u,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:o,descriptionProps:{id:u},errorMessageProps:{id:l}}}const RW=0,OW=100,MW=1;function FW(e){const{isDisabled:t=!1,minValue:n=RW,maxValue:r=OW,numberFormatter:i,step:a=MW,orientation:o="horizontal"}=e;let u=C.useMemo(()=>{let N=(r-n)/10;return N=Pl(N,0,N+a,a),Math.max(N,a)},[a,r,n]),l=C.useCallback(N=>N==null?void 0:N.map((ne,ie)=>{let ce=ie===0?n:N[ie-1],xe=ie===N.length-1?r:N[ie+1];return Pl(ne,ce,xe,a)}),[n,r,a]),f=C.useMemo(()=>l($D(e.value)),[e.value]),d=C.useMemo(()=>{var N;return l((N=$D(e.defaultValue))!==null&&N!==void 0?N:[n])},[e.defaultValue,n]),h=xD(e.value,e.defaultValue,e.onChange),p=xD(e.value,e.defaultValue,e.onChangeEnd);const[g,y]=ar(f,d,h),[b,D]=C.useState(new Array(g.length).fill(!1)),$=C.useRef(new Array(g.length).fill(!0)),[v,w]=C.useState(void 0),T=C.useRef(g),E=C.useRef(b);let A=N=>{T.current=N,y(N)},M=N=>{E.current=N,D(N)};function S(N){return(N-n)/(r-n)}function z(N){return N===0?n:g[N-1]}function j(N){return N===g.length-1?r:g[N+1]}function O(N){return $.current[N]}function Z(N,ne){$.current[N]=ne}function R(N,ne){if(t||!O(N))return;const ie=z(N),ce=j(N);ne=Pl(ne,ie,ce,a);let xe=bD(T.current,N,ne);A(xe)}function V(N,ne){if(t||!O(N))return;ne&&(T.current=g);const ie=E.current[N];E.current=bD(E.current,N,ne),M(E.current),p&&ie&&!E.current.some(Boolean)&&p(T.current)}function W(N){return i.format(N)}function L(N,ne){R(N,_(ne))}function k(N){return Math.round((N-n)/a)*a+n}function _(N){const ne=N*(r-n)+n;return cu(k(ne),n,r)}function H(N,ne=1){let ie=Math.max(ne,a);R(N,Pl(g[N]+ie,n,r,a))}function U(N,ne=1){let ie=Math.max(ne,a);R(N,Pl(g[N]-ie,n,r,a))}return{values:g,getThumbValue:N=>g[N],setThumbValue:R,setThumbPercent:L,isThumbDragging:N=>b[N],setThumbDragging:V,focusedThumb:v,setFocusedThumb:w,getThumbPercent:N=>S(g[N]),getValuePercent:S,getThumbValueLabel:N=>W(g[N]),getFormattedValue:W,getThumbMinValue:z,getThumbMaxValue:j,getPercentValue:_,isThumbEditable:O,setThumbEditable:Z,incrementThumb:H,decrementThumb:U,step:a,pageSize:u,orientation:o,isDisabled:t}}function bD(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function $D(e){if(e!=null)return Array.isArray(e)?e:[e]}function xD(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}const wD={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 kW(e={}){let{style:t,isFocusable:n}=e,[r,i]=C.useState(!1),{focusWithinProps:a}=Au({isDisabled:!n,onFocusWithinChange:u=>i(u)}),o=C.useMemo(()=>r?t:t?{...wD,...t}:wD,[r]);return{visuallyHiddenProps:{...a,style:o}}}function IW(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...a}=e,{visuallyHiddenProps:o}=kW(e);return C.createElement(n,ft(a,o),t)}const W1=new WeakMap;function c0(e,t){let n=W1.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function BW(e,t,n){let{labelProps:r,fieldProps:i}=cp(e),a=e.orientation==="vertical";var o;W1.set(t,{id:(o=r.id)!==null&&o!==void 0?o:i.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:u}=Sn(),{addGlobalListener:l,removeGlobalListener:f}=Tu();const d=C.useRef(null),h=u==="rtl",p=C.useRef(null),{moveProps:g}=BA({onMoveStart(){p.current=null},onMove({deltaX:$,deltaY:v}){if(!n.current)return;let{height:w,width:T}=n.current.getBoundingClientRect(),E=a?w:T;p.current==null&&d.current!=null&&(p.current=t.getThumbPercent(d.current)*E);let A=a?v:$;if((a||h)&&(A=-A),p.current+=A,d.current!=null&&n.current){const M=cu(p.current/E,0,1);t.setThumbPercent(d.current,M)}},onMoveEnd(){d.current!=null&&(t.setThumbDragging(d.current,!1),d.current=null)}});let y=C.useRef(void 0),b=($,v,w,T)=>{if(n.current&&!e.isDisabled&&t.values.every((E,A)=>!t.isThumbDragging(A))){let{height:E,width:A,top:M,left:S}=n.current.getBoundingClientRect(),z=a?E:A,R=((a?T:w)-(a?M:S))/z;(u==="rtl"||a)&&(R=1-R);let V=t.getPercentValue(R),W,L=t.values.findIndex(k=>V-k<0);if(L===0)W=L;else if(L===-1)W=t.values.length-1;else{let k=t.values[L-1],_=t.values[L];Math.abs(k-V)<Math.abs(_-V)?W=L-1:W=L}W>=0&&t.isThumbEditable(W)?($.preventDefault(),d.current=W,t.setFocusedThumb(W),y.current=v,t.setThumbDragging(d.current,!0),t.setThumbValue(W,V),l(window,"mouseup",D,!1),l(window,"touchend",D,!1),l(window,"pointerup",D,!1)):d.current=null}},D=$=>{var v,w;((w=$.pointerId)!==null&&w!==void 0?w:(v=$.changedTouches)===null||v===void 0?void 0:v[0].identifier)===y.current&&(d.current!=null&&(t.setThumbDragging(d.current,!1),d.current=null),f(window,"mouseup",D,!1),f(window,"touchend",D,!1),f(window,"pointerup",D,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var $;($=document.getElementById(c0(t,0)))===null||$===void 0||$.focus(),kA("keyboard")}),{labelProps:r,groupProps:{role:"group",...i},trackProps:ft({onMouseDown($){$.button!==0||$.altKey||$.ctrlKey||$.metaKey||b($,void 0,$.clientX,$.clientY)},onPointerDown($){$.pointerType==="mouse"&&($.button!==0||$.altKey||$.ctrlKey||$.metaKey)||b($,$.pointerId,$.clientX,$.clientY)},onTouchStart($){b($,$.changedTouches[0].identifier,$.changedTouches[0].clientX,$.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},g),outputProps:{htmlFor:t.values.map(($,v)=>c0(t,v)).join(" "),"aria-live":"off"}}}function LW(e,t){let{index:n=0,isRequired:r,validationState:i,isInvalid:a,trackRef:o,inputRef:u,orientation:l=t.orientation,name:f}=e,d=e.isDisabled||t.isDisabled,h=l==="vertical",{direction:p}=Sn(),{addGlobalListener:g,removeGlobalListener:y}=Tu(),b=W1.get(t);var D;const{labelProps:$,fieldProps:v}=cp({...e,id:c0(t,n),"aria-labelledby":`${b.id} ${(D=e["aria-labelledby"])!==null&&D!==void 0?D:""}`.trim()}),w=t.values[n],T=C.useCallback(()=>{u.current&&Ur(u.current)},[u]),E=t.focusedThumb===n;C.useEffect(()=>{E&&T()},[E,T]);let A=p==="rtl",M=C.useRef(null),{keyboardProps:S}=IA({onKeyDown(L){let{getThumbMaxValue:k,getThumbMinValue:_,decrementThumb:H,incrementThumb:U,setThumbValue:N,setThumbDragging:ne,pageSize:ie}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(L.key)){L.continuePropagation();return}switch(L.preventDefault(),ne(n,!0),L.key){case"PageUp":U(n,ie);break;case"PageDown":H(n,ie);break;case"Home":N(n,_(n));break;case"End":N(n,k(n));break}ne(n,!1)}}),{moveProps:z}=BA({onMoveStart(){M.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:L,deltaY:k,pointerType:_,shiftKey:H}){const{getThumbPercent:U,setThumbPercent:N,decrementThumb:ne,incrementThumb:ie,step:ce,pageSize:xe}=t;if(!o.current)return;let{width:De,height:Ee}=o.current.getBoundingClientRect(),J=h?Ee:De;if(M.current==null&&(M.current=U(n)*J),_==="keyboard")L>0&&A||L<0&&!A||k>0?ne(n,H?xe:ce):ie(n,H?xe:ce);else{let ye=h?k:L;(h||A)&&(ye=-ye),M.current+=ye,N(n,cu(M.current/J,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!d);const{focusableProps:j}=M1(ft(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),u);let O=C.useRef(void 0),Z=L=>{T(),O.current=L,t.setThumbDragging(n,!0),g(window,"mouseup",R,!1),g(window,"touchend",R,!1),g(window,"pointerup",R,!1)},R=L=>{var k,_;((_=L.pointerId)!==null&&_!==void 0?_:(k=L.changedTouches)===null||k===void 0?void 0:k[0].identifier)===O.current&&(T(),t.setThumbDragging(n,!1),y(window,"mouseup",R,!1),y(window,"touchend",R,!1),y(window,"pointerup",R,!1))},V=t.getThumbPercent(n);(h||p==="rtl")&&(V=1-V);let W=d?{}:ft(S,z,{onMouseDown:L=>{L.button!==0||L.altKey||L.ctrlKey||L.metaKey||Z()},onPointerDown:L=>{L.button!==0||L.altKey||L.ctrlKey||L.metaKey||Z(L.pointerId)},onTouchStart:L=>{Z(L.changedTouches[0].identifier)}});return A1(u,w,L=>{t.setThumbValue(n,L)}),{inputProps:ft(j,v,{type:"range",tabIndex:d?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:w,name:f,disabled:d,"aria-orientation":l,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":a||i==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[b["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[b["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:L=>{t.setThumbValue(n,parseFloat(L.target.value))}}),thumbProps:{...W,style:{position:"absolute",[h?"top":"left"]:`${V*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:$,isDragging:t.isThumbDragging(n),isDisabled:d,isFocused:E}}function VW(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:a=!1,type:o="text",validationBehavior:u="aria"}=e,[l,f]=ar(e.value,e.defaultValue||"",e.onChange),{focusableProps:d}=M1(e,t),h=Gc({...e,value:l}),{isInvalid:p,validationErrors:g,validationDetails:y}=h.displayValidation,{labelProps:b,fieldProps:D,descriptionProps:$,errorMessageProps:v}=fp({...e,isInvalid:p,errorMessage:e.errorMessage||g}),w=ua(e,{labelable:!0});const T={type:o,pattern:e.pattern};return A1(t,l,f),s6(e,h,t),C.useEffect(()=>{if(t.current instanceof qa(t.current).HTMLTextAreaElement){let E=t.current;Object.defineProperty(E,"defaultValue",{get:()=>E.value,set:()=>{},configurable:!0})}},[t]),{labelProps:b,inputProps:ft(w,n==="input"?T:void 0,{disabled:r,readOnly:a,required:i&&u==="native","aria-required":i&&u==="aria"||void 0,"aria-invalid":p||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:l,onChange:E=>f(E.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...d,...D}),descriptionProps:$,errorMessageProps:v,isInvalid:p,validationErrors:g,validationDetails:y}}var u6={};u6={Empty:"فارغ"};var l6={};l6={Empty:"Изпразни"};var c6={};c6={Empty:"Prázdné"};var f6={};f6={Empty:"Tom"};var d6={};d6={Empty:"Leer"};var h6={};h6={Empty:"Άδειο"};var p6={};p6={Empty:"Empty"};var m6={};m6={Empty:"Vacío"};var g6={};g6={Empty:"Tühjenda"};var y6={};y6={Empty:"Tyhjä"};var v6={};v6={Empty:"Vide"};var b6={};b6={Empty:"ריק"};var $6={};$6={Empty:"Prazno"};var x6={};x6={Empty:"Üres"};var w6={};w6={Empty:"Vuoto"};var D6={};D6={Empty:"空"};var C6={};C6={Empty:"비어 있음"};var E6={};E6={Empty:"Tuščias"};var S6={};S6={Empty:"Tukšs"};var T6={};T6={Empty:"Tom"};var A6={};A6={Empty:"Leeg"};var P6={};P6={Empty:"Pusty"};var _6={};_6={Empty:"Vazio"};var R6={};R6={Empty:"Vazio"};var O6={};O6={Empty:"Gol"};var M6={};M6={Empty:"Не заполнено"};var F6={};F6={Empty:"Prázdne"};var k6={};k6={Empty:"Prazen"};var I6={};I6={Empty:"Prazno"};var B6={};B6={Empty:"Tomt"};var L6={};L6={Empty:"Boş"};var V6={};V6={Empty:"Пусто"};var N6={};N6={Empty:"空"};var j6={};j6={Empty:"空白"};var K6={};K6={"ar-AE":u6,"bg-BG":l6,"cs-CZ":c6,"da-DK":f6,"de-DE":d6,"el-GR":h6,"en-US":p6,"es-ES":m6,"et-EE":g6,"fi-FI":y6,"fr-FR":v6,"he-IL":b6,"hr-HR":$6,"hu-HU":x6,"it-IT":w6,"ja-JP":D6,"ko-KR":C6,"lt-LT":E6,"lv-LV":S6,"nb-NO":T6,"nl-NL":A6,"pl-PL":P6,"pt-BR":_6,"pt-PT":R6,"ro-RO":O6,"ru-RU":M6,"sk-SK":F6,"sl-SI":k6,"sr-SP":I6,"sv-SE":B6,"tr-TR":L6,"uk-UA":V6,"zh-CN":N6,"zh-TW":j6};function NW(e){return e&&e.__esModule?e.default:e}function jW(e){const t=C.useRef(void 0);let{value:n,textValue:r,minValue:i,maxValue:a,isDisabled:o,isReadOnly:u,isRequired:l,onIncrement:f,onIncrementPage:d,onDecrement:h,onDecrementPage:p,onDecrementToMin:g,onIncrementToMax:y}=e;const b=Ri(NW(K6),"@react-aria/spinbutton"),D=()=>clearTimeout(t.current);C.useEffect(()=>()=>D(),[]);let $=O=>{if(!(O.ctrlKey||O.metaKey||O.shiftKey||O.altKey||u))switch(O.key){case"PageUp":if(d){O.preventDefault(),d==null||d();break}case"ArrowUp":case"Up":f&&(O.preventDefault(),f==null||f());break;case"PageDown":if(p){O.preventDefault(),p==null||p();break}case"ArrowDown":case"Down":h&&(O.preventDefault(),h==null||h());break;case"Home":g&&(O.preventDefault(),g==null||g());break;case"End":y&&(O.preventDefault(),y==null||y());break}},v=C.useRef(!1),w=()=>{v.current=!0},T=()=>{v.current=!1},E=r===""?b.format("Empty"):(r||`${n}`).replace("-","−");C.useEffect(()=>{v.current&&(yW("assertive"),Js(E,"assertive"))},[E]);const A=Ht(O=>{D(),f==null||f(),t.current=window.setTimeout(()=>{(a===void 0||isNaN(a)||n===void 0||isNaN(n)||n<a)&&A(60)},O)}),M=Ht(O=>{D(),h==null||h(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&M(60)},O)});let S=O=>{O.preventDefault()},{addGlobalListener:z,removeAllGlobalListeners:j}=Tu();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":E,"aria-valuemin":i,"aria-valuemax":a,"aria-disabled":o||void 0,"aria-readonly":u||void 0,"aria-required":l||void 0,onKeyDown:$,onFocus:w,onBlur:T},incrementButtonProps:{onPressStart:()=>{A(400),z(window,"contextmenu",S)},onPressEnd:()=>{D(),j()},onFocus:w,onBlur:T},decrementButtonProps:{onPressStart:()=>{M(400),z(window,"contextmenu",S)},onPressEnd:()=>{D(),j()},onFocus:w,onBlur:T}}}var U6={};U6={buttonLabel:"عرض المقترحات",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} خيار`,other:()=>`${t.number(e.optionCount)} خيارات`})} متاحة.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`المجموعة المدخلة ${e.groupTitle}, مع ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} خيار`,other:()=>`${t.number(e.groupCount)} خيارات`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", محدد",other:""},e.isSelected)}`,listboxLabel:"مقترحات",selectedAnnouncement:e=>`${e.optionText}، محدد`};var z6={};z6={buttonLabel:"Покажи предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} опция`,other:()=>`${t.number(e.optionCount)} опции`})} на разположение.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Въведена група ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} опция`,other:()=>`${t.number(e.groupCount)} опции`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", избрани",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, избрани`};var q6={};q6={buttonLabel:"Zobrazit doporučení",countAnnouncement:(e,t)=>`K dispozici ${t.plural(e.optionCount,{one:()=>`je ${t.number(e.optionCount)} možnost`,other:()=>`jsou/je ${t.number(e.optionCount)} možnosti/-í`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina „${e.groupTitle}“ ${t.plural(e.groupCount,{one:()=>`s ${t.number(e.groupCount)} možností`,other:()=>`se ${t.number(e.groupCount)} možnostmi`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:" (vybráno)",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybráno`};var W6={};W6={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} mulighed tilgængelig`,other:()=>`${t.number(e.optionCount)} muligheder tilgængelige`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angivet gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} mulighed`,other:()=>`${t.number(e.groupCount)} muligheder`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var H6={};H6={buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} Option`,other:()=>`${t.number(e.optionCount)} Optionen`})} verfügbar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Eingetretene Gruppe ${e.groupTitle}, mit ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} Option`,other:()=>`${t.number(e.groupCount)} Optionen`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", ausgewählt",other:""},e.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:e=>`${e.optionText}, ausgewählt`};var G6={};G6={buttonLabel:"Προβολή προτάσεων",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} επιλογή`,other:()=>`${t.number(e.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Εισαγμένη ομάδα ${e.groupTitle}, με ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} επιλογή`,other:()=>`${t.number(e.groupCount)} επιλογές`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", επιλεγμένο",other:""},e.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:e=>`${e.optionText}, επιλέχθηκε`};var Y6={};Y6={focusAnnouncement:(e,t)=>`${t.select({true:()=>`Entered group ${e.groupTitle}, with ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"};var Z6={};Z6={buttonLabel:"Mostrar sugerencias",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opción`,other:()=>`${t.number(e.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Se ha unido al grupo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opción`,other:()=>`${t.number(e.groupCount)} opciones`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seleccionado",other:""},e.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:e=>`${e.optionText}, seleccionado`};var J6={};J6={buttonLabel:"Kuva soovitused",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} valik`,other:()=>`${t.number(e.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Sisestatud rühm ${e.groupTitle}, valikuga ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} valik`,other:()=>`${t.number(e.groupCount)} valikud`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valitud",other:""},e.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:e=>`${e.optionText}, valitud`};var X6={};X6={buttonLabel:"Näytä ehdotukset",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} vaihtoehto`,other:()=>`${t.number(e.optionCount)} vaihtoehdot`})} saatavilla.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Mentiin ryhmään ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} vaihtoehdon`,other:()=>`${t.number(e.groupCount)} vaihtoehdon`})} kanssa.`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valittu",other:""},e.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:e=>`${e.optionText}, valittu`};var Q6={};Q6={buttonLabel:"Afficher les suggestions",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groupe ${e.groupTitle} rejoint, avec ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", sélectionné(s)",other:""},e.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:e=>`${e.optionText}, sélectionné`};var e_={};e_={buttonLabel:"הצג הצעות",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`אפשרות ${t.number(e.optionCount)}`,other:()=>`${t.number(e.optionCount)} אפשרויות`})} במצב זמין.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`נכנס לקבוצה ${e.groupTitle}, עם ${t.plural(e.groupCount,{one:()=>`אפשרות ${t.number(e.groupCount)}`,other:()=>`${t.number(e.groupCount)} אפשרויות`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", נבחר",other:""},e.isSelected)}`,listboxLabel:"הצעות",selectedAnnouncement:e=>`${e.optionText}, נבחר`};var t_={};t_={buttonLabel:"Prikaži prijedloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} opcije/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", odabranih",other:""},e.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:e=>`${e.optionText}, odabrano`};var n_={};n_={buttonLabel:"Javaslatok megjelenítése",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} lehetőség`,other:()=>`${t.number(e.optionCount)} lehetőség`})} áll rendelkezésre.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Belépett a(z) ${e.groupTitle} csoportba, amely ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} lehetőséget`,other:()=>`${t.number(e.groupCount)} lehetőséget`})} tartalmaz. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", kijelölve",other:""},e.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:e=>`${e.optionText}, kijelölve`};var r_={};r_={buttonLabel:"Mostra suggerimenti",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opzione disponibile`,other:()=>`${t.number(e.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingresso nel gruppo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opzione`,other:()=>`${t.number(e.groupCount)} opzioni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selezionato",other:""},e.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:e=>`${e.optionText}, selezionato`};var i_={};i_={buttonLabel:"候補を表示",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 個のオプション`,other:()=>`${t.number(e.optionCount)} 個のオプション`})}を利用できます。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`入力されたグループ ${e.groupTitle}、${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 個のオプション`,other:()=>`${t.number(e.groupCount)} 個のオプション`})}を含む。`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:"、選択済み",other:""},e.isSelected)}`,listboxLabel:"候補",selectedAnnouncement:e=>`${e.optionText}、選択済み`};var a_={};a_={buttonLabel:"제안 사항 표시",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)}개 옵션`,other:()=>`${t.number(e.optionCount)}개 옵션`})}을 사용할 수 있습니다.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`입력한 그룹 ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)}개 옵션`,other:()=>`${t.number(e.groupCount)}개 옵션`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 선택됨",other:""},e.isSelected)}`,listboxLabel:"제안",selectedAnnouncement:e=>`${e.optionText}, 선택됨`};var o_={};o_={buttonLabel:"Rodyti pasiūlymus",countAnnouncement:(e,t)=>`Yra ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} parinktis`,other:()=>`${t.number(e.optionCount)} parinktys (-ių)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Įvesta grupė ${e.groupTitle}, su ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} parinktimi`,other:()=>`${t.number(e.groupCount)} parinktimis (-ių)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", pasirinkta",other:""},e.isSelected)}`,listboxLabel:"Pasiūlymai",selectedAnnouncement:e=>`${e.optionText}, pasirinkta`};var s_={};s_={buttonLabel:"Rādīt ieteikumus",countAnnouncement:(e,t)=>`Pieejamo opciju skaits: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcijas`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ievadīta grupa ${e.groupTitle}, ar ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opciju`,other:()=>`${t.number(e.groupCount)} opcijām`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", atlasīta",other:""},e.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:e=>`${e.optionText}, atlasīta`};var u_={};u_={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angitt gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativer`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var l_={};l_={buttonLabel:"Suggesties weergeven",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} optie`,other:()=>`${t.number(e.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groep ${e.groupTitle} ingevoerd met ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} optie`,other:()=>`${t.number(e.groupCount)} opties`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", geselecteerd",other:""},e.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:e=>`${e.optionText}, geselecteerd`};var c_={};c_={buttonLabel:"Wyświetlaj sugestie",countAnnouncement:(e,t)=>`dostępna/dostępne(-nych) ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcja`,other:()=>`${t.number(e.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Dołączono do grupy ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcją`,other:()=>`${t.number(e.groupCount)} opcjami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", wybrano",other:""},e.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:e=>`${e.optionText}, wybrano`};var f_={};f_={buttonLabel:"Mostrar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo inserido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var d_={};d_={buttonLabel:"Apresentar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo introduzido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var h_={};h_={buttonLabel:"Afișare sugestii",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opțiune`,other:()=>`${t.number(e.optionCount)} opțiuni`})} disponibile.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grup ${e.groupTitle} introdus, cu ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opțiune`,other:()=>`${t.number(e.groupCount)} opțiuni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selectat",other:""},e.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:e=>`${e.optionText}, selectat`};var p_={};p_={buttonLabel:"Показать предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметров`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введенная группа ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметром`,other:()=>`${t.number(e.groupCount)} параметрами`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", выбранными",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, выбрано`};var m_={};m_={buttonLabel:"Zobraziť návrhy",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} možnosť`,other:()=>`${t.number(e.optionCount)} možnosti/-í`})} k dispozícii.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} možnosťou`,other:()=>`${t.number(e.groupCount)} možnosťami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", vybraté",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybraté`};var g_={};g_={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Na voljo je ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Vnesena skupina ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcija`,other:()=>`${t.number(e.groupCount)} opcije`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izbrano",other:""},e.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:e=>`${e.optionText}, izbrano`};var y_={};y_={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena grupa ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} optione/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izabranih",other:""},e.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:e=>`${e.optionText}, izabrano`};var v_={};v_={buttonLabel:"Visa förslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativ`})} tillgängliga.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingick i gruppen ${e.groupTitle} med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativ`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valda",other:""},e.isSelected)}`,listboxLabel:"Förslag",selectedAnnouncement:e=>`${e.optionText}, valda`};var b_={};b_={buttonLabel:"Önerileri göster",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} seçenek`,other:()=>`${t.number(e.optionCount)} seçenekler`})} kullanılabilir.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Girilen grup ${e.groupTitle}, ile ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} seçenek`,other:()=>`${t.number(e.groupCount)} seçenekler`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seçildi",other:""},e.isSelected)}`,listboxLabel:"Öneriler",selectedAnnouncement:e=>`${e.optionText}, seçildi`};var $_={};$_={buttonLabel:"Показати пропозиції",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введена група ${e.groupTitle}, з ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметр`,other:()=>`${t.number(e.groupCount)} параметри(-ів)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", вибрано",other:""},e.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:e=>`${e.optionText}, вибрано`};var x_={};x_={buttonLabel:"显示建议",countAnnouncement:(e,t)=>`有 ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 个选项`,other:()=>`${t.number(e.optionCount)} 个选项`})}可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`进入了 ${e.groupTitle} 组,其中有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 个选项`,other:()=>`${t.number(e.groupCount)} 个选项`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已选择",other:""},e.isSelected)}`,listboxLabel:"建议",selectedAnnouncement:e=>`${e.optionText}, 已选择`};var w_={};w_={buttonLabel:"顯示建議",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 選項`,other:()=>`${t.number(e.optionCount)} 選項`})} 可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`輸入的群組 ${e.groupTitle}, 有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 選項`,other:()=>`${t.number(e.groupCount)} 選項`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已選取",other:""},e.isSelected)}`,listboxLabel:"建議",selectedAnnouncement:e=>`${e.optionText}, 已選取`};var D_={};D_={"ar-AE":U6,"bg-BG":z6,"cs-CZ":q6,"da-DK":W6,"de-DE":H6,"el-GR":G6,"en-US":Y6,"es-ES":Z6,"et-EE":J6,"fi-FI":X6,"fr-FR":Q6,"he-IL":e_,"hr-HR":t_,"hu-HU":n_,"it-IT":r_,"ja-JP":i_,"ko-KR":a_,"lt-LT":o_,"lv-LV":s_,"nb-NO":u_,"nl-NL":l_,"pl-PL":c_,"pt-BR":f_,"pt-PT":d_,"ro-RO":h_,"ru-RU":p_,"sk-SK":m_,"sl-SI":g_,"sr-SP":y_,"sv-SE":v_,"tr-TR":b_,"uk-UA":$_,"zh-CN":x_,"zh-TW":w_};const xi={top:"top",bottom:"top",left:"left",right:"left"},vh={top:"bottom",bottom:"top",left:"right",right:"left"},KW={top:"left",left:"top"},f0={top:"height",left:"width"},C_={width:"totalWidth",height:"totalHeight"},gd={};let un=typeof document<"u"?window.visualViewport:null;function DD(e){let t=0,n=0,r=0,i=0,a=0,o=0,u={};var l;let f=((l=un==null?void 0:un.scale)!==null&&l!==void 0?l:1)>1;if(e.tagName==="BODY"){let y=document.documentElement;r=y.clientWidth,i=y.clientHeight;var d;t=(d=un==null?void 0:un.width)!==null&&d!==void 0?d:r;var h;n=(h=un==null?void 0:un.height)!==null&&h!==void 0?h:i,u.top=y.scrollTop||e.scrollTop,u.left=y.scrollLeft||e.scrollLeft,un&&(a=un.offsetTop,o=un.offsetLeft)}else({width:t,height:n,top:a,left:o}=Xs(e)),u.top=e.scrollTop,u.left=e.scrollLeft,r=t,i=n;if(S1()&&(e.tagName==="BODY"||e.tagName==="HTML")&&f){u.top=0,u.left=0;var p;a=(p=un==null?void 0:un.pageTop)!==null&&p!==void 0?p:0;var g;o=(g=un==null?void 0:un.pageLeft)!==null&&g!==void 0?g:0}return{width:t,height:n,totalWidth:r,totalHeight:i,scroll:u,top:a,left:o}}function UW(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function CD(e,t,n,r,i,a,o){var u;let l=(u=i.scroll[e])!==null&&u!==void 0?u:0,f=r[f0[e]],d=r.scroll[xi[e]]+a,h=f+r.scroll[xi[e]]-a,p=t-l+o[e]-r[xi[e]],g=t-l+n+o[e]-r[xi[e]];return p<d?d-p:g>h?Math.max(h-g,d-p):0}function zW(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function ED(e){if(gd[e])return gd[e];let[t,n]=e.split(" "),r=xi[t]||"right",i=KW[r];xi[n]||(n="center");let a=f0[r],o=f0[i];return gd[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:a,crossSize:o},gd[e]}function Sg(e,t,n,r,i,a,o,u,l,f){let{placement:d,crossPlacement:h,axis:p,crossAxis:g,size:y,crossSize:b}=r,D={};var $;D[g]=($=e[g])!==null&&$!==void 0?$:0;var v,w,T,E;h==="center"?D[g]+=(((v=e[b])!==null&&v!==void 0?v:0)-((w=n[b])!==null&&w!==void 0?w:0))/2:h!==g&&(D[g]+=((T=e[b])!==null&&T!==void 0?T:0)-((E=n[b])!==null&&E!==void 0?E:0)),D[g]+=a;const A=e[g]-n[b]+l+f,M=e[g]+e[b]-l-f;if(D[g]=cu(D[g],A,M),d===p){const S=u?o[y]:t[C_[y]];D[vh[p]]=Math.floor(S-e[p]+i)}else D[p]=Math.floor(e[p]+e[y]+i);return D}function qW(e,t,n,r,i,a,o,u){const l=r?n.height:t[C_.height];var f;let d=e.top!=null?n.top+e.top:n.top+(l-((f=e.bottom)!==null&&f!==void 0?f:0)-o);var h,p,g,y,b,D;let $=u!=="top"?Math.max(0,t.height+t.top+((h=t.scroll.top)!==null&&h!==void 0?h:0)-d-(((p=i.top)!==null&&p!==void 0?p:0)+((g=i.bottom)!==null&&g!==void 0?g:0)+a)):Math.max(0,d+o-(t.top+((y=t.scroll.top)!==null&&y!==void 0?y:0))-(((b=i.top)!==null&&b!==void 0?b:0)+((D=i.bottom)!==null&&D!==void 0?D:0)+a));return Math.min(t.height-a*2,$)}function SD(e,t,n,r,i,a){let{placement:o,axis:u,size:l}=a;var f,d;if(o===u)return Math.max(0,n[u]-e[u]-((f=e.scroll[u])!==null&&f!==void 0?f:0)+t[u]-((d=r[u])!==null&&d!==void 0?d:0)-r[vh[u]]-i);var h;return Math.max(0,e[l]+e[u]+e.scroll[u]-t[u]-n[u]-n[l]-((h=r[u])!==null&&h!==void 0?h:0)-r[vh[u]]-i)}function WW(e,t,n,r,i,a,o,u,l,f,d,h,p,g,y,b){let D=ED(e),{size:$,crossAxis:v,crossSize:w,placement:T,crossPlacement:E}=D,A=Sg(t,u,n,D,d,h,f,p,y,b),M=d,S=SD(u,f,t,i,a+d,D);if(o&&r[$]>S){let ce=ED(`${vh[T]} ${E}`),xe=Sg(t,u,n,ce,d,h,f,p,y,b);SD(u,f,t,i,a+d,ce)>S&&(D=ce,A=xe,M=d)}let z="bottom";D.axis==="top"?D.placement==="top"?z="top":D.placement==="bottom"&&(z="bottom"):D.crossAxis==="top"&&(D.crossPlacement==="top"?z="bottom":D.crossPlacement==="bottom"&&(z="top"));let j=CD(v,A[v],n[w],u,l,a,f);A[v]+=j;let O=qW(A,u,f,p,i,a,n.height,z);g&&g<O&&(O=g),n.height=Math.min(n.height,O),A=Sg(t,u,n,D,M,h,f,p,y,b),j=CD(v,A[v],n[w],u,l,a,f),A[v]+=j;let Z={},R=t[v]+.5*t[w]-A[v]-i[xi[v]];const V=y/2+b;var W,L,k,_;const H=xi[v]==="left"?((W=i.left)!==null&&W!==void 0?W:0)+((L=i.right)!==null&&L!==void 0?L:0):((k=i.top)!==null&&k!==void 0?k:0)+((_=i.bottom)!==null&&_!==void 0?_:0),U=n[w]-H-y/2-b,N=t[v]+y/2-(A[v]+i[xi[v]]),ne=t[v]+t[w]-y/2-(A[v]+i[xi[v]]),ie=cu(R,N,ne);return Z[v]=cu(ie,V,U),{position:A,maxHeight:O,arrowOffsetLeft:Z.left,arrowOffsetTop:Z.top,placement:D.placement}}function HW(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:a,shouldFlip:o,boundaryElement:u,offset:l,crossOffset:f,maxHeight:d,arrowSize:h=0,arrowBoundaryOffset:p=0}=e,g=r instanceof HTMLElement?GW(r):document.documentElement,y=g===document.documentElement;const b=window.getComputedStyle(g).position;let D=!!b&&b!=="static",$=y?Xs(n):TD(n,g);if(!y){let{marginTop:Z,marginLeft:R}=window.getComputedStyle(n);$.top+=parseInt(Z,10)||0,$.left+=parseInt(R,10)||0}let v=Xs(r),w=zW(r);var T,E;v.width+=((T=w.left)!==null&&T!==void 0?T:0)+((E=w.right)!==null&&E!==void 0?E:0);var A,M;v.height+=((A=w.top)!==null&&A!==void 0?A:0)+((M=w.bottom)!==null&&M!==void 0?M:0);let S=UW(i),z=DD(u),j=DD(g),O=u.tagName==="BODY"?Xs(g):TD(g,u);return g.tagName==="HTML"&&u.tagName==="BODY"&&(j.scroll.top=0,j.scroll.left=0),WW(t,$,v,S,w,a,o,z,j,O,l,f,D,d,h,p)}function Xs(e){let{top:t,left:n,width:r,height:i}=e.getBoundingClientRect(),{scrollTop:a,scrollLeft:o,clientTop:u,clientLeft:l}=document.documentElement;return{top:t+a-u,left:n+o-l,width:r,height:i}}function TD(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:i,left:a,width:o,height:u}=e.getBoundingClientRect();r={top:i,left:a,width:o,height:u}}else{r=Xs(e);let i=Xs(t),a=window.getComputedStyle(t);i.top+=(parseInt(a.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(a.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=i.top,r.left-=i.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function GW(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!AD(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!AD(t);)t=t.parentElement;return t||document.documentElement}function AD(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const E_=new WeakMap;function YW(e){let{triggerRef:t,isOpen:n,onClose:r}=e;C.useEffect(()=>{if(!n||r===null)return;let i=a=>{let o=a.target;if(!t.current||o instanceof Node&&!o.contains(t.current)||a.target instanceof HTMLInputElement||a.target instanceof HTMLTextAreaElement)return;let u=r||E_.get(t.current);u&&u()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,t])}let zt=typeof document<"u"?window.visualViewport:null;function ZW(e){let{direction:t}=Sn(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:a=i,placement:o="bottom",containerPadding:u=12,shouldFlip:l=!0,boundaryElement:f=typeof document<"u"?document.body:null,offset:d=0,crossOffset:h=0,shouldUpdatePosition:p=!0,isOpen:g=!0,onClose:y,maxHeight:b,arrowBoundaryOffset:D=0}=e,[$,v]=C.useState(null),w=[p,o,i.current,r.current,a.current,u,l,f,d,h,g,t,b,D,n],T=C.useRef(zt==null?void 0:zt.scale);C.useEffect(()=>{g&&(T.current=zt==null?void 0:zt.scale)},[g]);let E=C.useCallback(()=>{if(p===!1||!g||!i.current||!r.current||!f||(zt==null?void 0:zt.scale)!==T.current)return;let j=null;if(a.current&&a.current.contains(document.activeElement)){var O;let _=(O=document.activeElement)===null||O===void 0?void 0:O.getBoundingClientRect(),H=a.current.getBoundingClientRect();var Z;if(j={type:"top",offset:((Z=_==null?void 0:_.top)!==null&&Z!==void 0?Z:0)-H.top},j.offset>H.height/2){j.type="bottom";var R;j.offset=((R=_==null?void 0:_.bottom)!==null&&R!==void 0?R:0)-H.bottom}}let V=i.current;if(!b&&i.current){var W;V.style.top="0px",V.style.bottom="";var L;V.style.maxHeight=((L=(W=window.visualViewport)===null||W===void 0?void 0:W.height)!==null&&L!==void 0?L:window.innerHeight)+"px"}let k=HW({placement:XW(o,t),overlayNode:i.current,targetNode:r.current,scrollNode:a.current||i.current,padding:u,shouldFlip:l,boundaryElement:f,offset:d,crossOffset:h,maxHeight:b,arrowSize:n,arrowBoundaryOffset:D});if(k.position){if(V.style.top="",V.style.bottom="",V.style.left="",V.style.right="",Object.keys(k.position).forEach(_=>V.style[_]=k.position[_]+"px"),V.style.maxHeight=k.maxHeight!=null?k.maxHeight+"px":"",j&&document.activeElement&&a.current){let _=document.activeElement.getBoundingClientRect(),H=a.current.getBoundingClientRect(),U=_[j.type]-H[j.type];a.current.scrollTop+=U-j.offset}v(k)}},w);Ct(E,w),JW(E),Ow({ref:i,onResize:E}),Ow({ref:r,onResize:E});let A=C.useRef(!1);Ct(()=>{let j,O=()=>{A.current=!0,clearTimeout(j),j=setTimeout(()=>{A.current=!1},500),E()},Z=()=>{A.current&&O()};return zt==null||zt.addEventListener("resize",O),zt==null||zt.addEventListener("scroll",Z),()=>{zt==null||zt.removeEventListener("resize",O),zt==null||zt.removeEventListener("scroll",Z)}},[E]);let M=C.useCallback(()=>{A.current||y==null||y()},[y,A]);YW({triggerRef:r,isOpen:g,onClose:y&&M});var S,z;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...$==null?void 0:$.position,maxHeight:(S=$==null?void 0:$.maxHeight)!==null&&S!==void 0?S:"100vh"}},placement:(z=$==null?void 0:$.placement)!==null&&z!==void 0?z:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:$==null?void 0:$.arrowOffsetLeft,top:$==null?void 0:$.arrowOffsetTop}},updatePosition:E}}function JW(e){Ct(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function XW(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Hi=[];function QW(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:a=!1,isKeyboardDismissDisabled:o=!1,shouldCloseOnInteractOutside:u}=e;C.useEffect(()=>(i&&Hi.push(t),()=>{let y=Hi.indexOf(t);y>=0&&Hi.splice(y,1)}),[i,t]);let l=()=>{Hi[Hi.length-1]===t&&n&&n()},f=y=>{(!u||u(y.target))&&Hi[Hi.length-1]===t&&(y.stopPropagation(),y.preventDefault())},d=y=>{(!u||u(y.target))&&(Hi[Hi.length-1]===t&&(y.stopPropagation(),y.preventDefault()),l())},h=y=>{y.key==="Escape"&&!o&&!y.nativeEvent.isComposing&&(y.stopPropagation(),y.preventDefault(),l())};kz({ref:t,onInteractOutside:a&&i?d:void 0,onInteractOutsideStart:f});let{focusWithinProps:p}=Au({isDisabled:!r,onBlurWithin:y=>{!y.relatedTarget||zz(y.relatedTarget)||(!u||u(y.relatedTarget))&&(n==null||n())}}),g=y=>{y.target===y.currentTarget&&y.preventDefault()};return{overlayProps:{onKeyDown:h,...p},underlayProps:{onPointerDown:g}}}function eH(e,t,n){let{type:r}=e,{isOpen:i}=t;C.useEffect(()=>{n&&n.current&&E_.set(n.current,t.close)});let a;r==="menu"?a=!0:r==="listbox"&&(a="listbox");let o=Yn();return{triggerProps:{"aria-haspopup":a,"aria-expanded":i,"aria-controls":i?o:void 0,onPress:t.toggle},overlayProps:{id:o}}}const Tg=typeof document<"u"&&window.visualViewport,tH=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let yd=0,Ag;function nH(e={}){let{isDisabled:t}=e;Ct(()=>{if(!t)return yd++,yd===1&&(Vc()?Ag=iH():Ag=rH()),()=>{yd--,yd===0&&Ag()}},[t])}function rH(){return Uo(Bs(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Bs(document.documentElement,"overflow","hidden"))}function iH(){let e,t,n=f=>{e=rp(f.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=Bs(e,"overscrollBehavior","contain"))},r=f=>{if(!e||e===document.documentElement||e===document.body){f.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&f.preventDefault()},i=()=>{t&&t()},a=f=>{let d=f.target;aH(d)&&(u(),d.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{d.style.transform="",Tg&&(Tg.height<window.innerHeight?requestAnimationFrame(()=>{PD(d)}):Tg.addEventListener("resize",()=>PD(d),{once:!0}))}))},o=null,u=()=>{if(o)return;let f=()=>{window.scrollTo(0,0)},d=window.pageXOffset,h=window.pageYOffset;o=Uo(Rl(window,"scroll",f),Bs(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Bs(document.documentElement,"overflow","hidden"),Bs(document.body,"marginTop",`-${h}px`),()=>{window.scrollTo(d,h)}),window.scrollTo(0,0)},l=Uo(Rl(document,"touchstart",n,{passive:!1,capture:!0}),Rl(document,"touchmove",r,{passive:!1,capture:!0}),Rl(document,"touchend",i,{passive:!1,capture:!0}),Rl(document,"focus",a,!0));return()=>{t==null||t(),o==null||o(),l()}}function Bs(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Rl(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function PD(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=rp(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect().top,a=n.getBoundingClientRect().top;a>i+n.clientHeight&&(r.scrollTop+=a-i)}n=r.parentElement}}function aH(e){return e instanceof HTMLInputElement&&!tH.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let Ol=new WeakMap,gr=[];function S_(e,t=document.body){let n=new Set(e),r=new Set,i=l=>{for(let p of l.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(p);let f=p=>{if(n.has(p)||p.parentElement&&r.has(p.parentElement)&&p.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let g of n)if(p.contains(g))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},d=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:f}),h=f(l);if(h===NodeFilter.FILTER_ACCEPT&&a(l),h!==NodeFilter.FILTER_REJECT){let p=d.nextNode();for(;p!=null;)a(p),p=d.nextNode()}},a=l=>{var f;let d=(f=Ol.get(l))!==null&&f!==void 0?f:0;l.getAttribute("aria-hidden")==="true"&&d===0||(d===0&&l.setAttribute("aria-hidden","true"),r.add(l),Ol.set(l,d+1))};gr.length&&gr[gr.length-1].disconnect(),i(t);let o=new MutationObserver(l=>{for(let f of l)if(!(f.type!=="childList"||f.addedNodes.length===0)&&![...n,...r].some(d=>d.contains(f.target))){for(let d of f.removedNodes)d instanceof Element&&(n.delete(d),r.delete(d));for(let d of f.addedNodes)(d instanceof HTMLElement||d instanceof SVGElement)&&(d.dataset.liveAnnouncer==="true"||d.dataset.reactAriaTopLayer==="true")?n.add(d):d instanceof Element&&i(d)}});o.observe(t,{childList:!0,subtree:!0});let u={observe(){o.observe(t,{childList:!0,subtree:!0})},disconnect(){o.disconnect()}};return gr.push(u),()=>{o.disconnect();for(let l of r){let f=Ol.get(l);f!=null&&(f===1?(l.removeAttribute("aria-hidden"),Ol.delete(l)):Ol.set(l,f-1))}u===gr[gr.length-1]?(gr.pop(),gr.length&&gr[gr.length-1].observe()):gr.splice(gr.indexOf(u),1)}}function oH(e,t){let{triggerRef:n,popoverRef:r,isNonModal:i,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:o,...u}=e,{overlayProps:l,underlayProps:f}=QW({isOpen:t.isOpen&&!u["data-react-aria-top-layer"],onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!i,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:o},r),{overlayProps:d,arrowProps:h,placement:p}=ZW({...u,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:i?t.close:null});return nH({isDisabled:i||!t.isOpen}),Ct(()=>{if(t.isOpen&&!i&&r.current)return S_([r.current])},[i,t.isOpen,r]),{popoverProps:ft(l,d),arrowProps:h,underlayProps:f,placement:p}}const sH=C.createContext({});function uH(){var e;return(e=C.useContext(sH))!==null&&e!==void 0?e:{}}const T_=C.createContext(null);function lH(e){let t=C1(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,a]=C.useState(!1),o=C.useMemo(()=>({contain:i,setContain:a}),[i,a]),{getContainer:u}=uH();if(!e.portalContainer&&u&&(n=u()),!n)return null;let l=e.children;return e.disableFocusManagement||(l=C.createElement(Vz,{restoreFocus:!0,contain:i&&!r},l)),l=C.createElement(T_.Provider,{value:o},C.createElement(Tz,null,l)),Na.createPortal(l,n)}function cH(){let e=C.useContext(T_),t=e==null?void 0:e.setContain;Ct(()=>{t==null||t(!0)},[t])}const dp=new WeakMap;function fH(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function A_(e,t){let n=dp.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${fH(t)}`}function d0(e){return Id()?e.altKey:e.ctrlKey}const dH=1e3;function hH(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=C.useRef({search:"",timeout:void 0}).current,a=o=>{let u=pH(o.key);if(!(!u||o.ctrlKey||o.metaKey||!o.currentTarget.contains(o.target))){if(u===" "&&i.search.trim().length>0&&(o.preventDefault(),"continuePropagation"in o||o.stopPropagation()),i.search+=u,t.getKeyForSearch!=null){let l=t.getKeyForSearch(i.search,n.focusedKey);l==null&&(l=t.getKeyForSearch(i.search)),l!=null&&(n.setFocusedKey(l),r&&r(l))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},dH)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?a:void 0}}}function pH(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function P_(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:a=!1,disallowEmptySelection:o=!1,disallowSelectAll:u=!1,selectOnFocus:l=t.selectionBehavior==="replace",disallowTypeAhead:f=!1,shouldUseVirtualFocus:d,allowsTabNavigation:h=!1,isVirtualized:p,scrollRef:g=r,linkBehavior:y="action"}=e,{direction:b}=Sn(),D=np(),$=R=>{var V;if(R.altKey&&R.key==="Tab"&&R.preventDefault(),!(!((V=r.current)===null||V===void 0)&&V.contains(R.target)))return;const W=(J,ye)=>{if(J!=null){if(t.isLink(J)&&y==="selection"&&l&&!d0(R)){var we;Na.flushSync(()=>{t.setFocusedKey(J,ye)});let me=(we=g.current)===null||we===void 0?void 0:we.querySelector(`[data-key="${CSS.escape(J.toString())}"]`),ue=t.getItemProps(J);me&&D.open(me,R,ue.href,ue.routerOptions);return}if(t.setFocusedKey(J,ye),t.isLink(J)&&y==="override")return;R.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(J):l&&!d0(R)&&t.replaceSelection(J)}};switch(R.key){case"ArrowDown":if(n.getKeyBelow){var L,k,_;let J=t.focusedKey!=null?(L=n.getKeyBelow)===null||L===void 0?void 0:L.call(n,t.focusedKey):(k=n.getFirstKey)===null||k===void 0?void 0:k.call(n);J==null&&a&&(J=(_=n.getFirstKey)===null||_===void 0?void 0:_.call(n,t.focusedKey)),J!=null&&(R.preventDefault(),W(J))}break;case"ArrowUp":if(n.getKeyAbove){var H,U,N;let J=t.focusedKey!=null?(H=n.getKeyAbove)===null||H===void 0?void 0:H.call(n,t.focusedKey):(U=n.getLastKey)===null||U===void 0?void 0:U.call(n);J==null&&a&&(J=(N=n.getLastKey)===null||N===void 0?void 0:N.call(n,t.focusedKey)),J!=null&&(R.preventDefault(),W(J))}break;case"ArrowLeft":if(n.getKeyLeftOf){var ne,ie,ce;let J=t.focusedKey!=null?(ne=n.getKeyLeftOf)===null||ne===void 0?void 0:ne.call(n,t.focusedKey):null;J==null&&a&&(J=b==="rtl"?(ie=n.getFirstKey)===null||ie===void 0?void 0:ie.call(n,t.focusedKey):(ce=n.getLastKey)===null||ce===void 0?void 0:ce.call(n,t.focusedKey)),J!=null&&(R.preventDefault(),W(J,b==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var xe,De,Ee;let J=t.focusedKey!=null?(xe=n.getKeyRightOf)===null||xe===void 0?void 0:xe.call(n,t.focusedKey):null;J==null&&a&&(J=b==="rtl"?(De=n.getLastKey)===null||De===void 0?void 0:De.call(n,t.focusedKey):(Ee=n.getFirstKey)===null||Ee===void 0?void 0:Ee.call(n,t.focusedKey)),J!=null&&(R.preventDefault(),W(J,b==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(t.focusedKey===null&&R.shiftKey)return;R.preventDefault();let J=n.getFirstKey(t.focusedKey,Fs(R));t.setFocusedKey(J),J!=null&&(Fs(R)&&R.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(J):l&&t.replaceSelection(J))}break;case"End":if(n.getLastKey){if(t.focusedKey===null&&R.shiftKey)return;R.preventDefault();let J=n.getLastKey(t.focusedKey,Fs(R));t.setFocusedKey(J),J!=null&&(Fs(R)&&R.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(J):l&&t.replaceSelection(J))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let J=n.getKeyPageBelow(t.focusedKey);J!=null&&(R.preventDefault(),W(J))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let J=n.getKeyPageAbove(t.focusedKey);J!=null&&(R.preventDefault(),W(J))}break;case"a":Fs(R)&&t.selectionMode==="multiple"&&u!==!0&&(R.preventDefault(),t.selectAll());break;case"Escape":!o&&t.selectedKeys.size!==0&&(R.stopPropagation(),R.preventDefault(),t.clearSelection());break;case"Tab":if(!h){if(R.shiftKey)r.current.focus();else{let J=Wn(r.current,{tabbable:!0}),ye,we;do we=J.lastChild(),we&&(ye=we);while(we);ye&&!ye.contains(document.activeElement)&&Ur(ye)}break}}},v=C.useRef({top:0,left:0});bi(g,"scroll",p?void 0:()=>{var R,V,W,L;v.current={top:(W=(R=g.current)===null||R===void 0?void 0:R.scrollTop)!==null&&W!==void 0?W:0,left:(L=(V=g.current)===null||V===void 0?void 0:V.scrollLeft)!==null&&L!==void 0?L:0}});let w=R=>{if(t.isFocused){R.currentTarget.contains(R.target)||t.setFocused(!1);return}if(R.currentTarget.contains(R.target)){if(t.setFocused(!0),t.focusedKey==null){var V,W;let _=U=>{U!=null&&(t.setFocusedKey(U),l&&t.replaceSelection(U))},H=R.relatedTarget;var L,k;H&&R.currentTarget.compareDocumentPosition(H)&Node.DOCUMENT_POSITION_FOLLOWING?_((L=t.lastSelectedKey)!==null&&L!==void 0?L:(V=n.getLastKey)===null||V===void 0?void 0:V.call(n)):_((k=t.firstSelectedKey)!==null&&k!==void 0?k:(W=n.getFirstKey)===null||W===void 0?void 0:W.call(n))}else!p&&g.current&&(g.current.scrollTop=v.current.top,g.current.scrollLeft=v.current.left);if(t.focusedKey!=null&&g.current){let _=g.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);_&&(_.contains(document.activeElement)||Ur(_),mc()==="keyboard"&&uh(_,{containingElement:r.current}))}}},T=R=>{R.currentTarget.contains(R.relatedTarget)||t.setFocused(!1)},E=C.useRef(!1);bi(r,yz,d?R=>{let{detail:V}=R;R.stopPropagation(),t.setFocused(!0),(V==null?void 0:V.focusStrategy)==="first"&&(E.current=!0)}:void 0);let A=Ht(()=>{var R,V;let W=(V=(R=n.getFirstKey)===null||R===void 0?void 0:R.call(n))!==null&&V!==void 0?V:null;if(W==null){var L;(L=r.current)===null||L===void 0||L.dispatchEvent(new CustomEvent(SA,{cancelable:!0,bubbles:!0})),t.collection.size>0&&(E.current=!1)}else t.setFocusedKey(W),E.current=!1});Rw(()=>{E.current&&A()},[t.collection,A]);let M=Ht(()=>{t.collection.size>0&&(E.current=!1)});Rw(()=>{M()},[t.focusedKey,M]),bi(r,gz,d?R=>{R.stopPropagation(),t.setFocused(!1),t.setFocusedKey(null)}:void 0);const S=C.useRef(i);C.useEffect(()=>{if(S.current){var R,V;let k=null;var W;i==="first"&&(k=(W=(R=n.getFirstKey)===null||R===void 0?void 0:R.call(n))!==null&&W!==void 0?W:null);var L;i==="last"&&(k=(L=(V=n.getLastKey)===null||V===void 0?void 0:V.call(n))!==null&&L!==void 0?L:null);let _=t.selectedKeys;if(_.size){for(let H of _)if(t.canSelectItem(H)){k=H;break}}t.setFocused(!0),t.setFocusedKey(k),k==null&&!d&&r.current&&Wo(r.current)}},[]);let z=C.useRef(t.focusedKey);C.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==z.current||S.current)&&g.current&&r.current){let R=mc(),V=r.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);if(!V)return;(R==="keyboard"||S.current)&&(CA(g.current,V),R!=="virtual"&&uh(V,{containingElement:r.current}))}!d&&t.isFocused&&t.focusedKey==null&&z.current!=null&&r.current&&Wo(r.current),z.current=t.focusedKey,S.current=!1}),bi(r,"react-aria-focus-scope-restore",R=>{R.preventDefault(),t.setFocused(!0)});let j={onKeyDown:$,onFocus:w,onBlur:T,onMouseDown(R){g.current===R.target&&R.preventDefault()}},{typeSelectProps:O}=hH({keyboardDelegate:n,selectionManager:t});f||(j=ft(O,j));let Z;return d?Z=-1:Z=t.focusedKey==null?0:-1,{collectionProps:{...j,tabIndex:Z}}}function mH(e){let{id:t,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:a,shouldUseVirtualFocus:o,focus:u,isDisabled:l,onAction:f,allowsDifferentPressOrigin:d,linkBehavior:h="action"}=e,p=np();t=Yn(t);let g=_=>{if(_.pointerType==="keyboard"&&d0(_))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(h==="selection"&&i.current){let H=n.getItemProps(r);p.open(i.current,_,H.href,H.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(h==="override"||h==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):_&&_.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||_&&(Fs(_)||_.pointerType==="touch"||_.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};C.useEffect(()=>{if(r===n.focusedKey&&n.isFocused)if(!o)u?u():document.activeElement!==i.current&&i.current&&Wo(i.current);else{var H;let U=new CustomEvent(SA,{cancelable:!0,bubbles:!0});(H=i.current)===null||H===void 0||H.dispatchEvent(U)}},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,o]),l=l||n.isDisabled(r);let y={};!o&&!l?y={tabIndex:r===n.focusedKey?0:-1,onFocus(_){_.target===i.current&&n.setFocusedKey(r)}}:l&&(y.onMouseDown=_=>{_.preventDefault()});let b=n.isLink(r)&&h==="override",D=n.isLink(r)&&h!=="selection"&&h!=="none",$=!l&&n.canSelectItem(r)&&!b,v=(f||D)&&!l,w=v&&(n.selectionBehavior==="replace"?!$:!$||n.isEmpty),T=v&&$&&n.selectionBehavior==="replace",E=w||T,A=C.useRef(null),M=E&&$,S=C.useRef(!1),z=C.useRef(!1),j=_=>{if(f&&f(),D&&i.current){let H=n.getItemProps(r);p.open(i.current,_,H.href,H.routerOptions)}},O={};a?(O.onPressStart=_=>{A.current=_.pointerType,S.current=M,_.pointerType==="keyboard"&&(!E||RD())&&g(_)},d?(O.onPressUp=w?void 0:_=>{_.pointerType==="mouse"&&$&&g(_)},O.onPress=w?j:_=>{_.pointerType!=="keyboard"&&_.pointerType!=="mouse"&&$&&g(_)}):O.onPress=_=>{if(w||T&&_.pointerType!=="mouse"){if(_.pointerType==="keyboard"&&!_D())return;j(_)}else _.pointerType!=="keyboard"&&$&&g(_)}):(O.onPressStart=_=>{A.current=_.pointerType,S.current=M,z.current=w,$&&(_.pointerType==="mouse"&&!w||_.pointerType==="keyboard"&&(!v||RD()))&&g(_)},O.onPress=_=>{(_.pointerType==="touch"||_.pointerType==="pen"||_.pointerType==="virtual"||_.pointerType==="keyboard"&&E&&_D()||_.pointerType==="mouse"&&z.current)&&(E?j(_):$&&g(_))}),y["data-key"]=r,O.preventFocusOnPress=o;let{pressProps:Z,isPressed:R}=Kc(O),V=T?_=>{A.current==="mouse"&&(_.stopPropagation(),_.preventDefault(),j(_))}:void 0,{longPressProps:W}=LA({isDisabled:!M,onLongPress(_){_.pointerType==="touch"&&(g(_),n.setSelectionBehavior("toggle"))}}),L=_=>{A.current==="touch"&&S.current&&_.preventDefault()},k=n.isLink(r)?_=>{zo.isOpening||_.preventDefault()}:void 0;return{itemProps:ft(y,$||w?Z:{},M?W:{},{onDoubleClick:V,onDragStartCapture:L,onClick:k,id:t}),isPressed:R,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:l,allowsSelection:$,hasAction:E}}function _D(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function RD(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class OD{getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?n.querySelector(`[data-key="${CSS.escape(t.toString())}"]`):null;if(!r)return null;let i=n.getBoundingClientRect(),a=r.getBoundingClientRect();return{x:a.left-i.left+n.scrollLeft,y:a.top-i.top+n.scrollTop,width:a.width,height:a.height}}getContentSize(){let t=this.ref.current;var n,r;return{width:(n=t==null?void 0:t.scrollWidth)!==null&&n!==void 0?n:0,height:(r=t==null?void 0:t.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let t=this.ref.current;var n,r,i,a;return{x:(n=t==null?void 0:t.scrollLeft)!==null&&n!==void 0?n:0,y:(r=t==null?void 0:t.scrollTop)!==null&&r!==void 0?r:0,width:(i=t==null?void 0:t.offsetWidth)!==null&&i!==void 0?i:0,height:(a=t==null?void 0:t.offsetHeight)!==null&&a!==void 0?a:0}}constructor(t){this.ref=t}}class __{isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,n){let r=t;for(;r!=null;){let i=this.collection.getItem(r);if((i==null?void 0:i.type)==="item"&&!this.isDisabled(i))return r;r=n(r)}return null}getNextKey(t){let n=t;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(t){let n=t;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(t,n,r){let i=t,a=this.layoutDelegate.getItemRect(i);if(!a||i==null)return null;let o=a;do{if(i=n(i),i==null)break;a=this.layoutDelegate.getItemRect(i)}while(a&&r(o,a)&&i!=null);return i}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](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 n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](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,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!pc(n))return this.getFirstKey();let i=t;if(this.orientation==="horizontal"){let a=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>a&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let a=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>a&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!pc(n))return this.getLastKey();let i=t;if(this.orientation==="horizontal"){let a=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<a&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let a=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<a&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,i=n||this.getFirstKey();for(;i!=null;){let a=r.getItem(i);if(!a)return null;let o=a.textValue.slice(0,t.length);if(a.textValue&&this.collator.compare(o,t)===0)return i;i=this.getNextKey(i)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new OD(n.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 OD(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function gH(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:a,layoutDelegate:o}=e,u=xP({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,f=C.useMemo(()=>a||new __({collection:n,disabledKeys:r,disabledBehavior:l,ref:i,collator:u,layoutDelegate:o}),[a,o,n,r,i,u,l]),{collectionProps:d}=P_({...e,ref:i,selectionManager:t,keyboardDelegate:f});return{listProps:d}}function yH(e,t,n){let r=ua(e,{labelable:!0}),i=e.selectionBehavior||"toggle",a=e.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&a==="action"&&(a="override");let{listProps:o}=gH({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:a}),{focusWithinProps:u}=Au({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=Yn(e.id);dp.set(t,{id:l,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:a});let{labelProps:f,fieldProps:d}=cp({...e,id:l,labelElementType:"span"});return{labelProps:f,listBoxProps:ft(r,u,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...ft(d,o)})}}function R_(e){return null}R_.getCollectionNode=function*(t,n){let{childItems:r,title:i,children:a}=t,o=t.title||t.children,u=t.textValue||(typeof o=="string"?o:"")||t["aria-label"]||"";!u&&!(n!=null&&n.suppressTextValueWarning)&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:o,textValue:u,"aria-label":t["aria-label"],hasChildNodes:vH(t),*childNodes(){if(r)for(let l of r)yield{type:"item",value:l};else if(i){let l=[];C.Children.forEach(a,f=>{l.push({type:"item",element:f})}),yield*l}}}};function vH(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&C.Children.count(e.children)>0)}let bH=R_;class $H{build(t,n){return this.context=n,MD(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(C.isValidElement(n)&&n.type===C.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let a of r)yield*this.getFullNode({value:a,index:i},{renderer:n}),i++}else{let i=[];C.Children.forEach(n,o=>{o&&i.push(o)});let a=0;for(let o of i){let u=this.getFullNode({element:o,index:a},{});for(let l of u)a++,yield l}}}getKey(t,n,r,i){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let a=n.value;if(a!=null){var o;let u=(o=a.key)!==null&&o!==void 0?o:a.id;if(u==null)throw new Error("No key found for item");return u}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,i){if(C.isValidElement(t.element)&&t.element.type===C.Fragment){let D=[];C.Children.forEach(t.element.props.children,v=>{D.push(v)});var a;let $=(a=t.index)!==null&&a!==void 0?a:0;for(const v of D)yield*this.getFullNode({element:v,index:$++},n,r,i);return}let o=t.element;if(!o&&t.value&&n&&n.renderer){let D=this.cache.get(t.value);if(D&&(!D.shouldInvalidate||!D.shouldInvalidate(this.context))){D.index=t.index,D.parentKey=i?i.key:null,yield D;return}o=n.renderer(t.value)}if(C.isValidElement(o)){let D=o.type;if(typeof D!="function"&&typeof D.getCollectionNode!="function"){let T=o.type;throw new Error(`Unknown element <${T}> in collection.`)}let $=D.getCollectionNode(o.props,this.context);var u;let v=(u=t.index)!==null&&u!==void 0?u:0,w=$.next();for(;!w.done&&w.value;){let T=w.value;t.index=v;var l;let E=(l=T.key)!==null&&l!==void 0?l:null;E==null&&(E=T.element?null:this.getKey(o,t,n,r));let M=[...this.getFullNode({...T,key:E,index:v,wrapper:xH(t.wrapper,T.wrapper)},this.getChildState(n,T),r?`${r}${o.key}`:o.key,i)];for(let S of M){var f,d;S.value=(d=(f=T.value)!==null&&f!==void 0?f:t.value)!==null&&d!==void 0?d:null,S.value&&this.cache.set(S.value,S);var h;if(t.type&&S.type!==t.type)throw new Error(`Unsupported type <${Pg(S.type)}> in <${Pg((h=i==null?void 0:i.type)!==null&&h!==void 0?h:"unknown parent type")}>. Only <${Pg(t.type)}> is supported.`);v++,yield S}w=$.next(M)}return}if(t.key==null||t.type==null)return;let p=this;var g,y;let b={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:(g=t.value)!==null&&g!==void 0?g:null,level:i?i.level+1:0,index:t.index,rendered:t.rendered,textValue:(y=t.textValue)!==null&&y!==void 0?y:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:MD(function*(){if(!t.hasChildNodes||!t.childNodes)return;let D=0;for(let $ of t.childNodes()){$.key!=null&&($.key=`${b.key}${$.key}`);let v=p.getFullNode({...$,index:D},p.getChildState(n,$),b.key,b);for(let w of v)D++,yield w}})};yield b}constructor(){this.cache=new WeakMap}}function MD(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function xH(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function Pg(e){return e[0].toUpperCase()+e.slice(1)}function wH(e,t,n){let r=C.useMemo(()=>new $H,[]),{children:i,items:a,collection:o}=e;return C.useMemo(()=>{if(o)return o;let l=r.build({children:i,items:a},n);return t(l)},[r,i,a,o,n,t])}function hp(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function DH(e){return CH(e)}function CH(e,t){for(let n of e)return n}function _g(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...FD(e,t),t],i=[...FD(e,n),n],a=r.slice(0,i.length).findIndex((o,u)=>o!==i[u]);return a!==-1?(t=r[a],n=i[a],t.index-n.index):r.findIndex(o=>o===n)>=0?1:(i.findIndex(o=>o===t)>=0,-1)}function FD(e,t){let n=[],r=t;for(;(r==null?void 0:r.parentKey)!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}const kD=new WeakMap;function O_(e){let t=kD.get(e);if(t!=null)return t;let n=0,r=i=>{for(let a of i)a.type==="section"?r(hp(a,e)):n++};return r(e),kD.set(e,n),n}function EH(e,t,n){var r,i;let{key:a}=e,o=dp.get(t);var u;let l=(u=e.isDisabled)!==null&&u!==void 0?u:t.selectionManager.isDisabled(a);var f;let d=(f=e.isSelected)!==null&&f!==void 0?f:t.selectionManager.isSelected(a);var h;let p=(h=e.shouldSelectOnPressUp)!==null&&h!==void 0?h:o==null?void 0:o.shouldSelectOnPressUp;var g;let y=(g=e.shouldFocusOnHover)!==null&&g!==void 0?g:o==null?void 0:o.shouldFocusOnHover;var b;let D=(b=e.shouldUseVirtualFocus)!==null&&b!==void 0?b:o==null?void 0:o.shouldUseVirtualFocus;var $;let v=($=e.isVirtualized)!==null&&$!==void 0?$:o==null?void 0:o.isVirtualized,w=uu(),T=uu(),E={role:"option","aria-disabled":l||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?d:void 0};ia()&&S1()||(E["aria-label"]=e["aria-label"],E["aria-labelledby"]=w,E["aria-describedby"]=T);let A=t.collection.getItem(a);if(v){let k=Number(A==null?void 0:A.index);E["aria-posinset"]=Number.isNaN(k)?void 0:k+1,E["aria-setsize"]=O_(t.collection)}let M=o!=null&&o.onAction?()=>{var k;return o==null||(k=o.onAction)===null||k===void 0?void 0:k.call(o,a)}:void 0,S=A_(t,a),{itemProps:z,isPressed:j,isFocused:O,hasAction:Z,allowsSelection:R}=mH({selectionManager:t.selectionManager,key:a,ref:n,shouldSelectOnPressUp:p,allowsDifferentPressOrigin:p&&y,isVirtualized:v,shouldUseVirtualFocus:D,isDisabled:l,onAction:M||!(A==null||(r=A.props)===null||r===void 0)&&r.onAction?Uo(A==null||(i=A.props)===null||i===void 0?void 0:i.onAction,M):void 0,linkBehavior:o==null?void 0:o.linkBehavior,id:S}),{hoverProps:V}=Fz({isDisabled:l||!y,onHoverStart(){Vw()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(a))}}),W=ua(A==null?void 0:A.props);delete W.id;let L=fz(A==null?void 0:A.props);return{optionProps:{...E,...ft(W,z,V,L),id:S},labelProps:{id:w},descriptionProps:{id:T},isFocused:O,isFocusVisible:O&&Vw(),isSelected:d,isDisabled:l,isPressed:j,allowsSelection:R,hasAction:Z}}var M_={};M_={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var F_={};F_={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var k_={};k_={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var I_={};I_={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var B_={};B_={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var L_={};L_={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var V_={};V_={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var N_={};N_={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var j_={};j_={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var K_={};K_={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var U_={};U_={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var z_={};z_={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var q_={};q_={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var W_={};W_={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var H_={};H_={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var G_={};G_={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var Y_={};Y_={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var Z_={};Z_={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var J_={};J_={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var X_={};X_={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var Q_={};Q_={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var eR={};eR={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var tR={};tR={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var nR={};nR={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var rR={};rR={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var iR={};iR={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var aR={};aR={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var oR={};oR={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var sR={};sR={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var uR={};uR={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var lR={};lR={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var cR={};cR={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var fR={};fR={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var dR={};dR={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var hR={};hR={"ar-AE":M_,"bg-BG":F_,"cs-CZ":k_,"da-DK":I_,"de-DE":B_,"el-GR":L_,"en-US":V_,"es-ES":N_,"et-EE":j_,"fi-FI":K_,"fr-FR":U_,"he-IL":z_,"hr-HR":q_,"hu-HU":W_,"it-IT":H_,"ja-JP":G_,"ko-KR":Y_,"lt-LT":Z_,"lv-LV":J_,"nb-NO":X_,"nl-NL":Q_,"pl-PL":eR,"pt-BR":tR,"pt-PT":nR,"ro-RO":rR,"ru-RU":iR,"sk-SK":aR,"sl-SI":oR,"sr-SP":sR,"sv-SE":uR,"tr-TR":lR,"uk-UA":cR,"zh-CN":fR,"zh-TW":dR};function SH(e){return e&&e.__esModule?e.default:e}function TH(e,t,n){let{type:r="menu",isDisabled:i,trigger:a="press"}=e,o=Yn(),{triggerProps:u,overlayProps:l}=eH({type:r},t,n),f=g=>{if(!i&&!(a==="longPress"&&!g.altKey)&&n&&n.current)switch(g.key){case"Enter":case" ":if(a==="longPress")return;case"ArrowDown":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),t.toggle("last");break;default:"continuePropagation"in g&&g.continuePropagation()}},d=Ri(SH(hR),"@react-aria/menu"),{longPressProps:h}=LA({isDisabled:i||a!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),p={onPressStart(g){g.pointerType!=="touch"&&g.pointerType!=="keyboard"&&!i&&t.open(g.pointerType==="virtual"?"first":null)},onPress(g){g.pointerType==="touch"&&!i&&t.toggle()}};return delete u.onPress,{menuTriggerProps:{...u,...a==="press"?p:h,id:o,onKeyDown:f},menuProps:{...l,"aria-labelledby":o,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function AH(e){return e&&e.__esModule?e.default:e}function PH(e,t){let{buttonRef:n,popoverRef:r,inputRef:i,listBoxRef:a,keyboardDelegate:o,layoutDelegate:u,shouldFocusWrap:l,isReadOnly:f,isDisabled:d}=e,h=C.useRef(null);n=n??h;let p=Ri(AH(D_),"@react-aria/combobox"),{menuTriggerProps:g,menuProps:y}=TH({type:"listbox",isDisabled:d||f},t,n);dp.set(t,{id:y.id});let{collection:b}=t,{disabledKeys:D}=t.selectionManager,$=C.useMemo(()=>o||new __({collection:b,disabledKeys:D,ref:a,layoutDelegate:u}),[o,u,b,D,a]),{collectionProps:v}=P_({selectionManager:t.selectionManager,keyboardDelegate:$,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:l,ref:i,isVirtualized:!0}),w=np(),T=me=>{if(!me.nativeEvent.isComposing)switch(me.key){case"Enter":case"Tab":if(t.isOpen&&me.key==="Enter"&&me.preventDefault(),t.isOpen&&a.current&&t.selectionManager.focusedKey!=null&&t.selectionManager.isLink(t.selectionManager.focusedKey)){let ue=a.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);if(me.key==="Enter"&&ue instanceof HTMLAnchorElement){let Le=t.collection.getItem(t.selectionManager.focusedKey);Le&&w.open(ue,me,Le.props.href,Le.props.routerOptions)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&me.continuePropagation(),t.revert();break;case"ArrowDown":t.open("first","manual");break;case"ArrowUp":t.open("last","manual");break;case"ArrowLeft":case"ArrowRight":t.selectionManager.setFocusedKey(null);break}},E=me=>{var ue;let Le=(n==null?void 0:n.current)&&n.current===me.relatedTarget,nt=(ue=r.current)===null||ue===void 0?void 0:ue.contains(me.relatedTarget);Le||nt||(e.onBlur&&e.onBlur(me),t.setFocused(!1))},A=me=>{t.isFocused||(e.onFocus&&e.onFocus(me),t.setFocused(!0))},{isInvalid:M,validationErrors:S,validationDetails:z}=t.displayValidation,{labelProps:j,inputProps:O,descriptionProps:Z,errorMessageProps:R}=VW({...e,onChange:t.setInputValue,onKeyDown:f?e.onKeyDown:Uo(t.isOpen&&v.onKeyDown,T,e.onKeyDown),onBlur:E,value:t.inputValue,onFocus:A,autoComplete:"off",validate:void 0,[du]:t},i),V=me=>{if(me.pointerType==="touch"){var ue;(ue=i.current)===null||ue===void 0||ue.focus(),t.toggle(null,"manual")}},W=me=>{if(me.pointerType!=="touch"){var ue;(ue=i.current)===null||ue===void 0||ue.focus(),t.toggle(me.pointerType==="keyboard"||me.pointerType==="virtual"?"first":null,"manual")}},L=lu({id:g.id,"aria-label":p.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||j.id}),k=lu({id:y.id,"aria-label":p.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||j.id}),_=C.useRef(0),H=me=>{if(d||f)return;if(me.timeStamp-_.current<500){var ue;me.preventDefault(),(ue=i.current)===null||ue===void 0||ue.focus();return}let Le=me.target.getBoundingClientRect(),nt=me.changedTouches[0],Nt=Math.ceil(Le.left+.5*Le.width),Xn=Math.ceil(Le.top+.5*Le.height);if(nt.clientX===Nt&&nt.clientY===Xn){var Pt;me.preventDefault(),(Pt=i.current)===null||Pt===void 0||Pt.focus(),t.toggle(null,"manual"),_.current=me.timeStamp}},U=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var N;let ne=(N=U==null?void 0:U.parentKey)!==null&&N!==void 0?N:null;var ie;let ce=(ie=t.selectionManager.focusedKey)!==null&&ie!==void 0?ie:null,xe=C.useRef(ne),De=C.useRef(ce);C.useEffect(()=>{if(Id()&&U!=null&&ce!=null&&ce!==De.current){let ue=t.selectionManager.isSelected(ce),Le=ne!=null?t.collection.getItem(ne):null,nt=(Le==null?void 0:Le["aria-label"])||(typeof(Le==null?void 0:Le.rendered)=="string"?Le.rendered:"")||"";var me;let Nt=p.format("focusAnnouncement",{isGroupChange:(me=Le&&ne!==xe.current)!==null&&me!==void 0?me:!1,groupTitle:nt,groupCount:Le?[...hp(Le,t.collection)].length:0,optionText:U["aria-label"]||U.textValue||"",isSelected:ue});Js(Nt)}xe.current=ne,De.current=ce});let Ee=O_(t.collection),J=C.useRef(Ee),ye=C.useRef(t.isOpen);C.useEffect(()=>{let me=t.isOpen!==ye.current&&(t.selectionManager.focusedKey==null||Id());if(t.isOpen&&(me||Ee!==J.current)){let ue=p.format("countAnnouncement",{optionCount:Ee});Js(ue)}J.current=Ee,ye.current=t.isOpen});let we=C.useRef(t.selectedKey);return C.useEffect(()=>{if(Id()&&t.isFocused&&t.selectedItem&&t.selectedKey!==we.current){let me=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",ue=p.format("selectedAnnouncement",{optionText:me});Js(ue)}we.current=t.selectedKey}),C.useEffect(()=>{if(t.isOpen)return S_([i.current,r.current].filter(me=>me!=null))},[t.isOpen,i,r]),{labelProps:j,buttonProps:{...g,...L,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:V,onPressStart:W,isDisabled:d||f},inputProps:ft(O,{role:"combobox","aria-expanded":g["aria-expanded"],"aria-controls":t.isOpen?y.id:void 0,"aria-autocomplete":"list","aria-activedescendant":U?A_(t,U.key):void 0,onTouchEnd:H,autoCorrect:"off",spellCheck:"false"}),listBoxProps:ft(y,k,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:Z,errorMessageProps:R,isInvalid:M,validationErrors:S,validationDetails:z}}var pR={};pR={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var mR={};mR={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var gR={};gR={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var yR={};yR={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var vR={};vR={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Anfangsdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var bR={};bR={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var $R={};$R={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var xR={};xR={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var wR={};wR={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var DR={};DR={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var CR={};CR={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var ER={};ER={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var SR={};SR={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var TR={};TR={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var AR={};AR={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var PR={};PR={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var _R={};_R={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var RR={};RR={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var OR={};OR={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var MR={};MR={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var FR={};FR={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var kR={};kR={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var IR={};IR={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var BR={};BR={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var LR={};LR={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var VR={};VR={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var NR={};NR={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var jR={};jR={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var KR={};KR={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var UR={};UR={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var zR={};zR={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var qR={};qR={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var WR={};WR={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var HR={};HR={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var Yc={};Yc={"ar-AE":pR,"bg-BG":mR,"cs-CZ":gR,"da-DK":yR,"de-DE":vR,"el-GR":bR,"en-US":$R,"es-ES":xR,"et-EE":wR,"fi-FI":DR,"fr-FR":CR,"he-IL":ER,"hr-HR":SR,"hu-HU":TR,"it-IT":AR,"ja-JP":PR,"ko-KR":_R,"lt-LT":RR,"lv-LV":OR,"nb-NO":MR,"nl-NL":FR,"pl-PL":kR,"pt-BR":IR,"pt-PT":BR,"ro-RO":LR,"ru-RU":VR,"sk-SK":NR,"sl-SI":jR,"sr-SP":KR,"sv-SE":UR,"tr-TR":zR,"uk-UA":qR,"zh-CN":WR,"zh-TW":HR};function H1(e,t,n){let{direction:r}=Sn(),i=C.useMemo(()=>ap(t),[t]),a=l=>{if(l.currentTarget.contains(l.target)&&(l.altKey&&(l.key==="ArrowDown"||l.key==="ArrowUp")&&"setOpen"in e&&(l.preventDefault(),l.stopPropagation(),e.setOpen(!0)),!n))switch(l.key){case"ArrowLeft":l.preventDefault(),l.stopPropagation(),r==="rtl"?i.focusNext():i.focusPrevious();break;case"ArrowRight":l.preventDefault(),l.stopPropagation(),r==="rtl"?i.focusPrevious():i.focusNext();break}},o=()=>{var l;if(!t.current)return;let f=(l=window.event)===null||l===void 0?void 0:l.target,d=Wn(t.current,{tabbable:!0});if(f&&(d.currentNode=f,f=d.previousNode()),!f){let h;do h=d.lastChild(),h&&(f=h);while(h)}for(;f!=null&&f.hasAttribute("data-placeholder");){let h=d.previousNode();if(h&&h.hasAttribute("data-placeholder"))f=h;else break}f&&f.focus()},{pressProps:u}=Kc({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&o()},onPress(l){l.pointerType!=="mouse"&&o()}});return ft(u,{onKeyDown:a})}function _H(e){return e&&e.__esModule?e.default:e}const GR=new WeakMap,ac="__role_"+Date.now(),YR="__focusManager_"+Date.now();function ZR(e,t,n){var r;let{isInvalid:i,validationErrors:a,validationDetails:o}=t.displayValidation,{labelProps:u,fieldProps:l,descriptionProps:f,errorMessageProps:d}=fp({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||a}),h=C.useRef(null),{focusWithinProps:p}=Au({...e,onFocusWithin(j){var O;h.current=t.value,(O=e.onFocus)===null||O===void 0||O.call(e,j)},onBlurWithin:j=>{var O;t.confirmPlaceholder(),t.value!==h.current&&t.commitValidation(),(O=e.onBlur)===null||O===void 0||O.call(e,j)},onFocusWithinChange:e.onFocusChange}),g=Ri(_H(Yc),"@react-aria/datepicker"),y=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",b=t.maxGranularity==="hour"?"time":"date",D=t.value?g.format(y,{[b]:t.formatValue({month:"long"})}):"",$=Nc(D),v=e[ac]==="presentation"?l["aria-describedby"]:[$["aria-describedby"],l["aria-describedby"]].filter(Boolean).join(" ")||void 0,w=e[YR],T=C.useMemo(()=>w||ap(n),[w,n]),E=H1(t,n,e[ac]==="presentation");GR.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[u.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:v,focusManager:T});let A=C.useRef(e.autoFocus),M;e[ac]==="presentation"?M={role:"presentation"}:M=ft(l,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":v}),C.useEffect(()=>{A.current&&T.focusFirst(),A.current=!1},[T]),A1(e.inputRef,t.value,t.setValue),s6({...e,focus(){T.focusFirst()}},t,e.inputRef);let S={type:"hidden",name:e.name,value:((r=t.value)===null||r===void 0?void 0:r.toString())||"",disabled:e.isDisabled};e.validationBehavior==="native"&&(S.type="text",S.hidden=!0,S.required=e.isRequired,S.onChange=()=>{});let z=ua(e);return{labelProps:{...u,onClick:()=>{T.focusFirst()}},fieldProps:ft(z,M,E,p,{onKeyDown(j){e.onKeyDown&&e.onKeyDown(j)},onKeyUp(j){e.onKeyUp&&e.onKeyUp(j)}}),inputProps:S,descriptionProps:f,errorMessageProps:d,isInvalid:i,validationErrors:a,validationDetails:o}}function RH(e,t,n){var r;let i=ZR(e,t,n);return i.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",i}function OH(e){return e&&e.__esModule?e.default:e}function MH(e,t,n){let r=Yn(),i=Yn(),a=Yn(),o=Ri(OH(Yc),"@react-aria/datepicker"),{isInvalid:u,validationErrors:l,validationDetails:f}=t.displayValidation,{labelProps:d,fieldProps:h,descriptionProps:p,errorMessageProps:g}=fp({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||l}),y=H1(t,n),b=h["aria-labelledby"]||h.id,{locale:D}=Sn(),$=t.formatValue(D,{month:"long"}),v=$?o.format("selectedDateDescription",{date:$}):"",w=Nc(v),T=[w["aria-describedby"],h["aria-describedby"]].filter(Boolean).join(" ")||void 0,E=ua(e),A=C.useMemo(()=>ap(n),[n]),{focusWithinProps:M}=Au({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:ft(E,y,h,w,M,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":b,"aria-describedby":T,onKeyDown(S){t.isOpen||e.onKeyDown&&e.onKeyDown(S)},onKeyUp(S){t.isOpen||e.onKeyUp&&e.onKeyUp(S)}}),labelProps:{...d,onClick:()=>{A.focusFirst()}},fieldProps:{...h,id:a,[ac]:"presentation","aria-describedby":T,value:t.value,onChange:t.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[du]:t,autoFocus:e.autoFocus,name:e.name},descriptionProps:p,errorMessageProps:g,buttonProps:{...w,id:r,"aria-haspopup":"dialog","aria-label":o.format("calendar"),"aria-labelledby":`${r} ${b}`,"aria-describedby":T,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:i,"aria-labelledby":`${r} ${b}`},calendarProps:{autoFocus:!0,value:t.dateValue,onChange:t.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:t.dateValue?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:u,validationErrors:l,validationDetails:f}}function FH(e){return e&&e.__esModule?e.default:e}function kH(){let{locale:e}=Sn(),t=zA(FH(Yc),"@react-aria/datepicker");return C.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new IH(e,t)}},[e,t])}class IH{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function BH(e,t,n){let r=C.useRef(""),{locale:i}=Sn(),a=kH(),{ariaLabel:o,ariaLabelledBy:u,ariaDescribedBy:l,focusManager:f}=GR.get(t),d=e.isPlaceholder?"":e.text,h=C.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),p=$i({month:"long",timeZone:h.timeZone}),g=$i({hour:"numeric",hour12:h.hour12,timeZone:h.timeZone});if(e.type==="month"&&!e.isPlaceholder){let _=p.format(t.dateValue);d=_!==d?`${d} – ${_}`:_}else e.type==="hour"&&!e.isPlaceholder&&(d=g.format(t.dateValue));let{spinButtonProps:y}=jW({value:e.value,textValue:d,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{r.current="",t.increment(e.type)},onDecrement:()=>{r.current="",t.decrement(e.type)},onIncrementPage:()=>{r.current="",t.incrementPage(e.type)},onDecrementPage:()=>{r.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{r.current="",e.maxValue!==void 0&&t.setSegment(e.type,e.maxValue)},onDecrementToMin:()=>{r.current="",e.minValue!==void 0&&t.setSegment(e.type,e.minValue)}}),b=C.useMemo(()=>new $P(i,{maximumFractionDigits:0}),[i]),D=()=>{if(e.text===e.placeholder&&f.focusPrevious(),b.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let _=e.text.slice(0,-1),H=b.parse(_);_=H===0?"":_,_.length===0||H===0?t.clearSegment(e.type):t.setSegment(e.type,H),r.current=_}else e.type==="dayPeriod"&&t.clearSegment(e.type)},$=_=>{if(_.key==="a"&&(ia()?_.metaKey:_.ctrlKey)&&_.preventDefault(),!(_.ctrlKey||_.metaKey||_.shiftKey||_.altKey))switch(_.key){case"Backspace":case"Delete":_.preventDefault(),_.stopPropagation(),D();break}},{startsWith:v}=wP({sensitivity:"base"}),w=$i({hour:"numeric",hour12:!0}),T=C.useMemo(()=>{let _=new Date;return _.setHours(0),w.formatToParts(_).find(H=>H.type==="dayPeriod").value},[w]),E=C.useMemo(()=>{let _=new Date;return _.setHours(12),w.formatToParts(_).find(H=>H.type==="dayPeriod").value},[w]),A=$i({year:"numeric",era:"narrow",timeZone:"UTC"}),M=C.useMemo(()=>{if(e.type!=="era")return[];let _=Lt(new Yt(1,1,1),t.calendar),H=t.calendar.getEras().map(N=>{let ne=_.set({year:1,month:1,day:1,era:N}).toDate("UTC"),ce=A.formatToParts(ne).find(xe=>xe.type==="era").value;return{era:N,formatted:ce}}),U=LH(H.map(N=>N.formatted));if(U)for(let N of H)N.formatted=N.formatted.slice(U);return H},[A,t.calendar,e.type]),S=_=>{if(t.isDisabled||t.isReadOnly)return;let H=r.current+_;switch(e.type){case"dayPeriod":if(v(T,_))t.setSegment("dayPeriod",0);else if(v(E,_))t.setSegment("dayPeriod",12);else break;f.focusNext();break;case"era":{let U=M.find(N=>v(N.formatted,_));U&&(t.setSegment("era",U.era),f.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!b.isValidPartialNumber(H))return;let U=b.parse(H),N=U,ne=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":U>11&&(N=b.parse(_));break;case"h12":ne=!1,U>12&&(N=b.parse(_));break}e.value!==void 0&&e.value>=12&&U>1&&(U+=12)}else e.maxValue!==void 0&&U>e.maxValue&&(N=b.parse(_));if(isNaN(U))return;let ie=N!==0||ne;ie&&t.setSegment(e.type,N),e.maxValue!==void 0&&(+(U+"0")>e.maxValue||H.length>=String(e.maxValue).length)?(r.current="",ie&&f.focusNext()):r.current=H;break}}},z=()=>{r.current="",n.current&&uh(n.current,{containingElement:rp(n.current)});let _=window.getSelection();_==null||_.collapse(n.current)},j=C.useRef(typeof document<"u"?document:null);bi(j,"selectionchange",()=>{var _;let H=window.getSelection();H!=null&&H.anchorNode&&(!((_=n.current)===null||_===void 0)&&_.contains(H==null?void 0:H.anchorNode))&&H.collapse(n.current)});let O=C.useRef("");bi(n,"beforeinput",_=>{if(n.current)switch(_.preventDefault(),_.inputType){case"deleteContentBackward":case"deleteContentForward":b.isValidPartialNumber(e.text)&&!t.isReadOnly&&D();break;case"insertCompositionText":O.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:_.data!=null&&S(_.data);break}}),bi(n,"input",_=>{let{inputType:H,data:U}=_;switch(H){case"insertCompositionText":n.current&&(n.current.textContent=O.current),U!=null&&(v(T,U)||v(E,U))&&S(U);break}}),Ct(()=>{let _=n.current;return()=>{document.activeElement===_&&(f.focusPrevious()||f.focusNext())}},[n,f]);let Z=Vc()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},R=C.useMemo(()=>t.segments.find(_=>_.isEditable),[t.segments]);e!==R&&!t.isInvalid&&(l=void 0);let V=Yn(),W=!t.isDisabled&&!t.isReadOnly&&e.isEditable,L=e.type==="literal"?"":a.of(e.type),k=lu({"aria-label":`${L}${o?`, ${o}`:""}${u?", ":""}`,"aria-labelledby":u});return e.type==="literal"?{segmentProps:{"aria-hidden":!0}}:{segmentProps:ft(y,k,{id:V,...Z,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":l,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:W,suppressContentEditableWarning:W,spellCheck:W?"false":void 0,autoCorrect:W?"off":void 0,[parseInt(C.version,10)>=17?"enterKeyHint":"enterkeyhint"]:W?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!W?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:$,onFocus:z,style:{caretColor:"transparent"},onPointerDown(_){_.stopPropagation()},onMouseDown(_){_.stopPropagation()}})}}function LH(e){e.sort();let t=e[0],n=e[e.length-1];for(let r=0;r<t.length;r++)if(t[r]!==n[r])return r;return 0}function VH(e){return e&&e.__esModule?e.default:e}function NH(e,t,n){var r,i,a;let o=Ri(VH(Yc),"@react-aria/datepicker"),{isInvalid:u,validationErrors:l,validationDetails:f}=t.displayValidation,{labelProps:d,fieldProps:h,descriptionProps:p,errorMessageProps:g}=fp({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||l}),y=h["aria-labelledby"]||h.id,{locale:b}=Sn(),D=t.formatValue(b,{month:"long"}),$=D?o.format("selectedRangeDescription",{startDate:D.start,endDate:D.end}):"",v=Nc($),w={"aria-label":o.format("startDate"),"aria-labelledby":y},T={"aria-label":o.format("endDate"),"aria-labelledby":y},E=Yn(),A=Yn(),M=H1(t,n),S=[v["aria-describedby"],h["aria-describedby"]].filter(Boolean).join(" ")||void 0,z=C.useMemo(()=>ap(n,{accept:k=>k.id!==E}),[n,E]),j={[YR]:z,[ac]:"presentation","aria-describedby":S,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},O=ua(e),{focusWithinProps:Z}=Au({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),R=C.useRef(Co),V=C.useRef(Co);var W,L;return{groupProps:ft(O,M,h,v,Z,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":S,onKeyDown(k){t.isOpen||e.onKeyDown&&e.onKeyDown(k)},onKeyUp(k){t.isOpen||e.onKeyUp&&e.onKeyUp(k)}}),labelProps:{...d,onClick:()=>{z.focusFirst()}},buttonProps:{...v,id:E,"aria-haspopup":"dialog","aria-label":o.format("calendar"),"aria-labelledby":`${E} ${y}`,"aria-describedby":S,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:A,"aria-labelledby":`${E} ${y}`},startFieldProps:{...w,...j,value:(W=(r=t.value)===null||r===void 0?void 0:r.start)!==null&&W!==void 0?W:null,onChange:k=>t.setDateTime("start",k),autoFocus:e.autoFocus,name:e.startName,[du]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(k){R.current=k,t.updateValidation(yh(k,V.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...T,...j,value:(L=(i=t.value)===null||i===void 0?void 0:i.end)!==null&&L!==void 0?L:null,onChange:k=>t.setDateTime("end",k),name:e.endName,[du]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(k){V.current=k,t.updateValidation(yh(R.current,k))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:p,errorMessageProps:g,calendarProps:{autoFocus:!0,value:!((a=t.dateRange)===null||a===void 0)&&a.start&&t.dateRange.end?t.dateRange:null,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:u,validationErrors:l,validationDetails:f}}function jH(e,t){let{role:n="dialog"}=e,r=uu();r=e["aria-label"]?void 0:r;let i=C.useRef(!1);return C.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Wo(t.current);let a=setTimeout(()=>{document.activeElement===t.current&&(i.current=!0,t.current&&(t.current.blur(),Wo(t.current)),i.current=!1)},500);return()=>{clearTimeout(a)}}},[t]),cH(),{dialogProps:{...ua(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:a=>{i.current&&a.stopPropagation()}},titleProps:{id:r}}}function Qs(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function h0(e,t,n,r,i){let a={};for(let u in t)a[u]=Math.floor(t[u]/2),a[u]>0&&t[u]%2===0&&a[u]--;let o=Po(e,t,n).subtract(a);return xc(e,o,t,n,r,i)}function Po(e,t,n,r,i){let a=e;return t.years?a=cq(e):t.months?a=qc(e):t.weeks&&(a=gc(e,n)),xc(e,a,t,n,r,i)}function p0(e,t,n,r,i){let a={...t};a.days?a.days--:a.weeks?a.weeks--:a.months?a.months--:a.years&&a.years--;let o=Po(e,t,n).subtract(a);return xc(e,o,t,n,r,i)}function xc(e,t,n,r,i,a){if(i&&e.compare(i)>=0){let o=I1(t,Po(kn(i),n,r));o&&(t=o)}if(a&&e.compare(a)<=0){let o=k1(t,p0(kn(a),n,r));o&&(t=o)}return t}function Pa(e,t,n){if(t){let r=I1(e,kn(t));r&&(e=r)}if(n){let r=k1(e,kn(n));r&&(e=r)}return e}function JR(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:null}function XR(e){let t=C.useMemo(()=>new Er(e.locale),[e.locale]),n=C.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:a={months:1},minValue:o,maxValue:u,selectionAlignment:l,isDateUnavailable:f,pageBehavior:d="visible",firstDayOfWeek:h}=e,p=C.useMemo(()=>i(n.calendar),[i,n.calendar]);var g;let[y,b]=ar(e.value,(g=e.defaultValue)!==null&&g!==void 0?g:null,e.onChange),D=C.useMemo(()=>y?Lt(kn(y),p):null,[y,p]),$=C.useMemo(()=>y&&"timeZone"in y?y.timeZone:n.timeZone,[y,n.timeZone]),v=C.useMemo(()=>e.focusedValue?Pa(Lt(kn(e.focusedValue),p),o,u):void 0,[e.focusedValue,p,o,u]),w=C.useMemo(()=>Pa(e.defaultFocusedValue?Lt(kn(e.defaultFocusedValue),p):D||Lt(sp($),p),o,u),[e.defaultFocusedValue,D,$,p,o,u]),[T,E]=ar(v,w,e.onFocusChange),[A,M]=C.useState(()=>{switch(l){case"start":return Po(T,a,r,o,u);case"end":return p0(T,a,r,o,u);case"center":default:return h0(T,a,r,o,u)}}),[S,z]=C.useState(e.autoFocus||!1),j=C.useMemo(()=>{let N={...a};return N.days?N.days--:N.days=-1,A.add(N)},[A,a]),[O,Z]=C.useState(p.identifier);if(p.identifier!==O){let N=Lt(T,p);M(h0(N,a,r,o,u)),E(N),Z(p.identifier)}Qs(T,o,u)?E(Pa(T,o,u)):T.compare(A)<0?M(p0(T,a,r,o,u)):T.compare(j)>0&&M(Po(T,a,r,o,u));function R(N){N=Pa(N,o,u),E(N)}function V(N){if(!e.isDisabled&&!e.isReadOnly){let ne=N;if(ne===null){b(null);return}if(ne=Pa(ne,o,u),ne=JR(ne,A,f),!ne)return;ne=Lt(ne,(y==null?void 0:y.calendar)||new In),y&&"hour"in y?b(y.set(ne)):b(ne)}}let W=C.useMemo(()=>D?f&&f(D)?!0:Qs(D,o,u):!1,[D,f,o,u]),L=e.isInvalid||e.validationState==="invalid"||W,k=L?"invalid":null,_=C.useMemo(()=>d==="visible"?a:Rg(a),[d,a]);var H,U;return{isDisabled:(H=e.isDisabled)!==null&&H!==void 0?H:!1,isReadOnly:(U=e.isReadOnly)!==null&&U!==void 0?U:!1,value:D,setValue:V,visibleRange:{start:A,end:j},minValue:o,maxValue:u,focusedDate:T,timeZone:$,validationState:k,isValueInvalid:L,setFocusedDate(N){R(N),z(!0)},focusNextDay(){R(T.add({days:1}))},focusPreviousDay(){R(T.subtract({days:1}))},focusNextRow(){a.days?this.focusNextPage():(a.weeks||a.months||a.years)&&R(T.add({weeks:1}))},focusPreviousRow(){a.days?this.focusPreviousPage():(a.weeks||a.months||a.years)&&R(T.subtract({weeks:1}))},focusNextPage(){let N=A.add(_);E(Pa(T.add(_),o,u)),M(Po(xc(T,N,_,r,o,u),_,r))},focusPreviousPage(){let N=A.subtract(_);E(Pa(T.subtract(_),o,u)),M(Po(xc(T,N,_,r,o,u),_,r))},focusSectionStart(){a.days?R(A):a.weeks?R(gc(T,r)):(a.months||a.years)&&R(qc(T))},focusSectionEnd(){a.days?R(j):a.weeks?R(hq(T,r)):(a.months||a.years)&&R(Qb(T))},focusNextSection(N){if(!N&&!a.days){R(T.add(Rg(a)));return}a.days?this.focusNextPage():a.weeks?R(T.add({months:1})):(a.months||a.years)&&R(T.add({years:1}))},focusPreviousSection(N){if(!N&&!a.days){R(T.subtract(Rg(a)));return}a.days?this.focusPreviousPage():a.weeks?R(T.subtract({months:1})):(a.months||a.years)&&R(T.subtract({years:1}))},selectFocusedDate(){f&&f(T)||V(T)},selectDate(N){V(N)},isFocused:S,setFocused:z,isInvalid(N){return Qs(N,o,u)},isSelected(N){return D!=null&&on(N,D)&&!this.isCellDisabled(N)&&!this.isCellUnavailable(N)},isCellFocused(N){return S&&T&&on(N,T)},isCellDisabled(N){return e.isDisabled||N.compare(A)<0||N.compare(j)>0||this.isInvalid(N)},isCellUnavailable(N){return e.isDateUnavailable?e.isDateUnavailable(N):!1},isPreviousVisibleRangeInvalid(){let N=A.subtract({days:1});return on(N,A)||this.isInvalid(N)},isNextVisibleRangeInvalid(){let N=j.add({days:1});return on(N,j)||this.isInvalid(N)},getDatesInWeek(N,ne=A){let ie=ne.add({weeks:N}),ce=[];ie=gc(ie,r,h);let xe=F1(ie,r,h);for(let De=0;De<xe;De++)ce.push(null);for(;ce.length<7;){ce.push(ie);let De=ie.add({days:1});if(on(ie,De))break;ie=De}for(;ce.length<7;)ce.push(null);return ce}}}function Rg(e){let t={...e};for(let n in e)t[n]=1;return t}function KH(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:a,visibleDuration:o={months:1},minValue:u,maxValue:l,...f}=e,[d,h]=ar(t,n||null,r),[p,g]=C.useState(null),y="center";if(d&&d.start&&d.end){let _=h0(kn(d.start),o,a,u,l).add(o).subtract({days:1});d.end.compare(_)>0&&(y="start")}let b=C.useRef(null),[D,$]=C.useState(null),v=C.useMemo(()=>I1(u,D==null?void 0:D.start),[u,D]),w=C.useMemo(()=>k1(l,D==null?void 0:D.end),[l,D]),T=XR({...f,value:d&&d.start,createCalendar:i,locale:a,visibleDuration:o,minValue:v,maxValue:w,selectionAlignment:y}),E=k=>{if(k&&e.isDateUnavailable&&!e.allowsNonContiguousRanges){const _=BD(k,T,-1),H=BD(k,T,1);b.current={start:_,end:H},$(b.current)}else b.current=null,$(null)},[A,M]=C.useState(T.visibleRange);(!Xb(T.visibleRange.start,A.start)||!Xb(T.visibleRange.end,A.end))&&(E(p),M(T.visibleRange));let S=k=>{k?(g(k),E(k)):(g(null),E(null))},z=p?Og(p,T.focusedDate):d&&Og(d.start,d.end),j=k=>{if(e.isReadOnly)return;const _=Pa(k,v,w),H=JR(_,T.visibleRange.start,e.isDateUnavailable);if(H)if(!p)S(H);else{let U=Og(p,H);U&&h({start:ID(U.start,d==null?void 0:d.start),end:ID(U.end,d==null?void 0:d.end)}),S(null)}},[O,Z]=C.useState(!1),{isDateUnavailable:R}=e,V=C.useMemo(()=>!d||p?!1:R&&(R(d.start)||R(d.end))?!0:Qs(d.start,u,l)||Qs(d.end,u,l),[R,d,p,u,l]),W=e.isInvalid||e.validationState==="invalid"||V;return{...T,value:d,setValue:h,anchorDate:p,setAnchorDate:S,highlightedRange:z,validationState:W?"invalid":null,isValueInvalid:W,selectFocusedDate(){j(T.focusedDate)},selectDate:j,highlightDate(k){p&&T.setFocusedDate(k)},isSelected(k){return!!(z&&k.compare(z.start)>=0&&k.compare(z.end)<=0&&!T.isCellDisabled(k)&&!T.isCellUnavailable(k))},isInvalid(k){var _,H;return T.isInvalid(k)||Qs(k,(_=b.current)===null||_===void 0?void 0:_.start,(H=b.current)===null||H===void 0?void 0:H.end)},isDragging:O,setDragging:Z}}function Og(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:kn(e),end:kn(t)})}function ID(e,t){return e=Lt(e,(t==null?void 0:t.calendar)||new In),t&&"hour"in t?t.set(e):e}function BD(e,t,n){let r=e.add({days:n});for(;(n<0?r.compare(t.visibleRange.start)>=0:r.compare(t.visibleRange.end)<=0)&&!t.isCellUnavailable(r);)r=r.add({days:n});if(t.isCellUnavailable(r))return r.add({days:-n})}class m0{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(t){let n=this.keyMap.get(t);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return(n==null?void 0:n.childNodes)||[]}constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let n=o=>{if(this.keyMap.set(o.key,o),o.childNodes&&o.type==="section")for(let u of o.childNodes)n(u)};for(let o of t)n(o);let r=null,i=0;for(let[o,u]of this.keyMap)r?(r.nextKey=o,u.prevKey=r.key):(this.firstKey=o,u.prevKey=void 0),u.type==="item"&&(u.index=i++),r=u,r.nextKey=void 0;var a;this.lastKey=(a=r==null?void 0:r.key)!==null&&a!==void 0?a:null}}class Nr extends Set{constructor(t,n,r){super(t),t instanceof Nr?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function UH(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function zH(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:a="all"}=e,o=C.useRef(!1),[,u]=C.useState(!1),l=C.useRef(null),f=C.useRef(null),[,d]=C.useState(null),h=C.useMemo(()=>LD(e.selectedKeys),[e.selectedKeys]),p=C.useMemo(()=>LD(e.defaultSelectedKeys,new Nr),[e.defaultSelectedKeys]),[g,y]=ar(h,p,e.onSelectionChange),b=C.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[D,$]=C.useState(i);i==="replace"&&D==="toggle"&&typeof g=="object"&&g.size===0&&$("replace");let v=C.useRef(i);return C.useEffect(()=>{i!==v.current&&($(i),v.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:D,setSelectionBehavior:$,get isFocused(){return o.current},setFocused(w){o.current=w,u(w)},get focusedKey(){return l.current},get childFocusStrategy(){return f.current},setFocusedKey(w,T="first"){l.current=w,f.current=T,d(w)},selectedKeys:g,setSelectedKeys(w){(r||!UH(w,g))&&y(w)},disabledKeys:b,disabledBehavior:a}}function LD(e,t){return e?e==="all"?"all":new Nr(e):t}class qH{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,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}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 n=this.getKey(t);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!t||i&&_g(this.collection,i,t)<0)&&(t=i)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!t||i&&_g(this.collection,i,t)>0)&&(t=i)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n: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 n=this.getKey(t);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new Nr([n],n,n);else{let o=this.state.selectedKeys;var i;let u=(i=o.anchorKey)!==null&&i!==void 0?i:n;r=new Nr(o,u,n);var a;for(let l of this.getKeyRange(u,(a=o.currentKey)!==null&&a!==void 0?a:n))r.delete(l);for(let l of this.getKeyRange(n,u))this.canSelectItem(l)&&r.add(l)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),i=this.collection.getItem(n);return r&&i?_g(this.collection,r,i)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let i=[],a=t;for(;a!=null;){let o=this.collection.getItem(a);if(o&&(o.type==="item"||o.type==="cell"&&this.allowsCellSelection)&&i.push(a),a===n)return i;a=this.collection.getKeyAfter(a)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r=new Nr(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none")return;let n=this.getKey(t);if(n==null)return;let r=this.canSelectItem(n)?new Nr([n],n,n):new Nr;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new Nr;for(let r of t){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let o=this.collection.getItem(r);(o==null?void 0:o.type)==="item"&&t.push(r);var a;o!=null&&o.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&n((a=(i=DH(hp(o,this.collection)))===null||i===void 0?void 0:i.key)!==null&&a!==void 0?a:null)}r=this.collection.getKeyAfter(r)}};return n(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 Nr)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(t){var n;return(n=this.collection.getItem(t))===null||n===void 0?void 0:n.props}constructor(t,n,r){this.collection=t,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function WH(e){let{filter:t,layoutDelegate:n}=e,r=zH(e),i=C.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=C.useCallback(d=>t?new m0(t(d)):new m0(d),[t]),o=C.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),u=wH(e,a,o),l=C.useMemo(()=>new qH(u,r,{layoutDelegate:n}),[u,r,n]);const f=C.useRef(null);return C.useEffect(()=>{if(r.focusedKey!=null&&!u.getItem(r.focusedKey)&&f.current){const $=f.current.getItem(r.focusedKey),v=[...f.current.getKeys()].map(S=>{const z=f.current.getItem(S);return(z==null?void 0:z.type)==="item"?z:null}).filter(S=>S!==null),w=[...u.getKeys()].map(S=>{const z=u.getItem(S);return(z==null?void 0:z.type)==="item"?z:null}).filter(S=>S!==null);var d,h;const T=((d=v==null?void 0:v.length)!==null&&d!==void 0?d:0)-((h=w==null?void 0:w.length)!==null&&h!==void 0?h:0);var p,g,y;let E=Math.min(T>1?Math.max(((p=$==null?void 0:$.index)!==null&&p!==void 0?p:0)-T+1,0):(g=$==null?void 0:$.index)!==null&&g!==void 0?g:0,((y=w==null?void 0:w.length)!==null&&y!==void 0?y:0)-1),A=null,M=!1;for(;E>=0;){if(!l.isDisabled(w[E].key)){A=w[E];break}if(E<w.length-1&&!M)E++;else{M=!0;var b,D;E>((b=$==null?void 0:$.index)!==null&&b!==void 0?b:0)&&(E=(D=$==null?void 0:$.index)!==null&&D!==void 0?D:0),E--}}r.setFocusedKey(A?A.key:null)}f.current=u},[u,l,r,r.focusedKey]),{collection:u,disabledKeys:i,selectionManager:l}}function HH(e){var t;let[n,r]=ar(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),i=C.useMemo(()=>n!=null?[n]:[],[n]),{collection:a,disabledKeys:o,selectionManager:u}=WH({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:f=>{if(f==="all")return;var d;let h=(d=f.values().next().value)!==null&&d!==void 0?d:null;h===n&&e.onSelectionChange&&e.onSelectionChange(h),r(h)}}),l=n!=null?a.getItem(n):null;return{collection:a,disabledKeys:o,selectionManager:u,selectedKey:n,setSelectedKey:r,selectedItem:l}}function G1(e){let[t,n]=ar(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=C.useCallback(()=>{n(!0)},[n]),i=C.useCallback(()=>{n(!1)},[n]),a=C.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:a}}function GH(e){var t;let{defaultFilter:n,menuTrigger:r="input",allowsEmptyCollection:i=!1,allowsCustomValue:a,shouldCloseOnBlur:o=!0}=e,[u,l]=C.useState(!1),[f,d]=C.useState(!1),[h,p]=C.useState(null),g=Q=>{e.onSelectionChange&&e.onSelectionChange(Q),Q===$&&(ce(),N())};var y;let{collection:b,selectionManager:D,selectedKey:$,setSelectedKey:v,selectedItem:w,disabledKeys:T}=HH({...e,onSelectionChange:g,items:(y=e.items)!==null&&y!==void 0?y:e.defaultItems}),E=e.defaultInputValue;if(E==null){var A,M;$==null?E="":E=(M=(A=b.getItem($))===null||A===void 0?void 0:A.textValue)!==null&&M!==void 0?M:""}let[S,z]=ar(e.inputValue,E,e.onInputChange),j=b,O=C.useMemo(()=>e.items!=null||!n?b:YH(b,S,n),[b,S,n,e.items]),[Z,R]=C.useState(O),V=C.useRef("focus"),L=G1({...e,onOpenChange:Q=>{e.onOpenChange&&e.onOpenChange(Q,Q?V.current:void 0),D.setFocused(Q),Q||D.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),k=(Q=null,re)=>{let ve=re==="manual"||re==="focus"&&r==="focus";(i||O.size>0||ve&&j.size>0||e.items)&&(ve&&!L.isOpen&&e.items===void 0&&l(!0),V.current=re,p(Q),L.open())},_=(Q=null,re)=>{let ve=re==="manual"||re==="focus"&&r==="focus";!(i||O.size>0||ve&&j.size>0||e.items)&&!L.isOpen||(ve&&!L.isOpen&&e.items===void 0&&l(!0),L.isOpen||(V.current=re),U(Q))},H=C.useCallback(()=>{R(u?j:O)},[u,j,O]),U=C.useCallback((Q=null)=>{L.isOpen&&H(),p(Q),L.toggle()},[L,H]),N=C.useCallback(()=>{L.isOpen&&(H(),L.close())},[L,H]),[ne,ie]=C.useState(S),ce=()=>{var Q,re;let ve=$!=null&&(re=(Q=b.getItem($))===null||Q===void 0?void 0:Q.textValue)!==null&&re!==void 0?re:"";ie(ve),z(ve)};var xe,De;let Ee=C.useRef((De=(xe=e.selectedKey)!==null&&xe!==void 0?xe:e.defaultSelectedKey)!==null&&De!==void 0?De:null);var J;let ye=C.useRef($!=null&&(J=(t=b.getItem($))===null||t===void 0?void 0:t.textValue)!==null&&J!==void 0?J:"");C.useEffect(()=>{var Q;f&&(O.size>0||i)&&!L.isOpen&&S!==ne&&r!=="manual"&&k(null,"input"),!u&&!i&&L.isOpen&&O.size===0&&N(),$!=null&&$!==Ee.current&&N(),S!==ne&&(D.setFocusedKey(null),l(!1),S===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&v(null)),$!==Ee.current&&(e.inputValue===void 0||e.selectedKey===void 0)?ce():ne!==S&&ie(S);var re;let ve=$!=null&&(re=(Q=b.getItem($))===null||Q===void 0?void 0:Q.textValue)!==null&&re!==void 0?re:"";!f&&$!=null&&e.inputValue===void 0&&$===Ee.current&&ye.current!==ve&&(ie(ve),z(ve)),Ee.current=$,ye.current=ve});let we=Gc({...e,value:C.useMemo(()=>({inputValue:S,selectedKey:$}),[S,$])}),me=()=>{a&&$==null?ue():Le()},ue=()=>{Ee.current=null,v(null),N()},Le=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var Q,re;(Q=e.onSelectionChange)===null||Q===void 0||Q.call(e,$);var ve;let Se=$!=null&&(ve=(re=b.getItem($))===null||re===void 0?void 0:re.textValue)!==null&&ve!==void 0?ve:"";ie(Se),N()}else ce(),N()};const nt=()=>{if(a){var Q,re;const ve=$!=null&&(re=(Q=b.getItem($))===null||Q===void 0?void 0:Q.textValue)!==null&&re!==void 0?re:"";S===ve?Le():ue()}else Le()};let Nt=()=>{L.isOpen&&D.focusedKey!=null?$===D.focusedKey?Le():v(D.focusedKey):nt()},Xn=C.useRef(S),Pt=Q=>{Q?(Xn.current=S,r==="focus"&&!e.isReadOnly&&k(null,"focus")):(o&&nt(),S!==Xn.current&&we.commitValidation()),d(Q)},G=C.useMemo(()=>L.isOpen?u?j:O:Z,[L.isOpen,j,O,u,Z]);return{...we,...L,focusStrategy:h,toggle:_,open:k,close:nt,selectionManager:D,selectedKey:$,setSelectedKey:v,disabledKeys:T,isFocused:f,setFocused:Pt,selectedItem:w,collection:G,inputValue:S,setInputValue:z,commit:Nt,revert:me}}function YH(e,t,n){return new m0(QR(e,e,t,n))}function QR(e,t,n,r){let i=[];for(let a of t)if(a.type==="section"&&a.hasChildNodes){let o=QR(e,hp(a,e),n,r);[...o].some(u=>u.type==="item")&&i.push({...a,childNodes:o})}else a.type==="item"&&r(a.textValue,n)?i.push({...a}):a.type!=="item"&&i.push({...a});return i}var e7={};e7={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var t7={};t7={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var n7={};n7={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var r7={};r7={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var i7={};i7={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Anfangsdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var a7={};a7={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var o7={};o7={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var s7={};s7={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var u7={};u7={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var l7={};l7={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var c7={};c7={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var f7={};f7={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var d7={};d7={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var h7={};h7={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var p7={};p7={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var m7={};m7={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var g7={};g7={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var y7={};y7={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var v7={};v7={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var b7={};b7={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var $7={};$7={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var x7={};x7={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var w7={};w7={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var D7={};D7={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var C7={};C7={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var E7={};E7={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var S7={};S7={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var T7={};T7={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var A7={};A7={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var P7={};P7={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var _7={};_7={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var R7={};R7={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var O7={};O7={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var M7={};M7={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var F7={};F7={"ar-AE":e7,"bg-BG":t7,"cs-CZ":n7,"da-DK":r7,"de-DE":i7,"el-GR":a7,"en-US":o7,"es-ES":s7,"et-EE":u7,"fi-FI":l7,"fr-FR":c7,"he-IL":f7,"hr-HR":d7,"hu-HU":h7,"it-IT":p7,"ja-JP":m7,"ko-KR":g7,"lt-LT":y7,"lv-LV":v7,"nb-NO":b7,"nl-NL":$7,"pl-PL":x7,"pt-BR":w7,"pt-PT":D7,"ro-RO":C7,"ru-RU":E7,"sk-SK":S7,"sl-SI":T7,"sr-SP":A7,"sv-SE":P7,"tr-TR":_7,"uk-UA":R7,"zh-CN":O7,"zh-TW":M7};function ZH(e){return e&&e.__esModule?e.default:e}const k7=new Za(ZH(F7));function I7(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function bh(e,t,n,r,i){let a=e!=null&&n!=null&&e.compare(n)>0,o=e!=null&&t!=null&&e.compare(t)<0,u=e!=null&&(r==null?void 0:r(e))||!1,l=a||o||u,f=[];if(l){let d=I7(),h=Za.getGlobalDictionaryForPackage("@react-stately/datepicker")||k7,p=new UA(d,h),g=new Er(d,ea({},i)),y=g.resolvedOptions().timeZone;o&&t!=null&&f.push(p.format("rangeUnderflow",{minValue:g.format(t.toDate(y))})),a&&n!=null&&f.push(p.format("rangeOverflow",{maxValue:g.format(n.toDate(y))})),u&&f.push(p.format("unavailableDate"))}return{isInvalid:l,validationErrors:f,validationDetails:{badInput:u,customError:!1,patternMismatch:!1,rangeOverflow:a,rangeUnderflow:o,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}function JH(e,t,n,r,i){var a;let o=bh((a=e==null?void 0:e.start)!==null&&a!==void 0?a:null,t,n,r,i);var u;let l=bh((u=e==null?void 0:e.end)!==null&&u!==void 0?u:null,t,n,r,i),f=yh(o,l);if((e==null?void 0:e.end)!=null&&e.start!=null&&e.end.compare(e.start)<0){let d=Za.getGlobalDictionaryForPackage("@react-stately/datepicker")||k7;f=yh(f,{isInvalid:!0,validationErrors:[d.getStringForLocale("rangeReversed",I7())],validationDetails:{...lp,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return f}const XH={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},QH={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function ea(e,t){e={...t.shouldForceLeadingZeros?QH:XH,...e};let r=t.granularity||"minute",i=Object.keys(e);var a;let o=i.indexOf((a=t.maxGranularity)!==null&&a!==void 0?a:"year");o<0&&(o=0);let u=i.indexOf(r);if(u<0&&(u=2),o>u)throw new Error("maxGranularity must be greater than granularity");let l=i.slice(o,u+1).reduce((d,h)=>(d[h]=e[h],d),{});return t.hourCycle!=null&&(l.hour12=t.hourCycle===12),l.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(l.timeZoneName="short"),t.showEra&&o===0&&(l.era="short"),l}function Ls(e){return e&&"hour"in e?e:new Wc}function B7(e,t){if(e===null)return null;if(e)return Lt(e,t)}function Ml(e,t,n,r){if(e)return B7(e,n);let i=Lt(HA(r??zc()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?kn(i):r?i:Hr(i)}function Y1(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[i,a]=C.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&a([r,n]),t||(t=e?r:i[0]);let o=e?n:i[1];return[t,o]}function eG(e){let t=G1(e),[n,r]=ar(e.value,e.defaultValue||null,e.onChange),i=n||e.placeholderValue||null,[a,o]=Y1(i,e.granularity),u=n!=null?n.toDate(o??"UTC"):null,l=a==="hour"||a==="minute"||a==="second";var f;let d=(f=e.shouldCloseOnSelect)!==null&&f!==void 0?f:!0,[h,p]=C.useState(null),[g,y]=C.useState(null);if(n&&(h=n,"hour"in n&&(g=n)),i&&!(a in i))throw new Error("Invalid granularity "+a+" for value "+i.toString());let b=(n==null?void 0:n.calendar.identifier)==="gregory"&&n.era==="BC",D=C.useMemo(()=>({granularity:a,timeZone:o,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:b}),[a,e.hourCycle,e.shouldForceLeadingZeros,o,e.hideTimeZone,b]),{minValue:$,maxValue:v,isDateUnavailable:w}=e,T=C.useMemo(()=>bh(n,$,v,w,D),[n,$,v,w,D]),E=Gc({...e,value:n,builtinValidation:T}),A=E.displayValidation.isInvalid,M=e.validationState||(A?"invalid":null),S=(O,Z)=>{r("timeZone"in Z?Z.set(kn(O)):Hr(O,Z)),p(null),y(null),E.commitValidation()};return{...E,value:n,setValue:r,dateValue:h,timeValue:g,setDateValue:O=>{let Z=typeof d=="function"?d():d;l?g||Z?S(O,g||Ls(e.defaultValue||e.placeholderValue)):p(O):(r(O),E.commitValidation()),Z&&t.setOpen(!1)},setTimeValue:O=>{h&&O?S(h,O):y(O)},granularity:a,hasTime:l,...t,setOpen(O){!O&&!n&&h&&l&&S(h,g||Ls(e.defaultValue||e.placeholderValue)),t.setOpen(O)},validationState:M,isInvalid:A,formatValue(O,Z){if(!u)return"";let R=ea(Z,D);return new Er(O,R).format(u)},getDateFormatter(O,Z){let R={...D,...Z},V=ea({},R);return new Er(O,V)}}}const tG=new Za({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:" 年 ",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");function nG(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?tG.getStringForLocale(e,n):"––"}const vd={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},VD={year:5,month:2,day:7,hour:2,minute:15,second:15},rG={dayperiod:"dayPeriod"};function L7(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:i=!1,isReadOnly:a=!1,isRequired:o=!1,minValue:u,maxValue:l,isDateUnavailable:f}=e,d=e.value||e.defaultValue||e.placeholderValue||null,[h,p]=Y1(d,e.granularity),g=p||"UTC";if(d&&!(h in d))throw new Error("Invalid granularity "+h+" for value "+d.toString());let y=C.useMemo(()=>new Er(t),[t]),b=C.useMemo(()=>n(y.resolvedOptions().calendar),[n,y]);var D;let[$,v]=ar(e.value,(D=e.defaultValue)!==null&&D!==void 0?D:null,e.onChange),w=C.useMemo(()=>{var J;return(J=B7($,b))!==null&&J!==void 0?J:null},[$,b]),[T,E]=C.useState(()=>Ml(e.placeholderValue,h,b,p)),A=w||T,M=b.identifier==="gregory"&&A.era==="BC",S=C.useMemo(()=>{var J;return{granularity:h,maxGranularity:(J=e.maxGranularity)!==null&&J!==void 0?J:"year",timeZone:p,hideTimeZone:r,hourCycle:e.hourCycle,showEra:M,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,h,e.hourCycle,e.shouldForceLeadingZeros,p,r,M]),z=C.useMemo(()=>ea({},S),[S]),j=C.useMemo(()=>new Er(t,z),[t,z]),O=C.useMemo(()=>j.resolvedOptions(),[j]),Z=C.useMemo(()=>j.formatToParts(new Date).filter(J=>vd[J.type]).reduce((J,ye)=>(J[ye.type]=!0,J),{}),[j]),[R,V]=C.useState(()=>e.value||e.defaultValue?{...Z}:{}),W=C.useRef(null),L=C.useRef(b.identifier);C.useEffect(()=>{b.identifier!==L.current&&(L.current=b.identifier,E(J=>Object.keys(R).length>0?Lt(J,b):Ml(e.placeholderValue,h,b,p)))},[b,h,R,p,e.placeholderValue]),$&&Object.keys(R).length<Object.keys(Z).length&&(R={...Z},V(R)),$==null&&Object.keys(R).length===Object.keys(Z).length&&(R={},V(R),E(Ml(e.placeholderValue,h,b,p)));let k=w&&Object.keys(R).length>=Object.keys(Z).length?w:T,_=J=>{if(e.isDisabled||e.isReadOnly)return;let ye=Object.keys(R),we=Object.keys(Z);J==null?(v(null),E(Ml(e.placeholderValue,h,b,p)),V({})):ye.length>=we.length||ye.length===we.length-1&&Z.dayPeriod&&!R.dayPeriod&&W.current!=="dayPeriod"?(J=Lt(J,(d==null?void 0:d.calendar)||new In),v(J)):E(J),W.current=null},H=C.useMemo(()=>k.toDate(g),[k,g]),U=C.useMemo(()=>j.formatToParts(H).map(J=>{let ye=vd[J.type];J.type==="era"&&b.getEras().length===1&&(ye=!1);let we=vd[J.type]&&!R[J.type],me=vd[J.type]?nG(J.type,J.value,t):null;return{type:rG[J.type]||J.type,text:we?me:J.value,...iG(k,J.type,O),isPlaceholder:we,placeholder:me,isEditable:ye}}),[H,R,j,O,k,b,t]);Z.era&&R.year&&!R.era?(R.era=!0,V({...R})):!Z.era&&R.era&&(delete R.era,V({...R}));let N=J=>{R[J]=!0,J==="year"&&Z.era&&(R.era=!0),V({...R})},ne=(J,ye)=>{if(R[J])_(aG(k,J,ye,O));else{N(J);let we=Object.keys(R),me=Object.keys(Z);(we.length>=me.length||we.length===me.length-1&&Z.dayPeriod&&!R.dayPeriod)&&_(k)}},ie=C.useMemo(()=>bh($,u,l,f,S),[$,u,l,f,S]),ce=Gc({...e,value:$,builtinValidation:ie}),xe=ce.displayValidation.isInvalid,De=e.validationState||(xe?"invalid":null);var Ee;return{...ce,value:w,dateValue:H,calendar:b,setValue:_,segments:U,dateFormatter:j,validationState:De,isInvalid:xe,granularity:h,maxGranularity:(Ee=e.maxGranularity)!==null&&Ee!==void 0?Ee:"year",isDisabled:i,isReadOnly:a,isRequired:o,increment(J){ne(J,1)},decrement(J){ne(J,-1)},incrementPage(J){ne(J,VD[J]||1)},decrementPage(J){ne(J,-(VD[J]||1))},setSegment(J,ye){N(J),_(oG(k,J,ye,O))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let J=Object.keys(R),ye=Object.keys(Z);J.length===ye.length-1&&Z.dayPeriod&&!R.dayPeriod&&(R={...Z},V(R),_(k.copy()))},clearSegment(J){delete R[J],W.current=J,V({...R});let ye=Ml(e.placeholderValue,h,b,p),we=k;if(J==="dayPeriod"&&"hour"in k&&"hour"in ye){let me=k.hour>=12,ue=ye.hour>=12;me&&!ue?we=k.set({hour:k.hour-12}):!me&&ue&&(we=k.set({hour:k.hour+12}))}else J in k&&(we=k.set({[J]:ye[J]}));v(null),_(we)},formatValue(J){if(!w)return"";let ye=ea(J,S);return new Er(t,ye).format(H)},getDateFormatter(J,ye){let we={...S,...ye},me=ea({},we);return new Er(J,me)}}}function iG(e,t,n){switch(t){case"era":{let r=e.calendar.getEras();return{value:r.indexOf(e.era),minValue:0,maxValue:r.length-1}}case"year":return{value:e.year,minValue:1,maxValue:e.calendar.getYearsInEra(e)};case"month":return{value:e.month,minValue:fq(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:dq(e),maxValue:e.calendar.getDaysInMonth(e)}}if("hour"in e)switch(t){case"dayPeriod":return{value:e.hour>=12?12:0,minValue:0,maxValue:12};case"hour":if(n.hour12){let r=e.hour>=12;return{value:e.hour,minValue:r?12:0,maxValue:r?23:11}}return{value:e.hour,minValue:0,maxValue:23};case"minute":return{value:e.minute,minValue:0,maxValue:59};case"second":return{value:e.second,minValue:0,maxValue:59}}return{}}function aG(e,t,n,r){switch(t){case"era":case"year":case"month":case"day":return e.cycle(t,n,{round:t==="year"})}if("hour"in e)switch(t){case"dayPeriod":{let i=e.hour,a=i>=12;return e.set({hour:a?i-12:i+12})}case"hour":case"minute":case"second":return e.cycle(t,n,{round:t!=="hour",hourCycle:r.hour12?12:24})}throw new Error("Unknown segment: "+t)}function oG(e,t,n,r){switch(t){case"day":case"month":case"year":case"era":return e.set({[t]:n})}if("hour"in e&&typeof n=="number")switch(t){case"dayPeriod":{let i=e.hour,a=i>=12;return n>=12===a?e:e.set({hour:a?i-12:i+12})}case"hour":if(r.hour12){let a=e.hour>=12;!a&&n===12&&(n=0),a&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}throw new Error("Unknown segment: "+t)}function sG(e){var t,n;let r=G1(e),[i,a]=ar(e.value,e.defaultValue||null,e.onChange),[o,u]=C.useState(()=>i||{start:null,end:null});i==null&&o.start&&o.end&&(o={start:null,end:null},u(o));let l=i||o,f=L=>{u(L||{start:null,end:null}),vo(L)?a(L):a(null)},d=(l==null?void 0:l.start)||(l==null?void 0:l.end)||e.placeholderValue||null,[h,p]=Y1(d,e.granularity),g=h==="hour"||h==="minute"||h==="second";var y;let b=(y=e.shouldCloseOnSelect)!==null&&y!==void 0?y:!0,[D,$]=C.useState(null),[v,w]=C.useState(null);l&&vo(l)&&(D=l,"hour"in l.start&&(v=l));let T=(L,k)=>{f({start:"timeZone"in k.start?k.start.set(kn(L.start)):Hr(L.start,k.start),end:"timeZone"in k.end?k.end.set(kn(L.end)):Hr(L.end,k.end)}),$(null),w(null),R.commitValidation()},E=L=>{let k=typeof b=="function"?b():b;g?vo(L)&&(v!=null&&v.start)&&(v!=null&&v.end)?T(L,{start:(v==null?void 0:v.start)||Ls(e.placeholderValue),end:(v==null?void 0:v.end)||Ls(e.placeholderValue)}):$(L):vo(L)?(f(L),R.commitValidation()):$(L),k&&r.setOpen(!1)},A=L=>{vo(D)&&vo(L)?T(D,L):w(L)},M=(l==null||(t=l.start)===null||t===void 0?void 0:t.calendar.identifier)==="gregory"&&l.start.era==="BC"||(l==null||(n=l.end)===null||n===void 0?void 0:n.calendar.identifier)==="gregory"&&l.end.era==="BC",S=C.useMemo(()=>({granularity:h,timeZone:p,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:M}),[h,e.hourCycle,e.shouldForceLeadingZeros,p,e.hideTimeZone,M]),{minValue:z,maxValue:j,isDateUnavailable:O}=e,Z=C.useMemo(()=>JH(l,z,j,O,S),[l,z,j,O,S]),R=Gc({...e,value:i,name:C.useMemo(()=>[e.startName,e.endName].filter(L=>L!=null),[e.startName,e.endName]),builtinValidation:Z}),V=R.displayValidation.isInvalid,W=e.validationState||(V?"invalid":null);return{...R,value:l,setValue:f,dateRange:D,timeRange:v,granularity:h,hasTime:g,setDate(L,k){var _,H;E(L==="start"?{start:k,end:(_=D==null?void 0:D.end)!==null&&_!==void 0?_:null}:{start:(H=D==null?void 0:D.start)!==null&&H!==void 0?H:null,end:k})},setTime(L,k){var _,H;A(L==="start"?{start:k,end:(_=v==null?void 0:v.end)!==null&&_!==void 0?_:null}:{start:(H=v==null?void 0:v.start)!==null&&H!==void 0?H:null,end:k})},setDateTime(L,k){var _,H;f(L==="start"?{start:k,end:(_=l==null?void 0:l.end)!==null&&_!==void 0?_:null}:{start:(H=l==null?void 0:l.start)!==null&&H!==void 0?H:null,end:k})},setDateRange:E,setTimeRange:A,...r,setOpen(L){!L&&!(l!=null&&l.start&&(l!=null&&l.end))&&vo(D)&&g&&T(D,{start:(v==null?void 0:v.start)||Ls(e.placeholderValue),end:(v==null?void 0:v.end)||Ls(e.placeholderValue)}),r.setOpen(L)},validationState:W,isInvalid:V,formatValue(L,k){if(!l||!l.start||!l.end)return null;let _="timeZone"in l.start?l.start.timeZone:void 0,H=e.granularity||(l.start&&"minute"in l.start?"minute":"day"),U="timeZone"in l.end?l.end.timeZone:void 0,N=e.granularity||(l.end&&"minute"in l.end?"minute":"day"),ne=ea(k,{granularity:H,timeZone:_,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:l.start.calendar.identifier==="gregory"&&l.start.era==="BC"||l.end.calendar.identifier==="gregory"&&l.end.era==="BC"}),ie=l.start.toDate(_||"UTC"),ce=l.end.toDate(U||"UTC"),xe=new Er(L,ne),De;if(_===U&&H===N&&l.start.compare(l.end)!==0){try{let Ee=xe.formatRangeToParts(ie,ce),J=-1;for(let me=0;me<Ee.length;me++){let ue=Ee[me];if(ue.source==="shared"&&ue.type==="literal")J=me;else if(ue.source==="endRange")break}let ye="",we="";for(let me=0;me<Ee.length;me++)me<J?ye+=Ee[me].value:me>J&&(we+=Ee[me].value);return{start:ye,end:we}}catch{}De=xe}else{let Ee=ea(k,{granularity:N,timeZone:U,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});De=new Er(L,Ee)}return{start:xe.format(ie),end:De.format(ce)}},getDateFormatter(L,k){let _={...S,...k},H=ea({},_);return new Er(L,H)}}}function vo(e){return(e==null?void 0:e.start)!=null&&e.end!=null}function uG(e){let{placeholderValue:t=new Wc,minValue:n,maxValue:r,granularity:i,validate:a}=e;var o;let[u,l]=ar(e.value,(o=e.defaultValue)!==null&&o!==void 0?o:null,e.onChange),f=u||t,d=f&&"day"in f?f:void 0,h=e.defaultValue&&"timeZone"in e.defaultValue?e.defaultValue.timeZone:void 0,p=C.useMemo(()=>{let w=f&&"timeZone"in f?f.timeZone:void 0;return(w||h)&&t?QA(Fl(t),w||h):Fl(t)},[t,f,h]),g=C.useMemo(()=>Fl(n,d),[n,d]),y=C.useMemo(()=>Fl(r,d),[r,d]),b=C.useMemo(()=>u&&"day"in u?Qw(u):u,[u]),D=C.useMemo(()=>u==null?null:Fl(u),[u]);return{...L7({...e,value:D,defaultValue:void 0,minValue:g,maxValue:y,onChange:w=>{l(d||h?w:w&&Qw(w))},granularity:i||"minute",maxGranularity:"hour",placeholderValue:p??void 0,createCalendar:()=>new In,validate:C.useCallback(()=>a==null?void 0:a(u),[a,u])}),timeValue:b}}function Fl(e,t=sp(zc())){return e?"day"in e?e:Hr(t,e):null}var jd={exports:{}},lG=jd.exports,ND;function cG(){return ND||(ND=1,function(e,t){(function(n,r){e.exports=r()})(lG,function(){var n=1e3,r=6e4,i=36e5,a="millisecond",o="second",u="minute",l="hour",f="day",d="week",h="month",p="quarter",g="year",y="date",b="Invalid Date",D=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,$=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(V){var W=["th","st","nd","rd"],L=V%100;return"["+V+(W[(L-20)%10]||W[L]||W[0])+"]"}},w=function(V,W,L){var k=String(V);return!k||k.length>=W?V:""+Array(W+1-k.length).join(L)+V},T={s:w,z:function(V){var W=-V.utcOffset(),L=Math.abs(W),k=Math.floor(L/60),_=L%60;return(W<=0?"+":"-")+w(k,2,"0")+":"+w(_,2,"0")},m:function V(W,L){if(W.date()<L.date())return-V(L,W);var k=12*(L.year()-W.year())+(L.month()-W.month()),_=W.clone().add(k,h),H=L-_<0,U=W.clone().add(k+(H?-1:1),h);return+(-(k+(L-_)/(H?_-U:U-_))||0)},a:function(V){return V<0?Math.ceil(V)||0:Math.floor(V)},p:function(V){return{M:h,y:g,w:d,d:f,D:y,h:l,m:u,s:o,ms:a,Q:p}[V]||String(V||"").toLowerCase().replace(/s$/,"")},u:function(V){return V===void 0}},E="en",A={};A[E]=v;var M="$isDayjsObject",S=function(V){return V instanceof Z||!(!V||!V[M])},z=function V(W,L,k){var _;if(!W)return E;if(typeof W=="string"){var H=W.toLowerCase();A[H]&&(_=H),L&&(A[H]=L,_=H);var U=W.split("-");if(!_&&U.length>1)return V(U[0])}else{var N=W.name;A[N]=W,_=N}return!k&&_&&(E=_),_||!k&&E},j=function(V,W){if(S(V))return V.clone();var L=typeof W=="object"?W:{};return L.date=V,L.args=arguments,new Z(L)},O=T;O.l=z,O.i=S,O.w=function(V,W){return j(V,{locale:W.$L,utc:W.$u,x:W.$x,$offset:W.$offset})};var Z=function(){function V(L){this.$L=z(L.locale,null,!0),this.parse(L),this.$x=this.$x||L.x||{},this[M]=!0}var W=V.prototype;return W.parse=function(L){this.$d=function(k){var _=k.date,H=k.utc;if(_===null)return new Date(NaN);if(O.u(_))return new Date;if(_ instanceof Date)return new Date(_);if(typeof _=="string"&&!/Z$/i.test(_)){var U=_.match(D);if(U){var N=U[2]-1||0,ne=(U[7]||"0").substring(0,3);return H?new Date(Date.UTC(U[1],N,U[3]||1,U[4]||0,U[5]||0,U[6]||0,ne)):new Date(U[1],N,U[3]||1,U[4]||0,U[5]||0,U[6]||0,ne)}}return new Date(_)}(L),this.init()},W.init=function(){var L=this.$d;this.$y=L.getFullYear(),this.$M=L.getMonth(),this.$D=L.getDate(),this.$W=L.getDay(),this.$H=L.getHours(),this.$m=L.getMinutes(),this.$s=L.getSeconds(),this.$ms=L.getMilliseconds()},W.$utils=function(){return O},W.isValid=function(){return this.$d.toString()!==b},W.isSame=function(L,k){var _=j(L);return this.startOf(k)<=_&&_<=this.endOf(k)},W.isAfter=function(L,k){return j(L)<this.startOf(k)},W.isBefore=function(L,k){return this.endOf(k)<j(L)},W.$g=function(L,k,_){return O.u(L)?this[k]:this.set(_,L)},W.unix=function(){return Math.floor(this.valueOf()/1e3)},W.valueOf=function(){return this.$d.getTime()},W.startOf=function(L,k){var _=this,H=!!O.u(k)||k,U=O.p(L),N=function(ye,we){var me=O.w(_.$u?Date.UTC(_.$y,we,ye):new Date(_.$y,we,ye),_);return H?me:me.endOf(f)},ne=function(ye,we){return O.w(_.toDate()[ye].apply(_.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(we)),_)},ie=this.$W,ce=this.$M,xe=this.$D,De="set"+(this.$u?"UTC":"");switch(U){case g:return H?N(1,0):N(31,11);case h:return H?N(1,ce):N(0,ce+1);case d:var Ee=this.$locale().weekStart||0,J=(ie<Ee?ie+7:ie)-Ee;return N(H?xe-J:xe+(6-J),ce);case f:case y:return ne(De+"Hours",0);case l:return ne(De+"Minutes",1);case u:return ne(De+"Seconds",2);case o:return ne(De+"Milliseconds",3);default:return this.clone()}},W.endOf=function(L){return this.startOf(L,!1)},W.$set=function(L,k){var _,H=O.p(L),U="set"+(this.$u?"UTC":""),N=(_={},_[f]=U+"Date",_[y]=U+"Date",_[h]=U+"Month",_[g]=U+"FullYear",_[l]=U+"Hours",_[u]=U+"Minutes",_[o]=U+"Seconds",_[a]=U+"Milliseconds",_)[H],ne=H===f?this.$D+(k-this.$W):k;if(H===h||H===g){var ie=this.clone().set(y,1);ie.$d[N](ne),ie.init(),this.$d=ie.set(y,Math.min(this.$D,ie.daysInMonth())).$d}else N&&this.$d[N](ne);return this.init(),this},W.set=function(L,k){return this.clone().$set(L,k)},W.get=function(L){return this[O.p(L)]()},W.add=function(L,k){var _,H=this;L=Number(L);var U=O.p(k),N=function(ce){var xe=j(H);return O.w(xe.date(xe.date()+Math.round(ce*L)),H)};if(U===h)return this.set(h,this.$M+L);if(U===g)return this.set(g,this.$y+L);if(U===f)return N(1);if(U===d)return N(7);var ne=(_={},_[u]=r,_[l]=i,_[o]=n,_)[U]||1,ie=this.$d.getTime()+L*ne;return O.w(ie,this)},W.subtract=function(L,k){return this.add(-1*L,k)},W.format=function(L){var k=this,_=this.$locale();if(!this.isValid())return _.invalidDate||b;var H=L||"YYYY-MM-DDTHH:mm:ssZ",U=O.z(this),N=this.$H,ne=this.$m,ie=this.$M,ce=_.weekdays,xe=_.months,De=_.meridiem,Ee=function(we,me,ue,Le){return we&&(we[me]||we(k,H))||ue[me].slice(0,Le)},J=function(we){return O.s(N%12||12,we,"0")},ye=De||function(we,me,ue){var Le=we<12?"AM":"PM";return ue?Le.toLowerCase():Le};return H.replace($,function(we,me){return me||function(ue){switch(ue){case"YY":return String(k.$y).slice(-2);case"YYYY":return O.s(k.$y,4,"0");case"M":return ie+1;case"MM":return O.s(ie+1,2,"0");case"MMM":return Ee(_.monthsShort,ie,xe,3);case"MMMM":return Ee(xe,ie);case"D":return k.$D;case"DD":return O.s(k.$D,2,"0");case"d":return String(k.$W);case"dd":return Ee(_.weekdaysMin,k.$W,ce,2);case"ddd":return Ee(_.weekdaysShort,k.$W,ce,3);case"dddd":return ce[k.$W];case"H":return String(N);case"HH":return O.s(N,2,"0");case"h":return J(1);case"hh":return J(2);case"a":return ye(N,ne,!0);case"A":return ye(N,ne,!1);case"m":return String(ne);case"mm":return O.s(ne,2,"0");case"s":return String(k.$s);case"ss":return O.s(k.$s,2,"0");case"SSS":return O.s(k.$ms,3,"0");case"Z":return U}return null}(we)||U.replace(":","")})},W.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},W.diff=function(L,k,_){var H,U=this,N=O.p(k),ne=j(L),ie=(ne.utcOffset()-this.utcOffset())*r,ce=this-ne,xe=function(){return O.m(U,ne)};switch(N){case g:H=xe()/12;break;case h:H=xe();break;case p:H=xe()/3;break;case d:H=(ce-ie)/6048e5;break;case f:H=(ce-ie)/864e5;break;case l:H=ce/i;break;case u:H=ce/r;break;case o:H=ce/n;break;default:H=ce}return _?H:O.a(H)},W.daysInMonth=function(){return this.endOf(h).$D},W.$locale=function(){return A[this.$L]},W.locale=function(L,k){if(!L)return this.$L;var _=this.clone(),H=z(L,k,!0);return H&&(_.$L=H),_},W.clone=function(){return O.w(this.$d,this)},W.toDate=function(){return new Date(this.valueOf())},W.toJSON=function(){return this.isValid()?this.toISOString():null},W.toISOString=function(){return this.$d.toISOString()},W.toString=function(){return this.$d.toUTCString()},V}(),R=Z.prototype;return j.prototype=R,[["$ms",a],["$s",o],["$m",u],["$H",l],["$W",f],["$M",h],["$y",g],["$D",y]].forEach(function(V){R[V[1]]=function(W){return this.$g(W,V[0],V[1])}}),j.extend=function(V,W){return V.$i||(V(W,Z,j),V.$i=!0),j},j.locale=z,j.isDayjs=S,j.unix=function(V){return j(1e3*V)},j.en=A[E],j.Ls=A,j.p={},j})}(jd)),jd.exports}var fG=cG();const dG=sa(fG);var Zo=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["Andorra","ad","376"],["Angola","ao","244"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54","(..) ........",0],["Armenia","am","374",".. ......"],["Aruba","aw","297"],["Australia","au","61",{default:". .... ....","/^4/":"... ... ...","/^5(?!50)/":"... ... ...","/^1(3|8)00/":".... ... ...","/^13/":".. .. ..","/^180/":"... ...."},0,[]],["Austria","at","43"],["Azerbaijan","az","994","(..) ... .. .."],["Bahamas","bs","1242"],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375","(..) ... .. .."],["Belgium","be","32","... .. .. .."],["Belize","bz","501"],["Benin","bj","229"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55","(..) .....-...."],["British Indian Ocean Territory","io","246"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599","",1],["Cayman Islands","ky","1","... ... ....",4,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86","... .... ...."],["Colombia","co","57","... ... ...."],["Comoros","km","269"],["Congo","cd","243"],["Congo","cg","242"],["Costa Rica","cr","506","....-...."],["Côte d'Ivoire","ci","225",".. .. .. .. .."],["Croatia","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599","",0],["Cyprus","cy","357",".. ......"],["Czech Republic","cz","420","... ... ..."],["Denmark","dk","45",".. .. .. .."],["Djibouti","dj","253",".. .. ...."],["Dominica","dm","1767"],["Dominican Republic","do","1","(...) ...-....",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503","....-...."],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372",".... ......"],["Ethiopia","et","251",".. ... ...."],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["France","fr","33",". .. .. .. .."],["French Guiana","gf","594"],["French Polynesia","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49","... ........."],["Ghana","gh","233"],["Greece","gr","30"],["Greenland","gl","299",".. .. .."],["Grenada","gd","1473"],["Guadeloupe","gp","590","",0],["Guam","gu","1671"],["Guatemala","gt","502","....-...."],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","....-...."],["Honduras","hn","504"],["Hong Kong","hk","852",".... ...."],["Hungary","hu","36"],["Iceland","is","354","... ...."],["India","in","91",".....-....."],["Indonesia","id","62"],["Iran","ir","98","... ... ...."],["Iraq","iq","964"],["Ireland","ie","353",".. ......."],["Israel","il","972","... ... ...."],["Italy","it","39","... .......",0],["Jamaica","jm","1876"],["Japan","jp","81",".. .... ...."],["Jordan","jo","962"],["Kazakhstan","kz","7","... ...-..-..",0],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996","... ... ..."],["Laos","la","856"],["Latvia","lv","371",".. ... ..."],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Macedonia","mk","389"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mayotte","yt","262","",1,["269","639"]],["Mexico","mx","52","... ... ....",0],["Micronesia","fm","691"],["Moldova","md","373","(..) ..-..-.."],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",{"/^06/":"(.). .........","/^6/":". .........","/^0(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":"(.).. ........","/^(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":".. ........","/^0/":"(.)... .......",default:"... ......."}],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["North Korea","kp","850"],["Norway","no","47","... .. ..."],["Oman","om","968"],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63","... ... ...."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1","(...) ...-....",3,["787","939"]],["Qatar","qa","974"],["Réunion","re","262","",0],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-..",1],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","....-...."],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82","... .... ...."],["South Sudan","ss","211"],["Spain","es","34","... ... ..."],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Swaziland","sz","268"],["Sweden","se","46","... ... ..."],["Switzerland","ch","41",".. ... .. .."],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90","... ... .. .."],["Turkmenistan","tm","993"],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380","(..) ... .. .."],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",".... ......"],["United States","us","1","(...) ...-....",0],["Uruguay","uy","598"],["Uzbekistan","uz","998",".. ... .. .."],["Vanuatu","vu","678"],["Vatican City","va","39",".. .... ....",1],["Venezuela","ve","58"],["Vietnam","vn","84"],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],hG="react-international-phone-",V7=(...e)=>e.filter(t=>!!t).join(" ").trim(),pG=(...e)=>V7(...e).split(" ").map(t=>`${hG}${t}`).join(" "),Cn=({addPrefix:e,rawClassNames:t})=>V7(pG(...e),...t),mG=({value:e,mask:t,maskSymbol:n,offset:r=0,trimNonMaskCharsLeftover:i=!1})=>{if(e.length<r)return e;let a=e.slice(0,r),o=e.slice(r),u=a,l=0;for(let f of t.split("")){if(l>=o.length){if(!i&&f!==n){u+=f;continue}break}f===n?(u+=o[l],l+=1):u+=f}return u},ks=e=>e?/^\d+$/.test(e):!1,pp=e=>e.replace(/\D/g,""),gG=(e,t)=>{let n=e.style.display;n!=="block"&&(e.style.display="block");let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),a=i.top-r.top,o=r.bottom-i.bottom;a>=0&&o>=0||(Math.abs(a)<Math.abs(o)?e.scrollTop+=a:e.scrollTop-=o),e.style.display=n},yG=()=>typeof window>"u"?!1:window.navigator.userAgent.toLowerCase().includes("macintosh"),vG=(e,t)=>{let n=t.disableDialCodeAndPrefix?!1:t.forceDialCode,r=t.disableDialCodeAndPrefix?!1:t.insertDialCodeOnEmpty,i=e,a=f=>t.trimNonDigitsEnd?f.trim():f;if(!i)return r&&!i.length||n?a(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`):a(i);if(i=pp(i),i===t.dialCode&&!t.disableDialCodeAndPrefix)return a(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(t.dialCode.startsWith(i)&&!t.disableDialCodeAndPrefix)return a(n?`${t.prefix}${t.dialCode}${t.charAfterDialCode}`:`${t.prefix}${i}`);if(!i.startsWith(t.dialCode)&&!t.disableDialCodeAndPrefix){if(n)return a(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(i.length<t.dialCode.length)return a(`${t.prefix}${i}`)}let o=()=>{let f=t.dialCode.length,d=i.slice(0,f),h=i.slice(f);return{phoneLeftSide:d,phoneRightSide:h}},{phoneLeftSide:u,phoneRightSide:l}=o();return u=`${t.prefix}${u}${t.charAfterDialCode}`,l=mG({value:l,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&l.length===0}),t.disableDialCodeAndPrefix&&(u=""),a(`${u}${l}`)},bG=({phoneBeforeInput:e,phoneAfterInput:t,phoneAfterFormatted:n,cursorPositionAfterInput:r,leftOffset:i=0,deletion:a})=>{if(r<i)return i;if(!e)return n.length;let o=null;for(let d=r-1;d>=0;d-=1)if(ks(t[d])){o=d;break}if(o===null){for(let d=0;d<t.length;d+=1)if(ks(n[d]))return d;return t.length}let u=0;for(let d=0;d<o;d+=1)ks(t[d])&&(u+=1);let l=0,f=0;for(let d=0;d<n.length&&(l+=1,ks(n[d])&&(f+=1),!(f>=u+1));d+=1);if(a!=="backward")for(;!ks(n[l])&&l<n.length;)l+=1;return l},Kd=({phone:e,prefix:t})=>e?`${t}${pp(e)}`:"";function g0({value:e,country:t,insertDialCodeOnEmpty:n,trimNonDigitsEnd:r,countries:i,prefix:a,charAfterDialCode:o,forceDialCode:u,disableDialCodeAndPrefix:l,defaultMask:f,countryGuessingEnabled:d,disableFormatting:h}){let p=e;l&&(p=p.startsWith(`${a}`)?p:`${a}${t.dialCode}${p}`);let g=d?AG({phone:p,countries:i,currentCountryIso2:t==null?void 0:t.iso2}):void 0,y=(g==null?void 0:g.country)??t,b=vG(p,{prefix:a,mask:SG({phone:p,country:y,defaultMask:f,disableFormatting:h}),maskChar:N7,dialCode:y.dialCode,trimNonDigitsEnd:r,charAfterDialCode:o,forceDialCode:u,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:l}),D=d&&!(g!=null&&g.fullDialCodeMatch)?t:y;return{phone:Kd({phone:l?`${D.dialCode}${b}`:b,prefix:a}),inputValue:b,country:D}}var $G=e=>{if((e==null?void 0:e.toLocaleLowerCase().includes("delete"))??!1)return e!=null&&e.toLocaleLowerCase().includes("forward")?"forward":"backward"},xG=(e,{country:t,insertDialCodeOnEmpty:n,phoneBeforeInput:r,prefix:i,charAfterDialCode:a,forceDialCode:o,disableDialCodeAndPrefix:u,countryGuessingEnabled:l,defaultMask:f,disableFormatting:d,countries:h})=>{let p=e.nativeEvent,g=p.inputType,y=$G(g),b=!!(g!=null&&g.startsWith("insertFrom")),D=g==="insertText",$=(p==null?void 0:p.data)||void 0,v=e.target.value,w=e.target.selectionStart??0;if(g!=null&&g.includes("history"))return{inputValue:r,phone:Kd({phone:r,prefix:i}),cursorPosition:r.length,country:t};if(D&&!ks($)&&v!==i)return{inputValue:r,phone:Kd({phone:u?`${t.dialCode}${r}`:r,prefix:i}),cursorPosition:w-(($==null?void 0:$.length)??0),country:t};if(o&&!v.startsWith(`${i}${t.dialCode}`)&&!b){let S=v?r:`${i}${t.dialCode}${a}`;return{inputValue:S,phone:Kd({phone:S,prefix:i}),cursorPosition:i.length+t.dialCode.length+a.length,country:t}}let{phone:T,inputValue:E,country:A}=g0({value:v,country:t,trimNonDigitsEnd:y==="backward",insertDialCodeOnEmpty:n,countryGuessingEnabled:l,countries:h,prefix:i,charAfterDialCode:a,forceDialCode:o,disableDialCodeAndPrefix:u,disableFormatting:d,defaultMask:f}),M=bG({cursorPositionAfterInput:w,phoneBeforeInput:r,phoneAfterInput:v,phoneAfterFormatted:E,leftOffset:o?i.length+t.dialCode.length+a.length:0,deletion:y});return{phone:T,inputValue:E,cursorPosition:M,country:A}},wG=(e,t)=>{let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(e[i]!==t[i])return!1;return!0},DG=()=>{let e=C.useRef(),t=C.useRef(Date.now());return{check:()=>{let n=Date.now(),r=e.current?n-t.current:void 0;return e.current=t.current,t.current=n,r}}},CG={size:20,overrideLastItemDebounceMS:-1};function EG(e,t){let{size:n,overrideLastItemDebounceMS:r,onChange:i}={...CG,...t},[a,o]=C.useState(e),[u,l]=C.useState([a]),[f,d]=C.useState(0),h=DG();return[a,(p,g)=>{if(typeof p=="object"&&typeof a=="object"&&wG(p,a)||p===a)return;let y=r>0,b=h.check(),D=y&&b!==void 0?b>r:!0;if((g==null?void 0:g.overrideLastItem)!==void 0?g.overrideLastItem:!D)l($=>[...$.slice(0,f),p]);else{let $=u.length>=n;l(v=>[...v.slice($?1:0,f+1),p]),$||d(v=>v+1)}o(p),i==null||i(p)},()=>{if(f<=0)return{success:!1};let p=u[f-1];return o(p),d(g=>g-1),i==null||i(p),{success:!0,value:p}},()=>{if(f+1>=u.length)return{success:!1};let p=u[f+1];return o(p),d(g=>g+1),i==null||i(p),{success:!0,value:p}}]}var N7=".",yr={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,disableFormatting:!1,countries:Zo},j7=({defaultCountry:e=yr.defaultCountry,value:t=yr.value,countries:n=yr.countries,prefix:r=yr.prefix,defaultMask:i=yr.defaultMask,charAfterDialCode:a=yr.charAfterDialCode,historySaveDebounceMS:o=yr.historySaveDebounceMS,disableCountryGuess:u=yr.disableCountryGuess,disableDialCodePrefill:l=yr.disableDialCodePrefill,forceDialCode:f=yr.forceDialCode,disableDialCodeAndPrefix:d=yr.disableDialCodeAndPrefix,disableFormatting:h=yr.disableFormatting,onChange:p,inputRef:g})=>{let y={countries:n,prefix:r,charAfterDialCode:a,forceDialCode:d?!1:f,disableDialCodeAndPrefix:d,defaultMask:i,countryGuessingEnabled:!u,disableFormatting:h},b=C.useRef(null),D=g||b,$=V=>{Promise.resolve().then(()=>{var W;typeof window>"u"||D.current!==(document==null?void 0:document.activeElement)||((W=D.current)==null||W.setSelectionRange(V,V))})},[{phone:v,inputValue:w,country:T},E,A,M]=EG(()=>{let V=Vs({value:e,field:"iso2",countries:n});V||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let W=V||Vs({value:"us",field:"iso2",countries:n}),{phone:L,inputValue:k,country:_}=g0({value:t,country:W,insertDialCodeOnEmpty:!l,...y});return $(k.length),{phone:L,inputValue:k,country:_.iso2}},{overrideLastItemDebounceMS:o,onChange:({inputValue:V,phone:W,country:L})=>{if(!p)return;let k=S(L);p({phone:W,inputValue:V,country:k})}}),S=C.useCallback(V=>Vs({value:V,field:"iso2",countries:n}),[n]),z=C.useMemo(()=>S(T),[T,S]);C.useEffect(()=>{let V=D.current;if(!V)return;let W=L=>{if(!L.key)return;let k=L.ctrlKey,_=L.metaKey,H=L.shiftKey;if(L.key.toLowerCase()==="z"){if(yG()){if(!_)return}else if(!k)return;H?M():A()}};return V.addEventListener("keydown",W),()=>{V.removeEventListener("keydown",W)}},[D,A,M]);let j=V=>{V.preventDefault();let{phone:W,inputValue:L,country:k,cursorPosition:_}=xG(V,{country:z,phoneBeforeInput:w,insertDialCodeOnEmpty:!1,...y});return E({inputValue:L,phone:W,country:k.iso2}),$(_),t},O=(V,W={focusOnInput:!1})=>{let L=Vs({value:V,field:"iso2",countries:n});if(!L){console.error(`[react-international-phone]: can not find a country with "${V}" iso2 code`);return}let k=d?"":`${r}${L.dialCode}${a}`;E({inputValue:k,phone:`${r}${L.dialCode}`,country:L.iso2}),W.focusOnInput&&Promise.resolve().then(()=>{var _;(_=D.current)==null||_.focus()})},[Z,R]=C.useState(!1);return C.useEffect(()=>{if(!Z){R(!0),t!==v&&(p==null||p({inputValue:w,phone:v,country:z}));return}if(t===v)return;let{phone:V,inputValue:W,country:L}=g0({value:t,country:z,insertDialCodeOnEmpty:!l,...y});E({phone:V,inputValue:W,country:L.iso2})},[t]),{phone:v,inputValue:w,country:z,setCountry:O,handlePhoneValueChange:j,inputRef:D}},SG=({phone:e,country:t,defaultMask:n="............",disableFormatting:r=!1})=>{let i=t.format,a=u=>r?u.replace(new RegExp(`[^${N7}]`,"g"),""):u;if(!i)return a(n);if(typeof i=="string")return a(i);if(!i.default)return console.error(`[react-international-phone]: default mask for ${t.iso2} is not provided`),a(n);let o=Object.keys(i).find(u=>{if(u==="default")return!1;if(!(u.charAt(0)==="/"&&u.charAt(u.length-1)==="/"))return console.error(`[react-international-phone]: format regex "${u}" for ${t.iso2} is not valid`),!1;let l=new RegExp(u.substring(1,u.length-1)),f=e.replace(t.dialCode,"");return l.test(pp(f))});return a(o?i[o]:i.default)},jr=e=>{let[t,n,r,i,a,o]=e;return{name:t,iso2:n,dialCode:r,format:i,priority:a,areaCodes:o}},TG=e=>`Field "${e}" is not supported`,Vs=({field:e,value:t,countries:n=Zo})=>{if(["priority"].includes(e))throw new Error(TG(e));let r=n.find(i=>{let a=jr(i);return t===a[e]});if(r)return jr(r)},AG=({phone:e,countries:t=Zo,currentCountryIso2:n})=>{var u;let r={country:void 0,fullDialCodeMatch:!1};if(!e)return r;let i=pp(e);if(!i)return r;let a=r,o=({country:l,fullDialCodeMatch:f})=>{var p,g;let d=l.dialCode===((p=a.country)==null?void 0:p.dialCode),h=(l.priority??0)<(((g=a.country)==null?void 0:g.priority)??0);(!d||h)&&(a={country:l,fullDialCodeMatch:f})};for(let l of t){let f=jr(l),{dialCode:d,areaCodes:h}=f;if(i.startsWith(d)){let p=a.country?Number(d)>=Number(a.country.dialCode):!0;if(h){let g=i.substring(d.length);for(let y of h)if(g.startsWith(y))return{country:f,fullDialCodeMatch:!0}}(p||d===i||!a.fullDialCodeMatch)&&o({country:f,fullDialCodeMatch:!0})}a.fullDialCodeMatch||i.length<d.length&&d.startsWith(i)&&(!a.country||Number(d)<=Number(a.country.dialCode))&&o({country:f,fullDialCodeMatch:!1})}if(n){let l=Vs({value:n,field:"iso2",countries:t});if(!l)return a;let f=l?(d=>{if(!(d!=null&&d.areaCodes))return!1;let h=i.substring(d.dialCode.length);return d.areaCodes.some(p=>p.startsWith(h))})(l):!1;a&&((u=a.country)==null?void 0:u.dialCode)===l.dialCode&&a.country!==l&&a.fullDialCodeMatch&&(!l.areaCodes||f)&&(a={country:l,fullDialCodeMatch:!0})}return a},PG=(e,t)=>{let n=parseInt(e,16);return Number(n+t).toString(16)},_G="abcdefghijklmnopqrstuvwxyz",RG="1f1e6",jD=_G.split("").reduce((e,t,n)=>({...e,[t]:PG(RG,n)}),{}),OG=e=>[jD[e[0]],jD[e[1]]].join("-"),Z1=({iso2:e,size:t,src:n,protocol:r="https",disableLazyLoading:i,className:a,style:o,...u})=>{if(!e)return C.createElement("img",{className:Cn({addPrefix:["flag-emoji"],rawClassNames:[a]}),width:t,height:t,...u});let l=()=>{if(n)return n;let f=OG(e);return`${r}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${f}.svg`};return C.createElement("img",{className:Cn({addPrefix:["flag-emoji"],rawClassNames:[a]}),src:l(),width:t,height:t,draggable:!1,"data-country":e,loading:i?void 0:"lazy",style:{width:t,height:t,...o},alt:"",...u})},MG=1e3,FG=({show:e,dialCodePrefix:t="+",selectedCountry:n,countries:r=Zo,preferredCountries:i=[],flags:a,onSelect:o,onClose:u,...l})=>{let f=C.useRef(null),d=C.useRef(),h=C.useMemo(()=>{if(!i||!i.length)return r;let A=[],M=[...r];for(let S of i){let z=M.findIndex(j=>jr(j).iso2===S);if(z!==-1){let j=M.splice(z,1)[0];A.push(j)}}return A.concat(M)},[r,i]),p=C.useRef({updatedAt:void 0,value:""}),g=A=>{let M=p.current.updatedAt&&new Date().getTime()-p.current.updatedAt.getTime()>MG;p.current={value:M?A:`${p.current.value}${A}`,updatedAt:new Date};let S=h.findIndex(z=>jr(z).name.toLowerCase().startsWith(p.current.value));S!==-1&&D(S)},y=C.useCallback(A=>h.findIndex(M=>jr(M).iso2===A),[h]),[b,D]=C.useState(y(n)),$=()=>{d.current!==n&&D(y(n))},v=C.useCallback(A=>{D(y(A.iso2)),o==null||o(A)},[o,y]),w=A=>{let M=h.length-1,S=z=>A==="prev"?z-1:A==="next"?z+1:A==="last"?M:0;D(z=>{let j=S(z);return j<0?0:j>M?M:j})},T=A=>{if(A.stopPropagation(),A.key==="Enter"){A.preventDefault();let M=jr(h[b]);v(M);return}if(A.key==="Escape"){u==null||u();return}if(A.key==="ArrowUp"){A.preventDefault(),w("prev");return}if(A.key==="ArrowDown"){A.preventDefault(),w("next");return}if(A.key==="PageUp"){A.preventDefault(),w("first");return}if(A.key==="PageDown"){A.preventDefault(),w("last");return}A.key===" "&&A.preventDefault(),A.key.length===1&&!A.altKey&&!A.ctrlKey&&!A.metaKey&&g(A.key.toLocaleLowerCase())},E=C.useCallback(()=>{if(!f.current||b===void 0)return;let A=jr(h[b]).iso2;if(A===d.current)return;let M=f.current.querySelector(`[data-country="${A}"]`);M&&(gG(f.current,M),d.current=A)},[b,h]);return C.useEffect(()=>{E()},[b,E]),C.useEffect(()=>{f.current&&(e?f.current.focus():$())},[e]),C.useEffect(()=>{$()},[n]),C.createElement("ul",{ref:f,role:"listbox",className:Cn({addPrefix:["country-selector-dropdown"],rawClassNames:[l.className]}),style:{display:e?"block":"none",...l.style},onKeyDown:T,onBlur:u,tabIndex:-1,"aria-activedescendant":`react-international-phone__${jr(h[b]).iso2}-option`},h.map((A,M)=>{let S=jr(A),z=S.iso2===n,j=M===b,O=i.includes(S.iso2),Z=M===i.length-1,R=a==null?void 0:a.find(V=>V.iso2===S.iso2);return C.createElement(C.Fragment,{key:S.iso2},C.createElement("li",{"data-country":S.iso2,role:"option","aria-selected":z,"aria-label":`${S.name} ${t}${S.dialCode}`,id:`react-international-phone__${S.iso2}-option`,className:Cn({addPrefix:["country-selector-dropdown__list-item",O&&"country-selector-dropdown__list-item--preferred",z&&"country-selector-dropdown__list-item--selected",j&&"country-selector-dropdown__list-item--focused"],rawClassNames:[l.listItemClassName]}),onClick:()=>v(S),style:l.listItemStyle,title:S.name},C.createElement(Z1,{iso2:S.iso2,src:R==null?void 0:R.src,className:Cn({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[l.listItemFlagClassName]}),style:l.listItemFlagStyle}),C.createElement("span",{className:Cn({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[l.listItemCountryNameClassName]}),style:l.listItemCountryNameStyle},S.name),C.createElement("span",{className:Cn({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[l.listItemDialCodeClassName]}),style:l.listItemDialCodeStyle},t,S.dialCode)),Z?C.createElement("hr",{className:Cn({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[l.preferredListDividerClassName]}),style:l.preferredListDividerStyle}):null)}))},kG=({selectedCountry:e,onSelect:t,disabled:n,hideDropdown:r,countries:i=Zo,preferredCountries:a=[],flags:o,renderButtonWrapper:u,...l})=>{let[f,d]=C.useState(!1),h=C.useMemo(()=>{if(e)return Vs({value:e,field:"iso2",countries:i})},[i,e]),p=C.useRef(null),g=b=>{b.key&&["ArrowUp","ArrowDown"].includes(b.key)&&(b.preventDefault(),d(!0))},y=()=>{var $;let b={title:h==null?void 0:h.name,onClick:()=>d(v=>!v),onMouseDown:v=>v.preventDefault(),onKeyDown:g,disabled:r||n,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":f},D=C.createElement("div",{className:Cn({addPrefix:["country-selector-button__button-content"],rawClassNames:[l.buttonContentWrapperClassName]}),style:l.buttonContentWrapperStyle},C.createElement(Z1,{iso2:e,src:($=o==null?void 0:o.find(v=>v.iso2===e))==null?void 0:$.src,className:Cn({addPrefix:["country-selector-button__flag-emoji",n&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[l.flagClassName]}),style:{visibility:e?"visible":"hidden",...l.flagStyle}}),!r&&C.createElement("div",{className:Cn({addPrefix:["country-selector-button__dropdown-arrow",n&&"country-selector-button__dropdown-arrow--disabled",f&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[l.dropdownArrowClassName]}),style:l.dropdownArrowStyle}));return u?u({children:D,rootProps:b}):C.createElement("button",{...b,type:"button",className:Cn({addPrefix:["country-selector-button",f&&"country-selector-button--active",n&&"country-selector-button--disabled",r&&"country-selector-button--hide-dropdown"],rawClassNames:[l.buttonClassName]}),"data-country":e,style:l.buttonStyle},D)};return C.createElement("div",{className:Cn({addPrefix:["country-selector"],rawClassNames:[l.className]}),style:l.style,ref:p},y(),C.createElement(FG,{show:f,countries:i,preferredCountries:a,flags:o,onSelect:b=>{d(!1),t==null||t(b)},selectedCountry:e,onClose:()=>{d(!1)},...l.dropdownStyleProps}))},IG=({dialCode:e,prefix:t,disabled:n,style:r,className:i})=>C.createElement("div",{className:Cn({addPrefix:["dial-code-preview",n&&"dial-code-preview--disabled"],rawClassNames:[i]}),style:r},`${t}${e}`);C.forwardRef(({value:e,onChange:t,countries:n=Zo,preferredCountries:r=[],hideDropdown:i,showDisabledDialCodeAndPrefix:a,disableFocusAfterCountrySelect:o,flags:u,style:l,className:f,inputStyle:d,inputClassName:h,countrySelectorStyleProps:p,dialCodePreviewStyleProps:g,inputProps:y,placeholder:b,disabled:D,name:$,onFocus:v,onBlur:w,required:T,autoFocus:E,...A},M)=>{let{phone:S,inputValue:z,inputRef:j,country:O,setCountry:Z,handlePhoneValueChange:R}=j7({value:e,countries:n,...A,onChange:W=>{t==null||t(W.phone,{country:W.country,inputValue:W.inputValue})}}),V=A.disableDialCodeAndPrefix&&a&&(O==null?void 0:O.dialCode);return C.useImperativeHandle(M,()=>j.current?Object.assign(j.current,{setCountry:Z,state:{phone:S,inputValue:z,country:O}}):null,[j,Z,S,z,O]),C.createElement("div",{ref:M,className:Cn({addPrefix:["input-container"],rawClassNames:[f]}),style:l},C.createElement(kG,{onSelect:W=>Z(W.iso2,{focusOnInput:!o}),flags:u,selectedCountry:O.iso2,countries:n,preferredCountries:r,disabled:D,hideDropdown:i,...p}),V&&C.createElement(IG,{dialCode:O.dialCode,prefix:A.prefix??"+",disabled:D,...g}),C.createElement("input",{onChange:R,value:z,type:"tel",ref:j,className:Cn({addPrefix:["input",D&&"input--disabled"],rawClassNames:[h]}),placeholder:b,disabled:D,style:d,name:$,onFocus:v,onBlur:w,autoFocus:E,required:T,...y}))});var La=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},y0={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,a="[object Arguments]",o="[object Array]",u="[object Boolean]",l="[object Date]",f="[object Error]",d="[object Function]",h="[object GeneratorFunction]",p="[object Map]",g="[object Number]",y="[object Object]",b="[object Promise]",D="[object RegExp]",$="[object Set]",v="[object String]",w="[object Symbol]",T="[object WeakMap]",E="[object ArrayBuffer]",A="[object DataView]",M="[object Float32Array]",S="[object Float64Array]",z="[object Int8Array]",j="[object Int16Array]",O="[object Int32Array]",Z="[object Uint8Array]",R="[object Uint8ClampedArray]",V="[object Uint16Array]",W="[object Uint32Array]",L=/[\\^$.*+?()[\]{}|]/g,k=/\w*$/,_=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,U={};U[a]=U[o]=U[E]=U[A]=U[u]=U[l]=U[M]=U[S]=U[z]=U[j]=U[O]=U[p]=U[g]=U[y]=U[D]=U[$]=U[v]=U[w]=U[Z]=U[R]=U[V]=U[W]=!0,U[f]=U[d]=U[T]=!1;var N=typeof La=="object"&&La&&La.Object===Object&&La,ne=typeof self=="object"&&self&&self.Object===Object&&self,ie=N||ne||Function("return this")(),ce=t&&!t.nodeType&&t,xe=ce&&!0&&e&&!e.nodeType&&e,De=xe&&xe.exports===ce;function Ee(K,ae){return K.set(ae[0],ae[1]),K}function J(K,ae){return K.add(ae),K}function ye(K,ae){for(var pe=-1,Ie=K?K.length:0;++pe<Ie&&ae(K[pe],pe,K)!==!1;);return K}function we(K,ae){for(var pe=-1,Ie=ae.length,tn=K.length;++pe<Ie;)K[tn+pe]=ae[pe];return K}function me(K,ae,pe,Ie){for(var tn=-1,gn=K?K.length:0;++tn<gn;)pe=ae(pe,K[tn],tn,K);return pe}function ue(K,ae){for(var pe=-1,Ie=Array(K);++pe<K;)Ie[pe]=ae(pe);return Ie}function Le(K,ae){return K==null?void 0:K[ae]}function nt(K){var ae=!1;if(K!=null&&typeof K.toString!="function")try{ae=!!(K+"")}catch{}return ae}function Nt(K){var ae=-1,pe=Array(K.size);return K.forEach(function(Ie,tn){pe[++ae]=[tn,Ie]}),pe}function Xn(K,ae){return function(pe){return K(ae(pe))}}function Pt(K){var ae=-1,pe=Array(K.size);return K.forEach(function(Ie){pe[++ae]=Ie}),pe}var G=Array.prototype,Q=Function.prototype,re=Object.prototype,ve=ie["__core-js_shared__"],Se=function(){var K=/[^.]+$/.exec(ve&&ve.keys&&ve.keys.IE_PROTO||"");return K?"Symbol(src)_1."+K:""}(),Ce=Q.toString,Fe=re.hasOwnProperty,Ne=re.toString,_t=RegExp("^"+Ce.call(Fe).replace(L,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ut=De?ie.Buffer:void 0,Zt=ie.Symbol,Xr=ie.Uint8Array,Rr=Xn(Object.getPrototypeOf,Object),mn=Object.create,Qr=re.propertyIsEnumerable,ei=G.splice,ti=Object.getOwnPropertySymbols,Or=ut?ut.isBuffer:void 0,Xa=Xn(Object.keys,Object),ni=Ke(ie,"DataView"),Oi=Ke(ie,"Map"),ri=Ke(ie,"Promise"),ha=Ke(ie,"Set"),Mi=Ke(ie,"WeakMap"),or=Ke(Object,"create"),Qa=ki(ni),eo=ki(Oi),Uu=ki(ri),zu=ki(ha),ns=ki(Mi),pa=Zt?Zt.prototype:void 0,rs=pa?pa.valueOf:void 0;function Mr(K){var ae=-1,pe=K?K.length:0;for(this.clear();++ae<pe;){var Ie=K[ae];this.set(Ie[0],Ie[1])}}function to(){this.__data__=or?or(null):{}}function qu(K){return this.has(K)&&delete this.__data__[K]}function no(K){var ae=this.__data__;if(or){var pe=ae[K];return pe===r?void 0:pe}return Fe.call(ae,K)?ae[K]:void 0}function Wu(K){var ae=this.__data__;return or?ae[K]!==void 0:Fe.call(ae,K)}function Hu(K,ae){var pe=this.__data__;return pe[K]=or&&ae===void 0?r:ae,this}Mr.prototype.clear=to,Mr.prototype.delete=qu,Mr.prototype.get=no,Mr.prototype.has=Wu,Mr.prototype.set=Hu;function Bn(K){var ae=-1,pe=K?K.length:0;for(this.clear();++ae<pe;){var Ie=K[ae];this.set(Ie[0],Ie[1])}}function Gu(){this.__data__=[]}function Ln(K){var ae=this.__data__,pe=oi(ae,K);if(pe<0)return!1;var Ie=ae.length-1;return pe==Ie?ae.pop():ei.call(ae,pe,1),!0}function Yu(K){var ae=this.__data__,pe=oi(ae,K);return pe<0?void 0:ae[pe][1]}function Zu(K){return oi(this.__data__,K)>-1}function Ju(K,ae){var pe=this.__data__,Ie=oi(pe,K);return Ie<0?pe.push([K,ae]):pe[Ie][1]=ae,this}Bn.prototype.clear=Gu,Bn.prototype.delete=Ln,Bn.prototype.get=Yu,Bn.prototype.has=Zu,Bn.prototype.set=Ju;function Fr(K){var ae=-1,pe=K?K.length:0;for(this.clear();++ae<pe;){var Ie=K[ae];this.set(Ie[0],Ie[1])}}function Xu(){this.__data__={hash:new Mr,map:new(Oi||Bn),string:new Mr}}function Qu(K){return Ve(this,K).delete(K)}function el(K){return Ve(this,K).get(K)}function tl(K){return Ve(this,K).has(K)}function nl(K,ae){return Ve(this,K).set(K,ae),this}Fr.prototype.clear=Xu,Fr.prototype.delete=Qu,Fr.prototype.get=el,Fr.prototype.has=tl,Fr.prototype.set=nl;function ii(K){this.__data__=new Bn(K)}function ai(){this.__data__=new Bn}function is(K){return this.__data__.delete(K)}function ma(K){return this.__data__.get(K)}function rl(K){return this.__data__.has(K)}function as(K,ae){var pe=this.__data__;if(pe instanceof Bn){var Ie=pe.__data__;if(!Oi||Ie.length<n-1)return Ie.push([K,ae]),this;pe=this.__data__=new Fr(Ie)}return pe.set(K,ae),this}ii.prototype.clear=ai,ii.prototype.delete=is,ii.prototype.get=ma,ii.prototype.has=rl,ii.prototype.set=as;function il(K,ae){var pe=ul(K)||zp(K)?ue(K.length,String):[],Ie=pe.length,tn=!!Ie;for(var gn in K)Fe.call(K,gn)&&!(tn&&(gn=="length"||Tn(gn,Ie)))&&pe.push(gn);return pe}function ga(K,ae,pe){var Ie=K[ae];(!(Fe.call(K,ae)&&sl(Ie,pe))||pe===void 0&&!(ae in K))&&(K[ae]=pe)}function oi(K,ae){for(var pe=K.length;pe--;)if(sl(K[pe][0],ae))return pe;return-1}function ro(K,ae){return K&&ge(ae,cl(ae),K)}function io(K,ae,pe,Ie,tn,gn,ur){var yn;if(Ie&&(yn=gn?Ie(K,tn,gn,ur):Ie(K)),yn!==void 0)return yn;if(!hs(K))return K;var Jt=ul(K);if(Jt){if(yn=cn(K),!ae)return se(K,yn)}else{var si=Rt(K),ui=si==d||si==h;if(ll(K))return ls(K,ae);if(si==y||si==a||ui&&!gn){if(nt(K))return gn?K:{};if(yn=fn(ui?{}:K),!ae)return _e(K,ro(yn,K))}else{if(!U[si])return gn?K:{};yn=sr(K,si,io,ae)}}ur||(ur=new ii);var fl=ur.get(K);if(fl)return fl;if(ur.set(K,yn),!Jt)var ps=pe?Xe(K):cl(K);return ye(ps||K,function(vn,uo){ps&&(uo=vn,vn=K[uo]),ga(yn,uo,io(vn,ae,pe,Ie,uo,K,ur))}),yn}function os(K){return hs(K)?mn(K):{}}function ss(K,ae,pe){var Ie=ae(K);return ul(K)?Ie:we(Ie,pe(K))}function al(K){return Ne.call(K)}function us(K){if(!hs(K)||oo(K))return!1;var ae=yf(K)||nt(K)?_t:_;return ae.test(ki(K))}function ao(K){if(!so(K))return Xa(K);var ae=[];for(var pe in Object(K))Fe.call(K,pe)&&pe!="constructor"&&ae.push(pe);return ae}function ls(K,ae){if(ae)return K.slice();var pe=new K.constructor(K.length);return K.copy(pe),pe}function Fi(K){var ae=new K.constructor(K.byteLength);return new Xr(ae).set(new Xr(K)),ae}function ol(K,ae){var pe=ae?Fi(K.buffer):K.buffer;return new K.constructor(pe,K.byteOffset,K.byteLength)}function cs(K,ae,pe){var Ie=ae?pe(Nt(K),!0):Nt(K);return me(Ie,Ee,new K.constructor)}function ya(K){var ae=new K.constructor(K.source,k.exec(K));return ae.lastIndex=K.lastIndex,ae}function fs(K,ae,pe){var Ie=ae?pe(Pt(K),!0):Pt(K);return me(Ie,J,new K.constructor)}function I(K){return rs?Object(rs.call(K)):{}}function X(K,ae){var pe=ae?Fi(K.buffer):K.buffer;return new K.constructor(pe,K.byteOffset,K.length)}function se(K,ae){var pe=-1,Ie=K.length;for(ae||(ae=Array(Ie));++pe<Ie;)ae[pe]=K[pe];return ae}function ge(K,ae,pe,Ie){pe||(pe={});for(var tn=-1,gn=ae.length;++tn<gn;){var ur=ae[tn],yn=void 0;ga(pe,ur,yn===void 0?K[ur]:yn)}return pe}function _e(K,ae){return ge(K,$t(K),ae)}function Xe(K){return ss(K,cl,$t)}function Ve(K,ae){var pe=K.__data__;return ds(ae)?pe[typeof ae=="string"?"string":"hash"]:pe.map}function Ke(K,ae){var pe=Le(K,ae);return us(pe)?pe:void 0}var $t=ti?Xn(ti,Object):wt,Rt=al;(ni&&Rt(new ni(new ArrayBuffer(1)))!=A||Oi&&Rt(new Oi)!=p||ri&&Rt(ri.resolve())!=b||ha&&Rt(new ha)!=$||Mi&&Rt(new Mi)!=T)&&(Rt=function(K){var ae=Ne.call(K),pe=ae==y?K.constructor:void 0,Ie=pe?ki(pe):void 0;if(Ie)switch(Ie){case Qa:return A;case eo:return p;case Uu:return b;case zu:return $;case ns:return T}return ae});function cn(K){var ae=K.length,pe=K.constructor(ae);return ae&&typeof K[0]=="string"&&Fe.call(K,"index")&&(pe.index=K.index,pe.input=K.input),pe}function fn(K){return typeof K.constructor=="function"&&!so(K)?os(Rr(K)):{}}function sr(K,ae,pe,Ie){var tn=K.constructor;switch(ae){case E:return Fi(K);case u:case l:return new tn(+K);case A:return ol(K,Ie);case M:case S:case z:case j:case O:case Z:case R:case V:case W:return X(K,Ie);case p:return cs(K,Ie,pe);case g:case v:return new tn(K);case D:return ya(K);case $:return fs(K,Ie,pe);case w:return I(K)}}function Tn(K,ae){return ae=ae??i,!!ae&&(typeof K=="number"||H.test(K))&&K>-1&&K%1==0&&K<ae}function ds(K){var ae=typeof K;return ae=="string"||ae=="number"||ae=="symbol"||ae=="boolean"?K!=="__proto__":K===null}function oo(K){return!!Se&&Se in K}function so(K){var ae=K&&K.constructor,pe=typeof ae=="function"&&ae.prototype||re;return K===pe}function ki(K){if(K!=null){try{return Ce.call(K)}catch{}try{return K+""}catch{}}return""}function Up(K){return io(K,!0,!0)}function sl(K,ae){return K===ae||K!==K&&ae!==ae}function zp(K){return qp(K)&&Fe.call(K,"callee")&&(!Qr.call(K,"callee")||Ne.call(K)==a)}var ul=Array.isArray;function gf(K){return K!=null&&Wp(K.length)&&!yf(K)}function qp(K){return Hp(K)&&gf(K)}var ll=Or||xt;function yf(K){var ae=hs(K)?Ne.call(K):"";return ae==d||ae==h}function Wp(K){return typeof K=="number"&&K>-1&&K%1==0&&K<=i}function hs(K){var ae=typeof K;return!!K&&(ae=="object"||ae=="function")}function Hp(K){return!!K&&typeof K=="object"}function cl(K){return gf(K)?il(K):ao(K)}function wt(){return[]}function xt(){return!1}e.exports=Up})(y0,y0.exports);var Va=y0.exports,v0=function(){return v0=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},v0.apply(this,arguments)};function BG(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function u(d){try{f(r.next(d))}catch(h){o(h)}}function l(d){try{f(r.throw(d))}catch(h){o(h)}}function f(d){d.done?a(d.value):i(d.value).then(u,l)}f((r=r.apply(e,[])).next())})}function LG(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=u(0),o.throw=u(1),o.return=u(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(f){return function(d){return l([f,d])}}function l(f){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,f[0]&&(n=0)),n;)try{if(r=1,i&&(a=f[0]&2?i.return:f[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,f[1])).done)return a;switch(i=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,i=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){n.label=f[1];break}if(f[0]===6&&n.label<a[1]){n.label=a[1],a=f;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(f);break}a[2]&&n.ops.pop(),n.trys.pop();continue}f=t.call(e,n)}catch(d){f=[6,d],i=0}finally{r=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}function $h(e,t,n,r,i){return BG(this,void 0,void 0,function(){var a,o;return LG(this,function(u){switch(u.label){case 0:if(n===void 0)return[2];o=0,u.label=1;case 1:return o<n.length?[4,n[o](e,t,r,i,n)]:[3,4];case 2:if(a=u.sent(),a==="canceled")return[3,4];u.label=3;case 3:return o++,[3,1];case 4:return a!=="canceled"?[2,a]:[2]}})})}var b0=function(e,t){return t===void 0&&(t={}),e?{trackedAnalytics:v0({sdkCode:e.sdkCode,sdkSemver:e.sdkSemver,techVersion:e.techVersion},t)}:null},VG=function(){function e(t,n,r,i){var a=this;this.isMounted=!0,this.imgElement=t,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var o=Va(n);$h(t,o,r,this.htmlPluginState,i).then(function(u){if(a.isMounted){a.htmlPluginState.pluginEventSubscription.forEach(function(f){f()});var l=b0(i,u);a.imgElement.setAttribute("src",o.toURL(l))}})}return e.prototype.update=function(t,n,r){var i=this,a=Va(t);$h(this.imgElement,a,n,this.htmlPluginState).then(function(o){if(i.isMounted){var u=b0(r,o);i.imgElement.setAttribute("src",a.toURL(u))}})},e.prototype.unmount=function(){this.isMounted=!1},e}();let Vt=class{constructor(t){this.values=[],this.delimiter=":",this.hasValue(t)&&this.addValue(t)}toString(){return this.values.join(this.delimiter)}hasValue(t){return typeof t<"u"&&t!==null&&t!==""}addValue(t){return Array.isArray(t)?this.values=this.values.concat(t):this.values.push(t),this.values=this.values.filter(n=>this.hasValue(n)),this}setDelimiter(t){return this.delimiter=t,this}},NG=class extends Error{constructor(t="Unsupported"){super(t)}};function J1(e){return new NG(e)}function jG(){return this._qualifierModel||{error:J1(`unsupported qualifier ${this.constructor.name}`)}}let KG=class{constructor(){this._qualifierModel={}}toJson(){return jG.apply(this)}},Je=class extends KG{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof Vt?this.qualifierValue=n:(this.qualifierValue=new Vt,this.qualifierValue.addValue(n))}toString(){const{key:t,delimiter:n,qualifierValue:r}=this;return`${t}${n}${r.toString()}`}addValue(t){return this.qualifierValue.addValue(t),this}},Tr=class extends Je{constructor(t,n){let r;n?r=new Vt([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}};function UG(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function zG(){var e,t,n;const r=this._actionModel&&Object.keys(this._actionModel).length,i=(n=(t=(e=this._actionModel)===null||e===void 0?void 0:e.source)===null||t===void 0?void 0:t.transformation)===null||n===void 0?void 0:n.error;return i&&i instanceof Error?{error:i}:r?this._actionModel:{error:J1(`unsupported action ${this.constructor.name}`)}}let qG=class{constructor(){this._actionModel={}}toJson(){return zG.apply(this)}},Gr=class extends qG{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(t){return this.actionTag=t,this}toString(){return this.prepareQualifiers(),UG(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(t){if(typeof t=="string"){const[n,r]=t.toLowerCase().split("_");n==="fl"?this.flags.push(new Tr(r)):this.qualifiers.set(n,new Je(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new Tr(t)):t instanceof Tr&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}};class X1 extends Gr{constructor(t){super(),this.regionType=t,this._actionModel.regionType=t}}class mp extends X1{constructor(){super("custom")}x(t){return this._actionModel.x=t,this.addQualifier(new Je("x",t)),this}y(t){return this._actionModel.y=t,this.addQualifier(new Je("y",t)),this}width(t){return this._actionModel.width=t,this.addQualifier(new Je("w",t)),this}height(t){return this._actionModel.height=t,this.addQualifier(new Je("h",t)),this}static fromJson(t){const n=new mp;return t.width&&n.width(t.width),t.height&&n.height(t.height),t.x&&n.x(t.x),t.y&&n.y(t.y),n}}function WG(){return new mp}function K7(){return new X1("faces")}function HG(){return new X1("ocr_text")}class GG extends Gr{constructor(t){super(),this._actionModel={},this._strength=t,this._actionModel.actionType="blur",this._actionModel.strength=t}region(t){return this._region=t,this._actionModel.region=t.toJson(),this}strength(t){return this._strength=t,this._actionModel.strength=t,this}prepareQualifiers(){const t=this._strength?`:${this._strength}`:"";"_region"in this?(this._region.qualifiers.forEach(r=>this.addQualifier(r)),this._region.regionType==="custom"&&this.addQualifier(new Je("e",`blur_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new Je("e",`blur_region${t}`)),this.addQualifier(new Je("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new Je("e",`blur_faces${t}`))):this.addQualifier(new Je("e",`blur${t}`))}static fromJson(t){const{strength:n,region:r}=t,i=new this(n);return n&&i.strength(n),r&&r.regionType==="faces"&&i.region(K7()),r&&r.regionType==="ocr_text"&&i.region(HG()),r&&r.regionType==="custom"&&i.region(mp.fromJson(r)),i}}function Jo(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const U7={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},YG={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},z7={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},q7={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},ZG={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},W7={444:"CHROMA_444",420:"CHROMA_420"},JG={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"},XG=Jo(W7);Jo(JG);const QG=Jo(U7),eY=Jo(YG),H7=Jo(z7);Jo(q7);Jo(ZG);class G7 extends Gr{constructor(t,n){super(),this._actionModel={},this._actionModel.actionType=H7[t]||t;const r=this.createEffectQualifier(t,n);this.addQualifier(r)}createEffectQualifier(t,n){let r;return n?r=new Vt([t,`${n}`]).setDelimiter(":"):r=new Vt(t),new Je("e",r)}static fromJson(t){const{actionType:n,level:r,strength:i}=t,a=z7[n]||n;return new this(a,r||i)}}class tY extends G7{constructor(t,n){super(t,n),this.LEVEL_NAME="level",this._actionModel={},this.effectType=t,this._actionModel.actionType=H7[t]||t,n&&this.setLevel(n)}setLevel(t){this._actionModel[this.LEVEL_NAME]=t;const n=this.createEffectQualifier(this.effectType,t);return this.addQualifier(n),this}}function gp(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class nY extends Gr{constructor(){super(),this._actionModel={},this._actionModel.actionType="vectorize"}numOfColors(t){return this._actionModel.numOfColors=t,this._numOfColors=t,this}detailsLevel(t){return this._actionModel.detailLevel=t,this._detailsLevel=t,this}despeckleLevel(t){return this._actionModel.despeckleLevel=t,this._despeckleLevel=t,this}cornersLevel(t){return this._actionModel.cornersLevel=t,this._cornersLevel=t,this}paths(t){return this._actionModel.paths=t,this._paths=t,this}prepareQualifiers(){let t="vectorize";this._numOfColors&&(t+=`:${new Vt(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(t+=`:${new Vt(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(t+=`:${new Vt(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(t+=`:${new Vt(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(t+=`:${new Vt(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new Je("e",t))}static fromJson(t){const{actionType:n,paths:r,cornersLevel:i,despeckleLevel:a,detailLevel:o,numOfColors:u}=t,l=new this;return r&&l.paths(r),i&&l.cornersLevel(i),a&&l.despeckleLevel(a),o&&l.detailsLevel(o),u&&l.numOfColors(u),l}}class rY extends tY{level(t){return this._actionModel.level=t,this.setLevel(t)}}class iY extends Gr{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new Je("e",new Vt("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new Je("e",new Vt(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(t){return this._actionModel.type="stripes",this._actionModel.stripesStrength=t,this.addQualifier(new Je("e",new Vt(["assist_colorblind",t]).setDelimiter(":")))}static fromJson(t){const{actionType:n,type:r,stripesStrength:i}=t,a=new this;return r==="xray"&&a.xray(),r==="stripes"&&i&&a.stripesStrength(i),a}}class aY extends rY{color(t){return this._actionModel.color=t,this.addQualifier(new Je("co",new Vt(gp(t))))}static fromJson(t){const{actionType:n,level:r,color:i}=t,a=new this(n,r);return i&&a.color(i),a}}class oY extends Gr{constructor(t){super(),this._actionModel={},this._squareSize=t,this._actionModel.actionType="pixelate",this._actionModel.squareSize=t}region(t){return this._region=t,this._actionModel.region={regionType:this._region.regionType},this}squareSize(t){return this._squareSize=t,this._actionModel.squareSize=t,this}prepareQualifiers(){const t=this._squareSize?`:${this._squareSize}`:"";"_region"in this?(this._region.qualifiers.forEach(r=>this.addQualifier(r)),this._region.regionType==="custom"&&this.addQualifier(new Je("e",`pixelate_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new Je("e",`pixelate_region${t}`)),this.addQualifier(new Je("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new Je("e",`pixelate_faces${t}`))):this.addQualifier(new Je("e",`pixelate${t}`))}static fromJson(t){const{region:n,squareSize:r}=t,i=new this(r);return r&&i.squareSize(r),n&&n.regionType==="faces"&&i.region(K7()),n&&n.regionType==="custom"&&i.region(WG()),i}}function sY(e){return new GG(e)}function uY(){return new G7("grayscale")}function KD(e){return new aY("colorize",e)}function lY(){return new nY}function cY(){return new iY}function fY(e){return new oY(e)}let dY=class extends Gr{constructor(t){super(),this._actionModel={},this.addQualifier(new Je("b",new Vt(gp(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}},UD=class{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:J1(`unsupported action ${this.constructor.name}`)}}};function hY(e){const t=e;return"error"in t&&!!t.error}function pY(){return new Tr("ignore_aspect_ratio")}function mY(){return new Tr("lossy")}function gY(){return new Tr("preserve_transparency")}function yY(e){return new Tr("progressive",e)}function vY(){return new Tr("region_relative")}function bY(){return new Tr("relative")}let Q1=class extends Vt{constructor(t){super(t),this.val=t}getValue(){return this.val}},Y7=class extends Gr{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof Q1?i=n.getValue():i=n,this._actionModel.actionType=eY[t],this._actionModel[r]=i,this.addQualifier(new Je(t,n))}},$Y=class extends Tr{constructor(t){super("progressive",t)}},$0=class extends Y7{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(mY()),this}progressive(t){return t instanceof $Y?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(yY(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(gY()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:a}=t;let o;return n?o=new this("f",n):o=new this("f"),i&&(i.mode?o.progressive(i.mode):o.progressive()),r&&o.lossy(),a&&o.preserveTransparency(),o}},yp=class Z7{constructor(){this.actions=[]}addAction(t){let n;if(typeof t=="string"){if(t.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";n=new UD(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof Z7?this.actions=this.actions.concat(t.actions):this.actions.push(new UD(t)),this}toString(){return this.actions.map(t=>t.toString()).filter(t=>t).join("/")}animated(t){return this.addAction(t)}border(t){return this.addAction(t)}reshape(t){return this.addAction(t)}resize(t){return this.addAction(t)}quality(t){return this.addAction(new $0("q",t)),this}format(t){return this.addAction(new $0("f",t)),this}roundCorners(t){return this.addAction(t)}overlay(t){return this.addAction(t)}underlay(t){return t.setLayerType("u"),this.addAction(t)}addVariable(t){return this.addAction(t)}conditional(t){return this.addAction(t)}effect(t){return this.addAction(t)}adjust(t){return this.addAction(t)}rotate(t){return this.addAction(t)}namedTransformation(t){return this.addAction(t)}delivery(t){return this.addAction(t)}backgroundColor(t){return this.addAction(new dY(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new Gr;let r=t;return typeof t=="string"&&(r=new Tr(t)),n.addQualifier(r),this.addAction(n)}customFunction(t){return this.addAction(t)}transcode(t){return this.addAction(t)}videoEdit(t){return this.addAction(t)}toJson(){const t=[];for(const n of this.actions){const r=n.toJson();if(hY(r))return r;t.push(r)}return{actions:t}}};function zD(e){const t=e.toString();return t.match(/[A-Z]/gi)||t.length>1&&t[0]==="0"?t:!isNaN(parseFloat(t))&&t.indexOf(":")===-1&&t.indexOf(".")===-1?`${t}.0`:t}class xY extends Vt{}class wY extends Gr{constructor(t,n,r){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=QG[t]||t,this.addQualifier(new Je("c",t)),n&&this.width(n),r&&this.height(r)}height(t){return this._actionModel.dimensions.height=t,this.addQualifier(new Je("h",t))}width(t){return this._actionModel.dimensions.width=t,this.addQualifier(new Je("w",t))}aspectRatio(t){if(t instanceof xY)return this._actionModel.dimensions.aspectRatio=`${t}`,this.addQualifier(new Je("ar",t));if(typeof t=="number"||typeof t=="string")return this._actionModel.dimensions.aspectRatio=zD(t),this.addQualifier(new Je("ar",zD(t)));if(t instanceof Tr)return this._actionModel.dimensions.aspectRatio=`${t.qualifierValue}`,this.addFlag(t)}relative(){return this._actionModel.relative=!0,this.addFlag(bY())}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(vY())}static fromJson(t){const{actionType:n,dimensions:r,relative:i,regionRelative:a}=t,{aspectRatio:o,width:u,height:l}=r,f=U7[n]||n,d=new this(f,u,l);return o&&d.aspectRatio(o==="ignore_aspect_ratio"?pY():o),i&&d.relative(),a&&d.regionRelative(),d}}class e4 extends Je{constructor(t){super("g",new Vt(t))}}class J7 extends e4{constructor(){super("auto")}autoFocus(...t){return this.addValue(t),this}}class X7 extends e4{constructor(t){super(t)}fallbackGravity(t){return this.addValue(t.qualifierValue),this}}class Q7 extends e4{constructor(t){super(t)}}function DY(e){return new Q7(e)}function eO(...e){const t=[...e];return new X7(t)}function tO(){return new J7}class hu extends Vt{constructor(t){super(),this.name=t}toString(){return this.name}}function CY(){return new hu("ocr_text")}function EY(e){return e&&`${e}`.split(":")[0]==="auto"}function SY(e){const t=t4(e);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(t)}function t4(e){return`${e}`.replace("g_","")}function TY(e){return{compass:t4(e),gravityType:"direction"}}function AY(e){return t4(e)==="ocr_text"}function PY(){return{gravityType:"ocr"}}function _Y(e){return`${e.qualifierValue}`.split(":")[0]==="auto"}function RY(e){const n=e.toString().split("_"),r={object:n[0]};return n.length>1&&(n[1]==="avoid"?r.avoid=!0:r.weight=+n[1]),r}function nO(e){let t;const n=e==="auto"?new J7:e;return`${e}`.startsWith("auto:")?t=`${e}`.split(":").filter(i=>i!=="auto"):t=n.qualifierValue.values.filter(i=>i!=="auto"),{gravityType:"auto",autoFocus:t.map(RY)}}function OY(e){const t=`${e}`.split(":").includes("auto"),n=e.qualifierValue.values,i={gravityType:"object",focusOnObjects:(t?n.slice(0,n.length-1):n).map(a=>`${a}`)};if(t){const a=n[n.length-1].values.slice(1),o=tO().autoFocus(...a);i.fallbackGravity=nO(o)}return i}function MY(e){const n=e.split(":").map(r=>new hu(r));return new X7(n)}function FY(e){return SY(e)?TY(e):AY(e)?PY():EY(e)||_Y(e)?nO(e):OY(typeof e=="string"?MY(e):e)}class n4 extends Vt{constructor(t,n){super(),this._weight=n,this.focusOn=t,this.shouldAvoid=!1}static focusOn(t,n){const r=t instanceof hu?t:new hu(t);return new n4(r,n)}shouldAddWeight(){return typeof this._weight=="number"||typeof this._weight=="string"||this.shouldAvoid}getName(){return this.focusOn.name}getWeight(){return this.shouldAvoid?"avoid":this._weight}toString(){return this.shouldAddWeight()?`${this.getName()}_${this.getWeight()}`:`${this.getName()}`}weight(t){return this._weight=t,this}avoid(){return this.shouldAvoid=!0,this}}class rO extends Vt{constructor(t){super(),this.val=t}toString(){return this.val}}function kY(e){return e.gravityType==="direction"}function IY(e){return e.gravityType==="ocr"}function BY(e){return e.gravityType==="auto"}function LY(e){const{object:t,weight:n,avoid:r}=e,i=new n4(new hu(t));return(n||n===0)&&i.weight(n),r&&i.avoid(),i}function iO(e){const n=(e.autoFocus||[]).map(LY);return tO().autoFocus(...n)}function VY(e){const t=(e.focusOnObjects||[]).map(r=>new hu(r)),n=eO(...t);if(e.fallbackGravity){const r=iO(e.fallbackGravity);n.fallbackGravity(r)}return n}function NY(e){return kY(e)?new Q7(new rO(e.compass)):IY(e)?eO(CY()):BY(e)?iO(e):VY(e)}class r4 extends wY{gravity(t){this._actionModel.gravity=FY(t);const n=typeof t=="string"?new Je("g",t):t;return this.addQualifier(n)}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.gravity&&n.gravity(NY(t.gravity)),n}}class Zc extends Je{constructor(t){super("b"),t&&this.addValue(t)}}const aO=100,jY=0;class KY extends Zc{intensity(t){return this.intensityLevel=t,this}brightness(t){return this.brightnessLevel=t,this}toString(){const t=this.intensityLevel!==void 0?`:${this.intensityLevel}`:"",n=this.brightnessLevel!==void 0?this.intensityLevel!==void 0?`:${this.brightnessLevel}`:`:${aO}:${this.brightnessLevel}`:"";return`b_blurred${t}${n}`}}var oO=KY;class i4 extends Zc{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...t){return this._palette=t.map(n=>gp(n)),this}}class sO extends i4{toString(){return`
84
+ }`;var Qe=Kx(function(){return lt(B,Be+"return "+$e).apply(n,q)});if(Qe.source=$e,Nm(Qe))throw Qe;return Qe}function cN(s){return dt(s).toLowerCase()}function fN(s){return dt(s).toUpperCase()}function dN(s,c,m){if(s=dt(s),s&&(m||c===n))return J3(s);if(!s||!(c=tr(c)))return s;var x=kr(s),P=kr(c),B=X3(x,P),q=Q3(x,P)+1;return Ea(x,B,q).join("")}function hN(s,c,m){if(s=dt(s),s&&(m||c===n))return s.slice(0,t$(s)+1);if(!s||!(c=tr(c)))return s;var x=kr(s),P=Q3(x,kr(c))+1;return Ea(x,0,P).join("")}function pN(s,c,m){if(s=dt(s),s&&(m||c===n))return s.replace(no,"");if(!s||!(c=tr(c)))return s;var x=kr(s),P=X3(x,kr(c));return Ea(x,P).join("")}function mN(s,c){var m=j,x=O;if(kt(c)){var P="separator"in c?c.separator:P;m="length"in c?Ze(c.length):m,x="omission"in c?tr(c.omission):x}s=dt(s);var B=s.length;if(gs(s)){var q=kr(s);B=q.length}if(m>=B)return s;var Y=m-ys(x);if(Y<1)return x;var te=q?Ea(q,0,Y).join(""):s.slice(0,Y);if(P===n)return te+x;if(q&&(Y+=te.length-Y),jm(P)){if(s.slice(Y).search(P)){var de,he=te;for(P.global||(P=rm(P.source,dt(Fr.exec(P))+"g")),P.lastIndex=0;de=P.exec(he);)var $e=de.index;te=te.slice(0,$e===n?Y:$e)}}else if(s.indexOf(tr(P),Y)!=Y){var Pe=te.lastIndexOf(P);Pe>-1&&(te=te.slice(0,Pe))}return te+x}function gN(s){return s=dt(s),s&&Qa.test(s)?s.replace(Mi,q8):s}var yN=Cs(function(s,c,m){return s+(m?" ":"")+c.toUpperCase()}),zm=U$("toUpperCase");function jx(s,c,m){return s=dt(s),c=m?n:c,c===n?N8(s)?G8(s):R8(s):s.match(c)||[]}var Kx=tt(function(s,c){try{return Qn(s,n,c)}catch(m){return Nm(m)?m:new He(m)}}),vN=Ni(function(s,c){return lr(c,function(m){m=fi(m),Li(s,m,Lm(s[m],s))}),s});function bN(s){var c=s==null?0:s.length,m=je();return s=c?Ot(s,function(x){if(typeof x[1]!="function")throw new cr(o);return[m(x[0]),x[1]]}):[],tt(function(x){for(var P=-1;++P<c;){var B=s[P];if(Qn(B[0],this,x))return Qn(B[1],this,x)}})}function $N(s){return qk(dr(s,h))}function qm(s){return function(){return s}}function xN(s,c){return s==null||s!==s?c:s}var wN=q$(),DN=q$(!0);function Kn(s){return s}function Wm(s){return x$(typeof s=="function"?s:dr(s,h))}function CN(s){return D$(dr(s,h))}function EN(s,c){return C$(s,dr(c,h))}var SN=tt(function(s,c){return function(m){return $l(m,s,c)}}),TN=tt(function(s,c){return function(m){return $l(s,m,c)}});function Hm(s,c,m){var x=sn(c),P=Bf(c,x);m==null&&!(kt(c)&&(P.length||!x.length))&&(m=c,c=s,s=this,P=Bf(c,sn(c)));var B=!(kt(m)&&"chain"in m)||!!m.chain,q=Ki(s);return lr(P,function(Y){var te=c[Y];s[Y]=te,q&&(s.prototype[Y]=function(){var de=this.__chain__;if(B||de){var he=s(this.__wrapped__),$e=he.__actions__=Vn(this.__actions__);return $e.push({func:te,args:arguments,thisArg:s}),he.__chain__=de,he}return te.apply(s,ba([this.value()],arguments))})}),s}function AN(){return Jt._===this&&(Jt._=ek),this}function Gm(){}function PN(s){return s=Ze(s),tt(function(c){return E$(c,s)})}var _N=Em(Ot),RN=Em(W3),ON=Em(Zp);function Ux(s){return Om(s)?Jp(fi(s)):uI(s)}function MN(s){return function(c){return s==null?n:po(s,c)}}var FN=H$(),kN=H$(!0);function Ym(){return[]}function Zm(){return!1}function IN(){return{}}function BN(){return""}function LN(){return!0}function VN(s,c){if(s=Ze(s),s<1||s>_)return[];var m=N,x=bn(s,N);c=je(c),s-=N;for(var P=em(x,c);++m<s;)c(m);return P}function NN(s){return Ge(s)?Ot(s,fi):nr(s)?[s]:Vn(lx(dt(s)))}function jN(s){var c=++X8;return dt(s)+c}var KN=Uf(function(s,c){return s+c},0),UN=Sm("ceil"),zN=Uf(function(s,c){return s/c},1),qN=Sm("floor");function WN(s){return s&&s.length?If(s,Kn,fm):n}function HN(s,c){return s&&s.length?If(s,je(c,2),fm):n}function GN(s){return Y3(s,Kn)}function YN(s,c){return Y3(s,je(c,2))}function ZN(s){return s&&s.length?If(s,Kn,mm):n}function JN(s,c){return s&&s.length?If(s,je(c,2),mm):n}var XN=Uf(function(s,c){return s*c},1),QN=Sm("round"),ej=Uf(function(s,c){return s-c},0);function tj(s){return s&&s.length?Qp(s,Kn):0}function nj(s,c){return s&&s.length?Qp(s,je(c,2)):0}return F.after=CL,F.ary=$x,F.assign=fV,F.assignIn=Fx,F.assignInWith=nd,F.assignWith=dV,F.at=hV,F.before=xx,F.bind=Lm,F.bindAll=vN,F.bindKey=wx,F.castArray=IL,F.chain=yx,F.chunk=qI,F.compact=WI,F.concat=HI,F.cond=bN,F.conforms=$N,F.constant=qm,F.countBy=tL,F.create=pV,F.curry=Dx,F.curryRight=Cx,F.debounce=Ex,F.defaults=mV,F.defaultsDeep=gV,F.defer=EL,F.delay=SL,F.difference=GI,F.differenceBy=YI,F.differenceWith=ZI,F.drop=JI,F.dropRight=XI,F.dropRightWhile=QI,F.dropWhile=eB,F.fill=tB,F.filter=rL,F.flatMap=oL,F.flatMapDeep=sL,F.flatMapDepth=uL,F.flatten=hx,F.flattenDeep=nB,F.flattenDepth=rB,F.flip=TL,F.flow=wN,F.flowRight=DN,F.fromPairs=iB,F.functions=DV,F.functionsIn=CV,F.groupBy=lL,F.initial=oB,F.intersection=sB,F.intersectionBy=uB,F.intersectionWith=lB,F.invert=SV,F.invertBy=TV,F.invokeMap=fL,F.iteratee=Wm,F.keyBy=dL,F.keys=sn,F.keysIn=jn,F.map=Zf,F.mapKeys=PV,F.mapValues=_V,F.matches=CN,F.matchesProperty=EN,F.memoize=Xf,F.merge=RV,F.mergeWith=kx,F.method=SN,F.methodOf=TN,F.mixin=Hm,F.negate=Qf,F.nthArg=PN,F.omit=OV,F.omitBy=MV,F.once=AL,F.orderBy=hL,F.over=_N,F.overArgs=PL,F.overEvery=RN,F.overSome=ON,F.partial=Vm,F.partialRight=Sx,F.partition=pL,F.pick=FV,F.pickBy=Ix,F.property=Ux,F.propertyOf=MN,F.pull=hB,F.pullAll=mx,F.pullAllBy=pB,F.pullAllWith=mB,F.pullAt=gB,F.range=FN,F.rangeRight=kN,F.rearg=_L,F.reject=yL,F.remove=yB,F.rest=RL,F.reverse=Im,F.sampleSize=bL,F.set=IV,F.setWith=BV,F.shuffle=$L,F.slice=vB,F.sortBy=DL,F.sortedUniq=EB,F.sortedUniqBy=SB,F.split=oN,F.spread=OL,F.tail=TB,F.take=AB,F.takeRight=PB,F.takeRightWhile=_B,F.takeWhile=RB,F.tap=WB,F.throttle=ML,F.thru=Yf,F.toArray=Rx,F.toPairs=Bx,F.toPairsIn=Lx,F.toPath=NN,F.toPlainObject=Mx,F.transform=LV,F.unary=FL,F.union=OB,F.unionBy=MB,F.unionWith=FB,F.uniq=kB,F.uniqBy=IB,F.uniqWith=BB,F.unset=VV,F.unzip=Bm,F.unzipWith=gx,F.update=NV,F.updateWith=jV,F.values=Ts,F.valuesIn=KV,F.without=LB,F.words=jx,F.wrap=kL,F.xor=VB,F.xorBy=NB,F.xorWith=jB,F.zip=KB,F.zipObject=UB,F.zipObjectDeep=zB,F.zipWith=qB,F.entries=Bx,F.entriesIn=Lx,F.extend=Fx,F.extendWith=nd,Hm(F,F),F.add=KN,F.attempt=Kx,F.camelCase=WV,F.capitalize=Vx,F.ceil=UN,F.clamp=UV,F.clone=BL,F.cloneDeep=VL,F.cloneDeepWith=NL,F.cloneWith=LL,F.conformsTo=jL,F.deburr=Nx,F.defaultTo=xN,F.divide=zN,F.endsWith=HV,F.eq=Br,F.escape=GV,F.escapeRegExp=YV,F.every=nL,F.find=iL,F.findIndex=fx,F.findKey=yV,F.findLast=aL,F.findLastIndex=dx,F.findLastKey=vV,F.floor=qN,F.forEach=vx,F.forEachRight=bx,F.forIn=bV,F.forInRight=$V,F.forOwn=xV,F.forOwnRight=wV,F.get=Km,F.gt=KL,F.gte=UL,F.has=EV,F.hasIn=Um,F.head=px,F.identity=Kn,F.includes=cL,F.indexOf=aB,F.inRange=zV,F.invoke=AV,F.isArguments=yo,F.isArray=Ge,F.isArrayBuffer=zL,F.isArrayLike=Nn,F.isArrayLikeObject=Kt,F.isBoolean=qL,F.isBuffer=Sa,F.isDate=WL,F.isElement=HL,F.isEmpty=GL,F.isEqual=YL,F.isEqualWith=ZL,F.isError=Nm,F.isFinite=JL,F.isFunction=Ki,F.isInteger=Tx,F.isLength=ed,F.isMap=Ax,F.isMatch=XL,F.isMatchWith=QL,F.isNaN=eV,F.isNative=tV,F.isNil=rV,F.isNull=nV,F.isNumber=Px,F.isObject=kt,F.isObjectLike=jt,F.isPlainObject=Sl,F.isRegExp=jm,F.isSafeInteger=iV,F.isSet=_x,F.isString=td,F.isSymbol=nr,F.isTypedArray=Ss,F.isUndefined=aV,F.isWeakMap=oV,F.isWeakSet=sV,F.join=cB,F.kebabCase=ZV,F.last=pr,F.lastIndexOf=fB,F.lowerCase=JV,F.lowerFirst=XV,F.lt=uV,F.lte=lV,F.max=WN,F.maxBy=HN,F.mean=GN,F.meanBy=YN,F.min=ZN,F.minBy=JN,F.stubArray=Ym,F.stubFalse=Zm,F.stubObject=IN,F.stubString=BN,F.stubTrue=LN,F.multiply=XN,F.nth=dB,F.noConflict=AN,F.noop=Gm,F.now=Jf,F.pad=QV,F.padEnd=eN,F.padStart=tN,F.parseInt=nN,F.random=qV,F.reduce=mL,F.reduceRight=gL,F.repeat=rN,F.replace=iN,F.result=kV,F.round=QN,F.runInContext=ee,F.sample=vL,F.size=xL,F.snakeCase=aN,F.some=wL,F.sortedIndex=bB,F.sortedIndexBy=$B,F.sortedIndexOf=xB,F.sortedLastIndex=wB,F.sortedLastIndexBy=DB,F.sortedLastIndexOf=CB,F.startCase=sN,F.startsWith=uN,F.subtract=ej,F.sum=tj,F.sumBy=nj,F.template=lN,F.times=VN,F.toFinite=Ui,F.toInteger=Ze,F.toLength=Ox,F.toLower=cN,F.toNumber=mr,F.toSafeInteger=cV,F.toString=dt,F.toUpper=fN,F.trim=dN,F.trimEnd=hN,F.trimStart=pN,F.truncate=mN,F.unescape=gN,F.uniqueId=jN,F.upperCase=yN,F.upperFirst=zm,F.each=vx,F.eachRight=bx,F.first=px,Hm(F,function(){var s={};return li(F,function(c,m){yt.call(F.prototype,m)||(s[m]=c)}),s}(),{chain:!1}),F.VERSION=r,lr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){F[s].placeholder=F}),lr(["drop","take"],function(s,c){at.prototype[s]=function(m){m=m===n?1:rn(Ze(m),0);var x=this.__filtered__&&!c?new at(this):this.clone();return x.__filtered__?x.__takeCount__=bn(m,x.__takeCount__):x.__views__.push({size:bn(m,N),type:s+(x.__dir__<0?"Right":"")}),x},at.prototype[s+"Right"]=function(m){return this.reverse()[s](m).reverse()}}),lr(["filter","map","takeWhile"],function(s,c){var m=c+1,x=m==V||m==L;at.prototype[s]=function(P){var B=this.clone();return B.__iteratees__.push({iteratee:je(P,3),type:m}),B.__filtered__=B.__filtered__||x,B}}),lr(["head","last"],function(s,c){var m="take"+(c?"Right":"");at.prototype[s]=function(){return this[m](1).value()[0]}}),lr(["initial","tail"],function(s,c){var m="drop"+(c?"":"Right");at.prototype[s]=function(){return this.__filtered__?new at(this):this[m](1)}}),at.prototype.compact=function(){return this.filter(Kn)},at.prototype.find=function(s){return this.filter(s).head()},at.prototype.findLast=function(s){return this.reverse().find(s)},at.prototype.invokeMap=tt(function(s,c){return typeof s=="function"?new at(this):this.map(function(m){return $l(m,s,c)})}),at.prototype.reject=function(s){return this.filter(Qf(je(s)))},at.prototype.slice=function(s,c){s=Ze(s);var m=this;return m.__filtered__&&(s>0||c<0)?new at(m):(s<0?m=m.takeRight(-s):s&&(m=m.drop(s)),c!==n&&(c=Ze(c),m=c<0?m.dropRight(-c):m.take(c-s)),m)},at.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},at.prototype.toArray=function(){return this.take(N)},li(at.prototype,function(s,c){var m=/^(?:filter|find|map|reject)|While$/.test(c),x=/^(?:head|last)$/.test(c),P=F[x?"take"+(c=="last"?"Right":""):c],B=x||/^find/.test(c);P&&(F.prototype[c]=function(){var q=this.__wrapped__,Y=x?[1]:arguments,te=q instanceof at,de=Y[0],he=te||Ge(q),$e=function(rt){var ot=P.apply(F,ba([rt],Y));return x&&Pe?ot[0]:ot};he&&m&&typeof de=="function"&&de.length!=1&&(te=he=!1);var Pe=this.__chain__,Be=!!this.__actions__.length,Ue=B&&!Pe,Qe=te&&!Be;if(!B&&he){q=Qe?q:new at(this);var ze=s.apply(q,Y);return ze.__actions__.push({func:Yf,args:[$e],thisArg:n}),new fr(ze,Pe)}return Ue&&Qe?s.apply(this,Y):(ze=this.thru($e),Ue?x?ze.value()[0]:ze.value():ze)})}),lr(["pop","push","shift","sort","splice","unshift"],function(s){var c=xf[s],m=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",x=/^(?:pop|shift)$/.test(s);F.prototype[s]=function(){var P=arguments;if(x&&!this.__chain__){var B=this.value();return c.apply(Ge(B)?B:[],P)}return this[m](function(q){return c.apply(Ge(q)?q:[],P)})}}),li(at.prototype,function(s,c){var m=F[c];if(m){var x=m.name+"";yt.call(xs,x)||(xs[x]=[]),xs[x].push({name:c,func:m})}}),xs[Kf(n,$).name]=[{name:"wrapper",func:n}],at.prototype.clone=gk,at.prototype.reverse=yk,at.prototype.value=vk,F.prototype.at=HB,F.prototype.chain=GB,F.prototype.commit=YB,F.prototype.next=ZB,F.prototype.plant=XB,F.prototype.reverse=QB,F.prototype.toJSON=F.prototype.valueOf=F.prototype.value=eL,F.prototype.first=F.prototype.head,hl&&(F.prototype[hl]=JB),F},vs=Y8();ui?((ui.exports=vs)._=vs,si._=vs):Jt._=vs}).call(bU)}(Ul,Ul.exports)),Ul.exports}var eA=$U();const xU=sa(eA);var Lc=e=>e.type==="checkbox",So=e=>e instanceof Date,Rn=e=>e==null;const tA=e=>typeof e=="object";var Gt=e=>!Rn(e)&&!Array.isArray(e)&&tA(e)&&!So(e),nA=e=>Gt(e)&&e.target?Lc(e.target)?e.target.checked:e.target.value:e,wU=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,rA=(e,t)=>e.has(wU(t)),DU=e=>{const t=e.constructor&&e.constructor.prototype;return Gt(t)&&t.hasOwnProperty("isPrototypeOf")},b1=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Un(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(b1&&(e instanceof Blob||r))&&(n||Gt(e)))if(t=n?[]:{},!n&&!DU(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=Un(e[i]));else return e;return t}var Qh=e=>Array.isArray(e)?e.filter(Boolean):[],Wt=e=>e===void 0,Ae=(e,t,n)=>{if(!t||!Gt(e))return n;const r=Qh(t.split(/[,[\].]+?/)).reduce((i,a)=>Rn(i)?i:i[a],e);return Wt(r)||r===e?Wt(e[t])?n:e[t]:r},wr=e=>typeof e=="boolean",$1=e=>/^\w*$/.test(e),iA=e=>Qh(e.replace(/["|']|\]/g,"").split(/\.|\[/)),gt=(e,t,n)=>{let r=-1;const i=$1(t)?[t]:iA(t),a=i.length,o=a-1;for(;++r<a;){const u=i[r];let l=n;if(r!==o){const f=e[u];l=Gt(f)||Array.isArray(f)?f:isNaN(+i[r+1])?{}:[]}if(u==="__proto__"||u==="constructor"||u==="prototype")return;e[u]=l,e=e[u]}return e};const rh={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Kr={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},qi={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},aA=C.createContext(null),ep=()=>C.useContext(aA),CU=e=>{const{children:t,...n}=e;return C.createElement(aA.Provider,{value:n},t)};var oA=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const o=a;return t._proxyFormState[o]!==Kr.all&&(t._proxyFormState[o]=!r||Kr.all),n&&(n[o]=!0),e[o]}});return i},zn=e=>Gt(e)&&!Object.keys(e).length,sA=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return zn(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(o=>t[o]===(!r||Kr.all))},tc=e=>Array.isArray(e)?e:[e],uA=(e,t,n)=>!e||!t||e===t||tc(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function x1(e){const t=C.useRef(e);t.current=e,C.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function EU(e){const t=ep(),{control:n=t.control,disabled:r,name:i,exact:a}=e||{},[o,u]=C.useState(n._formState),l=C.useRef(!0),f=C.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=C.useRef(i);return d.current=i,x1({disabled:r,next:h=>l.current&&uA(d.current,h.name,a)&&sA(h,f.current,n._updateFormState)&&u({...n._formState,...h}),subject:n._subjects.state}),C.useEffect(()=>(l.current=!0,f.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),C.useMemo(()=>oA(o,n,f.current,!1),[o,n])}var vi=e=>typeof e=="string",lA=(e,t,n,r,i)=>vi(e)?(r&&t.watch.add(e),Ae(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),Ae(n,a))):(r&&(t.watchAll=!0),n);function cA(e){const t=ep(),{control:n=t.control,name:r,defaultValue:i,disabled:a,exact:o}=e||{},u=C.useRef(r);u.current=r,x1({disabled:a,subject:n._subjects.values,next:d=>{uA(u.current,d.name,o)&&f(Un(lA(u.current,n._names,d.values||n._formValues,!1,i)))}});const[l,f]=C.useState(n._getWatch(r,i));return C.useEffect(()=>n._removeUnmounted()),l}function SU(e){const t=ep(),{name:n,disabled:r,control:i=t.control,shouldUnregister:a}=e,o=rA(i._names.array,n),u=cA({control:i,name:n,defaultValue:Ae(i._formValues,n,Ae(i._defaultValues,n,e.defaultValue)),exact:!0}),l=EU({control:i,name:n,exact:!0}),f=C.useRef(i.register(n,{...e.rules,value:u,...wr(e.disabled)?{disabled:e.disabled}:{}})),d=C.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ae(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!Ae(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Ae(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Ae(l.validatingFields,n)},error:{enumerable:!0,get:()=>Ae(l.errors,n)}}),[l,n]),h=C.useMemo(()=>({name:n,value:u,...wr(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:p=>f.current.onChange({target:{value:nA(p),name:n},type:rh.CHANGE}),onBlur:()=>f.current.onBlur({target:{value:Ae(i._formValues,n),name:n},type:rh.BLUR}),ref:p=>{const g=Ae(i._fields,n);g&&p&&(g._f.ref={focus:()=>p.focus(),select:()=>p.select(),setCustomValidity:y=>p.setCustomValidity(y),reportValidity:()=>p.reportValidity()})}}),[n,i._formValues,r,l.disabled,u,i._fields]);return C.useEffect(()=>{const p=i._options.shouldUnregister||a,g=(y,b)=>{const D=Ae(i._fields,y);D&&D._f&&(D._f.mount=b)};if(g(n,!0),p){const y=Un(Ae(i._options.defaultValues,n));gt(i._defaultValues,n,y),Wt(Ae(i._formValues,n))&&gt(i._formValues,n,y)}return!o&&i.register(n),()=>{(o?p&&!i._state.action:p)?i.unregister(n):g(n,!1)}},[n,i,o,a]),C.useEffect(()=>{i._updateDisabledField({disabled:r,fields:i._fields,name:n})},[r,n,i]),C.useMemo(()=>({field:h,formState:l,fieldState:d}),[h,l,d])}const TU=e=>e.render(SU(e));var fA=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},$w=e=>({isOnSubmit:!e||e===Kr.onSubmit,isOnBlur:e===Kr.onBlur,isOnChange:e===Kr.onChange,isOnAll:e===Kr.all,isOnTouch:e===Kr.onTouched}),xw=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const nc=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const a=Ae(e,i);if(a){const{_f:o,...u}=a;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],i)&&!r)return!0;if(o.ref&&t(o.ref,o.name)&&!r)return!0;if(nc(u,t))break}else if(Gt(u)&&nc(u,t))break}}};var AU=(e,t,n)=>{const r=tc(Ae(e,n));return gt(r,"root",t[n]),gt(e,n,r),e},w1=e=>e.type==="file",gi=e=>typeof e=="function",ih=e=>{if(!b1)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},kd=e=>vi(e),D1=e=>e.type==="radio",ah=e=>e instanceof RegExp;const ww={value:!1,isValid:!1},Dw={value:!0,isValid:!0};var dA=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Wt(e[0].attributes.value)?Wt(e[0].value)||e[0].value===""?Dw:{value:e[0].value,isValid:!0}:Dw:ww}return ww};const Cw={isValid:!1,value:null};var hA=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Cw):Cw;function Ew(e,t,n="validate"){if(kd(e)||Array.isArray(e)&&e.every(kd)||wr(e)&&!e)return{type:n,message:kd(e)?e:"",ref:t}}var Ps=e=>Gt(e)&&!ah(e)?e:{value:e,message:""},Sw=async(e,t,n,r,i,a)=>{const{ref:o,refs:u,required:l,maxLength:f,minLength:d,min:h,max:p,pattern:g,validate:y,name:b,valueAsNumber:D,mount:$}=e._f,v=Ae(n,b);if(!$||t.has(b))return{};const w=u?u[0]:o,T=Z=>{i&&w.reportValidity&&(w.setCustomValidity(wr(Z)?"":Z||""),w.reportValidity())},E={},A=D1(o),M=Lc(o),S=A||M,z=(D||w1(o))&&Wt(o.value)&&Wt(v)||ih(o)&&o.value===""||v===""||Array.isArray(v)&&!v.length,j=fA.bind(null,b,r,E),O=(Z,R,V,W=qi.maxLength,L=qi.minLength)=>{const k=Z?R:V;E[b]={type:Z?W:L,message:k,ref:o,...j(Z?W:L,k)}};if(a?!Array.isArray(v)||!v.length:l&&(!S&&(z||Rn(v))||wr(v)&&!v||M&&!dA(u).isValid||A&&!hA(u).isValid)){const{value:Z,message:R}=kd(l)?{value:!!l,message:l}:Ps(l);if(Z&&(E[b]={type:qi.required,message:R,ref:w,...j(qi.required,R)},!r))return T(R),E}if(!z&&(!Rn(h)||!Rn(p))){let Z,R;const V=Ps(p),W=Ps(h);if(!Rn(v)&&!isNaN(v)){const L=o.valueAsNumber||v&&+v;Rn(V.value)||(Z=L>V.value),Rn(W.value)||(R=L<W.value)}else{const L=o.valueAsDate||new Date(v),k=U=>new Date(new Date().toDateString()+" "+U),_=o.type=="time",H=o.type=="week";vi(V.value)&&v&&(Z=_?k(v)>k(V.value):H?v>V.value:L>new Date(V.value)),vi(W.value)&&v&&(R=_?k(v)<k(W.value):H?v<W.value:L<new Date(W.value))}if((Z||R)&&(O(!!Z,V.message,W.message,qi.max,qi.min),!r))return T(E[b].message),E}if((f||d)&&!z&&(vi(v)||a&&Array.isArray(v))){const Z=Ps(f),R=Ps(d),V=!Rn(Z.value)&&v.length>+Z.value,W=!Rn(R.value)&&v.length<+R.value;if((V||W)&&(O(V,Z.message,R.message),!r))return T(E[b].message),E}if(g&&!z&&vi(v)){const{value:Z,message:R}=Ps(g);if(ah(Z)&&!v.match(Z)&&(E[b]={type:qi.pattern,message:R,ref:o,...j(qi.pattern,R)},!r))return T(R),E}if(y){if(gi(y)){const Z=await y(v,n),R=Ew(Z,w);if(R&&(E[b]={...R,...j(qi.validate,R.message)},!r))return T(R.message),E}else if(Gt(y)){let Z={};for(const R in y){if(!zn(Z)&&!r)break;const V=Ew(await y[R](v,n),w,R);V&&(Z={...V,...j(R,V.message)},T(V.message),r&&(E[b]=Z))}if(!zn(Z)&&(E[b]={ref:w,...Z},!r))return E}}return T(!0),E};function PU(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Wt(e)?r++:e[t[r++]];return e}function _U(e){for(const t in e)if(e.hasOwnProperty(t)&&!Wt(e[t]))return!1;return!0}function an(e,t){const n=Array.isArray(t)?t:$1(t)?[t]:iA(t),r=n.length===1?e:PU(e,n),i=n.length-1,a=n[i];return r&&delete r[a],i!==0&&(Gt(r)&&zn(r)||Array.isArray(r)&&_U(r))&&an(e,n.slice(0,-1)),e}var og=()=>{let e=[];return{get observers(){return e},next:i=>{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}},jb=e=>Rn(e)||!tA(e);function Fa(e,t){if(jb(e)||jb(t))return e===t;if(So(e)&&So(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const o=t[i];if(So(a)&&So(o)||Gt(a)&&Gt(o)||Array.isArray(a)&&Array.isArray(o)?!Fa(a,o):a!==o)return!1}}return!0}var pA=e=>e.type==="select-multiple",RU=e=>D1(e)||Lc(e),sg=e=>ih(e)&&e.isConnected,mA=e=>{for(const t in e)if(gi(e[t]))return!0;return!1};function oh(e,t={}){const n=Array.isArray(e);if(Gt(e)||n)for(const r in e)Array.isArray(e[r])||Gt(e[r])&&!mA(e[r])?(t[r]=Array.isArray(e[r])?[]:{},oh(e[r],t[r])):Rn(e[r])||(t[r]=!0);return t}function gA(e,t,n){const r=Array.isArray(e);if(Gt(e)||r)for(const i in e)Array.isArray(e[i])||Gt(e[i])&&!mA(e[i])?Wt(t)||jb(n[i])?n[i]=Array.isArray(e[i])?oh(e[i],[]):{...oh(e[i])}:gA(e[i],Rn(t)?{}:t[i],n[i]):n[i]=!Fa(e[i],t[i]);return n}var Tl=(e,t)=>gA(e,t,oh(t)),yA=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Wt(e)?e:t?e===""?NaN:e&&+e:n&&vi(e)?new Date(e):r?r(e):e;function ug(e){const t=e.ref;return w1(t)?t.files:D1(t)?hA(e.refs).value:pA(t)?[...t.selectedOptions].map(({value:n})=>n):Lc(t)?dA(e.refs).value:yA(Wt(t.value)?e.ref.value:t.value,e)}var OU=(e,t,n,r)=>{const i={};for(const a of e){const o=Ae(t,a);o&&gt(i,a,o._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},Al=e=>Wt(e)?e:ah(e)?e.source:Gt(e)?ah(e.value)?e.value.source:e.value:e;const Tw="AsyncFunction";var MU=e=>!!e&&!!e.validate&&!!(gi(e.validate)&&e.validate.constructor.name===Tw||Gt(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===Tw)),FU=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Aw(e,t,n){const r=Ae(e,n);if(r||$1(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),o=Ae(t,a),u=Ae(e,a);if(o&&!Array.isArray(o)&&n!==a)return{name:n};if(u&&u.type)return{name:a,error:u};i.pop()}return{name:n}}var kU=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,IU=(e,t)=>!Qh(Ae(e,t)).length&&an(e,t);const BU={mode:Kr.onSubmit,reValidateMode:Kr.onChange,shouldFocusError:!0};function LU(e={}){let t={...BU,...e},n={submitCount:0,isDirty:!1,isLoading:gi(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=Gt(t.defaultValues)||Gt(t.values)?Un(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:Un(i),o={action:!1,mount:!1,watch:!1},u={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,f=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={values:og(),array:og(),state:og()},p=$w(t.mode),g=$w(t.reValidateMode),y=t.criteriaMode===Kr.all,b=G=>Q=>{clearTimeout(f),f=setTimeout(G,Q)},D=async G=>{if(!t.disabled&&(d.isValid||G)){const Q=t.resolver?zn((await S()).errors):await j(r,!0);Q!==n.isValid&&h.state.next({isValid:Q})}},$=(G,Q)=>{!t.disabled&&(d.isValidating||d.validatingFields)&&((G||Array.from(u.mount)).forEach(re=>{re&&(Q?gt(n.validatingFields,re,Q):an(n.validatingFields,re))}),h.state.next({validatingFields:n.validatingFields,isValidating:!zn(n.validatingFields)}))},v=(G,Q=[],re,ve,Se=!0,Ce=!0)=>{if(ve&&re&&!t.disabled){if(o.action=!0,Ce&&Array.isArray(Ae(r,G))){const Fe=re(Ae(r,G),ve.argA,ve.argB);Se&&gt(r,G,Fe)}if(Ce&&Array.isArray(Ae(n.errors,G))){const Fe=re(Ae(n.errors,G),ve.argA,ve.argB);Se&&gt(n.errors,G,Fe),IU(n.errors,G)}if(d.touchedFields&&Ce&&Array.isArray(Ae(n.touchedFields,G))){const Fe=re(Ae(n.touchedFields,G),ve.argA,ve.argB);Se&&gt(n.touchedFields,G,Fe)}d.dirtyFields&&(n.dirtyFields=Tl(i,a)),h.state.next({name:G,isDirty:Z(G,Q),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else gt(a,G,Q)},w=(G,Q)=>{gt(n.errors,G,Q),h.state.next({errors:n.errors})},T=G=>{n.errors=G,h.state.next({errors:n.errors,isValid:!1})},E=(G,Q,re,ve)=>{const Se=Ae(r,G);if(Se){const Ce=Ae(a,G,Wt(re)?Ae(i,G):re);Wt(Ce)||ve&&ve.defaultChecked||Q?gt(a,G,Q?Ce:ug(Se._f)):W(G,Ce),o.mount&&D()}},A=(G,Q,re,ve,Se)=>{let Ce=!1,Fe=!1;const Ne={name:G};if(!t.disabled){const _t=!!(Ae(r,G)&&Ae(r,G)._f&&Ae(r,G)._f.disabled);if(!re||ve){d.isDirty&&(Fe=n.isDirty,n.isDirty=Ne.isDirty=Z(),Ce=Fe!==Ne.isDirty);const ut=_t||Fa(Ae(i,G),Q);Fe=!!(!_t&&Ae(n.dirtyFields,G)),ut||_t?an(n.dirtyFields,G):gt(n.dirtyFields,G,!0),Ne.dirtyFields=n.dirtyFields,Ce=Ce||d.dirtyFields&&Fe!==!ut}if(re){const ut=Ae(n.touchedFields,G);ut||(gt(n.touchedFields,G,re),Ne.touchedFields=n.touchedFields,Ce=Ce||d.touchedFields&&ut!==re)}Ce&&Se&&h.state.next(Ne)}return Ce?Ne:{}},M=(G,Q,re,ve)=>{const Se=Ae(n.errors,G),Ce=d.isValid&&wr(Q)&&n.isValid!==Q;if(t.delayError&&re?(l=b(()=>w(G,re)),l(t.delayError)):(clearTimeout(f),l=null,re?gt(n.errors,G,re):an(n.errors,G)),(re?!Fa(Se,re):Se)||!zn(ve)||Ce){const Fe={...ve,...Ce&&wr(Q)?{isValid:Q}:{},errors:n.errors,name:G};n={...n,...Fe},h.state.next(Fe)}},S=async G=>{$(G,!0);const Q=await t.resolver(a,t.context,OU(G||u.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return $(G),Q},z=async G=>{const{errors:Q}=await S(G);if(G)for(const re of G){const ve=Ae(Q,re);ve?gt(n.errors,re,ve):an(n.errors,re)}else n.errors=Q;return Q},j=async(G,Q,re={valid:!0})=>{for(const ve in G){const Se=G[ve];if(Se){const{_f:Ce,...Fe}=Se;if(Ce){const Ne=u.array.has(Ce.name),_t=Se._f&&MU(Se._f);_t&&d.validatingFields&&$([ve],!0);const ut=await Sw(Se,u.disabled,a,y,t.shouldUseNativeValidation&&!Q,Ne);if(_t&&d.validatingFields&&$([ve]),ut[Ce.name]&&(re.valid=!1,Q))break;!Q&&(Ae(ut,Ce.name)?Ne?AU(n.errors,ut,Ce.name):gt(n.errors,Ce.name,ut[Ce.name]):an(n.errors,Ce.name))}!zn(Fe)&&await j(Fe,Q,re)}}return re.valid},O=()=>{for(const G of u.unMount){const Q=Ae(r,G);Q&&(Q._f.refs?Q._f.refs.every(re=>!sg(re)):!sg(Q._f.ref))&&De(G)}u.unMount=new Set},Z=(G,Q)=>!t.disabled&&(G&&Q&&gt(a,G,Q),!Fa(N(),i)),R=(G,Q,re)=>lA(G,u,{...o.mount?a:Wt(Q)?i:vi(G)?{[G]:Q}:Q},re,Q),V=G=>Qh(Ae(o.mount?a:i,G,t.shouldUnregister?Ae(i,G,[]):[])),W=(G,Q,re={})=>{const ve=Ae(r,G);let Se=Q;if(ve){const Ce=ve._f;Ce&&(!Ce.disabled&&gt(a,G,yA(Q,Ce)),Se=ih(Ce.ref)&&Rn(Q)?"":Q,pA(Ce.ref)?[...Ce.ref.options].forEach(Fe=>Fe.selected=Se.includes(Fe.value)):Ce.refs?Lc(Ce.ref)?Ce.refs.length>1?Ce.refs.forEach(Fe=>(!Fe.defaultChecked||!Fe.disabled)&&(Fe.checked=Array.isArray(Se)?!!Se.find(Ne=>Ne===Fe.value):Se===Fe.value)):Ce.refs[0]&&(Ce.refs[0].checked=!!Se):Ce.refs.forEach(Fe=>Fe.checked=Fe.value===Se):w1(Ce.ref)?Ce.ref.value="":(Ce.ref.value=Se,Ce.ref.type||h.values.next({name:G,values:{...a}})))}(re.shouldDirty||re.shouldTouch)&&A(G,Se,re.shouldTouch,re.shouldDirty,!0),re.shouldValidate&&U(G)},L=(G,Q,re)=>{for(const ve in Q){const Se=Q[ve],Ce=`${G}.${ve}`,Fe=Ae(r,Ce);(u.array.has(G)||Gt(Se)||Fe&&!Fe._f)&&!So(Se)?L(Ce,Se,re):W(Ce,Se,re)}},k=(G,Q,re={})=>{const ve=Ae(r,G),Se=u.array.has(G),Ce=Un(Q);gt(a,G,Ce),Se?(h.array.next({name:G,values:{...a}}),(d.isDirty||d.dirtyFields)&&re.shouldDirty&&h.state.next({name:G,dirtyFields:Tl(i,a),isDirty:Z(G,Ce)})):ve&&!ve._f&&!Rn(Ce)?L(G,Ce,re):W(G,Ce,re),xw(G,u)&&h.state.next({...n}),h.values.next({name:o.mount?G:void 0,values:{...a}})},_=async G=>{o.mount=!0;const Q=G.target;let re=Q.name,ve=!0;const Se=Ae(r,re),Ce=()=>Q.type?ug(Se._f):nA(G),Fe=Ne=>{ve=Number.isNaN(Ne)||So(Ne)&&isNaN(Ne.getTime())||Fa(Ne,Ae(a,re,Ne))};if(Se){let Ne,_t;const ut=Ce(),Zt=G.type===rh.BLUR||G.type===rh.FOCUS_OUT,Xr=!FU(Se._f)&&!t.resolver&&!Ae(n.errors,re)&&!Se._f.deps||kU(Zt,Ae(n.touchedFields,re),n.isSubmitted,g,p),Rr=xw(re,u,Zt);gt(a,re,ut),Zt?(Se._f.onBlur&&Se._f.onBlur(G),l&&l(0)):Se._f.onChange&&Se._f.onChange(G);const mn=A(re,ut,Zt,!1),Qr=!zn(mn)||Rr;if(!Zt&&h.values.next({name:re,type:G.type,values:{...a}}),Xr)return d.isValid&&(t.mode==="onBlur"&&Zt?D():Zt||D()),Qr&&h.state.next({name:re,...Rr?{}:mn});if(!Zt&&Rr&&h.state.next({...n}),t.resolver){const{errors:ei}=await S([re]);if(Fe(ut),ve){const ti=Aw(n.errors,r,re),Or=Aw(ei,r,ti.name||re);Ne=Or.error,re=Or.name,_t=zn(ei)}}else $([re],!0),Ne=(await Sw(Se,u.disabled,a,y,t.shouldUseNativeValidation))[re],$([re]),Fe(ut),ve&&(Ne?_t=!1:d.isValid&&(_t=await j(r,!0)));ve&&(Se._f.deps&&U(Se._f.deps),M(re,_t,Ne,mn))}},H=(G,Q)=>{if(Ae(n.errors,Q)&&G.focus)return G.focus(),1},U=async(G,Q={})=>{let re,ve;const Se=tc(G);if(t.resolver){const Ce=await z(Wt(G)?G:Se);re=zn(Ce),ve=G?!Se.some(Fe=>Ae(Ce,Fe)):re}else G?(ve=(await Promise.all(Se.map(async Ce=>{const Fe=Ae(r,Ce);return await j(Fe&&Fe._f?{[Ce]:Fe}:Fe)}))).every(Boolean),!(!ve&&!n.isValid)&&D()):ve=re=await j(r);return h.state.next({...!vi(G)||d.isValid&&re!==n.isValid?{}:{name:G},...t.resolver||!G?{isValid:re}:{},errors:n.errors}),Q.shouldFocus&&!ve&&nc(r,H,G?Se:u.mount),ve},N=G=>{const Q={...o.mount?a:i};return Wt(G)?Q:vi(G)?Ae(Q,G):G.map(re=>Ae(Q,re))},ne=(G,Q)=>({invalid:!!Ae((Q||n).errors,G),isDirty:!!Ae((Q||n).dirtyFields,G),error:Ae((Q||n).errors,G),isValidating:!!Ae(n.validatingFields,G),isTouched:!!Ae((Q||n).touchedFields,G)}),ie=G=>{G&&tc(G).forEach(Q=>an(n.errors,Q)),h.state.next({errors:G?n.errors:{}})},ce=(G,Q,re)=>{const ve=(Ae(r,G,{_f:{}})._f||{}).ref,Se=Ae(n.errors,G)||{},{ref:Ce,message:Fe,type:Ne,..._t}=Se;gt(n.errors,G,{..._t,...Q,ref:ve}),h.state.next({name:G,errors:n.errors,isValid:!1}),re&&re.shouldFocus&&ve&&ve.focus&&ve.focus()},xe=(G,Q)=>gi(G)?h.values.subscribe({next:re=>G(R(void 0,Q),re)}):R(G,Q,!0),De=(G,Q={})=>{for(const re of G?tc(G):u.mount)u.mount.delete(re),u.array.delete(re),Q.keepValue||(an(r,re),an(a,re)),!Q.keepError&&an(n.errors,re),!Q.keepDirty&&an(n.dirtyFields,re),!Q.keepTouched&&an(n.touchedFields,re),!Q.keepIsValidating&&an(n.validatingFields,re),!t.shouldUnregister&&!Q.keepDefaultValue&&an(i,re);h.values.next({values:{...a}}),h.state.next({...n,...Q.keepDirty?{isDirty:Z()}:{}}),!Q.keepIsValid&&D()},Ee=({disabled:G,name:Q,field:re,fields:ve})=>{(wr(G)&&o.mount||G||u.disabled.has(Q))&&(G?u.disabled.add(Q):u.disabled.delete(Q),A(Q,ug(re?re._f:Ae(ve,Q)._f),!1,!1,!0))},J=(G,Q={})=>{let re=Ae(r,G);const ve=wr(Q.disabled)||wr(t.disabled);return gt(r,G,{...re||{},_f:{...re&&re._f?re._f:{ref:{name:G}},name:G,mount:!0,...Q}}),u.mount.add(G),re?Ee({field:re,disabled:wr(Q.disabled)?Q.disabled:t.disabled,name:G}):E(G,!0,Q.value),{...ve?{disabled:Q.disabled||t.disabled}:{},...t.progressive?{required:!!Q.required,min:Al(Q.min),max:Al(Q.max),minLength:Al(Q.minLength),maxLength:Al(Q.maxLength),pattern:Al(Q.pattern)}:{},name:G,onChange:_,onBlur:_,ref:Se=>{if(Se){J(G,Q),re=Ae(r,G);const Ce=Wt(Se.value)&&Se.querySelectorAll&&Se.querySelectorAll("input,select,textarea")[0]||Se,Fe=RU(Ce),Ne=re._f.refs||[];if(Fe?Ne.find(_t=>_t===Ce):Ce===re._f.ref)return;gt(r,G,{_f:{...re._f,...Fe?{refs:[...Ne.filter(sg),Ce,...Array.isArray(Ae(i,G))?[{}]:[]],ref:{type:Ce.type,name:G}}:{ref:Ce}}}),E(G,!1,void 0,Ce)}else re=Ae(r,G,{}),re._f&&(re._f.mount=!1),(t.shouldUnregister||Q.shouldUnregister)&&!(rA(u.array,G)&&o.action)&&u.unMount.add(G)}}},ye=()=>t.shouldFocusError&&nc(r,H,u.mount),we=G=>{wr(G)&&(h.state.next({disabled:G}),nc(r,(Q,re)=>{const ve=Ae(r,re);ve&&(Q.disabled=ve._f.disabled||G,Array.isArray(ve._f.refs)&&ve._f.refs.forEach(Se=>{Se.disabled=ve._f.disabled||G}))},0,!1))},me=(G,Q)=>async re=>{let ve;re&&(re.preventDefault&&re.preventDefault(),re.persist&&re.persist());let Se=Un(a);if(u.disabled.size)for(const Ce of u.disabled)gt(Se,Ce,void 0);if(h.state.next({isSubmitting:!0}),t.resolver){const{errors:Ce,values:Fe}=await S();n.errors=Ce,Se=Fe}else await j(r);if(an(n.errors,"root"),zn(n.errors)){h.state.next({errors:{}});try{await G(Se,re)}catch(Ce){ve=Ce}}else Q&&await Q({...n.errors},re),ye(),setTimeout(ye);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:zn(n.errors)&&!ve,submitCount:n.submitCount+1,errors:n.errors}),ve)throw ve},ue=(G,Q={})=>{Ae(r,G)&&(Wt(Q.defaultValue)?k(G,Un(Ae(i,G))):(k(G,Q.defaultValue),gt(i,G,Un(Q.defaultValue))),Q.keepTouched||an(n.touchedFields,G),Q.keepDirty||(an(n.dirtyFields,G),n.isDirty=Q.defaultValue?Z(G,Un(Ae(i,G))):Z()),Q.keepError||(an(n.errors,G),d.isValid&&D()),h.state.next({...n}))},Le=(G,Q={})=>{const re=G?Un(G):i,ve=Un(re),Se=zn(G),Ce=Se?i:ve;if(Q.keepDefaultValues||(i=re),!Q.keepValues){if(Q.keepDirtyValues){const Fe=new Set([...u.mount,...Object.keys(Tl(i,a))]);for(const Ne of Array.from(Fe))Ae(n.dirtyFields,Ne)?gt(Ce,Ne,Ae(a,Ne)):k(Ne,Ae(Ce,Ne))}else{if(b1&&Wt(G))for(const Fe of u.mount){const Ne=Ae(r,Fe);if(Ne&&Ne._f){const _t=Array.isArray(Ne._f.refs)?Ne._f.refs[0]:Ne._f.ref;if(ih(_t)){const ut=_t.closest("form");if(ut){ut.reset();break}}}}r={}}a=t.shouldUnregister?Q.keepDefaultValues?Un(i):{}:Un(Ce),h.array.next({values:{...Ce}}),h.values.next({values:{...Ce}})}u={mount:Q.keepDirtyValues?u.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!d.isValid||!!Q.keepIsValid||!!Q.keepDirtyValues,o.watch=!!t.shouldUnregister,h.state.next({submitCount:Q.keepSubmitCount?n.submitCount:0,isDirty:Se?!1:Q.keepDirty?n.isDirty:!!(Q.keepDefaultValues&&!Fa(G,i)),isSubmitted:Q.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:Se?{}:Q.keepDirtyValues?Q.keepDefaultValues&&a?Tl(i,a):n.dirtyFields:Q.keepDefaultValues&&G?Tl(i,G):Q.keepDirty?n.dirtyFields:{},touchedFields:Q.keepTouched?n.touchedFields:{},errors:Q.keepErrors?n.errors:{},isSubmitSuccessful:Q.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},nt=(G,Q)=>Le(gi(G)?G(a):G,Q);return{control:{register:J,unregister:De,getFieldState:ne,handleSubmit:me,setError:ce,_executeSchema:S,_getWatch:R,_getDirty:Z,_updateValid:D,_removeUnmounted:O,_updateFieldArray:v,_updateDisabledField:Ee,_getFieldArray:V,_reset:Le,_resetDefaultValues:()=>gi(t.defaultValues)&&t.defaultValues().then(G=>{nt(G,t.resetOptions),h.state.next({isLoading:!1})}),_updateFormState:G=>{n={...n,...G}},_disableForm:we,_subjects:h,_proxyFormState:d,_setErrors:T,get _fields(){return r},get _formValues(){return a},get _state(){return o},set _state(G){o=G},get _defaultValues(){return i},get _names(){return u},set _names(G){u=G},get _formState(){return n},set _formState(G){n=G},get _options(){return t},set _options(G){t={...t,...G}}},trigger:U,register:J,handleSubmit:me,watch:xe,setValue:k,getValues:N,reset:nt,resetField:ue,clearErrors:ie,unregister:De,setError:ce,setFocus:(G,Q={})=>{const re=Ae(r,G),ve=re&&re._f;if(ve){const Se=ve.refs?ve.refs[0]:ve.ref;Se.focus&&(Se.focus(),Q.shouldSelect&&gi(Se.select)&&Se.select())}},getFieldState:ne}}function VU(e={}){const t=C.useRef(void 0),n=C.useRef(void 0),[r,i]=C.useState({isDirty:!1,isValidating:!1,isLoading:gi(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:gi(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...LU(e),formState:r});const a=t.current.control;return a._options=e,x1({subject:a._subjects.state,next:o=>{sA(o,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),C.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),C.useEffect(()=>{if(a._proxyFormState.isDirty){const o=a._getDirty();o!==r.isDirty&&a._subjects.state.next({isDirty:o})}},[a,r.isDirty]),C.useEffect(()=>{e.values&&!Fa(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values,i(o=>({...o}))):a._resetDefaultValues()},[e.values,a]),C.useEffect(()=>{e.errors&&a._setErrors(e.errors)},[e.errors,a]),C.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),C.useEffect(()=>{e.shouldUnregister&&a._subjects.values.next({values:a._getWatch()})},[e.shouldUnregister,a]),t.current.formState=oA(r,a),t.current}const Ct=typeof document<"u"?C.useLayoutEffect:()=>{};function Ht(e){const t=C.useRef(null);return Ct(()=>{t.current=e},[e]),C.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function NU(e){let[t,n]=C.useState(e),r=C.useRef(null),i=Ht(()=>{if(!r.current)return;let o=r.current.next();if(o.done){r.current=null;return}t===o.value?i():n(o.value)});Ct(()=>{r.current&&i()});let a=Ht(o=>{r.current=o(t),i()});return[t,a]}const sh={prefix:String(Math.round(Math.random()*1e10)),current:0},vA=C.createContext(sh),jU=C.createContext(!1);let KU=!!(typeof window<"u"&&window.document&&window.document.createElement),lg=new WeakMap;function UU(e=!1){let t=C.useContext(vA),n=C.useRef(null);if(n.current===null&&!e){var r,i;let a=(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(a){let o=lg.get(a);o==null?lg.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==o.state&&(t.current=o.id,lg.delete(a))}n.current=++t.current}return n.current}function zU(e){let t=C.useContext(vA);t===sh&&!KU&&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 n=UU(!!e),r=t===sh&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function qU(e){let t=C.useId(),[n]=C.useState(C1()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${sh.prefix}`;return e||`${r}-${t}`}const WU=typeof C.useId=="function"?qU:zU;function HU(){return!1}function GU(){return!0}function YU(e){return()=>{}}function C1(){return typeof C.useSyncExternalStore=="function"?C.useSyncExternalStore(YU,HU,GU):C.useContext(jU)}let ZU=!!(typeof window<"u"&&window.document&&window.document.createElement),Oa=new Map;function Yn(e){let[t,n]=C.useState(e),r=C.useRef(null),i=WU(t),a=C.useCallback(o=>{r.current=o},[]);return ZU&&(Oa.has(i)&&!Oa.get(i).includes(a)?Oa.set(i,[...Oa.get(i),a]):Oa.set(i,[a])),Ct(()=>{let o=i;return()=>{Oa.delete(o)}},[i]),C.useEffect(()=>{let o=r.current;o&&(r.current=null,n(o))}),i}function JU(e,t){if(e===t)return e;let n=Oa.get(e);if(n)return n.forEach(i=>i(t)),t;let r=Oa.get(t);return r?(r.forEach(i=>i(e)),e):t}function uu(e=[]){let t=Yn(),[n,r]=NU(t),i=C.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Ct(i,[t,i,...e]),n}function Uo(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Tt=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},qa=e=>e&&"window"in e&&e.window===e?e:Tt(e).defaultView||window;function bA(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=bA(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function XU(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=bA(e))&&(r&&(r+=" "),r+=t);return r}function ft(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let a=t[i],o=r[i];typeof a=="function"&&typeof o=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=Uo(a,o):(i==="className"||i==="UNSAFE_className")&&typeof a=="string"&&typeof o=="string"?t[i]=XU(a,o):i==="id"&&a&&o?t.id=JU(a,o):t[i]=o!==void 0?o:a}}return t}const QU=new Set(["id"]),ez=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),tz=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),nz=/^(data-.*)$/;function ua(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,a={};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(QU.has(o)||n&&ez.has(o)||r&&tz.has(o)||i!=null&&i.has(o)||nz.test(o))&&(a[o]=e[o]);return a}function Ur(e){if(rz())e.focus({preventScroll:!0});else{let t=iz(e);e.focus(),az(t)}}let ud=null;function rz(){if(ud==null){ud=!1;try{document.createElement("div").focus({get preventScroll(){return ud=!0,!0}})}catch{}}return ud}function iz(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function az(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function tp(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function E1(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function la(e){let t=null;return()=>(t==null&&(t=e()),t)}const ia=la(function(){return E1(/^Mac/i)}),oz=la(function(){return E1(/^iPhone/i)}),$A=la(function(){return E1(/^iPad/i)||ia()&&navigator.maxTouchPoints>1}),Vc=la(function(){return oz()||$A()}),Id=la(function(){return ia()||Vc()}),S1=la(function(){return tp(/AppleWebKit/i)&&!xA()}),xA=la(function(){return tp(/Chrome/i)}),T1=la(function(){return tp(/Android/i)}),sz=la(function(){return tp(/Firefox/i)}),uz=C.createContext({isNative:!0,open:cz,useHref:e=>e});function np(){return C.useContext(uz)}function zo(e,t,n=!0){var r,i;let{metaKey:a,ctrlKey:o,altKey:u,shiftKey:l}=t;sz()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(ia()?a=!0:o=!0);let f=S1()&&ia()&&!$A()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:o,altKey:u,shiftKey:l}):new MouseEvent("click",{metaKey:a,ctrlKey:o,altKey:u,shiftKey:l,bubbles:!0,cancelable:!0});zo.isOpening=n,Ur(e),e.dispatchEvent(f),zo.isOpening=!1}zo.isOpening=!1;function lz(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function cz(e,t){lz(e,n=>zo(n,t))}function fz(e){let t=np();var n;const r=t.useHref((n=e==null?void 0:e.href)!==null&&n!==void 0?n:"");return{href:e!=null&&e.href?r:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}let Ms=new Map,Kb=new Set;function Pw(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=Ms.get(r.target);i||(i=new Set,Ms.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let i=Ms.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),Ms.delete(r.target)),Ms.size===0)){for(let a of Kb)a();Kb.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Pw():document.addEventListener("DOMContentLoaded",Pw));function wA(e){requestAnimationFrame(()=>{Ms.size===0?e():Kb.add(e)})}function Tu(){let e=C.useRef(new Map),t=C.useCallback((i,a,o,u)=>{let l=u!=null&&u.once?(...f)=>{e.current.delete(o),o(...f)}:o;e.current.set(o,{type:a,eventTarget:i,fn:l,options:u}),i.addEventListener(a,l,u)},[]),n=C.useCallback((i,a,o,u)=>{var l;let f=((l=e.current.get(o))===null||l===void 0?void 0:l.fn)||o;i.removeEventListener(a,f,u),e.current.delete(o)},[]),r=C.useCallback(()=>{e.current.forEach((i,a)=>{n(i.eventTarget,i.type,a,i.options)})},[n]);return C.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function lu(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=Yn(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function _w(e,t){const n=C.useRef(!0),r=C.useRef(null);C.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),C.useEffect(()=>{n.current?n.current=!1:(!r.current||t.some((i,a)=>!Object.is(i,r[a])))&&e(),r.current=t},t)}function Rw(e,t){const n=C.useRef(!0),r=C.useRef(null);Ct(()=>(n.current=!0,()=>{n.current=!1}),[]),Ct(()=>{n.current?n.current=!1:(!r.current||t.some((i,a)=>!Object.is(i,r[a])))&&e(),r.current=t},t)}function dz(){return typeof window.ResizeObserver<"u"}function Ow(e){const{ref:t,box:n,onResize:r}=e;C.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(dz()){const a=new window.ResizeObserver(o=>{o.length&&r()});return a.observe(i,{box:n}),()=>{i&&a.unobserve(i)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,n])}function DA(e,t){Ct(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function pc(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function rp(e,t){let n=e;for(pc(n,t)&&(n=n.parentElement);n&&!pc(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function hz(e,t){const n=[];for(;e&&e!==document.documentElement;)pc(e,t)&&n.push(e),e=e.parentElement;return n}let pz=0;const cg=new Map;function Nc(e){let[t,n]=C.useState();return Ct(()=>{if(!e)return;let r=cg.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${pz++}`;n(i);let a=document.createElement("div");a.id=i,a.style.display="none",a.textContent=e,document.body.appendChild(a),r={refCount:0,element:a},cg.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),cg.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function bi(e,t,n,r){let i=Ht(n),a=n==null;C.useEffect(()=>{if(a||!e.current)return;let o=e.current;return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[e,t,r,a,i])}function CA(e,t){let n=Mw(e,t,"left"),r=Mw(e,t,"top"),i=t.offsetWidth,a=t.offsetHeight,o=e.scrollLeft,u=e.scrollTop,{borderTopWidth:l,borderLeftWidth:f,scrollPaddingTop:d,scrollPaddingRight:h,scrollPaddingBottom:p,scrollPaddingLeft:g}=getComputedStyle(e),y=o+parseInt(f,10),b=u+parseInt(l,10),D=y+e.clientWidth,$=b+e.clientHeight,v=parseInt(d,10)||0,w=parseInt(p,10)||0,T=parseInt(h,10)||0,E=parseInt(g,10)||0;n<=o+E?o=n-parseInt(f,10)-E:n+i>D-T&&(o+=n+i-D+T),r<=b+v?u=r-parseInt(l,10)-v:r+a>$-w&&(u+=r+a-$+w),e.scrollLeft=o,e.scrollTop=u}function Mw(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function uh(e,t){if(e&&document.contains(e)){let o=document.scrollingElement||document.documentElement;if(window.getComputedStyle(o).overflow==="hidden"){let l=hz(e);for(let f of l)CA(f,e)}else{var n;let{left:l,top:f}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:d,top:h}=e.getBoundingClientRect();if(Math.abs(l-d)>1||Math.abs(f-h)>1){var r,i,a;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(a=e.scrollIntoView)===null||a===void 0||a.call(e,{block:"nearest"})}}}}function Ub(e){return e.mozInputSource===0&&e.isTrusted?!0:T1()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function mz(e){return!T1()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function EA(e,t){let n=C.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function A1(e,t,n){let r=C.useRef(t),i=Ht(()=>{n&&n(r.current)});C.useEffect(()=>{var a;let o=e==null||(a=e.current)===null||a===void 0?void 0:a.form;return o==null||o.addEventListener("reset",i),()=>{o==null||o.removeEventListener("reset",i)}},[e,i])}const gz="react-aria-clear-focus",yz="react-aria-focus",SA="react-aria-update-activedescendant";function Fs(e){return ia()?e.metaKey:e.ctrlKey}function ar(e,t,n){let[r,i]=C.useState(e||t),a=C.useRef(e!==void 0),o=e!==void 0;C.useEffect(()=>{let f=a.current;f!==o&&console.warn(`WARN: A component changed from ${f?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}.`),a.current=o},[o]);let u=o?e:r,l=C.useCallback((f,...d)=>{let h=(p,...g)=>{n&&(Object.is(u,p)||n(p,...g)),o||(u=p)};typeof f=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((g,...y)=>{let b=f(o?u:g,...y);return h(b,...d),o?g:b})):(o||i(f),h(f,...d))},[o,u,n]);return[u,l]}function cu(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function ld(e,t){let n=e,r=t.toString(),i=r.indexOf("."),a=i>=0?r.length-i:0;if(a>0){let o=Math.pow(10,a);n=Math.round(n*o)/o}return n}function Pl(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%r,a=ld(Math.abs(i)*2>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i,r);return isNaN(t)?!isNaN(n)&&a>n&&(a=Math.floor(ld(n/r,r))*r):a<t?a=t:!isNaN(n)&&a>n&&(a=t+Math.floor(ld((n-t)/r,r))*r),a=ld(a,r),a}let Is="default",zb="",Bd=new WeakMap;function qb(e){if(Vc()){if(Is==="default"){const t=Tt(e);zb=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Is="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(Bd.set(e,e.style.userSelect),e.style.userSelect="none")}function zl(e){if(Vc()){if(Is!=="disabled")return;Is="restoring",setTimeout(()=>{wA(()=>{if(Is==="restoring"){const t=Tt(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=zb||""),zb="",Is="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Bd.has(e)){let t=Bd.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Bd.delete(e)}}const P1=C.createContext({register:()=>{}});P1.displayName="PressResponderContext";function vz(e,t){return t.get?t.get.call(e):t.value}function TA(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function bz(e,t){var n=TA(e,t,"get");return vz(e,n)}function $z(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function jc(e,t,n){$z(e,t),t.set(e,n)}function xz(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function Fw(e,t,n){var r=TA(e,t,"set");return xz(e,r,n),n}function wz(e){let t=C.useContext(P1);if(t){let{register:n,...r}=t;e=ft(r,e),n()}return DA(t,e.ref),e}var cd=new WeakMap;class fd{continuePropagation(){Fw(this,cd,!1)}get shouldStopPropagation(){return bz(this,cd)}constructor(t,n,r,i){jc(this,cd,{writable:!0,value:void 0}),Fw(this,cd,!0);var a;let o=(a=i==null?void 0:i.target)!==null&&a!==void 0?a:r.currentTarget;const u=o==null?void 0:o.getBoundingClientRect();let l,f=0,d,h=null;r.clientX!=null&&r.clientY!=null&&(d=r.clientX,h=r.clientY),u&&(d!=null&&h!=null?(l=d-u.left,f=h-u.top):(l=u.width/2,f=u.height/2)),this.type=t,this.pointerType=n,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=f}}const kw=Symbol("linkClicked");function Kc(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,isDisabled:o,isPressed:u,preventFocusOnPress:l,shouldCancelOnPointerExit:f,allowTextSelectionOnPress:d,ref:h,...p}=wz(e),[g,y]=C.useState(!1),b=C.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:D,removeAllGlobalListeners:$}=Tu(),v=Ht((S,z)=>{let j=b.current;if(o||j.didFirePressStart)return!1;let O=!0;if(j.isTriggeringEvent=!0,r){let Z=new fd("pressstart",z,S);r(Z),O=Z.shouldStopPropagation}return n&&n(!0),j.isTriggeringEvent=!1,j.didFirePressStart=!0,y(!0),O}),w=Ht((S,z,j=!0)=>{let O=b.current;if(!O.didFirePressStart)return!1;O.ignoreClickAfterPress=!0,O.didFirePressStart=!1,O.isTriggeringEvent=!0;let Z=!0;if(i){let R=new fd("pressend",z,S);i(R),Z=R.shouldStopPropagation}if(n&&n(!1),y(!1),t&&j&&!o){let R=new fd("press",z,S);t(R),Z&&(Z=R.shouldStopPropagation)}return O.isTriggeringEvent=!1,Z}),T=Ht((S,z)=>{let j=b.current;if(o)return!1;if(a){j.isTriggeringEvent=!0;let O=new fd("pressup",z,S);return a(O),j.isTriggeringEvent=!1,O.shouldStopPropagation}return!0}),E=Ht(S=>{let z=b.current;z.isPressed&&z.target&&(z.isOverTarget&&z.pointerType!=null&&w(Wi(z.target,S),z.pointerType,!1),z.isPressed=!1,z.isOverTarget=!1,z.activePointerId=null,z.pointerType=null,$(),d||zl(z.target))}),A=Ht(S=>{f&&E(S)}),M=C.useMemo(()=>{let S=b.current,z={onKeyDown(O){if(fg(O.nativeEvent,O.currentTarget)&&O.currentTarget.contains(O.target)){var Z;Bw(O.target,O.key)&&O.preventDefault();let R=!0;if(!S.isPressed&&!O.repeat){S.target=O.currentTarget,S.isPressed=!0,R=v(O,"keyboard");let V=O.currentTarget,W=L=>{fg(L,V)&&!L.repeat&&V.contains(L.target)&&S.target&&T(Wi(S.target,L),"keyboard")};D(Tt(O.currentTarget),"keyup",Uo(W,j),!0)}R&&O.stopPropagation(),O.metaKey&&ia()&&((Z=S.metaKeyEvents)===null||Z===void 0||Z.set(O.key,O.nativeEvent))}else O.key==="Meta"&&(S.metaKeyEvents=new Map)},onClick(O){if(!(O&&!O.currentTarget.contains(O.target))&&O&&O.button===0&&!S.isTriggeringEvent&&!zo.isOpening){let Z=!0;if(o&&O.preventDefault(),!S.ignoreClickAfterPress&&!S.ignoreEmulatedMouseEvents&&!S.isPressed&&(S.pointerType==="virtual"||Ub(O.nativeEvent))){!o&&!l&&Ur(O.currentTarget);let R=v(O,"virtual"),V=T(O,"virtual"),W=w(O,"virtual");Z=R&&V&&W}S.ignoreEmulatedMouseEvents=!1,S.ignoreClickAfterPress=!1,Z&&O.stopPropagation()}}},j=O=>{var Z;if(S.isPressed&&S.target&&fg(O,S.target)){var R;Bw(O.target,O.key)&&O.preventDefault();let W=O.target;w(Wi(S.target,O),"keyboard",S.target.contains(W)),$(),O.key!=="Enter"&&_1(S.target)&&S.target.contains(W)&&!O[kw]&&(O[kw]=!0,zo(S.target,O,!1)),S.isPressed=!1,(R=S.metaKeyEvents)===null||R===void 0||R.delete(O.key)}else if(O.key==="Meta"&&(!((Z=S.metaKeyEvents)===null||Z===void 0)&&Z.size)){var V;let W=S.metaKeyEvents;S.metaKeyEvents=void 0;for(let L of W.values())(V=S.target)===null||V===void 0||V.dispatchEvent(new KeyboardEvent("keyup",L))}};if(typeof PointerEvent<"u"){z.onPointerDown=V=>{if(V.button!==0||!V.currentTarget.contains(V.target))return;if(mz(V.nativeEvent)){S.pointerType="virtual";return}hg(V.currentTarget)&&V.preventDefault(),S.pointerType=V.pointerType;let W=!0;if(!S.isPressed){S.isPressed=!0,S.isOverTarget=!0,S.activePointerId=V.pointerId,S.target=V.currentTarget,!o&&!l&&Ur(V.currentTarget),d||qb(S.target),W=v(V,S.pointerType);let L=V.target;"releasePointerCapture"in L&&L.releasePointerCapture(V.pointerId),D(Tt(V.currentTarget),"pointerup",O,!1),D(Tt(V.currentTarget),"pointercancel",R,!1)}W&&V.stopPropagation()},z.onMouseDown=V=>{V.currentTarget.contains(V.target)&&V.button===0&&(hg(V.currentTarget)&&V.preventDefault(),V.stopPropagation())},z.onPointerUp=V=>{!V.currentTarget.contains(V.target)||S.pointerType==="virtual"||V.button===0&&T(V,S.pointerType||V.pointerType)},z.onPointerEnter=V=>{V.pointerId===S.activePointerId&&S.target&&!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,v(Wi(S.target,V),S.pointerType))},z.onPointerLeave=V=>{V.pointerId===S.activePointerId&&S.target&&S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,w(Wi(S.target,V),S.pointerType,!1),A(V))};let O=V=>{V.pointerId===S.activePointerId&&S.isPressed&&V.button===0&&S.target&&(S.target.contains(V.target)&&S.pointerType!=null?w(Wi(S.target,V),S.pointerType):S.isOverTarget&&S.pointerType!=null&&w(Wi(S.target,V),S.pointerType,!1),S.isPressed=!1,S.isOverTarget=!1,S.activePointerId=null,S.pointerType=null,$(),d||zl(S.target),"ontouchend"in S.target&&V.pointerType!=="mouse"&&D(S.target,"touchend",Z,{once:!0}))},Z=V=>{AA(V.currentTarget)&&V.preventDefault()},R=V=>{E(V)};z.onDragStart=V=>{V.currentTarget.contains(V.target)&&E(V)}}else{z.onMouseDown=R=>{if(R.button!==0||!R.currentTarget.contains(R.target))return;if(hg(R.currentTarget)&&R.preventDefault(),S.ignoreEmulatedMouseEvents){R.stopPropagation();return}S.isPressed=!0,S.isOverTarget=!0,S.target=R.currentTarget,S.pointerType=Ub(R.nativeEvent)?"virtual":"mouse",!o&&!l&&Ur(R.currentTarget),v(R,S.pointerType)&&R.stopPropagation(),D(Tt(R.currentTarget),"mouseup",O,!1)},z.onMouseEnter=R=>{if(!R.currentTarget.contains(R.target))return;let V=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!0,V=v(R,S.pointerType)),V&&R.stopPropagation()},z.onMouseLeave=R=>{if(!R.currentTarget.contains(R.target))return;let V=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!1,V=w(R,S.pointerType,!1),A(R)),V&&R.stopPropagation()},z.onMouseUp=R=>{R.currentTarget.contains(R.target)&&!S.ignoreEmulatedMouseEvents&&R.button===0&&T(R,S.pointerType||"mouse")};let O=R=>{if(R.button===0){if(S.isPressed=!1,$(),S.ignoreEmulatedMouseEvents){S.ignoreEmulatedMouseEvents=!1;return}S.target&&dg(R,S.target)&&S.pointerType!=null?w(Wi(S.target,R),S.pointerType):S.target&&S.isOverTarget&&S.pointerType!=null&&w(Wi(S.target,R),S.pointerType,!1),S.isOverTarget=!1}};z.onTouchStart=R=>{if(!R.currentTarget.contains(R.target))return;let V=Dz(R.nativeEvent);if(!V)return;S.activePointerId=V.identifier,S.ignoreEmulatedMouseEvents=!0,S.isOverTarget=!0,S.isPressed=!0,S.target=R.currentTarget,S.pointerType="touch",!o&&!l&&Ur(R.currentTarget),d||qb(S.target),v(Ta(S.target,R),S.pointerType)&&R.stopPropagation(),D(qa(R.currentTarget),"scroll",Z,!0)},z.onTouchMove=R=>{if(!R.currentTarget.contains(R.target))return;if(!S.isPressed){R.stopPropagation();return}let V=Iw(R.nativeEvent,S.activePointerId),W=!0;V&&dg(V,R.currentTarget)?!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,W=v(Ta(S.target,R),S.pointerType)):S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,W=w(Ta(S.target,R),S.pointerType,!1),A(Ta(S.target,R))),W&&R.stopPropagation()},z.onTouchEnd=R=>{if(!R.currentTarget.contains(R.target))return;if(!S.isPressed){R.stopPropagation();return}let V=Iw(R.nativeEvent,S.activePointerId),W=!0;V&&dg(V,R.currentTarget)&&S.pointerType!=null?(T(Ta(S.target,R),S.pointerType),W=w(Ta(S.target,R),S.pointerType)):S.isOverTarget&&S.pointerType!=null&&(W=w(Ta(S.target,R),S.pointerType,!1)),W&&R.stopPropagation(),S.isPressed=!1,S.activePointerId=null,S.isOverTarget=!1,S.ignoreEmulatedMouseEvents=!0,S.target&&!d&&zl(S.target),$()},z.onTouchCancel=R=>{R.currentTarget.contains(R.target)&&(R.stopPropagation(),S.isPressed&&E(Ta(S.target,R)))};let Z=R=>{S.isPressed&&R.target.contains(S.target)&&E({currentTarget:S.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};z.onDragStart=R=>{R.currentTarget.contains(R.target)&&E(R)}}return z},[D,o,l,$,d,E,A,w,v,T]);return C.useEffect(()=>()=>{var S;d||zl((S=b.current.target)!==null&&S!==void 0?S:void 0)},[d]),{isPressed:u||g,pressProps:ft(p,M)}}function _1(e){return e.tagName==="A"&&e.hasAttribute("href")}function fg(e,t){const{key:n,code:r}=e,i=t,a=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof qa(i).HTMLInputElement&&!PA(i,n)||i instanceof qa(i).HTMLTextAreaElement||i.isContentEditable)&&!((a==="link"||!a&&_1(i))&&n!=="Enter")}function Dz(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Iw(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===t)return i}return null}function Ta(e,t){let n=0,r=0;return t.targetTouches&&t.targetTouches.length===1&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function Wi(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function Cz(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function Ez(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function dg(e,t){let n=t.getBoundingClientRect(),r=Cz(e);return Ez(n,r)}function hg(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function AA(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!_1(e)}function Bw(e,t){return e instanceof HTMLInputElement?!PA(e,t):AA(e)}const Sz=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function PA(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Sz.has(e.type)}function Tz({children:e}){let t=C.useMemo(()=>({register:()=>{}}),[]);return C.createElement(P1.Provider,{value:t},e)}class Az{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function _A(e){let t=C.useRef({isFocused:!1,observer:null});Ct(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Ht(r=>{e==null||e(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,a=o=>{t.current.isFocused=!1,i.disabled&&n(new Az("blur",o)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var o;(o=t.current.observer)===null||o===void 0||o.disconnect();let u=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:u})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:u}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function Pz(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const a=C.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),o=_A(a),u=C.useCallback(l=>{const f=Tt(l.target);l.target===l.currentTarget&&f.activeElement===l.target&&(n&&n(l),i&&i(!0),o(l))},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?u:void 0,onBlur:!t&&(r||i)?a:void 0}}}let Yo=null,_z=new Set,rc=new Map,qo=!1,Wb=!1;function ip(e,t){for(let n of _z)n(e,t)}function Rz(e){return!(e.metaKey||!ia()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function lh(e){qo=!0,Rz(e)&&(Yo="keyboard",ip("keyboard",e))}function Dr(e){Yo="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(qo=!0,ip("pointer",e))}function RA(e){Ub(e)&&(qo=!0,Yo="virtual")}function OA(e){e.target===window||e.target===document||(!qo&&!Wb&&(Yo="virtual",ip("virtual",e)),qo=!1,Wb=!1)}function MA(){qo=!1,Wb=!0}function Lw(e){if(typeof window>"u"||rc.get(qa(e)))return;const t=qa(e),n=Tt(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){qo=!0,r.apply(this,arguments)},n.addEventListener("keydown",lh,!0),n.addEventListener("keyup",lh,!0),n.addEventListener("click",RA,!0),t.addEventListener("focus",OA,!0),t.addEventListener("blur",MA,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Dr,!0),n.addEventListener("pointermove",Dr,!0),n.addEventListener("pointerup",Dr,!0)):(n.addEventListener("mousedown",Dr,!0),n.addEventListener("mousemove",Dr,!0),n.addEventListener("mouseup",Dr,!0)),t.addEventListener("beforeunload",()=>{FA(e)},{once:!0}),rc.set(t,{focus:r})}const FA=(e,t)=>{const n=qa(e),r=Tt(e);t&&r.removeEventListener("DOMContentLoaded",t),rc.has(n)&&(n.HTMLElement.prototype.focus=rc.get(n).focus,r.removeEventListener("keydown",lh,!0),r.removeEventListener("keyup",lh,!0),r.removeEventListener("click",RA,!0),n.removeEventListener("focus",OA,!0),n.removeEventListener("blur",MA,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Dr,!0),r.removeEventListener("pointermove",Dr,!0),r.removeEventListener("pointerup",Dr,!0)):(r.removeEventListener("mousedown",Dr,!0),r.removeEventListener("mousemove",Dr,!0),r.removeEventListener("mouseup",Dr,!0)),rc.delete(n))};function Oz(e){const t=Tt(e);let n;return t.readyState!=="loading"?Lw(e):(n=()=>{Lw(e)},t.addEventListener("DOMContentLoaded",n)),()=>FA(e,n)}typeof document<"u"&&Oz();function Vw(){return Yo!=="pointer"}function mc(){return Yo}function kA(e){Yo=e,ip(e,null)}function Au(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=C.useRef({isFocusWithin:!1}),o=C.useCallback(f=>{a.current.isFocusWithin&&!f.currentTarget.contains(f.relatedTarget)&&(a.current.isFocusWithin=!1,n&&n(f),i&&i(!1))},[n,i,a]),u=_A(o),l=C.useCallback(f=>{!a.current.isFocusWithin&&document.activeElement===f.target&&(r&&r(f),i&&i(!0),a.current.isFocusWithin=!0,u(f))},[r,i,u]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:o}}}let ch=!1,pg=0;function Hb(){ch=!0,setTimeout(()=>{ch=!1},50)}function Nw(e){e.pointerType==="touch"&&Hb()}function Mz(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Nw):document.addEventListener("touchend",Hb),pg++,()=>{pg--,!(pg>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Nw):document.removeEventListener("touchend",Hb))}}function Fz(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[a,o]=C.useState(!1),u=C.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;C.useEffect(Mz,[]);let{hoverProps:l,triggerHoverEnd:f}=C.useMemo(()=>{let d=(g,y)=>{if(u.pointerType=y,i||y==="touch"||u.isHovered||!g.currentTarget.contains(g.target))return;u.isHovered=!0;let b=g.currentTarget;u.target=b,t&&t({type:"hoverstart",target:b,pointerType:y}),n&&n(!0),o(!0)},h=(g,y)=>{if(u.pointerType="",u.target=null,y==="touch"||!u.isHovered)return;u.isHovered=!1;let b=g.currentTarget;r&&r({type:"hoverend",target:b,pointerType:y}),n&&n(!1),o(!1)},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=g=>{ch&&g.pointerType==="mouse"||d(g,g.pointerType)},p.onPointerLeave=g=>{!i&&g.currentTarget.contains(g.target)&&h(g,g.pointerType)}):(p.onTouchStart=()=>{u.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=g=>{!u.ignoreEmulatedMouseEvents&&!ch&&d(g,"mouse"),u.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=g=>{!i&&g.currentTarget.contains(g.target)&&h(g,"mouse")}),{hoverProps:p,triggerHoverEnd:h}},[t,n,r,i,u]);return C.useEffect(()=>{i&&f({currentTarget:u.target},u.pointerType)},[i]),{hoverProps:l,isHovered:a}}function kz(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,a=C.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),o=Ht(l=>{n&&dd(l,t)&&(i&&i(l),a.current.isPointerDown=!0)}),u=Ht(l=>{n&&n(l)});C.useEffect(()=>{let l=a.current;if(r)return;const f=t.current,d=Tt(f);if(typeof PointerEvent<"u"){let h=p=>{l.isPointerDown&&dd(p,t)&&u(p),l.isPointerDown=!1};return d.addEventListener("pointerdown",o,!0),d.addEventListener("pointerup",h,!0),()=>{d.removeEventListener("pointerdown",o,!0),d.removeEventListener("pointerup",h,!0)}}else{let h=g=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&dd(g,t)&&u(g),l.isPointerDown=!1},p=g=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&dd(g,t)&&u(g),l.isPointerDown=!1};return d.addEventListener("mousedown",o,!0),d.addEventListener("mouseup",h,!0),d.addEventListener("touchstart",o,!0),d.addEventListener("touchend",p,!0),()=>{d.removeEventListener("mousedown",o,!0),d.removeEventListener("mouseup",h,!0),d.removeEventListener("touchstart",o,!0),d.removeEventListener("touchend",p,!0)}}},[t,r,o,u])}function dd(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function jw(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(r),t&&n.stopPropagation()}}function IA(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:jw(e.onKeyDown),onKeyUp:jw(e.onKeyUp)}}}function BA(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=C.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:a,removeGlobalListener:o}=Tu(),u=Ht((d,h,p,g)=>{p===0&&g===0||(i.current.didMove||(i.current.didMove=!0,t==null||t({type:"movestart",pointerType:h,shiftKey:d.shiftKey,metaKey:d.metaKey,ctrlKey:d.ctrlKey,altKey:d.altKey})),n==null||n({type:"move",pointerType:h,deltaX:p,deltaY:g,shiftKey:d.shiftKey,metaKey:d.metaKey,ctrlKey:d.ctrlKey,altKey:d.altKey}))}),l=Ht((d,h)=>{zl(),i.current.didMove&&(r==null||r({type:"moveend",pointerType:h,shiftKey:d.shiftKey,metaKey:d.metaKey,ctrlKey:d.ctrlKey,altKey:d.altKey}))});return{moveProps:C.useMemo(()=>{let d={},h=()=>{qb(),i.current.didMove=!1};if(typeof PointerEvent>"u"){let g=$=>{if($.button===0){var v,w,T,E;u($,"mouse",$.pageX-((T=(v=i.current.lastPosition)===null||v===void 0?void 0:v.pageX)!==null&&T!==void 0?T:0),$.pageY-((E=(w=i.current.lastPosition)===null||w===void 0?void 0:w.pageY)!==null&&E!==void 0?E:0)),i.current.lastPosition={pageX:$.pageX,pageY:$.pageY}}},y=$=>{$.button===0&&(l($,"mouse"),o(window,"mousemove",g,!1),o(window,"mouseup",y,!1))};d.onMouseDown=$=>{$.button===0&&(h(),$.stopPropagation(),$.preventDefault(),i.current.lastPosition={pageX:$.pageX,pageY:$.pageY},a(window,"mousemove",g,!1),a(window,"mouseup",y,!1))};let b=$=>{let v=[...$.changedTouches].findIndex(({identifier:M})=>M===i.current.id);if(v>=0){var w,T;let{pageX:M,pageY:S}=$.changedTouches[v];var E,A;u($,"touch",M-((E=(w=i.current.lastPosition)===null||w===void 0?void 0:w.pageX)!==null&&E!==void 0?E:0),S-((A=(T=i.current.lastPosition)===null||T===void 0?void 0:T.pageY)!==null&&A!==void 0?A:0)),i.current.lastPosition={pageX:M,pageY:S}}},D=$=>{[...$.changedTouches].findIndex(({identifier:w})=>w===i.current.id)>=0&&(l($,"touch"),i.current.id=null,o(window,"touchmove",b),o(window,"touchend",D),o(window,"touchcancel",D))};d.onTouchStart=$=>{if($.changedTouches.length===0||i.current.id!=null)return;let{pageX:v,pageY:w,identifier:T}=$.changedTouches[0];h(),$.stopPropagation(),$.preventDefault(),i.current.lastPosition={pageX:v,pageY:w},i.current.id=T,a(window,"touchmove",b,!1),a(window,"touchend",D,!1),a(window,"touchcancel",D,!1)}}else{let g=b=>{if(b.pointerId===i.current.id){var D,$;let T=b.pointerType||"mouse";var v,w;u(b,T,b.pageX-((v=(D=i.current.lastPosition)===null||D===void 0?void 0:D.pageX)!==null&&v!==void 0?v:0),b.pageY-((w=($=i.current.lastPosition)===null||$===void 0?void 0:$.pageY)!==null&&w!==void 0?w:0)),i.current.lastPosition={pageX:b.pageX,pageY:b.pageY}}},y=b=>{if(b.pointerId===i.current.id){let D=b.pointerType||"mouse";l(b,D),i.current.id=null,o(window,"pointermove",g,!1),o(window,"pointerup",y,!1),o(window,"pointercancel",y,!1)}};d.onPointerDown=b=>{b.button===0&&i.current.id==null&&(h(),b.stopPropagation(),b.preventDefault(),i.current.lastPosition={pageX:b.pageX,pageY:b.pageY},i.current.id=b.pointerId,a(window,"pointermove",g,!1),a(window,"pointerup",y,!1),a(window,"pointercancel",y,!1))}}let p=(g,y,b)=>{h(),u(g,"keyboard",y,b),l(g,"keyboard")};return d.onKeyDown=g=>{switch(g.key){case"Left":case"ArrowLeft":g.preventDefault(),g.stopPropagation(),p(g,-1,0);break;case"Right":case"ArrowRight":g.preventDefault(),g.stopPropagation(),p(g,1,0);break;case"Up":case"ArrowUp":g.preventDefault(),g.stopPropagation(),p(g,0,-1);break;case"Down":case"ArrowDown":g.preventDefault(),g.stopPropagation(),p(g,0,1);break}},d},[i,a,o,u,l])}}const Iz=500;function LA(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:a=Iz,accessibilityDescription:o}=e;const u=C.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:f}=Tu(),{pressProps:d}=Kc({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n({...p,type:"longpressstart"}),u.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),i&&i({...p,type:"longpress"}),u.current=void 0},a),p.pointerType==="touch")){let g=y=>{y.preventDefault()};l(p.target,"contextmenu",g,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{f(p.target,"contextmenu",g)},30)},{once:!0})}},onPressEnd(p){u.current&&clearTimeout(u.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),h=Nc(i&&!t?o:void 0);return{longPressProps:ft(d,h)}}function Wo(e){const t=Tt(e);if(mc()==="virtual"){let n=t.activeElement;wA(()=>{t.activeElement===n&&e.isConnected&&Ur(e)})}else Ur(e)}function Bz(e){const t=qa(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:a}=e.ownerDocument.defaultView;let{display:o,visibility:u}=a(e);i=o!=="none"&&u!=="hidden"&&u!=="collapse"}return i}function Lz(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function VA(e,t){return e.nodeName!=="#comment"&&Bz(e)&&Lz(e,t)&&(!e.parentElement||VA(e.parentElement,e))}const Kw=C.createContext(null),Gb="react-aria-focus-scope-restore";let St=null;function Vz(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,a=C.useRef(null),o=C.useRef(null),u=C.useRef([]),{parentNode:l}=C.useContext(Kw)||{},f=C.useMemo(()=>new Zb({scopeRef:u}),[u]);Ct(()=>{let p=l||Xt.root;if(Xt.getTreeNode(p.scopeRef)&&St&&!fh(St,p.scopeRef)){let g=Xt.getTreeNode(St);g&&(p=g)}p.addChild(f),Xt.addNode(f)},[f,l]),Ct(()=>{let p=Xt.getTreeNode(u);p&&(p.contain=!!n)},[n]),Ct(()=>{var p;let g=(p=a.current)===null||p===void 0?void 0:p.nextSibling,y=[],b=D=>D.stopPropagation();for(;g&&g!==o.current;)y.push(g),g.addEventListener(Gb,b),g=g.nextSibling;return u.current=y,()=>{for(let D of y)D.removeEventListener(Gb,b)}},[t]),Wz(u,r,n),Uz(u,n),Hz(u,r,n),qz(u,i),C.useEffect(()=>{const p=Tt(u.current?u.current[0]:void 0).activeElement;let g=null;if(_r(p,u.current)){for(let y of Xt.traverse())y.scopeRef&&_r(p,y.scopeRef.current)&&(g=y);g===Xt.getTreeNode(u)&&(St=g.scopeRef)}},[u]),Ct(()=>()=>{var p,g,y;let b=(y=(g=Xt.getTreeNode(u))===null||g===void 0||(p=g.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&y!==void 0?y:null;(u===St||fh(u,St))&&(!b||Xt.getTreeNode(b))&&(St=b),Xt.removeTreeNode(u)},[u]);let d=C.useMemo(()=>Nz(u),[]),h=C.useMemo(()=>({focusManager:d,parentNode:f}),[f,d]);return C.createElement(Kw.Provider,{value:h},C.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,C.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:o}))}function Nz(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t,u=r||Tt(n[0]).activeElement,l=n[0].previousElementSibling,f=To(n),d=Wn(f,{tabbable:i,accept:o},n);d.currentNode=_r(u,n)?u:l;let h=d.nextNode();return!h&&a&&(d.currentNode=l,h=d.nextNode()),h&&qn(h,!0),h},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t,u=r||Tt(n[0]).activeElement,l=n[n.length-1].nextElementSibling,f=To(n),d=Wn(f,{tabbable:i,accept:o},n);d.currentNode=_r(u,n)?u:l;let h=d.previousNode();return!h&&a&&(d.currentNode=l,h=d.previousNode()),h&&qn(h,!0),h},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=To(n),o=Wn(a,{tabbable:r,accept:i},n);o.currentNode=n[0].previousElementSibling;let u=o.nextNode();return u&&qn(u,!0),u},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=To(n),o=Wn(a,{tabbable:r,accept:i},n);o.currentNode=n[n.length-1].nextElementSibling;let u=o.previousNode();return u&&qn(u,!0),u}}}const R1=["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"])'],jz=R1.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";R1.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Kz=R1.join(':not([hidden]):not([tabindex="-1"]),');function To(e){return e[0].parentElement}function ql(e){let t=Xt.getTreeNode(St);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function Uz(e,t){let n=C.useRef(void 0),r=C.useRef(void 0);Ct(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const a=Tt(i?i[0]:void 0);let o=f=>{if(f.key!=="Tab"||f.altKey||f.ctrlKey||f.metaKey||!ql(e)||f.isComposing)return;let d=a.activeElement,h=e.current;if(!h||!_r(d,h))return;let p=To(h),g=Wn(p,{tabbable:!0},h);if(!d)return;g.currentNode=d;let y=f.shiftKey?g.previousNode():g.nextNode();y||(g.currentNode=f.shiftKey?h[h.length-1].nextElementSibling:h[0].previousElementSibling,y=f.shiftKey?g.previousNode():g.nextNode()),f.preventDefault(),y&&qn(y,!0)},u=f=>{(!St||fh(St,e))&&_r(f.target,e.current)?(St=e,n.current=f.target):ql(e)&&!Ia(f.target,e)?n.current?n.current.focus():St&&St.current&&Yb(St.current):ql(e)&&(n.current=f.target)},l=f=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let d=mc();if(!((d==="virtual"||d===null)&&T1()&&xA())&&a.activeElement&&ql(e)&&!Ia(a.activeElement,e))if(St=e,a.body.contains(f.target)){var p;n.current=f.target,(p=n.current)===null||p===void 0||p.focus()}else St.current&&Yb(St.current)})};return a.addEventListener("keydown",o,!1),a.addEventListener("focusin",u,!1),i==null||i.forEach(f=>f.addEventListener("focusin",u,!1)),i==null||i.forEach(f=>f.addEventListener("focusout",l,!1)),()=>{a.removeEventListener("keydown",o,!1),a.removeEventListener("focusin",u,!1),i==null||i.forEach(f=>f.removeEventListener("focusin",u,!1)),i==null||i.forEach(f=>f.removeEventListener("focusout",l,!1))}},[e,t]),Ct(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function NA(e){return Ia(e)}function _r(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function Ia(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Xt.traverse(Xt.getTreeNode(t)))if(n&&_r(e,n.current))return!0;return!1}function zz(e){return Ia(e,St)}function fh(e,t){var n;let r=(n=Xt.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function qn(e,t=!1){if(e!=null&&!t)try{Wo(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function jA(e,t=!0){let n=e[0].previousElementSibling,r=To(e),i=Wn(r,{tabbable:t},e);i.currentNode=n;let a=i.nextNode();return t&&!a&&(r=To(e),i=Wn(r,{tabbable:!1},e),i.currentNode=n,a=i.nextNode()),a}function Yb(e,t=!0){qn(jA(e,t))}function qz(e,t){const n=C.useRef(t);C.useEffect(()=>{if(n.current){St=e;const r=Tt(e.current?e.current[0]:void 0);!_r(r.activeElement,St.current)&&e.current&&Yb(e.current)}n.current=!1},[e])}function Wz(e,t,n){Ct(()=>{if(t||n)return;let r=e.current;const i=Tt(r?r[0]:void 0);let a=o=>{let u=o.target;_r(u,e.current)?St=e:NA(u)||(St=null)};return i.addEventListener("focusin",a,!1),r==null||r.forEach(o=>o.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),r==null||r.forEach(o=>o.removeEventListener("focusin",a,!1))}},[e,t,n])}function Uw(e){let t=Xt.getTreeNode(St);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function Hz(e,t,n){const r=C.useRef(typeof document<"u"?Tt(e.current?e.current[0]:void 0).activeElement:null);Ct(()=>{let i=e.current;const a=Tt(i?i[0]:void 0);if(!t||n)return;let o=()=>{(!St||fh(St,e))&&_r(a.activeElement,e.current)&&(St=e)};return a.addEventListener("focusin",o,!1),i==null||i.forEach(u=>u.addEventListener("focusin",o,!1)),()=>{a.removeEventListener("focusin",o,!1),i==null||i.forEach(u=>u.removeEventListener("focusin",o,!1))}},[e,n]),Ct(()=>{const i=Tt(e.current?e.current[0]:void 0);if(!t)return;let a=o=>{if(o.key!=="Tab"||o.altKey||o.ctrlKey||o.metaKey||!ql(e)||o.isComposing)return;let u=i.activeElement;if(!Ia(u,e)||!Uw(e))return;let l=Xt.getTreeNode(e);if(!l)return;let f=l.nodeToRestore,d=Wn(i.body,{tabbable:!0});d.currentNode=u;let h=o.shiftKey?d.previousNode():d.nextNode();if((!f||!i.body.contains(f)||f===i.body)&&(f=void 0,l.nodeToRestore=void 0),(!h||!Ia(h,e))&&f){d.currentNode=f;do h=o.shiftKey?d.previousNode():d.nextNode();while(Ia(h,e));o.preventDefault(),o.stopPropagation(),h?qn(h,!0):NA(f)?qn(f,!0):u.blur()}};return n||i.addEventListener("keydown",a,!0),()=>{n||i.removeEventListener("keydown",a,!0)}},[e,t,n]),Ct(()=>{const i=Tt(e.current?e.current[0]:void 0);if(!t)return;let a=Xt.getTreeNode(e);if(a){var o;return a.nodeToRestore=(o=r.current)!==null&&o!==void 0?o:void 0,()=>{let u=Xt.getTreeNode(e);if(!u)return;let l=u.nodeToRestore;if(t&&l&&(i.activeElement&&Ia(i.activeElement,e)||i.activeElement===i.body&&Uw(e))){let f=Xt.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let d=f.getTreeNode(e);for(;d;){if(d.nodeToRestore&&d.nodeToRestore.isConnected){zw(d.nodeToRestore);return}d=d.parent}for(d=f.getTreeNode(e);d;){if(d.scopeRef&&d.scopeRef.current&&Xt.getTreeNode(d.scopeRef)){let h=jA(d.scopeRef.current,!0);zw(h);return}d=d.parent}}})}}}},[e,t])}function zw(e){e.dispatchEvent(new CustomEvent(Gb,{bubbles:!0,cancelable:!0}))&&qn(e)}function Wn(e,t,n){let r=t!=null&&t.tabbable?Kz:jz,i=Tt(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var o;return!(t==null||(o=t.from)===null||o===void 0)&&o.contains(a)?NodeFilter.FILTER_REJECT:a.matches(r)&&VA(a)&&(!n||_r(a,n))&&(!(t!=null&&t.accept)||t.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}function ap(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:u=t.accept}=n,l=i||Tt(r).activeElement,f=Wn(r,{tabbable:a,accept:u});r.contains(l)&&(f.currentNode=l);let d=f.nextNode();return!d&&o&&(f.currentNode=r,d=f.nextNode()),d&&qn(d,!0),d},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:u=t.accept}=n,l=i||Tt(r).activeElement,f=Wn(r,{tabbable:a,accept:u});if(r.contains(l))f.currentNode=l;else{let h=mg(f);return h&&qn(h,!0),h??null}let d=f.previousNode();if(!d&&o){f.currentNode=r;let h=mg(f);if(!h)return null;d=h}return d&&qn(d,!0),d??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,u=Wn(r,{tabbable:i,accept:a}).nextNode();return u&&qn(u,!0),u},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,o=Wn(r,{tabbable:i,accept:a}),u=mg(o);return u&&qn(u,!0),u??null}}}function mg(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class O1{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n??null);if(!i)return;let a=new Zb({scopeRef:t});i.addChild(a),a.parent=i,this.fastMap.set(t,a),r&&(a.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let a of this.traverse())a!==n&&n.nodeToRestore&&a.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&_r(a.nodeToRestore,n.scopeRef.current)&&(a.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(a=>r&&r.addChild(a))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new O1;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(t=i.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Zb({scopeRef:null}),this.fastMap.set(null,this.root)}}class Zb{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 Xt=new O1,Gz=C.createContext(null);function Yz(e){let t=C.useContext(Gz)||{};DA(t,e);let{ref:n,...r}=t;return r}function M1(e,t){let{focusProps:n}=Pz(e),{keyboardProps:r}=IA(e),i=ft(n,r),a=Yz(t),o=e.isDisabled?{}:a,u=C.useRef(e.autoFocus);return C.useEffect(()=>{u.current&&t.current&&Wo(t.current),u.current=!1},[t]),{focusableProps:ft({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},o)}}const Zz=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Jz=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Xz(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return Zz.has(n.script)}let t=e.split("-")[0];return Jz.has(t)}const Qz=Symbol.for("react-aria.i18n.locale");function KA(){let e=typeof window<"u"&&window[Qz]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Xz(e)?"rtl":"ltr"}}let Jb=KA(),Wl=new Set;function qw(){Jb=KA();for(let e of Wl)e(Jb)}function eq(){let e=C1(),[t,n]=C.useState(Jb);return C.useEffect(()=>(Wl.size===0&&window.addEventListener("languagechange",qw),Wl.add(n),()=>{Wl.delete(n),Wl.size===0&&window.removeEventListener("languagechange",qw)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const tq=C.createContext(null);function Sn(){let e=eq();return C.useContext(tq)||e}const nq=Symbol.for("react-aria.i18n.locale"),rq=Symbol.for("react-aria.i18n.strings");let _s;class Za{getStringForLocale(t,n){let i=this.getStringsForLocale(n)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${n} locale`);return i}getStringsForLocale(t){let n=this.strings[t];return n||(n=iq(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[nq];if(_s===void 0){let i=window[rq];if(!i)return null;_s={};for(let a in i)_s[a]=new Za({[n]:i[a]},n)}let r=_s==null?void 0:_s[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,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function iq(e,t,n="en-US"){if(t[e])return t[e];let r=aq(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function aq(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const Ww=new Map,Hw=new Map;class UA{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let a=this.locale+":"+r,o=Ww.get(a);o||(o=new Intl.PluralRules(this.locale,{type:r}),Ww.set(a,o));let u=o.select(t);return i=n[u]||n.other,typeof i=="function"?i():i}number(t){let n=Hw.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Hw.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const Gw=new WeakMap;function oq(e){let t=Gw.get(e);return t||(t=new Za(e),Gw.set(e,t)),t}function zA(e,t){return t&&Za.getGlobalDictionaryForPackage(t)||oq(e)}function Ri(e,t){let{locale:n}=Sn(),r=zA(e,t);return C.useMemo(()=>new UA(n,r),[n,r])}function Gs(e,t){return e-t*Math.floor(e/t)}const qA=1721426;function Ao(e,t,n,r){t=Uc(e,t);let i=t-1,a=-2;return n<=2?a=0:Ba(t)&&(a=-1),qA-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function Ba(e){return e%4===0&&(e%100!==0||e%400===0)}function Uc(e,t){return e==="BC"?1-t:t}function op(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const sq={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class In{fromJulianDay(t){let n=t,r=n-qA,i=Math.floor(r/146097),a=Gs(r,146097),o=Math.floor(a/36524),u=Gs(a,36524),l=Math.floor(u/1461),f=Gs(u,1461),d=Math.floor(f/365),h=i*400+o*100+l*4+d+(o!==4&&d!==4?1:0),[p,g]=op(h),y=n-Ao(p,g,1,1),b=2;n<Ao(p,g,3,1)?b=0:Ba(g)&&(b=1);let D=Math.floor(((y+b)*12+373)/367),$=n-Ao(p,g,D,1)+1;return new Yt(p,g,D,$)}toJulianDay(t){return Ao(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return sq[Ba(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Ba(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const uq={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function on(e,t){return t=Lt(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function Xb(e,t){return e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function WA(e,t){return on(e,sp(t))}const lq={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function F1(e,t,n){let r=e.calendar.toJulianDay(e),i=n?lq[n]:mq(t),a=Math.ceil(r+1-i)%7;return a<0&&(a+=7),a}function HA(e){return Ji(Date.now(),e)}function sp(e){return kn(HA(e))}function GA(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function YA(e,t){return Yw(e)-Yw(t)}function Yw(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let gg=null;function zc(){return gg==null&&(gg=new Intl.DateTimeFormat().resolvedOptions().timeZone),gg}function qc(e){return e.subtract({days:e.day-1})}function Qb(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function cq(e){return qc(e.subtract({months:e.month-1}))}function fq(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function dq(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function gc(e,t,n){let r=F1(e,t,n);return e.subtract({days:r})}function hq(e,t,n){return gc(e,t,n).add({days:6})}const Zw=new Map;function pq(e){if(Intl.Locale){let n=Zw.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&Zw.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function mq(e){let t=pq(e);return t&&uq[t]||0}function gq(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((F1(qc(e),t,n)+r)/7)}function k1(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function I1(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function fu(e){e=Lt(e,new In);let t=Uc(e.era,e.year);return ZA(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function ZA(e,t,n,r,i,a,o){let u=new Date;return u.setUTCHours(r,i,a,o),u.setUTCFullYear(e,t-1,n),u.getTime()}function e0(e,t){if(t==="UTC")return 0;if(e>0&&t===zc())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:a,minute:o,second:u}=JA(e,t);return ZA(n,r,i,a,o,u,0)-Math.floor(e/1e3)*1e3}const Jw=new Map;function JA(e,t){let n=Jw.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),Jw.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let a of r)a.type!=="literal"&&(i[a.type]=a.value);return{year:i.era==="BC"||i.era==="B"?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour==="24"?0:+i.hour,minute:+i.minute,second:+i.second}}const Xw=864e5;function yq(e,t,n,r){return(n===r?[n]:[n,r]).filter(a=>vq(e,t,a))}function vq(e,t,n){let r=JA(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function Zi(e,t,n="compatible"){let r=Hr(e);if(t==="UTC")return fu(r);if(t===zc()&&n==="compatible"){r=Lt(r,new In);let l=new Date,f=Uc(r.era,r.year);return l.setFullYear(f,r.month-1,r.day),l.setHours(r.hour,r.minute,r.second,r.millisecond),l.getTime()}let i=fu(r),a=e0(i-Xw,t),o=e0(i+Xw,t),u=yq(r,t,i-a,i-o);if(u.length===1)return u[0];if(u.length>1)switch(n){case"compatible":case"earlier":return u[0];case"later":return u[u.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-a,i-o);case"compatible":case"later":return Math.max(i-a,i-o);case"reject":throw new RangeError("No such absolute time found")}}function XA(e,t,n="compatible"){return new Date(Zi(e,t,n))}function Ji(e,t){let n=e0(e,t),r=new Date(e+n),i=r.getUTCFullYear(),a=r.getUTCMonth()+1,o=r.getUTCDate(),u=r.getUTCHours(),l=r.getUTCMinutes(),f=r.getUTCSeconds(),d=r.getUTCMilliseconds();return new bc(i<1?"BC":"AD",i<1?-i+1:i,a,o,t,n,u,l,f,d)}function kn(e){return new Yt(e.calendar,e.era,e.year,e.month,e.day)}function Hr(e,t){let n=0,r=0,i=0,a=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:a}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:a}=t),new vc(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function Qw(e){return new Wc(e.hour,e.minute,e.second,e.millisecond)}function Lt(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,Ho(r),r}function QA(e,t,n){if(e instanceof bc)return e.timeZone===t?e:$q(e,t);let r=Zi(e,t,n);return Ji(r,t)}function bq(e){let t=fu(e)-e.offset;return new Date(t)}function $q(e,t){let n=fu(e)-e.offset;return Lt(Ji(n,t),e.calendar)}const _l=36e5;function up(e,t){let n=e.copy(),r="hour"in n?rP(n,t):0;t0(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,n0(n),eP(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,xq(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){var a,o;let l=(a=(o=n.calendar).isInverseEra)===null||a===void 0?void 0:a.call(o,n);n.year=i,n.month=l?1:n.calendar.getMonthsInYear(n),n.day=l?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let u=n.calendar.getMonthsInYear(n);return n.month>u&&(n.month=u,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function t0(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function n0(e){for(;e.month<1;)t0(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,t0(e,1)}function xq(e){for(;e.day<1;)e.month--,n0(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,n0(e)}function eP(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Ho(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),eP(e)}function B1(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function tP(e,t){return up(e,B1(t))}function L1(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),Ho(n),n}function yc(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),nP(n),n}function wq(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=hd(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=hd(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=hd(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=hd(e.hour,24),t}function nP(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function hd(e,t){let n=e%t;return n<0&&(n+=t),n}function rP(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,wq(e)}function iP(e,t){let n=e.copy();return rP(n,t),n}function Dq(e,t){return iP(e,B1(t))}function V1(e,t,n,r){let i=e.copy();switch(t){case"era":{let u=e.calendar.getEras(),l=u.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=Xi(l,n,0,u.length-1,r==null?void 0:r.round),i.era=u[l],Ho(i);break}case"year":var a,o;!((a=(o=i.calendar).isInverseEra)===null||a===void 0)&&a.call(o,i)&&(n=-n),i.year=Xi(e.year,n,-1/0,9999,r==null?void 0:r.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=Xi(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=Xi(e.day,n,1,e.calendar.getDaysInMonth(e),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),Ho(i),i}function N1(e,t,n,r){let i=e.copy();switch(t){case"hour":{let a=e.hour,o=0,u=23;if((r==null?void 0:r.hourCycle)===12){let l=a>=12;o=l?12:0,u=l?23:11}i.hour=Xi(a,n,o,u,r==null?void 0:r.round);break}case"minute":i.minute=Xi(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=Xi(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=Xi(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function Xi(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let a=Math.abs(t);t>0?e=Math.ceil(e/a)*a:e=Math.floor(e/a)*a,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function aP(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let i=up(Hr(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=Zi(i,e.timeZone)}else n=fu(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=Ji(n,e.timeZone);return Lt(r,e.calendar)}function Cq(e,t){return aP(e,B1(t))}function Eq(e,t,n,r){switch(t){case"hour":{let i=0,a=23;if((r==null?void 0:r.hourCycle)===12){let y=e.hour>=12;i=y?12:0,a=y?23:11}let o=Hr(e),u=Lt(yc(o,{hour:i}),new In),l=[Zi(u,e.timeZone,"earlier"),Zi(u,e.timeZone,"later")].filter(y=>Ji(y,e.timeZone).day===u.day)[0],f=Lt(yc(o,{hour:a}),new In),d=[Zi(f,e.timeZone,"earlier"),Zi(f,e.timeZone,"later")].filter(y=>Ji(y,e.timeZone).day===f.day).pop(),h=fu(e)-e.offset,p=Math.floor(h/_l),g=h%_l;return h=Xi(p,n,Math.floor(l/_l),Math.floor(d/_l),r==null?void 0:r.round)*_l+g,Lt(Ji(h,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return N1(e,t,n,r);case"era":case"year":case"month":case"day":{let i=V1(Hr(e),t,n,r),a=Zi(i,e.timeZone);return Lt(Ji(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function Sq(e,t,n){let r=Hr(e),i=yc(L1(r,t),t);if(i.compare(r)===0)return e;let a=Zi(i,e.timeZone,n);return Lt(Ji(a,e.timeZone),e.calendar)}const Tq=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,Aq=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/;function Pq(e){let t=e.match(Tq);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new Yt(di(t[1],0,9999),di(t[2],1,12),1);return n.day=di(t[3],0,n.calendar.getDaysInMonth(n)),n}function _q(e){let t=e.match(Aq);if(!t)throw new Error("Invalid ISO 8601 date time string: "+e);let n=di(t[1],-9999,9999),r=n<1?"BC":"AD",i=new vc(r,n<1?-n+1:n,di(t[2],1,12),1,t[4]?di(t[4],0,23):0,t[5]?di(t[5],0,59):0,t[6]?di(t[6],0,59):0,t[7]?di(t[7],0,1/0)*1e3:0);return i.day=di(t[3],0,i.calendar.getDaysInMonth(i)),i}function di(e,t,n){let r=Number(e);if(r<t||r>n)throw new RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function oP(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function sP(e){let t=Lt(e,new In),n;return t.era==="BC"?n=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):n=String(t.year).padStart(4,"0"),`${n}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function uP(e){return`${sP(e)}T${oP(e)}`}function Rq(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function Oq(e){return`${uP(e)}${Rq(e.offset)}[${e.timeZone}]`}function j1(e){let t=typeof e[0]=="object"?e.shift():new In,n;if(typeof e[0]=="string")n=e.shift();else{let o=t.getEras();n=o[o.length-1]}let r=e.shift(),i=e.shift(),a=e.shift();return[t,n,r,i,a]}var Mq=new WeakMap;class Yt{copy(){return this.era?new Yt(this.calendar,this.era,this.year,this.month,this.day):new Yt(this.calendar,this.year,this.month,this.day)}add(t){return up(this,t)}subtract(t){return tP(this,t)}set(t){return L1(this,t)}cycle(t,n,r){return V1(this,t,n,r)}toDate(t){return XA(this,t)}toString(){return sP(this)}compare(t){return GA(this,t)}constructor(...t){jc(this,Mq,{writable:!0,value:void 0});let[n,r,i,a,o]=j1(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,Ho(this)}}var Fq=new WeakMap;class Wc{copy(){return new Wc(this.hour,this.minute,this.second,this.millisecond)}add(t){return iP(this,t)}subtract(t){return Dq(this,t)}set(t){return yc(this,t)}cycle(t,n,r){return N1(this,t,n,r)}toString(){return oP(this)}compare(t){return YA(this,t)}constructor(t=0,n=0,r=0,i=0){jc(this,Fq,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,nP(this)}}var kq=new WeakMap;class vc{copy(){return this.era?new vc(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new vc(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return up(this,t)}subtract(t){return tP(this,t)}set(t){return L1(yc(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return V1(this,t,n,r);default:return N1(this,t,n,r)}}toDate(t,n){return XA(this,t,n)}toString(){return uP(this)}compare(t){let n=GA(this,t);return n===0?YA(this,Hr(t)):n}constructor(...t){jc(this,kq,{writable:!0,value:void 0});let[n,r,i,a,o]=j1(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Ho(this)}}var Iq=new WeakMap;class bc{copy(){return this.era?new bc(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new bc(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return aP(this,t)}subtract(t){return Cq(this,t)}set(t,n){return Sq(this,t,n)}cycle(t,n,r){return Eq(this,t,n,r)}toDate(){return bq(this)}toString(){return Oq(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-QA(t,this.timeZone).toDate().getTime()}constructor(...t){jc(this,Iq,{writable:!0,value:void 0});let[n,r,i,a,o]=j1(t),u=t.shift(),l=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,this.timeZone=u,this.offset=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Ho(this)}}const Ys=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],Bq=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Ld=[1867,1911,1925,1988,2018],Ma=["meiji","taisho","showa","heisei","reiwa"];function eD(e){const t=Ys.findIndex(([n,r,i])=>e.year<n||e.year===n&&e.month<r||e.year===n&&e.month===r&&e.day<i);return t===-1?Ys.length-1:t===0?0:t-1}function yg(e){let t=Ld[Ma.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Yt(e.year+t,e.month,e.day)}class Lq extends In{fromJulianDay(t){let n=super.fromJulianDay(t),r=eD(n);return new Yt(this,Ma[r],n.year-Ld[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(yg(t))}balanceDate(t){let n=yg(t),r=eD(n);Ma[r]!==t.era&&(t.era=Ma[r],t.year=n.year-Ld[r]),this.constrainDate(t)}constrainDate(t){let n=Ma.indexOf(t.era),r=Bq[n];if(r!=null){let[i,a,o]=r,u=i-Ld[n];t.year=Math.max(1,Math.min(u,t.year)),t.year===u&&(t.month=Math.min(a,t.month),t.month===a&&(t.day=Math.min(o,t.day)))}if(t.year===1&&n>=0){let[,i,a]=Ys[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(a,t.day))}}getEras(){return Ma}getYearsInEra(t){let n=Ma.indexOf(t.era),r=Ys[n],i=Ys[n+1];if(i==null)return 9999-r[0]+1;let a=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&a++,a}getDaysInMonth(t){return super.getDaysInMonth(yg(t))}getMinimumMonthInYear(t){let n=tD(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=tD(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function tD(e){if(e.year===1){let t=Ma.indexOf(e.era);return Ys[t]}}const lP=-543;class Vq extends In{fromJulianDay(t){let n=super.fromJulianDay(t),r=Uc(n.era,n.year);return new Yt(this,r-lP,n.month,n.day)}toJulianDay(t){return super.toJulianDay(nD(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(nD(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function nD(e){let[t,n]=op(e.year+lP);return new Yt(t,n,e.month,e.day)}const dh=1911;function cP(e){return e.era==="minguo"?e.year+dh:1-e.year+dh}function rD(e){let t=e-dh;return t>0?["minguo",t]:["before_minguo",1-t]}class Nq extends In{fromJulianDay(t){let n=super.fromJulianDay(t),r=Uc(n.era,n.year),[i,a]=rD(r);return new Yt(this,i,a,n.month,n.day)}toJulianDay(t){return super.toJulianDay(iD(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=rD(cP(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(iD(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-dh}constructor(...t){super(...t),this.identifier="roc"}}function iD(e){let[t,n]=op(cP(e));return new Yt(t,n,e.month,e.day)}const aD=1948320,oD=[0,31,62,93,124,155,186,216,246,276,306,336];class jq{fromJulianDay(t){let n=t-aD,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),a=n-i,o=a<216?Math.floor(a/31):Math.floor((a-6)/30),u=a-oD[o]+1;return new Yt(this,r,o+1,u)}toJulianDay(t){let n=aD-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=oD[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||Gs(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const vg=78,sD=80;class Kq extends In{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-vg,i=t-Ao(n.era,n.year,1,1),a;i<sD?(r--,a=Ba(n.year-1)?31:30,i+=a+155+90+10):(a=Ba(n.year)?31:30,i-=sD);let o,u;if(i<a)o=1,u=i+1;else{let l=i-a;l<155?(o=Math.floor(l/31)+2,u=l%31+1):(l-=155,o=Math.floor(l/30)+7,u=l%30+1)}return new Yt(this,r,o,u)}toJulianDay(t){let n=t.year+vg,[r,i]=op(n),a,o;return Ba(i)?(a=31,o=Ao(r,i,3,21)):(a=30,o=Ao(r,i,3,22)),t.month===1?o+t.day-1:(o+=a+Math.min(t.month-2,5)*31,t.month>=8&&(o+=(t.month-7)*30),o+=t.day-1,o)}getDaysInMonth(t){return t.month===1&&Ba(t.year+vg)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const hh=1948440,uD=1948439,xr=1300,Rs=1600,Uq=460322;function ph(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function fP(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+ph(t,r,1,1)))/29.5)+1),a=n-ph(t,r,i,1)+1;return new Yt(e,r,i,a)}function lD(e){return(14+11*e)%30<11}class K1{fromJulianDay(t){return fP(this,hh,t)}toJulianDay(t){return ph(hh,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&lD(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return lD(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class zq extends K1{fromJulianDay(t){return fP(this,uD,t)}toJulianDay(t){return ph(uD,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const qq="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let r0,Zs;function Vd(e){return Uq+Zs[e-xr]}function Hl(e,t){let n=e-xr,r=1<<11-(t-1);return(r0[n]&r)===0?29:30}function cD(e,t){let n=Vd(e);for(let r=1;r<t;r++)n+=Hl(e,r);return n}function fD(e){return Zs[e+1-xr]-Zs[e-xr]}class Wq extends K1{fromJulianDay(t){let n=t-hh,r=Vd(xr),i=Vd(Rs);if(n<r||n>i)return super.fromJulianDay(t);{let a=xr-1,o=1,u=1;for(;u>0;){a++,u=n-Vd(a)+1;let l=fD(a);if(u===l){o=12;break}else if(u<l){let f=Hl(a,o);for(o=1;u>f;)u-=f,o++,f=Hl(a,o);break}}return new Yt(this,a,o,n-cD(a,o)+1)}}toJulianDay(t){return t.year<xr||t.year>Rs?super.toJulianDay(t):hh+cD(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<xr||t.year>Rs?super.getDaysInMonth(t):Hl(t.year,t.month)}getDaysInYear(t){return t.year<xr||t.year>Rs?super.getDaysInYear(t):fD(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",r0||(r0=new Uint16Array(Uint8Array.from(atob(qq),t=>t.charCodeAt(0)).buffer)),!Zs){Zs=new Uint32Array(Rs-xr+1);let t=0;for(let n=xr;n<=Rs;n++){Zs[n-xr]=t;for(let r=1;r<=12;r++)t+=Hl(n,r)}}}}const dD=347997,dP=1080,hP=24*dP,Hq=29,Gq=12*dP+793,Yq=Hq*hP+Gq;function Do(e){return Gs(e*7+1,19)<7}function Nd(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return Gs(3*(r+1),7)<3&&(r+=1),r}function Zq(e){let t=Nd(e-1),n=Nd(e);return Nd(e+1)-n===356?2:n-t===382?1:0}function ic(e){return Nd(e)+Zq(e)}function pP(e){return ic(e+1)-ic(e)}function Jq(e){let t=pP(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function pd(e,t){if(t>=6&&!Do(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=Jq(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?Do(e)?30:0:30}class Xq{fromJulianDay(t){let n=t-dD,r=n*hP/Yq,i=Math.floor((19*r+234)/235)+1,a=ic(i),o=Math.floor(n-a);for(;o<1;)i--,a=ic(i),o=Math.floor(n-a);let u=1,l=0;for(;l<o;)l+=pd(i,u),u++;u--,l-=pd(i,u);let f=o-l;return new Yt(this,i,u,f)}toJulianDay(t){let n=ic(t.year);for(let r=1;r<t.month;r++)n+=pd(t.year,r);return n+t.day+dD}getDaysInMonth(t){return pd(t.year,t.month)}getMonthsInYear(t){return Do(t.year)?13:12}getDaysInYear(t){return pP(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(Do(n.year)&&!Do(t.year)&&n.month>6?t.month--:!Do(n.year)&&Do(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const i0=1723856,hD=1824665,a0=5500;function mh(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function U1(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-mh(e,n,1,1))/30),i=t+1-mh(e,n,r,1);return[n,r,i]}function mP(e){return Math.floor(e%4/3)}function gP(e,t){return t%13!==0?30:mP(e)+5}class z1{fromJulianDay(t){let[n,r,i]=U1(i0,t),a="AM";return n<=0&&(a="AA",n+=a0),new Yt(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=a0),mh(i0,n,t.month,t.day)}getDaysInMonth(t){return gP(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+mP(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class Qq extends z1{fromJulianDay(t){let[n,r,i]=U1(i0,t);return n+=a0,new Yt(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class eW extends z1{fromJulianDay(t){let[n,r,i]=U1(hD,t),a="CE";return n<=0&&(a="BCE",n=1-n),new Yt(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),mh(hD,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),gP(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function tW(e){switch(e){case"buddhist":return new Vq;case"ethiopic":return new z1;case"ethioaa":return new Qq;case"coptic":return new eW;case"hebrew":return new Xq;case"indian":return new Kq;case"islamic-civil":return new K1;case"islamic-tbla":return new zq;case"islamic-umalqura":return new Wq;case"japanese":return new Lq;case"persian":return new jq;case"roc":return new Nq;case"gregory":default:return new In}}let bg=new Map;class Er{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),i=this.formatter.formatToParts(n);return[...r.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return iW()&&(this.resolvedHourCycle||(this.resolvedHourCycle=aW(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,n={}){this.formatter=yP(t,n),this.options=n}}const nW={true:{ja:"h11"},false:{}};function yP(e,t={}){if(typeof t.hour12=="boolean"&&rW()){t={...t};let i=nW[String(t.hour12)][e.split("-")[0]],a=t.hour12?"h12":"h23";t.hourCycle=i??a,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(bg.has(n))return bg.get(n);let r=new Intl.DateTimeFormat(e,t);return bg.set(n,r),r}let $g=null;function rW(){return $g==null&&($g=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),$g}let xg=null;function iW(){return xg==null&&(xg=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),xg}function aW(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=yP(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(a=>a.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(a=>a.type==="hour").value,10);if(r===0&&i===23)return"h23";if(r===24&&i===23)return"h24";if(r===0&&i===11)return"h11";if(r===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}function $i(e){e=EA(e??{},oW);let{locale:t}=Sn();return C.useMemo(()=>new Er(t,e),[t,e])}function oW(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(t[i]!==e[i])return!1;return!0}let wg=new Map,o0=!1;try{o0=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let gh=!1;try{gh=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const vP={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class bP{format(t){let n="";if(!o0&&this.options.signDisplay!=null?n=uW(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!gh){var r;let{unit:i,unitDisplay:a="short",locale:o}=this.resolvedOptions();if(!i)return n;let u=(r=vP[i])===null||r===void 0?void 0:r[a];n+=u[o]||u.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(n);return[...r.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!o0&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!gh&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=sW(t,n),this.options=n}}function sW(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!gh){var r;let{unit:o,unitDisplay:u="short"}=t;if(!o)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=vP[o])===null||r===void 0)&&r[u]))throw new Error(`Unsupported unit ${o} with unitDisplay = ${u}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((o,u)=>o[0]<u[0]?-1:1).join():"");if(wg.has(i))return wg.get(i);let a=new Intl.NumberFormat(e,t);return wg.set(i,a),a}function uW(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let i=e.format(-n),a=e.format(n),o=i.replace(a,"").replace(/\u200e|\u061C/,"");return[...o].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(a,"!!!").replace(o,"+").replace("!!!",a)}else return e.format(n)}}const lW=new RegExp("^.*\\(.*\\).*$"),cW=["latn","arab","hanidec","deva","beng"];class $P{parse(t){return Dg(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return Dg(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return Dg(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const pD=new Map;function Dg(e,t,n){let r=mD(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of cW)if(i!==r.options.numberingSystem){let a=mD(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(a.isValidPartialNumber(n))return a}}return r}function mD(e,t){let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():""),r=pD.get(n);return r||(r=new fW(e,t),pD.set(n,r)),r}class fW{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=md(n,this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let o=n.indexOf("-");n=n.replace("-","");let u=n.indexOf(".");u===-1&&(u=n.length),n=n.replace(".",""),u-2===0?n=`0.${n}`:u-2===-1?n=`0.0${n}`:u-2===-2?n="0.00":n=`${n.slice(0,u-2)}.${n.slice(u-2)}`,o>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var i,a;let o={...this.options,style:"decimal",minimumFractionDigits:Math.min(((i=this.options.minimumFractionDigits)!==null&&i!==void 0?i:0)+2,20),maximumFractionDigits:Math.min(((a=this.options.maximumFractionDigits)!==null&&a!==void 0?a:0)+2,20)};return new $P(this.locale,o).parse(new bP(this.locale,o).format(r))}return this.options.currencySign==="accounting"&&lW.test(t)&&(r=-1*r),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=md(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=md(t,"."," ")),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=md(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=hW(t,this.formatter,this.options,n);var r,i;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((i=this.options.maximumFractionDigits)!==null&&i!==void 0?i:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const gD=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),dW=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function hW(e,t,n,r){var i,a,o,u;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),f=l.formatToParts(-10000.111),d=l.formatToParts(10000.111),h=dW.map(j=>l.formatToParts(j));var p;let g=(p=(i=f.find(j=>j.type==="minusSign"))===null||i===void 0?void 0:i.value)!==null&&p!==void 0?p:"-",y=(a=d.find(j=>j.type==="plusSign"))===null||a===void 0?void 0:a.value;!y&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(y="+");let D=(o=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(j=>j.type==="decimal"))===null||o===void 0?void 0:o.value,$=(u=f.find(j=>j.type==="group"))===null||u===void 0?void 0:u.value,v=f.filter(j=>!gD.has(j.type)).map(j=>yD(j.value)),w=h.flatMap(j=>j.filter(O=>!gD.has(O.type)).map(O=>yD(O.value))),T=[...new Set([...v,...w])].sort((j,O)=>O.length-j.length),E=T.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${T.join("|")}|[\\p{White_Space}]`,"gu"),A=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),M=new Map(A.map((j,O)=>[j,O])),S=new RegExp(`[${A.join("")}]`,"g");return{minusSign:g,plusSign:y,decimal:D,group:$,literals:E,numeral:S,index:j=>String(M.get(j))}}function md(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function yD(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function pW(e={}){let{locale:t}=Sn();return C.useMemo(()=>new bP(t,e),[t,e])}let Cg=new Map;function xP(e){let{locale:t}=Sn(),n=t+(e?Object.entries(e).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(Cg.has(n))return Cg.get(n);let r=new Intl.Collator(t,e);return Cg.set(n,r),r}function wP(e){let t=xP({usage:"search",...e}),n=C.useCallback((a,o)=>o.length===0?!0:(a=a.normalize("NFC"),o=o.normalize("NFC"),t.compare(a.slice(0,o.length),o)===0),[t]),r=C.useCallback((a,o)=>o.length===0?!0:(a=a.normalize("NFC"),o=o.normalize("NFC"),t.compare(a.slice(-o.length),o)===0),[t]),i=C.useCallback((a,o)=>{if(o.length===0)return!0;a=a.normalize("NFC"),o=o.normalize("NFC");let u=0,l=o.length;for(;u+l<=a.length;u++){let f=a.slice(u,u+l);if(t.compare(o,f)===0)return!0}return!1},[t]);return C.useMemo(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}function mW(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:a,onPressEnd:o,onPressUp:u,onPressChange:l,preventFocusOnPress:f,allowFocusWhenDisabled:d,onClick:h,href:p,target:g,rel:y,type:b="button"}=e,D;n==="button"?D={type:b,disabled:r}:D={role:"button",tabIndex:r?void 0:0,href:n==="a"&&!r?p:void 0,target:n==="a"?g:void 0,type:n==="input"?b:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?y:void 0};let{pressProps:$,isPressed:v}=Kc({onPressStart:a,onPressEnd:o,onPressChange:l,onPress:i,onPressUp:u,isDisabled:r,preventFocusOnPress:f,ref:t}),{focusableProps:w}=M1(e,t);d&&(w.tabIndex=r?-1:w.tabIndex);let T=ft(w,$,ua(e,{labelable:!0}));return{isPressed:v,buttonProps:ft(D,T,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:E=>{h&&(h(E),console.warn("onClick is deprecated, please use onPress"))}})}}var DP={};DP={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var CP={};CP={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var EP={};EP={dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`};var SP={};SP={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var TP={};TP={dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`};var AP={};AP={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var PP={};PP={previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`};var _P={};_P={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`};var RP={};RP={dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`};var OP={};OP={dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`};var MP={};MP={dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`};var FP={};FP={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var kP={};kP={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`};var IP={};IP={dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`};var BP={};BP={dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`};var LP={};LP={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var VP={};VP={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var NP={};NP={dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`};var jP={};jP={dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`};var KP={};KP={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var UP={};UP={dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`};var zP={};zP={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`};var qP={};qP={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var WP={};WP={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var HP={};HP={dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`};var GP={};GP={dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`};var YP={};YP={dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`};var ZP={};ZP={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`};var JP={};JP={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`};var XP={};XP={dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`};var QP={};QP={dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`};var e6={};e6={dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`};var t6={};t6={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`};var n6={};n6={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`};var Hc={};Hc={"ar-AE":DP,"bg-BG":CP,"cs-CZ":EP,"da-DK":SP,"de-DE":TP,"el-GR":AP,"en-US":PP,"es-ES":_P,"et-EE":RP,"fi-FI":OP,"fr-FR":MP,"he-IL":FP,"hr-HR":kP,"hu-HU":IP,"it-IT":BP,"ja-JP":LP,"ko-KR":VP,"lt-LT":NP,"lv-LV":jP,"nb-NO":KP,"nl-NL":UP,"pl-PL":zP,"pt-BR":qP,"pt-PT":WP,"ro-RO":HP,"ru-RU":GP,"sk-SK":YP,"sl-SI":ZP,"sr-SP":JP,"sv-SE":XP,"tr-TR":QP,"uk-UA":e6,"zh-CN":t6,"zh-TW":n6};function r6(e){return e&&e.__esModule?e.default:e}const q1=new WeakMap;function $c(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function gW(e){let t=Ri(r6(Hc),"@react-aria/calendar"),n,r;var i;"highlightedRange"in e?{start:n,end:r}=e.highlightedRange||{}:n=r=(i=e.value)!==null&&i!==void 0?i:void 0;let a=$i({weekday:"long",month:"long",year:"numeric",day:"numeric",era:$c(n)||$c(r),timeZone:e.timeZone}),o="anchorDate"in e?e.anchorDate:null;return C.useMemo(()=>{if(!o&&n&&r)if(on(n,r)){let u=a.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:u})}else{let u=u0(a,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:u})}return""},[n,r,o,e.timeZone,t,a])}function s0(e,t,n,r){let i=Ri(r6(Hc),"@react-aria/calendar"),a=$c(e)||$c(t),o=$i({month:"long",year:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n}),u=$i({month:"long",year:"numeric",day:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n});return C.useMemo(()=>{if(on(e,qc(e))){if(on(t,Qb(e)))return o.format(e.toDate(n));if(on(t,Qb(t)))return r?u0(o,i,e,t,n):o.formatRange(e.toDate(n),t.toDate(n))}return r?u0(u,i,e,t,n):u.formatRange(e.toDate(n),t.toDate(n))},[e,t,o,u,i,n,r])}function u0(e,t,n,r,i){let a=e.formatRangeToParts(n.toDate(i),r.toDate(i)),o=-1;for(let f=0;f<a.length;f++){let d=a[f];if(d.source==="shared"&&d.type==="literal")o=f;else if(d.source==="endRange")break}let u="",l="";for(let f=0;f<a.length;f++)f<o?u+=a[f].value:f>o&&(l+=a[f].value);return t.format("dateRange",{startDate:u,endDate:l})}const i6=7e3;let br=null;function Js(e,t="assertive",n=i6){br?br.announce(e,t,n):(br=new vW,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?br.announce(e,t,n):setTimeout(()=>{br!=null&&br.isAttached()&&(br==null||br.announce(e,t,n))},100))}function yW(e){br&&br.clear(e)}class vW{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=i6){var i,a;if(!this.node)return;let o=document.createElement("div");typeof t=="object"?(o.setAttribute("role","img"),o.setAttribute("aria-labelledby",t["aria-labelledby"])):o.textContent=t,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(o):(a=this.politeLog)===null||a===void 0||a.appendChild(o),t!==""&&setTimeout(()=>{o.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 bW(e){return e&&e.__esModule?e.default:e}function a6(e,t){let n=Ri(bW(Hc),"@react-aria/calendar"),r=ua(e),i=s0(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),a=s0(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);_w(()=>{t.isFocused||Js(a)},[a]);let o=gW(t);_w(()=>{o&&Js(o,"polite",4e3)},[o]);let u=uu([!!e.errorMessage,e.isInvalid,e.validationState]);q1.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:u,selectedDateDescription:o});let[l,f]=C.useState(!1),d=e.isDisabled||t.isNextVisibleRangeInvalid();d&&l&&(f(!1),t.setFocused(!0));let[h,p]=C.useState(!1),g=e.isDisabled||t.isPreviousVisibleRangeInvalid();g&&h&&(p(!1),t.setFocused(!0));let y=lu({id:e.id,"aria-label":[e["aria-label"],a].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:ft(r,y,{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:d,onFocusChange:f},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:g,onFocusChange:p},errorMessageProps:{id:u},title:i}}function $W(e,t){return a6(e,t)}function xW(e,t,n){let r=a6(e,t),i=C.useRef(!1),a=C.useRef(typeof window<"u"?window:null);return bi(a,"pointerdown",u=>{i.current=u.width===0&&u.height===0}),bi(a,"pointerup",u=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let l=u.target;n.current&&n.current.contains(document.activeElement)&&(!n.current.contains(l)||!l.closest('button, [role="button"]'))&&t.selectFocusedDate()}),r.calendarProps.onBlur=u=>{n.current&&(!u.relatedTarget||!n.current.contains(u.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},bi(n,"touchmove",u=>{t.isDragging&&u.preventDefault()},{passive:!1,capture:!0}),r}function wW(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end,firstDayOfWeek:i}=e,{direction:a}=Sn(),o=y=>{switch(y.key){case"Enter":case" ":y.preventDefault(),t.selectFocusedDate();break;case"PageUp":y.preventDefault(),y.stopPropagation(),t.focusPreviousSection(y.shiftKey);break;case"PageDown":y.preventDefault(),y.stopPropagation(),t.focusNextSection(y.shiftKey);break;case"End":y.preventDefault(),y.stopPropagation(),t.focusSectionEnd();break;case"Home":y.preventDefault(),y.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":y.preventDefault(),y.stopPropagation(),a==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":y.preventDefault(),y.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":y.preventDefault(),y.stopPropagation(),a==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":y.preventDefault(),y.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(y.preventDefault(),t.setAnchorDate(null));break}},u=s0(n,r,t.timeZone,!0),{ariaLabel:l,ariaLabelledBy:f}=q1.get(t),d=lu({"aria-label":[l,u].filter(Boolean).join(", "),"aria-labelledby":f}),h=$i({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:p}=Sn(),g=C.useMemo(()=>{let y=gc(sp(t.timeZone),p,i);return[...new Array(7).keys()].map(b=>{let $=y.add({days:b}).toDate(t.timeZone);return h.format($)})},[p,t.timeZone,h,i]);return{gridProps:ft(d,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:o,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:g}}function DW(e){return e&&e.__esModule?e.default:e}function CW(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:a,selectedDateDescription:o}=q1.get(t),u=Ri(DW(Hc),"@react-aria/calendar"),l=$i({weekday:"long",day:"numeric",month:"long",year:"numeric",era:$c(r),timeZone:t.timeZone}),f=t.isSelected(r),d=t.isCellFocused(r);i=i||t.isCellDisabled(r);let h=t.isCellUnavailable(r),p=!i&&!h,g=t.isValueInvalid&&!!("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:t.value&&on(t.value,r));g&&(f=!0),r=EA(r,Xb);let y=C.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),b=WA(r,t.timeZone),D=C.useMemo(()=>{let O="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(on(r,t.value.start)||on(r,t.value.end))&&(O=o+", "),O+=l.format(y),b?O=u.format(f?"todayDateSelected":"todayDate",{date:O}):f&&(O=u.format("dateSelected",{date:O})),t.minValue&&on(r,t.minValue)?O+=", "+u.format("minimumDate"):t.maxValue&&on(r,t.maxValue)&&(O+=", "+u.format("maximumDate")),O},[l,y,u,f,b,r,t,o]),$="";"anchorDate"in t&&d&&!t.isReadOnly&&p&&(t.anchorDate?$=u.format("finishRangeSelectionPrompt"):$=u.format("startRangeSelectionPrompt"));let v=Nc($),w=C.useRef(!1),T=C.useRef(!1),E=C.useRef(void 0),{pressProps:A,isPressed:M}=Kc({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!p||t.isReadOnly,onPressStart(O){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(O.pointerType==="mouse"||O.pointerType==="touch")){if(t.highlightedRange&&!g){if(on(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),T.current=!0;return}else if(on(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),T.current=!0;return}}let Z=()=>{t.setDragging(!0),E.current=void 0,t.selectDate(r),t.setFocusedDate(r),w.current=!0};O.pointerType==="touch"?E.current=setTimeout(Z,200):Z()}},onPressEnd(){T.current=!1,w.current=!1,clearTimeout(E.current),E.current=void 0},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(O){if(!t.isReadOnly&&("anchorDate"in t&&E.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(T.current)t.setAnchorDate(r);else if(t.anchorDate&&!w.current)t.selectDate(r),t.setFocusedDate(r);else if(O.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let Z=r.add({days:1});t.isInvalid(Z)&&(Z=r.subtract({days:1})),t.isInvalid(Z)||t.setFocusedDate(Z)}else O.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),S;i||(S=on(r,t.focusedDate)?0:-1),C.useEffect(()=>{d&&n.current&&(Ur(n.current),mc()!=="pointer"&&document.activeElement===n.current&&uh(n.current,{containingElement:rp(n.current)}))},[d,n]);let z=$i({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),j=C.useMemo(()=>z.formatToParts(y).find(O=>O.type==="day").value,[z,y]);return{cellProps:{role:"gridcell","aria-disabled":!p||void 0,"aria-selected":f||void 0,"aria-invalid":g||void 0},buttonProps:ft(A,{onFocus(){i||t.setFocusedDate(r)},tabIndex:S,role:"button","aria-disabled":!p||void 0,"aria-label":D,"aria-invalid":g||void 0,"aria-describedby":[g?a:void 0,v["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(O){"highlightDate"in t&&(O.pointerType!=="touch"||t.isDragging)&&p&&t.highlightDate(r)},onPointerDown(O){"releasePointerCapture"in O.target&&O.target.releasePointerCapture(O.pointerId)},onContextMenu(O){O.preventDefault()}}),isPressed:M,isFocused:d,isSelected:f,isDisabled:i,isUnavailable:h,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:g,formattedDate:j}}const lp={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},o6={...lp,customError:!0,valid:!1},Co={isInvalid:!1,validationDetails:lp,validationErrors:[]},EW=C.createContext({}),du="__formValidationState"+Date.now();function Gc(e){if(e[du]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[du];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return SW(e)}function SW(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:a,validate:o,validationBehavior:u="aria"}=e;n&&(t||(t=n==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:o6}:null,f=C.useMemo(()=>{if(!o||i==null)return null;let j=TW(o,i);return vD(j)},[o,i]);a!=null&&a.validationDetails.valid&&(a=void 0);let d=C.useContext(EW),h=C.useMemo(()=>r?Array.isArray(r)?r.flatMap(j=>l0(d[j])):l0(d[r]):[],[d,r]),[p,g]=C.useState(d),[y,b]=C.useState(!1);d!==p&&(g(d),b(!1));let D=C.useMemo(()=>vD(y?[]:h),[y,h]),$=C.useRef(Co),[v,w]=C.useState(Co),T=C.useRef(Co),E=()=>{if(!A)return;M(!1);let j=f||a||$.current;Eg(j,T.current)||(T.current=j,w(j))},[A,M]=C.useState(!1);return C.useEffect(E),{realtimeValidation:l||D||f||a||Co,displayValidation:u==="native"?l||D||v:l||D||f||a||v,updateValidation(j){u==="aria"&&!Eg(v,j)?w(j):$.current=j},resetValidation(){let j=Co;Eg(j,T.current)||(T.current=j,w(j)),u==="native"&&M(!1),b(!0)},commitValidation(){u==="native"&&M(!0),b(!0)}}}function l0(e){return e?Array.isArray(e)?e:[e]:[]}function TW(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return l0(n)}return[]}function vD(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:o6}:null}function Eg(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function yh(...e){let t=new Set,n=!1,r={...lp};for(let o of e){var i,a;for(let u of o.validationErrors)t.add(u);n||(n=o.isInvalid);for(let u in r)(i=r)[a=u]||(i[a]=o.validationDetails[u])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function s6(e,t,n){let{validationBehavior:r,focus:i}=e;Ct(()=>{if(r==="native"&&(n!=null&&n.current)&&!n.current.disabled){let l=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(l),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(PW(n.current))}});let a=Ht(()=>{t.resetValidation()}),o=Ht(l=>{var f;t.displayValidation.isInvalid||t.commitValidation();let d=n==null||(f=n.current)===null||f===void 0?void 0:f.form;if(!l.defaultPrevented&&n&&d&&_W(d)===n.current){var h;i?i():(h=n.current)===null||h===void 0||h.focus(),kA("keyboard")}l.preventDefault()}),u=Ht(()=>{t.commitValidation()});C.useEffect(()=>{let l=n==null?void 0:n.current;if(!l)return;let f=l.form;return l.addEventListener("invalid",o),l.addEventListener("change",u),f==null||f.addEventListener("reset",a),()=>{l.removeEventListener("invalid",o),l.removeEventListener("change",u),f==null||f.removeEventListener("reset",a)}},[n,o,u,a,r])}function AW(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function PW(e){return{isInvalid:!e.validity.valid,validationDetails:AW(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function _W(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}function cp(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a="label"}=e;t=Yn(t);let o=Yn(),u={};n?(r=r?`${o} ${r}`:o,u={id:o,htmlFor:a==="label"?t:void 0}):!r&&!i&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=lu({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:u,fieldProps:l}}function fp(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:o}=cp(e),u=uu([!!t,!!n,r,i]),l=uu([!!t,!!n,r,i]);return o=ft(o,{"aria-describedby":[u,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:o,descriptionProps:{id:u},errorMessageProps:{id:l}}}const RW=0,OW=100,MW=1;function FW(e){const{isDisabled:t=!1,minValue:n=RW,maxValue:r=OW,numberFormatter:i,step:a=MW,orientation:o="horizontal"}=e;let u=C.useMemo(()=>{let N=(r-n)/10;return N=Pl(N,0,N+a,a),Math.max(N,a)},[a,r,n]),l=C.useCallback(N=>N==null?void 0:N.map((ne,ie)=>{let ce=ie===0?n:N[ie-1],xe=ie===N.length-1?r:N[ie+1];return Pl(ne,ce,xe,a)}),[n,r,a]),f=C.useMemo(()=>l($D(e.value)),[e.value]),d=C.useMemo(()=>{var N;return l((N=$D(e.defaultValue))!==null&&N!==void 0?N:[n])},[e.defaultValue,n]),h=xD(e.value,e.defaultValue,e.onChange),p=xD(e.value,e.defaultValue,e.onChangeEnd);const[g,y]=ar(f,d,h),[b,D]=C.useState(new Array(g.length).fill(!1)),$=C.useRef(new Array(g.length).fill(!0)),[v,w]=C.useState(void 0),T=C.useRef(g),E=C.useRef(b);let A=N=>{T.current=N,y(N)},M=N=>{E.current=N,D(N)};function S(N){return(N-n)/(r-n)}function z(N){return N===0?n:g[N-1]}function j(N){return N===g.length-1?r:g[N+1]}function O(N){return $.current[N]}function Z(N,ne){$.current[N]=ne}function R(N,ne){if(t||!O(N))return;const ie=z(N),ce=j(N);ne=Pl(ne,ie,ce,a);let xe=bD(T.current,N,ne);A(xe)}function V(N,ne){if(t||!O(N))return;ne&&(T.current=g);const ie=E.current[N];E.current=bD(E.current,N,ne),M(E.current),p&&ie&&!E.current.some(Boolean)&&p(T.current)}function W(N){return i.format(N)}function L(N,ne){R(N,_(ne))}function k(N){return Math.round((N-n)/a)*a+n}function _(N){const ne=N*(r-n)+n;return cu(k(ne),n,r)}function H(N,ne=1){let ie=Math.max(ne,a);R(N,Pl(g[N]+ie,n,r,a))}function U(N,ne=1){let ie=Math.max(ne,a);R(N,Pl(g[N]-ie,n,r,a))}return{values:g,getThumbValue:N=>g[N],setThumbValue:R,setThumbPercent:L,isThumbDragging:N=>b[N],setThumbDragging:V,focusedThumb:v,setFocusedThumb:w,getThumbPercent:N=>S(g[N]),getValuePercent:S,getThumbValueLabel:N=>W(g[N]),getFormattedValue:W,getThumbMinValue:z,getThumbMaxValue:j,getPercentValue:_,isThumbEditable:O,setThumbEditable:Z,incrementThumb:H,decrementThumb:U,step:a,pageSize:u,orientation:o,isDisabled:t}}function bD(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function $D(e){if(e!=null)return Array.isArray(e)?e:[e]}function xD(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}const wD={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 kW(e={}){let{style:t,isFocusable:n}=e,[r,i]=C.useState(!1),{focusWithinProps:a}=Au({isDisabled:!n,onFocusWithinChange:u=>i(u)}),o=C.useMemo(()=>r?t:t?{...wD,...t}:wD,[r]);return{visuallyHiddenProps:{...a,style:o}}}function IW(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...a}=e,{visuallyHiddenProps:o}=kW(e);return C.createElement(n,ft(a,o),t)}const W1=new WeakMap;function c0(e,t){let n=W1.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function BW(e,t,n){let{labelProps:r,fieldProps:i}=cp(e),a=e.orientation==="vertical";var o;W1.set(t,{id:(o=r.id)!==null&&o!==void 0?o:i.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:u}=Sn(),{addGlobalListener:l,removeGlobalListener:f}=Tu();const d=C.useRef(null),h=u==="rtl",p=C.useRef(null),{moveProps:g}=BA({onMoveStart(){p.current=null},onMove({deltaX:$,deltaY:v}){if(!n.current)return;let{height:w,width:T}=n.current.getBoundingClientRect(),E=a?w:T;p.current==null&&d.current!=null&&(p.current=t.getThumbPercent(d.current)*E);let A=a?v:$;if((a||h)&&(A=-A),p.current+=A,d.current!=null&&n.current){const M=cu(p.current/E,0,1);t.setThumbPercent(d.current,M)}},onMoveEnd(){d.current!=null&&(t.setThumbDragging(d.current,!1),d.current=null)}});let y=C.useRef(void 0),b=($,v,w,T)=>{if(n.current&&!e.isDisabled&&t.values.every((E,A)=>!t.isThumbDragging(A))){let{height:E,width:A,top:M,left:S}=n.current.getBoundingClientRect(),z=a?E:A,R=((a?T:w)-(a?M:S))/z;(u==="rtl"||a)&&(R=1-R);let V=t.getPercentValue(R),W,L=t.values.findIndex(k=>V-k<0);if(L===0)W=L;else if(L===-1)W=t.values.length-1;else{let k=t.values[L-1],_=t.values[L];Math.abs(k-V)<Math.abs(_-V)?W=L-1:W=L}W>=0&&t.isThumbEditable(W)?($.preventDefault(),d.current=W,t.setFocusedThumb(W),y.current=v,t.setThumbDragging(d.current,!0),t.setThumbValue(W,V),l(window,"mouseup",D,!1),l(window,"touchend",D,!1),l(window,"pointerup",D,!1)):d.current=null}},D=$=>{var v,w;((w=$.pointerId)!==null&&w!==void 0?w:(v=$.changedTouches)===null||v===void 0?void 0:v[0].identifier)===y.current&&(d.current!=null&&(t.setThumbDragging(d.current,!1),d.current=null),f(window,"mouseup",D,!1),f(window,"touchend",D,!1),f(window,"pointerup",D,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var $;($=document.getElementById(c0(t,0)))===null||$===void 0||$.focus(),kA("keyboard")}),{labelProps:r,groupProps:{role:"group",...i},trackProps:ft({onMouseDown($){$.button!==0||$.altKey||$.ctrlKey||$.metaKey||b($,void 0,$.clientX,$.clientY)},onPointerDown($){$.pointerType==="mouse"&&($.button!==0||$.altKey||$.ctrlKey||$.metaKey)||b($,$.pointerId,$.clientX,$.clientY)},onTouchStart($){b($,$.changedTouches[0].identifier,$.changedTouches[0].clientX,$.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},g),outputProps:{htmlFor:t.values.map(($,v)=>c0(t,v)).join(" "),"aria-live":"off"}}}function LW(e,t){let{index:n=0,isRequired:r,validationState:i,isInvalid:a,trackRef:o,inputRef:u,orientation:l=t.orientation,name:f}=e,d=e.isDisabled||t.isDisabled,h=l==="vertical",{direction:p}=Sn(),{addGlobalListener:g,removeGlobalListener:y}=Tu(),b=W1.get(t);var D;const{labelProps:$,fieldProps:v}=cp({...e,id:c0(t,n),"aria-labelledby":`${b.id} ${(D=e["aria-labelledby"])!==null&&D!==void 0?D:""}`.trim()}),w=t.values[n],T=C.useCallback(()=>{u.current&&Ur(u.current)},[u]),E=t.focusedThumb===n;C.useEffect(()=>{E&&T()},[E,T]);let A=p==="rtl",M=C.useRef(null),{keyboardProps:S}=IA({onKeyDown(L){let{getThumbMaxValue:k,getThumbMinValue:_,decrementThumb:H,incrementThumb:U,setThumbValue:N,setThumbDragging:ne,pageSize:ie}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(L.key)){L.continuePropagation();return}switch(L.preventDefault(),ne(n,!0),L.key){case"PageUp":U(n,ie);break;case"PageDown":H(n,ie);break;case"Home":N(n,_(n));break;case"End":N(n,k(n));break}ne(n,!1)}}),{moveProps:z}=BA({onMoveStart(){M.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:L,deltaY:k,pointerType:_,shiftKey:H}){const{getThumbPercent:U,setThumbPercent:N,decrementThumb:ne,incrementThumb:ie,step:ce,pageSize:xe}=t;if(!o.current)return;let{width:De,height:Ee}=o.current.getBoundingClientRect(),J=h?Ee:De;if(M.current==null&&(M.current=U(n)*J),_==="keyboard")L>0&&A||L<0&&!A||k>0?ne(n,H?xe:ce):ie(n,H?xe:ce);else{let ye=h?k:L;(h||A)&&(ye=-ye),M.current+=ye,N(n,cu(M.current/J,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!d);const{focusableProps:j}=M1(ft(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),u);let O=C.useRef(void 0),Z=L=>{T(),O.current=L,t.setThumbDragging(n,!0),g(window,"mouseup",R,!1),g(window,"touchend",R,!1),g(window,"pointerup",R,!1)},R=L=>{var k,_;((_=L.pointerId)!==null&&_!==void 0?_:(k=L.changedTouches)===null||k===void 0?void 0:k[0].identifier)===O.current&&(T(),t.setThumbDragging(n,!1),y(window,"mouseup",R,!1),y(window,"touchend",R,!1),y(window,"pointerup",R,!1))},V=t.getThumbPercent(n);(h||p==="rtl")&&(V=1-V);let W=d?{}:ft(S,z,{onMouseDown:L=>{L.button!==0||L.altKey||L.ctrlKey||L.metaKey||Z()},onPointerDown:L=>{L.button!==0||L.altKey||L.ctrlKey||L.metaKey||Z(L.pointerId)},onTouchStart:L=>{Z(L.changedTouches[0].identifier)}});return A1(u,w,L=>{t.setThumbValue(n,L)}),{inputProps:ft(j,v,{type:"range",tabIndex:d?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:w,name:f,disabled:d,"aria-orientation":l,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":a||i==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[b["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[b["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:L=>{t.setThumbValue(n,parseFloat(L.target.value))}}),thumbProps:{...W,style:{position:"absolute",[h?"top":"left"]:`${V*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:$,isDragging:t.isThumbDragging(n),isDisabled:d,isFocused:E}}function VW(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:a=!1,type:o="text",validationBehavior:u="aria"}=e,[l,f]=ar(e.value,e.defaultValue||"",e.onChange),{focusableProps:d}=M1(e,t),h=Gc({...e,value:l}),{isInvalid:p,validationErrors:g,validationDetails:y}=h.displayValidation,{labelProps:b,fieldProps:D,descriptionProps:$,errorMessageProps:v}=fp({...e,isInvalid:p,errorMessage:e.errorMessage||g}),w=ua(e,{labelable:!0});const T={type:o,pattern:e.pattern};return A1(t,l,f),s6(e,h,t),C.useEffect(()=>{if(t.current instanceof qa(t.current).HTMLTextAreaElement){let E=t.current;Object.defineProperty(E,"defaultValue",{get:()=>E.value,set:()=>{},configurable:!0})}},[t]),{labelProps:b,inputProps:ft(w,n==="input"?T:void 0,{disabled:r,readOnly:a,required:i&&u==="native","aria-required":i&&u==="aria"||void 0,"aria-invalid":p||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:l,onChange:E=>f(E.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...d,...D}),descriptionProps:$,errorMessageProps:v,isInvalid:p,validationErrors:g,validationDetails:y}}var u6={};u6={Empty:"فارغ"};var l6={};l6={Empty:"Изпразни"};var c6={};c6={Empty:"Prázdné"};var f6={};f6={Empty:"Tom"};var d6={};d6={Empty:"Leer"};var h6={};h6={Empty:"Άδειο"};var p6={};p6={Empty:"Empty"};var m6={};m6={Empty:"Vacío"};var g6={};g6={Empty:"Tühjenda"};var y6={};y6={Empty:"Tyhjä"};var v6={};v6={Empty:"Vide"};var b6={};b6={Empty:"ריק"};var $6={};$6={Empty:"Prazno"};var x6={};x6={Empty:"Üres"};var w6={};w6={Empty:"Vuoto"};var D6={};D6={Empty:"空"};var C6={};C6={Empty:"비어 있음"};var E6={};E6={Empty:"Tuščias"};var S6={};S6={Empty:"Tukšs"};var T6={};T6={Empty:"Tom"};var A6={};A6={Empty:"Leeg"};var P6={};P6={Empty:"Pusty"};var _6={};_6={Empty:"Vazio"};var R6={};R6={Empty:"Vazio"};var O6={};O6={Empty:"Gol"};var M6={};M6={Empty:"Не заполнено"};var F6={};F6={Empty:"Prázdne"};var k6={};k6={Empty:"Prazen"};var I6={};I6={Empty:"Prazno"};var B6={};B6={Empty:"Tomt"};var L6={};L6={Empty:"Boş"};var V6={};V6={Empty:"Пусто"};var N6={};N6={Empty:"空"};var j6={};j6={Empty:"空白"};var K6={};K6={"ar-AE":u6,"bg-BG":l6,"cs-CZ":c6,"da-DK":f6,"de-DE":d6,"el-GR":h6,"en-US":p6,"es-ES":m6,"et-EE":g6,"fi-FI":y6,"fr-FR":v6,"he-IL":b6,"hr-HR":$6,"hu-HU":x6,"it-IT":w6,"ja-JP":D6,"ko-KR":C6,"lt-LT":E6,"lv-LV":S6,"nb-NO":T6,"nl-NL":A6,"pl-PL":P6,"pt-BR":_6,"pt-PT":R6,"ro-RO":O6,"ru-RU":M6,"sk-SK":F6,"sl-SI":k6,"sr-SP":I6,"sv-SE":B6,"tr-TR":L6,"uk-UA":V6,"zh-CN":N6,"zh-TW":j6};function NW(e){return e&&e.__esModule?e.default:e}function jW(e){const t=C.useRef(void 0);let{value:n,textValue:r,minValue:i,maxValue:a,isDisabled:o,isReadOnly:u,isRequired:l,onIncrement:f,onIncrementPage:d,onDecrement:h,onDecrementPage:p,onDecrementToMin:g,onIncrementToMax:y}=e;const b=Ri(NW(K6),"@react-aria/spinbutton"),D=()=>clearTimeout(t.current);C.useEffect(()=>()=>D(),[]);let $=O=>{if(!(O.ctrlKey||O.metaKey||O.shiftKey||O.altKey||u))switch(O.key){case"PageUp":if(d){O.preventDefault(),d==null||d();break}case"ArrowUp":case"Up":f&&(O.preventDefault(),f==null||f());break;case"PageDown":if(p){O.preventDefault(),p==null||p();break}case"ArrowDown":case"Down":h&&(O.preventDefault(),h==null||h());break;case"Home":g&&(O.preventDefault(),g==null||g());break;case"End":y&&(O.preventDefault(),y==null||y());break}},v=C.useRef(!1),w=()=>{v.current=!0},T=()=>{v.current=!1},E=r===""?b.format("Empty"):(r||`${n}`).replace("-","−");C.useEffect(()=>{v.current&&(yW("assertive"),Js(E,"assertive"))},[E]);const A=Ht(O=>{D(),f==null||f(),t.current=window.setTimeout(()=>{(a===void 0||isNaN(a)||n===void 0||isNaN(n)||n<a)&&A(60)},O)}),M=Ht(O=>{D(),h==null||h(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&M(60)},O)});let S=O=>{O.preventDefault()},{addGlobalListener:z,removeAllGlobalListeners:j}=Tu();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":E,"aria-valuemin":i,"aria-valuemax":a,"aria-disabled":o||void 0,"aria-readonly":u||void 0,"aria-required":l||void 0,onKeyDown:$,onFocus:w,onBlur:T},incrementButtonProps:{onPressStart:()=>{A(400),z(window,"contextmenu",S)},onPressEnd:()=>{D(),j()},onFocus:w,onBlur:T},decrementButtonProps:{onPressStart:()=>{M(400),z(window,"contextmenu",S)},onPressEnd:()=>{D(),j()},onFocus:w,onBlur:T}}}var U6={};U6={buttonLabel:"عرض المقترحات",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} خيار`,other:()=>`${t.number(e.optionCount)} خيارات`})} متاحة.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`المجموعة المدخلة ${e.groupTitle}, مع ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} خيار`,other:()=>`${t.number(e.groupCount)} خيارات`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", محدد",other:""},e.isSelected)}`,listboxLabel:"مقترحات",selectedAnnouncement:e=>`${e.optionText}، محدد`};var z6={};z6={buttonLabel:"Покажи предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} опция`,other:()=>`${t.number(e.optionCount)} опции`})} на разположение.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Въведена група ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} опция`,other:()=>`${t.number(e.groupCount)} опции`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", избрани",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, избрани`};var q6={};q6={buttonLabel:"Zobrazit doporučení",countAnnouncement:(e,t)=>`K dispozici ${t.plural(e.optionCount,{one:()=>`je ${t.number(e.optionCount)} možnost`,other:()=>`jsou/je ${t.number(e.optionCount)} možnosti/-í`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina „${e.groupTitle}“ ${t.plural(e.groupCount,{one:()=>`s ${t.number(e.groupCount)} možností`,other:()=>`se ${t.number(e.groupCount)} možnostmi`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:" (vybráno)",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybráno`};var W6={};W6={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} mulighed tilgængelig`,other:()=>`${t.number(e.optionCount)} muligheder tilgængelige`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angivet gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} mulighed`,other:()=>`${t.number(e.groupCount)} muligheder`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var H6={};H6={buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} Option`,other:()=>`${t.number(e.optionCount)} Optionen`})} verfügbar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Eingetretene Gruppe ${e.groupTitle}, mit ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} Option`,other:()=>`${t.number(e.groupCount)} Optionen`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", ausgewählt",other:""},e.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:e=>`${e.optionText}, ausgewählt`};var G6={};G6={buttonLabel:"Προβολή προτάσεων",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} επιλογή`,other:()=>`${t.number(e.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Εισαγμένη ομάδα ${e.groupTitle}, με ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} επιλογή`,other:()=>`${t.number(e.groupCount)} επιλογές`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", επιλεγμένο",other:""},e.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:e=>`${e.optionText}, επιλέχθηκε`};var Y6={};Y6={focusAnnouncement:(e,t)=>`${t.select({true:()=>`Entered group ${e.groupTitle}, with ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"};var Z6={};Z6={buttonLabel:"Mostrar sugerencias",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opción`,other:()=>`${t.number(e.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Se ha unido al grupo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opción`,other:()=>`${t.number(e.groupCount)} opciones`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seleccionado",other:""},e.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:e=>`${e.optionText}, seleccionado`};var J6={};J6={buttonLabel:"Kuva soovitused",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} valik`,other:()=>`${t.number(e.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Sisestatud rühm ${e.groupTitle}, valikuga ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} valik`,other:()=>`${t.number(e.groupCount)} valikud`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valitud",other:""},e.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:e=>`${e.optionText}, valitud`};var X6={};X6={buttonLabel:"Näytä ehdotukset",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} vaihtoehto`,other:()=>`${t.number(e.optionCount)} vaihtoehdot`})} saatavilla.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Mentiin ryhmään ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} vaihtoehdon`,other:()=>`${t.number(e.groupCount)} vaihtoehdon`})} kanssa.`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valittu",other:""},e.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:e=>`${e.optionText}, valittu`};var Q6={};Q6={buttonLabel:"Afficher les suggestions",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groupe ${e.groupTitle} rejoint, avec ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", sélectionné(s)",other:""},e.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:e=>`${e.optionText}, sélectionné`};var e_={};e_={buttonLabel:"הצג הצעות",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`אפשרות ${t.number(e.optionCount)}`,other:()=>`${t.number(e.optionCount)} אפשרויות`})} במצב זמין.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`נכנס לקבוצה ${e.groupTitle}, עם ${t.plural(e.groupCount,{one:()=>`אפשרות ${t.number(e.groupCount)}`,other:()=>`${t.number(e.groupCount)} אפשרויות`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", נבחר",other:""},e.isSelected)}`,listboxLabel:"הצעות",selectedAnnouncement:e=>`${e.optionText}, נבחר`};var t_={};t_={buttonLabel:"Prikaži prijedloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} opcije/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", odabranih",other:""},e.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:e=>`${e.optionText}, odabrano`};var n_={};n_={buttonLabel:"Javaslatok megjelenítése",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} lehetőség`,other:()=>`${t.number(e.optionCount)} lehetőség`})} áll rendelkezésre.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Belépett a(z) ${e.groupTitle} csoportba, amely ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} lehetőséget`,other:()=>`${t.number(e.groupCount)} lehetőséget`})} tartalmaz. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", kijelölve",other:""},e.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:e=>`${e.optionText}, kijelölve`};var r_={};r_={buttonLabel:"Mostra suggerimenti",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opzione disponibile`,other:()=>`${t.number(e.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingresso nel gruppo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opzione`,other:()=>`${t.number(e.groupCount)} opzioni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selezionato",other:""},e.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:e=>`${e.optionText}, selezionato`};var i_={};i_={buttonLabel:"候補を表示",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 個のオプション`,other:()=>`${t.number(e.optionCount)} 個のオプション`})}を利用できます。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`入力されたグループ ${e.groupTitle}、${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 個のオプション`,other:()=>`${t.number(e.groupCount)} 個のオプション`})}を含む。`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:"、選択済み",other:""},e.isSelected)}`,listboxLabel:"候補",selectedAnnouncement:e=>`${e.optionText}、選択済み`};var a_={};a_={buttonLabel:"제안 사항 표시",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)}개 옵션`,other:()=>`${t.number(e.optionCount)}개 옵션`})}을 사용할 수 있습니다.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`입력한 그룹 ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)}개 옵션`,other:()=>`${t.number(e.groupCount)}개 옵션`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 선택됨",other:""},e.isSelected)}`,listboxLabel:"제안",selectedAnnouncement:e=>`${e.optionText}, 선택됨`};var o_={};o_={buttonLabel:"Rodyti pasiūlymus",countAnnouncement:(e,t)=>`Yra ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} parinktis`,other:()=>`${t.number(e.optionCount)} parinktys (-ių)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Įvesta grupė ${e.groupTitle}, su ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} parinktimi`,other:()=>`${t.number(e.groupCount)} parinktimis (-ių)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", pasirinkta",other:""},e.isSelected)}`,listboxLabel:"Pasiūlymai",selectedAnnouncement:e=>`${e.optionText}, pasirinkta`};var s_={};s_={buttonLabel:"Rādīt ieteikumus",countAnnouncement:(e,t)=>`Pieejamo opciju skaits: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcijas`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ievadīta grupa ${e.groupTitle}, ar ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opciju`,other:()=>`${t.number(e.groupCount)} opcijām`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", atlasīta",other:""},e.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:e=>`${e.optionText}, atlasīta`};var u_={};u_={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angitt gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativer`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var l_={};l_={buttonLabel:"Suggesties weergeven",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} optie`,other:()=>`${t.number(e.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groep ${e.groupTitle} ingevoerd met ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} optie`,other:()=>`${t.number(e.groupCount)} opties`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", geselecteerd",other:""},e.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:e=>`${e.optionText}, geselecteerd`};var c_={};c_={buttonLabel:"Wyświetlaj sugestie",countAnnouncement:(e,t)=>`dostępna/dostępne(-nych) ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcja`,other:()=>`${t.number(e.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Dołączono do grupy ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcją`,other:()=>`${t.number(e.groupCount)} opcjami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", wybrano",other:""},e.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:e=>`${e.optionText}, wybrano`};var f_={};f_={buttonLabel:"Mostrar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo inserido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var d_={};d_={buttonLabel:"Apresentar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo introduzido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var h_={};h_={buttonLabel:"Afișare sugestii",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opțiune`,other:()=>`${t.number(e.optionCount)} opțiuni`})} disponibile.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grup ${e.groupTitle} introdus, cu ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opțiune`,other:()=>`${t.number(e.groupCount)} opțiuni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selectat",other:""},e.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:e=>`${e.optionText}, selectat`};var p_={};p_={buttonLabel:"Показать предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметров`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введенная группа ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметром`,other:()=>`${t.number(e.groupCount)} параметрами`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", выбранными",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, выбрано`};var m_={};m_={buttonLabel:"Zobraziť návrhy",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} možnosť`,other:()=>`${t.number(e.optionCount)} možnosti/-í`})} k dispozícii.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} možnosťou`,other:()=>`${t.number(e.groupCount)} možnosťami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", vybraté",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybraté`};var g_={};g_={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Na voljo je ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Vnesena skupina ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcija`,other:()=>`${t.number(e.groupCount)} opcije`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izbrano",other:""},e.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:e=>`${e.optionText}, izbrano`};var y_={};y_={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena grupa ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} optione/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izabranih",other:""},e.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:e=>`${e.optionText}, izabrano`};var v_={};v_={buttonLabel:"Visa förslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativ`})} tillgängliga.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingick i gruppen ${e.groupTitle} med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativ`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valda",other:""},e.isSelected)}`,listboxLabel:"Förslag",selectedAnnouncement:e=>`${e.optionText}, valda`};var b_={};b_={buttonLabel:"Önerileri göster",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} seçenek`,other:()=>`${t.number(e.optionCount)} seçenekler`})} kullanılabilir.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Girilen grup ${e.groupTitle}, ile ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} seçenek`,other:()=>`${t.number(e.groupCount)} seçenekler`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seçildi",other:""},e.isSelected)}`,listboxLabel:"Öneriler",selectedAnnouncement:e=>`${e.optionText}, seçildi`};var $_={};$_={buttonLabel:"Показати пропозиції",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введена група ${e.groupTitle}, з ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметр`,other:()=>`${t.number(e.groupCount)} параметри(-ів)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", вибрано",other:""},e.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:e=>`${e.optionText}, вибрано`};var x_={};x_={buttonLabel:"显示建议",countAnnouncement:(e,t)=>`有 ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 个选项`,other:()=>`${t.number(e.optionCount)} 个选项`})}可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`进入了 ${e.groupTitle} 组,其中有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 个选项`,other:()=>`${t.number(e.groupCount)} 个选项`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已选择",other:""},e.isSelected)}`,listboxLabel:"建议",selectedAnnouncement:e=>`${e.optionText}, 已选择`};var w_={};w_={buttonLabel:"顯示建議",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 選項`,other:()=>`${t.number(e.optionCount)} 選項`})} 可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`輸入的群組 ${e.groupTitle}, 有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 選項`,other:()=>`${t.number(e.groupCount)} 選項`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已選取",other:""},e.isSelected)}`,listboxLabel:"建議",selectedAnnouncement:e=>`${e.optionText}, 已選取`};var D_={};D_={"ar-AE":U6,"bg-BG":z6,"cs-CZ":q6,"da-DK":W6,"de-DE":H6,"el-GR":G6,"en-US":Y6,"es-ES":Z6,"et-EE":J6,"fi-FI":X6,"fr-FR":Q6,"he-IL":e_,"hr-HR":t_,"hu-HU":n_,"it-IT":r_,"ja-JP":i_,"ko-KR":a_,"lt-LT":o_,"lv-LV":s_,"nb-NO":u_,"nl-NL":l_,"pl-PL":c_,"pt-BR":f_,"pt-PT":d_,"ro-RO":h_,"ru-RU":p_,"sk-SK":m_,"sl-SI":g_,"sr-SP":y_,"sv-SE":v_,"tr-TR":b_,"uk-UA":$_,"zh-CN":x_,"zh-TW":w_};const xi={top:"top",bottom:"top",left:"left",right:"left"},vh={top:"bottom",bottom:"top",left:"right",right:"left"},KW={top:"left",left:"top"},f0={top:"height",left:"width"},C_={width:"totalWidth",height:"totalHeight"},gd={};let un=typeof document<"u"?window.visualViewport:null;function DD(e){let t=0,n=0,r=0,i=0,a=0,o=0,u={};var l;let f=((l=un==null?void 0:un.scale)!==null&&l!==void 0?l:1)>1;if(e.tagName==="BODY"){let y=document.documentElement;r=y.clientWidth,i=y.clientHeight;var d;t=(d=un==null?void 0:un.width)!==null&&d!==void 0?d:r;var h;n=(h=un==null?void 0:un.height)!==null&&h!==void 0?h:i,u.top=y.scrollTop||e.scrollTop,u.left=y.scrollLeft||e.scrollLeft,un&&(a=un.offsetTop,o=un.offsetLeft)}else({width:t,height:n,top:a,left:o}=Xs(e)),u.top=e.scrollTop,u.left=e.scrollLeft,r=t,i=n;if(S1()&&(e.tagName==="BODY"||e.tagName==="HTML")&&f){u.top=0,u.left=0;var p;a=(p=un==null?void 0:un.pageTop)!==null&&p!==void 0?p:0;var g;o=(g=un==null?void 0:un.pageLeft)!==null&&g!==void 0?g:0}return{width:t,height:n,totalWidth:r,totalHeight:i,scroll:u,top:a,left:o}}function UW(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function CD(e,t,n,r,i,a,o){var u;let l=(u=i.scroll[e])!==null&&u!==void 0?u:0,f=r[f0[e]],d=r.scroll[xi[e]]+a,h=f+r.scroll[xi[e]]-a,p=t-l+o[e]-r[xi[e]],g=t-l+n+o[e]-r[xi[e]];return p<d?d-p:g>h?Math.max(h-g,d-p):0}function zW(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function ED(e){if(gd[e])return gd[e];let[t,n]=e.split(" "),r=xi[t]||"right",i=KW[r];xi[n]||(n="center");let a=f0[r],o=f0[i];return gd[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:a,crossSize:o},gd[e]}function Sg(e,t,n,r,i,a,o,u,l,f){let{placement:d,crossPlacement:h,axis:p,crossAxis:g,size:y,crossSize:b}=r,D={};var $;D[g]=($=e[g])!==null&&$!==void 0?$:0;var v,w,T,E;h==="center"?D[g]+=(((v=e[b])!==null&&v!==void 0?v:0)-((w=n[b])!==null&&w!==void 0?w:0))/2:h!==g&&(D[g]+=((T=e[b])!==null&&T!==void 0?T:0)-((E=n[b])!==null&&E!==void 0?E:0)),D[g]+=a;const A=e[g]-n[b]+l+f,M=e[g]+e[b]-l-f;if(D[g]=cu(D[g],A,M),d===p){const S=u?o[y]:t[C_[y]];D[vh[p]]=Math.floor(S-e[p]+i)}else D[p]=Math.floor(e[p]+e[y]+i);return D}function qW(e,t,n,r,i,a,o,u){const l=r?n.height:t[C_.height];var f;let d=e.top!=null?n.top+e.top:n.top+(l-((f=e.bottom)!==null&&f!==void 0?f:0)-o);var h,p,g,y,b,D;let $=u!=="top"?Math.max(0,t.height+t.top+((h=t.scroll.top)!==null&&h!==void 0?h:0)-d-(((p=i.top)!==null&&p!==void 0?p:0)+((g=i.bottom)!==null&&g!==void 0?g:0)+a)):Math.max(0,d+o-(t.top+((y=t.scroll.top)!==null&&y!==void 0?y:0))-(((b=i.top)!==null&&b!==void 0?b:0)+((D=i.bottom)!==null&&D!==void 0?D:0)+a));return Math.min(t.height-a*2,$)}function SD(e,t,n,r,i,a){let{placement:o,axis:u,size:l}=a;var f,d;if(o===u)return Math.max(0,n[u]-e[u]-((f=e.scroll[u])!==null&&f!==void 0?f:0)+t[u]-((d=r[u])!==null&&d!==void 0?d:0)-r[vh[u]]-i);var h;return Math.max(0,e[l]+e[u]+e.scroll[u]-t[u]-n[u]-n[l]-((h=r[u])!==null&&h!==void 0?h:0)-r[vh[u]]-i)}function WW(e,t,n,r,i,a,o,u,l,f,d,h,p,g,y,b){let D=ED(e),{size:$,crossAxis:v,crossSize:w,placement:T,crossPlacement:E}=D,A=Sg(t,u,n,D,d,h,f,p,y,b),M=d,S=SD(u,f,t,i,a+d,D);if(o&&r[$]>S){let ce=ED(`${vh[T]} ${E}`),xe=Sg(t,u,n,ce,d,h,f,p,y,b);SD(u,f,t,i,a+d,ce)>S&&(D=ce,A=xe,M=d)}let z="bottom";D.axis==="top"?D.placement==="top"?z="top":D.placement==="bottom"&&(z="bottom"):D.crossAxis==="top"&&(D.crossPlacement==="top"?z="bottom":D.crossPlacement==="bottom"&&(z="top"));let j=CD(v,A[v],n[w],u,l,a,f);A[v]+=j;let O=qW(A,u,f,p,i,a,n.height,z);g&&g<O&&(O=g),n.height=Math.min(n.height,O),A=Sg(t,u,n,D,M,h,f,p,y,b),j=CD(v,A[v],n[w],u,l,a,f),A[v]+=j;let Z={},R=t[v]+.5*t[w]-A[v]-i[xi[v]];const V=y/2+b;var W,L,k,_;const H=xi[v]==="left"?((W=i.left)!==null&&W!==void 0?W:0)+((L=i.right)!==null&&L!==void 0?L:0):((k=i.top)!==null&&k!==void 0?k:0)+((_=i.bottom)!==null&&_!==void 0?_:0),U=n[w]-H-y/2-b,N=t[v]+y/2-(A[v]+i[xi[v]]),ne=t[v]+t[w]-y/2-(A[v]+i[xi[v]]),ie=cu(R,N,ne);return Z[v]=cu(ie,V,U),{position:A,maxHeight:O,arrowOffsetLeft:Z.left,arrowOffsetTop:Z.top,placement:D.placement}}function HW(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:a,shouldFlip:o,boundaryElement:u,offset:l,crossOffset:f,maxHeight:d,arrowSize:h=0,arrowBoundaryOffset:p=0}=e,g=r instanceof HTMLElement?GW(r):document.documentElement,y=g===document.documentElement;const b=window.getComputedStyle(g).position;let D=!!b&&b!=="static",$=y?Xs(n):TD(n,g);if(!y){let{marginTop:Z,marginLeft:R}=window.getComputedStyle(n);$.top+=parseInt(Z,10)||0,$.left+=parseInt(R,10)||0}let v=Xs(r),w=zW(r);var T,E;v.width+=((T=w.left)!==null&&T!==void 0?T:0)+((E=w.right)!==null&&E!==void 0?E:0);var A,M;v.height+=((A=w.top)!==null&&A!==void 0?A:0)+((M=w.bottom)!==null&&M!==void 0?M:0);let S=UW(i),z=DD(u),j=DD(g),O=u.tagName==="BODY"?Xs(g):TD(g,u);return g.tagName==="HTML"&&u.tagName==="BODY"&&(j.scroll.top=0,j.scroll.left=0),WW(t,$,v,S,w,a,o,z,j,O,l,f,D,d,h,p)}function Xs(e){let{top:t,left:n,width:r,height:i}=e.getBoundingClientRect(),{scrollTop:a,scrollLeft:o,clientTop:u,clientLeft:l}=document.documentElement;return{top:t+a-u,left:n+o-l,width:r,height:i}}function TD(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:i,left:a,width:o,height:u}=e.getBoundingClientRect();r={top:i,left:a,width:o,height:u}}else{r=Xs(e);let i=Xs(t),a=window.getComputedStyle(t);i.top+=(parseInt(a.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(a.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=i.top,r.left-=i.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function GW(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!AD(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!AD(t);)t=t.parentElement;return t||document.documentElement}function AD(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const E_=new WeakMap;function YW(e){let{triggerRef:t,isOpen:n,onClose:r}=e;C.useEffect(()=>{if(!n||r===null)return;let i=a=>{let o=a.target;if(!t.current||o instanceof Node&&!o.contains(t.current)||a.target instanceof HTMLInputElement||a.target instanceof HTMLTextAreaElement)return;let u=r||E_.get(t.current);u&&u()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,t])}let zt=typeof document<"u"?window.visualViewport:null;function ZW(e){let{direction:t}=Sn(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:a=i,placement:o="bottom",containerPadding:u=12,shouldFlip:l=!0,boundaryElement:f=typeof document<"u"?document.body:null,offset:d=0,crossOffset:h=0,shouldUpdatePosition:p=!0,isOpen:g=!0,onClose:y,maxHeight:b,arrowBoundaryOffset:D=0}=e,[$,v]=C.useState(null),w=[p,o,i.current,r.current,a.current,u,l,f,d,h,g,t,b,D,n],T=C.useRef(zt==null?void 0:zt.scale);C.useEffect(()=>{g&&(T.current=zt==null?void 0:zt.scale)},[g]);let E=C.useCallback(()=>{if(p===!1||!g||!i.current||!r.current||!f||(zt==null?void 0:zt.scale)!==T.current)return;let j=null;if(a.current&&a.current.contains(document.activeElement)){var O;let _=(O=document.activeElement)===null||O===void 0?void 0:O.getBoundingClientRect(),H=a.current.getBoundingClientRect();var Z;if(j={type:"top",offset:((Z=_==null?void 0:_.top)!==null&&Z!==void 0?Z:0)-H.top},j.offset>H.height/2){j.type="bottom";var R;j.offset=((R=_==null?void 0:_.bottom)!==null&&R!==void 0?R:0)-H.bottom}}let V=i.current;if(!b&&i.current){var W;V.style.top="0px",V.style.bottom="";var L;V.style.maxHeight=((L=(W=window.visualViewport)===null||W===void 0?void 0:W.height)!==null&&L!==void 0?L:window.innerHeight)+"px"}let k=HW({placement:XW(o,t),overlayNode:i.current,targetNode:r.current,scrollNode:a.current||i.current,padding:u,shouldFlip:l,boundaryElement:f,offset:d,crossOffset:h,maxHeight:b,arrowSize:n,arrowBoundaryOffset:D});if(k.position){if(V.style.top="",V.style.bottom="",V.style.left="",V.style.right="",Object.keys(k.position).forEach(_=>V.style[_]=k.position[_]+"px"),V.style.maxHeight=k.maxHeight!=null?k.maxHeight+"px":"",j&&document.activeElement&&a.current){let _=document.activeElement.getBoundingClientRect(),H=a.current.getBoundingClientRect(),U=_[j.type]-H[j.type];a.current.scrollTop+=U-j.offset}v(k)}},w);Ct(E,w),JW(E),Ow({ref:i,onResize:E}),Ow({ref:r,onResize:E});let A=C.useRef(!1);Ct(()=>{let j,O=()=>{A.current=!0,clearTimeout(j),j=setTimeout(()=>{A.current=!1},500),E()},Z=()=>{A.current&&O()};return zt==null||zt.addEventListener("resize",O),zt==null||zt.addEventListener("scroll",Z),()=>{zt==null||zt.removeEventListener("resize",O),zt==null||zt.removeEventListener("scroll",Z)}},[E]);let M=C.useCallback(()=>{A.current||y==null||y()},[y,A]);YW({triggerRef:r,isOpen:g,onClose:y&&M});var S,z;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...$==null?void 0:$.position,maxHeight:(S=$==null?void 0:$.maxHeight)!==null&&S!==void 0?S:"100vh"}},placement:(z=$==null?void 0:$.placement)!==null&&z!==void 0?z:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:$==null?void 0:$.arrowOffsetLeft,top:$==null?void 0:$.arrowOffsetTop}},updatePosition:E}}function JW(e){Ct(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function XW(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Hi=[];function QW(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:a=!1,isKeyboardDismissDisabled:o=!1,shouldCloseOnInteractOutside:u}=e;C.useEffect(()=>(i&&Hi.push(t),()=>{let y=Hi.indexOf(t);y>=0&&Hi.splice(y,1)}),[i,t]);let l=()=>{Hi[Hi.length-1]===t&&n&&n()},f=y=>{(!u||u(y.target))&&Hi[Hi.length-1]===t&&(y.stopPropagation(),y.preventDefault())},d=y=>{(!u||u(y.target))&&(Hi[Hi.length-1]===t&&(y.stopPropagation(),y.preventDefault()),l())},h=y=>{y.key==="Escape"&&!o&&!y.nativeEvent.isComposing&&(y.stopPropagation(),y.preventDefault(),l())};kz({ref:t,onInteractOutside:a&&i?d:void 0,onInteractOutsideStart:f});let{focusWithinProps:p}=Au({isDisabled:!r,onBlurWithin:y=>{!y.relatedTarget||zz(y.relatedTarget)||(!u||u(y.relatedTarget))&&(n==null||n())}}),g=y=>{y.target===y.currentTarget&&y.preventDefault()};return{overlayProps:{onKeyDown:h,...p},underlayProps:{onPointerDown:g}}}function eH(e,t,n){let{type:r}=e,{isOpen:i}=t;C.useEffect(()=>{n&&n.current&&E_.set(n.current,t.close)});let a;r==="menu"?a=!0:r==="listbox"&&(a="listbox");let o=Yn();return{triggerProps:{"aria-haspopup":a,"aria-expanded":i,"aria-controls":i?o:void 0,onPress:t.toggle},overlayProps:{id:o}}}const Tg=typeof document<"u"&&window.visualViewport,tH=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let yd=0,Ag;function nH(e={}){let{isDisabled:t}=e;Ct(()=>{if(!t)return yd++,yd===1&&(Vc()?Ag=iH():Ag=rH()),()=>{yd--,yd===0&&Ag()}},[t])}function rH(){return Uo(Bs(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Bs(document.documentElement,"overflow","hidden"))}function iH(){let e,t,n=f=>{e=rp(f.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=Bs(e,"overscrollBehavior","contain"))},r=f=>{if(!e||e===document.documentElement||e===document.body){f.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&f.preventDefault()},i=()=>{t&&t()},a=f=>{let d=f.target;aH(d)&&(u(),d.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{d.style.transform="",Tg&&(Tg.height<window.innerHeight?requestAnimationFrame(()=>{PD(d)}):Tg.addEventListener("resize",()=>PD(d),{once:!0}))}))},o=null,u=()=>{if(o)return;let f=()=>{window.scrollTo(0,0)},d=window.pageXOffset,h=window.pageYOffset;o=Uo(Rl(window,"scroll",f),Bs(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Bs(document.documentElement,"overflow","hidden"),Bs(document.body,"marginTop",`-${h}px`),()=>{window.scrollTo(d,h)}),window.scrollTo(0,0)},l=Uo(Rl(document,"touchstart",n,{passive:!1,capture:!0}),Rl(document,"touchmove",r,{passive:!1,capture:!0}),Rl(document,"touchend",i,{passive:!1,capture:!0}),Rl(document,"focus",a,!0));return()=>{t==null||t(),o==null||o(),l()}}function Bs(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Rl(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function PD(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=rp(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect().top,a=n.getBoundingClientRect().top;a>i+n.clientHeight&&(r.scrollTop+=a-i)}n=r.parentElement}}function aH(e){return e instanceof HTMLInputElement&&!tH.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let Ol=new WeakMap,gr=[];function S_(e,t=document.body){let n=new Set(e),r=new Set,i=l=>{for(let p of l.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(p);let f=p=>{if(n.has(p)||p.parentElement&&r.has(p.parentElement)&&p.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let g of n)if(p.contains(g))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},d=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:f}),h=f(l);if(h===NodeFilter.FILTER_ACCEPT&&a(l),h!==NodeFilter.FILTER_REJECT){let p=d.nextNode();for(;p!=null;)a(p),p=d.nextNode()}},a=l=>{var f;let d=(f=Ol.get(l))!==null&&f!==void 0?f:0;l.getAttribute("aria-hidden")==="true"&&d===0||(d===0&&l.setAttribute("aria-hidden","true"),r.add(l),Ol.set(l,d+1))};gr.length&&gr[gr.length-1].disconnect(),i(t);let o=new MutationObserver(l=>{for(let f of l)if(!(f.type!=="childList"||f.addedNodes.length===0)&&![...n,...r].some(d=>d.contains(f.target))){for(let d of f.removedNodes)d instanceof Element&&(n.delete(d),r.delete(d));for(let d of f.addedNodes)(d instanceof HTMLElement||d instanceof SVGElement)&&(d.dataset.liveAnnouncer==="true"||d.dataset.reactAriaTopLayer==="true")?n.add(d):d instanceof Element&&i(d)}});o.observe(t,{childList:!0,subtree:!0});let u={observe(){o.observe(t,{childList:!0,subtree:!0})},disconnect(){o.disconnect()}};return gr.push(u),()=>{o.disconnect();for(let l of r){let f=Ol.get(l);f!=null&&(f===1?(l.removeAttribute("aria-hidden"),Ol.delete(l)):Ol.set(l,f-1))}u===gr[gr.length-1]?(gr.pop(),gr.length&&gr[gr.length-1].observe()):gr.splice(gr.indexOf(u),1)}}function oH(e,t){let{triggerRef:n,popoverRef:r,isNonModal:i,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:o,...u}=e,{overlayProps:l,underlayProps:f}=QW({isOpen:t.isOpen&&!u["data-react-aria-top-layer"],onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!i,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:o},r),{overlayProps:d,arrowProps:h,placement:p}=ZW({...u,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:i?t.close:null});return nH({isDisabled:i||!t.isOpen}),Ct(()=>{if(t.isOpen&&!i&&r.current)return S_([r.current])},[i,t.isOpen,r]),{popoverProps:ft(l,d),arrowProps:h,underlayProps:f,placement:p}}const sH=C.createContext({});function uH(){var e;return(e=C.useContext(sH))!==null&&e!==void 0?e:{}}const T_=C.createContext(null);function lH(e){let t=C1(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,a]=C.useState(!1),o=C.useMemo(()=>({contain:i,setContain:a}),[i,a]),{getContainer:u}=uH();if(!e.portalContainer&&u&&(n=u()),!n)return null;let l=e.children;return e.disableFocusManagement||(l=C.createElement(Vz,{restoreFocus:!0,contain:i&&!r},l)),l=C.createElement(T_.Provider,{value:o},C.createElement(Tz,null,l)),Na.createPortal(l,n)}function cH(){let e=C.useContext(T_),t=e==null?void 0:e.setContain;Ct(()=>{t==null||t(!0)},[t])}const dp=new WeakMap;function fH(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function A_(e,t){let n=dp.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${fH(t)}`}function d0(e){return Id()?e.altKey:e.ctrlKey}const dH=1e3;function hH(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=C.useRef({search:"",timeout:void 0}).current,a=o=>{let u=pH(o.key);if(!(!u||o.ctrlKey||o.metaKey||!o.currentTarget.contains(o.target))){if(u===" "&&i.search.trim().length>0&&(o.preventDefault(),"continuePropagation"in o||o.stopPropagation()),i.search+=u,t.getKeyForSearch!=null){let l=t.getKeyForSearch(i.search,n.focusedKey);l==null&&(l=t.getKeyForSearch(i.search)),l!=null&&(n.setFocusedKey(l),r&&r(l))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},dH)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?a:void 0}}}function pH(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function P_(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:a=!1,disallowEmptySelection:o=!1,disallowSelectAll:u=!1,selectOnFocus:l=t.selectionBehavior==="replace",disallowTypeAhead:f=!1,shouldUseVirtualFocus:d,allowsTabNavigation:h=!1,isVirtualized:p,scrollRef:g=r,linkBehavior:y="action"}=e,{direction:b}=Sn(),D=np(),$=R=>{var V;if(R.altKey&&R.key==="Tab"&&R.preventDefault(),!(!((V=r.current)===null||V===void 0)&&V.contains(R.target)))return;const W=(J,ye)=>{if(J!=null){if(t.isLink(J)&&y==="selection"&&l&&!d0(R)){var we;Na.flushSync(()=>{t.setFocusedKey(J,ye)});let me=(we=g.current)===null||we===void 0?void 0:we.querySelector(`[data-key="${CSS.escape(J.toString())}"]`),ue=t.getItemProps(J);me&&D.open(me,R,ue.href,ue.routerOptions);return}if(t.setFocusedKey(J,ye),t.isLink(J)&&y==="override")return;R.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(J):l&&!d0(R)&&t.replaceSelection(J)}};switch(R.key){case"ArrowDown":if(n.getKeyBelow){var L,k,_;let J=t.focusedKey!=null?(L=n.getKeyBelow)===null||L===void 0?void 0:L.call(n,t.focusedKey):(k=n.getFirstKey)===null||k===void 0?void 0:k.call(n);J==null&&a&&(J=(_=n.getFirstKey)===null||_===void 0?void 0:_.call(n,t.focusedKey)),J!=null&&(R.preventDefault(),W(J))}break;case"ArrowUp":if(n.getKeyAbove){var H,U,N;let J=t.focusedKey!=null?(H=n.getKeyAbove)===null||H===void 0?void 0:H.call(n,t.focusedKey):(U=n.getLastKey)===null||U===void 0?void 0:U.call(n);J==null&&a&&(J=(N=n.getLastKey)===null||N===void 0?void 0:N.call(n,t.focusedKey)),J!=null&&(R.preventDefault(),W(J))}break;case"ArrowLeft":if(n.getKeyLeftOf){var ne,ie,ce;let J=t.focusedKey!=null?(ne=n.getKeyLeftOf)===null||ne===void 0?void 0:ne.call(n,t.focusedKey):null;J==null&&a&&(J=b==="rtl"?(ie=n.getFirstKey)===null||ie===void 0?void 0:ie.call(n,t.focusedKey):(ce=n.getLastKey)===null||ce===void 0?void 0:ce.call(n,t.focusedKey)),J!=null&&(R.preventDefault(),W(J,b==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var xe,De,Ee;let J=t.focusedKey!=null?(xe=n.getKeyRightOf)===null||xe===void 0?void 0:xe.call(n,t.focusedKey):null;J==null&&a&&(J=b==="rtl"?(De=n.getLastKey)===null||De===void 0?void 0:De.call(n,t.focusedKey):(Ee=n.getFirstKey)===null||Ee===void 0?void 0:Ee.call(n,t.focusedKey)),J!=null&&(R.preventDefault(),W(J,b==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(t.focusedKey===null&&R.shiftKey)return;R.preventDefault();let J=n.getFirstKey(t.focusedKey,Fs(R));t.setFocusedKey(J),J!=null&&(Fs(R)&&R.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(J):l&&t.replaceSelection(J))}break;case"End":if(n.getLastKey){if(t.focusedKey===null&&R.shiftKey)return;R.preventDefault();let J=n.getLastKey(t.focusedKey,Fs(R));t.setFocusedKey(J),J!=null&&(Fs(R)&&R.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(J):l&&t.replaceSelection(J))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let J=n.getKeyPageBelow(t.focusedKey);J!=null&&(R.preventDefault(),W(J))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let J=n.getKeyPageAbove(t.focusedKey);J!=null&&(R.preventDefault(),W(J))}break;case"a":Fs(R)&&t.selectionMode==="multiple"&&u!==!0&&(R.preventDefault(),t.selectAll());break;case"Escape":!o&&t.selectedKeys.size!==0&&(R.stopPropagation(),R.preventDefault(),t.clearSelection());break;case"Tab":if(!h){if(R.shiftKey)r.current.focus();else{let J=Wn(r.current,{tabbable:!0}),ye,we;do we=J.lastChild(),we&&(ye=we);while(we);ye&&!ye.contains(document.activeElement)&&Ur(ye)}break}}},v=C.useRef({top:0,left:0});bi(g,"scroll",p?void 0:()=>{var R,V,W,L;v.current={top:(W=(R=g.current)===null||R===void 0?void 0:R.scrollTop)!==null&&W!==void 0?W:0,left:(L=(V=g.current)===null||V===void 0?void 0:V.scrollLeft)!==null&&L!==void 0?L:0}});let w=R=>{if(t.isFocused){R.currentTarget.contains(R.target)||t.setFocused(!1);return}if(R.currentTarget.contains(R.target)){if(t.setFocused(!0),t.focusedKey==null){var V,W;let _=U=>{U!=null&&(t.setFocusedKey(U),l&&t.replaceSelection(U))},H=R.relatedTarget;var L,k;H&&R.currentTarget.compareDocumentPosition(H)&Node.DOCUMENT_POSITION_FOLLOWING?_((L=t.lastSelectedKey)!==null&&L!==void 0?L:(V=n.getLastKey)===null||V===void 0?void 0:V.call(n)):_((k=t.firstSelectedKey)!==null&&k!==void 0?k:(W=n.getFirstKey)===null||W===void 0?void 0:W.call(n))}else!p&&g.current&&(g.current.scrollTop=v.current.top,g.current.scrollLeft=v.current.left);if(t.focusedKey!=null&&g.current){let _=g.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);_&&(_.contains(document.activeElement)||Ur(_),mc()==="keyboard"&&uh(_,{containingElement:r.current}))}}},T=R=>{R.currentTarget.contains(R.relatedTarget)||t.setFocused(!1)},E=C.useRef(!1);bi(r,yz,d?R=>{let{detail:V}=R;R.stopPropagation(),t.setFocused(!0),(V==null?void 0:V.focusStrategy)==="first"&&(E.current=!0)}:void 0);let A=Ht(()=>{var R,V;let W=(V=(R=n.getFirstKey)===null||R===void 0?void 0:R.call(n))!==null&&V!==void 0?V:null;if(W==null){var L;(L=r.current)===null||L===void 0||L.dispatchEvent(new CustomEvent(SA,{cancelable:!0,bubbles:!0})),t.collection.size>0&&(E.current=!1)}else t.setFocusedKey(W),E.current=!1});Rw(()=>{E.current&&A()},[t.collection,A]);let M=Ht(()=>{t.collection.size>0&&(E.current=!1)});Rw(()=>{M()},[t.focusedKey,M]),bi(r,gz,d?R=>{R.stopPropagation(),t.setFocused(!1),t.setFocusedKey(null)}:void 0);const S=C.useRef(i);C.useEffect(()=>{if(S.current){var R,V;let k=null;var W;i==="first"&&(k=(W=(R=n.getFirstKey)===null||R===void 0?void 0:R.call(n))!==null&&W!==void 0?W:null);var L;i==="last"&&(k=(L=(V=n.getLastKey)===null||V===void 0?void 0:V.call(n))!==null&&L!==void 0?L:null);let _=t.selectedKeys;if(_.size){for(let H of _)if(t.canSelectItem(H)){k=H;break}}t.setFocused(!0),t.setFocusedKey(k),k==null&&!d&&r.current&&Wo(r.current)}},[]);let z=C.useRef(t.focusedKey);C.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==z.current||S.current)&&g.current&&r.current){let R=mc(),V=r.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);if(!V)return;(R==="keyboard"||S.current)&&(CA(g.current,V),R!=="virtual"&&uh(V,{containingElement:r.current}))}!d&&t.isFocused&&t.focusedKey==null&&z.current!=null&&r.current&&Wo(r.current),z.current=t.focusedKey,S.current=!1}),bi(r,"react-aria-focus-scope-restore",R=>{R.preventDefault(),t.setFocused(!0)});let j={onKeyDown:$,onFocus:w,onBlur:T,onMouseDown(R){g.current===R.target&&R.preventDefault()}},{typeSelectProps:O}=hH({keyboardDelegate:n,selectionManager:t});f||(j=ft(O,j));let Z;return d?Z=-1:Z=t.focusedKey==null?0:-1,{collectionProps:{...j,tabIndex:Z}}}function mH(e){let{id:t,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:a,shouldUseVirtualFocus:o,focus:u,isDisabled:l,onAction:f,allowsDifferentPressOrigin:d,linkBehavior:h="action"}=e,p=np();t=Yn(t);let g=_=>{if(_.pointerType==="keyboard"&&d0(_))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(h==="selection"&&i.current){let H=n.getItemProps(r);p.open(i.current,_,H.href,H.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(h==="override"||h==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):_&&_.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||_&&(Fs(_)||_.pointerType==="touch"||_.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};C.useEffect(()=>{if(r===n.focusedKey&&n.isFocused)if(!o)u?u():document.activeElement!==i.current&&i.current&&Wo(i.current);else{var H;let U=new CustomEvent(SA,{cancelable:!0,bubbles:!0});(H=i.current)===null||H===void 0||H.dispatchEvent(U)}},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,o]),l=l||n.isDisabled(r);let y={};!o&&!l?y={tabIndex:r===n.focusedKey?0:-1,onFocus(_){_.target===i.current&&n.setFocusedKey(r)}}:l&&(y.onMouseDown=_=>{_.preventDefault()});let b=n.isLink(r)&&h==="override",D=n.isLink(r)&&h!=="selection"&&h!=="none",$=!l&&n.canSelectItem(r)&&!b,v=(f||D)&&!l,w=v&&(n.selectionBehavior==="replace"?!$:!$||n.isEmpty),T=v&&$&&n.selectionBehavior==="replace",E=w||T,A=C.useRef(null),M=E&&$,S=C.useRef(!1),z=C.useRef(!1),j=_=>{if(f&&f(),D&&i.current){let H=n.getItemProps(r);p.open(i.current,_,H.href,H.routerOptions)}},O={};a?(O.onPressStart=_=>{A.current=_.pointerType,S.current=M,_.pointerType==="keyboard"&&(!E||RD())&&g(_)},d?(O.onPressUp=w?void 0:_=>{_.pointerType==="mouse"&&$&&g(_)},O.onPress=w?j:_=>{_.pointerType!=="keyboard"&&_.pointerType!=="mouse"&&$&&g(_)}):O.onPress=_=>{if(w||T&&_.pointerType!=="mouse"){if(_.pointerType==="keyboard"&&!_D())return;j(_)}else _.pointerType!=="keyboard"&&$&&g(_)}):(O.onPressStart=_=>{A.current=_.pointerType,S.current=M,z.current=w,$&&(_.pointerType==="mouse"&&!w||_.pointerType==="keyboard"&&(!v||RD()))&&g(_)},O.onPress=_=>{(_.pointerType==="touch"||_.pointerType==="pen"||_.pointerType==="virtual"||_.pointerType==="keyboard"&&E&&_D()||_.pointerType==="mouse"&&z.current)&&(E?j(_):$&&g(_))}),y["data-key"]=r,O.preventFocusOnPress=o;let{pressProps:Z,isPressed:R}=Kc(O),V=T?_=>{A.current==="mouse"&&(_.stopPropagation(),_.preventDefault(),j(_))}:void 0,{longPressProps:W}=LA({isDisabled:!M,onLongPress(_){_.pointerType==="touch"&&(g(_),n.setSelectionBehavior("toggle"))}}),L=_=>{A.current==="touch"&&S.current&&_.preventDefault()},k=n.isLink(r)?_=>{zo.isOpening||_.preventDefault()}:void 0;return{itemProps:ft(y,$||w?Z:{},M?W:{},{onDoubleClick:V,onDragStartCapture:L,onClick:k,id:t}),isPressed:R,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:l,allowsSelection:$,hasAction:E}}function _D(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function RD(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class OD{getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?n.querySelector(`[data-key="${CSS.escape(t.toString())}"]`):null;if(!r)return null;let i=n.getBoundingClientRect(),a=r.getBoundingClientRect();return{x:a.left-i.left+n.scrollLeft,y:a.top-i.top+n.scrollTop,width:a.width,height:a.height}}getContentSize(){let t=this.ref.current;var n,r;return{width:(n=t==null?void 0:t.scrollWidth)!==null&&n!==void 0?n:0,height:(r=t==null?void 0:t.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let t=this.ref.current;var n,r,i,a;return{x:(n=t==null?void 0:t.scrollLeft)!==null&&n!==void 0?n:0,y:(r=t==null?void 0:t.scrollTop)!==null&&r!==void 0?r:0,width:(i=t==null?void 0:t.offsetWidth)!==null&&i!==void 0?i:0,height:(a=t==null?void 0:t.offsetHeight)!==null&&a!==void 0?a:0}}constructor(t){this.ref=t}}class __{isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,n){let r=t;for(;r!=null;){let i=this.collection.getItem(r);if((i==null?void 0:i.type)==="item"&&!this.isDisabled(i))return r;r=n(r)}return null}getNextKey(t){let n=t;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(t){let n=t;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(t,n,r){let i=t,a=this.layoutDelegate.getItemRect(i);if(!a||i==null)return null;let o=a;do{if(i=n(i),i==null)break;a=this.layoutDelegate.getItemRect(i)}while(a&&r(o,a)&&i!=null);return i}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](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 n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](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,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!pc(n))return this.getFirstKey();let i=t;if(this.orientation==="horizontal"){let a=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>a&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let a=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>a&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!pc(n))return this.getLastKey();let i=t;if(this.orientation==="horizontal"){let a=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<a&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let a=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<a&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,i=n||this.getFirstKey();for(;i!=null;){let a=r.getItem(i);if(!a)return null;let o=a.textValue.slice(0,t.length);if(a.textValue&&this.collator.compare(o,t)===0)return i;i=this.getNextKey(i)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new OD(n.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 OD(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function gH(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:a,layoutDelegate:o}=e,u=xP({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,f=C.useMemo(()=>a||new __({collection:n,disabledKeys:r,disabledBehavior:l,ref:i,collator:u,layoutDelegate:o}),[a,o,n,r,i,u,l]),{collectionProps:d}=P_({...e,ref:i,selectionManager:t,keyboardDelegate:f});return{listProps:d}}function yH(e,t,n){let r=ua(e,{labelable:!0}),i=e.selectionBehavior||"toggle",a=e.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&a==="action"&&(a="override");let{listProps:o}=gH({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:a}),{focusWithinProps:u}=Au({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=Yn(e.id);dp.set(t,{id:l,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:a});let{labelProps:f,fieldProps:d}=cp({...e,id:l,labelElementType:"span"});return{labelProps:f,listBoxProps:ft(r,u,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...ft(d,o)})}}function R_(e){return null}R_.getCollectionNode=function*(t,n){let{childItems:r,title:i,children:a}=t,o=t.title||t.children,u=t.textValue||(typeof o=="string"?o:"")||t["aria-label"]||"";!u&&!(n!=null&&n.suppressTextValueWarning)&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:o,textValue:u,"aria-label":t["aria-label"],hasChildNodes:vH(t),*childNodes(){if(r)for(let l of r)yield{type:"item",value:l};else if(i){let l=[];C.Children.forEach(a,f=>{l.push({type:"item",element:f})}),yield*l}}}};function vH(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&C.Children.count(e.children)>0)}let bH=R_;class $H{build(t,n){return this.context=n,MD(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(C.isValidElement(n)&&n.type===C.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let a of r)yield*this.getFullNode({value:a,index:i},{renderer:n}),i++}else{let i=[];C.Children.forEach(n,o=>{o&&i.push(o)});let a=0;for(let o of i){let u=this.getFullNode({element:o,index:a},{});for(let l of u)a++,yield l}}}getKey(t,n,r,i){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let a=n.value;if(a!=null){var o;let u=(o=a.key)!==null&&o!==void 0?o:a.id;if(u==null)throw new Error("No key found for item");return u}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,i){if(C.isValidElement(t.element)&&t.element.type===C.Fragment){let D=[];C.Children.forEach(t.element.props.children,v=>{D.push(v)});var a;let $=(a=t.index)!==null&&a!==void 0?a:0;for(const v of D)yield*this.getFullNode({element:v,index:$++},n,r,i);return}let o=t.element;if(!o&&t.value&&n&&n.renderer){let D=this.cache.get(t.value);if(D&&(!D.shouldInvalidate||!D.shouldInvalidate(this.context))){D.index=t.index,D.parentKey=i?i.key:null,yield D;return}o=n.renderer(t.value)}if(C.isValidElement(o)){let D=o.type;if(typeof D!="function"&&typeof D.getCollectionNode!="function"){let T=o.type;throw new Error(`Unknown element <${T}> in collection.`)}let $=D.getCollectionNode(o.props,this.context);var u;let v=(u=t.index)!==null&&u!==void 0?u:0,w=$.next();for(;!w.done&&w.value;){let T=w.value;t.index=v;var l;let E=(l=T.key)!==null&&l!==void 0?l:null;E==null&&(E=T.element?null:this.getKey(o,t,n,r));let M=[...this.getFullNode({...T,key:E,index:v,wrapper:xH(t.wrapper,T.wrapper)},this.getChildState(n,T),r?`${r}${o.key}`:o.key,i)];for(let S of M){var f,d;S.value=(d=(f=T.value)!==null&&f!==void 0?f:t.value)!==null&&d!==void 0?d:null,S.value&&this.cache.set(S.value,S);var h;if(t.type&&S.type!==t.type)throw new Error(`Unsupported type <${Pg(S.type)}> in <${Pg((h=i==null?void 0:i.type)!==null&&h!==void 0?h:"unknown parent type")}>. Only <${Pg(t.type)}> is supported.`);v++,yield S}w=$.next(M)}return}if(t.key==null||t.type==null)return;let p=this;var g,y;let b={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:(g=t.value)!==null&&g!==void 0?g:null,level:i?i.level+1:0,index:t.index,rendered:t.rendered,textValue:(y=t.textValue)!==null&&y!==void 0?y:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:MD(function*(){if(!t.hasChildNodes||!t.childNodes)return;let D=0;for(let $ of t.childNodes()){$.key!=null&&($.key=`${b.key}${$.key}`);let v=p.getFullNode({...$,index:D},p.getChildState(n,$),b.key,b);for(let w of v)D++,yield w}})};yield b}constructor(){this.cache=new WeakMap}}function MD(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function xH(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function Pg(e){return e[0].toUpperCase()+e.slice(1)}function wH(e,t,n){let r=C.useMemo(()=>new $H,[]),{children:i,items:a,collection:o}=e;return C.useMemo(()=>{if(o)return o;let l=r.build({children:i,items:a},n);return t(l)},[r,i,a,o,n,t])}function hp(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function DH(e){return CH(e)}function CH(e,t){for(let n of e)return n}function _g(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...FD(e,t),t],i=[...FD(e,n),n],a=r.slice(0,i.length).findIndex((o,u)=>o!==i[u]);return a!==-1?(t=r[a],n=i[a],t.index-n.index):r.findIndex(o=>o===n)>=0?1:(i.findIndex(o=>o===t)>=0,-1)}function FD(e,t){let n=[],r=t;for(;(r==null?void 0:r.parentKey)!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}const kD=new WeakMap;function O_(e){let t=kD.get(e);if(t!=null)return t;let n=0,r=i=>{for(let a of i)a.type==="section"?r(hp(a,e)):n++};return r(e),kD.set(e,n),n}function EH(e,t,n){var r,i;let{key:a}=e,o=dp.get(t);var u;let l=(u=e.isDisabled)!==null&&u!==void 0?u:t.selectionManager.isDisabled(a);var f;let d=(f=e.isSelected)!==null&&f!==void 0?f:t.selectionManager.isSelected(a);var h;let p=(h=e.shouldSelectOnPressUp)!==null&&h!==void 0?h:o==null?void 0:o.shouldSelectOnPressUp;var g;let y=(g=e.shouldFocusOnHover)!==null&&g!==void 0?g:o==null?void 0:o.shouldFocusOnHover;var b;let D=(b=e.shouldUseVirtualFocus)!==null&&b!==void 0?b:o==null?void 0:o.shouldUseVirtualFocus;var $;let v=($=e.isVirtualized)!==null&&$!==void 0?$:o==null?void 0:o.isVirtualized,w=uu(),T=uu(),E={role:"option","aria-disabled":l||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?d:void 0};ia()&&S1()||(E["aria-label"]=e["aria-label"],E["aria-labelledby"]=w,E["aria-describedby"]=T);let A=t.collection.getItem(a);if(v){let k=Number(A==null?void 0:A.index);E["aria-posinset"]=Number.isNaN(k)?void 0:k+1,E["aria-setsize"]=O_(t.collection)}let M=o!=null&&o.onAction?()=>{var k;return o==null||(k=o.onAction)===null||k===void 0?void 0:k.call(o,a)}:void 0,S=A_(t,a),{itemProps:z,isPressed:j,isFocused:O,hasAction:Z,allowsSelection:R}=mH({selectionManager:t.selectionManager,key:a,ref:n,shouldSelectOnPressUp:p,allowsDifferentPressOrigin:p&&y,isVirtualized:v,shouldUseVirtualFocus:D,isDisabled:l,onAction:M||!(A==null||(r=A.props)===null||r===void 0)&&r.onAction?Uo(A==null||(i=A.props)===null||i===void 0?void 0:i.onAction,M):void 0,linkBehavior:o==null?void 0:o.linkBehavior,id:S}),{hoverProps:V}=Fz({isDisabled:l||!y,onHoverStart(){Vw()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(a))}}),W=ua(A==null?void 0:A.props);delete W.id;let L=fz(A==null?void 0:A.props);return{optionProps:{...E,...ft(W,z,V,L),id:S},labelProps:{id:w},descriptionProps:{id:T},isFocused:O,isFocusVisible:O&&Vw(),isSelected:d,isDisabled:l,isPressed:j,allowsSelection:R,hasAction:Z}}var M_={};M_={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var F_={};F_={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var k_={};k_={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var I_={};I_={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var B_={};B_={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var L_={};L_={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var V_={};V_={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var N_={};N_={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var j_={};j_={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var K_={};K_={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var U_={};U_={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var z_={};z_={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var q_={};q_={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var W_={};W_={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var H_={};H_={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var G_={};G_={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var Y_={};Y_={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var Z_={};Z_={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var J_={};J_={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var X_={};X_={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var Q_={};Q_={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var eR={};eR={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var tR={};tR={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var nR={};nR={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var rR={};rR={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var iR={};iR={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var aR={};aR={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var oR={};oR={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var sR={};sR={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var uR={};uR={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var lR={};lR={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var cR={};cR={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var fR={};fR={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var dR={};dR={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var hR={};hR={"ar-AE":M_,"bg-BG":F_,"cs-CZ":k_,"da-DK":I_,"de-DE":B_,"el-GR":L_,"en-US":V_,"es-ES":N_,"et-EE":j_,"fi-FI":K_,"fr-FR":U_,"he-IL":z_,"hr-HR":q_,"hu-HU":W_,"it-IT":H_,"ja-JP":G_,"ko-KR":Y_,"lt-LT":Z_,"lv-LV":J_,"nb-NO":X_,"nl-NL":Q_,"pl-PL":eR,"pt-BR":tR,"pt-PT":nR,"ro-RO":rR,"ru-RU":iR,"sk-SK":aR,"sl-SI":oR,"sr-SP":sR,"sv-SE":uR,"tr-TR":lR,"uk-UA":cR,"zh-CN":fR,"zh-TW":dR};function SH(e){return e&&e.__esModule?e.default:e}function TH(e,t,n){let{type:r="menu",isDisabled:i,trigger:a="press"}=e,o=Yn(),{triggerProps:u,overlayProps:l}=eH({type:r},t,n),f=g=>{if(!i&&!(a==="longPress"&&!g.altKey)&&n&&n.current)switch(g.key){case"Enter":case" ":if(a==="longPress")return;case"ArrowDown":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),t.toggle("last");break;default:"continuePropagation"in g&&g.continuePropagation()}},d=Ri(SH(hR),"@react-aria/menu"),{longPressProps:h}=LA({isDisabled:i||a!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),p={onPressStart(g){g.pointerType!=="touch"&&g.pointerType!=="keyboard"&&!i&&t.open(g.pointerType==="virtual"?"first":null)},onPress(g){g.pointerType==="touch"&&!i&&t.toggle()}};return delete u.onPress,{menuTriggerProps:{...u,...a==="press"?p:h,id:o,onKeyDown:f},menuProps:{...l,"aria-labelledby":o,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function AH(e){return e&&e.__esModule?e.default:e}function PH(e,t){let{buttonRef:n,popoverRef:r,inputRef:i,listBoxRef:a,keyboardDelegate:o,layoutDelegate:u,shouldFocusWrap:l,isReadOnly:f,isDisabled:d}=e,h=C.useRef(null);n=n??h;let p=Ri(AH(D_),"@react-aria/combobox"),{menuTriggerProps:g,menuProps:y}=TH({type:"listbox",isDisabled:d||f},t,n);dp.set(t,{id:y.id});let{collection:b}=t,{disabledKeys:D}=t.selectionManager,$=C.useMemo(()=>o||new __({collection:b,disabledKeys:D,ref:a,layoutDelegate:u}),[o,u,b,D,a]),{collectionProps:v}=P_({selectionManager:t.selectionManager,keyboardDelegate:$,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:l,ref:i,isVirtualized:!0}),w=np(),T=me=>{if(!me.nativeEvent.isComposing)switch(me.key){case"Enter":case"Tab":if(t.isOpen&&me.key==="Enter"&&me.preventDefault(),t.isOpen&&a.current&&t.selectionManager.focusedKey!=null&&t.selectionManager.isLink(t.selectionManager.focusedKey)){let ue=a.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);if(me.key==="Enter"&&ue instanceof HTMLAnchorElement){let Le=t.collection.getItem(t.selectionManager.focusedKey);Le&&w.open(ue,me,Le.props.href,Le.props.routerOptions)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&me.continuePropagation(),t.revert();break;case"ArrowDown":t.open("first","manual");break;case"ArrowUp":t.open("last","manual");break;case"ArrowLeft":case"ArrowRight":t.selectionManager.setFocusedKey(null);break}},E=me=>{var ue;let Le=(n==null?void 0:n.current)&&n.current===me.relatedTarget,nt=(ue=r.current)===null||ue===void 0?void 0:ue.contains(me.relatedTarget);Le||nt||(e.onBlur&&e.onBlur(me),t.setFocused(!1))},A=me=>{t.isFocused||(e.onFocus&&e.onFocus(me),t.setFocused(!0))},{isInvalid:M,validationErrors:S,validationDetails:z}=t.displayValidation,{labelProps:j,inputProps:O,descriptionProps:Z,errorMessageProps:R}=VW({...e,onChange:t.setInputValue,onKeyDown:f?e.onKeyDown:Uo(t.isOpen&&v.onKeyDown,T,e.onKeyDown),onBlur:E,value:t.inputValue,onFocus:A,autoComplete:"off",validate:void 0,[du]:t},i),V=me=>{if(me.pointerType==="touch"){var ue;(ue=i.current)===null||ue===void 0||ue.focus(),t.toggle(null,"manual")}},W=me=>{if(me.pointerType!=="touch"){var ue;(ue=i.current)===null||ue===void 0||ue.focus(),t.toggle(me.pointerType==="keyboard"||me.pointerType==="virtual"?"first":null,"manual")}},L=lu({id:g.id,"aria-label":p.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||j.id}),k=lu({id:y.id,"aria-label":p.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||j.id}),_=C.useRef(0),H=me=>{if(d||f)return;if(me.timeStamp-_.current<500){var ue;me.preventDefault(),(ue=i.current)===null||ue===void 0||ue.focus();return}let Le=me.target.getBoundingClientRect(),nt=me.changedTouches[0],Nt=Math.ceil(Le.left+.5*Le.width),Xn=Math.ceil(Le.top+.5*Le.height);if(nt.clientX===Nt&&nt.clientY===Xn){var Pt;me.preventDefault(),(Pt=i.current)===null||Pt===void 0||Pt.focus(),t.toggle(null,"manual"),_.current=me.timeStamp}},U=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var N;let ne=(N=U==null?void 0:U.parentKey)!==null&&N!==void 0?N:null;var ie;let ce=(ie=t.selectionManager.focusedKey)!==null&&ie!==void 0?ie:null,xe=C.useRef(ne),De=C.useRef(ce);C.useEffect(()=>{if(Id()&&U!=null&&ce!=null&&ce!==De.current){let ue=t.selectionManager.isSelected(ce),Le=ne!=null?t.collection.getItem(ne):null,nt=(Le==null?void 0:Le["aria-label"])||(typeof(Le==null?void 0:Le.rendered)=="string"?Le.rendered:"")||"";var me;let Nt=p.format("focusAnnouncement",{isGroupChange:(me=Le&&ne!==xe.current)!==null&&me!==void 0?me:!1,groupTitle:nt,groupCount:Le?[...hp(Le,t.collection)].length:0,optionText:U["aria-label"]||U.textValue||"",isSelected:ue});Js(Nt)}xe.current=ne,De.current=ce});let Ee=O_(t.collection),J=C.useRef(Ee),ye=C.useRef(t.isOpen);C.useEffect(()=>{let me=t.isOpen!==ye.current&&(t.selectionManager.focusedKey==null||Id());if(t.isOpen&&(me||Ee!==J.current)){let ue=p.format("countAnnouncement",{optionCount:Ee});Js(ue)}J.current=Ee,ye.current=t.isOpen});let we=C.useRef(t.selectedKey);return C.useEffect(()=>{if(Id()&&t.isFocused&&t.selectedItem&&t.selectedKey!==we.current){let me=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",ue=p.format("selectedAnnouncement",{optionText:me});Js(ue)}we.current=t.selectedKey}),C.useEffect(()=>{if(t.isOpen)return S_([i.current,r.current].filter(me=>me!=null))},[t.isOpen,i,r]),{labelProps:j,buttonProps:{...g,...L,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:V,onPressStart:W,isDisabled:d||f},inputProps:ft(O,{role:"combobox","aria-expanded":g["aria-expanded"],"aria-controls":t.isOpen?y.id:void 0,"aria-autocomplete":"list","aria-activedescendant":U?A_(t,U.key):void 0,onTouchEnd:H,autoCorrect:"off",spellCheck:"false"}),listBoxProps:ft(y,k,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:Z,errorMessageProps:R,isInvalid:M,validationErrors:S,validationDetails:z}}var pR={};pR={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var mR={};mR={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var gR={};gR={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var yR={};yR={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var vR={};vR={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Anfangsdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var bR={};bR={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var $R={};$R={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var xR={};xR={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var wR={};wR={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var DR={};DR={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var CR={};CR={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var ER={};ER={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var SR={};SR={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var TR={};TR={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var AR={};AR={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var PR={};PR={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var _R={};_R={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var RR={};RR={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var OR={};OR={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var MR={};MR={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var FR={};FR={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var kR={};kR={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var IR={};IR={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var BR={};BR={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var LR={};LR={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var VR={};VR={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var NR={};NR={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var jR={};jR={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var KR={};KR={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var UR={};UR={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var zR={};zR={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var qR={};qR={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var WR={};WR={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var HR={};HR={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var Yc={};Yc={"ar-AE":pR,"bg-BG":mR,"cs-CZ":gR,"da-DK":yR,"de-DE":vR,"el-GR":bR,"en-US":$R,"es-ES":xR,"et-EE":wR,"fi-FI":DR,"fr-FR":CR,"he-IL":ER,"hr-HR":SR,"hu-HU":TR,"it-IT":AR,"ja-JP":PR,"ko-KR":_R,"lt-LT":RR,"lv-LV":OR,"nb-NO":MR,"nl-NL":FR,"pl-PL":kR,"pt-BR":IR,"pt-PT":BR,"ro-RO":LR,"ru-RU":VR,"sk-SK":NR,"sl-SI":jR,"sr-SP":KR,"sv-SE":UR,"tr-TR":zR,"uk-UA":qR,"zh-CN":WR,"zh-TW":HR};function H1(e,t,n){let{direction:r}=Sn(),i=C.useMemo(()=>ap(t),[t]),a=l=>{if(l.currentTarget.contains(l.target)&&(l.altKey&&(l.key==="ArrowDown"||l.key==="ArrowUp")&&"setOpen"in e&&(l.preventDefault(),l.stopPropagation(),e.setOpen(!0)),!n))switch(l.key){case"ArrowLeft":l.preventDefault(),l.stopPropagation(),r==="rtl"?i.focusNext():i.focusPrevious();break;case"ArrowRight":l.preventDefault(),l.stopPropagation(),r==="rtl"?i.focusPrevious():i.focusNext();break}},o=()=>{var l;if(!t.current)return;let f=(l=window.event)===null||l===void 0?void 0:l.target,d=Wn(t.current,{tabbable:!0});if(f&&(d.currentNode=f,f=d.previousNode()),!f){let h;do h=d.lastChild(),h&&(f=h);while(h)}for(;f!=null&&f.hasAttribute("data-placeholder");){let h=d.previousNode();if(h&&h.hasAttribute("data-placeholder"))f=h;else break}f&&f.focus()},{pressProps:u}=Kc({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&o()},onPress(l){l.pointerType!=="mouse"&&o()}});return ft(u,{onKeyDown:a})}function _H(e){return e&&e.__esModule?e.default:e}const GR=new WeakMap,ac="__role_"+Date.now(),YR="__focusManager_"+Date.now();function ZR(e,t,n){var r;let{isInvalid:i,validationErrors:a,validationDetails:o}=t.displayValidation,{labelProps:u,fieldProps:l,descriptionProps:f,errorMessageProps:d}=fp({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||a}),h=C.useRef(null),{focusWithinProps:p}=Au({...e,onFocusWithin(j){var O;h.current=t.value,(O=e.onFocus)===null||O===void 0||O.call(e,j)},onBlurWithin:j=>{var O;t.confirmPlaceholder(),t.value!==h.current&&t.commitValidation(),(O=e.onBlur)===null||O===void 0||O.call(e,j)},onFocusWithinChange:e.onFocusChange}),g=Ri(_H(Yc),"@react-aria/datepicker"),y=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",b=t.maxGranularity==="hour"?"time":"date",D=t.value?g.format(y,{[b]:t.formatValue({month:"long"})}):"",$=Nc(D),v=e[ac]==="presentation"?l["aria-describedby"]:[$["aria-describedby"],l["aria-describedby"]].filter(Boolean).join(" ")||void 0,w=e[YR],T=C.useMemo(()=>w||ap(n),[w,n]),E=H1(t,n,e[ac]==="presentation");GR.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[u.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:v,focusManager:T});let A=C.useRef(e.autoFocus),M;e[ac]==="presentation"?M={role:"presentation"}:M=ft(l,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":v}),C.useEffect(()=>{A.current&&T.focusFirst(),A.current=!1},[T]),A1(e.inputRef,t.value,t.setValue),s6({...e,focus(){T.focusFirst()}},t,e.inputRef);let S={type:"hidden",name:e.name,value:((r=t.value)===null||r===void 0?void 0:r.toString())||"",disabled:e.isDisabled};e.validationBehavior==="native"&&(S.type="text",S.hidden=!0,S.required=e.isRequired,S.onChange=()=>{});let z=ua(e);return{labelProps:{...u,onClick:()=>{T.focusFirst()}},fieldProps:ft(z,M,E,p,{onKeyDown(j){e.onKeyDown&&e.onKeyDown(j)},onKeyUp(j){e.onKeyUp&&e.onKeyUp(j)}}),inputProps:S,descriptionProps:f,errorMessageProps:d,isInvalid:i,validationErrors:a,validationDetails:o}}function RH(e,t,n){var r;let i=ZR(e,t,n);return i.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",i}function OH(e){return e&&e.__esModule?e.default:e}function MH(e,t,n){let r=Yn(),i=Yn(),a=Yn(),o=Ri(OH(Yc),"@react-aria/datepicker"),{isInvalid:u,validationErrors:l,validationDetails:f}=t.displayValidation,{labelProps:d,fieldProps:h,descriptionProps:p,errorMessageProps:g}=fp({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||l}),y=H1(t,n),b=h["aria-labelledby"]||h.id,{locale:D}=Sn(),$=t.formatValue(D,{month:"long"}),v=$?o.format("selectedDateDescription",{date:$}):"",w=Nc(v),T=[w["aria-describedby"],h["aria-describedby"]].filter(Boolean).join(" ")||void 0,E=ua(e),A=C.useMemo(()=>ap(n),[n]),{focusWithinProps:M}=Au({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:ft(E,y,h,w,M,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":b,"aria-describedby":T,onKeyDown(S){t.isOpen||e.onKeyDown&&e.onKeyDown(S)},onKeyUp(S){t.isOpen||e.onKeyUp&&e.onKeyUp(S)}}),labelProps:{...d,onClick:()=>{A.focusFirst()}},fieldProps:{...h,id:a,[ac]:"presentation","aria-describedby":T,value:t.value,onChange:t.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[du]:t,autoFocus:e.autoFocus,name:e.name},descriptionProps:p,errorMessageProps:g,buttonProps:{...w,id:r,"aria-haspopup":"dialog","aria-label":o.format("calendar"),"aria-labelledby":`${r} ${b}`,"aria-describedby":T,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:i,"aria-labelledby":`${r} ${b}`},calendarProps:{autoFocus:!0,value:t.dateValue,onChange:t.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:t.dateValue?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:u,validationErrors:l,validationDetails:f}}function FH(e){return e&&e.__esModule?e.default:e}function kH(){let{locale:e}=Sn(),t=zA(FH(Yc),"@react-aria/datepicker");return C.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new IH(e,t)}},[e,t])}class IH{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function BH(e,t,n){let r=C.useRef(""),{locale:i}=Sn(),a=kH(),{ariaLabel:o,ariaLabelledBy:u,ariaDescribedBy:l,focusManager:f}=GR.get(t),d=e.isPlaceholder?"":e.text,h=C.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),p=$i({month:"long",timeZone:h.timeZone}),g=$i({hour:"numeric",hour12:h.hour12,timeZone:h.timeZone});if(e.type==="month"&&!e.isPlaceholder){let _=p.format(t.dateValue);d=_!==d?`${d} – ${_}`:_}else e.type==="hour"&&!e.isPlaceholder&&(d=g.format(t.dateValue));let{spinButtonProps:y}=jW({value:e.value,textValue:d,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{r.current="",t.increment(e.type)},onDecrement:()=>{r.current="",t.decrement(e.type)},onIncrementPage:()=>{r.current="",t.incrementPage(e.type)},onDecrementPage:()=>{r.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{r.current="",e.maxValue!==void 0&&t.setSegment(e.type,e.maxValue)},onDecrementToMin:()=>{r.current="",e.minValue!==void 0&&t.setSegment(e.type,e.minValue)}}),b=C.useMemo(()=>new $P(i,{maximumFractionDigits:0}),[i]),D=()=>{if(e.text===e.placeholder&&f.focusPrevious(),b.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let _=e.text.slice(0,-1),H=b.parse(_);_=H===0?"":_,_.length===0||H===0?t.clearSegment(e.type):t.setSegment(e.type,H),r.current=_}else e.type==="dayPeriod"&&t.clearSegment(e.type)},$=_=>{if(_.key==="a"&&(ia()?_.metaKey:_.ctrlKey)&&_.preventDefault(),!(_.ctrlKey||_.metaKey||_.shiftKey||_.altKey))switch(_.key){case"Backspace":case"Delete":_.preventDefault(),_.stopPropagation(),D();break}},{startsWith:v}=wP({sensitivity:"base"}),w=$i({hour:"numeric",hour12:!0}),T=C.useMemo(()=>{let _=new Date;return _.setHours(0),w.formatToParts(_).find(H=>H.type==="dayPeriod").value},[w]),E=C.useMemo(()=>{let _=new Date;return _.setHours(12),w.formatToParts(_).find(H=>H.type==="dayPeriod").value},[w]),A=$i({year:"numeric",era:"narrow",timeZone:"UTC"}),M=C.useMemo(()=>{if(e.type!=="era")return[];let _=Lt(new Yt(1,1,1),t.calendar),H=t.calendar.getEras().map(N=>{let ne=_.set({year:1,month:1,day:1,era:N}).toDate("UTC"),ce=A.formatToParts(ne).find(xe=>xe.type==="era").value;return{era:N,formatted:ce}}),U=LH(H.map(N=>N.formatted));if(U)for(let N of H)N.formatted=N.formatted.slice(U);return H},[A,t.calendar,e.type]),S=_=>{if(t.isDisabled||t.isReadOnly)return;let H=r.current+_;switch(e.type){case"dayPeriod":if(v(T,_))t.setSegment("dayPeriod",0);else if(v(E,_))t.setSegment("dayPeriod",12);else break;f.focusNext();break;case"era":{let U=M.find(N=>v(N.formatted,_));U&&(t.setSegment("era",U.era),f.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!b.isValidPartialNumber(H))return;let U=b.parse(H),N=U,ne=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":U>11&&(N=b.parse(_));break;case"h12":ne=!1,U>12&&(N=b.parse(_));break}e.value!==void 0&&e.value>=12&&U>1&&(U+=12)}else e.maxValue!==void 0&&U>e.maxValue&&(N=b.parse(_));if(isNaN(U))return;let ie=N!==0||ne;ie&&t.setSegment(e.type,N),e.maxValue!==void 0&&(+(U+"0")>e.maxValue||H.length>=String(e.maxValue).length)?(r.current="",ie&&f.focusNext()):r.current=H;break}}},z=()=>{r.current="",n.current&&uh(n.current,{containingElement:rp(n.current)});let _=window.getSelection();_==null||_.collapse(n.current)},j=C.useRef(typeof document<"u"?document:null);bi(j,"selectionchange",()=>{var _;let H=window.getSelection();H!=null&&H.anchorNode&&(!((_=n.current)===null||_===void 0)&&_.contains(H==null?void 0:H.anchorNode))&&H.collapse(n.current)});let O=C.useRef("");bi(n,"beforeinput",_=>{if(n.current)switch(_.preventDefault(),_.inputType){case"deleteContentBackward":case"deleteContentForward":b.isValidPartialNumber(e.text)&&!t.isReadOnly&&D();break;case"insertCompositionText":O.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:_.data!=null&&S(_.data);break}}),bi(n,"input",_=>{let{inputType:H,data:U}=_;switch(H){case"insertCompositionText":n.current&&(n.current.textContent=O.current),U!=null&&(v(T,U)||v(E,U))&&S(U);break}}),Ct(()=>{let _=n.current;return()=>{document.activeElement===_&&(f.focusPrevious()||f.focusNext())}},[n,f]);let Z=Vc()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},R=C.useMemo(()=>t.segments.find(_=>_.isEditable),[t.segments]);e!==R&&!t.isInvalid&&(l=void 0);let V=Yn(),W=!t.isDisabled&&!t.isReadOnly&&e.isEditable,L=e.type==="literal"?"":a.of(e.type),k=lu({"aria-label":`${L}${o?`, ${o}`:""}${u?", ":""}`,"aria-labelledby":u});return e.type==="literal"?{segmentProps:{"aria-hidden":!0}}:{segmentProps:ft(y,k,{id:V,...Z,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":l,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:W,suppressContentEditableWarning:W,spellCheck:W?"false":void 0,autoCorrect:W?"off":void 0,[parseInt(C.version,10)>=17?"enterKeyHint":"enterkeyhint"]:W?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!W?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:$,onFocus:z,style:{caretColor:"transparent"},onPointerDown(_){_.stopPropagation()},onMouseDown(_){_.stopPropagation()}})}}function LH(e){e.sort();let t=e[0],n=e[e.length-1];for(let r=0;r<t.length;r++)if(t[r]!==n[r])return r;return 0}function VH(e){return e&&e.__esModule?e.default:e}function NH(e,t,n){var r,i,a;let o=Ri(VH(Yc),"@react-aria/datepicker"),{isInvalid:u,validationErrors:l,validationDetails:f}=t.displayValidation,{labelProps:d,fieldProps:h,descriptionProps:p,errorMessageProps:g}=fp({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||l}),y=h["aria-labelledby"]||h.id,{locale:b}=Sn(),D=t.formatValue(b,{month:"long"}),$=D?o.format("selectedRangeDescription",{startDate:D.start,endDate:D.end}):"",v=Nc($),w={"aria-label":o.format("startDate"),"aria-labelledby":y},T={"aria-label":o.format("endDate"),"aria-labelledby":y},E=Yn(),A=Yn(),M=H1(t,n),S=[v["aria-describedby"],h["aria-describedby"]].filter(Boolean).join(" ")||void 0,z=C.useMemo(()=>ap(n,{accept:k=>k.id!==E}),[n,E]),j={[YR]:z,[ac]:"presentation","aria-describedby":S,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},O=ua(e),{focusWithinProps:Z}=Au({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),R=C.useRef(Co),V=C.useRef(Co);var W,L;return{groupProps:ft(O,M,h,v,Z,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":S,onKeyDown(k){t.isOpen||e.onKeyDown&&e.onKeyDown(k)},onKeyUp(k){t.isOpen||e.onKeyUp&&e.onKeyUp(k)}}),labelProps:{...d,onClick:()=>{z.focusFirst()}},buttonProps:{...v,id:E,"aria-haspopup":"dialog","aria-label":o.format("calendar"),"aria-labelledby":`${E} ${y}`,"aria-describedby":S,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:A,"aria-labelledby":`${E} ${y}`},startFieldProps:{...w,...j,value:(W=(r=t.value)===null||r===void 0?void 0:r.start)!==null&&W!==void 0?W:null,onChange:k=>t.setDateTime("start",k),autoFocus:e.autoFocus,name:e.startName,[du]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(k){R.current=k,t.updateValidation(yh(k,V.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...T,...j,value:(L=(i=t.value)===null||i===void 0?void 0:i.end)!==null&&L!==void 0?L:null,onChange:k=>t.setDateTime("end",k),name:e.endName,[du]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(k){V.current=k,t.updateValidation(yh(R.current,k))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:p,errorMessageProps:g,calendarProps:{autoFocus:!0,value:!((a=t.dateRange)===null||a===void 0)&&a.start&&t.dateRange.end?t.dateRange:null,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:u,validationErrors:l,validationDetails:f}}function jH(e,t){let{role:n="dialog"}=e,r=uu();r=e["aria-label"]?void 0:r;let i=C.useRef(!1);return C.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Wo(t.current);let a=setTimeout(()=>{document.activeElement===t.current&&(i.current=!0,t.current&&(t.current.blur(),Wo(t.current)),i.current=!1)},500);return()=>{clearTimeout(a)}}},[t]),cH(),{dialogProps:{...ua(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:a=>{i.current&&a.stopPropagation()}},titleProps:{id:r}}}function Qs(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function h0(e,t,n,r,i){let a={};for(let u in t)a[u]=Math.floor(t[u]/2),a[u]>0&&t[u]%2===0&&a[u]--;let o=Po(e,t,n).subtract(a);return xc(e,o,t,n,r,i)}function Po(e,t,n,r,i){let a=e;return t.years?a=cq(e):t.months?a=qc(e):t.weeks&&(a=gc(e,n)),xc(e,a,t,n,r,i)}function p0(e,t,n,r,i){let a={...t};a.days?a.days--:a.weeks?a.weeks--:a.months?a.months--:a.years&&a.years--;let o=Po(e,t,n).subtract(a);return xc(e,o,t,n,r,i)}function xc(e,t,n,r,i,a){if(i&&e.compare(i)>=0){let o=I1(t,Po(kn(i),n,r));o&&(t=o)}if(a&&e.compare(a)<=0){let o=k1(t,p0(kn(a),n,r));o&&(t=o)}return t}function Pa(e,t,n){if(t){let r=I1(e,kn(t));r&&(e=r)}if(n){let r=k1(e,kn(n));r&&(e=r)}return e}function JR(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:null}function XR(e){let t=C.useMemo(()=>new Er(e.locale),[e.locale]),n=C.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:a={months:1},minValue:o,maxValue:u,selectionAlignment:l,isDateUnavailable:f,pageBehavior:d="visible",firstDayOfWeek:h}=e,p=C.useMemo(()=>i(n.calendar),[i,n.calendar]);var g;let[y,b]=ar(e.value,(g=e.defaultValue)!==null&&g!==void 0?g:null,e.onChange),D=C.useMemo(()=>y?Lt(kn(y),p):null,[y,p]),$=C.useMemo(()=>y&&"timeZone"in y?y.timeZone:n.timeZone,[y,n.timeZone]),v=C.useMemo(()=>e.focusedValue?Pa(Lt(kn(e.focusedValue),p),o,u):void 0,[e.focusedValue,p,o,u]),w=C.useMemo(()=>Pa(e.defaultFocusedValue?Lt(kn(e.defaultFocusedValue),p):D||Lt(sp($),p),o,u),[e.defaultFocusedValue,D,$,p,o,u]),[T,E]=ar(v,w,e.onFocusChange),[A,M]=C.useState(()=>{switch(l){case"start":return Po(T,a,r,o,u);case"end":return p0(T,a,r,o,u);case"center":default:return h0(T,a,r,o,u)}}),[S,z]=C.useState(e.autoFocus||!1),j=C.useMemo(()=>{let N={...a};return N.days?N.days--:N.days=-1,A.add(N)},[A,a]),[O,Z]=C.useState(p.identifier);if(p.identifier!==O){let N=Lt(T,p);M(h0(N,a,r,o,u)),E(N),Z(p.identifier)}Qs(T,o,u)?E(Pa(T,o,u)):T.compare(A)<0?M(p0(T,a,r,o,u)):T.compare(j)>0&&M(Po(T,a,r,o,u));function R(N){N=Pa(N,o,u),E(N)}function V(N){if(!e.isDisabled&&!e.isReadOnly){let ne=N;if(ne===null){b(null);return}if(ne=Pa(ne,o,u),ne=JR(ne,A,f),!ne)return;ne=Lt(ne,(y==null?void 0:y.calendar)||new In),y&&"hour"in y?b(y.set(ne)):b(ne)}}let W=C.useMemo(()=>D?f&&f(D)?!0:Qs(D,o,u):!1,[D,f,o,u]),L=e.isInvalid||e.validationState==="invalid"||W,k=L?"invalid":null,_=C.useMemo(()=>d==="visible"?a:Rg(a),[d,a]);var H,U;return{isDisabled:(H=e.isDisabled)!==null&&H!==void 0?H:!1,isReadOnly:(U=e.isReadOnly)!==null&&U!==void 0?U:!1,value:D,setValue:V,visibleRange:{start:A,end:j},minValue:o,maxValue:u,focusedDate:T,timeZone:$,validationState:k,isValueInvalid:L,setFocusedDate(N){R(N),z(!0)},focusNextDay(){R(T.add({days:1}))},focusPreviousDay(){R(T.subtract({days:1}))},focusNextRow(){a.days?this.focusNextPage():(a.weeks||a.months||a.years)&&R(T.add({weeks:1}))},focusPreviousRow(){a.days?this.focusPreviousPage():(a.weeks||a.months||a.years)&&R(T.subtract({weeks:1}))},focusNextPage(){let N=A.add(_);E(Pa(T.add(_),o,u)),M(Po(xc(T,N,_,r,o,u),_,r))},focusPreviousPage(){let N=A.subtract(_);E(Pa(T.subtract(_),o,u)),M(Po(xc(T,N,_,r,o,u),_,r))},focusSectionStart(){a.days?R(A):a.weeks?R(gc(T,r)):(a.months||a.years)&&R(qc(T))},focusSectionEnd(){a.days?R(j):a.weeks?R(hq(T,r)):(a.months||a.years)&&R(Qb(T))},focusNextSection(N){if(!N&&!a.days){R(T.add(Rg(a)));return}a.days?this.focusNextPage():a.weeks?R(T.add({months:1})):(a.months||a.years)&&R(T.add({years:1}))},focusPreviousSection(N){if(!N&&!a.days){R(T.subtract(Rg(a)));return}a.days?this.focusPreviousPage():a.weeks?R(T.subtract({months:1})):(a.months||a.years)&&R(T.subtract({years:1}))},selectFocusedDate(){f&&f(T)||V(T)},selectDate(N){V(N)},isFocused:S,setFocused:z,isInvalid(N){return Qs(N,o,u)},isSelected(N){return D!=null&&on(N,D)&&!this.isCellDisabled(N)&&!this.isCellUnavailable(N)},isCellFocused(N){return S&&T&&on(N,T)},isCellDisabled(N){return e.isDisabled||N.compare(A)<0||N.compare(j)>0||this.isInvalid(N)},isCellUnavailable(N){return e.isDateUnavailable?e.isDateUnavailable(N):!1},isPreviousVisibleRangeInvalid(){let N=A.subtract({days:1});return on(N,A)||this.isInvalid(N)},isNextVisibleRangeInvalid(){let N=j.add({days:1});return on(N,j)||this.isInvalid(N)},getDatesInWeek(N,ne=A){let ie=ne.add({weeks:N}),ce=[];ie=gc(ie,r,h);let xe=F1(ie,r,h);for(let De=0;De<xe;De++)ce.push(null);for(;ce.length<7;){ce.push(ie);let De=ie.add({days:1});if(on(ie,De))break;ie=De}for(;ce.length<7;)ce.push(null);return ce}}}function Rg(e){let t={...e};for(let n in e)t[n]=1;return t}function KH(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:a,visibleDuration:o={months:1},minValue:u,maxValue:l,...f}=e,[d,h]=ar(t,n||null,r),[p,g]=C.useState(null),y="center";if(d&&d.start&&d.end){let _=h0(kn(d.start),o,a,u,l).add(o).subtract({days:1});d.end.compare(_)>0&&(y="start")}let b=C.useRef(null),[D,$]=C.useState(null),v=C.useMemo(()=>I1(u,D==null?void 0:D.start),[u,D]),w=C.useMemo(()=>k1(l,D==null?void 0:D.end),[l,D]),T=XR({...f,value:d&&d.start,createCalendar:i,locale:a,visibleDuration:o,minValue:v,maxValue:w,selectionAlignment:y}),E=k=>{if(k&&e.isDateUnavailable&&!e.allowsNonContiguousRanges){const _=BD(k,T,-1),H=BD(k,T,1);b.current={start:_,end:H},$(b.current)}else b.current=null,$(null)},[A,M]=C.useState(T.visibleRange);(!Xb(T.visibleRange.start,A.start)||!Xb(T.visibleRange.end,A.end))&&(E(p),M(T.visibleRange));let S=k=>{k?(g(k),E(k)):(g(null),E(null))},z=p?Og(p,T.focusedDate):d&&Og(d.start,d.end),j=k=>{if(e.isReadOnly)return;const _=Pa(k,v,w),H=JR(_,T.visibleRange.start,e.isDateUnavailable);if(H)if(!p)S(H);else{let U=Og(p,H);U&&h({start:ID(U.start,d==null?void 0:d.start),end:ID(U.end,d==null?void 0:d.end)}),S(null)}},[O,Z]=C.useState(!1),{isDateUnavailable:R}=e,V=C.useMemo(()=>!d||p?!1:R&&(R(d.start)||R(d.end))?!0:Qs(d.start,u,l)||Qs(d.end,u,l),[R,d,p,u,l]),W=e.isInvalid||e.validationState==="invalid"||V;return{...T,value:d,setValue:h,anchorDate:p,setAnchorDate:S,highlightedRange:z,validationState:W?"invalid":null,isValueInvalid:W,selectFocusedDate(){j(T.focusedDate)},selectDate:j,highlightDate(k){p&&T.setFocusedDate(k)},isSelected(k){return!!(z&&k.compare(z.start)>=0&&k.compare(z.end)<=0&&!T.isCellDisabled(k)&&!T.isCellUnavailable(k))},isInvalid(k){var _,H;return T.isInvalid(k)||Qs(k,(_=b.current)===null||_===void 0?void 0:_.start,(H=b.current)===null||H===void 0?void 0:H.end)},isDragging:O,setDragging:Z}}function Og(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:kn(e),end:kn(t)})}function ID(e,t){return e=Lt(e,(t==null?void 0:t.calendar)||new In),t&&"hour"in t?t.set(e):e}function BD(e,t,n){let r=e.add({days:n});for(;(n<0?r.compare(t.visibleRange.start)>=0:r.compare(t.visibleRange.end)<=0)&&!t.isCellUnavailable(r);)r=r.add({days:n});if(t.isCellUnavailable(r))return r.add({days:-n})}class m0{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(t){let n=this.keyMap.get(t);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return(n==null?void 0:n.childNodes)||[]}constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let n=o=>{if(this.keyMap.set(o.key,o),o.childNodes&&o.type==="section")for(let u of o.childNodes)n(u)};for(let o of t)n(o);let r=null,i=0;for(let[o,u]of this.keyMap)r?(r.nextKey=o,u.prevKey=r.key):(this.firstKey=o,u.prevKey=void 0),u.type==="item"&&(u.index=i++),r=u,r.nextKey=void 0;var a;this.lastKey=(a=r==null?void 0:r.key)!==null&&a!==void 0?a:null}}class Nr extends Set{constructor(t,n,r){super(t),t instanceof Nr?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function UH(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function zH(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:a="all"}=e,o=C.useRef(!1),[,u]=C.useState(!1),l=C.useRef(null),f=C.useRef(null),[,d]=C.useState(null),h=C.useMemo(()=>LD(e.selectedKeys),[e.selectedKeys]),p=C.useMemo(()=>LD(e.defaultSelectedKeys,new Nr),[e.defaultSelectedKeys]),[g,y]=ar(h,p,e.onSelectionChange),b=C.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[D,$]=C.useState(i);i==="replace"&&D==="toggle"&&typeof g=="object"&&g.size===0&&$("replace");let v=C.useRef(i);return C.useEffect(()=>{i!==v.current&&($(i),v.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:D,setSelectionBehavior:$,get isFocused(){return o.current},setFocused(w){o.current=w,u(w)},get focusedKey(){return l.current},get childFocusStrategy(){return f.current},setFocusedKey(w,T="first"){l.current=w,f.current=T,d(w)},selectedKeys:g,setSelectedKeys(w){(r||!UH(w,g))&&y(w)},disabledKeys:b,disabledBehavior:a}}function LD(e,t){return e?e==="all"?"all":new Nr(e):t}class qH{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,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}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 n=this.getKey(t);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!t||i&&_g(this.collection,i,t)<0)&&(t=i)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!t||i&&_g(this.collection,i,t)>0)&&(t=i)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n: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 n=this.getKey(t);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new Nr([n],n,n);else{let o=this.state.selectedKeys;var i;let u=(i=o.anchorKey)!==null&&i!==void 0?i:n;r=new Nr(o,u,n);var a;for(let l of this.getKeyRange(u,(a=o.currentKey)!==null&&a!==void 0?a:n))r.delete(l);for(let l of this.getKeyRange(n,u))this.canSelectItem(l)&&r.add(l)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),i=this.collection.getItem(n);return r&&i?_g(this.collection,r,i)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let i=[],a=t;for(;a!=null;){let o=this.collection.getItem(a);if(o&&(o.type==="item"||o.type==="cell"&&this.allowsCellSelection)&&i.push(a),a===n)return i;a=this.collection.getKeyAfter(a)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r=new Nr(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none")return;let n=this.getKey(t);if(n==null)return;let r=this.canSelectItem(n)?new Nr([n],n,n):new Nr;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new Nr;for(let r of t){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let o=this.collection.getItem(r);(o==null?void 0:o.type)==="item"&&t.push(r);var a;o!=null&&o.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&n((a=(i=DH(hp(o,this.collection)))===null||i===void 0?void 0:i.key)!==null&&a!==void 0?a:null)}r=this.collection.getKeyAfter(r)}};return n(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 Nr)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(t){var n;return(n=this.collection.getItem(t))===null||n===void 0?void 0:n.props}constructor(t,n,r){this.collection=t,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function WH(e){let{filter:t,layoutDelegate:n}=e,r=zH(e),i=C.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=C.useCallback(d=>t?new m0(t(d)):new m0(d),[t]),o=C.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),u=wH(e,a,o),l=C.useMemo(()=>new qH(u,r,{layoutDelegate:n}),[u,r,n]);const f=C.useRef(null);return C.useEffect(()=>{if(r.focusedKey!=null&&!u.getItem(r.focusedKey)&&f.current){const $=f.current.getItem(r.focusedKey),v=[...f.current.getKeys()].map(S=>{const z=f.current.getItem(S);return(z==null?void 0:z.type)==="item"?z:null}).filter(S=>S!==null),w=[...u.getKeys()].map(S=>{const z=u.getItem(S);return(z==null?void 0:z.type)==="item"?z:null}).filter(S=>S!==null);var d,h;const T=((d=v==null?void 0:v.length)!==null&&d!==void 0?d:0)-((h=w==null?void 0:w.length)!==null&&h!==void 0?h:0);var p,g,y;let E=Math.min(T>1?Math.max(((p=$==null?void 0:$.index)!==null&&p!==void 0?p:0)-T+1,0):(g=$==null?void 0:$.index)!==null&&g!==void 0?g:0,((y=w==null?void 0:w.length)!==null&&y!==void 0?y:0)-1),A=null,M=!1;for(;E>=0;){if(!l.isDisabled(w[E].key)){A=w[E];break}if(E<w.length-1&&!M)E++;else{M=!0;var b,D;E>((b=$==null?void 0:$.index)!==null&&b!==void 0?b:0)&&(E=(D=$==null?void 0:$.index)!==null&&D!==void 0?D:0),E--}}r.setFocusedKey(A?A.key:null)}f.current=u},[u,l,r,r.focusedKey]),{collection:u,disabledKeys:i,selectionManager:l}}function HH(e){var t;let[n,r]=ar(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),i=C.useMemo(()=>n!=null?[n]:[],[n]),{collection:a,disabledKeys:o,selectionManager:u}=WH({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:f=>{if(f==="all")return;var d;let h=(d=f.values().next().value)!==null&&d!==void 0?d:null;h===n&&e.onSelectionChange&&e.onSelectionChange(h),r(h)}}),l=n!=null?a.getItem(n):null;return{collection:a,disabledKeys:o,selectionManager:u,selectedKey:n,setSelectedKey:r,selectedItem:l}}function G1(e){let[t,n]=ar(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=C.useCallback(()=>{n(!0)},[n]),i=C.useCallback(()=>{n(!1)},[n]),a=C.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:a}}function GH(e){var t;let{defaultFilter:n,menuTrigger:r="input",allowsEmptyCollection:i=!1,allowsCustomValue:a,shouldCloseOnBlur:o=!0}=e,[u,l]=C.useState(!1),[f,d]=C.useState(!1),[h,p]=C.useState(null),g=Q=>{e.onSelectionChange&&e.onSelectionChange(Q),Q===$&&(ce(),N())};var y;let{collection:b,selectionManager:D,selectedKey:$,setSelectedKey:v,selectedItem:w,disabledKeys:T}=HH({...e,onSelectionChange:g,items:(y=e.items)!==null&&y!==void 0?y:e.defaultItems}),E=e.defaultInputValue;if(E==null){var A,M;$==null?E="":E=(M=(A=b.getItem($))===null||A===void 0?void 0:A.textValue)!==null&&M!==void 0?M:""}let[S,z]=ar(e.inputValue,E,e.onInputChange),j=b,O=C.useMemo(()=>e.items!=null||!n?b:YH(b,S,n),[b,S,n,e.items]),[Z,R]=C.useState(O),V=C.useRef("focus"),L=G1({...e,onOpenChange:Q=>{e.onOpenChange&&e.onOpenChange(Q,Q?V.current:void 0),D.setFocused(Q),Q||D.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),k=(Q=null,re)=>{let ve=re==="manual"||re==="focus"&&r==="focus";(i||O.size>0||ve&&j.size>0||e.items)&&(ve&&!L.isOpen&&e.items===void 0&&l(!0),V.current=re,p(Q),L.open())},_=(Q=null,re)=>{let ve=re==="manual"||re==="focus"&&r==="focus";!(i||O.size>0||ve&&j.size>0||e.items)&&!L.isOpen||(ve&&!L.isOpen&&e.items===void 0&&l(!0),L.isOpen||(V.current=re),U(Q))},H=C.useCallback(()=>{R(u?j:O)},[u,j,O]),U=C.useCallback((Q=null)=>{L.isOpen&&H(),p(Q),L.toggle()},[L,H]),N=C.useCallback(()=>{L.isOpen&&(H(),L.close())},[L,H]),[ne,ie]=C.useState(S),ce=()=>{var Q,re;let ve=$!=null&&(re=(Q=b.getItem($))===null||Q===void 0?void 0:Q.textValue)!==null&&re!==void 0?re:"";ie(ve),z(ve)};var xe,De;let Ee=C.useRef((De=(xe=e.selectedKey)!==null&&xe!==void 0?xe:e.defaultSelectedKey)!==null&&De!==void 0?De:null);var J;let ye=C.useRef($!=null&&(J=(t=b.getItem($))===null||t===void 0?void 0:t.textValue)!==null&&J!==void 0?J:"");C.useEffect(()=>{var Q;f&&(O.size>0||i)&&!L.isOpen&&S!==ne&&r!=="manual"&&k(null,"input"),!u&&!i&&L.isOpen&&O.size===0&&N(),$!=null&&$!==Ee.current&&N(),S!==ne&&(D.setFocusedKey(null),l(!1),S===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&v(null)),$!==Ee.current&&(e.inputValue===void 0||e.selectedKey===void 0)?ce():ne!==S&&ie(S);var re;let ve=$!=null&&(re=(Q=b.getItem($))===null||Q===void 0?void 0:Q.textValue)!==null&&re!==void 0?re:"";!f&&$!=null&&e.inputValue===void 0&&$===Ee.current&&ye.current!==ve&&(ie(ve),z(ve)),Ee.current=$,ye.current=ve});let we=Gc({...e,value:C.useMemo(()=>({inputValue:S,selectedKey:$}),[S,$])}),me=()=>{a&&$==null?ue():Le()},ue=()=>{Ee.current=null,v(null),N()},Le=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var Q,re;(Q=e.onSelectionChange)===null||Q===void 0||Q.call(e,$);var ve;let Se=$!=null&&(ve=(re=b.getItem($))===null||re===void 0?void 0:re.textValue)!==null&&ve!==void 0?ve:"";ie(Se),N()}else ce(),N()};const nt=()=>{if(a){var Q,re;const ve=$!=null&&(re=(Q=b.getItem($))===null||Q===void 0?void 0:Q.textValue)!==null&&re!==void 0?re:"";S===ve?Le():ue()}else Le()};let Nt=()=>{L.isOpen&&D.focusedKey!=null?$===D.focusedKey?Le():v(D.focusedKey):nt()},Xn=C.useRef(S),Pt=Q=>{Q?(Xn.current=S,r==="focus"&&!e.isReadOnly&&k(null,"focus")):(o&&nt(),S!==Xn.current&&we.commitValidation()),d(Q)},G=C.useMemo(()=>L.isOpen?u?j:O:Z,[L.isOpen,j,O,u,Z]);return{...we,...L,focusStrategy:h,toggle:_,open:k,close:nt,selectionManager:D,selectedKey:$,setSelectedKey:v,disabledKeys:T,isFocused:f,setFocused:Pt,selectedItem:w,collection:G,inputValue:S,setInputValue:z,commit:Nt,revert:me}}function YH(e,t,n){return new m0(QR(e,e,t,n))}function QR(e,t,n,r){let i=[];for(let a of t)if(a.type==="section"&&a.hasChildNodes){let o=QR(e,hp(a,e),n,r);[...o].some(u=>u.type==="item")&&i.push({...a,childNodes:o})}else a.type==="item"&&r(a.textValue,n)?i.push({...a}):a.type!=="item"&&i.push({...a});return i}var e7={};e7={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var t7={};t7={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var n7={};n7={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var r7={};r7={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var i7={};i7={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Anfangsdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var a7={};a7={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var o7={};o7={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var s7={};s7={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var u7={};u7={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var l7={};l7={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var c7={};c7={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var f7={};f7={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var d7={};d7={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var h7={};h7={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var p7={};p7={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var m7={};m7={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var g7={};g7={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var y7={};y7={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var v7={};v7={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var b7={};b7={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var $7={};$7={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var x7={};x7={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var w7={};w7={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var D7={};D7={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var C7={};C7={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var E7={};E7={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var S7={};S7={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var T7={};T7={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var A7={};A7={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var P7={};P7={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var _7={};_7={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var R7={};R7={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var O7={};O7={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var M7={};M7={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var F7={};F7={"ar-AE":e7,"bg-BG":t7,"cs-CZ":n7,"da-DK":r7,"de-DE":i7,"el-GR":a7,"en-US":o7,"es-ES":s7,"et-EE":u7,"fi-FI":l7,"fr-FR":c7,"he-IL":f7,"hr-HR":d7,"hu-HU":h7,"it-IT":p7,"ja-JP":m7,"ko-KR":g7,"lt-LT":y7,"lv-LV":v7,"nb-NO":b7,"nl-NL":$7,"pl-PL":x7,"pt-BR":w7,"pt-PT":D7,"ro-RO":C7,"ru-RU":E7,"sk-SK":S7,"sl-SI":T7,"sr-SP":A7,"sv-SE":P7,"tr-TR":_7,"uk-UA":R7,"zh-CN":O7,"zh-TW":M7};function ZH(e){return e&&e.__esModule?e.default:e}const k7=new Za(ZH(F7));function I7(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function bh(e,t,n,r,i){let a=e!=null&&n!=null&&e.compare(n)>0,o=e!=null&&t!=null&&e.compare(t)<0,u=e!=null&&(r==null?void 0:r(e))||!1,l=a||o||u,f=[];if(l){let d=I7(),h=Za.getGlobalDictionaryForPackage("@react-stately/datepicker")||k7,p=new UA(d,h),g=new Er(d,ea({},i)),y=g.resolvedOptions().timeZone;o&&t!=null&&f.push(p.format("rangeUnderflow",{minValue:g.format(t.toDate(y))})),a&&n!=null&&f.push(p.format("rangeOverflow",{maxValue:g.format(n.toDate(y))})),u&&f.push(p.format("unavailableDate"))}return{isInvalid:l,validationErrors:f,validationDetails:{badInput:u,customError:!1,patternMismatch:!1,rangeOverflow:a,rangeUnderflow:o,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}function JH(e,t,n,r,i){var a;let o=bh((a=e==null?void 0:e.start)!==null&&a!==void 0?a:null,t,n,r,i);var u;let l=bh((u=e==null?void 0:e.end)!==null&&u!==void 0?u:null,t,n,r,i),f=yh(o,l);if((e==null?void 0:e.end)!=null&&e.start!=null&&e.end.compare(e.start)<0){let d=Za.getGlobalDictionaryForPackage("@react-stately/datepicker")||k7;f=yh(f,{isInvalid:!0,validationErrors:[d.getStringForLocale("rangeReversed",I7())],validationDetails:{...lp,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return f}const XH={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},QH={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function ea(e,t){e={...t.shouldForceLeadingZeros?QH:XH,...e};let r=t.granularity||"minute",i=Object.keys(e);var a;let o=i.indexOf((a=t.maxGranularity)!==null&&a!==void 0?a:"year");o<0&&(o=0);let u=i.indexOf(r);if(u<0&&(u=2),o>u)throw new Error("maxGranularity must be greater than granularity");let l=i.slice(o,u+1).reduce((d,h)=>(d[h]=e[h],d),{});return t.hourCycle!=null&&(l.hour12=t.hourCycle===12),l.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(l.timeZoneName="short"),t.showEra&&o===0&&(l.era="short"),l}function Ls(e){return e&&"hour"in e?e:new Wc}function B7(e,t){if(e===null)return null;if(e)return Lt(e,t)}function Ml(e,t,n,r){if(e)return B7(e,n);let i=Lt(HA(r??zc()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?kn(i):r?i:Hr(i)}function Y1(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[i,a]=C.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&a([r,n]),t||(t=e?r:i[0]);let o=e?n:i[1];return[t,o]}function eG(e){let t=G1(e),[n,r]=ar(e.value,e.defaultValue||null,e.onChange),i=n||e.placeholderValue||null,[a,o]=Y1(i,e.granularity),u=n!=null?n.toDate(o??"UTC"):null,l=a==="hour"||a==="minute"||a==="second";var f;let d=(f=e.shouldCloseOnSelect)!==null&&f!==void 0?f:!0,[h,p]=C.useState(null),[g,y]=C.useState(null);if(n&&(h=n,"hour"in n&&(g=n)),i&&!(a in i))throw new Error("Invalid granularity "+a+" for value "+i.toString());let b=(n==null?void 0:n.calendar.identifier)==="gregory"&&n.era==="BC",D=C.useMemo(()=>({granularity:a,timeZone:o,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:b}),[a,e.hourCycle,e.shouldForceLeadingZeros,o,e.hideTimeZone,b]),{minValue:$,maxValue:v,isDateUnavailable:w}=e,T=C.useMemo(()=>bh(n,$,v,w,D),[n,$,v,w,D]),E=Gc({...e,value:n,builtinValidation:T}),A=E.displayValidation.isInvalid,M=e.validationState||(A?"invalid":null),S=(O,Z)=>{r("timeZone"in Z?Z.set(kn(O)):Hr(O,Z)),p(null),y(null),E.commitValidation()};return{...E,value:n,setValue:r,dateValue:h,timeValue:g,setDateValue:O=>{let Z=typeof d=="function"?d():d;l?g||Z?S(O,g||Ls(e.defaultValue||e.placeholderValue)):p(O):(r(O),E.commitValidation()),Z&&t.setOpen(!1)},setTimeValue:O=>{h&&O?S(h,O):y(O)},granularity:a,hasTime:l,...t,setOpen(O){!O&&!n&&h&&l&&S(h,g||Ls(e.defaultValue||e.placeholderValue)),t.setOpen(O)},validationState:M,isInvalid:A,formatValue(O,Z){if(!u)return"";let R=ea(Z,D);return new Er(O,R).format(u)},getDateFormatter(O,Z){let R={...D,...Z},V=ea({},R);return new Er(O,V)}}}const tG=new Za({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:" 年 ",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");function nG(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?tG.getStringForLocale(e,n):"––"}const vd={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},VD={year:5,month:2,day:7,hour:2,minute:15,second:15},rG={dayperiod:"dayPeriod"};function L7(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:i=!1,isReadOnly:a=!1,isRequired:o=!1,minValue:u,maxValue:l,isDateUnavailable:f}=e,d=e.value||e.defaultValue||e.placeholderValue||null,[h,p]=Y1(d,e.granularity),g=p||"UTC";if(d&&!(h in d))throw new Error("Invalid granularity "+h+" for value "+d.toString());let y=C.useMemo(()=>new Er(t),[t]),b=C.useMemo(()=>n(y.resolvedOptions().calendar),[n,y]);var D;let[$,v]=ar(e.value,(D=e.defaultValue)!==null&&D!==void 0?D:null,e.onChange),w=C.useMemo(()=>{var J;return(J=B7($,b))!==null&&J!==void 0?J:null},[$,b]),[T,E]=C.useState(()=>Ml(e.placeholderValue,h,b,p)),A=w||T,M=b.identifier==="gregory"&&A.era==="BC",S=C.useMemo(()=>{var J;return{granularity:h,maxGranularity:(J=e.maxGranularity)!==null&&J!==void 0?J:"year",timeZone:p,hideTimeZone:r,hourCycle:e.hourCycle,showEra:M,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,h,e.hourCycle,e.shouldForceLeadingZeros,p,r,M]),z=C.useMemo(()=>ea({},S),[S]),j=C.useMemo(()=>new Er(t,z),[t,z]),O=C.useMemo(()=>j.resolvedOptions(),[j]),Z=C.useMemo(()=>j.formatToParts(new Date).filter(J=>vd[J.type]).reduce((J,ye)=>(J[ye.type]=!0,J),{}),[j]),[R,V]=C.useState(()=>e.value||e.defaultValue?{...Z}:{}),W=C.useRef(null),L=C.useRef(b.identifier);C.useEffect(()=>{b.identifier!==L.current&&(L.current=b.identifier,E(J=>Object.keys(R).length>0?Lt(J,b):Ml(e.placeholderValue,h,b,p)))},[b,h,R,p,e.placeholderValue]),$&&Object.keys(R).length<Object.keys(Z).length&&(R={...Z},V(R)),$==null&&Object.keys(R).length===Object.keys(Z).length&&(R={},V(R),E(Ml(e.placeholderValue,h,b,p)));let k=w&&Object.keys(R).length>=Object.keys(Z).length?w:T,_=J=>{if(e.isDisabled||e.isReadOnly)return;let ye=Object.keys(R),we=Object.keys(Z);J==null?(v(null),E(Ml(e.placeholderValue,h,b,p)),V({})):ye.length>=we.length||ye.length===we.length-1&&Z.dayPeriod&&!R.dayPeriod&&W.current!=="dayPeriod"?(J=Lt(J,(d==null?void 0:d.calendar)||new In),v(J)):E(J),W.current=null},H=C.useMemo(()=>k.toDate(g),[k,g]),U=C.useMemo(()=>j.formatToParts(H).map(J=>{let ye=vd[J.type];J.type==="era"&&b.getEras().length===1&&(ye=!1);let we=vd[J.type]&&!R[J.type],me=vd[J.type]?nG(J.type,J.value,t):null;return{type:rG[J.type]||J.type,text:we?me:J.value,...iG(k,J.type,O),isPlaceholder:we,placeholder:me,isEditable:ye}}),[H,R,j,O,k,b,t]);Z.era&&R.year&&!R.era?(R.era=!0,V({...R})):!Z.era&&R.era&&(delete R.era,V({...R}));let N=J=>{R[J]=!0,J==="year"&&Z.era&&(R.era=!0),V({...R})},ne=(J,ye)=>{if(R[J])_(aG(k,J,ye,O));else{N(J);let we=Object.keys(R),me=Object.keys(Z);(we.length>=me.length||we.length===me.length-1&&Z.dayPeriod&&!R.dayPeriod)&&_(k)}},ie=C.useMemo(()=>bh($,u,l,f,S),[$,u,l,f,S]),ce=Gc({...e,value:$,builtinValidation:ie}),xe=ce.displayValidation.isInvalid,De=e.validationState||(xe?"invalid":null);var Ee;return{...ce,value:w,dateValue:H,calendar:b,setValue:_,segments:U,dateFormatter:j,validationState:De,isInvalid:xe,granularity:h,maxGranularity:(Ee=e.maxGranularity)!==null&&Ee!==void 0?Ee:"year",isDisabled:i,isReadOnly:a,isRequired:o,increment(J){ne(J,1)},decrement(J){ne(J,-1)},incrementPage(J){ne(J,VD[J]||1)},decrementPage(J){ne(J,-(VD[J]||1))},setSegment(J,ye){N(J),_(oG(k,J,ye,O))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let J=Object.keys(R),ye=Object.keys(Z);J.length===ye.length-1&&Z.dayPeriod&&!R.dayPeriod&&(R={...Z},V(R),_(k.copy()))},clearSegment(J){delete R[J],W.current=J,V({...R});let ye=Ml(e.placeholderValue,h,b,p),we=k;if(J==="dayPeriod"&&"hour"in k&&"hour"in ye){let me=k.hour>=12,ue=ye.hour>=12;me&&!ue?we=k.set({hour:k.hour-12}):!me&&ue&&(we=k.set({hour:k.hour+12}))}else J in k&&(we=k.set({[J]:ye[J]}));v(null),_(we)},formatValue(J){if(!w)return"";let ye=ea(J,S);return new Er(t,ye).format(H)},getDateFormatter(J,ye){let we={...S,...ye},me=ea({},we);return new Er(J,me)}}}function iG(e,t,n){switch(t){case"era":{let r=e.calendar.getEras();return{value:r.indexOf(e.era),minValue:0,maxValue:r.length-1}}case"year":return{value:e.year,minValue:1,maxValue:e.calendar.getYearsInEra(e)};case"month":return{value:e.month,minValue:fq(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:dq(e),maxValue:e.calendar.getDaysInMonth(e)}}if("hour"in e)switch(t){case"dayPeriod":return{value:e.hour>=12?12:0,minValue:0,maxValue:12};case"hour":if(n.hour12){let r=e.hour>=12;return{value:e.hour,minValue:r?12:0,maxValue:r?23:11}}return{value:e.hour,minValue:0,maxValue:23};case"minute":return{value:e.minute,minValue:0,maxValue:59};case"second":return{value:e.second,minValue:0,maxValue:59}}return{}}function aG(e,t,n,r){switch(t){case"era":case"year":case"month":case"day":return e.cycle(t,n,{round:t==="year"})}if("hour"in e)switch(t){case"dayPeriod":{let i=e.hour,a=i>=12;return e.set({hour:a?i-12:i+12})}case"hour":case"minute":case"second":return e.cycle(t,n,{round:t!=="hour",hourCycle:r.hour12?12:24})}throw new Error("Unknown segment: "+t)}function oG(e,t,n,r){switch(t){case"day":case"month":case"year":case"era":return e.set({[t]:n})}if("hour"in e&&typeof n=="number")switch(t){case"dayPeriod":{let i=e.hour,a=i>=12;return n>=12===a?e:e.set({hour:a?i-12:i+12})}case"hour":if(r.hour12){let a=e.hour>=12;!a&&n===12&&(n=0),a&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}throw new Error("Unknown segment: "+t)}function sG(e){var t,n;let r=G1(e),[i,a]=ar(e.value,e.defaultValue||null,e.onChange),[o,u]=C.useState(()=>i||{start:null,end:null});i==null&&o.start&&o.end&&(o={start:null,end:null},u(o));let l=i||o,f=L=>{u(L||{start:null,end:null}),vo(L)?a(L):a(null)},d=(l==null?void 0:l.start)||(l==null?void 0:l.end)||e.placeholderValue||null,[h,p]=Y1(d,e.granularity),g=h==="hour"||h==="minute"||h==="second";var y;let b=(y=e.shouldCloseOnSelect)!==null&&y!==void 0?y:!0,[D,$]=C.useState(null),[v,w]=C.useState(null);l&&vo(l)&&(D=l,"hour"in l.start&&(v=l));let T=(L,k)=>{f({start:"timeZone"in k.start?k.start.set(kn(L.start)):Hr(L.start,k.start),end:"timeZone"in k.end?k.end.set(kn(L.end)):Hr(L.end,k.end)}),$(null),w(null),R.commitValidation()},E=L=>{let k=typeof b=="function"?b():b;g?vo(L)&&(v!=null&&v.start)&&(v!=null&&v.end)?T(L,{start:(v==null?void 0:v.start)||Ls(e.placeholderValue),end:(v==null?void 0:v.end)||Ls(e.placeholderValue)}):$(L):vo(L)?(f(L),R.commitValidation()):$(L),k&&r.setOpen(!1)},A=L=>{vo(D)&&vo(L)?T(D,L):w(L)},M=(l==null||(t=l.start)===null||t===void 0?void 0:t.calendar.identifier)==="gregory"&&l.start.era==="BC"||(l==null||(n=l.end)===null||n===void 0?void 0:n.calendar.identifier)==="gregory"&&l.end.era==="BC",S=C.useMemo(()=>({granularity:h,timeZone:p,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:M}),[h,e.hourCycle,e.shouldForceLeadingZeros,p,e.hideTimeZone,M]),{minValue:z,maxValue:j,isDateUnavailable:O}=e,Z=C.useMemo(()=>JH(l,z,j,O,S),[l,z,j,O,S]),R=Gc({...e,value:i,name:C.useMemo(()=>[e.startName,e.endName].filter(L=>L!=null),[e.startName,e.endName]),builtinValidation:Z}),V=R.displayValidation.isInvalid,W=e.validationState||(V?"invalid":null);return{...R,value:l,setValue:f,dateRange:D,timeRange:v,granularity:h,hasTime:g,setDate(L,k){var _,H;E(L==="start"?{start:k,end:(_=D==null?void 0:D.end)!==null&&_!==void 0?_:null}:{start:(H=D==null?void 0:D.start)!==null&&H!==void 0?H:null,end:k})},setTime(L,k){var _,H;A(L==="start"?{start:k,end:(_=v==null?void 0:v.end)!==null&&_!==void 0?_:null}:{start:(H=v==null?void 0:v.start)!==null&&H!==void 0?H:null,end:k})},setDateTime(L,k){var _,H;f(L==="start"?{start:k,end:(_=l==null?void 0:l.end)!==null&&_!==void 0?_:null}:{start:(H=l==null?void 0:l.start)!==null&&H!==void 0?H:null,end:k})},setDateRange:E,setTimeRange:A,...r,setOpen(L){!L&&!(l!=null&&l.start&&(l!=null&&l.end))&&vo(D)&&g&&T(D,{start:(v==null?void 0:v.start)||Ls(e.placeholderValue),end:(v==null?void 0:v.end)||Ls(e.placeholderValue)}),r.setOpen(L)},validationState:W,isInvalid:V,formatValue(L,k){if(!l||!l.start||!l.end)return null;let _="timeZone"in l.start?l.start.timeZone:void 0,H=e.granularity||(l.start&&"minute"in l.start?"minute":"day"),U="timeZone"in l.end?l.end.timeZone:void 0,N=e.granularity||(l.end&&"minute"in l.end?"minute":"day"),ne=ea(k,{granularity:H,timeZone:_,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:l.start.calendar.identifier==="gregory"&&l.start.era==="BC"||l.end.calendar.identifier==="gregory"&&l.end.era==="BC"}),ie=l.start.toDate(_||"UTC"),ce=l.end.toDate(U||"UTC"),xe=new Er(L,ne),De;if(_===U&&H===N&&l.start.compare(l.end)!==0){try{let Ee=xe.formatRangeToParts(ie,ce),J=-1;for(let me=0;me<Ee.length;me++){let ue=Ee[me];if(ue.source==="shared"&&ue.type==="literal")J=me;else if(ue.source==="endRange")break}let ye="",we="";for(let me=0;me<Ee.length;me++)me<J?ye+=Ee[me].value:me>J&&(we+=Ee[me].value);return{start:ye,end:we}}catch{}De=xe}else{let Ee=ea(k,{granularity:N,timeZone:U,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});De=new Er(L,Ee)}return{start:xe.format(ie),end:De.format(ce)}},getDateFormatter(L,k){let _={...S,...k},H=ea({},_);return new Er(L,H)}}}function vo(e){return(e==null?void 0:e.start)!=null&&e.end!=null}function uG(e){let{placeholderValue:t=new Wc,minValue:n,maxValue:r,granularity:i,validate:a}=e;var o;let[u,l]=ar(e.value,(o=e.defaultValue)!==null&&o!==void 0?o:null,e.onChange),f=u||t,d=f&&"day"in f?f:void 0,h=e.defaultValue&&"timeZone"in e.defaultValue?e.defaultValue.timeZone:void 0,p=C.useMemo(()=>{let w=f&&"timeZone"in f?f.timeZone:void 0;return(w||h)&&t?QA(Fl(t),w||h):Fl(t)},[t,f,h]),g=C.useMemo(()=>Fl(n,d),[n,d]),y=C.useMemo(()=>Fl(r,d),[r,d]),b=C.useMemo(()=>u&&"day"in u?Qw(u):u,[u]),D=C.useMemo(()=>u==null?null:Fl(u),[u]);return{...L7({...e,value:D,defaultValue:void 0,minValue:g,maxValue:y,onChange:w=>{l(d||h?w:w&&Qw(w))},granularity:i||"minute",maxGranularity:"hour",placeholderValue:p??void 0,createCalendar:()=>new In,validate:C.useCallback(()=>a==null?void 0:a(u),[a,u])}),timeValue:b}}function Fl(e,t=sp(zc())){return e?"day"in e?e:Hr(t,e):null}var jd={exports:{}},lG=jd.exports,ND;function cG(){return ND||(ND=1,function(e,t){(function(n,r){e.exports=r()})(lG,function(){var n=1e3,r=6e4,i=36e5,a="millisecond",o="second",u="minute",l="hour",f="day",d="week",h="month",p="quarter",g="year",y="date",b="Invalid Date",D=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,$=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(V){var W=["th","st","nd","rd"],L=V%100;return"["+V+(W[(L-20)%10]||W[L]||W[0])+"]"}},w=function(V,W,L){var k=String(V);return!k||k.length>=W?V:""+Array(W+1-k.length).join(L)+V},T={s:w,z:function(V){var W=-V.utcOffset(),L=Math.abs(W),k=Math.floor(L/60),_=L%60;return(W<=0?"+":"-")+w(k,2,"0")+":"+w(_,2,"0")},m:function V(W,L){if(W.date()<L.date())return-V(L,W);var k=12*(L.year()-W.year())+(L.month()-W.month()),_=W.clone().add(k,h),H=L-_<0,U=W.clone().add(k+(H?-1:1),h);return+(-(k+(L-_)/(H?_-U:U-_))||0)},a:function(V){return V<0?Math.ceil(V)||0:Math.floor(V)},p:function(V){return{M:h,y:g,w:d,d:f,D:y,h:l,m:u,s:o,ms:a,Q:p}[V]||String(V||"").toLowerCase().replace(/s$/,"")},u:function(V){return V===void 0}},E="en",A={};A[E]=v;var M="$isDayjsObject",S=function(V){return V instanceof Z||!(!V||!V[M])},z=function V(W,L,k){var _;if(!W)return E;if(typeof W=="string"){var H=W.toLowerCase();A[H]&&(_=H),L&&(A[H]=L,_=H);var U=W.split("-");if(!_&&U.length>1)return V(U[0])}else{var N=W.name;A[N]=W,_=N}return!k&&_&&(E=_),_||!k&&E},j=function(V,W){if(S(V))return V.clone();var L=typeof W=="object"?W:{};return L.date=V,L.args=arguments,new Z(L)},O=T;O.l=z,O.i=S,O.w=function(V,W){return j(V,{locale:W.$L,utc:W.$u,x:W.$x,$offset:W.$offset})};var Z=function(){function V(L){this.$L=z(L.locale,null,!0),this.parse(L),this.$x=this.$x||L.x||{},this[M]=!0}var W=V.prototype;return W.parse=function(L){this.$d=function(k){var _=k.date,H=k.utc;if(_===null)return new Date(NaN);if(O.u(_))return new Date;if(_ instanceof Date)return new Date(_);if(typeof _=="string"&&!/Z$/i.test(_)){var U=_.match(D);if(U){var N=U[2]-1||0,ne=(U[7]||"0").substring(0,3);return H?new Date(Date.UTC(U[1],N,U[3]||1,U[4]||0,U[5]||0,U[6]||0,ne)):new Date(U[1],N,U[3]||1,U[4]||0,U[5]||0,U[6]||0,ne)}}return new Date(_)}(L),this.init()},W.init=function(){var L=this.$d;this.$y=L.getFullYear(),this.$M=L.getMonth(),this.$D=L.getDate(),this.$W=L.getDay(),this.$H=L.getHours(),this.$m=L.getMinutes(),this.$s=L.getSeconds(),this.$ms=L.getMilliseconds()},W.$utils=function(){return O},W.isValid=function(){return this.$d.toString()!==b},W.isSame=function(L,k){var _=j(L);return this.startOf(k)<=_&&_<=this.endOf(k)},W.isAfter=function(L,k){return j(L)<this.startOf(k)},W.isBefore=function(L,k){return this.endOf(k)<j(L)},W.$g=function(L,k,_){return O.u(L)?this[k]:this.set(_,L)},W.unix=function(){return Math.floor(this.valueOf()/1e3)},W.valueOf=function(){return this.$d.getTime()},W.startOf=function(L,k){var _=this,H=!!O.u(k)||k,U=O.p(L),N=function(ye,we){var me=O.w(_.$u?Date.UTC(_.$y,we,ye):new Date(_.$y,we,ye),_);return H?me:me.endOf(f)},ne=function(ye,we){return O.w(_.toDate()[ye].apply(_.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(we)),_)},ie=this.$W,ce=this.$M,xe=this.$D,De="set"+(this.$u?"UTC":"");switch(U){case g:return H?N(1,0):N(31,11);case h:return H?N(1,ce):N(0,ce+1);case d:var Ee=this.$locale().weekStart||0,J=(ie<Ee?ie+7:ie)-Ee;return N(H?xe-J:xe+(6-J),ce);case f:case y:return ne(De+"Hours",0);case l:return ne(De+"Minutes",1);case u:return ne(De+"Seconds",2);case o:return ne(De+"Milliseconds",3);default:return this.clone()}},W.endOf=function(L){return this.startOf(L,!1)},W.$set=function(L,k){var _,H=O.p(L),U="set"+(this.$u?"UTC":""),N=(_={},_[f]=U+"Date",_[y]=U+"Date",_[h]=U+"Month",_[g]=U+"FullYear",_[l]=U+"Hours",_[u]=U+"Minutes",_[o]=U+"Seconds",_[a]=U+"Milliseconds",_)[H],ne=H===f?this.$D+(k-this.$W):k;if(H===h||H===g){var ie=this.clone().set(y,1);ie.$d[N](ne),ie.init(),this.$d=ie.set(y,Math.min(this.$D,ie.daysInMonth())).$d}else N&&this.$d[N](ne);return this.init(),this},W.set=function(L,k){return this.clone().$set(L,k)},W.get=function(L){return this[O.p(L)]()},W.add=function(L,k){var _,H=this;L=Number(L);var U=O.p(k),N=function(ce){var xe=j(H);return O.w(xe.date(xe.date()+Math.round(ce*L)),H)};if(U===h)return this.set(h,this.$M+L);if(U===g)return this.set(g,this.$y+L);if(U===f)return N(1);if(U===d)return N(7);var ne=(_={},_[u]=r,_[l]=i,_[o]=n,_)[U]||1,ie=this.$d.getTime()+L*ne;return O.w(ie,this)},W.subtract=function(L,k){return this.add(-1*L,k)},W.format=function(L){var k=this,_=this.$locale();if(!this.isValid())return _.invalidDate||b;var H=L||"YYYY-MM-DDTHH:mm:ssZ",U=O.z(this),N=this.$H,ne=this.$m,ie=this.$M,ce=_.weekdays,xe=_.months,De=_.meridiem,Ee=function(we,me,ue,Le){return we&&(we[me]||we(k,H))||ue[me].slice(0,Le)},J=function(we){return O.s(N%12||12,we,"0")},ye=De||function(we,me,ue){var Le=we<12?"AM":"PM";return ue?Le.toLowerCase():Le};return H.replace($,function(we,me){return me||function(ue){switch(ue){case"YY":return String(k.$y).slice(-2);case"YYYY":return O.s(k.$y,4,"0");case"M":return ie+1;case"MM":return O.s(ie+1,2,"0");case"MMM":return Ee(_.monthsShort,ie,xe,3);case"MMMM":return Ee(xe,ie);case"D":return k.$D;case"DD":return O.s(k.$D,2,"0");case"d":return String(k.$W);case"dd":return Ee(_.weekdaysMin,k.$W,ce,2);case"ddd":return Ee(_.weekdaysShort,k.$W,ce,3);case"dddd":return ce[k.$W];case"H":return String(N);case"HH":return O.s(N,2,"0");case"h":return J(1);case"hh":return J(2);case"a":return ye(N,ne,!0);case"A":return ye(N,ne,!1);case"m":return String(ne);case"mm":return O.s(ne,2,"0");case"s":return String(k.$s);case"ss":return O.s(k.$s,2,"0");case"SSS":return O.s(k.$ms,3,"0");case"Z":return U}return null}(we)||U.replace(":","")})},W.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},W.diff=function(L,k,_){var H,U=this,N=O.p(k),ne=j(L),ie=(ne.utcOffset()-this.utcOffset())*r,ce=this-ne,xe=function(){return O.m(U,ne)};switch(N){case g:H=xe()/12;break;case h:H=xe();break;case p:H=xe()/3;break;case d:H=(ce-ie)/6048e5;break;case f:H=(ce-ie)/864e5;break;case l:H=ce/i;break;case u:H=ce/r;break;case o:H=ce/n;break;default:H=ce}return _?H:O.a(H)},W.daysInMonth=function(){return this.endOf(h).$D},W.$locale=function(){return A[this.$L]},W.locale=function(L,k){if(!L)return this.$L;var _=this.clone(),H=z(L,k,!0);return H&&(_.$L=H),_},W.clone=function(){return O.w(this.$d,this)},W.toDate=function(){return new Date(this.valueOf())},W.toJSON=function(){return this.isValid()?this.toISOString():null},W.toISOString=function(){return this.$d.toISOString()},W.toString=function(){return this.$d.toUTCString()},V}(),R=Z.prototype;return j.prototype=R,[["$ms",a],["$s",o],["$m",u],["$H",l],["$W",f],["$M",h],["$y",g],["$D",y]].forEach(function(V){R[V[1]]=function(W){return this.$g(W,V[0],V[1])}}),j.extend=function(V,W){return V.$i||(V(W,Z,j),V.$i=!0),j},j.locale=z,j.isDayjs=S,j.unix=function(V){return j(1e3*V)},j.en=A[E],j.Ls=A,j.p={},j})}(jd)),jd.exports}var fG=cG();const dG=sa(fG);var Zo=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["Andorra","ad","376"],["Angola","ao","244"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54","(..) ........",0],["Armenia","am","374",".. ......"],["Aruba","aw","297"],["Australia","au","61",{default:". .... ....","/^4/":"... ... ...","/^5(?!50)/":"... ... ...","/^1(3|8)00/":".... ... ...","/^13/":".. .. ..","/^180/":"... ...."},0,[]],["Austria","at","43"],["Azerbaijan","az","994","(..) ... .. .."],["Bahamas","bs","1242"],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375","(..) ... .. .."],["Belgium","be","32","... .. .. .."],["Belize","bz","501"],["Benin","bj","229"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55","(..) .....-...."],["British Indian Ocean Territory","io","246"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599","",1],["Cayman Islands","ky","1","... ... ....",4,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86","... .... ...."],["Colombia","co","57","... ... ...."],["Comoros","km","269"],["Congo","cd","243"],["Congo","cg","242"],["Costa Rica","cr","506","....-...."],["Côte d'Ivoire","ci","225",".. .. .. .. .."],["Croatia","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599","",0],["Cyprus","cy","357",".. ......"],["Czech Republic","cz","420","... ... ..."],["Denmark","dk","45",".. .. .. .."],["Djibouti","dj","253",".. .. ...."],["Dominica","dm","1767"],["Dominican Republic","do","1","(...) ...-....",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503","....-...."],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372",".... ......"],["Ethiopia","et","251",".. ... ...."],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["France","fr","33",". .. .. .. .."],["French Guiana","gf","594"],["French Polynesia","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49","... ........."],["Ghana","gh","233"],["Greece","gr","30"],["Greenland","gl","299",".. .. .."],["Grenada","gd","1473"],["Guadeloupe","gp","590","",0],["Guam","gu","1671"],["Guatemala","gt","502","....-...."],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","....-...."],["Honduras","hn","504"],["Hong Kong","hk","852",".... ...."],["Hungary","hu","36"],["Iceland","is","354","... ...."],["India","in","91",".....-....."],["Indonesia","id","62"],["Iran","ir","98","... ... ...."],["Iraq","iq","964"],["Ireland","ie","353",".. ......."],["Israel","il","972","... ... ...."],["Italy","it","39","... .......",0],["Jamaica","jm","1876"],["Japan","jp","81",".. .... ...."],["Jordan","jo","962"],["Kazakhstan","kz","7","... ...-..-..",0],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996","... ... ..."],["Laos","la","856"],["Latvia","lv","371",".. ... ..."],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Macedonia","mk","389"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mayotte","yt","262","",1,["269","639"]],["Mexico","mx","52","... ... ....",0],["Micronesia","fm","691"],["Moldova","md","373","(..) ..-..-.."],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",{"/^06/":"(.). .........","/^6/":". .........","/^0(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":"(.).. ........","/^(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":".. ........","/^0/":"(.)... .......",default:"... ......."}],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["North Korea","kp","850"],["Norway","no","47","... .. ..."],["Oman","om","968"],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63","... ... ...."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1","(...) ...-....",3,["787","939"]],["Qatar","qa","974"],["Réunion","re","262","",0],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-..",1],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","....-...."],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82","... .... ...."],["South Sudan","ss","211"],["Spain","es","34","... ... ..."],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Swaziland","sz","268"],["Sweden","se","46","... ... ..."],["Switzerland","ch","41",".. ... .. .."],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90","... ... .. .."],["Turkmenistan","tm","993"],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380","(..) ... .. .."],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",".... ......"],["United States","us","1","(...) ...-....",0],["Uruguay","uy","598"],["Uzbekistan","uz","998",".. ... .. .."],["Vanuatu","vu","678"],["Vatican City","va","39",".. .... ....",1],["Venezuela","ve","58"],["Vietnam","vn","84"],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],hG="react-international-phone-",V7=(...e)=>e.filter(t=>!!t).join(" ").trim(),pG=(...e)=>V7(...e).split(" ").map(t=>`${hG}${t}`).join(" "),Cn=({addPrefix:e,rawClassNames:t})=>V7(pG(...e),...t),mG=({value:e,mask:t,maskSymbol:n,offset:r=0,trimNonMaskCharsLeftover:i=!1})=>{if(e.length<r)return e;let a=e.slice(0,r),o=e.slice(r),u=a,l=0;for(let f of t.split("")){if(l>=o.length){if(!i&&f!==n){u+=f;continue}break}f===n?(u+=o[l],l+=1):u+=f}return u},ks=e=>e?/^\d+$/.test(e):!1,pp=e=>e.replace(/\D/g,""),gG=(e,t)=>{let n=e.style.display;n!=="block"&&(e.style.display="block");let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),a=i.top-r.top,o=r.bottom-i.bottom;a>=0&&o>=0||(Math.abs(a)<Math.abs(o)?e.scrollTop+=a:e.scrollTop-=o),e.style.display=n},yG=()=>typeof window>"u"?!1:window.navigator.userAgent.toLowerCase().includes("macintosh"),vG=(e,t)=>{let n=t.disableDialCodeAndPrefix?!1:t.forceDialCode,r=t.disableDialCodeAndPrefix?!1:t.insertDialCodeOnEmpty,i=e,a=f=>t.trimNonDigitsEnd?f.trim():f;if(!i)return r&&!i.length||n?a(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`):a(i);if(i=pp(i),i===t.dialCode&&!t.disableDialCodeAndPrefix)return a(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(t.dialCode.startsWith(i)&&!t.disableDialCodeAndPrefix)return a(n?`${t.prefix}${t.dialCode}${t.charAfterDialCode}`:`${t.prefix}${i}`);if(!i.startsWith(t.dialCode)&&!t.disableDialCodeAndPrefix){if(n)return a(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(i.length<t.dialCode.length)return a(`${t.prefix}${i}`)}let o=()=>{let f=t.dialCode.length,d=i.slice(0,f),h=i.slice(f);return{phoneLeftSide:d,phoneRightSide:h}},{phoneLeftSide:u,phoneRightSide:l}=o();return u=`${t.prefix}${u}${t.charAfterDialCode}`,l=mG({value:l,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&l.length===0}),t.disableDialCodeAndPrefix&&(u=""),a(`${u}${l}`)},bG=({phoneBeforeInput:e,phoneAfterInput:t,phoneAfterFormatted:n,cursorPositionAfterInput:r,leftOffset:i=0,deletion:a})=>{if(r<i)return i;if(!e)return n.length;let o=null;for(let d=r-1;d>=0;d-=1)if(ks(t[d])){o=d;break}if(o===null){for(let d=0;d<t.length;d+=1)if(ks(n[d]))return d;return t.length}let u=0;for(let d=0;d<o;d+=1)ks(t[d])&&(u+=1);let l=0,f=0;for(let d=0;d<n.length&&(l+=1,ks(n[d])&&(f+=1),!(f>=u+1));d+=1);if(a!=="backward")for(;!ks(n[l])&&l<n.length;)l+=1;return l},Kd=({phone:e,prefix:t})=>e?`${t}${pp(e)}`:"";function g0({value:e,country:t,insertDialCodeOnEmpty:n,trimNonDigitsEnd:r,countries:i,prefix:a,charAfterDialCode:o,forceDialCode:u,disableDialCodeAndPrefix:l,defaultMask:f,countryGuessingEnabled:d,disableFormatting:h}){let p=e;l&&(p=p.startsWith(`${a}`)?p:`${a}${t.dialCode}${p}`);let g=d?AG({phone:p,countries:i,currentCountryIso2:t==null?void 0:t.iso2}):void 0,y=(g==null?void 0:g.country)??t,b=vG(p,{prefix:a,mask:SG({phone:p,country:y,defaultMask:f,disableFormatting:h}),maskChar:N7,dialCode:y.dialCode,trimNonDigitsEnd:r,charAfterDialCode:o,forceDialCode:u,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:l}),D=d&&!(g!=null&&g.fullDialCodeMatch)?t:y;return{phone:Kd({phone:l?`${D.dialCode}${b}`:b,prefix:a}),inputValue:b,country:D}}var $G=e=>{if((e==null?void 0:e.toLocaleLowerCase().includes("delete"))??!1)return e!=null&&e.toLocaleLowerCase().includes("forward")?"forward":"backward"},xG=(e,{country:t,insertDialCodeOnEmpty:n,phoneBeforeInput:r,prefix:i,charAfterDialCode:a,forceDialCode:o,disableDialCodeAndPrefix:u,countryGuessingEnabled:l,defaultMask:f,disableFormatting:d,countries:h})=>{let p=e.nativeEvent,g=p.inputType,y=$G(g),b=!!(g!=null&&g.startsWith("insertFrom")),D=g==="insertText",$=(p==null?void 0:p.data)||void 0,v=e.target.value,w=e.target.selectionStart??0;if(g!=null&&g.includes("history"))return{inputValue:r,phone:Kd({phone:r,prefix:i}),cursorPosition:r.length,country:t};if(D&&!ks($)&&v!==i)return{inputValue:r,phone:Kd({phone:u?`${t.dialCode}${r}`:r,prefix:i}),cursorPosition:w-(($==null?void 0:$.length)??0),country:t};if(o&&!v.startsWith(`${i}${t.dialCode}`)&&!b){let S=v?r:`${i}${t.dialCode}${a}`;return{inputValue:S,phone:Kd({phone:S,prefix:i}),cursorPosition:i.length+t.dialCode.length+a.length,country:t}}let{phone:T,inputValue:E,country:A}=g0({value:v,country:t,trimNonDigitsEnd:y==="backward",insertDialCodeOnEmpty:n,countryGuessingEnabled:l,countries:h,prefix:i,charAfterDialCode:a,forceDialCode:o,disableDialCodeAndPrefix:u,disableFormatting:d,defaultMask:f}),M=bG({cursorPositionAfterInput:w,phoneBeforeInput:r,phoneAfterInput:v,phoneAfterFormatted:E,leftOffset:o?i.length+t.dialCode.length+a.length:0,deletion:y});return{phone:T,inputValue:E,cursorPosition:M,country:A}},wG=(e,t)=>{let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(e[i]!==t[i])return!1;return!0},DG=()=>{let e=C.useRef(),t=C.useRef(Date.now());return{check:()=>{let n=Date.now(),r=e.current?n-t.current:void 0;return e.current=t.current,t.current=n,r}}},CG={size:20,overrideLastItemDebounceMS:-1};function EG(e,t){let{size:n,overrideLastItemDebounceMS:r,onChange:i}={...CG,...t},[a,o]=C.useState(e),[u,l]=C.useState([a]),[f,d]=C.useState(0),h=DG();return[a,(p,g)=>{if(typeof p=="object"&&typeof a=="object"&&wG(p,a)||p===a)return;let y=r>0,b=h.check(),D=y&&b!==void 0?b>r:!0;if((g==null?void 0:g.overrideLastItem)!==void 0?g.overrideLastItem:!D)l($=>[...$.slice(0,f),p]);else{let $=u.length>=n;l(v=>[...v.slice($?1:0,f+1),p]),$||d(v=>v+1)}o(p),i==null||i(p)},()=>{if(f<=0)return{success:!1};let p=u[f-1];return o(p),d(g=>g-1),i==null||i(p),{success:!0,value:p}},()=>{if(f+1>=u.length)return{success:!1};let p=u[f+1];return o(p),d(g=>g+1),i==null||i(p),{success:!0,value:p}}]}var N7=".",yr={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,disableFormatting:!1,countries:Zo},j7=({defaultCountry:e=yr.defaultCountry,value:t=yr.value,countries:n=yr.countries,prefix:r=yr.prefix,defaultMask:i=yr.defaultMask,charAfterDialCode:a=yr.charAfterDialCode,historySaveDebounceMS:o=yr.historySaveDebounceMS,disableCountryGuess:u=yr.disableCountryGuess,disableDialCodePrefill:l=yr.disableDialCodePrefill,forceDialCode:f=yr.forceDialCode,disableDialCodeAndPrefix:d=yr.disableDialCodeAndPrefix,disableFormatting:h=yr.disableFormatting,onChange:p,inputRef:g})=>{let y={countries:n,prefix:r,charAfterDialCode:a,forceDialCode:d?!1:f,disableDialCodeAndPrefix:d,defaultMask:i,countryGuessingEnabled:!u,disableFormatting:h},b=C.useRef(null),D=g||b,$=V=>{Promise.resolve().then(()=>{var W;typeof window>"u"||D.current!==(document==null?void 0:document.activeElement)||((W=D.current)==null||W.setSelectionRange(V,V))})},[{phone:v,inputValue:w,country:T},E,A,M]=EG(()=>{let V=Vs({value:e,field:"iso2",countries:n});V||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let W=V||Vs({value:"us",field:"iso2",countries:n}),{phone:L,inputValue:k,country:_}=g0({value:t,country:W,insertDialCodeOnEmpty:!l,...y});return $(k.length),{phone:L,inputValue:k,country:_.iso2}},{overrideLastItemDebounceMS:o,onChange:({inputValue:V,phone:W,country:L})=>{if(!p)return;let k=S(L);p({phone:W,inputValue:V,country:k})}}),S=C.useCallback(V=>Vs({value:V,field:"iso2",countries:n}),[n]),z=C.useMemo(()=>S(T),[T,S]);C.useEffect(()=>{let V=D.current;if(!V)return;let W=L=>{if(!L.key)return;let k=L.ctrlKey,_=L.metaKey,H=L.shiftKey;if(L.key.toLowerCase()==="z"){if(yG()){if(!_)return}else if(!k)return;H?M():A()}};return V.addEventListener("keydown",W),()=>{V.removeEventListener("keydown",W)}},[D,A,M]);let j=V=>{V.preventDefault();let{phone:W,inputValue:L,country:k,cursorPosition:_}=xG(V,{country:z,phoneBeforeInput:w,insertDialCodeOnEmpty:!1,...y});return E({inputValue:L,phone:W,country:k.iso2}),$(_),t},O=(V,W={focusOnInput:!1})=>{let L=Vs({value:V,field:"iso2",countries:n});if(!L){console.error(`[react-international-phone]: can not find a country with "${V}" iso2 code`);return}let k=d?"":`${r}${L.dialCode}${a}`;E({inputValue:k,phone:`${r}${L.dialCode}`,country:L.iso2}),W.focusOnInput&&Promise.resolve().then(()=>{var _;(_=D.current)==null||_.focus()})},[Z,R]=C.useState(!1);return C.useEffect(()=>{if(!Z){R(!0),t!==v&&(p==null||p({inputValue:w,phone:v,country:z}));return}if(t===v)return;let{phone:V,inputValue:W,country:L}=g0({value:t,country:z,insertDialCodeOnEmpty:!l,...y});E({phone:V,inputValue:W,country:L.iso2})},[t]),{phone:v,inputValue:w,country:z,setCountry:O,handlePhoneValueChange:j,inputRef:D}},SG=({phone:e,country:t,defaultMask:n="............",disableFormatting:r=!1})=>{let i=t.format,a=u=>r?u.replace(new RegExp(`[^${N7}]`,"g"),""):u;if(!i)return a(n);if(typeof i=="string")return a(i);if(!i.default)return console.error(`[react-international-phone]: default mask for ${t.iso2} is not provided`),a(n);let o=Object.keys(i).find(u=>{if(u==="default")return!1;if(!(u.charAt(0)==="/"&&u.charAt(u.length-1)==="/"))return console.error(`[react-international-phone]: format regex "${u}" for ${t.iso2} is not valid`),!1;let l=new RegExp(u.substring(1,u.length-1)),f=e.replace(t.dialCode,"");return l.test(pp(f))});return a(o?i[o]:i.default)},jr=e=>{let[t,n,r,i,a,o]=e;return{name:t,iso2:n,dialCode:r,format:i,priority:a,areaCodes:o}},TG=e=>`Field "${e}" is not supported`,Vs=({field:e,value:t,countries:n=Zo})=>{if(["priority"].includes(e))throw new Error(TG(e));let r=n.find(i=>{let a=jr(i);return t===a[e]});if(r)return jr(r)},AG=({phone:e,countries:t=Zo,currentCountryIso2:n})=>{var u;let r={country:void 0,fullDialCodeMatch:!1};if(!e)return r;let i=pp(e);if(!i)return r;let a=r,o=({country:l,fullDialCodeMatch:f})=>{var p,g;let d=l.dialCode===((p=a.country)==null?void 0:p.dialCode),h=(l.priority??0)<(((g=a.country)==null?void 0:g.priority)??0);(!d||h)&&(a={country:l,fullDialCodeMatch:f})};for(let l of t){let f=jr(l),{dialCode:d,areaCodes:h}=f;if(i.startsWith(d)){let p=a.country?Number(d)>=Number(a.country.dialCode):!0;if(h){let g=i.substring(d.length);for(let y of h)if(g.startsWith(y))return{country:f,fullDialCodeMatch:!0}}(p||d===i||!a.fullDialCodeMatch)&&o({country:f,fullDialCodeMatch:!0})}a.fullDialCodeMatch||i.length<d.length&&d.startsWith(i)&&(!a.country||Number(d)<=Number(a.country.dialCode))&&o({country:f,fullDialCodeMatch:!1})}if(n){let l=Vs({value:n,field:"iso2",countries:t});if(!l)return a;let f=l?(d=>{if(!(d!=null&&d.areaCodes))return!1;let h=i.substring(d.dialCode.length);return d.areaCodes.some(p=>p.startsWith(h))})(l):!1;a&&((u=a.country)==null?void 0:u.dialCode)===l.dialCode&&a.country!==l&&a.fullDialCodeMatch&&(!l.areaCodes||f)&&(a={country:l,fullDialCodeMatch:!0})}return a},PG=(e,t)=>{let n=parseInt(e,16);return Number(n+t).toString(16)},_G="abcdefghijklmnopqrstuvwxyz",RG="1f1e6",jD=_G.split("").reduce((e,t,n)=>({...e,[t]:PG(RG,n)}),{}),OG=e=>[jD[e[0]],jD[e[1]]].join("-"),Z1=({iso2:e,size:t,src:n,protocol:r="https",disableLazyLoading:i,className:a,style:o,...u})=>{if(!e)return C.createElement("img",{className:Cn({addPrefix:["flag-emoji"],rawClassNames:[a]}),width:t,height:t,...u});let l=()=>{if(n)return n;let f=OG(e);return`${r}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${f}.svg`};return C.createElement("img",{className:Cn({addPrefix:["flag-emoji"],rawClassNames:[a]}),src:l(),width:t,height:t,draggable:!1,"data-country":e,loading:i?void 0:"lazy",style:{width:t,height:t,...o},alt:"",...u})},MG=1e3,FG=({show:e,dialCodePrefix:t="+",selectedCountry:n,countries:r=Zo,preferredCountries:i=[],flags:a,onSelect:o,onClose:u,...l})=>{let f=C.useRef(null),d=C.useRef(),h=C.useMemo(()=>{if(!i||!i.length)return r;let A=[],M=[...r];for(let S of i){let z=M.findIndex(j=>jr(j).iso2===S);if(z!==-1){let j=M.splice(z,1)[0];A.push(j)}}return A.concat(M)},[r,i]),p=C.useRef({updatedAt:void 0,value:""}),g=A=>{let M=p.current.updatedAt&&new Date().getTime()-p.current.updatedAt.getTime()>MG;p.current={value:M?A:`${p.current.value}${A}`,updatedAt:new Date};let S=h.findIndex(z=>jr(z).name.toLowerCase().startsWith(p.current.value));S!==-1&&D(S)},y=C.useCallback(A=>h.findIndex(M=>jr(M).iso2===A),[h]),[b,D]=C.useState(y(n)),$=()=>{d.current!==n&&D(y(n))},v=C.useCallback(A=>{D(y(A.iso2)),o==null||o(A)},[o,y]),w=A=>{let M=h.length-1,S=z=>A==="prev"?z-1:A==="next"?z+1:A==="last"?M:0;D(z=>{let j=S(z);return j<0?0:j>M?M:j})},T=A=>{if(A.stopPropagation(),A.key==="Enter"){A.preventDefault();let M=jr(h[b]);v(M);return}if(A.key==="Escape"){u==null||u();return}if(A.key==="ArrowUp"){A.preventDefault(),w("prev");return}if(A.key==="ArrowDown"){A.preventDefault(),w("next");return}if(A.key==="PageUp"){A.preventDefault(),w("first");return}if(A.key==="PageDown"){A.preventDefault(),w("last");return}A.key===" "&&A.preventDefault(),A.key.length===1&&!A.altKey&&!A.ctrlKey&&!A.metaKey&&g(A.key.toLocaleLowerCase())},E=C.useCallback(()=>{if(!f.current||b===void 0)return;let A=jr(h[b]).iso2;if(A===d.current)return;let M=f.current.querySelector(`[data-country="${A}"]`);M&&(gG(f.current,M),d.current=A)},[b,h]);return C.useEffect(()=>{E()},[b,E]),C.useEffect(()=>{f.current&&(e?f.current.focus():$())},[e]),C.useEffect(()=>{$()},[n]),C.createElement("ul",{ref:f,role:"listbox",className:Cn({addPrefix:["country-selector-dropdown"],rawClassNames:[l.className]}),style:{display:e?"block":"none",...l.style},onKeyDown:T,onBlur:u,tabIndex:-1,"aria-activedescendant":`react-international-phone__${jr(h[b]).iso2}-option`},h.map((A,M)=>{let S=jr(A),z=S.iso2===n,j=M===b,O=i.includes(S.iso2),Z=M===i.length-1,R=a==null?void 0:a.find(V=>V.iso2===S.iso2);return C.createElement(C.Fragment,{key:S.iso2},C.createElement("li",{"data-country":S.iso2,role:"option","aria-selected":z,"aria-label":`${S.name} ${t}${S.dialCode}`,id:`react-international-phone__${S.iso2}-option`,className:Cn({addPrefix:["country-selector-dropdown__list-item",O&&"country-selector-dropdown__list-item--preferred",z&&"country-selector-dropdown__list-item--selected",j&&"country-selector-dropdown__list-item--focused"],rawClassNames:[l.listItemClassName]}),onClick:()=>v(S),style:l.listItemStyle,title:S.name},C.createElement(Z1,{iso2:S.iso2,src:R==null?void 0:R.src,className:Cn({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[l.listItemFlagClassName]}),style:l.listItemFlagStyle}),C.createElement("span",{className:Cn({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[l.listItemCountryNameClassName]}),style:l.listItemCountryNameStyle},S.name),C.createElement("span",{className:Cn({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[l.listItemDialCodeClassName]}),style:l.listItemDialCodeStyle},t,S.dialCode)),Z?C.createElement("hr",{className:Cn({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[l.preferredListDividerClassName]}),style:l.preferredListDividerStyle}):null)}))},kG=({selectedCountry:e,onSelect:t,disabled:n,hideDropdown:r,countries:i=Zo,preferredCountries:a=[],flags:o,renderButtonWrapper:u,...l})=>{let[f,d]=C.useState(!1),h=C.useMemo(()=>{if(e)return Vs({value:e,field:"iso2",countries:i})},[i,e]),p=C.useRef(null),g=b=>{b.key&&["ArrowUp","ArrowDown"].includes(b.key)&&(b.preventDefault(),d(!0))},y=()=>{var $;let b={title:h==null?void 0:h.name,onClick:()=>d(v=>!v),onMouseDown:v=>v.preventDefault(),onKeyDown:g,disabled:r||n,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":f},D=C.createElement("div",{className:Cn({addPrefix:["country-selector-button__button-content"],rawClassNames:[l.buttonContentWrapperClassName]}),style:l.buttonContentWrapperStyle},C.createElement(Z1,{iso2:e,src:($=o==null?void 0:o.find(v=>v.iso2===e))==null?void 0:$.src,className:Cn({addPrefix:["country-selector-button__flag-emoji",n&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[l.flagClassName]}),style:{visibility:e?"visible":"hidden",...l.flagStyle}}),!r&&C.createElement("div",{className:Cn({addPrefix:["country-selector-button__dropdown-arrow",n&&"country-selector-button__dropdown-arrow--disabled",f&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[l.dropdownArrowClassName]}),style:l.dropdownArrowStyle}));return u?u({children:D,rootProps:b}):C.createElement("button",{...b,type:"button",className:Cn({addPrefix:["country-selector-button",f&&"country-selector-button--active",n&&"country-selector-button--disabled",r&&"country-selector-button--hide-dropdown"],rawClassNames:[l.buttonClassName]}),"data-country":e,style:l.buttonStyle},D)};return C.createElement("div",{className:Cn({addPrefix:["country-selector"],rawClassNames:[l.className]}),style:l.style,ref:p},y(),C.createElement(FG,{show:f,countries:i,preferredCountries:a,flags:o,onSelect:b=>{d(!1),t==null||t(b)},selectedCountry:e,onClose:()=>{d(!1)},...l.dropdownStyleProps}))},IG=({dialCode:e,prefix:t,disabled:n,style:r,className:i})=>C.createElement("div",{className:Cn({addPrefix:["dial-code-preview",n&&"dial-code-preview--disabled"],rawClassNames:[i]}),style:r},`${t}${e}`);C.forwardRef(({value:e,onChange:t,countries:n=Zo,preferredCountries:r=[],hideDropdown:i,showDisabledDialCodeAndPrefix:a,disableFocusAfterCountrySelect:o,flags:u,style:l,className:f,inputStyle:d,inputClassName:h,countrySelectorStyleProps:p,dialCodePreviewStyleProps:g,inputProps:y,placeholder:b,disabled:D,name:$,onFocus:v,onBlur:w,required:T,autoFocus:E,...A},M)=>{let{phone:S,inputValue:z,inputRef:j,country:O,setCountry:Z,handlePhoneValueChange:R}=j7({value:e,countries:n,...A,onChange:W=>{t==null||t(W.phone,{country:W.country,inputValue:W.inputValue})}}),V=A.disableDialCodeAndPrefix&&a&&(O==null?void 0:O.dialCode);return C.useImperativeHandle(M,()=>j.current?Object.assign(j.current,{setCountry:Z,state:{phone:S,inputValue:z,country:O}}):null,[j,Z,S,z,O]),C.createElement("div",{ref:M,className:Cn({addPrefix:["input-container"],rawClassNames:[f]}),style:l},C.createElement(kG,{onSelect:W=>Z(W.iso2,{focusOnInput:!o}),flags:u,selectedCountry:O.iso2,countries:n,preferredCountries:r,disabled:D,hideDropdown:i,...p}),V&&C.createElement(IG,{dialCode:O.dialCode,prefix:A.prefix??"+",disabled:D,...g}),C.createElement("input",{onChange:R,value:z,type:"tel",ref:j,className:Cn({addPrefix:["input",D&&"input--disabled"],rawClassNames:[h]}),placeholder:b,disabled:D,style:d,name:$,onFocus:v,onBlur:w,autoFocus:E,required:T,...y}))});var La=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},y0={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,a="[object Arguments]",o="[object Array]",u="[object Boolean]",l="[object Date]",f="[object Error]",d="[object Function]",h="[object GeneratorFunction]",p="[object Map]",g="[object Number]",y="[object Object]",b="[object Promise]",D="[object RegExp]",$="[object Set]",v="[object String]",w="[object Symbol]",T="[object WeakMap]",E="[object ArrayBuffer]",A="[object DataView]",M="[object Float32Array]",S="[object Float64Array]",z="[object Int8Array]",j="[object Int16Array]",O="[object Int32Array]",Z="[object Uint8Array]",R="[object Uint8ClampedArray]",V="[object Uint16Array]",W="[object Uint32Array]",L=/[\\^$.*+?()[\]{}|]/g,k=/\w*$/,_=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,U={};U[a]=U[o]=U[E]=U[A]=U[u]=U[l]=U[M]=U[S]=U[z]=U[j]=U[O]=U[p]=U[g]=U[y]=U[D]=U[$]=U[v]=U[w]=U[Z]=U[R]=U[V]=U[W]=!0,U[f]=U[d]=U[T]=!1;var N=typeof La=="object"&&La&&La.Object===Object&&La,ne=typeof self=="object"&&self&&self.Object===Object&&self,ie=N||ne||Function("return this")(),ce=t&&!t.nodeType&&t,xe=ce&&!0&&e&&!e.nodeType&&e,De=xe&&xe.exports===ce;function Ee(K,ae){return K.set(ae[0],ae[1]),K}function J(K,ae){return K.add(ae),K}function ye(K,ae){for(var pe=-1,Ie=K?K.length:0;++pe<Ie&&ae(K[pe],pe,K)!==!1;);return K}function we(K,ae){for(var pe=-1,Ie=ae.length,tn=K.length;++pe<Ie;)K[tn+pe]=ae[pe];return K}function me(K,ae,pe,Ie){for(var tn=-1,gn=K?K.length:0;++tn<gn;)pe=ae(pe,K[tn],tn,K);return pe}function ue(K,ae){for(var pe=-1,Ie=Array(K);++pe<K;)Ie[pe]=ae(pe);return Ie}function Le(K,ae){return K==null?void 0:K[ae]}function nt(K){var ae=!1;if(K!=null&&typeof K.toString!="function")try{ae=!!(K+"")}catch{}return ae}function Nt(K){var ae=-1,pe=Array(K.size);return K.forEach(function(Ie,tn){pe[++ae]=[tn,Ie]}),pe}function Xn(K,ae){return function(pe){return K(ae(pe))}}function Pt(K){var ae=-1,pe=Array(K.size);return K.forEach(function(Ie){pe[++ae]=Ie}),pe}var G=Array.prototype,Q=Function.prototype,re=Object.prototype,ve=ie["__core-js_shared__"],Se=function(){var K=/[^.]+$/.exec(ve&&ve.keys&&ve.keys.IE_PROTO||"");return K?"Symbol(src)_1."+K:""}(),Ce=Q.toString,Fe=re.hasOwnProperty,Ne=re.toString,_t=RegExp("^"+Ce.call(Fe).replace(L,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ut=De?ie.Buffer:void 0,Zt=ie.Symbol,Xr=ie.Uint8Array,Rr=Xn(Object.getPrototypeOf,Object),mn=Object.create,Qr=re.propertyIsEnumerable,ei=G.splice,ti=Object.getOwnPropertySymbols,Or=ut?ut.isBuffer:void 0,Xa=Xn(Object.keys,Object),ni=Ke(ie,"DataView"),Oi=Ke(ie,"Map"),ri=Ke(ie,"Promise"),ha=Ke(ie,"Set"),Mi=Ke(ie,"WeakMap"),or=Ke(Object,"create"),Qa=ki(ni),eo=ki(Oi),Uu=ki(ri),zu=ki(ha),ns=ki(Mi),pa=Zt?Zt.prototype:void 0,rs=pa?pa.valueOf:void 0;function Mr(K){var ae=-1,pe=K?K.length:0;for(this.clear();++ae<pe;){var Ie=K[ae];this.set(Ie[0],Ie[1])}}function to(){this.__data__=or?or(null):{}}function qu(K){return this.has(K)&&delete this.__data__[K]}function no(K){var ae=this.__data__;if(or){var pe=ae[K];return pe===r?void 0:pe}return Fe.call(ae,K)?ae[K]:void 0}function Wu(K){var ae=this.__data__;return or?ae[K]!==void 0:Fe.call(ae,K)}function Hu(K,ae){var pe=this.__data__;return pe[K]=or&&ae===void 0?r:ae,this}Mr.prototype.clear=to,Mr.prototype.delete=qu,Mr.prototype.get=no,Mr.prototype.has=Wu,Mr.prototype.set=Hu;function Bn(K){var ae=-1,pe=K?K.length:0;for(this.clear();++ae<pe;){var Ie=K[ae];this.set(Ie[0],Ie[1])}}function Gu(){this.__data__=[]}function Ln(K){var ae=this.__data__,pe=oi(ae,K);if(pe<0)return!1;var Ie=ae.length-1;return pe==Ie?ae.pop():ei.call(ae,pe,1),!0}function Yu(K){var ae=this.__data__,pe=oi(ae,K);return pe<0?void 0:ae[pe][1]}function Zu(K){return oi(this.__data__,K)>-1}function Ju(K,ae){var pe=this.__data__,Ie=oi(pe,K);return Ie<0?pe.push([K,ae]):pe[Ie][1]=ae,this}Bn.prototype.clear=Gu,Bn.prototype.delete=Ln,Bn.prototype.get=Yu,Bn.prototype.has=Zu,Bn.prototype.set=Ju;function Fr(K){var ae=-1,pe=K?K.length:0;for(this.clear();++ae<pe;){var Ie=K[ae];this.set(Ie[0],Ie[1])}}function Xu(){this.__data__={hash:new Mr,map:new(Oi||Bn),string:new Mr}}function Qu(K){return Ve(this,K).delete(K)}function el(K){return Ve(this,K).get(K)}function tl(K){return Ve(this,K).has(K)}function nl(K,ae){return Ve(this,K).set(K,ae),this}Fr.prototype.clear=Xu,Fr.prototype.delete=Qu,Fr.prototype.get=el,Fr.prototype.has=tl,Fr.prototype.set=nl;function ii(K){this.__data__=new Bn(K)}function ai(){this.__data__=new Bn}function is(K){return this.__data__.delete(K)}function ma(K){return this.__data__.get(K)}function rl(K){return this.__data__.has(K)}function as(K,ae){var pe=this.__data__;if(pe instanceof Bn){var Ie=pe.__data__;if(!Oi||Ie.length<n-1)return Ie.push([K,ae]),this;pe=this.__data__=new Fr(Ie)}return pe.set(K,ae),this}ii.prototype.clear=ai,ii.prototype.delete=is,ii.prototype.get=ma,ii.prototype.has=rl,ii.prototype.set=as;function il(K,ae){var pe=ul(K)||zp(K)?ue(K.length,String):[],Ie=pe.length,tn=!!Ie;for(var gn in K)Fe.call(K,gn)&&!(tn&&(gn=="length"||Tn(gn,Ie)))&&pe.push(gn);return pe}function ga(K,ae,pe){var Ie=K[ae];(!(Fe.call(K,ae)&&sl(Ie,pe))||pe===void 0&&!(ae in K))&&(K[ae]=pe)}function oi(K,ae){for(var pe=K.length;pe--;)if(sl(K[pe][0],ae))return pe;return-1}function ro(K,ae){return K&&ge(ae,cl(ae),K)}function io(K,ae,pe,Ie,tn,gn,ur){var yn;if(Ie&&(yn=gn?Ie(K,tn,gn,ur):Ie(K)),yn!==void 0)return yn;if(!hs(K))return K;var Jt=ul(K);if(Jt){if(yn=cn(K),!ae)return se(K,yn)}else{var si=Rt(K),ui=si==d||si==h;if(ll(K))return ls(K,ae);if(si==y||si==a||ui&&!gn){if(nt(K))return gn?K:{};if(yn=fn(ui?{}:K),!ae)return _e(K,ro(yn,K))}else{if(!U[si])return gn?K:{};yn=sr(K,si,io,ae)}}ur||(ur=new ii);var fl=ur.get(K);if(fl)return fl;if(ur.set(K,yn),!Jt)var ps=pe?Xe(K):cl(K);return ye(ps||K,function(vn,uo){ps&&(uo=vn,vn=K[uo]),ga(yn,uo,io(vn,ae,pe,Ie,uo,K,ur))}),yn}function os(K){return hs(K)?mn(K):{}}function ss(K,ae,pe){var Ie=ae(K);return ul(K)?Ie:we(Ie,pe(K))}function al(K){return Ne.call(K)}function us(K){if(!hs(K)||oo(K))return!1;var ae=yf(K)||nt(K)?_t:_;return ae.test(ki(K))}function ao(K){if(!so(K))return Xa(K);var ae=[];for(var pe in Object(K))Fe.call(K,pe)&&pe!="constructor"&&ae.push(pe);return ae}function ls(K,ae){if(ae)return K.slice();var pe=new K.constructor(K.length);return K.copy(pe),pe}function Fi(K){var ae=new K.constructor(K.byteLength);return new Xr(ae).set(new Xr(K)),ae}function ol(K,ae){var pe=ae?Fi(K.buffer):K.buffer;return new K.constructor(pe,K.byteOffset,K.byteLength)}function cs(K,ae,pe){var Ie=ae?pe(Nt(K),!0):Nt(K);return me(Ie,Ee,new K.constructor)}function ya(K){var ae=new K.constructor(K.source,k.exec(K));return ae.lastIndex=K.lastIndex,ae}function fs(K,ae,pe){var Ie=ae?pe(Pt(K),!0):Pt(K);return me(Ie,J,new K.constructor)}function I(K){return rs?Object(rs.call(K)):{}}function X(K,ae){var pe=ae?Fi(K.buffer):K.buffer;return new K.constructor(pe,K.byteOffset,K.length)}function se(K,ae){var pe=-1,Ie=K.length;for(ae||(ae=Array(Ie));++pe<Ie;)ae[pe]=K[pe];return ae}function ge(K,ae,pe,Ie){pe||(pe={});for(var tn=-1,gn=ae.length;++tn<gn;){var ur=ae[tn],yn=void 0;ga(pe,ur,yn===void 0?K[ur]:yn)}return pe}function _e(K,ae){return ge(K,$t(K),ae)}function Xe(K){return ss(K,cl,$t)}function Ve(K,ae){var pe=K.__data__;return ds(ae)?pe[typeof ae=="string"?"string":"hash"]:pe.map}function Ke(K,ae){var pe=Le(K,ae);return us(pe)?pe:void 0}var $t=ti?Xn(ti,Object):wt,Rt=al;(ni&&Rt(new ni(new ArrayBuffer(1)))!=A||Oi&&Rt(new Oi)!=p||ri&&Rt(ri.resolve())!=b||ha&&Rt(new ha)!=$||Mi&&Rt(new Mi)!=T)&&(Rt=function(K){var ae=Ne.call(K),pe=ae==y?K.constructor:void 0,Ie=pe?ki(pe):void 0;if(Ie)switch(Ie){case Qa:return A;case eo:return p;case Uu:return b;case zu:return $;case ns:return T}return ae});function cn(K){var ae=K.length,pe=K.constructor(ae);return ae&&typeof K[0]=="string"&&Fe.call(K,"index")&&(pe.index=K.index,pe.input=K.input),pe}function fn(K){return typeof K.constructor=="function"&&!so(K)?os(Rr(K)):{}}function sr(K,ae,pe,Ie){var tn=K.constructor;switch(ae){case E:return Fi(K);case u:case l:return new tn(+K);case A:return ol(K,Ie);case M:case S:case z:case j:case O:case Z:case R:case V:case W:return X(K,Ie);case p:return cs(K,Ie,pe);case g:case v:return new tn(K);case D:return ya(K);case $:return fs(K,Ie,pe);case w:return I(K)}}function Tn(K,ae){return ae=ae??i,!!ae&&(typeof K=="number"||H.test(K))&&K>-1&&K%1==0&&K<ae}function ds(K){var ae=typeof K;return ae=="string"||ae=="number"||ae=="symbol"||ae=="boolean"?K!=="__proto__":K===null}function oo(K){return!!Se&&Se in K}function so(K){var ae=K&&K.constructor,pe=typeof ae=="function"&&ae.prototype||re;return K===pe}function ki(K){if(K!=null){try{return Ce.call(K)}catch{}try{return K+""}catch{}}return""}function Up(K){return io(K,!0,!0)}function sl(K,ae){return K===ae||K!==K&&ae!==ae}function zp(K){return qp(K)&&Fe.call(K,"callee")&&(!Qr.call(K,"callee")||Ne.call(K)==a)}var ul=Array.isArray;function gf(K){return K!=null&&Wp(K.length)&&!yf(K)}function qp(K){return Hp(K)&&gf(K)}var ll=Or||xt;function yf(K){var ae=hs(K)?Ne.call(K):"";return ae==d||ae==h}function Wp(K){return typeof K=="number"&&K>-1&&K%1==0&&K<=i}function hs(K){var ae=typeof K;return!!K&&(ae=="object"||ae=="function")}function Hp(K){return!!K&&typeof K=="object"}function cl(K){return gf(K)?il(K):ao(K)}function wt(){return[]}function xt(){return!1}e.exports=Up})(y0,y0.exports);var Va=y0.exports,v0=function(){return v0=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},v0.apply(this,arguments)};function BG(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function u(d){try{f(r.next(d))}catch(h){o(h)}}function l(d){try{f(r.throw(d))}catch(h){o(h)}}function f(d){d.done?a(d.value):i(d.value).then(u,l)}f((r=r.apply(e,[])).next())})}function LG(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=u(0),o.throw=u(1),o.return=u(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(f){return function(d){return l([f,d])}}function l(f){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,f[0]&&(n=0)),n;)try{if(r=1,i&&(a=f[0]&2?i.return:f[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,f[1])).done)return a;switch(i=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,i=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){n.label=f[1];break}if(f[0]===6&&n.label<a[1]){n.label=a[1],a=f;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(f);break}a[2]&&n.ops.pop(),n.trys.pop();continue}f=t.call(e,n)}catch(d){f=[6,d],i=0}finally{r=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}function $h(e,t,n,r,i){return BG(this,void 0,void 0,function(){var a,o;return LG(this,function(u){switch(u.label){case 0:if(n===void 0)return[2];o=0,u.label=1;case 1:return o<n.length?[4,n[o](e,t,r,i,n)]:[3,4];case 2:if(a=u.sent(),a==="canceled")return[3,4];u.label=3;case 3:return o++,[3,1];case 4:return a!=="canceled"?[2,a]:[2]}})})}var b0=function(e,t){return t===void 0&&(t={}),e?{trackedAnalytics:v0({sdkCode:e.sdkCode,sdkSemver:e.sdkSemver,techVersion:e.techVersion},t)}:null},VG=function(){function e(t,n,r,i){var a=this;this.isMounted=!0,this.imgElement=t,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var o=Va(n);$h(t,o,r,this.htmlPluginState,i).then(function(u){if(a.isMounted){a.htmlPluginState.pluginEventSubscription.forEach(function(f){f()});var l=b0(i,u);a.imgElement.setAttribute("src",o.toURL(l))}})}return e.prototype.update=function(t,n,r){var i=this,a=Va(t);$h(this.imgElement,a,n,this.htmlPluginState).then(function(o){if(i.isMounted){var u=b0(r,o);i.imgElement.setAttribute("src",a.toURL(u))}})},e.prototype.unmount=function(){this.isMounted=!1},e}();let Vt=class{constructor(t){this.values=[],this.delimiter=":",this.hasValue(t)&&this.addValue(t)}toString(){return this.values.join(this.delimiter)}hasValue(t){return typeof t<"u"&&t!==null&&t!==""}addValue(t){return Array.isArray(t)?this.values=this.values.concat(t):this.values.push(t),this.values=this.values.filter(n=>this.hasValue(n)),this}setDelimiter(t){return this.delimiter=t,this}},NG=class extends Error{constructor(t="Unsupported"){super(t)}};function J1(e){return new NG(e)}function jG(){return this._qualifierModel||{error:J1(`unsupported qualifier ${this.constructor.name}`)}}let KG=class{constructor(){this._qualifierModel={}}toJson(){return jG.apply(this)}},Je=class extends KG{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof Vt?this.qualifierValue=n:(this.qualifierValue=new Vt,this.qualifierValue.addValue(n))}toString(){const{key:t,delimiter:n,qualifierValue:r}=this;return`${t}${n}${r.toString()}`}addValue(t){return this.qualifierValue.addValue(t),this}},Tr=class extends Je{constructor(t,n){let r;n?r=new Vt([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}};function UG(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function zG(){var e,t,n;const r=this._actionModel&&Object.keys(this._actionModel).length,i=(n=(t=(e=this._actionModel)===null||e===void 0?void 0:e.source)===null||t===void 0?void 0:t.transformation)===null||n===void 0?void 0:n.error;return i&&i instanceof Error?{error:i}:r?this._actionModel:{error:J1(`unsupported action ${this.constructor.name}`)}}let qG=class{constructor(){this._actionModel={}}toJson(){return zG.apply(this)}},Gr=class extends qG{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(t){return this.actionTag=t,this}toString(){return this.prepareQualifiers(),UG(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(t){if(typeof t=="string"){const[n,r]=t.toLowerCase().split("_");n==="fl"?this.flags.push(new Tr(r)):this.qualifiers.set(n,new Je(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new Tr(t)):t instanceof Tr&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}};class X1 extends Gr{constructor(t){super(),this.regionType=t,this._actionModel.regionType=t}}class mp extends X1{constructor(){super("custom")}x(t){return this._actionModel.x=t,this.addQualifier(new Je("x",t)),this}y(t){return this._actionModel.y=t,this.addQualifier(new Je("y",t)),this}width(t){return this._actionModel.width=t,this.addQualifier(new Je("w",t)),this}height(t){return this._actionModel.height=t,this.addQualifier(new Je("h",t)),this}static fromJson(t){const n=new mp;return t.width&&n.width(t.width),t.height&&n.height(t.height),t.x&&n.x(t.x),t.y&&n.y(t.y),n}}function WG(){return new mp}function K7(){return new X1("faces")}function HG(){return new X1("ocr_text")}class GG extends Gr{constructor(t){super(),this._actionModel={},this._strength=t,this._actionModel.actionType="blur",this._actionModel.strength=t}region(t){return this._region=t,this._actionModel.region=t.toJson(),this}strength(t){return this._strength=t,this._actionModel.strength=t,this}prepareQualifiers(){const t=this._strength?`:${this._strength}`:"";"_region"in this?(this._region.qualifiers.forEach(r=>this.addQualifier(r)),this._region.regionType==="custom"&&this.addQualifier(new Je("e",`blur_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new Je("e",`blur_region${t}`)),this.addQualifier(new Je("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new Je("e",`blur_faces${t}`))):this.addQualifier(new Je("e",`blur${t}`))}static fromJson(t){const{strength:n,region:r}=t,i=new this(n);return n&&i.strength(n),r&&r.regionType==="faces"&&i.region(K7()),r&&r.regionType==="ocr_text"&&i.region(HG()),r&&r.regionType==="custom"&&i.region(mp.fromJson(r)),i}}function Jo(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const U7={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},YG={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},z7={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},q7={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},ZG={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},W7={444:"CHROMA_444",420:"CHROMA_420"},JG={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"},XG=Jo(W7);Jo(JG);const QG=Jo(U7),eY=Jo(YG),H7=Jo(z7);Jo(q7);Jo(ZG);class G7 extends Gr{constructor(t,n){super(),this._actionModel={},this._actionModel.actionType=H7[t]||t;const r=this.createEffectQualifier(t,n);this.addQualifier(r)}createEffectQualifier(t,n){let r;return n?r=new Vt([t,`${n}`]).setDelimiter(":"):r=new Vt(t),new Je("e",r)}static fromJson(t){const{actionType:n,level:r,strength:i}=t,a=z7[n]||n;return new this(a,r||i)}}class tY extends G7{constructor(t,n){super(t,n),this.LEVEL_NAME="level",this._actionModel={},this.effectType=t,this._actionModel.actionType=H7[t]||t,n&&this.setLevel(n)}setLevel(t){this._actionModel[this.LEVEL_NAME]=t;const n=this.createEffectQualifier(this.effectType,t);return this.addQualifier(n),this}}function gp(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class nY extends Gr{constructor(){super(),this._actionModel={},this._actionModel.actionType="vectorize"}numOfColors(t){return this._actionModel.numOfColors=t,this._numOfColors=t,this}detailsLevel(t){return this._actionModel.detailLevel=t,this._detailsLevel=t,this}despeckleLevel(t){return this._actionModel.despeckleLevel=t,this._despeckleLevel=t,this}cornersLevel(t){return this._actionModel.cornersLevel=t,this._cornersLevel=t,this}paths(t){return this._actionModel.paths=t,this._paths=t,this}prepareQualifiers(){let t="vectorize";this._numOfColors&&(t+=`:${new Vt(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(t+=`:${new Vt(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(t+=`:${new Vt(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(t+=`:${new Vt(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(t+=`:${new Vt(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new Je("e",t))}static fromJson(t){const{actionType:n,paths:r,cornersLevel:i,despeckleLevel:a,detailLevel:o,numOfColors:u}=t,l=new this;return r&&l.paths(r),i&&l.cornersLevel(i),a&&l.despeckleLevel(a),o&&l.detailsLevel(o),u&&l.numOfColors(u),l}}class rY extends tY{level(t){return this._actionModel.level=t,this.setLevel(t)}}class iY extends Gr{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new Je("e",new Vt("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new Je("e",new Vt(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(t){return this._actionModel.type="stripes",this._actionModel.stripesStrength=t,this.addQualifier(new Je("e",new Vt(["assist_colorblind",t]).setDelimiter(":")))}static fromJson(t){const{actionType:n,type:r,stripesStrength:i}=t,a=new this;return r==="xray"&&a.xray(),r==="stripes"&&i&&a.stripesStrength(i),a}}class aY extends rY{color(t){return this._actionModel.color=t,this.addQualifier(new Je("co",new Vt(gp(t))))}static fromJson(t){const{actionType:n,level:r,color:i}=t,a=new this(n,r);return i&&a.color(i),a}}class oY extends Gr{constructor(t){super(),this._actionModel={},this._squareSize=t,this._actionModel.actionType="pixelate",this._actionModel.squareSize=t}region(t){return this._region=t,this._actionModel.region={regionType:this._region.regionType},this}squareSize(t){return this._squareSize=t,this._actionModel.squareSize=t,this}prepareQualifiers(){const t=this._squareSize?`:${this._squareSize}`:"";"_region"in this?(this._region.qualifiers.forEach(r=>this.addQualifier(r)),this._region.regionType==="custom"&&this.addQualifier(new Je("e",`pixelate_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new Je("e",`pixelate_region${t}`)),this.addQualifier(new Je("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new Je("e",`pixelate_faces${t}`))):this.addQualifier(new Je("e",`pixelate${t}`))}static fromJson(t){const{region:n,squareSize:r}=t,i=new this(r);return r&&i.squareSize(r),n&&n.regionType==="faces"&&i.region(K7()),n&&n.regionType==="custom"&&i.region(WG()),i}}function sY(e){return new GG(e)}function uY(){return new G7("grayscale")}function KD(e){return new aY("colorize",e)}function lY(){return new nY}function cY(){return new iY}function fY(e){return new oY(e)}let dY=class extends Gr{constructor(t){super(),this._actionModel={},this.addQualifier(new Je("b",new Vt(gp(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}},UD=class{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:J1(`unsupported action ${this.constructor.name}`)}}};function hY(e){const t=e;return"error"in t&&!!t.error}function pY(){return new Tr("ignore_aspect_ratio")}function mY(){return new Tr("lossy")}function gY(){return new Tr("preserve_transparency")}function yY(e){return new Tr("progressive",e)}function vY(){return new Tr("region_relative")}function bY(){return new Tr("relative")}let Q1=class extends Vt{constructor(t){super(t),this.val=t}getValue(){return this.val}},Y7=class extends Gr{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof Q1?i=n.getValue():i=n,this._actionModel.actionType=eY[t],this._actionModel[r]=i,this.addQualifier(new Je(t,n))}},$Y=class extends Tr{constructor(t){super("progressive",t)}},$0=class extends Y7{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(mY()),this}progressive(t){return t instanceof $Y?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(yY(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(gY()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:a}=t;let o;return n?o=new this("f",n):o=new this("f"),i&&(i.mode?o.progressive(i.mode):o.progressive()),r&&o.lossy(),a&&o.preserveTransparency(),o}},yp=class Z7{constructor(){this.actions=[]}addAction(t){let n;if(typeof t=="string"){if(t.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";n=new UD(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof Z7?this.actions=this.actions.concat(t.actions):this.actions.push(new UD(t)),this}toString(){return this.actions.map(t=>t.toString()).filter(t=>t).join("/")}animated(t){return this.addAction(t)}border(t){return this.addAction(t)}reshape(t){return this.addAction(t)}resize(t){return this.addAction(t)}quality(t){return this.addAction(new $0("q",t)),this}format(t){return this.addAction(new $0("f",t)),this}roundCorners(t){return this.addAction(t)}overlay(t){return this.addAction(t)}underlay(t){return t.setLayerType("u"),this.addAction(t)}addVariable(t){return this.addAction(t)}conditional(t){return this.addAction(t)}effect(t){return this.addAction(t)}adjust(t){return this.addAction(t)}rotate(t){return this.addAction(t)}namedTransformation(t){return this.addAction(t)}delivery(t){return this.addAction(t)}backgroundColor(t){return this.addAction(new dY(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new Gr;let r=t;return typeof t=="string"&&(r=new Tr(t)),n.addQualifier(r),this.addAction(n)}customFunction(t){return this.addAction(t)}transcode(t){return this.addAction(t)}videoEdit(t){return this.addAction(t)}toJson(){const t=[];for(const n of this.actions){const r=n.toJson();if(hY(r))return r;t.push(r)}return{actions:t}}};function zD(e){const t=e.toString();return t.match(/[A-Z]/gi)||t.length>1&&t[0]==="0"?t:!isNaN(parseFloat(t))&&t.indexOf(":")===-1&&t.indexOf(".")===-1?`${t}.0`:t}class xY extends Vt{}class wY extends Gr{constructor(t,n,r){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=QG[t]||t,this.addQualifier(new Je("c",t)),n&&this.width(n),r&&this.height(r)}height(t){return this._actionModel.dimensions.height=t,this.addQualifier(new Je("h",t))}width(t){return this._actionModel.dimensions.width=t,this.addQualifier(new Je("w",t))}aspectRatio(t){if(t instanceof xY)return this._actionModel.dimensions.aspectRatio=`${t}`,this.addQualifier(new Je("ar",t));if(typeof t=="number"||typeof t=="string")return this._actionModel.dimensions.aspectRatio=zD(t),this.addQualifier(new Je("ar",zD(t)));if(t instanceof Tr)return this._actionModel.dimensions.aspectRatio=`${t.qualifierValue}`,this.addFlag(t)}relative(){return this._actionModel.relative=!0,this.addFlag(bY())}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(vY())}static fromJson(t){const{actionType:n,dimensions:r,relative:i,regionRelative:a}=t,{aspectRatio:o,width:u,height:l}=r,f=U7[n]||n,d=new this(f,u,l);return o&&d.aspectRatio(o==="ignore_aspect_ratio"?pY():o),i&&d.relative(),a&&d.regionRelative(),d}}class e4 extends Je{constructor(t){super("g",new Vt(t))}}class J7 extends e4{constructor(){super("auto")}autoFocus(...t){return this.addValue(t),this}}class X7 extends e4{constructor(t){super(t)}fallbackGravity(t){return this.addValue(t.qualifierValue),this}}class Q7 extends e4{constructor(t){super(t)}}function DY(e){return new Q7(e)}function eO(...e){const t=[...e];return new X7(t)}function tO(){return new J7}class hu extends Vt{constructor(t){super(),this.name=t}toString(){return this.name}}function CY(){return new hu("ocr_text")}function EY(e){return e&&`${e}`.split(":")[0]==="auto"}function SY(e){const t=t4(e);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(t)}function t4(e){return`${e}`.replace("g_","")}function TY(e){return{compass:t4(e),gravityType:"direction"}}function AY(e){return t4(e)==="ocr_text"}function PY(){return{gravityType:"ocr"}}function _Y(e){return`${e.qualifierValue}`.split(":")[0]==="auto"}function RY(e){const n=e.toString().split("_"),r={object:n[0]};return n.length>1&&(n[1]==="avoid"?r.avoid=!0:r.weight=+n[1]),r}function nO(e){let t;const n=e==="auto"?new J7:e;return`${e}`.startsWith("auto:")?t=`${e}`.split(":").filter(i=>i!=="auto"):t=n.qualifierValue.values.filter(i=>i!=="auto"),{gravityType:"auto",autoFocus:t.map(RY)}}function OY(e){const t=`${e}`.split(":").includes("auto"),n=e.qualifierValue.values,i={gravityType:"object",focusOnObjects:(t?n.slice(0,n.length-1):n).map(a=>`${a}`)};if(t){const a=n[n.length-1].values.slice(1),o=tO().autoFocus(...a);i.fallbackGravity=nO(o)}return i}function MY(e){const n=e.split(":").map(r=>new hu(r));return new X7(n)}function FY(e){return SY(e)?TY(e):AY(e)?PY():EY(e)||_Y(e)?nO(e):OY(typeof e=="string"?MY(e):e)}class n4 extends Vt{constructor(t,n){super(),this._weight=n,this.focusOn=t,this.shouldAvoid=!1}static focusOn(t,n){const r=t instanceof hu?t:new hu(t);return new n4(r,n)}shouldAddWeight(){return typeof this._weight=="number"||typeof this._weight=="string"||this.shouldAvoid}getName(){return this.focusOn.name}getWeight(){return this.shouldAvoid?"avoid":this._weight}toString(){return this.shouldAddWeight()?`${this.getName()}_${this.getWeight()}`:`${this.getName()}`}weight(t){return this._weight=t,this}avoid(){return this.shouldAvoid=!0,this}}class rO extends Vt{constructor(t){super(),this.val=t}toString(){return this.val}}function kY(e){return e.gravityType==="direction"}function IY(e){return e.gravityType==="ocr"}function BY(e){return e.gravityType==="auto"}function LY(e){const{object:t,weight:n,avoid:r}=e,i=new n4(new hu(t));return(n||n===0)&&i.weight(n),r&&i.avoid(),i}function iO(e){const n=(e.autoFocus||[]).map(LY);return tO().autoFocus(...n)}function VY(e){const t=(e.focusOnObjects||[]).map(r=>new hu(r)),n=eO(...t);if(e.fallbackGravity){const r=iO(e.fallbackGravity);n.fallbackGravity(r)}return n}function NY(e){return kY(e)?new Q7(new rO(e.compass)):IY(e)?eO(CY()):BY(e)?iO(e):VY(e)}class r4 extends wY{gravity(t){this._actionModel.gravity=FY(t);const n=typeof t=="string"?new Je("g",t):t;return this.addQualifier(n)}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.gravity&&n.gravity(NY(t.gravity)),n}}class Zc extends Je{constructor(t){super("b"),t&&this.addValue(t)}}const aO=100,jY=0;class KY extends Zc{intensity(t){return this.intensityLevel=t,this}brightness(t){return this.brightnessLevel=t,this}toString(){const t=this.intensityLevel!==void 0?`:${this.intensityLevel}`:"",n=this.brightnessLevel!==void 0?this.intensityLevel!==void 0?`:${this.brightnessLevel}`:`:${aO}:${this.brightnessLevel}`:"";return`b_blurred${t}${n}`}}var oO=KY;class i4 extends Zc{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...t){return this._palette=t.map(n=>gp(n)),this}}class sO extends i4{toString(){return`
85
85
  b_auto:border
86
86
  ${this._contrast?"_contrast":""}
87
87
  ${this._palette.length?`:palette_${this._palette.join("_")}`:""}