@worldresources/wri-design-systems 2.141.0 → 2.141.1

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
@@ -750,10 +750,14 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
750
750
  color: ${he("neutral",500)};
751
751
  cursor: not-allowed;
752
752
  }
753
- `,Ht=({children:e,value:t,disabled:n,...r})=>A(f.Item,{css:zt,value:t,disabled:n,...r,children:[H(f.ItemHiddenInput,{}),H(f.ItemIndicator,{className:"ds-radio-item-indicator"}),e?H(f.ItemText,{css:At,children:e}):null]}),Bt=({children:e,horizontal:t=!1,name:n,defaultValue:r,onChange:i,customGap:o,...a})=>{const[l,s]=G(r);let c=t?"20px":"8px";return c=o||c,oe(f.Root,{onValueChange:e=>{s(e.value||""),i&&i(n,e.value||"")},value:l,...a,children:oe(u,{gap:c,flexDirection:t?"row":"column",alignItems:"flex-start",flexWrap:"wrap",children:e})})},Ft=ie`
753
+ `,Ht=ie`
754
+ margin: 0 !important;
755
+ width: 20px !important;
756
+ height: 20px !important;
757
+ `,Bt=({children:e,value:t,disabled:n,...r})=>A(f.Item,{css:zt,value:t,disabled:n,...r,children:[H(f.ItemHiddenInput,{css:Ht}),H(f.ItemIndicator,{className:"ds-radio-item-indicator"}),e?H(f.ItemText,{css:At,children:e}):null]}),Ft=({children:e,horizontal:t=!1,name:n,defaultValue:r,onChange:i,customGap:o,...a})=>{const[l,s]=G(r);let c=t?"20px":"8px";return c=o||c,oe(f.Root,{onValueChange:e=>{s(e.value||""),i&&i(n,e.value||"")},value:l,...a,children:oe(u,{gap:c,flexDirection:t?"row":"column",alignItems:"flex-start",flexWrap:"wrap",children:e})})},Zt=ie`
754
758
  height: 60px;
755
759
  padding: 40px 12px;
756
- `,Zt=ie`
760
+ `,qt=ie`
757
761
  height: 20px;
758
762
  width: 20px;
759
763
  background-color: ${he("primary",500)};
@@ -800,7 +804,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
800
804
  outline: none;
801
805
  cursor: not-allowed;
802
806
  }
803
- `,qt=ie`
807
+ `,Gt=ie`
804
808
  font-size: 14px;
805
809
  line-height: 20px;
806
810
  color: ${he("neutral",800)};
@@ -814,11 +818,11 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
814
818
  align-items: center;
815
819
  position: relative;
816
820
  top: -30px;
817
- `,Gt=ie`
821
+ `,Wt=ie`
818
822
  background-color: ${he("neutral",300)};
819
823
  border: none;
820
824
  box-shadow: none;
821
- `,Wt=ie`
825
+ `,Ut=ie`
822
826
  background-color: ${he("primary",500)};
823
827
  border: 1px solid ${he("primary",700)};
824
828
  border-radius: 8px;
@@ -831,7 +835,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
831
835
  background-color: ${he("neutral",400)};
832
836
  border: none;
833
837
  }
834
- `,Ut=(e,t)=>ie`
838
+ `,Xt=(e,t)=>ie`
835
839
  font-size: 12px;
836
840
  line-height: 16px;
837
841
  color: ${he("neutral",800)};
@@ -866,7 +870,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
866
870
  }
867
871
 
868
872
  ${t?`\n --ty: -6px !important;\n\n .chakra-slider__markerIndicator {\n height: 16px;\n width: 4px;\n background-color: ${he("primary",700)} !important;\n }\n\n &[data-disabled] {\n .chakra-slider__markerIndicator {\n background-color: ${he("neutral",400)} !important;\n }\n }\n `:""};
869
- `,Xt=e=>{const{value:t}=e;return H(v,{each:t,children:(e,t)=>A(g.Thumb,{css:Zt,index:t,children:[H("div",{css:qt,className:"ds-slider-value-preview",children:e}),H(g.HiddenInput,{})]},t)})},Yt=Z.forwardRef(((e,t)=>{const{marks:n,isCentred:r}=e;return n?.length?H(g.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 A(g.Marker,{css:Ut(r,o),value:n,children:[H(g.MarkerIndicator,{}),H("p",{children:i})]},n)}))}):null})),Kt=Z.forwardRef(((e,t)=>{const{marks:n,onValueChange:r,isCentred:i,value:o,...a}=e,[l,s]=G(o||[0]);W((()=>{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 H(g.Root,{css:Ft,ref:t,thumbAlignment:"center",onValueChange:e=>{s(e.value),r&&r(e)},origin:i?"center":"start",value:l,...a,children:A(g.Control,{"data-has-mark-label":d||void 0,children:[H(g.Track,{css:Gt,children:H(g.Range,{css:Wt})}),H(Xt,{value:l}),H(Yt,{marks:c,isCentred:i})]})})})),Jt=ie`
873
+ `,Yt=e=>{const{value:t}=e;return H(v,{each:t,children:(e,t)=>A(g.Thumb,{css:qt,index:t,children:[H("div",{css:Gt,className:"ds-slider-value-preview",children:e}),H(g.HiddenInput,{})]},t)})},Kt=Z.forwardRef(((e,t)=>{const{marks:n,isCentred:r}=e;return n?.length?H(g.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 A(g.Marker,{css:Xt(r,o),value:n,children:[H(g.MarkerIndicator,{}),H("p",{children:i})]},n)}))}):null})),Jt=Z.forwardRef(((e,t)=>{const{marks:n,onValueChange:r,isCentred:i,value:o,...a}=e,[l,s]=G(o||[0]);W((()=>{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 H(g.Root,{css:Zt,ref:t,thumbAlignment:"center",onValueChange:e=>{s(e.value),r&&r(e)},origin:i?"center":"start",value:l,...a,children:A(g.Control,{"data-has-mark-label":d||void 0,children:[H(g.Track,{css:Wt,children:H(g.Range,{css:Ut})}),H(Yt,{value:l}),H(Kt,{marks:c,isCentred:i})]})})})),Qt=ie`
870
874
  --switch-height: 24px;
871
875
  --switch-width: 40px;
872
876
 
@@ -965,13 +969,13 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
965
969
  cursor: not-allowed;
966
970
  }
967
971
  }
968
- `,Qt=({name:e,defaultChecked:t=!1,onChange:n,disabled:r=!1,isLabelOnLeft:i=!1,children:o,...a})=>H("div",{style:{display:"flex",alignItems:"center"},children:A(m.Root,{css:Jt,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?H(m.Label,{children:o}):null,H(m.HiddenInput,{style:{width:"42px",height:"26px"}}),H("div",{className:"chakra-switch__control-container",children:H(m.Control,{children:H(m.Thumb,{children:H(m.ThumbIndicator,{display:"flex",children:H(we,{})})})})}),i||null==o?null:H(m.Label,{children:o})]})}),en=ie`
972
+ `,en=({name:e,defaultChecked:t=!1,onChange:n,disabled:r=!1,isLabelOnLeft:i=!1,children:o,...a})=>H("div",{style:{display:"flex",alignItems:"center"},children:A(m.Root,{css:Qt,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?H(m.Label,{children:o}):null,H(m.HiddenInput,{style:{width:"42px",height:"26px"}}),H("div",{className:"chakra-switch__control-container",children:H(m.Control,{children:H(m.Thumb,{children:H(m.ThumbIndicator,{display:"flex",children:H(we,{})})})})}),i||null==o?null:H(m.Label,{children:o})]})}),tn=ie`
969
973
  position: relative;
970
974
  height: 100%;
971
975
  &:focus-visible {
972
976
  outline-color: ${he("primary",700)};
973
977
  }
974
- `,tn=ie`
978
+ `,nn=ie`
975
979
  font-size: 16px;
976
980
  line-height: 24px;
977
981
  color: ${he("neutral",900)};
@@ -981,37 +985,37 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
981
985
  color: ${he("error",500)};
982
986
  margin-right: 3px;
983
987
  }
984
- `,nn=ie`
988
+ `,rn=ie`
985
989
  font-size: 14px;
986
990
  line-height: 20px;
987
991
  color: ${he("neutral",700)};
988
992
  text-align: left;
989
- `,rn=e=>ie`
993
+ `,on=e=>ie`
990
994
  margin-top: 12px;
991
995
  display: flex;
992
996
  flex-direction: ${e?"row":"column"};
993
997
  flex-wrap: wrap;
994
998
  gap: ${e?"20px":"12px"};
995
- `,on=ie`
999
+ `,an=ie`
996
1000
  width: 3px;
997
1001
  height: 100%;
998
1002
  background-color: ${he("error",900)};
999
1003
  position: absolute;
1000
1004
  top: 0;
1001
1005
  left: 0;
1002
- `,an=ie`
1006
+ `,ln=ie`
1003
1007
  font-size: 14px;
1004
1008
  line-height: 20px;
1005
1009
  font-weight: 700;
1006
1010
  color: ${he("error",900)};
1007
1011
  text-align: left;
1008
- `,ln=({label:e,caption:t,checkboxes:n,defaultValue:r,onCheckedChange:i,errorMessage:o,horizontal:l,required:s})=>{const[c,d]=G(r?{[r]:!0}:{});return A(a,{css:en,tabIndex:0,"aria-label":`${e}. ${t?`${t}.`:""} ${s?"Required.":"Optional"} ${o?`Error: ${o}.`:""} `,children:[o?H("div",{css:on}):null,A("div",{css:(u=!!o,ie`
1012
+ `,sn=({label:e,caption:t,checkboxes:n,defaultValue:r,onCheckedChange:i,errorMessage:o,horizontal:l,required:s})=>{const[c,d]=G(r?{[r]:!0}:{});return A(a,{css:tn,tabIndex:0,"aria-label":`${e}. ${t?`${t}.`:""} ${s?"Required.":"Optional"} ${o?`Error: ${o}.`:""} `,children:[o?H("div",{css:an}):null,A("div",{css:(u=!!o,ie`
1009
1013
  margin-left: ${u?"19px":"0px"};
1010
- `),children:[A("p",{css:tn,"aria-label":e,children:[s&&H("span",{"aria-label":"required",children:"*"}),e]}),H("p",{css:nn,"aria-label":t,children:t}),o?H("p",{css:an,"aria-label":o,children:o}):null,H("div",{css:rn(l),children:n.map((e=>H(kt,{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},sn=ie`
1014
+ `),children:[A("p",{css:nn,"aria-label":e,children:[s&&H("span",{"aria-label":"required",children:"*"}),e]}),H("p",{css:rn,"aria-label":t,children:t}),o?H("p",{css:ln,"aria-label":o,children:o}):null,H("div",{css:on(l),children:n.map((e=>H(kt,{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},cn=ie`
1011
1015
  width: 100%;
1012
1016
  max-width: 370px;
1013
1017
  position: relative;
1014
- `,cn=e=>ie`
1018
+ `,dn=e=>ie`
1015
1019
  font-size: 16px;
1016
1020
  line-height: 24px;
1017
1021
  font-weight: 400;
@@ -1022,26 +1026,26 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1022
1026
  color: ${e?he("neutral",600):he("error",500)};
1023
1027
  margin-right: 3px;
1024
1028
  }
1025
- `,dn=e=>ie`
1029
+ `,un=e=>ie`
1026
1030
  font-size: 14px;
1027
1031
  line-height: 20px;
1028
1032
  font-weight: 400;
1029
1033
  color: ${he("neutral",e?600:700)};
1030
1034
  text-align: left;
1031
- `,un=ie`
1035
+ `,pn=ie`
1032
1036
  width: 3px;
1033
1037
  height: 100%;
1034
1038
  background-color: ${he("error",900)};
1035
1039
  position: absolute;
1036
1040
  top: 0;
1037
1041
  left: 0;
1038
- `,pn=ie`
1042
+ `,hn=ie`
1039
1043
  font-size: 14px;
1040
1044
  line-height: 20px;
1041
1045
  font-weight: 700;
1042
1046
  color: ${he("error",900)};
1043
1047
  text-align: left;
1044
- `,hn=(e,t)=>ie`
1048
+ `,fn=(e,t)=>ie`
1045
1049
  width: 100%;
1046
1050
  margin-top: 8px;
1047
1051
 
@@ -1077,7 +1081,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1077
1081
  padding: 0 4px;
1078
1082
  }
1079
1083
  }
1080
- `,fn=e=>ie`
1084
+ `,gn=e=>ie`
1081
1085
  position: relative;
1082
1086
  height: 100%;
1083
1087
  width: 100%;
@@ -1086,14 +1090,14 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1086
1090
  align-items: flex-start;
1087
1091
  gap: ${"small"===e?"12px":"16px"};
1088
1092
  margin-bottom: 20px;
1089
- `,gn=ie`
1093
+ `,vn=ie`
1090
1094
  width: 3px;
1091
1095
  height: 100%;
1092
1096
  background-color: ${he("error",900)};
1093
1097
  position: absolute;
1094
1098
  top: 0;
1095
1099
  left: 0;
1096
- `,vn=(e,t)=>ie`
1100
+ `,mn=(e,t)=>ie`
1097
1101
  color: ${he("neutral",t?600:900)};
1098
1102
  font-size: ${"small"===e?"14px":"16px"};
1099
1103
  font-weight: 400;
@@ -1115,7 +1119,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1115
1119
  margin-top: 4px;
1116
1120
  color: ${t?he("neutral",600):he("error",500)};
1117
1121
  }
1118
- `,mn=(e,t)=>ie`
1122
+ `,xn=(e,t)=>ie`
1119
1123
  color: ${he("neutral",t?600:700)};
1120
1124
  font-size: ${"small"===e?"12px":"14px"};
1121
1125
  font-weight: 400;
@@ -1124,13 +1128,13 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1124
1128
  &:first-letter {
1125
1129
  text-transform: uppercase;
1126
1130
  }
1127
- `,xn=e=>ie`
1131
+ `,bn=e=>ie`
1128
1132
  color: ${he("error",900)};
1129
1133
  font-size: ${"small"===e?"12px":"14px"};
1130
1134
  font-weight: 700;
1131
1135
  line-height: ${"small"===e?"16px":"20px"};
1132
1136
  margin-top: 2px;
1133
- `,bn=(e,t,n)=>ie`
1137
+ `,yn=(e,t,n)=>ie`
1134
1138
  height: ${"small"===e?"28px":"40px"};
1135
1139
  width: 100%;
1136
1140
  border-radius: 4px;
@@ -1168,7 +1172,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1168
1172
  }
1169
1173
 
1170
1174
  ${t||n?`\n border: 1px solid ${he("neutral",700)};\n `:""}
1171
- `,yn=({label:e,caption:t,placeholder:n,errorMessage:r,required:i,disabled:o,size:a="default",defaultValue:l="",onChange:s,...c})=>{const[d,u]=G(l);return A("div",{css:fn(a),className:"ds-text-input-container",children:[r?H("div",{css:gn}):null,A(x.Root,{required:i,invalid:!!r,gap:"0",style:{marginLeft:r?"19px":"0px"},children:[e?A(x.Label,{css:vn(a,o),"aria-label":e,children:[H(x.RequiredIndicator,{"aria-label":"required"}),e,i?"":H("span",{children:" (Optional)"})]}):null,t?H(x.HelperText,{css:mn(a,o),"aria-label":t,children:t}):null,r?H(x.ErrorText,{css:xn(a),"aria-label":r,children:r}):null,H(b,{placeholder:n,disabled:o,css:bn(a,d,l),onChange:e=>{u(e.target.value),s&&s(e)},value:d,_placeholder:{color:"var(--chakra-colors-neutral-500)"},...c})]})]})},Cn=F.forwardRef(((e,t)=>{const{children:n,...r}=e;return ae(y.Control,{...r,children:[oe(y.Trigger,{ref:t,children:n}),oe(y.IndicatorGroup,{children:oe(y.Indicator,{children:oe(Se,{})})})]})})),wn=F.forwardRef(((e,t)=>{const{...n}=e;return oe(s,{children:oe(y.Positioner,{children:oe(y.Content,{...n,ref:t})})})})),$n=F.forwardRef(((e,t)=>{const{item:n,children:r,...i}=e;return oe(y.Item,{item:n,...i,ref:t,children:r},n.value)})),kn=F.forwardRef(((e,t)=>{const{children:n,...r}=e;return oe(y.ValueText,{...r,ref:t,children:oe(y.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`}})})})),Sn=F.forwardRef(((e,t)=>oe(y.Root,{...e,ref:t,positioning:{sameWidth:!0,...e.positioning},children:e.asChild?e.children:ae(le,{children:[oe(y.HiddenSelect,{}),e.children]})})));F.forwardRef(((e,t)=>{const{children:n,label:r,...i}=e;return ae(y.ItemGroup,{...i,ref:t,children:[oe(y.ItemGroupLabel,{children:r}),n]})}));const En=y.Label;y.ItemText;const On=e=>ie`
1175
+ `,Cn=({label:e,caption:t,placeholder:n,errorMessage:r,required:i,disabled:o,size:a="default",defaultValue:l="",onChange:s,...c})=>{const[d,u]=G(l);return A("div",{css:gn(a),className:"ds-text-input-container",children:[r?H("div",{css:vn}):null,A(x.Root,{required:i,invalid:!!r,gap:"0",style:{marginLeft:r?"19px":"0px"},children:[e?A(x.Label,{css:mn(a,o),"aria-label":e,children:[H(x.RequiredIndicator,{"aria-label":"required"}),e,i?"":H("span",{children:" (Optional)"})]}):null,t?H(x.HelperText,{css:xn(a,o),"aria-label":t,children:t}):null,r?H(x.ErrorText,{css:bn(a),"aria-label":r,children:r}):null,H(b,{placeholder:n,disabled:o,css:yn(a,d,l),onChange:e=>{u(e.target.value),s&&s(e)},value:d,_placeholder:{color:"var(--chakra-colors-neutral-500)"},...c})]})]})},wn=F.forwardRef(((e,t)=>{const{children:n,...r}=e;return ae(y.Control,{...r,children:[oe(y.Trigger,{ref:t,children:n}),oe(y.IndicatorGroup,{children:oe(y.Indicator,{children:oe(Se,{})})})]})})),$n=F.forwardRef(((e,t)=>{const{...n}=e;return oe(s,{children:oe(y.Positioner,{children:oe(y.Content,{...n,ref:t})})})})),kn=F.forwardRef(((e,t)=>{const{item:n,children:r,...i}=e;return oe(y.Item,{item:n,...i,ref:t,children:r},n.value)})),Sn=F.forwardRef(((e,t)=>{const{children:n,...r}=e;return oe(y.ValueText,{...r,ref:t,children:oe(y.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`}})})})),En=F.forwardRef(((e,t)=>oe(y.Root,{...e,ref:t,positioning:{sameWidth:!0,...e.positioning},children:e.asChild?e.children:ae(le,{children:[oe(y.HiddenSelect,{}),e.children]})})));F.forwardRef(((e,t)=>{const{children:n,label:r,...i}=e;return ae(y.ItemGroup,{...i,ref:t,children:[oe(y.ItemGroupLabel,{children:r}),n]})}));const On=y.Label;y.ItemText;const Ln=e=>ie`
1172
1176
  position: relative;
1173
1177
  height: 100%;
1174
1178
  width: 100%;
@@ -1180,14 +1184,14 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1180
1184
  &:focus-visible {
1181
1185
  outline-color: ${he("primary",700)};
1182
1186
  }
1183
- `,Ln=ie`
1187
+ `,_n=ie`
1184
1188
  width: 3px;
1185
1189
  height: 100%;
1186
1190
  background-color: ${he("error",900)};
1187
1191
  position: absolute;
1188
1192
  top: 0;
1189
1193
  left: 0;
1190
- `,_n=e=>ie`
1194
+ `,Tn=e=>ie`
1191
1195
  font-size: ${"small"===e?"14px":"16px"};
1192
1196
  line-height: ${"small"===e?"20px":"24px"};
1193
1197
  font-weight: 400;
@@ -1206,7 +1210,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1206
1210
  color: ${he("neutral",600)};
1207
1211
  }
1208
1212
  }
1209
- `,Tn=(e,t)=>ie`
1213
+ `,Rn=(e,t)=>ie`
1210
1214
  font-size: ${"small"===e?"12px":"14px"};
1211
1215
  line-height: ${"small"===e?"16px":"20px"};
1212
1216
  font-weight: 400;
@@ -1214,7 +1218,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1214
1218
  text-align: left;
1215
1219
 
1216
1220
  ${t?`color: ${he("neutral",600)} !important;`:""}
1217
- `,Rn=(e,t,n,r)=>ie`
1221
+ `,Pn=(e,t,n,r)=>ie`
1218
1222
  .chakra-select__trigger {
1219
1223
  min-height: ${"small"===e?"32px":"40px"};
1220
1224
  border-radius: 4px;
@@ -1269,40 +1273,40 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1269
1273
  }
1270
1274
  }
1271
1275
  }
1272
- `,Pn=ie`
1276
+ `,Dn=ie`
1273
1277
  margin-top: -8px;
1274
1278
  border-radius: 4px;
1275
1279
  border: 1px solid ${he("neutral",400)};
1276
1280
  border-top-left-radius: 0px;
1277
1281
  border-top-right-radius: 0px;
1278
1282
  border-top: none;
1279
- `,Dn=ie`
1283
+ `,Mn=ie`
1280
1284
  align-items: flex-start;
1281
1285
  &[data-highlighted] {
1282
1286
  background-color: ${he("neutral",200)};
1283
1287
  cursor: pointer;
1284
1288
  }
1285
- `,Mn=(e,t)=>ie`
1289
+ `,Nn=(e,t)=>ie`
1286
1290
  font-size: ${"small"===e?"14px":"16px"};
1287
1291
  line-height: ${"small"===e?"20px":"24px"};
1288
1292
  color: ${he("neutral",800)};
1289
1293
  text-align: left;
1290
1294
 
1291
1295
  ${t?`color: ${he("neutral",600)} !important;`:""}
1292
- `,Nn=(e,t)=>ie`
1296
+ `,jn=(e,t)=>ie`
1293
1297
  font-size: ${"small"===e?"14px":"16px"};
1294
1298
  line-height: ${"small"===e?"20px":"24px"};
1295
1299
  color: ${he("neutral",700)};
1296
1300
  text-align: left;
1297
1301
 
1298
1302
  ${t?`color: ${he("neutral",600)} !important;`:""}
1299
- `,jn=e=>ie`
1303
+ `,Vn=e=>ie`
1300
1304
  font-size: ${"small"===e?"12px":"14px"};
1301
1305
  line-height: ${"small"===e?"16px":"20px"};
1302
1306
  font-weight: 700;
1303
1307
  color: ${he("error",900)};
1304
1308
  text-align: left;
1305
- `,Vn=e=>ie`
1309
+ `,In=e=>ie`
1306
1310
  max-width: 100%;
1307
1311
  display: flex;
1308
1312
  justify-content: center;
@@ -1374,28 +1378,28 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1374
1378
  background-color: ${he("neutral",300)};
1375
1379
  color: ${he("neutral",600)};
1376
1380
  }
1377
- `,In=ie`
1381
+ `,zn=ie`
1378
1382
  background-color: ${he("neutral",100)};
1379
1383
  border: 1px solid ${he("neutral",300)};
1380
- `,zn=ie`
1384
+ `,An=ie`
1381
1385
  background-color: ${he("neutral",200)};
1382
1386
  border: 1px solid ${he("neutral",400)};
1383
- `,An=ie`
1387
+ `,Hn=ie`
1384
1388
  background-color: ${he("success",100)};
1385
1389
  border: 1px solid ${he("success",300)};
1386
1390
  color: ${he("success",900)};
1387
- `,Hn=ie`
1391
+ `,Bn=ie`
1388
1392
  background-color: ${he("warning",100)};
1389
1393
  border: 1px solid ${he("warning",300)};
1390
1394
  color: ${he("warning",900)};
1391
- `,Bn=ie`
1395
+ `,Fn=ie`
1392
1396
  background-color: ${he("error",100)};
1393
1397
  border: 1px solid ${he("error",300)};
1394
1398
  color: ${he("error",900)};
1395
- `,Fn=({label:e,size:t="default",variant:n,disabled:r,icon:i,onClose:o,closable:a,...l})=>{let s=In;return"info-grey"===n?s=zn:"success"===n?s=An:"warning"===n?s=Hn:"error"===n&&(s=Bn),A(C.Root,{css:[Vn(t),s],"data-disabled":r,...l,children:[i?H(C.StartElement,{"aria-label":`${e} tag icon`,children:i}):null,H(C.Label,{"aria-label":e,children:e}),a&&!r&&"small"!==t?H(C.EndElement,{children:H("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:H(Oe,{})})}):null]})},Zn=({placeholder:e,size:t,disabled:n})=>H(kn,{placeholder:e,children:e=>{const{label:r,caption:i}=e[0];return A(u,{flexDirection:"column",alignItems:"flex-start",children:[H("p",{css:Mn(t,n),children:r}),i?H("p",{css:Nn(t,n),children:i}):null]})}}),qn=({placeholder:e,removeItem:t,disabled:n})=>H(kn,{placeholder:e,children:e=>e.map((e=>H(u,{flexDirection:"row",alignItems:"flex-start",children:H(Fn,{label:e.label,variant:"info-grey",disabled:n,onClose:()=>t(e.value),closable:!0},e.value)},e.value)))}),Gn=({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]=G(p.defaultValue||[]),g=(e=>w({items:e}))(i),v=e=>{f(e),c&&c(e)},m=`${e||"Select input"}${l?" required.":""}${t?` ${t}.`:""}${s?" Disabled.":""}`.trim();return A(a,{css:On(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?H("div",{css:Ln}):null,A(Sn,{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?A(En,{css:_n(o),children:[l?H("span",{children:"*"}):null,e]}):null,t?H("p",{css:Tn(o,s),children:t}):null,d&&H("p",{css:jn(o),children:d}),H(Cn,{css:Rn(o,h.length>0,!!d,u),children:u?H(qn,{placeholder:n,disabled:s,removeItem:e=>{const t=h.filter((t=>t!==e));v(t)}}):H(Zn,{placeholder:n,size:o,disabled:s})}),H(wn,{css:Pn,children:g.items.map((e=>A($n,{css:Dn,item:e,children:[A(r,{children:[H("p",{css:Mn(o),children:e.label}),H("p",{css:Nn(o),children:e.caption})]}),u?H(kt,{checked:h.some((t=>t===e.value))}):null]},e.value)))})]})]})},Wn=({label:e,caption:t,errorMessage:n,units:r,unitsPosition:i="end",defaultUnit:o="",defaultValue:l="",onChange:s,required:c,disabled:d})=>{const[u,p]=G(l),[h,f]=G(o?[o]:[r[0].value]),g=(e,t)=>{s&&s("end"===i?""+(t?`${u} ${e}`:`${e} ${h}`):""+(t?`${e} ${u}`:`${h} ${e}`))};return A("div",{css:sn,children:[n?H("div",{css:un}):null,A("div",{style:{marginLeft:n?"19px":"0px"},children:[A("p",{css:cn(d),"aria-label":e,children:[c?H("span",{children:"*"}):null,e]}),H("p",{css:dn(d),"aria-label":t,children:t}),n?H("p",{css:pn,"aria-label":n,children:n}):null,A(a,{css:hn(!!n,i),attached:!0,children:["start"===i?H(Gn,{placeholder:"",value:h,items:r,disabled:d,onChange:e=>{f(e),g(e?.[0],!0)}}):null,H(yn,{type:"number",value:u,disabled:d,onChange:e=>{p(e.target.value),g(e.target.value)}}),"end"===i?H(Gn,{placeholder:"",value:h,items:r,disabled:d,onChange:e=>{f(e),g(e?.[0],!0)}}):null]})]})]})},Un=ie`
1399
+ `,Zn=({label:e,size:t="default",variant:n,disabled:r,icon:i,onClose:o,closable:a,...l})=>{let s=zn;return"info-grey"===n?s=An:"success"===n?s=Hn:"warning"===n?s=Bn:"error"===n&&(s=Fn),A(C.Root,{css:[In(t),s],"data-disabled":r,...l,children:[i?H(C.StartElement,{"aria-label":`${e} tag icon`,children:i}):null,H(C.Label,{"aria-label":e,children:e}),a&&!r&&"small"!==t?H(C.EndElement,{children:H("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:H(Oe,{})})}):null]})},qn=({placeholder:e,size:t,disabled:n})=>H(Sn,{placeholder:e,children:e=>{const{label:r,caption:i}=e[0];return A(u,{flexDirection:"column",alignItems:"flex-start",children:[H("p",{css:Nn(t,n),children:r}),i?H("p",{css:jn(t,n),children:i}):null]})}}),Gn=({placeholder:e,removeItem:t,disabled:n})=>H(Sn,{placeholder:e,children:e=>e.map((e=>H(u,{flexDirection:"row",alignItems:"flex-start",children:H(Zn,{label:e.label,variant:"info-grey",disabled:n,onClose:()=>t(e.value),closable:!0},e.value)},e.value)))}),Wn=({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]=G(p.defaultValue||[]),g=(e=>w({items:e}))(i),v=e=>{f(e),c&&c(e)},m=`${e||"Select input"}${l?" required.":""}${t?` ${t}.`:""}${s?" Disabled.":""}`.trim();return A(a,{css:Ln(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?H("div",{css:_n}):null,A(En,{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?A(On,{css:Tn(o),children:[l?H("span",{children:"*"}):null,e]}):null,t?H("p",{css:Rn(o,s),children:t}):null,d&&H("p",{css:Vn(o),children:d}),H(wn,{css:Pn(o,h.length>0,!!d,u),children:u?H(Gn,{placeholder:n,disabled:s,removeItem:e=>{const t=h.filter((t=>t!==e));v(t)}}):H(qn,{placeholder:n,size:o,disabled:s})}),H($n,{css:Dn,children:g.items.map((e=>A(kn,{css:Mn,item:e,children:[A(r,{children:[H("p",{css:Nn(o),children:e.label}),H("p",{css:jn(o),children:e.caption})]}),u?H(kt,{checked:h.some((t=>t===e.value))}):null]},e.value)))})]})]})},Un=({label:e,caption:t,errorMessage:n,units:r,unitsPosition:i="end",defaultUnit:o="",defaultValue:l="",onChange:s,required:c,disabled:d})=>{const[u,p]=G(l),[h,f]=G(o?[o]:[r[0].value]),g=(e,t)=>{s&&s("end"===i?""+(t?`${u} ${e}`:`${e} ${h}`):""+(t?`${e} ${u}`:`${h} ${e}`))};return A("div",{css:cn,children:[n?H("div",{css:pn}):null,A("div",{style:{marginLeft:n?"19px":"0px"},children:[A("p",{css:dn(d),"aria-label":e,children:[c?H("span",{children:"*"}):null,e]}),H("p",{css:un(d),"aria-label":t,children:t}),n?H("p",{css:hn,"aria-label":n,children:n}):null,A(a,{css:fn(!!n,i),attached:!0,children:["start"===i?H(Wn,{placeholder:"",value:h,items:r,disabled:d,onChange:e=>{f(e),g(e?.[0],!0)}}):null,H(Cn,{type:"number",value:u,disabled:d,onChange:e=>{p(e.target.value),g(e.target.value)}}),"end"===i?H(Wn,{placeholder:"",value:h,items:r,disabled:d,onChange:e=>{f(e),g(e?.[0],!0)}}):null]})]})]})},Xn=ie`
1396
1400
  width: 100%;
1397
1401
  max-width: 486px;
1398
- `,Xn=ie`
1402
+ `,Yn=ie`
1399
1403
  font-size: 16px;
1400
1404
  line-height: 24px;
1401
1405
  font-weight: 400;
@@ -1406,13 +1410,13 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1406
1410
  color: ${he("error",500)};
1407
1411
  margin-right: 3px;
1408
1412
  }
1409
- `,Yn=ie`
1413
+ `,Kn=ie`
1410
1414
  font-size: 14px;
1411
1415
  line-height: 20px;
1412
1416
  font-weight: 400;
1413
1417
  color: ${he("neutral",700)};
1414
1418
  text-align: left;
1415
- `,Kn=ie`
1419
+ `,Jn=ie`
1416
1420
  display: flex;
1417
1421
  align-items: center;
1418
1422
  justify-content: space-between;
@@ -1430,9 +1434,9 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1430
1434
  button {
1431
1435
  width: 98px;
1432
1436
  }
1433
- `,Jn=ie`
1437
+ `,Qn=ie`
1434
1438
  margin-top: 12px;
1435
- `,Qn=e=>ie`
1439
+ `,er=e=>ie`
1436
1440
  height: 8px;
1437
1441
  width: 100%;
1438
1442
  background-color: ${he("neutral",300)};
@@ -1446,7 +1450,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1446
1450
  background-color: ${he("Medium"===e?"warning":"Strong"===e||"Very Strong"===e?"success":"error",900)};
1447
1451
  border-radius: 8px;
1448
1452
  }
1449
- `,er=e=>ie`
1453
+ `,tr=e=>ie`
1450
1454
  display: flex;
1451
1455
  align-items: center;
1452
1456
  gap: 4px;
@@ -1463,7 +1467,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1463
1467
  justify-content: center;
1464
1468
  align-items: center;
1465
1469
  }
1466
- `,tr=({label:e,caption:t,required:n,disabledRules:r,onChange:i,minLength:o=8,hideValidations:a})=>{const[l,s]=G(!1),[c,d]=G(""),[u,p]=G({strength:"Very weak",length:!1,uppercase:!1,lowercase:!1,numbers:!1,specialCharacters:!1});return A("div",{css:Un,children:[A("p",{css:Xn,"aria-label":e,children:[n?H("span",{children:"*"}):null,e]}),H("p",{css:Yn,"aria-label":t,children:t}),A("div",{css:Kn,children:[H(yn,{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)}),H(be,{label:l?"Hide":"Show",variant:"secondary",leftIcon:H(l?_e:Le,{}),"aria-label":l?"Hide password":"Show password",onClick:()=>s(!l),type:"button"})]}),c&&!a?A("div",{id:"password-guidelines",css:Jn,"aria-live":"polite",children:[A("p",{css:(h=u.strength,ie`
1470
+ `,nr=({label:e,caption:t,required:n,disabledRules:r,onChange:i,minLength:o=8,hideValidations:a})=>{const[l,s]=G(!1),[c,d]=G(""),[u,p]=G({strength:"Very weak",length:!1,uppercase:!1,lowercase:!1,numbers:!1,specialCharacters:!1});return A("div",{css:Xn,children:[A("p",{css:Yn,"aria-label":e,children:[n?H("span",{children:"*"}):null,e]}),H("p",{css:Kn,"aria-label":t,children:t}),A("div",{css:Jn,children:[H(Cn,{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)}),H(be,{label:l?"Hide":"Show",variant:"secondary",leftIcon:H(l?_e:Le,{}),"aria-label":l?"Hide password":"Show password",onClick:()=>s(!l),type:"button"})]}),c&&!a?A("div",{id:"password-guidelines",css:Qn,"aria-live":"polite",children:[A("p",{css:(h=u.strength,ie`
1467
1471
  font-size: 16px;
1468
1472
  line-height: 24px;
1469
1473
  font-weight: 400;
@@ -1474,13 +1478,13 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1474
1478
  font-weight: 700;
1475
1479
  color: ${he("Medium"===h?"warning":"Strong"===h||"Very Strong"===h?"success":"error",900)};
1476
1480
  }
1477
- `),"aria-live":"polite",role:"status",children:["Password Strength: ",H("span",{children:u.strength})]}),H("div",{css:Qn(u.strength),children:H("div",{})}),A("div",{css:er(u.length),"aria-label":`Use a minimum of ${o} characters. ${u.length?"Requirement met.":"Requirement not met."}`,children:[H("div",{children:u.length?H(we,{color:"var(--chakra-colors-success-500)",height:"8px",width:"8px"}):H(Oe,{color:"var(--chakra-colors-error-900)",height:"8px",width:"8px"})}),A("p",{children:["Use a minimum of ",o," characters"]})]}),r?.uppercase?null:A("div",{css:er(u.uppercase),"aria-label":"Use an uppercase letter. "+(u.uppercase?"Requirement met.":"Requirement not met."),children:[H("div",{children:u.uppercase?H(we,{color:"var(--chakra-colors-success-500)",height:"8px",width:"8px"}):H(Oe,{color:"var(--chakra-colors-error-900)",height:"8px",width:"8px"})}),H("p",{children:"Use an uppercase letter"})]}),r?.lowercase?null:A("div",{css:er(u.lowercase),"aria-label":"Use a lowercase letter. "+(u.lowercase?"Requirement met.":"Requirement not met."),children:[H("div",{children:u.lowercase?H(we,{color:"var(--chakra-colors-success-500)",height:"8px",width:"8px"}):H(Oe,{color:"var(--chakra-colors-error-900)",height:"8px",width:"8px"})}),H("p",{children:"Use a lowercase letter"})]}),r?.numbers?null:A("div",{css:er(u.numbers),"aria-label":"Use a number. "+(u.numbers?"Requirement met.":"Requirement not met."),children:[H("div",{children:u.numbers?H(we,{color:"var(--chakra-colors-success-500)",height:"8px",width:"8px"}):H(Oe,{color:"var(--chakra-colors-error-900)",height:"8px",width:"8px"})}),H("p",{children:"Use a number"})]}),r?.specialCharacters?null:A("div",{css:er(u.specialCharacters),"aria-label":"Use a special character. "+(u.specialCharacters?"Requirement met.":"Requirement not met."),children:[H("div",{children:u.specialCharacters?H(we,{color:"var(--chakra-colors-success-500)",height:"8px",width:"8px"}):H(Oe,{color:"var(--chakra-colors-error-900)",height:"8px",width:"8px"})}),H("p",{children:"Use a special character"})]})]}):null]});var h},nr=ie`
1481
+ `),"aria-live":"polite",role:"status",children:["Password Strength: ",H("span",{children:u.strength})]}),H("div",{css:er(u.strength),children:H("div",{})}),A("div",{css:tr(u.length),"aria-label":`Use a minimum of ${o} characters. ${u.length?"Requirement met.":"Requirement not met."}`,children:[H("div",{children:u.length?H(we,{color:"var(--chakra-colors-success-500)",height:"8px",width:"8px"}):H(Oe,{color:"var(--chakra-colors-error-900)",height:"8px",width:"8px"})}),A("p",{children:["Use a minimum of ",o," characters"]})]}),r?.uppercase?null:A("div",{css:tr(u.uppercase),"aria-label":"Use an uppercase letter. "+(u.uppercase?"Requirement met.":"Requirement not met."),children:[H("div",{children:u.uppercase?H(we,{color:"var(--chakra-colors-success-500)",height:"8px",width:"8px"}):H(Oe,{color:"var(--chakra-colors-error-900)",height:"8px",width:"8px"})}),H("p",{children:"Use an uppercase letter"})]}),r?.lowercase?null:A("div",{css:tr(u.lowercase),"aria-label":"Use a lowercase letter. "+(u.lowercase?"Requirement met.":"Requirement not met."),children:[H("div",{children:u.lowercase?H(we,{color:"var(--chakra-colors-success-500)",height:"8px",width:"8px"}):H(Oe,{color:"var(--chakra-colors-error-900)",height:"8px",width:"8px"})}),H("p",{children:"Use a lowercase letter"})]}),r?.numbers?null:A("div",{css:tr(u.numbers),"aria-label":"Use a number. "+(u.numbers?"Requirement met.":"Requirement not met."),children:[H("div",{children:u.numbers?H(we,{color:"var(--chakra-colors-success-500)",height:"8px",width:"8px"}):H(Oe,{color:"var(--chakra-colors-error-900)",height:"8px",width:"8px"})}),H("p",{children:"Use a number"})]}),r?.specialCharacters?null:A("div",{css:tr(u.specialCharacters),"aria-label":"Use a special character. "+(u.specialCharacters?"Requirement met.":"Requirement not met."),children:[H("div",{children:u.specialCharacters?H(we,{color:"var(--chakra-colors-success-500)",height:"8px",width:"8px"}):H(Oe,{color:"var(--chakra-colors-error-900)",height:"8px",width:"8px"})}),H("p",{children:"Use a special character"})]})]}):null]});var h},rr=ie`
1478
1482
  position: relative;
