@worldresources/wri-design-systems 2.205.2 → 2.206.0
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.cjs.js +275 -255
- package/dist/index.d.ts +3 -0
- package/dist/index.esm.js +273 -253
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1398,11 +1398,12 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1398
1398
|
line-height: ${He(400)};
|
|
1399
1399
|
color: ${Ie("neutral",800)};
|
|
1400
1400
|
white-space: nowrap;
|
|
1401
|
-
`,Yv=ke`
|
|
1401
|
+
`,Yv=e=>ke`
|
|
1402
1402
|
height: ${Ve(500)};
|
|
1403
1403
|
width: ${Ve(500)};
|
|
1404
|
-
background-color: ${Ie("primary",500)};
|
|
1405
|
-
border: ${_e(200)} solid
|
|
1404
|
+
background-color: ${e?Ie("neutral",100):Ie("primary",500)};
|
|
1405
|
+
border: ${_e(200)} solid
|
|
1406
|
+
${e?Ie("secondary",900):Ie("primary",700)};
|
|
1406
1407
|
box-shadow: 0 0.0625rem 0.125rem 0 #0000000d;
|
|
1407
1408
|
cursor: pointer;
|
|
1408
1409
|
z-index: 1;
|
|
@@ -1411,7 +1412,12 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1411
1412
|
&[data-hover] {
|
|
1412
1413
|
z-index: 2;
|
|
1413
1414
|
outline: ${Ve(100)} solid
|
|
1414
|
-
color-mix(
|
|
1415
|
+
color-mix(
|
|
1416
|
+
in srgb,
|
|
1417
|
+
${e?Ie("secondary",900):Ie("primary",500)}
|
|
1418
|
+
20%,
|
|
1419
|
+
transparent
|
|
1420
|
+
);
|
|
1415
1421
|
|
|
1416
1422
|
.ds-slider-value-preview {
|
|
1417
1423
|
display: flex;
|
|
@@ -1421,7 +1427,12 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1421
1427
|
&[data-dragging] {
|
|
1422
1428
|
z-index: 2;
|
|
1423
1429
|
outline: ${Ve(100)} solid
|
|
1424
|
-
color-mix(
|
|
1430
|
+
color-mix(
|
|
1431
|
+
in srgb,
|
|
1432
|
+
${e?Ie("secondary",900):Ie("primary",500)}
|
|
1433
|
+
40%,
|
|
1434
|
+
transparent
|
|
1435
|
+
);
|
|
1425
1436
|
|
|
1426
1437
|
div {
|
|
1427
1438
|
display: flex;
|
|
@@ -1464,13 +1475,22 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1464
1475
|
z-index: 2;
|
|
1465
1476
|
pointer-events: none;
|
|
1466
1477
|
white-space: nowrap;
|
|
1467
|
-
`,ey=ke`
|
|
1478
|
+
`,ey=(e,t)=>ke`
|
|
1468
1479
|
background-color: ${Ie("neutral",300)};
|
|
1469
1480
|
border: none;
|
|
1470
1481
|
box-shadow: none;
|
|
1482
|
+
${e?.length?`background: linear-gradient(to right, ${e.join(", ")});`:""}
|
|
1483
|
+
${t?`\n position: relative;\n height: ${Ve(500)};\n border-radius: ${Be(500)};\n border: ${_e(100)} solid ${Ie("neutral",300)};\n overflow: hidden;\n `:""}
|
|
1471
1484
|
`,ty=e=>ke`
|
|
1472
|
-
|
|
1473
|
-
|
|
1485
|
+
position: absolute;
|
|
1486
|
+
top: 0;
|
|
1487
|
+
bottom: 0;
|
|
1488
|
+
${"start"===e?"left":"right"}: 0;
|
|
1489
|
+
background-color: ${Ie("neutral",200)};
|
|
1490
|
+
pointer-events: none;
|
|
1491
|
+
`,ny=(e,t)=>ke`
|
|
1492
|
+
background-color: ${t?"transparent":Ie("primary",500)};
|
|
1493
|
+
border: ${t?"none":`${_e(100)} solid ${Ie("primary",700)}`};
|
|
1474
1494
|
border-radius: ${e?"0":Be(500)};
|
|
1475
1495
|
|
|
1476
1496
|
&:disabled,
|
|
@@ -1481,7 +1501,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1481
1501
|
background-color: ${Ie("neutral",400)};
|
|
1482
1502
|
border: none;
|
|
1483
1503
|
}
|
|
1484
|
-
`,
|
|
1504
|
+
`,ry=(e,t)=>ke`
|
|
1485
1505
|
&[data-state='under-value'] {
|
|
1486
1506
|
.chakra-slider__markerIndicator {
|
|
1487
1507
|
background-color: ${Ie("neutral",e?500:200)};
|
|
@@ -1507,7 +1527,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1507
1527
|
}
|
|
1508
1528
|
|
|
1509
1529
|
${t?`\n --translate-y: -24% !important;\n\n .chakra-slider__markerIndicator {\n height: 1rem;\n width: 0.25rem;\n background-color: ${Ie("primary",700)} !important;\n }\n\n &[data-disabled] {\n .chakra-slider__markerIndicator {\n background-color: ${Ie("neutral",400)} !important;\n }\n }\n `:""};
|
|
1510
|
-
`,
|
|
1530
|
+
`,oy=e=>{const{value:t,hasGradient:n}=e;return ve(C,{each:t,children:(e,t)=>be(x.Thumb,{css:Yv(n),index:t,children:[ve("div",{css:Qv,className:"ds-slider-value-preview",children:e}),ve(x.HiddenInput,{})]},t)})},iy=e=>{const{value:t,min:n,max:r}=e;if(!t?.length)return null;const o=r-n||1,i=(t[0]-n)/o*100,s=(t[t.length-1]-n)/o*100;return be(ye,{children:[i>0&&ve("div",{css:ty("start"),style:{width:`${i}%`}}),s<100&&ve("div",{css:ty("end"),style:{width:100-s+"%"}})]})},sy=te.forwardRef(((e,t)=>{const{marks:n,isCentred:r}=e;return n?.length?ve(x.MarkerGroup,{ref:t,children:n.map(((e,t)=>{const n="number"==typeof e?e:e.value,o=r&&1===t;return ve(x.Marker,{css:ry(r,o),value:n,children:ve(x.MarkerIndicator,{})},n)}))}):null})),ay=e=>{const{marks:t,min:n,max:r}=e,o=t?.filter((e=>void 0!==e.label&&null!==e.label));if(!o?.length)return null;const i=r-n||1;return ve("div",{css:Jv,children:o.map((e=>{let t="-50%";return e.value===n?t="0":e.value===r&&(t="-100%"),ve("span",{css:Xv,style:{left:(e.value-n)/i*100+"%",transform:`translateX(${t})`},children:e.label},e.value)}))})},ly=te.forwardRef(((e,t)=>{const{marks:n,onValueChange:r,isCentred:o,value:i,colors:s,...a}=e,[l,c]=ae(i||[0]),d=!!s?.length;ce((()=>{c(i||[0])}),[i]);const u=a.min??0,h=a.max??100;let p=n?.map((e=>"number"==typeof e?{value:e,label:void 0}:e));o&&(p=[u,(u+h)/2,h].map((e=>({value:e,label:void 0}))));const f=!!p?.some((e=>e.label));return be(x.Root,{css:Zv,ref:t,thumbAlignment:"center",onValueChange:e=>{c(e.value),r&&r(e)},origin:o?"center":"start",value:l,...a,children:[ve(ay,{marks:p,min:u,max:h}),be(x.Control,{"data-has-mark-label":f||void 0,children:[be(x.Track,{css:ey(s,d),children:[d&&ve(iy,{value:l,min:u,max:h}),ve(x.Range,{css:ny(o,d)})]}),ve(sy,{marks:p,isCentred:o}),ve(oy,{value:l,hasGradient:d})]})]})})),cy=ke`
|
|
1511
1531
|
--switch-height: 1.5rem;
|
|
1512
1532
|
--switch-width: 2.5rem;
|
|
1513
1533
|
|
|
@@ -1607,26 +1627,26 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1607
1627
|
cursor: not-allowed;
|
|
1608
1628
|
}
|
|
1609
1629
|
}
|
|
1610
|
-
`,
|
|
1630
|
+
`,dy=({name:e,defaultChecked:t=!1,onChange:n,disabled:r=!1,isLabelOnLeft:o=!1,children:i,labels:s,...a})=>{const l=tg("Switch",s);return ve("div",{style:{display:"flex",alignItems:"center"},children:be(k.Root,{css:cy,id:e,name:e,"aria-label":a["aria-label"]||l.defaultAriaLabel(e),defaultChecked:t,onCheckedChange:({checked:t})=>{n&&n(e,t)},disabled:r,...a,children:[o&&null!=i?ve(k.Label,{children:i}):null,ve(k.HiddenInput,{style:{width:"2.625rem",height:"1.625rem"}}),ve("div",{className:"chakra-switch__control-container",children:ve(k.Control,{children:ve(k.Thumb,{children:ve(k.ThumbIndicator,{display:"flex",children:ve(ag,{})})})})}),o||null==i?null:ve(k.Label,{children:i})]})})},uy=e=>ke`
|
|
1611
1631
|
display: grid;
|
|
1612
1632
|
grid-template-rows: ${e?"1fr":"0fr"};
|
|
1613
1633
|
opacity: ${e?1:0};
|
|
1614
1634
|
transition:
|
|
1615
1635
|
grid-template-rows 300ms cubic-bezier(0.4, 0, 0.2, 1),
|
|
1616
1636
|
opacity 200ms ease;
|
|
1617
|
-
`,
|
|
1637
|
+
`,hy=ke`
|
|
1618
1638
|
overflow: hidden;
|
|
1619
1639
|
min-height: 0;
|
|
1620
|
-
`,
|
|
1640
|
+
`,py=e=>ke`
|
|
1621
1641
|
display: flex;
|
|
1622
1642
|
flex-direction: ${e?"row":"column"};
|
|
1623
1643
|
flex-wrap: wrap;
|
|
1624
1644
|
gap: ${Ve(e?500:300)};
|
|
1625
1645
|
padding: ${Ve(100)};
|
|
1626
|
-
`,
|
|
1646
|
+
`,fy=ke`
|
|
1627
1647
|
color: ${Ie("neutral",700)};
|
|
1628
1648
|
margin-left: ${Ve(100)};
|
|
1629
|
-
`,
|
|
1649
|
+
`,my=ke`
|
|
1630
1650
|
color: ${Ie("neutral",700)};
|
|
1631
1651
|
display: flex;
|
|
1632
1652
|
align-items: center;
|
|
@@ -1640,18 +1660,18 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1640
1660
|
display: inline-flex;
|
|
1641
1661
|
transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
1642
1662
|
}
|
|
1643
|
-
`,
|
|
1663
|
+
`,gy=e=>ke`
|
|
1644
1664
|
transform: rotate(${e?"180deg":"0deg"});
|
|
1645
|
-
`,
|
|
1665
|
+
`,by=ke`
|
|
1646
1666
|
display: flex;
|
|
1647
1667
|
align-items: center;
|
|
1648
1668
|
justify-content: space-between;
|
|
1649
1669
|
width: 100%;
|
|
1650
|
-
`,
|
|
1670
|
+
`,vy=({label:e,caption:t,checkboxes:n,defaultValues:r,onCheckedChange:o,errorMessage:i,horizontal:s,required:a,hideCheckedCounter:l=!1,hideExpandToggle:c=!1,labels:d})=>{const u=tg("CheckboxList",d),h=Array.isArray(r)?r:[],p=oe((()=>new Set(h)),[h]),[f,m]=ae((()=>n.filter((e=>e.name)).reduce(((e,t)=>{const n=t.name;return e[n]="boolean"==typeof t.checked?t.checked:p.has(n),e}),{}))),[g,b]=ae(!0);ce((()=>{m((e=>{const t=n.filter((e=>e.name)).reduce(((t,n)=>{const r=n.name;return t[r]="boolean"==typeof n.checked?n.checked:e[r]??p.has(r),t}),{});return Object.keys(e).length===Object.keys(t).length&&Object.entries(t).every((([t,n])=>e[t]===n))?e:t}))}),[n,p]);const v="string"!=typeof e,y=n.filter((e=>e.name)).reduce(((e,t)=>{const n=t.name;return e[n]="boolean"==typeof t.checked?t.checked:!!f[n],e}),{}),w=n.length>0&&n.every((e=>e.name&&y[e.name])),x=n.some((e=>e.name&&y[e.name]))&&!w,C=n.length,k=`${n.filter((e=>e?.name&&y[e.name])).length} / ${C}`,$=t?`${t}.`:"",S=a?u.requiredLabel:u.optionalLabel,M=i?`${u.errorPrefix} ${i}.`:"",E=`${v?e.label:e}. ${$} ${S} ${M} `,T="string"==typeof e?e:be("div",{css:by,children:[be(Ov,{checked:w,indeterminate:x,onCheckedChange:e=>(e=>{const t=n.filter((e=>void 0!==e.name)).reduce(((t,n)=>(t[n.name]=e,t)),{});m(t),o?.(t)})(!!e.checked),children:[e.label," ",!l&&ve("span",{"aria-hidden":"true",css:fy,children:k})]}),!c&&be("button",{type:"button",onClick:()=>b((e=>!e)),"aria-expanded":g,"aria-controls":"checkbox-list",css:my,children:[g?u.hideLabel:u.expandLabel,ve("span",{"aria-hidden":"true",css:gy(g),children:ve(dg,{})})]})]});return ve(Cb,{label:T,caption:t,errorMessage:i,required:"string"==typeof e&&a,showOptionalLabel:!1,noMarginBottom:!0,semantics:"group",labels:{requiredSymbolLabel:u.requiredSymbolLabel},containerProps:{"aria-label":E},children:ve("div",{id:"checkbox-list",css:uy(g),children:ve("div",{css:hy,children:ve("div",{css:py(s),children:n.map((e=>{const{onCheckedChange:t,...n}=e;return ve(Ov,{ms:v&&!s?"6":"",css:{},checked:!!e?.name&&!!y[e.name],onCheckedChange:({checked:n})=>{((e,t)=>{const n={...f};t&&(n[t]=e,m(n)),o&&o(n)})(n,e.name),t?.({checked:!!n})},...n},e.name)}))})})})})},yy=ke`
|
|
1651
1671
|
width: 100%;
|
|
1652
1672
|
max-width: 23.125rem;
|
|
1653
1673
|
position: relative;
|
|
1654
|
-
`,
|
|
1674
|
+
`,wy=(e,t)=>ke`
|
|
1655
1675
|
width: 100%;
|
|
1656
1676
|
|
|
1657
1677
|
.ds-text-input-container {
|
|
@@ -1686,7 +1706,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1686
1706
|
padding: 0 ${Ve(100)};
|
|
1687
1707
|
}
|
|
1688
1708
|
}
|
|
1689
|
-
`,
|
|
1709
|
+
`,xy=ee.forwardRef(((e,t)=>{const{children:n,...r}=e,{"aria-label":o,...i}=r;return Y($.Control,{...i,children:[X($.Trigger,{ref:t,"aria-label":o,focusVisibleRing:"none",children:n}),X($.IndicatorGroup,{children:X($.Indicator,{children:X(dg,{})})})]})})),Cy=ee.forwardRef(((e,t)=>{const{onKeyDown:n,onPointerMove:r,...o}=e;return X(a,{children:X($.Positioner,{children:X($.Content,{...o,ref:t,onKeyDown:e=>{e.currentTarget.dataset.navSource="keyboard",n?.(e)},onPointerMove:e=>{e.currentTarget.dataset.navSource="pointer",r?.(e)}})})})})),ky=ee.forwardRef(((e,t)=>{const{item:n,children:r,...o}=e;return X($.Item,{item:n,...o,ref:t,children:r},n.value)})),$y=ee.forwardRef(((e,t)=>{const{children:n,...r}=e;return X($.ValueText,{...r,ref:t,children:X($.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`}})})})),Sy=ee.forwardRef(((e,t)=>X($.Root,{...e,ref:t,positioning:{sameWidth:!0,...e.positioning},children:e.asChild?e.children:Y(Q,{children:[X($.HiddenSelect,{}),e.children]})})));ee.forwardRef(((e,t)=>{const{children:n,label:r,...o}=e;return Y($.ItemGroup,{...o,ref:t,children:[X($.ItemGroupLabel,{children:r}),n]})})),$.Label,$.ItemText;const My=(e,t)=>t?Ie("error",900):Ie("neutral",e?700:400),Ey=(e,t,n,r)=>ke`
|
|
1690
1710
|
border-radius: ${Be(300)};
|
|
1691
1711
|
overflow: visible;
|
|
1692
1712
|
|
|
@@ -1699,7 +1719,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1699
1719
|
border-radius: ${Be(300)};
|
|
1700
1720
|
padding: ${Ve(50)} ${Ve(200)};
|
|
1701
1721
|
border: ${_e(100)} solid
|
|
1702
|
-
${
|
|
1722
|
+
${My(t,n)};
|
|
1703
1723
|
box-shadow: 0 0.0625rem 0.125rem 0 #0000000d;
|
|
1704
1724
|
cursor: pointer;
|
|
1705
1725
|
background-color: ${Ie("neutral",100)};
|
|
@@ -1724,7 +1744,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1724
1744
|
&[data-placement^='top'] {
|
|
1725
1745
|
border-bottom-left-radius: ${Be(300)};
|
|
1726
1746
|
border-bottom-right-radius: ${Be(300)};
|
|
1727
|
-
border-bottom-color: ${
|
|
1747
|
+
border-bottom-color: ${My(t,n)};
|
|
1728
1748
|
|
|
1729
1749
|
border-top-left-radius: 0;
|
|
1730
1750
|
border-top-right-radius: 0;
|
|
@@ -1759,14 +1779,14 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1759
1779
|
}
|
|
1760
1780
|
}
|
|
1761
1781
|
}
|
|
1762
|
-
`,
|
|
1782
|
+
`,Ty=(e,t)=>ke`
|
|
1763
1783
|
margin-top: calc(${Ve(200)} * -1);
|
|
1764
1784
|
border-radius: ${Be(300)};
|
|
1765
1785
|
border: ${_e(100)} solid ${Ie("neutral",400)};
|
|
1766
1786
|
border-top-left-radius: 0;
|
|
1767
1787
|
border-top-right-radius: 0;
|
|
1768
1788
|
border-top: ${_e(100)} solid
|
|
1769
|
-
${
|
|
1789
|
+
${My(e,t)};
|
|
1770
1790
|
box-shadow:
|
|
1771
1791
|
0 0.25rem 0.375rem -0.25rem #0000001a,
|
|
1772
1792
|
0 0.625rem 0.9375rem -0.1875rem #0000001a;
|
|
@@ -1781,12 +1801,12 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1781
1801
|
border-bottom-left-radius: 0;
|
|
1782
1802
|
border-bottom-right-radius: 0;
|
|
1783
1803
|
border-bottom: ${_e(100)} solid
|
|
1784
|
-
${
|
|
1804
|
+
${My(e,t)};
|
|
1785
1805
|
box-shadow:
|
|
1786
1806
|
0 -0.25rem 0.375rem -0.25rem #0000001a,
|
|
1787
1807
|
0 -0.625rem 0.9375rem -0.1875rem #0000001a;
|
|
1788
1808
|
}
|
|
1789
|
-
`,
|
|
1809
|
+
`,Oy=e=>ke`
|
|
1790
1810
|
align-items: flex-start;
|
|
1791
1811
|
&[data-highlighted] {
|
|
1792
1812
|
background-color: ${Hm(20)};
|
|
@@ -1808,7 +1828,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1808
1828
|
&:active {
|
|
1809
1829
|
background-color: ${Hm(40)};
|
|
1810
1830
|
}
|
|
1811
|
-
`,
|
|
1831
|
+
`,Ly=(e,t)=>ke`
|
|
1812
1832
|
font-size: ${ze("small"===e?300:400)};
|
|
1813
1833
|
line-height: ${He("small"===e?500:600)};
|
|
1814
1834
|
color: ${Ie("neutral",800)};
|
|
@@ -1816,7 +1836,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1816
1836
|
margin: 0;
|
|
1817
1837
|
|
|
1818
1838
|
${t?`color: ${Ie("neutral",600)} !important;`:""}
|
|
1819
|
-
`,
|
|
1839
|
+
`,Ay=(e,t)=>ke`
|
|
1820
1840
|
font-size: ${ze("small"===e?300:400)};
|
|
1821
1841
|
line-height: ${He("small"===e?500:600)};
|
|
1822
1842
|
color: ${Ie("neutral",700)};
|
|
@@ -1824,7 +1844,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1824
1844
|
margin: 0;
|
|
1825
1845
|
|
|
1826
1846
|
${t?`color: ${Ie("neutral",600)} !important;`:""}
|
|
1827
|
-
`,
|
|
1847
|
+
`,Ny=e=>ke`
|
|
1828
1848
|
max-width: 100%;
|
|
1829
1849
|
display: flex;
|
|
1830
1850
|
justify-content: center;
|
|
@@ -1897,28 +1917,28 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1897
1917
|
background-color: ${Ie("neutral",300)};
|
|
1898
1918
|
color: ${Ie("neutral",600)};
|
|
1899
1919
|
}
|
|
1900
|
-
`,
|
|
1920
|
+
`,Ry=ke`
|
|
1901
1921
|
background-color: ${Ie("neutral",100)};
|
|
1902
1922
|
border: ${_e(100)} solid ${Ie("neutral",300)};
|
|
1903
|
-
`,
|
|
1923
|
+
`,Dy=ke`
|
|
1904
1924
|
background-color: ${Ie("neutral",200)};
|
|
1905
1925
|
border: ${_e(100)} solid ${Ie("neutral",400)};
|
|
1906
|
-
`,
|
|
1926
|
+
`,Py=ke`
|
|
1907
1927
|
background-color: ${Ie("success",100)};
|
|
1908
1928
|
border: ${_e(100)} solid ${Ie("success",300)};
|
|
1909
1929
|
color: ${Ie("success",900)};
|
|
1910
|
-
`,
|
|
1930
|
+
`,Iy=ke`
|
|
1911
1931
|
background-color: ${Ie("warning",100)};
|
|
1912
1932
|
border: ${_e(100)} solid ${Ie("warning",300)};
|
|
1913
1933
|
color: ${Ie("warning",900)};
|
|
1914
|
-
`,
|
|
1934
|
+
`,zy=ke`
|
|
1915
1935
|
background-color: ${Ie("error",100)};
|
|
1916
1936
|
border: ${_e(100)} solid ${Ie("error",300)};
|
|
1917
1937
|
color: ${Ie("error",900)};
|
|
1918
|
-
`,
|
|
1938
|
+
`,Vy=({label:e,size:t="default",variant:n,disabled:r,icon:o,onClose:i,closable:s,labels:a,...l})=>{const c=tg("Tag",a);let d=Ry;return"info-grey"===n?d=Dy:"success"===n?d=Py:"warning"===n?d=Iy:"error"===n&&(d=zy),be(S.Root,{css:[Ny(t),d],"data-disabled":r,...l,children:[o?ve(S.StartElement,{"aria-hidden":"true",children:o}):null,ve(S.Label,{"aria-label":e,children:e}),s&&!r&&"small"!==t?ve(S.EndElement,{children:ve("div",{className:"chakra-tag__closeTrigger",role:"button",tabIndex:0,onClick:i,onKeyDown:e=>{!i||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),i())},"aria-label":c.closeButtonAriaLabel(e),children:ve(hg,{})})}):null]})},Hy=({placeholder:e,size:t,disabled:n})=>ve($y,{placeholder:e,children:e=>{const{label:r,caption:o}=e[0];return be(p,{flexDirection:"column",alignItems:"flex-start",children:[ve("p",{css:Ly(t,n),children:r}),o?ve("p",{css:Ay(t,n),children:o}):null]})}}),By=({placeholder:e,removeItem:t,disabled:n})=>ve($y,{placeholder:e,children:e=>e.map((e=>ve(p,{flexDirection:"row",alignItems:"flex-start",children:ve(Vy,{label:e.label,variant:"info-grey",disabled:n,onClose:()=>t(e.value),closable:!0},e.value)},e.value)))}),_y=({label:e,caption:t,placeholder:n="",items:o,size:i="default",required:s,disabled:a,onChange:l,errorMessage:c,multiple:d,labels:u,value:h,defaultValue:p,...f})=>{const m=tg("Select",u),[g,b]=ae(p||[]),v=void 0!==h,y=v?h:g,w=(e=>M({items:e}))(o),x=e=>{v||b(e),l&&l(e)},C=`${e||m.defaultAriaLabel}${s?m.requiredSuffix:""}${t?` ${t}.`:""}${a?m.disabledSuffix:""}`.trim(),k=y.length>0;return ve(Cb,{className:"ds-select-input-container",label:e,caption:t,errorMessage:c,required:s,disabled:a,size:i,showOptionalLabel:!1,semantics:"group",containerProps:{tabIndex:a?0:void 0,"aria-disabled":a,"aria-label":a?C:void 0},children:be(Sy,{css:{},collection:w,disabled:a,required:s,multiple:d,"aria-label":f["aria-label"]||e,value:y,onValueChange:e=>x(e.value),...f,children:[ve(xy,{css:Ey(i,k,!!c,d),"aria-label":f["aria-label"]||e||m.defaultAriaLabel,children:d?ve(By,{placeholder:n,disabled:a,removeItem:e=>{const t=y.filter((t=>t!==e));x(t)}}):ve(Hy,{placeholder:n,size:i,disabled:a})}),ve(Cy,{css:Ty(k,!!c),children:w.items.map((e=>be(ky,{css:Oy(d),item:e,children:[be(r,{children:[ve("p",{css:Ly(i),children:e.label}),ve("p",{css:Ay(i),children:e.caption})]}),d?ve(Ov,{checked:y.some((t=>t===e.value)),"aria-label":`Select ${e.label}`,tabIndex:-1}):null]},e.value)))})]})})},jy=({label:e,caption:t,errorMessage:n,units:r,unitsPosition:o="end",defaultUnit:i="",defaultValue:s="",onChange:a,required:l,disabled:c})=>{const[d,u]=ae(s),[h,p]=ae(i?[i]:[r[0].value]),f=(e,t)=>{a&&a("end"===o?""+(t?`${d} ${e}`:`${e} ${h}`):""+(t?`${e} ${d}`:`${h} ${e}`))};return ve("div",{css:yy,children:ve(Cb,{label:e,caption:t,errorMessage:n,required:l,disabled:c,showOptionalLabel:!1,noMarginBottom:!0,semantics:"group",children:be(m,{css:wy(!!n,o),attached:!0,children:["start"===o?ve(_y,{placeholder:"","aria-label":`${e} unit`,value:h,items:r,disabled:c,onChange:e=>{p(e),f(e?.[0],!0)}}):null,ve(Ab,{type:"number","aria-label":`${e} value`,value:d,disabled:c,noMarginBottom:!0,onChange:e=>{u(e.target.value),f(e.target.value)}}),"end"===o?ve(_y,{placeholder:"","aria-label":`${e} unit`,value:h,items:r,disabled:c,onChange:e=>{p(e),f(e?.[0],!0)}}):null]})})})},Fy=ke`
|
|
1919
1939
|
width: 100%;
|
|
1920
1940
|
max-width: 30.375rem;
|
|
1921
|
-
`,
|
|
1941
|
+
`,qy=ke`
|
|
1922
1942
|
display: flex;
|
|
1923
1943
|
align-items: center;
|
|
1924
1944
|
justify-content: space-between;
|
|
@@ -1935,11 +1955,11 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1935
1955
|
button {
|
|
1936
1956
|
min-width: 6.125rem;
|
|
1937
1957
|
}
|
|
1938
|
-
`,
|
|
1958
|
+
`,Wy=ke`
|
|
1939
1959
|
display: flex;
|
|
1940
1960
|
flex-direction: column;
|
|
1941
1961
|
gap: ${Ve(200)};
|
|
1942
|
-
`,
|
|
1962
|
+
`,Uy=e=>ke`
|
|
1943
1963
|
height: ${Ve(200)};
|
|
1944
1964
|
width: 100%;
|
|
1945
1965
|
background-color: ${Ie("neutral",300)};
|
|
@@ -1952,7 +1972,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1952
1972
|
background-color: ${Ie("medium"===e?"warning":"strong"===e||"very-strong"===e?"success":"error",900)};
|
|
1953
1973
|
border-radius: ${Be(500)};
|
|
1954
1974
|
}
|
|
1955
|
-
`,
|
|
1975
|
+
`,Ky=e=>ke`
|
|
1956
1976
|
display: flex;
|
|
1957
1977
|
align-items: center;
|
|
1958
1978
|
gap: ${Ve(100)};
|
|
@@ -1973,7 +1993,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1973
1993
|
p {
|
|
1974
1994
|
margin: 0;
|
|
1975
1995
|
}
|
|
1976
|
-
`,
|
|
1996
|
+
`,Gy=({label:e,caption:t,required:n,disabledRules:r,onChange:o,minLength:i=8,hideValidations:s,labels:a})=>{const l=tg("Password",a),[c,d]=ae(!1),[u,h]=ae(""),[p,f]=ae({strength:"very-weak",length:!1,uppercase:!1,lowercase:!1,numbers:!1,specialCharacters:!1}),m={"very-weak":l.strengthVeryWeak,weak:l.strengthWeak,medium:l.strengthMedium,strong:l.strengthStrong,"very-strong":l.strengthVeryStrong};return ve("div",{css:Fy,children:be(Cb,{label:e,caption:t,required:n,showOptionalLabel:!1,noMarginBottom:!0,semantics:"group",children:[be("div",{css:qy,children:[ve(Ab,{type:c?"text":"password","aria-label":e,value:u,"aria-describedby":"password-guidelines",onChange:e=>(e=>{const t={...p};let n=0,r=!1;t.length=e.length>=i,n+=e.length>=i?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>=i&&n>=4&&(t.strength="strong"),e.length>=i+2&&n>=5&&(t.strength="very-strong"),h(e),f(t),o&&o({...t,password:e})})(e.target.value),noMarginBottom:!0}),ve(ng,{label:c?l.hideLabel:l.showLabel,variant:"secondary",leftIcon:ve(c?mg:fg,{}),"aria-label":c?l.hidePasswordLabel:l.showPasswordLabel,onClick:()=>d(!c),type:"button"})]}),u&&!s?be("div",{id:"password-guidelines",css:Wy,"aria-live":"polite",children:[be("p",{css:(g=p.strength,ke`
|
|
1977
1997
|
font-size: ${ze(400)};
|
|
1978
1998
|
line-height: ${He(600)};
|
|
1979
1999
|
font-weight: 400;
|
|
@@ -1985,7 +2005,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1985
2005
|
font-weight: 700;
|
|
1986
2006
|
color: ${Ie("medium"===g?"warning":"strong"===g||"very-strong"===g?"success":"error",900)};
|
|
1987
2007
|
}
|
|
1988
|
-
`),"aria-live":"polite",role:"status",children:[l.strengthPrefix," ",ve("span",{children:m[p.strength]})]}),ve("div",{css:
|
|
2008
|
+
`),"aria-live":"polite",role:"status",children:[l.strengthPrefix," ",ve("span",{children:m[p.strength]})]}),ve("div",{css:Uy(p.strength),children:ve("div",{})}),be("div",{css:Ky(p.length),"aria-label":`${l.minLengthRule(i)}. ${p.length?l.requirementMet:l.requirementNotMet}`,children:[ve("div",{children:p.length?ve(ag,{color:"var(--chakra-colors-success-500)",height:"0.5rem",width:"0.5rem"}):ve(hg,{color:"var(--chakra-colors-error-900)",height:"0.5rem",width:"0.5rem"})}),ve("p",{children:l.minLengthRule(i)})]}),r?.uppercase?null:be("div",{css:Ky(p.uppercase),"aria-label":`${l.uppercaseRule}. ${p.uppercase?l.requirementMet:l.requirementNotMet}`,children:[ve("div",{children:p.uppercase?ve(ag,{color:"var(--chakra-colors-success-500)",height:"0.5rem",width:"0.5rem"}):ve(hg,{color:"var(--chakra-colors-error-900)",height:"0.5rem",width:"0.5rem"})}),ve("p",{children:l.uppercaseRule})]}),r?.lowercase?null:be("div",{css:Ky(p.lowercase),"aria-label":`${l.lowercaseRule}. ${p.lowercase?l.requirementMet:l.requirementNotMet}`,children:[ve("div",{children:p.lowercase?ve(ag,{color:"var(--chakra-colors-success-500)",height:"0.5rem",width:"0.5rem"}):ve(hg,{color:"var(--chakra-colors-error-900)",height:"0.5rem",width:"0.5rem"})}),ve("p",{children:l.lowercaseRule})]}),r?.numbers?null:be("div",{css:Ky(p.numbers),"aria-label":`${l.numberRule}. ${p.numbers?l.requirementMet:l.requirementNotMet}`,children:[ve("div",{children:p.numbers?ve(ag,{color:"var(--chakra-colors-success-500)",height:"0.5rem",width:"0.5rem"}):ve(hg,{color:"var(--chakra-colors-error-900)",height:"0.5rem",width:"0.5rem"})}),ve("p",{children:l.numberRule})]}),r?.specialCharacters?null:be("div",{css:Ky(p.specialCharacters),"aria-label":`${l.specialCharRule}. ${p.specialCharacters?l.requirementMet:l.requirementNotMet}`,children:[ve("div",{children:p.specialCharacters?ve(ag,{color:"var(--chakra-colors-success-500)",height:"0.5rem",width:"0.5rem"}):ve(hg,{color:"var(--chakra-colors-error-900)",height:"0.5rem",width:"0.5rem"})}),ve("p",{children:l.specialCharRule})]})]}):null]})});var g},Zy=ke`
|
|
1989
2009
|
height: 100%;
|
|
1990
2010
|
min-height: 3rem;
|
|
1991
2011
|
width: 100%;
|
|
@@ -1994,7 +2014,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
1994
2014
|
border-radius: ${Be(300)};
|
|
1995
2015
|
background-color: ${Ie("neutral",100)};
|
|
1996
2016
|
padding: ${Ve(300)};
|
|
1997
|
-
`,
|
|
2017
|
+
`,Jy=({label:e,caption:t,name:n,radios:r,defaultValue:o,onCheckedChange:i,errorMessage:s,horizontal:a,variant:l="default",required:c,labels:d})=>{const u=tg("RadioList",d),h=`${e}. ${t?`${t}.`:""} ${c?u.requiredLabel:u.optionalLabel} ${s?`${u.errorPrefix} ${s}.`:""} `;return ve(Cb,{label:e,caption:t,errorMessage:s,required:c,showOptionalLabel:!1,noMarginBottom:!0,semantics:"group",labels:{requiredSymbolLabel:u.requiredSymbolLabel},containerProps:{"aria-roledescription":"group","aria-label":h},children:ve(Gv,{name:n,value:o,onChange:i,horizontal:a&&"card"!==l,children:r.map((e=>ve(Kv,{css:"card"===l?Zy:{},...e},e.value)))})})},Xy=ke`
|
|
1998
2018
|
display: flex;
|
|
1999
2019
|
align-items: center;
|
|
2000
2020
|
gap: ${Ve(300)};
|
|
@@ -2017,19 +2037,19 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2017
2037
|
.chakra-slider__root {
|
|
2018
2038
|
width: 100%;
|
|
2019
2039
|
}
|
|
2020
|
-
`,
|
|
2040
|
+
`,Yy=({label:e,caption:t,size:n="default",sliderItem:r,required:o,onChange:i})=>{const[s,a]=ae(r.value||[]),l=(e,t)=>{const n=e.target.value,o=[...s];let i=n?parseInt(n,10):n;const l=r.min||0,c=r.max||100;i=Number.isNaN(i)?l:i,i=i<l?l:i,i=i>c?c:i,o[t]=i,a(o)},c=(e,t)=>{const n=e.target.value||"0",o=[...s];let l=parseInt(n,10);const c=r.min||0,d=r.max||100;if(l=Number.isNaN(l)?c:l,l=l<c?c:l,l=l>d?d:l,2===s?.length){l=Number.isNaN(l)?c:l;const e=s[0],n=s[1];0===t?(l=l<c?c:l,l=l>n?n:l):1===t&&(l=l<e?e:l,l=l>d?d:l)}o[t]=l,a(o),i&&i(o)};return ve(Cb,{label:e,caption:t,required:o,size:n,showOptionalLabel:!1,noMarginBottom:!0,semantics:"group",children:be("div",{css:Xy,children:[r.step&&r.marks?ve(_y,{items:r.marks.map((e=>{const t="number"==typeof e?e:e.value;return{label:`${"number"==typeof e?e:e.label}`,value:`${t}`}})),placeholder:"",style:{width:"5.625rem"},value:[`${s?.[0]}`],onChange:e=>{const t=e.map((e=>parseInt(e,10)));a(t),i&&i(t)}}):ve(Ab,{"aria-label":e,min:r.min,max:r.max,value:s?.[0],type:"number",onChange:e=>l(e,0),onBlur:e=>c(e,0),className:"ds-opacity-control-text-input",onClick:e=>e.target.select(),noMarginBottom:!0}),ve(ly,{css:{},...r,value:s,"aria-label":2===s?.length?[`${e} minimum`,`${e} maximum`]:[e],onValueChangeEnd:e=>{a(e.value),i&&i(e.value)}}),2===s?.length?ve(Ab,{"aria-label":e,min:r.min,max:r.max,value:s?.[1],type:"number",onChange:e=>l(e,1),onBlur:e=>c(e,1),className:"ds-opacity-control-text-input",onClick:e=>e.target.select(),noMarginBottom:!0}):null]})})},Qy=ke`
|
|
2021
2041
|
color: ${Ie("neutral",600)};
|
|
2022
2042
|
font-size: ${ze(200)};
|
|
2023
2043
|
font-weight: 400;
|
|
2024
2044
|
line-height: ${He(400)};
|
|
2025
2045
|
margin: 0;
|
|
2026
|
-
`,
|
|
2046
|
+
`,ew=ke`
|
|
2027
2047
|
color: ${Ie("error",900)};
|
|
2028
2048
|
font-size: ${ze(300)};
|
|
2029
2049
|
font-weight: 700;
|
|
2030
2050
|
line-height: ${He(500)};
|
|
2031
2051
|
margin: 0;
|
|
2032
|
-
`,
|
|
2052
|
+
`,tw=(e,t)=>ke`
|
|
2033
2053
|
height: 6.5rem;
|
|
2034
2054
|
width: 100%;
|
|
2035
2055
|
border-radius: ${Be(300)};
|
|
@@ -2069,15 +2089,15 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2069
2089
|
}
|
|
2070
2090
|
|
|
2071
2091
|
${t?`\n border: ${_e(100)} solid ${Ie("neutral",700)};\n `:""}
|
|
2072
|
-
`,
|
|
2092
|
+
`,nw=({label:e,caption:t,placeholder:n,errorMessage:r,required:o,disabled:i,size:s="default",showOptionalLabel:a=!0,defaultValue:l="",onChange:d,onFocus:u,onBlur:h,minLength:p,maxLength:f,labels:m,value:g,...b})=>{const v=tg("Textarea",m),[y,w]=ae(l),[x,C]=ae(!1),[k,$]=ae(!1),[S,M]=ae(""),T=void 0!==g,O=T?String(g??""):y,L=he(),A=he(),N=he();ce((()=>{const{length:e}=l;p&&e<p&&e>0?(C(e<p),$(!1),M(v.enterAtLeastChars(p-e))):p&&0===e&&M(v.minChars(p)),f&&e>0?(C(!1),$(e>f),M(v.charsRemaining(f-e))):f&&0===e&&M(v.maxChars(f))}),[]);const R=!!r||x||k,D=[t?L:null,R?A:null,S?N:null].filter(Boolean).join(" ")||void 0,P=Boolean(O),I=Lb(u,h),z=S&&!k&&!x,V=x&&!!p||k&&!!f||z?be(ye,{children:[x&&p?ve(c.ErrorText,{id:A,css:ew,style:{fontSize:"0.75rem",lineHeight:"1rem"},"aria-live":"polite",children:v.needMoreChars(p-O.length)}):null,k&&f?ve(c.ErrorText,{id:A,css:ew,style:{fontSize:"0.75rem",lineHeight:"1rem"},"aria-live":"polite",children:v.tooManyChars(O.length-f)}):null,z?ve(c.HelperText,{id:N,css:Qy,"aria-live":"polite",children:S}):null]}):null;return ve(Cb,{label:e,caption:t,errorMessage:r,invalid:R,required:o,disabled:i,size:s,showOptionalLabel:a,labels:{requiredSymbolLabel:v.requiredSymbolLabel,optionalSuffix:v.optionalSuffix},captionId:L,errorId:r?A:void 0,footer:V,semantics:"field",children:ve(E,{placeholder:n,disabled:i,focusVisibleRing:"none",css:tw(s,P),onChange:e=>{T||w(e.target.value);const{length:t}=e.target.value;p&&f?(C(t<p),$(t>f),M(v.charsRemaining(f-t))):p?(C(t<p),$(!1),M(t<p?v.enterAtLeastChars(p-t):"")):f&&($(t>f),C(!1),M(v.charsRemaining(f-t))),d&&d(e)},value:O,"aria-label":e||n,"aria-describedby":D,"aria-invalid":R||void 0,_placeholder:{color:"var(--chakra-colors-neutral-700)"},...b,"data-focus-visible":I.isTabFocused||void 0,onFocus:I.onFocus,onBlur:I.onBlur})})},rw=e=>(e.getAttribute("data-placement")||"bottom").startsWith("top")?"top":"bottom",ow=()=>{const[e,t]=ae("bottom"),n=se(null);return{contentRef:ue((e=>{n.current?.disconnect(),n.current=null,e&&(t(rw(e)),n.current=new MutationObserver((()=>{t(rw(e))})),n.current.observe(e,{attributes:!0,attributeFilter:["data-placement"]}))}),[]),placement:e}},iw=e=>e?Ie("error",900):Ie("neutral",700),sw=e=>ke`
|
|
2073
2093
|
&[data-state='open'] {
|
|
2074
2094
|
${e.startsWith("top")?"\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n border-top-color: transparent;\n ":"\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n border-bottom-color: transparent;\n "}
|
|
2075
2095
|
}
|
|
2076
|
-
`,
|
|
2096
|
+
`,aw=ke`
|
|
2077
2097
|
&:focus-visible {
|
|
2078
2098
|
${Vm}
|
|
2079
2099
|
}
|
|
2080
|
-
`,
|
|
2100
|
+
`,lw=ke`
|
|
2081
2101
|
cursor: pointer;
|
|
2082
2102
|
|
|
2083
2103
|
&[data-highlighted] {
|
|
@@ -2097,14 +2117,14 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2097
2117
|
cursor: not-allowed;
|
|
2098
2118
|
color: ${Ie("neutral",600)};
|
|
2099
2119
|
}
|
|
2100
|
-
`,
|
|
2120
|
+
`,cw=new Set(["ArrowDown","ArrowUp","Home","End"]),dw=({label:e,required:t,caption:n,errorMessage:r,size:o,disabled:i,showOptionalLabel:s=!0,placeholder:l,labels:c,noMarginBottom:d,initialItems:u=[],multiple:h=!1,showSelectedItems:p=!1})=>{const[f,m]=ae([]),g=tg("Combobox",c),{contains:b}=T({sensitivity:"base"}),{collection:v,filter:y}=O({initialItems:u,filter:b}),w=f.length>0,x=!!r,C=Lb(),{contentRef:k,placement:$}=ow(),[S,M]=ae("pointer"),E=()=>M("pointer");return ve(Cb,{className:"ds-text-input-container",label:e,caption:n,errorMessage:r,required:t,disabled:i,size:o,showOptionalLabel:s,noMarginBottom:d,labels:{requiredSymbolLabel:g.requiredSymbolLabel,optionalSuffix:g.optionalSuffix},semantics:"field",children:be(L.Root,{multiple:h,invalid:x,onValueChange:e=>{m(e.items.map((e=>({label:e.label,value:e.value}))))},value:f.map((e=>e.value)),collection:v,onInputValueChange:e=>y(e.inputValue),width:"100%",positioning:{sameWidth:!0},size:"small"===o?"sm":"md",children:[be(L.Control,{children:[ve(L.Input,{placeholder:l,focusVisibleRing:"none",css:[xb(o,w),sw($)],disabled:i,"aria-label":e||l||g.defaultInputAriaLabel,"data-focus-visible":C.isTabFocused||void 0,onFocus:C.onFocus,onBlur:C.onBlur,onKeyDown:e=>{cw.has(e.key)&&M("keyboard")},onPointerDown:E,_placeholder:{color:"var(--chakra-colors-neutral-700)"}}),be(L.IndicatorGroup,{children:[ve(L.ClearTrigger,{"aria-label":g.clearSelectionLabel,tabIndex:0,focusVisibleRing:"none",css:aw}),ve(L.Trigger,{"aria-label":g.toggleOptionsLabel})]})]}),ve(a,{children:ve(L.Positioner,{children:be(L.Content,{ref:k,css:(A=x,ke`
|
|
2101
2121
|
margin-top: calc(${Ve(200)} * -1);
|
|
2102
2122
|
border-radius: ${Be(300)};
|
|
2103
2123
|
border: ${_e(100)} solid ${Ie("neutral",400)};
|
|
2104
2124
|
border-top-left-radius: 0;
|
|
2105
2125
|
border-top-right-radius: 0;
|
|
2106
2126
|
border-top: ${_e(100)} solid
|
|
2107
|
-
${
|
|
2127
|
+
${iw(A)};
|
|
2108
2128
|
background-color: ${Ie("neutral",100)};
|
|
2109
2129
|
box-shadow:
|
|
2110
2130
|
0 0.25rem 0.375rem -0.25rem #0000001a,
|
|
@@ -2120,12 +2140,12 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2120
2140
|
border-bottom-left-radius: 0;
|
|
2121
2141
|
border-bottom-right-radius: 0;
|
|
2122
2142
|
border-bottom: ${_e(100)} solid
|
|
2123
|
-
${
|
|
2143
|
+
${iw(A)};
|
|
2124
2144
|
box-shadow:
|
|
2125
2145
|
0 -0.25rem 0.375rem -0.25rem #0000001a,
|
|
2126
2146
|
0 -0.625rem 0.9375rem -0.1875rem #0000001a;
|
|
2127
2147
|
}
|
|
2128
|
-
`),"data-nav-source":S,onPointerMove:E,children:[ve(L.Empty,{children:g.noItemsFoundLabel}),v.items.map((e=>be(L.Item,{css:
|
|
2148
|
+
`),"data-nav-source":S,onPointerMove:E,children:[ve(L.Empty,{children:g.noItemsFoundLabel}),v.items.map((e=>be(L.Item,{css:lw,item:e,children:[e.label,ve(L.ItemIndicator,{})]},e.value)))]})})}),p?ve("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"0.25rem",paddingTop:"0.5rem"},children:f.map((e=>ve(Vy,{label:e.label,variant:"info-white",onClose:()=>m((t=>t.filter((t=>t.value!==e.value)))),closable:!0},e.value)))}):null]})});var A},uw=(e,t)=>ke`
|
|
2129
2149
|
height: ${e};
|
|
2130
2150
|
width: ${t};
|
|
2131
2151
|
border: ${_e(100)} solid ${Ie("neutral",300)};
|
|
@@ -2139,7 +2159,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2139
2159
|
height: 100%;
|
|
2140
2160
|
overflow-y: scroll;
|
|
2141
2161
|
}
|
|
2142
|
-
`,
|
|
2162
|
+
`,hw=ke`
|
|
2143
2163
|
padding: ${Ve(400)} ${Ve(300)};
|
|
2144
2164
|
border-bottom: ${_e(100)} solid
|
|
2145
2165
|
${Ie("neutral",300)};
|
|
@@ -2163,17 +2183,17 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2163
2183
|
color: ${Ie("neutral",700)};
|
|
2164
2184
|
text-align: left;
|
|
2165
2185
|
}
|
|
2166
|
-
`,
|
|
2186
|
+
`,pw=ke``,fw=ke`
|
|
2167
2187
|
display: flex;
|
|
2168
2188
|
flex-direction: column;
|
|
2169
2189
|
gap: ${Ve(300)};
|
|
2170
2190
|
padding: ${Ve(300)};
|
|
2171
2191
|
border-bottom: ${_e(100)} solid
|
|
2172
2192
|
${Ie("neutral",300)};
|
|
2173
|
-
`,
|
|
2193
|
+
`,mw=ke`
|
|
2174
2194
|
padding-top: ${Ve(300)};
|
|
2175
2195
|
padding-left: ${Ve(200)};
|
|
2176
|
-
`,
|
|
2196
|
+
`,gw=ke``,bw=e=>ke`
|
|
2177
2197
|
display: flex;
|
|
2178
2198
|
gap: ${Ve(300)};
|
|
2179
2199
|
padding: ${Ve(300)} ${Ve(200)};
|
|
@@ -2198,7 +2218,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2198
2218
|
background-color: ${Ie("primary",100)};
|
|
2199
2219
|
width: 99.8%;
|
|
2200
2220
|
}
|
|
2201
|
-
`,
|
|
2221
|
+
`,vw=ke`
|
|
2202
2222
|
width: 100%;
|
|
2203
2223
|
max-width: calc(100% - 2.75rem);
|
|
2204
2224
|
|
|
@@ -2229,7 +2249,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2229
2249
|
.ds-base-map-children {
|
|
2230
2250
|
margin-top: 0.625rem;
|
|
2231
2251
|
}
|
|
2232
|
-
`,
|
|
2252
|
+
`,yw=({title:e,caption:t,additionalSettings:n,options:r,onOptionSelected:o,maxHeight:i="25rem",maxWidth:s="16.25rem",labels:a})=>{const l=tg("BaseMap",a),c=se(null),d=se(null);return ce((()=>{const e=c.current,t=d.current;if(!e||!t)return;const n=()=>{e.focus()};if("undefined"!=typeof IntersectionObserver){let e=!1;const r=new IntersectionObserver((([t])=>{t?.isIntersecting?(e||n(),e=!0):e=!1}),{threshold:.01});return r.observe(t),()=>r.disconnect()}const r=window.setTimeout(n,0);return()=>window.clearTimeout(r)}),[]),ve("div",{ref:d,css:uw(i,s),children:be("div",{className:"ds-base-map-scroll-content",children:[be("div",{css:hw,children:[ve("h2",{ref:c,className:"ds-base-map-header-title",tabIndex:-1,children:e}),ve("p",{className:"ds-base-map-header-caption",children:t})]}),be("div",{css:pw,children:[n?ve("div",{css:fw,children:n.map((e=>be("div",{children:[ve(Ov,{css:{},checked:e.checked,onCheckedChange:({checked:t})=>e.onCheckedChange({checked:Boolean(t)}),children:e.label}),e.checked&&e.children?ve("div",{css:mw,children:e.children}):null]},e.label)))}):null,r?ve("div",{css:gw,children:r.map((e=>{return be("div",{css:bw(e.active),role:"button","aria-label":`${e.label}${e.caption?`, ${e.caption}`:""}`,onClick:()=>o?.(e),tabIndex:0,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),o?.(e))},children:[ve("div",{css:(t=e.imageUrl,ke`
|
|
2233
2253
|
height: ${Ve(800)};
|
|
2234
2254
|
width: ${Ve(800)};
|
|
2235
2255
|
border: ${_e(100)} solid ${Ie("neutral",300)};
|
|
@@ -2237,7 +2257,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2237
2257
|
background-image: url(${t});
|
|
2238
2258
|
background-size: cover;
|
|
2239
2259
|
background-position: center;
|
|
2240
|
-
`)}),be("div",{css:
|
|
2260
|
+
`)}),be("div",{css:vw,children:[be("div",{className:"ds-base-map-title-container",children:[ve("p",{className:"ds-base-map-title",children:e.label}),e.active?ve(Vy,{label:l.activeLabel,variant:"warning",size:"small",icon:ve(ag,{})}):null]}),ve("p",{className:"ds-base-map-caption",children:e.caption}),e.active&&e.children?ve("div",{className:"ds-base-map-children",children:e.children}):null]})]},e.label);var t}))}):null]})]})})},ww=(e,t,n,r,o,i="icon")=>{let s="1rem",a=`${_e(300)} solid ${Ie("neutral",100)}`;if("cluster"===i){const e=1.75,t=6,n=.03125;if(a=`${_e(300)} solid ${Ie("neutral",100)}`,void 0!==o&&o>1){const r=e+(o-1)*n;s=`${Math.min(r,t)}rem`}else s=`${e}rem`}else"simple-pin"===i?(a=`${_e(300)} solid ${Ie("error",500)}`,s="1.5rem"):n&&(s="1.75rem",a=`${_e(200)} solid ${Ie("neutral",100)}`);return ke`
|
|
2241
2261
|
text-overflow: ellipsis;
|
|
2242
2262
|
height: ${s};
|
|
2243
2263
|
width: ${s};
|
|
@@ -2278,14 +2298,14 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2278
2298
|
height: 0.875rem;
|
|
2279
2299
|
width: 0.875rem;
|
|
2280
2300
|
}
|
|
2281
|
-
`},
|
|
2301
|
+
`},xw=ie((({ariaLabel:e,icon:t,backgroundColor:n,onClick:r,showFocusState:o,count:i,mode:s,variant:a="icon",labels:l},c)=>{const d=tg("MapMarker",l),u=i?(h=i)>=1e8?"99M+":h>=1e6?`${(h/1e6).toFixed(0)}M`:h>=1e5?`${(h/1e3).toFixed(0)}K`:h.toString():void 0;var h;return ve("div",{css:o?ke`
|
|
2282
2302
|
outline: ${_e(200)} solid ${Ie("primary",700)};
|
|
2283
2303
|
outline-offset: ${Ve(50)};
|
|
2284
2304
|
border-radius: 50%;
|
|
2285
2305
|
box-shadow:
|
|
2286
2306
|
0 0 0 0.125rem ${Ie("neutral",100)},
|
|
2287
2307
|
rgba(0, 0, 0, 0.05) 0 0.125rem 0.125rem 0.25rem;
|
|
2288
|
-
`:"",children:be("button",{type:"button",css:vw(n,!!r,!!t,s,i,a),"aria-label":e||(i?d.clusterAriaLabel(i):"simple-pin"===a?d.pinAriaLabel:d.pointAriaLabel),ref:c,onClick:r,children:["cluster"===a&&u,"icon"===a&&t]})})})),ww=({onClick:e,triggerRef:t,showFocusState:n,count:r,mode:o,variant:i="cluster"})=>X(yw,{count:r,mode:o,onClick:e,ref:t,showFocusState:n,variant:i}),xw=({onClick:e,triggerRef:t,showFocusState:n,count:r,mode:o,variant:i="simple-pin"})=>X(yw,{count:r,mode:o,onClick:e,ref:t,showFocusState:n,variant:i}),Cw={Paper:({ariaLabel:e,onClick:t,triggerRef:n,showFocusState:r})=>X(yw,{ariaLabel:e||"paper icon",icon:X(Og,{color:"#79022C"}),backgroundColor:"#FFBCD4",onClick:t,ref:n,showFocusState:r}),Drop:({ariaLabel:e,onClick:t,triggerRef:n,showFocusState:r})=>X(yw,{ariaLabel:e||"drop icon",icon:X(Lg,{color:"#7D2A03"}),backgroundColor:"#F3A078",onClick:t,ref:n,showFocusState:r}),Plant:({ariaLabel:e,onClick:t,triggerRef:n,showFocusState:r})=>X(yw,{ariaLabel:e||"plant icon",icon:X(Ag,{color:"#3B6402"}),backgroundColor:"#B7E578",onClick:t,ref:n,showFocusState:r}),Point:({ariaLabel:e,onClick:t,triggerRef:n,showFocusState:r})=>X(yw,{ariaLabel:e||"point icon",backgroundColor:Ie("primary",500),onClick:t,ref:n,showFocusState:r})};function kw(){return"undefined"!=typeof window}function $w(e){return Ew(e)?(e.nodeName||"").toLowerCase():"#document"}function Sw(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Mw(e){var t;return null==(t=(Ew(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ew(e){return!!kw()&&(e instanceof Node||e instanceof Sw(e).Node)}function Tw(e){return!!kw()&&(e instanceof Element||e instanceof Sw(e).Element)}function Ow(e){return!!kw()&&(e instanceof HTMLElement||e instanceof Sw(e).HTMLElement)}function Lw(e){return!(!kw()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Sw(e).ShadowRoot)}const Aw=new Set(["inline","contents"]);function Nw(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=qw(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Aw.has(o)}const Rw=new Set(["table","td","th"]);function Dw(e){return Rw.has($w(e))}const Pw=[":popover-open",":modal"];function Iw(e){return Pw.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}const zw=["transform","translate","scale","rotate","perspective"],Vw=["transform","translate","scale","rotate","perspective","filter"],Hw=["paint","layout","strict","content"];function Bw(e){const t=_w(),n=Tw(e)?qw(e):e;return zw.some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||Vw.some((e=>(n.willChange||"").includes(e)))||Hw.some((e=>(n.contain||"").includes(e)))}function _w(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const jw=new Set(["html","body","#document"]);function Fw(e){return jw.has($w(e))}function qw(e){return Sw(e).getComputedStyle(e)}function Ww(e){return Tw(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Uw(e){if("html"===$w(e))return e;const t=e.assignedSlot||e.parentNode||Lw(e)&&e.host||Mw(e);return Lw(t)?t.host:t}function Kw(e){const t=Uw(e);return Fw(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ow(t)&&Nw(t)?t:Kw(t)}function Gw(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Kw(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=Sw(o);if(i){const e=Zw(s);return t.concat(s,s.visualViewport||[],Nw(o)?o:[],e&&n?Gw(e):[])}return t.concat(o,Gw(o,[],n))}function Zw(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Jw=Math.min,Xw=Math.max,Yw=Math.round,Qw=Math.floor,ex=e=>({x:e,y:e}),tx={left:"right",right:"left",bottom:"top",top:"bottom"},nx={start:"end",end:"start"};function rx(e,t,n){return Xw(e,Jw(t,n))}function ox(e,t){return"function"==typeof e?e(t):e}function ix(e){return e.split("-")[0]}function sx(e){return e.split("-")[1]}function ax(e){return"x"===e?"y":"x"}function lx(e){return"y"===e?"height":"width"}const cx=new Set(["top","bottom"]);function dx(e){return cx.has(ix(e))?"y":"x"}function ux(e){return ax(dx(e))}function hx(e){return e.replace(/start|end/g,(e=>nx[e]))}const px=["left","right"],fx=["right","left"],mx=["top","bottom"],gx=["bottom","top"];function bx(e,t,n,r){const o=sx(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?fx:px:t?px:fx;case"left":case"right":return t?mx:gx;default:return[]}}(ix(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(hx)))),i}function vx(e){return e.replace(/left|right|bottom|top/g,(e=>tx[e]))}function yx(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function wx(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}const xx="data-floating-ui-focusable";function Cx(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Lw(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function kx(e){return"composedPath"in e?e.composedPath()[0]:e.target}function $x(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function Sx(e){return(null==e?void 0:e.ownerDocument)||document}function Mx(e,t,n){void 0===n&&(n=!0);return e.filter((e=>{var r;return e.parentId===t&&(!n||(null==(r=e.context)?void 0:r.open))})).flatMap((t=>[t,...Mx(e,t.id,n)]))}var Ex="undefined"!=typeof document?de:function(){};const Tx={...ee}.useInsertionEffect||(e=>e());function Ox(e){const t=ee.useRef((()=>{if("production"!==process.env.NODE_ENV)throw new Error("Cannot call an event handler while rendering.")}));return Tx((()=>{t.current=e})),ee.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}function Lx(e,t,n){let{reference:r,floating:o}=e;const i=dx(t),s=ux(t),a=lx(s),l=ix(t),c="y"===i,d=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let p;switch(l){case"top":p={x:d,y:r.y-o.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:u};break;case"left":p={x:r.x-o.width,y:u};break;default:p={x:r.x,y:r.y}}switch(sx(t)){case"start":p[s]-=h*(n&&c?-1:1);break;case"end":p[s]+=h*(n&&c?-1:1)}return p}async function Ax(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:h=!1,padding:p=0}=ox(t,e),f=yx(p),m=a[h?"floating"===u?"reference":"floating":u],g=wx(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),b="floating"===u?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),y=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},w=wx(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:v,strategy:l}):b);return{top:(g.top-w.top+f.top)/y.y,bottom:(w.bottom-g.bottom+f.bottom)/y.y,left:(g.left-w.left+f.left)/y.x,right:(w.right-g.right+f.right)/y.x}}const Nx=new Set(["left","top"]);function Rx(e){const t=qw(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ow(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Yw(n)!==i||Yw(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Dx(e){return Tw(e)?e:e.contextElement}function Px(e){const t=Dx(e);if(!Ow(t))return ex(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Rx(t);let s=(i?Yw(n.width):n.width)/r,a=(i?Yw(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const Ix=ex(0);function zx(e){const t=Sw(e);return _w()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ix}function Vx(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Dx(e);let s=ex(1);t&&(r?Tw(r)&&(s=Px(r)):s=Px(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Sw(e))&&t}(i,n,r)?zx(i):ex(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,d=o.width/s.x,u=o.height/s.y;if(i){const e=Sw(i),t=r&&Tw(r)?Sw(r):r;let n=e,o=Zw(n);for(;o&&r&&t!==n;){const e=Px(o),t=o.getBoundingClientRect(),r=qw(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,u*=e.y,l+=i,c+=s,n=Sw(o),o=Zw(n)}}return wx({width:d,height:u,x:l,y:c})}function Hx(e,t){const n=Ww(e).scrollLeft;return t?t.left+n:Vx(Mw(e)).left+n}function Bx(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Hx(e,n),y:n.top+t.scrollTop}}const _x=new Set(["absolute","fixed"]);function jx(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Sw(e),r=Mw(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const e=_w();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}const c=Hx(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,s=Math.abs(r.clientWidth-t.clientWidth-o);s<=25&&(i-=s)}else c<=25&&(i+=c);return{width:i,height:s,x:a,y:l}}(e,n);else if("document"===t)r=function(e){const t=Mw(e),n=Ww(e),r=e.ownerDocument.body,o=Xw(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Xw(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Hx(e);const a=-n.scrollTop;return"rtl"===qw(r).direction&&(s+=Xw(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}(Mw(e));else if(Tw(t))r=function(e,t){const n=Vx(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Ow(e)?Px(e):ex(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=zx(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return wx(r)}function Fx(e,t){const n=Uw(e);return!(n===t||!Tw(n)||Fw(n))&&("fixed"===qw(n).position||Fx(n,t))}function qx(e,t,n){const r=Ow(t),o=Mw(t),i="fixed"===n,s=Vx(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=ex(0);function c(){l.x=Hx(o)}if(r||!r&&!i)if(("body"!==$w(t)||Nw(o))&&(a=Ww(t)),r){const e=Vx(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();i&&!r&&o&&c();const d=!o||r||i?ex(0):Bx(o,a);return{x:s.left+a.scrollLeft-l.x-d.x,y:s.top+a.scrollTop-l.y-d.y,width:s.width,height:s.height}}function Wx(e){return"static"===qw(e).position}function Ux(e,t){if(!Ow(e)||"fixed"===qw(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Mw(e)===n&&(n=n.ownerDocument.body),n}function Kx(e,t){const n=Sw(e);if(Iw(e))return n;if(!Ow(e)){let t=Uw(e);for(;t&&!Fw(t);){if(Tw(t)&&!Wx(t))return t;t=Uw(t)}return n}let r=Ux(e,t);for(;r&&Dw(r)&&Wx(r);)r=Ux(r,t);return r&&Fw(r)&&Wx(r)&&!Bw(r)?n:r||function(e){let t=Uw(e);for(;Ow(t)&&!Fw(t);){if(Bw(t))return t;if(Iw(t))return null;t=Uw(t)}return null}(e)||n}const Gx={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,s=Mw(r),a=!!t&&Iw(t.floating);if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=ex(1);const d=ex(0),u=Ow(r);if((u||!u&&!i)&&(("body"!==$w(r)||Nw(s))&&(l=Ww(r)),Ow(r))){const e=Vx(r);c=Px(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}const h=!s||u||i?ex(0):Bx(s,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+h.x,y:n.y*c.y-l.scrollTop*c.y+d.y+h.y}},getDocumentElement:Mw,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?Iw(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Gw(e,[],!1).filter((e=>Tw(e)&&"body"!==$w(e))),o=null;const i="fixed"===qw(e).position;let s=i?Uw(e):e;for(;Tw(s)&&!Fw(s);){const t=qw(s),n=Bw(s);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&_x.has(o.position)||Nw(s)&&!n&&Fx(e,s))?r=r.filter((e=>e!==s)):o=t,s=Uw(s)}return t.set(e,r),r}(t,this._c):[].concat(n),s=[...i,r],a=s[0],l=s.reduce(((e,n)=>{const r=jx(t,n,o);return e.top=Xw(r.top,e.top),e.right=Jw(r.right,e.right),e.bottom=Jw(r.bottom,e.bottom),e.left=Xw(r.left,e.left),e}),jx(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Kx,getElementRects:async function(e){const t=this.getOffsetParent||Kx,n=this.getDimensions,r=await n(e.floating);return{reference:qx(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Rx(e);return{width:t,height:n}},getScale:Px,isElement:Tw,isRTL:function(e){return"rtl"===qw(e).direction}};function Zx(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Jx(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Dx(e),d=o||i?[...c?Gw(c):[],...Gw(t)]:[];d.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const u=c&&a?function(e,t){let n,r=null;const o=Mw(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:d,top:u,width:h,height:p}=c;if(a||t(),!h||!p)return;const f={rootMargin:-Qw(u)+"px "+-Qw(o.clientWidth-(d+h))+"px "+-Qw(o.clientHeight-(u+p))+"px "+-Qw(d)+"px",threshold:Xw(0,Jw(1,l))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return s();r?s(!1,r):n=setTimeout((()=>{s(!1,1e-7)}),1e3)}1!==r||Zx(c,e.getBoundingClientRect())||s(),m=!1}try{r=new IntersectionObserver(g,{...f,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,f)}r.observe(e)}(!0),i}(c,n):null;let h,p=-1,f=null;s&&(f=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),n()})),c&&!l&&f.observe(c),f.observe(t));let m=l?Vx(e):null;return l&&function t(){const r=Vx(e);m&&!Zx(m,r)&&n();m=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==u||u(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(h)}}const Xx=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),s=ix(n),a=sx(n),l="y"===dx(n),c=Nx.has(s)?-1:1,d=i&&l?-1:1,u=ox(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:f}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&"number"==typeof f&&(p="end"===a?-1*f:f),l?{x:p*d,y:h*c}:{x:h*c,y:p*d}}(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},Yx=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=ox(e,t),c={x:n,y:r},d=await Ax(t,l),u=dx(ix(o)),h=ax(u);let p=c[h],f=c[u];if(i){const e="y"===h?"bottom":"right";p=rx(p+d["y"===h?"top":"left"],p,p-d[e])}if(s){const e="y"===u?"bottom":"right";f=rx(f+d["y"===u?"top":"left"],f,f-d[e])}const m=a.fn({...t,[h]:p,[u]:f});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[h]:i,[u]:s}}}}}},Qx=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...g}=ox(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const b=ix(o),v=dx(a),y=ix(a)===a,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=h||(y||!m?[vx(a)]:function(e){const t=vx(e);return[hx(e),t,hx(t)]}(a)),C="none"!==f;!h&&C&&x.push(...bx(a,m,f,w));const k=[a,...x],$=await Ax(t,g),S=[];let M=(null==(r=i.flip)?void 0:r.overflows)||[];if(d&&S.push($[b]),u){const e=function(e,t,n){void 0===n&&(n=!1);const r=sx(e),o=ux(e),i=lx(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=vx(s)),[s,vx(s)]}(o,s,w);S.push($[e[0]],$[e[1]])}if(M=[...M,{placement:o,overflows:S}],!S.every((e=>e<=0))){var E,T;const e=((null==(E=i.flip)?void 0:E.index)||0)+1,t=k[e];if(t){if(!("alignment"===u&&v!==dx(t))||M.every((e=>dx(e.placement)!==v||e.overflows[0]>0)))return{data:{index:e,overflows:M},reset:{placement:t}}}let n=null==(T=M.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:T.placement;if(!n)switch(p){case"bestFit":{var O;const e=null==(O=M.filter((e=>{if(C){const t=dx(e.placement);return t===v||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:O[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},eC=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=ox(e,t)||{};if(null==c)return{};const u=yx(d),h={x:n,y:r},p=ux(o),f=lx(p),m=await s.getDimensions(c),g="y"===p,b=g?"top":"left",v=g?"bottom":"right",y=g?"clientHeight":"clientWidth",w=i.reference[f]+i.reference[p]-h[p]-i.floating[f],x=h[p]-i.reference[p],C=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let k=C?C[y]:0;k&&await(null==s.isElement?void 0:s.isElement(C))||(k=a.floating[y]||i.floating[f]);const $=w/2-x/2,S=k/2-m[f]/2-1,M=Jw(u[b],S),E=Jw(u[v],S),T=M,O=k-m[f]-E,L=k/2-m[f]/2+$,A=rx(T,L,O),N=!l.arrow&&null!=sx(o)&&L!==A&&i.reference[f]/2-(L<T?M:E)-m[f]/2<0,R=N?L<T?L-T:L-O:0;return{[p]:h[p]+R,data:{[p]:A,centerOffset:L-A-R,...N&&{alignmentOffset:R}},reset:N}}}),tC=(e,t,n)=>{const r=new Map,o={platform:Gx,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=Lx(c,r,l),h=r,p={},f=0;for(let n=0;n<a.length;n++){const{name:i,fn:m}=a[n],{x:g,y:b,data:v,reset:y}=await m({x:d,y:u,initialPlacement:r,placement:h,strategy:o,middlewareData:p,rects:c,platform:s,elements:{reference:e,floating:t}});d=null!=g?g:d,u=null!=b?b:u,p={...p,[i]:{...p[i],...v}},y&&f<=50&&(f++,"object"==typeof y&&(y.placement&&(h=y.placement),y.rects&&(c=!0===y.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:d,y:u}=Lx(c,h,l))),n=-1)}return{x:d,y:u,placement:h,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};var nC="undefined"!=typeof document?de:function(){};function rC(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!rC(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!rC(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function oC(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function iC(e,t){const n=oC(e);return Math.round(t*n)/n}function sC(e){const t=ee.useRef(e);return nC((()=>{t.current=e})),t}const aC=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?eC({element:n.current,padding:r}).fn(t):{}:n?eC({element:n,padding:r}).fn(t):{};var o}}),lC=(e,t)=>({...Xx(e),options:[e,t]}),cC=(e,t)=>({...Yx(e),options:[e,t]}),dC=(e,t)=>({...aC(e),options:[e,t]}),uC="data-floating-ui-focusable",hC="active",pC="selected",fC={...ee};let mC=!1,gC=0;const bC=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+gC++;const vC=fC.useId||function(){const[e,t]=ee.useState((()=>mC?bC():void 0));return Ex((()=>{null==e&&t(bC())}),[]),ee.useEffect((()=>{mC=!0}),[]),e};let yC;"production"!==process.env.NODE_ENV&&(yC=new Set);const wC=ee.createContext(null),xC=ee.createContext(null),CC=()=>{var e;return(null==(e=ee.useContext(wC))?void 0:e.id)||null},kC=()=>ee.useContext(xC);const $C={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},SC={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},MC=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function EC(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=vC(),i=ee.useRef({}),[s]=ee.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;null==(r=e.get(t))||r.delete(n)}}}())),a=null!=CC();if("production"!==process.env.NODE_ENV){const e=r.reference;e&&!Tw(e)&&function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");var i;null!=(e=yC)&&e.has(o)||(null==(i=yC)||i.add(o),console.error(o))}("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,c]=ee.useState(r.reference),d=Ox(((e,t,r)=>{i.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:r,nested:a}),null==n||n(e,t,r)})),u=ee.useMemo((()=>({setPositionReference:c})),[]),h=ee.useMemo((()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference})),[l,r.reference,r.floating]);return ee.useMemo((()=>({dataRef:i,open:t,onOpenChange:d,elements:h,events:s,floatingId:o,refs:u})),[t,d,h,s,o,u])}function TC(e){void 0===e&&(e={});const{nodeId:t}=e,n=EC({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,s]=ee.useState(null),[a,l]=ee.useState(null),c=(null==o?void 0:o.domReference)||i,d=ee.useRef(null),u=kC();Ex((()=>{c&&(d.current=c)}),[c]);const h=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[d,u]=ee.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=ee.useState(r);rC(h,r)||p(r);const[f,m]=ee.useState(null),[g,b]=ee.useState(null),v=ee.useCallback((e=>{e!==C.current&&(C.current=e,m(e))}),[]),y=ee.useCallback((e=>{e!==k.current&&(k.current=e,b(e))}),[]),w=i||f,x=s||g,C=ee.useRef(null),k=ee.useRef(null),$=ee.useRef(d),S=null!=l,M=sC(l),E=sC(o),T=sC(c),O=ee.useCallback((()=>{if(!C.current||!k.current)return;const e={placement:t,strategy:n,middleware:h};E.current&&(e.platform=E.current),tC(C.current,k.current,e).then((e=>{const t={...e,isPositioned:!1!==T.current};L.current&&!rC($.current,t)&&($.current=t,we.flushSync((()=>{u(t)})))}))}),[h,t,n,E,T]);nC((()=>{!1===c&&$.current.isPositioned&&($.current.isPositioned=!1,u((e=>({...e,isPositioned:!1}))))}),[c]);const L=ee.useRef(!1);nC((()=>(L.current=!0,()=>{L.current=!1})),[]),nC((()=>{if(w&&(C.current=w),x&&(k.current=x),w&&x){if(M.current)return M.current(w,x,O);O()}}),[w,x,O,M,S]);const A=ee.useMemo((()=>({reference:C,floating:k,setReference:v,setFloating:y})),[v,y]),N=ee.useMemo((()=>({reference:w,floating:x})),[w,x]),R=ee.useMemo((()=>{const e={position:n,left:0,top:0};if(!N.floating)return e;const t=iC(N.floating,d.x),r=iC(N.floating,d.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...oC(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,a,N.floating,d.x,d.y]);return ee.useMemo((()=>({...d,update:O,refs:A,elements:N,floatingStyles:R})),[d,O,A,N,R])}({...e,elements:{...o,...a&&{reference:a}}}),p=ee.useCallback((e=>{const t=Tw(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;l(t),h.refs.setReference(t)}),[h.refs]),f=ee.useCallback((e=>{(Tw(e)||null===e)&&(d.current=e,s(e)),(Tw(h.refs.reference.current)||null===h.refs.reference.current||null!==e&&!Tw(e))&&h.refs.setReference(e)}),[h.refs]),m=ee.useMemo((()=>({...h.refs,setReference:f,setPositionReference:p,domReference:d})),[h.refs,f,p]),g=ee.useMemo((()=>({...h.elements,domReference:c})),[h.elements,c]),b=ee.useMemo((()=>({...h,...r,refs:m,elements:g,nodeId:t})),[h,m,g,t,r]);return Ex((()=>{r.dataRef.current.floatingContext=b;const e=null==u?void 0:u.nodesRef.current.find((e=>e.id===t));e&&(e.context=b)})),ee.useMemo((()=>({...h,context:b,refs:m,elements:g})),[h,m,g,b])}function OC(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[hC]:t,[pC]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[uC]:""},...i,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,i]=t;var s;o&&[hC,pC].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(s=r.get(n))||s.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=i)})),e):e),{})}}const LC=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function AC(e,t){var n,r;void 0===t&&(t={});const{open:o,elements:i,floatingId:s}=e,{enabled:a=!0,role:l="dialog"}=t,c=vC(),d=(null==(n=i.domReference)?void 0:n.id)||c,u=ee.useMemo((()=>{var e,t;return(null==(e=(t=i.floating)?t.hasAttribute(xx)?t:t.querySelector("["+xx+"]")||t:null)?void 0:e.id)||s}),[i.floating,s]),h=null!=(r=LC.get(l))?r:l,p=null!=CC(),f=ee.useMemo((()=>"tooltip"===h||"label"===l?{["aria-"+("label"===l?"labelledby":"describedby")]:o?u:void 0}:{"aria-expanded":o?"true":"false","aria-haspopup":"alertdialog"===h?"dialog":h,"aria-controls":o?u:void 0,..."listbox"===h&&{role:"combobox"},..."menu"===h&&{id:d},..."menu"===h&&p&&{role:"menuitem"},..."select"===l&&{"aria-autocomplete":"none"},..."combobox"===l&&{"aria-autocomplete":"list"}}),[h,u,p,o,d,l]),m=ee.useMemo((()=>{const e={id:u,...h&&{role:h}};return"tooltip"===h||"label"===l?e:{...e,..."menu"===h&&{"aria-labelledby":d}}}),[h,u,d,l]),g=ee.useCallback((e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:u+"-fui-option"}};switch(l){case"select":case"combobox":return{...r,"aria-selected":n}}return{}}),[u,l]);return ee.useMemo((()=>a?{reference:f,floating:m,item:g}:{}),[a,f,m,g])}const NC=ke`
|
|
2308
|
+
`:"",children:be("button",{type:"button",css:ww(n,!!r,!!t,s,i,a),"aria-label":e||(i?d.clusterAriaLabel(i):"simple-pin"===a?d.pinAriaLabel:d.pointAriaLabel),ref:c,onClick:r,children:["cluster"===a&&u,"icon"===a&&t]})})})),Cw=({onClick:e,triggerRef:t,showFocusState:n,count:r,mode:o,variant:i="cluster"})=>X(xw,{count:r,mode:o,onClick:e,ref:t,showFocusState:n,variant:i}),kw=({onClick:e,triggerRef:t,showFocusState:n,count:r,mode:o,variant:i="simple-pin"})=>X(xw,{count:r,mode:o,onClick:e,ref:t,showFocusState:n,variant:i}),$w={Paper:({ariaLabel:e,onClick:t,triggerRef:n,showFocusState:r})=>X(xw,{ariaLabel:e||"paper icon",icon:X(Og,{color:"#79022C"}),backgroundColor:"#FFBCD4",onClick:t,ref:n,showFocusState:r}),Drop:({ariaLabel:e,onClick:t,triggerRef:n,showFocusState:r})=>X(xw,{ariaLabel:e||"drop icon",icon:X(Lg,{color:"#7D2A03"}),backgroundColor:"#F3A078",onClick:t,ref:n,showFocusState:r}),Plant:({ariaLabel:e,onClick:t,triggerRef:n,showFocusState:r})=>X(xw,{ariaLabel:e||"plant icon",icon:X(Ag,{color:"#3B6402"}),backgroundColor:"#B7E578",onClick:t,ref:n,showFocusState:r}),Point:({ariaLabel:e,onClick:t,triggerRef:n,showFocusState:r})=>X(xw,{ariaLabel:e||"point icon",backgroundColor:Ie("primary",500),onClick:t,ref:n,showFocusState:r})};function Sw(){return"undefined"!=typeof window}function Mw(e){return Ow(e)?(e.nodeName||"").toLowerCase():"#document"}function Ew(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Tw(e){var t;return null==(t=(Ow(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ow(e){return!!Sw()&&(e instanceof Node||e instanceof Ew(e).Node)}function Lw(e){return!!Sw()&&(e instanceof Element||e instanceof Ew(e).Element)}function Aw(e){return!!Sw()&&(e instanceof HTMLElement||e instanceof Ew(e).HTMLElement)}function Nw(e){return!(!Sw()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Ew(e).ShadowRoot)}const Rw=new Set(["inline","contents"]);function Dw(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Uw(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Rw.has(o)}const Pw=new Set(["table","td","th"]);function Iw(e){return Pw.has(Mw(e))}const zw=[":popover-open",":modal"];function Vw(e){return zw.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}const Hw=["transform","translate","scale","rotate","perspective"],Bw=["transform","translate","scale","rotate","perspective","filter"],_w=["paint","layout","strict","content"];function jw(e){const t=Fw(),n=Lw(e)?Uw(e):e;return Hw.some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||Bw.some((e=>(n.willChange||"").includes(e)))||_w.some((e=>(n.contain||"").includes(e)))}function Fw(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const qw=new Set(["html","body","#document"]);function Ww(e){return qw.has(Mw(e))}function Uw(e){return Ew(e).getComputedStyle(e)}function Kw(e){return Lw(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Gw(e){if("html"===Mw(e))return e;const t=e.assignedSlot||e.parentNode||Nw(e)&&e.host||Tw(e);return Nw(t)?t.host:t}function Zw(e){const t=Gw(e);return Ww(t)?e.ownerDocument?e.ownerDocument.body:e.body:Aw(t)&&Dw(t)?t:Zw(t)}function Jw(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Zw(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=Ew(o);if(i){const e=Xw(s);return t.concat(s,s.visualViewport||[],Dw(o)?o:[],e&&n?Jw(e):[])}return t.concat(o,Jw(o,[],n))}function Xw(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Yw=Math.min,Qw=Math.max,ex=Math.round,tx=Math.floor,nx=e=>({x:e,y:e}),rx={left:"right",right:"left",bottom:"top",top:"bottom"},ox={start:"end",end:"start"};function ix(e,t,n){return Qw(e,Yw(t,n))}function sx(e,t){return"function"==typeof e?e(t):e}function ax(e){return e.split("-")[0]}function lx(e){return e.split("-")[1]}function cx(e){return"x"===e?"y":"x"}function dx(e){return"y"===e?"height":"width"}const ux=new Set(["top","bottom"]);function hx(e){return ux.has(ax(e))?"y":"x"}function px(e){return cx(hx(e))}function fx(e){return e.replace(/start|end/g,(e=>ox[e]))}const mx=["left","right"],gx=["right","left"],bx=["top","bottom"],vx=["bottom","top"];function yx(e,t,n,r){const o=lx(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?gx:mx:t?mx:gx;case"left":case"right":return t?bx:vx;default:return[]}}(ax(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(fx)))),i}function wx(e){return e.replace(/left|right|bottom|top/g,(e=>rx[e]))}function xx(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Cx(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}const kx="data-floating-ui-focusable";function $x(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Nw(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Sx(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Mx(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function Ex(e){return(null==e?void 0:e.ownerDocument)||document}function Tx(e,t,n){void 0===n&&(n=!0);return e.filter((e=>{var r;return e.parentId===t&&(!n||(null==(r=e.context)?void 0:r.open))})).flatMap((t=>[t,...Tx(e,t.id,n)]))}var Ox="undefined"!=typeof document?de:function(){};const Lx={...ee}.useInsertionEffect||(e=>e());function Ax(e){const t=ee.useRef((()=>{if("production"!==process.env.NODE_ENV)throw new Error("Cannot call an event handler while rendering.")}));return Lx((()=>{t.current=e})),ee.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}function Nx(e,t,n){let{reference:r,floating:o}=e;const i=hx(t),s=px(t),a=dx(s),l=ax(t),c="y"===i,d=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let p;switch(l){case"top":p={x:d,y:r.y-o.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:u};break;case"left":p={x:r.x-o.width,y:u};break;default:p={x:r.x,y:r.y}}switch(lx(t)){case"start":p[s]-=h*(n&&c?-1:1);break;case"end":p[s]+=h*(n&&c?-1:1)}return p}async function Rx(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:h=!1,padding:p=0}=sx(t,e),f=xx(p),m=a[h?"floating"===u?"reference":"floating":u],g=Cx(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),b="floating"===u?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),y=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},w=Cx(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:v,strategy:l}):b);return{top:(g.top-w.top+f.top)/y.y,bottom:(w.bottom-g.bottom+f.bottom)/y.y,left:(g.left-w.left+f.left)/y.x,right:(w.right-g.right+f.right)/y.x}}const Dx=new Set(["left","top"]);function Px(e){const t=Uw(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Aw(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=ex(n)!==i||ex(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Ix(e){return Lw(e)?e:e.contextElement}function zx(e){const t=Ix(e);if(!Aw(t))return nx(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Px(t);let s=(i?ex(n.width):n.width)/r,a=(i?ex(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const Vx=nx(0);function Hx(e){const t=Ew(e);return Fw()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Vx}function Bx(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Ix(e);let s=nx(1);t&&(r?Lw(r)&&(s=zx(r)):s=zx(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Ew(e))&&t}(i,n,r)?Hx(i):nx(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,d=o.width/s.x,u=o.height/s.y;if(i){const e=Ew(i),t=r&&Lw(r)?Ew(r):r;let n=e,o=Xw(n);for(;o&&r&&t!==n;){const e=zx(o),t=o.getBoundingClientRect(),r=Uw(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,u*=e.y,l+=i,c+=s,n=Ew(o),o=Xw(n)}}return Cx({width:d,height:u,x:l,y:c})}function _x(e,t){const n=Kw(e).scrollLeft;return t?t.left+n:Bx(Tw(e)).left+n}function jx(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-_x(e,n),y:n.top+t.scrollTop}}const Fx=new Set(["absolute","fixed"]);function qx(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Ew(e),r=Tw(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const e=Fw();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}const c=_x(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,s=Math.abs(r.clientWidth-t.clientWidth-o);s<=25&&(i-=s)}else c<=25&&(i+=c);return{width:i,height:s,x:a,y:l}}(e,n);else if("document"===t)r=function(e){const t=Tw(e),n=Kw(e),r=e.ownerDocument.body,o=Qw(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Qw(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+_x(e);const a=-n.scrollTop;return"rtl"===Uw(r).direction&&(s+=Qw(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}(Tw(e));else if(Lw(t))r=function(e,t){const n=Bx(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Aw(e)?zx(e):nx(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Hx(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Cx(r)}function Wx(e,t){const n=Gw(e);return!(n===t||!Lw(n)||Ww(n))&&("fixed"===Uw(n).position||Wx(n,t))}function Ux(e,t,n){const r=Aw(t),o=Tw(t),i="fixed"===n,s=Bx(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=nx(0);function c(){l.x=_x(o)}if(r||!r&&!i)if(("body"!==Mw(t)||Dw(o))&&(a=Kw(t)),r){const e=Bx(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();i&&!r&&o&&c();const d=!o||r||i?nx(0):jx(o,a);return{x:s.left+a.scrollLeft-l.x-d.x,y:s.top+a.scrollTop-l.y-d.y,width:s.width,height:s.height}}function Kx(e){return"static"===Uw(e).position}function Gx(e,t){if(!Aw(e)||"fixed"===Uw(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Tw(e)===n&&(n=n.ownerDocument.body),n}function Zx(e,t){const n=Ew(e);if(Vw(e))return n;if(!Aw(e)){let t=Gw(e);for(;t&&!Ww(t);){if(Lw(t)&&!Kx(t))return t;t=Gw(t)}return n}let r=Gx(e,t);for(;r&&Iw(r)&&Kx(r);)r=Gx(r,t);return r&&Ww(r)&&Kx(r)&&!jw(r)?n:r||function(e){let t=Gw(e);for(;Aw(t)&&!Ww(t);){if(jw(t))return t;if(Vw(t))return null;t=Gw(t)}return null}(e)||n}const Jx={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,s=Tw(r),a=!!t&&Vw(t.floating);if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=nx(1);const d=nx(0),u=Aw(r);if((u||!u&&!i)&&(("body"!==Mw(r)||Dw(s))&&(l=Kw(r)),Aw(r))){const e=Bx(r);c=zx(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}const h=!s||u||i?nx(0):jx(s,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+h.x,y:n.y*c.y-l.scrollTop*c.y+d.y+h.y}},getDocumentElement:Tw,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?Vw(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Jw(e,[],!1).filter((e=>Lw(e)&&"body"!==Mw(e))),o=null;const i="fixed"===Uw(e).position;let s=i?Gw(e):e;for(;Lw(s)&&!Ww(s);){const t=Uw(s),n=jw(s);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&Fx.has(o.position)||Dw(s)&&!n&&Wx(e,s))?r=r.filter((e=>e!==s)):o=t,s=Gw(s)}return t.set(e,r),r}(t,this._c):[].concat(n),s=[...i,r],a=s[0],l=s.reduce(((e,n)=>{const r=qx(t,n,o);return e.top=Qw(r.top,e.top),e.right=Yw(r.right,e.right),e.bottom=Yw(r.bottom,e.bottom),e.left=Qw(r.left,e.left),e}),qx(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Zx,getElementRects:async function(e){const t=this.getOffsetParent||Zx,n=this.getDimensions,r=await n(e.floating);return{reference:Ux(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Px(e);return{width:t,height:n}},getScale:zx,isElement:Lw,isRTL:function(e){return"rtl"===Uw(e).direction}};function Xx(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Yx(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Ix(e),d=o||i?[...c?Jw(c):[],...Jw(t)]:[];d.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const u=c&&a?function(e,t){let n,r=null;const o=Tw(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:d,top:u,width:h,height:p}=c;if(a||t(),!h||!p)return;const f={rootMargin:-tx(u)+"px "+-tx(o.clientWidth-(d+h))+"px "+-tx(o.clientHeight-(u+p))+"px "+-tx(d)+"px",threshold:Qw(0,Yw(1,l))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return s();r?s(!1,r):n=setTimeout((()=>{s(!1,1e-7)}),1e3)}1!==r||Xx(c,e.getBoundingClientRect())||s(),m=!1}try{r=new IntersectionObserver(g,{...f,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,f)}r.observe(e)}(!0),i}(c,n):null;let h,p=-1,f=null;s&&(f=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),n()})),c&&!l&&f.observe(c),f.observe(t));let m=l?Bx(e):null;return l&&function t(){const r=Bx(e);m&&!Xx(m,r)&&n();m=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==u||u(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(h)}}const Qx=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),s=ax(n),a=lx(n),l="y"===hx(n),c=Dx.has(s)?-1:1,d=i&&l?-1:1,u=sx(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:f}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&"number"==typeof f&&(p="end"===a?-1*f:f),l?{x:p*d,y:h*c}:{x:h*c,y:p*d}}(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},eC=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=sx(e,t),c={x:n,y:r},d=await Rx(t,l),u=hx(ax(o)),h=cx(u);let p=c[h],f=c[u];if(i){const e="y"===h?"bottom":"right";p=ix(p+d["y"===h?"top":"left"],p,p-d[e])}if(s){const e="y"===u?"bottom":"right";f=ix(f+d["y"===u?"top":"left"],f,f-d[e])}const m=a.fn({...t,[h]:p,[u]:f});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[h]:i,[u]:s}}}}}},tC=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...g}=sx(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const b=ax(o),v=hx(a),y=ax(a)===a,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=h||(y||!m?[wx(a)]:function(e){const t=wx(e);return[fx(e),t,fx(t)]}(a)),C="none"!==f;!h&&C&&x.push(...yx(a,m,f,w));const k=[a,...x],$=await Rx(t,g),S=[];let M=(null==(r=i.flip)?void 0:r.overflows)||[];if(d&&S.push($[b]),u){const e=function(e,t,n){void 0===n&&(n=!1);const r=lx(e),o=px(e),i=dx(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=wx(s)),[s,wx(s)]}(o,s,w);S.push($[e[0]],$[e[1]])}if(M=[...M,{placement:o,overflows:S}],!S.every((e=>e<=0))){var E,T;const e=((null==(E=i.flip)?void 0:E.index)||0)+1,t=k[e];if(t){if(!("alignment"===u&&v!==hx(t))||M.every((e=>hx(e.placement)!==v||e.overflows[0]>0)))return{data:{index:e,overflows:M},reset:{placement:t}}}let n=null==(T=M.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:T.placement;if(!n)switch(p){case"bestFit":{var O;const e=null==(O=M.filter((e=>{if(C){const t=hx(e.placement);return t===v||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:O[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},nC=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=sx(e,t)||{};if(null==c)return{};const u=xx(d),h={x:n,y:r},p=px(o),f=dx(p),m=await s.getDimensions(c),g="y"===p,b=g?"top":"left",v=g?"bottom":"right",y=g?"clientHeight":"clientWidth",w=i.reference[f]+i.reference[p]-h[p]-i.floating[f],x=h[p]-i.reference[p],C=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let k=C?C[y]:0;k&&await(null==s.isElement?void 0:s.isElement(C))||(k=a.floating[y]||i.floating[f]);const $=w/2-x/2,S=k/2-m[f]/2-1,M=Yw(u[b],S),E=Yw(u[v],S),T=M,O=k-m[f]-E,L=k/2-m[f]/2+$,A=ix(T,L,O),N=!l.arrow&&null!=lx(o)&&L!==A&&i.reference[f]/2-(L<T?M:E)-m[f]/2<0,R=N?L<T?L-T:L-O:0;return{[p]:h[p]+R,data:{[p]:A,centerOffset:L-A-R,...N&&{alignmentOffset:R}},reset:N}}}),rC=(e,t,n)=>{const r=new Map,o={platform:Jx,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=Nx(c,r,l),h=r,p={},f=0;for(let n=0;n<a.length;n++){const{name:i,fn:m}=a[n],{x:g,y:b,data:v,reset:y}=await m({x:d,y:u,initialPlacement:r,placement:h,strategy:o,middlewareData:p,rects:c,platform:s,elements:{reference:e,floating:t}});d=null!=g?g:d,u=null!=b?b:u,p={...p,[i]:{...p[i],...v}},y&&f<=50&&(f++,"object"==typeof y&&(y.placement&&(h=y.placement),y.rects&&(c=!0===y.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:d,y:u}=Nx(c,h,l))),n=-1)}return{x:d,y:u,placement:h,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};var oC="undefined"!=typeof document?de:function(){};function iC(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!iC(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!iC(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function sC(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function aC(e,t){const n=sC(e);return Math.round(t*n)/n}function lC(e){const t=ee.useRef(e);return oC((()=>{t.current=e})),t}const cC=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?nC({element:n.current,padding:r}).fn(t):{}:n?nC({element:n,padding:r}).fn(t):{};var o}}),dC=(e,t)=>({...Qx(e),options:[e,t]}),uC=(e,t)=>({...eC(e),options:[e,t]}),hC=(e,t)=>({...cC(e),options:[e,t]}),pC="data-floating-ui-focusable",fC="active",mC="selected",gC={...ee};let bC=!1,vC=0;const yC=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+vC++;const wC=gC.useId||function(){const[e,t]=ee.useState((()=>bC?yC():void 0));return Ox((()=>{null==e&&t(yC())}),[]),ee.useEffect((()=>{bC=!0}),[]),e};let xC;"production"!==process.env.NODE_ENV&&(xC=new Set);const CC=ee.createContext(null),kC=ee.createContext(null),$C=()=>{var e;return(null==(e=ee.useContext(CC))?void 0:e.id)||null},SC=()=>ee.useContext(kC);const MC={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},EC={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},TC=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function OC(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=wC(),i=ee.useRef({}),[s]=ee.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;null==(r=e.get(t))||r.delete(n)}}}())),a=null!=$C();if("production"!==process.env.NODE_ENV){const e=r.reference;e&&!Lw(e)&&function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");var i;null!=(e=xC)&&e.has(o)||(null==(i=xC)||i.add(o),console.error(o))}("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,c]=ee.useState(r.reference),d=Ax(((e,t,r)=>{i.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:r,nested:a}),null==n||n(e,t,r)})),u=ee.useMemo((()=>({setPositionReference:c})),[]),h=ee.useMemo((()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference})),[l,r.reference,r.floating]);return ee.useMemo((()=>({dataRef:i,open:t,onOpenChange:d,elements:h,events:s,floatingId:o,refs:u})),[t,d,h,s,o,u])}function LC(e){void 0===e&&(e={});const{nodeId:t}=e,n=OC({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,s]=ee.useState(null),[a,l]=ee.useState(null),c=(null==o?void 0:o.domReference)||i,d=ee.useRef(null),u=SC();Ox((()=>{c&&(d.current=c)}),[c]);const h=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[d,u]=ee.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=ee.useState(r);iC(h,r)||p(r);const[f,m]=ee.useState(null),[g,b]=ee.useState(null),v=ee.useCallback((e=>{e!==C.current&&(C.current=e,m(e))}),[]),y=ee.useCallback((e=>{e!==k.current&&(k.current=e,b(e))}),[]),w=i||f,x=s||g,C=ee.useRef(null),k=ee.useRef(null),$=ee.useRef(d),S=null!=l,M=lC(l),E=lC(o),T=lC(c),O=ee.useCallback((()=>{if(!C.current||!k.current)return;const e={placement:t,strategy:n,middleware:h};E.current&&(e.platform=E.current),rC(C.current,k.current,e).then((e=>{const t={...e,isPositioned:!1!==T.current};L.current&&!iC($.current,t)&&($.current=t,we.flushSync((()=>{u(t)})))}))}),[h,t,n,E,T]);oC((()=>{!1===c&&$.current.isPositioned&&($.current.isPositioned=!1,u((e=>({...e,isPositioned:!1}))))}),[c]);const L=ee.useRef(!1);oC((()=>(L.current=!0,()=>{L.current=!1})),[]),oC((()=>{if(w&&(C.current=w),x&&(k.current=x),w&&x){if(M.current)return M.current(w,x,O);O()}}),[w,x,O,M,S]);const A=ee.useMemo((()=>({reference:C,floating:k,setReference:v,setFloating:y})),[v,y]),N=ee.useMemo((()=>({reference:w,floating:x})),[w,x]),R=ee.useMemo((()=>{const e={position:n,left:0,top:0};if(!N.floating)return e;const t=aC(N.floating,d.x),r=aC(N.floating,d.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...sC(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,a,N.floating,d.x,d.y]);return ee.useMemo((()=>({...d,update:O,refs:A,elements:N,floatingStyles:R})),[d,O,A,N,R])}({...e,elements:{...o,...a&&{reference:a}}}),p=ee.useCallback((e=>{const t=Lw(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;l(t),h.refs.setReference(t)}),[h.refs]),f=ee.useCallback((e=>{(Lw(e)||null===e)&&(d.current=e,s(e)),(Lw(h.refs.reference.current)||null===h.refs.reference.current||null!==e&&!Lw(e))&&h.refs.setReference(e)}),[h.refs]),m=ee.useMemo((()=>({...h.refs,setReference:f,setPositionReference:p,domReference:d})),[h.refs,f,p]),g=ee.useMemo((()=>({...h.elements,domReference:c})),[h.elements,c]),b=ee.useMemo((()=>({...h,...r,refs:m,elements:g,nodeId:t})),[h,m,g,t,r]);return Ox((()=>{r.dataRef.current.floatingContext=b;const e=null==u?void 0:u.nodesRef.current.find((e=>e.id===t));e&&(e.context=b)})),ee.useMemo((()=>({...h,context:b,refs:m,elements:g})),[h,m,g,b])}function AC(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[fC]:t,[mC]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[pC]:""},...i,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,i]=t;var s;o&&[fC,mC].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(s=r.get(n))||s.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=i)})),e):e),{})}}const NC=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function RC(e,t){var n,r;void 0===t&&(t={});const{open:o,elements:i,floatingId:s}=e,{enabled:a=!0,role:l="dialog"}=t,c=wC(),d=(null==(n=i.domReference)?void 0:n.id)||c,u=ee.useMemo((()=>{var e,t;return(null==(e=(t=i.floating)?t.hasAttribute(kx)?t:t.querySelector("["+kx+"]")||t:null)?void 0:e.id)||s}),[i.floating,s]),h=null!=(r=NC.get(l))?r:l,p=null!=$C(),f=ee.useMemo((()=>"tooltip"===h||"label"===l?{["aria-"+("label"===l?"labelledby":"describedby")]:o?u:void 0}:{"aria-expanded":o?"true":"false","aria-haspopup":"alertdialog"===h?"dialog":h,"aria-controls":o?u:void 0,..."listbox"===h&&{role:"combobox"},..."menu"===h&&{id:d},..."menu"===h&&p&&{role:"menuitem"},..."select"===l&&{"aria-autocomplete":"none"},..."combobox"===l&&{"aria-autocomplete":"list"}}),[h,u,p,o,d,l]),m=ee.useMemo((()=>{const e={id:u,...h&&{role:h}};return"tooltip"===h||"label"===l?e:{...e,..."menu"===h&&{"aria-labelledby":d}}}),[h,u,d,l]),g=ee.useCallback((e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:u+"-fui-option"}};switch(l){case"select":case"combobox":return{...r,"aria-selected":n}}return{}}),[u,l]);return ee.useMemo((()=>a?{reference:f,floating:m,item:g}:{}),[a,f,m,g])}const DC=ke`
|
|
2289
2309
|
height: auto;
|
|
2290
2310
|
max-height: 32rem;
|
|
2291
2311
|
width: 100%;
|
|
@@ -2299,7 +2319,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2299
2319
|
0 0.25rem 0.375rem -0.25rem #0000001a,
|
|
2300
2320
|
0 0.625rem 0.9375rem -0.1875rem #0000001a;
|
|
2301
2321
|
outline: 0;
|
|
2302
|
-
`,
|
|
2322
|
+
`,PC=ke`
|
|
2303
2323
|
display: flex;
|
|
2304
2324
|
align-items: flex-start;
|
|
2305
2325
|
justify-content: space-between;
|
|
@@ -2312,7 +2332,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2312
2332
|
.ds-map-pop-up-close-button {
|
|
2313
2333
|
margin-top: ${Ve(100)};
|
|
2314
2334
|
}
|
|
2315
|
-
`,
|
|
2335
|
+
`,IC=ke`
|
|
2316
2336
|
height: 100%;
|
|
2317
2337
|
max-height: 25rem;
|
|
2318
2338
|
overflow-y: auto;
|
|
@@ -2320,12 +2340,12 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2320
2340
|
&:focus-visible {
|
|
2321
2341
|
outline-color: ${Ie("primary",700)};
|
|
2322
2342
|
}
|
|
2323
|
-
`,
|
|
2343
|
+
`,zC=ke`
|
|
2324
2344
|
padding: ${Ve(200)} ${Ve(300)};
|
|
2325
2345
|
border-top: ${_e(100)} solid
|
|
2326
2346
|
${Ie("neutral",300)};
|
|
2327
2347
|
min-height: 2.75rem;
|
|
2328
|
-
`,
|
|
2348
|
+
`,VC=(e,t,n,r,o,i)=>ke`
|
|
2329
2349
|
height: ${e}px;
|
|
2330
2350
|
width: ${t}px;
|
|
2331
2351
|
position: absolute;
|
|
@@ -2334,15 +2354,15 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2334
2354
|
${`${o}: -${i-1}px`};
|
|
2335
2355
|
background-color: ${Ie("neutral",100)};
|
|
2336
2356
|
border: ${_e(100)} solid ${Ie("neutral",300)};
|
|
2337
|
-
`,
|
|
2357
|
+
`,HC=({open:e,onOpenChange:t,anchorRef:n,header:r,content:o,footer:i,placement:s="bottom",offset:a=30,closeOnEscape:l=!0,closeOnOutsideClick:c=!1,labels:d})=>{const u=tg("MapPopUp",d),h=se(null),{refs:p,floatingStyles:f,context:m,middlewareData:g,placement:b}=LC({open:e,onOpenChange:t,placement:s,whileElementsMounted:Yx,middleware:[dC(a),(v={fallbackAxisSideDirection:"start"},{...tC(v),options:[v,y]}),uC({padding:8}),hC({element:h})]});var v,y;te.useEffect((()=>{n?.current&&p.setReference(n.current)}),[n,p]);const w=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:s=!0,escapeKey:a=!0,outsidePress:l=!0,outsidePressEvent:c="pointerdown",referencePress:d=!1,referencePressEvent:u="pointerdown",ancestorScroll:h=!1,bubbles:p,capture:f}=t,m=SC(),g=Ax("function"==typeof l?l:()=>!1),b="function"==typeof l?g:l,v=ee.useRef(!1),{escapeKey:y,outsidePress:w}=TC(p),{escapeKey:x,outsidePress:C}=TC(f),k=ee.useRef(!1),$=Ax((e=>{var t;if(!n||!s||!a||"Escape"!==e.key)return;if(k.current)return;const o=null==(t=i.current.floatingContext)?void 0:t.nodeId,l=m?Tx(m.nodesRef.current,o):[];if(!y&&(e.stopPropagation(),l.length>0)){let e=!0;if(l.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),S=Ax((e=>{var t;const n=()=>{var t;$(e),null==(t=Sx(e))||t.removeEventListener("keydown",n)};null==(t=Sx(e))||t.addEventListener("keydown",n)})),M=Ax((e=>{var t;const n=i.current.insideReactTree;i.current.insideReactTree=!1;const s=v.current;if(v.current=!1,"click"===c&&s)return;if(n)return;if("function"==typeof b&&!b(e))return;const a=Sx(e),l="[data-floating-ui-inert]",d=Ex(o.floating).querySelectorAll(l);let u=Lw(a)?a:null;for(;u&&!Ww(u);){const e=Gw(u);if(Ww(e)||!Lw(e))break;u=e}if(d.length&&Lw(a)&&!a.matches("html,body")&&!$x(a,o.floating)&&Array.from(d).every((e=>!$x(u,e))))return;if(Aw(a)&&O){const t=Ww(a),n=Uw(a),r=/auto|scroll/,o=t||r.test(n.overflowX),i=t||r.test(n.overflowY),s=o&&a.clientWidth>0&&a.scrollWidth>a.clientWidth,l=i&&a.clientHeight>0&&a.scrollHeight>a.clientHeight,c="rtl"===n.direction,d=l&&(c?e.offsetX<=a.offsetWidth-a.clientWidth:e.offsetX>a.clientWidth),u=s&&e.offsetY>a.clientHeight;if(d||u)return}const h=null==(t=i.current.floatingContext)?void 0:t.nodeId,p=m&&Tx(m.nodesRef.current,h).some((t=>{var n;return Mx(e,null==(n=t.context)?void 0:n.elements.floating)}));if(Mx(e,o.floating)||Mx(e,o.domReference)||p)return;const f=m?Tx(m.nodesRef.current,h):[];if(f.length>0){let e=!0;if(f.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}r(!1,e,"outside-press")})),E=Ax((e=>{var t;const n=()=>{var t;M(e),null==(t=Sx(e))||t.removeEventListener(c,n)};null==(t=Sx(e))||t.addEventListener(c,n)}));ee.useEffect((()=>{if(!n||!s)return;i.current.__escapeKeyBubbles=y,i.current.__outsidePressBubbles=w;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function l(){window.clearTimeout(e),k.current=!0}function d(){e=window.setTimeout((()=>{k.current=!1}),Fw()?5:0)}const u=Ex(o.floating);a&&(u.addEventListener("keydown",x?S:$,x),u.addEventListener("compositionstart",l),u.addEventListener("compositionend",d)),b&&u.addEventListener(c,C?E:M,C);let p=[];return h&&(Lw(o.domReference)&&(p=Jw(o.domReference)),Lw(o.floating)&&(p=p.concat(Jw(o.floating))),!Lw(o.reference)&&o.reference&&o.reference.contextElement&&(p=p.concat(Jw(o.reference.contextElement)))),p=p.filter((e=>{var t;return e!==(null==(t=u.defaultView)?void 0:t.visualViewport)})),p.forEach((e=>{e.addEventListener("scroll",t,{passive:!0})})),()=>{a&&(u.removeEventListener("keydown",x?S:$,x),u.removeEventListener("compositionstart",l),u.removeEventListener("compositionend",d)),b&&u.removeEventListener(c,C?E:M,C),p.forEach((e=>{e.removeEventListener("scroll",t)})),window.clearTimeout(e)}}),[i,o,a,b,c,n,r,h,s,y,w,$,x,S,M,C,E]),ee.useEffect((()=>{i.current.insideReactTree=!1}),[i,b,c]);const T=ee.useMemo((()=>({onKeyDown:$,...d&&{[MC[u]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."click"!==u&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}})),[$,r,d,u]),O=ee.useMemo((()=>({onKeyDown:$,onMouseDown(){v.current=!0},onMouseUp(){v.current=!0},[EC[c]]:()=>{i.current.insideReactTree=!0}})),[$,c,i]);return ee.useMemo((()=>s?{reference:T,floating:O}:{}),[s,T,O])}(m,{escapeKey:l,outsidePress:c}),x=RC(m,{role:"dialog"}),{getFloatingProps:C}=function(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),r=e.map((e=>null==e?void 0:e.item)),o=ee.useCallback((t=>AC(t,e,"reference")),t),i=ee.useCallback((t=>AC(t,e,"floating")),n),s=ee.useCallback((t=>AC(t,e,"item")),r);return ee.useMemo((()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:s})),[o,i,s])}([w,x]),{x:k,y:$}=g.arrow??{x:null,y:null},S={top:"bottom",right:"left",bottom:"top",left:"right"}[b.split("-")[0]];if(!e)return null;let M=a-1,E=4;return"left"!==S&&"right"!==S||(M=4,E=a-1),be(ye,{children:[be("div",{ref:p.setFloating,style:f,"aria-label":u.dialogAriaLabel,"aria-modal":!0,...C(),css:DC,children:[be("div",{css:PC,children:[r,ve(_b,{onClick:()=>t(!1),className:"ds-map-pop-up-close-button","aria-label":u.closeLabel})]}),ve("div",{css:IC,children:o}),i?ve("div",{css:zC,children:i}):null,ve("div",{ref:h,css:VC(M,E,k,$,S,a)})]}),ve("div",{className:"fixed inset-0 z-[999] bg-black/20 backdrop-blur-[1px]",onClick:()=>c&&t(!1)})]})},BC=ke`
|
|
2338
2358
|
background-color: ${Ie("neutral",100)};
|
|
2339
|
-
`,
|
|
2359
|
+
`,_C=ke`
|
|
2340
2360
|
padding: ${Ve(400)} ${Ve(400)} 0
|
|
2341
2361
|
${Ve(400)};
|
|
2342
2362
|
&:focus-visible {
|
|
2343
2363
|
outline-color: ${Ie("primary",700)};
|
|
2344
2364
|
}
|
|
2345
|
-
`,
|
|
2365
|
+
`,jC=ke`
|
|
2346
2366
|
font-size: ${ze(400)};
|
|
2347
2367
|
font-weight: 700;
|
|
2348
2368
|
line-height: ${He(600)};
|
|
@@ -2352,14 +2372,14 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2352
2372
|
align-items: center;
|
|
2353
2373
|
text-align: left;
|
|
2354
2374
|
gap: 0.625rem;
|
|
2355
|
-
`,
|
|
2375
|
+
`,FC=ke`
|
|
2356
2376
|
font-size: ${ze(200)};
|
|
2357
2377
|
font-weight: 400;
|
|
2358
2378
|
line-height: ${He(400)};
|
|
2359
2379
|
text-align: left;
|
|
2360
2380
|
color: ${Ie("neutral",700)};
|
|
2361
2381
|
margin-bottom: ${Ve(200)};
|
|
2362
|
-
`,
|
|
2382
|
+
`,qC=ke`
|
|
2363
2383
|
width: 100%;
|
|
2364
2384
|
padding: ${Ve(400)} 0;
|
|
2365
2385
|
border-bottom: ${_e(100)} solid
|
|
@@ -2368,32 +2388,32 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2368
2388
|
&:last-of-type {
|
|
2369
2389
|
border-bottom: none;
|
|
2370
2390
|
}
|
|
2371
|
-
`,
|
|
2391
|
+
`,WC=ke`
|
|
2372
2392
|
display: flex;
|
|
2373
2393
|
align-items: flex-start;
|
|
2374
2394
|
justify-content: space-between;
|
|
2375
|
-
`,
|
|
2395
|
+
`,UC=ke`
|
|
2376
2396
|
display: flex;
|
|
2377
2397
|
flex-direction: column;
|
|
2378
|
-
`,
|
|
2398
|
+
`,KC=e=>ke`
|
|
2379
2399
|
font-size: ${ze(400)};
|
|
2380
2400
|
font-weight: 400;
|
|
2381
2401
|
line-height: ${He(600)};
|
|
2382
2402
|
text-align: left;
|
|
2383
2403
|
color: ${Ie("neutral",e?500:800)};
|
|
2384
|
-
`,
|
|
2404
|
+
`,GC=e=>ke`
|
|
2385
2405
|
font-size: ${ze(300)};
|
|
2386
2406
|
font-weight: 400;
|
|
2387
2407
|
line-height: ${He(500)};
|
|
2388
2408
|
text-align: left;
|
|
2389
2409
|
color: ${Ie("neutral",e?500:700)};
|
|
2390
|
-
`,
|
|
2410
|
+
`,ZC=({name:e,label:t,caption:n,showInfoButton:o=!0,infoButtonLabel:i,variant:s="switch",disabled:a,onInfoClick:l,isDefaultSelected:c=!1,onChange:d,labels:u})=>{const h=tg("LayerItem",u),p="switch"===s;return be("div",{css:qC,children:[be("div",p?{css:WC,children:[be("div",{css:UC,children:[ve("p",{css:KC(a),"aria-label":t,"aria-disabled":a,children:t}),ve("p",{"aria-label":n,css:GC(a),children:n})]}),ve(dy,{"aria-label":`${t}, ${n}`,name:e,disabled:a,defaultChecked:c,onChange:d})]}:{style:{display:"flex",flexDirection:"column"},children:[ve(Kv,{value:e,disabled:a,fontSize:"1rem",color:"var(--chakra-colors-neutral-800)",children:t}),ve("p",{style:{marginLeft:"1.75rem"},css:GC(a),children:n})]}),o?ve(r,{display:"flex",justifyContent:"flex-start",marginTop:"0.5rem",marginLeft:p?0:"1.75rem",children:ve(ng,{variant:"secondary",label:i??h.aboutDataLabel,rightIcon:ve(cg,{}),size:"small",onClick:l,disabled:a})}):null]})},JC=({label:e,caption:t,value:n,layerItems:o,onChangeForRadioVariant:i,labels:s})=>{const a=tg("LayerGroup",s),[l,c]=ae({}),[d]=ae((e=>{const t=e.find((e=>"radio"===e.variant&&e.isDefaultSelected));return t?.name})(o));ce((()=>{let t={...l};o.forEach((n=>{n.isDefaultSelected&&(t={...t,["radio"===n.variant?e:n.name]:n.isDefaultSelected})})),c(t)}),[]);const u=(e,t,n,r)=>{const o={...l,[e]:t};c(o),n&&n(e,t,r)},h=Object.values(l).filter((e=>!0===e)).length,p=a.groupAriaLabel(e,h,t);return be(A.Item,{value:n,width:"100%",children:[be(A.ItemTrigger,{css:_C,alignItems:"flex-start","aria-label":p,children:[be(r,{width:"full",display:"flex",flexDirection:"column",alignItems:"flex-start",children:[be("span",{css:jC,children:[e,ve(Vy,{label:a.activeTagLabel(h),size:"small",variant:h>0?"success":"info-grey"})]}),ve("div",{css:FC,children:t})]}),ve(A.ItemIndicator,{display:"flex",children:ve(dg,{color:"var(--chakra-colors-neutral-700)",height:"1rem",width:"1rem"})})]}),ve(A.ItemContent,{paddingLeft:"1rem",paddingRight:"1rem",children:ve(Gv,{name:e,value:d,customGap:"0",onChange:(e,t)=>u(e,!!t,i,t),children:o.map((e=>ve(ZC,{...e,onChange:(t,n)=>u(t,n,e.onChange)},e.label)))})})]})},XC=({children:e,defaultValue:t,...n})=>ve("div",{css:BC,style:{width:"100%"},children:ve(A.Root,{css:{},defaultValue:t,multiple:!0,...n,children:e})}),YC=ke`
|
|
2391
2411
|
margin-bottom: ${Ve(400)};
|
|
2392
2412
|
border: ${_e(100)} solid ${Ie("neutral",300)};
|
|
2393
2413
|
border-radius: ${Be(300)};
|
|
2394
2414
|
box-shadow: 0 1px 0.125rem 0 #0000000d;
|
|
2395
2415
|
background-color: ${Ie("neutral",100)};
|
|
2396
|
-
`,
|
|
2416
|
+
`,QC=ke`
|
|
2397
2417
|
padding: 0.375rem ${Ve(200)};
|
|
2398
2418
|
align-items: center;
|
|
2399
2419
|
background-color: ${Ie("neutral",100)};
|
|
@@ -2417,12 +2437,12 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2417
2437
|
0 0 0 0.125rem ${Ie("neutral",100)},
|
|
2418
2438
|
rgba(0, 0, 0, 0.05) 0 0.125rem 0.125rem 0.25rem;
|
|
2419
2439
|
}
|
|
2420
|
-
`,
|
|
2440
|
+
`,ek=ke`
|
|
2421
2441
|
font-size: ${ze(200)};
|
|
2422
2442
|
font-weight: 700;
|
|
2423
2443
|
line-height: ${He(400)};
|
|
2424
2444
|
color: ${Ie("neutral",800)};
|
|
2425
|
-
`,
|
|
2445
|
+
`,tk=ke`
|
|
2426
2446
|
padding: ${Ve(300)} ${Ve(200)};
|
|
2427
2447
|
display: flex;
|
|
2428
2448
|
flex-direction: column;
|
|
@@ -2439,7 +2459,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2439
2459
|
margin-bottom: 0;
|
|
2440
2460
|
}
|
|
2441
2461
|
}
|
|
2442
|
-
`,
|
|
2462
|
+
`,nk=({label:e,children:t,openedByDefault:n})=>ve("div",{children:ve(A.Root,{defaultValue:n?[e]:[],multiple:!0,children:be(A.Item,{css:YC,value:e,children:[be(A.ItemTrigger,{css:QC,children:[ve(r,{width:"full",display:"flex",flexDirection:"column",alignItems:"flex-start",children:ve("p",{css:ek,children:e})}),ve(A.ItemIndicator,{display:"flex",children:ve(dg,{color:"var(--chakra-colors-neutral-700)",height:"1rem",width:"1rem"})})]}),ve(A.ItemContent,{css:tk,children:pe.map(t,(e=>ve("div",{className:"ds-layer-parameters-item-child",children:e})))})]})})}),rk=ke`
|
|
2443
2463
|
padding: ${Ve(300)};
|
|
2444
2464
|
padding-bottom: ${Ve(500)};
|
|
2445
2465
|
display: flex;
|
|
@@ -2447,7 +2467,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2447
2467
|
border-bottom: ${_e(100)} solid
|
|
2448
2468
|
${Ie("neutral",300)};
|
|
2449
2469
|
background-color: ${Ie("neutral",100)};
|
|
2450
|
-
`,
|
|
2470
|
+
`,ok=ke`
|
|
2451
2471
|
display: flex;
|
|
2452
2472
|
flex-direction: column;
|
|
2453
2473
|
|
|
@@ -2456,44 +2476,44 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2456
2476
|
fill: ${Ie("neutral",700)} !important;
|
|
2457
2477
|
}
|
|
2458
2478
|
}
|
|
2459
|
-
`,
|
|
2479
|
+
`,ik=ke`
|
|
2460
2480
|
display: flex;
|
|
2461
2481
|
align-items: flex-start;
|
|
2462
2482
|
justify-content: space-between;
|
|
2463
2483
|
gap: ${Ve(300)};
|
|
2464
2484
|
margin-bottom: ${Ve(400)};
|
|
2465
|
-
`,
|
|
2485
|
+
`,sk=ke`
|
|
2466
2486
|
font-size: ${ze(400)};
|
|
2467
2487
|
line-height: ${He(600)};
|
|
2468
2488
|
font-weight: 400;
|
|
2469
2489
|
text-align: left;
|
|
2470
2490
|
color: ${Ie("neutral",900)};
|
|
2471
|
-
`,
|
|
2491
|
+
`,ak=ke`
|
|
2472
2492
|
font-size: ${ze(300)};
|
|
2473
2493
|
line-height: ${He(500)};
|
|
2474
2494
|
font-weight: 400;
|
|
2475
2495
|
text-align: left;
|
|
2476
2496
|
color: ${Ie("neutral",700)};
|
|
2477
|
-
`,
|
|
2497
|
+
`,lk=ke`
|
|
2478
2498
|
display: flex;
|
|
2479
2499
|
justify-content: space-between;
|
|
2480
2500
|
|
|
2481
2501
|
button {
|
|
2482
2502
|
width: 46%;
|
|
2483
2503
|
}
|
|
2484
|
-
`,
|
|
2504
|
+
`,ck=ke`
|
|
2485
2505
|
width: 14.625rem;
|
|
2486
2506
|
border: ${_e(100)} solid ${Ie("neutral",600)};
|
|
2487
2507
|
border-radius: ${Be(300)};
|
|
2488
|
-
`,
|
|
2508
|
+
`,dk=ke`
|
|
2489
2509
|
padding: ${Ve(300)};
|
|
2490
|
-
`,
|
|
2510
|
+
`,uk=ke`
|
|
2491
2511
|
font-size: ${ze(300)};
|
|
2492
2512
|
line-height: ${He(500)};
|
|
2493
2513
|
font-weight: 400;
|
|
2494
2514
|
text-align: left;
|
|
2495
2515
|
color: ${Ie("neutral",900)};
|
|
2496
|
-
`,
|
|
2516
|
+
`,hk=ke`
|
|
2497
2517
|
display: flex;
|
|
2498
2518
|
align-items: center;
|
|
2499
2519
|
gap: ${Ve(300)};
|
|
@@ -2514,20 +2534,20 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2514
2534
|
margin-top: 1.125rem;
|
|
2515
2535
|
width: 100%;
|
|
2516
2536
|
}
|
|
2517
|
-
`,
|
|
2537
|
+
`,pk=({defaultValue:e,onOpacityChanged:t,labels:n})=>{const r=tg("OpacityControl",n),[o,i]=ae(e);return be(u.Root,{positioning:{placement:"bottom-end"},children:[ve(u.Trigger,{asChild:!0,children:ve(ng,{label:r.opacityButtonLabel,size:"small",variant:"secondary",leftIcon:ve(cg,{})})}),ve(u.Positioner,{children:ve(u.Content,{css:ck,children:be(u.Body,{css:dk,children:[ve("p",{css:uk,children:r.opacityHeading}),be("div",{css:hk,children:[be("div",{style:{position:"relative"},children:[ve(Ab,{"aria-label":r.opacityAriaLabel,min:"0",max:"100",value:o,onChange:e=>{const n=e.target.value||"0";let r=parseInt(n,10);r=Number.isNaN(r)?0:r,r=r<0?0:r,r=r>100?100:r,i(r),t&&t(r)},className:"ds-opacity-control-text-input",onClick:e=>e.target.select()}),ve("p",{style:{position:"absolute",top:"50%",right:"0.3125rem",transform:"translateY(-50%)",margin:0},children:r.percentSuffix})]}),ve(ly,{min:0,max:100,value:[o],onValueChangeEnd:({value:e})=>{i(e[0]),t&&t(e[0])}})]})]})})})]})},fk=({layerName:e,dataUnit:t,onDrag:n,onUpClick:r,onDownClick:o,onRemoveClick:i,children:s,onInfoClick:a,onOpacityChanged:l,labels:c})=>{const d=tg("LegendItem",c);return be("div",{css:rk,children:[ve("div",{css:ok,children:be("div",{style:{display:"flex",flexDirection:"column",gap:"0.75rem"},children:[ve(og,{icon:ve(dg,{rotate:"180"}),"aria-label":d.upLabel,onClick:r}),ve(og,{icon:ve(dg,{}),"aria-label":d.downLabel,onClick:o})]})}),be("div",{style:{width:"100%"},children:[be("div",{css:ik,children:[be("div",{children:[ve("h3",{css:sk,children:e}),ve("p",{css:ak,children:t})]}),ve(ng,{label:d.removeLabel,size:"small",variant:"secondary",rightIcon:ve(hg,{}),onClick:i})]}),s,be("div",{css:lk,children:[ve(ng,{label:d.aboutDataLabel,size:"small",variant:"secondary",leftIcon:ve(cg,{}),onClick:a}),ve(pk,{defaultValue:80,onOpacityChanged:l})]})]})]})},mk=e=>ke`
|
|
2518
2538
|
width: ${Ve(500)};
|
|
2519
2539
|
height: ${Ve(500)};
|
|
2520
2540
|
border-radius: 50%;
|
|
2521
2541
|
background-color: ${e};
|
|
2522
2542
|
border: ${_e(100)} solid ${Ie("neutral",400)};
|
|
2523
|
-
`,
|
|
2543
|
+
`,gk=e=>ke`
|
|
2524
2544
|
width: ${Ve(500)};
|
|
2525
2545
|
height: ${Ve(200)};
|
|
2526
2546
|
border-radius: ${Be(200)};
|
|
2527
2547
|
background-color: ${e};
|
|
2528
2548
|
border: ${_e(100)} solid ${Ie("neutral",400)};
|
|
2529
2549
|
margin-top: 0.375rem;
|
|
2530
|
-
`,
|
|
2550
|
+
`,bk=e=>ke`
|
|
2531
2551
|
width: ${Ve(500)};
|
|
2532
2552
|
height: ${Ve(500)};
|
|
2533
2553
|
border-radius: 50%;
|
|
@@ -2540,26 +2560,26 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2540
2560
|
width: 0.625rem;
|
|
2541
2561
|
height: 0.625rem;
|
|
2542
2562
|
}
|
|
2543
|
-
`,
|
|
2563
|
+
`,vk=ke`
|
|
2544
2564
|
width: 100%;
|
|
2545
2565
|
display: flex;
|
|
2546
2566
|
justify-content: space-between;
|
|
2547
2567
|
gap: ${Ve(200)};
|
|
2548
2568
|
margin-bottom: ${Ve(400)};
|
|
2549
|
-
`,
|
|
2569
|
+
`,yk=ke`
|
|
2550
2570
|
display: flex;
|
|
2551
2571
|
gap: ${Ve(200)};
|
|
2552
|
-
`,
|
|
2572
|
+
`,wk=ke`
|
|
2553
2573
|
font-size: ${ze(300)};
|
|
2554
2574
|
line-height: ${He(500)};
|
|
2555
2575
|
font-weight: 400;
|
|
2556
2576
|
color: ${Ie("neutral",800)};
|
|
2557
|
-
`,
|
|
2577
|
+
`,xk=ke`
|
|
2558
2578
|
font-size: ${ze(200)};
|
|
2559
2579
|
line-height: ${He(400)};
|
|
2560
2580
|
font-weight: 400;
|
|
2561
2581
|
color: ${Ie("neutral",700)};
|
|
2562
|
-
`,
|
|
2582
|
+
`,Ck=ke`
|
|
2563
2583
|
button {
|
|
2564
2584
|
height: 1.5625rem;
|
|
2565
2585
|
font-size: ${ze(200)};
|
|
@@ -2568,12 +2588,12 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2568
2588
|
color: ${Ie("neutral",600)};
|
|
2569
2589
|
padding: 0 0.625rem;
|
|
2570
2590
|
}
|
|
2571
|
-
`,
|
|
2591
|
+
`,kk=({type:e,label:t,caption:n,color:r,onActionClick:o,showActionButton:i,pointIcon:s=ve(Tg,{color:"#006D2C"}),ariaLabelType:a="",labels:l})=>{const c=tg("QualitativeAttribute",l),[d,u]=ae(!0),h=he(),p=he(),f="raster"===e,m="line"===e,g="point"===e,b=he(),v=oe((()=>{const e=d?c.visibleText:c.hiddenText;let r=a??`${a},`;return m&&(r=c.linePrefix),c.currentlyTemplate(String(t),n,r,e)}),[d,e,t,n,a,c]),y=d?c.hideLabel:c.showLabel;return be("div",{css:vk,children:[ve("p",{id:b,css:{position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,clip:"rect(0 0 0 0)",overflow:"hidden"},children:v}),be("div",{css:yk,children:[be("div",{children:[f&&ve("div",{css:mk(r)}),m&&ve("div",{css:gk(r)}),g&&ve("div",{css:bk(r),children:s})]}),be("div",{children:[ve("p",{id:h,css:wk,children:t}),n?ve("p",{id:p,css:xk,children:n}):null]})]}),o&&i?ve("div",{css:Ck,children:ve(ng,{type:"button",variant:"borderless",label:String(y),rightIcon:ve(d?mg:fg,{}),"aria-pressed":d,"aria-labelledby":`${b} ${h}`,onClick:()=>{u((e=>!e)),o?.()}})}):null]})},$k=ke`
|
|
2572
2592
|
width: 100%;
|
|
2573
2593
|
display: flex;
|
|
2574
2594
|
flex-direction: column;
|
|
2575
2595
|
margin-bottom: ${Ve(400)};
|
|
2576
|
-
`,
|
|
2596
|
+
`,Sk=ke`
|
|
2577
2597
|
height: ${Ve(500)};
|
|
2578
2598
|
width: 100%;
|
|
2579
2599
|
margin-bottom: ${Ve(200)};
|
|
@@ -2591,34 +2611,34 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2591
2611
|
border-top-right-radius: 0.1875rem;
|
|
2592
2612
|
border-bottom-right-radius: 0.1875rem;
|
|
2593
2613
|
}
|
|
2594
|
-
|
|
2614
|
+
`,Mk=ke`
|
|
2595
2615
|
display: flex;
|
|
2596
2616
|
justify-content: space-between;
|
|
2597
2617
|
align-items: flex-start;
|
|
2598
|
-
`,
|
|
2618
|
+
`,Ek=ke`
|
|
2599
2619
|
width: 100%;
|
|
2600
2620
|
font-size: ${ze(200)};
|
|
2601
2621
|
line-height: ${He(400)};
|
|
2602
2622
|
font-weight: 400;
|
|
2603
2623
|
color: ${Ie("neutral",800)};
|
|
2604
2624
|
text-align: center;
|
|
2605
|
-
`,
|
|
2625
|
+
`,Tk=ke`
|
|
2606
2626
|
font-size: ${ze(200)};
|
|
2607
2627
|
line-height: ${He(400)};
|
|
2608
2628
|
font-weight: 400;
|
|
2609
2629
|
color: ${Ie("neutral",700)};
|
|
2610
2630
|
text-align: center;
|
|
2611
|
-
`,
|
|
2631
|
+
`,Ok=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(", ")})`},Lk=({colors:e,values:t,subLabels:n,isGradient:r})=>{return be("div",{css:$k,children:[ve("div",r?{css:(o=Ok(e),ke`
|
|
2612
2632
|
height: ${Ve(500)};
|
|
2613
2633
|
width: 100%;
|
|
2614
2634
|
margin-bottom: ${Ve(200)};
|
|
2615
2635
|
border: ${_e(100)} solid ${Ie("neutral",300)};
|
|
2616
2636
|
border-radius: ${Be(300)};
|
|
2617
2637
|
${o?`background: ${o};`:""}
|
|
2618
|
-
`)}:{css:
|
|
2638
|
+
`)}:{css:Sk,children:e?.map(((e,n)=>ve("div",{"data-test":`${e}-${t?.[n]}`,style:{backgroundColor:e,width:"100%",height:"100%"}},`${e}-${t?.[n]}`)))}),ve("div",{css:Mk,children:t?.map((e=>ve("div",{style:{width:r?"auto":`calc(100% / ${t.length})`,display:"flex",justifyContent:"center"},children:ve("p",{css:Ek,children:e})},e)))}),n&&n.length?ve("div",{css:Mk,children:n.map((e=>ve("div",{style:{width:r?"auto":`calc(100% / ${t.length})`,display:"flex",justifyContent:"center"},children:ve("p",{css:Tk,style:{width:"100%"},children:e})},e)))}):null]});var o},Ak=ke`
|
|
2619
2639
|
display: flex;
|
|
2620
2640
|
flex-direction: column;
|
|
2621
|
-
`,
|
|
2641
|
+
`,Nk=ke`
|
|
2622
2642
|
display: flex;
|
|
2623
2643
|
gap: ${Ve(400)};
|
|
2624
2644
|
align-items: center;
|
|
@@ -2626,46 +2646,46 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2626
2646
|
.ds-select-input-container {
|
|
2627
2647
|
margin-bottom: 0rem;
|
|
2628
2648
|
}
|
|
2629
|
-
`,
|
|
2649
|
+
`,Rk=ke`
|
|
2630
2650
|
font-size: ${ze(500)};
|
|
2631
2651
|
line-height: ${He(700)};
|
|
2632
2652
|
font-weight: 400;
|
|
2633
2653
|
color: ${Ie("neutral",700)};
|
|
2634
|
-
`,
|
|
2654
|
+
`,Dk=ke`
|
|
2635
2655
|
font-size: ${ze(500)};
|
|
2636
2656
|
line-height: ${He(700)};
|
|
2637
2657
|
font-weight: 400;
|
|
2638
2658
|
color: ${Ie("neutral",700)};
|
|
2639
|
-
`,
|
|
2659
|
+
`,Pk=({pageSize:e,currentPage:t,totalItems:n,onPageSizeChange:r,showItemCountText:o,labels:i})=>{const s=tg("ItemCount",i),a=0===n?0:(t-1)*e+1,l=0===n?0:Math.min(a+e-1,n);return be(ye,{children:[ve("div",{css:Ak,children:be("div",{css:Nk,children:[ve("div",{style:{width:"5rem"},children:ve(_y,{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})}),ve("p",{css:Rk,children:s.perPageLabel})]})}),o?ve("p",{css:Dk,children:s.showingLabel(a,l,n)}):null]})},Ik=e=>ke`
|
|
2640
2660
|
border: ${_e(100)} solid ${Ie("neutral",300)};
|
|
2641
2661
|
${e?"border: none;":""}
|
|
2642
|
-
`,
|
|
2662
|
+
`,zk=e=>ke`
|
|
2643
2663
|
color: ${Ie("neutral",e?400:700)};
|
|
2644
2664
|
line-height: ${He(500)};
|
|
2645
2665
|
white-space: nowrap;
|
|
2646
2666
|
overflow: hidden;
|
|
2647
2667
|
text-overflow: ellipsis;
|
|
2648
|
-
`,
|
|
2668
|
+
`,Vk=ke`
|
|
2649
2669
|
font-weight: 400;
|
|
2650
2670
|
color: ${Ie("neutral",700)};
|
|
2651
2671
|
white-space: nowrap;
|
|
2652
2672
|
overflow: hidden;
|
|
2653
2673
|
text-overflow: ellipsis;
|
|
2654
|
-
`,
|
|
2674
|
+
`,Hk=ke`
|
|
2655
2675
|
color: ${Ie("neutral",700)};
|
|
2656
2676
|
text-align: right;
|
|
2657
2677
|
font-weight: 700;
|
|
2658
2678
|
white-space: nowrap;
|
|
2659
2679
|
overflow: hidden;
|
|
2660
2680
|
text-overflow: ellipsis;
|
|
2661
|
-
`,
|
|
2681
|
+
`,Bk=e=>ke`
|
|
2662
2682
|
width: ${Ve(400)};
|
|
2663
2683
|
height: ${Ve(400)};
|
|
2664
2684
|
|
|
2665
2685
|
path {
|
|
2666
2686
|
fill: ${Ie("neutral",e?400:700)};
|
|
2667
2687
|
}
|
|
2668
|
-
`,
|
|
2688
|
+
`,_k=ke`
|
|
2669
2689
|
display: flex;
|
|
2670
2690
|
align-items: center;
|
|
2671
2691
|
justify-content: space-between;
|
|
@@ -2675,7 +2695,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2675
2695
|
${Ie("neutral",200)};
|
|
2676
2696
|
width: 100%;
|
|
2677
2697
|
text-align: left;
|
|
2678
|
-
`,
|
|
2698
|
+
`,jk=ke`
|
|
2679
2699
|
display: flex;
|
|
2680
2700
|
align-items: center;
|
|
2681
2701
|
justify-content: space-between;
|
|
@@ -2711,19 +2731,19 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2711
2731
|
&:disabled {
|
|
2712
2732
|
background-color: ${Ie("neutral",200)};
|
|
2713
2733
|
}
|
|
2714
|
-
`,
|
|
2734
|
+
`,Fk=({id:e,label:t,caption:n,icon:o,value:s,variant:a="data",onItemClick:l,isExpanded:c=!1,ariaLabel:d,disabled:u=!1,isHighlighted:p=!1})=>{const f=("navigation"===a||"select"===a)&&!!l,m=f?N.button:N.div,g="string"==typeof t||"number"==typeof t||"bigint"==typeof t?String(t):"",b="string"==typeof s||"number"==typeof s||"bigint"==typeof s?String(s):"",v=d||("data"===a&&b?`${g}, ${b}`:g);return be(m,{id:e,css:["data"===a?_k:jk,p&&{backgroundColor:Ie("neutral",200)}],onClick:f?l:void 0,tabIndex:f?0:void 0,onKeyDown:e=>{f&&("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),l?.()))},role:f?"button":void 0,"aria-expanded":f?c:void 0,"aria-label":v,disabled:u,"data-selected":p||void 0,"data-highlighted":p||void 0,children:[be(R,{gap:3,flex:"1",overflow:"hidden",children:[o,be(r,{flex:"1",minWidth:0,children:[ve(h,{fontWeight:"data"===a?"400":"700",css:zk(u),children:t}),n&&ve(h,{css:Vk,children:n})]})]}),"data"===a&&s&&ve(h,{css:Hk,children:s}),"navigation"===a&&ve(i,{as:ug,boxSize:4,"aria-hidden":"true",css:Bk(u)})]})},qk=({items:e,noBorder:t,highlightedIndex:n})=>ve(r,{css:Ik(t),children:e.map(((e,t)=>ve(Fk,{id:e.id,icon:e.icon,label:e.label,caption:e.caption,value:e.value,variant:e.variant??"data",onItemClick:e.onItemClick,isHighlighted:t===n||e.isHighlighted},e.id??e.label)))}),Wk=ke`
|
|
2715
2735
|
background: transparent;
|
|
2716
2736
|
svg {
|
|
2717
2737
|
path {
|
|
2718
2738
|
fill: ${Ie("primary",500)};
|
|
2719
2739
|
}
|
|
2720
2740
|
}
|
|
2721
|
-
`,
|
|
2741
|
+
`,Uk=ke`
|
|
2722
2742
|
font-size: ${ze(400)};
|
|
2723
2743
|
line-height: ${He(600)};
|
|
2724
2744
|
font-weight: 700;
|
|
2725
2745
|
color: ${Ie("neutral",900)};
|
|
2726
|
-
`,
|
|
2746
|
+
`,Kk=ke`
|
|
2727
2747
|
span {
|
|
2728
2748
|
height: ${Ve(500)};
|
|
2729
2749
|
width: ${Ve(500)};
|
|
@@ -2733,7 +2753,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2733
2753
|
background-color: transparent;
|
|
2734
2754
|
}
|
|
2735
2755
|
}
|
|
2736
|
-
`,
|
|
2756
|
+
`,Gk=ke`
|
|
2737
2757
|
font-size: ${ze(400)};
|
|
2738
2758
|
line-height: ${He(600)};
|
|
2739
2759
|
font-weight: 400;
|
|
@@ -2743,7 +2763,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2743
2763
|
color: ${Ie("neutral",900)};
|
|
2744
2764
|
font-weight: 700;
|
|
2745
2765
|
}
|
|
2746
|
-
`,
|
|
2766
|
+
`,Zk=({totalItems:e,pageSize:t,currentPage:n,variant:r="default",onPageChange:o,labels:i})=>{const s=tg("Pagination",i),a="compact"===r||"compact-with-buttons"===r,l="compact-with-buttons"===r;return ve("div",{"aria-label":s.paginationLabel,children:ve(D.Root,{count:e,pageSize:t,defaultPage:n,onPageChange:e=>o&&o(e.page),siblingCount:1,children:be(P,{gap:"2",size:"sm",variant:"ghost",css:Kk,children:[ve(D.PrevTrigger,{asChild:!0,children:l?ve(ng,{variant:"secondary",label:s.previousLabel,size:"small",leftIcon:ve(dg,{style:{rotate:"90deg"},color:"var(--chakra-colors-primary-500)"})}):ve(og,{css:Wk,style:{rotate:"90deg"},icon:ve(dg,{}),"aria-label":s.previousPageLabel})}),a?ve(D.PageText,{css:Uk}):ve(D.Items,{render:e=>ve(og,{css:Gk,"aria-label":s.pageLabel(e.value),icon:ve("p",{children:e.value})})}),ve(D.NextTrigger,{asChild:!0,children:l?ve(ng,{variant:"secondary",label:s.nextLabel,size:"small",rightIcon:ve(dg,{style:{rotate:"270deg"},color:"var(--chakra-colors-primary-500)"})}):ve(og,{css:Wk,style:{rotate:"270deg"},icon:ve(dg,{}),"aria-label":s.nextPageLabel})})]})})})},Jk=(e,t)=>ke`
|
|
2747
2767
|
border: ${"full-width"===e?"none":`${_e(100)} solid ${Ie("neutral",300)}`};
|
|
2748
2768
|
border-radius: ${Be(200)};
|
|
2749
2769
|
box-shadow: ${"full-width"===e?"none":`0 0 0 0.0625rem ${Ie("neutral",300)}`};
|
|
@@ -2801,7 +2821,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2801
2821
|
[data-sticky-last='true'] {
|
|
2802
2822
|
border-inline-end: 0.0625rem solid ${Ie("neutral",400)};
|
|
2803
2823
|
}
|
|
2804
|
-
`,
|
|
2824
|
+
`,Xk=e=>ke`
|
|
2805
2825
|
tr {
|
|
2806
2826
|
background-color: ${Ie("neutral","full-width"===e?100:200)};
|
|
2807
2827
|
|
|
@@ -2810,14 +2830,14 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2810
2830
|
box-shadow: inset 0 -0.0625rem 0 ${Ie("neutral",300)};
|
|
2811
2831
|
}
|
|
2812
2832
|
}
|
|
2813
|
-
`,
|
|
2833
|
+
`,Yk=ke`
|
|
2814
2834
|
font-size: ${ze(400)};
|
|
2815
2835
|
line-height: ${He(600)};
|
|
2816
2836
|
font-weight: 700;
|
|
2817
2837
|
color: ${Ie("neutral",800)};
|
|
2818
2838
|
display: flex;
|
|
2819
2839
|
align-items: center;
|
|
2820
|
-
`,
|
|
2840
|
+
`,Qk=ke`
|
|
2821
2841
|
height: ${He(600)};
|
|
2822
2842
|
width: 0.625rem;
|
|
2823
2843
|
display: flex;
|
|
@@ -2839,20 +2859,20 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2839
2859
|
}
|
|
2840
2860
|
}
|
|
2841
2861
|
}
|
|
2842
|
-
`,
|
|
2862
|
+
`,e$=e=>ke`
|
|
2843
2863
|
svg {
|
|
2844
2864
|
path {
|
|
2845
2865
|
fill: ${Ie("accessible",e?"controls-on-neutral-lights":100)} !important;
|
|
2846
2866
|
}
|
|
2847
2867
|
}
|
|
2848
|
-
`,
|
|
2868
|
+
`,t$=ke`
|
|
2849
2869
|
margin-top: ${Ve(300)};
|
|
2850
2870
|
display: flex;
|
|
2851
2871
|
justify-content: space-between;
|
|
2852
2872
|
align-items: center;
|
|
2853
|
-
`,
|
|
2873
|
+
`,n$=ke`
|
|
2854
2874
|
margin-top: 0.5625rem;
|
|
2855
|
-
`,
|
|
2875
|
+
`,r$=e=>ke`
|
|
2856
2876
|
tr {
|
|
2857
2877
|
height: ${Ve(1200)};
|
|
2858
2878
|
|
|
@@ -2879,18 +2899,18 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2879
2899
|
}
|
|
2880
2900
|
}
|
|
2881
2901
|
}
|
|
2882
|
-
`,
|
|
2902
|
+
`,o$=e=>ke`
|
|
2883
2903
|
overflow: auto;
|
|
2884
2904
|
height: ${e};
|
|
2885
2905
|
width: 100%;
|
|
2886
|
-
`,
|
|
2906
|
+
`,i$=ke`
|
|
2887
2907
|
height: 30rem;
|
|
2888
2908
|
display: flex;
|
|
2889
2909
|
align-items: center;
|
|
2890
2910
|
justify-content: center;
|
|
2891
|
-
`,
|
|
2911
|
+
`,s$="__checkbox__",a$=(e,t)=>{const n=e[t]?.width;return n?{width:n,minWidth:n}:{}},l$=(e,t,n)=>{const r=e[t];return void 0===r?{}:{"data-sticky":"start","data-sticky-last":t===n?"true":void 0,left:`${r}px`}},c$=(e,t,n)=>{if(n||!t.key)return e;const{key:r,order:o}=t,i="asc"===o;return[...e].sort(((e,t)=>((e,t,n)=>{if(null==e&&null==t)return 0;if(null==e)return 1;if(null==t)return-1;if("string"==typeof e&&"string"==typeof t)return n?e.localeCompare(t):t.localeCompare(e);if("number"==typeof e&&"number"==typeof t)return n?e-t:t-e;const r=String(e),o=String(t);return n?r.localeCompare(o):o.localeCompare(r)})(e?.[r],t?.[r],i)))},d$=({columns:e,data:t=[],renderRow:n,striped:r,stickyHeader:i,pagination:s,selectable:a,selectedRows:l,variant:c="default",onSortColumn:d,onPageSizeChange:u,onPageChange:h,onAllItemsSelected:p,onRowSelected:f,loading:m,height:g,labels:b})=>{const v=tg("Table",b),[y,w]=ae({key:"",order:""}),x=se({}),C=se(null),[k,$]=ae({}),[S,M]=ae([]),{totalItems:E=t.length,currentPage:T=1,pageSize:O=10,showItemCount:L,showItemCountText:A}=s||{},N=Boolean(d),R=oe((()=>c$(t,y,N)),[t,N,y]),D=(e,t)=>{w({key:e,order:t}),d&&d({key:e,order:t})},P=l??S,z=R.length>0&&P.length===R.length,V=P.length>0&&P.length<R.length,H=oe((()=>(e=>e.reduce(((e,t)=>(e[t.key]=t,e)),{}))(e)),[e]),B=oe((()=>(e=>e.filter((e=>e.sticky)).map((e=>e.key)))(e)),[e]),_=(e=>e.length>0?e[e.length-1]:void 0)([...void 0!==k[s$]?[s$]:[],...B]),j=ue((()=>{const t=((e,t,n)=>{const r={};let o=0;const i=e.filter((e=>e.sticky));return n&&i.length>0&&(r[s$]=0,o+=n.offsetWidth),i.forEach((e=>{r[e.key]=o,o+=t[e.key]?.offsetWidth||0})),r})(e,x.current,a?C.current:void 0);$(t)}),[e,a]);ce((()=>{j()}),[j,t.length]),ce((()=>{const e=()=>{j()};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[j]),ce((()=>{void 0===l&&M((e=>((e,t)=>{const n=e.filter((e=>t.some((t=>t.id===e.id)))),r=n.length===e.length&&n.every(((t,n)=>t.id===e[n]?.id));return r?e:n})(e,t)))}),[t,l]);const F=e=>l$(k,e.key,_),q=e=>((e,t,n,r)=>({...a$(e,n),...l$(t,n,r)}))(H,k,e,_),W=e=>((e,t)=>e.some((e=>e.id===t.id)))(P,e),U=(({columns:e,selectable:t,isRowSelected:n,onRowSelected:r,stickyOffsets:o={},lastStickyColumnKey:i,getSelectRowLabel:s})=>(a,l)=>{const{id:c,name:d}=a;return Y(I.Row,{className:l?.className,children:[t?X(I.Cell,{...l$(o,s$,i),children:X(Ov,{name:`checkbox-${c}`,"aria-label":s(d,c),checked:n(a),onCheckedChange:({checked:e})=>{r(a,e)}})}):null,e.map((e=>X(I.Cell,{...l?.getCellProps(e.key),children:e.cell?e.cell(a):a?.[e.key]},e.key)))]})})({columns:e,selectable:a,isRowSelected:W,onRowSelected:(e,t)=>{void 0===l&&M((n=>((e,t,n)=>n?e.some((e=>e.id===t.id))?e:[...e,t]:e.filter((e=>e.id!==t.id)))(n,e,t))),f&&f(e,t)},stickyOffsets:k,lastStickyColumnKey:_,getSelectRowLabel:(e,t)=>v.selectRowLabel(e,t)}),K=n||U;return be("div",{children:[ve("div",{css:g?o$(g):void 0,children:be(I.Root,{css:Jk(c,i),striped:r,stickyHeader:i,interactive:!0,children:[ve(I.Header,{css:Xk(c),children:be(I.Row,{children:[a?ve(I.ColumnHeader,{ref:C,...l$(k,s$,_),children:ve(Ov,{name:"header-checkbox","aria-label":v.selectAllRowsLabel,checked:z,indeterminate:V,onCheckedChange:({checked:e})=>{void 0===l&&M(e?R:[]),p&&p(e)}})}):null,e.map((e=>{return ve(I.ColumnHeader,{ref:t=>{x.current[e.key]=t},...(t=e.key,a$(H,t)),role:e.sortable?"columnheader":void 0,"aria-sort":e.sortable&&"asc"===y.order?"ascending":e.sortable&&"desc"===y.order?"descending":void 0,...F(e),children:be("div",{css:Yk,children:[e.label,e.sortable?be("div",{css:Qk,children:[ve(og,{css:e$(y.key===e.key&&"asc"===y.order),icon:ve(dg,{style:{transform:"rotate(180deg)"}}),onClick:()=>D(e.key,"asc"),"aria-label":v.ascendingLabel}),ve(og,{css:e$(y.key===e.key&&"desc"===y.order),icon:ve(dg,{}),onClick:()=>D(e.key,"desc"),"aria-label":v.descendingLabel})]}):null]})},e.key);var t}))]})}),ve(I.Body,{css:r$(r),children:R.map((e=>ve(te.Fragment,{children:K(e,{className:W(e)?"selected":void 0,getCellProps:q})},e.id)))})]})}),m?ve("div",{css:i$,children:ve(o,{size:"lg",color:Ie("primary",500)})}):null,be("div",{css:t$,children:[L?ve(Pk,{pageSize:O,currentPage:T,totalItems:E,onPageSizeChange:u,showItemCountText:A}):null,s?ve("div",{css:n$,children:ve(Zk,{totalItems:E,pageSize:O,currentPage:T,onPageChange:h})}):null]})]})},u$=I.Row,h$=I.Cell,p$=ke`
|
|
2892
2912
|
border: ${_e(100)} solid ${Ie("neutral",300)};
|
|
2893
|
-
`,
|
|
2913
|
+
`,f$=ke`
|
|
2894
2914
|
padding: ${Ve(400)};
|
|
2895
2915
|
cursor: pointer;
|
|
2896
2916
|
&:focus-visible {
|
|
@@ -2905,9 +2925,9 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2905
2925
|
transparent
|
|
2906
2926
|
);
|
|
2907
2927
|
}
|
|
2908
|
-
`,
|
|
2928
|
+
`,m$=({children:e,header:t,footer:n})=>ve(r,{css:p$,children:ve(A.Root,{multiple:!0,children:be(A.Item,{value:"extendable-card-item",children:[be(A.ItemTrigger,{css:f$,alignItems:"center",children:[ve(R,{gap:3,flex:"1",overflow:"hidden",alignItems:"center",children:t}),ve(A.ItemIndicator,{children:ve(dg,{color:"var(--chakra-colors-neutral-700)",height:"1rem",width:"1rem"})})]}),be(A.ItemContent,{children:[e,n]})]})})}),g$=ke`
|
|
2909
2929
|
border: ${_e(100)} solid ${Ie("neutral",300)};
|
|
2910
|
-
`,
|
|
2930
|
+
`,b$=ke`
|
|
2911
2931
|
padding: ${Ve(400)};
|
|
2912
2932
|
cursor: pointer;
|
|
2913
2933
|
border-bottom: ${_e(100)} solid
|
|
@@ -2929,7 +2949,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2929
2949
|
transparent
|
|
2930
2950
|
);
|
|
2931
2951
|
}
|
|
2932
|
-
`,
|
|
2952
|
+
`,v$=ke`
|
|
2933
2953
|
.item-content-open > * {
|
|
2934
2954
|
max-height: auto;
|
|
2935
2955
|
|
|
@@ -2950,10 +2970,10 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2950
2970
|
padding-bottom 0.2s ease,
|
|
2951
2971
|
padding-top 0.2s ease;
|
|
2952
2972
|
}
|
|
2953
|
-
`,
|
|
2973
|
+
`,y$=ke`
|
|
2954
2974
|
border-top: ${_e(100)} solid
|
|
2955
2975
|
${Ie("neutral",300)};
|
|
2956
|
-
`,
|
|
2976
|
+
`,w$=({children:e,header:t,footer:n,expanded:o=!0,collapsible:i=!0,actions:s,showFooterOnCollapsed:a=!1,labels:l})=>{tg("AnalysisWidget",l);const c="analysis-widget-item",[d,u]=ae(o),h=`analysis-widget-header-${c}`;return ve(r,{as:"section","aria-labelledby":h,css:g$,children:be(A.Root,{multiple:!0,value:i?void 0:[c],defaultValue:o?[c]:[],children:[be(A.Item,{css:v$,value:c,children:[t&&ve(A.ItemTrigger,{id:h,"aria-expanded":d,css:b$,pointerEvents:i?"auto":"none",onClick:i?()=>{u(!d)}:void 0,children:be(R,{gap:3,flex:"1",overflow:"hidden",alignItems:"top",justifyContent:"space-between",children:[t,s&&s.map((e=>ve(ng,{variant:"secondary",size:"small",label:e.label,onClick:t=>{e.onClick(),t.preventDefault(),t.stopPropagation()},leftIcon:e?.icon},e.label))),i&&ve(A.ItemIndicator,{height:"1rem",marginTop:"0.5rem",display:"flex",children:ve(dg,{"aria-hidden":"true",color:"var(--chakra-colors-neutral-700)",height:"1rem",width:"1rem"})})]})}),be("div",{className:d?"item-content-open":"item-content-closed","aria-hidden":!d,children:[e,!a&&n&&ve(r,{css:y$,children:n})]})]}),a&&n&&ve(r,{css:y$,children:n})]})})};var x$,C$={exports:{}},k$={},$$={exports:{}},S$={exports:{}},M$={};var E$,T$,O$,L$,A$,N$,R$,D$,P$,I$,z$,V$,H$,B$={};
|
|
2957
2977
|
/** @license React v16.13.1
|
|
2958
2978
|
* react-is.development.js
|
|
2959
2979
|
*
|
|
@@ -2961,7 +2981,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2961
2981
|
*
|
|
2962
2982
|
* This source code is licensed under the MIT license found in the
|
|
2963
2983
|
* LICENSE file in the root directory of this source tree.
|
|
2964
|
-
*/function H$(){return M$||(M$=1,"production"===process.env.NODE_ENV?k$.exports=function(){if(y$)return $$;y$=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,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=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,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case l:case c:case r:case i:case o:case u:return e;default:switch(e=e&&e.$$typeof){case a:case d:case f:case p:case s:return e;default:return h}}case n:return h}}}function w(e){return y(e)===c}return $$.AsyncMode=l,$$.ConcurrentMode=c,$$.ContextConsumer=a,$$.ContextProvider=s,$$.Element=t,$$.ForwardRef=d,$$.Fragment=r,$$.Lazy=f,$$.Memo=p,$$.Portal=n,$$.Profiler=i,$$.StrictMode=o,$$.Suspense=u,$$.isAsyncMode=function(e){return w(e)||y(e)===l},$$.isConcurrentMode=w,$$.isContextConsumer=function(e){return y(e)===a},$$.isContextProvider=function(e){return y(e)===s},$$.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},$$.isForwardRef=function(e){return y(e)===d},$$.isFragment=function(e){return y(e)===r},$$.isLazy=function(e){return y(e)===f},$$.isMemo=function(e){return y(e)===p},$$.isPortal=function(e){return y(e)===n},$$.isProfiler=function(e){return y(e)===i},$$.isStrictMode=function(e){return y(e)===o},$$.isSuspense=function(e){return y(e)===u},$$.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===u||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===s||e.$$typeof===a||e.$$typeof===d||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v||e.$$typeof===m)},$$.typeOf=y,$$}():k$.exports=(S$||(S$=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,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=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,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:var m=e.type;switch(m){case l:case c:case r:case i:case o:case u:return m;default:var g=m&&m.$$typeof;switch(g){case a:case d:case f:case p:case s:return g;default:return h}}case n:return h}}}var w=l,x=c,C=a,k=s,$=t,S=d,M=r,E=f,T=p,O=n,L=i,A=o,N=u,R=!1;function D(e){return y(e)===c}V$.AsyncMode=w,V$.ConcurrentMode=x,V$.ContextConsumer=C,V$.ContextProvider=k,V$.Element=$,V$.ForwardRef=S,V$.Fragment=M,V$.Lazy=E,V$.Memo=T,V$.Portal=O,V$.Profiler=L,V$.StrictMode=A,V$.Suspense=N,V$.isAsyncMode=function(e){return R||(R=!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.")),D(e)||y(e)===l},V$.isConcurrentMode=D,V$.isContextConsumer=function(e){return y(e)===a},V$.isContextProvider=function(e){return y(e)===s},V$.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},V$.isForwardRef=function(e){return y(e)===d},V$.isFragment=function(e){return y(e)===r},V$.isLazy=function(e){return y(e)===f},V$.isMemo=function(e){return y(e)===p},V$.isPortal=function(e){return y(e)===n},V$.isProfiler=function(e){return y(e)===i},V$.isStrictMode=function(e){return y(e)===o},V$.isSuspense=function(e){return y(e)===u},V$.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===u||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===s||e.$$typeof===a||e.$$typeof===d||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v||e.$$typeof===m)},V$.typeOf=y}()),V$)),k$.exports}function B$(){if(T$)return E$;T$=1;return E$="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function _$(){return L$?O$:(L$=1,O$=Function.call.bind(Object.prototype.hasOwnProperty))}function j$(){if(D$)return R$;D$=1;var e=H$(),t=$e,n=B$(),r=_$(),o=function(){if(N$)return A$;N$=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=B$(),n={},r=_$();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,i,s,a,l){if("production"!==process.env.NODE_ENV)for(var c in o)if(r(o,c)){var d;try{if("function"!=typeof o[c]){var u=Error((a||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}d=o[c](i,c,a,s,null,t)}catch(e){d=e}if(!d||d instanceof Error||e((a||"React class")+": type specification of "+s+" `"+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 h=l?l():"";e("Failed "+s+" type: "+d.message+(null!=h?h:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},A$=o}(),i=function(){};function s(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),R$=function(a,l){var c="function"==typeof Symbol&&Symbol.iterator;var d="<<anonymous>>",u={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:f(s),arrayOf:function(e){return f((function(t,r,o,i,s){if("function"!=typeof e)return new p("Property `"+s+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var a=t[r];if(!Array.isArray(a))return new p("Invalid "+i+" `"+s+"` of type `"+v(a)+"` supplied to `"+o+"`, expected an array.");for(var l=0;l<a.length;l++){var c=e(a,l,o,i,s+"["+l+"]",n);if(c instanceof Error)return c}return null}))},element:f((function(e,t,n,r,o){var i=e[t];return a(i)?null:new p("Invalid "+r+" `"+o+"` of type `"+v(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:f((function(t,n,r,o,i){var s=t[n];return e.isValidElementType(s)?null:new p("Invalid "+o+" `"+i+"` of type `"+v(s)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return f((function(t,n,r,o,i){if(!(t[n]instanceof e)){var s=e.name||d;return new p("Invalid "+o+" `"+i+"` of type `"+(((a=t[n]).constructor&&a.constructor.name?a.constructor.name:d)+"` supplied to `")+r+"`, expected instance of `"+s+"`.")}var a;return null}))},node:f((function(e,t,n,r,o){return b(e[t])?null:new p("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return f((function(t,o,i,s,a){if("function"!=typeof e)return new p("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var l=t[o],c=v(l);if("object"!==c)return new p("Invalid "+s+" `"+a+"` of type `"+c+"` supplied to `"+i+"`, expected an object.");for(var d in l)if(r(l,d)){var u=e(l,d,i,s,a+"."+d,n);if(u instanceof Error)return u}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i(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."),s;return f((function(t,n,r,o,i){for(var s=t[n],a=0;a<e.length;a++)if(h(s,e[a]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===y(t)?String(t):t}));return new p("Invalid "+o+" `"+i+"` of value `"+String(s)+"` supplied to `"+r+"`, expected one of "+l+".")}))},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+w(o)+" at index "+t+"."),s}return f((function(t,o,i,s,a){for(var l=[],c=0;c<e.length;c++){var d=(0,e[c])(t,o,i,s,a,n);if(null==d)return null;d.data&&r(d.data,"expectedType")&&l.push(d.data.expectedType)}return new p("Invalid "+s+" `"+a+"` supplied to `"+i+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return f((function(t,r,o,i,s){var a=t[r],l=v(a);if("object"!==l)return new p("Invalid "+i+" `"+s+"` of type `"+l+"` supplied to `"+o+"`, expected `object`.");for(var c in e){var d=e[c];if("function"!=typeof d)return g(o,i,s,c,y(d));var u=d(a,c,o,i,s+"."+c,n);if(u)return u}return null}))},exact:function(e){return f((function(o,i,s,a,l){var c=o[i],d=v(c);if("object"!==d)return new p("Invalid "+a+" `"+l+"` of type `"+d+"` supplied to `"+s+"`, expected `object`.");var u=t({},o[i],e);for(var h in u){var f=e[h];if(r(e,h)&&"function"!=typeof f)return g(s,a,l,h,y(f));if(!f)return new p("Invalid "+a+" `"+l+"` key `"+h+"` supplied to `"+s+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=f(c,h,s,a,l+"."+h,n);if(m)return m}return null}))}};function h(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function p(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 o(o,s,a,c,u,h,f){if(c=c||d,h=h||a,f!==n){if(l){var m=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 m.name="Invariant Violation",m}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=c+":"+a;!t[g]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+h+"` 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[g]=!0,r++)}}return null==s[a]?o?null===s[a]?new p("The "+u+" `"+h+"` is marked as required in `"+c+"`, but its value is `null`."):new p("The "+u+" `"+h+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(s,a,c,u,h)}var s=o.bind(null,!1);return s.isRequired=o.bind(null,!0),s}function m(e){return f((function(t,n,r,o,i,s){var a=t[n];return v(a)!==e?new p("Invalid "+o+" `"+i+"` of type `"+y(a)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function g(e,t,n,r,o){return new p((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function b(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(b);if(null===e||a(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(!b(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!b(o[1]))return!1}return!0;default:return!1}}function v(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 y(e){if(null==e)return""+e;var t=v(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function w(e){var t=y(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return p.prototype=Error.prototype,u.checkPropTypes=o,u.resetWarningCache=o.resetWarningCache,u.PropTypes=u,u},R$}function F$(){if(z$)return C$.exports;if(z$=1,"production"!==process.env.NODE_ENV){var e=H$();C$.exports=j$()(e.isElement,!0)}else C$.exports=function(){if(I$)return P$;I$=1;var e=B$();function t(){}function n(){}return n.resetWarningCache=t,P$=function(){function r(t,n,r,o,i,s){if(s!==e){var a=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 a.name="Invariant Violation",a}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},P$}()();return C$.exports}var q$,W$={exports:{}};var U$,K$={},G$={};function Z$(){if(U$)return G$;return U$=1,Object.defineProperty(G$,"__esModule",{value:!0}),G$.dontSetMe=function(e,t,n){if(e[t])return new Error(`Invalid prop ${t} passed to ${n} - do not set this, set it on the child.`)},G$.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]},G$.int=function(e){return parseInt(e,10)},G$.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},G$.isNum=function(e){return"number"==typeof e&&!isNaN(e)},G$}var J$,X$,Y$={};function Q$(){if(X$)return K$;X$=1,Object.defineProperty(K$,"__esModule",{value:!0}),K$.addClassName=s,K$.addEvent=function(e,t,n,r){if(!e)return;const o={capture:!0,...r};e.addEventListener?e.addEventListener(t,n,o):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},K$.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&&s(e.body,"react-draggable-transparent-selection")},K$.createCSSTransform=function(e,n){const r=o(e,n,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:r}},K$.createSVGTransform=function(e,t){return o(e,t,"")},K$.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))},K$.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},K$.getTranslation=o,K$.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},K$.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},K$.matchesSelector=r,K$.matchesSelectorAndParentsTo=function(e,t,n){let o=e;do{if(r(o,t))return!0;if(o===n)return!1;o=o.parentNode}while(o);return!1},K$.offsetXYFromParent=function(e,t,n){const r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),o=(e.clientX+t.scrollLeft-r.left)/n,i=(e.clientY+t.scrollTop-r.top)/n;return{x:o,y:i}},K$.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},K$.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},K$.removeClassName=a,K$.removeEvent=function(e,t,n,r){if(!e)return;const o={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,o):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},K$.scheduleRemoveUserSelectStyles=function(e){window.requestAnimationFrame?window.requestAnimationFrame((()=>{i(e)})):i(e)};var e=Z$(),t=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var o,i,s={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return s;if(o=t?r:n){if(o.has(e))return o.get(e);o.set(e,s)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?o(s,t,i):s[t]=e[t]);return s}(e,t)}(function(){if(J$)return Y$;J$=1,Object.defineProperty(Y$,"__esModule",{value:!0}),Y$.browserPrefixToKey=n,Y$.browserPrefixToStyle=function(e,t){return t?`-${t.toLowerCase()}-${e}`:e},Y$.default=void 0,Y$.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const r=window.document?.documentElement?.style;if(!r)return"";if(t in r)return"";for(let o=0;o<e.length;o++)if(n(t,e[o])in r)return e[o];return""}function n(e,t){return t?`${t}${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 Y$.default=t(),Y$}());let n="";function r(t,r){return n||(n=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(n){return(0,e.isFunction)(t[n])}))),!!(0,e.isFunction)(t[n])&&t[n](r)}function o(e,t,n){let{x:r,y:o}=e,i=`translate(${r}${n},${o}${n})`;if(t){i=`translate(${`${"string"==typeof t.x?t.x:t.x+n}`}, ${`${"string"==typeof t.y?t.y:t.y+n}`})`+i}return i}function i(e){if(e)try{if(e.body&&a(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){}}function s(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp(`(?:^|\\s)${t}(?!\\S)`))||(e.className+=` ${t}`)}function a(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(`(?:^|\\s)${t}(?!\\S)`,"g"),"")}return K$}var eS,tS={};function nS(){if(eS)return tS;eS=1,Object.defineProperty(tS,"__esModule",{value:!0}),tS.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},tS.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},tS.createCoreData=function(t,r,o){const i=!(0,e.isNum)(t.lastX),s=n(t);return i?{node:s,deltaX:0,deltaY:0,lastX:r,lastY:o,x:r,y:o}:{node:s,deltaX:r-t.lastX,deltaY:o-t.lastY,lastX:t.lastX,lastY:t.lastY,x:r,y:o}},tS.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}},tS.getBoundPosition=function(r,o,i){if(!r.props.bounds)return[o,i];let{bounds:s}=r.props;s="string"==typeof s?s:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(s);const a=n(r);if("string"==typeof s){const{ownerDocument:n}=a,r=n.defaultView;let o;if("parent"===s)o=a.parentNode;else{o=a.getRootNode().querySelector(s)}if(!(o instanceof r.HTMLElement))throw new Error('Bounds selector "'+s+'" could not find an element.');const i=o,l=r.getComputedStyle(a),c=r.getComputedStyle(i);s={left:-a.offsetLeft+(0,e.int)(c.paddingLeft)+(0,e.int)(l.marginLeft),top:-a.offsetTop+(0,e.int)(c.paddingTop)+(0,e.int)(l.marginTop),right:(0,t.innerWidth)(i)-(0,t.outerWidth)(a)-a.offsetLeft+(0,e.int)(c.paddingRight)-(0,e.int)(l.marginRight),bottom:(0,t.innerHeight)(i)-(0,t.outerHeight)(a)-a.offsetTop+(0,e.int)(c.paddingBottom)-(0,e.int)(l.marginBottom)}}(0,e.isNum)(s.right)&&(o=Math.min(o,s.right));(0,e.isNum)(s.bottom)&&(i=Math.min(i,s.bottom));(0,e.isNum)(s.left)&&(o=Math.max(o,s.left));(0,e.isNum)(s.top)&&(i=Math.max(i,s.top));return[o,i]},tS.getControlPosition=function(e,r,o){const i="number"==typeof r?(0,t.getTouch)(e,r):null;if("number"==typeof r&&!i)return null;const s=n(o),a=o.props.offsetParent||s.offsetParent||s.ownerDocument.body;return(0,t.offsetXYFromParent)(i||e,a,o.props.scale)},tS.snapToGrid=function(e,t,n){const r=Math.round(t/e[0])*e[0],o=Math.round(n/e[1])*e[1];return[r,o]};var e=Z$(),t=Q$();function n(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}return tS}var rS,oS,iS,sS,aS={},lS={};function cS(){if(rS)return lS;return rS=1,Object.defineProperty(lS,"__esModule",{value:!0}),lS.default=function(){},lS}function dS(){if(oS)return aS;oS=1,Object.defineProperty(aS,"__esModule",{value:!0}),aS.default=void 0;var e=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var o,i,s={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return s;if(o=t?r:n){if(o.has(e))return o.get(e);o.set(e,s)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?o(s,t,i):s[t]=e[t]);return s}(e,t)}(te),t=a(F$()),n=a(xe),r=Q$(),o=nS(),i=Z$(),s=a(cS());function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!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:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c={start:"touchstart",move:"touchmove",stop:"touchend"},d={start:"mousedown",move:"mousemove",stop:"mouseup"};let u=d,h=class extends e.Component{constructor(){super(...arguments),l(this,"dragging",!1),l(this,"lastX",NaN),l(this,"lastY",NaN),l(this,"touchIdentifier",null),l(this,"mounted",!1),l(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||this.props.allowMobileScroll||e.preventDefault();const i=(0,r.getTouchIdentifier)(e);this.touchIdentifier=i;const a=(0,o.getControlPosition)(e,i,this);if(null==a)return;const{x:l,y:c}=a,d=(0,o.createCoreData)(this,l,c);(0,s.default)("DraggableCore: handleDragStart: %j",d),(0,s.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=l,this.lastY=c,(0,r.addEvent)(n,u.move,this.handleDrag),(0,r.addEvent)(n,u.stop,this.handleDragStop))})),l(this,"handleDrag",(e=>{const t=(0,o.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,o.snapToGrid)(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}const i=(0,o.createCoreData)(this,n,r);(0,s.default)("DraggableCore: handleDrag: %j",i);if(!1!==this.props.onDrag(e,i)&&!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)}})),l(this,"handleDragStop",(e=>{if(!this.dragging)return;const t=(0,o.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:i}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=i-this.lastY||0;[e,t]=(0,o.snapToGrid)(this.props.grid,e,t),n=this.lastX+e,i=this.lastY+t}const a=(0,o.createCoreData)(this,n,i);if(!1===this.props.onStop(e,a)||!1===this.mounted)return!1;const l=this.findDOMNode();l&&this.props.enableUserSelectHack&&(0,r.scheduleRemoveUserSelectStyles)(l.ownerDocument),(0,s.default)("DraggableCore: handleDragStop: %j",a),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,l&&((0,s.default)("DraggableCore: Removing handlers"),(0,r.removeEvent)(l.ownerDocument,u.move,this.handleDrag),(0,r.removeEvent)(l.ownerDocument,u.stop,this.handleDragStop))})),l(this,"onMouseDown",(e=>(u=d,this.handleDragStart(e)))),l(this,"onMouseUp",(e=>(u=d,this.handleDragStop(e)))),l(this,"onTouchStart",(e=>(u=c,this.handleDragStart(e)))),l(this,"onTouchEnd",(e=>(u=c,this.handleDragStop(e))))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,r.addEvent)(e,c.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,r.removeEvent)(t,d.move,this.handleDrag),(0,r.removeEvent)(t,c.move,this.handleDrag),(0,r.removeEvent)(t,d.stop,this.handleDragStop),(0,r.removeEvent)(t,c.stop,this.handleDragStop),(0,r.removeEvent)(e,c.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,r.scheduleRemoveUserSelectStyles)(t)}}findDOMNode(){return this.props?.nodeRef?this.props?.nodeRef?.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 aS.default=h,l(h,"displayName","DraggableCore"),l(h,"propTypes",{allowAnyClick:t.default.bool,allowMobileScroll: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:i.dontSetMe,style:i.dontSetMe,transform:i.dontSetMe}),l(h,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),aS}function uS(){return iS||(iS=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return l.default}}),e.default=void 0;var t=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var o,i,s={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return s;if(o=t?r:n){if(o.has(e))return o.get(e);o.set(e,s)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?o(s,t,i):s[t]=e[t]);return s}(e,t)}(te),n=d(F$()),r=d(xe),o=function(){if(q$)return W$.exports;function e(t){var n,r,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(n=0;n<i;n++)t[n]&&(r=e(t[n]))&&(o&&(o+=" "),o+=r)}else for(r in t)t[r]&&(o&&(o+=" "),o+=r);return o}function t(){for(var t,n,r=0,o="",i=arguments.length;r<i;r++)(t=arguments[r])&&(n=e(t))&&(o&&(o+=" "),o+=n);return o}return q$=1,W$.exports=t,W$.exports.clsx=t,W$.exports}(),i=Q$(),s=nS(),a=Z$(),l=d(dS()),c=d(cS());function d(e){return e&&e.__esModule?e:{default:e}}function u(){return u=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},u.apply(null,arguments)}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!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:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class p 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,s.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,s.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[o,i]=(0,s.getBoundPosition)(this,r.x,r.y);r.x=o,r.y=i,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,s.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.state.dragging&&this.setState({dragging:!1})}findDOMNode(){return this.props?.nodeRef?.current??r.default.findDOMNode(this)}render(){const{axis:e,bounds:n,children:r,defaultPosition:a,defaultClassName:c,defaultClassNameDragging:d,defaultClassNameDragged:h,position:p,positionOffset:f,scale:m,...g}=this.props;let b={},v=null;const y=!Boolean(p)||this.state.dragging,w=p||a,x={x:(0,s.canDragX)(this)&&y?this.state.x:w.x,y:(0,s.canDragY)(this)&&y?this.state.y:w.y};this.state.isElementSVG?v=(0,i.createSVGTransform)(x,f):b=(0,i.createCSSTransform)(x,f);const C=(0,o.clsx)(r.props.className||"",c,{[d]:this.state.dragging,[h]:this.state.dragged});return t.createElement(l.default,u({},g,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(r),{className:C,style:{...r.props.style,...b},transform:v}))}}e.default=p,h(p,"displayName","Draggable"),h(p,"propTypes",{...l.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:a.dontSetMe,style:a.dontSetMe,transform:a.dontSetMe}),h(p,"defaultProps",{...l.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(x$)),x$}var hS=function(){if(sS)return w$.exports;sS=1;const{default:e,DraggableCore:t}=uS();return w$.exports=e,w$.exports.default=e,w$.exports.DraggableCore=t,w$.exports}(),pS=Sf(hS);const fS=(e="medium",t,n,r)=>{const o=t?Me(t):{xsmall:"15rem",small:"20rem",medium:"30rem",large:"40rem",xlarge:"60rem","full-width":"90%"}[e]||"15rem",i=r?Me(r):{xsmall:"35rem",small:"45rem",medium:"45rem",large:"45rem",xlarge:"45rem","full-width":"unset"}[e]||"35rem",s="unset"===i?"80vh":`min(${i}, 80vh)`;let a="auto";return n?a=Me(n):"full-width"===e&&(a="90%"),ke`
|
|
2984
|
+
*/function _$(){return T$||(T$=1,"production"===process.env.NODE_ENV?S$.exports=function(){if(x$)return M$;x$=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,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=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,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case l:case c:case r:case i:case o:case u:return e;default:switch(e=e&&e.$$typeof){case a:case d:case f:case p:case s:return e;default:return h}}case n:return h}}}function w(e){return y(e)===c}return M$.AsyncMode=l,M$.ConcurrentMode=c,M$.ContextConsumer=a,M$.ContextProvider=s,M$.Element=t,M$.ForwardRef=d,M$.Fragment=r,M$.Lazy=f,M$.Memo=p,M$.Portal=n,M$.Profiler=i,M$.StrictMode=o,M$.Suspense=u,M$.isAsyncMode=function(e){return w(e)||y(e)===l},M$.isConcurrentMode=w,M$.isContextConsumer=function(e){return y(e)===a},M$.isContextProvider=function(e){return y(e)===s},M$.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},M$.isForwardRef=function(e){return y(e)===d},M$.isFragment=function(e){return y(e)===r},M$.isLazy=function(e){return y(e)===f},M$.isMemo=function(e){return y(e)===p},M$.isPortal=function(e){return y(e)===n},M$.isProfiler=function(e){return y(e)===i},M$.isStrictMode=function(e){return y(e)===o},M$.isSuspense=function(e){return y(e)===u},M$.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===u||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===s||e.$$typeof===a||e.$$typeof===d||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v||e.$$typeof===m)},M$.typeOf=y,M$}():S$.exports=(E$||(E$=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,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=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,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:var m=e.type;switch(m){case l:case c:case r:case i:case o:case u:return m;default:var g=m&&m.$$typeof;switch(g){case a:case d:case f:case p:case s:return g;default:return h}}case n:return h}}}var w=l,x=c,C=a,k=s,$=t,S=d,M=r,E=f,T=p,O=n,L=i,A=o,N=u,R=!1;function D(e){return y(e)===c}B$.AsyncMode=w,B$.ConcurrentMode=x,B$.ContextConsumer=C,B$.ContextProvider=k,B$.Element=$,B$.ForwardRef=S,B$.Fragment=M,B$.Lazy=E,B$.Memo=T,B$.Portal=O,B$.Profiler=L,B$.StrictMode=A,B$.Suspense=N,B$.isAsyncMode=function(e){return R||(R=!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.")),D(e)||y(e)===l},B$.isConcurrentMode=D,B$.isContextConsumer=function(e){return y(e)===a},B$.isContextProvider=function(e){return y(e)===s},B$.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},B$.isForwardRef=function(e){return y(e)===d},B$.isFragment=function(e){return y(e)===r},B$.isLazy=function(e){return y(e)===f},B$.isMemo=function(e){return y(e)===p},B$.isPortal=function(e){return y(e)===n},B$.isProfiler=function(e){return y(e)===i},B$.isStrictMode=function(e){return y(e)===o},B$.isSuspense=function(e){return y(e)===u},B$.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===u||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===s||e.$$typeof===a||e.$$typeof===d||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v||e.$$typeof===m)},B$.typeOf=y}()),B$)),S$.exports}function j$(){if(L$)return O$;L$=1;return O$="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function F$(){return N$?A$:(N$=1,A$=Function.call.bind(Object.prototype.hasOwnProperty))}function q$(){if(I$)return P$;I$=1;var e=_$(),t=$e,n=j$(),r=F$(),o=function(){if(D$)return R$;D$=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=j$(),n={},r=F$();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,i,s,a,l){if("production"!==process.env.NODE_ENV)for(var c in o)if(r(o,c)){var d;try{if("function"!=typeof o[c]){var u=Error((a||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}d=o[c](i,c,a,s,null,t)}catch(e){d=e}if(!d||d instanceof Error||e((a||"React class")+": type specification of "+s+" `"+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 h=l?l():"";e("Failed "+s+" type: "+d.message+(null!=h?h:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},R$=o}(),i=function(){};function s(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),P$=function(a,l){var c="function"==typeof Symbol&&Symbol.iterator;var d="<<anonymous>>",u={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:f(s),arrayOf:function(e){return f((function(t,r,o,i,s){if("function"!=typeof e)return new p("Property `"+s+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var a=t[r];if(!Array.isArray(a))return new p("Invalid "+i+" `"+s+"` of type `"+v(a)+"` supplied to `"+o+"`, expected an array.");for(var l=0;l<a.length;l++){var c=e(a,l,o,i,s+"["+l+"]",n);if(c instanceof Error)return c}return null}))},element:f((function(e,t,n,r,o){var i=e[t];return a(i)?null:new p("Invalid "+r+" `"+o+"` of type `"+v(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:f((function(t,n,r,o,i){var s=t[n];return e.isValidElementType(s)?null:new p("Invalid "+o+" `"+i+"` of type `"+v(s)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return f((function(t,n,r,o,i){if(!(t[n]instanceof e)){var s=e.name||d;return new p("Invalid "+o+" `"+i+"` of type `"+(((a=t[n]).constructor&&a.constructor.name?a.constructor.name:d)+"` supplied to `")+r+"`, expected instance of `"+s+"`.")}var a;return null}))},node:f((function(e,t,n,r,o){return b(e[t])?null:new p("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return f((function(t,o,i,s,a){if("function"!=typeof e)return new p("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var l=t[o],c=v(l);if("object"!==c)return new p("Invalid "+s+" `"+a+"` of type `"+c+"` supplied to `"+i+"`, expected an object.");for(var d in l)if(r(l,d)){var u=e(l,d,i,s,a+"."+d,n);if(u instanceof Error)return u}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i(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."),s;return f((function(t,n,r,o,i){for(var s=t[n],a=0;a<e.length;a++)if(h(s,e[a]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===y(t)?String(t):t}));return new p("Invalid "+o+" `"+i+"` of value `"+String(s)+"` supplied to `"+r+"`, expected one of "+l+".")}))},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+w(o)+" at index "+t+"."),s}return f((function(t,o,i,s,a){for(var l=[],c=0;c<e.length;c++){var d=(0,e[c])(t,o,i,s,a,n);if(null==d)return null;d.data&&r(d.data,"expectedType")&&l.push(d.data.expectedType)}return new p("Invalid "+s+" `"+a+"` supplied to `"+i+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return f((function(t,r,o,i,s){var a=t[r],l=v(a);if("object"!==l)return new p("Invalid "+i+" `"+s+"` of type `"+l+"` supplied to `"+o+"`, expected `object`.");for(var c in e){var d=e[c];if("function"!=typeof d)return g(o,i,s,c,y(d));var u=d(a,c,o,i,s+"."+c,n);if(u)return u}return null}))},exact:function(e){return f((function(o,i,s,a,l){var c=o[i],d=v(c);if("object"!==d)return new p("Invalid "+a+" `"+l+"` of type `"+d+"` supplied to `"+s+"`, expected `object`.");var u=t({},o[i],e);for(var h in u){var f=e[h];if(r(e,h)&&"function"!=typeof f)return g(s,a,l,h,y(f));if(!f)return new p("Invalid "+a+" `"+l+"` key `"+h+"` supplied to `"+s+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=f(c,h,s,a,l+"."+h,n);if(m)return m}return null}))}};function h(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function p(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 o(o,s,a,c,u,h,f){if(c=c||d,h=h||a,f!==n){if(l){var m=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 m.name="Invariant Violation",m}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=c+":"+a;!t[g]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+h+"` 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[g]=!0,r++)}}return null==s[a]?o?null===s[a]?new p("The "+u+" `"+h+"` is marked as required in `"+c+"`, but its value is `null`."):new p("The "+u+" `"+h+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(s,a,c,u,h)}var s=o.bind(null,!1);return s.isRequired=o.bind(null,!0),s}function m(e){return f((function(t,n,r,o,i,s){var a=t[n];return v(a)!==e?new p("Invalid "+o+" `"+i+"` of type `"+y(a)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function g(e,t,n,r,o){return new p((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function b(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(b);if(null===e||a(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(!b(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!b(o[1]))return!1}return!0;default:return!1}}function v(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 y(e){if(null==e)return""+e;var t=v(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function w(e){var t=y(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return p.prototype=Error.prototype,u.checkPropTypes=o,u.resetWarningCache=o.resetWarningCache,u.PropTypes=u,u},P$}function W$(){if(H$)return $$.exports;if(H$=1,"production"!==process.env.NODE_ENV){var e=_$();$$.exports=q$()(e.isElement,!0)}else $$.exports=function(){if(V$)return z$;V$=1;var e=j$();function t(){}function n(){}return n.resetWarningCache=t,z$=function(){function r(t,n,r,o,i,s){if(s!==e){var a=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 a.name="Invariant Violation",a}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},z$}()();return $$.exports}var U$,K$={exports:{}};var G$,Z$={},J$={};function X$(){if(G$)return J$;return G$=1,Object.defineProperty(J$,"__esModule",{value:!0}),J$.dontSetMe=function(e,t,n){if(e[t])return new Error(`Invalid prop ${t} passed to ${n} - do not set this, set it on the child.`)},J$.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]},J$.int=function(e){return parseInt(e,10)},J$.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},J$.isNum=function(e){return"number"==typeof e&&!isNaN(e)},J$}var Y$,Q$,eS={};function tS(){if(Q$)return Z$;Q$=1,Object.defineProperty(Z$,"__esModule",{value:!0}),Z$.addClassName=s,Z$.addEvent=function(e,t,n,r){if(!e)return;const o={capture:!0,...r};e.addEventListener?e.addEventListener(t,n,o):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},Z$.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&&s(e.body,"react-draggable-transparent-selection")},Z$.createCSSTransform=function(e,n){const r=o(e,n,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:r}},Z$.createSVGTransform=function(e,t){return o(e,t,"")},Z$.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))},Z$.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},Z$.getTranslation=o,Z$.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},Z$.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},Z$.matchesSelector=r,Z$.matchesSelectorAndParentsTo=function(e,t,n){let o=e;do{if(r(o,t))return!0;if(o===n)return!1;o=o.parentNode}while(o);return!1},Z$.offsetXYFromParent=function(e,t,n){const r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),o=(e.clientX+t.scrollLeft-r.left)/n,i=(e.clientY+t.scrollTop-r.top)/n;return{x:o,y:i}},Z$.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},Z$.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},Z$.removeClassName=a,Z$.removeEvent=function(e,t,n,r){if(!e)return;const o={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,o):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},Z$.scheduleRemoveUserSelectStyles=function(e){window.requestAnimationFrame?window.requestAnimationFrame((()=>{i(e)})):i(e)};var e=X$(),t=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var o,i,s={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return s;if(o=t?r:n){if(o.has(e))return o.get(e);o.set(e,s)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?o(s,t,i):s[t]=e[t]);return s}(e,t)}(function(){if(Y$)return eS;Y$=1,Object.defineProperty(eS,"__esModule",{value:!0}),eS.browserPrefixToKey=n,eS.browserPrefixToStyle=function(e,t){return t?`-${t.toLowerCase()}-${e}`:e},eS.default=void 0,eS.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const r=window.document?.documentElement?.style;if(!r)return"";if(t in r)return"";for(let o=0;o<e.length;o++)if(n(t,e[o])in r)return e[o];return""}function n(e,t){return t?`${t}${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 eS.default=t(),eS}());let n="";function r(t,r){return n||(n=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(n){return(0,e.isFunction)(t[n])}))),!!(0,e.isFunction)(t[n])&&t[n](r)}function o(e,t,n){let{x:r,y:o}=e,i=`translate(${r}${n},${o}${n})`;if(t){i=`translate(${`${"string"==typeof t.x?t.x:t.x+n}`}, ${`${"string"==typeof t.y?t.y:t.y+n}`})`+i}return i}function i(e){if(e)try{if(e.body&&a(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){}}function s(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp(`(?:^|\\s)${t}(?!\\S)`))||(e.className+=` ${t}`)}function a(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(`(?:^|\\s)${t}(?!\\S)`,"g"),"")}return Z$}var nS,rS={};function oS(){if(nS)return rS;nS=1,Object.defineProperty(rS,"__esModule",{value:!0}),rS.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},rS.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},rS.createCoreData=function(t,r,o){const i=!(0,e.isNum)(t.lastX),s=n(t);return i?{node:s,deltaX:0,deltaY:0,lastX:r,lastY:o,x:r,y:o}:{node:s,deltaX:r-t.lastX,deltaY:o-t.lastY,lastX:t.lastX,lastY:t.lastY,x:r,y:o}},rS.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}},rS.getBoundPosition=function(r,o,i){if(!r.props.bounds)return[o,i];let{bounds:s}=r.props;s="string"==typeof s?s:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(s);const a=n(r);if("string"==typeof s){const{ownerDocument:n}=a,r=n.defaultView;let o;if("parent"===s)o=a.parentNode;else{o=a.getRootNode().querySelector(s)}if(!(o instanceof r.HTMLElement))throw new Error('Bounds selector "'+s+'" could not find an element.');const i=o,l=r.getComputedStyle(a),c=r.getComputedStyle(i);s={left:-a.offsetLeft+(0,e.int)(c.paddingLeft)+(0,e.int)(l.marginLeft),top:-a.offsetTop+(0,e.int)(c.paddingTop)+(0,e.int)(l.marginTop),right:(0,t.innerWidth)(i)-(0,t.outerWidth)(a)-a.offsetLeft+(0,e.int)(c.paddingRight)-(0,e.int)(l.marginRight),bottom:(0,t.innerHeight)(i)-(0,t.outerHeight)(a)-a.offsetTop+(0,e.int)(c.paddingBottom)-(0,e.int)(l.marginBottom)}}(0,e.isNum)(s.right)&&(o=Math.min(o,s.right));(0,e.isNum)(s.bottom)&&(i=Math.min(i,s.bottom));(0,e.isNum)(s.left)&&(o=Math.max(o,s.left));(0,e.isNum)(s.top)&&(i=Math.max(i,s.top));return[o,i]},rS.getControlPosition=function(e,r,o){const i="number"==typeof r?(0,t.getTouch)(e,r):null;if("number"==typeof r&&!i)return null;const s=n(o),a=o.props.offsetParent||s.offsetParent||s.ownerDocument.body;return(0,t.offsetXYFromParent)(i||e,a,o.props.scale)},rS.snapToGrid=function(e,t,n){const r=Math.round(t/e[0])*e[0],o=Math.round(n/e[1])*e[1];return[r,o]};var e=X$(),t=tS();function n(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}return rS}var iS,sS,aS,lS,cS={},dS={};function uS(){if(iS)return dS;return iS=1,Object.defineProperty(dS,"__esModule",{value:!0}),dS.default=function(){},dS}function hS(){if(sS)return cS;sS=1,Object.defineProperty(cS,"__esModule",{value:!0}),cS.default=void 0;var e=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var o,i,s={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return s;if(o=t?r:n){if(o.has(e))return o.get(e);o.set(e,s)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?o(s,t,i):s[t]=e[t]);return s}(e,t)}(te),t=a(W$()),n=a(xe),r=tS(),o=oS(),i=X$(),s=a(uS());function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!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:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c={start:"touchstart",move:"touchmove",stop:"touchend"},d={start:"mousedown",move:"mousemove",stop:"mouseup"};let u=d,h=class extends e.Component{constructor(){super(...arguments),l(this,"dragging",!1),l(this,"lastX",NaN),l(this,"lastY",NaN),l(this,"touchIdentifier",null),l(this,"mounted",!1),l(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||this.props.allowMobileScroll||e.preventDefault();const i=(0,r.getTouchIdentifier)(e);this.touchIdentifier=i;const a=(0,o.getControlPosition)(e,i,this);if(null==a)return;const{x:l,y:c}=a,d=(0,o.createCoreData)(this,l,c);(0,s.default)("DraggableCore: handleDragStart: %j",d),(0,s.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=l,this.lastY=c,(0,r.addEvent)(n,u.move,this.handleDrag),(0,r.addEvent)(n,u.stop,this.handleDragStop))})),l(this,"handleDrag",(e=>{const t=(0,o.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,o.snapToGrid)(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}const i=(0,o.createCoreData)(this,n,r);(0,s.default)("DraggableCore: handleDrag: %j",i);if(!1!==this.props.onDrag(e,i)&&!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)}})),l(this,"handleDragStop",(e=>{if(!this.dragging)return;const t=(0,o.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:i}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=i-this.lastY||0;[e,t]=(0,o.snapToGrid)(this.props.grid,e,t),n=this.lastX+e,i=this.lastY+t}const a=(0,o.createCoreData)(this,n,i);if(!1===this.props.onStop(e,a)||!1===this.mounted)return!1;const l=this.findDOMNode();l&&this.props.enableUserSelectHack&&(0,r.scheduleRemoveUserSelectStyles)(l.ownerDocument),(0,s.default)("DraggableCore: handleDragStop: %j",a),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,l&&((0,s.default)("DraggableCore: Removing handlers"),(0,r.removeEvent)(l.ownerDocument,u.move,this.handleDrag),(0,r.removeEvent)(l.ownerDocument,u.stop,this.handleDragStop))})),l(this,"onMouseDown",(e=>(u=d,this.handleDragStart(e)))),l(this,"onMouseUp",(e=>(u=d,this.handleDragStop(e)))),l(this,"onTouchStart",(e=>(u=c,this.handleDragStart(e)))),l(this,"onTouchEnd",(e=>(u=c,this.handleDragStop(e))))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,r.addEvent)(e,c.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,r.removeEvent)(t,d.move,this.handleDrag),(0,r.removeEvent)(t,c.move,this.handleDrag),(0,r.removeEvent)(t,d.stop,this.handleDragStop),(0,r.removeEvent)(t,c.stop,this.handleDragStop),(0,r.removeEvent)(e,c.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,r.scheduleRemoveUserSelectStyles)(t)}}findDOMNode(){return this.props?.nodeRef?this.props?.nodeRef?.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 cS.default=h,l(h,"displayName","DraggableCore"),l(h,"propTypes",{allowAnyClick:t.default.bool,allowMobileScroll: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:i.dontSetMe,style:i.dontSetMe,transform:i.dontSetMe}),l(h,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),cS}function pS(){return aS||(aS=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return l.default}}),e.default=void 0;var t=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var o,i,s={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return s;if(o=t?r:n){if(o.has(e))return o.get(e);o.set(e,s)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?o(s,t,i):s[t]=e[t]);return s}(e,t)}(te),n=d(W$()),r=d(xe),o=function(){if(U$)return K$.exports;function e(t){var n,r,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(n=0;n<i;n++)t[n]&&(r=e(t[n]))&&(o&&(o+=" "),o+=r)}else for(r in t)t[r]&&(o&&(o+=" "),o+=r);return o}function t(){for(var t,n,r=0,o="",i=arguments.length;r<i;r++)(t=arguments[r])&&(n=e(t))&&(o&&(o+=" "),o+=n);return o}return U$=1,K$.exports=t,K$.exports.clsx=t,K$.exports}(),i=tS(),s=oS(),a=X$(),l=d(hS()),c=d(uS());function d(e){return e&&e.__esModule?e:{default:e}}function u(){return u=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},u.apply(null,arguments)}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!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:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class p 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,s.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,s.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[o,i]=(0,s.getBoundPosition)(this,r.x,r.y);r.x=o,r.y=i,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,s.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.state.dragging&&this.setState({dragging:!1})}findDOMNode(){return this.props?.nodeRef?.current??r.default.findDOMNode(this)}render(){const{axis:e,bounds:n,children:r,defaultPosition:a,defaultClassName:c,defaultClassNameDragging:d,defaultClassNameDragged:h,position:p,positionOffset:f,scale:m,...g}=this.props;let b={},v=null;const y=!Boolean(p)||this.state.dragging,w=p||a,x={x:(0,s.canDragX)(this)&&y?this.state.x:w.x,y:(0,s.canDragY)(this)&&y?this.state.y:w.y};this.state.isElementSVG?v=(0,i.createSVGTransform)(x,f):b=(0,i.createCSSTransform)(x,f);const C=(0,o.clsx)(r.props.className||"",c,{[d]:this.state.dragging,[h]:this.state.dragged});return t.createElement(l.default,u({},g,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(r),{className:C,style:{...r.props.style,...b},transform:v}))}}e.default=p,h(p,"displayName","Draggable"),h(p,"propTypes",{...l.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:a.dontSetMe,style:a.dontSetMe,transform:a.dontSetMe}),h(p,"defaultProps",{...l.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(k$)),k$}var fS=function(){if(lS)return C$.exports;lS=1;const{default:e,DraggableCore:t}=pS();return C$.exports=e,C$.exports.default=e,C$.exports.DraggableCore=t,C$.exports}(),mS=Sf(fS);const gS=(e="medium",t,n,r)=>{const o=t?Me(t):{xsmall:"15rem",small:"20rem",medium:"30rem",large:"40rem",xlarge:"60rem","full-width":"90%"}[e]||"15rem",i=r?Me(r):{xsmall:"35rem",small:"45rem",medium:"45rem",large:"45rem",xlarge:"45rem","full-width":"unset"}[e]||"35rem",s="unset"===i?"80vh":`min(${i}, 80vh)`;let a="auto";return n?a=Me(n):"full-width"===e&&(a="90%"),ke`
|
|
2965
2985
|
max-width: 100%;
|
|
2966
2986
|
width: ${o};
|
|
2967
2987
|
height: ${a};
|
|
@@ -2971,7 +2991,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2971
2991
|
border-radius: ${Be(300)};
|
|
2972
2992
|
box-shadow: 0 0.25rem 0.375rem -0.25rem #0000001a;
|
|
2973
2993
|
box-shadow: 0 0.625rem 0.9375rem -0.1875rem #0000001a;
|
|
2974
|
-
`},
|
|
2994
|
+
`},bS=ke`
|
|
2975
2995
|
height: 100%;
|
|
2976
2996
|
min-height: ${Ve(1e3)};
|
|
2977
2997
|
display: flex;
|
|
@@ -2980,11 +3000,11 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2980
3000
|
padding: ${Ve(200)};
|
|
2981
3001
|
border-bottom: ${_e(100)} solid
|
|
2982
3002
|
${Ie("neutral",300)};
|
|
2983
|
-
`,
|
|
3003
|
+
`,vS=ke`
|
|
2984
3004
|
top: ${Ve(300)};
|
|
2985
|
-
`,
|
|
3005
|
+
`,yS=ke`
|
|
2986
3006
|
padding: 0;
|
|
2987
|
-
`,
|
|
3007
|
+
`,wS=({header:e,content:t,footer:n,size:r="medium",width:o,height:i,maxHeight:s,draggable:l,blocking:c,open:d,onClose:u,labels:h,lazyMount:p,unmountOnExit:f,restoreFocus:m,modal:g,initialFocusEl:b,finalFocusEl:v,trapFocus:y})=>{const w=tg("Modal",h),x=se(null);return d?ve(z.Root,{open:d,onOpenChange:u,placement:"center",scrollBehavior:"inside",closeOnInteractOutside:!l&&!c,preventScroll:!l&&!c,closeOnEscape:!c,defaultOpen:!0,trapFocus:y,lazyMount:p,unmountOnExit:f,restoreFocus:m,modal:g,initialFocusEl:b,finalFocusEl:v,children:be(a,{children:[l?null:ve(z.Backdrop,{css:{background:"rgba(0, 0, 0, 0.64)"}}),ve(mS,{disabled:!l,nodeRef:x,children:ve(z.Positioner,{ref:x,children:be(z.Content,{"aria-label":w.dialogAriaLabel,css:gS(r,o,i,s),children:[be(z.Header,{css:bS,children:[e,c?null:ve(z.CloseTrigger,{css:vS,asChild:!0,children:ve(_b,{})})]}),ve(z.Body,{css:yS,children:t}),n?ve(z.Footer,{padding:"0.75rem",children:n}):null]})})})]})}):null},xS=e=>ke`
|
|
2988
3008
|
display: flex;
|
|
2989
3009
|
flex-direction: column;
|
|
2990
3010
|
height: 100%;
|
|
@@ -2992,19 +3012,19 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
2992
3012
|
background-color: ${Ie("neutral",100)};
|
|
2993
3013
|
box-shadow: 0 0.0625rem 0.125rem -0.0625rem #0000001a;
|
|
2994
3014
|
box-shadow: 0 0.0625rem 0.1875rem 0 #0000001a;
|
|
2995
|
-
`,
|
|
3015
|
+
`,CS=ke`
|
|
2996
3016
|
border-right: ${_e(100)} solid
|
|
2997
3017
|
${Ie("neutral",300)};
|
|
2998
|
-
`,
|
|
3018
|
+
`,kS=ke`
|
|
2999
3019
|
border: ${_e(100)} solid ${Ie("neutral",300)};
|
|
3000
3020
|
border-radius: ${Be(300)};
|
|
3001
|
-
|
|
3021
|
+
`,$S=ke`
|
|
3002
3022
|
flex-shrink: 0;
|
|
3003
3023
|
min-height: ${Ve(1200)};
|
|
3004
3024
|
width: 100%;
|
|
3005
3025
|
border-bottom: ${_e(100)} solid
|
|
3006
3026
|
${Ie("neutral",300)};
|
|
3007
|
-
`,
|
|
3027
|
+
`,SS=ke`
|
|
3008
3028
|
flex: 1;
|
|
3009
3029
|
min-height: 0;
|
|
3010
3030
|
width: 100%;
|
|
@@ -3013,7 +3033,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
3013
3033
|
&:focus-visible {
|
|
3014
3034
|
outline-color: ${Ie("primary",700)};
|
|
3015
3035
|
}
|
|
3016
|
-
|
|
3036
|
+
`,MS=ke`
|
|
3017
3037
|
flex-shrink: 0;
|
|
3018
3038
|
min-height: ${Ve(1600)};
|
|
3019
3039
|
width: 100%;
|
|
@@ -3022,7 +3042,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
|
|
|
3022
3042
|
justify-content: flex-start;
|
|
3023
3043
|
border-top: ${_e(100)} solid
|
|
3024
3044
|
${Ie("neutral",300)};
|
|
3025
|
-
`,
|
|
3045
|
+
`,ES=({header:e,content:t,footer:n,variant:r="fixed",width:o})=>{const i=he();return be("div",{role:"region","aria-labelledby":e?i:void 0,css:[xS(o),"fixed"===r?CS:kS],children:[e?ve("div",{id:i,css:$S,children:e}):null,ve("div",{css:SS,children:t}),n?ve("div",{css:MS,children:n}):null]})};var TS,OS;!function(){if(OS)return TS;OS=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 o=0,i="Warning: "+e.replace(/%s/g,(function(){return t[o++]}));"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}};e=function(e,n,r){var o=arguments.length;r=new Array(o>2?o-2:0);for(var i=2;i<o;i++)r[i-2]=arguments[i];if(void 0===n)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||t.apply(null,[n].concat(r))}}TS=e}();var LS=AS()?de:ce;"production"!==process.env.NODE_ENV&&("undefined"!=typeof process?process:{env:{NODE_ENV:"development"}}).env;function AS(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;var NS=function(e){var t,n=e.children,r=e.type,o=void 0===r?"reach-portal":r,i=se(null),s=se(null),a=(t=ae(Object.create(null))[1],ue((function(){t(Object.create(null))}),[]));return LS((function(){if(i.current){var e=i.current.ownerDocument;return s.current=null==e?void 0:e.createElement(o),e.body.appendChild(s.current),a(),function(){s.current&&s.current.ownerDocument&&s.current.ownerDocument.body.removeChild(s.current)}}}),[o,a]),s.current?Ce(n,s.current):fe("span",{ref:i})};"production"!==process.env.NODE_ENV&&(NS.displayName="Portal");
|
|
3026
3046
|
/*! *****************************************************************************
|
|
3027
3047
|
Copyright (c) Microsoft Corporation.
|
|
3028
3048
|
|
|
@@ -3036,16 +3056,16 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
3036
3056
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
3037
3057
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
3038
3058
|
PERFORMANCE OF THIS SOFTWARE.
|
|
3039
|
-
***************************************************************************** */var AS,NS,RS=function(){return RS=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},RS.apply(this,arguments)};function DS(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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function PS(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 IS(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function zS(e,t,n){if(2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);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"}(AS||(AS={})),function(e){e.Parent="#_parent",e.Internal="#_internal"}(NS||(NS={}));var VS=AS.Start,HS=AS.Stop,BS=AS.Raise,_S=AS.Send,jS=AS.Cancel,FS=AS.NullEvent,qS=AS.Assign;AS.After,AS.DoneState;var WS=AS.Log,US=AS.Init,KS=AS.Invoke;AS.ErrorExecution;var GS,ZS=AS.ErrorPlatform,JS=AS.ErrorCustom,XS=AS.Update,YS=AS.Choose,QS=AS.Pure,eM={},tM="xstate.guard",nM="production"===process.env.NODE_ENV;function rM(e,t,n){void 0===n&&(n=".");var r=sM(e,n),o=sM(t,n);return CM(o)?!!CM(r)&&o===r:CM(r)?r in o:Object.keys(r).every((function(e){return e in o&&rM(r[e],o[e])}))}function oM(e){try{return CM(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 iM(e,t){try{return wM(e)?e:e.toString().split(t)}catch(t){throw new Error("'".concat(e,"' is not a valid state path."))}}function sM(e,t){return"object"==typeof(n=e)&&"value"in n&&"context"in n&&"event"in n&&"_event"in n?e.value:wM(e)?aM(e):"string"!=typeof e?e:aM(iM(e,t));var n}function aM(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 lM(e,t){for(var n={},r=Object.keys(e),o=0;o<r.length;o++){var i=r[o];n[i]=t(e[i],i,e,o)}return n}function cM(e,t,n){var r,o,i={};try{for(var s=PS(Object.keys(e)),a=s.next();!a.done;a=s.next()){var l=a.value,c=e[l];n(c)&&(i[l]=t(c,l,e))}}catch(e){r={error:e}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return i}var dM=function(e){return function(t){var n,r,o=t;try{for(var i=PS(e),s=i.next();!s.done;s=i.next()){o=o[s.value]}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}};function uM(e){return e?CM(e)?[[e]]:hM(Object.keys(e).map((function(t){var n=e[t];return"string"==typeof n||n&&Object.keys(n).length?uM(e[t]).map((function(e){return[t].concat(e)})):[[t]]}))):[[]]}function hM(e){var t;return(t=[]).concat.apply(t,zS([],IS(e),!1))}function pM(e){return wM(e)?e:[e]}function fM(e){return void 0===e?[]:pM(e)}function mM(e,t,n){var r,o;if(xM(e))return e(t,n.data);var i={};try{for(var s=PS(Object.keys(e)),a=s.next();!a.done;a=s.next()){var l=a.value,c=e[l];xM(c)?i[l]=c(t,n.data):i[l]=c}}catch(e){r={error:e}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return i}function gM(e){return e instanceof Promise||!(null===e||!xM(e)&&"object"!=typeof e||!xM(e.then))}function bM(e,t){return lM(e.states,(function(e,n){if(e){var r=(CM(t)?void 0:t[n])||(e?e.current:void 0);if(r)return{current:r,states:bM(e,r)}}}))}function vM(e,t,n,r){nM||yM(!!e,"Attempting to update undefined context");var o=e?n.reduce((function(e,n){var o,i,s=n.assignment,a={state:r,action:n,_event:t},l={};if(xM(s))l=s(e,t.data,a);else try{for(var c=PS(Object.keys(s)),d=c.next();!d.done;d=c.next()){var u=d.value,h=s[u];l[u]=xM(h)?h(e,t.data,a):h}}catch(e){o={error:e}}finally{try{d&&!d.done&&(i=c.return)&&i.call(c)}finally{if(o)throw o.error}}return Object.assign({},e,l)}),e):e;return o}var yM=function(){};function wM(e){return Array.isArray(e)}function xM(e){return"function"==typeof e}function CM(e){return"string"==typeof e}function kM(e,t){if(e)return CM(e)?{type:tM,name:e,predicate:t?t[e]:void 0}:xM(e)?{type:tM,name:e.name,predicate:e}:e}nM||(yM=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 $M=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function SM(e){return!!e&&"__xstatenode"in e}function MM(e,t){return CM(e)||"number"==typeof e?RS({type:e},t):e}function EM(e,t){if(!CM(e)&&"$$type"in e&&"scxml"===e.$$type)return e;var n=MM(e);return RS({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function TM(e,t){return pM(t).map((function(t){return void 0===t||"string"==typeof t||SM(t)?{target:t,event:e}:RS(RS({},t),{event:e})}))}function OM(e,t,n,r,o){var i=e.options.guards,s={state:o,cond:t,_event:r};if(t.type===tM)return((null==i?void 0:i[t.name])||t.predicate)(n,r.data,s);var a=null==i?void 0:i[t.type];if(!a)throw new Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return a(n,r.data,s)}function LM(e){return"string"==typeof e?{type:e}:e}function AM(e,t,n){var r=function(){},o="object"==typeof e,i=o?e:null;return{next:((o?e.next:e)||r).bind(i),error:((o?e.error:t)||r).bind(i),complete:((o?e.complete:n)||r).bind(i)}}function NM(e,t){return"".concat(e,":invocation[").concat(t,"]")}function RM(e){return(e.type===BS||e.type===_S&&e.to===NS.Internal)&&"number"!=typeof e.delay}(GS={})[$M]=function(){return this},GS[Symbol.observable]=function(){return this};var DM=EM({type:US});function PM(e,t){return t&&t[e]||void 0}function IM(e,t){var n;if(CM(e)||"number"==typeof e)n=xM(r=PM(e,t))?{type:e,exec:r}:r||{type:e,exec:void 0};else if(xM(e))n={type:e.name||e.toString(),exec:e};else{var r;if(xM(r=PM(e.type,t)))n=RS(RS({},e),{exec:r});else if(r){var o=r.type||e.type;n=RS(RS(RS({},r),e),{type:o})}else n=e}return n}var zM=function(e,t){return e?(wM(e)?e:[e]).map((function(e){return IM(e,t)})):[]};function VM(e){var t=IM(e);return RS(RS({id:CM(e)?e:t.id},t),{type:t.type})}function HM(e,t){var n="".concat(AS.DoneState,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function BM(e,t){var n="".concat(AS.DoneInvoke,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function _M(e,t){var n="".concat(AS.ErrorPlatform,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function jM(e,t,n,r,o,i,s){void 0===s&&(s=!1);var a=s?[]:function(e){var t,n,r=[];try{for(var o=PS(e),i=o.next();!i.done;i=o.next())for(var s=i.value,a=0;a<s.actions.length;)s.actions[a].type!==qS?a++:(r.push(s.actions[a]),s.actions.splice(a,1))}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}(o),l=a.length?vM(n,r,a,t):n,c=s?[n]:void 0,d=[];function u(o,a){var u;switch(a.type){case BS:var h=function(e,t,n,r){var o,i={_event:n},s=EM(xM(e.event)?e.event(t,n.data,i):e.event);if(CM(e.delay)){var a=r&&r[e.delay];o=xM(a)?a(t,n.data,i):a}else o=xM(e.delay)?e.delay(t,n.data,i):e.delay;return RS(RS({},e),{type:BS,_event:s,delay:o})}(a,l,r,e.options.delays);return i&&"number"==typeof h.delay&&i(h,l,r),h;case _S:var p=function(e,t,n,r){var o,i={_event:n},s=EM(xM(e.event)?e.event(t,n.data,i):e.event);if(CM(e.delay)){var a=r&&r[e.delay];o=xM(a)?a(t,n.data,i):a}else o=xM(e.delay)?e.delay(t,n.data,i):e.delay;var l=xM(e.to)?e.to(t,n.data,i):e.to;return RS(RS({},e),{to:l,_event:s,event:s.data,delay:o})}(a,l,r,e.options.delays);if(!nM){var f=a.delay;yM(!CM(f)||"number"==typeof p.delay,"No delay reference for delay expression '".concat(f,"' was found on machine '").concat(e.id,"'"))}return i&&p.to!==NS.Internal&&("entry"===o?d.push(p):i(p,l,r)),p;case WS:var m=function(e,t,n){return RS(RS({},e),{value:CM(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})}(a,l,r);return null==i||i(m,l,r),m;case YS:if(!(y=null===(u=a.conds.find((function(n){var o=kM(n.cond,e.options.guards);return!o||OM(e,o,l,r,i?void 0:t)})))||void 0===u?void 0:u.actions))return[];var g=IS(jM(e,t,l,r,[{type:o,actions:zM(fM(y),e.options.actions)}],i,s),2),b=g[0],v=g[1];return l=v,null==c||c.push(l),b;case QS:var y;if(!(y=a.get(l,r.data)))return[];var w=IS(jM(e,t,l,r,[{type:o,actions:zM(fM(y),e.options.actions)}],i,s),2),x=w[0],C=w[1];return l=C,null==c||c.push(l),x;case HS:m=function(e,t,n){var r=xM(e.activity)?e.activity(t,n.data):e.activity,o="string"==typeof r?{id:r}:r;return{type:AS.Stop,activity:o}}(a,l,r);return null==i||i(m,n,r),m;case qS:l=vM(l,r,[a],i?void 0:t),null==c||c.push(l);break;default:var k=IM(a,e.options.actions),$=k.exec;if(i)i(k,l,r);else if($&&c){var S=c.length-1,M=RS(RS({},k),{exec:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];$.apply(void 0,zS([c[S]],IS(t),!1))}});k=M}return k}}var h=hM(o.map((function(e){var t,n,o=[];try{for(var s=PS(e.actions),a=s.next();!a.done;a=s.next()){var c=a.value,h=u(e.type,c);h&&(o=o.concat(h))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return d.forEach((function(e){i(e,l,r)})),d.length=0,o})));return[h,l]}var FM=function(e,t){return t(e)};function qM(e){var t;return(t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}})[$M]=function(){return this},t}function WM(e,t,n){var r=qM(t);if(r.deferred=!0,SM(e)){var o=r.state=FM(void 0,(function(){return(n?e.withContext(n):e).initialState}));r.getSnapshot=function(){return o}}return r}var UM=function(e){return"atomic"===e.type||"final"===e.type};function KM(e){return Object.keys(e.states).map((function(t){return e.states[t]}))}function GM(e){return KM(e).filter((function(e){return"history"!==e.type}))}function ZM(e){var t=[e];return UM(e)?t:t.concat(hM(GM(e).map(ZM)))}function JM(e,t){var n,r,o,i,s,a,l,c,d=YM(new Set(e)),u=new Set(t);try{for(var h=PS(u),p=h.next();!p.done;p=h.next())for(var f=(k=p.value).parent;f&&!u.has(f);)u.add(f),f=f.parent}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}var m=YM(u);try{for(var g=PS(u),b=g.next();!b.done;b=g.next()){if("compound"!==(k=b.value).type||m.get(k)&&m.get(k).length){if("parallel"===k.type)try{for(var v=(s=void 0,PS(GM(k))),y=v.next();!y.done;y=v.next()){var w=y.value;u.has(w)||(u.add(w),d.get(w)?d.get(w).forEach((function(e){return u.add(e)})):w.initialStateNodes.forEach((function(e){return u.add(e)})))}}catch(e){s={error:e}}finally{try{y&&!y.done&&(a=v.return)&&a.call(v)}finally{if(s)throw s.error}}}else d.get(k)?d.get(k).forEach((function(e){return u.add(e)})):k.initialStateNodes.forEach((function(e){return u.add(e)}))}}catch(e){o={error:e}}finally{try{b&&!b.done&&(i=g.return)&&i.call(g)}finally{if(o)throw o.error}}try{for(var x=PS(u),C=x.next();!C.done;C=x.next()){var k;for(f=(k=C.value).parent;f&&!u.has(f);)u.add(f),f=f.parent}}catch(e){l={error:e}}finally{try{C&&!C.done&&(c=x.return)&&c.call(x)}finally{if(l)throw l.error}}return u}function XM(e,t){var n=t.get(e);if(!n)return{};if("compound"===e.type){var r=n[0];if(!r)return{};if(UM(r))return r.key}var o={};return n.forEach((function(e){o[e.key]=XM(e,t)})),o}function YM(e){var t,n,r=new Map;try{for(var o=PS(e),i=o.next();!i.done;i=o.next()){var s=i.value;r.has(s)||r.set(s,[]),s.parent&&(r.has(s.parent)||r.set(s.parent,[]),r.get(s.parent).push(s))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}function QM(e,t){return XM(e,YM(JM([e],t)))}function eE(e,t){return Array.isArray(e)?e.some((function(e){return e===t})):e instanceof Set&&e.has(t)}function tE(e,t){return"compound"===t.type?GM(t).some((function(t){return"final"===t.type&&eE(e,t)})):"parallel"===t.type&&GM(t).every((function(t){return tE(e,t)}))}function nE(e){return new Set(hM(e.map((function(e){return e.tags}))))}function rE(e,t){if(e===t)return!0;if(void 0===e||void 0===t)return!1;if(CM(e)||CM(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((function(n){return rE(e[n],t[n])}))}var oE=function(){function e(e){var t,n,r=this;this.actions=[],this.activities=eM,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||eM,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 zS([],IS(new Set(hM(zS([],IS(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:DM,_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=DM;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="."),CM(e))return[e];var r=Object.keys(e);return r.concat.apply(r,zS([],IS(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=DS(e,["configuration","transitions","tags","machine"]);return RS(RS({},n),{tags:Array.from(t)})},e.prototype.matches=function(e){return rM(e,this.value)},e.prototype.hasTag=function(e){return this.tags.has(e)},e.prototype.can=function(e){var t;nM&&yM(!!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}(),iE={deferEvents:!1},sE=function(){function e(e){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=RS(RS({},iE),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}(),aE=new Map,lE=0,cE=function(){return"x:".concat(lE++)},dE=function(e,t){return aE.set(e,t),e},uE=function(e){return aE.get(e)},hE=function(e){aE.delete(e)};function pE(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void(nM||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 fE(e){if(pE()){var t=function(){var e=pE();if(e&&"__xstate__"in e)return e.__xstate__}();t&&t.register(e)}}function mE(e,t){void 0===t&&(t={});var n=e.initialState,r=new Set,o=[],i=!1,s=function(e){var t;return RS(((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[$M]=function(){return this},t),e)}({id:t.id,send:function(t){o.push(t),function(){if(!i){for(i=!0;o.length>0;){var t=o.shift();n=e.transition(n,t,a),r.forEach((function(e){return e.next(n)}))}i=!1}}()},getSnapshot:function(){return n},subscribe:function(e,t,o){var i=AM(e,t,o);return r.add(i),i.next(n),{unsubscribe:function(){r.delete(i)}}}}),a={parent:t.parent,self:s,id:t.id||"anonymous",observers:r};return n=e.start?e.start(a):n,s}var gE,bE={sync:!1,autoForward:!1};!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(gE||(gE={}));var vE=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=gE.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(e,t){if(wM(e))return r.batch(e),r.state;var n=EM(MM(e,t));if(r.status===gE.Stopped)return nM||yM(!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!==gE.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 o,i=r.parent&&(t===NS.Parent||r.parent.id===t),s=i?r.parent:CM(t)?t===NS.Internal?r:r.children.get(t)||uE(t):(o=t)&&"function"==typeof o.send?t:void 0;if(s)if("machine"in s){if(r.status!==gE.Stopped||r.parent!==s||r.state.done){var a=RS(RS({},e),{name:e.name===JS?"".concat(_M(r.id)):e.name,origin:r.sessionId});!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([s,a]):s.send(a)}}else!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([s,e.data]):s.send(e.data);else{if(!i)throw new Error("Unable to send event to child '".concat(t,"' from service '").concat(r.id,"'."));nM||yM(!1,"Service '".concat(r.id,"' has no parent: unable to send event ").concat(e.type))}},this._exec=function(e,t,n,o){void 0===o&&(o=r.machine.options.actions);var i=e.exec||PM(e.type,o),s=xM(i)?i:i?i.exec:e.exec;if(s)try{return s(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 BS:var a=e;r.defer(a);break;case _S:var l=e;if("number"==typeof l.delay)return void r.defer(l);l.to?r.sendTo(l._event,l.to,n===DM):r.send(l._event);break;case jS:r.cancel(e.sendId);break;case VS:if(r.status!==gE.Running)return;var c=e.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[c.id||c.type])break;if(c.type===AS.Invoke){var d=LM(c.src),u=r.machine.options.services?r.machine.options.services[d.type]:void 0,h=c.id,p=c.data;nM||yM(!("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(nM||yM(!1,"No service found for invocation '".concat(c.src,"' in machine '").concat(r.machine.id,"'.")));var m=p?mM(p,t,n):void 0;if("string"==typeof u)return;var g=xM(u)?u(t,n.data,{data:m,src:d,meta:c.meta}):u;if(!g)return;var b=void 0;SM(g)&&(g=m?g.withContext(m):g,b={autoForward:f}),r.spawn(g,h,b)}else r.spawnActivity(c);break;case HS:r.stopChild(e.activity.id);break;case WS:var v=e,y=v.label,w=v.value;y?r.logger(y,w):r.logger(w);break;default:nM||yM(!1,"No implementation found for action type '".concat(e.type,"'"))}};var o=RS(RS({},e.defaultOptions),n),i=o.clock,s=o.logger,a=o.parent,l=o.id,c=void 0!==l?l:t.id;this.id=c,this.logger=s,this.clock=i,this.parent=a,this.options=o,this.scheduler=new sE({deferEvents:this.options.deferEvents}),this.sessionId=cE()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this;return this._initialState?this._initialState:FM(this,(function(){return e._initialState=e.machine.initialState,e._initialState}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return nM||yM(this.status!==gE.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 o=PS(e.actions),i=o.next();!i.done;i=o.next()){var s=i.value;this.exec(s,e,t)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e.prototype.update=function(e,t){var n,r,o,i,s,a,l,c,d=this;if(e._sessionid=this.sessionId,this._state=e,this.machine.config.predictableActionArguments&&t!==DM||!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 h=PS(this.eventListeners),p=h.next();!p.done;p=h.next()){(0,p.value)(e.event)}}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}try{for(var f=PS(this.listeners),m=f.next();!m.done;m=f.next()){(0,m.value)(e,e.event)}}catch(e){o={error:e}}finally{try{m&&!m.done&&(i=f.return)&&i.call(f)}finally{if(o)throw o.error}}try{for(var g=PS(this.contextListeners),b=g.next();!b.done;b=g.next()){(0,b.value)(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(e){s={error:e}}finally{try{b&&!b.done&&(a=g.return)&&a.call(g)}finally{if(s)throw s.error}}if(this.state.done){var v=e.configuration.find((function(e){return"final"===e.type&&e.parent===d.machine})),y=v&&v.doneData?mM(v.doneData,e.context,t):void 0;this._doneEvent=BM(this.id,y);try{for(var w=PS(this.doneListeners),x=w.next();!x.done;x=w.next()){(0,x.value)(this._doneEvent)}}catch(e){l={error:e}}finally{try{x&&!x.done&&(c=w.return)&&c.call(w)}finally{if(l)throw l.error}}this._stop(),this._stopChildren(),hE(this.sessionId)}},e.prototype.onTransition=function(e){return this.listeners.add(e),this.status===gE.Running&&e(this.state,this.state.event),this},e.prototype.subscribe=function(e,t,n){var r=this,o=AM(e,t,n);this.listeners.add(o.next),this.status!==gE.NotStarted&&o.next(this.state);var i=function(){r.doneListeners.delete(i),r.stopListeners.delete(i),o.complete()};return this.status===gE.Stopped?o.complete():(this.onDone(i),this.onStop(i)),{unsubscribe:function(){r.listeners.delete(o.next),r.doneListeners.delete(i),r.stopListeners.delete(i)}}},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===gE.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===gE.Running)return this;this.machine._init(),dE(this.sessionId,this),this.initialized=!0,this.status=gE.Running;var n=void 0===e?this.initialState:FM(this,(function(){return"object"==typeof(n=e)&&null!==n&&"value"in n&&"_event"in n?t.machine.resolveState(e):t.machine.resolveState(oE.from(e,t.machine.context));var n}));return this.options.devTools&&this.attachDev(),this.scheduler.initialize((function(){t.update(n,DM)})),this},e.prototype._stopChildren=function(){this.children.forEach((function(e){xM(e.stop)&&e.stop()})),this.children.clear()},e.prototype._stop=function(){var e,t,n,r,o,i,s,a,l,c;try{for(var d=PS(this.listeners),u=d.next();!u.done;u=d.next()){var h=u.value;this.listeners.delete(h)}}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 p=PS(this.stopListeners),f=p.next();!f.done;f=p.next()){(h=f.value)(),this.stopListeners.delete(h)}}catch(e){n={error:e}}finally{try{f&&!f.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}try{for(var m=PS(this.contextListeners),g=m.next();!g.done;g=m.next()){h=g.value;this.contextListeners.delete(h)}}catch(e){o={error:e}}finally{try{g&&!g.done&&(i=m.return)&&i.call(m)}finally{if(o)throw o.error}}try{for(var b=PS(this.doneListeners),v=b.next();!v.done;v=b.next()){h=v.value;this.doneListeners.delete(h)}}catch(e){s={error:e}}finally{try{v&&!v.done&&(a=b.return)&&a.call(b)}finally{if(s)throw s.error}}if(!this.initialized)return this;this.initialized=!1,this.status=gE.Stopped,this._initialState=void 0;try{for(var y=PS(Object.keys(this.delayedEventsMap)),w=y.next();!w.done;w=y.next()){var x=w.value;this.clock.clearTimeout(this.delayedEventsMap[x])}}catch(e){l={error:e}}finally{try{w&&!w.done&&(c=y.return)&&c.call(y)}finally{if(l)throw l.error}}this.scheduler.clear(),this.scheduler=new sE({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=EM({type:"xstate.stop"}),r=FM(e,(function(){var t=hM(zS([],IS(e.state.configuration),!1).sort((function(e,t){return t.order-e.order})).map((function(t){return zM(t.onExit,e.machine.options.actions)}))),r=IS(jM(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),o=r[0],i=r[1],s=new oE({value:e.state.value,context:i,_event:n,_sessionid:e.sessionId,historyValue:void 0,history:e.state,actions:o.filter((function(e){return!RM(e)})),activities:{},events:[],configuration:[],transitions:[],children:{},done:e.state.done,tags:e.state.tags,machine:e.machine});return s.changed=!0,s}));e.update(r,n),e._stopChildren(),hE(e.sessionId)}})),this},e.prototype.batch=function(e){var t=this;if(this.status===gE.NotStarted&&this.options.deferEvents)nM||yM(!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!==gE.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,o,i=t.state,s=!1,a=[],l=function(e){var r=EM(e);t.forward(r),i=FM(t,(function(){return t.machine.transition(i,r,void 0,n||void 0)})),a.push.apply(a,zS([],IS(t.machine.config.predictableActionArguments?i.actions:i.actions.map((function(e){return function(e,t){var n=e.exec;return RS(RS({},e),{exec:void 0!==n?function(){return n(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0})}(e,i)}))),!1)),s=s||!!i.changed};try{for(var c=PS(e),d=c.next();!d.done;d=c.next()){l(d.value)}}catch(e){r={error:e}}finally{try{d&&!d.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}i.changed=s,i.actions=a,t.update(i,EM(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=EM(e);if(0===r.name.indexOf(ZS)&&!this.state.nextEvents.some((function(e){return 0===e.indexOf(ZS)})))throw r.data.data;return FM(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=PS(this.forwardTo),o=r.next();!o.done;o=r.next()){var i=o.value,s=this.children.get(i);if(!s)throw new Error("Unable to forward event '".concat(e,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(i,"'."));s.send(e)}}catch(e){t={error:e}}finally{try{o&&!o.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),xM(t.stop)&&t.stop())},e.prototype.spawn=function(e,t,n){if(this.status!==gE.Running)return WM(e,t);if(gM(e))return this.spawnPromise(Promise.resolve(e),t);if(xM(e))return this.spawnCallback(e,t);if(function(e){try{return"function"==typeof e.send}catch(e){return!1}}(o=e)&&"id"in o)return this.spawnActor(e,t);if(function(e){try{return"subscribe"in e&&xM(e.subscribe)}catch(e){return!1}}(e))return this.spawnObservable(e,t);if(SM(e))return this.spawnMachine(e,RS(RS({},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,o},e.prototype.spawnMachine=function(t,n){var r=this;void 0===n&&(n={});var o=new e(t,RS(RS({},this.options),{parent:this,id:n.id||t.id})),i=RS(RS({},bE),n);i.sync&&o.onTransition((function(e){r.send(XS,{state:e,id:o.id})}));var s=o;return this.children.set(o.id,s),i.autoForward&&this.forwardTo.add(o.id),o.onDone((function(e){r.removeChild(o.id),r.send(EM(e,{origin:o.id}))})).start(),s},e.prototype.spawnBehavior=function(e,t){var n=mE(e,{id:t,parent:this});return this.children.set(t,n),n},e.prototype.spawnPromise=function(e,t){var n,r,o=this,i=!1;e.then((function(e){i||(r=e,o.removeChild(t),o.send(EM(BM(t,e),{origin:t})))}),(function(e){if(!i){o.removeChild(t);var n=_M(t,e);try{o.send(EM(n,{origin:t}))}catch(r){!function(e,t,n){if(!nM){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 o=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(o))}}}(e,r,t),o.devTools&&o.devTools.send(n,o.state),o.machine.strict&&o.stop()}}}));var s=((n={id:t,send:function(){},subscribe:function(t,n,r){var o=AM(t,n,r),i=!1;return e.then((function(e){i||(o.next(e),i||o.complete())}),(function(e){i||o.error(e)})),{unsubscribe:function(){return i=!0}}},stop:function(){i=!0},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[$M]=function(){return this},n);return this.children.set(t,s),s},e.prototype.spawnCallback=function(e,t){var n,r,o,i=this,s=!1,a=new Set,l=new Set;try{o=e((function(e){r=e,l.forEach((function(t){return t(e)})),s||i.send(EM(e,{origin:t}))}),(function(e){a.add(e)}))}catch(e){this.send(_M(t,e))}if(gM(o))return this.spawnPromise(o,t);var c=((n={id:t,send:function(e){return a.forEach((function(t){return t(e)}))},subscribe:function(e){var t=AM(e);return l.add(t.next),{unsubscribe:function(){l.delete(t.next)}}},stop:function(){s=!0,xM(o)&&o()},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[$M]=function(){return this},n);return this.children.set(t,c),c},e.prototype.spawnObservable=function(e,t){var n,r,o=this,i=e.subscribe((function(e){r=e,o.send(EM(e,{origin:t}))}),(function(e){o.removeChild(t),o.send(EM(_M(t,e),{origin:t}))}),(function(){o.removeChild(t),o.send(EM(BM(t),{origin:t}))})),s=((n={id:t,send:function(){},subscribe:function(t,n,r){return e.subscribe(t,n,r)},stop:function(){return i.unsubscribe()},getSnapshot:function(){return r},toJSON:function(){return{id:t}}})[$M]=function(){return this},n);return this.children.set(t,s),s},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 nM||yM(!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}}})[$M]=function(){return this},n))},e.prototype.attachDev=function(){var e=pE();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(RS(RS({name:this.id,autoPause:!0,stateSanitizer:function(e){return{value:e.value,context:e.context,actions:e.actions}}},t),{features:RS({jump:!1,skip:!1},t?t.features:void 0)}),this.machine),this.devTools.init(this.state)}fE(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[$M]=function(){return this},e.prototype.getSnapshot=function(){return this.status===gE.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=yE,e}();function yE(e,t){return new vE(e,t)}function wE(e){if("string"==typeof e){var t={type:e,toString:function(){return e}};return t}return e}function xE(e){return RS(RS({type:KS},e),{toJSON:function(){e.onDone,e.onError;var t=DS(e,["onDone","onError"]);return RS(RS({},t),{type:KS,src:wE(e.src)})}})}var CE="",kE="*",$E={},SE=function(e){return"#"===e[0]},ME=function(){function e(t,n,r,o){void 0===r&&(r="context"in t?t.context:void 0);var i,s=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==o?void 0:o.parent,this.key=this.config.key||(null==o?void 0:o.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||zS([this.machine.key],IS(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!==(i=this.config.schema)&&void 0!==i?i:{},this.description=this.config.description,nM||yM(!("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?lM(this.config.states,(function(t,n){var r,o=new e(t,{},void 0,{parent:s,key:n});return Object.assign(s.idMap,RS(((r={})[o.id]=o,r),o.idMap)),o})):$E;var a=0;!function e(t){var n,r;t.order=a++;try{for(var o=PS(KM(t)),i=o.next();!i.done;i=o.next()){e(i.value)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}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===CE})):CE in this.config.on),this.strict=!!this.config.strict,this.onEntry=fM(this.config.entry||this.config.onEntry).map((function(e){return IM(e)})),this.onExit=fM(this.config.exit||this.config.onExit).map((function(e){return IM(e)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=fM(this.config.invoke).map((function(e,t){var n,r;if(SM(e)){var o=NM(s.id,t);return s.machine.options.services=RS(((n={})[o]=e,n),s.machine.options.services),xE({src:o,id:o})}if(CM(e.src)){o=e.id||NM(s.id,t);return xE(RS(RS({},e),{id:o,src:e.src}))}if(SM(e.src)||xM(e.src)){o=e.id||NM(s.id,t);return s.machine.options.services=RS(((r={})[o]=e.src,r),s.machine.options.services),xE(RS(RS({id:o},e),{src:o}))}var i=e.src;return xE(RS(RS({id:NM(s.id,t)},e),{src:i}))})),this.activities=fM(this.config.activities).concat(this.invoke).map((function(e){return VM(e)})),this.transition=this.transition.bind(this),this.tags=fM(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||ZM(this).forEach((function(e){return e.on}))},e.prototype.withConfig=function(t,n){var r=this.options,o=r.actions,i=r.activities,s=r.guards,a=r.services,l=r.delays;return new e(this.config,{actions:RS(RS({},o),t.actions),activities:RS(RS({},i),t.activities),guards:RS(RS({},s),t.guards),services:RS(RS({},a),t.services),delays:RS(RS({},l),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 xM(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:lM(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===CE,n=this.transitions.filter((function(n){var r=n.eventType===e;return t?r:r||n.eventType===kE}));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(AS.After,"(").concat(e,")").concat(n)}(xM(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:_S,event:xM(e)?e:MM(e),delay:t?t.delay:void 0,id:t&&void 0!==t.id?t.id:xM(e)?e.name:oM(e)}}(r,{delay:t})),e.onExit.push({type:jS,sendId:r}),r},r=wM(t)?t.map((function(e,t){var r=n(e.delay,t);return RS(RS({},e),{event:r})})):hM(Object.keys(t).map((function(e,r){var o=t[e],i=CM(o)?{target:o}:o,s=isNaN(+e)?e:+e,a=n(s,r);return fM(i).map((function(e){return RS(RS({},e),{event:a,delay:s})}))})));return r.map((function(t){var n=t.delay;return RS(RS({},e.formatTransition(t)),{delay:n})}))},e.prototype.getStateNodes=function(e){var t,n=this;if(!e)return[];var r=e instanceof oE?e.value:sM(e,this.delimiter);if(CM(r)){var o=this.getStateNode(r).initial;return void 0!==o?this.getStateNodes(((t={})[r]=o,t)):[this,this.states[r]]}var i=Object.keys(r),s=[this];return s.push.apply(s,zS([],IS(hM(i.map((function(e){return n.getStateNode(e).getStateNodes(r[e])})))),!1)),s},e.prototype.handles=function(e){var t=oM(e);return this.events.includes(t)},e.prototype.resolveState=function(e){var t=e instanceof oE?e:oE.create(e),n=Array.from(JM([],this.getStateNodes(t.value)));return new oE(RS(RS({},t),{value:this.resolve(t.value),configuration:n,done:tE(n,this),tags:nE(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),o=this.getStateNode(r[0])._transition(e[r[0]],t,n);return o&&o.transitions.length?o:this.next(t,n)},e.prototype.transitionParallelNode=function(e,t,n){var r,o,i={};try{for(var s=PS(Object.keys(e)),a=s.next();!a.done;a=s.next()){var l=a.value,c=e[l];if(c){var d=this.getStateNode(l)._transition(c,t,n);d&&(i[l]=d)}}}catch(e){r={error:e}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}var u=Object.keys(i).map((function(e){return i[e]})),h=hM(u.map((function(e){return e.transitions})));if(!u.some((function(e){return e.transitions.length>0})))return this.next(t,n);var p=hM(Object.keys(i).map((function(e){return i[e].configuration})));return{transitions:h,exitSet:hM(u.map((function(e){return e.exitSet}))),configuration:p,source:t,actions:hM(Object.keys(i).map((function(e){return i[e].actions})))}},e.prototype._transition=function(e,t,n){return CM(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,EM(t))},e.prototype.next=function(e,t){var n,r,o,i=this,s=t.name,a=[],l=[];try{for(var c=PS(this.getCandidates(s)),d=c.next();!d.done;d=c.next()){var u=d.value,h=u.cond,p=u.in,f=e.context,m=!p||(CM(p)&&SE(p)?e.matches(sM(this.getStateNodeById(p).path,this.delimiter)):rM(sM(p,this.delimiter),dM(this.path.slice(0,-2))(e.value))),g=!1;try{g=!h||OM(this.machine,h,f,t,e)}catch(e){throw new Error("Unable to evaluate guard '".concat(h.name||h.type,"' in transition for event '").concat(s,"' in state node '").concat(this.id,"':\n").concat(e.message))}if(g&&m){void 0!==u.target&&(l=u.target),a.push.apply(a,zS([],IS(u.actions),!1)),o=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(o){if(!l.length)return{transitions:[o],exitSet:[],configuration:e.value?[this]:[],source:e,actions:a};var b=hM(l.map((function(t){return i.getRelativeStateNodes(t,e.historyValue)})));return{transitions:[o],exitSet:!!o.internal?[]:hM(l.map((function(e){return i.getPotentiallyReenteringNodes(e)}))),configuration:b,source:e,actions:a}}},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,o,i,s){var a,l,c,d,u=this,h=i?JM([],this.getStateNodes(i.value)):[],p=new Set;try{for(var f=PS(Array.from(e).sort((function(e,t){return e.order-t.order}))),m=f.next();!m.done;m=f.next()){(!eE(h,v=m.value)||eE(n.exitSet,v)||v.parent&&p.has(v.parent))&&p.add(v)}}catch(e){a={error:e}}finally{try{m&&!m.done&&(l=f.return)&&l.call(f)}finally{if(a)throw a.error}}try{for(var g=PS(h),b=g.next();!b.done;b=g.next()){var v;eE(e,v=b.value)&&!eE(n.exitSet,v.parent)||n.exitSet.push(v)}}catch(e){c={error:e}}finally{try{b&&!b.done&&(d=g.return)&&d.call(g)}finally{if(c)throw c.error}}n.exitSet.sort((function(e,t){return t.order-e.order}));var y=Array.from(p).sort((function(e,t){return e.order-t.order})),w=new Set(n.exitSet),x=hM(y.map((function(e){var t=[];if("final"!==e.type)return t;var i=e.parent;if(!i.parent)return t;t.push(HM(e.id,e.doneData),HM(i.id,e.doneData?mM(e.doneData,r,o):void 0));var s=i.parent;return"parallel"===s.type&&GM(s).every((function(e){return tE(n.configuration,e)}))&&t.push(HM(s.id)),t}))),C=y.map((function(e){var t=e.onEntry,n=e.activities.map((function(e){return function(e){var t=VM(e);return{type:AS.Start,activity:t,exec:void 0}}(e)}));return{type:"entry",actions:zM(s?zS(zS([],IS(t),!1),IS(n),!1):zS(zS([],IS(n),!1),IS(t),!1),u.machine.options.actions)}})).concat({type:"state_done",actions:x.map((function(e){return function(e,t){return{type:BS,event:"function"==typeof e?e:MM(e),delay:t?t.delay:void 0,id:null==t?void 0:t.id}}(e)}))}),k=Array.from(w).map((function(e){return{type:"exit",actions:zM(zS(zS([],IS(e.onExit),!1),IS(e.activities.map((function(e){return function(e){var t=xM(e)?e:VM(e);return{type:AS.Stop,activity:t,exec:void 0}}(e)}))),!1),u.machine.options.actions)}})).concat({type:"transition",actions:zM(n.actions,this.machine.options.actions)}).concat(C);if(t){var $=zM(hM(zS([],IS(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!RM(e)}));return k.concat({type:"stop",actions:$})}return k},e.prototype.transition=function(e,t,n,r){void 0===e&&(e=this.initialState);var o,i,s=EM(t);if(e instanceof oE)o=void 0===n?e:this.resolveState(oE.from(e,n));else{var a=CM(e)?this.resolve(aM(this.getResolvedPath(e))):this.resolve(e),l=null!=n?n:this.machine.context;o=this.resolveState(oE.from(a,l))}if(!nM&&s.name===kE)throw new Error("An event cannot have the wildcard type ('".concat(kE,"')"));if(this.strict&&!this.events.includes(s.name)&&(i=s.name,!/^(done|error)\./.test(i)))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(s.name,"'"));var c=this._transition(o.value,o,s)||{transitions:[],configuration:[],exitSet:[],source:o,actions:[]},d=JM([],this.getStateNodes(o.value)),u=c.configuration.length?JM(d,c.configuration):d;return c.configuration=zS([],IS(u),!1),this.resolveTransition(c,o,o.context,r,s)},e.prototype.resolveRaisedTransition=function(e,t,n,r){var o,i=e.actions;return(e=this.transition(e,t,void 0,r))._event=n,e.event=n.data,(o=e.actions).unshift.apply(o,zS([],IS(i),!1)),e},e.prototype.resolveTransition=function(e,t,n,r,o){var i,s,a,l,c=this;void 0===o&&(o=DM);var d=e.configuration,u=!t||e.transitions.length>0,h=u?e.configuration:t?t.configuration:[],p=tE(h,this),f=u?QM(this.machine,d):void 0,m=t?t.historyValue?t.historyValue:e.source?this.machine.historyValue(t.value):void 0:void 0,g=this.getActions(new Set(h),p,e,n,o,t,r),b=t?RS({},t.activities):{};try{for(var v=PS(g),y=v.next();!y.done;y=v.next()){var w=y.value;try{for(var x=(a=void 0,PS(w.actions)),C=x.next();!C.done;C=x.next()){var k=C.value;k.type===VS?b[k.activity.id||k.activity.type]=k:k.type===HS&&(b[k.activity.id||k.activity.type]=!1)}}catch(e){a={error:e}}finally{try{C&&!C.done&&(l=x.return)&&l.call(x)}finally{if(a)throw a.error}}}}catch(e){i={error:e}}finally{try{y&&!y.done&&(s=v.return)&&s.call(v)}finally{if(i)throw i.error}}var $,S,M=IS(jM(this,t,n,o,g,r,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),E=M[0],T=M[1],O=IS(function(e,t){var n,r,o=IS([[],[]],2),i=o[0],s=o[1];try{for(var a=PS(e),l=a.next();!l.done;l=a.next()){var c=l.value;t(c)?i.push(c):s.push(c)}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return[i,s]}(E,RM),2),L=O[0],A=O[1],N=E.filter((function(e){var t;return e.type===VS&&(null===(t=e.activity)||void 0===t?void 0:t.type)===KS})),R=N.reduce((function(e,t){return e[t.activity.id]=function(e,t,n,r){var o,i=LM(e.src),s=null===(o=null==t?void 0:t.options.services)||void 0===o?void 0:o[i.type],a=e.data?mM(e.data,n,r):void 0,l=s?WM(s,e.id,a):qM(e.id);return l.meta=e,l}(t.activity,c.machine,T,o),e}),t?RS({},t.children):{}),D=new oE({value:f||t.value,context:T,_event:o,_sessionid:t?t._sessionid:null,historyValue:f?m?($=m,S=f,{current:S,states:bM($,S)}):void 0:t?t.historyValue:void 0,history:!f||e.source?t:void 0,actions:f?A:[],activities:f?b:t?t.activities:{},events:[],configuration:h,transitions:e.transitions,children:R,done:p,tags:nE(h),machine:this}),P=n!==T;D.changed=o.name===XS||P;var I=D.history;I&&delete I.history;var z=!p&&(this._transient||d.some((function(e){return e._transient})));if(!(u||z&&o.name!==CE))return D;var V=D;if(!p)for(z&&(V=this.resolveRaisedTransition(V,{type:FS},o,r));L.length;){var H=L.shift();V=this.resolveRaisedTransition(V,H._event,o,r)}var B=V.changed||(I?!!V.actions.length||P||typeof I.value!=typeof V.value||!rE(V.value,I.value):void 0);return V.changed=B,V.history=I,V},e.prototype.getStateNode=function(e){if(SE(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=SE(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&&SE(e))try{return this.getStateNodeById(e.slice(1))}catch(e){}for(var t=iM(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||$E;switch(this.type){case"parallel":return lM(this.initialStateValue,(function(t,r){return t?n.getStateNode(r).resolve(e[r]||t):$E}));case"compound":if(CM(e)){var r=this.getStateNode(e);return"parallel"===r.type||"compound"===r.type?((t={})[e]=r.initialStateValue,t):e}return Object.keys(e).length?lM(e,(function(e,t){return e?n.getStateNode(t).resolve(e):$E})):this.initialStateValue||{};default:return e||$E}},e.prototype.getResolvedPath=function(e){if(SE(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 iM(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=cM(this.states,(function(e){return e.initialStateValue||$E}),(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=UM(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=CM(t.target)&&SE(t.target)?aM(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 UM(this)?[this]:"compound"!==this.type||this.initial?hM(uM(this.initialStateValue).map((function(t){return e.getFromRelativePath(t)}))):(nM||yM(!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=IS(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 o=this.getStateNode(n);if("history"===o.type)return o.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:cM(this.states,(function(t,n){if(!e)return t.historyValue();var r=CM(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?hM(uM(r).map((function(e){return n.getFromRelativePath(e)}))):n.initialStateNodes}var o,i,s=(o=n.path,i="states",function(e){var t,n,r=e;try{for(var s=PS(o),a=s.next();!a.done;a=s.next()){var l=a.value;r=r[i][l]}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return r})(e).current;return CM(s)?[n.getStateNode(s)]:hM(uM(s).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=hM(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 o=this.states,i=new Set(this.ownEvents);if(o)try{for(var s=PS(Object.keys(o)),a=s.next();!a.done;a=s.next()){var l=o[a.value];if(l.states)try{for(var c=(n=void 0,PS(l.events)),d=c.next();!d.done;d=c.next()){var u=d.value;i.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{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}return this.__cache.events=Array.from(i)},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(!CM(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 fM(e)}(e.target),r="internal"in e?e.internal:!n||n.some((function(e){return CM(e)&&e[0]===t.delimiter})),o=this.machine.options.guards,i=this.resolveTarget(n),s=RS(RS({},e),{actions:zM(fM(e.actions)),cond:kM(e.cond,o),target:i,source:this,internal:r,eventType:e.event,toJSON:function(){return RS(RS({},s),{target:s.target?s.target.map((function(e){return"#".concat(e.id)})):void 0,source:"#".concat(t.id)})}});return s},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 o=this.config.on,i=kE,s=o[i],a=void 0===s?[]:s,l=DS(o,["*"]);n=hM(Object.keys(l).map((function(e){nM||e!==CE||yM(!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=TM(e,l[e]);return nM||function(e,t,n){var r=n.slice(0,-1).some((function(e){return!("cond"in e)&&!("in"in e)&&(CM(e.target)||SM(e.target))})),o=t===CE?"the transient event":"event '".concat(t,"'");yM(!r,"One or more transitions for ".concat(o," on state '").concat(e.id,"' are unreachable. ")+"Make sure that the default transition is the last one defined.")}(r,e,t),t})).concat(TM(kE,a)))}else n=[];var c=this.config.always?TM("",this.config.always):[],d=this.config.onDone?TM(String(HM(this.id)),this.config.onDone):[];nM||yM(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var u=hM(this.invoke.map((function(e){var t=[];return e.onDone&&t.push.apply(t,zS([],IS(TM(String(BM(e.id)),e.onDone)),!1)),e.onError&&t.push.apply(t,zS([],IS(TM(String(_M(e.id)),e.onError)),!1)),t}))),h=this.after,p=hM(zS(zS(zS(zS([],IS(d),!1),IS(u),!1),IS(n),!1),IS(c),!1).map((function(e){return fM(e).map((function(e){return r.formatTransition(e)}))})));try{for(var f=PS(h),m=f.next();!m.done;m=f.next()){var g=m.value;p.push(g)}}catch(t){e={error:t}}finally{try{m&&!m.done&&(t=f.return)&&t.call(f)}finally{if(e)throw e.error}}return p},e}();var EE,TE=function(e){return{type:qS,assignment:e}};!function(e){e[e.Effect=1]="Effect",e[e.LayoutEffect=2]="LayoutEffect"}(EE||(EE={}));var OE="undefined"!=typeof document?de:function(){};function LE(e){var t=ee.useRef();return t.current||(t.current={v:e()}),t.current.v}var AE=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},NE=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 RE=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},DE=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function PE(e,t){(0,e.exec)(t.context,t._event.data,{action:e,state:t,_event:t._event})()}function IE(e){var t=se([]),n=se([]);OE((function(){var r=e.subscribe((function(e){var r,o;if(e.actions.length){var i=e.actions.filter((function(e){return"function"==typeof e.exec&&"__effect"in e.exec})),s=RE(function(e,t){var n,r,o=AE([[],[]],2),i=o[0],s=o[1];try{for(var a=NE(e),l=a.next();!l.done;l=a.next()){var c=l.value;t(c)?i.push(c):s.push(c)}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return[i,s]}(i,(function(e){return e.exec.__effect===EE.Effect})),2),a=s[0],l=s[1];(r=t.current).push.apply(r,DE([],RE(a.map((function(t){return[t,e]}))),!1)),(o=n.current).push.apply(o,DE([],RE(l.map((function(t){return[t,e]}))),!1))}}));return function(){r.unsubscribe()}}),[]),OE((function(){for(;n.current.length;){var e=RE(n.current.shift(),2);PE(e[0],e[1])}})),ce((function(){for(;t.current.length;){var e=RE(t.current.shift(),2);PE(e[0],e[1])}}))}var zE=function(){return zE=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},zE.apply(this,arguments)},VE=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},HE=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s};var BE=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s};function _E(e,t){void 0===t&&(t={});var n=ue((function(e){var t=void 0===e.changed&&Object.keys(e.children).length;(e.changed||t)&&s(e)}),[]),r=function(e,t,n){void 0===t&&(t={});var r=LE((function(){return"function"==typeof e?e():e}));if("production"!==process.env.NODE_ENV&&"function"!=typeof e){var o=HE(ae(r),1)[0];e!==o&&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 i=t.context,s=t.guards,a=t.actions,l=t.activities,c=t.services,d=t.delays,u=t.state,h=VE(t,["context","guards","actions","activities","services","delays","state"]),p=LE((function(){var e={context:i,guards:s,actions:a,activities:l,services:c,delays:d};return yE(r.withConfig(e,(function(){return zE(zE({},r.context),i)})),zE({deferEvents:!0},h))}));return OE((function(){var e;return n&&(e=p.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]),OE((function(){return p.start(u?oE.create(u):void 0),function(){p.stop()}}),[]),OE((function(){Object.assign(p.machine.options.actions,a),Object.assign(p.machine.options.guards,s),Object.assign(p.machine.options.activities,l),Object.assign(p.machine.options.services,c),Object.assign(p.machine.options.delays,d)}),[a,s,l,c,d]),IE(p),p}(e,t,n),o=BE(ae((function(){var e=r.machine.initialState;return t.state?oE.create(t.state):e})),2),i=o[0],s=o[1];return[i,r.send,r]}function jE(){return jE=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},jE.apply(null,arguments)}function FE(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 qE={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(qE.str(e)||qE.num(e))return e===t;if(qE.obj(e)&&qE.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!qE.und(n)||e===t}};function WE(e,t){return qE.und(e)||qE.nul(e)?t:e}function UE(e){return qE.und(e)?[]:qE.arr(e)?e:[e]}function KE(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 qE.fun(e)?e(...n):e}function GE(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,FE(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(qE.und(t))return jE({to:t},e);const n=Object.keys(e).reduce(((n,r)=>qE.und(t[r])?jE({},n,{[r]:e[r]}):n),{});return jE({to:t},n)}class ZE{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 JE extends ZE{constructor(){super(...arguments),this.payload=[],this.attach=()=>this.payload.forEach((e=>e instanceof ZE&&e.addChild(this))),this.detach=()=>this.payload.forEach((e=>e instanceof ZE&&e.removeChild(this)))}}class XE extends ZE{constructor(){super(...arguments),this.payload={},this.attach=()=>Object.values(this.payload).forEach((e=>e instanceof ZE&&e.addChild(this))),this.detach=()=>Object.values(this.payload).forEach((e=>e instanceof ZE&&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 ZE)&&(t[n]=r instanceof ZE?r[e?"getAnimatedValue":"getValue"]():r)}return t}getAnimatedValue(){return this.getValue(!0)}}let YE,QE;let eT,tT=e=>"undefined"!=typeof window?window.requestAnimationFrame(e):-1;let nT,rT=()=>Date.now();class oT extends XE{constructor(e,t){super(),this.update=void 0,this.payload=e.style?jE({},e,{style:nT(e.style)}):e,this.update=t,this.attach()}}let iT=!1;const sT=new Set,aT=()=>{if(!iT)return!1;let e=rT();for(let t of sT){let n=!1;for(let r=0;r<t.configs.length;r++){let o,i,s=t.configs[r];for(let t=0;t<s.animatedValues.length;t++){let r=s.animatedValues[t];if(r.done)continue;let a=s.fromValues[t],l=s.toValues[t],c=r.lastPosition,d=l instanceof ZE,u=Array.isArray(s.initialVelocity)?s.initialVelocity[t]:s.initialVelocity;if(d&&(l=l.getValue()),s.immediate)r.setValue(l),r.done=!0;else if("string"!=typeof a&&"string"!=typeof l){if(void 0!==s.duration)c=a+s.easing((e-r.startTime)/s.duration)*(l-a),o=e>=r.startTime+s.duration;else if(s.decay)c=a+u/(1-.998)*(1-Math.exp(-.0020000000000000018*(e-r.startTime))),o=Math.abs(r.lastPosition-c)<.1,o&&(l=c);else{i=void 0!==r.lastTime?r.lastTime:e,u=void 0!==r.lastVelocity?r.lastVelocity:s.initialVelocity,e>i+64&&(i=e);let t=Math.floor(e-i);for(let e=0;e<t;++e){u+=1*((-s.tension*(c-l)+-s.friction*u)/s.mass)/1e3,c+=1*u/1e3}let n=!(!s.clamp||0===s.tension)&&(a<l?c>l:c<l),d=Math.abs(u)<=s.precision,h=0===s.tension||Math.abs(l-c)<=s.precision;o=n||d&&h,r.lastVelocity=u,r.lastTime=e}d&&!s.toValues[t].done&&(o=!1),o?(r.value!==l&&(c=l),r.done=!0):n=!0,r.setValue(c),r.lastPosition=c}else r.setValue(l),r.done=!0}t.props.onFrame&&(t.values[s.name]=s.interpolation.getValue())}t.props.onFrame&&t.props.onFrame(t.values),n||(sT.delete(t),t.stop(!0))}return sT.size?tT(aT):iT=!1,iT};function lT(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return lT({range:e,output:t,extrapolate:n});if(eT&&"string"==typeof e.output[0])return eT(e);const r=e,o=r.output,i=r.range||[0,1],s=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=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,i);return function(e,t,n,r,o,i,s,a,l){let c=l?l(e):e;if(c<t){if("identity"===s)return c;"clamp"===s&&(c=t)}if(c>n){if("identity"===a)return c;"clamp"===a&&(c=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=i(c),r===-1/0?c=-c:o===1/0?c+=r:c=c*(o-r)+r;return c}(e,i[t],i[t+1],o[t],o[t+1],l,s,a,r.map)}}class cT extends JE{constructor(e,t,n,r){super(),this.calc=void 0,this.payload=e instanceof JE&&!(e instanceof cT)?e.getPayload():Array.isArray(e)?e:[e],this.calc=lT(t,n,r)}getValue(){return this.calc(...this.payload.map((e=>e.getValue())))}updateConfig(e,t,n){this.calc=lT(e,t,n)}interpolate(e,t,n){return new cT(this,e,t,n)}}const dT=(e,t,n)=>e&&new cT(e,t,n);function uT(e,t){"update"in e?t.add(e):e.getChildren().forEach((e=>uT(e,t)))}class hT extends ZE{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&&uT(this,this.animatedStyles),this.animatedStyles.forEach((e=>e.update()))}clearStyles(){this.animatedStyles.clear()}getValue(){return this.value}interpolate(e,t,n){return new cT(this,e,t,n)}}class pT extends JE{constructor(e){super(),this.payload=e.map((e=>new hT(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 cT(this,e,t)}}let fT=0,mT=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=fT++}update(e){if(!e)return this;const t=GE(e),n=t.delay,r=void 0===n?0:n,o=t.to,i=FE(t,["delay","to"]);if(qE.arr(o)||qE.fun(o))this.queue.push(jE({},i,{delay:r,to:o}));else if(o){let e={};Object.entries(o).forEach((t=>{let n=t[0],o=t[1];const s=jE({to:{[n]:o},delay:KE(r,n)},i),a=e[s.delay]&&e[s.delay].to;e[s.delay]=jE({},e[s.delay],s,{to:jE({},a,s.to)})})),this.queue=Object.values(e)}return this.queue=this.queue.sort(((e,t)=>e.delay-t.delay)),this.diff(i),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,o=void 0===r?{}:r;qE.obj(n)&&(this.merged=jE({},n,this.merged)),qE.obj(o)&&(this.merged=jE({},this.merged,o))}));const t=this.local=++this.guid,n=this.localQueue=this.queue;this.queue=[],n.forEach(((r,o)=>{let i=r.delay,s=FE(r,["delay"]);const a=r=>{o===n.length-1&&t===this.guid&&r&&(this.idle=!0,this.props.onRest&&this.props.onRest(this.merged)),e&&e()};let l=qE.arr(s.to)||qE.fun(s.to);i?setTimeout((()=>{t===this.guid&&(l?this.runAsync(s,a):this.diff(s).start(a))}),i):l?this.runAsync(s,a):this.diff(s).start(a)}))}else qE.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,sT.has(t)||sT.add(t),iT||(iT=!0,tT(aT));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,sT.has(t)&&sT.delete(t)),this}runAsync(e,t){var n=this;e.delay;let r=FE(e,["delay"]);const o=this.local;let i=Promise.resolve(void 0);if(qE.arr(r.to))for(let e=0;e<r.to.length;e++){const t=e,n=jE({},r,GE(r.to[t]));qE.arr(n.config)&&(n.config=n.config[t]),i=i.then((()=>{if(o===this.guid)return new Promise((e=>this.diff(n).start(e)))}))}else if(qE.fun(r.to)){let e,t=0;i=i.then((()=>r.to((n=>{const i=jE({},r,GE(n));if(qE.arr(i.config)&&(i.config=i.config[t]),t++,o===this.guid)return e=new Promise((e=>this.diff(i).start(e)))}),(function(e){return void 0===e&&(e=!0),n.stop(e)})).then((()=>e))))}i.then(t)}diff(e){this.props=jE({},this.props,e);let t=this.props,n=t.from,r=void 0===n?{}:n,o=t.to,i=void 0===o?{}:o,s=t.config,a=void 0===s?{}:s,l=t.reverse,c=t.attach,d=t.reset,u=t.immediate;if(l){var h=[i,r];r=h[0],i=h[1]}this.merged=jE({},r,this.merged,i),this.hasChanged=!1;let p=c&&c(this);if(this.animations=Object.entries(this.merged).reduce(((e,t)=>{let n=t[0],o=t[1],i=e[n]||{};const s=qE.num(o),l=qE.str(o)&&!o.startsWith("#")&&!/\d/.test(o)&&!QE[o],c=qE.arr(o),h=!s&&!c&&!l;let f=qE.und(r[n])?o:r[n],m=s||c||l?o:1,g=KE(a,n);p&&(m=p.animations[n].parent);let b,v=i.parent,y=i.interpolation,w=UE(p?m.getPayload():m),x=o;h&&(x=eT({range:[0,1],output:[o,o]})(1));let C=y&&y.getValue();const k=!qE.und(v)&&i.animatedValues.some((e=>!e.done)),$=!qE.equ(x,C),S=!qE.equ(x,i.previous),M=!qE.equ(g,i.config);if(d||S&&$||M){if(s||l)v=y=i.parent||new hT(f);else if(c)v=y=i.parent||new pT(f);else if(h){let e=i.interpolation&&i.interpolation.calc(i.parent.value);e=void 0===e||d?f:e,i.parent?(v=i.parent,v.setValue(0,!1)):v=new hT(0);const t={output:[e,o]};i.interpolation?(y=i.interpolation,i.interpolation.updateConfig(t)):y=v.interpolate(t)}return w=UE(p?m.getPayload():m),b=UE(v.getPayload()),d&&!h&&v.setValue(f,!1),this.hasChanged=!0,b.forEach((e=>{e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=k?e.lastVelocity:void 0,e.lastTime=k?e.lastTime:void 0,e.startTime=rT(),e.done=!1,e.animatedStyles.clear()})),KE(u,n)&&v.setValue(h?m:o,!1),jE({},e,{[n]:jE({},i,{name:n,parent:v,interpolation:y,animatedValues:b,toValues:w,previous:x,config:g,fromValues:UE(v.getValue()),immediate:KE(u,n),initialVelocity:WE(g.velocity,0),clamp:WE(g.clamp,!1),precision:WE(g.precision,.01),tension:WE(g.tension,170),friction:WE(g.friction,26),mass:WE(g.mass,1),duration:g.duration,easing:WE(g.easing,(e=>e)),decay:g.decay})})}return $?e:(h&&(v.setValue(1,!1),y.updateConfig({output:[x,x]})),v.done=!0,this.hasChanged=!0,jE({},e,{[n]:jE({},e[n],{previous:x})}))}),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 gT=e=>{const t=qE.fun(e),n=((e,t)=>{const n=se(!1),r=se(),o=qE.fun(t),i=oe((()=>{let n;return r.current&&(r.current.map((e=>e.destroy())),r.current=void 0),[new Array(e).fill().map(((e,r)=>{const i=new mT,s=o?KE(t,r,i):t[r];return 0===r&&(n=s.ref),i.update(s),n||i.start(),i})),n]}),[e]),s=i[0],a=i[1];r.current=s,me(a,(()=>({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 l=oe((()=>e=>r.current.map(((t,n)=>{t.update(o?KE(e,n,t):e[n]),a||t.start()}))),[e]);ce((()=>{n.current?o||l(t):a||r.current.forEach((e=>e.start()))})),ce((()=>(n.current=!0,()=>r.current.forEach((e=>e.destroy())))),[]);const c=r.current.map((e=>e.getValues()));return o?[c,l,e=>r.current.forEach((t=>t.pause(e)))]:c})(1,t?e:[e]),r=n[0],o=n[1],i=n[2];return t?[r[0],o,i]:r};class bT extends XE{constructor(e){void 0===e&&(e={}),super(),!e.transform||e.transform instanceof ZE||(e=YE.transform(e)),this.payload=e}}const vT={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},yT="[-+]?\\d*\\.?\\d+",wT=yT+"%";function xT(){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 CT=new RegExp("rgb"+xT(yT,yT,yT)),kT=new RegExp("rgba"+xT(yT,yT,yT,yT)),$T=new RegExp("hsl"+xT(yT,wT,wT)),ST=new RegExp("hsla"+xT(yT,wT,wT,yT)),MT=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ET=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,TT=/^#([0-9a-fA-F]{6})$/,OT=/^#([0-9a-fA-F]{8})$/;function LT(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 AT(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=LT(o,r,e+1/3),s=LT(o,r,e),a=LT(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*s)<<16|Math.round(255*a)<<8}function NT(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function RT(e){return(parseFloat(e)%360+360)%360/360}function DT(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function PT(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function IT(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=TT.exec(e))?parseInt(t[1]+"ff",16)>>>0:vT.hasOwnProperty(e)?vT[e]:(t=CT.exec(e))?(NT(t[1])<<24|NT(t[2])<<16|NT(t[3])<<8|255)>>>0:(t=kT.exec(e))?(NT(t[1])<<24|NT(t[2])<<16|NT(t[3])<<8|DT(t[4]))>>>0:(t=MT.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=OT.exec(e))?parseInt(t[1],16)>>>0:(t=ET.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=$T.exec(e))?(255|AT(RT(t[1]),PT(t[2]),PT(t[3])))>>>0:(t=ST.exec(e))?(AT(RT(t[1]),PT(t[2]),PT(t[3]))|DT(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 zT=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,VT=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,HT=new RegExp(`(${Object.keys(vT).join("|")})`,"g");let BT={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 _T=["Webkit","Ms","Moz","O"];function jT(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||BT.hasOwnProperty(e)&&BT[e]?(""+t).trim():t+"px"}BT=Object.keys(BT).reduce(((e,t)=>(_T.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),BT);const FT={};var qT,WT;qT=e=>new bT(e),nT=qT,WT=e=>{const t=e.output.map((e=>e.replace(VT,IT))).map((e=>e.replace(HT,IT))),n=t[0].match(zT).map((()=>[]));t.forEach((e=>{e.match(zT).forEach(((e,t)=>n[t].push(+e)))}));const r=t[0].match(zT).map(((t,r)=>lT(jE({},e,{output:n[r]}))));return e=>{let n=0;return t[0].replace(zT,(()=>r[n++](e))).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,((e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`))}},eT=WT,QE=vT,function(e,t){YE={fn:e,transform:t}}(((e,t)=>{if(!e.nodeType||void 0===e.setAttribute)return!1;{const o=t.style,i=t.children,s=t.scrollTop,a=t.scrollLeft,l=FE(t,["style","children","scrollTop","scrollLeft"]),c="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;void 0!==s&&(e.scrollTop=s),void 0!==a&&(e.scrollLeft=a),void 0!==i&&(e.textContent=i);for(let t in o)if(o.hasOwnProperty(t)){var n=0===t.indexOf("--"),r=jT(t,o[t],n);"float"===t&&(t="cssFloat"),n?e.style.setProperty(t,r):e.style[t]=r}for(let t in l){const n=c?t:FT[t]||(FT[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())));void 0!==e.getAttribute(n)&&e.setAttribute(n,l[t])}}}),(e=>e));var UT;const KT=(UT=e=>ie(((t,n)=>{const r=function(){const e=ae(!1)[1];return ue((()=>e((e=>!e))),[])}(),o=se(!0),i=se(null),s=se(null),a=ue((e=>{const t=i.current;i.current=new oT(e,(()=>{let e=!1;s.current&&(e=YE.fn(s.current,i.current.getAnimatedValue())),s.current&&!1!==e||r()})),t&&t.detach()}),[]);ce((()=>()=>{o.current=!1,i.current&&i.current.detach()}),[]),me(n,(()=>(e=>e.current)(s))),a(t);const l=i.current.getValue();l.scrollTop,l.scrollLeft;const c=FE(l,["scrollTop","scrollLeft"]),d=(u=e,!qE.fun(u)||u.prototype instanceof te.Component?e=>s.current=function(e,t){return t&&(qE.fun(t)?t(e):qE.obj(t)&&(t.current=e)),e}(e,n):void 0);var u;return te.createElement(e,jE({},c,{ref:d}))})),e=>(qE.arr(e)?e:Object.keys(e)).reduce(((e,t)=>{const n=t;return e[n]=UT(n),e}),UT))(["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 GT(e,t){return e.map((function(e,n){return e+t[n]}))}function ZT(e,t){return e.map((function(e,n){return e-t[n]}))}function JT(e){return Math.hypot.apply(Math,e)}function XT(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function YT(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 QT(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?-YT(t-e,n-t,r)+t:e>n?+YT(e-n,n-t,r)+n:e}function eO(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 tO(){return tO=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},tO.apply(this,arguments)}function nO(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function rO(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oO(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 iO(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 oO(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)?oO(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 sO(){}function aO(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?sO:1===t.length?t[0]:function(){for(var e,n,r=iO(t);!(n=r()).done;){e=n.value.apply(this,arguments)||e}return e}}function lO(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 cO(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 dO(e,t){void 0===e&&(e={});for(var n={},r=0,o=Object.entries(t);r<o.length;r++){var i=o[r],s=i[0],a=i[1];switch(typeof a){case"function":n[s]=a.call(n,e[s],s,e);break;case"object":n[s]=dO(e[s],a);break;case"boolean":a&&(n[s]=e[s])}}return n}var uO=tO({},{threshold:function(e){return void 0===e&&(e=0),lO(e)},rubberband:function(e){switch(void 0===e&&(e=0),e){case!0:return lO(.15);case!1:return lO(0);default:return lO(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:lO(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 uO.bounds(e(t))};var t=e,n=t.left,r=void 0===n?-1/0:n,o=t.right,i=void 0===o?1/0:o,s=t.top,a=void 0===s?-1/0:s,l=t.bottom;return[[r,i],[a,void 0===l?1/0:l]]}}),hO="undefined"!=typeof window&&window.document&&window.document.createElement,pO={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=hO?window:void 0),e})),eventOptions:function(e){var t=void 0===e?{}:e,n=t.passive,r=void 0===n||n,o=t.capture;return{passive:r,capture:void 0!==o&&o}}},fO=tO({},uO,{threshold:function(e,t,n){var r=n.filterTaps,o=void 0!==r&&r,i=n.lockDirection,s=void 0!==i&&i,a=n.axis,l=lO(e,o?3:s||(void 0===a?void 0:a)?1:0);return this.filterTaps=o||l[0]+l[1]>0,l},swipeVelocity:function(e){return void 0===e&&(e=.5),lO(e)},swipeDistance:function(e){return void 0===e&&(e=60),lO(e)},delay:function(e){switch(void 0===e&&(e=0),e){case!0:return 180;case!1:return 0;default:return e}}});function mO(e){var t=e.domTarget,n=e.eventOptions,r=e.window,o=e.enabled,i=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["domTarget","eventOptions","window","enabled"]),s=function(e){return void 0===e&&(e={}),dO(e,pO)}({domTarget:t,eventOptions:n,window:r,enabled:o});return s.drag=function(e){return void 0===e&&(e={}),dO(e,fO)}(i),s}function gO(e){return tO({_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:sO,canceled:!1,memo:void 0,args:void 0},e)}function bO(){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:gO({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:gO({da:[0,0],vdva:[0,0],origin:void 0,turns:0}),wheel:gO({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),move:gO({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),scroll:gO({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0})}}var vO=new Map,yO=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 o=arguments.length,i=new Array(o>2?o-2:0),s=2;s<o;s++)i[s-2]=arguments[s];n.controller.timeouts[n.stateKey]=(r=window).setTimeout.apply(r,[e,t].concat(i))},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 o=tO({},n.controller.state.shared,n.state,n.mapStateValues(n.state)),i=n.handler(o);return n.state.memo=void 0!==i?i:n.state.memo,n.state._active||n.clean(),o}}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,o=t.rubberband,i=t.threshold,s=this.state,a=s._bounds,l=s._initial,c=s._active,d=s._intentional,u=s.lastOffset,h=s.movement,p=this.getInternalMovement(e,this.state),f=!1===d[0]?wO(p[0],i[0]):d[0],m=!1===d[1]?wO(p[1],i[1]):d[1],g=this.checkIntentionality([f,m],p);if(g._blocked)return tO({},g,{_movement:p,delta:[0,0]});var b,v,y,w,x=g._intentional,C=p;(!1!==x[0]&&!1===d[0]&&(v=cO(n,this.state),b=cO(r,this.state),l[0]=v[0],a[0]=b[0]),!1!==x[1]&&!1===d[1])&&(v=null!=(y=v)?y:cO(n,this.state),b=null!=(w=b)?w:cO(r,this.state),l[1]=v[1],a[1]=b[1]);var k=[!1!==x[0]?p[0]-x[0]:l[0],!1!==x[1]?p[1]-x[1]:l[1]],$=GT(k,u),S=c?o:[0,0];return k=xO(a,GT(k,l),S),tO({},g,{intentional:!1!==x[0]||!1!==x[1],_initial:l,_movement:C,movement:k,values:e,offset:xO(a,$,S),delta:ZT(k,h)})},t.clean=function(){this.clearTimeout()},eO(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 wO(e,t){return Math.abs(e)>=t&&XT(e)*t}function xO(e,t,n){var r=t[0],o=t[1],i=n[0],s=n[1],a=e[0],l=a[0],c=a[1],d=e[1],u=d[0],h=d[1];return[QT(r,l,c,i),QT(o,u,h,s)]}function CO(e,t,n){var r=e.state,o=e.args,i=t.timeStamp,s=t.type,a=r.values;return{_lastEventType:s,event:t,timeStamp:i,elapsedTime:n?0:i-r.startTime,args:o,previous:a}}function kO(e,t){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return e.call.apply(e,[this,tO({},t,{event:n})].concat(o))}}var $O=function(e){var t=this;this.classes=e,this.bind=function(){for(var e={},n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];for(var i,s=iO(t.classes);!(i=s()).done;){new(0,i.value)(t,r).addBindings(e)}for(var a=0,l=Object.entries(t.nativeRefs);a<l.length;a++){var c=l[a];EO(e,c[0],kO(c[1],tO({},t.state.shared,{args:r})))}return t.config.domTarget?function(e,t){var n=e.config,r=e.domListeners,o=MO(n);if(!o)throw new Error("domTarget must be defined");var i=n.eventOptions;OO(o,SO(r),i);for(var s=0,a=Object.entries(t);s<a.length;s++){var l=a[s],c=l[0],d=l[1],u=c.slice(2).toLowerCase();r.push([u,aO.apply(void 0,d)])}TO(o,r,i)}(t,e):function(e,t){for(var n=e.config,r={},o=n.eventOptions.capture?"Capture":"",i=0,s=Object.entries(t);i<s.length;i++){var a=s[i],l=a[0],c=a[1],d=Array.isArray(c)?c:[c];r[l+o]=aO.apply(void 0,d)}return r}(t,e)},this.effect=function(){return t.config.domTarget&&t.bind(),t.clean},this.clean=function(){var e=MO(t.config),n=t.config.eventOptions;e&&OO(e,SO(t.domListeners),n),Object.values(t.timeouts).forEach(clearTimeout),function(e){var t=e.config,n=t.window,r=t.eventOptions,o=e.windowListeners;if(!n)return;for(var i in o){OO(n,o[i],r)}e.windowListeners={}}(t)},this.state=bO(),this.timeouts={},this.domListeners=[],this.windowListeners={}};function SO(e){return void 0===e&&(e=[]),e.splice(0,e.length)}function MO(e){var t=e.domTarget;return t&&"current"in t?t.current:t}function EO(e,t,n){e[t]||(e[t]=[]),e[t].push(n)}function TO(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,o=iO(t);!(r=o()).done;){var i=r.value,s=i[0],a=i[1];e.addEventListener(s,a,n)}}function OO(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,o=iO(t);!(r=o()).done;){var i=r.value,s=i[0],a=i[1];e.removeEventListener(s,a,n)}}function LO(e,t,n){void 0===n&&(n={});var r=function(e){var t=new Set;e.drag&&t.add(vO.get("drag"));e.wheel&&t.add(vO.get("wheel"));e.scroll&&t.add(vO.get("scroll"));e.move&&t.add(vO.get("move"));e.pinch&&t.add(vO.get("pinch"));e.hover&&t.add(vO.get("hover"));return t}(e),o=te.useMemo((function(){return new $O(r)}),[]);return o.config=t,o.handlers=e,o.nativeRefs=n,te.useEffect(o.effect,[]),o.config.domTarget?AO:o.bind}function AO(){"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`.")}var NO=function(e){function t(){return e.apply(this,arguments)||this}nO(t,e);var n=t.prototype;return n.getInternalMovement=function(e,t){return ZT(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],o=n[1],i=this.state.axis||(r>o?"x":r<o?"y":void 0);return this.config.axis||this.config.lockDirection?i?this.config.axis&&i!==this.config.axis?{_intentional:e,_blocked:!0,axis:i}:(e["x"===i?1:0]=!1,{_intentional:e,_blocked:!1,axis:i}):{_intentional:[!1,!1],_blocked:!1,axis:i}:{_intentional:e,_blocked:!1,axis:i}},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=JT(t),o=0===r?0:1/r,i=0===n?0:1/n,s=i*r,a=t.map((function(e){return i*e})),l=t.map((function(e){return o*e}));return{velocities:a,velocity:s,distance:JT(e),direction:l}}(n.movement,n.delta,r))}return n},n.mapStateValues=function(e){return{xy:e.values,vxvy:e.velocities}},t}(yO);function RO(e){if("touches"in e){var t=e.targetTouches,n=e.changedTouches;return t.length>0?t:n}return null}function DO(e){var t="buttons"in e?e.buttons:0,n=RO(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 PO(e){var t=RO(e),n=t?t[0]:e;return[n.clientX,n.clientY]}var IO=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,o=e.windowListeners;void 0===n&&(n=[]),r.window&&(OO(r.window,o[t],r.eventOptions),TO(r.window,o[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(rO(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=DO(e);if(n.down){t.updateSharedState(n);var r=PO(e),o=t.getKinematics(r,e),i=CO(rO(t),e),s=t.state._isTap,a=JT(o._movement);s&&a>=3&&(s=!1),t.updateGestureState(tO({},i,o,{_isTap:s})),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,o=r[0],i=r[1],s=t.state.movement,a=s[0],l=s[1],c=t.state._intentional,d=c[0],u=c[1],h=t.config.swipeVelocity,p=h[0],f=h[1],m=t.config.swipeDistance,g=m[0],b=m[1],v=tO({},CO(rO(t),e),t.getMovement(t.state.values)),y=[0,0];v.elapsedTime<220&&(!1!==d&&Math.abs(o)>p&&Math.abs(a)>g&&(y[0]=XT(o)),!1!==u&&Math.abs(i)>f&&Math.abs(l)>b&&(y[1]=XT(i))),t.updateGestureState(tO({},v,{tap:n,swipe:y})),t.fireGestureHandler(!0===n)}},t.clean=function(){e.prototype.clean.call(rO(t)),t.state._delayedEvent=!1,function(e,t){var n=e.config,r=e.windowListeners;n.window&&(OO(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}nO(t,e);var n=t.prototype;return n.startDrag=function(e){var t=PO(e);this.updateSharedState(DO(e)),this.updateGestureState(tO({},function(e,t,n){var r=e.state.offset,o=n.timeStamp;return tO({},bO()[e.stateKey],{_active:!0,values:t,initial:t,offset:r,lastOffset:r,startTime:o})}(this,t,e),CO(this,e,!0),{_pointerId:e.pointerId,cancel:this.onCancel})),this.updateGestureState(this.getMovement(t)),this.fireGestureHandler()},n.addBindings=function(e){(EO(e,"onPointerDown",this.onDragStart),this.config.filterTaps)&&EO(e,this.controller.config.eventOptions.capture?"onClick":"onClickCapture",this.onClick)},t}(NO);function zO(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,o,i;if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!zO(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(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!zO(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(i=e.entries();!(r=i.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=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if("undefined"!=typeof Element&&e instanceof Element)return!1;for(r=n;0!=r--;)if(!("_owner"===o[r]&&e.$$typeof||zO(e[o[r]],t[o[r]])))return!1;return!0}return e!=e&&t!=t}function VO(e,t){try{return zO(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 HO(e,t){void 0===t&&(t={}),vO.set("drag",IO);var n=se();return n.current||(n.current=function(e,t){var n,r,o=[],i=!1;return function(){for(var s=arguments.length,a=new Array(s),l=0;l<s;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}(mO,VO)),LO({drag:e},n.current(t))}
|
|
3059
|
+
***************************************************************************** */var RS,DS,PS=function(){return PS=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},PS.apply(this,arguments)};function IS(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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function zS(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 VS(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function HS(e,t,n){if(2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);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"}(RS||(RS={})),function(e){e.Parent="#_parent",e.Internal="#_internal"}(DS||(DS={}));var BS=RS.Start,_S=RS.Stop,jS=RS.Raise,FS=RS.Send,qS=RS.Cancel,WS=RS.NullEvent,US=RS.Assign;RS.After,RS.DoneState;var KS=RS.Log,GS=RS.Init,ZS=RS.Invoke;RS.ErrorExecution;var JS,XS=RS.ErrorPlatform,YS=RS.ErrorCustom,QS=RS.Update,eM=RS.Choose,tM=RS.Pure,nM={},rM="xstate.guard",oM="production"===process.env.NODE_ENV;function iM(e,t,n){void 0===n&&(n=".");var r=lM(e,n),o=lM(t,n);return $M(o)?!!$M(r)&&o===r:$M(r)?r in o:Object.keys(r).every((function(e){return e in o&&iM(r[e],o[e])}))}function sM(e){try{return $M(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 aM(e,t){try{return CM(e)?e:e.toString().split(t)}catch(t){throw new Error("'".concat(e,"' is not a valid state path."))}}function lM(e,t){return"object"==typeof(n=e)&&"value"in n&&"context"in n&&"event"in n&&"_event"in n?e.value:CM(e)?cM(e):"string"!=typeof e?e:cM(aM(e,t));var n}function cM(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 dM(e,t){for(var n={},r=Object.keys(e),o=0;o<r.length;o++){var i=r[o];n[i]=t(e[i],i,e,o)}return n}function uM(e,t,n){var r,o,i={};try{for(var s=zS(Object.keys(e)),a=s.next();!a.done;a=s.next()){var l=a.value,c=e[l];n(c)&&(i[l]=t(c,l,e))}}catch(e){r={error:e}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return i}var hM=function(e){return function(t){var n,r,o=t;try{for(var i=zS(e),s=i.next();!s.done;s=i.next()){o=o[s.value]}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}};function pM(e){return e?$M(e)?[[e]]:fM(Object.keys(e).map((function(t){var n=e[t];return"string"==typeof n||n&&Object.keys(n).length?pM(e[t]).map((function(e){return[t].concat(e)})):[[t]]}))):[[]]}function fM(e){var t;return(t=[]).concat.apply(t,HS([],VS(e),!1))}function mM(e){return CM(e)?e:[e]}function gM(e){return void 0===e?[]:mM(e)}function bM(e,t,n){var r,o;if(kM(e))return e(t,n.data);var i={};try{for(var s=zS(Object.keys(e)),a=s.next();!a.done;a=s.next()){var l=a.value,c=e[l];kM(c)?i[l]=c(t,n.data):i[l]=c}}catch(e){r={error:e}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return i}function vM(e){return e instanceof Promise||!(null===e||!kM(e)&&"object"!=typeof e||!kM(e.then))}function yM(e,t){return dM(e.states,(function(e,n){if(e){var r=($M(t)?void 0:t[n])||(e?e.current:void 0);if(r)return{current:r,states:yM(e,r)}}}))}function wM(e,t,n,r){oM||xM(!!e,"Attempting to update undefined context");var o=e?n.reduce((function(e,n){var o,i,s=n.assignment,a={state:r,action:n,_event:t},l={};if(kM(s))l=s(e,t.data,a);else try{for(var c=zS(Object.keys(s)),d=c.next();!d.done;d=c.next()){var u=d.value,h=s[u];l[u]=kM(h)?h(e,t.data,a):h}}catch(e){o={error:e}}finally{try{d&&!d.done&&(i=c.return)&&i.call(c)}finally{if(o)throw o.error}}return Object.assign({},e,l)}),e):e;return o}var xM=function(){};function CM(e){return Array.isArray(e)}function kM(e){return"function"==typeof e}function $M(e){return"string"==typeof e}function SM(e,t){if(e)return $M(e)?{type:rM,name:e,predicate:t?t[e]:void 0}:kM(e)?{type:rM,name:e.name,predicate:e}:e}oM||(xM=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 MM=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function EM(e){return!!e&&"__xstatenode"in e}function TM(e,t){return $M(e)||"number"==typeof e?PS({type:e},t):e}function OM(e,t){if(!$M(e)&&"$$type"in e&&"scxml"===e.$$type)return e;var n=TM(e);return PS({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function LM(e,t){return mM(t).map((function(t){return void 0===t||"string"==typeof t||EM(t)?{target:t,event:e}:PS(PS({},t),{event:e})}))}function AM(e,t,n,r,o){var i=e.options.guards,s={state:o,cond:t,_event:r};if(t.type===rM)return((null==i?void 0:i[t.name])||t.predicate)(n,r.data,s);var a=null==i?void 0:i[t.type];if(!a)throw new Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return a(n,r.data,s)}function NM(e){return"string"==typeof e?{type:e}:e}function RM(e,t,n){var r=function(){},o="object"==typeof e,i=o?e:null;return{next:((o?e.next:e)||r).bind(i),error:((o?e.error:t)||r).bind(i),complete:((o?e.complete:n)||r).bind(i)}}function DM(e,t){return"".concat(e,":invocation[").concat(t,"]")}function PM(e){return(e.type===jS||e.type===FS&&e.to===DS.Internal)&&"number"!=typeof e.delay}(JS={})[MM]=function(){return this},JS[Symbol.observable]=function(){return this};var IM=OM({type:GS});function zM(e,t){return t&&t[e]||void 0}function VM(e,t){var n;if($M(e)||"number"==typeof e)n=kM(r=zM(e,t))?{type:e,exec:r}:r||{type:e,exec:void 0};else if(kM(e))n={type:e.name||e.toString(),exec:e};else{var r;if(kM(r=zM(e.type,t)))n=PS(PS({},e),{exec:r});else if(r){var o=r.type||e.type;n=PS(PS(PS({},r),e),{type:o})}else n=e}return n}var HM=function(e,t){return e?(CM(e)?e:[e]).map((function(e){return VM(e,t)})):[]};function BM(e){var t=VM(e);return PS(PS({id:$M(e)?e:t.id},t),{type:t.type})}function _M(e,t){var n="".concat(RS.DoneState,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function jM(e,t){var n="".concat(RS.DoneInvoke,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function FM(e,t){var n="".concat(RS.ErrorPlatform,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function qM(e,t,n,r,o,i,s){void 0===s&&(s=!1);var a=s?[]:function(e){var t,n,r=[];try{for(var o=zS(e),i=o.next();!i.done;i=o.next())for(var s=i.value,a=0;a<s.actions.length;)s.actions[a].type!==US?a++:(r.push(s.actions[a]),s.actions.splice(a,1))}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}(o),l=a.length?wM(n,r,a,t):n,c=s?[n]:void 0,d=[];function u(o,a){var u;switch(a.type){case jS:var h=function(e,t,n,r){var o,i={_event:n},s=OM(kM(e.event)?e.event(t,n.data,i):e.event);if($M(e.delay)){var a=r&&r[e.delay];o=kM(a)?a(t,n.data,i):a}else o=kM(e.delay)?e.delay(t,n.data,i):e.delay;return PS(PS({},e),{type:jS,_event:s,delay:o})}(a,l,r,e.options.delays);return i&&"number"==typeof h.delay&&i(h,l,r),h;case FS:var p=function(e,t,n,r){var o,i={_event:n},s=OM(kM(e.event)?e.event(t,n.data,i):e.event);if($M(e.delay)){var a=r&&r[e.delay];o=kM(a)?a(t,n.data,i):a}else o=kM(e.delay)?e.delay(t,n.data,i):e.delay;var l=kM(e.to)?e.to(t,n.data,i):e.to;return PS(PS({},e),{to:l,_event:s,event:s.data,delay:o})}(a,l,r,e.options.delays);if(!oM){var f=a.delay;xM(!$M(f)||"number"==typeof p.delay,"No delay reference for delay expression '".concat(f,"' was found on machine '").concat(e.id,"'"))}return i&&p.to!==DS.Internal&&("entry"===o?d.push(p):i(p,l,r)),p;case KS:var m=function(e,t,n){return PS(PS({},e),{value:$M(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})}(a,l,r);return null==i||i(m,l,r),m;case eM:if(!(y=null===(u=a.conds.find((function(n){var o=SM(n.cond,e.options.guards);return!o||AM(e,o,l,r,i?void 0:t)})))||void 0===u?void 0:u.actions))return[];var g=VS(qM(e,t,l,r,[{type:o,actions:HM(gM(y),e.options.actions)}],i,s),2),b=g[0],v=g[1];return l=v,null==c||c.push(l),b;case tM:var y;if(!(y=a.get(l,r.data)))return[];var w=VS(qM(e,t,l,r,[{type:o,actions:HM(gM(y),e.options.actions)}],i,s),2),x=w[0],C=w[1];return l=C,null==c||c.push(l),x;case _S:m=function(e,t,n){var r=kM(e.activity)?e.activity(t,n.data):e.activity,o="string"==typeof r?{id:r}:r;return{type:RS.Stop,activity:o}}(a,l,r);return null==i||i(m,n,r),m;case US:l=wM(l,r,[a],i?void 0:t),null==c||c.push(l);break;default:var k=VM(a,e.options.actions),$=k.exec;if(i)i(k,l,r);else if($&&c){var S=c.length-1,M=PS(PS({},k),{exec:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];$.apply(void 0,HS([c[S]],VS(t),!1))}});k=M}return k}}var h=fM(o.map((function(e){var t,n,o=[];try{for(var s=zS(e.actions),a=s.next();!a.done;a=s.next()){var c=a.value,h=u(e.type,c);h&&(o=o.concat(h))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return d.forEach((function(e){i(e,l,r)})),d.length=0,o})));return[h,l]}var WM=function(e,t){return t(e)};function UM(e){var t;return(t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}})[MM]=function(){return this},t}function KM(e,t,n){var r=UM(t);if(r.deferred=!0,EM(e)){var o=r.state=WM(void 0,(function(){return(n?e.withContext(n):e).initialState}));r.getSnapshot=function(){return o}}return r}var GM=function(e){return"atomic"===e.type||"final"===e.type};function ZM(e){return Object.keys(e.states).map((function(t){return e.states[t]}))}function JM(e){return ZM(e).filter((function(e){return"history"!==e.type}))}function XM(e){var t=[e];return GM(e)?t:t.concat(fM(JM(e).map(XM)))}function YM(e,t){var n,r,o,i,s,a,l,c,d=eE(new Set(e)),u=new Set(t);try{for(var h=zS(u),p=h.next();!p.done;p=h.next())for(var f=(k=p.value).parent;f&&!u.has(f);)u.add(f),f=f.parent}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}var m=eE(u);try{for(var g=zS(u),b=g.next();!b.done;b=g.next()){if("compound"!==(k=b.value).type||m.get(k)&&m.get(k).length){if("parallel"===k.type)try{for(var v=(s=void 0,zS(JM(k))),y=v.next();!y.done;y=v.next()){var w=y.value;u.has(w)||(u.add(w),d.get(w)?d.get(w).forEach((function(e){return u.add(e)})):w.initialStateNodes.forEach((function(e){return u.add(e)})))}}catch(e){s={error:e}}finally{try{y&&!y.done&&(a=v.return)&&a.call(v)}finally{if(s)throw s.error}}}else d.get(k)?d.get(k).forEach((function(e){return u.add(e)})):k.initialStateNodes.forEach((function(e){return u.add(e)}))}}catch(e){o={error:e}}finally{try{b&&!b.done&&(i=g.return)&&i.call(g)}finally{if(o)throw o.error}}try{for(var x=zS(u),C=x.next();!C.done;C=x.next()){var k;for(f=(k=C.value).parent;f&&!u.has(f);)u.add(f),f=f.parent}}catch(e){l={error:e}}finally{try{C&&!C.done&&(c=x.return)&&c.call(x)}finally{if(l)throw l.error}}return u}function QM(e,t){var n=t.get(e);if(!n)return{};if("compound"===e.type){var r=n[0];if(!r)return{};if(GM(r))return r.key}var o={};return n.forEach((function(e){o[e.key]=QM(e,t)})),o}function eE(e){var t,n,r=new Map;try{for(var o=zS(e),i=o.next();!i.done;i=o.next()){var s=i.value;r.has(s)||r.set(s,[]),s.parent&&(r.has(s.parent)||r.set(s.parent,[]),r.get(s.parent).push(s))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}function tE(e,t){return QM(e,eE(YM([e],t)))}function nE(e,t){return Array.isArray(e)?e.some((function(e){return e===t})):e instanceof Set&&e.has(t)}function rE(e,t){return"compound"===t.type?JM(t).some((function(t){return"final"===t.type&&nE(e,t)})):"parallel"===t.type&&JM(t).every((function(t){return rE(e,t)}))}function oE(e){return new Set(fM(e.map((function(e){return e.tags}))))}function iE(e,t){if(e===t)return!0;if(void 0===e||void 0===t)return!1;if($M(e)||$M(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((function(n){return iE(e[n],t[n])}))}var sE=function(){function e(e){var t,n,r=this;this.actions=[],this.activities=nM,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||nM,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 HS([],VS(new Set(fM(HS([],VS(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:IM,_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=IM;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="."),$M(e))return[e];var r=Object.keys(e);return r.concat.apply(r,HS([],VS(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=IS(e,["configuration","transitions","tags","machine"]);return PS(PS({},n),{tags:Array.from(t)})},e.prototype.matches=function(e){return iM(e,this.value)},e.prototype.hasTag=function(e){return this.tags.has(e)},e.prototype.can=function(e){var t;oM&&xM(!!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}(),aE={deferEvents:!1},lE=function(){function e(e){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=PS(PS({},aE),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}(),cE=new Map,dE=0,uE=function(){return"x:".concat(dE++)},hE=function(e,t){return cE.set(e,t),e},pE=function(e){return cE.get(e)},fE=function(e){cE.delete(e)};function mE(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void(oM||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 gE(e){if(mE()){var t=function(){var e=mE();if(e&&"__xstate__"in e)return e.__xstate__}();t&&t.register(e)}}function bE(e,t){void 0===t&&(t={});var n=e.initialState,r=new Set,o=[],i=!1,s=function(e){var t;return PS(((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[MM]=function(){return this},t),e)}({id:t.id,send:function(t){o.push(t),function(){if(!i){for(i=!0;o.length>0;){var t=o.shift();n=e.transition(n,t,a),r.forEach((function(e){return e.next(n)}))}i=!1}}()},getSnapshot:function(){return n},subscribe:function(e,t,o){var i=RM(e,t,o);return r.add(i),i.next(n),{unsubscribe:function(){r.delete(i)}}}}),a={parent:t.parent,self:s,id:t.id||"anonymous",observers:r};return n=e.start?e.start(a):n,s}var vE,yE={sync:!1,autoForward:!1};!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(vE||(vE={}));var wE=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=vE.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(e,t){if(CM(e))return r.batch(e),r.state;var n=OM(TM(e,t));if(r.status===vE.Stopped)return oM||xM(!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!==vE.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 o,i=r.parent&&(t===DS.Parent||r.parent.id===t),s=i?r.parent:$M(t)?t===DS.Internal?r:r.children.get(t)||pE(t):(o=t)&&"function"==typeof o.send?t:void 0;if(s)if("machine"in s){if(r.status!==vE.Stopped||r.parent!==s||r.state.done){var a=PS(PS({},e),{name:e.name===YS?"".concat(FM(r.id)):e.name,origin:r.sessionId});!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([s,a]):s.send(a)}}else!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([s,e.data]):s.send(e.data);else{if(!i)throw new Error("Unable to send event to child '".concat(t,"' from service '").concat(r.id,"'."));oM||xM(!1,"Service '".concat(r.id,"' has no parent: unable to send event ").concat(e.type))}},this._exec=function(e,t,n,o){void 0===o&&(o=r.machine.options.actions);var i=e.exec||zM(e.type,o),s=kM(i)?i:i?i.exec:e.exec;if(s)try{return s(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 jS:var a=e;r.defer(a);break;case FS:var l=e;if("number"==typeof l.delay)return void r.defer(l);l.to?r.sendTo(l._event,l.to,n===IM):r.send(l._event);break;case qS:r.cancel(e.sendId);break;case BS:if(r.status!==vE.Running)return;var c=e.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[c.id||c.type])break;if(c.type===RS.Invoke){var d=NM(c.src),u=r.machine.options.services?r.machine.options.services[d.type]:void 0,h=c.id,p=c.data;oM||xM(!("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(oM||xM(!1,"No service found for invocation '".concat(c.src,"' in machine '").concat(r.machine.id,"'.")));var m=p?bM(p,t,n):void 0;if("string"==typeof u)return;var g=kM(u)?u(t,n.data,{data:m,src:d,meta:c.meta}):u;if(!g)return;var b=void 0;EM(g)&&(g=m?g.withContext(m):g,b={autoForward:f}),r.spawn(g,h,b)}else r.spawnActivity(c);break;case _S:r.stopChild(e.activity.id);break;case KS:var v=e,y=v.label,w=v.value;y?r.logger(y,w):r.logger(w);break;default:oM||xM(!1,"No implementation found for action type '".concat(e.type,"'"))}};var o=PS(PS({},e.defaultOptions),n),i=o.clock,s=o.logger,a=o.parent,l=o.id,c=void 0!==l?l:t.id;this.id=c,this.logger=s,this.clock=i,this.parent=a,this.options=o,this.scheduler=new lE({deferEvents:this.options.deferEvents}),this.sessionId=uE()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this;return this._initialState?this._initialState:WM(this,(function(){return e._initialState=e.machine.initialState,e._initialState}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return oM||xM(this.status!==vE.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 o=zS(e.actions),i=o.next();!i.done;i=o.next()){var s=i.value;this.exec(s,e,t)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e.prototype.update=function(e,t){var n,r,o,i,s,a,l,c,d=this;if(e._sessionid=this.sessionId,this._state=e,this.machine.config.predictableActionArguments&&t!==IM||!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 h=zS(this.eventListeners),p=h.next();!p.done;p=h.next()){(0,p.value)(e.event)}}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}try{for(var f=zS(this.listeners),m=f.next();!m.done;m=f.next()){(0,m.value)(e,e.event)}}catch(e){o={error:e}}finally{try{m&&!m.done&&(i=f.return)&&i.call(f)}finally{if(o)throw o.error}}try{for(var g=zS(this.contextListeners),b=g.next();!b.done;b=g.next()){(0,b.value)(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(e){s={error:e}}finally{try{b&&!b.done&&(a=g.return)&&a.call(g)}finally{if(s)throw s.error}}if(this.state.done){var v=e.configuration.find((function(e){return"final"===e.type&&e.parent===d.machine})),y=v&&v.doneData?bM(v.doneData,e.context,t):void 0;this._doneEvent=jM(this.id,y);try{for(var w=zS(this.doneListeners),x=w.next();!x.done;x=w.next()){(0,x.value)(this._doneEvent)}}catch(e){l={error:e}}finally{try{x&&!x.done&&(c=w.return)&&c.call(w)}finally{if(l)throw l.error}}this._stop(),this._stopChildren(),fE(this.sessionId)}},e.prototype.onTransition=function(e){return this.listeners.add(e),this.status===vE.Running&&e(this.state,this.state.event),this},e.prototype.subscribe=function(e,t,n){var r=this,o=RM(e,t,n);this.listeners.add(o.next),this.status!==vE.NotStarted&&o.next(this.state);var i=function(){r.doneListeners.delete(i),r.stopListeners.delete(i),o.complete()};return this.status===vE.Stopped?o.complete():(this.onDone(i),this.onStop(i)),{unsubscribe:function(){r.listeners.delete(o.next),r.doneListeners.delete(i),r.stopListeners.delete(i)}}},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===vE.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===vE.Running)return this;this.machine._init(),hE(this.sessionId,this),this.initialized=!0,this.status=vE.Running;var n=void 0===e?this.initialState:WM(this,(function(){return"object"==typeof(n=e)&&null!==n&&"value"in n&&"_event"in n?t.machine.resolveState(e):t.machine.resolveState(sE.from(e,t.machine.context));var n}));return this.options.devTools&&this.attachDev(),this.scheduler.initialize((function(){t.update(n,IM)})),this},e.prototype._stopChildren=function(){this.children.forEach((function(e){kM(e.stop)&&e.stop()})),this.children.clear()},e.prototype._stop=function(){var e,t,n,r,o,i,s,a,l,c;try{for(var d=zS(this.listeners),u=d.next();!u.done;u=d.next()){var h=u.value;this.listeners.delete(h)}}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 p=zS(this.stopListeners),f=p.next();!f.done;f=p.next()){(h=f.value)(),this.stopListeners.delete(h)}}catch(e){n={error:e}}finally{try{f&&!f.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}try{for(var m=zS(this.contextListeners),g=m.next();!g.done;g=m.next()){h=g.value;this.contextListeners.delete(h)}}catch(e){o={error:e}}finally{try{g&&!g.done&&(i=m.return)&&i.call(m)}finally{if(o)throw o.error}}try{for(var b=zS(this.doneListeners),v=b.next();!v.done;v=b.next()){h=v.value;this.doneListeners.delete(h)}}catch(e){s={error:e}}finally{try{v&&!v.done&&(a=b.return)&&a.call(b)}finally{if(s)throw s.error}}if(!this.initialized)return this;this.initialized=!1,this.status=vE.Stopped,this._initialState=void 0;try{for(var y=zS(Object.keys(this.delayedEventsMap)),w=y.next();!w.done;w=y.next()){var x=w.value;this.clock.clearTimeout(this.delayedEventsMap[x])}}catch(e){l={error:e}}finally{try{w&&!w.done&&(c=y.return)&&c.call(y)}finally{if(l)throw l.error}}this.scheduler.clear(),this.scheduler=new lE({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=OM({type:"xstate.stop"}),r=WM(e,(function(){var t=fM(HS([],VS(e.state.configuration),!1).sort((function(e,t){return t.order-e.order})).map((function(t){return HM(t.onExit,e.machine.options.actions)}))),r=VS(qM(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),o=r[0],i=r[1],s=new sE({value:e.state.value,context:i,_event:n,_sessionid:e.sessionId,historyValue:void 0,history:e.state,actions:o.filter((function(e){return!PM(e)})),activities:{},events:[],configuration:[],transitions:[],children:{},done:e.state.done,tags:e.state.tags,machine:e.machine});return s.changed=!0,s}));e.update(r,n),e._stopChildren(),fE(e.sessionId)}})),this},e.prototype.batch=function(e){var t=this;if(this.status===vE.NotStarted&&this.options.deferEvents)oM||xM(!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!==vE.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,o,i=t.state,s=!1,a=[],l=function(e){var r=OM(e);t.forward(r),i=WM(t,(function(){return t.machine.transition(i,r,void 0,n||void 0)})),a.push.apply(a,HS([],VS(t.machine.config.predictableActionArguments?i.actions:i.actions.map((function(e){return function(e,t){var n=e.exec;return PS(PS({},e),{exec:void 0!==n?function(){return n(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0})}(e,i)}))),!1)),s=s||!!i.changed};try{for(var c=zS(e),d=c.next();!d.done;d=c.next()){l(d.value)}}catch(e){r={error:e}}finally{try{d&&!d.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}i.changed=s,i.actions=a,t.update(i,OM(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=OM(e);if(0===r.name.indexOf(XS)&&!this.state.nextEvents.some((function(e){return 0===e.indexOf(XS)})))throw r.data.data;return WM(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=zS(this.forwardTo),o=r.next();!o.done;o=r.next()){var i=o.value,s=this.children.get(i);if(!s)throw new Error("Unable to forward event '".concat(e,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(i,"'."));s.send(e)}}catch(e){t={error:e}}finally{try{o&&!o.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),kM(t.stop)&&t.stop())},e.prototype.spawn=function(e,t,n){if(this.status!==vE.Running)return KM(e,t);if(vM(e))return this.spawnPromise(Promise.resolve(e),t);if(kM(e))return this.spawnCallback(e,t);if(function(e){try{return"function"==typeof e.send}catch(e){return!1}}(o=e)&&"id"in o)return this.spawnActor(e,t);if(function(e){try{return"subscribe"in e&&kM(e.subscribe)}catch(e){return!1}}(e))return this.spawnObservable(e,t);if(EM(e))return this.spawnMachine(e,PS(PS({},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,o},e.prototype.spawnMachine=function(t,n){var r=this;void 0===n&&(n={});var o=new e(t,PS(PS({},this.options),{parent:this,id:n.id||t.id})),i=PS(PS({},yE),n);i.sync&&o.onTransition((function(e){r.send(QS,{state:e,id:o.id})}));var s=o;return this.children.set(o.id,s),i.autoForward&&this.forwardTo.add(o.id),o.onDone((function(e){r.removeChild(o.id),r.send(OM(e,{origin:o.id}))})).start(),s},e.prototype.spawnBehavior=function(e,t){var n=bE(e,{id:t,parent:this});return this.children.set(t,n),n},e.prototype.spawnPromise=function(e,t){var n,r,o=this,i=!1;e.then((function(e){i||(r=e,o.removeChild(t),o.send(OM(jM(t,e),{origin:t})))}),(function(e){if(!i){o.removeChild(t);var n=FM(t,e);try{o.send(OM(n,{origin:t}))}catch(r){!function(e,t,n){if(!oM){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 o=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(o))}}}(e,r,t),o.devTools&&o.devTools.send(n,o.state),o.machine.strict&&o.stop()}}}));var s=((n={id:t,send:function(){},subscribe:function(t,n,r){var o=RM(t,n,r),i=!1;return e.then((function(e){i||(o.next(e),i||o.complete())}),(function(e){i||o.error(e)})),{unsubscribe:function(){return i=!0}}},stop:function(){i=!0},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[MM]=function(){return this},n);return this.children.set(t,s),s},e.prototype.spawnCallback=function(e,t){var n,r,o,i=this,s=!1,a=new Set,l=new Set;try{o=e((function(e){r=e,l.forEach((function(t){return t(e)})),s||i.send(OM(e,{origin:t}))}),(function(e){a.add(e)}))}catch(e){this.send(FM(t,e))}if(vM(o))return this.spawnPromise(o,t);var c=((n={id:t,send:function(e){return a.forEach((function(t){return t(e)}))},subscribe:function(e){var t=RM(e);return l.add(t.next),{unsubscribe:function(){l.delete(t.next)}}},stop:function(){s=!0,kM(o)&&o()},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[MM]=function(){return this},n);return this.children.set(t,c),c},e.prototype.spawnObservable=function(e,t){var n,r,o=this,i=e.subscribe((function(e){r=e,o.send(OM(e,{origin:t}))}),(function(e){o.removeChild(t),o.send(OM(FM(t,e),{origin:t}))}),(function(){o.removeChild(t),o.send(OM(jM(t),{origin:t}))})),s=((n={id:t,send:function(){},subscribe:function(t,n,r){return e.subscribe(t,n,r)},stop:function(){return i.unsubscribe()},getSnapshot:function(){return r},toJSON:function(){return{id:t}}})[MM]=function(){return this},n);return this.children.set(t,s),s},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 oM||xM(!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}}})[MM]=function(){return this},n))},e.prototype.attachDev=function(){var e=mE();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(PS(PS({name:this.id,autoPause:!0,stateSanitizer:function(e){return{value:e.value,context:e.context,actions:e.actions}}},t),{features:PS({jump:!1,skip:!1},t?t.features:void 0)}),this.machine),this.devTools.init(this.state)}gE(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[MM]=function(){return this},e.prototype.getSnapshot=function(){return this.status===vE.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=xE,e}();function xE(e,t){return new wE(e,t)}function CE(e){if("string"==typeof e){var t={type:e,toString:function(){return e}};return t}return e}function kE(e){return PS(PS({type:ZS},e),{toJSON:function(){e.onDone,e.onError;var t=IS(e,["onDone","onError"]);return PS(PS({},t),{type:ZS,src:CE(e.src)})}})}var $E="",SE="*",ME={},EE=function(e){return"#"===e[0]},TE=function(){function e(t,n,r,o){void 0===r&&(r="context"in t?t.context:void 0);var i,s=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==o?void 0:o.parent,this.key=this.config.key||(null==o?void 0:o.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||HS([this.machine.key],VS(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!==(i=this.config.schema)&&void 0!==i?i:{},this.description=this.config.description,oM||xM(!("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?dM(this.config.states,(function(t,n){var r,o=new e(t,{},void 0,{parent:s,key:n});return Object.assign(s.idMap,PS(((r={})[o.id]=o,r),o.idMap)),o})):ME;var a=0;!function e(t){var n,r;t.order=a++;try{for(var o=zS(ZM(t)),i=o.next();!i.done;i=o.next()){e(i.value)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}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===$E})):$E in this.config.on),this.strict=!!this.config.strict,this.onEntry=gM(this.config.entry||this.config.onEntry).map((function(e){return VM(e)})),this.onExit=gM(this.config.exit||this.config.onExit).map((function(e){return VM(e)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=gM(this.config.invoke).map((function(e,t){var n,r;if(EM(e)){var o=DM(s.id,t);return s.machine.options.services=PS(((n={})[o]=e,n),s.machine.options.services),kE({src:o,id:o})}if($M(e.src)){o=e.id||DM(s.id,t);return kE(PS(PS({},e),{id:o,src:e.src}))}if(EM(e.src)||kM(e.src)){o=e.id||DM(s.id,t);return s.machine.options.services=PS(((r={})[o]=e.src,r),s.machine.options.services),kE(PS(PS({id:o},e),{src:o}))}var i=e.src;return kE(PS(PS({id:DM(s.id,t)},e),{src:i}))})),this.activities=gM(this.config.activities).concat(this.invoke).map((function(e){return BM(e)})),this.transition=this.transition.bind(this),this.tags=gM(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||XM(this).forEach((function(e){return e.on}))},e.prototype.withConfig=function(t,n){var r=this.options,o=r.actions,i=r.activities,s=r.guards,a=r.services,l=r.delays;return new e(this.config,{actions:PS(PS({},o),t.actions),activities:PS(PS({},i),t.activities),guards:PS(PS({},s),t.guards),services:PS(PS({},a),t.services),delays:PS(PS({},l),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 kM(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:dM(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===$E,n=this.transitions.filter((function(n){var r=n.eventType===e;return t?r:r||n.eventType===SE}));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(RS.After,"(").concat(e,")").concat(n)}(kM(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:FS,event:kM(e)?e:TM(e),delay:t?t.delay:void 0,id:t&&void 0!==t.id?t.id:kM(e)?e.name:sM(e)}}(r,{delay:t})),e.onExit.push({type:qS,sendId:r}),r},r=CM(t)?t.map((function(e,t){var r=n(e.delay,t);return PS(PS({},e),{event:r})})):fM(Object.keys(t).map((function(e,r){var o=t[e],i=$M(o)?{target:o}:o,s=isNaN(+e)?e:+e,a=n(s,r);return gM(i).map((function(e){return PS(PS({},e),{event:a,delay:s})}))})));return r.map((function(t){var n=t.delay;return PS(PS({},e.formatTransition(t)),{delay:n})}))},e.prototype.getStateNodes=function(e){var t,n=this;if(!e)return[];var r=e instanceof sE?e.value:lM(e,this.delimiter);if($M(r)){var o=this.getStateNode(r).initial;return void 0!==o?this.getStateNodes(((t={})[r]=o,t)):[this,this.states[r]]}var i=Object.keys(r),s=[this];return s.push.apply(s,HS([],VS(fM(i.map((function(e){return n.getStateNode(e).getStateNodes(r[e])})))),!1)),s},e.prototype.handles=function(e){var t=sM(e);return this.events.includes(t)},e.prototype.resolveState=function(e){var t=e instanceof sE?e:sE.create(e),n=Array.from(YM([],this.getStateNodes(t.value)));return new sE(PS(PS({},t),{value:this.resolve(t.value),configuration:n,done:rE(n,this),tags:oE(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),o=this.getStateNode(r[0])._transition(e[r[0]],t,n);return o&&o.transitions.length?o:this.next(t,n)},e.prototype.transitionParallelNode=function(e,t,n){var r,o,i={};try{for(var s=zS(Object.keys(e)),a=s.next();!a.done;a=s.next()){var l=a.value,c=e[l];if(c){var d=this.getStateNode(l)._transition(c,t,n);d&&(i[l]=d)}}}catch(e){r={error:e}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}var u=Object.keys(i).map((function(e){return i[e]})),h=fM(u.map((function(e){return e.transitions})));if(!u.some((function(e){return e.transitions.length>0})))return this.next(t,n);var p=fM(Object.keys(i).map((function(e){return i[e].configuration})));return{transitions:h,exitSet:fM(u.map((function(e){return e.exitSet}))),configuration:p,source:t,actions:fM(Object.keys(i).map((function(e){return i[e].actions})))}},e.prototype._transition=function(e,t,n){return $M(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,OM(t))},e.prototype.next=function(e,t){var n,r,o,i=this,s=t.name,a=[],l=[];try{for(var c=zS(this.getCandidates(s)),d=c.next();!d.done;d=c.next()){var u=d.value,h=u.cond,p=u.in,f=e.context,m=!p||($M(p)&&EE(p)?e.matches(lM(this.getStateNodeById(p).path,this.delimiter)):iM(lM(p,this.delimiter),hM(this.path.slice(0,-2))(e.value))),g=!1;try{g=!h||AM(this.machine,h,f,t,e)}catch(e){throw new Error("Unable to evaluate guard '".concat(h.name||h.type,"' in transition for event '").concat(s,"' in state node '").concat(this.id,"':\n").concat(e.message))}if(g&&m){void 0!==u.target&&(l=u.target),a.push.apply(a,HS([],VS(u.actions),!1)),o=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(o){if(!l.length)return{transitions:[o],exitSet:[],configuration:e.value?[this]:[],source:e,actions:a};var b=fM(l.map((function(t){return i.getRelativeStateNodes(t,e.historyValue)})));return{transitions:[o],exitSet:!!o.internal?[]:fM(l.map((function(e){return i.getPotentiallyReenteringNodes(e)}))),configuration:b,source:e,actions:a}}},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,o,i,s){var a,l,c,d,u=this,h=i?YM([],this.getStateNodes(i.value)):[],p=new Set;try{for(var f=zS(Array.from(e).sort((function(e,t){return e.order-t.order}))),m=f.next();!m.done;m=f.next()){(!nE(h,v=m.value)||nE(n.exitSet,v)||v.parent&&p.has(v.parent))&&p.add(v)}}catch(e){a={error:e}}finally{try{m&&!m.done&&(l=f.return)&&l.call(f)}finally{if(a)throw a.error}}try{for(var g=zS(h),b=g.next();!b.done;b=g.next()){var v;nE(e,v=b.value)&&!nE(n.exitSet,v.parent)||n.exitSet.push(v)}}catch(e){c={error:e}}finally{try{b&&!b.done&&(d=g.return)&&d.call(g)}finally{if(c)throw c.error}}n.exitSet.sort((function(e,t){return t.order-e.order}));var y=Array.from(p).sort((function(e,t){return e.order-t.order})),w=new Set(n.exitSet),x=fM(y.map((function(e){var t=[];if("final"!==e.type)return t;var i=e.parent;if(!i.parent)return t;t.push(_M(e.id,e.doneData),_M(i.id,e.doneData?bM(e.doneData,r,o):void 0));var s=i.parent;return"parallel"===s.type&&JM(s).every((function(e){return rE(n.configuration,e)}))&&t.push(_M(s.id)),t}))),C=y.map((function(e){var t=e.onEntry,n=e.activities.map((function(e){return function(e){var t=BM(e);return{type:RS.Start,activity:t,exec:void 0}}(e)}));return{type:"entry",actions:HM(s?HS(HS([],VS(t),!1),VS(n),!1):HS(HS([],VS(n),!1),VS(t),!1),u.machine.options.actions)}})).concat({type:"state_done",actions:x.map((function(e){return function(e,t){return{type:jS,event:"function"==typeof e?e:TM(e),delay:t?t.delay:void 0,id:null==t?void 0:t.id}}(e)}))}),k=Array.from(w).map((function(e){return{type:"exit",actions:HM(HS(HS([],VS(e.onExit),!1),VS(e.activities.map((function(e){return function(e){var t=kM(e)?e:BM(e);return{type:RS.Stop,activity:t,exec:void 0}}(e)}))),!1),u.machine.options.actions)}})).concat({type:"transition",actions:HM(n.actions,this.machine.options.actions)}).concat(C);if(t){var $=HM(fM(HS([],VS(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!PM(e)}));return k.concat({type:"stop",actions:$})}return k},e.prototype.transition=function(e,t,n,r){void 0===e&&(e=this.initialState);var o,i,s=OM(t);if(e instanceof sE)o=void 0===n?e:this.resolveState(sE.from(e,n));else{var a=$M(e)?this.resolve(cM(this.getResolvedPath(e))):this.resolve(e),l=null!=n?n:this.machine.context;o=this.resolveState(sE.from(a,l))}if(!oM&&s.name===SE)throw new Error("An event cannot have the wildcard type ('".concat(SE,"')"));if(this.strict&&!this.events.includes(s.name)&&(i=s.name,!/^(done|error)\./.test(i)))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(s.name,"'"));var c=this._transition(o.value,o,s)||{transitions:[],configuration:[],exitSet:[],source:o,actions:[]},d=YM([],this.getStateNodes(o.value)),u=c.configuration.length?YM(d,c.configuration):d;return c.configuration=HS([],VS(u),!1),this.resolveTransition(c,o,o.context,r,s)},e.prototype.resolveRaisedTransition=function(e,t,n,r){var o,i=e.actions;return(e=this.transition(e,t,void 0,r))._event=n,e.event=n.data,(o=e.actions).unshift.apply(o,HS([],VS(i),!1)),e},e.prototype.resolveTransition=function(e,t,n,r,o){var i,s,a,l,c=this;void 0===o&&(o=IM);var d=e.configuration,u=!t||e.transitions.length>0,h=u?e.configuration:t?t.configuration:[],p=rE(h,this),f=u?tE(this.machine,d):void 0,m=t?t.historyValue?t.historyValue:e.source?this.machine.historyValue(t.value):void 0:void 0,g=this.getActions(new Set(h),p,e,n,o,t,r),b=t?PS({},t.activities):{};try{for(var v=zS(g),y=v.next();!y.done;y=v.next()){var w=y.value;try{for(var x=(a=void 0,zS(w.actions)),C=x.next();!C.done;C=x.next()){var k=C.value;k.type===BS?b[k.activity.id||k.activity.type]=k:k.type===_S&&(b[k.activity.id||k.activity.type]=!1)}}catch(e){a={error:e}}finally{try{C&&!C.done&&(l=x.return)&&l.call(x)}finally{if(a)throw a.error}}}}catch(e){i={error:e}}finally{try{y&&!y.done&&(s=v.return)&&s.call(v)}finally{if(i)throw i.error}}var $,S,M=VS(qM(this,t,n,o,g,r,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),E=M[0],T=M[1],O=VS(function(e,t){var n,r,o=VS([[],[]],2),i=o[0],s=o[1];try{for(var a=zS(e),l=a.next();!l.done;l=a.next()){var c=l.value;t(c)?i.push(c):s.push(c)}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return[i,s]}(E,PM),2),L=O[0],A=O[1],N=E.filter((function(e){var t;return e.type===BS&&(null===(t=e.activity)||void 0===t?void 0:t.type)===ZS})),R=N.reduce((function(e,t){return e[t.activity.id]=function(e,t,n,r){var o,i=NM(e.src),s=null===(o=null==t?void 0:t.options.services)||void 0===o?void 0:o[i.type],a=e.data?bM(e.data,n,r):void 0,l=s?KM(s,e.id,a):UM(e.id);return l.meta=e,l}(t.activity,c.machine,T,o),e}),t?PS({},t.children):{}),D=new sE({value:f||t.value,context:T,_event:o,_sessionid:t?t._sessionid:null,historyValue:f?m?($=m,S=f,{current:S,states:yM($,S)}):void 0:t?t.historyValue:void 0,history:!f||e.source?t:void 0,actions:f?A:[],activities:f?b:t?t.activities:{},events:[],configuration:h,transitions:e.transitions,children:R,done:p,tags:oE(h),machine:this}),P=n!==T;D.changed=o.name===QS||P;var I=D.history;I&&delete I.history;var z=!p&&(this._transient||d.some((function(e){return e._transient})));if(!(u||z&&o.name!==$E))return D;var V=D;if(!p)for(z&&(V=this.resolveRaisedTransition(V,{type:WS},o,r));L.length;){var H=L.shift();V=this.resolveRaisedTransition(V,H._event,o,r)}var B=V.changed||(I?!!V.actions.length||P||typeof I.value!=typeof V.value||!iE(V.value,I.value):void 0);return V.changed=B,V.history=I,V},e.prototype.getStateNode=function(e){if(EE(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=EE(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&&EE(e))try{return this.getStateNodeById(e.slice(1))}catch(e){}for(var t=aM(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||ME;switch(this.type){case"parallel":return dM(this.initialStateValue,(function(t,r){return t?n.getStateNode(r).resolve(e[r]||t):ME}));case"compound":if($M(e)){var r=this.getStateNode(e);return"parallel"===r.type||"compound"===r.type?((t={})[e]=r.initialStateValue,t):e}return Object.keys(e).length?dM(e,(function(e,t){return e?n.getStateNode(t).resolve(e):ME})):this.initialStateValue||{};default:return e||ME}},e.prototype.getResolvedPath=function(e){if(EE(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 aM(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=uM(this.states,(function(e){return e.initialStateValue||ME}),(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=GM(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=$M(t.target)&&EE(t.target)?cM(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 GM(this)?[this]:"compound"!==this.type||this.initial?fM(pM(this.initialStateValue).map((function(t){return e.getFromRelativePath(t)}))):(oM||xM(!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=VS(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 o=this.getStateNode(n);if("history"===o.type)return o.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:uM(this.states,(function(t,n){if(!e)return t.historyValue();var r=$M(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?fM(pM(r).map((function(e){return n.getFromRelativePath(e)}))):n.initialStateNodes}var o,i,s=(o=n.path,i="states",function(e){var t,n,r=e;try{for(var s=zS(o),a=s.next();!a.done;a=s.next()){var l=a.value;r=r[i][l]}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return r})(e).current;return $M(s)?[n.getStateNode(s)]:fM(pM(s).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=fM(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 o=this.states,i=new Set(this.ownEvents);if(o)try{for(var s=zS(Object.keys(o)),a=s.next();!a.done;a=s.next()){var l=o[a.value];if(l.states)try{for(var c=(n=void 0,zS(l.events)),d=c.next();!d.done;d=c.next()){var u=d.value;i.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{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}return this.__cache.events=Array.from(i)},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(!$M(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 gM(e)}(e.target),r="internal"in e?e.internal:!n||n.some((function(e){return $M(e)&&e[0]===t.delimiter})),o=this.machine.options.guards,i=this.resolveTarget(n),s=PS(PS({},e),{actions:HM(gM(e.actions)),cond:SM(e.cond,o),target:i,source:this,internal:r,eventType:e.event,toJSON:function(){return PS(PS({},s),{target:s.target?s.target.map((function(e){return"#".concat(e.id)})):void 0,source:"#".concat(t.id)})}});return s},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 o=this.config.on,i=SE,s=o[i],a=void 0===s?[]:s,l=IS(o,["*"]);n=fM(Object.keys(l).map((function(e){oM||e!==$E||xM(!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=LM(e,l[e]);return oM||function(e,t,n){var r=n.slice(0,-1).some((function(e){return!("cond"in e)&&!("in"in e)&&($M(e.target)||EM(e.target))})),o=t===$E?"the transient event":"event '".concat(t,"'");xM(!r,"One or more transitions for ".concat(o," on state '").concat(e.id,"' are unreachable. ")+"Make sure that the default transition is the last one defined.")}(r,e,t),t})).concat(LM(SE,a)))}else n=[];var c=this.config.always?LM("",this.config.always):[],d=this.config.onDone?LM(String(_M(this.id)),this.config.onDone):[];oM||xM(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var u=fM(this.invoke.map((function(e){var t=[];return e.onDone&&t.push.apply(t,HS([],VS(LM(String(jM(e.id)),e.onDone)),!1)),e.onError&&t.push.apply(t,HS([],VS(LM(String(FM(e.id)),e.onError)),!1)),t}))),h=this.after,p=fM(HS(HS(HS(HS([],VS(d),!1),VS(u),!1),VS(n),!1),VS(c),!1).map((function(e){return gM(e).map((function(e){return r.formatTransition(e)}))})));try{for(var f=zS(h),m=f.next();!m.done;m=f.next()){var g=m.value;p.push(g)}}catch(t){e={error:t}}finally{try{m&&!m.done&&(t=f.return)&&t.call(f)}finally{if(e)throw e.error}}return p},e}();var OE,LE=function(e){return{type:US,assignment:e}};!function(e){e[e.Effect=1]="Effect",e[e.LayoutEffect=2]="LayoutEffect"}(OE||(OE={}));var AE="undefined"!=typeof document?de:function(){};function NE(e){var t=ee.useRef();return t.current||(t.current={v:e()}),t.current.v}var RE=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},DE=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 PE=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},IE=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};function zE(e,t){(0,e.exec)(t.context,t._event.data,{action:e,state:t,_event:t._event})()}function VE(e){var t=se([]),n=se([]);AE((function(){var r=e.subscribe((function(e){var r,o;if(e.actions.length){var i=e.actions.filter((function(e){return"function"==typeof e.exec&&"__effect"in e.exec})),s=PE(function(e,t){var n,r,o=RE([[],[]],2),i=o[0],s=o[1];try{for(var a=DE(e),l=a.next();!l.done;l=a.next()){var c=l.value;t(c)?i.push(c):s.push(c)}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return[i,s]}(i,(function(e){return e.exec.__effect===OE.Effect})),2),a=s[0],l=s[1];(r=t.current).push.apply(r,IE([],PE(a.map((function(t){return[t,e]}))),!1)),(o=n.current).push.apply(o,IE([],PE(l.map((function(t){return[t,e]}))),!1))}}));return function(){r.unsubscribe()}}),[]),AE((function(){for(;n.current.length;){var e=PE(n.current.shift(),2);zE(e[0],e[1])}})),ce((function(){for(;t.current.length;){var e=PE(t.current.shift(),2);zE(e[0],e[1])}}))}var HE=function(){return HE=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},HE.apply(this,arguments)},BE=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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},_E=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s};var jE=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s};function FE(e,t){void 0===t&&(t={});var n=ue((function(e){var t=void 0===e.changed&&Object.keys(e.children).length;(e.changed||t)&&s(e)}),[]),r=function(e,t,n){void 0===t&&(t={});var r=NE((function(){return"function"==typeof e?e():e}));if("production"!==process.env.NODE_ENV&&"function"!=typeof e){var o=_E(ae(r),1)[0];e!==o&&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 i=t.context,s=t.guards,a=t.actions,l=t.activities,c=t.services,d=t.delays,u=t.state,h=BE(t,["context","guards","actions","activities","services","delays","state"]),p=NE((function(){var e={context:i,guards:s,actions:a,activities:l,services:c,delays:d};return xE(r.withConfig(e,(function(){return HE(HE({},r.context),i)})),HE({deferEvents:!0},h))}));return AE((function(){var e;return n&&(e=p.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]),AE((function(){return p.start(u?sE.create(u):void 0),function(){p.stop()}}),[]),AE((function(){Object.assign(p.machine.options.actions,a),Object.assign(p.machine.options.guards,s),Object.assign(p.machine.options.activities,l),Object.assign(p.machine.options.services,c),Object.assign(p.machine.options.delays,d)}),[a,s,l,c,d]),VE(p),p}(e,t,n),o=jE(ae((function(){var e=r.machine.initialState;return t.state?sE.create(t.state):e})),2),i=o[0],s=o[1];return[i,r.send,r]}function qE(){return qE=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},qE.apply(null,arguments)}function WE(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 UE={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(UE.str(e)||UE.num(e))return e===t;if(UE.obj(e)&&UE.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!UE.und(n)||e===t}};function KE(e,t){return UE.und(e)||UE.nul(e)?t:e}function GE(e){return UE.und(e)?[]:UE.arr(e)?e:[e]}function ZE(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 UE.fun(e)?e(...n):e}function JE(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,WE(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(UE.und(t))return qE({to:t},e);const n=Object.keys(e).reduce(((n,r)=>UE.und(t[r])?qE({},n,{[r]:e[r]}):n),{});return qE({to:t},n)}class XE{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 YE extends XE{constructor(){super(...arguments),this.payload=[],this.attach=()=>this.payload.forEach((e=>e instanceof XE&&e.addChild(this))),this.detach=()=>this.payload.forEach((e=>e instanceof XE&&e.removeChild(this)))}}class QE extends XE{constructor(){super(...arguments),this.payload={},this.attach=()=>Object.values(this.payload).forEach((e=>e instanceof XE&&e.addChild(this))),this.detach=()=>Object.values(this.payload).forEach((e=>e instanceof XE&&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 XE)&&(t[n]=r instanceof XE?r[e?"getAnimatedValue":"getValue"]():r)}return t}getAnimatedValue(){return this.getValue(!0)}}let eT,tT;let nT,rT=e=>"undefined"!=typeof window?window.requestAnimationFrame(e):-1;let oT,iT=()=>Date.now();class sT extends QE{constructor(e,t){super(),this.update=void 0,this.payload=e.style?qE({},e,{style:oT(e.style)}):e,this.update=t,this.attach()}}let aT=!1;const lT=new Set,cT=()=>{if(!aT)return!1;let e=iT();for(let t of lT){let n=!1;for(let r=0;r<t.configs.length;r++){let o,i,s=t.configs[r];for(let t=0;t<s.animatedValues.length;t++){let r=s.animatedValues[t];if(r.done)continue;let a=s.fromValues[t],l=s.toValues[t],c=r.lastPosition,d=l instanceof XE,u=Array.isArray(s.initialVelocity)?s.initialVelocity[t]:s.initialVelocity;if(d&&(l=l.getValue()),s.immediate)r.setValue(l),r.done=!0;else if("string"!=typeof a&&"string"!=typeof l){if(void 0!==s.duration)c=a+s.easing((e-r.startTime)/s.duration)*(l-a),o=e>=r.startTime+s.duration;else if(s.decay)c=a+u/(1-.998)*(1-Math.exp(-.0020000000000000018*(e-r.startTime))),o=Math.abs(r.lastPosition-c)<.1,o&&(l=c);else{i=void 0!==r.lastTime?r.lastTime:e,u=void 0!==r.lastVelocity?r.lastVelocity:s.initialVelocity,e>i+64&&(i=e);let t=Math.floor(e-i);for(let e=0;e<t;++e){u+=1*((-s.tension*(c-l)+-s.friction*u)/s.mass)/1e3,c+=1*u/1e3}let n=!(!s.clamp||0===s.tension)&&(a<l?c>l:c<l),d=Math.abs(u)<=s.precision,h=0===s.tension||Math.abs(l-c)<=s.precision;o=n||d&&h,r.lastVelocity=u,r.lastTime=e}d&&!s.toValues[t].done&&(o=!1),o?(r.value!==l&&(c=l),r.done=!0):n=!0,r.setValue(c),r.lastPosition=c}else r.setValue(l),r.done=!0}t.props.onFrame&&(t.values[s.name]=s.interpolation.getValue())}t.props.onFrame&&t.props.onFrame(t.values),n||(lT.delete(t),t.stop(!0))}return lT.size?rT(cT):aT=!1,aT};function dT(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return dT({range:e,output:t,extrapolate:n});if(nT&&"string"==typeof e.output[0])return nT(e);const r=e,o=r.output,i=r.range||[0,1],s=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=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,i);return function(e,t,n,r,o,i,s,a,l){let c=l?l(e):e;if(c<t){if("identity"===s)return c;"clamp"===s&&(c=t)}if(c>n){if("identity"===a)return c;"clamp"===a&&(c=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=i(c),r===-1/0?c=-c:o===1/0?c+=r:c=c*(o-r)+r;return c}(e,i[t],i[t+1],o[t],o[t+1],l,s,a,r.map)}}class uT extends YE{constructor(e,t,n,r){super(),this.calc=void 0,this.payload=e instanceof YE&&!(e instanceof uT)?e.getPayload():Array.isArray(e)?e:[e],this.calc=dT(t,n,r)}getValue(){return this.calc(...this.payload.map((e=>e.getValue())))}updateConfig(e,t,n){this.calc=dT(e,t,n)}interpolate(e,t,n){return new uT(this,e,t,n)}}const hT=(e,t,n)=>e&&new uT(e,t,n);function pT(e,t){"update"in e?t.add(e):e.getChildren().forEach((e=>pT(e,t)))}class fT extends XE{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&&pT(this,this.animatedStyles),this.animatedStyles.forEach((e=>e.update()))}clearStyles(){this.animatedStyles.clear()}getValue(){return this.value}interpolate(e,t,n){return new uT(this,e,t,n)}}class mT extends YE{constructor(e){super(),this.payload=e.map((e=>new fT(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 uT(this,e,t)}}let gT=0,bT=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=gT++}update(e){if(!e)return this;const t=JE(e),n=t.delay,r=void 0===n?0:n,o=t.to,i=WE(t,["delay","to"]);if(UE.arr(o)||UE.fun(o))this.queue.push(qE({},i,{delay:r,to:o}));else if(o){let e={};Object.entries(o).forEach((t=>{let n=t[0],o=t[1];const s=qE({to:{[n]:o},delay:ZE(r,n)},i),a=e[s.delay]&&e[s.delay].to;e[s.delay]=qE({},e[s.delay],s,{to:qE({},a,s.to)})})),this.queue=Object.values(e)}return this.queue=this.queue.sort(((e,t)=>e.delay-t.delay)),this.diff(i),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,o=void 0===r?{}:r;UE.obj(n)&&(this.merged=qE({},n,this.merged)),UE.obj(o)&&(this.merged=qE({},this.merged,o))}));const t=this.local=++this.guid,n=this.localQueue=this.queue;this.queue=[],n.forEach(((r,o)=>{let i=r.delay,s=WE(r,["delay"]);const a=r=>{o===n.length-1&&t===this.guid&&r&&(this.idle=!0,this.props.onRest&&this.props.onRest(this.merged)),e&&e()};let l=UE.arr(s.to)||UE.fun(s.to);i?setTimeout((()=>{t===this.guid&&(l?this.runAsync(s,a):this.diff(s).start(a))}),i):l?this.runAsync(s,a):this.diff(s).start(a)}))}else UE.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,lT.has(t)||lT.add(t),aT||(aT=!0,rT(cT));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,lT.has(t)&&lT.delete(t)),this}runAsync(e,t){var n=this;e.delay;let r=WE(e,["delay"]);const o=this.local;let i=Promise.resolve(void 0);if(UE.arr(r.to))for(let e=0;e<r.to.length;e++){const t=e,n=qE({},r,JE(r.to[t]));UE.arr(n.config)&&(n.config=n.config[t]),i=i.then((()=>{if(o===this.guid)return new Promise((e=>this.diff(n).start(e)))}))}else if(UE.fun(r.to)){let e,t=0;i=i.then((()=>r.to((n=>{const i=qE({},r,JE(n));if(UE.arr(i.config)&&(i.config=i.config[t]),t++,o===this.guid)return e=new Promise((e=>this.diff(i).start(e)))}),(function(e){return void 0===e&&(e=!0),n.stop(e)})).then((()=>e))))}i.then(t)}diff(e){this.props=qE({},this.props,e);let t=this.props,n=t.from,r=void 0===n?{}:n,o=t.to,i=void 0===o?{}:o,s=t.config,a=void 0===s?{}:s,l=t.reverse,c=t.attach,d=t.reset,u=t.immediate;if(l){var h=[i,r];r=h[0],i=h[1]}this.merged=qE({},r,this.merged,i),this.hasChanged=!1;let p=c&&c(this);if(this.animations=Object.entries(this.merged).reduce(((e,t)=>{let n=t[0],o=t[1],i=e[n]||{};const s=UE.num(o),l=UE.str(o)&&!o.startsWith("#")&&!/\d/.test(o)&&!tT[o],c=UE.arr(o),h=!s&&!c&&!l;let f=UE.und(r[n])?o:r[n],m=s||c||l?o:1,g=ZE(a,n);p&&(m=p.animations[n].parent);let b,v=i.parent,y=i.interpolation,w=GE(p?m.getPayload():m),x=o;h&&(x=nT({range:[0,1],output:[o,o]})(1));let C=y&&y.getValue();const k=!UE.und(v)&&i.animatedValues.some((e=>!e.done)),$=!UE.equ(x,C),S=!UE.equ(x,i.previous),M=!UE.equ(g,i.config);if(d||S&&$||M){if(s||l)v=y=i.parent||new fT(f);else if(c)v=y=i.parent||new mT(f);else if(h){let e=i.interpolation&&i.interpolation.calc(i.parent.value);e=void 0===e||d?f:e,i.parent?(v=i.parent,v.setValue(0,!1)):v=new fT(0);const t={output:[e,o]};i.interpolation?(y=i.interpolation,i.interpolation.updateConfig(t)):y=v.interpolate(t)}return w=GE(p?m.getPayload():m),b=GE(v.getPayload()),d&&!h&&v.setValue(f,!1),this.hasChanged=!0,b.forEach((e=>{e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=k?e.lastVelocity:void 0,e.lastTime=k?e.lastTime:void 0,e.startTime=iT(),e.done=!1,e.animatedStyles.clear()})),ZE(u,n)&&v.setValue(h?m:o,!1),qE({},e,{[n]:qE({},i,{name:n,parent:v,interpolation:y,animatedValues:b,toValues:w,previous:x,config:g,fromValues:GE(v.getValue()),immediate:ZE(u,n),initialVelocity:KE(g.velocity,0),clamp:KE(g.clamp,!1),precision:KE(g.precision,.01),tension:KE(g.tension,170),friction:KE(g.friction,26),mass:KE(g.mass,1),duration:g.duration,easing:KE(g.easing,(e=>e)),decay:g.decay})})}return $?e:(h&&(v.setValue(1,!1),y.updateConfig({output:[x,x]})),v.done=!0,this.hasChanged=!0,qE({},e,{[n]:qE({},e[n],{previous:x})}))}),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 vT=e=>{const t=UE.fun(e),n=((e,t)=>{const n=se(!1),r=se(),o=UE.fun(t),i=oe((()=>{let n;return r.current&&(r.current.map((e=>e.destroy())),r.current=void 0),[new Array(e).fill().map(((e,r)=>{const i=new bT,s=o?ZE(t,r,i):t[r];return 0===r&&(n=s.ref),i.update(s),n||i.start(),i})),n]}),[e]),s=i[0],a=i[1];r.current=s,me(a,(()=>({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 l=oe((()=>e=>r.current.map(((t,n)=>{t.update(o?ZE(e,n,t):e[n]),a||t.start()}))),[e]);ce((()=>{n.current?o||l(t):a||r.current.forEach((e=>e.start()))})),ce((()=>(n.current=!0,()=>r.current.forEach((e=>e.destroy())))),[]);const c=r.current.map((e=>e.getValues()));return o?[c,l,e=>r.current.forEach((t=>t.pause(e)))]:c})(1,t?e:[e]),r=n[0],o=n[1],i=n[2];return t?[r[0],o,i]:r};class yT extends QE{constructor(e){void 0===e&&(e={}),super(),!e.transform||e.transform instanceof XE||(e=eT.transform(e)),this.payload=e}}const wT={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},xT="[-+]?\\d*\\.?\\d+",CT=xT+"%";function kT(){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 $T=new RegExp("rgb"+kT(xT,xT,xT)),ST=new RegExp("rgba"+kT(xT,xT,xT,xT)),MT=new RegExp("hsl"+kT(xT,CT,CT)),ET=new RegExp("hsla"+kT(xT,CT,CT,xT)),TT=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,OT=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,LT=/^#([0-9a-fA-F]{6})$/,AT=/^#([0-9a-fA-F]{8})$/;function NT(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 RT(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=NT(o,r,e+1/3),s=NT(o,r,e),a=NT(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*s)<<16|Math.round(255*a)<<8}function DT(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function PT(e){return(parseFloat(e)%360+360)%360/360}function IT(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function zT(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function VT(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=LT.exec(e))?parseInt(t[1]+"ff",16)>>>0:wT.hasOwnProperty(e)?wT[e]:(t=$T.exec(e))?(DT(t[1])<<24|DT(t[2])<<16|DT(t[3])<<8|255)>>>0:(t=ST.exec(e))?(DT(t[1])<<24|DT(t[2])<<16|DT(t[3])<<8|IT(t[4]))>>>0:(t=TT.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=AT.exec(e))?parseInt(t[1],16)>>>0:(t=OT.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=MT.exec(e))?(255|RT(PT(t[1]),zT(t[2]),zT(t[3])))>>>0:(t=ET.exec(e))?(RT(PT(t[1]),zT(t[2]),zT(t[3]))|IT(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 HT=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,BT=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,_T=new RegExp(`(${Object.keys(wT).join("|")})`,"g");let jT={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 FT=["Webkit","Ms","Moz","O"];function qT(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||jT.hasOwnProperty(e)&&jT[e]?(""+t).trim():t+"px"}jT=Object.keys(jT).reduce(((e,t)=>(FT.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),jT);const WT={};var UT,KT;UT=e=>new yT(e),oT=UT,KT=e=>{const t=e.output.map((e=>e.replace(BT,VT))).map((e=>e.replace(_T,VT))),n=t[0].match(HT).map((()=>[]));t.forEach((e=>{e.match(HT).forEach(((e,t)=>n[t].push(+e)))}));const r=t[0].match(HT).map(((t,r)=>dT(qE({},e,{output:n[r]}))));return e=>{let n=0;return t[0].replace(HT,(()=>r[n++](e))).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,((e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`))}},nT=KT,tT=wT,function(e,t){eT={fn:e,transform:t}}(((e,t)=>{if(!e.nodeType||void 0===e.setAttribute)return!1;{const o=t.style,i=t.children,s=t.scrollTop,a=t.scrollLeft,l=WE(t,["style","children","scrollTop","scrollLeft"]),c="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;void 0!==s&&(e.scrollTop=s),void 0!==a&&(e.scrollLeft=a),void 0!==i&&(e.textContent=i);for(let t in o)if(o.hasOwnProperty(t)){var n=0===t.indexOf("--"),r=qT(t,o[t],n);"float"===t&&(t="cssFloat"),n?e.style.setProperty(t,r):e.style[t]=r}for(let t in l){const n=c?t:WT[t]||(WT[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())));void 0!==e.getAttribute(n)&&e.setAttribute(n,l[t])}}}),(e=>e));var GT;const ZT=(GT=e=>ie(((t,n)=>{const r=function(){const e=ae(!1)[1];return ue((()=>e((e=>!e))),[])}(),o=se(!0),i=se(null),s=se(null),a=ue((e=>{const t=i.current;i.current=new sT(e,(()=>{let e=!1;s.current&&(e=eT.fn(s.current,i.current.getAnimatedValue())),s.current&&!1!==e||r()})),t&&t.detach()}),[]);ce((()=>()=>{o.current=!1,i.current&&i.current.detach()}),[]),me(n,(()=>(e=>e.current)(s))),a(t);const l=i.current.getValue();l.scrollTop,l.scrollLeft;const c=WE(l,["scrollTop","scrollLeft"]),d=(u=e,!UE.fun(u)||u.prototype instanceof te.Component?e=>s.current=function(e,t){return t&&(UE.fun(t)?t(e):UE.obj(t)&&(t.current=e)),e}(e,n):void 0);var u;return te.createElement(e,qE({},c,{ref:d}))})),e=>(UE.arr(e)?e:Object.keys(e)).reduce(((e,t)=>{const n=t;return e[n]=GT(n),e}),GT))(["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 JT(e,t){return e.map((function(e,n){return e+t[n]}))}function XT(e,t){return e.map((function(e,n){return e-t[n]}))}function YT(e){return Math.hypot.apply(Math,e)}function QT(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function eO(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 tO(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?-eO(t-e,n-t,r)+t:e>n?+eO(e-n,n-t,r)+n:e}function nO(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 rO(){return rO=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},rO.apply(this,arguments)}function oO(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function iO(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sO(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 aO(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 sO(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)?sO(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 lO(){}function cO(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?lO:1===t.length?t[0]:function(){for(var e,n,r=aO(t);!(n=r()).done;){e=n.value.apply(this,arguments)||e}return e}}function dO(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 uO(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 hO(e,t){void 0===e&&(e={});for(var n={},r=0,o=Object.entries(t);r<o.length;r++){var i=o[r],s=i[0],a=i[1];switch(typeof a){case"function":n[s]=a.call(n,e[s],s,e);break;case"object":n[s]=hO(e[s],a);break;case"boolean":a&&(n[s]=e[s])}}return n}var pO=rO({},{threshold:function(e){return void 0===e&&(e=0),dO(e)},rubberband:function(e){switch(void 0===e&&(e=0),e){case!0:return dO(.15);case!1:return dO(0);default:return dO(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:dO(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 pO.bounds(e(t))};var t=e,n=t.left,r=void 0===n?-1/0:n,o=t.right,i=void 0===o?1/0:o,s=t.top,a=void 0===s?-1/0:s,l=t.bottom;return[[r,i],[a,void 0===l?1/0:l]]}}),fO="undefined"!=typeof window&&window.document&&window.document.createElement,mO={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=fO?window:void 0),e})),eventOptions:function(e){var t=void 0===e?{}:e,n=t.passive,r=void 0===n||n,o=t.capture;return{passive:r,capture:void 0!==o&&o}}},gO=rO({},pO,{threshold:function(e,t,n){var r=n.filterTaps,o=void 0!==r&&r,i=n.lockDirection,s=void 0!==i&&i,a=n.axis,l=dO(e,o?3:s||(void 0===a?void 0:a)?1:0);return this.filterTaps=o||l[0]+l[1]>0,l},swipeVelocity:function(e){return void 0===e&&(e=.5),dO(e)},swipeDistance:function(e){return void 0===e&&(e=60),dO(e)},delay:function(e){switch(void 0===e&&(e=0),e){case!0:return 180;case!1:return 0;default:return e}}});function bO(e){var t=e.domTarget,n=e.eventOptions,r=e.window,o=e.enabled,i=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["domTarget","eventOptions","window","enabled"]),s=function(e){return void 0===e&&(e={}),hO(e,mO)}({domTarget:t,eventOptions:n,window:r,enabled:o});return s.drag=function(e){return void 0===e&&(e={}),hO(e,gO)}(i),s}function vO(e){return rO({_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:lO,canceled:!1,memo:void 0,args:void 0},e)}function yO(){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:vO({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:vO({da:[0,0],vdva:[0,0],origin:void 0,turns:0}),wheel:vO({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),move:vO({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),scroll:vO({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0})}}var wO=new Map,xO=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 o=arguments.length,i=new Array(o>2?o-2:0),s=2;s<o;s++)i[s-2]=arguments[s];n.controller.timeouts[n.stateKey]=(r=window).setTimeout.apply(r,[e,t].concat(i))},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 o=rO({},n.controller.state.shared,n.state,n.mapStateValues(n.state)),i=n.handler(o);return n.state.memo=void 0!==i?i:n.state.memo,n.state._active||n.clean(),o}}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,o=t.rubberband,i=t.threshold,s=this.state,a=s._bounds,l=s._initial,c=s._active,d=s._intentional,u=s.lastOffset,h=s.movement,p=this.getInternalMovement(e,this.state),f=!1===d[0]?CO(p[0],i[0]):d[0],m=!1===d[1]?CO(p[1],i[1]):d[1],g=this.checkIntentionality([f,m],p);if(g._blocked)return rO({},g,{_movement:p,delta:[0,0]});var b,v,y,w,x=g._intentional,C=p;(!1!==x[0]&&!1===d[0]&&(v=uO(n,this.state),b=uO(r,this.state),l[0]=v[0],a[0]=b[0]),!1!==x[1]&&!1===d[1])&&(v=null!=(y=v)?y:uO(n,this.state),b=null!=(w=b)?w:uO(r,this.state),l[1]=v[1],a[1]=b[1]);var k=[!1!==x[0]?p[0]-x[0]:l[0],!1!==x[1]?p[1]-x[1]:l[1]],$=JT(k,u),S=c?o:[0,0];return k=kO(a,JT(k,l),S),rO({},g,{intentional:!1!==x[0]||!1!==x[1],_initial:l,_movement:C,movement:k,values:e,offset:kO(a,$,S),delta:XT(k,h)})},t.clean=function(){this.clearTimeout()},nO(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 CO(e,t){return Math.abs(e)>=t&&QT(e)*t}function kO(e,t,n){var r=t[0],o=t[1],i=n[0],s=n[1],a=e[0],l=a[0],c=a[1],d=e[1],u=d[0],h=d[1];return[tO(r,l,c,i),tO(o,u,h,s)]}function $O(e,t,n){var r=e.state,o=e.args,i=t.timeStamp,s=t.type,a=r.values;return{_lastEventType:s,event:t,timeStamp:i,elapsedTime:n?0:i-r.startTime,args:o,previous:a}}function SO(e,t){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return e.call.apply(e,[this,rO({},t,{event:n})].concat(o))}}var MO=function(e){var t=this;this.classes=e,this.bind=function(){for(var e={},n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];for(var i,s=aO(t.classes);!(i=s()).done;){new(0,i.value)(t,r).addBindings(e)}for(var a=0,l=Object.entries(t.nativeRefs);a<l.length;a++){var c=l[a];OO(e,c[0],SO(c[1],rO({},t.state.shared,{args:r})))}return t.config.domTarget?function(e,t){var n=e.config,r=e.domListeners,o=TO(n);if(!o)throw new Error("domTarget must be defined");var i=n.eventOptions;AO(o,EO(r),i);for(var s=0,a=Object.entries(t);s<a.length;s++){var l=a[s],c=l[0],d=l[1],u=c.slice(2).toLowerCase();r.push([u,cO.apply(void 0,d)])}LO(o,r,i)}(t,e):function(e,t){for(var n=e.config,r={},o=n.eventOptions.capture?"Capture":"",i=0,s=Object.entries(t);i<s.length;i++){var a=s[i],l=a[0],c=a[1],d=Array.isArray(c)?c:[c];r[l+o]=cO.apply(void 0,d)}return r}(t,e)},this.effect=function(){return t.config.domTarget&&t.bind(),t.clean},this.clean=function(){var e=TO(t.config),n=t.config.eventOptions;e&&AO(e,EO(t.domListeners),n),Object.values(t.timeouts).forEach(clearTimeout),function(e){var t=e.config,n=t.window,r=t.eventOptions,o=e.windowListeners;if(!n)return;for(var i in o){AO(n,o[i],r)}e.windowListeners={}}(t)},this.state=yO(),this.timeouts={},this.domListeners=[],this.windowListeners={}};function EO(e){return void 0===e&&(e=[]),e.splice(0,e.length)}function TO(e){var t=e.domTarget;return t&&"current"in t?t.current:t}function OO(e,t,n){e[t]||(e[t]=[]),e[t].push(n)}function LO(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,o=aO(t);!(r=o()).done;){var i=r.value,s=i[0],a=i[1];e.addEventListener(s,a,n)}}function AO(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,o=aO(t);!(r=o()).done;){var i=r.value,s=i[0],a=i[1];e.removeEventListener(s,a,n)}}function NO(e,t,n){void 0===n&&(n={});var r=function(e){var t=new Set;e.drag&&t.add(wO.get("drag"));e.wheel&&t.add(wO.get("wheel"));e.scroll&&t.add(wO.get("scroll"));e.move&&t.add(wO.get("move"));e.pinch&&t.add(wO.get("pinch"));e.hover&&t.add(wO.get("hover"));return t}(e),o=te.useMemo((function(){return new MO(r)}),[]);return o.config=t,o.handlers=e,o.nativeRefs=n,te.useEffect(o.effect,[]),o.config.domTarget?RO:o.bind}function RO(){"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`.")}var DO=function(e){function t(){return e.apply(this,arguments)||this}oO(t,e);var n=t.prototype;return n.getInternalMovement=function(e,t){return XT(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],o=n[1],i=this.state.axis||(r>o?"x":r<o?"y":void 0);return this.config.axis||this.config.lockDirection?i?this.config.axis&&i!==this.config.axis?{_intentional:e,_blocked:!0,axis:i}:(e["x"===i?1:0]=!1,{_intentional:e,_blocked:!1,axis:i}):{_intentional:[!1,!1],_blocked:!1,axis:i}:{_intentional:e,_blocked:!1,axis:i}},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=YT(t),o=0===r?0:1/r,i=0===n?0:1/n,s=i*r,a=t.map((function(e){return i*e})),l=t.map((function(e){return o*e}));return{velocities:a,velocity:s,distance:YT(e),direction:l}}(n.movement,n.delta,r))}return n},n.mapStateValues=function(e){return{xy:e.values,vxvy:e.velocities}},t}(xO);function PO(e){if("touches"in e){var t=e.targetTouches,n=e.changedTouches;return t.length>0?t:n}return null}function IO(e){var t="buttons"in e?e.buttons:0,n=PO(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 zO(e){var t=PO(e),n=t?t[0]:e;return[n.clientX,n.clientY]}var VO=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,o=e.windowListeners;void 0===n&&(n=[]),r.window&&(AO(r.window,o[t],r.eventOptions),LO(r.window,o[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(iO(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=IO(e);if(n.down){t.updateSharedState(n);var r=zO(e),o=t.getKinematics(r,e),i=$O(iO(t),e),s=t.state._isTap,a=YT(o._movement);s&&a>=3&&(s=!1),t.updateGestureState(rO({},i,o,{_isTap:s})),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,o=r[0],i=r[1],s=t.state.movement,a=s[0],l=s[1],c=t.state._intentional,d=c[0],u=c[1],h=t.config.swipeVelocity,p=h[0],f=h[1],m=t.config.swipeDistance,g=m[0],b=m[1],v=rO({},$O(iO(t),e),t.getMovement(t.state.values)),y=[0,0];v.elapsedTime<220&&(!1!==d&&Math.abs(o)>p&&Math.abs(a)>g&&(y[0]=QT(o)),!1!==u&&Math.abs(i)>f&&Math.abs(l)>b&&(y[1]=QT(i))),t.updateGestureState(rO({},v,{tap:n,swipe:y})),t.fireGestureHandler(!0===n)}},t.clean=function(){e.prototype.clean.call(iO(t)),t.state._delayedEvent=!1,function(e,t){var n=e.config,r=e.windowListeners;n.window&&(AO(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}oO(t,e);var n=t.prototype;return n.startDrag=function(e){var t=zO(e);this.updateSharedState(IO(e)),this.updateGestureState(rO({},function(e,t,n){var r=e.state.offset,o=n.timeStamp;return rO({},yO()[e.stateKey],{_active:!0,values:t,initial:t,offset:r,lastOffset:r,startTime:o})}(this,t,e),$O(this,e,!0),{_pointerId:e.pointerId,cancel:this.onCancel})),this.updateGestureState(this.getMovement(t)),this.fireGestureHandler()},n.addBindings=function(e){(OO(e,"onPointerDown",this.onDragStart),this.config.filterTaps)&&OO(e,this.controller.config.eventOptions.capture?"onClick":"onClickCapture",this.onClick)},t}(DO);function HO(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,o,i;if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!HO(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(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!HO(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(i=e.entries();!(r=i.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=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if("undefined"!=typeof Element&&e instanceof Element)return!1;for(r=n;0!=r--;)if(!("_owner"===o[r]&&e.$$typeof||HO(e[o[r]],t[o[r]])))return!1;return!0}return e!=e&&t!=t}function BO(e,t){try{return HO(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 _O(e,t){void 0===t&&(t={}),wO.set("drag",VO);var n=se();return n.current||(n.current=function(e,t){var n,r,o=[],i=!1;return function(){for(var s=arguments.length,a=new Array(s),l=0;l<s;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}(bO,BO)),NO({drag:e},n.current(t))}
|
|
3040
3060
|
/*!
|
|
3041
3061
|
* tabbable 5.3.3
|
|
3042
3062
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
3043
|
-
*/var
|
|
3063
|
+
*/var jO=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],FO=jO.join(","),qO="undefined"==typeof Element,WO=qO?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,UO=!qO&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},KO=function(e,t,n){var r=Array.prototype.slice.apply(e.querySelectorAll(FO));return t&&WO.call(e,FO)&&r.unshift(e),r=r.filter(n)},GO=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var s=i.shift();if("SLOT"===s.tagName){var a=s.assignedElements(),l=e(a.length?a:s.children,!0,r);r.flatten?o.push.apply(o,l):o.push({scope:s,candidates:l})}else{WO.call(s,FO)&&r.filter(s)&&(n||!t.includes(s))&&o.push(s);var c=s.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(s),d=!r.shadowRootFilter||r.shadowRootFilter(s);if(c&&d){var u=e(!0===c?s.children:c.children,!0,r);r.flatten?o.push.apply(o,u):o.push({scope:s,candidates:u})}else i.unshift.apply(i,s.children)}}return o},ZO=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},JO=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},XO=function(e){return"INPUT"===e.tagName},YO=function(e){return function(e){return XO(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||UO(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 o=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!o||o===e}(e)},QO=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},eL=function(e,t){return!(t.disabled||function(e){return XO(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=WO.call(e,"details>summary:first-of-type")?e.parentElement:e;if(WO.call(o,"details:not([open]) *"))return!0;var i=UO(e).host,s=(null==i?void 0:i.ownerDocument.contains(i))||e.ownerDocument.contains(e);if(n&&"full"!==n){if("non-zero-area"===n)return QO(e)}else{if("function"==typeof r){for(var a=e;e;){var l=e.parentElement,c=UO(e);if(l&&!l.shadowRoot&&!0===r(l))return QO(e);e=e.assignedSlot?e.assignedSlot:l||c===e.ownerDocument?l:c.host}e=a}if(s)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!!WO.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},tL=function(e,t){return!(YO(t)||ZO(t)<0||!eL(e,t))},nL=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},rL=function e(t){var n=[],r=[];return t.forEach((function(t,o){var i=!!t.scope,s=i?t.scope:t,a=ZO(s,i),l=i?e(t.candidates):s;0===a?i?n.push.apply(n,l):n.push(s):r.push({documentOrder:o,tabIndex:a,item:t,isScope:i,content:l})})),r.sort(JO).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},oL=function(e,t){var n;return n=(t=t||{}).getShadowRoot?GO([e],t.includeContainer,{filter:tL.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:nL}):KO(e,t.includeContainer,tL.bind(null,t)),rL(n)},iL=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==WO.call(e,FO)&&tL(t,e)},sL=jO.concat("iframe").join(","),aL=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==WO.call(e,sL)&&eL(t,e)};
|
|
3044
3064
|
/*!
|
|
3045
3065
|
* focus-trap 6.9.4
|
|
3046
3066
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
3047
3067
|
*/
|
|
3048
|
-
function sL(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 aL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sL(Object(n),!0).forEach((function(t){lL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cL,dL=(cL=[],{activateTrap:function(e){if(cL.length>0){var t=cL[cL.length-1];t!==e&&t.pause()}var n=cL.indexOf(e);-1===n||cL.splice(n,1),cL.push(e)},deactivateTrap:function(e){var t=cL.indexOf(e);-1!==t&&cL.splice(t,1),cL.length>0&&cL[cL.length-1].unpause()}}),uL=function(e){return setTimeout(e,0)},hL=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},pL=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},fL=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},mL=function(e,t){var n,r=(null==t?void 0:t.document)||document,o=aL({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),i={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},s=function(e,t,n){return e&&void 0!==e[t]?e[t]:o[n||t]},a=function(e){return i.containerGroups.findIndex((function(t){var n=t.container,r=t.tabbableNodes;return n.contains(e)||r.find((function(t){return t===e}))}))},l=function(e){var t=o[e];if("function"==typeof t){for(var n=arguments.length,i=new Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];t=t.apply(void 0,i)}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 a=t;if("string"==typeof t&&!(a=r.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return a},c=function(){var e=l("initialFocus");if(!1===e)return!1;if(void 0===e)if(a(r.activeElement)>=0)e=r.activeElement;else{var t=i.tabbableGroups[0];e=t&&t.firstTabbableNode||l("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},d=function(){if(i.containerGroups=i.containers.map((function(e){var t,n,r=nL(e,o.tabbableOptions),i=(t=e,(n=(n=o.tabbableOptions)||{}).getShadowRoot?UO([t],n.includeContainer,{filter:YO.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):WO(t,n.includeContainer,YO.bind(null,n)));return{container:e,tabbableNodes:r,focusableNodes:i,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=i.findIndex((function(t){return t===e}));if(!(n<0))return t?i.slice(n+1).find((function(e){return rL(e,o.tabbableOptions)})):i.slice(0,n).reverse().find((function(e){return rL(e,o.tabbableOptions)}))}}})),i.tabbableGroups=i.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),i.tabbableGroups.length<=0&&!l("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:!!o.preventScroll}),i.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(c()))},h=function(e){var t=l("setReturnFocus",e);return t||!1!==t&&e},p=function(e){var t=fL(e);a(t)>=0||(pL(o.clickOutsideDeactivates,e)?n.deactivate({returnFocus:o.returnFocusOnDeactivate&&!iL(t,o.tabbableOptions)}):pL(o.allowOutsideClick,e)||e.preventDefault())},f=function(e){var t=fL(e),n=a(t)>=0;n||t instanceof Document?n&&(i.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),u(i.mostRecentlyFocusedNode||c()))},m=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==pL(o.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=fL(e);d();var n=null;if(i.tabbableGroups.length>0){var r=a(t),s=r>=0?i.containerGroups[r]:void 0;if(r<0)n=e.shiftKey?i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:i.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var c=hL(i.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(c<0&&(s.container===t||iL(t,o.tabbableOptions)&&!rL(t,o.tabbableOptions)&&!s.nextTabbableNode(t,!1))&&(c=r),c>=0){var h=0===c?i.tabbableGroups.length-1:c-1;n=i.tabbableGroups[h].lastTabbableNode}}else{var p=hL(i.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(p<0&&(s.container===t||iL(t,o.tabbableOptions)&&!rL(t,o.tabbableOptions)&&!s.nextTabbableNode(t))&&(p=r),p>=0){var f=p===i.tabbableGroups.length-1?0:p+1;n=i.tabbableGroups[f].firstTabbableNode}}}else n=l("fallbackFocus");n&&(e.preventDefault(),u(n))}(e)},g=function(e){var t=fL(e);a(t)>=0||pL(o.clickOutsideDeactivates,e)||pL(o.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},b=function(){if(i.active)return dL.activateTrap(n),i.delayInitialFocusTimer=o.delayInitialFocus?uL((function(){u(c())})):u(c()),r.addEventListener("focusin",f,!0),r.addEventListener("mousedown",p,{capture:!0,passive:!1}),r.addEventListener("touchstart",p,{capture:!0,passive:!1}),r.addEventListener("click",g,{capture:!0,passive:!1}),r.addEventListener("keydown",m,{capture:!0,passive:!1}),n},v=function(){if(i.active)return r.removeEventListener("focusin",f,!0),r.removeEventListener("mousedown",p,!0),r.removeEventListener("touchstart",p,!0),r.removeEventListener("click",g,!0),r.removeEventListener("keydown",m,!0),n};return(n={get active(){return i.active},get paused(){return i.paused},activate:function(e){if(i.active)return this;var t=s(e,"onActivate"),n=s(e,"onPostActivate"),o=s(e,"checkCanFocusTrap");o||d(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=r.activeElement,t&&t();var a=function(){o&&d(),b(),n&&n()};return o?(o(i.containers.concat()).then(a,a),this):(a(),this)},deactivate:function(e){if(!i.active)return this;var t=aL({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},e);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,v(),i.active=!1,i.paused=!1,dL.deactivateTrap(n);var r=s(t,"onDeactivate"),a=s(t,"onPostDeactivate"),l=s(t,"checkCanReturnFocus"),c=s(t,"returnFocus","returnFocusOnDeactivate");r&&r();var d=function(){uL((function(){c&&u(h(i.nodeFocusedBeforeActivation)),a&&a()}))};return c&&l?(l(h(i.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(){return i.paused||!i.active||(i.paused=!0,v()),this},unpause:function(){return i.paused&&i.active?(i.paused=!1,d(),b(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return i.containers=t.map((function(e){return"string"==typeof e?r.querySelector(e):e})),i.active&&d(),this}}).updateContainerElements(e),n};var gL=!1;if("undefined"!=typeof window){var bL={get passive(){gL=!0}};window.addEventListener("testPassive",null,bL),window.removeEventListener("testPassive",null,bL)}var vL,yL="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),wL=[],xL=!1,CL=-1,kL=void 0,$L=void 0,SL=function(e){return wL.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},ML=function(e){var t=e||window.event;return!!SL(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},EL=function(e,t){if(e){if(!wL.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};wL=[].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)}(wL),[n]),yL?(e.ontouchstart=function(e){1===e.targetTouches.length&&(CL=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-CL;!SL(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?ML(e):e.stopPropagation())}(t,e)},xL||(document.addEventListener("touchmove",ML,gL?{passive:!1}:void 0),xL=!0)):function(e){if(void 0===$L){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&($L=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===kL&&(kL=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.")},TL=function(e){e?(wL=wL.filter((function(t){return t.targetElement!==e})),yL?(e.ontouchstart=null,e.ontouchmove=null,xL&&0===wL.length&&(document.removeEventListener("touchmove",ML,gL?{passive:!1}:void 0),xL=!1)):wL.length||(void 0!==$L&&(document.body.style.paddingRight=$L,$L=void 0),void 0!==kL&&(document.body.style.overflow=kL,kL=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")},OL=[],LL="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"}(vL||(vL={}));var AL,NL=function(e){return Object.freeze(e)},RL=function(e,t){this.inlineSize=e,this.blockSize=t,NL(this)},DL=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,NL(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}(),PL=function(e){return e instanceof SVGElement&&"getBBox"in e},IL=function(e){if(PL(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,s=o.offsetHeight;return!(i||s||e.getClientRects().length)},zL=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)},VL="undefined"!=typeof window?window:{},HL=new WeakMap,BL=/auto|scroll/,_L=/^tb|vertical/,jL=/msie|trident/i.test(VL.navigator&&VL.navigator.userAgent),FL=function(e){return parseFloat(e||"0")},qL=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new RL((n?t:e)||0,(n?e:t)||0)},WL=NL({devicePixelContentBoxSize:qL(),borderBoxSize:qL(),contentBoxSize:qL(),contentRect:new DL(0,0,0,0)}),UL=function(e,t){if(void 0===t&&(t=!1),HL.has(e)&&!t)return HL.get(e);if(IL(e))return HL.set(e,WL),WL;var n=getComputedStyle(e),r=PL(e)&&e.ownerSVGElement&&e.getBBox(),o=!jL&&"border-box"===n.boxSizing,i=_L.test(n.writingMode||""),s=!r&&BL.test(n.overflowY||""),a=!r&&BL.test(n.overflowX||""),l=r?0:FL(n.paddingTop),c=r?0:FL(n.paddingRight),d=r?0:FL(n.paddingBottom),u=r?0:FL(n.paddingLeft),h=r?0:FL(n.borderTopWidth),p=r?0:FL(n.borderRightWidth),f=r?0:FL(n.borderBottomWidth),m=u+c,g=l+d,b=(r?0:FL(n.borderLeftWidth))+p,v=h+f,y=a?e.offsetHeight-v-e.clientHeight:0,w=s?e.offsetWidth-b-e.clientWidth:0,x=o?m+b:0,C=o?g+v:0,k=r?r.width:FL(n.width)-x-w,$=r?r.height:FL(n.height)-C-y,S=k+m+w+b,M=$+g+y+v,E=NL({devicePixelContentBoxSize:qL(Math.round(k*devicePixelRatio),Math.round($*devicePixelRatio),i),borderBoxSize:qL(S,M,i),contentBoxSize:qL(k,$,i),contentRect:new DL(u,l,k,$)});return HL.set(e,E),E},KL=function(e,t,n){var r=UL(e,n),o=r.borderBoxSize,i=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case vL.DEVICE_PIXEL_CONTENT_BOX:return s;case vL.BORDER_BOX:return o;default:return i}},GL=function(e){var t=UL(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=NL([t.borderBoxSize]),this.contentBoxSize=NL([t.contentBoxSize]),this.devicePixelContentBoxSize=NL([t.devicePixelContentBoxSize])},ZL=function(e){if(IL(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},JL=function(){var e=1/0,t=[];OL.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new GL(t.target),o=ZL(t.target);r.push(n),t.lastReportedSize=KL(t.target,t.observedBox),o<e&&(e=o)})),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},XL=function(e){OL.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(ZL(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},YL=function(){var e=0;for(XL(e);OL.some((function(e){return e.activeTargets.length>0}));)e=JL(),XL(e);return OL.some((function(e){return e.skippedTargets.length>0}))&&function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:LL}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=LL),window.dispatchEvent(e)}(),e>0},QL=[],eA=function(e){if(!AL){var t=0,n=document.createTextNode("");new MutationObserver((function(){return QL.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),AL=function(){n.textContent="".concat(t?t--:t++)}}QL.push(e),AL()},tA=0,nA={attributes:!0,characterData:!0,childList:!0,subtree:!0},rA=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],oA=function(e){return void 0===e&&(e=0),Date.now()+e},iA=!1,sA=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),!iA){iA=!0;var n,r=oA(e);n=function(){var n=!1;try{n=YL()}finally{if(iA=!1,e=r-oA(),!tA)return;n?t.run(1e3):e>0?t.run(e):t.start()}},eA((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,nA)};document.body?t():VL.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),rA.forEach((function(t){return VL.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),rA.forEach((function(t){return VL.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),aA=function(e){!tA&&e>0&&sA.start(),!(tA+=e)&&sA.stop()},lA=function(){function e(e,t){this.target=e,this.observedBox=t||vL.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=KL(this.target,this.observedBox,!0);return function(e){return!PL(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}(),cA=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},dA=new WeakMap,uA=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},hA=function(){function e(){}return e.connect=function(e,t){var n=new cA(e,t);dA.set(e,n)},e.observe=function(e,t,n){var r=dA.get(e),o=0===r.observationTargets.length;uA(r.observationTargets,t)<0&&(o&&OL.push(r),r.observationTargets.push(new lA(t,n&&n.box)),aA(1),sA.schedule())},e.unobserve=function(e,t){var n=dA.get(e),r=uA(n.observationTargets,t),o=1===n.observationTargets.length;r>=0&&(o&&OL.splice(OL.indexOf(n),1),n.observationTargets.splice(r,1),aA(-1))},e.disconnect=function(e){var t=this,n=dA.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),pA=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.");hA.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(!zL(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");hA.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(!zL(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");hA.unobserve(this,e)},e.prototype.disconnect=function(){hA.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();function fA(){return fA=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},fA.apply(this,arguments)}function mA(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}var gA="undefined"!=typeof window?de:ce;function bA(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 vA(e){var t=Math.round(e);if(Number.isNaN(e))throw new TypeError("Found a NaN! Check your snapPoints / defaultSnap / snapTo ");return t}var yA={box:"border-box"};function wA(e,t){var n=t.label,r=t.enabled,o=t.resizeSourceRef,i=ae(0),s=i[0],a=i[1];le(n+": "+s);var l=ue((function(e){a(e[0].borderBoxSize[0].blockSize),o.current="element"}),[o]);return gA((function(){if(e.current&&r){var t=new pA(l);return t.observe(e.current,yA),function(){t.disconnect()}}}),[e,l,r]),r?s:0}function xA(e){return void 0===e&&(e=1e3),new Promise((function(t){return setTimeout(t,e)}))}var CA={DRAG:{target:"#overlay.dragging",actions:"onOpenEnd"}},kA={RESIZE:{target:"#overlay.resizing",actions:"onOpenEnd"}},$A=function(e,t,n){return void 0===n&&(n=e.context),new ME(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:fA({},CA,kA)}}},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:fA({},CA,kA)}}},end:{invoke:{src:"onOpenEnd",onDone:"done"},on:{CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:fA({},{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:[TE({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(xA()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenStart:function(){try{return Promise.resolve(xA()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseStart:function(){try{return Promise.resolve(xA()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeStart:function(){try{return Promise.resolve(xA()).then((function(){}))}catch(e){return Promise.reject(e)}},onSnapEnd:function(){try{return Promise.resolve(xA()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenEnd:function(){try{return Promise.resolve(xA()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseEnd:function(){try{return Promise.resolve(xA()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeEnd:function(){try{return Promise.resolve(xA()).then((function(){}))}catch(e){return Promise.reject(e)}},renderVisuallyHidden:function(e,t){try{return Promise.resolve(xA()).then((function(){}))}catch(e){return Promise.reject(e)}},activate:function(e,t){try{return Promise.resolve(xA()).then((function(){}))}catch(e){return Promise.reject(e)}},deactivate:function(e,t){try{return Promise.resolve(xA()).then((function(){}))}catch(e){return Promise.reject(e)}},openSmoothly:function(e,t){try{return Promise.resolve(xA()).then((function(){}))}catch(e){return Promise.reject(e)}},openImmediately:function(e,t){try{return Promise.resolve(xA()).then((function(){}))}catch(e){return Promise.reject(e)}},snapSmoothly:function(e,t){try{return Promise.resolve(xA()).then((function(){}))}catch(e){return Promise.reject(e)}},resizeSmoothly:function(e,t){try{return Promise.resolve(xA()).then((function(){}))}catch(e){return Promise.reject(e)}},closeSmoothly:function(e,t){try{return Promise.resolve(xA()).then((function(){}))}catch(e){return Promise.reject(e)}}},guards:{initiallyClosed:function(e){return"CLOSED"===e.initialState},initiallyOpen:function(e){return"OPEN"===e.initialState}}}),SA=["children","sibling","className","footer","header","open","initialState","lastSnapRef","initialFocusRef","onDismiss","maxHeight","defaultSnap","snapPoints","blocking","scrollLocking","style","onSpringStart","onSpringCancel","onSpringEnd","reserveScrollBarGap","expandOnContentDrag"],MA=["velocity"],EA=["onRest","config"],TA={tension:170,friction:26},OA=TA.tension,LA=TA.friction,AA=te.forwardRef((function(e,t){var n=e.children,r=e.sibling,o=e.className,i=e.footer,s=e.header,a=e.open,l=e.initialState,c=e.lastSnapRef,d=e.initialFocusRef,u=e.onDismiss,h=e.maxHeight,p=e.defaultSnap,f=void 0===p?RA:p,m=e.snapPoints,g=void 0===m?DA:m,b=e.blocking,v=void 0===b||b,y=e.scrollLocking,w=void 0===y||y,x=e.style,C=e.onSpringStart,k=e.onSpringCancel,$=e.onSpringEnd,S=e.reserveScrollBarGap,M=void 0===S?v:S,E=e.expandOnContentDrag,T=void 0!==E&&E,O=mA(e,SA),L=function(){var e=ae(!1),t=e[0],n=e[1],r=ae({}),o=r[0],i=r[1],s=ue((function(e){return i((function(t){var n;return fA({},t,((n={})[e]=!1,n))})),function(){i((function(t){var n;return fA({},t,((n={})[e]=!0,n))}))}}),[]);return ce((function(){var e=Object.values(o);0!==e.length&&e.every(Boolean)&&n(!0)}),[o]),{ready:t,registerReady:s}}(),A=L.ready,N=L.registerReady,R=se(!1),D=se(C),P=se(k),I=se($);ce((function(){D.current=C,P.current=k,I.current=$}),[k,C,$]);var z,V,H=gT((function(){return{y:0,ready:0,maxHeight:0,minSnap:0,maxSnap:0}})),B=H[0],_=H[1],j=se(null),F=se(null),q=se(null),W=se(null),U=se(null),K=se(null),G=se(0),Z=se(),J=se(!1),X=(z=oe((function(){return"undefined"!=typeof window?window.matchMedia("(prefers-reduced-motion: reduce)"):null}),[]),V=se(null==z?void 0:z.matches),le(V.current?"reduce":"no-preference"),ce((function(){var e=function(e){V.current=e.matches};return null==z||z.addListener(e),function(){return null==z?void 0:z.removeListener(e)}}),[z]),V),Y=function(e){var t=e.targetRef,n=e.enabled,r=e.reserveScrollBarGap,o=se({activate:function(){throw new TypeError("Tried to activate scroll lock too early")},deactivate:function(){}});return le(n?"Enabled":"Disabled"),ce((function(){if(!n)return o.current.deactivate(),void(o.current={activate:function(){},deactivate:function(){}});var e=t.current,i=!1;o.current={activate:function(){i||(i=!0,EL(e,{allowTouchMove:function(e){return e.closest("[data-body-scroll-lock-ignore]")},reserveScrollBarGap:r}))},deactivate:function(){i&&(i=!1,TL(e))}}}),[n,t,r]),o}({targetRef:F,enabled:A&&w,reserveScrollBarGap:M}),Q=function(e){var t=e.targetRef,n=e.enabled,r=se({activate:function(){throw new TypeError("Tried to activate aria hider too early")},deactivate:function(){}});return le(n?"Enabled":"Disabled"),ce((function(){if(!n)return r.current.deactivate(),void(r.current={activate:function(){},deactivate:function(){}});var e=t.current,o=!1,i=[],s=[];r.current={activate:function(){if(!o){o=!0;var t=e.parentNode;document.querySelectorAll("body > *").forEach((function(e){if(e!==t){var n=e.getAttribute("aria-hidden");null!==n&&"false"!==n||(i.push(n),s.push(e),e.setAttribute("aria-hidden","true"))}}))}},deactivate:function(){o&&(o=!1,s.forEach((function(e,t){var n=i[t];null===n?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n)})),i=[],s=[])}}}),[t,n]),r}({targetRef:j,enabled:A&&v}),ee=function(e){var t=e.targetRef,n=e.fallbackRef,r=e.initialFocusRef,o=e.enabled,i=se({activate:function(){throw new TypeError("Tried to activate focus trap too early")},deactivate:function(){}});return le(o?"Enabled":"Disabled"),ce((function(){if(!o)return i.current.deactivate(),void(i.current={activate:function(){},deactivate:function(){}});var e=n.current,s=mL(t.current,{onActivate:void 0,initialFocus:r?function(){return(null==r?void 0:r.current)||e}:void 0,fallbackFocus:e,escapeDeactivates:!1,clickOutsideDeactivates:!1}),a=!1;i.current={activate:function(){try{return a?Promise.resolve():(a=!0,Promise.resolve(s.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(){a&&(a=!1,s.deactivate())}}}),[o,n,r,t]),i}({targetRef:j,fallbackRef:K,initialFocusRef:d||void 0,enabled:A&&v&&!1!==d}),ne=function(e){var t=e.getSnapPoints,n=e.heightRef,r=e.lastSnapRef,o=e.ready,i=function(e){var t=e.contentRef,n=e.controlledMaxHeight,r=e.footerEnabled,o=e.footerRef,i=e.headerEnabled,s=e.headerRef,a=e.registerReady,l=e.resizeSourceRef,c=oe((function(){return a("contentHeight")}),[a]),d=function(e,t,n){var r=oe((function(){return t("maxHeight")}),[t]),o=ae((function(){return vA(e)||"undefined"!=typeof window?window.innerHeight:0})),i=o[0],s=o[1],a=i>0,l=se(0);return le(e?"controlled":"auto"),ce((function(){a&&r()}),[a,r]),gA((function(){if(e)return s(vA(e)),void(n.current="maxheightprop");var t=function(){l.current||(l.current=requestAnimationFrame((function(){s(window.innerHeight),n.current="window",l.current=0})))};return window.addEventListener("resize",t),s(window.innerHeight),n.current="window",r(),function(){window.removeEventListener("resize",t),cancelAnimationFrame(l.current)}}),[e,r,n]),i}(n,a,l),u=wA(s,{label:"headerHeight",enabled:i,resizeSourceRef:l}),h=wA(t,{label:"contentHeight",enabled:!0,resizeSourceRef:l}),p=wA(o,{label:"footerHeight",enabled:r,resizeSourceRef:l}),f=Math.min(d-u-p,h)+u+p;le("minHeight: "+f);var m=h>0;return ce((function(){m&&c()}),[m,c]),{maxHeight:d,minHeight:f,headerHeight:u,footerHeight:p}}({contentRef:e.contentRef,controlledMaxHeight:e.controlledMaxHeight,footerEnabled:e.footerEnabled,footerRef:e.footerRef,headerEnabled:e.headerEnabled,headerRef:e.headerRef,registerReady:e.registerReady,resizeSourceRef:e.resizeSourceRef}),s=i.maxHeight,a=i.minHeight,l=i.headerHeight,c=i.footerHeight,d=function(e,t){var n=[].concat(e).map(vA).reduce((function(e,n){return e.add(bA(n,0,t)),e}),new Set),r=Array.from(n),o=Math.min.apply(Math,r);if(Number.isNaN(o))throw new TypeError("minSnap is NaN");var i=Math.max.apply(Math,r);if(Number.isNaN(i))throw new TypeError("maxSnap is NaN");return{snapPoints:r,minSnap:o,maxSnap:i}}(o?t({height:n.current,footerHeight:c,headerHeight:l,minHeight:a,maxHeight:s}):[0],s),u=d.snapPoints,h=d.minSnap,p=d.maxSnap;return le("minSnap: "+h+", maxSnap:"+p),{minSnap:h,maxSnap:p,findSnap:function(e){var t=vA("function"==typeof e?e({footerHeight:c,headerHeight:l,height:n.current,minHeight:a,maxHeight:s,snapPoints:u,lastSnap:r.current}):e);return u.reduce((function(e,n){return Math.abs(n-t)<Math.abs(e-t)?n:e}),h)},maxHeight:s}}({contentRef:q,controlledMaxHeight:h,footerEnabled:!!i,footerRef:U,getSnapPoints:g,headerEnabled:!1!==s,headerRef:W,heightRef:G,lastSnapRef:c,ready:A,registerReady:N,resizeSourceRef:Z}),re=ne.minSnap,ie=ne.maxSnap,de=ne.maxHeight,he=ne.findSnap,pe=se(de),fe=se(re),ge=se(ie),be=se(he),ve=se(0);gA((function(){pe.current=de,ge.current=ie,fe.current=re,be.current=he,ve.current=he(f)}),[he,f,de,ie,re]);var ye=ue((function(e){var t=e.onRest,n=e.config,r=(n=void 0===n?{}:n).velocity,o=void 0===r?1:r,i=mA(n,MA),s=mA(e,EA);return new Promise((function(e){return _(fA({},s,{config:fA({velocity:o},i,{mass:1,tension:OA,friction:Math.max(LA,LA+(LA-LA*o))}),onRest:function(){var n=[].slice.call(arguments);e.apply(void 0,n),null==t||t.apply(void 0,n)}}))}))}),[_]),we=_E($A,{devTools:!1,actions:{onOpenCancel:ue((function(){return null==P.current?void 0:P.current({type:"OPEN"})}),[]),onSnapCancel:ue((function(e){return null==P.current?void 0:P.current({type:"SNAP",source:e.snapSource})}),[]),onCloseCancel:ue((function(){return null==P.current?void 0:P.current({type:"CLOSE"})}),[]),onResizeCancel:ue((function(){return null==P.current?void 0:P.current({type:"RESIZE",source:Z.current})}),[]),onOpenEnd:ue((function(){return null==I.current?void 0:I.current({type:"OPEN"})}),[]),onSnapEnd:ue((function(e,t){return null==I.current?void 0:I.current({type:"SNAP",source:e.snapSource})}),[]),onResizeEnd:ue((function(){return null==I.current?void 0:I.current({type:"RESIZE",source:Z.current})}),[])},context:{initialState:l},services:{onSnapStart:ue((function(e,t){try{return Promise.resolve(null==D.current?void 0:D.current({type:"SNAP",source:t.payload.source||"custom"}))}catch(e){return Promise.reject(e)}}),[]),onOpenStart:ue((function(){try{return Promise.resolve(null==D.current?void 0:D.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseStart:ue((function(){try{return Promise.resolve(null==D.current?void 0:D.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeStart:ue((function(){try{return Promise.resolve(null==D.current?void 0:D.current({type:"RESIZE",source:Z.current}))}catch(e){return Promise.reject(e)}}),[]),onSnapEnd:ue((function(e,t){try{return Promise.resolve(null==I.current?void 0:I.current({type:"SNAP",source:e.snapSource}))}catch(e){return Promise.reject(e)}}),[]),onOpenEnd:ue((function(){try{return Promise.resolve(null==I.current?void 0:I.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseEnd:ue((function(){try{return Promise.resolve(null==I.current?void 0:I.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeEnd:ue((function(){try{return Promise.resolve(null==I.current?void 0:I.current({type:"RESIZE",source:Z.current}))}catch(e){return Promise.reject(e)}}),[]),renderVisuallyHidden:ue((function(e,t){try{return Promise.resolve(ye({y:ve.current,ready:0,maxHeight:pe.current,maxSnap:ge.current,minSnap:ve.current,immediate:!0})).then((function(){}))}catch(e){return Promise.reject(e)}}),[ye]),activate:ue((function(e,t){try{return R.current=!0,Promise.resolve(Promise.all([Y.current.activate(),ee.current.activate(),Q.current.activate()])).then((function(){}))}catch(e){return Promise.reject(e)}}),[Q,ee,Y]),deactivate:ue((function(){try{return Y.current.deactivate(),ee.current.deactivate(),Q.current.deactivate(),R.current=!1,Promise.resolve()}catch(e){return Promise.reject(e)}}),[Q,ee,Y]),openImmediately:ue((function(){try{return G.current=ve.current,Promise.resolve(ye({y:ve.current,ready:1,maxHeight:pe.current,maxSnap:ge.current,minSnap:ve.current,immediate:!0})).then((function(){}))}catch(e){return Promise.reject(e)}}),[ye]),openSmoothly:ue((function(){try{return Promise.resolve(ye({y:0,ready:1,maxHeight:pe.current,maxSnap:ge.current,minSnap:ve.current,immediate:!0})).then((function(){return G.current=ve.current,Promise.resolve(ye({y:ve.current,ready:1,maxHeight:pe.current,maxSnap:ge.current,minSnap:ve.current,immediate:X.current})).then((function(){}))}))}catch(e){return Promise.reject(e)}}),[ye,X]),snapSmoothly:ue((function(e,t){try{var n=be.current(e.y);return G.current=n,c.current=n,Promise.resolve(ye({y:n,ready:1,maxHeight:pe.current,maxSnap:ge.current,minSnap:fe.current,immediate:X.current,config:{velocity:e.velocity}})).then((function(){}))}catch(e){return Promise.reject(e)}}),[ye,c,X]),resizeSmoothly:ue((function(){try{var e=be.current(G.current);return G.current=e,c.current=e,Promise.resolve(ye({y:e,ready:1,maxHeight:pe.current,maxSnap:ge.current,minSnap:fe.current,immediate:"element"!==Z.current||X.current})).then((function(){}))}catch(e){return Promise.reject(e)}}),[ye,c,X]),closeSmoothly:ue((function(e,t){try{return ye({minSnap:G.current,immediate:!0}),G.current=0,Promise.resolve(ye({y:0,maxHeight:pe.current,maxSnap:ge.current,immediate:X.current})).then((function(){return Promise.resolve(ye({ready:0,immediate:!0})).then((function(){}))}))}catch(e){return Promise.reject(e)}}),[ye,X])}}),xe=we[0],Ce=we[1];ce((function(){A&&Ce(a?"OPEN":"CLOSE")}),[a,Ce,A]),gA((function(){(de||ie||re)&&Ce("RESIZE")}),[de,ie,re,Ce]),ce((function(){return function(){Y.current.deactivate(),ee.current.deactivate(),Q.current.deactivate()}}),[Q,ee,Y]),me(t,(function(){return{snapTo:function(e,t){var n=void 0===t?{}:t,r=n.velocity,o=void 0===r?1:r,i=n.source,s=void 0===i?"custom":i;Ce("SNAP",{payload:{y:be.current(e),velocity:o,source:s}})},get height(){return G.current}}}),[Ce]),ce((function(){var e=F.current,t=function(e){J.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 T&&(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)}}),[T,F]);var ke=HO((function(e){var t=e.args,n=(t=void 0===t?[]:t)[0],r=(n=void 0===n?{}:n).closeOnTap,o=void 0!==r&&r,i=n.isContentDragging,s=void 0!==i&&i,a=e.cancel,l=e.direction[1],c=e.down,d=e.first,h=e.last,p=e.memo,f=void 0===p?B.y.getValue():p,m=e.tap,g=e.velocity,b=-1*e.movement[1];if(!R.current)return a(),f;if(u&&o&&m)return a(),setTimeout((function(){return u()}),0),f;if(m)return f;var v=f+b,y=b*g,w=Math.max(fe.current,Math.min(ge.current,v+2*y));if(!c&&u&&l>0&&v+y<fe.current/2)return a(),u(),f;var x=c?u||fe.current!==ge.current?QT(v,u?0:fe.current,ge.current,.55):v<fe.current?QT(v,fe.current,2*ge.current,.55):QT(v,fe.current/2,ge.current,.55):w;return T&&s?(x>=ge.current&&(x=ge.current),f===ge.current&&F.current.scrollTop>0&&(x=ge.current),J.current=x<ge.current):J.current=!1,d&&Ce("DRAG"),h?(Ce("SNAP",{payload:{y:x,velocity:g>.05?g:1,source:"dragging"}}),f):(_({y:x,ready:1,maxHeight:pe.current,maxSnap:ge.current,minSnap:fe.current,immediate:!0,config:{velocity:g}}),f)}),{filterTaps:!0});if(Number.isNaN(ge.current))throw new TypeError("maxSnapRef is NaN!!");if(Number.isNaN(fe.current))throw new TypeError("minSnapRef is NaN!!");var $e=function(e){var t,n=e.spring,r=dT([n.y,n.maxHeight],(function(e,t){return Math.round(bA(t-e,0,16))+"px"})),o=dT([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return bA(e,t,n)+"px"})),i=dT([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return e<t?t-e+"px":e>n?n-e+"px":"0px"})),s=dT([n.y,n.maxSnap],(function(e,t){return e>=t?Math.ceil(e-t):0})),a=dT([n.y,n.minSnap],(function(e,t){if(!t)return 0;var n=Math.max(t/2-45,0);return bA((e-n)*(1/(Math.min(t/2+45,t)-n)+0),0,1)})),l=dT([n.y,n.minSnap],(function(e,t){return t?bA(e/t,0,1):0}));return(t={})["--rsbs-content-opacity"]=a,t["--rsbs-backdrop-opacity"]=l,t["--rsbs-antigap-scale-y"]=s,t["--rsbs-overlay-translate-y"]=i,t["--rsbs-overlay-rounded"]=r,t["--rsbs-overlay-h"]=o,t}({spring:B});return te.createElement(KT.div,fA({},O,{"data-rsbs-root":!0,"data-rsbs-state":NA.find(xe.matches),"data-rsbs-is-blocking":v,"data-rsbs-is-dismissable":!!u,"data-rsbs-has-header":!!s,"data-rsbs-has-footer":!!i,className:o,ref:j,style:fA({},$e,x,{opacity:B.ready})}),r,v&&te.createElement("div",fA({key:"backdrop","data-rsbs-backdrop":!0},ke({closeOnTap:!0}))),te.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!==s&&te.createElement("div",fA({key:"header","data-rsbs-header":!0,ref:W},ke()),s),te.createElement("div",fA({key:"scroll","data-rsbs-scroll":!0,ref:F},T?ke({isContentDragging:!0}):{}),te.createElement("div",{"data-rsbs-content":!0,ref:q},n)),i&&te.createElement("div",fA({key:"footer",ref:U,"data-rsbs-footer":!0},ke()),i)))})),NA=["closed","opening","open","closing","dragging","snapping","resizing"];function RA(e){var t=e.lastSnap;return null!=t?t:Math.min.apply(Math,e.snapPoints)}function DA(e){return e.minHeight}var PA=["onSpringStart","onSpringEnd","skipInitialTransition"],IA=ie((function(e,t){var n=e.onSpringStart,r=e.onSpringEnd,o=e.skipInitialTransition,i=mA(e,PA),s=ae(!1),a=s[0],l=s[1],c=se(),d=se(null),u=se(o&&i.open?"OPEN":"CLOSED");gA((function(){if(i.open)return cancelAnimationFrame(c.current),l(!0),function(){u.current="CLOSED"}}),[i.open]);var h=ue((function(e){return Promise.resolve(null==n?void 0:n(e)).then((function(){"OPEN"===e.type&&cancelAnimationFrame(c.current)}))}),[n]),p=ue((function(e){return Promise.resolve(null==r?void 0:r(e)).then((function(){"CLOSE"===e.type&&(c.current=requestAnimationFrame((function(){return l(!1)})))}))}),[r]);return a?te.createElement(LS,{"data-rsbs-portal":!0},te.createElement(AA,fA({},i,{lastSnapRef:d,ref:t,initialState:u.current,onSpringStart:h,onSpringEnd:p}))):null}));const zA=ke`
|
|
3068
|
+
function lL(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 cL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lL(Object(n),!0).forEach((function(t){dL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var uL,hL=(uL=[],{activateTrap:function(e){if(uL.length>0){var t=uL[uL.length-1];t!==e&&t.pause()}var n=uL.indexOf(e);-1===n||uL.splice(n,1),uL.push(e)},deactivateTrap:function(e){var t=uL.indexOf(e);-1!==t&&uL.splice(t,1),uL.length>0&&uL[uL.length-1].unpause()}}),pL=function(e){return setTimeout(e,0)},fL=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},mL=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},gL=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},bL=function(e,t){var n,r=(null==t?void 0:t.document)||document,o=cL({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),i={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},s=function(e,t,n){return e&&void 0!==e[t]?e[t]:o[n||t]},a=function(e){return i.containerGroups.findIndex((function(t){var n=t.container,r=t.tabbableNodes;return n.contains(e)||r.find((function(t){return t===e}))}))},l=function(e){var t=o[e];if("function"==typeof t){for(var n=arguments.length,i=new Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];t=t.apply(void 0,i)}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 a=t;if("string"==typeof t&&!(a=r.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return a},c=function(){var e=l("initialFocus");if(!1===e)return!1;if(void 0===e)if(a(r.activeElement)>=0)e=r.activeElement;else{var t=i.tabbableGroups[0];e=t&&t.firstTabbableNode||l("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},d=function(){if(i.containerGroups=i.containers.map((function(e){var t,n,r=oL(e,o.tabbableOptions),i=(t=e,(n=(n=o.tabbableOptions)||{}).getShadowRoot?GO([t],n.includeContainer,{filter:eL.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):KO(t,n.includeContainer,eL.bind(null,n)));return{container:e,tabbableNodes:r,focusableNodes:i,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=i.findIndex((function(t){return t===e}));if(!(n<0))return t?i.slice(n+1).find((function(e){return iL(e,o.tabbableOptions)})):i.slice(0,n).reverse().find((function(e){return iL(e,o.tabbableOptions)}))}}})),i.tabbableGroups=i.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),i.tabbableGroups.length<=0&&!l("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:!!o.preventScroll}),i.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(c()))},h=function(e){var t=l("setReturnFocus",e);return t||!1!==t&&e},p=function(e){var t=gL(e);a(t)>=0||(mL(o.clickOutsideDeactivates,e)?n.deactivate({returnFocus:o.returnFocusOnDeactivate&&!aL(t,o.tabbableOptions)}):mL(o.allowOutsideClick,e)||e.preventDefault())},f=function(e){var t=gL(e),n=a(t)>=0;n||t instanceof Document?n&&(i.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),u(i.mostRecentlyFocusedNode||c()))},m=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==mL(o.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=gL(e);d();var n=null;if(i.tabbableGroups.length>0){var r=a(t),s=r>=0?i.containerGroups[r]:void 0;if(r<0)n=e.shiftKey?i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:i.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var c=fL(i.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(c<0&&(s.container===t||aL(t,o.tabbableOptions)&&!iL(t,o.tabbableOptions)&&!s.nextTabbableNode(t,!1))&&(c=r),c>=0){var h=0===c?i.tabbableGroups.length-1:c-1;n=i.tabbableGroups[h].lastTabbableNode}}else{var p=fL(i.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(p<0&&(s.container===t||aL(t,o.tabbableOptions)&&!iL(t,o.tabbableOptions)&&!s.nextTabbableNode(t))&&(p=r),p>=0){var f=p===i.tabbableGroups.length-1?0:p+1;n=i.tabbableGroups[f].firstTabbableNode}}}else n=l("fallbackFocus");n&&(e.preventDefault(),u(n))}(e)},g=function(e){var t=gL(e);a(t)>=0||mL(o.clickOutsideDeactivates,e)||mL(o.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},b=function(){if(i.active)return hL.activateTrap(n),i.delayInitialFocusTimer=o.delayInitialFocus?pL((function(){u(c())})):u(c()),r.addEventListener("focusin",f,!0),r.addEventListener("mousedown",p,{capture:!0,passive:!1}),r.addEventListener("touchstart",p,{capture:!0,passive:!1}),r.addEventListener("click",g,{capture:!0,passive:!1}),r.addEventListener("keydown",m,{capture:!0,passive:!1}),n},v=function(){if(i.active)return r.removeEventListener("focusin",f,!0),r.removeEventListener("mousedown",p,!0),r.removeEventListener("touchstart",p,!0),r.removeEventListener("click",g,!0),r.removeEventListener("keydown",m,!0),n};return(n={get active(){return i.active},get paused(){return i.paused},activate:function(e){if(i.active)return this;var t=s(e,"onActivate"),n=s(e,"onPostActivate"),o=s(e,"checkCanFocusTrap");o||d(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=r.activeElement,t&&t();var a=function(){o&&d(),b(),n&&n()};return o?(o(i.containers.concat()).then(a,a),this):(a(),this)},deactivate:function(e){if(!i.active)return this;var t=cL({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},e);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,v(),i.active=!1,i.paused=!1,hL.deactivateTrap(n);var r=s(t,"onDeactivate"),a=s(t,"onPostDeactivate"),l=s(t,"checkCanReturnFocus"),c=s(t,"returnFocus","returnFocusOnDeactivate");r&&r();var d=function(){pL((function(){c&&u(h(i.nodeFocusedBeforeActivation)),a&&a()}))};return c&&l?(l(h(i.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(){return i.paused||!i.active||(i.paused=!0,v()),this},unpause:function(){return i.paused&&i.active?(i.paused=!1,d(),b(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return i.containers=t.map((function(e){return"string"==typeof e?r.querySelector(e):e})),i.active&&d(),this}}).updateContainerElements(e),n};var vL=!1;if("undefined"!=typeof window){var yL={get passive(){vL=!0}};window.addEventListener("testPassive",null,yL),window.removeEventListener("testPassive",null,yL)}var wL,xL="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),CL=[],kL=!1,$L=-1,SL=void 0,ML=void 0,EL=function(e){return CL.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},TL=function(e){var t=e||window.event;return!!EL(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},OL=function(e,t){if(e){if(!CL.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};CL=[].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)}(CL),[n]),xL?(e.ontouchstart=function(e){1===e.targetTouches.length&&($L=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-$L;!EL(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?TL(e):e.stopPropagation())}(t,e)},kL||(document.addEventListener("touchmove",TL,vL?{passive:!1}:void 0),kL=!0)):function(e){if(void 0===ML){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(ML=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===SL&&(SL=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.")},LL=function(e){e?(CL=CL.filter((function(t){return t.targetElement!==e})),xL?(e.ontouchstart=null,e.ontouchmove=null,kL&&0===CL.length&&(document.removeEventListener("touchmove",TL,vL?{passive:!1}:void 0),kL=!1)):CL.length||(void 0!==ML&&(document.body.style.paddingRight=ML,ML=void 0),void 0!==SL&&(document.body.style.overflow=SL,SL=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")},AL=[],NL="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"}(wL||(wL={}));var RL,DL=function(e){return Object.freeze(e)},PL=function(e,t){this.inlineSize=e,this.blockSize=t,DL(this)},IL=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,DL(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}(),zL=function(e){return e instanceof SVGElement&&"getBBox"in e},VL=function(e){if(zL(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,s=o.offsetHeight;return!(i||s||e.getClientRects().length)},HL=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)},BL="undefined"!=typeof window?window:{},_L=new WeakMap,jL=/auto|scroll/,FL=/^tb|vertical/,qL=/msie|trident/i.test(BL.navigator&&BL.navigator.userAgent),WL=function(e){return parseFloat(e||"0")},UL=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new PL((n?t:e)||0,(n?e:t)||0)},KL=DL({devicePixelContentBoxSize:UL(),borderBoxSize:UL(),contentBoxSize:UL(),contentRect:new IL(0,0,0,0)}),GL=function(e,t){if(void 0===t&&(t=!1),_L.has(e)&&!t)return _L.get(e);if(VL(e))return _L.set(e,KL),KL;var n=getComputedStyle(e),r=zL(e)&&e.ownerSVGElement&&e.getBBox(),o=!qL&&"border-box"===n.boxSizing,i=FL.test(n.writingMode||""),s=!r&&jL.test(n.overflowY||""),a=!r&&jL.test(n.overflowX||""),l=r?0:WL(n.paddingTop),c=r?0:WL(n.paddingRight),d=r?0:WL(n.paddingBottom),u=r?0:WL(n.paddingLeft),h=r?0:WL(n.borderTopWidth),p=r?0:WL(n.borderRightWidth),f=r?0:WL(n.borderBottomWidth),m=u+c,g=l+d,b=(r?0:WL(n.borderLeftWidth))+p,v=h+f,y=a?e.offsetHeight-v-e.clientHeight:0,w=s?e.offsetWidth-b-e.clientWidth:0,x=o?m+b:0,C=o?g+v:0,k=r?r.width:WL(n.width)-x-w,$=r?r.height:WL(n.height)-C-y,S=k+m+w+b,M=$+g+y+v,E=DL({devicePixelContentBoxSize:UL(Math.round(k*devicePixelRatio),Math.round($*devicePixelRatio),i),borderBoxSize:UL(S,M,i),contentBoxSize:UL(k,$,i),contentRect:new IL(u,l,k,$)});return _L.set(e,E),E},ZL=function(e,t,n){var r=GL(e,n),o=r.borderBoxSize,i=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case wL.DEVICE_PIXEL_CONTENT_BOX:return s;case wL.BORDER_BOX:return o;default:return i}},JL=function(e){var t=GL(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=DL([t.borderBoxSize]),this.contentBoxSize=DL([t.contentBoxSize]),this.devicePixelContentBoxSize=DL([t.devicePixelContentBoxSize])},XL=function(e){if(VL(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},YL=function(){var e=1/0,t=[];AL.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new JL(t.target),o=XL(t.target);r.push(n),t.lastReportedSize=ZL(t.target,t.observedBox),o<e&&(e=o)})),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},QL=function(e){AL.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(XL(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},eA=function(){var e=0;for(QL(e);AL.some((function(e){return e.activeTargets.length>0}));)e=YL(),QL(e);return AL.some((function(e){return e.skippedTargets.length>0}))&&function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:NL}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=NL),window.dispatchEvent(e)}(),e>0},tA=[],nA=function(e){if(!RL){var t=0,n=document.createTextNode("");new MutationObserver((function(){return tA.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),RL=function(){n.textContent="".concat(t?t--:t++)}}tA.push(e),RL()},rA=0,oA={attributes:!0,characterData:!0,childList:!0,subtree:!0},iA=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],sA=function(e){return void 0===e&&(e=0),Date.now()+e},aA=!1,lA=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),!aA){aA=!0;var n,r=sA(e);n=function(){var n=!1;try{n=eA()}finally{if(aA=!1,e=r-sA(),!rA)return;n?t.run(1e3):e>0?t.run(e):t.start()}},nA((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,oA)};document.body?t():BL.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),iA.forEach((function(t){return BL.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),iA.forEach((function(t){return BL.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),cA=function(e){!rA&&e>0&&lA.start(),!(rA+=e)&&lA.stop()},dA=function(){function e(e,t){this.target=e,this.observedBox=t||wL.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=ZL(this.target,this.observedBox,!0);return function(e){return!zL(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}(),uA=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},hA=new WeakMap,pA=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},fA=function(){function e(){}return e.connect=function(e,t){var n=new uA(e,t);hA.set(e,n)},e.observe=function(e,t,n){var r=hA.get(e),o=0===r.observationTargets.length;pA(r.observationTargets,t)<0&&(o&&AL.push(r),r.observationTargets.push(new dA(t,n&&n.box)),cA(1),lA.schedule())},e.unobserve=function(e,t){var n=hA.get(e),r=pA(n.observationTargets,t),o=1===n.observationTargets.length;r>=0&&(o&&AL.splice(AL.indexOf(n),1),n.observationTargets.splice(r,1),cA(-1))},e.disconnect=function(e){var t=this,n=hA.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),mA=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.");fA.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(!HL(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");fA.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(!HL(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");fA.unobserve(this,e)},e.prototype.disconnect=function(){fA.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();function gA(){return gA=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},gA.apply(this,arguments)}function bA(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}var vA="undefined"!=typeof window?de:ce;function yA(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 wA(e){var t=Math.round(e);if(Number.isNaN(e))throw new TypeError("Found a NaN! Check your snapPoints / defaultSnap / snapTo ");return t}var xA={box:"border-box"};function CA(e,t){var n=t.label,r=t.enabled,o=t.resizeSourceRef,i=ae(0),s=i[0],a=i[1];le(n+": "+s);var l=ue((function(e){a(e[0].borderBoxSize[0].blockSize),o.current="element"}),[o]);return vA((function(){if(e.current&&r){var t=new mA(l);return t.observe(e.current,xA),function(){t.disconnect()}}}),[e,l,r]),r?s:0}function kA(e){return void 0===e&&(e=1e3),new Promise((function(t){return setTimeout(t,e)}))}var $A={DRAG:{target:"#overlay.dragging",actions:"onOpenEnd"}},SA={RESIZE:{target:"#overlay.resizing",actions:"onOpenEnd"}},MA=function(e,t,n){return void 0===n&&(n=e.context),new TE(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:gA({},$A,SA)}}},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:gA({},$A,SA)}}},end:{invoke:{src:"onOpenEnd",onDone:"done"},on:{CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:gA({},{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:[LE({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(kA()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenStart:function(){try{return Promise.resolve(kA()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseStart:function(){try{return Promise.resolve(kA()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeStart:function(){try{return Promise.resolve(kA()).then((function(){}))}catch(e){return Promise.reject(e)}},onSnapEnd:function(){try{return Promise.resolve(kA()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenEnd:function(){try{return Promise.resolve(kA()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseEnd:function(){try{return Promise.resolve(kA()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeEnd:function(){try{return Promise.resolve(kA()).then((function(){}))}catch(e){return Promise.reject(e)}},renderVisuallyHidden:function(e,t){try{return Promise.resolve(kA()).then((function(){}))}catch(e){return Promise.reject(e)}},activate:function(e,t){try{return Promise.resolve(kA()).then((function(){}))}catch(e){return Promise.reject(e)}},deactivate:function(e,t){try{return Promise.resolve(kA()).then((function(){}))}catch(e){return Promise.reject(e)}},openSmoothly:function(e,t){try{return Promise.resolve(kA()).then((function(){}))}catch(e){return Promise.reject(e)}},openImmediately:function(e,t){try{return Promise.resolve(kA()).then((function(){}))}catch(e){return Promise.reject(e)}},snapSmoothly:function(e,t){try{return Promise.resolve(kA()).then((function(){}))}catch(e){return Promise.reject(e)}},resizeSmoothly:function(e,t){try{return Promise.resolve(kA()).then((function(){}))}catch(e){return Promise.reject(e)}},closeSmoothly:function(e,t){try{return Promise.resolve(kA()).then((function(){}))}catch(e){return Promise.reject(e)}}},guards:{initiallyClosed:function(e){return"CLOSED"===e.initialState},initiallyOpen:function(e){return"OPEN"===e.initialState}}}),EA=["children","sibling","className","footer","header","open","initialState","lastSnapRef","initialFocusRef","onDismiss","maxHeight","defaultSnap","snapPoints","blocking","scrollLocking","style","onSpringStart","onSpringCancel","onSpringEnd","reserveScrollBarGap","expandOnContentDrag"],TA=["velocity"],OA=["onRest","config"],LA={tension:170,friction:26},AA=LA.tension,NA=LA.friction,RA=te.forwardRef((function(e,t){var n=e.children,r=e.sibling,o=e.className,i=e.footer,s=e.header,a=e.open,l=e.initialState,c=e.lastSnapRef,d=e.initialFocusRef,u=e.onDismiss,h=e.maxHeight,p=e.defaultSnap,f=void 0===p?PA:p,m=e.snapPoints,g=void 0===m?IA:m,b=e.blocking,v=void 0===b||b,y=e.scrollLocking,w=void 0===y||y,x=e.style,C=e.onSpringStart,k=e.onSpringCancel,$=e.onSpringEnd,S=e.reserveScrollBarGap,M=void 0===S?v:S,E=e.expandOnContentDrag,T=void 0!==E&&E,O=bA(e,EA),L=function(){var e=ae(!1),t=e[0],n=e[1],r=ae({}),o=r[0],i=r[1],s=ue((function(e){return i((function(t){var n;return gA({},t,((n={})[e]=!1,n))})),function(){i((function(t){var n;return gA({},t,((n={})[e]=!0,n))}))}}),[]);return ce((function(){var e=Object.values(o);0!==e.length&&e.every(Boolean)&&n(!0)}),[o]),{ready:t,registerReady:s}}(),A=L.ready,N=L.registerReady,R=se(!1),D=se(C),P=se(k),I=se($);ce((function(){D.current=C,P.current=k,I.current=$}),[k,C,$]);var z,V,H=vT((function(){return{y:0,ready:0,maxHeight:0,minSnap:0,maxSnap:0}})),B=H[0],_=H[1],j=se(null),F=se(null),q=se(null),W=se(null),U=se(null),K=se(null),G=se(0),Z=se(),J=se(!1),X=(z=oe((function(){return"undefined"!=typeof window?window.matchMedia("(prefers-reduced-motion: reduce)"):null}),[]),V=se(null==z?void 0:z.matches),le(V.current?"reduce":"no-preference"),ce((function(){var e=function(e){V.current=e.matches};return null==z||z.addListener(e),function(){return null==z?void 0:z.removeListener(e)}}),[z]),V),Y=function(e){var t=e.targetRef,n=e.enabled,r=e.reserveScrollBarGap,o=se({activate:function(){throw new TypeError("Tried to activate scroll lock too early")},deactivate:function(){}});return le(n?"Enabled":"Disabled"),ce((function(){if(!n)return o.current.deactivate(),void(o.current={activate:function(){},deactivate:function(){}});var e=t.current,i=!1;o.current={activate:function(){i||(i=!0,OL(e,{allowTouchMove:function(e){return e.closest("[data-body-scroll-lock-ignore]")},reserveScrollBarGap:r}))},deactivate:function(){i&&(i=!1,LL(e))}}}),[n,t,r]),o}({targetRef:F,enabled:A&&w,reserveScrollBarGap:M}),Q=function(e){var t=e.targetRef,n=e.enabled,r=se({activate:function(){throw new TypeError("Tried to activate aria hider too early")},deactivate:function(){}});return le(n?"Enabled":"Disabled"),ce((function(){if(!n)return r.current.deactivate(),void(r.current={activate:function(){},deactivate:function(){}});var e=t.current,o=!1,i=[],s=[];r.current={activate:function(){if(!o){o=!0;var t=e.parentNode;document.querySelectorAll("body > *").forEach((function(e){if(e!==t){var n=e.getAttribute("aria-hidden");null!==n&&"false"!==n||(i.push(n),s.push(e),e.setAttribute("aria-hidden","true"))}}))}},deactivate:function(){o&&(o=!1,s.forEach((function(e,t){var n=i[t];null===n?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n)})),i=[],s=[])}}}),[t,n]),r}({targetRef:j,enabled:A&&v}),ee=function(e){var t=e.targetRef,n=e.fallbackRef,r=e.initialFocusRef,o=e.enabled,i=se({activate:function(){throw new TypeError("Tried to activate focus trap too early")},deactivate:function(){}});return le(o?"Enabled":"Disabled"),ce((function(){if(!o)return i.current.deactivate(),void(i.current={activate:function(){},deactivate:function(){}});var e=n.current,s=bL(t.current,{onActivate:void 0,initialFocus:r?function(){return(null==r?void 0:r.current)||e}:void 0,fallbackFocus:e,escapeDeactivates:!1,clickOutsideDeactivates:!1}),a=!1;i.current={activate:function(){try{return a?Promise.resolve():(a=!0,Promise.resolve(s.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(){a&&(a=!1,s.deactivate())}}}),[o,n,r,t]),i}({targetRef:j,fallbackRef:K,initialFocusRef:d||void 0,enabled:A&&v&&!1!==d}),ne=function(e){var t=e.getSnapPoints,n=e.heightRef,r=e.lastSnapRef,o=e.ready,i=function(e){var t=e.contentRef,n=e.controlledMaxHeight,r=e.footerEnabled,o=e.footerRef,i=e.headerEnabled,s=e.headerRef,a=e.registerReady,l=e.resizeSourceRef,c=oe((function(){return a("contentHeight")}),[a]),d=function(e,t,n){var r=oe((function(){return t("maxHeight")}),[t]),o=ae((function(){return wA(e)||"undefined"!=typeof window?window.innerHeight:0})),i=o[0],s=o[1],a=i>0,l=se(0);return le(e?"controlled":"auto"),ce((function(){a&&r()}),[a,r]),vA((function(){if(e)return s(wA(e)),void(n.current="maxheightprop");var t=function(){l.current||(l.current=requestAnimationFrame((function(){s(window.innerHeight),n.current="window",l.current=0})))};return window.addEventListener("resize",t),s(window.innerHeight),n.current="window",r(),function(){window.removeEventListener("resize",t),cancelAnimationFrame(l.current)}}),[e,r,n]),i}(n,a,l),u=CA(s,{label:"headerHeight",enabled:i,resizeSourceRef:l}),h=CA(t,{label:"contentHeight",enabled:!0,resizeSourceRef:l}),p=CA(o,{label:"footerHeight",enabled:r,resizeSourceRef:l}),f=Math.min(d-u-p,h)+u+p;le("minHeight: "+f);var m=h>0;return ce((function(){m&&c()}),[m,c]),{maxHeight:d,minHeight:f,headerHeight:u,footerHeight:p}}({contentRef:e.contentRef,controlledMaxHeight:e.controlledMaxHeight,footerEnabled:e.footerEnabled,footerRef:e.footerRef,headerEnabled:e.headerEnabled,headerRef:e.headerRef,registerReady:e.registerReady,resizeSourceRef:e.resizeSourceRef}),s=i.maxHeight,a=i.minHeight,l=i.headerHeight,c=i.footerHeight,d=function(e,t){var n=[].concat(e).map(wA).reduce((function(e,n){return e.add(yA(n,0,t)),e}),new Set),r=Array.from(n),o=Math.min.apply(Math,r);if(Number.isNaN(o))throw new TypeError("minSnap is NaN");var i=Math.max.apply(Math,r);if(Number.isNaN(i))throw new TypeError("maxSnap is NaN");return{snapPoints:r,minSnap:o,maxSnap:i}}(o?t({height:n.current,footerHeight:c,headerHeight:l,minHeight:a,maxHeight:s}):[0],s),u=d.snapPoints,h=d.minSnap,p=d.maxSnap;return le("minSnap: "+h+", maxSnap:"+p),{minSnap:h,maxSnap:p,findSnap:function(e){var t=wA("function"==typeof e?e({footerHeight:c,headerHeight:l,height:n.current,minHeight:a,maxHeight:s,snapPoints:u,lastSnap:r.current}):e);return u.reduce((function(e,n){return Math.abs(n-t)<Math.abs(e-t)?n:e}),h)},maxHeight:s}}({contentRef:q,controlledMaxHeight:h,footerEnabled:!!i,footerRef:U,getSnapPoints:g,headerEnabled:!1!==s,headerRef:W,heightRef:G,lastSnapRef:c,ready:A,registerReady:N,resizeSourceRef:Z}),re=ne.minSnap,ie=ne.maxSnap,de=ne.maxHeight,he=ne.findSnap,pe=se(de),fe=se(re),ge=se(ie),be=se(he),ve=se(0);vA((function(){pe.current=de,ge.current=ie,fe.current=re,be.current=he,ve.current=he(f)}),[he,f,de,ie,re]);var ye=ue((function(e){var t=e.onRest,n=e.config,r=(n=void 0===n?{}:n).velocity,o=void 0===r?1:r,i=bA(n,TA),s=bA(e,OA);return new Promise((function(e){return _(gA({},s,{config:gA({velocity:o},i,{mass:1,tension:AA,friction:Math.max(NA,NA+(NA-NA*o))}),onRest:function(){var n=[].slice.call(arguments);e.apply(void 0,n),null==t||t.apply(void 0,n)}}))}))}),[_]),we=FE(MA,{devTools:!1,actions:{onOpenCancel:ue((function(){return null==P.current?void 0:P.current({type:"OPEN"})}),[]),onSnapCancel:ue((function(e){return null==P.current?void 0:P.current({type:"SNAP",source:e.snapSource})}),[]),onCloseCancel:ue((function(){return null==P.current?void 0:P.current({type:"CLOSE"})}),[]),onResizeCancel:ue((function(){return null==P.current?void 0:P.current({type:"RESIZE",source:Z.current})}),[]),onOpenEnd:ue((function(){return null==I.current?void 0:I.current({type:"OPEN"})}),[]),onSnapEnd:ue((function(e,t){return null==I.current?void 0:I.current({type:"SNAP",source:e.snapSource})}),[]),onResizeEnd:ue((function(){return null==I.current?void 0:I.current({type:"RESIZE",source:Z.current})}),[])},context:{initialState:l},services:{onSnapStart:ue((function(e,t){try{return Promise.resolve(null==D.current?void 0:D.current({type:"SNAP",source:t.payload.source||"custom"}))}catch(e){return Promise.reject(e)}}),[]),onOpenStart:ue((function(){try{return Promise.resolve(null==D.current?void 0:D.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseStart:ue((function(){try{return Promise.resolve(null==D.current?void 0:D.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeStart:ue((function(){try{return Promise.resolve(null==D.current?void 0:D.current({type:"RESIZE",source:Z.current}))}catch(e){return Promise.reject(e)}}),[]),onSnapEnd:ue((function(e,t){try{return Promise.resolve(null==I.current?void 0:I.current({type:"SNAP",source:e.snapSource}))}catch(e){return Promise.reject(e)}}),[]),onOpenEnd:ue((function(){try{return Promise.resolve(null==I.current?void 0:I.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseEnd:ue((function(){try{return Promise.resolve(null==I.current?void 0:I.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeEnd:ue((function(){try{return Promise.resolve(null==I.current?void 0:I.current({type:"RESIZE",source:Z.current}))}catch(e){return Promise.reject(e)}}),[]),renderVisuallyHidden:ue((function(e,t){try{return Promise.resolve(ye({y:ve.current,ready:0,maxHeight:pe.current,maxSnap:ge.current,minSnap:ve.current,immediate:!0})).then((function(){}))}catch(e){return Promise.reject(e)}}),[ye]),activate:ue((function(e,t){try{return R.current=!0,Promise.resolve(Promise.all([Y.current.activate(),ee.current.activate(),Q.current.activate()])).then((function(){}))}catch(e){return Promise.reject(e)}}),[Q,ee,Y]),deactivate:ue((function(){try{return Y.current.deactivate(),ee.current.deactivate(),Q.current.deactivate(),R.current=!1,Promise.resolve()}catch(e){return Promise.reject(e)}}),[Q,ee,Y]),openImmediately:ue((function(){try{return G.current=ve.current,Promise.resolve(ye({y:ve.current,ready:1,maxHeight:pe.current,maxSnap:ge.current,minSnap:ve.current,immediate:!0})).then((function(){}))}catch(e){return Promise.reject(e)}}),[ye]),openSmoothly:ue((function(){try{return Promise.resolve(ye({y:0,ready:1,maxHeight:pe.current,maxSnap:ge.current,minSnap:ve.current,immediate:!0})).then((function(){return G.current=ve.current,Promise.resolve(ye({y:ve.current,ready:1,maxHeight:pe.current,maxSnap:ge.current,minSnap:ve.current,immediate:X.current})).then((function(){}))}))}catch(e){return Promise.reject(e)}}),[ye,X]),snapSmoothly:ue((function(e,t){try{var n=be.current(e.y);return G.current=n,c.current=n,Promise.resolve(ye({y:n,ready:1,maxHeight:pe.current,maxSnap:ge.current,minSnap:fe.current,immediate:X.current,config:{velocity:e.velocity}})).then((function(){}))}catch(e){return Promise.reject(e)}}),[ye,c,X]),resizeSmoothly:ue((function(){try{var e=be.current(G.current);return G.current=e,c.current=e,Promise.resolve(ye({y:e,ready:1,maxHeight:pe.current,maxSnap:ge.current,minSnap:fe.current,immediate:"element"!==Z.current||X.current})).then((function(){}))}catch(e){return Promise.reject(e)}}),[ye,c,X]),closeSmoothly:ue((function(e,t){try{return ye({minSnap:G.current,immediate:!0}),G.current=0,Promise.resolve(ye({y:0,maxHeight:pe.current,maxSnap:ge.current,immediate:X.current})).then((function(){return Promise.resolve(ye({ready:0,immediate:!0})).then((function(){}))}))}catch(e){return Promise.reject(e)}}),[ye,X])}}),xe=we[0],Ce=we[1];ce((function(){A&&Ce(a?"OPEN":"CLOSE")}),[a,Ce,A]),vA((function(){(de||ie||re)&&Ce("RESIZE")}),[de,ie,re,Ce]),ce((function(){return function(){Y.current.deactivate(),ee.current.deactivate(),Q.current.deactivate()}}),[Q,ee,Y]),me(t,(function(){return{snapTo:function(e,t){var n=void 0===t?{}:t,r=n.velocity,o=void 0===r?1:r,i=n.source,s=void 0===i?"custom":i;Ce("SNAP",{payload:{y:be.current(e),velocity:o,source:s}})},get height(){return G.current}}}),[Ce]),ce((function(){var e=F.current,t=function(e){J.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 T&&(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)}}),[T,F]);var ke=_O((function(e){var t=e.args,n=(t=void 0===t?[]:t)[0],r=(n=void 0===n?{}:n).closeOnTap,o=void 0!==r&&r,i=n.isContentDragging,s=void 0!==i&&i,a=e.cancel,l=e.direction[1],c=e.down,d=e.first,h=e.last,p=e.memo,f=void 0===p?B.y.getValue():p,m=e.tap,g=e.velocity,b=-1*e.movement[1];if(!R.current)return a(),f;if(u&&o&&m)return a(),setTimeout((function(){return u()}),0),f;if(m)return f;var v=f+b,y=b*g,w=Math.max(fe.current,Math.min(ge.current,v+2*y));if(!c&&u&&l>0&&v+y<fe.current/2)return a(),u(),f;var x=c?u||fe.current!==ge.current?tO(v,u?0:fe.current,ge.current,.55):v<fe.current?tO(v,fe.current,2*ge.current,.55):tO(v,fe.current/2,ge.current,.55):w;return T&&s?(x>=ge.current&&(x=ge.current),f===ge.current&&F.current.scrollTop>0&&(x=ge.current),J.current=x<ge.current):J.current=!1,d&&Ce("DRAG"),h?(Ce("SNAP",{payload:{y:x,velocity:g>.05?g:1,source:"dragging"}}),f):(_({y:x,ready:1,maxHeight:pe.current,maxSnap:ge.current,minSnap:fe.current,immediate:!0,config:{velocity:g}}),f)}),{filterTaps:!0});if(Number.isNaN(ge.current))throw new TypeError("maxSnapRef is NaN!!");if(Number.isNaN(fe.current))throw new TypeError("minSnapRef is NaN!!");var $e=function(e){var t,n=e.spring,r=hT([n.y,n.maxHeight],(function(e,t){return Math.round(yA(t-e,0,16))+"px"})),o=hT([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return yA(e,t,n)+"px"})),i=hT([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return e<t?t-e+"px":e>n?n-e+"px":"0px"})),s=hT([n.y,n.maxSnap],(function(e,t){return e>=t?Math.ceil(e-t):0})),a=hT([n.y,n.minSnap],(function(e,t){if(!t)return 0;var n=Math.max(t/2-45,0);return yA((e-n)*(1/(Math.min(t/2+45,t)-n)+0),0,1)})),l=hT([n.y,n.minSnap],(function(e,t){return t?yA(e/t,0,1):0}));return(t={})["--rsbs-content-opacity"]=a,t["--rsbs-backdrop-opacity"]=l,t["--rsbs-antigap-scale-y"]=s,t["--rsbs-overlay-translate-y"]=i,t["--rsbs-overlay-rounded"]=r,t["--rsbs-overlay-h"]=o,t}({spring:B});return te.createElement(ZT.div,gA({},O,{"data-rsbs-root":!0,"data-rsbs-state":DA.find(xe.matches),"data-rsbs-is-blocking":v,"data-rsbs-is-dismissable":!!u,"data-rsbs-has-header":!!s,"data-rsbs-has-footer":!!i,className:o,ref:j,style:gA({},$e,x,{opacity:B.ready})}),r,v&&te.createElement("div",gA({key:"backdrop","data-rsbs-backdrop":!0},ke({closeOnTap:!0}))),te.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!==s&&te.createElement("div",gA({key:"header","data-rsbs-header":!0,ref:W},ke()),s),te.createElement("div",gA({key:"scroll","data-rsbs-scroll":!0,ref:F},T?ke({isContentDragging:!0}):{}),te.createElement("div",{"data-rsbs-content":!0,ref:q},n)),i&&te.createElement("div",gA({key:"footer",ref:U,"data-rsbs-footer":!0},ke()),i)))})),DA=["closed","opening","open","closing","dragging","snapping","resizing"];function PA(e){var t=e.lastSnap;return null!=t?t:Math.min.apply(Math,e.snapPoints)}function IA(e){return e.minHeight}var zA=["onSpringStart","onSpringEnd","skipInitialTransition"],VA=ie((function(e,t){var n=e.onSpringStart,r=e.onSpringEnd,o=e.skipInitialTransition,i=bA(e,zA),s=ae(!1),a=s[0],l=s[1],c=se(),d=se(null),u=se(o&&i.open?"OPEN":"CLOSED");vA((function(){if(i.open)return cancelAnimationFrame(c.current),l(!0),function(){u.current="CLOSED"}}),[i.open]);var h=ue((function(e){return Promise.resolve(null==n?void 0:n(e)).then((function(){"OPEN"===e.type&&cancelAnimationFrame(c.current)}))}),[n]),p=ue((function(e){return Promise.resolve(null==r?void 0:r(e)).then((function(){"CLOSE"===e.type&&(c.current=requestAnimationFrame((function(){return l(!1)})))}))}),[r]);return a?te.createElement(NS,{"data-rsbs-portal":!0},te.createElement(RA,gA({},i,{lastSnapRef:d,ref:t,initialState:u.current,onSpringStart:h,onSpringEnd:p}))):null}));const HA=ke`
|
|
3049
3069
|
width: ${Ve(1e3)};
|
|
3050
3070
|
border-radius: ${Be(300)};
|
|
3051
3071
|
background: transparent;
|
|
@@ -3059,7 +3079,7 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3059
3079
|
margin: 0;
|
|
3060
3080
|
background: ${Ie("neutral",300)};
|
|
3061
3081
|
}
|
|
3062
|
-
`,
|
|
3082
|
+
`,BA=(e,t)=>ke`
|
|
3063
3083
|
[data-rsbs-overlay] {
|
|
3064
3084
|
border-top-left-radius: ${Be(500)};
|
|
3065
3085
|
border-top-right-radius: ${Be(500)};
|
|
@@ -3085,11 +3105,11 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3085
3105
|
padding: 0;
|
|
3086
3106
|
min-height: ${Ve(1600)};
|
|
3087
3107
|
}
|
|
3088
|
-
`;!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.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
|
|
3108
|
+
`;!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.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 _A=(e,t)=>{let n=0,r=1/0;return t.forEach(((t,o)=>{const i=Math.abs(t-e);i<r&&(r=i,n=o)})),n},jA=({header:e,content:t,footer:n,open:r=!1,onClose:o,minimizedHeight:i,midHeight:s=200,maxFullHeight:a,defaultSnap:l="minimized",className:c,blocking:d,zIndex:u=1e3,labels:h})=>{const p=tg("Sheet",h),f=se(null),m=te.useRef([]),[g,b]=te.useState(null),v=window.innerWidth>768,y=m.current;let w=p.expandSheetLabel;if(null!=g){const e=_A(g,y);e>0&&e<y.length-1?w=p.makeFullScreenLabel:e===y.length-1&&(w=p.expandedSheetLabel)}const x=!(null==g||!y.length||_A(g,y)!==y.length-1);return ve(VA,{ref:f,css:BA(!!e,u),className:c,open:r,onDismiss:o,header:be("div",{children:[ve("button",{type:"button",disabled:x,"aria-label":w,css:HA,onKeyDown:e=>{if("Enter"!==e.key&&" "!==e.key)return;e.preventDefault();const t=y[y.length-1];if(v)return void f.current?.snapTo?.((()=>t));const n=g??y[0];let r=y.findIndex((e=>e>n));-1===r&&(r=y.length-1);const o=y[r];f.current?.snapTo?.((()=>o))},children:ve("div",{})}),ve("span",{"aria-live":"polite",style:{position:"absolute",width:1,height:1,overflow:"hidden",clip:"rect(0 0 0 0)"},children:w}),e]}),footer:n,snapPoints:({headerHeight:e,maxHeight:t,footerHeight:r})=>{const o=[20,i||e,s+(n?r:0),a||t-t/6];return m.current=o,o},onSpringEnd:()=>{const e=f.current?.height;e&&b(e)},defaultSnap:({headerHeight:e,maxHeight:t,footerHeight:r})=>{let o=20;return"minimized"===l?o=i||e:"mid"===l?o=s+(n?r:0):"full"===l&&(o=a||t-t/6),o},blocking:d,children:r?t:null})},FA=e=>"small"===e||"small-full-width"===e,qA=(e,t)=>{let n="14.875rem";return(e=>"full-width"===e||"small-full-width"===e)(e)?n="100%":"large"===e&&(n="22.875rem"),ke`
|
|
3089
3109
|
width: 100%;
|
|
3090
3110
|
max-width: ${n};
|
|
3091
3111
|
border-radius: ${Be(300)};
|
|
3092
|
-
padding: ${
|
|
3112
|
+
padding: ${FA(e)?`${Ve(200)} ${Ve(200)} ${Ve(300)} ${Ve(200)}`:`${Ve(200)} ${Ve(300)} ${Ve(300)} ${Ve(300)}`};
|
|
3093
3113
|
display: flex;
|
|
3094
3114
|
align-items: ${t?"center":"flex-start"};
|
|
3095
3115
|
justify-content: ${t?"space-between":"flex-start"};
|
|
@@ -3099,7 +3119,7 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3099
3119
|
button {
|
|
3100
3120
|
margin-left: ${t?0:Ve(600)};
|
|
3101
3121
|
}
|
|
3102
|
-
`},
|
|
3122
|
+
`},WA=ke`
|
|
3103
3123
|
display: flex;
|
|
3104
3124
|
align-items: baseline;
|
|
3105
3125
|
gap: ${Ve(200)};
|
|
@@ -3107,35 +3127,35 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3107
3127
|
svg {
|
|
3108
3128
|
margin-top: 0.1875rem;
|
|
3109
3129
|
}
|
|
3110
|
-
`,
|
|
3130
|
+
`,UA=e=>ke`
|
|
3111
3131
|
color: ${Ie("neutral",800)};
|
|
3112
|
-
font-size: ${
|
|
3113
|
-
line-height: ${
|
|
3132
|
+
font-size: ${FA(e)?ze(300):ze(500)};
|
|
3133
|
+
line-height: ${FA(e)?He(500):He(700)};
|
|
3114
3134
|
font-weight: 400;
|
|
3115
3135
|
text-align: left;
|
|
3116
|
-
`,
|
|
3136
|
+
`,KA=(e,t)=>ke`
|
|
3117
3137
|
color: ${Ie("neutral",700)};
|
|
3118
|
-
font-size: ${
|
|
3119
|
-
line-height: ${
|
|
3138
|
+
font-size: ${FA(e)?ze(200):ze(400)};
|
|
3139
|
+
line-height: ${FA(e)?He(400):He(600)};
|
|
3120
3140
|
font-weight: 400;
|
|
3121
3141
|
margin-left: ${t?Ve(600):"0"};
|
|
3122
3142
|
text-align: left;
|
|
3123
|
-
`,
|
|
3143
|
+
`,GA=(e,t)=>ke`
|
|
3124
3144
|
color: ${Ie("neutral",700)};
|
|
3125
|
-
font-size: ${
|
|
3126
|
-
line-height: ${
|
|
3145
|
+
font-size: ${FA(e)?ze(200):ze(400)};
|
|
3146
|
+
line-height: ${FA(e)?He(400):He(600)};
|
|
3127
3147
|
font-weight: 400;
|
|
3128
3148
|
margin-left: ${t?Ve(600):"0"};
|
|
3129
3149
|
text-align: left;
|
|
3130
|
-
`,
|
|
3150
|
+
`,ZA=ke`
|
|
3131
3151
|
background-color: ${Ie("neutral",100)};
|
|
3132
3152
|
border: ${_e(100)} solid ${Ie("neutral",300)};
|
|
3133
3153
|
color: ${Ie("neutral",700)};
|
|
3134
|
-
`,
|
|
3154
|
+
`,JA=ke`
|
|
3135
3155
|
background-color: ${Ie("neutral",200)};
|
|
3136
3156
|
border: ${_e(100)} solid ${Ie("neutral",300)};
|
|
3137
3157
|
color: ${Ie("neutral",700)};
|
|
3138
|
-
`,
|
|
3158
|
+
`,XA=ke`
|
|
3139
3159
|
background-color: ${Ie("success",100)};
|
|
3140
3160
|
border: ${_e(100)} solid ${Ie("success",300)};
|
|
3141
3161
|
color: ${Ie("success",500)};
|
|
@@ -3143,7 +3163,7 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3143
3163
|
p {
|
|
3144
3164
|
color: ${Ie("success",900)};
|
|
3145
3165
|
}
|
|
3146
|
-
`,
|
|
3166
|
+
`,YA=ke`
|
|
3147
3167
|
background-color: ${Ie("warning",100)};
|
|
3148
3168
|
border: ${_e(100)} solid ${Ie("warning",300)};
|
|
3149
3169
|
color: ${Ie("warning",500)};
|
|
@@ -3151,7 +3171,7 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3151
3171
|
p {
|
|
3152
3172
|
color: ${Ie("warning",900)};
|
|
3153
3173
|
}
|
|
3154
|
-
`,
|
|
3174
|
+
`,QA=ke`
|
|
3155
3175
|
background-color: ${Ie("error",100)};
|
|
3156
3176
|
border: ${_e(100)} solid ${Ie("error",300)};
|
|
3157
3177
|
color: ${Ie("error",500)};
|
|
@@ -3159,52 +3179,52 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3159
3179
|
p {
|
|
3160
3180
|
color: ${Ie("error",900)};
|
|
3161
3181
|
}
|
|
3162
|
-
`,
|
|
3182
|
+
`,eN=({label:e,caption:t,variant:n,size:r="large",icon:o=ve(cg,{height:"1rem",width:"1rem"}),onActionClick:i,actionLabel:s,actionButtonVariant:a="secondary",isButtonRight:l,buttonLeftIcon:c,buttonRightIcon:d,labels:u})=>{const h=tg("InlineMessage",u);let p=ZA;"info-grey"===n?p=JA:"success"===n?p=XA:"warning"===n?p=YA:"error"===n&&(p=QA);const f="error"===n||"warning"===n?"alert":"status",m="alert"===f?"assertive":"polite";return be("div",{css:[qA(r,l),p],role:f,"aria-live":m,"aria-roledescription":h.roleDescription,children:[be("div",{children:[be("div",{css:WA,children:[o,ve("string"==typeof e?"p":"div",{css:UA(r),children:e})]}),t&&"string"==typeof t?ve("p",{css:KA(r,!!o),children:t}):t?ve("div",{css:GA(r,!!o),children:t}):null]}),s?ve(ng,{label:s,variant:a,size:"large"===r||"full-width"===r?"default":"small",onClick:i,leftIcon:c,rightIcon:d}):null]})},tN=ke`
|
|
3163
3183
|
width: 100%;
|
|
3164
3184
|
min-height: calc(${Ve(1200)} * 12);
|
|
3165
3185
|
background-color: ${Ie("neutral",100)};
|
|
3166
3186
|
display: flex;
|
|
3167
3187
|
flex-direction: column;
|
|
3168
|
-
`,
|
|
3188
|
+
`,nN=ke`
|
|
3169
3189
|
background-color: ${Ie("neutral",200)};
|
|
3170
3190
|
padding: ${Ve(300)};
|
|
3171
3191
|
display: flex;
|
|
3172
3192
|
align-items: center;
|
|
3173
3193
|
gap: ${Ve(300)};
|
|
3174
|
-
`,
|
|
3194
|
+
`,rN=ke`
|
|
3175
3195
|
flex: 1;
|
|
3176
3196
|
|
|
3177
3197
|
.ds-text-input-container {
|
|
3178
3198
|
margin-bottom: 0;
|
|
3179
3199
|
}
|
|
3180
|
-
`,
|
|
3200
|
+
`,oN=ke`
|
|
3181
3201
|
flex-shrink: 0;
|
|
3182
3202
|
color: ${Ie("neutral",700)};
|
|
3183
3203
|
font-size: ${ze(400)};
|
|
3184
3204
|
font-style: normal;
|
|
3185
3205
|
font-weight: 400;
|
|
3186
|
-
`,
|
|
3206
|
+
`,iN=ke`
|
|
3187
3207
|
flex: 1;
|
|
3188
3208
|
min-height: 0;
|
|
3189
3209
|
padding: ${Ve(400)};
|
|
3190
3210
|
display: flex;
|
|
3191
3211
|
flex-direction: column;
|
|
3192
3212
|
gap: ${Ve(300)};
|
|
3193
|
-
`,
|
|
3213
|
+
`,sN=ke`
|
|
3194
3214
|
color: ${Ie("neutral",700)};
|
|
3195
3215
|
font-size: ${ze(400)};
|
|
3196
3216
|
line-height: ${He(600)};
|
|
3197
3217
|
font-weight: 700;
|
|
3198
|
-
`,
|
|
3218
|
+
`,aN=ke`
|
|
3199
3219
|
width: 100%;
|
|
3200
|
-
`,
|
|
3220
|
+
`,lN=ke`
|
|
3201
3221
|
flex: 1;
|
|
3202
3222
|
min-height: 0;
|
|
3203
3223
|
overflow-y: auto;
|
|
3204
3224
|
display: flex;
|
|
3205
3225
|
flex-direction: column;
|
|
3206
3226
|
gap: ${Ve(200)};
|
|
3207
|
-
`,
|
|
3227
|
+
`,cN=ke`
|
|
3208
3228
|
background-color: ${Ie("neutral",200)};
|
|
3209
3229
|
border: ${_e(100)} solid ${Ie("neutral",300)};
|
|
3210
3230
|
border-radius: ${Be(300)};
|
|
@@ -3230,13 +3250,13 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3230
3250
|
&:active {
|
|
3231
3251
|
background-color: ${Ie("neutral",300)};
|
|
3232
3252
|
}
|
|
3233
|
-
`,
|
|
3253
|
+
`,dN=ke`
|
|
3234
3254
|
display: flex;
|
|
3235
3255
|
flex: 1;
|
|
3236
3256
|
min-width: 0;
|
|
3237
3257
|
flex-direction: column;
|
|
3238
3258
|
gap: ${Ve(50)};
|
|
3239
|
-
`,
|
|
3259
|
+
`,uN=ke`
|
|
3240
3260
|
color: ${Ie("neutral",900)};
|
|
3241
3261
|
font-size: ${ze(300)};
|
|
3242
3262
|
line-height: ${He(500)};
|
|
@@ -3244,7 +3264,7 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3244
3264
|
overflow: hidden;
|
|
3245
3265
|
text-overflow: ellipsis;
|
|
3246
3266
|
white-space: nowrap;
|
|
3247
|
-
`,
|
|
3267
|
+
`,hN=ke`
|
|
3248
3268
|
color: ${Ie("neutral",700)};
|
|
3249
3269
|
font-size: ${ze(300)};
|
|
3250
3270
|
line-height: ${He(500)};
|
|
@@ -3252,7 +3272,7 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3252
3272
|
overflow: hidden;
|
|
3253
3273
|
text-overflow: ellipsis;
|
|
3254
3274
|
white-space: nowrap;
|
|
3255
|
-
`,
|
|
3275
|
+
`,pN=({value:e,placeholder:t,showInfoMessage:n=!0,items:r=[],disabled:o,readOnly:i,id:s,name:a,autoFocus:l,autoComplete:c,onBlur:d,onFocus:u,onQueryChange:h,onCancel:p,onItemClick:f,onChange:m,labels:g})=>{const b=tg("MobileSearch",g),[v,y]=te.useState(e??""),[w,x]=te.useState(!0),[C,k]=te.useState(!1),$=te.useRef(null),S="string"==typeof e,M=S?e:v;te.useEffect((()=>{S&&y(e)}),[S,e]),te.useEffect((()=>{h?.(M)}),[M,h]);const E=te.useMemo((()=>{const e=M.trim().toLowerCase();return e?r.filter((t=>`${t.id??""} ${t.label} ${t.caption??""}`.toLowerCase().includes(e))):r}),[r,M]),T=M.trim().length?b.matchingResultsTitle(E.length):b.recentSearchesTitle,O=M.length?ve(_b,{onClick:()=>{S||y("");const e=$.current?.querySelector("input");e&&(e.value="",e.focus()),x(!0)}}):null;let L=Ie("neutral",500);return o?L=Ie("neutral",500):C&&(L=Ie("primary",700)),be("div",{ref:$,css:tN,children:[be("div",{css:nN,children:[ve("div",{css:rN,children:ve(V,{startElement:ve(Hg,{width:"1.25rem",height:"1.25rem",fill:L,"aria-hidden":"true"}),endElement:O,children:ve(Ab,{label:"",value:M,placeholder:t??b.inputAriaLabel,onChange:e=>{S||y(e.target.value),x(!0),m?.(e)},onFocus:e=>{k(!0),x(!0),u?.(e)},onBlur:e=>{k(!1),d?.(e)},noMarginBottom:!0,type:"search","aria-label":t??b.inputAriaLabel,disabled:o,readOnly:i,id:s,name:a,autoFocus:l??!0,autoComplete:c,style:{paddingLeft:"2.5rem"}})})}),ve(ng,{css:oN,variant:"borderless",label:b.cancelLabel,onClick:()=>{S||y(""),x(!1);const e=$.current?.querySelector("input");e&&(e.value="",e.blur()),p?.()}})]}),w?be("div",{css:iN,children:[ve("h3",{css:sN,children:T}),n?ve("div",{css:aN,children:ve(eN,{label:b.infoLabel,variant:"info-white",size:"full-width"})}):null,ve("ul",{css:lN,"aria-label":T,children:E.map((e=>ve("li",{children:be(N.button,{type:"button",css:cN,onClick:()=>(e=>{f?.(e)})(e),"aria-label":`${e.label}, ${e.caption??""}`,style:{width:"100%"},children:[e.icon??null,be("div",{css:dN,children:[ve("p",{css:uN,children:e.label}),ve("p",{css:hN,children:e.caption})]})]})},e.id)))})]}):null]})},fN=e=>ke`
|
|
3256
3276
|
a,
|
|
3257
3277
|
p {
|
|
3258
3278
|
font-size: ${ze("small"===e?200:400)};
|
|
@@ -3284,19 +3304,19 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3284
3304
|
a:hover {
|
|
3285
3305
|
text-decoration: underline;
|
|
3286
3306
|
}
|
|
3287
|
-
`,
|
|
3307
|
+
`,mN=e=>ke`
|
|
3288
3308
|
svg {
|
|
3289
3309
|
height: ${Ve("small"===e?200:300)};
|
|
3290
3310
|
width: ${Ve("small"===e?200:300)};
|
|
3291
3311
|
color: ${Ie("neutral",600)};
|
|
3292
3312
|
}
|
|
3293
|
-
`,
|
|
3313
|
+
`,gN=ke`
|
|
3294
3314
|
cursor: pointer;
|
|
3295
3315
|
color: ${Ie("neutral",600)};
|
|
3296
3316
|
display: flex;
|
|
3297
3317
|
justify-content: center;
|
|
3298
3318
|
align-items: center;
|
|
3299
|
-
`,
|
|
3319
|
+
`,bN=({links:e,separator:t,maxItems:n=99,linkRouter:r,size:o="default"})=>{const[i,s]=ae(e.length>n);ce((()=>{s(e.length>n)}),[e.length]);const a=r;return ve(H.Root,{children:ve(H.List,{gap:"small"===o?"0.375rem":"0.625rem",children:i?be(ye,{children:[ve(H.Item,{css:fN(o),children:be(a,{to:e[0].link,href:e[0].link,children:[e[0].icon,e[0].label]})}),ve(H.Separator,{css:mN(o),children:t||ve(dg,{rotate:"270"})}),ve("li",{className:"chakra-breadcrumb__item",children:ve("button",{css:gN,type:"button",onClick:()=>s(!1),children:"..."})}),ve(H.Separator,{css:mN(o),children:t||ve(dg,{rotate:"270"})}),ve(H.Item,{css:fN(o),children:be("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?be(ge,{children:[ve(H.Item,{css:fN(o),children:r<e.length-1?be(a,{to:n.link,href:n.link,children:[n.icon,n.label]}):be("p",{"aria-current":"page","aria-label":n.label,children:[n.label&&n.icon?n.icon:"",n.label]})}),r<e.length-1?ve(H.Separator,{css:mN(o),children:t||ve(dg,{rotate:"270"})}):null]},n.label):null))})})},vN=(e,t)=>ke`
|
|
3300
3320
|
min-height: ${Ve(1400)};
|
|
3301
3321
|
width: 100vw;
|
|
3302
3322
|
position: ${e?"sticky":"absolute"};
|
|
@@ -3306,7 +3326,7 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3306
3326
|
border-top: ${_e(100)} solid
|
|
3307
3327
|
${Ie("neutral",400)};
|
|
3308
3328
|
z-index: 101;
|
|
3309
|
-
`,
|
|
3329
|
+
`,yN=e=>ke`
|
|
3310
3330
|
height: 100%;
|
|
3311
3331
|
width: 100%;
|
|
3312
3332
|
max-width: ${null!=e?Me(e):"100%"};
|
|
@@ -3321,7 +3341,7 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3321
3341
|
flex-direction: column;
|
|
3322
3342
|
align-items: flex-start;
|
|
3323
3343
|
}
|
|
3324
|
-
`,
|
|
3344
|
+
`,wN=ke`
|
|
3325
3345
|
display: flex;
|
|
3326
3346
|
align-items: center;
|
|
3327
3347
|
flex-wrap: wrap;
|
|
@@ -3334,7 +3354,7 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3334
3354
|
color: ${Ie("neutral",700)};
|
|
3335
3355
|
text-decoration: underline;
|
|
3336
3356
|
}
|
|
3337
|
-
`,
|
|
3357
|
+
`,xN=ke`
|
|
3338
3358
|
width: 15rem;
|
|
3339
3359
|
font-size: ${ze(300)};
|
|
3340
3360
|
line-height: ${He(500)};
|
|
@@ -3345,17 +3365,17 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3345
3365
|
@media screen and (max-width: 48rem) {
|
|
3346
3366
|
text-align: left;
|
|
3347
3367
|
}
|
|
3348
|
-
`,
|
|
3368
|
+
`,CN=ke`
|
|
3349
3369
|
display: flex;
|
|
3350
3370
|
align-items: center;
|
|
3351
3371
|
gap: ${Ve(400)};
|
|
3352
|
-
`,
|
|
3372
|
+
`,kN=({children:e,label:t="© World Resources Institute",fixed:n,filled:r,maxWidth:o,additionalLogos:i})=>{const s=(new Date).getFullYear();return ve("footer",{css:vN(n,r),children:be("div",{css:yN(o),children:[be("div",{css:CN,children:[ve(yg,{height:"2rem",width:"5.6875rem"}),i&&i.map(((e,t)=>ve("div",{children:e},t)))]}),ve("div",{css:wN,children:e}),ve("div",{children:be("p",{css:xN,children:[t," ",s]})})]})})},$N=ke`
|
|
3353
3373
|
width: 100%;
|
|
3354
3374
|
display: flex;
|
|
3355
3375
|
align-items: center;
|
|
3356
3376
|
height: ${Ve(1400)};
|
|
3357
3377
|
background-color: ${Ie("neutral",200)};
|
|
3358
|
-
`,
|
|
3378
|
+
`,SN=ke`
|
|
3359
3379
|
height: ${Ve(1400)};
|
|
3360
3380
|
width: 99%;
|
|
3361
3381
|
background-color: ${Ie("neutral",200)};
|
|
@@ -3451,9 +3471,9 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3451
3471
|
opacity: 1;
|
|
3452
3472
|
}
|
|
3453
3473
|
}
|
|
3454
|
-
|
|
3474
|
+
`,MN=ke`
|
|
3455
3475
|
position: relative;
|
|
3456
|
-
`,
|
|
3476
|
+
`,EN=ke`
|
|
3457
3477
|
position: absolute;
|
|
3458
3478
|
top: -0.3125rem;
|
|
3459
3479
|
right: -0.3125rem;
|
|
@@ -3468,7 +3488,7 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3468
3488
|
display: flex;
|
|
3469
3489
|
justify-content: center;
|
|
3470
3490
|
align-items: center;
|
|
3471
|
-
`,
|
|
3491
|
+
`,TN=(e,t)=>Math.max(0,e.findIndex((e=>e.value===t))),ON=({defaultValue:e,tabs:t,onTabClick:n,hideLabels:r,activationMode:o="manual",labels:i})=>{const s=tg("MobileTabBar",i),a=t.length,[l,c]=ae((()=>TN(t,e)));return ve("div",{css:$N,children:ve(B.Root,{width:"full",defaultValue:e||t?.[0]?.value,onValueChange:({value:e})=>(e=>{const r=TN(t,e);c(r),n&&n(e)})(e),activationMode:o,children:ve(B.List,{alignItems:"center",border:"none",children:t.map(((e,t)=>{const{label:n,icon:o,bagdeCount:i,"aria-label":c,"aria-describedby":d,disabled:u,...h}=e,p=`${e.value}-str-status`,f=l===t,m=[s.tabPositionStatus(t+1,a),f?s.selectedStatus:s.notSelectedStatus];u&&m.push(s.disabledStatus);const g=[d,p].filter(Boolean).join(" ")||void 0;return be(B.Trigger,{css:SN,"aria-label":c||n,"aria-disabled":!!u||void 0,"aria-describedby":g,disabled:u,...h,children:[be("div",{css:MN,children:[o,i?ve("div",{css:EN,className:"ds-badge-count",children:i}):null]}),r?null:ve("p",{children:n}),ve(_,{id:p,children:m.join(", ")})]},e.value)}))})})})},LN=(e,t,n,r,o)=>{let i="3rem";return e?i="6rem":o&&(i="1.75rem"),ke`
|
|
3472
3492
|
max-height: ${i};
|
|
3473
3493
|
width: 100%;
|
|
3474
3494
|
background-color: ${n??Ie("neutral","dark"===r?800:100)};
|
|
@@ -3478,7 +3498,7 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3478
3498
|
z-index: 102;
|
|
3479
3499
|
border-bottom: ${_e(100)} solid
|
|
3480
3500
|
${Ie("neutral",400)};
|
|
3481
|
-
`},
|
|
3501
|
+
`},AN=(e,t)=>ke`
|
|
3482
3502
|
height: ${Ve(t?700:1200)};
|
|
3483
3503
|
width: 100%;
|
|
3484
3504
|
background-color: ${Ie("neutral","dark"===e?800:100)};
|
|
@@ -3489,7 +3509,7 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3489
3509
|
justify-content: flex-start;
|
|
3490
3510
|
gap: 0;
|
|
3491
3511
|
padding: ${t?0:`${Ve(200)} ${Ve(400)}`};
|
|
3492
|
-
`,
|
|
3512
|
+
`,NN=(e,t,n)=>ke`
|
|
3493
3513
|
height: ${Ve(n?700:1200)};
|
|
3494
3514
|
width: 100%;
|
|
3495
3515
|
max-width: ${t?Me(t):"100%"};
|
|
@@ -3500,13 +3520,13 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3500
3520
|
justify-content: space-between;
|
|
3501
3521
|
margin: 0 auto;
|
|
3502
3522
|
padding: ${n?0:`${Ve(200)} ${Ve(400)}`};
|
|
3503
|
-
`,
|
|
3523
|
+
`,RN=(e,t)=>ke`
|
|
3504
3524
|
display: flex;
|
|
3505
3525
|
margin: ${t?"-0.0625rem":"0rem"};
|
|
3506
3526
|
justify-content: flex-start;
|
|
3507
3527
|
gap: ${Ve(300)};
|
|
3508
3528
|
color: ${Ie("neutral",e?100:900)};
|
|
3509
|
-
`,
|
|
3529
|
+
`,DN=ke`
|
|
3510
3530
|
outline: none;
|
|
3511
3531
|
|
|
3512
3532
|
a {
|
|
@@ -3518,12 +3538,12 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3518
3538
|
outline-width: ${Ve(50)};
|
|
3519
3539
|
}
|
|
3520
3540
|
}
|
|
3521
|
-
`,
|
|
3541
|
+
`,PN=e=>ke`
|
|
3522
3542
|
display: ${e?"none":"flex"};
|
|
3523
3543
|
align-items: center;
|
|
3524
3544
|
justify-content: flex-start;
|
|
3525
3545
|
gap: 0rem;
|
|
3526
|
-
`,
|
|
3546
|
+
`,IN=(e,t,n)=>ke`
|
|
3527
3547
|
font-size: ${ze(n?300:400)};
|
|
3528
3548
|
line-height: ${He(600)};
|
|
3529
3549
|
font-weight: 400;
|
|
@@ -3548,12 +3568,12 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3548
3568
|
font-weight: 700;
|
|
3549
3569
|
color: ${Ie("accessible","controls-on-neutral-lights")};
|
|
3550
3570
|
`:""}
|
|
3551
|
-
`,
|
|
3571
|
+
`,zN=e=>ke`
|
|
3552
3572
|
height: ${Ve(e?700:1200)};
|
|
3553
3573
|
display: flex;
|
|
3554
3574
|
align-items: center;
|
|
3555
3575
|
justify-content: flex-end;
|
|
3556
|
-
`,
|
|
3576
|
+
`,VN=e=>ke`
|
|
3557
3577
|
height: 100%;
|
|
3558
3578
|
font-size: ${ze(400)};
|
|
3559
3579
|
line-height: ${He(600)};
|
|
@@ -3573,7 +3593,7 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3573
3593
|
}
|
|
3574
3594
|
}
|
|
3575
3595
|
`:""}
|
|
3576
|
-
`,
|
|
3596
|
+
`,HN=e=>ke`
|
|
3577
3597
|
height: 100%;
|
|
3578
3598
|
display: flex;
|
|
3579
3599
|
align-items: center;
|
|
@@ -3582,7 +3602,7 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3582
3602
|
padding-left: ${Ve(400)};
|
|
3583
3603
|
border-left: ${_e(100)} solid
|
|
3584
3604
|
${Ie("neutral",e?700:300)};
|
|
3585
|
-
`,
|
|
3605
|
+
`,BN=(e="light",t)=>ke`
|
|
3586
3606
|
background-color: none;
|
|
3587
3607
|
border: none;
|
|
3588
3608
|
cursor: pointer;
|
|
@@ -3608,7 +3628,7 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3608
3628
|
outline-width: ${_e(200)};
|
|
3609
3629
|
background-color: ${Ie("neutral",200)};
|
|
3610
3630
|
}
|
|
3611
|
-
`,
|
|
3631
|
+
`,_N=(e,t)=>ke`
|
|
3612
3632
|
position: absolute;
|
|
3613
3633
|
top: ${Ve(t?700:1200)};
|
|
3614
3634
|
right: 0;
|
|
@@ -3623,10 +3643,10 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3623
3643
|
justify-content: flex-start;
|
|
3624
3644
|
gap: ${Ve(400)};
|
|
3625
3645
|
transition: width 0.5s ease-in-out;
|
|
3626
|
-
`,
|
|
3646
|
+
`,jN=ke`
|
|
3627
3647
|
height: 100%;
|
|
3628
3648
|
width: 100%;
|
|
3629
|
-
`,
|
|
3649
|
+
`,FN=e=>ke`
|
|
3630
3650
|
background-color: ${Ie("neutral","dark"===e?800:200)};
|
|
3631
3651
|
border-bottom: ${_e(100)} solid
|
|
3632
3652
|
${Ie("neutral",300)};
|
|
@@ -3647,13 +3667,13 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3647
3667
|
margin-left: -${Ve(300)};
|
|
3648
3668
|
}
|
|
3649
3669
|
}
|
|
3650
|
-
`,
|
|
3670
|
+
`,qN=ke`
|
|
3651
3671
|
background-color: ${Ie("neutral",100)};
|
|
3652
|
-
`,
|
|
3672
|
+
`,WN=ke`
|
|
3653
3673
|
min-height: 100vh;
|
|
3654
3674
|
width: 100%;
|
|
3655
3675
|
overflow-y: scroll;
|
|
3656
|
-
`;ke``;const
|
|
3676
|
+
`;ke``;const UN=e=>ke`
|
|
3657
3677
|
display: inline-block;
|
|
3658
3678
|
width: 100%;
|
|
3659
3679
|
padding: ${Ve(300)} ${Ve(400)};
|
|
@@ -3682,7 +3702,7 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3682
3702
|
outline-width: ${_e(200)};
|
|
3683
3703
|
background-color: ${Ie("neutral",200)};
|
|
3684
3704
|
}
|
|
3685
|
-
`,
|
|
3705
|
+
`,KN=ke`
|
|
3686
3706
|
width: 100%;
|
|
3687
3707
|
padding: ${Ve(300)} ${Ve(400)};
|
|
3688
3708
|
display: flex;
|
|
@@ -3706,7 +3726,7 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3706
3726
|
outline-width: ${_e(200)};
|
|
3707
3727
|
background-color: ${Ie("neutral",200)};
|
|
3708
3728
|
}
|
|
3709
|
-
`,
|
|
3729
|
+
`,GN=e=>ke`
|
|
3710
3730
|
position: absolute;
|
|
3711
3731
|
top: 0rem;
|
|
3712
3732
|
right: 0;
|
|
@@ -3718,7 +3738,7 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3718
3738
|
align-items: flex-start;
|
|
3719
3739
|
justify-content: flex-start;
|
|
3720
3740
|
transition: width 0.5s ease-in-out;
|
|
3721
|
-
`,
|
|
3741
|
+
`,ZN=ke`
|
|
3722
3742
|
height: ${Ve(1200)};
|
|
3723
3743
|
width: 100%;
|
|
3724
3744
|
display: flex;
|
|
@@ -3730,7 +3750,7 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3730
3750
|
position: relative;
|
|
3731
3751
|
top: 0;
|
|
3732
3752
|
left: 0;
|
|
3733
|
-
`,
|
|
3753
|
+
`,JN=ke`
|
|
3734
3754
|
position: absolute;
|
|
3735
3755
|
bottom: 0;
|
|
3736
3756
|
left: 0;
|
|
@@ -3745,7 +3765,7 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3745
3765
|
button {
|
|
3746
3766
|
width: calc(48% - 1.5rem);
|
|
3747
3767
|
}
|
|
3748
|
-
`,
|
|
3768
|
+
`,XN=({theme:e="light",variant:t,navigationSection:n,utilitySection:r,actionsSection:o,linkRouter:i,isOpen:s,setIsOpen:a,pathname:l,resolvedLabels:c})=>{const d="condensed"===t,[u,h]=ae(void 0),[p,f]=ae(-1),m=se(null),g=se([]),b=i;return be(ye,{children:[ve("div",{css:_N(s,d),children:s&&be("div",{css:jN,children:[be("div",{style:{overflowY:"scroll",width:"100%",height:"100%",paddingBottom:"4.5rem"},children:[r?ve("div",{css:FN(e),children:r?.map((e=>ve("div",{className:"ds-utility-item",children:e})))}):null,n?ve("div",{css:qN,children:n.map(((e,t)=>e.link?ve(b,{to:e.link,href:e.link,onClick:()=>{h(void 0),f(-1),a(!1)},css:UN(l===e.link),children:e.label},e.label):be("button",{css:KN,type:"button",ref:e=>{g.current[t]=e},onClick:()=>{e.items&&(h(e),f(t),setTimeout((()=>{m.current?.focus()}),100))},children:[e.label,e.items?ve(dg,{rotate:"270",color:"var(--chakra-colors-neutral-700)"}):null]},e.label)))}):null]}),o?ve("div",{css:JN,children:o.map((e=>ve(ng,{...e,onClick:t=>{e?.onClick?.(t),h(void 0),f(-1),a(!1)}},e.ariaLabel)))}):null]})}),ve("div",{css:GN(!!u?.items),children:u?.items?be(ye,{children:[be("div",{css:ZN,children:[be("button",{type:"button",onClick:()=>{h(void 0),f(-1),g.current[p]?.focus()},"aria-label":c.goBackLabel,css:BN(e),ref:m,children:[ve(dg,{rotate:"90",color:"var(--chakra-colors-neutral-700)"}),u?.label]}),be("button",{type:"button",onClick:()=>{h(void 0),f(-1),a(!1)},"aria-label":c.closeMenuLabel,css:BN(e),children:[c.closeButtonText,ve(hg,{height:"1rem",width:"1rem"})]})]}),ve("div",{css:WN,children:u?.items?.map((e=>ve(b,{to:e.link,href:e.link,css:UN(),onClick:()=>{h(void 0),f(-1),a(!1)},children:e.label},e.label)))})]}):null})]})},YN=1023,QN=({variant:e="default",theme:t="light",logo:n,linkRouter:r,pathname:o,navigationSection:i,utilitySection:s,actionsSection:a,maxWidth:l,fixed:c,onNavbarHeightChange:d,backgroundColor:u,labels:h})=>{const p=tg("Navbar",h),f=se(null),m=se(null),g=se(null),[b,v]=ae(!1),[y,w]=ae(-1),[x,C]=ae("undefined"!=typeof window&&window?.innerWidth<=YN),[k,$]=ae(!1),S=r,M=ue((()=>{if(m.current&&f.current&&g.current){const e=f.current.getBoundingClientRect(),t=m.current.getBoundingClientRect(),n=g.current.getBoundingClientRect();t.width,e.width,window.innerWidth<=YN||window.innerWidth<=y?(d?.(96),v(!0)):window.innerWidth>YN&&window.innerWidth<=1440?e.right>=t.left?(d?.(96),v(!0),w(window.innerWidth)):window.innerWidth>y&&(d?.(48),v(!1),w(-1)):(d?.(48),v(!1),w(-1)),b&&(window.innerWidth<=YN||n.right>=t.left?(C(!0),d?.(48)):(C(!1),d?.(96)))}}),[y,b]);ce((()=>(M(),window.addEventListener("resize",M),()=>{window.removeEventListener("resize",M)})),[M]);const E="condensed"===e;return be("nav",{css:LN(b&&!x,c,u,t,E),children:[be("div",{css:NN(b&&!x,l,E),children:[be("div",{css:RN(b&&!x||"dark"===t,E),ref:f,children:[n?ve("div",{ref:g,css:DN,children:n}):null,ve("div",{css:PN(b),children:i?.map((e=>e.link?ve(S,{to:e.link,href:e.link,css:IN(o===e.link,t,E),children:e.label},e.label):ve(tb,{theme:t,label:e.label,fontSize:E?"0.875rem":"1rem",items:e.items||[]},e.label)))})]}),ve("div",{css:zN(E),ref:m,children:x?be("button",{type:"button",onClick:()=>$(!k),"aria-label":k?p.closeMenuLabel:p.openMenuLabel,"aria-expanded":k,css:BN(t),children:[k?p.closeLabel:p.menuLabel,ve(k?hg:Ig,{height:E?"0.75rem":"1rem",width:E?"0.75rem":"1rem"})]}):be(ye,{children:[ve("div",{css:zN(E),children:s?.map(((e,t)=>ve("div",{css:VN(b),children:e},t)))}),a?.length?ve("div",{css:HN(b),children:a.map((e=>ve(ng,{...e},e.ariaLabel)))}):null]})})]}),b&&!x?ve("div",{css:AN(t,E),children:i?.map((e=>e.link?ve(S,{to:e.link,href:e.link,css:IN(o===e.link,t,E),children:e.label},e.label):ve(tb,{theme:t,label:e.label,fontSize:E?"0.875rem":"1rem",items:e.items||[]},e.label)))}):null,x?ve(XN,{theme:t,variant:e,navigationSection:i,utilitySection:s,actionsSection:a,linkRouter:r,isOpen:k,setIsOpen:$,pathname:o,resolvedLabels:p}):null]})},eR=ke`
|
|
3749
3769
|
width: ${Ve(1600)};
|
|
3750
3770
|
height: 100%;
|
|
3751
3771
|
z-index: 100;
|
|
@@ -3755,7 +3775,7 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3755
3775
|
display: flex;
|
|
3756
3776
|
flex-direction: column;
|
|
3757
3777
|
justify-content: space-between;
|
|
3758
|
-
`,
|
|
3778
|
+
`,tR=ke`
|
|
3759
3779
|
width: ${Ve(1600)};
|
|
3760
3780
|
height: ${Ve(1600)};
|
|
3761
3781
|
background-color: ${Ie("neutral",200)};
|
|
@@ -3846,7 +3866,7 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3846
3866
|
}
|
|
3847
3867
|
}
|
|
3848
3868
|
}
|
|
3849
|
-
`,
|
|
3869
|
+
`,nR=ke`
|
|
3850
3870
|
display: flex;
|
|
3851
3871
|
justify-content: center;
|
|
3852
3872
|
align-items: center;
|
|
@@ -3859,7 +3879,7 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3859
3879
|
fill: ${Ie("neutral",600)};
|
|
3860
3880
|
}
|
|
3861
3881
|
}
|
|
3862
|
-
`,
|
|
3882
|
+
`,rR=ke`
|
|
3863
3883
|
width: ${Ve(1600)};
|
|
3864
3884
|
height: ${Ve(1600)};
|
|
3865
3885
|
background-color: ${Ie("neutral",200)};
|
|
@@ -3897,7 +3917,7 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3897
3917
|
text-align: center;
|
|
3898
3918
|
color: ${Ie("neutral",600)};
|
|
3899
3919
|
}
|
|
3900
|
-
`,
|
|
3920
|
+
`,oR=ke`
|
|
3901
3921
|
width: 20rem;
|
|
3902
3922
|
height: 100%;
|
|
3903
3923
|
z-index: 100;
|
|
@@ -3907,7 +3927,7 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3907
3927
|
overflow-x: hidden;
|
|
3908
3928
|
border-right: ${_e(100)} solid
|
|
3909
3929
|
${Ie("neutral",300)};
|
|
3910
|
-
`,
|
|
3930
|
+
`,iR=({tabs:e=[],defaultValue:t,onTabClick:n,children:o,onOpenChange:i,labels:s})=>{const a=tg("NavigationRail",s),[l,c]=ae(!1),[d,u]=ae(t||e?.[0]?.value),h=e=>{u(e),n&&n(e)},[p]=j(["(max-width: 48rem)"]);return p?be(B.Root,{defaultValue:d,onValueChange:({value:e})=>h(e),children:[ve(B.List,{style:{display:"flex",overflowX:"auto",whiteSpace:"nowrap",padding:"0.5rem",gap:"0.5rem"},children:e.map((e=>ve(B.Trigger,{value:e.value,css:{"--indicator-color":Ie("primary",500),flexShrink:0,padding:"0.625rem 1rem",color:Ie("neutral",600),"&[data-selected]":{color:Ie("neutral",800),fontWeight:600}},children:e.label},e.value)))}),e.map((e=>ve(B.Content,{value:e.value,children:o},e.value)))]}):be("div",{style:{height:"calc(100vh - 3rem - 3.5rem)",position:"fixed",top:"3rem",left:0,display:"flex"},children:[be("div",{css:eR,children:[ve(B.Root,{defaultValue:t||e?.[0]?.value,orientation:"horizontal",width:"full",onValueChange:({value:e})=>{h(e)},children:ve(B.List,{alignItems:"center",border:"none",style:{flexDirection:"column"},children:e.map((e=>ve(B.Trigger,{css:tR,"aria-label":e["aria-label"]||e.label,...e,children:be(r,{display:"flex",alignItems:"center",flexDirection:"column",gap:"0.3125rem",className:"ds-tab-label",children:[e.icon?ve("div",{css:nR,children:e.icon}):null,ve("p",{children:e.label})]})},e.label)))})}),o?ve(F.Root,{onOpenChange:({open:e})=>{c(e),i&&i(!e)},children:be(F.Trigger,{css:rR,children:[ve("div",{css:nR,children:ve(l?sg:ig,{})}),be("div",{className:"ds-tab-label",children:[ve("p",{children:l?a.showLabel:a.hideLabel}),ve("p",{children:a.sidebarLabel})]})]})}):null]}),o?ve(F.Root,{defaultOpen:!0,open:!l,children:ve(F.Content,{height:"100%",children:ve("div",{css:oR,role:"tabpanel","aria-labelledby":d,children:o})})}):null]})},sR=e=>ke`
|
|
3911
3931
|
width: 100%;
|
|
3912
3932
|
display: flex;
|
|
3913
3933
|
align-items: center;
|
|
@@ -3916,7 +3936,7 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3916
3936
|
${"view"===e&&`\n border: ${_e(100)} solid ${Ie("neutral",400)};\n background-color: ${Ie("neutral",200)};\n border-radius: ${Be(300)};\n padding: ${Ve(100)};\n `}
|
|
3917
3937
|
|
|
3918
3938
|
${"transparent"===e&&`\n border: none;\n background-color: transparent;\n border-radius: ${Be(300)};\n padding: 0 ${Ve(400)};\n\n .chakra-tabs__list {\n gap: ${Ve(800)};\n }\n `}
|
|
3919
|
-
`,
|
|
3939
|
+
`,aR=ke`
|
|
3920
3940
|
width: 99%;
|
|
3921
3941
|
height: ${Ve(1e3)};
|
|
3922
3942
|
padding: ${Ve(200)} ${Ve(400)};
|
|
@@ -3932,7 +3952,7 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3932
3952
|
&:focus-visible {
|
|
3933
3953
|
box-shadow: none;
|
|
3934
3954
|
}
|
|
3935
|
-
`,
|
|
3955
|
+
`,lR=ke`
|
|
3936
3956
|
background-color: ${Ie("neutral",200)};
|
|
3937
3957
|
color: ${Ie("neutral",700)};
|
|
3938
3958
|
|
|
@@ -3989,11 +4009,11 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3989
4009
|
opacity: 1;
|
|
3990
4010
|
}
|
|
3991
4011
|
}
|
|
3992
|
-
`,
|
|
4012
|
+
`,cR=ke`
|
|
3993
4013
|
width: ${Ve(100)};
|
|
3994
4014
|
height: ${Ve(600)};
|
|
3995
4015
|
background-color: ${Ie("neutral",400)};
|
|
3996
|
-
`,
|
|
4016
|
+
`,dR=ke`
|
|
3997
4017
|
height: ${Ve(800)};
|
|
3998
4018
|
border-radius: ${Be(200)};
|
|
3999
4019
|
background-color: ${Ie("neutral",200)};
|
|
@@ -4068,7 +4088,7 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4068
4088
|
opacity: 1;
|
|
4069
4089
|
}
|
|
4070
4090
|
}
|
|
4071
|
-
`,
|
|
4091
|
+
`,uR=ke`
|
|
4072
4092
|
background-color: transparent;
|
|
4073
4093
|
color: ${Ie("neutral",600)};
|
|
4074
4094
|
width: auto;
|
|
@@ -4145,7 +4165,7 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4145
4165
|
}
|
|
4146
4166
|
}
|
|
4147
4167
|
}
|
|
4148
|
-
`,
|
|
4168
|
+
`,hR=(e,t)=>Math.max(0,e.findIndex((e=>e.value===t))),pR=e=>1===e?"none":2===e?"left":"right",fR=({variant:e="panel",defaultValue:t,tabs:n,onTabClick:o,activationMode:i="manual"})=>{const[s,a]=ae(hR(n,t)||0);return ve("div",{css:sR(e),children:ve(B.Root,{width:"full",defaultValue:t||n?.[0]?.value,onValueChange:({value:e})=>{return a(hR(n,t=e)),void(o&&o(t));var t},activationMode:i,children:ve(B.List,{alignItems:"center",border:"none",children:n.map(((t,n)=>be(ge,{children:["view"===e&&1===n&&"left"===pR(s)?ve("div",{css:cR}):null,ve(B.Trigger,{css:[aR,"view"===e&&dR,"panel"===e&&lR,"transparent"===e&&uR],"aria-label":t["aria-label"]||t.label,...t,children:be(r,{display:"flex",alignItems:"center",gap:"0.3125rem",children:[t.icon,t.label]})},t.label),"view"===e&&1===n&&"right"===pR(s)?ve("div",{css:cR}):null]},t.label)))})})})},mR=Ie("neutral",700),gR=ke`
|
|
4149
4169
|
position: relative;
|
|
4150
4170
|
width: 100%;
|
|
4151
4171
|
|
|
@@ -4158,12 +4178,12 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4158
4178
|
&[data-open='true'][data-placement='top'] input {
|
|
4159
4179
|
border-bottom-left-radius: ${Be(300)};
|
|
4160
4180
|
border-bottom-right-radius: ${Be(300)};
|
|
4161
|
-
border-bottom-color: ${
|
|
4181
|
+
border-bottom-color: ${mR};
|
|
4162
4182
|
border-top-left-radius: 0;
|
|
4163
4183
|
border-top-right-radius: 0;
|
|
4164
4184
|
border-top-color: transparent;
|
|
4165
4185
|
}
|
|
4166
|
-
`,
|
|
4186
|
+
`,bR=ke`
|
|
4167
4187
|
width: 100%;
|
|
4168
4188
|
z-index: 1000;
|
|
4169
4189
|
overflow-y: auto;
|
|
@@ -4177,7 +4197,7 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4177
4197
|
margin-top: calc(${_e(100)} * -1);
|
|
4178
4198
|
border-top-left-radius: 0;
|
|
4179
4199
|
border-top-right-radius: 0;
|
|
4180
|
-
border-top: ${_e(100)} solid ${
|
|
4200
|
+
border-top: ${_e(100)} solid ${mR};
|
|
4181
4201
|
|
|
4182
4202
|
&[data-placement^='top'] {
|
|
4183
4203
|
margin-top: 0;
|
|
@@ -4188,12 +4208,12 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4188
4208
|
${Ie("neutral",400)};
|
|
4189
4209
|
border-bottom-left-radius: 0;
|
|
4190
4210
|
border-bottom-right-radius: 0;
|
|
4191
|
-
border-bottom: ${_e(100)} solid ${
|
|
4211
|
+
border-bottom: ${_e(100)} solid ${mR};
|
|
4192
4212
|
box-shadow:
|
|
4193
4213
|
0 -0.25rem 0.375rem -0.25rem #0000001a,
|
|
4194
4214
|
0 -0.625rem 0.9375rem -0.1875rem #0000001a;
|
|
4195
4215
|
}
|
|
4196
|
-
`,
|
|
4216
|
+
`,vR=ke`
|
|
4197
4217
|
padding: ${Ve(200)};
|
|
4198
4218
|
border-radius: ${Be(300)};
|
|
4199
4219
|
cursor: pointer;
|
|
@@ -4214,7 +4234,7 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4214
4234
|
&:active {
|
|
4215
4235
|
background-color: ${Hm(40)};
|
|
4216
4236
|
}
|
|
4217
|
-
`,
|
|
4237
|
+
`,yR=({text:e,query:t})=>{if(!t)return e;const n=new RegExp(`(${t})`,"ig"),r=e.split(n);return ve(ye,{children:r.map((e=>n.test(e)?ve("strong",{children:e},e):ve("span",{children:e},e)))})},wR=({items:e,query:t,onSelect:n,highlightedIndex:o})=>{const i=se(null);return ce((()=>{if(!i.current)return;const e=i.current.children[o];e&&e.scrollIntoView({block:"nearest"})}),[o]),ve(r,{ref:i,padding:"0.5rem",children:e.map(((e,i)=>{const s=e.searchLabel||("string"==typeof e.label||"number"==typeof e.label?String(e.label):"");return ve(r,{css:vR,"data-highlighted":i===o||void 0,onClick:()=>n(e.id||s),children:"string"==typeof e.label||"number"==typeof e.label?ve(yR,{text:String(e.label),query:t}):e.label},e.id)}))})},xR=e=>e.searchLabel?e.searchLabel:"string"==typeof e.label||"number"==typeof e.label?String(e.label):"",CR=({placeholder:e,disabled:t,size:n="default",options:i=[],resultsMaxHeight:s=50,isLoading:l=!1,displayResults:c="text",onSelect:d,onQueryChange:h,onClear:p,renderResults:f,labels:m})=>{const g=tg("Search",m),[b,v]=ae(""),{open:y,onOpen:w,onClose:x}=q(),[C,k]=ae(i),[$,S]=ae(-1),[M,E]=ae(!1),[T,O]=ae("pointer"),L=se(null),{contentRef:A,placement:N}=ow(),R=`search-results-${he()}`,D=e=>{const t=i.find((t=>t.id===e||xR(t)===e));t&&(d?.(t),v(""),x())};ce((()=>{if(h?.(b),!b)return void k(i);const e=i.filter((e=>{const t=b.toLowerCase();return e.id?.toLowerCase().includes(t)||xR(e).toLowerCase().includes(t)||e.caption?.toLowerCase().includes(t)})).map((e=>({id:e.id??xR(e),label:e.label,searchLabel:e.searchLabel,caption:e.caption,variant:"select",icon:e.icon,onItemClick:()=>D(e.id||xR(e))})));k(e),w()}),[b]);const P=b.length?ve(_b,{onClick:()=>{v(""),p?.()}}):null,I="none"!==c&&!!b.length&&C.length>0&&y,z=(I||l&&!!b.length)&&"custom"!==c;let H=Ie("neutral",500);t?H=Ie("neutral",500):M&&(H=Ie("primary",700));const B="small"===n?"1rem":"1.25rem",_=Me(s);return be(u.Root,{open:z,onOpenChange:e=>{e.open||x()},autoFocus:!1,closeOnEscape:!1,positioning:{sameWidth:!0,gutter:0},children:[be("div",{ref:L,css:gR,"data-open":z||void 0,"data-placement":N,children:[ve(u.Anchor,{children:ve(V,{startElement:ve(Hg,{width:B,height:B,fill:H}),endElement:P,children:ve(Ab,{autoComplete:"off",placeholder:e||g.filterPlaceholder,onChange:e=>{const{value:t}=e.target;v(t)},onFocus:()=>E(!0),onBlur:()=>E(!1),value:b,label:"",style:{paddingLeft:"2.5rem"},type:"search","aria-label":e||g.filterAriaLabel,"aria-expanded":I,"aria-controls":R,role:"combobox","aria-autocomplete":"list",disabled:t,size:n,noMarginBottom:!0,onKeyDown:e=>{if(I){if("ArrowDown"===e.key&&(e.preventDefault(),O("keyboard"),S((e=>Math.min(e+1,C.length-1)))),"ArrowUp"===e.key&&(e.preventDefault(),O("keyboard"),S((e=>Math.max(e-1,0)))),"Enter"===e.key&&(e.preventDefault(),$>=0)){const e=C[$];D(e.id||xR(e))}"Escape"===e.key&&x()}}})})}),(I||l&&!!b.length)&&"custom"===c&&f&&!l&&f({items:C,highlightedIndex:$,query:b,onSelect:D})]}),ve(a,{children:ve(u.Positioner,{children:be(u.Content,{ref:A,css:bR,style:{maxHeight:_},"data-nav-source":T,onPointerMove:()=>O("pointer"),children:[l&&ve(r,{padding:"1rem",children:ve(o,{})}),"text"===c&&!l&&ve(wR,{highlightedIndex:$,items:C,query:b,onSelect:D}),"list"===c&&!l&&ve(qk,{items:C,highlightedIndex:$})]})})})]})},kR={small:Ve(400),medium:Ve(600),large:Ve(1e3),default:Ve(400)};function $R(e,t,n,r){const o=function(e,t){return null!=t&&""!==t?Me(t):e&&kR[e]?kR[e]:kR.default}(e,t),i=n?Ie("neutral",200):Ie("primary",300),s=r||i,a=r&&n?"opacity: 0.7;":"",l=n?Ie("neutral",400):Ie("primary",800),c=n?Ie("neutral",400):Ie("primary",800);return ke`
|
|
4218
4238
|
height: ${o};
|
|
4219
4239
|
width: ${o};
|
|
4220
4240
|
border-radius: 50%;
|
|
@@ -4249,20 +4269,20 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4249
4269
|
background-color: ${Ie("primary",500)};
|
|
4250
4270
|
}
|
|
4251
4271
|
}
|
|
4252
|
-
`}const
|
|
4272
|
+
`}const SR=ke`
|
|
4253
4273
|
font-size: ${ze(200)};
|
|
4254
4274
|
line-height: ${He(400)};
|
|
4255
4275
|
font-weight: 700;
|
|
4256
4276
|
color: inherit;
|
|
4257
|
-
|
|
4277
|
+
`,MR={small:{fontSize:Ee(8),boxSize:Ee(10),padding:Ee(2)},large:{fontSize:Ee(12),boxSize:Ee(20),padding:`${Ee(2)} ${Ee(4)}`}},ER=ke`
|
|
4258
4278
|
display: flex;
|
|
4259
4279
|
justify-content: flex-start;
|
|
4260
4280
|
align-items: center;
|
|
4261
4281
|
gap: ${Ve(200)};
|
|
4262
|
-
`,
|
|
4282
|
+
`,TR=e=>ke`
|
|
4263
4283
|
position: relative;
|
|
4264
4284
|
display: flex;
|
|
4265
|
-
`,
|
|
4285
|
+
`,OR=(e="large")=>{const t=Ve("small"===e?100:200);return ke`
|
|
4266
4286
|
height: ${t};
|
|
4267
4287
|
width: ${t};
|
|
4268
4288
|
background-color: ${Ie("error",500)};
|
|
@@ -4271,7 +4291,7 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4271
4291
|
top: 0rem;
|
|
4272
4292
|
right: 0rem;
|
|
4273
4293
|
z-index: 1;
|
|
4274
|
-
`},
|
|
4294
|
+
`},LR=(e="large")=>{const{boxSize:t,padding:n}=MR[e];return ke`
|
|
4275
4295
|
background-color: ${Ie("error",500)};
|
|
4276
4296
|
padding: ${n};
|
|
4277
4297
|
border-radius: 9999px;
|
|
@@ -4286,12 +4306,12 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4286
4306
|
min-width: ${t};
|
|
4287
4307
|
height: ${t};
|
|
4288
4308
|
z-index: 1;
|
|
4289
|
-
`},
|
|
4309
|
+
`},AR=(e="large")=>{const{fontSize:t}=MR[e];return ke`
|
|
4290
4310
|
font-size: ${t};
|
|
4291
4311
|
line-height: 1;
|
|
4292
4312
|
font-weight: 700;
|
|
4293
4313
|
color: ${Ie("error",100)};
|
|
4294
|
-
`},
|
|
4314
|
+
`},NR=(e="large")=>{const{boxSize:t}=MR[e];return ke`
|
|
4295
4315
|
height: ${t};
|
|
4296
4316
|
min-width: ${t};
|
|
4297
4317
|
background-color: ${Ie("error",500)};
|
|
@@ -4300,12 +4320,12 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4300
4320
|
justify-content: center;
|
|
4301
4321
|
align-items: center;
|
|
4302
4322
|
padding: 0rem ${Ve(100)} 0.0625rem ${Ve(100)};
|
|
4303
|
-
`},
|
|
4323
|
+
`},RR=(e="large")=>{const{fontSize:t}=MR[e];return ke`
|
|
4304
4324
|
font-size: ${t};
|
|
4305
4325
|
line-height: ${He(600)};
|
|
4306
4326
|
font-weight: 700;
|
|
4307
4327
|
color: ${Ie("error",100)};
|
|
4308
|
-
`},
|
|
4328
|
+
`},DR=({hasNotification:e,notificationCount:t,label:n,labels:r,children:o,size:i="large"})=>{const s=tg("Badge",r),[a,l]=ae(!1);ce((()=>{const e=()=>{window.innerWidth<1024?l(!0):l(!1)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]);const c=(()=>{let e="";return t&&t>0&&(e=`${t>99?"99+":t}`),e})(),d="small"===i?"1rem":"1.5rem";return be("div",a&&null==o?{css:ER,role:"status","aria-live":"polite",children:[be("div",{css:TR(),children:[ve(wg,{color:"currentColor",height:d,width:d}),!e||t||n?null:ve("div",{css:OR(i),"aria-hidden":!0})]}),n?ve("p",{children:n}):null,c.length>0?ve("div",{css:NR(i),children:ve("p",{css:RR(i),"aria-label":s.unreadMessagesLabel(t||0),children:c})}):null]}:{css:ER,role:"status","aria-live":"polite",children:[n?ve("p",{children:n}):null,be("div",{css:TR(),children:[c.length>0?ve("div",{css:LR(i),children:ve("p",{css:AR(i),"aria-label":s.unreadMessagesLabel(t||0),children:c})}):null,e&&!t?ve("div",{css:OR(i),"aria-hidden":!0}):null,o??ve(wg,{color:"currentColor",height:d,width:d})]})]})},PR=ie((({name:e,ariaLabel:t,size:n="medium",customSize:r,src:o,srcSet:i,onClick:s,notificationCount:a,badgeSize:l="large",disabled:c=!1,customBackgroundColor:d="",labels:u},h)=>{const p=tg("Avatar",u),f=()=>{c||s?.()},m=!!o||!!i,g=!!s&&!c,b=!!a&&a>0,v=be(W.Root,{"aria-label":t||e,ref:h,css:$R(n,r,c,d),onClick:f,onKeyDown:e=>{c||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),f())},role:g?"button":"img",tabIndex:g?0:void 0,"aria-disabled":s?c:void 0,children:[m&&ve(W.Image,{src:o,srcSet:i,alt:t||e||"Avatar image"}),!m&&e&&ve(W.Fallback,{name:e,css:SR}),!m&&!e&&ve(zg,{size:"100%",style:{padding:"15%",color:c?Ie("neutral",400):Ie("primary",800)}})]});return b?ve(DR,{notificationCount:a,size:l,labels:{unreadMessagesLabel:p.unreadMessagesLabel},children:v}):v})),IR=(e,t="full-width",n=!1)=>{let r="",o="",i="";return"success"===e?(r=Ie("success",100),o=Ie("success",500),i=Ie("success",300)):"warning"===e?(r=Ie("warning",100),o=Ie("warning",500),i=Ie("warning",300)):"error"===e?(r=Ie("error",100),o=Ie("error",500),i=Ie("error",300)):"information"===e?(r=Ie("secondary",100),o=Ie("secondary",500),i=Ie("secondary",200)):"general-grey"===e?(r=Ie("neutral",200),o=Ie("neutral",700),i=Ie("neutral",300)):(r=Ie("neutral",100),o=Ie("neutral",700),i=Ie("neutral",300)),ke`
|
|
4309
4329
|
display: ${"inline"===t?"inline-flex":"flex"};
|
|
4310
4330
|
width: ${"inline"===t?"fit-content":"100%"};
|
|
4311
4331
|
max-width: 100%;
|
|
@@ -4316,38 +4336,38 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4316
4336
|
background-color: ${r};
|
|
4317
4337
|
border-bottom: ${_e(100)} solid ${i};
|
|
4318
4338
|
border-radius: 0;
|
|
4319
|
-
`},
|
|
4339
|
+
`},zR=e=>ke`
|
|
4320
4340
|
rotate: ${"error"===e?"180deg":""};
|
|
4321
4341
|
svg {
|
|
4322
4342
|
width: 1rem;
|
|
4323
4343
|
height: 1rem;
|
|
4324
4344
|
}
|
|
4325
|
-
`,
|
|
4345
|
+
`,VR=ee.forwardRef((({title:e,children:t,icon:n,variant:r,onClose:o,labels:i,isCentered:s=!1,width:a="full-width"},l)=>{const c=tg("AlertBanner",i),[d,u]=ee.useState(!0),h=ve("success"===r?gg:"warning"===r?bg:cg,{});return d?be(U.Root,{css:IR(r,a,s),children:[ve(U.Indicator,{css:zR(r),children:n||h}),t?ve(U.Content,{flex:s?"initial":void 0,children:be("div",{style:{display:"flex",gap:"0.75rem",alignItems:"center"},children:[ve(U.Title,{children:e}),ve(U.Description,{children:t})]})}):ve(U.Title,{flex:s?"initial":"1",children:e}),ve(_b,{"aria-label":c.closeAlertLabel,pos:"absolute",top:"1rem",insetEnd:"2",onClick:()=>{u(!1),o?.()}})]}):null})),HR=ke`
|
|
4326
4346
|
height: ${Ve(200)};
|
|
4327
4347
|
width: 100%;
|
|
4328
4348
|
background-color: ${Ie("neutral",300)};
|
|
4329
4349
|
display: flex;
|
|
4330
4350
|
align-items: center;
|
|
4331
4351
|
justify-content: flex-start;
|
|
4332
|
-
`,
|
|
4352
|
+
`,BR=(e,t)=>ke`
|
|
4333
4353
|
height: 100%;
|
|
4334
4354
|
width: ${e}%;
|
|
4335
4355
|
background-color: ${t??Ie("primary",500)};
|
|
4336
4356
|
transition: width 0.5s ease-in-out;
|
|
4337
|
-
`,
|
|
4357
|
+
`,_R=({progress:e,labels:t,color:n})=>{const r=tg("ProgressBar",t);let o=e;return o>100&&(o=100),o<0&&(o=0),ve("div",{css:HR,role:"progressbar","aria-label":r.progressAriaLabel(o),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":o,children:ve("div",{css:BR(o,n)})})},jR=ke`
|
|
4338
4358
|
width: 100%;
|
|
4339
4359
|
display: flex;
|
|
4340
4360
|
align-items: center;
|
|
4341
4361
|
justify-content: space-between;
|
|
4342
4362
|
position: relative;
|
|
4343
|
-
`,
|
|
4363
|
+
`,FR=ke`
|
|
4344
4364
|
height: 3.75rem;
|
|
4345
4365
|
width: ${Ve(2e3)};
|
|
4346
4366
|
display: flex;
|
|
4347
4367
|
flex-direction: column;
|
|
4348
4368
|
align-items: center;
|
|
4349
4369
|
justify-content: space-between;
|
|
4350
|
-
`,
|
|
4370
|
+
`,qR=(e,t)=>ke`
|
|
4351
4371
|
height: ${Ve(800)};
|
|
4352
4372
|
width: ${Ve(800)};
|
|
4353
4373
|
display: flex;
|
|
@@ -4383,12 +4403,12 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4383
4403
|
}
|
|
4384
4404
|
|
|
4385
4405
|
${t?`\n background-color: ${Ie("neutral",300)};\n \n &:hover {\n background-color: ${Ie("neutral",300)};\n box-shadow: none;\n }\n `:""}
|
|
4386
|
-
`,
|
|
4406
|
+
`,WR=e=>ke`
|
|
4387
4407
|
color: ${Ie("neutral",e?800:600)};
|
|
4388
4408
|
font-size: ${ze(300)};
|
|
4389
4409
|
line-height: ${He(500)};
|
|
4390
4410
|
font-weight: 400;
|
|
4391
|
-
`,
|
|
4411
|
+
`,UR=ke`
|
|
4392
4412
|
height: ${_e(100)};
|
|
4393
4413
|
width: 100%;
|
|
4394
4414
|
padding: 0 1.875rem;
|
|
@@ -4396,25 +4416,25 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4396
4416
|
top: ${Ve(400)};
|
|
4397
4417
|
left: 0;
|
|
4398
4418
|
z-index: -1;
|
|
4399
|
-
`,
|
|
4419
|
+
`,KR=ke`
|
|
4400
4420
|
height: ${_e(100)};
|
|
4401
4421
|
width: 100%;
|
|
4402
4422
|
background-color: ${Ie("neutral",400)};
|
|
4403
|
-
`,
|
|
4423
|
+
`,GR=({steps:e,currentStep:t,labels:n})=>{const r=tg("StepProgressIndicator",n);return be("div",{css:jR,children:[e.map(((e,n)=>be("div",{css:FR,children:[ve("button",{css:qR(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":r.currentStepLabel(n+1,e.label||"",t>n+1),"data-active":t>=n+1,children:t>n+1?ve(ag,{height:"1rem",width:"1rem"}):n+1}),e.label?ve("p",{css:WR(t===n+1),children:e.label}):null]},`${e.label}-${n}`))),ve("div",{css:UR,children:ve("div",{css:KR})})]})},ZR=ke`
|
|
4404
4424
|
font-size: ${ze(500)};
|
|
4405
4425
|
line-height: ${He(700)};
|
|
4406
4426
|
font-weight: 400;
|
|
4407
4427
|
color: ${Ie("neutral",800)};
|
|
4408
|
-
`,
|
|
4428
|
+
`,JR=ke`
|
|
4409
4429
|
font-size: ${ze(400)};
|
|
4410
4430
|
line-height: ${He(600)};
|
|
4411
4431
|
font-weight: 400;
|
|
4412
4432
|
color: ${Ie("neutral",700)};
|
|
4413
|
-
`,
|
|
4433
|
+
`,XR=ke`
|
|
4414
4434
|
padding: 0.375rem;
|
|
4415
|
-
`,
|
|
4435
|
+
`,YR=ke`
|
|
4416
4436
|
padding: 0.375rem;
|
|
4417
|
-
`,
|
|
4437
|
+
`,QR={pauseOnPageIdle:!0,offsets:"1.5rem"},eD={"top-start":K({placement:"top-start",...QR}),top:K({placement:"top",...QR}),"top-end":K({placement:"top-end",...QR}),"bottom-start":K({placement:"bottom-start",...QR}),bottom:K({placement:"bottom",...QR}),"bottom-end":K({placement:"bottom-end",...QR})},tD=e=>{eD[e.placement].create({title:e.label,description:e.caption,duration:e.duration||5e3,meta:{closable:e.closable,icon:e.icon,closableLabel:e.closableLabel,onClose:e.onClose,maxWidth:e.maxWidth},...e})},nD=e=>{Object.values(eD).forEach((t=>{t.dismiss(e)}))},rD=({labels:e})=>{const t=tg("Toast",e);return Object.keys(eD).map((e=>ve(a,{children:ve(G,{toaster:eD[e],insetInline:{mdDown:"4"},children:n=>{return be(Z.Root,{css:(r=n.meta?.maxWidth,ke`
|
|
4418
4438
|
justify-content: space-between;
|
|
4419
4439
|
align-items: center;
|
|
4420
4440
|
gap: ${Ve(200)};
|
|
@@ -4458,4 +4478,4 @@ function sL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
4458
4478
|
color: ${Ie("error",900)};
|
|
4459
4479
|
}
|
|
4460
4480
|
}
|
|
4461
|
-
`),width:{md:"sm"},children:[be(J,{flexDirection:"row",className:"ds-toast-icon-container",alignItems:n.description?"flex-start":"center",children:["info"===n.type?n.meta?.icon?n.meta.icon:ve(cg,{color:"var(--chakra-colors-neutral-700)"}):null,"loading"===n.type?ve(o,{size:"lg",borderWidth:"0.1875rem",color:"var(--chakra-colors-primary-700)"}):null,"success"===n.type?n.meta?.icon?n.meta.icon:ve(gg,{color:"var(--chakra-colors-success-500)"}):null,"warning"===n.type?n.meta?.icon?n.meta.icon:ve(bg,{color:"var(--chakra-colors-warning-500)"}):null,"error"===n.type?n.meta?.icon?n.meta.icon:ve(vg,{color:"var(--chakra-colors-error-500)"}):null,be(J,{gap:"1",flex:"1",maxWidth:"100%",children:[ve(Z.Title,{css:
|
|
4481
|
+
`),width:{md:"sm"},children:[be(J,{flexDirection:"row",className:"ds-toast-icon-container",alignItems:n.description?"flex-start":"center",children:["info"===n.type?n.meta?.icon?n.meta.icon:ve(cg,{color:"var(--chakra-colors-neutral-700)"}):null,"loading"===n.type?ve(o,{size:"lg",borderWidth:"0.1875rem",color:"var(--chakra-colors-primary-700)"}):null,"success"===n.type?n.meta?.icon?n.meta.icon:ve(gg,{color:"var(--chakra-colors-success-500)"}):null,"warning"===n.type?n.meta?.icon?n.meta.icon:ve(bg,{color:"var(--chakra-colors-warning-500)"}):null,"error"===n.type?n.meta?.icon?n.meta.icon:ve(vg,{color:"var(--chakra-colors-error-500)"}):null,be(J,{gap:"1",flex:"1",maxWidth:"100%",children:[ve(Z.Title,{css:ZR,"aria-label":`${n.title}`,children:n.title}),n.description?ve(Z.Title,{css:JR,"aria-label":`${n.description}`,children:n.description}):null]})]}),n.action||n.meta?.closable?be(J,{flexDirection:"row",children:[n.action?ve(ng,{css:XR,label:n.action.label,size:"small",variant:"info"===n.type?"primary":"secondary",onClick:()=>{n?.action?.onClick&&n.action.onClick(),eD[e].dismiss()}}):null,n.meta?.closable?ve(ng,{css:YR,label:n.meta.closableLabel,"aria-label":n.meta?.closableLabel||t.dismissLabel,leftIcon:ve(hg,{height:"0.625rem!",width:"0.625rem!"}),size:"small",variant:"secondary",onClick:()=>{n.meta?.onClose&&n.meta.onClose(),eD[e].dismiss()}}):null]}):null]});var r}})},e)))};export{VR as AlertBanner,w$ as AnalysisWidget,PR as Avatar,DR as Badge,yw as BaseMap,bN as Breadcrumb,ng as Button,Ov as Checkbox,vy as CheckboxList,Iv as CheckboxOptionCard,_b as CloseButton,Cw as ClusterPoint,dw as Combobox,Fe as DesignSystemLocaleProvider,m$ as ExtendableCard,Cb as FieldWrapper,kN as Footer,Ev as FormContainer,og as IconButton,eN as InlineMessage,jy as InputWithUnits,Pk as ItemCount,JC as LayerGroup,XC as LayerGroupContainer,ZC as LayerItem,nk as LayerParameters,fk as LegendItem,qk as List,fv as MapControlsToolbar,xw as MapMarker,$w as MapMarkers,HC as MapPopUp,tb as Menu,pN as MobileSearch,ON as MobileTabBar,wS as Modal,Cv as MultiActionButton,QN as Navbar,iR as NavigationRail,pk as OpacityControl,Fv as OptionCard,Zk as Pagination,ES as Panel,Gy as Password,_R as ProgressBar,kk as QualitativeAttribute,Kv as Radio,Gv as RadioGroup,Jy as RadioList,Vb as RichTextEditor,Hb as SSOButtons,Lk as ScaleBar,CR as Search,_y as Select,jA as Sheet,kw as SimpleMapPin,ly as Slider,Yy as SliderInput,GR as StepProgressIndicator,dy as Switch,fR as TabBar,d$ as Table,h$ as TableCell,u$ as TableRow,Vy as Tag,Ab as TextInput,nw as Textarea,rD as Toast,pv as Toolbar,ob as Tooltip,nD as closeToast,Pe as designSystemStyles,De as designSystemStylesForTailwind,_e as getThemedBorderWidth,Ie as getThemedColor,ze as getThemedFontSize,He as getThemedLineHeight,Be as getThemedRadius,Ve as getThemedSpacing,tD as showToast};
|