@worldresources/wri-design-systems 2.202.9 → 2.202.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -2383,11 +2383,10 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
2383
2383
  `)}:{css:Xx,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:Yx,children:t?.map((e=>ve("div",{style:{width:r?"auto":`calc(100% / ${t.length})`,display:"flex",justifyContent:"center"},children:ve("p",{css:Qx,children:e})},e)))}),n&&n.length?ve("div",{css:Yx,children:n.map((e=>ve("div",{style:{width:r?"auto":`calc(100% / ${t.length})`,display:"flex",justifyContent:"center"},children:ve("p",{css:ek,style:{width:"100%"},children:e})},e)))}):null]});var o},rk=ke`
2384
2384
  display: flex;
2385
2385
  flex-direction: column;
2386
- `,ok=e=>ke`
2386
+ `,ok=ke`
2387
2387
  display: flex;
2388
2388
  gap: ${Ve(400)};
2389
2389
  align-items: center;
2390
- margin-bottom: ${e?Ve(300):0};
2391
2390
 
2392
2391
  .ds-select-input-container {
2393
2392
  margin-bottom: 0rem;
@@ -2397,36 +2396,41 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
2397
2396
  line-height: ${He(700)};
2398
2397
  font-weight: 400;
2399
2398
  color: ${Ie("neutral",700)};
2400
- `,sk=({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("div",{css:rk,children:[be("div",{css:ok(o),children:[ve("div",{style:{width:"5rem"},children:ve(py,{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:ik,children:s.perPageLabel})]}),o?ve("p",{css:ik,children:s.showingLabel(a,l,n)}):null]})},ak=e=>ke`
2399
+ `,sk=ke`
2400
+ font-size: ${ze(500)};
2401
+ line-height: ${He(700)};
2402
+ font-weight: 400;
2403
+ color: ${Ie("neutral",700)};
2404
+ `,ak=({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:rk,children:be("div",{css:ok,children:[ve("div",{style:{width:"5rem"},children:ve(py,{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:ik,children:s.perPageLabel})]})}),o?ve("p",{css:sk,children:s.showingLabel(a,l,n)}):null]})},lk=e=>ke`
2401
2405
  border: ${_e(100)} solid ${Ie("neutral",300)};
2402
2406
  ${e?"border: none;":""}
2403
- `,lk=e=>ke`
2407
+ `,ck=e=>ke`
2404
2408
  color: ${Ie("neutral",e?400:700)};
2405
2409
  line-height: ${He(500)};
2406
2410
  white-space: nowrap;
2407
2411
  overflow: hidden;
2408
2412
  text-overflow: ellipsis;
2409
- `,ck=ke`
2413
+ `,dk=ke`
2410
2414
  font-weight: 400;
2411
2415
  color: ${Ie("neutral",700)};
2412
2416
  white-space: nowrap;
2413
2417
  overflow: hidden;
2414
2418
  text-overflow: ellipsis;
2415
- `,dk=ke`
2419
+ `,uk=ke`
2416
2420
  color: ${Ie("neutral",700)};
2417
2421
  text-align: right;
2418
2422
  font-weight: 700;
2419
2423
  white-space: nowrap;
2420
2424
  overflow: hidden;
2421
2425
  text-overflow: ellipsis;
2422
- `,uk=e=>ke`
2426
+ `,hk=e=>ke`
2423
2427
  width: ${Ve(400)};
2424
2428
  height: ${Ve(400)};
2425
2429
 
2426
2430
  path {
2427
2431
  fill: ${Ie("neutral",e?400:700)};
2428
2432
  }
2429
- `,hk=ke`
2433
+ `,pk=ke`
2430
2434
  display: flex;
2431
2435
  align-items: center;
2432
2436
  justify-content: space-between;
@@ -2436,7 +2440,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
2436
2440
  ${Ie("neutral",200)};
2437
2441
  width: 100%;
2438
2442
  text-align: left;
2439
- `,pk=ke`
2443
+ `,fk=ke`
2440
2444
  display: flex;
2441
2445
  align-items: center;
2442
2446
  justify-content: space-between;
@@ -2472,19 +2476,19 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
2472
2476
  &:disabled {
2473
2477
  background-color: ${Ie("neutral",200)};
2474
2478
  }
2475
- `,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?R.button:R.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?hk:pk,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(N,{gap:3,flex:"1",overflow:"hidden",children:[o,be(r,{flex:"1",minWidth:0,children:[ve(h,{fontWeight:"data"===a?"400":"700",css:lk(u),children:t}),n&&ve(h,{css:ck,children:n})]})]}),"data"===a&&s&&ve(h,{css:dk,children:s}),"navigation"===a&&ve(i,{as:ug,boxSize:4,"aria-hidden":"true",css:uk(u)})]})},mk=({items:e,noBorder:t,highlightedIndex:n})=>ve(r,{css:ak(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)))}),gk=ke`
2479
+ `,mk=({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?R.button:R.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?pk:fk,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(N,{gap:3,flex:"1",overflow:"hidden",children:[o,be(r,{flex:"1",minWidth:0,children:[ve(h,{fontWeight:"data"===a?"400":"700",css:ck(u),children:t}),n&&ve(h,{css:dk,children:n})]})]}),"data"===a&&s&&ve(h,{css:uk,children:s}),"navigation"===a&&ve(i,{as:ug,boxSize:4,"aria-hidden":"true",css:hk(u)})]})},gk=({items:e,noBorder:t,highlightedIndex:n})=>ve(r,{css:lk(t),children:e.map(((e,t)=>ve(mk,{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)))}),bk=ke`
2476
2480
  background: transparent;
2477
2481
  svg {
2478
2482
  path {
2479
2483
  fill: ${Ie("primary",500)};
2480
2484
  }
2481
2485
  }
2482
- `,bk=ke`
2486
+ `,vk=ke`
2483
2487
  font-size: ${ze(400)};
2484
2488
  line-height: ${He(600)};
2485
2489
  font-weight: 700;
2486
2490
  color: ${Ie("neutral",900)};
2487
- `,vk=ke`
2491
+ `,yk=ke`
2488
2492
  span {
2489
2493
  height: ${Ve(500)};
2490
2494
  width: ${Ve(500)};
@@ -2494,7 +2498,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
2494
2498
  background-color: transparent;
2495
2499
  }
2496
2500
  }
2497
- `,yk=ke`
2501
+ `,wk=ke`
2498
2502
  font-size: ${ze(400)};
2499
2503
  line-height: ${He(600)};
2500
2504
  font-weight: 400;
@@ -2504,7 +2508,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
2504
2508
  color: ${Ie("neutral",900)};
2505
2509
  font-weight: 700;
2506
2510
  }
2507
- `,wk=({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:vk,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:gk,style:{rotate:"90deg"},icon:ve(dg,{}),"aria-label":s.previousPageLabel})}),a?ve(D.PageText,{css:bk}):ve(D.Items,{render:e=>ve(og,{css:yk,"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:gk,style:{rotate:"270deg"},icon:ve(dg,{}),"aria-label":s.nextPageLabel})})]})})})},Ck=(e,t)=>ke`
2511
+ `,Ck=({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:yk,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:bk,style:{rotate:"90deg"},icon:ve(dg,{}),"aria-label":s.previousPageLabel})}),a?ve(D.PageText,{css:vk}):ve(D.Items,{render:e=>ve(og,{css:wk,"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:bk,style:{rotate:"270deg"},icon:ve(dg,{}),"aria-label":s.nextPageLabel})})]})})})},xk=(e,t)=>ke`
2508
2512
  border: ${"full-width"===e?"none":`${_e(100)} solid ${Ie("neutral",300)}`};
2509
2513
  border-radius: ${Be(200)};
2510
2514
  box-shadow: ${"full-width"===e?"none":`0 0 0 0.0625rem ${Ie("neutral",300)}`};
@@ -2562,7 +2566,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
2562
2566
  [data-sticky-last='true'] {
2563
2567
  border-inline-end: 0.0625rem solid ${Ie("neutral",400)};
2564
2568
  }
2565
- `,xk=e=>ke`
2569
+ `,kk=e=>ke`
2566
2570
  tr {
2567
2571
  background-color: ${Ie("neutral","full-width"===e?100:200)};
2568
2572
 
@@ -2571,14 +2575,14 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
2571
2575
  box-shadow: inset 0 -0.0625rem 0 ${Ie("neutral",300)};
2572
2576
  }
2573
2577
  }
2574
- `,kk=ke`
2578
+ `,$k=ke`
2575
2579
  font-size: ${ze(400)};
2576
2580
  line-height: ${He(600)};
2577
2581
  font-weight: 700;
2578
2582
  color: ${Ie("neutral",800)};
2579
2583
  display: flex;
2580
2584
  align-items: center;
2581
- `,$k=ke`
2585
+ `,Sk=ke`
2582
2586
  height: ${He(600)};
2583
2587
  width: 0.625rem;
2584
2588
  display: flex;
@@ -2600,19 +2604,20 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
2600
2604
  }
2601
2605
  }
2602
2606
  }
2603
- `,Sk=e=>ke`
2607
+ `,Mk=e=>ke`
2604
2608
  svg {
2605
2609
  path {
2606
2610
  fill: ${Ie("accessible",e?"controls-on-neutral-lights":100)} !important;
2607
2611
  }
2608
2612
  }
2609
- `,Mk=ke`
2613
+ `,Ek=ke`
2610
2614
  margin-top: ${Ve(300)};
2611
2615
  display: flex;
2612
2616
  justify-content: space-between;
2613
- `,Ek=ke`
2617
+ align-items: center;
2618
+ `,Tk=ke`
2614
2619
  margin-top: 0.5625rem;
2615
- `,Tk=e=>ke`
2620
+ `,Ok=e=>ke`
2616
2621
  tr {
2617
2622
  height: ${Ve(1200)};
2618
2623
 
@@ -2639,18 +2644,18 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
2639
2644
  }
2640
2645
  }
2641
2646
  }
2642
- `,Ok=e=>ke`
2647
+ `,Lk=e=>ke`
2643
2648
  overflow: auto;
2644
2649
  height: ${e};
2645
2650
  width: 100%;
2646
- `,Lk=ke`
2651
+ `,Ak=ke`
2647
2652
  height: 30rem;
2648
2653
  display: flex;
2649
2654
  align-items: center;
2650
2655
  justify-content: center;
2651
- `,Ak="__checkbox__",Rk=(e,t)=>{const n=e[t]?.width;return n?{width:n,minWidth:n}:{}},Nk=(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`}},Dk=(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)))},Pk=({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:""}),C=se({}),x=se(null),[k,$]=ae({}),[S,M]=ae([]),{totalItems:E=t.length,currentPage:T=1,pageSize:O=10,showItemCount:L,showItemCountText:A}=s||{},R=Boolean(d),N=oe((()=>Dk(t,y,R)),[t,R,y]),D=(e,t)=>{w({key:e,order:t}),d&&d({key:e,order:t})},P=l??S,z=N.length>0&&P.length===N.length,V=P.length>0&&P.length<N.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[Ak]?[Ak]:[],...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[Ak]=0,o+=n.offsetWidth),i.forEach((e=>{r[e.key]=o,o+=t[e.key]?.offsetWidth||0})),r})(e,C.current,a?x.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=>Nk(k,e.key,_),q=e=>((e,t,n,r)=>({...Rk(e,n),...Nk(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,{...Nk(o,Ak,i),children:X(cv,{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?Ok(g):void 0,children:be(I.Root,{css:Ck(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:x,...Nk(k,Ak,_),children:ve(cv,{name:"header-checkbox","aria-label":v.selectAllRowsLabel,checked:z,indeterminate:V,onCheckedChange:({checked:e})=>{void 0===l&&M(e?N:[]),p&&p(e)}})}):null,e.map((e=>{return ve(I.ColumnHeader,{ref:t=>{C.current[e.key]=t},...(t=e.key,Rk(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:kk,children:[e.label,e.sortable?be("div",{css:$k,children:[ve(og,{css:Sk(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:Sk(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:Tk(r),children:N.map((e=>ve(te.Fragment,{children:K(e,{className:W(e)?"selected":void 0,getCellProps:q})},e.id)))})]})}),m?ve("div",{css:Lk,children:ve(o,{size:"lg",color:Ie("primary",500)})}):null,be("div",{css:Mk,children:[ve("div",{children:L?ve(sk,{pageSize:O,currentPage:T,totalItems:E,onPageSizeChange:u,showItemCountText:A}):null}),s?ve("div",{css:Ek,children:ve(wk,{totalItems:E,pageSize:O,currentPage:T,onPageChange:h})}):null]})]})},Ik=I.Row,zk=I.Cell,Vk=ke`
2656
+ `,Rk="__checkbox__",Nk=(e,t)=>{const n=e[t]?.width;return n?{width:n,minWidth:n}:{}},Dk=(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`}},Pk=(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)))},Ik=({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:""}),C=se({}),x=se(null),[k,$]=ae({}),[S,M]=ae([]),{totalItems:E=t.length,currentPage:T=1,pageSize:O=10,showItemCount:L,showItemCountText:A}=s||{},R=Boolean(d),N=oe((()=>Pk(t,y,R)),[t,R,y]),D=(e,t)=>{w({key:e,order:t}),d&&d({key:e,order:t})},P=l??S,z=N.length>0&&P.length===N.length,V=P.length>0&&P.length<N.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[Rk]?[Rk]:[],...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[Rk]=0,o+=n.offsetWidth),i.forEach((e=>{r[e.key]=o,o+=t[e.key]?.offsetWidth||0})),r})(e,C.current,a?x.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=>Dk(k,e.key,_),q=e=>((e,t,n,r)=>({...Nk(e,n),...Dk(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,{...Dk(o,Rk,i),children:X(cv,{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?Lk(g):void 0,children:be(I.Root,{css:xk(c,i),striped:r,stickyHeader:i,interactive:!0,children:[ve(I.Header,{css:kk(c),children:be(I.Row,{children:[a?ve(I.ColumnHeader,{ref:x,...Dk(k,Rk,_),children:ve(cv,{name:"header-checkbox","aria-label":v.selectAllRowsLabel,checked:z,indeterminate:V,onCheckedChange:({checked:e})=>{void 0===l&&M(e?N:[]),p&&p(e)}})}):null,e.map((e=>{return ve(I.ColumnHeader,{ref:t=>{C.current[e.key]=t},...(t=e.key,Nk(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:$k,children:[e.label,e.sortable?be("div",{css:Sk,children:[ve(og,{css:Mk(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:Mk(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:Ok(r),children:N.map((e=>ve(te.Fragment,{children:K(e,{className:W(e)?"selected":void 0,getCellProps:q})},e.id)))})]})}),m?ve("div",{css:Ak,children:ve(o,{size:"lg",color:Ie("primary",500)})}):null,be("div",{css:Ek,children:[L?ve(ak,{pageSize:O,currentPage:T,totalItems:E,onPageSizeChange:u,showItemCountText:A}):null,s?ve("div",{css:Tk,children:ve(Ck,{totalItems:E,pageSize:O,currentPage:T,onPageChange:h})}):null]})]})},zk=I.Row,Vk=I.Cell,Hk=ke`
2652
2657
  border: ${_e(100)} solid ${Ie("neutral",300)};
2653
- `,Hk=ke`
2658
+ `,Bk=ke`
2654
2659
  padding: ${Ve(400)};
2655
2660
  cursor: pointer;
2656
2661
  &:focus-visible {
@@ -2665,9 +2670,9 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
2665
2670
  transparent
2666
2671
  );
2667
2672
  }
2668
- `,Bk=({children:e,header:t,footer:n})=>ve(r,{css:Vk,children:ve(A.Root,{multiple:!0,children:be(A.Item,{value:"extendable-card-item",children:[be(A.ItemTrigger,{css:Hk,alignItems:"center",children:[ve(N,{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]})]})})}),_k=ke`
2673
+ `,_k=({children:e,header:t,footer:n})=>ve(r,{css:Hk,children:ve(A.Root,{multiple:!0,children:be(A.Item,{value:"extendable-card-item",children:[be(A.ItemTrigger,{css:Bk,alignItems:"center",children:[ve(N,{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]})]})})}),jk=ke`
2669
2674
  border: ${_e(100)} solid ${Ie("neutral",300)};
2670
- `,jk=ke`
2675
+ `,Fk=ke`
2671
2676
  padding: ${Ve(400)};
2672
2677
  cursor: pointer;
2673
2678
  border-bottom: ${_e(100)} solid
@@ -2689,7 +2694,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
2689
2694
  transparent
2690
2695
  );
2691
2696
  }
2692
- `,Fk=ke`
2697
+ `,qk=ke`
2693
2698
  .item-content-open > * {
2694
2699
  max-height: auto;
2695
2700
 
@@ -2710,10 +2715,10 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
2710
2715
  padding-bottom 0.2s ease,
2711
2716
  padding-top 0.2s ease;
2712
2717
  }
2713
- `,qk=ke`
2718
+ `,Wk=ke`
2714
2719
  border-top: ${_e(100)} solid
2715
2720
  ${Ie("neutral",300)};
2716
- `,Wk=({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:_k,children:be(A.Root,{multiple:!0,value:i?void 0:[c],defaultValue:o?[c]:[],children:[be(A.Item,{css:Fk,value:c,children:[t&&ve(A.ItemTrigger,{id:h,"aria-expanded":d,css:jk,pointerEvents:i?"auto":"none",onClick:i?()=>{u(!d)}:void 0,children:be(N,{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:qk,children:n})]})]}),a&&n&&ve(r,{css:qk,children:n})]})})};var Uk,Kk={exports:{}},Zk={},Gk={exports:{}},Jk={exports:{}},Xk={};var Yk,Qk,e$,t$,n$,r$,o$,i$,s$,a$,l$,c$,d$,u$={};
2721
+ `,Uk=({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:jk,children:be(A.Root,{multiple:!0,value:i?void 0:[c],defaultValue:o?[c]:[],children:[be(A.Item,{css:qk,value:c,children:[t&&ve(A.ItemTrigger,{id:h,"aria-expanded":d,css:Fk,pointerEvents:i?"auto":"none",onClick:i?()=>{u(!d)}:void 0,children:be(N,{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:Wk,children:n})]})]}),a&&n&&ve(r,{css:Wk,children:n})]})})};var Kk,Zk={exports:{}},Gk={},Jk={exports:{}},Xk={exports:{}},Yk={};var Qk,e$,t$,n$,r$,o$,i$,s$,a$,l$,c$,d$,u$,h$={};
2717
2722
  /** @license React v16.13.1
2718
2723
  * react-is.development.js
2719
2724
  *
@@ -2721,7 +2726,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
2721
2726
  *
2722
2727
  * This source code is licensed under the MIT license found in the
2723
2728
  * LICENSE file in the root directory of this source tree.
2724
- */function h$(){return Qk||(Qk=1,"production"===process.env.NODE_ENV?Jk.exports=function(){if(Uk)return Xk;Uk=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 Xk.AsyncMode=l,Xk.ConcurrentMode=c,Xk.ContextConsumer=a,Xk.ContextProvider=s,Xk.Element=t,Xk.ForwardRef=d,Xk.Fragment=r,Xk.Lazy=f,Xk.Memo=p,Xk.Portal=n,Xk.Profiler=i,Xk.StrictMode=o,Xk.Suspense=u,Xk.isAsyncMode=function(e){return w(e)||y(e)===l},Xk.isConcurrentMode=w,Xk.isContextConsumer=function(e){return y(e)===a},Xk.isContextProvider=function(e){return y(e)===s},Xk.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Xk.isForwardRef=function(e){return y(e)===d},Xk.isFragment=function(e){return y(e)===r},Xk.isLazy=function(e){return y(e)===f},Xk.isMemo=function(e){return y(e)===p},Xk.isPortal=function(e){return y(e)===n},Xk.isProfiler=function(e){return y(e)===i},Xk.isStrictMode=function(e){return y(e)===o},Xk.isSuspense=function(e){return y(e)===u},Xk.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)},Xk.typeOf=y,Xk}():Jk.exports=(Yk||(Yk=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,C=c,x=a,k=s,$=t,S=d,M=r,E=f,T=p,O=n,L=i,A=o,R=u,N=!1;function D(e){return y(e)===c}u$.AsyncMode=w,u$.ConcurrentMode=C,u$.ContextConsumer=x,u$.ContextProvider=k,u$.Element=$,u$.ForwardRef=S,u$.Fragment=M,u$.Lazy=E,u$.Memo=T,u$.Portal=O,u$.Profiler=L,u$.StrictMode=A,u$.Suspense=R,u$.isAsyncMode=function(e){return N||(N=!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},u$.isConcurrentMode=D,u$.isContextConsumer=function(e){return y(e)===a},u$.isContextProvider=function(e){return y(e)===s},u$.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},u$.isForwardRef=function(e){return y(e)===d},u$.isFragment=function(e){return y(e)===r},u$.isLazy=function(e){return y(e)===f},u$.isMemo=function(e){return y(e)===p},u$.isPortal=function(e){return y(e)===n},u$.isProfiler=function(e){return y(e)===i},u$.isStrictMode=function(e){return y(e)===o},u$.isSuspense=function(e){return y(e)===u},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)},u$.typeOf=y}()),u$)),Jk.exports}function p$(){if(t$)return e$;t$=1;return e$="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function f$(){return r$?n$:(r$=1,n$=Function.call.bind(Object.prototype.hasOwnProperty))}function m$(){if(a$)return s$;a$=1;var e=h$(),t=$e,n=p$(),r=f$(),o=function(){if(i$)return o$;i$=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=p$(),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={})},o$=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){}}),s$=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},s$}function g$(){if(d$)return Gk.exports;if(d$=1,"production"!==process.env.NODE_ENV){var e=h$();Gk.exports=m$()(e.isElement,!0)}else Gk.exports=function(){if(c$)return l$;c$=1;var e=p$();function t(){}function n(){}return n.resetWarningCache=t,l$=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},l$}()();return Gk.exports}var b$,v$={exports:{}};var y$,w$={},C$={};function x$(){if(y$)return C$;return y$=1,Object.defineProperty(C$,"__esModule",{value:!0}),C$.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.`)},C$.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]},C$.int=function(e){return parseInt(e,10)},C$.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},C$.isNum=function(e){return"number"==typeof e&&!isNaN(e)},C$}var k$,$$,S$={};function M$(){if($$)return w$;$$=1,Object.defineProperty(w$,"__esModule",{value:!0}),w$.addClassName=s,w$.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},w$.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")},w$.createCSSTransform=function(e,n){const r=o(e,n,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:r}},w$.createSVGTransform=function(e,t){return o(e,t,"")},w$.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))},w$.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},w$.getTranslation=o,w$.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},w$.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},w$.matchesSelector=r,w$.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},w$.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}},w$.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},w$.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},w$.removeClassName=a,w$.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},w$.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(k$)return S$;k$=1,Object.defineProperty(S$,"__esModule",{value:!0}),S$.browserPrefixToKey=n,S$.browserPrefixToStyle=function(e,t){return t?`-${t.toLowerCase()}-${e}`:e},S$.default=void 0,S$.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 S$.default=t(),S$}());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 w$}var E$,T$={};function O$(){if(E$)return T$;E$=1,Object.defineProperty(T$,"__esModule",{value:!0}),T$.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},T$.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},T$.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}},T$.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}},T$.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]},T$.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)},T$.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=M$();function n(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}return T$}var L$,A$,R$,N$,D$={},P$={};function I$(){if(L$)return P$;return L$=1,Object.defineProperty(P$,"__esModule",{value:!0}),P$.default=function(){},P$}function z$(){if(A$)return D$;A$=1,Object.defineProperty(D$,"__esModule",{value:!0}),D$.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(g$()),n=a(Ce),r=M$(),o=O$(),i=x$(),s=a(I$());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 D$.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}),D$}function V$(){return R$||(R$=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(g$()),r=d(Ce),o=function(){if(b$)return v$.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 b$=1,v$.exports=t,v$.exports.clsx=t,v$.exports}(),i=M$(),s=O$(),a=x$(),l=d(z$()),c=d(I$());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,C={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)(C,f):b=(0,i.createCSSTransform)(C,f);const x=(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:x,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})}(Zk)),Zk}var H$=function(){if(N$)return Kk.exports;N$=1;const{default:e,DraggableCore:t}=V$();return Kk.exports=e,Kk.exports.default=e,Kk.exports.DraggableCore=t,Kk.exports}(),B$=Sf(H$);const _$=(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`
2729
+ */function p$(){return e$||(e$=1,"production"===process.env.NODE_ENV?Xk.exports=function(){if(Kk)return Yk;Kk=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 Yk.AsyncMode=l,Yk.ConcurrentMode=c,Yk.ContextConsumer=a,Yk.ContextProvider=s,Yk.Element=t,Yk.ForwardRef=d,Yk.Fragment=r,Yk.Lazy=f,Yk.Memo=p,Yk.Portal=n,Yk.Profiler=i,Yk.StrictMode=o,Yk.Suspense=u,Yk.isAsyncMode=function(e){return w(e)||y(e)===l},Yk.isConcurrentMode=w,Yk.isContextConsumer=function(e){return y(e)===a},Yk.isContextProvider=function(e){return y(e)===s},Yk.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Yk.isForwardRef=function(e){return y(e)===d},Yk.isFragment=function(e){return y(e)===r},Yk.isLazy=function(e){return y(e)===f},Yk.isMemo=function(e){return y(e)===p},Yk.isPortal=function(e){return y(e)===n},Yk.isProfiler=function(e){return y(e)===i},Yk.isStrictMode=function(e){return y(e)===o},Yk.isSuspense=function(e){return y(e)===u},Yk.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)},Yk.typeOf=y,Yk}():Xk.exports=(Qk||(Qk=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,C=c,x=a,k=s,$=t,S=d,M=r,E=f,T=p,O=n,L=i,A=o,R=u,N=!1;function D(e){return y(e)===c}h$.AsyncMode=w,h$.ConcurrentMode=C,h$.ContextConsumer=x,h$.ContextProvider=k,h$.Element=$,h$.ForwardRef=S,h$.Fragment=M,h$.Lazy=E,h$.Memo=T,h$.Portal=O,h$.Profiler=L,h$.StrictMode=A,h$.Suspense=R,h$.isAsyncMode=function(e){return N||(N=!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},h$.isConcurrentMode=D,h$.isContextConsumer=function(e){return y(e)===a},h$.isContextProvider=function(e){return y(e)===s},h$.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},h$.isForwardRef=function(e){return y(e)===d},h$.isFragment=function(e){return y(e)===r},h$.isLazy=function(e){return y(e)===f},h$.isMemo=function(e){return y(e)===p},h$.isPortal=function(e){return y(e)===n},h$.isProfiler=function(e){return y(e)===i},h$.isStrictMode=function(e){return y(e)===o},h$.isSuspense=function(e){return y(e)===u},h$.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)},h$.typeOf=y}()),h$)),Xk.exports}function f$(){if(n$)return t$;n$=1;return t$="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function m$(){return o$?r$:(o$=1,r$=Function.call.bind(Object.prototype.hasOwnProperty))}function g$(){if(l$)return a$;l$=1;var e=p$(),t=$e,n=f$(),r=m$(),o=function(){if(s$)return i$;s$=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=f$(),n={},r=m$();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={})},i$=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){}}),a$=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},a$}function b$(){if(u$)return Jk.exports;if(u$=1,"production"!==process.env.NODE_ENV){var e=p$();Jk.exports=g$()(e.isElement,!0)}else Jk.exports=function(){if(d$)return c$;d$=1;var e=f$();function t(){}function n(){}return n.resetWarningCache=t,c$=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},c$}()();return Jk.exports}var v$,y$={exports:{}};var w$,C$={},x$={};function k$(){if(w$)return x$;return w$=1,Object.defineProperty(x$,"__esModule",{value:!0}),x$.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.`)},x$.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]},x$.int=function(e){return parseInt(e,10)},x$.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},x$.isNum=function(e){return"number"==typeof e&&!isNaN(e)},x$}var $$,S$,M$={};function E$(){if(S$)return C$;S$=1,Object.defineProperty(C$,"__esModule",{value:!0}),C$.addClassName=s,C$.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},C$.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")},C$.createCSSTransform=function(e,n){const r=o(e,n,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:r}},C$.createSVGTransform=function(e,t){return o(e,t,"")},C$.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))},C$.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},C$.getTranslation=o,C$.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},C$.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},C$.matchesSelector=r,C$.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},C$.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}},C$.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},C$.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},C$.removeClassName=a,C$.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},C$.scheduleRemoveUserSelectStyles=function(e){window.requestAnimationFrame?window.requestAnimationFrame((()=>{i(e)})):i(e)};var e=k$(),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($$)return M$;$$=1,Object.defineProperty(M$,"__esModule",{value:!0}),M$.browserPrefixToKey=n,M$.browserPrefixToStyle=function(e,t){return t?`-${t.toLowerCase()}-${e}`:e},M$.default=void 0,M$.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 M$.default=t(),M$}());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 C$}var T$,O$={};function L$(){if(T$)return O$;T$=1,Object.defineProperty(O$,"__esModule",{value:!0}),O$.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},O$.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},O$.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}},O$.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}},O$.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]},O$.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)},O$.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=k$(),t=E$();function n(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}return O$}var A$,R$,N$,D$,P$={},I$={};function z$(){if(A$)return I$;return A$=1,Object.defineProperty(I$,"__esModule",{value:!0}),I$.default=function(){},I$}function V$(){if(R$)return P$;R$=1,Object.defineProperty(P$,"__esModule",{value:!0}),P$.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(b$()),n=a(Ce),r=E$(),o=L$(),i=k$(),s=a(z$());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 P$.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}),P$}function H$(){return N$||(N$=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(b$()),r=d(Ce),o=function(){if(v$)return y$.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 v$=1,y$.exports=t,y$.exports.clsx=t,y$.exports}(),i=E$(),s=L$(),a=k$(),l=d(V$()),c=d(z$());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,C={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)(C,f):b=(0,i.createCSSTransform)(C,f);const x=(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:x,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})}(Gk)),Gk}var B$=function(){if(D$)return Zk.exports;D$=1;const{default:e,DraggableCore:t}=H$();return Zk.exports=e,Zk.exports.default=e,Zk.exports.DraggableCore=t,Zk.exports}(),_$=Sf(B$);const j$=(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`
2725
2730
  max-width: 100%;
