@worldresources/wri-design-systems 2.142.1 → 2.142.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -383,7 +383,11 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
383
383
  &:focus-visible {
384
384
  outline-color: ${fe("primary",700)};
385
385
  }
386
- `,wt=q.forwardRef(((e,t)=>{const{portalled:n=!0,portalRef:r,...i}=e;return B(s,{disabled:!n,container:r,children:B(l.Positioner,{children:B(l.Content,{css:xt,ref:t,...i})})})})),$t=({variant:e="primary",size:t="default",mainActionLabel:n,mainActionOnClick:r=()=>{},otherActions:i=[],disabled:o,...s})=>{const[c,d]=W(!1);return H(a,{css:Ct,attached:!0,tabIndex:o?0:void 0,"aria-disabled":o,"aria-label":o?`${n} action button with menu, disabled`:void 0,role:"group",children:[B(ye,{css:{},label:n,variant:e,size:t,onClick:r,disabled:o,...s}),H(l.Root,{onOpenChange:({open:e})=>d(e),positioning:{placement:"bottom-end"},children:[B(l.Trigger,{css:bt(e),"data-group-item":!0,"data-last":!0,asChild:!0,children:B(ye,{variant:e,size:t,leftIcon:B(Ee,{rotate:c?"180":"0",color:fe("accessible","text-on-primary-mids")||fe("primary",900)}),disabled:o})}),B(wt,{children:i.map((({label:e,value:n,onClick:r})=>B(l.Item,{css:yt(t),onClick:r,value:n,children:e},n)))})]})]})},kt=e=>oe`
386
+ `,wt=q.forwardRef(((e,t)=>{const{portalled:n=!0,portalRef:r,...i}=e;return B(s,{disabled:!n,container:r,children:B(l.Positioner,{children:B(l.Content,{css:xt,ref:t,...i})})})})),$t=({variant:e="primary",size:t="default",mainActionLabel:n,mainActionOnClick:r=()=>{},otherActions:i=[],disabled:o,...s})=>{const[c,d]=W(!1);return H(a,{css:Ct,attached:!0,tabIndex:o?0:void 0,"aria-disabled":o,"aria-label":o?`${n} action button with menu, disabled`:void 0,role:"group",children:[B(ye,{css:{},label:n,variant:e,size:t,onClick:r,disabled:o,...s}),H(l.Root,{onOpenChange:({open:e})=>d(e),positioning:{placement:"bottom-end"},children:[B(l.Trigger,{css:bt(e),"data-group-item":!0,"data-last":!0,asChild:!0,children:B(ye,{variant:e,size:t,leftIcon:B(Ee,{rotate:c?"180":"0",color:fe("accessible","text-on-primary-mids")||fe("primary",900)}),disabled:o})}),B(wt,{children:i.map((({label:e,value:n,onClick:r})=>B(l.Item,{css:yt(t),onClick:r,value:n,children:e},n)))})]})]})},kt=oe`
387
+ &:focus-visible {
388
+ outline: none;
389
+ }
390
+ `,St=e=>oe`
387
391
  background-color: ${fe("neutral",800)};
388
392
  border-radius: 4px;
389
393
  border: 1px solid ${fe("neutral",800)};
@@ -399,7 +403,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
399
403
  }
400
404
 
401
405
  ${"text"===e&&`\n background-color: transparent;\n border: none;\n box-shadow: none;\n color: ${fe("neutral",800)};\n font-size: 16px;\n line-height: 24px;\n text-shadow: 0 0 1px ${fe("neutral",100)};\n `}
402
- `,St=({children:e,content:t,showArrow:n=!0,disabled:r,position:i="bottom",variant:o="pill",portalRef:a,openDelay:l,closeDelay:d})=>r?e:H(c.Root,{positioning:{placement:i,offset:"pill"===o?void 0:{mainAxis:0,crossAxis:0}},openDelay:l,closeDelay:d,children:[B(c.Trigger,{children:e}),B(s,{disabled:r,container:a,children:B(c.Positioner,{children:H(c.Content,{css:kt(o),children:[n&&"pill"===o?B(c.Arrow,{children:B(c.ArrowTip,{})}):null,t]})})})]}),Et=oe`
406
+ `,Et=({children:e,content:t,showArrow:n=!0,disabled:r,position:i="bottom",variant:o="pill",portalRef:a,openDelay:l=0,closeDelay:d=0})=>{const[u,p]=W(!1);return r?e:H(c.Root,{positioning:{placement:i,offset:"pill"===o?void 0:{mainAxis:0,crossAxis:0}},openDelay:l,closeDelay:d,open:u,onOpenChange:({open:e})=>p(e),children:[B(c.Trigger,{tabIndex:0,onClick:()=>p(!0),css:kt,children:e}),B(s,{disabled:r,container:a,children:B(c.Positioner,{children:H(c.Content,{css:St(o),children:[n&&"pill"===o?B(c.Arrow,{children:B(c.ArrowTip,{})}):null,t]})})})]})},Ot=oe`
403
407
  .chakra-checkbox__control {
404
408
  width: 20px;
405
409
  height: 20px;
@@ -477,7 +481,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
477
481
  cursor: not-allowed;
478
482
  }
479
483
  }
480
- `,Ot=({name:e,value:t,checked:n,defaultChecked:r,disabled:i,indeterminate:o,onCheckedChange:a,children:l,...s})=>H(d.Root,{css:Et,name:e,value:t,checked:o?"indeterminate":n,defaultChecked:r,disabled:i,onCheckedChange:a,"aria-label":void 0,gap:l?"10px":"0",...s,children:[B(d.HiddenInput,{}),B(d.Control,{children:B(o?ke:$e,{})}),B(d.Label,{children:l})]}),_t=oe`
484
+ `,_t=({name:e,value:t,checked:n,defaultChecked:r,disabled:i,indeterminate:o,onCheckedChange:a,children:l,...s})=>H(d.Root,{css:Ot,name:e,value:t,checked:o?"indeterminate":n,defaultChecked:r,disabled:i,onCheckedChange:a,"aria-label":void 0,gap:l?"10px":"0",...s,children:[B(d.HiddenInput,{}),B(d.Control,{children:B(o?ke:$e,{})}),B(d.Label,{children:l})]}),Lt=oe`
481
485
  width: 241px;
482
486
  min-height: 70px;
483
487
  padding: 12px;
@@ -517,7 +521,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
517
521
  color: ${fe("neutral",600)};
518
522
  cursor: not-allowed;
519
523
  }
520
- `,Lt=oe`
524
+ `,Tt=oe`
521
525
  width: 100%;
522
526
  padding: 0;
523
527
  display: flex;
@@ -527,25 +531,25 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
527
531
  &[data-disabled] {
528
532
  background-color: ${fe("neutral",100)};
529
533
  }
530
- `,Tt=oe`
534
+ `,Rt=oe`
531
535
  svg {
532
536
  height: 32px;
533
537
  width: 32px;
534
538
  }
535
- `,Rt=(e,t)=>oe`
539
+ `,Pt=(e,t)=>oe`
536
540
  font-size: 16px;
537
541
  line-height: 24px;
538
542
  font-weight: 400;
539
543
  color: ${fe("neutral",t?600:900)};
540
544
  text-align: ${"centered"===e?"center":"left"};
541
545
  display: block;
542
- `,Pt=(e,t)=>oe`
546
+ `,Dt=(e,t)=>oe`
543
547
  font-size: 14px;
544
548
  line-height: 20px;
545
549
  font-weight: 400;
546
550
  color: ${fe("neutral",t?600:700)};
547
551
  text-align: ${"centered"===e?"center":"left"};
548
- `,Dt=e=>oe`
552
+ `,Mt=e=>oe`
549
553
  position: ${"centered"===e?"absolute":"relative"};
550
554
  top: 0;
551
555
  right: 0;
@@ -570,20 +574,20 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
570
574
  border: 1px solid ${fe("neutral",400)};
571
575
  cursor: not-allowed;
572
576
  }
573
- `,Mt=({defaultValue:e,items:t,onValueChange:n})=>B(u,{defaultValue:e,onValueChange:n,children:B(p,{alignItems:"flex-start",flexWrap:"wrap",gap:"12px",children:t.map((t=>{return H(h.Root,{css:_t,defaultChecked:-1!==e?.indexOf(t.value),disabled:t.disabled,value:t.value,children:[B(h.HiddenInput,{}),H(h.Control,{css:Lt,children:[H(h.Content,{css:(r=t.variant,oe`
577
+ `,Nt=({defaultValue:e,items:t,onValueChange:n})=>B(u,{defaultValue:e,onValueChange:n,children:B(p,{alignItems:"flex-start",flexWrap:"wrap",gap:"12px",children:t.map((t=>{return H(h.Root,{css:Lt,defaultChecked:-1!==e?.indexOf(t.value),disabled:t.disabled,value:t.value,children:[B(h.HiddenInput,{}),H(h.Control,{css:Tt,children:[H(h.Content,{css:(r=t.variant,oe`
574
578
  width: 100%;
575
579
  display: flex;
576
580
  flex-direction: ${"centered"===r?"column":"row"};
577
581
  align-items: center;
578
582
  gap: 12px;
579
- `),children:[B("div",{css:Tt,children:t.icon}),H("div",{style:{width:"100%"},children:[B(h.Label,{css:Rt(t.variant,t.disabled),children:t.label}),t.caption?B(h.Description,{css:Pt(t.variant,t.disabled),children:t.caption}):null]})]}),B(h.Indicator,{css:Dt(t.variant)})]}),t.children&&"expanded"===t.variant?B(h.Addon,{css:(n=t.disabled,oe`
583
+ `),children:[B("div",{css:Rt,children:t.icon}),H("div",{style:{width:"100%"},children:[B(h.Label,{css:Pt(t.variant,t.disabled),children:t.label}),t.caption?B(h.Description,{css:Dt(t.variant,t.disabled),children:t.caption}):null]})]}),B(h.Indicator,{css:Mt(t.variant)})]}),t.children&&"expanded"===t.variant?B(h.Addon,{css:(n=t.disabled,oe`
580
584
  width: 100%;
581
585
  border-color: ${fe("neutral",300)};
582
586
  margin-top: 12px;
583
587
  padding: 0px;
584
588
  padding-top: 8px;
585
589
  color: ${n?fe("neutral",500):"inherit"};
586
- `),children:t.children}):null]},`${t.label}-${t.value}`);var n,r}))})}),Nt=oe`
590
+ `),children:t.children}):null]},`${t.label}-${t.value}`);var n,r}))})}),jt=oe`
587
591
  width: 241px;
588
592
  min-height: 70px;
589
593
  padding: 12px;
@@ -623,7 +627,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
623
627
  color: ${fe("neutral",600)};
624
628
  cursor: not-allowed;
625
629
  }
626
- `,jt=oe`
630
+ `,Vt=oe`
627
631
  width: 100%;
628
632
  padding: 0;
629
633
  display: flex;
@@ -633,24 +637,24 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
633
637
  &[data-disabled] {
634
638
  background-color: ${fe("neutral",100)};
635
639
  }
636
- `,Vt=oe`
640
+ `,It=oe`
637
641
  svg {
638
642
  height: 32px;
639
643
  width: 32px;
640
644
  }
641
- `,It=(e,t)=>oe`
645
+ `,zt=(e,t)=>oe`
642
646
  font-size: 16px;
643
647
  line-height: 24px;
644
648
  font-weight: 400;
645
649
  color: ${fe("neutral",t?600:900)};
646
650
  text-align: ${"centered"===e?"center":"left"};
647
- `,zt=(e,t)=>oe`
651
+ `,At=(e,t)=>oe`
648
652
  font-size: 14px;
649
653
  line-height: 20px;
650
654
  font-weight: 400;
651
655
  color: ${fe("neutral",t?600:700)};
652
656
  text-align: ${"centered"===e?"center":"left"};
653
- `,At=e=>oe`
657
+ `,Ht=e=>oe`
654
658
  position: ${"centered"===e?"absolute":"relative"};
655
659
  top: 0;
656
660
  right: 0;
@@ -680,20 +684,20 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
680
684
  border: 1px solid ${fe("neutral",400)};
681
685
  cursor: not-allowed;
682
686
  }
683
- `,Ht=({defaultValue:e,items:t,onValueChange:n})=>B(f.Root,{defaultValue:e,onValueChange:n,children:B(p,{alignItems:"flex-start",flexWrap:"wrap",gap:"12px",children:t.map((e=>{return H(f.Item,{css:Nt,value:e.value,disabled:e.disabled,children:[B(f.ItemHiddenInput,{}),H(f.ItemControl,{css:jt,children:[H("div",{css:(n=e.variant,oe`
687
+ `,Bt=({defaultValue:e,items:t,onValueChange:n})=>B(f.Root,{defaultValue:e,onValueChange:n,children:B(p,{alignItems:"flex-start",flexWrap:"wrap",gap:"12px",children:t.map((e=>{return H(f.Item,{css:jt,value:e.value,disabled:e.disabled,children:[B(f.ItemHiddenInput,{}),H(f.ItemControl,{css:Vt,children:[H("div",{css:(n=e.variant,oe`
684
688
  width: 100%;
685
689
  display: flex;
686
690
  flex-direction: ${"centered"===n?"column":"row"};
687
691
  align-items: center;
688
692
  gap: 12px;
689
- `),children:[B("div",{css:Vt,children:e.icon}),H("div",{style:{width:"100%"},children:[B("p",{css:It(e.variant,e.disabled),"aria-label":e.label,"aria-disabled":e.disabled,children:e.label}),B("p",{css:zt(e.variant,e.disabled),"aria-label":e.caption,"aria-disabled":e.disabled,children:e.caption})]})]}),B(f.ItemIndicator,{css:At(e.variant)})]}),e.children&&"expanded"===e.variant?B(f.ItemAddon,{css:(t=e.disabled,oe`
693
+ `),children:[B("div",{css:It,children:e.icon}),H("div",{style:{width:"100%"},children:[B("p",{css:zt(e.variant,e.disabled),"aria-label":e.label,"aria-disabled":e.disabled,children:e.label}),B("p",{css:At(e.variant,e.disabled),"aria-label":e.caption,"aria-disabled":e.disabled,children:e.caption})]})]}),B(f.ItemIndicator,{css:Ht(e.variant)})]}),e.children&&"expanded"===e.variant?B(f.ItemAddon,{css:(t=e.disabled,oe`
690
694
  width: 100%;
691
695
  border-top: 1px solid ${fe("neutral",300)};
692
696
  margin-top: 12px;
693
697
  padding: 0px;
694
698
  padding-top: 8px;
695
699
  color: ${t?fe("neutral",500):"inherit"};
696
- `),children:e.children}):null]},`${e.label}-${e.value}`);var t,n}))})}),Bt=oe`
700
+ `),children:e.children}):null]},`${e.label}-${e.value}`);var t,n}))})}),Ft=oe`
697
701
  .ds-radio-item-indicator {
698
702
  width: 20px;
699
703
  height: 20px;
@@ -759,21 +763,21 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
759
763
  }
760
764
  }
761
765
  }
762
- `,Ft=oe`
766
+ `,Zt=oe`
763
767
  cursor: pointer;
764
768
 
765
769
  &[data-disabled] {
766
770
  color: ${fe("neutral",500)};
767
771
  cursor: not-allowed;
768
772
  }
769
- `,Zt=oe`
773
+ `,qt=oe`
770
774
  margin: 0 !important;
771
775
  width: 20px !important;
772
776
  height: 20px !important;
773
- `,qt=({children:e,value:t,disabled:n,...r})=>H(g.Item,{css:Bt,value:t,disabled:n,...r,children:[B(g.ItemHiddenInput,{css:Zt}),B(g.ItemIndicator,{className:"ds-radio-item-indicator"}),e?B(g.ItemText,{css:Ft,children:e}):null]}),Gt=({children:e,horizontal:t=!1,name:n,defaultValue:r,onChange:i,customGap:o,...a})=>{const[l,s]=W(r);let c=t?"20px":"8px";return c=o||c,ae(g.Root,{onValueChange:e=>{s(e.value||""),i&&i(n,e.value||"")},value:l,...a,children:ae(p,{gap:c,flexDirection:t?"row":"column",alignItems:"flex-start",flexWrap:"wrap",children:e})})},Wt=oe`
777
+ `,Gt=({children:e,value:t,disabled:n,...r})=>H(g.Item,{css:Ft,value:t,disabled:n,...r,children:[B(g.ItemHiddenInput,{css:qt}),B(g.ItemIndicator,{className:"ds-radio-item-indicator"}),e?B(g.ItemText,{css:Zt,children:e}):null]}),Wt=({children:e,horizontal:t=!1,name:n,defaultValue:r,onChange:i,customGap:o,...a})=>{const[l,s]=W(r);let c=t?"20px":"8px";return c=o||c,ae(g.Root,{onValueChange:e=>{s(e.value||""),i&&i(n,e.value||"")},value:l,...a,children:ae(p,{gap:c,flexDirection:t?"row":"column",alignItems:"flex-start",flexWrap:"wrap",children:e})})},Ut=oe`
774
778
  height: 60px;
775
779
  padding: 40px 12px;
776
- `,Ut=oe`
780
+ `,Xt=oe`
777
781
  height: 20px;
778
782
  width: 20px;
779
783
  background-color: ${fe("primary",500)};
@@ -820,7 +824,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
820
824
  outline: none;
821
825
  cursor: not-allowed;
822
826
  }
823
- `,Xt=oe`
827
+ `,Yt=oe`
824
828
  font-size: 14px;
825
829
  line-height: 20px;
826
830
  color: ${fe("neutral",800)};
@@ -834,11 +838,11 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
834
838
  align-items: center;
835
839
  position: relative;
836
840
  top: -30px;
837
- `,Yt=oe`
841
+ `,Kt=oe`
838
842
  background-color: ${fe("neutral",300)};
839
843
  border: none;
840
844
  box-shadow: none;
841
- `,Kt=oe`
845
+ `,Jt=oe`
842
846
  background-color: ${fe("primary",500)};
843
847
  border: 1px solid ${fe("primary",700)};
844
848
  border-radius: 8px;
@@ -851,7 +855,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
851
855
  background-color: ${fe("neutral",400)};
852
856
  border: none;
853
857
  }
854
- `,Jt=(e,t)=>oe`
858
+ `,Qt=(e,t)=>oe`
855
859
  font-size: 12px;
856
860
  line-height: 16px;
857
861
  color: ${fe("neutral",800)};
@@ -886,7 +890,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
886
890
  }
887
891
 
888
892
  ${t?`\n --ty: -6px !important;\n\n .chakra-slider__markerIndicator {\n height: 16px;\n width: 4px;\n background-color: ${fe("primary",700)} !important;\n }\n\n &[data-disabled] {\n .chakra-slider__markerIndicator {\n background-color: ${fe("neutral",400)} !important;\n }\n }\n `:""};
889
- `,Qt=e=>{const{value:t}=e;return B(m,{each:t,children:(e,t)=>H(v.Thumb,{css:Ut,index:t,children:[B("div",{css:Xt,className:"ds-slider-value-preview",children:e}),B(v.HiddenInput,{})]},t)})},en=q.forwardRef(((e,t)=>{const{marks:n,isCentred:r}=e;return n?.length?B(v.MarkerGroup,{ref:t,children:n.map(((e,t)=>{const n="number"==typeof e?e:e.value,i="number"==typeof e?void 0:e.label,o=r&&1===t;return H(v.Marker,{css:Jt(r,o),value:n,children:[B(v.MarkerIndicator,{}),B("p",{children:i})]},n)}))}):null})),tn=q.forwardRef(((e,t)=>{const{marks:n,onValueChange:r,isCentred:i,value:o,...a}=e,[l,s]=W(o||[0]);U((()=>{s(o||[0])}),[o]);let c=n?.map((e=>"number"==typeof e?{value:e,label:void 0}:e));if(i){const e=a.min||0,t=a.max||100;c=[e,(e+t)/2,t].map((e=>({value:e,label:void 0})))}const d=!!c?.some((e=>e.label));return B(v.Root,{css:Wt,ref:t,thumbAlignment:"center",onValueChange:e=>{s(e.value),r&&r(e)},origin:i?"center":"start",value:l,...a,children:H(v.Control,{"data-has-mark-label":d||void 0,children:[B(v.Track,{css:Yt,children:B(v.Range,{css:Kt})}),B(Qt,{value:l}),B(en,{marks:c,isCentred:i})]})})})),nn=oe`
893
+ `,en=e=>{const{value:t}=e;return B(m,{each:t,children:(e,t)=>H(v.Thumb,{css:Xt,index:t,children:[B("div",{css:Yt,className:"ds-slider-value-preview",children:e}),B(v.HiddenInput,{})]},t)})},tn=q.forwardRef(((e,t)=>{const{marks:n,isCentred:r}=e;return n?.length?B(v.MarkerGroup,{ref:t,children:n.map(((e,t)=>{const n="number"==typeof e?e:e.value,i="number"==typeof e?void 0:e.label,o=r&&1===t;return H(v.Marker,{css:Qt(r,o),value:n,children:[B(v.MarkerIndicator,{}),B("p",{children:i})]},n)}))}):null})),nn=q.forwardRef(((e,t)=>{const{marks:n,onValueChange:r,isCentred:i,value:o,...a}=e,[l,s]=W(o||[0]);U((()=>{s(o||[0])}),[o]);let c=n?.map((e=>"number"==typeof e?{value:e,label:void 0}:e));if(i){const e=a.min||0,t=a.max||100;c=[e,(e+t)/2,t].map((e=>({value:e,label:void 0})))}const d=!!c?.some((e=>e.label));return B(v.Root,{css:Ut,ref:t,thumbAlignment:"center",onValueChange:e=>{s(e.value),r&&r(e)},origin:i?"center":"start",value:l,...a,children:H(v.Control,{"data-has-mark-label":d||void 0,children:[B(v.Track,{css:Kt,children:B(v.Range,{css:Jt})}),B(en,{value:l}),B(tn,{marks:c,isCentred:i})]})})})),rn=oe`
890
894
  --switch-height: 24px;
891
895
  --switch-width: 40px;
892
896
 
@@ -985,13 +989,13 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
985
989
  cursor: not-allowed;
986
990
  }
987
991
  }
988
- `,rn=({name:e,defaultChecked:t=!1,onChange:n,disabled:r=!1,isLabelOnLeft:i=!1,children:o,...a})=>B("div",{style:{display:"flex",alignItems:"center"},children:H(x.Root,{css:nn,id:e,name:e,"aria-label":a["aria-label"]||e,defaultChecked:t,onCheckedChange:({checked:t})=>{n&&n(e,t)},disabled:r,...a,children:[i&&null!=o?B(x.Label,{children:o}):null,B(x.HiddenInput,{style:{width:"42px",height:"26px"}}),B("div",{className:"chakra-switch__control-container",children:B(x.Control,{children:B(x.Thumb,{children:B(x.ThumbIndicator,{display:"flex",children:B($e,{})})})})}),i||null==o?null:B(x.Label,{children:o})]})}),on=oe`
992
+ `,on=({name:e,defaultChecked:t=!1,onChange:n,disabled:r=!1,isLabelOnLeft:i=!1,children:o,...a})=>B("div",{style:{display:"flex",alignItems:"center"},children:H(x.Root,{css:rn,id:e,name:e,"aria-label":a["aria-label"]||e,defaultChecked:t,onCheckedChange:({checked:t})=>{n&&n(e,t)},disabled:r,...a,children:[i&&null!=o?B(x.Label,{children:o}):null,B(x.HiddenInput,{style:{width:"42px",height:"26px"}}),B("div",{className:"chakra-switch__control-container",children:B(x.Control,{children:B(x.Thumb,{children:B(x.ThumbIndicator,{display:"flex",children:B($e,{})})})})}),i||null==o?null:B(x.Label,{children:o})]})}),an=oe`
989
993
  position: relative;
990
994
  height: 100%;
991
995
  &:focus-visible {
992
996
  outline-color: ${fe("primary",700)};
993
997
  }
994
- `,an=oe`
998
+ `,ln=oe`
995
999
  font-size: 16px;
996
1000
  line-height: 24px;
997
1001
  color: ${fe("neutral",900)};
@@ -1001,37 +1005,37 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1001
1005
  color: ${fe("error",500)};
1002
1006
  margin-right: 3px;
1003
1007
  }
1004
- `,ln=oe`
1008
+ `,sn=oe`
1005
1009
  font-size: 14px;
1006
1010
  line-height: 20px;
1007
1011
  color: ${fe("neutral",700)};
1008
1012
  text-align: left;
1009
- `,sn=e=>oe`
1013
+ `,cn=e=>oe`
1010
1014
  margin-top: 12px;
1011
1015
  display: flex;
1012
1016
  flex-direction: ${e?"row":"column"};
1013
1017
  flex-wrap: wrap;
1014
1018
  gap: ${e?"20px":"12px"};
1015
- `,cn=oe`
1019
+ `,dn=oe`
1016
1020
  width: 3px;
1017
1021
  height: 100%;
1018
1022
  background-color: ${fe("error",900)};
1019
1023
  position: absolute;
1020
1024
  top: 0;
1021
1025
  left: 0;
1022
- `,dn=oe`
1026
+ `,un=oe`
1023
1027
  font-size: 14px;
1024
1028
  line-height: 20px;
1025
1029
  font-weight: 700;
1026
1030
  color: ${fe("error",900)};
1027
1031
  text-align: left;
1028
- `,un=({label:e,caption:t,checkboxes:n,defaultValue:r,onCheckedChange:i,errorMessage:o,horizontal:l,required:s})=>{const[c,d]=W(r?{[r]:!0}:{});return H(a,{css:on,tabIndex:0,"aria-label":`${e}. ${t?`${t}.`:""} ${s?"Required.":"Optional"} ${o?`Error: ${o}.`:""} `,children:[o?B("div",{css:cn}):null,H("div",{css:(u=!!o,oe`
1032
+ `,pn=({label:e,caption:t,checkboxes:n,defaultValue:r,onCheckedChange:i,errorMessage:o,horizontal:l,required:s})=>{const[c,d]=W(r?{[r]:!0}:{});return H(a,{css:an,tabIndex:0,"aria-label":`${e}. ${t?`${t}.`:""} ${s?"Required.":"Optional"} ${o?`Error: ${o}.`:""} `,children:[o?B("div",{css:dn}):null,H("div",{css:(u=!!o,oe`
1029
1033
  margin-left: ${u?"19px":"0px"};
1030
- `),children:[H("p",{css:an,"aria-label":e,children:[s&&B("span",{"aria-label":"required",children:"*"}),e]}),B("p",{css:ln,"aria-label":t,children:t}),o?B("p",{css:dn,"aria-label":o,children:o}):null,B("div",{css:sn(l),children:n.map((e=>B(Ot,{css:{},defaultChecked:r===e.value,onCheckedChange:({checked:t})=>((e,t)=>{const n={...c};t&&(n[t]=e,d(n)),i&&i(n)})(t,e.name),...e},e.name)))})]})]});var u},pn=oe`
1034
+ `),children:[H("p",{css:ln,"aria-label":e,children:[s&&B("span",{"aria-label":"required",children:"*"}),e]}),B("p",{css:sn,"aria-label":t,children:t}),o?B("p",{css:un,"aria-label":o,children:o}):null,B("div",{css:cn(l),children:n.map((e=>B(_t,{css:{},defaultChecked:r===e.value,onCheckedChange:({checked:t})=>((e,t)=>{const n={...c};t&&(n[t]=e,d(n)),i&&i(n)})(t,e.name),...e},e.name)))})]})]});var u},hn=oe`
1031
1035
  width: 100%;
1032
1036
  max-width: 370px;
1033
1037
  position: relative;
1034
- `,hn=e=>oe`
1038
+ `,fn=e=>oe`
1035
1039
  font-size: 16px;
1036
1040
  line-height: 24px;
1037
1041
  font-weight: 400;
@@ -1042,26 +1046,26 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1042
1046
  color: ${e?fe("neutral",600):fe("error",500)};
1043
1047
  margin-right: 3px;
1044
1048
  }
1045
- `,fn=e=>oe`
1049
+ `,gn=e=>oe`
1046
1050
  font-size: 14px;
1047
1051
  line-height: 20px;
1048
1052
  font-weight: 400;
1049
1053
  color: ${fe("neutral",e?600:700)};
1050
1054
  text-align: left;
1051
- `,gn=oe`
1055
+ `,vn=oe`
1052
1056
  width: 3px;
1053
1057
  height: 100%;
1054
1058
  background-color: ${fe("error",900)};
1055
1059
  position: absolute;
1056
1060
  top: 0;
1057
1061
  left: 0;
1058
- `,vn=oe`
1062
+ `,mn=oe`
1059
1063
  font-size: 14px;
1060
1064
  line-height: 20px;
1061
1065
  font-weight: 700;
1062
1066
  color: ${fe("error",900)};
1063
1067
  text-align: left;
1064
- `,mn=(e,t)=>oe`
1068
+ `,xn=(e,t)=>oe`
1065
1069
  width: 100%;
1066
1070
  margin-top: 8px;
1067
1071
 
@@ -1097,7 +1101,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1097
1101
  padding: 0 4px;
1098
1102
  }
1099
1103
  }
1100
- `,xn=e=>oe`
1104
+ `,bn=e=>oe`
1101
1105
  position: relative;
1102
1106
  height: 100%;
1103
1107
  width: 100%;
@@ -1106,14 +1110,14 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1106
1110
  align-items: flex-start;
1107
1111
  gap: ${"small"===e?"12px":"16px"};
1108
1112
  margin-bottom: 20px;
1109
- `,bn=oe`
1113
+ `,yn=oe`
1110
1114
  width: 3px;
1111
1115
  height: 100%;
1112
1116
  background-color: ${fe("error",900)};
1113
1117
  position: absolute;
1114
1118
  top: 0;
1115
1119
  left: 0;
1116
- `,yn=(e,t)=>oe`
1120
+ `,Cn=(e,t)=>oe`
1117
1121
  color: ${fe("neutral",t?600:900)};
1118
1122
  font-size: ${"small"===e?"14px":"16px"};
1119
1123
  font-weight: 400;
@@ -1135,7 +1139,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1135
1139
  margin-top: 4px;
1136
1140
  color: ${t?fe("neutral",600):fe("error",500)};
1137
1141
  }
1138
- `,Cn=(e,t)=>oe`
1142
+ `,wn=(e,t)=>oe`
1139
1143
  color: ${fe("neutral",t?600:700)};
1140
1144
  font-size: ${"small"===e?"12px":"14px"};
1141
1145
  font-weight: 400;
@@ -1144,13 +1148,13 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1144
1148
  &:first-letter {
1145
1149
  text-transform: uppercase;
1146
1150
  }
1147
- `,wn=e=>oe`
1151
+ `,$n=e=>oe`
1148
1152
  color: ${fe("error",900)};
1149
1153
  font-size: ${"small"===e?"12px":"14px"};
1150
1154
  font-weight: 700;
1151
1155
  line-height: ${"small"===e?"16px":"20px"};
1152
1156
  margin-top: 2px;
1153
- `,$n=(e,t,n)=>oe`
1157
+ `,kn=(e,t,n)=>oe`
1154
1158
  height: ${"small"===e?"28px":"40px"};
1155
1159
  width: 100%;
1156
1160
  border-radius: 4px;
@@ -1188,7 +1192,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1188
1192
  }
1189
1193
 
1190
1194
  ${t||n?`\n border: 1px solid ${fe("neutral",700)};\n `:""}
1191
- `,kn=({label:e,caption:t,placeholder:n,errorMessage:r,required:i,disabled:o,size:a="default",defaultValue:l="",onChange:s,...c})=>{const[d,u]=W(l);return H("div",{css:xn(a),className:"ds-text-input-container",children:[r?B("div",{css:bn}):null,H(b.Root,{required:i,invalid:!!r,gap:"0",style:{marginLeft:r?"19px":"0px"},children:[e?H(b.Label,{css:yn(a,o),"aria-label":e,children:[B(b.RequiredIndicator,{"aria-label":"required"}),e,i?"":B("span",{children:" (Optional)"})]}):null,t?B(b.HelperText,{css:Cn(a,o),"aria-label":t,children:t}):null,r?B(b.ErrorText,{css:wn(a),"aria-label":r,children:r}):null,B(y,{placeholder:n,disabled:o,css:$n(a,d,l),onChange:e=>{u(e.target.value),s&&s(e)},value:d,_placeholder:{color:"var(--chakra-colors-neutral-500)"},...c})]})]})},Sn=Z.forwardRef(((e,t)=>{const{children:n,...r}=e;return le(C.Control,{...r,children:[ae(C.Trigger,{ref:t,children:n}),ae(C.IndicatorGroup,{children:ae(C.Indicator,{children:ae(Ee,{})})})]})})),En=Z.forwardRef(((e,t)=>{const{...n}=e;return ae(s,{children:ae(C.Positioner,{children:ae(C.Content,{...n,ref:t})})})})),On=Z.forwardRef(((e,t)=>{const{item:n,children:r,...i}=e;return ae(C.Item,{item:n,...i,ref:t,children:r},n.value)})),_n=Z.forwardRef(((e,t)=>{const{children:n,...r}=e;return ae(C.ValueText,{...r,ref:t,children:ae(C.Context,{children:t=>{const r=t.selectedItems;return 0===r.length?e.placeholder:n?n(r):1===r.length?t.collection.stringifyItem(r[0]):`${r.length} selected`}})})})),Ln=Z.forwardRef(((e,t)=>ae(C.Root,{...e,ref:t,positioning:{sameWidth:!0,...e.positioning},children:e.asChild?e.children:le(se,{children:[ae(C.HiddenSelect,{}),e.children]})})));Z.forwardRef(((e,t)=>{const{children:n,label:r,...i}=e;return le(C.ItemGroup,{...i,ref:t,children:[ae(C.ItemGroupLabel,{children:r}),n]})}));const Tn=C.Label;C.ItemText;const Rn=e=>oe`
1195
+ `,Sn=({label:e,caption:t,placeholder:n,errorMessage:r,required:i,disabled:o,size:a="default",defaultValue:l="",onChange:s,...c})=>{const[d,u]=W(l);return H("div",{css:bn(a),className:"ds-text-input-container",children:[r?B("div",{css:yn}):null,H(b.Root,{required:i,invalid:!!r,gap:"0",style:{marginLeft:r?"19px":"0px"},children:[e?H(b.Label,{css:Cn(a,o),"aria-label":e,children:[B(b.RequiredIndicator,{"aria-label":"required"}),e,i?"":B("span",{children:" (Optional)"})]}):null,t?B(b.HelperText,{css:wn(a,o),"aria-label":t,children:t}):null,r?B(b.ErrorText,{css:$n(a),"aria-label":r,children:r}):null,B(y,{placeholder:n,disabled:o,css:kn(a,d,l),onChange:e=>{u(e.target.value),s&&s(e)},value:d,_placeholder:{color:"var(--chakra-colors-neutral-500)"},...c})]})]})},En=Z.forwardRef(((e,t)=>{const{children:n,...r}=e;return le(C.Control,{...r,children:[ae(C.Trigger,{ref:t,children:n}),ae(C.IndicatorGroup,{children:ae(C.Indicator,{children:ae(Ee,{})})})]})})),On=Z.forwardRef(((e,t)=>{const{...n}=e;return ae(s,{children:ae(C.Positioner,{children:ae(C.Content,{...n,ref:t})})})})),_n=Z.forwardRef(((e,t)=>{const{item:n,children:r,...i}=e;return ae(C.Item,{item:n,...i,ref:t,children:r},n.value)})),Ln=Z.forwardRef(((e,t)=>{const{children:n,...r}=e;return ae(C.ValueText,{...r,ref:t,children:ae(C.Context,{children:t=>{const r=t.selectedItems;return 0===r.length?e.placeholder:n?n(r):1===r.length?t.collection.stringifyItem(r[0]):`${r.length} selected`}})})})),Tn=Z.forwardRef(((e,t)=>ae(C.Root,{...e,ref:t,positioning:{sameWidth:!0,...e.positioning},children:e.asChild?e.children:le(se,{children:[ae(C.HiddenSelect,{}),e.children]})})));Z.forwardRef(((e,t)=>{const{children:n,label:r,...i}=e;return le(C.ItemGroup,{...i,ref:t,children:[ae(C.ItemGroupLabel,{children:r}),n]})}));const Rn=C.Label;C.ItemText;const Pn=e=>oe`
1192
1196
  position: relative;
1193
1197
  height: 100%;
1194
1198
  width: 100%;
@@ -1200,14 +1204,14 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1200
1204
  &:focus-visible {
1201
1205
  outline-color: ${fe("primary",700)};
1202
1206
  }
1203
- `,Pn=oe`
1207
+ `,Dn=oe`
1204
1208
  width: 3px;
1205
1209
  height: 100%;
1206
1210
  background-color: ${fe("error",900)};
1207
1211
  position: absolute;
1208
1212
  top: 0;
1209
1213
  left: 0;
1210
- `,Dn=e=>oe`
1214
+ `,Mn=e=>oe`
1211
1215
  font-size: ${"small"===e?"14px":"16px"};
1212
1216
  line-height: ${"small"===e?"20px":"24px"};
1213
1217
  font-weight: 400;
@@ -1226,7 +1230,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1226
1230
  color: ${fe("neutral",600)};
1227
1231
  }
1228
1232
  }
1229
- `,Mn=(e,t)=>oe`
1233
+ `,Nn=(e,t)=>oe`
1230
1234
  font-size: ${"small"===e?"12px":"14px"};
1231
1235
  line-height: ${"small"===e?"16px":"20px"};
1232
1236
  font-weight: 400;
@@ -1234,7 +1238,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1234
1238
  text-align: left;
1235
1239
 
1236
1240
  ${t?`color: ${fe("neutral",600)} !important;`:""}
1237
- `,Nn=(e,t,n,r)=>oe`
1241
+ `,jn=(e,t,n,r)=>oe`
1238
1242
  .chakra-select__trigger {
1239
1243
  min-height: ${"small"===e?"32px":"40px"};
1240
1244
  border-radius: 4px;
@@ -1289,40 +1293,40 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1289
1293
  }
1290
1294
  }
1291
1295
  }
1292
- `,jn=oe`
1296
+ `,Vn=oe`
1293
1297
  margin-top: -8px;
1294
1298
  border-radius: 4px;
1295
1299
  border: 1px solid ${fe("neutral",400)};
1296
1300
  border-top-left-radius: 0px;
1297
1301
  border-top-right-radius: 0px;
1298
1302
  border-top: none;
1299
- `,Vn=oe`
1303
+ `,In=oe`
1300
1304
  align-items: flex-start;
1301
1305
  &[data-highlighted] {
1302
1306
  background-color: ${fe("neutral",200)};
1303
1307
  cursor: pointer;
1304
1308
  }
1305
- `,In=(e,t)=>oe`
1309
+ `,zn=(e,t)=>oe`
1306
1310
  font-size: ${"small"===e?"14px":"16px"};
1307
1311
  line-height: ${"small"===e?"20px":"24px"};
1308
1312
  color: ${fe("neutral",800)};
1309
1313
  text-align: left;
1310
1314
 
1311
1315
  ${t?`color: ${fe("neutral",600)} !important;`:""}
1312
- `,zn=(e,t)=>oe`
1316
+ `,An=(e,t)=>oe`
1313
1317
  font-size: ${"small"===e?"14px":"16px"};
1314
1318
  line-height: ${"small"===e?"20px":"24px"};
1315
1319
  color: ${fe("neutral",700)};
1316
1320
  text-align: left;
1317
1321
 
1318
1322
  ${t?`color: ${fe("neutral",600)} !important;`:""}
1319
- `,An=e=>oe`
1323
+ `,Hn=e=>oe`
1320
1324
  font-size: ${"small"===e?"12px":"14px"};
1321
1325
  line-height: ${"small"===e?"16px":"20px"};
1322
1326
  font-weight: 700;
1323
1327
  color: ${fe("error",900)};
1324
1328
  text-align: left;
1325
- `,Hn=e=>oe`
1329
+ `,Bn=e=>oe`
1326
1330
  max-width: 100%;
1327
1331
  display: flex;
1328
1332
  justify-content: center;
@@ -1394,28 +1398,28 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1394
1398
  background-color: ${fe("neutral",300)};
1395
1399
  color: ${fe("neutral",600)};
1396
1400
  }
1397
- `,Bn=oe`
1401
+ `,Fn=oe`
1398
1402
  background-color: ${fe("neutral",100)};
1399
1403
  border: 1px solid ${fe("neutral",300)};
1400
- `,Fn=oe`
1404
+ `,Zn=oe`
1401
1405
  background-color: ${fe("neutral",200)};
1402
1406
  border: 1px solid ${fe("neutral",400)};
1403
- `,Zn=oe`
1407
+ `,qn=oe`
1404
1408
  background-color: ${fe("success",100)};
1405
1409
  border: 1px solid ${fe("success",300)};
1406
1410
  color: ${fe("success",900)};
1407
- `,qn=oe`
1411
+ `,Gn=oe`
1408
1412
  background-color: ${fe("warning",100)};
1409
1413
  border: 1px solid ${fe("warning",300)};
1410
1414
  color: ${fe("warning",900)};
1411
- `,Gn=oe`
1415
+ `,Wn=oe`
1412
1416
  background-color: ${fe("error",100)};
1413
1417
  border: 1px solid ${fe("error",300)};
1414
1418
  color: ${fe("error",900)};
1415
- `,Wn=({label:e,size:t="default",variant:n,disabled:r,icon:i,onClose:o,closable:a,...l})=>{let s=Bn;return"info-grey"===n?s=Fn:"success"===n?s=Zn:"warning"===n?s=qn:"error"===n&&(s=Gn),H(w.Root,{css:[Hn(t),s],"data-disabled":r,...l,children:[i?B(w.StartElement,{"aria-label":`${e} tag icon`,children:i}):null,B(w.Label,{"aria-label":e,children:e}),a&&!r&&"small"!==t?B(w.EndElement,{children:B("div",{className:"chakra-tag__closeTrigger",role:"button",tabIndex:0,onClick:o,onKeyDown:e=>{!o||"Enter"!==e.key&&" "!==e.key||o()},"aria-label":`${e} tag close button`,children:B(_e,{})})}):null]})},Un=({placeholder:e,size:t,disabled:n})=>B(_n,{placeholder:e,children:e=>{const{label:r,caption:i}=e[0];return H(p,{flexDirection:"column",alignItems:"flex-start",children:[B("p",{css:In(t,n),children:r}),i?B("p",{css:zn(t,n),children:i}):null]})}}),Xn=({placeholder:e,removeItem:t,disabled:n})=>B(_n,{placeholder:e,children:e=>e.map((e=>B(p,{flexDirection:"row",alignItems:"flex-start",children:B(Wn,{label:e.label,variant:"info-grey",disabled:n,onClose:()=>t(e.value),closable:!0},e.value)},e.value)))}),Yn=({label:e,caption:t,placeholder:n="",items:i,size:o="default",required:l,disabled:s,onChange:c,errorMessage:d,multiple:u,...p})=>{const[h,f]=W(p.defaultValue||[]),g=(e=>$({items:e}))(i),v=e=>{f(e),c&&c(e)},m=`${e||"Select input"}${l?" required.":""}${t?` ${t}.`:""}${s?" Disabled.":""}`.trim();return H(a,{css:Rn(o),style:p.style,className:"ds-select-input-container",tabIndex:s?0:void 0,"aria-disabled":s,"aria-label":s?m:void 0,children:[d?B("div",{css:Pn}):null,H(Ln,{css:{},collection:g,disabled:s,required:l,multiple:u,"aria-label":p["aria-label"]||e,value:h,onValueChange:e=>v(e.value),style:{marginLeft:d?"19px":"0px"},...p,children:[e?H(Tn,{css:Dn(o),children:[l?B("span",{children:"*"}):null,e]}):null,t?B("p",{css:Mn(o,s),children:t}):null,d&&B("p",{css:An(o),children:d}),B(Sn,{css:Nn(o,h.length>0,!!d,u),children:u?B(Xn,{placeholder:n,disabled:s,removeItem:e=>{const t=h.filter((t=>t!==e));v(t)}}):B(Un,{placeholder:n,size:o,disabled:s})}),B(En,{css:jn,children:g.items.map((e=>H(On,{css:Vn,item:e,children:[H(r,{children:[B("p",{css:In(o),children:e.label}),B("p",{css:zn(o),children:e.caption})]}),u?B(Ot,{checked:h.some((t=>t===e.value))}):null]},e.value)))})]})]})},Kn=({label:e,caption:t,errorMessage:n,units:r,unitsPosition:i="end",defaultUnit:o="",defaultValue:l="",onChange:s,required:c,disabled:d})=>{const[u,p]=W(l),[h,f]=W(o?[o]:[r[0].value]),g=(e,t)=>{s&&s("end"===i?""+(t?`${u} ${e}`:`${e} ${h}`):""+(t?`${e} ${u}`:`${h} ${e}`))};return H("div",{css:pn,children:[n?B("div",{css:gn}):null,H("div",{style:{marginLeft:n?"19px":"0px"},children:[H("p",{css:hn(d),"aria-label":e,children:[c?B("span",{children:"*"}):null,e]}),B("p",{css:fn(d),"aria-label":t,children:t}),n?B("p",{css:vn,"aria-label":n,children:n}):null,H(a,{css:mn(!!n,i),attached:!0,children:["start"===i?B(Yn,{placeholder:"",value:h,items:r,disabled:d,onChange:e=>{f(e),g(e?.[0],!0)}}):null,B(kn,{type:"number",value:u,disabled:d,onChange:e=>{p(e.target.value),g(e.target.value)}}),"end"===i?B(Yn,{placeholder:"",value:h,items:r,disabled:d,onChange:e=>{f(e),g(e?.[0],!0)}}):null]})]})]})},Jn=oe`
1419
+ `,Un=({label:e,size:t="default",variant:n,disabled:r,icon:i,onClose:o,closable:a,...l})=>{let s=Fn;return"info-grey"===n?s=Zn:"success"===n?s=qn:"warning"===n?s=Gn:"error"===n&&(s=Wn),H(w.Root,{css:[Bn(t),s],"data-disabled":r,...l,children:[i?B(w.StartElement,{"aria-label":`${e} tag icon`,children:i}):null,B(w.Label,{"aria-label":e,children:e}),a&&!r&&"small"!==t?B(w.EndElement,{children:B("div",{className:"chakra-tag__closeTrigger",role:"button",tabIndex:0,onClick:o,onKeyDown:e=>{!o||"Enter"!==e.key&&" "!==e.key||o()},"aria-label":`${e} tag close button`,children:B(_e,{})})}):null]})},Xn=({placeholder:e,size:t,disabled:n})=>B(Ln,{placeholder:e,children:e=>{const{label:r,caption:i}=e[0];return H(p,{flexDirection:"column",alignItems:"flex-start",children:[B("p",{css:zn(t,n),children:r}),i?B("p",{css:An(t,n),children:i}):null]})}}),Yn=({placeholder:e,removeItem:t,disabled:n})=>B(Ln,{placeholder:e,children:e=>e.map((e=>B(p,{flexDirection:"row",alignItems:"flex-start",children:B(Un,{label:e.label,variant:"info-grey",disabled:n,onClose:()=>t(e.value),closable:!0},e.value)},e.value)))}),Kn=({label:e,caption:t,placeholder:n="",items:i,size:o="default",required:l,disabled:s,onChange:c,errorMessage:d,multiple:u,...p})=>{const[h,f]=W(p.defaultValue||[]),g=(e=>$({items:e}))(i),v=e=>{f(e),c&&c(e)},m=`${e||"Select input"}${l?" required.":""}${t?` ${t}.`:""}${s?" Disabled.":""}`.trim();return H(a,{css:Pn(o),style:p.style,className:"ds-select-input-container",tabIndex:s?0:void 0,"aria-disabled":s,"aria-label":s?m:void 0,children:[d?B("div",{css:Dn}):null,H(Tn,{css:{},collection:g,disabled:s,required:l,multiple:u,"aria-label":p["aria-label"]||e,value:h,onValueChange:e=>v(e.value),style:{marginLeft:d?"19px":"0px"},...p,children:[e?H(Rn,{css:Mn(o),children:[l?B("span",{children:"*"}):null,e]}):null,t?B("p",{css:Nn(o,s),children:t}):null,d&&B("p",{css:Hn(o),children:d}),B(En,{css:jn(o,h.length>0,!!d,u),children:u?B(Yn,{placeholder:n,disabled:s,removeItem:e=>{const t=h.filter((t=>t!==e));v(t)}}):B(Xn,{placeholder:n,size:o,disabled:s})}),B(On,{css:Vn,children:g.items.map((e=>H(_n,{css:In,item:e,children:[H(r,{children:[B("p",{css:zn(o),children:e.label}),B("p",{css:An(o),children:e.caption})]}),u?B(_t,{checked:h.some((t=>t===e.value))}):null]},e.value)))})]})]})},Jn=({label:e,caption:t,errorMessage:n,units:r,unitsPosition:i="end",defaultUnit:o="",defaultValue:l="",onChange:s,required:c,disabled:d})=>{const[u,p]=W(l),[h,f]=W(o?[o]:[r[0].value]),g=(e,t)=>{s&&s("end"===i?""+(t?`${u} ${e}`:`${e} ${h}`):""+(t?`${e} ${u}`:`${h} ${e}`))};return H("div",{css:hn,children:[n?B("div",{css:vn}):null,H("div",{style:{marginLeft:n?"19px":"0px"},children:[H("p",{css:fn(d),"aria-label":e,children:[c?B("span",{children:"*"}):null,e]}),B("p",{css:gn(d),"aria-label":t,children:t}),n?B("p",{css:mn,"aria-label":n,children:n}):null,H(a,{css:xn(!!n,i),attached:!0,children:["start"===i?B(Kn,{placeholder:"",value:h,items:r,disabled:d,onChange:e=>{f(e),g(e?.[0],!0)}}):null,B(Sn,{type:"number",value:u,disabled:d,onChange:e=>{p(e.target.value),g(e.target.value)}}),"end"===i?B(Kn,{placeholder:"",value:h,items:r,disabled:d,onChange:e=>{f(e),g(e?.[0],!0)}}):null]})]})]})},Qn=oe`
1416
1420
  width: 100%;
1417
1421
  max-width: 486px;
1418
- `,Qn=oe`
1422
+ `,er=oe`
1419
1423
  font-size: 16px;
1420
1424
  line-height: 24px;
1421
1425
  font-weight: 400;
@@ -1426,13 +1430,13 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1426
1430
  color: ${fe("error",500)};
1427
1431
  margin-right: 3px;
1428
1432
  }
1429
- `,er=oe`
1433
+ `,tr=oe`
1430
1434
  font-size: 14px;
1431
1435
  line-height: 20px;
1432
1436
  font-weight: 400;
1433
1437
  color: ${fe("neutral",700)};
1434
1438
  text-align: left;
1435
- `,tr=oe`
1439
+ `,nr=oe`
1436
1440
  display: flex;
1437
1441
  align-items: center;
1438
1442
  justify-content: space-between;
@@ -1450,9 +1454,9 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1450
1454
  button {
1451
1455
  width: 98px;
1452
1456
  }
1453
- `,nr=oe`
1457
+ `,rr=oe`
1454
1458
  margin-top: 12px;
1455
- `,rr=e=>oe`
1459
+ `,ir=e=>oe`
1456
1460
  height: 8px;
1457
1461
  width: 100%;
1458
1462
  background-color: ${fe("neutral",300)};
@@ -1466,7 +1470,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1466
1470
  background-color: ${fe("Medium"===e?"warning":"Strong"===e||"Very Strong"===e?"success":"error",900)};
1467
1471
  border-radius: 8px;
1468
1472
  }
1469
- `,ir=e=>oe`
1473
+ `,or=e=>oe`
1470
1474
  display: flex;
1471
1475
  align-items: center;
1472
1476
  gap: 4px;
@@ -1483,7 +1487,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1483
1487
  justify-content: center;
1484
1488
  align-items: center;
1485
1489
  }
1486
- `,or=({label:e,caption:t,required:n,disabledRules:r,onChange:i,minLength:o=8,hideValidations:a})=>{const[l,s]=W(!1),[c,d]=W(""),[u,p]=W({strength:"Very weak",length:!1,uppercase:!1,lowercase:!1,numbers:!1,specialCharacters:!1});return H("div",{css:Jn,children:[H("p",{css:Qn,"aria-label":e,children:[n?B("span",{children:"*"}):null,e]}),B("p",{css:er,"aria-label":t,children:t}),H("div",{css:tr,children:[B(kn,{type:l?"text":"password",value:c,"aria-describedby":"password-guidelines",onChange:e=>(e=>{const t={...u};let n=0,r=!1;t.length=e.length>=o,n+=e.length>=o?1:0,r=/[A-Z]/.test(e),n+=r?1:0,t.uppercase=r,r=/[a-z]/.test(e),n+=r?1:0,t.lowercase=r,r=/[0-9]/.test(e),n+=r?1:0,t.numbers=r,r=/[-'/`~!¡#*$@_%+=.,^&(){}[\]|;:“‘"<>?\\]/.test(e),n+=r?1:0,t.specialCharacters=r,t.strength="Very Weak",e.length>=4&&n>=2&&(t.strength="Weak"),e.length>=6&&n>=3&&(t.strength="Medium"),e.length>=o&&n>=4&&(t.strength="Strong"),e.length>=o+2&&n>=5&&(t.strength="Very Strong"),d(e),p(t),i&&i(t)})(e.target.value)}),B(ye,{label:l?"Hide":"Show",variant:"secondary",leftIcon:B(l?Te:Le,{}),"aria-label":l?"Hide password":"Show password",onClick:()=>s(!l),type:"button"})]}),c&&!a?H("div",{id:"password-guidelines",css:nr,"aria-live":"polite",children:[H("p",{css:(h=u.strength,oe`
1490
+ `,ar=({label:e,caption:t,required:n,disabledRules:r,onChange:i,minLength:o=8,hideValidations:a})=>{const[l,s]=W(!1),[c,d]=W(""),[u,p]=W({strength:"Very weak",length:!1,uppercase:!1,lowercase:!1,numbers:!1,specialCharacters:!1});return H("div",{css:Qn,children:[H("p",{css:er,"aria-label":e,children:[n?B("span",{children:"*"}):null,e]}),B("p",{css:tr,"aria-label":t,children:t}),H("div",{css:nr,children:[B(Sn,{type:l?"text":"password",value:c,"aria-describedby":"password-guidelines",onChange:e=>(e=>{const t={...u};let n=0,r=!1;t.length=e.length>=o,n+=e.length>=o?1:0,r=/[A-Z]/.test(e),n+=r?1:0,t.uppercase=r,r=/[a-z]/.test(e),n+=r?1:0,t.lowercase=r,r=/[0-9]/.test(e),n+=r?1:0,t.numbers=r,r=/[-'/`~!¡#*$@_%+=.,^&(){}[\]|;:“‘"<>?\\]/.test(e),n+=r?1:0,t.specialCharacters=r,t.strength="Very Weak",e.length>=4&&n>=2&&(t.strength="Weak"),e.length>=6&&n>=3&&(t.strength="Medium"),e.length>=o&&n>=4&&(t.strength="Strong"),e.length>=o+2&&n>=5&&(t.strength="Very Strong"),d(e),p(t),i&&i(t)})(e.target.value)}),B(ye,{label:l?"Hide":"Show",variant:"secondary",leftIcon:B(l?Te:Le,{}),"aria-label":l?"Hide password":"Show password",onClick:()=>s(!l),type:"button"})]}),c&&!a?H("div",{id:"password-guidelines",css:rr,"aria-live":"polite",children:[H("p",{css:(h=u.strength,oe`
1487
1491
  font-size: 16px;
1488
1492
  line-height: 24px;
1489
1493
  font-weight: 400;
@@ -1494,13 +1498,13 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1494
1498
  font-weight: 700;
1495
1499
  color: ${fe("Medium"===h?"warning":"Strong"===h||"Very Strong"===h?"success":"error",900)};
1496
1500
  }
1497
- `),"aria-live":"polite",role:"status",children:["Password Strength: ",B("span",{children:u.strength})]}),B("div",{css:rr(u.strength),children:B("div",{})}),H("div",{css:ir(u.length),"aria-label":`Use a minimum of ${o} characters. ${u.length?"Requirement met.":"Requirement not met."}`,children:[B("div",{children:u.length?B($e,{color:"var(--chakra-colors-success-500)",height:"8px",width:"8px"}):B(_e,{color:"var(--chakra-colors-error-900)",height:"8px",width:"8px"})}),H("p",{children:["Use a minimum of ",o," characters"]})]}),r?.uppercase?null:H("div",{css:ir(u.uppercase),"aria-label":"Use an uppercase letter. "+(u.uppercase?"Requirement met.":"Requirement not met."),children:[B("div",{children:u.uppercase?B($e,{color:"var(--chakra-colors-success-500)",height:"8px",width:"8px"}):B(_e,{color:"var(--chakra-colors-error-900)",height:"8px",width:"8px"})}),B("p",{children:"Use an uppercase letter"})]}),r?.lowercase?null:H("div",{css:ir(u.lowercase),"aria-label":"Use a lowercase letter. "+(u.lowercase?"Requirement met.":"Requirement not met."),children:[B("div",{children:u.lowercase?B($e,{color:"var(--chakra-colors-success-500)",height:"8px",width:"8px"}):B(_e,{color:"var(--chakra-colors-error-900)",height:"8px",width:"8px"})}),B("p",{children:"Use a lowercase letter"})]}),r?.numbers?null:H("div",{css:ir(u.numbers),"aria-label":"Use a number. "+(u.numbers?"Requirement met.":"Requirement not met."),children:[B("div",{children:u.numbers?B($e,{color:"var(--chakra-colors-success-500)",height:"8px",width:"8px"}):B(_e,{color:"var(--chakra-colors-error-900)",height:"8px",width:"8px"})}),B("p",{children:"Use a number"})]}),r?.specialCharacters?null:H("div",{css:ir(u.specialCharacters),"aria-label":"Use a special character. "+(u.specialCharacters?"Requirement met.":"Requirement not met."),children:[B("div",{children:u.specialCharacters?B($e,{color:"var(--chakra-colors-success-500)",height:"8px",width:"8px"}):B(_e,{color:"var(--chakra-colors-error-900)",height:"8px",width:"8px"})}),B("p",{children:"Use a special character"})]})]}):null]});var h},ar=oe`
1501
+ `),"aria-live":"polite",role:"status",children:["Password Strength: ",B("span",{children:u.strength})]}),B("div",{css:ir(u.strength),children:B("div",{})}),H("div",{css:or(u.length),"aria-label":`Use a minimum of ${o} characters. ${u.length?"Requirement met.":"Requirement not met."}`,children:[B("div",{children:u.length?B($e,{color:"var(--chakra-colors-success-500)",height:"8px",width:"8px"}):B(_e,{color:"var(--chakra-colors-error-900)",height:"8px",width:"8px"})}),H("p",{children:["Use a minimum of ",o," characters"]})]}),r?.uppercase?null:H("div",{css:or(u.uppercase),"aria-label":"Use an uppercase letter. "+(u.uppercase?"Requirement met.":"Requirement not met."),children:[B("div",{children:u.uppercase?B($e,{color:"var(--chakra-colors-success-500)",height:"8px",width:"8px"}):B(_e,{color:"var(--chakra-colors-error-900)",height:"8px",width:"8px"})}),B("p",{children:"Use an uppercase letter"})]}),r?.lowercase?null:H("div",{css:or(u.lowercase),"aria-label":"Use a lowercase letter. "+(u.lowercase?"Requirement met.":"Requirement not met."),children:[B("div",{children:u.lowercase?B($e,{color:"var(--chakra-colors-success-500)",height:"8px",width:"8px"}):B(_e,{color:"var(--chakra-colors-error-900)",height:"8px",width:"8px"})}),B("p",{children:"Use a lowercase letter"})]}),r?.numbers?null:H("div",{css:or(u.numbers),"aria-label":"Use a number. "+(u.numbers?"Requirement met.":"Requirement not met."),children:[B("div",{children:u.numbers?B($e,{color:"var(--chakra-colors-success-500)",height:"8px",width:"8px"}):B(_e,{color:"var(--chakra-colors-error-900)",height:"8px",width:"8px"})}),B("p",{children:"Use a number"})]}),r?.specialCharacters?null:H("div",{css:or(u.specialCharacters),"aria-label":"Use a special character. "+(u.specialCharacters?"Requirement met.":"Requirement not met."),children:[B("div",{children:u.specialCharacters?B($e,{color:"var(--chakra-colors-success-500)",height:"8px",width:"8px"}):B(_e,{color:"var(--chakra-colors-error-900)",height:"8px",width:"8px"})}),B("p",{children:"Use a special character"})]})]}):null]});var h},lr=oe`
1498
1502
  position: relative;
1499
1503
  height: 100%;
1500
1504
  &:focus-visible {
1501
1505
  outline-color: ${fe("primary",700)};
1502
1506
  }
1503
- `,lr=oe`
1507
+ `,sr=oe`
1504
1508
  font-size: 16px;
1505
1509
  line-height: 24px;
1506
1510
  color: ${fe("neutral",900)};
@@ -1510,27 +1514,27 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1510
1514
  color: ${fe("error",500)};
1511
1515
  margin-right: 3px;
1512
1516
  }
1513
- `,sr=oe`
1517
+ `,cr=oe`
1514
1518
  font-size: 14px;
1515
1519
  line-height: 20px;
1516
1520
  color: ${fe("neutral",700)};
1517
1521
  text-align: left;
1518
- `,cr=oe`
1519
- margin-top: 12px;
1520
1522
  `,dr=oe`
1523
+ margin-top: 12px;
1524
+ `,ur=oe`
1521
1525
  width: 3px;
1522
1526
  height: 100%;
1523
1527
  background-color: ${fe("error",900)};
1524
1528
  position: absolute;
1525
1529
  top: 0;
1526
1530
  left: 0;
1527
- `,ur=oe`
1531
+ `,pr=oe`
1528
1532
  font-size: 14px;
1529
1533
  line-height: 20px;
1530
1534
  font-weight: 700;
1531
1535
  color: ${fe("error",900)};
1532
1536
  text-align: left;
1533
- `,pr=oe`
1537
+ `,hr=oe`
1534
1538
  height: 100%;
1535
1539
  min-height: 48px;
1536
1540
  width: 100%;
@@ -1539,9 +1543,9 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1539
1543
  border-radius: 4px;
1540
1544
  background-color: ${fe("neutral",100)};
1541
1545
  padding: 12px;
1542
- `,hr=({label:e,caption:t,name:n,radios:r,defaultValue:i,onCheckedChange:o,errorMessage:l,horizontal:s,variant:c="default",required:d})=>{return H(a,{tabIndex:0,css:ar,"aria-roledescription":"group","aria-label":`${e}. ${t?`${t}.`:""} ${d?"Required.":"Optional."} ${l?`Error: ${l}.`:""} `,children:[l?B("div",{css:dr}):null,H("div",{css:(u=!!l,oe`
1546
+ `,fr=({label:e,caption:t,name:n,radios:r,defaultValue:i,onCheckedChange:o,errorMessage:l,horizontal:s,variant:c="default",required:d})=>{return H(a,{tabIndex:0,css:lr,"aria-roledescription":"group","aria-label":`${e}. ${t?`${t}.`:""} ${d?"Required.":"Optional."} ${l?`Error: ${l}.`:""} `,children:[l?B("div",{css:ur}):null,H("div",{css:(u=!!l,oe`
1543
1547
  margin-left: ${u?"19px":"0px"};
1544
- `),children:[H("p",{css:lr,"aria-label":e,children:[d&&B("span",{"aria-label":"required",children:"*"}),e]}),B("p",{css:sr,"aria-label":t,children:t}),l?B("p",{css:ur,"aria-label":l,children:l}):null,B("div",{css:cr,children:B(Gt,{name:n,defaultValue:i,onChange:o,horizontal:s&&"card"!==c,children:r.map((e=>B(qt,{css:"card"===c?pr:{},...e},e.value)))})})]})]});var u},fr=e=>oe`
1548
+ `),children:[H("p",{css:sr,"aria-label":e,children:[d&&B("span",{"aria-label":"required",children:"*"}),e]}),B("p",{css:cr,"aria-label":t,children:t}),l?B("p",{css:pr,"aria-label":l,children:l}):null,B("div",{css:dr,children:B(Wt,{name:n,defaultValue:i,onChange:o,horizontal:s&&"card"!==c,children:r.map((e=>B(Gt,{css:"card"===c?hr:{},...e},e.value)))})})]})]});var u},gr=e=>oe`
1545
1549
  font-size: ${"small"===e?"14px":"16px"};
1546
1550
  line-height: ${"small"===e?"20px":"24px"};
1547
1551
  font-weight: 400;
@@ -1552,13 +1556,13 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1552
1556
  color: ${fe("error",500)};
1553
1557
  margin-right: 3px;
1554
1558
  }
1555
- `,gr=e=>oe`
1559
+ `,vr=e=>oe`
1556
1560
  font-size: ${"small"===e?"12px":"14px"};
1557
1561
  line-height: ${"small"===e?"16px":"20px"};
1558
1562
  font-weight: 400;
1559
1563
  color: ${fe("neutral",700)};
1560
1564
  text-align: left;
1561
- `,vr=oe`
1565
+ `,mr=oe`
1562
1566
  display: flex;
1563
1567
  align-items: center;
1564
1568
  gap: 12px;
@@ -1579,7 +1583,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1579
1583
  margin-top: 18px;
1580
1584
  width: 100%;
1581
1585
  }
1582
- `,mr=({label:e,caption:t,size:n="default",sliderItem:r,required:i,onChange:o})=>{const[a,l]=W(r.value||[]),s=(e,t)=>{const n=e.target.value,i=[...a];let o=n?parseInt(n,10):n;const s=r.min||0,c=r.max||100;o=Number.isNaN(o)?s:o,o=o<s?s:o,o=o>c?c:o,i[t]=o,l(i)},c=(e,t)=>{const n=e.target.value||"0",i=[...a];let s=parseInt(n,10);const c=r.min||0,d=r.max||100;if(s=Number.isNaN(s)?c:s,s=s<c?c:s,s=s>d?d:s,2===a?.length){s=Number.isNaN(s)?c:s;const e=a[0],n=a[1];0===t?(s=s<c?c:s,s=s>n?n:s):1===t&&(s=s<e?e:s,s=s>d?d:s)}i[t]=s,l(i),o&&o(i)};return H("div",{children:[H("p",{css:fr(n),"aria-label":e,children:[i?B("span",{children:"*"}):null,e]}),t?B("p",{css:gr(n),"aria-label":t,children:t}):null,H("div",{css:vr,children:[r.step&&r.marks?B(Yn,{items:r.marks.map((e=>({label:`${e.label}`,value:`${e.value}`}))),placeholder:"",style:{width:"90px"},value:[`${a?.[0]}`],onChange:e=>{const t=e.map((e=>parseInt(e,10)));l(t),o&&o(t)}}):B(kn,{"aria-label":e,min:r.min,max:r.max,value:a?.[0],type:"number",onChange:e=>s(e,0),onBlur:e=>c(e,0),className:"ds-opacity-control-text-input",onClick:e=>e.target.select()}),B(tn,{css:{},...r,value:a,onValueChangeEnd:e=>{l(e.value),o&&o(e.value)}}),2===a?.length?B(kn,{"aria-label":e,min:r.min,max:r.max,value:a?.[1],type:"number",onChange:e=>s(e,1),onBlur:e=>c(e,1),className:"ds-opacity-control-text-input",onClick:e=>e.target.select()}):null]})]})},xr=e=>oe`
1586
+ `,xr=({label:e,caption:t,size:n="default",sliderItem:r,required:i,onChange:o})=>{const[a,l]=W(r.value||[]),s=(e,t)=>{const n=e.target.value,i=[...a];let o=n?parseInt(n,10):n;const s=r.min||0,c=r.max||100;o=Number.isNaN(o)?s:o,o=o<s?s:o,o=o>c?c:o,i[t]=o,l(i)},c=(e,t)=>{const n=e.target.value||"0",i=[...a];let s=parseInt(n,10);const c=r.min||0,d=r.max||100;if(s=Number.isNaN(s)?c:s,s=s<c?c:s,s=s>d?d:s,2===a?.length){s=Number.isNaN(s)?c:s;const e=a[0],n=a[1];0===t?(s=s<c?c:s,s=s>n?n:s):1===t&&(s=s<e?e:s,s=s>d?d:s)}i[t]=s,l(i),o&&o(i)};return H("div",{children:[H("p",{css:gr(n),"aria-label":e,children:[i?B("span",{children:"*"}):null,e]}),t?B("p",{css:vr(n),"aria-label":t,children:t}):null,H("div",{css:mr,children:[r.step&&r.marks?B(Kn,{items:r.marks.map((e=>({label:`${e.label}`,value:`${e.value}`}))),placeholder:"",style:{width:"90px"},value:[`${a?.[0]}`],onChange:e=>{const t=e.map((e=>parseInt(e,10)));l(t),o&&o(t)}}):B(Sn,{"aria-label":e,min:r.min,max:r.max,value:a?.[0],type:"number",onChange:e=>s(e,0),onBlur:e=>c(e,0),className:"ds-opacity-control-text-input",onClick:e=>e.target.select()}),B(nn,{css:{},...r,value:a,onValueChangeEnd:e=>{l(e.value),o&&o(e.value)}}),2===a?.length?B(Sn,{"aria-label":e,min:r.min,max:r.max,value:a?.[1],type:"number",onChange:e=>s(e,1),onBlur:e=>c(e,1),className:"ds-opacity-control-text-input",onClick:e=>e.target.select()}):null]})]})},br=e=>oe`
1583
1587
  position: relative;
1584
1588
  height: 100%;
1585
1589
  width: 100%;
@@ -1588,14 +1592,14 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1588
1592
  align-items: flex-start;
1589
1593
  gap: ${"small"===e?"12px":"16px"};
1590
1594
  margin-bottom: 16px;
1591
- `,br=oe`
1595
+ `,yr=oe`
1592
1596
  width: 3px;
1593
1597
  height: 100%;
1594
1598
  background-color: ${fe("error",900)};
1595
1599
  position: absolute;
1596
1600
  top: 0;
1597
1601
  left: 0;
1598
- `,yr=(e,t)=>oe`
1602
+ `,Cr=(e,t)=>oe`
1599
1603
  color: ${fe("neutral",t?600:900)};
1600
1604
  font-size: ${"small"===e?"14px":"16px"};
1601
1605
  font-weight: 400;
@@ -1609,24 +1613,24 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1609
1613
  .chakra-field__requiredIndicator {
1610
1614
  color: ${t?fe("neutral",600):fe("error",500)};
1611
1615
  }
1612
- `,Cr=(e,t)=>oe`
1616
+ `,wr=(e,t)=>oe`
1613
1617
  color: ${fe("neutral",t?600:700)};
1614
1618
  font-size: ${"small"===e?"12px":"14px"};
1615
1619
  font-weight: 400;
1616
1620
  line-height: ${"small"===e?"16px":"20px"};
1617
- `,wr=oe`
1621
+ `,$r=oe`
1618
1622
  color: ${fe("neutral",600)};
1619
1623
  font-size: 12px;
1620
1624
  font-weight: 400;
1621
1625
  line-height: 16px;
1622
1626
  margin-top: 8px;
1623
- `,$r=oe`
1627
+ `,kr=oe`
1624
1628
  color: ${fe("error",900)};
1625
1629
  font-size: 14px;
1626
1630
  font-weight: 700;
1627
1631
  line-height: 20px;
1628
1632
  margin-top: 2px;
1629
- `,kr=(e,t,n)=>oe`
1633
+ `,Sr=(e,t,n)=>oe`
1630
1634
  height: 104px;
1631
1635
  width: 100%;
1632
1636
  border-radius: 4px;
@@ -1663,7 +1667,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1663
1667
  }
1664
1668
 
1665
1669
  ${t||n?`\n border: 1px solid ${fe("neutral",700)};\n `:""}
1666
- `,Sr=({label:e,caption:t,placeholder:n,errorMessage:r,required:i,disabled:o,size:a="default",defaultValue:l="",onChange:s,minLength:c,maxLength:d,...u})=>{const[p,h]=W(l),[f,g]=W(!1),[v,m]=W(!1),[x,y]=W(""),C=X(),w=X(),$=X();U((()=>{const{length:e}=l;c&&e<c&&e>0?(g(e<c),m(!1),y(`Enter at least ${c-e} characters`)):c&&0===e&&y(`Min ${c} characters`),d&&e>0?(g(!1),m(e>d),y(`You have ${d-e} characters remaining`)):d&&0===e&&y(`Max ${d} characters`)}),[]);const S=!!r||f||v,E=[t?C:null,S?w:null,x?$:null].filter(Boolean).join(" ")||void 0;return H("div",{css:xr(a),children:[S?B("div",{css:br}):null,H(b.Root,{required:i,invalid:S,gap:"0",style:{marginLeft:S?"19px":"0px"},children:[e?H(b.Label,{css:yr(a,o),"aria-label":e,children:[B(b.RequiredIndicator,{"aria-label":"required"}),e,i?"":B("span",{children:" (Optional)"})]}):null,t?B(b.HelperText,{id:C,css:Cr(a,o),children:t}):null,r?B(b.ErrorText,{id:w,css:$r,"aria-label":`Error: ${r}`,"aria-live":"polite",children:r}):null,B(k,{placeholder:n,disabled:o,css:kr(a,p,l),onChange:e=>{h(e.target.value);const{length:t}=e.target.value;c&&d?(g(t<c),m(t>d),y(`You have ${d-t} characters remaining`)):c?(g(t<c),m(!1),y(t<c?`Enter at least ${c-t} characters`:"")):d&&(m(t>d),g(!1),y(`You have ${d-t} characters remaining`)),s&&s(e)},value:p,"aria-describedby":E,_placeholder:{color:"var(--chakra-colors-neutral-500)"},...u}),f&&c?H(b.ErrorText,{id:w,css:$r,style:{marginTop:"8px",fontSize:"12px",lineHeight:"16px"},"aria-live":"polite",children:["You need ",c-p.length," more characters"]}):null,v&&d?H(b.ErrorText,{id:w,css:$r,style:{marginTop:"8px",fontSize:"12px",lineHeight:"16px"},"aria-live":"polite",children:["You have ",p.length-d," characters too many"]}):null,!x||v||f?null:B(b.HelperText,{id:$,css:wr,"aria-live":"polite",children:x})]})]})},Er=(e,t)=>oe`
1670
+ `,Er=({label:e,caption:t,placeholder:n,errorMessage:r,required:i,disabled:o,size:a="default",defaultValue:l="",onChange:s,minLength:c,maxLength:d,...u})=>{const[p,h]=W(l),[f,g]=W(!1),[v,m]=W(!1),[x,y]=W(""),C=X(),w=X(),$=X();U((()=>{const{length:e}=l;c&&e<c&&e>0?(g(e<c),m(!1),y(`Enter at least ${c-e} characters`)):c&&0===e&&y(`Min ${c} characters`),d&&e>0?(g(!1),m(e>d),y(`You have ${d-e} characters remaining`)):d&&0===e&&y(`Max ${d} characters`)}),[]);const S=!!r||f||v,E=[t?C:null,S?w:null,x?$:null].filter(Boolean).join(" ")||void 0;return H("div",{css:br(a),children:[S?B("div",{css:yr}):null,H(b.Root,{required:i,invalid:S,gap:"0",style:{marginLeft:S?"19px":"0px"},children:[e?H(b.Label,{css:Cr(a,o),"aria-label":e,children:[B(b.RequiredIndicator,{"aria-label":"required"}),e,i?"":B("span",{children:" (Optional)"})]}):null,t?B(b.HelperText,{id:C,css:wr(a,o),children:t}):null,r?B(b.ErrorText,{id:w,css:kr,"aria-label":`Error: ${r}`,"aria-live":"polite",children:r}):null,B(k,{placeholder:n,disabled:o,css:Sr(a,p,l),onChange:e=>{h(e.target.value);const{length:t}=e.target.value;c&&d?(g(t<c),m(t>d),y(`You have ${d-t} characters remaining`)):c?(g(t<c),m(!1),y(t<c?`Enter at least ${c-t} characters`:"")):d&&(m(t>d),g(!1),y(`You have ${d-t} characters remaining`)),s&&s(e)},value:p,"aria-describedby":E,_placeholder:{color:"var(--chakra-colors-neutral-500)"},...u}),f&&c?H(b.ErrorText,{id:w,css:kr,style:{marginTop:"8px",fontSize:"12px",lineHeight:"16px"},"aria-live":"polite",children:["You need ",c-p.length," more characters"]}):null,v&&d?H(b.ErrorText,{id:w,css:kr,style:{marginTop:"8px",fontSize:"12px",lineHeight:"16px"},"aria-live":"polite",children:["You have ",p.length-d," characters too many"]}):null,!x||v||f?null:B(b.HelperText,{id:$,css:$r,"aria-live":"polite",children:x})]})]})},Or=(e,t)=>oe`
1667
1671
  height: ${e};
1668
1672
  width: ${t};
1669
1673
  border: 1px solid ${fe("neutral",300)};
@@ -1677,7 +1681,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1677
1681
  height: 100%;
1678
1682
  overflow-y: scroll;
1679
1683
  }
1680
- `,Or=oe`
1684
+ `,_r=oe`
1681
1685
  padding: 16px 12px;
1682
1686
  border-bottom: 1px solid ${fe("neutral",300)};
1683
1687
 
@@ -1696,16 +1700,16 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1696
1700
  color: ${fe("neutral",700)};
1697
1701
  text-align: left;
1698
1702
  }
1699
- `,_r=oe``,Lr=oe`
1703
+ `,Lr=oe``,Tr=oe`
1700
1704
  display: flex;
1701
1705
  flex-direction: column;
1702
1706
  gap: 12px;
1703
1707
  padding: 12px;
1704
1708
  border-bottom: 1px solid ${fe("neutral",300)};
1705
- `,Tr=oe`
1709
+ `,Rr=oe`
1706
1710
  padding-top: 12px;
1707
1711
  padding-left: 8px;
1708
- `,Rr=oe``,Pr=e=>oe`
1712
+ `,Pr=oe``,Dr=e=>oe`
1709
1713
  display: flex;
1710
1714
  gap: 12px;
1711
1715
  padding: 12px 8px;
@@ -1729,7 +1733,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1729
1733
  background-color: ${fe("primary",100)};
1730
1734
  width: 99.8%;
1731
1735
  }
1732
- `,Dr=oe`
1736
+ `,Mr=oe`
1733
1737
  width: 100%;
1734
1738
  max-width: calc(100% - 44px);
1735
1739
 
@@ -1760,7 +1764,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1760
1764
  .ds-base-map-children {
1761
1765
  margin-top: 10px;
1762
1766
  }
1763
- `,Mr=({title:e,caption:t,additionalSettings:n,options:r,onOptionSelected:i,maxHeight:o="400px",maxWidth:a="260px"})=>B("div",{css:Er(o,a),children:H("div",{className:"ds-base-map-scroll-content",children:[H("div",{css:Or,children:[B("h2",{className:"ds-base-map-header-title",children:e}),B("p",{className:"ds-base-map-header-caption",children:t})]}),H("div",{css:_r,children:[n?B("div",{css:Lr,children:n.map((e=>H("div",{children:[B(Ot,{css:{},checked:e.checked,onCheckedChange:({checked:t})=>e.onCheckedChange({checked:Boolean(t)}),children:e.label}),e.checked&&e.children?B("div",{css:Tr,children:e.children}):null]},e.label)))}):null,r?B("div",{css:Rr,children:r.map((e=>{return H("div",{css:Pr(e.active),role:"button",onClick:()=>i?.(e),tabIndex:0,onKeyDown:t=>{"Enter"===t.key&&i?.(e)},children:[B("div",{css:(t=e.imageUrl,oe`
1767
+ `,Nr=({title:e,caption:t,additionalSettings:n,options:r,onOptionSelected:i,maxHeight:o="400px",maxWidth:a="260px"})=>B("div",{css:Or(o,a),children:H("div",{className:"ds-base-map-scroll-content",children:[H("div",{css:_r,children:[B("h2",{className:"ds-base-map-header-title",children:e}),B("p",{className:"ds-base-map-header-caption",children:t})]}),H("div",{css:Lr,children:[n?B("div",{css:Tr,children:n.map((e=>H("div",{children:[B(_t,{css:{},checked:e.checked,onCheckedChange:({checked:t})=>e.onCheckedChange({checked:Boolean(t)}),children:e.label}),e.checked&&e.children?B("div",{css:Rr,children:e.children}):null]},e.label)))}):null,r?B("div",{css:Pr,children:r.map((e=>{return H("div",{css:Dr(e.active),role:"button",onClick:()=>i?.(e),tabIndex:0,onKeyDown:t=>{"Enter"===t.key&&i?.(e)},children:[B("div",{css:(t=e.imageUrl,oe`
1764
1768
  height: 32px;
1765
1769
  width: 32px;
1766
1770
  border: 1px solid ${fe("neutral",300)};
@@ -1768,7 +1772,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1768
1772
  background-image: url(${t});
1769
1773
  background-size: cover;
1770
1774
  background-position: center;
1771
- `)}),H("div",{css:Dr,children:[H("div",{className:"ds-base-map-title-container",children:[B("p",{className:"ds-base-map-title",children:e.label}),e.active?B(Wn,{label:"Active",variant:"warning",size:"small",icon:B($e,{})}):null]}),B("p",{className:"ds-base-map-caption",children:e.caption}),e.active&&e.children?B("div",{className:"ds-base-map-children",children:e.children}):null]})]},e.label);var t}))}):null]})]})}),Nr=(e,t)=>oe`
1775
+ `)}),H("div",{css:Mr,children:[H("div",{className:"ds-base-map-title-container",children:[B("p",{className:"ds-base-map-title",children:e.label}),e.active?B(Un,{label:"Active",variant:"warning",size:"small",icon:B($e,{})}):null]}),B("p",{className:"ds-base-map-caption",children:e.caption}),e.active&&e.children?B("div",{className:"ds-base-map-children",children:e.children}):null]})]},e.label);var t}))}):null]})]})}),jr=(e,t)=>oe`
1772
1776
  height: 28px;
1773
1777
  width: 28px;
1774
1778
  background-color: ${e||fe("success",300)};
@@ -1793,14 +1797,14 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1793
1797
  height: 14px;
1794
1798
  width: 14px;
1795
1799
  }
1796
- `,jr=({ariaLabel:e,icon:t,backgroundColor:n,onClick:r})=>B("div",{css:Nr(n,!!r),"aria-label":e,role:"button",tabIndex:0,onClick:r,onKeyDown:r,children:t}),Vr={Paper:({ariaLabel:e,onClick:t})=>ae(jr,{ariaLabel:e||"paper icon",icon:ae(qe,{color:"#79022C"}),backgroundColor:"#FFBCD4",onClick:t}),Drop:({ariaLabel:e,onClick:t})=>ae(jr,{ariaLabel:e||"drop icon",icon:ae(Ge,{color:"#7D2A03"}),backgroundColor:"#F3A078",onClick:t}),Plant:({ariaLabel:e,onClick:t})=>ae(jr,{ariaLabel:e||"plant icon",icon:ae(We,{color:"#3B6402"}),backgroundColor:"#B7E578",onClick:t})},Ir=oe`
1800
+ `,Vr=({ariaLabel:e,icon:t,backgroundColor:n,onClick:r})=>B("div",{css:jr(n,!!r),"aria-label":e,role:"button",tabIndex:0,onClick:r,onKeyDown:r,children:t}),Ir={Paper:({ariaLabel:e,onClick:t})=>ae(Vr,{ariaLabel:e||"paper icon",icon:ae(qe,{color:"#79022C"}),backgroundColor:"#FFBCD4",onClick:t}),Drop:({ariaLabel:e,onClick:t})=>ae(Vr,{ariaLabel:e||"drop icon",icon:ae(Ge,{color:"#7D2A03"}),backgroundColor:"#F3A078",onClick:t}),Plant:({ariaLabel:e,onClick:t})=>ae(Vr,{ariaLabel:e||"plant icon",icon:ae(We,{color:"#3B6402"}),backgroundColor:"#B7E578",onClick:t})},zr=oe`
1797
1801
  background-color: ${fe("neutral",100)};
1798
- `,zr=oe`
1802
+ `,Ar=oe`
1799
1803
  padding: 16px 16px 0px 16px;
1800
1804
  &:focus-visible {
1801
1805
  outline-color: ${fe("primary",700)};
1802
1806
  }
1803
- `,Ar=oe`
1807
+ `,Hr=oe`
1804
1808
  font-size: 16px;
1805
1809
  font-weight: 700;
1806
1810
  line-height: 24px;
@@ -1810,14 +1814,14 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1810
1814
  align-items: center;
1811
1815
  text-align: left;
1812
1816
  gap: 10px;
1813
- `,Hr=oe`
1817
+ `,Br=oe`
1814
1818
  font-size: 12px;
1815
1819
  font-weight: 400;
1816
1820
  line-height: 16px;
1817
1821
  text-align: left;
1818
1822
  color: ${fe("neutral",700)};
1819
1823
  margin-bottom: 8px;
1820
- `,Br=oe`
1824
+ `,Fr=oe`
1821
1825
  width: 100%;
1822
1826
  padding: 16px 0;
1823
1827
  border-bottom: 1px solid ${fe("neutral",300)};
@@ -1825,31 +1829,31 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1825
1829
  &:last-of-type {
1826
1830
  border-bottom: none;
1827
1831
  }
1828
- `,Fr=oe`
1832
+ `,Zr=oe`
1829
1833
  display: flex;
1830
1834
  align-items: flex-start;
1831
1835
  justify-content: space-between;
1832
- `,Zr=oe`
1836
+ `,qr=oe`
1833
1837
  display: flex;
1834
1838
  flex-direction: column;
1835
- `,qr=e=>oe`
1839
+ `,Gr=e=>oe`
1836
1840
  font-size: 16px;
1837
1841
  font-weight: 400;
1838
1842
  line-height: 24px;
1839
1843
  text-align: left;
1840
1844
  color: ${fe("neutral",e?500:800)};
1841
- `,Gr=e=>oe`
1845
+ `,Wr=e=>oe`
1842
1846
  font-size: 14px;
1843
1847
  font-weight: 400;
1844
1848
  line-height: 20px;
1845
1849
  text-align: left;
1846
1850
  color: ${fe("neutral",e?500:700)};
1847
- `,Wr=({name:e,label:t,caption:n,showInfoButton:i=!0,infoButtonLabel:o="About data",variant:a="switch",disabled:l,onInfoClick:s,isDefaultSelected:c=!1,onChange:d})=>{const u="switch"===a;return H("div",{css:Br,children:[H("div",u?{css:Fr,children:[H("div",{css:Zr,children:[B("p",{css:qr(l),"aria-label":t,"aria-disabled":l,children:t}),B("p",{"aria-label":n,css:Gr(l),children:n})]}),B(rn,{"aria-label":`${t}, ${n}`,name:e,disabled:l,defaultChecked:c,onChange:d,role:"switch"})]}:{style:{display:"flex",flexDirection:"column"},children:[B(qt,{value:e,disabled:l,fontSize:"16px",color:"var(--chakra-colors-neutral-800)",children:t}),B("p",{style:{marginLeft:"28px"},css:Gr(l),children:n})]}),i?B(r,{display:"flex",justifyContent:"flex-start",marginTop:"8px",marginLeft:u?0:"28px",children:B(ye,{variant:"secondary",label:o,rightIcon:B(Se,{}),size:"small",onClick:s,disabled:l})}):null]})},Ur=({label:e,caption:t,value:n,layerItems:i,onChangeForRadioVariant:o})=>{const[a,l]=W({}),[s]=W((e=>{const t=e.find((e=>"radio"===e.variant&&e.isDefaultSelected));return t?.name})(i));U((()=>{let t={...a};i.forEach((n=>{n.isDefaultSelected&&(t={...t,["radio"===n.variant?e:n.name]:n.isDefaultSelected})})),l(t)}),[]);const c=(e,t,n,r)=>{const i={...a,[e]:t};l(i),n&&n(e,t,r)},d=Object.values(a).filter((e=>!0===e)).length,u=`${e}, ${d} Active layers on the map${t?`, ${t}`:""}`;return H(S.Item,{value:n,width:"100%",children:[H(S.ItemTrigger,{css:zr,alignItems:"flex-start","aria-label":u,children:[H(r,{width:"full",display:"flex",flexDirection:"column",alignItems:"flex-start",children:[H("span",{css:Ar,children:[e,B(Wn,{label:`${d} Active`,size:"small",variant:d>0?"success":"info-grey"})]}),B("div",{css:Hr,children:t})]}),B(S.ItemIndicator,{display:"flex",children:B(Ee,{color:"var(--chakra-colors-neutral-700)",height:"16px",width:"16px"})})]}),B(S.ItemContent,{paddingLeft:"16px",paddingRight:"16px",children:B(Gt,{name:e,defaultValue:s,customGap:"0px",onChange:(e,t)=>c(e,!!t,o,t),children:i.map((e=>B(Wr,{...e,onChange:(t,n)=>c(t,n,e.onChange)},e.label)))})})]})},Xr=({children:e,defaultValue:t,...n})=>B("div",{css:Ir,style:{width:"100%"},children:B(S.Root,{css:{},defaultValue:t,multiple:!0,...n,children:e})}),Yr=oe`
1851
+ `,Ur=({name:e,label:t,caption:n,showInfoButton:i=!0,infoButtonLabel:o="About data",variant:a="switch",disabled:l,onInfoClick:s,isDefaultSelected:c=!1,onChange:d})=>{const u="switch"===a;return H("div",{css:Fr,children:[H("div",u?{css:Zr,children:[H("div",{css:qr,children:[B("p",{css:Gr(l),"aria-label":t,"aria-disabled":l,children:t}),B("p",{"aria-label":n,css:Wr(l),children:n})]}),B(on,{"aria-label":`${t}, ${n}`,name:e,disabled:l,defaultChecked:c,onChange:d,role:"switch"})]}:{style:{display:"flex",flexDirection:"column"},children:[B(Gt,{value:e,disabled:l,fontSize:"16px",color:"var(--chakra-colors-neutral-800)",children:t}),B("p",{style:{marginLeft:"28px"},css:Wr(l),children:n})]}),i?B(r,{display:"flex",justifyContent:"flex-start",marginTop:"8px",marginLeft:u?0:"28px",children:B(ye,{variant:"secondary",label:o,rightIcon:B(Se,{}),size:"small",onClick:s,disabled:l})}):null]})},Xr=({label:e,caption:t,value:n,layerItems:i,onChangeForRadioVariant:o})=>{const[a,l]=W({}),[s]=W((e=>{const t=e.find((e=>"radio"===e.variant&&e.isDefaultSelected));return t?.name})(i));U((()=>{let t={...a};i.forEach((n=>{n.isDefaultSelected&&(t={...t,["radio"===n.variant?e:n.name]:n.isDefaultSelected})})),l(t)}),[]);const c=(e,t,n,r)=>{const i={...a,[e]:t};l(i),n&&n(e,t,r)},d=Object.values(a).filter((e=>!0===e)).length,u=`${e}, ${d} Active layers on the map${t?`, ${t}`:""}`;return H(S.Item,{value:n,width:"100%",children:[H(S.ItemTrigger,{css:Ar,alignItems:"flex-start","aria-label":u,children:[H(r,{width:"full",display:"flex",flexDirection:"column",alignItems:"flex-start",children:[H("span",{css:Hr,children:[e,B(Un,{label:`${d} Active`,size:"small",variant:d>0?"success":"info-grey"})]}),B("div",{css:Br,children:t})]}),B(S.ItemIndicator,{display:"flex",children:B(Ee,{color:"var(--chakra-colors-neutral-700)",height:"16px",width:"16px"})})]}),B(S.ItemContent,{paddingLeft:"16px",paddingRight:"16px",children:B(Wt,{name:e,defaultValue:s,customGap:"0px",onChange:(e,t)=>c(e,!!t,o,t),children:i.map((e=>B(Ur,{...e,onChange:(t,n)=>c(t,n,e.onChange)},e.label)))})})]})},Yr=({children:e,defaultValue:t,...n})=>B("div",{css:zr,style:{width:"100%"},children:B(S.Root,{css:{},defaultValue:t,multiple:!0,...n,children:e})}),Kr=oe`
1848
1852
  margin-bottom: 16px;
1849
1853
  border: 1px solid ${fe("neutral",300)};
1850
1854
  border-radius: 4px;
1851
1855
  box-shadow: 0px 1px 2px 0px #0000000d;
1852
- `,Kr=oe`
1856
+ `,Jr=oe`
1853
1857
  padding: 6px 8px;
1854
1858
  align-items: center;
1855
1859
  background-color: ${fe("neutral",100)};
@@ -1865,12 +1869,12 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1865
1869
  height: 10px;
1866
1870
  width: 10px;
1867
1871
  }
1868
- `,Jr=oe`
1872
+ `,Qr=oe`
1869
1873
  font-size: 12px;
1870
1874
  font-weight: 700;
1871
1875
  line-height: 16px;
1872
1876
  color: ${fe("neutral",800)};
1873
- `,Qr=oe`
1877
+ `,ei=oe`
1874
1878
  padding: 12px 8px;
1875
1879
  display: flex;
1876
1880
  flex-direction: column;
@@ -1886,13 +1890,13 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1886
1890
  margin-bottom: 0px;
1887
1891
  }
1888
1892
  }
1889
- `,ei=({label:e,children:t,openedByDefault:n})=>B("div",{children:B(S.Root,{defaultValue:n?[e]:[],multiple:!0,children:H(S.Item,{css:Yr,value:e,children:[H(S.ItemTrigger,{css:Kr,children:[B(r,{width:"full",display:"flex",flexDirection:"column",alignItems:"flex-start",children:B("p",{css:Jr,children:e})}),B(S.ItemIndicator,{display:"flex",children:B(Ee,{color:"var(--chakra-colors-neutral-700)",height:"16px",width:"16px"})})]}),B(S.ItemContent,{css:Qr,children:Y.map(t,(e=>B("div",{className:"ds-layer-parameters-item-child",children:e})))})]})})}),ti=oe`
1893
+ `,ti=({label:e,children:t,openedByDefault:n})=>B("div",{children:B(S.Root,{defaultValue:n?[e]:[],multiple:!0,children:H(S.Item,{css:Kr,value:e,children:[H(S.ItemTrigger,{css:Jr,children:[B(r,{width:"full",display:"flex",flexDirection:"column",alignItems:"flex-start",children:B("p",{css:Qr,children:e})}),B(S.ItemIndicator,{display:"flex",children:B(Ee,{color:"var(--chakra-colors-neutral-700)",height:"16px",width:"16px"})})]}),B(S.ItemContent,{css:ei,children:Y.map(t,(e=>B("div",{className:"ds-layer-parameters-item-child",children:e})))})]})})}),ni=oe`
1890
1894
  padding: 12px;
1891
1895
  padding-bottom: 20px;
1892
1896
  display: flex;
1893
1897
  gap: 12px;
1894
1898
  border-bottom: 1px solid ${fe("neutral",300)};
1895
- `,ni=oe`
1899
+ `,ri=oe`
1896
1900
  display: flex;
1897
1901
  flex-direction: column;
1898
1902
 
@@ -1901,44 +1905,44 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1901
1905
  fill: ${fe("neutral",700)} !important;
1902
1906
  }
1903
1907
  }
1904
- `,ri=oe`
1908
+ `,ii=oe`
1905
1909
  display: flex;
1906
1910
  align-items: flex-start;
1907
1911
  justify-content: space-between;
1908
1912
  gap: 12px;
1909
1913
  margin-bottom: 16px;
1910
- `,ii=oe`
1914
+ `,oi=oe`
1911
1915
  font-size: 16px;
1912
1916
  line-height: 24px;
1913
1917
  font-weight: 400;
1914
1918
  text-align: left;
1915
1919
  color: ${fe("neutral",900)};
1916
- `,oi=oe`
1920
+ `,ai=oe`
1917
1921
  font-size: 14px;
1918
1922
  line-height: 20px;
1919
1923
  font-weight: 400;
1920
1924
  text-align: left;
1921
1925
  color: ${fe("neutral",700)};
1922
- `,ai=oe`
1926
+ `,li=oe`
1923
1927
  display: flex;
1924
1928
  justify-content: space-between;
1925
1929
 
1926
1930
  button {
1927
1931
  width: 46%;
1928
1932
  }
1929
- `,li=oe`
1933
+ `,si=oe`
1930
1934
  width: 234px;
1931
1935
  border: 1px solid ${fe("neutral",600)};
1932
1936
  border-radius: 4px;
1933
- `,si=oe`
1934
- padding: 12px;
1935
1937
  `,ci=oe`
1938
+ padding: 12px;
1939
+ `,di=oe`
1936
1940
  font-size: 14px;
1937
1941
  line-height: 20px;
1938
1942
  font-weight: 400;
1939
1943
  text-align: left;
1940
1944
  color: ${fe("neutral",900)};
1941
- `,di=oe`
1945
+ `,ui=oe`
1942
1946
  display: flex;
1943
1947
  align-items: center;
1944
1948
  gap: 12px;
@@ -1959,20 +1963,20 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1959
1963
  margin-top: 18px;
1960
1964
  width: 100%;
1961
1965
  }
1962
- `,ui=({defaultValue:e,onOpacityChanged:t})=>{const[n,r]=W(e);return H(E.Root,{positioning:{placement:"bottom-end"},children:[B(E.Trigger,{asChild:!0,children:B(ye,{label:"Opacity",size:"small",variant:"secondary",leftIcon:B(Se,{})})}),B(E.Positioner,{children:B(E.Content,{css:li,children:H(E.Body,{css:si,children:[B("p",{css:ci,children:"Opacity"}),H("div",{css:di,children:[H("div",{style:{position:"relative"},children:[B(kn,{"aria-label":"Opacity",min:"0",max:"100",value:n,onChange:e=>{const n=e.target.value||"0";let i=parseInt(n,10);i=Number.isNaN(i)?0:i,i=i<0?0:i,i=i>100?100:i,r(i),t&&t(i)},className:"ds-opacity-control-text-input",onClick:e=>e.target.select()}),B("p",{style:{position:"absolute",top:"18.5px",right:"5px"},children:"%"})]}),B(tn,{min:0,max:100,value:[n],onValueChangeEnd:({value:e})=>{r(e[0]),t&&t(e[0])}})]})]})})})]})},pi=({layerName:e,dataUnit:t,onDrag:n,onUpClick:r,onDownClick:i,onRemoveClick:o,children:a,onInfoClick:l,onOpacityChanged:s})=>H("div",{css:ti,children:[H("div",{css:ni,children:[B(nt,{icon:B(Re,{}),"aria-label":"Drag and drop","aria-hidden":!0,onClick:n,style:{display:"none",marginBottom:"12px"}}),H("div",{style:{display:"flex",flexDirection:"column",gap:"12px"},children:[B(nt,{icon:B(Ee,{rotate:"180"}),"aria-label":"Up",onClick:r}),B(nt,{icon:B(Ee,{}),"aria-label":"Down",onClick:i})]})]}),H("div",{style:{width:"100%"},children:[H("div",{css:ri,children:[H("div",{children:[B("h3",{css:ii,children:e}),B("p",{css:oi,children:t})]}),B(ye,{label:"Remove",size:"small",variant:"secondary",rightIcon:B(_e,{}),onClick:o})]}),a,H("div",{css:ai,children:[B(ye,{label:"About data",size:"small",variant:"secondary",leftIcon:B(Se,{}),onClick:l}),B(ui,{defaultValue:80,onOpacityChanged:s})]})]})]}),hi=e=>oe`
1966
+ `,pi=({defaultValue:e,onOpacityChanged:t})=>{const[n,r]=W(e);return H(E.Root,{positioning:{placement:"bottom-end"},children:[B(E.Trigger,{asChild:!0,children:B(ye,{label:"Opacity",size:"small",variant:"secondary",leftIcon:B(Se,{})})}),B(E.Positioner,{children:B(E.Content,{css:si,children:H(E.Body,{css:ci,children:[B("p",{css:di,children:"Opacity"}),H("div",{css:ui,children:[H("div",{style:{position:"relative"},children:[B(Sn,{"aria-label":"Opacity",min:"0",max:"100",value:n,onChange:e=>{const n=e.target.value||"0";let i=parseInt(n,10);i=Number.isNaN(i)?0:i,i=i<0?0:i,i=i>100?100:i,r(i),t&&t(i)},className:"ds-opacity-control-text-input",onClick:e=>e.target.select()}),B("p",{style:{position:"absolute",top:"18.5px",right:"5px"},children:"%"})]}),B(nn,{min:0,max:100,value:[n],onValueChangeEnd:({value:e})=>{r(e[0]),t&&t(e[0])}})]})]})})})]})},hi=({layerName:e,dataUnit:t,onDrag:n,onUpClick:r,onDownClick:i,onRemoveClick:o,children:a,onInfoClick:l,onOpacityChanged:s})=>H("div",{css:ni,children:[H("div",{css:ri,children:[B(nt,{icon:B(Re,{}),"aria-label":"Drag and drop","aria-hidden":!0,onClick:n,style:{display:"none",marginBottom:"12px"}}),H("div",{style:{display:"flex",flexDirection:"column",gap:"12px"},children:[B(nt,{icon:B(Ee,{rotate:"180"}),"aria-label":"Up",onClick:r}),B(nt,{icon:B(Ee,{}),"aria-label":"Down",onClick:i})]})]}),H("div",{style:{width:"100%"},children:[H("div",{css:ii,children:[H("div",{children:[B("h3",{css:oi,children:e}),B("p",{css:ai,children:t})]}),B(ye,{label:"Remove",size:"small",variant:"secondary",rightIcon:B(_e,{}),onClick:o})]}),a,H("div",{css:li,children:[B(ye,{label:"About data",size:"small",variant:"secondary",leftIcon:B(Se,{}),onClick:l}),B(pi,{defaultValue:80,onOpacityChanged:s})]})]})]}),fi=e=>oe`
1963
1967
  width: 20px;
1964
1968
  height: 20px;
1965
1969
  border-radius: 50%;
1966
1970
  background-color: ${e};
1967
1971
  border: 1px solid ${fe("neutral",400)};
1968
- `,fi=e=>oe`
1972
+ `,gi=e=>oe`
1969
1973
  width: 20px;
1970
1974
  height: 8px;
1971
1975
  border-radius: 2px;
1972
1976
  background-color: ${e};
1973
1977
  border: 1px solid ${fe("neutral",400)};
1974
1978
  margin-top: 6px;
1975
- `,gi=e=>oe`
1979
+ `,vi=e=>oe`
1976
1980
  width: 20px;
1977
1981
  height: 20px;
1978
1982
  border-radius: 50%;
@@ -1985,26 +1989,26 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1985
1989
  width: 10px;
1986
1990
  height: 10px;
1987
1991
  }
1988
- `,vi=oe`
1992
+ `,mi=oe`
1989
1993
  width: 100%;
1990
1994
  display: flex;
1991
1995
  justify-content: space-between;
1992
1996
  gap: 8px;
1993
1997
  margin-bottom: 16px;
1994
- `,mi=oe`
1998
+ `,xi=oe`
1995
1999
  display: flex;
1996
2000
  gap: 8px;
1997
- `,xi=oe`
2001
+ `,bi=oe`
1998
2002
  font-size: 14px;
1999
2003
  line-height: 20px;
2000
2004
  font-weight: 400;
2001
2005
  color: ${fe("neutral",800)};
2002
- `,bi=oe`
2006
+ `,yi=oe`
2003
2007
  font-size: 12px;
2004
2008
  line-height: 16px;
2005
2009
  font-weight: 400;
2006
2010
  color: ${fe("neutral",700)};
2007
- `,yi=oe`
2011
+ `,Ci=oe`
2008
2012
  button {
2009
2013
  height: 25px;
2010
2014
  font-size: 12px;
@@ -2013,12 +2017,12 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
2013
2017
  color: ${fe("neutral",600)};
2014
2018
  padding: 0 10px;
2015
2019
  }
2016
- `,Ci=({type:e,label:t,caption:n,color:r,onActionClick:i,showActionButton:o,pointIcon:a=B(Ze,{color:"#006D2C"})})=>{const[l,s]=W(!0),c=X(),d=X(),u="line"===e,p="point"===e,h=l?"Hide":"Show",f=n?`${c} ${d}`:c;return H("div",{css:vi,children:[H("div",{css:mi,children:[H("div",{children:["raster"===e&&B("div",{css:hi(r)}),u&&B("div",{css:fi(r)}),p&&B("div",{css:gi(r),children:a})]}),H("div",{children:[B("p",{id:c,css:xi,children:t}),n?B("p",{id:d,css:bi,children:n}):null]})]}),i&&o?B("div",{css:yi,children:B(ye,{type:"button",variant:"borderless",label:h,rightIcon:B(l?Te:Le,{}),"aria-pressed":l,"aria-describedby":f,"aria-label":`${h} ${t}`,onClick:()=>{s((e=>!e)),i?.()}})}):null]})},wi=oe`
2020
+ `,wi=({type:e,label:t,caption:n,color:r,onActionClick:i,showActionButton:o,pointIcon:a=B(Ze,{color:"#006D2C"})})=>{const[l,s]=W(!0),c=X(),d=X(),u="line"===e,p="point"===e,h=l?"Hide":"Show",f=n?`${c} ${d}`:c;return H("div",{css:mi,children:[H("div",{css:xi,children:[H("div",{children:["raster"===e&&B("div",{css:fi(r)}),u&&B("div",{css:gi(r)}),p&&B("div",{css:vi(r),children:a})]}),H("div",{children:[B("p",{id:c,css:bi,children:t}),n?B("p",{id:d,css:yi,children:n}):null]})]}),i&&o?B("div",{css:Ci,children:B(ye,{type:"button",variant:"borderless",label:h,rightIcon:B(l?Te:Le,{}),"aria-pressed":l,"aria-describedby":f,"aria-label":`${h} ${t}`,onClick:()=>{s((e=>!e)),i?.()}})}):null]})},$i=oe`
2017
2021
  width: 100%;
2018
2022
  display: flex;
2019
2023
  flex-direction: column;
2020
2024
  margin-bottom: 16px;
2021
- `,$i=oe`
2025
+ `,ki=oe`
2022
2026
  height: 20px;
2023
2027
  width: 100%;
2024
2028
  margin-bottom: 8px;
@@ -2036,34 +2040,34 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
2036
2040
  border-top-right-radius: 3px;
2037
2041
  border-bottom-right-radius: 3px;
2038
2042
  }
2039
- `,ki=oe`
2043
+ `,Si=oe`
2040
2044
  display: flex;
2041
2045
  justify-content: space-between;
2042
2046
  align-items: flex-start;
2043
- `,Si=oe`
2047
+ `,Ei=oe`
2044
2048
  width: 100%;
2045
2049
  font-size: 12px;
2046
2050
  line-height: 16px;
2047
2051
  font-weight: 400;
2048
2052
  color: ${fe("neutral",800)};
2049
2053
  text-align: center;
2050
- `,Ei=oe`
2054
+ `,Oi=oe`
2051
2055
  font-size: 12px;
2052
2056
  line-height: 16px;
2053
2057
  font-weight: 400;
2054
2058
  color: ${fe("neutral",700)};
2055
2059
  text-align: center;
2056
- `,Oi=e=>{const t=e.map(((t,n)=>`${n/(e.length-1)*100}%`));return`linear-gradient(to right, ${e.map(((e,n)=>`${e} ${t[n]}`)).join(", ")})`},_i=({colors:e,values:t,subLabels:n,isGradient:r})=>{return H("div",{css:wi,children:[B("div",r?{css:(i=Oi(e),oe`
2060
+ `,_i=e=>{const t=e.map(((t,n)=>`${n/(e.length-1)*100}%`));return`linear-gradient(to right, ${e.map(((e,n)=>`${e} ${t[n]}`)).join(", ")})`},Li=({colors:e,values:t,subLabels:n,isGradient:r})=>{return H("div",{css:$i,children:[B("div",r?{css:(i=_i(e),oe`
2057
2061
  height: 20px;
2058
2062
  width: 100%;
2059
2063
  margin-bottom: 8px;
2060
2064
  border: 1px solid ${fe("neutral",300)};
2061
2065
  border-radius: 4px;
2062
2066
  ${i?`background: ${i};`:""}
2063
- `)}:{css:$i,children:e?.map(((e,n)=>B("div",{"data-test":`${e}-${t?.[n]}`,style:{backgroundColor:e,width:"100%",height:"100%"}},`${e}-${t?.[n]}`)))}),B("div",{css:ki,children:t?.map((e=>B("div",{style:{width:r?"auto":`calc(100% / ${t.length})`,display:"flex",justifyContent:"center"},children:B("p",{css:Si,children:e})},e)))}),n&&n.length?B("div",{css:ki,children:n.map((e=>B("div",{style:{width:r?"auto":`calc(100% / ${t.length})`,display:"flex",justifyContent:"center"},children:B("p",{css:Ei,style:{width:"100%"},children:e})},e)))}):null]});var i},Li=oe`
2067
+ `)}:{css:ki,children:e?.map(((e,n)=>B("div",{"data-test":`${e}-${t?.[n]}`,style:{backgroundColor:e,width:"100%",height:"100%"}},`${e}-${t?.[n]}`)))}),B("div",{css:Si,children:t?.map((e=>B("div",{style:{width:r?"auto":`calc(100% / ${t.length})`,display:"flex",justifyContent:"center"},children:B("p",{css:Ei,children:e})},e)))}),n&&n.length?B("div",{css:Si,children:n.map((e=>B("div",{style:{width:r?"auto":`calc(100% / ${t.length})`,display:"flex",justifyContent:"center"},children:B("p",{css:Oi,style:{width:"100%"},children:e})},e)))}):null]});var i},Ti=oe`
2064
2068
  display: flex;
2065
2069
  flex-direction: column;
2066
- `,Ti=oe`
2070
+ `,Ri=oe`
2067
2071
  display: flex;
2068
2072
  gap: 16px;
2069
2073
  align-items: center;
@@ -2072,39 +2076,40 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
2072
2076
  .ds-select-input-container {
2073
2077
  margin-bottom: 0px;
2074
2078
  }
2075
- `,Ri=oe`
2079
+ `,Pi=oe`
2076
2080
  font-size: 18px;
2077
2081
  line-height: 28px;
2078
2082
  font-weight: 400;
2079
2083
  color: ${fe("neutral",700)};
2080
- `,Pi=({pageSize:e,currentPage:t,totalItems:n,onPageSizeChange:r,showItemCountText:i})=>H("div",{css:Li,children:[H("div",{css:Ti,children:[B("div",{style:{width:"80px"},children:B(Yn,{defaultValue:[`${e}`],items:[{label:"10",value:"10"},{label:"20",value:"20"},{label:"50",value:"50"},{label:"100",value:"100"}],onChange:e=>{r&&r(parseInt(e[0],10))},required:!0})}),B("p",{css:Ri,children:"Per Page"})]}),i?B("p",{css:Ri,children:(()=>{const r=e,i=(t-1)*r+1;return`Showing ${i}-${Math.min(i+r-1,n)} of ${n}`})()}):null]}),Di=oe`
2084
+ `,Di=({pageSize:e,currentPage:t,totalItems:n,onPageSizeChange:r,showItemCountText:i})=>H("div",{css:Ti,children:[H("div",{css:Ri,children:[B("div",{style:{width:"80px"},children:B(Kn,{defaultValue:[`${e}`],items:[{label:"10",value:"10"},{label:"20",value:"20"},{label:"50",value:"50"},{label:"100",value:"100"}],onChange:e=>{r&&r(parseInt(e[0],10))},required:!0})}),B("p",{css:Pi,children:"Per Page"})]}),i?B("p",{css:Pi,children:(()=>{const r=e,i=(t-1)*r+1;return`Showing ${i}-${Math.min(i+r-1,n)} of ${n}`})()}):null]}),Mi=oe`
2081
2085
  border: 1px solid ${fe("neutral",300)};
2082
- `,Mi=oe`
2083
- color: ${fe("neutral",700)};
2086
+ `,Ni=e=>oe`
2087
+ color: ${fe("neutral",e?400:700)};
2084
2088
  line-height: 20px;
2085
2089
  white-space: nowrap;
2086
2090
  overflow: hidden;
2087
2091
  text-overflow: ellipsis;
2088
- `,Ni=oe`
2092
+ `,ji=oe`
2089
2093
  font-weight: 400;
2090
2094
  color: ${fe("neutral",700)};
2091
2095
  white-space: nowrap;
2092
2096
  overflow: hidden;
2093
2097
  text-overflow: ellipsis;
2094
- `,ji=oe`
2098
+ `,Vi=oe`
2095
2099
  color: ${fe("neutral",700)};
2096
2100
  text-align: right;
2097
2101
  font-weight: 700;
2098
2102
  white-space: nowrap;
2099
2103
  overflow: hidden;
2100
2104
  text-overflow: ellipsis;
2101
- `,Vi=oe`
2105
+ `,Ii=e=>oe`
2102
2106
  width: 16px;
2103
2107
  height: 16px;
2108
+
2104
2109
  path {
2105
- fill: ${fe("neutral",700)};
2110
+ fill: ${fe("neutral",e?400:700)};
2106
2111
  }
2107
- `,Ii=oe`
2112
+ `,zi=oe`
2108
2113
  display: flex;
2109
2114
  align-items: center;
2110
2115
  justify-content: space-between;
@@ -2113,7 +2118,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
2113
2118
  border-bottom: 1px solid ${fe("neutral",200)};
2114
2119
  width: 100%;
2115
2120
  text-align: left;
2116
- `,zi=oe`
2121
+ `,Ai=oe`
2117
2122
  display: flex;
2118
2123
  align-items: center;
2119
2124
  justify-content: space-between;
@@ -2122,15 +2127,11 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
2122
2127
  border-bottom: 1px solid ${fe("neutral",200)};
2123
2128
  width: 100%;
2124
2129
  text-align: left;
2125
- cursor: pointer;
2126
- &:hover {
2127
- box-shadow: 0px 2px 4px -2px #0000001a;
2128
- box-shadow: 0px 4px 6px -1px #0000001a;
2129
- background-color: color-mix(
2130
- in srgb,
2131
- ${fe("primary",500)} 20%,
2132
- transparent
2133
- );
2130
+
2131
+ &:hover:not(:disabled) {
2132
+ cursor: pointer;
2133
+ background-color: ${fe("neutral",200)};
2134
+ border-bottom: 1px solid ${fe("neutral",300)};
2134
2135
  }
2135
2136
 
2136
2137
  &:focus-visible {
@@ -2143,22 +2144,26 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
2143
2144
  rgba(0, 0, 0, 0.05) 0px 2px 2px 4px;
2144
2145
  }
2145
2146
 
2146
- &:active {
2147
- background-color: ${fe("primary",100)};
2148
- border: 1px solid ${fe("primary",700)};
2147
+ &:active:not(:disabled) {
2148
+ background-color: ${fe("neutral",300)};
2149
+ border-color: ${fe("neutral",300)};
2149
2150
  }
2150
- `,Ai=({id:e,label:t,caption:n,icon:i,value:a,variant:l="data",onItemClick:s,isExpanded:c=!1,ariaLabel:d})=>{const u="navigation"===l&&!!s,p=u?O.button:O.div;return H(p,{id:e,css:"data"===l?Ii:zi,onClick:u?s:void 0,tabIndex:u?0:void 0,onKeyDown:e=>{u&&("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),s?.()))},role:u?"button":void 0,"aria-expanded":u?c:void 0,"aria-label":d||("data"===l&&a?`${t}, ${a}`:t),children:[H(_,{gap:3,flex:"1",overflow:"hidden",children:[i&&B(o,{css:Vi,as:i.type,boxSize:4,"aria-hidden":"true"}),H(r,{flex:"1",minWidth:0,children:[B(L,{fontWeight:"navigation"===l?"700":"400",css:Mi,children:t}),n&&B(L,{css:Ni,children:n})]})]}),"data"===l&&a&&B(L,{css:ji,children:a}),"navigation"===l&&B(o,{as:Oe,boxSize:4,"aria-hidden":"true"})]})},Hi=({items:e})=>B(r,{css:Di,children:e.map((e=>B(Ai,{id:e.id,icon:e.icon,label:e.label,caption:e.caption,value:e.value,variant:e.variant??"data",onItemClick:e.onItemClick},e.id??e.label)))}),Bi=oe`
2151
+
2152
+ &:disabled {
2153
+ background-color: ${fe("neutral",200)};
2154
+ }
2155
+ `,Hi=({id:e,label:t,caption:n,icon:i,value:a,variant:l="data",onItemClick:s,isExpanded:c=!1,ariaLabel:d,disabled:u=!1})=>{const p="navigation"===l&&!!s,h=p?O.button:O.div;return H(h,{id:e,css:"data"===l?zi:Ai,onClick:p?s:void 0,tabIndex:p?0:void 0,onKeyDown:e=>{p&&("Enter"!==e.key&&" "!==e.key||s?.())},role:p?"button":void 0,"aria-expanded":p?c:void 0,"aria-label":d||("data"===l&&a?`${t}, ${a}`:t),disabled:u,children:[H(_,{gap:3,flex:"1",overflow:"hidden",children:[i&&B(o,{css:Ii(u),as:i.type,boxSize:4,"aria-hidden":"true"}),H(r,{flex:"1",minWidth:0,children:[B(L,{fontWeight:"navigation"===l?"700":"400",css:Ni(u),children:t}),n&&B(L,{css:ji,children:n})]})]}),"data"===l&&a&&B(L,{css:Vi,children:a}),"navigation"===l&&B(o,{as:Oe,boxSize:4,"aria-hidden":"true",css:Ii(u)})]})},Bi=({items:e})=>B(r,{css:Mi,children:e.map((e=>B(Hi,{id:e.id,icon:e.icon,label:e.label,caption:e.caption,value:e.value,variant:e.variant??"data",onItemClick:e.onItemClick},e.id??e.label)))}),Fi=oe`
2151
2156
  svg {
2152
2157
  path {
2153
2158
  fill: ${fe("primary",500)};
2154
2159
  }
2155
2160
  }
2156
- `,Fi=oe`
2161
+ `,Zi=oe`
2157
2162
  font-size: 16px;
2158
2163
  line-height: 24px;
2159
2164
  font-weight: 700;
2160
2165
  color: ${fe("neutral",900)};
2161
- `,Zi=oe`
2166
+ `,qi=oe`
2162
2167
  span {
2163
2168
  height: 20px;
2164
2169
  width: 20px;
@@ -2168,7 +2173,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
2168
2173
  background-color: transparent;
2169
2174
  }
2170
2175
  }
2171
- `,qi=oe`
2176
+ `,Gi=oe`
2172
2177
  font-size: 16px;
2173
2178
  line-height: 24px;
2174
2179
  font-weight: 400;
@@ -2178,22 +2183,22 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
2178
2183
  color: ${fe("neutral",900)};
2179
2184
  font-weight: 700;
2180
2185
  }
2181
- `,Gi=({totalItems:e,pageSize:t,currentPage:n,variant:r="default",onPageChange:i})=>{const o="compact"===r||"compact-with-buttons"===r,a="compact-with-buttons"===r;return B("div",{"aria-label":"Pagination",children:B(T.Root,{count:e,pageSize:t,defaultPage:n,onPageChange:e=>i&&i(e.page),siblingCount:1,children:H(R,{gap:"2",size:"sm",variant:"ghost",css:Zi,children:[B(T.PrevTrigger,{asChild:!0,children:a?B(ye,{variant:"secondary",label:"Previous",size:"small",leftIcon:B(Ee,{style:{rotate:"90deg"},color:"var(--chakra-colors-primary-500)"})}):B(nt,{css:Bi,style:{rotate:"90deg"},icon:B(Ee,{}),"aria-label":"Previous page"})}),o?B(T.PageText,{css:Fi}):B(T.Items,{render:e=>B(nt,{css:qi,"aria-label":`Page ${e.value}`,icon:B("p",{children:e.value})})}),B(T.NextTrigger,{asChild:!0,children:a?B(ye,{variant:"secondary",label:"Next",size:"small",rightIcon:B(Ee,{style:{rotate:"270deg"},color:"var(--chakra-colors-primary-500)"})}):B(nt,{css:Bi,style:{rotate:"270deg"},icon:B(Ee,{}),"aria-label":"Next page"})})]})})})},Wi=oe`
2186
+ `,Wi=({totalItems:e,pageSize:t,currentPage:n,variant:r="default",onPageChange:i})=>{const o="compact"===r||"compact-with-buttons"===r,a="compact-with-buttons"===r;return B("div",{"aria-label":"Pagination",children:B(T.Root,{count:e,pageSize:t,defaultPage:n,onPageChange:e=>i&&i(e.page),siblingCount:1,children:H(R,{gap:"2",size:"sm",variant:"ghost",css:qi,children:[B(T.PrevTrigger,{asChild:!0,children:a?B(ye,{variant:"secondary",label:"Previous",size:"small",leftIcon:B(Ee,{style:{rotate:"90deg"},color:"var(--chakra-colors-primary-500)"})}):B(nt,{css:Fi,style:{rotate:"90deg"},icon:B(Ee,{}),"aria-label":"Previous page"})}),o?B(T.PageText,{css:Zi}):B(T.Items,{render:e=>B(nt,{css:Gi,"aria-label":`Page ${e.value}`,icon:B("p",{children:e.value})})}),B(T.NextTrigger,{asChild:!0,children:a?B(ye,{variant:"secondary",label:"Next",size:"small",rightIcon:B(Ee,{style:{rotate:"270deg"},color:"var(--chakra-colors-primary-500)"})}):B(nt,{css:Fi,style:{rotate:"270deg"},icon:B(Ee,{}),"aria-label":"Next page"})})]})})})},Ui=oe`
2182
2187
  border: 1px solid ${fe("neutral",300)};
2183
2188
  border-radius: 2px;
2184
2189
  box-shadow: 0 0 0 1px ${fe("neutral",300)};
2185
- `,Ui=oe`
2190
+ `,Xi=oe`
2186
2191
  tr {
2187
2192
  background-color: ${fe("neutral",200)};
2188
2193
  }
2189
- `,Xi=oe`
2194
+ `,Yi=oe`
2190
2195
  font-size: 16px;
2191
2196
  line-height: 24px;
2192
2197
  font-weight: 700;
2193
2198
  color: ${fe("neutral",800)};
2194
2199
  display: flex;
2195
2200
  align-items: center;
2196
- `,Yi=oe`
2201
+ `,Ki=oe`
2197
2202
  height: 24px;
2198
2203
  width: 10px;
2199
2204
  display: flex;
@@ -2216,21 +2221,21 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
2216
2221
  }
2217
2222
  }
2218
2223
  }
2219
- `,Ki=e=>oe`
2224
+ `,Ji=e=>oe`
2220
2225
  svg {
2221
2226
  path {
2222
2227
  fill: ${e?fe("primary",600):fe("neutral",400)} !important;
2223
2228
  }
2224
2229
  }
2225
- `,Ji=oe`
2230
+ `,Qi=oe`
2226
2231
  margin-top: 12px;
2227
2232
  display: flex;
2228
2233
  justify-content: space-between;
2229
- `,Qi=oe`
2234
+ `,eo=oe`
2230
2235
  margin-top: 9px;
2231
- `,eo=({columns:e,data:t,renderRow:n,striped:r,stickyHeader:i,pagination:o,selectable:a,selectedRows:l,onSortColumn:s,onPageSizeChange:c,onPageChange:d,onAllItemsSelected:u})=>{const[p,h]=W({key:"",order:""}),{totalItems:f=t.length,currentPage:g=1,pageSize:v=10,showItemCount:m,showItemCountText:x}=o||{},b=(e,t)=>{h({key:e,order:t}),s&&s({key:e,order:t})},y=l?.length===t?.length,C=l&&l.length>0&&!y;return H("div",{children:[H(P.Root,{css:Wi,striped:r,stickyHeader:i,interactive:!0,children:[B(P.Header,{css:Ui,children:H(P.Row,{children:[a?B(P.ColumnHeader,{children:B(Ot,{name:"header-checkbox",checked:y,indeterminate:C,onCheckedChange:({checked:e})=>{u&&u(e)}})}):null,e.map((e=>B(P.ColumnHeader,{role:e.sortable?"columnheader":void 0,"aria-sort":e.sortable&&"asc"===p.order?"ascending":e.sortable&&"desc"===p.order?"descending":void 0,children:H("div",{css:Xi,children:[e.label,e.sortable?H("div",{css:Yi,children:[B(nt,{css:Ki(p.key===e.key&&"asc"===p.order),icon:B(Ee,{style:{transform:"rotate(180deg)"}}),onClick:()=>b(e.key,"asc"),"aria-label":"Ascending"}),B(nt,{css:Ki(p.key===e.key&&"desc"===p.order),icon:B(Ee,{}),onClick:()=>b(e.key,"desc"),"aria-label":"Descending"})]}):null]})},e.key)))]})}),B(P.Body,{children:t.map((e=>B(q.Fragment,{children:n(e)},e.id)))})]}),H("div",{css:Ji,children:[B("div",{children:m?B(Pi,{pageSize:v,currentPage:g,totalItems:f,onPageSizeChange:c,showItemCountText:x}):null}),o?B("div",{css:Qi,children:B(Gi,{totalItems:f,pageSize:v,currentPage:g,onPageChange:d})}):null]})]})},to=P.Row,no=P.Cell,ro=oe`
2236
+ `,to=({columns:e,data:t,renderRow:n,striped:r,stickyHeader:i,pagination:o,selectable:a,selectedRows:l,onSortColumn:s,onPageSizeChange:c,onPageChange:d,onAllItemsSelected:u})=>{const[p,h]=W({key:"",order:""}),{totalItems:f=t.length,currentPage:g=1,pageSize:v=10,showItemCount:m,showItemCountText:x}=o||{},b=(e,t)=>{h({key:e,order:t}),s&&s({key:e,order:t})},y=l?.length===t?.length,C=l&&l.length>0&&!y;return H("div",{children:[H(P.Root,{css:Ui,striped:r,stickyHeader:i,interactive:!0,children:[B(P.Header,{css:Xi,children:H(P.Row,{children:[a?B(P.ColumnHeader,{children:B(_t,{name:"header-checkbox",checked:y,indeterminate:C,onCheckedChange:({checked:e})=>{u&&u(e)}})}):null,e.map((e=>B(P.ColumnHeader,{role:e.sortable?"columnheader":void 0,"aria-sort":e.sortable&&"asc"===p.order?"ascending":e.sortable&&"desc"===p.order?"descending":void 0,children:H("div",{css:Yi,children:[e.label,e.sortable?H("div",{css:Ki,children:[B(nt,{css:Ji(p.key===e.key&&"asc"===p.order),icon:B(Ee,{style:{transform:"rotate(180deg)"}}),onClick:()=>b(e.key,"asc"),"aria-label":"Ascending"}),B(nt,{css:Ji(p.key===e.key&&"desc"===p.order),icon:B(Ee,{}),onClick:()=>b(e.key,"desc"),"aria-label":"Descending"})]}):null]})},e.key)))]})}),B(P.Body,{children:t.map((e=>B(q.Fragment,{children:n(e)},e.id)))})]}),H("div",{css:Qi,children:[B("div",{children:m?B(Di,{pageSize:v,currentPage:g,totalItems:f,onPageSizeChange:c,showItemCountText:x}):null}),o?B("div",{css:eo,children:B(Wi,{totalItems:f,pageSize:v,currentPage:g,onPageChange:d})}):null]})]})},no=P.Row,ro=P.Cell,io=oe`
2232
2237
  border: 1px solid ${fe("neutral",300)};
2233
- `,io=oe`
2238
+ `,oo=oe`
2234
2239
  padding: 16px;
2235
2240
  cursor: pointer;
2236
2241
  &:focus-visible {
@@ -2245,7 +2250,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
2245
2250
  transparent
2246
2251
  );
2247
2252
  }
2248
- `,oo=({children:e,header:t,footer:n})=>B(r,{css:ro,children:B(S.Root,{multiple:!0,children:H(S.Item,{value:"extendable-card-item",children:[H(S.ItemTrigger,{css:io,alignItems:"center",children:[B(_,{gap:3,flex:"1",overflow:"hidden",alignItems:"center",children:t}),B(S.ItemIndicator,{children:B(Ee,{color:"var(--chakra-colors-neutral-700)",height:"16px",width:"16px"})})]}),H(S.ItemContent,{children:[e,n]})]})})});function ao(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function lo(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var so,co={exports:{}},uo={},po={exports:{}},ho={exports:{}},fo={};var go,vo,mo,xo,bo,yo,Co,wo,$o,ko,So,Eo,Oo,_o={};
2253
+ `,ao=({children:e,header:t,footer:n})=>B(r,{css:io,children:B(S.Root,{multiple:!0,children:H(S.Item,{value:"extendable-card-item",children:[H(S.ItemTrigger,{css:oo,alignItems:"center",children:[B(_,{gap:3,flex:"1",overflow:"hidden",alignItems:"center",children:t}),B(S.ItemIndicator,{children:B(Ee,{color:"var(--chakra-colors-neutral-700)",height:"16px",width:"16px"})})]}),H(S.ItemContent,{children:[e,n]})]})})});function lo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function so(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var co,uo={exports:{}},po={},ho={exports:{}},fo={exports:{}},go={};var vo,mo,xo,bo,yo,Co,wo,$o,ko,So,Eo,Oo,_o,Lo={};
2249
2254
  /** @license React v16.13.1
2250
2255
  * react-is.development.js
2251
2256
  *
@@ -2253,7 +2258,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
2253
2258
  *
2254
2259
  * This source code is licensed under the MIT license found in the
2255
2260
  * LICENSE file in the root directory of this source tree.
2256
- */function Lo(){return vo||(vo=1,"production"===process.env.NODE_ENV?ho.exports=function(){if(so)return fo;so=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case s:case c:case r:case o:case i:case u:return e;default:switch(e=e&&e.$$typeof){case l:case d:case f:case h:case a:return e;default:return p}}case n:return p}}}function y(e){return b(e)===c}return fo.AsyncMode=s,fo.ConcurrentMode=c,fo.ContextConsumer=l,fo.ContextProvider=a,fo.Element=t,fo.ForwardRef=d,fo.Fragment=r,fo.Lazy=f,fo.Memo=h,fo.Portal=n,fo.Profiler=o,fo.StrictMode=i,fo.Suspense=u,fo.isAsyncMode=function(e){return y(e)||b(e)===s},fo.isConcurrentMode=y,fo.isContextConsumer=function(e){return b(e)===l},fo.isContextProvider=function(e){return b(e)===a},fo.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},fo.isForwardRef=function(e){return b(e)===d},fo.isFragment=function(e){return b(e)===r},fo.isLazy=function(e){return b(e)===f},fo.isMemo=function(e){return b(e)===h},fo.isPortal=function(e){return b(e)===n},fo.isProfiler=function(e){return b(e)===o},fo.isStrictMode=function(e){return b(e)===i},fo.isSuspense=function(e){return b(e)===u},fo.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===o||e===i||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===a||e.$$typeof===l||e.$$typeof===d||e.$$typeof===v||e.$$typeof===m||e.$$typeof===x||e.$$typeof===g)},fo.typeOf=b,fo}():ho.exports=(go||(go=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var g=e.type;switch(g){case s:case c:case r:case o:case i:case u:return g;default:var v=g&&g.$$typeof;switch(v){case l:case d:case f:case h:case a:return v;default:return p}}case n:return p}}}var y=s,C=c,w=l,$=a,k=t,S=d,E=r,O=f,_=h,L=n,T=o,R=i,P=u,D=!1;function M(e){return b(e)===c}_o.AsyncMode=y,_o.ConcurrentMode=C,_o.ContextConsumer=w,_o.ContextProvider=$,_o.Element=k,_o.ForwardRef=S,_o.Fragment=E,_o.Lazy=O,_o.Memo=_,_o.Portal=L,_o.Profiler=T,_o.StrictMode=R,_o.Suspense=P,_o.isAsyncMode=function(e){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),M(e)||b(e)===s},_o.isConcurrentMode=M,_o.isContextConsumer=function(e){return b(e)===l},_o.isContextProvider=function(e){return b(e)===a},_o.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},_o.isForwardRef=function(e){return b(e)===d},_o.isFragment=function(e){return b(e)===r},_o.isLazy=function(e){return b(e)===f},_o.isMemo=function(e){return b(e)===h},_o.isPortal=function(e){return b(e)===n},_o.isProfiler=function(e){return b(e)===o},_o.isStrictMode=function(e){return b(e)===i},_o.isSuspense=function(e){return b(e)===u},_o.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===o||e===i||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===a||e.$$typeof===l||e.$$typeof===d||e.$$typeof===v||e.$$typeof===m||e.$$typeof===x||e.$$typeof===g)},_o.typeOf=b}()),_o)),ho.exports}function To(){if(xo)return mo;xo=1;return mo="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Ro(){return yo?bo:(yo=1,bo=Function.call.bind(Object.prototype.hasOwnProperty))}function Po(){if(ko)return $o;ko=1;var e=Lo(),t=ce,n=To(),r=Ro(),i=function(){if(wo)return Co;wo=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=To(),n={},r=Ro();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function i(i,o,a,l,s){if("production"!==process.env.NODE_ENV)for(var c in i)if(r(i,c)){var d;try{if("function"!=typeof i[c]){var u=Error((l||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}d=i[c](o,c,l,a,null,t)}catch(e){d=e}if(!d||d instanceof Error||e((l||"React class")+": type specification of "+a+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var p=s?s():"";e("Failed "+a+" type: "+d.message+(null!=p?p:""))}}}return i.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},Co=i}(),o=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(o=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),$o=function(l,s){var c="function"==typeof Symbol&&Symbol.iterator;var d="<<anonymous>>",u={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:f(a),arrayOf:function(e){return f((function(t,r,i,o,a){if("function"!=typeof e)return new h("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var l=t[r];if(!Array.isArray(l))return new h("Invalid "+o+" `"+a+"` of type `"+x(l)+"` supplied to `"+i+"`, expected an array.");for(var s=0;s<l.length;s++){var c=e(l,s,i,o,a+"["+s+"]",n);if(c instanceof Error)return c}return null}))},element:f((function(e,t,n,r,i){var o=e[t];return l(o)?null:new h("Invalid "+r+" `"+i+"` of type `"+x(o)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:f((function(t,n,r,i,o){var a=t[n];return e.isValidElementType(a)?null:new h("Invalid "+i+" `"+o+"` of type `"+x(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return f((function(t,n,r,i,o){if(!(t[n]instanceof e)){var a=e.name||d;return new h("Invalid "+i+" `"+o+"` of type `"+(((l=t[n]).constructor&&l.constructor.name?l.constructor.name:d)+"` supplied to `")+r+"`, expected instance of `"+a+"`.")}var l;return null}))},node:f((function(e,t,n,r,i){return m(e[t])?null:new h("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return f((function(t,i,o,a,l){if("function"!=typeof e)return new h("Property `"+l+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var s=t[i],c=x(s);if("object"!==c)return new h("Invalid "+a+" `"+l+"` of type `"+c+"` supplied to `"+o+"`, expected an object.");for(var d in s)if(r(s,d)){var u=e(s,d,o,a,l+"."+d,n);if(u instanceof Error)return u}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&o(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a;return f((function(t,n,r,i,o){for(var a=t[n],l=0;l<e.length;l++)if(p(a,e[l]))return null;var s=JSON.stringify(e,(function(e,t){return"symbol"===b(t)?String(t):t}));return new h("Invalid "+i+" `"+o+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+s+".")}))},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var i=e[t];if("function"!=typeof i)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+y(i)+" at index "+t+"."),a}return f((function(t,i,o,a,l){for(var s=[],c=0;c<e.length;c++){var d=(0,e[c])(t,i,o,a,l,n);if(null==d)return null;d.data&&r(d.data,"expectedType")&&s.push(d.data.expectedType)}return new h("Invalid "+a+" `"+l+"` supplied to `"+o+"`"+(s.length>0?", expected one of type ["+s.join(", ")+"]":"")+".")}))},shape:function(e){return f((function(t,r,i,o,a){var l=t[r],s=x(l);if("object"!==s)return new h("Invalid "+o+" `"+a+"` of type `"+s+"` supplied to `"+i+"`, expected `object`.");for(var c in e){var d=e[c];if("function"!=typeof d)return v(i,o,a,c,b(d));var u=d(l,c,i,o,a+"."+c,n);if(u)return u}return null}))},exact:function(e){return f((function(i,o,a,l,s){var c=i[o],d=x(c);if("object"!==d)return new h("Invalid "+l+" `"+s+"` of type `"+d+"` supplied to `"+a+"`, expected `object`.");var u=t({},i[o],e);for(var p in u){var f=e[p];if(r(e,p)&&"function"!=typeof f)return v(a,l,s,p,b(f));if(!f)return new h("Invalid "+l+" `"+s+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(i[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var g=f(c,p,a,l,s+"."+p,n);if(g)return g}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function f(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function i(i,a,l,c,u,p,f){if(c=c||d,p=p||l,f!==n){if(s){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=c+":"+l;!t[v]&&r<3&&(o("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[v]=!0,r++)}}return null==a[l]?i?null===a[l]?new h("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new h("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,l,c,u,p)}var a=i.bind(null,!1);return a.isRequired=i.bind(null,!0),a}function g(e){return f((function(t,n,r,i,o,a){var l=t[n];return x(l)!==e?new h("Invalid "+i+" `"+o+"` of type `"+b(l)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function v(e,t,n,r,i){return new h((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function m(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(m);if(null===e||l(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!m(n.value))return!1}else for(;!(n=r.next()).done;){var i=n.value;if(i&&!m(i[1]))return!1}return!0;default:return!1}}function x(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function b(e){if(null==e)return""+e;var t=x(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function y(e){var t=b(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,u.checkPropTypes=i,u.resetWarningCache=i.resetWarningCache,u.PropTypes=u,u},$o}function Do(){if(Oo)return po.exports;if(Oo=1,"production"!==process.env.NODE_ENV){var e=Lo();po.exports=Po()(e.isElement,!0)}else po.exports=function(){if(Eo)return So;Eo=1;var e=To();function t(){}function n(){}return n.resetWarningCache=t,So=function(){function r(t,n,r,i,o,a){if(a!==e){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}}()();return po.exports}function Mo(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Mo(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function No(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Mo(e))&&(r&&(r+=" "),r+=t);return r}var jo,Vo=lo(Object.freeze({__proto__:null,clsx:No,default:No})),Io={},zo={};function Ao(){if(jo)return zo;return jo=1,Object.defineProperty(zo,"__esModule",{value:!0}),zo.dontSetMe=function(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))},zo.findInArray=function(e,t){for(let n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]},zo.int=function(e){return parseInt(e,10)},zo.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},zo.isNum=function(e){return"number"==typeof e&&!isNaN(e)},zo}var Ho,Bo,Fo={};function Zo(){if(Bo)return Io;Bo=1,Object.defineProperty(Io,"__esModule",{value:!0}),Io.addClassName=a,Io.addEvent=function(e,t,n,r){if(!e)return;const i={capture:!0,...r};e.addEventListener?e.addEventListener(t,n,i):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},Io.addUserSelectStyles=function(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t));e.body&&a(e.body,"react-draggable-transparent-selection")},Io.createCSSTransform=function(e,n){const r=o(e,n,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:r}},Io.createSVGTransform=function(e,t){return o(e,t,"")},Io.getTouch=function(t,n){return t.targetTouches&&(0,e.findInArray)(t.targetTouches,(e=>n===e.identifier))||t.changedTouches&&(0,e.findInArray)(t.changedTouches,(e=>n===e.identifier))},Io.getTouchIdentifier=function(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier},Io.getTranslation=o,Io.innerHeight=function(t){let n=t.clientHeight;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n-=(0,e.int)(r.paddingTop),n-=(0,e.int)(r.paddingBottom),n},Io.innerWidth=function(t){let n=t.clientWidth;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n-=(0,e.int)(r.paddingLeft),n-=(0,e.int)(r.paddingRight),n},Io.matchesSelector=i,Io.matchesSelectorAndParentsTo=function(e,t,n){let r=e;do{if(i(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},Io.offsetXYFromParent=function(e,t,n){const r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),i=(e.clientX+t.scrollLeft-r.left)/n,o=(e.clientY+t.scrollTop-r.top)/n;return{x:i,y:o}},Io.outerHeight=function(t){let n=t.clientHeight;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n+=(0,e.int)(r.borderTopWidth),n+=(0,e.int)(r.borderBottomWidth),n},Io.outerWidth=function(t){let n=t.clientWidth;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n+=(0,e.int)(r.borderLeftWidth),n+=(0,e.int)(r.borderRightWidth),n},Io.removeClassName=l,Io.removeEvent=function(e,t,n,r){if(!e)return;const i={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},Io.removeUserSelectStyles=function(e){if(!e)return;try{if(e.body&&l(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}};var e=Ao(),t=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=o?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(i,a,l):i[a]=e[a]}i.default=e,r&&r.set(e,i);return i}(function(){if(Ho)return Fo;Ho=1,Object.defineProperty(Fo,"__esModule",{value:!0}),Fo.browserPrefixToKey=n,Fo.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},Fo.default=void 0,Fo.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){var t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const i=null===(t=window.document)||void 0===t||null===(t=t.documentElement)||void 0===t?void 0:t.style;if(!i)return"";if(r in i)return"";for(let t=0;t<e.length;t++)if(n(r,e[t])in i)return e[t];return""}function n(e,t){return t?"".concat(t).concat(function(e){let t="",n=!0;for(let r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e)):e}return Fo.default=t(),Fo}());function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}let r="";function i(t,n){return r||(r=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(n){return(0,e.isFunction)(t[n])}))),!!(0,e.isFunction)(t[r])&&t[r](n)}function o(e,t,n){let{x:r,y:i}=e,o="translate(".concat(r).concat(n,",").concat(i).concat(n,")");if(t){const e="".concat("string"==typeof t.x?t.x:t.x+n),r="".concat("string"==typeof t.y?t.y:t.y+n);o="translate(".concat(e,", ").concat(r,")")+o}return o}function a(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function l(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}return Io}var qo,Go={};function Wo(){if(qo)return Go;qo=1,Object.defineProperty(Go,"__esModule",{value:!0}),Go.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},Go.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},Go.createCoreData=function(t,r,i){const o=!(0,e.isNum)(t.lastX),a=n(t);return o?{node:a,deltaX:0,deltaY:0,lastX:r,lastY:i,x:r,y:i}:{node:a,deltaX:r-t.lastX,deltaY:i-t.lastY,lastX:t.lastX,lastY:t.lastY,x:r,y:i}},Go.createDraggableData=function(e,t){const n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}},Go.getBoundPosition=function(r,i,o){if(!r.props.bounds)return[i,o];let{bounds:a}=r.props;a="string"==typeof a?a:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(a);const l=n(r);if("string"==typeof a){const{ownerDocument:n}=l,r=n.defaultView;let i;if(i="parent"===a?l.parentNode:n.querySelector(a),!(i instanceof r.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');const o=i,s=r.getComputedStyle(l),c=r.getComputedStyle(o);a={left:-l.offsetLeft+(0,e.int)(c.paddingLeft)+(0,e.int)(s.marginLeft),top:-l.offsetTop+(0,e.int)(c.paddingTop)+(0,e.int)(s.marginTop),right:(0,t.innerWidth)(o)-(0,t.outerWidth)(l)-l.offsetLeft+(0,e.int)(c.paddingRight)-(0,e.int)(s.marginRight),bottom:(0,t.innerHeight)(o)-(0,t.outerHeight)(l)-l.offsetTop+(0,e.int)(c.paddingBottom)-(0,e.int)(s.marginBottom)}}(0,e.isNum)(a.right)&&(i=Math.min(i,a.right));(0,e.isNum)(a.bottom)&&(o=Math.min(o,a.bottom));(0,e.isNum)(a.left)&&(i=Math.max(i,a.left));(0,e.isNum)(a.top)&&(o=Math.max(o,a.top));return[i,o]},Go.getControlPosition=function(e,r,i){const o="number"==typeof r?(0,t.getTouch)(e,r):null;if("number"==typeof r&&!o)return null;const a=n(i),l=i.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,t.offsetXYFromParent)(o||e,l,i.props.scale)},Go.snapToGrid=function(e,t,n){const r=Math.round(t/e[0])*e[0],i=Math.round(n/e[1])*e[1];return[r,i]};var e=Ao(),t=Zo();function n(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}return Go}var Uo,Xo,Yo,Ko,Jo={},Qo={};function ea(){if(Uo)return Qo;return Uo=1,Object.defineProperty(Qo,"__esModule",{value:!0}),Qo.default=function(){},Qo}function ta(){if(Xo)return Jo;Xo=1,Object.defineProperty(Jo,"__esModule",{value:!0}),Jo.default=void 0;var e=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(q),t=l(Do()),n=l(de),r=Zo(),i=Wo(),o=Ao(),a=l(ea());function l(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d={start:"touchstart",move:"touchmove",stop:"touchend"},u={start:"mousedown",move:"mousemove",stop:"mouseup"};let p=u,h=class extends e.Component{constructor(){super(...arguments),c(this,"dragging",!1),c(this,"lastX",NaN),c(this,"lastY",NaN),c(this,"touchIdentifier",null),c(this,"mounted",!1),c(this,"handleDragStart",(e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!(0,r.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,r.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;"touchstart"===e.type&&e.preventDefault();const o=(0,r.getTouchIdentifier)(e);this.touchIdentifier=o;const l=(0,i.getControlPosition)(e,o,this);if(null==l)return;const{x:s,y:c}=l,d=(0,i.createCoreData)(this,s,c);(0,a.default)("DraggableCore: handleDragStart: %j",d),(0,a.default)("calling",this.props.onStart);!1!==this.props.onStart(e,d)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,r.addUserSelectStyles)(n),this.dragging=!0,this.lastX=s,this.lastY=c,(0,r.addEvent)(n,p.move,this.handleDrag),(0,r.addEvent)(n,p.stop,this.handleDragStop))})),c(this,"handleDrag",(e=>{const t=(0,i.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=r-this.lastY;if([e,t]=(0,i.snapToGrid)(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}const o=(0,i.createCoreData)(this,n,r);(0,a.default)("DraggableCore: handleDrag: %j",o);if(!1!==this.props.onDrag(e,o)&&!1!==this.mounted)this.lastX=n,this.lastY=r;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch(e){const t=document.createEvent("MouseEvents");t.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(t)}})),c(this,"handleDragStop",(e=>{if(!this.dragging)return;const t=(0,i.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:o}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=o-this.lastY||0;[e,t]=(0,i.snapToGrid)(this.props.grid,e,t),n=this.lastX+e,o=this.lastY+t}const l=(0,i.createCoreData)(this,n,o);if(!1===this.props.onStop(e,l)||!1===this.mounted)return!1;const s=this.findDOMNode();s&&this.props.enableUserSelectHack&&(0,r.removeUserSelectStyles)(s.ownerDocument),(0,a.default)("DraggableCore: handleDragStop: %j",l),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&((0,a.default)("DraggableCore: Removing handlers"),(0,r.removeEvent)(s.ownerDocument,p.move,this.handleDrag),(0,r.removeEvent)(s.ownerDocument,p.stop,this.handleDragStop))})),c(this,"onMouseDown",(e=>(p=u,this.handleDragStart(e)))),c(this,"onMouseUp",(e=>(p=u,this.handleDragStop(e)))),c(this,"onTouchStart",(e=>(p=d,this.handleDragStart(e)))),c(this,"onTouchEnd",(e=>(p=d,this.handleDragStop(e))))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,r.addEvent)(e,d.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,r.removeEvent)(t,u.move,this.handleDrag),(0,r.removeEvent)(t,d.move,this.handleDrag),(0,r.removeEvent)(t,u.stop,this.handleDragStop),(0,r.removeEvent)(t,d.stop,this.handleDragStop),(0,r.removeEvent)(e,d.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,r.removeUserSelectStyles)(t)}}findDOMNode(){var e,t;return null!==(e=this.props)&&void 0!==e&&e.nodeRef?null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current:n.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return Jo.default=h,c(h,"displayName","DraggableCore"),c(h,"propTypes",{allowAnyClick:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:o.dontSetMe,style:o.dontSetMe,transform:o.dontSetMe}),c(h,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),Jo}function na(){return Yo||(Yo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return s.default}}),e.default=void 0;var t=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(q),n=d(Do()),r=d(de),i=d(Vo),o=Zo(),a=Wo(),l=Ao(),s=d(ta()),c=d(ea());function d(e){return e&&e.__esModule?e:{default:e}}function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class f extends t.Component{static getDerivedStateFromProps(e,t){let{position:n}=e,{prevPropsPosition:r}=t;return!n||r&&n.x===r.x&&n.y===r.y?null:((0,c.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:{...n}})}constructor(e){super(e),h(this,"onDragStart",((e,t)=>{(0,c.default)("Draggable: onDragStart: %j",t);if(!1===this.props.onStart(e,(0,a.createDraggableData)(this,t)))return!1;this.setState({dragging:!0,dragged:!0})})),h(this,"onDrag",((e,t)=>{if(!this.state.dragging)return!1;(0,c.default)("Draggable: onDrag: %j",t);const n=(0,a.createDraggableData)(this,t),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){const{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;const[i,o]=(0,a.getBoundPosition)(this,r.x,r.y);r.x=i,r.y=o,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y}if(!1===this.props.onDrag(e,n))return!1;this.setState(r)})),h(this,"onDragStop",((e,t)=>{if(!this.state.dragging)return!1;if(!1===this.props.onStop(e,(0,a.createDraggableData)(this,t)))return!1;(0,c.default)("Draggable: onDragStop: %j",t);const n={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)})),this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var e,t;return null!==(e=null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current)&&void 0!==e?e:r.default.findDOMNode(this)}render(){const{axis:e,bounds:n,children:r,defaultPosition:l,defaultClassName:c,defaultClassNameDragging:d,defaultClassNameDragged:u,position:h,positionOffset:f,scale:g,...v}=this.props;let m={},x=null;const b=!Boolean(h)||this.state.dragging,y=h||l,C={x:(0,a.canDragX)(this)&&b?this.state.x:y.x,y:(0,a.canDragY)(this)&&b?this.state.y:y.y};this.state.isElementSVG?x=(0,o.createSVGTransform)(C,f):m=(0,o.createCSSTransform)(C,f);const w=(0,i.default)(r.props.className||"",c,{[d]:this.state.dragging,[u]:this.state.dragged});return t.createElement(s.default,p({},v,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(r),{className:w,style:{...r.props.style,...m},transform:x}))}}e.default=f,h(f,"displayName","Draggable"),h(f,"propTypes",{...s.default.propTypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),h(f,"defaultProps",{...s.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(uo)),uo}var ra=function(){if(Ko)return co.exports;Ko=1;const{default:e,DraggableCore:t}=na();return co.exports=e,co.exports.default=e,co.exports.DraggableCore=t,co.exports}(),ia=ao(ra);const oa=e=>oe`
2261
+ */function To(){return mo||(mo=1,"production"===process.env.NODE_ENV?fo.exports=function(){if(co)return go;co=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case s:case c:case r:case o:case i:case u:return e;default:switch(e=e&&e.$$typeof){case l:case d:case f:case h:case a:return e;default:return p}}case n:return p}}}function y(e){return b(e)===c}return go.AsyncMode=s,go.ConcurrentMode=c,go.ContextConsumer=l,go.ContextProvider=a,go.Element=t,go.ForwardRef=d,go.Fragment=r,go.Lazy=f,go.Memo=h,go.Portal=n,go.Profiler=o,go.StrictMode=i,go.Suspense=u,go.isAsyncMode=function(e){return y(e)||b(e)===s},go.isConcurrentMode=y,go.isContextConsumer=function(e){return b(e)===l},go.isContextProvider=function(e){return b(e)===a},go.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},go.isForwardRef=function(e){return b(e)===d},go.isFragment=function(e){return b(e)===r},go.isLazy=function(e){return b(e)===f},go.isMemo=function(e){return b(e)===h},go.isPortal=function(e){return b(e)===n},go.isProfiler=function(e){return b(e)===o},go.isStrictMode=function(e){return b(e)===i},go.isSuspense=function(e){return b(e)===u},go.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===o||e===i||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===a||e.$$typeof===l||e.$$typeof===d||e.$$typeof===v||e.$$typeof===m||e.$$typeof===x||e.$$typeof===g)},go.typeOf=b,go}():fo.exports=(vo||(vo=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var g=e.type;switch(g){case s:case c:case r:case o:case i:case u:return g;default:var v=g&&g.$$typeof;switch(v){case l:case d:case f:case h:case a:return v;default:return p}}case n:return p}}}var y=s,C=c,w=l,$=a,k=t,S=d,E=r,O=f,_=h,L=n,T=o,R=i,P=u,D=!1;function M(e){return b(e)===c}Lo.AsyncMode=y,Lo.ConcurrentMode=C,Lo.ContextConsumer=w,Lo.ContextProvider=$,Lo.Element=k,Lo.ForwardRef=S,Lo.Fragment=E,Lo.Lazy=O,Lo.Memo=_,Lo.Portal=L,Lo.Profiler=T,Lo.StrictMode=R,Lo.Suspense=P,Lo.isAsyncMode=function(e){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),M(e)||b(e)===s},Lo.isConcurrentMode=M,Lo.isContextConsumer=function(e){return b(e)===l},Lo.isContextProvider=function(e){return b(e)===a},Lo.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Lo.isForwardRef=function(e){return b(e)===d},Lo.isFragment=function(e){return b(e)===r},Lo.isLazy=function(e){return b(e)===f},Lo.isMemo=function(e){return b(e)===h},Lo.isPortal=function(e){return b(e)===n},Lo.isProfiler=function(e){return b(e)===o},Lo.isStrictMode=function(e){return b(e)===i},Lo.isSuspense=function(e){return b(e)===u},Lo.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===o||e===i||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===a||e.$$typeof===l||e.$$typeof===d||e.$$typeof===v||e.$$typeof===m||e.$$typeof===x||e.$$typeof===g)},Lo.typeOf=b}()),Lo)),fo.exports}function Ro(){if(bo)return xo;bo=1;return xo="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Po(){return Co?yo:(Co=1,yo=Function.call.bind(Object.prototype.hasOwnProperty))}function Do(){if(So)return ko;So=1;var e=To(),t=ce,n=Ro(),r=Po(),i=function(){if($o)return wo;$o=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Ro(),n={},r=Po();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function i(i,o,a,l,s){if("production"!==process.env.NODE_ENV)for(var c in i)if(r(i,c)){var d;try{if("function"!=typeof i[c]){var u=Error((l||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}d=i[c](o,c,l,a,null,t)}catch(e){d=e}if(!d||d instanceof Error||e((l||"React class")+": type specification of "+a+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var p=s?s():"";e("Failed "+a+" type: "+d.message+(null!=p?p:""))}}}return i.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},wo=i}(),o=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(o=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),ko=function(l,s){var c="function"==typeof Symbol&&Symbol.iterator;var d="<<anonymous>>",u={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:f(a),arrayOf:function(e){return f((function(t,r,i,o,a){if("function"!=typeof e)return new h("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var l=t[r];if(!Array.isArray(l))return new h("Invalid "+o+" `"+a+"` of type `"+x(l)+"` supplied to `"+i+"`, expected an array.");for(var s=0;s<l.length;s++){var c=e(l,s,i,o,a+"["+s+"]",n);if(c instanceof Error)return c}return null}))},element:f((function(e,t,n,r,i){var o=e[t];return l(o)?null:new h("Invalid "+r+" `"+i+"` of type `"+x(o)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:f((function(t,n,r,i,o){var a=t[n];return e.isValidElementType(a)?null:new h("Invalid "+i+" `"+o+"` of type `"+x(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return f((function(t,n,r,i,o){if(!(t[n]instanceof e)){var a=e.name||d;return new h("Invalid "+i+" `"+o+"` of type `"+(((l=t[n]).constructor&&l.constructor.name?l.constructor.name:d)+"` supplied to `")+r+"`, expected instance of `"+a+"`.")}var l;return null}))},node:f((function(e,t,n,r,i){return m(e[t])?null:new h("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return f((function(t,i,o,a,l){if("function"!=typeof e)return new h("Property `"+l+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var s=t[i],c=x(s);if("object"!==c)return new h("Invalid "+a+" `"+l+"` of type `"+c+"` supplied to `"+o+"`, expected an object.");for(var d in s)if(r(s,d)){var u=e(s,d,o,a,l+"."+d,n);if(u instanceof Error)return u}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&o(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a;return f((function(t,n,r,i,o){for(var a=t[n],l=0;l<e.length;l++)if(p(a,e[l]))return null;var s=JSON.stringify(e,(function(e,t){return"symbol"===b(t)?String(t):t}));return new h("Invalid "+i+" `"+o+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+s+".")}))},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var i=e[t];if("function"!=typeof i)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+y(i)+" at index "+t+"."),a}return f((function(t,i,o,a,l){for(var s=[],c=0;c<e.length;c++){var d=(0,e[c])(t,i,o,a,l,n);if(null==d)return null;d.data&&r(d.data,"expectedType")&&s.push(d.data.expectedType)}return new h("Invalid "+a+" `"+l+"` supplied to `"+o+"`"+(s.length>0?", expected one of type ["+s.join(", ")+"]":"")+".")}))},shape:function(e){return f((function(t,r,i,o,a){var l=t[r],s=x(l);if("object"!==s)return new h("Invalid "+o+" `"+a+"` of type `"+s+"` supplied to `"+i+"`, expected `object`.");for(var c in e){var d=e[c];if("function"!=typeof d)return v(i,o,a,c,b(d));var u=d(l,c,i,o,a+"."+c,n);if(u)return u}return null}))},exact:function(e){return f((function(i,o,a,l,s){var c=i[o],d=x(c);if("object"!==d)return new h("Invalid "+l+" `"+s+"` of type `"+d+"` supplied to `"+a+"`, expected `object`.");var u=t({},i[o],e);for(var p in u){var f=e[p];if(r(e,p)&&"function"!=typeof f)return v(a,l,s,p,b(f));if(!f)return new h("Invalid "+l+" `"+s+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(i[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var g=f(c,p,a,l,s+"."+p,n);if(g)return g}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function f(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function i(i,a,l,c,u,p,f){if(c=c||d,p=p||l,f!==n){if(s){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=c+":"+l;!t[v]&&r<3&&(o("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[v]=!0,r++)}}return null==a[l]?i?null===a[l]?new h("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new h("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,l,c,u,p)}var a=i.bind(null,!1);return a.isRequired=i.bind(null,!0),a}function g(e){return f((function(t,n,r,i,o,a){var l=t[n];return x(l)!==e?new h("Invalid "+i+" `"+o+"` of type `"+b(l)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function v(e,t,n,r,i){return new h((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function m(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(m);if(null===e||l(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!m(n.value))return!1}else for(;!(n=r.next()).done;){var i=n.value;if(i&&!m(i[1]))return!1}return!0;default:return!1}}function x(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function b(e){if(null==e)return""+e;var t=x(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function y(e){var t=b(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,u.checkPropTypes=i,u.resetWarningCache=i.resetWarningCache,u.PropTypes=u,u},ko}function Mo(){if(_o)return ho.exports;if(_o=1,"production"!==process.env.NODE_ENV){var e=To();ho.exports=Do()(e.isElement,!0)}else ho.exports=function(){if(Oo)return Eo;Oo=1;var e=Ro();function t(){}function n(){}return n.resetWarningCache=t,Eo=function(){function r(t,n,r,i,o,a){if(a!==e){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}}()();return ho.exports}function No(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=No(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function jo(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=No(e))&&(r&&(r+=" "),r+=t);return r}var Vo,Io=so(Object.freeze({__proto__:null,clsx:jo,default:jo})),zo={},Ao={};function Ho(){if(Vo)return Ao;return Vo=1,Object.defineProperty(Ao,"__esModule",{value:!0}),Ao.dontSetMe=function(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))},Ao.findInArray=function(e,t){for(let n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]},Ao.int=function(e){return parseInt(e,10)},Ao.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},Ao.isNum=function(e){return"number"==typeof e&&!isNaN(e)},Ao}var Bo,Fo,Zo={};function qo(){if(Fo)return zo;Fo=1,Object.defineProperty(zo,"__esModule",{value:!0}),zo.addClassName=a,zo.addEvent=function(e,t,n,r){if(!e)return;const i={capture:!0,...r};e.addEventListener?e.addEventListener(t,n,i):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},zo.addUserSelectStyles=function(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t));e.body&&a(e.body,"react-draggable-transparent-selection")},zo.createCSSTransform=function(e,n){const r=o(e,n,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:r}},zo.createSVGTransform=function(e,t){return o(e,t,"")},zo.getTouch=function(t,n){return t.targetTouches&&(0,e.findInArray)(t.targetTouches,(e=>n===e.identifier))||t.changedTouches&&(0,e.findInArray)(t.changedTouches,(e=>n===e.identifier))},zo.getTouchIdentifier=function(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier},zo.getTranslation=o,zo.innerHeight=function(t){let n=t.clientHeight;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n-=(0,e.int)(r.paddingTop),n-=(0,e.int)(r.paddingBottom),n},zo.innerWidth=function(t){let n=t.clientWidth;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n-=(0,e.int)(r.paddingLeft),n-=(0,e.int)(r.paddingRight),n},zo.matchesSelector=i,zo.matchesSelectorAndParentsTo=function(e,t,n){let r=e;do{if(i(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},zo.offsetXYFromParent=function(e,t,n){const r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),i=(e.clientX+t.scrollLeft-r.left)/n,o=(e.clientY+t.scrollTop-r.top)/n;return{x:i,y:o}},zo.outerHeight=function(t){let n=t.clientHeight;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n+=(0,e.int)(r.borderTopWidth),n+=(0,e.int)(r.borderBottomWidth),n},zo.outerWidth=function(t){let n=t.clientWidth;const r=t.ownerDocument.defaultView.getComputedStyle(t);return n+=(0,e.int)(r.borderLeftWidth),n+=(0,e.int)(r.borderRightWidth),n},zo.removeClassName=l,zo.removeEvent=function(e,t,n,r){if(!e)return;const i={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},zo.removeUserSelectStyles=function(e){if(!e)return;try{if(e.body&&l(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}};var e=Ho(),t=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=o?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(i,a,l):i[a]=e[a]}i.default=e,r&&r.set(e,i);return i}(function(){if(Bo)return Zo;Bo=1,Object.defineProperty(Zo,"__esModule",{value:!0}),Zo.browserPrefixToKey=n,Zo.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},Zo.default=void 0,Zo.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){var t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const i=null===(t=window.document)||void 0===t||null===(t=t.documentElement)||void 0===t?void 0:t.style;if(!i)return"";if(r in i)return"";for(let t=0;t<e.length;t++)if(n(r,e[t])in i)return e[t];return""}function n(e,t){return t?"".concat(t).concat(function(e){let t="",n=!0;for(let r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e)):e}return Zo.default=t(),Zo}());function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}let r="";function i(t,n){return r||(r=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(n){return(0,e.isFunction)(t[n])}))),!!(0,e.isFunction)(t[r])&&t[r](n)}function o(e,t,n){let{x:r,y:i}=e,o="translate(".concat(r).concat(n,",").concat(i).concat(n,")");if(t){const e="".concat("string"==typeof t.x?t.x:t.x+n),r="".concat("string"==typeof t.y?t.y:t.y+n);o="translate(".concat(e,", ").concat(r,")")+o}return o}function a(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function l(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}return zo}var Go,Wo={};function Uo(){if(Go)return Wo;Go=1,Object.defineProperty(Wo,"__esModule",{value:!0}),Wo.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},Wo.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},Wo.createCoreData=function(t,r,i){const o=!(0,e.isNum)(t.lastX),a=n(t);return o?{node:a,deltaX:0,deltaY:0,lastX:r,lastY:i,x:r,y:i}:{node:a,deltaX:r-t.lastX,deltaY:i-t.lastY,lastX:t.lastX,lastY:t.lastY,x:r,y:i}},Wo.createDraggableData=function(e,t){const n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}},Wo.getBoundPosition=function(r,i,o){if(!r.props.bounds)return[i,o];let{bounds:a}=r.props;a="string"==typeof a?a:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(a);const l=n(r);if("string"==typeof a){const{ownerDocument:n}=l,r=n.defaultView;let i;if(i="parent"===a?l.parentNode:n.querySelector(a),!(i instanceof r.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');const o=i,s=r.getComputedStyle(l),c=r.getComputedStyle(o);a={left:-l.offsetLeft+(0,e.int)(c.paddingLeft)+(0,e.int)(s.marginLeft),top:-l.offsetTop+(0,e.int)(c.paddingTop)+(0,e.int)(s.marginTop),right:(0,t.innerWidth)(o)-(0,t.outerWidth)(l)-l.offsetLeft+(0,e.int)(c.paddingRight)-(0,e.int)(s.marginRight),bottom:(0,t.innerHeight)(o)-(0,t.outerHeight)(l)-l.offsetTop+(0,e.int)(c.paddingBottom)-(0,e.int)(s.marginBottom)}}(0,e.isNum)(a.right)&&(i=Math.min(i,a.right));(0,e.isNum)(a.bottom)&&(o=Math.min(o,a.bottom));(0,e.isNum)(a.left)&&(i=Math.max(i,a.left));(0,e.isNum)(a.top)&&(o=Math.max(o,a.top));return[i,o]},Wo.getControlPosition=function(e,r,i){const o="number"==typeof r?(0,t.getTouch)(e,r):null;if("number"==typeof r&&!o)return null;const a=n(i),l=i.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,t.offsetXYFromParent)(o||e,l,i.props.scale)},Wo.snapToGrid=function(e,t,n){const r=Math.round(t/e[0])*e[0],i=Math.round(n/e[1])*e[1];return[r,i]};var e=Ho(),t=qo();function n(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}return Wo}var Xo,Yo,Ko,Jo,Qo={},ea={};function ta(){if(Xo)return ea;return Xo=1,Object.defineProperty(ea,"__esModule",{value:!0}),ea.default=function(){},ea}function na(){if(Yo)return Qo;Yo=1,Object.defineProperty(Qo,"__esModule",{value:!0}),Qo.default=void 0;var e=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(q),t=l(Mo()),n=l(de),r=qo(),i=Uo(),o=Ho(),a=l(ta());function l(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d={start:"touchstart",move:"touchmove",stop:"touchend"},u={start:"mousedown",move:"mousemove",stop:"mouseup"};let p=u,h=class extends e.Component{constructor(){super(...arguments),c(this,"dragging",!1),c(this,"lastX",NaN),c(this,"lastY",NaN),c(this,"touchIdentifier",null),c(this,"mounted",!1),c(this,"handleDragStart",(e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!(0,r.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,r.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;"touchstart"===e.type&&e.preventDefault();const o=(0,r.getTouchIdentifier)(e);this.touchIdentifier=o;const l=(0,i.getControlPosition)(e,o,this);if(null==l)return;const{x:s,y:c}=l,d=(0,i.createCoreData)(this,s,c);(0,a.default)("DraggableCore: handleDragStart: %j",d),(0,a.default)("calling",this.props.onStart);!1!==this.props.onStart(e,d)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,r.addUserSelectStyles)(n),this.dragging=!0,this.lastX=s,this.lastY=c,(0,r.addEvent)(n,p.move,this.handleDrag),(0,r.addEvent)(n,p.stop,this.handleDragStop))})),c(this,"handleDrag",(e=>{const t=(0,i.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=r-this.lastY;if([e,t]=(0,i.snapToGrid)(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}const o=(0,i.createCoreData)(this,n,r);(0,a.default)("DraggableCore: handleDrag: %j",o);if(!1!==this.props.onDrag(e,o)&&!1!==this.mounted)this.lastX=n,this.lastY=r;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch(e){const t=document.createEvent("MouseEvents");t.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(t)}})),c(this,"handleDragStop",(e=>{if(!this.dragging)return;const t=(0,i.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:o}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=o-this.lastY||0;[e,t]=(0,i.snapToGrid)(this.props.grid,e,t),n=this.lastX+e,o=this.lastY+t}const l=(0,i.createCoreData)(this,n,o);if(!1===this.props.onStop(e,l)||!1===this.mounted)return!1;const s=this.findDOMNode();s&&this.props.enableUserSelectHack&&(0,r.removeUserSelectStyles)(s.ownerDocument),(0,a.default)("DraggableCore: handleDragStop: %j",l),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&((0,a.default)("DraggableCore: Removing handlers"),(0,r.removeEvent)(s.ownerDocument,p.move,this.handleDrag),(0,r.removeEvent)(s.ownerDocument,p.stop,this.handleDragStop))})),c(this,"onMouseDown",(e=>(p=u,this.handleDragStart(e)))),c(this,"onMouseUp",(e=>(p=u,this.handleDragStop(e)))),c(this,"onTouchStart",(e=>(p=d,this.handleDragStart(e)))),c(this,"onTouchEnd",(e=>(p=d,this.handleDragStop(e))))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,r.addEvent)(e,d.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,r.removeEvent)(t,u.move,this.handleDrag),(0,r.removeEvent)(t,d.move,this.handleDrag),(0,r.removeEvent)(t,u.stop,this.handleDragStop),(0,r.removeEvent)(t,d.stop,this.handleDragStop),(0,r.removeEvent)(e,d.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,r.removeUserSelectStyles)(t)}}findDOMNode(){var e,t;return null!==(e=this.props)&&void 0!==e&&e.nodeRef?null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current:n.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return Qo.default=h,c(h,"displayName","DraggableCore"),c(h,"propTypes",{allowAnyClick:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:o.dontSetMe,style:o.dontSetMe,transform:o.dontSetMe}),c(h,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),Qo}function ra(){return Ko||(Ko=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return s.default}}),e.default=void 0;var t=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(q),n=d(Mo()),r=d(de),i=d(Io),o=qo(),a=Uo(),l=Ho(),s=d(na()),c=d(ta());function d(e){return e&&e.__esModule?e:{default:e}}function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class f extends t.Component{static getDerivedStateFromProps(e,t){let{position:n}=e,{prevPropsPosition:r}=t;return!n||r&&n.x===r.x&&n.y===r.y?null:((0,c.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:{...n}})}constructor(e){super(e),h(this,"onDragStart",((e,t)=>{(0,c.default)("Draggable: onDragStart: %j",t);if(!1===this.props.onStart(e,(0,a.createDraggableData)(this,t)))return!1;this.setState({dragging:!0,dragged:!0})})),h(this,"onDrag",((e,t)=>{if(!this.state.dragging)return!1;(0,c.default)("Draggable: onDrag: %j",t);const n=(0,a.createDraggableData)(this,t),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){const{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;const[i,o]=(0,a.getBoundPosition)(this,r.x,r.y);r.x=i,r.y=o,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y}if(!1===this.props.onDrag(e,n))return!1;this.setState(r)})),h(this,"onDragStop",((e,t)=>{if(!this.state.dragging)return!1;if(!1===this.props.onStop(e,(0,a.createDraggableData)(this,t)))return!1;(0,c.default)("Draggable: onDragStop: %j",t);const n={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)})),this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var e,t;return null!==(e=null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current)&&void 0!==e?e:r.default.findDOMNode(this)}render(){const{axis:e,bounds:n,children:r,defaultPosition:l,defaultClassName:c,defaultClassNameDragging:d,defaultClassNameDragged:u,position:h,positionOffset:f,scale:g,...v}=this.props;let m={},x=null;const b=!Boolean(h)||this.state.dragging,y=h||l,C={x:(0,a.canDragX)(this)&&b?this.state.x:y.x,y:(0,a.canDragY)(this)&&b?this.state.y:y.y};this.state.isElementSVG?x=(0,o.createSVGTransform)(C,f):m=(0,o.createCSSTransform)(C,f);const w=(0,i.default)(r.props.className||"",c,{[d]:this.state.dragging,[u]:this.state.dragged});return t.createElement(s.default,p({},v,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(r),{className:w,style:{...r.props.style,...m},transform:x}))}}e.default=f,h(f,"displayName","Draggable"),h(f,"propTypes",{...s.default.propTypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),h(f,"defaultProps",{...s.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(po)),po}var ia=function(){if(Jo)return uo.exports;Jo=1;const{default:e,DraggableCore:t}=ra();return uo.exports=e,uo.exports.default=e,uo.exports.DraggableCore=t,uo.exports}(),oa=lo(ia);const aa=e=>oe`
2257
2262
  width: 240px;
2258
2263
  ${"medium"===e&&"width: 320px;"}
2259
2264
  ${"large"===e&&"width: 440px;"}
@@ -2264,7 +2269,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
2264
2269
  border-radius: 4px;
2265
2270
  box-shadow: 0px 4px 6px -4px #0000001a;
2266
2271
  box-shadow: 0px 10px 15px -3px #0000001a;
2267
- `,aa=oe`
2272
+ `,la=oe`
2268
2273
  height: 100%;
2269
2274
  min-height: 40px;
2270
2275
  display: flex;
@@ -2272,31 +2277,31 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
2272
2277
  justify-content: space-between;
2273
2278
  padding: 8px;
2274
2279
  border-bottom: 1px solid ${fe("neutral",300)};
2275
- `,la=oe`
2276
- top: 10px;
2277
2280
  `,sa=oe`
2281
+ top: 10px;
2282
+ `,ca=oe`
2278
2283
  padding: 12px;
2279
- `,ca=({header:e,content:t,footer:n,size:r="medium",draggable:i,blocking:o,open:a,onClose:l})=>a?B(D.Root,{open:a,onOpenChange:l,placement:"center",scrollBehavior:"inside",closeOnInteractOutside:!i&&!o,preventScroll:!i&&!o,closeOnEscape:!o,defaultOpen:!0,children:H(s,{children:[i?null:B(D.Backdrop,{}),B(ia,{disabled:!i,children:B(D.Positioner,{children:H(D.Content,{css:oa(r),children:[H(D.Header,{css:aa,children:[e,o?null:B(D.CloseTrigger,{css:la,asChild:!0,children:B(rt,{})})]}),B(D.Body,{css:sa,children:t}),n?B(D.Footer,{padding:"12px",children:n}):null]})})})]})}):null,da=e=>oe`
2284
+ `,da=({header:e,content:t,footer:n,size:r="medium",draggable:i,blocking:o,open:a,onClose:l})=>a?B(D.Root,{open:a,onOpenChange:l,placement:"center",scrollBehavior:"inside",closeOnInteractOutside:!i&&!o,preventScroll:!i&&!o,closeOnEscape:!o,defaultOpen:!0,children:H(s,{children:[i?null:B(D.Backdrop,{}),B(oa,{disabled:!i,children:B(D.Positioner,{children:H(D.Content,{css:aa(r),children:[H(D.Header,{css:la,children:[e,o?null:B(D.CloseTrigger,{css:sa,asChild:!0,children:B(rt,{})})]}),B(D.Body,{css:ca,children:t}),n?B(D.Footer,{padding:"12px",children:n}):null]})})})]})}):null,ua=e=>oe`
2280
2285
  height: 100%;
2281
2286
  width: ${e||"320px"};
2282
2287
  background-color: ${fe("neutral",100)};
2283
2288
  box-shadow: 0px 1px 2px -1px #0000001a;
2284
2289
  box-shadow: 0px 1px 3px 0px #0000001a;
2285
2290
  position: relative;
2286
- `,ua=oe`
2287
- border-right: 1px solid ${fe("neutral",300)};
2288
2291
  `,pa=oe`
2292
+ border-right: 1px solid ${fe("neutral",300)};
2293
+ `,ha=oe`
2289
2294
  border: 1px solid ${fe("neutral",300)};
2290
2295
  border-radius: 4px;
2291
- `,ha=oe`
2296
+ `,fa=oe`
2292
2297
  min-height: 48px;
2293
2298
  width: 100%;
2294
2299
  border-bottom: 1px solid ${fe("neutral",300)};
2295
- `,fa=(e,t)=>oe`
2300
+ `,ga=(e,t)=>oe`
2296
2301
  height: ${((e,t)=>e&&t?`calc(100% - ${e+t}px)`:e?`calc(100% - ${e}px)`:t?`calc(100% - ${t}px)`:"100%")(e,t)};
2297
2302
  width: 100%;
2298
2303
  overflow-y: auto;
2299
- `,ga=oe`
2304
+ `,va=oe`
2300
2305
  min-height: 64px;
2301
2306
  width: 100%;
2302
2307
  display: flex;
@@ -2306,7 +2311,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
2306
2311
  bottom: 0;
2307
2312
  left: 0;
2308
2313
  border-top: 1px solid ${fe("neutral",300)};
2309
- `,va=({header:e,content:t,footer:n,variant:r="fixed",width:i})=>{const[o,a]=W(void 0),[l,s]=W(void 0),c=K(null),d=K(null);U((()=>{a(c?.current?.getBoundingClientRect()?.height),s(d?.current?.getBoundingClientRect()?.height)}),[e,n]);return H("div",{css:[da(i),"fixed"===r?ua:pa],children:[e?B("div",{css:ha,ref:c,children:e}):null,B("div",{css:fa(o,l),children:t}),n?B("div",{css:ga,ref:d,children:n}):null]})};var ma,xa;!function(){if(xa)return ma;xa=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=function(e,t){var n=arguments.length;t=new Array(n>1?n-1:0);for(var r=1;r<n;r++)t[r-1]=arguments[r];var i=0,o="Warning: "+e.replace(/%s/g,(function(){return t[i++]}));"undefined"!=typeof console&&console.error(o);try{throw new Error(o)}catch(e){}};e=function(e,n,r){var i=arguments.length;r=new Array(i>2?i-2:0);for(var o=2;o<i;o++)r[o-2]=arguments[o];if(void 0===n)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||t.apply(null,[n].concat(r))}}ma=e}();var ba=ya()?J:U;"production"!==process.env.NODE_ENV&&("undefined"!=typeof process?process:{env:{NODE_ENV:"development"}}).env;function ya(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;var Ca=function(e){var t,n=e.children,r=e.type,i=void 0===r?"reach-portal":r,o=K(null),a=K(null),l=(t=W(Object.create(null))[1],Q((function(){t(Object.create(null))}),[]));return ba((function(){if(o.current){var e=o.current.ownerDocument;return a.current=null==e?void 0:e.createElement(i),e.body.appendChild(a.current),l(),function(){a.current&&a.current.ownerDocument&&a.current.ownerDocument.body.removeChild(a.current)}}}),[i,l]),a.current?ue(n,a.current):ee("span",{ref:o})};"production"!==process.env.NODE_ENV&&(Ca.displayName="Portal");
2314
+ `,ma=({header:e,content:t,footer:n,variant:r="fixed",width:i})=>{const[o,a]=W(void 0),[l,s]=W(void 0),c=K(null),d=K(null);U((()=>{a(c?.current?.getBoundingClientRect()?.height),s(d?.current?.getBoundingClientRect()?.height)}),[e,n]);return H("div",{css:[ua(i),"fixed"===r?pa:ha],children:[e?B("div",{css:fa,ref:c,children:e}):null,B("div",{css:ga(o,l),children:t}),n?B("div",{css:va,ref:d,children:n}):null]})};var xa,ba;!function(){if(ba)return xa;ba=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=function(e,t){var n=arguments.length;t=new Array(n>1?n-1:0);for(var r=1;r<n;r++)t[r-1]=arguments[r];var i=0,o="Warning: "+e.replace(/%s/g,(function(){return t[i++]}));"undefined"!=typeof console&&console.error(o);try{throw new Error(o)}catch(e){}};e=function(e,n,r){var i=arguments.length;r=new Array(i>2?i-2:0);for(var o=2;o<i;o++)r[o-2]=arguments[o];if(void 0===n)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||t.apply(null,[n].concat(r))}}xa=e}();var ya=Ca()?J:U;"production"!==process.env.NODE_ENV&&("undefined"!=typeof process?process:{env:{NODE_ENV:"development"}}).env;function Ca(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;var wa=function(e){var t,n=e.children,r=e.type,i=void 0===r?"reach-portal":r,o=K(null),a=K(null),l=(t=W(Object.create(null))[1],Q((function(){t(Object.create(null))}),[]));return ya((function(){if(o.current){var e=o.current.ownerDocument;return a.current=null==e?void 0:e.createElement(i),e.body.appendChild(a.current),l(),function(){a.current&&a.current.ownerDocument&&a.current.ownerDocument.body.removeChild(a.current)}}}),[i,l]),a.current?ue(n,a.current):ee("span",{ref:o})};"production"!==process.env.NODE_ENV&&(wa.displayName="Portal");
2310
2315
  /*! *****************************************************************************
2311
2316
  Copyright (c) Microsoft Corporation.
2312
2317
 
@@ -2320,16 +2325,16 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
2320
2325
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
2321
2326
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2322
2327
  PERFORMANCE OF THIS SOFTWARE.
2323
- ***************************************************************************** */var wa,$a,ka=function(){return ka=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ka.apply(this,arguments)};function Sa(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function Ea(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Oa(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function _a(e,t,n){if(2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}!function(e){e.Start="xstate.start",e.Stop="xstate.stop",e.Raise="xstate.raise",e.Send="xstate.send",e.Cancel="xstate.cancel",e.NullEvent="",e.Assign="xstate.assign",e.After="xstate.after",e.DoneState="done.state",e.DoneInvoke="done.invoke",e.Log="xstate.log",e.Init="xstate.init",e.Invoke="xstate.invoke",e.ErrorExecution="error.execution",e.ErrorCommunication="error.communication",e.ErrorPlatform="error.platform",e.ErrorCustom="xstate.error",e.Update="xstate.update",e.Pure="xstate.pure",e.Choose="xstate.choose"}(wa||(wa={})),function(e){e.Parent="#_parent",e.Internal="#_internal"}($a||($a={}));var La=wa.Start,Ta=wa.Stop,Ra=wa.Raise,Pa=wa.Send,Da=wa.Cancel,Ma=wa.NullEvent,Na=wa.Assign;wa.After,wa.DoneState;var ja=wa.Log,Va=wa.Init,Ia=wa.Invoke;wa.ErrorExecution;var za,Aa=wa.ErrorPlatform,Ha=wa.ErrorCustom,Ba=wa.Update,Fa=wa.Choose,Za=wa.Pure,qa={},Ga="xstate.guard",Wa="production"===process.env.NODE_ENV;function Ua(e,t,n){void 0===n&&(n=".");var r=Ka(e,n),i=Ka(t,n);return hl(i)?!!hl(r)&&i===r:hl(r)?r in i:Object.keys(r).every((function(e){return e in i&&Ua(r[e],i[e])}))}function Xa(e){try{return hl(e)||"number"==typeof e?"".concat(e):e.type}catch(e){throw new Error("Events must be strings or objects with a string event.type property.")}}function Ya(e,t){try{return ul(e)?e:e.toString().split(t)}catch(t){throw new Error("'".concat(e,"' is not a valid state path."))}}function Ka(e,t){return"object"==typeof(n=e)&&"value"in n&&"context"in n&&"event"in n&&"_event"in n?e.value:ul(e)?Ja(e):"string"!=typeof e?e:Ja(Ya(e,t));var n}function Ja(e){if(1===e.length)return e[0];for(var t={},n=t,r=0;r<e.length-1;r++)r===e.length-2?n[e[r]]=e[r+1]:(n[e[r]]={},n=n[e[r]]);return t}function Qa(e,t){for(var n={},r=Object.keys(e),i=0;i<r.length;i++){var o=r[i];n[o]=t(e[o],o,e,i)}return n}function el(e,t,n){var r,i,o={};try{for(var a=Ea(Object.keys(e)),l=a.next();!l.done;l=a.next()){var s=l.value,c=e[s];n(c)&&(o[s]=t(c,s,e))}}catch(e){r={error:e}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}var tl=function(e){return function(t){var n,r,i=t;try{for(var o=Ea(e),a=o.next();!a.done;a=o.next()){i=i[a.value]}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}};function nl(e){return e?hl(e)?[[e]]:rl(Object.keys(e).map((function(t){var n=e[t];return"string"==typeof n||n&&Object.keys(n).length?nl(e[t]).map((function(e){return[t].concat(e)})):[[t]]}))):[[]]}function rl(e){var t;return(t=[]).concat.apply(t,_a([],Oa(e),!1))}function il(e){return ul(e)?e:[e]}function ol(e){return void 0===e?[]:il(e)}function al(e,t,n){var r,i;if(pl(e))return e(t,n.data);var o={};try{for(var a=Ea(Object.keys(e)),l=a.next();!l.done;l=a.next()){var s=l.value,c=e[s];pl(c)?o[s]=c(t,n.data):o[s]=c}}catch(e){r={error:e}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}function ll(e){return e instanceof Promise||!(null===e||!pl(e)&&"object"!=typeof e||!pl(e.then))}function sl(e,t){return Qa(e.states,(function(e,n){if(e){var r=(hl(t)?void 0:t[n])||(e?e.current:void 0);if(r)return{current:r,states:sl(e,r)}}}))}function cl(e,t,n,r){Wa||dl(!!e,"Attempting to update undefined context");var i=e?n.reduce((function(e,n){var i,o,a=n.assignment,l={state:r,action:n,_event:t},s={};if(pl(a))s=a(e,t.data,l);else try{for(var c=Ea(Object.keys(a)),d=c.next();!d.done;d=c.next()){var u=d.value,p=a[u];s[u]=pl(p)?p(e,t.data,l):p}}catch(e){i={error:e}}finally{try{d&&!d.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}return Object.assign({},e,s)}),e):e;return i}var dl=function(){};function ul(e){return Array.isArray(e)}function pl(e){return"function"==typeof e}function hl(e){return"string"==typeof e}function fl(e,t){if(e)return hl(e)?{type:Ga,name:e,predicate:t?t[e]:void 0}:pl(e)?{type:Ga,name:e.name,predicate:e}:e}Wa||(dl=function(e,t){var n=e instanceof Error?e:void 0;if((n||!e)&&void 0!==console){var r=["Warning: ".concat(t)];n&&r.push(n),console.warn.apply(console,r)}});var gl=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function vl(e){return!!e&&"__xstatenode"in e}function ml(e,t){return hl(e)||"number"==typeof e?ka({type:e},t):e}function xl(e,t){if(!hl(e)&&"$$type"in e&&"scxml"===e.$$type)return e;var n=ml(e);return ka({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function bl(e,t){return il(t).map((function(t){return void 0===t||"string"==typeof t||vl(t)?{target:t,event:e}:ka(ka({},t),{event:e})}))}function yl(e,t,n,r,i){var o=e.options.guards,a={state:i,cond:t,_event:r};if(t.type===Ga)return((null==o?void 0:o[t.name])||t.predicate)(n,r.data,a);var l=null==o?void 0:o[t.type];if(!l)throw new Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return l(n,r.data,a)}function Cl(e){return"string"==typeof e?{type:e}:e}function wl(e,t,n){var r=function(){},i="object"==typeof e,o=i?e:null;return{next:((i?e.next:e)||r).bind(o),error:((i?e.error:t)||r).bind(o),complete:((i?e.complete:n)||r).bind(o)}}function $l(e,t){return"".concat(e,":invocation[").concat(t,"]")}function kl(e){return(e.type===Ra||e.type===Pa&&e.to===$a.Internal)&&"number"!=typeof e.delay}(za={})[gl]=function(){return this},za[Symbol.observable]=function(){return this};var Sl=xl({type:Va});function El(e,t){return t&&t[e]||void 0}function Ol(e,t){var n;if(hl(e)||"number"==typeof e)n=pl(r=El(e,t))?{type:e,exec:r}:r||{type:e,exec:void 0};else if(pl(e))n={type:e.name||e.toString(),exec:e};else{var r;if(pl(r=El(e.type,t)))n=ka(ka({},e),{exec:r});else if(r){var i=r.type||e.type;n=ka(ka(ka({},r),e),{type:i})}else n=e}return n}var _l=function(e,t){return e?(ul(e)?e:[e]).map((function(e){return Ol(e,t)})):[]};function Ll(e){var t=Ol(e);return ka(ka({id:hl(e)?e:t.id},t),{type:t.type})}function Tl(e,t){var n="".concat(wa.DoneState,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function Rl(e,t){var n="".concat(wa.DoneInvoke,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function Pl(e,t){var n="".concat(wa.ErrorPlatform,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function Dl(e,t,n,r,i,o,a){void 0===a&&(a=!1);var l=a?[]:function(e){var t,n,r=[];try{for(var i=Ea(e),o=i.next();!o.done;o=i.next())for(var a=o.value,l=0;l<a.actions.length;)a.actions[l].type!==Na?l++:(r.push(a.actions[l]),a.actions.splice(l,1))}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}(i),s=l.length?cl(n,r,l,t):n,c=a?[n]:void 0,d=[];function u(i,l){var u;switch(l.type){case Ra:var p=function(e,t,n,r){var i,o={_event:n},a=xl(pl(e.event)?e.event(t,n.data,o):e.event);if(hl(e.delay)){var l=r&&r[e.delay];i=pl(l)?l(t,n.data,o):l}else i=pl(e.delay)?e.delay(t,n.data,o):e.delay;return ka(ka({},e),{type:Ra,_event:a,delay:i})}(l,s,r,e.options.delays);return o&&"number"==typeof p.delay&&o(p,s,r),p;case Pa:var h=function(e,t,n,r){var i,o={_event:n},a=xl(pl(e.event)?e.event(t,n.data,o):e.event);if(hl(e.delay)){var l=r&&r[e.delay];i=pl(l)?l(t,n.data,o):l}else i=pl(e.delay)?e.delay(t,n.data,o):e.delay;var s=pl(e.to)?e.to(t,n.data,o):e.to;return ka(ka({},e),{to:s,_event:a,event:a.data,delay:i})}(l,s,r,e.options.delays);if(!Wa){var f=l.delay;dl(!hl(f)||"number"==typeof h.delay,"No delay reference for delay expression '".concat(f,"' was found on machine '").concat(e.id,"'"))}return o&&h.to!==$a.Internal&&("entry"===i?d.push(h):o(h,s,r)),h;case ja:var g=function(e,t,n){return ka(ka({},e),{value:hl(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})}(l,s,r);return null==o||o(g,s,r),g;case Fa:if(!(b=null===(u=l.conds.find((function(n){var i=fl(n.cond,e.options.guards);return!i||yl(e,i,s,r,o?void 0:t)})))||void 0===u?void 0:u.actions))return[];var v=Oa(Dl(e,t,s,r,[{type:i,actions:_l(ol(b),e.options.actions)}],o,a),2),m=v[0],x=v[1];return s=x,null==c||c.push(s),m;case Za:var b;if(!(b=l.get(s,r.data)))return[];var y=Oa(Dl(e,t,s,r,[{type:i,actions:_l(ol(b),e.options.actions)}],o,a),2),C=y[0],w=y[1];return s=w,null==c||c.push(s),C;case Ta:g=function(e,t,n){var r=pl(e.activity)?e.activity(t,n.data):e.activity,i="string"==typeof r?{id:r}:r;return{type:wa.Stop,activity:i}}(l,s,r);return null==o||o(g,n,r),g;case Na:s=cl(s,r,[l],o?void 0:t),null==c||c.push(s);break;default:var $=Ol(l,e.options.actions),k=$.exec;if(o)o($,s,r);else if(k&&c){var S=c.length-1,E=ka(ka({},$),{exec:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];k.apply(void 0,_a([c[S]],Oa(t),!1))}});$=E}return $}}var p=rl(i.map((function(e){var t,n,i=[];try{for(var a=Ea(e.actions),l=a.next();!l.done;l=a.next()){var c=l.value,p=u(e.type,c);p&&(i=i.concat(p))}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return d.forEach((function(e){o(e,s,r)})),d.length=0,i})));return[p,s]}var Ml=function(e,t){return t(e)};function Nl(e){var t;return(t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}})[gl]=function(){return this},t}function jl(e,t,n){var r=Nl(t);if(r.deferred=!0,vl(e)){var i=r.state=Ml(void 0,(function(){return(n?e.withContext(n):e).initialState}));r.getSnapshot=function(){return i}}return r}var Vl=function(e){return"atomic"===e.type||"final"===e.type};function Il(e){return Object.keys(e.states).map((function(t){return e.states[t]}))}function zl(e){return Il(e).filter((function(e){return"history"!==e.type}))}function Al(e){var t=[e];return Vl(e)?t:t.concat(rl(zl(e).map(Al)))}function Hl(e,t){var n,r,i,o,a,l,s,c,d=Fl(new Set(e)),u=new Set(t);try{for(var p=Ea(u),h=p.next();!h.done;h=p.next())for(var f=($=h.value).parent;f&&!u.has(f);)u.add(f),f=f.parent}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}var g=Fl(u);try{for(var v=Ea(u),m=v.next();!m.done;m=v.next()){if("compound"!==($=m.value).type||g.get($)&&g.get($).length){if("parallel"===$.type)try{for(var x=(a=void 0,Ea(zl($))),b=x.next();!b.done;b=x.next()){var y=b.value;u.has(y)||(u.add(y),d.get(y)?d.get(y).forEach((function(e){return u.add(e)})):y.initialStateNodes.forEach((function(e){return u.add(e)})))}}catch(e){a={error:e}}finally{try{b&&!b.done&&(l=x.return)&&l.call(x)}finally{if(a)throw a.error}}}else d.get($)?d.get($).forEach((function(e){return u.add(e)})):$.initialStateNodes.forEach((function(e){return u.add(e)}))}}catch(e){i={error:e}}finally{try{m&&!m.done&&(o=v.return)&&o.call(v)}finally{if(i)throw i.error}}try{for(var C=Ea(u),w=C.next();!w.done;w=C.next()){var $;for(f=($=w.value).parent;f&&!u.has(f);)u.add(f),f=f.parent}}catch(e){s={error:e}}finally{try{w&&!w.done&&(c=C.return)&&c.call(C)}finally{if(s)throw s.error}}return u}function Bl(e,t){var n=t.get(e);if(!n)return{};if("compound"===e.type){var r=n[0];if(!r)return{};if(Vl(r))return r.key}var i={};return n.forEach((function(e){i[e.key]=Bl(e,t)})),i}function Fl(e){var t,n,r=new Map;try{for(var i=Ea(e),o=i.next();!o.done;o=i.next()){var a=o.value;r.has(a)||r.set(a,[]),a.parent&&(r.has(a.parent)||r.set(a.parent,[]),r.get(a.parent).push(a))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}function Zl(e,t){return Bl(e,Fl(Hl([e],t)))}function ql(e,t){return Array.isArray(e)?e.some((function(e){return e===t})):e instanceof Set&&e.has(t)}function Gl(e,t){return"compound"===t.type?zl(t).some((function(t){return"final"===t.type&&ql(e,t)})):"parallel"===t.type&&zl(t).every((function(t){return Gl(e,t)}))}function Wl(e){return new Set(rl(e.map((function(e){return e.tags}))))}function Ul(e,t){if(e===t)return!0;if(void 0===e||void 0===t)return!1;if(hl(e)||hl(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((function(n){return Ul(e[n],t[n])}))}var Xl=function(){function e(e){var t,n,r=this;this.actions=[],this.activities=qa,this.meta={},this.events=[],this.value=e.value,this.context=e.context,this._event=e._event,this._sessionid=e._sessionid,this.event=this._event.data,this.historyValue=e.historyValue,this.history=e.history,this.actions=e.actions||[],this.activities=e.activities||qa,this.meta=(void 0===(n=e.configuration)&&(n=[]),n.reduce((function(e,t){return void 0!==t.meta&&(e[t.id]=t.meta),e}),{})),this.events=e.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=e.configuration,this.transitions=e.transitions,this.children=e.children,this.done=!!e.done,this.tags=null!==(t=Array.isArray(e.tags)?new Set(e.tags):e.tags)&&void 0!==t?t:new Set,this.machine=e.machine,Object.defineProperty(this,"nextEvents",{get:function(){return function(e){return _a([],Oa(new Set(rl(_a([],Oa(e.map((function(e){return e.ownEvents}))),!1)))),!1)}(r.configuration)}})}return e.from=function(t,n){return t instanceof e?t.context!==n?new e({value:t.value,context:n,_event:t._event,_sessionid:null,historyValue:t.historyValue,history:t.history,actions:[],activities:t.activities,events:[],configuration:[],transitions:[],children:{}}):t:new e({value:t,context:n,_event:Sl,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,events:[],configuration:[],transitions:[],children:{}})},e.create=function(t){return new e(t)},e.inert=function(t,n){if(t instanceof e){if(!t.actions.length)return t;var r=Sl;return new e({value:t.value,context:n,_event:r,_sessionid:null,historyValue:t.historyValue,history:t.history,activities:t.activities,configuration:t.configuration,transitions:[],children:{}})}return e.from(t,n)},e.prototype.toStrings=function(e,t){var n=this;if(void 0===e&&(e=this.value),void 0===t&&(t="."),hl(e))return[e];var r=Object.keys(e);return r.concat.apply(r,_a([],Oa(r.map((function(r){return n.toStrings(e[r],t).map((function(e){return r+t+e}))}))),!1))},e.prototype.toJSON=function(){var e=this;e.configuration,e.transitions;var t=e.tags;e.machine;var n=Sa(e,["configuration","transitions","tags","machine"]);return ka(ka({},n),{tags:Array.from(t)})},e.prototype.matches=function(e){return Ua(e,this.value)},e.prototype.hasTag=function(e){return this.tags.has(e)},e.prototype.can=function(e){var t;Wa&&dl(!!this.machine,"state.can(...) used outside of a machine-created State object; this will always return false.");var n=null===(t=this.machine)||void 0===t?void 0:t.getTransitionData(this,e);return!!(null==n?void 0:n.transitions.length)&&n.transitions.some((function(e){return void 0!==e.target||e.actions.length}))},e}(),Yl={deferEvents:!1},Kl=function(){function e(e){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=ka(ka({},Yl),e)}return e.prototype.initialize=function(e){if(this.initialized=!0,e){if(!this.options.deferEvents)return void this.schedule(e);this.process(e)}this.flushEvents()},e.prototype.schedule=function(e){if(this.initialized&&!this.processingEvent){if(0!==this.queue.length)throw new Error("Event queue should be empty when it is not processing events");this.process(e),this.flushEvents()}else this.queue.push(e)},e.prototype.clear=function(){this.queue=[]},e.prototype.flushEvents=function(){for(var e=this.queue.shift();e;)this.process(e),e=this.queue.shift()},e.prototype.process=function(e){this.processingEvent=!0;try{e()}catch(e){throw this.clear(),e}finally{this.processingEvent=!1}},e}(),Jl=new Map,Ql=0,es=function(){return"x:".concat(Ql++)},ts=function(e,t){return Jl.set(e,t),e},ns=function(e){return Jl.get(e)},rs=function(e){Jl.delete(e)};function is(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void(Wa||console.warn("XState could not find a global object in this environment. Please let the maintainers know and raise an issue here: https://github.com/statelyai/xstate/issues"))}function os(e){if(is()){var t=function(){var e=is();if(e&&"__xstate__"in e)return e.__xstate__}();t&&t.register(e)}}function as(e,t){void 0===t&&(t={});var n=e.initialState,r=new Set,i=[],o=!1,a=function(e){var t;return ka(((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[gl]=function(){return this},t),e)}({id:t.id,send:function(t){i.push(t),function(){if(!o){for(o=!0;i.length>0;){var t=i.shift();n=e.transition(n,t,l),r.forEach((function(e){return e.next(n)}))}o=!1}}()},getSnapshot:function(){return n},subscribe:function(e,t,i){var o=wl(e,t,i);return r.add(o),o.next(n),{unsubscribe:function(){r.delete(o)}}}}),l={parent:t.parent,self:a,id:t.id||"anonymous",observers:r};return n=e.start?e.start(l):n,a}var ls,ss={sync:!1,autoForward:!1};!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(ls||(ls={}));var cs=function(){function e(t,n){void 0===n&&(n=e.defaultOptions);var r=this;this.machine=t,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=ls.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(e,t){if(ul(e))return r.batch(e),r.state;var n=xl(ml(e,t));if(r.status===ls.Stopped)return Wa||dl(!1,'Event "'.concat(n.name,'" was sent to stopped service "').concat(r.machine.id,'". This service has already reached its final state, and will not transition.\nEvent: ').concat(JSON.stringify(n.data))),r.state;if(r.status!==ls.Running&&!r.options.deferEvents)throw new Error('Event "'.concat(n.name,'" was sent to uninitialized service "').concat(r.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.\nEvent: ').concat(JSON.stringify(n.data)));return r.scheduler.schedule((function(){r.forward(n);var e=r._nextState(n);r.update(e,n)})),r._state},this.sendTo=function(e,t,n){var i,o=r.parent&&(t===$a.Parent||r.parent.id===t),a=o?r.parent:hl(t)?t===$a.Internal?r:r.children.get(t)||ns(t):(i=t)&&"function"==typeof i.send?t:void 0;if(a)if("machine"in a){if(r.status!==ls.Stopped||r.parent!==a||r.state.done){var l=ka(ka({},e),{name:e.name===Ha?"".concat(Pl(r.id)):e.name,origin:r.sessionId});!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([a,l]):a.send(l)}}else!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([a,e.data]):a.send(e.data);else{if(!o)throw new Error("Unable to send event to child '".concat(t,"' from service '").concat(r.id,"'."));Wa||dl(!1,"Service '".concat(r.id,"' has no parent: unable to send event ").concat(e.type))}},this._exec=function(e,t,n,i){void 0===i&&(i=r.machine.options.actions);var o=e.exec||El(e.type,i),a=pl(o)?o:o?o.exec:e.exec;if(a)try{return a(t,n.data,r.machine.config.predictableActionArguments?{action:e,_event:n}:{action:e,state:r.state,_event:n})}catch(e){throw r.parent&&r.parent.send({type:"xstate.error",data:e}),e}switch(e.type){case Ra:var l=e;r.defer(l);break;case Pa:var s=e;if("number"==typeof s.delay)return void r.defer(s);s.to?r.sendTo(s._event,s.to,n===Sl):r.send(s._event);break;case Da:r.cancel(e.sendId);break;case La:if(r.status!==ls.Running)return;var c=e.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[c.id||c.type])break;if(c.type===wa.Invoke){var d=Cl(c.src),u=r.machine.options.services?r.machine.options.services[d.type]:void 0,p=c.id,h=c.data;Wa||dl(!("forward"in c),"`forward` property is deprecated (found in invocation of '".concat(c.src,"' in in machine '").concat(r.machine.id,"'). ")+"Please use `autoForward` instead.");var f="autoForward"in c?c.autoForward:!!c.forward;if(!u)return void(Wa||dl(!1,"No service found for invocation '".concat(c.src,"' in machine '").concat(r.machine.id,"'.")));var g=h?al(h,t,n):void 0;if("string"==typeof u)return;var v=pl(u)?u(t,n.data,{data:g,src:d,meta:c.meta}):u;if(!v)return;var m=void 0;vl(v)&&(v=g?v.withContext(g):v,m={autoForward:f}),r.spawn(v,p,m)}else r.spawnActivity(c);break;case Ta:r.stopChild(e.activity.id);break;case ja:var x=e,b=x.label,y=x.value;b?r.logger(b,y):r.logger(y);break;default:Wa||dl(!1,"No implementation found for action type '".concat(e.type,"'"))}};var i=ka(ka({},e.defaultOptions),n),o=i.clock,a=i.logger,l=i.parent,s=i.id,c=void 0!==s?s:t.id;this.id=c,this.logger=a,this.clock=o,this.parent=l,this.options=i,this.scheduler=new Kl({deferEvents:this.options.deferEvents}),this.sessionId=es()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this;return this._initialState?this._initialState:Ml(this,(function(){return e._initialState=e.machine.initialState,e._initialState}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return Wa||dl(this.status!==ls.NotStarted,"Attempted to read state from uninitialized service '".concat(this.id,"'. Make sure the service is started first.")),this._state},enumerable:!1,configurable:!0}),e.prototype.execute=function(e,t){var n,r;try{for(var i=Ea(e.actions),o=i.next();!o.done;o=i.next()){var a=o.value;this.exec(a,e,t)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e.prototype.update=function(e,t){var n,r,i,o,a,l,s,c,d=this;if(e._sessionid=this.sessionId,this._state=e,this.machine.config.predictableActionArguments&&t!==Sl||!this.options.execute)for(var u=void 0;u=this._outgoingQueue.shift();)u[0].send(u[1]);else this.execute(this.state);if(this.children.forEach((function(e){d.state.children[e.id]=e})),this.devTools&&this.devTools.send(t.data,e),e.event)try{for(var p=Ea(this.eventListeners),h=p.next();!h.done;h=p.next()){(0,h.value)(e.event)}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}try{for(var f=Ea(this.listeners),g=f.next();!g.done;g=f.next()){(0,g.value)(e,e.event)}}catch(e){i={error:e}}finally{try{g&&!g.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}try{for(var v=Ea(this.contextListeners),m=v.next();!m.done;m=v.next()){(0,m.value)(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(e){a={error:e}}finally{try{m&&!m.done&&(l=v.return)&&l.call(v)}finally{if(a)throw a.error}}if(this.state.done){var x=e.configuration.find((function(e){return"final"===e.type&&e.parent===d.machine})),b=x&&x.doneData?al(x.doneData,e.context,t):void 0;this._doneEvent=Rl(this.id,b);try{for(var y=Ea(this.doneListeners),C=y.next();!C.done;C=y.next()){(0,C.value)(this._doneEvent)}}catch(e){s={error:e}}finally{try{C&&!C.done&&(c=y.return)&&c.call(y)}finally{if(s)throw s.error}}this._stop(),this._stopChildren(),rs(this.sessionId)}},e.prototype.onTransition=function(e){return this.listeners.add(e),this.status===ls.Running&&e(this.state,this.state.event),this},e.prototype.subscribe=function(e,t,n){var r=this,i=wl(e,t,n);this.listeners.add(i.next),this.status!==ls.NotStarted&&i.next(this.state);var o=function(){r.doneListeners.delete(o),r.stopListeners.delete(o),i.complete()};return this.status===ls.Stopped?i.complete():(this.onDone(o),this.onStop(o)),{unsubscribe:function(){r.listeners.delete(i.next),r.doneListeners.delete(o),r.stopListeners.delete(o)}}},e.prototype.onEvent=function(e){return this.eventListeners.add(e),this},e.prototype.onSend=function(e){return this.sendListeners.add(e),this},e.prototype.onChange=function(e){return this.contextListeners.add(e),this},e.prototype.onStop=function(e){return this.stopListeners.add(e),this},e.prototype.onDone=function(e){return this.status===ls.Stopped&&this._doneEvent?e(this._doneEvent):this.doneListeners.add(e),this},e.prototype.off=function(e){return this.listeners.delete(e),this.eventListeners.delete(e),this.sendListeners.delete(e),this.stopListeners.delete(e),this.doneListeners.delete(e),this.contextListeners.delete(e),this},e.prototype.start=function(e){var t=this;if(this.status===ls.Running)return this;this.machine._init(),ts(this.sessionId,this),this.initialized=!0,this.status=ls.Running;var n=void 0===e?this.initialState:Ml(this,(function(){return"object"==typeof(n=e)&&null!==n&&"value"in n&&"_event"in n?t.machine.resolveState(e):t.machine.resolveState(Xl.from(e,t.machine.context));var n}));return this.options.devTools&&this.attachDev(),this.scheduler.initialize((function(){t.update(n,Sl)})),this},e.prototype._stopChildren=function(){this.children.forEach((function(e){pl(e.stop)&&e.stop()})),this.children.clear()},e.prototype._stop=function(){var e,t,n,r,i,o,a,l,s,c;try{for(var d=Ea(this.listeners),u=d.next();!u.done;u=d.next()){var p=u.value;this.listeners.delete(p)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}try{for(var h=Ea(this.stopListeners),f=h.next();!f.done;f=h.next()){(p=f.value)(),this.stopListeners.delete(p)}}catch(e){n={error:e}}finally{try{f&&!f.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}try{for(var g=Ea(this.contextListeners),v=g.next();!v.done;v=g.next()){p=v.value;this.contextListeners.delete(p)}}catch(e){i={error:e}}finally{try{v&&!v.done&&(o=g.return)&&o.call(g)}finally{if(i)throw i.error}}try{for(var m=Ea(this.doneListeners),x=m.next();!x.done;x=m.next()){p=x.value;this.doneListeners.delete(p)}}catch(e){a={error:e}}finally{try{x&&!x.done&&(l=m.return)&&l.call(m)}finally{if(a)throw a.error}}if(!this.initialized)return this;this.initialized=!1,this.status=ls.Stopped,this._initialState=void 0;try{for(var b=Ea(Object.keys(this.delayedEventsMap)),y=b.next();!y.done;y=b.next()){var C=y.value;this.clock.clearTimeout(this.delayedEventsMap[C])}}catch(e){s={error:e}}finally{try{y&&!y.done&&(c=b.return)&&c.call(b)}finally{if(s)throw s.error}}this.scheduler.clear(),this.scheduler=new Kl({deferEvents:this.options.deferEvents})},e.prototype.stop=function(){var e=this,t=this.scheduler;return this._stop(),t.schedule((function(){var t;if(!(null===(t=e._state)||void 0===t?void 0:t.done)){var n=xl({type:"xstate.stop"}),r=Ml(e,(function(){var t=rl(_a([],Oa(e.state.configuration),!1).sort((function(e,t){return t.order-e.order})).map((function(t){return _l(t.onExit,e.machine.options.actions)}))),r=Oa(Dl(e.machine,e.state,e.state.context,n,[{type:"exit",actions:t}],e.machine.config.predictableActionArguments?e._exec:void 0,e.machine.config.predictableActionArguments||e.machine.config.preserveActionOrder),2),i=r[0],o=r[1],a=new Xl({value:e.state.value,context:o,_event:n,_sessionid:e.sessionId,historyValue:void 0,history:e.state,actions:i.filter((function(e){return!kl(e)})),activities:{},events:[],configuration:[],transitions:[],children:{},done:e.state.done,tags:e.state.tags,machine:e.machine});return a.changed=!0,a}));e.update(r,n),e._stopChildren(),rs(e.sessionId)}})),this},e.prototype.batch=function(e){var t=this;if(this.status===ls.NotStarted&&this.options.deferEvents)Wa||dl(!1,"".concat(e.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'" and are deferred. Make sure .start() is called for this service.\nEvent: ').concat(JSON.stringify(event)));else if(this.status!==ls.Running)throw new Error("".concat(e.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'));if(e.length){var n=!!this.machine.config.predictableActionArguments&&this._exec;this.scheduler.schedule((function(){var r,i,o=t.state,a=!1,l=[],s=function(e){var r=xl(e);t.forward(r),o=Ml(t,(function(){return t.machine.transition(o,r,void 0,n||void 0)})),l.push.apply(l,_a([],Oa(t.machine.config.predictableActionArguments?o.actions:o.actions.map((function(e){return function(e,t){var n=e.exec;return ka(ka({},e),{exec:void 0!==n?function(){return n(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0})}(e,o)}))),!1)),a=a||!!o.changed};try{for(var c=Ea(e),d=c.next();!d.done;d=c.next()){s(d.value)}}catch(e){r={error:e}}finally{try{d&&!d.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}o.changed=a,o.actions=l,t.update(o,xl(e[e.length-1]))}))}},e.prototype.sender=function(e){return this.send.bind(this,e)},e.prototype._nextState=function(e,t){var n=this;void 0===t&&(t=!!this.machine.config.predictableActionArguments&&this._exec);var r=xl(e);if(0===r.name.indexOf(Aa)&&!this.state.nextEvents.some((function(e){return 0===e.indexOf(Aa)})))throw r.data.data;return Ml(this,(function(){return n.machine.transition(n.state,r,void 0,t||void 0)}))},e.prototype.nextState=function(e){return this._nextState(e,!1)},e.prototype.forward=function(e){var t,n;try{for(var r=Ea(this.forwardTo),i=r.next();!i.done;i=r.next()){var o=i.value,a=this.children.get(o);if(!a)throw new Error("Unable to forward event '".concat(e,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(o,"'."));a.send(e)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.defer=function(e){var t=this,n=this.clock.setTimeout((function(){"to"in e&&e.to?t.sendTo(e._event,e.to,!0):t.send(e._event)}),e.delay);e.id&&(this.delayedEventsMap[e.id]=n)},e.prototype.cancel=function(e){this.clock.clearTimeout(this.delayedEventsMap[e]),delete this.delayedEventsMap[e]},e.prototype.exec=function(e,t,n){void 0===n&&(n=this.machine.options.actions),this._exec(e,t.context,t._event,n)},e.prototype.removeChild=function(e){var t;this.children.delete(e),this.forwardTo.delete(e),null===(t=this.state)||void 0===t||delete t.children[e]},e.prototype.stopChild=function(e){var t=this.children.get(e);t&&(this.removeChild(e),pl(t.stop)&&t.stop())},e.prototype.spawn=function(e,t,n){if(this.status!==ls.Running)return jl(e,t);if(ll(e))return this.spawnPromise(Promise.resolve(e),t);if(pl(e))return this.spawnCallback(e,t);if(function(e){try{return"function"==typeof e.send}catch(e){return!1}}(i=e)&&"id"in i)return this.spawnActor(e,t);if(function(e){try{return"subscribe"in e&&pl(e.subscribe)}catch(e){return!1}}(e))return this.spawnObservable(e,t);if(vl(e))return this.spawnMachine(e,ka(ka({},n),{id:t}));if(null!==(r=e)&&"object"==typeof r&&"transition"in r&&"function"==typeof r.transition)return this.spawnBehavior(e,t);throw new Error('Unable to spawn entity "'.concat(t,'" of type "').concat(typeof e,'".'));var r,i},e.prototype.spawnMachine=function(t,n){var r=this;void 0===n&&(n={});var i=new e(t,ka(ka({},this.options),{parent:this,id:n.id||t.id})),o=ka(ka({},ss),n);o.sync&&i.onTransition((function(e){r.send(Ba,{state:e,id:i.id})}));var a=i;return this.children.set(i.id,a),o.autoForward&&this.forwardTo.add(i.id),i.onDone((function(e){r.removeChild(i.id),r.send(xl(e,{origin:i.id}))})).start(),a},e.prototype.spawnBehavior=function(e,t){var n=as(e,{id:t,parent:this});return this.children.set(t,n),n},e.prototype.spawnPromise=function(e,t){var n,r,i=this,o=!1;e.then((function(e){o||(r=e,i.removeChild(t),i.send(xl(Rl(t,e),{origin:t})))}),(function(e){if(!o){i.removeChild(t);var n=Pl(t,e);try{i.send(xl(n,{origin:t}))}catch(r){!function(e,t,n){if(!Wa){var r=e.stack?" Stacktrace was '".concat(e.stack,"'"):"";if(e===t)console.error("Missing onError handler for invocation '".concat(n,"', error was '").concat(e,"'.").concat(r));else{var i=t.stack?" Stacktrace was '".concat(t.stack,"'"):"";console.error("Missing onError handler and/or unhandled exception/promise rejection for invocation '".concat(n,"'. ")+"Original error: '".concat(e,"'. ").concat(r," Current error is '").concat(t,"'.").concat(i))}}}(e,r,t),i.devTools&&i.devTools.send(n,i.state),i.machine.strict&&i.stop()}}}));var a=((n={id:t,send:function(){},subscribe:function(t,n,r){var i=wl(t,n,r),o=!1;return e.then((function(e){o||(i.next(e),o||i.complete())}),(function(e){o||i.error(e)})),{unsubscribe:function(){return o=!0}}},stop:function(){o=!0},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[gl]=function(){return this},n);return this.children.set(t,a),a},e.prototype.spawnCallback=function(e,t){var n,r,i,o=this,a=!1,l=new Set,s=new Set;try{i=e((function(e){r=e,s.forEach((function(t){return t(e)})),a||o.send(xl(e,{origin:t}))}),(function(e){l.add(e)}))}catch(e){this.send(Pl(t,e))}if(ll(i))return this.spawnPromise(i,t);var c=((n={id:t,send:function(e){return l.forEach((function(t){return t(e)}))},subscribe:function(e){var t=wl(e);return s.add(t.next),{unsubscribe:function(){s.delete(t.next)}}},stop:function(){a=!0,pl(i)&&i()},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[gl]=function(){return this},n);return this.children.set(t,c),c},e.prototype.spawnObservable=function(e,t){var n,r,i=this,o=e.subscribe((function(e){r=e,i.send(xl(e,{origin:t}))}),(function(e){i.removeChild(t),i.send(xl(Pl(t,e),{origin:t}))}),(function(){i.removeChild(t),i.send(xl(Rl(t),{origin:t}))})),a=((n={id:t,send:function(){},subscribe:function(t,n,r){return e.subscribe(t,n,r)},stop:function(){return o.unsubscribe()},getSnapshot:function(){return r},toJSON:function(){return{id:t}}})[gl]=function(){return this},n);return this.children.set(t,a),a},e.prototype.spawnActor=function(e,t){return this.children.set(t,e),e},e.prototype.spawnActivity=function(e){var t=this.machine.options&&this.machine.options.activities?this.machine.options.activities[e.type]:void 0;if(t){var n=t(this.state.context,e);this.spawnEffect(e.id,n)}else Wa||dl(!1,"No implementation found for activity '".concat(e.type,"'"))},e.prototype.spawnEffect=function(e,t){var n;this.children.set(e,((n={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:t||void 0,getSnapshot:function(){},toJSON:function(){return{id:e}}})[gl]=function(){return this},n))},e.prototype.attachDev=function(){var e=is();if(this.options.devTools&&e){if(e.__REDUX_DEVTOOLS_EXTENSION__){var t="object"==typeof this.options.devTools?this.options.devTools:void 0;this.devTools=e.__REDUX_DEVTOOLS_EXTENSION__.connect(ka(ka({name:this.id,autoPause:!0,stateSanitizer:function(e){return{value:e.value,context:e.context,actions:e.actions}}},t),{features:ka({jump:!1,skip:!1},t?t.features:void 0)}),this.machine),this.devTools.init(this.state)}os(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[gl]=function(){return this},e.prototype.getSnapshot=function(){return this.status===ls.NotStarted?this.initialState:this._state},e.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(e,t){return setTimeout(e,t)},clearTimeout:function(e){return clearTimeout(e)}},logger:console.log.bind(console),devTools:!1},e.interpret=ds,e}();function ds(e,t){return new cs(e,t)}function us(e){if("string"==typeof e){var t={type:e,toString:function(){return e}};return t}return e}function ps(e){return ka(ka({type:Ia},e),{toJSON:function(){e.onDone,e.onError;var t=Sa(e,["onDone","onError"]);return ka(ka({},t),{type:Ia,src:us(e.src)})}})}var hs="",fs="*",gs={},vs=function(e){return"#"===e[0]},ms=function(){function e(t,n,r,i){void 0===r&&(r="context"in t?t.context:void 0);var o,a=this;this.config=t,this._context=r,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign({actions:{},guards:{},services:{},activities:{},delays:{}},n),this.parent=null==i?void 0:i.parent,this.key=this.config.key||(null==i?void 0:i.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:"."),this.id=this.config.id||_a([this.machine.key],Oa(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:null!==(o=this.config.schema)&&void 0!==o?o:{},this.description=this.config.description,Wa||dl(!("parallel"in this.config),'The "parallel" property is deprecated and will be removed in version 4.1. '.concat(this.config.parallel?"Replace with `type: 'parallel'`":"Use `type: '".concat(this.type,"'`")," in the config for state node '").concat(this.id,"' instead.")),this.initial=this.config.initial,this.states=this.config.states?Qa(this.config.states,(function(t,n){var r,i=new e(t,{},void 0,{parent:a,key:n});return Object.assign(a.idMap,ka(((r={})[i.id]=i,r),i.idMap)),i})):gs;var l=0;!function e(t){var n,r;t.order=l++;try{for(var i=Ea(Il(t)),o=i.next();!o.done;o=i.next()){e(o.value)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}(this),this.history=!0===this.config.history?"shallow":this.config.history||!1,this._transient=!!this.config.always||!!this.config.on&&(Array.isArray(this.config.on)?this.config.on.some((function(e){return e.event===hs})):hs in this.config.on),this.strict=!!this.config.strict,this.onEntry=ol(this.config.entry||this.config.onEntry).map((function(e){return Ol(e)})),this.onExit=ol(this.config.exit||this.config.onExit).map((function(e){return Ol(e)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=ol(this.config.invoke).map((function(e,t){var n,r;if(vl(e)){var i=$l(a.id,t);return a.machine.options.services=ka(((n={})[i]=e,n),a.machine.options.services),ps({src:i,id:i})}if(hl(e.src)){i=e.id||$l(a.id,t);return ps(ka(ka({},e),{id:i,src:e.src}))}if(vl(e.src)||pl(e.src)){i=e.id||$l(a.id,t);return a.machine.options.services=ka(((r={})[i]=e.src,r),a.machine.options.services),ps(ka(ka({id:i},e),{src:i}))}var o=e.src;return ps(ka(ka({id:$l(a.id,t)},e),{src:o}))})),this.activities=ol(this.config.activities).concat(this.invoke).map((function(e){return Ll(e)})),this.transition=this.transition.bind(this),this.tags=ol(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||Al(this).forEach((function(e){return e.on}))},e.prototype.withConfig=function(t,n){var r=this.options,i=r.actions,o=r.activities,a=r.guards,l=r.services,s=r.delays;return new e(this.config,{actions:ka(ka({},i),t.actions),activities:ka(ka({},o),t.activities),guards:ka(ka({},a),t.guards),services:ka(ka({},l),t.services),delays:ka(ka({},s),t.delays)},null!=n?n:this.context)},e.prototype.withContext=function(t){return new e(this.config,this.options,t)},Object.defineProperty(e.prototype,"context",{get:function(){return pl(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:Qa(this.states,(function(e){return e.definition})),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){return this.definition},Object.defineProperty(e.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var e=this.transitions;return this.__cache.on=e.reduce((function(e,t){return e[t.eventType]=e[t.eventType]||[],e[t.eventType].push(t),e}),{})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),e.prototype.getCandidates=function(e){if(this.__cache.candidates[e])return this.__cache.candidates[e];var t=e===hs,n=this.transitions.filter((function(n){var r=n.eventType===e;return t?r:r||n.eventType===fs}));return this.__cache.candidates[e]=n,n},e.prototype.getDelayedTransitions=function(){var e=this,t=this.config.after;if(!t)return[];var n=function(t,n){var r=function(e,t){var n=t?"#".concat(t):"";return"".concat(wa.After,"(").concat(e,")").concat(n)}(pl(t)?"".concat(e.id,":delay[").concat(n,"]"):t,e.id);return e.onEntry.push(function(e,t){return{to:t?t.to:void 0,type:Pa,event:pl(e)?e:ml(e),delay:t?t.delay:void 0,id:t&&void 0!==t.id?t.id:pl(e)?e.name:Xa(e)}}(r,{delay:t})),e.onExit.push({type:Da,sendId:r}),r},r=ul(t)?t.map((function(e,t){var r=n(e.delay,t);return ka(ka({},e),{event:r})})):rl(Object.keys(t).map((function(e,r){var i=t[e],o=hl(i)?{target:i}:i,a=isNaN(+e)?e:+e,l=n(a,r);return ol(o).map((function(e){return ka(ka({},e),{event:l,delay:a})}))})));return r.map((function(t){var n=t.delay;return ka(ka({},e.formatTransition(t)),{delay:n})}))},e.prototype.getStateNodes=function(e){var t,n=this;if(!e)return[];var r=e instanceof Xl?e.value:Ka(e,this.delimiter);if(hl(r)){var i=this.getStateNode(r).initial;return void 0!==i?this.getStateNodes(((t={})[r]=i,t)):[this,this.states[r]]}var o=Object.keys(r),a=[this];return a.push.apply(a,_a([],Oa(rl(o.map((function(e){return n.getStateNode(e).getStateNodes(r[e])})))),!1)),a},e.prototype.handles=function(e){var t=Xa(e);return this.events.includes(t)},e.prototype.resolveState=function(e){var t=e instanceof Xl?e:Xl.create(e),n=Array.from(Hl([],this.getStateNodes(t.value)));return new Xl(ka(ka({},t),{value:this.resolve(t.value),configuration:n,done:Gl(n,this),tags:Wl(n),machine:this.machine}))},e.prototype.transitionLeafNode=function(e,t,n){var r=this.getStateNode(e).next(t,n);return r&&r.transitions.length?r:this.next(t,n)},e.prototype.transitionCompoundNode=function(e,t,n){var r=Object.keys(e),i=this.getStateNode(r[0])._transition(e[r[0]],t,n);return i&&i.transitions.length?i:this.next(t,n)},e.prototype.transitionParallelNode=function(e,t,n){var r,i,o={};try{for(var a=Ea(Object.keys(e)),l=a.next();!l.done;l=a.next()){var s=l.value,c=e[s];if(c){var d=this.getStateNode(s)._transition(c,t,n);d&&(o[s]=d)}}}catch(e){r={error:e}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}var u=Object.keys(o).map((function(e){return o[e]})),p=rl(u.map((function(e){return e.transitions})));if(!u.some((function(e){return e.transitions.length>0})))return this.next(t,n);var h=rl(Object.keys(o).map((function(e){return o[e].configuration})));return{transitions:p,exitSet:rl(u.map((function(e){return e.exitSet}))),configuration:h,source:t,actions:rl(Object.keys(o).map((function(e){return o[e].actions})))}},e.prototype._transition=function(e,t,n){return hl(e)?this.transitionLeafNode(e,t,n):1===Object.keys(e).length?this.transitionCompoundNode(e,t,n):this.transitionParallelNode(e,t,n)},e.prototype.getTransitionData=function(e,t){return this._transition(e.value,e,xl(t))},e.prototype.next=function(e,t){var n,r,i,o=this,a=t.name,l=[],s=[];try{for(var c=Ea(this.getCandidates(a)),d=c.next();!d.done;d=c.next()){var u=d.value,p=u.cond,h=u.in,f=e.context,g=!h||(hl(h)&&vs(h)?e.matches(Ka(this.getStateNodeById(h).path,this.delimiter)):Ua(Ka(h,this.delimiter),tl(this.path.slice(0,-2))(e.value))),v=!1;try{v=!p||yl(this.machine,p,f,t,e)}catch(e){throw new Error("Unable to evaluate guard '".concat(p.name||p.type,"' in transition for event '").concat(a,"' in state node '").concat(this.id,"':\n").concat(e.message))}if(v&&g){void 0!==u.target&&(s=u.target),l.push.apply(l,_a([],Oa(u.actions),!1)),i=u;break}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}if(i){if(!s.length)return{transitions:[i],exitSet:[],configuration:e.value?[this]:[],source:e,actions:l};var m=rl(s.map((function(t){return o.getRelativeStateNodes(t,e.historyValue)})));return{transitions:[i],exitSet:!!i.internal?[]:rl(s.map((function(e){return o.getPotentiallyReenteringNodes(e)}))),configuration:m,source:e,actions:l}}},e.prototype.getPotentiallyReenteringNodes=function(e){if(this.order<e.order)return[this];for(var t=[],n=this,r=e;n&&n!==r;)t.push(n),n=n.parent;return n!==r?[]:(t.push(r),t)},e.prototype.getActions=function(e,t,n,r,i,o,a){var l,s,c,d,u=this,p=o?Hl([],this.getStateNodes(o.value)):[],h=new Set;try{for(var f=Ea(Array.from(e).sort((function(e,t){return e.order-t.order}))),g=f.next();!g.done;g=f.next()){(!ql(p,x=g.value)||ql(n.exitSet,x)||x.parent&&h.has(x.parent))&&h.add(x)}}catch(e){l={error:e}}finally{try{g&&!g.done&&(s=f.return)&&s.call(f)}finally{if(l)throw l.error}}try{for(var v=Ea(p),m=v.next();!m.done;m=v.next()){var x;ql(e,x=m.value)&&!ql(n.exitSet,x.parent)||n.exitSet.push(x)}}catch(e){c={error:e}}finally{try{m&&!m.done&&(d=v.return)&&d.call(v)}finally{if(c)throw c.error}}n.exitSet.sort((function(e,t){return t.order-e.order}));var b=Array.from(h).sort((function(e,t){return e.order-t.order})),y=new Set(n.exitSet),C=rl(b.map((function(e){var t=[];if("final"!==e.type)return t;var o=e.parent;if(!o.parent)return t;t.push(Tl(e.id,e.doneData),Tl(o.id,e.doneData?al(e.doneData,r,i):void 0));var a=o.parent;return"parallel"===a.type&&zl(a).every((function(e){return Gl(n.configuration,e)}))&&t.push(Tl(a.id)),t}))),w=b.map((function(e){var t=e.onEntry,n=e.activities.map((function(e){return function(e){var t=Ll(e);return{type:wa.Start,activity:t,exec:void 0}}(e)}));return{type:"entry",actions:_l(a?_a(_a([],Oa(t),!1),Oa(n),!1):_a(_a([],Oa(n),!1),Oa(t),!1),u.machine.options.actions)}})).concat({type:"state_done",actions:C.map((function(e){return function(e,t){return{type:Ra,event:"function"==typeof e?e:ml(e),delay:t?t.delay:void 0,id:null==t?void 0:t.id}}(e)}))}),$=Array.from(y).map((function(e){return{type:"exit",actions:_l(_a(_a([],Oa(e.onExit),!1),Oa(e.activities.map((function(e){return function(e){var t=pl(e)?e:Ll(e);return{type:wa.Stop,activity:t,exec:void 0}}(e)}))),!1),u.machine.options.actions)}})).concat({type:"transition",actions:_l(n.actions,this.machine.options.actions)}).concat(w);if(t){var k=_l(rl(_a([],Oa(e),!1).sort((function(e,t){return t.order-e.order})).map((function(e){return e.onExit}))),this.machine.options.actions).filter((function(e){return!kl(e)}));return $.concat({type:"stop",actions:k})}return $},e.prototype.transition=function(e,t,n,r){void 0===e&&(e=this.initialState);var i,o,a=xl(t);if(e instanceof Xl)i=void 0===n?e:this.resolveState(Xl.from(e,n));else{var l=hl(e)?this.resolve(Ja(this.getResolvedPath(e))):this.resolve(e),s=null!=n?n:this.machine.context;i=this.resolveState(Xl.from(l,s))}if(!Wa&&a.name===fs)throw new Error("An event cannot have the wildcard type ('".concat(fs,"')"));if(this.strict&&!this.events.includes(a.name)&&(o=a.name,!/^(done|error)\./.test(o)))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(a.name,"'"));var c=this._transition(i.value,i,a)||{transitions:[],configuration:[],exitSet:[],source:i,actions:[]},d=Hl([],this.getStateNodes(i.value)),u=c.configuration.length?Hl(d,c.configuration):d;return c.configuration=_a([],Oa(u),!1),this.resolveTransition(c,i,i.context,r,a)},e.prototype.resolveRaisedTransition=function(e,t,n,r){var i,o=e.actions;return(e=this.transition(e,t,void 0,r))._event=n,e.event=n.data,(i=e.actions).unshift.apply(i,_a([],Oa(o),!1)),e},e.prototype.resolveTransition=function(e,t,n,r,i){var o,a,l,s,c=this;void 0===i&&(i=Sl);var d=e.configuration,u=!t||e.transitions.length>0,p=u?e.configuration:t?t.configuration:[],h=Gl(p,this),f=u?Zl(this.machine,d):void 0,g=t?t.historyValue?t.historyValue:e.source?this.machine.historyValue(t.value):void 0:void 0,v=this.getActions(new Set(p),h,e,n,i,t,r),m=t?ka({},t.activities):{};try{for(var x=Ea(v),b=x.next();!b.done;b=x.next()){var y=b.value;try{for(var C=(l=void 0,Ea(y.actions)),w=C.next();!w.done;w=C.next()){var $=w.value;$.type===La?m[$.activity.id||$.activity.type]=$:$.type===Ta&&(m[$.activity.id||$.activity.type]=!1)}}catch(e){l={error:e}}finally{try{w&&!w.done&&(s=C.return)&&s.call(C)}finally{if(l)throw l.error}}}}catch(e){o={error:e}}finally{try{b&&!b.done&&(a=x.return)&&a.call(x)}finally{if(o)throw o.error}}var k,S,E=Oa(Dl(this,t,n,i,v,r,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),O=E[0],_=E[1],L=Oa(function(e,t){var n,r,i=Oa([[],[]],2),o=i[0],a=i[1];try{for(var l=Ea(e),s=l.next();!s.done;s=l.next()){var c=s.value;t(c)?o.push(c):a.push(c)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return[o,a]}(O,kl),2),T=L[0],R=L[1],P=O.filter((function(e){var t;return e.type===La&&(null===(t=e.activity)||void 0===t?void 0:t.type)===Ia})),D=P.reduce((function(e,t){return e[t.activity.id]=function(e,t,n,r){var i,o=Cl(e.src),a=null===(i=null==t?void 0:t.options.services)||void 0===i?void 0:i[o.type],l=e.data?al(e.data,n,r):void 0,s=a?jl(a,e.id,l):Nl(e.id);return s.meta=e,s}(t.activity,c.machine,_,i),e}),t?ka({},t.children):{}),M=new Xl({value:f||t.value,context:_,_event:i,_sessionid:t?t._sessionid:null,historyValue:f?g?(k=g,S=f,{current:S,states:sl(k,S)}):void 0:t?t.historyValue:void 0,history:!f||e.source?t:void 0,actions:f?R:[],activities:f?m:t?t.activities:{},events:[],configuration:p,transitions:e.transitions,children:D,done:h,tags:Wl(p),machine:this}),N=n!==_;M.changed=i.name===Ba||N;var j=M.history;j&&delete j.history;var V=!h&&(this._transient||d.some((function(e){return e._transient})));if(!(u||V&&i.name!==hs))return M;var I=M;if(!h)for(V&&(I=this.resolveRaisedTransition(I,{type:Ma},i,r));T.length;){var z=T.shift();I=this.resolveRaisedTransition(I,z._event,i,r)}var A=I.changed||(j?!!I.actions.length||N||typeof j.value!=typeof I.value||!Ul(I.value,j.value):void 0);return I.changed=A,I.history=j,I},e.prototype.getStateNode=function(e){if(vs(e))return this.machine.getStateNodeById(e);if(!this.states)throw new Error("Unable to retrieve child state '".concat(e,"' from '").concat(this.id,"'; no child states exist."));var t=this.states[e];if(!t)throw new Error("Child state '".concat(e,"' does not exist on '").concat(this.id,"'"));return t},e.prototype.getStateNodeById=function(e){var t=vs(e)?e.slice(1):e;if(t===this.id)return this;var n=this.machine.idMap[t];if(!n)throw new Error("Child state node '#".concat(t,"' does not exist on machine '").concat(this.id,"'"));return n},e.prototype.getStateNodeByPath=function(e){if("string"==typeof e&&vs(e))try{return this.getStateNodeById(e.slice(1))}catch(e){}for(var t=Ya(e,this.delimiter).slice(),n=this;t.length;){var r=t.shift();if(!r.length)break;n=n.getStateNode(r)}return n},e.prototype.resolve=function(e){var t,n=this;if(!e)return this.initialStateValue||gs;switch(this.type){case"parallel":return Qa(this.initialStateValue,(function(t,r){return t?n.getStateNode(r).resolve(e[r]||t):gs}));case"compound":if(hl(e)){var r=this.getStateNode(e);return"parallel"===r.type||"compound"===r.type?((t={})[e]=r.initialStateValue,t):e}return Object.keys(e).length?Qa(e,(function(e,t){return e?n.getStateNode(t).resolve(e):gs})):this.initialStateValue||{};default:return e||gs}},e.prototype.getResolvedPath=function(e){if(vs(e)){var t=this.machine.idMap[e.slice(1)];if(!t)throw new Error("Unable to find state node '".concat(e,"'"));return t.path}return Ya(e,this.delimiter)},Object.defineProperty(e.prototype,"initialStateValue",{get:function(){var e,t;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;if("parallel"===this.type)t=el(this.states,(function(e){return e.initialStateValue||gs}),(function(e){return!("history"===e.type)}));else if(void 0!==this.initial){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));t=Vl(this.states[this.initial])?this.initial:((e={})[this.initial]=this.states[this.initial].initialStateValue,e)}else t={};return this.__cache.initialStateValue=t,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),e.prototype.getInitialState=function(e,t){this._init();var n=this.getStateNodes(e);return this.resolveTransition({configuration:n,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,null!=t?t:this.machine.context,void 0)},Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this.initialStateValue;if(!e)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){var e;if("history"===this.type){var t=this.config;e=hl(t.target)&&vs(t.target)?Ja(this.machine.getStateNodeById(t.target).path.slice(this.path.length-1)):t.target}return e},enumerable:!1,configurable:!0}),e.prototype.getRelativeStateNodes=function(e,t,n){return void 0===n&&(n=!0),n?"history"===e.type?e.resolveHistory(t):e.initialStateNodes:[e]},Object.defineProperty(e.prototype,"initialStateNodes",{get:function(){var e=this;return Vl(this)?[this]:"compound"!==this.type||this.initial?rl(nl(this.initialStateValue).map((function(t){return e.getFromRelativePath(t)}))):(Wa||dl(!1,"Compound state node '".concat(this.id,"' has no initial state.")),[this])},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(e){if(!e.length)return[this];var t=Oa(e),n=t[0],r=t.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(n,"' from node with no states"));var i=this.getStateNode(n);if("history"===i.type)return i.resolveHistory();if(!this.states[n])throw new Error("Child state '".concat(n,"' does not exist on '").concat(this.id,"'"));return this.states[n].getFromRelativePath(r)},e.prototype.historyValue=function(e){if(Object.keys(this.states).length)return{current:e||this.initialStateValue,states:el(this.states,(function(t,n){if(!e)return t.historyValue();var r=hl(e)?void 0:e[n];return t.historyValue(r||t.initialStateValue)}),(function(e){return!e.history}))}},e.prototype.resolveHistory=function(e){var t=this;if("history"!==this.type)return[this];var n=this.parent;if(!e){var r=this.target;return r?rl(nl(r).map((function(e){return n.getFromRelativePath(e)}))):n.initialStateNodes}var i,o,a=(i=n.path,o="states",function(e){var t,n,r=e;try{for(var a=Ea(i),l=a.next();!l.done;l=a.next()){var s=l.value;r=r[o][s]}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r})(e).current;return hl(a)?[n.getStateNode(a)]:rl(nl(a).map((function(e){return"deep"===t.history?n.getFromRelativePath(e):[n.states[e[0]]]})))},Object.defineProperty(e.prototype,"stateIds",{get:function(){var e=this,t=rl(Object.keys(this.states).map((function(t){return e.states[t].stateIds})));return[this.id].concat(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){var e,t,n,r;if(this.__cache.events)return this.__cache.events;var i=this.states,o=new Set(this.ownEvents);if(i)try{for(var a=Ea(Object.keys(i)),l=a.next();!l.done;l=a.next()){var s=i[l.value];if(s.states)try{for(var c=(n=void 0,Ea(s.events)),d=c.next();!d.done;d=c.next()){var u=d.value;o.add("".concat(u))}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return this.__cache.events=Array.from(o)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownEvents",{get:function(){var e=new Set(this.transitions.filter((function(e){return!(!e.target&&!e.actions.length&&e.internal)})).map((function(e){return e.eventType})));return Array.from(e)},enumerable:!1,configurable:!0}),e.prototype.resolveTarget=function(e){var t=this;if(void 0!==e)return e.map((function(e){if(!hl(e))return e;var n=e[0]===t.delimiter;if(n&&!t.parent)return t.getStateNodeByPath(e.slice(1));var r=n?t.key+e:e;if(!t.parent)return t.getStateNodeByPath(r);try{return t.parent.getStateNodeByPath(r)}catch(e){throw new Error("Invalid transition definition for state node '".concat(t.id,"':\n").concat(e.message))}}))},e.prototype.formatTransition=function(e){var t=this,n=function(e){if(void 0!==e&&""!==e)return ol(e)}(e.target),r="internal"in e?e.internal:!n||n.some((function(e){return hl(e)&&e[0]===t.delimiter})),i=this.machine.options.guards,o=this.resolveTarget(n),a=ka(ka({},e),{actions:_l(ol(e.actions)),cond:fl(e.cond,i),target:o,source:this,internal:r,eventType:e.event,toJSON:function(){return ka(ka({},a),{target:a.target?a.target.map((function(e){return"#".concat(e.id)})):void 0,source:"#".concat(t.id)})}});return a},e.prototype.formatTransitions=function(){var e,t,n,r=this;if(this.config.on)if(Array.isArray(this.config.on))n=this.config.on;else{var i=this.config.on,o=fs,a=i[o],l=void 0===a?[]:a,s=Sa(i,["*"]);n=rl(Object.keys(s).map((function(e){Wa||e!==hs||dl(!1,"Empty string transition configs (e.g., `{ on: { '': ... }}`) for transient transitions are deprecated. Specify the transition in the `{ always: ... }` property instead. "+'Please check the `on` configuration for "#'.concat(r.id,'".'));var t=bl(e,s[e]);return Wa||function(e,t,n){var r=n.slice(0,-1).some((function(e){return!("cond"in e)&&!("in"in e)&&(hl(e.target)||vl(e.target))})),i=t===hs?"the transient event":"event '".concat(t,"'");dl(!r,"One or more transitions for ".concat(i," on state '").concat(e.id,"' are unreachable. ")+"Make sure that the default transition is the last one defined.")}(r,e,t),t})).concat(bl(fs,l)))}else n=[];var c=this.config.always?bl("",this.config.always):[],d=this.config.onDone?bl(String(Tl(this.id)),this.config.onDone):[];Wa||dl(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var u=rl(this.invoke.map((function(e){var t=[];return e.onDone&&t.push.apply(t,_a([],Oa(bl(String(Rl(e.id)),e.onDone)),!1)),e.onError&&t.push.apply(t,_a([],Oa(bl(String(Pl(e.id)),e.onError)),!1)),t}))),p=this.after,h=rl(_a(_a(_a(_a([],Oa(d),!1),Oa(u),!1),Oa(n),!1),Oa(c),!1).map((function(e){return ol(e).map((function(e){return r.formatTransition(e)}))})));try{for(var f=Ea(p),g=f.next();!g.done;g=f.next()){var v=g.value;h.push(v)}}catch(t){e={error:t}}finally{try{g&&!g.done&&(t=f.return)&&t.call(f)}finally{if(e)throw e.error}}return h},e}();var xs,bs=function(e){return{type:Na,assignment:e}};!function(e){e[e.Effect=1]="Effect",e[e.LayoutEffect=2]="LayoutEffect"}(xs||(xs={}));var ys="undefined"!=typeof document?J:function(){};function Cs(e){var t=Z.useRef();return t.current||(t.current={v:e()}),t.current.v}var ws=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},$s=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var ks=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},Ss=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};function Es(e,t){(0,e.exec)(t.context,t._event.data,{action:e,state:t,_event:t._event})()}function Os(e){var t=K([]),n=K([]);ys((function(){var r=e.subscribe((function(e){var r,i;if(e.actions.length){var o=e.actions.filter((function(e){return"function"==typeof e.exec&&"__effect"in e.exec})),a=ks(function(e,t){var n,r,i=ws([[],[]],2),o=i[0],a=i[1];try{for(var l=$s(e),s=l.next();!s.done;s=l.next()){var c=s.value;t(c)?o.push(c):a.push(c)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return[o,a]}(o,(function(e){return e.exec.__effect===xs.Effect})),2),l=a[0],s=a[1];(r=t.current).push.apply(r,Ss([],ks(l.map((function(t){return[t,e]}))),!1)),(i=n.current).push.apply(i,Ss([],ks(s.map((function(t){return[t,e]}))),!1))}}));return function(){r.unsubscribe()}}),[]),ys((function(){for(;n.current.length;){var e=ks(n.current.shift(),2);Es(e[0],e[1])}})),U((function(){for(;t.current.length;){var e=ks(t.current.shift(),2);Es(e[0],e[1])}}))}var _s=function(){return _s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},_s.apply(this,arguments)},Ls=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},Ts=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};var Rs=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};function Ps(e,t){void 0===t&&(t={});var n=Q((function(e){var t=void 0===e.changed&&Object.keys(e.children).length;(e.changed||t)&&a(e)}),[]),r=function(e,t,n){void 0===t&&(t={});var r=Cs((function(){return"function"==typeof e?e():e}));if("production"!==process.env.NODE_ENV&&"function"!=typeof e){var i=Ts(W(r),1)[0];e!==i&&console.warn("Machine given to `useMachine` has changed between renders. This is not supported and might lead to unexpected results.\nPlease make sure that you pass the same Machine as argument each time.")}var o=t.context,a=t.guards,l=t.actions,s=t.activities,c=t.services,d=t.delays,u=t.state,p=Ls(t,["context","guards","actions","activities","services","delays","state"]),h=Cs((function(){var e={context:o,guards:a,actions:l,activities:s,services:c,delays:d};return ds(r.withConfig(e,(function(){return _s(_s({},r.context),o)})),_s({deferEvents:!0},p))}));return ys((function(){var e;return n&&(e=h.subscribe(function(e){if("object"==typeof e)return e;var t=function(){};return{next:e,error:void 0||t,complete:void 0||t}}(n))),function(){null==e||e.unsubscribe()}}),[n]),ys((function(){return h.start(u?Xl.create(u):void 0),function(){h.stop()}}),[]),ys((function(){Object.assign(h.machine.options.actions,l),Object.assign(h.machine.options.guards,a),Object.assign(h.machine.options.activities,s),Object.assign(h.machine.options.services,c),Object.assign(h.machine.options.delays,d)}),[l,a,s,c,d]),Os(h),h}(e,t,n),i=Rs(W((function(){var e=r.machine.initialState;return t.state?Xl.create(t.state):e})),2),o=i[0],a=i[1];return[o,r.send,r]}function Ds(){return Ds=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ds.apply(null,arguments)}function Ms(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}const Ns={arr:Array.isArray,obj:e=>"[object Object]"===Object.prototype.toString.call(e),fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e,nul:e=>null===e,set:e=>e instanceof Set,map:e=>e instanceof Map,equ(e,t){if(typeof e!=typeof t)return!1;if(Ns.str(e)||Ns.num(e))return e===t;if(Ns.obj(e)&&Ns.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;let n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!Ns.und(n)||e===t}};function js(e,t){return Ns.und(e)||Ns.nul(e)?t:e}function Vs(e){return Ns.und(e)?[]:Ns.arr(e)?e:[e]}function Is(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Ns.fun(e)?e(...n):e}function zs(e){const t=function(e){return e.to,e.from,e.config,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.delay,e.attach,e.destroyed,e.interpolateTo,e.ref,e.lazy,Ms(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(Ns.und(t))return Ds({to:t},e);const n=Object.keys(e).reduce(((n,r)=>Ns.und(t[r])?Ds({},n,{[r]:e[r]}):n),{});return Ds({to:t},n)}class As{constructor(){this.payload=void 0,this.children=[]}getAnimatedValue(){return this.getValue()}getPayload(){return this.payload||this}attach(){}detach(){}getChildren(){return this.children}addChild(e){0===this.children.length&&this.attach(),this.children.push(e)}removeChild(e){const t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()}}class Hs extends As{constructor(){super(...arguments),this.payload=[],this.attach=()=>this.payload.forEach((e=>e instanceof As&&e.addChild(this))),this.detach=()=>this.payload.forEach((e=>e instanceof As&&e.removeChild(this)))}}class Bs extends As{constructor(){super(...arguments),this.payload={},this.attach=()=>Object.values(this.payload).forEach((e=>e instanceof As&&e.addChild(this))),this.detach=()=>Object.values(this.payload).forEach((e=>e instanceof As&&e.removeChild(this)))}getValue(e){void 0===e&&(e=!1);const t={};for(const n in this.payload){const r=this.payload[n];(!e||r instanceof As)&&(t[n]=r instanceof As?r[e?"getAnimatedValue":"getValue"]():r)}return t}getAnimatedValue(){return this.getValue(!0)}}let Fs,Zs;let qs,Gs=e=>"undefined"!=typeof window?window.requestAnimationFrame(e):-1;let Ws,Us=()=>Date.now();class Xs extends Bs{constructor(e,t){super(),this.update=void 0,this.payload=e.style?Ds({},e,{style:Ws(e.style)}):e,this.update=t,this.attach()}}let Ys=!1;const Ks=new Set,Js=()=>{if(!Ys)return!1;let e=Us();for(let t of Ks){let n=!1;for(let r=0;r<t.configs.length;r++){let i,o,a=t.configs[r];for(let t=0;t<a.animatedValues.length;t++){let r=a.animatedValues[t];if(r.done)continue;let l=a.fromValues[t],s=a.toValues[t],c=r.lastPosition,d=s instanceof As,u=Array.isArray(a.initialVelocity)?a.initialVelocity[t]:a.initialVelocity;if(d&&(s=s.getValue()),a.immediate)r.setValue(s),r.done=!0;else if("string"!=typeof l&&"string"!=typeof s){if(void 0!==a.duration)c=l+a.easing((e-r.startTime)/a.duration)*(s-l),i=e>=r.startTime+a.duration;else if(a.decay)c=l+u/(1-.998)*(1-Math.exp(-.0020000000000000018*(e-r.startTime))),i=Math.abs(r.lastPosition-c)<.1,i&&(s=c);else{o=void 0!==r.lastTime?r.lastTime:e,u=void 0!==r.lastVelocity?r.lastVelocity:a.initialVelocity,e>o+64&&(o=e);let t=Math.floor(e-o);for(let e=0;e<t;++e){u+=1*((-a.tension*(c-s)+-a.friction*u)/a.mass)/1e3,c+=1*u/1e3}let n=!(!a.clamp||0===a.tension)&&(l<s?c>s:c<s),d=Math.abs(u)<=a.precision,p=0===a.tension||Math.abs(s-c)<=a.precision;i=n||d&&p,r.lastVelocity=u,r.lastTime=e}d&&!a.toValues[t].done&&(i=!1),i?(r.value!==s&&(c=s),r.done=!0):n=!0,r.setValue(c),r.lastPosition=c}else r.setValue(s),r.done=!0}t.props.onFrame&&(t.values[a.name]=a.interpolation.getValue())}t.props.onFrame&&t.props.onFrame(t.values),n||(Ks.delete(t),t.stop(!0))}return Ks.size?Gs(Js):Ys=!1,Ys};function Qs(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return Qs({range:e,output:t,extrapolate:n});if(qs&&"string"==typeof e.output[0])return qs(e);const r=e,i=r.output,o=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",l=r.extrapolateRight||r.extrapolate||"extend",s=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,o);return function(e,t,n,r,i,o,a,l,s){let c=s?s(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>n){if("identity"===l)return c;"clamp"===l&&(c=n)}if(r===i)return r;if(t===n)return e<=t?r:i;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=o(c),r===-1/0?c=-c:i===1/0?c+=r:c=c*(i-r)+r;return c}(e,o[t],o[t+1],i[t],i[t+1],s,a,l,r.map)}}class ec extends Hs{constructor(e,t,n,r){super(),this.calc=void 0,this.payload=e instanceof Hs&&!(e instanceof ec)?e.getPayload():Array.isArray(e)?e:[e],this.calc=Qs(t,n,r)}getValue(){return this.calc(...this.payload.map((e=>e.getValue())))}updateConfig(e,t,n){this.calc=Qs(e,t,n)}interpolate(e,t,n){return new ec(this,e,t,n)}}const tc=(e,t,n)=>e&&new ec(e,t,n);function nc(e,t){"update"in e?t.add(e):e.getChildren().forEach((e=>nc(e,t)))}class rc extends As{constructor(e){var t;super(),t=this,this.animatedStyles=new Set,this.value=void 0,this.startPosition=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.startTime=void 0,this.lastTime=void 0,this.done=!1,this.setValue=function(e,n){void 0===n&&(n=!0),t.value=e,n&&t.flush()},this.value=e,this.startPosition=e,this.lastPosition=e}flush(){0===this.animatedStyles.size&&nc(this,this.animatedStyles),this.animatedStyles.forEach((e=>e.update()))}clearStyles(){this.animatedStyles.clear()}getValue(){return this.value}interpolate(e,t,n){return new ec(this,e,t,n)}}class ic extends Hs{constructor(e){super(),this.payload=e.map((e=>new rc(e)))}setValue(e,t){void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach(((e,n)=>this.payload[n].setValue(e,t))):this.payload.forEach((n=>n.setValue(e,t)))}getValue(){return this.payload.map((e=>e.getValue()))}interpolate(e,t){return new ec(this,e,t)}}let oc=0,ac=class{constructor(){this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=()=>this.interpolations,this.id=oc++}update(e){if(!e)return this;const t=zs(e),n=t.delay,r=void 0===n?0:n,i=t.to,o=Ms(t,["delay","to"]);if(Ns.arr(i)||Ns.fun(i))this.queue.push(Ds({},o,{delay:r,to:i}));else if(i){let e={};Object.entries(i).forEach((t=>{let n=t[0],i=t[1];const a=Ds({to:{[n]:i},delay:Is(r,n)},o),l=e[a.delay]&&e[a.delay].to;e[a.delay]=Ds({},e[a.delay],a,{to:Ds({},l,a.to)})})),this.queue=Object.values(e)}return this.queue=this.queue.sort(((e,t)=>e.delay-t.delay)),this.diff(o),this}start(e){if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((e=>{let t=e.from,n=void 0===t?{}:t,r=e.to,i=void 0===r?{}:r;Ns.obj(n)&&(this.merged=Ds({},n,this.merged)),Ns.obj(i)&&(this.merged=Ds({},this.merged,i))}));const t=this.local=++this.guid,n=this.localQueue=this.queue;this.queue=[],n.forEach(((r,i)=>{let o=r.delay,a=Ms(r,["delay"]);const l=r=>{i===n.length-1&&t===this.guid&&r&&(this.idle=!0,this.props.onRest&&this.props.onRest(this.merged)),e&&e()};let s=Ns.arr(a.to)||Ns.fun(a.to);o?setTimeout((()=>{t===this.guid&&(s?this.runAsync(a,l):this.diff(a).start(l))}),o):s?this.runAsync(a,l):this.diff(a).start(l)}))}else Ns.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,Ks.has(t)||Ks.add(t),Ys||(Ys=!0,Gs(Js));var t;return this}stop(e){return this.listeners.forEach((t=>t(e))),this.listeners=[],this}pause(e){var t;return this.stop(!0),e&&(t=this,Ks.has(t)&&Ks.delete(t)),this}runAsync(e,t){var n=this;e.delay;let r=Ms(e,["delay"]);const i=this.local;let o=Promise.resolve(void 0);if(Ns.arr(r.to))for(let e=0;e<r.to.length;e++){const t=e,n=Ds({},r,zs(r.to[t]));Ns.arr(n.config)&&(n.config=n.config[t]),o=o.then((()=>{if(i===this.guid)return new Promise((e=>this.diff(n).start(e)))}))}else if(Ns.fun(r.to)){let e,t=0;o=o.then((()=>r.to((n=>{const o=Ds({},r,zs(n));if(Ns.arr(o.config)&&(o.config=o.config[t]),t++,i===this.guid)return e=new Promise((e=>this.diff(o).start(e)))}),(function(e){return void 0===e&&(e=!0),n.stop(e)})).then((()=>e))))}o.then(t)}diff(e){this.props=Ds({},this.props,e);let t=this.props,n=t.from,r=void 0===n?{}:n,i=t.to,o=void 0===i?{}:i,a=t.config,l=void 0===a?{}:a,s=t.reverse,c=t.attach,d=t.reset,u=t.immediate;if(s){var p=[o,r];r=p[0],o=p[1]}this.merged=Ds({},r,this.merged,o),this.hasChanged=!1;let h=c&&c(this);if(this.animations=Object.entries(this.merged).reduce(((e,t)=>{let n=t[0],i=t[1],o=e[n]||{};const a=Ns.num(i),s=Ns.str(i)&&!i.startsWith("#")&&!/\d/.test(i)&&!Zs[i],c=Ns.arr(i),p=!a&&!c&&!s;let f=Ns.und(r[n])?i:r[n],g=a||c||s?i:1,v=Is(l,n);h&&(g=h.animations[n].parent);let m,x=o.parent,b=o.interpolation,y=Vs(h?g.getPayload():g),C=i;p&&(C=qs({range:[0,1],output:[i,i]})(1));let w=b&&b.getValue();const $=!Ns.und(x)&&o.animatedValues.some((e=>!e.done)),k=!Ns.equ(C,w),S=!Ns.equ(C,o.previous),E=!Ns.equ(v,o.config);if(d||S&&k||E){if(a||s)x=b=o.parent||new rc(f);else if(c)x=b=o.parent||new ic(f);else if(p){let e=o.interpolation&&o.interpolation.calc(o.parent.value);e=void 0===e||d?f:e,o.parent?(x=o.parent,x.setValue(0,!1)):x=new rc(0);const t={output:[e,i]};o.interpolation?(b=o.interpolation,o.interpolation.updateConfig(t)):b=x.interpolate(t)}return y=Vs(h?g.getPayload():g),m=Vs(x.getPayload()),d&&!p&&x.setValue(f,!1),this.hasChanged=!0,m.forEach((e=>{e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=$?e.lastVelocity:void 0,e.lastTime=$?e.lastTime:void 0,e.startTime=Us(),e.done=!1,e.animatedStyles.clear()})),Is(u,n)&&x.setValue(p?g:i,!1),Ds({},e,{[n]:Ds({},o,{name:n,parent:x,interpolation:b,animatedValues:m,toValues:y,previous:C,config:v,fromValues:Vs(x.getValue()),immediate:Is(u,n),initialVelocity:js(v.velocity,0),clamp:js(v.clamp,!1),precision:js(v.precision,.01),tension:js(v.tension,170),friction:js(v.friction,26),mass:js(v.mass,1),duration:v.duration,easing:js(v.easing,(e=>e)),decay:v.decay})})}return k?e:(p&&(x.setValue(1,!1),b.updateConfig({output:[C,C]})),x.done=!0,this.hasChanged=!0,Ds({},e,{[n]:Ds({},e[n],{previous:C})}))}),this.animations),this.hasChanged){this.configs=Object.values(this.animations),this.values={},this.interpolations={};for(let e in this.animations)this.interpolations[e]=this.animations[e].interpolation,this.values[e]=this.animations[e].interpolation.getValue()}return this}destroy(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0}};const lc=e=>{const t=Ns.fun(e),n=((e,t)=>{const n=K(!1),r=K(),i=Ns.fun(t),o=te((()=>{let n;return r.current&&(r.current.map((e=>e.destroy())),r.current=void 0),[new Array(e).fill().map(((e,r)=>{const o=new ac,a=i?Is(t,r,o):t[r];return 0===r&&(n=a.ref),o.update(a),n||o.start(),o})),n]}),[e]),a=o[0],l=o[1];r.current=a,ne(l,(()=>({start:()=>Promise.all(r.current.map((e=>new Promise((t=>e.start(t)))))),stop:e=>r.current.forEach((t=>t.stop(e))),get controllers(){return r.current}})));const s=te((()=>e=>r.current.map(((t,n)=>{t.update(i?Is(e,n,t):e[n]),l||t.start()}))),[e]);U((()=>{n.current?i||s(t):l||r.current.forEach((e=>e.start()))})),U((()=>(n.current=!0,()=>r.current.forEach((e=>e.destroy())))),[]);const c=r.current.map((e=>e.getValues()));return i?[c,s,e=>r.current.forEach((t=>t.pause(e)))]:c})(1,t?e:[e]),r=n[0],i=n[1],o=n[2];return t?[r[0],i,o]:r};class sc extends Bs{constructor(e){void 0===e&&(e={}),super(),!e.transform||e.transform instanceof As||(e=Fs.transform(e)),this.payload=e}}const cc={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},dc="[-+]?\\d*\\.?\\d+",uc=dc+"%";function pc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}const hc=new RegExp("rgb"+pc(dc,dc,dc)),fc=new RegExp("rgba"+pc(dc,dc,dc,dc)),gc=new RegExp("hsl"+pc(dc,uc,uc)),vc=new RegExp("hsla"+pc(dc,uc,uc,dc)),mc=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,xc=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,bc=/^#([0-9a-fA-F]{6})$/,yc=/^#([0-9a-fA-F]{8})$/;function Cc(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function wc(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=Cc(i,r,e+1/3),a=Cc(i,r,e),l=Cc(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function $c(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function kc(e){return(parseFloat(e)%360+360)%360/360}function Sc(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Ec(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Oc(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=bc.exec(e))?parseInt(t[1]+"ff",16)>>>0:cc.hasOwnProperty(e)?cc[e]:(t=hc.exec(e))?($c(t[1])<<24|$c(t[2])<<16|$c(t[3])<<8|255)>>>0:(t=fc.exec(e))?($c(t[1])<<24|$c(t[2])<<16|$c(t[3])<<8|Sc(t[4]))>>>0:(t=mc.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=yc.exec(e))?parseInt(t[1],16)>>>0:(t=xc.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=gc.exec(e))?(255|wc(kc(t[1]),Ec(t[2]),Ec(t[3])))>>>0:(t=vc.exec(e))?(wc(kc(t[1]),Ec(t[2]),Ec(t[3]))|Sc(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const _c=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Lc=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Tc=new RegExp(`(${Object.keys(cc).join("|")})`,"g");let Rc={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const Pc=["Webkit","Ms","Moz","O"];function Dc(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Rc.hasOwnProperty(e)&&Rc[e]?(""+t).trim():t+"px"}Rc=Object.keys(Rc).reduce(((e,t)=>(Pc.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),Rc);const Mc={};var Nc;Ws=e=>new sc(e),Nc=e=>{const t=e.output.map((e=>e.replace(Lc,Oc))).map((e=>e.replace(Tc,Oc))),n=t[0].match(_c).map((()=>[]));t.forEach((e=>{e.match(_c).forEach(((e,t)=>n[t].push(+e)))}));const r=t[0].match(_c).map(((t,r)=>Qs(Ds({},e,{output:n[r]}))));return e=>{let n=0;return t[0].replace(_c,(()=>r[n++](e))).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,((e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`))}},qs=Nc,Zs=cc,function(e,t){Fs={fn:e,transform:t}}(((e,t)=>{if(!e.nodeType||void 0===e.setAttribute)return!1;{const i=t.style,o=t.children,a=t.scrollTop,l=t.scrollLeft,s=Ms(t,["style","children","scrollTop","scrollLeft"]),c="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;void 0!==a&&(e.scrollTop=a),void 0!==l&&(e.scrollLeft=l),void 0!==o&&(e.textContent=o);for(let t in i)if(i.hasOwnProperty(t)){var n=0===t.indexOf("--"),r=Dc(t,i[t],n);"float"===t&&(t="cssFloat"),n?e.style.setProperty(t,r):e.style[t]=r}for(let t in s){const n=c?t:Mc[t]||(Mc[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())));void 0!==e.getAttribute(n)&&e.setAttribute(n,s[t])}}}),(e=>e));var jc;const Vc=(jc=e=>G(((t,n)=>{const r=function(){const e=W(!1)[1];return Q((()=>e((e=>!e))),[])}(),i=K(!0),o=K(null),a=K(null),l=Q((e=>{const t=o.current;o.current=new Xs(e,(()=>{let e=!1;a.current&&(e=Fs.fn(a.current,o.current.getAnimatedValue())),a.current&&!1!==e||r()})),t&&t.detach()}),[]);U((()=>()=>{i.current=!1,o.current&&o.current.detach()}),[]),ne(n,(()=>(e=>e.current)(a))),l(t);const s=o.current.getValue();s.scrollTop,s.scrollLeft;const c=Ms(s,["scrollTop","scrollLeft"]),d=(u=e,!Ns.fun(u)||u.prototype instanceof q.Component?e=>a.current=function(e,t){return t&&(Ns.fun(t)?t(e):Ns.obj(t)&&(t.current=e)),e}(e,n):void 0);var u;return q.createElement(e,Ds({},c,{ref:d}))})),e=>(Ns.arr(e)?e:Object.keys(e)).reduce(((e,t)=>{const n=t;return e[n]=jc(n),e}),jc))(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);function Ic(e,t){return e.map((function(e,n){return e+t[n]}))}function zc(e,t){return e.map((function(e,n){return e-t[n]}))}function Ac(e){return Math.hypot.apply(Math,e)}function Hc(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function Bc(e,t,n){return 0===t||Math.abs(t)===1/0?function(e,t){return Math.pow(e,5*t)}(e,n):e*t*n/(t+n*e)}function Fc(e,t,n,r){return void 0===r&&(r=.15),0===r?function(e,t,n){return Math.max(t,Math.min(e,n))}(e,t,n):e<t?-Bc(t-e,n-t,r)+t:e>n?+Bc(e-n,n-t,r)+n:e}function Zc(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}function qc(){return qc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qc.apply(this,arguments)}function Gc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Wc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Uc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Xc(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Uc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Uc(e,t):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function Yc(){}function Kc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?Yc:1===t.length?t[0]:function(){for(var e,n,r=Xc(t);!(n=r()).done;){e=n.value.apply(this,arguments)||e}return e}}function Jc(e,t){if(void 0===e){if(void 0===t)throw new Error("Must define fallback value if undefined is expected");e=t}return Array.isArray(e)?e:[e,e]}function Qc(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}return e}function ed(e,t){void 0===e&&(e={});for(var n={},r=0,i=Object.entries(t);r<i.length;r++){var o=i[r],a=o[0],l=o[1];switch(typeof l){case"function":n[a]=l.call(n,e[a],a,e);break;case"object":n[a]=ed(e[a],l);break;case"boolean":l&&(n[a]=e[a])}}return n}var td=qc({},{threshold:function(e){return void 0===e&&(e=0),Jc(e)},rubberband:function(e){switch(void 0===e&&(e=0),e){case!0:return Jc(.15);case!1:return Jc(0);default:return Jc(e)}},enabled:function(e){return void 0===e&&(e=!0),e},triggerAllEvents:function(e){return void 0===e&&(e=!1),e},initial:function(e){return void 0===e&&(e=0),"function"==typeof e?e:Jc(e)}},{axis:!0,lockDirection:function(e){return void 0===e&&(e=!1),e},bounds:function(e){if(void 0===e&&(e={}),"function"==typeof e)return function(t){return td.bounds(e(t))};var t=e,n=t.left,r=void 0===n?-1/0:n,i=t.right,o=void 0===i?1/0:i,a=t.top,l=void 0===a?-1/0:a,s=t.bottom;return[[r,o],[l,void 0===s?1/0:s]]}}),nd="undefined"!=typeof window&&window.document&&window.document.createElement,rd={enabled:function(e){return void 0===e&&(e=!0),e},domTarget:!0,window:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return void 0===e&&(e=nd?window:void 0),e})),eventOptions:function(e){var t=void 0===e?{}:e,n=t.passive,r=void 0===n||n,i=t.capture;return{passive:r,capture:void 0!==i&&i}}},id=qc({},td,{threshold:function(e,t,n){var r=n.filterTaps,i=void 0!==r&&r,o=n.lockDirection,a=void 0!==o&&o,l=n.axis,s=Jc(e,i?3:a||(void 0===l?void 0:l)?1:0);return this.filterTaps=i||s[0]+s[1]>0,s},swipeVelocity:function(e){return void 0===e&&(e=.5),Jc(e)},swipeDistance:function(e){return void 0===e&&(e=60),Jc(e)},delay:function(e){switch(void 0===e&&(e=0),e){case!0:return 180;case!1:return 0;default:return e}}});function od(e){var t=e.domTarget,n=e.eventOptions,r=e.window,i=e.enabled,o=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["domTarget","eventOptions","window","enabled"]),a=function(e){return void 0===e&&(e={}),ed(e,rd)}({domTarget:t,eventOptions:n,window:r,enabled:i});return a.drag=function(e){return void 0===e&&(e={}),ed(e,id)}(o),a}function ad(e){return qc({_active:!1,_blocked:!1,_intentional:[!1,!1],_movement:[0,0],_initial:[0,0],_bounds:[[-1/0,1/0],[-1/0,1/0]],_lastEventType:void 0,event:void 0,intentional:!1,values:[0,0],velocities:[0,0],delta:[0,0],movement:[0,0],offset:[0,0],lastOffset:[0,0],direction:[0,0],initial:[0,0],previous:[0,0],first:!1,last:!1,active:!1,timeStamp:0,startTime:0,elapsedTime:0,cancel:Yc,canceled:!1,memo:void 0,args:void 0},e)}function ld(){return{shared:{hovering:!1,scrolling:!1,wheeling:!1,dragging:!1,moving:!1,pinching:!1,touches:0,buttons:0,down:!1,shiftKey:!1,altKey:!1,metaKey:!1,ctrlKey:!1},drag:ad({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0,_isTap:!0,_delayedEvent:!1,_pointerId:void 0,tap:!1,swipe:[0,0]}),pinch:ad({da:[0,0],vdva:[0,0],origin:void 0,turns:0}),wheel:ad({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),move:ad({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),scroll:ad({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0})}}var sd=new Map,cd=function(){function e(e,t){var n=this;void 0===t&&(t=[]),this.controller=e,this.args=t,this.debounced=!0,this.setTimeout=function(e,t){var r;void 0===t&&(t=140),clearTimeout(n.controller.timeouts[n.stateKey]);for(var i=arguments.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];n.controller.timeouts[n.stateKey]=(r=window).setTimeout.apply(r,[e,t].concat(o))},this.clearTimeout=function(){clearTimeout(n.controller.timeouts[n.stateKey])},this.fireGestureHandler=function(e){if(void 0===e&&(e=!1),n.state._blocked)return n.debounced||(n.state._active=!1,n.clean()),null;if(!e&&!n.state.intentional&&!n.config.triggerAllEvents)return null;if(n.state.intentional){var t=n.state.active,r=n.state._active;n.state.active=r,n.state.first=r&&!t,n.state.last=t&&!r,n.controller.state.shared[n.ingKey]=r}var i=qc({},n.controller.state.shared,n.state,n.mapStateValues(n.state)),o=n.handler(i);return n.state.memo=void 0!==o?o:n.state.memo,n.state._active||n.clean(),i}}var t=e.prototype;return t.updateSharedState=function(e){Object.assign(this.controller.state.shared,e)},t.updateGestureState=function(e){Object.assign(this.state,e)},t.checkIntentionality=function(e,t){return{_intentional:e,_blocked:!1}},t.getMovement=function(e){var t=this.config,n=t.initial,r=t.bounds,i=t.rubberband,o=t.threshold,a=this.state,l=a._bounds,s=a._initial,c=a._active,d=a._intentional,u=a.lastOffset,p=a.movement,h=this.getInternalMovement(e,this.state),f=!1===d[0]?dd(h[0],o[0]):d[0],g=!1===d[1]?dd(h[1],o[1]):d[1],v=this.checkIntentionality([f,g],h);if(v._blocked)return qc({},v,{_movement:h,delta:[0,0]});var m,x,b,y,C=v._intentional,w=h;(!1!==C[0]&&!1===d[0]&&(x=Qc(n,this.state),m=Qc(r,this.state),s[0]=x[0],l[0]=m[0]),!1!==C[1]&&!1===d[1])&&(x=null!=(b=x)?b:Qc(n,this.state),m=null!=(y=m)?y:Qc(r,this.state),s[1]=x[1],l[1]=m[1]);var $=[!1!==C[0]?h[0]-C[0]:s[0],!1!==C[1]?h[1]-C[1]:s[1]],k=Ic($,u),S=c?i:[0,0];return $=ud(l,Ic($,s),S),qc({},v,{intentional:!1!==C[0]||!1!==C[1],_initial:s,_movement:w,movement:$,values:e,offset:ud(l,k,S),delta:zc($,p)})},t.clean=function(){this.clearTimeout()},Zc(e,[{key:"config",get:function(){return this.controller.config[this.stateKey]}},{key:"enabled",get:function(){return this.controller.config.enabled&&this.config.enabled}},{key:"state",get:function(){return this.controller.state[this.stateKey]}},{key:"handler",get:function(){return this.controller.handlers[this.stateKey]}}]),e}();function dd(e,t){return Math.abs(e)>=t&&Hc(e)*t}function ud(e,t,n){var r=t[0],i=t[1],o=n[0],a=n[1],l=e[0],s=l[0],c=l[1],d=e[1],u=d[0],p=d[1];return[Fc(r,s,c,o),Fc(i,u,p,a)]}function pd(e,t,n){var r=e.state,i=e.args,o=t.timeStamp,a=t.type,l=r.values;return{_lastEventType:a,event:t,timeStamp:o,elapsedTime:n?0:o-r.startTime,args:i,previous:l}}function hd(e,t){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return e.call.apply(e,[this,qc({},t,{event:n})].concat(i))}}var fd=function(e){var t=this;this.classes=e,this.bind=function(){for(var e={},n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(var o,a=Xc(t.classes);!(o=a()).done;){new(0,o.value)(t,r).addBindings(e)}for(var l=0,s=Object.entries(t.nativeRefs);l<s.length;l++){var c=s[l];md(e,c[0],hd(c[1],qc({},t.state.shared,{args:r})))}return t.config.domTarget?function(e,t){var n=e.config,r=e.domListeners,i=vd(n);if(!i)throw new Error("domTarget must be defined");var o=n.eventOptions;bd(i,gd(r),o);for(var a=0,l=Object.entries(t);a<l.length;a++){var s=l[a],c=s[0],d=s[1],u=c.slice(2).toLowerCase();r.push([u,Kc.apply(void 0,d)])}xd(i,r,o)}(t,e):function(e,t){for(var n=e.config,r={},i=n.eventOptions.capture?"Capture":"",o=0,a=Object.entries(t);o<a.length;o++){var l=a[o],s=l[0],c=l[1],d=Array.isArray(c)?c:[c];r[s+i]=Kc.apply(void 0,d)}return r}(t,e)},this.effect=function(){return t.config.domTarget&&t.bind(),t.clean},this.clean=function(){var e=vd(t.config),n=t.config.eventOptions;e&&bd(e,gd(t.domListeners),n),Object.values(t.timeouts).forEach(clearTimeout),function(e){var t=e.config,n=t.window,r=t.eventOptions,i=e.windowListeners;if(!n)return;for(var o in i){bd(n,i[o],r)}e.windowListeners={}}(t)},this.state=ld(),this.timeouts={},this.domListeners=[],this.windowListeners={}};function gd(e){return void 0===e&&(e=[]),e.splice(0,e.length)}function vd(e){var t=e.domTarget;return t&&"current"in t?t.current:t}function md(e,t,n){e[t]||(e[t]=[]),e[t].push(n)}function xd(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,i=Xc(t);!(r=i()).done;){var o=r.value,a=o[0],l=o[1];e.addEventListener(a,l,n)}}function bd(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,i=Xc(t);!(r=i()).done;){var o=r.value,a=o[0],l=o[1];e.removeEventListener(a,l,n)}}function yd(e,t,n){void 0===n&&(n={});var r=function(e){var t=new Set;e.drag&&t.add(sd.get("drag"));e.wheel&&t.add(sd.get("wheel"));e.scroll&&t.add(sd.get("scroll"));e.move&&t.add(sd.get("move"));e.pinch&&t.add(sd.get("pinch"));e.hover&&t.add(sd.get("hover"));return t}(e),i=q.useMemo((function(){return new fd(r)}),[]);return i.config=t,i.handlers=e,i.nativeRefs=n,q.useEffect(i.effect,[]),i.config.domTarget?Cd:i.bind}function Cd(){"development"===process.env.NODE_ENV&&console.warn("Deprecation notice: When the `domTarget` option is specified, you don't need to write `useEffect(bind, [bind])` anymore: event binding is now made handled internally to this lib.\n\nNext version won't return anything when `domTarget` is provided, therefore your code will break if you try to call `useEffect`.")}function wd(e){if("touches"in e){var t=e.targetTouches,n=e.changedTouches;return t.length>0?t:n}return null}function $d(e){var t="buttons"in e?e.buttons:0,n=wd(e),r=n&&n.length||0;return{touches:r,down:r>0||t>0,buttons:t,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey}}function kd(e){var t=wd(e),n=t?t[0]:e;return[n.clientX,n.clientY]}var Sd=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).ingKey="dragging",t.stateKey="drag",t.onDragStart=function(e){t.enabled&&!t.state._active&&(!function(e,t,n){var r=e.config,i=e.windowListeners;void 0===n&&(n=[]),r.window&&(bd(r.window,i[t],r.eventOptions),xd(r.window,i[t]=n,r.eventOptions))}(t.controller,t.stateKey,[["pointermove",t.onDragChange],["pointerup",t.onDragEnd],["pointercancel",t.onDragEnd]]),t.updateGestureState({_pointerId:e.pointerId}),t.config.delay>0?(t.state._delayedEvent=!0,"persist"in e&&"function"==typeof e.persist&&e.persist(),t.setTimeout(t.startDrag.bind(Wc(t)),t.config.delay,e)):t.startDrag(e))},t.onDragChange=function(e){if(!t.state.canceled&&e.pointerId===t.state._pointerId)if(t.state._active){var n=$d(e);if(n.down){t.updateSharedState(n);var r=kd(e),i=t.getKinematics(r,e),o=pd(Wc(t),e),a=t.state._isTap,l=Ac(i._movement);a&&l>=3&&(a=!1),t.updateGestureState(qc({},o,i,{_isTap:a})),t.fireGestureHandler()}else t.onDragEnd(e)}else t.state._delayedEvent&&(t.clearTimeout(),t.startDrag(e))},t.onDragEnd=function(e){if(e.pointerId===t.state._pointerId){t.state._active=!1,t.updateSharedState({down:!1,buttons:0,touches:0});var n=t.state._isTap,r=t.state.velocities,i=r[0],o=r[1],a=t.state.movement,l=a[0],s=a[1],c=t.state._intentional,d=c[0],u=c[1],p=t.config.swipeVelocity,h=p[0],f=p[1],g=t.config.swipeDistance,v=g[0],m=g[1],x=qc({},pd(Wc(t),e),t.getMovement(t.state.values)),b=[0,0];x.elapsedTime<220&&(!1!==d&&Math.abs(i)>h&&Math.abs(l)>v&&(b[0]=Hc(i)),!1!==u&&Math.abs(o)>f&&Math.abs(s)>m&&(b[1]=Hc(o))),t.updateGestureState(qc({},x,{tap:n,swipe:b})),t.fireGestureHandler(!0===n)}},t.clean=function(){e.prototype.clean.call(Wc(t)),t.state._delayedEvent=!1,function(e,t){var n=e.config,r=e.windowListeners;n.window&&(bd(n.window,r[t],n.eventOptions),delete r[t])}(t.controller,t.stateKey)},t.onCancel=function(){t.state.canceled||(t.updateGestureState({canceled:!0}),t.state._active=!1,t.updateSharedState({down:!1,buttons:0,touches:0}),requestAnimationFrame((function(){return t.fireGestureHandler()})))},t.onClick=function(e){t.state._isTap||e.stopPropagation()},t}Gc(t,e);var n=t.prototype;return n.startDrag=function(e){var t=kd(e);this.updateSharedState($d(e)),this.updateGestureState(qc({},function(e,t,n){var r=e.state.offset,i=n.timeStamp;return qc({},ld()[e.stateKey],{_active:!0,values:t,initial:t,offset:r,lastOffset:r,startTime:i})}(this,t,e),pd(this,e,!0),{_pointerId:e.pointerId,cancel:this.onCancel})),this.updateGestureState(this.getMovement(t)),this.fireGestureHandler()},n.addBindings=function(e){(md(e,"onPointerDown",this.onDragStart),this.config.filterTaps)&&md(e,this.controller.config.eventOptions.capture?"onClick":"onClickCapture",this.onClick)},t}(function(e){function t(){return e.apply(this,arguments)||this}Gc(t,e);var n=t.prototype;return n.getInternalMovement=function(e,t){return zc(e,t.initial)},n.checkIntentionality=function(e,t){if(!1===e[0]&&!1===e[1])return{_intentional:e,axis:this.state.axis};var n=t.map(Math.abs),r=n[0],i=n[1],o=this.state.axis||(r>i?"x":r<i?"y":void 0);return this.config.axis||this.config.lockDirection?o?this.config.axis&&o!==this.config.axis?{_intentional:e,_blocked:!0,axis:o}:(e["x"===o?1:0]=!1,{_intentional:e,_blocked:!1,axis:o}):{_intentional:[!1,!1],_blocked:!1,axis:o}:{_intentional:e,_blocked:!1,axis:o}},n.getKinematics=function(e,t){var n=this.getMovement(e);if(!n._blocked){var r=t.timeStamp-this.state.timeStamp;Object.assign(n,function(e,t,n){var r=Ac(t),i=0===r?0:1/r,o=0===n?0:1/n,a=o*r,l=t.map((function(e){return o*e})),s=t.map((function(e){return i*e}));return{velocities:l,velocity:a,distance:Ac(e),direction:s}}(n.movement,n.delta,r))}return n},n.mapStateValues=function(e){return{xy:e.values,vxvy:e.velocities}},t}(cd));function Ed(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,i,o;if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!Ed(e[r],t[r]))return!1;return!0}if("function"==typeof Map&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!Ed(r.value[1],t.get(r.value[0])))return!1;return!0}if("function"==typeof Set&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if("undefined"!=typeof Element&&e instanceof Element)return!1;for(r=n;0!=r--;)if(!("_owner"===i[r]&&e.$$typeof||Ed(e[i[r]],t[i[r]])))return!1;return!0}return e!=e&&t!=t}function Od(e,t){try{return Ed(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}function _d(e,t){void 0===t&&(t={}),sd.set("drag",Sd);var n=K();return n.current||(n.current=function(e,t){var n,r,i=[],o=!1;return function(){for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];return o&&n===this&&t(l,i)||(r=e.apply(this,l),o=!0,n=this,i=l),r}}(od,Od)),yd({drag:e},n.current(t))}
2328
+ ***************************************************************************** */var $a,ka,Sa=function(){return Sa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Sa.apply(this,arguments)};function Ea(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function Oa(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function _a(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function La(e,t,n){if(2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}!function(e){e.Start="xstate.start",e.Stop="xstate.stop",e.Raise="xstate.raise",e.Send="xstate.send",e.Cancel="xstate.cancel",e.NullEvent="",e.Assign="xstate.assign",e.After="xstate.after",e.DoneState="done.state",e.DoneInvoke="done.invoke",e.Log="xstate.log",e.Init="xstate.init",e.Invoke="xstate.invoke",e.ErrorExecution="error.execution",e.ErrorCommunication="error.communication",e.ErrorPlatform="error.platform",e.ErrorCustom="xstate.error",e.Update="xstate.update",e.Pure="xstate.pure",e.Choose="xstate.choose"}($a||($a={})),function(e){e.Parent="#_parent",e.Internal="#_internal"}(ka||(ka={}));var Ta=$a.Start,Ra=$a.Stop,Pa=$a.Raise,Da=$a.Send,Ma=$a.Cancel,Na=$a.NullEvent,ja=$a.Assign;$a.After,$a.DoneState;var Va=$a.Log,Ia=$a.Init,za=$a.Invoke;$a.ErrorExecution;var Aa,Ha=$a.ErrorPlatform,Ba=$a.ErrorCustom,Fa=$a.Update,Za=$a.Choose,qa=$a.Pure,Ga={},Wa="xstate.guard",Ua="production"===process.env.NODE_ENV;function Xa(e,t,n){void 0===n&&(n=".");var r=Ja(e,n),i=Ja(t,n);return fl(i)?!!fl(r)&&i===r:fl(r)?r in i:Object.keys(r).every((function(e){return e in i&&Xa(r[e],i[e])}))}function Ya(e){try{return fl(e)||"number"==typeof e?"".concat(e):e.type}catch(e){throw new Error("Events must be strings or objects with a string event.type property.")}}function Ka(e,t){try{return pl(e)?e:e.toString().split(t)}catch(t){throw new Error("'".concat(e,"' is not a valid state path."))}}function Ja(e,t){return"object"==typeof(n=e)&&"value"in n&&"context"in n&&"event"in n&&"_event"in n?e.value:pl(e)?Qa(e):"string"!=typeof e?e:Qa(Ka(e,t));var n}function Qa(e){if(1===e.length)return e[0];for(var t={},n=t,r=0;r<e.length-1;r++)r===e.length-2?n[e[r]]=e[r+1]:(n[e[r]]={},n=n[e[r]]);return t}function el(e,t){for(var n={},r=Object.keys(e),i=0;i<r.length;i++){var o=r[i];n[o]=t(e[o],o,e,i)}return n}function tl(e,t,n){var r,i,o={};try{for(var a=Oa(Object.keys(e)),l=a.next();!l.done;l=a.next()){var s=l.value,c=e[s];n(c)&&(o[s]=t(c,s,e))}}catch(e){r={error:e}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}var nl=function(e){return function(t){var n,r,i=t;try{for(var o=Oa(e),a=o.next();!a.done;a=o.next()){i=i[a.value]}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}};function rl(e){return e?fl(e)?[[e]]:il(Object.keys(e).map((function(t){var n=e[t];return"string"==typeof n||n&&Object.keys(n).length?rl(e[t]).map((function(e){return[t].concat(e)})):[[t]]}))):[[]]}function il(e){var t;return(t=[]).concat.apply(t,La([],_a(e),!1))}function ol(e){return pl(e)?e:[e]}function al(e){return void 0===e?[]:ol(e)}function ll(e,t,n){var r,i;if(hl(e))return e(t,n.data);var o={};try{for(var a=Oa(Object.keys(e)),l=a.next();!l.done;l=a.next()){var s=l.value,c=e[s];hl(c)?o[s]=c(t,n.data):o[s]=c}}catch(e){r={error:e}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}function sl(e){return e instanceof Promise||!(null===e||!hl(e)&&"object"!=typeof e||!hl(e.then))}function cl(e,t){return el(e.states,(function(e,n){if(e){var r=(fl(t)?void 0:t[n])||(e?e.current:void 0);if(r)return{current:r,states:cl(e,r)}}}))}function dl(e,t,n,r){Ua||ul(!!e,"Attempting to update undefined context");var i=e?n.reduce((function(e,n){var i,o,a=n.assignment,l={state:r,action:n,_event:t},s={};if(hl(a))s=a(e,t.data,l);else try{for(var c=Oa(Object.keys(a)),d=c.next();!d.done;d=c.next()){var u=d.value,p=a[u];s[u]=hl(p)?p(e,t.data,l):p}}catch(e){i={error:e}}finally{try{d&&!d.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}return Object.assign({},e,s)}),e):e;return i}var ul=function(){};function pl(e){return Array.isArray(e)}function hl(e){return"function"==typeof e}function fl(e){return"string"==typeof e}function gl(e,t){if(e)return fl(e)?{type:Wa,name:e,predicate:t?t[e]:void 0}:hl(e)?{type:Wa,name:e.name,predicate:e}:e}Ua||(ul=function(e,t){var n=e instanceof Error?e:void 0;if((n||!e)&&void 0!==console){var r=["Warning: ".concat(t)];n&&r.push(n),console.warn.apply(console,r)}});var vl=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function ml(e){return!!e&&"__xstatenode"in e}function xl(e,t){return fl(e)||"number"==typeof e?Sa({type:e},t):e}function bl(e,t){if(!fl(e)&&"$$type"in e&&"scxml"===e.$$type)return e;var n=xl(e);return Sa({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function yl(e,t){return ol(t).map((function(t){return void 0===t||"string"==typeof t||ml(t)?{target:t,event:e}:Sa(Sa({},t),{event:e})}))}function Cl(e,t,n,r,i){var o=e.options.guards,a={state:i,cond:t,_event:r};if(t.type===Wa)return((null==o?void 0:o[t.name])||t.predicate)(n,r.data,a);var l=null==o?void 0:o[t.type];if(!l)throw new Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return l(n,r.data,a)}function wl(e){return"string"==typeof e?{type:e}:e}function $l(e,t,n){var r=function(){},i="object"==typeof e,o=i?e:null;return{next:((i?e.next:e)||r).bind(o),error:((i?e.error:t)||r).bind(o),complete:((i?e.complete:n)||r).bind(o)}}function kl(e,t){return"".concat(e,":invocation[").concat(t,"]")}function Sl(e){return(e.type===Pa||e.type===Da&&e.to===ka.Internal)&&"number"!=typeof e.delay}(Aa={})[vl]=function(){return this},Aa[Symbol.observable]=function(){return this};var El=bl({type:Ia});function Ol(e,t){return t&&t[e]||void 0}function _l(e,t){var n;if(fl(e)||"number"==typeof e)n=hl(r=Ol(e,t))?{type:e,exec:r}:r||{type:e,exec:void 0};else if(hl(e))n={type:e.name||e.toString(),exec:e};else{var r;if(hl(r=Ol(e.type,t)))n=Sa(Sa({},e),{exec:r});else if(r){var i=r.type||e.type;n=Sa(Sa(Sa({},r),e),{type:i})}else n=e}return n}var Ll=function(e,t){return e?(pl(e)?e:[e]).map((function(e){return _l(e,t)})):[]};function Tl(e){var t=_l(e);return Sa(Sa({id:fl(e)?e:t.id},t),{type:t.type})}function Rl(e,t){var n="".concat($a.DoneState,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function Pl(e,t){var n="".concat($a.DoneInvoke,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function Dl(e,t){var n="".concat($a.ErrorPlatform,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function Ml(e,t,n,r,i,o,a){void 0===a&&(a=!1);var l=a?[]:function(e){var t,n,r=[];try{for(var i=Oa(e),o=i.next();!o.done;o=i.next())for(var a=o.value,l=0;l<a.actions.length;)a.actions[l].type!==ja?l++:(r.push(a.actions[l]),a.actions.splice(l,1))}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}(i),s=l.length?dl(n,r,l,t):n,c=a?[n]:void 0,d=[];function u(i,l){var u;switch(l.type){case Pa:var p=function(e,t,n,r){var i,o={_event:n},a=bl(hl(e.event)?e.event(t,n.data,o):e.event);if(fl(e.delay)){var l=r&&r[e.delay];i=hl(l)?l(t,n.data,o):l}else i=hl(e.delay)?e.delay(t,n.data,o):e.delay;return Sa(Sa({},e),{type:Pa,_event:a,delay:i})}(l,s,r,e.options.delays);return o&&"number"==typeof p.delay&&o(p,s,r),p;case Da:var h=function(e,t,n,r){var i,o={_event:n},a=bl(hl(e.event)?e.event(t,n.data,o):e.event);if(fl(e.delay)){var l=r&&r[e.delay];i=hl(l)?l(t,n.data,o):l}else i=hl(e.delay)?e.delay(t,n.data,o):e.delay;var s=hl(e.to)?e.to(t,n.data,o):e.to;return Sa(Sa({},e),{to:s,_event:a,event:a.data,delay:i})}(l,s,r,e.options.delays);if(!Ua){var f=l.delay;ul(!fl(f)||"number"==typeof h.delay,"No delay reference for delay expression '".concat(f,"' was found on machine '").concat(e.id,"'"))}return o&&h.to!==ka.Internal&&("entry"===i?d.push(h):o(h,s,r)),h;case Va:var g=function(e,t,n){return Sa(Sa({},e),{value:fl(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})}(l,s,r);return null==o||o(g,s,r),g;case Za:if(!(b=null===(u=l.conds.find((function(n){var i=gl(n.cond,e.options.guards);return!i||Cl(e,i,s,r,o?void 0:t)})))||void 0===u?void 0:u.actions))return[];var v=_a(Ml(e,t,s,r,[{type:i,actions:Ll(al(b),e.options.actions)}],o,a),2),m=v[0],x=v[1];return s=x,null==c||c.push(s),m;case qa:var b;if(!(b=l.get(s,r.data)))return[];var y=_a(Ml(e,t,s,r,[{type:i,actions:Ll(al(b),e.options.actions)}],o,a),2),C=y[0],w=y[1];return s=w,null==c||c.push(s),C;case Ra:g=function(e,t,n){var r=hl(e.activity)?e.activity(t,n.data):e.activity,i="string"==typeof r?{id:r}:r;return{type:$a.Stop,activity:i}}(l,s,r);return null==o||o(g,n,r),g;case ja:s=dl(s,r,[l],o?void 0:t),null==c||c.push(s);break;default:var $=_l(l,e.options.actions),k=$.exec;if(o)o($,s,r);else if(k&&c){var S=c.length-1,E=Sa(Sa({},$),{exec:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];k.apply(void 0,La([c[S]],_a(t),!1))}});$=E}return $}}var p=il(i.map((function(e){var t,n,i=[];try{for(var a=Oa(e.actions),l=a.next();!l.done;l=a.next()){var c=l.value,p=u(e.type,c);p&&(i=i.concat(p))}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return d.forEach((function(e){o(e,s,r)})),d.length=0,i})));return[p,s]}var Nl=function(e,t){return t(e)};function jl(e){var t;return(t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}})[vl]=function(){return this},t}function Vl(e,t,n){var r=jl(t);if(r.deferred=!0,ml(e)){var i=r.state=Nl(void 0,(function(){return(n?e.withContext(n):e).initialState}));r.getSnapshot=function(){return i}}return r}var Il=function(e){return"atomic"===e.type||"final"===e.type};function zl(e){return Object.keys(e.states).map((function(t){return e.states[t]}))}function Al(e){return zl(e).filter((function(e){return"history"!==e.type}))}function Hl(e){var t=[e];return Il(e)?t:t.concat(il(Al(e).map(Hl)))}function Bl(e,t){var n,r,i,o,a,l,s,c,d=Zl(new Set(e)),u=new Set(t);try{for(var p=Oa(u),h=p.next();!h.done;h=p.next())for(var f=($=h.value).parent;f&&!u.has(f);)u.add(f),f=f.parent}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}var g=Zl(u);try{for(var v=Oa(u),m=v.next();!m.done;m=v.next()){if("compound"!==($=m.value).type||g.get($)&&g.get($).length){if("parallel"===$.type)try{for(var x=(a=void 0,Oa(Al($))),b=x.next();!b.done;b=x.next()){var y=b.value;u.has(y)||(u.add(y),d.get(y)?d.get(y).forEach((function(e){return u.add(e)})):y.initialStateNodes.forEach((function(e){return u.add(e)})))}}catch(e){a={error:e}}finally{try{b&&!b.done&&(l=x.return)&&l.call(x)}finally{if(a)throw a.error}}}else d.get($)?d.get($).forEach((function(e){return u.add(e)})):$.initialStateNodes.forEach((function(e){return u.add(e)}))}}catch(e){i={error:e}}finally{try{m&&!m.done&&(o=v.return)&&o.call(v)}finally{if(i)throw i.error}}try{for(var C=Oa(u),w=C.next();!w.done;w=C.next()){var $;for(f=($=w.value).parent;f&&!u.has(f);)u.add(f),f=f.parent}}catch(e){s={error:e}}finally{try{w&&!w.done&&(c=C.return)&&c.call(C)}finally{if(s)throw s.error}}return u}function Fl(e,t){var n=t.get(e);if(!n)return{};if("compound"===e.type){var r=n[0];if(!r)return{};if(Il(r))return r.key}var i={};return n.forEach((function(e){i[e.key]=Fl(e,t)})),i}function Zl(e){var t,n,r=new Map;try{for(var i=Oa(e),o=i.next();!o.done;o=i.next()){var a=o.value;r.has(a)||r.set(a,[]),a.parent&&(r.has(a.parent)||r.set(a.parent,[]),r.get(a.parent).push(a))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}function ql(e,t){return Fl(e,Zl(Bl([e],t)))}function Gl(e,t){return Array.isArray(e)?e.some((function(e){return e===t})):e instanceof Set&&e.has(t)}function Wl(e,t){return"compound"===t.type?Al(t).some((function(t){return"final"===t.type&&Gl(e,t)})):"parallel"===t.type&&Al(t).every((function(t){return Wl(e,t)}))}function Ul(e){return new Set(il(e.map((function(e){return e.tags}))))}function Xl(e,t){if(e===t)return!0;if(void 0===e||void 0===t)return!1;if(fl(e)||fl(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((function(n){return Xl(e[n],t[n])}))}var Yl=function(){function e(e){var t,n,r=this;this.actions=[],this.activities=Ga,this.meta={},this.events=[],this.value=e.value,this.context=e.context,this._event=e._event,this._sessionid=e._sessionid,this.event=this._event.data,this.historyValue=e.historyValue,this.history=e.history,this.actions=e.actions||[],this.activities=e.activities||Ga,this.meta=(void 0===(n=e.configuration)&&(n=[]),n.reduce((function(e,t){return void 0!==t.meta&&(e[t.id]=t.meta),e}),{})),this.events=e.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=e.configuration,this.transitions=e.transitions,this.children=e.children,this.done=!!e.done,this.tags=null!==(t=Array.isArray(e.tags)?new Set(e.tags):e.tags)&&void 0!==t?t:new Set,this.machine=e.machine,Object.defineProperty(this,"nextEvents",{get:function(){return function(e){return La([],_a(new Set(il(La([],_a(e.map((function(e){return e.ownEvents}))),!1)))),!1)}(r.configuration)}})}return e.from=function(t,n){return t instanceof e?t.context!==n?new e({value:t.value,context:n,_event:t._event,_sessionid:null,historyValue:t.historyValue,history:t.history,actions:[],activities:t.activities,events:[],configuration:[],transitions:[],children:{}}):t:new e({value:t,context:n,_event:El,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,events:[],configuration:[],transitions:[],children:{}})},e.create=function(t){return new e(t)},e.inert=function(t,n){if(t instanceof e){if(!t.actions.length)return t;var r=El;return new e({value:t.value,context:n,_event:r,_sessionid:null,historyValue:t.historyValue,history:t.history,activities:t.activities,configuration:t.configuration,transitions:[],children:{}})}return e.from(t,n)},e.prototype.toStrings=function(e,t){var n=this;if(void 0===e&&(e=this.value),void 0===t&&(t="."),fl(e))return[e];var r=Object.keys(e);return r.concat.apply(r,La([],_a(r.map((function(r){return n.toStrings(e[r],t).map((function(e){return r+t+e}))}))),!1))},e.prototype.toJSON=function(){var e=this;e.configuration,e.transitions;var t=e.tags;e.machine;var n=Ea(e,["configuration","transitions","tags","machine"]);return Sa(Sa({},n),{tags:Array.from(t)})},e.prototype.matches=function(e){return Xa(e,this.value)},e.prototype.hasTag=function(e){return this.tags.has(e)},e.prototype.can=function(e){var t;Ua&&ul(!!this.machine,"state.can(...) used outside of a machine-created State object; this will always return false.");var n=null===(t=this.machine)||void 0===t?void 0:t.getTransitionData(this,e);return!!(null==n?void 0:n.transitions.length)&&n.transitions.some((function(e){return void 0!==e.target||e.actions.length}))},e}(),Kl={deferEvents:!1},Jl=function(){function e(e){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=Sa(Sa({},Kl),e)}return e.prototype.initialize=function(e){if(this.initialized=!0,e){if(!this.options.deferEvents)return void this.schedule(e);this.process(e)}this.flushEvents()},e.prototype.schedule=function(e){if(this.initialized&&!this.processingEvent){if(0!==this.queue.length)throw new Error("Event queue should be empty when it is not processing events");this.process(e),this.flushEvents()}else this.queue.push(e)},e.prototype.clear=function(){this.queue=[]},e.prototype.flushEvents=function(){for(var e=this.queue.shift();e;)this.process(e),e=this.queue.shift()},e.prototype.process=function(e){this.processingEvent=!0;try{e()}catch(e){throw this.clear(),e}finally{this.processingEvent=!1}},e}(),Ql=new Map,es=0,ts=function(){return"x:".concat(es++)},ns=function(e,t){return Ql.set(e,t),e},rs=function(e){return Ql.get(e)},is=function(e){Ql.delete(e)};function os(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void(Ua||console.warn("XState could not find a global object in this environment. Please let the maintainers know and raise an issue here: https://github.com/statelyai/xstate/issues"))}function as(e){if(os()){var t=function(){var e=os();if(e&&"__xstate__"in e)return e.__xstate__}();t&&t.register(e)}}function ls(e,t){void 0===t&&(t={});var n=e.initialState,r=new Set,i=[],o=!1,a=function(e){var t;return Sa(((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[vl]=function(){return this},t),e)}({id:t.id,send:function(t){i.push(t),function(){if(!o){for(o=!0;i.length>0;){var t=i.shift();n=e.transition(n,t,l),r.forEach((function(e){return e.next(n)}))}o=!1}}()},getSnapshot:function(){return n},subscribe:function(e,t,i){var o=$l(e,t,i);return r.add(o),o.next(n),{unsubscribe:function(){r.delete(o)}}}}),l={parent:t.parent,self:a,id:t.id||"anonymous",observers:r};return n=e.start?e.start(l):n,a}var ss,cs={sync:!1,autoForward:!1};!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(ss||(ss={}));var ds=function(){function e(t,n){void 0===n&&(n=e.defaultOptions);var r=this;this.machine=t,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=ss.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(e,t){if(pl(e))return r.batch(e),r.state;var n=bl(xl(e,t));if(r.status===ss.Stopped)return Ua||ul(!1,'Event "'.concat(n.name,'" was sent to stopped service "').concat(r.machine.id,'". This service has already reached its final state, and will not transition.\nEvent: ').concat(JSON.stringify(n.data))),r.state;if(r.status!==ss.Running&&!r.options.deferEvents)throw new Error('Event "'.concat(n.name,'" was sent to uninitialized service "').concat(r.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.\nEvent: ').concat(JSON.stringify(n.data)));return r.scheduler.schedule((function(){r.forward(n);var e=r._nextState(n);r.update(e,n)})),r._state},this.sendTo=function(e,t,n){var i,o=r.parent&&(t===ka.Parent||r.parent.id===t),a=o?r.parent:fl(t)?t===ka.Internal?r:r.children.get(t)||rs(t):(i=t)&&"function"==typeof i.send?t:void 0;if(a)if("machine"in a){if(r.status!==ss.Stopped||r.parent!==a||r.state.done){var l=Sa(Sa({},e),{name:e.name===Ba?"".concat(Dl(r.id)):e.name,origin:r.sessionId});!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([a,l]):a.send(l)}}else!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([a,e.data]):a.send(e.data);else{if(!o)throw new Error("Unable to send event to child '".concat(t,"' from service '").concat(r.id,"'."));Ua||ul(!1,"Service '".concat(r.id,"' has no parent: unable to send event ").concat(e.type))}},this._exec=function(e,t,n,i){void 0===i&&(i=r.machine.options.actions);var o=e.exec||Ol(e.type,i),a=hl(o)?o:o?o.exec:e.exec;if(a)try{return a(t,n.data,r.machine.config.predictableActionArguments?{action:e,_event:n}:{action:e,state:r.state,_event:n})}catch(e){throw r.parent&&r.parent.send({type:"xstate.error",data:e}),e}switch(e.type){case Pa:var l=e;r.defer(l);break;case Da:var s=e;if("number"==typeof s.delay)return void r.defer(s);s.to?r.sendTo(s._event,s.to,n===El):r.send(s._event);break;case Ma:r.cancel(e.sendId);break;case Ta:if(r.status!==ss.Running)return;var c=e.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[c.id||c.type])break;if(c.type===$a.Invoke){var d=wl(c.src),u=r.machine.options.services?r.machine.options.services[d.type]:void 0,p=c.id,h=c.data;Ua||ul(!("forward"in c),"`forward` property is deprecated (found in invocation of '".concat(c.src,"' in in machine '").concat(r.machine.id,"'). ")+"Please use `autoForward` instead.");var f="autoForward"in c?c.autoForward:!!c.forward;if(!u)return void(Ua||ul(!1,"No service found for invocation '".concat(c.src,"' in machine '").concat(r.machine.id,"'.")));var g=h?ll(h,t,n):void 0;if("string"==typeof u)return;var v=hl(u)?u(t,n.data,{data:g,src:d,meta:c.meta}):u;if(!v)return;var m=void 0;ml(v)&&(v=g?v.withContext(g):v,m={autoForward:f}),r.spawn(v,p,m)}else r.spawnActivity(c);break;case Ra:r.stopChild(e.activity.id);break;case Va:var x=e,b=x.label,y=x.value;b?r.logger(b,y):r.logger(y);break;default:Ua||ul(!1,"No implementation found for action type '".concat(e.type,"'"))}};var i=Sa(Sa({},e.defaultOptions),n),o=i.clock,a=i.logger,l=i.parent,s=i.id,c=void 0!==s?s:t.id;this.id=c,this.logger=a,this.clock=o,this.parent=l,this.options=i,this.scheduler=new Jl({deferEvents:this.options.deferEvents}),this.sessionId=ts()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this;return this._initialState?this._initialState:Nl(this,(function(){return e._initialState=e.machine.initialState,e._initialState}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return Ua||ul(this.status!==ss.NotStarted,"Attempted to read state from uninitialized service '".concat(this.id,"'. Make sure the service is started first.")),this._state},enumerable:!1,configurable:!0}),e.prototype.execute=function(e,t){var n,r;try{for(var i=Oa(e.actions),o=i.next();!o.done;o=i.next()){var a=o.value;this.exec(a,e,t)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e.prototype.update=function(e,t){var n,r,i,o,a,l,s,c,d=this;if(e._sessionid=this.sessionId,this._state=e,this.machine.config.predictableActionArguments&&t!==El||!this.options.execute)for(var u=void 0;u=this._outgoingQueue.shift();)u[0].send(u[1]);else this.execute(this.state);if(this.children.forEach((function(e){d.state.children[e.id]=e})),this.devTools&&this.devTools.send(t.data,e),e.event)try{for(var p=Oa(this.eventListeners),h=p.next();!h.done;h=p.next()){(0,h.value)(e.event)}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}try{for(var f=Oa(this.listeners),g=f.next();!g.done;g=f.next()){(0,g.value)(e,e.event)}}catch(e){i={error:e}}finally{try{g&&!g.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}try{for(var v=Oa(this.contextListeners),m=v.next();!m.done;m=v.next()){(0,m.value)(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(e){a={error:e}}finally{try{m&&!m.done&&(l=v.return)&&l.call(v)}finally{if(a)throw a.error}}if(this.state.done){var x=e.configuration.find((function(e){return"final"===e.type&&e.parent===d.machine})),b=x&&x.doneData?ll(x.doneData,e.context,t):void 0;this._doneEvent=Pl(this.id,b);try{for(var y=Oa(this.doneListeners),C=y.next();!C.done;C=y.next()){(0,C.value)(this._doneEvent)}}catch(e){s={error:e}}finally{try{C&&!C.done&&(c=y.return)&&c.call(y)}finally{if(s)throw s.error}}this._stop(),this._stopChildren(),is(this.sessionId)}},e.prototype.onTransition=function(e){return this.listeners.add(e),this.status===ss.Running&&e(this.state,this.state.event),this},e.prototype.subscribe=function(e,t,n){var r=this,i=$l(e,t,n);this.listeners.add(i.next),this.status!==ss.NotStarted&&i.next(this.state);var o=function(){r.doneListeners.delete(o),r.stopListeners.delete(o),i.complete()};return this.status===ss.Stopped?i.complete():(this.onDone(o),this.onStop(o)),{unsubscribe:function(){r.listeners.delete(i.next),r.doneListeners.delete(o),r.stopListeners.delete(o)}}},e.prototype.onEvent=function(e){return this.eventListeners.add(e),this},e.prototype.onSend=function(e){return this.sendListeners.add(e),this},e.prototype.onChange=function(e){return this.contextListeners.add(e),this},e.prototype.onStop=function(e){return this.stopListeners.add(e),this},e.prototype.onDone=function(e){return this.status===ss.Stopped&&this._doneEvent?e(this._doneEvent):this.doneListeners.add(e),this},e.prototype.off=function(e){return this.listeners.delete(e),this.eventListeners.delete(e),this.sendListeners.delete(e),this.stopListeners.delete(e),this.doneListeners.delete(e),this.contextListeners.delete(e),this},e.prototype.start=function(e){var t=this;if(this.status===ss.Running)return this;this.machine._init(),ns(this.sessionId,this),this.initialized=!0,this.status=ss.Running;var n=void 0===e?this.initialState:Nl(this,(function(){return"object"==typeof(n=e)&&null!==n&&"value"in n&&"_event"in n?t.machine.resolveState(e):t.machine.resolveState(Yl.from(e,t.machine.context));var n}));return this.options.devTools&&this.attachDev(),this.scheduler.initialize((function(){t.update(n,El)})),this},e.prototype._stopChildren=function(){this.children.forEach((function(e){hl(e.stop)&&e.stop()})),this.children.clear()},e.prototype._stop=function(){var e,t,n,r,i,o,a,l,s,c;try{for(var d=Oa(this.listeners),u=d.next();!u.done;u=d.next()){var p=u.value;this.listeners.delete(p)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}try{for(var h=Oa(this.stopListeners),f=h.next();!f.done;f=h.next()){(p=f.value)(),this.stopListeners.delete(p)}}catch(e){n={error:e}}finally{try{f&&!f.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}try{for(var g=Oa(this.contextListeners),v=g.next();!v.done;v=g.next()){p=v.value;this.contextListeners.delete(p)}}catch(e){i={error:e}}finally{try{v&&!v.done&&(o=g.return)&&o.call(g)}finally{if(i)throw i.error}}try{for(var m=Oa(this.doneListeners),x=m.next();!x.done;x=m.next()){p=x.value;this.doneListeners.delete(p)}}catch(e){a={error:e}}finally{try{x&&!x.done&&(l=m.return)&&l.call(m)}finally{if(a)throw a.error}}if(!this.initialized)return this;this.initialized=!1,this.status=ss.Stopped,this._initialState=void 0;try{for(var b=Oa(Object.keys(this.delayedEventsMap)),y=b.next();!y.done;y=b.next()){var C=y.value;this.clock.clearTimeout(this.delayedEventsMap[C])}}catch(e){s={error:e}}finally{try{y&&!y.done&&(c=b.return)&&c.call(b)}finally{if(s)throw s.error}}this.scheduler.clear(),this.scheduler=new Jl({deferEvents:this.options.deferEvents})},e.prototype.stop=function(){var e=this,t=this.scheduler;return this._stop(),t.schedule((function(){var t;if(!(null===(t=e._state)||void 0===t?void 0:t.done)){var n=bl({type:"xstate.stop"}),r=Nl(e,(function(){var t=il(La([],_a(e.state.configuration),!1).sort((function(e,t){return t.order-e.order})).map((function(t){return Ll(t.onExit,e.machine.options.actions)}))),r=_a(Ml(e.machine,e.state,e.state.context,n,[{type:"exit",actions:t}],e.machine.config.predictableActionArguments?e._exec:void 0,e.machine.config.predictableActionArguments||e.machine.config.preserveActionOrder),2),i=r[0],o=r[1],a=new Yl({value:e.state.value,context:o,_event:n,_sessionid:e.sessionId,historyValue:void 0,history:e.state,actions:i.filter((function(e){return!Sl(e)})),activities:{},events:[],configuration:[],transitions:[],children:{},done:e.state.done,tags:e.state.tags,machine:e.machine});return a.changed=!0,a}));e.update(r,n),e._stopChildren(),is(e.sessionId)}})),this},e.prototype.batch=function(e){var t=this;if(this.status===ss.NotStarted&&this.options.deferEvents)Ua||ul(!1,"".concat(e.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'" and are deferred. Make sure .start() is called for this service.\nEvent: ').concat(JSON.stringify(event)));else if(this.status!==ss.Running)throw new Error("".concat(e.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'));if(e.length){var n=!!this.machine.config.predictableActionArguments&&this._exec;this.scheduler.schedule((function(){var r,i,o=t.state,a=!1,l=[],s=function(e){var r=bl(e);t.forward(r),o=Nl(t,(function(){return t.machine.transition(o,r,void 0,n||void 0)})),l.push.apply(l,La([],_a(t.machine.config.predictableActionArguments?o.actions:o.actions.map((function(e){return function(e,t){var n=e.exec;return Sa(Sa({},e),{exec:void 0!==n?function(){return n(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0})}(e,o)}))),!1)),a=a||!!o.changed};try{for(var c=Oa(e),d=c.next();!d.done;d=c.next()){s(d.value)}}catch(e){r={error:e}}finally{try{d&&!d.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}o.changed=a,o.actions=l,t.update(o,bl(e[e.length-1]))}))}},e.prototype.sender=function(e){return this.send.bind(this,e)},e.prototype._nextState=function(e,t){var n=this;void 0===t&&(t=!!this.machine.config.predictableActionArguments&&this._exec);var r=bl(e);if(0===r.name.indexOf(Ha)&&!this.state.nextEvents.some((function(e){return 0===e.indexOf(Ha)})))throw r.data.data;return Nl(this,(function(){return n.machine.transition(n.state,r,void 0,t||void 0)}))},e.prototype.nextState=function(e){return this._nextState(e,!1)},e.prototype.forward=function(e){var t,n;try{for(var r=Oa(this.forwardTo),i=r.next();!i.done;i=r.next()){var o=i.value,a=this.children.get(o);if(!a)throw new Error("Unable to forward event '".concat(e,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(o,"'."));a.send(e)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.defer=function(e){var t=this,n=this.clock.setTimeout((function(){"to"in e&&e.to?t.sendTo(e._event,e.to,!0):t.send(e._event)}),e.delay);e.id&&(this.delayedEventsMap[e.id]=n)},e.prototype.cancel=function(e){this.clock.clearTimeout(this.delayedEventsMap[e]),delete this.delayedEventsMap[e]},e.prototype.exec=function(e,t,n){void 0===n&&(n=this.machine.options.actions),this._exec(e,t.context,t._event,n)},e.prototype.removeChild=function(e){var t;this.children.delete(e),this.forwardTo.delete(e),null===(t=this.state)||void 0===t||delete t.children[e]},e.prototype.stopChild=function(e){var t=this.children.get(e);t&&(this.removeChild(e),hl(t.stop)&&t.stop())},e.prototype.spawn=function(e,t,n){if(this.status!==ss.Running)return Vl(e,t);if(sl(e))return this.spawnPromise(Promise.resolve(e),t);if(hl(e))return this.spawnCallback(e,t);if(function(e){try{return"function"==typeof e.send}catch(e){return!1}}(i=e)&&"id"in i)return this.spawnActor(e,t);if(function(e){try{return"subscribe"in e&&hl(e.subscribe)}catch(e){return!1}}(e))return this.spawnObservable(e,t);if(ml(e))return this.spawnMachine(e,Sa(Sa({},n),{id:t}));if(null!==(r=e)&&"object"==typeof r&&"transition"in r&&"function"==typeof r.transition)return this.spawnBehavior(e,t);throw new Error('Unable to spawn entity "'.concat(t,'" of type "').concat(typeof e,'".'));var r,i},e.prototype.spawnMachine=function(t,n){var r=this;void 0===n&&(n={});var i=new e(t,Sa(Sa({},this.options),{parent:this,id:n.id||t.id})),o=Sa(Sa({},cs),n);o.sync&&i.onTransition((function(e){r.send(Fa,{state:e,id:i.id})}));var a=i;return this.children.set(i.id,a),o.autoForward&&this.forwardTo.add(i.id),i.onDone((function(e){r.removeChild(i.id),r.send(bl(e,{origin:i.id}))})).start(),a},e.prototype.spawnBehavior=function(e,t){var n=ls(e,{id:t,parent:this});return this.children.set(t,n),n},e.prototype.spawnPromise=function(e,t){var n,r,i=this,o=!1;e.then((function(e){o||(r=e,i.removeChild(t),i.send(bl(Pl(t,e),{origin:t})))}),(function(e){if(!o){i.removeChild(t);var n=Dl(t,e);try{i.send(bl(n,{origin:t}))}catch(r){!function(e,t,n){if(!Ua){var r=e.stack?" Stacktrace was '".concat(e.stack,"'"):"";if(e===t)console.error("Missing onError handler for invocation '".concat(n,"', error was '").concat(e,"'.").concat(r));else{var i=t.stack?" Stacktrace was '".concat(t.stack,"'"):"";console.error("Missing onError handler and/or unhandled exception/promise rejection for invocation '".concat(n,"'. ")+"Original error: '".concat(e,"'. ").concat(r," Current error is '").concat(t,"'.").concat(i))}}}(e,r,t),i.devTools&&i.devTools.send(n,i.state),i.machine.strict&&i.stop()}}}));var a=((n={id:t,send:function(){},subscribe:function(t,n,r){var i=$l(t,n,r),o=!1;return e.then((function(e){o||(i.next(e),o||i.complete())}),(function(e){o||i.error(e)})),{unsubscribe:function(){return o=!0}}},stop:function(){o=!0},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[vl]=function(){return this},n);return this.children.set(t,a),a},e.prototype.spawnCallback=function(e,t){var n,r,i,o=this,a=!1,l=new Set,s=new Set;try{i=e((function(e){r=e,s.forEach((function(t){return t(e)})),a||o.send(bl(e,{origin:t}))}),(function(e){l.add(e)}))}catch(e){this.send(Dl(t,e))}if(sl(i))return this.spawnPromise(i,t);var c=((n={id:t,send:function(e){return l.forEach((function(t){return t(e)}))},subscribe:function(e){var t=$l(e);return s.add(t.next),{unsubscribe:function(){s.delete(t.next)}}},stop:function(){a=!0,hl(i)&&i()},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[vl]=function(){return this},n);return this.children.set(t,c),c},e.prototype.spawnObservable=function(e,t){var n,r,i=this,o=e.subscribe((function(e){r=e,i.send(bl(e,{origin:t}))}),(function(e){i.removeChild(t),i.send(bl(Dl(t,e),{origin:t}))}),(function(){i.removeChild(t),i.send(bl(Pl(t),{origin:t}))})),a=((n={id:t,send:function(){},subscribe:function(t,n,r){return e.subscribe(t,n,r)},stop:function(){return o.unsubscribe()},getSnapshot:function(){return r},toJSON:function(){return{id:t}}})[vl]=function(){return this},n);return this.children.set(t,a),a},e.prototype.spawnActor=function(e,t){return this.children.set(t,e),e},e.prototype.spawnActivity=function(e){var t=this.machine.options&&this.machine.options.activities?this.machine.options.activities[e.type]:void 0;if(t){var n=t(this.state.context,e);this.spawnEffect(e.id,n)}else Ua||ul(!1,"No implementation found for activity '".concat(e.type,"'"))},e.prototype.spawnEffect=function(e,t){var n;this.children.set(e,((n={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:t||void 0,getSnapshot:function(){},toJSON:function(){return{id:e}}})[vl]=function(){return this},n))},e.prototype.attachDev=function(){var e=os();if(this.options.devTools&&e){if(e.__REDUX_DEVTOOLS_EXTENSION__){var t="object"==typeof this.options.devTools?this.options.devTools:void 0;this.devTools=e.__REDUX_DEVTOOLS_EXTENSION__.connect(Sa(Sa({name:this.id,autoPause:!0,stateSanitizer:function(e){return{value:e.value,context:e.context,actions:e.actions}}},t),{features:Sa({jump:!1,skip:!1},t?t.features:void 0)}),this.machine),this.devTools.init(this.state)}as(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[vl]=function(){return this},e.prototype.getSnapshot=function(){return this.status===ss.NotStarted?this.initialState:this._state},e.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(e,t){return setTimeout(e,t)},clearTimeout:function(e){return clearTimeout(e)}},logger:console.log.bind(console),devTools:!1},e.interpret=us,e}();function us(e,t){return new ds(e,t)}function ps(e){if("string"==typeof e){var t={type:e,toString:function(){return e}};return t}return e}function hs(e){return Sa(Sa({type:za},e),{toJSON:function(){e.onDone,e.onError;var t=Ea(e,["onDone","onError"]);return Sa(Sa({},t),{type:za,src:ps(e.src)})}})}var fs="",gs="*",vs={},ms=function(e){return"#"===e[0]},xs=function(){function e(t,n,r,i){void 0===r&&(r="context"in t?t.context:void 0);var o,a=this;this.config=t,this._context=r,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign({actions:{},guards:{},services:{},activities:{},delays:{}},n),this.parent=null==i?void 0:i.parent,this.key=this.config.key||(null==i?void 0:i.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:"."),this.id=this.config.id||La([this.machine.key],_a(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:null!==(o=this.config.schema)&&void 0!==o?o:{},this.description=this.config.description,Ua||ul(!("parallel"in this.config),'The "parallel" property is deprecated and will be removed in version 4.1. '.concat(this.config.parallel?"Replace with `type: 'parallel'`":"Use `type: '".concat(this.type,"'`")," in the config for state node '").concat(this.id,"' instead.")),this.initial=this.config.initial,this.states=this.config.states?el(this.config.states,(function(t,n){var r,i=new e(t,{},void 0,{parent:a,key:n});return Object.assign(a.idMap,Sa(((r={})[i.id]=i,r),i.idMap)),i})):vs;var l=0;!function e(t){var n,r;t.order=l++;try{for(var i=Oa(zl(t)),o=i.next();!o.done;o=i.next()){e(o.value)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}(this),this.history=!0===this.config.history?"shallow":this.config.history||!1,this._transient=!!this.config.always||!!this.config.on&&(Array.isArray(this.config.on)?this.config.on.some((function(e){return e.event===fs})):fs in this.config.on),this.strict=!!this.config.strict,this.onEntry=al(this.config.entry||this.config.onEntry).map((function(e){return _l(e)})),this.onExit=al(this.config.exit||this.config.onExit).map((function(e){return _l(e)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=al(this.config.invoke).map((function(e,t){var n,r;if(ml(e)){var i=kl(a.id,t);return a.machine.options.services=Sa(((n={})[i]=e,n),a.machine.options.services),hs({src:i,id:i})}if(fl(e.src)){i=e.id||kl(a.id,t);return hs(Sa(Sa({},e),{id:i,src:e.src}))}if(ml(e.src)||hl(e.src)){i=e.id||kl(a.id,t);return a.machine.options.services=Sa(((r={})[i]=e.src,r),a.machine.options.services),hs(Sa(Sa({id:i},e),{src:i}))}var o=e.src;return hs(Sa(Sa({id:kl(a.id,t)},e),{src:o}))})),this.activities=al(this.config.activities).concat(this.invoke).map((function(e){return Tl(e)})),this.transition=this.transition.bind(this),this.tags=al(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||Hl(this).forEach((function(e){return e.on}))},e.prototype.withConfig=function(t,n){var r=this.options,i=r.actions,o=r.activities,a=r.guards,l=r.services,s=r.delays;return new e(this.config,{actions:Sa(Sa({},i),t.actions),activities:Sa(Sa({},o),t.activities),guards:Sa(Sa({},a),t.guards),services:Sa(Sa({},l),t.services),delays:Sa(Sa({},s),t.delays)},null!=n?n:this.context)},e.prototype.withContext=function(t){return new e(this.config,this.options,t)},Object.defineProperty(e.prototype,"context",{get:function(){return hl(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:el(this.states,(function(e){return e.definition})),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){return this.definition},Object.defineProperty(e.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var e=this.transitions;return this.__cache.on=e.reduce((function(e,t){return e[t.eventType]=e[t.eventType]||[],e[t.eventType].push(t),e}),{})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),e.prototype.getCandidates=function(e){if(this.__cache.candidates[e])return this.__cache.candidates[e];var t=e===fs,n=this.transitions.filter((function(n){var r=n.eventType===e;return t?r:r||n.eventType===gs}));return this.__cache.candidates[e]=n,n},e.prototype.getDelayedTransitions=function(){var e=this,t=this.config.after;if(!t)return[];var n=function(t,n){var r=function(e,t){var n=t?"#".concat(t):"";return"".concat($a.After,"(").concat(e,")").concat(n)}(hl(t)?"".concat(e.id,":delay[").concat(n,"]"):t,e.id);return e.onEntry.push(function(e,t){return{to:t?t.to:void 0,type:Da,event:hl(e)?e:xl(e),delay:t?t.delay:void 0,id:t&&void 0!==t.id?t.id:hl(e)?e.name:Ya(e)}}(r,{delay:t})),e.onExit.push({type:Ma,sendId:r}),r},r=pl(t)?t.map((function(e,t){var r=n(e.delay,t);return Sa(Sa({},e),{event:r})})):il(Object.keys(t).map((function(e,r){var i=t[e],o=fl(i)?{target:i}:i,a=isNaN(+e)?e:+e,l=n(a,r);return al(o).map((function(e){return Sa(Sa({},e),{event:l,delay:a})}))})));return r.map((function(t){var n=t.delay;return Sa(Sa({},e.formatTransition(t)),{delay:n})}))},e.prototype.getStateNodes=function(e){var t,n=this;if(!e)return[];var r=e instanceof Yl?e.value:Ja(e,this.delimiter);if(fl(r)){var i=this.getStateNode(r).initial;return void 0!==i?this.getStateNodes(((t={})[r]=i,t)):[this,this.states[r]]}var o=Object.keys(r),a=[this];return a.push.apply(a,La([],_a(il(o.map((function(e){return n.getStateNode(e).getStateNodes(r[e])})))),!1)),a},e.prototype.handles=function(e){var t=Ya(e);return this.events.includes(t)},e.prototype.resolveState=function(e){var t=e instanceof Yl?e:Yl.create(e),n=Array.from(Bl([],this.getStateNodes(t.value)));return new Yl(Sa(Sa({},t),{value:this.resolve(t.value),configuration:n,done:Wl(n,this),tags:Ul(n),machine:this.machine}))},e.prototype.transitionLeafNode=function(e,t,n){var r=this.getStateNode(e).next(t,n);return r&&r.transitions.length?r:this.next(t,n)},e.prototype.transitionCompoundNode=function(e,t,n){var r=Object.keys(e),i=this.getStateNode(r[0])._transition(e[r[0]],t,n);return i&&i.transitions.length?i:this.next(t,n)},e.prototype.transitionParallelNode=function(e,t,n){var r,i,o={};try{for(var a=Oa(Object.keys(e)),l=a.next();!l.done;l=a.next()){var s=l.value,c=e[s];if(c){var d=this.getStateNode(s)._transition(c,t,n);d&&(o[s]=d)}}}catch(e){r={error:e}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}var u=Object.keys(o).map((function(e){return o[e]})),p=il(u.map((function(e){return e.transitions})));if(!u.some((function(e){return e.transitions.length>0})))return this.next(t,n);var h=il(Object.keys(o).map((function(e){return o[e].configuration})));return{transitions:p,exitSet:il(u.map((function(e){return e.exitSet}))),configuration:h,source:t,actions:il(Object.keys(o).map((function(e){return o[e].actions})))}},e.prototype._transition=function(e,t,n){return fl(e)?this.transitionLeafNode(e,t,n):1===Object.keys(e).length?this.transitionCompoundNode(e,t,n):this.transitionParallelNode(e,t,n)},e.prototype.getTransitionData=function(e,t){return this._transition(e.value,e,bl(t))},e.prototype.next=function(e,t){var n,r,i,o=this,a=t.name,l=[],s=[];try{for(var c=Oa(this.getCandidates(a)),d=c.next();!d.done;d=c.next()){var u=d.value,p=u.cond,h=u.in,f=e.context,g=!h||(fl(h)&&ms(h)?e.matches(Ja(this.getStateNodeById(h).path,this.delimiter)):Xa(Ja(h,this.delimiter),nl(this.path.slice(0,-2))(e.value))),v=!1;try{v=!p||Cl(this.machine,p,f,t,e)}catch(e){throw new Error("Unable to evaluate guard '".concat(p.name||p.type,"' in transition for event '").concat(a,"' in state node '").concat(this.id,"':\n").concat(e.message))}if(v&&g){void 0!==u.target&&(s=u.target),l.push.apply(l,La([],_a(u.actions),!1)),i=u;break}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}if(i){if(!s.length)return{transitions:[i],exitSet:[],configuration:e.value?[this]:[],source:e,actions:l};var m=il(s.map((function(t){return o.getRelativeStateNodes(t,e.historyValue)})));return{transitions:[i],exitSet:!!i.internal?[]:il(s.map((function(e){return o.getPotentiallyReenteringNodes(e)}))),configuration:m,source:e,actions:l}}},e.prototype.getPotentiallyReenteringNodes=function(e){if(this.order<e.order)return[this];for(var t=[],n=this,r=e;n&&n!==r;)t.push(n),n=n.parent;return n!==r?[]:(t.push(r),t)},e.prototype.getActions=function(e,t,n,r,i,o,a){var l,s,c,d,u=this,p=o?Bl([],this.getStateNodes(o.value)):[],h=new Set;try{for(var f=Oa(Array.from(e).sort((function(e,t){return e.order-t.order}))),g=f.next();!g.done;g=f.next()){(!Gl(p,x=g.value)||Gl(n.exitSet,x)||x.parent&&h.has(x.parent))&&h.add(x)}}catch(e){l={error:e}}finally{try{g&&!g.done&&(s=f.return)&&s.call(f)}finally{if(l)throw l.error}}try{for(var v=Oa(p),m=v.next();!m.done;m=v.next()){var x;Gl(e,x=m.value)&&!Gl(n.exitSet,x.parent)||n.exitSet.push(x)}}catch(e){c={error:e}}finally{try{m&&!m.done&&(d=v.return)&&d.call(v)}finally{if(c)throw c.error}}n.exitSet.sort((function(e,t){return t.order-e.order}));var b=Array.from(h).sort((function(e,t){return e.order-t.order})),y=new Set(n.exitSet),C=il(b.map((function(e){var t=[];if("final"!==e.type)return t;var o=e.parent;if(!o.parent)return t;t.push(Rl(e.id,e.doneData),Rl(o.id,e.doneData?ll(e.doneData,r,i):void 0));var a=o.parent;return"parallel"===a.type&&Al(a).every((function(e){return Wl(n.configuration,e)}))&&t.push(Rl(a.id)),t}))),w=b.map((function(e){var t=e.onEntry,n=e.activities.map((function(e){return function(e){var t=Tl(e);return{type:$a.Start,activity:t,exec:void 0}}(e)}));return{type:"entry",actions:Ll(a?La(La([],_a(t),!1),_a(n),!1):La(La([],_a(n),!1),_a(t),!1),u.machine.options.actions)}})).concat({type:"state_done",actions:C.map((function(e){return function(e,t){return{type:Pa,event:"function"==typeof e?e:xl(e),delay:t?t.delay:void 0,id:null==t?void 0:t.id}}(e)}))}),$=Array.from(y).map((function(e){return{type:"exit",actions:Ll(La(La([],_a(e.onExit),!1),_a(e.activities.map((function(e){return function(e){var t=hl(e)?e:Tl(e);return{type:$a.Stop,activity:t,exec:void 0}}(e)}))),!1),u.machine.options.actions)}})).concat({type:"transition",actions:Ll(n.actions,this.machine.options.actions)}).concat(w);if(t){var k=Ll(il(La([],_a(e),!1).sort((function(e,t){return t.order-e.order})).map((function(e){return e.onExit}))),this.machine.options.actions).filter((function(e){return!Sl(e)}));return $.concat({type:"stop",actions:k})}return $},e.prototype.transition=function(e,t,n,r){void 0===e&&(e=this.initialState);var i,o,a=bl(t);if(e instanceof Yl)i=void 0===n?e:this.resolveState(Yl.from(e,n));else{var l=fl(e)?this.resolve(Qa(this.getResolvedPath(e))):this.resolve(e),s=null!=n?n:this.machine.context;i=this.resolveState(Yl.from(l,s))}if(!Ua&&a.name===gs)throw new Error("An event cannot have the wildcard type ('".concat(gs,"')"));if(this.strict&&!this.events.includes(a.name)&&(o=a.name,!/^(done|error)\./.test(o)))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(a.name,"'"));var c=this._transition(i.value,i,a)||{transitions:[],configuration:[],exitSet:[],source:i,actions:[]},d=Bl([],this.getStateNodes(i.value)),u=c.configuration.length?Bl(d,c.configuration):d;return c.configuration=La([],_a(u),!1),this.resolveTransition(c,i,i.context,r,a)},e.prototype.resolveRaisedTransition=function(e,t,n,r){var i,o=e.actions;return(e=this.transition(e,t,void 0,r))._event=n,e.event=n.data,(i=e.actions).unshift.apply(i,La([],_a(o),!1)),e},e.prototype.resolveTransition=function(e,t,n,r,i){var o,a,l,s,c=this;void 0===i&&(i=El);var d=e.configuration,u=!t||e.transitions.length>0,p=u?e.configuration:t?t.configuration:[],h=Wl(p,this),f=u?ql(this.machine,d):void 0,g=t?t.historyValue?t.historyValue:e.source?this.machine.historyValue(t.value):void 0:void 0,v=this.getActions(new Set(p),h,e,n,i,t,r),m=t?Sa({},t.activities):{};try{for(var x=Oa(v),b=x.next();!b.done;b=x.next()){var y=b.value;try{for(var C=(l=void 0,Oa(y.actions)),w=C.next();!w.done;w=C.next()){var $=w.value;$.type===Ta?m[$.activity.id||$.activity.type]=$:$.type===Ra&&(m[$.activity.id||$.activity.type]=!1)}}catch(e){l={error:e}}finally{try{w&&!w.done&&(s=C.return)&&s.call(C)}finally{if(l)throw l.error}}}}catch(e){o={error:e}}finally{try{b&&!b.done&&(a=x.return)&&a.call(x)}finally{if(o)throw o.error}}var k,S,E=_a(Ml(this,t,n,i,v,r,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),O=E[0],_=E[1],L=_a(function(e,t){var n,r,i=_a([[],[]],2),o=i[0],a=i[1];try{for(var l=Oa(e),s=l.next();!s.done;s=l.next()){var c=s.value;t(c)?o.push(c):a.push(c)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return[o,a]}(O,Sl),2),T=L[0],R=L[1],P=O.filter((function(e){var t;return e.type===Ta&&(null===(t=e.activity)||void 0===t?void 0:t.type)===za})),D=P.reduce((function(e,t){return e[t.activity.id]=function(e,t,n,r){var i,o=wl(e.src),a=null===(i=null==t?void 0:t.options.services)||void 0===i?void 0:i[o.type],l=e.data?ll(e.data,n,r):void 0,s=a?Vl(a,e.id,l):jl(e.id);return s.meta=e,s}(t.activity,c.machine,_,i),e}),t?Sa({},t.children):{}),M=new Yl({value:f||t.value,context:_,_event:i,_sessionid:t?t._sessionid:null,historyValue:f?g?(k=g,S=f,{current:S,states:cl(k,S)}):void 0:t?t.historyValue:void 0,history:!f||e.source?t:void 0,actions:f?R:[],activities:f?m:t?t.activities:{},events:[],configuration:p,transitions:e.transitions,children:D,done:h,tags:Ul(p),machine:this}),N=n!==_;M.changed=i.name===Fa||N;var j=M.history;j&&delete j.history;var V=!h&&(this._transient||d.some((function(e){return e._transient})));if(!(u||V&&i.name!==fs))return M;var I=M;if(!h)for(V&&(I=this.resolveRaisedTransition(I,{type:Na},i,r));T.length;){var z=T.shift();I=this.resolveRaisedTransition(I,z._event,i,r)}var A=I.changed||(j?!!I.actions.length||N||typeof j.value!=typeof I.value||!Xl(I.value,j.value):void 0);return I.changed=A,I.history=j,I},e.prototype.getStateNode=function(e){if(ms(e))return this.machine.getStateNodeById(e);if(!this.states)throw new Error("Unable to retrieve child state '".concat(e,"' from '").concat(this.id,"'; no child states exist."));var t=this.states[e];if(!t)throw new Error("Child state '".concat(e,"' does not exist on '").concat(this.id,"'"));return t},e.prototype.getStateNodeById=function(e){var t=ms(e)?e.slice(1):e;if(t===this.id)return this;var n=this.machine.idMap[t];if(!n)throw new Error("Child state node '#".concat(t,"' does not exist on machine '").concat(this.id,"'"));return n},e.prototype.getStateNodeByPath=function(e){if("string"==typeof e&&ms(e))try{return this.getStateNodeById(e.slice(1))}catch(e){}for(var t=Ka(e,this.delimiter).slice(),n=this;t.length;){var r=t.shift();if(!r.length)break;n=n.getStateNode(r)}return n},e.prototype.resolve=function(e){var t,n=this;if(!e)return this.initialStateValue||vs;switch(this.type){case"parallel":return el(this.initialStateValue,(function(t,r){return t?n.getStateNode(r).resolve(e[r]||t):vs}));case"compound":if(fl(e)){var r=this.getStateNode(e);return"parallel"===r.type||"compound"===r.type?((t={})[e]=r.initialStateValue,t):e}return Object.keys(e).length?el(e,(function(e,t){return e?n.getStateNode(t).resolve(e):vs})):this.initialStateValue||{};default:return e||vs}},e.prototype.getResolvedPath=function(e){if(ms(e)){var t=this.machine.idMap[e.slice(1)];if(!t)throw new Error("Unable to find state node '".concat(e,"'"));return t.path}return Ka(e,this.delimiter)},Object.defineProperty(e.prototype,"initialStateValue",{get:function(){var e,t;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;if("parallel"===this.type)t=tl(this.states,(function(e){return e.initialStateValue||vs}),(function(e){return!("history"===e.type)}));else if(void 0!==this.initial){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));t=Il(this.states[this.initial])?this.initial:((e={})[this.initial]=this.states[this.initial].initialStateValue,e)}else t={};return this.__cache.initialStateValue=t,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),e.prototype.getInitialState=function(e,t){this._init();var n=this.getStateNodes(e);return this.resolveTransition({configuration:n,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,null!=t?t:this.machine.context,void 0)},Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this.initialStateValue;if(!e)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){var e;if("history"===this.type){var t=this.config;e=fl(t.target)&&ms(t.target)?Qa(this.machine.getStateNodeById(t.target).path.slice(this.path.length-1)):t.target}return e},enumerable:!1,configurable:!0}),e.prototype.getRelativeStateNodes=function(e,t,n){return void 0===n&&(n=!0),n?"history"===e.type?e.resolveHistory(t):e.initialStateNodes:[e]},Object.defineProperty(e.prototype,"initialStateNodes",{get:function(){var e=this;return Il(this)?[this]:"compound"!==this.type||this.initial?il(rl(this.initialStateValue).map((function(t){return e.getFromRelativePath(t)}))):(Ua||ul(!1,"Compound state node '".concat(this.id,"' has no initial state.")),[this])},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(e){if(!e.length)return[this];var t=_a(e),n=t[0],r=t.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(n,"' from node with no states"));var i=this.getStateNode(n);if("history"===i.type)return i.resolveHistory();if(!this.states[n])throw new Error("Child state '".concat(n,"' does not exist on '").concat(this.id,"'"));return this.states[n].getFromRelativePath(r)},e.prototype.historyValue=function(e){if(Object.keys(this.states).length)return{current:e||this.initialStateValue,states:tl(this.states,(function(t,n){if(!e)return t.historyValue();var r=fl(e)?void 0:e[n];return t.historyValue(r||t.initialStateValue)}),(function(e){return!e.history}))}},e.prototype.resolveHistory=function(e){var t=this;if("history"!==this.type)return[this];var n=this.parent;if(!e){var r=this.target;return r?il(rl(r).map((function(e){return n.getFromRelativePath(e)}))):n.initialStateNodes}var i,o,a=(i=n.path,o="states",function(e){var t,n,r=e;try{for(var a=Oa(i),l=a.next();!l.done;l=a.next()){var s=l.value;r=r[o][s]}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r})(e).current;return fl(a)?[n.getStateNode(a)]:il(rl(a).map((function(e){return"deep"===t.history?n.getFromRelativePath(e):[n.states[e[0]]]})))},Object.defineProperty(e.prototype,"stateIds",{get:function(){var e=this,t=il(Object.keys(this.states).map((function(t){return e.states[t].stateIds})));return[this.id].concat(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){var e,t,n,r;if(this.__cache.events)return this.__cache.events;var i=this.states,o=new Set(this.ownEvents);if(i)try{for(var a=Oa(Object.keys(i)),l=a.next();!l.done;l=a.next()){var s=i[l.value];if(s.states)try{for(var c=(n=void 0,Oa(s.events)),d=c.next();!d.done;d=c.next()){var u=d.value;o.add("".concat(u))}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return this.__cache.events=Array.from(o)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownEvents",{get:function(){var e=new Set(this.transitions.filter((function(e){return!(!e.target&&!e.actions.length&&e.internal)})).map((function(e){return e.eventType})));return Array.from(e)},enumerable:!1,configurable:!0}),e.prototype.resolveTarget=function(e){var t=this;if(void 0!==e)return e.map((function(e){if(!fl(e))return e;var n=e[0]===t.delimiter;if(n&&!t.parent)return t.getStateNodeByPath(e.slice(1));var r=n?t.key+e:e;if(!t.parent)return t.getStateNodeByPath(r);try{return t.parent.getStateNodeByPath(r)}catch(e){throw new Error("Invalid transition definition for state node '".concat(t.id,"':\n").concat(e.message))}}))},e.prototype.formatTransition=function(e){var t=this,n=function(e){if(void 0!==e&&""!==e)return al(e)}(e.target),r="internal"in e?e.internal:!n||n.some((function(e){return fl(e)&&e[0]===t.delimiter})),i=this.machine.options.guards,o=this.resolveTarget(n),a=Sa(Sa({},e),{actions:Ll(al(e.actions)),cond:gl(e.cond,i),target:o,source:this,internal:r,eventType:e.event,toJSON:function(){return Sa(Sa({},a),{target:a.target?a.target.map((function(e){return"#".concat(e.id)})):void 0,source:"#".concat(t.id)})}});return a},e.prototype.formatTransitions=function(){var e,t,n,r=this;if(this.config.on)if(Array.isArray(this.config.on))n=this.config.on;else{var i=this.config.on,o=gs,a=i[o],l=void 0===a?[]:a,s=Ea(i,["*"]);n=il(Object.keys(s).map((function(e){Ua||e!==fs||ul(!1,"Empty string transition configs (e.g., `{ on: { '': ... }}`) for transient transitions are deprecated. Specify the transition in the `{ always: ... }` property instead. "+'Please check the `on` configuration for "#'.concat(r.id,'".'));var t=yl(e,s[e]);return Ua||function(e,t,n){var r=n.slice(0,-1).some((function(e){return!("cond"in e)&&!("in"in e)&&(fl(e.target)||ml(e.target))})),i=t===fs?"the transient event":"event '".concat(t,"'");ul(!r,"One or more transitions for ".concat(i," on state '").concat(e.id,"' are unreachable. ")+"Make sure that the default transition is the last one defined.")}(r,e,t),t})).concat(yl(gs,l)))}else n=[];var c=this.config.always?yl("",this.config.always):[],d=this.config.onDone?yl(String(Rl(this.id)),this.config.onDone):[];Ua||ul(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var u=il(this.invoke.map((function(e){var t=[];return e.onDone&&t.push.apply(t,La([],_a(yl(String(Pl(e.id)),e.onDone)),!1)),e.onError&&t.push.apply(t,La([],_a(yl(String(Dl(e.id)),e.onError)),!1)),t}))),p=this.after,h=il(La(La(La(La([],_a(d),!1),_a(u),!1),_a(n),!1),_a(c),!1).map((function(e){return al(e).map((function(e){return r.formatTransition(e)}))})));try{for(var f=Oa(p),g=f.next();!g.done;g=f.next()){var v=g.value;h.push(v)}}catch(t){e={error:t}}finally{try{g&&!g.done&&(t=f.return)&&t.call(f)}finally{if(e)throw e.error}}return h},e}();var bs,ys=function(e){return{type:ja,assignment:e}};!function(e){e[e.Effect=1]="Effect",e[e.LayoutEffect=2]="LayoutEffect"}(bs||(bs={}));var Cs="undefined"!=typeof document?J:function(){};function ws(e){var t=Z.useRef();return t.current||(t.current={v:e()}),t.current.v}var $s=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},ks=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var Ss=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},Es=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};function Os(e,t){(0,e.exec)(t.context,t._event.data,{action:e,state:t,_event:t._event})()}function _s(e){var t=K([]),n=K([]);Cs((function(){var r=e.subscribe((function(e){var r,i;if(e.actions.length){var o=e.actions.filter((function(e){return"function"==typeof e.exec&&"__effect"in e.exec})),a=Ss(function(e,t){var n,r,i=$s([[],[]],2),o=i[0],a=i[1];try{for(var l=ks(e),s=l.next();!s.done;s=l.next()){var c=s.value;t(c)?o.push(c):a.push(c)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return[o,a]}(o,(function(e){return e.exec.__effect===bs.Effect})),2),l=a[0],s=a[1];(r=t.current).push.apply(r,Es([],Ss(l.map((function(t){return[t,e]}))),!1)),(i=n.current).push.apply(i,Es([],Ss(s.map((function(t){return[t,e]}))),!1))}}));return function(){r.unsubscribe()}}),[]),Cs((function(){for(;n.current.length;){var e=Ss(n.current.shift(),2);Os(e[0],e[1])}})),U((function(){for(;t.current.length;){var e=Ss(t.current.shift(),2);Os(e[0],e[1])}}))}var Ls=function(){return Ls=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ls.apply(this,arguments)},Ts=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},Rs=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};var Ps=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};function Ds(e,t){void 0===t&&(t={});var n=Q((function(e){var t=void 0===e.changed&&Object.keys(e.children).length;(e.changed||t)&&a(e)}),[]),r=function(e,t,n){void 0===t&&(t={});var r=ws((function(){return"function"==typeof e?e():e}));if("production"!==process.env.NODE_ENV&&"function"!=typeof e){var i=Rs(W(r),1)[0];e!==i&&console.warn("Machine given to `useMachine` has changed between renders. This is not supported and might lead to unexpected results.\nPlease make sure that you pass the same Machine as argument each time.")}var o=t.context,a=t.guards,l=t.actions,s=t.activities,c=t.services,d=t.delays,u=t.state,p=Ts(t,["context","guards","actions","activities","services","delays","state"]),h=ws((function(){var e={context:o,guards:a,actions:l,activities:s,services:c,delays:d};return us(r.withConfig(e,(function(){return Ls(Ls({},r.context),o)})),Ls({deferEvents:!0},p))}));return Cs((function(){var e;return n&&(e=h.subscribe(function(e){if("object"==typeof e)return e;var t=function(){};return{next:e,error:void 0||t,complete:void 0||t}}(n))),function(){null==e||e.unsubscribe()}}),[n]),Cs((function(){return h.start(u?Yl.create(u):void 0),function(){h.stop()}}),[]),Cs((function(){Object.assign(h.machine.options.actions,l),Object.assign(h.machine.options.guards,a),Object.assign(h.machine.options.activities,s),Object.assign(h.machine.options.services,c),Object.assign(h.machine.options.delays,d)}),[l,a,s,c,d]),_s(h),h}(e,t,n),i=Ps(W((function(){var e=r.machine.initialState;return t.state?Yl.create(t.state):e})),2),o=i[0],a=i[1];return[o,r.send,r]}function Ms(){return Ms=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ms.apply(null,arguments)}function Ns(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}const js={arr:Array.isArray,obj:e=>"[object Object]"===Object.prototype.toString.call(e),fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e,nul:e=>null===e,set:e=>e instanceof Set,map:e=>e instanceof Map,equ(e,t){if(typeof e!=typeof t)return!1;if(js.str(e)||js.num(e))return e===t;if(js.obj(e)&&js.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;let n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!js.und(n)||e===t}};function Vs(e,t){return js.und(e)||js.nul(e)?t:e}function Is(e){return js.und(e)?[]:js.arr(e)?e:[e]}function zs(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return js.fun(e)?e(...n):e}function As(e){const t=function(e){return e.to,e.from,e.config,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.delay,e.attach,e.destroyed,e.interpolateTo,e.ref,e.lazy,Ns(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(js.und(t))return Ms({to:t},e);const n=Object.keys(e).reduce(((n,r)=>js.und(t[r])?Ms({},n,{[r]:e[r]}):n),{});return Ms({to:t},n)}class Hs{constructor(){this.payload=void 0,this.children=[]}getAnimatedValue(){return this.getValue()}getPayload(){return this.payload||this}attach(){}detach(){}getChildren(){return this.children}addChild(e){0===this.children.length&&this.attach(),this.children.push(e)}removeChild(e){const t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()}}class Bs extends Hs{constructor(){super(...arguments),this.payload=[],this.attach=()=>this.payload.forEach((e=>e instanceof Hs&&e.addChild(this))),this.detach=()=>this.payload.forEach((e=>e instanceof Hs&&e.removeChild(this)))}}class Fs extends Hs{constructor(){super(...arguments),this.payload={},this.attach=()=>Object.values(this.payload).forEach((e=>e instanceof Hs&&e.addChild(this))),this.detach=()=>Object.values(this.payload).forEach((e=>e instanceof Hs&&e.removeChild(this)))}getValue(e){void 0===e&&(e=!1);const t={};for(const n in this.payload){const r=this.payload[n];(!e||r instanceof Hs)&&(t[n]=r instanceof Hs?r[e?"getAnimatedValue":"getValue"]():r)}return t}getAnimatedValue(){return this.getValue(!0)}}let Zs,qs;let Gs,Ws=e=>"undefined"!=typeof window?window.requestAnimationFrame(e):-1;let Us,Xs=()=>Date.now();class Ys extends Fs{constructor(e,t){super(),this.update=void 0,this.payload=e.style?Ms({},e,{style:Us(e.style)}):e,this.update=t,this.attach()}}let Ks=!1;const Js=new Set,Qs=()=>{if(!Ks)return!1;let e=Xs();for(let t of Js){let n=!1;for(let r=0;r<t.configs.length;r++){let i,o,a=t.configs[r];for(let t=0;t<a.animatedValues.length;t++){let r=a.animatedValues[t];if(r.done)continue;let l=a.fromValues[t],s=a.toValues[t],c=r.lastPosition,d=s instanceof Hs,u=Array.isArray(a.initialVelocity)?a.initialVelocity[t]:a.initialVelocity;if(d&&(s=s.getValue()),a.immediate)r.setValue(s),r.done=!0;else if("string"!=typeof l&&"string"!=typeof s){if(void 0!==a.duration)c=l+a.easing((e-r.startTime)/a.duration)*(s-l),i=e>=r.startTime+a.duration;else if(a.decay)c=l+u/(1-.998)*(1-Math.exp(-.0020000000000000018*(e-r.startTime))),i=Math.abs(r.lastPosition-c)<.1,i&&(s=c);else{o=void 0!==r.lastTime?r.lastTime:e,u=void 0!==r.lastVelocity?r.lastVelocity:a.initialVelocity,e>o+64&&(o=e);let t=Math.floor(e-o);for(let e=0;e<t;++e){u+=1*((-a.tension*(c-s)+-a.friction*u)/a.mass)/1e3,c+=1*u/1e3}let n=!(!a.clamp||0===a.tension)&&(l<s?c>s:c<s),d=Math.abs(u)<=a.precision,p=0===a.tension||Math.abs(s-c)<=a.precision;i=n||d&&p,r.lastVelocity=u,r.lastTime=e}d&&!a.toValues[t].done&&(i=!1),i?(r.value!==s&&(c=s),r.done=!0):n=!0,r.setValue(c),r.lastPosition=c}else r.setValue(s),r.done=!0}t.props.onFrame&&(t.values[a.name]=a.interpolation.getValue())}t.props.onFrame&&t.props.onFrame(t.values),n||(Js.delete(t),t.stop(!0))}return Js.size?Ws(Qs):Ks=!1,Ks};function ec(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return ec({range:e,output:t,extrapolate:n});if(Gs&&"string"==typeof e.output[0])return Gs(e);const r=e,i=r.output,o=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",l=r.extrapolateRight||r.extrapolate||"extend",s=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,o);return function(e,t,n,r,i,o,a,l,s){let c=s?s(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>n){if("identity"===l)return c;"clamp"===l&&(c=n)}if(r===i)return r;if(t===n)return e<=t?r:i;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=o(c),r===-1/0?c=-c:i===1/0?c+=r:c=c*(i-r)+r;return c}(e,o[t],o[t+1],i[t],i[t+1],s,a,l,r.map)}}class tc extends Bs{constructor(e,t,n,r){super(),this.calc=void 0,this.payload=e instanceof Bs&&!(e instanceof tc)?e.getPayload():Array.isArray(e)?e:[e],this.calc=ec(t,n,r)}getValue(){return this.calc(...this.payload.map((e=>e.getValue())))}updateConfig(e,t,n){this.calc=ec(e,t,n)}interpolate(e,t,n){return new tc(this,e,t,n)}}const nc=(e,t,n)=>e&&new tc(e,t,n);function rc(e,t){"update"in e?t.add(e):e.getChildren().forEach((e=>rc(e,t)))}class ic extends Hs{constructor(e){var t;super(),t=this,this.animatedStyles=new Set,this.value=void 0,this.startPosition=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.startTime=void 0,this.lastTime=void 0,this.done=!1,this.setValue=function(e,n){void 0===n&&(n=!0),t.value=e,n&&t.flush()},this.value=e,this.startPosition=e,this.lastPosition=e}flush(){0===this.animatedStyles.size&&rc(this,this.animatedStyles),this.animatedStyles.forEach((e=>e.update()))}clearStyles(){this.animatedStyles.clear()}getValue(){return this.value}interpolate(e,t,n){return new tc(this,e,t,n)}}class oc extends Bs{constructor(e){super(),this.payload=e.map((e=>new ic(e)))}setValue(e,t){void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach(((e,n)=>this.payload[n].setValue(e,t))):this.payload.forEach((n=>n.setValue(e,t)))}getValue(){return this.payload.map((e=>e.getValue()))}interpolate(e,t){return new tc(this,e,t)}}let ac=0,lc=class{constructor(){this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=()=>this.interpolations,this.id=ac++}update(e){if(!e)return this;const t=As(e),n=t.delay,r=void 0===n?0:n,i=t.to,o=Ns(t,["delay","to"]);if(js.arr(i)||js.fun(i))this.queue.push(Ms({},o,{delay:r,to:i}));else if(i){let e={};Object.entries(i).forEach((t=>{let n=t[0],i=t[1];const a=Ms({to:{[n]:i},delay:zs(r,n)},o),l=e[a.delay]&&e[a.delay].to;e[a.delay]=Ms({},e[a.delay],a,{to:Ms({},l,a.to)})})),this.queue=Object.values(e)}return this.queue=this.queue.sort(((e,t)=>e.delay-t.delay)),this.diff(o),this}start(e){if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((e=>{let t=e.from,n=void 0===t?{}:t,r=e.to,i=void 0===r?{}:r;js.obj(n)&&(this.merged=Ms({},n,this.merged)),js.obj(i)&&(this.merged=Ms({},this.merged,i))}));const t=this.local=++this.guid,n=this.localQueue=this.queue;this.queue=[],n.forEach(((r,i)=>{let o=r.delay,a=Ns(r,["delay"]);const l=r=>{i===n.length-1&&t===this.guid&&r&&(this.idle=!0,this.props.onRest&&this.props.onRest(this.merged)),e&&e()};let s=js.arr(a.to)||js.fun(a.to);o?setTimeout((()=>{t===this.guid&&(s?this.runAsync(a,l):this.diff(a).start(l))}),o):s?this.runAsync(a,l):this.diff(a).start(l)}))}else js.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,Js.has(t)||Js.add(t),Ks||(Ks=!0,Ws(Qs));var t;return this}stop(e){return this.listeners.forEach((t=>t(e))),this.listeners=[],this}pause(e){var t;return this.stop(!0),e&&(t=this,Js.has(t)&&Js.delete(t)),this}runAsync(e,t){var n=this;e.delay;let r=Ns(e,["delay"]);const i=this.local;let o=Promise.resolve(void 0);if(js.arr(r.to))for(let e=0;e<r.to.length;e++){const t=e,n=Ms({},r,As(r.to[t]));js.arr(n.config)&&(n.config=n.config[t]),o=o.then((()=>{if(i===this.guid)return new Promise((e=>this.diff(n).start(e)))}))}else if(js.fun(r.to)){let e,t=0;o=o.then((()=>r.to((n=>{const o=Ms({},r,As(n));if(js.arr(o.config)&&(o.config=o.config[t]),t++,i===this.guid)return e=new Promise((e=>this.diff(o).start(e)))}),(function(e){return void 0===e&&(e=!0),n.stop(e)})).then((()=>e))))}o.then(t)}diff(e){this.props=Ms({},this.props,e);let t=this.props,n=t.from,r=void 0===n?{}:n,i=t.to,o=void 0===i?{}:i,a=t.config,l=void 0===a?{}:a,s=t.reverse,c=t.attach,d=t.reset,u=t.immediate;if(s){var p=[o,r];r=p[0],o=p[1]}this.merged=Ms({},r,this.merged,o),this.hasChanged=!1;let h=c&&c(this);if(this.animations=Object.entries(this.merged).reduce(((e,t)=>{let n=t[0],i=t[1],o=e[n]||{};const a=js.num(i),s=js.str(i)&&!i.startsWith("#")&&!/\d/.test(i)&&!qs[i],c=js.arr(i),p=!a&&!c&&!s;let f=js.und(r[n])?i:r[n],g=a||c||s?i:1,v=zs(l,n);h&&(g=h.animations[n].parent);let m,x=o.parent,b=o.interpolation,y=Is(h?g.getPayload():g),C=i;p&&(C=Gs({range:[0,1],output:[i,i]})(1));let w=b&&b.getValue();const $=!js.und(x)&&o.animatedValues.some((e=>!e.done)),k=!js.equ(C,w),S=!js.equ(C,o.previous),E=!js.equ(v,o.config);if(d||S&&k||E){if(a||s)x=b=o.parent||new ic(f);else if(c)x=b=o.parent||new oc(f);else if(p){let e=o.interpolation&&o.interpolation.calc(o.parent.value);e=void 0===e||d?f:e,o.parent?(x=o.parent,x.setValue(0,!1)):x=new ic(0);const t={output:[e,i]};o.interpolation?(b=o.interpolation,o.interpolation.updateConfig(t)):b=x.interpolate(t)}return y=Is(h?g.getPayload():g),m=Is(x.getPayload()),d&&!p&&x.setValue(f,!1),this.hasChanged=!0,m.forEach((e=>{e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=$?e.lastVelocity:void 0,e.lastTime=$?e.lastTime:void 0,e.startTime=Xs(),e.done=!1,e.animatedStyles.clear()})),zs(u,n)&&x.setValue(p?g:i,!1),Ms({},e,{[n]:Ms({},o,{name:n,parent:x,interpolation:b,animatedValues:m,toValues:y,previous:C,config:v,fromValues:Is(x.getValue()),immediate:zs(u,n),initialVelocity:Vs(v.velocity,0),clamp:Vs(v.clamp,!1),precision:Vs(v.precision,.01),tension:Vs(v.tension,170),friction:Vs(v.friction,26),mass:Vs(v.mass,1),duration:v.duration,easing:Vs(v.easing,(e=>e)),decay:v.decay})})}return k?e:(p&&(x.setValue(1,!1),b.updateConfig({output:[C,C]})),x.done=!0,this.hasChanged=!0,Ms({},e,{[n]:Ms({},e[n],{previous:C})}))}),this.animations),this.hasChanged){this.configs=Object.values(this.animations),this.values={},this.interpolations={};for(let e in this.animations)this.interpolations[e]=this.animations[e].interpolation,this.values[e]=this.animations[e].interpolation.getValue()}return this}destroy(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0}};const sc=e=>{const t=js.fun(e),n=((e,t)=>{const n=K(!1),r=K(),i=js.fun(t),o=te((()=>{let n;return r.current&&(r.current.map((e=>e.destroy())),r.current=void 0),[new Array(e).fill().map(((e,r)=>{const o=new lc,a=i?zs(t,r,o):t[r];return 0===r&&(n=a.ref),o.update(a),n||o.start(),o})),n]}),[e]),a=o[0],l=o[1];r.current=a,ne(l,(()=>({start:()=>Promise.all(r.current.map((e=>new Promise((t=>e.start(t)))))),stop:e=>r.current.forEach((t=>t.stop(e))),get controllers(){return r.current}})));const s=te((()=>e=>r.current.map(((t,n)=>{t.update(i?zs(e,n,t):e[n]),l||t.start()}))),[e]);U((()=>{n.current?i||s(t):l||r.current.forEach((e=>e.start()))})),U((()=>(n.current=!0,()=>r.current.forEach((e=>e.destroy())))),[]);const c=r.current.map((e=>e.getValues()));return i?[c,s,e=>r.current.forEach((t=>t.pause(e)))]:c})(1,t?e:[e]),r=n[0],i=n[1],o=n[2];return t?[r[0],i,o]:r};class cc extends Fs{constructor(e){void 0===e&&(e={}),super(),!e.transform||e.transform instanceof Hs||(e=Zs.transform(e)),this.payload=e}}const dc={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},uc="[-+]?\\d*\\.?\\d+",pc=uc+"%";function hc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}const fc=new RegExp("rgb"+hc(uc,uc,uc)),gc=new RegExp("rgba"+hc(uc,uc,uc,uc)),vc=new RegExp("hsl"+hc(uc,pc,pc)),mc=new RegExp("hsla"+hc(uc,pc,pc,uc)),xc=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,bc=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,yc=/^#([0-9a-fA-F]{6})$/,Cc=/^#([0-9a-fA-F]{8})$/;function wc(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function $c(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=wc(i,r,e+1/3),a=wc(i,r,e),l=wc(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function kc(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Sc(e){return(parseFloat(e)%360+360)%360/360}function Ec(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Oc(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function _c(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=yc.exec(e))?parseInt(t[1]+"ff",16)>>>0:dc.hasOwnProperty(e)?dc[e]:(t=fc.exec(e))?(kc(t[1])<<24|kc(t[2])<<16|kc(t[3])<<8|255)>>>0:(t=gc.exec(e))?(kc(t[1])<<24|kc(t[2])<<16|kc(t[3])<<8|Ec(t[4]))>>>0:(t=xc.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Cc.exec(e))?parseInt(t[1],16)>>>0:(t=bc.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=vc.exec(e))?(255|$c(Sc(t[1]),Oc(t[2]),Oc(t[3])))>>>0:(t=mc.exec(e))?($c(Sc(t[1]),Oc(t[2]),Oc(t[3]))|Ec(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const Lc=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Tc=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Rc=new RegExp(`(${Object.keys(dc).join("|")})`,"g");let Pc={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const Dc=["Webkit","Ms","Moz","O"];function Mc(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Pc.hasOwnProperty(e)&&Pc[e]?(""+t).trim():t+"px"}Pc=Object.keys(Pc).reduce(((e,t)=>(Dc.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),Pc);const Nc={};var jc;Us=e=>new cc(e),jc=e=>{const t=e.output.map((e=>e.replace(Tc,_c))).map((e=>e.replace(Rc,_c))),n=t[0].match(Lc).map((()=>[]));t.forEach((e=>{e.match(Lc).forEach(((e,t)=>n[t].push(+e)))}));const r=t[0].match(Lc).map(((t,r)=>ec(Ms({},e,{output:n[r]}))));return e=>{let n=0;return t[0].replace(Lc,(()=>r[n++](e))).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,((e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`))}},Gs=jc,qs=dc,function(e,t){Zs={fn:e,transform:t}}(((e,t)=>{if(!e.nodeType||void 0===e.setAttribute)return!1;{const i=t.style,o=t.children,a=t.scrollTop,l=t.scrollLeft,s=Ns(t,["style","children","scrollTop","scrollLeft"]),c="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;void 0!==a&&(e.scrollTop=a),void 0!==l&&(e.scrollLeft=l),void 0!==o&&(e.textContent=o);for(let t in i)if(i.hasOwnProperty(t)){var n=0===t.indexOf("--"),r=Mc(t,i[t],n);"float"===t&&(t="cssFloat"),n?e.style.setProperty(t,r):e.style[t]=r}for(let t in s){const n=c?t:Nc[t]||(Nc[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())));void 0!==e.getAttribute(n)&&e.setAttribute(n,s[t])}}}),(e=>e));var Vc;const Ic=(Vc=e=>G(((t,n)=>{const r=function(){const e=W(!1)[1];return Q((()=>e((e=>!e))),[])}(),i=K(!0),o=K(null),a=K(null),l=Q((e=>{const t=o.current;o.current=new Ys(e,(()=>{let e=!1;a.current&&(e=Zs.fn(a.current,o.current.getAnimatedValue())),a.current&&!1!==e||r()})),t&&t.detach()}),[]);U((()=>()=>{i.current=!1,o.current&&o.current.detach()}),[]),ne(n,(()=>(e=>e.current)(a))),l(t);const s=o.current.getValue();s.scrollTop,s.scrollLeft;const c=Ns(s,["scrollTop","scrollLeft"]),d=(u=e,!js.fun(u)||u.prototype instanceof q.Component?e=>a.current=function(e,t){return t&&(js.fun(t)?t(e):js.obj(t)&&(t.current=e)),e}(e,n):void 0);var u;return q.createElement(e,Ms({},c,{ref:d}))})),e=>(js.arr(e)?e:Object.keys(e)).reduce(((e,t)=>{const n=t;return e[n]=Vc(n),e}),Vc))(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);function zc(e,t){return e.map((function(e,n){return e+t[n]}))}function Ac(e,t){return e.map((function(e,n){return e-t[n]}))}function Hc(e){return Math.hypot.apply(Math,e)}function Bc(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function Fc(e,t,n){return 0===t||Math.abs(t)===1/0?function(e,t){return Math.pow(e,5*t)}(e,n):e*t*n/(t+n*e)}function Zc(e,t,n,r){return void 0===r&&(r=.15),0===r?function(e,t,n){return Math.max(t,Math.min(e,n))}(e,t,n):e<t?-Fc(t-e,n-t,r)+t:e>n?+Fc(e-n,n-t,r)+n:e}function qc(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}function Gc(){return Gc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gc.apply(this,arguments)}function Wc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Uc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Yc(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Xc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xc(e,t):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function Kc(){}function Jc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?Kc:1===t.length?t[0]:function(){for(var e,n,r=Yc(t);!(n=r()).done;){e=n.value.apply(this,arguments)||e}return e}}function Qc(e,t){if(void 0===e){if(void 0===t)throw new Error("Must define fallback value if undefined is expected");e=t}return Array.isArray(e)?e:[e,e]}function ed(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}return e}function td(e,t){void 0===e&&(e={});for(var n={},r=0,i=Object.entries(t);r<i.length;r++){var o=i[r],a=o[0],l=o[1];switch(typeof l){case"function":n[a]=l.call(n,e[a],a,e);break;case"object":n[a]=td(e[a],l);break;case"boolean":l&&(n[a]=e[a])}}return n}var nd=Gc({},{threshold:function(e){return void 0===e&&(e=0),Qc(e)},rubberband:function(e){switch(void 0===e&&(e=0),e){case!0:return Qc(.15);case!1:return Qc(0);default:return Qc(e)}},enabled:function(e){return void 0===e&&(e=!0),e},triggerAllEvents:function(e){return void 0===e&&(e=!1),e},initial:function(e){return void 0===e&&(e=0),"function"==typeof e?e:Qc(e)}},{axis:!0,lockDirection:function(e){return void 0===e&&(e=!1),e},bounds:function(e){if(void 0===e&&(e={}),"function"==typeof e)return function(t){return nd.bounds(e(t))};var t=e,n=t.left,r=void 0===n?-1/0:n,i=t.right,o=void 0===i?1/0:i,a=t.top,l=void 0===a?-1/0:a,s=t.bottom;return[[r,o],[l,void 0===s?1/0:s]]}}),rd="undefined"!=typeof window&&window.document&&window.document.createElement,id={enabled:function(e){return void 0===e&&(e=!0),e},domTarget:!0,window:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return void 0===e&&(e=rd?window:void 0),e})),eventOptions:function(e){var t=void 0===e?{}:e,n=t.passive,r=void 0===n||n,i=t.capture;return{passive:r,capture:void 0!==i&&i}}},od=Gc({},nd,{threshold:function(e,t,n){var r=n.filterTaps,i=void 0!==r&&r,o=n.lockDirection,a=void 0!==o&&o,l=n.axis,s=Qc(e,i?3:a||(void 0===l?void 0:l)?1:0);return this.filterTaps=i||s[0]+s[1]>0,s},swipeVelocity:function(e){return void 0===e&&(e=.5),Qc(e)},swipeDistance:function(e){return void 0===e&&(e=60),Qc(e)},delay:function(e){switch(void 0===e&&(e=0),e){case!0:return 180;case!1:return 0;default:return e}}});function ad(e){var t=e.domTarget,n=e.eventOptions,r=e.window,i=e.enabled,o=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["domTarget","eventOptions","window","enabled"]),a=function(e){return void 0===e&&(e={}),td(e,id)}({domTarget:t,eventOptions:n,window:r,enabled:i});return a.drag=function(e){return void 0===e&&(e={}),td(e,od)}(o),a}function ld(e){return Gc({_active:!1,_blocked:!1,_intentional:[!1,!1],_movement:[0,0],_initial:[0,0],_bounds:[[-1/0,1/0],[-1/0,1/0]],_lastEventType:void 0,event:void 0,intentional:!1,values:[0,0],velocities:[0,0],delta:[0,0],movement:[0,0],offset:[0,0],lastOffset:[0,0],direction:[0,0],initial:[0,0],previous:[0,0],first:!1,last:!1,active:!1,timeStamp:0,startTime:0,elapsedTime:0,cancel:Kc,canceled:!1,memo:void 0,args:void 0},e)}function sd(){return{shared:{hovering:!1,scrolling:!1,wheeling:!1,dragging:!1,moving:!1,pinching:!1,touches:0,buttons:0,down:!1,shiftKey:!1,altKey:!1,metaKey:!1,ctrlKey:!1},drag:ld({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0,_isTap:!0,_delayedEvent:!1,_pointerId:void 0,tap:!1,swipe:[0,0]}),pinch:ld({da:[0,0],vdva:[0,0],origin:void 0,turns:0}),wheel:ld({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),move:ld({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),scroll:ld({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0})}}var cd=new Map,dd=function(){function e(e,t){var n=this;void 0===t&&(t=[]),this.controller=e,this.args=t,this.debounced=!0,this.setTimeout=function(e,t){var r;void 0===t&&(t=140),clearTimeout(n.controller.timeouts[n.stateKey]);for(var i=arguments.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];n.controller.timeouts[n.stateKey]=(r=window).setTimeout.apply(r,[e,t].concat(o))},this.clearTimeout=function(){clearTimeout(n.controller.timeouts[n.stateKey])},this.fireGestureHandler=function(e){if(void 0===e&&(e=!1),n.state._blocked)return n.debounced||(n.state._active=!1,n.clean()),null;if(!e&&!n.state.intentional&&!n.config.triggerAllEvents)return null;if(n.state.intentional){var t=n.state.active,r=n.state._active;n.state.active=r,n.state.first=r&&!t,n.state.last=t&&!r,n.controller.state.shared[n.ingKey]=r}var i=Gc({},n.controller.state.shared,n.state,n.mapStateValues(n.state)),o=n.handler(i);return n.state.memo=void 0!==o?o:n.state.memo,n.state._active||n.clean(),i}}var t=e.prototype;return t.updateSharedState=function(e){Object.assign(this.controller.state.shared,e)},t.updateGestureState=function(e){Object.assign(this.state,e)},t.checkIntentionality=function(e,t){return{_intentional:e,_blocked:!1}},t.getMovement=function(e){var t=this.config,n=t.initial,r=t.bounds,i=t.rubberband,o=t.threshold,a=this.state,l=a._bounds,s=a._initial,c=a._active,d=a._intentional,u=a.lastOffset,p=a.movement,h=this.getInternalMovement(e,this.state),f=!1===d[0]?ud(h[0],o[0]):d[0],g=!1===d[1]?ud(h[1],o[1]):d[1],v=this.checkIntentionality([f,g],h);if(v._blocked)return Gc({},v,{_movement:h,delta:[0,0]});var m,x,b,y,C=v._intentional,w=h;(!1!==C[0]&&!1===d[0]&&(x=ed(n,this.state),m=ed(r,this.state),s[0]=x[0],l[0]=m[0]),!1!==C[1]&&!1===d[1])&&(x=null!=(b=x)?b:ed(n,this.state),m=null!=(y=m)?y:ed(r,this.state),s[1]=x[1],l[1]=m[1]);var $=[!1!==C[0]?h[0]-C[0]:s[0],!1!==C[1]?h[1]-C[1]:s[1]],k=zc($,u),S=c?i:[0,0];return $=pd(l,zc($,s),S),Gc({},v,{intentional:!1!==C[0]||!1!==C[1],_initial:s,_movement:w,movement:$,values:e,offset:pd(l,k,S),delta:Ac($,p)})},t.clean=function(){this.clearTimeout()},qc(e,[{key:"config",get:function(){return this.controller.config[this.stateKey]}},{key:"enabled",get:function(){return this.controller.config.enabled&&this.config.enabled}},{key:"state",get:function(){return this.controller.state[this.stateKey]}},{key:"handler",get:function(){return this.controller.handlers[this.stateKey]}}]),e}();function ud(e,t){return Math.abs(e)>=t&&Bc(e)*t}function pd(e,t,n){var r=t[0],i=t[1],o=n[0],a=n[1],l=e[0],s=l[0],c=l[1],d=e[1],u=d[0],p=d[1];return[Zc(r,s,c,o),Zc(i,u,p,a)]}function hd(e,t,n){var r=e.state,i=e.args,o=t.timeStamp,a=t.type,l=r.values;return{_lastEventType:a,event:t,timeStamp:o,elapsedTime:n?0:o-r.startTime,args:i,previous:l}}function fd(e,t){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return e.call.apply(e,[this,Gc({},t,{event:n})].concat(i))}}var gd=function(e){var t=this;this.classes=e,this.bind=function(){for(var e={},n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(var o,a=Yc(t.classes);!(o=a()).done;){new(0,o.value)(t,r).addBindings(e)}for(var l=0,s=Object.entries(t.nativeRefs);l<s.length;l++){var c=s[l];xd(e,c[0],fd(c[1],Gc({},t.state.shared,{args:r})))}return t.config.domTarget?function(e,t){var n=e.config,r=e.domListeners,i=md(n);if(!i)throw new Error("domTarget must be defined");var o=n.eventOptions;yd(i,vd(r),o);for(var a=0,l=Object.entries(t);a<l.length;a++){var s=l[a],c=s[0],d=s[1],u=c.slice(2).toLowerCase();r.push([u,Jc.apply(void 0,d)])}bd(i,r,o)}(t,e):function(e,t){for(var n=e.config,r={},i=n.eventOptions.capture?"Capture":"",o=0,a=Object.entries(t);o<a.length;o++){var l=a[o],s=l[0],c=l[1],d=Array.isArray(c)?c:[c];r[s+i]=Jc.apply(void 0,d)}return r}(t,e)},this.effect=function(){return t.config.domTarget&&t.bind(),t.clean},this.clean=function(){var e=md(t.config),n=t.config.eventOptions;e&&yd(e,vd(t.domListeners),n),Object.values(t.timeouts).forEach(clearTimeout),function(e){var t=e.config,n=t.window,r=t.eventOptions,i=e.windowListeners;if(!n)return;for(var o in i){yd(n,i[o],r)}e.windowListeners={}}(t)},this.state=sd(),this.timeouts={},this.domListeners=[],this.windowListeners={}};function vd(e){return void 0===e&&(e=[]),e.splice(0,e.length)}function md(e){var t=e.domTarget;return t&&"current"in t?t.current:t}function xd(e,t,n){e[t]||(e[t]=[]),e[t].push(n)}function bd(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,i=Yc(t);!(r=i()).done;){var o=r.value,a=o[0],l=o[1];e.addEventListener(a,l,n)}}function yd(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,i=Yc(t);!(r=i()).done;){var o=r.value,a=o[0],l=o[1];e.removeEventListener(a,l,n)}}function Cd(e,t,n){void 0===n&&(n={});var r=function(e){var t=new Set;e.drag&&t.add(cd.get("drag"));e.wheel&&t.add(cd.get("wheel"));e.scroll&&t.add(cd.get("scroll"));e.move&&t.add(cd.get("move"));e.pinch&&t.add(cd.get("pinch"));e.hover&&t.add(cd.get("hover"));return t}(e),i=q.useMemo((function(){return new gd(r)}),[]);return i.config=t,i.handlers=e,i.nativeRefs=n,q.useEffect(i.effect,[]),i.config.domTarget?wd:i.bind}function wd(){"development"===process.env.NODE_ENV&&console.warn("Deprecation notice: When the `domTarget` option is specified, you don't need to write `useEffect(bind, [bind])` anymore: event binding is now made handled internally to this lib.\n\nNext version won't return anything when `domTarget` is provided, therefore your code will break if you try to call `useEffect`.")}function $d(e){if("touches"in e){var t=e.targetTouches,n=e.changedTouches;return t.length>0?t:n}return null}function kd(e){var t="buttons"in e?e.buttons:0,n=$d(e),r=n&&n.length||0;return{touches:r,down:r>0||t>0,buttons:t,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey}}function Sd(e){var t=$d(e),n=t?t[0]:e;return[n.clientX,n.clientY]}var Ed=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).ingKey="dragging",t.stateKey="drag",t.onDragStart=function(e){t.enabled&&!t.state._active&&(!function(e,t,n){var r=e.config,i=e.windowListeners;void 0===n&&(n=[]),r.window&&(yd(r.window,i[t],r.eventOptions),bd(r.window,i[t]=n,r.eventOptions))}(t.controller,t.stateKey,[["pointermove",t.onDragChange],["pointerup",t.onDragEnd],["pointercancel",t.onDragEnd]]),t.updateGestureState({_pointerId:e.pointerId}),t.config.delay>0?(t.state._delayedEvent=!0,"persist"in e&&"function"==typeof e.persist&&e.persist(),t.setTimeout(t.startDrag.bind(Uc(t)),t.config.delay,e)):t.startDrag(e))},t.onDragChange=function(e){if(!t.state.canceled&&e.pointerId===t.state._pointerId)if(t.state._active){var n=kd(e);if(n.down){t.updateSharedState(n);var r=Sd(e),i=t.getKinematics(r,e),o=hd(Uc(t),e),a=t.state._isTap,l=Hc(i._movement);a&&l>=3&&(a=!1),t.updateGestureState(Gc({},o,i,{_isTap:a})),t.fireGestureHandler()}else t.onDragEnd(e)}else t.state._delayedEvent&&(t.clearTimeout(),t.startDrag(e))},t.onDragEnd=function(e){if(e.pointerId===t.state._pointerId){t.state._active=!1,t.updateSharedState({down:!1,buttons:0,touches:0});var n=t.state._isTap,r=t.state.velocities,i=r[0],o=r[1],a=t.state.movement,l=a[0],s=a[1],c=t.state._intentional,d=c[0],u=c[1],p=t.config.swipeVelocity,h=p[0],f=p[1],g=t.config.swipeDistance,v=g[0],m=g[1],x=Gc({},hd(Uc(t),e),t.getMovement(t.state.values)),b=[0,0];x.elapsedTime<220&&(!1!==d&&Math.abs(i)>h&&Math.abs(l)>v&&(b[0]=Bc(i)),!1!==u&&Math.abs(o)>f&&Math.abs(s)>m&&(b[1]=Bc(o))),t.updateGestureState(Gc({},x,{tap:n,swipe:b})),t.fireGestureHandler(!0===n)}},t.clean=function(){e.prototype.clean.call(Uc(t)),t.state._delayedEvent=!1,function(e,t){var n=e.config,r=e.windowListeners;n.window&&(yd(n.window,r[t],n.eventOptions),delete r[t])}(t.controller,t.stateKey)},t.onCancel=function(){t.state.canceled||(t.updateGestureState({canceled:!0}),t.state._active=!1,t.updateSharedState({down:!1,buttons:0,touches:0}),requestAnimationFrame((function(){return t.fireGestureHandler()})))},t.onClick=function(e){t.state._isTap||e.stopPropagation()},t}Wc(t,e);var n=t.prototype;return n.startDrag=function(e){var t=Sd(e);this.updateSharedState(kd(e)),this.updateGestureState(Gc({},function(e,t,n){var r=e.state.offset,i=n.timeStamp;return Gc({},sd()[e.stateKey],{_active:!0,values:t,initial:t,offset:r,lastOffset:r,startTime:i})}(this,t,e),hd(this,e,!0),{_pointerId:e.pointerId,cancel:this.onCancel})),this.updateGestureState(this.getMovement(t)),this.fireGestureHandler()},n.addBindings=function(e){(xd(e,"onPointerDown",this.onDragStart),this.config.filterTaps)&&xd(e,this.controller.config.eventOptions.capture?"onClick":"onClickCapture",this.onClick)},t}(function(e){function t(){return e.apply(this,arguments)||this}Wc(t,e);var n=t.prototype;return n.getInternalMovement=function(e,t){return Ac(e,t.initial)},n.checkIntentionality=function(e,t){if(!1===e[0]&&!1===e[1])return{_intentional:e,axis:this.state.axis};var n=t.map(Math.abs),r=n[0],i=n[1],o=this.state.axis||(r>i?"x":r<i?"y":void 0);return this.config.axis||this.config.lockDirection?o?this.config.axis&&o!==this.config.axis?{_intentional:e,_blocked:!0,axis:o}:(e["x"===o?1:0]=!1,{_intentional:e,_blocked:!1,axis:o}):{_intentional:[!1,!1],_blocked:!1,axis:o}:{_intentional:e,_blocked:!1,axis:o}},n.getKinematics=function(e,t){var n=this.getMovement(e);if(!n._blocked){var r=t.timeStamp-this.state.timeStamp;Object.assign(n,function(e,t,n){var r=Hc(t),i=0===r?0:1/r,o=0===n?0:1/n,a=o*r,l=t.map((function(e){return o*e})),s=t.map((function(e){return i*e}));return{velocities:l,velocity:a,distance:Hc(e),direction:s}}(n.movement,n.delta,r))}return n},n.mapStateValues=function(e){return{xy:e.values,vxvy:e.velocities}},t}(dd));function Od(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,i,o;if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!Od(e[r],t[r]))return!1;return!0}if("function"==typeof Map&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!Od(r.value[1],t.get(r.value[0])))return!1;return!0}if("function"==typeof Set&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if("undefined"!=typeof Element&&e instanceof Element)return!1;for(r=n;0!=r--;)if(!("_owner"===i[r]&&e.$$typeof||Od(e[i[r]],t[i[r]])))return!1;return!0}return e!=e&&t!=t}function _d(e,t){try{return Od(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}function Ld(e,t){void 0===t&&(t={}),cd.set("drag",Ed);var n=K();return n.current||(n.current=function(e,t){var n,r,i=[],o=!1;return function(){for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];return o&&n===this&&t(l,i)||(r=e.apply(this,l),o=!0,n=this,i=l),r}}(ad,_d)),Cd({drag:e},n.current(t))}
2324
2329
  /*!
2325
2330
  * tabbable 5.3.3
2326
2331
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
2327
- */var Ld=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],Td=Ld.join(","),Rd="undefined"==typeof Element,Pd=Rd?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Dd=!Rd&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},Md=function(e,t,n){var r=Array.prototype.slice.apply(e.querySelectorAll(Td));return t&&Pd.call(e,Td)&&r.unshift(e),r=r.filter(n)},Nd=function e(t,n,r){for(var i=[],o=Array.from(t);o.length;){var a=o.shift();if("SLOT"===a.tagName){var l=a.assignedElements(),s=e(l.length?l:a.children,!0,r);r.flatten?i.push.apply(i,s):i.push({scope:a,candidates:s})}else{Pd.call(a,Td)&&r.filter(a)&&(n||!t.includes(a))&&i.push(a);var c=a.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(a),d=!r.shadowRootFilter||r.shadowRootFilter(a);if(c&&d){var u=e(!0===c?a.children:c.children,!0,r);r.flatten?i.push.apply(i,u):i.push({scope:a,candidates:u})}else o.unshift.apply(o,a.children)}}return i},jd=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},Vd=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Id=function(e){return"INPUT"===e.tagName},zd=function(e){return function(e){return Id(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||Dd(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var i=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!i||i===e}(e)},Ad=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},Hd=function(e,t){return!(t.disabled||function(e){return Id(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=Pd.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Pd.call(i,"details:not([open]) *"))return!0;var o=Dd(e).host,a=(null==o?void 0:o.ownerDocument.contains(o))||e.ownerDocument.contains(e);if(n&&"full"!==n){if("non-zero-area"===n)return Ad(e)}else{if("function"==typeof r){for(var l=e;e;){var s=e.parentElement,c=Dd(e);if(s&&!s.shadowRoot&&!0===r(s))return Ad(e);e=e.assignedSlot?e.assignedSlot:s||c===e.ownerDocument?s:c.host}e=l}if(a)return!e.getClientRects().length}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!Pd.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},Bd=function(e,t){return!(zd(t)||jd(t)<0||!Hd(e,t))},Fd=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Zd=function e(t){var n=[],r=[];return t.forEach((function(t,i){var o=!!t.scope,a=o?t.scope:t,l=jd(a,o),s=o?e(t.candidates):a;0===l?o?n.push.apply(n,s):n.push(a):r.push({documentOrder:i,tabIndex:l,item:t,isScope:o,content:s})})),r.sort(Vd).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},qd=function(e,t){var n;return n=(t=t||{}).getShadowRoot?Nd([e],t.includeContainer,{filter:Bd.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Fd}):Md(e,t.includeContainer,Bd.bind(null,t)),Zd(n)},Gd=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Pd.call(e,Td)&&Bd(t,e)},Wd=Ld.concat("iframe").join(","),Ud=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Pd.call(e,Wd)&&Hd(t,e)};
2332
+ */var Td=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],Rd=Td.join(","),Pd="undefined"==typeof Element,Dd=Pd?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Md=!Pd&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},Nd=function(e,t,n){var r=Array.prototype.slice.apply(e.querySelectorAll(Rd));return t&&Dd.call(e,Rd)&&r.unshift(e),r=r.filter(n)},jd=function e(t,n,r){for(var i=[],o=Array.from(t);o.length;){var a=o.shift();if("SLOT"===a.tagName){var l=a.assignedElements(),s=e(l.length?l:a.children,!0,r);r.flatten?i.push.apply(i,s):i.push({scope:a,candidates:s})}else{Dd.call(a,Rd)&&r.filter(a)&&(n||!t.includes(a))&&i.push(a);var c=a.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(a),d=!r.shadowRootFilter||r.shadowRootFilter(a);if(c&&d){var u=e(!0===c?a.children:c.children,!0,r);r.flatten?i.push.apply(i,u):i.push({scope:a,candidates:u})}else o.unshift.apply(o,a.children)}}return i},Vd=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},Id=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},zd=function(e){return"INPUT"===e.tagName},Ad=function(e){return function(e){return zd(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||Md(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var i=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!i||i===e}(e)},Hd=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},Bd=function(e,t){return!(t.disabled||function(e){return zd(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=Dd.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Dd.call(i,"details:not([open]) *"))return!0;var o=Md(e).host,a=(null==o?void 0:o.ownerDocument.contains(o))||e.ownerDocument.contains(e);if(n&&"full"!==n){if("non-zero-area"===n)return Hd(e)}else{if("function"==typeof r){for(var l=e;e;){var s=e.parentElement,c=Md(e);if(s&&!s.shadowRoot&&!0===r(s))return Hd(e);e=e.assignedSlot?e.assignedSlot:s||c===e.ownerDocument?s:c.host}e=l}if(a)return!e.getClientRects().length}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!Dd.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},Fd=function(e,t){return!(Ad(t)||Vd(t)<0||!Bd(e,t))},Zd=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},qd=function e(t){var n=[],r=[];return t.forEach((function(t,i){var o=!!t.scope,a=o?t.scope:t,l=Vd(a,o),s=o?e(t.candidates):a;0===l?o?n.push.apply(n,s):n.push(a):r.push({documentOrder:i,tabIndex:l,item:t,isScope:o,content:s})})),r.sort(Id).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},Gd=function(e,t){var n;return n=(t=t||{}).getShadowRoot?jd([e],t.includeContainer,{filter:Fd.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Zd}):Nd(e,t.includeContainer,Fd.bind(null,t)),qd(n)},Wd=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Dd.call(e,Rd)&&Fd(t,e)},Ud=Td.concat("iframe").join(","),Xd=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Dd.call(e,Ud)&&Bd(t,e)};
2328
2333
  /*!
2329
2334
  * focus-trap 6.9.4
2330
2335
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
2331
2336
  */
2332
- function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xd(Object(n),!0).forEach((function(t){Kd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jd,Qd=(Jd=[],{activateTrap:function(e){if(Jd.length>0){var t=Jd[Jd.length-1];t!==e&&t.pause()}var n=Jd.indexOf(e);-1===n||Jd.splice(n,1),Jd.push(e)},deactivateTrap:function(e){var t=Jd.indexOf(e);-1!==t&&Jd.splice(t,1),Jd.length>0&&Jd[Jd.length-1].unpause()}}),eu=function(e){return setTimeout(e,0)},tu=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},nu=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?e.apply(void 0,n):e},ru=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},iu=function(e,t){var n,r=(null==t?void 0:t.document)||document,i=Yd({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),o={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},a=function(e,t,n){return e&&void 0!==e[t]?e[t]:i[n||t]},l=function(e){return o.containerGroups.findIndex((function(t){var n=t.container,r=t.tabbableNodes;return n.contains(e)||r.find((function(t){return t===e}))}))},s=function(e){var t=i[e];if("function"==typeof t){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];t=t.apply(void 0,o)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var l=t;if("string"==typeof t&&!(l=r.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return l},c=function(){var e=s("initialFocus");if(!1===e)return!1;if(void 0===e)if(l(r.activeElement)>=0)e=r.activeElement;else{var t=o.tabbableGroups[0];e=t&&t.firstTabbableNode||s("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},d=function(){if(o.containerGroups=o.containers.map((function(e){var t,n,r=qd(e,i.tabbableOptions),o=(t=e,(n=(n=i.tabbableOptions)||{}).getShadowRoot?Nd([t],n.includeContainer,{filter:Hd.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):Md(t,n.includeContainer,Hd.bind(null,n)));return{container:e,tabbableNodes:r,focusableNodes:o,firstTabbableNode:r.length>0?r[0]:null,lastTabbableNode:r.length>0?r[r.length-1]:null,nextTabbableNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=o.findIndex((function(t){return t===e}));if(!(n<0))return t?o.slice(n+1).find((function(e){return Gd(e,i.tabbableOptions)})):o.slice(0,n).reverse().find((function(e){return Gd(e,i.tabbableOptions)}))}}})),o.tabbableGroups=o.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),o.tabbableGroups.length<=0&&!s("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},u=function e(t){!1!==t&&t!==r.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!i.preventScroll}),o.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(c()))},p=function(e){var t=s("setReturnFocus",e);return t||!1!==t&&e},h=function(e){var t=ru(e);l(t)>=0||(nu(i.clickOutsideDeactivates,e)?n.deactivate({returnFocus:i.returnFocusOnDeactivate&&!Ud(t,i.tabbableOptions)}):nu(i.allowOutsideClick,e)||e.preventDefault())},f=function(e){var t=ru(e),n=l(t)>=0;n||t instanceof Document?n&&(o.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),u(o.mostRecentlyFocusedNode||c()))},g=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==nu(i.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=ru(e);d();var n=null;if(o.tabbableGroups.length>0){var r=l(t),a=r>=0?o.containerGroups[r]:void 0;if(r<0)n=e.shiftKey?o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:o.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var c=tu(o.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(c<0&&(a.container===t||Ud(t,i.tabbableOptions)&&!Gd(t,i.tabbableOptions)&&!a.nextTabbableNode(t,!1))&&(c=r),c>=0){var p=0===c?o.tabbableGroups.length-1:c-1;n=o.tabbableGroups[p].lastTabbableNode}}else{var h=tu(o.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(h<0&&(a.container===t||Ud(t,i.tabbableOptions)&&!Gd(t,i.tabbableOptions)&&!a.nextTabbableNode(t))&&(h=r),h>=0){var f=h===o.tabbableGroups.length-1?0:h+1;n=o.tabbableGroups[f].firstTabbableNode}}}else n=s("fallbackFocus");n&&(e.preventDefault(),u(n))}(e)},v=function(e){var t=ru(e);l(t)>=0||nu(i.clickOutsideDeactivates,e)||nu(i.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},m=function(){if(o.active)return Qd.activateTrap(n),o.delayInitialFocusTimer=i.delayInitialFocus?eu((function(){u(c())})):u(c()),r.addEventListener("focusin",f,!0),r.addEventListener("mousedown",h,{capture:!0,passive:!1}),r.addEventListener("touchstart",h,{capture:!0,passive:!1}),r.addEventListener("click",v,{capture:!0,passive:!1}),r.addEventListener("keydown",g,{capture:!0,passive:!1}),n},x=function(){if(o.active)return r.removeEventListener("focusin",f,!0),r.removeEventListener("mousedown",h,!0),r.removeEventListener("touchstart",h,!0),r.removeEventListener("click",v,!0),r.removeEventListener("keydown",g,!0),n};return(n={get active(){return o.active},get paused(){return o.paused},activate:function(e){if(o.active)return this;var t=a(e,"onActivate"),n=a(e,"onPostActivate"),i=a(e,"checkCanFocusTrap");i||d(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=r.activeElement,t&&t();var l=function(){i&&d(),m(),n&&n()};return i?(i(o.containers.concat()).then(l,l),this):(l(),this)},deactivate:function(e){if(!o.active)return this;var t=Yd({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},e);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,x(),o.active=!1,o.paused=!1,Qd.deactivateTrap(n);var r=a(t,"onDeactivate"),l=a(t,"onPostDeactivate"),s=a(t,"checkCanReturnFocus"),c=a(t,"returnFocus","returnFocusOnDeactivate");r&&r();var d=function(){eu((function(){c&&u(p(o.nodeFocusedBeforeActivation)),l&&l()}))};return c&&s?(s(p(o.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(){return o.paused||!o.active||(o.paused=!0,x()),this},unpause:function(){return o.paused&&o.active?(o.paused=!1,d(),m(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return o.containers=t.map((function(e){return"string"==typeof e?r.querySelector(e):e})),o.active&&d(),this}}).updateContainerElements(e),n};var ou=!1;if("undefined"!=typeof window){var au={get passive(){ou=!0}};window.addEventListener("testPassive",null,au),window.removeEventListener("testPassive",null,au)}var lu,su="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),cu=[],du=!1,uu=-1,pu=void 0,hu=void 0,fu=function(e){return cu.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},gu=function(e){var t=e||window.event;return!!fu(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},vu=function(e,t){if(e){if(!cu.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};cu=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(cu),[n]),su?(e.ontouchstart=function(e){1===e.targetTouches.length&&(uu=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-uu;!fu(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?gu(e):e.stopPropagation())}(t,e)},du||(document.addEventListener("touchmove",gu,ou?{passive:!1}:void 0),du=!0)):function(e){if(void 0===hu){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(hu=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===pu&&(pu=document.body.style.overflow,document.body.style.overflow="hidden")}(t)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},mu=function(e){e?(cu=cu.filter((function(t){return t.targetElement!==e})),su?(e.ontouchstart=null,e.ontouchmove=null,du&&0===cu.length&&(document.removeEventListener("touchmove",gu,ou?{passive:!1}:void 0),du=!1)):cu.length||(void 0!==hu&&(document.body.style.paddingRight=hu,hu=void 0),void 0!==pu&&(document.body.style.overflow=pu,pu=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")},xu=[],bu="ResizeObserver loop completed with undelivered notifications.";!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(lu||(lu={}));var yu,Cu=function(e){return Object.freeze(e)},wu=function(e,t){this.inlineSize=e,this.blockSize=t,Cu(this)},$u=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Cu(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),ku=function(e){return e instanceof SVGElement&&"getBBox"in e},Su=function(e){if(ku(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,o=i.offsetWidth,a=i.offsetHeight;return!(o||a||e.getClientRects().length)},Eu=function(e){var t;if(e instanceof Element)return!0;var n=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},Ou="undefined"!=typeof window?window:{},_u=new WeakMap,Lu=/auto|scroll/,Tu=/^tb|vertical/,Ru=/msie|trident/i.test(Ou.navigator&&Ou.navigator.userAgent),Pu=function(e){return parseFloat(e||"0")},Du=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new wu((n?t:e)||0,(n?e:t)||0)},Mu=Cu({devicePixelContentBoxSize:Du(),borderBoxSize:Du(),contentBoxSize:Du(),contentRect:new $u(0,0,0,0)}),Nu=function(e,t){if(void 0===t&&(t=!1),_u.has(e)&&!t)return _u.get(e);if(Su(e))return _u.set(e,Mu),Mu;var n=getComputedStyle(e),r=ku(e)&&e.ownerSVGElement&&e.getBBox(),i=!Ru&&"border-box"===n.boxSizing,o=Tu.test(n.writingMode||""),a=!r&&Lu.test(n.overflowY||""),l=!r&&Lu.test(n.overflowX||""),s=r?0:Pu(n.paddingTop),c=r?0:Pu(n.paddingRight),d=r?0:Pu(n.paddingBottom),u=r?0:Pu(n.paddingLeft),p=r?0:Pu(n.borderTopWidth),h=r?0:Pu(n.borderRightWidth),f=r?0:Pu(n.borderBottomWidth),g=u+c,v=s+d,m=(r?0:Pu(n.borderLeftWidth))+h,x=p+f,b=l?e.offsetHeight-x-e.clientHeight:0,y=a?e.offsetWidth-m-e.clientWidth:0,C=i?g+m:0,w=i?v+x:0,$=r?r.width:Pu(n.width)-C-y,k=r?r.height:Pu(n.height)-w-b,S=$+g+y+m,E=k+v+b+x,O=Cu({devicePixelContentBoxSize:Du(Math.round($*devicePixelRatio),Math.round(k*devicePixelRatio),o),borderBoxSize:Du(S,E,o),contentBoxSize:Du($,k,o),contentRect:new $u(u,s,$,k)});return _u.set(e,O),O},ju=function(e,t,n){var r=Nu(e,n),i=r.borderBoxSize,o=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case lu.DEVICE_PIXEL_CONTENT_BOX:return a;case lu.BORDER_BOX:return i;default:return o}},Vu=function(e){var t=Nu(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=Cu([t.borderBoxSize]),this.contentBoxSize=Cu([t.contentBoxSize]),this.devicePixelContentBoxSize=Cu([t.devicePixelContentBoxSize])},Iu=function(e){if(Su(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},zu=function(){var e=1/0,t=[];xu.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new Vu(t.target),i=Iu(t.target);r.push(n),t.lastReportedSize=ju(t.target,t.observedBox),i<e&&(e=i)})),t.push((function(){n.callback.call(n.observer,r,n.observer)})),n.activeTargets.splice(0,n.activeTargets.length)}}));for(var n=0,r=t;n<r.length;n++){(0,r[n])()}return e},Au=function(e){xu.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(Iu(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},Hu=function(){var e=0;for(Au(e);xu.some((function(e){return e.activeTargets.length>0}));)e=zu(),Au(e);return xu.some((function(e){return e.skippedTargets.length>0}))&&function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:bu}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=bu),window.dispatchEvent(e)}(),e>0},Bu=[],Fu=function(e){if(!yu){var t=0,n=document.createTextNode("");new MutationObserver((function(){return Bu.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),yu=function(){n.textContent="".concat(t?t--:t++)}}Bu.push(e),yu()},Zu=0,qu={attributes:!0,characterData:!0,childList:!0,subtree:!0},Gu=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Wu=function(e){return void 0===e&&(e=0),Date.now()+e},Uu=!1,Xu=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!Uu){Uu=!0;var n,r=Wu(e);n=function(){var n=!1;try{n=Hu()}finally{if(Uu=!1,e=r-Wu(),!Zu)return;n?t.run(1e3):e>0?t.run(e):t.start()}},Fu((function(){requestAnimationFrame(n)}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,qu)};document.body?t():Ou.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Gu.forEach((function(t){return Ou.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),Gu.forEach((function(t){return Ou.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),Yu=function(e){!Zu&&e>0&&Xu.start(),!(Zu+=e)&&Xu.stop()},Ku=function(){function e(e,t){this.target=e,this.observedBox=t||lu.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=ju(this.target,this.observedBox,!0);return function(e){return!ku(e)&&!function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)&&"inline"===getComputedStyle(e).display}(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),Ju=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},Qu=new WeakMap,ep=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},tp=function(){function e(){}return e.connect=function(e,t){var n=new Ju(e,t);Qu.set(e,n)},e.observe=function(e,t,n){var r=Qu.get(e),i=0===r.observationTargets.length;ep(r.observationTargets,t)<0&&(i&&xu.push(r),r.observationTargets.push(new Ku(t,n&&n.box)),Yu(1),Xu.schedule())},e.unobserve=function(e,t){var n=Qu.get(e),r=ep(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&xu.splice(xu.indexOf(n),1),n.observationTargets.splice(r,1),Yu(-1))},e.disconnect=function(e){var t=this,n=Qu.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),np=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");tp.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Eu(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");tp.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Eu(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");tp.unobserve(this,e)},e.prototype.disconnect=function(){tp.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();function rp(){return rp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rp.apply(this,arguments)}function ip(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}var op="undefined"!=typeof window?J:U;function ap(e,t,n){return t=(t=+t)==t?t:0,n=(n=+n)==n?n:0,(e=+e)==e&&(e=(e=e<=n?e:n)>=t?e:t),e}function lp(e){var t=Math.round(e);if(Number.isNaN(e))throw new TypeError("Found a NaN! Check your snapPoints / defaultSnap / snapTo ");return t}var sp={box:"border-box"};function cp(e,t){var n=t.label,r=t.enabled,i=t.resizeSourceRef,o=W(0),a=o[0],l=o[1];re(n+": "+a);var s=Q((function(e){l(e[0].borderBoxSize[0].blockSize),i.current="element"}),[i]);return op((function(){if(e.current&&r){var t=new np(s);return t.observe(e.current,sp),function(){t.disconnect()}}}),[e,s,r]),r?a:0}function dp(e){return void 0===e&&(e=1e3),new Promise((function(t){return setTimeout(t,e)}))}var up={DRAG:{target:"#overlay.dragging",actions:"onOpenEnd"}},pp={RESIZE:{target:"#overlay.resizing",actions:"onOpenEnd"}},hp=function(e,t,n){return void 0===n&&(n=e.context),new ms(e,t,n)}({id:"overlay",initial:"closed",context:{initialState:"CLOSED"},states:{closed:{on:{OPEN:"opening",CLOSE:void 0}},opening:{initial:"start",states:{start:{invoke:{src:"onOpenStart",onDone:"transition"}},transition:{always:[{target:"immediately",cond:"initiallyOpen"},{target:"smoothly",cond:"initiallyClosed"}]},immediately:{initial:"open",states:{open:{invoke:{src:"openImmediately",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"#overlay.opening.end"},on:rp({},up,pp)}}},smoothly:{initial:"visuallyHidden",states:{visuallyHidden:{invoke:{src:"renderVisuallyHidden",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"open"}},open:{invoke:{src:"openSmoothly",onDone:"#overlay.opening.end"},on:rp({},up,pp)}}},end:{invoke:{src:"onOpenEnd",onDone:"done"},on:{CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:rp({},{CLOSE:{target:"#overlay.closing",actions:"onOpenCancel"}}),onDone:"open"},open:{on:{DRAG:"#overlay.dragging",SNAP:"snapping",RESIZE:"resizing"}},dragging:{on:{SNAP:"snapping"}},snapping:{initial:"start",states:{start:{invoke:{src:"onSnapStart",onDone:"snappingSmoothly"},entry:[bs({y:function(e,t){return t.payload.y},velocity:function(e,t){return t.payload.velocity},snapSource:function(e,t){var n=t.payload.source;return void 0===n?"custom":n}})]},snappingSmoothly:{invoke:{src:"snapSmoothly",onDone:"end"}},end:{invoke:{src:"onSnapEnd",onDone:"done"},on:{RESIZE:"#overlay.resizing",SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{SNAP:{target:"snapping",actions:"onSnapEnd"},RESIZE:{target:"#overlay.resizing",actions:"onSnapCancel"},DRAG:{target:"#overlay.dragging",actions:"onSnapCancel"},CLOSE:{target:"#overlay.closing",actions:"onSnapCancel"}},onDone:"open"},resizing:{initial:"start",states:{start:{invoke:{src:"onResizeStart",onDone:"resizingSmoothly"}},resizingSmoothly:{invoke:{src:"resizeSmoothly",onDone:"end"}},end:{invoke:{src:"onResizeEnd",onDone:"done"},on:{SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{RESIZE:{target:"resizing",actions:"onResizeEnd"},SNAP:{target:"snapping",actions:"onResizeCancel"},DRAG:{target:"#overlay.dragging",actions:"onResizeCancel"},CLOSE:{target:"#overlay.closing",actions:"onResizeCancel"}},onDone:"open"},closing:{initial:"start",states:{start:{invoke:{src:"onCloseStart",onDone:"deactivating"},on:{OPEN:{target:"#overlay.open",actions:"onCloseCancel"}}},deactivating:{invoke:{src:"deactivate",onDone:"closingSmoothly"}},closingSmoothly:{invoke:{src:"closeSmoothly",onDone:"end"}},end:{invoke:{src:"onCloseEnd",onDone:"done"},on:{OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}}},done:{type:"final"}},on:{CLOSE:void 0,OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}},onDone:"closed"}},on:{CLOSE:"closing"}},{actions:{onOpenCancel:function(e,t){},onSnapCancel:function(e,t){},onResizeCancel:function(e,t){},onCloseCancel:function(e,t){},onOpenEnd:function(e,t){},onSnapEnd:function(e,t){},onRezizeEnd:function(e,t){}},services:{onSnapStart:function(){try{return Promise.resolve(dp()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenStart:function(){try{return Promise.resolve(dp()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseStart:function(){try{return Promise.resolve(dp()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeStart:function(){try{return Promise.resolve(dp()).then((function(){}))}catch(e){return Promise.reject(e)}},onSnapEnd:function(){try{return Promise.resolve(dp()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenEnd:function(){try{return Promise.resolve(dp()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseEnd:function(){try{return Promise.resolve(dp()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeEnd:function(){try{return Promise.resolve(dp()).then((function(){}))}catch(e){return Promise.reject(e)}},renderVisuallyHidden:function(e,t){try{return Promise.resolve(dp()).then((function(){}))}catch(e){return Promise.reject(e)}},activate:function(e,t){try{return Promise.resolve(dp()).then((function(){}))}catch(e){return Promise.reject(e)}},deactivate:function(e,t){try{return Promise.resolve(dp()).then((function(){}))}catch(e){return Promise.reject(e)}},openSmoothly:function(e,t){try{return Promise.resolve(dp()).then((function(){}))}catch(e){return Promise.reject(e)}},openImmediately:function(e,t){try{return Promise.resolve(dp()).then((function(){}))}catch(e){return Promise.reject(e)}},snapSmoothly:function(e,t){try{return Promise.resolve(dp()).then((function(){}))}catch(e){return Promise.reject(e)}},resizeSmoothly:function(e,t){try{return Promise.resolve(dp()).then((function(){}))}catch(e){return Promise.reject(e)}},closeSmoothly:function(e,t){try{return Promise.resolve(dp()).then((function(){}))}catch(e){return Promise.reject(e)}}},guards:{initiallyClosed:function(e){return"CLOSED"===e.initialState},initiallyOpen:function(e){return"OPEN"===e.initialState}}}),fp=["children","sibling","className","footer","header","open","initialState","lastSnapRef","initialFocusRef","onDismiss","maxHeight","defaultSnap","snapPoints","blocking","scrollLocking","style","onSpringStart","onSpringCancel","onSpringEnd","reserveScrollBarGap","expandOnContentDrag"],gp=["velocity"],vp=["onRest","config"],mp={tension:170,friction:26},xp=mp.tension,bp=mp.friction,yp=q.forwardRef((function(e,t){var n=e.children,r=e.sibling,i=e.className,o=e.footer,a=e.header,l=e.open,s=e.initialState,c=e.lastSnapRef,d=e.initialFocusRef,u=e.onDismiss,p=e.maxHeight,h=e.defaultSnap,f=void 0===h?wp:h,g=e.snapPoints,v=void 0===g?$p:g,m=e.blocking,x=void 0===m||m,b=e.scrollLocking,y=void 0===b||b,C=e.style,w=e.onSpringStart,$=e.onSpringCancel,k=e.onSpringEnd,S=e.reserveScrollBarGap,E=void 0===S?x:S,O=e.expandOnContentDrag,_=void 0!==O&&O,L=ip(e,fp),T=function(){var e=W(!1),t=e[0],n=e[1],r=W({}),i=r[0],o=r[1],a=Q((function(e){return o((function(t){var n;return rp({},t,((n={})[e]=!1,n))})),function(){o((function(t){var n;return rp({},t,((n={})[e]=!0,n))}))}}),[]);return U((function(){var e=Object.values(i);0!==e.length&&e.every(Boolean)&&n(!0)}),[i]),{ready:t,registerReady:a}}(),R=T.ready,P=T.registerReady,D=K(!1),M=K(w),N=K($),j=K(k);U((function(){M.current=w,N.current=$,j.current=k}),[$,w,k]);var V,I,z=lc((function(){return{y:0,ready:0,maxHeight:0,minSnap:0,maxSnap:0}})),A=z[0],H=z[1],B=K(null),F=K(null),Z=K(null),G=K(null),X=K(null),Y=K(null),J=K(0),ee=K(),ie=K(!1),oe=(V=te((function(){return"undefined"!=typeof window?window.matchMedia("(prefers-reduced-motion: reduce)"):null}),[]),I=K(null==V?void 0:V.matches),re(I.current?"reduce":"no-preference"),U((function(){var e=function(e){I.current=e.matches};return null==V||V.addListener(e),function(){return null==V?void 0:V.removeListener(e)}}),[V]),I),ae=function(e){var t=e.targetRef,n=e.enabled,r=e.reserveScrollBarGap,i=K({activate:function(){throw new TypeError("Tried to activate scroll lock too early")},deactivate:function(){}});return re(n?"Enabled":"Disabled"),U((function(){if(!n)return i.current.deactivate(),void(i.current={activate:function(){},deactivate:function(){}});var e=t.current,o=!1;i.current={activate:function(){o||(o=!0,vu(e,{allowTouchMove:function(e){return e.closest("[data-body-scroll-lock-ignore]")},reserveScrollBarGap:r}))},deactivate:function(){o&&(o=!1,mu(e))}}}),[n,t,r]),i}({targetRef:F,enabled:R&&y,reserveScrollBarGap:E}),le=function(e){var t=e.targetRef,n=e.enabled,r=K({activate:function(){throw new TypeError("Tried to activate aria hider too early")},deactivate:function(){}});return re(n?"Enabled":"Disabled"),U((function(){if(!n)return r.current.deactivate(),void(r.current={activate:function(){},deactivate:function(){}});var e=t.current,i=!1,o=[],a=[];r.current={activate:function(){if(!i){i=!0;var t=e.parentNode;document.querySelectorAll("body > *").forEach((function(e){if(e!==t){var n=e.getAttribute("aria-hidden");null!==n&&"false"!==n||(o.push(n),a.push(e),e.setAttribute("aria-hidden","true"))}}))}},deactivate:function(){i&&(i=!1,a.forEach((function(e,t){var n=o[t];null===n?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n)})),o=[],a=[])}}}),[t,n]),r}({targetRef:B,enabled:R&&x}),se=function(e){var t=e.targetRef,n=e.fallbackRef,r=e.initialFocusRef,i=e.enabled,o=K({activate:function(){throw new TypeError("Tried to activate focus trap too early")},deactivate:function(){}});return re(i?"Enabled":"Disabled"),U((function(){if(!i)return o.current.deactivate(),void(o.current={activate:function(){},deactivate:function(){}});var e=n.current,a=iu(t.current,{onActivate:void 0,initialFocus:r?function(){return(null==r?void 0:r.current)||e}:void 0,fallbackFocus:e,escapeDeactivates:!1,clickOutsideDeactivates:!1}),l=!1;o.current={activate:function(){try{return l?Promise.resolve():(l=!0,Promise.resolve(a.activate()).then((function(){return Promise.resolve(new Promise((function(e){return setTimeout((function(){return e(void 0)}),0)}))).then((function(){}))})))}catch(e){return Promise.reject(e)}},deactivate:function(){l&&(l=!1,a.deactivate())}}}),[i,n,r,t]),o}({targetRef:B,fallbackRef:Y,initialFocusRef:d||void 0,enabled:R&&x&&!1!==d}),ce=function(e){var t=e.getSnapPoints,n=e.heightRef,r=e.lastSnapRef,i=e.ready,o=function(e){var t=e.contentRef,n=e.controlledMaxHeight,r=e.footerEnabled,i=e.footerRef,o=e.headerEnabled,a=e.headerRef,l=e.registerReady,s=e.resizeSourceRef,c=te((function(){return l("contentHeight")}),[l]),d=function(e,t,n){var r=te((function(){return t("maxHeight")}),[t]),i=W((function(){return lp(e)||"undefined"!=typeof window?window.innerHeight:0})),o=i[0],a=i[1],l=o>0,s=K(0);return re(e?"controlled":"auto"),U((function(){l&&r()}),[l,r]),op((function(){if(e)return a(lp(e)),void(n.current="maxheightprop");var t=function(){s.current||(s.current=requestAnimationFrame((function(){a(window.innerHeight),n.current="window",s.current=0})))};return window.addEventListener("resize",t),a(window.innerHeight),n.current="window",r(),function(){window.removeEventListener("resize",t),cancelAnimationFrame(s.current)}}),[e,r,n]),o}(n,l,s),u=cp(a,{label:"headerHeight",enabled:o,resizeSourceRef:s}),p=cp(t,{label:"contentHeight",enabled:!0,resizeSourceRef:s}),h=cp(i,{label:"footerHeight",enabled:r,resizeSourceRef:s}),f=Math.min(d-u-h,p)+u+h;re("minHeight: "+f);var g=p>0;return U((function(){g&&c()}),[g,c]),{maxHeight:d,minHeight:f,headerHeight:u,footerHeight:h}}({contentRef:e.contentRef,controlledMaxHeight:e.controlledMaxHeight,footerEnabled:e.footerEnabled,footerRef:e.footerRef,headerEnabled:e.headerEnabled,headerRef:e.headerRef,registerReady:e.registerReady,resizeSourceRef:e.resizeSourceRef}),a=o.maxHeight,l=o.minHeight,s=o.headerHeight,c=o.footerHeight,d=function(e,t){var n=[].concat(e).map(lp).reduce((function(e,n){return e.add(ap(n,0,t)),e}),new Set),r=Array.from(n),i=Math.min.apply(Math,r);if(Number.isNaN(i))throw new TypeError("minSnap is NaN");var o=Math.max.apply(Math,r);if(Number.isNaN(o))throw new TypeError("maxSnap is NaN");return{snapPoints:r,minSnap:i,maxSnap:o}}(i?t({height:n.current,footerHeight:c,headerHeight:s,minHeight:l,maxHeight:a}):[0],a),u=d.snapPoints,p=d.minSnap,h=d.maxSnap;return re("minSnap: "+p+", maxSnap:"+h),{minSnap:p,maxSnap:h,findSnap:function(e){var t=lp("function"==typeof e?e({footerHeight:c,headerHeight:s,height:n.current,minHeight:l,maxHeight:a,snapPoints:u,lastSnap:r.current}):e);return u.reduce((function(e,n){return Math.abs(n-t)<Math.abs(e-t)?n:e}),p)},maxHeight:a}}({contentRef:Z,controlledMaxHeight:p,footerEnabled:!!o,footerRef:X,getSnapPoints:v,headerEnabled:!1!==a,headerRef:G,heightRef:J,lastSnapRef:c,ready:R,registerReady:P,resizeSourceRef:ee}),de=ce.minSnap,ue=ce.maxSnap,pe=ce.maxHeight,he=ce.findSnap,fe=K(pe),ge=K(de),ve=K(ue),me=K(he),xe=K(0);op((function(){fe.current=pe,ve.current=ue,ge.current=de,me.current=he,xe.current=he(f)}),[he,f,pe,ue,de]);var be=Q((function(e){var t=e.onRest,n=e.config,r=(n=void 0===n?{}:n).velocity,i=void 0===r?1:r,o=ip(n,gp),a=ip(e,vp);return new Promise((function(e){return H(rp({},a,{config:rp({velocity:i},o,{mass:1,tension:xp,friction:Math.max(bp,bp+(bp-bp*i))}),onRest:function(){var n=[].slice.call(arguments);e.apply(void 0,n),null==t||t.apply(void 0,n)}}))}))}),[H]),ye=Ps(hp,{devTools:!1,actions:{onOpenCancel:Q((function(){return null==N.current?void 0:N.current({type:"OPEN"})}),[]),onSnapCancel:Q((function(e){return null==N.current?void 0:N.current({type:"SNAP",source:e.snapSource})}),[]),onCloseCancel:Q((function(){return null==N.current?void 0:N.current({type:"CLOSE"})}),[]),onResizeCancel:Q((function(){return null==N.current?void 0:N.current({type:"RESIZE",source:ee.current})}),[]),onOpenEnd:Q((function(){return null==j.current?void 0:j.current({type:"OPEN"})}),[]),onSnapEnd:Q((function(e,t){return null==j.current?void 0:j.current({type:"SNAP",source:e.snapSource})}),[]),onResizeEnd:Q((function(){return null==j.current?void 0:j.current({type:"RESIZE",source:ee.current})}),[])},context:{initialState:s},services:{onSnapStart:Q((function(e,t){try{return Promise.resolve(null==M.current?void 0:M.current({type:"SNAP",source:t.payload.source||"custom"}))}catch(e){return Promise.reject(e)}}),[]),onOpenStart:Q((function(){try{return Promise.resolve(null==M.current?void 0:M.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseStart:Q((function(){try{return Promise.resolve(null==M.current?void 0:M.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeStart:Q((function(){try{return Promise.resolve(null==M.current?void 0:M.current({type:"RESIZE",source:ee.current}))}catch(e){return Promise.reject(e)}}),[]),onSnapEnd:Q((function(e,t){try{return Promise.resolve(null==j.current?void 0:j.current({type:"SNAP",source:e.snapSource}))}catch(e){return Promise.reject(e)}}),[]),onOpenEnd:Q((function(){try{return Promise.resolve(null==j.current?void 0:j.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseEnd:Q((function(){try{return Promise.resolve(null==j.current?void 0:j.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeEnd:Q((function(){try{return Promise.resolve(null==j.current?void 0:j.current({type:"RESIZE",source:ee.current}))}catch(e){return Promise.reject(e)}}),[]),renderVisuallyHidden:Q((function(e,t){try{return Promise.resolve(be({y:xe.current,ready:0,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:!0})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be]),activate:Q((function(e,t){try{return D.current=!0,Promise.resolve(Promise.all([ae.current.activate(),se.current.activate(),le.current.activate()])).then((function(){}))}catch(e){return Promise.reject(e)}}),[le,se,ae]),deactivate:Q((function(){try{return ae.current.deactivate(),se.current.deactivate(),le.current.deactivate(),D.current=!1,Promise.resolve()}catch(e){return Promise.reject(e)}}),[le,se,ae]),openImmediately:Q((function(){try{return J.current=xe.current,Promise.resolve(be({y:xe.current,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:!0})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be]),openSmoothly:Q((function(){try{return Promise.resolve(be({y:0,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:!0})).then((function(){return J.current=xe.current,Promise.resolve(be({y:xe.current,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:oe.current})).then((function(){}))}))}catch(e){return Promise.reject(e)}}),[be,oe]),snapSmoothly:Q((function(e,t){try{var n=me.current(e.y);return J.current=n,c.current=n,Promise.resolve(be({y:n,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:ge.current,immediate:oe.current,config:{velocity:e.velocity}})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be,c,oe]),resizeSmoothly:Q((function(){try{var e=me.current(J.current);return J.current=e,c.current=e,Promise.resolve(be({y:e,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:ge.current,immediate:"element"!==ee.current||oe.current})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be,c,oe]),closeSmoothly:Q((function(e,t){try{return be({minSnap:J.current,immediate:!0}),J.current=0,Promise.resolve(be({y:0,maxHeight:fe.current,maxSnap:ve.current,immediate:oe.current})).then((function(){return Promise.resolve(be({ready:0,immediate:!0})).then((function(){}))}))}catch(e){return Promise.reject(e)}}),[be,oe])}}),Ce=ye[0],we=ye[1];U((function(){R&&we(l?"OPEN":"CLOSE")}),[l,we,R]),op((function(){(pe||ue||de)&&we("RESIZE")}),[pe,ue,de,we]),U((function(){return function(){ae.current.deactivate(),se.current.deactivate(),le.current.deactivate()}}),[le,se,ae]),ne(t,(function(){return{snapTo:function(e,t){var n=void 0===t?{}:t,r=n.velocity,i=void 0===r?1:r,o=n.source,a=void 0===o?"custom":o;we("SNAP",{payload:{y:me.current(e),velocity:i,source:a}})},get height(){return J.current}}}),[we]),U((function(){var e=F.current,t=function(e){ie.current&&e.preventDefault()},n=function(t){e.scrollTop<0&&(requestAnimationFrame((function(){e.style.overflow="hidden",e.scrollTop=0,e.style.removeProperty("overflow")})),t.preventDefault())};return _&&(e.addEventListener("scroll",t),e.addEventListener("touchmove",t),e.addEventListener("touchstart",n)),function(){e.removeEventListener("scroll",t),e.removeEventListener("touchmove",t),e.removeEventListener("touchstart",n)}}),[_,F]);var $e=_d((function(e){var t=e.args,n=(t=void 0===t?[]:t)[0],r=(n=void 0===n?{}:n).closeOnTap,i=void 0!==r&&r,o=n.isContentDragging,a=void 0!==o&&o,l=e.cancel,s=e.direction[1],c=e.down,d=e.first,p=e.last,h=e.memo,f=void 0===h?A.y.getValue():h,g=e.tap,v=e.velocity,m=-1*e.movement[1];if(!D.current)return l(),f;if(u&&i&&g)return l(),setTimeout((function(){return u()}),0),f;if(g)return f;var x=f+m,b=m*v,y=Math.max(ge.current,Math.min(ve.current,x+2*b));if(!c&&u&&s>0&&x+b<ge.current/2)return l(),u(),f;var C=c?u||ge.current!==ve.current?Fc(x,u?0:ge.current,ve.current,.55):x<ge.current?Fc(x,ge.current,2*ve.current,.55):Fc(x,ge.current/2,ve.current,.55):y;return _&&a?(C>=ve.current&&(C=ve.current),f===ve.current&&F.current.scrollTop>0&&(C=ve.current),ie.current=C<ve.current):ie.current=!1,d&&we("DRAG"),p?(we("SNAP",{payload:{y:C,velocity:v>.05?v:1,source:"dragging"}}),f):(H({y:C,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:ge.current,immediate:!0,config:{velocity:v}}),f)}),{filterTaps:!0});if(Number.isNaN(ve.current))throw new TypeError("maxSnapRef is NaN!!");if(Number.isNaN(ge.current))throw new TypeError("minSnapRef is NaN!!");var ke=function(e){var t,n=e.spring,r=tc([n.y,n.maxHeight],(function(e,t){return Math.round(ap(t-e,0,16))+"px"})),i=tc([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return ap(e,t,n)+"px"})),o=tc([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return e<t?t-e+"px":e>n?n-e+"px":"0px"})),a=tc([n.y,n.maxSnap],(function(e,t){return e>=t?Math.ceil(e-t):0})),l=tc([n.y,n.minSnap],(function(e,t){if(!t)return 0;var n=Math.max(t/2-45,0);return ap((e-n)*(1/(Math.min(t/2+45,t)-n)+0),0,1)})),s=tc([n.y,n.minSnap],(function(e,t){return t?ap(e/t,0,1):0}));return(t={})["--rsbs-content-opacity"]=l,t["--rsbs-backdrop-opacity"]=s,t["--rsbs-antigap-scale-y"]=a,t["--rsbs-overlay-translate-y"]=o,t["--rsbs-overlay-rounded"]=r,t["--rsbs-overlay-h"]=i,t}({spring:A});return q.createElement(Vc.div,rp({},L,{"data-rsbs-root":!0,"data-rsbs-state":Cp.find(Ce.matches),"data-rsbs-is-blocking":x,"data-rsbs-is-dismissable":!!u,"data-rsbs-has-header":!!a,"data-rsbs-has-footer":!!o,className:i,ref:B,style:rp({},ke,C,{opacity:A.ready})}),r,x&&q.createElement("div",rp({key:"backdrop","data-rsbs-backdrop":!0},$e({closeOnTap:!0}))),q.createElement("div",{key:"overlay","aria-modal":"true",role:"dialog","data-rsbs-overlay":!0,tabIndex:-1,ref:Y,onKeyDown:function(e){"Escape"===e.key&&(e.stopPropagation(),u&&u())}},!1!==a&&q.createElement("div",rp({key:"header","data-rsbs-header":!0,ref:G},$e()),a),q.createElement("div",rp({key:"scroll","data-rsbs-scroll":!0,ref:F},_?$e({isContentDragging:!0}):{}),q.createElement("div",{"data-rsbs-content":!0,ref:Z},n)),o&&q.createElement("div",rp({key:"footer",ref:X,"data-rsbs-footer":!0},$e()),o)))})),Cp=["closed","opening","open","closing","dragging","snapping","resizing"];function wp(e){var t=e.lastSnap;return null!=t?t:Math.min.apply(Math,e.snapPoints)}function $p(e){return e.minHeight}var kp=["onSpringStart","onSpringEnd","skipInitialTransition"],Sp=G((function(e,t){var n=e.onSpringStart,r=e.onSpringEnd,i=e.skipInitialTransition,o=ip(e,kp),a=W(!1),l=a[0],s=a[1],c=K(),d=K(null),u=K(i&&o.open?"OPEN":"CLOSED");op((function(){if(o.open)return cancelAnimationFrame(c.current),s(!0),function(){u.current="CLOSED"}}),[o.open]);var p=Q((function(e){return Promise.resolve(null==n?void 0:n(e)).then((function(){"OPEN"===e.type&&cancelAnimationFrame(c.current)}))}),[n]),h=Q((function(e){return Promise.resolve(null==r?void 0:r(e)).then((function(){"CLOSE"===e.type&&(c.current=requestAnimationFrame((function(){return s(!1)})))}))}),[r]);return l?q.createElement(Ca,{"data-rsbs-portal":!0},q.createElement(yp,rp({},o,{lastSnapRef:d,ref:t,initialState:u.current,onSpringStart:p,onSpringEnd:h}))):null}));const Ep=(e,t)=>oe`
2337
+ function Yd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yd(Object(n),!0).forEach((function(t){Jd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qd,eu=(Qd=[],{activateTrap:function(e){if(Qd.length>0){var t=Qd[Qd.length-1];t!==e&&t.pause()}var n=Qd.indexOf(e);-1===n||Qd.splice(n,1),Qd.push(e)},deactivateTrap:function(e){var t=Qd.indexOf(e);-1!==t&&Qd.splice(t,1),Qd.length>0&&Qd[Qd.length-1].unpause()}}),tu=function(e){return setTimeout(e,0)},nu=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},ru=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?e.apply(void 0,n):e},iu=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},ou=function(e,t){var n,r=(null==t?void 0:t.document)||document,i=Kd({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),o={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},a=function(e,t,n){return e&&void 0!==e[t]?e[t]:i[n||t]},l=function(e){return o.containerGroups.findIndex((function(t){var n=t.container,r=t.tabbableNodes;return n.contains(e)||r.find((function(t){return t===e}))}))},s=function(e){var t=i[e];if("function"==typeof t){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];t=t.apply(void 0,o)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var l=t;if("string"==typeof t&&!(l=r.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return l},c=function(){var e=s("initialFocus");if(!1===e)return!1;if(void 0===e)if(l(r.activeElement)>=0)e=r.activeElement;else{var t=o.tabbableGroups[0];e=t&&t.firstTabbableNode||s("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},d=function(){if(o.containerGroups=o.containers.map((function(e){var t,n,r=Gd(e,i.tabbableOptions),o=(t=e,(n=(n=i.tabbableOptions)||{}).getShadowRoot?jd([t],n.includeContainer,{filter:Bd.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):Nd(t,n.includeContainer,Bd.bind(null,n)));return{container:e,tabbableNodes:r,focusableNodes:o,firstTabbableNode:r.length>0?r[0]:null,lastTabbableNode:r.length>0?r[r.length-1]:null,nextTabbableNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=o.findIndex((function(t){return t===e}));if(!(n<0))return t?o.slice(n+1).find((function(e){return Wd(e,i.tabbableOptions)})):o.slice(0,n).reverse().find((function(e){return Wd(e,i.tabbableOptions)}))}}})),o.tabbableGroups=o.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),o.tabbableGroups.length<=0&&!s("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},u=function e(t){!1!==t&&t!==r.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!i.preventScroll}),o.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(c()))},p=function(e){var t=s("setReturnFocus",e);return t||!1!==t&&e},h=function(e){var t=iu(e);l(t)>=0||(ru(i.clickOutsideDeactivates,e)?n.deactivate({returnFocus:i.returnFocusOnDeactivate&&!Xd(t,i.tabbableOptions)}):ru(i.allowOutsideClick,e)||e.preventDefault())},f=function(e){var t=iu(e),n=l(t)>=0;n||t instanceof Document?n&&(o.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),u(o.mostRecentlyFocusedNode||c()))},g=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==ru(i.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=iu(e);d();var n=null;if(o.tabbableGroups.length>0){var r=l(t),a=r>=0?o.containerGroups[r]:void 0;if(r<0)n=e.shiftKey?o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:o.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var c=nu(o.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(c<0&&(a.container===t||Xd(t,i.tabbableOptions)&&!Wd(t,i.tabbableOptions)&&!a.nextTabbableNode(t,!1))&&(c=r),c>=0){var p=0===c?o.tabbableGroups.length-1:c-1;n=o.tabbableGroups[p].lastTabbableNode}}else{var h=nu(o.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(h<0&&(a.container===t||Xd(t,i.tabbableOptions)&&!Wd(t,i.tabbableOptions)&&!a.nextTabbableNode(t))&&(h=r),h>=0){var f=h===o.tabbableGroups.length-1?0:h+1;n=o.tabbableGroups[f].firstTabbableNode}}}else n=s("fallbackFocus");n&&(e.preventDefault(),u(n))}(e)},v=function(e){var t=iu(e);l(t)>=0||ru(i.clickOutsideDeactivates,e)||ru(i.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},m=function(){if(o.active)return eu.activateTrap(n),o.delayInitialFocusTimer=i.delayInitialFocus?tu((function(){u(c())})):u(c()),r.addEventListener("focusin",f,!0),r.addEventListener("mousedown",h,{capture:!0,passive:!1}),r.addEventListener("touchstart",h,{capture:!0,passive:!1}),r.addEventListener("click",v,{capture:!0,passive:!1}),r.addEventListener("keydown",g,{capture:!0,passive:!1}),n},x=function(){if(o.active)return r.removeEventListener("focusin",f,!0),r.removeEventListener("mousedown",h,!0),r.removeEventListener("touchstart",h,!0),r.removeEventListener("click",v,!0),r.removeEventListener("keydown",g,!0),n};return(n={get active(){return o.active},get paused(){return o.paused},activate:function(e){if(o.active)return this;var t=a(e,"onActivate"),n=a(e,"onPostActivate"),i=a(e,"checkCanFocusTrap");i||d(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=r.activeElement,t&&t();var l=function(){i&&d(),m(),n&&n()};return i?(i(o.containers.concat()).then(l,l),this):(l(),this)},deactivate:function(e){if(!o.active)return this;var t=Kd({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},e);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,x(),o.active=!1,o.paused=!1,eu.deactivateTrap(n);var r=a(t,"onDeactivate"),l=a(t,"onPostDeactivate"),s=a(t,"checkCanReturnFocus"),c=a(t,"returnFocus","returnFocusOnDeactivate");r&&r();var d=function(){tu((function(){c&&u(p(o.nodeFocusedBeforeActivation)),l&&l()}))};return c&&s?(s(p(o.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(){return o.paused||!o.active||(o.paused=!0,x()),this},unpause:function(){return o.paused&&o.active?(o.paused=!1,d(),m(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return o.containers=t.map((function(e){return"string"==typeof e?r.querySelector(e):e})),o.active&&d(),this}}).updateContainerElements(e),n};var au=!1;if("undefined"!=typeof window){var lu={get passive(){au=!0}};window.addEventListener("testPassive",null,lu),window.removeEventListener("testPassive",null,lu)}var su,cu="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),du=[],uu=!1,pu=-1,hu=void 0,fu=void 0,gu=function(e){return du.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},vu=function(e){var t=e||window.event;return!!gu(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},mu=function(e,t){if(e){if(!du.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};du=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(du),[n]),cu?(e.ontouchstart=function(e){1===e.targetTouches.length&&(pu=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-pu;!gu(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?vu(e):e.stopPropagation())}(t,e)},uu||(document.addEventListener("touchmove",vu,au?{passive:!1}:void 0),uu=!0)):function(e){if(void 0===fu){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(fu=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===hu&&(hu=document.body.style.overflow,document.body.style.overflow="hidden")}(t)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},xu=function(e){e?(du=du.filter((function(t){return t.targetElement!==e})),cu?(e.ontouchstart=null,e.ontouchmove=null,uu&&0===du.length&&(document.removeEventListener("touchmove",vu,au?{passive:!1}:void 0),uu=!1)):du.length||(void 0!==fu&&(document.body.style.paddingRight=fu,fu=void 0),void 0!==hu&&(document.body.style.overflow=hu,hu=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")},bu=[],yu="ResizeObserver loop completed with undelivered notifications.";!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(su||(su={}));var Cu,wu=function(e){return Object.freeze(e)},$u=function(e,t){this.inlineSize=e,this.blockSize=t,wu(this)},ku=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,wu(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Su=function(e){return e instanceof SVGElement&&"getBBox"in e},Eu=function(e){if(Su(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,o=i.offsetWidth,a=i.offsetHeight;return!(o||a||e.getClientRects().length)},Ou=function(e){var t;if(e instanceof Element)return!0;var n=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},_u="undefined"!=typeof window?window:{},Lu=new WeakMap,Tu=/auto|scroll/,Ru=/^tb|vertical/,Pu=/msie|trident/i.test(_u.navigator&&_u.navigator.userAgent),Du=function(e){return parseFloat(e||"0")},Mu=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new $u((n?t:e)||0,(n?e:t)||0)},Nu=wu({devicePixelContentBoxSize:Mu(),borderBoxSize:Mu(),contentBoxSize:Mu(),contentRect:new ku(0,0,0,0)}),ju=function(e,t){if(void 0===t&&(t=!1),Lu.has(e)&&!t)return Lu.get(e);if(Eu(e))return Lu.set(e,Nu),Nu;var n=getComputedStyle(e),r=Su(e)&&e.ownerSVGElement&&e.getBBox(),i=!Pu&&"border-box"===n.boxSizing,o=Ru.test(n.writingMode||""),a=!r&&Tu.test(n.overflowY||""),l=!r&&Tu.test(n.overflowX||""),s=r?0:Du(n.paddingTop),c=r?0:Du(n.paddingRight),d=r?0:Du(n.paddingBottom),u=r?0:Du(n.paddingLeft),p=r?0:Du(n.borderTopWidth),h=r?0:Du(n.borderRightWidth),f=r?0:Du(n.borderBottomWidth),g=u+c,v=s+d,m=(r?0:Du(n.borderLeftWidth))+h,x=p+f,b=l?e.offsetHeight-x-e.clientHeight:0,y=a?e.offsetWidth-m-e.clientWidth:0,C=i?g+m:0,w=i?v+x:0,$=r?r.width:Du(n.width)-C-y,k=r?r.height:Du(n.height)-w-b,S=$+g+y+m,E=k+v+b+x,O=wu({devicePixelContentBoxSize:Mu(Math.round($*devicePixelRatio),Math.round(k*devicePixelRatio),o),borderBoxSize:Mu(S,E,o),contentBoxSize:Mu($,k,o),contentRect:new ku(u,s,$,k)});return Lu.set(e,O),O},Vu=function(e,t,n){var r=ju(e,n),i=r.borderBoxSize,o=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case su.DEVICE_PIXEL_CONTENT_BOX:return a;case su.BORDER_BOX:return i;default:return o}},Iu=function(e){var t=ju(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=wu([t.borderBoxSize]),this.contentBoxSize=wu([t.contentBoxSize]),this.devicePixelContentBoxSize=wu([t.devicePixelContentBoxSize])},zu=function(e){if(Eu(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Au=function(){var e=1/0,t=[];bu.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new Iu(t.target),i=zu(t.target);r.push(n),t.lastReportedSize=Vu(t.target,t.observedBox),i<e&&(e=i)})),t.push((function(){n.callback.call(n.observer,r,n.observer)})),n.activeTargets.splice(0,n.activeTargets.length)}}));for(var n=0,r=t;n<r.length;n++){(0,r[n])()}return e},Hu=function(e){bu.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(zu(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},Bu=function(){var e=0;for(Hu(e);bu.some((function(e){return e.activeTargets.length>0}));)e=Au(),Hu(e);return bu.some((function(e){return e.skippedTargets.length>0}))&&function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:yu}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=yu),window.dispatchEvent(e)}(),e>0},Fu=[],Zu=function(e){if(!Cu){var t=0,n=document.createTextNode("");new MutationObserver((function(){return Fu.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),Cu=function(){n.textContent="".concat(t?t--:t++)}}Fu.push(e),Cu()},qu=0,Gu={attributes:!0,characterData:!0,childList:!0,subtree:!0},Wu=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Uu=function(e){return void 0===e&&(e=0),Date.now()+e},Xu=!1,Yu=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!Xu){Xu=!0;var n,r=Uu(e);n=function(){var n=!1;try{n=Bu()}finally{if(Xu=!1,e=r-Uu(),!qu)return;n?t.run(1e3):e>0?t.run(e):t.start()}},Zu((function(){requestAnimationFrame(n)}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,Gu)};document.body?t():_u.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Wu.forEach((function(t){return _u.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),Wu.forEach((function(t){return _u.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),Ku=function(e){!qu&&e>0&&Yu.start(),!(qu+=e)&&Yu.stop()},Ju=function(){function e(e,t){this.target=e,this.observedBox=t||su.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=Vu(this.target,this.observedBox,!0);return function(e){return!Su(e)&&!function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)&&"inline"===getComputedStyle(e).display}(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),Qu=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},ep=new WeakMap,tp=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},np=function(){function e(){}return e.connect=function(e,t){var n=new Qu(e,t);ep.set(e,n)},e.observe=function(e,t,n){var r=ep.get(e),i=0===r.observationTargets.length;tp(r.observationTargets,t)<0&&(i&&bu.push(r),r.observationTargets.push(new Ju(t,n&&n.box)),Ku(1),Yu.schedule())},e.unobserve=function(e,t){var n=ep.get(e),r=tp(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&bu.splice(bu.indexOf(n),1),n.observationTargets.splice(r,1),Ku(-1))},e.disconnect=function(e){var t=this,n=ep.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),rp=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");np.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ou(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");np.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ou(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");np.unobserve(this,e)},e.prototype.disconnect=function(){np.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();function ip(){return ip=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ip.apply(this,arguments)}function op(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}var ap="undefined"!=typeof window?J:U;function lp(e,t,n){return t=(t=+t)==t?t:0,n=(n=+n)==n?n:0,(e=+e)==e&&(e=(e=e<=n?e:n)>=t?e:t),e}function sp(e){var t=Math.round(e);if(Number.isNaN(e))throw new TypeError("Found a NaN! Check your snapPoints / defaultSnap / snapTo ");return t}var cp={box:"border-box"};function dp(e,t){var n=t.label,r=t.enabled,i=t.resizeSourceRef,o=W(0),a=o[0],l=o[1];re(n+": "+a);var s=Q((function(e){l(e[0].borderBoxSize[0].blockSize),i.current="element"}),[i]);return ap((function(){if(e.current&&r){var t=new rp(s);return t.observe(e.current,cp),function(){t.disconnect()}}}),[e,s,r]),r?a:0}function up(e){return void 0===e&&(e=1e3),new Promise((function(t){return setTimeout(t,e)}))}var pp={DRAG:{target:"#overlay.dragging",actions:"onOpenEnd"}},hp={RESIZE:{target:"#overlay.resizing",actions:"onOpenEnd"}},fp=function(e,t,n){return void 0===n&&(n=e.context),new xs(e,t,n)}({id:"overlay",initial:"closed",context:{initialState:"CLOSED"},states:{closed:{on:{OPEN:"opening",CLOSE:void 0}},opening:{initial:"start",states:{start:{invoke:{src:"onOpenStart",onDone:"transition"}},transition:{always:[{target:"immediately",cond:"initiallyOpen"},{target:"smoothly",cond:"initiallyClosed"}]},immediately:{initial:"open",states:{open:{invoke:{src:"openImmediately",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"#overlay.opening.end"},on:ip({},pp,hp)}}},smoothly:{initial:"visuallyHidden",states:{visuallyHidden:{invoke:{src:"renderVisuallyHidden",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"open"}},open:{invoke:{src:"openSmoothly",onDone:"#overlay.opening.end"},on:ip({},pp,hp)}}},end:{invoke:{src:"onOpenEnd",onDone:"done"},on:{CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:ip({},{CLOSE:{target:"#overlay.closing",actions:"onOpenCancel"}}),onDone:"open"},open:{on:{DRAG:"#overlay.dragging",SNAP:"snapping",RESIZE:"resizing"}},dragging:{on:{SNAP:"snapping"}},snapping:{initial:"start",states:{start:{invoke:{src:"onSnapStart",onDone:"snappingSmoothly"},entry:[ys({y:function(e,t){return t.payload.y},velocity:function(e,t){return t.payload.velocity},snapSource:function(e,t){var n=t.payload.source;return void 0===n?"custom":n}})]},snappingSmoothly:{invoke:{src:"snapSmoothly",onDone:"end"}},end:{invoke:{src:"onSnapEnd",onDone:"done"},on:{RESIZE:"#overlay.resizing",SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{SNAP:{target:"snapping",actions:"onSnapEnd"},RESIZE:{target:"#overlay.resizing",actions:"onSnapCancel"},DRAG:{target:"#overlay.dragging",actions:"onSnapCancel"},CLOSE:{target:"#overlay.closing",actions:"onSnapCancel"}},onDone:"open"},resizing:{initial:"start",states:{start:{invoke:{src:"onResizeStart",onDone:"resizingSmoothly"}},resizingSmoothly:{invoke:{src:"resizeSmoothly",onDone:"end"}},end:{invoke:{src:"onResizeEnd",onDone:"done"},on:{SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{RESIZE:{target:"resizing",actions:"onResizeEnd"},SNAP:{target:"snapping",actions:"onResizeCancel"},DRAG:{target:"#overlay.dragging",actions:"onResizeCancel"},CLOSE:{target:"#overlay.closing",actions:"onResizeCancel"}},onDone:"open"},closing:{initial:"start",states:{start:{invoke:{src:"onCloseStart",onDone:"deactivating"},on:{OPEN:{target:"#overlay.open",actions:"onCloseCancel"}}},deactivating:{invoke:{src:"deactivate",onDone:"closingSmoothly"}},closingSmoothly:{invoke:{src:"closeSmoothly",onDone:"end"}},end:{invoke:{src:"onCloseEnd",onDone:"done"},on:{OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}}},done:{type:"final"}},on:{CLOSE:void 0,OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}},onDone:"closed"}},on:{CLOSE:"closing"}},{actions:{onOpenCancel:function(e,t){},onSnapCancel:function(e,t){},onResizeCancel:function(e,t){},onCloseCancel:function(e,t){},onOpenEnd:function(e,t){},onSnapEnd:function(e,t){},onRezizeEnd:function(e,t){}},services:{onSnapStart:function(){try{return Promise.resolve(up()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenStart:function(){try{return Promise.resolve(up()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseStart:function(){try{return Promise.resolve(up()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeStart:function(){try{return Promise.resolve(up()).then((function(){}))}catch(e){return Promise.reject(e)}},onSnapEnd:function(){try{return Promise.resolve(up()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenEnd:function(){try{return Promise.resolve(up()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseEnd:function(){try{return Promise.resolve(up()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeEnd:function(){try{return Promise.resolve(up()).then((function(){}))}catch(e){return Promise.reject(e)}},renderVisuallyHidden:function(e,t){try{return Promise.resolve(up()).then((function(){}))}catch(e){return Promise.reject(e)}},activate:function(e,t){try{return Promise.resolve(up()).then((function(){}))}catch(e){return Promise.reject(e)}},deactivate:function(e,t){try{return Promise.resolve(up()).then((function(){}))}catch(e){return Promise.reject(e)}},openSmoothly:function(e,t){try{return Promise.resolve(up()).then((function(){}))}catch(e){return Promise.reject(e)}},openImmediately:function(e,t){try{return Promise.resolve(up()).then((function(){}))}catch(e){return Promise.reject(e)}},snapSmoothly:function(e,t){try{return Promise.resolve(up()).then((function(){}))}catch(e){return Promise.reject(e)}},resizeSmoothly:function(e,t){try{return Promise.resolve(up()).then((function(){}))}catch(e){return Promise.reject(e)}},closeSmoothly:function(e,t){try{return Promise.resolve(up()).then((function(){}))}catch(e){return Promise.reject(e)}}},guards:{initiallyClosed:function(e){return"CLOSED"===e.initialState},initiallyOpen:function(e){return"OPEN"===e.initialState}}}),gp=["children","sibling","className","footer","header","open","initialState","lastSnapRef","initialFocusRef","onDismiss","maxHeight","defaultSnap","snapPoints","blocking","scrollLocking","style","onSpringStart","onSpringCancel","onSpringEnd","reserveScrollBarGap","expandOnContentDrag"],vp=["velocity"],mp=["onRest","config"],xp={tension:170,friction:26},bp=xp.tension,yp=xp.friction,Cp=q.forwardRef((function(e,t){var n=e.children,r=e.sibling,i=e.className,o=e.footer,a=e.header,l=e.open,s=e.initialState,c=e.lastSnapRef,d=e.initialFocusRef,u=e.onDismiss,p=e.maxHeight,h=e.defaultSnap,f=void 0===h?$p:h,g=e.snapPoints,v=void 0===g?kp:g,m=e.blocking,x=void 0===m||m,b=e.scrollLocking,y=void 0===b||b,C=e.style,w=e.onSpringStart,$=e.onSpringCancel,k=e.onSpringEnd,S=e.reserveScrollBarGap,E=void 0===S?x:S,O=e.expandOnContentDrag,_=void 0!==O&&O,L=op(e,gp),T=function(){var e=W(!1),t=e[0],n=e[1],r=W({}),i=r[0],o=r[1],a=Q((function(e){return o((function(t){var n;return ip({},t,((n={})[e]=!1,n))})),function(){o((function(t){var n;return ip({},t,((n={})[e]=!0,n))}))}}),[]);return U((function(){var e=Object.values(i);0!==e.length&&e.every(Boolean)&&n(!0)}),[i]),{ready:t,registerReady:a}}(),R=T.ready,P=T.registerReady,D=K(!1),M=K(w),N=K($),j=K(k);U((function(){M.current=w,N.current=$,j.current=k}),[$,w,k]);var V,I,z=sc((function(){return{y:0,ready:0,maxHeight:0,minSnap:0,maxSnap:0}})),A=z[0],H=z[1],B=K(null),F=K(null),Z=K(null),G=K(null),X=K(null),Y=K(null),J=K(0),ee=K(),ie=K(!1),oe=(V=te((function(){return"undefined"!=typeof window?window.matchMedia("(prefers-reduced-motion: reduce)"):null}),[]),I=K(null==V?void 0:V.matches),re(I.current?"reduce":"no-preference"),U((function(){var e=function(e){I.current=e.matches};return null==V||V.addListener(e),function(){return null==V?void 0:V.removeListener(e)}}),[V]),I),ae=function(e){var t=e.targetRef,n=e.enabled,r=e.reserveScrollBarGap,i=K({activate:function(){throw new TypeError("Tried to activate scroll lock too early")},deactivate:function(){}});return re(n?"Enabled":"Disabled"),U((function(){if(!n)return i.current.deactivate(),void(i.current={activate:function(){},deactivate:function(){}});var e=t.current,o=!1;i.current={activate:function(){o||(o=!0,mu(e,{allowTouchMove:function(e){return e.closest("[data-body-scroll-lock-ignore]")},reserveScrollBarGap:r}))},deactivate:function(){o&&(o=!1,xu(e))}}}),[n,t,r]),i}({targetRef:F,enabled:R&&y,reserveScrollBarGap:E}),le=function(e){var t=e.targetRef,n=e.enabled,r=K({activate:function(){throw new TypeError("Tried to activate aria hider too early")},deactivate:function(){}});return re(n?"Enabled":"Disabled"),U((function(){if(!n)return r.current.deactivate(),void(r.current={activate:function(){},deactivate:function(){}});var e=t.current,i=!1,o=[],a=[];r.current={activate:function(){if(!i){i=!0;var t=e.parentNode;document.querySelectorAll("body > *").forEach((function(e){if(e!==t){var n=e.getAttribute("aria-hidden");null!==n&&"false"!==n||(o.push(n),a.push(e),e.setAttribute("aria-hidden","true"))}}))}},deactivate:function(){i&&(i=!1,a.forEach((function(e,t){var n=o[t];null===n?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n)})),o=[],a=[])}}}),[t,n]),r}({targetRef:B,enabled:R&&x}),se=function(e){var t=e.targetRef,n=e.fallbackRef,r=e.initialFocusRef,i=e.enabled,o=K({activate:function(){throw new TypeError("Tried to activate focus trap too early")},deactivate:function(){}});return re(i?"Enabled":"Disabled"),U((function(){if(!i)return o.current.deactivate(),void(o.current={activate:function(){},deactivate:function(){}});var e=n.current,a=ou(t.current,{onActivate:void 0,initialFocus:r?function(){return(null==r?void 0:r.current)||e}:void 0,fallbackFocus:e,escapeDeactivates:!1,clickOutsideDeactivates:!1}),l=!1;o.current={activate:function(){try{return l?Promise.resolve():(l=!0,Promise.resolve(a.activate()).then((function(){return Promise.resolve(new Promise((function(e){return setTimeout((function(){return e(void 0)}),0)}))).then((function(){}))})))}catch(e){return Promise.reject(e)}},deactivate:function(){l&&(l=!1,a.deactivate())}}}),[i,n,r,t]),o}({targetRef:B,fallbackRef:Y,initialFocusRef:d||void 0,enabled:R&&x&&!1!==d}),ce=function(e){var t=e.getSnapPoints,n=e.heightRef,r=e.lastSnapRef,i=e.ready,o=function(e){var t=e.contentRef,n=e.controlledMaxHeight,r=e.footerEnabled,i=e.footerRef,o=e.headerEnabled,a=e.headerRef,l=e.registerReady,s=e.resizeSourceRef,c=te((function(){return l("contentHeight")}),[l]),d=function(e,t,n){var r=te((function(){return t("maxHeight")}),[t]),i=W((function(){return sp(e)||"undefined"!=typeof window?window.innerHeight:0})),o=i[0],a=i[1],l=o>0,s=K(0);return re(e?"controlled":"auto"),U((function(){l&&r()}),[l,r]),ap((function(){if(e)return a(sp(e)),void(n.current="maxheightprop");var t=function(){s.current||(s.current=requestAnimationFrame((function(){a(window.innerHeight),n.current="window",s.current=0})))};return window.addEventListener("resize",t),a(window.innerHeight),n.current="window",r(),function(){window.removeEventListener("resize",t),cancelAnimationFrame(s.current)}}),[e,r,n]),o}(n,l,s),u=dp(a,{label:"headerHeight",enabled:o,resizeSourceRef:s}),p=dp(t,{label:"contentHeight",enabled:!0,resizeSourceRef:s}),h=dp(i,{label:"footerHeight",enabled:r,resizeSourceRef:s}),f=Math.min(d-u-h,p)+u+h;re("minHeight: "+f);var g=p>0;return U((function(){g&&c()}),[g,c]),{maxHeight:d,minHeight:f,headerHeight:u,footerHeight:h}}({contentRef:e.contentRef,controlledMaxHeight:e.controlledMaxHeight,footerEnabled:e.footerEnabled,footerRef:e.footerRef,headerEnabled:e.headerEnabled,headerRef:e.headerRef,registerReady:e.registerReady,resizeSourceRef:e.resizeSourceRef}),a=o.maxHeight,l=o.minHeight,s=o.headerHeight,c=o.footerHeight,d=function(e,t){var n=[].concat(e).map(sp).reduce((function(e,n){return e.add(lp(n,0,t)),e}),new Set),r=Array.from(n),i=Math.min.apply(Math,r);if(Number.isNaN(i))throw new TypeError("minSnap is NaN");var o=Math.max.apply(Math,r);if(Number.isNaN(o))throw new TypeError("maxSnap is NaN");return{snapPoints:r,minSnap:i,maxSnap:o}}(i?t({height:n.current,footerHeight:c,headerHeight:s,minHeight:l,maxHeight:a}):[0],a),u=d.snapPoints,p=d.minSnap,h=d.maxSnap;return re("minSnap: "+p+", maxSnap:"+h),{minSnap:p,maxSnap:h,findSnap:function(e){var t=sp("function"==typeof e?e({footerHeight:c,headerHeight:s,height:n.current,minHeight:l,maxHeight:a,snapPoints:u,lastSnap:r.current}):e);return u.reduce((function(e,n){return Math.abs(n-t)<Math.abs(e-t)?n:e}),p)},maxHeight:a}}({contentRef:Z,controlledMaxHeight:p,footerEnabled:!!o,footerRef:X,getSnapPoints:v,headerEnabled:!1!==a,headerRef:G,heightRef:J,lastSnapRef:c,ready:R,registerReady:P,resizeSourceRef:ee}),de=ce.minSnap,ue=ce.maxSnap,pe=ce.maxHeight,he=ce.findSnap,fe=K(pe),ge=K(de),ve=K(ue),me=K(he),xe=K(0);ap((function(){fe.current=pe,ve.current=ue,ge.current=de,me.current=he,xe.current=he(f)}),[he,f,pe,ue,de]);var be=Q((function(e){var t=e.onRest,n=e.config,r=(n=void 0===n?{}:n).velocity,i=void 0===r?1:r,o=op(n,vp),a=op(e,mp);return new Promise((function(e){return H(ip({},a,{config:ip({velocity:i},o,{mass:1,tension:bp,friction:Math.max(yp,yp+(yp-yp*i))}),onRest:function(){var n=[].slice.call(arguments);e.apply(void 0,n),null==t||t.apply(void 0,n)}}))}))}),[H]),ye=Ds(fp,{devTools:!1,actions:{onOpenCancel:Q((function(){return null==N.current?void 0:N.current({type:"OPEN"})}),[]),onSnapCancel:Q((function(e){return null==N.current?void 0:N.current({type:"SNAP",source:e.snapSource})}),[]),onCloseCancel:Q((function(){return null==N.current?void 0:N.current({type:"CLOSE"})}),[]),onResizeCancel:Q((function(){return null==N.current?void 0:N.current({type:"RESIZE",source:ee.current})}),[]),onOpenEnd:Q((function(){return null==j.current?void 0:j.current({type:"OPEN"})}),[]),onSnapEnd:Q((function(e,t){return null==j.current?void 0:j.current({type:"SNAP",source:e.snapSource})}),[]),onResizeEnd:Q((function(){return null==j.current?void 0:j.current({type:"RESIZE",source:ee.current})}),[])},context:{initialState:s},services:{onSnapStart:Q((function(e,t){try{return Promise.resolve(null==M.current?void 0:M.current({type:"SNAP",source:t.payload.source||"custom"}))}catch(e){return Promise.reject(e)}}),[]),onOpenStart:Q((function(){try{return Promise.resolve(null==M.current?void 0:M.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseStart:Q((function(){try{return Promise.resolve(null==M.current?void 0:M.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeStart:Q((function(){try{return Promise.resolve(null==M.current?void 0:M.current({type:"RESIZE",source:ee.current}))}catch(e){return Promise.reject(e)}}),[]),onSnapEnd:Q((function(e,t){try{return Promise.resolve(null==j.current?void 0:j.current({type:"SNAP",source:e.snapSource}))}catch(e){return Promise.reject(e)}}),[]),onOpenEnd:Q((function(){try{return Promise.resolve(null==j.current?void 0:j.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseEnd:Q((function(){try{return Promise.resolve(null==j.current?void 0:j.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeEnd:Q((function(){try{return Promise.resolve(null==j.current?void 0:j.current({type:"RESIZE",source:ee.current}))}catch(e){return Promise.reject(e)}}),[]),renderVisuallyHidden:Q((function(e,t){try{return Promise.resolve(be({y:xe.current,ready:0,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:!0})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be]),activate:Q((function(e,t){try{return D.current=!0,Promise.resolve(Promise.all([ae.current.activate(),se.current.activate(),le.current.activate()])).then((function(){}))}catch(e){return Promise.reject(e)}}),[le,se,ae]),deactivate:Q((function(){try{return ae.current.deactivate(),se.current.deactivate(),le.current.deactivate(),D.current=!1,Promise.resolve()}catch(e){return Promise.reject(e)}}),[le,se,ae]),openImmediately:Q((function(){try{return J.current=xe.current,Promise.resolve(be({y:xe.current,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:!0})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be]),openSmoothly:Q((function(){try{return Promise.resolve(be({y:0,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:!0})).then((function(){return J.current=xe.current,Promise.resolve(be({y:xe.current,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:oe.current})).then((function(){}))}))}catch(e){return Promise.reject(e)}}),[be,oe]),snapSmoothly:Q((function(e,t){try{var n=me.current(e.y);return J.current=n,c.current=n,Promise.resolve(be({y:n,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:ge.current,immediate:oe.current,config:{velocity:e.velocity}})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be,c,oe]),resizeSmoothly:Q((function(){try{var e=me.current(J.current);return J.current=e,c.current=e,Promise.resolve(be({y:e,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:ge.current,immediate:"element"!==ee.current||oe.current})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be,c,oe]),closeSmoothly:Q((function(e,t){try{return be({minSnap:J.current,immediate:!0}),J.current=0,Promise.resolve(be({y:0,maxHeight:fe.current,maxSnap:ve.current,immediate:oe.current})).then((function(){return Promise.resolve(be({ready:0,immediate:!0})).then((function(){}))}))}catch(e){return Promise.reject(e)}}),[be,oe])}}),Ce=ye[0],we=ye[1];U((function(){R&&we(l?"OPEN":"CLOSE")}),[l,we,R]),ap((function(){(pe||ue||de)&&we("RESIZE")}),[pe,ue,de,we]),U((function(){return function(){ae.current.deactivate(),se.current.deactivate(),le.current.deactivate()}}),[le,se,ae]),ne(t,(function(){return{snapTo:function(e,t){var n=void 0===t?{}:t,r=n.velocity,i=void 0===r?1:r,o=n.source,a=void 0===o?"custom":o;we("SNAP",{payload:{y:me.current(e),velocity:i,source:a}})},get height(){return J.current}}}),[we]),U((function(){var e=F.current,t=function(e){ie.current&&e.preventDefault()},n=function(t){e.scrollTop<0&&(requestAnimationFrame((function(){e.style.overflow="hidden",e.scrollTop=0,e.style.removeProperty("overflow")})),t.preventDefault())};return _&&(e.addEventListener("scroll",t),e.addEventListener("touchmove",t),e.addEventListener("touchstart",n)),function(){e.removeEventListener("scroll",t),e.removeEventListener("touchmove",t),e.removeEventListener("touchstart",n)}}),[_,F]);var $e=Ld((function(e){var t=e.args,n=(t=void 0===t?[]:t)[0],r=(n=void 0===n?{}:n).closeOnTap,i=void 0!==r&&r,o=n.isContentDragging,a=void 0!==o&&o,l=e.cancel,s=e.direction[1],c=e.down,d=e.first,p=e.last,h=e.memo,f=void 0===h?A.y.getValue():h,g=e.tap,v=e.velocity,m=-1*e.movement[1];if(!D.current)return l(),f;if(u&&i&&g)return l(),setTimeout((function(){return u()}),0),f;if(g)return f;var x=f+m,b=m*v,y=Math.max(ge.current,Math.min(ve.current,x+2*b));if(!c&&u&&s>0&&x+b<ge.current/2)return l(),u(),f;var C=c?u||ge.current!==ve.current?Zc(x,u?0:ge.current,ve.current,.55):x<ge.current?Zc(x,ge.current,2*ve.current,.55):Zc(x,ge.current/2,ve.current,.55):y;return _&&a?(C>=ve.current&&(C=ve.current),f===ve.current&&F.current.scrollTop>0&&(C=ve.current),ie.current=C<ve.current):ie.current=!1,d&&we("DRAG"),p?(we("SNAP",{payload:{y:C,velocity:v>.05?v:1,source:"dragging"}}),f):(H({y:C,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:ge.current,immediate:!0,config:{velocity:v}}),f)}),{filterTaps:!0});if(Number.isNaN(ve.current))throw new TypeError("maxSnapRef is NaN!!");if(Number.isNaN(ge.current))throw new TypeError("minSnapRef is NaN!!");var ke=function(e){var t,n=e.spring,r=nc([n.y,n.maxHeight],(function(e,t){return Math.round(lp(t-e,0,16))+"px"})),i=nc([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return lp(e,t,n)+"px"})),o=nc([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return e<t?t-e+"px":e>n?n-e+"px":"0px"})),a=nc([n.y,n.maxSnap],(function(e,t){return e>=t?Math.ceil(e-t):0})),l=nc([n.y,n.minSnap],(function(e,t){if(!t)return 0;var n=Math.max(t/2-45,0);return lp((e-n)*(1/(Math.min(t/2+45,t)-n)+0),0,1)})),s=nc([n.y,n.minSnap],(function(e,t){return t?lp(e/t,0,1):0}));return(t={})["--rsbs-content-opacity"]=l,t["--rsbs-backdrop-opacity"]=s,t["--rsbs-antigap-scale-y"]=a,t["--rsbs-overlay-translate-y"]=o,t["--rsbs-overlay-rounded"]=r,t["--rsbs-overlay-h"]=i,t}({spring:A});return q.createElement(Ic.div,ip({},L,{"data-rsbs-root":!0,"data-rsbs-state":wp.find(Ce.matches),"data-rsbs-is-blocking":x,"data-rsbs-is-dismissable":!!u,"data-rsbs-has-header":!!a,"data-rsbs-has-footer":!!o,className:i,ref:B,style:ip({},ke,C,{opacity:A.ready})}),r,x&&q.createElement("div",ip({key:"backdrop","data-rsbs-backdrop":!0},$e({closeOnTap:!0}))),q.createElement("div",{key:"overlay","aria-modal":"true",role:"dialog","data-rsbs-overlay":!0,tabIndex:-1,ref:Y,onKeyDown:function(e){"Escape"===e.key&&(e.stopPropagation(),u&&u())}},!1!==a&&q.createElement("div",ip({key:"header","data-rsbs-header":!0,ref:G},$e()),a),q.createElement("div",ip({key:"scroll","data-rsbs-scroll":!0,ref:F},_?$e({isContentDragging:!0}):{}),q.createElement("div",{"data-rsbs-content":!0,ref:Z},n)),o&&q.createElement("div",ip({key:"footer",ref:X,"data-rsbs-footer":!0},$e()),o)))})),wp=["closed","opening","open","closing","dragging","snapping","resizing"];function $p(e){var t=e.lastSnap;return null!=t?t:Math.min.apply(Math,e.snapPoints)}function kp(e){return e.minHeight}var Sp=["onSpringStart","onSpringEnd","skipInitialTransition"],Ep=G((function(e,t){var n=e.onSpringStart,r=e.onSpringEnd,i=e.skipInitialTransition,o=op(e,Sp),a=W(!1),l=a[0],s=a[1],c=K(),d=K(null),u=K(i&&o.open?"OPEN":"CLOSED");ap((function(){if(o.open)return cancelAnimationFrame(c.current),s(!0),function(){u.current="CLOSED"}}),[o.open]);var p=Q((function(e){return Promise.resolve(null==n?void 0:n(e)).then((function(){"OPEN"===e.type&&cancelAnimationFrame(c.current)}))}),[n]),h=Q((function(e){return Promise.resolve(null==r?void 0:r(e)).then((function(){"CLOSE"===e.type&&(c.current=requestAnimationFrame((function(){return s(!1)})))}))}),[r]);return l?q.createElement(wa,{"data-rsbs-portal":!0},q.createElement(Cp,ip({},o,{lastSnapRef:d,ref:t,initialState:u.current,onSpringStart:p,onSpringEnd:h}))):null}));const Op=(e,t)=>oe`
2333
2338
  [data-rsbs-overlay] {
2334
2339
  border-top-left-radius: 16px;
2335
2340
  border-top-right-radius: 16px;
@@ -2358,7 +2363,7 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2358
2363
  padding: 0px;
2359
2364
  min-height: 64px;
2360
2365
  }
2361
- `;!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}("[data-rsbs-overlay] {\n border-top-left-radius: 16px;\n border-top-left-radius: var(--rsbs-overlay-rounded,16px);\n border-top-right-radius: 16px;\n border-top-right-radius: var(--rsbs-overlay-rounded,16px);\n display: flex;\n background: #fff;\n background: var(--rsbs-bg,#fff);\n flex-direction: column;\n height: 0px;\n height: var(--rsbs-overlay-h,0px);\n transform: translate3d(0, 0px, 0);\n transform: translate3d(0, var(--rsbs-overlay-translate-y,0px), 0);\n will-change: height;\n}\n\n[data-rsbs-overlay]:focus {\n outline: none;\n}\n\n[data-rsbs-is-blocking='false'] [data-rsbs-overlay] {\n box-shadow: 0 -5px 60px 0 rgba(38, 89, 115, 0.11),\n 0 -1px 0 rgba(38, 89, 115, 0.05);\n}\n\n[data-rsbs-overlay],\n[data-rsbs-root]:after {\n max-width: auto;\n max-width: var(--rsbs-max-w,auto);\n margin-left: env(safe-area-inset-left);\n margin-left: var(--rsbs-ml,env(safe-area-inset-left));\n margin-right: env(safe-area-inset-right);\n margin-right: var(--rsbs-mr,env(safe-area-inset-right));\n}\n\n[data-rsbs-overlay],\n[data-rsbs-backdrop],\n[data-rsbs-root]:after {\n z-index: 3;\n -ms-scroll-chaining: none;\n overscroll-behavior: none;\n touch-action: none;\n position: fixed;\n right: 0;\n bottom: 0;\n left: 0;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n}\n\n[data-rsbs-backdrop] {\n top: -60px;\n bottom: -60px;\n background-color: rgba(0, 0, 0, 0.6);\n background-color: var(--rsbs-backdrop-bg,rgba(0, 0, 0, 0.6));\n will-change: opacity;\n cursor: pointer;\n opacity: 1;\n}\n\n[data-rsbs-is-dismissable='false'] [data-rsbs-backdrop] {\n cursor: ns-resize;\n}\n\n[data-rsbs-root]:after {\n content: '';\n pointer-events: none;\n background: #fff;\n background: var(--rsbs-bg,#fff);\n height: 1px;\n transform-origin: bottom;\n transform: scale3d(1, 0, 1);\n transform: scale3d(1, var(--rsbs-antigap-scale-y,0), 1);\n will-change: transform;\n}\n\n[data-rsbs-footer],\n[data-rsbs-header] {\n flex-shrink: 0;\n cursor: ns-resize;\n padding: 16px;\n}\n\n[data-rsbs-header] {\n text-align: center;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n box-shadow: 0 1px 0\n rgba(46, 59, 66, calc(1 * 0.125));\n box-shadow: 0 1px 0\n rgba(46, 59, 66, calc(var(--rsbs-content-opacity,1) * 0.125));\n z-index: 1;\n padding-top: calc(20px + env(safe-area-inset-top));\n padding-bottom: 8px;\n}\n\n[data-rsbs-header]:before {\n position: absolute;\n content: '';\n display: block;\n width: 36px;\n height: 4px;\n top: calc(8px + env(safe-area-inset-top));\n left: 50%;\n transform: translateX(-50%);\n border-radius: 2px;\n background-color: hsla(0, 0%, 0%, 0.14);\n background-color: var(--rsbs-handle-bg,hsla(0, 0%, 0%, 0.14));\n}\n\n@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {\n [data-rsbs-header]:before {\n transform: translateX(-50%) scaleY(0.75);\n }\n}\n\n[data-rsbs-has-header='false'] [data-rsbs-header] {\n box-shadow: none;\n padding-top: calc(12px + env(safe-area-inset-top));\n}\n\n[data-rsbs-scroll] {\n flex-shrink: 1;\n flex-grow: 1;\n -webkit-tap-highlight-color: revert;\n -webkit-touch-callout: revert;\n -webkit-user-select: auto;\n -ms-user-select: auto;\n -moz-user-select: auto;\n user-select: auto;\n overflow: auto;\n -ms-scroll-chaining: none;\n overscroll-behavior: contain;\n -webkit-overflow-scrolling: touch;\n}\n\n[data-rsbs-scroll]:focus {\n outline: none;\n}\n\n[data-rsbs-has-footer='false'] [data-rsbs-content] {\n padding-bottom: env(safe-area-inset-bottom);\n}\n\n[data-rsbs-content] {\n /* The overflow hidden is to ensure any margin on child nodes are included when the resize observer is measuring the height */\n overflow: hidden;\n}\n\n[data-rsbs-footer] {\n box-shadow: 0 -1px 0 rgba(46, 59, 66, calc(1 * 0.125)),\n 0 2px 0 #fff;\n box-shadow: 0 -1px 0 rgba(46, 59, 66, calc(var(--rsbs-content-opacity,1) * 0.125)),\n 0 2px 0 var(--rsbs-bg,#fff);\n overflow: hidden;\n z-index: 1;\n padding-bottom: calc(16px + env(safe-area-inset-bottom));\n}\n\n[data-rsbs-is-dismissable='true'] [data-rsbs-header] > *, [data-rsbs-is-dismissable='true'] [data-rsbs-scroll] > *, [data-rsbs-is-dismissable='true'] [data-rsbs-footer] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-header] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-header] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-scroll] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-scroll] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-footer] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-footer] > * {\n opacity: 1;\n opacity: var(--rsbs-content-opacity,1);\n }\n\n[data-rsbs-is-dismissable='true'] [data-rsbs-backdrop], [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-backdrop], [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-backdrop] {\n opacity: 1;\n opacity: var(--rsbs-backdrop-opacity,1);\n }\n\n[data-rsbs-state='closed'],\n[data-rsbs-state='closing'] {\n /* Allows interactions on the rest of the page before the close transition is finished */\n pointer-events: none;\n}\n");const Op=({header:e,content:t,footer:n,open:r=!1,onClose:i,minimizedHeight:o,midHeight:a=200,maxFullHeight:l,defaultSnap:s="minimized",className:c,blocking:d,zIndex:u=1e3})=>B(Sp,{css:Ep(!!e,u),className:c,open:r,onDismiss:i,header:e,footer:n,snapPoints:({headerHeight:e,maxHeight:t,footerHeight:r})=>[20,o||e,a+(n?r:0),l||t-t/6],defaultSnap:({headerHeight:e,maxHeight:t,footerHeight:r})=>{let i=20;return"minimized"===s?i=o||e:"mid"===s?i=a+(n?r:0):"full"===s&&(i=l||t-t/6),i},blocking:d,children:t}),_p=oe`
2366
+ `;!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}("[data-rsbs-overlay] {\n border-top-left-radius: 16px;\n border-top-left-radius: var(--rsbs-overlay-rounded,16px);\n border-top-right-radius: 16px;\n border-top-right-radius: var(--rsbs-overlay-rounded,16px);\n display: flex;\n background: #fff;\n background: var(--rsbs-bg,#fff);\n flex-direction: column;\n height: 0px;\n height: var(--rsbs-overlay-h,0px);\n transform: translate3d(0, 0px, 0);\n transform: translate3d(0, var(--rsbs-overlay-translate-y,0px), 0);\n will-change: height;\n}\n\n[data-rsbs-overlay]:focus {\n outline: none;\n}\n\n[data-rsbs-is-blocking='false'] [data-rsbs-overlay] {\n box-shadow: 0 -5px 60px 0 rgba(38, 89, 115, 0.11),\n 0 -1px 0 rgba(38, 89, 115, 0.05);\n}\n\n[data-rsbs-overlay],\n[data-rsbs-root]:after {\n max-width: auto;\n max-width: var(--rsbs-max-w,auto);\n margin-left: env(safe-area-inset-left);\n margin-left: var(--rsbs-ml,env(safe-area-inset-left));\n margin-right: env(safe-area-inset-right);\n margin-right: var(--rsbs-mr,env(safe-area-inset-right));\n}\n\n[data-rsbs-overlay],\n[data-rsbs-backdrop],\n[data-rsbs-root]:after {\n z-index: 3;\n -ms-scroll-chaining: none;\n overscroll-behavior: none;\n touch-action: none;\n position: fixed;\n right: 0;\n bottom: 0;\n left: 0;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n}\n\n[data-rsbs-backdrop] {\n top: -60px;\n bottom: -60px;\n background-color: rgba(0, 0, 0, 0.6);\n background-color: var(--rsbs-backdrop-bg,rgba(0, 0, 0, 0.6));\n will-change: opacity;\n cursor: pointer;\n opacity: 1;\n}\n\n[data-rsbs-is-dismissable='false'] [data-rsbs-backdrop] {\n cursor: ns-resize;\n}\n\n[data-rsbs-root]:after {\n content: '';\n pointer-events: none;\n background: #fff;\n background: var(--rsbs-bg,#fff);\n height: 1px;\n transform-origin: bottom;\n transform: scale3d(1, 0, 1);\n transform: scale3d(1, var(--rsbs-antigap-scale-y,0), 1);\n will-change: transform;\n}\n\n[data-rsbs-footer],\n[data-rsbs-header] {\n flex-shrink: 0;\n cursor: ns-resize;\n padding: 16px;\n}\n\n[data-rsbs-header] {\n text-align: center;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n box-shadow: 0 1px 0\n rgba(46, 59, 66, calc(1 * 0.125));\n box-shadow: 0 1px 0\n rgba(46, 59, 66, calc(var(--rsbs-content-opacity,1) * 0.125));\n z-index: 1;\n padding-top: calc(20px + env(safe-area-inset-top));\n padding-bottom: 8px;\n}\n\n[data-rsbs-header]:before {\n position: absolute;\n content: '';\n display: block;\n width: 36px;\n height: 4px;\n top: calc(8px + env(safe-area-inset-top));\n left: 50%;\n transform: translateX(-50%);\n border-radius: 2px;\n background-color: hsla(0, 0%, 0%, 0.14);\n background-color: var(--rsbs-handle-bg,hsla(0, 0%, 0%, 0.14));\n}\n\n@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {\n [data-rsbs-header]:before {\n transform: translateX(-50%) scaleY(0.75);\n }\n}\n\n[data-rsbs-has-header='false'] [data-rsbs-header] {\n box-shadow: none;\n padding-top: calc(12px + env(safe-area-inset-top));\n}\n\n[data-rsbs-scroll] {\n flex-shrink: 1;\n flex-grow: 1;\n -webkit-tap-highlight-color: revert;\n -webkit-touch-callout: revert;\n -webkit-user-select: auto;\n -ms-user-select: auto;\n -moz-user-select: auto;\n user-select: auto;\n overflow: auto;\n -ms-scroll-chaining: none;\n overscroll-behavior: contain;\n -webkit-overflow-scrolling: touch;\n}\n\n[data-rsbs-scroll]:focus {\n outline: none;\n}\n\n[data-rsbs-has-footer='false'] [data-rsbs-content] {\n padding-bottom: env(safe-area-inset-bottom);\n}\n\n[data-rsbs-content] {\n /* The overflow hidden is to ensure any margin on child nodes are included when the resize observer is measuring the height */\n overflow: hidden;\n}\n\n[data-rsbs-footer] {\n box-shadow: 0 -1px 0 rgba(46, 59, 66, calc(1 * 0.125)),\n 0 2px 0 #fff;\n box-shadow: 0 -1px 0 rgba(46, 59, 66, calc(var(--rsbs-content-opacity,1) * 0.125)),\n 0 2px 0 var(--rsbs-bg,#fff);\n overflow: hidden;\n z-index: 1;\n padding-bottom: calc(16px + env(safe-area-inset-bottom));\n}\n\n[data-rsbs-is-dismissable='true'] [data-rsbs-header] > *, [data-rsbs-is-dismissable='true'] [data-rsbs-scroll] > *, [data-rsbs-is-dismissable='true'] [data-rsbs-footer] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-header] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-header] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-scroll] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-scroll] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-footer] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-footer] > * {\n opacity: 1;\n opacity: var(--rsbs-content-opacity,1);\n }\n\n[data-rsbs-is-dismissable='true'] [data-rsbs-backdrop], [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-backdrop], [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-backdrop] {\n opacity: 1;\n opacity: var(--rsbs-backdrop-opacity,1);\n }\n\n[data-rsbs-state='closed'],\n[data-rsbs-state='closing'] {\n /* Allows interactions on the rest of the page before the close transition is finished */\n pointer-events: none;\n}\n");const _p=({header:e,content:t,footer:n,open:r=!1,onClose:i,minimizedHeight:o,midHeight:a=200,maxFullHeight:l,defaultSnap:s="minimized",className:c,blocking:d,zIndex:u=1e3})=>B(Ep,{css:Op(!!e,u),className:c,open:r,onDismiss:i,header:e,footer:n,snapPoints:({headerHeight:e,maxHeight:t,footerHeight:r})=>[20,o||e,a+(n?r:0),l||t-t/6],defaultSnap:({headerHeight:e,maxHeight:t,footerHeight:r})=>{let i=20;return"minimized"===s?i=o||e:"mid"===s?i=a+(n?r:0):"full"===s&&(i=l||t-t/6),i},blocking:d,children:t}),Lp=oe`
2362
2367
  a,
2363
2368
  p {
2364
2369
  font-size: 16px;
@@ -2390,19 +2395,19 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2390
2395
  a:hover {
2391
2396
  text-decoration: underline;
2392
2397
  }
2393
- `,Lp=oe`
2398
+ `,Tp=oe`
2394
2399
  svg {
2395
2400
  height: 12px;
2396
2401
  width: 12px;
2397
2402
  color: ${fe("neutral",600)};
2398
2403
  }
2399
- `,Tp=oe`
2404
+ `,Rp=oe`
2400
2405
  cursor: pointer;
2401
2406
  color: ${fe("neutral",600)};
2402
2407
  display: flex;
2403
2408
  justify-content: center;
2404
2409
  align-items: center;
2405
- `,Rp=({links:e,separator:t,maxItems:n=99,linkRouter:r})=>{const[i,o]=W(e.length>n);U((()=>{o(e.length>n)}),[e.length]);const a=r;return B(M.Root,{children:B(M.List,{gap:"16px",children:i?H(F,{children:[B(M.Item,{css:_p,children:H(a,{to:e[0].link,href:e[0].link,children:[e[0].icon,e[0].label]})}),B(M.Separator,{css:Lp,children:t||B(Ee,{rotate:"270"})}),B("li",{className:"chakra-breadcrumb__item",children:B("button",{css:Tp,type:"button",onClick:()=>o(!1),children:"..."})}),B(M.Separator,{css:Lp,children:t||B(Ee,{rotate:"270"})}),B(M.Item,{css:_p,children:H("p",{"aria-current":"page","aria-label":e[e.length-1].label,children:[e[e.length-1].icon,e[e.length-1].label]})})]}):e.map(((n,r)=>n?.label?H(ie,{children:[B(M.Item,{css:_p,children:r<e.length-1?H(a,{to:n.link,href:n.link,children:[n.icon,n.label]}):H("p",{"aria-current":"page","aria-label":n.label,children:[n.label&&n.icon?n.icon:"",n.label]})}),r<e.length-1?B(M.Separator,{css:Lp,children:t||B(Ee,{rotate:"270"})}):null]},n.label):null))})})},Pp=(e,t)=>oe`
2410
+ `,Pp=({links:e,separator:t,maxItems:n=99,linkRouter:r})=>{const[i,o]=W(e.length>n);U((()=>{o(e.length>n)}),[e.length]);const a=r;return B(M.Root,{children:B(M.List,{gap:"16px",children:i?H(F,{children:[B(M.Item,{css:Lp,children:H(a,{to:e[0].link,href:e[0].link,children:[e[0].icon,e[0].label]})}),B(M.Separator,{css:Tp,children:t||B(Ee,{rotate:"270"})}),B("li",{className:"chakra-breadcrumb__item",children:B("button",{css:Rp,type:"button",onClick:()=>o(!1),children:"..."})}),B(M.Separator,{css:Tp,children:t||B(Ee,{rotate:"270"})}),B(M.Item,{css:Lp,children:H("p",{"aria-current":"page","aria-label":e[e.length-1].label,children:[e[e.length-1].icon,e[e.length-1].label]})})]}):e.map(((n,r)=>n?.label?H(ie,{children:[B(M.Item,{css:Lp,children:r<e.length-1?H(a,{to:n.link,href:n.link,children:[n.icon,n.label]}):H("p",{"aria-current":"page","aria-label":n.label,children:[n.label&&n.icon?n.icon:"",n.label]})}),r<e.length-1?B(M.Separator,{css:Tp,children:t||B(Ee,{rotate:"270"})}):null]},n.label):null))})})},Dp=(e,t)=>oe`
2406
2411
  min-height: 56px;
2407
2412
  width: 100vw;
2408
2413
  position: ${e?"sticky":"absolute"};
@@ -2412,7 +2417,7 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2412
2417
  background-color: ${fe("neutral",t?200:100)};
2413
2418
  border-top: 1px solid ${fe("neutral",400)};
2414
2419
  z-index: 101;
2415
- `,Dp=e=>oe`
2420
+ `,Mp=e=>oe`
2416
2421
  height: 100%;
2417
2422
  width: 100%;
2418
2423
  max-width: ${e?`${e}px`:"100%"};
@@ -2427,7 +2432,7 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2427
2432
  flex-direction: column;
2428
2433
  align-items: flex-start;
2429
2434
  }
2430
- `,Mp=oe`
2435
+ `,Np=oe`
2431
2436
  display: flex;
2432
2437
  align-items: center;
2433
2438
  flex-wrap: wrap;
@@ -2440,7 +2445,7 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2440
2445
  color: ${fe("neutral",700)};
2441
2446
  text-decoration: underline;
2442
2447
  }
2443
- `,Np=oe`
2448
+ `,jp=oe`
2444
2449
  width: 240px;
2445
2450
  font-size: 14px;
2446
2451
  line-height: 20px;
@@ -2451,13 +2456,13 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2451
2456
  @media screen and (max-width: 768px) {
2452
2457
  text-align: left;
2453
2458
  }
2454
- `,jp=({children:e,label:t="© World Resources Institute",fixed:n,filled:r,maxWidth:i})=>{const o=(new Date).getFullYear();return B("footer",{css:Pp(n,r),children:H("div",{css:Dp(i),children:[B("div",{children:B(Ne,{height:"32px",width:"91px"})}),B("div",{css:Mp,children:e}),B("div",{children:H("p",{css:Np,children:[t," ",o]})})]})})},Vp=oe`
2459
+ `,Vp=({children:e,label:t="© World Resources Institute",fixed:n,filled:r,maxWidth:i})=>{const o=(new Date).getFullYear();return B("footer",{css:Dp(n,r),children:H("div",{css:Mp(i),children:[B("div",{children:B(Ne,{height:"32px",width:"91px"})}),B("div",{css:Np,children:e}),B("div",{children:H("p",{css:jp,children:[t," ",o]})})]})})},Ip=oe`
2455
2460
  width: 100%;
2456
2461
  display: flex;
2457
2462
  align-items: center;
2458
2463
  height: 56px;
2459
2464
  background-color: ${fe("neutral",200)};
2460
- `,Ip=oe`
2465
+ `,zp=oe`
2461
2466
  height: 56px;
2462
2467
  width: 99%;
2463
2468
  background-color: ${fe("neutral",200)};
@@ -2551,9 +2556,9 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2551
2556
  opacity: 1;
2552
2557
  }
2553
2558
  }
2554
- `,zp=oe`
2555
- position: relative;
2556
2559
  `,Ap=oe`
2560
+ position: relative;
2561
+ `,Hp=oe`
2557
2562
  position: absolute;
2558
2563
  top: -5px;
2559
2564
  right: -5px;
@@ -2568,7 +2573,7 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2568
2573
  display: flex;
2569
2574
  justify-content: center;
2570
2575
  align-items: center;
2571
- `,Hp=(e,t)=>e.findIndex((e=>e.value===t)),Bp=({defaultValue:e,tabs:t,onTabClick:n})=>{const[r,i]=W(Hp(t,e)||0);return B("div",{css:Vp,children:B(N.Root,{width:"full",defaultValue:e||t?.[0]?.value,onValueChange:({value:e})=>{return i(Hp(t,r=e)),void(n&&n(r));var r},children:B(N.List,{alignItems:"center",border:"none",children:t.map((e=>{const{label:t,icon:n,bagdeCount:r,hideLabel:i,"aria-label":o,...a}=e;return H(N.Trigger,{css:Ip,"aria-label":o||t,...a,children:[H("div",{css:zp,children:[n,r?B("div",{css:Ap,className:"ds-badge-count",children:r}):null]}),i?null:B("p",{children:t})]},t)}))})})})},Fp=(e,t)=>oe`
2576
+ `,Bp=(e,t)=>e.findIndex((e=>e.value===t)),Fp=({defaultValue:e,tabs:t,onTabClick:n,hideLabels:r})=>{const[i,o]=W(Bp(t,e)||0);return B("div",{css:Ip,children:B(N.Root,{width:"full",defaultValue:e||t?.[0]?.value,onValueChange:({value:e})=>{return o(Bp(t,r=e)),void(n&&n(r));var r},children:B(N.List,{alignItems:"center",border:"none",children:t.map((e=>{const{label:t,icon:n,bagdeCount:i,"aria-label":o,...a}=e;return H(N.Trigger,{css:zp,"aria-label":o||t,...a,children:[H("div",{css:Ap,children:[n,i?B("div",{css:Hp,className:"ds-badge-count",children:i}):null]}),r?null:B("p",{children:t})]},t)}))})})})},Zp=(e,t)=>oe`
2572
2577
  height: ${e?"96px":"48px"};
2573
2578
  width: 100%;
2574
2579
  background-color: ${fe("neutral",100)};
@@ -2577,7 +2582,7 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2577
2582
  left: 0;
2578
2583
  z-index: 102;
2579
2584
  border-bottom: 1px solid ${fe("neutral",400)};
2580
- `,Zp=oe`
2585
+ `,qp=oe`
2581
2586
  height: 48px;
2582
2587
  width: 100%;
2583
2588
  background-color: ${fe("neutral",100)};
@@ -2587,7 +2592,7 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2587
2592
  justify-content: flex-start;
2588
2593
  gap: 0px;
2589
2594
  padding: 8px 16px;
2590
- `,qp=(e,t)=>oe`
2595
+ `,Gp=(e,t)=>oe`
2591
2596
  height: 48px;
2592
2597
  width: 100%;
2593
2598
  max-width: ${t?`${t}px`:"100%"};
@@ -2597,7 +2602,7 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2597
2602
  justify-content: space-between;
2598
2603
  margin: 0 auto;
2599
2604
  padding: 8px 16px;
2600
- `,Gp=oe`
2605
+ `,Wp=oe`
2601
2606
  outline: none;
2602
2607
  a {
2603
2608
  &:focus-visible {
@@ -2608,12 +2613,12 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2608
2613
  outline-width: 2px;
2609
2614
  }
2610
2615
  }
2611
- `,Wp=e=>oe`
2616
+ `,Up=e=>oe`
2612
2617
  display: ${e?"none":"flex"};
2613
2618
  align-items: center;
2614
2619
  justify-content: flex-start;
2615
2620
  gap: 0px;
2616
- `,Up=e=>oe`
2621
+ `,Xp=e=>oe`
2617
2622
  font-size: 16px;
2618
2623
  line-height: 24px;
2619
2624
  font-weight: 400;
@@ -2638,12 +2643,12 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2638
2643
  font-weight: 700;
2639
2644
  color: ${fe("accessible","controls-on-neutral-lights")};
2640
2645
  `:""}
2641
- `,Xp=oe`
2646
+ `,Yp=oe`
2642
2647
  height: 48px;
2643
2648
  display: flex;
2644
2649
  align-items: center;
2645
2650
  justify-content: flex-end;
2646
- `,Yp=e=>oe`
2651
+ `,Kp=e=>oe`
2647
2652
  height: 100%;
2648
2653
  font-size: 16px;
2649
2654
  line-height: 24px;
@@ -2662,7 +2667,7 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2662
2667
  }
2663
2668
  }
2664
2669
  `:""}
2665
- `,Kp=e=>oe`
2670
+ `,Jp=e=>oe`
2666
2671
  height: 100%;
2667
2672
  display: flex;
2668
2673
  align-items: center;
@@ -2670,7 +2675,7 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2670
2675
  gap: 20px;
2671
2676
  padding-left: 16px;
2672
2677
  border-left: 1px solid ${fe("neutral",e?700:300)};
2673
- `,Jp=oe`
2678
+ `,Qp=oe`
2674
2679
  background-color: none;
2675
2680
  border: none;
2676
2681
  cursor: pointer;
@@ -2695,7 +2700,7 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2695
2700
  outline-width: 2px;
2696
2701
  background-color: ${fe("neutral",200)};
2697
2702
  }
2698
- `,Qp=e=>oe`
2703
+ `,eh=e=>oe`
2699
2704
  position: absolute;
2700
2705
  top: 48px;
2701
2706
  right: 0;
@@ -2708,10 +2713,10 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2708
2713
  justify-content: flex-start;
2709
2714
  gap: 16px;
2710
2715
  transition: width 0.5s ease-in-out;
2711
- `,eh=oe`
2716
+ `,th=oe`
2712
2717
  height: 100%;
2713
2718
  width: 100%;
2714
- `,th=oe`
2719
+ `,nh=oe`
2715
2720
  background-color: ${fe("neutral",200)};
2716
2721
  border-bottom: 1px solid ${fe("neutral",300)};
2717
2722
 
@@ -2731,13 +2736,13 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2731
2736
  margin-left: -12px;
2732
2737
  }
2733
2738
  }
2734
- `,nh=oe`
2735
- background-color: ${fe("neutral",100)};
2736
2739
  `,rh=oe`
2740
+ background-color: ${fe("neutral",100)};
2741
+ `,ih=oe`
2737
2742
  min-height: 100vh;
2738
2743
  width: 100%;
2739
2744
  overflow-y: scroll;
2740
- `;oe``;const ih=e=>oe`
2745
+ `;oe``;const oh=e=>oe`
2741
2746
  display: inline-block;
2742
2747
  width: 100%;
2743
2748
  padding: 12px 16px;
@@ -2766,7 +2771,7 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2766
2771
  outline-width: 2px;
2767
2772
  background-color: ${fe("neutral",200)};
2768
2773
  }
2769
- `,oh=oe`
2774
+ `,ah=oe`
2770
2775
  width: 100%;
2771
2776
  padding: 12px 16px;
2772
2777
  display: flex;
@@ -2790,7 +2795,7 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2790
2795
  outline-width: 2px;
2791
2796
  background-color: ${fe("neutral",200)};
2792
2797
  }
2793
- `,ah=e=>oe`
2798
+ `,lh=e=>oe`
2794
2799
  position: absolute;
2795
2800
  top: 0px;
2796
2801
  right: 0;
@@ -2802,7 +2807,7 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2802
2807
  align-items: flex-start;
2803
2808
  justify-content: flex-start;
2804
2809
  transition: width 0.5s ease-in-out;
2805
- `,lh=oe`
2810
+ `,sh=oe`
2806
2811
  height: 48px;
2807
2812
  width: 100%;
2808
2813
  display: flex;
@@ -2813,7 +2818,7 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2813
2818
  position: relative;
2814
2819
  top: 0;
2815
2820
  left: 0;
2816
- `,sh=oe`
2821
+ `,ch=oe`
2817
2822
  position: absolute;
2818
2823
  bottom: 0;
2819
2824
  left: 0;
@@ -2828,13 +2833,13 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2828
2833
  button {
2829
2834
  width: calc(48% - 24px);
2830
2835
  }
2831
- `,ch=({navigationSection:e,utilitySection:t,actionsSection:n,linkRouter:r,isOpen:i,setIsOpen:o,pathname:a})=>{const[l,s]=W(void 0),[c,d]=W(-1),u=K(null),p=K([]),h=r;return H(F,{children:[B("div",{css:Qp(i),children:i&&H("div",{css:eh,children:[H("div",{style:{overflowY:"scroll",width:"100%",height:"100%",paddingBottom:"72px"},children:[t?B("div",{css:th,children:t?.map((e=>B("div",{className:"ds-utility-item",children:e})))}):null,e?B("div",{css:nh,children:e.map(((e,t)=>e.link?B(h,{to:e.link,href:e.link,onClick:()=>{s(void 0),d(-1),o(!1)},css:ih(a===e.link),children:e.label},e.label):H("button",{css:oh,type:"button",ref:e=>p.current[t]=e,onClick:()=>{e.items&&(s(e),d(t),setTimeout((()=>{u.current?.focus()}),100))},children:[e.label,e.items?B(Ee,{rotate:"270",color:"var(--chakra-colors-neutral-700)"}):null]},e.label)))}):null]}),n?B("div",{css:sh,children:n.map((e=>B(ye,{label:e.label,onClick:()=>{e?.onClick?.(),s(void 0),d(-1),o(!1)}},e.label)))}):null]})}),B("div",{css:ah(!!l?.items),children:l?.items?H(F,{children:[H("div",{css:lh,children:[H("button",{type:"button",onClick:()=>{s(void 0),d(-1),p.current[c]?.focus()},"aria-label":"Go back",css:Jp,ref:u,children:[B(Ee,{rotate:"90",color:"var(--chakra-colors-neutral-700)"}),l?.label]}),H("button",{type:"button",onClick:()=>{s(void 0),d(-1),o(!1)},"aria-label":"Close menu",css:Jp,children:["Close",B(_e,{height:"16px",width:"16px"})]})]}),B("div",{css:rh,children:l?.items?.map((e=>B(h,{to:e.link,href:e.link,css:ih(),onClick:()=>{s(void 0),d(-1),o(!1)},children:e.label},e.label)))})]}):null})]})},dh=1023,uh=({logo:e,linkRouter:t,pathname:n,navigationSection:r,utilitySection:i,actionsSection:o,maxWidth:a,fixed:l,onNavbarHeightChange:s})=>{const c=K(null),d=K(null),u=K(null),[p,h]=W(!1),[f,g]=W(-1),[v,m]=W("undefined"!=typeof window&&window?.innerWidth<=dh),[x,b]=W(!1),y=t,C=Q((()=>{if(d.current&&c.current&&u.current){const e=c.current.getBoundingClientRect(),t=d.current.getBoundingClientRect(),n=u.current.getBoundingClientRect();t.width,e.width,window.innerWidth<=dh||window.innerWidth<=f?(s?.(96),h(!0)):window.innerWidth>dh&&window.innerWidth<=1440?e.right>=t.left?(s?.(96),h(!0),g(window.innerWidth)):window.innerWidth>f&&(s?.(48),h(!1),g(-1)):(s?.(48),h(!1),g(-1)),p&&(window.innerWidth<=dh||n.right>=t.left?(m(!0),s?.(48)):(m(!1),s?.(96)))}}),[f,p]);return U((()=>(C(),window.addEventListener("resize",C),()=>{window.removeEventListener("resize",C)})),[C]),H("nav",{css:Fp(p&&!v,l),children:[H("div",{css:qp(p&&!v,a),children:[H("div",{css:(w=p&&!v,oe`
2836
+ `,dh=({navigationSection:e,utilitySection:t,actionsSection:n,linkRouter:r,isOpen:i,setIsOpen:o,pathname:a})=>{const[l,s]=W(void 0),[c,d]=W(-1),u=K(null),p=K([]),h=r;return H(F,{children:[B("div",{css:eh(i),children:i&&H("div",{css:th,children:[H("div",{style:{overflowY:"scroll",width:"100%",height:"100%",paddingBottom:"72px"},children:[t?B("div",{css:nh,children:t?.map((e=>B("div",{className:"ds-utility-item",children:e})))}):null,e?B("div",{css:rh,children:e.map(((e,t)=>e.link?B(h,{to:e.link,href:e.link,onClick:()=>{s(void 0),d(-1),o(!1)},css:oh(a===e.link),children:e.label},e.label):H("button",{css:ah,type:"button",ref:e=>p.current[t]=e,onClick:()=>{e.items&&(s(e),d(t),setTimeout((()=>{u.current?.focus()}),100))},children:[e.label,e.items?B(Ee,{rotate:"270",color:"var(--chakra-colors-neutral-700)"}):null]},e.label)))}):null]}),n?B("div",{css:ch,children:n.map((e=>B(ye,{label:e.label,onClick:()=>{e?.onClick?.(),s(void 0),d(-1),o(!1)}},e.label)))}):null]})}),B("div",{css:lh(!!l?.items),children:l?.items?H(F,{children:[H("div",{css:sh,children:[H("button",{type:"button",onClick:()=>{s(void 0),d(-1),p.current[c]?.focus()},"aria-label":"Go back",css:Qp,ref:u,children:[B(Ee,{rotate:"90",color:"var(--chakra-colors-neutral-700)"}),l?.label]}),H("button",{type:"button",onClick:()=>{s(void 0),d(-1),o(!1)},"aria-label":"Close menu",css:Qp,children:["Close",B(_e,{height:"16px",width:"16px"})]})]}),B("div",{css:ih,children:l?.items?.map((e=>B(h,{to:e.link,href:e.link,css:oh(),onClick:()=>{s(void 0),d(-1),o(!1)},children:e.label},e.label)))})]}):null})]})},uh=1023,ph=({logo:e,linkRouter:t,pathname:n,navigationSection:r,utilitySection:i,actionsSection:o,maxWidth:a,fixed:l,onNavbarHeightChange:s})=>{const c=K(null),d=K(null),u=K(null),[p,h]=W(!1),[f,g]=W(-1),[v,m]=W("undefined"!=typeof window&&window?.innerWidth<=uh),[x,b]=W(!1),y=t,C=Q((()=>{if(d.current&&c.current&&u.current){const e=c.current.getBoundingClientRect(),t=d.current.getBoundingClientRect(),n=u.current.getBoundingClientRect();t.width,e.width,window.innerWidth<=uh||window.innerWidth<=f?(s?.(96),h(!0)):window.innerWidth>uh&&window.innerWidth<=1440?e.right>=t.left?(s?.(96),h(!0),g(window.innerWidth)):window.innerWidth>f&&(s?.(48),h(!1),g(-1)):(s?.(48),h(!1),g(-1)),p&&(window.innerWidth<=uh||n.right>=t.left?(m(!0),s?.(48)):(m(!1),s?.(96)))}}),[f,p]);return U((()=>(C(),window.addEventListener("resize",C),()=>{window.removeEventListener("resize",C)})),[C]),H("nav",{css:Zp(p&&!v,l),children:[H("div",{css:Gp(p&&!v,a),children:[H("div",{css:(w=p&&!v,oe`
2832
2837
  display: flex;
2833
2838
  align-items: center;
2834
2839
  justify-content: flex-start;
2835
2840
  gap: 12px;
2836
2841
  color: ${fe("neutral",w?100:900)};
2837
- `),ref:c,children:[e?B("div",{ref:u,css:Gp,children:e}):null,B("div",{css:Wp(p),children:r?.map((e=>e.link?B(y,{to:e.link,href:e.link,css:Up(n===e.link),children:e.label},e.label):B(mt,{label:e.label,items:e.items||[]},e.label)))})]}),B("div",{css:Xp,ref:d,children:v?H("button",{type:"button",onClick:()=>b(!x),"aria-label":"Open menu",css:Jp,children:[x?"Close":"Menu",B(x?_e:Je,{height:"16px",width:"16px"})]}):H(F,{children:[B("div",{css:Xp,children:i?.map(((e,t)=>B("div",{css:Yp(p),children:e},t)))}),o?B("div",{css:Kp(p),children:o.map((e=>B(ye,{...e},e.label)))}):null]})})]}),p&&!v?B("div",{css:Zp,children:r?.map((e=>e.link?B(y,{to:e.link,href:e.link,css:Up(n===e.link),children:e.label},e.label):B(mt,{label:e.label,items:e.items||[]},e.label)))}):null,v?B(ch,{navigationSection:r,utilitySection:i,actionsSection:o,linkRouter:t,isOpen:x,setIsOpen:b,pathname:n}):null]});var w},ph=oe`
2842
+ `),ref:c,children:[e?B("div",{ref:u,css:Wp,children:e}):null,B("div",{css:Up(p),children:r?.map((e=>e.link?B(y,{to:e.link,href:e.link,css:Xp(n===e.link),children:e.label},e.label):B(mt,{label:e.label,items:e.items||[]},e.label)))})]}),B("div",{css:Yp,ref:d,children:v?H("button",{type:"button",onClick:()=>b(!x),"aria-label":"Open menu",css:Qp,children:[x?"Close":"Menu",B(x?_e:Je,{height:"16px",width:"16px"})]}):H(F,{children:[B("div",{css:Yp,children:i?.map(((e,t)=>B("div",{css:Kp(p),children:e},t)))}),o?B("div",{css:Jp(p),children:o.map((e=>B(ye,{...e},e.label)))}):null]})})]}),p&&!v?B("div",{css:qp,children:r?.map((e=>e.link?B(y,{to:e.link,href:e.link,css:Xp(n===e.link),children:e.label},e.label):B(mt,{label:e.label,items:e.items||[]},e.label)))}):null,v?B(dh,{navigationSection:r,utilitySection:i,actionsSection:o,linkRouter:t,isOpen:x,setIsOpen:b,pathname:n}):null]});var w},hh=oe`
2838
2843
  width: 64px;
2839
2844
  height: 100%;
2840
2845
  z-index: 100;
@@ -2843,7 +2848,7 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2843
2848
  display: flex;
2844
2849
  flex-direction: column;
2845
2850
  justify-content: space-between;
2846
- `,hh=oe`
2851
+ `,fh=oe`
2847
2852
  width: 64px;
2848
2853
  height: 64px;
2849
2854
  background-color: ${fe("neutral",200)};
@@ -2933,7 +2938,7 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2933
2938
  }
2934
2939
  }
2935
2940
  }
2936
- `,fh=oe`
2941
+ `,gh=oe`
2937
2942
  display: flex;
2938
2943
  justify-content: center;
2939
2944
  align-items: center;
@@ -2946,7 +2951,7 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2946
2951
  fill: ${fe("neutral",600)};
2947
2952
  }
2948
2953
  }
2949
- `,gh=oe`
2954
+ `,vh=oe`
2950
2955
  width: 64px;
2951
2956
  height: 64px;
2952
2957
  background-color: ${fe("neutral",200)};
@@ -2984,7 +2989,7 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2984
2989
  text-align: center;
2985
2990
  color: ${fe("neutral",600)};
2986
2991
  }
2987
- `,vh=oe`
2992
+ `,mh=oe`
2988
2993
  width: 320px;
2989
2994
  height: 100%;
2990
2995
  z-index: 100;
@@ -2992,14 +2997,14 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2992
2997
  background-color: ${fe("neutral",100)};
2993
2998
  overflow-y: auto;
2994
2999
  overflow-x: hidden;
2995
- `,mh=({tabs:e=[],defaultValue:t,onTabClick:n,children:i,onOpenChange:o})=>{const[a,l]=W(!1),[s,c]=W(t||e?.[0]?.value);return H("div",{style:{height:"calc(100vh - 48px - 56px)",position:"fixed",top:"48px",left:0,display:"flex"},children:[H("div",{css:ph,children:[B(N.Root,{defaultValue:t||e?.[0]?.value,orientation:"horizontal",width:"full",onValueChange:({value:e})=>{var t;c(t=e),n&&n(t)},role:"tablist",children:B(N.List,{alignItems:"center",border:"none",style:{flexDirection:"column"},children:e.map((e=>B(N.Trigger,{css:hh,"aria-label":e["aria-label"]||e.label,...e,children:H(r,{display:"flex",alignItems:"center",flexDirection:"column",gap:"5px",className:"ds-tab-label",children:[e.icon?B("div",{css:fh,children:e.icon}):null,B("p",{children:e.label})]})},e.label)))})}),i?B(j.Root,{onOpenChange:({open:e})=>{l(e),o&&o(!e)},children:H(j.Trigger,{css:gh,children:[B("div",{css:fh,children:B(a?we:Ce,{})}),H("div",{className:"ds-tab-label",children:[B("p",{children:a?"Show":"Hide"}),B("p",{children:"Sidebar"})]})]})}):null]}),i?B(j.Root,{defaultOpen:!0,open:!a,children:B(j.Content,{height:"100%",children:B("div",{css:vh,role:"tabpanel","aria-labelledby":s,children:i})})}):null]})},xh=e=>oe`
3000
+ `,xh=({tabs:e=[],defaultValue:t,onTabClick:n,children:i,onOpenChange:o})=>{const[a,l]=W(!1),[s,c]=W(t||e?.[0]?.value);return H("div",{style:{height:"calc(100vh - 48px - 56px)",position:"fixed",top:"48px",left:0,display:"flex"},children:[H("div",{css:hh,children:[B(N.Root,{defaultValue:t||e?.[0]?.value,orientation:"horizontal",width:"full",onValueChange:({value:e})=>{var t;c(t=e),n&&n(t)},role:"tablist",children:B(N.List,{alignItems:"center",border:"none",style:{flexDirection:"column"},children:e.map((e=>B(N.Trigger,{css:fh,"aria-label":e["aria-label"]||e.label,...e,children:H(r,{display:"flex",alignItems:"center",flexDirection:"column",gap:"5px",className:"ds-tab-label",children:[e.icon?B("div",{css:gh,children:e.icon}):null,B("p",{children:e.label})]})},e.label)))})}),i?B(j.Root,{onOpenChange:({open:e})=>{l(e),o&&o(!e)},children:H(j.Trigger,{css:vh,children:[B("div",{css:gh,children:B(a?we:Ce,{})}),H("div",{className:"ds-tab-label",children:[B("p",{children:a?"Show":"Hide"}),B("p",{children:"Sidebar"})]})]})}):null]}),i?B(j.Root,{defaultOpen:!0,open:!a,children:B(j.Content,{height:"100%",children:B("div",{css:mh,role:"tabpanel","aria-labelledby":s,children:i})})}):null]})},bh=e=>oe`
2996
3001
  width: 100%;
2997
3002
  display: flex;
2998
3003
  align-items: center;
2999
3004
  height: 40px;
3000
3005
 
3001
3006
  ${"view"===e&&`\n border: 1px solid ${fe("neutral",400)};\n background-color: ${fe("neutral",200)};\n border-radius: 4px;\n padding: 4px;\n `}
3002
- `,bh=oe`
3007
+ `,yh=oe`
3003
3008
  width: 99%;
3004
3009
  height: 40px;
3005
3010
  padding: 8px 16px;
@@ -3015,7 +3020,7 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3015
3020
  &:focus-visible {
3016
3021
  box-shadow: none;
3017
3022
  }
3018
- `,yh=oe`
3023
+ `,Ch=oe`
3019
3024
  background-color: ${fe("neutral",200)};
3020
3025
  color: ${fe("neutral",700)};
3021
3026
 
@@ -3072,11 +3077,11 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3072
3077
  opacity: 1;
3073
3078
  }
3074
3079
  }
3075
- `,Ch=oe`
3080
+ `,wh=oe`
3076
3081
  width: 4px;
3077
3082
  height: 24px;
3078
3083
  background-color: ${fe("neutral",400)};
3079
- `,wh=oe`
3084
+ `,$h=oe`
3080
3085
  height: 32px;
3081
3086
  border-radius: 2px;
3082
3087
  background-color: ${fe("neutral",200)};
@@ -3149,16 +3154,16 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3149
3154
  opacity: 1;
3150
3155
  }
3151
3156
  }
3152
- `,$h=(e,t)=>e.findIndex((e=>e.value===t)),kh=e=>1===e?"none":2===e?"left":"right",Sh=({variant:e="panel",defaultValue:t,tabs:n,onTabClick:i})=>{const[o,a]=W($h(n,t)||0),l="view"===e;return B("div",{css:xh(e),children:B(N.Root,{width:"full",defaultValue:t||n?.[0]?.value,onValueChange:({value:e})=>{return a($h(n,t=e)),void(i&&i(t));var t},children:B(N.List,{alignItems:"center",border:"none",children:n.map(((e,t)=>H(ie,{children:[l&&1===t&&"left"===kh(o)?B("div",{css:Ch}):null,B(N.Trigger,{css:[bh,l?wh:yh],"aria-label":e["aria-label"]||e.label,...e,children:H(r,{display:"flex",alignItems:"center",gap:"5px",children:[e.icon,e.label]})},e.label),l&&1===t&&"right"===kh(o)?B("div",{css:Ch}):null]},e.label)))})})})},Eh=oe`
3157
+ `,kh=(e,t)=>e.findIndex((e=>e.value===t)),Sh=e=>1===e?"none":2===e?"left":"right",Eh=({variant:e="panel",defaultValue:t,tabs:n,onTabClick:i})=>{const[o,a]=W(kh(n,t)||0),l="view"===e;return B("div",{css:bh(e),children:B(N.Root,{width:"full",defaultValue:t||n?.[0]?.value,onValueChange:({value:e})=>{return a(kh(n,t=e)),void(i&&i(t));var t},children:B(N.List,{alignItems:"center",border:"none",children:n.map(((e,t)=>H(ie,{children:[l&&1===t&&"left"===Sh(o)?B("div",{css:wh}):null,B(N.Trigger,{css:[yh,l?$h:Ch],"aria-label":e["aria-label"]||e.label,...e,children:H(r,{display:"flex",alignItems:"center",gap:"5px",children:[e.icon,e.label]})},e.label),l&&1===t&&"right"===Sh(o)?B("div",{css:wh}):null]},e.label)))})})})},Oh=oe`
3153
3158
  display: flex;
3154
3159
  justify-content: flex-start;
3155
3160
  align-items: center;
3156
3161
  gap: 8px;
3157
- `,Oh=e=>oe`
3162
+ `,_h=e=>oe`
3158
3163
  width: ${e||"16px"};
3159
3164
  position: relative;
3160
3165
  display: flex;
3161
- `,_h=oe`
3166
+ `,Lh=oe`
3162
3167
  height: 4px;
3163
3168
  width: 4px;
3164
3169
  background-color: ${fe("error",500)};
@@ -3166,7 +3171,7 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3166
3171
  position: absolute;
3167
3172
  top: 0px;
3168
3173
  right: 0px;
3169
- `,Lh=oe`
3174
+ `,Th=oe`
3170
3175
  height: 10px;
3171
3176
  background-color: ${fe("error",500)};
3172
3177
  padding: 0 3px 1px 3px;
@@ -3177,11 +3182,11 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3177
3182
  position: absolute;
3178
3183
  top: -2px;
3179
3184
  left: 9px;
3180
- `,Th=oe`
3185
+ `,Rh=oe`
3181
3186
  font-size: 9px;
3182
3187
  font-weight: 700;
3183
3188
  color: ${fe("error",100)};
3184
- `,Rh=oe`
3189
+ `,Ph=oe`
3185
3190
  height: 16px;
3186
3191
  min-width: 16px;
3187
3192
  background-color: ${fe("error",500)};
@@ -3190,11 +3195,11 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3190
3195
  justify-content: center;
3191
3196
  align-items: center;
3192
3197
  padding: 0px 4px 1px 4px;
3193
- `,Ph=oe`
3198
+ `,Dh=oe`
3194
3199
  font-size: 16px;
3195
3200
  font-weight: 700;
3196
3201
  color: ${fe("error",100)};
3197
- `,Dh=({hasNotification:e,notificationCount:t,label:n})=>{const[r,i]=W(!1);U((()=>{const e=()=>{window.innerWidth<1024?i(!0):i(!1)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]);const o=(()=>{let e="";return t&&t>0&&(e=`${t>99?"99+":t}`),e})();let a="16px";return t&&t>99?a="28px":t&&t>9&&(a="22px"),H("div",r?{css:Eh,role:"status","aria-live":"polite",children:[H("div",{css:Oh(),children:[B(je,{color:"currentColor",height:"16px",width:"16px"}),!e||t||n?null:B("div",{css:_h,"aria-hidden":!0})]}),n?B("p",{children:n}):null,o.length>0?B("div",{css:Rh,children:B("p",{css:Ph,"aria-label":`${t} unread message`,children:o})}):null]}:{css:Eh,role:"status","aria-live":"polite",children:[n?B("p",{children:n}):null,H("div",{css:Oh(a),children:[o.length>0?B("div",{css:Lh,children:B("p",{css:Th,"aria-label":`${t} unread message`,children:o})}):null,e&&!t?B("div",{css:_h,"aria-hidden":!0}):null,B(je,{color:"currentColor",height:"16px",width:"16px"})]})]})},Mh=(e,t)=>oe`
3202
+ `,Mh=({hasNotification:e,notificationCount:t,label:n})=>{const[r,i]=W(!1);U((()=>{const e=()=>{window.innerWidth<1024?i(!0):i(!1)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]);const o=(()=>{let e="";return t&&t>0&&(e=`${t>99?"99+":t}`),e})();let a="16px";return t&&t>99?a="28px":t&&t>9&&(a="22px"),H("div",r?{css:Oh,role:"status","aria-live":"polite",children:[H("div",{css:_h(),children:[B(je,{color:"currentColor",height:"16px",width:"16px"}),!e||t||n?null:B("div",{css:Lh,"aria-hidden":!0})]}),n?B("p",{children:n}):null,o.length>0?B("div",{css:Ph,children:B("p",{css:Dh,"aria-label":`${t} unread message`,children:o})}):null]}:{css:Oh,role:"status","aria-live":"polite",children:[n?B("p",{children:n}):null,H("div",{css:_h(a),children:[o.length>0?B("div",{css:Th,children:B("p",{css:Rh,"aria-label":`${t} unread message`,children:o})}):null,e&&!t?B("div",{css:Lh,"aria-hidden":!0}):null,B(je,{color:"currentColor",height:"16px",width:"16px"})]})]})},Nh=(e,t)=>oe`
3198
3203
  width: 100%;
3199
3204
  min-width: ${"small"===e?"234px":"320px"};
3200
3205
  border-radius: 4px;
@@ -3209,7 +3214,7 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3209
3214
  button {
3210
3215
  margin-left: ${t?0:"24px"};
3211
3216
  }
3212
- `,Nh=oe`
3217
+ `,jh=oe`
3213
3218
  display: flex;
3214
3219
  align-items: flex-start;
3215
3220
  gap: 8px;
@@ -3217,28 +3222,28 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3217
3222
  svg {
3218
3223
  margin-top: 6px;
3219
3224
  }
3220
- `,jh=e=>oe`
3225
+ `,Vh=e=>oe`
3221
3226
  color: ${fe("neutral",800)};
3222
3227
  font-size: ${"small"===e?"14px":"18px"};
3223
3228
  line-height: ${"small"===e?"20px":"28px"};
3224
3229
  font-weight: 400;
3225
3230
  text-align: left;
3226
- `,Vh=e=>oe`
3231
+ `,Ih=e=>oe`
3227
3232
  color: ${fe("neutral",700)};
3228
3233
  font-size: ${"small"===e?"12px":"16px"};
3229
3234
  line-height: ${"small"===e?"16px":"24px"};
3230
3235
  font-weight: 400;
3231
3236
  margin-left: 24px;
3232
3237
  text-align: left;
3233
- `,Ih=oe`
3238
+ `,zh=oe`
3234
3239
  background-color: ${fe("neutral",100)};
3235
3240
  border: 1px solid ${fe("neutral",300)};
3236
3241
  color: ${fe("neutral",700)};
3237
- `,zh=oe`
3242
+ `,Ah=oe`
3238
3243
  background-color: ${fe("neutral",200)};
3239
3244
  border: 1px solid ${fe("neutral",300)};
3240
3245
  color: ${fe("neutral",700)};
3241
- `,Ah=oe`
3246
+ `,Hh=oe`
3242
3247
  background-color: ${fe("success",100)};
3243
3248
  border: 1px solid ${fe("success",300)};
3244
3249
  color: ${fe("success",500)};
@@ -3246,7 +3251,7 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3246
3251
  p {
3247
3252
  color: ${fe("success",900)};
3248
3253
  }
3249
- `,Hh=oe`
3254
+ `,Bh=oe`
3250
3255
  background-color: ${fe("warning",100)};
3251
3256
  border: 1px solid ${fe("warning",300)};
3252
3257
  color: ${fe("warning",500)};
@@ -3254,7 +3259,7 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3254
3259
  p {
3255
3260
  color: ${fe("warning",900)};
3256
3261
  }
3257
- `,Bh=oe`
3262
+ `,Fh=oe`
3258
3263
  background-color: ${fe("error",100)};
3259
3264
  border: 1px solid ${fe("error",300)};
3260
3265
  color: ${fe("error",500)};
@@ -3262,32 +3267,32 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3262
3267
  p {
3263
3268
  color: ${fe("error",900)};
3264
3269
  }
3265
- `,Fh=({label:e,caption:t,variant:n,size:r="large",icon:i=B(Se,{height:"16px",width:"16px"}),onActionClick:o,actionLabel:a,isButtonRight:l})=>{let s=Ih;return"info-grey"===n?s=zh:"success"===n?s=Ah:"warning"===n?s=Hh:"error"===n&&(s=Bh),H("div",{css:[Mh(r,l),s],"aria-roledescription":"Note",children:[H("div",{children:[H("div",{css:Nh,children:[i,B("p",{css:jh(r),children:e})]}),B("p",{css:Vh(r),children:t})]}),a?B(ye,{label:a,variant:"info-white"===n||"info-grey"===n?"primary":"secondary",size:"large"===r?"default":"small",onClick:o}):null]})},Zh=oe`
3270
+ `,Zh=({label:e,caption:t,variant:n,size:r="large",icon:i=B(Se,{height:"16px",width:"16px"}),onActionClick:o,actionLabel:a,isButtonRight:l})=>{let s=zh;return"info-grey"===n?s=Ah:"success"===n?s=Hh:"warning"===n?s=Bh:"error"===n&&(s=Fh),H("div",{css:[Nh(r,l),s],"aria-roledescription":"Note",children:[H("div",{children:[H("div",{css:jh,children:[i,B("p",{css:Vh(r),children:e})]}),B("p",{css:Ih(r),children:t})]}),a?B(ye,{label:a,variant:"info-white"===n||"info-grey"===n?"primary":"secondary",size:"large"===r?"default":"small",onClick:o}):null]})},qh=oe`
3266
3271
  height: 8px;
3267
3272
  width: 100%;
3268
3273
  background-color: ${fe("neutral",300)};
3269
3274
  display: flex;
3270
3275
  align-items: center;
3271
3276
  justify-content: flex-start;
3272
- `,qh=e=>oe`
3277
+ `,Gh=e=>oe`
3273
3278
  height: 100%;
3274
3279
  width: ${e}%;
3275
3280
  background-color: ${fe("primary",500)};
3276
3281
  transition: width 0.5s ease-in-out;
3277
- `,Gh=({progress:e})=>{let t=e;return t>100&&(t=100),t<0&&(t=0),B("div",{css:Zh,role:"progressbar","aria-label":`Progress: ${t}%`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t,children:B("div",{css:qh(t)})})},Wh=oe`
3282
+ `,Wh=({progress:e})=>{let t=e;return t>100&&(t=100),t<0&&(t=0),B("div",{css:qh,role:"progressbar","aria-label":`Progress: ${t}%`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t,children:B("div",{css:Gh(t)})})},Uh=oe`
3278
3283
  width: 100%;
3279
3284
  display: flex;
3280
3285
  align-items: center;
3281
3286
  justify-content: space-between;
3282
3287
  position: relative;
3283
- `,Uh=oe`
3288
+ `,Xh=oe`
3284
3289
  height: 60px;
3285
3290
  width: 80px;
3286
3291
  display: flex;
3287
3292
  flex-direction: column;
3288
3293
  align-items: center;
3289
3294
  justify-content: space-between;
3290
- `,Xh=(e,t)=>oe`
3295
+ `,Yh=(e,t)=>oe`
3291
3296
  height: 32px;
3292
3297
  width: 32px;
3293
3298
  display: flex;
@@ -3323,12 +3328,12 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3323
3328
  }
3324
3329
 
3325
3330
  ${t?`\n background-color: ${fe("neutral",300)};\n \n &:hover {\n background-color: ${fe("neutral",300)};\n box-shadow: none;\n }\n `:""}
3326
- `,Yh=e=>oe`
3331
+ `,Kh=e=>oe`
3327
3332
  color: ${fe("neutral",e?800:600)};
3328
3333
  font-size: 14px;
3329
3334
  line-height: 20px;
3330
3335
  font-weight: 400;
3331
- `,Kh=oe`
3336
+ `,Jh=oe`
3332
3337
  height: 1px;
3333
3338
  width: 100%;
3334
3339
  padding: 0 30px;
@@ -3336,11 +3341,11 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3336
3341
  top: 16px;
3337
3342
  left: 0;
3338
3343
  z-index: -1;
3339
- `,Jh=oe`
3344
+ `,Qh=oe`
3340
3345
  height: 1px;
3341
3346
  width: 100%;
3342
3347
  background-color: ${fe("neutral",400)};
3343
- `,Qh=({steps:e,currentStep:t})=>H("div",{css:Wh,children:[e.map(((e,n)=>H("div",{css:Uh,children:[B("button",{css:Xh(t>=n+1,t<n+1),type:"button",onClick:e.onClick,"aria-current":t===n+1,"aria-disabled":t<n+1,disabled:t<n+1,"aria-label":`Current Step ${n}${e.label?` ${e.label}`:""}`,"data-active":t>=n+1,children:t>n+1?B($e,{height:"16px",width:"16px"}):n+1}),e.label?B("p",{css:Yh(t===n+1),children:e.label}):null]},`${e.label}-${n}`))),B("div",{css:Kh,children:B("div",{css:Jh})})]}),ef=oe`
3348
+ `,ef=({steps:e,currentStep:t})=>H("div",{css:Uh,children:[e.map(((e,n)=>H("div",{css:Xh,children:[B("button",{css:Yh(t>=n+1,t<n+1),type:"button",onClick:e.onClick,"aria-current":t===n+1,"aria-disabled":t<n+1,disabled:t<n+1,"aria-label":`Current Step ${n}${e.label?` ${e.label}`:""}`,"data-active":t>=n+1,children:t>n+1?B($e,{height:"16px",width:"16px"}):n+1}),e.label?B("p",{css:Kh(t===n+1),children:e.label}):null]},`${e.label}-${n}`))),B("div",{css:Jh,children:B("div",{css:Qh})})]}),tf=oe`
3344
3349
  justify-content: space-between;
3345
3350
  align-items: center;
3346
3351
  gap: 8px;
@@ -3383,18 +3388,18 @@ function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3383
3388
  color: ${fe("error",900)};
3384
3389
  }
3385
3390
  }
3386
- `,tf=oe`
3391
+ `,nf=oe`
3387
3392
  font-size: 18px;
3388
3393
  line-height: 28px;
3389
3394
  font-weight: 400;
3390
3395
  color: ${fe("neutral",800)};
3391
- `,nf=oe`
3396
+ `,rf=oe`
3392
3397
  font-size: 16px;
3393
3398
  line-height: 24px;
3394
3399
  font-weight: 400;
3395
3400
  color: ${fe("neutral",700)};
3396
- `,rf=oe`
3397
- padding: 6px;
3398
3401
  `,of=oe`
3399
3402
  padding: 6px;
3400
- `,af={pauseOnPageIdle:!0,offsets:"24px"},lf={"top-start":V({placement:"top-start",...af}),"top-end":V({placement:"top-end",...af}),"bottom-start":V({placement:"bottom-start",...af}),"bottom-end":V({placement:"bottom-end",...af})},sf=e=>{lf[e.placement].create({title:e.label,description:e.caption,duration:e.duration||5e3,meta:{closable:e.closable,icon:e.icon,closableLabel:e.closableLabel},...e})},cf=()=>Object.keys(lf).map((e=>B(s,{children:B(I,{toaster:lf[e],insetInline:{mdDown:"4"},children:t=>H(z.Root,{css:ef,width:{md:"sm"},children:[H(A,{flexDirection:"row",className:"ds-toast-icon-container",children:["info"===t.type?t.meta?.icon?t.meta.icon:B(Se,{color:"var(--chakra-colors-neutral-700)"}):null,"loading"===t.type?B(i,{size:"lg",borderWidth:"3px",color:"var(--chakra-colors-primary-500)"}):null,"success"===t.type?t.meta?.icon?t.meta.icon:B(Pe,{color:"var(--chakra-colors-success-500)"}):null,"warning"===t.type?t.meta?.icon?t.meta.icon:B(De,{color:"var(--chakra-colors-warning-500)"}):null,"error"===t.type?t.meta?.icon?t.meta.icon:B(Me,{color:"var(--chakra-colors-error-500)"}):null,H(A,{gap:"1",flex:"1",maxWidth:"100%",children:[B(z.Title,{css:tf,"aria-label":`${t.title}`,children:t.title}),t.description?B(z.Title,{css:nf,"aria-label":`${t.description}`,children:t.description}):null]})]}),t.action||t.meta?.closable?H(A,{flexDirection:"row",children:[t.action?B(ye,{css:rf,label:t.action.label,size:"small",variant:"info"===t.type?"primary":"secondary",onClick:()=>{t?.action?.onClick&&t.action.onClick(),lf[e].dismiss()}}):null,t.meta?.closable?B(ye,{css:of,label:t.meta.closableLabel,"aria-label":t.meta?.closableLabel||"Dismiss",leftIcon:B(_e,{height:"10px!",width:"10px!"}),size:"small",variant:"secondary",onClick:()=>lf[e].dismiss()}):null]}):null]})})},e)));export{Dh as Badge,Mr as BaseMap,Rp as Breadcrumb,ye as Button,Ot as Checkbox,un as CheckboxList,Mt as CheckboxOptionCard,rt as CloseButton,oo as ExtendableCard,jp as Footer,nt as IconButton,jr as IconMarker,Vr as IconMarkers,Fh as InlineMessage,Kn as InputWithUnits,Pi as ItemCount,Ur as LayerGroup,Xr as LayerGroupContainer,Wr as LayerItem,ei as LayerParameters,pi as LegendItem,Hi as List,st as MapControl,ct as MapControls,mt as Menu,Bp as MobileTabBar,ca as Modal,$t as MultiActionButton,uh as Navbar,mh as NavigationRail,Ht as OptionCard,Gi as Pagination,va as Panel,or as Password,Gh as ProgressBar,Ci as QualitativeAttribute,qt as Radio,Gt as RadioGroup,hr as RadioList,Qe as SSOButtons,_i as ScaleBar,Yn as Select,Op as Sheet,tn as Slider,mr as SliderInput,Qh as StepProgressIndicator,rn as Switch,Sh as TabBar,eo as Table,no as TableCell,to as TableRow,Wn as Tag,kn as TextInput,Sr as Textarea,cf as Toast,St as Tooltip,he as designSystemStyles,fe as getThemedColor,sf as showToast};
3403
+ `,af=oe`
3404
+ padding: 6px;
3405
+ `,lf={pauseOnPageIdle:!0,offsets:"24px"},sf={"top-start":V({placement:"top-start",...lf}),"top-end":V({placement:"top-end",...lf}),"bottom-start":V({placement:"bottom-start",...lf}),"bottom-end":V({placement:"bottom-end",...lf})},cf=e=>{sf[e.placement].create({title:e.label,description:e.caption,duration:e.duration||5e3,meta:{closable:e.closable,icon:e.icon,closableLabel:e.closableLabel},...e})},df=()=>Object.keys(sf).map((e=>B(s,{children:B(I,{toaster:sf[e],insetInline:{mdDown:"4"},children:t=>H(z.Root,{css:tf,width:{md:"sm"},children:[H(A,{flexDirection:"row",className:"ds-toast-icon-container",children:["info"===t.type?t.meta?.icon?t.meta.icon:B(Se,{color:"var(--chakra-colors-neutral-700)"}):null,"loading"===t.type?B(i,{size:"lg",borderWidth:"3px",color:"var(--chakra-colors-primary-500)"}):null,"success"===t.type?t.meta?.icon?t.meta.icon:B(Pe,{color:"var(--chakra-colors-success-500)"}):null,"warning"===t.type?t.meta?.icon?t.meta.icon:B(De,{color:"var(--chakra-colors-warning-500)"}):null,"error"===t.type?t.meta?.icon?t.meta.icon:B(Me,{color:"var(--chakra-colors-error-500)"}):null,H(A,{gap:"1",flex:"1",maxWidth:"100%",children:[B(z.Title,{css:nf,"aria-label":`${t.title}`,children:t.title}),t.description?B(z.Title,{css:rf,"aria-label":`${t.description}`,children:t.description}):null]})]}),t.action||t.meta?.closable?H(A,{flexDirection:"row",children:[t.action?B(ye,{css:of,label:t.action.label,size:"small",variant:"info"===t.type?"primary":"secondary",onClick:()=>{t?.action?.onClick&&t.action.onClick(),sf[e].dismiss()}}):null,t.meta?.closable?B(ye,{css:af,label:t.meta.closableLabel,"aria-label":t.meta?.closableLabel||"Dismiss",leftIcon:B(_e,{height:"10px!",width:"10px!"}),size:"small",variant:"secondary",onClick:()=>sf[e].dismiss()}):null]}):null]})})},e)));export{Mh as Badge,Nr as BaseMap,Pp as Breadcrumb,ye as Button,_t as Checkbox,pn as CheckboxList,Nt as CheckboxOptionCard,rt as CloseButton,ao as ExtendableCard,Vp as Footer,nt as IconButton,Vr as IconMarker,Ir as IconMarkers,Zh as InlineMessage,Jn as InputWithUnits,Di as ItemCount,Xr as LayerGroup,Yr as LayerGroupContainer,Ur as LayerItem,ti as LayerParameters,hi as LegendItem,Bi as List,st as MapControl,ct as MapControls,mt as Menu,Fp as MobileTabBar,da as Modal,$t as MultiActionButton,ph as Navbar,xh as NavigationRail,Bt as OptionCard,Wi as Pagination,ma as Panel,ar as Password,Wh as ProgressBar,wi as QualitativeAttribute,Gt as Radio,Wt as RadioGroup,fr as RadioList,Qe as SSOButtons,Li as ScaleBar,Kn as Select,_p as Sheet,nn as Slider,xr as SliderInput,ef as StepProgressIndicator,on as Switch,Eh as TabBar,to as Table,ro as TableCell,no as TableRow,Un as Tag,Sn as TextInput,Er as Textarea,df as Toast,Et as Tooltip,he as designSystemStyles,fe as getThemedColor,cf as showToast};