1479
1483
  height: 100%;
1480
1484
  &:focus-visible {
1481
1485
  outline-color: ${he("primary",700)};
1482
1486
  }
1483
- `,rr=ie`
1487
+ `,ir=ie`
1484
1488
  font-size: 16px;
1485
1489
  line-height: 24px;
1486
1490
  color: ${he("neutral",900)};
@@ -1490,27 +1494,27 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1490
1494
  color: ${he("error",500)};
1491
1495
  margin-right: 3px;
1492
1496
  }
1493
- `,ir=ie`
1497
+ `,or=ie`
1494
1498
  font-size: 14px;
1495
1499
  line-height: 20px;
1496
1500
  color: ${he("neutral",700)};
1497
1501
  text-align: left;
1498
- `,or=ie`
1499
- margin-top: 12px;
1500
1502
  `,ar=ie`
1503
+ margin-top: 12px;
1504
+ `,lr=ie`
1501
1505
  width: 3px;
1502
1506
  height: 100%;
1503
1507
  background-color: ${he("error",900)};
1504
1508
  position: absolute;
1505
1509
  top: 0;
1506
1510
  left: 0;
1507
- `,lr=ie`
1511
+ `,sr=ie`
1508
1512
  font-size: 14px;
1509
1513
  line-height: 20px;
1510
1514
  font-weight: 700;
1511
1515
  color: ${he("error",900)};
1512
1516
  text-align: left;
1513
- `,sr=ie`
1517
+ `,cr=ie`
1514
1518
  height: 100%;
1515
1519
  min-height: 48px;
1516
1520
  width: 100%;
@@ -1519,9 +1523,9 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1519
1523
  border-radius: 4px;
1520
1524
  background-color: ${he("neutral",100)};
1521
1525
  padding: 12px;
1522
- `,cr=({label:e,caption:t,name:n,radios:r,defaultValue:i,onCheckedChange:o,errorMessage:l,horizontal:s,variant:c="default",required:d})=>{return A(a,{tabIndex:0,css:nr,"aria-roledescription":"group","aria-label":`${e}. ${t?`${t}.`:""} ${d?"Required.":"Optional."} ${l?`Error: ${l}.`:""} `,children:[l?H("div",{css:ar}):null,A("div",{css:(u=!!l,ie`
1526
+ `,dr=({label:e,caption:t,name:n,radios:r,defaultValue:i,onCheckedChange:o,errorMessage:l,horizontal:s,variant:c="default",required:d})=>{return A(a,{tabIndex:0,css:rr,"aria-roledescription":"group","aria-label":`${e}. ${t?`${t}.`:""} ${d?"Required.":"Optional."} ${l?`Error: ${l}.`:""} `,children:[l?H("div",{css:lr}):null,A("div",{css:(u=!!l,ie`
1523
1527
  margin-left: ${u?"19px":"0px"};
1524
- `),children:[A("p",{css:rr,"aria-label":e,children:[d&&H("span",{"aria-label":"required",children:"*"}),e]}),H("p",{css:ir,"aria-label":t,children:t}),l?H("p",{css:lr,"aria-label":l,children:l}):null,H("div",{css:or,children:H(Bt,{name:n,defaultValue:i,onChange:o,horizontal:s&&"card"!==c,children:r.map((e=>H(Ht,{css:"card"===c?sr:{},...e},e.value)))})})]})]});var u},dr=e=>ie`
1528
+ `),children:[A("p",{css:ir,"aria-label":e,children:[d&&H("span",{"aria-label":"required",children:"*"}),e]}),H("p",{css:or,"aria-label":t,children:t}),l?H("p",{css:sr,"aria-label":l,children:l}):null,H("div",{css:ar,children:H(Ft,{name:n,defaultValue:i,onChange:o,horizontal:s&&"card"!==c,children:r.map((e=>H(Bt,{css:"card"===c?cr:{},...e},e.value)))})})]})]});var u},ur=e=>ie`
1525
1529
  font-size: ${"small"===e?"14px":"16px"};
1526
1530
  line-height: ${"small"===e?"20px":"24px"};
1527
1531
  font-weight: 400;
@@ -1532,13 +1536,13 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1532
1536
  color: ${he("error",500)};
1533
1537
  margin-right: 3px;
1534
1538
  }
1535
- `,ur=e=>ie`
1539
+ `,pr=e=>ie`
1536
1540
  font-size: ${"small"===e?"12px":"14px"};
1537
1541
  line-height: ${"small"===e?"16px":"20px"};
1538
1542
  font-weight: 400;
1539
1543
  color: ${he("neutral",700)};
1540
1544
  text-align: left;
1541
- `,pr=ie`
1545
+ `,hr=ie`
1542
1546
  display: flex;
1543
1547
  align-items: center;
1544
1548
  gap: 12px;
@@ -1559,7 +1563,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1559
1563
  margin-top: 18px;
1560
1564
  width: 100%;
1561
1565
  }
1562
- `,hr=({label:e,caption:t,size:n="default",sliderItem:r,required:i,onChange:o})=>{const[a,l]=G(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 A("div",{children:[A("p",{css:dr(n),"aria-label":e,children:[i?H("span",{children:"*"}):null,e]}),t?H("p",{css:ur(n),"aria-label":t,children:t}):null,A("div",{css:pr,children:[r.step&&r.marks?H(Gn,{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)}}):H(yn,{"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()}),H(Kt,{css:{},...r,value:a,onValueChangeEnd:e=>{l(e.value),o&&o(e.value)}}),2===a?.length?H(yn,{"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]})]})},fr=e=>ie`
1566
+ `,fr=({label:e,caption:t,size:n="default",sliderItem:r,required:i,onChange:o})=>{const[a,l]=G(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 A("div",{children:[A("p",{css:ur(n),"aria-label":e,children:[i?H("span",{children:"*"}):null,e]}),t?H("p",{css:pr(n),"aria-label":t,children:t}):null,A("div",{css:hr,children:[r.step&&r.marks?H(Wn,{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)}}):H(Cn,{"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()}),H(Jt,{css:{},...r,value:a,onValueChangeEnd:e=>{l(e.value),o&&o(e.value)}}),2===a?.length?H(Cn,{"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]})]})},gr=e=>ie`
1563
1567
  position: relative;
1564
1568
  height: 100%;
1565
1569
  width: 100%;
@@ -1568,14 +1572,14 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1568
1572
  align-items: flex-start;
1569
1573
  gap: ${"small"===e?"12px":"16px"};
1570
1574
  margin-bottom: 16px;
1571
- `,gr=ie`
1575
+ `,vr=ie`
1572
1576
  width: 3px;
1573
1577
  height: 100%;
1574
1578
  background-color: ${he("error",900)};
1575
1579
  position: absolute;
1576
1580
  top: 0;
1577
1581
  left: 0;
1578
- `,vr=(e,t)=>ie`
1582
+ `,mr=(e,t)=>ie`
1579
1583
  color: ${he("neutral",t?600:900)};
1580
1584
  font-size: ${"small"===e?"14px":"16px"};
1581
1585
  font-weight: 400;
@@ -1589,24 +1593,24 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1589
1593
  .chakra-field__requiredIndicator {
1590
1594
  color: ${t?he("neutral",600):he("error",500)};
1591
1595
  }
1592
- `,mr=(e,t)=>ie`
1596
+ `,xr=(e,t)=>ie`
1593
1597
  color: ${he("neutral",t?600:700)};
1594
1598
  font-size: ${"small"===e?"12px":"14px"};
1595
1599
  font-weight: 400;
1596
1600
  line-height: ${"small"===e?"16px":"20px"};
1597
- `,xr=ie`
1601
+ `,br=ie`
1598
1602
  color: ${he("neutral",600)};
1599
1603
  font-size: 12px;
1600
1604
  font-weight: 400;
1601
1605
  line-height: 16px;
1602
1606
  margin-top: 8px;
1603
- `,br=ie`
1607
+ `,yr=ie`
1604
1608
  color: ${he("error",900)};
1605
1609
  font-size: 14px;
1606
1610
  font-weight: 700;
1607
1611
  line-height: 20px;
1608
1612
  margin-top: 2px;
1609
- `,yr=(e,t,n)=>ie`
1613
+ `,Cr=(e,t,n)=>ie`
1610
1614
  height: 104px;
1611
1615
  width: 100%;
1612
1616
  border-radius: 4px;
@@ -1643,7 +1647,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1643
1647
  }
1644
1648
 
1645
1649
  ${t||n?`\n border: 1px solid ${he("neutral",700)};\n `:""}
1646
- `,Cr=({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]=G(l),[f,g]=G(!1),[v,m]=G(!1),[b,y]=G(""),C=U(),w=U(),k=U();W((()=>{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,b?k:null].filter(Boolean).join(" ")||void 0;return A("div",{css:fr(a),children:[S?H("div",{css:gr}):null,A(x.Root,{required:i,invalid:S,gap:"0",style:{marginLeft:S?"19px":"0px"},children:[e?A(x.Label,{css:vr(a,o),"aria-label":e,children:[H(x.RequiredIndicator,{"aria-label":"required"}),e,i?"":H("span",{children:" (Optional)"})]}):null,t?H(x.HelperText,{id:C,css:mr(a,o),children:t}):null,r?H(x.ErrorText,{id:w,css:br,"aria-label":`Error: ${r}`,"aria-live":"polite",children:r}):null,H($,{placeholder:n,disabled:o,css:yr(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?A(x.ErrorText,{id:w,css:br,style:{marginTop:"8px",fontSize:"12px",lineHeight:"16px"},"aria-live":"polite",children:["You need ",c-p.length," more characters"]}):null,v&&d?A(x.ErrorText,{id:w,css:br,style:{marginTop:"8px",fontSize:"12px",lineHeight:"16px"},"aria-live":"polite",children:["You have ",p.length-d," characters too many"]}):null,!b||v||f?null:H(x.HelperText,{id:k,css:xr,"aria-live":"polite",children:b})]})]})},wr=(e,t)=>ie`
1650
+ `,wr=({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]=G(l),[f,g]=G(!1),[v,m]=G(!1),[b,y]=G(""),C=U(),w=U(),k=U();W((()=>{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,b?k:null].filter(Boolean).join(" ")||void 0;return A("div",{css:gr(a),children:[S?H("div",{css:vr}):null,A(x.Root,{required:i,invalid:S,gap:"0",style:{marginLeft:S?"19px":"0px"},children:[e?A(x.Label,{css:mr(a,o),"aria-label":e,children:[H(x.RequiredIndicator,{"aria-label":"required"}),e,i?"":H("span",{children:" (Optional)"})]}):null,t?H(x.HelperText,{id:C,css:xr(a,o),children:t}):null,r?H(x.ErrorText,{id:w,css:yr,"aria-label":`Error: ${r}`,"aria-live":"polite",children:r}):null,H($,{placeholder:n,disabled:o,css:Cr(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?A(x.ErrorText,{id:w,css:yr,style:{marginTop:"8px",fontSize:"12px",lineHeight:"16px"},"aria-live":"polite",children:["You need ",c-p.length," more characters"]}):null,v&&d?A(x.ErrorText,{id:w,css:yr,style:{marginTop:"8px",fontSize:"12px",lineHeight:"16px"},"aria-live":"polite",children:["You have ",p.length-d," characters too many"]}):null,!b||v||f?null:H(x.HelperText,{id:k,css:br,"aria-live":"polite",children:b})]})]})},$r=(e,t)=>ie`
1647
1651
  height: ${e};
1648
1652
  width: ${t};
1649
1653
  border: 1px solid ${he("neutral",300)};
@@ -1657,7 +1661,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1657
1661
  height: 100%;
1658
1662
  overflow-y: scroll;
1659
1663
  }
1660
- `,$r=ie`
1664
+ `,kr=ie`
1661
1665
  padding: 16px 12px;
1662
1666
  border-bottom: 1px solid ${he("neutral",300)};
1663
1667
 
@@ -1676,16 +1680,16 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1676
1680
  color: ${he("neutral",700)};
1677
1681
  text-align: left;
1678
1682
  }
1679
- `,kr=ie``,Sr=ie`
1683
+ `,Sr=ie``,Er=ie`
1680
1684
  display: flex;
1681
1685
  flex-direction: column;
1682
1686
  gap: 12px;
1683
1687
  padding: 12px;
1684
1688
  border-bottom: 1px solid ${he("neutral",300)};
1685
- `,Er=ie`
1689
+ `,Or=ie`
1686
1690
  padding-top: 12px;
1687
1691
  padding-left: 8px;
1688
- `,Or=ie``,Lr=e=>ie`
1692
+ `,Lr=ie``,_r=e=>ie`
1689
1693
  display: flex;
1690
1694
  gap: 12px;
1691
1695
  padding: 12px 8px;
@@ -1709,7 +1713,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1709
1713
  background-color: ${he("primary",100)};
1710
1714
  width: 99.8%;
1711
1715
  }
1712
- `,_r=ie`
1716
+ `,Tr=ie`
1713
1717
  width: 100%;
1714
1718
  max-width: calc(100% - 44px);
1715
1719
 
@@ -1740,7 +1744,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1740
1744
  .ds-base-map-children {
1741
1745
  margin-top: 10px;
1742
1746
  }
1743
- `,Tr=({title:e,caption:t,additionalSettings:n,options:r,onOptionSelected:i,maxHeight:o="400px",maxWidth:a="260px"})=>H("div",{css:wr(o,a),children:A("div",{className:"ds-base-map-scroll-content",children:[A("div",{css:$r,children:[H("p",{className:"ds-base-map-header-title",children:e}),H("p",{className:"ds-base-map-header-caption",children:t})]}),A("div",{css:kr,children:[n?H("div",{css:Sr,children:n.map((e=>A("div",{children:[H(kt,{css:{},checked:e.checked,onCheckedChange:({checked:t})=>e.onCheckedChange({checked:Boolean(t)}),children:e.label}),e.checked&&e.children?H("div",{css:Er,children:e.children}):null]},e.label)))}):null,r?H("div",{css:Or,children:r.map((e=>{return A("div",{css:Lr(e.active),role:"button",onClick:()=>i?.(e),tabIndex:0,onKeyDown:t=>{"Enter"===t.key&&i?.(e)},children:[H("div",{css:(t=e.imageUrl,ie`
1747
+ `,Rr=({title:e,caption:t,additionalSettings:n,options:r,onOptionSelected:i,maxHeight:o="400px",maxWidth:a="260px"})=>H("div",{css:$r(o,a),children:A("div",{className:"ds-base-map-scroll-content",children:[A("div",{css:kr,children:[H("h2",{className:"ds-base-map-header-title",children:e}),H("p",{className:"ds-base-map-header-caption",children:t})]}),A("div",{css:Sr,children:[n?H("div",{css:Er,children:n.map((e=>A("div",{children:[H(kt,{css:{},checked:e.checked,onCheckedChange:({checked:t})=>e.onCheckedChange({checked:Boolean(t)}),children:e.label}),e.checked&&e.children?H("div",{css:Or,children:e.children}):null]},e.label)))}):null,r?H("div",{css:Lr,children:r.map((e=>{return A("div",{css:_r(e.active),role:"button",onClick:()=>i?.(e),tabIndex:0,onKeyDown:t=>{"Enter"===t.key&&i?.(e)},children:[H("div",{css:(t=e.imageUrl,ie`
1744
1748
  height: 32px;
1745
1749
  width: 32px;
1746
1750
  border: 1px solid ${he("neutral",300)};
@@ -1748,7 +1752,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1748
1752
  background-image: url(${t});
1749
1753
  background-size: cover;
1750
1754
  background-position: center;
1751
- `)}),A("div",{css:_r,children:[A("div",{className:"ds-base-map-title-container",children:[H("p",{className:"ds-base-map-title",children:e.label}),e.active?H(Fn,{label:"Active",variant:"warning",size:"small",icon:H(we,{})}):null]}),H("p",{className:"ds-base-map-caption",children:e.caption}),e.active&&e.children?H("div",{className:"ds-base-map-children",children:e.children}):null]})]},e.label);var t}))}):null]})]})}),Rr=(e,t)=>ie`
1755
+ `)}),A("div",{css:Tr,children:[A("div",{className:"ds-base-map-title-container",children:[H("p",{className:"ds-base-map-title",children:e.label}),e.active?H(Zn,{label:"Active",variant:"warning",size:"small",icon:H(we,{})}):null]}),H("p",{className:"ds-base-map-caption",children:e.caption}),e.active&&e.children?H("div",{className:"ds-base-map-children",children:e.children}):null]})]},e.label);var t}))}):null]})]})}),Pr=(e,t)=>ie`
1752
1756
  height: 28px;
1753
1757
  width: 28px;
1754
1758
  background-color: ${e||he("success",300)};
@@ -1773,14 +1777,14 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1773
1777
  height: 14px;
1774
1778
  width: 14px;
1775
1779
  }
1776
- `,Pr=({ariaLabel:e,icon:t,backgroundColor:n,onClick:r})=>H("div",{css:Rr(n,!!r),"aria-label":e,role:"button",tabIndex:0,onClick:r,onKeyDown:r,children:t}),Dr={Paper:({ariaLabel:e,onClick:t})=>oe(Pr,{ariaLabel:e||"paper icon",icon:oe(Ze,{color:"#79022C"}),backgroundColor:"#FFBCD4",onClick:t}),Drop:({ariaLabel:e,onClick:t})=>oe(Pr,{ariaLabel:e||"drop icon",icon:oe(qe,{color:"#7D2A03"}),backgroundColor:"#F3A078",onClick:t}),Plant:({ariaLabel:e,onClick:t})=>oe(Pr,{ariaLabel:e||"plant icon",icon:oe(Ge,{color:"#3B6402"}),backgroundColor:"#B7E578",onClick:t})},Mr=ie`
1780
+ `,Dr=({ariaLabel:e,icon:t,backgroundColor:n,onClick:r})=>H("div",{css:Pr(n,!!r),"aria-label":e,role:"button",tabIndex:0,onClick:r,onKeyDown:r,children:t}),Mr={Paper:({ariaLabel:e,onClick:t})=>oe(Dr,{ariaLabel:e||"paper icon",icon:oe(Ze,{color:"#79022C"}),backgroundColor:"#FFBCD4",onClick:t}),Drop:({ariaLabel:e,onClick:t})=>oe(Dr,{ariaLabel:e||"drop icon",icon:oe(qe,{color:"#7D2A03"}),backgroundColor:"#F3A078",onClick:t}),Plant:({ariaLabel:e,onClick:t})=>oe(Dr,{ariaLabel:e||"plant icon",icon:oe(Ge,{color:"#3B6402"}),backgroundColor:"#B7E578",onClick:t})},Nr=ie`
1777
1781
  background-color: ${he("neutral",100)};
1778
- `,Nr=ie`
1782
+ `,jr=ie`
1779
1783
  padding: 16px 16px 0px 16px;
1780
1784
  &:focus-visible {
1781
1785
  outline-color: ${he("primary",700)};
1782
1786
  }
1783
- `,jr=ie`
1787
+ `,Vr=ie`
1784
1788
  font-size: 16px;
1785
1789
  font-weight: 700;
1786
1790
  line-height: 24px;
@@ -1790,14 +1794,14 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1790
1794
  align-items: center;
1791
1795
  text-align: left;
1792
1796
  gap: 10px;
1793
- `,Vr=ie`
1797
+ `,Ir=ie`
1794
1798
  font-size: 12px;
1795
1799
  font-weight: 400;
1796
1800
  line-height: 16px;
1797
1801
  text-align: left;
1798
1802
  color: ${he("neutral",700)};
1799
1803
  margin-bottom: 8px;
1800
- `,Ir=ie`
1804
+ `,zr=ie`
1801
1805
  width: 100%;
1802
1806
  padding: 16px 0;
1803
1807
  border-bottom: 1px solid ${he("neutral",300)};
@@ -1805,31 +1809,31 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1805
1809
  &:last-of-type {
1806
1810
  border-bottom: none;
1807
1811
  }
1808
- `,zr=ie`
1812
+ `,Ar=ie`
1809
1813
  display: flex;
1810
1814
  align-items: flex-start;
1811
1815
  justify-content: space-between;
1812
- `,Ar=ie`
1816
+ `,Hr=ie`
1813
1817
  display: flex;
1814
1818
  flex-direction: column;
1815
- `,Hr=e=>ie`
1819
+ `,Br=e=>ie`
1816
1820
  font-size: 16px;
1817
1821
  font-weight: 400;
1818
1822
  line-height: 24px;
1819
1823
  text-align: left;
1820
1824
  color: ${he("neutral",e?500:800)};
1821
- `,Br=e=>ie`
1825
+ `,Fr=e=>ie`
1822
1826
  font-size: 14px;
1823
1827
  font-weight: 400;
1824
1828
  line-height: 20px;
1825
1829
  text-align: left;
1826
1830
  color: ${he("neutral",e?500:700)};
1827
- `,Fr=({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 A("div",{css:Ir,children:[A("div",u?{css:zr,children:[A("div",{css:Ar,children:[H("p",{css:Hr(l),"aria-label":t,"aria-disabled":l,children:t}),H("p",{"aria-label":n,css:Br(l),children:n})]}),H(Qt,{"aria-label":`${t}, ${n}`,name:e,disabled:l,defaultChecked:c,onChange:d,role:"switch"})]}:{style:{display:"flex",flexDirection:"column"},children:[H(Ht,{value:e,disabled:l,fontSize:"16px",color:"var(--chakra-colors-neutral-800)",children:t}),H("p",{style:{marginLeft:"28px"},css:Br(l),children:n})]}),i?H(r,{display:"flex",justifyContent:"flex-start",marginTop:"8px",marginLeft:u?0:"28px",children:H(be,{variant:"secondary",label:o,rightIcon:H(ke,{}),size:"small",onClick:s,disabled:l})}):null]})},Zr=({label:e,caption:t,value:n,layerItems:i,onChangeForRadioVariant:o})=>{const[a,l]=G({}),[s]=G((e=>{const t=e.find((e=>"radio"===e.variant&&e.isDefaultSelected));return t?.name})(i));W((()=>{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 A(k.Item,{value:n,width:"100%",children:[A(k.ItemTrigger,{css:Nr,alignItems:"flex-start","aria-label":u,children:[A(r,{width:"full",display:"flex",flexDirection:"column",alignItems:"flex-start",children:[A("span",{css:jr,children:[e,H(Fn,{label:`${d} Active`,size:"small",variant:d>0?"success":"info-grey"})]}),H("div",{css:Vr,children:t})]}),H(k.ItemIndicator,{display:"flex",children:H(Se,{color:"var(--chakra-colors-neutral-700)",height:"16px",width:"16px"})})]}),H(k.ItemContent,{paddingLeft:"16px",paddingRight:"16px",children:H(Bt,{name:e,defaultValue:s,customGap:"0px",onChange:(e,t)=>c(e,!!t,o,t),children:i.map((e=>H(Fr,{...e,onChange:(t,n)=>c(t,n,e.onChange)},e.label)))})})]})},qr=({children:e,defaultValue:t,...n})=>H("div",{css:Mr,style:{width:"100%"},children:H(k.Root,{css:{},defaultValue:t,multiple:!0,...n,children:e})}),Gr=ie`
1831
+ `,Zr=({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 A("div",{css:zr,children:[A("div",u?{css:Ar,children:[A("div",{css:Hr,children:[H("p",{css:Br(l),"aria-label":t,"aria-disabled":l,children:t}),H("p",{"aria-label":n,css:Fr(l),children:n})]}),H(en,{"aria-label":`${t}, ${n}`,name:e,disabled:l,defaultChecked:c,onChange:d,role:"switch"})]}:{style:{display:"flex",flexDirection:"column"},children:[H(Bt,{value:e,disabled:l,fontSize:"16px",color:"var(--chakra-colors-neutral-800)",children:t}),H("p",{style:{marginLeft:"28px"},css:Fr(l),children:n})]}),i?H(r,{display:"flex",justifyContent:"flex-start",marginTop:"8px",marginLeft:u?0:"28px",children:H(be,{variant:"secondary",label:o,rightIcon:H(ke,{}),size:"small",onClick:s,disabled:l})}):null]})},qr=({label:e,caption:t,value:n,layerItems:i,onChangeForRadioVariant:o})=>{const[a,l]=G({}),[s]=G((e=>{const t=e.find((e=>"radio"===e.variant&&e.isDefaultSelected));return t?.name})(i));W((()=>{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 A(k.Item,{value:n,width:"100%",children:[A(k.ItemTrigger,{css:jr,alignItems:"flex-start","aria-label":u,children:[A(r,{width:"full",display:"flex",flexDirection:"column",alignItems:"flex-start",children:[A("span",{css:Vr,children:[e,H(Zn,{label:`${d} Active`,size:"small",variant:d>0?"success":"info-grey"})]}),H("div",{css:Ir,children:t})]}),H(k.ItemIndicator,{display:"flex",children:H(Se,{color:"var(--chakra-colors-neutral-700)",height:"16px",width:"16px"})})]}),H(k.ItemContent,{paddingLeft:"16px",paddingRight:"16px",children:H(Ft,{name:e,defaultValue:s,customGap:"0px",onChange:(e,t)=>c(e,!!t,o,t),children:i.map((e=>H(Zr,{...e,onChange:(t,n)=>c(t,n,e.onChange)},e.label)))})})]})},Gr=({children:e,defaultValue:t,...n})=>H("div",{css:Nr,style:{width:"100%"},children:H(k.Root,{css:{},defaultValue:t,multiple:!0,...n,children:e})}),Wr=ie`
1828
1832
  margin-bottom: 16px;
1829
1833
  border: 1px solid ${he("neutral",300)};
1830
1834
  border-radius: 4px;
1831
1835
  box-shadow: 0px 1px 2px 0px #0000000d;
1832
- `,Wr=ie`
1836
+ `,Ur=ie`
1833
1837
  padding: 6px 8px;
1834
1838
  align-items: center;
1835
1839
  background-color: ${he("neutral",100)};
@@ -1845,12 +1849,12 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1845
1849
  height: 10px;
1846
1850
  width: 10px;
1847
1851
  }
1848
- `,Ur=ie`
1852
+ `,Xr=ie`
1849
1853
  font-size: 12px;
1850
1854
  font-weight: 700;
1851
1855
  line-height: 16px;
1852
1856
  color: ${he("neutral",800)};
1853
- `,Xr=ie`
1857
+ `,Yr=ie`
1854
1858
  padding: 12px 8px;
1855
1859
  display: flex;
1856
1860
  flex-direction: column;
@@ -1866,13 +1870,13 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1866
1870
  margin-bottom: 0px;
1867
1871
  }
1868
1872
  }
1869
- `,Yr=({label:e,children:t,openedByDefault:n})=>H("div",{children:H(k.Root,{defaultValue:n?[e]:[],multiple:!0,children:A(k.Item,{css:Gr,value:e,children:[A(k.ItemTrigger,{css:Wr,children:[H(r,{width:"full",display:"flex",flexDirection:"column",alignItems:"flex-start",children:H("p",{css:Ur,children:e})}),H(k.ItemIndicator,{display:"flex",children:H(Se,{color:"var(--chakra-colors-neutral-700)",height:"16px",width:"16px"})})]}),H(k.ItemContent,{css:Xr,children:X.map(t,(e=>H("div",{className:"ds-layer-parameters-item-child",children:e})))})]})})}),Kr=ie`
1873
+ `,Kr=({label:e,children:t,openedByDefault:n})=>H("div",{children:H(k.Root,{defaultValue:n?[e]:[],multiple:!0,children:A(k.Item,{css:Wr,value:e,children:[A(k.ItemTrigger,{css:Ur,children:[H(r,{width:"full",display:"flex",flexDirection:"column",alignItems:"flex-start",children:H("p",{css:Xr,children:e})}),H(k.ItemIndicator,{display:"flex",children:H(Se,{color:"var(--chakra-colors-neutral-700)",height:"16px",width:"16px"})})]}),H(k.ItemContent,{css:Yr,children:X.map(t,(e=>H("div",{className:"ds-layer-parameters-item-child",children:e})))})]})})}),Jr=ie`
1870
1874
  padding: 12px;
1871
1875
  padding-bottom: 20px;
1872
1876
  display: flex;
1873
1877
  gap: 12px;
1874
1878
  border-bottom: 1px solid ${he("neutral",300)};
1875
- `,Jr=ie`
1879
+ `,Qr=ie`
1876
1880
  display: flex;
1877
1881
  flex-direction: column;
1878
1882
 
@@ -1881,44 +1885,44 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1881
1885
  fill: ${he("neutral",700)} !important;
1882
1886
  }
1883
1887
  }
1884
- `,Qr=ie`
1888
+ `,ei=ie`
1885
1889
  display: flex;
1886
1890
  align-items: flex-start;
1887
1891
  justify-content: space-between;
1888
1892
  gap: 12px;
1889
1893
  margin-bottom: 16px;
1890
- `,ei=ie`
1894
+ `,ti=ie`
1891
1895
  font-size: 16px;
1892
1896
  line-height: 24px;
1893
1897
  font-weight: 400;
1894
1898
  text-align: left;
1895
1899
  color: ${he("neutral",900)};
1896
- `,ti=ie`
1900
+ `,ni=ie`
1897
1901
  font-size: 14px;
1898
1902
  line-height: 20px;
1899
1903
  font-weight: 400;
1900
1904
  text-align: left;
1901
1905
  color: ${he("neutral",700)};
1902
- `,ni=ie`
1906
+ `,ri=ie`
1903
1907
  display: flex;
1904
1908
  justify-content: space-between;
1905
1909
 
1906
1910
  button {
1907
1911
  width: 46%;
1908
1912
  }
1909
- `,ri=ie`
1913
+ `,ii=ie`
1910
1914
  width: 234px;
1911
1915
  border: 1px solid ${he("neutral",600)};
1912
1916
  border-radius: 4px;
1913
- `,ii=ie`
1914
- padding: 12px;
1915
1917
  `,oi=ie`
1918
+ padding: 12px;
1919
+ `,ai=ie`
1916
1920
  font-size: 14px;
1917
1921
  line-height: 20px;
1918
1922
  font-weight: 400;
1919
1923
  text-align: left;
1920
1924
  color: ${he("neutral",900)};
1921
- `,ai=ie`
1925
+ `,li=ie`
1922
1926
  display: flex;
1923
1927
  align-items: center;
1924
1928
  gap: 12px;
@@ -1939,20 +1943,20 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1939
1943
  margin-top: 18px;
1940
1944
  width: 100%;
1941
1945
  }
1942
- `,li=({defaultValue:e,onOpacityChanged:t})=>{const[n,r]=G(e);return A(S.Root,{positioning:{placement:"bottom-end"},children:[H(S.Trigger,{asChild:!0,children:H(be,{label:"Opacity",size:"small",variant:"secondary",leftIcon:H(ke,{})})}),H(S.Positioner,{children:H(S.Content,{css:ri,children:A(S.Body,{css:ii,children:[H("p",{css:oi,children:"Opacity"}),A("div",{css:ai,children:[A("div",{style:{position:"relative"},children:[H(yn,{"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()}),H("p",{style:{position:"absolute",top:"18.5px",right:"5px"},children:"%"})]}),H(Kt,{min:0,max:100,value:[n],onValueChangeEnd:({value:e})=>{r(e[0]),t&&t(e[0])}})]})]})})})]})},si=({layerName:e,dataUnit:t,onDrag:n,onUpClick:r,onDownClick:i,onRemoveClick:o,children:a,onInfoClick:l,onOpacityChanged:s})=>A("div",{css:Kr,children:[A("div",{css:Jr,children:[H(tt,{icon:H(Te,{}),"aria-label":"Drag and drop","aria-hidden":!0,onClick:n,style:{display:"none",marginBottom:"12px"}}),A("div",{style:{display:"flex",flexDirection:"column",gap:"12px"},children:[H(tt,{icon:H(Se,{rotate:"180"}),"aria-label":"Up",onClick:r}),H(tt,{icon:H(Se,{}),"aria-label":"Down",onClick:i})]})]}),A("div",{style:{width:"100%"},children:[A("div",{css:Qr,children:[A("div",{children:[H("h3",{css:ei,children:e}),H("p",{css:ti,children:t})]}),H(be,{label:"Remove",size:"small",variant:"secondary",rightIcon:H(Oe,{}),onClick:o})]}),a,A("div",{css:ni,children:[H(be,{label:"About data",size:"small",variant:"secondary",leftIcon:H(ke,{}),onClick:l}),H(li,{defaultValue:80,onOpacityChanged:s})]})]})]}),ci=e=>ie`
1946
+ `,si=({defaultValue:e,onOpacityChanged:t})=>{const[n,r]=G(e);return A(S.Root,{positioning:{placement:"bottom-end"},children:[H(S.Trigger,{asChild:!0,children:H(be,{label:"Opacity",size:"small",variant:"secondary",leftIcon:H(ke,{})})}),H(S.Positioner,{children:H(S.Content,{css:ii,children:A(S.Body,{css:oi,children:[H("p",{css:ai,children:"Opacity"}),A("div",{css:li,children:[A("div",{style:{position:"relative"},children:[H(Cn,{"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()}),H("p",{style:{position:"absolute",top:"18.5px",right:"5px"},children:"%"})]}),H(Jt,{min:0,max:100,value:[n],onValueChangeEnd:({value:e})=>{r(e[0]),t&&t(e[0])}})]})]})})})]})},ci=({layerName:e,dataUnit:t,onDrag:n,onUpClick:r,onDownClick:i,onRemoveClick:o,children:a,onInfoClick:l,onOpacityChanged:s})=>A("div",{css:Jr,children:[A("div",{css:Qr,children:[H(tt,{icon:H(Te,{}),"aria-label":"Drag and drop","aria-hidden":!0,onClick:n,style:{display:"none",marginBottom:"12px"}}),A("div",{style:{display:"flex",flexDirection:"column",gap:"12px"},children:[H(tt,{icon:H(Se,{rotate:"180"}),"aria-label":"Up",onClick:r}),H(tt,{icon:H(Se,{}),"aria-label":"Down",onClick:i})]})]}),A("div",{style:{width:"100%"},children:[A("div",{css:ei,children:[A("div",{children:[H("h3",{css:ti,children:e}),H("p",{css:ni,children:t})]}),H(be,{label:"Remove",size:"small",variant:"secondary",rightIcon:H(Oe,{}),onClick:o})]}),a,A("div",{css:ri,children:[H(be,{label:"About data",size:"small",variant:"secondary",leftIcon:H(ke,{}),onClick:l}),H(si,{defaultValue:80,onOpacityChanged:s})]})]})]}),di=e=>ie`
1943
1947
  width: 20px;
1944
1948
  height: 20px;
1945
1949
  border-radius: 50%;
1946
1950
  background-color: ${e};
1947
1951
  border: 1px solid ${he("neutral",400)};
1948
- `,di=e=>ie`
1952
+ `,ui=e=>ie`
1949
1953
  width: 20px;
1950
1954
  height: 8px;
1951
1955
  border-radius: 2px;
1952
1956
  background-color: ${e};
1953
1957
  border: 1px solid ${he("neutral",400)};
1954
1958
  margin-top: 6px;
1955
- `,ui=e=>ie`
1959
+ `,pi=e=>ie`
1956
1960
  width: 20px;
1957
1961
  height: 20px;
1958
1962
  border-radius: 50%;
@@ -1965,26 +1969,26 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1965
1969
  width: 10px;
1966
1970
  height: 10px;
1967
1971
  }
1968
- `,pi=ie`
1972
+ `,hi=ie`
1969
1973
  width: 100%;
1970
1974
  display: flex;
1971
1975
  justify-content: space-between;
1972
1976
  gap: 8px;
1973
1977
  margin-bottom: 16px;
1974
- `,hi=ie`
1978
+ `,fi=ie`
1975
1979
  display: flex;
1976
1980
  gap: 8px;
1977
- `,fi=ie`
1981
+ `,gi=ie`
1978
1982
  font-size: 14px;
1979
1983
  line-height: 20px;
1980
1984
  font-weight: 400;
1981
1985
  color: ${he("neutral",800)};
1982
- `,gi=ie`
1986
+ `,vi=ie`
1983
1987
  font-size: 12px;
1984
1988
  line-height: 16px;
1985
1989
  font-weight: 400;
1986
1990
  color: ${he("neutral",700)};
1987
- `,vi=ie`
1991
+ `,mi=ie`
1988
1992
  button {
1989
1993
  height: 25px;
1990
1994
  font-size: 12px;
@@ -1993,12 +1997,12 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
1993
1997
  color: ${he("neutral",600)};
1994
1998
  padding: 0 10px;
1995
1999
  }