2726
2731
  width: ${o};
2727
2732
  height: ${a};
@@ -2731,7 +2736,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
2731
2736
  border-radius: ${Be(300)};
2732
2737
  box-shadow: 0 0.25rem 0.375rem -0.25rem #0000001a;
2733
2738
  box-shadow: 0 0.625rem 0.9375rem -0.1875rem #0000001a;
2734
- `},j$=ke`
2739
+ `},F$=ke`
2735
2740
  height: 100%;
2736
2741
  min-height: ${Ve(1e3)};
2737
2742
  display: flex;
@@ -2740,11 +2745,11 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
2740
2745
  padding: ${Ve(200)};
2741
2746
  border-bottom: ${_e(100)} solid
2742
2747
  ${Ie("neutral",300)};
2743
- `,F$=ke`
2744
- top: ${Ve(300)};
2745
2748
  `,q$=ke`
2749
+ top: ${Ve(300)};
2750
+ `,W$=ke`
2746
2751
  padding: 0;
2747
- `,W$=({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),C=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(B$,{disabled:!l,nodeRef:C,children:ve(z.Positioner,{ref:C,children:be(z.Content,{"aria-label":w.dialogAriaLabel,css:_$(r,o,i,s),children:[be(z.Header,{css:j$,children:[e,c?null:ve(z.CloseTrigger,{css:F$,asChild:!0,children:ve(jb,{})})]}),ve(z.Body,{css:q$,children:t}),n?ve(z.Footer,{padding:"0.75rem",children:n}):null]})})})]})}):null},U$=e=>ke`
2752
+ `,U$=({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),C=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(_$,{disabled:!l,nodeRef:C,children:ve(z.Positioner,{ref:C,children:be(z.Content,{"aria-label":w.dialogAriaLabel,css:j$(r,o,i,s),children:[be(z.Header,{css:F$,children:[e,c?null:ve(z.CloseTrigger,{css:q$,asChild:!0,children:ve(jb,{})})]}),ve(z.Body,{css:W$,children:t}),n?ve(z.Footer,{padding:"0.75rem",children:n}):null]})})})]})}):null},K$=e=>ke`
2748
2753
  display: flex;
2749
2754
  flex-direction: column;
2750
2755
  height: 100%;
@@ -2752,19 +2757,19 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
2752
2757
  background-color: ${Ie("neutral",100)};
2753
2758
  box-shadow: 0 0.0625rem 0.125rem -0.0625rem #0000001a;
2754
2759
  box-shadow: 0 0.0625rem 0.1875rem 0 #0000001a;
2755
- `,K$=ke`
2760
+ `,Z$=ke`
2756
2761
  border-right: ${_e(100)} solid
2757
2762
  ${Ie("neutral",300)};
2758
- `,Z$=ke`
2763
+ `,G$=ke`
2759
2764
  border: ${_e(100)} solid ${Ie("neutral",300)};
2760
2765
  border-radius: ${Be(300)};
2761
- `,G$=ke`
2766
+ `,J$=ke`
2762
2767
  flex-shrink: 0;
2763
2768
  min-height: ${Ve(1200)};
2764
2769
  width: 100%;
2765
2770
  border-bottom: ${_e(100)} solid
2766
2771
  ${Ie("neutral",300)};
2767
- `,J$=ke`
2772
+ `,X$=ke`
2768
2773
  flex: 1;
2769
2774
  min-height: 0;
2770
2775
  width: 100%;
@@ -2773,7 +2778,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
2773
2778
  &:focus-visible {
2774
2779
  outline-color: ${Ie("primary",700)};
2775
2780
  }
2776
- `,X$=ke`
2781
+ `,Y$=ke`
2777
2782
  flex-shrink: 0;
2778
2783
  min-height: ${Ve(1600)};
2779
2784
  width: 100%;
@@ -2782,7 +2787,7 @@ import{createSystem as e,defaultConfig as t,Button as n,Box as r,Spinner as o,Ic
2782
2787
  justify-content: flex-start;
2783
2788
  border-top: ${_e(100)} solid
2784
2789
  ${Ie("neutral",300)};
2785
- `,Y$=({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:[U$(o),"fixed"===r?K$:Z$],children:[e?ve("div",{id:i,css:G$,children:e}):null,ve("div",{css:J$,children:t}),n?ve("div",{css:X$,children:n}):null]})};var Q$,eS;!function(){if(eS)return Q$;eS=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))}}Q$=e}();var tS=nS()?de:ce;"production"!==process.env.NODE_ENV&&("undefined"!=typeof process?process:{env:{NODE_ENV:"development"}}).env;function nS(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;var rS=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 tS((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?xe(n,s.current):fe("span",{ref:i})};"production"!==process.env.NODE_ENV&&(rS.displayName="Portal");
2790
+ `,Q$=({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:[K$(o),"fixed"===r?Z$:G$],children:[e?ve("div",{id:i,css:J$,children:e}):null,ve("div",{css:X$,children:t}),n?ve("div",{css:Y$,children:n}):null]})};var eS,tS;!function(){if(tS)return eS;tS=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))}}eS=e}();var nS=rS()?de:ce;"production"!==process.env.NODE_ENV&&("undefined"!=typeof process?process:{env:{NODE_ENV:"development"}}).env;function rS(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;var oS=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 nS((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?xe(n,s.current):fe("span",{ref:i})};"production"!==process.env.NODE_ENV&&(oS.displayName="Portal");
2786
2791
  /*! *****************************************************************************
2787
2792
  Copyright (c) Microsoft Corporation.
2788
2793
 
@@ -2796,16 +2801,16 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
2796
2801
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
2797
2802
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2798
2803
  PERFORMANCE OF THIS SOFTWARE.
2799
- ***************************************************************************** */var oS,iS,sS=function(){return sS=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},sS.apply(this,arguments)};function aS(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 lS(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 cS(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 dS(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"}(oS||(oS={})),function(e){e.Parent="#_parent",e.Internal="#_internal"}(iS||(iS={}));var uS=oS.Start,hS=oS.Stop,pS=oS.Raise,fS=oS.Send,mS=oS.Cancel,gS=oS.NullEvent,bS=oS.Assign;oS.After,oS.DoneState;var vS=oS.Log,yS=oS.Init,wS=oS.Invoke;oS.ErrorExecution;var CS,xS=oS.ErrorPlatform,kS=oS.ErrorCustom,$S=oS.Update,SS=oS.Choose,MS=oS.Pure,ES={},TS="xstate.guard",OS="production"===process.env.NODE_ENV;function LS(e,t,n){void 0===n&&(n=".");var r=NS(e,n),o=NS(t,n);return GS(o)?!!GS(r)&&o===r:GS(r)?r in o:Object.keys(r).every((function(e){return e in o&&LS(r[e],o[e])}))}function AS(e){try{return GS(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 RS(e,t){try{return KS(e)?e:e.toString().split(t)}catch(t){throw new Error("'".concat(e,"' is not a valid state path."))}}function NS(e,t){return"object"==typeof(n=e)&&"value"in n&&"context"in n&&"event"in n&&"_event"in n?e.value:KS(e)?DS(e):"string"!=typeof e?e:DS(RS(e,t));var n}function DS(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 PS(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 IS(e,t,n){var r,o,i={};try{for(var s=lS(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 zS=function(e){return function(t){var n,r,o=t;try{for(var i=lS(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 VS(e){return e?GS(e)?[[e]]:HS(Object.keys(e).map((function(t){var n=e[t];return"string"==typeof n||n&&Object.keys(n).length?VS(e[t]).map((function(e){return[t].concat(e)})):[[t]]}))):[[]]}function HS(e){var t;return(t=[]).concat.apply(t,dS([],cS(e),!1))}function BS(e){return KS(e)?e:[e]}function _S(e){return void 0===e?[]:BS(e)}function jS(e,t,n){var r,o;if(ZS(e))return e(t,n.data);var i={};try{for(var s=lS(Object.keys(e)),a=s.next();!a.done;a=s.next()){var l=a.value,c=e[l];ZS(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 FS(e){return e instanceof Promise||!(null===e||!ZS(e)&&"object"!=typeof e||!ZS(e.then))}function qS(e,t){return PS(e.states,(function(e,n){if(e){var r=(GS(t)?void 0:t[n])||(e?e.current:void 0);if(r)return{current:r,states:qS(e,r)}}}))}function WS(e,t,n,r){OS||US(!!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(ZS(s))l=s(e,t.data,a);else try{for(var c=lS(Object.keys(s)),d=c.next();!d.done;d=c.next()){var u=d.value,h=s[u];l[u]=ZS(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 US=function(){};function KS(e){return Array.isArray(e)}function ZS(e){return"function"==typeof e}function GS(e){return"string"==typeof e}function JS(e,t){if(e)return GS(e)?{type:TS,name:e,predicate:t?t[e]:void 0}:ZS(e)?{type:TS,name:e.name,predicate:e}:e}OS||(US=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 XS=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function YS(e){return!!e&&"__xstatenode"in e}function QS(e,t){return GS(e)||"number"==typeof e?sS({type:e},t):e}function eM(e,t){if(!GS(e)&&"$$type"in e&&"scxml"===e.$$type)return e;var n=QS(e);return sS({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function tM(e,t){return BS(t).map((function(t){return void 0===t||"string"==typeof t||YS(t)?{target:t,event:e}:sS(sS({},t),{event:e})}))}function nM(e,t,n,r,o){var i=e.options.guards,s={state:o,cond:t,_event:r};if(t.type===TS)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 rM(e){return"string"==typeof e?{type:e}:e}function oM(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 iM(e,t){return"".concat(e,":invocation[").concat(t,"]")}function sM(e){return(e.type===pS||e.type===fS&&e.to===iS.Internal)&&"number"!=typeof e.delay}(CS={})[XS]=function(){return this},CS[Symbol.observable]=function(){return this};var aM=eM({type:yS});function lM(e,t){return t&&t[e]||void 0}function cM(e,t){var n;if(GS(e)||"number"==typeof e)n=ZS(r=lM(e,t))?{type:e,exec:r}:r||{type:e,exec:void 0};else if(ZS(e))n={type:e.name||e.toString(),exec:e};else{var r;if(ZS(r=lM(e.type,t)))n=sS(sS({},e),{exec:r});else if(r){var o=r.type||e.type;n=sS(sS(sS({},r),e),{type:o})}else n=e}return n}var dM=function(e,t){return e?(KS(e)?e:[e]).map((function(e){return cM(e,t)})):[]};function uM(e){var t=cM(e);return sS(sS({id:GS(e)?e:t.id},t),{type:t.type})}function hM(e,t){var n="".concat(oS.DoneState,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function pM(e,t){var n="".concat(oS.DoneInvoke,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function fM(e,t){var n="".concat(oS.ErrorPlatform,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function mM(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=lS(e),i=o.next();!i.done;i=o.next())for(var s=i.value,a=0;a<s.actions.length;)s.actions[a].type!==bS?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?WS(n,r,a,t):n,c=s?[n]:void 0,d=[];function u(o,a){var u;switch(a.type){case pS:var h=function(e,t,n,r){var o,i={_event:n},s=eM(ZS(e.event)?e.event(t,n.data,i):e.event);if(GS(e.delay)){var a=r&&r[e.delay];o=ZS(a)?a(t,n.data,i):a}else o=ZS(e.delay)?e.delay(t,n.data,i):e.delay;return sS(sS({},e),{type:pS,_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=eM(ZS(e.event)?e.event(t,n.data,i):e.event);if(GS(e.delay)){var a=r&&r[e.delay];o=ZS(a)?a(t,n.data,i):a}else o=ZS(e.delay)?e.delay(t,n.data,i):e.delay;var l=ZS(e.to)?e.to(t,n.data,i):e.to;return sS(sS({},e),{to:l,_event:s,event:s.data,delay:o})}(a,l,r,e.options.delays);if(!OS){var f=a.delay;US(!GS(f)||"number"==typeof p.delay,"No delay reference for delay expression '".concat(f,"' was found on machine '").concat(e.id,"'"))}return i&&p.to!==iS.Internal&&("entry"===o?d.push(p):i(p,l,r)),p;case vS:var m=function(e,t,n){return sS(sS({},e),{value:GS(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})}(a,l,r);return null==i||i(m,l,r),m;case SS:if(!(y=null===(u=a.conds.find((function(n){var o=JS(n.cond,e.options.guards);return!o||nM(e,o,l,r,i?void 0:t)})))||void 0===u?void 0:u.actions))return[];var g=cS(mM(e,t,l,r,[{type:o,actions:dM(_S(y),e.options.actions)}],i,s),2),b=g[0],v=g[1];return l=v,null==c||c.push(l),b;case MS:var y;if(!(y=a.get(l,r.data)))return[];var w=cS(mM(e,t,l,r,[{type:o,actions:dM(_S(y),e.options.actions)}],i,s),2),C=w[0],x=w[1];return l=x,null==c||c.push(l),C;case hS:m=function(e,t,n){var r=ZS(e.activity)?e.activity(t,n.data):e.activity,o="string"==typeof r?{id:r}:r;return{type:oS.Stop,activity:o}}(a,l,r);return null==i||i(m,n,r),m;case bS:l=WS(l,r,[a],i?void 0:t),null==c||c.push(l);break;default:var k=cM(a,e.options.actions),$=k.exec;if(i)i(k,l,r);else if($&&c){var S=c.length-1,M=sS(sS({},k),{exec:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];$.apply(void 0,dS([c[S]],cS(t),!1))}});k=M}return k}}var h=HS(o.map((function(e){var t,n,o=[];try{for(var s=lS(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 gM=function(e,t){return t(e)};function bM(e){var t;return(t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}})[XS]=function(){return this},t}function vM(e,t,n){var r=bM(t);if(r.deferred=!0,YS(e)){var o=r.state=gM(void 0,(function(){return(n?e.withContext(n):e).initialState}));r.getSnapshot=function(){return o}}return r}var yM=function(e){return"atomic"===e.type||"final"===e.type};function wM(e){return Object.keys(e.states).map((function(t){return e.states[t]}))}function CM(e){return wM(e).filter((function(e){return"history"!==e.type}))}function xM(e){var t=[e];return yM(e)?t:t.concat(HS(CM(e).map(xM)))}function kM(e,t){var n,r,o,i,s,a,l,c,d=SM(new Set(e)),u=new Set(t);try{for(var h=lS(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=SM(u);try{for(var g=lS(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,lS(CM(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 C=lS(u),x=C.next();!x.done;x=C.next()){var k;for(f=(k=x.value).parent;f&&!u.has(f);)u.add(f),f=f.parent}}catch(e){l={error:e}}finally{try{x&&!x.done&&(c=C.return)&&c.call(C)}finally{if(l)throw l.error}}return u}function $M(e,t){var n=t.get(e);if(!n)return{};if("compound"===e.type){var r=n[0];if(!r)return{};if(yM(r))return r.key}var o={};return n.forEach((function(e){o[e.key]=$M(e,t)})),o}function SM(e){var t,n,r=new Map;try{for(var o=lS(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 MM(e,t){return $M(e,SM(kM([e],t)))}function EM(e,t){return Array.isArray(e)?e.some((function(e){return e===t})):e instanceof Set&&e.has(t)}function TM(e,t){return"compound"===t.type?CM(t).some((function(t){return"final"===t.type&&EM(e,t)})):"parallel"===t.type&&CM(t).every((function(t){return TM(e,t)}))}function OM(e){return new Set(HS(e.map((function(e){return e.tags}))))}function LM(e,t){if(e===t)return!0;if(void 0===e||void 0===t)return!1;if(GS(e)||GS(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((function(n){return LM(e[n],t[n])}))}var AM=function(){function e(e){var t,n,r=this;this.actions=[],this.activities=ES,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||ES,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 dS([],cS(new Set(HS(dS([],cS(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:aM,_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=aM;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="."),GS(e))return[e];var r=Object.keys(e);return r.concat.apply(r,dS([],cS(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=aS(e,["configuration","transitions","tags","machine"]);return sS(sS({},n),{tags:Array.from(t)})},e.prototype.matches=function(e){return LS(e,this.value)},e.prototype.hasTag=function(e){return this.tags.has(e)},e.prototype.can=function(e){var t;OS&&US(!!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}(),RM={deferEvents:!1},NM=function(){function e(e){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=sS(sS({},RM),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}(),DM=new Map,PM=0,IM=function(){return"x:".concat(PM++)},zM=function(e,t){return DM.set(e,t),e},VM=function(e){return DM.get(e)},HM=function(e){DM.delete(e)};function BM(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void(OS||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 _M(e){if(BM()){var t=function(){var e=BM();if(e&&"__xstate__"in e)return e.__xstate__}();t&&t.register(e)}}function jM(e,t){void 0===t&&(t={});var n=e.initialState,r=new Set,o=[],i=!1,s=function(e){var t;return sS(((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[XS]=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=oM(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 FM,qM={sync:!1,autoForward:!1};!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(FM||(FM={}));var WM=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=FM.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(e,t){if(KS(e))return r.batch(e),r.state;var n=eM(QS(e,t));if(r.status===FM.Stopped)return OS||US(!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!==FM.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===iS.Parent||r.parent.id===t),s=i?r.parent:GS(t)?t===iS.Internal?r:r.children.get(t)||VM(t):(o=t)&&"function"==typeof o.send?t:void 0;if(s)if("machine"in s){if(r.status!==FM.Stopped||r.parent!==s||r.state.done){var a=sS(sS({},e),{name:e.name===kS?"".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,"'."));OS||US(!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||lM(e.type,o),s=ZS(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 pS: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===aM):r.send(l._event);break;case mS:r.cancel(e.sendId);break;case uS:if(r.status!==FM.Running)return;var c=e.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[c.id||c.type])break;if(c.type===oS.Invoke){var d=rM(c.src),u=r.machine.options.services?r.machine.options.services[d.type]:void 0,h=c.id,p=c.data;OS||US(!("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(OS||US(!1,"No service found for invocation '".concat(c.src,"' in machine '").concat(r.machine.id,"'.")));var m=p?jS(p,t,n):void 0;if("string"==typeof u)return;var g=ZS(u)?u(t,n.data,{data:m,src:d,meta:c.meta}):u;if(!g)return;var b=void 0;YS(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 vS:var v=e,y=v.label,w=v.value;y?r.logger(y,w):r.logger(w);break;default:OS||US(!1,"No implementation found for action type '".concat(e.type,"'"))}};var o=sS(sS({},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 NM({deferEvents:this.options.deferEvents}),this.sessionId=IM()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this;return this._initialState?this._initialState:gM(this,(function(){return e._initialState=e.machine.initialState,e._initialState}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return OS||US(this.status!==FM.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=lS(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!==aM||!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=lS(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=lS(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=lS(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?jS(v.doneData,e.context,t):void 0;this._doneEvent=pM(this.id,y);try{for(var w=lS(this.doneListeners),C=w.next();!C.done;C=w.next()){(0,C.value)(this._doneEvent)}}catch(e){l={error:e}}finally{try{C&&!C.done&&(c=w.return)&&c.call(w)}finally{if(l)throw l.error}}this._stop(),this._stopChildren(),HM(this.sessionId)}},e.prototype.onTransition=function(e){return this.listeners.add(e),this.status===FM.Running&&e(this.state,this.state.event),this},e.prototype.subscribe=function(e,t,n){var r=this,o=oM(e,t,n);this.listeners.add(o.next),this.status!==FM.NotStarted&&o.next(this.state);var i=function(){r.doneListeners.delete(i),r.stopListeners.delete(i),o.complete()};return this.status===FM.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===FM.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===FM.Running)return this;this.machine._init(),zM(this.sessionId,this),this.initialized=!0,this.status=FM.Running;var n=void 0===e?this.initialState:gM(this,(function(){return"object"==typeof(n=e)&&null!==n&&"value"in n&&"_event"in n?t.machine.resolveState(e):t.machine.resolveState(AM.from(e,t.machine.context));var n}));return this.options.devTools&&this.attachDev(),this.scheduler.initialize((function(){t.update(n,aM)})),this},e.prototype._stopChildren=function(){this.children.forEach((function(e){ZS(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=lS(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=lS(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=lS(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=lS(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=FM.Stopped,this._initialState=void 0;try{for(var y=lS(Object.keys(this.delayedEventsMap)),w=y.next();!w.done;w=y.next()){var C=w.value;this.clock.clearTimeout(this.delayedEventsMap[C])}}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 NM({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=gM(e,(function(){var t=HS(dS([],cS(e.state.configuration),!1).sort((function(e,t){return t.order-e.order})).map((function(t){return dM(t.onExit,e.machine.options.actions)}))),r=cS(mM(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 AM({value:e.state.value,context:i,_event:n,_sessionid:e.sessionId,historyValue:void 0,history:e.state,actions:o.filter((function(e){return!sM(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(),HM(e.sessionId)}})),this},e.prototype.batch=function(e){var t=this;if(this.status===FM.NotStarted&&this.options.deferEvents)OS||US(!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!==FM.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=gM(t,(function(){return t.machine.transition(i,r,void 0,n||void 0)})),a.push.apply(a,dS([],cS(t.machine.config.predictableActionArguments?i.actions:i.actions.map((function(e){return function(e,t){var n=e.exec;return sS(sS({},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=lS(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(xS)&&!this.state.nextEvents.some((function(e){return 0===e.indexOf(xS)})))throw r.data.data;return gM(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=lS(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),ZS(t.stop)&&t.stop())},e.prototype.spawn=function(e,t,n){if(this.status!==FM.Running)return vM(e,t);if(FS(e))return this.spawnPromise(Promise.resolve(e),t);if(ZS(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&&ZS(e.subscribe)}catch(e){return!1}}(e))return this.spawnObservable(e,t);if(YS(e))return this.spawnMachine(e,sS(sS({},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,sS(sS({},this.options),{parent:this,id:n.id||t.id})),i=sS(sS({},qM),n);i.sync&&o.onTransition((function(e){r.send($S,{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=jM(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(pM(t,e),{origin:t})))}),(function(e){if(!i){o.removeChild(t);var n=fM(t,e);try{o.send(eM(n,{origin:t}))}catch(r){!function(e,t,n){if(!OS){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=oM(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}})[XS]=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(fM(t,e))}if(FS(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=oM(e);return l.add(t.next),{unsubscribe:function(){l.delete(t.next)}}},stop:function(){s=!0,ZS(o)&&o()},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[XS]=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(fM(t,e),{origin:t}))}),(function(){o.removeChild(t),o.send(eM(pM(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}}})[XS]=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 OS||US(!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}}})[XS]=function(){return this},n))},e.prototype.attachDev=function(){var e=BM();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(sS(sS({name:this.id,autoPause:!0,stateSanitizer:function(e){return{value:e.value,context:e.context,actions:e.actions}}},t),{features:sS({jump:!1,skip:!1},t?t.features:void 0)}),this.machine),this.devTools.init(this.state)}_M(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[XS]=function(){return this},e.prototype.getSnapshot=function(){return this.status===FM.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=UM,e}();function UM(e,t){return new WM(e,t)}function KM(e){if("string"==typeof e){var t={type:e,toString:function(){return e}};return t}return e}function ZM(e){return sS(sS({type:wS},e),{toJSON:function(){e.onDone,e.onError;var t=aS(e,["onDone","onError"]);return sS(sS({},t),{type:wS,src:KM(e.src)})}})}var GM="",JM="*",XM={},YM=function(e){return"#"===e[0]},QM=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||dS([this.machine.key],cS(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,OS||US(!("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?PS(this.config.states,(function(t,n){var r,o=new e(t,{},void 0,{parent:s,key:n});return Object.assign(s.idMap,sS(((r={})[o.id]=o,r),o.idMap)),o})):XM;var a=0;!function e(t){var n,r;t.order=a++;try{for(var o=lS(wM(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===GM})):GM in this.config.on),this.strict=!!this.config.strict,this.onEntry=_S(this.config.entry||this.config.onEntry).map((function(e){return cM(e)})),this.onExit=_S(this.config.exit||this.config.onExit).map((function(e){return cM(e)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=_S(this.config.invoke).map((function(e,t){var n,r;if(YS(e)){var o=iM(s.id,t);return s.machine.options.services=sS(((n={})[o]=e,n),s.machine.options.services),ZM({src:o,id:o})}if(GS(e.src)){o=e.id||iM(s.id,t);return ZM(sS(sS({},e),{id:o,src:e.src}))}if(YS(e.src)||ZS(e.src)){o=e.id||iM(s.id,t);return s.machine.options.services=sS(((r={})[o]=e.src,r),s.machine.options.services),ZM(sS(sS({id:o},e),{src:o}))}var i=e.src;return ZM(sS(sS({id:iM(s.id,t)},e),{src:i}))})),this.activities=_S(this.config.activities).concat(this.invoke).map((function(e){return uM(e)})),this.transition=this.transition.bind(this),this.tags=_S(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:sS(sS({},o),t.actions),activities:sS(sS({},i),t.activities),guards:sS(sS({},s),t.guards),services:sS(sS({},a),t.services),delays:sS(sS({},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 ZS(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:PS(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===GM,n=this.transitions.filter((function(n){var r=n.eventType===e;return t?r:r||n.eventType===JM}));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(oS.After,"(").concat(e,")").concat(n)}(ZS(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:ZS(e)?e:QS(e),delay:t?t.delay:void 0,id:t&&void 0!==t.id?t.id:ZS(e)?e.name:AS(e)}}(r,{delay:t})),e.onExit.push({type:mS,sendId:r}),r},r=KS(t)?t.map((function(e,t){var r=n(e.delay,t);return sS(sS({},e),{event:r})})):HS(Object.keys(t).map((function(e,r){var o=t[e],i=GS(o)?{target:o}:o,s=isNaN(+e)?e:+e,a=n(s,r);return _S(i).map((function(e){return sS(sS({},e),{event:a,delay:s})}))})));return r.map((function(t){var n=t.delay;return sS(sS({},e.formatTransition(t)),{delay:n})}))},e.prototype.getStateNodes=function(e){var t,n=this;if(!e)return[];var r=e instanceof AM?e.value:NS(e,this.delimiter);if(GS(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,dS([],cS(HS(i.map((function(e){return n.getStateNode(e).getStateNodes(r[e])})))),!1)),s},e.prototype.handles=function(e){var t=AS(e);return this.events.includes(t)},e.prototype.resolveState=function(e){var t=e instanceof AM?e:AM.create(e),n=Array.from(kM([],this.getStateNodes(t.value)));return new AM(sS(sS({},t),{value:this.resolve(t.value),configuration:n,done:TM(n,this),tags:OM(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=lS(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=HS(u.map((function(e){return e.transitions})));if(!u.some((function(e){return e.transitions.length>0})))return this.next(t,n);var p=HS(Object.keys(i).map((function(e){return i[e].configuration})));return{transitions:h,exitSet:HS(u.map((function(e){return e.exitSet}))),configuration:p,source:t,actions:HS(Object.keys(i).map((function(e){return i[e].actions})))}},e.prototype._transition=function(e,t,n){return GS(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=lS(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||(GS(p)&&YM(p)?e.matches(NS(this.getStateNodeById(p).path,this.delimiter)):LS(NS(p,this.delimiter),zS(this.path.slice(0,-2))(e.value))),g=!1;try{g=!h||nM(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,dS([],cS(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=HS(l.map((function(t){return i.getRelativeStateNodes(t,e.historyValue)})));return{transitions:[o],exitSet:!!o.internal?[]:HS(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?kM([],this.getStateNodes(i.value)):[],p=new Set;try{for(var f=lS(Array.from(e).sort((function(e,t){return e.order-t.order}))),m=f.next();!m.done;m=f.next()){(!EM(h,v=m.value)||EM(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=lS(h),b=g.next();!b.done;b=g.next()){var v;EM(e,v=b.value)&&!EM(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),C=HS(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?jS(e.doneData,r,o):void 0));var s=i.parent;return"parallel"===s.type&&CM(s).every((function(e){return TM(n.configuration,e)}))&&t.push(hM(s.id)),t}))),x=y.map((function(e){var t=e.onEntry,n=e.activities.map((function(e){return function(e){var t=uM(e);return{type:oS.Start,activity:t,exec:void 0}}(e)}));return{type:"entry",actions:dM(s?dS(dS([],cS(t),!1),cS(n),!1):dS(dS([],cS(n),!1),cS(t),!1),u.machine.options.actions)}})).concat({type:"state_done",actions:C.map((function(e){return function(e,t){return{type:pS,event:"function"==typeof e?e:QS(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:dM(dS(dS([],cS(e.onExit),!1),cS(e.activities.map((function(e){return function(e){var t=ZS(e)?e:uM(e);return{type:oS.Stop,activity:t,exec:void 0}}(e)}))),!1),u.machine.options.actions)}})).concat({type:"transition",actions:dM(n.actions,this.machine.options.actions)}).concat(x);if(t){var $=dM(HS(dS([],cS(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!sM(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 AM)o=void 0===n?e:this.resolveState(AM.from(e,n));else{var a=GS(e)?this.resolve(DS(this.getResolvedPath(e))):this.resolve(e),l=null!=n?n:this.machine.context;o=this.resolveState(AM.from(a,l))}if(!OS&&s.name===JM)throw new Error("An event cannot have the wildcard type ('".concat(JM,"')"));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=kM([],this.getStateNodes(o.value)),u=c.configuration.length?kM(d,c.configuration):d;return c.configuration=dS([],cS(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,dS([],cS(i),!1)),e},e.prototype.resolveTransition=function(e,t,n,r,o){var i,s,a,l,c=this;void 0===o&&(o=aM);var d=e.configuration,u=!t||e.transitions.length>0,h=u?e.configuration:t?t.configuration:[],p=TM(h,this),f=u?MM(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?sS({},t.activities):{};try{for(var v=lS(g),y=v.next();!y.done;y=v.next()){var w=y.value;try{for(var C=(a=void 0,lS(w.actions)),x=C.next();!x.done;x=C.next()){var k=x.value;k.type===uS?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{x&&!x.done&&(l=C.return)&&l.call(C)}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=cS(mM(this,t,n,o,g,r,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),E=M[0],T=M[1],O=cS(function(e,t){var n,r,o=cS([[],[]],2),i=o[0],s=o[1];try{for(var a=lS(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,sM),2),L=O[0],A=O[1],R=E.filter((function(e){var t;return e.type===uS&&(null===(t=e.activity)||void 0===t?void 0:t.type)===wS})),N=R.reduce((function(e,t){return e[t.activity.id]=function(e,t,n,r){var o,i=rM(e.src),s=null===(o=null==t?void 0:t.options.services)||void 0===o?void 0:o[i.type],a=e.data?jS(e.data,n,r):void 0,l=s?vM(s,e.id,a):bM(e.id);return l.meta=e,l}(t.activity,c.machine,T,o),e}),t?sS({},t.children):{}),D=new AM({value:f||t.value,context:T,_event:o,_sessionid:t?t._sessionid:null,historyValue:f?m?($=m,S=f,{current:S,states:qS($,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:N,done:p,tags:OM(h),machine:this}),P=n!==T;D.changed=o.name===$S||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!==GM))return D;var V=D;if(!p)for(z&&(V=this.resolveRaisedTransition(V,{type:gS},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||!LM(V.value,I.value):void 0);return V.changed=B,V.history=I,V},e.prototype.getStateNode=function(e){if(YM(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=YM(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&&YM(e))try{return this.getStateNodeById(e.slice(1))}catch(e){}for(var t=RS(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||XM;switch(this.type){case"parallel":return PS(this.initialStateValue,(function(t,r){return t?n.getStateNode(r).resolve(e[r]||t):XM}));case"compound":if(GS(e)){var r=this.getStateNode(e);return"parallel"===r.type||"compound"===r.type?((t={})[e]=r.initialStateValue,t):e}return Object.keys(e).length?PS(e,(function(e,t){return e?n.getStateNode(t).resolve(e):XM})):this.initialStateValue||{};default:return e||XM}},e.prototype.getResolvedPath=function(e){if(YM(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 RS(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=IS(this.states,(function(e){return e.initialStateValue||XM}),(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=yM(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=GS(t.target)&&YM(t.target)?DS(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 yM(this)?[this]:"compound"!==this.type||this.initial?HS(VS(this.initialStateValue).map((function(t){return e.getFromRelativePath(t)}))):(OS||US(!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=cS(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:IS(this.states,(function(t,n){if(!e)return t.historyValue();var r=GS(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?HS(VS(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=lS(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 GS(s)?[n.getStateNode(s)]:HS(VS(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=HS(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=lS(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,lS(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(!GS(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 _S(e)}(e.target),r="internal"in e?e.internal:!n||n.some((function(e){return GS(e)&&e[0]===t.delimiter})),o=this.machine.options.guards,i=this.resolveTarget(n),s=sS(sS({},e),{actions:dM(_S(e.actions)),cond:JS(e.cond,o),target:i,source:this,internal:r,eventType:e.event,toJSON:function(){return sS(sS({},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=JM,s=o[i],a=void 0===s?[]:s,l=aS(o,["*"]);n=HS(Object.keys(l).map((function(e){OS||e!==GM||US(!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 OS||function(e,t,n){var r=n.slice(0,-1).some((function(e){return!("cond"in e)&&!("in"in e)&&(GS(e.target)||YS(e.target))})),o=t===GM?"the transient event":"event '".concat(t,"'");US(!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(JM,a)))}else n=[];var c=this.config.always?tM("",this.config.always):[],d=this.config.onDone?tM(String(hM(this.id)),this.config.onDone):[];OS||US(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var u=HS(this.invoke.map((function(e){var t=[];return e.onDone&&t.push.apply(t,dS([],cS(tM(String(pM(e.id)),e.onDone)),!1)),e.onError&&t.push.apply(t,dS([],cS(tM(String(fM(e.id)),e.onError)),!1)),t}))),h=this.after,p=HS(dS(dS(dS(dS([],cS(d),!1),cS(u),!1),cS(n),!1),cS(c),!1).map((function(e){return _S(e).map((function(e){return r.formatTransition(e)}))})));try{for(var f=lS(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:bS,assignment:e}};!function(e){e[e.Effect=1]="Effect",e[e.LayoutEffect=2]="LayoutEffect"}(eE||(eE={}));var nE="undefined"!=typeof document?de:function(){};function rE(e){var t=ee.useRef();return t.current||(t.current={v:e()}),t.current.v}var oE=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){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 sE=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},aE=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 lE(e,t){(0,e.exec)(t.context,t._event.data,{action:e,state:t,_event:t._event})()}function cE(e){var t=se([]),n=se([]);nE((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=sE(function(e,t){var n,r,o=oE([[],[]],2),i=o[0],s=o[1];try{for(var a=iE(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,aE([],sE(a.map((function(t){return[t,e]}))),!1)),(o=n.current).push.apply(o,aE([],sE(l.map((function(t){return[t,e]}))),!1))}}));return function(){r.unsubscribe()}}),[]),nE((function(){for(;n.current.length;){var e=sE(n.current.shift(),2);lE(e[0],e[1])}})),ce((function(){for(;t.current.length;){var e=sE(t.current.shift(),2);lE(e[0],e[1])}}))}var dE=function(){return dE=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},dE.apply(this,arguments)},uE=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 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};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=rE((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=uE(t,["context","guards","actions","activities","services","delays","state"]),p=rE((function(){var e={context:i,guards:s,actions:a,activities:l,services:c,delays:d};return UM(r.withConfig(e,(function(){return dE(dE({},r.context),i)})),dE({deferEvents:!0},h))}));return nE((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]),nE((function(){return p.start(u?AM.create(u):void 0),function(){p.stop()}}),[]),nE((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]),cE(p),p}(e,t,n),o=pE(ae((function(){var e=r.machine.initialState;return t.state?AM.create(t.state):e})),2),i=o[0],s=o[1];return[i,r.send,r]}function mE(){return mE=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},mE.apply(null,arguments)}function gE(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 bE={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(bE.str(e)||bE.num(e))return e===t;if(bE.obj(e)&&bE.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!bE.und(n)||e===t}};function vE(e,t){return bE.und(e)||bE.nul(e)?t:e}function yE(e){return bE.und(e)?[]:bE.arr(e)?e:[e]}function wE(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 bE.fun(e)?e(...n):e}function CE(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,gE(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(bE.und(t))return mE({to:t},e);const n=Object.keys(e).reduce(((n,r)=>bE.und(t[r])?mE({},n,{[r]:e[r]}):n),{});return mE({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 kE 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 $E 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 SE,ME;let EE,TE=e=>"undefined"!=typeof window?window.requestAnimationFrame(e):-1;let OE,LE=()=>Date.now();class AE extends $E{constructor(e,t){super(),this.update=void 0,this.payload=e.style?mE({},e,{style:OE(e.style)}):e,this.update=t,this.attach()}}let RE=!1;const NE=new Set,DE=()=>{if(!RE)return!1;let e=LE();for(let t of NE){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||(NE.delete(t),t.stop(!0))}return NE.size?TE(DE):RE=!1,RE};function PE(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return PE({range:e,output:t,extrapolate:n});if(EE&&"string"==typeof e.output[0])return EE(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 IE extends kE{constructor(e,t,n,r){super(),this.calc=void 0,this.payload=e instanceof kE&&!(e instanceof IE)?e.getPayload():Array.isArray(e)?e:[e],this.calc=PE(t,n,r)}getValue(){return this.calc(...this.payload.map((e=>e.getValue())))}updateConfig(e,t,n){this.calc=PE(e,t,n)}interpolate(e,t,n){return new IE(this,e,t,n)}}const zE=(e,t,n)=>e&&new IE(e,t,n);function VE(e,t){"update"in e?t.add(e):e.getChildren().forEach((e=>VE(e,t)))}class HE 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&&VE(this,this.animatedStyles),this.animatedStyles.forEach((e=>e.update()))}clearStyles(){this.animatedStyles.clear()}getValue(){return this.value}interpolate(e,t,n){return new IE(this,e,t,n)}}class BE extends kE{constructor(e){super(),this.payload=e.map((e=>new HE(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 IE(this,e,t)}}let _E=0,jE=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=_E++}update(e){if(!e)return this;const t=CE(e),n=t.delay,r=void 0===n?0:n,o=t.to,i=gE(t,["delay","to"]);if(bE.arr(o)||bE.fun(o))this.queue.push(mE({},i,{delay:r,to:o}));else if(o){let e={};Object.entries(o).forEach((t=>{let n=t[0],o=t[1];const s=mE({to:{[n]:o},delay:wE(r,n)},i),a=e[s.delay]&&e[s.delay].to;e[s.delay]=mE({},e[s.delay],s,{to:mE({},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;bE.obj(n)&&(this.merged=mE({},n,this.merged)),bE.obj(o)&&(this.merged=mE({},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=gE(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=bE.arr(s.to)||bE.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 bE.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,NE.has(t)||NE.add(t),RE||(RE=!0,TE(DE));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,NE.has(t)&&NE.delete(t)),this}runAsync(e,t){var n=this;e.delay;let r=gE(e,["delay"]);const o=this.local;let i=Promise.resolve(void 0);if(bE.arr(r.to))for(let e=0;e<r.to.length;e++){const t=e,n=mE({},r,CE(r.to[t]));bE.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(bE.fun(r.to)){let e,t=0;i=i.then((()=>r.to((n=>{const i=mE({},r,CE(n));if(bE.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=mE({},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=mE({},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=bE.num(o),l=bE.str(o)&&!o.startsWith("#")&&!/\d/.test(o)&&!ME[o],c=bE.arr(o),h=!s&&!c&&!l;let f=bE.und(r[n])?o:r[n],m=s||c||l?o:1,g=wE(a,n);p&&(m=p.animations[n].parent);let b,v=i.parent,y=i.interpolation,w=yE(p?m.getPayload():m),C=o;h&&(C=EE({range:[0,1],output:[o,o]})(1));let x=y&&y.getValue();const k=!bE.und(v)&&i.animatedValues.some((e=>!e.done)),$=!bE.equ(C,x),S=!bE.equ(C,i.previous),M=!bE.equ(g,i.config);if(d||S&&$||M){if(s||l)v=y=i.parent||new HE(f);else if(c)v=y=i.parent||new BE(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 HE(0);const t={output:[e,o]};i.interpolation?(y=i.interpolation,i.interpolation.updateConfig(t)):y=v.interpolate(t)}return w=yE(p?m.getPayload():m),b=yE(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=LE(),e.done=!1,e.animatedStyles.clear()})),wE(u,n)&&v.setValue(h?m:o,!1),mE({},e,{[n]:mE({},i,{name:n,parent:v,interpolation:y,animatedValues:b,toValues:w,previous:C,config:g,fromValues:yE(v.getValue()),immediate:wE(u,n),initialVelocity:vE(g.velocity,0),clamp:vE(g.clamp,!1),precision:vE(g.precision,.01),tension:vE(g.tension,170),friction:vE(g.friction,26),mass:vE(g.mass,1),duration:g.duration,easing:vE(g.easing,(e=>e)),decay:g.decay})})}return $?e:(h&&(v.setValue(1,!1),y.updateConfig({output:[C,C]})),v.done=!0,this.hasChanged=!0,mE({},e,{[n]:mE({},e[n],{previous:C})}))}),this.animations),this.hasChanged){this.configs=Object.values(this.animations),this.values={},this.interpolations={};for(let e in this.animations)this.interpolations[e]=this.animations[e].interpolation,this.values[e]=this.animations[e].interpolation.getValue()}return this}destroy(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0}};const FE=e=>{const t=bE.fun(e),n=((e,t)=>{const n=se(!1),r=se(),o=bE.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 jE,s=o?wE(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?wE(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 qE extends $E{constructor(e){void 0===e&&(e={}),super(),!e.transform||e.transform instanceof xE||(e=SE.transform(e)),this.payload=e}}const WE={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},UE="[-+]?\\d*\\.?\\d+",KE=UE+"%";function ZE(){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 GE=new RegExp("rgb"+ZE(UE,UE,UE)),JE=new RegExp("rgba"+ZE(UE,UE,UE,UE)),XE=new RegExp("hsl"+ZE(UE,KE,KE)),YE=new RegExp("hsla"+ZE(UE,KE,KE,UE)),QE=/^#([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})$/,nT=/^#([0-9a-fA-F]{8})$/;function rT(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 oT(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=rT(o,r,e+1/3),s=rT(o,r,e),a=rT(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*s)<<16|Math.round(255*a)<<8}function iT(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function sT(e){return(parseFloat(e)%360+360)%360/360}function aT(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function lT(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function cT(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:WE.hasOwnProperty(e)?WE[e]:(t=GE.exec(e))?(iT(t[1])<<24|iT(t[2])<<16|iT(t[3])<<8|255)>>>0:(t=JE.exec(e))?(iT(t[1])<<24|iT(t[2])<<16|iT(t[3])<<8|aT(t[4]))>>>0:(t=QE.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=nT.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=XE.exec(e))?(255|oT(sT(t[1]),lT(t[2]),lT(t[3])))>>>0:(t=YE.exec(e))?(oT(sT(t[1]),lT(t[2]),lT(t[3]))|aT(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 dT=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,uT=/(#(?:[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(WE).join("|")})`,"g");let pT={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 mT(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pT.hasOwnProperty(e)&&pT[e]?(""+t).trim():t+"px"}pT=Object.keys(pT).reduce(((e,t)=>(fT.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),pT);const gT={};var bT,vT;bT=e=>new qE(e),OE=bT,vT=e=>{const t=e.output.map((e=>e.replace(uT,cT))).map((e=>e.replace(hT,cT))),n=t[0].match(dT).map((()=>[]));t.forEach((e=>{e.match(dT).forEach(((e,t)=>n[t].push(+e)))}));const r=t[0].match(dT).map(((t,r)=>PE(mE({},e,{output:n[r]}))));return e=>{let n=0;return t[0].replace(dT,(()=>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})`))}},EE=vT,ME=WE,function(e,t){SE={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=gE(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=mT(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:gT[t]||(gT[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())));void 0!==e.getAttribute(n)&&e.setAttribute(n,l[t])}}}),(e=>e));var yT;const wT=(yT=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 AE(e,(()=>{let e=!1;s.current&&(e=SE.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=gE(l,["scrollTop","scrollLeft"]),d=(u=e,!bE.fun(u)||u.prototype instanceof te.Component?e=>s.current=function(e,t){return t&&(bE.fun(t)?t(e):bE.obj(t)&&(t.current=e)),e}(e,n):void 0);var u;return te.createElement(e,mE({},c,{ref:d}))})),e=>(bE.arr(e)?e:Object.keys(e)).reduce(((e,t)=>{const n=t;return e[n]=yT(n),e}),yT))(["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 CT(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 kT(e){return Math.hypot.apply(Math,e)}function $T(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function ST(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 MT(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?-ST(t-e,n-t,r)+t:e>n?+ST(e-n,n-t,r)+n:e}function ET(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 TT(){return TT=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},TT.apply(this,arguments)}function OT(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function LT(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AT(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 RT(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 AT(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)?AT(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 NT(){}function DT(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?NT:1===t.length?t[0]:function(){for(var e,n,r=RT(t);!(n=r()).done;){e=n.value.apply(this,arguments)||e}return e}}function PT(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 IT(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 zT(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]=zT(e[s],a);break;case"boolean":a&&(n[s]=e[s])}}return n}var VT=TT({},{threshold:function(e){return void 0===e&&(e=0),PT(e)},rubberband:function(e){switch(void 0===e&&(e=0),e){case!0:return PT(.15);case!1:return PT(0);default:return PT(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:PT(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 VT.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]]}}),HT="undefined"!=typeof window&&window.document&&window.document.createElement,BT={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=HT?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}}},_T=TT({},VT,{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=PT(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),PT(e)},swipeDistance:function(e){return void 0===e&&(e=60),PT(e)},delay:function(e){switch(void 0===e&&(e=0),e){case!0:return 180;case!1:return 0;default:return e}}});function jT(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={}),zT(e,BT)}({domTarget:t,eventOptions:n,window:r,enabled:o});return s.drag=function(e){return void 0===e&&(e={}),zT(e,_T)}(i),s}function FT(e){return TT({_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:NT,canceled:!1,memo:void 0,args:void 0},e)}function qT(){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:FT({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:FT({da:[0,0],vdva:[0,0],origin:void 0,turns:0}),wheel:FT({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),move:FT({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),scroll:FT({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0})}}var WT=new Map,UT=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=TT({},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]?KT(p[0],i[0]):d[0],m=!1===d[1]?KT(p[1],i[1]):d[1],g=this.checkIntentionality([f,m],p);if(g._blocked)return TT({},g,{_movement:p,delta:[0,0]});var b,v,y,w,C=g._intentional,x=p;(!1!==C[0]&&!1===d[0]&&(v=IT(n,this.state),b=IT(r,this.state),l[0]=v[0],a[0]=b[0]),!1!==C[1]&&!1===d[1])&&(v=null!=(y=v)?y:IT(n,this.state),b=null!=(w=b)?w:IT(r,this.state),l[1]=v[1],a[1]=b[1]);var k=[!1!==C[0]?p[0]-C[0]:l[0],!1!==C[1]?p[1]-C[1]:l[1]],$=CT(k,u),S=c?o:[0,0];return k=ZT(a,CT(k,l),S),TT({},g,{intentional:!1!==C[0]||!1!==C[1],_initial:l,_movement:x,movement:k,values:e,offset:ZT(a,$,S),delta:xT(k,h)})},t.clean=function(){this.clearTimeout()},ET(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 KT(e,t){return Math.abs(e)>=t&&$T(e)*t}function ZT(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[MT(r,l,c,i),MT(o,u,h,s)]}function GT(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 JT(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,TT({},t,{event:n})].concat(o))}}var XT=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=RT(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],JT(c[1],TT({},t.state.shared,{args:r})))}return t.config.domTarget?function(e,t){var n=e.config,r=e.domListeners,o=QT(n);if(!o)throw new Error("domTarget must be defined");var i=n.eventOptions;nO(o,YT(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,DT.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]=DT.apply(void 0,d)}return r}(t,e)},this.effect=function(){return t.config.domTarget&&t.bind(),t.clean},this.clean=function(){var e=QT(t.config),n=t.config.eventOptions;e&&nO(e,YT(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){nO(n,o[i],r)}e.windowListeners={}}(t)},this.state=qT(),this.timeouts={},this.domListeners=[],this.windowListeners={}};function YT(e){return void 0===e&&(e=[]),e.splice(0,e.length)}function QT(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=RT(t);!(r=o()).done;){var i=r.value,s=i[0],a=i[1];e.addEventListener(s,a,n)}}function nO(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,o=RT(t);!(r=o()).done;){var i=r.value,s=i[0],a=i[1];e.removeEventListener(s,a,n)}}function rO(e,t,n){void 0===n&&(n={});var r=function(e){var t=new Set;e.drag&&t.add(WT.get("drag"));e.wheel&&t.add(WT.get("wheel"));e.scroll&&t.add(WT.get("scroll"));e.move&&t.add(WT.get("move"));e.pinch&&t.add(WT.get("pinch"));e.hover&&t.add(WT.get("hover"));return t}(e),o=te.useMemo((function(){return new XT(r)}),[]);return o.config=t,o.handlers=e,o.nativeRefs=n,te.useEffect(o.effect,[]),o.config.domTarget?oO:o.bind}function oO(){"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 iO=function(e){function t(){return e.apply(this,arguments)||this}OT(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=kT(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:kT(e),direction:l}}(n.movement,n.delta,r))}return n},n.mapStateValues=function(e){return{xy:e.values,vxvy:e.velocities}},t}(UT);function sO(e){if("touches"in e){var t=e.targetTouches,n=e.changedTouches;return t.length>0?t:n}return null}function aO(e){var t="buttons"in e?e.buttons:0,n=sO(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 lO(e){var t=sO(e),n=t?t[0]:e;return[n.clientX,n.clientY]}var cO=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&&(nO(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(LT(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=aO(e);if(n.down){t.updateSharedState(n);var r=lO(e),o=t.getKinematics(r,e),i=GT(LT(t),e),s=t.state._isTap,a=kT(o._movement);s&&a>=3&&(s=!1),t.updateGestureState(TT({},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=TT({},GT(LT(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]=$T(o)),!1!==u&&Math.abs(i)>f&&Math.abs(l)>b&&(y[1]=$T(i))),t.updateGestureState(TT({},v,{tap:n,swipe:y})),t.fireGestureHandler(!0===n)}},t.clean=function(){e.prototype.clean.call(LT(t)),t.state._delayedEvent=!1,function(e,t){var n=e.config,r=e.windowListeners;n.window&&(nO(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}OT(t,e);var n=t.prototype;return n.startDrag=function(e){var t=lO(e);this.updateSharedState(aO(e)),this.updateGestureState(TT({},function(e,t,n){var r=e.state.offset,o=n.timeStamp;return TT({},qT()[e.stateKey],{_active:!0,values:t,initial:t,offset:r,lastOffset:r,startTime:o})}(this,t,e),GT(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}(iO);function dO(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(!dO(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(!dO(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||dO(e[o[r]],t[o[r]])))return!1;return!0}return e!=e&&t!=t}function uO(e,t){try{return dO(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={}),WT.set("drag",cO);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}}(jT,uO)),rO({drag:e},n.current(t))}
2804
+ ***************************************************************************** */var iS,sS,aS=function(){return aS=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},aS.apply(this,arguments)};function lS(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 cS(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 dS(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 uS(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"}(iS||(iS={})),function(e){e.Parent="#_parent",e.Internal="#_internal"}(sS||(sS={}));var hS=iS.Start,pS=iS.Stop,fS=iS.Raise,mS=iS.Send,gS=iS.Cancel,bS=iS.NullEvent,vS=iS.Assign;iS.After,iS.DoneState;var yS=iS.Log,wS=iS.Init,CS=iS.Invoke;iS.ErrorExecution;var xS,kS=iS.ErrorPlatform,$S=iS.ErrorCustom,SS=iS.Update,MS=iS.Choose,ES=iS.Pure,TS={},OS="xstate.guard",LS="production"===process.env.NODE_ENV;function AS(e,t,n){void 0===n&&(n=".");var r=DS(e,n),o=DS(t,n);return JS(o)?!!JS(r)&&o===r:JS(r)?r in o:Object.keys(r).every((function(e){return e in o&&AS(r[e],o[e])}))}function RS(e){try{return JS(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 NS(e,t){try{return ZS(e)?e:e.toString().split(t)}catch(t){throw new Error("'".concat(e,"' is not a valid state path."))}}function DS(e,t){return"object"==typeof(n=e)&&"value"in n&&"context"in n&&"event"in n&&"_event"in n?e.value:ZS(e)?PS(e):"string"!=typeof e?e:PS(NS(e,t));var n}function PS(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 IS(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 zS(e,t,n){var r,o,i={};try{for(var s=cS(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 VS=function(e){return function(t){var n,r,o=t;try{for(var i=cS(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 HS(e){return e?JS(e)?[[e]]:BS(Object.keys(e).map((function(t){var n=e[t];return"string"==typeof n||n&&Object.keys(n).length?HS(e[t]).map((function(e){return[t].concat(e)})):[[t]]}))):[[]]}function BS(e){var t;return(t=[]).concat.apply(t,uS([],dS(e),!1))}function _S(e){return ZS(e)?e:[e]}function jS(e){return void 0===e?[]:_S(e)}function FS(e,t,n){var r,o;if(GS(e))return e(t,n.data);var i={};try{for(var s=cS(Object.keys(e)),a=s.next();!a.done;a=s.next()){var l=a.value,c=e[l];GS(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 qS(e){return e instanceof Promise||!(null===e||!GS(e)&&"object"!=typeof e||!GS(e.then))}function WS(e,t){return IS(e.states,(function(e,n){if(e){var r=(JS(t)?void 0:t[n])||(e?e.current:void 0);if(r)return{current:r,states:WS(e,r)}}}))}function US(e,t,n,r){LS||KS(!!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(GS(s))l=s(e,t.data,a);else try{for(var c=cS(Object.keys(s)),d=c.next();!d.done;d=c.next()){var u=d.value,h=s[u];l[u]=GS(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 KS=function(){};function ZS(e){return Array.isArray(e)}function GS(e){return"function"==typeof e}function JS(e){return"string"==typeof e}function XS(e,t){if(e)return JS(e)?{type:OS,name:e,predicate:t?t[e]:void 0}:GS(e)?{type:OS,name:e.name,predicate:e}:e}LS||(KS=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 YS=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function QS(e){return!!e&&"__xstatenode"in e}function eM(e,t){return JS(e)||"number"==typeof e?aS({type:e},t):e}function tM(e,t){if(!JS(e)&&"$$type"in e&&"scxml"===e.$$type)return e;var n=eM(e);return aS({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function nM(e,t){return _S(t).map((function(t){return void 0===t||"string"==typeof t||QS(t)?{target:t,event:e}:aS(aS({},t),{event:e})}))}function rM(e,t,n,r,o){var i=e.options.guards,s={state:o,cond:t,_event:r};if(t.type===OS)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 oM(e){return"string"==typeof e?{type:e}:e}function iM(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 sM(e,t){return"".concat(e,":invocation[").concat(t,"]")}function aM(e){return(e.type===fS||e.type===mS&&e.to===sS.Internal)&&"number"!=typeof e.delay}(xS={})[YS]=function(){return this},xS[Symbol.observable]=function(){return this};var lM=tM({type:wS});function cM(e,t){return t&&t[e]||void 0}function dM(e,t){var n;if(JS(e)||"number"==typeof e)n=GS(r=cM(e,t))?{type:e,exec:r}:r||{type:e,exec:void 0};else if(GS(e))n={type:e.name||e.toString(),exec:e};else{var r;if(GS(r=cM(e.type,t)))n=aS(aS({},e),{exec:r});else if(r){var o=r.type||e.type;n=aS(aS(aS({},r),e),{type:o})}else n=e}return n}var uM=function(e,t){return e?(ZS(e)?e:[e]).map((function(e){return dM(e,t)})):[]};function hM(e){var t=dM(e);return aS(aS({id:JS(e)?e:t.id},t),{type:t.type})}function pM(e,t){var n="".concat(iS.DoneState,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function fM(e,t){var n="".concat(iS.DoneInvoke,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function mM(e,t){var n="".concat(iS.ErrorPlatform,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function gM(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=cS(e),i=o.next();!i.done;i=o.next())for(var s=i.value,a=0;a<s.actions.length;)s.actions[a].type!==vS?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?US(n,r,a,t):n,c=s?[n]:void 0,d=[];function u(o,a){var u;switch(a.type){case fS:var h=function(e,t,n,r){var o,i={_event:n},s=tM(GS(e.event)?e.event(t,n.data,i):e.event);if(JS(e.delay)){var a=r&&r[e.delay];o=GS(a)?a(t,n.data,i):a}else o=GS(e.delay)?e.delay(t,n.data,i):e.delay;return aS(aS({},e),{type:fS,_event:s,delay:o})}(a,l,r,e.options.delays);return i&&"number"==typeof h.delay&&i(h,l,r),h;case mS:var p=function(e,t,n,r){var o,i={_event:n},s=tM(GS(e.event)?e.event(t,n.data,i):e.event);if(JS(e.delay)){var a=r&&r[e.delay];o=GS(a)?a(t,n.data,i):a}else o=GS(e.delay)?e.delay(t,n.data,i):e.delay;var l=GS(e.to)?e.to(t,n.data,i):e.to;return aS(aS({},e),{to:l,_event:s,event:s.data,delay:o})}(a,l,r,e.options.delays);if(!LS){var f=a.delay;KS(!JS(f)||"number"==typeof p.delay,"No delay reference for delay expression '".concat(f,"' was found on machine '").concat(e.id,"'"))}return i&&p.to!==sS.Internal&&("entry"===o?d.push(p):i(p,l,r)),p;case yS:var m=function(e,t,n){return aS(aS({},e),{value:JS(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})}(a,l,r);return null==i||i(m,l,r),m;case MS:if(!(y=null===(u=a.conds.find((function(n){var o=XS(n.cond,e.options.guards);return!o||rM(e,o,l,r,i?void 0:t)})))||void 0===u?void 0:u.actions))return[];var g=dS(gM(e,t,l,r,[{type:o,actions:uM(jS(y),e.options.actions)}],i,s),2),b=g[0],v=g[1];return l=v,null==c||c.push(l),b;case ES:var y;if(!(y=a.get(l,r.data)))return[];var w=dS(gM(e,t,l,r,[{type:o,actions:uM(jS(y),e.options.actions)}],i,s),2),C=w[0],x=w[1];return l=x,null==c||c.push(l),C;case pS:m=function(e,t,n){var r=GS(e.activity)?e.activity(t,n.data):e.activity,o="string"==typeof r?{id:r}:r;return{type:iS.Stop,activity:o}}(a,l,r);return null==i||i(m,n,r),m;case vS:l=US(l,r,[a],i?void 0:t),null==c||c.push(l);break;default:var k=dM(a,e.options.actions),$=k.exec;if(i)i(k,l,r);else if($&&c){var S=c.length-1,M=aS(aS({},k),{exec:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];$.apply(void 0,uS([c[S]],dS(t),!1))}});k=M}return k}}var h=BS(o.map((function(e){var t,n,o=[];try{for(var s=cS(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 bM=function(e,t){return t(e)};function vM(e){var t;return(t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}})[YS]=function(){return this},t}function yM(e,t,n){var r=vM(t);if(r.deferred=!0,QS(e)){var o=r.state=bM(void 0,(function(){return(n?e.withContext(n):e).initialState}));r.getSnapshot=function(){return o}}return r}var wM=function(e){return"atomic"===e.type||"final"===e.type};function CM(e){return Object.keys(e.states).map((function(t){return e.states[t]}))}function xM(e){return CM(e).filter((function(e){return"history"!==e.type}))}function kM(e){var t=[e];return wM(e)?t:t.concat(BS(xM(e).map(kM)))}function $M(e,t){var n,r,o,i,s,a,l,c,d=MM(new Set(e)),u=new Set(t);try{for(var h=cS(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=MM(u);try{for(var g=cS(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,cS(xM(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 C=cS(u),x=C.next();!x.done;x=C.next()){var k;for(f=(k=x.value).parent;f&&!u.has(f);)u.add(f),f=f.parent}}catch(e){l={error:e}}finally{try{x&&!x.done&&(c=C.return)&&c.call(C)}finally{if(l)throw l.error}}return u}function SM(e,t){var n=t.get(e);if(!n)return{};if("compound"===e.type){var r=n[0];if(!r)return{};if(wM(r))return r.key}var o={};return n.forEach((function(e){o[e.key]=SM(e,t)})),o}function MM(e){var t,n,r=new Map;try{for(var o=cS(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 EM(e,t){return SM(e,MM($M([e],t)))}function TM(e,t){return Array.isArray(e)?e.some((function(e){return e===t})):e instanceof Set&&e.has(t)}function OM(e,t){return"compound"===t.type?xM(t).some((function(t){return"final"===t.type&&TM(e,t)})):"parallel"===t.type&&xM(t).every((function(t){return OM(e,t)}))}function LM(e){return new Set(BS(e.map((function(e){return e.tags}))))}function AM(e,t){if(e===t)return!0;if(void 0===e||void 0===t)return!1;if(JS(e)||JS(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((function(n){return AM(e[n],t[n])}))}var RM=function(){function e(e){var t,n,r=this;this.actions=[],this.activities=TS,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||TS,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 uS([],dS(new Set(BS(uS([],dS(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:lM,_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=lM;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="."),JS(e))return[e];var r=Object.keys(e);return r.concat.apply(r,uS([],dS(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=lS(e,["configuration","transitions","tags","machine"]);return aS(aS({},n),{tags:Array.from(t)})},e.prototype.matches=function(e){return AS(e,this.value)},e.prototype.hasTag=function(e){return this.tags.has(e)},e.prototype.can=function(e){var t;LS&&KS(!!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}(),NM={deferEvents:!1},DM=function(){function e(e){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=aS(aS({},NM),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}(),PM=new Map,IM=0,zM=function(){return"x:".concat(IM++)},VM=function(e,t){return PM.set(e,t),e},HM=function(e){return PM.get(e)},BM=function(e){PM.delete(e)};function _M(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void(LS||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 jM(e){if(_M()){var t=function(){var e=_M();if(e&&"__xstate__"in e)return e.__xstate__}();t&&t.register(e)}}function FM(e,t){void 0===t&&(t={});var n=e.initialState,r=new Set,o=[],i=!1,s=function(e){var t;return aS(((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[YS]=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=iM(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 qM,WM={sync:!1,autoForward:!1};!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(qM||(qM={}));var UM=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=qM.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(e,t){if(ZS(e))return r.batch(e),r.state;var n=tM(eM(e,t));if(r.status===qM.Stopped)return LS||KS(!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!==qM.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===sS.Parent||r.parent.id===t),s=i?r.parent:JS(t)?t===sS.Internal?r:r.children.get(t)||HM(t):(o=t)&&"function"==typeof o.send?t:void 0;if(s)if("machine"in s){if(r.status!==qM.Stopped||r.parent!==s||r.state.done){var a=aS(aS({},e),{name:e.name===$S?"".concat(mM(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,"'."));LS||KS(!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||cM(e.type,o),s=GS(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 fS:var a=e;r.defer(a);break;case mS:var l=e;if("number"==typeof l.delay)return void r.defer(l);l.to?r.sendTo(l._event,l.to,n===lM):r.send(l._event);break;case gS:r.cancel(e.sendId);break;case hS:if(r.status!==qM.Running)return;var c=e.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[c.id||c.type])break;if(c.type===iS.Invoke){var d=oM(c.src),u=r.machine.options.services?r.machine.options.services[d.type]:void 0,h=c.id,p=c.data;LS||KS(!("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(LS||KS(!1,"No service found for invocation '".concat(c.src,"' in machine '").concat(r.machine.id,"'.")));var m=p?FS(p,t,n):void 0;if("string"==typeof u)return;var g=GS(u)?u(t,n.data,{data:m,src:d,meta:c.meta}):u;if(!g)return;var b=void 0;QS(g)&&(g=m?g.withContext(m):g,b={autoForward:f}),r.spawn(g,h,b)}else r.spawnActivity(c);break;case pS:r.stopChild(e.activity.id);break;case yS:var v=e,y=v.label,w=v.value;y?r.logger(y,w):r.logger(w);break;default:LS||KS(!1,"No implementation found for action type '".concat(e.type,"'"))}};var o=aS(aS({},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 DM({deferEvents:this.options.deferEvents}),this.sessionId=zM()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this;return this._initialState?this._initialState:bM(this,(function(){return e._initialState=e.machine.initialState,e._initialState}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return LS||KS(this.status!==qM.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=cS(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!==lM||!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=cS(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=cS(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=cS(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?FS(v.doneData,e.context,t):void 0;this._doneEvent=fM(this.id,y);try{for(var w=cS(this.doneListeners),C=w.next();!C.done;C=w.next()){(0,C.value)(this._doneEvent)}}catch(e){l={error:e}}finally{try{C&&!C.done&&(c=w.return)&&c.call(w)}finally{if(l)throw l.error}}this._stop(),this._stopChildren(),BM(this.sessionId)}},e.prototype.onTransition=function(e){return this.listeners.add(e),this.status===qM.Running&&e(this.state,this.state.event),this},e.prototype.subscribe=function(e,t,n){var r=this,o=iM(e,t,n);this.listeners.add(o.next),this.status!==qM.NotStarted&&o.next(this.state);var i=function(){r.doneListeners.delete(i),r.stopListeners.delete(i),o.complete()};return this.status===qM.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===qM.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===qM.Running)return this;this.machine._init(),VM(this.sessionId,this),this.initialized=!0,this.status=qM.Running;var n=void 0===e?this.initialState:bM(this,(function(){return"object"==typeof(n=e)&&null!==n&&"value"in n&&"_event"in n?t.machine.resolveState(e):t.machine.resolveState(RM.from(e,t.machine.context));var n}));return this.options.devTools&&this.attachDev(),this.scheduler.initialize((function(){t.update(n,lM)})),this},e.prototype._stopChildren=function(){this.children.forEach((function(e){GS(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=cS(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=cS(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=cS(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=cS(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=qM.Stopped,this._initialState=void 0;try{for(var y=cS(Object.keys(this.delayedEventsMap)),w=y.next();!w.done;w=y.next()){var C=w.value;this.clock.clearTimeout(this.delayedEventsMap[C])}}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 DM({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=tM({type:"xstate.stop"}),r=bM(e,(function(){var t=BS(uS([],dS(e.state.configuration),!1).sort((function(e,t){return t.order-e.order})).map((function(t){return uM(t.onExit,e.machine.options.actions)}))),r=dS(gM(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 RM({value:e.state.value,context:i,_event:n,_sessionid:e.sessionId,historyValue:void 0,history:e.state,actions:o.filter((function(e){return!aM(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(),BM(e.sessionId)}})),this},e.prototype.batch=function(e){var t=this;if(this.status===qM.NotStarted&&this.options.deferEvents)LS||KS(!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!==qM.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=tM(e);t.forward(r),i=bM(t,(function(){return t.machine.transition(i,r,void 0,n||void 0)})),a.push.apply(a,uS([],dS(t.machine.config.predictableActionArguments?i.actions:i.actions.map((function(e){return function(e,t){var n=e.exec;return aS(aS({},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=cS(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,tM(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=tM(e);if(0===r.name.indexOf(kS)&&!this.state.nextEvents.some((function(e){return 0===e.indexOf(kS)})))throw r.data.data;return bM(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=cS(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),GS(t.stop)&&t.stop())},e.prototype.spawn=function(e,t,n){if(this.status!==qM.Running)return yM(e,t);if(qS(e))return this.spawnPromise(Promise.resolve(e),t);if(GS(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&&GS(e.subscribe)}catch(e){return!1}}(e))return this.spawnObservable(e,t);if(QS(e))return this.spawnMachine(e,aS(aS({},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,aS(aS({},this.options),{parent:this,id:n.id||t.id})),i=aS(aS({},WM),n);i.sync&&o.onTransition((function(e){r.send(SS,{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(tM(e,{origin:o.id}))})).start(),s},e.prototype.spawnBehavior=function(e,t){var n=FM(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(tM(fM(t,e),{origin:t})))}),(function(e){if(!i){o.removeChild(t);var n=mM(t,e);try{o.send(tM(n,{origin:t}))}catch(r){!function(e,t,n){if(!LS){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=iM(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}})[YS]=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(tM(e,{origin:t}))}),(function(e){a.add(e)}))}catch(e){this.send(mM(t,e))}if(qS(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=iM(e);return l.add(t.next),{unsubscribe:function(){l.delete(t.next)}}},stop:function(){s=!0,GS(o)&&o()},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[YS]=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(tM(e,{origin:t}))}),(function(e){o.removeChild(t),o.send(tM(mM(t,e),{origin:t}))}),(function(){o.removeChild(t),o.send(tM(fM(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}}})[YS]=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 LS||KS(!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}}})[YS]=function(){return this},n))},e.prototype.attachDev=function(){var e=_M();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(aS(aS({name:this.id,autoPause:!0,stateSanitizer:function(e){return{value:e.value,context:e.context,actions:e.actions}}},t),{features:aS({jump:!1,skip:!1},t?t.features:void 0)}),this.machine),this.devTools.init(this.state)}jM(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[YS]=function(){return this},e.prototype.getSnapshot=function(){return this.status===qM.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=KM,e}();function KM(e,t){return new UM(e,t)}function ZM(e){if("string"==typeof e){var t={type:e,toString:function(){return e}};return t}return e}function GM(e){return aS(aS({type:CS},e),{toJSON:function(){e.onDone,e.onError;var t=lS(e,["onDone","onError"]);return aS(aS({},t),{type:CS,src:ZM(e.src)})}})}var JM="",XM="*",YM={},QM=function(e){return"#"===e[0]},eE=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||uS([this.machine.key],dS(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,LS||KS(!("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?IS(this.config.states,(function(t,n){var r,o=new e(t,{},void 0,{parent:s,key:n});return Object.assign(s.idMap,aS(((r={})[o.id]=o,r),o.idMap)),o})):YM;var a=0;!function e(t){var n,r;t.order=a++;try{for(var o=cS(CM(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===JM})):JM in this.config.on),this.strict=!!this.config.strict,this.onEntry=jS(this.config.entry||this.config.onEntry).map((function(e){return dM(e)})),this.onExit=jS(this.config.exit||this.config.onExit).map((function(e){return dM(e)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=jS(this.config.invoke).map((function(e,t){var n,r;if(QS(e)){var o=sM(s.id,t);return s.machine.options.services=aS(((n={})[o]=e,n),s.machine.options.services),GM({src:o,id:o})}if(JS(e.src)){o=e.id||sM(s.id,t);return GM(aS(aS({},e),{id:o,src:e.src}))}if(QS(e.src)||GS(e.src)){o=e.id||sM(s.id,t);return s.machine.options.services=aS(((r={})[o]=e.src,r),s.machine.options.services),GM(aS(aS({id:o},e),{src:o}))}var i=e.src;return GM(aS(aS({id:sM(s.id,t)},e),{src:i}))})),this.activities=jS(this.config.activities).concat(this.invoke).map((function(e){return hM(e)})),this.transition=this.transition.bind(this),this.tags=jS(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||kM(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:aS(aS({},o),t.actions),activities:aS(aS({},i),t.activities),guards:aS(aS({},s),t.guards),services:aS(aS({},a),t.services),delays:aS(aS({},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 GS(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:IS(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===JM,n=this.transitions.filter((function(n){var r=n.eventType===e;return t?r:r||n.eventType===XM}));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(iS.After,"(").concat(e,")").concat(n)}(GS(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:mS,event:GS(e)?e:eM(e),delay:t?t.delay:void 0,id:t&&void 0!==t.id?t.id:GS(e)?e.name:RS(e)}}(r,{delay:t})),e.onExit.push({type:gS,sendId:r}),r},r=ZS(t)?t.map((function(e,t){var r=n(e.delay,t);return aS(aS({},e),{event:r})})):BS(Object.keys(t).map((function(e,r){var o=t[e],i=JS(o)?{target:o}:o,s=isNaN(+e)?e:+e,a=n(s,r);return jS(i).map((function(e){return aS(aS({},e),{event:a,delay:s})}))})));return r.map((function(t){var n=t.delay;return aS(aS({},e.formatTransition(t)),{delay:n})}))},e.prototype.getStateNodes=function(e){var t,n=this;if(!e)return[];var r=e instanceof RM?e.value:DS(e,this.delimiter);if(JS(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,uS([],dS(BS(i.map((function(e){return n.getStateNode(e).getStateNodes(r[e])})))),!1)),s},e.prototype.handles=function(e){var t=RS(e);return this.events.includes(t)},e.prototype.resolveState=function(e){var t=e instanceof RM?e:RM.create(e),n=Array.from($M([],this.getStateNodes(t.value)));return new RM(aS(aS({},t),{value:this.resolve(t.value),configuration:n,done:OM(n,this),tags:LM(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=cS(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=BS(u.map((function(e){return e.transitions})));if(!u.some((function(e){return e.transitions.length>0})))return this.next(t,n);var p=BS(Object.keys(i).map((function(e){return i[e].configuration})));return{transitions:h,exitSet:BS(u.map((function(e){return e.exitSet}))),configuration:p,source:t,actions:BS(Object.keys(i).map((function(e){return i[e].actions})))}},e.prototype._transition=function(e,t,n){return JS(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,tM(t))},e.prototype.next=function(e,t){var n,r,o,i=this,s=t.name,a=[],l=[];try{for(var c=cS(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||(JS(p)&&QM(p)?e.matches(DS(this.getStateNodeById(p).path,this.delimiter)):AS(DS(p,this.delimiter),VS(this.path.slice(0,-2))(e.value))),g=!1;try{g=!h||rM(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,uS([],dS(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=BS(l.map((function(t){return i.getRelativeStateNodes(t,e.historyValue)})));return{transitions:[o],exitSet:!!o.internal?[]:BS(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?$M([],this.getStateNodes(i.value)):[],p=new Set;try{for(var f=cS(Array.from(e).sort((function(e,t){return e.order-t.order}))),m=f.next();!m.done;m=f.next()){(!TM(h,v=m.value)||TM(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=cS(h),b=g.next();!b.done;b=g.next()){var v;TM(e,v=b.value)&&!TM(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),C=BS(y.map((function(e){var t=[];if("final"!==e.type)return t;var i=e.parent;if(!i.parent)return t;t.push(pM(e.id,e.doneData),pM(i.id,e.doneData?FS(e.doneData,r,o):void 0));var s=i.parent;return"parallel"===s.type&&xM(s).every((function(e){return OM(n.configuration,e)}))&&t.push(pM(s.id)),t}))),x=y.map((function(e){var t=e.onEntry,n=e.activities.map((function(e){return function(e){var t=hM(e);return{type:iS.Start,activity:t,exec:void 0}}(e)}));return{type:"entry",actions:uM(s?uS(uS([],dS(t),!1),dS(n),!1):uS(uS([],dS(n),!1),dS(t),!1),u.machine.options.actions)}})).concat({type:"state_done",actions:C.map((function(e){return function(e,t){return{type:fS,event:"function"==typeof e?e:eM(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:uM(uS(uS([],dS(e.onExit),!1),dS(e.activities.map((function(e){return function(e){var t=GS(e)?e:hM(e);return{type:iS.Stop,activity:t,exec:void 0}}(e)}))),!1),u.machine.options.actions)}})).concat({type:"transition",actions:uM(n.actions,this.machine.options.actions)}).concat(x);if(t){var $=uM(BS(uS([],dS(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!aM(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=tM(t);if(e instanceof RM)o=void 0===n?e:this.resolveState(RM.from(e,n));else{var a=JS(e)?this.resolve(PS(this.getResolvedPath(e))):this.resolve(e),l=null!=n?n:this.machine.context;o=this.resolveState(RM.from(a,l))}if(!LS&&s.name===XM)throw new Error("An event cannot have the wildcard type ('".concat(XM,"')"));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=$M([],this.getStateNodes(o.value)),u=c.configuration.length?$M(d,c.configuration):d;return c.configuration=uS([],dS(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,uS([],dS(i),!1)),e},e.prototype.resolveTransition=function(e,t,n,r,o){var i,s,a,l,c=this;void 0===o&&(o=lM);var d=e.configuration,u=!t||e.transitions.length>0,h=u?e.configuration:t?t.configuration:[],p=OM(h,this),f=u?EM(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?aS({},t.activities):{};try{for(var v=cS(g),y=v.next();!y.done;y=v.next()){var w=y.value;try{for(var C=(a=void 0,cS(w.actions)),x=C.next();!x.done;x=C.next()){var k=x.value;k.type===hS?b[k.activity.id||k.activity.type]=k:k.type===pS&&(b[k.activity.id||k.activity.type]=!1)}}catch(e){a={error:e}}finally{try{x&&!x.done&&(l=C.return)&&l.call(C)}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=dS(gM(this,t,n,o,g,r,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),E=M[0],T=M[1],O=dS(function(e,t){var n,r,o=dS([[],[]],2),i=o[0],s=o[1];try{for(var a=cS(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,aM),2),L=O[0],A=O[1],R=E.filter((function(e){var t;return e.type===hS&&(null===(t=e.activity)||void 0===t?void 0:t.type)===CS})),N=R.reduce((function(e,t){return e[t.activity.id]=function(e,t,n,r){var o,i=oM(e.src),s=null===(o=null==t?void 0:t.options.services)||void 0===o?void 0:o[i.type],a=e.data?FS(e.data,n,r):void 0,l=s?yM(s,e.id,a):vM(e.id);return l.meta=e,l}(t.activity,c.machine,T,o),e}),t?aS({},t.children):{}),D=new RM({value:f||t.value,context:T,_event:o,_sessionid:t?t._sessionid:null,historyValue:f?m?($=m,S=f,{current:S,states:WS($,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:N,done:p,tags:LM(h),machine:this}),P=n!==T;D.changed=o.name===SS||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!==JM))return D;var V=D;if(!p)for(z&&(V=this.resolveRaisedTransition(V,{type:bS},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||!AM(V.value,I.value):void 0);return V.changed=B,V.history=I,V},e.prototype.getStateNode=function(e){if(QM(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=QM(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&&QM(e))try{return this.getStateNodeById(e.slice(1))}catch(e){}for(var t=NS(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||YM;switch(this.type){case"parallel":return IS(this.initialStateValue,(function(t,r){return t?n.getStateNode(r).resolve(e[r]||t):YM}));case"compound":if(JS(e)){var r=this.getStateNode(e);return"parallel"===r.type||"compound"===r.type?((t={})[e]=r.initialStateValue,t):e}return Object.keys(e).length?IS(e,(function(e,t){return e?n.getStateNode(t).resolve(e):YM})):this.initialStateValue||{};default:return e||YM}},e.prototype.getResolvedPath=function(e){if(QM(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 NS(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=zS(this.states,(function(e){return e.initialStateValue||YM}),(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=wM(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=JS(t.target)&&QM(t.target)?PS(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 wM(this)?[this]:"compound"!==this.type||this.initial?BS(HS(this.initialStateValue).map((function(t){return e.getFromRelativePath(t)}))):(LS||KS(!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=dS(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:zS(this.states,(function(t,n){if(!e)return t.historyValue();var r=JS(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?BS(HS(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=cS(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 JS(s)?[n.getStateNode(s)]:BS(HS(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=BS(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=cS(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,cS(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(!JS(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 jS(e)}(e.target),r="internal"in e?e.internal:!n||n.some((function(e){return JS(e)&&e[0]===t.delimiter})),o=this.machine.options.guards,i=this.resolveTarget(n),s=aS(aS({},e),{actions:uM(jS(e.actions)),cond:XS(e.cond,o),target:i,source:this,internal:r,eventType:e.event,toJSON:function(){return aS(aS({},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=XM,s=o[i],a=void 0===s?[]:s,l=lS(o,["*"]);n=BS(Object.keys(l).map((function(e){LS||e!==JM||KS(!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=nM(e,l[e]);return LS||function(e,t,n){var r=n.slice(0,-1).some((function(e){return!("cond"in e)&&!("in"in e)&&(JS(e.target)||QS(e.target))})),o=t===JM?"the transient event":"event '".concat(t,"'");KS(!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(nM(XM,a)))}else n=[];var c=this.config.always?nM("",this.config.always):[],d=this.config.onDone?nM(String(pM(this.id)),this.config.onDone):[];LS||KS(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var u=BS(this.invoke.map((function(e){var t=[];return e.onDone&&t.push.apply(t,uS([],dS(nM(String(fM(e.id)),e.onDone)),!1)),e.onError&&t.push.apply(t,uS([],dS(nM(String(mM(e.id)),e.onError)),!1)),t}))),h=this.after,p=BS(uS(uS(uS(uS([],dS(d),!1),dS(u),!1),dS(n),!1),dS(c),!1).map((function(e){return jS(e).map((function(e){return r.formatTransition(e)}))})));try{for(var f=cS(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 tE,nE=function(e){return{type:vS,assignment:e}};!function(e){e[e.Effect=1]="Effect",e[e.LayoutEffect=2]="LayoutEffect"}(tE||(tE={}));var rE="undefined"!=typeof document?de:function(){};function oE(e){var t=ee.useRef();return t.current||(t.current={v:e()}),t.current.v}var iE=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},sE=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 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},lE=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 cE(e,t){(0,e.exec)(t.context,t._event.data,{action:e,state:t,_event:t._event})()}function dE(e){var t=se([]),n=se([]);rE((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=aE(function(e,t){var n,r,o=iE([[],[]],2),i=o[0],s=o[1];try{for(var a=sE(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===tE.Effect})),2),a=s[0],l=s[1];(r=t.current).push.apply(r,lE([],aE(a.map((function(t){return[t,e]}))),!1)),(o=n.current).push.apply(o,lE([],aE(l.map((function(t){return[t,e]}))),!1))}}));return function(){r.unsubscribe()}}),[]),rE((function(){for(;n.current.length;){var e=aE(n.current.shift(),2);cE(e[0],e[1])}})),ce((function(){for(;t.current.length;){var e=aE(t.current.shift(),2);cE(e[0],e[1])}}))}var uE=function(){return uE=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},uE.apply(this,arguments)},hE=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},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};var fE=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 mE(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=oE((function(){return"function"==typeof e?e():e}));if("production"!==process.env.NODE_ENV&&"function"!=typeof e){var o=pE(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=hE(t,["context","guards","actions","activities","services","delays","state"]),p=oE((function(){var e={context:i,guards:s,actions:a,activities:l,services:c,delays:d};return KM(r.withConfig(e,(function(){return uE(uE({},r.context),i)})),uE({deferEvents:!0},h))}));return rE((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]),rE((function(){return p.start(u?RM.create(u):void 0),function(){p.stop()}}),[]),rE((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]),dE(p),p}(e,t,n),o=fE(ae((function(){var e=r.machine.initialState;return t.state?RM.create(t.state):e})),2),i=o[0],s=o[1];return[i,r.send,r]}function gE(){return gE=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},gE.apply(null,arguments)}function bE(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 vE={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(vE.str(e)||vE.num(e))return e===t;if(vE.obj(e)&&vE.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!vE.und(n)||e===t}};function yE(e,t){return vE.und(e)||vE.nul(e)?t:e}function wE(e){return vE.und(e)?[]:vE.arr(e)?e:[e]}function CE(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 vE.fun(e)?e(...n):e}function xE(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,bE(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(vE.und(t))return gE({to:t},e);const n=Object.keys(e).reduce(((n,r)=>vE.und(t[r])?gE({},n,{[r]:e[r]}):n),{});return gE({to:t},n)}class kE{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 $E extends kE{constructor(){super(...arguments),this.payload=[],this.attach=()=>this.payload.forEach((e=>e instanceof kE&&e.addChild(this))),this.detach=()=>this.payload.forEach((e=>e instanceof kE&&e.removeChild(this)))}}class SE extends kE{constructor(){super(...arguments),this.payload={},this.attach=()=>Object.values(this.payload).forEach((e=>e instanceof kE&&e.addChild(this))),this.detach=()=>Object.values(this.payload).forEach((e=>e instanceof kE&&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 kE)&&(t[n]=r instanceof kE?r[e?"getAnimatedValue":"getValue"]():r)}return t}getAnimatedValue(){return this.getValue(!0)}}let ME,EE;let TE,OE=e=>"undefined"!=typeof window?window.requestAnimationFrame(e):-1;let LE,AE=()=>Date.now();class RE extends SE{constructor(e,t){super(),this.update=void 0,this.payload=e.style?gE({},e,{style:LE(e.style)}):e,this.update=t,this.attach()}}let NE=!1;const DE=new Set,PE=()=>{if(!NE)return!1;let e=AE();for(let t of DE){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 kE,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||(DE.delete(t),t.stop(!0))}return DE.size?OE(PE):NE=!1,NE};function IE(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return IE({range:e,output:t,extrapolate:n});if(TE&&"string"==typeof e.output[0])return TE(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 zE extends $E{constructor(e,t,n,r){super(),this.calc=void 0,this.payload=e instanceof $E&&!(e instanceof zE)?e.getPayload():Array.isArray(e)?e:[e],this.calc=IE(t,n,r)}getValue(){return this.calc(...this.payload.map((e=>e.getValue())))}updateConfig(e,t,n){this.calc=IE(e,t,n)}interpolate(e,t,n){return new zE(this,e,t,n)}}const VE=(e,t,n)=>e&&new zE(e,t,n);function HE(e,t){"update"in e?t.add(e):e.getChildren().forEach((e=>HE(e,t)))}class BE extends kE{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&&HE(this,this.animatedStyles),this.animatedStyles.forEach((e=>e.update()))}clearStyles(){this.animatedStyles.clear()}getValue(){return this.value}interpolate(e,t,n){return new zE(this,e,t,n)}}class _E extends $E{constructor(e){super(),this.payload=e.map((e=>new BE(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 zE(this,e,t)}}let jE=0,FE=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=jE++}update(e){if(!e)return this;const t=xE(e),n=t.delay,r=void 0===n?0:n,o=t.to,i=bE(t,["delay","to"]);if(vE.arr(o)||vE.fun(o))this.queue.push(gE({},i,{delay:r,to:o}));else if(o){let e={};Object.entries(o).forEach((t=>{let n=t[0],o=t[1];const s=gE({to:{[n]:o},delay:CE(r,n)},i),a=e[s.delay]&&e[s.delay].to;e[s.delay]=gE({},e[s.delay],s,{to:gE({},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;vE.obj(n)&&(this.merged=gE({},n,this.merged)),vE.obj(o)&&(this.merged=gE({},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=bE(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=vE.arr(s.to)||vE.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 vE.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,DE.has(t)||DE.add(t),NE||(NE=!0,OE(PE));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,DE.has(t)&&DE.delete(t)),this}runAsync(e,t){var n=this;e.delay;let r=bE(e,["delay"]);const o=this.local;let i=Promise.resolve(void 0);if(vE.arr(r.to))for(let e=0;e<r.to.length;e++){const t=e,n=gE({},r,xE(r.to[t]));vE.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(vE.fun(r.to)){let e,t=0;i=i.then((()=>r.to((n=>{const i=gE({},r,xE(n));if(vE.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=gE({},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=gE({},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=vE.num(o),l=vE.str(o)&&!o.startsWith("#")&&!/\d/.test(o)&&!EE[o],c=vE.arr(o),h=!s&&!c&&!l;let f=vE.und(r[n])?o:r[n],m=s||c||l?o:1,g=CE(a,n);p&&(m=p.animations[n].parent);let b,v=i.parent,y=i.interpolation,w=wE(p?m.getPayload():m),C=o;h&&(C=TE({range:[0,1],output:[o,o]})(1));let x=y&&y.getValue();const k=!vE.und(v)&&i.animatedValues.some((e=>!e.done)),$=!vE.equ(C,x),S=!vE.equ(C,i.previous),M=!vE.equ(g,i.config);if(d||S&&$||M){if(s||l)v=y=i.parent||new BE(f);else if(c)v=y=i.parent||new _E(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 BE(0);const t={output:[e,o]};i.interpolation?(y=i.interpolation,i.interpolation.updateConfig(t)):y=v.interpolate(t)}return w=wE(p?m.getPayload():m),b=wE(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=AE(),e.done=!1,e.animatedStyles.clear()})),CE(u,n)&&v.setValue(h?m:o,!1),gE({},e,{[n]:gE({},i,{name:n,parent:v,interpolation:y,animatedValues:b,toValues:w,previous:C,config:g,fromValues:wE(v.getValue()),immediate:CE(u,n),initialVelocity:yE(g.velocity,0),clamp:yE(g.clamp,!1),precision:yE(g.precision,.01),tension:yE(g.tension,170),friction:yE(g.friction,26),mass:yE(g.mass,1),duration:g.duration,easing:yE(g.easing,(e=>e)),decay:g.decay})})}return $?e:(h&&(v.setValue(1,!1),y.updateConfig({output:[C,C]})),v.done=!0,this.hasChanged=!0,gE({},e,{[n]:gE({},e[n],{previous:C})}))}),this.animations),this.hasChanged){this.configs=Object.values(this.animations),this.values={},this.interpolations={};for(let e in this.animations)this.interpolations[e]=this.animations[e].interpolation,this.values[e]=this.animations[e].interpolation.getValue()}return this}destroy(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0}};const qE=e=>{const t=vE.fun(e),n=((e,t)=>{const n=se(!1),r=se(),o=vE.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 FE,s=o?CE(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?CE(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 WE extends SE{constructor(e){void 0===e&&(e={}),super(),!e.transform||e.transform instanceof kE||(e=ME.transform(e)),this.payload=e}}const UE={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},KE="[-+]?\\d*\\.?\\d+",ZE=KE+"%";function GE(){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 JE=new RegExp("rgb"+GE(KE,KE,KE)),XE=new RegExp("rgba"+GE(KE,KE,KE,KE)),YE=new RegExp("hsl"+GE(KE,ZE,ZE)),QE=new RegExp("hsla"+GE(KE,ZE,ZE,KE)),eT=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,tT=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,nT=/^#([0-9a-fA-F]{6})$/,rT=/^#([0-9a-fA-F]{8})$/;function oT(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 iT(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=oT(o,r,e+1/3),s=oT(o,r,e),a=oT(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*s)<<16|Math.round(255*a)<<8}function sT(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function aT(e){return(parseFloat(e)%360+360)%360/360}function lT(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function cT(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function dT(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=nT.exec(e))?parseInt(t[1]+"ff",16)>>>0:UE.hasOwnProperty(e)?UE[e]:(t=JE.exec(e))?(sT(t[1])<<24|sT(t[2])<<16|sT(t[3])<<8|255)>>>0:(t=XE.exec(e))?(sT(t[1])<<24|sT(t[2])<<16|sT(t[3])<<8|lT(t[4]))>>>0:(t=eT.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=rT.exec(e))?parseInt(t[1],16)>>>0:(t=tT.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=YE.exec(e))?(255|iT(aT(t[1]),cT(t[2]),cT(t[3])))>>>0:(t=QE.exec(e))?(iT(aT(t[1]),cT(t[2]),cT(t[3]))|lT(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 uT=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,hT=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,pT=new RegExp(`(${Object.keys(UE).join("|")})`,"g");let fT={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 mT=["Webkit","Ms","Moz","O"];function gT(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||fT.hasOwnProperty(e)&&fT[e]?(""+t).trim():t+"px"}fT=Object.keys(fT).reduce(((e,t)=>(mT.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),fT);const bT={};var vT,yT;vT=e=>new WE(e),LE=vT,yT=e=>{const t=e.output.map((e=>e.replace(hT,dT))).map((e=>e.replace(pT,dT))),n=t[0].match(uT).map((()=>[]));t.forEach((e=>{e.match(uT).forEach(((e,t)=>n[t].push(+e)))}));const r=t[0].match(uT).map(((t,r)=>IE(gE({},e,{output:n[r]}))));return e=>{let n=0;return t[0].replace(uT,(()=>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})`))}},TE=yT,EE=UE,function(e,t){ME={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=bE(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=gT(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:bT[t]||(bT[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())));void 0!==e.getAttribute(n)&&e.setAttribute(n,l[t])}}}),(e=>e));var wT;const CT=(wT=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 RE(e,(()=>{let e=!1;s.current&&(e=ME.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=bE(l,["scrollTop","scrollLeft"]),d=(u=e,!vE.fun(u)||u.prototype instanceof te.Component?e=>s.current=function(e,t){return t&&(vE.fun(t)?t(e):vE.obj(t)&&(t.current=e)),e}(e,n):void 0);var u;return te.createElement(e,gE({},c,{ref:d}))})),e=>(vE.arr(e)?e:Object.keys(e)).reduce(((e,t)=>{const n=t;return e[n]=wT(n),e}),wT))(["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 xT(e,t){return e.map((function(e,n){return e+t[n]}))}function kT(e,t){return e.map((function(e,n){return e-t[n]}))}function $T(e){return Math.hypot.apply(Math,e)}function ST(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function MT(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 ET(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?-MT(t-e,n-t,r)+t:e>n?+MT(e-n,n-t,r)+n:e}function TT(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 OT(){return OT=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},OT.apply(this,arguments)}function LT(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function AT(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RT(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 NT(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 RT(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)?RT(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 DT(){}function PT(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?DT:1===t.length?t[0]:function(){for(var e,n,r=NT(t);!(n=r()).done;){e=n.value.apply(this,arguments)||e}return e}}function IT(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 zT(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 VT(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]=VT(e[s],a);break;case"boolean":a&&(n[s]=e[s])}}return n}var HT=OT({},{threshold:function(e){return void 0===e&&(e=0),IT(e)},rubberband:function(e){switch(void 0===e&&(e=0),e){case!0:return IT(.15);case!1:return IT(0);default:return IT(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:IT(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 HT.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]]}}),BT="undefined"!=typeof window&&window.document&&window.document.createElement,_T={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=BT?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}}},jT=OT({},HT,{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=IT(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),IT(e)},swipeDistance:function(e){return void 0===e&&(e=60),IT(e)},delay:function(e){switch(void 0===e&&(e=0),e){case!0:return 180;case!1:return 0;default:return e}}});function FT(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={}),VT(e,_T)}({domTarget:t,eventOptions:n,window:r,enabled:o});return s.drag=function(e){return void 0===e&&(e={}),VT(e,jT)}(i),s}function qT(e){return OT({_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:DT,canceled:!1,memo:void 0,args:void 0},e)}function WT(){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:qT({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:qT({da:[0,0],vdva:[0,0],origin:void 0,turns:0}),wheel:qT({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),move:qT({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),scroll:qT({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0})}}var UT=new Map,KT=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=OT({},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]?ZT(p[0],i[0]):d[0],m=!1===d[1]?ZT(p[1],i[1]):d[1],g=this.checkIntentionality([f,m],p);if(g._blocked)return OT({},g,{_movement:p,delta:[0,0]});var b,v,y,w,C=g._intentional,x=p;(!1!==C[0]&&!1===d[0]&&(v=zT(n,this.state),b=zT(r,this.state),l[0]=v[0],a[0]=b[0]),!1!==C[1]&&!1===d[1])&&(v=null!=(y=v)?y:zT(n,this.state),b=null!=(w=b)?w:zT(r,this.state),l[1]=v[1],a[1]=b[1]);var k=[!1!==C[0]?p[0]-C[0]:l[0],!1!==C[1]?p[1]-C[1]:l[1]],$=xT(k,u),S=c?o:[0,0];return k=GT(a,xT(k,l),S),OT({},g,{intentional:!1!==C[0]||!1!==C[1],_initial:l,_movement:x,movement:k,values:e,offset:GT(a,$,S),delta:kT(k,h)})},t.clean=function(){this.clearTimeout()},TT(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 ZT(e,t){return Math.abs(e)>=t&&ST(e)*t}function GT(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[ET(r,l,c,i),ET(o,u,h,s)]}function JT(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 XT(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,OT({},t,{event:n})].concat(o))}}var YT=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=NT(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];tO(e,c[0],XT(c[1],OT({},t.state.shared,{args:r})))}return t.config.domTarget?function(e,t){var n=e.config,r=e.domListeners,o=eO(n);if(!o)throw new Error("domTarget must be defined");var i=n.eventOptions;rO(o,QT(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,PT.apply(void 0,d)])}nO(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]=PT.apply(void 0,d)}return r}(t,e)},this.effect=function(){return t.config.domTarget&&t.bind(),t.clean},this.clean=function(){var e=eO(t.config),n=t.config.eventOptions;e&&rO(e,QT(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){rO(n,o[i],r)}e.windowListeners={}}(t)},this.state=WT(),this.timeouts={},this.domListeners=[],this.windowListeners={}};function QT(e){return void 0===e&&(e=[]),e.splice(0,e.length)}function eO(e){var t=e.domTarget;return t&&"current"in t?t.current:t}function tO(e,t,n){e[t]||(e[t]=[]),e[t].push(n)}function nO(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,o=NT(t);!(r=o()).done;){var i=r.value,s=i[0],a=i[1];e.addEventListener(s,a,n)}}function rO(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var r,o=NT(t);!(r=o()).done;){var i=r.value,s=i[0],a=i[1];e.removeEventListener(s,a,n)}}function oO(e,t,n){void 0===n&&(n={});var r=function(e){var t=new Set;e.drag&&t.add(UT.get("drag"));e.wheel&&t.add(UT.get("wheel"));e.scroll&&t.add(UT.get("scroll"));e.move&&t.add(UT.get("move"));e.pinch&&t.add(UT.get("pinch"));e.hover&&t.add(UT.get("hover"));return t}(e),o=te.useMemo((function(){return new YT(r)}),[]);return o.config=t,o.handlers=e,o.nativeRefs=n,te.useEffect(o.effect,[]),o.config.domTarget?iO:o.bind}function iO(){"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 sO=function(e){function t(){return e.apply(this,arguments)||this}LT(t,e);var n=t.prototype;return n.getInternalMovement=function(e,t){return kT(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=$T(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:$T(e),direction:l}}(n.movement,n.delta,r))}return n},n.mapStateValues=function(e){return{xy:e.values,vxvy:e.velocities}},t}(KT);function aO(e){if("touches"in e){var t=e.targetTouches,n=e.changedTouches;return t.length>0?t:n}return null}function lO(e){var t="buttons"in e?e.buttons:0,n=aO(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 cO(e){var t=aO(e),n=t?t[0]:e;return[n.clientX,n.clientY]}var dO=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&&(rO(r.window,o[t],r.eventOptions),nO(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(AT(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=lO(e);if(n.down){t.updateSharedState(n);var r=cO(e),o=t.getKinematics(r,e),i=JT(AT(t),e),s=t.state._isTap,a=$T(o._movement);s&&a>=3&&(s=!1),t.updateGestureState(OT({},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=OT({},JT(AT(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]=ST(o)),!1!==u&&Math.abs(i)>f&&Math.abs(l)>b&&(y[1]=ST(i))),t.updateGestureState(OT({},v,{tap:n,swipe:y})),t.fireGestureHandler(!0===n)}},t.clean=function(){e.prototype.clean.call(AT(t)),t.state._delayedEvent=!1,function(e,t){var n=e.config,r=e.windowListeners;n.window&&(rO(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}LT(t,e);var n=t.prototype;return n.startDrag=function(e){var t=cO(e);this.updateSharedState(lO(e)),this.updateGestureState(OT({},function(e,t,n){var r=e.state.offset,o=n.timeStamp;return OT({},WT()[e.stateKey],{_active:!0,values:t,initial:t,offset:r,lastOffset:r,startTime:o})}(this,t,e),JT(this,e,!0),{_pointerId:e.pointerId,cancel:this.onCancel})),this.updateGestureState(this.getMovement(t)),this.fireGestureHandler()},n.addBindings=function(e){(tO(e,"onPointerDown",this.onDragStart),this.config.filterTaps)&&tO(e,this.controller.config.eventOptions.capture?"onClick":"onClickCapture",this.onClick)},t}(sO);function uO(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(!uO(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(!uO(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||uO(e[o[r]],t[o[r]])))return!1;return!0}return e!=e&&t!=t}function hO(e,t){try{return uO(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 pO(e,t){void 0===t&&(t={}),UT.set("drag",dO);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}}(FT,hO)),oO({drag:e},n.current(t))}
2800
2805
  /*!
2801
2806
  * tabbable 5.3.3
2802
2807
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
2803
- */var pO=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],fO=pO.join(","),mO="undefined"==typeof Element,gO=mO?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,bO=!mO&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},vO=function(e,t,n){var r=Array.prototype.slice.apply(e.querySelectorAll(fO));return t&&gO.call(e,fO)&&r.unshift(e),r=r.filter(n)},yO=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{gO.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},wO=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},CO=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},xO=function(e){return"INPUT"===e.tagName},kO=function(e){return function(e){return xO(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||bO(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)},$O=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},SO=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=gO.call(e,"details>summary:first-of-type")?e.parentElement:e;if(gO.call(o,"details:not([open]) *"))return!0;var i=bO(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 $O(e)}else{if("function"==typeof r){for(var a=e;e;){var l=e.parentElement,c=bO(e);if(l&&!l.shadowRoot&&!0===r(l))return $O(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!!gO.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},MO=function(e,t){return!(kO(t)||wO(t)<0||!SO(e,t))},EO=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},TO=function e(t){var n=[],r=[];return t.forEach((function(t,o){var i=!!t.scope,s=i?t.scope:t,a=wO(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(CO).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},OO=function(e,t){var n;return n=(t=t||{}).getShadowRoot?yO([e],t.includeContainer,{filter:MO.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:EO}):vO(e,t.includeContainer,MO.bind(null,t)),TO(n)},LO=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==gO.call(e,fO)&&MO(t,e)},AO=pO.concat("iframe").join(","),RO=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==gO.call(e,AO)&&SO(t,e)};
2808
+ */var fO=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],mO=fO.join(","),gO="undefined"==typeof Element,bO=gO?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,vO=!gO&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},yO=function(e,t,n){var r=Array.prototype.slice.apply(e.querySelectorAll(mO));return t&&bO.call(e,mO)&&r.unshift(e),r=r.filter(n)},wO=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{bO.call(s,mO)&&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},CO=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},xO=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},kO=function(e){return"INPUT"===e.tagName},$O=function(e){return function(e){return kO(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||vO(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)},SO=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},MO=function(e,t){return!(t.disabled||function(e){return kO(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=bO.call(e,"details>summary:first-of-type")?e.parentElement:e;if(bO.call(o,"details:not([open]) *"))return!0;var i=vO(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 SO(e)}else{if("function"==typeof r){for(var a=e;e;){var l=e.parentElement,c=vO(e);if(l&&!l.shadowRoot&&!0===r(l))return SO(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!!bO.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},EO=function(e,t){return!($O(t)||CO(t)<0||!MO(e,t))},TO=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},OO=function e(t){var n=[],r=[];return t.forEach((function(t,o){var i=!!t.scope,s=i?t.scope:t,a=CO(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(xO).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},LO=function(e,t){var n;return n=(t=t||{}).getShadowRoot?wO([e],t.includeContainer,{filter:EO.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:TO}):yO(e,t.includeContainer,EO.bind(null,t)),OO(n)},AO=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==bO.call(e,mO)&&EO(t,e)},RO=fO.concat("iframe").join(","),NO=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==bO.call(e,RO)&&MO(t,e)};
2804
2809
  /*!
2805
2810
  * focus-trap 6.9.4
2806
2811
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
2807
2812
  */
2808
- function NO(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 DO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?NO(Object(n),!0).forEach((function(t){PO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function PO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var IO,zO=(IO=[],{activateTrap:function(e){if(IO.length>0){var t=IO[IO.length-1];t!==e&&t.pause()}var n=IO.indexOf(e);-1===n||IO.splice(n,1),IO.push(e)},deactivateTrap:function(e){var t=IO.indexOf(e);-1!==t&&IO.splice(t,1),IO.length>0&&IO[IO.length-1].unpause()}}),VO=function(e){return setTimeout(e,0)},HO=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},BO=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},_O=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},jO=function(e,t){var n,r=(null==t?void 0:t.document)||document,o=DO({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=OO(e,o.tabbableOptions),i=(t=e,(n=(n=o.tabbableOptions)||{}).getShadowRoot?yO([t],n.includeContainer,{filter:SO.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):vO(t,n.includeContainer,SO.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 LO(e,o.tabbableOptions)})):i.slice(0,n).reverse().find((function(e){return LO(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=_O(e);a(t)>=0||(BO(o.clickOutsideDeactivates,e)?n.deactivate({returnFocus:o.returnFocusOnDeactivate&&!RO(t,o.tabbableOptions)}):BO(o.allowOutsideClick,e)||e.preventDefault())},f=function(e){var t=_O(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!==BO(o.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=_O(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=HO(i.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(c<0&&(s.container===t||RO(t,o.tabbableOptions)&&!LO(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=HO(i.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(p<0&&(s.container===t||RO(t,o.tabbableOptions)&&!LO(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=_O(e);a(t)>=0||BO(o.clickOutsideDeactivates,e)||BO(o.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},b=function(){if(i.active)return zO.activateTrap(n),i.delayInitialFocusTimer=o.delayInitialFocus?VO((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=DO({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},e);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,v(),i.active=!1,i.paused=!1,zO.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(){VO((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 FO=!1;if("undefined"!=typeof window){var qO={get passive(){FO=!0}};window.addEventListener("testPassive",null,qO),window.removeEventListener("testPassive",null,qO)}var WO,UO="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),KO=[],ZO=!1,GO=-1,JO=void 0,XO=void 0,YO=function(e){return KO.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},QO=function(e){var t=e||window.event;return!!YO(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},eL=function(e,t){if(e){if(!KO.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};KO=[].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)}(KO),[n]),UO?(e.ontouchstart=function(e){1===e.targetTouches.length&&(GO=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-GO;!YO(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?QO(e):e.stopPropagation())}(t,e)},ZO||(document.addEventListener("touchmove",QO,FO?{passive:!1}:void 0),ZO=!0)):function(e){if(void 0===XO){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(XO=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===JO&&(JO=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?(KO=KO.filter((function(t){return t.targetElement!==e})),UO?(e.ontouchstart=null,e.ontouchmove=null,ZO&&0===KO.length&&(document.removeEventListener("touchmove",QO,FO?{passive:!1}:void 0),ZO=!1)):KO.length||(void 0!==XO&&(document.body.style.paddingRight=XO,XO=void 0),void 0!==JO&&(document.body.style.overflow=JO,JO=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")},nL=[],rL="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"}(WO||(WO={}));var oL,iL=function(e){return Object.freeze(e)},sL=function(e,t){this.inlineSize=e,this.blockSize=t,iL(this)},aL=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,iL(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}(),lL=function(e){return e instanceof SVGElement&&"getBBox"in e},cL=function(e){if(lL(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)},dL=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)},uL="undefined"!=typeof window?window:{},hL=new WeakMap,pL=/auto|scroll/,fL=/^tb|vertical/,mL=/msie|trident/i.test(uL.navigator&&uL.navigator.userAgent),gL=function(e){return parseFloat(e||"0")},bL=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new sL((n?t:e)||0,(n?e:t)||0)},vL=iL({devicePixelContentBoxSize:bL(),borderBoxSize:bL(),contentBoxSize:bL(),contentRect:new aL(0,0,0,0)}),yL=function(e,t){if(void 0===t&&(t=!1),hL.has(e)&&!t)return hL.get(e);if(cL(e))return hL.set(e,vL),vL;var n=getComputedStyle(e),r=lL(e)&&e.ownerSVGElement&&e.getBBox(),o=!mL&&"border-box"===n.boxSizing,i=fL.test(n.writingMode||""),s=!r&&pL.test(n.overflowY||""),a=!r&&pL.test(n.overflowX||""),l=r?0:gL(n.paddingTop),c=r?0:gL(n.paddingRight),d=r?0:gL(n.paddingBottom),u=r?0:gL(n.paddingLeft),h=r?0:gL(n.borderTopWidth),p=r?0:gL(n.borderRightWidth),f=r?0:gL(n.borderBottomWidth),m=u+c,g=l+d,b=(r?0:gL(n.borderLeftWidth))+p,v=h+f,y=a?e.offsetHeight-v-e.clientHeight:0,w=s?e.offsetWidth-b-e.clientWidth:0,C=o?m+b:0,x=o?g+v:0,k=r?r.width:gL(n.width)-C-w,$=r?r.height:gL(n.height)-x-y,S=k+m+w+b,M=$+g+y+v,E=iL({devicePixelContentBoxSize:bL(Math.round(k*devicePixelRatio),Math.round($*devicePixelRatio),i),borderBoxSize:bL(S,M,i),contentBoxSize:bL(k,$,i),contentRect:new aL(u,l,k,$)});return hL.set(e,E),E},wL=function(e,t,n){var r=yL(e,n),o=r.borderBoxSize,i=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case WO.DEVICE_PIXEL_CONTENT_BOX:return s;case WO.BORDER_BOX:return o;default:return i}},CL=function(e){var t=yL(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=iL([t.borderBoxSize]),this.contentBoxSize=iL([t.contentBoxSize]),this.devicePixelContentBoxSize=iL([t.devicePixelContentBoxSize])},xL=function(e){if(cL(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},kL=function(){var e=1/0,t=[];nL.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new CL(t.target),o=xL(t.target);r.push(n),t.lastReportedSize=wL(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},$L=function(e){nL.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))}))}))},SL=function(){var e=0;for($L(e);nL.some((function(e){return e.activeTargets.length>0}));)e=kL(),$L(e);return nL.some((function(e){return e.skippedTargets.length>0}))&&function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:rL}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=rL),window.dispatchEvent(e)}(),e>0},ML=[],EL=function(e){if(!oL){var t=0,n=document.createTextNode("");new MutationObserver((function(){return ML.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),oL=function(){n.textContent="".concat(t?t--:t++)}}ML.push(e),oL()},TL=0,OL={attributes:!0,characterData:!0,childList:!0,subtree:!0},LL=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],AL=function(e){return void 0===e&&(e=0),Date.now()+e},RL=!1,NL=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),!RL){RL=!0;var n,r=AL(e);n=function(){var n=!1;try{n=SL()}finally{if(RL=!1,e=r-AL(),!TL)return;n?t.run(1e3):e>0?t.run(e):t.start()}},EL((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,OL)};document.body?t():uL.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),LL.forEach((function(t){return uL.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),LL.forEach((function(t){return uL.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),DL=function(e){!TL&&e>0&&NL.start(),!(TL+=e)&&NL.stop()},PL=function(){function e(e,t){this.target=e,this.observedBox=t||WO.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=wL(this.target,this.observedBox,!0);return function(e){return!lL(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}(),IL=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},zL=new WeakMap,VL=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},HL=function(){function e(){}return e.connect=function(e,t){var n=new IL(e,t);zL.set(e,n)},e.observe=function(e,t,n){var r=zL.get(e),o=0===r.observationTargets.length;VL(r.observationTargets,t)<0&&(o&&nL.push(r),r.observationTargets.push(new PL(t,n&&n.box)),DL(1),NL.schedule())},e.unobserve=function(e,t){var n=zL.get(e),r=VL(n.observationTargets,t),o=1===n.observationTargets.length;r>=0&&(o&&nL.splice(nL.indexOf(n),1),n.observationTargets.splice(r,1),DL(-1))},e.disconnect=function(e){var t=this,n=zL.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),BL=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.");HL.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(!dL(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");HL.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(!dL(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");HL.unobserve(this,e)},e.prototype.disconnect=function(){HL.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();function _L(){return _L=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},_L.apply(this,arguments)}function jL(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 FL="undefined"!=typeof window?de:ce;function qL(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 WL(e){var t=Math.round(e);if(Number.isNaN(e))throw new TypeError("Found a NaN! Check your snapPoints / defaultSnap / snapTo ");return t}var UL={box:"border-box"};function KL(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 FL((function(){if(e.current&&r){var t=new BL(l);return t.observe(e.current,UL),function(){t.disconnect()}}}),[e,l,r]),r?s:0}function ZL(e){return void 0===e&&(e=1e3),new Promise((function(t){return setTimeout(t,e)}))}var GL={DRAG:{target:"#overlay.dragging",actions:"onOpenEnd"}},JL={RESIZE:{target:"#overlay.resizing",actions:"onOpenEnd"}},XL=function(e,t,n){return void 0===n&&(n=e.context),new QM(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:_L({},GL,JL)}}},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:_L({},GL,JL)}}},end:{invoke:{src:"onOpenEnd",onDone:"done"},on:{CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:_L({},{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(ZL()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenStart:function(){try{return Promise.resolve(ZL()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseStart:function(){try{return Promise.resolve(ZL()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeStart:function(){try{return Promise.resolve(ZL()).then((function(){}))}catch(e){return Promise.reject(e)}},onSnapEnd:function(){try{return Promise.resolve(ZL()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenEnd:function(){try{return Promise.resolve(ZL()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseEnd:function(){try{return Promise.resolve(ZL()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeEnd:function(){try{return Promise.resolve(ZL()).then((function(){}))}catch(e){return Promise.reject(e)}},renderVisuallyHidden:function(e,t){try{return Promise.resolve(ZL()).then((function(){}))}catch(e){return Promise.reject(e)}},activate:function(e,t){try{return Promise.resolve(ZL()).then((function(){}))}catch(e){return Promise.reject(e)}},deactivate:function(e,t){try{return Promise.resolve(ZL()).then((function(){}))}catch(e){return Promise.reject(e)}},openSmoothly:function(e,t){try{return Promise.resolve(ZL()).then((function(){}))}catch(e){return Promise.reject(e)}},openImmediately:function(e,t){try{return Promise.resolve(ZL()).then((function(){}))}catch(e){return Promise.reject(e)}},snapSmoothly:function(e,t){try{return Promise.resolve(ZL()).then((function(){}))}catch(e){return Promise.reject(e)}},resizeSmoothly:function(e,t){try{return Promise.resolve(ZL()).then((function(){}))}catch(e){return Promise.reject(e)}},closeSmoothly:function(e,t){try{return Promise.resolve(ZL()).then((function(){}))}catch(e){return Promise.reject(e)}}},guards:{initiallyClosed:function(e){return"CLOSED"===e.initialState},initiallyOpen:function(e){return"OPEN"===e.initialState}}}),YL=["children","sibling","className","footer","header","open","initialState","lastSnapRef","initialFocusRef","onDismiss","maxHeight","defaultSnap","snapPoints","blocking","scrollLocking","style","onSpringStart","onSpringCancel","onSpringEnd","reserveScrollBarGap","expandOnContentDrag"],QL=["velocity"],eA=["onRest","config"],tA={tension:170,friction:26},nA=tA.tension,rA=tA.friction,oA=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?sA:p,m=e.snapPoints,g=void 0===m?aA:m,b=e.blocking,v=void 0===b||b,y=e.scrollLocking,w=void 0===y||y,C=e.style,x=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=jL(e,YL),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 _L({},t,((n={})[e]=!1,n))})),function(){i((function(t){var n;return _L({},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,R=L.registerReady,N=se(!1),D=se(x),P=se(k),I=se($);ce((function(){D.current=x,P.current=k,I.current=$}),[k,x,$]);var z,V,H=FE((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),Z=se(0),G=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=jO(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 WL(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]),FL((function(){if(e)return s(WL(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=KL(s,{label:"headerHeight",enabled:i,resizeSourceRef:l}),h=KL(t,{label:"contentHeight",enabled:!0,resizeSourceRef:l}),p=KL(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(WL).reduce((function(e,n){return e.add(qL(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=WL("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:Z,lastSnapRef:c,ready:A,registerReady:R,resizeSourceRef:G}),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);FL((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=jL(n,QL),s=jL(e,eA);return new Promise((function(e){return _(_L({},s,{config:_L({velocity:o},i,{mass:1,tension:nA,friction:Math.max(rA,rA+(rA-rA*o))}),onRest:function(){var n=[].slice.call(arguments);e.apply(void 0,n),null==t||t.apply(void 0,n)}}))}))}),[_]),we=fE(XL,{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:G.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:G.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:G.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:G.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 N.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(),N.current=!1,Promise.resolve()}catch(e){return Promise.reject(e)}}),[Q,ee,Y]),openImmediately:ue((function(){try{return Z.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 Z.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 Z.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(Z.current);return Z.current=e,c.current=e,Promise.resolve(ye({y:e,ready:1,maxHeight:pe.current,maxSnap:ge.current,minSnap:fe.current,immediate:"element"!==G.current||X.current})).then((function(){}))}catch(e){return Promise.reject(e)}}),[ye,c,X]),closeSmoothly:ue((function(e,t){try{return ye({minSnap:Z.current,immediate:!0}),Z.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])}}),Ce=we[0],xe=we[1];ce((function(){A&&xe(a?"OPEN":"CLOSE")}),[a,xe,A]),FL((function(){(de||ie||re)&&xe("RESIZE")}),[de,ie,re,xe]),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;xe("SNAP",{payload:{y:be.current(e),velocity:o,source:s}})},get height(){return Z.current}}}),[xe]),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(!N.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 C=c?u||fe.current!==ge.current?MT(v,u?0:fe.current,ge.current,.55):v<fe.current?MT(v,fe.current,2*ge.current,.55):MT(v,fe.current/2,ge.current,.55):w;return T&&s?(C>=ge.current&&(C=ge.current),f===ge.current&&F.current.scrollTop>0&&(C=ge.current),J.current=C<ge.current):J.current=!1,d&&xe("DRAG"),h?(xe("SNAP",{payload:{y:C,velocity:g>.05?g:1,source:"dragging"}}),f):(_({y:C,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=zE([n.y,n.maxHeight],(function(e,t){return Math.round(qL(t-e,0,16))+"px"})),o=zE([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return qL(e,t,n)+"px"})),i=zE([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return e<t?t-e+"px":e>n?n-e+"px":"0px"})),s=zE([n.y,n.maxSnap],(function(e,t){return e>=t?Math.ceil(e-t):0})),a=zE([n.y,n.minSnap],(function(e,t){if(!t)return 0;var n=Math.max(t/2-45,0);return qL((e-n)*(1/(Math.min(t/2+45,t)-n)+0),0,1)})),l=zE([n.y,n.minSnap],(function(e,t){return t?qL(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(wT.div,_L({},O,{"data-rsbs-root":!0,"data-rsbs-state":iA.find(Ce.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:_L({},$e,C,{opacity:B.ready})}),r,v&&te.createElement("div",_L({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",_L({key:"header","data-rsbs-header":!0,ref:W},ke()),s),te.createElement("div",_L({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",_L({key:"footer",ref:U,"data-rsbs-footer":!0},ke()),i)))})),iA=["closed","opening","open","closing","dragging","snapping","resizing"];function sA(e){var t=e.lastSnap;return null!=t?t:Math.min.apply(Math,e.snapPoints)}function aA(e){return e.minHeight}var lA=["onSpringStart","onSpringEnd","skipInitialTransition"],cA=ie((function(e,t){var n=e.onSpringStart,r=e.onSpringEnd,o=e.skipInitialTransition,i=jL(e,lA),s=ae(!1),a=s[0],l=s[1],c=se(),d=se(null),u=se(o&&i.open?"OPEN":"CLOSED");FL((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(rS,{"data-rsbs-portal":!0},te.createElement(oA,_L({},i,{lastSnapRef:d,ref:t,initialState:u.current,onSpringStart:h,onSpringEnd:p}))):null}));const dA=ke`
2813
+ function DO(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 PO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DO(Object(n),!0).forEach((function(t){IO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function IO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zO,VO=(zO=[],{activateTrap:function(e){if(zO.length>0){var t=zO[zO.length-1];t!==e&&t.pause()}var n=zO.indexOf(e);-1===n||zO.splice(n,1),zO.push(e)},deactivateTrap:function(e){var t=zO.indexOf(e);-1!==t&&zO.splice(t,1),zO.length>0&&zO[zO.length-1].unpause()}}),HO=function(e){return setTimeout(e,0)},BO=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},_O=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},jO=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},FO=function(e,t){var n,r=(null==t?void 0:t.document)||document,o=PO({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=LO(e,o.tabbableOptions),i=(t=e,(n=(n=o.tabbableOptions)||{}).getShadowRoot?wO([t],n.includeContainer,{filter:MO.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):yO(t,n.includeContainer,MO.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 AO(e,o.tabbableOptions)})):i.slice(0,n).reverse().find((function(e){return AO(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=jO(e);a(t)>=0||(_O(o.clickOutsideDeactivates,e)?n.deactivate({returnFocus:o.returnFocusOnDeactivate&&!NO(t,o.tabbableOptions)}):_O(o.allowOutsideClick,e)||e.preventDefault())},f=function(e){var t=jO(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!==_O(o.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=jO(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=BO(i.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(c<0&&(s.container===t||NO(t,o.tabbableOptions)&&!AO(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=BO(i.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(p<0&&(s.container===t||NO(t,o.tabbableOptions)&&!AO(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=jO(e);a(t)>=0||_O(o.clickOutsideDeactivates,e)||_O(o.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},b=function(){if(i.active)return VO.activateTrap(n),i.delayInitialFocusTimer=o.delayInitialFocus?HO((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=PO({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},e);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,v(),i.active=!1,i.paused=!1,VO.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(){HO((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 qO=!1;if("undefined"!=typeof window){var WO={get passive(){qO=!0}};window.addEventListener("testPassive",null,WO),window.removeEventListener("testPassive",null,WO)}var UO,KO="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),ZO=[],GO=!1,JO=-1,XO=void 0,YO=void 0,QO=function(e){return ZO.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},eL=function(e){var t=e||window.event;return!!QO(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},tL=function(e,t){if(e){if(!ZO.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};ZO=[].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)}(ZO),[n]),KO?(e.ontouchstart=function(e){1===e.targetTouches.length&&(JO=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-JO;!QO(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?eL(e):e.stopPropagation())}(t,e)},GO||(document.addEventListener("touchmove",eL,qO?{passive:!1}:void 0),GO=!0)):function(e){if(void 0===YO){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(YO=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===XO&&(XO=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.")},nL=function(e){e?(ZO=ZO.filter((function(t){return t.targetElement!==e})),KO?(e.ontouchstart=null,e.ontouchmove=null,GO&&0===ZO.length&&(document.removeEventListener("touchmove",eL,qO?{passive:!1}:void 0),GO=!1)):ZO.length||(void 0!==YO&&(document.body.style.paddingRight=YO,YO=void 0),void 0!==XO&&(document.body.style.overflow=XO,XO=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")},rL=[],oL="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"}(UO||(UO={}));var iL,sL=function(e){return Object.freeze(e)},aL=function(e,t){this.inlineSize=e,this.blockSize=t,sL(this)},lL=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,sL(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}(),cL=function(e){return e instanceof SVGElement&&"getBBox"in e},dL=function(e){if(cL(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)},uL=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)},hL="undefined"!=typeof window?window:{},pL=new WeakMap,fL=/auto|scroll/,mL=/^tb|vertical/,gL=/msie|trident/i.test(hL.navigator&&hL.navigator.userAgent),bL=function(e){return parseFloat(e||"0")},vL=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new aL((n?t:e)||0,(n?e:t)||0)},yL=sL({devicePixelContentBoxSize:vL(),borderBoxSize:vL(),contentBoxSize:vL(),contentRect:new lL(0,0,0,0)}),wL=function(e,t){if(void 0===t&&(t=!1),pL.has(e)&&!t)return pL.get(e);if(dL(e))return pL.set(e,yL),yL;var n=getComputedStyle(e),r=cL(e)&&e.ownerSVGElement&&e.getBBox(),o=!gL&&"border-box"===n.boxSizing,i=mL.test(n.writingMode||""),s=!r&&fL.test(n.overflowY||""),a=!r&&fL.test(n.overflowX||""),l=r?0:bL(n.paddingTop),c=r?0:bL(n.paddingRight),d=r?0:bL(n.paddingBottom),u=r?0:bL(n.paddingLeft),h=r?0:bL(n.borderTopWidth),p=r?0:bL(n.borderRightWidth),f=r?0:bL(n.borderBottomWidth),m=u+c,g=l+d,b=(r?0:bL(n.borderLeftWidth))+p,v=h+f,y=a?e.offsetHeight-v-e.clientHeight:0,w=s?e.offsetWidth-b-e.clientWidth:0,C=o?m+b:0,x=o?g+v:0,k=r?r.width:bL(n.width)-C-w,$=r?r.height:bL(n.height)-x-y,S=k+m+w+b,M=$+g+y+v,E=sL({devicePixelContentBoxSize:vL(Math.round(k*devicePixelRatio),Math.round($*devicePixelRatio),i),borderBoxSize:vL(S,M,i),contentBoxSize:vL(k,$,i),contentRect:new lL(u,l,k,$)});return pL.set(e,E),E},CL=function(e,t,n){var r=wL(e,n),o=r.borderBoxSize,i=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case UO.DEVICE_PIXEL_CONTENT_BOX:return s;case UO.BORDER_BOX:return o;default:return i}},xL=function(e){var t=wL(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=sL([t.borderBoxSize]),this.contentBoxSize=sL([t.contentBoxSize]),this.devicePixelContentBoxSize=sL([t.devicePixelContentBoxSize])},kL=function(e){if(dL(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},$L=function(){var e=1/0,t=[];rL.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new xL(t.target),o=kL(t.target);r.push(n),t.lastReportedSize=CL(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},SL=function(e){rL.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(kL(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},ML=function(){var e=0;for(SL(e);rL.some((function(e){return e.activeTargets.length>0}));)e=$L(),SL(e);return rL.some((function(e){return e.skippedTargets.length>0}))&&function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:oL}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=oL),window.dispatchEvent(e)}(),e>0},EL=[],TL=function(e){if(!iL){var t=0,n=document.createTextNode("");new MutationObserver((function(){return EL.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),iL=function(){n.textContent="".concat(t?t--:t++)}}EL.push(e),iL()},OL=0,LL={attributes:!0,characterData:!0,childList:!0,subtree:!0},AL=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],RL=function(e){return void 0===e&&(e=0),Date.now()+e},NL=!1,DL=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),!NL){NL=!0;var n,r=RL(e);n=function(){var n=!1;try{n=ML()}finally{if(NL=!1,e=r-RL(),!OL)return;n?t.run(1e3):e>0?t.run(e):t.start()}},TL((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,LL)};document.body?t():hL.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),AL.forEach((function(t){return hL.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),AL.forEach((function(t){return hL.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),PL=function(e){!OL&&e>0&&DL.start(),!(OL+=e)&&DL.stop()},IL=function(){function e(e,t){this.target=e,this.observedBox=t||UO.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=CL(this.target,this.observedBox,!0);return function(e){return!cL(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}(),zL=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},VL=new WeakMap,HL=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},BL=function(){function e(){}return e.connect=function(e,t){var n=new zL(e,t);VL.set(e,n)},e.observe=function(e,t,n){var r=VL.get(e),o=0===r.observationTargets.length;HL(r.observationTargets,t)<0&&(o&&rL.push(r),r.observationTargets.push(new IL(t,n&&n.box)),PL(1),DL.schedule())},e.unobserve=function(e,t){var n=VL.get(e),r=HL(n.observationTargets,t),o=1===n.observationTargets.length;r>=0&&(o&&rL.splice(rL.indexOf(n),1),n.observationTargets.splice(r,1),PL(-1))},e.disconnect=function(e){var t=this,n=VL.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),_L=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.");BL.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(!uL(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");BL.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(!uL(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");BL.unobserve(this,e)},e.prototype.disconnect=function(){BL.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();function jL(){return jL=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},jL.apply(this,arguments)}function FL(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 qL="undefined"!=typeof window?de:ce;function WL(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 UL(e){var t=Math.round(e);if(Number.isNaN(e))throw new TypeError("Found a NaN! Check your snapPoints / defaultSnap / snapTo ");return t}var KL={box:"border-box"};function ZL(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 qL((function(){if(e.current&&r){var t=new _L(l);return t.observe(e.current,KL),function(){t.disconnect()}}}),[e,l,r]),r?s:0}function GL(e){return void 0===e&&(e=1e3),new Promise((function(t){return setTimeout(t,e)}))}var JL={DRAG:{target:"#overlay.dragging",actions:"onOpenEnd"}},XL={RESIZE:{target:"#overlay.resizing",actions:"onOpenEnd"}},YL=function(e,t,n){return void 0===n&&(n=e.context),new eE(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:jL({},JL,XL)}}},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:jL({},JL,XL)}}},end:{invoke:{src:"onOpenEnd",onDone:"done"},on:{CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:jL({},{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:[nE({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(GL()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenStart:function(){try{return Promise.resolve(GL()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseStart:function(){try{return Promise.resolve(GL()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeStart:function(){try{return Promise.resolve(GL()).then((function(){}))}catch(e){return Promise.reject(e)}},onSnapEnd:function(){try{return Promise.resolve(GL()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenEnd:function(){try{return Promise.resolve(GL()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseEnd:function(){try{return Promise.resolve(GL()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeEnd:function(){try{return Promise.resolve(GL()).then((function(){}))}catch(e){return Promise.reject(e)}},renderVisuallyHidden:function(e,t){try{return Promise.resolve(GL()).then((function(){}))}catch(e){return Promise.reject(e)}},activate:function(e,t){try{return Promise.resolve(GL()).then((function(){}))}catch(e){return Promise.reject(e)}},deactivate:function(e,t){try{return Promise.resolve(GL()).then((function(){}))}catch(e){return Promise.reject(e)}},openSmoothly:function(e,t){try{return Promise.resolve(GL()).then((function(){}))}catch(e){return Promise.reject(e)}},openImmediately:function(e,t){try{return Promise.resolve(GL()).then((function(){}))}catch(e){return Promise.reject(e)}},snapSmoothly:function(e,t){try{return Promise.resolve(GL()).then((function(){}))}catch(e){return Promise.reject(e)}},resizeSmoothly:function(e,t){try{return Promise.resolve(GL()).then((function(){}))}catch(e){return Promise.reject(e)}},closeSmoothly:function(e,t){try{return Promise.resolve(GL()).then((function(){}))}catch(e){return Promise.reject(e)}}},guards:{initiallyClosed:function(e){return"CLOSED"===e.initialState},initiallyOpen:function(e){return"OPEN"===e.initialState}}}),QL=["children","sibling","className","footer","header","open","initialState","lastSnapRef","initialFocusRef","onDismiss","maxHeight","defaultSnap","snapPoints","blocking","scrollLocking","style","onSpringStart","onSpringCancel","onSpringEnd","reserveScrollBarGap","expandOnContentDrag"],eA=["velocity"],tA=["onRest","config"],nA={tension:170,friction:26},rA=nA.tension,oA=nA.friction,iA=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?aA:p,m=e.snapPoints,g=void 0===m?lA:m,b=e.blocking,v=void 0===b||b,y=e.scrollLocking,w=void 0===y||y,C=e.style,x=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=FL(e,QL),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 jL({},t,((n={})[e]=!1,n))})),function(){i((function(t){var n;return jL({},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,R=L.registerReady,N=se(!1),D=se(x),P=se(k),I=se($);ce((function(){D.current=x,P.current=k,I.current=$}),[k,x,$]);var z,V,H=qE((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),Z=se(0),G=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,tL(e,{allowTouchMove:function(e){return e.closest("[data-body-scroll-lock-ignore]")},reserveScrollBarGap:r}))},deactivate:function(){i&&(i=!1,nL(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=FO(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 UL(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]),qL((function(){if(e)return s(UL(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=ZL(s,{label:"headerHeight",enabled:i,resizeSourceRef:l}),h=ZL(t,{label:"contentHeight",enabled:!0,resizeSourceRef:l}),p=ZL(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(UL).reduce((function(e,n){return e.add(WL(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=UL("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:Z,lastSnapRef:c,ready:A,registerReady:R,resizeSourceRef:G}),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);qL((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=FL(n,eA),s=FL(e,tA);return new Promise((function(e){return _(jL({},s,{config:jL({velocity:o},i,{mass:1,tension:rA,friction:Math.max(oA,oA+(oA-oA*o))}),onRest:function(){var n=[].slice.call(arguments);e.apply(void 0,n),null==t||t.apply(void 0,n)}}))}))}),[_]),we=mE(YL,{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:G.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:G.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:G.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:G.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 N.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(),N.current=!1,Promise.resolve()}catch(e){return Promise.reject(e)}}),[Q,ee,Y]),openImmediately:ue((function(){try{return Z.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 Z.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 Z.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(Z.current);return Z.current=e,c.current=e,Promise.resolve(ye({y:e,ready:1,maxHeight:pe.current,maxSnap:ge.current,minSnap:fe.current,immediate:"element"!==G.current||X.current})).then((function(){}))}catch(e){return Promise.reject(e)}}),[ye,c,X]),closeSmoothly:ue((function(e,t){try{return ye({minSnap:Z.current,immediate:!0}),Z.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])}}),Ce=we[0],xe=we[1];ce((function(){A&&xe(a?"OPEN":"CLOSE")}),[a,xe,A]),qL((function(){(de||ie||re)&&xe("RESIZE")}),[de,ie,re,xe]),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;xe("SNAP",{payload:{y:be.current(e),velocity:o,source:s}})},get height(){return Z.current}}}),[xe]),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=pO((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(!N.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 C=c?u||fe.current!==ge.current?ET(v,u?0:fe.current,ge.current,.55):v<fe.current?ET(v,fe.current,2*ge.current,.55):ET(v,fe.current/2,ge.current,.55):w;return T&&s?(C>=ge.current&&(C=ge.current),f===ge.current&&F.current.scrollTop>0&&(C=ge.current),J.current=C<ge.current):J.current=!1,d&&xe("DRAG"),h?(xe("SNAP",{payload:{y:C,velocity:g>.05?g:1,source:"dragging"}}),f):(_({y:C,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=VE([n.y,n.maxHeight],(function(e,t){return Math.round(WL(t-e,0,16))+"px"})),o=VE([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return WL(e,t,n)+"px"})),i=VE([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return e<t?t-e+"px":e>n?n-e+"px":"0px"})),s=VE([n.y,n.maxSnap],(function(e,t){return e>=t?Math.ceil(e-t):0})),a=VE([n.y,n.minSnap],(function(e,t){if(!t)return 0;var n=Math.max(t/2-45,0);return WL((e-n)*(1/(Math.min(t/2+45,t)-n)+0),0,1)})),l=VE([n.y,n.minSnap],(function(e,t){return t?WL(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(CT.div,jL({},O,{"data-rsbs-root":!0,"data-rsbs-state":sA.find(Ce.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:jL({},$e,C,{opacity:B.ready})}),r,v&&te.createElement("div",jL({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",jL({key:"header","data-rsbs-header":!0,ref:W},ke()),s),te.createElement("div",jL({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",jL({key:"footer",ref:U,"data-rsbs-footer":!0},ke()),i)))})),sA=["closed","opening","open","closing","dragging","snapping","resizing"];function aA(e){var t=e.lastSnap;return null!=t?t:Math.min.apply(Math,e.snapPoints)}function lA(e){return e.minHeight}var cA=["onSpringStart","onSpringEnd","skipInitialTransition"],dA=ie((function(e,t){var n=e.onSpringStart,r=e.onSpringEnd,o=e.skipInitialTransition,i=FL(e,cA),s=ae(!1),a=s[0],l=s[1],c=se(),d=se(null),u=se(o&&i.open?"OPEN":"CLOSED");qL((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(oS,{"data-rsbs-portal":!0},te.createElement(iA,jL({},i,{lastSnapRef:d,ref:t,initialState:u.current,onSpringStart:h,onSpringEnd:p}))):null}));const uA=ke`
2809
2814
  width: ${Ve(1e3)};
2810
2815
  border-radius: ${Be(300)};
2811
2816
  background: transparent;
@@ -2819,7 +2824,7 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2819
2824
  margin: 0;
2820
2825
  background: ${Ie("neutral",300)};
2821
2826
  }
2822
- `,uA=(e,t)=>ke`
2827
+ `,hA=(e,t)=>ke`
2823
2828
  [data-rsbs-overlay] {
2824
2829
  border-top-left-radius: ${Be(500)};
2825
2830
  border-top-right-radius: ${Be(500)};
@@ -2845,7 +2850,7 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2845
2850
  padding: 0;
2846
2851
  min-height: ${Ve(1600)};
2847
2852
  }
2848
- `;!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 hA=(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},pA=({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=hA(g,y);e>0&&e<y.length-1?w=p.makeFullScreenLabel:e===y.length-1&&(w=p.expandedSheetLabel)}const C=!(null==g||!y.length||hA(g,y)!==y.length-1);return ve(cA,{ref:f,css:uA(!!e,u),className:c,open:r,onDismiss:o,header:be("div",{children:[ve("button",{type:"button",disabled:C,"aria-label":w,css:dA,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,t)=>{let n="14.875rem";return"full-width"===e?n="100%":"large"===e&&(n="22.875rem"),ke`
2853
+ `;!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 pA=(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},fA=({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=pA(g,y);e>0&&e<y.length-1?w=p.makeFullScreenLabel:e===y.length-1&&(w=p.expandedSheetLabel)}const C=!(null==g||!y.length||pA(g,y)!==y.length-1);return ve(dA,{ref:f,css:hA(!!e,u),className:c,open:r,onDismiss:o,header:be("div",{children:[ve("button",{type:"button",disabled:C,"aria-label":w,css:uA,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})},mA=(e,t)=>{let n="14.875rem";return"full-width"===e?n="100%":"large"===e&&(n="22.875rem"),ke`
2849
2854
  width: 100%;
2850
2855
  max-width: ${n};
2851
2856
  border-radius: ${Be(300)};
@@ -2859,7 +2864,7 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2859
2864
  button {
2860
2865
  margin-left: ${t?0:Ve(600)};
2861
2866
  }
2862
- `},mA=ke`
2867
+ `},gA=ke`
2863
2868
  display: flex;
2864
2869
  align-items: baseline;
2865
2870
  gap: ${Ve(200)};
@@ -2867,35 +2872,35 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2867
2872
  svg {
2868
2873
  margin-top: 0.1875rem;
2869
2874
  }
2870
- `,gA=e=>ke`
2875
+ `,bA=e=>ke`
2871
2876
  color: ${Ie("neutral",800)};
2872
2877
  font-size: ${ze("small"===e?300:500)};
2873
2878
  line-height: ${He("small"===e?500:700)};
2874
2879
  font-weight: 400;
2875
2880
  text-align: left;
2876
- `,bA=(e,t)=>ke`
2881
+ `,vA=(e,t)=>ke`
2877
2882
  color: ${Ie("neutral",700)};
2878
2883
  font-size: ${ze("small"===e?200:400)};
2879
2884
  line-height: ${He("small"===e?400:600)};
2880
2885
  font-weight: 400;
2881
2886
  margin-left: ${t?Ve(600):"0"};
2882
2887
  text-align: left;
2883
- `,vA=(e,t)=>ke`
2888
+ `,yA=(e,t)=>ke`
2884
2889
  color: ${Ie("neutral",700)};
2885
2890
  font-size: ${ze("small"===e?200:400)};
2886
2891
  line-height: ${He("small"===e?400:600)};
2887
2892
  font-weight: 400;
2888
2893
  margin-left: ${t?Ve(600):"0"};
2889
2894
  text-align: left;
2890
- `,yA=ke`
2895
+ `,wA=ke`
2891
2896
  background-color: ${Ie("neutral",100)};
2892
2897
  border: ${_e(100)} solid ${Ie("neutral",300)};
2893
2898
  color: ${Ie("neutral",700)};
2894
- `,wA=ke`
2899
+ `,CA=ke`
2895
2900
  background-color: ${Ie("neutral",200)};
2896
2901
  border: ${_e(100)} solid ${Ie("neutral",300)};
2897
2902
  color: ${Ie("neutral",700)};
2898
- `,CA=ke`
2903
+ `,xA=ke`
2899
2904
  background-color: ${Ie("success",100)};
2900
2905
  border: ${_e(100)} solid ${Ie("success",300)};
2901
2906
  color: ${Ie("success",500)};
@@ -2903,7 +2908,7 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2903
2908
  p {
2904
2909
  color: ${Ie("success",900)};
2905
2910
  }
2906
- `,xA=ke`
2911
+ `,kA=ke`
2907
2912
  background-color: ${Ie("warning",100)};
2908
2913
  border: ${_e(100)} solid ${Ie("warning",300)};
2909
2914
  color: ${Ie("warning",500)};
@@ -2911,7 +2916,7 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2911
2916
  p {
2912
2917
  color: ${Ie("warning",900)};
2913
2918
  }
2914
- `,kA=ke`
2919
+ `,$A=ke`
2915
2920
  background-color: ${Ie("error",100)};
2916
2921
  border: ${_e(100)} solid ${Ie("error",300)};
2917
2922
  color: ${Ie("error",500)};
@@ -2919,52 +2924,52 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2919
2924
  p {
2920
2925
  color: ${Ie("error",900)};
2921
2926
  }
2922
- `,$A=({label:e,caption:t,variant:n,size:r="large",icon:o=ve(cg,{height:"1rem",width:"1rem"}),onActionClick:i,actionLabel:s,isButtonRight:a,buttonLeftIcon:l,buttonRightIcon:c,labels:d})=>{const u=tg("InlineMessage",d);let h=yA;"info-grey"===n?h=wA:"success"===n?h=CA:"warning"===n?h=xA:"error"===n&&(h=kA);const p="error"===n||"warning"===n?"alert":"status",f="alert"===p?"assertive":"polite";return be("div",{css:[fA(r,a),h],role:p,"aria-live":f,"aria-roledescription":u.roleDescription,children:[be("div",{children:[be("div",{css:mA,children:[o,ve("string"==typeof e?"p":"div",{css:gA(r),children:e})]}),t&&"string"==typeof t?ve("p",{css:bA(r,!!o),children:t}):t?ve("div",{css:vA(r,!!o),children:t}):null]}),s?ve(ng,{label:s,variant:"info-white"===n||"info-grey"===n?"primary":"secondary",size:"large"===r?"default":"small",onClick:i,leftIcon:l,rightIcon:c}):null]})},SA=ke`
2927
+ `,SA=({label:e,caption:t,variant:n,size:r="large",icon:o=ve(cg,{height:"1rem",width:"1rem"}),onActionClick:i,actionLabel:s,isButtonRight:a,buttonLeftIcon:l,buttonRightIcon:c,labels:d})=>{const u=tg("InlineMessage",d);let h=wA;"info-grey"===n?h=CA:"success"===n?h=xA:"warning"===n?h=kA:"error"===n&&(h=$A);const p="error"===n||"warning"===n?"alert":"status",f="alert"===p?"assertive":"polite";return be("div",{css:[mA(r,a),h],role:p,"aria-live":f,"aria-roledescription":u.roleDescription,children:[be("div",{children:[be("div",{css:gA,children:[o,ve("string"==typeof e?"p":"div",{css:bA(r),children:e})]}),t&&"string"==typeof t?ve("p",{css:vA(r,!!o),children:t}):t?ve("div",{css:yA(r,!!o),children:t}):null]}),s?ve(ng,{label:s,variant:"info-white"===n||"info-grey"===n?"primary":"secondary",size:"large"===r?"default":"small",onClick:i,leftIcon:l,rightIcon:c}):null]})},MA=ke`
2923
2928
  width: 100%;
2924
2929
  min-height: calc(${Ve(1200)} * 12);
2925
2930
  background-color: ${Ie("neutral",100)};
2926
2931
  display: flex;
2927
2932
  flex-direction: column;
2928
- `,MA=ke`
2933
+ `,EA=ke`
2929
2934
  background-color: ${Ie("neutral",200)};
2930
2935
  padding: ${Ve(300)};
2931
2936
  display: flex;
2932
2937
  align-items: center;
2933
2938
  gap: ${Ve(300)};
2934
- `,EA=ke`
2939
+ `,TA=ke`
2935
2940
  flex: 1;
2936
2941
 
2937
2942
  .ds-text-input-container {
2938
2943
  margin-bottom: 0;
2939
2944
  }
2940
- `,TA=ke`
2945
+ `,OA=ke`
2941
2946
  flex-shrink: 0;
2942
2947
  color: ${Ie("neutral",700)};
2943
2948
  font-size: ${ze(400)};
2944
2949
  font-style: normal;
2945
2950
  font-weight: 400;
2946
- `,OA=ke`
2951
+ `,LA=ke`
2947
2952
  flex: 1;
2948
2953
  min-height: 0;
2949
2954
  padding: ${Ve(400)};
2950
2955
  display: flex;
2951
2956
  flex-direction: column;
2952
2957
  gap: ${Ve(300)};
2953
- `,LA=ke`
2958
+ `,AA=ke`
2954
2959
  color: ${Ie("neutral",700)};
2955
2960
  font-size: ${ze(400)};
2956
2961
  line-height: ${He(600)};
2957
2962
  font-weight: 700;
2958
- `,AA=ke`
2959
- width: 100%;
2960
2963
  `,RA=ke`
2964
+ width: 100%;
2965
+ `,NA=ke`
2961
2966
  flex: 1;
2962
2967
  min-height: 0;
2963
2968
  overflow-y: auto;
2964
2969
  display: flex;
2965
2970
  flex-direction: column;
2966
2971
  gap: ${Ve(200)};
2967
- `,NA=ke`
2972
+ `,DA=ke`
2968
2973
  background-color: ${Ie("neutral",200)};
2969
2974
  border: ${_e(100)} solid ${Ie("neutral",300)};
2970
2975
  border-radius: ${Be(300)};
@@ -2990,13 +2995,13 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
2990
2995
  &:active {
2991
2996
  background-color: ${Ie("neutral",300)};
2992
2997
  }
2993
- `,DA=ke`
2998
+ `,PA=ke`
2994
2999
  display: flex;
2995
3000
  flex: 1;
2996
3001
  min-width: 0;
2997
3002
  flex-direction: column;
2998
3003
  gap: ${Ve(50)};
2999
- `,PA=ke`
3004
+ `,IA=ke`
3000
3005
  color: ${Ie("neutral",900)};
3001
3006
  font-size: ${ze(300)};
3002
3007
  line-height: ${He(500)};
@@ -3004,7 +3009,7 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3004
3009
  overflow: hidden;
3005
3010
  text-overflow: ellipsis;
3006
3011
  white-space: nowrap;
3007
- `,IA=ke`
3012
+ `,zA=ke`
3008
3013
  color: ${Ie("neutral",700)};
3009
3014
  font-size: ${ze(300)};
3010
3015
  line-height: ${He(500)};
@@ -3012,7 +3017,7 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3012
3017
  overflow: hidden;
3013
3018
  text-overflow: ellipsis;
3014
3019
  white-space: nowrap;
3015
- `,zA=({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,C]=te.useState(!0),[x,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(jb,{onClick:()=>{S||y("");const e=$.current?.querySelector("input");e&&(e.value="",e.focus()),C(!0)}}):null;let L=Ie("neutral",500);return o?L=Ie("neutral",500):x&&(L=Ie("primary",700)),be("div",{ref:$,css:SA,children:[be("div",{css:MA,children:[ve("div",{css:EA,children:ve(V,{startElement:ve(Bg,{width:"1.25rem",height:"1.25rem",fill:L,"aria-hidden":"true"}),endElement:O,children:ve(Rb,{label:"",value:M,placeholder:t??b.inputAriaLabel,onChange:e=>{S||y(e.target.value),C(!0),m?.(e)},onFocus:e=>{k(!0),C(!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:TA,variant:"borderless",label:b.cancelLabel,onClick:()=>{S||y(""),C(!1);const e=$.current?.querySelector("input");e&&(e.value="",e.blur()),p?.()}})]}),w?be("div",{css:OA,children:[ve("h3",{css:LA,children:T}),n?ve("div",{css:AA,children:ve($A,{label:b.infoLabel,variant:"info-white",size:"full-width"})}):null,ve("ul",{css:RA,"aria-label":T,children:E.map((e=>ve("li",{children:be(R.button,{type:"button",css:NA,onClick:()=>(e=>{f?.(e)})(e),"aria-label":`${e.label}, ${e.caption??""}`,style:{width:"100%"},children:[e.icon??null,be("div",{css:DA,children:[ve("p",{css:PA,children:e.label}),ve("p",{css:IA,children:e.caption})]})]})},e.id)))})]}):null]})},VA=e=>ke`
3020
+ `,VA=({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,C]=te.useState(!0),[x,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(jb,{onClick:()=>{S||y("");const e=$.current?.querySelector("input");e&&(e.value="",e.focus()),C(!0)}}):null;let L=Ie("neutral",500);return o?L=Ie("neutral",500):x&&(L=Ie("primary",700)),be("div",{ref:$,css:MA,children:[be("div",{css:EA,children:[ve("div",{css:TA,children:ve(V,{startElement:ve(Bg,{width:"1.25rem",height:"1.25rem",fill:L,"aria-hidden":"true"}),endElement:O,children:ve(Rb,{label:"",value:M,placeholder:t??b.inputAriaLabel,onChange:e=>{S||y(e.target.value),C(!0),m?.(e)},onFocus:e=>{k(!0),C(!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:OA,variant:"borderless",label:b.cancelLabel,onClick:()=>{S||y(""),C(!1);const e=$.current?.querySelector("input");e&&(e.value="",e.blur()),p?.()}})]}),w?be("div",{css:LA,children:[ve("h3",{css:AA,children:T}),n?ve("div",{css:RA,children:ve(SA,{label:b.infoLabel,variant:"info-white",size:"full-width"})}):null,ve("ul",{css:NA,"aria-label":T,children:E.map((e=>ve("li",{children:be(R.button,{type:"button",css:DA,onClick:()=>(e=>{f?.(e)})(e),"aria-label":`${e.label}, ${e.caption??""}`,style:{width:"100%"},children:[e.icon??null,be("div",{css:PA,children:[ve("p",{css:IA,children:e.label}),ve("p",{css:zA,children:e.caption})]})]})},e.id)))})]}):null]})},HA=e=>ke`
3016
3021
  a,
3017
3022
  p {
3018
3023
  font-size: ${ze("small"===e?200:400)};
@@ -3044,19 +3049,19 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3044
3049
  a:hover {
3045
3050
  text-decoration: underline;
3046
3051
  }
3047
- `,HA=e=>ke`
3052
+ `,BA=e=>ke`
3048
3053
  svg {
3049
3054
  height: ${Ve("small"===e?200:300)};
3050
3055
  width: ${Ve("small"===e?200:300)};
3051
3056
  color: ${Ie("neutral",600)};
3052
3057
  }
3053
- `,BA=ke`
3058
+ `,_A=ke`
3054
3059
  cursor: pointer;
3055
3060
  color: ${Ie("neutral",600)};
3056
3061
  display: flex;
3057
3062
  justify-content: center;
3058
3063
  align-items: center;
3059
- `,_A=({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:VA(o),children:be(a,{to:e[0].link,href:e[0].link,children:[e[0].icon,e[0].label]})}),ve(H.Separator,{css:HA(o),children:t||ve(dg,{rotate:"270"})}),ve("li",{className:"chakra-breadcrumb__item",children:ve("button",{css:BA,type:"button",onClick:()=>s(!1),children:"..."})}),ve(H.Separator,{css:HA(o),children:t||ve(dg,{rotate:"270"})}),ve(H.Item,{css:VA(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:VA(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:HA(o),children:t||ve(dg,{rotate:"270"})}):null]},n.label):null))})})},jA=(e,t)=>ke`
3064
+ `,jA=({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:HA(o),children:be(a,{to:e[0].link,href:e[0].link,children:[e[0].icon,e[0].label]})}),ve(H.Separator,{css:BA(o),children:t||ve(dg,{rotate:"270"})}),ve("li",{className:"chakra-breadcrumb__item",children:ve("button",{css:_A,type:"button",onClick:()=>s(!1),children:"..."})}),ve(H.Separator,{css:BA(o),children:t||ve(dg,{rotate:"270"})}),ve(H.Item,{css:HA(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:HA(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:BA(o),children:t||ve(dg,{rotate:"270"})}):null]},n.label):null))})})},FA=(e,t)=>ke`
3060
3065
  min-height: ${Ve(1400)};
3061
3066
  width: 100vw;
3062
3067
  position: ${e?"sticky":"absolute"};
@@ -3066,7 +3071,7 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3066
3071
  border-top: ${_e(100)} solid
3067
3072
  ${Ie("neutral",400)};
3068
3073
  z-index: 101;
3069
- `,FA=e=>ke`
3074
+ `,qA=e=>ke`
3070
3075
  height: 100%;
3071
3076
  width: 100%;
3072
3077
  max-width: ${null!=e?Me(e):"100%"};
@@ -3081,7 +3086,7 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3081
3086
  flex-direction: column;
3082
3087
  align-items: flex-start;
3083
3088
  }
3084
- `,qA=ke`
3089
+ `,WA=ke`
3085
3090
  display: flex;
3086
3091
  align-items: center;
3087
3092
  flex-wrap: wrap;
@@ -3094,7 +3099,7 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3094
3099
  color: ${Ie("neutral",700)};
3095
3100
  text-decoration: underline;
3096
3101
  }
3097
- `,WA=ke`
3102
+ `,UA=ke`
3098
3103
  width: 15rem;
3099
3104
  font-size: ${ze(300)};
3100
3105
  line-height: ${He(500)};
@@ -3105,17 +3110,17 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3105
3110
  @media screen and (max-width: 48rem) {
3106
3111
  text-align: left;
3107
3112
  }
3108
- `,UA=ke`
3113
+ `,KA=ke`
3109
3114
  display: flex;
3110
3115
  align-items: center;
3111
3116
  gap: ${Ve(400)};
3112
- `,KA=({children:e,label:t="© World Resources Institute",fixed:n,filled:r,maxWidth:o,additionalLogos:i})=>{const s=(new Date).getFullYear();return ve("footer",{css:jA(n,r),children:be("div",{css:FA(o),children:[be("div",{css:UA,children:[ve(yg,{height:"2rem",width:"5.6875rem"}),i&&i.map(((e,t)=>ve("div",{children:e},t)))]}),ve("div",{css:qA,children:e}),ve("div",{children:be("p",{css:WA,children:[t," ",s]})})]})})},ZA=ke`
3117
+ `,ZA=({children:e,label:t="© World Resources Institute",fixed:n,filled:r,maxWidth:o,additionalLogos:i})=>{const s=(new Date).getFullYear();return ve("footer",{css:FA(n,r),children:be("div",{css:qA(o),children:[be("div",{css:KA,children:[ve(yg,{height:"2rem",width:"5.6875rem"}),i&&i.map(((e,t)=>ve("div",{children:e},t)))]}),ve("div",{css:WA,children:e}),ve("div",{children:be("p",{css:UA,children:[t," ",s]})})]})})},GA=ke`
3113
3118
  width: 100%;
3114
3119
  display: flex;
3115
3120
  align-items: center;
3116
3121
  height: ${Ve(1400)};
3117
3122
  background-color: ${Ie("neutral",200)};
3118
- `,GA=ke`
3123
+ `,JA=ke`
3119
3124
  height: ${Ve(1400)};
3120
3125
  width: 99%;
3121
3126
  background-color: ${Ie("neutral",200)};
@@ -3211,9 +3216,9 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3211
3216
  opacity: 1;
3212
3217
  }
3213
3218
  }
3214
- `,JA=ke`
3215
- position: relative;
3216
3219
  `,XA=ke`
3220
+ position: relative;
3221
+ `,YA=ke`
3217
3222
  position: absolute;
3218
3223
  top: -0.3125rem;
3219
3224
  right: -0.3125rem;
@@ -3228,7 +3233,7 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3228
3233
  display: flex;
3229
3234
  justify-content: center;
3230
3235
  align-items: center;
3231
- `,YA=(e,t)=>Math.max(0,e.findIndex((e=>e.value===t))),QA=({defaultValue:e,tabs:t,onTabClick:n,hideLabels:r,activationMode:o="manual",labels:i})=>{const s=tg("MobileTabBar",i),a=t.length,[l,c]=ae((()=>YA(t,e)));return ve("div",{css:ZA,children:ve(B.Root,{width:"full",defaultValue:e||t?.[0]?.value,onValueChange:({value:e})=>(e=>{const r=YA(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:GA,"aria-label":c||n,"aria-disabled":!!u||void 0,"aria-describedby":g,disabled:u,...h,children:[be("div",{css:JA,children:[o,i?ve("div",{css:XA,className:"ds-badge-count",children:i}):null]}),r?null:ve("p",{children:n}),ve(_,{id:p,children:m.join(", ")})]},e.value)}))})})})},eR=(e,t,n,r,o)=>{let i="3rem";return e?i="6rem":o&&(i="1.75rem"),ke`
3236
+ `,QA=(e,t)=>Math.max(0,e.findIndex((e=>e.value===t))),eR=({defaultValue:e,tabs:t,onTabClick:n,hideLabels:r,activationMode:o="manual",labels:i})=>{const s=tg("MobileTabBar",i),a=t.length,[l,c]=ae((()=>QA(t,e)));return ve("div",{css:GA,children:ve(B.Root,{width:"full",defaultValue:e||t?.[0]?.value,onValueChange:({value:e})=>(e=>{const r=QA(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:JA,"aria-label":c||n,"aria-disabled":!!u||void 0,"aria-describedby":g,disabled:u,...h,children:[be("div",{css:XA,children:[o,i?ve("div",{css:YA,className:"ds-badge-count",children:i}):null]}),r?null:ve("p",{children:n}),ve(_,{id:p,children:m.join(", ")})]},e.value)}))})})})},tR=(e,t,n,r,o)=>{let i="3rem";return e?i="6rem":o&&(i="1.75rem"),ke`
3232
3237
  max-height: ${i};
3233
3238
  width: 100%;
3234
3239
  background-color: ${n??Ie("neutral","dark"===r?800:100)};
@@ -3238,7 +3243,7 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3238
3243
  z-index: 102;
3239
3244
  border-bottom: ${_e(100)} solid
3240
3245
  ${Ie("neutral",400)};
3241
- `},tR=(e,t)=>ke`
3246
+ `},nR=(e,t)=>ke`
3242
3247
  height: ${Ve(t?700:1200)};
3243
3248
  width: 100%;
3244
3249
  background-color: ${Ie("neutral","dark"===e?800:100)};
@@ -3249,7 +3254,7 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3249
3254
  justify-content: flex-start;
3250
3255
  gap: 0;
3251
3256
  padding: ${t?0:`${Ve(200)} ${Ve(400)}`};
3252
- `,nR=(e,t,n)=>ke`
3257
+ `,rR=(e,t,n)=>ke`
3253
3258
  height: ${Ve(n?700:1200)};
3254
3259
  width: 100%;
3255
3260
  max-width: ${t?Me(t):"100%"};
@@ -3260,13 +3265,13 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3260
3265
  justify-content: space-between;
3261
3266
  margin: 0 auto;
3262
3267
  padding: ${n?0:`${Ve(200)} ${Ve(400)}`};
3263
- `,rR=(e,t)=>ke`
3268
+ `,oR=(e,t)=>ke`
3264
3269
  display: flex;
3265
3270
  margin: ${t?"-0.0625rem":"0rem"};
3266
3271
  justify-content: flex-start;
3267
3272
  gap: ${Ve(300)};
3268
3273
  color: ${Ie("neutral",e?100:900)};
3269
- `,oR=ke`
3274
+ `,iR=ke`
3270
3275
  outline: none;
3271
3276
 
3272
3277
  a {
@@ -3278,12 +3283,12 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3278
3283
  outline-width: ${Ve(50)};
3279
3284
  }
3280
3285
  }
3281
- `,iR=e=>ke`
3286
+ `,sR=e=>ke`
3282
3287
  display: ${e?"none":"flex"};
3283
3288
  align-items: center;
3284
3289
  justify-content: flex-start;
3285
3290
  gap: 0rem;
3286
- `,sR=(e,t,n)=>ke`
3291
+ `,aR=(e,t,n)=>ke`
3287
3292
  font-size: ${ze(n?300:400)};
3288
3293
  line-height: ${He(600)};
3289
3294
  font-weight: 400;
@@ -3308,12 +3313,12 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3308
3313
  font-weight: 700;
3309
3314
  color: ${Ie("accessible","controls-on-neutral-lights")};
3310
3315
  `:""}
3311
- `,aR=e=>ke`
3316
+ `,lR=e=>ke`
3312
3317
  height: ${Ve(e?700:1200)};
3313
3318
  display: flex;
3314
3319
  align-items: center;
3315
3320
  justify-content: flex-end;
3316
- `,lR=e=>ke`
3321
+ `,cR=e=>ke`
3317
3322
  height: 100%;
3318
3323
  font-size: ${ze(400)};
3319
3324
  line-height: ${He(600)};
@@ -3333,7 +3338,7 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3333
3338
  }
3334
3339
  }
3335
3340
  `:""}
3336
- `,cR=e=>ke`
3341
+ `,dR=e=>ke`
3337
3342
  height: 100%;
3338
3343
  display: flex;
3339
3344
  align-items: center;
@@ -3342,7 +3347,7 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3342
3347
  padding-left: ${Ve(400)};
3343
3348
  border-left: ${_e(100)} solid
3344
3349
  ${Ie("neutral",e?700:300)};
3345
- `,dR=(e="light",t)=>ke`
3350
+ `,uR=(e="light",t)=>ke`
3346
3351
  background-color: none;
3347
3352
  border: none;
3348
3353
  cursor: pointer;
@@ -3368,7 +3373,7 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3368
3373
  outline-width: ${_e(200)};
3369
3374
  background-color: ${Ie("neutral",200)};
3370
3375
  }
3371
- `,uR=(e,t)=>ke`
3376
+ `,hR=(e,t)=>ke`
3372
3377
  position: absolute;
3373
3378
  top: ${Ve(t?700:1200)};
3374
3379
  right: 0;
@@ -3383,10 +3388,10 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3383
3388
  justify-content: flex-start;
3384
3389
  gap: ${Ve(400)};
3385
3390
  transition: width 0.5s ease-in-out;
3386
- `,hR=ke`
3391
+ `,pR=ke`
3387
3392
  height: 100%;
3388
3393
  width: 100%;
3389
- `,pR=e=>ke`
3394
+ `,fR=e=>ke`
3390
3395
  background-color: ${Ie("neutral","dark"===e?800:200)};
3391
3396
  border-bottom: ${_e(100)} solid
3392
3397
  ${Ie("neutral",300)};
@@ -3407,13 +3412,13 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3407
3412
  margin-left: -${Ve(300)};
3408
3413
  }
3409
3414
  }
3410
- `,fR=ke`
3411
- background-color: ${Ie("neutral",100)};
3412
3415
  `,mR=ke`
3416
+ background-color: ${Ie("neutral",100)};
3417
+ `,gR=ke`
3413
3418
  min-height: 100vh;
3414
3419
  width: 100%;
3415
3420
  overflow-y: scroll;
3416
- `;ke``;const gR=e=>ke`
3421
+ `;ke``;const bR=e=>ke`
3417
3422
  display: inline-block;
3418
3423
  width: 100%;
3419
3424
  padding: ${Ve(300)} ${Ve(400)};
@@ -3442,7 +3447,7 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3442
3447
  outline-width: ${_e(200)};
3443
3448
  background-color: ${Ie("neutral",200)};
3444
3449
  }
3445
- `,bR=ke`
3450
+ `,vR=ke`
3446
3451
  width: 100%;
3447
3452
  padding: ${Ve(300)} ${Ve(400)};
3448
3453
  display: flex;
@@ -3466,7 +3471,7 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3466
3471
  outline-width: ${_e(200)};
3467
3472
  background-color: ${Ie("neutral",200)};
3468
3473
  }
3469
- `,vR=e=>ke`
3474
+ `,yR=e=>ke`
3470
3475
  position: absolute;
3471
3476
  top: 0rem;
3472
3477
  right: 0;
@@ -3478,7 +3483,7 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3478
3483
  align-items: flex-start;
3479
3484
  justify-content: flex-start;
3480
3485
  transition: width 0.5s ease-in-out;
3481
- `,yR=ke`
3486
+ `,wR=ke`
3482
3487
  height: ${Ve(1200)};
3483
3488
  width: 100%;
3484
3489
  display: flex;
@@ -3490,7 +3495,7 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3490
3495
  position: relative;
3491
3496
  top: 0;
3492
3497
  left: 0;
3493
- `,wR=ke`
3498
+ `,CR=ke`
3494
3499
  position: absolute;
3495
3500
  bottom: 0;
3496
3501
  left: 0;
@@ -3505,7 +3510,7 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3505
3510
  button {
3506
3511
  width: calc(48% - 1.5rem);
3507
3512
  }
3508
- `,CR=({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:uR(s,d),children:s&&be("div",{css:hR,children:[be("div",{style:{overflowY:"scroll",width:"100%",height:"100%",paddingBottom:"4.5rem"},children:[r?ve("div",{css:pR(e),children:r?.map((e=>ve("div",{className:"ds-utility-item",children:e})))}):null,n?ve("div",{css:fR,children:n.map(((e,t)=>e.link?ve(b,{to:e.link,href:e.link,onClick:()=>{h(void 0),f(-1),a(!1)},css:gR(l===e.link),children:e.label},e.label):be("button",{css:bR,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:wR,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:vR(!!u?.items),children:u?.items?be(ye,{children:[be("div",{css:yR,children:[be("button",{type:"button",onClick:()=>{h(void 0),f(-1),g.current[p]?.focus()},"aria-label":c.goBackLabel,css:dR(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:dR(e),children:[c.closeButtonText,ve(hg,{height:"1rem",width:"1rem"})]})]}),ve("div",{css:mR,children:u?.items?.map((e=>ve(b,{to:e.link,href:e.link,css:gR(),onClick:()=>{h(void 0),f(-1),a(!1)},children:e.label},e.label)))})]}):null})]})},xR=1023,kR=({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),[C,x]=ae("undefined"!=typeof window&&window?.innerWidth<=xR),[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<=xR||window.innerWidth<=y?(d?.(96),v(!0)):window.innerWidth>xR&&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<=xR||n.right>=t.left?(x(!0),d?.(48)):(x(!1),d?.(96)))}}),[y,b]);ce((()=>(M(),window.addEventListener("resize",M),()=>{window.removeEventListener("resize",M)})),[M]);const E="condensed"===e;return be("nav",{css:eR(b&&!C,c,u,t,E),children:[be("div",{css:nR(b&&!C,l,E),children:[be("div",{css:rR(b&&!C||"dark"===t,E),ref:f,children:[n?ve("div",{ref:g,css:oR,children:n}):null,ve("div",{css:iR(b),children:i?.map((e=>e.link?ve(S,{to:e.link,href:e.link,css:sR(o===e.link,t,E),children:e.label},e.label):ve(nb,{theme:t,label:e.label,fontSize:E?"0.875rem":"1rem",items:e.items||[]},e.label)))})]}),ve("div",{css:aR(E),ref:m,children:C?be("button",{type:"button",onClick:()=>$(!k),"aria-label":k?p.closeMenuLabel:p.openMenuLabel,"aria-expanded":k,css:dR(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:aR(E),children:s?.map(((e,t)=>ve("div",{css:lR(b),children:e},t)))}),a?.length?ve("div",{css:cR(b),children:a.map((e=>ve(ng,{...e},e.ariaLabel)))}):null]})})]}),b&&!C?ve("div",{css:tR(t,E),children:i?.map((e=>e.link?ve(S,{to:e.link,href:e.link,css:sR(o===e.link,t,E),children:e.label},e.label):ve(nb,{theme:t,label:e.label,fontSize:E?"0.875rem":"1rem",items:e.items||[]},e.label)))}):null,C?ve(CR,{theme:t,variant:e,navigationSection:i,utilitySection:s,actionsSection:a,linkRouter:r,isOpen:k,setIsOpen:$,pathname:o,resolvedLabels:p}):null]})},$R=ke`
3513
+ `,xR=({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:hR(s,d),children:s&&be("div",{css:pR,children:[be("div",{style:{overflowY:"scroll",width:"100%",height:"100%",paddingBottom:"4.5rem"},children:[r?ve("div",{css:fR(e),children:r?.map((e=>ve("div",{className:"ds-utility-item",children:e})))}):null,n?ve("div",{css:mR,children:n.map(((e,t)=>e.link?ve(b,{to:e.link,href:e.link,onClick:()=>{h(void 0),f(-1),a(!1)},css:bR(l===e.link),children:e.label},e.label):be("button",{css:vR,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:CR,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:yR(!!u?.items),children:u?.items?be(ye,{children:[be("div",{css:wR,children:[be("button",{type:"button",onClick:()=>{h(void 0),f(-1),g.current[p]?.focus()},"aria-label":c.goBackLabel,css:uR(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:uR(e),children:[c.closeButtonText,ve(hg,{height:"1rem",width:"1rem"})]})]}),ve("div",{css:gR,children:u?.items?.map((e=>ve(b,{to:e.link,href:e.link,css:bR(),onClick:()=>{h(void 0),f(-1),a(!1)},children:e.label},e.label)))})]}):null})]})},kR=1023,$R=({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),[C,x]=ae("undefined"!=typeof window&&window?.innerWidth<=kR),[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<=kR||window.innerWidth<=y?(d?.(96),v(!0)):window.innerWidth>kR&&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<=kR||n.right>=t.left?(x(!0),d?.(48)):(x(!1),d?.(96)))}}),[y,b]);ce((()=>(M(),window.addEventListener("resize",M),()=>{window.removeEventListener("resize",M)})),[M]);const E="condensed"===e;return be("nav",{css:tR(b&&!C,c,u,t,E),children:[be("div",{css:rR(b&&!C,l,E),children:[be("div",{css:oR(b&&!C||"dark"===t,E),ref:f,children:[n?ve("div",{ref:g,css:iR,children:n}):null,ve("div",{css:sR(b),children:i?.map((e=>e.link?ve(S,{to:e.link,href:e.link,css:aR(o===e.link,t,E),children:e.label},e.label):ve(nb,{theme:t,label:e.label,fontSize:E?"0.875rem":"1rem",items:e.items||[]},e.label)))})]}),ve("div",{css:lR(E),ref:m,children:C?be("button",{type:"button",onClick:()=>$(!k),"aria-label":k?p.closeMenuLabel:p.openMenuLabel,"aria-expanded":k,css:uR(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:lR(E),children:s?.map(((e,t)=>ve("div",{css:cR(b),children:e},t)))}),a?.length?ve("div",{css:dR(b),children:a.map((e=>ve(ng,{...e},e.ariaLabel)))}):null]})})]}),b&&!C?ve("div",{css:nR(t,E),children:i?.map((e=>e.link?ve(S,{to:e.link,href:e.link,css:aR(o===e.link,t,E),children:e.label},e.label):ve(nb,{theme:t,label:e.label,fontSize:E?"0.875rem":"1rem",items:e.items||[]},e.label)))}):null,C?ve(xR,{theme:t,variant:e,navigationSection:i,utilitySection:s,actionsSection:a,linkRouter:r,isOpen:k,setIsOpen:$,pathname:o,resolvedLabels:p}):null]})},SR=ke`
3509
3514
  width: ${Ve(1600)};
3510
3515
  height: 100%;
3511
3516
  z-index: 100;
@@ -3515,7 +3520,7 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3515
3520
  display: flex;
3516
3521
  flex-direction: column;
3517
3522
  justify-content: space-between;
3518
- `,SR=ke`
3523
+ `,MR=ke`
3519
3524
  width: ${Ve(1600)};
3520
3525
  height: ${Ve(1600)};
3521
3526
  background-color: ${Ie("neutral",200)};
@@ -3606,7 +3611,7 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3606
3611
  }
3607
3612
  }
3608
3613
  }
3609
- `,MR=ke`
3614
+ `,ER=ke`
3610
3615
  display: flex;
3611
3616
  justify-content: center;
3612
3617
  align-items: center;
@@ -3619,7 +3624,7 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3619
3624
  fill: ${Ie("neutral",600)};
3620
3625
  }
3621
3626
  }
3622
- `,ER=ke`
3627
+ `,TR=ke`
3623
3628
  width: ${Ve(1600)};
3624
3629
  height: ${Ve(1600)};
3625
3630
  background-color: ${Ie("neutral",200)};
@@ -3657,7 +3662,7 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3657
3662
  text-align: center;
3658
3663
  color: ${Ie("neutral",600)};
3659
3664
  }
3660
- `,TR=ke`
3665
+ `,OR=ke`
3661
3666
  width: 20rem;
3662
3667
  height: 100%;
3663
3668
  z-index: 100;
@@ -3667,7 +3672,7 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3667
3672
  overflow-x: hidden;
3668
3673
  border-right: ${_e(100)} solid
3669
3674
  ${Ie("neutral",300)};
3670
- `,OR=({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:$R,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:SR,"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:MR,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:ER,children:[ve("div",{css:MR,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:TR,role:"tabpanel","aria-labelledby":d,children:o})})}):null]})},LR=e=>ke`
3675
+ `,LR=({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:SR,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:MR,"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:ER,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:TR,children:[ve("div",{css:ER,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]})},AR=e=>ke`
3671
3676
  width: 100%;
3672
3677
  display: flex;
3673
3678
  align-items: center;
@@ -3676,7 +3681,7 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3676
3681
  ${"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 `}
3677
3682
 
3678
3683
  ${"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 `}
3679
- `,AR=ke`
3684
+ `,RR=ke`
3680
3685
  width: 99%;
3681
3686
  height: ${Ve(1e3)};
3682
3687
  padding: ${Ve(200)} ${Ve(400)};
@@ -3692,7 +3697,7 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3692
3697
  &:focus-visible {
3693
3698
  box-shadow: none;
3694
3699
  }
3695
- `,RR=ke`
3700
+ `,NR=ke`
3696
3701
  background-color: ${Ie("neutral",200)};
3697
3702
  color: ${Ie("neutral",700)};
3698
3703
 
@@ -3749,11 +3754,11 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3749
3754
  opacity: 1;
3750
3755
  }
3751
3756
  }
3752
- `,NR=ke`
3757
+ `,DR=ke`
3753
3758
  width: ${Ve(100)};
3754
3759
  height: ${Ve(600)};
3755
3760
  background-color: ${Ie("neutral",400)};
3756
- `,DR=ke`
3761
+ `,PR=ke`
3757
3762
  height: ${Ve(800)};
3758
3763
  border-radius: ${Be(200)};
3759
3764
  background-color: ${Ie("neutral",200)};
@@ -3828,7 +3833,7 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3828
3833
  opacity: 1;
3829
3834
  }
3830
3835
  }
3831
- `,PR=ke`
3836
+ `,IR=ke`
3832
3837
  background-color: transparent;
3833
3838
  color: ${Ie("neutral",600)};
3834
3839
  width: auto;
@@ -3905,7 +3910,7 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3905
3910
  }
3906
3911
  }
3907
3912
  }
3908
- `,IR=(e,t)=>Math.max(0,e.findIndex((e=>e.value===t))),zR=e=>1===e?"none":2===e?"left":"right",VR=({variant:e="panel",defaultValue:t,tabs:n,onTabClick:o,activationMode:i="manual"})=>{const[s,a]=ae(IR(n,t)||0);return ve("div",{css:LR(e),children:ve(B.Root,{width:"full",defaultValue:t||n?.[0]?.value,onValueChange:({value:e})=>{return a(IR(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"===zR(s)?ve("div",{css:NR}):null,ve(B.Trigger,{css:[AR,"view"===e&&DR,"panel"===e&&RR,"transparent"===e&&PR],"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"===zR(s)?ve("div",{css:NR}):null]},t.label)))})})})},HR=Ie("neutral",700),BR=ke`
3913
+ `,zR=(e,t)=>Math.max(0,e.findIndex((e=>e.value===t))),VR=e=>1===e?"none":2===e?"left":"right",HR=({variant:e="panel",defaultValue:t,tabs:n,onTabClick:o,activationMode:i="manual"})=>{const[s,a]=ae(zR(n,t)||0);return ve("div",{css:AR(e),children:ve(B.Root,{width:"full",defaultValue:t||n?.[0]?.value,onValueChange:({value:e})=>{return a(zR(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"===VR(s)?ve("div",{css:DR}):null,ve(B.Trigger,{css:[RR,"view"===e&&PR,"panel"===e&&NR,"transparent"===e&&IR],"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"===VR(s)?ve("div",{css:DR}):null]},t.label)))})})})},BR=Ie("neutral",700),_R=ke`
3909
3914
  position: relative;
3910
3915
  width: 100%;
3911
3916
 
@@ -3918,12 +3923,12 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3918
3923
  &[data-open='true'][data-placement='top'] input {
3919
3924
  border-bottom-left-radius: ${Be(300)};
3920
3925
  border-bottom-right-radius: ${Be(300)};
3921
- border-bottom-color: ${HR};
3926
+ border-bottom-color: ${BR};
3922
3927
  border-top-left-radius: 0;
3923
3928
  border-top-right-radius: 0;
3924
3929
  border-top-color: transparent;
3925
3930
  }
3926
- `,_R=ke`
3931
+ `,jR=ke`
3927
3932
  width: 100%;
3928
3933
  z-index: 1000;
3929
3934
  overflow-y: auto;
@@ -3937,7 +3942,7 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3937
3942
  margin-top: calc(${_e(100)} * -1);
3938
3943
  border-top-left-radius: 0;
3939
3944
  border-top-right-radius: 0;
3940
- border-top: ${_e(100)} solid ${HR};
3945
+ border-top: ${_e(100)} solid ${BR};
3941
3946
 
3942
3947
  &[data-placement^='top'] {
3943
3948
  margin-top: 0;
@@ -3948,12 +3953,12 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3948
3953
  ${Ie("neutral",400)};
3949
3954
  border-bottom-left-radius: 0;
3950
3955
  border-bottom-right-radius: 0;
3951
- border-bottom: ${_e(100)} solid ${HR};
3956
+ border-bottom: ${_e(100)} solid ${BR};
3952
3957
  box-shadow:
3953
3958
  0 -0.25rem 0.375rem -0.25rem #0000001a,
3954
3959
  0 -0.625rem 0.9375rem -0.1875rem #0000001a;
3955
3960
  }
3956
- `,jR=ke`
3961
+ `,FR=ke`
3957
3962
  padding: ${Ve(200)};
3958
3963
  border-radius: ${Be(300)};
3959
3964
  cursor: pointer;
@@ -3974,7 +3979,7 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
3974
3979
  &:active {
3975
3980
  background-color: ${Hm(40)};
3976
3981
  }
3977
- `,FR=({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)))})},qR=({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:jR,"data-highlighted":i===o||void 0,onClick:()=>n(e.id||s),children:"string"==typeof e.label||"number"==typeof e.label?ve(FR,{text:String(e.label),query:t}):e.label},e.id)}))})},WR=e=>e.searchLabel?e.searchLabel:"string"==typeof e.label||"number"==typeof e.label?String(e.label):"",UR=({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:C}=q(),[x,k]=ae(i),[$,S]=ae(-1),[M,E]=ae(!1),[T,O]=ae("pointer"),L=se(null),{contentRef:A,placement:R}=Ly(),N=`search-results-${he()}`,D=e=>{const t=i.find((t=>t.id===e||WR(t)===e));t&&(d?.(t),v(""),C())};ce((()=>{if(h?.(b),!b)return void k(i);const e=i.filter((e=>{const t=b.toLowerCase();return e.id?.toLowerCase().includes(t)||WR(e).toLowerCase().includes(t)||e.caption?.toLowerCase().includes(t)})).map((e=>({id:e.id??WR(e),label:e.label,searchLabel:e.searchLabel,caption:e.caption,variant:"select",icon:e.icon,onItemClick:()=>D(e.id||WR(e))})));k(e),w()}),[b]);const P=b.length?ve(jb,{onClick:()=>{v(""),p?.()}}):null,I="none"!==c&&!!b.length&&x.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||C()},autoFocus:!1,closeOnEscape:!1,positioning:{sameWidth:!0,gutter:0},children:[be("div",{ref:L,css:BR,"data-open":z||void 0,"data-placement":R,children:[ve(u.Anchor,{children:ve(V,{startElement:ve(Bg,{width:B,height:B,fill:H}),endElement:P,children:ve(Rb,{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":N,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,x.length-1)))),"ArrowUp"===e.key&&(e.preventDefault(),O("keyboard"),S((e=>Math.max(e-1,0)))),"Enter"===e.key&&(e.preventDefault(),$>=0)){const e=x[$];D(e.id||WR(e))}"Escape"===e.key&&C()}}})})}),(I||l&&!!b.length)&&"custom"===c&&f&&!l&&f({items:x,highlightedIndex:$,query:b,onSelect:D})]}),ve(a,{children:ve(u.Positioner,{children:be(u.Content,{ref:A,css:_R,style:{maxHeight:_},"data-nav-source":T,onPointerMove:()=>O("pointer"),children:[l&&ve(r,{padding:"1rem",children:ve(o,{})}),"text"===c&&!l&&ve(qR,{highlightedIndex:$,items:x,query:b,onSelect:D}),"list"===c&&!l&&ve(mk,{items:x,highlightedIndex:$})]})})})]})},KR={small:Ve(400),medium:Ve(600),large:Ve(1e3),default:Ve(400)};function ZR(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=Ie("neutral",n?400:800);return ke`
3982
+ `,qR=({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:FR,"data-highlighted":i===o||void 0,onClick:()=>n(e.id||s),children:"string"==typeof e.label||"number"==typeof e.label?ve(qR,{text:String(e.label),query:t}):e.label},e.id)}))})},UR=e=>e.searchLabel?e.searchLabel:"string"==typeof e.label||"number"==typeof e.label?String(e.label):"",KR=({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:C}=q(),[x,k]=ae(i),[$,S]=ae(-1),[M,E]=ae(!1),[T,O]=ae("pointer"),L=se(null),{contentRef:A,placement:R}=Ly(),N=`search-results-${he()}`,D=e=>{const t=i.find((t=>t.id===e||UR(t)===e));t&&(d?.(t),v(""),C())};ce((()=>{if(h?.(b),!b)return void k(i);const e=i.filter((e=>{const t=b.toLowerCase();return e.id?.toLowerCase().includes(t)||UR(e).toLowerCase().includes(t)||e.caption?.toLowerCase().includes(t)})).map((e=>({id:e.id??UR(e),label:e.label,searchLabel:e.searchLabel,caption:e.caption,variant:"select",icon:e.icon,onItemClick:()=>D(e.id||UR(e))})));k(e),w()}),[b]);const P=b.length?ve(jb,{onClick:()=>{v(""),p?.()}}):null,I="none"!==c&&!!b.length&&x.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||C()},autoFocus:!1,closeOnEscape:!1,positioning:{sameWidth:!0,gutter:0},children:[be("div",{ref:L,css:_R,"data-open":z||void 0,"data-placement":R,children:[ve(u.Anchor,{children:ve(V,{startElement:ve(Bg,{width:B,height:B,fill:H}),endElement:P,children:ve(Rb,{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":N,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,x.length-1)))),"ArrowUp"===e.key&&(e.preventDefault(),O("keyboard"),S((e=>Math.max(e-1,0)))),"Enter"===e.key&&(e.preventDefault(),$>=0)){const e=x[$];D(e.id||UR(e))}"Escape"===e.key&&C()}}})})}),(I||l&&!!b.length)&&"custom"===c&&f&&!l&&f({items:x,highlightedIndex:$,query:b,onSelect:D})]}),ve(a,{children:ve(u.Positioner,{children:be(u.Content,{ref:A,css:jR,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:x,query:b,onSelect:D}),"list"===c&&!l&&ve(gk,{items:x,highlightedIndex:$})]})})})]})},ZR={small:Ve(400),medium:Ve(600),large:Ve(1e3),default:Ve(400)};function GR(e,t,n,r){const o=function(e,t){return null!=t&&""!==t?Me(t):e&&ZR[e]?ZR[e]:ZR.default}(e,t),i=n?Ie("neutral",200):Ie("primary",300),s=r??i,a=r&&n?"opacity: 0.7;":"",l=Ie("neutral",n?400:800);return ke`
3978
3983
  height: ${o};
3979
3984
  width: ${o};
3980
3985
  border-radius: 50%;
@@ -4009,17 +4014,17 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
4009
4014
  background-color: ${Ie("primary",500)};
4010
4015
  }
4011
4016
  }
4012
- `}const GR=e=>ke`
4017
+ `}const JR=e=>ke`
4013
4018
  width: ${e||Ve(400)};
4014
4019
  position: absolute;
4015
4020
  top: -${Ve(200)};
4016
4021
  left: 0.9375rem;
4017
- `,JR=ke`
4022
+ `,XR=ke`
4018
4023
  font-size: ${ze(200)};
4019
4024
  line-height: ${He(400)};
4020
4025
  font-weight: 700;
4021
4026
  color: ${Ie("primary",800)};
4022
- `,XR=ie((({name:e,ariaLabel:t,size:n="medium",customSize:r,src:o,srcSet:i,onClick:s,notificationCount:a,disabled:l=!0,customBackgroundColor:c="",labels:d},u)=>{const h=tg("Avatar",d),p=()=>{l||s?.()},f=(()=>{let e="";return a&&a>0&&(e=`${a>99?"99+":a}`),e})();let m="1rem";a&&a>99?m="1.75rem":a&&a>9&&(m="1.375rem");const g=!!o||!!i,b=s&&!l;return be(W.Root,{"aria-label":t||e,ref:u,css:ZR(n,r,l,c),onClick:p,onKeyDown:e=>{l||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),p())},role:b?"button":"img",tabIndex:b?0:void 0,"aria-disabled":b?l:void 0,children:[g&&ve(W.Image,{src:o,srcSet:i,alt:t||e||"Avatar image"}),!g&&e&&ve(W.Fallback,{name:e,css:JR}),!g&&!e&&ve(zg,{size:"100%",style:{padding:"15%",color:l?Ie("neutral",400):void 0}}),f.length>0?ve("div",{css:GR(m),children:ve("div",{css:ke`
4027
+ `,YR=ie((({name:e,ariaLabel:t,size:n="medium",customSize:r,src:o,srcSet:i,onClick:s,notificationCount:a,disabled:l=!0,customBackgroundColor:c="",labels:d},u)=>{const h=tg("Avatar",d),p=()=>{l||s?.()},f=(()=>{let e="";return a&&a>0&&(e=`${a>99?"99+":a}`),e})();let m="1rem";a&&a>99?m="1.75rem":a&&a>9&&(m="1.375rem");const g=!!o||!!i,b=s&&!l;return be(W.Root,{"aria-label":t||e,ref:u,css:GR(n,r,l,c),onClick:p,onKeyDown:e=>{l||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),p())},role:b?"button":"img",tabIndex:b?0:void 0,"aria-disabled":b?l:void 0,children:[g&&ve(W.Image,{src:o,srcSet:i,alt:t||e||"Avatar image"}),!g&&e&&ve(W.Fallback,{name:e,css:XR}),!g&&!e&&ve(zg,{size:"100%",style:{padding:"15%",color:l?Ie("neutral",400):void 0}}),f.length>0?ve("div",{css:JR(m),children:ve("div",{css:ke`
4023
4028
  height: ${Ve(400)};
4024
4029
  width: auto;
4025
4030
  background-color: ${Ie("error",500)};
@@ -4032,15 +4037,15 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
4032
4037
  line-height: ${He(400)};
4033
4038
  font-weight: 700;
4034
4039
  color: ${Ie("error",100)};
4035
- `,children:ve("p",{"aria-label":h.unreadMessagesLabel(a||0),children:f})})}):null]})})),YR={small:{fontSize:Ee(8),boxSize:Ee(10),padding:Ee(2)},large:{fontSize:Ee(12),boxSize:Ee(20),padding:`${Ee(2)} ${Ee(4)}`}},QR=ke`
4040
+ `,children:ve("p",{"aria-label":h.unreadMessagesLabel(a||0),children:f})})}):null]})})),QR={small:{fontSize:Ee(8),boxSize:Ee(10),padding:Ee(2)},large:{fontSize:Ee(12),boxSize:Ee(20),padding:`${Ee(2)} ${Ee(4)}`}},eN=ke`
4036
4041
  display: flex;
4037
4042
  justify-content: flex-start;
4038
4043
  align-items: center;
4039
4044
  gap: ${Ve(200)};
4040
- `,eN=e=>ke`
4045
+ `,tN=e=>ke`
4041
4046
  position: relative;
4042
4047
  display: flex;
4043
- `,tN=(e="large")=>{const t=Ve("small"===e?100:200);return ke`
4048
+ `,nN=(e="large")=>{const t=Ve("small"===e?100:200);return ke`
4044
4049
  height: ${t};
4045
4050
  width: ${t};
4046
4051
  background-color: ${Ie("error",500)};
@@ -4048,7 +4053,7 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
4048
4053
  position: absolute;
4049
4054
  top: 0rem;
4050
4055
  right: 0rem;
4051
- `},nN=(e="large")=>{const{boxSize:t,padding:n}=YR[e];return ke`
4056
+ `},rN=(e="large")=>{const{boxSize:t,padding:n}=QR[e];return ke`
4052
4057
  background-color: ${Ie("error",500)};
4053
4058
  padding: ${n};
4054
4059
  border-radius: 9999px;
@@ -4062,12 +4067,12 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
4062
4067
  width: auto;
4063
4068
  min-width: ${t};
4064
4069
  height: ${t};
4065
- `},rN=(e="large")=>{const{fontSize:t}=YR[e];return ke`
4070
+ `},oN=(e="large")=>{const{fontSize:t}=QR[e];return ke`
4066
4071
  font-size: ${t};
4067
4072
  line-height: 1;
4068
4073
  font-weight: 700;
4069
4074
  color: ${Ie("error",100)};
4070
- `},oN=(e="large")=>{const{boxSize:t}=YR[e];return ke`
4075
+ `},iN=(e="large")=>{const{boxSize:t}=QR[e];return ke`
4071
4076
  height: ${t};
4072
4077
  min-width: ${t};
4073
4078
  background-color: ${Ie("error",500)};
@@ -4076,12 +4081,12 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
4076
4081
  justify-content: center;
4077
4082
  align-items: center;
4078
4083
  padding: 0rem ${Ve(100)} 0.0625rem ${Ve(100)};
4079
- `},iN=(e="large")=>{const{fontSize:t}=YR[e];return ke`
4084
+ `},sN=(e="large")=>{const{fontSize:t}=QR[e];return ke`
4080
4085
  font-size: ${t};
4081
4086
  line-height: ${He(600)};
4082
4087
  font-weight: 700;
4083
4088
  color: ${Ie("error",100)};
4084
- `},sN=({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?{css:QR,role:"status","aria-live":"polite",children:[be("div",{css:eN(),children:[ve(wg,{color:"currentColor",height:d,width:d}),!e||t||n?null:ve("div",{css:tN(i),"aria-hidden":!0})]}),n?ve("p",{children:n}):null,c.length>0?ve("div",{css:oN(i),children:ve("p",{css:iN(i),"aria-label":s.unreadMessagesLabel(t||0),children:c})}):null]}:{css:QR,role:"status","aria-live":"polite",children:[n?ve("p",{children:n}):null,be("div",{css:eN(),children:[c.length>0?ve("div",{css:nN(i),children:ve("p",{css:rN(i),"aria-label":s.unreadMessagesLabel(t||0),children:c})}):null,e&&!t?ve("div",{css:tN(i),"aria-hidden":!0}):null,o??ve(wg,{color:"currentColor",height:d,width:d})]})]})},aN=(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`
4089
+ `},aN=({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?{css:eN,role:"status","aria-live":"polite",children:[be("div",{css:tN(),children:[ve(wg,{color:"currentColor",height:d,width:d}),!e||t||n?null:ve("div",{css:nN(i),"aria-hidden":!0})]}),n?ve("p",{children:n}):null,c.length>0?ve("div",{css:iN(i),children:ve("p",{css:sN(i),"aria-label":s.unreadMessagesLabel(t||0),children:c})}):null]}:{css:eN,role:"status","aria-live":"polite",children:[n?ve("p",{children:n}):null,be("div",{css:tN(),children:[c.length>0?ve("div",{css:rN(i),children:ve("p",{css:oN(i),"aria-label":s.unreadMessagesLabel(t||0),children:c})}):null,e&&!t?ve("div",{css:nN(i),"aria-hidden":!0}):null,o??ve(wg,{color:"currentColor",height:d,width:d})]})]})},lN=(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`
4085
4090
  display: ${"inline"===t?"inline-flex":"flex"};
4086
4091
  width: ${"inline"===t?"fit-content":"100%"};
4087
4092
  max-width: 100%;
@@ -4092,38 +4097,38 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
4092
4097
  background-color: ${r};
4093
4098
  border-bottom: ${_e(100)} solid ${i};
4094
4099
  border-radius: 0;
4095
- `},lN=e=>ke`
4100
+ `},cN=e=>ke`
4096
4101
  rotate: ${"error"===e?"180deg":""};
4097
4102
  svg {
4098
4103
  width: 1rem;
4099
4104
  height: 1rem;
4100
4105
  }
4101
- `,cN=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:aN(r,a,s),children:[ve(U.Indicator,{css:lN(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(jb,{"aria-label":c.closeAlertLabel,pos:"absolute",top:"1rem",insetEnd:"2",onClick:()=>{u(!1),o?.()}})]}):null})),dN=ke`
4106
+ `,dN=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:lN(r,a,s),children:[ve(U.Indicator,{css:cN(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(jb,{"aria-label":c.closeAlertLabel,pos:"absolute",top:"1rem",insetEnd:"2",onClick:()=>{u(!1),o?.()}})]}):null})),uN=ke`
4102
4107
  height: ${Ve(200)};
4103
4108
  width: 100%;
4104
4109
  background-color: ${Ie("neutral",300)};
4105
4110
  display: flex;
4106
4111
  align-items: center;
4107
4112
  justify-content: flex-start;
4108
- `,uN=(e,t)=>ke`
4113
+ `,hN=(e,t)=>ke`
4109
4114
  height: 100%;
4110
4115
  width: ${e}%;
4111
4116
  background-color: ${t??Ie("primary",500)};
4112
4117
  transition: width 0.5s ease-in-out;
4113
- `,hN=({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:dN,role:"progressbar","aria-label":r.progressAriaLabel(o),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":o,children:ve("div",{css:uN(o,n)})})},pN=ke`
4118
+ `,pN=({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:uN,role:"progressbar","aria-label":r.progressAriaLabel(o),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":o,children:ve("div",{css:hN(o,n)})})},fN=ke`
4114
4119
  width: 100%;
4115
4120
  display: flex;
4116
4121
  align-items: center;
4117
4122
  justify-content: space-between;
4118
4123
  position: relative;
4119
- `,fN=ke`
4124
+ `,mN=ke`
4120
4125
  height: 3.75rem;
4121
4126
  width: ${Ve(2e3)};
4122
4127
  display: flex;
4123
4128
  flex-direction: column;
4124
4129
  align-items: center;
4125
4130
  justify-content: space-between;
4126
- `,mN=(e,t)=>ke`
4131
+ `,gN=(e,t)=>ke`
4127
4132
  height: ${Ve(800)};
4128
4133
  width: ${Ve(800)};
4129
4134
  display: flex;
@@ -4159,12 +4164,12 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
4159
4164
  }
4160
4165
 
4161
4166
  ${t?`\n background-color: ${Ie("neutral",300)};\n \n &:hover {\n background-color: ${Ie("neutral",300)};\n box-shadow: none;\n }\n `:""}
4162
- `,gN=e=>ke`
4167
+ `,bN=e=>ke`
4163
4168
  color: ${Ie("neutral",e?800:600)};
4164
4169
  font-size: ${ze(300)};
4165
4170
  line-height: ${He(500)};
4166
4171
  font-weight: 400;
4167
- `,bN=ke`
4172
+ `,vN=ke`
4168
4173
  height: ${_e(100)};
4169
4174
  width: 100%;
4170
4175
  padding: 0 1.875rem;
@@ -4172,25 +4177,25 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
4172
4177
  top: ${Ve(400)};
4173
4178
  left: 0;
4174
4179
  z-index: -1;
4175
- `,vN=ke`
4180
+ `,yN=ke`
4176
4181
  height: ${_e(100)};
4177
4182
  width: 100%;
4178
4183
  background-color: ${Ie("neutral",400)};
4179
- `,yN=({steps:e,currentStep:t,labels:n})=>{const r=tg("StepProgressIndicator",n);return be("div",{css:pN,children:[e.map(((e,n)=>be("div",{css:fN,children:[ve("button",{css:mN(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:gN(t===n+1),children:e.label}):null]},`${e.label}-${n}`))),ve("div",{css:bN,children:ve("div",{css:vN})})]})},wN=ke`
4184
+ `,wN=({steps:e,currentStep:t,labels:n})=>{const r=tg("StepProgressIndicator",n);return be("div",{css:fN,children:[e.map(((e,n)=>be("div",{css:mN,children:[ve("button",{css:gN(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:bN(t===n+1),children:e.label}):null]},`${e.label}-${n}`))),ve("div",{css:vN,children:ve("div",{css:yN})})]})},CN=ke`
4180
4185
  font-size: ${ze(500)};
4181
4186
  line-height: ${He(700)};
4182
4187
  font-weight: 400;
4183
4188
  color: ${Ie("neutral",800)};
4184
- `,CN=ke`
4189
+ `,xN=ke`
4185
4190
  font-size: ${ze(400)};
4186
4191
  line-height: ${He(600)};
4187
4192
  font-weight: 400;
4188
4193
  color: ${Ie("neutral",700)};
4189
- `,xN=ke`
4190
- padding: 0.375rem;
4191
4194
  `,kN=ke`
4192
4195
  padding: 0.375rem;
4193
- `,$N={pauseOnPageIdle:!0,offsets:"1.5rem"},SN={"top-start":K({placement:"top-start",...$N}),top:K({placement:"top",...$N}),"top-end":K({placement:"top-end",...$N}),"bottom-start":K({placement:"bottom-start",...$N}),bottom:K({placement:"bottom",...$N}),"bottom-end":K({placement:"bottom-end",...$N})},MN=e=>{SN[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})},EN=e=>{Object.values(SN).forEach((t=>{t.dismiss(e)}))},TN=({labels:e})=>{const t=tg("Toast",e);return Object.keys(SN).map((e=>ve(a,{children:ve(Z,{toaster:SN[e],insetInline:{mdDown:"4"},children:n=>{return be(G.Root,{css:(r=n.meta?.maxWidth,ke`
4196
+ `,$N=ke`
4197
+ padding: 0.375rem;
4198
+ `,SN={pauseOnPageIdle:!0,offsets:"1.5rem"},MN={"top-start":K({placement:"top-start",...SN}),top:K({placement:"top",...SN}),"top-end":K({placement:"top-end",...SN}),"bottom-start":K({placement:"bottom-start",...SN}),bottom:K({placement:"bottom",...SN}),"bottom-end":K({placement:"bottom-end",...SN})},EN=e=>{MN[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})},TN=e=>{Object.values(MN).forEach((t=>{t.dismiss(e)}))},ON=({labels:e})=>{const t=tg("Toast",e);return Object.keys(MN).map((e=>ve(a,{children:ve(Z,{toaster:MN[e],insetInline:{mdDown:"4"},children:n=>{return be(G.Root,{css:(r=n.meta?.maxWidth,ke`
4194
4199
  justify-content: space-between;
4195
4200
  align-items: center;
4196
4201
  gap: ${Ve(200)};
@@ -4234,4 +4239,4 @@ function NO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
4234
4239
  color: ${Ie("error",900)};
4235
4240
  }
4236
4241
  }
4237
- `),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-500)"}):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(G.Title,{css:wN,"aria-label":`${n.title}`,children:n.title}),n.description?ve(G.Title,{css:CN,"aria-label":`${n.description}`,children:n.description}):null]})]}),n.action||n.meta?.closable?be(J,{flexDirection:"row",children:[n.action?ve(ng,{css:xN,label:n.action.label,size:"small",variant:"info"===n.type?"primary":"secondary",onClick:()=>{n?.action?.onClick&&n.action.onClick(),SN[e].dismiss()}}):null,n.meta?.closable?ve(ng,{css:kN,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(),SN[e].dismiss()}}):null]}):null]});var r}})},e)))};export{cN as AlertBanner,Wk as AnalysisWidget,XR as Avatar,sN as Badge,Wy as BaseMap,_A as Breadcrumb,ng as Button,cv as Checkbox,qv as CheckboxList,gv as CheckboxOptionCard,jb as CloseButton,Zy as ClusterPoint,Iy as Combobox,Fe as DesignSystemLocaleProvider,Bk as ExtendableCard,kb as FieldWrapper,KA as Footer,av as FormContainer,og as IconButton,$A as InlineMessage,fy as InputWithUnits,sk as ItemCount,xx as LayerGroup,kx as LayerGroupContainer,Cx as LayerItem,Tx as LayerParameters,Bx as LegendItem,mk as List,Zb as MapControlsToolbar,Ky as MapMarker,Jy as MapMarkers,ux as MapPopUp,nb as Menu,zA as MobileSearch,QA as MobileTabBar,W$ as Modal,nv as MultiActionButton,kR as Navbar,OR as NavigationRail,kv as OptionCard,wk as Pagination,Y$ as Panel,wy as Password,hN as ProgressBar,Gx as QualitativeAttribute,Ev as Radio,Tv as RadioGroup,xy as RadioList,Hb as RichTextEditor,Bb as SSOButtons,nk as ScaleBar,UR as Search,py as Select,pA as Sheet,Gy as SimpleMapPin,zv as Slider,$y as SliderInput,yN as StepProgressIndicator,Hv as Switch,VR as TabBar,Pk as Table,zk as TableCell,Ik as TableRow,dy as Tag,Rb as TextInput,Ty as Textarea,TN as Toast,Kb as Toolbar,ib as Tooltip,EN 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,MN as showToast};
4242
+ `),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-500)"}):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(G.Title,{css:CN,"aria-label":`${n.title}`,children:n.title}),n.description?ve(G.Title,{css:xN,"aria-label":`${n.description}`,children:n.description}):null]})]}),n.action||n.meta?.closable?be(J,{flexDirection:"row",children:[n.action?ve(ng,{css:kN,label:n.action.label,size:"small",variant:"info"===n.type?"primary":"secondary",onClick:()=>{n?.action?.onClick&&n.action.onClick(),MN[e].dismiss()}}):null,n.meta?.closable?ve(ng,{css:$N,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(),MN[e].dismiss()}}):null]}):null]});var r}})},e)))};export{dN as AlertBanner,Uk as AnalysisWidget,YR as Avatar,aN as Badge,Wy as BaseMap,jA as Breadcrumb,ng as Button,cv as Checkbox,qv as CheckboxList,gv as CheckboxOptionCard,jb as CloseButton,Zy as ClusterPoint,Iy as Combobox,Fe as DesignSystemLocaleProvider,_k as ExtendableCard,kb as FieldWrapper,ZA as Footer,av as FormContainer,og as IconButton,SA as InlineMessage,fy as InputWithUnits,ak as ItemCount,xx as LayerGroup,kx as LayerGroupContainer,Cx as LayerItem,Tx as LayerParameters,Bx as LegendItem,gk as List,Zb as MapControlsToolbar,Ky as MapMarker,Jy as MapMarkers,ux as MapPopUp,nb as Menu,VA as MobileSearch,eR as MobileTabBar,U$ as Modal,nv as MultiActionButton,$R as Navbar,LR as NavigationRail,kv as OptionCard,Ck as Pagination,Q$ as Panel,wy as Password,pN as ProgressBar,Gx as QualitativeAttribute,Ev as Radio,Tv as RadioGroup,xy as RadioList,Hb as RichTextEditor,Bb as SSOButtons,nk as ScaleBar,KR as Search,py as Select,fA as Sheet,Gy as SimpleMapPin,zv as Slider,$y as SliderInput,wN as StepProgressIndicator,Hv as Switch,HR as TabBar,Ik as Table,Vk as TableCell,zk as TableRow,dy as Tag,Rb as TextInput,Ty as Textarea,ON as Toast,Kb as Toolbar,ib as Tooltip,TN 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,EN as showToast};