1996
- `,mi=({type:e,label:t,caption:n,color:r,onActionClick:i,showActionButton:o,pointIcon:a=H(Fe,{color:"#006D2C"})})=>{const[l,s]=G(!0),c=U(),d=U(),u="line"===e,p="point"===e,h=l?"Hide":"Show",f=n?`${c} ${d}`:c;return A("div",{css:pi,children:[A("div",{css:hi,children:[A("div",{children:["raster"===e&&H("div",{css:ci(r)}),u&&H("div",{css:di(r)}),p&&H("div",{css:ui(r),children:a})]}),A("div",{children:[H("p",{id:c,css:fi,children:t}),n?H("p",{id:d,css:gi,children:n}):null]})]}),i&&o?H("div",{css:vi,children:H(be,{type:"button",variant:"borderless",label:h,rightIcon:H(l?_e:Le,{}),"aria-pressed":l,"aria-describedby":f,"aria-label":`${h} ${t}`,onClick:()=>{s((e=>!e)),i?.()}})}):null]})},xi=ie`
2000
+ `,xi=({type:e,label:t,caption:n,color:r,onActionClick:i,showActionButton:o,pointIcon:a=H(Fe,{color:"#006D2C"})})=>{const[l,s]=G(!0),c=U(),d=U(),u="line"===e,p="point"===e,h=l?"Hide":"Show",f=n?`${c} ${d}`:c;return A("div",{css:hi,children:[A("div",{css:fi,children:[A("div",{children:["raster"===e&&H("div",{css:di(r)}),u&&H("div",{css:ui(r)}),p&&H("div",{css:pi(r),children:a})]}),A("div",{children:[H("p",{id:c,css:gi,children:t}),n?H("p",{id:d,css:vi,children:n}):null]})]}),i&&o?H("div",{css:mi,children:H(be,{type:"button",variant:"borderless",label:h,rightIcon:H(l?_e:Le,{}),"aria-pressed":l,"aria-describedby":f,"aria-label":`${h} ${t}`,onClick:()=>{s((e=>!e)),i?.()}})}):null]})},bi=ie`
1997
2001
  width: 100%;
1998
2002
  display: flex;
1999
2003
  flex-direction: column;
2000
2004
  margin-bottom: 16px;
2001
- `,bi=ie`
2005
+ `,yi=ie`
2002
2006
  height: 20px;
2003
2007
  width: 100%;
2004
2008
  margin-bottom: 8px;
@@ -2016,34 +2020,34 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
2016
2020
  border-top-right-radius: 3px;
2017
2021
  border-bottom-right-radius: 3px;
2018
2022
  }
2019
- `,yi=ie`
2023
+ `,Ci=ie`
2020
2024
  display: flex;
2021
2025
  justify-content: space-between;
2022
2026
  align-items: flex-start;
2023
- `,Ci=ie`
2027
+ `,wi=ie`
2024
2028
  width: 100%;
2025
2029
  font-size: 12px;
2026
2030
  line-height: 16px;
2027
2031
  font-weight: 400;
2028
2032
  color: ${he("neutral",800)};
2029
2033
  text-align: center;
2030
- `,wi=ie`
2034
+ `,$i=ie`
2031
2035
  font-size: 12px;
2032
2036
  line-height: 16px;
2033
2037
  font-weight: 400;
2034
2038
  color: ${he("neutral",700)};
2035
2039
  text-align: center;
2036
- `,$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(", ")})`},ki=({colors:e,values:t,subLabels:n,isGradient:r})=>{return A("div",{css:xi,children:[H("div",r?{css:(i=$i(e),ie`
2040
+ `,ki=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(", ")})`},Si=({colors:e,values:t,subLabels:n,isGradient:r})=>{return A("div",{css:bi,children:[H("div",r?{css:(i=ki(e),ie`
2037
2041
  height: 20px;
2038
2042
  width: 100%;
2039
2043
  margin-bottom: 8px;
2040
2044
  border: 1px solid ${he("neutral",300)};
2041
2045
  border-radius: 4px;
2042
2046
  ${i?`background: ${i};`:""}
2043
- `)}:{css:bi,children:e?.map(((e,n)=>H("div",{"data-test":`${e}-${t?.[n]}`,style:{backgroundColor:e,width:"100%",height:"100%"}},`${e}-${t?.[n]}`)))}),H("div",{css:yi,children:t?.map((e=>H("div",{style:{width:r?"auto":`calc(100% / ${t.length})`,display:"flex",justifyContent:"center"},children:H("p",{css:Ci,children:e})},e)))}),n&&n.length?H("div",{css:yi,children:n.map((e=>H("div",{style:{width:r?"auto":`calc(100% / ${t.length})`,display:"flex",justifyContent:"center"},children:H("p",{css:wi,style:{width:"100%"},children:e})},e)))}):null]});var i},Si=ie`
2047
+ `)}:{css:yi,children:e?.map(((e,n)=>H("div",{"data-test":`${e}-${t?.[n]}`,style:{backgroundColor:e,width:"100%",height:"100%"}},`${e}-${t?.[n]}`)))}),H("div",{css:Ci,children:t?.map((e=>H("div",{style:{width:r?"auto":`calc(100% / ${t.length})`,display:"flex",justifyContent:"center"},children:H("p",{css:wi,children:e})},e)))}),n&&n.length?H("div",{css:Ci,children:n.map((e=>H("div",{style:{width:r?"auto":`calc(100% / ${t.length})`,display:"flex",justifyContent:"center"},children:H("p",{css:$i,style:{width:"100%"},children:e})},e)))}):null]});var i},Ei=ie`
2044
2048
  display: flex;
2045
2049
  flex-direction: column;
2046
- `,Ei=ie`
2050
+ `,Oi=ie`
2047
2051
  display: flex;
2048
2052
  gap: 16px;
2049
2053
  align-items: center;
@@ -2052,39 +2056,39 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
2052
2056
  .ds-select-input-container {
2053
2057
  margin-bottom: 0px;
2054
2058
  }
2055
- `,Oi=ie`
2059
+ `,Li=ie`
2056
2060
  font-size: 18px;
2057
2061
  line-height: 28px;
2058
2062
  font-weight: 400;
2059
2063
  color: ${he("neutral",700)};
2060
- `,Li=({pageSize:e,currentPage:t,totalItems:n,onPageSizeChange:r,showItemCountText:i})=>A("div",{css:Si,children:[A("div",{css:Ei,children:[H("div",{style:{width:"80px"},children:H(Gn,{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})}),H("p",{css:Oi,children:"Per Page"})]}),i?H("p",{css:Oi,children:(()=>{const r=e,i=(t-1)*r+1;return`Showing ${i}-${Math.min(i+r-1,n)} of ${n}`})()}):null]}),_i=ie`
2064
+ `,_i=({pageSize:e,currentPage:t,totalItems:n,onPageSizeChange:r,showItemCountText:i})=>A("div",{css:Ei,children:[A("div",{css:Oi,children:[H("div",{style:{width:"80px"},children:H(Wn,{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})}),H("p",{css:Li,children:"Per Page"})]}),i?H("p",{css:Li,children:(()=>{const r=e,i=(t-1)*r+1;return`Showing ${i}-${Math.min(i+r-1,n)} of ${n}`})()}):null]}),Ti=ie`
2061
2065
  border: 1px solid ${he("neutral",300)};
2062
- `,Ti=ie`
2066
+ `,Ri=ie`
2063
2067
  color: ${he("neutral",700)};
2064
2068
  line-height: 20px;
2065
2069
  white-space: nowrap;
2066
2070
  overflow: hidden;
2067
2071
  text-overflow: ellipsis;
2068
- `,Ri=ie`
2072
+ `,Pi=ie`
2069
2073
  font-weight: 400;
2070
2074
  color: ${he("neutral",700)};
2071
2075
  white-space: nowrap;
2072
2076
  overflow: hidden;
2073
2077
  text-overflow: ellipsis;
2074
- `,Pi=ie`
2078
+ `,Di=ie`
2075
2079
  color: ${he("neutral",700)};
2076
2080
  text-align: right;
2077
2081
  font-weight: 700;
2078
2082
  white-space: nowrap;
2079
2083
  overflow: hidden;
2080
2084
  text-overflow: ellipsis;
2081
- `,Di=ie`
2085
+ `,Mi=ie`
2082
2086
  width: 16px;
2083
2087
  height: 16px;
2084
2088
  path {
2085
2089
  fill: ${he("neutral",700)};
2086
2090
  }
2087
- `,Mi=ie`
2091
+ `,Ni=ie`
2088
2092
  display: flex;
2089
2093
  align-items: center;
2090
2094
  justify-content: space-between;
@@ -2093,7 +2097,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
2093
2097
  border-bottom: 1px solid ${he("neutral",200)};
2094
2098
  width: 100%;
2095
2099
  text-align: left;
2096
- `,Ni=ie`
2100
+ `,ji=ie`
2097
2101
  display: flex;
2098
2102
  align-items: center;
2099
2103
  justify-content: space-between;
@@ -2127,18 +2131,18 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
2127
2131
  background-color: ${he("primary",100)};
2128
2132
  border: 1px solid ${he("primary",700)};
2129
2133
  }
2130
- `,ji=({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?E.button:E.div;return A(p,{id:e,css:"data"===l?Mi:Ni,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:[A(O,{gap:3,flex:"1",overflow:"hidden",children:[i&&H(o,{css:Di,as:i.type,boxSize:4,"aria-hidden":"true"}),A(r,{flex:"1",minWidth:0,children:[H(L,{fontWeight:"navigation"===l?"700":"400",css:Ti,children:t}),n&&H(L,{css:Ri,children:n})]})]}),"data"===l&&a&&H(L,{css:Pi,children:a}),"navigation"===l&&H(o,{as:Ee,boxSize:4,"aria-hidden":"true"})]})},Vi=({items:e})=>H(r,{css:_i,children:e.map((e=>H(ji,{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)))}),Ii=ie`
2134
+ `,Vi=({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?E.button:E.div;return A(p,{id:e,css:"data"===l?Ni:ji,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:[A(O,{gap:3,flex:"1",overflow:"hidden",children:[i&&H(o,{css:Mi,as:i.type,boxSize:4,"aria-hidden":"true"}),A(r,{flex:"1",minWidth:0,children:[H(L,{fontWeight:"navigation"===l?"700":"400",css:Ri,children:t}),n&&H(L,{css:Pi,children:n})]})]}),"data"===l&&a&&H(L,{css:Di,children:a}),"navigation"===l&&H(o,{as:Ee,boxSize:4,"aria-hidden":"true"})]})},Ii=({items:e})=>H(r,{css:Ti,children:e.map((e=>H(Vi,{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)))}),zi=ie`
2131
2135
  svg {
2132
2136
  path {
2133
2137
  fill: ${he("primary",500)};
2134
2138
  }
2135
2139
  }
2136
- `,zi=ie`
2140
+ `,Ai=ie`
2137
2141
  font-size: 16px;
2138
2142
  line-height: 24px;
2139
2143
  font-weight: 700;
2140
2144
  color: ${he("neutral",900)};
2141
- `,Ai=ie`
2145
+ `,Hi=ie`
2142
2146
  span {
2143
2147
  height: 20px;
2144
2148
  width: 20px;
@@ -2148,7 +2152,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
2148
2152
  background-color: transparent;
2149
2153
  }
2150
2154
  }
2151
- `,Hi=ie`
2155
+ `,Bi=ie`
2152
2156
  font-size: 16px;
2153
2157
  line-height: 24px;
2154
2158
  font-weight: 400;
@@ -2158,22 +2162,22 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
2158
2162
  color: ${he("neutral",900)};
2159
2163
  font-weight: 700;
2160
2164
  }
2161
- `,Bi=({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 H("div",{"aria-label":"Pagination",children:H(_.Root,{count:e,pageSize:t,defaultPage:n,onPageChange:e=>i&&i(e.page),siblingCount:1,children:A(T,{gap:"2",size:"sm",variant:"ghost",css:Ai,children:[H(_.PrevTrigger,{asChild:!0,children:a?H(be,{variant:"secondary",label:"Previous",size:"small",leftIcon:H(Se,{style:{rotate:"90deg"},color:"var(--chakra-colors-primary-500)"})}):H(tt,{css:Ii,style:{rotate:"90deg"},icon:H(Se,{}),"aria-label":"Previous page"})}),o?H(_.PageText,{css:zi}):H(_.Items,{render:e=>H(tt,{css:Hi,"aria-label":`Page ${e.value}`,icon:H("p",{children:e.value})})}),H(_.NextTrigger,{asChild:!0,children:a?H(be,{variant:"secondary",label:"Next",size:"small",rightIcon:H(Se,{style:{rotate:"270deg"},color:"var(--chakra-colors-primary-500)"})}):H(tt,{css:Ii,style:{rotate:"270deg"},icon:H(Se,{}),"aria-label":"Next page"})})]})})})},Fi=ie`
2165
+ `,Fi=({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 H("div",{"aria-label":"Pagination",children:H(_.Root,{count:e,pageSize:t,defaultPage:n,onPageChange:e=>i&&i(e.page),siblingCount:1,children:A(T,{gap:"2",size:"sm",variant:"ghost",css:Hi,children:[H(_.PrevTrigger,{asChild:!0,children:a?H(be,{variant:"secondary",label:"Previous",size:"small",leftIcon:H(Se,{style:{rotate:"90deg"},color:"var(--chakra-colors-primary-500)"})}):H(tt,{css:zi,style:{rotate:"90deg"},icon:H(Se,{}),"aria-label":"Previous page"})}),o?H(_.PageText,{css:Ai}):H(_.Items,{render:e=>H(tt,{css:Bi,"aria-label":`Page ${e.value}`,icon:H("p",{children:e.value})})}),H(_.NextTrigger,{asChild:!0,children:a?H(be,{variant:"secondary",label:"Next",size:"small",rightIcon:H(Se,{style:{rotate:"270deg"},color:"var(--chakra-colors-primary-500)"})}):H(tt,{css:zi,style:{rotate:"270deg"},icon:H(Se,{}),"aria-label":"Next page"})})]})})})},Zi=ie`
2162
2166
  border: 1px solid ${he("neutral",300)};
2163
2167
  border-radius: 2px;
2164
2168
  box-shadow: 0 0 0 1px ${he("neutral",300)};
2165
- `,Zi=ie`
2169
+ `,qi=ie`
2166
2170
  tr {
2167
2171
  background-color: ${he("neutral",200)};
2168
2172
  }
2169
- `,qi=ie`
2173
+ `,Gi=ie`
2170
2174
  font-size: 16px;
2171
2175
  line-height: 24px;
2172
2176
  font-weight: 700;
2173
2177
  color: ${he("neutral",800)};
2174
2178
  display: flex;
2175
2179
  align-items: center;
2176
- `,Gi=ie`
2180
+ `,Wi=ie`
2177
2181
  height: 24px;
2178
2182
  width: 10px;
2179
2183
  display: flex;
@@ -2196,21 +2200,21 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
2196
2200
  }
2197
2201
  }
2198
2202
  }
2199
- `,Wi=e=>ie`
2203
+ `,Ui=e=>ie`
2200
2204
  svg {
2201
2205
  path {
2202
2206
  fill: ${e?he("primary",600):he("neutral",400)} !important;
2203
2207
  }
2204
2208
  }
2205
- `,Ui=ie`
2209
+ `,Xi=ie`
2206
2210
  margin-top: 12px;
2207
2211
  display: flex;
2208
2212
  justify-content: space-between;
2209
- `,Xi=ie`
2213
+ `,Yi=ie`
2210
2214
  margin-top: 9px;
2211
- `,Yi=({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]=G({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 A("div",{children:[A(R.Root,{css:Fi,striped:r,stickyHeader:i,interactive:!0,children:[H(R.Header,{css:Zi,children:A(R.Row,{children:[a?H(R.ColumnHeader,{children:H(kt,{name:"header-checkbox",checked:y,indeterminate:C,onCheckedChange:({checked:e})=>{u&&u(e)}})}):null,e.map((e=>H(R.ColumnHeader,{role:e.sortable?"columnheader":void 0,"aria-sort":e.sortable&&"asc"===p.order?"ascending":e.sortable&&"desc"===p.order?"descending":void 0,children:A("div",{css:qi,children:[e.label,e.sortable?A("div",{css:Gi,children:[H(tt,{css:Wi(p.key===e.key&&"asc"===p.order),icon:H(Se,{style:{transform:"rotate(180deg)"}}),onClick:()=>b(e.key,"asc"),"aria-label":"Ascending"}),H(tt,{css:Wi(p.key===e.key&&"desc"===p.order),icon:H(Se,{}),onClick:()=>b(e.key,"desc"),"aria-label":"Descending"})]}):null]})},e.key)))]})}),H(R.Body,{children:t.map((e=>H(Z.Fragment,{children:n(e)},e.id)))})]}),A("div",{css:Ui,children:[H("div",{children:m?H(Li,{pageSize:v,currentPage:g,totalItems:f,onPageSizeChange:c,showItemCountText:x}):null}),o?H("div",{css:Xi,children:H(Bi,{totalItems:f,pageSize:v,currentPage:g,onPageChange:d})}):null]})]})},Ki=R.Row,Ji=R.Cell,Qi=ie`
2215
+ `,Ki=({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]=G({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 A("div",{children:[A(R.Root,{css:Zi,striped:r,stickyHeader:i,interactive:!0,children:[H(R.Header,{css:qi,children:A(R.Row,{children:[a?H(R.ColumnHeader,{children:H(kt,{name:"header-checkbox",checked:y,indeterminate:C,onCheckedChange:({checked:e})=>{u&&u(e)}})}):null,e.map((e=>H(R.ColumnHeader,{role:e.sortable?"columnheader":void 0,"aria-sort":e.sortable&&"asc"===p.order?"ascending":e.sortable&&"desc"===p.order?"descending":void 0,children:A("div",{css:Gi,children:[e.label,e.sortable?A("div",{css:Wi,children:[H(tt,{css:Ui(p.key===e.key&&"asc"===p.order),icon:H(Se,{style:{transform:"rotate(180deg)"}}),onClick:()=>b(e.key,"asc"),"aria-label":"Ascending"}),H(tt,{css:Ui(p.key===e.key&&"desc"===p.order),icon:H(Se,{}),onClick:()=>b(e.key,"desc"),"aria-label":"Descending"})]}):null]})},e.key)))]})}),H(R.Body,{children:t.map((e=>H(Z.Fragment,{children:n(e)},e.id)))})]}),A("div",{css:Xi,children:[H("div",{children:m?H(_i,{pageSize:v,currentPage:g,totalItems:f,onPageSizeChange:c,showItemCountText:x}):null}),o?H("div",{css:Yi,children:H(Fi,{totalItems:f,pageSize:v,currentPage:g,onPageChange:d})}):null]})]})},Ji=R.Row,Qi=R.Cell,eo=ie`
2212
2216
  border: 1px solid ${he("neutral",300)};
2213
- `,eo=ie`
2217
+ `,to=ie`
2214
2218
  padding: 16px;
2215
2219
  cursor: pointer;
2216
2220
  &:focus-visible {
@@ -2225,7 +2229,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
2225
2229
  transparent
2226
2230
  );
2227
2231
  }
2228
- `,to=({children:e,header:t,footer:n})=>H(r,{css:Qi,children:H(k.Root,{multiple:!0,children:A(k.Item,{value:"extendable-card-item",children:[A(k.ItemTrigger,{css:eo,alignItems:"center",children:[H(O,{gap:3,flex:"1",overflow:"hidden",alignItems:"center",children:t}),H(k.ItemIndicator,{children:H(Se,{color:"var(--chakra-colors-neutral-700)",height:"16px",width:"16px"})})]}),A(k.ItemContent,{children:[e,n]})]})})});function no(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ro(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 io,oo={exports:{}},ao={},lo={exports:{}},so={exports:{}},co={};var uo,po,ho,fo,go,vo,mo,xo,bo,yo,Co,wo,$o,ko={};
2232
+ `,no=({children:e,header:t,footer:n})=>H(r,{css:eo,children:H(k.Root,{multiple:!0,children:A(k.Item,{value:"extendable-card-item",children:[A(k.ItemTrigger,{css:to,alignItems:"center",children:[H(O,{gap:3,flex:"1",overflow:"hidden",alignItems:"center",children:t}),H(k.ItemIndicator,{children:H(Se,{color:"var(--chakra-colors-neutral-700)",height:"16px",width:"16px"})})]}),A(k.ItemContent,{children:[e,n]})]})})});function ro(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function io(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 oo,ao={exports:{}},lo={},so={exports:{}},co={exports:{}},uo={};var po,ho,fo,go,vo,mo,xo,bo,yo,Co,wo,$o,ko,So={};
2229
2233
  /** @license React v16.13.1
2230
2234
  * react-is.development.js
2231
2235
  *
@@ -2233,7 +2237,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
2233
2237
  *
2234
2238
  * This source code is licensed under the MIT license found in the
2235
2239
  * LICENSE file in the root directory of this source tree.
2236
- */function So(){return po||(po=1,"production"===process.env.NODE_ENV?so.exports=function(){if(io)return co;io=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 co.AsyncMode=s,co.ConcurrentMode=c,co.ContextConsumer=l,co.ContextProvider=a,co.Element=t,co.ForwardRef=d,co.Fragment=r,co.Lazy=f,co.Memo=h,co.Portal=n,co.Profiler=o,co.StrictMode=i,co.Suspense=u,co.isAsyncMode=function(e){return y(e)||b(e)===s},co.isConcurrentMode=y,co.isContextConsumer=function(e){return b(e)===l},co.isContextProvider=function(e){return b(e)===a},co.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},co.isForwardRef=function(e){return b(e)===d},co.isFragment=function(e){return b(e)===r},co.isLazy=function(e){return b(e)===f},co.isMemo=function(e){return b(e)===h},co.isPortal=function(e){return b(e)===n},co.isProfiler=function(e){return b(e)===o},co.isStrictMode=function(e){return b(e)===i},co.isSuspense=function(e){return b(e)===u},co.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)},co.typeOf=b,co}():so.exports=(uo||(uo=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,L=h,_=n,T=o,R=i,P=u,D=!1;function M(e){return b(e)===c}ko.AsyncMode=y,ko.ConcurrentMode=C,ko.ContextConsumer=w,ko.ContextProvider=$,ko.Element=k,ko.ForwardRef=S,ko.Fragment=E,ko.Lazy=O,ko.Memo=L,ko.Portal=_,ko.Profiler=T,ko.StrictMode=R,ko.Suspense=P,ko.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},ko.isConcurrentMode=M,ko.isContextConsumer=function(e){return b(e)===l},ko.isContextProvider=function(e){return b(e)===a},ko.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},ko.isForwardRef=function(e){return b(e)===d},ko.isFragment=function(e){return b(e)===r},ko.isLazy=function(e){return b(e)===f},ko.isMemo=function(e){return b(e)===h},ko.isPortal=function(e){return b(e)===n},ko.isProfiler=function(e){return b(e)===o},ko.isStrictMode=function(e){return b(e)===i},ko.isSuspense=function(e){return b(e)===u},ko.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)},ko.typeOf=b}()),ko)),so.exports}function Eo(){if(fo)return ho;fo=1;return ho="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Oo(){return vo?go:(vo=1,go=Function.call.bind(Object.prototype.hasOwnProperty))}function Lo(){if(yo)return bo;yo=1;var e=So(),t=se,n=Eo(),r=Oo(),i=function(){if(xo)return mo;xo=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Eo(),n={},r=Oo();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={})},mo=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){}}),bo=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},bo}function _o(){if($o)return lo.exports;if($o=1,"production"!==process.env.NODE_ENV){var e=So();lo.exports=Lo()(e.isElement,!0)}else lo.exports=function(){if(wo)return Co;wo=1;var e=Eo();function t(){}function n(){}return n.resetWarningCache=t,Co=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 lo.exports}function To(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=To(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Ro(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=To(e))&&(r&&(r+=" "),r+=t);return r}var Po,Do=ro(Object.freeze({__proto__:null,clsx:Ro,default:Ro})),Mo={},No={};function jo(){if(Po)return No;return Po=1,Object.defineProperty(No,"__esModule",{value:!0}),No.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."))},No.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]},No.int=function(e){return parseInt(e,10)},No.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},No.isNum=function(e){return"number"==typeof e&&!isNaN(e)},No}var Vo,Io,zo={};function Ao(){if(Io)return Mo;Io=1,Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.addClassName=a,Mo.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},Mo.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")},Mo.createCSSTransform=function(e,n){const r=o(e,n,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:r}},Mo.createSVGTransform=function(e,t){return o(e,t,"")},Mo.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))},Mo.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},Mo.getTranslation=o,Mo.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},Mo.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},Mo.matchesSelector=i,Mo.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},Mo.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}},Mo.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},Mo.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},Mo.removeClassName=l,Mo.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},Mo.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=jo(),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(Vo)return zo;Vo=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 Mo}var Ho,Bo={};function Fo(){if(Ho)return Bo;Ho=1,Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},Bo.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},Bo.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}},Bo.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}},Bo.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]},Bo.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)},Bo.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=jo(),t=Ao();function n(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}return Bo}var Zo,qo,Go,Wo,Uo={},Xo={};function Yo(){if(Zo)return Xo;return Zo=1,Object.defineProperty(Xo,"__esModule",{value:!0}),Xo.default=function(){},Xo}function Ko(){if(qo)return Uo;qo=1,Object.defineProperty(Uo,"__esModule",{value:!0}),Uo.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}(Z),t=l(_o()),n=l(ce),r=Ao(),i=Fo(),o=jo(),a=l(Yo());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 Uo.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}),Uo}function Jo(){return Go||(Go=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}(Z),n=d(_o()),r=d(ce),i=d(Do),o=Ao(),a=Fo(),l=jo(),s=d(Ko()),c=d(Yo());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})}(ao)),ao}var Qo=function(){if(Wo)return oo.exports;Wo=1;const{default:e,DraggableCore:t}=Jo();return oo.exports=e,oo.exports.default=e,oo.exports.DraggableCore=t,oo.exports}(),ea=no(Qo);const ta=e=>ie`
2240
+ */function Eo(){return ho||(ho=1,"production"===process.env.NODE_ENV?co.exports=function(){if(oo)return uo;oo=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 uo.AsyncMode=s,uo.ConcurrentMode=c,uo.ContextConsumer=l,uo.ContextProvider=a,uo.Element=t,uo.ForwardRef=d,uo.Fragment=r,uo.Lazy=f,uo.Memo=h,uo.Portal=n,uo.Profiler=o,uo.StrictMode=i,uo.Suspense=u,uo.isAsyncMode=function(e){return y(e)||b(e)===s},uo.isConcurrentMode=y,uo.isContextConsumer=function(e){return b(e)===l},uo.isContextProvider=function(e){return b(e)===a},uo.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},uo.isForwardRef=function(e){return b(e)===d},uo.isFragment=function(e){return b(e)===r},uo.isLazy=function(e){return b(e)===f},uo.isMemo=function(e){return b(e)===h},uo.isPortal=function(e){return b(e)===n},uo.isProfiler=function(e){return b(e)===o},uo.isStrictMode=function(e){return b(e)===i},uo.isSuspense=function(e){return b(e)===u},uo.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)},uo.typeOf=b,uo}():co.exports=(po||(po=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,L=h,_=n,T=o,R=i,P=u,D=!1;function M(e){return b(e)===c}So.AsyncMode=y,So.ConcurrentMode=C,So.ContextConsumer=w,So.ContextProvider=$,So.Element=k,So.ForwardRef=S,So.Fragment=E,So.Lazy=O,So.Memo=L,So.Portal=_,So.Profiler=T,So.StrictMode=R,So.Suspense=P,So.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},So.isConcurrentMode=M,So.isContextConsumer=function(e){return b(e)===l},So.isContextProvider=function(e){return b(e)===a},So.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},So.isForwardRef=function(e){return b(e)===d},So.isFragment=function(e){return b(e)===r},So.isLazy=function(e){return b(e)===f},So.isMemo=function(e){return b(e)===h},So.isPortal=function(e){return b(e)===n},So.isProfiler=function(e){return b(e)===o},So.isStrictMode=function(e){return b(e)===i},So.isSuspense=function(e){return b(e)===u},So.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)},So.typeOf=b}()),So)),co.exports}function Oo(){if(go)return fo;go=1;return fo="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Lo(){return mo?vo:(mo=1,vo=Function.call.bind(Object.prototype.hasOwnProperty))}function _o(){if(Co)return yo;Co=1;var e=Eo(),t=se,n=Oo(),r=Lo(),i=function(){if(bo)return xo;bo=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Oo(),n={},r=Lo();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={})},xo=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){}}),yo=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},yo}function To(){if(ko)return so.exports;if(ko=1,"production"!==process.env.NODE_ENV){var e=Eo();so.exports=_o()(e.isElement,!0)}else so.exports=function(){if($o)return wo;$o=1;var e=Oo();function t(){}function n(){}return n.resetWarningCache=t,wo=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 so.exports}function Ro(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=Ro(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Po(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Ro(e))&&(r&&(r+=" "),r+=t);return r}var Do,Mo=io(Object.freeze({__proto__:null,clsx:Po,default:Po})),No={},jo={};function Vo(){if(Do)return jo;return Do=1,Object.defineProperty(jo,"__esModule",{value:!0}),jo.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."))},jo.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]},jo.int=function(e){return parseInt(e,10)},jo.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},jo.isNum=function(e){return"number"==typeof e&&!isNaN(e)},jo}var Io,zo,Ao={};function Ho(){if(zo)return No;zo=1,Object.defineProperty(No,"__esModule",{value:!0}),No.addClassName=a,No.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},No.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")},No.createCSSTransform=function(e,n){const r=o(e,n,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:r}},No.createSVGTransform=function(e,t){return o(e,t,"")},No.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))},No.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},No.getTranslation=o,No.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},No.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},No.matchesSelector=i,No.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},No.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}},No.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},No.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},No.removeClassName=l,No.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},No.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=Vo(),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(Io)return Ao;Io=1,Object.defineProperty(Ao,"__esModule",{value:!0}),Ao.browserPrefixToKey=n,Ao.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},Ao.default=void 0,Ao.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 Ao.default=t(),Ao}());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 No}var Bo,Fo={};function Zo(){if(Bo)return Fo;Bo=1,Object.defineProperty(Fo,"__esModule",{value:!0}),Fo.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},Fo.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},Fo.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}},Fo.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}},Fo.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]},Fo.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)},Fo.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=Vo(),t=Ho();function n(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}return Fo}var qo,Go,Wo,Uo,Xo={},Yo={};function Ko(){if(qo)return Yo;return qo=1,Object.defineProperty(Yo,"__esModule",{value:!0}),Yo.default=function(){},Yo}function Jo(){if(Go)return Xo;Go=1,Object.defineProperty(Xo,"__esModule",{value:!0}),Xo.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}(Z),t=l(To()),n=l(ce),r=Ho(),i=Zo(),o=Vo(),a=l(Ko());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 Xo.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}),Xo}function Qo(){return Wo||(Wo=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}(Z),n=d(To()),r=d(ce),i=d(Mo),o=Ho(),a=Zo(),l=Vo(),s=d(Jo()),c=d(Ko());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})}(lo)),lo}var ea=function(){if(Uo)return ao.exports;Uo=1;const{default:e,DraggableCore:t}=Qo();return ao.exports=e,ao.exports.default=e,ao.exports.DraggableCore=t,ao.exports}(),ta=ro(ea);const na=e=>ie`
2237
2241
  width: 240px;
2238
2242
  ${"medium"===e&&"width: 320px;"}
2239
2243
  ${"large"===e&&"width: 440px;"}
@@ -2244,7 +2248,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
2244
2248
  border-radius: 4px;
2245
2249
  box-shadow: 0px 4px 6px -4px #0000001a;
2246
2250
  box-shadow: 0px 10px 15px -3px #0000001a;
2247
- `,na=ie`
2251
+ `,ra=ie`
2248
2252
  height: 100%;
2249
2253
  min-height: 40px;
2250
2254
  display: flex;
@@ -2252,31 +2256,31 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
2252
2256
  justify-content: space-between;
2253
2257
  padding: 8px;
2254
2258
  border-bottom: 1px solid ${he("neutral",300)};
2255
- `,ra=ie`
2256
- top: 10px;
2257
2259
  `,ia=ie`
2260
+ top: 10px;
2261
+ `,oa=ie`
2258
2262
  padding: 12px;
2259
- `,oa=({header:e,content:t,footer:n,size:r="medium",draggable:i,blocking:o,open:a,onClose:l})=>a?H(P.Root,{open:a,onOpenChange:l,placement:"center",scrollBehavior:"inside",closeOnInteractOutside:!i&&!o,preventScroll:!i&&!o,closeOnEscape:!o,defaultOpen:!0,children:A(s,{children:[i?null:H(P.Backdrop,{}),H(ea,{disabled:!i,children:H(P.Positioner,{children:A(P.Content,{css:ta(r),children:[A(P.Header,{css:na,children:[e,o?null:H(P.CloseTrigger,{css:ra,asChild:!0,children:H(nt,{})})]}),H(P.Body,{css:ia,children:t}),n?H(P.Footer,{padding:"12px",children:n}):null]})})})]})}):null,aa=e=>ie`
2263
+ `,aa=({header:e,content:t,footer:n,size:r="medium",draggable:i,blocking:o,open:a,onClose:l})=>a?H(P.Root,{open:a,onOpenChange:l,placement:"center",scrollBehavior:"inside",closeOnInteractOutside:!i&&!o,preventScroll:!i&&!o,closeOnEscape:!o,defaultOpen:!0,children:A(s,{children:[i?null:H(P.Backdrop,{}),H(ta,{disabled:!i,children:H(P.Positioner,{children:A(P.Content,{css:na(r),children:[A(P.Header,{css:ra,children:[e,o?null:H(P.CloseTrigger,{css:ia,asChild:!0,children:H(nt,{})})]}),H(P.Body,{css:oa,children:t}),n?H(P.Footer,{padding:"12px",children:n}):null]})})})]})}):null,la=e=>ie`
2260
2264
  height: 100%;
2261
2265
  width: ${e||"320px"};
2262
2266
  background-color: ${he("neutral",100)};
2263
2267
  box-shadow: 0px 1px 2px -1px #0000001a;
2264
2268
  box-shadow: 0px 1px 3px 0px #0000001a;
2265
2269
  position: relative;
2266
- `,la=ie`
2267
- border-right: 1px solid ${he("neutral",300)};
2268
2270
  `,sa=ie`
2271
+ border-right: 1px solid ${he("neutral",300)};
2272
+ `,ca=ie`
2269
2273
  border: 1px solid ${he("neutral",300)};
2270
2274
  border-radius: 4px;
2271
- `,ca=ie`
2275
+ `,da=ie`
2272
2276
  min-height: 48px;
2273
2277
  width: 100%;
2274
2278
  border-bottom: 1px solid ${he("neutral",300)};
2275
- `,da=(e,t)=>ie`
2279
+ `,ua=(e,t)=>ie`
2276
2280
  height: ${((e,t)=>e&&t?`calc(100% - ${e+t}px)`:e?`calc(100% - ${e}px)`:t?`calc(100% - ${t}px)`:"100%")(e,t)};
2277
2281
  width: 100%;
2278
2282
  overflow-y: auto;
2279
- `,ua=ie`
2283
+ `,pa=ie`
2280
2284
  min-height: 64px;
2281
2285
  width: 100%;
2282
2286
  display: flex;
@@ -2286,7 +2290,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as i,Ic
2286
2290
  bottom: 0;
2287
2291
  left: 0;
2288
2292
  border-top: 1px solid ${he("neutral",300)};
2289
- `,pa=({header:e,content:t,footer:n,variant:r="fixed",width:i})=>{const[o,a]=G(void 0),[l,s]=G(void 0),c=Y(null),d=Y(null);W((()=>{a(c?.current?.getBoundingClientRect()?.height),s(d?.current?.getBoundingClientRect()?.height)}),[e,n]);return A("div",{css:[aa(i),"fixed"===r?la:sa],children:[e?H("div",{css:ca,ref:c,children:e}):null,H("div",{css:da(o,l),children:t}),n?H("div",{css:ua,ref:d,children:n}):null]})};var ha,fa;!function(){if(fa)return ha;fa=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))}}ha=e}();var ga=va()?K:W;"production"!==process.env.NODE_ENV&&("undefined"!=typeof process?process:{env:{NODE_ENV:"development"}}).env;function va(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;var ma=function(e){var t,n=e.children,r=e.type,i=void 0===r?"reach-portal":r,o=Y(null),a=Y(null),l=(t=G(Object.create(null))[1],J((function(){t(Object.create(null))}),[]));return ga((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?de(n,a.current):Q("span",{ref:o})};"production"!==process.env.NODE_ENV&&(ma.displayName="Portal");
2293
+ `,ha=({header:e,content:t,footer:n,variant:r="fixed",width:i})=>{const[o,a]=G(void 0),[l,s]=G(void 0),c=Y(null),d=Y(null);W((()=>{a(c?.current?.getBoundingClientRect()?.height),s(d?.current?.getBoundingClientRect()?.height)}),[e,n]);return A("div",{css:[la(i),"fixed"===r?sa:ca],children:[e?H("div",{css:da,ref:c,children:e}):null,H("div",{css:ua(o,l),children:t}),n?H("div",{css:pa,ref:d,children:n}):null]})};var fa,ga;!function(){if(ga)return fa;ga=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))}}fa=e}();var va=ma()?K:W;"production"!==process.env.NODE_ENV&&("undefined"!=typeof process?process:{env:{NODE_ENV:"development"}}).env;function ma(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;var xa=function(e){var t,n=e.children,r=e.type,i=void 0===r?"reach-portal":r,o=Y(null),a=Y(null),l=(t=G(Object.create(null))[1],J((function(){t(Object.create(null))}),[]));return va((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?de(n,a.current):Q("span",{ref:o})};"production"!==process.env.NODE_ENV&&(xa.displayName="Portal");
2290
2294
  /*! *****************************************************************************
2291
2295
  Copyright (c) Microsoft Corporation.
2292
2296
 
@@ -2300,16 +2304,16 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
2300
2304
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
2301
2305
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2302
2306
  PERFORMANCE OF THIS SOFTWARE.
2303
- ***************************************************************************** */var xa,ba,ya=function(){return ya=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},ya.apply(this,arguments)};function Ca(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 wa(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 ka(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"}(xa||(xa={})),function(e){e.Parent="#_parent",e.Internal="#_internal"}(ba||(ba={}));var Sa=xa.Start,Ea=xa.Stop,Oa=xa.Raise,La=xa.Send,_a=xa.Cancel,Ta=xa.NullEvent,Ra=xa.Assign;xa.After,xa.DoneState;var Pa=xa.Log,Da=xa.Init,Ma=xa.Invoke;xa.ErrorExecution;var Na,ja=xa.ErrorPlatform,Va=xa.ErrorCustom,Ia=xa.Update,za=xa.Choose,Aa=xa.Pure,Ha={},Ba="xstate.guard",Fa="production"===process.env.NODE_ENV;function Za(e,t,n){void 0===n&&(n=".");var r=Wa(e,n),i=Wa(t,n);return cl(i)?!!cl(r)&&i===r:cl(r)?r in i:Object.keys(r).every((function(e){return e in i&&Za(r[e],i[e])}))}function qa(e){try{return cl(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 Ga(e,t){try{return ll(e)?e:e.toString().split(t)}catch(t){throw new Error("'".concat(e,"' is not a valid state path."))}}function Wa(e,t){return"object"==typeof(n=e)&&"value"in n&&"context"in n&&"event"in n&&"_event"in n?e.value:ll(e)?Ua(e):"string"!=typeof e?e:Ua(Ga(e,t));var n}function Ua(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 Xa(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 Ya(e,t,n){var r,i,o={};try{for(var a=wa(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 Ka=function(e){return function(t){var n,r,i=t;try{for(var o=wa(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 Ja(e){return e?cl(e)?[[e]]:Qa(Object.keys(e).map((function(t){var n=e[t];return"string"==typeof n||n&&Object.keys(n).length?Ja(e[t]).map((function(e){return[t].concat(e)})):[[t]]}))):[[]]}function Qa(e){var t;return(t=[]).concat.apply(t,ka([],$a(e),!1))}function el(e){return ll(e)?e:[e]}function tl(e){return void 0===e?[]:el(e)}function nl(e,t,n){var r,i;if(sl(e))return e(t,n.data);var o={};try{for(var a=wa(Object.keys(e)),l=a.next();!l.done;l=a.next()){var s=l.value,c=e[s];sl(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 rl(e){return e instanceof Promise||!(null===e||!sl(e)&&"object"!=typeof e||!sl(e.then))}function il(e,t){return Xa(e.states,(function(e,n){if(e){var r=(cl(t)?void 0:t[n])||(e?e.current:void 0);if(r)return{current:r,states:il(e,r)}}}))}function ol(e,t,n,r){Fa||al(!!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(sl(a))s=a(e,t.data,l);else try{for(var c=wa(Object.keys(a)),d=c.next();!d.done;d=c.next()){var u=d.value,p=a[u];s[u]=sl(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 al=function(){};function ll(e){return Array.isArray(e)}function sl(e){return"function"==typeof e}function cl(e){return"string"==typeof e}function dl(e,t){if(e)return cl(e)?{type:Ba,name:e,predicate:t?t[e]:void 0}:sl(e)?{type:Ba,name:e.name,predicate:e}:e}Fa||(al=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 ul=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function pl(e){return!!e&&"__xstatenode"in e}function hl(e,t){return cl(e)||"number"==typeof e?ya({type:e},t):e}function fl(e,t){if(!cl(e)&&"$$type"in e&&"scxml"===e.$$type)return e;var n=hl(e);return ya({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function gl(e,t){return el(t).map((function(t){return void 0===t||"string"==typeof t||pl(t)?{target:t,event:e}:ya(ya({},t),{event:e})}))}function vl(e,t,n,r,i){var o=e.options.guards,a={state:i,cond:t,_event:r};if(t.type===Ba)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 ml(e){return"string"==typeof e?{type:e}:e}function xl(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 bl(e,t){return"".concat(e,":invocation[").concat(t,"]")}function yl(e){return(e.type===Oa||e.type===La&&e.to===ba.Internal)&&"number"!=typeof e.delay}(Na={})[ul]=function(){return this},Na[Symbol.observable]=function(){return this};var Cl=fl({type:Da});function wl(e,t){return t&&t[e]||void 0}function $l(e,t){var n;if(cl(e)||"number"==typeof e)n=sl(r=wl(e,t))?{type:e,exec:r}:r||{type:e,exec:void 0};else if(sl(e))n={type:e.name||e.toString(),exec:e};else{var r;if(sl(r=wl(e.type,t)))n=ya(ya({},e),{exec:r});else if(r){var i=r.type||e.type;n=ya(ya(ya({},r),e),{type:i})}else n=e}return n}var kl=function(e,t){return e?(ll(e)?e:[e]).map((function(e){return $l(e,t)})):[]};function Sl(e){var t=$l(e);return ya(ya({id:cl(e)?e:t.id},t),{type:t.type})}function El(e,t){var n="".concat(xa.DoneState,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function Ol(e,t){var n="".concat(xa.DoneInvoke,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function Ll(e,t){var n="".concat(xa.ErrorPlatform,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function _l(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=wa(e),o=i.next();!o.done;o=i.next())for(var a=o.value,l=0;l<a.actions.length;)a.actions[l].type!==Ra?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?ol(n,r,l,t):n,c=a?[n]:void 0,d=[];function u(i,l){var u;switch(l.type){case Oa:var p=function(e,t,n,r){var i,o={_event:n},a=fl(sl(e.event)?e.event(t,n.data,o):e.event);if(cl(e.delay)){var l=r&&r[e.delay];i=sl(l)?l(t,n.data,o):l}else i=sl(e.delay)?e.delay(t,n.data,o):e.delay;return ya(ya({},e),{type:Oa,_event:a,delay:i})}(l,s,r,e.options.delays);return o&&"number"==typeof p.delay&&o(p,s,r),p;case La:var h=function(e,t,n,r){var i,o={_event:n},a=fl(sl(e.event)?e.event(t,n.data,o):e.event);if(cl(e.delay)){var l=r&&r[e.delay];i=sl(l)?l(t,n.data,o):l}else i=sl(e.delay)?e.delay(t,n.data,o):e.delay;var s=sl(e.to)?e.to(t,n.data,o):e.to;return ya(ya({},e),{to:s,_event:a,event:a.data,delay:i})}(l,s,r,e.options.delays);if(!Fa){var f=l.delay;al(!cl(f)||"number"==typeof h.delay,"No delay reference for delay expression '".concat(f,"' was found on machine '").concat(e.id,"'"))}return o&&h.to!==ba.Internal&&("entry"===i?d.push(h):o(h,s,r)),h;case Pa:var g=function(e,t,n){return ya(ya({},e),{value:cl(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=dl(n.cond,e.options.guards);return!i||vl(e,i,s,r,o?void 0:t)})))||void 0===u?void 0:u.actions))return[];var v=$a(_l(e,t,s,r,[{type:i,actions:kl(tl(b),e.options.actions)}],o,a),2),m=v[0],x=v[1];return s=x,null==c||c.push(s),m;case Aa:var b;if(!(b=l.get(s,r.data)))return[];var y=$a(_l(e,t,s,r,[{type:i,actions:kl(tl(b),e.options.actions)}],o,a),2),C=y[0],w=y[1];return s=w,null==c||c.push(s),C;case Ea:g=function(e,t,n){var r=sl(e.activity)?e.activity(t,n.data):e.activity,i="string"==typeof r?{id:r}:r;return{type:xa.Stop,activity:i}}(l,s,r);return null==o||o(g,n,r),g;case Ra:s=ol(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=ya(ya({},$),{exec:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];k.apply(void 0,ka([c[S]],$a(t),!1))}});$=E}return $}}var p=Qa(i.map((function(e){var t,n,i=[];try{for(var a=wa(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 Tl=function(e,t){return t(e)};function Rl(e){var t;return(t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}})[ul]=function(){return this},t}function Pl(e,t,n){var r=Rl(t);if(r.deferred=!0,pl(e)){var i=r.state=Tl(void 0,(function(){return(n?e.withContext(n):e).initialState}));r.getSnapshot=function(){return i}}return r}var Dl=function(e){return"atomic"===e.type||"final"===e.type};function Ml(e){return Object.keys(e.states).map((function(t){return e.states[t]}))}function Nl(e){return Ml(e).filter((function(e){return"history"!==e.type}))}function jl(e){var t=[e];return Dl(e)?t:t.concat(Qa(Nl(e).map(jl)))}function Vl(e,t){var n,r,i,o,a,l,s,c,d=zl(new Set(e)),u=new Set(t);try{for(var p=wa(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=wa(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,wa(Nl($))),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=wa(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 Il(e,t){var n=t.get(e);if(!n)return{};if("compound"===e.type){var r=n[0];if(!r)return{};if(Dl(r))return r.key}var i={};return n.forEach((function(e){i[e.key]=Il(e,t)})),i}function zl(e){var t,n,r=new Map;try{for(var i=wa(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 Al(e,t){return Il(e,zl(Vl([e],t)))}function Hl(e,t){return Array.isArray(e)?e.some((function(e){return e===t})):e instanceof Set&&e.has(t)}function Bl(e,t){return"compound"===t.type?Nl(t).some((function(t){return"final"===t.type&&Hl(e,t)})):"parallel"===t.type&&Nl(t).every((function(t){return Bl(e,t)}))}function Fl(e){return new Set(Qa(e.map((function(e){return e.tags}))))}function Zl(e,t){if(e===t)return!0;if(void 0===e||void 0===t)return!1;if(cl(e)||cl(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((function(n){return Zl(e[n],t[n])}))}var ql=function(){function e(e){var t,n,r=this;this.actions=[],this.activities=Ha,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||Ha,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 ka([],$a(new Set(Qa(ka([],$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:Cl,_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=Cl;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="."),cl(e))return[e];var r=Object.keys(e);return r.concat.apply(r,ka([],$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=Ca(e,["configuration","transitions","tags","machine"]);return ya(ya({},n),{tags:Array.from(t)})},e.prototype.matches=function(e){return Za(e,this.value)},e.prototype.hasTag=function(e){return this.tags.has(e)},e.prototype.can=function(e){var t;Fa&&al(!!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}(),Gl={deferEvents:!1},Wl=function(){function e(e){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=ya(ya({},Gl),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}(),Ul=new Map,Xl=0,Yl=function(){return"x:".concat(Xl++)},Kl=function(e,t){return Ul.set(e,t),e},Jl=function(e){return Ul.get(e)},Ql=function(e){Ul.delete(e)};function es(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void(Fa||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 ts(e){if(es()){var t=function(){var e=es();if(e&&"__xstate__"in e)return e.__xstate__}();t&&t.register(e)}}function ns(e,t){void 0===t&&(t={});var n=e.initialState,r=new Set,i=[],o=!1,a=function(e){var t;return ya(((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[ul]=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=xl(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 rs,is={sync:!1,autoForward:!1};!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(rs||(rs={}));var os=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=rs.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(e,t){if(ll(e))return r.batch(e),r.state;var n=fl(hl(e,t));if(r.status===rs.Stopped)return Fa||al(!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!==rs.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===ba.Parent||r.parent.id===t),a=o?r.parent:cl(t)?t===ba.Internal?r:r.children.get(t)||Jl(t):(i=t)&&"function"==typeof i.send?t:void 0;if(a)if("machine"in a){if(r.status!==rs.Stopped||r.parent!==a||r.state.done){var l=ya(ya({},e),{name:e.name===Va?"".concat(Ll(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,"'."));Fa||al(!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||wl(e.type,i),a=sl(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 Oa:var l=e;r.defer(l);break;case La:var s=e;if("number"==typeof s.delay)return void r.defer(s);s.to?r.sendTo(s._event,s.to,n===Cl):r.send(s._event);break;case _a:r.cancel(e.sendId);break;case Sa:if(r.status!==rs.Running)return;var c=e.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[c.id||c.type])break;if(c.type===xa.Invoke){var d=ml(c.src),u=r.machine.options.services?r.machine.options.services[d.type]:void 0,p=c.id,h=c.data;Fa||al(!("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(Fa||al(!1,"No service found for invocation '".concat(c.src,"' in machine '").concat(r.machine.id,"'.")));var g=h?nl(h,t,n):void 0;if("string"==typeof u)return;var v=sl(u)?u(t,n.data,{data:g,src:d,meta:c.meta}):u;if(!v)return;var m=void 0;pl(v)&&(v=g?v.withContext(g):v,m={autoForward:f}),r.spawn(v,p,m)}else r.spawnActivity(c);break;case Ea:r.stopChild(e.activity.id);break;case Pa:var x=e,b=x.label,y=x.value;b?r.logger(b,y):r.logger(y);break;default:Fa||al(!1,"No implementation found for action type '".concat(e.type,"'"))}};var i=ya(ya({},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 Wl({deferEvents:this.options.deferEvents}),this.sessionId=Yl()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this;return this._initialState?this._initialState:Tl(this,(function(){return e._initialState=e.machine.initialState,e._initialState}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return Fa||al(this.status!==rs.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=wa(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!==Cl||!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=wa(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=wa(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=wa(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?nl(x.doneData,e.context,t):void 0;this._doneEvent=Ol(this.id,b);try{for(var y=wa(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(),Ql(this.sessionId)}},e.prototype.onTransition=function(e){return this.listeners.add(e),this.status===rs.Running&&e(this.state,this.state.event),this},e.prototype.subscribe=function(e,t,n){var r=this,i=xl(e,t,n);this.listeners.add(i.next),this.status!==rs.NotStarted&&i.next(this.state);var o=function(){r.doneListeners.delete(o),r.stopListeners.delete(o),i.complete()};return this.status===rs.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===rs.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===rs.Running)return this;this.machine._init(),Kl(this.sessionId,this),this.initialized=!0,this.status=rs.Running;var n=void 0===e?this.initialState:Tl(this,(function(){return"object"==typeof(n=e)&&null!==n&&"value"in n&&"_event"in n?t.machine.resolveState(e):t.machine.resolveState(ql.from(e,t.machine.context));var n}));return this.options.devTools&&this.attachDev(),this.scheduler.initialize((function(){t.update(n,Cl)})),this},e.prototype._stopChildren=function(){this.children.forEach((function(e){sl(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=wa(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=wa(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=wa(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=wa(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=rs.Stopped,this._initialState=void 0;try{for(var b=wa(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 Wl({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=fl({type:"xstate.stop"}),r=Tl(e,(function(){var t=Qa(ka([],$a(e.state.configuration),!1).sort((function(e,t){return t.order-e.order})).map((function(t){return kl(t.onExit,e.machine.options.actions)}))),r=$a(_l(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 ql({value:e.state.value,context:o,_event:n,_sessionid:e.sessionId,historyValue:void 0,history:e.state,actions:i.filter((function(e){return!yl(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(),Ql(e.sessionId)}})),this},e.prototype.batch=function(e){var t=this;if(this.status===rs.NotStarted&&this.options.deferEvents)Fa||al(!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!==rs.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=fl(e);t.forward(r),o=Tl(t,(function(){return t.machine.transition(o,r,void 0,n||void 0)})),l.push.apply(l,ka([],$a(t.machine.config.predictableActionArguments?o.actions:o.actions.map((function(e){return function(e,t){var n=e.exec;return ya(ya({},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=wa(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,fl(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=fl(e);if(0===r.name.indexOf(ja)&&!this.state.nextEvents.some((function(e){return 0===e.indexOf(ja)})))throw r.data.data;return Tl(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=wa(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),sl(t.stop)&&t.stop())},e.prototype.spawn=function(e,t,n){if(this.status!==rs.Running)return Pl(e,t);if(rl(e))return this.spawnPromise(Promise.resolve(e),t);if(sl(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&&sl(e.subscribe)}catch(e){return!1}}(e))return this.spawnObservable(e,t);if(pl(e))return this.spawnMachine(e,ya(ya({},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,ya(ya({},this.options),{parent:this,id:n.id||t.id})),o=ya(ya({},is),n);o.sync&&i.onTransition((function(e){r.send(Ia,{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(fl(e,{origin:i.id}))})).start(),a},e.prototype.spawnBehavior=function(e,t){var n=ns(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(fl(Ol(t,e),{origin:t})))}),(function(e){if(!o){i.removeChild(t);var n=Ll(t,e);try{i.send(fl(n,{origin:t}))}catch(r){!function(e,t,n){if(!Fa){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=xl(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}})[ul]=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(fl(e,{origin:t}))}),(function(e){l.add(e)}))}catch(e){this.send(Ll(t,e))}if(rl(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=xl(e);return s.add(t.next),{unsubscribe:function(){s.delete(t.next)}}},stop:function(){a=!0,sl(i)&&i()},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[ul]=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(fl(e,{origin:t}))}),(function(e){i.removeChild(t),i.send(fl(Ll(t,e),{origin:t}))}),(function(){i.removeChild(t),i.send(fl(Ol(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}}})[ul]=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 Fa||al(!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}}})[ul]=function(){return this},n))},e.prototype.attachDev=function(){var e=es();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(ya(ya({name:this.id,autoPause:!0,stateSanitizer:function(e){return{value:e.value,context:e.context,actions:e.actions}}},t),{features:ya({jump:!1,skip:!1},t?t.features:void 0)}),this.machine),this.devTools.init(this.state)}ts(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[ul]=function(){return this},e.prototype.getSnapshot=function(){return this.status===rs.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=as,e}();function as(e,t){return new os(e,t)}function ls(e){if("string"==typeof e){var t={type:e,toString:function(){return e}};return t}return e}function ss(e){return ya(ya({type:Ma},e),{toJSON:function(){e.onDone,e.onError;var t=Ca(e,["onDone","onError"]);return ya(ya({},t),{type:Ma,src:ls(e.src)})}})}var cs="",ds="*",us={},ps=function(e){return"#"===e[0]},hs=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||ka([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,Fa||al(!("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?Xa(this.config.states,(function(t,n){var r,i=new e(t,{},void 0,{parent:a,key:n});return Object.assign(a.idMap,ya(((r={})[i.id]=i,r),i.idMap)),i})):us;var l=0;!function e(t){var n,r;t.order=l++;try{for(var i=wa(Ml(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===cs})):cs in this.config.on),this.strict=!!this.config.strict,this.onEntry=tl(this.config.entry||this.config.onEntry).map((function(e){return $l(e)})),this.onExit=tl(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=tl(this.config.invoke).map((function(e,t){var n,r;if(pl(e)){var i=bl(a.id,t);return a.machine.options.services=ya(((n={})[i]=e,n),a.machine.options.services),ss({src:i,id:i})}if(cl(e.src)){i=e.id||bl(a.id,t);return ss(ya(ya({},e),{id:i,src:e.src}))}if(pl(e.src)||sl(e.src)){i=e.id||bl(a.id,t);return a.machine.options.services=ya(((r={})[i]=e.src,r),a.machine.options.services),ss(ya(ya({id:i},e),{src:i}))}var o=e.src;return ss(ya(ya({id:bl(a.id,t)},e),{src:o}))})),this.activities=tl(this.config.activities).concat(this.invoke).map((function(e){return Sl(e)})),this.transition=this.transition.bind(this),this.tags=tl(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||jl(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:ya(ya({},i),t.actions),activities:ya(ya({},o),t.activities),guards:ya(ya({},a),t.guards),services:ya(ya({},l),t.services),delays:ya(ya({},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 sl(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:Xa(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===cs,n=this.transitions.filter((function(n){var r=n.eventType===e;return t?r:r||n.eventType===ds}));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(xa.After,"(").concat(e,")").concat(n)}(sl(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:La,event:sl(e)?e:hl(e),delay:t?t.delay:void 0,id:t&&void 0!==t.id?t.id:sl(e)?e.name:qa(e)}}(r,{delay:t})),e.onExit.push({type:_a,sendId:r}),r},r=ll(t)?t.map((function(e,t){var r=n(e.delay,t);return ya(ya({},e),{event:r})})):Qa(Object.keys(t).map((function(e,r){var i=t[e],o=cl(i)?{target:i}:i,a=isNaN(+e)?e:+e,l=n(a,r);return tl(o).map((function(e){return ya(ya({},e),{event:l,delay:a})}))})));return r.map((function(t){var n=t.delay;return ya(ya({},e.formatTransition(t)),{delay:n})}))},e.prototype.getStateNodes=function(e){var t,n=this;if(!e)return[];var r=e instanceof ql?e.value:Wa(e,this.delimiter);if(cl(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,ka([],$a(Qa(o.map((function(e){return n.getStateNode(e).getStateNodes(r[e])})))),!1)),a},e.prototype.handles=function(e){var t=qa(e);return this.events.includes(t)},e.prototype.resolveState=function(e){var t=e instanceof ql?e:ql.create(e),n=Array.from(Vl([],this.getStateNodes(t.value)));return new ql(ya(ya({},t),{value:this.resolve(t.value),configuration:n,done:Bl(n,this),tags:Fl(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=wa(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=Qa(u.map((function(e){return e.transitions})));if(!u.some((function(e){return e.transitions.length>0})))return this.next(t,n);var h=Qa(Object.keys(o).map((function(e){return o[e].configuration})));return{transitions:p,exitSet:Qa(u.map((function(e){return e.exitSet}))),configuration:h,source:t,actions:Qa(Object.keys(o).map((function(e){return o[e].actions})))}},e.prototype._transition=function(e,t,n){return cl(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,fl(t))},e.prototype.next=function(e,t){var n,r,i,o=this,a=t.name,l=[],s=[];try{for(var c=wa(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||(cl(h)&&ps(h)?e.matches(Wa(this.getStateNodeById(h).path,this.delimiter)):Za(Wa(h,this.delimiter),Ka(this.path.slice(0,-2))(e.value))),v=!1;try{v=!p||vl(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,ka([],$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=Qa(s.map((function(t){return o.getRelativeStateNodes(t,e.historyValue)})));return{transitions:[i],exitSet:!!i.internal?[]:Qa(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?Vl([],this.getStateNodes(o.value)):[],h=new Set;try{for(var f=wa(Array.from(e).sort((function(e,t){return e.order-t.order}))),g=f.next();!g.done;g=f.next()){(!Hl(p,x=g.value)||Hl(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=wa(p),m=v.next();!m.done;m=v.next()){var x;Hl(e,x=m.value)&&!Hl(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=Qa(b.map((function(e){var t=[];if("final"!==e.type)return t;var o=e.parent;if(!o.parent)return t;t.push(El(e.id,e.doneData),El(o.id,e.doneData?nl(e.doneData,r,i):void 0));var a=o.parent;return"parallel"===a.type&&Nl(a).every((function(e){return Bl(n.configuration,e)}))&&t.push(El(a.id)),t}))),w=b.map((function(e){var t=e.onEntry,n=e.activities.map((function(e){return function(e){var t=Sl(e);return{type:xa.Start,activity:t,exec:void 0}}(e)}));return{type:"entry",actions:kl(a?ka(ka([],$a(t),!1),$a(n),!1):ka(ka([],$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:Oa,event:"function"==typeof e?e:hl(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:kl(ka(ka([],$a(e.onExit),!1),$a(e.activities.map((function(e){return function(e){var t=sl(e)?e:Sl(e);return{type:xa.Stop,activity:t,exec:void 0}}(e)}))),!1),u.machine.options.actions)}})).concat({type:"transition",actions:kl(n.actions,this.machine.options.actions)}).concat(w);if(t){var k=kl(Qa(ka([],$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!yl(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=fl(t);if(e instanceof ql)i=void 0===n?e:this.resolveState(ql.from(e,n));else{var l=cl(e)?this.resolve(Ua(this.getResolvedPath(e))):this.resolve(e),s=null!=n?n:this.machine.context;i=this.resolveState(ql.from(l,s))}if(!Fa&&a.name===ds)throw new Error("An event cannot have the wildcard type ('".concat(ds,"')"));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=Vl([],this.getStateNodes(i.value)),u=c.configuration.length?Vl(d,c.configuration):d;return c.configuration=ka([],$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,ka([],$a(o),!1)),e},e.prototype.resolveTransition=function(e,t,n,r,i){var o,a,l,s,c=this;void 0===i&&(i=Cl);var d=e.configuration,u=!t||e.transitions.length>0,p=u?e.configuration:t?t.configuration:[],h=Bl(p,this),f=u?Al(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?ya({},t.activities):{};try{for(var x=wa(v),b=x.next();!b.done;b=x.next()){var y=b.value;try{for(var C=(l=void 0,wa(y.actions)),w=C.next();!w.done;w=C.next()){var $=w.value;$.type===Sa?m[$.activity.id||$.activity.type]=$:$.type===Ea&&(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(_l(this,t,n,i,v,r,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),O=E[0],L=E[1],_=$a(function(e,t){var n,r,i=$a([[],[]],2),o=i[0],a=i[1];try{for(var l=wa(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,yl),2),T=_[0],R=_[1],P=O.filter((function(e){var t;return e.type===Sa&&(null===(t=e.activity)||void 0===t?void 0:t.type)===Ma})),D=P.reduce((function(e,t){return e[t.activity.id]=function(e,t,n,r){var i,o=ml(e.src),a=null===(i=null==t?void 0:t.options.services)||void 0===i?void 0:i[o.type],l=e.data?nl(e.data,n,r):void 0,s=a?Pl(a,e.id,l):Rl(e.id);return s.meta=e,s}(t.activity,c.machine,L,i),e}),t?ya({},t.children):{}),M=new ql({value:f||t.value,context:L,_event:i,_sessionid:t?t._sessionid:null,historyValue:f?g?(k=g,S=f,{current:S,states:il(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:Fl(p),machine:this}),N=n!==L;M.changed=i.name===Ia||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!==cs))return M;var I=M;if(!h)for(V&&(I=this.resolveRaisedTransition(I,{type:Ta},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||!Zl(I.value,j.value):void 0);return I.changed=A,I.history=j,I},e.prototype.getStateNode=function(e){if(ps(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=ps(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&&ps(e))try{return this.getStateNodeById(e.slice(1))}catch(e){}for(var t=Ga(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||us;switch(this.type){case"parallel":return Xa(this.initialStateValue,(function(t,r){return t?n.getStateNode(r).resolve(e[r]||t):us}));case"compound":if(cl(e)){var r=this.getStateNode(e);return"parallel"===r.type||"compound"===r.type?((t={})[e]=r.initialStateValue,t):e}return Object.keys(e).length?Xa(e,(function(e,t){return e?n.getStateNode(t).resolve(e):us})):this.initialStateValue||{};default:return e||us}},e.prototype.getResolvedPath=function(e){if(ps(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 Ga(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=Ya(this.states,(function(e){return e.initialStateValue||us}),(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=Dl(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=cl(t.target)&&ps(t.target)?Ua(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 Dl(this)?[this]:"compound"!==this.type||this.initial?Qa(Ja(this.initialStateValue).map((function(t){return e.getFromRelativePath(t)}))):(Fa||al(!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:Ya(this.states,(function(t,n){if(!e)return t.historyValue();var r=cl(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?Qa(Ja(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=wa(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 cl(a)?[n.getStateNode(a)]:Qa(Ja(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=Qa(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=wa(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,wa(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(!cl(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 tl(e)}(e.target),r="internal"in e?e.internal:!n||n.some((function(e){return cl(e)&&e[0]===t.delimiter})),i=this.machine.options.guards,o=this.resolveTarget(n),a=ya(ya({},e),{actions:kl(tl(e.actions)),cond:dl(e.cond,i),target:o,source:this,internal:r,eventType:e.event,toJSON:function(){return ya(ya({},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=ds,a=i[o],l=void 0===a?[]:a,s=Ca(i,["*"]);n=Qa(Object.keys(s).map((function(e){Fa||e!==cs||al(!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=gl(e,s[e]);return Fa||function(e,t,n){var r=n.slice(0,-1).some((function(e){return!("cond"in e)&&!("in"in e)&&(cl(e.target)||pl(e.target))})),i=t===cs?"the transient event":"event '".concat(t,"'");al(!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(gl(ds,l)))}else n=[];var c=this.config.always?gl("",this.config.always):[],d=this.config.onDone?gl(String(El(this.id)),this.config.onDone):[];Fa||al(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var u=Qa(this.invoke.map((function(e){var t=[];return e.onDone&&t.push.apply(t,ka([],$a(gl(String(Ol(e.id)),e.onDone)),!1)),e.onError&&t.push.apply(t,ka([],$a(gl(String(Ll(e.id)),e.onError)),!1)),t}))),p=this.after,h=Qa(ka(ka(ka(ka([],$a(d),!1),$a(u),!1),$a(n),!1),$a(c),!1).map((function(e){return tl(e).map((function(e){return r.formatTransition(e)}))})));try{for(var f=wa(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 fs,gs=function(e){return{type:Ra,assignment:e}};!function(e){e[e.Effect=1]="Effect",e[e.LayoutEffect=2]="LayoutEffect"}(fs||(fs={}));var vs="undefined"!=typeof document?K:function(){};function ms(e){var t=F.useRef();return t.current||(t.current={v:e()}),t.current.v}var xs=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},bs=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 ys=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},Cs=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 ws(e,t){(0,e.exec)(t.context,t._event.data,{action:e,state:t,_event:t._event})()}function $s(e){var t=Y([]),n=Y([]);vs((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=ys(function(e,t){var n,r,i=xs([[],[]],2),o=i[0],a=i[1];try{for(var l=bs(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===fs.Effect})),2),l=a[0],s=a[1];(r=t.current).push.apply(r,Cs([],ys(l.map((function(t){return[t,e]}))),!1)),(i=n.current).push.apply(i,Cs([],ys(s.map((function(t){return[t,e]}))),!1))}}));return function(){r.unsubscribe()}}),[]),vs((function(){for(;n.current.length;){var e=ys(n.current.shift(),2);ws(e[0],e[1])}})),W((function(){for(;t.current.length;){var e=ys(t.current.shift(),2);ws(e[0],e[1])}}))}var ks=function(){return ks=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},ks.apply(this,arguments)},Ss=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},Es=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 Os=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 Ls(e,t){void 0===t&&(t={});var n=J((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=ms((function(){return"function"==typeof e?e():e}));if("production"!==process.env.NODE_ENV&&"function"!=typeof e){var i=Es(G(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=Ss(t,["context","guards","actions","activities","services","delays","state"]),h=ms((function(){var e={context:o,guards:a,actions:l,activities:s,services:c,delays:d};return as(r.withConfig(e,(function(){return ks(ks({},r.context),o)})),ks({deferEvents:!0},p))}));return vs((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]),vs((function(){return h.start(u?ql.create(u):void 0),function(){h.stop()}}),[]),vs((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=Os(G((function(){var e=r.machine.initialState;return t.state?ql.create(t.state):e})),2),o=i[0],a=i[1];return[o,r.send,r]}function _s(){return _s=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},_s.apply(null,arguments)}function Ts(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 Rs={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(Rs.str(e)||Rs.num(e))return e===t;if(Rs.obj(e)&&Rs.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!Rs.und(n)||e===t}};function Ps(e,t){return Rs.und(e)||Rs.nul(e)?t:e}function Ds(e){return Rs.und(e)?[]:Rs.arr(e)?e:[e]}function Ms(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 Rs.fun(e)?e(...n):e}function Ns(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,Ts(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(Rs.und(t))return _s({to:t},e);const n=Object.keys(e).reduce(((n,r)=>Rs.und(t[r])?_s({},n,{[r]:e[r]}):n),{});return _s({to:t},n)}class js{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 Vs extends js{constructor(){super(...arguments),this.payload=[],this.attach=()=>this.payload.forEach((e=>e instanceof js&&e.addChild(this))),this.detach=()=>this.payload.forEach((e=>e instanceof js&&e.removeChild(this)))}}class Is extends js{constructor(){super(...arguments),this.payload={},this.attach=()=>Object.values(this.payload).forEach((e=>e instanceof js&&e.addChild(this))),this.detach=()=>Object.values(this.payload).forEach((e=>e instanceof js&&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 js)&&(t[n]=r instanceof js?r[e?"getAnimatedValue":"getValue"]():r)}return t}getAnimatedValue(){return this.getValue(!0)}}let zs,As;let Hs,Bs=e=>"undefined"!=typeof window?window.requestAnimationFrame(e):-1;let Fs,Zs=()=>Date.now();class qs extends Is{constructor(e,t){super(),this.update=void 0,this.payload=e.style?_s({},e,{style:Fs(e.style)}):e,this.update=t,this.attach()}}let Gs=!1;const Ws=new Set,Us=()=>{if(!Gs)return!1;let e=Zs();for(let t of Ws){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 js,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||(Ws.delete(t),t.stop(!0))}return Ws.size?Bs(Us):Gs=!1,Gs};function Xs(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return Xs({range:e,output:t,extrapolate:n});if(Hs&&"string"==typeof e.output[0])return Hs(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 Ys extends Vs{constructor(e,t,n,r){super(),this.calc=void 0,this.payload=e instanceof Vs&&!(e instanceof Ys)?e.getPayload():Array.isArray(e)?e:[e],this.calc=Xs(t,n,r)}getValue(){return this.calc(...this.payload.map((e=>e.getValue())))}updateConfig(e,t,n){this.calc=Xs(e,t,n)}interpolate(e,t,n){return new Ys(this,e,t,n)}}const Ks=(e,t,n)=>e&&new Ys(e,t,n);function Js(e,t){"update"in e?t.add(e):e.getChildren().forEach((e=>Js(e,t)))}class Qs extends js{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&&Js(this,this.animatedStyles),this.animatedStyles.forEach((e=>e.update()))}clearStyles(){this.animatedStyles.clear()}getValue(){return this.value}interpolate(e,t,n){return new Ys(this,e,t,n)}}class ec extends Vs{constructor(e){super(),this.payload=e.map((e=>new Qs(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 Ys(this,e,t)}}let tc=0,nc=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=tc++}update(e){if(!e)return this;const t=Ns(e),n=t.delay,r=void 0===n?0:n,i=t.to,o=Ts(t,["delay","to"]);if(Rs.arr(i)||Rs.fun(i))this.queue.push(_s({},o,{delay:r,to:i}));else if(i){let e={};Object.entries(i).forEach((t=>{let n=t[0],i=t[1];const a=_s({to:{[n]:i},delay:Ms(r,n)},o),l=e[a.delay]&&e[a.delay].to;e[a.delay]=_s({},e[a.delay],a,{to:_s({},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;Rs.obj(n)&&(this.merged=_s({},n,this.merged)),Rs.obj(i)&&(this.merged=_s({},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=Ts(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=Rs.arr(a.to)||Rs.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 Rs.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,Ws.has(t)||Ws.add(t),Gs||(Gs=!0,Bs(Us));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,Ws.has(t)&&Ws.delete(t)),this}runAsync(e,t){var n=this;e.delay;let r=Ts(e,["delay"]);const i=this.local;let o=Promise.resolve(void 0);if(Rs.arr(r.to))for(let e=0;e<r.to.length;e++){const t=e,n=_s({},r,Ns(r.to[t]));Rs.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(Rs.fun(r.to)){let e,t=0;o=o.then((()=>r.to((n=>{const o=_s({},r,Ns(n));if(Rs.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=_s({},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=_s({},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=Rs.num(i),s=Rs.str(i)&&!i.startsWith("#")&&!/\d/.test(i)&&!As[i],c=Rs.arr(i),p=!a&&!c&&!s;let f=Rs.und(r[n])?i:r[n],g=a||c||s?i:1,v=Ms(l,n);h&&(g=h.animations[n].parent);let m,x=o.parent,b=o.interpolation,y=Ds(h?g.getPayload():g),C=i;p&&(C=Hs({range:[0,1],output:[i,i]})(1));let w=b&&b.getValue();const $=!Rs.und(x)&&o.animatedValues.some((e=>!e.done)),k=!Rs.equ(C,w),S=!Rs.equ(C,o.previous),E=!Rs.equ(v,o.config);if(d||S&&k||E){if(a||s)x=b=o.parent||new Qs(f);else if(c)x=b=o.parent||new ec(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 Qs(0);const t={output:[e,i]};o.interpolation?(b=o.interpolation,o.interpolation.updateConfig(t)):b=x.interpolate(t)}return y=Ds(h?g.getPayload():g),m=Ds(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=Zs(),e.done=!1,e.animatedStyles.clear()})),Ms(u,n)&&x.setValue(p?g:i,!1),_s({},e,{[n]:_s({},o,{name:n,parent:x,interpolation:b,animatedValues:m,toValues:y,previous:C,config:v,fromValues:Ds(x.getValue()),immediate:Ms(u,n),initialVelocity:Ps(v.velocity,0),clamp:Ps(v.clamp,!1),precision:Ps(v.precision,.01),tension:Ps(v.tension,170),friction:Ps(v.friction,26),mass:Ps(v.mass,1),duration:v.duration,easing:Ps(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,_s({},e,{[n]:_s({},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 rc=e=>{const t=Rs.fun(e),n=((e,t)=>{const n=Y(!1),r=Y(),i=Rs.fun(t),o=ee((()=>{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 nc,a=i?Ms(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,te(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=ee((()=>e=>r.current.map(((t,n)=>{t.update(i?Ms(e,n,t):e[n]),l||t.start()}))),[e]);W((()=>{n.current?i||s(t):l||r.current.forEach((e=>e.start()))})),W((()=>(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 ic extends Is{constructor(e){void 0===e&&(e={}),super(),!e.transform||e.transform instanceof js||(e=zs.transform(e)),this.payload=e}}const oc={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},ac="[-+]?\\d*\\.?\\d+",lc=ac+"%";function sc(){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 cc=new RegExp("rgb"+sc(ac,ac,ac)),dc=new RegExp("rgba"+sc(ac,ac,ac,ac)),uc=new RegExp("hsl"+sc(ac,lc,lc)),pc=new RegExp("hsla"+sc(ac,lc,lc,ac)),hc=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,fc=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,gc=/^#([0-9a-fA-F]{6})$/,vc=/^#([0-9a-fA-F]{8})$/;function mc(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 xc(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=mc(i,r,e+1/3),a=mc(i,r,e),l=mc(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function bc(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function yc(e){return(parseFloat(e)%360+360)%360/360}function Cc(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function wc(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=gc.exec(e))?parseInt(t[1]+"ff",16)>>>0:oc.hasOwnProperty(e)?oc[e]:(t=cc.exec(e))?(bc(t[1])<<24|bc(t[2])<<16|bc(t[3])<<8|255)>>>0:(t=dc.exec(e))?(bc(t[1])<<24|bc(t[2])<<16|bc(t[3])<<8|Cc(t[4]))>>>0:(t=hc.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=vc.exec(e))?parseInt(t[1],16)>>>0:(t=fc.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=uc.exec(e))?(255|xc(yc(t[1]),wc(t[2]),wc(t[3])))>>>0:(t=pc.exec(e))?(xc(yc(t[1]),wc(t[2]),wc(t[3]))|Cc(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 kc=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Sc=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Ec=new RegExp(`(${Object.keys(oc).join("|")})`,"g");let Oc={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 Lc=["Webkit","Ms","Moz","O"];function _c(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Oc.hasOwnProperty(e)&&Oc[e]?(""+t).trim():t+"px"}Oc=Object.keys(Oc).reduce(((e,t)=>(Lc.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),Oc);const Tc={};var Rc;Fs=e=>new ic(e),Rc=e=>{const t=e.output.map((e=>e.replace(Sc,$c))).map((e=>e.replace(Ec,$c))),n=t[0].match(kc).map((()=>[]));t.forEach((e=>{e.match(kc).forEach(((e,t)=>n[t].push(+e)))}));const r=t[0].match(kc).map(((t,r)=>Xs(_s({},e,{output:n[r]}))));return e=>{let n=0;return t[0].replace(kc,(()=>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})`))}},Hs=Rc,As=oc,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=Ts(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=_c(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:Tc[t]||(Tc[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())));void 0!==e.getAttribute(n)&&e.setAttribute(n,s[t])}}}),(e=>e));var Pc;const Dc=(Pc=e=>q(((t,n)=>{const r=function(){const e=G(!1)[1];return J((()=>e((e=>!e))),[])}(),i=Y(!0),o=Y(null),a=Y(null),l=J((e=>{const t=o.current;o.current=new qs(e,(()=>{let e=!1;a.current&&(e=zs.fn(a.current,o.current.getAnimatedValue())),a.current&&!1!==e||r()})),t&&t.detach()}),[]);W((()=>()=>{i.current=!1,o.current&&o.current.detach()}),[]),te(n,(()=>(e=>e.current)(a))),l(t);const s=o.current.getValue();s.scrollTop,s.scrollLeft;const c=Ts(s,["scrollTop","scrollLeft"]),d=(u=e,!Rs.fun(u)||u.prototype instanceof Z.Component?e=>a.current=function(e,t){return t&&(Rs.fun(t)?t(e):Rs.obj(t)&&(t.current=e)),e}(e,n):void 0);var u;return Z.createElement(e,_s({},c,{ref:d}))})),e=>(Rs.arr(e)?e:Object.keys(e)).reduce(((e,t)=>{const n=t;return e[n]=Pc(n),e}),Pc))(["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 Mc(e,t){return e.map((function(e,n){return e+t[n]}))}function Nc(e,t){return e.map((function(e,n){return e-t[n]}))}function jc(e){return Math.hypot.apply(Math,e)}function Vc(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function Ic(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?-Ic(t-e,n-t,r)+t:e>n?+Ic(e-n,n-t,r)+n:e}function Ac(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 Hc(){return Hc=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},Hc.apply(this,arguments)}function Bc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Fc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zc(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 qc(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 Zc(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)?Zc(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 Gc(){}function Wc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?Gc:1===t.length?t[0]:function(){for(var e,n,r=qc(t);!(n=r()).done;){e=n.value.apply(this,arguments)||e}return e}}function Uc(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 Xc(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 Yc(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]=Yc(e[a],l);break;case"boolean":l&&(n[a]=e[a])}}return n}var Kc=Hc({},{threshold:function(e){return void 0===e&&(e=0),Uc(e)},rubberband:function(e){switch(void 0===e&&(e=0),e){case!0:return Uc(.15);case!1:return Uc(0);default:return Uc(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:Uc(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 Kc.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]]}}),Jc="undefined"!=typeof window&&window.document&&window.document.createElement,Qc={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=Jc?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}}},ed=Hc({},Kc,{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=Uc(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),Uc(e)},swipeDistance:function(e){return void 0===e&&(e=60),Uc(e)},delay:function(e){switch(void 0===e&&(e=0),e){case!0:return 180;case!1:return 0;default:return e}}});function td(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={}),Yc(e,Qc)}({domTarget:t,eventOptions:n,window:r,enabled:i});return a.drag=function(e){return void 0===e&&(e={}),Yc(e,ed)}(o),a}function nd(e){return Hc({_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:Gc,canceled:!1,memo:void 0,args:void 0},e)}function rd(){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:nd({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:nd({da:[0,0],vdva:[0,0],origin:void 0,turns:0}),wheel:nd({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),move:nd({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),scroll:nd({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0})}}var id=new Map,od=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=Hc({},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]?ad(h[0],o[0]):d[0],g=!1===d[1]?ad(h[1],o[1]):d[1],v=this.checkIntentionality([f,g],h);if(v._blocked)return Hc({},v,{_movement:h,delta:[0,0]});var m,x,b,y,C=v._intentional,w=h;(!1!==C[0]&&!1===d[0]&&(x=Xc(n,this.state),m=Xc(r,this.state),s[0]=x[0],l[0]=m[0]),!1!==C[1]&&!1===d[1])&&(x=null!=(b=x)?b:Xc(n,this.state),m=null!=(y=m)?y:Xc(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=Mc($,u),S=c?i:[0,0];return $=ld(l,Mc($,s),S),Hc({},v,{intentional:!1!==C[0]||!1!==C[1],_initial:s,_movement:w,movement:$,values:e,offset:ld(l,k,S),delta:Nc($,p)})},t.clean=function(){this.clearTimeout()},Ac(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 ad(e,t){return Math.abs(e)>=t&&Vc(e)*t}function ld(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 sd(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 cd(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,Hc({},t,{event:n})].concat(i))}}var dd=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=qc(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];hd(e,c[0],cd(c[1],Hc({},t.state.shared,{args:r})))}return t.config.domTarget?function(e,t){var n=e.config,r=e.domListeners,i=pd(n);if(!i)throw new Error("domTarget must be defined");var o=n.eventOptions;gd(i,ud(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,Wc.apply(void 0,d)])}fd(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]=Wc.apply(void 0,d)}return r}(t,e)},this.effect=function(){return t.config.domTarget&&t.bind(),t.clean},this.clean=function(){var e=pd(t.config),n=t.config.eventOptions;e&&gd(e,ud(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){gd(n,i[o],r)}e.windowListeners={}}(t)},this.state=rd(),this.timeouts={},this.domListeners=[],this.windowListeners={}};function ud(e){return void 0===e&&(e=[]),e.splice(0,e.length)}function pd(e){var t=e.domTarget;return t&&"current"in t?t.current:t}function hd(e,t,n){e[t]||(e[t]=[]),e[t].push(n)}function fd(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,i=qc(t);!(r=i()).done;){var o=r.value,a=o[0],l=o[1];e.addEventListener(a,l,n)}}function gd(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,i=qc(t);!(r=i()).done;){var o=r.value,a=o[0],l=o[1];e.removeEventListener(a,l,n)}}function vd(e,t,n){void 0===n&&(n={});var r=function(e){var t=new Set;e.drag&&t.add(id.get("drag"));e.wheel&&t.add(id.get("wheel"));e.scroll&&t.add(id.get("scroll"));e.move&&t.add(id.get("move"));e.pinch&&t.add(id.get("pinch"));e.hover&&t.add(id.get("hover"));return t}(e),i=Z.useMemo((function(){return new dd(r)}),[]);return i.config=t,i.handlers=e,i.nativeRefs=n,Z.useEffect(i.effect,[]),i.config.domTarget?md:i.bind}function md(){"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 xd(e){if("touches"in e){var t=e.targetTouches,n=e.changedTouches;return t.length>0?t:n}return null}function bd(e){var t="buttons"in e?e.buttons:0,n=xd(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 yd(e){var t=xd(e),n=t?t[0]:e;return[n.clientX,n.clientY]}var Cd=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&&(gd(r.window,i[t],r.eventOptions),fd(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(Fc(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=bd(e);if(n.down){t.updateSharedState(n);var r=yd(e),i=t.getKinematics(r,e),o=sd(Fc(t),e),a=t.state._isTap,l=jc(i._movement);a&&l>=3&&(a=!1),t.updateGestureState(Hc({},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=Hc({},sd(Fc(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]=Vc(i)),!1!==u&&Math.abs(o)>f&&Math.abs(s)>m&&(b[1]=Vc(o))),t.updateGestureState(Hc({},x,{tap:n,swipe:b})),t.fireGestureHandler(!0===n)}},t.clean=function(){e.prototype.clean.call(Fc(t)),t.state._delayedEvent=!1,function(e,t){var n=e.config,r=e.windowListeners;n.window&&(gd(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}Bc(t,e);var n=t.prototype;return n.startDrag=function(e){var t=yd(e);this.updateSharedState(bd(e)),this.updateGestureState(Hc({},function(e,t,n){var r=e.state.offset,i=n.timeStamp;return Hc({},rd()[e.stateKey],{_active:!0,values:t,initial:t,offset:r,lastOffset:r,startTime:i})}(this,t,e),sd(this,e,!0),{_pointerId:e.pointerId,cancel:this.onCancel})),this.updateGestureState(this.getMovement(t)),this.fireGestureHandler()},n.addBindings=function(e){(hd(e,"onPointerDown",this.onDragStart),this.config.filterTaps)&&hd(e,this.controller.config.eventOptions.capture?"onClick":"onClickCapture",this.onClick)},t}(function(e){function t(){return e.apply(this,arguments)||this}Bc(t,e);var n=t.prototype;return n.getInternalMovement=function(e,t){return Nc(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=jc(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:jc(e),direction:s}}(n.movement,n.delta,r))}return n},n.mapStateValues=function(e){return{xy:e.values,vxvy:e.velocities}},t}(od));function wd(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(!wd(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(!wd(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||wd(e[i[r]],t[i[r]])))return!1;return!0}return e!=e&&t!=t}function $d(e,t){try{return wd(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 kd(e,t){void 0===t&&(t={}),id.set("drag",Cd);var n=Y();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}}(td,$d)),vd({drag:e},n.current(t))}
2307
+ ***************************************************************************** */var ba,ya,Ca=function(){return Ca=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},Ca.apply(this,arguments)};function wa(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 $a(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 ka(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 Sa(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"}(ba||(ba={})),function(e){e.Parent="#_parent",e.Internal="#_internal"}(ya||(ya={}));var Ea=ba.Start,Oa=ba.Stop,La=ba.Raise,_a=ba.Send,Ta=ba.Cancel,Ra=ba.NullEvent,Pa=ba.Assign;ba.After,ba.DoneState;var Da=ba.Log,Ma=ba.Init,Na=ba.Invoke;ba.ErrorExecution;var ja,Va=ba.ErrorPlatform,Ia=ba.ErrorCustom,za=ba.Update,Aa=ba.Choose,Ha=ba.Pure,Ba={},Fa="xstate.guard",Za="production"===process.env.NODE_ENV;function qa(e,t,n){void 0===n&&(n=".");var r=Ua(e,n),i=Ua(t,n);return dl(i)?!!dl(r)&&i===r:dl(r)?r in i:Object.keys(r).every((function(e){return e in i&&qa(r[e],i[e])}))}function Ga(e){try{return dl(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 Wa(e,t){try{return sl(e)?e:e.toString().split(t)}catch(t){throw new Error("'".concat(e,"' is not a valid state path."))}}function Ua(e,t){return"object"==typeof(n=e)&&"value"in n&&"context"in n&&"event"in n&&"_event"in n?e.value:sl(e)?Xa(e):"string"!=typeof e?e:Xa(Wa(e,t));var n}function Xa(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 Ya(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 Ka(e,t,n){var r,i,o={};try{for(var a=$a(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 Ja=function(e){return function(t){var n,r,i=t;try{for(var o=$a(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 Qa(e){return e?dl(e)?[[e]]:el(Object.keys(e).map((function(t){var n=e[t];return"string"==typeof n||n&&Object.keys(n).length?Qa(e[t]).map((function(e){return[t].concat(e)})):[[t]]}))):[[]]}function el(e){var t;return(t=[]).concat.apply(t,Sa([],ka(e),!1))}function tl(e){return sl(e)?e:[e]}function nl(e){return void 0===e?[]:tl(e)}function rl(e,t,n){var r,i;if(cl(e))return e(t,n.data);var o={};try{for(var a=$a(Object.keys(e)),l=a.next();!l.done;l=a.next()){var s=l.value,c=e[s];cl(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 il(e){return e instanceof Promise||!(null===e||!cl(e)&&"object"!=typeof e||!cl(e.then))}function ol(e,t){return Ya(e.states,(function(e,n){if(e){var r=(dl(t)?void 0:t[n])||(e?e.current:void 0);if(r)return{current:r,states:ol(e,r)}}}))}function al(e,t,n,r){Za||ll(!!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(cl(a))s=a(e,t.data,l);else try{for(var c=$a(Object.keys(a)),d=c.next();!d.done;d=c.next()){var u=d.value,p=a[u];s[u]=cl(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 ll=function(){};function sl(e){return Array.isArray(e)}function cl(e){return"function"==typeof e}function dl(e){return"string"==typeof e}function ul(e,t){if(e)return dl(e)?{type:Fa,name:e,predicate:t?t[e]:void 0}:cl(e)?{type:Fa,name:e.name,predicate:e}:e}Za||(ll=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 pl=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function hl(e){return!!e&&"__xstatenode"in e}function fl(e,t){return dl(e)||"number"==typeof e?Ca({type:e},t):e}function gl(e,t){if(!dl(e)&&"$$type"in e&&"scxml"===e.$$type)return e;var n=fl(e);return Ca({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function vl(e,t){return tl(t).map((function(t){return void 0===t||"string"==typeof t||hl(t)?{target:t,event:e}:Ca(Ca({},t),{event:e})}))}function ml(e,t,n,r,i){var o=e.options.guards,a={state:i,cond:t,_event:r};if(t.type===Fa)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 xl(e){return"string"==typeof e?{type:e}:e}function bl(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 yl(e,t){return"".concat(e,":invocation[").concat(t,"]")}function Cl(e){return(e.type===La||e.type===_a&&e.to===ya.Internal)&&"number"!=typeof e.delay}(ja={})[pl]=function(){return this},ja[Symbol.observable]=function(){return this};var wl=gl({type:Ma});function $l(e,t){return t&&t[e]||void 0}function kl(e,t){var n;if(dl(e)||"number"==typeof e)n=cl(r=$l(e,t))?{type:e,exec:r}:r||{type:e,exec:void 0};else if(cl(e))n={type:e.name||e.toString(),exec:e};else{var r;if(cl(r=$l(e.type,t)))n=Ca(Ca({},e),{exec:r});else if(r){var i=r.type||e.type;n=Ca(Ca(Ca({},r),e),{type:i})}else n=e}return n}var Sl=function(e,t){return e?(sl(e)?e:[e]).map((function(e){return kl(e,t)})):[]};function El(e){var t=kl(e);return Ca(Ca({id:dl(e)?e:t.id},t),{type:t.type})}function Ol(e,t){var n="".concat(ba.DoneState,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function Ll(e,t){var n="".concat(ba.DoneInvoke,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function _l(e,t){var n="".concat(ba.ErrorPlatform,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function Tl(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=$a(e),o=i.next();!o.done;o=i.next())for(var a=o.value,l=0;l<a.actions.length;)a.actions[l].type!==Pa?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?al(n,r,l,t):n,c=a?[n]:void 0,d=[];function u(i,l){var u;switch(l.type){case La:var p=function(e,t,n,r){var i,o={_event:n},a=gl(cl(e.event)?e.event(t,n.data,o):e.event);if(dl(e.delay)){var l=r&&r[e.delay];i=cl(l)?l(t,n.data,o):l}else i=cl(e.delay)?e.delay(t,n.data,o):e.delay;return Ca(Ca({},e),{type:La,_event:a,delay:i})}(l,s,r,e.options.delays);return o&&"number"==typeof p.delay&&o(p,s,r),p;case _a:var h=function(e,t,n,r){var i,o={_event:n},a=gl(cl(e.event)?e.event(t,n.data,o):e.event);if(dl(e.delay)){var l=r&&r[e.delay];i=cl(l)?l(t,n.data,o):l}else i=cl(e.delay)?e.delay(t,n.data,o):e.delay;var s=cl(e.to)?e.to(t,n.data,o):e.to;return Ca(Ca({},e),{to:s,_event:a,event:a.data,delay:i})}(l,s,r,e.options.delays);if(!Za){var f=l.delay;ll(!dl(f)||"number"==typeof h.delay,"No delay reference for delay expression '".concat(f,"' was found on machine '").concat(e.id,"'"))}return o&&h.to!==ya.Internal&&("entry"===i?d.push(h):o(h,s,r)),h;case Da:var g=function(e,t,n){return Ca(Ca({},e),{value:dl(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})}(l,s,r);return null==o||o(g,s,r),g;case Aa:if(!(b=null===(u=l.conds.find((function(n){var i=ul(n.cond,e.options.guards);return!i||ml(e,i,s,r,o?void 0:t)})))||void 0===u?void 0:u.actions))return[];var v=ka(Tl(e,t,s,r,[{type:i,actions:Sl(nl(b),e.options.actions)}],o,a),2),m=v[0],x=v[1];return s=x,null==c||c.push(s),m;case Ha:var b;if(!(b=l.get(s,r.data)))return[];var y=ka(Tl(e,t,s,r,[{type:i,actions:Sl(nl(b),e.options.actions)}],o,a),2),C=y[0],w=y[1];return s=w,null==c||c.push(s),C;case Oa:g=function(e,t,n){var r=cl(e.activity)?e.activity(t,n.data):e.activity,i="string"==typeof r?{id:r}:r;return{type:ba.Stop,activity:i}}(l,s,r);return null==o||o(g,n,r),g;case Pa:s=al(s,r,[l],o?void 0:t),null==c||c.push(s);break;default:var $=kl(l,e.options.actions),k=$.exec;if(o)o($,s,r);else if(k&&c){var S=c.length-1,E=Ca(Ca({},$),{exec:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];k.apply(void 0,Sa([c[S]],ka(t),!1))}});$=E}return $}}var p=el(i.map((function(e){var t,n,i=[];try{for(var a=$a(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 Rl=function(e,t){return t(e)};function Pl(e){var t;return(t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}})[pl]=function(){return this},t}function Dl(e,t,n){var r=Pl(t);if(r.deferred=!0,hl(e)){var i=r.state=Rl(void 0,(function(){return(n?e.withContext(n):e).initialState}));r.getSnapshot=function(){return i}}return r}var Ml=function(e){return"atomic"===e.type||"final"===e.type};function Nl(e){return Object.keys(e.states).map((function(t){return e.states[t]}))}function jl(e){return Nl(e).filter((function(e){return"history"!==e.type}))}function Vl(e){var t=[e];return Ml(e)?t:t.concat(el(jl(e).map(Vl)))}function Il(e,t){var n,r,i,o,a,l,s,c,d=Al(new Set(e)),u=new Set(t);try{for(var p=$a(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=Al(u);try{for(var v=$a(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,$a(jl($))),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=$a(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 zl(e,t){var n=t.get(e);if(!n)return{};if("compound"===e.type){var r=n[0];if(!r)return{};if(Ml(r))return r.key}var i={};return n.forEach((function(e){i[e.key]=zl(e,t)})),i}function Al(e){var t,n,r=new Map;try{for(var i=$a(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 Hl(e,t){return zl(e,Al(Il([e],t)))}function Bl(e,t){return Array.isArray(e)?e.some((function(e){return e===t})):e instanceof Set&&e.has(t)}function Fl(e,t){return"compound"===t.type?jl(t).some((function(t){return"final"===t.type&&Bl(e,t)})):"parallel"===t.type&&jl(t).every((function(t){return Fl(e,t)}))}function Zl(e){return new Set(el(e.map((function(e){return e.tags}))))}function ql(e,t){if(e===t)return!0;if(void 0===e||void 0===t)return!1;if(dl(e)||dl(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((function(n){return ql(e[n],t[n])}))}var Gl=function(){function e(e){var t,n,r=this;this.actions=[],this.activities=Ba,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||Ba,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 Sa([],ka(new Set(el(Sa([],ka(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:wl,_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=wl;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="."),dl(e))return[e];var r=Object.keys(e);return r.concat.apply(r,Sa([],ka(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=wa(e,["configuration","transitions","tags","machine"]);return Ca(Ca({},n),{tags:Array.from(t)})},e.prototype.matches=function(e){return qa(e,this.value)},e.prototype.hasTag=function(e){return this.tags.has(e)},e.prototype.can=function(e){var t;Za&&ll(!!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}(),Wl={deferEvents:!1},Ul=function(){function e(e){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=Ca(Ca({},Wl),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}(),Xl=new Map,Yl=0,Kl=function(){return"x:".concat(Yl++)},Jl=function(e,t){return Xl.set(e,t),e},Ql=function(e){return Xl.get(e)},es=function(e){Xl.delete(e)};function ts(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void(Za||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 ns(e){if(ts()){var t=function(){var e=ts();if(e&&"__xstate__"in e)return e.__xstate__}();t&&t.register(e)}}function rs(e,t){void 0===t&&(t={});var n=e.initialState,r=new Set,i=[],o=!1,a=function(e){var t;return Ca(((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[pl]=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=bl(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 is,os={sync:!1,autoForward:!1};!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(is||(is={}));var as=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=is.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(e,t){if(sl(e))return r.batch(e),r.state;var n=gl(fl(e,t));if(r.status===is.Stopped)return Za||ll(!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!==is.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===ya.Parent||r.parent.id===t),a=o?r.parent:dl(t)?t===ya.Internal?r:r.children.get(t)||Ql(t):(i=t)&&"function"==typeof i.send?t:void 0;if(a)if("machine"in a){if(r.status!==is.Stopped||r.parent!==a||r.state.done){var l=Ca(Ca({},e),{name:e.name===Ia?"".concat(_l(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,"'."));Za||ll(!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||$l(e.type,i),a=cl(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 La:var l=e;r.defer(l);break;case _a:var s=e;if("number"==typeof s.delay)return void r.defer(s);s.to?r.sendTo(s._event,s.to,n===wl):r.send(s._event);break;case Ta:r.cancel(e.sendId);break;case Ea:if(r.status!==is.Running)return;var c=e.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[c.id||c.type])break;if(c.type===ba.Invoke){var d=xl(c.src),u=r.machine.options.services?r.machine.options.services[d.type]:void 0,p=c.id,h=c.data;Za||ll(!("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(Za||ll(!1,"No service found for invocation '".concat(c.src,"' in machine '").concat(r.machine.id,"'.")));var g=h?rl(h,t,n):void 0;if("string"==typeof u)return;var v=cl(u)?u(t,n.data,{data:g,src:d,meta:c.meta}):u;if(!v)return;var m=void 0;hl(v)&&(v=g?v.withContext(g):v,m={autoForward:f}),r.spawn(v,p,m)}else r.spawnActivity(c);break;case Oa:r.stopChild(e.activity.id);break;case Da:var x=e,b=x.label,y=x.value;b?r.logger(b,y):r.logger(y);break;default:Za||ll(!1,"No implementation found for action type '".concat(e.type,"'"))}};var i=Ca(Ca({},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 Ul({deferEvents:this.options.deferEvents}),this.sessionId=Kl()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this;return this._initialState?this._initialState:Rl(this,(function(){return e._initialState=e.machine.initialState,e._initialState}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return Za||ll(this.status!==is.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=$a(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!==wl||!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=$a(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=$a(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=$a(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?rl(x.doneData,e.context,t):void 0;this._doneEvent=Ll(this.id,b);try{for(var y=$a(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(),es(this.sessionId)}},e.prototype.onTransition=function(e){return this.listeners.add(e),this.status===is.Running&&e(this.state,this.state.event),this},e.prototype.subscribe=function(e,t,n){var r=this,i=bl(e,t,n);this.listeners.add(i.next),this.status!==is.NotStarted&&i.next(this.state);var o=function(){r.doneListeners.delete(o),r.stopListeners.delete(o),i.complete()};return this.status===is.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===is.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===is.Running)return this;this.machine._init(),Jl(this.sessionId,this),this.initialized=!0,this.status=is.Running;var n=void 0===e?this.initialState:Rl(this,(function(){return"object"==typeof(n=e)&&null!==n&&"value"in n&&"_event"in n?t.machine.resolveState(e):t.machine.resolveState(Gl.from(e,t.machine.context));var n}));return this.options.devTools&&this.attachDev(),this.scheduler.initialize((function(){t.update(n,wl)})),this},e.prototype._stopChildren=function(){this.children.forEach((function(e){cl(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=$a(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=$a(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=$a(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=$a(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=is.Stopped,this._initialState=void 0;try{for(var b=$a(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 Ul({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=gl({type:"xstate.stop"}),r=Rl(e,(function(){var t=el(Sa([],ka(e.state.configuration),!1).sort((function(e,t){return t.order-e.order})).map((function(t){return Sl(t.onExit,e.machine.options.actions)}))),r=ka(Tl(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 Gl({value:e.state.value,context:o,_event:n,_sessionid:e.sessionId,historyValue:void 0,history:e.state,actions:i.filter((function(e){return!Cl(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(),es(e.sessionId)}})),this},e.prototype.batch=function(e){var t=this;if(this.status===is.NotStarted&&this.options.deferEvents)Za||ll(!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!==is.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=gl(e);t.forward(r),o=Rl(t,(function(){return t.machine.transition(o,r,void 0,n||void 0)})),l.push.apply(l,Sa([],ka(t.machine.config.predictableActionArguments?o.actions:o.actions.map((function(e){return function(e,t){var n=e.exec;return Ca(Ca({},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=$a(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,gl(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=gl(e);if(0===r.name.indexOf(Va)&&!this.state.nextEvents.some((function(e){return 0===e.indexOf(Va)})))throw r.data.data;return Rl(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=$a(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),cl(t.stop)&&t.stop())},e.prototype.spawn=function(e,t,n){if(this.status!==is.Running)return Dl(e,t);if(il(e))return this.spawnPromise(Promise.resolve(e),t);if(cl(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&&cl(e.subscribe)}catch(e){return!1}}(e))return this.spawnObservable(e,t);if(hl(e))return this.spawnMachine(e,Ca(Ca({},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,Ca(Ca({},this.options),{parent:this,id:n.id||t.id})),o=Ca(Ca({},os),n);o.sync&&i.onTransition((function(e){r.send(za,{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(gl(e,{origin:i.id}))})).start(),a},e.prototype.spawnBehavior=function(e,t){var n=rs(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(gl(Ll(t,e),{origin:t})))}),(function(e){if(!o){i.removeChild(t);var n=_l(t,e);try{i.send(gl(n,{origin:t}))}catch(r){!function(e,t,n){if(!Za){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=bl(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}})[pl]=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(gl(e,{origin:t}))}),(function(e){l.add(e)}))}catch(e){this.send(_l(t,e))}if(il(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=bl(e);return s.add(t.next),{unsubscribe:function(){s.delete(t.next)}}},stop:function(){a=!0,cl(i)&&i()},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[pl]=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(gl(e,{origin:t}))}),(function(e){i.removeChild(t),i.send(gl(_l(t,e),{origin:t}))}),(function(){i.removeChild(t),i.send(gl(Ll(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}}})[pl]=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 Za||ll(!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}}})[pl]=function(){return this},n))},e.prototype.attachDev=function(){var e=ts();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(Ca(Ca({name:this.id,autoPause:!0,stateSanitizer:function(e){return{value:e.value,context:e.context,actions:e.actions}}},t),{features:Ca({jump:!1,skip:!1},t?t.features:void 0)}),this.machine),this.devTools.init(this.state)}ns(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[pl]=function(){return this},e.prototype.getSnapshot=function(){return this.status===is.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=ls,e}();function ls(e,t){return new as(e,t)}function ss(e){if("string"==typeof e){var t={type:e,toString:function(){return e}};return t}return e}function cs(e){return Ca(Ca({type:Na},e),{toJSON:function(){e.onDone,e.onError;var t=wa(e,["onDone","onError"]);return Ca(Ca({},t),{type:Na,src:ss(e.src)})}})}var ds="",us="*",ps={},hs=function(e){return"#"===e[0]},fs=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||Sa([this.machine.key],ka(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,Za||ll(!("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?Ya(this.config.states,(function(t,n){var r,i=new e(t,{},void 0,{parent:a,key:n});return Object.assign(a.idMap,Ca(((r={})[i.id]=i,r),i.idMap)),i})):ps;var l=0;!function e(t){var n,r;t.order=l++;try{for(var i=$a(Nl(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===ds})):ds in this.config.on),this.strict=!!this.config.strict,this.onEntry=nl(this.config.entry||this.config.onEntry).map((function(e){return kl(e)})),this.onExit=nl(this.config.exit||this.config.onExit).map((function(e){return kl(e)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=nl(this.config.invoke).map((function(e,t){var n,r;if(hl(e)){var i=yl(a.id,t);return a.machine.options.services=Ca(((n={})[i]=e,n),a.machine.options.services),cs({src:i,id:i})}if(dl(e.src)){i=e.id||yl(a.id,t);return cs(Ca(Ca({},e),{id:i,src:e.src}))}if(hl(e.src)||cl(e.src)){i=e.id||yl(a.id,t);return a.machine.options.services=Ca(((r={})[i]=e.src,r),a.machine.options.services),cs(Ca(Ca({id:i},e),{src:i}))}var o=e.src;return cs(Ca(Ca({id:yl(a.id,t)},e),{src:o}))})),this.activities=nl(this.config.activities).concat(this.invoke).map((function(e){return El(e)})),this.transition=this.transition.bind(this),this.tags=nl(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||Vl(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:Ca(Ca({},i),t.actions),activities:Ca(Ca({},o),t.activities),guards:Ca(Ca({},a),t.guards),services:Ca(Ca({},l),t.services),delays:Ca(Ca({},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 cl(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:Ya(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===ds,n=this.transitions.filter((function(n){var r=n.eventType===e;return t?r:r||n.eventType===us}));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(ba.After,"(").concat(e,")").concat(n)}(cl(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:_a,event:cl(e)?e:fl(e),delay:t?t.delay:void 0,id:t&&void 0!==t.id?t.id:cl(e)?e.name:Ga(e)}}(r,{delay:t})),e.onExit.push({type:Ta,sendId:r}),r},r=sl(t)?t.map((function(e,t){var r=n(e.delay,t);return Ca(Ca({},e),{event:r})})):el(Object.keys(t).map((function(e,r){var i=t[e],o=dl(i)?{target:i}:i,a=isNaN(+e)?e:+e,l=n(a,r);return nl(o).map((function(e){return Ca(Ca({},e),{event:l,delay:a})}))})));return r.map((function(t){var n=t.delay;return Ca(Ca({},e.formatTransition(t)),{delay:n})}))},e.prototype.getStateNodes=function(e){var t,n=this;if(!e)return[];var r=e instanceof Gl?e.value:Ua(e,this.delimiter);if(dl(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,Sa([],ka(el(o.map((function(e){return n.getStateNode(e).getStateNodes(r[e])})))),!1)),a},e.prototype.handles=function(e){var t=Ga(e);return this.events.includes(t)},e.prototype.resolveState=function(e){var t=e instanceof Gl?e:Gl.create(e),n=Array.from(Il([],this.getStateNodes(t.value)));return new Gl(Ca(Ca({},t),{value:this.resolve(t.value),configuration:n,done:Fl(n,this),tags:Zl(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=$a(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=el(u.map((function(e){return e.transitions})));if(!u.some((function(e){return e.transitions.length>0})))return this.next(t,n);var h=el(Object.keys(o).map((function(e){return o[e].configuration})));return{transitions:p,exitSet:el(u.map((function(e){return e.exitSet}))),configuration:h,source:t,actions:el(Object.keys(o).map((function(e){return o[e].actions})))}},e.prototype._transition=function(e,t,n){return dl(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,gl(t))},e.prototype.next=function(e,t){var n,r,i,o=this,a=t.name,l=[],s=[];try{for(var c=$a(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||(dl(h)&&hs(h)?e.matches(Ua(this.getStateNodeById(h).path,this.delimiter)):qa(Ua(h,this.delimiter),Ja(this.path.slice(0,-2))(e.value))),v=!1;try{v=!p||ml(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,Sa([],ka(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=el(s.map((function(t){return o.getRelativeStateNodes(t,e.historyValue)})));return{transitions:[i],exitSet:!!i.internal?[]:el(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?Il([],this.getStateNodes(o.value)):[],h=new Set;try{for(var f=$a(Array.from(e).sort((function(e,t){return e.order-t.order}))),g=f.next();!g.done;g=f.next()){(!Bl(p,x=g.value)||Bl(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=$a(p),m=v.next();!m.done;m=v.next()){var x;Bl(e,x=m.value)&&!Bl(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=el(b.map((function(e){var t=[];if("final"!==e.type)return t;var o=e.parent;if(!o.parent)return t;t.push(Ol(e.id,e.doneData),Ol(o.id,e.doneData?rl(e.doneData,r,i):void 0));var a=o.parent;return"parallel"===a.type&&jl(a).every((function(e){return Fl(n.configuration,e)}))&&t.push(Ol(a.id)),t}))),w=b.map((function(e){var t=e.onEntry,n=e.activities.map((function(e){return function(e){var t=El(e);return{type:ba.Start,activity:t,exec:void 0}}(e)}));return{type:"entry",actions:Sl(a?Sa(Sa([],ka(t),!1),ka(n),!1):Sa(Sa([],ka(n),!1),ka(t),!1),u.machine.options.actions)}})).concat({type:"state_done",actions:C.map((function(e){return function(e,t){return{type:La,event:"function"==typeof e?e:fl(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:Sl(Sa(Sa([],ka(e.onExit),!1),ka(e.activities.map((function(e){return function(e){var t=cl(e)?e:El(e);return{type:ba.Stop,activity:t,exec:void 0}}(e)}))),!1),u.machine.options.actions)}})).concat({type:"transition",actions:Sl(n.actions,this.machine.options.actions)}).concat(w);if(t){var k=Sl(el(Sa([],ka(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!Cl(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=gl(t);if(e instanceof Gl)i=void 0===n?e:this.resolveState(Gl.from(e,n));else{var l=dl(e)?this.resolve(Xa(this.getResolvedPath(e))):this.resolve(e),s=null!=n?n:this.machine.context;i=this.resolveState(Gl.from(l,s))}if(!Za&&a.name===us)throw new Error("An event cannot have the wildcard type ('".concat(us,"')"));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=Il([],this.getStateNodes(i.value)),u=c.configuration.length?Il(d,c.configuration):d;return c.configuration=Sa([],ka(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,Sa([],ka(o),!1)),e},e.prototype.resolveTransition=function(e,t,n,r,i){var o,a,l,s,c=this;void 0===i&&(i=wl);var d=e.configuration,u=!t||e.transitions.length>0,p=u?e.configuration:t?t.configuration:[],h=Fl(p,this),f=u?Hl(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?Ca({},t.activities):{};try{for(var x=$a(v),b=x.next();!b.done;b=x.next()){var y=b.value;try{for(var C=(l=void 0,$a(y.actions)),w=C.next();!w.done;w=C.next()){var $=w.value;$.type===Ea?m[$.activity.id||$.activity.type]=$:$.type===Oa&&(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=ka(Tl(this,t,n,i,v,r,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),O=E[0],L=E[1],_=ka(function(e,t){var n,r,i=ka([[],[]],2),o=i[0],a=i[1];try{for(var l=$a(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,Cl),2),T=_[0],R=_[1],P=O.filter((function(e){var t;return e.type===Ea&&(null===(t=e.activity)||void 0===t?void 0:t.type)===Na})),D=P.reduce((function(e,t){return e[t.activity.id]=function(e,t,n,r){var i,o=xl(e.src),a=null===(i=null==t?void 0:t.options.services)||void 0===i?void 0:i[o.type],l=e.data?rl(e.data,n,r):void 0,s=a?Dl(a,e.id,l):Pl(e.id);return s.meta=e,s}(t.activity,c.machine,L,i),e}),t?Ca({},t.children):{}),M=new Gl({value:f||t.value,context:L,_event:i,_sessionid:t?t._sessionid:null,historyValue:f?g?(k=g,S=f,{current:S,states:ol(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:Zl(p),machine:this}),N=n!==L;M.changed=i.name===za||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!==ds))return M;var I=M;if(!h)for(V&&(I=this.resolveRaisedTransition(I,{type:Ra},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||!ql(I.value,j.value):void 0);return I.changed=A,I.history=j,I},e.prototype.getStateNode=function(e){if(hs(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=hs(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&&hs(e))try{return this.getStateNodeById(e.slice(1))}catch(e){}for(var t=Wa(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||ps;switch(this.type){case"parallel":return Ya(this.initialStateValue,(function(t,r){return t?n.getStateNode(r).resolve(e[r]||t):ps}));case"compound":if(dl(e)){var r=this.getStateNode(e);return"parallel"===r.type||"compound"===r.type?((t={})[e]=r.initialStateValue,t):e}return Object.keys(e).length?Ya(e,(function(e,t){return e?n.getStateNode(t).resolve(e):ps})):this.initialStateValue||{};default:return e||ps}},e.prototype.getResolvedPath=function(e){if(hs(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 Wa(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=Ka(this.states,(function(e){return e.initialStateValue||ps}),(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=Ml(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=dl(t.target)&&hs(t.target)?Xa(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 Ml(this)?[this]:"compound"!==this.type||this.initial?el(Qa(this.initialStateValue).map((function(t){return e.getFromRelativePath(t)}))):(Za||ll(!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=ka(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:Ka(this.states,(function(t,n){if(!e)return t.historyValue();var r=dl(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?el(Qa(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=$a(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 dl(a)?[n.getStateNode(a)]:el(Qa(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=el(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=$a(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,$a(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(!dl(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 nl(e)}(e.target),r="internal"in e?e.internal:!n||n.some((function(e){return dl(e)&&e[0]===t.delimiter})),i=this.machine.options.guards,o=this.resolveTarget(n),a=Ca(Ca({},e),{actions:Sl(nl(e.actions)),cond:ul(e.cond,i),target:o,source:this,internal:r,eventType:e.event,toJSON:function(){return Ca(Ca({},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=us,a=i[o],l=void 0===a?[]:a,s=wa(i,["*"]);n=el(Object.keys(s).map((function(e){Za||e!==ds||ll(!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=vl(e,s[e]);return Za||function(e,t,n){var r=n.slice(0,-1).some((function(e){return!("cond"in e)&&!("in"in e)&&(dl(e.target)||hl(e.target))})),i=t===ds?"the transient event":"event '".concat(t,"'");ll(!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(vl(us,l)))}else n=[];var c=this.config.always?vl("",this.config.always):[],d=this.config.onDone?vl(String(Ol(this.id)),this.config.onDone):[];Za||ll(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var u=el(this.invoke.map((function(e){var t=[];return e.onDone&&t.push.apply(t,Sa([],ka(vl(String(Ll(e.id)),e.onDone)),!1)),e.onError&&t.push.apply(t,Sa([],ka(vl(String(_l(e.id)),e.onError)),!1)),t}))),p=this.after,h=el(Sa(Sa(Sa(Sa([],ka(d),!1),ka(u),!1),ka(n),!1),ka(c),!1).map((function(e){return nl(e).map((function(e){return r.formatTransition(e)}))})));try{for(var f=$a(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 gs,vs=function(e){return{type:Pa,assignment:e}};!function(e){e[e.Effect=1]="Effect",e[e.LayoutEffect=2]="LayoutEffect"}(gs||(gs={}));var ms="undefined"!=typeof document?K:function(){};function xs(e){var t=F.useRef();return t.current||(t.current={v:e()}),t.current.v}var bs=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},ys=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 Cs=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},ws=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 $s(e,t){(0,e.exec)(t.context,t._event.data,{action:e,state:t,_event:t._event})()}function ks(e){var t=Y([]),n=Y([]);ms((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=Cs(function(e,t){var n,r,i=bs([[],[]],2),o=i[0],a=i[1];try{for(var l=ys(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===gs.Effect})),2),l=a[0],s=a[1];(r=t.current).push.apply(r,ws([],Cs(l.map((function(t){return[t,e]}))),!1)),(i=n.current).push.apply(i,ws([],Cs(s.map((function(t){return[t,e]}))),!1))}}));return function(){r.unsubscribe()}}),[]),ms((function(){for(;n.current.length;){var e=Cs(n.current.shift(),2);$s(e[0],e[1])}})),W((function(){for(;t.current.length;){var e=Cs(t.current.shift(),2);$s(e[0],e[1])}}))}var Ss=function(){return Ss=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},Ss.apply(this,arguments)},Es=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},Os=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 Ls=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 _s(e,t){void 0===t&&(t={});var n=J((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=xs((function(){return"function"==typeof e?e():e}));if("production"!==process.env.NODE_ENV&&"function"!=typeof e){var i=Os(G(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=Es(t,["context","guards","actions","activities","services","delays","state"]),h=xs((function(){var e={context:o,guards:a,actions:l,activities:s,services:c,delays:d};return ls(r.withConfig(e,(function(){return Ss(Ss({},r.context),o)})),Ss({deferEvents:!0},p))}));return ms((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]),ms((function(){return h.start(u?Gl.create(u):void 0),function(){h.stop()}}),[]),ms((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]),ks(h),h}(e,t,n),i=Ls(G((function(){var e=r.machine.initialState;return t.state?Gl.create(t.state):e})),2),o=i[0],a=i[1];return[o,r.send,r]}function Ts(){return Ts=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},Ts.apply(null,arguments)}function Rs(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 Ps={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(Ps.str(e)||Ps.num(e))return e===t;if(Ps.obj(e)&&Ps.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!Ps.und(n)||e===t}};function Ds(e,t){return Ps.und(e)||Ps.nul(e)?t:e}function Ms(e){return Ps.und(e)?[]:Ps.arr(e)?e:[e]}function Ns(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 Ps.fun(e)?e(...n):e}function js(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,Rs(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(Ps.und(t))return Ts({to:t},e);const n=Object.keys(e).reduce(((n,r)=>Ps.und(t[r])?Ts({},n,{[r]:e[r]}):n),{});return Ts({to:t},n)}class Vs{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 Is extends Vs{constructor(){super(...arguments),this.payload=[],this.attach=()=>this.payload.forEach((e=>e instanceof Vs&&e.addChild(this))),this.detach=()=>this.payload.forEach((e=>e instanceof Vs&&e.removeChild(this)))}}class zs extends Vs{constructor(){super(...arguments),this.payload={},this.attach=()=>Object.values(this.payload).forEach((e=>e instanceof Vs&&e.addChild(this))),this.detach=()=>Object.values(this.payload).forEach((e=>e instanceof Vs&&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 Vs)&&(t[n]=r instanceof Vs?r[e?"getAnimatedValue":"getValue"]():r)}return t}getAnimatedValue(){return this.getValue(!0)}}let As,Hs;let Bs,Fs=e=>"undefined"!=typeof window?window.requestAnimationFrame(e):-1;let Zs,qs=()=>Date.now();class Gs extends zs{constructor(e,t){super(),this.update=void 0,this.payload=e.style?Ts({},e,{style:Zs(e.style)}):e,this.update=t,this.attach()}}let Ws=!1;const Us=new Set,Xs=()=>{if(!Ws)return!1;let e=qs();for(let t of Us){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 Vs,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||(Us.delete(t),t.stop(!0))}return Us.size?Fs(Xs):Ws=!1,Ws};function Ys(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return Ys({range:e,output:t,extrapolate:n});if(Bs&&"string"==typeof e.output[0])return Bs(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 Ks extends Is{constructor(e,t,n,r){super(),this.calc=void 0,this.payload=e instanceof Is&&!(e instanceof Ks)?e.getPayload():Array.isArray(e)?e:[e],this.calc=Ys(t,n,r)}getValue(){return this.calc(...this.payload.map((e=>e.getValue())))}updateConfig(e,t,n){this.calc=Ys(e,t,n)}interpolate(e,t,n){return new Ks(this,e,t,n)}}const Js=(e,t,n)=>e&&new Ks(e,t,n);function Qs(e,t){"update"in e?t.add(e):e.getChildren().forEach((e=>Qs(e,t)))}class ec extends Vs{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&&Qs(this,this.animatedStyles),this.animatedStyles.forEach((e=>e.update()))}clearStyles(){this.animatedStyles.clear()}getValue(){return this.value}interpolate(e,t,n){return new Ks(this,e,t,n)}}class tc extends Is{constructor(e){super(),this.payload=e.map((e=>new ec(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 Ks(this,e,t)}}let nc=0,rc=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=nc++}update(e){if(!e)return this;const t=js(e),n=t.delay,r=void 0===n?0:n,i=t.to,o=Rs(t,["delay","to"]);if(Ps.arr(i)||Ps.fun(i))this.queue.push(Ts({},o,{delay:r,to:i}));else if(i){let e={};Object.entries(i).forEach((t=>{let n=t[0],i=t[1];const a=Ts({to:{[n]:i},delay:Ns(r,n)},o),l=e[a.delay]&&e[a.delay].to;e[a.delay]=Ts({},e[a.delay],a,{to:Ts({},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;Ps.obj(n)&&(this.merged=Ts({},n,this.merged)),Ps.obj(i)&&(this.merged=Ts({},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=Rs(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=Ps.arr(a.to)||Ps.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 Ps.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,Us.has(t)||Us.add(t),Ws||(Ws=!0,Fs(Xs));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,Us.has(t)&&Us.delete(t)),this}runAsync(e,t){var n=this;e.delay;let r=Rs(e,["delay"]);const i=this.local;let o=Promise.resolve(void 0);if(Ps.arr(r.to))for(let e=0;e<r.to.length;e++){const t=e,n=Ts({},r,js(r.to[t]));Ps.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(Ps.fun(r.to)){let e,t=0;o=o.then((()=>r.to((n=>{const o=Ts({},r,js(n));if(Ps.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=Ts({},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=Ts({},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=Ps.num(i),s=Ps.str(i)&&!i.startsWith("#")&&!/\d/.test(i)&&!Hs[i],c=Ps.arr(i),p=!a&&!c&&!s;let f=Ps.und(r[n])?i:r[n],g=a||c||s?i:1,v=Ns(l,n);h&&(g=h.animations[n].parent);let m,x=o.parent,b=o.interpolation,y=Ms(h?g.getPayload():g),C=i;p&&(C=Bs({range:[0,1],output:[i,i]})(1));let w=b&&b.getValue();const $=!Ps.und(x)&&o.animatedValues.some((e=>!e.done)),k=!Ps.equ(C,w),S=!Ps.equ(C,o.previous),E=!Ps.equ(v,o.config);if(d||S&&k||E){if(a||s)x=b=o.parent||new ec(f);else if(c)x=b=o.parent||new tc(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 ec(0);const t={output:[e,i]};o.interpolation?(b=o.interpolation,o.interpolation.updateConfig(t)):b=x.interpolate(t)}return y=Ms(h?g.getPayload():g),m=Ms(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=qs(),e.done=!1,e.animatedStyles.clear()})),Ns(u,n)&&x.setValue(p?g:i,!1),Ts({},e,{[n]:Ts({},o,{name:n,parent:x,interpolation:b,animatedValues:m,toValues:y,previous:C,config:v,fromValues:Ms(x.getValue()),immediate:Ns(u,n),initialVelocity:Ds(v.velocity,0),clamp:Ds(v.clamp,!1),precision:Ds(v.precision,.01),tension:Ds(v.tension,170),friction:Ds(v.friction,26),mass:Ds(v.mass,1),duration:v.duration,easing:Ds(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,Ts({},e,{[n]:Ts({},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 ic=e=>{const t=Ps.fun(e),n=((e,t)=>{const n=Y(!1),r=Y(),i=Ps.fun(t),o=ee((()=>{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 rc,a=i?Ns(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,te(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=ee((()=>e=>r.current.map(((t,n)=>{t.update(i?Ns(e,n,t):e[n]),l||t.start()}))),[e]);W((()=>{n.current?i||s(t):l||r.current.forEach((e=>e.start()))})),W((()=>(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 oc extends zs{constructor(e){void 0===e&&(e={}),super(),!e.transform||e.transform instanceof Vs||(e=As.transform(e)),this.payload=e}}const ac={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},lc="[-+]?\\d*\\.?\\d+",sc=lc+"%";function cc(){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 dc=new RegExp("rgb"+cc(lc,lc,lc)),uc=new RegExp("rgba"+cc(lc,lc,lc,lc)),pc=new RegExp("hsl"+cc(lc,sc,sc)),hc=new RegExp("hsla"+cc(lc,sc,sc,lc)),fc=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,gc=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,vc=/^#([0-9a-fA-F]{6})$/,mc=/^#([0-9a-fA-F]{8})$/;function xc(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 bc(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=xc(i,r,e+1/3),a=xc(i,r,e),l=xc(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function yc(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Cc(e){return(parseFloat(e)%360+360)%360/360}function wc(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function $c(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function kc(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=vc.exec(e))?parseInt(t[1]+"ff",16)>>>0:ac.hasOwnProperty(e)?ac[e]:(t=dc.exec(e))?(yc(t[1])<<24|yc(t[2])<<16|yc(t[3])<<8|255)>>>0:(t=uc.exec(e))?(yc(t[1])<<24|yc(t[2])<<16|yc(t[3])<<8|wc(t[4]))>>>0:(t=fc.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=mc.exec(e))?parseInt(t[1],16)>>>0:(t=gc.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=pc.exec(e))?(255|bc(Cc(t[1]),$c(t[2]),$c(t[3])))>>>0:(t=hc.exec(e))?(bc(Cc(t[1]),$c(t[2]),$c(t[3]))|wc(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 Sc=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Ec=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Oc=new RegExp(`(${Object.keys(ac).join("|")})`,"g");let Lc={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 _c=["Webkit","Ms","Moz","O"];function Tc(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Lc.hasOwnProperty(e)&&Lc[e]?(""+t).trim():t+"px"}Lc=Object.keys(Lc).reduce(((e,t)=>(_c.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),Lc);const Rc={};var Pc;Zs=e=>new oc(e),Pc=e=>{const t=e.output.map((e=>e.replace(Ec,kc))).map((e=>e.replace(Oc,kc))),n=t[0].match(Sc).map((()=>[]));t.forEach((e=>{e.match(Sc).forEach(((e,t)=>n[t].push(+e)))}));const r=t[0].match(Sc).map(((t,r)=>Ys(Ts({},e,{output:n[r]}))));return e=>{let n=0;return t[0].replace(Sc,(()=>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})`))}},Bs=Pc,Hs=ac,function(e,t){As={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=Rs(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=Tc(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:Rc[t]||(Rc[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())));void 0!==e.getAttribute(n)&&e.setAttribute(n,s[t])}}}),(e=>e));var Dc;const Mc=(Dc=e=>q(((t,n)=>{const r=function(){const e=G(!1)[1];return J((()=>e((e=>!e))),[])}(),i=Y(!0),o=Y(null),a=Y(null),l=J((e=>{const t=o.current;o.current=new Gs(e,(()=>{let e=!1;a.current&&(e=As.fn(a.current,o.current.getAnimatedValue())),a.current&&!1!==e||r()})),t&&t.detach()}),[]);W((()=>()=>{i.current=!1,o.current&&o.current.detach()}),[]),te(n,(()=>(e=>e.current)(a))),l(t);const s=o.current.getValue();s.scrollTop,s.scrollLeft;const c=Rs(s,["scrollTop","scrollLeft"]),d=(u=e,!Ps.fun(u)||u.prototype instanceof Z.Component?e=>a.current=function(e,t){return t&&(Ps.fun(t)?t(e):Ps.obj(t)&&(t.current=e)),e}(e,n):void 0);var u;return Z.createElement(e,Ts({},c,{ref:d}))})),e=>(Ps.arr(e)?e:Object.keys(e)).reduce(((e,t)=>{const n=t;return e[n]=Dc(n),e}),Dc))(["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 Nc(e,t){return e.map((function(e,n){return e+t[n]}))}function jc(e,t){return e.map((function(e,n){return e-t[n]}))}function Vc(e){return Math.hypot.apply(Math,e)}function Ic(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function zc(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 Ac(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?-zc(t-e,n-t,r)+t:e>n?+zc(e-n,n-t,r)+n:e}function Hc(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 Bc(){return Bc=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},Bc.apply(this,arguments)}function Fc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Zc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qc(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 Gc(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 qc(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)?qc(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 Wc(){}function Uc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?Wc:1===t.length?t[0]:function(){for(var e,n,r=Gc(t);!(n=r()).done;){e=n.value.apply(this,arguments)||e}return e}}function Xc(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 Yc(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 Kc(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]=Kc(e[a],l);break;case"boolean":l&&(n[a]=e[a])}}return n}var Jc=Bc({},{threshold:function(e){return void 0===e&&(e=0),Xc(e)},rubberband:function(e){switch(void 0===e&&(e=0),e){case!0:return Xc(.15);case!1:return Xc(0);default:return Xc(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:Xc(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 Jc.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]]}}),Qc="undefined"!=typeof window&&window.document&&window.document.createElement,ed={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=Qc?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}}},td=Bc({},Jc,{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=Xc(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),Xc(e)},swipeDistance:function(e){return void 0===e&&(e=60),Xc(e)},delay:function(e){switch(void 0===e&&(e=0),e){case!0:return 180;case!1:return 0;default:return e}}});function nd(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={}),Kc(e,ed)}({domTarget:t,eventOptions:n,window:r,enabled:i});return a.drag=function(e){return void 0===e&&(e={}),Kc(e,td)}(o),a}function rd(e){return Bc({_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:Wc,canceled:!1,memo:void 0,args:void 0},e)}function id(){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:rd({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:rd({da:[0,0],vdva:[0,0],origin:void 0,turns:0}),wheel:rd({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),move:rd({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),scroll:rd({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0})}}var od=new Map,ad=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=Bc({},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]?ld(h[0],o[0]):d[0],g=!1===d[1]?ld(h[1],o[1]):d[1],v=this.checkIntentionality([f,g],h);if(v._blocked)return Bc({},v,{_movement:h,delta:[0,0]});var m,x,b,y,C=v._intentional,w=h;(!1!==C[0]&&!1===d[0]&&(x=Yc(n,this.state),m=Yc(r,this.state),s[0]=x[0],l[0]=m[0]),!1!==C[1]&&!1===d[1])&&(x=null!=(b=x)?b:Yc(n,this.state),m=null!=(y=m)?y:Yc(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=Nc($,u),S=c?i:[0,0];return $=sd(l,Nc($,s),S),Bc({},v,{intentional:!1!==C[0]||!1!==C[1],_initial:s,_movement:w,movement:$,values:e,offset:sd(l,k,S),delta:jc($,p)})},t.clean=function(){this.clearTimeout()},Hc(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 ld(e,t){return Math.abs(e)>=t&&Ic(e)*t}function sd(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[Ac(r,s,c,o),Ac(i,u,p,a)]}function cd(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 dd(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,Bc({},t,{event:n})].concat(i))}}var ud=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=Gc(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];fd(e,c[0],dd(c[1],Bc({},t.state.shared,{args:r})))}return t.config.domTarget?function(e,t){var n=e.config,r=e.domListeners,i=hd(n);if(!i)throw new Error("domTarget must be defined");var o=n.eventOptions;vd(i,pd(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,Uc.apply(void 0,d)])}gd(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]=Uc.apply(void 0,d)}return r}(t,e)},this.effect=function(){return t.config.domTarget&&t.bind(),t.clean},this.clean=function(){var e=hd(t.config),n=t.config.eventOptions;e&&vd(e,pd(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){vd(n,i[o],r)}e.windowListeners={}}(t)},this.state=id(),this.timeouts={},this.domListeners=[],this.windowListeners={}};function pd(e){return void 0===e&&(e=[]),e.splice(0,e.length)}function hd(e){var t=e.domTarget;return t&&"current"in t?t.current:t}function fd(e,t,n){e[t]||(e[t]=[]),e[t].push(n)}function gd(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,i=Gc(t);!(r=i()).done;){var o=r.value,a=o[0],l=o[1];e.addEventListener(a,l,n)}}function vd(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,i=Gc(t);!(r=i()).done;){var o=r.value,a=o[0],l=o[1];e.removeEventListener(a,l,n)}}function md(e,t,n){void 0===n&&(n={});var r=function(e){var t=new Set;e.drag&&t.add(od.get("drag"));e.wheel&&t.add(od.get("wheel"));e.scroll&&t.add(od.get("scroll"));e.move&&t.add(od.get("move"));e.pinch&&t.add(od.get("pinch"));e.hover&&t.add(od.get("hover"));return t}(e),i=Z.useMemo((function(){return new ud(r)}),[]);return i.config=t,i.handlers=e,i.nativeRefs=n,Z.useEffect(i.effect,[]),i.config.domTarget?xd:i.bind}function xd(){"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 bd(e){if("touches"in e){var t=e.targetTouches,n=e.changedTouches;return t.length>0?t:n}return null}function yd(e){var t="buttons"in e?e.buttons:0,n=bd(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 Cd(e){var t=bd(e),n=t?t[0]:e;return[n.clientX,n.clientY]}var wd=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&&(vd(r.window,i[t],r.eventOptions),gd(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(Zc(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=yd(e);if(n.down){t.updateSharedState(n);var r=Cd(e),i=t.getKinematics(r,e),o=cd(Zc(t),e),a=t.state._isTap,l=Vc(i._movement);a&&l>=3&&(a=!1),t.updateGestureState(Bc({},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=Bc({},cd(Zc(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]=Ic(i)),!1!==u&&Math.abs(o)>f&&Math.abs(s)>m&&(b[1]=Ic(o))),t.updateGestureState(Bc({},x,{tap:n,swipe:b})),t.fireGestureHandler(!0===n)}},t.clean=function(){e.prototype.clean.call(Zc(t)),t.state._delayedEvent=!1,function(e,t){var n=e.config,r=e.windowListeners;n.window&&(vd(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}Fc(t,e);var n=t.prototype;return n.startDrag=function(e){var t=Cd(e);this.updateSharedState(yd(e)),this.updateGestureState(Bc({},function(e,t,n){var r=e.state.offset,i=n.timeStamp;return Bc({},id()[e.stateKey],{_active:!0,values:t,initial:t,offset:r,lastOffset:r,startTime:i})}(this,t,e),cd(this,e,!0),{_pointerId:e.pointerId,cancel:this.onCancel})),this.updateGestureState(this.getMovement(t)),this.fireGestureHandler()},n.addBindings=function(e){(fd(e,"onPointerDown",this.onDragStart),this.config.filterTaps)&&fd(e,this.controller.config.eventOptions.capture?"onClick":"onClickCapture",this.onClick)},t}(function(e){function t(){return e.apply(this,arguments)||this}Fc(t,e);var n=t.prototype;return n.getInternalMovement=function(e,t){return jc(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=Vc(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:Vc(e),direction:s}}(n.movement,n.delta,r))}return n},n.mapStateValues=function(e){return{xy:e.values,vxvy:e.velocities}},t}(ad));function $d(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(!$d(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(!$d(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||$d(e[i[r]],t[i[r]])))return!1;return!0}return e!=e&&t!=t}function kd(e,t){try{return $d(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 Sd(e,t){void 0===t&&(t={}),od.set("drag",wd);var n=Y();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}}(nd,kd)),md({drag:e},n.current(t))}
2304
2308
  /*!
2305
2309
  * tabbable 5.3.3
2306
2310
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
2307
- */var Sd=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],Ed=Sd.join(","),Od="undefined"==typeof Element,Ld=Od?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,_d=!Od&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},Td=function(e,t,n){var r=Array.prototype.slice.apply(e.querySelectorAll(Ed));return t&&Ld.call(e,Ed)&&r.unshift(e),r=r.filter(n)},Rd=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{Ld.call(a,Ed)&&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},Pd=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},Dd=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Md=function(e){return"INPUT"===e.tagName},Nd=function(e){return function(e){return Md(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||_d(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)},jd=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},Vd=function(e,t){return!(t.disabled||function(e){return Md(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=Ld.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Ld.call(i,"details:not([open]) *"))return!0;var o=_d(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 jd(e)}else{if("function"==typeof r){for(var l=e;e;){var s=e.parentElement,c=_d(e);if(s&&!s.shadowRoot&&!0===r(s))return jd(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!!Ld.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},Id=function(e,t){return!(Nd(t)||Pd(t)<0||!Vd(e,t))},zd=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Ad=function e(t){var n=[],r=[];return t.forEach((function(t,i){var o=!!t.scope,a=o?t.scope:t,l=Pd(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(Dd).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},Hd=function(e,t){var n;return n=(t=t||{}).getShadowRoot?Rd([e],t.includeContainer,{filter:Id.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:zd}):Td(e,t.includeContainer,Id.bind(null,t)),Ad(n)},Bd=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Ld.call(e,Ed)&&Id(t,e)},Fd=Sd.concat("iframe").join(","),Zd=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Ld.call(e,Fd)&&Vd(t,e)};
2311
+ */var Ed=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],Od=Ed.join(","),Ld="undefined"==typeof Element,_d=Ld?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Td=!Ld&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},Rd=function(e,t,n){var r=Array.prototype.slice.apply(e.querySelectorAll(Od));return t&&_d.call(e,Od)&&r.unshift(e),r=r.filter(n)},Pd=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{_d.call(a,Od)&&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},Dd=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},Md=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Nd=function(e){return"INPUT"===e.tagName},jd=function(e){return function(e){return Nd(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||Td(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)},Vd=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},Id=function(e,t){return!(t.disabled||function(e){return Nd(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=_d.call(e,"details>summary:first-of-type")?e.parentElement:e;if(_d.call(i,"details:not([open]) *"))return!0;var o=Td(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 Vd(e)}else{if("function"==typeof r){for(var l=e;e;){var s=e.parentElement,c=Td(e);if(s&&!s.shadowRoot&&!0===r(s))return Vd(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!!_d.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},zd=function(e,t){return!(jd(t)||Dd(t)<0||!Id(e,t))},Ad=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Hd=function e(t){var n=[],r=[];return t.forEach((function(t,i){var o=!!t.scope,a=o?t.scope:t,l=Dd(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(Md).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},Bd=function(e,t){var n;return n=(t=t||{}).getShadowRoot?Pd([e],t.includeContainer,{filter:zd.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Ad}):Rd(e,t.includeContainer,zd.bind(null,t)),Hd(n)},Fd=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==_d.call(e,Od)&&zd(t,e)},Zd=Ed.concat("iframe").join(","),qd=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==_d.call(e,Zd)&&Id(t,e)};
2308
2312
  /*!
2309
2313
  * focus-trap 6.9.4
2310
2314
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
2311
2315
  */
2312
- function qd(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 Gd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qd(Object(n),!0).forEach((function(t){Wd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ud,Xd=(Ud=[],{activateTrap:function(e){if(Ud.length>0){var t=Ud[Ud.length-1];t!==e&&t.pause()}var n=Ud.indexOf(e);-1===n||Ud.splice(n,1),Ud.push(e)},deactivateTrap:function(e){var t=Ud.indexOf(e);-1!==t&&Ud.splice(t,1),Ud.length>0&&Ud[Ud.length-1].unpause()}}),Yd=function(e){return setTimeout(e,0)},Kd=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},Jd=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},Qd=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},eu=function(e,t){var n,r=(null==t?void 0:t.document)||document,i=Gd({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=Hd(e,i.tabbableOptions),o=(t=e,(n=(n=i.tabbableOptions)||{}).getShadowRoot?Rd([t],n.includeContainer,{filter:Vd.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):Td(t,n.includeContainer,Vd.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 Bd(e,i.tabbableOptions)})):o.slice(0,n).reverse().find((function(e){return Bd(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=Qd(e);l(t)>=0||(Jd(i.clickOutsideDeactivates,e)?n.deactivate({returnFocus:i.returnFocusOnDeactivate&&!Zd(t,i.tabbableOptions)}):Jd(i.allowOutsideClick,e)||e.preventDefault())},f=function(e){var t=Qd(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!==Jd(i.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=Qd(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=Kd(o.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(c<0&&(a.container===t||Zd(t,i.tabbableOptions)&&!Bd(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=Kd(o.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(h<0&&(a.container===t||Zd(t,i.tabbableOptions)&&!Bd(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=Qd(e);l(t)>=0||Jd(i.clickOutsideDeactivates,e)||Jd(i.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},m=function(){if(o.active)return Xd.activateTrap(n),o.delayInitialFocusTimer=i.delayInitialFocus?Yd((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=Gd({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},e);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,x(),o.active=!1,o.paused=!1,Xd.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(){Yd((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 tu=!1;if("undefined"!=typeof window){var nu={get passive(){tu=!0}};window.addEventListener("testPassive",null,nu),window.removeEventListener("testPassive",null,nu)}var ru,iu="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),ou=[],au=!1,lu=-1,su=void 0,cu=void 0,du=function(e){return ou.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},uu=function(e){var t=e||window.event;return!!du(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},pu=function(e,t){if(e){if(!ou.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};ou=[].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)}(ou),[n]),iu?(e.ontouchstart=function(e){1===e.targetTouches.length&&(lu=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-lu;!du(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?uu(e):e.stopPropagation())}(t,e)},au||(document.addEventListener("touchmove",uu,tu?{passive:!1}:void 0),au=!0)):function(e){if(void 0===cu){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(cu=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===su&&(su=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.")},hu=function(e){e?(ou=ou.filter((function(t){return t.targetElement!==e})),iu?(e.ontouchstart=null,e.ontouchmove=null,au&&0===ou.length&&(document.removeEventListener("touchmove",uu,tu?{passive:!1}:void 0),au=!1)):ou.length||(void 0!==cu&&(document.body.style.paddingRight=cu,cu=void 0),void 0!==su&&(document.body.style.overflow=su,su=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")},fu=[],gu="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"}(ru||(ru={}));var vu,mu=function(e){return Object.freeze(e)},xu=function(e,t){this.inlineSize=e,this.blockSize=t,mu(this)},bu=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,mu(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}(),yu=function(e){return e instanceof SVGElement&&"getBBox"in e},Cu=function(e){if(yu(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)},wu=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:{},ku=new WeakMap,Su=/auto|scroll/,Eu=/^tb|vertical/,Ou=/msie|trident/i.test($u.navigator&&$u.navigator.userAgent),Lu=function(e){return parseFloat(e||"0")},_u=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new xu((n?t:e)||0,(n?e:t)||0)},Tu=mu({devicePixelContentBoxSize:_u(),borderBoxSize:_u(),contentBoxSize:_u(),contentRect:new bu(0,0,0,0)}),Ru=function(e,t){if(void 0===t&&(t=!1),ku.has(e)&&!t)return ku.get(e);if(Cu(e))return ku.set(e,Tu),Tu;var n=getComputedStyle(e),r=yu(e)&&e.ownerSVGElement&&e.getBBox(),i=!Ou&&"border-box"===n.boxSizing,o=Eu.test(n.writingMode||""),a=!r&&Su.test(n.overflowY||""),l=!r&&Su.test(n.overflowX||""),s=r?0:Lu(n.paddingTop),c=r?0:Lu(n.paddingRight),d=r?0:Lu(n.paddingBottom),u=r?0:Lu(n.paddingLeft),p=r?0:Lu(n.borderTopWidth),h=r?0:Lu(n.borderRightWidth),f=r?0:Lu(n.borderBottomWidth),g=u+c,v=s+d,m=(r?0:Lu(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:Lu(n.width)-C-y,k=r?r.height:Lu(n.height)-w-b,S=$+g+y+m,E=k+v+b+x,O=mu({devicePixelContentBoxSize:_u(Math.round($*devicePixelRatio),Math.round(k*devicePixelRatio),o),borderBoxSize:_u(S,E,o),contentBoxSize:_u($,k,o),contentRect:new bu(u,s,$,k)});return ku.set(e,O),O},Pu=function(e,t,n){var r=Ru(e,n),i=r.borderBoxSize,o=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case ru.DEVICE_PIXEL_CONTENT_BOX:return a;case ru.BORDER_BOX:return i;default:return o}},Du=function(e){var t=Ru(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=mu([t.borderBoxSize]),this.contentBoxSize=mu([t.contentBoxSize]),this.devicePixelContentBoxSize=mu([t.devicePixelContentBoxSize])},Mu=function(e){if(Cu(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Nu=function(){var e=1/0,t=[];fu.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new Du(t.target),i=Mu(t.target);r.push(n),t.lastReportedSize=Pu(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},ju=function(e){fu.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(Mu(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},Vu=function(){var e=0;for(ju(e);fu.some((function(e){return e.activeTargets.length>0}));)e=Nu(),ju(e);return fu.some((function(e){return e.skippedTargets.length>0}))&&function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:gu}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=gu),window.dispatchEvent(e)}(),e>0},Iu=[],zu=function(e){if(!vu){var t=0,n=document.createTextNode("");new MutationObserver((function(){return Iu.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),vu=function(){n.textContent="".concat(t?t--:t++)}}Iu.push(e),vu()},Au=0,Hu={attributes:!0,characterData:!0,childList:!0,subtree:!0},Bu=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Fu=function(e){return void 0===e&&(e=0),Date.now()+e},Zu=!1,qu=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),!Zu){Zu=!0;var n,r=Fu(e);n=function(){var n=!1;try{n=Vu()}finally{if(Zu=!1,e=r-Fu(),!Au)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,Hu)};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(),Bu.forEach((function(t){return $u.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),Bu.forEach((function(t){return $u.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),Gu=function(e){!Au&&e>0&&qu.start(),!(Au+=e)&&qu.stop()},Wu=function(){function e(e,t){this.target=e,this.observedBox=t||ru.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=Pu(this.target,this.observedBox,!0);return function(e){return!yu(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}(),Uu=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},Xu=new WeakMap,Yu=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Ku=function(){function e(){}return e.connect=function(e,t){var n=new Uu(e,t);Xu.set(e,n)},e.observe=function(e,t,n){var r=Xu.get(e),i=0===r.observationTargets.length;Yu(r.observationTargets,t)<0&&(i&&fu.push(r),r.observationTargets.push(new Wu(t,n&&n.box)),Gu(1),qu.schedule())},e.unobserve=function(e,t){var n=Xu.get(e),r=Yu(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&fu.splice(fu.indexOf(n),1),n.observationTargets.splice(r,1),Gu(-1))},e.disconnect=function(e){var t=this,n=Xu.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),Ju=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.");Ku.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(!wu(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Ku.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(!wu(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Ku.unobserve(this,e)},e.prototype.disconnect=function(){Ku.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();function Qu(){return Qu=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},Qu.apply(this,arguments)}function ep(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 tp="undefined"!=typeof window?K:W;function np(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 rp(e){var t=Math.round(e);if(Number.isNaN(e))throw new TypeError("Found a NaN! Check your snapPoints / defaultSnap / snapTo ");return t}var ip={box:"border-box"};function op(e,t){var n=t.label,r=t.enabled,i=t.resizeSourceRef,o=G(0),a=o[0],l=o[1];ne(n+": "+a);var s=J((function(e){l(e[0].borderBoxSize[0].blockSize),i.current="element"}),[i]);return tp((function(){if(e.current&&r){var t=new Ju(s);return t.observe(e.current,ip),function(){t.disconnect()}}}),[e,s,r]),r?a:0}function ap(e){return void 0===e&&(e=1e3),new Promise((function(t){return setTimeout(t,e)}))}var lp={DRAG:{target:"#overlay.dragging",actions:"onOpenEnd"}},sp={RESIZE:{target:"#overlay.resizing",actions:"onOpenEnd"}},cp=function(e,t,n){return void 0===n&&(n=e.context),new hs(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:Qu({},lp,sp)}}},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:Qu({},lp,sp)}}},end:{invoke:{src:"onOpenEnd",onDone:"done"},on:{CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:Qu({},{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:[gs({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(ap()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenStart:function(){try{return Promise.resolve(ap()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseStart:function(){try{return Promise.resolve(ap()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeStart:function(){try{return Promise.resolve(ap()).then((function(){}))}catch(e){return Promise.reject(e)}},onSnapEnd:function(){try{return Promise.resolve(ap()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenEnd:function(){try{return Promise.resolve(ap()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseEnd:function(){try{return Promise.resolve(ap()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeEnd:function(){try{return Promise.resolve(ap()).then((function(){}))}catch(e){return Promise.reject(e)}},renderVisuallyHidden:function(e,t){try{return Promise.resolve(ap()).then((function(){}))}catch(e){return Promise.reject(e)}},activate:function(e,t){try{return Promise.resolve(ap()).then((function(){}))}catch(e){return Promise.reject(e)}},deactivate:function(e,t){try{return Promise.resolve(ap()).then((function(){}))}catch(e){return Promise.reject(e)}},openSmoothly:function(e,t){try{return Promise.resolve(ap()).then((function(){}))}catch(e){return Promise.reject(e)}},openImmediately:function(e,t){try{return Promise.resolve(ap()).then((function(){}))}catch(e){return Promise.reject(e)}},snapSmoothly:function(e,t){try{return Promise.resolve(ap()).then((function(){}))}catch(e){return Promise.reject(e)}},resizeSmoothly:function(e,t){try{return Promise.resolve(ap()).then((function(){}))}catch(e){return Promise.reject(e)}},closeSmoothly:function(e,t){try{return Promise.resolve(ap()).then((function(){}))}catch(e){return Promise.reject(e)}}},guards:{initiallyClosed:function(e){return"CLOSED"===e.initialState},initiallyOpen:function(e){return"OPEN"===e.initialState}}}),dp=["children","sibling","className","footer","header","open","initialState","lastSnapRef","initialFocusRef","onDismiss","maxHeight","defaultSnap","snapPoints","blocking","scrollLocking","style","onSpringStart","onSpringCancel","onSpringEnd","reserveScrollBarGap","expandOnContentDrag"],up=["velocity"],pp=["onRest","config"],hp={tension:170,friction:26},fp=hp.tension,gp=hp.friction,vp=Z.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?xp:h,g=e.snapPoints,v=void 0===g?bp: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,L=void 0!==O&&O,_=ep(e,dp),T=function(){var e=G(!1),t=e[0],n=e[1],r=G({}),i=r[0],o=r[1],a=J((function(e){return o((function(t){var n;return Qu({},t,((n={})[e]=!1,n))})),function(){o((function(t){var n;return Qu({},t,((n={})[e]=!0,n))}))}}),[]);return W((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=Y(!1),M=Y(w),N=Y($),j=Y(k);W((function(){M.current=w,N.current=$,j.current=k}),[$,w,k]);var V,I,z=rc((function(){return{y:0,ready:0,maxHeight:0,minSnap:0,maxSnap:0}})),A=z[0],H=z[1],B=Y(null),F=Y(null),q=Y(null),U=Y(null),X=Y(null),K=Y(null),Q=Y(0),re=Y(),ie=Y(!1),oe=(V=ee((function(){return"undefined"!=typeof window?window.matchMedia("(prefers-reduced-motion: reduce)"):null}),[]),I=Y(null==V?void 0:V.matches),ne(I.current?"reduce":"no-preference"),W((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=Y({activate:function(){throw new TypeError("Tried to activate scroll lock too early")},deactivate:function(){}});return ne(n?"Enabled":"Disabled"),W((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,pu(e,{allowTouchMove:function(e){return e.closest("[data-body-scroll-lock-ignore]")},reserveScrollBarGap:r}))},deactivate:function(){o&&(o=!1,hu(e))}}}),[n,t,r]),i}({targetRef:F,enabled:R&&y,reserveScrollBarGap:E}),le=function(e){var t=e.targetRef,n=e.enabled,r=Y({activate:function(){throw new TypeError("Tried to activate aria hider too early")},deactivate:function(){}});return ne(n?"Enabled":"Disabled"),W((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=Y({activate:function(){throw new TypeError("Tried to activate focus trap too early")},deactivate:function(){}});return ne(i?"Enabled":"Disabled"),W((function(){if(!i)return o.current.deactivate(),void(o.current={activate:function(){},deactivate:function(){}});var e=n.current,a=eu(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:K,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=ee((function(){return l("contentHeight")}),[l]),d=function(e,t,n){var r=ee((function(){return t("maxHeight")}),[t]),i=G((function(){return rp(e)||"undefined"!=typeof window?window.innerHeight:0})),o=i[0],a=i[1],l=o>0,s=Y(0);return ne(e?"controlled":"auto"),W((function(){l&&r()}),[l,r]),tp((function(){if(e)return a(rp(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=op(a,{label:"headerHeight",enabled:o,resizeSourceRef:s}),p=op(t,{label:"contentHeight",enabled:!0,resizeSourceRef:s}),h=op(i,{label:"footerHeight",enabled:r,resizeSourceRef:s}),f=Math.min(d-u-h,p)+u+h;ne("minHeight: "+f);var g=p>0;return W((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(rp).reduce((function(e,n){return e.add(np(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 ne("minSnap: "+p+", maxSnap:"+h),{minSnap:p,maxSnap:h,findSnap:function(e){var t=rp("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:q,controlledMaxHeight:p,footerEnabled:!!o,footerRef:X,getSnapPoints:v,headerEnabled:!1!==a,headerRef:U,heightRef:Q,lastSnapRef:c,ready:R,registerReady:P,resizeSourceRef:re}),de=ce.minSnap,ue=ce.maxSnap,pe=ce.maxHeight,he=ce.findSnap,fe=Y(pe),ge=Y(de),ve=Y(ue),me=Y(he),xe=Y(0);tp((function(){fe.current=pe,ve.current=ue,ge.current=de,me.current=he,xe.current=he(f)}),[he,f,pe,ue,de]);var be=J((function(e){var t=e.onRest,n=e.config,r=(n=void 0===n?{}:n).velocity,i=void 0===r?1:r,o=ep(n,up),a=ep(e,pp);return new Promise((function(e){return H(Qu({},a,{config:Qu({velocity:i},o,{mass:1,tension:fp,friction:Math.max(gp,gp+(gp-gp*i))}),onRest:function(){var n=[].slice.call(arguments);e.apply(void 0,n),null==t||t.apply(void 0,n)}}))}))}),[H]),ye=Ls(cp,{devTools:!1,actions:{onOpenCancel:J((function(){return null==N.current?void 0:N.current({type:"OPEN"})}),[]),onSnapCancel:J((function(e){return null==N.current?void 0:N.current({type:"SNAP",source:e.snapSource})}),[]),onCloseCancel:J((function(){return null==N.current?void 0:N.current({type:"CLOSE"})}),[]),onResizeCancel:J((function(){return null==N.current?void 0:N.current({type:"RESIZE",source:re.current})}),[]),onOpenEnd:J((function(){return null==j.current?void 0:j.current({type:"OPEN"})}),[]),onSnapEnd:J((function(e,t){return null==j.current?void 0:j.current({type:"SNAP",source:e.snapSource})}),[]),onResizeEnd:J((function(){return null==j.current?void 0:j.current({type:"RESIZE",source:re.current})}),[])},context:{initialState:s},services:{onSnapStart:J((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:J((function(){try{return Promise.resolve(null==M.current?void 0:M.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseStart:J((function(){try{return Promise.resolve(null==M.current?void 0:M.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeStart:J((function(){try{return Promise.resolve(null==M.current?void 0:M.current({type:"RESIZE",source:re.current}))}catch(e){return Promise.reject(e)}}),[]),onSnapEnd:J((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:J((function(){try{return Promise.resolve(null==j.current?void 0:j.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseEnd:J((function(){try{return Promise.resolve(null==j.current?void 0:j.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeEnd:J((function(){try{return Promise.resolve(null==j.current?void 0:j.current({type:"RESIZE",source:re.current}))}catch(e){return Promise.reject(e)}}),[]),renderVisuallyHidden:J((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:J((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:J((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:J((function(){try{return Q.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:J((function(){try{return Promise.resolve(be({y:0,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:!0})).then((function(){return Q.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:J((function(e,t){try{var n=me.current(e.y);return Q.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:J((function(){try{var e=me.current(Q.current);return Q.current=e,c.current=e,Promise.resolve(be({y:e,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:ge.current,immediate:"element"!==re.current||oe.current})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be,c,oe]),closeSmoothly:J((function(e,t){try{return be({minSnap:Q.current,immediate:!0}),Q.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];W((function(){R&&we(l?"OPEN":"CLOSE")}),[l,we,R]),tp((function(){(pe||ue||de)&&we("RESIZE")}),[pe,ue,de,we]),W((function(){return function(){ae.current.deactivate(),se.current.deactivate(),le.current.deactivate()}}),[le,se,ae]),te(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 Q.current}}}),[we]),W((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 L&&(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)}}),[L,F]);var $e=kd((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 L&&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=Ks([n.y,n.maxHeight],(function(e,t){return Math.round(np(t-e,0,16))+"px"})),i=Ks([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return np(e,t,n)+"px"})),o=Ks([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return e<t?t-e+"px":e>n?n-e+"px":"0px"})),a=Ks([n.y,n.maxSnap],(function(e,t){return e>=t?Math.ceil(e-t):0})),l=Ks([n.y,n.minSnap],(function(e,t){if(!t)return 0;var n=Math.max(t/2-45,0);return np((e-n)*(1/(Math.min(t/2+45,t)-n)+0),0,1)})),s=Ks([n.y,n.minSnap],(function(e,t){return t?np(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 Z.createElement(Dc.div,Qu({},_,{"data-rsbs-root":!0,"data-rsbs-state":mp.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:Qu({},ke,C,{opacity:A.ready})}),r,x&&Z.createElement("div",Qu({key:"backdrop","data-rsbs-backdrop":!0},$e({closeOnTap:!0}))),Z.createElement("div",{key:"overlay","aria-modal":"true",role:"dialog","data-rsbs-overlay":!0,tabIndex:-1,ref:K,onKeyDown:function(e){"Escape"===e.key&&(e.stopPropagation(),u&&u())}},!1!==a&&Z.createElement("div",Qu({key:"header","data-rsbs-header":!0,ref:U},$e()),a),Z.createElement("div",Qu({key:"scroll","data-rsbs-scroll":!0,ref:F},L?$e({isContentDragging:!0}):{}),Z.createElement("div",{"data-rsbs-content":!0,ref:q},n)),o&&Z.createElement("div",Qu({key:"footer",ref:X,"data-rsbs-footer":!0},$e()),o)))})),mp=["closed","opening","open","closing","dragging","snapping","resizing"];function xp(e){var t=e.lastSnap;return null!=t?t:Math.min.apply(Math,e.snapPoints)}function bp(e){return e.minHeight}var yp=["onSpringStart","onSpringEnd","skipInitialTransition"],Cp=q((function(e,t){var n=e.onSpringStart,r=e.onSpringEnd,i=e.skipInitialTransition,o=ep(e,yp),a=G(!1),l=a[0],s=a[1],c=Y(),d=Y(null),u=Y(i&&o.open?"OPEN":"CLOSED");tp((function(){if(o.open)return cancelAnimationFrame(c.current),s(!0),function(){u.current="CLOSED"}}),[o.open]);var p=J((function(e){return Promise.resolve(null==n?void 0:n(e)).then((function(){"OPEN"===e.type&&cancelAnimationFrame(c.current)}))}),[n]),h=J((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?Z.createElement(ma,{"data-rsbs-portal":!0},Z.createElement(vp,Qu({},o,{lastSnapRef:d,ref:t,initialState:u.current,onSpringStart:p,onSpringEnd:h}))):null}));const wp=(e,t)=>ie`
2316
+ function Gd(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 Wd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gd(Object(n),!0).forEach((function(t){Ud(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ud(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xd,Yd=(Xd=[],{activateTrap:function(e){if(Xd.length>0){var t=Xd[Xd.length-1];t!==e&&t.pause()}var n=Xd.indexOf(e);-1===n||Xd.splice(n,1),Xd.push(e)},deactivateTrap:function(e){var t=Xd.indexOf(e);-1!==t&&Xd.splice(t,1),Xd.length>0&&Xd[Xd.length-1].unpause()}}),Kd=function(e){return setTimeout(e,0)},Jd=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},Qd=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},eu=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},tu=function(e,t){var n,r=(null==t?void 0:t.document)||document,i=Wd({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=Bd(e,i.tabbableOptions),o=(t=e,(n=(n=i.tabbableOptions)||{}).getShadowRoot?Pd([t],n.includeContainer,{filter:Id.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):Rd(t,n.includeContainer,Id.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 Fd(e,i.tabbableOptions)})):o.slice(0,n).reverse().find((function(e){return Fd(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=eu(e);l(t)>=0||(Qd(i.clickOutsideDeactivates,e)?n.deactivate({returnFocus:i.returnFocusOnDeactivate&&!qd(t,i.tabbableOptions)}):Qd(i.allowOutsideClick,e)||e.preventDefault())},f=function(e){var t=eu(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!==Qd(i.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=eu(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=Jd(o.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(c<0&&(a.container===t||qd(t,i.tabbableOptions)&&!Fd(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=Jd(o.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(h<0&&(a.container===t||qd(t,i.tabbableOptions)&&!Fd(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=eu(e);l(t)>=0||Qd(i.clickOutsideDeactivates,e)||Qd(i.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},m=function(){if(o.active)return Yd.activateTrap(n),o.delayInitialFocusTimer=i.delayInitialFocus?Kd((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=Wd({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},e);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,x(),o.active=!1,o.paused=!1,Yd.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(){Kd((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 nu=!1;if("undefined"!=typeof window){var ru={get passive(){nu=!0}};window.addEventListener("testPassive",null,ru),window.removeEventListener("testPassive",null,ru)}var iu,ou="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),au=[],lu=!1,su=-1,cu=void 0,du=void 0,uu=function(e){return au.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},pu=function(e){var t=e||window.event;return!!uu(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},hu=function(e,t){if(e){if(!au.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};au=[].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)}(au),[n]),ou?(e.ontouchstart=function(e){1===e.targetTouches.length&&(su=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-su;!uu(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?pu(e):e.stopPropagation())}(t,e)},lu||(document.addEventListener("touchmove",pu,nu?{passive:!1}:void 0),lu=!0)):function(e){if(void 0===du){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(du=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===cu&&(cu=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.")},fu=function(e){e?(au=au.filter((function(t){return t.targetElement!==e})),ou?(e.ontouchstart=null,e.ontouchmove=null,lu&&0===au.length&&(document.removeEventListener("touchmove",pu,nu?{passive:!1}:void 0),lu=!1)):au.length||(void 0!==du&&(document.body.style.paddingRight=du,du=void 0),void 0!==cu&&(document.body.style.overflow=cu,cu=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")},gu=[],vu="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"}(iu||(iu={}));var mu,xu=function(e){return Object.freeze(e)},bu=function(e,t){this.inlineSize=e,this.blockSize=t,xu(this)},yu=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,xu(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}(),Cu=function(e){return e instanceof SVGElement&&"getBBox"in e},wu=function(e){if(Cu(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)},$u=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)},ku="undefined"!=typeof window?window:{},Su=new WeakMap,Eu=/auto|scroll/,Ou=/^tb|vertical/,Lu=/msie|trident/i.test(ku.navigator&&ku.navigator.userAgent),_u=function(e){return parseFloat(e||"0")},Tu=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new bu((n?t:e)||0,(n?e:t)||0)},Ru=xu({devicePixelContentBoxSize:Tu(),borderBoxSize:Tu(),contentBoxSize:Tu(),contentRect:new yu(0,0,0,0)}),Pu=function(e,t){if(void 0===t&&(t=!1),Su.has(e)&&!t)return Su.get(e);if(wu(e))return Su.set(e,Ru),Ru;var n=getComputedStyle(e),r=Cu(e)&&e.ownerSVGElement&&e.getBBox(),i=!Lu&&"border-box"===n.boxSizing,o=Ou.test(n.writingMode||""),a=!r&&Eu.test(n.overflowY||""),l=!r&&Eu.test(n.overflowX||""),s=r?0:_u(n.paddingTop),c=r?0:_u(n.paddingRight),d=r?0:_u(n.paddingBottom),u=r?0:_u(n.paddingLeft),p=r?0:_u(n.borderTopWidth),h=r?0:_u(n.borderRightWidth),f=r?0:_u(n.borderBottomWidth),g=u+c,v=s+d,m=(r?0:_u(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:_u(n.width)-C-y,k=r?r.height:_u(n.height)-w-b,S=$+g+y+m,E=k+v+b+x,O=xu({devicePixelContentBoxSize:Tu(Math.round($*devicePixelRatio),Math.round(k*devicePixelRatio),o),borderBoxSize:Tu(S,E,o),contentBoxSize:Tu($,k,o),contentRect:new yu(u,s,$,k)});return Su.set(e,O),O},Du=function(e,t,n){var r=Pu(e,n),i=r.borderBoxSize,o=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case iu.DEVICE_PIXEL_CONTENT_BOX:return a;case iu.BORDER_BOX:return i;default:return o}},Mu=function(e){var t=Pu(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=xu([t.borderBoxSize]),this.contentBoxSize=xu([t.contentBoxSize]),this.devicePixelContentBoxSize=xu([t.devicePixelContentBoxSize])},Nu=function(e){if(wu(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},ju=function(){var e=1/0,t=[];gu.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new Mu(t.target),i=Nu(t.target);r.push(n),t.lastReportedSize=Du(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},Vu=function(e){gu.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(Nu(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},Iu=function(){var e=0;for(Vu(e);gu.some((function(e){return e.activeTargets.length>0}));)e=ju(),Vu(e);return gu.some((function(e){return e.skippedTargets.length>0}))&&function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:vu}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=vu),window.dispatchEvent(e)}(),e>0},zu=[],Au=function(e){if(!mu){var t=0,n=document.createTextNode("");new MutationObserver((function(){return zu.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),mu=function(){n.textContent="".concat(t?t--:t++)}}zu.push(e),mu()},Hu=0,Bu={attributes:!0,characterData:!0,childList:!0,subtree:!0},Fu=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Zu=function(e){return void 0===e&&(e=0),Date.now()+e},qu=!1,Gu=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),!qu){qu=!0;var n,r=Zu(e);n=function(){var n=!1;try{n=Iu()}finally{if(qu=!1,e=r-Zu(),!Hu)return;n?t.run(1e3):e>0?t.run(e):t.start()}},Au((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,Bu)};document.body?t():ku.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Fu.forEach((function(t){return ku.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),Fu.forEach((function(t){return ku.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),Wu=function(e){!Hu&&e>0&&Gu.start(),!(Hu+=e)&&Gu.stop()},Uu=function(){function e(e,t){this.target=e,this.observedBox=t||iu.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=Du(this.target,this.observedBox,!0);return function(e){return!Cu(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}(),Xu=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},Yu=new WeakMap,Ku=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Ju=function(){function e(){}return e.connect=function(e,t){var n=new Xu(e,t);Yu.set(e,n)},e.observe=function(e,t,n){var r=Yu.get(e),i=0===r.observationTargets.length;Ku(r.observationTargets,t)<0&&(i&&gu.push(r),r.observationTargets.push(new Uu(t,n&&n.box)),Wu(1),Gu.schedule())},e.unobserve=function(e,t){var n=Yu.get(e),r=Ku(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&gu.splice(gu.indexOf(n),1),n.observationTargets.splice(r,1),Wu(-1))},e.disconnect=function(e){var t=this,n=Yu.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),Qu=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.");Ju.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(!$u(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Ju.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(!$u(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Ju.unobserve(this,e)},e.prototype.disconnect=function(){Ju.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();function ep(){return ep=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},ep.apply(this,arguments)}function tp(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 np="undefined"!=typeof window?K:W;function rp(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 ip(e){var t=Math.round(e);if(Number.isNaN(e))throw new TypeError("Found a NaN! Check your snapPoints / defaultSnap / snapTo ");return t}var op={box:"border-box"};function ap(e,t){var n=t.label,r=t.enabled,i=t.resizeSourceRef,o=G(0),a=o[0],l=o[1];ne(n+": "+a);var s=J((function(e){l(e[0].borderBoxSize[0].blockSize),i.current="element"}),[i]);return np((function(){if(e.current&&r){var t=new Qu(s);return t.observe(e.current,op),function(){t.disconnect()}}}),[e,s,r]),r?a:0}function lp(e){return void 0===e&&(e=1e3),new Promise((function(t){return setTimeout(t,e)}))}var sp={DRAG:{target:"#overlay.dragging",actions:"onOpenEnd"}},cp={RESIZE:{target:"#overlay.resizing",actions:"onOpenEnd"}},dp=function(e,t,n){return void 0===n&&(n=e.context),new fs(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:ep({},sp,cp)}}},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:ep({},sp,cp)}}},end:{invoke:{src:"onOpenEnd",onDone:"done"},on:{CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:ep({},{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:[vs({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(lp()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenStart:function(){try{return Promise.resolve(lp()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseStart:function(){try{return Promise.resolve(lp()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeStart:function(){try{return Promise.resolve(lp()).then((function(){}))}catch(e){return Promise.reject(e)}},onSnapEnd:function(){try{return Promise.resolve(lp()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenEnd:function(){try{return Promise.resolve(lp()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseEnd:function(){try{return Promise.resolve(lp()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeEnd:function(){try{return Promise.resolve(lp()).then((function(){}))}catch(e){return Promise.reject(e)}},renderVisuallyHidden:function(e,t){try{return Promise.resolve(lp()).then((function(){}))}catch(e){return Promise.reject(e)}},activate:function(e,t){try{return Promise.resolve(lp()).then((function(){}))}catch(e){return Promise.reject(e)}},deactivate:function(e,t){try{return Promise.resolve(lp()).then((function(){}))}catch(e){return Promise.reject(e)}},openSmoothly:function(e,t){try{return Promise.resolve(lp()).then((function(){}))}catch(e){return Promise.reject(e)}},openImmediately:function(e,t){try{return Promise.resolve(lp()).then((function(){}))}catch(e){return Promise.reject(e)}},snapSmoothly:function(e,t){try{return Promise.resolve(lp()).then((function(){}))}catch(e){return Promise.reject(e)}},resizeSmoothly:function(e,t){try{return Promise.resolve(lp()).then((function(){}))}catch(e){return Promise.reject(e)}},closeSmoothly:function(e,t){try{return Promise.resolve(lp()).then((function(){}))}catch(e){return Promise.reject(e)}}},guards:{initiallyClosed:function(e){return"CLOSED"===e.initialState},initiallyOpen:function(e){return"OPEN"===e.initialState}}}),up=["children","sibling","className","footer","header","open","initialState","lastSnapRef","initialFocusRef","onDismiss","maxHeight","defaultSnap","snapPoints","blocking","scrollLocking","style","onSpringStart","onSpringCancel","onSpringEnd","reserveScrollBarGap","expandOnContentDrag"],pp=["velocity"],hp=["onRest","config"],fp={tension:170,friction:26},gp=fp.tension,vp=fp.friction,mp=Z.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?bp:h,g=e.snapPoints,v=void 0===g?yp: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,L=void 0!==O&&O,_=tp(e,up),T=function(){var e=G(!1),t=e[0],n=e[1],r=G({}),i=r[0],o=r[1],a=J((function(e){return o((function(t){var n;return ep({},t,((n={})[e]=!1,n))})),function(){o((function(t){var n;return ep({},t,((n={})[e]=!0,n))}))}}),[]);return W((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=Y(!1),M=Y(w),N=Y($),j=Y(k);W((function(){M.current=w,N.current=$,j.current=k}),[$,w,k]);var V,I,z=ic((function(){return{y:0,ready:0,maxHeight:0,minSnap:0,maxSnap:0}})),A=z[0],H=z[1],B=Y(null),F=Y(null),q=Y(null),U=Y(null),X=Y(null),K=Y(null),Q=Y(0),re=Y(),ie=Y(!1),oe=(V=ee((function(){return"undefined"!=typeof window?window.matchMedia("(prefers-reduced-motion: reduce)"):null}),[]),I=Y(null==V?void 0:V.matches),ne(I.current?"reduce":"no-preference"),W((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=Y({activate:function(){throw new TypeError("Tried to activate scroll lock too early")},deactivate:function(){}});return ne(n?"Enabled":"Disabled"),W((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,hu(e,{allowTouchMove:function(e){return e.closest("[data-body-scroll-lock-ignore]")},reserveScrollBarGap:r}))},deactivate:function(){o&&(o=!1,fu(e))}}}),[n,t,r]),i}({targetRef:F,enabled:R&&y,reserveScrollBarGap:E}),le=function(e){var t=e.targetRef,n=e.enabled,r=Y({activate:function(){throw new TypeError("Tried to activate aria hider too early")},deactivate:function(){}});return ne(n?"Enabled":"Disabled"),W((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=Y({activate:function(){throw new TypeError("Tried to activate focus trap too early")},deactivate:function(){}});return ne(i?"Enabled":"Disabled"),W((function(){if(!i)return o.current.deactivate(),void(o.current={activate:function(){},deactivate:function(){}});var e=n.current,a=tu(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:K,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=ee((function(){return l("contentHeight")}),[l]),d=function(e,t,n){var r=ee((function(){return t("maxHeight")}),[t]),i=G((function(){return ip(e)||"undefined"!=typeof window?window.innerHeight:0})),o=i[0],a=i[1],l=o>0,s=Y(0);return ne(e?"controlled":"auto"),W((function(){l&&r()}),[l,r]),np((function(){if(e)return a(ip(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=ap(a,{label:"headerHeight",enabled:o,resizeSourceRef:s}),p=ap(t,{label:"contentHeight",enabled:!0,resizeSourceRef:s}),h=ap(i,{label:"footerHeight",enabled:r,resizeSourceRef:s}),f=Math.min(d-u-h,p)+u+h;ne("minHeight: "+f);var g=p>0;return W((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(ip).reduce((function(e,n){return e.add(rp(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 ne("minSnap: "+p+", maxSnap:"+h),{minSnap:p,maxSnap:h,findSnap:function(e){var t=ip("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:q,controlledMaxHeight:p,footerEnabled:!!o,footerRef:X,getSnapPoints:v,headerEnabled:!1!==a,headerRef:U,heightRef:Q,lastSnapRef:c,ready:R,registerReady:P,resizeSourceRef:re}),de=ce.minSnap,ue=ce.maxSnap,pe=ce.maxHeight,he=ce.findSnap,fe=Y(pe),ge=Y(de),ve=Y(ue),me=Y(he),xe=Y(0);np((function(){fe.current=pe,ve.current=ue,ge.current=de,me.current=he,xe.current=he(f)}),[he,f,pe,ue,de]);var be=J((function(e){var t=e.onRest,n=e.config,r=(n=void 0===n?{}:n).velocity,i=void 0===r?1:r,o=tp(n,pp),a=tp(e,hp);return new Promise((function(e){return H(ep({},a,{config:ep({velocity:i},o,{mass:1,tension:gp,friction:Math.max(vp,vp+(vp-vp*i))}),onRest:function(){var n=[].slice.call(arguments);e.apply(void 0,n),null==t||t.apply(void 0,n)}}))}))}),[H]),ye=_s(dp,{devTools:!1,actions:{onOpenCancel:J((function(){return null==N.current?void 0:N.current({type:"OPEN"})}),[]),onSnapCancel:J((function(e){return null==N.current?void 0:N.current({type:"SNAP",source:e.snapSource})}),[]),onCloseCancel:J((function(){return null==N.current?void 0:N.current({type:"CLOSE"})}),[]),onResizeCancel:J((function(){return null==N.current?void 0:N.current({type:"RESIZE",source:re.current})}),[]),onOpenEnd:J((function(){return null==j.current?void 0:j.current({type:"OPEN"})}),[]),onSnapEnd:J((function(e,t){return null==j.current?void 0:j.current({type:"SNAP",source:e.snapSource})}),[]),onResizeEnd:J((function(){return null==j.current?void 0:j.current({type:"RESIZE",source:re.current})}),[])},context:{initialState:s},services:{onSnapStart:J((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:J((function(){try{return Promise.resolve(null==M.current?void 0:M.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseStart:J((function(){try{return Promise.resolve(null==M.current?void 0:M.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeStart:J((function(){try{return Promise.resolve(null==M.current?void 0:M.current({type:"RESIZE",source:re.current}))}catch(e){return Promise.reject(e)}}),[]),onSnapEnd:J((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:J((function(){try{return Promise.resolve(null==j.current?void 0:j.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseEnd:J((function(){try{return Promise.resolve(null==j.current?void 0:j.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeEnd:J((function(){try{return Promise.resolve(null==j.current?void 0:j.current({type:"RESIZE",source:re.current}))}catch(e){return Promise.reject(e)}}),[]),renderVisuallyHidden:J((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:J((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:J((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:J((function(){try{return Q.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:J((function(){try{return Promise.resolve(be({y:0,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:!0})).then((function(){return Q.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:J((function(e,t){try{var n=me.current(e.y);return Q.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:J((function(){try{var e=me.current(Q.current);return Q.current=e,c.current=e,Promise.resolve(be({y:e,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:ge.current,immediate:"element"!==re.current||oe.current})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be,c,oe]),closeSmoothly:J((function(e,t){try{return be({minSnap:Q.current,immediate:!0}),Q.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];W((function(){R&&we(l?"OPEN":"CLOSE")}),[l,we,R]),np((function(){(pe||ue||de)&&we("RESIZE")}),[pe,ue,de,we]),W((function(){return function(){ae.current.deactivate(),se.current.deactivate(),le.current.deactivate()}}),[le,se,ae]),te(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 Q.current}}}),[we]),W((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 L&&(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)}}),[L,F]);var $e=Sd((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?Ac(x,u?0:ge.current,ve.current,.55):x<ge.current?Ac(x,ge.current,2*ve.current,.55):Ac(x,ge.current/2,ve.current,.55):y;return L&&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=Js([n.y,n.maxHeight],(function(e,t){return Math.round(rp(t-e,0,16))+"px"})),i=Js([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return rp(e,t,n)+"px"})),o=Js([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return e<t?t-e+"px":e>n?n-e+"px":"0px"})),a=Js([n.y,n.maxSnap],(function(e,t){return e>=t?Math.ceil(e-t):0})),l=Js([n.y,n.minSnap],(function(e,t){if(!t)return 0;var n=Math.max(t/2-45,0);return rp((e-n)*(1/(Math.min(t/2+45,t)-n)+0),0,1)})),s=Js([n.y,n.minSnap],(function(e,t){return t?rp(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 Z.createElement(Mc.div,ep({},_,{"data-rsbs-root":!0,"data-rsbs-state":xp.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:ep({},ke,C,{opacity:A.ready})}),r,x&&Z.createElement("div",ep({key:"backdrop","data-rsbs-backdrop":!0},$e({closeOnTap:!0}))),Z.createElement("div",{key:"overlay","aria-modal":"true",role:"dialog","data-rsbs-overlay":!0,tabIndex:-1,ref:K,onKeyDown:function(e){"Escape"===e.key&&(e.stopPropagation(),u&&u())}},!1!==a&&Z.createElement("div",ep({key:"header","data-rsbs-header":!0,ref:U},$e()),a),Z.createElement("div",ep({key:"scroll","data-rsbs-scroll":!0,ref:F},L?$e({isContentDragging:!0}):{}),Z.createElement("div",{"data-rsbs-content":!0,ref:q},n)),o&&Z.createElement("div",ep({key:"footer",ref:X,"data-rsbs-footer":!0},$e()),o)))})),xp=["closed","opening","open","closing","dragging","snapping","resizing"];function bp(e){var t=e.lastSnap;return null!=t?t:Math.min.apply(Math,e.snapPoints)}function yp(e){return e.minHeight}var Cp=["onSpringStart","onSpringEnd","skipInitialTransition"],wp=q((function(e,t){var n=e.onSpringStart,r=e.onSpringEnd,i=e.skipInitialTransition,o=tp(e,Cp),a=G(!1),l=a[0],s=a[1],c=Y(),d=Y(null),u=Y(i&&o.open?"OPEN":"CLOSED");np((function(){if(o.open)return cancelAnimationFrame(c.current),s(!0),function(){u.current="CLOSED"}}),[o.open]);var p=J((function(e){return Promise.resolve(null==n?void 0:n(e)).then((function(){"OPEN"===e.type&&cancelAnimationFrame(c.current)}))}),[n]),h=J((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?Z.createElement(xa,{"data-rsbs-portal":!0},Z.createElement(mp,ep({},o,{lastSnapRef:d,ref:t,initialState:u.current,onSpringStart:p,onSpringEnd:h}))):null}));const $p=(e,t)=>ie`
2313
2317
  [data-rsbs-overlay] {
2314
2318
  border-top-left-radius: 16px;
2315
2319
  border-top-right-radius: 16px;
@@ -2338,7 +2342,7 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2338
2342
  padding: 0px;
2339
2343
  min-height: 64px;
2340
2344
  }
2341
- `;!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})=>H(Cp,{css:wp(!!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}),kp=ie`
2345
+ `;!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 kp=({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})=>H(wp,{css:$p(!!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}),Sp=ie`
2342
2346
  a,
2343
2347
  p {
2344
2348
  font-size: 16px;
@@ -2370,19 +2374,19 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2370
2374
  a:hover {
2371
2375
  text-decoration: underline;
2372
2376
  }
2373
- `,Sp=ie`
2377
+ `,Ep=ie`
2374
2378
  svg {
2375
2379
  height: 12px;
2376
2380
  width: 12px;
2377
2381
  color: ${he("neutral",600)};
2378
2382
  }
2379
- `,Ep=ie`
2383
+ `,Op=ie`
2380
2384
  cursor: pointer;
2381
2385
  color: ${he("neutral",600)};
2382
2386
  display: flex;
2383
2387
  justify-content: center;
2384
2388
  align-items: center;
2385
- `,Op=({links:e,separator:t,maxItems:n=99,linkRouter:r})=>{const[i,o]=G(e.length>n);W((()=>{o(e.length>n)}),[e.length]);const a=r;return H(D.Root,{children:H(D.List,{gap:"16px",children:i?A(B,{children:[H(D.Item,{css:kp,children:A(a,{to:e[0].link,href:e[0].link,children:[e[0].icon,e[0].label]})}),H(D.Separator,{css:Sp,children:t||H(Se,{rotate:"270"})}),H("li",{className:"chakra-breadcrumb__item",children:H("button",{css:Ep,type:"button",onClick:()=>o(!1),children:"..."})}),H(D.Separator,{css:Sp,children:t||H(Se,{rotate:"270"})}),H(D.Item,{css:kp,children:A("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?A(re,{children:[H(D.Item,{css:kp,children:r<e.length-1?A(a,{to:n.link,href:n.link,children:[n.icon,n.label]}):A("p",{"aria-current":"page","aria-label":n.label,children:[n.label&&n.icon?n.icon:"",n.label]})}),r<e.length-1?H(D.Separator,{css:Sp,children:t||H(Se,{rotate:"270"})}):null]},n.label):null))})})},Lp=(e,t)=>ie`
2389
+ `,Lp=({links:e,separator:t,maxItems:n=99,linkRouter:r})=>{const[i,o]=G(e.length>n);W((()=>{o(e.length>n)}),[e.length]);const a=r;return H(D.Root,{children:H(D.List,{gap:"16px",children:i?A(B,{children:[H(D.Item,{css:Sp,children:A(a,{to:e[0].link,href:e[0].link,children:[e[0].icon,e[0].label]})}),H(D.Separator,{css:Ep,children:t||H(Se,{rotate:"270"})}),H("li",{className:"chakra-breadcrumb__item",children:H("button",{css:Op,type:"button",onClick:()=>o(!1),children:"..."})}),H(D.Separator,{css:Ep,children:t||H(Se,{rotate:"270"})}),H(D.Item,{css:Sp,children:A("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?A(re,{children:[H(D.Item,{css:Sp,children:r<e.length-1?A(a,{to:n.link,href:n.link,children:[n.icon,n.label]}):A("p",{"aria-current":"page","aria-label":n.label,children:[n.label&&n.icon?n.icon:"",n.label]})}),r<e.length-1?H(D.Separator,{css:Ep,children:t||H(Se,{rotate:"270"})}):null]},n.label):null))})})},_p=(e,t)=>ie`
2386
2390
  min-height: 56px;
2387
2391
  width: 100vw;
2388
2392
  position: ${e?"sticky":"absolute"};
@@ -2392,7 +2396,7 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2392
2396
  background-color: ${he("neutral",t?200:100)};
2393
2397
  border-top: 1px solid ${he("neutral",400)};
2394
2398
  z-index: 101;
2395
- `,_p=e=>ie`
2399
+ `,Tp=e=>ie`
2396
2400
  height: 100%;
2397
2401
  width: 100%;
2398
2402
  max-width: ${e?`${e}px`:"100%"};
@@ -2407,7 +2411,7 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2407
2411
  flex-direction: column;
2408
2412
  align-items: flex-start;
2409
2413
  }
2410
- `,Tp=ie`
2414
+ `,Rp=ie`
2411
2415
  display: flex;
2412
2416
  align-items: center;
2413
2417
  flex-wrap: wrap;
@@ -2420,7 +2424,7 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2420
2424
  color: ${he("neutral",700)};
2421
2425
  text-decoration: underline;
2422
2426
  }
2423
- `,Rp=ie`
2427
+ `,Pp=ie`
2424
2428
  width: 240px;
2425
2429
  font-size: 14px;
2426
2430
  line-height: 20px;
@@ -2431,13 +2435,13 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2431
2435
  @media screen and (max-width: 768px) {
2432
2436
  text-align: left;
2433
2437
  }
2434
- `,Pp=({children:e,label:t="© World Resources Institute",fixed:n,filled:r,maxWidth:i})=>{const o=(new Date).getFullYear();return H("footer",{css:Lp(n,r),children:A("div",{css:_p(i),children:[H("div",{children:H(Me,{height:"32px",width:"91px"})}),H("div",{css:Tp,children:e}),H("div",{children:A("p",{css:Rp,children:[t," ",o]})})]})})},Dp=ie`
2438
+ `,Dp=({children:e,label:t="© World Resources Institute",fixed:n,filled:r,maxWidth:i})=>{const o=(new Date).getFullYear();return H("footer",{css:_p(n,r),children:A("div",{css:Tp(i),children:[H("div",{children:H(Me,{height:"32px",width:"91px"})}),H("div",{css:Rp,children:e}),H("div",{children:A("p",{css:Pp,children:[t," ",o]})})]})})},Mp=ie`
2435
2439
  width: 100%;
2436
2440
  display: flex;
2437
2441
  align-items: center;
2438
2442
  height: 56px;
2439
2443
  background-color: ${he("neutral",200)};
2440
- `,Mp=ie`
2444
+ `,Np=ie`
2441
2445
  height: 56px;
2442
2446
  width: 99%;
2443
2447
  background-color: ${he("neutral",200)};
@@ -2531,9 +2535,9 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2531
2535
  opacity: 1;
2532
2536
  }
2533
2537
  }
2534
- `,Np=ie`
2535
- position: relative;
2536
2538
  `,jp=ie`
2539
+ position: relative;
2540
+ `,Vp=ie`
2537
2541
  position: absolute;
2538
2542
  top: -5px;
2539
2543
  right: -5px;
@@ -2548,7 +2552,7 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2548
2552
  display: flex;
2549
2553
  justify-content: center;
2550
2554
  align-items: center;
2551
- `,Vp=(e,t)=>e.findIndex((e=>e.value===t)),Ip=({defaultValue:e,tabs:t,onTabClick:n})=>{const[r,i]=G(Vp(t,e)||0);return H("div",{css:Dp,children:H(M.Root,{width:"full",defaultValue:e||t?.[0]?.value,onValueChange:({value:e})=>{return i(Vp(t,r=e)),void(n&&n(r));var r},children:H(M.List,{alignItems:"center",border:"none",children:t.map(((e,t)=>A(M.Trigger,{css:Mp,"aria-label":e["aria-label"]||e.label,...e,children:[A("div",{css:Np,children:[e.icon,e.bagdeCount?H("div",{css:jp,className:"ds-badge-count",children:e.bagdeCount}):null]}),e.hideLabel?null:H("p",{children:e.label})]},e.label)))})})})},zp=(e,t)=>ie`
2555
+ `,Ip=(e,t)=>e.findIndex((e=>e.value===t)),zp=({defaultValue:e,tabs:t,onTabClick:n})=>{const[r,i]=G(Ip(t,e)||0);return H("div",{css:Mp,children:H(M.Root,{width:"full",defaultValue:e||t?.[0]?.value,onValueChange:({value:e})=>{return i(Ip(t,r=e)),void(n&&n(r));var r},children:H(M.List,{alignItems:"center",border:"none",children:t.map(((e,t)=>A(M.Trigger,{css:Np,"aria-label":e["aria-label"]||e.label,...e,children:[A("div",{css:jp,children:[e.icon,e.bagdeCount?H("div",{css:Vp,className:"ds-badge-count",children:e.bagdeCount}):null]}),e.hideLabel?null:H("p",{children:e.label})]},e.label)))})})})},Ap=(e,t)=>ie`
2552
2556
  height: ${e?"96px":"48px"};
2553
2557
  width: 100%;
2554
2558
  background-color: ${he("neutral",100)};
@@ -2557,7 +2561,7 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2557
2561
  left: 0;
2558
2562
  z-index: 102;
2559
2563
  border-bottom: 1px solid ${he("neutral",400)};
2560
- `,Ap=ie`
2564
+ `,Hp=ie`
2561
2565
  height: 48px;
2562
2566
  width: 100%;
2563
2567
  background-color: ${he("neutral",100)};
@@ -2567,7 +2571,7 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2567
2571
  justify-content: flex-start;
2568
2572
  gap: 0px;
2569
2573
  padding: 8px 16px;
2570
- `,Hp=(e,t)=>ie`
2574
+ `,Bp=(e,t)=>ie`
2571
2575
  height: 48px;
2572
2576
  width: 100%;
2573
2577
  max-width: ${t?`${t}px`:"100%"};
@@ -2577,7 +2581,7 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2577
2581
  justify-content: space-between;
2578
2582
  margin: 0 auto;
2579
2583
  padding: 8px 16px;
2580
- `,Bp=ie`
2584
+ `,Fp=ie`
2581
2585
  outline: none;
2582
2586
  a {
2583
2587
  &:focus-visible {
@@ -2588,12 +2592,12 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2588
2592
  outline-width: 2px;
2589
2593
  }
2590
2594
  }
2591
- `,Fp=e=>ie`
2595
+ `,Zp=e=>ie`
2592
2596
  display: ${e?"none":"flex"};
2593
2597
  align-items: center;
2594
2598
  justify-content: flex-start;
2595
2599
  gap: 0px;
2596
- `,Zp=e=>ie`
2600
+ `,qp=e=>ie`
2597
2601
  font-size: 16px;
2598
2602
  line-height: 24px;
2599
2603
  font-weight: 400;
@@ -2618,12 +2622,12 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2618
2622
  font-weight: 700;
2619
2623
  color: ${he("accessible","controls-on-neutral-lights")};
2620
2624
  `:""}
2621
- `,qp=ie`
2625
+ `,Gp=ie`
2622
2626
  height: 48px;
2623
2627
  display: flex;
2624
2628
  align-items: center;
2625
2629
  justify-content: flex-end;
2626
- `,Gp=e=>ie`
2630
+ `,Wp=e=>ie`
2627
2631
  height: 100%;
2628
2632
  font-size: 16px;
2629
2633
  line-height: 24px;
@@ -2642,7 +2646,7 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2642
2646
  }
2643
2647
  }
2644
2648
  `:""}
2645
- `,Wp=e=>ie`
2649
+ `,Up=e=>ie`
2646
2650
  height: 100%;
2647
2651
  display: flex;
2648
2652
  align-items: center;
@@ -2650,7 +2654,7 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2650
2654
  gap: 20px;
2651
2655
  padding-left: 16px;
2652
2656
  border-left: 1px solid ${he("neutral",e?700:300)};
2653
- `,Up=ie`
2657
+ `,Xp=ie`
2654
2658
  background-color: none;
2655
2659
  border: none;
2656
2660
  cursor: pointer;
@@ -2675,7 +2679,7 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2675
2679
  outline-width: 2px;
2676
2680
  background-color: ${he("neutral",200)};
2677
2681
  }
2678
- `,Xp=e=>ie`
2682
+ `,Yp=e=>ie`
2679
2683
  position: absolute;
2680
2684
  top: 48px;
2681
2685
  right: 0;
@@ -2688,10 +2692,10 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2688
2692
  justify-content: flex-start;
2689
2693
  gap: 16px;
2690
2694
  transition: width 0.5s ease-in-out;
2691
- `,Yp=ie`
2695
+ `,Kp=ie`
2692
2696
  height: 100%;
2693
2697
  width: 100%;
2694
- `,Kp=ie`
2698
+ `,Jp=ie`
2695
2699
  background-color: ${he("neutral",200)};
2696
2700
  border-bottom: 1px solid ${he("neutral",300)};
2697
2701
 
@@ -2711,13 +2715,13 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2711
2715
  margin-left: -12px;
2712
2716
  }
2713
2717
  }
2714
- `,Jp=ie`
2715
- background-color: ${he("neutral",100)};
2716
2718
  `,Qp=ie`
2719
+ background-color: ${he("neutral",100)};
2720
+ `,eh=ie`
2717
2721
  min-height: 100vh;
2718
2722
  width: 100%;
2719
2723
  overflow-y: scroll;
2720
- `;ie``;const eh=e=>ie`
2724
+ `;ie``;const th=e=>ie`
2721
2725
  display: inline-block;
2722
2726
  width: 100%;
2723
2727
  padding: 12px 16px;
@@ -2746,7 +2750,7 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2746
2750
  outline-width: 2px;
2747
2751
  background-color: ${he("neutral",200)};
2748
2752
  }
2749
- `,th=ie`
2753
+ `,nh=ie`
2750
2754
  width: 100%;
2751
2755
  padding: 12px 16px;
2752
2756
  display: flex;
@@ -2770,7 +2774,7 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2770
2774
  outline-width: 2px;
2771
2775
  background-color: ${he("neutral",200)};
2772
2776
  }
2773
- `,nh=e=>ie`
2777
+ `,rh=e=>ie`
2774
2778
  position: absolute;
2775
2779
  top: 0px;
2776
2780
  right: 0;
@@ -2782,7 +2786,7 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2782
2786
  align-items: flex-start;
2783
2787
  justify-content: flex-start;
2784
2788
  transition: width 0.5s ease-in-out;
2785
- `,rh=ie`
2789
+ `,ih=ie`
2786
2790
  height: 48px;
2787
2791
  width: 100%;
2788
2792
  display: flex;
@@ -2793,7 +2797,7 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2793
2797
  position: relative;
2794
2798
  top: 0;
2795
2799
  left: 0;
2796
- `,ih=ie`
2800
+ `,oh=ie`
2797
2801
  position: absolute;
2798
2802
  bottom: 0;
2799
2803
  left: 0;
@@ -2808,13 +2812,13 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2808
2812
  button {
2809
2813
  width: calc(48% - 24px);
2810
2814
  }
2811
- `,oh=({navigationSection:e,utilitySection:t,actionsSection:n,linkRouter:r,isOpen:i,setIsOpen:o,pathname:a})=>{const[l,s]=G(void 0),[c,d]=G(-1),u=Y(null),p=Y([]),h=r;return A(B,{children:[H("div",{css:Xp(i),children:i&&A("div",{css:Yp,children:[A("div",{style:{overflowY:"scroll",width:"100%",height:"100%",paddingBottom:"72px"},children:[t?H("div",{css:Kp,children:t?.map((e=>H("div",{className:"ds-utility-item",children:e})))}):null,e?H("div",{css:Jp,children:e.map(((e,t)=>e.link?H(h,{to:e.link,href:e.link,onClick:()=>{s(void 0),d(-1),o(!1)},css:eh(a===e.link),children:e.label},e.label):A("button",{css:th,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?H(Se,{rotate:"270",color:"var(--chakra-colors-neutral-700)"}):null]},e.label)))}):null]}),n?H("div",{css:ih,children:n.map((e=>H(be,{label:e.label,onClick:()=>{e?.onClick?.(),s(void 0),d(-1),o(!1)}},e.label)))}):null]})}),H("div",{css:nh(!!l?.items),children:l?.items?A(B,{children:[A("div",{css:rh,children:[A("button",{type:"button",onClick:()=>{s(void 0),d(-1),p.current[c]?.focus()},"aria-label":"Go back",css:Up,ref:u,children:[H(Se,{rotate:"90",color:"var(--chakra-colors-neutral-700)"}),l?.label]}),A("button",{type:"button",onClick:()=>{s(void 0),d(-1),o(!1)},"aria-label":"Close menu",css:Up,children:["Close",H(Oe,{height:"16px",width:"16px"})]})]}),H("div",{css:Qp,children:l?.items?.map((e=>H(h,{to:e.link,href:e.link,css:eh(),onClick:()=>{s(void 0),d(-1),o(!1)},children:e.label},e.label)))})]}):null})]})},ah=1023,lh=({logo:e,linkRouter:t,pathname:n,navigationSection:r,utilitySection:i,actionsSection:o,maxWidth:a,fixed:l,onNavbarHeightChange:s})=>{const c=Y(null),d=Y(null),u=Y(null),[p,h]=G(!1),[f,g]=G(-1),[v,m]=G("undefined"!=typeof window&&window?.innerWidth<=ah),[x,b]=G(!1),y=t,C=J((()=>{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<=ah||window.innerWidth<=f?(s?.(96),h(!0)):window.innerWidth>ah&&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<=ah||n.right>=t.left?(m(!0),s?.(48)):(m(!1),s?.(96)))}}),[f,p]);return W((()=>(C(),window.addEventListener("resize",C),()=>{window.removeEventListener("resize",C)})),[C]),A("nav",{css:zp(p&&!v,l),children:[A("div",{css:Hp(p&&!v,a),children:[A("div",{css:(w=p&&!v,ie`
2815
+ `,ah=({navigationSection:e,utilitySection:t,actionsSection:n,linkRouter:r,isOpen:i,setIsOpen:o,pathname:a})=>{const[l,s]=G(void 0),[c,d]=G(-1),u=Y(null),p=Y([]),h=r;return A(B,{children:[H("div",{css:Yp(i),children:i&&A("div",{css:Kp,children:[A("div",{style:{overflowY:"scroll",width:"100%",height:"100%",paddingBottom:"72px"},children:[t?H("div",{css:Jp,children:t?.map((e=>H("div",{className:"ds-utility-item",children:e})))}):null,e?H("div",{css:Qp,children:e.map(((e,t)=>e.link?H(h,{to:e.link,href:e.link,onClick:()=>{s(void 0),d(-1),o(!1)},css:th(a===e.link),children:e.label},e.label):A("button",{css:nh,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?H(Se,{rotate:"270",color:"var(--chakra-colors-neutral-700)"}):null]},e.label)))}):null]}),n?H("div",{css:oh,children:n.map((e=>H(be,{label:e.label,onClick:()=>{e?.onClick?.(),s(void 0),d(-1),o(!1)}},e.label)))}):null]})}),H("div",{css:rh(!!l?.items),children:l?.items?A(B,{children:[A("div",{css:ih,children:[A("button",{type:"button",onClick:()=>{s(void 0),d(-1),p.current[c]?.focus()},"aria-label":"Go back",css:Xp,ref:u,children:[H(Se,{rotate:"90",color:"var(--chakra-colors-neutral-700)"}),l?.label]}),A("button",{type:"button",onClick:()=>{s(void 0),d(-1),o(!1)},"aria-label":"Close menu",css:Xp,children:["Close",H(Oe,{height:"16px",width:"16px"})]})]}),H("div",{css:eh,children:l?.items?.map((e=>H(h,{to:e.link,href:e.link,css:th(),onClick:()=>{s(void 0),d(-1),o(!1)},children:e.label},e.label)))})]}):null})]})},lh=1023,sh=({logo:e,linkRouter:t,pathname:n,navigationSection:r,utilitySection:i,actionsSection:o,maxWidth:a,fixed:l,onNavbarHeightChange:s})=>{const c=Y(null),d=Y(null),u=Y(null),[p,h]=G(!1),[f,g]=G(-1),[v,m]=G("undefined"!=typeof window&&window?.innerWidth<=lh),[x,b]=G(!1),y=t,C=J((()=>{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<=lh||window.innerWidth<=f?(s?.(96),h(!0)):window.innerWidth>lh&&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<=lh||n.right>=t.left?(m(!0),s?.(48)):(m(!1),s?.(96)))}}),[f,p]);return W((()=>(C(),window.addEventListener("resize",C),()=>{window.removeEventListener("resize",C)})),[C]),A("nav",{css:Ap(p&&!v,l),children:[A("div",{css:Bp(p&&!v,a),children:[A("div",{css:(w=p&&!v,ie`
2812
2816
  display: flex;
2813
2817
  align-items: center;
2814
2818
  justify-content: flex-start;
2815
2819
  gap: 12px;
2816
2820
  color: ${he("neutral",w?100:900)};
2817
- `),ref:c,children:[e?H("div",{ref:u,css:Bp,children:e}):null,H("div",{css:Fp(p),children:r?.map((e=>e.link?H(y,{to:e.link,href:e.link,css:Zp(n===e.link),children:e.label},e.label):H(vt,{label:e.label,items:e.items||[]},e.label)))})]}),H("div",{css:qp,ref:d,children:v?A("button",{type:"button",onClick:()=>b(!x),"aria-label":"Open menu",css:Up,children:[x?"Close":"Menu",H(x?Oe:Ke,{height:"16px",width:"16px"})]}):A(B,{children:[H("div",{css:qp,children:i?.map(((e,t)=>H("div",{css:Gp(p),children:e},t)))}),o?H("div",{css:Wp(p),children:o.map((e=>H(be,{...e},e.label)))}):null]})})]}),p&&!v?H("div",{css:Ap,children:r?.map((e=>e.link?H(y,{to:e.link,href:e.link,css:Zp(n===e.link),children:e.label},e.label):H(vt,{label:e.label,items:e.items||[]},e.label)))}):null,v?H(oh,{navigationSection:r,utilitySection:i,actionsSection:o,linkRouter:t,isOpen:x,setIsOpen:b,pathname:n}):null]});var w},sh=ie`
2821
+ `),ref:c,children:[e?H("div",{ref:u,css:Fp,children:e}):null,H("div",{css:Zp(p),children:r?.map((e=>e.link?H(y,{to:e.link,href:e.link,css:qp(n===e.link),children:e.label},e.label):H(vt,{label:e.label,items:e.items||[]},e.label)))})]}),H("div",{css:Gp,ref:d,children:v?A("button",{type:"button",onClick:()=>b(!x),"aria-label":"Open menu",css:Xp,children:[x?"Close":"Menu",H(x?Oe:Ke,{height:"16px",width:"16px"})]}):A(B,{children:[H("div",{css:Gp,children:i?.map(((e,t)=>H("div",{css:Wp(p),children:e},t)))}),o?H("div",{css:Up(p),children:o.map((e=>H(be,{...e},e.label)))}):null]})})]}),p&&!v?H("div",{css:Hp,children:r?.map((e=>e.link?H(y,{to:e.link,href:e.link,css:qp(n===e.link),children:e.label},e.label):H(vt,{label:e.label,items:e.items||[]},e.label)))}):null,v?H(ah,{navigationSection:r,utilitySection:i,actionsSection:o,linkRouter:t,isOpen:x,setIsOpen:b,pathname:n}):null]});var w},ch=ie`
2818
2822
  width: 64px;
2819
2823
  height: 100%;
2820
2824
  z-index: 100;
@@ -2823,7 +2827,7 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2823
2827
  display: flex;
2824
2828
  flex-direction: column;
2825
2829
  justify-content: space-between;
2826
- `,ch=ie`
2830
+ `,dh=ie`
2827
2831
  width: 64px;
2828
2832
  height: 64px;
2829
2833
  background-color: ${he("neutral",200)};
@@ -2913,7 +2917,7 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2913
2917
  }
2914
2918
  }
2915
2919
  }
2916
- `,dh=ie`
2920
+ `,uh=ie`
2917
2921
  display: flex;
2918
2922
  justify-content: center;
2919
2923
  align-items: center;
@@ -2926,7 +2930,7 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2926
2930
  fill: ${he("neutral",600)};
2927
2931
  }
2928
2932
  }
2929
- `,uh=ie`
2933
+ `,ph=ie`
2930
2934
  width: 64px;
2931
2935
  height: 64px;
2932
2936
  background-color: ${he("neutral",200)};
@@ -2964,7 +2968,7 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2964
2968
  text-align: center;
2965
2969
  color: ${he("neutral",600)};
2966
2970
  }
2967
- `,ph=ie`
2971
+ `,hh=ie`
2968
2972
  width: 320px;
2969
2973
  height: 100%;
2970
2974
  z-index: 100;
@@ -2972,14 +2976,14 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2972
2976
  background-color: ${he("neutral",100)};
2973
2977
  overflow-y: auto;
2974
2978
  overflow-x: hidden;
2975
- `,hh=({tabs:e=[],defaultValue:t,onTabClick:n,children:i,onOpenChange:o})=>{const[a,l]=G(!1),[s,c]=G(t||e?.[0]?.value);return A("div",{style:{height:"calc(100vh - 48px - 56px)",position:"fixed",top:"48px",left:0,display:"flex"},children:[A("div",{css:sh,children:[H(M.Root,{defaultValue:t||e?.[0]?.value,orientation:"horizontal",width:"full",onValueChange:({value:e})=>{var t;c(t=e),n&&n(t)},role:"tablist",children:H(M.List,{alignItems:"center",border:"none",style:{flexDirection:"column"},children:e.map((e=>H(M.Trigger,{css:ch,"aria-label":e["aria-label"]||e.label,...e,children:A(r,{display:"flex",alignItems:"center",flexDirection:"column",gap:"5px",className:"ds-tab-label",children:[e.icon?H("div",{css:dh,children:e.icon}):null,H("p",{children:e.label})]})},e.label)))})}),i?H(N.Root,{onOpenChange:({open:e})=>{l(e),o&&o(!e)},children:A(N.Trigger,{css:uh,children:[H("div",{css:dh,children:H(a?Ce:ye,{})}),A("div",{className:"ds-tab-label",children:[H("p",{children:a?"Show":"Hide"}),H("p",{children:"Sidebar"})]})]})}):null]}),i?H(N.Root,{defaultOpen:!0,open:!a,children:H(N.Content,{height:"100%",children:H("div",{css:ph,role:"tabpanel","aria-labelledby":s,children:i})})}):null]})},fh=e=>ie`
2979
+ `,fh=({tabs:e=[],defaultValue:t,onTabClick:n,children:i,onOpenChange:o})=>{const[a,l]=G(!1),[s,c]=G(t||e?.[0]?.value);return A("div",{style:{height:"calc(100vh - 48px - 56px)",position:"fixed",top:"48px",left:0,display:"flex"},children:[A("div",{css:ch,children:[H(M.Root,{defaultValue:t||e?.[0]?.value,orientation:"horizontal",width:"full",onValueChange:({value:e})=>{var t;c(t=e),n&&n(t)},role:"tablist",children:H(M.List,{alignItems:"center",border:"none",style:{flexDirection:"column"},children:e.map((e=>H(M.Trigger,{css:dh,"aria-label":e["aria-label"]||e.label,...e,children:A(r,{display:"flex",alignItems:"center",flexDirection:"column",gap:"5px",className:"ds-tab-label",children:[e.icon?H("div",{css:uh,children:e.icon}):null,H("p",{children:e.label})]})},e.label)))})}),i?H(N.Root,{onOpenChange:({open:e})=>{l(e),o&&o(!e)},children:A(N.Trigger,{css:ph,children:[H("div",{css:uh,children:H(a?Ce:ye,{})}),A("div",{className:"ds-tab-label",children:[H("p",{children:a?"Show":"Hide"}),H("p",{children:"Sidebar"})]})]})}):null]}),i?H(N.Root,{defaultOpen:!0,open:!a,children:H(N.Content,{height:"100%",children:H("div",{css:hh,role:"tabpanel","aria-labelledby":s,children:i})})}):null]})},gh=e=>ie`
2976
2980
  width: 100%;
2977
2981
  display: flex;
2978
2982
  align-items: center;
2979
2983
  height: 40px;
2980
2984
 
2981
2985
  ${"view"===e&&`\n border: 1px solid ${he("neutral",400)};\n background-color: ${he("neutral",200)};\n border-radius: 4px;\n padding: 4px;\n `}
2982
- `,gh=ie`
2986
+ `,vh=ie`
2983
2987
  width: 99%;
2984
2988
  height: 40px;
2985
2989
  padding: 8px 16px;
@@ -2995,7 +2999,7 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2995
2999
  &:focus-visible {
2996
3000
  box-shadow: none;
2997
3001
  }
2998
- `,vh=ie`
3002
+ `,mh=ie`
2999
3003
  background-color: ${he("neutral",200)};
3000
3004
  color: ${he("neutral",700)};
3001
3005
 
@@ -3052,11 +3056,11 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3052
3056
  opacity: 1;
3053
3057
  }
3054
3058
  }
3055
- `,mh=ie`
3059
+ `,xh=ie`
3056
3060
  width: 4px;
3057
3061
  height: 24px;
3058
3062
  background-color: ${he("neutral",400)};
3059
- `,xh=ie`
3063
+ `,bh=ie`
3060
3064
  height: 32px;
3061
3065
  border-radius: 2px;
3062
3066
  background-color: ${he("neutral",200)};
@@ -3129,16 +3133,16 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3129
3133
  opacity: 1;
3130
3134
  }
3131
3135
  }
3132
- `,bh=(e,t)=>e.findIndex((e=>e.value===t)),yh=e=>1===e?"none":2===e?"left":"right",Ch=({variant:e="panel",defaultValue:t,tabs:n,onTabClick:i})=>{const[o,a]=G(bh(n,t)||0),l="view"===e;return H("div",{css:fh(e),children:H(M.Root,{width:"full",defaultValue:t||n?.[0]?.value,onValueChange:({value:e})=>{return a(bh(n,t=e)),void(i&&i(t));var t},children:H(M.List,{alignItems:"center",border:"none",children:n.map(((e,t)=>A(re,{children:[l&&1===t&&"left"===yh(o)?H("div",{css:mh}):null,H(M.Trigger,{css:[gh,l?xh:vh],"aria-label":e["aria-label"]||e.label,...e,children:A(r,{display:"flex",alignItems:"center",gap:"5px",children:[e.icon,e.label]})},e.label),l&&1===t&&"right"===yh(o)?H("div",{css:mh}):null]},e.label)))})})})},wh=ie`
3136
+ `,yh=(e,t)=>e.findIndex((e=>e.value===t)),Ch=e=>1===e?"none":2===e?"left":"right",wh=({variant:e="panel",defaultValue:t,tabs:n,onTabClick:i})=>{const[o,a]=G(yh(n,t)||0),l="view"===e;return H("div",{css:gh(e),children:H(M.Root,{width:"full",defaultValue:t||n?.[0]?.value,onValueChange:({value:e})=>{return a(yh(n,t=e)),void(i&&i(t));var t},children:H(M.List,{alignItems:"center",border:"none",children:n.map(((e,t)=>A(re,{children:[l&&1===t&&"left"===Ch(o)?H("div",{css:xh}):null,H(M.Trigger,{css:[vh,l?bh:mh],"aria-label":e["aria-label"]||e.label,...e,children:A(r,{display:"flex",alignItems:"center",gap:"5px",children:[e.icon,e.label]})},e.label),l&&1===t&&"right"===Ch(o)?H("div",{css:xh}):null]},e.label)))})})})},$h=ie`
3133
3137
  display: flex;
3134
3138
  justify-content: flex-start;
3135
3139
  align-items: center;
3136
3140
  gap: 8px;
3137
- `,$h=e=>ie`
3141
+ `,kh=e=>ie`
3138
3142
  width: ${e||"16px"};
3139
3143
  position: relative;
3140
3144
  display: flex;
3141
- `,kh=ie`
3145
+ `,Sh=ie`
3142
3146
  height: 4px;
3143
3147
  width: 4px;
3144
3148
  background-color: ${he("error",500)};
@@ -3146,7 +3150,7 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3146
3150
  position: absolute;
3147
3151
  top: 0px;
3148
3152
  right: 0px;
3149
- `,Sh=ie`
3153
+ `,Eh=ie`
3150
3154
  height: 10px;
3151
3155
  background-color: ${he("error",500)};
3152
3156
  padding: 0 3px 1px 3px;
@@ -3157,11 +3161,11 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3157
3161
  position: absolute;
3158
3162
  top: -2px;
3159
3163
  left: 9px;
3160
- `,Eh=ie`
3164
+ `,Oh=ie`
3161
3165
  font-size: 9px;
3162
3166
  font-weight: 700;
3163
3167
  color: ${he("error",100)};
3164
- `,Oh=ie`
3168
+ `,Lh=ie`
3165
3169
  height: 16px;
3166
3170
  min-width: 16px;
3167
3171
  background-color: ${he("error",500)};
@@ -3170,11 +3174,11 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3170
3174
  justify-content: center;
3171
3175
  align-items: center;
3172
3176
  padding: 0px 4px 1px 4px;
3173
- `,Lh=ie`
3177
+ `,_h=ie`
3174
3178
  font-size: 16px;
3175
3179
  font-weight: 700;
3176
3180
  color: ${he("error",100)};
3177
- `,_h=({hasNotification:e,notificationCount:t,label:n})=>{const[r,i]=G(!1);W((()=>{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"),A("div",r?{css:wh,role:"status","aria-live":"polite",children:[A("div",{css:$h(),children:[H(Ne,{color:"currentColor",height:"16px",width:"16px"}),!e||t||n?null:H("div",{css:kh,"aria-hidden":!0})]}),n?H("p",{children:n}):null,o.length>0?H("div",{css:Oh,children:H("p",{css:Lh,"aria-label":`${t} unread message`,children:o})}):null]}:{css:wh,role:"status","aria-live":"polite",children:[n?H("p",{children:n}):null,A("div",{css:$h(a),children:[o.length>0?H("div",{css:Sh,children:H("p",{css:Eh,"aria-label":`${t} unread message`,children:o})}):null,e&&!t?H("div",{css:kh,"aria-hidden":!0}):null,H(Ne,{color:"currentColor",height:"16px",width:"16px"})]})]})},Th=(e,t)=>ie`
3181
+ `,Th=({hasNotification:e,notificationCount:t,label:n})=>{const[r,i]=G(!1);W((()=>{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"),A("div",r?{css:$h,role:"status","aria-live":"polite",children:[A("div",{css:kh(),children:[H(Ne,{color:"currentColor",height:"16px",width:"16px"}),!e||t||n?null:H("div",{css:Sh,"aria-hidden":!0})]}),n?H("p",{children:n}):null,o.length>0?H("div",{css:Lh,children:H("p",{css:_h,"aria-label":`${t} unread message`,children:o})}):null]}:{css:$h,role:"status","aria-live":"polite",children:[n?H("p",{children:n}):null,A("div",{css:kh(a),children:[o.length>0?H("div",{css:Eh,children:H("p",{css:Oh,"aria-label":`${t} unread message`,children:o})}):null,e&&!t?H("div",{css:Sh,"aria-hidden":!0}):null,H(Ne,{color:"currentColor",height:"16px",width:"16px"})]})]})},Rh=(e,t)=>ie`
3178
3182
  width: 100%;
3179
3183
  min-width: ${"small"===e?"234px":"320px"};
3180
3184
  border-radius: 4px;
@@ -3189,7 +3193,7 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3189
3193
  button {
3190
3194
  margin-left: ${t?0:"24px"};
3191
3195
  }
3192
- `,Rh=ie`
3196
+ `,Ph=ie`
3193
3197
  display: flex;
3194
3198
  align-items: flex-start;
3195
3199
  gap: 8px;
@@ -3197,28 +3201,28 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3197
3201
  svg {
3198
3202
  margin-top: 6px;
3199
3203
  }
3200
- `,Ph=e=>ie`
3204
+ `,Dh=e=>ie`
3201
3205
  color: ${he("neutral",800)};
3202
3206
  font-size: ${"small"===e?"14px":"18px"};
3203
3207
  line-height: ${"small"===e?"20px":"28px"};
3204
3208
  font-weight: 400;
3205
3209
  text-align: left;
3206
- `,Dh=e=>ie`
3210
+ `,Mh=e=>ie`
3207
3211
  color: ${he("neutral",700)};
3208
3212
  font-size: ${"small"===e?"12px":"16px"};
3209
3213
  line-height: ${"small"===e?"16px":"24px"};
3210
3214
  font-weight: 400;
3211
3215
  margin-left: 24px;
3212
3216
  text-align: left;
3213
- `,Mh=ie`
3217
+ `,Nh=ie`
3214
3218
  background-color: ${he("neutral",100)};
3215
3219
  border: 1px solid ${he("neutral",300)};
3216
3220
  color: ${he("neutral",700)};
3217
- `,Nh=ie`
3221
+ `,jh=ie`
3218
3222
  background-color: ${he("neutral",200)};
3219
3223
  border: 1px solid ${he("neutral",300)};
3220
3224
  color: ${he("neutral",700)};
3221
- `,jh=ie`
3225
+ `,Vh=ie`
3222
3226
  background-color: ${he("success",100)};
3223
3227
  border: 1px solid ${he("success",300)};
3224
3228
  color: ${he("success",500)};
@@ -3226,7 +3230,7 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3226
3230
  p {
3227
3231
  color: ${he("success",900)};
3228
3232
  }
3229
- `,Vh=ie`
3233
+ `,Ih=ie`
3230
3234
  background-color: ${he("warning",100)};
3231
3235
  border: 1px solid ${he("warning",300)};
3232
3236
  color: ${he("warning",500)};
@@ -3234,7 +3238,7 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3234
3238
  p {
3235
3239
  color: ${he("warning",900)};
3236
3240
  }
3237
- `,Ih=ie`
3241
+ `,zh=ie`
3238
3242
  background-color: ${he("error",100)};
3239
3243
  border: 1px solid ${he("error",300)};
3240
3244
  color: ${he("error",500)};
@@ -3242,32 +3246,32 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3242
3246
  p {
3243
3247
  color: ${he("error",900)};
3244
3248
  }
3245
- `,zh=({label:e,caption:t,variant:n,size:r="large",icon:i=H(ke,{height:"16px",width:"16px"}),onActionClick:o,actionLabel:a,isButtonRight:l})=>{let s=Mh;return"info-grey"===n?s=Nh:"success"===n?s=jh:"warning"===n?s=Vh:"error"===n&&(s=Ih),A("div",{css:[Th(r,l),s],"aria-roledescription":"Note",children:[A("div",{children:[A("div",{css:Rh,children:[i,H("p",{css:Ph(r),children:e})]}),H("p",{css:Dh(r),children:t})]}),a?H(be,{label:a,variant:"info-white"===n||"info-grey"===n?"primary":"secondary",size:"large"===r?"default":"small",onClick:o}):null]})},Ah=ie`
3249
+ `,Ah=({label:e,caption:t,variant:n,size:r="large",icon:i=H(ke,{height:"16px",width:"16px"}),onActionClick:o,actionLabel:a,isButtonRight:l})=>{let s=Nh;return"info-grey"===n?s=jh:"success"===n?s=Vh:"warning"===n?s=Ih:"error"===n&&(s=zh),A("div",{css:[Rh(r,l),s],"aria-roledescription":"Note",children:[A("div",{children:[A("div",{css:Ph,children:[i,H("p",{css:Dh(r),children:e})]}),H("p",{css:Mh(r),children:t})]}),a?H(be,{label:a,variant:"info-white"===n||"info-grey"===n?"primary":"secondary",size:"large"===r?"default":"small",onClick:o}):null]})},Hh=ie`
3246
3250
  height: 8px;
3247
3251
  width: 100%;
3248
3252
  background-color: ${he("neutral",300)};
3249
3253
  display: flex;
3250
3254
  align-items: center;
3251
3255
  justify-content: flex-start;
3252
- `,Hh=e=>ie`
3256
+ `,Bh=e=>ie`
3253
3257
  height: 100%;
3254
3258
  width: ${e}%;
3255
3259
  background-color: ${he("primary",500)};
3256
3260
  transition: width 0.5s ease-in-out;
3257
- `,Bh=({progress:e})=>{let t=e;return t>100&&(t=100),t<0&&(t=0),H("div",{css:Ah,role:"progressbar","aria-label":`Progress: ${t}%`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t,children:H("div",{css:Hh(t)})})},Fh=ie`
3261
+ `,Fh=({progress:e})=>{let t=e;return t>100&&(t=100),t<0&&(t=0),H("div",{css:Hh,role:"progressbar","aria-label":`Progress: ${t}%`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t,children:H("div",{css:Bh(t)})})},Zh=ie`
3258
3262
  width: 100%;
3259
3263
  display: flex;
3260
3264
  align-items: center;
3261
3265
  justify-content: space-between;
3262
3266
  position: relative;
3263
- `,Zh=ie`
3267
+ `,qh=ie`
3264
3268
  height: 60px;
3265
3269
  width: 80px;
3266
3270
  display: flex;
3267
3271
  flex-direction: column;
3268
3272
  align-items: center;
3269
3273
  justify-content: space-between;
3270
- `,qh=(e,t)=>ie`
3274
+ `,Gh=(e,t)=>ie`
3271
3275
  height: 32px;
3272
3276
  width: 32px;
3273
3277
  display: flex;
@@ -3303,12 +3307,12 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3303
3307
  }
3304
3308
 
3305
3309
  ${t?`\n background-color: ${he("neutral",300)};\n \n &:hover {\n background-color: ${he("neutral",300)};\n box-shadow: none;\n }\n `:""}
3306
- `,Gh=e=>ie`
3310
+ `,Wh=e=>ie`
3307
3311
  color: ${he("neutral",e?800:600)};
3308
3312
  font-size: 14px;
3309
3313
  line-height: 20px;
3310
3314
  font-weight: 400;
3311
- `,Wh=ie`
3315
+ `,Uh=ie`
3312
3316
  height: 1px;
3313
3317
  width: 100%;
3314
3318
  padding: 0 30px;
@@ -3316,11 +3320,11 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3316
3320
  top: 16px;
3317
3321
  left: 0;
3318
3322
  z-index: -1;
3319
- `,Uh=ie`
3323
+ `,Xh=ie`
3320
3324
  height: 1px;
3321
3325
  width: 100%;
3322
3326
  background-color: ${he("neutral",400)};
3323
- `,Xh=({steps:e,currentStep:t})=>A("div",{css:Fh,children:[e.map(((e,n)=>A("div",{css:Zh,children:[H("button",{css:qh(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?H(we,{height:"16px",width:"16px"}):n+1}),e.label?H("p",{css:Gh(t===n+1),children:e.label}):null]},`${e.label}-${n}`))),H("div",{css:Wh,children:H("div",{css:Uh})})]}),Yh=ie`
3327
+ `,Yh=({steps:e,currentStep:t})=>A("div",{css:Zh,children:[e.map(((e,n)=>A("div",{css:qh,children:[H("button",{css:Gh(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?H(we,{height:"16px",width:"16px"}):n+1}),e.label?H("p",{css:Wh(t===n+1),children:e.label}):null]},`${e.label}-${n}`))),H("div",{css:Uh,children:H("div",{css:Xh})})]}),Kh=ie`
3324
3328
  justify-content: space-between;
3325
3329
  align-items: center;
3326
3330
  gap: 8px;
@@ -3363,18 +3367,18 @@ function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3363
3367
  color: ${he("error",900)};
3364
3368
  }
3365
3369
  }
3366
- `,Kh=ie`
3370
+ `,Jh=ie`
3367
3371
  font-size: 18px;
3368
3372
  line-height: 28px;
3369
3373
  font-weight: 400;
3370
3374
  color: ${he("neutral",800)};
3371
- `,Jh=ie`
3375
+ `,Qh=ie`
3372
3376
  font-size: 16px;
3373
3377
  line-height: 24px;
3374
3378
  font-weight: 400;
3375
3379
  color: ${he("neutral",700)};
3376
- `,Qh=ie`
3377
- padding: 6px;
3378
3380
  `,ef=ie`
3379
3381
  padding: 6px;
3380
- `,tf={pauseOnPageIdle:!0,offsets:"24px"},nf={"top-start":j({placement:"top-start",...tf}),"top-end":j({placement:"top-end",...tf}),"bottom-start":j({placement:"bottom-start",...tf}),"bottom-end":j({placement:"bottom-end",...tf})},rf=e=>{nf[e.placement].create({title:e.label,description:e.caption,duration:e.duration||5e3,meta:{closable:e.closable,icon:e.icon,closableLabel:e.closableLabel},...e})},of=()=>Object.keys(nf).map((e=>H(s,{children:H(V,{toaster:nf[e],insetInline:{mdDown:"4"},children:t=>A(I.Root,{css:Yh,width:{md:"sm"},children:[A(z,{flexDirection:"row",className:"ds-toast-icon-container",children:["info"===t.type?t.meta?.icon?t.meta.icon:H(ke,{color:"var(--chakra-colors-neutral-700)"}):null,"loading"===t.type?H(i,{size:"lg",borderWidth:"3px",color:"var(--chakra-colors-primary-500)"}):null,"success"===t.type?t.meta?.icon?t.meta.icon:H(Re,{color:"var(--chakra-colors-success-500)"}):null,"warning"===t.type?t.meta?.icon?t.meta.icon:H(Pe,{color:"var(--chakra-colors-warning-500)"}):null,"error"===t.type?t.meta?.icon?t.meta.icon:H(De,{color:"var(--chakra-colors-error-500)"}):null,A(z,{gap:"1",flex:"1",maxWidth:"100%",children:[H(I.Title,{css:Kh,"aria-label":`${t.title}`,children:t.title}),t.description?H(I.Title,{css:Jh,"aria-label":`${t.description}`,children:t.description}):null]})]}),t.action||t.meta?.closable?A(z,{flexDirection:"row",children:[t.action?H(be,{css:Qh,label:t.action.label,size:"small",variant:"info"===t.type?"primary":"secondary",onClick:()=>{t?.action?.onClick&&t.action.onClick(),nf[e].dismiss()}}):null,t.meta?.closable?H(be,{css:ef,label:t.meta.closableLabel,"aria-label":t.meta?.closableLabel||"Dismiss",leftIcon:H(Oe,{height:"10px!",width:"10px!"}),size:"small",variant:"secondary",onClick:()=>nf[e].dismiss()}):null]}):null]})})},e)));export{_h as Badge,Tr as BaseMap,Op as Breadcrumb,be as Button,kt as Checkbox,ln as CheckboxList,Rt as CheckboxOptionCard,nt as CloseButton,to as ExtendableCard,Pp as Footer,tt as IconButton,Pr as IconMarker,Dr as IconMarkers,zh as InlineMessage,Wn as InputWithUnits,Li as ItemCount,Zr as LayerGroup,qr as LayerGroupContainer,Fr as LayerItem,Yr as LayerParameters,si as LegendItem,Vi as List,lt as MapControl,st as MapControls,vt as Menu,Ip as MobileTabBar,oa as Modal,wt as MultiActionButton,lh as Navbar,hh as NavigationRail,It as OptionCard,Bi as Pagination,pa as Panel,tr as Password,Bh as ProgressBar,mi as QualitativeAttribute,Ht as Radio,Bt as RadioGroup,cr as RadioList,Je as SSOButtons,ki as ScaleBar,Gn as Select,$p as Sheet,Kt as Slider,hr as SliderInput,Xh as StepProgressIndicator,Qt as Switch,Ch as TabBar,Yi as Table,Ji as TableCell,Ki as TableRow,Fn as Tag,yn as TextInput,Cr as Textarea,of as Toast,pe as designSystemStyles,he as getThemedColor,rf as showToast};
3382
+ `,tf=ie`
3383
+ padding: 6px;
3384
+ `,nf={pauseOnPageIdle:!0,offsets:"24px"},rf={"top-start":j({placement:"top-start",...nf}),"top-end":j({placement:"top-end",...nf}),"bottom-start":j({placement:"bottom-start",...nf}),"bottom-end":j({placement:"bottom-end",...nf})},of=e=>{rf[e.placement].create({title:e.label,description:e.caption,duration:e.duration||5e3,meta:{closable:e.closable,icon:e.icon,closableLabel:e.closableLabel},...e})},af=()=>Object.keys(rf).map((e=>H(s,{children:H(V,{toaster:rf[e],insetInline:{mdDown:"4"},children:t=>A(I.Root,{css:Kh,width:{md:"sm"},children:[A(z,{flexDirection:"row",className:"ds-toast-icon-container",children:["info"===t.type?t.meta?.icon?t.meta.icon:H(ke,{color:"var(--chakra-colors-neutral-700)"}):null,"loading"===t.type?H(i,{size:"lg",borderWidth:"3px",color:"var(--chakra-colors-primary-500)"}):null,"success"===t.type?t.meta?.icon?t.meta.icon:H(Re,{color:"var(--chakra-colors-success-500)"}):null,"warning"===t.type?t.meta?.icon?t.meta.icon:H(Pe,{color:"var(--chakra-colors-warning-500)"}):null,"error"===t.type?t.meta?.icon?t.meta.icon:H(De,{color:"var(--chakra-colors-error-500)"}):null,A(z,{gap:"1",flex:"1",maxWidth:"100%",children:[H(I.Title,{css:Jh,"aria-label":`${t.title}`,children:t.title}),t.description?H(I.Title,{css:Qh,"aria-label":`${t.description}`,children:t.description}):null]})]}),t.action||t.meta?.closable?A(z,{flexDirection:"row",children:[t.action?H(be,{css:ef,label:t.action.label,size:"small",variant:"info"===t.type?"primary":"secondary",onClick:()=>{t?.action?.onClick&&t.action.onClick(),rf[e].dismiss()}}):null,t.meta?.closable?H(be,{css:tf,label:t.meta.closableLabel,"aria-label":t.meta?.closableLabel||"Dismiss",leftIcon:H(Oe,{height:"10px!",width:"10px!"}),size:"small",variant:"secondary",onClick:()=>rf[e].dismiss()}):null]}):null]})})},e)));export{Th as Badge,Rr as BaseMap,Lp as Breadcrumb,be as Button,kt as Checkbox,sn as CheckboxList,Rt as CheckboxOptionCard,nt as CloseButton,no as ExtendableCard,Dp as Footer,tt as IconButton,Dr as IconMarker,Mr as IconMarkers,Ah as InlineMessage,Un as InputWithUnits,_i as ItemCount,qr as LayerGroup,Gr as LayerGroupContainer,Zr as LayerItem,Kr as LayerParameters,ci as LegendItem,Ii as List,lt as MapControl,st as MapControls,vt as Menu,zp as MobileTabBar,aa as Modal,wt as MultiActionButton,sh as Navbar,fh as NavigationRail,It as OptionCard,Fi as Pagination,ha as Panel,nr as Password,Fh as ProgressBar,xi as QualitativeAttribute,Bt as Radio,Ft as RadioGroup,dr as RadioList,Je as SSOButtons,Si as ScaleBar,Wn as Select,kp as Sheet,Jt as Slider,fr as SliderInput,Yh as StepProgressIndicator,en as Switch,wh as TabBar,Ki as Table,Qi as TableCell,Ji as TableRow,Zn as Tag,Cn as TextInput,wr as Textarea,af as Toast,pe as designSystemStyles,he as getThemedColor,of as showToast};