From f61ca27cb1decbe1efc6e2ecc81fa5e84ea2600b Mon Sep 17 00:00:00 2001 From: custompointofview Date: Fri, 4 Aug 2023 17:58:44 +0000 Subject: [PATCH] [Automatic] Updating Robot Flow Explorer Javascript bundle asset to refs/tags/v0.4.0 --- .../assets/robot_flow_explorer_bundle.js | 757 +++++++++++------- 1 file changed, 474 insertions(+), 283 deletions(-) diff --git a/robotframework-ls/assets/robot_flow_explorer_bundle.js b/robotframework-ls/assets/robot_flow_explorer_bundle.js index eb6041b8e8..85b4dc47ea 100644 --- a/robotframework-ls/assets/robot_flow_explorer_bundle.js +++ b/robotframework-ls/assets/robot_flow_explorer_bundle.js @@ -1,4 +1,4 @@ -/*! Robot Flow Explorer Version: 0.3.3 */ +/*! Robot Flow Explorer Version: 0.4.0 */ /*! * Apache License * Version 2.0, January 2004 @@ -208,7 +208,7 @@ width: ${({size:e})=>c(e)}px; line-height: ${({size:e})=>c(e)}px; ${a.sL} -`,d=(0,i.w)(((e,t)=>{var{children:n,size:i}=e,o=l(e,["children","size"]);return(0,r.jsx)(u,Object.assign({size:i,className:"icon"},o,{ref:t},{children:(0,r.jsx)("svg",Object.assign({width:"100%",height:"100%",viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"},{children:n}))}))}))},1192:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3823),i=n(3231);const o=(0,n(6377).w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 2a1 1 0 1 0-2 0v1H9V2a1 1 0 0 0-2 0v1H5a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3h-2V2Zm3 7V6a1 1 0 0 0-1-1h-2v1a1 1 0 1 1-2 0V5H9v1a1 1 0 0 1-2 0V5H5a1 1 0 0 0-1 1v3h16ZM4 11h16v9a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-9Z",fill:"currentColor"})}))));o.defaultProps={size:"medium",color:"inherit"};const a=o},4591:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3823),i=n(3231);const o=(0,n(6377).w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.707 5.293a1 1 0 0 1 0 1.414l-11 11a1 1 0 0 1-1.414 0l-5-5a1 1 0 1 1 1.414-1.414L9 15.586 19.293 5.293a1 1 0 0 1 1.414 0Z",fill:"currentColor"})}))));o.defaultProps={size:"medium",color:"inherit"};const a=o},7918:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3823),i=n(3231);const o=(0,n(6377).w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.293 8.293a1 1 0 0 1 1.414 0L12 13.586l5.293-5.293a1 1 0 1 1 1.414 1.414l-6 6a1 1 0 0 1-1.414 0l-6-6a1 1 0 0 1 0-1.414Z",fill:"currentColor"})}))));o.defaultProps={size:"medium",color:"inherit"};const a=o},5513:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3823),i=n(3231);const o=(0,n(6377).w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.293 5.293a1 1 0 0 1 1.414 0l6 6a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414-1.414L13.586 12 8.293 6.707a1 1 0 0 1 0-1.414Z",fill:"currentColor"})}))));o.defaultProps={size:"medium",color:"inherit"};const a=o},1549:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3823),i=n(3231);const o=(0,n(6377).w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("circle",{cx:"12",cy:"12",r:"12",fill:"currentColor"})}))));o.defaultProps={size:"medium",color:"inherit"};const a=o},3768:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3823),i=n(3231);const o=(0,n(6377).w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M10.457 1.405a3.145 3.145 0 0 1 4.232 1.109l.003.005L23.57 17.34l.009.014a3.145 3.145 0 0 1-2.69 4.717H3.11a3.146 3.146 0 0 1-2.689-4.717l.009-.014L9.308 2.519l.003-.005c.28-.462.675-.844 1.146-1.11Z",fill:"currentColor"})}))));o.defaultProps={size:"medium",color:"inherit"};const a=o},9622:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3823),i=n(3231);const o=(0,n(6377).w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.707 4.293a1 1 0 0 1 0 1.414L7.414 11H19a1 1 0 1 1 0 2H7.414l5.293 5.293a1 1 0 0 1-1.414 1.414l-7-7a1 1 0 0 1 0-1.414l7-7a1 1 0 0 1 1.414 0Z",fill:"currentColor"})}))));o.defaultProps={size:"medium",color:"inherit"};const a=o},4402:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3823),i=n(3231);const o=(0,n(6377).w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13 2a1 1 0 1 0-2 0v4a1 1 0 1 0 2 0V2Zm0 16a1 1 0 1 0-2 0v4a1 1 0 1 0 2 0v-4ZM4.223 4.223a1 1 0 0 1 1.414 0l2.83 2.83a1 1 0 1 1-1.414 1.414l-2.83-2.83a1 1 0 0 1 0-1.414Zm12.724 11.31a1 1 0 0 0-1.414 1.414l2.83 2.83a1 1 0 0 0 1.414-1.414l-2.83-2.83ZM1 12a1 1 0 0 1 1-1h4a1 1 0 1 1 0 2H2a1 1 0 0 1-1-1Zm17-1a1 1 0 1 0 0 2h4a1 1 0 1 0 0-2h-4Zm-9.533 4.533a1 1 0 0 1 0 1.414l-2.83 2.83a1 1 0 0 1-1.414-1.414l2.83-2.83a1 1 0 0 1 1.414 0Zm11.31-9.896a1 1 0 1 0-1.414-1.414l-2.83 2.83a1 1 0 0 0 1.414 1.414l2.83-2.83Z",fill:"currentColor"})}))));o.defaultProps={size:"medium",color:"inherit"};const a=o},1951:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3823),i=n(3231);const o=(0,n(6377).w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.172 4.172A4 4 0 0 1 16 7v3H8V7a4 4 0 0 1 1.172-2.828ZM6 10V7a6 6 0 1 1 12 0v3h1a3 3 0 0 1 3 3v7a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3v-7a3 3 0 0 1 3-3h1Zm11 2H5a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-7a1 1 0 0 0-1-1h-2Z",fill:"currentColor"})}))));o.defaultProps={size:"medium",color:"inherit"};const a=o},1832:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3823),i=n(3231);const o=(0,n(6377).w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 6a1 1 0 0 1 1-1h18a1 1 0 1 1 0 2H3a1 1 0 0 1-1-1Zm0 6a1 1 0 0 1 1-1h18a1 1 0 1 1 0 2H3a1 1 0 0 1-1-1Zm1 5a1 1 0 1 0 0 2h18a1 1 0 1 0 0-2H3Z",fill:"currentColor"})}))));o.defaultProps={size:"medium",color:"inherit"};const a=o},9725:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3823),i=n(3231);const o=(0,n(6377).w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 12a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Z",fill:"currentColor"})}))));o.defaultProps={size:"medium",color:"inherit"};const a=o},7986:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3823),i=n(3231);const o=(0,n(6377).w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm11.258-3.976a2 2 0 0 0-2.225 1.308 1 1 0 1 1-1.886-.664 4 4 0 0 1 7.773 1.333c0 1.53-1.135 2.54-1.945 3.081a8.044 8.044 0 0 1-1.686.848l-.035.013-.011.003-.004.002h-.002L11.92 13l.316.949a1 1 0 0 1-.633-1.897l.016-.006.074-.027a6.051 6.051 0 0 0 1.172-.6c.69-.46 1.055-.95 1.055-1.419v-.001a2 2 0 0 0-1.662-1.975ZM11 17a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H12a1 1 0 0 1-1-1Z",fill:"currentColor"})}))));o.defaultProps={size:"medium",color:"inherit"};const a=o},3281:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3823),i=n(3231);const o=(0,n(6377).w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.293 4.293a1 1 0 0 1 1.414 0l7 7a1 1 0 0 1 0 1.414l-7 7a1 1 0 0 1-1.414-1.414L16.586 13H5a1 1 0 1 1 0-2h11.586l-5.293-5.293a1 1 0 0 1 0-1.414Z",fill:"currentColor"})}))));o.defaultProps={size:"medium",color:"inherit"};const a=o},2298:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3823),i=n(3231);const o=(0,n(6377).w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.687 7.404h6.626a.655.655 0 0 0 .655-.651.652.652 0 0 0-.65-.651H8.686a.652.652 0 0 0 0 1.302Zm3.808 2.958a.775.775 0 1 0 1.55.001.775.775 0 0 0-1.55 0Zm-2.538 0a.775.775 0 1 0 1.55.001.775.775 0 0 0-1.55 0Zm8.966-3.925a3.904 3.904 0 0 1-1.782 3.761.246.246 0 0 0-.058.375 6.655 6.655 0 0 1 1.579 3.788.245.245 0 0 1-.246.273H5.584a.251.251 0 0 1-.246-.273 6.66 6.66 0 0 1 1.583-3.788.242.242 0 0 0-.059-.37 3.901 3.901 0 0 1-1.734-4.074 3.838 3.838 0 0 1 3.239-3.083 3.922 3.922 0 0 1 2.21.308 3.406 3.406 0 0 0 2.846 0 3.908 3.908 0 0 1 2.225-.308c1.708.253 3.076 1.676 3.275 3.39ZM5.66 15.804h12.677a.25.25 0 0 1 .245.296 6.688 6.688 0 0 1-13.167 0 .25.25 0 0 1 .245-.296ZM3.117 7.38A3.388 3.388 0 0 0 1 10.514v.558c0 1.418.88 2.623 2.117 3.134a.248.248 0 0 0 .343-.23V7.61a.25.25 0 0 0-.343-.23Zm17.423.23c0-.18.18-.296.343-.23A3.392 3.392 0 0 1 23 10.514v.558a3.388 3.388 0 0 1-2.117 3.134.25.25 0 0 1-.343-.23V7.61Z",fill:"currentColor"})}))));o.defaultProps={size:"medium",color:"inherit"};const a=o},4474:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3823),i=n(3231);const o=(0,n(6377).w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.525 14.197a3.25 3.25 0 0 0 2.033-3.007v-.536a3.255 3.255 0 0 0-2.033-3.01.24.24 0 0 0-.33.22v6.112c0 .172.173.284.33.22Zm-2.135.146a6.369 6.369 0 0 0-1.516-3.64.233.233 0 0 1 .056-.356 3.75 3.75 0 0 0 1.711-3.613c-.19-1.648-1.505-3.011-3.145-3.258a3.787 3.787 0 0 0-2.139.295c-.438.203-.902.3-1.366.3-.468 0-.933-.101-1.367-.3a3.755 3.755 0 0 0-2.138-.295c-1.64.243-2.955 1.61-3.146 3.258a3.748 3.748 0 0 0 1.711 3.613c.128.083.154.24.057.356a6.394 6.394 0 0 0-1.517 3.64.237.237 0 0 0 .236.262h12.327a.242.242 0 0 0 .236-.262Zm-12.724 1.67c.539 3.007 3.16 5.295 6.325 5.295a6.428 6.428 0 0 0 6.325-5.295.24.24 0 0 0-.236-.285H5.902a.242.242 0 0 0-.236.285ZM3.46 14.197a.24.24 0 0 0 .33-.221V7.86a.238.238 0 0 0-.33-.221 3.259 3.259 0 0 0-2.033 3.01v.54c0 1.36.842 2.52 2.033 3.007Zm16.653-7.973c.314-.06.644-.03.951.094A4.709 4.709 0 0 1 24 10.65v.536a4.67 4.67 0 0 1-2.92 4.333 1.673 1.673 0 0 1-1.213.019c-.076-.03-.155.037-.14.115.038.199.041.405.004.61a7.846 7.846 0 0 1-7.733 6.475 7.846 7.846 0 0 1-7.733-6.474 1.671 1.671 0 0 1 .004-.61c.015-.08-.064-.147-.139-.117a1.705 1.705 0 0 1-.576.105c-.214 0-.427-.04-.633-.123A4.678 4.678 0 0 1 0 11.186v-.536a4.67 4.67 0 0 1 2.92-4.332c.308-.127.638-.154.952-.094.06.011.116-.022.127-.082A5.164 5.164 0 0 1 8.283 2.06a5.176 5.176 0 0 1 2.944.408 1.832 1.832 0 0 0 1.535 0 5.24 5.24 0 0 1 2.943-.408 5.164 5.164 0 0 1 4.284 4.082c.012.06.064.093.124.082Zm-11.305.187h6.366a.626.626 0 0 1 0 1.251H8.808a.626.626 0 0 1 0-1.25Zm3.655 4.094a.745.745 0 1 1 1.489-.002.745.745 0 0 1-1.49.002Zm-1.69-.746a.745.745 0 1 0 0 1.49.745.745 0 0 0 0-1.49Z",fill:"currentColor"})}))));o.defaultProps={size:"medium",color:"inherit"};const a=o},6605:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3823),i=n(3231);const o=(0,n(6377).w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.707 3.293a1 1 0 0 0-1.414 0l-5 5a1 1 0 0 0 1.414 1.414L12 5.414l4.293 4.293a1 1 0 0 0 1.414-1.414l-5-5ZM6.293 15.707l5 5a1 1 0 0 0 1.414 0l5-5a1 1 0 0 0-1.414-1.414L12 18.586l-4.293-4.293a1 1 0 0 0-1.414 1.414Z",fill:"currentColor"})}))));o.defaultProps={size:"medium",color:"inherit"};const a=o},4013:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3823),i=n(3231);const o=(0,n(6377).w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.657 15.37a.416.416 0 0 1 .317.688l-6.62 7.795a.416.416 0 0 1-.635 0L5.1 16.058a.417.417 0 0 1 .317-.688h5.316V1.303a1.302 1.302 0 1 1 2.606 0V15.37h5.318Z",fill:"currentColor"})}))));o.defaultProps={size:"medium",color:"inherit"};const a=o},6952:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3823),i=n(3231);const o=(0,n(6377).w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.927.39a1.333 1.333 0 0 0-1.886 0L4.374 7.057A1.333 1.333 0 0 0 6.26 8.943l5.724-5.725 5.724 5.725a1.333 1.333 0 0 0 1.885-1.886L12.927.39ZM4.373 16.943l6.667 6.667a1.334 1.334 0 0 0 1.886 0l6.666-6.667a1.333 1.333 0 0 0-1.885-1.886l-5.724 5.725-5.724-5.725a1.333 1.333 0 0 0-1.886 1.886Z",fill:"currentColor"})}))));o.defaultProps={size:"medium",color:"inherit"};const a=o},9068:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3823),i=n(3231);const o=(0,n(6377).w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.172 4.172A4 4 0 0 1 15.919 6.2a1 1 0 0 0 1.96-.4A6 6 0 0 0 6 7v3H5a3 3 0 0 0-3 3v7a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3v-7a3 3 0 0 0-3-3H8V7a4 4 0 0 1 1.172-2.828ZM7 12H5a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-7a1 1 0 0 0-1-1H7Z",fill:"currentColor"})}))));o.defaultProps={size:"medium",color:"inherit"};const a=o},2761:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3823),i=n(3231);const o=(0,n(6377).w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.707 6.707a1 1 0 0 0-1.414-1.414L12 10.586 6.707 5.293a1 1 0 0 0-1.414 1.414L10.586 12l-5.293 5.293a1 1 0 1 0 1.414 1.414L12 13.414l5.293 5.293a1 1 0 0 0 1.414-1.414L13.414 12l5.293-5.293Z",fill:"currentColor"})}))));o.defaultProps={size:"medium",color:"inherit"};const a=o},6377:(e,t,n)=>{"use strict";n.d(t,{w:()=>i});var r=n(5466);const i=(e,t)=>Object.assign({},(0,r.forwardRef)(e),t)},339:(e,t,n)=>{"use strict";n.d(t,{ZK:()=>o,eu:()=>l,hQ:()=>s,jU:()=>i,xC:()=>a});var r=n(5466);const i="object"==typeof window,o=e=>{0},a=(e,t)=>{const n=r.Children.map(e,(e=>(0,r.isValidElement)(e)&&e.type===t?e:null));return r.Children.count(n)>0?n:void 0},s=()=>Math.random().toString(36).substring(2),l=e=>{const t=e.trim().split(" "),n=Array.from(t[0]).slice(0,1).join().toUpperCase();if(1===t.length)return n;return`${n}${Array.from(t[t.length-1]).slice(0,1).join().toUpperCase()}`}},9523:(e,t,n)=>{"use strict";n.d(t,{S:()=>s,Z:()=>l});var r=n(3823),i=n(5466),o=n(339);const a=(0,i.createContext)({width:0,height:0}),s=()=>{const{width:e,height:t}=(0,i.useContext)(a);return{width:e,height:t}},l=({children:e})=>{const[t,n]=(0,i.useState)(o.jU?window.innerWidth:0),[s,l]=(0,i.useState)(o.jU?window.innerHeight:0),c=()=>{n(window.innerWidth),l(window.innerHeight)};(0,i.useEffect)((()=>(o.jU&&window.addEventListener("resize",c),()=>{o.jU&&window.removeEventListener("resize",c)})),[]);const u=(0,i.useMemo)((()=>({height:s,width:t})),[s,t]);return(0,r.jsx)(a.Provider,Object.assign({value:u},{children:e}))}},9220:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AddTextField:()=>kn,AppBar:()=>$t,AppNav:()=>Ht,AppSideNav:()=>mM,Autocomplete:()=>yi,Avatar:()=>p,Badge:()=>ki,Box:()=>v,Breadcrumbs:()=>um,Button:()=>F,ButtonBase:()=>V,Cell:()=>yj,Chart:()=>jS,Checkbox:()=>Yr,CheckboxStyled:()=>Ur,Chip:()=>UO,ChipGroup:()=>HO,Code:()=>Yp,Collapse:()=>zS,ColumnSelect:()=>Kj,Content:()=>cO,DatePicker:()=>im,Dialog:()=>nC,Divider:()=>TS,Drawer:()=>QO,Dropdown:()=>fC,EditorView:()=>Gc,Explorer:()=>RC,Fieldset:()=>yn,Form:()=>pn,Grid:()=>$C,Header:()=>dM,Input:()=>un,InputDescription:()=>ln,InputError:()=>cn,Link:()=>HC,List:()=>YC,ListContent:()=>QC,ListHeading:()=>oj,ListItem:()=>nj,ListSkeleton:()=>HM,Menu:()=>gi,Panel:()=>US,Popover:()=>Mt,Progress:()=>D,Radio:()=>oi,RadioStyled:()=>ii,Row:()=>Mj,Scroll:()=>cj,Select:()=>hO,SideNavItem:()=>hM,SideNavigation:()=>mP,Sidebar:()=>iM,Skeleton:()=>_M,SkeletonLoader:()=>DM,Slider:()=>IO,Snackbar:()=>MO,Stat:()=>wM,Switch:()=>fj,SwitchTransition:()=>CP,Table:()=>qj,TableSkeleton:()=>NM,Tabs:()=>aO,ThemeProvider:()=>r.f6,Timeline:()=>MM,Tooltip:()=>Jt,Transition:()=>xt,TransitionGroup:()=>yO,Typography:()=>Rr,ViewportProvider:()=>oM.Z,createShouldForwardProp:()=>o.M,css:()=>r.iv,keyframes:()=>r.F4,robotFramework:()=>Bp,shouldForwardProp:()=>o.x,styled:()=>r.zo,themeTokens:()=>i,useAutoWidth:()=>Ut,useComponentVisible:()=>U,useDropdown:()=>hC,useFloat:()=>Ge,useForkRef:()=>Wt,useLockScroll:()=>Tr,usePagination:()=>bj,usePortal:()=>q,useSize:()=>pk,useSnackbar:()=>jO,useSystemTheme:()=>sM,useTheme:()=>k,useViewport:()=>oM.S,withSnackbar:()=>PO});var r=n(5969),i=n(4083),o=n(3316),a=n(3823),s=n(5466),l=n.t(s,2),c=n(5840),u=n(1343),d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i span {\n display: block;\n width: 100%;\n height: 70%;\n line-height: 1em;\n svg {\n width: 100%;\n height: 100%;\n }\n };\n "),f=e=>{var{children:t,src:n,alt:r,size:i,shape:o}=e,s=d(e,["children","src","alt","size","shape"]);return(0,a.jsx)(h,Object.assign({src:n,alt:r,shape:o,size:i,as:n?"img":"span"},s,{children:t}))};f.defaultProps={shape:"circle",size:"big",backgroundColor:"dark60"};const p=f;var m=n(6377);const g=(0,r.zo)("div").withConfig({shouldForwardProp:o.x})` +`,d=(0,i.w)(((e,t)=>{var{children:n,size:i}=e,o=l(e,["children","size"]);return(0,r.jsx)(u,Object.assign({size:i,className:"icon"},o,{ref:t},{children:(0,r.jsx)("svg",Object.assign({width:"100%",height:"100%",viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"},{children:n}))}))}))},1192:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3823),i=n(3231);const o=(0,n(6377).w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 2a1 1 0 1 0-2 0v1H9V2a1 1 0 0 0-2 0v1H5a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3h-2V2Zm3 7V6a1 1 0 0 0-1-1h-2v1a1 1 0 1 1-2 0V5H9v1a1 1 0 0 1-2 0V5H5a1 1 0 0 0-1 1v3h16ZM4 11h16v9a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-9Z",fill:"currentColor"})}))));o.defaultProps={size:"medium",color:"inherit"};const a=o},4591:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3823),i=n(3231);const o=(0,n(6377).w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.707 5.293a1 1 0 0 1 0 1.414l-11 11a1 1 0 0 1-1.414 0l-5-5a1 1 0 1 1 1.414-1.414L9 15.586 19.293 5.293a1 1 0 0 1 1.414 0Z",fill:"currentColor"})}))));o.defaultProps={size:"medium",color:"inherit"};const a=o},7918:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3823),i=n(3231);const o=(0,n(6377).w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.293 8.293a1 1 0 0 1 1.414 0L12 13.586l5.293-5.293a1 1 0 1 1 1.414 1.414l-6 6a1 1 0 0 1-1.414 0l-6-6a1 1 0 0 1 0-1.414Z",fill:"currentColor"})}))));o.defaultProps={size:"medium",color:"inherit"};const a=o},5513:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3823),i=n(3231);const o=(0,n(6377).w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.293 5.293a1 1 0 0 1 1.414 0l6 6a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414-1.414L13.586 12 8.293 6.707a1 1 0 0 1 0-1.414Z",fill:"currentColor"})}))));o.defaultProps={size:"medium",color:"inherit"};const a=o},1549:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3823),i=n(3231);const o=(0,n(6377).w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("circle",{cx:"12",cy:"12",r:"12",fill:"currentColor"})}))));o.defaultProps={size:"medium",color:"inherit"};const a=o},3768:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3823),i=n(3231);const o=(0,n(6377).w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M10.457 1.405a3.145 3.145 0 0 1 4.232 1.109l.003.005L23.57 17.34l.009.014a3.145 3.145 0 0 1-2.69 4.717H3.11a3.146 3.146 0 0 1-2.689-4.717l.009-.014L9.308 2.519l.003-.005c.28-.462.675-.844 1.146-1.11Z",fill:"currentColor"})}))));o.defaultProps={size:"medium",color:"inherit"};const a=o},9622:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3823),i=n(3231);const o=(0,n(6377).w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.707 4.293a1 1 0 0 1 0 1.414L7.414 11H19a1 1 0 1 1 0 2H7.414l5.293 5.293a1 1 0 0 1-1.414 1.414l-7-7a1 1 0 0 1 0-1.414l7-7a1 1 0 0 1 1.414 0Z",fill:"currentColor"})}))));o.defaultProps={size:"medium",color:"inherit"};const a=o},4402:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3823),i=n(3231);const o=(0,n(6377).w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13 2a1 1 0 1 0-2 0v4a1 1 0 1 0 2 0V2Zm0 16a1 1 0 1 0-2 0v4a1 1 0 1 0 2 0v-4ZM4.223 4.223a1 1 0 0 1 1.414 0l2.83 2.83a1 1 0 1 1-1.414 1.414l-2.83-2.83a1 1 0 0 1 0-1.414Zm12.724 11.31a1 1 0 0 0-1.414 1.414l2.83 2.83a1 1 0 0 0 1.414-1.414l-2.83-2.83ZM1 12a1 1 0 0 1 1-1h4a1 1 0 1 1 0 2H2a1 1 0 0 1-1-1Zm17-1a1 1 0 1 0 0 2h4a1 1 0 1 0 0-2h-4Zm-9.533 4.533a1 1 0 0 1 0 1.414l-2.83 2.83a1 1 0 0 1-1.414-1.414l2.83-2.83a1 1 0 0 1 1.414 0Zm11.31-9.896a1 1 0 1 0-1.414-1.414l-2.83 2.83a1 1 0 0 0 1.414 1.414l2.83-2.83Z",fill:"currentColor"})}))));o.defaultProps={size:"medium",color:"inherit"};const a=o},1951:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3823),i=n(3231);const o=(0,n(6377).w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.172 4.172A4 4 0 0 1 16 7v3H8V7a4 4 0 0 1 1.172-2.828ZM6 10V7a6 6 0 1 1 12 0v3h1a3 3 0 0 1 3 3v7a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3v-7a3 3 0 0 1 3-3h1Zm11 2H5a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-7a1 1 0 0 0-1-1h-2Z",fill:"currentColor"})}))));o.defaultProps={size:"medium",color:"inherit"};const a=o},1832:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3823),i=n(3231);const o=(0,n(6377).w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 6a1 1 0 0 1 1-1h18a1 1 0 1 1 0 2H3a1 1 0 0 1-1-1Zm0 6a1 1 0 0 1 1-1h18a1 1 0 1 1 0 2H3a1 1 0 0 1-1-1Zm1 5a1 1 0 1 0 0 2h18a1 1 0 1 0 0-2H3Z",fill:"currentColor"})}))));o.defaultProps={size:"medium",color:"inherit"};const a=o},9725:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3823),i=n(3231);const o=(0,n(6377).w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 12a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Z",fill:"currentColor"})}))));o.defaultProps={size:"medium",color:"inherit"};const a=o},7986:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3823),i=n(3231);const o=(0,n(6377).w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm11.258-3.976a2 2 0 0 0-2.225 1.308 1 1 0 1 1-1.886-.664 4 4 0 0 1 7.773 1.333c0 1.53-1.135 2.54-1.945 3.081a8.044 8.044 0 0 1-1.686.848l-.035.013-.011.003-.004.002h-.002L11.92 13l.316.949a1 1 0 0 1-.633-1.897l.016-.006.074-.027a6.051 6.051 0 0 0 1.172-.6c.69-.46 1.055-.95 1.055-1.419v-.001a2 2 0 0 0-1.662-1.975ZM11 17a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H12a1 1 0 0 1-1-1Z",fill:"currentColor"})}))));o.defaultProps={size:"medium",color:"inherit"};const a=o},3281:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3823),i=n(3231);const o=(0,n(6377).w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.293 4.293a1 1 0 0 1 1.414 0l7 7a1 1 0 0 1 0 1.414l-7 7a1 1 0 0 1-1.414-1.414L16.586 13H5a1 1 0 1 1 0-2h11.586l-5.293-5.293a1 1 0 0 1 0-1.414Z",fill:"currentColor"})}))));o.defaultProps={size:"medium",color:"inherit"};const a=o},2298:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3823),i=n(3231);const o=(0,n(6377).w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.687 7.404h6.626a.655.655 0 0 0 .655-.651.652.652 0 0 0-.65-.651H8.686a.652.652 0 0 0 0 1.302Zm3.808 2.958a.775.775 0 1 0 1.55.001.775.775 0 0 0-1.55 0Zm-2.538 0a.775.775 0 1 0 1.55.001.775.775 0 0 0-1.55 0Zm8.966-3.925a3.904 3.904 0 0 1-1.782 3.761.246.246 0 0 0-.058.375 6.655 6.655 0 0 1 1.579 3.788.245.245 0 0 1-.246.273H5.584a.251.251 0 0 1-.246-.273 6.66 6.66 0 0 1 1.583-3.788.242.242 0 0 0-.059-.37 3.901 3.901 0 0 1-1.734-4.074 3.838 3.838 0 0 1 3.239-3.083 3.922 3.922 0 0 1 2.21.308 3.406 3.406 0 0 0 2.846 0 3.908 3.908 0 0 1 2.225-.308c1.708.253 3.076 1.676 3.275 3.39ZM5.66 15.804h12.677a.25.25 0 0 1 .245.296 6.688 6.688 0 0 1-13.167 0 .25.25 0 0 1 .245-.296ZM3.117 7.38A3.388 3.388 0 0 0 1 10.514v.558c0 1.418.88 2.623 2.117 3.134a.248.248 0 0 0 .343-.23V7.61a.25.25 0 0 0-.343-.23Zm17.423.23c0-.18.18-.296.343-.23A3.392 3.392 0 0 1 23 10.514v.558a3.388 3.388 0 0 1-2.117 3.134.25.25 0 0 1-.343-.23V7.61Z",fill:"currentColor"})}))));o.defaultProps={size:"medium",color:"inherit"};const a=o},4474:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3823),i=n(3231);const o=(0,n(6377).w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.525 14.197a3.25 3.25 0 0 0 2.033-3.007v-.536a3.255 3.255 0 0 0-2.033-3.01.24.24 0 0 0-.33.22v6.112c0 .172.173.284.33.22Zm-2.135.146a6.369 6.369 0 0 0-1.516-3.64.233.233 0 0 1 .056-.356 3.75 3.75 0 0 0 1.711-3.613c-.19-1.648-1.505-3.011-3.145-3.258a3.787 3.787 0 0 0-2.139.295c-.438.203-.902.3-1.366.3-.468 0-.933-.101-1.367-.3a3.755 3.755 0 0 0-2.138-.295c-1.64.243-2.955 1.61-3.146 3.258a3.748 3.748 0 0 0 1.711 3.613c.128.083.154.24.057.356a6.394 6.394 0 0 0-1.517 3.64.237.237 0 0 0 .236.262h12.327a.242.242 0 0 0 .236-.262Zm-12.724 1.67c.539 3.007 3.16 5.295 6.325 5.295a6.428 6.428 0 0 0 6.325-5.295.24.24 0 0 0-.236-.285H5.902a.242.242 0 0 0-.236.285ZM3.46 14.197a.24.24 0 0 0 .33-.221V7.86a.238.238 0 0 0-.33-.221 3.259 3.259 0 0 0-2.033 3.01v.54c0 1.36.842 2.52 2.033 3.007Zm16.653-7.973c.314-.06.644-.03.951.094A4.709 4.709 0 0 1 24 10.65v.536a4.67 4.67 0 0 1-2.92 4.333 1.673 1.673 0 0 1-1.213.019c-.076-.03-.155.037-.14.115.038.199.041.405.004.61a7.846 7.846 0 0 1-7.733 6.475 7.846 7.846 0 0 1-7.733-6.474 1.671 1.671 0 0 1 .004-.61c.015-.08-.064-.147-.139-.117a1.705 1.705 0 0 1-.576.105c-.214 0-.427-.04-.633-.123A4.678 4.678 0 0 1 0 11.186v-.536a4.67 4.67 0 0 1 2.92-4.332c.308-.127.638-.154.952-.094.06.011.116-.022.127-.082A5.164 5.164 0 0 1 8.283 2.06a5.176 5.176 0 0 1 2.944.408 1.832 1.832 0 0 0 1.535 0 5.24 5.24 0 0 1 2.943-.408 5.164 5.164 0 0 1 4.284 4.082c.012.06.064.093.124.082Zm-11.305.187h6.366a.626.626 0 0 1 0 1.251H8.808a.626.626 0 0 1 0-1.25Zm3.655 4.094a.745.745 0 1 1 1.489-.002.745.745 0 0 1-1.49.002Zm-1.69-.746a.745.745 0 1 0 0 1.49.745.745 0 0 0 0-1.49Z",fill:"currentColor"})}))));o.defaultProps={size:"medium",color:"inherit"};const a=o},6605:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3823),i=n(3231);const o=(0,n(6377).w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.707 3.293a1 1 0 0 0-1.414 0l-5 5a1 1 0 0 0 1.414 1.414L12 5.414l4.293 4.293a1 1 0 0 0 1.414-1.414l-5-5ZM6.293 15.707l5 5a1 1 0 0 0 1.414 0l5-5a1 1 0 0 0-1.414-1.414L12 18.586l-4.293-4.293a1 1 0 0 0-1.414 1.414Z",fill:"currentColor"})}))));o.defaultProps={size:"medium",color:"inherit"};const a=o},4013:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3823),i=n(3231);const o=(0,n(6377).w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.657 15.37a.416.416 0 0 1 .317.688l-6.62 7.795a.416.416 0 0 1-.635 0L5.1 16.058a.417.417 0 0 1 .317-.688h5.316V1.303a1.302 1.302 0 1 1 2.606 0V15.37h5.318Z",fill:"currentColor"})}))));o.defaultProps={size:"medium",color:"inherit"};const a=o},6952:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3823),i=n(3231);const o=(0,n(6377).w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.927.39a1.333 1.333 0 0 0-1.886 0L4.374 7.057A1.333 1.333 0 0 0 6.26 8.943l5.724-5.725 5.724 5.725a1.333 1.333 0 0 0 1.885-1.886L12.927.39ZM4.373 16.943l6.667 6.667a1.334 1.334 0 0 0 1.886 0l6.666-6.667a1.333 1.333 0 0 0-1.885-1.886l-5.724 5.725-5.724-5.725a1.333 1.333 0 0 0-1.886 1.886Z",fill:"currentColor"})}))));o.defaultProps={size:"medium",color:"inherit"};const a=o},9068:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3823),i=n(3231);const o=(0,n(6377).w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.172 4.172A4 4 0 0 1 15.919 6.2a1 1 0 0 0 1.96-.4A6 6 0 0 0 6 7v3H5a3 3 0 0 0-3 3v7a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3v-7a3 3 0 0 0-3-3H8V7a4 4 0 0 1 1.172-2.828ZM7 12H5a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-7a1 1 0 0 0-1-1H7Z",fill:"currentColor"})}))));o.defaultProps={size:"medium",color:"inherit"};const a=o},2761:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3823),i=n(3231);const o=(0,n(6377).w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.707 6.707a1 1 0 0 0-1.414-1.414L12 10.586 6.707 5.293a1 1 0 0 0-1.414 1.414L10.586 12l-5.293 5.293a1 1 0 1 0 1.414 1.414L12 13.414l5.293 5.293a1 1 0 0 0 1.414-1.414L13.414 12l5.293-5.293Z",fill:"currentColor"})}))));o.defaultProps={size:"medium",color:"inherit"};const a=o},6377:(e,t,n)=>{"use strict";n.d(t,{w:()=>i});var r=n(5466);const i=(e,t)=>Object.assign({},(0,r.forwardRef)(e),t)},339:(e,t,n)=>{"use strict";n.d(t,{ZK:()=>o,eu:()=>l,hQ:()=>s,jU:()=>i,xC:()=>a});var r=n(5466);const i="object"==typeof window,o=e=>{0},a=(e,t)=>{const n=r.Children.map(e,(e=>(0,r.isValidElement)(e)&&e.type===t?e:null));return r.Children.count(n)>0?n:void 0},s=()=>Math.random().toString(36).substring(2),l=e=>{const t=e.trim().split(" "),n=Array.from(t[0]).slice(0,1).join().toUpperCase();if(1===t.length)return n;return`${n}${Array.from(t[t.length-1]).slice(0,1).join().toUpperCase()}`}},9523:(e,t,n)=>{"use strict";n.d(t,{S:()=>s,Z:()=>l});var r=n(3823),i=n(5466),o=n(339);const a=(0,i.createContext)({width:0,height:0}),s=()=>{const{width:e,height:t}=(0,i.useContext)(a);return{width:e,height:t}},l=({children:e})=>{const[t,n]=(0,i.useState)(o.jU?window.innerWidth:0),[s,l]=(0,i.useState)(o.jU?window.innerHeight:0),c=()=>{n(window.innerWidth),l(window.innerHeight)};(0,i.useEffect)((()=>(o.jU&&window.addEventListener("resize",c),()=>{o.jU&&window.removeEventListener("resize",c)})),[]);const u=(0,i.useMemo)((()=>({height:s,width:t})),[s,t]);return(0,r.jsx)(a.Provider,Object.assign({value:u},{children:e}))}},6784:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AddTextField:()=>An,AppBar:()=>Ut,AppNav:()=>qt,AppSideNav:()=>eE,Autocomplete:()=>Ri,Avatar:()=>p,Badge:()=>$i,Box:()=>v,Breadcrumbs:()=>zm,Button:()=>F,ButtonBase:()=>V,Cell:()=>nO,Chart:()=>cC,Checkbox:()=>ci,CheckboxStyled:()=>li,Chip:()=>TM,ChipGroup:()=>OM,Code:()=>ym,Collapse:()=>bC,ColumnSelect:()=>RO,Content:()=>YO,DatePicker:()=>Pm,Dialog:()=>ZC,Divider:()=>mC,Drawer:()=>LM,Dropdown:()=>XC,EditorView:()=>yu,Explorer:()=>yj,Fieldset:()=>On,Form:()=>kn,Grid:()=>kj,Header:()=>GM,Input:()=>yn,InputDescription:()=>gn,InputError:()=>vn,Link:()=>jj,List:()=>Tj,ListContent:()=>Ij,ListHeading:()=>Fj,ListItem:()=>Zj,ListSkeleton:()=>OE,Menu:()=>_i,Panel:()=>AC,Popover:()=>zt,Progress:()=>D,Radio:()=>xi,RadioStyled:()=>wi,Row:()=>dO,Scroll:()=>Yj,Select:()=>GO,SideNavItem:()=>XM,SideNavigation:()=>eP,Sidebar:()=>FM,Skeleton:()=>vE,SkeletonLoader:()=>yE,Slider:()=>xM,Snackbar:()=>hM,Stat:()=>oE,Switch:()=>Xj,SwitchTransition:()=>cP,Table:()=>_O,TableSkeleton:()=>CE,Tabs:()=>BO,ThemeProvider:()=>r.f6,Timeline:()=>hE,Tooltip:()=>ln,Transition:()=>Pt,TransitionGroup:()=>rM,Typography:()=>Gr,ViewportProvider:()=>BM.Z,createShouldForwardProp:()=>o.M,css:()=>r.iv,keyframes:()=>r.F4,robotFramework:()=>mm,shouldForwardProp:()=>o.x,styled:()=>r.zo,themeTokens:()=>i,useAutoWidth:()=>en,useComponentVisible:()=>U,useDropdown:()=>GC,useFloat:()=>rt,useForkRef:()=>Jt,useLockScroll:()=>Yr,usePagination:()=>rO,usePortal:()=>K,useSize:()=>Jk,useSnackbar:()=>uM,useSystemTheme:()=>UM,useTheme:()=>k,useViewport:()=>BM.S,withSnackbar:()=>fM});var r=n(5969),i=n(4083),o=n(3316),a=n(3823),s=n(5466),l=n.t(s,2),c=n(5840),u=n(1343),d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i span {\n display: block;\n width: 100%;\n height: 70%;\n line-height: 1em;\n svg {\n width: 100%;\n height: 100%;\n }\n };\n "),f=e=>{var{children:t,src:n,alt:r,size:i,shape:o}=e,s=d(e,["children","src","alt","size","shape"]);return(0,a.jsx)(h,Object.assign({src:n,alt:r,shape:o,size:i,as:n?"img":"span"},s,{children:t}))};f.defaultProps={shape:"circle",size:"big",backgroundColor:"dark60"};const p=f;var m=n(6377);const g=(0,r.zo)("div").withConfig({shouldForwardProp:o.x})` color: ${e=>e.color||"inherit"}; ${(0,c.qC)(c.GQ,c.Dh,c.vm,c.bf,c.kk,c.ih,c.Cb,c.kC,c.jw,c.fU,c.uk,c.jf,c.yd,c.JB,c.Ue,c.I8,c.Wn,c.E0)} ${u.sL} @@ -299,10 +299,10 @@ ${({color:e,colors:t,theme:n})=>(0,u.sL)({theme:n,color:e,colors:t,colorTag:"border-top-color"})} animation: ${w} 1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; } -`,P=r.zo.div` - position: relative; `,E=r.zo.div` position: relative; +`,P=r.zo.div` + position: relative; display: flex; align-items: center; justify-content: center; @@ -345,7 +345,7 @@ filter: blur(12px); animation: ${w} 3s linear infinite reverse; } -`,T=()=>{const{name:e}=k();return(0,a.jsxs)(P,{children:[(0,a.jsx)(A,{children:(0,a.jsx)("span",{})}),(0,a.jsx)(E,{children:"dark"===e?(0,a.jsx)(S.Z,{color:"dark0",size:74}):(0,a.jsx)(C.Z,{color:"purple50",size:74})})]})},_=e=>{var{variant:t}=e,n=j(e,["variant"]);const r=(0,s.useMemo)((()=>{switch(t){case"fullscreen":return T;case"circular":return M;default:return O}}),[t]);return(0,a.jsx)(r,Object.assign({className:"number"!=typeof n.value?"animated":"static"},n))};_.defaultProps={variant:"linear",color:"purple50",backgroundColor:"dark60",size:24};const D=_;var R=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{const{name:e}=k();return(0,a.jsxs)(E,{children:[(0,a.jsx)(A,{children:(0,a.jsx)("span",{})}),(0,a.jsx)(P,{children:"dark"===e?(0,a.jsx)(S.Z,{color:"dark0",size:74}):(0,a.jsx)(C.Z,{color:"purple50",size:74})})]})},_=e=>{var{variant:t}=e,n=j(e,["variant"]);const r=(0,s.useMemo)((()=>{switch(t){case"fullscreen":return T;case"circular":return M;default:return O}}),[t]);return(0,a.jsx)(r,Object.assign({className:"number"!=typeof n.value?"animated":"static"},n))};_.defaultProps={variant:"linear",color:"purple50",backgroundColor:"dark60",size:24};const D=_;var R=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i button { @@ -392,7 +392,7 @@ border: 1px solid transparent; ${({theme:e})=>(0,c.bU)({variants:{primary:{color:e.color("dark0","light100")({theme:e}),background:e.colors.purple50,":hover":{background:e.colors.purple30},":active":{background:e.colors.purple30},":disabled":{background:e.color("purple30","purple90")({theme:e}),color:e.color("purple70","white")({theme:e})}},secondary:{borderColor:e.color("dark60","light60")({theme:e}),color:e.color("dark0")({theme:e}),bg:e.color("dark60","light100")({theme:e}),":hover":{borderColor:e.color("dark60","light60")({theme:e}),bg:e.color("dark70","light100")({theme:e})},":active":{bg:e.color("dark80","light70")({theme:e})},":disabled":{borderColor:e.color("dark70","light60")({theme:e}),bg:e.color("dark70","light90")({theme:e}),color:e.color("dark40","light30")({theme:e})}},ghost:{bg:"transparent",color:"inherit",":hover":{bg:e.color("dark70","light70")({theme:e})},":active":{bg:e.color("dark70","light60")({theme:e})},":disabled":{bg:e.color("dark70","light70")({theme:e}),color:e.color("dark40","light30")({theme:e})}}}})} -`;F.defaultProps={variant:"primary",size:"medium"};var B=n(2761),W=n(1832);const U=(e,t={})=>{const[n,r]=(0,s.useState)(e),i=(0,s.useRef)(null),o=(0,s.useRef)(null);return(0,s.useEffect)((()=>{const e=e=>{var n;"Escape"===e.key&&(r(!1),null===(n=t.onClose)||void 0===n||n.call(t))},a=e=>{var n,a,s;(null===(n=i.current)||void 0===n?void 0:n.contains(e.target))||(null===(a=o.current)||void 0===a?void 0:a.contains(e.target))||(r(!1),null===(s=t.onClose)||void 0===s||s.call(t))};return n&&(document.addEventListener("keydown",e,!0),document.addEventListener("click",a,!0)),()=>{document.removeEventListener("keydown",e,!0),document.removeEventListener("click",a,!0)}}),[n]),[i,o,n,r]};var Y=n(6116);const q=()=>{const e=(0,s.useRef)(document.createElement("div"));(0,s.useEffect)((()=>(document.body.appendChild(e.current),()=>{document.body.removeChild(e.current)})),[]);return(0,s.useCallback)((({children:t})=>(0,Y.createPortal)(t,e.current)),[])};function G(e){return e.split("-")[0]}function K(e){return e.split("-")[1]}function X(e){return["top","bottom"].includes(G(e))?"x":"y"}function Q(e){return"y"===e?"height":"width"}function J(e,t,n){let{reference:r,floating:i}=e;const o=r.x+r.width/2-i.width/2,a=r.y+r.height/2-i.height/2,s=X(t),l=Q(s),c=r[l]/2-i[l]/2,u="x"===s;let d;switch(G(t)){case"top":d={x:o,y:r.y-i.height};break;case"bottom":d={x:o,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:a};break;case"left":d={x:r.x-i.width,y:a};break;default:d={x:r.x,y:r.y}}switch(K(t)){case"start":d[s]-=c*(n&&u?-1:1);break;case"end":d[s]+=c*(n&&u?-1:1)}return d}function ee(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function te(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function ne(e,t){var n;void 0===t&&(t={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=t,p=ee(f),m=s[h?"floating"===d?"reference":"floating":d],g=te(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v=te(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===d?{...a.floating,x:r,y:i}:a.reference,offsetParent:await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),strategy:l}):a[d]);return{top:g.top-v.top+p.top,bottom:v.bottom-g.bottom+p.bottom,left:g.left-v.left+p.left,right:v.right-g.right+p.right}}const re=Math.min,ie=Math.max;function oe(e,t,n){return ie(e,re(t,n))}const ae={left:"right",right:"left",bottom:"top",top:"bottom"};function se(e){return e.replace(/left|right|bottom|top/g,(e=>ae[e]))}function le(e,t,n){void 0===n&&(n=!1);const r=K(e),i=X(e),o=Q(i);let a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=se(a)),{main:a,cross:se(a)}}const ce={start:"end",end:"start"};function ue(e){return e.replace(/start|end/g,(e=>ce[e]))}const de=["top","right","bottom","left"],he=(de.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]),function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:i,rects:o,initialPlacement:a,platform:s,elements:l}=t,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",flipAlignment:f=!0,...p}=e,m=G(r),g=d||(m!==a&&f?function(e){const t=se(e);return[ue(e),t,ue(t)]}(a):[se(a)]),v=[a,...g],y=await ne(t,p),b=[];let w=(null==(n=i.flip)?void 0:n.overflows)||[];if(c&&b.push(y[m]),u){const{main:e,cross:t}=le(r,o,await(null==s.isRTL?void 0:s.isRTL(l.floating)));b.push(y[e],y[t])}if(w=[...w,{placement:r,overflows:b}],!b.every((e=>e<=0))){var x,k;const e=(null!=(x=null==(k=i.flip)?void 0:k.index)?x:0)+1,t=v[e];if(t)return{data:{index:e,overflows:w},reset:{placement:t}};let n="bottom";switch(h){case"bestFit":{var S;const e=null==(S=w.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:S[0].placement;e&&(n=e);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}});const fe=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,i=await async function(e,t){const{placement:n,platform:r,elements:i}=e,o=await(null==r.isRTL?void 0:r.isRTL(i.floating)),a=G(n),s=K(n),l="x"===X(n),c=["left","top"].includes(a)?-1:1,u=o&&l?-1:1,d="function"==typeof t?t(e):t;let{mainAxis:h,crossAxis:f,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof p&&(f="end"===s?-1*p:p),l?{x:f*u,y:h*c}:{x:h*c,y:f*u}}(t,e);return{x:n+i.x,y:r+i.y,data:i}}}};function pe(e){return"x"===e?"y":"x"}const me=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=e,c={x:n,y:r},u=await ne(t,l),d=X(G(i)),h=pe(d);let f=c[d],p=c[h];if(o){const e="y"===d?"bottom":"right";f=oe(f+u["y"===d?"top":"left"],f,f-u[e])}if(a){const e="y"===h?"bottom":"right";p=oe(p+u["y"===h?"top":"left"],p,p-u[e])}const m=s.fn({...t,[d]:f,[h]:p});return{...m,data:{x:m.x-n,y:m.y-r}}}}},ge=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:i,elements:o}=t,{apply:a=(()=>{}),...s}=e,l=await ne(t,s),c=G(n),u=K(n);let d,h;"top"===c||"bottom"===c?(d=c,h=u===(await(null==i.isRTL?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(h=c,d="end"===u?"top":"bottom");const f=ie(l.left,0),p=ie(l.right,0),m=ie(l.top,0),g=ie(l.bottom,0),v={availableHeight:r.floating.height-(["left","right"].includes(n)?2*(0!==m||0!==g?m+g:ie(l.top,l.bottom)):l[d]),availableWidth:r.floating.width-(["top","bottom"].includes(n)?2*(0!==f||0!==p?f+p:ie(l.left,l.right)):l[h])};await a({...t,...v});const y=await i.getDimensions(o.floating);return r.floating.width!==y.width||r.floating.height!==y.height?{reset:{rects:!0}}:{}}}};function ve(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function ye(e){if(null==e)return window;if(!ve(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function be(e){return ye(e).getComputedStyle(e)}function we(e){return ve(e)?"":e?(e.nodeName||"").toLowerCase():""}function xe(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function ke(e){return e instanceof ye(e).HTMLElement}function Se(e){return e instanceof ye(e).Element}function Ce(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ye(e).ShadowRoot||e instanceof ShadowRoot)}function je(e){const{overflow:t,overflowX:n,overflowY:r}=be(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function Oe(e){return["table","td","th"].includes(we(e))}function Me(e){const t=/firefox/i.test(xe()),n=be(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function Pe(){return!/^((?!chrome|android).)*safari/i.test(xe())}const Ee=Math.min,Ae=Math.max,Te=Math.round;function _e(e,t,n){var r,i,o,a;void 0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect();let l=1,c=1;t&&ke(e)&&(l=e.offsetWidth>0&&Te(s.width)/e.offsetWidth||1,c=e.offsetHeight>0&&Te(s.height)/e.offsetHeight||1);const u=Se(e)?ye(e):window,d=!Pe()&&n,h=(s.left+(d&&null!=(r=null==(i=u.visualViewport)?void 0:i.offsetLeft)?r:0))/l,f=(s.top+(d&&null!=(o=null==(a=u.visualViewport)?void 0:a.offsetTop)?o:0))/c,p=s.width/l,m=s.height/c;return{width:p,height:m,top:f,right:h+p,bottom:f+m,left:h,x:h,y:f}}function De(e){return(t=e,(t instanceof ye(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function Re(e){return Se(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ze(e){return _e(De(e)).left+Re(e).scrollLeft}function Ie(e,t,n){const r=ke(t),i=De(t),o=_e(e,r&&function(e){const t=_e(e);return Te(t.width)!==e.offsetWidth||Te(t.height)!==e.offsetHeight}(t),"fixed"===n);let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==we(t)||je(i))&&(a=Re(t)),ke(t)){const e=_e(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=ze(i));return{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}function Le(e){return"html"===we(e)?e:e.assignedSlot||e.parentNode||(Ce(e)?e.host:null)||De(e)}function $e(e){return ke(e)&&"fixed"!==be(e).position?function(e){let{offsetParent:t}=e,n=e,r=!1;for(;n&&n!==t;){const{assignedSlot:e}=n;if(e){let i=e.offsetParent;if("contents"===be(e).display){const t=e.hasAttribute("style"),r=e.style.display;e.style.display=be(n).display,i=e.offsetParent,e.style.display=r,t||e.removeAttribute("style")}n=e,t!==i&&(t=i,r=!0)}else if(Ce(n)&&n.host&&r)break;n=Ce(n)&&n.host||n.parentNode}return t}(e):null}function Ne(e){const t=ye(e);let n=$e(e);for(;n&&Oe(n)&&"static"===be(n).position;)n=$e(n);return n&&("html"===we(n)||"body"===we(n)&&"static"===be(n).position&&!Me(n))?t:n||function(e){let t=Le(e);for(Ce(t)&&(t=t.host);ke(t)&&!["html","body"].includes(we(t));){if(Me(t))return t;{const e=t.parentNode;t=Ce(e)?e.host:e}}return null}(e)||t}function Ze(e){if(ke(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=_e(e);return{width:t.width,height:t.height}}function He(e){const t=Le(e);return["html","body","#document"].includes(we(t))?e.ownerDocument.body:ke(t)&&je(t)?t:He(t)}function Ve(e,t){var n;void 0===t&&(t=[]);const r=He(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=ye(r),a=i?[o].concat(o.visualViewport||[],je(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(Ve(a))}function Fe(e,t,n){return"viewport"===t?te(function(e,t){const n=ye(e),r=De(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const e=Pe();(e||!e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,n)):Se(t)?function(e,t){const n=_e(e,!1,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft;return{top:r,left:i,x:i,y:r,right:i+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):te(function(e){var t;const n=De(e),r=Re(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=Ae(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Ae(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);let s=-r.scrollLeft+ze(e);const l=-r.scrollTop;return"rtl"===be(i||n).direction&&(s+=Ae(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(De(e)))}function Be(e){const t=Ve(e),n=["absolute","fixed"].includes(be(e).position)&&ke(e)?Ne(e):e;return Se(n)?t.filter((e=>Se(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Ce(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==we(e))):[]}const We={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[..."clippingAncestors"===n?Be(t):[].concat(n),r],a=o[0],s=o.reduce(((e,n)=>{const r=Fe(t,n,i);return e.top=Ae(r.top,e.top),e.right=Ee(r.right,e.right),e.bottom=Ee(r.bottom,e.bottom),e.left=Ae(r.left,e.left),e}),Fe(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=ke(n),o=De(n);if(n===o)return t;let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((i||!i&&"fixed"!==r)&&(("body"!==we(n)||je(o))&&(a=Re(n)),ke(n))){const e=_e(n,!0);s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:Se,getDimensions:Ze,getOffsetParent:Ne,getDocumentElement:De,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:Ie(t,Ne(n),r),floating:{...Ze(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===be(e).direction};function Ue(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=!0,animationFrame:s=!1}=r,l=i&&!s,c=o&&!s,u=l||c?[...Se(e)?Ve(e):[],...Ve(t)]:[];u.forEach((e=>{l&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)}));let d,h=null;if(a){let r=!0;h=new ResizeObserver((()=>{r||n(),r=!1})),Se(e)&&!s&&h.observe(e),h.observe(t)}let f=s?_e(e):null;return s&&function t(){const r=_e(e);!f||r.x===f.x&&r.y===f.y&&r.width===f.width&&r.height===f.height||n(),f=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{l&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)})),null==(e=h)||e.disconnect(),h=null,s&&cancelAnimationFrame(d)}}const Ye=(e,t,n)=>(async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:u}=J(l,r,s),d=r,h={},f=0;for(let n=0;n{(0,s.useEffect)((()=>{const i=()=>qe(void 0,void 0,void 0,(function*(){var n,i,o;if(!t.current||!e.current)return;const a=[];(null==r?void 0:r.offset)&&a.push(fe(r.offset)),(null==r?void 0:r.flip)&&a.push(he()),((null==r?void 0:r.maxHeight)||(null==r?void 0:r.maxWidth))&&a.push(ge({apply({availableHeight:e,availableWidth:t,elements:n}){(null==r?void 0:r.maxHeight)&&Object.assign(n.floating.style,{height:`${null==r?void 0:r.maxHeight}px`,maxHeight:Math.floor(e)-24+"px"}),r.maxWidth&&Object.assign(n.floating.style,{width:`${null==r?void 0:r.maxWidth}px`,maxWidth:Math.floor(t)-24+"px"})}})),(null===(n=null==r?void 0:r.arrow)||void 0===n?void 0:n.current)&&a.push((e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=null!=e?e:{},{x:i,y:o,placement:a,rects:s,platform:l}=t;if(null==n)return{};const c=ee(r),u={x:i,y:o},d=X(a),h=K(a),f=Q(d),p=await l.getDimensions(n),m="y"===d?"top":"left",g="y"===d?"bottom":"right",v=s.reference[f]+s.reference[d]-u[d]-s.floating[f],y=u[d]-s.reference[d],b=await(null==l.getOffsetParent?void 0:l.getOffsetParent(n));let w=b?"y"===d?b.clientHeight||0:b.clientWidth||0:0;0===w&&(w=s.floating[f]);const x=v/2-y/2,k=c[m],S=w-p[f]-c[g],C=w/2-p[f]/2+x,j=oe(k,C,S),O=("start"===h?c[m]:c[g])>0&&C!==j&&s.reference[f]<=s.floating[f];return{[d]:u[d]-(O?C{null==o||o()}}),[r,n])};function Ke(){return Ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function Qe(e,t){return Qe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Qe(e,t)}function Je(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Qe(e,t)}function et(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const tt=!1,nt=s.createContext(null);var rt=function(e){return e.scrollTop},it="unmounted",ot="exited",at="entering",st="entered",lt="exiting",ct=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=ot,r.appearStatus=at):i=st:i=t.unmountOnExit||t.mountOnEnter?it:ot,r.state={status:i},r.nextCallback=null,r}Je(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===it?{status:ot}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==at&&n!==st&&(t=at):n!==at&&n!==st||(t=lt)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===at){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Y.findDOMNode(this);n&&rt(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ot&&this.setState({status:it})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[Y.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||tt?this.safeSetState({status:st},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:at},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:st},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Y.findDOMNode(this);t&&!tt?(this.props.onExit(r),this.safeSetState({status:lt},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:ot},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:ot},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Y.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===it)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Xe(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return s.createElement(nt.Provider,{value:null},"function"==typeof n?n(e,r):s.cloneElement(s.Children.only(n),r))},t}(s.Component);function ut(){}ct.contextType=nt,ct.propTypes={},ct.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ut,onEntering:ut,onEntered:ut,onExit:ut,onExiting:ut,onExited:ut},ct.UNMOUNTED=it,ct.EXITED=ot,ct.ENTERING=at,ct.ENTERED=st,ct.EXITING=lt;const dt=ct;var ht=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=et(n.className,r):n.setAttribute("class",et(n.className&&n.className.baseVal||"",r)));var n,r}))},ft=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i{var{className:t}=e,n=mt(e,["className"]);return(0,a.jsx)(pt,Object.assign({classNames:t,unmountOnExit:!0,mountOnEnter:!0},n))},vt=({$transitionFunction:e,$transitionProperty:t,timeout:n=0})=>{var r,i,o;const a="number"==typeof n;return y.css` +`;F.defaultProps={variant:"primary",size:"medium"};var B=n(2761),W=n(1832);const U=(e,t={})=>{const[n,r]=(0,s.useState)(e),i=(0,s.useRef)(null),o=(0,s.useRef)(null);return(0,s.useEffect)((()=>{const e=e=>{var n;"Escape"===e.key&&(r(!1),null===(n=t.onClose)||void 0===n||n.call(t))},a=e=>{var n,a,s;(null===(n=i.current)||void 0===n?void 0:n.contains(e.target))||(null===(a=o.current)||void 0===a?void 0:a.contains(e.target))||(r(!1),null===(s=t.onClose)||void 0===s||s.call(t))};return n&&(document.addEventListener("keydown",e,!0),document.addEventListener("click",a,!0)),()=>{document.removeEventListener("keydown",e,!0),document.removeEventListener("click",a,!0)}}),[n]),[i,o,n,r]};var Y=n(6116);const K=()=>{const e=(0,s.useRef)(document.createElement("div"));(0,s.useEffect)((()=>(document.body.appendChild(e.current),()=>{document.body.removeChild(e.current)})),[]);return(0,s.useCallback)((({children:t})=>(0,Y.createPortal)(t,e.current)),[])};function q(e){return e.split("-")[1]}function G(e){return"y"===e?"height":"width"}function X(e){return e.split("-")[0]}function Q(e){return["top","bottom"].includes(X(e))?"x":"y"}function J(e,t,n){let{reference:r,floating:i}=e;const o=r.x+r.width/2-i.width/2,a=r.y+r.height/2-i.height/2,s=Q(t),l=G(s),c=r[l]/2-i[l]/2,u="x"===s;let d;switch(X(t)){case"top":d={x:o,y:r.y-i.height};break;case"bottom":d={x:o,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:a};break;case"left":d={x:r.x-i.width,y:a};break;default:d={x:r.x,y:r.y}}switch(q(t)){case"start":d[s]-=c*(n&&u?-1:1);break;case"end":d[s]+=c*(n&&u?-1:1)}return d}const ee=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=J(c,r,l),h=r,f={},p=0;for(let n=0;ne.concat(t,t+"-start",t+"-end")),[]),{left:"right",right:"left",bottom:"top",top:"bottom"});function ue(e){return e.replace(/left|right|bottom|top/g,(e=>ce[e]))}function de(e,t,n){void 0===n&&(n=!1);const r=q(e),i=Q(e),o=G(i);let a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=ue(a)),{main:a,cross:ue(a)}}const he={start:"end",end:"start"};function fe(e){return e.replace(/start|end/g,(e=>he[e]))}const pe=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:i,rects:o,initialPlacement:a,platform:s,elements:l}=t,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:p=!0,...m}=te(e,t),g=X(r),v=X(a)===a,y=await(null==s.isRTL?void 0:s.isRTL(l.floating)),b=d||(v||!p?[ue(a)]:function(e){const t=ue(e);return[fe(e),t,fe(t)]}(a));d||"none"===f||b.push(...function(e,t,n,r){const i=q(e);let o=function(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}(X(e),"start"===n,r);return i&&(o=o.map((e=>e+"-"+i)),t&&(o=o.concat(o.map(fe)))),o}(a,p,f,y));const w=[a,...b],x=await ie(t,m),k=[];let S=(null==(n=i.flip)?void 0:n.overflows)||[];if(c&&k.push(x[g]),u){const{main:e,cross:t}=de(r,o,y);k.push(x[e],x[t])}if(S=[...S,{placement:r,overflows:k}],!k.every((e=>e<=0))){var C,j;const e=((null==(C=i.flip)?void 0:C.index)||0)+1,t=w[e];if(t)return{data:{index:e,overflows:S},reset:{placement:t}};let n=null==(j=S.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:j.placement;if(!n)switch(h){case"bestFit":{var O;const e=null==(O=S.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:O[0];e&&(n=e);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}};const me=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,i=await async function(e,t){const{placement:n,platform:r,elements:i}=e,o=await(null==r.isRTL?void 0:r.isRTL(i.floating)),a=X(n),s=q(n),l="x"===Q(n),c=["left","top"].includes(a)?-1:1,u=o&&l?-1:1,d=te(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof p&&(f="end"===s?-1*p:p),l?{x:f*u,y:h*c}:{x:h*c,y:f*u}}(t,e);return{x:n+i.x,y:r+i.y,data:i}}}};function ge(e){return"x"===e?"y":"x"}const ve=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=te(e,t),c={x:n,y:r},u=await ie(t,l),d=Q(X(i)),h=ge(d);let f=c[d],p=c[h];if(o){const e="y"===d?"bottom":"right";f=se(f+u["y"===d?"top":"left"],f,f-u[e])}if(a){const e="y"===h?"bottom":"right";p=se(p+u["y"===h?"top":"left"],p,p-u[e])}const m=s.fn({...t,[d]:f,[h]:p});return{...m,data:{x:m.x-n,y:m.y-r}}}}},ye=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:i,elements:o}=t,{apply:a=(()=>{}),...s}=te(e,t),l=await ie(t,s),c=X(n),u=q(n),d="x"===Q(n),{width:h,height:f}=r.floating;let p,m;"top"===c||"bottom"===c?(p=c,m=u===(await(null==i.isRTL?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(m=c,p="end"===u?"top":"bottom");const g=f-l[p],v=h-l[m],y=!t.middlewareData.shift;let b=g,w=v;if(d){const e=h-l.left-l.right;w=u||y?oe(v,e):e}else{const e=f-l.top-l.bottom;b=u||y?oe(g,e):e}if(y&&!u){const e=ae(l.left,0),t=ae(l.right,0),n=ae(l.top,0),r=ae(l.bottom,0);d?w=h-2*(0!==e||0!==t?e+t:ae(l.left,l.right)):b=f-2*(0!==n||0!==r?n+r:ae(l.top,l.bottom))}await a({...t,availableWidth:w,availableHeight:b});const x=await i.getDimensions(o.floating);return h!==x.width||f!==x.height?{reset:{rects:!0}}:{}}}};function be(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function we(e){return be(e).getComputedStyle(e)}function xe(e){return e instanceof be(e).Node}function ke(e){return xe(e)?(e.nodeName||"").toLowerCase():"#document"}function Se(e){return e instanceof be(e).HTMLElement}function Ce(e){return e instanceof be(e).Element}function je(e){return"undefined"!=typeof ShadowRoot&&(e instanceof be(e).ShadowRoot||e instanceof ShadowRoot)}function Oe(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=we(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Me(e){return["table","td","th"].includes(ke(e))}function Ee(e){const t=Pe(),n=we(e);return"none"!==n.transform||"none"!==n.perspective||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Pe(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Ae(e){return["html","body","#document"].includes(ke(e))}const Te=Math.min,_e=Math.max,De=Math.round,Re=Math.floor,ze=e=>({x:e,y:e});function Ie(e){const t=we(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Se(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=De(n)!==o||De(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function Le(e){return Ce(e)?e:e.contextElement}function $e(e){const t=Le(e);if(!Se(t))return ze(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Ie(t);let a=(o?De(n.width):n.width)/r,s=(o?De(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Ne=ze(0);function Ze(e,t,n){var r,i;if(void 0===t&&(t=!0),!Pe())return Ne;const o=e?be(e):window;return!n||t&&n!==o?Ne:{x:(null==(r=o.visualViewport)?void 0:r.offsetLeft)||0,y:(null==(i=o.visualViewport)?void 0:i.offsetTop)||0}}function He(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=Le(e);let a=ze(1);t&&(r?Ce(r)&&(a=$e(r)):a=$e(e));const s=Ze(o,n,r);let l=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,u=i.width/a.x,d=i.height/a.y;if(o){const e=be(o),t=r&&Ce(r)?be(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=$e(n),t=n.getBoundingClientRect(),r=getComputedStyle(n),i=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=o,n=be(n).frameElement}}return re({width:u,height:d,x:l,y:c})}function Ve(e){return((xe(e)?e.ownerDocument:e.document)||window.document).documentElement}function Fe(e){return Ce(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Be(e){return He(Ve(e)).left+Fe(e).scrollLeft}function We(e){if("html"===ke(e))return e;const t=e.assignedSlot||e.parentNode||je(e)&&e.host||Ve(e);return je(t)?t.host:t}function Ue(e){const t=We(e);return Ae(t)?e.ownerDocument?e.ownerDocument.body:e.body:Se(t)&&Oe(t)?t:Ue(t)}function Ye(e,t){var n;void 0===t&&(t=[]);const r=Ue(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=be(r);return i?t.concat(o,o.visualViewport||[],Oe(r)?r:[]):t.concat(r,Ye(r))}function Ke(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=be(e),r=Ve(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const e=Pe();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=Ve(e),n=Fe(e),r=e.ownerDocument.body,i=_e(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=_e(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Be(e);const s=-n.scrollTop;return"rtl"===we(r).direction&&(a+=_e(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}(Ve(e));else if(Ce(t))r=function(e,t){const n=He(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Se(e)?$e(e):ze(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{const n=Ze(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return re(r)}function qe(e,t){const n=We(e);return!(n===t||!Ce(n)||Ae(n))&&("fixed"===we(n).position||qe(n,t))}function Ge(e,t){return Se(e)&&"fixed"!==we(e).position?t?t(e):e.offsetParent:null}function Xe(e,t){const n=be(e);if(!Se(e))return n;let r=Ge(e,t);for(;r&&Me(r)&&"static"===we(r).position;)r=Ge(r,t);return r&&("html"===ke(r)||"body"===ke(r)&&"static"===we(r).position&&!Ee(r))?n:r||function(e){let t=We(e);for(;Se(t)&&!Ae(t);){if(Ee(t))return t;t=We(t)}return null}(e)||n}function Qe(e,t,n){const r=Se(t),i=Ve(t),o="fixed"===n,a=He(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=ze(0);if(r||!r&&!o)if(("body"!==ke(t)||Oe(i))&&(s=Fe(t)),Se(t)){const e=He(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=Be(i));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}const Je={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o="clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=Ye(e).filter((e=>Ce(e)&&"body"!==ke(e))),i=null;const o="fixed"===we(e).position;let a=o?We(e):e;for(;Ce(a)&&!Ae(a);){const t=we(a),n=Ee(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&i&&["absolute","fixed"].includes(i.position)||Oe(a)&&!n&&qe(e,a))?r=r.filter((e=>e!==a)):i=t,a=We(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[...o,r],s=a[0],l=a.reduce(((e,n)=>{const r=Ke(t,n,i);return e.top=_e(r.top,e.top),e.right=Te(r.right,e.right),e.bottom=Te(r.bottom,e.bottom),e.left=_e(r.left,e.left),e}),Ke(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=Se(n),o=Ve(n);if(n===o)return t;let a={scrollLeft:0,scrollTop:0},s=ze(1);const l=ze(0);if((i||!i&&"fixed"!==r)&&(("body"!==ke(n)||Oe(o))&&(a=Fe(n)),Se(n))){const e=He(n);s=$e(n),l.x=e.x+n.clientLeft,l.y=e.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+l.x,y:t.y*s.y-a.scrollTop*s.y+l.y}},isElement:Ce,getDimensions:function(e){return Ie(e)},getOffsetParent:Xe,getDocumentElement:Ve,getScale:$e,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e;const i=this.getOffsetParent||Xe,o=this.getDimensions;return{reference:Qe(t,await i(n),r),floating:{x:0,y:0,...await o(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===we(e).direction};function et(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=!0,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Le(e),u=i||o?[...c?Ye(c):[],...Ye(t)]:[];u.forEach((e=>{i&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const i=Ve(e);function o(){clearTimeout(n),r&&r.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();const{left:c,top:u,width:d,height:h}=e.getBoundingClientRect();if(s||t(),!d||!h)return;const f=Re(u),p=Re(i.clientWidth-(c+d)),m=Re(i.clientHeight-(u+h)),g=Re(c);let v=!0;r=new IntersectionObserver((e=>{const t=e[0].intersectionRatio;if(t!==l){if(!v)return a();0===t?n=setTimeout((()=>{a(!1,1e-7)}),100):a(!1,t)}v=!1}),{rootMargin:-f+"px "+-p+"px "+-m+"px "+-g+"px",threshold:l}),r.observe(e)}(!0),o}(c,n):null;let h,f=null;a&&(f=new ResizeObserver(n),c&&!l&&f.observe(c),f.observe(t));let p=l?He(e):null;return l&&function t(){const r=He(e);!p||r.x===p.x&&r.y===p.y&&r.width===p.width&&r.height===p.height||n(),p=r,h=requestAnimationFrame(t)}(),n(),()=>{u.forEach((e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),d&&d(),f&&f.disconnect(),f=null,l&&cancelAnimationFrame(h)}}const tt=(e,t,n)=>{const r=new Map,i={platform:Je,...n},o={...i.platform,_c:r};return ee(e,t,{...i,platform:o})};var nt=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const rt=(e,t,n,r)=>{(0,s.useEffect)((()=>{const i=()=>nt(void 0,void 0,void 0,(function*(){var n,i,o;if(!t.current||!e.current)return;const a=[];(null==r?void 0:r.offset)&&a.push(me(r.offset)),(null==r?void 0:r.flip)&&a.push(pe()),((null==r?void 0:r.maxHeight)||(null==r?void 0:r.maxWidth))&&a.push(ye({apply({availableHeight:e,availableWidth:t,elements:n}){(null==r?void 0:r.maxHeight)&&Object.assign(n.floating.style,{height:`${null==r?void 0:r.maxHeight}px`,maxHeight:Math.floor(e)-24+"px"}),r.maxWidth&&Object.assign(n.floating.style,{width:`${null==r?void 0:r.maxWidth}px`,maxWidth:Math.floor(t)-24+"px"})}})),(null===(n=null==r?void 0:r.arrow)||void 0===n?void 0:n.current)&&a.push((e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:s}=t,{element:l,padding:c=0}=te(e,t)||{};if(null==l)return{};const u=ne(c),d={x:n,y:r},h=Q(i),f=G(h),p=await a.getDimensions(l),m="y"===h,g=m?"top":"left",v=m?"bottom":"right",y=m?"clientHeight":"clientWidth",b=o.reference[f]+o.reference[h]-d[h]-o.floating[f],w=d[h]-o.reference[h],x=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l));let k=x?x[y]:0;k&&await(null==a.isElement?void 0:a.isElement(x))||(k=s.floating[y]||o.floating[f]);const S=b/2-w/2,C=k/2-p[f]/2-1,j=oe(u[g],C),O=oe(u[v],C),M=j,E=k-p[f]-O,P=k/2-p[f]/2+S,A=se(M,P,E),T=null!=q(i)&&P!=A&&o.reference[f]/2-(P{null==o||o()}}),[r,n])};function it(){return it=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var at=n(2717);function st(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,at.Z)(e,t)}function lt(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const ct=!1,ut=s.createContext(null);var dt=function(e){return e.scrollTop},ht="unmounted",ft="exited",pt="entering",mt="entered",gt="exiting",vt=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=ft,r.appearStatus=pt):i=mt:i=t.unmountOnExit||t.mountOnEnter?ht:ft,r.state={status:i},r.nextCallback=null,r}st(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===ht?{status:ft}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==pt&&n!==mt&&(t=pt):n!==pt&&n!==mt||(t=gt)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===pt){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Y.findDOMNode(this);n&&dt(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ft&&this.setState({status:ht})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[Y.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||ct?this.safeSetState({status:mt},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:pt},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:mt},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Y.findDOMNode(this);t&&!ct?(this.props.onExit(r),this.safeSetState({status:gt},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:ft},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:ft},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Y.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===ht)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,ot(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return s.createElement(ut.Provider,{value:null},"function"==typeof n?n(e,r):s.cloneElement(s.Children.only(n),r))},t}(s.Component);function yt(){}vt.contextType=ut,vt.propTypes={},vt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:yt,onEntering:yt,onEntered:yt,onExit:yt,onExiting:yt,onExited:yt},vt.UNMOUNTED=ht,vt.EXITED=ft,vt.ENTERING=pt,vt.ENTERED=mt,vt.EXITING=gt;const bt=vt;var wt=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=lt(n.className,r):n.setAttribute("class",lt(n.className&&n.className.baseVal||"",r)));var n,r}))},xt=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i{var{className:t}=e,n=St(e,["className"]);return(0,a.jsx)(kt,Object.assign({classNames:t,unmountOnExit:!0,mountOnEnter:!0},n))},jt=({$transitionFunction:e,$transitionProperty:t,timeout:n=0})=>{var r,i,o;const a="number"==typeof n;return y.css` &-appear-active, &-appear-done { transition-property: ${t}; @@ -411,7 +411,7 @@ transition-duration: ${a?n:null!==(o=n.exit)&&void 0!==o?o:0}ms; transition-timing-function: ${e}; } - `},yt=(0,y.default)(gt).attrs((e=>{var{theme:t}=e,n=mt(e,["theme"]);return Object.assign({$transitionFunction:t.transition.function.default,$transitionProperty:"transform, opacity",timeout:t.transition.duration.fast},n)}))` + `},Ot=(0,y.default)(Ct).attrs((e=>{var{theme:t}=e,n=St(e,["theme"]);return Object.assign({$transitionFunction:t.transition.function.default,$transitionProperty:"transform, opacity",timeout:t.transition.duration.fast},n)}))` &-enter, &-appear { transform: scale(0.94); @@ -434,8 +434,8 @@ opacity: 0; } - ${vt} -`,bt=(0,y.default)(gt).attrs((e=>{var{theme:t}=e,n=mt(e,["theme"]);return Object.assign({$transitionFunction:t.transition.function.linear,$transitionProperty:"opacity",timeout:t.transition.duration.instant},n)}))` + ${jt} +`,Mt=(0,y.default)(Ct).attrs((e=>{var{theme:t}=e,n=St(e,["theme"]);return Object.assign({$transitionFunction:t.transition.function.linear,$transitionProperty:"opacity",timeout:t.transition.duration.instant},n)}))` &-enter, &-appear { opacity: 0; @@ -451,8 +451,8 @@ opacity: 0; } - ${vt} -`,wt=(0,y.default)(gt).attrs((e=>{var{theme:t}=e,n=mt(e,["theme"]);return Object.assign({$transitionFunction:t.transition.function.default,$transitionProperty:"transform, opacity",timeout:t.transition.duration.normal,$y:"5px",$x:"0"},n)}))` + ${jt} +`,Et=(0,y.default)(Ct).attrs((e=>{var{theme:t}=e,n=St(e,["theme"]);return Object.assign({$transitionFunction:t.transition.function.default,$transitionProperty:"transform, opacity",timeout:t.transition.duration.normal,$y:"5px",$x:"0"},n)}))` &-enter, &-appear { transform: translate(${({$x:e})=>e}, ${({$y:e})=>e}); @@ -471,13 +471,13 @@ opacity: 0; } - ${vt} -`,xt=gt;xt.Fade=bt,xt.Slide=wt,xt.Scale=yt;var kt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie.zIndex.tooltip}; width: ${({matchWidth:e,width:t})=>e?"100%":"number"==typeof t?`${t}px`:t}; @@ -525,7 +525,7 @@ border-top: 1px solid ${({theme:e})=>e.color("dark60")}; } } -`,Ot=r.zo.span` +`,Rt=r.zo.span` position: absolute; width: 14px; height: 14px; @@ -533,7 +533,7 @@ background-color: ${({theme:e})=>e.color("dark90","light100")}; border-radius: 2px; -`,Mt=(0,m.w)(((e,t)=>{var{children:n,width:r,trigger:i,hover:o,initialIsVisible:l,visible:c,matchWidth:u,maxHeight:d,maxWidth:h,placement:f,triggerRef:p}=e,m=kt(e,["children","width","trigger","hover","initialIsVisible","visible","matchWidth","maxHeight","maxWidth","placement","triggerRef"]);const[g,v,y,b]=U(!!l),[w,x]=(0,s.useState)(!1),k=(0,s.useRef)(null),S=q(),C=(0,s.useMemo)((()=>({placement:f,arrow:k,matchWidth:u,flip:!0,maxHeight:d,maxWidth:h})),[u,d,h,f]),j="boolean"==typeof c?c:y||w;Ge(p||g,v,j,C);const O=(0,s.useCallback)((()=>{b(!0),x(!0)}),[]),M=(0,s.useCallback)((()=>{b(!1),x(!1)}),[]),P=(0,s.useCallback)((()=>{o&&x(!0)}),[o]),E=(0,s.useCallback)((()=>{o&&x(!1)}),[o]),A=(0,s.useCallback)((()=>{w?(b(!1),x(!1)):b(!y)}),[y,w]);return(0,a.jsxs)(St,Object.assign({onMouseEnter:P,onMouseLeave:E},{children:[i&&(0,a.jsx)(Ct,Object.assign({ref:g},{children:i({openPopover:O,closePopover:M,toggle:A})})),(0,a.jsx)(xt.Fade,Object.assign({in:j,exit:!1},{children:(0,a.jsx)(S,{children:(0,a.jsxs)(jt,Object.assign({ref:v,width:r,matchWidth:u},{children:[(0,a.jsx)("div",Object.assign({ref:t},m,{children:n})),(0,a.jsx)(Ot,{ref:k,className:"popover-arrow"})]}))})}))]}))}));var Pt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{children:n,width:r,trigger:i,hover:o,initialIsVisible:l,visible:c,matchWidth:u,maxHeight:d,maxWidth:h,placement:f,triggerRef:p}=e,m=At(e,["children","width","trigger","hover","initialIsVisible","visible","matchWidth","maxHeight","maxWidth","placement","triggerRef"]);const[g,v,y,b]=U(!!l),[w,x]=(0,s.useState)(!1),k=(0,s.useRef)(null),S=K(),C=(0,s.useMemo)((()=>({placement:f,arrow:k,matchWidth:u,flip:!0,maxHeight:d,maxWidth:h})),[u,d,h,f]),j="boolean"==typeof c?c:y||w;rt(p||g,v,j,C);const O=(0,s.useCallback)((()=>{b(!0),x(!0)}),[]),M=(0,s.useCallback)((()=>{b(!1),x(!1)}),[]),E=(0,s.useCallback)((()=>{o&&x(!0)}),[o]),P=(0,s.useCallback)((()=>{o&&x(!1)}),[o]),A=(0,s.useCallback)((()=>{w?(b(!1),x(!1)):b(!y)}),[y,w]);return(0,a.jsxs)(Tt,Object.assign({onMouseEnter:E,onMouseLeave:P},{children:[i&&(0,a.jsx)(_t,Object.assign({ref:g},{children:i({openPopover:O,closePopover:M,toggle:A})})),(0,a.jsx)(Pt.Fade,Object.assign({in:j,exit:!1},{children:(0,a.jsx)(S,{children:(0,a.jsxs)(Dt,Object.assign({ref:v,width:r,matchWidth:u},{children:[(0,a.jsx)("div",Object.assign({ref:t},m,{children:n})),(0,a.jsx)(Rt,{ref:k,className:"popover-arrow"})]}))})}))]}))}));var It=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie?t.color("dark80","dark0")({theme:t}):t.color("dark100","dark0")({theme:t})}; transition: background-color ${({theme:e})=>`${e.transition.duration.slow}ms ${e.transition.function.easeOut}`}; } -`,Dt=(0,r.zo)(v)` +`,Ht=(0,r.zo)(v)` display: flex; height: 56px; border-bottom: 1px solid ${({theme:e})=>e.color("dark60")}; @@ -641,7 +641,7 @@ ${({theme:e})=>e.screen.m} { border-bottom: ${({theme:e})=>`1px solid ${e.color("transparent")({theme:e})}`}; } -`,Rt=r.zo.p` +`,Vt=r.zo.p` width: 205px; padding: 5px 0; @@ -656,7 +656,7 @@ &:first-letter { text-transform: capitalize; } -`,zt=r.zo.button` +`,Ft=r.zo.button` display: flex; white-space: nowrap; background: none; @@ -667,7 +667,7 @@ ${({hovered:e,theme:t})=>e?r.iv` background-color: ${t.color("dark80","light100")({theme:t})}; `:null} -`,It=({children:e,popoverContent:t})=>{const n=(0,s.useCallback)((({closePopover:t})=>(0,a.jsx)("div",Object.assign({onMouseLeave:t},{children:e}))),[e]);return t?(0,a.jsx)(Mt,Object.assign({trigger:n,placement:"bottom",hover:!0},{children:t})):(0,a.jsx)(a.Fragment,{children:e})},Lt=e=>{var{children:t,logoText:n,logoIcon:r,logoPopover:i,onLogoClick:o,withAppSideBar:l,onHamburgerClick:c}=e,u=Pt(e,["children","logoText","logoIcon","logoPopover","onLogoClick","withAppSideBar","onHamburgerClick"]);const[d,h]=(0,s.useState)(!1),[f,m]=(0,s.useState)(!1),g=()=>{m(!f)};return(0,a.jsxs)(Et,Object.assign({open:d},u,{children:[(0,a.jsx)(It,Object.assign({popoverContent:i},{children:(0,a.jsxs)(zt,Object.assign({"aria-label":"Logo",onClick:o,onMouseEnter:g,onMouseLeave:g,hovered:f},{children:[(0,a.jsx)(_t,Object.assign({justifyContent:"center",alignItems:"center",hovered:f,withAppSideBar:l},{children:r||(0,a.jsx)(p,Object.assign({shape:"rounded",size:"medium",backgroundColor:"transparent"},{children:(0,a.jsx)(S.Z,{})}))})),n&&(0,a.jsx)(Dt,Object.assign({hovered:f,width:"206px"},{children:(0,a.jsx)(Rt,Object.assign({hovered:f},{children:n}))}))]}))})),(0,a.jsx)(At,Object.assign({open:d},{children:t})),(0,a.jsx)(Tt,{children:(0,a.jsx)(F,{"aria-label":"Toggle menu",onClick:e=>{c?c(e):h(!d)},icon:d?B.Z:W.Z,variant:"ghost"})})]}))};Lt.defaultProps={position:"fixed",top:0,left:0};const $t=Lt;var Nt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{const n=(0,s.useCallback)((({closePopover:t})=>(0,a.jsx)("div",Object.assign({onMouseLeave:t},{children:e}))),[e]);return t?(0,a.jsx)(zt,Object.assign({trigger:n,placement:"bottom",hover:!0},{children:t})):(0,a.jsx)(a.Fragment,{children:e})},Wt=e=>{var{children:t,logoText:n,logoIcon:r,logoPopover:i,onLogoClick:o,withAppSideBar:l,onHamburgerClick:c}=e,u=It(e,["children","logoText","logoIcon","logoPopover","onLogoClick","withAppSideBar","onHamburgerClick"]);const[d,h]=(0,s.useState)(!1),[f,m]=(0,s.useState)(!1),g=()=>{m(!f)};return(0,a.jsxs)(Lt,Object.assign({open:d},u,{children:[(0,a.jsx)(Bt,Object.assign({popoverContent:i},{children:(0,a.jsxs)(Ft,Object.assign({"aria-label":"Logo",onClick:o,onMouseEnter:g,onMouseLeave:g,hovered:f},{children:[(0,a.jsx)(Zt,Object.assign({justifyContent:"center",alignItems:"center",hovered:f,withAppSideBar:l},{children:r||(0,a.jsx)(p,Object.assign({shape:"rounded",size:"medium",backgroundColor:"transparent"},{children:(0,a.jsx)(S.Z,{})}))})),n&&(0,a.jsx)(Ht,Object.assign({hovered:f,width:"206px"},{children:(0,a.jsx)(Vt,Object.assign({hovered:f},{children:n}))}))]}))})),(0,a.jsx)($t,Object.assign({open:d},{children:t})),(0,a.jsx)(Nt,{children:(0,a.jsx)(F,{"aria-label":"Toggle menu",onClick:e=>{c?c(e):h(!d)},icon:d?B.Z:W.Z,variant:"ghost"})})]}))};Wt.defaultProps={position:"fixed",top:0,left:0};const Ut=Wt;var Yt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{children:t}=e,n=Nt(e,["children"]);return(0,a.jsx)(Zt,Object.assign({},n,{children:t}))};var Vt=n(9068),Ft=n(1951);function Bt(e,t){"function"==typeof e?e(t):e&&(e.current=t)}const Wt=(e,t)=>(0,s.useMemo)((()=>null==e&&null==t?null:n=>{Bt(e,n),Bt(t,n)}),[e,t]),Ut=(e,t,n)=>{(0,s.useLayoutEffect)((()=>{if(!e.current)return;const t=e.current;if(!n)return void(t.style.width&&"100%"!==t.style.width&&(t.style.width="100%"));const r=document.createElement("span"),i=window.getComputedStyle(t);r.setAttribute("style","position: absolute, visibility: hidden; white-space: pre;"),r.style.fontFamily=i.getPropertyValue("font-family"),r.style.fontSize=i.getPropertyValue("font-size"),r.style.letterSpacing=i.getPropertyValue("letter-spacing"),r.style.padding=i.getPropertyValue("padding"),r.style.border=i.getPropertyValue("border"),r.innerHTML=t.value||t.placeholder,document.body.appendChild(r);const o=r.getBoundingClientRect();document.body.removeChild(r),t.style.width=`${Math.ceil(o.width)}px`}),[n,...t])};var Yt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{children:t}=e,n=Yt(e,["children"]);return(0,a.jsx)(Kt,Object.assign({},n,{children:t}))};var Gt=n(9068),Xt=n(1951);function Qt(e,t){"function"==typeof e?e(t):e&&(e.current=t)}const Jt=(e,t)=>(0,s.useMemo)((()=>null==e&&null==t?null:n=>{Qt(e,n),Qt(t,n)}),[e,t]),en=(e,t,n)=>{(0,s.useLayoutEffect)((()=>{if(!e.current)return;const t=e.current;if(!n)return void(t.style.width&&"100%"!==t.style.width&&(t.style.width="100%"));const r=document.createElement("span"),i=window.getComputedStyle(t);r.setAttribute("style","position: absolute, visibility: hidden; white-space: pre;"),r.style.fontFamily=i.getPropertyValue("font-family"),r.style.fontSize=i.getPropertyValue("font-size"),r.style.letterSpacing=i.getPropertyValue("letter-spacing"),r.style.padding=i.getPropertyValue("padding"),r.style.border=i.getPropertyValue("border"),r.innerHTML=t.value||t.placeholder,document.body.appendChild(r);const o=r.getBoundingClientRect();document.body.removeChild(r),t.style.width=`${Math.ceil(o.width)}px`}),[n,...t])};var tn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie.zIndex.tooltip}; display: inline-block; @@ -714,13 +714,13 @@ top: -7px; transform: rotate(-45deg); } -`,Gt=r.zo.div` +`,rn=r.zo.div` position: relative; display: inline-flex; -`,Kt=r.zo.div` +`,on=r.zo.div` flex: 1; z-index: 2; -`,Xt=r.zo.span` +`,an=r.zo.span` position: absolute; width: 14px; height: 14px; @@ -728,7 +728,7 @@ border-right: 1px solid ${({theme:e})=>e.color("dark60")}; border-top: 1px solid ${({theme:e})=>e.color("dark60")}; border-radius: 2px; -`,Qt=e=>{var{children:t,text:n,placement:r,offset:i}=e,o=Yt(e,["children","text","placement","offset"]);const[l,c]=(0,s.useState)(!1),u=(0,s.useRef)(null),d=(0,s.useRef)(null),h=(0,s.useRef)(null),f=(0,s.useMemo)((()=>({placement:"bottomRight"===r?"bottom-end":r,offset:i,arrow:h})),[r,i]);Ge(u,d,l,f);const p=(0,s.useCallback)((()=>{c(!0)}),[]),m=(0,s.useCallback)((()=>{c(!1)}),[]);return n?(0,a.jsxs)(Gt,Object.assign({ref:u},{children:[(0,a.jsx)(xt.Fade,Object.assign({in:l,exit:!1},{children:(0,a.jsxs)(qt,Object.assign({ref:d},o,{children:[n,"arrow"===o.variant&&(0,a.jsx)(Xt,{ref:h,className:"popover-arrow"})]}))})),(0,a.jsx)(Kt,Object.assign({onMouseEnter:p,onMouseLeave:m},{children:t}))]})):(0,a.jsx)(a.Fragment,{children:t})};Qt.defaultProps={placement:"top",offset:12,fadeIn:100,variant:"default",maxWidth:240};const Jt=Qt;var en=n(7986);const tn=r.zo.strong` +`,sn=e=>{var{children:t,text:n,placement:r,offset:i}=e,o=tn(e,["children","text","placement","offset"]);const[l,c]=(0,s.useState)(!1),u=(0,s.useRef)(null),d=(0,s.useRef)(null),h=(0,s.useRef)(null),f=(0,s.useMemo)((()=>({placement:"bottomRight"===r?"bottom-end":r,offset:i,arrow:h})),[r,i]);rt(u,d,l,f);const p=(0,s.useCallback)((()=>{c(!0)}),[]),m=(0,s.useCallback)((()=>{c(!1)}),[]);return n?(0,a.jsxs)(rn,Object.assign({ref:u},{children:[(0,a.jsx)(Pt.Fade,Object.assign({in:l,exit:!1},{children:(0,a.jsxs)(nn,Object.assign({ref:d},o,{children:[n,"arrow"===o.variant&&(0,a.jsx)(an,{ref:h,className:"popover-arrow"})]}))})),(0,a.jsx)(on,Object.assign({onMouseEnter:p,onMouseLeave:m},{children:t}))]})):(0,a.jsx)(a.Fragment,{children:t})};sn.defaultProps={placement:"top",offset:12,fadeIn:100,variant:"default",maxWidth:240};const ln=sn;var cn=n(7986);const un=r.zo.strong` display: flex; align-items: center; cursor: pointer; @@ -746,7 +746,7 @@ > div { cursor: help; } -`,nn=({label:e,tooltip:t,$size:n})=>(0,a.jsxs)(tn,Object.assign({$size:n},{children:[(0,a.jsx)("span",{children:e}),t&&(0,a.jsx)(v,Object.assign({ml:8,height:16},{children:(0,a.jsx)(Jt,Object.assign({text:t},{children:(0,a.jsx)(en.Z,{size:16})}))}))]}));nn.defaultProps={$size:"medium"};var rn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i(0,a.jsxs)(un,Object.assign({$size:n},{children:[(0,a.jsx)("span",{children:e}),t&&(0,a.jsx)(v,Object.assign({ml:8,height:16},{children:(0,a.jsx)(ln,Object.assign({text:t},{children:(0,a.jsx)(cn.Z,{size:16})}))}))]}));dn.defaultProps={$size:"medium"};var hn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i div { @@ -768,7 +768,7 @@ pointer-events: all; } } -`,sn=r.zo.input` +`,mn=r.zo.input` appearance: none; resize: none; border-radius: ${({theme:e})=>e.sizes.$4}; @@ -813,14 +813,14 @@ } ${({theme:e,withLeftIcon:t,withRightIcon:n})=>(0,c.bU)({prop:"$size",variants:{small:{minHeight:30,paddingLeft:t?e.sizes.$32:11,paddingRight:n?e.sizes.$32:11,fontSize:e.fontSizes.$12,"& + div":{paddingLeft:e.sizes.$8,paddingRight:e.sizes.$8}},medium:{minHeight:e.sizes.$32,paddingLeft:t?38:e.sizes.$12,paddingRight:n?38:e.sizes.$12,fontSize:e.fontSizes.$14,"& + div":{paddingLeft:e.sizes.$12,paddingRight:e.sizes.$12}},large:{minHeight:e.sizes.$40,paddingLeft:t?38:e.sizes.$12,paddingRight:n?38:e.sizes.$12,fontSize:e.fontSizes.$16,"& + div":{paddingLeft:e.sizes.$12,paddingRight:e.sizes.$12}}}})} -`,ln=r.zo.small` +`,gn=r.zo.small` display: ${({error:e})=>"string"==typeof e&&e?"none":"block"}; pointer-events: none; color: ${({theme:e})=>e.color("dark30","light10")}; margin-top: ${({theme:e})=>e.sizes.$4}; font-size: ${({theme:e})=>e.fontSizes.$12}; line-height: ${({theme:e})=>e.lineHeights.$165}; -`,cn=r.zo.small` +`,vn=r.zo.small` display: block; pointer-events: none; width: 100%; @@ -828,7 +828,7 @@ color: ${({theme:e})=>e.colors.peach50}; font-size: ${({theme:e})=>e.fontSizes.$12}; line-height: ${({theme:e})=>e.lineHeights.$165}; -`,un=(0,m.w)(((e,t)=>{var{autoFocus:n,autoWidth:r,label:i,tooltip:o,type:l,iconLeft:c,iconRight:u,error:d,description:h,onIconRightClick:f,size:p}=e,m=rn(e,["autoFocus","autoWidth","label","tooltip","type","iconLeft","iconRight","error","description","onIconRightClick","size"]);const[g,v]=(0,s.useState)("password"),y=(0,s.useRef)(null),b="text"===g?Vt.Z:Ft.Z,w=Wt(y,t);Ut(y,[m.value],r);const x=(0,s.useCallback)((()=>{v((e=>"password"===e?"text":"password"))}),[]);(0,s.useEffect)((()=>{n&&setTimeout((()=>{var e;null===(e=y.current)||void 0===e||e.focus()}),0)}),[n]);const k=(0,s.useMemo)((()=>"secret"===l?(0,a.jsx)(V,Object.assign({onClick:x,type:"button"},{children:(0,a.jsx)(b,{color:"inherit",size:"small"})})):u?f?(0,a.jsx)(V,Object.assign({onClick:f,type:"button"},{children:(0,a.jsx)(u,{color:"inherit",size:18})})):(0,a.jsx)(u,{color:"inherit",size:18}):null),[l,u,f]);return(0,a.jsxs)(on,{children:[i&&(0,a.jsx)(nn,{$size:p,label:i,tooltip:o}),(0,a.jsxs)(an,{children:[(0,a.jsx)(sn,Object.assign({withLeftIcon:!!c,withRightIcon:!!k,withPadding:!!(null==m?void 0:m.rows),withError:!!d,ref:w,type:"secret"===l?g:l,autoFocus:n,$size:p,as:(null==m?void 0:m.rows)?"textarea":"input",readOnly:!m.onChange},m)),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{children:c&&(0,a.jsx)(c,{color:"inherit",size:18})}),(0,a.jsx)("div",{children:k})]})]}),"string"==typeof d&&(0,a.jsx)(cn,{children:d}),h&&(0,a.jsx)(ln,Object.assign({error:d},{children:h}))]})}));un.defaultProps={type:"text",size:"medium"};var dn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{autoFocus:n,autoWidth:r,label:i,tooltip:o,type:l,iconLeft:c,iconRight:u,error:d,description:h,onIconRightClick:f,size:p}=e,m=hn(e,["autoFocus","autoWidth","label","tooltip","type","iconLeft","iconRight","error","description","onIconRightClick","size"]);const[g,v]=(0,s.useState)("password"),y=(0,s.useRef)(null),b="text"===g?Gt.Z:Xt.Z,w=Jt(y,t);en(y,[m.value],r);const x=(0,s.useCallback)((()=>{v((e=>"password"===e?"text":"password"))}),[]);(0,s.useEffect)((()=>{n&&setTimeout((()=>{var e;null===(e=y.current)||void 0===e||e.focus()}),0)}),[n]);const k=(0,s.useMemo)((()=>"secret"===l?(0,a.jsx)(V,Object.assign({onClick:x,type:"button"},{children:(0,a.jsx)(b,{color:"inherit",size:"small"})})):u?f?(0,a.jsx)(V,Object.assign({onClick:f,type:"button"},{children:(0,a.jsx)(u,{color:"inherit",size:18})})):(0,a.jsx)(u,{color:"inherit",size:18}):null),[l,u,f]);return(0,a.jsxs)(fn,{children:[i&&(0,a.jsx)(dn,{$size:p,label:i,tooltip:o}),(0,a.jsxs)(pn,{children:[(0,a.jsx)(mn,Object.assign({withLeftIcon:!!c,withRightIcon:!!k,withPadding:!!(null==m?void 0:m.rows),withError:!!d,ref:w,type:"secret"===l?g:l,autoFocus:n,$size:p,as:(null==m?void 0:m.rows)?"textarea":"input",readOnly:!m.onChange},m)),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{children:c&&(0,a.jsx)(c,{color:"inherit",size:18})}),(0,a.jsx)("div",{children:k})]})]}),"string"==typeof d&&(0,a.jsx)(vn,{children:d}),h&&(0,a.jsx)(gn,Object.assign({error:d},{children:h}))]})}));yn.defaultProps={type:"text",size:"medium"};var bn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie?"no-wrap":"wrap "}; padding: ${({padding:e})=>e&&"20px"}; @@ -840,7 +840,7 @@ display: block; padding-bottom: 12px; } -`,fn=e=>{var{children:t}=e,n=dn(e,["children"]);return(0,a.jsx)(hn,Object.assign({},n,{children:t}))};fn.defaultProps={inline:!1,padding:!0};const pn=fn;var mn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{children:t}=e,n=bn(e,["children"]);return(0,a.jsx)(wn,Object.assign({},n,{children:t}))};xn.defaultProps={inline:!1,padding:!0};const kn=xn;var Sn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie&&"width: auto;"} ${({controls:e})=>e?"\n justify-content: flex-end;\n & > * {\n margin-left: 16px;\n }\n ":"\n & > * {\n flex: 1;\n }\n "} -`,vn=e=>{var{children:t}=e,n=mn(e,["children"]);return(0,a.jsx)(gn,Object.assign({},n,{children:t}))};vn.defaultProps={width:1};const yn=vn;var bn=n(4591),wn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{onConfirm:t,inputType:n,addInputProps:r,labelText:i,onKeyDown:o,setErrors:l,autoFocus:c,description:u}=e,d=wn(e,["onConfirm","inputType","addInputProps","labelText","onKeyDown","setErrors","autoFocus","description"]);const[h,f]=(0,s.useState)("number"===n?"0":""),[p,m]=(0,s.useState)(!0),g=l&&l(h);return(0,a.jsxs)(pn,Object.assign({inline:!0,onSubmit:e=>{e.preventDefault(),f("number"===n?"0":""),t&&t(h)}},d,{children:[(0,a.jsx)(yn,{children:(0,a.jsx)(un,Object.assign({label:i,onKeyDown:o,type:n,required:!0,value:h,onChange:e=>{const{valid:t}=e.target.validity;f(e.target.value),m(t)},error:!p||g,size:"large",description:u,autoFocus:c},r))}),(0,a.jsx)(yn,Object.assign({padding:!0,narrow:!0},{children:(0,a.jsx)(F,{icon:bn.Z,variant:"primary",size:"large",disabled:!p||"string"===g||!0===g,"aria-label":"Toggle input"})}))]}))};xn.defaultProps={inputType:"text"};const kn=xn;var Sn="undefined"!=typeof document?s.useLayoutEffect:s.useEffect;function Cn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!Cn(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){const n=i[r];if(("_owner"!==n||!e.$$typeof)&&!Cn(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function jn(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:i}=void 0===e?{}:e;const[o,a]=s.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[l,c]=s.useState(t);Cn(null==l?void 0:l.map((e=>{let{name:t,options:n}=e;return{name:t,options:n}})),null==t?void 0:t.map((e=>{let{name:t,options:n}=e;return{name:t,options:n}})))||c(t);const u=s.useRef(null),d=s.useRef(null),h=s.useRef(null),f=s.useRef(o),p=function(e){const t=s.useRef(e);return Sn((()=>{t.current=e})),t}(i),m=s.useCallback((()=>{u.current&&d.current&&Ye(u.current,d.current,{middleware:l,placement:n,strategy:r}).then((e=>{g.current&&!Cn(f.current,e)&&(f.current=e,Y.flushSync((()=>{a(e)})))}))}),[l,n,r]);Sn((()=>{g.current&&m()}),[m]);const g=s.useRef(!1);Sn((()=>(g.current=!0,()=>{g.current=!1})),[]);const v=s.useCallback((()=>{if("function"==typeof h.current&&(h.current(),h.current=null),u.current&&d.current)if(p.current){const e=p.current(u.current,d.current,m);h.current=e}else m()}),[m,p]),y=s.useCallback((e=>{u.current=e,v()}),[v]),b=s.useCallback((e=>{d.current=e,v()}),[v]),w=s.useMemo((()=>({reference:u,floating:d})),[]);return s.useMemo((()=>({...o,update:m,refs:w,reference:y,floating:b})),[o,m,w,y,b])}var On=new WeakMap,Mn=new WeakMap,Pn={},En=0,An=function(e,t,n){void 0===t&&(t=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e)),void 0===n&&(n="data-aria-hidden");var r=Array.isArray(e)?e:[e];Pn[n]||(Pn[n]=new WeakMap);var i=Pn[n],o=[],a=new Set,s=function(e){e&&!a.has(e)&&(a.add(e),s(e.parentNode))};r.forEach(s);var l=function(e){!e||r.indexOf(e)>=0||Array.prototype.forEach.call(e.children,(function(e){if(a.has(e))l(e);else{var t=e.getAttribute("aria-hidden"),r=null!==t&&"false"!==t,s=(On.get(e)||0)+1,c=(i.get(e)||0)+1;On.set(e,s),i.set(e,c),o.push(e),1===s&&r&&Mn.set(e,!0),1===c&&e.setAttribute(n,"true"),r||e.setAttribute("aria-hidden","true")}}))};return l(t),a.clear(),En++,function(){o.forEach((function(e){var t=On.get(e)-1,r=i.get(e)-1;On.set(e,t),i.set(e,r),t||(Mn.has(e)||e.removeAttribute("aria-hidden"),Mn.delete(e)),r||e.removeAttribute(n)})),--En||(On=new WeakMap,On=new WeakMap,Mn=new WeakMap,Pn={})}},Tn="undefined"!=typeof document?s.useLayoutEffect:s.useEffect;function _n(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){e.set(t,(e.get(t)||[]).filter((e=>e!==n)))}}}let Dn=!1,Rn=0;const zn=()=>"floating-ui-"+Rn++;const In=l["useId".toString()],Ln=null!=In?In:function(){const[e,t]=s.useState((()=>Dn?zn():void 0));return Tn((()=>{null==e&&t(zn())}),[]),s.useEffect((()=>{Dn||(Dn=!0)}),[]),e},$n=s.createContext(null),Nn=s.createContext(null),Zn=()=>{var e,t;return null!=(e=null==(t=s.useContext($n))?void 0:t.id)?e:null},Hn=()=>s.useContext(Nn),Vn=()=>{const e=Ln(),t=Hn(),n=Zn();return Tn((()=>{const r={id:e,parentId:n};return null==t||t.addNode(r),()=>{null==t||t.removeNode(r)}}),[t,e,n]),e},Fn=e=>{let{children:t,id:n}=e;const r=Zn();return s.createElement($n.Provider,{value:s.useMemo((()=>({id:n,parentId:r})),[n,r])},t)},Bn=e=>{let{children:t}=e;const n=s.useRef([]),r=s.useCallback((e=>{n.current=[...n.current,e]}),[]),i=s.useCallback((e=>{n.current=n.current.filter((t=>t!==e))}),[]),o=s.useState((()=>_n()))[0];return s.createElement(Nn.Provider,{value:s.useMemo((()=>({nodesRef:n,addNode:r,removeNode:i,events:o})),[n,r,i,o])},t)};function Wn(e){var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document}function Un(e){var t;return null!=(t=Wn(e).defaultView)?t:window}function Yn(e){return!!e&&e instanceof Un(e).Element}function qn(e){return!!e&&e instanceof Un(e).HTMLElement}function Gn(e){let{open:t=!1,onOpenChange:n=(()=>{}),whileElementsMounted:r,placement:i,middleware:o,strategy:a,nodeId:l}=void 0===e?{}:e;const c=Hn(),u=s.useRef(null),d=s.useRef({}),h=s.useState((()=>_n()))[0],f=jn({placement:i,middleware:o,strategy:a,whileElementsMounted:r}),p=s.useMemo((()=>({...f.refs,domReference:u})),[f.refs]),m=s.useMemo((()=>({...f,refs:p,dataRef:d,nodeId:l,events:h,open:t,onOpenChange:n})),[f,l,h,t,n,p]);Tn((()=>{const e=null==c?void 0:c.nodesRef.current.find((e=>e.id===l));e&&(e.context=m)}));const{reference:g}=f,v=s.useCallback((e=>{(Yn(e)||null===e)&&(m.refs.domReference.current=e),g(e)}),[g,m.refs]);return s.useMemo((()=>({...f,context:m,refs:p,reference:v})),[f,p,m,v])}function Kn(e,t,n){const r=new Map;return{..."floating"===n&&{tabIndex:-1},...e,...t.map((e=>e?e[n]:null)).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,i]=t;if(0===n.indexOf("on")){var o;if(r.has(n)||r.set(n,[]),"function"==typeof i)null==(o=r.get(n))||o.push(i);e[n]=function(){for(var e,t=arguments.length,i=new Array(t),o=0;oe(...i)))}}else e[n]=i})),e):e),{})}}const Xn=function(e){return void 0===e&&(e=[]),{getReferenceProps:t=>Kn(t,e,"reference"),getFloatingProps:t=>Kn(t,e,"floating"),getItemProps:t=>Kn(t,e,"item")}};function Qn(e,t){var n;let r=null!=(n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})))?n:[],i=r;for(;i.length;){var o;i=null!=(o=e.filter((e=>{var t;return null==(t=i)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})))?o:[],r=r.concat(i)}return r}function Jn(e){let t,{restMs:n=0,buffer:r=.5,debug:i=null}=void 0===e?{}:e,o=!1;return e=>{let{x:i,y:a,placement:s,refs:l,onClose:c,nodeId:u,tree:d,leave:h=!1}=e;return function(e){var f,p;function m(){clearTimeout(t),c()}if(clearTimeout(t),e.pointerType&&"mouse"!==e.pointerType)return;const{clientX:g,clientY:v}=e,y="composedPath"in e?e.composedPath()[0]:e.target;if("pointermove"===e.type&&null!=(f=l.domReference.current)&&f.contains(y))return;if(d&&Qn(d.nodesRef.current,u).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if(null!=(p=l.floating.current)&&p.contains(y)&&!h)return void(o=!0);if(!l.domReference.current||!l.floating.current||null==s||null==i||null==a)return;const b=l.domReference.current.getBoundingClientRect(),w=l.floating.current.getBoundingClientRect(),x=s.split("-")[0],k=i>w.right-w.width/2,S=a>w.bottom-w.height/2;if("top"===x&&a>=b.bottom-1||"bottom"===x&&a<=b.top+1||"left"===x&&i>=b.right-1||"right"===x&&i<=b.left+1)return m();switch(x){case"top":if(g>=w.left&&g<=w.right&&v>=w.top&&v<=b.top+1)return;break;case"bottom":if(g>=w.left&&g<=w.right&&v>=b.bottom-1&&v<=w.bottom)return;break;case"left":if(g>=w.left&&g<=b.left+1&&v>=w.top&&v<=w.bottom)return;break;case"right":if(g>=b.right-1&&g<=w.right&&v>=w.top&&v<=w.bottom)return}if(o)return m();const C=function(e){let[t,n]=e;const i=w.width>b.width,o=w.height>b.height;switch(x){case"top":return[[i?t+r/2:k?t+4*r:t-4*r,n+r+1],[i?t-r/2:k?t+4*r:t-4*r,n+r+1],...[[w.left,k||i?w.bottom-r:w.top],[w.right,k?i?w.bottom-r:w.top:w.bottom-r]]];case"bottom":return[[i?t+r/2:k?t+4*r:t-4*r,n-r],[i?t-r/2:k?t+4*r:t-4*r,n-r],...[[w.left,k||i?w.top+r:w.bottom],[w.right,k?i?w.top+r:w.bottom:w.top+r]]];case"left":{const e=[t+r+1,o?n+r/2:S?n+4*r:n-4*r],i=[t+r+1,o?n-r/2:S?n+4*r:n-4*r];return[...[[S||o?w.right-r:w.left,w.top],[S?o?w.right-r:w.left:w.right-r,w.bottom]],e,i]}case"right":return[[t-r,o?n+r/2:S?n+4*r:n-4*r],[t-r,o?n-r/2:S?n+4*r:n-4*r],...[[S||o?w.left+r:w.right,w.top],[S?o?w.left+r:w.right:w.left+r,w.bottom]]]}}([i,a]);!function(e,t){const[n,r]=e;let i=!1;const o=t.length;for(let e=0,a=o-1;e=r!=c>=r&&n<=(l-o)*(r-s)/(c-s)+o&&(i=!i)}return i}([g,v],C)?m():n&&(t=setTimeout(c,n))}}}function er(){return er=Object.assign||function(e){for(var t=1;t{var e,t,r,i;if(!n)return;if(document.body.hasAttribute(tr))return;document.body.setAttribute(tr,"");const o=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",a=window.innerWidth-document.documentElement.clientWidth;if(!/iP(hone|ad|od)|iOS/.test(function(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}()))return Object.assign(document.body.style,{overflow:"hidden",[o]:a+"px"}),()=>{document.body.removeAttribute(tr),Object.assign(document.body.style,{overflow:"",[o]:""})};const s=null!=(e=null==(t=window.visualViewport)?void 0:t.offsetLeft)?e:0,l=null!=(r=null==(i=window.visualViewport)?void 0:i.offsetTop)?r:0,c=window.pageXOffset,u=window.pageYOffset;return Object.assign(document.body.style,{position:"fixed",overflow:"hidden",top:-(u-Math.floor(l))+"px",left:-(c-Math.floor(s))+"px",right:"0",[o]:a+"px"}),()=>{Object.assign(document.body.style,{position:"",overflow:"",top:"",left:"",right:"",[o]:""}),document.body.removeAttribute(tr),window.scrollTo(c,u)}}),[n]),s.createElement("div",er({ref:t},r,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...r.style}}))}));function rr(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(r=n.shadowRoot)?void 0:r.activeElement);){var n,r;t=t.shadowRoot.activeElement}return t}const ir="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function or(e){return qn(e)&&e.matches(ir)}function ar(e){e.preventDefault(),e.stopPropagation()}function sr(e){const t=(0,s.useRef)(e);return Tn((()=>{t.current=e})),t}function lr(e,t){void 0===t&&(t=!1),requestAnimationFrame((()=>{null==e||e.focus({preventScroll:t})}))}const cr=s.forwardRef((function(e,t){return s.createElement("span",er({},e,{ref:t,tabIndex:0,style:{position:"fixed",opacity:"0",pointerEvents:"none",outline:"0"}}))}));function ur(e){var t;let{context:{refs:n,nodeId:r,onOpenChange:i,dataRef:o,events:a},children:l,order:c=["content"],endGuard:u=!0,preventTabbing:d=!1,initialFocus:h=0,returnFocus:f=!0,modal:p=!0}=e;const m=sr(c),g=sr(i),v=Hn(),y=null==(null==v||null==(t=v.nodesRef.current.find((e=>e.id===r)))?void 0:t.parentId),b=s.useCallback((()=>m.current.map((e=>{return"reference"===e?n.domReference.current:n.floating.current&&"floating"===e?n.floating.current:"content"===e?Array.from(null!=(t=null==(r=n.floating.current)?void 0:r.querySelectorAll("select:not([disabled]),a[href],button:not([disabled]),[tabindex],iframe,object,embed,area[href],audio[controls],video[controls],input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])"))?t:[]):null;var t,r})).flat().filter((e=>{if(e===n.floating.current||e===n.domReference.current)return!0;if(qn(e)){var t;return"-"!==(null!=(t=e.getAttribute("tabindex"))?t:"0")[0].trim()}}))),[m,n]);s.useEffect((()=>{if(!p)return;const e=0===b().filter((e=>e!==n.floating.current&&e!==n.domReference.current)).length;function t(t){if("Tab"===t.key){(d||e)&&ar(t);const r=b(),i="composedPath"in t?t.composedPath()[0]:t.target;"reference"===m.current[0]&&i===n.domReference.current&&(ar(t),t.shiftKey?lr(r[r.length-1]):lr(r[1])),"floating"===m.current[1]&&i===n.floating.current&&t.shiftKey&&(ar(t),lr(r[0]))}}const r=Wn(n.floating.current);return r.addEventListener("keydown",t),()=>{r.removeEventListener("keydown",t)}}),[d,p,b,m,n]),s.useEffect((()=>{function e(e){var t,i;const o=e.relatedTarget,a=!(null!=(t=n.floating.current)&&t.contains(o)),s=Yn(n.domReference.current)&&!n.domReference.current.contains(o),l=v&&Qn(v.nodesRef.current,r).length>0,c=v&&e.currentTarget===n.domReference.current&&(null==(i=function(e,t){var n;let r=[],i=null==(n=e.find((e=>e.id===t)))?void 0:n.parentId;for(;i;){const t=e.find((e=>e.id===i));i=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}(v.nodesRef.current,r))?void 0:i.some((e=>{var t,n;return null==(t=e.context)||null==(n=t.refs.floating.current)?void 0:n.contains(o)})));a&&s&&!l&&!c&&g.current(!1)}const t=n.floating.current,i=n.domReference.current;if(t&&qn(i)){let n;return!p&&t.addEventListener("focusout",e),!p&&i.addEventListener("focusout",e),p&&(n=m.current.includes("reference")?An([i,t]):An(t)),()=>{!p&&t.removeEventListener("focusout",e),!p&&i.removeEventListener("focusout",e),null==n||n()}}}),[r,v,p,g,m,o,b,n]),s.useEffect((()=>{if(d&&!y)return;const e=n.floating.current,t=Wn(e);let r=f,i=!1,o=rr(t);if(o===t.body&&n.domReference.current&&(o=n.domReference.current),!d)if("number"==typeof h){var s;const t=null!=(s=b()[h])?s:e;lr(t,t===e)}else if(qn(h.current)){var l;const t=null!=(l=h.current)?l:e;lr(t,t===e)}function c(e){void 0===e&&(e=!1),"object"==typeof e?(r=!0,i=e.preventScroll):r=e}return a.on("dismiss",c),()=>{a.off("dismiss",c),r&&qn(o)&&lr(o,i)}}),[d,b,h,f,n,a,y]);const w=()=>{var e;return"combobox"===(null==(e=n.domReference.current)?void 0:e.getAttribute("role"))&&or(n.domReference.current)};return s.createElement(s.Fragment,null,p&&s.createElement(cr,{onFocus:e=>{if(w())return;ar(e);const t=b();"reference"===c[0]?lr(t[0]):lr(t[t.length-1])}}),s.cloneElement(l,c.includes("floating")?{tabIndex:0}:{}),p&&u&&s.createElement(cr,{onFocus:e=>{w()||(ar(e),lr(b()[0]))}}))}function dr(e){const t=(0,s.useRef)();return Tn((()=>{t.current=e}),[e]),t.current}function hr(e,t,n){return n&&"mouse"!==n?0:"number"==typeof e?e:null==e?void 0:e[t]}const fr=function(e,t){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:o=!1,restMs:a=0,move:l=!0}=void 0===t?{}:t;const{open:c,onOpenChange:u,dataRef:d,events:h,refs:f}=e,p=Hn(),m=Zn(),g=sr(u),v=sr(i),y=sr(r),b=dr(c),w=s.useRef(),x=s.useRef(),k=s.useRef(),S=s.useRef(),C=s.useRef(!0),j=s.useRef(!1),O=s.useCallback((()=>{var e;const t=null==(e=d.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[d]);s.useEffect((()=>{if(n)return h.on("dismiss",e),()=>{h.off("dismiss",e)};function e(){clearTimeout(x.current),clearTimeout(S.current),C.current=!0}}),[n,h,f]),s.useEffect((()=>{if(!n||!v.current)return;function e(){O()&&g.current(!1)}const t=Wn(f.floating.current).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[f,g,n,v,d,O]);const M=s.useCallback((function(e){void 0===e&&(e=!0);const t=hr(y.current,"close",w.current);t&&!k.current?(clearTimeout(x.current),x.current=setTimeout((()=>g.current(!1)),t)):e&&(clearTimeout(x.current),g.current(!1))}),[y,g]),P=s.useCallback((()=>{k.current&&(Wn(f.floating.current).removeEventListener("pointermove",k.current),k.current=void 0)}),[f]),E=s.useCallback((()=>{Wn(f.floating.current).body.style.pointerEvents="",j.current=!1}),[f]);if(s.useEffect((()=>{if(!n)return;function t(){return!!d.current.openEvent&&["click","mousedown"].includes(d.current.openEvent.type)}function r(e){if(clearTimeout(x.current),C.current=!1,o&&"mouse"!==w.current||a>0&&0===hr(y.current,"open"))return;d.current.openEvent=e;const t=hr(y.current,"open",w.current);t?x.current=setTimeout((()=>{g.current(!0)}),t):g.current(!0)}function i(n){if(t())return;const r=Wn(f.floating.current);if(clearTimeout(S.current),v.current)return clearTimeout(x.current),k.current&&r.removeEventListener("pointermove",k.current),k.current=v.current({...e,tree:p,x:n.clientX,y:n.clientY,onClose(){E(),P(),M()}}),void r.addEventListener("pointermove",k.current);M()}function s(n){t()||null==v.current||v.current({...e,tree:p,x:n.clientX,y:n.clientY,leave:!0,onClose(){E(),P(),M()}})(n)}const u=f.floating.current,h=f.domReference.current;return Yn(h)?(c&&h.addEventListener("mouseleave",s),null==u||u.addEventListener("mouseleave",s),l&&h.addEventListener("mousemove",r,{once:!0}),h.addEventListener("mouseenter",r),h.addEventListener("mouseleave",i),()=>{c&&h.removeEventListener("mouseleave",s),null==u||u.removeEventListener("mouseleave",s),l&&h.removeEventListener("mousemove",r),h.removeEventListener("mouseenter",r),h.removeEventListener("mouseleave",i)}):void 0}),[n,e,o,a,l,M,P,E,c,p,f,y,v,d,g]),Tn((()=>{if(n&&c&&v.current&&O()){Wn(f.floating.current).body.style.pointerEvents="none",j.current=!0;const n=f.domReference.current,r=f.floating.current;if(Yn(n)&&r){var e,t;const i=null==p||null==(e=p.nodesRef.current.find((e=>e.id===m)))||null==(t=e.context)?void 0:t.refs.floating.current;return i&&(i.style.pointerEvents=""),n.style.pointerEvents="auto",r.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents=""}}}}),[n,c,m,f,p,v,d,O]),Tn((()=>{b&&!c&&(w.current=void 0,P(),E())})),s.useEffect((()=>()=>{P(),clearTimeout(x.current),clearTimeout(S.current),j.current&&E()}),[n,P,E]),!n)return{};function A(e){w.current=e.pointerType}return{reference:{onPointerDown:A,onPointerEnter:A,onMouseMove(){c||0===a||(clearTimeout(S.current),S.current=setTimeout((()=>{C.current||u(!0)}),a))}},floating:{onMouseEnter(){clearTimeout(x.current)},onMouseLeave(){M(!1)}}}};const pr=function(e,t){let{open:n}=e,{enabled:r=!0,role:i="dialog"}=void 0===t?{}:t;const o=Ln(),a=Ln(),s={id:o,role:i};return r?"tooltip"===i?{reference:{"aria-describedby":n?o:void 0},floating:s}:{reference:{"aria-expanded":n?"true":"false","aria-haspopup":"alertdialog"===i?"dialog":i,"aria-controls":n?o:void 0,..."listbox"===i&&{role:"combobox"},..."menu"===i&&{id:a}},floating:{...s,..."menu"===i&&{"aria-labelledby":a}}}:{}},mr=function(e,t){let{open:n,onOpenChange:r,dataRef:i,refs:o}=e,{enabled:a=!0,pointerDown:l=!1,toggle:c=!0,ignoreMouse:u=!1}=void 0===t?{}:t;const d=s.useRef();function h(){var e;return"BUTTON"===(null==(e=o.domReference.current)?void 0:e.tagName)}function f(){return or(o.domReference.current)}return a?{reference:{onPointerDown(e){d.current=e.pointerType},onMouseDown(e){0===e.button&&("mouse"===d.current&&u||l&&(n?!c||i.current.openEvent&&"mousedown"!==i.current.openEvent.type||r(!1):r(!0),i.current.openEvent=e.nativeEvent))},onClick(e){l&&d.current?d.current=void 0:"mouse"===d.current&&u||(n?!c||i.current.openEvent&&"click"!==i.current.openEvent.type||r(!1):r(!0),i.current.openEvent=e.nativeEvent)},onKeyDown(e){d.current=void 0,h()||(" "!==e.key||f()||e.preventDefault(),"Enter"===e.key&&(n?c&&r(!1):r(!0)))},onKeyUp(e){h()||f()||" "===e.key&&(n?c&&r(!1):r(!0))}}}:{}};function gr(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}const vr=function(e,t){let{open:n,onOpenChange:r,refs:i,events:o,nodeId:a}=e,{enabled:l=!0,escapeKey:c=!0,outsidePointerDown:u=!0,referencePointerDown:d=!1,ancestorScroll:h=!1,bubbles:f=!0}=void 0===t?{}:t;const p=Hn(),m=sr(r),g=null!=Zn();return s.useEffect((()=>{if(!n||!l)return;function e(e){if("Escape"===e.key){if(!f&&p&&Qn(p.nodesRef.current,a).length>0)return;o.emit("dismiss",{preventScroll:!1}),m.current(!1)}}function t(e){if(Yn(e.target)&&i.floating.current){var t;const n=null!=(t=i.floating.current.ownerDocument.defaultView)?t:window,r=e.target.scrollWidth>e.target.clientWidth,o=e.target.scrollHeight>e.target.clientHeight;let a=o&&e.offsetX>e.target.clientWidth;if(o){"rtl"===n.getComputedStyle(e.target).direction&&(a=e.offsetX<=e.target.offsetWidth-e.target.clientWidth)}if(a||r&&e.offsetY>e.target.clientHeight)return}const n=p&&Qn(p.nodesRef.current,a).some((t=>{var n;return gr(e,null==(n=t.context)?void 0:n.refs.floating.current)}));gr(e,i.floating.current)||gr(e,i.domReference.current)||n||!f&&p&&Qn(p.nodesRef.current,a).length>0||(o.emit("dismiss",!!g&&{preventScroll:!0}),m.current(!1))}function r(){m.current(!1)}const s=Wn(i.floating.current);c&&s.addEventListener("keydown",e),u&&s.addEventListener("pointerdown",t);const d=(h?[...Yn(i.reference.current)?Ve(i.reference.current):[],...Yn(i.floating.current)?Ve(i.floating.current):[]]:[]).filter((e=>{var t;return e!==(null==(t=s.defaultView)?void 0:t.visualViewport)}));return d.forEach((e=>e.addEventListener("scroll",r,{passive:!0}))),()=>{c&&s.removeEventListener("keydown",e),u&&s.removeEventListener("pointerdown",t),d.forEach((e=>e.removeEventListener("scroll",r)))}}),[c,u,o,p,a,n,m,h,l,f,i,g]),l?{reference:{onPointerDown(){d&&(o.emit("dismiss"),r(!1))}}}:{}},yr="ArrowUp",br="ArrowDown",wr="ArrowLeft",xr="ArrowRight";function kr(e,t,n){return Math.floor(e/t)!==n}function Sr(e,t){return t<0||t>=e.current.length}function Cr(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:i,amount:o=1}=void 0===t?{}:t;const a=e.current;let s=n;do{var l,c;s+=r?-o:o}while(s>=0&&s<=a.length-1&&(i?i.includes(s):null==a[s]||(null==(l=a[s])?void 0:l.hasAttribute("disabled"))||"true"===(null==(c=a[s])?void 0:c.getAttribute("aria-disabled"))));return s}function jr(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function Or(e,t){return jr(t,e===yr||e===br,e===wr||e===xr)}function Mr(e,t,n){return jr(t,e===br,n?e===wr:e===xr)||"Enter"===e||" "==e||""===e}function Pr(e,t){return Cr(e,{disabledIndices:t})}function Er(e,t){return Cr(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}const Ar=function(e,t){let{open:n,onOpenChange:r,refs:i}=e,{listRef:o,activeIndex:a,onNavigate:l=(()=>{}),enabled:c=!0,selectedIndex:u=null,allowEscape:d=!1,loop:h=!1,nested:f=!1,rtl:p=!1,virtual:m=!1,focusItemOnOpen:g="auto",focusItemOnHover:v=!0,openOnArrowKeyDown:y=!0,disabledIndices:b,orientation:w="vertical",cols:x=1}=void 0===t?{listRef:{current:[]},activeIndex:null,onNavigate:()=>{}}:t;const k=Zn(),S=Hn(),C=dr(n),j=s.useRef(g),O=s.useRef(null!=u?u:-1),M=s.useRef(null),P=sr(dr(l)),E=sr(l),A=sr(b),T=s.useRef(!1),_=s.useRef(-1),[D,R]=s.useState(),z=s.useCallback(((e,t)=>{_.current=requestAnimationFrame((()=>{var n,r;m?R(null==(n=e.current[t.current])?void 0:n.id):null==(r=e.current[t.current])||r.focus({preventScroll:!0})}))}),[m]);function I(e){if(T.current=!0,f&&function(e,t,n){return jr(t,n?e===xr:e===wr,e===yr)}(e.key,w,p))return ar(e),r(!1),void(qn(i.domReference.current)&&i.domReference.current.focus());const t=O.current,a=Pr(o,b),s=Er(o,b);if("Home"===e.key&&(O.current=a,l(O.current)),"End"===e.key&&(O.current=s,l(O.current)),x>1){const t=O.current;if(e.key===yr){if(ar(e),-1===t)O.current=s;else if(O.current=Cr(o,{startingIndex:t,amount:x,decrement:!0,disabledIndices:b}),h&&(t-xe?r:r-x}Sr(o,O.current)&&(O.current=t),l(O.current)}if(e.key===br&&(ar(e),-1===t?O.current=a:(O.current=Cr(o,{startingIndex:t,amount:x,disabledIndices:b}),h&&t+x>s&&(O.current=Cr(o,{startingIndex:t%x-x,amount:x,disabledIndices:b}))),Sr(o,O.current)&&(O.current=t),l(O.current)),"both"===w){const n=Math.floor(t/x);e.key===xr&&(ar(e),t%x!=x-1?(O.current=Cr(o,{startingIndex:t,disabledIndices:b}),h&&kr(O.current,x,n)&&(O.current=Cr(o,{startingIndex:t-t%x-1,disabledIndices:b}))):h&&(O.current=Cr(o,{startingIndex:t-t%x-1,disabledIndices:b})),kr(O.current,x,n)&&(O.current=t)),e.key===wr&&(ar(e),t%x!=0?(O.current=Cr(o,{startingIndex:t,disabledIndices:b,decrement:!0}),h&&kr(O.current,x,n)&&(O.current=Cr(o,{startingIndex:t+(x-t%x),decrement:!0,disabledIndices:b}))):h&&(O.current=Cr(o,{startingIndex:t+(x-t%x),decrement:!0,disabledIndices:b})),kr(O.current,x,n)&&(O.current=t));const r=Math.floor(s/x)===n;return Sr(o,O.current)&&(O.current=h&&r?e.key===wr?s:Cr(o,{startingIndex:t-t%x-1,disabledIndices:b}):t),void l(O.current)}}if(Or(e.key,w)){if(ar(e),n&&!m&&rr(e.currentTarget.ownerDocument)===e.currentTarget)return O.current=Mr(e.key,w,p)?a:s,void l(O.current);Mr(e.key,w,p)?O.current=h?t>=s?d&&t!==o.current.length?-1:a:Cr(o,{startingIndex:t,disabledIndices:b}):Math.min(s,Cr(o,{startingIndex:t,disabledIndices:b})):O.current=h?t<=a?d&&-1!==t?o.current.length:s:Cr(o,{startingIndex:t,decrement:!0,disabledIndices:b}):Math.max(a,Cr(o,{startingIndex:t,decrement:!0,disabledIndices:b})),Sr(o,O.current)?l(null):l(O.current)}}return Tn((()=>{c&&(!C&&n&&j.current&&null!=u&&E.current(u),C&&!n&&(cancelAnimationFrame(_.current),O.current=-1,null==P.current||P.current(null)))}),[n,C,u,o,E,P,z,c]),Tn((()=>{if(c&&n)if(null==a){if(null!=u)return;C&&(O.current=-1,z(o,O)),!C&&j.current&&(null!=M.current||!0===j.current&&null==M.current)&&(O.current=null==M.current||Mr(M.current,w,p)||f?Pr(o,A.current):Er(o,A.current),E.current(O.current),z(o,O))}else Sr(o,a)||(O.current=a,z(o,O))}),[n,C,a,u,f,o,E,z,c,d,w,p,m,A]),Tn((()=>{if(c&&!n&&C){var e,t;const n=null==S||null==(e=S.nodesRef.current.find((e=>e.id===k)))||null==(t=e.context)?void 0:t.refs.floating.current;n&&!n.contains(rr(Wn(n)))&&n.focus({preventScroll:!0})}}),[c,n,C,S,k]),Tn((()=>{M.current=null})),c?{reference:{...m&&n&&null!=a&&{"aria-activedescendant":D},onKeyDown(e){if(T.current=!0,m&&n)return I(e);(0===e.key.indexOf("Arrow")||"Enter"===e.key||" "===e.key||""===e.key)&&(M.current=e.key),f?function(e,t,n){return jr(t,n?e===wr:e===xr,e===br)}(e.key,w,p)&&(ar(e),n?(O.current=Pr(o,b),l(O.current)):r(!0)):Or(e.key,w)&&(null!=u&&(O.current=u),ar(e),!n&&y?r(!0):I(e),n&&l(O.current))}},floating:{"aria-orientation":"both"===w?void 0:w,...m&&null!=a&&{"aria-activedescendant":D},onKeyDown:I,onPointerMove(){T.current=!1}},item:{onFocus(e){let{currentTarget:t}=e;const n=o.current.indexOf(t);-1!==n&&l(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...v&&{onMouseMove(e){let{currentTarget:t}=e;const n=t;if(n){const e=o.current.indexOf(n);-1!==e&&l(e)}},onPointerLeave(){var e;T.current||(O.current=-1,z(o,O),E.current(null),m||null==(e=i.floating.current)||e.focus({preventScroll:!0}))}}}}:{}},Tr=e=>{(0,s.useEffect)((()=>{const t=document.body.style.overflow;return e&&"hidden"!==t&&(document.body.style.overflow="hidden"),()=>{e&&"hidden"!==t&&(document.body.style.overflow=t)}}),[e])};var _r=n(5513),Dr=n(3231);const Rr=(0,r.zo)("p").withConfig({shouldForwardProp:o.x})` +`,jn=e=>{var{children:t}=e,n=Sn(e,["children"]);return(0,a.jsx)(Cn,Object.assign({},n,{children:t}))};jn.defaultProps={width:1};const On=jn;var Mn=n(4591),En=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{onConfirm:t,inputType:n,addInputProps:r,labelText:i,onKeyDown:o,setErrors:l,autoFocus:c,description:u}=e,d=En(e,["onConfirm","inputType","addInputProps","labelText","onKeyDown","setErrors","autoFocus","description"]);const[h,f]=(0,s.useState)("number"===n?"0":""),[p,m]=(0,s.useState)(!0),g=l&&l(h);return(0,a.jsxs)(kn,Object.assign({inline:!0,onSubmit:e=>{e.preventDefault(),f("number"===n?"0":""),t&&t(h)}},d,{children:[(0,a.jsx)(On,{children:(0,a.jsx)(yn,Object.assign({label:i,onKeyDown:o,type:n,required:!0,value:h,onChange:e=>{const{valid:t}=e.target.validity;f(e.target.value),m(t)},error:!p||g,size:"large",description:u,autoFocus:c},r))}),(0,a.jsx)(On,Object.assign({padding:!0,narrow:!0},{children:(0,a.jsx)(F,{icon:Mn.Z,variant:"primary",size:"large",disabled:!p||"string"===g||!0===g,"aria-label":"Toggle input"})}))]}))};Pn.defaultProps={inputType:"text"};const An=Pn;var Tn="undefined"!=typeof document?s.useLayoutEffect:s.useEffect;function _n(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!_n(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){const n=i[r];if(("_owner"!==n||!e.$$typeof)&&!_n(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Dn(e){const t=s.useRef(e);return Tn((()=>{t.current=e})),t}var Rn=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},zn=new WeakMap,In=new WeakMap,Ln={},$n=0,Nn=function(e){return e&&(e.host||Nn(e.parentNode))},Zn=function(e,t,n,r){var i=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=Nn(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);Ln[n]||(Ln[n]=new WeakMap);var o=Ln[n],a=[],s=new Set,l=new Set(i),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};i.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))u(e);else{var t=e.getAttribute(r),i=null!==t&&"false"!==t,l=(zn.get(e)||0)+1,c=(o.get(e)||0)+1;zn.set(e,l),o.set(e,c),a.push(e),1===l&&i&&In.set(e,!0),1===c&&e.setAttribute(n,"true"),i||e.setAttribute(r,"true")}}))};return u(t),s.clear(),$n++,function(){a.forEach((function(e){var t=zn.get(e)-1,i=o.get(e)-1;zn.set(e,t),o.set(e,i),t||(In.has(e)||e.removeAttribute(r),In.delete(e)),i||e.removeAttribute(n)})),--$n||(zn=new WeakMap,zn=new WeakMap,In=new WeakMap,Ln={})}},Hn=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||Rn(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),Zn(r,i,n,"aria-hidden")):function(){return null}},Vn="undefined"!=typeof document?s.useLayoutEffect:s.useEffect;function Fn(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){e.set(t,(e.get(t)||[]).filter((e=>e!==n)))}}}let Bn=!1,Wn=0;const Un=()=>"floating-ui-"+Wn++;const Yn=l["useId".toString()],Kn=null!=Yn?Yn:function(){const[e,t]=s.useState((()=>Bn?Un():void 0));return Vn((()=>{null==e&&t(Un())}),[]),s.useEffect((()=>{Bn||(Bn=!0)}),[]),e},qn=s.createContext(null),Gn=s.createContext(null),Xn=()=>{var e,t;return null!=(e=null==(t=s.useContext(qn))?void 0:t.id)?e:null},Qn=()=>s.useContext(Gn),Jn=()=>{const e=Kn(),t=Qn(),n=Xn();return Vn((()=>{const r={id:e,parentId:n};return null==t||t.addNode(r),()=>{null==t||t.removeNode(r)}}),[t,e,n]),e},er=e=>{let{children:t,id:n}=e;const r=Xn();return s.createElement(qn.Provider,{value:s.useMemo((()=>({id:n,parentId:r})),[n,r])},t)},tr=e=>{let{children:t}=e;const n=s.useRef([]),r=s.useCallback((e=>{n.current=[...n.current,e]}),[]),i=s.useCallback((e=>{n.current=n.current.filter((t=>t!==e))}),[]),o=s.useState((()=>Fn()))[0];return s.createElement(Gn.Provider,{value:s.useMemo((()=>({nodesRef:n,addNode:r,removeNode:i,events:o})),[n,r,i,o])},t)};function nr(e){var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document}function rr(e){var t;return null!=(t=nr(e).defaultView)?t:window}function ir(e){return!!e&&e instanceof rr(e).Element}function or(e){return!!e&&e instanceof rr(e).HTMLElement}const ar=l["useInsertionEffect".toString()];function sr(e){const t=s.useRef((()=>{0}));return ar?ar((()=>{t.current=e})):t.current=e,s.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;rFn()))[0],m=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,whileElementsMounted:o,open:a}=e,[l,c]=s.useState({x:null,y:null,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[u,d]=s.useState(r);_n(u,r)||d(r);const h=s.useRef(null),f=s.useRef(null),p=s.useRef(l),m=Dn(o),g=Dn(i),[v,y]=s.useState(null),[b,w]=s.useState(null),x=s.useCallback((e=>{h.current!==e&&(h.current=e,y(e))}),[]),k=s.useCallback((e=>{f.current!==e&&(f.current=e,w(e))}),[]),S=s.useCallback((()=>{if(!h.current||!f.current)return;const e={placement:t,strategy:n,middleware:u};g.current&&(e.platform=g.current),tt(h.current,f.current,e).then((e=>{const t={...e,isPositioned:!0};C.current&&!_n(p.current,t)&&(p.current=t,Y.flushSync((()=>{c(t)})))}))}),[u,t,n,g]);Tn((()=>{!1===a&&p.current.isPositioned&&(p.current.isPositioned=!1,c((e=>({...e,isPositioned:!1}))))}),[a]);const C=s.useRef(!1);Tn((()=>(C.current=!0,()=>{C.current=!1})),[]),Tn((()=>{if(v&&b){if(m.current)return m.current(v,b,S);S()}}),[v,b,S,m]);const j=s.useMemo((()=>({reference:h,floating:f,setReference:x,setFloating:k})),[x,k]),O=s.useMemo((()=>({reference:v,floating:b})),[v,b]);return s.useMemo((()=>({...l,update:S,refs:j,elements:O,reference:x,floating:k})),[l,S,j,O,x,k])}({placement:i,middleware:o,strategy:a,whileElementsMounted:r}),g=sr(n),v=s.useMemo((()=>({...m.refs,domReference:h})),[m.refs]),y=s.useMemo((()=>({...m,refs:v,dataRef:f,nodeId:l,events:p,open:t,onOpenChange:g,_:{domReference:c}})),[m,l,p,t,g,v,c]);Vn((()=>{const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===l));e&&(e.context=y)}));const{reference:b}=m,w=s.useCallback((e=>{(ir(e)||null===e)&&(y.refs.domReference.current=e,u(e)),b(e)}),[b,y.refs]);return s.useMemo((()=>({...m,context:y,refs:v,reference:w})),[m,v,y,w])}function cr(e,t,n){const r=new Map;return{..."floating"===n&&{tabIndex:-1},...e,...t.map((e=>e?e[n]:null)).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,i]=t;var o;0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(o=r.get(n))||o.push(i),e[n]=function(){for(var e,t=arguments.length,i=new Array(t),o=0;oe(...i)))})):e[n]=i})),e):e),{})}}const ur=function(e){return void 0===e&&(e=[]),{getReferenceProps:t=>cr(t,e,"reference"),getFloatingProps:t=>cr(t,e,"floating"),getItemProps:t=>cr(t,e,"item")}};function dr(e,t){var n;let r=null!=(n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})))?n:[],i=r;for(;i.length;){var o;i=null!=(o=e.filter((e=>{var t;return null==(t=i)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})))?o:[],r=r.concat(i)}return r}function hr(e){let t,{restMs:n=0,buffer:r=.5,blockPointerEvents:i=!0,debug:o=null}=void 0===e?{}:e,a=!1;const s=e=>{let{x:i,y:o,placement:s,refs:l,onClose:c,nodeId:u,tree:d,leave:h=!1}=e;return function(e){var f,p;function m(){clearTimeout(t),c()}if(clearTimeout(t),e.pointerType&&"mouse"!==e.pointerType)return;const{clientX:g,clientY:v}=e,y="composedPath"in e?e.composedPath()[0]:e.target;if("pointermove"===e.type&&null!=(f=l.domReference.current)&&f.contains(y))return;if(d&&dr(d.nodesRef.current,u).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if(null!=(p=l.floating.current)&&p.contains(y)&&!h)return void(a=!0);if(!l.domReference.current||!l.floating.current||null==s||null==i||null==o)return;const b=l.domReference.current.getBoundingClientRect(),w=l.floating.current.getBoundingClientRect(),x=s.split("-")[0],k=i>w.right-w.width/2,S=o>w.bottom-w.height/2;if("top"===x&&o>=b.bottom-1||"bottom"===x&&o<=b.top+1||"left"===x&&i>=b.right-1||"right"===x&&i<=b.left+1)return m();switch(x){case"top":if(g>=w.left&&g<=w.right&&v>=w.top&&v<=b.top+1)return;break;case"bottom":if(g>=w.left&&g<=w.right&&v>=b.bottom-1&&v<=w.bottom)return;break;case"left":if(g>=w.left&&g<=b.left+1&&v>=w.top&&v<=w.bottom)return;break;case"right":if(g>=b.right-1&&g<=w.right&&v>=w.top&&v<=w.bottom)return}if(a)return m();const C=function(e){let[t,n]=e;const i=w.width>b.width,o=w.height>b.height;switch(x){case"top":return[[i?t+r/2:k?t+4*r:t-4*r,n+r+1],[i?t-r/2:k?t+4*r:t-4*r,n+r+1],...[[w.left,k||i?w.bottom-r:w.top],[w.right,k?i?w.bottom-r:w.top:w.bottom-r]]];case"bottom":return[[i?t+r/2:k?t+4*r:t-4*r,n-r],[i?t-r/2:k?t+4*r:t-4*r,n-r],...[[w.left,k||i?w.top+r:w.bottom],[w.right,k?i?w.top+r:w.bottom:w.top+r]]];case"left":{const e=[t+r+1,o?n+r/2:S?n+4*r:n-4*r],i=[t+r+1,o?n-r/2:S?n+4*r:n-4*r];return[...[[S||o?w.right-r:w.left,w.top],[S?o?w.right-r:w.left:w.right-r,w.bottom]],e,i]}case"right":return[[t-r,o?n+r/2:S?n+4*r:n-4*r],[t-r,o?n-r/2:S?n+4*r:n-4*r],...[[S||o?w.left+r:w.right,w.top],[S?o?w.left+r:w.right:w.left+r,w.bottom]]]}}([i,o]);!function(e,t){const[n,r]=e;let i=!1;const o=t.length;for(let e=0,a=o-1;e=r!=c>=r&&n<=(l-o)*(r-s)/(c-s)+o&&(i=!i)}return i}([g,v],C)?m():n&&(t=setTimeout(c,n))}};return s.__options={blockPointerEvents:i},s}function fr(){return fr=Object.assign||function(e){for(var t=1;t{var e,t,r,i;if(!n)return;if(document.body.hasAttribute(pr))return;document.body.setAttribute(pr,"");const o=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",a=window.innerWidth-document.documentElement.clientWidth;if(!/iP(hone|ad|od)|iOS/.test(function(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}()))return Object.assign(document.body.style,{overflow:"hidden",[o]:a+"px"}),()=>{document.body.removeAttribute(pr),Object.assign(document.body.style,{overflow:"",[o]:""})};const s=null!=(e=null==(t=window.visualViewport)?void 0:t.offsetLeft)?e:0,l=null!=(r=null==(i=window.visualViewport)?void 0:i.offsetTop)?r:0,c=window.pageXOffset,u=window.pageYOffset;return Object.assign(document.body.style,{position:"fixed",overflow:"hidden",top:-(u-Math.floor(l))+"px",left:-(c-Math.floor(s))+"px",right:"0",[o]:a+"px"}),()=>{Object.assign(document.body.style,{position:"",overflow:"",top:"",left:"",right:"",[o]:""}),document.body.removeAttribute(pr),window.scrollTo(c,u)}}),[n]),s.createElement("div",fr({ref:t},r,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...r.style}}))}));function gr(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(r=n.shadowRoot)?void 0:r.activeElement);){var n,r;t=t.shadowRoot.activeElement}return t}function vr(e){return"composedPath"in e?e.composedPath()[0]:e.target}const yr="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function br(e){return or(e)&&e.matches(yr)}function wr(e){e.preventDefault(),e.stopPropagation()}function xr(e){const t=(0,s.useRef)(e);return Vn((()=>{t.current=e})),t}function kr(e,t){void 0===t&&(t=!1),requestAnimationFrame((()=>{null==e||e.focus({preventScroll:t})}))}const Sr="select:not([disabled]),a[href],button:not([disabled]),[tabindex],iframe,object,embed,area[href],audio[controls],video[controls],"+yr,Cr=s.forwardRef((function(e,t){return s.createElement("span",fr({},e,{ref:t,tabIndex:0,style:{position:"fixed",opacity:"0",pointerEvents:"none",outline:"0"}}))}));function jr(e){var t;let{context:{refs:n,nodeId:r,onOpenChange:i,dataRef:o,events:a},children:l,order:c=["content"],endGuard:u=!0,preventTabbing:d=!1,initialFocus:h=0,returnFocus:f=!0,modal:p=!0}=e;const m=xr(c),g=Qn(),v=null==(null==g||null==(t=g.nodesRef.current.find((e=>e.id===r)))?void 0:t.parentId),y=s.useCallback((()=>m.current.map((e=>{return"reference"===e?n.domReference.current:n.floating.current&&"floating"===e?n.floating.current:"content"===e?Array.from(null!=(t=null==(r=n.floating.current)?void 0:r.querySelectorAll(Sr))?t:[]):null;var t,r})).flat().filter((e=>{if(e===n.floating.current||e===n.domReference.current)return!0;if(or(e)){var t;return"-"!==(null!=(t=e.getAttribute("tabindex"))?t:"0")[0].trim()}}))),[m,n]);s.useEffect((()=>{if(!p)return;const e=0===y().filter((e=>e!==n.floating.current&&e!==n.domReference.current)).length;function t(t){if("Tab"===t.key){(d||e)&&wr(t);const r=y(),i=vr(t);"reference"===m.current[0]&&i===n.domReference.current&&(wr(t),t.shiftKey?kr(r[r.length-1]):kr(r[1])),"floating"===m.current[1]&&i===n.floating.current&&t.shiftKey&&(wr(t),kr(r[0]))}}const r=nr(n.floating.current);return r.addEventListener("keydown",t),()=>{r.removeEventListener("keydown",t)}}),[d,p,y,m,n]),s.useEffect((()=>{let e=!1;function t(t){var o,a;const s=t.relatedTarget,l=!(null!=(o=n.floating.current)&&o.contains(s)),c=ir(n.domReference.current)&&!n.domReference.current.contains(s),u=g&&dr(g.nodesRef.current,r).length>0,d=g&&t.currentTarget===n.domReference.current&&(null==(a=function(e,t){var n;let r=[],i=null==(n=e.find((e=>e.id===t)))?void 0:n.parentId;for(;i;){const t=e.find((e=>e.id===i));i=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}(g.nodesRef.current,r))?void 0:a.some((e=>{var t,n;return null==(t=e.context)||null==(n=t.refs.floating.current)?void 0:n.contains(s)})));!l||!c||u||d||e||i(!1)}function o(){e=!0,setTimeout((()=>{e=!1}))}const a=n.floating.current,s=n.domReference.current;if(a&&or(s)){let e;return p||(a.addEventListener("focusout",t),s.addEventListener("focusout",t),s.addEventListener("pointerdown",o)),p&&(e=m.current.includes("reference")?Hn([s,a]):Hn(a)),()=>{p||(a.removeEventListener("focusout",t),s.removeEventListener("focusout",t),s.removeEventListener("pointerdown",o)),null==e||e()}}}),[r,g,p,i,m,o,y,n]),s.useEffect((()=>{if(d&&!v)return;const e=n.floating.current,t=nr(e);let r=f,i=!1,o=gr(t);if(o===t.body&&n.domReference.current&&(o=n.domReference.current),!d)if("number"==typeof h){var s;const t=null!=(s=y()[h])?s:e;kr(t,t===e)}else if(or(h.current)){var l;const t=null!=(l=h.current)?l:e;kr(t,t===e)}function c(e){void 0===e&&(e=!1),"object"==typeof e?(r=!0,i=e.preventScroll):r=e}return a.on("dismiss",c),()=>{a.off("dismiss",c),r&&or(o)&&kr(o,i)}}),[d,y,h,f,n,a,v]);const b=()=>{var e;return"combobox"===(null==(e=n.domReference.current)?void 0:e.getAttribute("role"))&&br(n.domReference.current)};return s.createElement(s.Fragment,null,p&&s.createElement(Cr,{onFocus:e=>{if(b())return;wr(e);const t=y();"reference"===c[0]?kr(t[0]):kr(t[t.length-1])}}),s.cloneElement(l,c.includes("floating")?{tabIndex:0}:{}),p&&u&&s.createElement(Cr,{onFocus:e=>{b()||(wr(e),kr(y()[0]))}}))}function Or(e){const t=(0,s.useRef)();return Vn((()=>{t.current=e}),[e]),t.current}function Mr(e,t,n){return n&&"mouse"!==n?0:"number"==typeof e?e:null==e?void 0:e[t]}const Er=function(e,t){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:o=!1,restMs:a=0,move:l=!0}=void 0===t?{}:t;const{open:c,onOpenChange:u,dataRef:d,events:h,refs:f,_:p}=e,m=Qn(),g=Xn(),v=xr(i),y=xr(r),b=Or(c),w=s.useRef(),x=s.useRef(),k=s.useRef(),S=s.useRef(),C=s.useRef(!0),j=s.useRef(!1),O=s.useCallback((()=>{var e;const t=null==(e=d.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[d]);s.useEffect((()=>{if(n)return h.on("dismiss",e),()=>{h.off("dismiss",e)};function e(){clearTimeout(x.current),clearTimeout(S.current),C.current=!0}}),[n,h,f]),s.useEffect((()=>{if(!n||!v.current)return;function e(){O()&&u(!1)}const t=nr(f.floating.current).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[f,u,n,v,d,O]);const M=s.useCallback((function(e){void 0===e&&(e=!0);const t=Mr(y.current,"close",w.current);t&&!k.current?(clearTimeout(x.current),x.current=setTimeout((()=>u(!1)),t)):e&&(clearTimeout(x.current),u(!1))}),[y,u]),E=s.useCallback((()=>{k.current&&(nr(f.floating.current).removeEventListener("pointermove",k.current),k.current=void 0)}),[f]),P=s.useCallback((()=>{nr(f.floating.current).body.style.pointerEvents="",j.current=!1}),[f]);if(s.useEffect((()=>{if(!n)return;function t(){return!!d.current.openEvent&&["click","mousedown"].includes(d.current.openEvent.type)}function r(e){if(clearTimeout(x.current),C.current=!1,o&&"mouse"!==w.current||a>0&&0===Mr(y.current,"open"))return;d.current.openEvent=e;const t=Mr(y.current,"open",w.current);t?x.current=setTimeout((()=>{u(!0)}),t):u(!0)}function i(n){if(t())return;const r=nr(f.floating.current);if(clearTimeout(S.current),v.current)return clearTimeout(x.current),k.current&&r.removeEventListener("pointermove",k.current),k.current=v.current({...e,tree:m,x:n.clientX,y:n.clientY,onClose(){P(),E(),M()}}),void r.addEventListener("pointermove",k.current);M()}function s(n){t()||null==v.current||v.current({...e,tree:m,x:n.clientX,y:n.clientY,leave:!0,onClose(){P(),E(),M()}})(n)}const h=f.floating.current,p=f.domReference.current;return ir(p)?(c&&p.addEventListener("mouseleave",s),null==h||h.addEventListener("mouseleave",s),l&&p.addEventListener("mousemove",r,{once:!0}),p.addEventListener("mouseenter",r),p.addEventListener("mouseleave",i),()=>{c&&p.removeEventListener("mouseleave",s),null==h||h.removeEventListener("mouseleave",s),l&&p.removeEventListener("mousemove",r),p.removeEventListener("mouseenter",r),p.removeEventListener("mouseleave",i)}):void 0}),[p.domReference,n,e,o,a,l,M,E,P,u,c,m,f,y,v,d]),Vn((()=>{if(n&&c&&v.current&&v.current.__options.blockPointerEvents&&O()){nr(f.floating.current).body.style.pointerEvents="none",j.current=!0;const n=f.domReference.current,r=f.floating.current;if(ir(n)&&r){var e,t;const i=null==m||null==(e=m.nodesRef.current.find((e=>e.id===g)))||null==(t=e.context)?void 0:t.refs.floating.current;return i&&(i.style.pointerEvents=""),n.style.pointerEvents="auto",r.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents=""}}}}),[n,c,g,f,m,v,d,O]),Vn((()=>{b&&!c&&(w.current=void 0,E(),P())})),s.useEffect((()=>()=>{E(),clearTimeout(x.current),clearTimeout(S.current),j.current&&P()}),[n,E,P]),!n)return{};function A(e){w.current=e.pointerType}return{reference:{onPointerDown:A,onPointerEnter:A,onMouseMove(){c||0===a||(clearTimeout(S.current),S.current=setTimeout((()=>{C.current||u(!0)}),a))}},floating:{onMouseEnter(){clearTimeout(x.current)},onMouseLeave(){M(!1)}}}};const Pr=function(e,t){let{open:n}=e,{enabled:r=!0,role:i="dialog"}=void 0===t?{}:t;const o=Kn(),a=Kn(),s={id:o,role:i};return r?"tooltip"===i?{reference:{"aria-describedby":n?o:void 0},floating:s}:{reference:{"aria-expanded":n?"true":"false","aria-haspopup":"alertdialog"===i?"dialog":i,"aria-controls":n?o:void 0,..."listbox"===i&&{role:"combobox"},..."menu"===i&&{id:a}},floating:{...s,..."menu"===i&&{"aria-labelledby":a}}}:{}};function Ar(e){return or(e.target)&&"BUTTON"===e.target.tagName}const Tr=function(e,t){let{open:n,onOpenChange:r,dataRef:i,refs:o}=e,{enabled:a=!0,pointerDown:l=!1,toggle:c=!0,ignoreMouse:u=!1,keyboardHandlers:d=!0}=void 0===t?{}:t;const h=s.useRef();function f(){return br(o.domReference.current)}return a?{reference:{onPointerDown(e){h.current=e.pointerType},onMouseDown(e){0===e.button&&("mouse"===h.current&&u||l&&(n?!c||i.current.openEvent&&"mousedown"!==i.current.openEvent.type||r(!1):r(!0),i.current.openEvent=e.nativeEvent))},onClick(e){l&&h.current?h.current=void 0:"mouse"===h.current&&u||(n?!c||i.current.openEvent&&"click"!==i.current.openEvent.type||r(!1):r(!0),i.current.openEvent=e.nativeEvent)},onKeyDown(e){h.current=void 0,d&&(Ar(e)||(" "!==e.key||f()||e.preventDefault(),"Enter"===e.key&&(n?c&&r(!1):r(!0))))},onKeyUp(e){d&&(Ar(e)||f()||" "===e.key&&(n?c&&r(!1):r(!0)))}}}:{}};function _r(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}const Dr=function(e,t){let{open:n,onOpenChange:r,refs:i,events:o,nodeId:a}=e,{enabled:l=!0,escapeKey:c=!0,outsidePointerDown:u=!0,referencePointerDown:d=!1,ancestorScroll:h=!1,bubbles:f=!0}=void 0===t?{}:t;const p=Qn(),m=null!=Xn(),g=s.useRef(!1);return s.useEffect((()=>{if(!n||!l)return;function e(e){if("Escape"===e.key){if(!f&&p&&dr(p.nodesRef.current,a).length>0)return;o.emit("dismiss",{preventScroll:!1}),r(!1)}}function t(e){const t=g.current;if(g.current=!1,t)return;const n=vr(e);if(ir(n)&&i.floating.current){var s;const t=null!=(s=i.floating.current.ownerDocument.defaultView)?s:window,r=n.scrollWidth>n.clientWidth,o=n.scrollHeight>n.clientHeight;let a=o&&e.offsetX>n.clientWidth;if(o){"rtl"===t.getComputedStyle(n).direction&&(a=e.offsetX<=n.offsetWidth-n.clientWidth)}if(a||r&&e.offsetY>n.clientHeight)return}const l=p&&dr(p.nodesRef.current,a).some((t=>{var n;return _r(e,null==(n=t.context)?void 0:n.refs.floating.current)}));_r(e,i.floating.current)||_r(e,i.domReference.current)||l||!f&&p&&dr(p.nodesRef.current,a).length>0||(o.emit("dismiss",!!m&&{preventScroll:!0}),r(!1))}function s(){r(!1)}const d=nr(i.floating.current);c&&d.addEventListener("keydown",e),u&&d.addEventListener("pointerdown",t);const v=(h?[...ir(i.reference.current)?Ye(i.reference.current):[],...ir(i.floating.current)?Ye(i.floating.current):[]]:[]).filter((e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)}));return v.forEach((e=>e.addEventListener("scroll",s,{passive:!0}))),()=>{c&&d.removeEventListener("keydown",e),u&&d.removeEventListener("pointerdown",t),v.forEach((e=>e.removeEventListener("scroll",s)))}}),[c,u,o,p,a,n,r,h,l,f,i,m]),l?{reference:{onPointerDown(){d&&(o.emit("dismiss"),r(!1))}},floating:{onPointerDownCapture(){g.current=!0}}}:{}},Rr="ArrowUp",zr="ArrowDown",Ir="ArrowLeft",Lr="ArrowRight";function $r(e,t,n){return Math.floor(e/t)!==n}function Nr(e,t){return t<0||t>=e.current.length}function Zr(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:i,amount:o=1}=void 0===t?{}:t;const a=e.current;let s=n;do{var l,c;s+=r?-o:o}while(s>=0&&s<=a.length-1&&(i?i.includes(s):null==a[s]||(null==(l=a[s])?void 0:l.hasAttribute("disabled"))||"true"===(null==(c=a[s])?void 0:c.getAttribute("aria-disabled"))));return s}function Hr(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function Vr(e,t){return Hr(t,e===Rr||e===zr,e===Ir||e===Lr)}function Fr(e,t,n){return Hr(t,e===zr,n?e===Ir:e===Lr)||"Enter"===e||" "==e||""===e}function Br(e,t){return Zr(e,{disabledIndices:t})}function Wr(e,t){return Zr(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}const Ur=function(e,t){let{open:n,onOpenChange:r,refs:i}=e,{listRef:o,activeIndex:a,onNavigate:l=(()=>{}),enabled:c=!0,selectedIndex:u=null,allowEscape:d=!1,loop:h=!1,nested:f=!1,rtl:p=!1,virtual:m=!1,focusItemOnOpen:g="auto",focusItemOnHover:v=!0,openOnArrowKeyDown:y=!0,disabledIndices:b,orientation:w="vertical",cols:x=1}=void 0===t?{listRef:{current:[]},activeIndex:null,onNavigate:()=>{}}:t;const k=Xn(),S=Qn(),C=Or(n),j=sr(l),O=sr(Or(l)),M=s.useRef(g),E=s.useRef(null!=u?u:-1),P=s.useRef(null),A=xr(b),T=s.useRef(!1),_=s.useRef(-1),[D,R]=s.useState(),z=s.useCallback(((e,t)=>{_.current=requestAnimationFrame((()=>{var n,r;m?R(null==(n=e.current[t.current])?void 0:n.id):null==(r=e.current[t.current])||r.focus({preventScroll:!0})}))}),[m]);function I(e){if(T.current=!0,f&&function(e,t,n){return Hr(t,n?e===Lr:e===Ir,e===Rr)}(e.key,w,p))return wr(e),r(!1),void(or(i.domReference.current)&&i.domReference.current.focus());const t=E.current,a=Br(o,b),s=Wr(o,b);if("Home"===e.key&&(E.current=a,j(E.current)),"End"===e.key&&(E.current=s,j(E.current)),x>1){const t=E.current;if(e.key===Rr){if(wr(e),-1===t)E.current=s;else if(E.current=Zr(o,{startingIndex:t,amount:x,decrement:!0,disabledIndices:b}),h&&(t-xe?r:r-x}Nr(o,E.current)&&(E.current=t),j(E.current)}if(e.key===zr&&(wr(e),-1===t?E.current=a:(E.current=Zr(o,{startingIndex:t,amount:x,disabledIndices:b}),h&&t+x>s&&(E.current=Zr(o,{startingIndex:t%x-x,amount:x,disabledIndices:b}))),Nr(o,E.current)&&(E.current=t),j(E.current)),"both"===w){const n=Math.floor(t/x);e.key===Lr&&(wr(e),t%x!=x-1?(E.current=Zr(o,{startingIndex:t,disabledIndices:b}),h&&$r(E.current,x,n)&&(E.current=Zr(o,{startingIndex:t-t%x-1,disabledIndices:b}))):h&&(E.current=Zr(o,{startingIndex:t-t%x-1,disabledIndices:b})),$r(E.current,x,n)&&(E.current=t)),e.key===Ir&&(wr(e),t%x!=0?(E.current=Zr(o,{startingIndex:t,disabledIndices:b,decrement:!0}),h&&$r(E.current,x,n)&&(E.current=Zr(o,{startingIndex:t+(x-t%x),decrement:!0,disabledIndices:b}))):h&&(E.current=Zr(o,{startingIndex:t+(x-t%x),decrement:!0,disabledIndices:b})),$r(E.current,x,n)&&(E.current=t));const r=Math.floor(s/x)===n;return Nr(o,E.current)&&(E.current=h&&r?e.key===Ir?s:Zr(o,{startingIndex:t-t%x-1,disabledIndices:b}):t),void j(E.current)}}if(Vr(e.key,w)){if(wr(e),n&&!m&&gr(e.currentTarget.ownerDocument)===e.currentTarget)return E.current=Fr(e.key,w,p)?a:s,void j(E.current);Fr(e.key,w,p)?E.current=h?t>=s?d&&t!==o.current.length?-1:a:Zr(o,{startingIndex:t,disabledIndices:b}):Math.min(s,Zr(o,{startingIndex:t,disabledIndices:b})):E.current=h?t<=a?d&&-1!==t?o.current.length:s:Zr(o,{startingIndex:t,decrement:!0,disabledIndices:b}):Math.max(a,Zr(o,{startingIndex:t,decrement:!0,disabledIndices:b})),Nr(o,E.current)?j(null):j(E.current)}}return Vn((()=>{c&&(!C&&n&&M.current&&null!=u&&j(u),C&&!n&&(cancelAnimationFrame(_.current),E.current=-1,O(null)))}),[n,C,u,o,z,c,j,O]),Vn((()=>{if(c&&n)if(null==a){if(null!=u)return;C&&(E.current=-1,z(o,E)),!C&&M.current&&(null!=P.current||!0===M.current&&null==P.current)&&(E.current=null==P.current||Fr(P.current,w,p)||f?Br(o,A.current):Wr(o,A.current),j(E.current),z(o,E))}else Nr(o,a)||(E.current=a,z(o,E))}),[n,C,a,u,f,o,j,z,c,d,w,p,m,A]),Vn((()=>{if(c&&!n&&C){var e,t;const n=null==S||null==(e=S.nodesRef.current.find((e=>e.id===k)))||null==(t=e.context)?void 0:t.refs.floating.current;n&&!n.contains(gr(nr(n)))&&n.focus({preventScroll:!0})}}),[c,n,C,S,k]),Vn((()=>{P.current=null})),c?{reference:{...m&&n&&null!=a&&{"aria-activedescendant":D},onKeyDown(e){if(T.current=!0,m&&n)return I(e);(0===e.key.indexOf("Arrow")||"Enter"===e.key||" "===e.key||""===e.key)&&(P.current=e.key),f?function(e,t,n){return Hr(t,n?e===Ir:e===Lr,e===zr)}(e.key,w,p)&&(wr(e),n?(E.current=Br(o,b),j(E.current)):r(!0)):Vr(e.key,w)&&(null!=u&&(E.current=u),wr(e),!n&&y?r(!0):I(e),n&&j(E.current))}},floating:{"aria-orientation":"both"===w?void 0:w,...m&&null!=a&&{"aria-activedescendant":D},onKeyDown:I,onPointerMove(){T.current=!1}},item:{onFocus(e){let{currentTarget:t}=e;const n=o.current.indexOf(t);-1!==n&&j(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...v&&{onMouseMove(e){let{currentTarget:t}=e;const n=t;if(n){const e=o.current.indexOf(n);-1!==e&&j(e)}},onPointerLeave(){var e;T.current||(E.current=-1,z(o,E),j(null),m||null==(e=i.floating.current)||e.focus({preventScroll:!0}))}}}}:{}},Yr=e=>{(0,s.useEffect)((()=>{const t=document.body.style.overflow;return e&&"hidden"!==t&&(document.body.style.overflow="hidden"),()=>{e&&"hidden"!==t&&(document.body.style.overflow=t)}}),[e])};var Kr=n(5513),qr=n(3231);const Gr=(0,r.zo)("p").withConfig({shouldForwardProp:o.x})` ${(0,c.qC)(c.Dh,c.yd,c.JB,c.Ue,c.I8,c.Nv)} ${u.sL} -`;Rr.displayName="Typography";const zr=r.zo.button` +`;Gr.displayName="Typography";const Xr=r.zo.button` display: flex; align-items: center; justify-content: flex-start; @@ -874,7 +874,7 @@ } ${({theme:e})=>(0,c.bU)({prop:"size",variants:{small:{height:e.sizes.$36,fontSize:e.fontSizes.$12,"> * + *":{marginLeft:"6px"},"> .icon":{width:"14px",height:"14px",lineHeight:"14px"}},medium:{height:e.sizes.$40,fontSize:e.fontSizes.$14,"> * + *":{marginLeft:e.sizes.$8},"> .icon":{width:e.sizes.$16,height:e.sizes.$16,lineHeight:e.sizes.$16}}}})} -`;var Ir=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{const o=(0,s.useMemo)((()=>"boolean"==typeof n?n?bn.Z:Dr.A0:r||null),[n,r]);return(0,a.jsxs)(a.Fragment,{children:[o&&(0,a.jsx)(o,{}),(0,a.jsx)(v,Object.assign({flex:"1"},{children:t})),i&&(0,a.jsx)(Rr,Object.assign({color:"dark30",fontSize:"$12"},{children:i})),e&&(0,a.jsx)(v,Object.assign({display:"flex",alignItems:"center"},{children:e}))]})},$r=(0,m.w)(((e,t)=>{var{active:n,badge:r,checked:i,children:o,disabled:s,hotkey:l,icon:c,menuItemRef:u}=e,d=Ir(e,["active","badge","checked","children","disabled","hotkey","icon","menuItemRef"]);const h=Wt(u,t);return(0,a.jsx)(zr,Object.assign({ref:h,disabled:s,active:n},d,{children:(0,a.jsx)(Lr,Object.assign({badge:r,icon:c,hotkey:l,checked:i},{children:o}))}))}));var Nr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{const o=(0,s.useMemo)((()=>"boolean"==typeof n?n?bn.Z:Dr.A0:r||null),[n,r]);return(0,a.jsxs)(a.Fragment,{children:[o&&(0,a.jsx)(o,{}),(0,a.jsx)(v,Object.assign({flex:"1"},{children:t})),i&&(0,a.jsx)(Rr,Object.assign({color:"dark30",fontSize:"$12"},{children:i})),e&&(0,a.jsx)(v,Object.assign({display:"flex",alignItems:"center"},{children:e}))]})},Hr=(0,m.w)(((e,t)=>{var{active:n,badge:r,checked:i,children:o,icon:s,hotkey:l,menuItemRef:c}=e,u=Nr(e,["active","badge","checked","children","icon","hotkey","menuItemRef"]);const d=Wt(c,t);return(0,a.jsx)(zr,Object.assign({as:"a",ref:d,active:n},u,{children:(0,a.jsx)(Zr,Object.assign({badge:r,icon:s,hotkey:l,checked:i},{children:o}))}))})),Vr=r.zo.div` +`;var Qr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{const o=(0,s.useMemo)((()=>"boolean"==typeof n?n?Mn.Z:qr.A0:r||null),[n,r]);return(0,a.jsxs)(a.Fragment,{children:[o&&(0,a.jsx)(o,{}),(0,a.jsx)(v,Object.assign({flex:"1"},{children:t})),i&&(0,a.jsx)(Gr,Object.assign({color:"dark30",fontSize:"$12"},{children:i})),e&&(0,a.jsx)(v,Object.assign({display:"flex",alignItems:"center"},{children:e}))]})},ei=(0,m.w)(((e,t)=>{var{active:n,badge:r,checked:i,children:o,disabled:s,hotkey:l,icon:c,menuItemRef:u}=e,d=Qr(e,["active","badge","checked","children","disabled","hotkey","icon","menuItemRef"]);const h=Jt(u,t);return(0,a.jsx)(Xr,Object.assign({ref:h,disabled:s,active:n},d,{children:(0,a.jsx)(Jr,Object.assign({badge:r,icon:c,hotkey:l,checked:i},{children:o}))}))}));var ti=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{const o=(0,s.useMemo)((()=>"boolean"==typeof n?n?Mn.Z:qr.A0:r||null),[n,r]);return(0,a.jsxs)(a.Fragment,{children:[o&&(0,a.jsx)(o,{}),(0,a.jsx)(v,Object.assign({flex:"1"},{children:t})),i&&(0,a.jsx)(Gr,Object.assign({color:"dark30",fontSize:"$12"},{children:i})),e&&(0,a.jsx)(v,Object.assign({display:"flex",alignItems:"center"},{children:e}))]})},ri=(0,m.w)(((e,t)=>{var{active:n,badge:r,checked:i,children:o,icon:s,hotkey:l,menuItemRef:c}=e,u=ti(e,["active","badge","checked","children","icon","hotkey","menuItemRef"]);const d=Jt(c,t);return(0,a.jsx)(Xr,Object.assign({as:"a",ref:d,active:n},u,{children:(0,a.jsx)(ni,Object.assign({badge:r,icon:s,hotkey:l,checked:i},{children:o}))}))})),ii=r.zo.div` display: flex; align-items: center; justify-content: flex-start; @@ -883,14 +883,14 @@ padding: 0 ${({theme:e})=>e.sizes.$12}; ${({theme:e})=>(0,c.bU)({prop:"size",variants:{small:{height:e.sizes.$36},medium:{height:e.sizes.$40}}})} -`;var Fr=n(9725),Br=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie.color("dark0")}; -`,Ur=r.zo.input` +`,li=r.zo.input` cursor: pointer; appearance: none; display: inline-block; @@ -937,20 +937,20 @@ ${u.By} ${({theme:e})=>(0,c.bU)({prop:"$size",variants:{small:{height:e.sizes.$20,width:e.sizes.$20,minWidth:e.sizes.$20,borderRadius:e.sizes.$2,"& + span, & + span > svg":{width:e.sizes.$20,height:e.sizes.$20},"~ strong":{marginLeft:e.sizes.$8,fontSize:e.fontSizes.$12}},medium:{height:e.sizes.$20,width:e.sizes.$20,minWidth:e.sizes.$20,borderRadius:e.sizes.$2,"& + span, & + span > svg":{width:e.sizes.$20,height:e.sizes.$20},"~ strong":{marginLeft:e.sizes.$8,fontSize:e.fontSizes.$14}},large:{height:e.sizes.$28,width:e.sizes.$28,minWidth:e.sizes.$28,borderRadius:e.sizes.$2,"& + span, & + span > svg":{width:e.sizes.$24,height:e.sizes.$24,top:e.sizes.$2,left:e.sizes.$2},"~ strong":{marginLeft:e.sizes.$12,fontSize:e.fontSizes.$16}}}})} -`,Yr=(0,m.w)(((e,t)=>{var{indeterminate:n,label:r,size:i}=e,o=Br(e,["indeterminate","label","size"]);const s=n?Fr.Z:bn.Z;return(0,a.jsxs)(Wr,{children:[(0,a.jsx)(Ur,Object.assign({type:"checkbox",$size:i,ref:t},o)),(0,a.jsx)(s,{}),r&&(0,a.jsx)("strong",{children:r})]})}));Yr.defaultProps={size:"medium"};var qr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i(0,a.jsxs)(v,Object.assign({display:"flex",alignItems:"center",width:"100%"},{children:[(0,a.jsx)(v,Object.assign({display:"flex",mr:8,colors:["dark0","dark0"]},{children:(0,a.jsx)(Ur,Object.assign({as:"div",checked:n,$size:"small",className:n?"checked":void 0},{children:n?(0,a.jsx)(bn.Z,{size:18}):null}))})),(0,a.jsx)(v,Object.assign({flex:"1",mr:"auto"},{children:t})),r&&(0,a.jsx)(Rr,Object.assign({color:"dark30",fontSize:"$12"},{children:r})),e&&(0,a.jsx)(v,Object.assign({display:"flex",alignItems:"center"},{children:e}))]})),Kr=(0,m.w)(((e,t)=>{var{active:n,badge:r,checked:i,children:o,disabled:s,hotkey:l,menuItemRef:c}=e,u=qr(e,["active","badge","checked","children","disabled","hotkey","menuItemRef"]);const d=Wt(c,t);return(0,a.jsx)(zr,Object.assign({ref:d,disabled:s,active:n},u,{children:(0,a.jsx)(Gr,Object.assign({badge:r,hotkey:l,checked:i},{children:o}))}))}));var Xr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{indeterminate:n,label:r,size:i}=e,o=ai(e,["indeterminate","label","size"]);const s=n?oi.Z:Mn.Z;return(0,a.jsxs)(si,{children:[(0,a.jsx)(li,Object.assign({type:"checkbox",$size:i,ref:t},o)),(0,a.jsx)(s,{}),r&&(0,a.jsx)("strong",{children:r})]})}));ci.defaultProps={size:"medium"};var ui=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i(0,a.jsxs)(v,Object.assign({display:"flex",alignItems:"center",width:"100%"},{children:[(0,a.jsx)(v,Object.assign({display:"flex",mr:8,colors:["dark0","dark0"]},{children:(0,a.jsx)(li,Object.assign({as:"div",checked:n,$size:"small",className:n?"checked":void 0},{children:n?(0,a.jsx)(Mn.Z,{size:18}):null}))})),(0,a.jsx)(v,Object.assign({flex:"1",mr:"auto"},{children:t})),r&&(0,a.jsx)(Gr,Object.assign({color:"dark30",fontSize:"$12"},{children:r})),e&&(0,a.jsx)(v,Object.assign({display:"flex",alignItems:"center"},{children:e}))]})),hi=(0,m.w)(((e,t)=>{var{active:n,badge:r,checked:i,children:o,disabled:s,hotkey:l,menuItemRef:c}=e,u=ui(e,["active","badge","checked","children","disabled","hotkey","menuItemRef"]);const d=Jt(c,t);return(0,a.jsx)(Xr,Object.assign({ref:d,disabled:s,active:n},u,{children:(0,a.jsx)(di,Object.assign({badge:r,hotkey:l,checked:i},{children:o}))}))}));var fi=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie}; ${({theme:e})=>(0,c.bU)({prop:"direction",variants:{row:{flexDirection:"row","> *":{marginRight:e.space.$12,marginBottom:e.space.$12}},column:{flexDirection:"column","> *":{marginBottom:e.space.$16}}}})} -`,ei=(0,m.w)(((e,t)=>{var{children:n,name:r,onChange:i,value:o}=e,l=Xr(e,["children","name","onChange","value"]);const c=(0,s.useMemo)((()=>({groupName:r,handleChange:i,groupValue:o})),[r,i,o]);return(0,a.jsx)(Jr,Object.assign({},l,{ref:t},{children:(0,a.jsx)(Qr.Provider,Object.assign({value:c},{children:n}))}))}));ei.defaultProps={direction:"column"};var ti=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{children:n,name:r,onChange:i,value:o}=e,l=fi(e,["children","name","onChange","value"]);const c=(0,s.useMemo)((()=>({groupName:r,handleChange:i,groupValue:o})),[r,i,o]);return(0,a.jsx)(mi,Object.assign({},l,{ref:t},{children:(0,a.jsx)(pi.Provider,Object.assign({value:c},{children:n}))}))}));gi.defaultProps={direction:"column"};var vi=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie.color("dark0")}; -`,ii=r.zo.input` +`,wi=r.zo.input` cursor: pointer; appearance: none; display: inline-block; @@ -968,7 +968,7 @@ ${({theme:e,variant:t})=>"primary"===t&&(0,c.bU)({prop:"$size",variants:{small:{width:e.sizes.$20,height:e.sizes.$20,borderRadius:e.sizes.$20,"&:checked,&.checked":{borderWidth:6},"~ strong":{marginLeft:e.sizes.$8,fontSize:e.fontSizes.$12}},medium:{width:e.sizes.$20,height:e.sizes.$20,borderRadius:e.sizes.$20,"&:checked,&.checked":{borderWidth:6},"~ strong":{marginLeft:e.sizes.$8,fontSize:e.fontSizes.$14}},large:{width:e.sizes.$28,height:e.sizes.$28,borderRadius:e.sizes.$28,"&:checked,&.checked":{borderWidth:8},"~ strong":{marginLeft:e.sizes.$12,fontSize:e.fontSizes.$16}}}})} ${({theme:e})=>(0,c.bU)({variants:{primary:{background:e.color("dark100")({theme:e}),border:"1px solid",borderColor:e.color("light20")({theme:e}),transition:`background ${e.transition.duration.fast}ms ${e.transition.function.default}, border ${e.transition.function.default}ms`,"&:checked,&.checked":{background:e.color("white")({theme:e}),borderColor:e.color("purple50")({theme:e})}},tag:{position:"absolute",width:"100%",height:"100%",border:"1px solid",borderColor:e.color("dark50")({theme:e}),"&:checked,&.checked":{borderColor:e.color("dark20")({theme:e})},"& + strong":{padding:e.sizes.$12,minWidth:e.sizes.$36,textAlign:"center"},"&:disabled":{borderColor:e.color("dark50")({theme:e})}}}})} -`,oi=(0,m.w)(((e,t)=>{var{checked:n,label:r,name:i,onChange:o,size:l,value:c}=e,u=ti(e,["checked","label","name","onChange","size","value"]);const{groupName:d,handleChange:h,groupValue:f}=(0,s.useContext)(Qr),p=(0,s.useMemo)((()=>h||o),[h,o]),m=(0,s.useMemo)((()=>void 0!==f?f===c:n),[n,f,c]);return(0,a.jsxs)(ri,{children:[(0,a.jsx)(ii,Object.assign({name:d||i,type:"radio",$size:l,checked:m,onChange:p,ref:t,value:c},u)),r&&(0,a.jsx)("strong",{children:r})]})}),ni);oi.defaultProps={size:"medium",variant:"primary"};var ai=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i(0,a.jsxs)(v,Object.assign({display:"flex",alignItems:"center",width:"100%"},{children:[(0,a.jsx)(v,Object.assign({display:"flex",mr:8},{children:(0,a.jsx)(ii,{as:"div",checked:n,$size:"small",variant:"primary",className:n?"checked":void 0})})),(0,a.jsx)(v,Object.assign({flex:"1",mr:"auto"},{children:t})),r&&(0,a.jsx)(Rr,Object.assign({color:"dark30",fontSize:"$12"},{children:r})),e&&(0,a.jsx)(v,Object.assign({display:"flex",alignItems:"center"},{children:e}))]})),li=(0,m.w)(((e,t)=>{var{active:n,badge:r,checked:i,children:o,disabled:s,hotkey:l,menuItemRef:c}=e,u=ai(e,["active","badge","checked","children","disabled","hotkey","menuItemRef"]);const d=Wt(c,t);return(0,a.jsx)(zr,Object.assign({ref:d,disabled:s,active:n},u,{children:(0,a.jsx)(si,Object.assign({badge:r,hotkey:l,checked:i},{children:o}))}))}));var ci=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{value:n,onChange:r,placeholder:i}=e,o=ci(e,["value","onChange","placeholder"]);return(0,a.jsx)(v,Object.assign({px:10,py:5},{children:(0,a.jsx)(un,Object.assign({value:n,onChange:r,placeholder:i,ref:t},o))}))}));var di=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{checked:n,label:r,name:i,onChange:o,size:l,value:c}=e,u=vi(e,["checked","label","name","onChange","size","value"]);const{groupName:d,handleChange:h,groupValue:f}=(0,s.useContext)(pi),p=(0,s.useMemo)((()=>h||o),[h,o]),m=(0,s.useMemo)((()=>void 0!==f?f===c:n),[n,f,c]);return(0,a.jsxs)(bi,{children:[(0,a.jsx)(wi,Object.assign({name:d||i,type:"radio",$size:l,checked:m,onChange:p,ref:t,value:c},u)),r&&(0,a.jsx)("strong",{children:r})]})}),yi);xi.defaultProps={size:"medium",variant:"primary"};var ki=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i(0,a.jsxs)(v,Object.assign({display:"flex",alignItems:"center",width:"100%"},{children:[(0,a.jsx)(v,Object.assign({display:"flex",mr:8},{children:(0,a.jsx)(wi,{as:"div",checked:n,$size:"small",variant:"primary",className:n?"checked":void 0})})),(0,a.jsx)(v,Object.assign({flex:"1",mr:"auto"},{children:t})),r&&(0,a.jsx)(Gr,Object.assign({color:"dark30",fontSize:"$12"},{children:r})),e&&(0,a.jsx)(v,Object.assign({display:"flex",alignItems:"center"},{children:e}))]})),Ci=(0,m.w)(((e,t)=>{var{active:n,badge:r,checked:i,children:o,disabled:s,hotkey:l,menuItemRef:c}=e,u=ki(e,["active","badge","checked","children","disabled","hotkey","menuItemRef"]);const d=Jt(c,t);return(0,a.jsx)(Xr,Object.assign({ref:d,disabled:s,active:n},u,{children:(0,a.jsx)(Si,Object.assign({badge:r,hotkey:l,checked:i},{children:o}))}))}));var ji=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{value:n,onChange:r,placeholder:i}=e,o=ji(e,["value","onChange","placeholder"]);return(0,a.jsx)(v,Object.assign({px:10,py:5},{children:(0,a.jsx)(yn,Object.assign({value:n,onChange:r,placeholder:i,ref:t},o))}))}));var Mi=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie.zIndex.dropdown}; padding: ${({theme:e})=>e.sizes.$4} 0; @@ -985,7 +985,7 @@ > * { width: 100%; } -`,pi=r.zo.div` +`,Ai=r.zo.div` position: fixed; top: 0px; left: 0px; @@ -993,7 +993,7 @@ height: 100vh; z-index: ${({theme:e})=>e.zIndex.dropdown-1}; background: transparent; -`,mi=(0,m.w)(((e,t)=>{var{activeIndex:n,contextRef:r,children:i,matchWidth:o,offset:l,visible:c,setVisible:u,placement:d,menuItemRef:h,trigger:f,size:p,onVirtualChange:m,leaveMenuOpenOnItemSelect:g,initialFocus:v}=e,y=di(e,["activeIndex","contextRef","children","matchWidth","offset","visible","setVisible","placement","menuItemRef","trigger","size","onVirtualChange","leaveMenuOpenOnItemSelect","initialFocus"]);const[b,w]=(0,s.useState)(c||!1),[x,k]=(0,s.useState)(n||null),S=q(),C=(0,s.useRef)([]),[j,O]=(0,s.useState)(!1),M=Hn(),P=Vn(),E=Zn(),A=null!=E;Tr(b&&!!(null==r?void 0:r.current)),(0,s.useEffect)((()=>{"boolean"==typeof c&&w(c)}),[c]),(0,s.useEffect)((()=>{"number"==typeof n&&b&&k(n)}),[n,b]);const{x:T,y:_,reference:D,floating:R,strategy:z,refs:I,context:L}=Gn({open:b,onOpenChange:u||w,middleware:[fe({mainAxis:A?-4:l,alignmentAxis:A?-5:0}),he(),me(),ge({apply({elements:e,rects:t}){var n,r;o&&Object.assign(null===(n=e.floating)||void 0===n?void 0:n.style,{width:`${null===(r=t.reference)||void 0===r?void 0:r.width}px`})}})],placement:A?"right-start":d,nodeId:P,whileElementsMounted:Ue}),$=Wt(h,D),N=Wt(t,R),Z="function"==typeof m,{getReferenceProps:H,getFloatingProps:V,getItemProps:F}=Xn([fr(L,{handleClose:Jn({restMs:25}),enabled:A&&j,delay:{open:75}}),mr(L,{toggle:!A,pointerDown:!0,ignoreMouse:A}),pr(L,{role:Z?"listbox":"menu"}),vr(L),Ar(L,{listRef:C,activeIndex:x,nested:A,virtual:Z,onNavigate:k,loop:!0})]);(0,s.useEffect)((()=>{var e;null!=x&&(null===(e=C.current[x])||void 0===e||e.scrollIntoView({block:"nearest"}))}),[x]),(0,s.useEffect)((()=>{if(!g)return null==M||M.events.on("click",e),()=>{null==M||M.events.off("click",e)};function e(){(u||w)(!1)}}),[E,M,I,g]),(0,s.useEffect)((()=>{function e(){O(!0)}function t(){O(!1)}return window.addEventListener("pointermove",e,{once:!0,capture:!0}),window.addEventListener("keydown",t,{passive:!0}),()=>{window.removeEventListener("pointermove",e),window.removeEventListener("keydown",t)}}),[j]),(0,s.useEffect)((()=>{var e;const t=e=>{e.preventDefault(),e.stopPropagation(),D({getBoundingClientRect:()=>({x:e.clientX,y:e.clientY,width:0,height:0,top:e.clientY,right:e.clientX,bottom:e.clientY,left:e.clientX})}),(u||w)(!0)};return null===(e=null==r?void 0:r.current)||void 0===e||e.addEventListener("contextmenu",t),()=>{var e;null===(e=null==r?void 0:r.current)||void 0===e||e.removeEventListener("contextmenu",t)}}),[b]);const B=A?s.Fragment:Bn,W=(0,s.useCallback)((()=>V({ref:N,style:{position:z,top:null!=_?_:"",left:null!=T?T:"",visibility:j&&null==T?"hidden":void 0},onKeyDown(e){Z&&"Enter"===e.key&&null!=x&&(m(x),e.preventDefault(),e.stopPropagation())}})),[V,N,z,T,_,j,m,x,Z]);return(0,a.jsx)(B,{children:(0,a.jsxs)(Fn,Object.assign({id:P},{children:[(0,s.isValidElement)(f)&&(0,s.cloneElement)(f,Object.assign(Object.assign({size:p},H(Object.assign(Object.assign({},f.props),{ref:$,badge:A?(0,a.jsx)(_r.Z,{size:14}):void 0,onClick(e){A&&e.stopPropagation(),void 0===v&&e.currentTarget.focus()},onKeyDown(e){Z&&"Enter"===e.key&&null!=x&&(m(x),(u||w)(!1)),"Tab"===e.key&&(u||w)(!1)}}))),{onPointerDown(e){A&&e.stopPropagation(),e.currentTarget.focus()}})),(0,a.jsx)(S,{children:b&&(0,a.jsxs)(a.Fragment,{children:[(null==r?void 0:r.current)&&(0,a.jsx)(pi,{}),(0,a.jsx)(ur,Object.assign({context:L,modal:!A,order:["reference","content"],initialFocus:v},{children:(0,a.jsx)(fi,Object.assign({},W(),y,{children:s.Children.map(i,((e,t)=>(0,s.isValidElement)(e)?(0,s.cloneElement)(e,Object.assign({menuItemRef:e=>{C.current[t]=e}},F(Object.assign(Object.assign({size:p,role:Z?"option":"menuitem",active:x===t,"aria-selected":Z?x===t:void 0},e.props),{onClick(){var t,n;null==M||M.events.emit("click"),null===(n=(t=e.props).onClick)||void 0===n||n.call(t)},onPointerEnter(){j&&k(t)}})))):null))}))}))]})})]}))})})),gi=(0,m.w)(((e,t)=>{const n=Zn()?s.Fragment:Bn;return(0,a.jsx)(n,{children:(0,a.jsx)(mi,Object.assign({ref:t},e))})}),hi);gi.defaultProps={offset:2,placement:"bottom-start",size:"medium",minWidth:160};var vi=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{options:n,renderOption:r,value:i,onChange:o,menuWidth:l}=e,c=vi(e,["options","renderOption","value","onChange","menuWidth"]);const[u,d]=(0,s.useState)(!1),h=(0,s.useRef)(null),[f,p]=(0,s.useState)(!0),m=Wt(h,t),g=(0,s.useCallback)((e=>{o(e.target.value),p(!1),d(!0)}),[o]),v=(0,s.useCallback)((e=>()=>{o(e,!0),d(!1)}),[o]);(0,s.useEffect)((()=>{u||p(!0)}),[u]);const y=(0,s.useMemo)((()=>{if(0===i.length)return[];const e=f?n:n.filter((e=>e.value.toLowerCase().indexOf(i.toLowerCase())>-1)),t=[];return e.forEach(((n,r)=>{n.group&&(0===r||e[r-1].group!==n.group)&&n.group.length>0&&t.push(n.group),t.push(n)})),t}),[i,n,f]),b=(0,s.useCallback)((e=>{const t=y[e];"string"!=typeof t&&o(t.value,!0)}),[y]);return(0,a.jsx)(gi,Object.assign({trigger:(0,a.jsx)(un,Object.assign({ref:m,value:i,onChange:g},c)),visible:u&&y.length>0,activeIndex:0,onVirtualChange:b,setVisible:d,matchWidth:!l,width:l,size:"large"===c.size?"medium":c.size,maxHeight:300,"data-testid":c.id},{children:y.map((e=>"string"==typeof e?(0,a.jsx)(gi.Title,{children:e},`group-${e}`):(0,a.jsx)(gi.Item,Object.assign({onClick:v(e.value)},{children:r?(0,a.jsx)(r,{option:e}):e.value}),`group-${e.value}`)))}))}));var bi=n(3768),wi=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{activeIndex:n,contextRef:r,children:i,matchWidth:o,offset:l,visible:c,setVisible:u,placement:d,menuItemRef:h,trigger:f,size:p,onVirtualChange:m,leaveMenuOpenOnItemSelect:g,initialFocus:v}=e,y=Mi(e,["activeIndex","contextRef","children","matchWidth","offset","visible","setVisible","placement","menuItemRef","trigger","size","onVirtualChange","leaveMenuOpenOnItemSelect","initialFocus"]);const[b,w]=(0,s.useState)(c||!1),[x,k]=(0,s.useState)(n||null),S=K(),C=(0,s.useRef)([]),[j,O]=(0,s.useState)(!1),M=Qn(),E=Jn(),P=Xn(),A=null!=P;Yr(b&&!!(null==r?void 0:r.current)),(0,s.useEffect)((()=>{"boolean"==typeof c&&w(c)}),[c]),(0,s.useEffect)((()=>{"number"==typeof n&&b&&k(n)}),[n,b]);const{x:T,y:_,reference:D,floating:R,strategy:z,refs:I,context:L}=lr({open:b,onOpenChange:u||w,middleware:[me({mainAxis:A?-4:l,alignmentAxis:A?-5:0}),pe(),ve(),ye({apply({elements:e,rects:t}){var n,r;o&&Object.assign(null===(n=e.floating)||void 0===n?void 0:n.style,{width:`${null===(r=t.reference)||void 0===r?void 0:r.width}px`})}})],placement:A?"right-start":d,nodeId:E,whileElementsMounted:et}),$=Jt(h,D),N=Jt(t,R),Z="function"==typeof m,{getReferenceProps:H,getFloatingProps:V,getItemProps:F}=ur([Er(L,{handleClose:hr({restMs:25}),enabled:A&&j,delay:{open:75}}),Tr(L,{toggle:!A,pointerDown:!0,ignoreMouse:A}),Pr(L,{role:Z?"listbox":"menu"}),Dr(L),Ur(L,{listRef:C,activeIndex:x,nested:A,virtual:Z,onNavigate:k,loop:!0})]);(0,s.useEffect)((()=>{var e;null!=x&&(null===(e=C.current[x])||void 0===e||e.scrollIntoView({block:"nearest"}))}),[x]),(0,s.useEffect)((()=>{if(!g)return null==M||M.events.on("click",e),()=>{null==M||M.events.off("click",e)};function e(){(u||w)(!1)}}),[P,M,I,g]),(0,s.useEffect)((()=>{function e(){O(!0)}function t(){O(!1)}return window.addEventListener("pointermove",e,{once:!0,capture:!0}),window.addEventListener("keydown",t,{passive:!0}),()=>{window.removeEventListener("pointermove",e),window.removeEventListener("keydown",t)}}),[j]),(0,s.useEffect)((()=>{var e;const t=e=>{e.preventDefault(),e.stopPropagation(),D({getBoundingClientRect:()=>({x:e.clientX,y:e.clientY,width:0,height:0,top:e.clientY,right:e.clientX,bottom:e.clientY,left:e.clientX})}),(u||w)(!0)};return null===(e=null==r?void 0:r.current)||void 0===e||e.addEventListener("contextmenu",t),()=>{var e;null===(e=null==r?void 0:r.current)||void 0===e||e.removeEventListener("contextmenu",t)}}),[b]);const B=A?s.Fragment:tr,W=(0,s.useCallback)((()=>V({ref:N,style:{position:z,top:null!=_?_:"",left:null!=T?T:"",visibility:j&&null==T?"hidden":void 0},onKeyDown(e){Z&&"Enter"===e.key&&null!=x&&(m(x),e.preventDefault(),e.stopPropagation())}})),[V,N,z,T,_,j,m,x,Z]);return(0,a.jsx)(B,{children:(0,a.jsxs)(er,Object.assign({id:E},{children:[(0,s.isValidElement)(f)&&(0,s.cloneElement)(f,Object.assign(Object.assign({size:p},H(Object.assign(Object.assign({},f.props),{ref:$,badge:A?(0,a.jsx)(Kr.Z,{size:14}):void 0,onClick(e){A&&e.stopPropagation(),void 0===v&&e.currentTarget.focus()},onKeyDown(e){Z&&"Enter"===e.key&&null!=x&&(m(x),(u||w)(!1)),"Tab"===e.key&&(u||w)(!1)}}))),{onPointerDown(e){A&&e.stopPropagation(),e.currentTarget.focus()}})),(0,a.jsx)(S,{children:b&&(0,a.jsxs)(a.Fragment,{children:[(null==r?void 0:r.current)&&(0,a.jsx)(Ai,{}),(0,a.jsx)(jr,Object.assign({context:L,modal:!A,order:["reference","content"],initialFocus:v},{children:(0,a.jsx)(Pi,Object.assign({},W(),y,{children:s.Children.map(i,((e,t)=>(0,s.isValidElement)(e)?(0,s.cloneElement)(e,Object.assign({menuItemRef:e=>{C.current[t]=e}},F(Object.assign(Object.assign({size:p,role:Z?"option":"menuitem",active:x===t,"aria-selected":Z?x===t:void 0},e.props),{onClick(){var t,n;null==M||M.events.emit("click"),null===(n=(t=e.props).onClick)||void 0===n||n.call(t)},onPointerEnter(){j&&k(t)}})))):null))}))}))]})})]}))})})),_i=(0,m.w)(((e,t)=>{const n=Xn()?s.Fragment:tr;return(0,a.jsx)(n,{children:(0,a.jsx)(Ti,Object.assign({ref:t},e))})}),Ei);_i.defaultProps={offset:2,placement:"bottom-start",size:"medium",minWidth:160};var Di=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{options:n,renderOption:r,value:i,onChange:o,menuWidth:l}=e,c=Di(e,["options","renderOption","value","onChange","menuWidth"]);const[u,d]=(0,s.useState)(!1),h=(0,s.useRef)(null),[f,p]=(0,s.useState)(!0),m=Jt(h,t),g=(0,s.useCallback)((e=>{o(e.target.value),p(!1),d(!0)}),[o]),v=(0,s.useCallback)((e=>()=>{o(e,!0),d(!1)}),[o]);(0,s.useEffect)((()=>{u||p(!0)}),[u]);const y=(0,s.useMemo)((()=>{if(0===i.length)return[];const e=f?n:n.filter((e=>e.value.toLowerCase().indexOf(i.toLowerCase())>-1)),t=[];return e.forEach(((n,r)=>{n.group&&(0===r||e[r-1].group!==n.group)&&n.group.length>0&&t.push(n.group),t.push(n)})),t}),[i,n,f]),b=(0,s.useCallback)((e=>{const t=y[e];"string"!=typeof t&&o(t.value,!0)}),[y]);return(0,a.jsx)(_i,Object.assign({trigger:(0,a.jsx)(yn,Object.assign({ref:m,value:i,onChange:g},c)),visible:u&&y.length>0,activeIndex:0,onVirtualChange:b,setVisible:d,matchWidth:!l,width:l,size:"large"===c.size?"medium":c.size,maxHeight:300,"data-testid":c.id},{children:y.map((e=>"string"==typeof e?(0,a.jsx)(_i.Title,{children:e},`group-${e}`):(0,a.jsx)(_i.Item,Object.assign({onClick:v(e.value)},{children:r?(0,a.jsx)(r,{option:e}):e.value}),`group-${e.value}`)))}))}));var zi=n(3768),Ii=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i!e&&`\n background-color: ${t.color("dark60","light90")({theme:t})};\n color: ${t.color("dark0","light10")({theme:t})};\n `} ${({highlight:e,theme:t})=>e&&`\n font-weight: ${t.fontWeights.semibold};\n `} -`,ki=(0,m.w)(((e,t)=>{var n,{label:r}=e,i=wi(e,["label"]);return(0,a.jsxs)(xi,Object.assign({ref:t},i,{children:[0===(null===(n=i.variant)||void 0===n?void 0:n.indexOf("ticker"))&&(0,a.jsx)(bi.Z,{size:8}),r]}))}));ki.defaultProps={variant:"primary",size:"large"};class Si{constructor(){}lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){let r=[];return this.decompose(0,e,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(t,this.length,r,1),ji.from(r,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){let n=[];return this.decompose(e,t,n,0),ji.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),r=new Pi(this),i=new Pi(e);for(let e=t,o=t;;){if(r.next(e),i.next(e),e=0,r.lineBreak!=i.lineBreak||r.done!=i.done||r.value!=i.value)return!1;if(o+=r.value.length,r.done||o>=n)return!0}}iter(e=1){return new Pi(this,e)}iterRange(e,t=this.length){return new Ei(this,e,t)}iterLines(e,t){let n;if(null==e)n=this.iter();else{null==t&&(t=this.lines+1);let r=this.line(e).from;n=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new Ai(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}static of(e){if(0==e.length)throw new RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new Ci(e):ji.from(Ci.split(e,[])):Si.empty}}class Ci extends Si{constructor(e,t=function(e){let t=-1;for(let n of e)t+=n.length+1;return t}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,r){for(let i=0;;i++){let o=this.text[i],a=r+o.length;if((t?n:a)>=e)return new Ti(r,a,n,o);r=a+1,n++}}decompose(e,t,n,r){let i=e<=0&&t>=this.length?this:new Ci(Mi(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(1&r){let e=n.pop(),t=Oi(i.text,e.text.slice(),0,i.length);if(t.length<=32)n.push(new Ci(t,e.length+i.length));else{let e=t.length>>1;n.push(new Ci(t.slice(0,e)),new Ci(t.slice(e)))}}else n.push(i)}replace(e,t,n){if(!(n instanceof Ci))return super.replace(e,t,n);let r=Oi(this.text,Oi(n.text,Mi(this.text,0,e)),t),i=this.length+n.length-(t-e);return r.length<=32?new Ci(r,i):ji.from(Ci.split(r,[]),i)}sliceString(e,t=this.length,n="\n"){let r="";for(let i=0,o=0;i<=t&&oe&&o&&(r+=n),ei&&(r+=a.slice(Math.max(0,e-i),t-i)),i=s+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],r=-1;for(let i of e)n.push(i),r+=i.length+1,32==n.length&&(t.push(new Ci(n,r)),n=[],r=-1);return r>-1&&t.push(new Ci(n,r)),t}}class ji extends Si{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let t of e)this.lines+=t.lines}lineInner(e,t,n,r){for(let i=0;;i++){let o=this.children[i],a=r+o.length,s=n+o.lines-1;if((t?s:a)>=e)return o.lineInner(e,t,n,r);r=a+1,n=s+1}}decompose(e,t,n,r){for(let i=0,o=0;o<=t&&i=o){let i=r&((o<=e?1:0)|(s>=t?2:0));o>=e&&s<=t&&!i?n.push(a):a.decompose(e-o,t-o,n,i)}o=s+1}}replace(e,t,n){if(n.lines=i&&t<=a){let s=o.replace(e-i,t-i,n),l=this.lines-o.lines+s.lines;if(s.lines>4&&s.lines>l>>6){let i=this.children.slice();return i[r]=s,new ji(i,this.length-(t-e)+n.length)}return super.replace(i,a,s)}i=a+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n="\n"){let r="";for(let i=0,o=0;ie&&i&&(r+=n),eo&&(r+=a.sliceString(e-o,t-o,n)),o=s+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof ji))return 0;let n=0,[r,i,o,a]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,i+=t){if(r==o||i==a)return n;let s=this.children[r],l=e.children[i];if(s!=l)return n+s.scanIdentical(l,t);n+=s.length+1}}static from(e,t=e.reduce(((e,t)=>e+t.length+1),-1)){let n=0;for(let t of e)n+=t.lines;if(n<32){let n=[];for(let t of e)t.flatten(n);return new Ci(n,t)}let r=Math.max(32,n>>5),i=r<<1,o=r>>1,a=[],s=0,l=-1,c=[];function u(e){let t;if(e.lines>i&&e instanceof ji)for(let t of e.children)u(t);else e.lines>o&&(s>o||!s)?(d(),a.push(e)):e instanceof Ci&&s&&(t=c[c.length-1])instanceof Ci&&e.lines+t.lines<=32?(s+=e.lines,l+=e.length+1,c[c.length-1]=new Ci(t.text.concat(e.text),t.length+1+e.length)):(s+e.lines>r&&d(),s+=e.lines,l+=e.length+1,c.push(e))}function d(){0!=s&&(a.push(1==c.length?c[0]:ji.from(c,l)),l=-1,s=c.length=0)}for(let t of e)u(t);return d(),1==a.length?a[0]:new ji(a,t)}}function Oi(e,t,n=0,r=1e9){for(let i=0,o=0,a=!0;o=n&&(l>r&&(s=s.slice(0,r-i)),i0?1:(e instanceof Ci?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],i=this.offsets[n],o=i>>1,a=r instanceof Ci?r.text.length:r.children.length;if(o==(t>0?a:0)){if(0==n)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&i)==(t>0?0:1)){if(this.offsets[n]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(r instanceof Ci){let i=r.text[o+(t<0?-1:0)];if(this.offsets[n]+=t,i.length>Math.max(0,e))return this.value=0==e?i:t>0?i.slice(e):i.slice(0,i.length-e),this;e-=i.length}else{let i=r.children[o+(t<0?-1:0)];e>i.length?(e-=i.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(i),this.offsets.push(t>0?1:(i instanceof Ci?i.text.length:i.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class Ei{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new Pi(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=n?r:t<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class Ai{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:r}=this.inner.next(e);return t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(Si.prototype[Symbol.iterator]=function(){return this.iter()},Pi.prototype[Symbol.iterator]=Ei.prototype[Symbol.iterator]=Ai.prototype[Symbol.iterator]=function(){return this});class Ti{constructor(e,t,n,r){this.from=e,this.to=t,this.number=n,this.text=r}get length(){return this.to-this.from}}let _i="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((e=>e?parseInt(e,36):1));for(let e=1;e<_i.length;e++)_i[e]+=_i[e-1];function Di(e){for(let t=1;t<_i.length;t+=2)if(_i[t]>e)return _i[t-1]<=e;return!1}function Ri(e){return e>=127462&&e<=127487}function zi(e,t,n=!0,r=!0){return(n?Ii:Li)(e,t,r)}function Ii(e,t,n){if(t==e.length)return t;t&&$i(e.charCodeAt(t))&&Ni(e.charCodeAt(t-1))&&t--;let r=Zi(e,t);for(t+=Hi(r);t=0&&Ri(Zi(e,r));)n++,r-=2;if(n%2==0)break;t+=2}}}return t}function Li(e,t,n){for(;t>0;){let r=Ii(e,t-2,n);if(r=56320&&e<57344}function Ni(e){return e>=55296&&e<56320}function Zi(e,t){let n=e.charCodeAt(t);if(!Ni(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return $i(r)?r-56320+(n-55296<<10)+65536:n}function Hi(e){return e<65536?1:2}const Vi=/\r\n?|\n/;var Fi=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(Fi||(Fi={}));class Bi{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;te)return i+(e-r);i+=a}else{if(n!=Fi.Simple&&l>=e&&(n==Fi.TrackDel&&re||n==Fi.TrackBefore&&re))return null;if(l>e||l==e&&t<0&&!a)return e==r||t<0?i:i+s;i+=s}r=l}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return i}touchesRange(e,t=e){for(let n=0,r=0;n=0&&r<=t&&i>=e)return!(rt)||"cover";r=i}return!1}toString(){let e="";for(let t=0;t=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some((e=>"number"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Bi(e)}static create(e){return new Bi(e)}}class Wi extends Bi{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return qi(this,((t,n,r,i,o)=>e=e.replace(r,r+(n-t),o)),!1),e}mapDesc(e,t=!1){return Gi(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let r=0,i=0;r=0){t[r]=a,t[r+1]=o;let s=r>>1;for(;n.length0&&Yi(n,t,i.text),i.forward(e),a+=e}let l=e[o++];for(;a>1].toJSON()))}return e}static of(e,t,n){let r=[],i=[],o=0,a=null;function s(e=!1){if(!e&&!r.length)return;oa||e<0||a>t)throw new RangeError(`Invalid change range ${e} to ${a} (in doc of length ${t})`);let u=c?"string"==typeof c?Si.of(c.split(n||Vi)):c:Si.empty,d=u.length;if(e==a&&0==d)return;eo&&Ui(r,e-o,-1),Ui(r,a-e,d),Yi(i,r,u),o=a}}(e),s(!a),a}static empty(e){return new Wi(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let r=0;rt&&"string"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==i.length)t.push(i[0],0);else{for(;n.length=0&&n<=0&&n==e[i+1]?e[i]+=t:0==t&&0==e[i]?e[i+1]+=n:r?(e[i]+=t,e[i+1]+=n):e.push(t,n)}function Yi(e,t,n){if(0==n.length)return;let r=t.length-2>>1;if(r>1])),!(n||a==e.sections.length||e.sections[a+1]<0);)s=e.sections[a++],l=e.sections[a++];t(i,c,o,u,d),i=c,o=u}}}function Gi(e,t,n,r=!1){let i=[],o=r?[]:null,a=new Xi(e),s=new Xi(t);for(let e=-1;;)if(-1==a.ins&&-1==s.ins){let e=Math.min(a.len,s.len);Ui(i,e,-1),a.forward(e),s.forward(e)}else if(s.ins>=0&&(a.ins<0||e==a.i||0==a.off&&(s.len=0&&e=0)){if(a.done&&s.done)return o?Wi.createSet(i,o):Bi.create(i);throw new Error("Mismatched change set lengths")}{let t=0,n=a.len;for(;n;)if(-1==s.ins){let e=Math.min(n,s.len);t+=e,n-=e,s.forward(e)}else{if(!(0==s.ins&&s.lent||a.ins>=0&&a.len>t)&&(e||r.length>n),o.forward2(t),a.forward(t)}}else Ui(r,0,a.ins,e),i&&Yi(i,r,a.text),a.next()}}class Xi{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?Si.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?Si.empty:t[n].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class Qi{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return 16&this.flags?this.to:this.from}get head(){return 16&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 4&this.flags?-1:8&this.flags?1:0}get bidiLevel(){let e=3&this.flags;return 3==e?null:e}get goalColumn(){let e=this.flags>>5;return 33554431==e?void 0:e}map(e,t=-1){let n,r;return this.empty?n=r=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),r=e.mapPos(this.to,-1)),n==this.from&&r==this.to?this:new Qi(n,r,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return Ji.range(e,t);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return Ji.range(this.anchor,n)}eq(e){return this.anchor==e.anchor&&this.head==e.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid JSON representation for SelectionRange");return Ji.range(e.anchor,e.head)}static create(e,t,n){return new Qi(e,t,n)}}class Ji{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:Ji.create(this.ranges.map((n=>n.map(e,t))),this.mainIndex)}eq(e){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let t=0;te.toJSON())),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new Ji(e.ranges.map((e=>Qi.fromJSON(e))),e.main)}static single(e,t=e){return new Ji([Ji.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw new RangeError("A selection needs at least one range");for(let n=0,r=0;re?4:0))}static normalized(e,t=0){let n=e[t];e.sort(((e,t)=>e.from-t.from)),t=e.indexOf(n);for(let n=1;nr.head?Ji.range(a,o):Ji.range(o,a))}}return new Ji(e,t)}}function eo(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let to=0;class no{constructor(e,t,n,r,i){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=r,this.id=to++,this.default=e([]),this.extensions="function"==typeof i?i(this):i}static define(e={}){return new no(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:ro),!!e.static,e.enables)}of(e){return new io([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new io(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new io(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],(n=>t(n.field(e))))}}function ro(e,t){return e==t||e.length==t.length&&e.every(((e,n)=>e===t[n]))}class io{constructor(e,t,n,r){this.dependencies=e,this.facet=t,this.type=n,this.value=r,this.id=to++}dynamicSlot(e){var t;let n=this.value,r=this.facet.compareInput,i=this.id,o=e[i]>>1,a=2==this.type,s=!1,l=!1,c=[];for(let n of this.dependencies)"doc"==n?s=!0:"selection"==n?l=!0:0==(1&(null!==(t=e[n.id])&&void 0!==t?t:1))&&c.push(e[n.id]);return{create:e=>(e.values[o]=n(e),1),update(e,t){if(s&&t.docChanged||l&&(t.docChanged||t.selection)||ao(e,c)){let t=n(e);if(a?!oo(t,e.values[o],r):!r(t,e.values[o]))return e.values[o]=t,1}return 0},reconfigure:(e,t)=>{let s=n(e),l=t.config.address[i];if(null!=l){let n=ko(t,l);if(this.dependencies.every((n=>n instanceof no?t.facet(n)===e.facet(n):!(n instanceof co)||t.field(n,!1)==e.field(n,!1)))||(a?oo(s,n,r):r(s,n)))return e.values[o]=n,0}return e.values[o]=s,1}}}}function oo(e,t,n){if(e.length!=t.length)return!1;for(let r=0;re[t.id])),i=n.map((e=>e.type)),o=r.filter((e=>!(1&e))),a=e[t.id]>>1;function s(e){let n=[];for(let t=0;te===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(lo).find((e=>e.field==this));return((null==t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{let r=e.values[t],i=this.updateF(r,n);return this.compareF(r,i)?0:(e.values[t]=i,1)},reconfigure:(e,n)=>null!=n.config.address[this.id]?(e.values[t]=n.field(this),0):(e.values[t]=this.create(e),1)}}init(e){return[this,lo.of({field:this,create:e})]}get extension(){return this}}const uo=4,ho=3,fo=2,po=1;function mo(e){return t=>new vo(t,e)}const go={highest:mo(0),high:mo(po),default:mo(fo),low:mo(ho),lowest:mo(uo)};class vo{constructor(e,t){this.inner=e,this.prec=t}}class yo{of(e){return new bo(this,e)}reconfigure(e){return yo.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class bo{constructor(e,t){this.compartment=e,this.inner=t}}class wo{constructor(e,t,n,r,i,o){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=r,this.staticValues=i,this.facets=o,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,t,n){let r=[],i=Object.create(null),o=new Map;for(let n of function(e,t,n){let r=[[],[],[],[],[]],i=new Map;function o(e,a){let s=i.get(e);if(null!=s){if(s<=a)return;let t=r[s].indexOf(e);t>-1&&r[s].splice(t,1),e instanceof bo&&n.delete(e.compartment)}if(i.set(e,a),Array.isArray(e))for(let t of e)o(t,a);else if(e instanceof bo){if(n.has(e.compartment))throw new RangeError("Duplicate use of compartment in extensions");let r=t.get(e.compartment)||e.inner;n.set(e.compartment,r),o(r,a)}else if(e instanceof vo)o(e.inner,e.prec);else if(e instanceof co)r[a].push(e),e.provides&&o(e.provides,a);else if(e instanceof io)r[a].push(e),e.facet.extensions&&o(e.facet.extensions,fo);else{let t=e.extension;if(!t)throw new Error(`Unrecognized extension value in extension set (${e}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);o(t,a)}}return o(e,fo),r.reduce(((e,t)=>e.concat(t)))}(e,t,o))n instanceof co?r.push(n):(i[n.facet.id]||(i[n.facet.id]=[])).push(n);let a=Object.create(null),s=[],l=[];for(let e of r)a[e.id]=l.length<<1,l.push((t=>e.slot(t)));let c=null==n?void 0:n.config.facets;for(let e in i){let t=i[e],r=t[0].facet,o=c&&c[e]||[];if(t.every((e=>0==e.type)))if(a[r.id]=s.length<<1|1,ro(o,t))s.push(n.facet(r));else{let e=r.combine(t.map((e=>e.value)));s.push(n&&r.compare(e,n.facet(r))?n.facet(r):e)}else{for(let e of t)0==e.type?(a[e.id]=s.length<<1|1,s.push(e.value)):(a[e.id]=l.length<<1,l.push((t=>e.dynamicSlot(t))));a[r.id]=l.length<<1,l.push((e=>so(e,r,t)))}}let u=l.map((e=>e(a)));return new wo(e,o,u,a,s,i)}}function xo(e,t){if(1&t)return 2;let n=t>>1,r=e.status[n];if(4==r)throw new Error("Cyclic dependency between fields and/or facets");if(2&r)return r;e.status[n]=4;let i=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|i}function ko(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}const So=no.define(),Co=no.define({combine:e=>e.some((e=>e)),static:!0}),jo=no.define({combine:e=>e.length?e[0]:void 0,static:!0}),Oo=no.define(),Mo=no.define(),Po=no.define(),Eo=no.define({combine:e=>!!e.length&&e[0]});class Ao{constructor(e,t){this.type=e,this.value=t}static define(){return new To}}class To{of(e){return new Ao(this,e)}}class _o{constructor(e){this.map=e}of(e){return new Do(this,e)}}class Do{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new Do(this.type,t)}is(e){return this.type==e}static define(e={}){return new _o(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let r of e){let e=r.map(t);e&&n.push(e)}return n}}Do.reconfigure=Do.define(),Do.appendConfig=Do.define();class Ro{constructor(e,t,n,r,i,o){this.startState=e,this.changes=t,this.selection=n,this.effects=r,this.annotations=i,this.scrollIntoView=o,this._doc=null,this._state=null,n&&eo(n,t.newLength),i.some((e=>e.type==Ro.time))||(this.annotations=i.concat(Ro.time.of(Date.now())))}static create(e,t,n,r,i,o){return new Ro(e,t,n,r,i,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(Ro.userEvent);return!(!t||!(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function zo(e,t){let n=[];for(let r=0,i=0;;){let o,a;if(r=e[r]))o=e[r++],a=e[r++];else{if(!(i=0;i--){let o=n[i](e);o&&Object.keys(o).length&&(r=Io(e,Lo(t,o,e.changes.newLength),!0))}return r==e?e:Ro.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}(n?function(e){let t=e.startState,n=!0;for(let r of t.facet(Oo)){let t=r(e);if(!1===t){n=!1;break}Array.isArray(t)&&(n=!0===n?t:zo(n,t))}if(!0!==n){let r,i;if(!1===n)i=e.changes.invertedDesc,r=Wi.empty(t.doc.length);else{let t=e.changes.filter(n);r=t.changes,i=t.filtered.mapDesc(t.changes).invertedDesc}e=Ro.create(t,r,e.selection&&e.selection.map(i),Do.mapEffects(e.effects,i),e.annotations,e.scrollIntoView)}let r=t.facet(Mo);for(let n=r.length-1;n>=0;n--){let i=r[n](e);e=i instanceof Ro?i:Array.isArray(i)&&1==i.length&&i[0]instanceof Ro?i[0]:$o(t,Zo(i),!1)}return e}(i):i)}Ro.time=Ao.define(),Ro.userEvent=Ao.define(),Ro.addToHistory=Ao.define(),Ro.remote=Ao.define();const No=[];function Zo(e){return null==e?No:Array.isArray(e)?e:[e]}var Ho=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(Ho||(Ho={}));const Vo=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Fo;try{Fo=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(e){}function Bo(e){return t=>{if(!/\S/.test(t))return Ho.Space;if(function(e){if(Fo)return Fo.test(e);for(let t=0;t"€"&&(n.toUpperCase()!=n.toLowerCase()||Vo.test(n)))return!0}return!1}(t))return Ho.Word;for(let n=0;n-1)return Ho.Word;return Ho.Other}}class Wo{constructor(e,t,n,r,i,o){this.config=e,this.doc=t,this.selection=n,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=i,o&&(o._state=this);for(let e=0;ei.set(t,e))),n=null),i.set(t.value.compartment,t.value.extension)):t.is(Do.reconfigure)?(n=null,r=t.value):t.is(Do.appendConfig)&&(n=null,r=Zo(r).concat(t.value));if(n)t=e.startState.values.slice();else{n=wo.resolve(r,i,this),t=new Wo(n,this.doc,this.selection,n.dynamicSlots.map((()=>null)),((e,t)=>t.reconfigure(e,this)),null).values}new Wo(n,e.newDoc,e.newSelection,t,((t,n)=>n.update(t,e)),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange((t=>({changes:{from:t.from,to:t.to,insert:e},range:Ji.cursor(t.from+e.length)})))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),r=this.changes(n.changes),i=[n.range],o=Zo(n.effects);for(let n=1;ni.spec.fromJSON(o,e))))}return Wo.create({doc:e.doc,selection:Ji.fromJSON(e.selection),extensions:t.extensions?r.concat([t.extensions]):r})}static create(e={}){let t=wo.resolve(e.extensions||[],new Map),n=e.doc instanceof Si?e.doc:Si.of((e.doc||"").split(t.staticFacet(Wo.lineSeparator)||Vi)),r=e.selection?e.selection instanceof Ji?e.selection:Ji.single(e.selection.anchor,e.selection.head):Ji.single(0);return eo(r,n.length),t.staticFacet(Co)||(r=r.asSingle()),new Wo(t,n,r,t.dynamicSlots.map((()=>null)),((e,t)=>t.create(e)),null)}get tabSize(){return this.facet(Wo.tabSize)}get lineBreak(){return this.facet(Wo.lineSeparator)||"\n"}get readOnly(){return this.facet(Eo)}phrase(e,...t){for(let t of this.facet(Wo.phrases))if(Object.prototype.hasOwnProperty.call(t,e)){e=t[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,((e,n)=>{if("$"==n)return"$";let r=+(n||1);return!r||r>t.length?e:t[r-1]}))),e}languageDataAt(e,t,n=-1){let r=[];for(let i of this.facet(So))for(let o of i(this,t,n))Object.prototype.hasOwnProperty.call(o,e)&&r.push(o[e]);return r}charCategorizer(e){return Bo(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:n,length:r}=this.doc.lineAt(e),i=this.charCategorizer(e),o=e-n,a=e-n;for(;o>0;){let e=zi(t,o,!1);if(i(t.slice(e,o))!=Ho.Word)break;o=e}for(;ae.length?e[0]:4}),Wo.lineSeparator=jo,Wo.readOnly=Eo,Wo.phrases=no.define({compare(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every((n=>e[n]==t[n]))}}),Wo.languageData=So,Wo.changeFilter=Oo,Wo.transactionFilter=Mo,Wo.transactionExtender=Po,yo.reconfigure=Do.define();class Yo{eq(e){return this==e}range(e,t=e){return qo.create(e,t,this)}}Yo.prototype.startSide=Yo.prototype.endSide=0,Yo.prototype.point=!1,Yo.prototype.mapMode=Fi.TrackDel;class qo{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(e,t,n){return new qo(e,t,n)}}function Go(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class Ko{constructor(e,t,n,r){this.from=e,this.to=t,this.value=n,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,r=0){let i=n?this.to:this.from;for(let o=r,a=i.length;;){if(o==a)return o;let r=o+a>>1,s=i[r]-e||(n?this.value[r].endSide:this.value[r].startSide)-t;if(r==o)return s>=0?o:a;s>=0?a=r:o=r+1}}between(e,t,n,r){for(let i=this.findIndex(t,-1e9,!0),o=this.findIndex(n,1e9,!1,i);ic||l==c&&u.startSide>0&&u.endSide<=0)continue;(c-l||u.endSide-u.startSide)<0||(o<0&&(o=l),u.point&&(a=Math.max(a,c-l)),n.push(u),r.push(l-o),i.push(c-o))}return{mapped:n.length?new Ko(r,i,n,a):null,pos:o}}}class Xo{constructor(e,t,n,r){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=r}static create(e,t,n,r){return new Xo(e,t,n,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:r=0,filterTo:i=this.length}=e,o=e.filter;if(0==t.length&&!o)return this;if(n&&(t=t.slice().sort(Go)),this.isEmpty)return t.length?Xo.of(t):this;let a=new ea(this,null,-1).goto(0),s=0,l=[],c=new Qo;for(;a.value||s=0){let e=t[s++];c.addInner(e.from,e.to,e.value)||l.push(e)}else 1==a.rangeIndex&&a.chunkIndexthis.chunkEnd(a.chunkIndex)||ia.to||i=i&&e<=i+o.length&&!1===o.between(i,e-i,t-i,n))return}this.nextLayer.between(e,t,n)}}iter(e=0){return ta.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return ta.from(e).goto(t)}static compare(e,t,n,r,i=-1){let o=e.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i)),a=t.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i)),s=Jo(o,a,n),l=new ra(o,s,i),c=new ra(a,s,i);n.iterGaps(((e,t,n)=>ia(l,e,c,t,n,r))),n.empty&&0==n.length&&ia(l,0,c,0,0,r)}static eq(e,t,n=0,r){null==r&&(r=1e9);let i=e.filter((e=>!e.isEmpty&&t.indexOf(e)<0)),o=t.filter((t=>!t.isEmpty&&e.indexOf(t)<0));if(i.length!=o.length)return!1;if(!i.length)return!0;let a=Jo(i,o),s=new ra(i,a,0).goto(n),l=new ra(o,a,0).goto(n);for(;;){if(s.to!=l.to||!oa(s.active,l.active)||s.point&&(!l.point||!s.point.eq(l.point)))return!1;if(s.to>r)return!0;s.next(),l.next()}}static spans(e,t,n,r,i=-1){let o=new ra(e,null,i).goto(t),a=t,s=o.openStart;for(;;){let e=Math.min(o.to,n);if(o.point?(r.point(a,e,o.point,o.activeForPoint(o.to),s,o.pointRank),s=o.openEnd(e)+(o.to>e?1:0)):e>a&&(r.span(a,e,o.active,s),s=o.openEnd(e)),o.to>n)break;a=o.to,o.next()}return s}static of(e,t=!1){let n=new Qo;for(let r of e instanceof qo?[e]:t?function(e){if(e.length>1)for(let t=e[0],n=1;n0)return e.slice().sort(Go);t=r}return e}(e):e)n.add(r.from,r.to,r.value);return n.finish()}}Xo.empty=new Xo([],[],null,-1),Xo.empty.nextLayer=Xo.empty;class Qo{constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}finishChunk(e){this.chunks.push(new Ko(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new Qo)).add(e,t,n)}addInner(e,t,n){let r=e-this.lastTo||n.startSide-this.last.endSide;if(r<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(Xo.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=Xo.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function Jo(e,t,n){let r=new Map;for(let t of e)for(let e=0;e=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=n&&r.push(new ea(o,t,n,i));return 1==r.length?r[0]:new ta(r)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let e=this.heap.length>>1;e>=0;e--)na(this.heap,e);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let e=this.heap.length>>1;e>=0;e--)na(this.heap,e);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),na(this.heap,0)}}}function na(e,t){for(let n=e[t];;){let r=1+(t<<1);if(r>=e.length)break;let i=e[r];if(r+1=0&&(i=e[r+1],r++),n.compare(i)<0)break;e[r]=n,e[t]=i,t=r}}class ra{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=ta.from(e,t,n)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){aa(this.active,e),aa(this.activeTo,e),aa(this.activeRank,e),this.minActive=la(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:r,rank:i}=this.cursor;for(;t-1&&(this.activeTo[i]-this.cursor.from||this.active[i].endSide-this.cursor.startSide)<0){if(this.activeTo[i]>e){this.to=this.activeTo[i],this.endSide=this.active[i].endSide;break}this.removeActive(i),n&&aa(n,i)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let i=this.cursor.value;if(i.point){if(!(t&&this.cursor.to==this.to&&this.cursor.frome&&r++,this.cursor.next()}}}if(n){let t=0;for(;t=0&&!(this.activeRank[n]e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function ia(e,t,n,r,i,o){e.goto(t),n.goto(r);let a=r+i,s=r,l=r-t;for(;;){let t=e.to+l-n.to||e.endSide-n.endSide,r=t<0?e.to+l:n.to,i=Math.min(r,a);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&oa(e.activeForPoint(e.to+l),n.activeForPoint(n.to))||o.comparePoint(s,i,e.point,n.point):i>s&&!oa(e.active,n.active)&&o.compareRange(s,i,e.active,n.active),r>a)break;s=r,t<=0&&e.next(),t>=0&&n.next()}}function oa(e,t){if(e.length!=t.length)return!1;for(let n=0;n=t;n--)e[n+1]=e[n];e[t]=n}function la(e,t){let n=-1,r=1e9;for(let i=0;ie.map((e=>t.replace(/&/,e))))).reduce(((e,t)=>e.concat(t))),a,o);else if(a&&"object"==typeof a){if(!l)throw new RangeError("The value of a property ("+n+") should be a primitive value.");i(r(n),a,s,c)}else null!=a&&s.push(n.replace(/_.*/,"").replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))+": "+a+";")}(s.length||c)&&o.push((!n||l||a?e:e.map(n)).join(", ")+" {"+s.join(" ")+"}")}for(let t in e)i(r(t),e[t],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=ha[ua]||1;return ha[ua]=e+1,"ͼ"+e.toString(36)}static mount(e,t){(e[da]||new ma(e)).mount(Array.isArray(t)?t:[t])}}let pa=null;class ma{constructor(e){if(!e.head&&e.adoptedStyleSheets&&"undefined"!=typeof CSSStyleSheet){if(pa)return e.adoptedStyleSheets=[pa.sheet].concat(e.adoptedStyleSheets),e[da]=pa;this.sheet=new CSSStyleSheet,e.adoptedStyleSheets=[this.sheet].concat(e.adoptedStyleSheets),pa=this}else{this.styleTag=(e.ownerDocument||e).createElement("style");let t=e.head||e;t.insertBefore(this.styleTag,t.firstChild)}this.modules=[],e[da]=this}mount(e){let t=this.sheet,n=0,r=0;for(let i=0;i-1&&(this.modules.splice(a,1),r--,a=-1),-1==a){if(this.modules.splice(r++,0,o),t)for(let e=0;e",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},ya="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent),ba=("undefined"!=typeof navigator&&/Gecko\/\d+/.test(navigator.userAgent),"undefined"!=typeof navigator&&/Mac/.test(navigator.platform)),wa="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),xa=ba||ya&&+ya[1]<57,ka=0;ka<10;ka++)ga[48+ka]=ga[96+ka]=String(ka);for(ka=1;ka<=24;ka++)ga[ka+111]="F"+ka;for(ka=65;ka<=90;ka++)ga[ka]=String.fromCharCode(ka+32),va[ka]=String.fromCharCode(ka);for(var Sa in ga)va.hasOwnProperty(Sa)||(va[Sa]=ga[Sa]);function Ca(e){let t;return t=11==e.nodeType?e.getSelection?e:e.ownerDocument:e,t.getSelection()}function ja(e,t){return!!t&&(e==t||e.contains(1!=t.nodeType?t.parentNode:t))}function Oa(e,t){if(!t.anchorNode)return!1;try{return ja(e,t.anchorNode)}catch(e){return!1}}function Ma(e){return 3==e.nodeType?Na(e,0,e.nodeValue.length).getClientRects():1==e.nodeType?e.getClientRects():[]}function Pa(e,t,n,r){return!!n&&(Aa(e,t,n,r,-1)||Aa(e,t,n,r,1))}function Ea(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}function Aa(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:Ta(e))){if("DIV"==e.nodeName)return!1;let n=e.parentNode;if(!n||1!=n.nodeType)return!1;t=Ea(e)+(i<0?0:1),e=n}else{if(1!=e.nodeType)return!1;if(1==(e=e.childNodes[t+(i<0?-1:0)]).nodeType&&"false"==e.contentEditable)return!1;t=i<0?Ta(e):0}}}function Ta(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}const _a={left:0,right:0,top:0,bottom:0};function Da(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function Ra(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}class za{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){this.set(e.anchorNode,e.anchorOffset,e.focusNode,e.focusOffset)}set(e,t,n,r){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=r}}let Ia,La=null;function $a(e){if(e.setActive)return e.setActive();if(La)return e.focus(La);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(null==La?{get preventScroll(){return La={preventScroll:!0},!0}}:void 0),!La){La=!1;for(let e=0;et)return n.domBoundsAround(e,t,l);if(u>=e&&-1==r&&(r=s,i=l),l>t&&n.dom.parentNode==this.dom){o=s,a=c;break}c=u,l=u+n.breakAfter}return{from:i,to:a<0?n+this.length:a,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o=0?this.children[o].dom:null}}markDirty(e=!1){this.dirty|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.dirty|=2),1&t.dirty)return;t.dirty|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.dirty&&this.markParentsDirty(!0))}setDOM(e){this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,n=Fa){this.markDirty();for(let n=e;nthis.pos||e==this.pos&&(t>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let n=this.children[--this.i];this.pos-=n.length+n.breakAfter}}}function Ya(e,t,n,r,i,o,a,s,l){let{children:c}=e,u=c.length?c[t]:null,d=o.length?o[o.length-1]:null,h=d?d.breakAfter:a;if(!(t==r&&u&&!a&&!h&&o.length<2&&u.merge(n,i,o.length?d:null,0==n,s,l))){if(r0&&(!a&&o.length&&u.merge(n,u.length,o[0],!1,s,0)?u.breakAfter=o.shift().breakAfter:(n2);var as={mac:os||/Mac/.test(Ga.platform),windows:/Win/.test(Ga.platform),linux:/Linux|X11/.test(Ga.platform),ie:es,ie_version:Qa?Ka.documentMode||6:Ja?+Ja[1]:Xa?+Xa[1]:0,gecko:ts,gecko_version:ts?+(/Firefox\/(\d+)/.exec(Ga.userAgent)||[0,0])[1]:0,chrome:!!ns,chrome_version:ns?+ns[1]:0,ios:os,android:/Android\b/.test(Ga.userAgent),webkit:rs,safari:is,webkit_version:rs?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=Ka.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};class ss extends Ba{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(e&&e.node==this.dom&&(e.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){3==e.nodeType&&this.createDOM(e)}merge(e,t,n){return(!n||n instanceof ss&&!(this.length-(t-e)+n.length>256))&&(this.text=this.text.slice(0,e)+(n?n.text:"")+this.text.slice(t),this.markDirty(),!0)}split(e){let t=new ss(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new Va(this.dom,e)}domBoundsAround(e,t,n){return{from:n,to:n+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return cs(this.dom,e,t)}}class ls extends Ba{constructor(e,t=[],n=0){super(),this.mark=e,this.children=t,this.length=n;for(let e of t)e.setParent(this)}setAttrs(e){if(Ha(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.dirty|=6)}sync(e){this.dom?4&this.dirty&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e)}merge(e,t,n,r,i,o){return(!n||!(!(n instanceof ls&&n.mark.eq(this.mark))||e&&i<=0||te&&t.push(n=e&&(r=i),n=a,i++}let o=this.length-e;return this.length=e,r>-1&&(this.children.length=r,this.markDirty()),new ls(this.mark,t,o)}domAtPos(e){return ms(this.dom,this.children,e)}coordsAt(e,t){return vs(this,e,t)}}function cs(e,t,n){let r=e.nodeValue.length;t>r&&(t=r);let i=t,o=t,a=0;0==t&&n<0||t==r&&n>=0?as.chrome||as.gecko||(t?(i--,a=1):o=0)?0:s.length-1];return as.safari&&!a&&0==l.width&&(l=Array.prototype.find.call(s,(e=>e.width))||l),a?Da(l,a<0):l||null}class us extends Ba{constructor(e,t,n){super(),this.widget=e,this.length=t,this.side=n,this.prevWidget=null}static create(e,t,n){return new(e.customView||us)(e,t,n)}split(e){let t=us.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(){this.dom&&this.widget.updateDOM(this.dom)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(this.editorView)),this.dom.contentEditable="false")}getSide(){return this.side}merge(e,t,n,r,i,o){return!(n&&(!(n instanceof us&&this.widget.compare(n.widget))||e>0&&i<=0||t0?n.length-1:0;r=n[t],!(e>0?0==t:t==n.length-1||r.top0?-1:1);return 0==e&&t>0||e==this.length&&t<=0?r:Da(r,0==e)}get isEditable(){return!1}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class ds extends us{domAtPos(e){let{topView:t,text:n}=this.widget;return t?hs(e,0,t,n,((e,t)=>e.domAtPos(t)),(e=>new Va(n,Math.min(e,n.nodeValue.length)))):new Va(n,Math.min(e,n.nodeValue.length))}sync(){this.setDOM(this.widget.toDOM())}localPosFromDOM(e,t){let{topView:n,text:r}=this.widget;return n?fs(e,t,n,r):Math.min(t,this.length)}ignoreMutation(){return!1}get overrideDOMText(){return null}coordsAt(e,t){let{topView:n,text:r}=this.widget;return n?hs(e,t,n,r,((e,t,n)=>e.coordsAt(t,n)),((e,t)=>cs(r,e,t))):cs(r,e,t)}destroy(){var e;super.destroy(),null===(e=this.widget.topView)||void 0===e||e.destroy()}get isEditable(){return!0}}function hs(e,t,n,r,i,o){if(n instanceof ls){for(let a of n.children){let n=ja(a.dom,r),s=n?r.nodeValue.length:a.length;if(e=0;)if(t<0?r>0:r0?-1:1);return n&&n.topt.top?{left:t.left,right:t.right,top:n.top,bottom:n.bottom}:t}get overrideDOMText(){return Si.empty}}function ms(e,t,n){let r=0;for(let i=0;ri&&n0;r--){let n=t[r-1].dom;if(n.parentNode==e)return Va.after(n)}return new Va(e,0)}function gs(e,t,n){let r,{children:i}=e;n>0&&t instanceof ls&&i.length&&(r=i[i.length-1])instanceof ls&&r.mark.eq(t.mark)?gs(r,t.children[0],n-1):(i.push(t),t.setParent(e)),e.length+=t.length}function vs(e,t,n){for(let r=0,i=0;i0?s>=t:s>t)&&(t0)){let e=0;if(s==r){if(a.getSide()<=0)continue;e=n=-a.getSide()}let i=a.coordsAt(Math.max(0,t-r),n);return e&&i?Da(i,n<0):i}r=s}let r=e.dom.lastChild;if(!r)return e.dom.getBoundingClientRect();let i=Ma(r);return i[i.length-1]||null}function ys(e,t){for(let n in e)"class"==n&&t.class?t.class+=" "+e.class:"style"==n&&t.style?t.style+=";"+e.style:t[n]=e[n];return t}function bs(e,t){if(e==t)return!0;if(!e||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(let i of n)if(-1==r.indexOf(i)||e[i]!==t[i])return!1;return!0}function ws(e,t,n){let r=null;if(t)for(let i in t)n&&i in n||e.removeAttribute(r=i);if(n)for(let i in n)t&&t[i]==n[i]||e.setAttribute(r=i,n[i]);return!!r}ss.prototype.children=us.prototype.children=ps.prototype.children=Fa;class xs{eq(e){return!1}updateDOM(e){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}ignoreEvent(e){return!0}get customView(){return null}destroy(e){}}var ks=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(ks||(ks={}));class Ss extends Yo{constructor(e,t,n,r){super(),this.startSide=e,this.endSide=t,this.widget=n,this.spec=r}get heightRelevant(){return!1}static mark(e){return new Cs(e)}static widget(e){let t=e.side||0,n=!!e.block;return t+=n?t>0?3e8:-4e8:t>0?1e8:-1e8,new Os(e,t,t,n,e.widget||null,!1)}static replace(e){let t,n,r=!!e.block;if(e.isBlockGap)t=-5e8,n=4e8;else{let{start:i,end:o}=Ms(e,r);t=(i?r?-3e8:-1:5e8)-1,n=1+(o?r?2e8:1:-6e8)}return new Os(e,t,n,r,e.widget||null,!0)}static line(e){return new js(e)}static set(e,t=!1){return Xo.of(e,t)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}Ss.none=Xo.empty;class Cs extends Ss{constructor(e){let{start:t,end:n}=Ms(e);super(t?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){return this==e||e instanceof Cs&&this.tagName==e.tagName&&this.class==e.class&&bs(this.attrs,e.attrs)}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}Cs.prototype.point=!1;class js extends Ss{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof js&&bs(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}js.prototype.mapMode=Fi.TrackBefore,js.prototype.point=!0;class Os extends Ss{constructor(e,t,n,r,i,o){super(t,n,i,e),this.block=r,this.isReplace=o,this.mapMode=r?t<=0?Fi.TrackBefore:Fi.TrackAfter:Fi.TrackDel}get type(){return this.startSide=5}eq(e){return e instanceof Os&&function(e,t){return e==t||!!(e&&t&&e.compare(t))}(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}function Ms(e,t=!1){let{inclusiveStart:n,inclusiveEnd:r}=e;return null==n&&(n=e.inclusive),null==r&&(r=e.inclusive),{start:null!=n?n:t,end:null!=r?r:t}}function Ps(e,t,n,r=0){let i=n.length-1;i>=0&&n[i]+r>=e?n[i]=Math.max(n[i],t):n.push(e,t)}Os.prototype.point=!0;class Es extends Ba{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,t,n,r,i,o){if(n){if(!(n instanceof Es))return!1;this.dom||n.transferDOM(this)}return r&&this.setDeco(n?n.attrs:null),qa(this,e,t,n?n.children:[],i,o),!0}split(e){let t=new Es;if(t.breakAfter=this.breakAfter,0==this.length)return t;let{i:n,off:r}=this.childPos(e);r&&(t.append(this.children[n].split(r),0),this.children[n].merge(r,this.children[n].length,null,!1,0,0),n++);for(let e=n;e0&&0==this.children[n-1].length;)this.children[--n].destroy();return this.children.length=n,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){bs(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){gs(this,e,t)}addLineDeco(e){let t=e.spec.attributes,n=e.spec.class;t&&(this.attrs=ys(t,this.attrs||{})),n&&(this.attrs=ys({class:n},this.attrs||{}))}domAtPos(e){return ms(this.dom,this.children,e)}reuseDOM(e){"DIV"==e.nodeName&&(this.setDOM(e),this.dirty|=6)}sync(e){var t;this.dom?4&this.dirty&&(Ha(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(ws(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e);let n=this.dom.lastChild;for(;n&&Ba.get(n)instanceof ls;)n=n.lastChild;if(!(n&&this.length&&("BR"==n.nodeName||0!=(null===(t=Ba.get(n))||void 0===t?void 0:t.isEditable)||as.ios&&this.children.some((e=>e instanceof ss))))){let e=document.createElement("BR");e.cmIgnore=!0,this.dom.appendChild(e)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let e=0;for(let t of this.children){if(!(t instanceof ss)||/[^ -~]/.test(t.text))return null;let n=Ma(t.dom);if(1!=n.length)return null;e+=n[0].width}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length}:null}coordsAt(e,t){return vs(this,e,t)}become(e){return!1}get type(){return ks.Text}static find(e,t){for(let n=0,r=0;n=t){if(i instanceof Es)return i;if(o>t)break}r=o+i.breakAfter}return null}}class As extends Ba{constructor(e,t,n){super(),this.widget=e,this.length=t,this.type=n,this.breakAfter=0,this.prevWidget=null}merge(e,t,n,r,i,o){return!(n&&(!(n instanceof As&&this.widget.compare(n.widget))||e>0&&i<=0||t0;){if(this.textOff==this.text.length){let{value:t,lineBreak:n,done:r}=this.cursor.next(this.skip);if(this.skip=0,r)throw new Error("Ran out of text content when drawing inline views");if(n){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer([]),this.curLine=null,e--;continue}this.text=t,this.textOff=0}let r=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(0,n)),this.getLine().append(_s(new ss(this.text.slice(this.textOff,this.textOff+r)),t),n),this.atCursorPos=!0,this.textOff+=r,e-=r,n=0}}span(e,t,n,r){this.buildText(t-e,n,r),this.pos=t,this.openStart<0&&(this.openStart=r)}point(e,t,n,r,i,o){if(this.disallowBlockEffectsFor[o]&&n instanceof Os){if(n.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let a=t-e;if(n instanceof Os)if(n.block){let{type:e}=n;e!=ks.WidgetAfter||this.posCovered()||this.getLine(),this.addBlockWidget(new As(n.widget||new Ds("div"),a,e))}else{let o=us.create(n.widget||new Ds("span"),a,n.startSide),s=this.atCursorPos&&!o.isEditable&&i<=r.length&&(e0),l=!o.isEditable&&(ee.some((e=>e))});class Hs{constructor(e,t="nearest",n="nearest",r=5,i=5){this.range=e,this.y=t,this.x=n,this.yMargin=r,this.xMargin=i}map(e){return e.empty?this:new Hs(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin)}}const Vs=Do.define({map:(e,t)=>e.map(t)});function Fs(e,t,n){let r=e.facet(Ls);r.length?r[0](t):window.onerror?window.onerror(String(t),n,void 0,void 0,t):n?console.error(n+":",t):console.error(t)}const Bs=no.define({combine:e=>!e.length||e[0]});let Ws=0;const Us=no.define();class Ys{constructor(e,t,n,r){this.id=e,this.create=t,this.domEventHandlers=n,this.extension=r(this)}static define(e,t){const{eventHandlers:n,provide:r,decorations:i}=t||{};return new Ys(Ws++,e,n,(e=>{let t=[Us.of(e)];return i&&t.push(Xs.of((t=>{let n=t.plugin(e);return n?i(n):Ss.none}))),r&&t.push(r(e)),t}))}static fromClass(e,t){return Ys.define((t=>new e(t)),t)}}class qs{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(t){if(Fs(e.state,t,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(e){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){Fs(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(null===(t=this.value)||void 0===t?void 0:t.destroy)try{this.value.destroy()}catch(t){Fs(e.state,t,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Gs=no.define(),Ks=no.define(),Xs=no.define(),Qs=no.define(),Js=no.define(),el=no.define();class tl{constructor(e,t,n,r){this.fromA=e,this.toA=t,this.fromB=n,this.toB=r}join(e){return new tl(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,n=this;for(;t>0;t--){let r=e[t-1];if(!(r.fromA>n.toA)){if(r.toAc)break;i+=2}if(!s)return n;new tl(s.fromA,s.toA,s.fromB,s.toB).addToSet(n),o=s.toA,a=s.toB}}}class nl{constructor(e,t,n){this.view=e,this.state=t,this.transactions=n,this.flags=0,this.startState=e.state,this.changes=Wi.empty(this.startState.doc.length);for(let e of n)this.changes=this.changes.compose(e.changes);let r=[];this.changes.iterChangedRanges(((e,t,n,i)=>r.push(new tl(e,t,n,i)))),this.changedRanges=r;let i=e.hasFocus;i!=e.inputState.notifiedFocused&&(e.inputState.notifiedFocused=i,this.flags|=1)}static create(e,t,n){return new nl(e,t,n)}get viewportChanged(){return(4&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(10&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some((e=>e.selection))}get empty(){return 0==this.flags&&0==this.transactions.length}}var rl=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(rl||(rl={}));const il=rl.LTR,ol=rl.RTL;function al(e){let t=[];for(let n=0;n=t){if(a.level==n)return o;(i<0||(0!=r?r<0?a.fromt:e[i].level>a.level))&&(i=o)}}if(i<0)throw new RangeError("Index out of range");return i}}const fl=[];function pl(e,t){let n=e.length,r=t==il?1:2,i=t==il?2:1;if(!e||1==r&&!dl.test(e))return ml(n);for(let t=0,i=r,a=r;t=0;e-=3)if(ul[e+1]==-o){let t=ul[e+2],n=2&t?r:4&t?1&t?i:r:0;n&&(fl[s]=fl[ul[e]]=n),l=e;break}}else{if(189==ul.length)break;ul[l++]=s,ul[l++]=t,ul[l++]=c}else if(2==(a=fl[s])||1==a){let e=a==r;c=e?0:1;for(let t=l-3;t>=0;t-=3){let n=ul[t+2];if(2&n)break;if(e)ul[t+2]|=2;else{if(4&n)break;ul[t+2]|=4}}}for(let e=0;et;){let e=n,r=2!=fl[--n];for(;n>t&&r==(2!=fl[n-1]);)n--;a.push(new hl(n,e,r?2:1))}else a.push(new hl(t,e,0))}else for(let e=0;e1)for(let t of this.points)t.node==e&&t.pos>this.text.length&&(t.pos-=a-1);n=o+a}}readNode(e){if(e.cmIgnore)return;let t=Ba.get(e),n=t&&t.overrideDOMText;if(null!=n){this.findPointInside(e,n.length);for(let e=n.iter();!e.next().done;)e.lineBreak?this.lineBreak():this.append(e.value)}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==t&&(n.pos=this.text.length)}findPointInside(e,t){for(let n of this.points)(3==e.nodeType?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+Math.min(t,n.offset))}}function wl(e){return 1==e.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}class xl{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class kl extends Ba{constructor(e){super(),this.view=e,this.compositionDeco=Ss.none,this.decorations=[],this.dynamicDecorationMap=[],this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new Es],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new tl(0,0,0,e.state.doc.length)],0)}get editorView(){return this.view}get length(){return this.view.state.doc.length}update(e){let t=e.changedRanges;this.minWidth>0&&t.length&&(t.every((({fromA:e,toA:t})=>tthis.minWidthTo))?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.view.inputState.composing<0?this.compositionDeco=Ss.none:(e.transactions.length||this.dirty)&&(this.compositionDeco=function(e,t){let n=Cl(e);if(!n)return Ss.none;let{from:r,to:i,node:o,text:a}=n,s=t.mapPos(r,1),l=Math.max(s,t.mapPos(i,-1)),{state:c}=e,u=3==o.nodeType?o.nodeValue:new bl([],c).readRange(o.firstChild,null).text;if(l-s{this.dom.style.height=this.view.viewState.contentHeight+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let e=as.chrome||as.ios?{node:n.selectionRange.focusNode,written:!1}:void 0;this.sync(e),this.dirty=0,e&&(e.written||n.selectionRange.focusNode!=e.node)&&(this.forceSelection=!0),this.dom.style.height=""}));let r=[];if(this.view.viewport.from||this.view.viewport.to=0?e[t]:null;if(!r)break;let{fromA:i,toA:o,fromB:a,toB:s}=r,{content:l,breakAtStart:c,openStart:u,openEnd:d}=Ts.build(this.view.state.doc,a,s,this.decorations,this.dynamicDecorationMap),{i:h,off:f}=n.findPos(o,1),{i:p,off:m}=n.findPos(i,-1);Ya(this,p,m,h,f,l,c,u,d)}}updateSelection(e=!1,t=!1){if(!e&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange(),!t&&!this.mayControlSelection()||as.ios&&this.view.inputState.rapidCompositionStart)return;let n=this.forceSelection;this.forceSelection=!1;let r=this.view.state.selection.main,i=this.domAtPos(r.anchor),o=r.empty?i:this.domAtPos(r.head);if(as.gecko&&r.empty&&(1==(a=i).node.nodeType&&a.node.firstChild&&(0==a.offset||"false"==a.node.childNodes[a.offset-1].contentEditable)&&(a.offset==a.node.childNodes.length||"false"==a.node.childNodes[a.offset].contentEditable))){let e=document.createTextNode("");this.view.observer.ignore((()=>i.node.insertBefore(e,i.node.childNodes[i.offset]||null))),i=o=new Va(e,0),n=!0}var a;let s=this.view.observer.selectionRange;!n&&s.focusNode&&Pa(i.node,i.offset,s.anchorNode,s.anchorOffset)&&Pa(o.node,o.offset,s.focusNode,s.focusOffset)||(this.view.observer.ignore((()=>{as.android&&as.chrome&&this.dom.contains(s.focusNode)&&function(e,t){for(let n=e;n&&n!=t;n=n.assignedSlot||n.parentNode)if(1==n.nodeType&&"false"==n.contentEditable)return!0;return!1}(s.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let e=Ca(this.view.root);if(e)if(r.empty){if(as.gecko){let e=function(e,t){return 1!=e.nodeType?0:(t&&"false"==e.childNodes[t-1].contentEditable?1:0)|(tr.head&&([i,o]=[o,i]),t.setEnd(o.node,o.offset),t.setStart(i.node,i.offset),e.removeAllRanges(),e.addRange(t)}else;})),this.view.observer.setSelectionRange(i,o)),this.impreciseAnchor=i.precise?null:new Va(s.anchorNode,s.anchorOffset),this.impreciseHead=o.precise?null:new Va(s.focusNode,s.focusOffset)}enforceCursorAssoc(){if(this.compositionDeco.size)return;let e=this.view.state.selection.main,t=Ca(this.view.root);if(!(t&&e.empty&&e.assoc&&t.modify))return;let n=Es.find(this,e.head);if(!n)return;let r=n.posAtStart;if(e.head==r||e.head==r+n.length)return;let i=this.coordsAt(e.head,-1),o=this.coordsAt(e.head,1);if(!i||!o||i.bottom>o.top)return;let a=this.domAtPos(e.head+e.assoc);t.collapse(a.node,a.offset),t.modify("move",e.assoc<0?"forward":"backward","lineboundary")}mayControlSelection(){let e=this.view.root.activeElement;return e==this.dom||Oa(this.dom,this.view.observer.selectionRange)&&!(e&&this.dom.contains(e))}nearest(e){for(let t=e;t;){let e=Ba.get(t);if(e&&e.rootView==this)return e;t=t.parentNode}return null}posFromDOM(e,t){let n=this.nearest(e);if(!n)throw new RangeError("Trying to find position for a DOM position outside of the document");return n.localPosFromDOM(e,t)+n.posAtStart}domAtPos(e){let{i:t,off:n}=this.childCursor().findPos(e,-1);for(;to||e==o&&i.type!=ks.WidgetBefore&&i.type!=ks.WidgetAfter&&(!r||2==t||this.children[r-1].breakAfter||this.children[r-1].type==ks.WidgetBefore&&t>-2))return i.coordsAt(e-o,t);n=o}}measureVisibleLineHeights(e){let t=[],{from:n,to:r}=e,i=this.view.contentDOM.clientWidth,o=i>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,a=-1,s=this.view.textDirection==rl.LTR;for(let e=0,l=0;lr)break;if(e>=n){let n=c.dom.getBoundingClientRect();if(t.push(n.height),o){let t=c.dom.lastChild,r=t?Ma(t):[];if(r.length){let t=r[r.length-1],o=s?t.right-n.left:n.right-t.left;o>a&&(a=o,this.minWidth=i,this.minWidthFrom=e,this.minWidthTo=u)}}}e=u+c.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return"rtl"==getComputedStyle(this.children[t].dom).direction?rl.RTL:rl.LTR}measureTextSize(){for(let e of this.children)if(e instanceof Es){let t=e.measureTextSize();if(t)return t}let e,t,n=document.createElement("div");return n.className="cm-line",n.style.width="99999px",n.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore((()=>{this.dom.appendChild(n);let r=Ma(n.firstChild)[0];e=n.getBoundingClientRect().height,t=r?r.width/27:7,n.remove()})),{lineHeight:e,charWidth:t}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new Ua(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let n=0,r=0;;r++){let i=r==t.viewports.length?null:t.viewports[r],o=i?i.from-1:this.length;if(o>n){let r=t.lineBlockAt(o).bottom-t.lineBlockAt(n).top;e.push(Ss.replace({widget:new Sl(r),block:!0,inclusive:!0,isBlockGap:!0}).range(n,o))}if(!i)break;n=i.to+1}return Ss.set(e)}updateDeco(){let e=this.view.state.facet(Xs).map(((e,t)=>(this.dynamicDecorationMap[t]="function"==typeof e)?e(this.view):e));for(let t=e.length;tn.anchor?-1:1);if(!r)return;!n.empty&&(t=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={left:Math.min(r.left,t.left),top:Math.min(r.top,t.top),right:Math.max(r.right,t.right),bottom:Math.max(r.bottom,t.bottom)});let i=0,o=0,a=0,s=0;for(let e of this.view.state.facet(Js).map((e=>e(this.view))))if(e){let{left:t,right:n,top:r,bottom:l}=e;null!=t&&(i=Math.max(i,t)),null!=n&&(o=Math.max(o,n)),null!=r&&(a=Math.max(a,r)),null!=l&&(s=Math.max(s,l))}let l={left:r.left-i,top:r.top-a,right:r.right+o,bottom:r.bottom+s};!function(e,t,n,r,i,o,a,s){let l=e.ownerDocument,c=l.defaultView;for(let u=e;u;)if(1==u.nodeType){let e,d=u==l.body;if(d)e=Ra(c);else{if(u.scrollHeight<=u.clientHeight&&u.scrollWidth<=u.clientWidth){u=u.parentNode;continue}let t=u.getBoundingClientRect();e={left:t.left,right:t.left+u.clientWidth,top:t.top,bottom:t.top+u.clientHeight}}let h=0,f=0;if("nearest"==i)t.top0&&t.bottom>e.bottom+f&&(f=t.bottom-e.bottom+f+a)):t.bottom>e.bottom&&(f=t.bottom-e.bottom+a,n<0&&t.top-f0&&t.right>e.right+h&&(h=t.right-e.right+h+o)):t.right>e.right&&(h=t.right-e.right+o,n<0&&t.left0&&n<=0)t=Ta(e=e.childNodes[t-1]);else{if(!(1==e.nodeType&&t=0))return null;e=e.childNodes[t],t=0}}}class Ml{constructor(){this.changes=[]}compareRange(e,t){Ps(e,t,this.changes)}comparePoint(e,t){Ps(e,t,this.changes)}}function Pl(e,t){return t.left>e?t.left-e:Math.max(0,e-t.right)}function El(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function Al(e,t){return e.topt.top+1}function Tl(e,t){return te.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function Dl(e,t,n){let r,i,o,a,s,l,c,u,d=!1;for(let h=e.firstChild;h;h=h.nextSibling){let e=Ma(h);for(let f=0;fg||a==g&&o>m)&&(r=h,i=p,o=m,a=g,d=!m||(m>0?f0)),0==m?n>p.bottom&&(!c||c.bottomp.top)&&(l=h,u=p):c&&Al(c,p)?c=_l(c,p.bottom):u&&Al(u,p)&&(u=Tl(u,p.top))}}if(c&&c.bottom>=n?(r=s,i=c):u&&u.top<=n&&(r=l,i=u),!r)return{node:e,offset:0};let h=Math.max(i.left,Math.min(i.right,t));return 3==r.nodeType?Rl(r,h,n):d&&"false"!=r.contentEditable?Dl(r,h,n):{node:e,offset:Array.prototype.indexOf.call(e.childNodes,r)+(t>=(i.left+i.right)/2?1:0)}}function Rl(e,t,n){let r=e.nodeValue.length,i=-1,o=1e9,a=0;for(let s=0;sn?c.top-n:n-c.bottom)-1;if(c.left-1<=t&&c.right+1>=t&&u=(c.left+c.right)/2,r=n;if(as.chrome||as.gecko){Na(e,s).getBoundingClientRect().left==c.right&&(r=!n)}if(u<=0)return{node:e,offset:s+(r?1:0)};i=s+(r?1:0),o=u}}}return{node:e,offset:i>-1?i:a>0?e.nodeValue.length:0}}function zl(e,{x:t,y:n},r,i=-1){var o;let a,s=e.contentDOM.getBoundingClientRect(),l=s.top+e.viewState.paddingTop,{docHeight:c}=e.viewState,u=n-l;if(u<0)return 0;if(u>c)return e.state.doc.length;for(let t=e.defaultLineHeight/2,n=!1;a=e.elementAtHeight(u),a.type!=ks.Text;)for(;u=i>0?a.bottom+t:a.top-t,!(u>=0&&u<=c);){if(n)return r?null:0;n=!0,i=-i}n=l+u;let d=a.from;if(de.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:r?null:Il(e,s,a,t,n);let h=e.dom.ownerDocument,f=e.root.elementFromPoint?e.root:h,p=f.elementFromPoint(t,n);p&&!e.contentDOM.contains(p)&&(p=null),p||(t=Math.max(s.left+1,Math.min(s.right-1,t)),p=f.elementFromPoint(t,n),p&&!e.contentDOM.contains(p)&&(p=null));let m,g=-1;if(p&&0!=(null===(o=e.docView.nearest(p))||void 0===o?void 0:o.isEditable))if(h.caretPositionFromPoint){let e=h.caretPositionFromPoint(t,n);e&&({offsetNode:m,offset:g}=e)}else if(h.caretRangeFromPoint){let r=h.caretRangeFromPoint(t,n);r&&(({startContainer:m,startOffset:g}=r),(!e.contentDOM.contains(m)||as.safari&&function(e,t,n){let r;if(3!=e.nodeType||t!=(r=e.nodeValue.length))return!1;for(let t=e.nextSibling;t;t=t.nextSibling)if(1!=t.nodeType||"BR"!=t.nodeName)return!1;return Na(e,r-1,r).getBoundingClientRect().left>n}(m,g,t)||as.chrome&&function(e,t,n){if(0!=t)return!1;for(let t=e;;){let e=t.parentNode;if(!e||1!=e.nodeType||e.firstChild!=t)return!1;if(e.classList.contains("cm-line"))break;t=e}let r=1==e.nodeType?e.getBoundingClientRect():Na(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect();return n-r.left>5}(m,g,t))&&(m=void 0))}if(!m||!e.docView.dom.contains(m)){let r=Es.find(e.docView,d);if(!r)return u>a.top+a.height/2?a.to:a.from;({node:m,offset:g}=Dl(r.dom,t,n))}return e.docView.posFromDOM(m,g)}function Il(e,t,n,r,i){let o=Math.round((r-t.left)*e.defaultCharacterWidth);if(e.lineWrapping&&n.height>1.5*e.defaultLineHeight){o+=Math.floor((i-n.top)/e.defaultLineHeight)*e.viewState.heightOracle.lineLength}let a=e.state.sliceDoc(n.from,n.to);return n.from+function(e,t,n,r){for(let r=0,i=0;;){if(i>=t)return r;if(r==e.length)break;i+=9==e.charCodeAt(r)?n-i%n:1,r=zi(e,r)}return!0===r?-1:e.length}(a,o,e.state.tabSize)}function Ll(e,t,n,r){let i=e.state.doc.lineAt(t.head),o=e.bidiSpans(i),a=e.textDirectionAt(i.from);for(let s=t,l=null;;){let t=vl(i,o,a,s,n),c=gl;if(!t){if(i.number==(n?e.state.doc.lines:1))return s;c="\n",i=e.state.doc.line(i.number+(n?1:-1)),o=e.bidiSpans(i),t=Ji.cursor(n?i.from:i.to)}if(l){if(!l(c))return s}else{if(!r)return t;l=r(c)}s=t}}function $l(e,t,n){let r=e.state.facet(Qs).map((t=>t(e)));for(;;){let e=!1;for(let i of r)i.between(n.from-1,n.from+1,((r,i,o)=>{n.from>r&&n.fromn.from?Ji.cursor(r,1):Ji.cursor(i,-1),e=!0)}));if(!e)return n}}class Nl{constructor(e){this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.chromeScrollHack=-1,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.registeredEvents=[],this.customHandlers=[],this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.rapidCompositionStart=!1,this.mouseSelection=null;for(let t in Bl){let n=Bl[t];e.contentDOM.addEventListener(t,(r=>{Fl(e,r)&&!this.ignoreDuringComposition(r)&&("keydown"==t&&this.keydown(e,r)||(this.mustFlushObserver(r)&&e.observer.forceFlush(),this.runCustomHandlers(t,e,r)?r.preventDefault():n(e,r)))}),Wl[t]),this.registeredEvents.push(t)}as.chrome&&102==as.chrome_version&&e.scrollDOM.addEventListener("wheel",(()=>{this.chromeScrollHack<0?e.contentDOM.style.pointerEvents="none":window.clearTimeout(this.chromeScrollHack),this.chromeScrollHack=setTimeout((()=>{this.chromeScrollHack=-1,e.contentDOM.style.pointerEvents=""}),100)}),{passive:!0}),this.notifiedFocused=e.hasFocus,as.safari&&e.contentDOM.addEventListener("input",(()=>null))}setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}ensureHandlers(e,t){var n;let r;this.customHandlers=[];for(let i of t)if(r=null===(n=i.update(e).spec)||void 0===n?void 0:n.domEventHandlers){this.customHandlers.push({plugin:i.value,handlers:r});for(let t in r)this.registeredEvents.indexOf(t)<0&&"scroll"!=t&&(this.registeredEvents.push(t),e.contentDOM.addEventListener(t,(n=>{Fl(e,n)&&this.runCustomHandlers(t,e,n)&&n.preventDefault()})))}}runCustomHandlers(e,t,n){for(let r of this.customHandlers){let i=r.handlers[e];if(i)try{if(i.call(r.plugin,n,t)||n.defaultPrevented)return!0}catch(e){Fs(t.state,e)}}return!1}runScrollHandlers(e,t){this.lastScrollTop=e.scrollDOM.scrollTop,this.lastScrollLeft=e.scrollDOM.scrollLeft;for(let n of this.customHandlers){let r=n.handlers.scroll;if(r)try{r.call(n.plugin,t,e)}catch(t){Fs(e.state,t)}}}keydown(e,t){if(this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),9==t.keyCode&&Date.now()e.keyCode==t.keyCode)))||t.ctrlKey||t.altKey||t.metaKey||t.synthetic)&&(this.pendingIOSKey=n,setTimeout((()=>this.flushIOSKey(e)),250),!0)}flushIOSKey(e){let t=this.pendingIOSKey;return!!t&&(this.pendingIOSKey=void 0,Za(e.contentDOM,t.key,t.keyCode))}ignoreDuringComposition(e){return!!/^key/.test(e.type)&&(this.composing>0||!!(as.safari&&!as.ios&&Date.now()-this.compositionEndedAt<100)&&(this.compositionEndedAt=0,!0))}mustFlushObserver(e){return"keydown"==e.type&&229!=e.keyCode||"compositionend"==e.type&&!as.ios}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}const Zl=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Hl=[16,17,18,20,91,92,224,225];class Vl{constructor(e,t,n,r){this.view=e,this.style=n,this.mustSelect=r,this.lastEvent=t;let i=e.contentDOM.ownerDocument;i.addEventListener("mousemove",this.move=this.move.bind(this)),i.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(Wo.allowMultipleSelections)&&function(e,t){let n=e.state.facet(Rs);return n.length?n[0](t):as.mac?t.metaKey:t.ctrlKey}(e,t),this.dragMove=function(e,t){let n=e.state.facet(zs);return n.length?n[0](t):as.mac?!t.altKey:!t.ctrlKey}(e,t),this.dragging=!(!function(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=Ca(e.root);if(!r||0==r.rangeCount)return!0;let i=r.getRangeAt(0).getClientRects();for(let e=0;e=t.clientX&&n.top<=t.clientY&&n.bottom>=t.clientY)return!0}return!1}(e,t)||1!=rc(t))&&null,!1===this.dragging&&(t.preventDefault(),this.select(t))}move(e){if(0==e.buttons)return this.destroy();!1===this.dragging&&this.select(this.lastEvent=e)}up(e){null==this.dragging&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}select(e){let t=this.style.get(e,this.extend,this.multiple);!this.mustSelect&&t.eq(this.view.state.selection)&&t.main.assoc==this.view.state.selection.main.assoc||this.view.dispatch({selection:t,userEvent:"select.pointer",scrollIntoView:!0}),this.mustSelect=!1}update(e){e.docChanged&&this.dragging&&(this.dragging=this.dragging.map(e.changes)),this.style.update(e)&&setTimeout((()=>this.select(this.lastEvent)),20)}}function Fl(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n,r=t.target;r!=e.contentDOM;r=r.parentNode)if(!r||11==r.nodeType||(n=Ba.get(r))&&n.ignoreEvent(t))return!1;return!0}const Bl=Object.create(null),Wl=Object.create(null),Ul=as.ie&&as.ie_version<15||as.ios&&as.webkit_version<604;function Yl(e,t){let n,{state:r}=e,i=1,o=r.toText(t),a=o.lines==r.selection.ranges.length,s=null!=oc&&r.selection.ranges.every((e=>e.empty))&&oc==o.toString();if(s){let e=-1;n=r.changeByRange((n=>{let s=r.doc.lineAt(n.from);if(s.from==e)return{range:n};e=s.from;let l=r.toText((a?o.line(i++).text:t)+r.lineBreak);return{changes:{from:s.from,insert:l},range:Ji.cursor(n.from+l.length)}}))}else n=a?r.changeByRange((e=>{let t=o.line(i++);return{changes:{from:e.from,to:e.to,insert:t.text},range:Ji.cursor(e.from+t.length)}})):r.replaceSelection(o);e.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}function ql(e,t,n,r){if(1==r)return Ji.cursor(t,n);if(2==r)return function(e,t,n=1){let r=e.charCategorizer(t),i=e.doc.lineAt(t),o=t-i.from;if(0==i.length)return Ji.cursor(t);0==o?n=1:o==i.length&&(n=-1);let a=o,s=o;n<0?a=zi(i.text,o,!1):s=zi(i.text,o);let l=r(i.text.slice(a,s));for(;a>0;){let e=zi(i.text,a,!1);if(r(i.text.slice(e,a))!=l)break;a=e}for(;s{e.inputState.setSelectionOrigin("select"),27==t.keyCode?e.inputState.lastEscPress=Date.now():Hl.indexOf(t.keyCode)<0&&(e.inputState.lastEscPress=0)},Bl.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")},Bl.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")},Wl.touchstart=Wl.touchmove={passive:!0},Bl.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3&&1==rc(t))return;let n=null;for(let r of e.state.facet(Is))if(n=r(e,t),n)break;if(n||0!=t.button||(n=function(e,t){let n=Ql(e,t),r=rc(t),i=e.state.selection,o=n,a=t;return{update(e){e.docChanged&&(n&&(n.pos=e.changes.mapPos(n.pos)),i=i.map(e.changes),a=null)},get(t,s,l){let c;if(a&&t.clientX==a.clientX&&t.clientY==a.clientY?c=o:(c=o=Ql(e,t),a=t),!c||!n)return i;let u=ql(e,c.pos,c.bias,r);if(n.pos!=c.pos&&!s){let t=ql(e,n.pos,n.bias,r),i=Math.min(t.from,u.from),o=Math.max(t.to,u.to);u=i1&&i.ranges.some((e=>e.eq(u)))?function(e,t){for(let n=0;;n++)if(e.ranges[n].eq(t))return Ji.create(e.ranges.slice(0,n).concat(e.ranges.slice(n+1)),e.mainIndex==n?0:e.mainIndex-(e.mainIndex>n?1:0))}(i,u):l?i.addRange(u):Ji.create([u])}}}(e,t)),n){let r=e.root.activeElement!=e.contentDOM;r&&e.observer.ignore((()=>$a(e.contentDOM))),e.inputState.startMouseSelection(new Vl(e,t,n,r))}};let Gl=(e,t)=>e>=t.top&&e<=t.bottom,Kl=(e,t,n)=>Gl(t,n)&&e>=n.left&&e<=n.right;function Xl(e,t,n,r){let i=Es.find(e.docView,t);if(!i)return 1;let o=t-i.posAtStart;if(0==o)return 1;if(o==i.length)return-1;let a=i.coordsAt(o,-1);if(a&&Kl(n,r,a))return-1;let s=i.coordsAt(o,1);return s&&Kl(n,r,s)?1:a&&Gl(r,a)?-1:1}function Ql(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:Xl(e,n,t.clientX,t.clientY)}}const Jl=as.ie&&as.ie_version<=11;let ec=null,tc=0,nc=0;function rc(e){if(!Jl)return e.detail;let t=ec,n=nc;return ec=e,nc=Date.now(),tc=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(tc+1)%3:1}function ic(e,t,n,r){if(!n)return;let i=e.posAtCoords({x:t.clientX,y:t.clientY},!1);t.preventDefault();let{mouseSelection:o}=e.inputState,a=r&&o&&o.dragging&&o.dragMove?{from:o.dragging.from,to:o.dragging.to}:null,s={from:i,insert:n},l=e.state.changes(a?[a,s]:s);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:a?"move.drop":"input.drop"})}Bl.dragstart=(e,t)=>{let{selection:{main:n}}=e.state,{mouseSelection:r}=e.inputState;r&&(r.dragging=n),t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(n.from,n.to)),t.dataTransfer.effectAllowed="copyMove")},Bl.drop=(e,t)=>{if(!t.dataTransfer)return;if(e.state.readOnly)return t.preventDefault();let n=t.dataTransfer.files;if(n&&n.length){t.preventDefault();let r=Array(n.length),i=0,o=()=>{++i==n.length&&ic(e,t,r.filter((e=>null!=e)).join(e.state.lineBreak),!1)};for(let e=0;e{/[\x00-\x08\x0e-\x1f]{2}/.test(t.result)||(r[e]=t.result),o()},t.readAsText(n[e])}}else ic(e,t,t.dataTransfer.getData("Text"),!0)},Bl.paste=(e,t)=>{if(e.state.readOnly)return t.preventDefault();e.observer.flush();let n=Ul?null:t.clipboardData;n?(Yl(e,n.getData("text/plain")),t.preventDefault()):function(e){let t=e.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout((()=>{e.focus(),n.remove(),Yl(e,n.value)}),50)}(e)};let oc=null;function ac(e){setTimeout((()=>{e.hasFocus!=e.inputState.notifiedFocused&&e.update([])}),10)}function sc(e,t){if(e.docView.compositionDeco.size){e.inputState.rapidCompositionStart=t;try{e.update([])}finally{e.inputState.rapidCompositionStart=!1}}}Bl.copy=Bl.cut=(e,t)=>{let{text:n,ranges:r,linewise:i}=function(e){let t=[],n=[],r=!1;for(let r of e.selection.ranges)r.empty||(t.push(e.sliceDoc(r.from,r.to)),n.push(r));if(!t.length){let i=-1;for(let{from:r}of e.selection.ranges){let o=e.doc.lineAt(r);o.number>i&&(t.push(o.text),n.push({from:o.from,to:Math.min(e.doc.length,o.to+1)})),i=o.number}r=!0}return{text:t.join(e.lineBreak),ranges:n,linewise:r}}(e.state);if(!n&&!i)return;oc=i?n:null;let o=Ul?null:t.clipboardData;o?(t.preventDefault(),o.clearData(),o.setData("text/plain",n)):function(e,t){let n=e.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=t,r.focus(),r.selectionEnd=t.length,r.selectionStart=0,setTimeout((()=>{r.remove(),e.focus()}),50)}(e,n),"cut"!=t.type||e.state.readOnly||e.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"})},Bl.focus=e=>{e.inputState.lastFocusTime=Date.now(),e.scrollDOM.scrollTop||!e.inputState.lastScrollTop&&!e.inputState.lastScrollLeft||(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),ac(e)},Bl.blur=e=>{e.observer.clearSelectionRange(),ac(e)},Bl.compositionstart=Bl.compositionupdate=e=>{null==e.inputState.compositionFirstChange&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0,e.docView.compositionDeco.size&&(e.observer.flush(),sc(e,!0)))},Bl.compositionend=e=>{e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionFirstChange=null,setTimeout((()=>{e.inputState.composing<0&&sc(e,!1)}),50)},Bl.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()},Bl.beforeinput=(e,t)=>{var n;let r;if(as.chrome&&as.android&&(r=Zl.find((e=>e.inputType==t.inputType)))&&(e.observer.delayAndroidKey(r.key,r.keyCode),"Backspace"==r.key||"Delete"==r.key)){let t=(null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0;setTimeout((()=>{var n;((null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0)>t+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())}),100)}};const lc=["pre-wrap","normal","pre-line","break-spaces"];class cc{constructor(){this.doc=Si.empty,this.lineWrapping=!1,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.lineLength=30,this.heightChanged=!1}heightForGap(e,t){let n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength)),this.lineHeight*n}heightForLine(e){if(!this.lineWrapping)return this.lineHeight;return(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return lc.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let n=0;n-1,a=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=o;if(this.lineWrapping=o,this.lineHeight=t,this.charWidth=n,this.lineLength=r,a){this.heightSamples={};for(let e=0;e0}set outdated(e){this.flags=(e?2:0)|-3&this.flags}setHeight(e,t){this.height!=t&&(Math.abs(this.height-t)>fc&&(e.heightChanged=!0),this.height=t)}replace(e,t,n){return pc.of(n)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,n,r){let i=this;for(let o=r.length-1;o>=0;o--){let{fromA:a,toA:s,fromB:l,toB:c}=r[o],u=i.lineAt(a,hc.ByPosNoHeight,t,0,0),d=u.to>=s?u:i.lineAt(s,hc.ByPosNoHeight,t,0,0);for(c+=d.to-s,s=d.to;o>0&&u.from<=r[o-1].toA;)a=r[o-1].fromA,l=r[o-1].fromB,o--,a2*i){let i=e[t-1];i.break?e.splice(--t,1,i.left,null,i.right):e.splice(--t,1,i.left,i.right),n+=1+i.break,r-=i.size}else{if(!(i>2*r))break;{let t=e[n];t.break?e.splice(n,1,t.left,null,t.right):e.splice(n,1,t.left,t.right),n+=2+t.break,i-=t.size}}else if(r=i&&o(this.blockAt(0,n,r,i))}updateHeight(e,t=0,n=!1,r){return r&&r.from<=t&&r.more&&this.setHeight(e,r.heights[r.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class gc extends mc{constructor(e,t){super(e,t,ks.Text),this.collapsed=0,this.widgetHeight=0}replace(e,t,n){let r=n[0];return 1==n.length&&(r instanceof gc||r instanceof vc&&4&r.flags)&&Math.abs(this.length-r.length)<10?(r instanceof vc?r=new gc(r.length,this.height):r.height=this.height,this.outdated||(r.outdated=!1),r):pc.of(n)}updateHeight(e,t=0,n=!1,r){return r&&r.from<=t&&r.more?this.setHeight(e,r.heights[r.index++]):(n||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class vc extends pc{constructor(e){super(e,0)}lines(e,t){let n=e.lineAt(t).number,r=e.lineAt(t+this.length).number;return{firstLine:n,lastLine:r,lineHeight:this.height/(r-n+1)}}blockAt(e,t,n,r){let{firstLine:i,lastLine:o,lineHeight:a}=this.lines(t,r),s=Math.max(0,Math.min(o-i,Math.floor((e-n)/a))),{from:l,length:c}=t.line(i+s);return new dc(l,c,n+a*s,a,ks.Text)}lineAt(e,t,n,r,i){if(t==hc.ByHeight)return this.blockAt(e,n,r,i);if(t==hc.ByPosNoHeight){let{from:t,to:r}=n.lineAt(e);return new dc(t,r-t,0,0,ks.Text)}let{firstLine:o,lineHeight:a}=this.lines(n,i),{from:s,length:l,number:c}=n.lineAt(e);return new dc(s,l,r+a*(c-o),a,ks.Text)}forEachLine(e,t,n,r,i,o){let{firstLine:a,lineHeight:s}=this.lines(n,i);for(let l=Math.max(e,i),c=Math.min(i+this.length,t);l<=c;){let t=n.lineAt(l);l==e&&(r+=s*(t.number-a)),o(new dc(t.from,t.length,r,s,ks.Text)),r+=s,l=t.to+1}}replace(e,t,n){let r=this.length-t;if(r>0){let e=n[n.length-1];e instanceof vc?n[n.length-1]=new vc(e.length+r):n.push(null,new vc(r-1))}if(e>0){let t=n[0];t instanceof vc?n[0]=new vc(e+t.length):n.unshift(new vc(e-1),null)}return pc.of(n)}decomposeLeft(e,t){t.push(new vc(e-1),null)}decomposeRight(e,t){t.push(null,new vc(this.length-e-1))}updateHeight(e,t=0,n=!1,r){let i=t+this.length;if(r&&r.from<=t+this.length&&r.more){let n=[],o=Math.max(t,r.from),a=-1,s=e.heightChanged;for(r.from>t&&n.push(new vc(r.from-t-1).updateHeight(e,t));o<=i&&r.more;){let t=e.doc.lineAt(o).length;n.length&&n.push(null);let i=r.heights[r.index++];-1==a?a=i:Math.abs(i-a)>=fc&&(a=-2);let s=new gc(t,i);s.outdated=!1,n.push(s),o+=t+1}o<=i&&n.push(null,new vc(i-o).updateHeight(e,o));let l=pc.of(n);return e.heightChanged=s||a<0||Math.abs(l.height-this.height)>=fc||Math.abs(a-this.lines(e.doc,t).lineHeight)>=fc,l}return(n||this.outdated)&&(this.setHeight(e,e.heightForGap(t,t+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class yc extends pc{constructor(e,t,n){super(e.length+t+n.length,e.height+n.height,t|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return 1&this.flags}blockAt(e,t,n,r){let i=n+this.left.height;return ea))return l;let c=t==hc.ByPosNoHeight?hc.ByPosNoHeight:hc.ByPos;return s?l.join(this.right.lineAt(a,c,n,o,a)):this.left.lineAt(a,c,n,r,i).join(l)}forEachLine(e,t,n,r,i,o){let a=r+this.left.height,s=i+this.left.length+this.break;if(this.break)e=s&&this.right.forEachLine(e,t,n,a,s,o);else{let l=this.lineAt(s,hc.ByPos,n,r,i);e=e&&l.from<=t&&o(l),t>l.to&&this.right.forEachLine(l.to+1,t,n,a,s,o)}}replace(e,t,n){let r=this.left.length+this.break;if(tthis.left.length)return this.balanced(this.left,this.right.replace(e-r,t-r,n));let i=[];e>0&&this.decomposeLeft(e,i);let o=i.length;for(let e of n)i.push(e);if(e>0&&bc(i,o-1),t=n&&t.push(null)),e>n&&this.right.decomposeLeft(e-n,t)}decomposeRight(e,t){let n=this.left.length,r=n+this.break;if(e>=r)return this.right.decomposeRight(e-r,t);e2*t.size||t.size>2*e.size?pc.of(this.break?[e,null,t]:[e,t]):(this.left=e,this.right=t,this.height=e.height+t.height,this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,n=!1,r){let{left:i,right:o}=this,a=t+i.length+this.break,s=null;return r&&r.from<=t+i.length&&r.more?s=i=i.updateHeight(e,t,n,r):i.updateHeight(e,t,n),r&&r.from<=a+o.length&&r.more?s=o=o.updateHeight(e,a,n,r):o.updateHeight(e,a,n),s?this.balanced(i,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function bc(e,t){let n,r;null==e[t]&&(n=e[t-1])instanceof vc&&(r=e[t+1])instanceof vc&&e.splice(t-1,3,new vc(n.length+1+r.length))}class wc{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let e=Math.min(t,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof gc?n.length+=e-this.pos:(e>this.pos||!this.isCovered)&&this.nodes.push(new gc(e-this.pos,-1)),this.writtenTo=e,t>e&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,n){if(e=5)&&this.addLineDeco(r,i)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenToe&&this.nodes.push(new gc(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let n=new vc(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof gc)return e;let t=new gc(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine(),e.type!=ks.WidgetAfter||this.isCovered||this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,e.type!=ks.WidgetBefore&&(this.covering=e)}addLineDeco(e,t){let n=this.ensureLine();n.length+=t,n.collapsed+=t,n.widgetHeight=Math.max(n.widgetHeight,e),this.writtenTo=this.pos=this.pos+t}finish(e){let t=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||t instanceof gc||this.isCovered?(this.writtenTon.clientHeight||n.scrollWidth>n.clientWidth)&&"visible"!=s.overflow){let s=n.getBoundingClientRect();r=Math.max(r,s.left),i=Math.min(i,s.right),o=Math.max(o,s.top),a=t==e.parentNode?s.bottom:Math.min(a,s.bottom)}t="absolute"==s.position||"fixed"==s.position?n.offsetParent:n.parentNode}else{if(11!=t.nodeType)break;t=t.host}return{left:r-n.left,right:Math.max(r,i)-n.left,top:o-(n.top+t),bottom:Math.max(o,a)-(n.top+t)}}function Sc(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class Cc{constructor(e,t,n){this.from=e,this.to=t,this.size=n}static same(e,t){if(e.length!=t.length)return!1;for(let n=0;n"function"!=typeof e)),this.heightMap=pc.empty().applyChanges(this.stateDeco,Si.empty,this.heightOracle.setDoc(e.doc),[new tl(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Ss.set(this.lineGaps.map((e=>e.draw(!1)))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let n=0;n<=1;n++){let r=n?t.head:t.anchor;if(!e.some((({from:e,to:t})=>r>=e&&r<=t))){let{from:t,to:n}=this.lineBlockAt(r);e.push(new Mc(t,n))}}this.viewports=e.sort(((e,t)=>e.from-t.from)),this.scaler=this.heightMap.height<=7e6?Dc:new Rc(this.heightOracle.doc,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.state.doc,0,0,(e=>{this.viewportLines.push(1==this.scaler.scale?e:zc(e,this.scaler))}))}update(e,t=null){this.state=e.state;let n=this.stateDeco;this.stateDeco=this.state.facet(Xs).filter((e=>"function"!=typeof e));let r=e.changedRanges,i=tl.extendWithRanges(r,function(e,t,n){let r=new xc;return Xo.compare(e,t,n,r,0),r.changes}(n,this.stateDeco,e?e.changes:Wi.empty(this.state.doc.length))),o=this.heightMap.height;this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),i),this.heightMap.height!=o&&(e.flags|=2);let a=i.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.heada.to)||!this.viewportIsAppropriate(a))&&(a=this.getViewport(0,t));let s=!e.changes.empty||2&e.flags||a.from!=this.viewport.from||a.to!=this.viewport.to;this.viewport=a,this.updateForViewport(),s&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,n=window.getComputedStyle(t),r=this.heightOracle,i=n.whiteSpace;this.defaultTextDirection="rtl"==n.direction?rl.RTL:rl.LTR;let o=this.heightOracle.mustRefreshForWrapping(i),a=o||this.mustMeasureContent||this.contentDOMHeight!=t.clientHeight;this.contentDOMHeight=t.clientHeight,this.mustMeasureContent=!1;let s=0,l=0,c=parseInt(n.paddingTop)||0,u=parseInt(n.paddingBottom)||0;this.paddingTop==c&&this.paddingBottom==u||(this.paddingTop=c,this.paddingBottom=u,s|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(r.lineWrapping&&(a=!0),this.editorWidth=e.scrollDOM.clientWidth,s|=8);let d=(this.printing?Sc:kc)(t,this.paddingTop),h=d.top-this.pixelViewport.top,f=d.bottom-this.pixelViewport.bottom;this.pixelViewport=d;let p=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(p!=this.inView&&(this.inView=p,p&&(a=!0)),!this.inView)return 0;let m=t.clientWidth;if(this.contentDOMWidth==m&&this.editorHeight==e.scrollDOM.clientHeight||(this.contentDOMWidth=m,this.editorHeight=e.scrollDOM.clientHeight,s|=8),a){let t=e.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(t)&&(o=!0),o||r.lineWrapping&&Math.abs(m-this.contentDOMWidth)>r.charWidth){let{lineHeight:n,charWidth:a}=e.docView.measureTextSize();o=r.refresh(i,n,a,m/a,t),o&&(e.docView.minWidth=0,s|=8)}h>0&&f>0?l=Math.max(h,f):h<0&&f<0&&(l=Math.min(h,f)),r.heightChanged=!1;for(let n of this.viewports){let i=n.from==this.viewport.from?t:e.docView.measureVisibleLineHeights(n);this.heightMap=this.heightMap.updateHeight(r,0,o,new uc(n.from,i))}r.heightChanged&&(s|=2)}let g=!this.viewportIsAppropriate(this.viewport,l)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return g&&(this.viewport=this.getViewport(l,this.scrollTarget)),this.updateForViewport(),(2&s||g)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps)),s|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),s}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),r=this.heightMap,i=this.state.doc,{visibleTop:o,visibleBottom:a}=this,s=new Mc(r.lineAt(o-1e3*n,hc.ByHeight,i,0,0).from,r.lineAt(a+1e3*(1-n),hc.ByHeight,i,0,0).to);if(t){let{head:e}=t.range;if(es.to){let n,o=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),a=r.lineAt(e,hc.ByPos,i,0,0);n="center"==t.y?(a.top+a.bottom)/2-o/2:"start"==t.y||"nearest"==t.y&&e=a+Math.max(10,Math.min(n,250)))&&r>o-2e3&&in.from&&a.push({from:n.from,to:r}),i=n.from&&s.from<=n.to&&Tc(a,s.from-10,s.from+10),!s.empty&&s.to>=n.from&&s.to<=n.to&&Tc(a,s.to-10,s.to+10);for(let{from:r,to:i}of a)i-r>1e3&&t.push(_c(e,(e=>e.from>=n.from&&e.to<=n.to&&Math.abs(e.from-r)<1e3&&Math.abs(e.to-i)<1e3))||new Cc(r,i,this.gapSize(n,r,i,o)))}return t}gapSize(e,t,n,r){let i=Ac(r,n)-Ac(r,t);return this.heightOracle.lineWrapping?e.height*i:r.total*this.heightOracle.charWidth*i}updateLineGaps(e){Cc.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=Ss.set(e.map((e=>e.draw(this.heightOracle.lineWrapping)))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let t=[];Xo.spans(e,this.viewport.from,this.viewport.to,{span(e,n){t.push({from:e,to:n})},point(){}},20);let n=t.length!=this.visibleRanges.length||this.visibleRanges.some(((e,n)=>e.from!=t[n].from||e.to!=t[n].to));return this.visibleRanges=t,n?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find((t=>t.from<=e&&t.to>=e))||zc(this.heightMap.lineAt(e,hc.ByPos,this.state.doc,0,0),this.scaler)}lineBlockAtHeight(e){return zc(this.heightMap.lineAt(this.scaler.fromDOM(e),hc.ByHeight,this.state.doc,0,0),this.scaler)}elementAtHeight(e){return zc(this.heightMap.blockAt(this.scaler.fromDOM(e),this.state.doc,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Mc{constructor(e,t){this.from=e,this.to=t}}function Pc(e,t,n){let r=[],i=e,o=0;return Xo.spans(n,e,t,{span(){},point(e,t){e>i&&(r.push({from:i,to:e}),o+=e-i),i=t}},20),i=1)return t[t.length-1].to;let r=Math.floor(e*n);for(let e=0;;e++){let{from:n,to:i}=t[e],o=i-n;if(r<=o)return n+r;r-=o}}function Ac(e,t){let n=0;for(let{from:r,to:i}of e.ranges){if(t<=i){n+=t-r;break}n+=i-r}return n/e.total}function Tc(e,t,n){for(let r=0;rt){let o=[];i.fromn&&o.push({from:n,to:i.to}),e.splice(r,1,...o),r+=o.length-1}}}function _c(e,t){for(let n of e)if(t(n))return n}const Dc={toDOM:e=>e,fromDOM:e=>e,scale:1};class Rc{constructor(e,t,n){let r=0,i=0,o=0;this.viewports=n.map((({from:n,to:i})=>{let o=t.lineAt(n,hc.ByPos,e,0,0).top,a=t.lineAt(i,hc.ByPos,e,0,0).bottom;return r+=a-o,{from:n,to:i,top:o,bottom:a,domTop:0,domBottom:0}})),this.scale=(7e6-r)/(t.height-r);for(let e of this.viewports)e.domTop=o+(e.top-i)*this.scale,o=e.domBottom=e.domTop+(e.bottom-e.top),i=e.bottom}toDOM(e){for(let t=0,n=0,r=0;;t++){let i=tzc(e,t))):e.type)}const Ic=no.define({combine:e=>e.join(" ")}),Lc=no.define({combine:e=>e.indexOf(!0)>-1}),$c=fa.newName(),Nc=fa.newName(),Zc=fa.newName(),Hc={"&light":"."+Nc,"&dark":"."+Zc};function Vc(e,t,n){return new fa(t,{finish:t=>/&/.test(t)?t.replace(/&\w*/,(t=>{if("&"==t)return e;if(!n||!n[t])throw new RangeError(`Unsupported selector: ${t}`);return n[t]})):e+" "+t})}const Fc=Vc("."+$c,{"&.cm-editor":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,minHeight:"100%",display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 4px"},".cm-selectionLayer":{zIndex:-1,contain:"size style"},".cm-selectionBackground":{position:"absolute"},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{zIndex:100,contain:"size style",pointerEvents:"none"},"&.cm-focused .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{position:"absolute",borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},"&.cm-focused .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#f3f9ff"},"&dark .cm-activeLine":{backgroundColor:"#223039"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",left:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},Hc),Bc={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Wc=as.ie&&as.ie_version<=11;class Uc{constructor(e,t,n){this.view=e,this.onChange=t,this.onScrollChanged=n,this.active=!1,this.selectionRange=new za,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.scrollTargets=[],this.intersection=null,this.resize=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver((t=>{for(let e of t)this.queue.push(e);(as.ie&&as.ie_version<=11||as.ios&&e.composing)&&t.some((e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length))?this.flushSoon():this.flush()})),Wc&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),"function"==typeof ResizeObserver&&(this.resize=new ResizeObserver((()=>{this.view.docView.lastUpdate{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))}),{}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver((e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))}),{})),this.listenForScroll(),this.readSelectionRange()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout((()=>{this.resizeTimeout=-1,this.view.requestMeasure()}),50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout((()=>{this.view.viewState.printing=!1,this.view.requestMeasure()}),500)}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some(((t,n)=>t!=e[n])))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:t}=this,n=this.selectionRange;if(t.state.facet(Bs)?t.root.activeElement!=this.dom:!Oa(t.dom,n))return;let r=n.anchorNode&&t.docView.nearest(n.anchorNode);r&&r.ignoreEvent(e)||((as.ie&&as.ie_version<=11||as.android&&as.chrome)&&!t.state.selection.main.empty&&n.focusNode&&Pa(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)?this.flushSoon():this.flush(!1))}readSelectionRange(){let{view:e}=this,t=as.safari&&11==e.root.nodeType&&function(){let e=document.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}()==this.dom&&function(e){let t=null;function n(e){e.preventDefault(),e.stopImmediatePropagation(),t=e.getTargetRanges()[0]}if(e.contentDOM.addEventListener("beforeinput",n,!0),document.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",n,!0),!t)return null;let r=t.startContainer,i=t.startOffset,o=t.endContainer,a=t.endOffset,s=e.docView.domAtPos(e.state.selection.main.anchor);Pa(s.node,s.offset,o,a)&&([r,i,o,a]=[o,a,r,i]);return{anchorNode:r,anchorOffset:i,focusNode:o,focusOffset:a}}(this.view)||Ca(e.root);if(!t||this.selectionRange.eq(t))return!1;let n=Oa(this.dom,t);return n&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime{let e=this.delayedAndroidKey;this.delayedAndroidKey=null,this.delayedFlush=-1,this.flush()||Za(this.dom,e.key,e.keyCode)})),this.delayedAndroidKey&&"Enter"!=e||(this.delayedAndroidKey={key:e,keyCode:t})}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=window.setTimeout((()=>{this.delayedFlush=-1,this.flush()}),20))}forceFlush(){this.delayedFlush>=0&&(window.clearTimeout(this.delayedFlush),this.delayedFlush=-1),this.flush()}processRecords(){let e=this.queue;for(let t of this.observer.takeRecords())e.push(t);e.length&&(this.queue=[]);let t=-1,n=-1,r=!1;for(let i of e){let e=this.readMutation(i);e&&(e.typeOver&&(r=!0),-1==t?({from:t,to:n}=e):(t=Math.min(e.from,t),n=Math.max(e.to,n)))}return{from:t,to:n,typeOver:r}}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return;e&&this.readSelectionRange();let{from:t,to:n,typeOver:r}=this.processRecords(),i=this.selectionChanged&&Oa(this.dom,this.selectionRange);if(t<0&&!i)return;this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let o=this.view.state,a=this.onChange(t,n,r);return this.view.state==o&&this.view.update([]),a}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty("attributes"==e.type),"attributes"==e.type&&(t.dirty|=4),"childList"==e.type){let n=Yc(t,e.previousSibling||e.target.previousSibling,-1),r=Yc(t,e.nextSibling||e.target.nextSibling,1);return{from:n?t.posAfter(n):t.posAtStart,to:r?t.posBefore(r):t.posAtEnd,typeOver:!1}}return"characterData"==e.type?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,t,n;this.stop(),null===(e=this.intersection)||void 0===e||e.disconnect(),null===(t=this.gapIntersection)||void 0===t||t.disconnect(),null===(n=this.resize)||void 0===n||n.disconnect();for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout)}}function Yc(e,t,n){for(;t;){let r=Ba.get(t);if(r&&r.parent==e)return r;let i=t.parentNode;t=i!=e.dom?i:n>0?t.nextSibling:t.previousSibling}return null}function qc(e,t,n,r){let i,o,a=e.state.selection.main;if(t>-1){let r=e.docView.domBoundsAround(t,n,0);if(!r||e.state.readOnly)return!1;let{from:s,to:l}=r,c=e.docView.impreciseHead||e.docView.impreciseAnchor?[]:function(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}=e.observer.selectionRange;n&&(t.push(new xl(n,r)),i==n&&o==r||t.push(new xl(i,o)));return t}(e),u=new bl(c,e.state);u.readRange(r.startDOM,r.endDOM);let d=a.from,h=null;(8===e.inputState.lastKeyCode&&e.inputState.lastKeyTime>Date.now()-100||as.android&&u.text.length0&&s>0&&e.charCodeAt(a-1)==t.charCodeAt(s-1);)a--,s--;if("end"==r){n-=a+Math.max(0,o-Math.min(a,s))-o}if(a=a?o-n:0,s=o+(s-a),a=o}else if(s=s?o-n:0,a=o+(a-s),s=o}return{from:o,toA:a,toB:s}}(e.state.doc.sliceString(s,l,yl),u.text,d-s,h);f&&(as.chrome&&13==e.inputState.lastKeyCode&&f.toB==f.from+2&&"￿￿"==u.text.slice(f.from,f.toB)&&f.toB--,i={from:s+f.from,to:s+f.toA,insert:Si.of(u.text.slice(f.from,f.toB).split(yl))}),o=function(e,t){if(0==e.length)return null;let n=e[0].pos,r=2==e.length?e[1].pos:n;return n>-1&&r>-1?Ji.single(n+t,r+t):null}(c,s)}else if(e.hasFocus||!e.state.facet(Bs)){let t=e.observer.selectionRange,{impreciseHead:n,impreciseAnchor:r}=e.docView,i=n&&n.node==t.focusNode&&n.offset==t.focusOffset||!ja(e.contentDOM,t.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(t.focusNode,t.focusOffset),s=r&&r.node==t.anchorNode&&r.offset==t.anchorOffset||!ja(e.contentDOM,t.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(t.anchorNode,t.anchorOffset);i==a.head&&s==a.anchor||(o=Ji.single(s,i))}if(!i&&!o)return!1;if(!i&&r&&!a.empty&&o&&o.main.empty?i={from:a.from,to:a.to,insert:e.state.doc.slice(a.from,a.to)}:i&&i.from>=a.from&&i.to<=a.to&&(i.from!=a.from||i.to!=a.to)&&a.to-a.from-(i.to-i.from)<=4?i={from:a.from,to:a.to,insert:e.state.doc.slice(a.from,i.from).append(i.insert).append(e.state.doc.slice(i.to,a.to))}:(as.mac||as.android)&&i&&i.from==i.to&&i.from==a.head-1&&"."==i.insert.toString()&&(i={from:a.from,to:a.to,insert:Si.of([" "])}),i){let t=e.state;if(as.ios&&e.inputState.flushIOSKey(e))return!0;if(as.android&&(i.from==a.from&&i.to==a.to&&1==i.insert.length&&2==i.insert.lines&&Za(e.contentDOM,"Enter",13)||i.from==a.from-1&&i.to==a.to&&0==i.insert.length&&Za(e.contentDOM,"Backspace",8)||i.from==a.from&&i.to==a.to+1&&0==i.insert.length&&Za(e.contentDOM,"Delete",46)))return!0;let n,r=i.insert.toString();if(e.state.facet(Ns).some((t=>t(e,i.from,i.to,r))))return!0;if(e.inputState.composing>=0&&e.inputState.composing++,i.from>=a.from&&i.to<=a.to&&i.to-i.from>=(a.to-a.from)/3&&(!o||o.main.empty&&o.main.from==i.from+i.insert.length)&&e.inputState.composing<0){let r=a.fromi.to?t.sliceDoc(i.to,a.to):"";n=t.replaceSelection(e.state.toText(r+i.insert.sliceString(0,void 0,e.state.lineBreak)+o))}else{let r=t.changes(i),s=o&&!t.selection.main.eq(o.main)&&o.main.to<=r.newLength?o.main:void 0;if(t.selection.ranges.length>1&&e.inputState.composing>=0&&i.to<=a.to&&i.to>=a.to-10){let o=e.state.sliceDoc(i.from,i.to),l=Cl(e)||e.state.doc.lineAt(a.head),c=a.to-i.to,u=a.to-a.from;n=t.changeByRange((n=>{if(n.from==a.from&&n.to==a.to)return{changes:r,range:s||n.map(r)};let d=n.to-c,h=d-o.length;if(n.to-n.from!=u||e.state.sliceDoc(h,d)!=o||l&&n.to>=l.from&&n.from<=l.to)return{range:n};let f=t.changes({from:h,to:d,insert:i.insert}),p=n.to-a.to;return{changes:f,range:s?Ji.range(Math.max(0,s.anchor+p),Math.max(0,s.head+p)):n.map(f)}}))}else n={changes:r,selection:s&&t.selection.replaceRange(s)}}let s="input.type";return e.composing&&(s+=".compose",e.inputState.compositionFirstChange&&(s+=".start",e.inputState.compositionFirstChange=!1)),e.dispatch(n,{scrollIntoView:!0,userEvent:s}),!0}if(o&&!o.main.eq(a)){let t=!1,n="select";return e.inputState.lastSelectionTime>Date.now()-50&&("select"==e.inputState.lastSelectionOrigin&&(t=!0),n=e.inputState.lastSelectionOrigin),e.dispatch({selection:o,scrollIntoView:t,userEvent:n}),!0}return!1}class Gc{constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: absolute; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),this._dispatch=e.dispatch||(e=>this.update([e])),this.dispatch=this.dispatch.bind(this),this._root=e.root||function(e){for(;e;){if(e&&(9==e.nodeType||11==e.nodeType&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}(e.parent)||document,this.viewState=new Oc(e.state||Wo.create(e)),this.plugins=this.state.facet(Us).map((e=>new qs(e)));for(let e of this.plugins)e.update(this);this.observer=new Uc(this,((e,t,n)=>qc(this,e,t,n)),(e=>{this.inputState.runScrollHandlers(this,e),this.observer.intersecting&&this.measure()})),this.inputState=new Nl(this),this.inputState.ensureHandlers(this,this.plugins),this.docView=new kl(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),e.parent&&e.parent.appendChild(this.dom)}get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}dispatch(...e){this._dispatch(1==e.length&&e[0]instanceof Ro?e[0]:this.state.update(...e))}update(e){if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t,n=!1,r=!1,i=this.state;for(let t of e){if(t.startState!=i)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");i=t.state}if(this.destroyed)return void(this.viewState.state=i);if(this.observer.clear(),i.facet(Wo.phrases)!=this.state.facet(Wo.phrases))return this.setState(i);t=nl.create(this,i,e);let o=this.viewState.scrollTarget;try{this.updateState=2;for(let t of e){if(o&&(o=o.map(t.changes)),t.scrollIntoView){let{main:e}=t.state.selection;o=new Hs(e.empty?e:Ji.cursor(e.head,e.head>e.anchor?-1:1))}for(let e of t.effects)e.is(Vs)&&(o=e.value)}this.viewState.update(t,o),this.bidiCache=Qc.update(this.bidiCache,t.changes),t.empty||(this.updatePlugins(t),this.inputState.update(t)),n=this.docView.update(t),this.state.facet(el)!=this.styleModules&&this.mountStyles(),r=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(n,e.some((e=>e.isUserEvent("select.pointer"))))}finally{this.updateState=0}if(t.startState.facet(Ic)!=t.state.facet(Ic)&&(this.viewState.mustMeasureContent=!0),(n||r||o||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!t.empty)for(let e of this.state.facet($s))e(t)}setState(e){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)return void(this.viewState.state=e);this.updateState=2;let t=this.hasFocus;try{for(let e of this.plugins)e.destroy(this);this.viewState=new Oc(e),this.plugins=e.facet(Us).map((e=>new qs(e))),this.pluginMap.clear();for(let e of this.plugins)e.update(this);this.docView=new kl(this),this.inputState.ensureHandlers(this,this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(Us),n=e.state.facet(Us);if(t!=n){let r=[];for(let i of n){let n=t.indexOf(i);if(n<0)r.push(new qs(i));else{let t=this.plugins[n];t.mustUpdate=e,r.push(t)}}for(let t of this.plugins)t.mustUpdate!=e&&t.destroy(this);this.plugins=r,this.pluginMap.clear(),this.inputState.ensureHandlers(this,this.plugins)}else for(let t of this.plugins)t.mustUpdate=e;for(let e=0;e-1&&cancelAnimationFrame(this.measureScheduled),this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,{scrollHeight:n,scrollTop:r,clientHeight:i}=this.scrollDOM,o=r>n-i-4?n:r;try{for(let e=0;;e++){this.updateState=1;let n=this.viewport,r=this.viewState.lineBlockAtHeight(o),i=this.viewState.measure(this);if(!i&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(e>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let a=[];4&i||([this.measureRequests,a]=[a,this.measureRequests]);let s=a.map((e=>{try{return e.read(this)}catch(e){return Fs(this.state,e),Xc}})),l=nl.create(this,this.state,[]),c=!1,u=!1;l.flags|=i,t?t.flags|=i:t=l,this.updateState=2,l.empty||(this.updatePlugins(l),this.inputState.update(l),this.updateAttrs(),c=this.docView.update(l));for(let e=0;e1||e<-1)&&(this.scrollDOM.scrollTop+=e,u=!0)}if(c&&this.docView.updateSelection(!0),this.viewport.from==n.from&&this.viewport.to==n.to&&!u&&0==this.measureRequests.length)break}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let e of this.state.facet($s))e(t)}get themeClasses(){return $c+" "+(this.state.facet(Lc)?Zc:Nc)+" "+this.state.facet(Ic)}updateAttrs(){let e=Jc(this,Gs,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Bs)?"true":"false",class:"cm-content",style:`${as.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),Jc(this,Ks,t);let n=this.observer.ignore((()=>{let n=ws(this.contentDOM,this.contentAttrs,t),r=ws(this.dom,this.editorAttrs,e);return n||r}));return this.editorAttrs=e,this.contentAttrs=t,n}showAnnouncements(e){let t=!0;for(let n of e)for(let e of n.effects)if(e.is(Gc.announce)){t&&(this.announceDOM.textContent=""),t=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=e.value}}mountStyles(){this.styleModules=this.state.facet(el),fa.mount(this.root,this.styleModules.concat(Fc).reverse())}readMeasured(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=requestAnimationFrame((()=>this.measure()))),e){if(null!=e.key)for(let t=0;tt.spec==e))||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,n){return $l(this,e,Ll(this,e,t,n))}moveByGroup(e,t){return $l(this,e,Ll(this,e,t,(t=>function(e,t,n){let r=e.state.charCategorizer(t),i=r(n);return e=>{let t=r(e);return i==Ho.Space&&(i=t),i==t}}(this,e.head,t))))}moveToLineBoundary(e,t,n=!0){return function(e,t,n,r){let i=e.state.doc.lineAt(t.head),o=r&&e.lineWrapping?e.coordsAtPos(t.assoc<0&&t.head>i.from?t.head-1:t.head):null;if(o){let t=e.dom.getBoundingClientRect(),r=e.textDirectionAt(i.from),a=e.posAtCoords({x:n==(r==rl.LTR)?t.right-1:t.left+1,y:(o.top+o.bottom)/2});if(null!=a)return Ji.cursor(a,n?-1:1)}let a=Es.find(e.docView,t.head),s=a?n?a.posAtEnd:a.posAtStart:n?i.to:i.from;return Ji.cursor(s,n?-1:1)}(this,e,t,n)}moveVertically(e,t,n){return $l(this,e,function(e,t,n,r){let i=t.head,o=n?1:-1;if(i==(n?e.state.doc.length:0))return Ji.cursor(i,t.assoc);let a,s=t.goalColumn,l=e.contentDOM.getBoundingClientRect(),c=e.coordsAtPos(i),u=e.documentTop;if(c)null==s&&(s=c.left-l.left),a=o<0?c.top:c.bottom;else{let t=e.viewState.lineBlockAt(i);null==s&&(s=Math.min(l.right-l.left,e.defaultCharacterWidth*(i-t.from))),a=(o<0?t.top:t.bottom)+u}let d=l.left+s,h=null!=r?r:e.defaultLineHeight>>1;for(let n=0;;n+=10){let r=a+(h+n)*o,c=zl(e,{x:d,y:r},!1,o);if(rl.bottom||(o<0?ci))return Ji.cursor(c,t.assoc,void 0,s)}}(this,e,t,n))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){return this.readMeasured(),zl(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let n=this.docView.coordsAt(e,t);if(!n||n.left==n.right)return n;let r=this.state.doc.lineAt(e),i=this.bidiSpans(r);return Da(n,i[hl.find(i,e-r.from,-1,t)].dir==rl.LTR==t>0)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(Zs)||ethis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>Kc)return ml(e.length);let t=this.textDirectionAt(e.from);for(let n of this.bidiCache)if(n.from==e.from&&n.dir==t)return n.order;let n=pl(e.text,t);return this.bidiCache.push(new Qc(e.from,e.to,t,n)),n}get hasFocus(){var e;return(document.hasFocus()||as.safari&&(null===(e=this.inputState)||void 0===e?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore((()=>{$a(this.contentDOM),this.docView.updateSelection()}))}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((9==e.nodeType?e:e.ownerDocument).defaultView),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return Vs.of(new Hs("number"==typeof e?Ji.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}static domEventHandlers(e){return Ys.define((()=>({})),{eventHandlers:e})}static theme(e,t){let n=fa.newName(),r=[Ic.of(n),el.of(Vc(`.${n}`,e))];return t&&t.dark&&r.push(Lc.of(!0)),r}static baseTheme(e){return go.lowest(el.of(Vc("."+$c,e,Hc)))}static findFromDOM(e){var t;let n=e.querySelector(".cm-content"),r=n&&Ba.get(n)||Ba.get(e);return(null===(t=null==r?void 0:r.rootView)||void 0===t?void 0:t.view)||null}}Gc.styleModule=el,Gc.inputHandler=Ns,Gc.perLineTextDirection=Zs,Gc.exceptionSink=Ls,Gc.updateListener=$s,Gc.editable=Bs,Gc.mouseSelectionStyle=Is,Gc.dragMovesSelection=zs,Gc.clickAddsSelectionRange=Rs,Gc.decorations=Xs,Gc.atomicRanges=Qs,Gc.scrollMargins=Js,Gc.darkTheme=Lc,Gc.contentAttributes=Ks,Gc.editorAttributes=Gs,Gc.lineWrapping=Gc.contentAttributes.of({class:"cm-lineWrapping"}),Gc.announce=Do.define();const Kc=4096,Xc={};class Qc{constructor(e,t,n,r){this.from=e,this.to=t,this.dir=n,this.order=r}static update(e,t){if(t.empty)return e;let n=[],r=e.length?e[e.length-1].dir:rl.LTR;for(let i=Math.max(0,e.length-10);i=0;i--){let t=r[i],o="function"==typeof t?t(e):t;o&&ys(o,n)}return n}const eu=as.mac?"mac":as.windows?"win":as.linux?"linux":"key";function tu(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==n&&t.shiftKey&&(e="Shift-"+e),e}const nu=go.default(Gc.domEventHandlers({keydown:(e,t)=>su(ou(t.state),e,t,"editor")})),ru=no.define({enables:nu}),iu=new WeakMap;function ou(e){let t=e.facet(ru),n=iu.get(t);return n||iu.set(t,n=function(e,t=eu){let n=Object.create(null),r=Object.create(null),i=(e,t)=>{let n=r[e];if(null==n)r[e]=t;else if(n!=t)throw new Error("Key binding "+e+" is used both as a regular binding and as a multi-stroke prefix")},o=(e,r,o,a)=>{let s=n[e]||(n[e]=Object.create(null)),l=r.split(/ (?!$)/).map((e=>function(e,t){const n=e.split(/-(?!$)/);let r,i,o,a,s=n[n.length-1];"Space"==s&&(s=" ");for(let e=0;e{let r=au={view:t,prefix:n,scope:e};return setTimeout((()=>{au==r&&(au=null)}),4e3),!0}]})}let c=l.join(" ");i(c,!1);let u=s[c]||(s[c]={preventDefault:!1,commands:[]});u.commands.push(o),a&&(u.preventDefault=!0)};for(let n of e){let e=n[t]||n.key;if(e)for(let t of n.scope?n.scope.split(" "):["editor"])o(t,e,n.run,n.preventDefault),n.shift&&o(t,"Shift-"+e,n.shift,n.preventDefault)}return n}(t.reduce(((e,t)=>e.concat(t)),[]))),n}let au=null;function su(e,t,n,r){let i=function(e){var t=!(xa&&(e.ctrlKey||e.altKey||e.metaKey)||wa&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?va:ga)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(t),o=Zi(i,0),a=Hi(o)==i.length&&" "!=i,s="",l=!1;au&&au.view==n&&au.scope==r&&(s=au.prefix+" ",(l=Hl.indexOf(t.keyCode)<0)&&(au=null));let c,u=e=>{if(e){for(let t of e.commands)if(t(n))return!0;e.preventDefault&&(l=!0)}return!1},d=e[r];if(d){if(u(d[s+tu(i,t,!a)]))return!0;if(a&&(t.shiftKey||t.altKey||t.metaKey||o>127)&&(c=ga[t.keyCode])&&c!=i){if(u(d[s+tu(c,t,!0)]))return!0;if(t.shiftKey&&va[t.keyCode]!=c&&u(d[s+tu(va[t.keyCode],t,!1)]))return!0}else if(a&&t.shiftKey&&u(d[s+tu(i,t,!0)]))return!0}return l}const lu=!as.ios;const cu={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};lu&&(cu[".cm-line"].caretColor="transparent !important");class uu extends Yo{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}uu.prototype.elementClass="",uu.prototype.toDOM=void 0,uu.prototype.mapMode=Fi.TrackBefore,uu.prototype.startSide=uu.prototype.endSide=-1,uu.prototype.point=!0;const du=no.define(),hu=no.define();const fu=no.define({combine:e=>e.some((e=>e))});function pu(e){let t=[mu];return e&&!1===e.fixed&&t.push(fu.of(!0)),t}const mu=Ys.fromClass(class{constructor(e){this.view=e,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight+"px",this.gutters=e.state.facet(hu).map((t=>new bu(e,t)));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!e.state.facet(fu),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}update(e){if(this.updateGutters(e)){let t=this.prevViewport,n=e.view.viewport,r=Math.min(t.to,n.to)-Math.max(t.from,n.from);this.syncGutters(r<.8*(n.to-n.from))}e.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(fu)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&this.dom.remove();let n=Xo.iter(this.view.state.facet(du),this.view.viewport.from),r=[],i=this.gutters.map((e=>new yu(e,this.view.viewport,-this.view.documentPadding.top)));for(let e of this.view.viewportLineBlocks){let t;if(Array.isArray(e.type)){for(let n of e.type)if(n.type==ks.Text){t=n;break}}else t=e.type==ks.Text?e:void 0;if(t){r.length&&(r=[]),vu(n,r,e.from);for(let e of i)e.line(this.view,t,r)}}for(let e of i)e.finish();e&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(e){let t=e.startState.facet(hu),n=e.state.facet(hu),r=e.docChanged||e.heightChanged||e.viewportChanged||!Xo.eq(e.startState.facet(du),e.state.facet(du),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let t of this.gutters)t.update(e)&&(r=!0);else{r=!0;let i=[];for(let r of n){let n=t.indexOf(r);n<0?i.push(new bu(this.view,r)):(this.gutters[n].update(e),i.push(this.gutters[n]))}for(let e of this.gutters)e.dom.remove(),i.indexOf(e)<0&&e.destroy();for(let e of i)this.dom.appendChild(e.dom);this.gutters=i}return r}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>Gc.scrollMargins.of((t=>{let n=t.plugin(e);return n&&0!=n.gutters.length&&n.fixed?t.textDirection==rl.LTR?{left:n.dom.offsetWidth}:{right:n.dom.offsetWidth}:null}))});function gu(e){return Array.isArray(e)?e:[e]}function vu(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class yu{constructor(e,t,n){this.gutter=e,this.height=n,this.localMarkers=[],this.i=0,this.cursor=Xo.iter(e.markers,t.from)}line(e,t,n){this.localMarkers.length&&(this.localMarkers=[]),vu(this.cursor,this.localMarkers,t.from);let r=n.length?this.localMarkers.concat(n):this.localMarkers,i=this.gutter.config.lineMarker(e,t,r);i&&r.unshift(i);let o=this.gutter;if(0==r.length&&!o.config.renderEmptyElements)return;let a=t.top-this.height;if(this.i==o.elements.length){let n=new wu(e,t.height,a,r);o.elements.push(n),o.dom.appendChild(n.dom)}else o.elements[this.i].update(e,t.height,a,r);this.height=t.bottom,this.i++}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class bu{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let n in t.domEventHandlers)this.dom.addEventListener(n,(r=>{let i=e.lineBlockAtHeight(r.clientY-e.documentTop);t.domEventHandlers[n](e,i,r)&&r.preventDefault()}));this.markers=gu(t.markers(e)),t.initialSpacer&&(this.spacer=new wu(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=gu(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let t=this.config.updateSpacer(this.spacer.markers[0],e);t!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[t])}let n=e.view.viewport;return!Xo.eq(this.markers,t,n.from,n.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(e)}destroy(){for(let e of this.elements)e.destroy()}}class wu{constructor(e,t,n,r){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,n,r)}update(e,t,n,r){this.height!=t&&(this.dom.style.height=(this.height=t)+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),function(e,t){if(e.length!=t.length)return!1;for(let n=0;nUo(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let n=Object.assign({},e);for(let e in t){let r=n[e],i=t[e];n[e]=r?(e,t,n)=>r(e,t,n)||i(e,t,n):i}return n}})});class Su extends uu{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function Cu(e,t){return e.state.facet(ku).formatNumber(t,e.state)}const ju=hu.compute([ku],(e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:e=>e.state.facet(xu),lineMarker:(e,t,n)=>n.some((e=>e.toDOM))?null:new Su(Cu(e,e.state.doc.lineAt(t.from).number)),lineMarkerChange:e=>e.startState.facet(ku)!=e.state.facet(ku),initialSpacer:e=>new Su(Cu(e,Ou(e.state.doc.lines))),updateSpacer(e,t){let n=Cu(t.view,Ou(t.view.state.doc.lines));return n==e.number?e:new Su(n)},domEventHandlers:e.facet(ku).domEventHandlers})));function Ou(e){let t=9;for(;t{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=_u.match(e)),t=>{let n=e(t);return void 0===n?null:[this,n]}}}Au.closedBy=new Au({deserialize:e=>e.split(" ")}),Au.openedBy=new Au({deserialize:e=>e.split(" ")}),Au.group=new Au({deserialize:e=>e.split(" ")}),Au.contextHash=new Au({perNode:!0}),Au.lookAhead=new Au({perNode:!0}),Au.mounted=new Au({perNode:!0});const Tu=Object.create(null);class _u{constructor(e,t,n,r=0){this.name=e,this.props=t,this.id=n,this.flags=r}static define(e){let t=e.props&&e.props.length?Object.create(null):Tu,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),r=new _u(e.name||"",t,e.id,n);if(e.props)for(let n of e.props)if(Array.isArray(n)||(n=n(r)),n){if(n[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[n[0].id]=n[1]}return r}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(Au.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let r of n.split(" "))t[r]=e[n];return e=>{for(let n=e.prop(Au.group),r=-1;r<(n?n.length:0);r++){let i=t[r<0?e.name:n[r]];if(i)return i}}}}_u.none=new _u("",Object.create(null),0,8);class Du{constructor(e){this.types=e;for(let t=0;t=r&&(o.type.isAnonymous||!1!==t(o))){if(o.firstChild())continue;e=!0}for(;e&&n&&!o.type.isAnonymous&&n(o),!o.nextSibling();){if(!o.parent())return;e=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:Qu(_u.none,this.children,this.positions,0,this.children.length,0,this.length,((e,t,n)=>new Lu(this.type,e,t,n,this.propValues)),e.makeTree||((e,t,n)=>new Lu(_u.none,e,t,n)))}static build(e){return function(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:i=Mu,reused:o=[],minRepeatType:a=r.types.length}=e,s=Array.isArray(n)?new $u(n,n.length):n,l=r.types,c=0,u=0;function d(e,t,n,v,y){let{id:b,start:w,end:x,size:k}=s,S=u;for(;k<0;){if(s.next(),-1==k){let t=o[b];return n.push(t),void v.push(w-e)}if(-3==k)return void(c=b);if(-4==k)return void(u=b);throw new RangeError(`Unrecognized record size: ${k}`)}let C,j,O=l[b],M=w-e;if(x-w<=i&&(j=m(s.pos-t,y))){let t=new Uint16Array(j.size-j.skip),n=s.pos-j.size,i=t.length;for(;s.pos>n;)i=g(j.start,t,i);C=new Nu(t,x-j.start,r),M=j.start-e}else{let e=s.pos-k;s.next();let t=[],n=[],r=b>=a?b:-1,o=0,l=x;for(;s.pos>e;)r>=0&&s.id==r&&s.size>=0?(s.end<=l-i&&(f(t,n,w,o,s.end,l,r,S),o=t.length,l=s.end),s.next()):d(w,e,t,n,r);if(r>=0&&o>0&&o-1&&o>0){let e=h(O);C=Qu(O,t,n,0,t.length,0,x-w,e,e)}else C=p(O,t,n,x-w,S-x)}n.push(C),v.push(M)}function h(e){return(t,n,r)=>{let i,o,a=0,s=t.length-1;if(s>=0&&(i=t[s])instanceof Lu){if(!s&&i.type==e&&i.length==r)return i;(o=i.prop(Au.lookAhead))&&(a=n[s]+i.length+o)}return p(e,t,n,r,a)}}function f(e,t,n,i,o,a,s,l){let c=[],u=[];for(;e.length>i;)c.push(e.pop()),u.push(t.pop()+n-o);e.push(p(r.types[s],c,u,a-o,l-a)),t.push(o-n)}function p(e,t,n,r,i=0,o){if(c){let e=[Au.contextHash,c];o=o?[e].concat(o):[e]}if(i>25){let e=[Au.lookAhead,i];o=o?[e].concat(o):[e]}return new Lu(e,t,n,r,o)}function m(e,t){let n=s.fork(),r=0,o=0,l=0,c=n.end-i,u={size:0,start:0,skip:0};e:for(let i=n.pos-e;n.pos>i;){let e=n.size;if(n.id==t&&e>=0){u.size=r,u.start=o,u.skip=l,l+=4,r+=4,n.next();continue}let s=n.pos-e;if(e<0||s=a?4:0,h=n.start;for(n.next();n.pos>s;){if(n.size<0){if(-3!=n.size)break e;d+=4}else n.id>=a&&(d+=4);n.next()}o=h,r+=e,l+=d}return(t<0||r==e)&&(u.size=r,u.start=o,u.skip=l),u.size>4?u:void 0}function g(e,t,n){let{id:r,start:i,end:o,size:l}=s;if(s.next(),l>=0&&r4){let r=s.pos-(l-4);for(;s.pos>r;)n=g(e,t,n)}t[--n]=a,t[--n]=o-e,t[--n]=i-e,t[--n]=r}else-3==l?c=r:-4==l&&(u=r);return n}let v=[],y=[];for(;s.pos>0;)d(e.start||0,e.bufferStart||0,v,y,-1);let b=null!==(t=e.length)&&void 0!==t?t:v.length?y[0]+v[0].length:0;return new Lu(l[e.topID],v.reverse(),y.reverse(),b)}(e)}}Lu.empty=new Lu(_u.none,[],[],0);class $u{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new $u(this.buffer,this.index)}}class Nu{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return _u.none}toString(){let e=[];for(let t=0;t0));s=o[s+3]);return a}slice(e,t,n,r){let i=this.buffer,o=new Uint16Array(t-e);for(let r=e,a=0;r=t&&nt;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function Hu(e,t){let n=e.childBefore(t);for(;n;){let t=n.lastChild;if(!t||t.to!=n.to)break;t.type.isError&&t.from==t.to?(e=n,n=t.prevSibling):n=t}return e}function Vu(e,t,n,r){for(var i;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to0?a.length:-1;e!=l;e+=t){let l=a[e],c=s[e]+o.from;if(Zu(r,n,c,c+l.length))if(l instanceof Nu){if(i&Iu.ExcludeBuffers)continue;let a=l.findChild(0,l.buffer.length,t,n-c,r);if(a>-1)return new Yu(new Uu(o,l,e,c),null,a)}else if(i&Iu.IncludeAnonymous||!l.type.isAnonymous||Gu(l)){let a;if(!(i&Iu.IgnoreMounts)&&l.props&&(a=l.prop(Au.mounted))&&!a.overlay)return new Fu(a.tree,c,e,o);let s=new Fu(l,c,e,o);return i&Iu.IncludeAnonymous||!s.type.isAnonymous?s:s.nextChild(t<0?l.children.length-1:0,t,n,r)}}if(i&Iu.IncludeAnonymous||!o.type.isAnonymous)return null;if(e=o.index>=0?o.index+t:t<0?-1:o._parent._tree.children.length,o=o._parent,!o)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,n=0){let r;if(!(n&Iu.IgnoreOverlays)&&(r=this._tree.prop(Au.mounted))&&r.overlay){let n=e-this.from;for(let{from:e,to:i}of r.overlay)if((t>0?e<=n:e=n:i>n))return new Fu(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}cursor(e=0){return new qu(this,e)}get tree(){return this._tree}toTree(){return this._tree}resolve(e,t=0){return Vu(this,e,t,!1)}resolveInner(e,t=0){return Vu(this,e,t,!0)}enterUnfinishedNodesBefore(e){return Hu(this,e)}getChild(e,t=null,n=null){let r=Bu(this,e,t,n);return r.length?r[0]:null}getChildren(e,t=null,n=null){return Bu(this,e,t,n)}toString(){return this._tree.toString()}get node(){return this}matchContext(e){return Wu(this,e)}}function Bu(e,t,n,r){let i=e.cursor(),o=[];if(!i.firstChild())return o;if(null!=n)for(;!i.type.is(n);)if(!i.nextSibling())return o;for(;;){if(null!=r&&i.type.is(r))return o;if(i.type.is(t)&&o.push(i.node),!i.nextSibling())return null==r?o:[]}}function Wu(e,t,n=t.length-1){for(let r=e.parent;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}class Uu{constructor(e,t,n,r){this.parent=e,this.buffer=t,this.index=n,this.start=r}}class Yu{constructor(e,t,n){this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}child(e,t,n){let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.context.start,n);return i<0?null:new Yu(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,n=0){if(n&Iu.ExcludeBuffers)return null;let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return i<0?null:new Yu(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new Yu(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new Yu(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}cursor(e=0){return new qu(this,e)}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,r=this.index+4,i=n.buffer[this.index+3];if(i>r){let o=n.buffer[this.index+1],a=n.buffer[this.index+2];e.push(n.slice(r,i,o,a)),t.push(0)}return new Lu(this.type,e,t,this.to-this.from)}resolve(e,t=0){return Vu(this,e,t,!1)}resolveInner(e,t=0){return Vu(this,e,t,!0)}enterUnfinishedNodesBefore(e){return Hu(this,e)}toString(){return this.context.buffer.childString(this.index)}getChild(e,t=null,n=null){let r=Bu(this,e,t,n);return r.length?r[0]:null}getChildren(e,t=null,n=null){return Bu(this,e,t,n)}get node(){return this}matchContext(e){return Wu(this,e)}}class qu{constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof Fu)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}get name(){return this.type.name}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,t){this.index=e;let{start:n,buffer:r}=this.buffer;return this.type=t||r.set.types[r.buffer[e]],this.from=n+r.buffer[e+1],this.to=n+r.buffer[e+2],!0}yield(e){return!!e&&(e instanceof Fu?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));let{buffer:r}=this.buffer,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.buffer.start,n);return!(i<0)&&(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,n=this.mode){return this.buffer?!(n&Iu.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&Iu.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&Iu.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let e=n<0?0:this.stack[n]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(e)}return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:r}=this;if(r){if(e>0){if(this.index-1)for(let r=t+e,i=e<0?-1:n._tree.children.length;r!=i;r+=e){let e=n._tree.children[r];if(this.mode&Iu.IncludeAnonymous||e instanceof Nu||!e.type.isAnonymous||Gu(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to=0;){for(let o=e;o;o=o._parent)if(o.index==r){if(r==this.index)return o;t=o,n=i+1;break e}r=this.stack[--i]}for(let e=n;e=0;i--){if(i<0)return Wu(this.node,e,r);let o=n[t.buffer[this.stack[i]]];if(!o.isAnonymous){if(e[r]&&e[r]!=o.name)return!1;r--}}return!0}}function Gu(e){return e.children.some((e=>e instanceof Nu||!e.type.isAnonymous||Gu(e)))}const Ku=new WeakMap;function Xu(e,t){if(!e.isAnonymous||t instanceof Nu||t.type!=e)return 1;let n=Ku.get(t);if(null==n){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof Lu)){n=1;break}n+=Xu(e,r)}Ku.set(t,n)}return n}function Qu(e,t,n,r,i,o,a,s,l){let c=0;for(let n=r;n=u)break;p+=t}if(c==i+1){if(p>u){let e=n[i];t(e.children,e.positions,0,e.children.length,r[i]+s);continue}d.push(n[i])}else{let t=r[c-1]+n[c-1].length-f;d.push(Qu(e,n,r,i,c,f,t,null,l))}h.push(f+s-o)}}(t,n,r,i,0),(s||l)(d,h,a)}class Ju{constructor(e,t,n,r,i=!1,o=!1){this.from=e,this.to=t,this.tree=n,this.offset=r,this.open=(i?1:0)|(o?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],n=!1){let r=[new Ju(0,e.length,e,0,!1,n)];for(let n of t)n.to>e.length&&r.push(n);return r}static applyChanges(e,t,n=128){if(!t.length)return e;let r=[],i=1,o=e.length?e[0]:null;for(let a=0,s=0,l=0;;a++){let c=a=n)for(;o&&o.from=t.from||u<=t.to||l){let e=Math.max(t.from,s)-l,n=Math.min(t.to,u)-l;t=e>=n?null:new Ju(e,n,t.tree,t.offset+l,a>0,!!c)}if(t&&r.push(t),o.to>u)break;o=inew Eu(e.from,e.to))):[new Eu(0,0)]:[new Eu(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let r=this.startParse(e,t,n);for(;;){let e=r.advance();if(e)return e}}}class td{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}new Au({perNode:!0});let nd=0;class rd{constructor(e,t,n){this.set=e,this.base=t,this.modified=n,this.id=nd++}static define(e){if(null==e?void 0:e.base)throw new Error("Can not derive from a modified tag");let t=new rd([],null,[]);if(t.set.push(t),e)for(let n of e.set)t.set.push(n);return t}static defineModifier(){let e=new od;return t=>t.modified.indexOf(e)>-1?t:od.get(t.base||t,t.modified.concat(e).sort(((e,t)=>e.id-t.id)))}}let id=0;class od{constructor(){this.instances=[],this.id=id++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find((n=>n.base==e&&function(e,t){return e.length==t.length&&e.every(((e,n)=>e==t[n]))}(t,n.modified)));if(n)return n;let r=[],i=new rd(r,e,t);for(let e of t)e.instances.push(i);let o=ad(t);for(let t of e.set)for(let e of o)r.push(od.get(t,e));return i}}function ad(e){let t=[e];for(let n=0;n0&&t+3==e.length){i=1;break}let r=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(o);if(!r)throw new RangeError("Invalid path: "+e);if(n.push("*"==r[0]?"":'"'==r[0][0]?JSON.parse(r[0]):r[0]),t+=r[0].length,t==e.length)break;let a=e[t++];if(t==e.length&&"!"==a){i=0;break}if("/"!=a)throw new RangeError("Invalid path: "+e);o=e.slice(t)}let a=n.length-1,s=n[a];if(!s)throw new RangeError("Invalid path: "+e);let l=new cd(r,i,a>0?n.slice(0,a):null);t[s]=l.sort(t[s])}}return ld.add(t)}const ld=new Au;class cd{constructor(e,t,n,r){this.tags=e,this.mode=t,this.context=n,this.next=r}sort(e){return!e||e.depth{let t=i;for(let r of e)for(let e of r.set){let r=n[e.id];if(r){t=t?t+" "+r:r;break}}return t},scope:r}}function dd(e,t){let n=null;for(let r of e){let e=r.style(t);e&&(n=n?n+" "+e:e)}return n}function hd(e,t,n,r=0,i=e.length){let o=new fd(r,Array.isArray(t)?t:[t],n);o.highlightRange(e.cursor(),r,i,"",o.highlighters),o.flush(i)}class fd{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,r,i){let{type:o,from:a,to:s}=e;if(a>=n||s<=t)return;o.isTop&&(i=this.highlighters.filter((e=>!e.scope||e.scope(o))));let l=r,c=o.prop(ld),u=!1;for(;c;){if(!c.context||e.matchContext(c.context)){let e=dd(i,c.tags);e&&(l&&(l+=" "),l+=e,1==c.mode?r+=(r?" ":"")+e:0==c.mode&&(u=!0));break}c=c.next}if(this.startSpan(e.from,l),u)return;let d=e.tree&&e.tree.prop(Au.mounted);if(d&&d.overlay){let o=e.node.enter(d.overlay[0].from+a,1),c=this.highlighters.filter((e=>!e.scope||e.scope(d.tree.type))),u=e.firstChild();for(let h=0,f=a;;h++){let p=h=m)&&e.nextSibling()););if(!p||m>n)break;f=p.to+a,f>t&&(this.highlightRange(o.cursor(),Math.max(t,p.from+a),Math.min(n,f),r,c),this.startSpan(f,l))}u&&e.parent()}else if(e.firstChild()){do{if(!(e.to<=t)){if(e.from>=n)break;this.highlightRange(e,t,n,r,i),this.startSpan(Math.min(n,e.to),l)}}while(e.nextSibling());e.parent()}}}const pd=rd.define,md=pd(),gd=pd(),vd=pd(gd),yd=pd(gd),bd=pd(),wd=pd(bd),xd=pd(bd),kd=pd(),Sd=pd(kd),Cd=pd(),jd=pd(),Od=pd(),Md=pd(Od),Pd=pd(),Ed={comment:md,lineComment:pd(md),blockComment:pd(md),docComment:pd(md),name:gd,variableName:pd(gd),typeName:vd,tagName:pd(vd),propertyName:yd,attributeName:pd(yd),className:pd(gd),labelName:pd(gd),namespace:pd(gd),macroName:pd(gd),literal:bd,string:wd,docString:pd(wd),character:pd(wd),attributeValue:pd(wd),number:xd,integer:pd(xd),float:pd(xd),bool:pd(bd),regexp:pd(bd),escape:pd(bd),color:pd(bd),url:pd(bd),keyword:Cd,self:pd(Cd),null:pd(Cd),atom:pd(Cd),unit:pd(Cd),modifier:pd(Cd),operatorKeyword:pd(Cd),controlKeyword:pd(Cd),definitionKeyword:pd(Cd),moduleKeyword:pd(Cd),operator:jd,derefOperator:pd(jd),arithmeticOperator:pd(jd),logicOperator:pd(jd),bitwiseOperator:pd(jd),compareOperator:pd(jd),updateOperator:pd(jd),definitionOperator:pd(jd),typeOperator:pd(jd),controlOperator:pd(jd),punctuation:Od,separator:pd(Od),bracket:Md,angleBracket:pd(Md),squareBracket:pd(Md),paren:pd(Md),brace:pd(Md),content:kd,heading:Sd,heading1:pd(Sd),heading2:pd(Sd),heading3:pd(Sd),heading4:pd(Sd),heading5:pd(Sd),heading6:pd(Sd),contentSeparator:pd(kd),list:pd(kd),quote:pd(kd),emphasis:pd(kd),strong:pd(kd),link:pd(kd),monospace:pd(kd),strikethrough:pd(kd),inserted:pd(),deleted:pd(),changed:pd(),invalid:pd(),meta:Pd,documentMeta:pd(Pd),annotation:pd(Pd),processingInstruction:pd(Pd),definition:rd.defineModifier(),constant:rd.defineModifier(),function:rd.defineModifier(),standard:rd.defineModifier(),local:rd.defineModifier(),special:rd.defineModifier()};ud([{tag:Ed.link,class:"tok-link"},{tag:Ed.heading,class:"tok-heading"},{tag:Ed.emphasis,class:"tok-emphasis"},{tag:Ed.strong,class:"tok-strong"},{tag:Ed.keyword,class:"tok-keyword"},{tag:Ed.atom,class:"tok-atom"},{tag:Ed.bool,class:"tok-bool"},{tag:Ed.url,class:"tok-url"},{tag:Ed.labelName,class:"tok-labelName"},{tag:Ed.inserted,class:"tok-inserted"},{tag:Ed.deleted,class:"tok-deleted"},{tag:Ed.literal,class:"tok-literal"},{tag:Ed.string,class:"tok-string"},{tag:Ed.number,class:"tok-number"},{tag:[Ed.regexp,Ed.escape,Ed.special(Ed.string)],class:"tok-string2"},{tag:Ed.variableName,class:"tok-variableName"},{tag:Ed.local(Ed.variableName),class:"tok-variableName tok-local"},{tag:Ed.definition(Ed.variableName),class:"tok-variableName tok-definition"},{tag:Ed.special(Ed.variableName),class:"tok-variableName2"},{tag:Ed.definition(Ed.propertyName),class:"tok-propertyName tok-definition"},{tag:Ed.typeName,class:"tok-typeName"},{tag:Ed.namespace,class:"tok-namespace"},{tag:Ed.className,class:"tok-className"},{tag:Ed.macroName,class:"tok-macroName"},{tag:Ed.propertyName,class:"tok-propertyName"},{tag:Ed.operator,class:"tok-operator"},{tag:Ed.comment,class:"tok-comment"},{tag:Ed.meta,class:"tok-meta"},{tag:Ed.invalid,class:"tok-invalid"},{tag:Ed.punctuation,class:"tok-punctuation"}]);var Ad;const Td=new Au;function _d(e){return no.define({combine:e?t=>t.concat(e):void 0})}class Dd{constructor(e,t,n=[]){this.data=e,Wo.prototype.hasOwnProperty("tree")||Object.defineProperty(Wo.prototype,"tree",{get(){return zd(this)}}),this.parser=t,this.extension=[Bd.of(this),Wo.languageData.of(((e,t,n)=>e.facet(Rd(e,t,n))))].concat(n)}isActiveAt(e,t,n=-1){return Rd(e,t,n)==this.data}findRegions(e){let t=e.facet(Bd);if((null==t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],r=(e,t)=>{if(e.prop(Td)==this.data)return void n.push({from:t,to:t+e.length});let i=e.prop(Au.mounted);if(i){if(i.tree.prop(Td)==this.data){if(i.overlay)for(let e of i.overlay)n.push({from:e.from+t,to:e.to+t});else n.push({from:t,to:t+e.length});return}if(i.overlay){let e=n.length;if(r(i.tree,i.overlay[0].from+t),n.length>e)return}}for(let n=0;n=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let Ld=null;class $d{constructor(e,t,n=[],r,i,o,a,s){this.parser=e,this.state=t,this.fragments=n,this.tree=r,this.treeLen=i,this.viewport=o,this.skipped=a,this.scheduleOn=s,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new $d(e,t,[],Lu.empty,0,n,[],null)}startParse(){return this.parser.startParse(new Id(this.state.doc),this.fragments)}work(e,t){return null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=Lu.empty&&this.isDone(null!=t?t:this.state.doc.length)?(this.takeTree(),!0):this.withContext((()=>{var n;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext((()=>{for(;!(t=this.parse.advance()););})),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(Ju.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=Ld;Ld=this;try{return e()}finally{Ld=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=Nd(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:r,treeLen:i,viewport:o,skipped:a}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges(((e,n,r,i)=>t.push({fromA:e,toA:n,fromB:r,toB:i}))),n=Ju.applyChanges(n,t),r=Lu.empty,i=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length){a=[];for(let t of this.skipped){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);ne.from&&(this.fragments=Nd(this.fragments,n,r),this.skipped.splice(t--,1))}return!(this.skipped.length>=t)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends ed{createParse(t,n,r){let i=r[0].from,o=r[r.length-1].to,a={parsedPos:i,advance(){let t=Ld;if(t){for(let e of r)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=o,new Lu(_u.none,[],[],o-i)},stoppedAt:null,stopAt(){}};return a}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return Ld}}function Nd(e,t,n){return Ju.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class Zd{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new Zd(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=$d.create(e.facet(Bd).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new Zd(n)}}Dd.state=co.define({create:Zd.init,update(e,t){for(let e of t.effects)if(e.is(Dd.setState))return e.value;return t.startState.facet(Bd)!=t.state.facet(Bd)?Zd.init(t.state):e.apply(t)}});let Hd=e=>{let t=setTimeout((()=>e()),500);return()=>clearTimeout(t)};"undefined"!=typeof requestIdleCallback&&(Hd=e=>{let t=-1,n=setTimeout((()=>{t=requestIdleCallback(e,{timeout:400})}),100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const Vd="undefined"!=typeof navigator&&(null===(Ad=navigator.scheduling)||void 0===Ad?void 0:Ad.isInputPending)?()=>navigator.scheduling.isInputPending():null,Fd=Ys.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(Dd.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),e.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(Dd.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=Hd(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEndr+1e3,s=i.context.work((()=>Vd&&Vd()||Date.now()>o),r+(a?0:1e5));this.chunkBudget-=Date.now()-t,(s||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:Dd.setState.of(new Zd(i.context))})),this.chunkBudget>0&&(!s||a)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then((()=>this.scheduleWork())).catch((e=>Fs(this.view.state,e))).then((()=>this.workScheduled--)),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Bd=no.define({combine:e=>e.length?e[0]:null,enables:[Dd.state,Fd]});const Wd=no.define(),Ud=no.define({combine:e=>{if(!e.length)return" ";if(!/^(?: +|\t+)$/.test(e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return e[0]}});function Yd(e){let t=e.facet(Ud);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function qd(e,t){let n="",r=e.tabSize;if(9==e.facet(Ud).charCodeAt(0))for(;t>=r;)n+="\t",t-=r;for(let e=0;e=n.from&&r<=n.to?i&&r==e?{text:"",from:e}:(t<0?r-1&&(i+=o-this.countColumn(n,n.search(/\S|$/))),i}countColumn(e,t=e.length){return ca(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:r}=this.lineAt(e,t),i=this.options.overrideIndentation;if(i){let e=i(r);if(e>-1)return e}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const Xd=new Au;function Qd(e){let t=e.type.prop(Xd);if(t)return t;let n,r=e.firstChild;if(r&&(n=r.type.prop(Au.closedBy))){let t=e.lastChild,r=t&&n.indexOf(t.name)>-1;return e=>rh(e,!0,1,void 0,r&&!function(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}(e)?t.from:void 0)}return null==e.parent?eh:null}function Jd(e,t,n){for(;e;e=e.parent){let r=Qd(e);if(r)return r(th.create(n,t,e))}return null}function eh(){return 0}class th extends Kd{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.node=n}static create(e,t,n){return new th(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){let e=this.state.doc.lineAt(this.node.from);for(;;){let t=this.node.resolve(e.from);for(;t.parent&&t.parent.from==t.from;)t=t.parent;if(nh(t,this.node))break;e=this.state.doc.lineAt(t.from)}return this.lineIndent(e.from)}continue(){let e=this.node.parent;return e?Jd(e,this.pos,this.base):0}}function nh(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function rh(e,t,n,r,i){let o=e.textAfter,a=o.match(/^\s*/)[0].length,s=r&&o.slice(a,a+r.length)==r||i==e.pos+a,l=t?function(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let i=e.options.simulateBreak,o=e.state.doc.lineAt(n.from),a=null==i||i<=o.from?o.to:Math.min(o.to,i);for(let e=n.to;;){let i=t.childAfter(e);if(!i||i==r)return null;if(!i.type.isSkipped)return i.frome.prop(Td)==o.data:o?e=>e==o:void 0,this.style=ud(e.map((e=>({tag:e.tag,class:e.class||r(Object.assign({},e,{tag:null}))}))),{all:i}).style,this.module=n?new fa(n):null,this.themeType=t.themeType}static define(e,t){return new ih(e,t||{})}}const oh=no.define(),ah=no.define({combine:e=>e.length?[e[0]]:null});function sh(e){let t=e.facet(oh);return t.length?t:e.facet(ah)}function lh(e,t){let n,r=[uh];return e instanceof ih&&(e.module&&r.push(Gc.styleModule.of(e.module)),n=e.themeType),(null==t?void 0:t.fallback)?r.push(ah.of(e)):n?r.push(oh.computeN([Gc.darkTheme],(t=>t.facet(Gc.darkTheme)==("dark"==n)?[e]:[]))):r.push(oh.of(e)),r}class ch{constructor(e){this.markCache=Object.create(null),this.tree=zd(e.state),this.decorations=this.buildDeco(e,sh(e.state))}update(e){let t=zd(e.state),n=sh(e.state),r=n!=sh(e.startState);t.length{n.add(e,t,this.markCache[r]||(this.markCache[r]=Ss.mark({class:r})))}),r,i);return n.finish()}}const uh=go.high(Ys.fromClass(ch,{decorations:e=>e.decorations}));Ed.meta,Ed.link,Ed.heading,Ed.emphasis,Ed.strong,Ed.strikethrough,Ed.keyword,Ed.atom,Ed.bool,Ed.url,Ed.contentSeparator,Ed.labelName,Ed.literal,Ed.inserted,Ed.string,Ed.deleted,Ed.regexp,Ed.escape,Ed.string,Ed.variableName,Ed.variableName,Ed.typeName,Ed.namespace,Ed.className,Ed.variableName,Ed.macroName,Ed.propertyName,Ed.comment,Ed.invalid;function dh(e,t,n,r=0,i=0){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);let o=i;for(let i=r;i=this.string.length}sol(){return 0==this.pos}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.post}eatSpace(){let e=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e}skipToEnd(){this.pos=this.string.length}skipTo(e){let t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0}backUp(e){this.pos-=e}column(){return this.lastColumnPosn?e.toLowerCase():e;return r(this.string.substr(this.pos,e.length))==r(e)?(!1!==t&&(this.pos+=e.length),!0):null}{let n=this.string.slice(this.pos).match(e);return n&&n.index>0?null:(n&&!1!==t&&(this.pos+=n[0].length),n)}}current(){return this.string.slice(this.start,this.pos)}}function fh(e){if("object"!=typeof e)return e;let t={};for(let n in e){let r=e[n];t[n]=r instanceof Array?r.slice():r}return t}class ph extends Dd{constructor(e){let t,n=_d(e.languageData),r={token:(i=e).token,blankLine:i.blankLine||(()=>{}),startState:i.startState||(()=>!0),copyState:i.copyState||fh,indent:i.indent||(()=>null),languageData:i.languageData||{},tokenTable:i.tokenTable||bh};var i;super(n,new class extends ed{createParse(e,n,r){return new vh(t,e,n,r)}},[Wd.of(((e,t)=>this.getIndent(e,t)))]),this.topNode=function(e){let t=_u.define({id:wh.length,name:"Document",props:[Td.add((()=>e))]});return wh.push(t),t}(n),t=this,this.streamParser=r,this.stateAfter=new Au({perNode:!0}),this.tokenTable=e.tokenTable?new Ch(r.tokenTable):jh}static define(e){return new ph(e)}getIndent(e,t){let n=zd(e.state),r=n.resolve(t);for(;r&&r.type!=this.topNode;)r=r.parent;if(!r)return null;let i,o,a=mh(this,n,0,r.from,t);if(a?(o=a.state,i=a.pos+1):(o=this.streamParser.startState(e.unit),i=0),t-i>1e4)return null;for(;i=r&&n+t.length<=i&&t.prop(e.stateAfter);if(o)return{state:e.streamParser.copyState(o),pos:n+t.length};for(let o=t.children.length-1;o>=0;o--){let a=t.children[o],s=n+t.positions[o],l=a instanceof Lu&&s=t.length)return t;i||t.type!=e.topNode||(i=!0);for(let o=t.children.length-1;o>=0;o--){let a,s=t.positions[o],l=t.children[o];if(sn&&mh(e,r.tree,0-r.offset,n,o);if(a&&(t=gh(e,r.tree,n+r.offset,a.pos+r.offset,!1)))return{state:a.state,tree:t}}return{state:e.streamParser.startState(r?Yd(r):4),tree:Lu.empty}}(e,n,o,null==i?void 0:i.state);this.state=a,this.parsedPos=this.chunkStart=o+s.length;for(let e=0;e=t?this.finish():e&&this.parsedPos>=e.viewport.to?(e.skipUntilInView(this.parsedPos,t),this.finish()):null}stopAt(e){this.stoppedAt=e}lineAfter(e){let t=this.input.chunk(e);if(this.input.lineChunks)"\n"==t&&(t="");else{let e=t.indexOf("\n");e>-1&&(t=t.slice(0,e))}return e+t.length<=this.to?t:t.slice(0,this.to-e)}nextLine(){let e=this.parsedPos,t=this.lineAfter(e),n=e+t.length;for(let e=this.rangeIndex;;){let r=this.ranges[e].to;if(r>=n)break;if(t=t.slice(0,r-(n-t.length)),e++,e==this.ranges.length)break;let i=this.ranges[e].from,o=this.lineAfter(i);t+=o,n=i+o.length}return{line:t,end:n}}skipGapsTo(e,t,n){for(;;){let r=this.ranges[this.rangeIndex].to,i=e+t;if(n>0?r>i:r>=i)break;t+=this.ranges[++this.rangeIndex].from-r}return t}moveRangeIndex(){for(;this.ranges[this.rangeIndex].to1){t+=i=this.skipGapsTo(t,i,1);let e=this.chunk.length;n+=i=this.skipGapsTo(n,i,-1),r+=this.chunk.length-e}return this.chunk.push(e,t,n,r),i}parseLine(e){let{line:t,end:n}=this.nextLine(),r=0,{streamParser:i}=this.lang,o=new hh(t,e?e.state.tabSize:4,e?Yd(e.state):2);if(o.eol())i.blankLine(this.state,o.indentUnit);else for(;!o.eol();){let e=yh(i.token,o,this.state);if(e&&(r=this.emitToken(this.lang.tokenTable.resolve(e),this.parsedPos+o.start,this.parsedPos+o.pos,4,r)),o.start>1e4)break}this.parsedPos=n,this.moveRangeIndex(),this.parsedPost.start)return r}throw new Error("Stream parser failed to advance stream.")}const bh=Object.create(null),wh=[_u.none],xh=new Du(wh),kh=[],Sh=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])Sh[e]=Mh(bh,t);class Ch{constructor(e){this.extra=e,this.table=Object.assign(Object.create(null),Sh)}resolve(e){return e?this.table[e]||(this.table[e]=Mh(this.extra,e)):0}}const jh=new Ch(bh);function Oh(e,t){kh.indexOf(e)>-1||(kh.push(e),console.warn(t))}function Mh(e,t){let n=null;for(let r of t.split(".")){let t=e[r]||Ed[r];t?"function"==typeof t?n?n=t(n):Oh(r,`Modifier ${r} used at start of tag`):n?Oh(r,`Tag ${r} used as modifier`):n=t:Oh(r,`Unknown highlighting tag ${r}`)}if(!n)return 0;let r=t.replace(/ /g,"_"),i=_u.define({id:wh.length,name:r,props:[sd({[r]:n})]});return wh.push(i),i.id}const Ph=Ao.define(),Eh=Ao.define(),Ah=no.define(),Th=no.define({combine:e=>Uo(e,{minDepth:100,newGroupDelay:500},{minDepth:Math.max,newGroupDelay:Math.min})});const _h=co.define({create:()=>Uh.empty,update(e,t){let n=t.state.facet(Th),r=t.annotation(Ph);if(r){let i=t.docChanged?Ji.single(function(e){let t=0;return e.iterChangedRanges(((e,n)=>t=n)),t}(t.changes)):void 0,o=Lh.fromTransaction(t,i),a=r.side,s=0==a?e.undone:e.done;return s=o?$h(s,s.length,n.minDepth,o):Hh(s,t.startState.selection),new Uh(0==a?r.rest:s,0==a?s:r.rest)}let i=t.annotation(Eh);if("full"!=i&&"before"!=i||(e=e.isolate()),!1===t.annotation(Ro.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let o=Lh.fromTransaction(t),a=t.annotation(Ro.time),s=t.annotation(Ro.userEvent);return o?e=e.addChanges(o,a,s,n.newGroupDelay,n.minDepth):t.selection&&(e=e.addSelection(t.startState.selection,a,s,n.newGroupDelay)),"full"!=i&&"after"!=i||(e=e.isolate()),e},toJSON:e=>({done:e.done.map((e=>e.toJSON())),undone:e.undone.map((e=>e.toJSON()))}),fromJSON:e=>new Uh(e.done.map(Lh.fromJSON),e.undone.map(Lh.fromJSON))});function Dh(e={}){return[_h,Th.of(e),Gc.domEventHandlers({beforeinput(e,t){let n="historyUndo"==e.inputType?zh:"historyRedo"==e.inputType?Ih:null;return!!n&&(e.preventDefault(),n(t))}})]}function Rh(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let i=n.field(_h,!1);if(!i)return!1;let o=i.pop(e,n,t);return!!o&&(r(o),!0)}}const zh=Rh(0,!1),Ih=Rh(1,!1);class Lh{constructor(e,t,n,r,i){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=r,this.selectionsAfter=i}setSelAfter(e){return new Lh(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map((e=>e.toJSON()))}}static fromJSON(e){return new Lh(e.changes&&Wi.fromJSON(e.changes),[],e.mapped&&Bi.fromJSON(e.mapped),e.startSelection&&Ji.fromJSON(e.startSelection),e.selectionsAfter.map(Ji.fromJSON))}static fromTransaction(e,t){let n=Zh;for(let t of e.startState.facet(Ah)){let r=t(e);r.length&&(n=n.concat(r))}return!n.length&&e.changes.empty?null:new Lh(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,Zh)}static selection(e){return new Lh(void 0,Zh,void 0,void 0,e)}}function $h(e,t,n,r){let i=t+1>n+20?t-n-1:0,o=e.slice(i,t);return o.push(r),o}function Nh(e,t){return e.length?t.length?e.concat(t):e:t}const Zh=[];function Hh(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-200));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),$h(e,e.length-1,1e9,n.setSelAfter(r)))}return[Lh.selection([t])]}function Vh(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function Fh(e,t){if(!e.length)return e;let n=e.length,r=Zh;for(;n;){let i=Bh(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){let t=e.slice(0,n);return t[n-1]=i,t}t=i.mapped,n--,r=i.selectionsAfter}return r.length?[Lh.selection(r)]:Zh}function Bh(e,t,n){let r=Nh(e.selectionsAfter.length?e.selectionsAfter.map((e=>e.map(t))):Zh,n);if(!e.changes)return Lh.selection(r);let i=e.changes.map(t),o=t.mapDesc(e.changes,!0),a=e.mapped?e.mapped.composeDesc(o):o;return new Lh(i,Do.mapEffects(e.effects,t),a,e.startSelection.map(o),r)}const Wh=/^(input\.type|delete)($|\.)/;class Uh{constructor(e,t,n=0,r){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new Uh(this.done,this.undone):this}addChanges(e,t,n,r,i){let o=this.done,a=o[o.length-1];return o=a&&a.changes&&!a.changes.empty&&e.changes&&(!n||Wh.test(n))&&(!a.selectionsAfter.length&&t-this.prevTimen.push(e,t))),t.iterChangedRanges(((e,t,i,o)=>{for(let e=0;e=t&&i<=a&&(r=!0)}})),r}(a.changes,e.changes)||"input.type.compose"==n)?$h(o,o.length-1,i,new Lh(e.changes.compose(a.changes),Nh(e.effects,a.effects),a.mapped,a.startSelection,Zh)):$h(o,o.length,i,e),new Uh(o,Zh,t,n)}addSelection(e,t,n,r){let i=this.done.length?this.done[this.done.length-1].selectionsAfter:Zh;return i.length>0&&t-this.prevTimee.empty!=t.ranges[n].empty)).length}(i[i.length-1],e)?this:new Uh(Hh(this.done,e),this.undone,t,n)}addMapping(e){return new Uh(Fh(this.done,e),Fh(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let r=0==e?this.done:this.undone;if(0==r.length)return null;let i=r[r.length-1];if(n&&i.selectionsAfter.length)return t.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:Ph.of({side:e,rest:Vh(r)}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0});if(i.changes){let n=1==r.length?Zh:r.slice(0,r.length-1);return i.mapped&&(n=Fh(n,i.mapped)),t.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:Ph.of({side:e,rest:n}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}return null}}Uh.empty=new Uh(Zh,Zh);function Yh(e,t){return Ji.create(e.ranges.map(t),e.mainIndex)}function qh(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function Gh({state:e,dispatch:t},n){let r=Yh(e.selection,n);return!r.eq(e.selection)&&(t(qh(e,r)),!0)}function Kh(e,t){return Ji.cursor(t?e.to:e.from)}function Xh(e,t){return Gh(e,(n=>n.empty?e.moveByChar(n,t):Kh(n,t)))}function Qh(e){return e.textDirectionAt(e.state.selection.main.head)==rl.LTR}const Jh=e=>Xh(e,!Qh(e)),ef=e=>Xh(e,Qh(e));function tf(e,t){return Gh(e,(n=>n.empty?e.moveByGroup(n,t):Kh(n,t)))}function nf(e,t){return Gh(e,(n=>{if(!n.empty)return Kh(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)}))}const rf=e=>nf(e,!1),of=e=>nf(e,!0);function af(e){return Math.max(e.defaultLineHeight,Math.min(e.dom.clientHeight,innerHeight)-5)}function sf(e,t){let{state:n}=e,r=Yh(n.selection,(n=>n.empty?e.moveVertically(n,t,af(e)):Kh(n,t)));if(r.eq(n.selection))return!1;let i,o=e.coordsAtPos(n.selection.main.head),a=e.scrollDOM.getBoundingClientRect();return o&&o.top>a.top&&o.bottomsf(e,!1),cf=e=>sf(e,!0);function uf(e,t,n){let r=e.lineBlockAt(t.head),i=e.moveToLineBoundary(t,n);if(i.head==t.head&&i.head!=(n?r.to:r.from)&&(i=e.moveToLineBoundary(t,n,!1)),!n&&i.head==r.from&&r.length){let n=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;n&&t.head!=r.from+n&&(i=Ji.cursor(r.from+n))}return i}function df(e,t){let n=Yh(e.state.selection,(e=>{let n=t(e);return Ji.range(e.anchor,n.head,n.goalColumn)}));return!n.eq(e.state.selection)&&(e.dispatch(qh(e.state,n)),!0)}function hf(e,t){return df(e,(n=>e.moveByChar(n,t)))}const ff=e=>hf(e,!Qh(e)),pf=e=>hf(e,Qh(e));function mf(e,t){return df(e,(n=>e.moveByGroup(n,t)))}function gf(e,t){return df(e,(n=>e.moveVertically(n,t)))}const vf=e=>gf(e,!1),yf=e=>gf(e,!0);function bf(e,t){return df(e,(n=>e.moveVertically(n,t,af(e))))}const wf=e=>bf(e,!1),xf=e=>bf(e,!0),kf=({state:e,dispatch:t})=>(t(qh(e,{anchor:0})),!0),Sf=({state:e,dispatch:t})=>(t(qh(e,{anchor:e.doc.length})),!0),Cf=({state:e,dispatch:t})=>(t(qh(e,{anchor:e.selection.main.anchor,head:0})),!0),jf=({state:e,dispatch:t})=>(t(qh(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0);function Of({state:e,dispatch:t},n){if(e.readOnly)return!1;let r="delete.selection",i=e.changeByRange((e=>{let{from:t,to:i}=e;if(t==i){let e=n(t);et&&(r="delete.forward"),t=Math.min(t,e),i=Math.max(i,e)}return t==i?{range:e}:{changes:{from:t,to:i},range:Ji.cursor(t)}}));return!i.changes.empty&&(t(e.update(i,{scrollIntoView:!0,userEvent:r,effects:"delete.selection"==r?Gc.announce.of(e.phrase("Selection deleted")):void 0})),!0)}function Mf(e,t,n){if(e instanceof Gc)for(let r of e.state.facet(Gc.atomicRanges).map((t=>t(e))))r.between(t,t,((e,r)=>{et&&(t=n?r:e)}));return t}const Pf=(e,t)=>Of(e,(n=>{let r,i,{state:o}=e,a=o.doc.lineAt(n);if(!t&&n>a.from&&nPf(e,!1),Af=e=>Pf(e,!0),Tf=(e,t)=>Of(e,(n=>{let r=n,{state:i}=e,o=i.doc.lineAt(r),a=i.charCategorizer(r);for(let e=null;;){if(r==(t?o.to:o.from)){r==n&&o.number!=(t?i.doc.lines:1)&&(r+=t?1:-1);break}let s=zi(o.text,r-o.from,t)+o.from,l=o.text.slice(Math.min(r,s)-o.from,Math.max(r,s)-o.from),c=a(l);if(null!=e&&c!=e)break;" "==l&&r==n||(e=c),r=s}return Mf(e,r,t)})),_f=e=>Tf(e,!1),Df=e=>Of(e,(t=>{let n=e.lineBlockAt(t).to;return Mf(e,t{if(t.readOnly)return!1;let r=t.changeByRange((n=>{let{from:r,to:i}=n,o=t.doc.lineAt(r),a=!e&&r==i&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n,r=zd(e).resolveInner(t),i=r.childBefore(t),o=r.childAfter(t);return i&&o&&i.to<=t&&o.from>=t&&(n=i.type.prop(Au.closedBy))&&n.indexOf(o.name)>-1&&e.doc.lineAt(i.to).from==e.doc.lineAt(o.from).from?{from:i.to,to:o.from}:null}(t,r);e&&(r=i=(i<=o.to?o:t.doc.lineAt(i)).to);let s=new Kd(t,{simulateBreak:r,simulateDoubleBreak:!!a}),l=Gd(s,r);for(null==l&&(l=/^\s*/.exec(t.doc.lineAt(r).text)[0].length);io.from&&rGh(e,(t=>Ji.cursor(e.lineBlockAt(t.head).from,1))),shift:e=>df(e,(t=>Ji.cursor(e.lineBlockAt(t.head).from)))},{key:"Ctrl-e",run:e=>Gh(e,(t=>Ji.cursor(e.lineBlockAt(t.head).to,-1))),shift:e=>df(e,(t=>Ji.cursor(e.lineBlockAt(t.head).to)))},{key:"Ctrl-d",run:Af},{key:"Ctrl-h",run:Ef},{key:"Ctrl-k",run:Df},{key:"Ctrl-Alt-h",run:_f},{key:"Ctrl-o",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange((e=>({changes:{from:e.from,to:e.to,insert:Si.of(["",""])},range:Ji.cursor(e.from)})));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange((t=>{if(!t.empty||0==t.from||t.from==e.doc.length)return{range:t};let n=t.from,r=e.doc.lineAt(n),i=n==r.from?n-1:zi(r.text,n-r.from,!1)+r.from,o=n==r.to?n+1:zi(r.text,n-r.from,!0)+r.from;return{changes:{from:i,to:o,insert:e.doc.slice(n,o).append(e.doc.slice(i,n))},range:Ji.cursor(o)}}));return!n.changes.empty&&(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:cf}],If=[{key:"ArrowLeft",run:Jh,shift:ff,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:e=>tf(e,!Qh(e)),shift:e=>mf(e,!Qh(e)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:e=>Gh(e,(t=>uf(e,t,!Qh(e)))),shift:e=>df(e,(t=>uf(e,t,!Qh(e)))),preventDefault:!0},{key:"ArrowRight",run:ef,shift:pf,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:e=>tf(e,Qh(e)),shift:e=>mf(e,Qh(e)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:e=>Gh(e,(t=>uf(e,t,Qh(e)))),shift:e=>df(e,(t=>uf(e,t,Qh(e)))),preventDefault:!0},{key:"ArrowUp",run:rf,shift:vf,preventDefault:!0},{mac:"Cmd-ArrowUp",run:kf,shift:Cf},{mac:"Ctrl-ArrowUp",run:lf,shift:wf},{key:"ArrowDown",run:of,shift:yf,preventDefault:!0},{mac:"Cmd-ArrowDown",run:Sf,shift:jf},{mac:"Ctrl-ArrowDown",run:cf,shift:xf},{key:"PageUp",run:lf,shift:wf},{key:"PageDown",run:cf,shift:xf},{key:"Home",run:e=>Gh(e,(t=>uf(e,t,!1))),shift:e=>df(e,(t=>uf(e,t,!1))),preventDefault:!0},{key:"Mod-Home",run:kf,shift:Cf},{key:"End",run:e=>Gh(e,(t=>uf(e,t,!0))),shift:e=>df(e,(t=>uf(e,t,!0))),preventDefault:!0},{key:"Mod-End",run:Sf,shift:jf},{key:"Enter",run:Rf(!1)},{key:"Mod-a",run:({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:Ef,shift:Ef},{key:"Delete",run:Af},{key:"Mod-Backspace",mac:"Alt-Backspace",run:_f},{key:"Mod-Delete",mac:"Alt-Delete",run:e=>Tf(e,!0)},{mac:"Mod-Backspace",run:e=>Of(e,(t=>{let n=e.lineBlockAt(t).from;return Mf(e,t>n?n:Math.max(0,t-1),!1)}))},{mac:"Mod-Delete",run:Df}].concat(zf.map((e=>({mac:e.key,run:e.run,shift:e.shift})))),Lf=e=>{const t=(...t)=>e.color(...t)({theme:e});return[Gc.theme({"&":{height:"100%",color:t("dark0"),backgroundColor:t("dark90")},".cm-content":{caretColor:"#a0a4ae",fontFamily:e.fonts.code,lineHeight:e.lineHeights.$140,fontSize:e.fontSizes.$14,padding:e.space.$8},".cm-cursor, .cm-dropCursor":{borderLeftColor:t("yellow50","light0"),borderLeftWidth:"2px",transform:"translateX(1px)"},"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:t("dark60")},".cm-activeLine":{backgroundColor:t("dark80")},".cm-gutters":{backgroundColor:t("dark90"),borderRight:`1px solid ${t("dark80")}`,paddingRight:"4px",color:t("dark50")},".cm-activeLineGutter":{backgroundColor:t("dark90"),color:t("dark20")},".cm-indent span":{color:t("dark90"),"user-select":"text"},".cm-indent span::selection":{color:t("dark40"),backgroundColor:t("dark60")}},{dark:"dark"===e.name}),lh(ih.define([{tag:[Ed.comment],color:t("dark30"),fontStyle:"italic"},{tag:[Ed.variableName],color:t("dark10")},{tag:[Ed.typeName,Ed.className],color:t("yellow70","yellow30")},{tag:[Ed.propertyName],color:t("yellow40","yellow30")},{tag:[Ed.attributeName],color:t("magenta70","magenta50")},{tag:[Ed.tagName],color:t("yellow70","yellow30")},{tag:[Ed.squareBracket],color:t("dark30")},{tag:[Ed.string],color:t("green70","green30")},{tag:[Ed.number,Ed.changed,Ed.annotation,Ed.modifier,Ed.self,Ed.namespace],color:t("dark10")},{tag:Ed.heading,color:t("dark30")},{tag:[Ed.special(Ed.variableName),Ed.variableName],color:t("purple70","purple30")},{tag:[Ed.atom,Ed.heading2,Ed.angleBracket,Ed.keyword],color:t("blue60","blue30")},{tag:[Ed.meta],color:t("teal50","teal30")},{tag:[Ed.operator,Ed.operatorKeyword],color:t("dark10")}]))]},$f=(e,t)=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`Undefined state ${t} in simple mode`)};class Nf{constructor(e,t){(e.next||e.push)&&$f(t,e.next||e.push),this.data=e,this.regex=((e,t)=>{if(!e)return/(?:)/;let n,r="";return e instanceof RegExp?(e.ignoreCase&&(r="i"),n=e.source):n=String(e),new RegExp(`${!1===t?"":"^"}(?:${n})`,r)})(e.regex),this.token=(e=>{if(!e)return null;if(e.apply)return e;if("string"==typeof e)return e.replace(/\./g," ");const t=[];for(let n=0;n(t,n)=>{if(n.pending){const e=n.pending.shift();return 0===n.pending.length&&(n.pending=null),t.pos+=e.text.length,e.token}const r=e[n.state];for(let e=0;e2&&i.token&&"string"!=typeof i.token){n.pending=[];for(let e=2;e(n,r)=>{if(null==n.indent||t.dontIndentStates&&t.doneIndentState.indexOf(n.state)>-1)return null;let i=n.indent.length-1;const o=t=>{for(let n=0;n{$f(e,"start");const t={},n=e.languageData||{};let r=!1;return Object.keys(e).forEach((n=>{if("meta"!==n){t[n]=[];const i=e[n];for(let o=0;o({state:"start",pending:null,indent:r?[]:null}),copyState:e=>{const t={state:e.state,pending:e.pending,indent:e.indent&&e.indent.slice(0),stack:void 0};return e.stack&&(t.stack=e.stack.slice(0)),t},token:Zf(t),indent:Hf(t,n),languageData:n}};var Ff;function Bf(e,t,n){return Object.assign({regex:e,token:t},n)}!function(e){e.AM="atom",e.AT="attribute",e.BE="builtin.em",e.BI="builtin",e.BK="bracket",e.CM="comment",e.DF="keyword",e.HL="header",e.KW="property",e.MT="meta",e.NB="number",e.OP="operator",e.PC="punctuation",e.PR="property",e.SE="string.em",e.SH="heading2",e.SS="string.strong",e.SSE="string.strong.em",e.S2="string-2",e.ST="text",e.TG="tag",e.V2="variable-2"}(Ff||(Ff={}));const Wf={keywords:/(\|\s)?(\*+ *)(user keywords?|keywords?)( *\**)/i,settings:/(\|\s)?(\*+ *)(settings?)( *\**)/i,test_cases:/(\|\s)?(\*+ *)(tasks?|test cases?)( *\**)/i,variables:/(\|\s)?(\*+ *)(variables?)( *\**)/i},Uf=Object.keys(Wf).map((e=>Bf(Wf[e],[Ff.BK,Ff.HL,Ff.HL,Ff.HL],{next:e,sol:!0}))),Yf=Bf(/#.*$/,Ff.CM,{pop:!0}),qf=/[*\-+\\%&|=>+-*\/%)*==?/,Ff.OP),Bf(/_\*.*?\*_/,Ff.SSE),Bf(/\*.*?\*/,Ff.SS),Bf(/_.*?_/,Ff.SE),Bf(/[^\s$@%&]+/,Ff.ST),Bf(/[$@%&](?!\{)/,Ff.ST)];hp.start=[Bf(/(%%python)( module )?(.*)?/,[Ff.MT,Ff.KW,Ff.V2],{mode:{spec:"ipython"},sol:!0}),Bf(/(%%[^\s]*).*$/,Ff.MT,{sol:!0}),...fp],hp.settings=[np,tp,op,ip,ap,sp,Bf(/(\|*\s*)(resource|variables|documentation|metadata|test timeout|task timeout)(\s*)/i,[Ff.BK,Ff.MT,null],{sol:!0}),...fp],hp.library=[up,cp,lp,Bf(/(WITH NAME)(\t+| +| +\| +)([^|\s]*)(\s*)(\|?)(\s*)(?=$)/,[Ff.AM,Ff.BK,Ff.DF,null,Ff.BK,null],{pop:!0}),...fp];const pp=Bf(/(\|\s*\|\s*|\s\s+)?(given|when|then|and|but)/i,[Ff.BK,Ff.BE],{push:"keyword_invocation",sol:!0}),mp=Bf(/(\t+| +)(?!\.\.\.)/,null,{push:"keyword_invocation",sol:!0}),gp=Bf(/(\| )(\s*)(|[^|\s][^|]*)(\s*)( \|)(\s+)/,[Ff.BK,null,Ff.SH,null,Ff.BK,null],{push:"keyword_invocation",sol:!0}),vp=Bf(/(\s\|*\s*)(:FOR)(\s\|*\s*)/,[null,Ff.AM,null],{push:"loop_start_old",sol:!0}),yp=Bf(/(\s\|*\s*)(FOR)(\s\|*\s*)/,[null,Ff.AM,null],{push:"loop_start_new",sol:!0}),bp=Bf(/(\s*)(IF)(\s\|*\s*)(?=[^\s].*\s{2,})/,[null,Ff.AM,null],{push:"inline_if_start",sol:!0}),wp=Bf(/(\s+)(.*?)(\s+)(=)(\s+)(IF)(\s\|*\s*)(?=[^\s].*\s{2,})/,[null,Ff.V2,null,Ff.OP,null,Ff.AM,null],{push:"inline_if_start",sol:!0}),xp=Bf(/(\s\|*\s*)(IF)(\s\|*\s*)(?![^\s].*\s{2,})/,[null,Ff.AM,null],{push:"if_start",sol:!0}),kp=Bf(/(\s\|*\s*)(ELSE IF)(\s\|*\s*)/,[null,Ff.AM,null],{next:"if_else_if_start",sol:!0}),Sp=Bf(/(\s\|*\s*)(ELSE)(?=$)/,[null,Ff.AM],{next:"if_else_start",sol:!0}),Cp=Bf(/(\s\|*\s*)(TRY)(?=$)/,[null,Ff.AM],{push:"try_start",sol:!0}),jp=Bf(/(\s\|*\s*)(EXCEPT)/,[null,Ff.AM],{next:"try_except_start",sol:!0}),Op=Bf(/(\s\|*\s*)(ELSE)(?=$)/,[null,Ff.AM],{next:"try_else_start",sol:!0}),Mp=Bf(/(\s\|*\s*)(FINALLY)/,[null,Ff.AM],{next:"try_finally_start",sol:!0}),Pp=Bf(/(\s\|*\s*)(WHILE)/,[null,Ff.AM],{push:"while_start",sol:!0}),Ep=Bf(/([|\s]*\s*)(END)(?=$)/,[null,Ff.AM],{sol:!0,pop:!0}),Ap=[Bf(/\s\|\s*/,Ff.BK),Yf,cp,up,Gf,lp,Kf,Bf(/ +/,null)];hp.tags=[...Ap,Bf(/[^$&%@]*?(?=( +| \|))/,Ff.TG),Bf(/[^$&%@|]/,Ff.TG)],hp.tags_comma=[...Ap,Bf(/(,)(\s*)/,[Ff.PC,null]),Bf(/[^$&%@,]+(?=,$)/,Ff.TG),Bf(/[^$&%@|,]/,Ff.TG)];const Tp=Bf(/\s*(?=$)/,null,{sol:!0}),_p=[pp,gp,mp,Bf(/\|\s(?=[^\s*]*\|)/,null,{sol:!0,push:"keyword_invocation"}),Bf(/(?=[^\s*])/,null,{sol:!0,push:"keyword_invocation"})],Dp=Bf(/(\t+| +)(\[\s*)(arguments|documentation|return|timeout)(\s*\])(\s*)/i,[null,Ff.MT,Ff.MT,Ff.MT,null],{sol:!0}),Rp=Bf(/(\|)(\s+)([^|*]*)(\s+)(\|)(\s+)(\[\s*)(arguments|documentation|return|timeout)(\s*\])(\s*)(\|?)/i,[Ff.BK,null,Ff.SH,null,Ff.BK,null,Ff.MT,Ff.MT,Ff.MT,null,Ff.BK],{sol:!0}),zp=Bf(/(\s*)(BREAK|CONTINUE|RETURN)([\s|]{2,}|$)/,[null,Ff.AM,null]),Ip=[zp,vp,yp,Pp,wp,bp,xp,Cp];hp.keywords=[cp,ep,rp,Dp,Rp,Bf(/(?=[^\s$&%@*|]+)/,null,{sol:!0,push:"keyword_def"}),...Ip,Tp,..._p,...fp];const Lp=/([^\s]*?(?=[$&%@]\{))/i,$p=/(?:[^\t\n\r|])+?(?=$|\t|\n|\r| +)/,Np=/[^\s|]+(?=$|[|]|\t| +)/,Zp=/([^\n$\s*=|]+?(?= ))/i;hp.keyword_def=[Gf,lp,Kf,Bf(/ /,null),Bf(Lp,Ff.DF),Bf(Np,Ff.DF,{pop:!0}),Bf(Zp,Ff.DF),Bf(/(?=$)/,null,{sol:!0,pop:!0})];const Hp=Bf(/([|\s]*\s*)(IN)( RANGE| ENUMERATE| ZIP)?/,[null,Ff.AM,Ff.AM]);hp.loop_start_new=[Hp,Bf(/[.]{3}/,Ff.BK),Gf,Bf(/\}(?=$)/,Ff.V2),Kf,...Ip,Ep,Tp,..._p,...fp],hp.inline_if_start=[cp,Bf(/[\s|]{2,}/,null,{next:"inline_if_start_keyword"}),up,Gf,Bf(/\}(?=$)/,Ff.V2),Kf,...fp],hp.inline_if_start_keyword=[cp,zp,up,Bf(Lp,Ff.KW,{next:"inline_if_keyword_invoking"}),Bf($p,Ff.KW,{next:"inline_if_keyword_invoking"}),Bf(Np,Ff.KW,{next:"inline_if_keyword_invoking"}),Bf(Zp,Ff.KW,{next:"inline_if_keyword_invoking"})],hp.inline_if_keyword_invoking=[cp,up,Bf(/(\s\|*\s*)(ELSE IF)(\s\|*\s*)/,[null,Ff.AM,null],{next:"inline_if_start"}),Bf(/(\s\|*\s*)(ELSE)(\s\|*\s*)/,[null,Ff.AM,null],{next:"inline_if_start_else"}),Gf,Bf(/\}(?=$)/,Ff.V2),Kf,...fp],hp.inline_if_start_else=[cp,Bf(Lp,Ff.KW,{next:"inline_if_else_keyword_invoking"}),Bf($p,Ff.KW,{next:"inline_if_else_keyword_invoking"}),Bf(Np,Ff.KW,{next:"inline_if_else_keyword_invoking"}),Bf(Zp,Ff.KW,{next:"inline_if_else_keyword_invoking"}),...fp],hp.inline_if_else_keyword_invoking=[cp,up,Gf,Bf(/\}(?=$)/,Ff.V2),Kf,...fp],hp.if_start=[Bf(/[.]{3}/,Ff.BK),Gf,Bf(/\}(?=$)/,Ff.V2),Kf,...Ip,kp,Sp,Ep,Tp,..._p,...fp],hp.if_else_if_start=[Bf(/[.]{3}/,Ff.BK),Gf,Bf(/\}(?=$)/,Ff.V2),Kf,...Ip,kp,Sp,Ep,Tp,..._p,...fp],hp.if_else_start=[...Ip,Ep,Tp,..._p,...fp],hp.try_start=[...Ip,jp,Op,Mp,Ep,Tp,..._p,...fp],hp.try_except_start=[Bf(/[.]{3}/,Ff.BK),Bf(/AS/,Ff.AM),Bf(/(glob|regexp):/i,Ff.BI),Gf,Bf(/\}(?=$)/,Ff.V2),Kf,...Ip,jp,Op,Mp,Ep,Tp,..._p,...fp],hp.try_else_start=[...Ip,Mp,Ep,Tp,..._p,...fp],hp.try_finally_start=[...Ip,Ep,Tp,..._p,...fp],hp.while_start=[Bf(/[.]{3}/,Ff.BK),Bf(/AS/,Ff.AM),Bf(/(glob|regexp):/i,Ff.BI),Gf,Bf(/\}(?=$)/,Ff.V2),Kf,...Ip,Ep,Tp,..._p,...fp],hp.loop_start_old=[Bf(/(?=.*)/,null,{sol:!0,next:"loop_body_old"}),Hp,Gf,Bf(/\}(?=$)/,Ff.V2),Kf,...fp],hp.loop_body_old=[..._p.map((e=>Object.assign(Object.assign({},e),{regex:new RegExp(/([|\s]*\s*)(\\)/.source+(e.regex instanceof RegExp?e.regex.source:e.regex)),token:e.token instanceof Array?[null,Ff.BK,...e.token]:[null,Ff.BK,null]}))),Bf(/(?=\s+[^\\])/,null,{pop:!0,sol:!0}),...fp];const Vp=Bf(/(\t+| +)(\[\s*)(documentation|timeout)(\s*\])(\s*)/i,[null,Ff.MT,Ff.MT,Ff.MT,null],{sol:!0}),Fp=Bf(/(\|)(\s+)([^|*]*)(\s+)(\|)(\s+)(\[\s*)(documentation|timeout)(\s*\])(\s*)(\|?)/i,[Ff.BK,null,Ff.SH,null,Ff.BK,null,Ff.MT,Ff.MT,Ff.MT,null,Ff.BK],{sol:!0});hp.test_cases=[...Uf,Tp,cp,ep,rp,Vp,Fp,...Ip,Bf(/([^|\s*].+?)(?=(\t| +|$))/,Ff.SH,{sol:!0}),..._p,Bf(/(\|\s+)([^\s*|.][^|]*?)(\s*)(\|?$)/,[Ff.BK,Ff.SH,Ff.BK],{sol:!0}),Bf(/(\| +)([^|\s].+?)(\s*)( \| )/,[Ff.BK,Ff.SH,null,Ff.BK],{sol:!0}),...fp],hp.keyword_invocation=[Bf(/( ?)(=)(\t+| +|\s+\|)/,[null,Ff.OP,null]),Bf(/(?=\s*$)/,null,{pop:!0}),Bf(/(\\|\.\.\.) +/,Ff.BK),Gf,lp,Kf,Yf,Bf(/( \| | +|\t+)(?=[$@&])/,Ff.BK),Bf(/( \| | +|\t+)/,Ff.BK,{pop:!0}),Bf(/ /,null),Bf(Lp,Ff.KW,{pop:!0}),Bf($p,Ff.KW,{pop:!0}),Bf(Np,Ff.KW,{pop:!0}),Bf(Zp,Ff.KW),...fp],hp.keyword_invocation_no_continue=[up,...hp.keyword_invocation],hp.variables=[...fp],hp.variable=[Gf,Bf(/(none|(cur|temp|exec)dir|\/|:|\\n|true|empty|false|null|space|test (name|documentation|status|message|tags)|prev test (name|status|message)|suite (name|source|documentation|status|message|metadata)|keyword (status|message)|(report|debug) file|log (file|level)|output (dir|file))(?=[.}]|\s+[*\-+\\%&|=>[ph.define(Vf(hp))];var Wp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var n,{label:r}=e,i=Ii(e,["label"]);return(0,a.jsxs)(Li,Object.assign({ref:t},i,{children:[0===(null===(n=i.variant)||void 0===n?void 0:n.indexOf("ticker"))&&(0,a.jsx)(zi.Z,{size:8}),r]}))}));$i.defaultProps={variant:"primary",size:"large"};class Ni{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){let r=[];return this.decompose(0,e,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(t,this.length,r,1),Hi.from(r,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){let n=[];return this.decompose(e,t,n,0),Hi.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),r=new Bi(this),i=new Bi(e);for(let e=t,o=t;;){if(r.next(e),i.next(e),e=0,r.lineBreak!=i.lineBreak||r.done!=i.done||r.value!=i.value)return!1;if(o+=r.value.length,r.done||o>=n)return!0}}iter(e=1){return new Bi(this,e)}iterRange(e,t=this.length){return new Wi(this,e,t)}iterLines(e,t){let n;if(null==e)n=this.iter();else{null==t&&(t=this.lines+1);let r=this.line(e).from;n=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new Ui(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(0==e.length)throw new RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new Zi(e):Hi.from(Zi.split(e,[])):Ni.empty}}class Zi extends Ni{constructor(e,t=function(e){let t=-1;for(let n of e)t+=n.length+1;return t}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,r){for(let i=0;;i++){let o=this.text[i],a=r+o.length;if((t?n:a)>=e)return new Yi(r,a,n,o);r=a+1,n++}}decompose(e,t,n,r){let i=e<=0&&t>=this.length?this:new Zi(Fi(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(1&r){let e=n.pop(),t=Vi(i.text,e.text.slice(),0,i.length);if(t.length<=32)n.push(new Zi(t,e.length+i.length));else{let e=t.length>>1;n.push(new Zi(t.slice(0,e)),new Zi(t.slice(e)))}}else n.push(i)}replace(e,t,n){if(!(n instanceof Zi))return super.replace(e,t,n);let r=Vi(this.text,Vi(n.text,Fi(this.text,0,e)),t),i=this.length+n.length-(t-e);return r.length<=32?new Zi(r,i):Hi.from(Zi.split(r,[]),i)}sliceString(e,t=this.length,n="\n"){let r="";for(let i=0,o=0;i<=t&&oe&&o&&(r+=n),ei&&(r+=a.slice(Math.max(0,e-i),t-i)),i=s+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],r=-1;for(let i of e)n.push(i),r+=i.length+1,32==n.length&&(t.push(new Zi(n,r)),n=[],r=-1);return r>-1&&t.push(new Zi(n,r)),t}}class Hi extends Ni{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let t of e)this.lines+=t.lines}lineInner(e,t,n,r){for(let i=0;;i++){let o=this.children[i],a=r+o.length,s=n+o.lines-1;if((t?s:a)>=e)return o.lineInner(e,t,n,r);r=a+1,n=s+1}}decompose(e,t,n,r){for(let i=0,o=0;o<=t&&i=o){let i=r&((o<=e?1:0)|(s>=t?2:0));o>=e&&s<=t&&!i?n.push(a):a.decompose(e-o,t-o,n,i)}o=s+1}}replace(e,t,n){if(n.lines=i&&t<=a){let s=o.replace(e-i,t-i,n),l=this.lines-o.lines+s.lines;if(s.lines>4&&s.lines>l>>6){let i=this.children.slice();return i[r]=s,new Hi(i,this.length-(t-e)+n.length)}return super.replace(i,a,s)}i=a+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n="\n"){let r="";for(let i=0,o=0;ie&&i&&(r+=n),eo&&(r+=a.sliceString(e-o,t-o,n)),o=s+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof Hi))return 0;let n=0,[r,i,o,a]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,i+=t){if(r==o||i==a)return n;let s=this.children[r],l=e.children[i];if(s!=l)return n+s.scanIdentical(l,t);n+=s.length+1}}static from(e,t=e.reduce(((e,t)=>e+t.length+1),-1)){let n=0;for(let t of e)n+=t.lines;if(n<32){let n=[];for(let t of e)t.flatten(n);return new Zi(n,t)}let r=Math.max(32,n>>5),i=r<<1,o=r>>1,a=[],s=0,l=-1,c=[];function u(e){let t;if(e.lines>i&&e instanceof Hi)for(let t of e.children)u(t);else e.lines>o&&(s>o||!s)?(d(),a.push(e)):e instanceof Zi&&s&&(t=c[c.length-1])instanceof Zi&&e.lines+t.lines<=32?(s+=e.lines,l+=e.length+1,c[c.length-1]=new Zi(t.text.concat(e.text),t.length+1+e.length)):(s+e.lines>r&&d(),s+=e.lines,l+=e.length+1,c.push(e))}function d(){0!=s&&(a.push(1==c.length?c[0]:Hi.from(c,l)),l=-1,s=c.length=0)}for(let t of e)u(t);return d(),1==a.length?a[0]:new Hi(a,t)}}function Vi(e,t,n=0,r=1e9){for(let i=0,o=0,a=!0;o=n&&(l>r&&(s=s.slice(0,r-i)),i0?1:(e instanceof Zi?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],i=this.offsets[n],o=i>>1,a=r instanceof Zi?r.text.length:r.children.length;if(o==(t>0?a:0)){if(0==n)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&i)==(t>0?0:1)){if(this.offsets[n]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(r instanceof Zi){let i=r.text[o+(t<0?-1:0)];if(this.offsets[n]+=t,i.length>Math.max(0,e))return this.value=0==e?i:t>0?i.slice(e):i.slice(0,i.length-e),this;e-=i.length}else{let i=r.children[o+(t<0?-1:0)];e>i.length?(e-=i.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(i),this.offsets.push(t>0?1:(i instanceof Zi?i.text.length:i.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class Wi{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new Bi(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=n?r:t<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class Ui{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:r}=this.inner.next(e);return t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(Ni.prototype[Symbol.iterator]=function(){return this.iter()},Bi.prototype[Symbol.iterator]=Wi.prototype[Symbol.iterator]=Ui.prototype[Symbol.iterator]=function(){return this});class Yi{constructor(e,t,n,r){this.from=e,this.to=t,this.number=n,this.text=r}get length(){return this.to-this.from}}let Ki="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((e=>e?parseInt(e,36):1));for(let e=1;ee)return Ki[t-1]<=e;return!1}function Gi(e){return e>=127462&&e<=127487}const Xi=8205;function Qi(e,t,n=!0,r=!0){return(n?Ji:eo)(e,t,r)}function Ji(e,t,n){if(t==e.length)return t;t&&to(e.charCodeAt(t))&&no(e.charCodeAt(t-1))&&t--;let r=ro(e,t);for(t+=io(r);t=0&&Gi(ro(e,r));)n++,r-=2;if(n%2==0)break;t+=2}}}return t}function eo(e,t,n){for(;t>0;){let r=Ji(e,t-2,n);if(r=56320&&e<57344}function no(e){return e>=55296&&e<56320}function ro(e,t){let n=e.charCodeAt(t);if(!no(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return to(r)?r-56320+(n-55296<<10)+65536:n}function io(e){return e<65536?1:2}const oo=/\r\n?|\n/;var ao=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(ao||(ao={}));class so{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;te)return i+(e-r);i+=a}else{if(n!=ao.Simple&&l>=e&&(n==ao.TrackDel&&re||n==ao.TrackBefore&&re))return null;if(l>e||l==e&&t<0&&!a)return e==r||t<0?i:i+s;i+=s}r=l}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return i}touchesRange(e,t=e){for(let n=0,r=0;n=0&&r<=t&&i>=e)return!(rt)||"cover";r=i}return!1}toString(){let e="";for(let t=0;t=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some((e=>"number"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeDesc");return new so(e)}static create(e){return new so(e)}}class lo extends so{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return ho(this,((t,n,r,i,o)=>e=e.replace(r,r+(n-t),o)),!1),e}mapDesc(e,t=!1){return fo(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let r=0,i=0;r=0){t[r]=a,t[r+1]=o;let s=r>>1;for(;n.length0&&uo(n,t,i.text),i.forward(e),a+=e}let l=e[o++];for(;a>1].toJSON()))}return e}static of(e,t,n){let r=[],i=[],o=0,a=null;function s(e=!1){if(!e&&!r.length)return;oa||e<0||a>t)throw new RangeError(`Invalid change range ${e} to ${a} (in doc of length ${t})`);let u=c?"string"==typeof c?Ni.of(c.split(n||oo)):c:Ni.empty,d=u.length;if(e==a&&0==d)return;eo&&co(r,e-o,-1),co(r,a-e,d),uo(i,r,u),o=a}}(e),s(!a),a}static empty(e){return new lo(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let r=0;rt&&"string"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==i.length)t.push(i[0],0);else{for(;n.length=0&&n<=0&&n==e[i+1]?e[i]+=t:0==t&&0==e[i]?e[i+1]+=n:r?(e[i]+=t,e[i+1]+=n):e.push(t,n)}function uo(e,t,n){if(0==n.length)return;let r=t.length-2>>1;if(r>1])),!(n||a==e.sections.length||e.sections[a+1]<0);)s=e.sections[a++],l=e.sections[a++];t(i,c,o,u,d),i=c,o=u}}}function fo(e,t,n,r=!1){let i=[],o=r?[]:null,a=new mo(e),s=new mo(t);for(let e=-1;;)if(-1==a.ins&&-1==s.ins){let e=Math.min(a.len,s.len);co(i,e,-1),a.forward(e),s.forward(e)}else if(s.ins>=0&&(a.ins<0||e==a.i||0==a.off&&(s.len=0&&e=0)){if(a.done&&s.done)return o?lo.createSet(i,o):so.create(i);throw new Error("Mismatched change set lengths")}{let t=0,n=a.len;for(;n;)if(-1==s.ins){let e=Math.min(n,s.len);t+=e,n-=e,s.forward(e)}else{if(!(0==s.ins&&s.lent||a.ins>=0&&a.len>t)&&(e||r.length>n),o.forward2(t),a.forward(t)}}else co(r,0,a.ins,e),i&&uo(i,r,a.text),a.next()}}class mo{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?Ni.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?Ni.empty:t[n].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class go{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return 16&this.flags?this.to:this.from}get head(){return 16&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 4&this.flags?-1:8&this.flags?1:0}get bidiLevel(){let e=3&this.flags;return 3==e?null:e}get goalColumn(){let e=this.flags>>5;return 33554431==e?void 0:e}map(e,t=-1){let n,r;return this.empty?n=r=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),r=e.mapPos(this.to,-1)),n==this.from&&r==this.to?this:new go(n,r,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return vo.range(e,t);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return vo.range(this.anchor,n)}eq(e){return this.anchor==e.anchor&&this.head==e.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid JSON representation for SelectionRange");return vo.range(e.anchor,e.head)}static create(e,t,n){return new go(e,t,n)}}class vo{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:vo.create(this.ranges.map((n=>n.map(e,t))),this.mainIndex)}eq(e){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let t=0;te.toJSON())),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new vo(e.ranges.map((e=>go.fromJSON(e))),e.main)}static single(e,t=e){return new vo([vo.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw new RangeError("A selection needs at least one range");for(let n=0,r=0;re?4:0)|i)}static normalized(e,t=0){let n=e[t];e.sort(((e,t)=>e.from-t.from)),t=e.indexOf(n);for(let n=1;nr.head?vo.range(a,o):vo.range(o,a))}}return new vo(e,t)}}function yo(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let bo=0;class wo{constructor(e,t,n,r,i){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=r,this.id=bo++,this.default=e([]),this.extensions="function"==typeof i?i(this):i}static define(e={}){return new wo(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:xo),!!e.static,e.enables)}of(e){return new ko([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new ko(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new ko(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],(n=>t(n.field(e))))}}function xo(e,t){return e==t||e.length==t.length&&e.every(((e,n)=>e===t[n]))}class ko{constructor(e,t,n,r){this.dependencies=e,this.facet=t,this.type=n,this.value=r,this.id=bo++}dynamicSlot(e){var t;let n=this.value,r=this.facet.compareInput,i=this.id,o=e[i]>>1,a=2==this.type,s=!1,l=!1,c=[];for(let n of this.dependencies)"doc"==n?s=!0:"selection"==n?l=!0:0==(1&(null!==(t=e[n.id])&&void 0!==t?t:1))&&c.push(e[n.id]);return{create:e=>(e.values[o]=n(e),1),update(e,t){if(s&&t.docChanged||l&&(t.docChanged||t.selection)||Co(e,c)){let t=n(e);if(a?!So(t,e.values[o],r):!r(t,e.values[o]))return e.values[o]=t,1}return 0},reconfigure:(e,t)=>{let s,l=t.config.address[i];if(null!=l){let i=No(t,l);if(this.dependencies.every((n=>n instanceof wo?t.facet(n)===e.facet(n):!(n instanceof Mo)||t.field(n,!1)==e.field(n,!1)))||(a?So(s=n(e),i,r):r(s=n(e),i)))return e.values[o]=i,0}else s=n(e);return e.values[o]=s,1}}}}function So(e,t,n){if(e.length!=t.length)return!1;for(let r=0;re[t.id])),i=n.map((e=>e.type)),o=r.filter((e=>!(1&e))),a=e[t.id]>>1;function s(e){let n=[];for(let t=0;te===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(Oo).find((e=>e.field==this));return((null==t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{let r=e.values[t],i=this.updateF(r,n);return this.compareF(r,i)?0:(e.values[t]=i,1)},reconfigure:(e,n)=>null!=n.config.address[this.id]?(e.values[t]=n.field(this),0):(e.values[t]=this.create(e),1)}}init(e){return[this,Oo.of({field:this,create:e})]}get extension(){return this}}const Eo=4,Po=3,Ao=2,To=1;function _o(e){return t=>new Ro(t,e)}const Do={highest:_o(0),high:_o(To),default:_o(Ao),low:_o(Po),lowest:_o(Eo)};class Ro{constructor(e,t){this.inner=e,this.prec=t}}class zo{of(e){return new Io(this,e)}reconfigure(e){return zo.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class Io{constructor(e,t){this.compartment=e,this.inner=t}}class Lo{constructor(e,t,n,r,i,o){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=r,this.staticValues=i,this.facets=o,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,t,n){let r=[],i=Object.create(null),o=new Map;for(let n of function(e,t,n){let r=[[],[],[],[],[]],i=new Map;function o(e,a){let s=i.get(e);if(null!=s){if(s<=a)return;let t=r[s].indexOf(e);t>-1&&r[s].splice(t,1),e instanceof Io&&n.delete(e.compartment)}if(i.set(e,a),Array.isArray(e))for(let t of e)o(t,a);else if(e instanceof Io){if(n.has(e.compartment))throw new RangeError("Duplicate use of compartment in extensions");let r=t.get(e.compartment)||e.inner;n.set(e.compartment,r),o(r,a)}else if(e instanceof Ro)o(e.inner,e.prec);else if(e instanceof Mo)r[a].push(e),e.provides&&o(e.provides,a);else if(e instanceof ko)r[a].push(e),e.facet.extensions&&o(e.facet.extensions,Ao);else{let t=e.extension;if(!t)throw new Error(`Unrecognized extension value in extension set (${e}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);o(t,a)}}return o(e,Ao),r.reduce(((e,t)=>e.concat(t)))}(e,t,o))n instanceof Mo?r.push(n):(i[n.facet.id]||(i[n.facet.id]=[])).push(n);let a=Object.create(null),s=[],l=[];for(let e of r)a[e.id]=l.length<<1,l.push((t=>e.slot(t)));let c=null==n?void 0:n.config.facets;for(let e in i){let t=i[e],r=t[0].facet,o=c&&c[e]||[];if(t.every((e=>0==e.type)))if(a[r.id]=s.length<<1|1,xo(o,t))s.push(n.facet(r));else{let e=r.combine(t.map((e=>e.value)));s.push(n&&r.compare(e,n.facet(r))?n.facet(r):e)}else{for(let e of t)0==e.type?(a[e.id]=s.length<<1|1,s.push(e.value)):(a[e.id]=l.length<<1,l.push((t=>e.dynamicSlot(t))));a[r.id]=l.length<<1,l.push((e=>jo(e,r,t)))}}let u=l.map((e=>e(a)));return new Lo(e,o,u,a,s,i)}}function $o(e,t){if(1&t)return 2;let n=t>>1,r=e.status[n];if(4==r)throw new Error("Cyclic dependency between fields and/or facets");if(2&r)return r;e.status[n]=4;let i=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|i}function No(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}const Zo=wo.define(),Ho=wo.define({combine:e=>e.some((e=>e)),static:!0}),Vo=wo.define({combine:e=>e.length?e[0]:void 0,static:!0}),Fo=wo.define(),Bo=wo.define(),Wo=wo.define(),Uo=wo.define({combine:e=>!!e.length&&e[0]});class Yo{constructor(e,t){this.type=e,this.value=t}static define(){return new Ko}}class Ko{of(e){return new Yo(this,e)}}class qo{constructor(e){this.map=e}of(e){return new Go(this,e)}}class Go{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new Go(this.type,t)}is(e){return this.type==e}static define(e={}){return new qo(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let r of e){let e=r.map(t);e&&n.push(e)}return n}}Go.reconfigure=Go.define(),Go.appendConfig=Go.define();class Xo{constructor(e,t,n,r,i,o){this.startState=e,this.changes=t,this.selection=n,this.effects=r,this.annotations=i,this.scrollIntoView=o,this._doc=null,this._state=null,n&&yo(n,t.newLength),i.some((e=>e.type==Xo.time))||(this.annotations=i.concat(Xo.time.of(Date.now())))}static create(e,t,n,r,i,o){return new Xo(e,t,n,r,i,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(Xo.userEvent);return!(!t||!(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function Qo(e,t){let n=[];for(let r=0,i=0;;){let o,a;if(r=e[r]))o=e[r++],a=e[r++];else{if(!(i=0;i--){let o=n[i](e);o&&Object.keys(o).length&&(r=Jo(r,ea(t,o,e.changes.newLength),!0))}return r==e?e:Xo.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}(n?function(e){let t=e.startState,n=!0;for(let r of t.facet(Fo)){let t=r(e);if(!1===t){n=!1;break}Array.isArray(t)&&(n=!0===n?t:Qo(n,t))}if(!0!==n){let r,i;if(!1===n)i=e.changes.invertedDesc,r=lo.empty(t.doc.length);else{let t=e.changes.filter(n);r=t.changes,i=t.filtered.mapDesc(t.changes).invertedDesc}e=Xo.create(t,r,e.selection&&e.selection.map(i),Go.mapEffects(e.effects,i),e.annotations,e.scrollIntoView)}let r=t.facet(Bo);for(let n=r.length-1;n>=0;n--){let i=r[n](e);e=i instanceof Xo?i:Array.isArray(i)&&1==i.length&&i[0]instanceof Xo?i[0]:ta(t,ra(i),!1)}return e}(i):i)}Xo.time=Yo.define(),Xo.userEvent=Yo.define(),Xo.addToHistory=Yo.define(),Xo.remote=Yo.define();const na=[];function ra(e){return null==e?na:Array.isArray(e)?e:[e]}var ia=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(ia||(ia={}));const oa=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let aa;try{aa=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(e){}function sa(e){return t=>{if(!/\S/.test(t))return ia.Space;if(function(e){if(aa)return aa.test(e);for(let t=0;t"€"&&(n.toUpperCase()!=n.toLowerCase()||oa.test(n)))return!0}return!1}(t))return ia.Word;for(let n=0;n-1)return ia.Word;return ia.Other}}class la{constructor(e,t,n,r,i,o){this.config=e,this.doc=t,this.selection=n,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=i,o&&(o._state=this);for(let e=0;ei.set(t,e))),n=null),i.set(t.value.compartment,t.value.extension)):t.is(Go.reconfigure)?(n=null,r=t.value):t.is(Go.appendConfig)&&(n=null,r=ra(r).concat(t.value));if(n)t=e.startState.values.slice();else{n=Lo.resolve(r,i,this),t=new la(n,this.doc,this.selection,n.dynamicSlots.map((()=>null)),((e,t)=>t.reconfigure(e,this)),null).values}new la(n,e.newDoc,e.newSelection,t,((t,n)=>n.update(t,e)),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange((t=>({changes:{from:t.from,to:t.to,insert:e},range:vo.cursor(t.from+e.length)})))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),r=this.changes(n.changes),i=[n.range],o=ra(n.effects);for(let n=1;ni.spec.fromJSON(o,e))))}return la.create({doc:e.doc,selection:vo.fromJSON(e.selection),extensions:t.extensions?r.concat([t.extensions]):r})}static create(e={}){let t=Lo.resolve(e.extensions||[],new Map),n=e.doc instanceof Ni?e.doc:Ni.of((e.doc||"").split(t.staticFacet(la.lineSeparator)||oo)),r=e.selection?e.selection instanceof vo?e.selection:vo.single(e.selection.anchor,e.selection.head):vo.single(0);return yo(r,n.length),t.staticFacet(Ho)||(r=r.asSingle()),new la(t,n,r,t.dynamicSlots.map((()=>null)),((e,t)=>t.create(e)),null)}get tabSize(){return this.facet(la.tabSize)}get lineBreak(){return this.facet(la.lineSeparator)||"\n"}get readOnly(){return this.facet(Uo)}phrase(e,...t){for(let t of this.facet(la.phrases))if(Object.prototype.hasOwnProperty.call(t,e)){e=t[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,((e,n)=>{if("$"==n)return"$";let r=+(n||1);return!r||r>t.length?e:t[r-1]}))),e}languageDataAt(e,t,n=-1){let r=[];for(let i of this.facet(Zo))for(let o of i(this,t,n))Object.prototype.hasOwnProperty.call(o,e)&&r.push(o[e]);return r}charCategorizer(e){return sa(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:n,length:r}=this.doc.lineAt(e),i=this.charCategorizer(e),o=e-n,a=e-n;for(;o>0;){let e=Qi(t,o,!1);if(i(t.slice(e,o))!=ia.Word)break;o=e}for(;ae.length?e[0]:4}),la.lineSeparator=Vo,la.readOnly=Uo,la.phrases=wo.define({compare(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every((n=>e[n]==t[n]))}}),la.languageData=Zo,la.changeFilter=Fo,la.transactionFilter=Bo,la.transactionExtender=Wo,zo.reconfigure=Go.define();class ua{eq(e){return this==e}range(e,t=e){return da.create(e,t,this)}}ua.prototype.startSide=ua.prototype.endSide=0,ua.prototype.point=!1,ua.prototype.mapMode=ao.TrackDel;class da{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(e,t,n){return new da(e,t,n)}}function ha(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class fa{constructor(e,t,n,r){this.from=e,this.to=t,this.value=n,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,r=0){let i=n?this.to:this.from;for(let o=r,a=i.length;;){if(o==a)return o;let r=o+a>>1,s=i[r]-e||(n?this.value[r].endSide:this.value[r].startSide)-t;if(r==o)return s>=0?o:a;s>=0?a=r:o=r+1}}between(e,t,n,r){for(let i=this.findIndex(t,-1e9,!0),o=this.findIndex(n,1e9,!1,i);ic||l==c&&u.startSide>0&&u.endSide<=0)continue;(c-l||u.endSide-u.startSide)<0||(o<0&&(o=l),u.point&&(a=Math.max(a,c-l)),n.push(u),r.push(l-o),i.push(c-o))}return{mapped:n.length?new fa(r,i,n,a):null,pos:o}}}class pa{constructor(e,t,n,r){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=r}static create(e,t,n,r){return new pa(e,t,n,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:r=0,filterTo:i=this.length}=e,o=e.filter;if(0==t.length&&!o)return this;if(n&&(t=t.slice().sort(ha)),this.isEmpty)return t.length?pa.of(t):this;let a=new va(this,null,-1).goto(0),s=0,l=[],c=new ma;for(;a.value||s=0){let e=t[s++];c.addInner(e.from,e.to,e.value)||l.push(e)}else 1==a.rangeIndex&&a.chunkIndexthis.chunkEnd(a.chunkIndex)||ia.to||i=i&&e<=i+o.length&&!1===o.between(i,e-i,t-i,n))return}this.nextLayer.between(e,t,n)}}iter(e=0){return ya.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return ya.from(e).goto(t)}static compare(e,t,n,r,i=-1){let o=e.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i)),a=t.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i)),s=ga(o,a,n),l=new wa(o,s,i),c=new wa(a,s,i);n.iterGaps(((e,t,n)=>xa(l,e,c,t,n,r))),n.empty&&0==n.length&&xa(l,0,c,0,0,r)}static eq(e,t,n=0,r){null==r&&(r=999999999);let i=e.filter((e=>!e.isEmpty&&t.indexOf(e)<0)),o=t.filter((t=>!t.isEmpty&&e.indexOf(t)<0));if(i.length!=o.length)return!1;if(!i.length)return!0;let a=ga(i,o),s=new wa(i,a,0).goto(n),l=new wa(o,a,0).goto(n);for(;;){if(s.to!=l.to||!ka(s.active,l.active)||s.point&&(!l.point||!s.point.eq(l.point)))return!1;if(s.to>r)return!0;s.next(),l.next()}}static spans(e,t,n,r,i=-1){let o=new wa(e,null,i).goto(t),a=t,s=o.openStart;for(;;){let e=Math.min(o.to,n);if(o.point){let n=o.activeForPoint(o.to),i=o.pointFroma&&(r.span(a,e,o.active,s),s=o.openEnd(e));if(o.to>n)return s+(o.point&&o.to>n?1:0);a=o.to,o.next()}}static of(e,t=!1){let n=new ma;for(let r of e instanceof da?[e]:t?function(e){if(e.length>1)for(let t=e[0],n=1;n0)return e.slice().sort(ha);t=r}return e}(e):e)n.add(r.from,r.to,r.value);return n.finish()}}pa.empty=new pa([],[],null,-1),pa.empty.nextLayer=pa.empty;class ma{finishChunk(e){this.chunks.push(new fa(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new ma)).add(e,t,n)}addInner(e,t,n){let r=e-this.lastTo||n.startSide-this.last.endSide;if(r<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(pa.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=pa.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function ga(e,t,n){let r=new Map;for(let t of e)for(let e=0;e=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=n&&r.push(new va(o,t,n,i));return 1==r.length?r[0]:new ya(r)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let e=this.heap.length>>1;e>=0;e--)ba(this.heap,e);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let e=this.heap.length>>1;e>=0;e--)ba(this.heap,e);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),ba(this.heap,0)}}}function ba(e,t){for(let n=e[t];;){let r=1+(t<<1);if(r>=e.length)break;let i=e[r];if(r+1=0&&(i=e[r+1],r++),n.compare(i)<0)break;e[r]=n,e[t]=i,t=r}}class wa{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=ya.from(e,t,n)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){Sa(this.active,e),Sa(this.activeTo,e),Sa(this.activeRank,e),this.minActive=ja(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:r,rank:i}=this.cursor;for(;t-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),n&&Sa(n,r)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let e=this.cursor.value;if(e.point){if(!(t&&this.cursor.to==this.to&&this.cursor.from=0&&n[t]=0&&!(this.activeRank[n]e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function xa(e,t,n,r,i,o){e.goto(t),n.goto(r);let a=r+i,s=r,l=r-t;for(;;){let t=e.to+l-n.to||e.endSide-n.endSide,r=t<0?e.to+l:n.to,i=Math.min(r,a);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&ka(e.activeForPoint(e.to),n.activeForPoint(n.to))||o.comparePoint(s,i,e.point,n.point):i>s&&!ka(e.active,n.active)&&o.compareRange(s,i,e.active,n.active),r>a)break;s=r,t<=0&&e.next(),t>=0&&n.next()}}function ka(e,t){if(e.length!=t.length)return!1;for(let n=0;n=t;n--)e[n+1]=e[n];e[t]=n}function ja(e,t){let n=-1,r=1e9;for(let i=0;ie.map((e=>t.replace(/&/,e))))).reduce(((e,t)=>e.concat(t))),a,o);else if(a&&"object"==typeof a){if(!l)throw new RangeError("The value of a property ("+n+") should be a primitive value.");i(r(n),a,s,c)}else null!=a&&s.push(n.replace(/_.*/,"").replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))+": "+a+";")}(s.length||c)&&o.push((!n||l||a?e:e.map(n)).join(", ")+" {"+s.join(" ")+"}")}for(let t in e)i(r(t),e[t],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=Pa[Ma]||1;return Pa[Ma]=e+1,"ͼ"+e.toString(36)}static mount(e,t){(e[Ea]||new _a(e)).mount(Array.isArray(t)?t:[t])}}let Ta=new Map;class _a{constructor(e){let t=e.ownerDocument||e,n=t.defaultView;if(!e.head&&e.adoptedStyleSheets&&n.CSSStyleSheet){let r=Ta.get(t);if(r)return e.adoptedStyleSheets=[r.sheet,...e.adoptedStyleSheets],e[Ea]=r;this.sheet=new n.CSSStyleSheet,e.adoptedStyleSheets=[this.sheet,...e.adoptedStyleSheets],Ta.set(t,this)}else{this.styleTag=t.createElement("style");let n=e.head||e;n.insertBefore(this.styleTag,n.firstChild)}this.modules=[],e[Ea]=this}mount(e){let t=this.sheet,n=0,r=0;for(let i=0;i-1&&(this.modules.splice(a,1),r--,a=-1),-1==a){if(this.modules.splice(r++,0,o),t)for(let e=0;e",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},za="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),Ia="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),La=0;La<10;La++)Da[48+La]=Da[96+La]=String(La);for(La=1;La<=24;La++)Da[La+111]="F"+La;for(La=65;La<=90;La++)Da[La]=String.fromCharCode(La+32),Ra[La]=String.fromCharCode(La);for(var $a in Da)Ra.hasOwnProperty($a)||(Ra[$a]=Da[$a]);function Na(e){let t;return t=11==e.nodeType?e.getSelection?e:e.ownerDocument:e,t.getSelection()}function Za(e,t){return!!t&&(e==t||e.contains(1!=t.nodeType?t.parentNode:t))}function Ha(e,t){if(!t.anchorNode)return!1;try{return Za(e,t.anchorNode)}catch(e){return!1}}function Va(e){return 3==e.nodeType?Ja(e,0,e.nodeValue.length).getClientRects():1==e.nodeType?e.getClientRects():[]}function Fa(e,t,n,r){return!!n&&(Wa(e,t,n,r,-1)||Wa(e,t,n,r,1))}function Ba(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}function Wa(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:Ua(e))){if("DIV"==e.nodeName)return!1;let n=e.parentNode;if(!n||1!=n.nodeType)return!1;t=Ba(e)+(i<0?0:1),e=n}else{if(1!=e.nodeType)return!1;if(1==(e=e.childNodes[t+(i<0?-1:0)]).nodeType&&"false"==e.contentEditable)return!1;t=i<0?Ua(e):0}}}function Ua(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Ya(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function Ka(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}class qa{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:n}=e;this.set(t,Math.min(e.anchorOffset,t?Ua(t):0),n,Math.min(e.focusOffset,n?Ua(n):0))}set(e,t,n,r){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=r}}let Ga,Xa=null;function Qa(e){if(e.setActive)return e.setActive();if(Xa)return e.focus(Xa);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(null==Xa?{get preventScroll(){return Xa={preventScroll:!0},!0}}:void 0),!Xa){Xa=!1;for(let e=0;et)return n.domBoundsAround(e,t,l);if(u>=e&&-1==r&&(r=s,i=l),l>t&&n.dom.parentNode==this.dom){o=s,a=c;break}c=u,l=u+n.breakAfter}return{from:i,to:a<0?n+this.length:a,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o=0?this.children[o].dom:null}}markDirty(e=!1){this.dirty|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.dirty|=2),1&t.dirty)return;t.dirty|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.dirty&&this.markParentsDirty(!0))}setDOM(e){this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,n=rs){this.markDirty();for(let n=e;nthis.pos||e==this.pos&&(t>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let n=this.children[--this.i];this.pos-=n.length+n.breakAfter}}}function ss(e,t,n,r,i,o,a,s,l){let{children:c}=e,u=c.length?c[t]:null,d=o.length?o[o.length-1]:null,h=d?d.breakAfter:a;if(!(t==r&&u&&!a&&!h&&o.length<2&&u.merge(n,i,o.length?d:null,0==n,s,l))){if(r0&&(!a&&o.length&&u.merge(n,u.length,o[0],!1,s,0)?u.breakAfter=o.shift().breakAfter:(n2);var ws={mac:bs||/Mac/.test(cs.platform),windows:/Win/.test(cs.platform),linux:/Linux|X11/.test(cs.platform),ie:ps,ie_version:hs?us.documentMode||6:fs?+fs[1]:ds?+ds[1]:0,gecko:ms,gecko_version:ms?+(/Firefox\/(\d+)/.exec(cs.userAgent)||[0,0])[1]:0,chrome:!!gs,chrome_version:gs?+gs[1]:0,ios:bs,android:/Android\b/.test(cs.userAgent),webkit:vs,safari:ys,webkit_version:vs?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=us.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};class xs extends is{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){3==e.nodeType&&this.createDOM(e)}merge(e,t,n){return(!n||n instanceof xs&&!(this.length-(t-e)+n.length>256))&&(this.text=this.text.slice(0,e)+(n?n.text:"")+this.text.slice(t),this.markDirty(),!0)}split(e){let t=new xs(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new ns(this.dom,e)}domBoundsAround(e,t,n){return{from:n,to:n+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return Ss(this.dom,e,t)}}class ks extends is{constructor(e,t=[],n=0){super(),this.mark=e,this.children=t,this.length=n;for(let e of t)e.setParent(this)}setAttrs(e){if(ts(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.dirty|=6)}sync(e,t){this.dom?4&this.dirty&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,n,r,i,o){return(!n||!(!(n instanceof ks&&n.mark.eq(this.mark))||e&&i<=0||te&&t.push(n=e&&(r=i),n=a,i++}let o=this.length-e;return this.length=e,r>-1&&(this.children.length=r,this.markDirty()),new ks(this.mark,t,o)}domAtPos(e){return Ts(this,e)}coordsAt(e,t){return Ds(this,e,t)}}function Ss(e,t,n){let r=e.nodeValue.length;t>r&&(t=r);let i=t,o=t,a=0;0==t&&n<0||t==r&&n>=0?ws.chrome||ws.gecko||(t?(i--,a=1):o=0)?0:s.length-1];return ws.safari&&!a&&0==l.width&&(l=Array.prototype.find.call(s,(e=>e.width))||l),a?Ya(l,a<0):l||null}class Cs extends is{constructor(e,t,n){super(),this.widget=e,this.length=t,this.side=n,this.prevWidget=null}static create(e,t,n){return new(e.customView||Cs)(e,t,n)}split(e){let t=Cs.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){this.dom&&this.widget.updateDOM(this.dom,e)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.dom.contentEditable="false")}getSide(){return this.side}merge(e,t,n,r,i,o){return!(n&&(!(n instanceof Cs&&this.widget.compare(n.widget))||e>0&&i<=0||t0)?ns.before(this.dom):ns.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let n=this.widget.coordsAt(this.dom,e,t);if(n)return n;let r=this.dom.getClientRects(),i=null;if(!r.length)return null;let o=this.side?this.side<0:e>0;for(let t=o?r.length-1:0;i=r[t],!(e>0?0==t:t==r.length-1||i.tope.domAtPos(t)),((e,t)=>new ns(e,Math.min(t,e.nodeValue.length)))):new ns(n,Math.min(e,n.nodeValue.length))}sync(){this.setDOM(this.widget.toDOM())}localPosFromDOM(e,t){let{topView:n,text:r}=this.widget;return n?Es(e,t,n,r,this.length-n.length):Math.min(t,this.length)}ignoreMutation(){return!1}get overrideDOMText(){return null}coordsAt(e,t){let{topView:n,text:r}=this.widget;return n?Os(e,t,n,r,this.length-n.length,((e,t,n)=>e.coordsAt(t,n)),((e,t,n)=>Ss(e,t,n))):Ss(r,e,t)}destroy(){var e;super.destroy(),null===(e=this.widget.topView)||void 0===e||e.destroy()}get isEditable(){return!0}canReuseDOM(){return!0}}function Os(e,t,n,r,i,o,a){if(n instanceof ks){for(let s=n.dom.firstChild;s;s=s.nextSibling){let n=is.get(s);if(n){let l=Za(s,r),c=n.length+(l?i:0);if(e0?ns.before(this.dom):ns.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return Ni.empty}get isHidden(){return!0}}function Ts(e,t){let n=e.dom,{children:r}=e,i=0;for(let e=0;ie&&t0;e--){let t=r[e-1];if(t.dom.parentNode==n)return t.domAtPos(t.length)}for(let e=i;e0&&t instanceof ks&&i.length&&(r=i[i.length-1])instanceof ks&&r.mark.eq(t.mark)?_s(r,t.children[0],n-1):(i.push(t),t.setParent(e)),e.length+=t.length}function Ds(e,t,n){let r=null,i=-1,o=null,a=-1;!function e(t,s){for(let l=0,c=0;l=s&&(u.children.length?e(u,s-c):(!o||o.isHidden&&n>0)&&(d>s||c==d&&u.getSide()>0)?(o=u,a=s-c):(c0?3e8:-4e8:t>0?1e8:-1e8,new Vs(e,t,t,n,e.widget||null,!1)}static replace(e){let t,n,r=!!e.block;if(e.isBlockGap)t=-5e8,n=4e8;else{let{start:i,end:o}=Fs(e,r);t=(i?r?-3e8:-1:5e8)-1,n=1+(o?r?2e8:1:-6e8)}return new Vs(e,t,n,r,e.widget||null,!0)}static line(e){return new Hs(e)}static set(e,t=!1){return pa.of(e,t)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}Ns.none=pa.empty;class Zs extends Ns{constructor(e){let{start:t,end:n}=Fs(e);super(t?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){return this==e||e instanceof Zs&&this.tagName==e.tagName&&this.class==e.class&&zs(this.attrs,e.attrs)}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}Zs.prototype.point=!1;class Hs extends Ns{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof Hs&&this.spec.class==e.spec.class&&zs(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}Hs.prototype.mapMode=ao.TrackBefore,Hs.prototype.point=!0;class Vs extends Ns{constructor(e,t,n,r,i,o){super(t,n,i,e),this.block=r,this.isReplace=o,this.mapMode=r?t<=0?ao.TrackBefore:ao.TrackAfter:ao.TrackDel}get type(){return this.startSide=5||this.widget.lineBreaks>0)}eq(e){return e instanceof Vs&&function(e,t){return e==t||!!(e&&t&&e.compare(t))}(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}function Fs(e,t=!1){let{inclusiveStart:n,inclusiveEnd:r}=e;return null==n&&(n=e.inclusive),null==r&&(r=e.inclusive),{start:null!=n?n:t,end:null!=r?r:t}}function Bs(e,t,n,r=0){let i=n.length-1;i>=0&&n[i]+r>=e?n[i]=Math.max(n[i],t):n.push(e,t)}Vs.prototype.point=!0;class Ws extends is{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,t,n,r,i,o){if(n){if(!(n instanceof Ws))return!1;this.dom||n.transferDOM(this)}return r&&this.setDeco(n?n.attrs:null),ls(this,e,t,n?n.children:[],i,o),!0}split(e){let t=new Ws;if(t.breakAfter=this.breakAfter,0==this.length)return t;let{i:n,off:r}=this.childPos(e);r&&(t.append(this.children[n].split(r),0),this.children[n].merge(r,this.children[n].length,null,!1,0,0),n++);for(let e=n;e0&&0==this.children[n-1].length;)this.children[--n].destroy();return this.children.length=n,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){zs(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){_s(this,e,t)}addLineDeco(e){let t=e.spec.attributes,n=e.spec.class;t&&(this.attrs=Rs(t,this.attrs||{})),n&&(this.attrs=Rs({class:n},this.attrs||{}))}domAtPos(e){return Ts(this,e)}reuseDOM(e){"DIV"==e.nodeName&&(this.setDOM(e),this.dirty|=6)}sync(e,t){var n;this.dom?4&this.dirty&&(ts(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(Is(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let r=this.dom.lastChild;for(;r&&is.get(r)instanceof ks;)r=r.lastChild;if(!(r&&this.length&&("BR"==r.nodeName||0!=(null===(n=is.get(r))||void 0===n?void 0:n.isEditable)||ws.ios&&this.children.some((e=>e instanceof xs))))){let e=document.createElement("BR");e.cmIgnore=!0,this.dom.appendChild(e)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let e,t=0;for(let n of this.children){if(!(n instanceof xs)||/[^ -~]/.test(n.text))return null;let r=Va(n.dom);if(1!=r.length)return null;t+=r[0].width,e=r[0].height}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length,textHeight:e}:null}coordsAt(e,t){let n=Ds(this,e,t);if(!this.children.length&&n&&this.parent){let{heightOracle:e}=this.parent.view.viewState,t=n.bottom-n.top;if(Math.abs(t-e.lineHeight)<2&&e.textHeight=t){if(i instanceof Ws)return i;if(o>t)break}r=o+i.breakAfter}return null}}class Us extends is{constructor(e,t,n){super(),this.widget=e,this.length=t,this.type=n,this.breakAfter=0,this.prevWidget=null}merge(e,t,n,r,i,o){return!(n&&(!(n instanceof Us&&this.widget.compare(n.widget))||e>0&&i<=0||t0;){if(this.textOff==this.text.length){let{value:t,lineBreak:n,done:r}=this.cursor.next(this.skip);if(this.skip=0,r)throw new Error("Ran out of text content when drawing inline views");if(n){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}this.text=t,this.textOff=0}let r=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-n)),this.getLine().append(Ks(new xs(this.text.slice(this.textOff,this.textOff+r)),t),n),this.atCursorPos=!0,this.textOff+=r,e-=r,n=0}}span(e,t,n,r){this.buildText(t-e,n,r),this.pos=t,this.openStart<0&&(this.openStart=r)}point(e,t,n,r,i,o){if(this.disallowBlockEffectsFor[o]&&n instanceof Vs){if(n.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let a=t-e;if(n instanceof Vs)if(n.block){let{type:e}=n;e!=$s.WidgetAfter||this.posCovered()||this.getLine(),this.addBlockWidget(new Us(n.widget||new qs("div"),a,e))}else{let o=Cs.create(n.widget||new qs("span"),a,a?0:n.startSide),s=this.atCursorPos&&!o.isEditable&&i<=r.length&&(e0),l=!o.isEditable&&(er.length||n.startSide<=0),c=this.getLine();2!=this.pendingBuffer||s||o.isEditable||(this.pendingBuffer=0),this.flushBuffer(r),s&&(c.append(Ks(new As(1),r),i),i=r.length+Math.max(0,i-r.length)),c.append(Ks(o,r),i),this.atCursorPos=l,this.pendingBuffer=l?er.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=r.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(n);a&&(this.textOff+a<=this.text.length?this.textOff+=a:(this.skip+=a-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=i)}static build(e,t,n,r,i){let o=new Ys(e,t,n,i);return o.openEnd=pa.spans(r,t,n,o),o.openStart<0&&(o.openStart=o.openEnd),o.finish(o.openEnd),o}}function Ks(e,t){for(let n of t)e=new ks(n,[e],e.length);return e}class qs extends Ls{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}const Gs=wo.define(),Xs=wo.define(),Qs=wo.define(),Js=wo.define(),el=wo.define(),tl=wo.define(),nl=wo.define(),rl=wo.define({combine:e=>e.some((e=>e))}),il=wo.define({combine:e=>e.some((e=>e))});class ol{constructor(e,t="nearest",n="nearest",r=5,i=5){this.range=e,this.y=t,this.x=n,this.yMargin=r,this.xMargin=i}map(e){return e.empty?this:new ol(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin)}}const al=Go.define({map:(e,t)=>e.map(t)});function sl(e,t,n){let r=e.facet(Js);r.length?r[0](t):window.onerror?window.onerror(String(t),n,void 0,void 0,t):n?console.error(n+":",t):console.error(t)}const ll=wo.define({combine:e=>!e.length||e[0]});let cl=0;const ul=wo.define();class dl{constructor(e,t,n,r){this.id=e,this.create=t,this.domEventHandlers=n,this.extension=r(this)}static define(e,t){const{eventHandlers:n,provide:r,decorations:i}=t||{};return new dl(cl++,e,n,(e=>{let t=[ul.of(e)];return i&&t.push(ml.of((t=>{let n=t.plugin(e);return n?i(n):Ns.none}))),r&&t.push(r(e)),t}))}static fromClass(e,t){return dl.define((t=>new e(t)),t)}}class hl{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(t){if(sl(e.state,t,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(e){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){sl(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(null===(t=this.value)||void 0===t?void 0:t.destroy)try{this.value.destroy()}catch(t){sl(e.state,t,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const fl=wo.define(),pl=wo.define(),ml=wo.define(),gl=wo.define(),vl=wo.define();function yl(e){let t=0,n=0,r=0,i=0;for(let o of e.state.facet(vl)){let a=o(e);a&&(null!=a.left&&(t=Math.max(t,a.left)),null!=a.right&&(n=Math.max(n,a.right)),null!=a.top&&(r=Math.max(r,a.top)),null!=a.bottom&&(i=Math.max(i,a.bottom)))}return{left:t,right:n,top:r,bottom:i}}const bl=wo.define();class wl{constructor(e,t,n,r){this.fromA=e,this.toA=t,this.fromB=n,this.toB=r}join(e){return new wl(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,n=this;for(;t>0;t--){let r=e[t-1];if(!(r.fromA>n.toA)){if(r.toAc)break;i+=2}if(!s)return n;new wl(s.fromA,s.toA,s.fromB,s.toB).addToSet(n),o=s.toA,a=s.toB}}}class xl{constructor(e,t,n){this.view=e,this.state=t,this.transactions=n,this.flags=0,this.startState=e.state,this.changes=lo.empty(this.startState.doc.length);for(let e of n)this.changes=this.changes.compose(e.changes);let r=[];this.changes.iterChangedRanges(((e,t,n,i)=>r.push(new wl(e,t,n,i)))),this.changedRanges=r}static create(e,t,n){return new xl(e,t,n)}get viewportChanged(){return(4&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(10&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some((e=>e.selection))}get empty(){return 0==this.flags&&0==this.transactions.length}}var kl=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(kl||(kl={}));const Sl=kl.LTR,Cl=kl.RTL;function jl(e){let t=[];for(let n=0;n=t){if(a.level==n)return o;(i<0||(0!=r?r<0?a.fromt:e[i].level>a.level))&&(i=o)}}if(i<0)throw new RangeError("Index out of range");return i}}const _l=[];function Dl(e,t){let n=e.length,r=t==Sl?1:2,i=t==Sl?2:1;if(!e||1==r&&!Al.test(e))return Rl(n);for(let t=0,i=r,a=r;t=0;e-=3)if(Pl[e+1]==-o){let t=Pl[e+2],n=2&t?r:4&t?1&t?i:r:0;n&&(_l[s]=_l[Pl[e]]=n),l=e;break}}else{if(189==Pl.length)break;Pl[l++]=s,Pl[l++]=t,Pl[l++]=c}else if(2==(a=_l[s])||1==a){let e=a==r;c=e?0:1;for(let t=l-3;t>=0;t-=3){let n=Pl[t+2];if(2&n)break;if(e)Pl[t+2]|=2;else{if(4&n)break;Pl[t+2]|=4}}}for(let e=0;et;){let e=n,r=2!=_l[--n];for(;n>t&&r==(2!=_l[n-1]);)n--;a.push(new Tl(n,e,r?2:1))}else a.push(new Tl(t,e,0))}else for(let e=0;ee)&&this.lineBreak(),r=i}return this.findPointBefore(n,t),this}readTextNode(e){let t=e.nodeValue;for(let n of this.points)n.node==e&&(n.pos=this.text.length+Math.min(n.offset,t.length));for(let n=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let i,o=-1,a=1;if(this.lineSeparator?(o=t.indexOf(this.lineSeparator,n),a=this.lineSeparator.length):(i=r.exec(t))&&(o=i.index,a=i[0].length),this.append(t.slice(n,o<0?t.length:o)),o<0)break;if(this.lineBreak(),a>1)for(let t of this.points)t.node==e&&t.pos>this.text.length&&(t.pos-=a-1);n=o+a}}readNode(e){if(e.cmIgnore)return;let t=is.get(e),n=t&&t.overrideDOMText;if(null!=n){this.findPointInside(e,n.length);for(let e=n.iter();!e.next().done;)e.lineBreak?this.lineBreak():this.append(e.value)}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==t&&(n.pos=this.text.length)}findPointInside(e,t){for(let n of this.points)(3==e.nodeType?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+Math.min(t,n.offset))}}function Nl(e){return 1==e.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}class Zl{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class Hl extends is{constructor(e){super(),this.view=e,this.compositionDeco=Ns.none,this.decorations=[],this.dynamicDecorationMap=[],this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new Ws],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new wl(0,0,0,e.state.doc.length)],0)}get length(){return this.view.state.doc.length}update(e){let t=e.changedRanges;this.minWidth>0&&t.length&&(t.every((({fromA:e,toA:t})=>tthis.minWidthTo))?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.view.inputState.composing<0?this.compositionDeco=Ns.none:(e.transactions.length||this.dirty)&&(this.compositionDeco=function(e,t){let n=Fl(e);if(!n)return Ns.none;let{from:r,to:i,node:o,text:a}=n,s=t.mapPos(r,1),l=Math.max(s,t.mapPos(i,-1)),{state:c}=e,u=new $l([],c);3==o.nodeType?u.readTextNode(o):u.readRange(o.firstChild,null);let{text:d}=u;if(d.indexOf(Ll)>-1)return Ns.none;if(l-s{this.dom.style.height=this.view.viewState.contentHeight+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let e=ws.chrome||ws.ios?{node:n.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,e),this.dirty=0,e&&(e.written||n.selectionRange.focusNode!=e.node)&&(this.forceSelection=!0),this.dom.style.height=""}));let r=[];if(this.view.viewport.from||this.view.viewport.to=0?e[t]:null;if(!r)break;let{fromA:i,toA:o,fromB:a,toB:s}=r,{content:l,breakAtStart:c,openStart:u,openEnd:d}=Ys.build(this.view.state.doc,a,s,this.decorations,this.dynamicDecorationMap),{i:h,off:f}=n.findPos(o,1),{i:p,off:m}=n.findPos(i,-1);ss(this,p,m,h,f,l,c,u,d)}}updateSelection(e=!1,t=!1){!e&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange();let n=this.view.root.activeElement,r=n==this.dom,i=!r&&Ha(this.dom,this.view.observer.selectionRange)&&!(n&&this.dom.contains(n));if(!(r||t||i))return;let o=this.forceSelection;this.forceSelection=!1;let a=this.view.state.selection.main,s=this.domAtPos(a.anchor),l=a.empty?s:this.domAtPos(a.head);if(ws.gecko&&a.empty&&!this.compositionDeco.size&&(1==(c=s).node.nodeType&&c.node.firstChild&&(0==c.offset||"false"==c.node.childNodes[c.offset-1].contentEditable)&&(c.offset==c.node.childNodes.length||"false"==c.node.childNodes[c.offset].contentEditable))){let e=document.createTextNode("");this.view.observer.ignore((()=>s.node.insertBefore(e,s.node.childNodes[s.offset]||null))),s=l=new ns(e,0),o=!0}var c;let u=this.view.observer.selectionRange;!o&&u.focusNode&&Fa(s.node,s.offset,u.anchorNode,u.anchorOffset)&&Fa(l.node,l.offset,u.focusNode,u.focusOffset)||(this.view.observer.ignore((()=>{ws.android&&ws.chrome&&this.dom.contains(u.focusNode)&&function(e,t){for(let n=e;n&&n!=t;n=n.assignedSlot||n.parentNode)if(1==n.nodeType&&"false"==n.contentEditable)return!0;return!1}(u.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let e=Na(this.view.root);if(e)if(a.empty){if(ws.gecko){let e=function(e,t){return 1!=e.nodeType?0:(t&&"false"==e.childNodes[t-1].contentEditable?1:0)|(ta.head&&([s,l]=[l,s]),t.setEnd(l.node,l.offset),t.setStart(s.node,s.offset),e.removeAllRanges(),e.addRange(t)}else;i&&this.view.root.activeElement==this.dom&&(this.dom.blur(),n&&n.focus())})),this.view.observer.setSelectionRange(s,l)),this.impreciseAnchor=s.precise?null:new ns(u.anchorNode,u.anchorOffset),this.impreciseHead=l.precise?null:new ns(u.focusNode,u.focusOffset)}enforceCursorAssoc(){if(this.compositionDeco.size)return;let{view:e}=this,t=e.state.selection.main,n=Na(e.root),{anchorNode:r,anchorOffset:i}=e.observer.selectionRange;if(!(n&&t.empty&&t.assoc&&n.modify))return;let o=Ws.find(this,t.head);if(!o)return;let a=o.posAtStart;if(t.head==a||t.head==a+o.length)return;let s=this.coordsAt(t.head,-1),l=this.coordsAt(t.head,1);if(!s||!l||s.bottom>l.top)return;let c=this.domAtPos(t.head+t.assoc);n.collapse(c.node,c.offset),n.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let u=e.observer.selectionRange;e.docView.posFromDOM(u.anchorNode,u.anchorOffset)!=t.from&&n.collapse(r,i)}nearest(e){for(let t=e;t;){let e=is.get(t);if(e&&e.rootView==this)return e;t=t.parentNode}return null}posFromDOM(e,t){let n=this.nearest(e);if(!n)throw new RangeError("Trying to find position for a DOM position outside of the document");return n.localPosFromDOM(e,t)+n.posAtStart}domAtPos(e){let{i:t,off:n}=this.childCursor().findPos(e,-1);for(;to||e==o&&i.type!=$s.WidgetBefore&&i.type!=$s.WidgetAfter&&(!r||2==t||this.children[r-1].breakAfter||this.children[r-1].type==$s.WidgetBefore&&t>-2))return i.coordsAt(e-o,t);n=o}}measureVisibleLineHeights(e){let t=[],{from:n,to:r}=e,i=this.view.contentDOM.clientWidth,o=i>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,a=-1,s=this.view.textDirection==kl.LTR;for(let e=0,l=0;lr)break;if(e>=n){let n=c.dom.getBoundingClientRect();if(t.push(n.height),o){let t=c.dom.lastChild,r=t?Va(t):[];if(r.length){let t=r[r.length-1],o=s?t.right-n.left:n.right-t.left;o>a&&(a=o,this.minWidth=i,this.minWidthFrom=e,this.minWidthTo=u)}}}e=u+c.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return"rtl"==getComputedStyle(this.children[t].dom).direction?kl.RTL:kl.LTR}measureTextSize(){for(let e of this.children)if(e instanceof Ws){let t=e.measureTextSize();if(t)return t}let e,t,n,r=document.createElement("div");return r.className="cm-line",r.style.width="99999px",r.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore((()=>{this.dom.appendChild(r);let i=Va(r.firstChild)[0];e=r.getBoundingClientRect().height,t=i?i.width/27:7,n=i?i.height:e,r.remove()})),{lineHeight:e,charWidth:t,textHeight:n}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new as(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let n=0,r=0;;r++){let i=r==t.viewports.length?null:t.viewports[r],o=i?i.from-1:this.length;if(o>n){let r=t.lineBlockAt(o).bottom-t.lineBlockAt(n).top;e.push(Ns.replace({widget:new Vl(r),block:!0,inclusive:!0,isBlockGap:!0}).range(n,o))}if(!i)break;n=i.to+1}return Ns.set(e)}updateDeco(){let e=this.view.state.facet(ml).map(((e,t)=>(this.dynamicDecorationMap[t]="function"==typeof e)?e(this.view):e));for(let t=e.length;tn.anchor?-1:1);if(!r)return;!n.empty&&(t=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={left:Math.min(r.left,t.left),top:Math.min(r.top,t.top),right:Math.max(r.right,t.right),bottom:Math.max(r.bottom,t.bottom)});let i=yl(this.view),o={left:r.left-i.left,top:r.top-i.top,right:r.right+i.right,bottom:r.bottom+i.bottom};!function(e,t,n,r,i,o,a,s){let l=e.ownerDocument,c=l.defaultView||window;for(let u=e;u;)if(1==u.nodeType){let e,d=u==l.body;if(d)e=Ka(c);else{if(u.scrollHeight<=u.clientHeight&&u.scrollWidth<=u.clientWidth){u=u.assignedSlot||u.parentNode;continue}let t=u.getBoundingClientRect();e={left:t.left,right:t.left+u.clientWidth,top:t.top,bottom:t.top+u.clientHeight}}let h=0,f=0;if("nearest"==i)t.top0&&t.bottom>e.bottom+f&&(f=t.bottom-e.bottom+f+a)):t.bottom>e.bottom&&(f=t.bottom-e.bottom+a,n<0&&t.top-f0&&t.right>e.right+h&&(h=t.right-e.right+h+o)):t.right>e.right&&(h=t.right-e.right+o,n<0&&t.left0))break;n=n.childNodes[r-1],r=Ua(n)}if(n>=0)for(let r=e,i=t;;){if(3==r.nodeType)return r;if(!(1==r.nodeType&&i=0))break;r=r.childNodes[i],i=0}return null}class Ul{constructor(){this.changes=[]}compareRange(e,t){Bs(e,t,this.changes)}comparePoint(e,t){Bs(e,t,this.changes)}}function Yl(e,t){return t.left>e?t.left-e:Math.max(0,e-t.right)}function Kl(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function ql(e,t){return e.topt.top+1}function Gl(e,t){return te.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function Ql(e,t,n){let r,i,o,a,s,l,c,u,d=!1;for(let h=e.firstChild;h;h=h.nextSibling){let e=Va(h);for(let f=0;fg||a==g&&o>m){r=h,i=p,o=m,a=g;let s=g?n0?f0)}0==m?n>p.bottom&&(!c||c.bottomp.top)&&(l=h,u=p):c&&ql(c,p)?c=Xl(c,p.bottom):u&&ql(u,p)&&(u=Gl(u,p.top))}}if(c&&c.bottom>=n?(r=s,i=c):u&&u.top<=n&&(r=l,i=u),!r)return{node:e,offset:0};let h=Math.max(i.left,Math.min(i.right,t));return 3==r.nodeType?Jl(r,h,n):d&&"false"!=r.contentEditable?Ql(r,h,n):{node:e,offset:Array.prototype.indexOf.call(e.childNodes,r)+(t>=(i.left+i.right)/2?1:0)}}function Jl(e,t,n){let r=e.nodeValue.length,i=-1,o=1e9,a=0;for(let s=0;sn?c.top-n:n-c.bottom)-1;if(c.left-1<=t&&c.right+1>=t&&u=(c.left+c.right)/2,r=n;if(ws.chrome||ws.gecko){Ja(e,s).getBoundingClientRect().left==c.right&&(r=!n)}if(u<=0)return{node:e,offset:s+(r?1:0)};i=s+(r?1:0),o=u}}}return{node:e,offset:i>-1?i:a>0?e.nodeValue.length:0}}function ec(e,t,n,r=-1){var i,o;let a,s=e.contentDOM.getBoundingClientRect(),l=s.top+e.viewState.paddingTop,{docHeight:c}=e.viewState,{x:u,y:d}=t,h=d-l;if(h<0)return 0;if(h>c)return e.state.doc.length;for(let t=e.defaultLineHeight/2,i=!1;a=e.elementAtHeight(h),a.type!=$s.Text;)for(;h=r>0?a.bottom+t:a.top-t,!(h>=0&&h<=c);){if(i)return n?null:0;i=!0,r=-r}d=l+h;let f=a.from;if(fe.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:n?null:tc(e,s,a,u,d);let p=e.dom.ownerDocument,m=e.root.elementFromPoint?e.root:p,g=m.elementFromPoint(u,d);g&&!e.contentDOM.contains(g)&&(g=null),g||(u=Math.max(s.left+1,Math.min(s.right-1,u)),g=m.elementFromPoint(u,d),g&&!e.contentDOM.contains(g)&&(g=null));let v,y=-1;if(g&&0!=(null===(i=e.docView.nearest(g))||void 0===i?void 0:i.isEditable))if(p.caretPositionFromPoint){let e=p.caretPositionFromPoint(u,d);e&&({offsetNode:v,offset:y}=e)}else if(p.caretRangeFromPoint){let t=p.caretRangeFromPoint(u,d);t&&(({startContainer:v,startOffset:y}=t),(!e.contentDOM.contains(v)||ws.safari&&function(e,t,n){let r;if(3!=e.nodeType||t!=(r=e.nodeValue.length))return!1;for(let t=e.nextSibling;t;t=t.nextSibling)if(1!=t.nodeType||"BR"!=t.nodeName)return!1;return Ja(e,r-1,r).getBoundingClientRect().left>n}(v,y,u)||ws.chrome&&function(e,t,n){if(0!=t)return!1;for(let t=e;;){let e=t.parentNode;if(!e||1!=e.nodeType||e.firstChild!=t)return!1;if(e.classList.contains("cm-line"))break;t=e}let r=1==e.nodeType?e.getBoundingClientRect():Ja(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect();return n-r.left>5}(v,y,u))&&(v=void 0))}if(!v||!e.docView.dom.contains(v)){let t=Ws.find(e.docView,f);if(!t)return h>a.top+a.height/2?a.to:a.from;({node:v,offset:y}=Ql(t.dom,u,d))}let b=e.docView.nearest(v);if(!b)return null;if(b.isWidget&&1==(null===(o=b.dom)||void 0===o?void 0:o.nodeType)){let e=b.dom.getBoundingClientRect();return t.y1.5*e.defaultLineHeight){o+=Math.floor((i-n.top)/e.defaultLineHeight)*e.viewState.heightOracle.lineLength}let a=e.state.sliceDoc(n.from,n.to);return n.from+function(e,t,n,r){for(let r=0,i=0;;){if(i>=t)return r;if(r==e.length)break;i+=9==e.charCodeAt(r)?n-i%n:1,r=Qi(e,r)}return!0===r?-1:e.length}(a,o,e.state.tabSize)}function nc(e,t){let n=e.lineBlockAt(t);if(Array.isArray(n.type))for(let e of n.type)if(e.to>t||e.to==t&&(e.to==n.to||e.type==$s.Text))return e;return n}function rc(e,t,n,r){let i=e.state.doc.lineAt(t.head),o=e.bidiSpans(i),a=e.textDirectionAt(i.from);for(let s=t,l=null;;){let t=Il(i,o,a,s,n),c=zl;if(!t){if(i.number==(n?e.state.doc.lines:1))return s;c="\n",i=e.state.doc.line(i.number+(n?1:-1)),o=e.bidiSpans(i),t=vo.cursor(n?i.from:i.to)}if(l){if(!l(c))return s}else{if(!r)return t;l=r(c)}s=t}}function ic(e,t,n){for(;;){let r=0;for(let i of e)i.between(t-1,t+1,((e,i,o)=>{if(t>e&&tt(e))),n.from,t.head>n.from?-1:1);return r==n.from?n:vo.cursor(r,r{this.ignoreDuringComposition(n)||"keydown"==n.type&&this.keydown(e,n)||(this.mustFlushObserver(n)&&e.observer.forceFlush(),this.runCustomHandlers(n.type,e,n)?n.preventDefault():t(e,n))};for(let n in fc){let r=fc[n];e.contentDOM.addEventListener(n,(n=>{hc(e,n)&&t(r,n)}),pc[n]),this.registeredEvents.push(n)}e.scrollDOM.addEventListener("mousedown",(n=>{if(n.target==e.scrollDOM&&n.clientY>e.contentDOM.getBoundingClientRect().bottom&&(t(fc.mousedown,n),!n.defaultPrevented&&2==n.button)){let t=e.contentDOM.style.minHeight;e.contentDOM.style.minHeight="100%",setTimeout((()=>e.contentDOM.style.minHeight=t),200)}})),e.scrollDOM.addEventListener("drop",(n=>{n.target==e.scrollDOM&&n.clientY>e.contentDOM.getBoundingClientRect().bottom&&t(fc.drop,n)})),ws.chrome&&102==ws.chrome_version&&e.scrollDOM.addEventListener("wheel",(()=>{this.chromeScrollHack<0?e.contentDOM.style.pointerEvents="none":window.clearTimeout(this.chromeScrollHack),this.chromeScrollHack=setTimeout((()=>{this.chromeScrollHack=-1,e.contentDOM.style.pointerEvents=""}),100)}),{passive:!0}),this.notifiedFocused=e.hasFocus,ws.safari&&e.contentDOM.addEventListener("input",(()=>null))}setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}ensureHandlers(e,t){var n;let r;this.customHandlers=[];for(let i of t)if(r=null===(n=i.update(e).spec)||void 0===n?void 0:n.domEventHandlers){this.customHandlers.push({plugin:i.value,handlers:r});for(let t in r)this.registeredEvents.indexOf(t)<0&&"scroll"!=t&&(this.registeredEvents.push(t),e.contentDOM.addEventListener(t,(n=>{hc(e,n)&&this.runCustomHandlers(t,e,n)&&n.preventDefault()})))}}runCustomHandlers(e,t,n){for(let r of this.customHandlers){let i=r.handlers[e];if(i)try{if(i.call(r.plugin,n,t)||n.defaultPrevented)return!0}catch(e){sl(t.state,e)}}return!1}runScrollHandlers(e,t){this.lastScrollTop=e.scrollDOM.scrollTop,this.lastScrollLeft=e.scrollDOM.scrollLeft;for(let n of this.customHandlers){let r=n.handlers.scroll;if(r)try{r.call(n.plugin,t,e)}catch(t){sl(e.state,t)}}}keydown(e,t){if(this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),9==t.keyCode&&Date.now()e.keyCode==t.keyCode)))&&!t.ctrlKey||lc.indexOf(t.key)>-1&&t.ctrlKey&&!t.shiftKey))&&(this.pendingIOSKey=n||t,setTimeout((()=>this.flushIOSKey(e)),250),!0)}flushIOSKey(e){let t=this.pendingIOSKey;return!!t&&(this.pendingIOSKey=void 0,es(e.contentDOM,t.key,t.keyCode))}ignoreDuringComposition(e){return!!/^key/.test(e.type)&&(this.composing>0||!!(ws.safari&&!ws.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}mustFlushObserver(e){return"keydown"==e.type&&229!=e.keyCode}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}const sc=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],lc="dthko",cc=[16,17,18,20,91,92,224,225];function uc(e){return.7*Math.max(0,e)+8}class dc{constructor(e,t,n,r){this.view=e,this.style=n,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParent=function(e){let t=e.ownerDocument;for(let n=e.parentNode;n&&n!=t.body;)if(1==n.nodeType){if(n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth)return n;n=n.assignedSlot||n.parentNode}else{if(11!=n.nodeType)break;n=n.host}return null}(e.contentDOM),this.atoms=e.state.facet(gl).map((t=>t(e)));let i=e.contentDOM.ownerDocument;i.addEventListener("mousemove",this.move=this.move.bind(this)),i.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(la.allowMultipleSelections)&&function(e,t){let n=e.state.facet(Gs);return n.length?n[0](t):ws.mac?t.metaKey:t.ctrlKey}(e,t),this.dragMove=function(e,t){let n=e.state.facet(Xs);return n.length?n[0](t):ws.mac?!t.altKey:!t.ctrlKey}(e,t),this.dragging=!(!function(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=Na(e.root);if(!r||0==r.rangeCount)return!0;let i=r.getRangeAt(0).getClientRects();for(let e=0;e=t.clientX&&n.top<=t.clientY&&n.bottom>=t.clientY)return!0}return!1}(e,t)||1!=Oc(t))&&null}start(e){!1===this.dragging&&(e.preventDefault(),this.select(e))}move(e){var t;if(0==e.buttons)return this.destroy();if(!1!==this.dragging)return;this.select(this.lastEvent=e);let n=0,r=0,i=(null===(t=this.scrollParent)||void 0===t?void 0:t.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},o=yl(this.view);e.clientX-o.left<=i.left+6?n=-uc(i.left-e.clientX):e.clientX+o.right>=i.right-6&&(n=uc(e.clientX-i.right)),e.clientY-o.top<=i.top+6?r=-uc(i.top-e.clientY):e.clientY+o.bottom>=i.bottom-6&&(r=uc(e.clientY-i.bottom)),this.setScrollSpeed(n,r)}up(e){null==this.dragging&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval((()=>this.scroll()),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),!1===this.dragging&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let n=0;nthis.select(this.lastEvent)),20)}}function hc(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n,r=t.target;r!=e.contentDOM;r=r.parentNode)if(!r||11==r.nodeType||(n=is.get(r))&&n.ignoreEvent(t))return!1;return!0}const fc=Object.create(null),pc=Object.create(null),mc=ws.ie&&ws.ie_version<15||ws.ios&&ws.webkit_version<604;function gc(e,t){let n,{state:r}=e,i=1,o=r.toText(t),a=o.lines==r.selection.ranges.length,s=null!=Ec&&r.selection.ranges.every((e=>e.empty))&&Ec==o.toString();if(s){let e=-1;n=r.changeByRange((n=>{let s=r.doc.lineAt(n.from);if(s.from==e)return{range:n};e=s.from;let l=r.toText((a?o.line(i++).text:t)+r.lineBreak);return{changes:{from:s.from,insert:l},range:vo.cursor(n.from+l.length)}}))}else n=a?r.changeByRange((e=>{let t=o.line(i++);return{changes:{from:e.from,to:e.to,insert:t.text},range:vo.cursor(e.from+t.length)}})):r.replaceSelection(o);e.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}function vc(e,t,n,r){if(1==r)return vo.cursor(t,n);if(2==r)return function(e,t,n=1){let r=e.charCategorizer(t),i=e.doc.lineAt(t),o=t-i.from;if(0==i.length)return vo.cursor(t);0==o?n=1:o==i.length&&(n=-1);let a=o,s=o;n<0?a=Qi(i.text,o,!1):s=Qi(i.text,o);let l=r(i.text.slice(a,s));for(;a>0;){let e=Qi(i.text,a,!1);if(r(i.text.slice(e,a))!=l)break;a=e}for(;s{e.inputState.setSelectionOrigin("select"),27==t.keyCode&&(e.inputState.lastEscPress=Date.now())},fc.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")},fc.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")},pc.touchstart=pc.touchmove={passive:!0},fc.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return;let n=null;for(let r of e.state.facet(Qs))if(n=r(e,t),n)break;if(n||0!=t.button||(n=function(e,t){let n=xc(e,t),r=Oc(t),i=e.state.selection;return{update(e){e.docChanged&&(n.pos=e.changes.mapPos(n.pos),i=i.map(e.changes))},get(t,o,a){let s,l=xc(e,t),c=vc(e,l.pos,l.bias,r);if(n.pos!=l.pos&&!o){let t=vc(e,n.pos,n.bias,r),i=Math.min(t.from,c.from),o=Math.max(t.to,c.to);c=i1&&(s=function(e,t){for(let n=0;n=t)return vo.create(e.ranges.slice(0,n).concat(e.ranges.slice(n+1)),e.mainIndex==n?0:e.mainIndex-(e.mainIndex>n?1:0))}return null}(i,l.pos))?s:a?i.addRange(c):vo.create([c])}}}(e,t)),n){let r=e.root.activeElement!=e.contentDOM;e.inputState.startMouseSelection(new dc(e,t,n,r)),r&&e.observer.ignore((()=>Qa(e.contentDOM))),e.inputState.mouseSelection&&e.inputState.mouseSelection.start(t)}};let yc=(e,t)=>e>=t.top&&e<=t.bottom,bc=(e,t,n)=>yc(t,n)&&e>=n.left&&e<=n.right;function wc(e,t,n,r){let i=Ws.find(e.docView,t);if(!i)return 1;let o=t-i.posAtStart;if(0==o)return 1;if(o==i.length)return-1;let a=i.coordsAt(o,-1);if(a&&bc(n,r,a))return-1;let s=i.coordsAt(o,1);return s&&bc(n,r,s)?1:a&&yc(r,a)?-1:1}function xc(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:wc(e,n,t.clientX,t.clientY)}}const kc=ws.ie&&ws.ie_version<=11;let Sc=null,Cc=0,jc=0;function Oc(e){if(!kc)return e.detail;let t=Sc,n=jc;return Sc=e,jc=Date.now(),Cc=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(Cc+1)%3:1}function Mc(e,t,n,r){if(!n)return;let i=e.posAtCoords({x:t.clientX,y:t.clientY},!1);t.preventDefault();let{mouseSelection:o}=e.inputState,a=r&&o&&o.dragging&&o.dragMove?{from:o.dragging.from,to:o.dragging.to}:null,s={from:i,insert:n},l=e.state.changes(a?[a,s]:s);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:a?"move.drop":"input.drop"})}fc.dragstart=(e,t)=>{let{selection:{main:n}}=e.state,{mouseSelection:r}=e.inputState;r&&(r.dragging=n),t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(n.from,n.to)),t.dataTransfer.effectAllowed="copyMove")},fc.drop=(e,t)=>{if(!t.dataTransfer)return;if(e.state.readOnly)return t.preventDefault();let n=t.dataTransfer.files;if(n&&n.length){t.preventDefault();let r=Array(n.length),i=0,o=()=>{++i==n.length&&Mc(e,t,r.filter((e=>null!=e)).join(e.state.lineBreak),!1)};for(let e=0;e{/[\x00-\x08\x0e-\x1f]{2}/.test(t.result)||(r[e]=t.result),o()},t.readAsText(n[e])}}else Mc(e,t,t.dataTransfer.getData("Text"),!0)},fc.paste=(e,t)=>{if(e.state.readOnly)return t.preventDefault();e.observer.flush();let n=mc?null:t.clipboardData;n?(gc(e,n.getData("text/plain")||n.getData("text/uri-text")),t.preventDefault()):function(e){let t=e.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout((()=>{e.focus(),n.remove(),gc(e,n.value)}),50)}(e)};let Ec=null;fc.copy=fc.cut=(e,t)=>{let{text:n,ranges:r,linewise:i}=function(e){let t=[],n=[],r=!1;for(let r of e.selection.ranges)r.empty||(t.push(e.sliceDoc(r.from,r.to)),n.push(r));if(!t.length){let i=-1;for(let{from:r}of e.selection.ranges){let o=e.doc.lineAt(r);o.number>i&&(t.push(o.text),n.push({from:o.from,to:Math.min(e.doc.length,o.to+1)})),i=o.number}r=!0}return{text:t.join(e.lineBreak),ranges:n,linewise:r}}(e.state);if(!n&&!i)return;Ec=i?n:null;let o=mc?null:t.clipboardData;o?(t.preventDefault(),o.clearData(),o.setData("text/plain",n)):function(e,t){let n=e.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=t,r.focus(),r.selectionEnd=t.length,r.selectionStart=0,setTimeout((()=>{r.remove(),e.focus()}),50)}(e,n),"cut"!=t.type||e.state.readOnly||e.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"})};const Pc=Yo.define();function Ac(e,t){let n=[];for(let r of e.facet(nl)){let i=r(e,t);i&&n.push(i)}return n?e.update({effects:n,annotations:Pc.of(!0)}):null}function Tc(e){setTimeout((()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=Ac(e.state,t);n?e.dispatch(n):e.update([])}}),10)}fc.focus=e=>{e.inputState.lastFocusTime=Date.now(),e.scrollDOM.scrollTop||!e.inputState.lastScrollTop&&!e.inputState.lastScrollLeft||(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),Tc(e)},fc.blur=e=>{e.observer.clearSelectionRange(),Tc(e)},fc.compositionstart=fc.compositionupdate=e=>{null==e.inputState.compositionFirstChange&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0)},fc.compositionend=e=>{e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,ws.chrome&&ws.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then((()=>e.observer.flush())):setTimeout((()=>{e.inputState.composing<0&&e.docView.compositionDeco.size&&e.update([])}),50)},fc.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()},fc.beforeinput=(e,t)=>{var n;let r;if(ws.chrome&&ws.android&&(r=sc.find((e=>e.inputType==t.inputType)))&&(e.observer.delayAndroidKey(r.key,r.keyCode),"Backspace"==r.key||"Delete"==r.key)){let t=(null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0;setTimeout((()=>{var n;((null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0)>t+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())}),100)}};const _c=["pre-wrap","normal","pre-line","break-spaces"];class Dc{constructor(e){this.lineWrapping=e,this.doc=Ni.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,t){let n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}heightForLine(e){if(!this.lineWrapping)return this.lineHeight;return(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return _c.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let n=0;n-1,s=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=a;if(this.lineWrapping=a,this.lineHeight=t,this.charWidth=n,this.textHeight=r,this.lineLength=i,s){this.heightSamples={};for(let e=0;e0}set outdated(e){this.flags=(e?2:0)|-3&this.flags}setHeight(e,t){this.height!=t&&(Math.abs(this.height-t)>Lc&&(e.heightChanged=!0),this.height=t)}replace(e,t,n){return $c.of(n)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,n,r){let i=this,o=n.doc;for(let a=r.length-1;a>=0;a--){let{fromA:s,toA:l,fromB:c,toB:u}=r[a],d=i.lineAt(s,Ic.ByPosNoHeight,n.setDoc(t),0,0),h=d.to>=l?d:i.lineAt(l,Ic.ByPosNoHeight,n,0,0);for(u+=h.to-l,l=h.to;a>0&&d.from<=r[a-1].toA;)s=r[a-1].fromA,c=r[a-1].fromB,a--,s2*i){let i=e[t-1];i.break?e.splice(--t,1,i.left,null,i.right):e.splice(--t,1,i.left,i.right),n+=1+i.break,r-=i.size}else{if(!(i>2*r))break;{let t=e[n];t.break?e.splice(n,1,t.left,null,t.right):e.splice(n,1,t.left,t.right),n+=2+t.break,i-=t.size}}else if(r=i&&o(this.blockAt(0,n,r,i))}updateHeight(e,t=0,n=!1,r){return r&&r.from<=t&&r.more&&this.setHeight(e,r.heights[r.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Zc extends Nc{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,t,n,r){return new zc(r,this.length,n,this.height,this.breaks)}replace(e,t,n){let r=n[0];return 1==n.length&&(r instanceof Zc||r instanceof Hc&&4&r.flags)&&Math.abs(this.length-r.length)<10?(r instanceof Hc?r=new Zc(r.length,this.height):r.height=this.height,this.outdated||(r.outdated=!1),r):$c.of(n)}updateHeight(e,t=0,n=!1,r){return r&&r.from<=t&&r.more?this.setHeight(e,r.heights[r.index++]):(n||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Hc extends $c{constructor(e){super(e,0)}heightMetrics(e,t){let n,r=e.doc.lineAt(t).number,i=e.doc.lineAt(t+this.length).number,o=i-r+1,a=0;if(e.lineWrapping){let t=Math.min(this.height,e.lineHeight*o);n=t/o,this.length>o+1&&(a=(this.height-t)/(this.length-o-1))}else n=this.height/o;return{firstLine:r,lastLine:i,perLine:n,perChar:a}}blockAt(e,t,n,r){let{firstLine:i,lastLine:o,perLine:a,perChar:s}=this.heightMetrics(t,r);if(t.lineWrapping){let i=r+Math.round(Math.max(0,Math.min(1,(e-n)/this.height))*this.length),o=t.doc.lineAt(i),l=a+o.length*s,c=Math.max(n,e-l/2);return new zc(o.from,o.length,c,l,0)}{let r=Math.max(0,Math.min(o-i,Math.floor((e-n)/a))),{from:s,length:l}=t.doc.line(i+r);return new zc(s,l,n+a*r,a,0)}}lineAt(e,t,n,r,i){if(t==Ic.ByHeight)return this.blockAt(e,n,r,i);if(t==Ic.ByPosNoHeight){let{from:t,to:r}=n.doc.lineAt(e);return new zc(t,r-t,0,0,0)}let{firstLine:o,perLine:a,perChar:s}=this.heightMetrics(n,i),l=n.doc.lineAt(e),c=a+l.length*s,u=l.number-o,d=r+a*u+s*(l.from-i-u);return new zc(l.from,l.length,Math.max(r,Math.min(d,r+this.height-c)),c,0)}forEachLine(e,t,n,r,i,o){e=Math.max(e,i),t=Math.min(t,i+this.length);let{firstLine:a,perLine:s,perChar:l}=this.heightMetrics(n,i);for(let c=e,u=r;c<=t;){let t=n.doc.lineAt(c);if(c==e){let n=t.number-a;u+=s*n+l*(e-i-n)}let r=s+l*t.length;o(new zc(t.from,t.length,u,r,0)),u+=r,c=t.to+1}}replace(e,t,n){let r=this.length-t;if(r>0){let e=n[n.length-1];e instanceof Hc?n[n.length-1]=new Hc(e.length+r):n.push(null,new Hc(r-1))}if(e>0){let t=n[0];t instanceof Hc?n[0]=new Hc(e+t.length):n.unshift(new Hc(e-1),null)}return $c.of(n)}decomposeLeft(e,t){t.push(new Hc(e-1),null)}decomposeRight(e,t){t.push(null,new Hc(this.length-e-1))}updateHeight(e,t=0,n=!1,r){let i=t+this.length;if(r&&r.from<=t+this.length&&r.more){let n=[],o=Math.max(t,r.from),a=-1;for(r.from>t&&n.push(new Hc(r.from-t-1).updateHeight(e,t));o<=i&&r.more;){let t=e.doc.lineAt(o).length;n.length&&n.push(null);let i=r.heights[r.index++];-1==a?a=i:Math.abs(i-a)>=Lc&&(a=-2);let s=new Zc(t,i);s.outdated=!1,n.push(s),o+=t+1}o<=i&&n.push(null,new Hc(i-o).updateHeight(e,o));let s=$c.of(n);return(a<0||Math.abs(s.height-this.height)>=Lc||Math.abs(a-this.heightMetrics(e,t).perLine)>=Lc)&&(e.heightChanged=!0),s}return(n||this.outdated)&&(this.setHeight(e,e.heightForGap(t,t+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class Vc extends $c{constructor(e,t,n){super(e.length+t+n.length,e.height+n.height,t|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return 1&this.flags}blockAt(e,t,n,r){let i=n+this.left.height;return ea))return l;let c=t==Ic.ByPosNoHeight?Ic.ByPosNoHeight:Ic.ByPos;return s?l.join(this.right.lineAt(a,c,n,o,a)):this.left.lineAt(a,c,n,r,i).join(l)}forEachLine(e,t,n,r,i,o){let a=r+this.left.height,s=i+this.left.length+this.break;if(this.break)e=s&&this.right.forEachLine(e,t,n,a,s,o);else{let l=this.lineAt(s,Ic.ByPos,n,r,i);e=e&&l.from<=t&&o(l),t>l.to&&this.right.forEachLine(l.to+1,t,n,a,s,o)}}replace(e,t,n){let r=this.left.length+this.break;if(tthis.left.length)return this.balanced(this.left,this.right.replace(e-r,t-r,n));let i=[];e>0&&this.decomposeLeft(e,i);let o=i.length;for(let e of n)i.push(e);if(e>0&&Fc(i,o-1),t=n&&t.push(null)),e>n&&this.right.decomposeLeft(e-n,t)}decomposeRight(e,t){let n=this.left.length,r=n+this.break;if(e>=r)return this.right.decomposeRight(e-r,t);e2*t.size||t.size>2*e.size?$c.of(this.break?[e,null,t]:[e,t]):(this.left=e,this.right=t,this.height=e.height+t.height,this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,n=!1,r){let{left:i,right:o}=this,a=t+i.length+this.break,s=null;return r&&r.from<=t+i.length&&r.more?s=i=i.updateHeight(e,t,n,r):i.updateHeight(e,t,n),r&&r.from<=a+o.length&&r.more?s=o=o.updateHeight(e,a,n,r):o.updateHeight(e,a,n),s?this.balanced(i,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function Fc(e,t){let n,r;null==e[t]&&(n=e[t-1])instanceof Hc&&(r=e[t+1])instanceof Hc&&e.splice(t-1,3,new Hc(n.length+1+r.length))}class Bc{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let e=Math.min(t,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof Zc?n.length+=e-this.pos:(e>this.pos||!this.isCovered)&&this.nodes.push(new Zc(e-this.pos,-1)),this.writtenTo=e,t>e&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,n){if(e=5)&&this.addLineDeco(r,i,o)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenToe&&this.nodes.push(new Zc(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let n=new Hc(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Zc)return e;let t=new Zc(0,-1);return this.nodes.push(t),t}addBlock(e){var t;this.enterLine();let n=null===(t=e.deco)||void 0===t?void 0:t.type;n!=$s.WidgetAfter||this.isCovered||this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,n!=$s.WidgetBefore&&(this.covering=e)}addLineDeco(e,t,n){let r=this.ensureLine();r.length+=n,r.collapsed+=n,r.widgetHeight=Math.max(r.widgetHeight,e),r.breaks+=t,this.writtenTo=this.pos=this.pos+n}finish(e){let t=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||t instanceof Zc||this.isCovered?(this.writtenTon.clientHeight||n.scrollWidth>n.clientWidth)&&"visible"!=r.overflow){let r=n.getBoundingClientRect();o=Math.max(o,r.left),a=Math.min(a,r.right),s=Math.max(s,r.top),l=t==e.parentNode?r.bottom:Math.min(l,r.bottom)}t="absolute"==r.position||"fixed"==r.position?n.offsetParent:n.parentNode}else{if(11!=t.nodeType)break;t=t.host}return{left:o-n.left,right:Math.max(o,a)-n.left,top:s-(n.top+t),bottom:Math.max(s,l)-(n.top+t)}}function Yc(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class Kc{constructor(e,t,n){this.from=e,this.to=t,this.size=n}static same(e,t){if(e.length!=t.length)return!1;for(let n=0;n"function"!=typeof e&&"cm-lineWrapping"==e.class));this.heightOracle=new Dc(t),this.stateDeco=e.facet(ml).filter((e=>"function"!=typeof e)),this.heightMap=$c.empty().applyChanges(this.stateDeco,Ni.empty,this.heightOracle.setDoc(e.doc),[new wl(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Ns.set(this.lineGaps.map((e=>e.draw(!1)))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let n=0;n<=1;n++){let r=n?t.head:t.anchor;if(!e.some((({from:e,to:t})=>r>=e&&r<=t))){let{from:t,to:n}=this.lineBlockAt(r);e.push(new Xc(t,n))}}this.viewports=e.sort(((e,t)=>e.from-t.from)),this.scaler=this.heightMap.height<=7e6?tu:new nu(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,(e=>{this.viewportLines.push(1==this.scaler.scale?e:ru(e,this.scaler))}))}update(e,t=null){this.state=e.state;let n=this.stateDeco;this.stateDeco=this.state.facet(ml).filter((e=>"function"!=typeof e));let r=e.changedRanges,i=wl.extendWithRanges(r,function(e,t,n){let r=new Wc;return pa.compare(e,t,n,r,0),r.changes}(n,this.stateDeco,e?e.changes:lo.empty(this.state.doc.length))),o=this.heightMap.height,a=this.scrolledToBottom?null:this.lineBlockAtHeight(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),i),this.heightMap.height!=o&&(e.flags|=2),a?(this.scrollAnchorPos=e.changes.mapPos(a.from,-1),this.scrollAnchorHeight=a.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let s=i.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.heads.to)||!this.viewportIsAppropriate(s))&&(s=this.getViewport(0,t));let l=!e.changes.empty||2&e.flags||s.from!=this.viewport.from||s.to!=this.viewport.to;this.viewport=s,this.updateForViewport(),l&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(il)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,n=window.getComputedStyle(t),r=this.heightOracle,i=n.whiteSpace;this.defaultTextDirection="rtl"==n.direction?kl.RTL:kl.LTR;let o=this.heightOracle.mustRefreshForWrapping(i),a=t.getBoundingClientRect(),s=o||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;let l=0,c=0,u=parseInt(n.paddingTop)||0,d=parseInt(n.paddingBottom)||0;this.paddingTop==u&&this.paddingBottom==d||(this.paddingTop=u,this.paddingBottom=d,l|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(r.lineWrapping&&(s=!0),this.editorWidth=e.scrollDOM.clientWidth,l|=8),this.scrollTop!=e.scrollDOM.scrollTop&&(this.scrollAnchorHeight=-1,this.scrollTop=e.scrollDOM.scrollTop),this.scrolledToBottom=this.scrollTop>e.scrollDOM.scrollHeight-e.scrollDOM.clientHeight-4;let h=(this.printing?Yc:Uc)(t,this.paddingTop),f=h.top-this.pixelViewport.top,p=h.bottom-this.pixelViewport.bottom;this.pixelViewport=h;let m=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(m!=this.inView&&(this.inView=m,m&&(s=!0)),!this.inView&&!this.scrollTarget)return 0;let g=a.width;if(this.contentDOMWidth==g&&this.editorHeight==e.scrollDOM.clientHeight||(this.contentDOMWidth=a.width,this.editorHeight=e.scrollDOM.clientHeight,l|=8),s){let t=e.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(t)&&(o=!0),o||r.lineWrapping&&Math.abs(g-this.contentDOMWidth)>r.charWidth){let{lineHeight:n,charWidth:a,textHeight:s}=e.docView.measureTextSize();o=n>0&&r.refresh(i,n,a,s,g/a,t),o&&(e.docView.minWidth=0,l|=8)}f>0&&p>0?c=Math.max(f,p):f<0&&p<0&&(c=Math.min(f,p)),r.heightChanged=!1;for(let n of this.viewports){let i=n.from==this.viewport.from?t:e.docView.measureVisibleLineHeights(n);this.heightMap=(o?$c.empty().applyChanges(this.stateDeco,Ni.empty,this.heightOracle,[new wl(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(r,0,o,new Rc(n.from,i))}r.heightChanged&&(l|=2)}let v=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return v&&(this.viewport=this.getViewport(c,this.scrollTarget)),this.updateForViewport(),(2&l||v)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps,e)),l|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),l}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),r=this.heightMap,i=this.heightOracle,{visibleTop:o,visibleBottom:a}=this,s=new Xc(r.lineAt(o-1e3*n,Ic.ByHeight,i,0,0).from,r.lineAt(a+1e3*(1-n),Ic.ByHeight,i,0,0).to);if(t){let{head:e}=t.range;if(es.to){let n,o=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),a=r.lineAt(e,Ic.ByPos,i,0,0);n="center"==t.y?(a.top+a.bottom)/2-o/2:"start"==t.y||"nearest"==t.y&&e=a+Math.max(10,Math.min(n,250)))&&r>o-2e3&&i>1,o=r<<1;if(this.defaultTextDirection!=kl.LTR&&!n)return[];let a=[],s=(r,o,l,c)=>{if(o-rr&&ee.from>=l.from&&e.to<=l.to&&Math.abs(e.from-r)e.fromt))));if(!h){if(oe.from<=o&&e.to>=o))){let e=t.moveToLineBoundary(vo.cursor(o),!1,!0).head;e>r&&(o=e)}h=new Kc(r,o,this.gapSize(l,r,o,c))}a.push(h)};for(let e of this.viewportLines){if(e.lengthe.from&&s(e.from,i,e,t),ae.draw(this.heightOracle.lineWrapping)))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let t=[];pa.spans(e,this.viewport.from,this.viewport.to,{span(e,n){t.push({from:e,to:n})},point(){}},20);let n=t.length!=this.visibleRanges.length||this.visibleRanges.some(((e,n)=>e.from!=t[n].from||e.to!=t[n].to));return this.visibleRanges=t,n?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find((t=>t.from<=e&&t.to>=e))||ru(this.heightMap.lineAt(e,Ic.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return ru(this.heightMap.lineAt(this.scaler.fromDOM(e),Ic.ByHeight,this.heightOracle,0,0),this.scaler)}elementAtHeight(e){return ru(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Xc{constructor(e,t){this.from=e,this.to=t}}function Qc(e,t,n){let r=[],i=e,o=0;return pa.spans(n,e,t,{span(){},point(e,t){e>i&&(r.push({from:i,to:e}),o+=e-i),i=t}},20),i=1)return t[t.length-1].to;let r=Math.floor(e*n);for(let e=0;;e++){let{from:n,to:i}=t[e],o=i-n;if(r<=o)return n+r;r-=o}}function eu(e,t){let n=0;for(let{from:r,to:i}of e.ranges){if(t<=i){n+=t-r;break}n+=i-r}return n/e.total}const tu={toDOM:e=>e,fromDOM:e=>e,scale:1};class nu{constructor(e,t,n){let r=0,i=0,o=0;this.viewports=n.map((({from:n,to:i})=>{let o=t.lineAt(n,Ic.ByPos,e,0,0).top,a=t.lineAt(i,Ic.ByPos,e,0,0).bottom;return r+=a-o,{from:n,to:i,top:o,bottom:a,domTop:0,domBottom:0}})),this.scale=(7e6-r)/(t.height-r);for(let e of this.viewports)e.domTop=o+(e.top-i)*this.scale,o=e.domBottom=e.domTop+(e.bottom-e.top),i=e.bottom}toDOM(e){for(let t=0,n=0,r=0;;t++){let i=tru(e,t))):e._content)}const iu=wo.define({combine:e=>e.join(" ")}),ou=wo.define({combine:e=>e.indexOf(!0)>-1}),au=Aa.newName(),su=Aa.newName(),lu=Aa.newName(),cu={"&light":"."+su,"&dark":"."+lu};function uu(e,t,n){return new Aa(t,{finish:t=>/&/.test(t)?t.replace(/&\w*/,(t=>{if("&"==t)return e;if(!n||!n[t])throw new RangeError(`Unsupported selector: ${t}`);return n[t]})):e+" "+t})}const du=uu("."+au,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",left:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},cu);class hu{constructor(e,t,n,r){this.typeOver=r,this.bounds=null,this.text="";let{impreciseHead:i,impreciseAnchor:o}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,n,0))){let t=i||o?[]:function(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}=e.observer.selectionRange;n&&(t.push(new Zl(n,r)),i==n&&o==r||t.push(new Zl(i,o)));return t}(e),n=new $l(t,e.state);n.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=n.text,this.newSel=function(e,t){if(0==e.length)return null;let n=e[0].pos,r=2==e.length?e[1].pos:n;return n>-1&&r>-1?vo.single(n+t,r+t):null}(t,this.bounds.from)}else{let t=e.observer.selectionRange,n=i&&i.node==t.focusNode&&i.offset==t.focusOffset||!Za(e.contentDOM,t.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(t.focusNode,t.focusOffset),r=o&&o.node==t.anchorNode&&o.offset==t.anchorOffset||!Za(e.contentDOM,t.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(t.anchorNode,t.anchorOffset);this.newSel=vo.single(r,n)}}}function fu(e,t){let n,{newSel:r}=t,i=e.state.selection.main,o=e.inputState.lastKeyTime>Date.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:r,to:a}=t.bounds,s=i.from,l=null;(8===o||ws.android&&t.text.length0&&s>0&&e.charCodeAt(a-1)==t.charCodeAt(s-1);)a--,s--;if("end"==r){n-=a+Math.max(0,o-Math.min(a,s))-o}if(a=a?o-n:0,s=o+(s-a),a=o}else if(s=s?o-n:0,a=o+(a-s),s=o}return{from:o,toA:a,toB:s}}(e.state.doc.sliceString(r,a,Ll),t.text,s-r,l);c&&(ws.chrome&&13==o&&c.toB==c.from+2&&t.text.slice(c.from,c.toB)==Ll+Ll&&c.toB--,n={from:r+c.from,to:r+c.toA,insert:Ni.of(t.text.slice(c.from,c.toB).split(Ll))})}else r&&(!e.hasFocus&&e.state.facet(ll)||r.main.eq(i))&&(r=null);if(!n&&!r)return!1;if(!n&&t.typeOver&&!i.empty&&r&&r.main.empty?n={from:i.from,to:i.to,insert:e.state.doc.slice(i.from,i.to)}:n&&n.from>=i.from&&n.to<=i.to&&(n.from!=i.from||n.to!=i.to)&&i.to-i.from-(n.to-n.from)<=4?n={from:i.from,to:i.to,insert:e.state.doc.slice(i.from,n.from).append(n.insert).append(e.state.doc.slice(n.to,i.to))}:(ws.mac||ws.android)&&n&&n.from==n.to&&n.from==i.head-1&&/^\. ?$/.test(n.insert.toString())&&"off"==e.contentDOM.getAttribute("autocorrect")?(r&&2==n.insert.length&&(r=vo.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:Ni.of([" "])}):ws.chrome&&n&&n.from==n.to&&n.from==i.head&&"\n "==n.insert.toString()&&e.lineWrapping&&(r&&(r=vo.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:Ni.of([" "])}),n){let t=e.state;if(ws.ios&&e.inputState.flushIOSKey(e))return!0;if(ws.android&&(n.from==i.from&&n.to==i.to&&1==n.insert.length&&2==n.insert.lines&&es(e.contentDOM,"Enter",13)||(n.from==i.from-1&&n.to==i.to&&0==n.insert.length||8==o&&n.insert.lengtht(e,n.from,n.to,s))))return!0;if(e.inputState.composing>=0&&e.inputState.composing++,n.from>=i.from&&n.to<=i.to&&n.to-n.from>=(i.to-i.from)/3&&(!r||r.main.empty&&r.main.from==n.from+n.insert.length)&&e.inputState.composing<0){let r=i.fromn.to?t.sliceDoc(n.to,i.to):"";a=t.replaceSelection(e.state.toText(r+n.insert.sliceString(0,void 0,e.state.lineBreak)+o))}else{let o=t.changes(n),s=r&&r.main.to<=o.newLength?r.main:void 0;if(t.selection.ranges.length>1&&e.inputState.composing>=0&&n.to<=i.to&&n.to>=i.to-10){let r=e.state.sliceDoc(n.from,n.to),l=Fl(e)||e.state.doc.lineAt(i.head),c=i.to-n.to,u=i.to-i.from;a=t.changeByRange((a=>{if(a.from==i.from&&a.to==i.to)return{changes:o,range:s||a.map(o)};let d=a.to-c,h=d-r.length;if(a.to-a.from!=u||e.state.sliceDoc(h,d)!=r||l&&a.to>=l.from&&a.from<=l.to)return{range:a};let f=t.changes({from:h,to:d,insert:n.insert}),p=a.to-i.to;return{changes:f,range:s?vo.range(Math.max(0,s.anchor+p),Math.max(0,s.head+p)):a.map(f)}}))}else a={changes:o,selection:s&&t.selection.replaceRange(s)}}let l="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,l+=".compose",e.inputState.compositionFirstChange&&(l+=".start",e.inputState.compositionFirstChange=!1)),e.dispatch(a,{scrollIntoView:!0,userEvent:l}),!0}if(r&&!r.main.eq(i)){let t=!1,n="select";return e.inputState.lastSelectionTime>Date.now()-50&&("select"==e.inputState.lastSelectionOrigin&&(t=!0),n=e.inputState.lastSelectionOrigin),e.dispatch({selection:r,scrollIntoView:t,userEvent:n}),!0}return!1}const pu={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},mu=ws.ie&&ws.ie_version<=11;class gu{constructor(e){this.view=e,this.active=!1,this.selectionRange=new qa,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.resizeContent=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver((t=>{for(let e of t)this.queue.push(e);(ws.ie&&ws.ie_version<=11||ws.ios&&e.composing)&&t.some((e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length))?this.flushSoon():this.flush()})),mu&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver((()=>{var e;(null===(e=this.view.docView)||void 0===e?void 0:e.lastUpdate)this.view.requestMeasure())),this.resizeContent.observe(e.contentDOM)),this.addWindowListeners(this.win=e.win),this.start(),"function"==typeof IntersectionObserver&&(this.intersection=new IntersectionObserver((e=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))}),{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver((e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))}),{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runScrollHandlers(this.view,e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout((()=>{this.resizeTimeout=-1,this.view.requestMeasure()}),50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout((()=>{this.view.viewState.printing=!1,this.view.requestMeasure()}),500)}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some(((t,n)=>t!=e[n])))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,r=this.selectionRange;if(n.state.facet(ll)?n.root.activeElement!=this.dom:!Ha(n.dom,r))return;let i=r.anchorNode&&n.docView.nearest(r.anchorNode);i&&i.ignoreEvent(e)?t||(this.selectionChanged=!1):(ws.ie&&ws.ie_version<=11||ws.android&&ws.chrome)&&!n.state.selection.main.empty&&r.focusNode&&Fa(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=ws.safari&&11==e.root.nodeType&&function(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}(this.dom.ownerDocument)==this.dom&&function(e){let t=null;function n(e){e.preventDefault(),e.stopImmediatePropagation(),t=e.getTargetRanges()[0]}if(e.contentDOM.addEventListener("beforeinput",n,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",n,!0),!t)return null;let r=t.startContainer,i=t.startOffset,o=t.endContainer,a=t.endOffset,s=e.docView.domAtPos(e.state.selection.main.anchor);Fa(s.node,s.offset,o,a)&&([r,i,o,a]=[o,a,r,i]);return{anchorNode:r,anchorOffset:i,focusNode:o,focusOffset:a}}(this.view)||Na(e.root);if(!t||this.selectionRange.eq(t))return!1;let n=Ha(this.dom,t);return n&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime{let e=this.delayedAndroidKey;if(e){this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=e.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&e.force&&es(this.dom,e.key,e.keyCode)}};this.flushingAndroidKey=this.view.win.requestAnimationFrame(e)}this.delayedAndroidKey&&"Enter"!=e||(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange{this.delayedFlush=-1,this.flush()})))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,n=-1,r=!1;for(let i of e){let e=this.readMutation(i);e&&(e.typeOver&&(r=!0),-1==t?({from:t,to:n}=e):(t=Math.min(e.from,t),n=Math.max(e.to,n)))}return{from:t,to:n,typeOver:r}}readChange(){let{from:e,to:t,typeOver:n}=this.processRecords(),r=this.selectionChanged&&Ha(this.dom,this.selectionRange);return e<0&&!r?null:(e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1,new hu(this.view,e,t,n))}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return!1;let n=this.view.state,r=fu(this.view,t);return this.view.state==n&&this.view.update([]),r}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty("attributes"==e.type),"attributes"==e.type&&(t.dirty|=4),"childList"==e.type){let n=vu(t,e.previousSibling||e.target.previousSibling,-1),r=vu(t,e.nextSibling||e.target.nextSibling,1);return{from:n?t.posAfter(n):t.posAtStart,to:r?t.posBefore(r):t.posAtEnd,typeOver:!1}}return"characterData"==e.type?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,t,n,r;this.stop(),null===(e=this.intersection)||void 0===e||e.disconnect(),null===(t=this.gapIntersection)||void 0===t||t.disconnect(),null===(n=this.resizeScroll)||void 0===n||n.disconnect(),null===(r=this.resizeContent)||void 0===r||r.disconnect();for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function vu(e,t,n){for(;t;){let r=is.get(t);if(r&&r.parent==e)return r;let i=t.parentNode;t=i!=e.dom?i:n>0?t.nextSibling:t.previousSibling}return null}class yu{constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: fixed; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),this._dispatch=e.dispatch||(e=>this.update([e])),this.dispatch=this.dispatch.bind(this),this._root=e.root||function(e){for(;e;){if(e&&(9==e.nodeType||11==e.nodeType&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}(e.parent)||document,this.viewState=new Gc(e.state||la.create(e)),this.plugins=this.state.facet(ul).map((e=>new hl(e)));for(let e of this.plugins)e.update(this);this.observer=new gu(this),this.inputState=new ac(this),this.inputState.ensureHandlers(this,this.plugins),this.docView=new Hl(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),e.parent&&e.parent.appendChild(this.dom)}get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}dispatch(...e){let t=1==e.length&&e[0]instanceof Xo?e[0]:this.state.update(...e);this._dispatch(t,this)}update(e){if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t,n=!1,r=!1,i=this.state;for(let t of e){if(t.startState!=i)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");i=t.state}if(this.destroyed)return void(this.viewState.state=i);let o=this.hasFocus,a=0,s=null;e.some((e=>e.annotation(Pc)))?(this.inputState.notifiedFocused=o,a=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,s=Ac(i,o),s||(a=1));let l=this.observer.delayedAndroidKey,c=null;if(l?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(i.doc)||!this.state.selection.eq(i.selection))&&(c=null)):this.observer.clear(),i.facet(la.phrases)!=this.state.facet(la.phrases))return this.setState(i);t=xl.create(this,i,e),t.flags|=a;let u=this.viewState.scrollTarget;try{this.updateState=2;for(let t of e){if(u&&(u=u.map(t.changes)),t.scrollIntoView){let{main:e}=t.state.selection;u=new ol(e.empty?e:vo.cursor(e.head,e.head>e.anchor?-1:1))}for(let e of t.effects)e.is(al)&&(u=e.value)}this.viewState.update(t,u),this.bidiCache=xu.update(this.bidiCache,t.changes),t.empty||(this.updatePlugins(t),this.inputState.update(t)),n=this.docView.update(t),this.state.facet(bl)!=this.styleModules&&this.mountStyles(),r=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(n,e.some((e=>e.isUserEvent("select.pointer"))))}finally{this.updateState=0}if(t.startState.facet(iu)!=t.state.facet(iu)&&(this.viewState.mustMeasureContent=!0),(n||r||u||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!t.empty)for(let e of this.state.facet(el))e(t);(s||c)&&Promise.resolve().then((()=>{s&&this.state==s.startState&&this.dispatch(s),c&&!fu(this,c)&&l.force&&es(this.contentDOM,l.key,l.keyCode)}))}setState(e){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)return void(this.viewState.state=e);this.updateState=2;let t=this.hasFocus;try{for(let e of this.plugins)e.destroy(this);this.viewState=new Gc(e),this.plugins=e.facet(ul).map((e=>new hl(e))),this.pluginMap.clear();for(let e of this.plugins)e.update(this);this.docView=new Hl(this),this.inputState.ensureHandlers(this,this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(ul),n=e.state.facet(ul);if(t!=n){let r=[];for(let i of n){let n=t.indexOf(i);if(n<0)r.push(new hl(i));else{let t=this.plugins[n];t.mustUpdate=e,r.push(t)}}for(let t of this.plugins)t.mustUpdate!=e&&t.destroy(this);this.plugins=r,this.pluginMap.clear(),this.inputState.ensureHandlers(this,this.plugins)}else for(let t of this.plugins)t.mustUpdate=e;for(let e=0;e-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,n=this.scrollDOM,{scrollTop:r}=n,{scrollAnchorPos:i,scrollAnchorHeight:o}=this.viewState;if(this.viewState.scrollAnchorHeight=-1,o<0||r!=this.viewState.scrollTop)if(r>n.scrollHeight-n.clientHeight-4)i=-1,o=this.viewState.heightMap.height;else{let e=this.viewState.lineBlockAtHeight(r);i=e.from,o=e.top}try{for(let e=0;;e++){this.updateState=1;let a=this.viewport,s=this.viewState.measure(this);if(!s&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(e>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let l=[];4&s||([this.measureRequests,l]=[l,this.measureRequests]);let c=l.map((e=>{try{return e.read(this)}catch(e){return sl(this.state,e),wu}})),u=xl.create(this,this.state,[]),d=!1,h=!1;u.flags|=s,t?t.flags|=s:t=u,this.updateState=2,u.empty||(this.updatePlugins(u),this.inputState.update(u),this.updateAttrs(),d=this.docView.update(u));for(let e=0;e-1){let e=(i<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(i).top)-o;(e>1||e<-1)&&(n.scrollTop=r+e,h=!0)}if(d&&this.docView.updateSelection(!0),this.viewport.from==a.from&&this.viewport.to==a.to&&!h&&0==this.measureRequests.length)break;o=-1}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let e of this.state.facet(el))e(t)}get themeClasses(){return au+" "+(this.state.facet(ou)?lu:su)+" "+this.state.facet(iu)}updateAttrs(){let e=ku(this,fl,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(ll)?"true":"false",class:"cm-content",style:`${ws.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),ku(this,pl,t);let n=this.observer.ignore((()=>{let n=Is(this.contentDOM,this.contentAttrs,t),r=Is(this.dom,this.editorAttrs,e);return n||r}));return this.editorAttrs=e,this.contentAttrs=t,n}showAnnouncements(e){let t=!0;for(let n of e)for(let e of n.effects)if(e.is(yu.announce)){t&&(this.announceDOM.textContent=""),t=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=e.value}}mountStyles(){this.styleModules=this.state.facet(bl),Aa.mount(this.root,this.styleModules.concat(du).reverse())}readMeasured(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame((()=>this.measure()))),e){if(this.measureRequests.indexOf(e)>-1)return;if(null!=e.key)for(let t=0;tt.spec==e))||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,n){return oc(this,e,rc(this,e,t,n))}moveByGroup(e,t){return oc(this,e,rc(this,e,t,(t=>function(e,t,n){let r=e.state.charCategorizer(t),i=r(n);return e=>{let t=r(e);return i==ia.Space&&(i=t),i==t}}(this,e.head,t))))}moveToLineBoundary(e,t,n=!0){return function(e,t,n,r){let i=nc(e,t.head),o=r&&i.type==$s.Text&&(e.lineWrapping||i.widgetLineBreaks)?e.coordsAtPos(t.assoc<0&&t.head>i.from?t.head-1:t.head):null;if(o){let t=e.dom.getBoundingClientRect(),r=e.textDirectionAt(i.from),a=e.posAtCoords({x:n==(r==kl.LTR)?t.right-1:t.left+1,y:(o.top+o.bottom)/2});if(null!=a)return vo.cursor(a,n?-1:1)}return vo.cursor(n?i.to:i.from,n?-1:1)}(this,e,t,n)}moveVertically(e,t,n){return oc(this,e,function(e,t,n,r){let i=t.head,o=n?1:-1;if(i==(n?e.state.doc.length:0))return vo.cursor(i,t.assoc);let a,s=t.goalColumn,l=e.contentDOM.getBoundingClientRect(),c=e.coordsAtPos(i),u=e.documentTop;if(c)null==s&&(s=c.left-l.left),a=o<0?c.top:c.bottom;else{let t=e.viewState.lineBlockAt(i);null==s&&(s=Math.min(l.right-l.left,e.defaultCharacterWidth*(i-t.from))),a=(o<0?t.top:t.bottom)+u}let d=l.left+s,h=null!=r?r:e.defaultLineHeight>>1;for(let n=0;;n+=10){let r=a+(h+n)*o,c=ec(e,{x:d,y:r},!1,o);if(rl.bottom||(o<0?ci))return vo.cursor(c,t.assoc,void 0,s)}}(this,e,t,n))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){return this.readMeasured(),ec(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let n=this.docView.coordsAt(e,t);if(!n||n.left==n.right)return n;let r=this.state.doc.lineAt(e),i=this.bidiSpans(r);return Ya(n,i[Tl.find(i,e-r.from,-1,t)].dir==kl.LTR==t>0)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(rl)||ethis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>bu)return Rl(e.length);let t=this.textDirectionAt(e.from);for(let n of this.bidiCache)if(n.from==e.from&&n.dir==t)return n.order;let n=Dl(e.text,t);return this.bidiCache.push(new xu(e.from,e.to,t,n)),n}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||ws.safari&&(null===(e=this.inputState)||void 0===e?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore((()=>{Qa(this.contentDOM),this.docView.updateSelection()}))}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((9==e.nodeType?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return al.of(new ol("number"==typeof e?vo.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}static domEventHandlers(e){return dl.define((()=>({})),{eventHandlers:e})}static theme(e,t){let n=Aa.newName(),r=[iu.of(n),bl.of(uu(`.${n}`,e))];return t&&t.dark&&r.push(ou.of(!0)),r}static baseTheme(e){return Do.lowest(bl.of(uu("."+au,e,cu)))}static findFromDOM(e){var t;let n=e.querySelector(".cm-content"),r=n&&is.get(n)||is.get(e);return(null===(t=null==r?void 0:r.rootView)||void 0===t?void 0:t.view)||null}}yu.styleModule=bl,yu.inputHandler=tl,yu.focusChangeEffect=nl,yu.perLineTextDirection=rl,yu.exceptionSink=Js,yu.updateListener=el,yu.editable=ll,yu.mouseSelectionStyle=Qs,yu.dragMovesSelection=Xs,yu.clickAddsSelectionRange=Gs,yu.decorations=ml,yu.atomicRanges=gl,yu.scrollMargins=vl,yu.darkTheme=ou,yu.contentAttributes=pl,yu.editorAttributes=fl,yu.lineWrapping=yu.contentAttributes.of({class:"cm-lineWrapping"}),yu.announce=Go.define();const bu=4096,wu={};class xu{constructor(e,t,n,r){this.from=e,this.to=t,this.dir=n,this.order=r}static update(e,t){if(t.empty)return e;let n=[],r=e.length?e[e.length-1].dir:kl.LTR;for(let i=Math.max(0,e.length-10);i=0;i--){let t=r[i],o="function"==typeof t?t(e):t;o&&Rs(o,n)}return n}const Su=ws.mac?"mac":ws.windows?"win":ws.linux?"linux":"key";function Cu(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==n&&t.shiftKey&&(e="Shift-"+e),e}const ju=Do.default(yu.domEventHandlers({keydown:(e,t)=>Tu(Eu(t.state),e,t,"editor")})),Ou=wo.define({enables:ju}),Mu=new WeakMap;function Eu(e){let t=e.facet(Ou),n=Mu.get(t);return n||Mu.set(t,n=function(e,t=Su){let n=Object.create(null),r=Object.create(null),i=(e,t)=>{let n=r[e];if(null==n)r[e]=t;else if(n!=t)throw new Error("Key binding "+e+" is used both as a regular binding and as a multi-stroke prefix")},o=(e,r,o,a)=>{var s,l;let c=n[e]||(n[e]=Object.create(null)),u=r.split(/ (?!$)/).map((e=>function(e,t){const n=e.split(/-(?!$)/);let r,i,o,a,s=n[n.length-1];"Space"==s&&(s=" ");for(let e=0;e{let r=Pu={view:t,prefix:n,scope:e};return setTimeout((()=>{Pu==r&&(Pu=null)}),Au),!0}]})}let d=u.join(" ");i(d,!1);let h=c[d]||(c[d]={preventDefault:!1,run:(null===(l=null===(s=c._any)||void 0===s?void 0:s.run)||void 0===l?void 0:l.slice())||[]});o&&h.run.push(o),a&&(h.preventDefault=!0)};for(let r of e){let e=r.scope?r.scope.split(" "):["editor"];if(r.any)for(let t of e){let e=n[t]||(n[t]=Object.create(null));e._any||(e._any={preventDefault:!1,run:[]});for(let t in e)e[t].run.push(r.any)}let i=r[t]||r.key;if(i)for(let t of e)o(t,i,r.run,r.preventDefault),r.shift&&o(t,"Shift-"+i,r.shift,r.preventDefault)}return n}(t.reduce(((e,t)=>e.concat(t)),[]))),n}let Pu=null;const Au=4e3;function Tu(e,t,n,r){let i=function(e){var t=!(za&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||Ia&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?Ra:Da)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(t),o=io(ro(i,0))==i.length&&" "!=i,a="",s=!1;Pu&&Pu.view==n&&Pu.scope==r&&(a=Pu.prefix+" ",(s=cc.indexOf(t.keyCode)<0)&&(Pu=null));let l,c,u=new Set,d=e=>{if(e){for(let r of e.run)if(!u.has(r)&&(u.add(r),r(n,t)))return!0;e.preventDefault&&(s=!0)}return!1},h=e[r];if(h){if(d(h[a+Cu(i,t,!o)]))return!0;if(o&&(t.altKey||t.metaKey||t.ctrlKey)&&!(ws.windows&&t.ctrlKey&&t.altKey)&&(l=Da[t.keyCode])&&l!=i){if(d(h[a+Cu(l,t,!0)]))return!0;if(t.shiftKey&&(c=Ra[t.keyCode])!=i&&c!=l&&d(h[a+Cu(c,t,!1)]))return!0}else if(o&&t.shiftKey&&d(h[a+Cu(i,t,!0)]))return!0;if(d(h._any))return!0}return s}const _u=!ws.ios;const Du={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};_u&&(Du[".cm-line"].caretColor="transparent !important");class Ru extends ua{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}Ru.prototype.elementClass="",Ru.prototype.toDOM=void 0,Ru.prototype.mapMode=ao.TrackBefore,Ru.prototype.startSide=Ru.prototype.endSide=-1,Ru.prototype.point=!0;const zu=wo.define(),Iu=wo.define();const Lu=wo.define({combine:e=>e.some((e=>e))});function $u(e){let t=[Nu];return e&&!1===e.fixed&&t.push(Lu.of(!0)),t}const Nu=dl.fromClass(class{constructor(e){this.view=e,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight+"px",this.gutters=e.state.facet(Iu).map((t=>new Fu(e,t)));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!e.state.facet(Lu),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}update(e){if(this.updateGutters(e)){let t=this.prevViewport,n=e.view.viewport,r=Math.min(t.to,n.to)-Math.max(t.from,n.from);this.syncGutters(r<.8*(n.to-n.from))}e.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(Lu)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&this.dom.remove();let n=pa.iter(this.view.state.facet(zu),this.view.viewport.from),r=[],i=this.gutters.map((e=>new Vu(e,this.view.viewport,-this.view.documentPadding.top)));for(let e of this.view.viewportLineBlocks)if(r.length&&(r=[]),Array.isArray(e.type)){let t=!0;for(let o of e.type)if(o.type==$s.Text&&t){Hu(n,r,o.from);for(let e of i)e.line(this.view,o,r);t=!1}else if(o.widget)for(let e of i)e.widget(this.view,o)}else if(e.type==$s.Text){Hu(n,r,e.from);for(let t of i)t.line(this.view,e,r)}for(let e of i)e.finish();e&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(e){let t=e.startState.facet(Iu),n=e.state.facet(Iu),r=e.docChanged||e.heightChanged||e.viewportChanged||!pa.eq(e.startState.facet(zu),e.state.facet(zu),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let t of this.gutters)t.update(e)&&(r=!0);else{r=!0;let i=[];for(let r of n){let n=t.indexOf(r);n<0?i.push(new Fu(this.view,r)):(this.gutters[n].update(e),i.push(this.gutters[n]))}for(let e of this.gutters)e.dom.remove(),i.indexOf(e)<0&&e.destroy();for(let e of i)this.dom.appendChild(e.dom);this.gutters=i}return r}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>yu.scrollMargins.of((t=>{let n=t.plugin(e);return n&&0!=n.gutters.length&&n.fixed?t.textDirection==kl.LTR?{left:n.dom.offsetWidth}:{right:n.dom.offsetWidth}:null}))});function Zu(e){return Array.isArray(e)?e:[e]}function Hu(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class Vu{constructor(e,t,n){this.gutter=e,this.height=n,this.i=0,this.cursor=pa.iter(e.markers,t.from)}addElement(e,t,n){let{gutter:r}=this,i=t.top-this.height;if(this.i==r.elements.length){let o=new Bu(e,t.height,i,n);r.elements.push(o),r.dom.appendChild(o.dom)}else r.elements[this.i].update(e,t.height,i,n);this.height=t.bottom,this.i++}line(e,t,n){let r=[];Hu(this.cursor,r,t.from),n.length&&(r=r.concat(n));let i=this.gutter.config.lineMarker(e,t,r);i&&r.unshift(i);let o=this.gutter;(0!=r.length||o.config.renderEmptyElements)&&this.addElement(e,t,r)}widget(e,t){let n=this.gutter.config.widgetMarker(e,t.widget,t);n&&this.addElement(e,t,[n])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class Fu{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let n in t.domEventHandlers)this.dom.addEventListener(n,(r=>{let i,o=r.target;if(o!=this.dom&&this.dom.contains(o)){for(;o.parentNode!=this.dom;)o=o.parentNode;let e=o.getBoundingClientRect();i=(e.top+e.bottom)/2}else i=r.clientY;let a=e.lineBlockAtHeight(i-e.documentTop);t.domEventHandlers[n](e,a,r)&&r.preventDefault()}));this.markers=Zu(t.markers(e)),t.initialSpacer&&(this.spacer=new Bu(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=Zu(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let t=this.config.updateSpacer(this.spacer.markers[0],e);t!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[t])}let n=e.view.viewport;return!pa.eq(this.markers,t,n.from,n.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(e)}destroy(){for(let e of this.elements)e.destroy()}}class Bu{constructor(e,t,n,r){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,n,r)}update(e,t,n,r){this.height!=t&&(this.dom.style.height=(this.height=t)+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),function(e,t){if(e.length!=t.length)return!1;for(let n=0;nca(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let n=Object.assign({},e);for(let e in t){let r=n[e],i=t[e];n[e]=r?(e,t,n)=>r(e,t,n)||i(e,t,n):i}return n}})});class Yu extends Ru{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function Ku(e,t){return e.state.facet(Uu).formatNumber(t,e.state)}const qu=Iu.compute([Uu],(e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:e=>e.state.facet(Wu),lineMarker:(e,t,n)=>n.some((e=>e.toDOM))?null:new Yu(Ku(e,e.state.doc.lineAt(t.from).number)),widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(Uu)!=e.state.facet(Uu),initialSpacer:e=>new Yu(Ku(e,Gu(e.state.doc.lines))),updateSpacer(e,t){let n=Ku(t.view,Gu(t.view.state.doc.lines));return n==e.number?e:new Yu(n)},domEventHandlers:e.facet(Uu).domEventHandlers})));function Gu(e){let t=9;for(;t{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=nd.match(e)),t=>{let n=e(t);return void 0===n?null:[this,n]}}}ed.closedBy=new ed({deserialize:e=>e.split(" ")}),ed.openedBy=new ed({deserialize:e=>e.split(" ")}),ed.group=new ed({deserialize:e=>e.split(" ")}),ed.contextHash=new ed({perNode:!0}),ed.lookAhead=new ed({perNode:!0}),ed.mounted=new ed({perNode:!0});const td=Object.create(null);class nd{constructor(e,t,n,r=0){this.name=e,this.props=t,this.id=n,this.flags=r}static define(e){let t=e.props&&e.props.length?Object.create(null):td,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),r=new nd(e.name||"",t,e.id,n);if(e.props)for(let n of e.props)if(Array.isArray(n)||(n=n(r)),n){if(n[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[n[0].id]=n[1]}return r}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(ed.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let r of n.split(" "))t[r]=e[n];return e=>{for(let n=e.prop(ed.group),r=-1;r<(n?n.length:0);r++){let i=t[r<0?e.name:n[r]];if(i)return i}}}}nd.none=new nd("",Object.create(null),0,8);class rd{constructor(e){this.types=e;for(let t=0;t0;for(let e=this.cursor(o|ad.IncludeAnonymous);;){let o=!1;if(e.from<=i&&e.to>=r&&(!a&&e.type.isAnonymous||!1!==t(e))){if(e.firstChild())continue;o=!0}for(;o&&n&&(a||!e.type.isAnonymous)&&n(e),!e.nextSibling();){if(!e.parent())return;o=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:kd(nd.none,this.children,this.positions,0,this.children.length,0,this.length,((e,t,n)=>new sd(this.type,e,t,n,this.propValues)),e.makeTree||((e,t,n)=>new sd(nd.none,e,t,n)))}static build(e){return function(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:i=Xu,reused:o=[],minRepeatType:a=r.types.length}=e,s=Array.isArray(n)?new ld(n,n.length):n,l=r.types,c=0,u=0;function d(e,t,n,v,y){let{id:b,start:w,end:x,size:k}=s,S=u;for(;k<0;){if(s.next(),-1==k){let t=o[b];return n.push(t),void v.push(w-e)}if(-3==k)return void(c=b);if(-4==k)return void(u=b);throw new RangeError(`Unrecognized record size: ${k}`)}let C,j,O=l[b],M=w-e;if(x-w<=i&&(j=m(s.pos-t,y))){let t=new Uint16Array(j.size-j.skip),n=s.pos-j.size,i=t.length;for(;s.pos>n;)i=g(j.start,t,i);C=new cd(t,x-j.start,r),M=j.start-e}else{let e=s.pos-k;s.next();let t=[],n=[],r=b>=a?b:-1,o=0,l=x;for(;s.pos>e;)r>=0&&s.id==r&&s.size>=0?(s.end<=l-i&&(f(t,n,w,o,s.end,l,r,S),o=t.length,l=s.end),s.next()):d(w,e,t,n,r);if(r>=0&&o>0&&o-1&&o>0){let e=h(O);C=kd(O,t,n,0,t.length,0,x-w,e,e)}else C=p(O,t,n,x-w,S-x)}n.push(C),v.push(M)}function h(e){return(t,n,r)=>{let i,o,a=0,s=t.length-1;if(s>=0&&(i=t[s])instanceof sd){if(!s&&i.type==e&&i.length==r)return i;(o=i.prop(ed.lookAhead))&&(a=n[s]+i.length+o)}return p(e,t,n,r,a)}}function f(e,t,n,i,o,a,s,l){let c=[],u=[];for(;e.length>i;)c.push(e.pop()),u.push(t.pop()+n-o);e.push(p(r.types[s],c,u,a-o,l-a)),t.push(o-n)}function p(e,t,n,r,i=0,o){if(c){let e=[ed.contextHash,c];o=o?[e].concat(o):[e]}if(i>25){let e=[ed.lookAhead,i];o=o?[e].concat(o):[e]}return new sd(e,t,n,r,o)}function m(e,t){let n=s.fork(),r=0,o=0,l=0,c=n.end-i,u={size:0,start:0,skip:0};e:for(let i=n.pos-e;n.pos>i;){let e=n.size;if(n.id==t&&e>=0){u.size=r,u.start=o,u.skip=l,l+=4,r+=4,n.next();continue}let s=n.pos-e;if(e<0||s=a?4:0,h=n.start;for(n.next();n.pos>s;){if(n.size<0){if(-3!=n.size)break e;d+=4}else n.id>=a&&(d+=4);n.next()}o=h,r+=e,l+=d}return(t<0||r==e)&&(u.size=r,u.start=o,u.skip=l),u.size>4?u:void 0}function g(e,t,n){let{id:r,start:i,end:o,size:l}=s;if(s.next(),l>=0&&r4){let r=s.pos-(l-4);for(;s.pos>r;)n=g(e,t,n)}t[--n]=a,t[--n]=o-e,t[--n]=i-e,t[--n]=r}else-3==l?c=r:-4==l&&(u=r);return n}let v=[],y=[];for(;s.pos>0;)d(e.start||0,e.bufferStart||0,v,y,-1);let b=null!==(t=e.length)&&void 0!==t?t:v.length?y[0]+v[0].length:0;return new sd(l[e.topID],v.reverse(),y.reverse(),b)}(e)}}sd.empty=new sd(nd.none,[],[],0);class ld{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new ld(this.buffer,this.index)}}class cd{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return nd.none}toString(){let e=[];for(let t=0;t0));s=o[s+3]);return a}slice(e,t,n){let r=this.buffer,i=new Uint16Array(t-e),o=0;for(let a=e,s=0;a=t&&nt;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function dd(e,t){let n=e.childBefore(t);for(;n;){let t=n.lastChild;if(!t||t.to!=n.to)break;t.type.isError&&t.from==t.to?(e=n,n=t.prevSibling):n=t}return e}function hd(e,t,n,r){for(var i;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to0?a.length:-1;e!=l;e+=t){let l=a[e],c=s[e]+o.from;if(ud(r,n,c,c+l.length))if(l instanceof cd){if(i&ad.ExcludeBuffers)continue;let a=l.findChild(0,l.buffer.length,t,n-c,r);if(a>-1)return new vd(new gd(o,l,e,c),null,a)}else if(i&ad.IncludeAnonymous||!l.type.isAnonymous||bd(l)){let a;if(!(i&ad.IgnoreMounts)&&l.props&&(a=l.prop(ed.mounted))&&!a.overlay)return new fd(a.tree,c,e,o);let s=new fd(l,c,e,o);return i&ad.IncludeAnonymous||!s.type.isAnonymous?s:s.nextChild(t<0?l.children.length-1:0,t,n,r)}}if(i&ad.IncludeAnonymous||!o.type.isAnonymous)return null;if(e=o.index>=0?o.index+t:t<0?-1:o._parent._tree.children.length,o=o._parent,!o)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,n=0){let r;if(!(n&ad.IgnoreOverlays)&&(r=this._tree.prop(ed.mounted))&&r.overlay){let n=e-this.from;for(let{from:e,to:i}of r.overlay)if((t>0?e<=n:e=n:i>n))return new fd(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}cursor(e=0){return new yd(this,e)}get tree(){return this._tree}toTree(){return this._tree}resolve(e,t=0){return hd(this,e,t,!1)}resolveInner(e,t=0){return hd(this,e,t,!0)}enterUnfinishedNodesBefore(e){return dd(this,e)}getChild(e,t=null,n=null){let r=pd(this,e,t,n);return r.length?r[0]:null}getChildren(e,t=null,n=null){return pd(this,e,t,n)}toString(){return this._tree.toString()}get node(){return this}matchContext(e){return md(this,e)}}function pd(e,t,n,r){let i=e.cursor(),o=[];if(!i.firstChild())return o;if(null!=n)for(;!i.type.is(n);)if(!i.nextSibling())return o;for(;;){if(null!=r&&i.type.is(r))return o;if(i.type.is(t)&&o.push(i.node),!i.nextSibling())return null==r?o:[]}}function md(e,t,n=t.length-1){for(let r=e.parent;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}class gd{constructor(e,t,n,r){this.parent=e,this.buffer=t,this.index=n,this.start=r}}class vd{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,n){this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,t,n){let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.context.start,n);return i<0?null:new vd(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,n=0){if(n&ad.ExcludeBuffers)return null;let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return i<0?null:new vd(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new vd(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new vd(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}cursor(e=0){return new yd(this,e)}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,r=this.index+4,i=n.buffer[this.index+3];if(i>r){let o=n.buffer[this.index+1];e.push(n.slice(r,i,o)),t.push(0)}return new sd(this.type,e,t,this.to-this.from)}resolve(e,t=0){return hd(this,e,t,!1)}resolveInner(e,t=0){return hd(this,e,t,!0)}enterUnfinishedNodesBefore(e){return dd(this,e)}toString(){return this.context.buffer.childString(this.index)}getChild(e,t=null,n=null){let r=pd(this,e,t,n);return r.length?r[0]:null}getChildren(e,t=null,n=null){return pd(this,e,t,n)}get node(){return this}matchContext(e){return md(this,e)}}class yd{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof fd)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,t){this.index=e;let{start:n,buffer:r}=this.buffer;return this.type=t||r.set.types[r.buffer[e]],this.from=n+r.buffer[e+1],this.to=n+r.buffer[e+2],!0}yield(e){return!!e&&(e instanceof fd?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));let{buffer:r}=this.buffer,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.buffer.start,n);return!(i<0)&&(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,n=this.mode){return this.buffer?!(n&ad.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&ad.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&ad.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let e=n<0?0:this.stack[n]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(e)}return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:r}=this;if(r){if(e>0){if(this.index-1)for(let r=t+e,i=e<0?-1:n._tree.children.length;r!=i;r+=e){let e=n._tree.children[r];if(this.mode&ad.IncludeAnonymous||e instanceof cd||!e.type.isAnonymous||bd(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to=0;){for(let o=e;o;o=o._parent)if(o.index==r){if(r==this.index)return o;t=o,n=i+1;break e}r=this.stack[--i]}for(let e=n;e=0;i--){if(i<0)return md(this.node,e,r);let o=n[t.buffer[this.stack[i]]];if(!o.isAnonymous){if(e[r]&&e[r]!=o.name)return!1;r--}}return!0}}function bd(e){return e.children.some((e=>e instanceof cd||!e.type.isAnonymous||bd(e)))}const wd=new WeakMap;function xd(e,t){if(!e.isAnonymous||t instanceof cd||t.type!=e)return 1;let n=wd.get(t);if(null==n){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof sd)){n=1;break}n+=xd(e,r)}wd.set(t,n)}return n}function kd(e,t,n,r,i,o,a,s,l){let c=0;for(let n=r;n=u)break;p+=t}if(c==i+1){if(p>u){let e=n[i];t(e.children,e.positions,0,e.children.length,r[i]+s);continue}d.push(n[i])}else{let t=r[c-1]+n[c-1].length-f;d.push(kd(e,n,r,i,c,f,t,null,l))}h.push(f+s-o)}}(t,n,r,i,0),(s||l)(d,h,a)}class Sd{constructor(e,t,n,r,i=!1,o=!1){this.from=e,this.to=t,this.tree=n,this.offset=r,this.open=(i?1:0)|(o?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],n=!1){let r=[new Sd(0,e.length,e,0,!1,n)];for(let n of t)n.to>e.length&&r.push(n);return r}static applyChanges(e,t,n=128){if(!t.length)return e;let r=[],i=1,o=e.length?e[0]:null;for(let a=0,s=0,l=0;;a++){let c=a=n)for(;o&&o.from=t.from||u<=t.to||l){let e=Math.max(t.from,s)-l,n=Math.min(t.to,u)-l;t=e>=n?null:new Sd(e,n,t.tree,t.offset+l,a>0,!!c)}if(t&&r.push(t),o.to>u)break;o=inew Ju(e.from,e.to))):[new Ju(0,0)]:[new Ju(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let r=this.startParse(e,t,n);for(;;){let e=r.advance();if(e)return e}}}class jd{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}new ed({perNode:!0});let Od=0;class Md{constructor(e,t,n){this.set=e,this.base=t,this.modified=n,this.id=Od++}static define(e){if(null==e?void 0:e.base)throw new Error("Can not derive from a modified tag");let t=new Md([],null,[]);if(t.set.push(t),e)for(let n of e.set)t.set.push(n);return t}static defineModifier(){let e=new Pd;return t=>t.modified.indexOf(e)>-1?t:Pd.get(t.base||t,t.modified.concat(e).sort(((e,t)=>e.id-t.id)))}}let Ed=0;class Pd{constructor(){this.instances=[],this.id=Ed++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find((n=>n.base==e&&function(e,t){return e.length==t.length&&e.every(((e,n)=>e==t[n]))}(t,n.modified)));if(n)return n;let r=[],i=new Md(r,e,t);for(let e of t)e.instances.push(i);let o=function(e){let t=[[]];for(let n=0;nt.length-e.length))}(t);for(let t of e.set)if(!t.modified.length)for(let e of o)r.push(Pd.get(t,e));return i}}function Ad(e){let t=Object.create(null);for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]);for(let e of n.split(" "))if(e){let n=[],i=2,o=e;for(let t=0;;){if("..."==o&&t>0&&t+3==e.length){i=1;break}let r=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(o);if(!r)throw new RangeError("Invalid path: "+e);if(n.push("*"==r[0]?"":'"'==r[0][0]?JSON.parse(r[0]):r[0]),t+=r[0].length,t==e.length)break;let a=e[t++];if(t==e.length&&"!"==a){i=0;break}if("/"!=a)throw new RangeError("Invalid path: "+e);o=e.slice(t)}let a=n.length-1,s=n[a];if(!s)throw new RangeError("Invalid path: "+e);let l=new _d(r,i,a>0?n.slice(0,a):null);t[s]=l.sort(t[s])}}return Td.add(t)}const Td=new ed;class _d{constructor(e,t,n,r){this.tags=e,this.mode=t,this.context=n,this.next=r}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){return!e||e.depth{let t=i;for(let r of e)for(let e of r.set){let r=n[e.id];if(r){t=t?t+" "+r:r;break}}return t},scope:r}}function Rd(e,t,n,r=0,i=e.length){let o=new zd(r,Array.isArray(t)?t:[t],n);o.highlightRange(e.cursor(),r,i,"",o.highlighters),o.flush(i)}_d.empty=new _d([],2,null);class zd{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,r,i){let{type:o,from:a,to:s}=e;if(a>=n||s<=t)return;o.isTop&&(i=this.highlighters.filter((e=>!e.scope||e.scope(o))));let l=r,c=function(e){let t=e.type.prop(Td);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}(e)||_d.empty,u=function(e,t){let n=null;for(let r of e){let e=r.style(t);e&&(n=n?n+" "+e:e)}return n}(i,c.tags);if(u&&(l&&(l+=" "),l+=u,1==c.mode&&(r+=(r?" ":"")+u)),this.startSpan(Math.max(t,a),l),c.opaque)return;let d=e.tree&&e.tree.prop(ed.mounted);if(d&&d.overlay){let o=e.node.enter(d.overlay[0].from+a,1),c=this.highlighters.filter((e=>!e.scope||e.scope(d.tree.type))),u=e.firstChild();for(let h=0,f=a;;h++){let p=h=m)&&e.nextSibling()););if(!p||m>n)break;f=p.to+a,f>t&&(this.highlightRange(o.cursor(),Math.max(t,p.from+a),Math.min(n,f),"",c),this.startSpan(Math.min(n,f),l))}u&&e.parent()}else if(e.firstChild()){d&&(r="");do{if(!(e.to<=t)){if(e.from>=n)break;this.highlightRange(e,t,n,r,i),this.startSpan(Math.min(n,e.to),l)}}while(e.nextSibling());e.parent()}}}const Id=Md.define,Ld=Id(),$d=Id(),Nd=Id($d),Zd=Id($d),Hd=Id(),Vd=Id(Hd),Fd=Id(Hd),Bd=Id(),Wd=Id(Bd),Ud=Id(),Yd=Id(),Kd=Id(),qd=Id(Kd),Gd=Id(),Xd={comment:Ld,lineComment:Id(Ld),blockComment:Id(Ld),docComment:Id(Ld),name:$d,variableName:Id($d),typeName:Nd,tagName:Id(Nd),propertyName:Zd,attributeName:Id(Zd),className:Id($d),labelName:Id($d),namespace:Id($d),macroName:Id($d),literal:Hd,string:Vd,docString:Id(Vd),character:Id(Vd),attributeValue:Id(Vd),number:Fd,integer:Id(Fd),float:Id(Fd),bool:Id(Hd),regexp:Id(Hd),escape:Id(Hd),color:Id(Hd),url:Id(Hd),keyword:Ud,self:Id(Ud),null:Id(Ud),atom:Id(Ud),unit:Id(Ud),modifier:Id(Ud),operatorKeyword:Id(Ud),controlKeyword:Id(Ud),definitionKeyword:Id(Ud),moduleKeyword:Id(Ud),operator:Yd,derefOperator:Id(Yd),arithmeticOperator:Id(Yd),logicOperator:Id(Yd),bitwiseOperator:Id(Yd),compareOperator:Id(Yd),updateOperator:Id(Yd),definitionOperator:Id(Yd),typeOperator:Id(Yd),controlOperator:Id(Yd),punctuation:Kd,separator:Id(Kd),bracket:qd,angleBracket:Id(qd),squareBracket:Id(qd),paren:Id(qd),brace:Id(qd),content:Bd,heading:Wd,heading1:Id(Wd),heading2:Id(Wd),heading3:Id(Wd),heading4:Id(Wd),heading5:Id(Wd),heading6:Id(Wd),contentSeparator:Id(Bd),list:Id(Bd),quote:Id(Bd),emphasis:Id(Bd),strong:Id(Bd),link:Id(Bd),monospace:Id(Bd),strikethrough:Id(Bd),inserted:Id(),deleted:Id(),changed:Id(),invalid:Id(),meta:Gd,documentMeta:Id(Gd),annotation:Id(Gd),processingInstruction:Id(Gd),definition:Md.defineModifier(),constant:Md.defineModifier(),function:Md.defineModifier(),standard:Md.defineModifier(),local:Md.defineModifier(),special:Md.defineModifier()};Dd([{tag:Xd.link,class:"tok-link"},{tag:Xd.heading,class:"tok-heading"},{tag:Xd.emphasis,class:"tok-emphasis"},{tag:Xd.strong,class:"tok-strong"},{tag:Xd.keyword,class:"tok-keyword"},{tag:Xd.atom,class:"tok-atom"},{tag:Xd.bool,class:"tok-bool"},{tag:Xd.url,class:"tok-url"},{tag:Xd.labelName,class:"tok-labelName"},{tag:Xd.inserted,class:"tok-inserted"},{tag:Xd.deleted,class:"tok-deleted"},{tag:Xd.literal,class:"tok-literal"},{tag:Xd.string,class:"tok-string"},{tag:Xd.number,class:"tok-number"},{tag:[Xd.regexp,Xd.escape,Xd.special(Xd.string)],class:"tok-string2"},{tag:Xd.variableName,class:"tok-variableName"},{tag:Xd.local(Xd.variableName),class:"tok-variableName tok-local"},{tag:Xd.definition(Xd.variableName),class:"tok-variableName tok-definition"},{tag:Xd.special(Xd.variableName),class:"tok-variableName2"},{tag:Xd.definition(Xd.propertyName),class:"tok-propertyName tok-definition"},{tag:Xd.typeName,class:"tok-typeName"},{tag:Xd.namespace,class:"tok-namespace"},{tag:Xd.className,class:"tok-className"},{tag:Xd.macroName,class:"tok-macroName"},{tag:Xd.propertyName,class:"tok-propertyName"},{tag:Xd.operator,class:"tok-operator"},{tag:Xd.comment,class:"tok-comment"},{tag:Xd.meta,class:"tok-meta"},{tag:Xd.invalid,class:"tok-invalid"},{tag:Xd.punctuation,class:"tok-punctuation"}]);var Qd;const Jd=new ed;function eh(e){return wo.define({combine:e?t=>t.concat(e):void 0})}const th=new ed;class nh{constructor(e,t,n=[],r=""){this.data=e,this.name=r,la.prototype.hasOwnProperty("tree")||Object.defineProperty(la.prototype,"tree",{get(){return ih(this)}}),this.parser=t,this.extension=[fh.of(this),la.languageData.of(((e,t,n)=>{let r=rh(e,t,n),i=r.type.prop(Jd);if(!i)return[];let o=e.facet(i),a=r.type.prop(th);if(a){let i=r.resolve(t-r.from,n);for(let t of a)if(t.test(i,e)){let n=e.facet(t.facet);return"replace"==t.type?n:n.concat(o)}}return o}))].concat(n)}isActiveAt(e,t,n=-1){return rh(e,t,n).type.prop(Jd)==this.data}findRegions(e){let t=e.facet(fh);if((null==t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],r=(e,t)=>{if(e.prop(Jd)==this.data)return void n.push({from:t,to:t+e.length});let i=e.prop(ed.mounted);if(i){if(i.tree.prop(Jd)==this.data){if(i.overlay)for(let e of i.overlay)n.push({from:e.from+t,to:e.to+t});else n.push({from:t,to:t+e.length});return}if(i.overlay){let e=n.length;if(r(i.tree,i.overlay[0].from+t),n.length>e)return}}for(let n=0;n=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let ah=null;class sh{constructor(e,t,n=[],r,i,o,a,s){this.parser=e,this.state=t,this.fragments=n,this.tree=r,this.treeLen=i,this.viewport=o,this.skipped=a,this.scheduleOn=s,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new sh(e,t,[],sd.empty,0,n,[],null)}startParse(){return this.parser.startParse(new oh(this.state.doc),this.fragments)}work(e,t){return null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=sd.empty&&this.isDone(null!=t?t:this.state.doc.length)?(this.takeTree(),!0):this.withContext((()=>{var n;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext((()=>{for(;!(t=this.parse.advance()););})),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(Sd.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=ah;ah=this;try{return e()}finally{ah=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=lh(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:r,treeLen:i,viewport:o,skipped:a}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges(((e,n,r,i)=>t.push({fromA:e,toA:n,fromB:r,toB:i}))),n=Sd.applyChanges(n,t),r=sd.empty,i=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length){a=[];for(let t of this.skipped){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);ne.from&&(this.fragments=lh(this.fragments,n,r),this.skipped.splice(t--,1))}return!(this.skipped.length>=t)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends Cd{createParse(t,n,r){let i=r[0].from,o=r[r.length-1].to,a={parsedPos:i,advance(){let t=ah;if(t){for(let e of r)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=o,new sd(nd.none,[],[],o-i)},stoppedAt:null,stopAt(){}};return a}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return ah}}function lh(e,t,n){return Sd.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class ch{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new ch(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=sh.create(e.facet(fh).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new ch(n)}}nh.state=Mo.define({create:ch.init,update(e,t){for(let e of t.effects)if(e.is(nh.setState))return e.value;return t.startState.facet(fh)!=t.state.facet(fh)?ch.init(t.state):e.apply(t)}});let uh=e=>{let t=setTimeout((()=>e()),500);return()=>clearTimeout(t)};"undefined"!=typeof requestIdleCallback&&(uh=e=>{let t=-1,n=setTimeout((()=>{t=requestIdleCallback(e,{timeout:400})}),100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const dh="undefined"!=typeof navigator&&(null===(Qd=navigator.scheduling)||void 0===Qd?void 0:Qd.isInputPending)?()=>navigator.scheduling.isInputPending():null,hh=dl.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(nh.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),e.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(nh.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=uh(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEndr+1e3,s=i.context.work((()=>dh&&dh()||Date.now()>o),r+(a?0:1e5));this.chunkBudget-=Date.now()-t,(s||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:nh.setState.of(new ch(i.context))})),this.chunkBudget>0&&(!s||a)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then((()=>this.scheduleWork())).catch((e=>sl(this.view.state,e))).then((()=>this.workScheduled--)),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),fh=wo.define({combine:e=>e.length?e[0]:null,enables:e=>[nh.state,hh,yu.contentAttributes.compute([e],(t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}}))]});const ph=wo.define(),mh=wo.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some((e=>e!=t[0])))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function gh(e){let t=e.facet(mh);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function vh(e,t){let n="",r=e.tabSize,i=e.facet(mh)[0];if("\t"==i){for(;t>=r;)n+="\t",t-=r;i=" "}for(let e=0;e=n.from&&r<=n.to?i&&r==e?{text:"",from:e}:(t<0?r-1&&(i+=o-this.countColumn(n,n.search(/\S|$/))),i}countColumn(e,t=e.length){return Oa(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:r}=this.lineAt(e,t),i=this.options.overrideIndentation;if(i){let e=i(r);if(e>-1)return e}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const wh=new ed;function xh(e){let t=e.type.prop(wh);if(t)return t;let n,r=e.firstChild;if(r&&(n=r.type.prop(ed.closedBy))){let t=e.lastChild,r=t&&n.indexOf(t.name)>-1;return e=>Oh(e,!0,1,void 0,r&&!function(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}(e)?t.from:void 0)}return null==e.parent?Sh:null}function kh(e,t,n){for(;e;e=e.parent){let r=xh(e);if(r)return r(Ch.create(n,t,e))}return null}function Sh(){return 0}class Ch extends bh{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.node=n}static create(e,t,n){return new Ch(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let n=e.resolve(t.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(jh(n,e))break;t=this.state.doc.lineAt(n.from)}return this.lineIndent(t.from)}continue(){let e=this.node.parent;return e?kh(e,this.pos,this.base):0}}function jh(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function Oh(e,t,n,r,i){let o=e.textAfter,a=o.match(/^\s*/)[0].length,s=r&&o.slice(a,a+r.length)==r||i==e.pos+a,l=t?function(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let i=e.options.simulateBreak,o=e.state.doc.lineAt(n.from),a=null==i||i<=o.from?o.to:Math.min(o.to,i);for(let e=n.to;;){let i=t.childAfter(e);if(!i||i==r)return null;if(!i.type.isSkipped)return i.frome.prop(Jd)==o.data:o?e=>e==o:void 0,this.style=Dd(e.map((e=>({tag:e.tag,class:e.class||r(Object.assign({},e,{tag:null}))}))),{all:i}).style,this.module=n?new Aa(n):null,this.themeType=t.themeType}static define(e,t){return new Mh(e,t||{})}}const Eh=wo.define(),Ph=wo.define({combine:e=>e.length?[e[0]]:null});function Ah(e){let t=e.facet(Eh);return t.length?t:e.facet(Ph)}function Th(e,t){let n,r=[Dh];return e instanceof Mh&&(e.module&&r.push(yu.styleModule.of(e.module)),n=e.themeType),(null==t?void 0:t.fallback)?r.push(Ph.of(e)):n?r.push(Eh.computeN([yu.darkTheme],(t=>t.facet(yu.darkTheme)==("dark"==n)?[e]:[]))):r.push(Eh.of(e)),r}class _h{constructor(e){this.markCache=Object.create(null),this.tree=ih(e.state),this.decorations=this.buildDeco(e,Ah(e.state))}update(e){let t=ih(e.state),n=Ah(e.state),r=n!=Ah(e.startState);t.length{n.add(e,t,this.markCache[r]||(this.markCache[r]=Ns.mark({class:r})))}),r,i);return n.finish()}}const Dh=Do.high(dl.fromClass(_h,{decorations:e=>e.decorations}));Xd.meta,Xd.link,Xd.heading,Xd.emphasis,Xd.strong,Xd.strikethrough,Xd.keyword,Xd.atom,Xd.bool,Xd.url,Xd.contentSeparator,Xd.labelName,Xd.literal,Xd.inserted,Xd.string,Xd.deleted,Xd.regexp,Xd.escape,Xd.string,Xd.variableName,Xd.variableName,Xd.typeName,Xd.namespace,Xd.className,Xd.variableName,Xd.macroName,Xd.propertyName,Xd.comment,Xd.invalid;function Rh(e,t,n,r=0,i=0){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);let o=i;for(let i=r;i=this.string.length}sol(){return 0==this.pos}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.post}eatSpace(){let e=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e}skipToEnd(){this.pos=this.string.length}skipTo(e){let t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0}backUp(e){this.pos-=e}column(){return this.lastColumnPosn?e.toLowerCase():e;return r(this.string.substr(this.pos,e.length))==r(e)?(!1!==t&&(this.pos+=e.length),!0):null}{let n=this.string.slice(this.pos).match(e);return n&&n.index>0?null:(n&&!1!==t&&(this.pos+=n[0].length),n)}}current(){return this.string.slice(this.start,this.pos)}}function Ih(e){if("object"!=typeof e)return e;let t={};for(let n in e){let r=e[n];t[n]=r instanceof Array?r.slice():r}return t}const Lh=new WeakMap;class $h extends nh{constructor(e){let t,n=eh(e.languageData),r={name:(i=e).name||"",token:i.token,blankLine:i.blankLine||(()=>{}),startState:i.startState||(()=>!0),copyState:i.copyState||Ih,indent:i.indent||(()=>null),languageData:i.languageData||{},tokenTable:i.tokenTable||Fh};var i;super(n,new class extends Cd{createParse(e,n,r){return new Hh(t,e,n,r)}},[ph.of(((e,t)=>this.getIndent(e,t)))],e.name),this.topNode=function(e){let t=nd.define({id:Bh.length,name:"Document",props:[Jd.add((()=>e))]});return Bh.push(t),t}(n),t=this,this.streamParser=r,this.stateAfter=new ed({perNode:!0}),this.tokenTable=e.tokenTable?new Kh(r.tokenTable):qh}static define(e){return new $h(e)}getIndent(e,t){let n,r=ih(e.state),i=r.resolve(t);for(;i&&i.type!=this.topNode;)i=i.parent;if(!i)return null;let{overrideIndentation:o}=e.options;o&&(n=Lh.get(e.state),null!=n&&n1e4)return null;for(;a=r&&n+t.length<=i&&t.prop(e.stateAfter);if(o)return{state:e.streamParser.copyState(o),pos:n+t.length};for(let o=t.children.length-1;o>=0;o--){let a=t.children[o],s=n+t.positions[o],l=a instanceof sd&&s=t.length)return t;i||t.type!=e.topNode||(i=!0);for(let o=t.children.length-1;o>=0;o--){let a,s=t.positions[o],l=t.children[o];if(sn&&Nh(e,r.tree,0-r.offset,n,o);if(a&&(t=Zh(e,r.tree,n+r.offset,a.pos+r.offset,!1)))return{state:a.state,tree:t}}return{state:e.streamParser.startState(r?gh(r):4),tree:sd.empty}}(e,n,o,null==i?void 0:i.state);this.state=a,this.parsedPos=this.chunkStart=o+s.length;for(let e=0;e=t?this.finish():e&&this.parsedPos>=e.viewport.to?(e.skipUntilInView(this.parsedPos,t),this.finish()):null}stopAt(e){this.stoppedAt=e}lineAfter(e){let t=this.input.chunk(e);if(this.input.lineChunks)"\n"==t&&(t="");else{let e=t.indexOf("\n");e>-1&&(t=t.slice(0,e))}return e+t.length<=this.to?t:t.slice(0,this.to-e)}nextLine(){let e=this.parsedPos,t=this.lineAfter(e),n=e+t.length;for(let e=this.rangeIndex;;){let r=this.ranges[e].to;if(r>=n)break;if(t=t.slice(0,r-(n-t.length)),e++,e==this.ranges.length)break;let i=this.ranges[e].from,o=this.lineAfter(i);t+=o,n=i+o.length}return{line:t,end:n}}skipGapsTo(e,t,n){for(;;){let r=this.ranges[this.rangeIndex].to,i=e+t;if(n>0?r>i:r>=i)break;t+=this.ranges[++this.rangeIndex].from-r}return t}moveRangeIndex(){for(;this.ranges[this.rangeIndex].to1){t+=i=this.skipGapsTo(t,i,1);let e=this.chunk.length;n+=i=this.skipGapsTo(n,i,-1),r+=this.chunk.length-e}return this.chunk.push(e,t,n,r),i}parseLine(e){let{line:t,end:n}=this.nextLine(),r=0,{streamParser:i}=this.lang,o=new zh(t,e?e.state.tabSize:4,e?gh(e.state):2);if(o.eol())i.blankLine(this.state,o.indentUnit);else for(;!o.eol();){let e=Vh(i.token,o,this.state);if(e&&(r=this.emitToken(this.lang.tokenTable.resolve(e),this.parsedPos+o.start,this.parsedPos+o.pos,4,r)),o.start>1e4)break}this.parsedPos=n,this.moveRangeIndex(),this.parsedPost.start)return r}throw new Error("Stream parser failed to advance stream.")}const Fh=Object.create(null),Bh=[nd.none],Wh=new rd(Bh),Uh=[],Yh=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])Yh[e]=Xh(Fh,t);class Kh{constructor(e){this.extra=e,this.table=Object.assign(Object.create(null),Yh)}resolve(e){return e?this.table[e]||(this.table[e]=Xh(this.extra,e)):0}}const qh=new Kh(Fh);function Gh(e,t){Uh.indexOf(e)>-1||(Uh.push(e),console.warn(t))}function Xh(e,t){let n=null;for(let r of t.split(".")){let t=e[r]||Xd[r];t?"function"==typeof t?n?n=t(n):Gh(r,`Modifier ${r} used at start of tag`):n?Gh(r,`Tag ${r} used as modifier`):n=t:Gh(r,`Unknown highlighting tag ${r}`)}if(!n)return 0;let r=t.replace(/ /g,"_"),i=nd.define({id:Bh.length,name:r,props:[Ad({[r]:n})]});return Bh.push(i),i.id}const Qh=Yo.define(),Jh=Yo.define(),ef=wo.define(),tf=wo.define({combine:e=>ca(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,r)=>e(n,r)||t(n,r)})});const nf=Mo.define({create:()=>yf.empty,update(e,t){let n=t.state.facet(tf),r=t.annotation(Qh);if(r){let i=t.docChanged?vo.single(function(e){let t=0;return e.iterChangedRanges(((e,n)=>t=n)),t}(t.changes)):void 0,o=lf.fromTransaction(t,i),a=r.side,s=0==a?e.undone:e.done;return s=o?cf(s,s.length,n.minDepth,o):ff(s,t.startState.selection),new yf(0==a?r.rest:s,0==a?s:r.rest)}let i=t.annotation(Jh);if("full"!=i&&"before"!=i||(e=e.isolate()),!1===t.annotation(Xo.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let o=lf.fromTransaction(t),a=t.annotation(Xo.time),s=t.annotation(Xo.userEvent);return o?e=e.addChanges(o,a,s,n,t):t.selection&&(e=e.addSelection(t.startState.selection,a,s,n.newGroupDelay)),"full"!=i&&"after"!=i||(e=e.isolate()),e},toJSON:e=>({done:e.done.map((e=>e.toJSON())),undone:e.undone.map((e=>e.toJSON()))}),fromJSON:e=>new yf(e.done.map(lf.fromJSON),e.undone.map(lf.fromJSON))});function rf(e={}){return[nf,tf.of(e),yu.domEventHandlers({beforeinput(e,t){let n="historyUndo"==e.inputType?af:"historyRedo"==e.inputType?sf:null;return!!n&&(e.preventDefault(),n(t))}})]}function of(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let i=n.field(nf,!1);if(!i)return!1;let o=i.pop(e,n,t);return!!o&&(r(o),!0)}}const af=of(0,!1),sf=of(1,!1);class lf{constructor(e,t,n,r,i){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=r,this.selectionsAfter=i}setSelAfter(e){return new lf(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map((e=>e.toJSON()))}}static fromJSON(e){return new lf(e.changes&&lo.fromJSON(e.changes),[],e.mapped&&so.fromJSON(e.mapped),e.startSelection&&vo.fromJSON(e.startSelection),e.selectionsAfter.map(vo.fromJSON))}static fromTransaction(e,t){let n=df;for(let t of e.startState.facet(ef)){let r=t(e);r.length&&(n=n.concat(r))}return!n.length&&e.changes.empty?null:new lf(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,df)}static selection(e){return new lf(void 0,df,void 0,void 0,e)}}function cf(e,t,n,r){let i=t+1>n+20?t-n-1:0,o=e.slice(i,t);return o.push(r),o}function uf(e,t){return e.length?t.length?e.concat(t):e:t}const df=[],hf=200;function ff(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-hf));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),cf(e,e.length-1,1e9,n.setSelAfter(r)))}return[lf.selection([t])]}function pf(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function mf(e,t){if(!e.length)return e;let n=e.length,r=df;for(;n;){let i=gf(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){let t=e.slice(0,n);return t[n-1]=i,t}t=i.mapped,n--,r=i.selectionsAfter}return r.length?[lf.selection(r)]:df}function gf(e,t,n){let r=uf(e.selectionsAfter.length?e.selectionsAfter.map((e=>e.map(t))):df,n);if(!e.changes)return lf.selection(r);let i=e.changes.map(t),o=t.mapDesc(e.changes,!0),a=e.mapped?e.mapped.composeDesc(o):o;return new lf(i,Go.mapEffects(e.effects,t),a,e.startSelection.map(o),r)}const vf=/^(input\.type|delete)($|\.)/;class yf{constructor(e,t,n=0,r=void 0){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new yf(this.done,this.undone):this}addChanges(e,t,n,r,i){let o=this.done,a=o[o.length-1];return o=a&&a.changes&&!a.changes.empty&&e.changes&&(!n||vf.test(n))&&(!a.selectionsAfter.length&&t-this.prevTimen.push(e,t))),t.iterChangedRanges(((e,t,i,o)=>{for(let e=0;e=t&&i<=a&&(r=!0)}})),r}(a.changes,e.changes))||"input.type.compose"==n)?cf(o,o.length-1,r.minDepth,new lf(e.changes.compose(a.changes),uf(e.effects,a.effects),a.mapped,a.startSelection,df)):cf(o,o.length,r.minDepth,e),new yf(o,df,t,n)}addSelection(e,t,n,r){let i=this.done.length?this.done[this.done.length-1].selectionsAfter:df;return i.length>0&&t-this.prevTimee.empty!=t.ranges[n].empty)).length}(i[i.length-1],e)?this:new yf(ff(this.done,e),this.undone,t,n)}addMapping(e){return new yf(mf(this.done,e),mf(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let r=0==e?this.done:this.undone;if(0==r.length)return null;let i=r[r.length-1];if(n&&i.selectionsAfter.length)return t.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:Qh.of({side:e,rest:pf(r)}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0});if(i.changes){let n=1==r.length?df:r.slice(0,r.length-1);return i.mapped&&(n=mf(n,i.mapped)),t.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:Qh.of({side:e,rest:n}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}return null}}yf.empty=new yf(df,df);function bf(e,t){return vo.create(e.ranges.map(t),e.mainIndex)}function wf(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function xf({state:e,dispatch:t},n){let r=bf(e.selection,n);return!r.eq(e.selection)&&(t(wf(e,r)),!0)}function kf(e,t){return vo.cursor(t?e.to:e.from)}function Sf(e,t){return xf(e,(n=>n.empty?e.moveByChar(n,t):kf(n,t)))}function Cf(e){return e.textDirectionAt(e.state.selection.main.head)==kl.LTR}const jf=e=>Sf(e,!Cf(e)),Of=e=>Sf(e,Cf(e));function Mf(e,t){return xf(e,(n=>n.empty?e.moveByGroup(n,t):kf(n,t)))}function Ef(e,t){return xf(e,(n=>{if(!n.empty)return kf(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)}))}const Pf=e=>Ef(e,!1),Af=e=>Ef(e,!0);function Tf(e){let t,n=e.scrollDOM.clientHeightn.empty?e.moveVertically(n,t,r.height):kf(n,t)));if(o.eq(i.selection))return!1;if(r.selfScroll){let t=e.coordsAtPos(i.selection.main.head),a=e.scrollDOM.getBoundingClientRect(),s=a.top+r.marginTop,l=a.bottom-r.marginBottom;t&&t.top>s&&t.bottom_f(e,!1),Rf=e=>_f(e,!0);function zf(e,t,n){let r=e.lineBlockAt(t.head),i=e.moveToLineBoundary(t,n);if(i.head==t.head&&i.head!=(n?r.to:r.from)&&(i=e.moveToLineBoundary(t,n,!1)),!n&&i.head==r.from&&r.length){let n=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;n&&t.head!=r.from+n&&(i=vo.cursor(r.from+n))}return i}function If(e,t){let n=bf(e.state.selection,(e=>{let n=t(e);return vo.range(e.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)}));return!n.eq(e.state.selection)&&(e.dispatch(wf(e.state,n)),!0)}function Lf(e,t){return If(e,(n=>e.moveByChar(n,t)))}const $f=e=>Lf(e,!Cf(e)),Nf=e=>Lf(e,Cf(e));function Zf(e,t){return If(e,(n=>e.moveByGroup(n,t)))}function Hf(e,t){return If(e,(n=>e.moveVertically(n,t)))}const Vf=e=>Hf(e,!1),Ff=e=>Hf(e,!0);function Bf(e,t){return If(e,(n=>e.moveVertically(n,t,Tf(e).height)))}const Wf=e=>Bf(e,!1),Uf=e=>Bf(e,!0),Yf=({state:e,dispatch:t})=>(t(wf(e,{anchor:0})),!0),Kf=({state:e,dispatch:t})=>(t(wf(e,{anchor:e.doc.length})),!0),qf=({state:e,dispatch:t})=>(t(wf(e,{anchor:e.selection.main.anchor,head:0})),!0),Gf=({state:e,dispatch:t})=>(t(wf(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0);function Xf(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:r}=e,i=r.changeByRange((r=>{let{from:i,to:o}=r;if(i==o){let r=t(i);ri&&(n="delete.forward",r=Qf(e,r,!0)),i=Math.min(i,r),o=Math.max(o,r)}else i=Qf(e,i,!1),o=Qf(e,o,!0);return i==o?{range:r}:{changes:{from:i,to:o},range:vo.cursor(i)}}));return!i.changes.empty&&(e.dispatch(r.update(i,{scrollIntoView:!0,userEvent:n,effects:"delete.selection"==n?yu.announce.of(r.phrase("Selection deleted")):void 0})),!0)}function Qf(e,t,n){if(e instanceof yu)for(let r of e.state.facet(yu.atomicRanges).map((t=>t(e))))r.between(t,t,((e,r)=>{et&&(t=n?r:e)}));return t}const Jf=(e,t)=>Xf(e,(n=>{let r,i,{state:o}=e,a=o.doc.lineAt(n);if(!t&&n>a.from&&nJf(e,!1),tp=e=>Jf(e,!0),np=(e,t)=>Xf(e,(n=>{let r=n,{state:i}=e,o=i.doc.lineAt(r),a=i.charCategorizer(r);for(let e=null;;){if(r==(t?o.to:o.from)){r==n&&o.number!=(t?i.doc.lines:1)&&(r+=t?1:-1);break}let s=Qi(o.text,r-o.from,t)+o.from,l=o.text.slice(Math.min(r,s)-o.from,Math.max(r,s)-o.from),c=a(l);if(null!=e&&c!=e)break;" "==l&&r==n||(e=c),r=s}return r})),rp=e=>np(e,!1),ip=e=>Xf(e,(t=>{let n=e.lineBlockAt(t).to;return t{if(t.readOnly)return!1;let r=t.changeByRange((n=>{let{from:r,to:i}=n,o=t.doc.lineAt(r),a=!e&&r==i&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n,r=ih(e).resolveInner(t),i=r.childBefore(t),o=r.childAfter(t);return i&&o&&i.to<=t&&o.from>=t&&(n=i.type.prop(ed.closedBy))&&n.indexOf(o.name)>-1&&e.doc.lineAt(i.to).from==e.doc.lineAt(o.from).from?{from:i.to,to:o.from}:null}(t,r);e&&(r=i=(i<=o.to?o:t.doc.lineAt(i)).to);let s=new bh(t,{simulateBreak:r,simulateDoubleBreak:!!a}),l=yh(s,r);for(null==l&&(l=/^\s*/.exec(t.doc.lineAt(r).text)[0].length);io.from&&rxf(e,(t=>vo.cursor(e.lineBlockAt(t.head).from,1))),shift:e=>If(e,(t=>vo.cursor(e.lineBlockAt(t.head).from)))},{key:"Ctrl-e",run:e=>xf(e,(t=>vo.cursor(e.lineBlockAt(t.head).to,-1))),shift:e=>If(e,(t=>vo.cursor(e.lineBlockAt(t.head).to)))},{key:"Ctrl-d",run:tp},{key:"Ctrl-h",run:ep},{key:"Ctrl-k",run:ip},{key:"Ctrl-Alt-h",run:rp},{key:"Ctrl-o",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange((e=>({changes:{from:e.from,to:e.to,insert:Ni.of(["",""])},range:vo.cursor(e.from)})));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange((t=>{if(!t.empty||0==t.from||t.from==e.doc.length)return{range:t};let n=t.from,r=e.doc.lineAt(n),i=n==r.from?n-1:Qi(r.text,n-r.from,!1)+r.from,o=n==r.to?n+1:Qi(r.text,n-r.from,!0)+r.from;return{changes:{from:i,to:o,insert:e.doc.slice(n,o).append(e.doc.slice(i,n))},range:vo.cursor(o)}}));return!n.changes.empty&&(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:Rf}],sp=[{key:"ArrowLeft",run:jf,shift:$f,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:e=>Mf(e,!Cf(e)),shift:e=>Zf(e,!Cf(e)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:e=>xf(e,(t=>zf(e,t,!Cf(e)))),shift:e=>If(e,(t=>zf(e,t,!Cf(e)))),preventDefault:!0},{key:"ArrowRight",run:Of,shift:Nf,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:e=>Mf(e,Cf(e)),shift:e=>Zf(e,Cf(e)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:e=>xf(e,(t=>zf(e,t,Cf(e)))),shift:e=>If(e,(t=>zf(e,t,Cf(e)))),preventDefault:!0},{key:"ArrowUp",run:Pf,shift:Vf,preventDefault:!0},{mac:"Cmd-ArrowUp",run:Yf,shift:qf},{mac:"Ctrl-ArrowUp",run:Df,shift:Wf},{key:"ArrowDown",run:Af,shift:Ff,preventDefault:!0},{mac:"Cmd-ArrowDown",run:Kf,shift:Gf},{mac:"Ctrl-ArrowDown",run:Rf,shift:Uf},{key:"PageUp",run:Df,shift:Wf},{key:"PageDown",run:Rf,shift:Uf},{key:"Home",run:e=>xf(e,(t=>zf(e,t,!1))),shift:e=>If(e,(t=>zf(e,t,!1))),preventDefault:!0},{key:"Mod-Home",run:Yf,shift:qf},{key:"End",run:e=>xf(e,(t=>zf(e,t,!0))),shift:e=>If(e,(t=>zf(e,t,!0))),preventDefault:!0},{key:"Mod-End",run:Kf,shift:Gf},{key:"Enter",run:op(!1)},{key:"Mod-a",run:({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:ep,shift:ep},{key:"Delete",run:tp},{key:"Mod-Backspace",mac:"Alt-Backspace",run:rp},{key:"Mod-Delete",mac:"Alt-Delete",run:e=>np(e,!0)},{mac:"Mod-Backspace",run:e=>Xf(e,(t=>{let n=e.lineBlockAt(t).from;return t>n?n:Math.max(0,t-1)}))},{mac:"Mod-Delete",run:ip}].concat(ap.map((e=>({mac:e.key,run:e.run,shift:e.shift})))),lp=e=>{const t=(...t)=>e.color(...t)({theme:e});return[yu.theme({"&":{height:"100%",color:t("dark0"),backgroundColor:t("dark90")},".cm-content":{caretColor:"#a0a4ae",fontFamily:e.fonts.code,lineHeight:e.lineHeights.$140,fontSize:e.fontSizes.$14,padding:e.space.$8},".cm-cursor, .cm-dropCursor":{borderLeftColor:t("yellow50","light0"),borderLeftWidth:"2px",transform:"translateX(1px)"},"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:t("dark60")},".cm-activeLine":{backgroundColor:t("dark80")},".cm-gutters":{backgroundColor:t("dark90"),borderRight:`1px solid ${t("dark80")}`,paddingRight:"4px",color:t("dark50")},".cm-activeLineGutter":{backgroundColor:t("dark90"),color:t("dark20")},".cm-indent span":{color:t("dark90"),"user-select":"text"},".cm-indent span::selection":{color:t("dark40"),backgroundColor:t("dark60")}},{dark:"dark"===e.name}),Th(Mh.define([{tag:[Xd.comment],color:t("dark30"),fontStyle:"italic"},{tag:[Xd.variableName],color:t("dark10")},{tag:[Xd.typeName,Xd.className],color:t("yellow70","yellow30")},{tag:[Xd.propertyName],color:t("yellow40","yellow30")},{tag:[Xd.attributeName],color:t("magenta70","magenta50")},{tag:[Xd.tagName],color:t("yellow70","yellow30")},{tag:[Xd.squareBracket],color:t("dark30")},{tag:[Xd.string],color:t("green70","green30")},{tag:[Xd.number,Xd.changed,Xd.annotation,Xd.modifier,Xd.self,Xd.namespace],color:t("dark10")},{tag:Xd.heading,color:t("dark30")},{tag:[Xd.special(Xd.variableName),Xd.variableName],color:t("purple70","purple30")},{tag:[Xd.atom,Xd.heading2,Xd.angleBracket,Xd.keyword],color:t("blue60","blue30")},{tag:[Xd.meta],color:t("teal50","teal30")},{tag:[Xd.operator,Xd.operatorKeyword],color:t("dark10")}]))]},cp=(e,t)=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`Undefined state ${t} in simple mode`)};class up{constructor(e,t){(e.next||e.push)&&cp(t,e.next||e.push),this.data=e,this.regex=((e,t)=>{if(!e)return/(?:)/;let n,r="";return e instanceof RegExp?(e.ignoreCase&&(r="i"),n=e.source):n=String(e),new RegExp(`${!1===t?"":"^"}(?:${n})`,r)})(e.regex),this.token=(e=>{if(!e)return null;if(e.apply)return e;if("string"==typeof e)return e.replace(/\./g," ");const t=[];for(let n=0;n(t,n)=>{if(n.pending){const e=n.pending.shift();return 0===n.pending.length&&(n.pending=null),t.pos+=e.text.length,e.token}const r=e[n.state];for(let e=0;e2&&i.token&&"string"!=typeof i.token){n.pending=[];for(let e=2;e(n,r)=>{if(null==n.indent||t.dontIndentStates&&t.doneIndentState.indexOf(n.state)>-1)return null;let i=n.indent.length-1;const o=t=>{for(let n=0;n{cp(e,"start");const t={},n=e.languageData||{};let r=!1;return Object.keys(e).forEach((n=>{if("meta"!==n){t[n]=[];const i=e[n];for(let o=0;o({state:"start",pending:null,indent:r?[]:null}),copyState:e=>{const t={state:e.state,pending:e.pending,indent:e.indent&&e.indent.slice(0),stack:void 0};return e.stack&&(t.stack=e.stack.slice(0)),t},token:dp(t),indent:hp(t,n),languageData:n}};var pp;function mp(e,t,n){return Object.assign({regex:e,token:t},n)}!function(e){e.AM="atom",e.AT="attribute",e.BE="builtin.em",e.BI="builtin",e.BK="bracket",e.CM="comment",e.DF="keyword",e.HL="header",e.KW="property",e.MT="meta",e.NB="number",e.OP="operator",e.PC="punctuation",e.PR="property",e.SE="string.em",e.SH="heading2",e.SS="string.strong",e.SSE="string.strong.em",e.S2="string-2",e.ST="text",e.TG="tag",e.V2="variable-2"}(pp||(pp={}));const gp={keywords:/(\|\s)?(\*+ *)(user keywords?|keywords?)( *\**)/i,settings:/(\|\s)?(\*+ *)(settings?)( *\**)/i,test_cases:/(\|\s)?(\*+ *)(tasks?|test cases?)( *\**)/i,variables:/(\|\s)?(\*+ *)(variables?)( *\**)/i},vp=Object.keys(gp).map((e=>mp(gp[e],[pp.BK,pp.HL,pp.HL,pp.HL],{next:e,sol:!0}))),yp=mp(/#.*$/,pp.CM,{pop:!0}),bp=/[*\-+\\%&|=>+-*\/%)*==?/,pp.OP),mp(/_\*.*?\*_/,pp.SSE),mp(/\*.*?\*/,pp.SS),mp(/_.*?_/,pp.SE),mp(/[^\s$@%&]+/,pp.ST),mp(/[$@%&](?!\{)/,pp.ST)];Lp.start=[mp(/(%%python)( module )?(.*)?/,[pp.MT,pp.KW,pp.V2],{mode:{spec:"ipython"},sol:!0}),mp(/(%%[^\s]*).*$/,pp.MT,{sol:!0}),...$p],Lp.settings=[Mp,Op,Ap,Pp,Tp,_p,mp(/(\|*\s*)(resource|variables|documentation|metadata|test timeout|task timeout)(\s*)/i,[pp.BK,pp.MT,null],{sol:!0}),...$p],Lp.library=[zp,Rp,Dp,mp(/(WITH NAME)(\t+| +| +\| +)([^|\s]*)(\s*)(\|?)(\s*)(?=$)/,[pp.AM,pp.BK,pp.DF,null,pp.BK,null],{pop:!0}),...$p];const Np=mp(/(\|\s*\|\s*|\s\s+)?(given|when|then|and|but)/i,[pp.BK,pp.BE],{push:"keyword_invocation",sol:!0}),Zp=mp(/(\t+| +)(?!\.\.\.)/,null,{push:"keyword_invocation",sol:!0}),Hp=mp(/(\| )(\s*)(|[^|\s][^|]*)(\s*)( \|)(\s+)/,[pp.BK,null,pp.SH,null,pp.BK,null],{push:"keyword_invocation",sol:!0}),Vp=mp(/(\s\|*\s*)(:FOR)(\s\|*\s*)/,[null,pp.AM,null],{push:"loop_start_old",sol:!0}),Fp=mp(/(\s\|*\s*)(FOR)(\s\|*\s*)/,[null,pp.AM,null],{push:"loop_start_new",sol:!0}),Bp=mp(/(\s*)(IF)(\s\|*\s*)(?=[^\s].*\s{2,})/,[null,pp.AM,null],{push:"inline_if_start",sol:!0}),Wp=mp(/(\s+)(.*?)(\s+)(=)(\s+)(IF)(\s\|*\s*)(?=[^\s].*\s{2,})/,[null,pp.V2,null,pp.OP,null,pp.AM,null],{push:"inline_if_start",sol:!0}),Up=mp(/(\s\|*\s*)(IF)(\s\|*\s*)(?![^\s].*\s{2,})/,[null,pp.AM,null],{push:"if_start",sol:!0}),Yp=mp(/(\s\|*\s*)(ELSE IF)(\s\|*\s*)/,[null,pp.AM,null],{next:"if_else_if_start",sol:!0}),Kp=mp(/(\s\|*\s*)(ELSE)(?=$)/,[null,pp.AM],{next:"if_else_start",sol:!0}),qp=mp(/(\s\|*\s*)(TRY)(?=$)/,[null,pp.AM],{push:"try_start",sol:!0}),Gp=mp(/(\s\|*\s*)(EXCEPT)/,[null,pp.AM],{next:"try_except_start",sol:!0}),Xp=mp(/(\s\|*\s*)(ELSE)(?=$)/,[null,pp.AM],{next:"try_else_start",sol:!0}),Qp=mp(/(\s\|*\s*)(FINALLY)/,[null,pp.AM],{next:"try_finally_start",sol:!0}),Jp=mp(/(\s\|*\s*)(WHILE)/,[null,pp.AM],{push:"while_start",sol:!0}),em=mp(/([|\s]*\s*)(END)(?=$)/,[null,pp.AM],{sol:!0,pop:!0}),tm=[mp(/\s\|\s*/,pp.BK),yp,Rp,zp,wp,Dp,xp,mp(/ +/,null)];Lp.tags=[...tm,mp(/[^$&%@]*?(?=( +| \|))/,pp.TG),mp(/[^$&%@|]/,pp.TG)],Lp.tags_comma=[...tm,mp(/(,)(\s*)/,[pp.PC,null]),mp(/[^$&%@,]+(?=,$)/,pp.TG),mp(/[^$&%@|,]/,pp.TG)];const nm=mp(/\s*(?=$)/,null,{sol:!0}),rm=[Np,Hp,Zp,mp(/\|\s(?=[^\s*]*\|)/,null,{sol:!0,push:"keyword_invocation"}),mp(/(?=[^\s*])/,null,{sol:!0,push:"keyword_invocation"})],im=mp(/(\t+| +)(\[\s*)(arguments|documentation|return|timeout)(\s*\])(\s*)/i,[null,pp.MT,pp.MT,pp.MT,null],{sol:!0}),om=mp(/(\|)(\s+)([^|*]*)(\s+)(\|)(\s+)(\[\s*)(arguments|documentation|return|timeout)(\s*\])(\s*)(\|?)/i,[pp.BK,null,pp.SH,null,pp.BK,null,pp.MT,pp.MT,pp.MT,null,pp.BK],{sol:!0}),am=mp(/(\s*)(BREAK|CONTINUE|RETURN)([\s|]{2,}|$)/,[null,pp.AM,null]),sm=[am,Vp,Fp,Jp,Wp,Bp,Up,qp];Lp.keywords=[Rp,jp,Ep,im,om,mp(/(?=[^\s$&%@*|]+)/,null,{sol:!0,push:"keyword_def"}),...sm,nm,...rm,...$p];const lm=/([^\s]*?(?=[$&%@]\{))/i,cm=/(?:[^\t\n\r|])+?(?=$|\t|\n|\r| +)/,um=/[^\s|]+(?=$|[|]|\t| +)/,dm=/([^\n$\s*=|]+?(?= ))/i;Lp.keyword_def=[wp,Dp,xp,mp(/ /,null),mp(lm,pp.DF),mp(um,pp.DF,{pop:!0}),mp(dm,pp.DF),mp(/(?=$)/,null,{sol:!0,pop:!0})];const hm=mp(/([|\s]*\s*)(IN)( RANGE| ENUMERATE| ZIP)?/,[null,pp.AM,pp.AM]);Lp.loop_start_new=[hm,mp(/[.]{3}/,pp.BK),wp,mp(/\}(?=$)/,pp.V2),xp,...sm,em,nm,...rm,...$p],Lp.inline_if_start=[Rp,mp(/[\s|]{2,}/,null,{next:"inline_if_start_keyword"}),zp,wp,mp(/\}(?=$)/,pp.V2),xp,...$p],Lp.inline_if_start_keyword=[Rp,am,zp,mp(lm,pp.KW,{next:"inline_if_keyword_invoking"}),mp(cm,pp.KW,{next:"inline_if_keyword_invoking"}),mp(um,pp.KW,{next:"inline_if_keyword_invoking"}),mp(dm,pp.KW,{next:"inline_if_keyword_invoking"})],Lp.inline_if_keyword_invoking=[Rp,zp,mp(/(\s\|*\s*)(ELSE IF)(\s\|*\s*)/,[null,pp.AM,null],{next:"inline_if_start"}),mp(/(\s\|*\s*)(ELSE)(\s\|*\s*)/,[null,pp.AM,null],{next:"inline_if_start_else"}),wp,mp(/\}(?=$)/,pp.V2),xp,...$p],Lp.inline_if_start_else=[Rp,mp(lm,pp.KW,{next:"inline_if_else_keyword_invoking"}),mp(cm,pp.KW,{next:"inline_if_else_keyword_invoking"}),mp(um,pp.KW,{next:"inline_if_else_keyword_invoking"}),mp(dm,pp.KW,{next:"inline_if_else_keyword_invoking"}),...$p],Lp.inline_if_else_keyword_invoking=[Rp,zp,wp,mp(/\}(?=$)/,pp.V2),xp,...$p],Lp.if_start=[mp(/[.]{3}/,pp.BK),wp,mp(/\}(?=$)/,pp.V2),xp,...sm,Yp,Kp,em,nm,...rm,...$p],Lp.if_else_if_start=[mp(/[.]{3}/,pp.BK),wp,mp(/\}(?=$)/,pp.V2),xp,...sm,Yp,Kp,em,nm,...rm,...$p],Lp.if_else_start=[...sm,em,nm,...rm,...$p],Lp.try_start=[...sm,Gp,Xp,Qp,em,nm,...rm,...$p],Lp.try_except_start=[mp(/[.]{3}/,pp.BK),mp(/AS/,pp.AM),mp(/(glob|regexp):/i,pp.BI),wp,mp(/\}(?=$)/,pp.V2),xp,...sm,Gp,Xp,Qp,em,nm,...rm,...$p],Lp.try_else_start=[...sm,Qp,em,nm,...rm,...$p],Lp.try_finally_start=[...sm,em,nm,...rm,...$p],Lp.while_start=[mp(/[.]{3}/,pp.BK),mp(/AS/,pp.AM),mp(/(glob|regexp):/i,pp.BI),wp,mp(/\}(?=$)/,pp.V2),xp,...sm,em,nm,...rm,...$p],Lp.loop_start_old=[mp(/(?=.*)/,null,{sol:!0,next:"loop_body_old"}),hm,wp,mp(/\}(?=$)/,pp.V2),xp,...$p],Lp.loop_body_old=[...rm.map((e=>Object.assign(Object.assign({},e),{regex:new RegExp(/([|\s]*\s*)(\\)/.source+(e.regex instanceof RegExp?e.regex.source:e.regex)),token:e.token instanceof Array?[null,pp.BK,...e.token]:[null,pp.BK,null]}))),mp(/(?=\s+[^\\])/,null,{pop:!0,sol:!0}),...$p];const fm=mp(/(\t+| +)(\[\s*)(documentation|timeout)(\s*\])(\s*)/i,[null,pp.MT,pp.MT,pp.MT,null],{sol:!0}),pm=mp(/(\|)(\s+)([^|*]*)(\s+)(\|)(\s+)(\[\s*)(documentation|timeout)(\s*\])(\s*)(\|?)/i,[pp.BK,null,pp.SH,null,pp.BK,null,pp.MT,pp.MT,pp.MT,null,pp.BK],{sol:!0});Lp.test_cases=[...vp,nm,Rp,jp,Ep,fm,pm,...sm,mp(/([^|\s*].+?)(?=(\t| +|$))/,pp.SH,{sol:!0}),...rm,mp(/(\|\s+)([^\s*|.][^|]*?)(\s*)(\|?$)/,[pp.BK,pp.SH,pp.BK],{sol:!0}),mp(/(\| +)([^|\s].+?)(\s*)( \| )/,[pp.BK,pp.SH,null,pp.BK],{sol:!0}),...$p],Lp.keyword_invocation=[mp(/( ?)(=)(\t+| +|\s+\|)/,[null,pp.OP,null]),mp(/(?=\s*$)/,null,{pop:!0}),mp(/(\\|\.\.\.) +/,pp.BK),wp,Dp,xp,yp,mp(/( \| | +|\t+)(?=[$@&])/,pp.BK),mp(/( \| | +|\t+)/,pp.BK,{pop:!0}),mp(/ /,null),mp(lm,pp.KW,{pop:!0}),mp(cm,pp.KW,{pop:!0}),mp(um,pp.KW,{pop:!0}),mp(dm,pp.KW),...$p],Lp.keyword_invocation_no_continue=[zp,...Lp.keyword_invocation],Lp.variables=[...$p],Lp.variable=[wp,mp(/(none|(cur|temp|exec)dir|\/|:|\\n|true|empty|false|null|space|test (name|documentation|status|message|tags)|prev test (name|status|message)|suite (name|source|documentation|status|message|metadata)|keyword (status|message)|(report|debug) file|log (file|level)|output (dir|file))(?=[.}]|\s+[*\-+\\%&|=>[$h.define(fp(Lp))];var gm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i div { height: 100%; } -`,Yp=(0,m.w)(((e,t)=>{var{codemirrorRef:n,extensions:r,value:i,lineNumbers:o,onChange:l,readOnly:c}=e,u=Wp(e,["codemirrorRef","extensions","value","lineNumbers","onChange","readOnly"]);const d=(0,s.useRef)(null),h=(0,s.useRef)(),f=k();return(0,s.useEffect)((()=>{const e=Gc.updateListener.of((e=>{if(e.docChanged&&"function"==typeof l){const t=e.state.doc.toString();l(t,e)}})),t=[ru.of(If),Dh(),Lf(f),e,...r||[]];o&&t.push(function(e={}){return[ku.of(e),pu(),ju]}()),c&&t.push(Gc.editable.of(!1));const a=Wo.create({doc:i,extensions:t});return d.current&&(h.current=new Gc({state:a,parent:d.current}),n&&(n.current=h.current)),()=>{var e;null===(e=h.current)||void 0===e||e.destroy()}}),[r,o,l,f.name]),(0,s.useEffect)((()=>{if(!h.current)return;const e=h.current.state.doc.toString();h.current&&i!==e&&h.current.dispatch({changes:{from:0,to:e.length,insert:i||""}})}),[i]),(0,a.jsx)(Up,Object.assign({ref:t},u,{children:(0,a.jsx)("div",{ref:d})}))}));Yp.defaultProps={lineNumbers:!0};var qp=n(5813),Gp=n.n(qp),Kp=n(1192),Xp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{codemirrorRef:n,extensions:r,value:i,lineNumbers:o,onChange:l,readOnly:c}=e,u=gm(e,["codemirrorRef","extensions","value","lineNumbers","onChange","readOnly"]);const d=(0,s.useRef)(null),h=(0,s.useRef)(),f=k();return(0,s.useEffect)((()=>{const e=yu.updateListener.of((e=>{if(e.docChanged&&"function"==typeof l){const t=e.state.doc.toString();l(t,e)}})),t=[Ou.of(sp),rf(),lp(f),e,...r||[]];o&&t.push(function(e={}){return[Uu.of(e),$u(),qu]}()),c&&t.push(yu.editable.of(!1));const a=la.create({doc:i,extensions:t});return d.current&&(h.current=new yu({state:a,parent:d.current}),n&&(n.current=h.current)),()=>{var e;null===(e=h.current)||void 0===e||e.destroy()}}),[r,o,l,f.name]),(0,s.useEffect)((()=>{if(!h.current)return;const e=h.current.state.doc.toString();h.current&&i!==e&&h.current.dispatch({changes:{from:0,to:e.length,insert:i||""}})}),[i]),(0,a.jsx)(vm,Object.assign({ref:t},u,{children:(0,a.jsx)("div",{ref:d})}))}));ym.defaultProps={lineNumbers:!0};var bm=n(5813),wm=n.n(bm),xm=n(1192),km=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie.color("dark90")}; padding: 4px; @@ -1099,20 +1099,20 @@ .react-datepicker__day--selected { background: ${({theme:e})=>e.color("purple50")}; } -`,Jp=(0,r.zo)(F)` +`,Cm=(0,r.zo)(F)` border-radius: 0 3px 3px 0; -`,em=(0,r.zo)(un)` +`,jm=(0,r.zo)(yn)` border-radius: 3px 0 0 3px; border-right: none; -`,tm=({innerRef:e,onClick:t})=>(0,a.jsx)(F,{onClick:t,ref:e,icon:Kp.Z}),nm=e=>{var{innerRef:t,onClick:n,value:r}=e,i=Xp(e,["innerRef","onClick","value"]);return(0,a.jsxs)(v,Object.assign({display:"flex",alignItems:"flex-end"},{children:[(0,a.jsx)(em,Object.assign({onClick:n,value:r},i)),(0,a.jsx)(Jp,{onClick:n,ref:t,icon:Kp.Z})]}))},rm=e=>{var{onChange:t,date:n,dateFormat:r,toggleComponent:i,showInput:o}=e,l=Xp(e,["onChange","date","dateFormat","toggleComponent","showInput"]);const c=(0,s.useMemo)((()=>{const e="function"==typeof i?i:o?nm:tm;return(0,s.forwardRef)((({value:t,onClick:n},r)=>(0,a.jsx)(e,Object.assign({onClick:n,value:t,innerRef:r},l))))}),[l]);return(0,a.jsx)(Qp,{children:(0,a.jsx)(Gp(),{selected:n,onChange:e=>t(Array.isArray(e)?e[0]:e),customInput:(0,a.jsx)(c,{}),dateFormat:r})})};rm.defaultProps={showInput:!0,dateFormat:"dd/MM/yyyy"};const im=rm;var om=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i(0,a.jsx)(F,{onClick:t,ref:e,icon:xm.Z}),Mm=e=>{var{innerRef:t,onClick:n,value:r}=e,i=km(e,["innerRef","onClick","value"]);return(0,a.jsxs)(v,Object.assign({display:"flex",alignItems:"flex-end"},{children:[(0,a.jsx)(jm,Object.assign({onClick:n,value:r},i)),(0,a.jsx)(Cm,{onClick:n,ref:t,icon:xm.Z})]}))},Em=e=>{var{onChange:t,date:n,dateFormat:r,toggleComponent:i,showInput:o}=e,l=km(e,["onChange","date","dateFormat","toggleComponent","showInput"]);const c=(0,s.useMemo)((()=>{const e="function"==typeof i?i:o?Mm:Om;return(0,s.forwardRef)((({value:t,onClick:n},r)=>(0,a.jsx)(e,Object.assign({onClick:n,value:t,innerRef:r},l))))}),[l]);return(0,a.jsx)(Sm,{children:(0,a.jsx)(wm(),{selected:n,onChange:e=>t(Array.isArray(e)?e[0]:e),customInput:(0,a.jsx)(c,{}),dateFormat:r})})};Em.defaultProps={showInput:!0,dateFormat:"dd/MM/yyyy"};const Pm=Em;var Am=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);is.Children.toArray(e).map(((e,t)=>{const n=`item-${t}`;return(0,a.jsxs)(am,{children:[e,(0,a.jsx)(sm,{children:(0,a.jsx)(_r.Z,{size:12,color:"dark30"})})]},n)})),cm=e=>{var{children:t}=e,n=om(e,["children"]);return(0,a.jsx)("nav",Object.assign({},n,{children:(0,a.jsx)("ol",{children:lm(t)})}))};cm.defaultProps={};const um=cm,dm=r.zo.circle` +`,Dm=e=>s.Children.toArray(e).map(((e,t)=>{const n=`item-${t}`;return(0,a.jsxs)(Tm,{children:[e,(0,a.jsx)(_m,{children:(0,a.jsx)(Kr.Z,{size:12,color:"dark30"})})]},n)})),Rm=e=>{var{children:t}=e,n=Am(e,["children"]);return(0,a.jsx)("nav",Object.assign({},n,{children:(0,a.jsx)("ol",{children:Dm(t)})}))};Rm.defaultProps={};const zm=Rm,Im=r.zo.circle` stroke: ${({strokeColor:e,theme:t})=>"string"==typeof e?e:t.color(...e)}; stroke-width: 8px; stroke-linecap: round; @@ -1123,7 +1123,7 @@ transform: rotate(-90deg); transform-origin: 50% 50%; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1) stroke-dashoffset; -`,hm=r.zo.p` +`,Lm=r.zo.p` font-family: ${({theme:e})=>e.fonts.title}; font-size: ${({theme:e})=>e.fontSizes.$24}; font-weight: ${({theme:e})=>e.fontWeights.bold}; @@ -1133,16 +1133,16 @@ margin-top: -4px; width: 100%; text-align: center; -`,fm=({data:e,colors:t,features:n,labels:r})=>{const i=92*Math.PI,o=(0,s.useMemo)((()=>e.length?Object.entries(e[0]).filter((([e])=>"date"!==e))[0][1]:0),[e]),l=Math.ceil(i-o/100*i);return(0,a.jsxs)(a.Fragment,{children:[r&&(0,a.jsxs)(hm,{children:[o,"%"]}),(0,a.jsxs)("svg",Object.assign({width:"100%",height:"100%",viewBox:"0 0 100 100"},{children:[(null==n?void 0:n.emptyFill)&&(0,a.jsx)(dm,{strokeColor:null==n?void 0:n.emptyFill}),(0,a.jsx)(dm,{strokeDasharray:`${i} ${i}`,strokeDashoffset:l,strokeColor:t[0]})]}))]})},pm=r.zo.svg` +`,$m=({data:e,colors:t,features:n,labels:r})=>{const i=92*Math.PI,o=(0,s.useMemo)((()=>e.length?Object.entries(e[0]).filter((([e])=>"date"!==e))[0][1]:0),[e]),l=Math.ceil(i-o/100*i);return(0,a.jsxs)(a.Fragment,{children:[r&&(0,a.jsxs)(Lm,{children:[o,"%"]}),(0,a.jsxs)("svg",Object.assign({width:"100%",height:"100%",viewBox:"0 0 100 100"},{children:[(null==n?void 0:n.emptyFill)&&(0,a.jsx)(Im,{strokeColor:null==n?void 0:n.emptyFill}),(0,a.jsx)(Im,{strokeDasharray:`${i} ${i}`,strokeDashoffset:l,strokeColor:t[0]})]}))]})},Nm=r.zo.svg` width: 100%; height: 100%; border-radius: 2px; background: ${({theme:e})=>e.color("dark90","light50")}; -`,mm=r.zo.rect` +`,Zm=r.zo.rect` height: 50px; y: 0px; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1) width, 0.4s cubic-bezier(0.4, 0, 0.2, 1) x; -`,gm=({colors:e,data:t,features:n})=>{const{values:r,total:i}=(0,s.useMemo)((()=>{const e=t.length?Object.values(t[0]).filter((e=>"number"==typeof e)):[],n=e.reduce(((e,t)=>e+t),0);return{values:e,total:n}}),[t]),o=n&&"number"==typeof n.gap?n.gap:2;return(0,a.jsx)(pm,{children:r.map(((t,n)=>i?(0,a.jsx)(mm,{width:`calc(${Math.round(t/i*1e4)/100}% - ${o}px)`,x:`calc(${Math.round(r.reduce(((e,t,r)=>rkm)if(Math.abs(u*s-l*c)>km&&i){var h=n-o,f=r-a,p=s*s+l*l,m=h*h+f*f,g=Math.sqrt(p),v=Math.sqrt(d),y=i*Math.tan((wm-Math.acos((p+d-m)/(2*g*v)))/2),b=y/v,w=y/g;Math.abs(b-1)>km&&(this._+="L"+(e+b*c)+","+(t+b*u)),this._+="A"+i+","+i+",0,0,"+ +(u*h>c*f)+","+(this._x1=e+w*s)+","+(this._y1=t+w*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,r,i,o){e=+e,t=+t,o=!!o;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),l=e+a,c=t+s,u=1^o,d=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>km||Math.abs(this._y1-c)>km)&&(this._+="L"+l+","+c),n&&(d<0&&(d=d%xm+xm),d>Sm?this._+="A"+n+","+n+",0,1,"+u+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):d>km&&(this._+="A"+n+","+n+",0,"+ +(d>=wm)+","+u+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};const Om=jm;function Mm(e){return function(){return e}}function Pm(e){this._context=e}function Em(e){return new Pm(e)}function Am(e){return e[0]}function Tm(e){return e[1]}function _m(){var e=Am,t=Tm,n=Mm(!0),r=null,i=Em,o=null;function a(a){var s,l,c,u=a.length,d=!1;for(null==r&&(o=i(c=Om())),s=0;s<=u;++s)!(s=u;--d)s.point(g[d],v[d]);s.lineEnd(),s.areaEnd()}m&&(g[c]=+e(h,c,l),v[c]=+n(h,c,l),s.point(t?+t(h,c,l):g[c],r?+r(h,c,l):v[c]))}if(f)return s=null,f+""||null}function c(){return _m().defined(i).curve(a).context(o)}return l.x=function(n){return arguments.length?(e="function"==typeof n?n:Mm(+n),t=null,l):e},l.x0=function(t){return arguments.length?(e="function"==typeof t?t:Mm(+t),l):e},l.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:Mm(+e),l):t},l.y=function(e){return arguments.length?(n="function"==typeof e?e:Mm(+e),r=null,l):n},l.y0=function(e){return arguments.length?(n="function"==typeof e?e:Mm(+e),l):n},l.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Mm(+e),l):r},l.lineX0=l.lineY0=function(){return c().x(e).y(n)},l.lineY1=function(){return c().x(e).y(r)},l.lineX1=function(){return c().x(t).y(n)},l.defined=function(e){return arguments.length?(i="function"==typeof e?e:Mm(!!e),l):i},l.curve=function(e){return arguments.length?(a=e,null!=o&&(s=a(o)),l):a},l.context=function(e){return arguments.length?(null==e?o=s=null:s=a(o=e),l):o},l}();return n&&bm(u.x,n),r&&bm(u.x0,r),i&&bm(u.x1,i),o&&bm(u.y,o),a&&bm(u.y0,a),s&&bm(u.y1,s),l&&u.defined(l),c&&u.curve(c),u}Pm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var Rm=["x","x0","x1","y","y1","y0","yScale","data","defined","className","curve","innerRef","children"];function zm(){return zm=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,Rm),y=Dm({x:t,x0:n,x1:r,defined:h,curve:p});return null==a?y.y0(l.range()[0]):bm(y.y0,a),i&&!o&&bm(y.y1,i),o&&!i&&bm(y.y1,o),g?s.createElement(s.Fragment,null,g({path:y})):s.createElement("path",zm({ref:m,className:ym()("visx-area-closed",f),d:y(u)||""},v))}var Lm=["children","data","x","y","fill","className","curve","innerRef","defined"];function $m(){return $m=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,Lm),m=function(e){var t=void 0===e?{}:e,n=t.x,r=t.y,i=t.defined,o=t.curve,a=_m();return n&&bm(a.x,n),r&&bm(a.y,r),i&&a.defined(i),o&&a.curve(o),a}({x:i,y:o,defined:f,curve:u});return t?s.createElement(s.Fragment,null,t({path:m})):s.createElement("path",$m({ref:d,className:ym()("visx-linepath",c),d:m(r)||"",fill:l,strokeLinecap:"round"},p))}function Zm(e){let t=e,n=e;function r(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)<0?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=function(e){return(t,n)=>function(e,t){return et?1:e>=t?0:NaN}(e(t),n)}(e)),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);const a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}var Hm=Math.sqrt(50),Vm=Math.sqrt(10),Fm=Math.sqrt(2);function Bm(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Hm?i*=10:o>=Vm?i*=5:o>=Fm&&(i*=2),t0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return Qm.setTime(+t),Jm.setTime(+r),e(Qm),e(Jm),Math.floor(n(Qm,Jm))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var tg=eg((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));tg.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?eg((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):tg:null};const ng=tg;tg.range;var rg=eg((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*Wm)}),(function(e,t){return(t-e)/Wm}),(function(e){return e.getUTCSeconds()}));const ig=rg;rg.range;var og=eg((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Wm)}),(function(e,t){e.setTime(+e+t*Um)}),(function(e,t){return(t-e)/Um}),(function(e){return e.getMinutes()}));const ag=og;og.range;var sg=eg((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Wm-e.getMinutes()*Um)}),(function(e,t){e.setTime(+e+t*Ym)}),(function(e,t){return(t-e)/Ym}),(function(e){return e.getHours()}));const lg=sg;sg.range;var cg=eg((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Um)/qm),(e=>e.getDate()-1));const ug=cg;cg.range;function dg(e){return eg((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Um)/Gm}))}var hg=dg(0),fg=dg(1),pg=dg(2),mg=dg(3),gg=dg(4),vg=dg(5),yg=dg(6),bg=(hg.range,fg.range,pg.range,mg.range,gg.range,vg.range,yg.range,eg((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()})));const wg=bg;bg.range;var xg=eg((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));xg.every=function(e){return isFinite(e=Math.floor(e))&&e>0?eg((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};const kg=xg;xg.range;var Sg=eg((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Um)}),(function(e,t){return(t-e)/Um}),(function(e){return e.getUTCMinutes()}));const Cg=Sg;Sg.range;var jg=eg((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Ym)}),(function(e,t){return(t-e)/Ym}),(function(e){return e.getUTCHours()}));const Og=jg;jg.range;var Mg=eg((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/qm}),(function(e){return e.getUTCDate()-1}));const Pg=Mg;Mg.range;function Eg(e){return eg((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/Gm}))}var Ag=Eg(0),Tg=Eg(1),_g=Eg(2),Dg=Eg(3),Rg=Eg(4),zg=Eg(5),Ig=Eg(6),Lg=(Ag.range,Tg.range,_g.range,Dg.range,Rg.range,zg.range,Ig.range,eg((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()})));const $g=Lg;Lg.range;var Ng=eg((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));Ng.every=function(e){return isFinite(e=Math.floor(e))&&e>0?eg((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};const Zg=Ng;Ng.range;function Hg(e,t,n,r,i,o){const a=[[ig,1,Wm],[ig,5,5e3],[ig,15,15e3],[ig,30,3e4],[o,1,Um],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,Ym],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,qm],[r,2,1728e5],[n,1,Gm],[t,1,Km],[t,3,7776e6],[e,1,Xm]];function s(t,n,r){const i=Math.abs(n-t)/r,o=Zm((([,,e])=>e)).right(a,i);if(o===a.length)return e.every(Bm(t/Xm,n/Xm,r));if(0===o)return ng.every(Math.max(Bm(t,n,r),1));const[s,l]=a[i/a[o-1][2][e.toLowerCase(),t])))}function ov(e,t,n){var r=Qg.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function av(e,t,n){var r=Qg.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function sv(e,t,n){var r=Qg.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function lv(e,t,n){var r=Qg.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function cv(e,t,n){var r=Qg.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function uv(e,t,n){var r=Qg.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function dv(e,t,n){var r=Qg.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function hv(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function fv(e,t,n){var r=Qg.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function pv(e,t,n){var r=Qg.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function mv(e,t,n){var r=Qg.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function gv(e,t,n){var r=Qg.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function vv(e,t,n){var r=Qg.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function yv(e,t,n){var r=Qg.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function bv(e,t,n){var r=Qg.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function wv(e,t,n){var r=Qg.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function xv(e,t,n){var r=Qg.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function kv(e,t,n){var r=Jg.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Sv(e,t,n){var r=Qg.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Cv(e,t,n){var r=Qg.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function jv(e,t){return tv(e.getDate(),t,2)}function Ov(e,t){return tv(e.getHours(),t,2)}function Mv(e,t){return tv(e.getHours()%12||12,t,2)}function Pv(e,t){return tv(1+ug.count(kg(e),e),t,3)}function Ev(e,t){return tv(e.getMilliseconds(),t,3)}function Av(e,t){return Ev(e,t)+"000"}function Tv(e,t){return tv(e.getMonth()+1,t,2)}function _v(e,t){return tv(e.getMinutes(),t,2)}function Dv(e,t){return tv(e.getSeconds(),t,2)}function Rv(e){var t=e.getDay();return 0===t?7:t}function zv(e,t){return tv(hg.count(kg(e)-1,e),t,2)}function Iv(e){var t=e.getDay();return t>=4||0===t?gg(e):gg.ceil(e)}function Lv(e,t){return e=Iv(e),tv(gg.count(kg(e),e)+(4===kg(e).getDay()),t,2)}function $v(e){return e.getDay()}function Nv(e,t){return tv(fg.count(kg(e)-1,e),t,2)}function Zv(e,t){return tv(e.getFullYear()%100,t,2)}function Hv(e,t){return tv((e=Iv(e)).getFullYear()%100,t,2)}function Vv(e,t){return tv(e.getFullYear()%1e4,t,4)}function Fv(e,t){var n=e.getDay();return tv((e=n>=4||0===n?gg(e):gg.ceil(e)).getFullYear()%1e4,t,4)}function Bv(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+tv(t/60|0,"0",2)+tv(t%60,"0",2)}function Wv(e,t){return tv(e.getUTCDate(),t,2)}function Uv(e,t){return tv(e.getUTCHours(),t,2)}function Yv(e,t){return tv(e.getUTCHours()%12||12,t,2)}function qv(e,t){return tv(1+Pg.count(Zg(e),e),t,3)}function Gv(e,t){return tv(e.getUTCMilliseconds(),t,3)}function Kv(e,t){return Gv(e,t)+"000"}function Xv(e,t){return tv(e.getUTCMonth()+1,t,2)}function Qv(e,t){return tv(e.getUTCMinutes(),t,2)}function Jv(e,t){return tv(e.getUTCSeconds(),t,2)}function ey(e){var t=e.getUTCDay();return 0===t?7:t}function ty(e,t){return tv(Ag.count(Zg(e)-1,e),t,2)}function ny(e){var t=e.getUTCDay();return t>=4||0===t?Rg(e):Rg.ceil(e)}function ry(e,t){return e=ny(e),tv(Rg.count(Zg(e),e)+(4===Zg(e).getUTCDay()),t,2)}function iy(e){return e.getUTCDay()}function oy(e,t){return tv(Tg.count(Zg(e)-1,e),t,2)}function ay(e,t){return tv(e.getUTCFullYear()%100,t,2)}function sy(e,t){return tv((e=ny(e)).getUTCFullYear()%100,t,2)}function ly(e,t){return tv(e.getUTCFullYear()%1e4,t,4)}function cy(e,t){var n=e.getUTCDay();return tv((e=n>=4||0===n?Rg(e):Rg.ceil(e)).getUTCFullYear()%1e4,t,4)}function uy(){return"+0000"}function dy(){return"%"}function hy(e){return+e}function fy(e){return Math.floor(+e/1e3)}function py(e,t){return et?1:e>=t?0:NaN}function my(e){let t=e,n=e;function r(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)<0?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=function(e){return(t,n)=>py(e(t),n)}(e)),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);const a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}Gg=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=rv(i),u=iv(i),d=rv(o),h=iv(o),f=rv(a),p=iv(a),m=rv(s),g=iv(s),v=rv(l),y=iv(l),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:jv,e:jv,f:Av,g:Hv,G:Fv,H:Ov,I:Mv,j:Pv,L:Ev,m:Tv,M:_v,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:hy,s:fy,S:Dv,u:Rv,U:zv,V:Lv,w:$v,W:Nv,x:null,X:null,y:Zv,Y:Vv,Z:Bv,"%":dy},w={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:Wv,e:Wv,f:Kv,g:sy,G:cy,H:Uv,I:Yv,j:qv,L:Gv,m:Xv,M:Qv,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:hy,s:fy,S:Jv,u:ey,U:ty,V:ry,w:iy,W:oy,x:null,X:null,y:ay,Y:ly,Z:uy,"%":dy},x={a:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return C(e,t,n,r)},d:mv,e:mv,f:xv,g:dv,G:uv,H:vv,I:vv,j:gv,L:wv,m:pv,M:yv,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:fv,Q:Sv,s:Cv,S:bv,u:av,U:sv,V:lv,w:ov,W:cv,x:function(e,t,r){return C(e,n,t,r)},X:function(e,t,n){return C(e,r,t,n)},y:dv,Y:uv,Z:hv,"%":kv};function k(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=Yg(qg(o.y,0,1))).getUTCDay(),r=i>4||0===i?Tg.ceil(r):Tg(r),r=Pg.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=Ug(qg(o.y,0,1))).getDay(),r=i>4||0===i?fg.ceil(r):fg(r),r=ug.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Yg(qg(o.y,0,1)).getUTCDay():Ug(qg(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Yg(o)):Ug(o)}}function C(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a=l)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=x[i in Xg?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=k(n,b),b.X=k(r,b),b.c=k(t,b),w.x=k(n,w),w.X=k(r,w),w.c=k(t,w),{format:function(e){var t=k(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=k(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),Kg=Gg.format,Gg.parse,Gg.utcFormat,Gg.utcParse;const gy=my(py),vy=gy.right,yy=(gy.left,my((function(e){return null===e?NaN:+e})).center,vy);function by(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function wy(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function xy(){}var ky=.7,Sy=1/ky,Cy="\\s*([+-]?\\d+)\\s*",jy="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Oy="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",My=/^#([0-9a-f]{3,8})$/,Py=new RegExp("^rgb\\("+[Cy,Cy,Cy]+"\\)$"),Ey=new RegExp("^rgb\\("+[Oy,Oy,Oy]+"\\)$"),Ay=new RegExp("^rgba\\("+[Cy,Cy,Cy,jy]+"\\)$"),Ty=new RegExp("^rgba\\("+[Oy,Oy,Oy,jy]+"\\)$"),_y=new RegExp("^hsl\\("+[jy,Oy,Oy]+"\\)$"),Dy=new RegExp("^hsla\\("+[jy,Oy,Oy,jy]+"\\)$"),Ry={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function zy(){return this.rgb().formatHex()}function Iy(){return this.rgb().formatRgb()}function Ly(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=My.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?$y(t):3===n?new Vy(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ny(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ny(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Py.exec(e))?new Vy(t[1],t[2],t[3],1):(t=Ey.exec(e))?new Vy(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ay.exec(e))?Ny(t[1],t[2],t[3],t[4]):(t=Ty.exec(e))?Ny(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=_y.exec(e))?Uy(t[1],t[2]/100,t[3]/100,1):(t=Dy.exec(e))?Uy(t[1],t[2]/100,t[3]/100,t[4]):Ry.hasOwnProperty(e)?$y(Ry[e]):"transparent"===e?new Vy(NaN,NaN,NaN,0):null}function $y(e){return new Vy(e>>16&255,e>>8&255,255&e,1)}function Ny(e,t,n,r){return r<=0&&(e=t=n=NaN),new Vy(e,t,n,r)}function Zy(e){return e instanceof xy||(e=Ly(e)),e?new Vy((e=e.rgb()).r,e.g,e.b,e.opacity):new Vy}function Hy(e,t,n,r){return 1===arguments.length?Zy(e):new Vy(e,t,n,null==r?1:r)}function Vy(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Fy(){return"#"+Wy(this.r)+Wy(this.g)+Wy(this.b)}function By(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function Wy(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Uy(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Gy(e,t,n,r)}function Yy(e){if(e instanceof Gy)return new Gy(e.h,e.s,e.l,e.opacity);if(e instanceof xy||(e=Ly(e)),!e)return new Gy;if(e instanceof Gy)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n0&&l<1?0:a,new Gy(a,s,l,e.opacity)}function qy(e,t,n,r){return 1===arguments.length?Yy(e):new Gy(e,t,n,null==r?1:r)}function Gy(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Ky(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function Xy(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}function Qy(e){return function(){return e}}function Jy(e,t){return function(n){return e+n*t}}function eb(e,t){var n=t-e;return n?Jy(e,n>180||n<-180?n-360*Math.round(n/360):n):Qy(isNaN(e)?t:e)}function tb(e){return 1==(e=+e)?nb:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Qy(isNaN(t)?n:t)}}function nb(e,t){var n=t-e;return n?Jy(e,n):Qy(isNaN(e)?t:e)}by(xy,Ly,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:zy,formatHex:zy,formatHsl:function(){return Yy(this).formatHsl()},formatRgb:Iy,toString:Iy}),by(Vy,Hy,wy(xy,{brighter:function(e){return e=null==e?Sy:Math.pow(Sy,e),new Vy(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?ky:Math.pow(ky,e),new Vy(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Fy,formatHex:Fy,formatRgb:By,toString:By})),by(Gy,qy,wy(xy,{brighter:function(e){return e=null==e?Sy:Math.pow(Sy,e),new Gy(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?ky:Math.pow(ky,e),new Gy(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Vy(Ky(e>=240?e-240:e+120,i,r),Ky(e,i,r),Ky(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));const rb=function e(t){var n=tb(t);function r(e,t){var r=n((e=Hy(e)).r,(t=Hy(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=nb(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function ib(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=ro&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:sb(n,r)})),o=ub.lastIndex;return ot&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(a[0],a[e-1])),r=e>2?wb:bb,i=o=null,d}function d(t){return null==t||isNaN(t=+t)?n:(i||(i=r(a.map(e),s,l)))(e(c(t)))}return d.invert=function(n){return c(t((o||(o=r(s,a.map(e),sb)))(n)))},d.domain=function(e){return arguments.length?(a=Array.from(e,mb),u()):a.slice()},d.range=function(e){return arguments.length?(s=Array.from(e),u()):s.slice()},d.rangeRound=function(e){return s=Array.from(e),l=pb,u()},d.clamp=function(e){return arguments.length?(c=!!e||vb,u()):c!==vb},d.interpolate=function(e){return arguments.length?(l=e,u()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}function Sb(){return kb()(vb,vb)}function Cb(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function jb(e){return new Date(e)}function Ob(e){return e instanceof Date?+e:+new Date(+e)}function Mb(e,t,n,r,i,o,a,s,l,c){var u=Sb(),d=u.invert,h=u.domain,f=c(".%L"),p=c(":%S"),m=c("%I:%M"),g=c("%I %p"),v=c("%a %d"),y=c("%b %d"),b=c("%B"),w=c("%Y");function x(e){return(l(e).008856451679035631?Math.pow(e,1/3):e/Rb+_b}function Nb(e){return e>Db?e*e*e:Rb*(e-_b)}function Zb(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Hb(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Vb(e){if(e instanceof Bb)return new Bb(e.h,e.c,e.l,e.opacity);if(e instanceof Lb||(e=zb(e)),0===e.a&&0===e.b)return new Bb(NaN,0=0?(o>=bw?10:o>=ww?5:o>=xw?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=bw?10:o>=ww?5:o>=xw?2:1)}var Sw,Cw=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function jw(e){if(!(t=Cw.exec(e)))throw new Error("invalid format: "+e);var t;return new Ow({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function Ow(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function Mw(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Pw(e){return(e=Mw(Math.abs(e)))?e[1]:NaN}function Ew(e,t){var n=Mw(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}jw.prototype=Ow.prototype,Ow.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const Aw={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Ew(100*e,t),r:Ew,s:function(e,t){var n=Mw(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(Sw=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Mw(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Tw(e){return e}var _w,Dw,Rw,zw=Array.prototype.map,Iw=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Lw(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?Tw:(t=zw.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?Tw:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(zw.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=jw(e)).fill,n=e.align,d=e.sign,h=e.symbol,f=e.zero,p=e.width,m=e.comma,g=e.precision,v=e.trim,y=e.type;"n"===y?(m=!0,y="g"):Aw[y]||(void 0===g&&(g=12),v=!0,y="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var b="$"===h?i:"#"===h&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",w="$"===h?o:/[%p]/.test(y)?l:"",x=Aw[y],k=/[defgprs%]/.test(y);function S(e){var i,o,l,h=b,S=w;if("c"===y)S=x(e)+S,e="";else{var C=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:x(Math.abs(e),g),v&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),C&&0==+e&&"+"!==d&&(C=!1),h=(C?"("===d?d:c:"-"===d||"("===d?"":d)+h,S=("s"===y?Iw[8+Sw/3]:"")+S+(C&&"("===d?")":""),k)for(i=-1,o=e.length;++i(l=e.charCodeAt(i))||l>57){S=(46===l?a+e.slice(i+1):e.slice(i))+S,e=e.slice(0,i);break}}m&&!f&&(e=r(e,1/0));var j=h.length+e.length+S.length,O=j>1)+h+e+S+O.slice(j);break;default:e=O+h+e+S}return s(e)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),S.toString=function(){return e+""},S}return{format:d,formatPrefix:function(e,t){var n=d(((e=jw(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Pw(t)/3))),i=Math.pow(10,-r),o=Iw[8+r/3];return function(e){return n(i*e)+o}}}}function $w(e,t,n,r){var i,o=function(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=bw?i*=10:o>=ww?i*=5:o>=xw&&(i*=2),t0)return[e];if((r=t0){let n=Math.round(e/a),r=Math.round(t/a);for(n*at&&--r,o=new Array(i=r-n+1);++st&&--r,o=new Array(i=r-n+1);++s0;){if((i=kw(l,c,n))===r)return o[a]=l,o[s]=c,t(o);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i}r=i}return e},e}function Zw(){var e=Sb();return e.copy=function(){return xb(e,Zw())},Cb.apply(e,arguments),Nw(e)}!function(e){_w=Lw(e),Dw=_w.format,Rw=_w.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});var Hw=gw("domain","range","reverse","clamp","interpolate","nice","round","zero");function Vw(e){return Hw(Zw(),e)}var Fw=n(3074),Bw=n.n(Fw),Ww=["top","left","transform","className","children","innerRef"];function Uw(){return Uw=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,Ww);return s.createElement("g",Uw({ref:c,className:ym()("visx-group",a),transform:o||"translate("+i+", "+n+")"},u),l)}function qw(e,t){var n=e;return"ticks"in n?n.ticks(t):n.domain().filter((function(e,n,r){return null==t||r.length<=t||n%Math.round((r.length-1)/t)==0}))}function Gw(e){if(("function"==typeof e||"object"==typeof e&&e)&&"valueOf"in e){var t=e.valueOf();if("number"==typeof t)return t}return e}Yw.propTypes={top:Bw().number,left:Bw().number,transform:Bw().string,className:Bw().string,children:Bw().node,innerRef:Bw().oneOfType([Bw().string,Bw().func,Bw().object])};var Kw=["from","to","fill","className","innerRef"];function Xw(){return Xw=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,Kw),d=n.x===i.x||n.y===i.y;return s.createElement("line",Xw({ref:c,className:ym()("visx-line",l),x1:n.x,y1:n.y,x2:i.x,y2:i.y,fill:a,shapeRendering:d?"crispEdges":"auto"},u))}var Jw=n(364),ex=n.n(Jw),tx=n(104),nx="__react_svg_text_measurement_id";const rx=n.n(tx)()((function(e,t){try{var n=document.getElementById(nx);if(!n){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("aria-hidden","true"),r.style.width="0",r.style.height="0",r.style.position="absolute",r.style.top="-100%",r.style.left="-100%",(n=document.createElementNS("http://www.w3.org/2000/svg","text")).setAttribute("id",nx),r.appendChild(n),document.body.appendChild(r)}return Object.assign(n.style,t),n.textContent=e,n.getComputedTextLength()}catch(e){return null}}),(function(e,t){return e+"_"+JSON.stringify(t)}));var ix=["verticalAnchor","scaleToFit","angle","width","lineHeight","capHeight","children","style"];function ox(e){return"number"==typeof e}function ax(e){return"number"==typeof e&&Number.isFinite(e)||"string"==typeof e}function sx(e){var t=e.verticalAnchor,n=void 0===t?"end":t,r=e.scaleToFit,i=void 0!==r&&r,o=e.angle,a=e.width,l=e.lineHeight,c=void 0===l?"1em":l,u=e.capHeight,d=void 0===u?"0.71em":u,h=e.children,f=e.style,p=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,ix),m=p.x,g=void 0===m?0:m,v=p.y,y=void 0===v?0:v,b=!ax(g)||!ax(y),w=(0,s.useMemo)((function(){return{wordsWithWidth:(null==h?[]:h.toString().split(/(?:(?!\u00A0+)\s+)/)).map((function(e){return{word:e,wordWidth:rx(e,f)||0}})),spaceWidth:rx(" ",f)||0}}),[h,f]),x=w.wordsWithWidth,k=w.spaceWidth,S=(0,s.useMemo)((function(){return b?[]:a||i?x.reduce((function(e,t){var n=t.word,r=t.wordWidth,o=e[e.length-1];if(o&&(null==a||i||(o.width||0)+r+k0){var t=S[0].width||1,n="shrink-only"===i?Math.min(a/t,1):a/t,r=n,s=g-n*g,l=y-r*y;e.push("matrix("+n+", 0, 0, "+r+", "+s+", "+l+")")}return o&&e.push("rotate("+o+", "+g+", "+y+")"),e.length>0?e.join(" "):""}),[b,g,y,a,i,S,o]);return{wordsByLines:S,startDy:C,transform:j}}var lx=["dx","dy","textAnchor","innerRef","innerTextRef","verticalAnchor","angle","lineHeight","scaleToFit","capHeight","width"];function cx(){return cx=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,lx)),f=h.x,p=void 0===f?0:f,m=h.fontSize,g=sx(e),v=g.wordsByLines,y=g.startDy,b=g.transform;return s.createElement("svg",{ref:l,x:n,y:i,fontSize:m,style:ux},v.length>0?s.createElement("text",cx({ref:c,transform:b},h,{textAnchor:a}),v.map((function(e,t){return s.createElement("tspan",{key:t,x:p,dy:0===t?y:d},e.words.join(" "))}))):null)}const hx={top:"top",left:"left",right:"right",bottom:"bottom"};function fx(){return fx=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,kx),M=null!=w?w:function(e){return"tickFormat"in e?e.tickFormat():yx}(b),P=g===hx.left,E=g===hx.top,A=E||g===hx.bottom,T=function(e,t){void 0===t&&(t="center");var n=e;if("start"!==t&&"bandwidth"in n){var r=n.bandwidth();return"center"===t&&(r/=2),n.round()&&(r=Math.round(r)),function(e){var t=n(e);return"number"==typeof t?t+r:t}}return e}(b),_=P||E?-1:1,D=b.range(),R=xx({x:Number(D[0])+.5-y,y:0},A),z=xx({x:Number(D[D.length-1])+.5+y,y:0},A),I=(null!=S?S:qw(b,p)).filter((function(e){return!u||0!==e&&"0"!==e})).map((function(e,t){return{value:e,index:t}})),L=I.map((function(e){var t=e.value,n=e.index,r=Gw(T(t));return{value:t,index:n,from:xx({x:r,y:0},A),to:xx({x:r,y:k*_},A),formattedValue:M(t,n,I)}}));return s.createElement(Yw,{className:ym()("visx-axis",r),top:j,left:h},n(Sx({},O,{axisFromPoint:R,axisToPoint:z,hideAxisLine:o,hideTicks:l,hideZero:u,horizontal:A,numTicks:p,orientation:g,rangePadding:y,scale:b,tickFormat:M,tickLength:k,tickPosition:T,tickSign:_,ticks:L})))}var jx=["axisClassName","labelOffset","tickLabelProps","tickLength"];function Ox(){return Ox=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jx);return s.createElement(Cx,Ox({axisClassName:ym()("visx-axis-right",t),labelOffset:r,orientation:hx.right,tickLabelProps:o,tickLength:l},c))}var Ex=n(5021);function Ax(e){return"bandwidth"in e?e.bandwidth():0}var Tx=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function _x(){return _x=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,Tx),x=null!=b?b:qw(o,g),k=(null!=y?y:0)+Ax(o)/2,S=x.map((function(e,t){var n,r=(null!=(n=Gw(o(e)))?n:0)+k;return{index:t,from:new wx({x:0,y:r}),to:new wx({x:a,y:r})}}));return s.createElement(Yw,{className:ym()("visx-rows",f),top:n,left:i},p?p({lines:S}):S.map((function(e){var t=e.from,n=e.to,r=e.index;return s.createElement(Ex.Z,_x({key:"row-line-"+r,from:t,to:n,stroke:c,strokeWidth:d,strokeDasharray:h,style:v},w))})))}Dx.propTypes={tickValues:Bw().array,width:Bw().number.isRequired};var Rx=["children","id","from","to","x1","y1","x2","y2","fromOffset","fromOpacity","toOffset","toOpacity","rotate","transform","vertical"];function zx(){return zx=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,Rx),S=o,C=l,j=a,O=c;return!x||S||C||j||O||(S="0",C="0",j="0",O="1"),s.createElement("defs",null,s.createElement("linearGradient",zx({id:n,x1:S,y1:j,x2:C,y2:O,gradientTransform:y?"rotate("+y+")":b},k),!!t&&t,!t&&s.createElement("stop",{offset:d,stopColor:r,stopOpacity:f}),!t&&s.createElement("stop",{offset:m,stopColor:i,stopOpacity:v})))}function Lx(e,t){return null==e||null==t?NaN:et?1:e>=t?0:NaN}function $x(e,t){return null==e||null==t?NaN:te?1:t>=e?0:NaN}function Nx(e){let t,n,r;function i(e,r,i=0,o=e.length){if(i>>1;n(e[t],r)<0?i=t+1:o=t}while(iLx(e(t),n),r=(t,n)=>e(t)-n):(t=e===Lx||e===$x?e:Zx,n=e,r=e),{left:i,center:function(e,t,n=0,o=e.length){const a=i(e,t,n,o-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,i=0,o=e.length){if(i>>1;n(e[t],r)<=0?i=t+1:o=t}while(i0?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:Hx({},Vx);if(function(e){return!!e&&"clientX"in e}(e))return{x:e.clientX,y:e.clientY};var t=null==e?void 0:e.target,n=t&&"getBoundingClientRect"in t?t.getBoundingClientRect():null;return n?{x:n.x+n.width/2,y:n.y+n.height/2}:Hx({},Vx)}(t),i=(n=e)&&(n instanceof SVGElement||"ownerSVGElement"in n)?e.ownerSVGElement:e,o=function(e){return!!e&&"getScreenCTM"in e}(i)?i.getScreenCTM():null;if(function(e){return!!e&&"createSVGPoint"in e}(i)&&o){var a=i.createSVGPoint();return a.x=r.x,a.y=r.y,a=a.matrixTransform(o.inverse()),new wx({x:a.x,y:a.y})}var s=e.getBoundingClientRect();return new wx({x:r.x-s.left-e.clientLeft,y:r.y-s.top-e.clientTop})}function Bx(e,t){if((n=e)&&n instanceof Element&&t)return Fx(e,t);var n;if(function(e){return!!e&&(e instanceof Event||"nativeEvent"in e&&e.nativeEvent instanceof Event)}(e)){var r=e,i=r.target;if(i)return Fx(i,r)}return null}var Wx=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){Ux&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Kx?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Ux&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;Gx.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Qx=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),uk="undefined"!=typeof WeakMap?new WeakMap:new Wx,dk=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Xx.getInstance(),r=new ck(t,n,this);uk.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){dk.prototype[e]=function(){var t;return(t=uk.get(this))[e].apply(t,arguments)}}));const hk=void 0!==Yx.ResizeObserver?Yx.ResizeObserver:dk,fk=e=>e?{width:e.offsetWidth,height:e.offsetHeight}:{width:0,height:0},pk=e=>{const[t,n]=(0,s.useState)(fk(null==e?void 0:e.current)),r=(0,s.useCallback)((()=>n(fk(e.current))),[e]);return(0,s.useLayoutEffect)((()=>{r();const t=new hk((()=>{r()}));return e.current&&t.observe(e.current),()=>{t.disconnect()}}),[e.current]),t},mk=(e,t)=>null==e?void 0:e.replace(")",`,${t})`);function gk(e,t){return Object.entries(e).reduce(((e,[n,r])=>Object.assign(Object.assign({},e),{[n]:t(r)})),{})}const vk=r.zo.ul` +`,Hm=({colors:e,data:t,features:n})=>{const{values:r,total:i}=(0,s.useMemo)((()=>{const e=t.length?Object.values(t[0]).filter((e=>"number"==typeof e)):[],n=e.reduce(((e,t)=>e+t),0);return{values:e,total:n}}),[t]),o=n&&"number"==typeof n.gap?n.gap:2;return(0,a.jsx)(Nm,{children:r.map(((t,n)=>i?(0,a.jsx)(Zm,{width:`calc(${Math.round(t/i*1e4)/100}% - ${o}px)`,x:`calc(${Math.round(r.reduce(((e,t,r)=>rYm)if(Math.abs(u*s-l*c)>Ym&&i){var h=n-o,f=r-a,p=s*s+l*l,m=h*h+f*f,g=Math.sqrt(p),v=Math.sqrt(d),y=i*Math.tan((Wm-Math.acos((p+d-m)/(2*g*v)))/2),b=y/v,w=y/g;Math.abs(b-1)>Ym&&(this._+="L"+(e+b*c)+","+(t+b*u)),this._+="A"+i+","+i+",0,0,"+ +(u*h>c*f)+","+(this._x1=e+w*s)+","+(this._y1=t+w*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,r,i,o){e=+e,t=+t,o=!!o;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),l=e+a,c=t+s,u=1^o,d=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>Ym||Math.abs(this._y1-c)>Ym)&&(this._+="L"+l+","+c),n&&(d<0&&(d=d%Um+Um),d>Km?this._+="A"+n+","+n+",0,1,"+u+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):d>Ym&&(this._+="A"+n+","+n+",0,"+ +(d>=Wm)+","+u+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};const Xm=Gm;function Qm(e){return function(){return e}}function Jm(e){this._context=e}function eg(e){return new Jm(e)}function tg(e){return e[0]}function ng(e){return e[1]}function rg(){var e=tg,t=ng,n=Qm(!0),r=null,i=eg,o=null;function a(a){var s,l,c,u=a.length,d=!1;for(null==r&&(o=i(c=Xm())),s=0;s<=u;++s)!(s=u;--d)s.point(g[d],v[d]);s.lineEnd(),s.areaEnd()}m&&(g[c]=+e(h,c,l),v[c]=+n(h,c,l),s.point(t?+t(h,c,l):g[c],r?+r(h,c,l):v[c]))}if(f)return s=null,f+""||null}function c(){return rg().defined(i).curve(a).context(o)}return l.x=function(n){return arguments.length?(e="function"==typeof n?n:Qm(+n),t=null,l):e},l.x0=function(t){return arguments.length?(e="function"==typeof t?t:Qm(+t),l):e},l.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:Qm(+e),l):t},l.y=function(e){return arguments.length?(n="function"==typeof e?e:Qm(+e),r=null,l):n},l.y0=function(e){return arguments.length?(n="function"==typeof e?e:Qm(+e),l):n},l.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Qm(+e),l):r},l.lineX0=l.lineY0=function(){return c().x(e).y(n)},l.lineY1=function(){return c().x(e).y(r)},l.lineX1=function(){return c().x(t).y(n)},l.defined=function(e){return arguments.length?(i="function"==typeof e?e:Qm(!!e),l):i},l.curve=function(e){return arguments.length?(a=e,null!=o&&(s=a(o)),l):a},l.context=function(e){return arguments.length?(null==e?o=s=null:s=a(o=e),l):o},l}();return n&&Bm(u.x,n),r&&Bm(u.x0,r),i&&Bm(u.x1,i),o&&Bm(u.y,o),a&&Bm(u.y0,a),s&&Bm(u.y1,s),l&&u.defined(l),c&&u.curve(c),u}Jm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var og=["x","x0","x1","y","y1","y0","yScale","data","defined","className","curve","innerRef","children"];function ag(){return ag=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,og),y=ig({x:t,x0:n,x1:r,defined:h,curve:p});return null==a?y.y0(l.range()[0]):Bm(y.y0,a),i&&!o&&Bm(y.y1,i),o&&!i&&Bm(y.y1,o),g?s.createElement(s.Fragment,null,g({path:y})):s.createElement("path",ag({ref:m,className:Fm()("visx-area-closed",f),d:y(u)||""},v))}var lg=["children","data","x","y","fill","className","curve","innerRef","defined"];function cg(){return cg=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,lg),m=function(e){var t=void 0===e?{}:e,n=t.x,r=t.y,i=t.defined,o=t.curve,a=rg();return n&&Bm(a.x,n),r&&Bm(a.y,r),i&&a.defined(i),o&&a.curve(o),a}({x:i,y:o,defined:f,curve:u});return t?s.createElement(s.Fragment,null,t({path:m})):s.createElement("path",cg({ref:d,className:Fm()("visx-linepath",c),d:m(r)||"",fill:l,strokeLinecap:"round"},p))}function dg(e){let t=e,n=e;function r(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)<0?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=function(e){return(t,n)=>function(e,t){return et?1:e>=t?0:NaN}(e(t),n)}(e)),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);const a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}var hg=Math.sqrt(50),fg=Math.sqrt(10),pg=Math.sqrt(2);function mg(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=hg?i*=10:o>=fg?i*=5:o>=pg&&(i*=2),t0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return Sg.setTime(+t),Cg.setTime(+r),e(Sg),e(Cg),Math.floor(n(Sg,Cg))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var Og=jg((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Og.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?jg((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Og:null};const Mg=Og;Og.range;var Eg=jg((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*gg)}),(function(e,t){return(t-e)/gg}),(function(e){return e.getUTCSeconds()}));const Pg=Eg;Eg.range;var Ag=jg((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*gg)}),(function(e,t){e.setTime(+e+t*vg)}),(function(e,t){return(t-e)/vg}),(function(e){return e.getMinutes()}));const Tg=Ag;Ag.range;var _g=jg((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*gg-e.getMinutes()*vg)}),(function(e,t){e.setTime(+e+t*yg)}),(function(e,t){return(t-e)/yg}),(function(e){return e.getHours()}));const Dg=_g;_g.range;var Rg=jg((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*vg)/bg),(e=>e.getDate()-1));const zg=Rg;Rg.range;function Ig(e){return jg((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*vg)/wg}))}var Lg=Ig(0),$g=Ig(1),Ng=Ig(2),Zg=Ig(3),Hg=Ig(4),Vg=Ig(5),Fg=Ig(6),Bg=(Lg.range,$g.range,Ng.range,Zg.range,Hg.range,Vg.range,Fg.range,jg((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()})));const Wg=Bg;Bg.range;var Ug=jg((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));Ug.every=function(e){return isFinite(e=Math.floor(e))&&e>0?jg((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};const Yg=Ug;Ug.range;var Kg=jg((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*vg)}),(function(e,t){return(t-e)/vg}),(function(e){return e.getUTCMinutes()}));const qg=Kg;Kg.range;var Gg=jg((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*yg)}),(function(e,t){return(t-e)/yg}),(function(e){return e.getUTCHours()}));const Xg=Gg;Gg.range;var Qg=jg((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/bg}),(function(e){return e.getUTCDate()-1}));const Jg=Qg;Qg.range;function ev(e){return jg((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/wg}))}var tv=ev(0),nv=ev(1),rv=ev(2),iv=ev(3),ov=ev(4),av=ev(5),sv=ev(6),lv=(tv.range,nv.range,rv.range,iv.range,ov.range,av.range,sv.range,jg((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()})));const cv=lv;lv.range;var uv=jg((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));uv.every=function(e){return isFinite(e=Math.floor(e))&&e>0?jg((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};const dv=uv;uv.range;function hv(e,t,n,r,i,o){const a=[[Pg,1,gg],[Pg,5,5e3],[Pg,15,15e3],[Pg,30,3e4],[o,1,vg],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,yg],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,bg],[r,2,1728e5],[n,1,wg],[t,1,xg],[t,3,7776e6],[e,1,kg]];function s(t,n,r){const i=Math.abs(n-t)/r,o=dg((([,,e])=>e)).right(a,i);if(o===a.length)return e.every(mg(t/kg,n/kg,r));if(0===o)return Mg.every(Math.max(mg(t,n,r),1));const[s,l]=a[i/a[o-1][2][e.toLowerCase(),t])))}function Av(e,t,n){var r=Sv.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Tv(e,t,n){var r=Sv.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function _v(e,t,n){var r=Sv.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Dv(e,t,n){var r=Sv.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Rv(e,t,n){var r=Sv.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function zv(e,t,n){var r=Sv.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Iv(e,t,n){var r=Sv.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Lv(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function $v(e,t,n){var r=Sv.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function Nv(e,t,n){var r=Sv.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Zv(e,t,n){var r=Sv.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Hv(e,t,n){var r=Sv.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Vv(e,t,n){var r=Sv.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Fv(e,t,n){var r=Sv.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Bv(e,t,n){var r=Sv.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Wv(e,t,n){var r=Sv.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Uv(e,t,n){var r=Sv.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Yv(e,t,n){var r=Cv.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Kv(e,t,n){var r=Sv.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function qv(e,t,n){var r=Sv.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Gv(e,t){return Ov(e.getDate(),t,2)}function Xv(e,t){return Ov(e.getHours(),t,2)}function Qv(e,t){return Ov(e.getHours()%12||12,t,2)}function Jv(e,t){return Ov(1+zg.count(Yg(e),e),t,3)}function ey(e,t){return Ov(e.getMilliseconds(),t,3)}function ty(e,t){return ey(e,t)+"000"}function ny(e,t){return Ov(e.getMonth()+1,t,2)}function ry(e,t){return Ov(e.getMinutes(),t,2)}function iy(e,t){return Ov(e.getSeconds(),t,2)}function oy(e){var t=e.getDay();return 0===t?7:t}function ay(e,t){return Ov(Lg.count(Yg(e)-1,e),t,2)}function sy(e){var t=e.getDay();return t>=4||0===t?Hg(e):Hg.ceil(e)}function ly(e,t){return e=sy(e),Ov(Hg.count(Yg(e),e)+(4===Yg(e).getDay()),t,2)}function cy(e){return e.getDay()}function uy(e,t){return Ov($g.count(Yg(e)-1,e),t,2)}function dy(e,t){return Ov(e.getFullYear()%100,t,2)}function hy(e,t){return Ov((e=sy(e)).getFullYear()%100,t,2)}function fy(e,t){return Ov(e.getFullYear()%1e4,t,4)}function py(e,t){var n=e.getDay();return Ov((e=n>=4||0===n?Hg(e):Hg.ceil(e)).getFullYear()%1e4,t,4)}function my(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ov(t/60|0,"0",2)+Ov(t%60,"0",2)}function gy(e,t){return Ov(e.getUTCDate(),t,2)}function vy(e,t){return Ov(e.getUTCHours(),t,2)}function yy(e,t){return Ov(e.getUTCHours()%12||12,t,2)}function by(e,t){return Ov(1+Jg.count(dv(e),e),t,3)}function wy(e,t){return Ov(e.getUTCMilliseconds(),t,3)}function xy(e,t){return wy(e,t)+"000"}function ky(e,t){return Ov(e.getUTCMonth()+1,t,2)}function Sy(e,t){return Ov(e.getUTCMinutes(),t,2)}function Cy(e,t){return Ov(e.getUTCSeconds(),t,2)}function jy(e){var t=e.getUTCDay();return 0===t?7:t}function Oy(e,t){return Ov(tv.count(dv(e)-1,e),t,2)}function My(e){var t=e.getUTCDay();return t>=4||0===t?ov(e):ov.ceil(e)}function Ey(e,t){return e=My(e),Ov(ov.count(dv(e),e)+(4===dv(e).getUTCDay()),t,2)}function Py(e){return e.getUTCDay()}function Ay(e,t){return Ov(nv.count(dv(e)-1,e),t,2)}function Ty(e,t){return Ov(e.getUTCFullYear()%100,t,2)}function _y(e,t){return Ov((e=My(e)).getUTCFullYear()%100,t,2)}function Dy(e,t){return Ov(e.getUTCFullYear()%1e4,t,4)}function Ry(e,t){var n=e.getUTCDay();return Ov((e=n>=4||0===n?ov(e):ov.ceil(e)).getUTCFullYear()%1e4,t,4)}function zy(){return"+0000"}function Iy(){return"%"}function Ly(e){return+e}function $y(e){return Math.floor(+e/1e3)}function Ny(e,t){return et?1:e>=t?0:NaN}function Zy(e){let t=e,n=e;function r(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)<0?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=function(e){return(t,n)=>Ny(e(t),n)}(e)),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);const a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}wv=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=Ev(i),u=Pv(i),d=Ev(o),h=Pv(o),f=Ev(a),p=Pv(a),m=Ev(s),g=Pv(s),v=Ev(l),y=Pv(l),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:Gv,e:Gv,f:ty,g:hy,G:py,H:Xv,I:Qv,j:Jv,L:ey,m:ny,M:ry,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Ly,s:$y,S:iy,u:oy,U:ay,V:ly,w:cy,W:uy,x:null,X:null,y:dy,Y:fy,Z:my,"%":Iy},w={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:gy,e:gy,f:xy,g:_y,G:Ry,H:vy,I:yy,j:by,L:wy,m:ky,M:Sy,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Ly,s:$y,S:Cy,u:jy,U:Oy,V:Ey,w:Py,W:Ay,x:null,X:null,y:Ty,Y:Dy,Z:zy,"%":Iy},x={a:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return C(e,t,n,r)},d:Zv,e:Zv,f:Uv,g:Iv,G:zv,H:Vv,I:Vv,j:Hv,L:Wv,m:Nv,M:Fv,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:$v,Q:Kv,s:qv,S:Bv,u:Tv,U:_v,V:Dv,w:Av,W:Rv,x:function(e,t,r){return C(e,n,t,r)},X:function(e,t,n){return C(e,r,t,n)},y:Iv,Y:zv,Z:Lv,"%":Yv};function k(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=yv(bv(o.y,0,1))).getUTCDay(),r=i>4||0===i?nv.ceil(r):nv(r),r=Jg.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=vv(bv(o.y,0,1))).getDay(),r=i>4||0===i?$g.ceil(r):$g(r),r=zg.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?yv(bv(o.y,0,1)).getUTCDay():vv(bv(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,yv(o)):vv(o)}}function C(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a=l)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=x[i in kv?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=k(n,b),b.X=k(r,b),b.c=k(t,b),w.x=k(n,w),w.X=k(r,w),w.c=k(t,w),{format:function(e){var t=k(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=k(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),xv=wv.format,wv.parse,wv.utcFormat,wv.utcParse;const Hy=Zy(Ny),Vy=Hy.right,Fy=(Hy.left,Zy((function(e){return null===e?NaN:+e})).center,Vy);function By(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Wy(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Uy(){}var Yy=.7,Ky=1/Yy,qy="\\s*([+-]?\\d+)\\s*",Gy="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Xy="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Qy=/^#([0-9a-f]{3,8})$/,Jy=new RegExp("^rgb\\("+[qy,qy,qy]+"\\)$"),eb=new RegExp("^rgb\\("+[Xy,Xy,Xy]+"\\)$"),tb=new RegExp("^rgba\\("+[qy,qy,qy,Gy]+"\\)$"),nb=new RegExp("^rgba\\("+[Xy,Xy,Xy,Gy]+"\\)$"),rb=new RegExp("^hsl\\("+[Gy,Xy,Xy]+"\\)$"),ib=new RegExp("^hsla\\("+[Gy,Xy,Xy,Gy]+"\\)$"),ob={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function ab(){return this.rgb().formatHex()}function sb(){return this.rgb().formatRgb()}function lb(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Qy.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?cb(t):3===n?new fb(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?ub(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?ub(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Jy.exec(e))?new fb(t[1],t[2],t[3],1):(t=eb.exec(e))?new fb(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=tb.exec(e))?ub(t[1],t[2],t[3],t[4]):(t=nb.exec(e))?ub(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=rb.exec(e))?vb(t[1],t[2]/100,t[3]/100,1):(t=ib.exec(e))?vb(t[1],t[2]/100,t[3]/100,t[4]):ob.hasOwnProperty(e)?cb(ob[e]):"transparent"===e?new fb(NaN,NaN,NaN,0):null}function cb(e){return new fb(e>>16&255,e>>8&255,255&e,1)}function ub(e,t,n,r){return r<=0&&(e=t=n=NaN),new fb(e,t,n,r)}function db(e){return e instanceof Uy||(e=lb(e)),e?new fb((e=e.rgb()).r,e.g,e.b,e.opacity):new fb}function hb(e,t,n,r){return 1===arguments.length?db(e):new fb(e,t,n,null==r?1:r)}function fb(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function pb(){return"#"+gb(this.r)+gb(this.g)+gb(this.b)}function mb(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function gb(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function vb(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new wb(e,t,n,r)}function yb(e){if(e instanceof wb)return new wb(e.h,e.s,e.l,e.opacity);if(e instanceof Uy||(e=lb(e)),!e)return new wb;if(e instanceof wb)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n0&&l<1?0:a,new wb(a,s,l,e.opacity)}function bb(e,t,n,r){return 1===arguments.length?yb(e):new wb(e,t,n,null==r?1:r)}function wb(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function xb(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function kb(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}By(Uy,lb,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:ab,formatHex:ab,formatHsl:function(){return yb(this).formatHsl()},formatRgb:sb,toString:sb}),By(fb,hb,Wy(Uy,{brighter:function(e){return e=null==e?Ky:Math.pow(Ky,e),new fb(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?Yy:Math.pow(Yy,e),new fb(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:pb,formatHex:pb,formatRgb:mb,toString:mb})),By(wb,bb,Wy(Uy,{brighter:function(e){return e=null==e?Ky:Math.pow(Ky,e),new wb(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Yy:Math.pow(Yy,e),new wb(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new fb(xb(e>=240?e-240:e+120,i,r),xb(e,i,r),xb(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));const Sb=e=>()=>e;function Cb(e,t){return function(n){return e+n*t}}function jb(e){return 1==(e=+e)?Ob:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Sb(isNaN(t)?n:t)}}function Ob(e,t){var n=t-e;return n?Cb(e,n):Sb(isNaN(e)?t:e)}const Mb=function e(t){var n=jb(t);function r(e,t){var r=n((e=hb(e)).r,(t=hb(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=Ob(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function Eb(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=ro&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:Tb(n,r)})),o=Rb.lastIndex;return ot&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(a[0],a[e-1])),r=e>2?Bb:Fb,i=o=null,d}function d(t){return null==t||isNaN(t=+t)?n:(i||(i=r(a.map(e),s,l)))(e(c(t)))}return d.invert=function(n){return c(t((o||(o=r(s,a.map(e),Tb)))(n)))},d.domain=function(e){return arguments.length?(a=Array.from(e,Nb),u()):a.slice()},d.range=function(e){return arguments.length?(s=Array.from(e),u()):s.slice()},d.rangeRound=function(e){return s=Array.from(e),l=$b,u()},d.clamp=function(e){return arguments.length?(c=!!e||Hb,u()):c!==Hb},d.interpolate=function(e){return arguments.length?(l=e,u()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}function Yb(){return Ub()(Hb,Hb)}function Kb(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function qb(e){return new Date(e)}function Gb(e){return e instanceof Date?+e:+new Date(+e)}function Xb(e,t,n,r,i,o,a,s,l,c){var u=Yb(),d=u.invert,h=u.domain,f=c(".%L"),p=c(":%S"),m=c("%I:%M"),g=c("%I %p"),v=c("%a %d"),y=c("%b %d"),b=c("%B"),w=c("%Y");function x(e){return(l(e)sw?Math.pow(e,1/3):e/aw+iw}function hw(e){return e>ow?e*e*e:aw*(e-iw)}function fw(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function pw(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function mw(e){if(e instanceof vw)return new vw(e.h,e.c,e.l,e.opacity);if(e instanceof uw||(e=lw(e)),0===e.a&&0===e.b)return new vw(NaN,0180||n<-180?n-360*Math.round(n/360):n):bw(isNaN(e)?t:e)}function kw(e){return 1==(e=+e)?Sw:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):bw(isNaN(t)?n:t)}}function Sw(e,t){var n=t-e;return n?ww(e,n):bw(isNaN(e)?t:e)}function Cw(e){return function(t,n){var r=e((t=gw(t)).h,(n=gw(n)).h),i=Sw(t.c,n.c),o=Sw(t.l,n.l),a=Sw(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=i(e),t.l=o(e),t.opacity=a(e),t+""}}}By(uw,cw,Wy(Uy,{brighter:function(e){return new uw(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new uw(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new fb(fw(3.1338561*(t=tw*hw(t))-1.6168667*(e=nw*hw(e))-.4906146*(n=rw*hw(n))),fw(-.9787684*t+1.9161415*e+.033454*n),fw(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),By(vw,gw,Wy(Uy,{brighter:function(e){return new vw(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new vw(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return yw(this).rgb()}}));const jw=Cw(xw);var Ow=Cw(Sw);function Mw(e){return function(t,n){var r=e((t=bb(t)).h,(n=bb(n)).h),i=Sw(t.s,n.s),o=Sw(t.l,n.l),a=Sw(t.opacity,n.opacity);return function(e){return t.h=r(e),t.s=i(e),t.l=o(e),t.opacity=a(e),t+""}}}const Ew=Mw(xw);var Pw=Mw(Sw),Aw=-.14861,Tw=1.78277,_w=-.29227,Dw=-.90649,Rw=1.97294,zw=Rw*Dw,Iw=Rw*Tw,Lw=Tw*_w-Dw*Aw;function $w(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Nw)return new Nw(e.h,e.s,e.l,e.opacity);e instanceof fb||(e=db(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(Lw*r+zw*t-Iw*n)/(Lw+zw-Iw),o=r-i,a=(Rw*(n-i)-_w*o)/Dw,s=Math.sqrt(a*a+o*o)/(Rw*i*(1-i)),l=s?Math.atan2(a,o)*ew-120:NaN;return new Nw(l<0?l+360:l,s,i,e.opacity)}(e):new Nw(e,t,n,null==r?1:r)}function Nw(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Zw(e){return function t(n){function r(t,r){var i=e((t=$w(t)).h,(r=$w(r)).h),o=Sw(t.s,r.s),a=Sw(t.l,r.l),s=Sw(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}By(Nw,$w,Wy(Uy,{brighter:function(e){return e=null==e?Ky:Math.pow(Ky,e),new Nw(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Yy:Math.pow(Yy,e),new Nw(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*Jb,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new fb(255*(t+n*(Aw*r+Tw*i)),255*(t+n*(_w*r+Dw*i)),255*(t+n*(Rw*r)),this.opacity)}}));const Hw=Zw(xw);var Vw=Zw(Sw);function Fw(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}const Bw=function e(t){var n=kw(t);function r(e,t){var r=n((e=hb(e)).r,(t=hb(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=Sw(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function Ww(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r=0?(o>=rx?10:o>=ix?5:o>=ox?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=rx?10:o>=ix?5:o>=ox?2:1)}var sx,lx=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function cx(e){if(!(t=lx.exec(e)))throw new Error("invalid format: "+e);var t;return new ux({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function ux(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function dx(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function hx(e){return(e=dx(Math.abs(e)))?e[1]:NaN}function fx(e,t){var n=dx(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}cx.prototype=ux.prototype,ux.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const px={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>fx(100*e,t),r:fx,s:function(e,t){var n=dx(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(sx=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+dx(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function mx(e){return e}var gx,vx,yx,bx=Array.prototype.map,wx=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function xx(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?mx:(t=bx.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?mx:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(bx.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=cx(e)).fill,n=e.align,d=e.sign,h=e.symbol,f=e.zero,p=e.width,m=e.comma,g=e.precision,v=e.trim,y=e.type;"n"===y?(m=!0,y="g"):px[y]||(void 0===g&&(g=12),v=!0,y="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var b="$"===h?i:"#"===h&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",w="$"===h?o:/[%p]/.test(y)?l:"",x=px[y],k=/[defgprs%]/.test(y);function S(e){var i,o,l,h=b,S=w;if("c"===y)S=x(e)+S,e="";else{var C=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:x(Math.abs(e),g),v&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),C&&0==+e&&"+"!==d&&(C=!1),h=(C?"("===d?d:c:"-"===d||"("===d?"":d)+h,S=("s"===y?wx[8+sx/3]:"")+S+(C&&"("===d?")":""),k)for(i=-1,o=e.length;++i(l=e.charCodeAt(i))||l>57){S=(46===l?a+e.slice(i+1):e.slice(i))+S,e=e.slice(0,i);break}}m&&!f&&(e=r(e,1/0));var j=h.length+e.length+S.length,O=j>1)+h+e+S+O.slice(j);break;default:e=O+h+e+S}return s(e)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),S.toString=function(){return e+""},S}return{format:d,formatPrefix:function(e,t){var n=d(((e=cx(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(hx(t)/3))),i=Math.pow(10,-r),o=wx[8+r/3];return function(e){return n(i*e)+o}}}}function kx(e,t,n,r){var i,o=function(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=rx?i*=10:o>=ix?i*=5:o>=ox&&(i*=2),t0)return[e];if((r=t0){let n=Math.round(e/a),r=Math.round(t/a);for(n*at&&--r,o=new Array(i=r-n+1);++st&&--r,o=new Array(i=r-n+1);++s0;){if((i=ax(l,c,n))===r)return o[a]=l,o[s]=c,t(o);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i}r=i}return e},e}function Cx(){var e=Yb();return e.copy=function(){return Wb(e,Cx())},Kb.apply(e,arguments),Sx(e)}!function(e){gx=xx(e),vx=gx.format,yx=gx.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});var jx=ex("domain","range","reverse","clamp","interpolate","nice","round","zero");function Ox(e){return jx(Cx(),e)}var Mx=n(3074),Ex=n.n(Mx),Px=["top","left","transform","className","children","innerRef"];function Ax(){return Ax=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,Px);return s.createElement("g",Ax({ref:c,className:Fm()("visx-group",a),transform:o||"translate("+i+", "+n+")"},u),l)}function _x(e,t){var n=e;return"ticks"in n?n.ticks(t):n.domain().filter((function(e,n,r){return null==t||r.length<=t||n%Math.round((r.length-1)/t)==0}))}function Dx(e){if(("function"==typeof e||"object"==typeof e&&e)&&"valueOf"in e){var t=e.valueOf();if("number"==typeof t)return t}return e}Tx.propTypes={top:Ex().number,left:Ex().number,transform:Ex().string,className:Ex().string,children:Ex().node,innerRef:Ex().oneOfType([Ex().string,Ex().func,Ex().object])};var Rx=["from","to","fill","className","innerRef"];function zx(){return zx=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,Rx),d=n.x===i.x||n.y===i.y;return s.createElement("line",zx({ref:c,className:Fm()("visx-line",l),x1:n.x,y1:n.y,x2:i.x,y2:i.y,fill:a,shapeRendering:d?"crispEdges":"auto"},u))}var Lx=n(364),$x=n.n(Lx),Nx=n(104),Zx="__react_svg_text_measurement_id";const Hx=n.n(Nx)()((function(e,t){try{var n=document.getElementById(Zx);if(!n){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("aria-hidden","true"),r.style.width="0",r.style.height="0",r.style.position="absolute",r.style.top="-100%",r.style.left="-100%",(n=document.createElementNS("http://www.w3.org/2000/svg","text")).setAttribute("id",Zx),r.appendChild(n),document.body.appendChild(r)}return Object.assign(n.style,t),n.textContent=e,n.getComputedTextLength()}catch(e){return null}}),(function(e,t){return e+"_"+JSON.stringify(t)}));var Vx=["verticalAnchor","scaleToFit","angle","width","lineHeight","capHeight","children","style"];function Fx(e){return"number"==typeof e}function Bx(e){return"number"==typeof e&&Number.isFinite(e)||"string"==typeof e}function Wx(e){var t=e.verticalAnchor,n=void 0===t?"end":t,r=e.scaleToFit,i=void 0!==r&&r,o=e.angle,a=e.width,l=e.lineHeight,c=void 0===l?"1em":l,u=e.capHeight,d=void 0===u?"0.71em":u,h=e.children,f=e.style,p=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,Vx),m=p.x,g=void 0===m?0:m,v=p.y,y=void 0===v?0:v,b=!Bx(g)||!Bx(y),w=(0,s.useMemo)((function(){return{wordsWithWidth:(null==h?[]:h.toString().split(/(?:(?!\u00A0+)\s+)/)).map((function(e){return{word:e,wordWidth:Hx(e,f)||0}})),spaceWidth:Hx(" ",f)||0}}),[h,f]),x=w.wordsWithWidth,k=w.spaceWidth,S=(0,s.useMemo)((function(){return b?[]:a||i?x.reduce((function(e,t){var n=t.word,r=t.wordWidth,o=e[e.length-1];if(o&&(null==a||i||(o.width||0)+r+k0){var t=S[0].width||1,n="shrink-only"===i?Math.min(a/t,1):a/t,r=n,s=g-n*g,l=y-r*y;e.push("matrix("+n+", 0, 0, "+r+", "+s+", "+l+")")}return o&&e.push("rotate("+o+", "+g+", "+y+")"),e.length>0?e.join(" "):""}),[b,g,y,a,i,S,o]);return{wordsByLines:S,startDy:C,transform:j}}var Ux=["dx","dy","textAnchor","innerRef","innerTextRef","verticalAnchor","angle","lineHeight","scaleToFit","capHeight","width"];function Yx(){return Yx=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,Ux)),f=h.x,p=void 0===f?0:f,m=h.fontSize,g=Wx(e),v=g.wordsByLines,y=g.startDy,b=g.transform;return s.createElement("svg",{ref:l,x:n,y:i,fontSize:m,style:Kx},v.length>0?s.createElement("text",Yx({ref:c,transform:b},h,{textAnchor:a}),v.map((function(e,t){return s.createElement("tspan",{key:t,x:p,dy:0===t?y:d},e.words.join(" "))}))):null)}const Gx={top:"top",left:"left",right:"right",bottom:"bottom"};function Xx(){return Xx=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,sk),E=null!=x?x:function(e){return"tickFormat"in e?e.tickFormat():nk}(w),P=v===Gx.left,A=v===Gx.top,T=A||v===Gx.bottom,_=function(e,t){void 0===t&&(t="center");var n=e;if("start"!==t&&"bandwidth"in n){var r=n.bandwidth();return"center"===t&&(r/=2),n.round()&&(r=Math.round(r)),function(e){var t=n(e);return"number"==typeof t?t+r:t}}return e}(w),D=P||A?-1:1,R=w.range(),z=(void 0===(t=b)&&(t=ak),"number"==typeof t?{start:t,end:t}:ok({start:ak,end:ak},t)),I=ik({x:Number(R[0])+.5-z.start,y:0},T),L=ik({x:Number(R[R.length-1])+.5+z.end,y:0},T),$=(null!=C?C:_x(w,m)).filter((function(e){return!d||0!==e&&"0"!==e})).map((function(e,t){return{value:e,index:t}})),N=$.map((function(e){var t=e.value,n=e.index,r=Dx(_(t));return{value:t,index:n,from:ik({x:r,y:0},T),to:ik({x:r,y:S*D},T),formattedValue:E(t,n,$)}}));return s.createElement(Tx,{className:Fm()("visx-axis",i),top:O,left:f},r(lk({},M,{axisFromPoint:I,axisToPoint:L,hideAxisLine:a,hideTicks:c,hideZero:d,horizontal:T,numTicks:m,orientation:v,rangePadding:b,scale:w,tickFormat:E,tickLength:S,tickPosition:_,tickSign:D,ticks:N})))}var uk=["axisClassName","labelOffset","tickLabelProps","tickLength"];function dk(){return dk=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,uk);return s.createElement(ck,dk({axisClassName:Fm()("visx-axis-right",t),labelOffset:r,orientation:Gx.right,tickLabelProps:o,tickLength:l},c))}var pk=n(5021);function mk(e){return"bandwidth"in e?e.bandwidth():0}var gk=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function vk(){return vk=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,gk),x=null!=b?b:_x(o,g),k=(null!=y?y:0)+mk(o)/2,S=x.map((function(e,t){var n,r=(null!=(n=Dx(o(e)))?n:0)+k;return{index:t,from:new rk({x:0,y:r}),to:new rk({x:a,y:r})}}));return s.createElement(Tx,{className:Fm()("visx-rows",f),top:n,left:i},p?p({lines:S}):S.map((function(e){var t=e.from,n=e.to,r=e.index;return s.createElement(pk.Z,vk({key:"row-line-"+r,from:t,to:n,stroke:c,strokeWidth:d,strokeDasharray:h,style:v},w))})))}yk.propTypes={tickValues:Ex().array,width:Ex().number.isRequired};var bk=["children","id","from","to","x1","y1","x2","y2","fromOffset","fromOpacity","toOffset","toOpacity","rotate","transform","vertical"];function wk(){return wk=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,bk),S=o,C=l,j=a,O=c;return!x||S||C||j||O||(S="0",C="0",j="0",O="1"),s.createElement("defs",null,s.createElement("linearGradient",wk({id:n,x1:S,y1:j,x2:C,y2:O,gradientTransform:y?"rotate("+y+")":b},k),!!t&&t,!t&&s.createElement("stop",{offset:d,stopColor:r,stopOpacity:f}),!t&&s.createElement("stop",{offset:m,stopColor:i,stopOpacity:v})))}function kk(e,t){return null==e||null==t?NaN:et?1:e>=t?0:NaN}function Sk(e,t){return null==e||null==t?NaN:te?1:t>=e?0:NaN}function Ck(e){let t,n,r;function i(e,r,i=0,o=e.length){if(i>>1;n(e[t],r)<0?i=t+1:o=t}while(ikk(e(t),n),r=(t,n)=>e(t)-n):(t=e===kk||e===Sk?e:jk,n=e,r=e),{left:i,center:function(e,t,n=0,o=e.length){const a=i(e,t,n,o-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,i=0,o=e.length){if(i>>1;n(e[t],r)<=0?i=t+1:o=t}while(i0?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:Ok({},Mk);if(function(e){return!!e&&"clientX"in e}(e))return{x:e.clientX,y:e.clientY};var t=null==e?void 0:e.target,n=t&&"getBoundingClientRect"in t?t.getBoundingClientRect():null;return n?{x:n.x+n.width/2,y:n.y+n.height/2}:Ok({},Mk)}(t),i=(n=e)&&(n instanceof SVGElement||"ownerSVGElement"in n)?e.ownerSVGElement:e,o=function(e){return!!e&&"getScreenCTM"in e}(i)?i.getScreenCTM():null;if(function(e){return!!e&&"createSVGPoint"in e}(i)&&o){var a=i.createSVGPoint();return a.x=r.x,a.y=r.y,a=a.matrixTransform(o.inverse()),new rk({x:a.x,y:a.y})}var s=e.getBoundingClientRect();return new rk({x:r.x-s.left-e.clientLeft,y:r.y-s.top-e.clientTop})}function Pk(e,t){if((n=e)&&n instanceof Element&&t)return Ek(e,t);var n;if(function(e){return!!e&&(e instanceof Event||"nativeEvent"in e&&e.nativeEvent instanceof Event)}(e)){var r=e,i=r.target;if(i)return Ek(i,r)}return null}var Ak=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){Tk&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),zk?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Tk&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;Rk.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Lk=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),qk="undefined"!=typeof WeakMap?new WeakMap:new Ak,Gk=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Ik.getInstance(),r=new Kk(t,n,this);qk.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){Gk.prototype[e]=function(){var t;return(t=qk.get(this))[e].apply(t,arguments)}}));const Xk=void 0!==_k.ResizeObserver?_k.ResizeObserver:Gk,Qk=e=>e?{width:e.offsetWidth,height:e.offsetHeight}:{width:0,height:0},Jk=e=>{const[t,n]=(0,s.useState)(Qk(null==e?void 0:e.current)),r=(0,s.useCallback)((()=>n(Qk(e.current))),[e]);return(0,s.useLayoutEffect)((()=>{r();const t=new Xk((()=>{r()}));return e.current&&t.observe(e.current),()=>{t.disconnect()}}),[e.current]),t},eS=(e,t)=>null==e?void 0:e.replace(")",`,${t})`);function tS(e,t){return Object.entries(e).reduce(((e,[n,r])=>Object.assign(Object.assign({},e),{[n]:t(r)})),{})}const nS=r.zo.ul` position: absolute; background: red; margin-left: 6px; @@ -1153,11 +1153,11 @@ border-radius: 3px; padding: 8px; pointer-events: none; -`,yk=r.zo.strong` +`,rS=r.zo.strong` display: block; font-weight: 600; margin-bottom: 4px; -`,bk=r.zo.li` +`,iS=r.zo.li` display: flex; list-style: none; line-height: 21px; @@ -1167,7 +1167,7 @@ font-weight: 600; margin-right: 8px; } -`;const wk=function({colors:e,data:t,x:n,y:r}){const i=(0,s.useMemo)((()=>t?Object.entries(t).filter((([e])=>!["label","data"].includes(e))).map((([e,t])=>({label:e,value:t}))):[]),[t]);return t?(0,a.jsxs)(vk,Object.assign({style:{top:r,left:n}},{children:[t.label?(0,a.jsx)(yk,{children:t.label}):null,i.map((({label:t,value:n},r)=>(0,a.jsx)(bk,{children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("strong",Object.assign({style:{color:e[r]}},{children:t})),n]})},t)))]})):null},xk=({colors:e,data:t,xScale:n,yScale:r})=>{const i=(0,s.useMemo)((()=>(null==t?void 0:t.date)?n(null==t?void 0:t.date):0),[t,n]),o=(0,s.useMemo)((()=>t?Object.entries(t).filter((([e])=>"date"!==e)):[]),[t]);return(0,a.jsx)(a.Fragment,{children:o.map((([t,n],o)=>(0,a.jsx)("circle",{r:3.5,cx:i,cy:r(n),fill:e[o]},t)))})},kk=r.zo.ul` +`;const oS=function({colors:e,data:t,x:n,y:r}){const i=(0,s.useMemo)((()=>t?Object.entries(t).filter((([e])=>!["label","data"].includes(e))).map((([e,t])=>({label:e,value:t}))):[]),[t]);return t?(0,a.jsxs)(nS,Object.assign({style:{top:r,left:n}},{children:[t.label?(0,a.jsx)(rS,{children:t.label}):null,i.map((({label:t,value:n},r)=>(0,a.jsx)(iS,{children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("strong",Object.assign({style:{color:e[r]}},{children:t})),n]})},t)))]})):null},aS=({colors:e,data:t,xScale:n,yScale:r})=>{const i=(0,s.useMemo)((()=>(null==t?void 0:t.date)?n(null==t?void 0:t.date):0),[t,n]),o=(0,s.useMemo)((()=>t?Object.entries(t).filter((([e])=>"date"!==e)):[]),[t]);return(0,a.jsx)(a.Fragment,{children:o.map((([t,n],o)=>(0,a.jsx)("circle",{r:3.5,cx:i,cy:r(n),fill:e[o]},t)))})},sS=r.zo.ul` display: flex; width: 100%; justify-content: center; @@ -1176,7 +1176,7 @@ > * + * { margin-left: 23px; } -`,Sk=r.zo.strong` +`,lS=r.zo.strong` display: inline-flex; align-items: center; white-space: nowrap; @@ -1189,7 +1189,7 @@ background: ${({fill:e})=>e}; margin-right: 8px; } -`,Ck=({colors:e,labels:t})=>(0,a.jsx)(kk,{children:t.map(((t,n)=>(0,a.jsx)(Sk,Object.assign({fill:e[n]},{children:t}),t)))}),jk=e=>{if("number"==typeof e)return`${e}`;const t=new Intl.DateTimeFormat("en",{month:"short"}).format(e);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e)} ${t}`},Ok={trucateAfter:20},Mk=({trucateAfter:e}=Ok)=>t=>!e||t.length=0||(i[n]=e[n]);return i}(t,Pk);return Ek({},e(n),{tooltipOpen:!0})}:{tooltipOpen:!0,tooltipLeft:e.tooltipLeft,tooltipTop:e.tooltipTop,tooltipData:e.tooltipData})}),[r]),o=(0,s.useCallback)((function(){return r({tooltipOpen:!1,tooltipLeft:void 0,tooltipTop:void 0,tooltipData:void 0})}),[r]);return{tooltipOpen:n.tooltipOpen,tooltipLeft:n.tooltipLeft,tooltipTop:n.tooltipTop,tooltipData:n.tooltipData,updateTooltip:r,showTooltip:i,hideTooltip:o}}const Tk=function(e){return Ak(e)};var _k=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie.date)).left,Rk=r.zo.div` +`,cS=({colors:e,labels:t})=>(0,a.jsx)(sS,{children:t.map(((t,n)=>(0,a.jsx)(lS,Object.assign({fill:e[n]},{children:t}),t)))}),uS=e=>{if("number"==typeof e)return`${e}`;const t=new Intl.DateTimeFormat("en",{month:"short"}).format(e);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e)} ${t}`},dS={trucateAfter:20},hS=({trucateAfter:e}=dS)=>t=>!e||t.length=0||(i[n]=e[n]);return i}(t,fS);return pS({},e(n),{tooltipOpen:!0})}:{tooltipOpen:!0,tooltipLeft:e.tooltipLeft,tooltipTop:e.tooltipTop,tooltipData:e.tooltipData})}),[r]),o=(0,s.useCallback)((function(){return r({tooltipOpen:!1,tooltipLeft:void 0,tooltipTop:void 0,tooltipData:void 0})}),[r]);return{tooltipOpen:n.tooltipOpen,tooltipLeft:n.tooltipLeft,tooltipTop:n.tooltipTop,tooltipData:n.tooltipData,updateTooltip:r,showTooltip:i,hideTooltip:o}}const gS=function(e){return mS(e)};var vS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie.date)).left,bS=r.zo.div` width: 100%; height: ${({legend:e})=>e?"calc(100% - 70px)":"100%"}; @@ -1207,9 +1207,9 @@ stroke: ${({theme:e})=>e.color("dark60")}; pointer-events: none; } -`,zk=r.zo.line` +`,wS=r.zo.line` stroke: ${({theme:e})=>e.color("dark60")}; -`,Ik=({data:e,colors:t,xAxisLabel:n=jk,yAxisLabel:r=jk,features:i})=>{const{legend:o,labelCount:l}=i||{},c=(0,s.useRef)(null),{height:u,width:d}=pk(c),{showTooltip:h,hideTooltip:f,tooltipData:p,tooltipLeft:m,tooltipTop:g}=Tk(),[v,y]=(0,s.useState)(null),b=(0,s.useMemo)((()=>e.length?Object.keys(e[0]).filter((e=>"date"!==e)):[]),[e]),w=(0,s.useMemo)((()=>{if(0===l)return[];const t=e.length?e.map((e=>e.date?e.date:0)):[];if(l){const e=Math.ceil(t.length/(l-1));return t.filter(((n,r)=>0===r||r===t.length-1||(r+1)%e==0))}return t}),[e,l]),[x,k]=(0,s.useMemo)((()=>{const t=e.length?e.map((e=>e.date?e.date.valueOf():0)):[],n=e.reduce(((e,t)=>{const n=Object.entries(t).filter((([e])=>"date"!==e)).map((([,e])=>e)),r=Math.max(...n);return r>e?r:e}),0);return[yw({range:[40,d-80],domain:[Math.min(...t),Math.max(...t)]}),Vw({range:[u-30,10],domain:[0,n],nice:!0})]}),[e,d,u]),S=(0,s.useCallback)((e=>{const t=Bx(e)||{x:20,y:0};y(t)}),[y]),C=(0,s.useCallback)((()=>{y(null)}),[y]);return(0,s.useEffect)((()=>{if(!v)return void(p&&f());const{x:t,y:i}=v,o=x.invert(t),a=Dk(e,o,1,e.length-1),s=e[a-1],l=e[a];if(null==s?void 0:s.date){let e=s;if((null==l?void 0:l.date)&&(e=Math.abs(o.valueOf()-s.date.valueOf())>Math.abs(o.valueOf()-l.date.valueOf())?l:s),e.date){const{date:t}=e,o=_k(e,["date"]);h({tooltipData:Object.assign({label:n(t),data:e},gk(o,r)),tooltipLeft:x(e.date),tooltipTop:i})}}}),[e,v,h,k,x]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(Rk,Object.assign({ref:c,legend:o},{children:[(0,a.jsxs)("svg",Object.assign({width:"100%",height:"100%"},{children:[(0,a.jsx)(Dx,{left:0,scale:k,width:d-45,className:"grid",numTicks:6}),(0,a.jsx)(Px,{scale:k,hideAxisLine:!0,hideTicks:!0,left:d-40,tickFormat:r||jk,numTicks:6,axisClassName:"axis"}),(0,a.jsx)(Cx,{scale:x,top:u-24,tickValues:w,hideAxisLine:!0,hideTicks:!0,tickFormat:n||jk,axisClassName:"axis"}),t.map(((e,t)=>(0,a.jsx)(Ix,{id:`gradient-${t}`,from:mk(e,.1),to:mk(e,0)},e))),b.map(((n,r)=>(0,a.jsxs)(s.Fragment,{children:[(0,a.jsx)(Im,{fill:`url('#gradient-${r}')`,data:e,x:e=>x(e.date||0),y:e=>{var t;return null!==(t=k(e[n]))&&void 0!==t?t:0},yScale:k},n),(0,a.jsx)(Nm,{stroke:t[r],strokeWidth:1.5,data:e,x:e=>x(e.date||0),y:e=>{var t;return null!==(t=k(e[n]))&&void 0!==t?t:0}})]},n))),p&&(0,a.jsx)(zk,{x1:m,strokeDasharray:"4",y1:10,x2:m,y2:u-30}),(0,a.jsx)(xk,{colors:t,data:null==p?void 0:p.data,xScale:x,yScale:k}),(0,a.jsx)("rect",{width:"calc(100% - 120px)",height:"calc(100% - 40px)",onTouchStart:S,onTouchMove:S,onMouseMove:S,onMouseLeave:C,fill:"transparent",x:40,y:10})]})),(0,a.jsx)(wk,{x:m,y:g,data:p,colors:t})]})),(0,a.jsx)(Ck,{colors:t,labels:b})]})};var Lk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie.date)).left,Fk=r.zo.div` +`,xS=({data:e,colors:t,xAxisLabel:n=uS,yAxisLabel:r=uS,features:i})=>{const{legend:o,labelCount:l}=i||{},c=(0,s.useRef)(null),{height:u,width:d}=Jk(c),{showTooltip:h,hideTooltip:f,tooltipData:p,tooltipLeft:m,tooltipTop:g}=gS(),[v,y]=(0,s.useState)(null),b=(0,s.useMemo)((()=>e.length?Object.keys(e[0]).filter((e=>"date"!==e)):[]),[e]),w=(0,s.useMemo)((()=>{if(0===l)return[];const t=e.length?e.map((e=>e.date?e.date:0)):[];if(l){const e=Math.ceil(t.length/(l-1));return t.filter(((n,r)=>0===r||r===t.length-1||(r+1)%e==0))}return t}),[e,l]),[x,k]=(0,s.useMemo)((()=>{const t=e.length?e.map((e=>e.date?e.date.valueOf():0)):[],n=e.reduce(((e,t)=>{const n=Object.entries(t).filter((([e])=>"date"!==e)).map((([,e])=>e)),r=Math.max(...n);return r>e?r:e}),0);return[nx({range:[40,d-80],domain:[Math.min(...t),Math.max(...t)]}),Ox({range:[u-30,10],domain:[0,n],nice:!0})]}),[e,d,u]),S=(0,s.useCallback)((e=>{const t=Pk(e)||{x:20,y:0};y(t)}),[y]),C=(0,s.useCallback)((()=>{y(null)}),[y]);return(0,s.useEffect)((()=>{if(!v)return void(p&&f());const{x:t,y:i}=v,o=x.invert(t),a=yS(e,o,1,e.length-1),s=e[a-1],l=e[a];if(null==s?void 0:s.date){let e=s;if((null==l?void 0:l.date)&&(e=Math.abs(o.valueOf()-s.date.valueOf())>Math.abs(o.valueOf()-l.date.valueOf())?l:s),e.date){const{date:t}=e,o=vS(e,["date"]);h({tooltipData:Object.assign({label:n(t),data:e},tS(o,r)),tooltipLeft:x(e.date),tooltipTop:i})}}}),[e,v,h,k,x]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(bS,Object.assign({ref:c,legend:o},{children:[(0,a.jsxs)("svg",Object.assign({width:"100%",height:"100%"},{children:[(0,a.jsx)(yk,{left:0,scale:k,width:d-45,className:"grid",numTicks:6}),(0,a.jsx)(fk,{scale:k,hideAxisLine:!0,hideTicks:!0,left:d-40,tickFormat:r||uS,numTicks:6,axisClassName:"axis"}),(0,a.jsx)(ck,{scale:x,top:u-24,tickValues:w,hideAxisLine:!0,hideTicks:!0,tickFormat:n||uS,axisClassName:"axis"}),t.map(((e,t)=>(0,a.jsx)(xk,{id:`gradient-${t}`,from:eS(e,.1),to:eS(e,0)},e))),b.map(((n,r)=>(0,a.jsxs)(s.Fragment,{children:[(0,a.jsx)(sg,{fill:`url('#gradient-${r}')`,data:e,x:e=>x(e.date||0),y:e=>{var t;return null!==(t=k(e[n]))&&void 0!==t?t:0},yScale:k},n),(0,a.jsx)(ug,{stroke:t[r],strokeWidth:1.5,data:e,x:e=>x(e.date||0),y:e=>{var t;return null!==(t=k(e[n]))&&void 0!==t?t:0}})]},n))),p&&(0,a.jsx)(wS,{x1:m,strokeDasharray:"4",y1:10,x2:m,y2:u-30}),(0,a.jsx)(aS,{colors:t,data:null==p?void 0:p.data,xScale:x,yScale:k}),(0,a.jsx)("rect",{width:"calc(100% - 120px)",height:"calc(100% - 40px)",onTouchStart:S,onTouchMove:S,onMouseMove:S,onMouseLeave:C,fill:"transparent",x:40,y:10})]})),(0,a.jsx)(oS,{x:m,y:g,data:p,colors:t})]})),(0,a.jsx)(cS,{colors:t,labels:b})]})};var kS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie.date)).left,ES=r.zo.div` width: 100%; height: ${({height:e})=>e?`${e}px`:"100%"}; @@ -1227,9 +1227,9 @@ stroke: ${({theme:e})=>e.color("dark60")}; pointer-events: none; } -`,Bk=r.zo.line` +`,PS=r.zo.line` stroke: ${({theme:e})=>e.color("dark60")}; -`,Wk=({data:e,colors:t,xAxisLabel:n=jk,yAxisLabel:i=jk,features:o={}})=>{const{showGradient:l,highlightColors:c,highlightSlice:u}=o,d=(0,s.useContext)(r.Ni),h=(0,s.useRef)(null),{height:f,width:p}=pk(h),{showTooltip:m,hideTooltip:g,tooltipData:v,tooltipLeft:y,tooltipTop:b}=Tk(),[w,x]=(0,s.useState)(null),k=(0,s.useMemo)((()=>e.length?Object.keys(e[0]).filter((e=>"date"!==e)):[]),[e]),[S,C]=(0,s.useMemo)((()=>{const t=e.length?e.map((e=>e.date?e.date.valueOf():0)):[],n=e.reduce(((e,t)=>{const n=Object.entries(t).filter((([e])=>"date"!==e)).map((([,e])=>e)),r=Math.max(...n);return r>e?r:e}),0);return[yw({range:[Zk,p-Hk],domain:[Math.min(...t),Math.max(...t)]}),Vw({range:[f-Nk,$k],domain:[0,n],nice:!0})]}),[e,p,f]),j=(0,s.useCallback)((e=>{const t=Bx(e)||{x:20,y:0};x(t)}),[x]),O=(0,s.useCallback)((()=>{x(null)}),[x]);(0,s.useEffect)((()=>{if(!w)return void(v&&g());const{x:t,y:r}=w,o=S.invert(t),a=Vk(e,o,1,e.length-1),s=e[a-1],l=e[a];if((null==s?void 0:s.date)||(null==l?void 0:l.date)){let e;if(e=(null==s?void 0:s.date)&&(null==l?void 0:l.date)?Math.abs(o.valueOf()-s.date.valueOf())>Math.abs(o.valueOf()-l.date.valueOf())?l:s:(null==s?void 0:s.date)?s:l,e.date){const{date:t}=e,o=Lk(e,["date"]);m({tooltipData:Object.assign({label:n(t),data:e},gk(o,i)),tooltipLeft:S(e.date),tooltipTop:r})}}}),[e,w,m,C,S]);const M=u&&e.slice(...u),P=c&&d.color(...c)({theme:d});return(0,a.jsxs)(Fk,Object.assign({ref:h},{children:[(0,a.jsxs)("svg",Object.assign({width:"100%",height:"100%"},{children:[t.map(((e,t)=>(0,a.jsx)(Ix,{id:`gradient-${t}`,from:mk(e,.1),to:mk(e,0)},e))),k.map(((n,r)=>(0,a.jsxs)(s.Fragment,{children:[l?(0,a.jsx)(Im,{fill:`url('#gradient-${r}')`,data:e,x:e=>S(e.date||0),y:e=>{var t;return null!==(t=C(e[n]))&&void 0!==t?t:0},yScale:C},n):null,(0,a.jsx)(Nm,{stroke:t[r],strokeWidth:1.5,data:e,x:e=>S(e.date||0),y:e=>{var t;return null!==(t=C(e[n]))&&void 0!==t?t:0}}),M?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Nm,{stroke:P,strokeWidth:1.5,data:M,x:e=>S(e.date||0),y:e=>{var t;return null!==(t=C(e[n]))&&void 0!==t?t:0}}),(0,a.jsx)(xk,{colors:P?[P]:[],data:M[M.length-1],xScale:S,yScale:C})]}):null]},n))),v&&(0,a.jsx)(Bk,{x1:y,strokeDasharray:"4",y1:10,x2:y,y2:f-30}),(0,a.jsx)(xk,{colors:t,data:null==v?void 0:v.data,xScale:S,yScale:C}),(0,a.jsx)("rect",{width:"100%",height:"100%",onTouchStart:j,onTouchMove:j,onMouseMove:j,onMouseLeave:O,fill:"transparent",x:0,y:0})]})),(0,a.jsx)(wk,{x:y,y:b,data:v,colors:t})]}))};var Uk=["axisClassName","labelOffset","tickLabelProps","tickLength"];function Yk(){return Yk=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,Uk);return s.createElement(Cx,Yk({axisClassName:ym()("visx-axis-left",t),labelOffset:r,orientation:hx.left,tickLabelProps:o,tickLength:l},c))}var Kk=["axisClassName","labelOffset","tickLabelProps","tickLength"];function Xk(){return Xk=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,Kk);return s.createElement(Cx,Xk({axisClassName:ym()("visx-axis-bottom",t),labelOffset:r,orientation:hx.bottom,tickLabelProps:o,tickLength:l},c))}var eS=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function tS(){return tS=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eS),x=null!=y?y:qw(o,m),k=(null!=v?v:0)+Ax(o)/2,S=x.map((function(e,t){var n,r=(null!=(n=Gw(o(e)))?n:0)+k;return{index:t,from:new wx({x:r,y:0}),to:new wx({x:r,y:a})}}));return s.createElement(Yw,{className:ym()("visx-columns",f),top:n,left:i},b?b({lines:S}):S.map((function(e){var t=e.from,n=e.to,r=e.index;return s.createElement(Ex.Z,tS({key:"column-line-"+r,from:t,to:n,stroke:c,strokeWidth:d,strokeDasharray:h,style:g},w))})))}function rS(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r=0||(i[n]=e[n]);return i}(e,uS);return s.createElement("rect",dS({ref:n,className:ym()("visx-bar",t)},r))}var fS=["data","className","top","left","x","y0","y0Scale","y1Scale","xScale","color","keys","width","children"];function pS(){return pS=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,fS),g=function(e){if("bandwidth"in e)return e.bandwidth();var t=e.range(),n=e.domain();return Math.abs(t[t.length-1]-t[0])/n.length}(u),v=t.map((function(e,t){return{index:t,y0:c(l(e))||0,bars:f.map((function(t,n){var r=e[t];return{index:n,key:t,value:r,height:g,x:a(r)||0,y:u(t)||0,color:h(t,n),width:d(r)||0}}))}}));return p?s.createElement(s.Fragment,null,p(v)):s.createElement(Yw,{className:ym()("visx-bar-group-horizontal",n),top:r,left:i},v.map((function(e){return s.createElement(Yw,{key:"bar-group-"+e.index+"-"+e.y0,top:e.y0},e.bars.map((function(t){return s.createElement(hS,pS({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},m))})))})))}var gS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{const{showGradient:l,highlightColors:c,highlightSlice:u}=o,d=(0,s.useContext)(r.Ni),h=(0,s.useRef)(null),{height:f,width:p}=Jk(h),{showTooltip:m,hideTooltip:g,tooltipData:v,tooltipLeft:y,tooltipTop:b}=gS(),[w,x]=(0,s.useState)(null),k=(0,s.useMemo)((()=>e.length?Object.keys(e[0]).filter((e=>"date"!==e)):[]),[e]),[S,C]=(0,s.useMemo)((()=>{const t=e.length?e.map((e=>e.date?e.date.valueOf():0)):[],n=e.reduce(((e,t)=>{const n=Object.entries(t).filter((([e])=>"date"!==e)).map((([,e])=>e)),r=Math.max(...n);return r>e?r:e}),0);return[nx({range:[jS,p-OS],domain:[Math.min(...t),Math.max(...t)]}),Ox({range:[f-CS,SS],domain:[0,n],nice:!0})]}),[e,p,f]),j=(0,s.useCallback)((e=>{const t=Pk(e)||{x:20,y:0};x(t)}),[x]),O=(0,s.useCallback)((()=>{x(null)}),[x]);(0,s.useEffect)((()=>{if(!w)return void(v&&g());const{x:t,y:r}=w,o=S.invert(t),a=MS(e,o,1,e.length-1),s=e[a-1],l=e[a];if((null==s?void 0:s.date)||(null==l?void 0:l.date)){let e;if(e=(null==s?void 0:s.date)&&(null==l?void 0:l.date)?Math.abs(o.valueOf()-s.date.valueOf())>Math.abs(o.valueOf()-l.date.valueOf())?l:s:(null==s?void 0:s.date)?s:l,e.date){const{date:t}=e,o=kS(e,["date"]);m({tooltipData:Object.assign({label:n(t),data:e},tS(o,i)),tooltipLeft:S(e.date),tooltipTop:r})}}}),[e,w,m,C,S]);const M=u&&e.slice(...u),E=c&&d.color(...c)({theme:d});return(0,a.jsxs)(ES,Object.assign({ref:h},{children:[(0,a.jsxs)("svg",Object.assign({width:"100%",height:"100%"},{children:[t.map(((e,t)=>(0,a.jsx)(xk,{id:`gradient-${t}`,from:eS(e,.1),to:eS(e,0)},e))),k.map(((n,r)=>(0,a.jsxs)(s.Fragment,{children:[l?(0,a.jsx)(sg,{fill:`url('#gradient-${r}')`,data:e,x:e=>S(e.date||0),y:e=>{var t;return null!==(t=C(e[n]))&&void 0!==t?t:0},yScale:C},n):null,(0,a.jsx)(ug,{stroke:t[r],strokeWidth:1.5,data:e,x:e=>S(e.date||0),y:e=>{var t;return null!==(t=C(e[n]))&&void 0!==t?t:0}}),M?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ug,{stroke:E,strokeWidth:1.5,data:M,x:e=>S(e.date||0),y:e=>{var t;return null!==(t=C(e[n]))&&void 0!==t?t:0}}),(0,a.jsx)(aS,{colors:E?[E]:[],data:M[M.length-1],xScale:S,yScale:C})]}):null]},n))),v&&(0,a.jsx)(PS,{x1:y,strokeDasharray:"4",y1:10,x2:y,y2:f-30}),(0,a.jsx)(aS,{colors:t,data:null==v?void 0:v.data,xScale:S,yScale:C}),(0,a.jsx)("rect",{width:"100%",height:"100%",onTouchStart:j,onTouchMove:j,onMouseMove:j,onMouseLeave:O,fill:"transparent",x:0,y:0})]})),(0,a.jsx)(oS,{x:y,y:b,data:v,colors:t})]}))};var TS=["axisClassName","labelOffset","tickLabelProps","tickLength"];function _S(){return _S=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,TS);return s.createElement(ck,_S({axisClassName:Fm()("visx-axis-left",t),labelOffset:r,orientation:Gx.left,tickLabelProps:o,tickLength:l},c))}var zS=["axisClassName","labelOffset","tickLabelProps","tickLength"];function IS(){return IS=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,zS);return s.createElement(ck,IS({axisClassName:Fm()("visx-axis-bottom",t),labelOffset:r,orientation:Gx.bottom,tickLabelProps:o,tickLength:l},c))}var NS=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function ZS(){return ZS=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,NS),x=null!=y?y:_x(o,m),k=(null!=v?v:0)+mk(o)/2,S=x.map((function(e,t){var n,r=(null!=(n=Dx(o(e)))?n:0)+k;return{index:t,from:new rk({x:r,y:0}),to:new rk({x:r,y:a})}}));return s.createElement(Tx,{className:Fm()("visx-columns",f),top:n,left:i},b?b({lines:S}):S.map((function(e){var t=e.from,n=e.to,r=e.index;return s.createElement(pk.Z,ZS({key:"column-line-"+r,from:t,to:n,stroke:c,strokeWidth:d,strokeDasharray:h,style:g},w))})))}HS.propTypes={tickValues:Ex().array,height:Ex().number.isRequired};const VS=Symbol("implicit");function FS(){var e=new Map,t=[],n=[],r=VS;function i(i){var o=i+"",a=e.get(o);if(!a){if(r!==VS)return r;e.set(o,a=t.push(i))}return n[(a-1)%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Map;for(const r of n){const n=r+"";e.has(n)||e.set(n,t.push(r))}return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return FS(t,n).unknown(r)},Kb.apply(i,arguments),i}function BS(){var e,t,n=FS().unknown(void 0),r=n.domain,i=n.range,o=0,a=1,s=!1,l=0,c=0,u=.5;function d(){var n=r().length,d=a=0||(i[n]=e[n]);return i}(e,KS);return s.createElement("rect",qS({ref:n,className:Fm()("visx-bar",t)},r))}var XS=["data","className","top","left","x","y0","y0Scale","y1Scale","xScale","color","keys","width","children"];function QS(){return QS=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,XS),g=function(e){if("bandwidth"in e)return e.bandwidth();var t=e.range(),n=e.domain();return Math.abs(t[t.length-1]-t[0])/n.length}(u),v=t.map((function(e,t){return{index:t,y0:c(l(e))||0,bars:f.map((function(t,n){var r=e[t];return{index:n,key:t,value:r,height:g,x:a(r)||0,y:u(t)||0,color:h(t,n),width:d(r)||0}}))}}));return p?s.createElement(s.Fragment,null,p(v)):s.createElement(Tx,{className:Fm()("visx-bar-group-horizontal",n),top:r,left:i},v.map((function(e){return s.createElement(Tx,{key:"bar-group-"+e.index+"-"+e.y0,top:e.y0},e.bars.map((function(t){return s.createElement(GS,QS({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},m))})))})))}var eC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie?"calc(100% - 70px)":"100%"}; @@ -1247,16 +1247,16 @@ stroke: ${({theme:e})=>e.color("dark60")}; pointer-events: none; } -`,yS={top:20,bottom:25,left:200,right:20},bS=({data:e,colors:t,features:n,xAxisLabel:r=jk,yAxisLabel:i=Mk({trucateAfter:20})})=>{const o=(0,s.useRef)(null),{height:l,width:c}=pk(o),{showTooltip:u,hideTooltip:d,tooltipData:h,tooltipLeft:f,tooltipTop:p}=Tk(),{groups:m=[],legend:g,labelCount:v}=n||{},y=(null==n?void 0:n.margins)?Object.assign(Object.assign({},yS),n.margins):yS,b=(0,s.useMemo)((()=>Array.from(new Set(e.flatMap((e=>Object.keys(e)))))),[e]),w=(0,s.useMemo)((()=>m.map((({label:t},n)=>{var r;const i=null!==(r=e[n])&&void 0!==r?r:{};return Object.assign({label:t},i)}))),[e,m]),[x,k]=(0,s.useMemo)((()=>{const t=e.flatMap((e=>Object.values(e).map(Number))),n=Math.min(...t,0),r=Math.max(...t,0);return[n,Math.max(r,n+1)]}),[e]),S=(0,s.useMemo)((()=>lS({domain:m.map((({label:e})=>e)),range:[y.top,l-y.top-y.bottom]})),[l,m]),C=(0,s.useMemo)((()=>Vw({domain:[x,k],range:[0,c-y.left-y.right],nice:!0})),[c,x,k]),j=(0,s.useMemo)((()=>function(e){return cS(oS(),e)}({domain:b,range:t})),[b]),O=(0,s.useMemo)((()=>lS({domain:b,padding:.2,paddingOuter:1,range:[0,S.bandwidth()]})),[b,S]),M=(0,s.useCallback)((e=>t=>{const{x:n,y:i}=Bx(t)||{x:20,y:0},o=w[e],{label:a}=o,s=gS(o,["label"]);u({tooltipData:Object.assign({label:a,data:s},gk(s,r)),tooltipLeft:n,tooltipTop:i})}),[w]),P=(0,s.useCallback)((()=>{d()}),[]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(vS,Object.assign({ref:o,legend:g},{children:[(0,a.jsxs)("svg",Object.assign({width:"100%",height:"100%"},{children:[(0,a.jsx)(Yw,Object.assign({left:y.left,top:y.top},{children:(0,a.jsx)(nS,{className:"grid",scale:C,width:c,height:l-y.top-y.bottom-20})})),(0,a.jsxs)(Yw,Object.assign({left:y.left},{children:[(0,a.jsx)(mS,Object.assign({data:w,height:l,width:c,y0:e=>e.label,y0Scale:S,y1Scale:O,xScale:C,color:j,keys:b},{children:e=>e.map(((e,t)=>{const n=e.bars.find(Boolean),r=n?e.bars[e.bars.length-1]:null;let i=0,o=0;return n&&r&&(i=n.y+e.y0,o=r.y+r.height-n.y),(0,a.jsxs)(s.Fragment,{children:[(0,a.jsx)(Yw,Object.assign({top:e.y0},{children:e.bars.map((t=>(0,a.jsx)(hS,{x:t.x,y:t.y,width:Math.max(t.width,0),height:t.height,fill:t.color},`${e.index}-${t.index}-${t.key}`)))})),(0,a.jsx)(Yw,{children:(0,a.jsx)("rect",{width:Math.max(c-y.left-y.right,0),height:o,onTouchStart:M(t),onTouchMove:M(t),onMouseMove:M(t),onMouseLeave:P,fill:"transparent",x:0,y:i})})]},`bar-group-${e.index}-${e.y0}`)}))})),(0,a.jsx)(Yw,Object.assign({left:-20},{children:(0,a.jsx)(Gk,{scale:S,hideAxisLine:!0,hideTicks:!0,tickFormat:i,axisClassName:"axis",tickLabelProps:()=>({textAnchor:"end",dy:"0.33em"})})})),(0,a.jsx)(Yw,Object.assign({top:l-y.bottom-y.top},{children:(0,a.jsx)(Jk,{scale:C,hideAxisLine:!0,hideTicks:!0,numTicks:v,tickFormat:r,axisClassName:"axis",tickLabelProps:()=>({textAnchor:"middle",fontSize:14,dy:"0.33em"})})}))]}))]})),(0,a.jsx)(wk,{x:f,y:p,data:h,colors:t})]})),g?(0,a.jsx)(Ck,{colors:t,labels:b}):null]})};var wS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{const o=(0,s.useRef)(null),{height:l,width:c}=Jk(o),{showTooltip:u,hideTooltip:d,tooltipData:h,tooltipLeft:f,tooltipTop:p}=gS(),{groups:m=[],legend:g,labelCount:v}=n||{},y=(null==n?void 0:n.margins)?Object.assign(Object.assign({},nC),n.margins):nC,b=(0,s.useMemo)((()=>Array.from(new Set(e.flatMap((e=>Object.keys(e)))))),[e]),w=(0,s.useMemo)((()=>m.map((({label:t},n)=>{var r;const i=null!==(r=e[n])&&void 0!==r?r:{};return Object.assign({label:t},i)}))),[e,m]),[x,k]=(0,s.useMemo)((()=>{const t=e.flatMap((e=>Object.values(e).map(Number))),n=Math.min(...t,0),r=Math.max(...t,0);return[n,Math.max(r,n+1)]}),[e]),S=(0,s.useMemo)((()=>US({domain:m.map((({label:e})=>e)),range:[y.top,l-y.top-y.bottom]})),[l,m]),C=(0,s.useMemo)((()=>Ox({domain:[x,k],range:[0,c-y.left-y.right],nice:!0})),[c,x,k]),j=(0,s.useMemo)((()=>function(e){return YS(FS(),e)}({domain:b,range:t})),[b]),O=(0,s.useMemo)((()=>US({domain:b,padding:.2,paddingOuter:1,range:[0,S.bandwidth()]})),[b,S]),M=(0,s.useCallback)((e=>t=>{const{x:n,y:i}=Pk(t)||{x:20,y:0},o=w[e],{label:a}=o,s=eC(o,["label"]);u({tooltipData:Object.assign({label:a,data:s},tS(s,r)),tooltipLeft:n,tooltipTop:i})}),[w]),E=(0,s.useCallback)((()=>{d()}),[]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(tC,Object.assign({ref:o,legend:g},{children:[(0,a.jsxs)("svg",Object.assign({width:"100%",height:"100%"},{children:[(0,a.jsx)(Tx,Object.assign({left:y.left,top:y.top},{children:(0,a.jsx)(HS,{className:"grid",scale:C,width:c,height:l-y.top-y.bottom-20})})),(0,a.jsxs)(Tx,Object.assign({left:y.left},{children:[(0,a.jsx)(JS,Object.assign({data:w,height:l,width:c,y0:e=>e.label,y0Scale:S,y1Scale:O,xScale:C,color:j,keys:b},{children:e=>e.map(((e,t)=>{const n=e.bars.find(Boolean),r=n?e.bars[e.bars.length-1]:null;let i=0,o=0;return n&&r&&(i=n.y+e.y0,o=r.y+r.height-n.y),(0,a.jsxs)(s.Fragment,{children:[(0,a.jsx)(Tx,Object.assign({top:e.y0},{children:e.bars.map((t=>(0,a.jsx)(GS,{x:t.x,y:t.y,width:Math.max(t.width,0),height:t.height,fill:t.color},`${e.index}-${t.index}-${t.key}`)))})),(0,a.jsx)(Tx,{children:(0,a.jsx)("rect",{width:Math.max(c-y.left-y.right,0),height:o,onTouchStart:M(t),onTouchMove:M(t),onMouseMove:M(t),onMouseLeave:E,fill:"transparent",x:0,y:i})})]},`bar-group-${e.index}-${e.y0}`)}))})),(0,a.jsx)(Tx,Object.assign({left:-20},{children:(0,a.jsx)(RS,{scale:S,hideAxisLine:!0,hideTicks:!0,tickFormat:i,axisClassName:"axis",tickLabelProps:()=>({textAnchor:"end",dy:"0.33em"})})})),(0,a.jsx)(Tx,Object.assign({top:l-y.bottom-y.top},{children:(0,a.jsx)($S,{scale:C,hideAxisLine:!0,hideTicks:!0,numTicks:v,tickFormat:r,axisClassName:"axis",tickLabelProps:()=>({textAnchor:"middle",fontSize:14,dy:"0.33em"})})}))]}))]})),(0,a.jsx)(oS,{x:f,y:p,data:h,colors:t})]})),g?(0,a.jsx)(cS,{colors:t,labels:b}):null]})};var iC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie.fontWeights.semibold}; margin-bottom: 24px; -`,CS=e=>{var{data:t,fills:n,height:i,labels:o,type:l,width:c,features:u,xAxisLabel:d,yAxisLabel:h,title:f}=e,p=wS(e,["data","fills","height","labels","type","width","features","xAxisLabel","yAxisLabel","title"]);const{colors:m}=(0,s.useContext)(r.Ni),g=(0,s.useMemo)((()=>(n||["yellow30","purple30","red50","teal30"]).map((e=>m[e]))),[n,m]),y=(0,s.useMemo)((()=>xS[l]),[l]);return(0,a.jsxs)(a.Fragment,{children:[f&&(0,a.jsx)(SS,{children:f}),(0,a.jsx)(v,Object.assign({height:i,width:c||"100%"},p,{children:(0,a.jsx)(kS,{children:(0,a.jsx)(y,{data:t,colors:g,labels:o||!1,features:u,xAxisLabel:d,yAxisLabel:h})})}))]})};CS.defaultProps={type:"gauge"};const jS=CS;var OS=n(339),MS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{data:t,fills:n,height:i,labels:o,type:l,width:c,features:u,xAxisLabel:d,yAxisLabel:h,title:f}=e,p=iC(e,["data","fills","height","labels","type","width","features","xAxisLabel","yAxisLabel","title"]);const{colors:m}=(0,s.useContext)(r.Ni),g=(0,s.useMemo)((()=>(n||["yellow30","purple30","red50","teal30"]).map((e=>m[e]))),[n,m]),y=(0,s.useMemo)((()=>oC[l]),[l]);return(0,a.jsxs)(a.Fragment,{children:[f&&(0,a.jsx)(sC,{children:f}),(0,a.jsx)(v,Object.assign({height:i,width:c||"100%"},p,{children:(0,a.jsx)(aC,{children:(0,a.jsx)(y,{data:t,colors:g,labels:o||!1,features:u,xAxisLabel:d,yAxisLabel:h})})}))]})};lC.defaultProps={type:"gauge"};const cC=lC;var uC=n(339),dC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie.color("dark60","light70")}; ${({orientation:e})=>"horizontal"===e?"height: 1px":"width: 1px"}; @@ -1265,7 +1265,7 @@ &:last-child { display: none; } -`,ES=r.zo.span` +`,fC=r.zo.span` font-size: ${({theme:e})=>e.fontSizes.$12}; color: ${({theme:e})=>e.color("dark40","light40")}; font-weight: 500; @@ -1285,7 +1285,7 @@ height: 1px; margin-left: 8px; } -`,AS=(0,m.w)(((e,t)=>{var{orientation:n,label:r}=e,i=MS(e,["orientation","label"]);return void 0===r?(0,a.jsx)(PS,Object.assign({ref:t,orientation:n,role:"separator"},i)):(0,a.jsx)(ES,Object.assign({ref:t,role:"separator"},i,{children:r}))}));AS.defaultProps={orientation:"horizontal"};const TS=AS;var _S=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{orientation:n,label:r}=e,i=dC(e,["orientation","label"]);return void 0===r?(0,a.jsx)(hC,Object.assign({ref:t,orientation:n,role:"separator"},i)):(0,a.jsx)(fC,Object.assign({ref:t,role:"separator"},i,{children:r}))}));pC.defaultProps={orientation:"horizontal"};const mC=pC;var gC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie?`${t}px`:"0"}; overflow: hidden; @@ -1296,26 +1296,26 @@ > div { display: block; } -`,RS=e=>{var{children:t,isOpen:n,transitionDuration:r}=e,i=_S(e,["children","isOpen","transitionDuration"]);const o=(0,s.useRef)(null),[l,c]=(0,s.useState)(!0),{height:u}=pk(o);return(0,s.useEffect)((()=>{let e;return n&&l&&c(!1),n||l||(e=window.setTimeout((()=>{c(!0)}),200)),()=>{clearTimeout(e)}}),[n,l,c]),(0,a.jsx)(DS,Object.assign({isOpen:n,height:u,transitionDuration:r},i,{children:(n||!l)&&(0,a.jsx)("div",Object.assign({ref:o},{children:t}))}))};RS.defaultProps={transitionDuration:100};const zS=RS;var IS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{children:t,isOpen:n,transitionDuration:r}=e,i=gC(e,["children","isOpen","transitionDuration"]);const o=(0,s.useRef)(null),[l,c]=(0,s.useState)(!0),{height:u}=Jk(o);return(0,s.useEffect)((()=>{let e;return n&&l&&c(!1),n||l||(e=window.setTimeout((()=>{c(!0)}),200)),()=>{clearTimeout(e)}}),[n,l,c]),(0,a.jsx)(vC,Object.assign({isOpen:n,height:u,transitionDuration:r},i,{children:(n||!l)&&(0,a.jsx)("div",Object.assign({ref:o},{children:t}))}))};yC.defaultProps={transitionDuration:100};const bC=yC;var wC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie.color("dark80","light100")}; border-radius: 2px; list-style: none; ${({theme:e})=>"light"===e.name&&"box-shadow: 0 1px 1px rgba(55, 66, 80, 0.08), 0 0 8px rgba(118, 134, 154, 0.08);"} -`,$S=r.zo.h4` +`,kC=r.zo.h4` max-width: 80%; min-height: 64px; font-size: ${({theme:e})=>e.fontSizes.$16}; font-weight: ${({theme:e})=>e.fontWeights.semibold}; padding: 20px 20px ${({isOpen:e})=>e?"8px":"20px"}; -`,NS=r.zo.img` +`,SC=r.zo.img` width: 100%; height: 100px; object-fit: cover; ${({overlay:e})=>e&&"margin-bottom: 40px"}; opacity: 0.5; -`,ZS=r.zo.img` +`,CC=r.zo.img` position: absolute; height: 80px; width: 80px; @@ -1323,11 +1323,11 @@ top: 60px; border-radius: 16px; object-fit: cover; -`,HS=r.zo.span` +`,jC=r.zo.span` position: absolute; right: 20px; top: 16px; -`,VS=r.zo.div` +`,OC=r.zo.div` display: flex; align-items: center; justify-content: flex-end; @@ -1338,7 +1338,7 @@ > * + * { margin-left: 20px; } -`,FS=r.zo.p` +`,MC=r.zo.p` width: 100%; text-align: center; color: ${({theme:e})=>e.color("dark30")}}; @@ -1348,11 +1348,11 @@ &.loading { color: ${({theme:e})=>e.color("dark20","light30")}}; } -`,BS=r.zo.span` +`,EC=r.zo.span` label { width: 100%; } -`,WS=e=>{var{actions:t,addFieldInputType:n,addFieldLabelText:r,addInputProps:i,cancelActionTitle:o,children:l,disabled:c,disabledTooltip:u,divider:d,dropdown:h,empty:f,emptyText:p,header:m,headerImage:g,overlayImage:y,loading:b,loadingText:w,onAdd:k,panelAction:S,panelActionIcon:C,panelActionTitle:j,panelActionTooltip:O,processingContent:M,setErrors:P,titleId:E,tooltipPosition:A}=e,T=IS(e,["actions","addFieldInputType","addFieldLabelText","addInputProps","cancelActionTitle","children","disabled","disabledTooltip","divider","dropdown","empty","emptyText","header","headerImage","overlayImage","loading","loadingText","onAdd","panelAction","panelActionIcon","panelActionTitle","panelActionTooltip","processingContent","setErrors","titleId","tooltipPosition"]);const[_,D]=(0,s.useState)(!1),R=()=>{D(!_)},z=e=>{k&&k(e),R()},I=e=>{27===e.keyCode&&R()},L=()=>C&&j?(0,a.jsx)(F,Object.assign({variant:g?"ghost":"secondary",onClick:S||R,icon:_?B.Z:C,disabled:c},{children:_?o:j})):C?(0,a.jsx)(F,{variant:g?"ghost":"secondary",onClick:S||R,icon:_?B.Z:C,disabled:c}):j?(0,a.jsx)(F,Object.assign({variant:g?"ghost":"secondary",onClick:S||R,disabled:c},{children:_?o:j})):null,$=f||void 0===l||0===s.Children.count(l),N=b||M;S&&(0,OS.ZK)("@robocorp/ds: Panel `panelAction` prop will be deprecated. Use the `actions` prop instead. See https://design-system.robocorp.com/layout-components/panel"),h&&(0,OS.ZK)("@robocorp/ds: Panel `dropdown` prop will be deprecated. Use the `actions` prop instead. See https://design-system.robocorp.com/layout-components/panel");const Z=t;return(0,a.jsxs)(LS,Object.assign({},T,{children:[(0,a.jsxs)(v,Object.assign({display:"flex"},{children:[void 0!==m&&!g&&(0,a.jsx)($S,Object.assign({id:E,isOpen:_},{children:m})),g&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(NS,{src:g,overlay:!!y,alt:""}),y&&(0,a.jsx)(ZS,{src:y,alt:""})]}),h&&(0,a.jsx)(HS,{children:h}),(k||S)&&(0,a.jsx)(HS,{children:!O||c||_?u&&c&&!_?(0,a.jsx)(Jt,Object.assign({text:u,placement:A,fadeIn:200},{children:L()})):L():(0,a.jsx)(Jt,Object.assign({text:O,placement:A,fadeIn:200},{children:L()}))}),(0,a.jsx)(VS,{children:Z&&(0,a.jsx)(Z,{toggleAdd:R,addOpen:_})})]})),k&&(0,a.jsx)(zS,Object.assign({isOpen:_},{children:(0,a.jsx)(BS,{children:(0,a.jsx)(kn,{onConfirm:z,onKeyDown:I,autoFocus:_,inputType:n,labelText:r,addInputProps:i,setErrors:P})})})),(d||$)&&!N&&!g&&(0,a.jsx)(TS,{}),N&&(0,a.jsx)(x,{}),b||$?(0,a.jsx)(FS,Object.assign({className:b?"loading":""},{children:b?w:p})):l]}))};WS.defaultProps={divider:!0,disabled:!1,loading:!1,processingContent:!1,addFieldInputType:"text",tooltipPosition:"left",loadingText:"Loading...",emptyText:"No data found"};const US=WS,YS=r.zo.footer` +`,PC=e=>{var{actions:t,addFieldInputType:n,addFieldLabelText:r,addInputProps:i,cancelActionTitle:o,children:l,disabled:c,disabledTooltip:u,divider:d,dropdown:h,empty:f,emptyText:p,header:m,headerImage:g,overlayImage:y,loading:b,loadingText:w,onAdd:k,panelAction:S,panelActionIcon:C,panelActionTitle:j,panelActionTooltip:O,processingContent:M,setErrors:E,titleId:P,tooltipPosition:A}=e,T=wC(e,["actions","addFieldInputType","addFieldLabelText","addInputProps","cancelActionTitle","children","disabled","disabledTooltip","divider","dropdown","empty","emptyText","header","headerImage","overlayImage","loading","loadingText","onAdd","panelAction","panelActionIcon","panelActionTitle","panelActionTooltip","processingContent","setErrors","titleId","tooltipPosition"]);const[_,D]=(0,s.useState)(!1),R=()=>{D(!_)},z=e=>{k&&k(e),R()},I=e=>{27===e.keyCode&&R()},L=()=>C&&j?(0,a.jsx)(F,Object.assign({variant:g?"ghost":"secondary",onClick:S||R,icon:_?B.Z:C,disabled:c},{children:_?o:j})):C?(0,a.jsx)(F,{variant:g?"ghost":"secondary",onClick:S||R,icon:_?B.Z:C,disabled:c}):j?(0,a.jsx)(F,Object.assign({variant:g?"ghost":"secondary",onClick:S||R,disabled:c},{children:_?o:j})):null,$=f||void 0===l||0===s.Children.count(l),N=b||M;S&&(0,uC.ZK)("@robocorp/ds: Panel `panelAction` prop will be deprecated. Use the `actions` prop instead. See https://design-system.robocorp.com/layout-components/panel"),h&&(0,uC.ZK)("@robocorp/ds: Panel `dropdown` prop will be deprecated. Use the `actions` prop instead. See https://design-system.robocorp.com/layout-components/panel");const Z=t;return(0,a.jsxs)(xC,Object.assign({},T,{children:[(0,a.jsxs)(v,Object.assign({display:"flex"},{children:[void 0!==m&&!g&&(0,a.jsx)(kC,Object.assign({id:P,isOpen:_},{children:m})),g&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(SC,{src:g,overlay:!!y,alt:""}),y&&(0,a.jsx)(CC,{src:y,alt:""})]}),h&&(0,a.jsx)(jC,{children:h}),(k||S)&&(0,a.jsx)(jC,{children:!O||c||_?u&&c&&!_?(0,a.jsx)(ln,Object.assign({text:u,placement:A,fadeIn:200},{children:L()})):L():(0,a.jsx)(ln,Object.assign({text:O,placement:A,fadeIn:200},{children:L()}))}),(0,a.jsx)(OC,{children:Z&&(0,a.jsx)(Z,{toggleAdd:R,addOpen:_})})]})),k&&(0,a.jsx)(bC,Object.assign({isOpen:_},{children:(0,a.jsx)(EC,{children:(0,a.jsx)(An,{onConfirm:z,onKeyDown:I,autoFocus:_,inputType:n,labelText:r,addInputProps:i,setErrors:E})})})),(d||$)&&!N&&!g&&(0,a.jsx)(mC,{}),N&&(0,a.jsx)(x,{}),b||$?(0,a.jsx)(MC,Object.assign({className:b?"loading":""},{children:b?w:p})):l]}))};PC.defaultProps={divider:!0,disabled:!1,loading:!1,processingContent:!1,addFieldInputType:"text",tooltipPosition:"left",loadingText:"Loading...",emptyText:"No data found"};const AC=PC,TC=r.zo.footer` display: flex; justify-content: flex-end; align-items: center; @@ -1363,38 +1363,38 @@ > * + * { margin-left: 18px; } -`,qS=YS,GS=r.zo.section` +`,_C=TC,DC=r.zo.section` overflow-y: auto; max-height: calc(100vh - 160px); padding: 18px ${({padding:e})=>e}px; -`,KS=r.zo.p` +`,RC=r.zo.p` padding: 8px 18px; line-height: ${({theme:e})=>e.lineHeights.$140}; -`,XS=({children:e,padding:t})=>(0,a.jsx)(GS,Object.assign({className:"dialog-content",padding:t},{children:"string"==typeof e?(0,a.jsx)(KS,{children:e}):e}));XS.defaultProps={padding:20};var QS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i(0,a.jsx)(DC,Object.assign({className:"dialog-content",padding:t},{children:"string"==typeof e?(0,a.jsx)(RC,{children:e}):e}));zC.defaultProps={padding:20};var IC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie.zIndex.dialog}; background: ${({theme:e})=>"light"===e.name?"rgba(91, 105, 123, 0.8)":"rgba(0, 0, 0, 0.6)"}; -`,tC=(0,r.zo)("div").withConfig({shouldForwardProp:o.x})` +`,NC=(0,r.zo)("div").withConfig({shouldForwardProp:o.x})` max-width: calc(100vw - 40px); ${c.bf} -`,nC=(0,m.w)(((e,t)=>{var{children:n,onClose:r,open:i,title:o,headerImage:l,overlayImage:c,trigger:u}=e,d=QS(e,["children","onClose","open","title","headerImage","overlayImage","trigger"]);const{reference:h,floating:f,context:p}=Gn({open:i,onOpenChange:r}),m=q(),g=`${Ln()}-label`,v=(0,s.useCallback)((e=>{e.target===e.currentTarget&&r()}),[r]),{getReferenceProps:y,getFloatingProps:b}=Xn([mr(p),pr(p),vr(p,{bubbles:!1,outsidePointerDown:!1})]),w=(0,s.useCallback)((()=>(0,a.jsx)(F,{"aria-label":"Close",icon:B.Z,onClick:r,variant:"secondary"})),[r]);return(0,a.jsxs)(a.Fragment,{children:[(0,s.isValidElement)(u)&&(0,s.cloneElement)(u,y(Object.assign({ref:h},u.props))),(0,a.jsx)(xt.Fade,Object.assign({in:i,timeout:{enter:120,exit:80}},{children:(0,a.jsx)(m,{children:(0,a.jsx)(eC,Object.assign({lockScroll:!0,onMouseDown:v},{children:(0,a.jsx)(ur,Object.assign({context:p},{children:(0,a.jsx)(xt.Scale,Object.assign({in:i,enter:!1,exit:!1,appear:!0},{children:(0,a.jsx)(tC,Object.assign({ref:t},d,b({ref:f,"aria-labelledby":g}),{children:(0,a.jsx)(US,Object.assign({header:o,headerImage:l,overlayImage:c,actions:w,divider:!!o,titleId:g},{children:n}))}))}))}))}))})}))]})}),JS);nC.defaultProps={width:400};var rC=n(7918),iC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{children:n,icon:r,label:i,secondary:o,href:s,active:l}=e,c=iC(e,["children","icon","label","secondary","href","active"]);return s?(0,a.jsxs)(gi.Link,Object.assign({href:s,active:l,icon:r,ref:t},c,{children:[(0,a.jsx)(Rr,{children:i}),o&&(0,a.jsx)(Rr,Object.assign({fontSize:"$11",color:"dark30"},{children:o})),n]})):(0,a.jsxs)(gi.Item,Object.assign({active:l,icon:r,ref:t},c,{children:[(0,a.jsx)(Rr,{children:i}),o&&(0,a.jsx)(Rr,Object.assign({fontSize:"$11",color:"dark30"},{children:o})),n]}))}));var aC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{children:n,onClose:r,open:i,title:o,headerImage:l,overlayImage:c,trigger:u}=e,d=IC(e,["children","onClose","open","title","headerImage","overlayImage","trigger"]);const{reference:h,floating:f,context:p}=lr({open:i,onOpenChange:r}),m=K(),g=`${Kn()}-label`,v=(0,s.useCallback)((e=>{e.target===e.currentTarget&&r()}),[r]),{getReferenceProps:y,getFloatingProps:b}=ur([Tr(p),Pr(p),Dr(p,{bubbles:!1,outsidePointerDown:!1})]),w=(0,s.useCallback)((()=>(0,a.jsx)(F,{"aria-label":"Close",icon:B.Z,onClick:r,variant:"secondary"})),[r]);return(0,a.jsxs)(a.Fragment,{children:[(0,s.isValidElement)(u)&&(0,s.cloneElement)(u,y(Object.assign({ref:h},u.props))),(0,a.jsx)(Pt.Fade,Object.assign({in:i,timeout:{enter:120,exit:80}},{children:(0,a.jsx)(m,{children:(0,a.jsx)($C,Object.assign({lockScroll:!0,onMouseDown:v},{children:(0,a.jsx)(jr,Object.assign({context:p},{children:(0,a.jsx)(Pt.Scale,Object.assign({in:i,enter:!1,exit:!1,appear:!0},{children:(0,a.jsx)(NC,Object.assign({ref:t},d,b({ref:f,"aria-labelledby":g}),{children:(0,a.jsx)(AC,Object.assign({header:o,headerImage:l,overlayImage:c,actions:w,divider:!!o,titleId:g},{children:n}))}))}))}))}))})}))]})}),LC);ZC.defaultProps={width:400};var HC=n(7918),VC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{children:n,icon:r,label:i,secondary:o,href:s,active:l}=e,c=VC(e,["children","icon","label","secondary","href","active"]);return s?(0,a.jsxs)(_i.Link,Object.assign({href:s,active:l,icon:r,ref:t},c,{children:[(0,a.jsx)(Gr,{children:i}),o&&(0,a.jsx)(Gr,Object.assign({fontSize:"$11",color:"dark30"},{children:o})),n]})):(0,a.jsxs)(_i.Item,Object.assign({active:l,icon:r,ref:t},c,{children:[(0,a.jsx)(Gr,{children:i}),o&&(0,a.jsx)(Gr,Object.assign({fontSize:"$11",color:"dark30"},{children:o})),n]}))}));var BC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);inull)),hC=()=>({toggleDropdown:(0,s.useContext)(dC)}),fC=(0,m.w)(((e,t)=>{var{children:n,width:r,maxHeight:i,offset:o,icon:l,iconAfter:c,disabled:u,title:d,tooltip:h,tooltipPosition:f,onButtonClick:p,variant:m,position:g,onClose:v,size:y}=e,b=aC(e,["children","width","maxHeight","offset","icon","iconAfter","disabled","title","tooltip","tooltipPosition","onButtonClick","variant","position","onClose","size"]);const[w,x]=(0,s.useState)(!1),k=(0,s.useCallback)(((e,t)=>{t||e.stopPropagation(),x((e=>(e&&(null==v||v()),!e)))}),[v]),S=(0,s.useMemo)((()=>"function"==typeof p&&(0,a.jsx)(cC,Object.assign({icon:l,variant:m,onClick:p,disabled:u,size:y},{children:d}))),[p,d,l,m,u,k]),C=(0,s.useMemo)((()=>"function"==typeof p?(0,a.jsx)(uC,{variant:m,iconAfter:c||rC.Z,disabled:u}):(0,a.jsx)(F,Object.assign({icon:l,variant:m,iconAfter:c,disabled:u,size:y},{children:d}))),[p,d,l,c,m,u,k]);return(0,a.jsx)(dC.Provider,Object.assign({value:k},{children:(0,a.jsx)(lC,Object.assign({ref:t},b,{children:(0,a.jsxs)(Jt,Object.assign({text:h,placement:f,fadeIn:200},{children:[S,(0,a.jsx)(gi,Object.assign({visible:w,setVisible:x,width:r,offset:o,placement:g,maxHeight:i,minWidth:120,trigger:C,size:y,"data-testid":b.id},{children:n}))]}))}))}))}),sC);fC.defaultProps={width:120,offset:8,variant:"secondary",tooltipPosition:"left",position:"bottom-end",size:"medium"};const pC=(0,s.createContext)({onClose:()=>null,onToggleFilter:()=>null,open:!1,filterOpen:!1,items:[],setItems:()=>null}),mC=(0,r.zo)(v)` +`,qC=(0,s.createContext)((()=>null)),GC=()=>({toggleDropdown:(0,s.useContext)(qC)}),XC=(0,m.w)(((e,t)=>{var{children:n,width:r,maxHeight:i,offset:o,icon:l,iconAfter:c,disabled:u,title:d,tooltip:h,tooltipPosition:f,onButtonClick:p,variant:m,position:g,onClose:v,size:y}=e,b=BC(e,["children","width","maxHeight","offset","icon","iconAfter","disabled","title","tooltip","tooltipPosition","onButtonClick","variant","position","onClose","size"]);const[w,x]=(0,s.useState)(!1),k=(0,s.useCallback)(((e,t)=>{t||e.stopPropagation(),x((e=>(e&&(null==v||v()),!e)))}),[v]),S=(0,s.useMemo)((()=>"function"==typeof p&&(0,a.jsx)(YC,Object.assign({icon:l,variant:m,onClick:p,disabled:u,size:y},{children:d}))),[p,d,l,m,u,k]),C=(0,s.useMemo)((()=>"function"==typeof p?(0,a.jsx)(KC,{variant:m,iconAfter:c||HC.Z,disabled:u}):(0,a.jsx)(F,Object.assign({icon:l,variant:m,iconAfter:c,disabled:u,size:y},{children:d}))),[p,d,l,c,m,u,k]);return(0,a.jsx)(qC.Provider,Object.assign({value:k},{children:(0,a.jsx)(UC,Object.assign({ref:t},b,{children:(0,a.jsxs)(ln,Object.assign({text:h,placement:f,fadeIn:200},{children:[S,(0,a.jsx)(_i,Object.assign({visible:w,setVisible:x,width:r,offset:o,placement:g,maxHeight:i,minWidth:120,trigger:C,size:y,"data-testid":b.id},{children:n}))]}))}))}))}),WC);XC.defaultProps={width:120,offset:8,variant:"secondary",tooltipPosition:"left",position:"bottom-end",size:"medium"};const QC=(0,s.createContext)({onClose:()=>null,onToggleFilter:()=>null,open:!1,filterOpen:!1,items:[],setItems:()=>null}),JC=(0,r.zo)(v)` border-right: 1px solid ${({theme:e})=>e.color("dark70")}; -`,gC=r.zo.div` +`,ej=r.zo.div` display: flex; align-items: center; position: relative; @@ -1402,32 +1402,32 @@ background: ${({theme:e})=>e.color("dark100")}; padding: 24px 23px 20px 48px; min-height: 110px; -`,vC=(0,r.zo)(F)` +`,tj=(0,r.zo)(F)` position: absolute; top: 34px; right: 12px; -`,yC=({children:e,title:t,subTitle:n,id:r})=>{const{onClose:i}=(0,s.useContext)(pC);return(0,a.jsxs)(gC,Object.assign({id:r},{children:[t&&(0,a.jsxs)(mC,Object.assign({pr:98,mr:38},{children:[(0,a.jsx)(Rr,Object.assign({fontFamily:"title",fontSize:"$24",fontWeight:"semibold"},{children:t})),n&&(0,a.jsx)(v,Object.assign({mt:10,color:"dark30"},{children:n}))]})),e,(0,a.jsx)(vC,Object.assign({onClick:i,variant:"primary",icon:B.Z},{children:"Close Work Data Explorer"}))]}))},bC=r.zo.div` +`,nj=({children:e,title:t,subTitle:n,id:r})=>{const{onClose:i}=(0,s.useContext)(QC);return(0,a.jsxs)(ej,Object.assign({id:r},{children:[t&&(0,a.jsxs)(JC,Object.assign({pr:98,mr:38},{children:[(0,a.jsx)(Gr,Object.assign({fontFamily:"title",fontSize:"$24",fontWeight:"semibold"},{children:t})),n&&(0,a.jsx)(v,Object.assign({mt:10,color:"dark30"},{children:n}))]})),e,(0,a.jsx)(tj,Object.assign({onClick:i,variant:"primary",icon:B.Z},{children:"Close Work Data Explorer"}))]}))},rj=r.zo.div` display: flex; align-items: center; border-top: 1px solid ${({theme:e})=>e.color("dark70")}; background: ${({theme:e})=>e.color("dark100")}; padding: 24px 0 24px 0; margin: 0 23px 0 32px; -`,wC=r.zo.div` +`,ij=r.zo.div` display: flex; align-items: center; justify-content: space-between; min-width: 340px; padding-right: 34px; -`,xC=(0,r.zo)(F)` +`,oj=(0,r.zo)(F)` text-transform: uppercase; letter-spacing: 0.8px; font-size: 14px; -`,kC=({children:e,title:t,id:n})=>{const{onToggleFilter:r,filterOpen:i,items:o}=(0,s.useContext)(pC),l=(0,s.useCallback)((()=>{r(!i)}),[r,i]),c=(0,s.useMemo)((()=>o.reduce(((e,t)=>e+t.items.reduce(((e,t)=>e+(t.selected&&t.count||0)),0)),0)),[o]);return(0,a.jsxs)(bC,Object.assign({id:n},{children:[(0,a.jsxs)(wC,{children:[(0,a.jsx)(xC,Object.assign({onClick:l,variant:"ghost",size:"large",icon:i?B.Z:W.Z},{children:t})),(0,a.jsx)(ki,{label:c,highlight:!0,size:"medium",variant:"purple"})]}),e]}))},SC=r.zo.div` +`,aj=({children:e,title:t,id:n})=>{const{onToggleFilter:r,filterOpen:i,items:o}=(0,s.useContext)(QC),l=(0,s.useCallback)((()=>{r(!i)}),[r,i]),c=(0,s.useMemo)((()=>o.reduce(((e,t)=>e+t.items.reduce(((e,t)=>e+(t.selected&&t.count||0)),0)),0)),[o]);return(0,a.jsxs)(rj,Object.assign({id:n},{children:[(0,a.jsxs)(ij,{children:[(0,a.jsx)(oj,Object.assign({onClick:l,variant:"ghost",size:"large",icon:i?B.Z:W.Z},{children:t})),(0,a.jsx)($i,{label:c,highlight:!0,size:"medium",variant:"purple"})]}),e]}))},sj=r.zo.div` flex: 1; padding: 24px; overflow-x: auto; -`,CC=({children:e,id:t})=>(0,a.jsx)(SC,Object.assign({id:t},{children:e})),jC=r.zo.div` +`,lj=({children:e,id:t})=>(0,a.jsx)(sj,Object.assign({id:t},{children:e})),cj=r.zo.div` ${({open:e})=>`\n width: ${e?"348px":"0px"};\n opacity: ${e?"1":"0"};\n `} background: ${({theme:e})=>e.color("dark100")}; transition: width ${({theme:e})=>`${e.transition.duration.normal}ms ${e.transition.function.default}`}, @@ -1439,7 +1439,7 @@ width: ${({open:e})=>e?"100%":"0px"}; border-right: none; } -`,OC=r.zo.button` +`,uj=r.zo.button` display: flex; align-items: center; cursor: pointer; @@ -1459,12 +1459,12 @@ label { pointer-events: none; } -`,MC=(0,r.zo)(v)` +`,dj=(0,r.zo)(v)` white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: 24px; -`,PC=({labels:e,item:t,index:n})=>{const{setItems:r,items:i}=(0,s.useContext)(pC),[o,l,c]=(0,s.useMemo)((()=>[t.items.reduce(((e,{count:t})=>e+t),0),-1===t.items.findIndex((({selected:e})=>!e)),t.items.findIndex((({selected:e})=>e))>-1]),[t.items]),u=(0,s.useCallback)((()=>{const e=i.map(((e,t)=>Object.assign(Object.assign({},e),{items:t!==n?e.items:e.items.map((e=>Object.assign(Object.assign({},e),{selected:!l})))})));r(e)}),[i,l,r]),d=(0,s.useCallback)((e=>()=>{const t=i.map(((t,r)=>Object.assign(Object.assign({},t),{items:r!==n?t.items:t.items.map(((t,n)=>Object.assign(Object.assign({},t),{selected:e===n?!t.selected:t.selected})))})));r(t)}),[i,l,r]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(OC,Object.assign({enabled:!0,onClick:u},{children:[(0,a.jsx)(v,Object.assign({mr:16,height:20},{children:(0,a.jsx)(Yr,{checked:l||c,indeterminate:!l&&c,size:"small",tabIndex:-1})})),(0,a.jsx)(MC,Object.assign({flex:"1"},{children:t.name})),(0,a.jsx)(ki,{label:o,highlight:!0,size:"medium"})]})),t.items.map((({name:t,count:n,selected:r},i)=>{var o,s;return(0,a.jsxs)(OC,Object.assign({pad:!0,enabled:r,onClick:d(i)},{children:[(0,a.jsx)(v,{width:12,height:12,backgroundColor:(null===(o=e&&e[t])||void 0===o?void 0:o.color)||"dark50",mr:16}),(0,a.jsx)(MC,Object.assign({flex:"1"},{children:(null===(s=e&&e[t])||void 0===s?void 0:s.label)||t})),(0,a.jsx)(ki,{label:n,highlight:!0,size:"medium"})]}),t)}))]})},EC=({children:e,labels:t,id:n})=>{const{filterOpen:r,items:i}=(0,s.useContext)(pC);return(0,a.jsx)(jC,Object.assign({open:r},{children:(0,a.jsxs)(v,Object.assign({display:"flex",alignContent:"stretch",flexDirection:"column",p:24,pt:12,width:["calc(100% - 24px)",348],id:n},{children:[e,i.map(((e,n)=>(0,a.jsx)(PC,{index:n,item:e,labels:t},e.id)))]}))}))};var AC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{const{setItems:r,items:i}=(0,s.useContext)(QC),[o,l,c]=(0,s.useMemo)((()=>[t.items.reduce(((e,{count:t})=>e+t),0),-1===t.items.findIndex((({selected:e})=>!e)),t.items.findIndex((({selected:e})=>e))>-1]),[t.items]),u=(0,s.useCallback)((()=>{const e=i.map(((e,t)=>Object.assign(Object.assign({},e),{items:t!==n?e.items:e.items.map((e=>Object.assign(Object.assign({},e),{selected:!l})))})));r(e)}),[i,l,r]),d=(0,s.useCallback)((e=>()=>{const t=i.map(((t,r)=>Object.assign(Object.assign({},t),{items:r!==n?t.items:t.items.map(((t,n)=>Object.assign(Object.assign({},t),{selected:e===n?!t.selected:t.selected})))})));r(t)}),[i,l,r]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(uj,Object.assign({enabled:!0,onClick:u},{children:[(0,a.jsx)(v,Object.assign({mr:16,height:20},{children:(0,a.jsx)(ci,{checked:l||c,indeterminate:!l&&c,size:"small",tabIndex:-1})})),(0,a.jsx)(dj,Object.assign({flex:"1"},{children:t.name})),(0,a.jsx)($i,{label:o,highlight:!0,size:"medium"})]})),t.items.map((({name:t,count:n,selected:r},i)=>{var o,s;return(0,a.jsxs)(uj,Object.assign({pad:!0,enabled:r,onClick:d(i)},{children:[(0,a.jsx)(v,{width:12,height:12,backgroundColor:(null===(o=e&&e[t])||void 0===o?void 0:o.color)||"dark50",mr:16}),(0,a.jsx)(dj,Object.assign({flex:"1"},{children:(null===(s=e&&e[t])||void 0===s?void 0:s.label)||t})),(0,a.jsx)($i,{label:n,highlight:!0,size:"medium"})]}),t)}))]})},fj=({children:e,labels:t,id:n})=>{const{filterOpen:r,items:i}=(0,s.useContext)(QC);return(0,a.jsx)(cj,Object.assign({open:r},{children:(0,a.jsxs)(v,Object.assign({display:"flex",alignContent:"stretch",flexDirection:"column",p:24,pt:12,width:["calc(100% - 24px)",348],id:n},{children:[e,i.map(((e,n)=>(0,a.jsx)(hj,{index:n,item:e,labels:t},e.id)))]}))}))};var pj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie.color("dark100","light100",.88)}; ${c.o3} ${c.e6} -`,_C=r.zo.div` +`,gj=r.zo.div` flex: 1; display: flex; position: relative; @@ -1493,7 +1493,7 @@ height: 100%; } } -`,DC=e=>{var{children:t,labels:n,open:r,openFilters:i=!0,onFilterToggle:o,onClose:l,items:c,onChange:u}=e,d=AC(e,["children","labels","open","openFilters","onFilterToggle","onClose","items","onChange"]);const h=(0,OS.xC)(t,yC),f=(0,OS.xC)(t,kC),p=(0,OS.xC)(t,CC),m=(0,OS.xC)(t,EC),g=(0,s.useRef)(null),[v,y]=(0,s.useState)(i),b=q();Tr(r),(0,s.useEffect)((()=>{const e=e=>{"Escape"===e.key&&l()},t=e=>{!g.current||g.current!==e.target&&g.current.contains(e.target)||l()};return r&&(window.addEventListener("keydown",e),document.addEventListener("mouseup",t)),()=>{window.removeEventListener("keydown",e),document.removeEventListener("mouseup",t)}}),[g,r,l]);const w=(0,s.useCallback)((e=>{y(e),null==o||o(e)}),[y]),x=(0,s.useMemo)((()=>({items:c,setItems:u,open:r,onClose:l,onToggleFilter:w,filterOpen:v})),[c,u,r,l,w,v]);return(0,a.jsx)(xt.Scale,Object.assign({in:r,exit:!1},{children:(0,a.jsx)(b,{children:(0,a.jsx)(pC.Provider,Object.assign({value:x},{children:(0,a.jsx)(TC,Object.assign({ref:g,open:r},d,{children:(0,a.jsxs)(a.Fragment,{children:[h,f,(0,a.jsxs)(_C,{children:[m||(0,a.jsx)(EC,{labels:n}),p]})]})}))}))})}))};DC.Content=CC,DC.Header=yC,DC.context=pC,DC.Toolbar=kC,DC.Filter=EC;const RC=DC;var zC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{children:t,labels:n,open:r,openFilters:i=!0,onFilterToggle:o,onClose:l,items:c,onChange:u}=e,d=pj(e,["children","labels","open","openFilters","onFilterToggle","onClose","items","onChange"]);const h=(0,uC.xC)(t,nj),f=(0,uC.xC)(t,aj),p=(0,uC.xC)(t,lj),m=(0,uC.xC)(t,fj),g=(0,s.useRef)(null),[v,y]=(0,s.useState)(i),b=K();Yr(r),(0,s.useEffect)((()=>{const e=e=>{"Escape"===e.key&&l()},t=e=>{!g.current||g.current!==e.target&&g.current.contains(e.target)||l()};return r&&(window.addEventListener("keydown",e),document.addEventListener("mouseup",t)),()=>{window.removeEventListener("keydown",e),document.removeEventListener("mouseup",t)}}),[g,r,l]);const w=(0,s.useCallback)((e=>{y(e),null==o||o(e)}),[y]),x=(0,s.useMemo)((()=>({items:c,setItems:u,open:r,onClose:l,onToggleFilter:w,filterOpen:v})),[c,u,r,l,w,v]);return(0,a.jsx)(Pt.Scale,Object.assign({in:r,exit:!1},{children:(0,a.jsx)(b,{children:(0,a.jsx)(QC.Provider,Object.assign({value:x},{children:(0,a.jsx)(mj,Object.assign({ref:g,open:r},d,{children:(0,a.jsxs)(a.Fragment,{children:[h,f,(0,a.jsxs)(gj,{children:[m||(0,a.jsx)(fj,{labels:n}),p]})]})}))}))})}))};vj.Content=lj,vj.Header=nj,vj.context=QC,vj.Toolbar=aj,vj.Filter=fj;const yj=vj;var bj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie?"auto":"100%"}; display: ${({inline:e})=>e?"inline-grid":"grid"}; grid-template-columns: repeat(${({columns:e})=>e[0]}, 1fr); @@ -1502,7 +1502,7 @@ ${({columns:e,theme:t})=>e.map(((e,n)=>`\n @media only screen and (min-width: ${t.breakpoints[n]}) {\n grid-template-columns: repeat(${e}, 1fr);\n }`))} ${({gaps:e,theme:t})=>e.map(((e,n)=>`\n @media only screen and (min-width: ${t.breakpoints[n]}) {\n grid-gap: ${e}px;\n }`))} ${c.Dh} -`,LC=(0,m.w)(((e,t)=>{var{gap:n,children:r,columns:i,inline:o}=e,l=zC(e,["gap","children","columns","inline"]);const c=(0,s.useMemo)((()=>"number"==typeof i?[i]:i||[1]),[i]),u=(0,s.useMemo)((()=>"number"==typeof n?[n]:n||[24]),[n]);return(0,a.jsx)(IC,Object.assign({columns:c,gaps:u,inline:o,ref:t},l,{children:r}))})),$C=LC;var NC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{gap:n,children:r,columns:i,inline:o}=e,l=bj(e,["gap","children","columns","inline"]);const c=(0,s.useMemo)((()=>"number"==typeof i?[i]:i||[1]),[i]),u=(0,s.useMemo)((()=>"number"==typeof n?[n]:n||[24]),[n]);return(0,a.jsx)(wj,Object.assign({columns:c,gaps:u,inline:o,ref:t},l,{children:r}))})),kj=xj;var Sj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie?"underline":"none"}; &:hover { @@ -1519,20 +1519,20 @@ ${({theme:e})=>(0,c.bU)({variants:{nav:{color:e.color("dark20")({theme:e}),fontSize:12,":hover":{color:e.color("dark0")({theme:e})},":active":{color:e.color("dark0")({theme:e})},'&[aria-current="page"]':{color:e.color("dark10")({theme:e})},'&[aria-current="page"]:hover':{color:e.color("dark0")({theme:e})}},blank:{color:"inherit",":hover":{color:"inherit"}},appBar:{color:e.color("dark20")({theme:e}),height:"100%",padding:"16px 0",margin:"0 15px",display:"flex",alignSelf:"center",":hover":{color:e.color("dark0")({theme:e})},":active":{color:e.color("dark0")({theme:e})},'&[aria-current="page"]':{color:e.color("dark0")({theme:e}),borderBottom:`3px solid ${e.colors.purple50}`,marginBottom:"-3px"},fontWeight:"400",fontSize:"14px"},"nav-side":{color:e.color("dark0","purple50")({theme:e}),width:"63px",height:"64px",display:"flex",justifyContent:"center",alignItems:"center",":hover":{color:e.color("dark0","purple30")({theme:e}),bg:e.color("dark60","light80")({theme:e})}}}})} ${({stretch:e})=>e&&'\n &:after{\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1;\n pointer-events: auto;\n content: "";\n }\n '} -`,HC=(0,m.w)(((e,t)=>{var{icon:n,children:r}=e,i=NC(e,["icon","children"]);return(0,a.jsxs)(ZC,Object.assign({ref:t,icon:n},i,{children:[!!n&&(0,a.jsx)(n,{size:"small"}),r]}))}));HC.defaultProps={underline:!1};var VC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{icon:n,children:r}=e,i=Sj(e,["icon","children"]);return(0,a.jsxs)(Cj,Object.assign({ref:t,icon:n},i,{children:[!!n&&(0,a.jsx)(n,{size:"small"}),r]}))}));jj.defaultProps={underline:!1};var Oj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);it?"transparent":e.color("dark80","light100")}; ${c.kk} ${c.bf} -`,WC={ul:r.zo.ul` - ${BC} +`,Pj={ul:r.zo.ul` + ${Ej} `,nav:r.zo.nav` - ${BC} + ${Ej} `,ol:r.zo.ol` - ${BC} - `},UC=e=>{var{component:t,children:n,divider:r,dense:i,hover:o}=e,l=VC(e,["component","children","divider","dense","hover"]);const c=WC[t||"ul"],u=(0,s.useMemo)((()=>({divider:r,dense:i,hover:o})),[r,i,o]);return(0,a.jsx)(c,Object.assign({},l,{children:(0,a.jsx)(FC.Provider,Object.assign({value:u},{children:n}))}))};UC.defaultProps={component:"ul",hover:!0};const YC=UC;var qC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{component:t,children:n,divider:r,dense:i,hover:o}=e,l=Oj(e,["component","children","divider","dense","hover"]);const c=Pj[t||"ul"],u=(0,s.useMemo)((()=>({divider:r,dense:i,hover:o})),[r,i,o]);return(0,a.jsx)(c,Object.assign({},l,{children:(0,a.jsx)(Mj.Provider,Object.assign({value:u},{children:n}))}))};Aj.defaultProps={component:"ul",hover:!0};const Tj=Aj;var _j=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i"icon"===e||t?"0":"1"}; display: flex; align-items: center; @@ -1544,7 +1544,7 @@ > * { flex-grow: 1; } -`,KC=r.zo.div` +`,Rj=r.zo.div` display: flex; flex-direction: column; line-height: 20px; @@ -1552,7 +1552,7 @@ color: ${({secondaryColor:e,theme:t})=>t.color(e||"dark20",e||"light20")}; line-height: 16px; } -`,XC=e=>{var{children:t,hover:n,secondary:r,secondaryColor:i,secondaryTop:o,type:s}=e,l=qC(e,["children","hover","secondary","secondaryColor","secondaryTop","type"]);return(0,a.jsx)(GC,Object.assign({className:n?"hover":"",type:s},l,{children:"text"===s?(0,a.jsxs)(KC,Object.assign({secondaryColor:i},{children:[o&&(0,a.jsx)("small",{children:o}),t,r&&(0,a.jsx)("small",{children:r})]})):t}))};XC.defaultProps={type:"container"};const QC=XC;var JC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i(0,r.zo)(e)` +`,zj=e=>{var{children:t,hover:n,secondary:r,secondaryColor:i,secondaryTop:o,type:s}=e,l=_j(e,["children","hover","secondary","secondaryColor","secondaryTop","type"]);return(0,a.jsx)(Dj,Object.assign({className:n?"hover":"",type:s},l,{children:"text"===s?(0,a.jsxs)(Rj,Object.assign({secondaryColor:i},{children:[o&&(0,a.jsx)("small",{children:o}),t,r&&(0,a.jsx)("small",{children:r})]})):t}))};zj.defaultProps={type:"container"};const Ij=zj;var Lj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i(0,r.zo)(e)` list-style: none; display: flex; align-items: center; @@ -1583,13 +1583,13 @@ > * + * { margin-left: 12px; } - `)),tj=(0,s.forwardRef)(((e,t)=>{var{children:n,icon:r,label:i,onClick:o,active:l,href:c}=e,u=JC(e,["children","icon","label","onClick","active","href"]);const{divider:d,dense:h,hover:f}=(0,s.useContext)(FC),p=r,[m,g,v]=ej;let y="function"==typeof o?g:m;return c&&(y=v),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(y,Object.assign({button:"function"==typeof o||"string"==typeof c,onClick:o,href:c,dense:h,hover:f,active:l,ref:t},u,{children:[p&&(0,a.jsx)(QC,Object.assign({type:"icon"},{children:(0,a.jsx)(p,{size:20})})),i&&(0,a.jsx)(QC,Object.assign({type:"text"},{children:i})),n]})),d&&(0,a.jsx)(TS,{})]})})),nj=tj;var rj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{children:n,icon:r,label:i,onClick:o,active:l,href:c}=e,u=Lj(e,["children","icon","label","onClick","active","href"]);const{divider:d,dense:h,hover:f}=(0,s.useContext)(Mj),p=r,[m,g,v]=$j;let y="function"==typeof o?g:m;return c&&(y=v),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(y,Object.assign({button:"function"==typeof o||"string"==typeof c,onClick:o,href:c,dense:h,hover:f,active:l,ref:t},u,{children:[p&&(0,a.jsx)(Ij,Object.assign({type:"icon"},{children:(0,a.jsx)(p,{size:20})})),i&&(0,a.jsx)(Ij,Object.assign({type:"text"},{children:i})),n]})),d&&(0,a.jsx)(mC,{})]})})),Zj=Nj;var Hj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie.color("dark20")}; font-size: ${({theme:e})=>e.fontSizes.$16}; text-transform: uppercase; letter-spacing: 0.06em; padding: ${({dense:e})=>e?"16px":"20px"} ${({dense:e})=>e?"16px":"20px"}; -`,oj=e=>{var{children:t}=e,n=rj(e,["children"]);const{divider:r,dense:i}=(0,s.useContext)(FC);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ij,Object.assign({dense:i},n,{children:t})),r&&(0,a.jsx)(TS,{})]})};var aj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{children:t}=e,n=Hj(e,["children"]);const{divider:r,dense:i}=(0,s.useContext)(Mj);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Vj,Object.assign({dense:i},n,{children:t})),r&&(0,a.jsx)(mC,{})]})};var Bj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{children:n,indicators:r}=e,i=aj(e,["children","indicators"]);const o=(0,s.useRef)(null),l=(0,s.useRef)(null),c=Wt(l,t);return(0,s.useEffect)((()=>{var e;const t=()=>{if(!o.current||!l.current)return;const{scrollTop:e,clientHeight:t,scrollHeight:n,scrollLeft:r,clientWidth:i,scrollWidth:a}=o.current,s=0===e,c=t===n-e,u=0===r,d=i===a-r;l.current.classList[s?"remove":"add"]("top"),l.current.classList[c?"remove":"add"]("bottom"),l.current.classList[d?"remove":"add"]("left"),l.current.classList[u?"remove":"add"]("right")};return r&&(null===(e=o.current)||void 0===e||e.addEventListener("scroll",t,{passive:!0}),window.addEventListener("resize",t,{passive:!0}),t()),()=>{var e;null===(e=o.current)||void 0===e||e.removeEventListener("scroll",t),window.removeEventListener("resize",t)}}),[r]),(0,a.jsx)(sj,Object.assign({ref:c},i,{children:(0,a.jsx)("div",Object.assign({ref:o},{children:n}))}))}));lj.defaultProps={width:"100%",height:"100%",horizontal:!1,vertical:!0,variant:"default"};const cj=lj;var uj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{children:n,indicators:r}=e,i=Bj(e,["children","indicators"]);const o=(0,s.useRef)(null),l=(0,s.useRef)(null),c=Jt(l,t);return(0,s.useEffect)((()=>{var e;const t=()=>{if(!o.current||!l.current)return;const{scrollTop:e,clientHeight:t,scrollHeight:n,scrollLeft:r,clientWidth:i,scrollWidth:a}=o.current,s=0===e,c=t===n-e,u=0===r,d=i===a-r;l.current.classList[s?"remove":"add"]("top"),l.current.classList[c?"remove":"add"]("bottom"),l.current.classList[d?"remove":"add"]("left"),l.current.classList[u?"remove":"add"]("right")};return r&&(null===(e=o.current)||void 0===e||e.addEventListener("scroll",t,{passive:!0}),window.addEventListener("resize",t,{passive:!0}),t()),()=>{var e;null===(e=o.current)||void 0===e||e.removeEventListener("scroll",t),window.removeEventListener("resize",t)}}),[r]),(0,a.jsx)(Wj,Object.assign({ref:c},i,{children:(0,a.jsx)("div",Object.assign({ref:o},{children:n}))}))}));Uj.defaultProps={width:"100%",height:"100%",horizontal:!1,vertical:!0,variant:"default"};const Yj=Uj;var Kj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie.color("dark0")}; -`,hj=r.zo.input` +`,Gj=r.zo.input` cursor: pointer; appearance: none; display: inline-block; @@ -1725,7 +1725,7 @@ ${u.By} ${({theme:e})=>(0,c.bU)({prop:"$size",variants:{small:{height:e.sizes.$20,width:e.sizes.$40,borderRadius:e.sizes.$12,"& + div":{top:e.sizes.$2,left:e.sizes.$2,height:e.sizes.$16,width:e.sizes.$16,borderRadius:e.sizes.$16},"&:checked + div":{left:22},"~ span":{marginLeft:e.sizes.$8,fontSize:e.fontSizes.$12}},medium:{height:e.sizes.$20,width:e.sizes.$40,borderRadius:e.sizes.$12,"& + div":{top:e.sizes.$2,left:e.sizes.$2,height:e.sizes.$16,width:e.sizes.$16,borderRadius:e.sizes.$16},"&:checked + div":{left:22},"~ span":{marginLeft:e.sizes.$8,fontSize:e.fontSizes.$14}},large:{height:e.sizes.$28,width:e.sizes.$56,borderRadius:e.sizes.$20,"& + div":{top:e.sizes.$4,left:e.sizes.$4,height:e.sizes.$20,width:e.sizes.$20,borderRadius:e.sizes.$20},"&:checked + div":{left:e.sizes.$32},"~ span":{marginLeft:e.sizes.$12,fontSize:e.fontSizes.$16}}}})} -`,fj=(0,m.w)(((e,t)=>{var{label:n,size:r}=e,i=uj(e,["label","size"]);return(0,a.jsxs)(dj,{children:[(0,a.jsx)(hj,Object.assign({type:"checkbox",$size:r,ref:t},i)),(0,a.jsx)("div",{}),n&&(0,a.jsx)("span",{children:n})]})}));fj.defaultProps={size:"medium"};const pj=(0,s.createContext)({columns:[],setSortIndex:()=>null,onSortEnd:()=>null,onSelectRow:()=>null,variant:"default",expandableRows:!1}),mj=(0,s.createContext)({index:-1,isExpanded:!1});var gj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{label:n,size:r}=e,i=Kj(e,["label","size"]);return(0,a.jsxs)(qj,{children:[(0,a.jsx)(Gj,Object.assign({type:"checkbox",$size:r,ref:t},i)),(0,a.jsx)("div",{}),n&&(0,a.jsx)("span",{children:n})]})}));Xj.defaultProps={size:"medium"};const Qj=(0,s.createContext)({columns:[],setSortIndex:()=>null,onSortEnd:()=>null,onSelectRow:()=>null,variant:"default",expandableRows:!1}),Jj=(0,s.createContext)({index:-1,isExpanded:!1});var eO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie||"left"}; @@ -1756,7 +1756,7 @@ ${({showPointer:e})=>e&&"\n cursor: pointer;\n "} ${(0,c.By)({cellWrap:{property:"whiteSpace"}})} -`,yj=e=>{var{children:t,controls:n,width:r,wrapper:i,column:o,WrapComponent:l}=e,c=gj(e,["children","controls","width","wrapper","column","WrapComponent"]);const{variant:u,selected:d,sortable:h}=(0,s.useContext)(pj),f=(0,s.useCallback)((e=>{n&&e.stopPropagation()}),[n]),p=(0,s.useCallback)((e=>{n&&e.preventDefault()}),[n]),m=(0,s.useMemo)((()=>i||(n||!l?s.Fragment:l)),[n,i,l]);return(0,a.jsx)(vj,Object.assign({"data-label":null==o?void 0:o.title,controls:n,width:r,px:null==o?void 0:o.px,align:null==o?void 0:o.align,isList:"list"===u,isSelectable:!!d,isSortable:h,role:"gridcell",onClick:f,onKeyDown:p,tabIndex:0},c,{children:(0,a.jsx)(m,{children:t})}))};function bj({isLoading:e,total:t=0,startsFrom:n=0,pageSize:r=10}={}){const[i,o]=(0,s.useState)(n),a=(0,s.useMemo)((()=>Math.min(i+r,t)),[i,r,t]),l=(0,s.useCallback)((()=>{const e=Math.min(i+r,t);o(e)}),[i,r,t]),c=(0,s.useCallback)((()=>{const e=Math.max(i-r,0);o(e)}),[i,r]),u=(0,s.useMemo)((()=>0===t||0===i?0:Math.max(Math.floor(i/r)-1,0)),[t,i,r]);return{paginationProps:{nextPage:l,previousPage:c,pageStart:i,pageEnd:a,totalEntries:t,nextButtonDisabled:a===t,previousButtonDisabled:0===i,isLoadingNext:e},from:i,setFrom:o,to:a,pageIndex:u}}const wj=e=>e?"desc"===e?"asc":void 0:"desc";const xj=r.zo.caption` +`,nO=e=>{var{children:t,controls:n,width:r,wrapper:i,column:o,WrapComponent:l}=e,c=eO(e,["children","controls","width","wrapper","column","WrapComponent"]);const{variant:u,selected:d,sortable:h}=(0,s.useContext)(Qj),f=(0,s.useCallback)((e=>{n&&e.stopPropagation()}),[n]),p=(0,s.useCallback)((e=>{n&&e.preventDefault()}),[n]),m=(0,s.useMemo)((()=>i||(n||!l?s.Fragment:l)),[n,i,l]);return(0,a.jsx)(tO,Object.assign({"data-label":null==o?void 0:o.title,controls:n,width:r,px:null==o?void 0:o.px,align:null==o?void 0:o.align,isList:"list"===u,isSelectable:!!d,isSortable:h,role:"gridcell",onClick:f,onKeyDown:p,tabIndex:0},c,{children:(0,a.jsx)(m,{children:t})}))};function rO({isLoading:e,total:t=0,startsFrom:n=0,pageSize:r=10}={}){const[i,o]=(0,s.useState)(n),a=(0,s.useMemo)((()=>Math.min(i+r,t)),[i,r,t]),l=(0,s.useCallback)((()=>{const e=Math.min(i+r,t);o(e)}),[i,r,t]),c=(0,s.useCallback)((()=>{const e=Math.max(i-r,0);o(e)}),[i,r]),u=(0,s.useMemo)((()=>0===t||0===i?0:Math.max(Math.floor(i/r)-1,0)),[t,i,r]);return{paginationProps:{nextPage:l,previousPage:c,pageStart:i,pageEnd:a,totalEntries:t,nextButtonDisabled:a===t,previousButtonDisabled:0===i,isLoadingNext:e},from:i,setFrom:o,to:a,pageIndex:u}}const iO=e=>e?"desc"===e?"asc":void 0:"desc";const oO=r.zo.caption` position: absolute; bottom: 0; @@ -1764,10 +1764,10 @@ right: ${({right:e})=>e?0:"auto"}; width: 1px; -`,kj=({children:e,enabled:t,leftRef:n,rightRef:r})=>t?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(xj,{ref:n,className:"left"}),e,(0,a.jsx)(xj,{ref:r,right:!0,className:"right"})]}):(0,a.jsx)(a.Fragment,{children:e});var Sj=n(6605),Cj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);it?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(oO,{ref:n,className:"left"}),e,(0,a.jsx)(oO,{ref:r,right:!0,className:"right"})]}):(0,a.jsx)(a.Fragment,{children:e});var sO=n(6605),lO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie?"90deg":"0deg"}); transition: transform ${({theme:e})=>`${e.transition.duration.normal}ms ${e.transition.function.default}`}; -`,Oj=r.zo.tr` +`,uO=r.zo.tr` ${({active:e,disabled:t,empty:n,theme:i})=>!t&&!n&&!e&&r.iv` &:hover { > td { @@ -1824,7 +1824,7 @@ opacity: 0; } } -`;function Mj(e){var{empty:t,children:n,wrapper:r,selectable:i,getExpandedChildren:o,expandedRow:l}=e,c=Cj(e,["empty","children","wrapper","selectable","getExpandedChildren","expandedRow"]);const{index:u,isExpanded:d}=(0,s.useContext)(mj),{columns:h,sortable:f,setSortIndex:p,onSortEnd:m,selected:g,onSelectRow:v,variant:y,expandableRows:b}=(0,s.useContext)(pj),w=(0,s.useMemo)((()=>{const e=h.flatMap((e=>{var t;return[...(null===(t=null==e?void 0:e.columns)||void 0===t?void 0:t.length)?e.columns:[e]].map((t=>Object.assign(Object.assign({},t),{hidden:e.hidden})))}));let t=0;return s.Children.map(n,(n=>{const i=e[t];return n?(t+=1,i.hidden?null:(0,s.isValidElement)(n)?(0,s.cloneElement)(n,{column:i,WrapComponent:r}):n):n}))}),[n,h]),x=(0,s.useCallback)((e=>{var t;const n=e.target.parentElement;if(!n)return;e.dataTransfer.setDragImage(n,0,0);const r=Array.prototype.slice.call(null===(t=null==n?void 0:n.parentElement)||void 0===t?void 0:t.children).indexOf(n);p({index:r,target:r}),n.classList.add("ghost"),setTimeout((()=>{n.classList.add("clone")}),0)}),[p]),k=(0,s.useCallback)((e=>{const t=e.target.parentElement;t&&(t.classList.remove("ghost","clone"),m())}),[m]),S=(0,s.useCallback)((e=>{var t;const n=e.target.closest("tr"),r=Array.prototype.slice.call(null===(t=null==n?void 0:n.parentElement)||void 0===t?void 0:t.children).indexOf(n);p((e=>e&&Object.assign(Object.assign({},e),{target:r})))}),[p]),C=(0,s.useCallback)((e=>{e.preventDefault()}),[]),j=(0,s.useCallback)((e=>{e&&e.stopPropagation()}),[]),O=(0,s.useCallback)((()=>{"number"==typeof u&&v(u)}),[v,u]),M=g&&(null==g?void 0:g.indexOf(u))>-1,[P,E]=(0,s.useState)([]),A=(0,s.useCallback)((()=>{var e;E(P.length?[]:null!==(e=null==o?void 0:o())&&void 0!==e?e:[])}),[P,o]),T=(0,s.useMemo)((()=>{const e=[];return t?null:d?(f&&e.push((0,a.jsx)(vj,{width:50,controls:!0},"sortable-hide")),g&&e.push((0,a.jsx)(vj,{width:50,controls:!0},"selected-hide")),b&&e.push((0,a.jsx)(vj,{width:50,controls:!0},"expandedRows-hide")),e):(f&&e.push((0,a.jsx)(vj,Object.assign({onDragStart:x,onDragEnd:k,draggable:!0,controls:!0,width:50,onClick:j},{children:(0,a.jsx)(F,{variant:"ghost",color:"dark30",icon:Sj.Z})}),"sortable")),g&&e.push((0,a.jsx)(vj,Object.assign({width:50,controls:!0,onClick:j},{children:(0,a.jsx)(Yr,{size:"small",checked:M,disabled:!1===i,onChange:O})}),"selected")),b&&e.push(o?(0,a.jsx)(vj,Object.assign({width:30,controls:!0,onClick:A,showPointer:!0},{children:(0,a.jsx)(jj,{variant:"ghost",color:"dark30",icon:_r.Z,onClick:A,isExpanded:!!(null==P?void 0:P.length)})}),"expand"):(0,a.jsx)(vj,{width:50,controls:!0},"expanded")),e)}),[d,f,g,i,b,P,o,A,O,M,x,k]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(Oj,Object.assign({onDragOver:C,onDragEnter:S,empty:t,isSelected:M,asList:"list"===y},c,{children:[T,w]})),l&&P.map((({rowData:e,props:t},n)=>(0,a.jsx)(mj.Provider,Object.assign({value:{isExpanded:!0,index:n}},{children:(0,a.jsx)(l,{rowData:e,props:t,isExpanded:!0})}),`expanded-${n}`)))]})}var Pj=n(6952),Ej=n(4013);const Aj=r.zo.button` +`;function dO(e){var{empty:t,children:n,wrapper:r,selectable:i,getExpandedChildren:o,expandedRow:l}=e,c=lO(e,["empty","children","wrapper","selectable","getExpandedChildren","expandedRow"]);const{index:u,isExpanded:d}=(0,s.useContext)(Jj),{columns:h,sortable:f,setSortIndex:p,onSortEnd:m,selected:g,onSelectRow:v,variant:y,expandableRows:b}=(0,s.useContext)(Qj),w=(0,s.useMemo)((()=>{const e=h.flatMap((e=>{var t;return[...(null===(t=null==e?void 0:e.columns)||void 0===t?void 0:t.length)?e.columns:[e]].map((t=>Object.assign(Object.assign({},t),{hidden:e.hidden})))}));let t=0;return s.Children.map(n,(n=>{const i=e[t];return n?(t+=1,i.hidden?null:(0,s.isValidElement)(n)?(0,s.cloneElement)(n,{column:i,WrapComponent:r}):n):n}))}),[n,h]),x=(0,s.useCallback)((e=>{var t;const n=e.target.parentElement;if(!n)return;e.dataTransfer.setDragImage(n,0,0);const r=Array.prototype.slice.call(null===(t=null==n?void 0:n.parentElement)||void 0===t?void 0:t.children).indexOf(n);p({index:r,target:r}),n.classList.add("ghost"),setTimeout((()=>{n.classList.add("clone")}),0)}),[p]),k=(0,s.useCallback)((e=>{const t=e.target.parentElement;t&&(t.classList.remove("ghost","clone"),m())}),[m]),S=(0,s.useCallback)((e=>{var t;const n=e.target.closest("tr"),r=Array.prototype.slice.call(null===(t=null==n?void 0:n.parentElement)||void 0===t?void 0:t.children).indexOf(n);p((e=>e&&Object.assign(Object.assign({},e),{target:r})))}),[p]),C=(0,s.useCallback)((e=>{e.preventDefault()}),[]),j=(0,s.useCallback)((e=>{e&&e.stopPropagation()}),[]),O=(0,s.useCallback)((()=>{"number"==typeof u&&v(u)}),[v,u]),M=g&&(null==g?void 0:g.indexOf(u))>-1,[E,P]=(0,s.useState)([]),A=(0,s.useCallback)((()=>{var e;P(E.length?[]:null!==(e=null==o?void 0:o())&&void 0!==e?e:[])}),[E,o]),T=(0,s.useMemo)((()=>{const e=[];return t?null:d?(f&&e.push((0,a.jsx)(tO,{width:50,controls:!0},"sortable-hide")),g&&e.push((0,a.jsx)(tO,{width:50,controls:!0},"selected-hide")),b&&e.push((0,a.jsx)(tO,{width:50,controls:!0},"expandedRows-hide")),e):(f&&e.push((0,a.jsx)(tO,Object.assign({onDragStart:x,onDragEnd:k,draggable:!0,controls:!0,width:50,onClick:j},{children:(0,a.jsx)(F,{variant:"ghost",color:"dark30",icon:sO.Z})}),"sortable")),g&&e.push((0,a.jsx)(tO,Object.assign({width:50,controls:!0,onClick:j},{children:(0,a.jsx)(ci,{size:"small",checked:M,disabled:!1===i,onChange:O})}),"selected")),b&&e.push(o?(0,a.jsx)(tO,Object.assign({width:30,controls:!0,onClick:A,showPointer:!0},{children:(0,a.jsx)(cO,{variant:"ghost",color:"dark30",icon:Kr.Z,onClick:A,isExpanded:!!(null==E?void 0:E.length)})}),"expand"):(0,a.jsx)(tO,{width:50,controls:!0},"expanded")),e)}),[d,f,g,i,b,E,o,A,O,M,x,k]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(uO,Object.assign({onDragOver:C,onDragEnter:S,empty:t,isSelected:M,asList:"list"===y},c,{children:[T,w]})),l&&E.map((({rowData:e,props:t},n)=>(0,a.jsx)(Jj.Provider,Object.assign({value:{isExpanded:!0,index:n}},{children:(0,a.jsx)(l,{rowData:e,props:t,isExpanded:!0})}),`expanded-${n}`)))]})}var hO=n(6952),fO=n(4013);const pO=r.zo.button` display: flex; cursor: pointer; align-items: center; @@ -1845,14 +1845,14 @@ &:hover .sort-icon { opacity: 1; } -`,Tj=(0,r.zo)(v)` +`,mO=(0,r.zo)(v)` margin-left: ${({theme:e})=>e.sizes.$4}; position: relative; transform: rotate(${({sort:e})=>"asc"===e?"180deg":"0"}); opacity: ${({isVisible:e=!0})=>e?1:0}; transition: opacity ${({theme:e})=>`${e.transition.duration.normal}ms ${e.transition.function.default}`}; -`,_j=({children:e,id:t,sortable:n,sort:r,onClick:i,align:o})=>{const l=(0,s.useCallback)((()=>{null==i||i(t)}),[t,i]);return n?(0,a.jsxs)(Aj,Object.assign({onClick:l,align:o},{children:[(0,a.jsx)("span",{children:e}),n&&!r?(0,a.jsx)(Tj,Object.assign({sort:r,isVisible:!1,className:"sort-icon"},{children:(0,a.jsx)(Pj.Z,{size:8})})):null,r?(0,a.jsx)(Tj,Object.assign({sort:r},{children:(0,a.jsx)(Ej.Z,{size:8})})):null]})):(0,a.jsx)("span",{children:e})},Dj=r.zo.th` +`,gO=({children:e,id:t,sortable:n,sort:r,onClick:i,align:o})=>{const l=(0,s.useCallback)((()=>{null==i||i(t)}),[t,i]);return n?(0,a.jsxs)(pO,Object.assign({onClick:l,align:o},{children:[(0,a.jsx)("span",{children:e}),n&&!r?(0,a.jsx)(mO,Object.assign({sort:r,isVisible:!1,className:"sort-icon"},{children:(0,a.jsx)(hO.Z,{size:8})})):null,r?(0,a.jsx)(mO,Object.assign({sort:r},{children:(0,a.jsx)(fO.Z,{size:8})})):null]})):(0,a.jsx)("span",{children:e})},vO=r.zo.th` padding: 0 ${({px:e=20})=>`${e}px`} 12px; text-transform: uppercase; color: ${({theme:e})=>e.color("dark30")}; @@ -1899,7 +1899,7 @@ overflow: hidden; text-overflow: ellipsis; `} -`,Rj=(0,r.zo)(Dj)` +`,yO=(0,r.zo)(vO)` text-align: center; border-bottom: none; padding-left: 0; @@ -1914,13 +1914,13 @@ top: 7px; border-top: 1px solid ${({theme:e})=>e.color("dark50","light70")}; } -`,zj=r.zo.th` +`,bO=r.zo.th` border-right: 1px solid ${({theme:e})=>e.color("transparent")}; -`,Ij=r.zo.span` +`,wO=r.zo.span` background-color: inherit; position: relative; padding: 0 20px; -`,Lj=({columns:e,sortable:t,selected:n,expandableRows:r,isEmpty:i,isSomeSelected:o,isAllSelected:l,handleSelectAll:c,sortState:u=null,sortByColumn:d})=>{const{topGroups:h,bottomGroups:f}=(0,s.useMemo)((()=>{const t=e.reduce(((e,t)=>{var n;return t.hidden?e:(null===(n=t.columns)||void 0===n?void 0:n.length)?(e.topGroups.push({colspan:t.columns.length,column:t}),t.columns.forEach((t=>e.bottomGroups.push({column:t}))),e):(e.topGroups.push({column:t}),e.bottomGroups.push({column:t}),e)}),{topGroups:[],bottomGroups:[]});return{topGroups:t.topGroups.filter(Boolean).length?t.topGroups:[],bottomGroups:t.bottomGroups}}),[e]);return(0,a.jsxs)("thead",{children:[h.length?(0,a.jsxs)("tr",{children:[r&&(0,a.jsx)(zj,{children:" "}),t&&(0,a.jsx)(zj,{children:" "}),n&&(0,a.jsx)(zj,{children:" "}),h.map((({colspan:e,column:r})=>e?(0,a.jsx)(Rj,Object.assign({role:"columnheader",width:r.width,className:r.align||"left",withElipsis:r.withTitleEllipsis,title:r.withTitleEllipsis?r.title:void 0,colSpan:e},{children:(0,a.jsx)(Ij,{children:r.title})}),r.id):(0,a.jsx)(zj,{role:"columnheader","aria-label":r.title,isSelectable:!!n,isSortable:t},r.id)))]}):null,(0,a.jsxs)("tr",{children:[t&&(0,a.jsx)(Dj,{width:60}),n&&(0,a.jsx)(Dj,Object.assign({width:60},{children:(0,a.jsx)(Yr,{disabled:i,size:"small",checked:o,indeterminate:!l,onChange:c})})),f.map((({column:e},i)=>(0,a.jsx)(Dj,Object.assign({role:"columnheader",width:e.width,className:e.align||"left",withElipsis:e.withTitleEllipsis,title:e.withTitleEllipsis?e.title:void 0,borderBottomColor:e.borderBottomColor,isSortable:t,isSelectable:!!n,px:e.px,colSpan:0===i&&r?2:1},{children:(0,a.jsx)(_j,Object.assign({id:e.id,sortable:e.sortable,sort:u&&u[0]===e.id?u[1]:void 0,onClick:d,align:e.align},{children:e.title}))}),e.id)))]})]})};var $j=n(9622),Nj=n(4402),Zj=n(3281);const Hj=y.default.div` +`,xO=({columns:e,sortable:t,selected:n,expandableRows:r,isEmpty:i,isSomeSelected:o,isAllSelected:l,handleSelectAll:c,sortState:u=null,sortByColumn:d})=>{const{topGroups:h,bottomGroups:f}=(0,s.useMemo)((()=>{const t=e.reduce(((e,t)=>{var n;return t.hidden?e:(null===(n=t.columns)||void 0===n?void 0:n.length)?(e.topGroups.push({colspan:t.columns.length,column:t}),t.columns.forEach((t=>e.bottomGroups.push({column:t}))),e):(e.topGroups.push({column:t}),e.bottomGroups.push({column:t}),e)}),{topGroups:[],bottomGroups:[]});return{topGroups:t.topGroups.filter(Boolean).length?t.topGroups:[],bottomGroups:t.bottomGroups}}),[e]);return(0,a.jsxs)("thead",{children:[h.length?(0,a.jsxs)("tr",{children:[r&&(0,a.jsx)(bO,{children:" "}),t&&(0,a.jsx)(bO,{children:" "}),n&&(0,a.jsx)(bO,{children:" "}),h.map((({colspan:e,column:r})=>e?(0,a.jsx)(yO,Object.assign({role:"columnheader",width:r.width,className:r.align||"left",withElipsis:r.withTitleEllipsis,title:r.withTitleEllipsis?r.title:void 0,colSpan:e},{children:(0,a.jsx)(wO,{children:r.title})}),r.id):(0,a.jsx)(bO,{role:"columnheader","aria-label":r.title,isSelectable:!!n,isSortable:t},r.id)))]}):null,(0,a.jsxs)("tr",{children:[t&&(0,a.jsx)(vO,{width:60}),n&&(0,a.jsx)(vO,Object.assign({width:60},{children:(0,a.jsx)(ci,{disabled:i,size:"small",checked:o,indeterminate:!l,onChange:c})})),f.map((({column:e},i)=>(0,a.jsx)(vO,Object.assign({role:"columnheader",width:e.width,className:e.align||"left",withElipsis:e.withTitleEllipsis,title:e.withTitleEllipsis?e.title:void 0,borderBottomColor:e.borderBottomColor,isSortable:t,isSelectable:!!n,px:e.px,colSpan:0===i&&r?2:1},{children:(0,a.jsx)(gO,Object.assign({id:e.id,sortable:e.sortable,sort:u&&u[0]===e.id?u[1]:void 0,onClick:d,align:e.align},{children:e.title}))}),e.id)))]})]})};var kO=n(9622),SO=n(4402),CO=n(3281);const jO=y.default.div` width: 100%; display: flex; justify-content: flex-end; @@ -1935,10 +1935,10 @@ button:last-of-type { margin-left: 8px; } -`,Vj=({nextPage:e,previousPage:t,nextButtonDisabled:n,previousButtonDisabled:r,pageStart:i,pageEnd:o,totalEntries:s,isLoadingNext:l})=>(0,a.jsxs)(Hj,{children:[s?`${i}-${o} of ${s}`:null,(0,a.jsx)(F,{variant:"secondary",icon:$j.Z,onClick:t,disabled:r}),(0,a.jsx)(F,{variant:"secondary",icon:l?Nj.Z:Zj.Z,onClick:e,disabled:n||l})]});var Fj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i(0,a.jsxs)(jO,{children:[s?`${i}-${o} of ${s}`:null,(0,a.jsx)(F,{variant:"secondary",icon:kO.Z,onClick:t,disabled:r}),(0,a.jsx)(F,{variant:"secondary",icon:l?SO.Z:CO.Z,onClick:e,disabled:n||l})]});var MO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{data:t,columns:n,noDataFound:r,keyId:i,row:o,rowCount:l=5,rowProps:c,sortable:u,onSort:d,selected:h,onSelect:f,variant:p="default",onSortByColumn:m,expandableRows:g}=e,y=Fj(e,["data","columns","noDataFound","keyId","row","rowCount","rowProps","sortable","onSort","selected","onSelect","variant","onSortByColumn","expandableRows"]);const b=(0,s.useMemo)((()=>"all"===l?t.length:l),[t,l]),{from:w,setFrom:x,to:k,pageIndex:S,paginationProps:C}=bj({total:t.length,pageSize:b});(0,s.useEffect)((()=>{w>0&&t.lengtht.slice(w,k).map(((e,t)=>({id:i?e[i]:t,index:w+t,content:e})))),[t,w,k]),{isSomeSelected:O,isAllSelected:M,handleSelectAll:P,handleSortEnd:E,handleSelectRow:A,setSortIndex:T}=function({items:e=[],pageIndex:t,pageSize:n,selected:r,onSelect:i,onSort:o}){const a=r&&r.length>0,l=r&&r.length===e.length,c=(0,s.useCallback)((()=>{i&&i(l?[]:e.map(((e,t)=>t)))}),[i,l]),[u,d]=(0,s.useState)(void 0);return{isSomeSelected:a,isAllSelected:l,handleSelectAll:c,handleSortEnd:()=>{if(u){if("function"==typeof o){const r=[...e],i=(t-1)*n,a=r[u.index+i];r.splice(u.index+i,1),r.splice(u.target+i,0,a),o(r)}d(void 0)}},handleSelectRow:e=>{if(!r||!i)return;const t=r.indexOf(e)>-1?r.filter((t=>t!==e)):[...r,e];i(t)},setSortIndex:d}}({items:t,pageIndex:S,pageSize:b,selected:h,onSelect:f,onSort:d}),[_,D]=function(e=[],t){const[n,r]=(0,s.useState)(null);(0,s.useEffect)((()=>{const t=e.flatMap((e=>e.sortable&&e.initialSort?[[e.id,e.initialSort]]:[]));t.length&&(t.length>1&&(0,OS.ZK)("Table supports sorting by one column at the time. Table will show initial sort only for the first column it is defined for."),r(t[0]))}),[e]);const i=(0,s.useCallback)((e=>{if(!(null==n?void 0:n.length)||n[0]!==e)return void r([e,wj()]);const[t,i]=n,o=wj(i);r(o?[t,o]:null)}),[n]);return(0,s.useEffect)((()=>null==t?void 0:t(n)),[n]),[n,i]}(n,m),R=(0,s.useRef)(null),z=(0,s.useRef)(null),I=(0,s.useRef)(null);!function({overflowContainerRef:e,leftTriggerRef:t,rightTriggerRef:n}){const r=(0,s.useRef)(null);(0,s.useEffect)((()=>{if((null==e?void 0:e.current)&&(null==t?void 0:t.current)&&(null==n?void 0:n.current))return r.current||(r.current=new IntersectionObserver((t=>{t.forEach((t=>{var n;if(t.target){const r=t.target.className.includes("right")?"right-shadow":"left-shadow";null===(n=e.current)||void 0===n||n.classList[t.isIntersecting?"remove":"add"](r)}}))}),{rootMargin:"10px"})),t.current&&r.current.observe(t.current),n.current&&r.current.observe(n.current),()=>{var e;null===(e=r.current)||void 0===e||e.disconnect()}}),[e,t,n])}({overflowContainerRef:R,leftTriggerRef:z,rightTriggerRef:I});const L="sticky-first-column"===p,$=(0,s.useMemo)((()=>({columns:n,sortable:u,setSortIndex:T,selected:h,variant:p,expandableRows:g,onSortEnd:E,onSelectRow:A})),[n,u,T,h,p,g,E,A]);return(0,a.jsx)(pj.Provider,Object.assign({value:$},{children:(0,a.jsxs)(v,Object.assign({display:"flex",flexDirection:"column",width:"100%"},{children:[(0,a.jsx)(Uj,Object.assign({ref:R,isSticky:L},{children:(0,a.jsx)(Bj,Object.assign({variant:"custom",horizontal:L,vertical:!1},{children:(0,a.jsxs)(Wj,Object.assign({role:"grid"},y,{children:[(0,a.jsx)(Lj,{columns:n,sortable:u,selected:h,isEmpty:!t.length,isSomeSelected:O,isAllSelected:M,handleSelectAll:P,sortState:_,sortByColumn:D,expandableRows:g}),(0,a.jsx)(kj,Object.assign({enabled:"sticky-first-column"===p,leftRef:z,rightRef:I},{children:(0,a.jsxs)("tbody",{children:[0===t.length&&(0,a.jsx)(Mj,Object.assign({empty:!0,disabled:!0},{children:(0,a.jsx)(yj,Object.assign({colSpan:99},{children:(0,a.jsx)(v,Object.assign({width:1,pt:75,pb:75,textAlign:"center",color:"dark30"},{children:r||"No data found"}))}))})),j.map((e=>(0,a.jsx)(mj.Provider,Object.assign({value:{index:e.index,isExpanded:!1}},{children:o?(0,a.jsx)(o,{rowData:e.content,props:c}):(0,a.jsx)(Mj,{children:n.flatMap((t=>{var n;return((null===(n=t.columns)||void 0===n?void 0:n.length)?t.columns:[t]).map((({id:t})=>(0,a.jsx)(yj,{children:e.content[t]},t)))}))})}),e.id||e.index)))]})}))]}))}))})),t.length>b&&(0,a.jsx)(Vj,Object.assign({},C))]}))}))};Yj.defaultProps={rowCount:5,noDataFound:"No data found",variant:"default"};const qj=Yj,Gj=(0,r.zo)(v)` +`,TO=e=>{var{data:t,columns:n,noDataFound:r,keyId:i,row:o,rowCount:l=5,rowProps:c,sortable:u,onSort:d,selected:h,onSelect:f,variant:p="default",onSortByColumn:m,expandableRows:g}=e,y=MO(e,["data","columns","noDataFound","keyId","row","rowCount","rowProps","sortable","onSort","selected","onSelect","variant","onSortByColumn","expandableRows"]);const b=(0,s.useMemo)((()=>"all"===l?t.length:l),[t,l]),{from:w,setFrom:x,to:k,pageIndex:S,paginationProps:C}=rO({total:t.length,pageSize:b});(0,s.useEffect)((()=>{w>0&&t.lengtht.slice(w,k).map(((e,t)=>({id:i?e[i]:t,index:w+t,content:e})))),[t,w,k]),{isSomeSelected:O,isAllSelected:M,handleSelectAll:E,handleSortEnd:P,handleSelectRow:A,setSortIndex:T}=function({items:e=[],pageIndex:t,pageSize:n,selected:r,onSelect:i,onSort:o}){const a=r&&r.length>0,l=r&&r.length===e.length,c=(0,s.useCallback)((()=>{i&&i(l?[]:e.map(((e,t)=>t)))}),[i,l]),[u,d]=(0,s.useState)(void 0);return{isSomeSelected:a,isAllSelected:l,handleSelectAll:c,handleSortEnd:()=>{if(u){if("function"==typeof o){const r=[...e],i=(t-1)*n,a=r[u.index+i];r.splice(u.index+i,1),r.splice(u.target+i,0,a),o(r)}d(void 0)}},handleSelectRow:e=>{if(!r||!i)return;const t=r.indexOf(e)>-1?r.filter((t=>t!==e)):[...r,e];i(t)},setSortIndex:d}}({items:t,pageIndex:S,pageSize:b,selected:h,onSelect:f,onSort:d}),[_,D]=function(e=[],t){const[n,r]=(0,s.useState)(null);(0,s.useEffect)((()=>{const t=e.flatMap((e=>e.sortable&&e.initialSort?[[e.id,e.initialSort]]:[]));t.length&&(t.length>1&&(0,uC.ZK)("Table supports sorting by one column at the time. Table will show initial sort only for the first column it is defined for."),r(t[0]))}),[e]);const i=(0,s.useCallback)((e=>{if(!(null==n?void 0:n.length)||n[0]!==e)return void r([e,iO()]);const[t,i]=n,o=iO(i);r(o?[t,o]:null)}),[n]);return(0,s.useEffect)((()=>null==t?void 0:t(n)),[n]),[n,i]}(n,m),R=(0,s.useRef)(null),z=(0,s.useRef)(null),I=(0,s.useRef)(null);!function({overflowContainerRef:e,leftTriggerRef:t,rightTriggerRef:n}){const r=(0,s.useRef)(null);(0,s.useEffect)((()=>{if((null==e?void 0:e.current)&&(null==t?void 0:t.current)&&(null==n?void 0:n.current))return r.current||(r.current=new IntersectionObserver((t=>{t.forEach((t=>{var n;if(t.target){const r=t.target.className.includes("right")?"right-shadow":"left-shadow";null===(n=e.current)||void 0===n||n.classList[t.isIntersecting?"remove":"add"](r)}}))}),{rootMargin:"10px"})),t.current&&r.current.observe(t.current),n.current&&r.current.observe(n.current),()=>{var e;null===(e=r.current)||void 0===e||e.disconnect()}}),[e,t,n])}({overflowContainerRef:R,leftTriggerRef:z,rightTriggerRef:I});const L="sticky-first-column"===p,$=(0,s.useMemo)((()=>({columns:n,sortable:u,setSortIndex:T,selected:h,variant:p,expandableRows:g,onSortEnd:P,onSelectRow:A})),[n,u,T,h,p,g,P,A]);return(0,a.jsx)(Qj.Provider,Object.assign({value:$},{children:(0,a.jsxs)(v,Object.assign({display:"flex",flexDirection:"column",width:"100%"},{children:[(0,a.jsx)(AO,Object.assign({ref:R,isSticky:L},{children:(0,a.jsx)(EO,Object.assign({variant:"custom",horizontal:L,vertical:!1},{children:(0,a.jsxs)(PO,Object.assign({role:"grid"},y,{children:[(0,a.jsx)(xO,{columns:n,sortable:u,selected:h,isEmpty:!t.length,isSomeSelected:O,isAllSelected:M,handleSelectAll:E,sortState:_,sortByColumn:D,expandableRows:g}),(0,a.jsx)(aO,Object.assign({enabled:"sticky-first-column"===p,leftRef:z,rightRef:I},{children:(0,a.jsxs)("tbody",{children:[0===t.length&&(0,a.jsx)(dO,Object.assign({empty:!0,disabled:!0},{children:(0,a.jsx)(nO,Object.assign({colSpan:99},{children:(0,a.jsx)(v,Object.assign({width:1,pt:75,pb:75,textAlign:"center",color:"dark30"},{children:r||"No data found"}))}))})),j.map((e=>(0,a.jsx)(Jj.Provider,Object.assign({value:{index:e.index,isExpanded:!1}},{children:o?(0,a.jsx)(o,{rowData:e.content,props:c}):(0,a.jsx)(dO,{children:n.flatMap((t=>{var n;return((null===(n=t.columns)||void 0===n?void 0:n.length)?t.columns:[t]).map((({id:t})=>(0,a.jsx)(nO,{children:e.content[t]},t)))}))})}),e.id||e.index)))]})}))]}))}))})),t.length>b&&(0,a.jsx)(OO,Object.assign({},C))]}))}))};TO.defaultProps={rowCount:5,noDataFound:"No data found",variant:"default"};const _O=TO,DO=(0,r.zo)(v)` display: block; text-transform: uppercase; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: ${({theme:e})=>e.color("dark20")}; -`,Kj=({columns:e,setColumns:t,trigger:n,title:r})=>{const i=(0,s.useCallback)((e=>()=>{t((t=>{const n=[...t];return n[e]=Object.assign(Object.assign({},t[e]),{hidden:!t[e].hidden}),n}))}),[]),o=(0,s.useMemo)((()=>[...new Set(e.map((e=>e.groupName)))]),[e]);return(0,a.jsx)(Mt,Object.assign({hover:!0,width:280,trigger:n},{children:(0,a.jsxs)(v,Object.assign({m:-16,width:"calc(100% + 32px)"},{children:[(0,a.jsx)(Gj,Object.assign({p:16},{children:r})),(0,a.jsx)(TS,{}),(0,a.jsx)(v,Object.assign({display:"flex",flexDirection:"column",p:16},{children:o.map((t=>(0,a.jsxs)(s.Fragment,{children:[t&&(0,a.jsx)(Gj,Object.assign({mt:8,pb:14},{children:t})),e.map(((e,n)=>{var r;const o=null===(r=e.title)||void 0===r?void 0:r.toString();return o&&o.length>0&&e.groupName===t&&(0,a.jsx)(Yr,{onChange:i(n),checked:!e.hidden,label:e.title,disabled:e.required},e.id)}))]},null!=t?t:"unnamed")))}))]}))}))},Xj=(0,s.createContext)([0,()=>null]),Qj=(0,s.createContext)({});var Jj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{const i=(0,s.useCallback)((e=>()=>{t((t=>{const n=[...t];return n[e]=Object.assign(Object.assign({},t[e]),{hidden:!t[e].hidden}),n}))}),[]),o=(0,s.useMemo)((()=>[...new Set(e.map((e=>e.groupName)))]),[e]);return(0,a.jsx)(zt,Object.assign({hover:!0,width:280,trigger:n},{children:(0,a.jsxs)(v,Object.assign({m:-16,width:"calc(100% + 32px)"},{children:[(0,a.jsx)(DO,Object.assign({p:16},{children:r})),(0,a.jsx)(mC,{}),(0,a.jsx)(v,Object.assign({display:"flex",flexDirection:"column",p:16},{children:o.map((t=>(0,a.jsxs)(s.Fragment,{children:[t&&(0,a.jsx)(DO,Object.assign({mt:8,pb:14},{children:t})),e.map(((e,n)=>{var r;const o=null===(r=e.title)||void 0===r?void 0:r.toString();return o&&o.length>0&&e.groupName===t&&(0,a.jsx)(ci,{onChange:i(n),checked:!e.hidden,label:e.title,disabled:e.required},e.id)}))]},null!=t?t:"unnamed")))}))]}))}))},zO=(0,s.createContext)([0,()=>null]),IO=(0,s.createContext)({});var LO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie.sizes.$48}; @@ -2058,7 +2058,7 @@ color: ${({theme:e})=>e.color("dark30")}; pointer-events: none; } -`,tO=(0,m.w)(((e,t)=>{var{children:n,hash:r,badgeLabel:i}=e,o=Jj(e,["children","hash","badgeLabel"]);const[l,c]=(e=>{const t=(0,s.useRef)(null),[n,r]=(0,s.useContext)(Xj),i=(0,s.useContext)(Qj),o=(0,s.useMemo)((()=>{const e=i.tabs;return i.tabs+=1,e}),[i]);(0,s.useEffect)((()=>{const t=()=>{if(e){const t=window.location.hash.replace("#","");e===t&&r(o)}};return t(),window.addEventListener("hashchange",t,!1),()=>window.removeEventListener("hashchange",t)}),[e,o]),(0,s.useEffect)((()=>{var a,s,l;const c=()=>{e?window.location.hash=e:r(o)},u=e=>{switch(e.key){case"End":r(i.tabs-1);break;case"Home":r(0);break;case"ArrowLeft":n>0&&r(n-1);break;case"ArrowRight":n{var e,n,r;null===(e=t.current)||void 0===e||e.removeEventListener("click",c),null===(n=t.current)||void 0===n||n.removeEventListener("keydown",u),null===(r=t.current)||void 0===r||r.classList.remove("active")}}),[n,e,o]);const a=(0,s.useMemo)((()=>n===o),[n,o]);return[t,a]})(r),u=Wt(l,t);return(0,a.jsxs)(eO,Object.assign({type:"button",ref:u,role:"tab"},o,{children:[n,i&&(0,a.jsx)(v,Object.assign({ml:"$8"},{children:(0,a.jsx)(ki,{label:i,variant:c?"purple":"primary",highlight:!0,size:"small"})}))]}))}));var nO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{children:n}=e,r=nO(e,["children"]);return(()=>{const[e]=(0,s.useContext)(Xj),t=(0,s.useContext)(Qj);return(0,s.useMemo)((()=>{const e=t.panels;return t.panels+=1,e}),[])===e})()?(0,a.jsx)(v,Object.assign({ref:t,role:"tabpanel"},r,{children:n})):null}));var iO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{activeTab:n,children:r,setActiveTab:i,width:o}=e,l=iO(e,["activeTab","children","setActiveTab","width"]);const c=(0,s.useState)(n||0),u=(0,s.useMemo)((()=>({tabs:0,panels:0})),[]),d=(0,s.useMemo)((()=>"number"==typeof n&&"function"==typeof i?[n,i]:c),[n,i,c]);return(0,a.jsx)(Qj.Provider,Object.assign({value:u},{children:(0,a.jsx)(Xj.Provider,Object.assign({value:d},{children:(0,a.jsx)(v,Object.assign({as:"ul",ref:t,role:"tablist",width:o},l,{children:r}))}))}))}),oO);var sO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{children:n,hash:r,badgeLabel:i}=e,o=LO(e,["children","hash","badgeLabel"]);const[l,c]=(e=>{const t=(0,s.useRef)(null),[n,r]=(0,s.useContext)(zO),i=(0,s.useContext)(IO),o=(0,s.useMemo)((()=>{const e=i.tabs;return i.tabs+=1,e}),[i]);(0,s.useEffect)((()=>{const t=()=>{if(e){const t=window.location.hash.replace("#","");e===t&&r(o)}};return t(),window.addEventListener("hashchange",t,!1),()=>window.removeEventListener("hashchange",t)}),[e,o]),(0,s.useEffect)((()=>{var a,s,l;const c=()=>{e?window.location.hash=e:r(o)},u=e=>{switch(e.key){case"End":r(i.tabs-1);break;case"Home":r(0);break;case"ArrowLeft":n>0&&r(n-1);break;case"ArrowRight":n{var e,n,r;null===(e=t.current)||void 0===e||e.removeEventListener("click",c),null===(n=t.current)||void 0===n||n.removeEventListener("keydown",u),null===(r=t.current)||void 0===r||r.classList.remove("active")}}),[n,e,o]);const a=(0,s.useMemo)((()=>n===o),[n,o]);return[t,a]})(r),u=Jt(l,t);return(0,a.jsxs)($O,Object.assign({type:"button",ref:u,role:"tab"},o,{children:[n,i&&(0,a.jsx)(v,Object.assign({ml:"$8"},{children:(0,a.jsx)($i,{label:i,variant:c?"purple":"primary",highlight:!0,size:"small"})}))]}))}));var ZO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{children:n}=e,r=ZO(e,["children"]);return(()=>{const[e]=(0,s.useContext)(zO),t=(0,s.useContext)(IO);return(0,s.useMemo)((()=>{const e=t.panels;return t.panels+=1,e}),[])===e})()?(0,a.jsx)(v,Object.assign({ref:t,role:"tabpanel"},r,{children:n})):null}));var VO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{activeTab:n,children:r,setActiveTab:i,width:o}=e,l=VO(e,["activeTab","children","setActiveTab","width"]);const c=(0,s.useState)(n||0),u=(0,s.useMemo)((()=>({tabs:0,panels:0})),[]),d=(0,s.useMemo)((()=>"number"==typeof n&&"function"==typeof i?[n,i]:c),[n,i,c]);return(0,a.jsx)(IO.Provider,Object.assign({value:u},{children:(0,a.jsx)(zO.Provider,Object.assign({value:d},{children:(0,a.jsx)(v,Object.assign({as:"ul",ref:t,role:"tablist",width:o},l,{children:r}))}))}))}),FO);var WO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie.fontSizes.$14}; @@ -2132,7 +2132,7 @@ } // TODO: Update styles of Content once available -`,cO=(0,m.w)(((e,t)=>{var{children:n}=e,r=sO(e,["children"]);return(0,a.jsx)(lO,Object.assign({ref:t},r,{children:n}))}));var uO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{children:n}=e,r=WO(e,["children"]);return(0,a.jsx)(UO,Object.assign({ref:t},r,{children:n}))}));var KO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{error:n,description:r,items:i,label:o,tooltip:l,placeholder:c,onChange:u,disabled:d,size:h,value:f,searchable:p,noItemsFound:m,autoComplete:g,renderItem:v}=e,y=uO(e,["error","description","items","label","tooltip","placeholder","onChange","disabled","size","value","searchable","noItemsFound","autoComplete","renderItem"]);const[b,w]=(0,s.useState)(""),[x,k]=(0,s.useState)(!1),[S,C]=(0,s.useState)([]),[j,O]=(0,s.useState)(!1),M=(0,s.useRef)(null),P=(0,s.useCallback)((e=>()=>{"function"==typeof u&&u(e.value)}),[u]),E=(0,s.useCallback)((e=>{!j&&["ArrowUp","Enter"," "].indexOf(e.key)>-1&&(e.preventDefault(),O(!0)),"Escape"===e.key&&(e.preventDefault(),O(!1),e.currentTarget.blur())}),[j]),A=(0,s.useCallback)((()=>{d||O(!j)}),[d,j]);(0,s.useEffect)((()=>{const e=i.find((e=>e.value===f));w((null==e?void 0:e.label)||""),j||k(!1)}),[f,i,j]),(0,s.useEffect)((()=>{const e=p?i.filter((e=>!x||e.label.toLowerCase().indexOf(b.toLowerCase())>-1)):i,t=[];e.forEach(((n,r)=>{n.optgroup&&(0===r||e[r-1].optgroup!==n.optgroup)&&n.optgroup.length>0&&t.push(n.optgroup),t.push(n)})),C(t)}),[i,x,p,b]);return(0,a.jsxs)(dO,Object.assign({open:j},y,{children:[(0,a.jsx)("div",Object.assign({ref:M},{children:(0,a.jsxs)(gi,Object.assign({trigger:(0,a.jsx)(un,{label:o,tooltip:l,value:b,size:h,disabled:d,placeholder:c,onChange:p?e=>{w(e.target.value),k(!0)}:void 0,onKeyDown:E,iconRight:rC.Z,error:n&&("string"==typeof n||"boolean"==typeof n),autoComplete:g,onClick:A,readOnly:!g&&!p,ref:t}),visible:j,setVisible:O,matchWidth:!0,maxHeight:200,size:"large"===h?"medium":h,"data-testid":y.id},{children:[S.map((e=>"string"==typeof e?(0,a.jsx)(gi.Title,{children:e},`title-${e}`):(0,a.jsx)(gi.Item,Object.assign({badge:e.badge&&(0,a.jsx)(ki,Object.assign({size:"small"},e.badge)),disabled:e.disabled,active:f===e.value,onClick:P(e)},{children:v?(0,a.jsx)(v,{item:e}):e.label}),e.value))),!S.length&&(0,a.jsx)(gi.Title,{children:m||"No items found"})]}))})),"string"==typeof n&&(0,a.jsx)(cn,{children:n}),r&&(0,a.jsx)(ln,Object.assign({error:n},{children:r}))]}))}));function fO(e,t){var n=Object.create(null);return e&&s.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,s.isValidElement)(e)?t(e):e}(e)})),n}function pO(e,t,n){return null!=n[t]?n[t]:e.props[t]}function mO(e,t,n){var r=fO(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r{var{error:n,description:r,items:i,label:o,tooltip:l,placeholder:c,onChange:u,disabled:d,size:h,value:f,searchable:p,noItemsFound:m,autoComplete:g,renderItem:v}=e,y=KO(e,["error","description","items","label","tooltip","placeholder","onChange","disabled","size","value","searchable","noItemsFound","autoComplete","renderItem"]);const[b,w]=(0,s.useState)(""),[x,k]=(0,s.useState)(!1),[S,C]=(0,s.useState)([]),[j,O]=(0,s.useState)(!1),M=(0,s.useRef)(null),E=(0,s.useCallback)((e=>()=>{"function"==typeof u&&u(e.value)}),[u]),P=(0,s.useCallback)((e=>{!j&&["ArrowUp","Enter"," "].indexOf(e.key)>-1&&(e.preventDefault(),O(!0)),"Escape"===e.key&&(e.preventDefault(),O(!1),e.currentTarget.blur())}),[j]),A=(0,s.useCallback)((()=>{d||O(!j)}),[d,j]);(0,s.useEffect)((()=>{const e=i.find((e=>e.value===f));w((null==e?void 0:e.label)||""),j||k(!1)}),[f,i,j]),(0,s.useEffect)((()=>{const e=p?i.filter((e=>!x||e.label.toLowerCase().indexOf(b.toLowerCase())>-1)):i,t=[];e.forEach(((n,r)=>{n.optgroup&&(0===r||e[r-1].optgroup!==n.optgroup)&&n.optgroup.length>0&&t.push(n.optgroup),t.push(n)})),C(t)}),[i,x,p,b]);return(0,a.jsxs)(qO,Object.assign({open:j},y,{children:[(0,a.jsx)("div",Object.assign({ref:M},{children:(0,a.jsxs)(_i,Object.assign({trigger:(0,a.jsx)(yn,{label:o,tooltip:l,value:b,size:h,disabled:d,placeholder:c,onChange:p?e=>{w(e.target.value),k(!0)}:void 0,onKeyDown:P,iconRight:HC.Z,error:n&&("string"==typeof n||"boolean"==typeof n),autoComplete:g,onClick:A,readOnly:!g&&!p,ref:t}),visible:j,setVisible:O,matchWidth:!0,maxHeight:200,size:"large"===h?"medium":h,"data-testid":y.id},{children:[S.map((e=>"string"==typeof e?(0,a.jsx)(_i.Title,{children:e},`title-${e}`):(0,a.jsx)(_i.Item,Object.assign({badge:e.badge&&(0,a.jsx)($i,Object.assign({size:"small"},e.badge)),disabled:e.disabled,active:f===e.value,onClick:E(e)},{children:v?(0,a.jsx)(v,{item:e}):e.label}),e.value))),!S.length&&(0,a.jsx)(_i.Title,{children:m||"No items found"})]}))})),"string"==typeof n&&(0,a.jsx)(vn,{children:n}),r&&(0,a.jsx)(gn,Object.assign({error:n},{children:r}))]}))}));GO.defaultProps={size:"medium",searchable:!1};var XO=n(6464);function QO(e,t){var n=Object.create(null);return e&&s.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,s.isValidElement)(e)?t(e):e}(e)})),n}function JO(e,t,n){return null!=n[t]?n[t]:e.props[t]}function eM(e,t,n){var r=QO(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r{var{message:t,timeout:n,onClose:r}=e,i=bO(e,["message","timeout","onClose"]);const{actions:o,close:l,closeAction:c,id:u,icon:d,variant:h,persist:f,messageActions:p}=t,m=d;(0,s.useEffect)((()=>{if(f)return;const e=setTimeout((()=>{r(t.id)}),t.autoHide||n);return()=>{clearTimeout(e)}}),[u,f]);return(0,a.jsxs)(wO,Object.assign({variant:h||"default",className:p?"action":""},i,{children:[m&&(0,a.jsx)(m,{size:"small"}),p?(0,a.jsx)(F,Object.assign({variant:"secondary",onClick:()=>p&&p(u)},{children:t.message})):(0,a.jsx)("p",{children:t.message}),(0,a.jsxs)("div",{children:[o&&o(u),l&&(0,a.jsx)(v,Object.assign({display:"flex"},{children:(0,a.jsx)(v,Object.assign({ml:8,alignSelf:"center"},{children:(0,a.jsx)(F,{onClick:()=>(r(t.id),c&&c()),variant:"ghost",size:"small",icon:B.Z})}))}))]})]}))};var kO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{message:t,timeout:n,onClose:r}=e,i=iM(e,["message","timeout","onClose"]);const{actions:o,close:l,closeAction:c,id:u,icon:d,variant:h,persist:f,messageActions:p}=t,m=d;(0,s.useEffect)((()=>{if(f)return;const e=setTimeout((()=>{r(t.id)}),t.autoHide||n);return()=>{clearTimeout(e)}}),[u,f]);return(0,a.jsxs)(oM,Object.assign({variant:h||"default",className:p?"action":""},i,{children:[m&&(0,a.jsx)(m,{size:"small"}),p?(0,a.jsx)(F,Object.assign({variant:"secondary",onClick:()=>p&&p(u)},{children:t.message})):(0,a.jsx)("p",{children:t.message}),(0,a.jsxs)("div",{children:[o&&o(u),l&&(0,a.jsx)(v,Object.assign({display:"flex"},{children:(0,a.jsx)(v,Object.assign({ml:8,alignSelf:"center"},{children:(0,a.jsx)(F,{onClick:()=>(r(t.id),c&&c()),variant:"ghost",size:"small",icon:B.Z})}))}))]})]}))};var sM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie.zIndex.snackBar}; bottom: 0px; right: 20px; pointer-events: none; -`,CO=(0,s.createContext)({addSnackbar:()=>"",closeSnackbar:()=>null}),jO=()=>(0,s.useContext)(CO),OO=e=>{var{max:t,timeout:n,children:r}=e,i=kO(e,["max","timeout","children"]);const[o,l]=(0,s.useState)([]),c=e=>{l((t=>t.filter((t=>t.id!==e))))},u=e=>{const n=((new Date).getTime()+Math.random()).toString();if(e.unique){const t=o.find((t=>t.message===e.message));if(t)return t.id}const r=o.filter((e=>!e.persist));if(t&&t<=o.length)for(let e=0;e[...t,Object.assign({id:n},e)])),n},d=(0,s.useMemo)((()=>({addSnackbar:u,closeSnackbar:c})),[u,c]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(SO,Object.assign({},i,{children:o.map((e=>(0,a.jsx)(xt.Slide,Object.assign({$x:"100%",$y:"0"},{children:(0,a.jsx)(xO,{onClose:c,timeout:n||5e3,message:e},e.id)}),e.id)))})),(0,a.jsx)(CO.Provider,Object.assign({value:d},{children:r}))]})};OO.defaultProps={timeout:5e3};const MO=OO,PO=e=>t=>(0,a.jsx)(CO.Consumer,{children:n=>(0,a.jsx)(e,Object.assign({},n,t))});var EO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i"",closeSnackbar:()=>null}),uM=()=>(0,s.useContext)(cM),dM=e=>{var{max:t,timeout:n,children:r}=e,i=sM(e,["max","timeout","children"]);const[o,l]=(0,s.useState)([]),c=e=>{l((t=>t.filter((t=>t.id!==e))))},u=e=>{const n=((new Date).getTime()+Math.random()).toString();if(e.unique){const t=o.find((t=>t.message===e.message));if(t)return t.id}const r=o.filter((e=>!e.persist));if(t&&t<=o.length)for(let e=0;e[...t,Object.assign({id:n},e)])),n},d=(0,s.useMemo)((()=>({addSnackbar:u,closeSnackbar:c})),[u,c]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(lM,Object.assign({},i,{children:o.map((e=>(0,a.jsx)(Pt.Slide,Object.assign({$x:"100%",$y:"0"},{children:(0,a.jsx)(aM,{onClose:c,timeout:n||5e3,message:e},e.id)}),e.id)))})),(0,a.jsx)(cM.Provider,Object.assign({value:d},{children:r}))]})};dM.defaultProps={timeout:5e3};const hM=dM,fM=e=>t=>(0,a.jsx)(cM.Consumer,{children:n=>(0,a.jsx)(e,Object.assign({},n,t))});var pM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie.color("dark50")}; } } -`,TO=r.iv` +`,gM=r.iv` appearance: none; position: relative; width: ${({theme:e})=>e.sizes.$28}; @@ -2270,11 +2270,11 @@ url("data:image/svg+xml,%3Csvg width='28' height='28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='4' y='4' width='20' height='20' rx='10' fill='%236C50FA'/%3E%3C/svg%3E"); border: none; cursor: pointer; -`,_O=r.iv` +`,vM=r.iv` background-image: url("data:image/svg+xml,%3Csvg width='28' height='28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='4' y='4' width='20' height='20' rx='10' fill='%2364728B'/%3E%3C/svg%3E"); -`,DO=r.iv` +`,yM=r.iv` background-image: url("data:image/svg+xml,%3Csvg width='28' height='28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='4' y='4' width='20' height='20' rx='10' fill='%23583ADC'/%3E%3Crect x='1' y='1' width='26' height='26' rx='13' stroke='%23583ADC' stroke-width='2'/%3E%3C/svg%3E"); -`,RO=r.zo.input` +`,bM=r.zo.input` position: relative; z-index: 3; width: 100%; @@ -2285,32 +2285,32 @@ outline: none; &:disabled::-webkit-slider-thumb { - ${_O} + ${vM} pointer-events: none; } &:disabled::-moz-range-thumb { - ${_O} + ${vM} } &::-webkit-slider-thumb { - ${TO} + ${gM} } &::-moz-range-thumb { - ${TO} + ${gM} } &.focus-visible::-webkit-slider-thumb, &::-webkit-slider-thumb:hover { - ${DO} + ${yM} } &.focus-visible::-moz-range-thumb, &::-moz-range-thumb:hover { - ${DO} + ${yM} } -`,zO=r.zo.div` +`,wM=r.zo.div` position: absolute; content: ''; top: 10px; @@ -2319,7 +2319,7 @@ background: ${({theme:e})=>e.color("dark0","purple30")}; border-radius: ${({theme:e})=>e.sizes.$4}; width: calc(${({width:e})=>e}% - ${({width:e})=>.2*e}px); -`,IO=(0,m.w)(((e,t)=>{var{labelMin:n,labelMax:r}=e,i=EO(e,["labelMin","labelMax"]);const o="string"==typeof i.value?parseInt(i.value||"0",10):i.value,s="string"==typeof i.min?parseInt(i.min,10):i.min||0,l="string"==typeof i.max?parseInt(i.max,10):i.max||100,c="number"==typeof o?100*(o-s)/(l-s):0;return(0,a.jsxs)(AO,{children:[(0,a.jsx)("strong",{children:n||i.min}),(0,a.jsxs)("div",{children:[(0,a.jsx)(zO,{width:c}),(0,a.jsx)(RO,Object.assign({ref:t,type:"range"},i))]}),(0,a.jsx)("span",{children:r||i.max})]})}));var LO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{labelMin:n,labelMax:r}=e,i=pM(e,["labelMin","labelMax"]);const o="string"==typeof i.value?parseInt(i.value||"0",10):i.value,s="string"==typeof i.min?parseInt(i.min,10):i.min||0,l="string"==typeof i.max?parseInt(i.max,10):i.max||100,c="number"==typeof o?100*(o-s)/(l-s):0;return(0,a.jsxs)(mM,{children:[(0,a.jsx)("strong",{children:n||i.min}),(0,a.jsxs)("div",{children:[(0,a.jsx)(wM,{width:c}),(0,a.jsx)(bM,Object.assign({ref:t,type:"range"},i))]}),(0,a.jsx)("span",{children:r||i.max})]})}));var kM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{children:t,onChange:n,value:r}=e,i=LO(e,["children","onChange","value"]);const o=(0,s.useMemo)((()=>({handleChange:e=>{n&&n(e)},groupValue:r})),[r]);return(0,a.jsx)(NO,Object.assign({},i,{children:(0,a.jsx)($O.Provider,Object.assign({value:o},{children:t}))}))};ZO.defaultProps={};const HO=ZO;var VO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{children:t,onChange:n,value:r}=e,i=kM(e,["children","onChange","value"]);const o=(0,s.useMemo)((()=>({handleChange:e=>{n&&n(e)},groupValue:r})),[r]);return(0,a.jsx)(CM,Object.assign({},i,{children:(0,a.jsx)(SM.Provider,Object.assign({value:o},{children:t}))}))};jM.defaultProps={};const OM=jM;var MM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie&&`\n cursor: not-allowed;\n background: transparent;\n opacity: 0.4;\n color: ${t.color("dark20")({theme:t})};\n background: ${t.color("dark60")({theme:t})};\n `} ${u.By} -`,BO=r.zo.span` +`,PM=r.zo.span` display: flex; align-items: center; padding: 0 8px; @@ -2366,7 +2366,7 @@ font-family: 'Source Code Pro', Monaco, monospace; font-weight: bold; } -`,WO=e=>{var{label:t,value:n,content:r,onChange:i,disabled:o,active:l}=e,c=VO(e,["label","value","content","onChange","disabled","active"]);const{handleChange:u,groupValue:d}=(0,s.useContext)($O),h=void 0!==d?d===n:l;return(0,a.jsxs)(FO,Object.assign({disabled:o,onClick:o?void 0:e=>{"function"==typeof u&&u(n),"function"==typeof i&&i(e)},active:h,className:"chip",tabIndex:0},c,{children:[(0,a.jsx)("p",Object.assign({className:"chipLabel"},{children:t})),r&&(0,a.jsx)(BO,Object.assign({active:h,className:""+("number"==typeof r?"number":"")},{children:r}))]}))};WO.defaultProps={active:!1};const UO=WO;var YO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{label:t,value:n,content:r,onChange:i,disabled:o,active:l}=e,c=MM(e,["label","value","content","onChange","disabled","active"]);const{handleChange:u,groupValue:d}=(0,s.useContext)(SM),h=void 0!==d?d===n:l;return(0,a.jsxs)(EM,Object.assign({disabled:o,onClick:o?void 0:e=>{"function"==typeof u&&u(n),"function"==typeof i&&i(e)},active:h,className:"chip",tabIndex:0},c,{children:[(0,a.jsx)("p",Object.assign({className:"chipLabel"},{children:t})),r&&(0,a.jsx)(PM,Object.assign({active:h,className:""+("number"==typeof r?"number":"")},{children:r}))]}))};AM.defaultProps={active:!1};const TM=AM;var _M=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i"light"===e.name?"rgba(91, 105, 123, 0.8)":"rgba(0, 0, 0, 0.6)"}; z-index: ${({theme:e})=>e.zIndex.overlay}; -`,GO=r.zo.aside` +`,RM=r.zo.aside` height: 100%; max-height: 100%; position: absolute; @@ -2446,7 +2446,7 @@ } } } -`,KO=({children:e})=>{const t=(0,s.useMemo)((()=>document.createElement("div")),[]);return(0,s.useEffect)((()=>(document.body.appendChild(t),()=>{document.body.removeChild(t)})),[]),(0,Y.createPortal)(e,t)},XO=e=>{var{variant:t,open:n,onClose:r,children:i,width:o}=e,l=YO(e,["variant","open","onClose","children","width"]);const c=(0,s.useRef)(null),[u,d]=(0,s.useState)(!1),[h,f]=(0,s.useState)(!0);Tr(n),(0,s.useEffect)((()=>{let e;return n&&f(!1),n||(e=window.setTimeout((()=>{f(!0)}),200)),()=>{clearTimeout(e)}}),[n,h,f]),(0,s.useEffect)((()=>{c.current&&c.current.focus();const e=e=>{"Escape"===e.key&&r()};return n&&window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}),[n]);return(0,a.jsx)(xt.Fade,Object.assign({in:n,timeout:{enter:200,exit:120}},{children:(0,a.jsx)(KO,{children:(0,a.jsx)(qO,Object.assign({ref:c,onMouseDown:e=>{d(e.target===c.current)},onClick:e=>{e.target===c.current&&u&&r()},role:"presentation"},{children:(0,a.jsx)(xt.Slide,Object.assign({in:n,enter:!1,timeout:{appear:200,exit:120},$x:"right"===l.position?`${o}px`:`-${o}px`,$y:"0",appear:!0},{children:(0,a.jsx)(GO,Object.assign({className:t,onClose:r,width:o},l,{role:"dialog"},{children:i}))}))}))})}))};XO.defaultProps={width:400,backgroundColor:"dark80",position:"left"};const QO=XO;var JO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{const t=(0,s.useMemo)((()=>document.createElement("div")),[]);return(0,s.useEffect)((()=>(document.body.appendChild(t),()=>{document.body.removeChild(t)})),[]),(0,Y.createPortal)(e,t)},IM=e=>{var{variant:t,open:n,onClose:r,children:i,width:o}=e,l=_M(e,["variant","open","onClose","children","width"]);const c=(0,s.useRef)(null),[u,d]=(0,s.useState)(!1),[h,f]=(0,s.useState)(!0);Yr(n),(0,s.useEffect)((()=>{let e;return n&&f(!1),n||(e=window.setTimeout((()=>{f(!0)}),200)),()=>{clearTimeout(e)}}),[n,h,f]),(0,s.useEffect)((()=>{c.current&&c.current.focus();const e=e=>{"Escape"===e.key&&r()};return n&&window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}),[n]);return(0,a.jsx)(Pt.Fade,Object.assign({in:n,timeout:{enter:200,exit:120}},{children:(0,a.jsx)(zM,{children:(0,a.jsx)(DM,Object.assign({ref:c,onMouseDown:e=>{d(e.target===c.current)},onClick:e=>{e.target===c.current&&u&&r()},role:"presentation"},{children:(0,a.jsx)(Pt.Slide,Object.assign({in:n,enter:!1,timeout:{appear:200,exit:120},$x:"right"===l.position?`${o}px`:`-${o}px`,$y:"0",appear:!0},{children:(0,a.jsx)(RM,Object.assign({className:t,onClose:r,width:o},l,{role:"dialog"},{children:i}))}))}))})}))};IM.defaultProps={width:400,backgroundColor:"dark80",position:"left"};const LM=IM;var $M=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie.screen.m} { display: none; } -`,tM=(0,r.zo)(V).attrs({size:"large"})` +`,ZM=(0,r.zo)(V).attrs({size:"large"})` width: 100%; padding: 0 0 ${({theme:e})=>e.sizes.$8}; text-align: left; line-height: ${({theme:e})=>e.lineHeights.$120}; -`,nM=(0,r.zo)(V)` +`,HM=(0,r.zo)(V)` width: 100%; justify-content: space-between; padding: 0 0 0 46px; @@ -2524,23 +2524,23 @@ max-width: 320px; > div:first-child { display: none; } -`,rM={Switch:tM,Button:nM},iM=(0,m.w)(((e,t)=>{var{children:n}=e,r=JO(e,["children"]);return(0,a.jsx)(eM,Object.assign({ref:t},r,{children:n}))}),rM);iM.defaultProps={fullHeight:!0};var oM=n(9523);const aM="object"==typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",sM=()=>{const[e,t]=(0,s.useState)(aM);return(0,s.useEffect)((()=>{const e=e=>{const n=e.matches?"dark":"light";t(n)};return"object"==typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",e,!0),()=>{"object"==typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",e,!0)}})),e};var lM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{children:n}=e,r=$M(e,["children"]);return(0,a.jsx)(NM,Object.assign({ref:t},r,{children:n}))}),VM);FM.defaultProps={fullHeight:!0};var BM=n(9523);const WM="object"==typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",UM=()=>{const[e,t]=(0,s.useState)(WM);return(0,s.useEffect)((()=>{const e=e=>{const n=e.matches?"dark":"light";t(n)};return"object"==typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",e,!0),()=>{"object"==typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",e,!0)}})),e};var YM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i *:not(:last-child) { margin-right: 16px; white-space: nowrap; } -`,dM=e=>{var{heading:t,subheading:n,actions:r}=e,i=lM(e,["heading","subheading","actions"]);return(0,a.jsxs)(cM,Object.assign({display:["block","block","flex"]},i,{children:[(0,a.jsxs)(cO,Object.assign({maxWidth:["100%","100%","60%","70%"],mb:[16,16,0]},{children:[(0,a.jsx)("h2",{children:t}),n&&(0,a.jsx)("p",{children:n})]})),(0,a.jsx)(uM,Object.assign({display:"flex",mt:[20,20,0]},{children:r}))]}))},hM=(0,r.zo)(v)` +`,GM=e=>{var{heading:t,subheading:n,actions:r}=e,i=YM(e,["heading","subheading","actions"]);return(0,a.jsxs)(KM,Object.assign({display:["block","block","flex"]},i,{children:[(0,a.jsxs)(YO,Object.assign({maxWidth:["100%","100%","60%","70%"],mb:[16,16,0]},{children:[(0,a.jsx)("h2",{children:t}),n&&(0,a.jsx)("p",{children:n})]})),(0,a.jsx)(qM,Object.assign({display:"flex",mt:[20,20,0]},{children:r}))]}))},XM=(0,r.zo)(v)` display: flex; align-items: center; justify-content: center; width: 63px; height: 64px; -`,fM=r.zo.div` +`,QM=r.zo.div` display: flex; flex-direction: column; align-items: center; @@ -2549,11 +2549,11 @@ max-width: 320px; width: 64px; background-color: ${({theme:e})=>e.color("dark80","light100")}; border-right: 1px solid ${({theme:e})=>e.color("dark60")}; -`,pM=({children:e,className:t})=>(0,a.jsx)(fM,Object.assign({className:t},{children:e}));pM.defaultProps={};const mM=pM,gM=({children:e})=>(0,a.jsx)(v,Object.assign({mb:10,color:"dark20",fontWeight:"500"},{children:e})),vM=(0,r.zo)(v)` +`,JM=({children:e,className:t})=>(0,a.jsx)(QM,Object.assign({className:t},{children:e}));JM.defaultProps={};const eE=JM,tE=({children:e})=>(0,a.jsx)(v,Object.assign({mb:10,color:"dark20",fontWeight:"500"},{children:e})),nE=(0,r.zo)(v)` font-family: ${({theme:e})=>e.fonts.title}; font-size: ${({theme:e})=>e.fontSizes.$24}; font-weight: ${({theme:e})=>e.fontWeights.bold}; -`,yM=({children:e,unit:t,details:n})=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(v,Object.assign({display:"flex",flexDirection:"row",alignItems:"flex-end",mb:10,width:n?"60%":"100%"},{children:[(0,a.jsx)(vM,Object.assign({mr:4,color:"dark40"},{children:e})),t&&(0,a.jsx)(v,Object.assign({fontWeight:500},{children:t}))]})),n?(0,a.jsx)(v,Object.assign({display:"flex",width:"40%",ml:["5px","5px","0","0"]},{children:n})):null]}),bM=({label:e,kpi:t,kpiUnit:n,kpiDetails:r,diff:i,diffDetails:o})=>(0,a.jsxs)(v,{children:[(0,a.jsx)(gM,{children:e}),(0,a.jsx)(v,Object.assign({display:"flex",flexDirection:"row",alignItems:"center"},{children:(0,a.jsx)(yM,Object.assign({unit:n,details:r},{children:t}))})),(0,a.jsxs)(v,Object.assign({display:"flex",alignItems:"flex-end"},{children:[o?(0,a.jsx)(v,Object.assign({flex:"1",mr:"10px"},{children:o})):null,i?(0,a.jsx)(v,{children:i}):null]}))]});bM.displayName="Stat";const wM=bM;var xM=n(1549);const kM=(0,r.zo)(v)` +`,rE=({children:e,unit:t,details:n})=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(v,Object.assign({display:"flex",flexDirection:"row",alignItems:"flex-end",mb:10,width:n?"60%":"100%"},{children:[(0,a.jsx)(nE,Object.assign({mr:4,color:"dark40"},{children:e})),t&&(0,a.jsx)(v,Object.assign({fontWeight:500},{children:t}))]})),n?(0,a.jsx)(v,Object.assign({display:"flex",width:"40%",ml:["5px","5px","0","0"]},{children:n})):null]}),iE=({label:e,kpi:t,kpiUnit:n,kpiDetails:r,diff:i,diffDetails:o})=>(0,a.jsxs)(v,{children:[(0,a.jsx)(tE,{children:e}),(0,a.jsx)(v,Object.assign({display:"flex",flexDirection:"row",alignItems:"center"},{children:(0,a.jsx)(rE,Object.assign({unit:n,details:r},{children:t}))})),(0,a.jsxs)(v,Object.assign({display:"flex",alignItems:"flex-end"},{children:[o?(0,a.jsx)(v,Object.assign({flex:"1",mr:"10px"},{children:o})):null,i?(0,a.jsx)(v,{children:i}):null]}))]});iE.displayName="Stat";const oE=iE;var aE=n(1549);const sE=(0,r.zo)(v)` display: flex; height: 100%; width: 1px; @@ -2569,43 +2569,43 @@ max-width: 320px; top: ${({isFirst:e})=>e?"50%":"0"}; left: 13px; } -`,SM=(0,r.zo)(v)` +`,lE=(0,r.zo)(v)` width: 25px; margin-right: 15px; display: flex; justify-content: center; align-items: center; z-index: 20; -`,CM=({label:e,details:t,isFirst:n,isLast:r,variant:i="small"})=>"large"===i?(0,a.jsxs)(v,Object.assign({display:"flex",width:"100%",alignItems:"center",height:"60px",flexDirection:"row"},{children:[(0,a.jsx)(kM,{isFirst:n,isLast:r}),(0,a.jsx)(SM,{children:(0,a.jsx)(xM.Z,{colors:["dark0","light0"],size:11})}),(0,a.jsxs)(v,Object.assign({display:"flex",flexDirection:"column"},{children:[(0,a.jsx)(v,Object.assign({mb:4,colors:["dark20","light20"]},{children:e})),(0,a.jsx)(v,Object.assign({fontWeight:"bold"},{children:t}))]}))]})):(0,a.jsxs)(v,Object.assign({display:"flex",width:"100%",alignItems:"center",height:"40px"},{children:[(0,a.jsx)(kM,{isFirst:n,isLast:r}),(0,a.jsx)(SM,{children:(0,a.jsx)(xM.Z,{colors:["dark50","light50"],size:7})}),(0,a.jsx)(v,Object.assign({pr:16,colors:["dark20","light20"]},{children:e})),(0,a.jsx)(v,Object.assign({ml:"auto",colors:["dark30","light30"]},{children:t}))]})),jM=({icon:e,label:t,details:n,isFirst:r,isLast:i})=>(0,a.jsxs)(v,Object.assign({display:"flex",flexDirection:"row",width:"100%",alignItems:"center",height:"40px"},{children:[(0,a.jsx)(kM,{isFirst:r,isLast:i}),(0,a.jsx)(SM,{children:e}),(0,a.jsx)(v,Object.assign({fontWeight:"bold"},{children:t})),n?(0,a.jsx)(v,Object.assign({ml:"auto",fontWeight:"bold"},{children:n})):null]})),OM=({id:e,className:t,data:n})=>(0,a.jsx)(v,Object.assign({display:"flex",flexDirection:"column",id:e,className:t},{children:null==n?void 0:n.map((({id:e,icon:t,label:r,details:i,items:o},l)=>{const c=0===l,u=l===n.length-1;return(0,a.jsxs)(s.Fragment,{children:[r?(0,a.jsx)(jM,{icon:t,label:r,details:i,isFirst:c,isLast:u&&!o.length}):null,o.map(((e,t)=>(0,a.jsx)(CM,{label:e.label,details:e.details,isFirst:c&&0===t&&!r,isLast:u&&t===o.length-1,variant:e.variant},e.id)))]},e)}))}));OM.defaultProps={data:[]};const MM=OM;var PM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i"large"===i?(0,a.jsxs)(v,Object.assign({display:"flex",width:"100%",alignItems:"center",height:"60px",flexDirection:"row"},{children:[(0,a.jsx)(sE,{isFirst:n,isLast:r}),(0,a.jsx)(lE,{children:(0,a.jsx)(aE.Z,{colors:["dark0","light0"],size:11})}),(0,a.jsxs)(v,Object.assign({display:"flex",flexDirection:"column"},{children:[(0,a.jsx)(v,Object.assign({mb:4,colors:["dark20","light20"]},{children:e})),(0,a.jsx)(v,Object.assign({fontWeight:"bold"},{children:t}))]}))]})):(0,a.jsxs)(v,Object.assign({display:"flex",width:"100%",alignItems:"center",height:"40px"},{children:[(0,a.jsx)(sE,{isFirst:n,isLast:r}),(0,a.jsx)(lE,{children:(0,a.jsx)(aE.Z,{colors:["dark50","light50"],size:7})}),(0,a.jsx)(v,Object.assign({pr:16,colors:["dark20","light20"]},{children:e})),(0,a.jsx)(v,Object.assign({ml:"auto",colors:["dark30","light30"]},{children:t}))]})),uE=({icon:e,label:t,details:n,isFirst:r,isLast:i})=>(0,a.jsxs)(v,Object.assign({display:"flex",flexDirection:"row",width:"100%",alignItems:"center",height:"40px"},{children:[(0,a.jsx)(sE,{isFirst:r,isLast:i}),(0,a.jsx)(lE,{children:e}),(0,a.jsx)(v,Object.assign({fontWeight:"bold"},{children:t})),n?(0,a.jsx)(v,Object.assign({ml:"auto",fontWeight:"bold"},{children:n})):null]})),dE=({id:e,className:t,data:n})=>(0,a.jsx)(v,Object.assign({display:"flex",flexDirection:"column",id:e,className:t},{children:null==n?void 0:n.map((({id:e,icon:t,label:r,details:i,items:o},l)=>{const c=0===l,u=l===n.length-1;return(0,a.jsxs)(s.Fragment,{children:[r?(0,a.jsx)(uE,{icon:t,label:r,details:i,isFirst:c,isLast:u&&!o.length}):null,o.map(((e,t)=>(0,a.jsx)(cE,{label:e.label,details:e.details,isFirst:c&&0===t&&!r,isLast:u&&t===o.length-1,variant:e.variant},e.id)))]},e)}))}));dE.defaultProps={data:[]};const hE=dE;var fE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie.color("dark60","light70")}; -`,AM=y.default.stop` +`,mE=y.default.stop` stop-color: ${({theme:e})=>e.color("dark50","light40")}; -`,TM=e=>{var{baseUrl:t="",backgroundOpacity:n=.9,foregroundOpacity:r=.4,gradientRatio:i=2,interval:o=.15,speed:l=1.5,uniqueKey:c,children:u}=e,d=PM(e,["baseUrl","backgroundOpacity","foregroundOpacity","gradientRatio","interval","speed","uniqueKey","children"]);const h=(0,s.useRef)(null!=c?c:(0,OS.hQ)()),f=`${h.current}-diff`,p=`${h.current}-animated-diff`,m=`0; ${o}; 1`,g=`${l}s`;return(0,a.jsxs)("svg",Object.assign({role:"presentation"},d,{children:[(0,a.jsx)("rect",{role:"presentation",x:"0",y:"0",width:"100%",height:"100%",clipPath:`url(${t}#${f})`,style:{fill:`url(${t}#${p})`}}),(0,a.jsxs)("defs",{children:[(0,a.jsx)("clipPath",Object.assign({id:f},{children:u})),(0,a.jsxs)("linearGradient",Object.assign({id:p},{children:[(0,a.jsx)(EM,Object.assign({offset:"0%",stopOpacity:n},{children:(0,a.jsx)("animate",{attributeName:"offset",values:`${-i}; ${-i}; 1`,keyTimes:m,dur:g,repeatCount:"indefinite"})})),(0,a.jsx)(AM,Object.assign({offset:"50%",stopOpacity:r},{children:(0,a.jsx)("animate",{attributeName:"offset",values:`${-i/2}; ${-i/2}; ${1+i/2}`,keyTimes:m,dur:g,repeatCount:"indefinite"})})),(0,a.jsx)(EM,Object.assign({stopOpacity:n},{children:(0,a.jsx)("animate",{attributeName:"offset",values:`0; 0; ${1+i}`,keyTimes:m,dur:g,repeatCount:"indefinite"})}))]}))]})]}))},_M=TM,DM=({loading:e,children:t,skeleton:n})=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(xt.Fade,Object.assign({in:e,timeout:{enter:300},exit:!1},{children:(0,a.jsx)(n,{})})),(0,a.jsx)(xt.Fade,Object.assign({in:!e,timeout:{enter:300},exit:!1},{children:(0,a.jsx)(a.Fragment,{children:t})}))]}),RM=r.zo.rect` +`,gE=e=>{var{baseUrl:t="",backgroundOpacity:n=.9,foregroundOpacity:r=.4,gradientRatio:i=2,interval:o=.15,speed:l=1.5,uniqueKey:c,children:u}=e,d=fE(e,["baseUrl","backgroundOpacity","foregroundOpacity","gradientRatio","interval","speed","uniqueKey","children"]);const h=(0,s.useRef)(null!=c?c:(0,uC.hQ)()),f=`${h.current}-diff`,p=`${h.current}-animated-diff`,m=`0; ${o}; 1`,g=`${l}s`;return(0,a.jsxs)("svg",Object.assign({role:"presentation"},d,{children:[(0,a.jsx)("rect",{role:"presentation",x:"0",y:"0",width:"100%",height:"100%",clipPath:`url(${t}#${f})`,style:{fill:`url(${t}#${p})`}}),(0,a.jsxs)("defs",{children:[(0,a.jsx)("clipPath",Object.assign({id:f},{children:u})),(0,a.jsxs)("linearGradient",Object.assign({id:p},{children:[(0,a.jsx)(pE,Object.assign({offset:"0%",stopOpacity:n},{children:(0,a.jsx)("animate",{attributeName:"offset",values:`${-i}; ${-i}; 1`,keyTimes:m,dur:g,repeatCount:"indefinite"})})),(0,a.jsx)(mE,Object.assign({offset:"50%",stopOpacity:r},{children:(0,a.jsx)("animate",{attributeName:"offset",values:`${-i/2}; ${-i/2}; ${1+i/2}`,keyTimes:m,dur:g,repeatCount:"indefinite"})})),(0,a.jsx)(pE,Object.assign({stopOpacity:n},{children:(0,a.jsx)("animate",{attributeName:"offset",values:`0; 0; ${1+i}`,keyTimes:m,dur:g,repeatCount:"indefinite"})}))]}))]})]}))},vE=gE,yE=({loading:e,children:t,skeleton:n})=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Pt.Fade,Object.assign({in:e,timeout:{enter:300},exit:!1},{children:(0,a.jsx)(n,{})})),(0,a.jsx)(Pt.Fade,Object.assign({in:!e,timeout:{enter:300},exit:!1},{children:(0,a.jsx)(a.Fragment,{children:t})}))]}),bE=r.zo.rect` visibility: hidden; ${({theme:e})=>e.screen.s} { visibility: visible; } -`,zM=()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(RM,{x:"2%",y:"12",rx:"3",ry:"3",width:"10%",height:"16"}),(0,a.jsx)(RM,{x:"40%",y:"12",rx:"3",ry:"3",width:"30%",height:"16"}),(0,a.jsx)(RM,{x:"2%",y:"45",rx:"3",ry:"3",width:"20%",height:"16"}),(0,a.jsx)(RM,{x:"40%",y:"45",rx:"3",ry:"3",width:"50%",height:"16"}),(0,a.jsx)(RM,{x:"2%",y:"78",rx:"3",ry:"3",width:"25%",height:"16"}),(0,a.jsx)(RM,{x:"40%",y:"78",rx:"3",ry:"3",width:"22%",height:"16"}),(0,a.jsx)(RM,{x:"2%",y:"111",rx:"3",ry:"3",width:"18%",height:"16"}),(0,a.jsx)(RM,{x:"40%",y:"111",rx:"3",ry:"3",width:"40%",height:"16"}),(0,a.jsx)(RM,{x:"2%",y:"144",rx:"3",ry:"3",width:"28%",height:"16"}),(0,a.jsx)(RM,{x:"40%",y:"144",rx:"3",ry:"3",width:"34%",height:"16"})]}),IM=r.zo.rect` +`,wE=()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(bE,{x:"2%",y:"12",rx:"3",ry:"3",width:"10%",height:"16"}),(0,a.jsx)(bE,{x:"40%",y:"12",rx:"3",ry:"3",width:"30%",height:"16"}),(0,a.jsx)(bE,{x:"2%",y:"45",rx:"3",ry:"3",width:"20%",height:"16"}),(0,a.jsx)(bE,{x:"40%",y:"45",rx:"3",ry:"3",width:"50%",height:"16"}),(0,a.jsx)(bE,{x:"2%",y:"78",rx:"3",ry:"3",width:"25%",height:"16"}),(0,a.jsx)(bE,{x:"40%",y:"78",rx:"3",ry:"3",width:"22%",height:"16"}),(0,a.jsx)(bE,{x:"2%",y:"111",rx:"3",ry:"3",width:"18%",height:"16"}),(0,a.jsx)(bE,{x:"40%",y:"111",rx:"3",ry:"3",width:"40%",height:"16"}),(0,a.jsx)(bE,{x:"2%",y:"144",rx:"3",ry:"3",width:"28%",height:"16"}),(0,a.jsx)(bE,{x:"40%",y:"144",rx:"3",ry:"3",width:"34%",height:"16"})]}),xE=r.zo.rect` ${({theme:e})=>e.screen.s} { visibility: hidden; } -`,LM=()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(IM,{x:"2%",y:"0",rx:"3",ry:"3",width:"12%",height:"14"}),(0,a.jsx)(IM,{x:"25%",y:"0",rx:"3",ry:"3",width:"6%",height:"14"}),(0,a.jsx)(IM,{x:"50%",y:"0",rx:"3",ry:"3",width:"15%",height:"14"}),(0,a.jsx)(IM,{x:"80%",y:"0",rx:"3",ry:"3",width:"10%",height:"14"}),(0,a.jsx)(IM,{x:"0",y:"26",width:"100%",height:"1"}),(0,a.jsx)(IM,{x:"2%",y:"40",rx:"3",ry:"3",width:"14%",height:"16"}),(0,a.jsx)(IM,{x:"25%",y:"40",rx:"3",ry:"3",width:"10%",height:"16"}),(0,a.jsx)(IM,{x:"50%",y:"40",rx:"3",ry:"3",width:"20%",height:"16"}),(0,a.jsx)(IM,{x:"80%",y:"40",rx:"3",ry:"3",width:"18%",height:"16"}),(0,a.jsx)(IM,{x:"0",y:"69",width:"100%",height:"1"}),(0,a.jsx)(IM,{x:"2%",y:"83",rx:"3",ry:"3",width:"6%",height:"16"}),(0,a.jsx)(IM,{x:"25%",y:"83",rx:"3",ry:"3",width:"20%",height:"16"}),(0,a.jsx)(IM,{x:"50%",y:"83",rx:"3",ry:"3",width:"10%",height:"16"}),(0,a.jsx)(IM,{x:"80%",y:"83",rx:"3",ry:"3",width:"15%",height:"16"}),(0,a.jsx)(IM,{x:"0",y:"112",width:"100%",height:"1"}),(0,a.jsx)(IM,{x:"2%",y:"126",rx:"3",ry:"3",width:"8%",height:"16"}),(0,a.jsx)(IM,{x:"25%",y:"126",rx:"3",ry:"3",width:"12%",height:"16"}),(0,a.jsx)(IM,{x:"50%",y:"126",rx:"3",ry:"3",width:"20%",height:"16"}),(0,a.jsx)(IM,{x:"80%",y:"126",rx:"3",ry:"3",width:"5%",height:"16"})]}),$M=(0,r.zo)(TM)` +`,kE=()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(xE,{x:"2%",y:"0",rx:"3",ry:"3",width:"12%",height:"14"}),(0,a.jsx)(xE,{x:"25%",y:"0",rx:"3",ry:"3",width:"6%",height:"14"}),(0,a.jsx)(xE,{x:"50%",y:"0",rx:"3",ry:"3",width:"15%",height:"14"}),(0,a.jsx)(xE,{x:"80%",y:"0",rx:"3",ry:"3",width:"10%",height:"14"}),(0,a.jsx)(xE,{x:"0",y:"26",width:"100%",height:"1"}),(0,a.jsx)(xE,{x:"2%",y:"40",rx:"3",ry:"3",width:"14%",height:"16"}),(0,a.jsx)(xE,{x:"25%",y:"40",rx:"3",ry:"3",width:"10%",height:"16"}),(0,a.jsx)(xE,{x:"50%",y:"40",rx:"3",ry:"3",width:"20%",height:"16"}),(0,a.jsx)(xE,{x:"80%",y:"40",rx:"3",ry:"3",width:"18%",height:"16"}),(0,a.jsx)(xE,{x:"0",y:"69",width:"100%",height:"1"}),(0,a.jsx)(xE,{x:"2%",y:"83",rx:"3",ry:"3",width:"6%",height:"16"}),(0,a.jsx)(xE,{x:"25%",y:"83",rx:"3",ry:"3",width:"20%",height:"16"}),(0,a.jsx)(xE,{x:"50%",y:"83",rx:"3",ry:"3",width:"10%",height:"16"}),(0,a.jsx)(xE,{x:"80%",y:"83",rx:"3",ry:"3",width:"15%",height:"16"}),(0,a.jsx)(xE,{x:"0",y:"112",width:"100%",height:"1"}),(0,a.jsx)(xE,{x:"2%",y:"126",rx:"3",ry:"3",width:"8%",height:"16"}),(0,a.jsx)(xE,{x:"25%",y:"126",rx:"3",ry:"3",width:"12%",height:"16"}),(0,a.jsx)(xE,{x:"50%",y:"126",rx:"3",ry:"3",width:"20%",height:"16"}),(0,a.jsx)(xE,{x:"80%",y:"126",rx:"3",ry:"3",width:"5%",height:"16"})]}),SE=(0,r.zo)(gE)` height: 153px; ${({theme:e})=>e.screen.s} { height: 174px; } -`,NM=e=>(0,a.jsxs)($M,Object.assign({width:"100%"},e,{children:[(0,a.jsx)(LM,{}),(0,a.jsx)(zM,{})]})),ZM=y.default.rect` +`,CE=e=>(0,a.jsxs)(SE,Object.assign({width:"100%"},e,{children:[(0,a.jsx)(kE,{}),(0,a.jsx)(wE,{})]})),jE=y.default.rect` transform: translateX(calc(98% - 42px)); -`,HM=e=>(0,a.jsxs)(TM,Object.assign({width:"100%",height:"120px"},e,{children:[(0,a.jsx)("rect",{x:"2%",y:"12",rx:"3",ry:"3",width:"65%",height:"36"}),(0,a.jsx)(ZM,{x:"0%",y:"12",rx:"3",ry:"3",width:"42",height:"36"}),(0,a.jsx)("rect",{x:"2%",y:"72",rx:"3",ry:"3",width:"70%",height:"36"}),(0,a.jsx)(ZM,{x:"0%",y:"72",rx:"3",ry:"3",width:"42",height:"36"})]}));var VM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i!["shape","color"].includes(e)&&t(e)})(u.sL,(0,c.bU)({prop:"shape",variants:{circle:{borderRadius:"50%"},rounded:{borderRadius:"20%"}}}),(0,c.bU)({prop:"size",variants:{small:{width:24,height:24,fontSize:8,".icon":{width:16,height:16}},medium:{width:32,height:32,fontSize:12,".icon":{width:22,height:22}}}}),"display: inline-flex;\n flex: 0 0 auto;\n align-items: center;\n justify-content: center;\n user-select: none;\n font-weight: 600;\n transition: color 150ms ease-in-out;\n "),BM=e=>{var{children:t,label:n,isActive:r,color:i,shape:o,alt:s}=e,l=VM(e,["children","label","isActive","color","shape","alt"]);const c=r?"purple50":i;return void 0!==l.src?(0,a.jsx)(FM,Object.assign({as:"img",alt:null!=s?s:"",shape:o},l)):(0,a.jsx)(FM,Object.assign({shape:o,color:c},l,{children:n?(0,OS.eu)(n):t}))};BM.defaultProps={isActive:!1,shape:"rounded",size:"medium",backgroundColor:"transparent"};var WM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i"display"!==e&&t(e)})` +`,OE=e=>(0,a.jsxs)(gE,Object.assign({width:"100%",height:"120px"},e,{children:[(0,a.jsx)("rect",{x:"2%",y:"12",rx:"3",ry:"3",width:"65%",height:"36"}),(0,a.jsx)(jE,{x:"0%",y:"12",rx:"3",ry:"3",width:"42",height:"36"}),(0,a.jsx)("rect",{x:"2%",y:"72",rx:"3",ry:"3",width:"70%",height:"36"}),(0,a.jsx)(jE,{x:"0%",y:"72",rx:"3",ry:"3",width:"42",height:"36"})]}));var ME=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i!["shape","color"].includes(e)&&t(e)})(u.sL,(0,c.bU)({prop:"shape",variants:{circle:{borderRadius:"50%"},rounded:{borderRadius:"20%"}}}),(0,c.bU)({prop:"size",variants:{small:{width:24,height:24,fontSize:8,".icon":{width:16,height:16}},medium:{width:32,height:32,fontSize:12,".icon":{width:22,height:22}}}}),"display: inline-flex;\n flex: 0 0 auto;\n align-items: center;\n justify-content: center;\n user-select: none;\n font-weight: 600;\n transition: color 150ms ease-in-out;\n "),PE=e=>{var{children:t,label:n,isActive:r,color:i,shape:o,alt:s}=e,l=ME(e,["children","label","isActive","color","shape","alt"]);const c=r?"purple50":i;return void 0!==l.src?(0,a.jsx)(EE,Object.assign({as:"img",alt:null!=s?s:"",shape:o},l)):(0,a.jsx)(EE,Object.assign({shape:o,color:c},l,{children:n?(0,uC.eu)(n):t}))};PE.defaultProps={isActive:!1,shape:"rounded",size:"medium",backgroundColor:"transparent"};var AE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i"display"!==e&&t(e)})` font-weight: inherit; -`,YM=(0,r.zo)(v)` +`,_E=(0,r.zo)(v)` width: 100%; overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; font-weight: inherit; -`,qM=e=>{var{children:t,isActive:n}=e,r=e.iconProps,i=void 0===r?{}:r,{icon:o,label:s}=i,l=WM(i,["icon","label"]),c=WM(e,["children","isActive","iconProps"]);const u="string"==typeof t?t:void 0,d=!!(l.src||o||s||u),h="medium"===l.size?12:8;return(0,a.jsxs)(UM,Object.assign({display:"flex",alignItems:"center",width:"100%"},c,{children:[d&&(0,a.jsx)(BM,Object.assign({isActive:n,label:l.src||o?void 0:null!=s?s:u},l,{children:o?(0,a.jsx)(o,{size:"small"}):null})),(0,a.jsx)(YM,Object.assign({ml:d?h:0},{children:t}))]}))};var GM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i!["fontWeight","fontSize"].includes(e)&&t(e)})` +`,DE=e=>{var{children:t,isActive:n}=e,r=e.iconProps,i=void 0===r?{}:r,{icon:o,label:s}=i,l=AE(i,["icon","label"]),c=AE(e,["children","isActive","iconProps"]);const u="string"==typeof t?t:void 0,d=!!(l.src||o||s||u),h="medium"===l.size?12:8;return(0,a.jsxs)(TE,Object.assign({display:"flex",alignItems:"center",width:"100%"},c,{children:[d&&(0,a.jsx)(PE,Object.assign({isActive:n,label:l.src||o?void 0:null!=s?s:u},l,{children:o?(0,a.jsx)(o,{size:"small"}):null})),(0,a.jsx)(_E,Object.assign({ml:d?h:0},{children:t}))]}))};var RE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i!["fontWeight","fontSize"].includes(e)&&t(e)})` display: inline-block; width: 100%; padding: 2px 16px; @@ -2621,7 +2621,7 @@ max-width: 320px; ${u.sL} ${c.JB} ${c.Ue} -`;var XM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i!["fontWeight","fontSize"].includes(e)&&t(e)})` +`;var IE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i!["fontWeight","fontSize"].includes(e)&&t(e)})` display: inline-block; width: 100%; padding: 2px 16px; @@ -2641,7 +2641,7 @@ max-width: 320px; ${u.sL} ${c.JB} ${c.Ue} -`;var JM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie.zIndex.dropdown}; padding: ${({theme:e})=>e.sizes.$4} 0; border-radius: ${({theme:e})=>e.sizes.$4}; @@ -2656,7 +2656,7 @@ max-width: 320px; ${c.bf} ${c.ih} -`,tP=(0,m.w)(((e,t)=>{var{children:n,trigger:r}=e,i=JM(e,["children","trigger"]);const o=q(),l=(0,s.useRef)([]),[c,u]=(0,s.useState)(!1),d=Vn(),h=null!=Zn(),{x:f,y:p,reference:m,floating:g,strategy:v,context:y}=Gn({open:c,onOpenChange:u,middleware:[fe({mainAxis:h?2:6,alignmentAxis:h?-5:0})],placement:h?"right-start":"bottom",nodeId:d,whileElementsMounted:Ue}),b=Wt(t,g),{getReferenceProps:w,getFloatingProps:x,getItemProps:k}=Xn([fr(y,{handleClose:Jn({restMs:75,buffer:5}),enabled:h,delay:{open:75}}),mr(y,{toggle:!h,pointerDown:!0,ignoreMouse:h}),pr(y,{role:"menu"}),vr(y,{bubbles:!1}),Ar(y,{listRef:l,activeIndex:null,nested:h})]),S=h?s.Fragment:Bn,C=h?s.Fragment:o;return(0,a.jsx)(S,{children:(0,a.jsxs)(Fn,Object.assign({id:d},{children:[(0,s.isValidElement)(r)&&(0,s.cloneElement)(r,Object.assign({},w(Object.assign(Object.assign({},r.props),{ref:m,isActive:c,onClick(e){h&&e.stopPropagation()}})))),(0,a.jsx)(C,{children:(0,a.jsx)(xt,Object.assign({in:c,timeout:{enter:120,exit:80}},{children:(0,a.jsx)(ur,Object.assign({context:y},{children:(0,a.jsx)(xt.Slide,Object.assign({in:c,timeout:{appear:120,exit:80},enter:!1,appear:!0},{children:(0,a.jsx)(eP,Object.assign({},x({ref:b,style:{position:v,top:null!=p?p:"",left:null!=f?f:""}}),i,{children:s.Children.map(n,(e=>(0,s.isValidElement)(e)&&(0,s.cloneElement)(e,Object.assign({},k(Object.assign(Object.assign({},e.props),{onClick(t){var n,r;null===(r=(n=e.props).onClick)||void 0===r||r.call(n,t),u(!1)}}))))))}))}))}))}))})]}))})})),nP=(0,m.w)(((e,t)=>{const n=Zn()?s.Fragment:Bn;return(0,a.jsx)(n,{children:(0,a.jsx)(tP,Object.assign({ref:t},e))})}));nP.defaultProps={width:244};var rP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{children:n,trigger:r}=e,i=$E(e,["children","trigger"]);const o=K(),l=(0,s.useRef)([]),[c,u]=(0,s.useState)(!1),d=Jn(),h=null!=Xn(),{x:f,y:p,reference:m,floating:g,strategy:v,context:y}=lr({open:c,onOpenChange:u,middleware:[me({mainAxis:h?2:6,alignmentAxis:h?-5:0})],placement:h?"right-start":"bottom",nodeId:d,whileElementsMounted:et}),b=Jt(t,g),{getReferenceProps:w,getFloatingProps:x,getItemProps:k}=ur([Er(y,{handleClose:hr({restMs:75,buffer:5}),enabled:h,delay:{open:75}}),Tr(y,{toggle:!h,pointerDown:!0,ignoreMouse:h}),Pr(y,{role:"menu"}),Dr(y,{bubbles:!1}),Ur(y,{listRef:l,activeIndex:null,nested:h})]),S=h?s.Fragment:tr,C=h?s.Fragment:o;return(0,a.jsx)(S,{children:(0,a.jsxs)(er,Object.assign({id:d},{children:[(0,s.isValidElement)(r)&&(0,s.cloneElement)(r,Object.assign({},w(Object.assign(Object.assign({},r.props),{ref:m,isActive:c,onClick(e){h&&e.stopPropagation()}})))),(0,a.jsx)(C,{children:(0,a.jsx)(Pt,Object.assign({in:c,timeout:{enter:120,exit:80}},{children:(0,a.jsx)(jr,Object.assign({context:y},{children:(0,a.jsx)(Pt.Slide,Object.assign({in:c,timeout:{appear:120,exit:80},enter:!1,appear:!0},{children:(0,a.jsx)(NE,Object.assign({},x({ref:b,style:{position:v,top:null!=p?p:"",left:null!=f?f:""}}),i,{children:s.Children.map(n,(e=>(0,s.isValidElement)(e)&&(0,s.cloneElement)(e,Object.assign({},k(Object.assign(Object.assign({},e.props),{onClick(t){var n,r;null===(r=(n=e.props).onClick)||void 0===r||r.call(n,t),u(!1)}}))))))}))}))}))}))})]}))})})),HE=(0,m.w)(((e,t)=>{const n=Xn()?s.Fragment:tr;return(0,a.jsx)(n,{children:(0,a.jsx)(ZE,Object.assign({ref:t},e))})}));HE.defaultProps={width:244};var VE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);it?e.color("dark70","light90"):"inherit"}; border-radius: ${({isActive:e})=>e?3:0}px; transition: background-color 100ms ease-in-out; @@ -2667,7 +2667,7 @@ max-width: 320px; button.focus-visible { position: relative; } -`,oP=r.zo.button` +`,BE=r.zo.button` position: relative; display: inline-block; width: 100%; @@ -2681,14 +2681,14 @@ max-width: 320px; color: ${({theme:e})=>e.color("dark0","light10")}; } ${u.By} -`,aP=(0,r.zo)(_r.Z)` +`,WE=(0,r.zo)(Kr.Z)` position: absolute; right: 10px; top: 50%; transform: translateY(-50%); ${({isOpen:e})=>e&&"transform: translateY(-50%) rotate(90deg);"} transition: transform ${({theme:e})=>`${e.transition.duration.fast}ms ${e.transition.function.default}`}; -`;var sP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie.color("dark10","light20")}; } ${u.By} -`,uP=r.zo.div` +`,qE=r.zo.div` display: inline-block; position: relative; font-weight: inherit; @@ -2720,14 +2720,14 @@ max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; -`,dP=(0,r.zo)(_r.Z)` +`,GE=(0,r.zo)(Kr.Z)` position: absolute; right: 2px; top: 50%; transform: translateY(-50%); ${({isOpen:e})=>e&&"transform: translateY(-50%) rotate(90deg);"} transition: transform ${({theme:e})=>`${e.transition.duration.fast}ms ${e.transition.function.default}`}; -`;var hP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie.color("dark90","white")}; display: flex; flex-direction: column; @@ -2739,7 +2739,7 @@ max-width: 320px; ul { list-style-type: none; } -`,pP={Menu:nP,MenuItem:qM,Button:e=>{var{children:t,iconProps:n}=e,r=XM(e,["children","iconProps"]);return(0,a.jsx)(QM,Object.assign({},r,{children:(0,a.jsx)(qM,Object.assign({iconProps:n},{children:t}))}))},Link:e=>{var{children:t,iconProps:n,isActive:r=!1}=e,i=GM(e,["children","iconProps","isActive"]);return(0,a.jsx)(KM,Object.assign({isActive:r},i,{children:(0,a.jsx)(qM,Object.assign({iconProps:n,isActive:r},{children:t}))}))},Accordion:e=>{var{children:t,title:n,isOpen:r=!1,isActive:i=!1}=e,o=rP(e,["children","title","isOpen","isActive"]);return(0,a.jsxs)(iP,Object.assign({isActive:r&&i},{children:[(0,a.jsxs)(oP,Object.assign({isActive:i},o,{children:[(0,a.jsx)(qM,Object.assign({isActive:i,paddingRight:26},{children:n})),(0,a.jsx)(aP,{size:16,isOpen:r})]})),(0,a.jsx)(zS,Object.assign({isOpen:r},{children:t}))]}))},AccordionFlat:e=>{var{children:t,title:n,isOpen:r=!1}=e,i=sP(e,["children","title","isOpen"]);return(0,a.jsxs)(lP,{children:[(0,a.jsx)(cP,Object.assign({},i,{children:(0,a.jsxs)(uP,{children:[n,(0,a.jsx)(dP,{size:16,isOpen:r})]})})),(0,a.jsx)(zS,Object.assign({isOpen:r},{children:t}))]})}},mP=(0,m.w)(((e,t)=>{var{children:n,isOpen:r=!0}=e,i=hP(e,["children","isOpen"]);return(0,a.jsx)(xt.Slide,Object.assign({in:r,timeout:{enter:200,exit:120},$x:"-100%",$y:"0"},{children:(0,a.jsx)(fP,Object.assign({ref:t},i,{children:n}))}))}),pP);var gP,vP;var yP="out-in",bP="in-out",wP=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},xP=((gP={})[yP]=function(e){var t=e.current,n=e.changeState;return s.cloneElement(t,{in:!1,onExited:wP(t,"onExited",(function(){n(at,null)}))})},gP[bP]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,s.cloneElement(r,{in:!0,onEntered:wP(r,"onEntered",(function(){n(at)}))})]},gP),kP=((vP={})[yP]=function(e){var t=e.children,n=e.changeState;return s.cloneElement(t,{in:!0,onEntered:wP(t,"onEntered",(function(){n(st,s.cloneElement(t,{in:!0}))}))})},vP[bP]=function(e){var t=e.current,n=e.children,r=e.changeState;return[s.cloneElement(t,{in:!1,onExited:wP(t,"onExited",(function(){r(st,s.cloneElement(n,{in:!0}))}))}),s.cloneElement(n,{in:!0})]},vP),SP=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i{"use strict";n.d(t,{$_:()=>s,By:()=>o,sL:()=>l});var r=n(1139);const i=/(\d{1,3}),(\d{1,3}),(\d{1,3})/,o=({theme:e})=>r.css` +`,JE={Menu:HE,MenuItem:DE,Button:e=>{var{children:t,iconProps:n}=e,r=IE(e,["children","iconProps"]);return(0,a.jsx)(LE,Object.assign({},r,{children:(0,a.jsx)(DE,Object.assign({iconProps:n},{children:t}))}))},Link:e=>{var{children:t,iconProps:n,isActive:r=!1}=e,i=RE(e,["children","iconProps","isActive"]);return(0,a.jsx)(zE,Object.assign({isActive:r},i,{children:(0,a.jsx)(DE,Object.assign({iconProps:n,isActive:r},{children:t}))}))},Accordion:e=>{var{children:t,title:n,isOpen:r=!1,isActive:i=!1}=e,o=VE(e,["children","title","isOpen","isActive"]);return(0,a.jsxs)(FE,Object.assign({isActive:r&&i},{children:[(0,a.jsxs)(BE,Object.assign({isActive:i},o,{children:[(0,a.jsx)(DE,Object.assign({isActive:i,paddingRight:26},{children:n})),(0,a.jsx)(WE,{size:16,isOpen:r})]})),(0,a.jsx)(bC,Object.assign({isOpen:r},{children:t}))]}))},AccordionFlat:e=>{var{children:t,title:n,isOpen:r=!1}=e,i=UE(e,["children","title","isOpen"]);return(0,a.jsxs)(YE,{children:[(0,a.jsx)(KE,Object.assign({},i,{children:(0,a.jsxs)(qE,{children:[n,(0,a.jsx)(GE,{size:16,isOpen:r})]})})),(0,a.jsx)(bC,Object.assign({isOpen:r},{children:t}))]})}},eP=(0,m.w)(((e,t)=>{var{children:n,isOpen:r=!0}=e,i=XE(e,["children","isOpen"]);return(0,a.jsx)(Pt.Slide,Object.assign({in:r,timeout:{enter:200,exit:120},$x:"-100%",$y:"0"},{children:(0,a.jsx)(QE,Object.assign({ref:t},i,{children:n}))}))}),JE);var tP,nP;var rP="out-in",iP="in-out",oP=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},aP=((tP={})[rP]=function(e){var t=e.current,n=e.changeState;return s.cloneElement(t,{in:!1,onExited:oP(t,"onExited",(function(){n(pt,null)}))})},tP[iP]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,s.cloneElement(r,{in:!0,onEntered:oP(r,"onEntered",(function(){n(pt)}))})]},tP),sP=((nP={})[rP]=function(e){var t=e.children,n=e.changeState;return s.cloneElement(t,{in:!0,onEntered:oP(t,"onEntered",(function(){n(mt,s.cloneElement(t,{in:!0}))}))})},nP[iP]=function(e){var t=e.current,n=e.children,r=e.changeState;return[s.cloneElement(t,{in:!1,onExited:oP(t,"onExited",(function(){r(mt,s.cloneElement(n,{in:!0}))}))}),s.cloneElement(n,{in:!0})]},nP),lP=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i{"use strict";n.d(t,{$_:()=>s,By:()=>o,sL:()=>l});var r=n(1139);const i=/(\d{1,3}),(\d{1,3}),(\d{1,3})/,o=({theme:e})=>r.css` &.focus-visible { box-shadow: 0px 0px 0px 2px ${e.color("dark100")({theme:e})}, 0px 0px 0px 4px ${e.colors.purple50}; } @@ -2770,20 +2770,7 @@ max-width: 320px; font-family: ${({theme:e})=>e.fonts.code}; } } -`,y=o.ThemeContext,b=({name:e,rootId:t,children:n})=>{const c=e||"dark",f=(0,i.useMemo)((()=>Object.assign(Object.assign(Object.assign({name:c,color:d.$_},l),"dark"===c?s:a),h)),[c]);return(0,r.jsx)(o.ThemeProvider,Object.assign({theme:f},{children:(0,r.jsxs)(u.Z,{children:[(0,r.jsx)(v,{selector:t?`#${t}`:"body"}),n]})}))}},3316:(e,t,n)=>{"use strict";n.d(t,{M:()=>o,x:()=>a});var r=n(5840);const i=(0,r.qC)(r.Dh,r.cp,r.$_,r.Cg,r.Oq,r.FK,r.dp,r.bf,r.Cb).propNames||[],o=e=>{const t={};return(n,r)=>(void 0===t[n]&&(t[n]=r(n)&&e.indexOf(n)<0),t[n])},a=o(i)},7571:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IconAdd:()=>Fe,IconAddFile:()=>Me,IconAddItem:()=>Le,IconAnchor:()=>Je,IconAttribute:()=>ct,IconAttributeList:()=>dt,IconBranch:()=>E,IconBrowser:()=>W,IconButton:()=>d,IconCamera:()=>L,IconClickHand:()=>H,IconClose:()=>Ye,IconCloseDataTable:()=>ln,IconCloseFile:()=>De,IconCloseWindow:()=>st,IconCloudDownload:()=>Y,IconCode:()=>te,IconCodeFile:()=>F,IconComment:()=>Gt,IconContinue:()=>Ge,IconCookie:()=>Tt,IconCopyPaste:()=>Dt,IconCorner:()=>X,IconDataTable:()=>an,IconDataTableList:()=>un,IconDatabase:()=>ce,IconDate:()=>Mt,IconDisabledFile:()=>z,IconDocument:()=>D,IconEdit:()=>Jt,IconEditCode:()=>Ft,IconExcelDocument:()=>G,IconExit:()=>je,IconExperiment:()=>Yt,IconFileError:()=>Se,IconFileSearch:()=>Et,IconFolder:()=>Wt,IconForm:()=>S,IconGetValue:()=>ft,IconGridCell:()=>v,IconHeading:()=>b,IconImage:()=>s,IconInput:()=>f,IconJoin:()=>Nt,IconLine:()=>Xt,IconLink:()=>m,IconList:()=>ve,IconLoop:()=>M,IconMail:()=>We,IconMaximize:()=>vt,IconMicrosoftWindows:()=>jt,IconMinimize:()=>bt,IconNumber:()=>me,IconOpenFile:()=>se,IconPass:()=>fe,IconPause:()=>re,IconPdf:()=>de,IconPlay:()=>T,IconPrint:()=>xe,IconRemove:()=>He,IconRemoveAnchor:()=>tt,IconRemoveFile:()=>Ee,IconRemoveItem:()=>ze,IconReplace:()=>tn,IconReturn:()=>Xe,IconSaveFile:()=>Te,IconSearch:()=>St,IconSelect:()=>Lt,IconSetValue:()=>mt,IconSplit:()=>Ht,IconStop:()=>oe,IconTable:()=>x,IconText:()=>c,IconTextBar:()=>rn,IconTextFile:()=>zt,IconTime:()=>N,IconTree:()=>xt,IconTryCatch:()=>be,IconVariableSquare:()=>j,IconVariableX:()=>J,IconWarning:()=>Ne,IconWindow:()=>rt,IconWindowList:()=>ot});var r=n(3823),i=n(3231),o=n(6377);const a=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"M24 8.41a1 1 0 0 0-.29-.7l-5.42-5.42a1 1 0 0 0-.7-.29H2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V8.41ZM22 19.5a.5.5 0 0 1-.5.5h-19a.5.5 0 0 1-.5-.5v-15a.5.5 0 0 1 .5-.5H17a.49.49 0 0 1 .36.15l4.53 4.53A.49.49 0 0 1 22 9v10.5Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M8.3 10a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM13.72 10.68a.49.49 0 0 0-.84 0l-2.43 3.88a.27.27 0 0 1-.21.12.24.24 0 0 1-.21-.12l-.87-1.38a.49.49 0 0 0-.666-.175.509.509 0 0 0-.184.175l-2.77 4.44a.25.25 0 0 0 0 .25.26.26 0 0 0 .22.13h12.1a.26.26 0 0 0 .253-.255.25.25 0 0 0-.033-.125l-4.36-6.94Z",fill:"currentColor"})]}))));a.defaultProps={size:"medium",color:"inherit"};const s=a,l=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M14.86 23.27H1.5a1.25 1.25 0 0 1 0-2.5h13.36a1.25 1.25 0 0 1 0 2.5ZM22.5 3.23h-21a1.25 1.25 0 0 1 0-2.5h21a1.25 1.25 0 1 1 0 2.5ZM22.5 9.91h-21a1.25 1.25 0 0 1 0-2.5h21a1.25 1.25 0 0 1 0 2.5ZM22.5 16.59h-21a1.25 1.25 0 0 1 0-2.5h21a1.25 1.25 0 0 1 0 2.5Z",fill:"currentColor"})}))));l.defaultProps={size:"medium",color:"inherit"};const c=l,u=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"M17.12 17H14.5a.25.25 0 0 1-.25-.25v-6.38a2.38 2.38 0 0 0-4.75 0v8.53a.24.24 0 0 1-.45.14c-.45-.62-1-1.4-1-1.44a2.11 2.11 0 0 0-2.66-.66 2.08 2.08 0 0 0-1 2.42c.09.27 0 0 2.26 4.37A.519.519 0 0 0 7 24h14.25a.49.49 0 0 0 .35-.15.47.47 0 0 0 .15-.35v-1.67A4.81 4.81 0 0 0 17.12 17Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M5.25 11a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h13.5a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H16a.25.25 0 0 0-.25.25v1.5A.25.25 0 0 0 16 13h2.75a3 3 0 0 0 3-3V3a3 3 0 0 0-3-3H5.25a3 3 0 0 0-3 3v7a3 3 0 0 0 3 3h2.5a.25.25 0 0 0 .25-.25v-1.5a.25.25 0 0 0-.25-.25h-2.5Z",fill:"currentColor"})]}))));u.defaultProps={size:"medium",color:"inherit"};const d=u,h=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"M17.274 22h-1.43a2.82 2.82 0 0 1-2.82-2.82v-2.57a.25.25 0 0 1 .25-.25h1.14a1 1 0 1 0 0-2h-1.14a.25.25 0 0 1-.25-.25V4.82A2.82 2.82 0 0 1 15.844 2h1.43a1 1 0 1 0 0-2h-1.43a4.8 4.8 0 0 0-3.63 1.65.25.25 0 0 1-.38 0A4.799 4.799 0 0 0 8.204 0h-1.43a1 1 0 0 0 0 2h1.43a2.82 2.82 0 0 1 2.82 2.82v9.29a.25.25 0 0 1-.25.25h-1.14a1 1 0 0 0 0 2h1.14a.25.25 0 0 1 .25.25v2.57A2.82 2.82 0 0 1 8.204 22h-1.43a1 1 0 0 0 0 2h1.43a4.8 4.8 0 0 0 3.63-1.65.252.252 0 0 1 .295-.065.25.25 0 0 1 .085.065 4.8 4.8 0 0 0 3.63 1.65h1.43a1 1 0 1 0 0-2ZM1.024 15a1 1 0 0 0 1-1v-2a1 1 0 1 0-2 0v2a1 1 0 0 0 1 1ZM1.024 9.46a1 1 0 0 0 1-.79.23.23 0 0 1 .19-.19 1 1 0 0 0-.19-1.98 2 2 0 0 0-2 1.96 1 1 0 0 0 1 1Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M5.594 8.5h1.91a1 1 0 0 0 0-2h-1.91a1 1 0 1 0 0 2ZM2.204 17.56a.26.26 0 0 1-.2-.2 1.004 1.004 0 1 0-2 .18 2 2 0 0 0 2 2 1.001 1.001 0 0 0 .2-1.98ZM8.504 18.5a1 1 0 0 0-1-1h-1.91a1 1 0 0 0 0 2h1.91a1 1 0 0 0 1-1ZM23.024 11a1 1 0 0 0-1 1v2a1 1 0 0 0 2 0v-2a1 1 0 0 0-1-1ZM21.844 8.44a.26.26 0 0 1 .2.2 1.004 1.004 0 0 0 2-.18 2 2 0 0 0-1.95-2 1 1 0 0 0-1 1 1 1 0 0 0 .75.98ZM18.454 6.5h-1.91a1 1 0 0 0 0 2h1.91a1 1 0 1 0 0-2ZM23.024 16.54a1 1 0 0 0-1 .79.23.23 0 0 1-.19.19 1.006 1.006 0 0 0 .22 2 2 2 0 0 0 1.95-2 1 1 0 0 0-.98-.98ZM18.454 17.5h-1.91a1 1 0 0 0 0 2h1.91a1 1 0 1 0 0-2Z",fill:"currentColor"})]}))));h.defaultProps={size:"medium",color:"inherit"};const f=h,p=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"m10.46 18.37-2.74 2.74a2.86 2.86 0 0 1-3.94 0l-.89-.89a2.77 2.77 0 0 1-.82-2 2.74 2.74 0 0 1 .82-2l5.8-5.81a2.8 2.8 0 0 1 3.94 0l.89.9A1 1 0 1 0 14.94 10l-.89-.89a4.79 4.79 0 0 0-6.77 0l-5.81 5.8a4.79 4.79 0 0 0 0 6.77l.89.89a4.78 4.78 0 0 0 6.78 0l2.73-2.73a1.002 1.002 0 0 0 0-1.42 1 1 0 0 0-1.41-.05Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"m22.53 2.36-.9-.89a4.8 4.8 0 0 0-6.77 0L12 4.38a1 1 0 1 0 1.41 1.41l2.91-2.9a2.79 2.79 0 0 1 3.94 0l.89.9a2.74 2.74 0 0 1 .82 2 2.769 2.769 0 0 1-.82 2l-5.8 5.8a2.77 2.77 0 0 1-2 .82 2.748 2.748 0 0 1-2-.82A1 1 0 0 0 10 14.93a4.762 4.762 0 0 0 3.39 1.41 4.75 4.75 0 0 0 3.38-1.4l5.81-5.81a4.79 4.79 0 0 0 0-6.77h-.05Z",fill:"currentColor"})]}))));p.defaultProps={size:"medium",color:"inherit"};const m=p,g=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M7 4.5a1 1 0 0 0 1-1V1a1 1 0 0 0-2 0v2.5a1 1 0 0 0 1 1ZM4.5 7a1 1 0 0 0-1-1H1a1 1 0 0 0 0 2h2.5a1 1 0 0 0 1-1ZM3.5 16H1a1 1 0 0 0 0 2h2.5a1 1 0 0 0 0-2ZM17 0a1 1 0 0 0-1 1v2.5a1 1 0 0 0 2 0V1a1 1 0 0 0-1-1ZM7 19.5a1 1 0 0 0-1 1V23a1 1 0 1 0 2 0v-2.5a1 1 0 0 0-1-1ZM17 19.5a1 1 0 0 0-1 1V23a1 1 0 0 0 2 0v-2.5a1 1 0 0 0-1-1ZM20.5 8H23a1 1 0 1 0 0-2h-2.5a1 1 0 1 0 0 2ZM23 16h-2.5a1 1 0 0 0 0 2H23a1 1 0 0 0 0-2ZM18 7a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V7Zm-2 8.5a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5v-7a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v7Z",fill:"currentColor"})}))));g.defaultProps={size:"medium",color:"inherit"};const v=g,y=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M6.035 3.08a.25.25 0 0 1 .25-.25h1.81a1.25 1.25 0 0 0 0-2.5h-6.62a1.25 1.25 0 1 0 0 2.5h1.81a.25.25 0 0 1 .25.25v17.81a.25.25 0 0 1-.25.25h-1.81a1.25 1.25 0 0 0 0 2.5h6.62a1.25 1.25 0 0 0 0-2.5h-1.81a.25.25 0 0 1-.25-.25v-7.7H18.01v7.7a.25.25 0 0 1-.25.25h-1.81a1.25 1.25 0 0 0 0 2.5h6.62a1.25 1.25 0 0 0 0-2.5h-1.81a.25.25 0 0 1-.25-.25V3.08a.25.25 0 0 1 .25-.25h1.81a1.25 1.25 0 0 0 0-2.5h-6.62a1.25 1.25 0 1 0 0 2.5h1.81a.25.25 0 0 1 .25.25v7.61H6.035V3.08Z",fill:"currentColor"})}))));y.defaultProps={size:"medium",color:"inherit"};const b=y,w=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M22 0H2a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2Zm0 3v8h-8.75a.25.25 0 0 1-.25-.25V2h8a1 1 0 0 1 1 1ZM3 2h8v8.75a.25.25 0 0 1-.25.25H2V3a1 1 0 0 1 1-1ZM2 21v-8h8.75a.25.25 0 0 1 .25.25V22H3a1 1 0 0 1-1-1Zm19 1h-8v-8.75a.25.25 0 0 1 .25-.25H22v8a1 1 0 0 1-1 1Z",fill:"currentColor"})}))));w.defaultProps={size:"medium",color:"inherit"};const x=w,k=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"M24 8a3 3 0 0 0-3-3H3a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h18a3 3 0 0 0 3-3V8Zm-2 8a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v8Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M8 10a1 1 0 0 0 0-2H5a1 1 0 0 0 0 2h.25a.25.25 0 0 1 .25.25v3.5a.25.25 0 0 1-.25.25H5a1 1 0 0 0 0 2h3a1 1 0 0 0 0-2h-.25a.25.25 0 0 1-.25-.25v-3.5a.25.25 0 0 1 .25-.25H8Z",fill:"currentColor"})]}))));k.defaultProps={size:"medium",color:"inherit"};const S=k,C=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"M9 10.125v-1.14c0-.17.27-.22.42-.22H10a1 1 0 1 0 0-2h-.63A2.27 2.27 0 0 0 7 8.985v1a.25.25 0 0 1-.1.21l-1.46 1a1 1 0 0 0-.337 1.318 1 1 0 0 0 .337.362l1.45.95a.26.26 0 0 1 .11.16v1a2.27 2.27 0 0 0 2.42 2.21H10a1 1 0 0 0 0-2h-.63c-.15 0-.42 0-.42-.21v-1.13a2.09 2.09 0 0 0-.88-1.68.25.25 0 0 1 0-.38 2.07 2.07 0 0 0 .93-1.67ZM16.85 10.175l1.71.94.01-.03a1 1 0 0 1 0 1.74l-1.71 1a.16.16 0 0 0-.1.16v1a2.372 2.372 0 0 1-2.63 2.21h-.69a1 1 0 1 1 0-2h.69c.44 0 .63-.16.63-.21v-1.1a2 2 0 0 1 .93-1.67.23.23 0 0 0 0-.39 2 2 0 0 1-.93-1.67v-1.17c0-.06-.19-.22-.63-.22h-.69a1 1 0 1 1 0-2h.69a2.37 2.37 0 0 1 2.63 2.22v1.03a.24.24 0 0 0 .09.16Z",fill:"currentColor"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 0H2a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2Zm0 21.75a.25.25 0 0 1-.25.25H2.25a.25.25 0 0 1-.25-.25V2.25A.25.25 0 0 1 2.25 2h19.5a.25.25 0 0 1 .25.25v19.5Z",fill:"currentColor"})]}))));C.defaultProps={size:"medium",color:"inherit"};const j=C,O=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M10.66 20.07a1.251 1.251 0 0 0-.5 2.45c.724.15 1.46.227 2.2.23a10.75 10.75 0 1 0-10-6.65.24.24 0 0 1-.09.29l-1 .73a1 1 0 0 0-.39 1 1 1 0 0 0 .77.77l4 .85h.21a1 1 0 0 0 .54-.16 1.05 1.05 0 0 0 .43-.58l.94-4.4a1 1 0 0 0-1.56-1l-1.37 1a.24.24 0 0 1-.22 0 .22.22 0 0 1-.16-.16 8.26 8.26 0 1 1 6.2 5.64v-.01Z",fill:"currentColor"})}))));O.defaultProps={size:"medium",color:"inherit"};const M=O,P=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M20.34 10.12c.09.031.185.048.28.05a1 1 0 0 0 .84-.45l1.89-2.83a1 1 0 0 0 0-1.11l-1.89-2.84a1 1 0 0 0-1.84.56v1.33a.25.25 0 0 1-.25.25h-1.58c-3 0-4.28 1.88-5.29 3.39-1.01 1.51-1.59 2.28-3.21 2.28H1.74a1.25 1.25 0 0 0 0 2.5h7.55c1.62 0 2.21.78 3.21 2.28 1 1.5 2.26 3.39 5.29 3.39h1.58a.25.25 0 0 1 .25.25v1.33a1 1 0 0 0 .72 1 .9.9 0 0 0 .28 0 1 1 0 0 0 .84-.45l1.89-2.83a1 1 0 0 0 0-1.11l-1.89-2.83a1 1 0 0 0-1.84.55v1.34a.25.25 0 0 1-.25.25h-1.58c-1.62 0-2.21-.78-3.21-2.28A10.094 10.094 0 0 0 12.83 12c.679-.63 1.268-1.35 1.75-2.14 1-1.5 1.59-2.28 3.21-2.28h1.58a.25.25 0 0 1 .25.25v1.34a1 1 0 0 0 .72.95Z",fill:"currentColor"})}))));P.defaultProps={size:"medium",color:"inherit"};const E=P,A=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"m10.68 7.71 5.93 3v-.04a1.39 1.39 0 0 1 0 2.58l-5.93 3a1.64 1.64 0 0 1-.76.19 1.37 1.37 0 0 1-.76-.22 1.53 1.53 0 0 1-.7-1.34V9.12a1.48 1.48 0 0 1 2.22-1.41Z",fill:"currentColor"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.333 2.022a12 12 0 1 1 13.334 19.956A12 12 0 0 1 5.333 2.022Zm1.428 17.819A9.43 9.43 0 0 0 12 21.43 9.44 9.44 0 0 0 21.43 12a9.43 9.43 0 1 0-14.669 7.84Z",fill:"currentColor"})]}))));A.defaultProps={size:"medium",color:"inherit"};const T=A,_=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m19.85 6.68-4.53-4.53A.49.49 0 0 0 15 2H4.5a.5.5 0 0 0-.5.5v19a.5.5 0 0 0 .5.5h15a.5.5 0 0 0 .5-.5V7a.49.49 0 0 0-.15-.32ZM4 0h11.59a1 1 0 0 1 .7.29l5.42 5.42a1 1 0 0 1 .29.7V22a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2Zm3 11h9a1 1 0 0 0 0-2H7a1 1 0 0 0 0 2Zm9 4H7a1 1 0 1 1 0-2h9a1 1 0 0 1 0 2Zm-9 4h4.5a1 1 0 0 0 0-2H7a1 1 0 1 0 0 2Z",fill:"currentColor"})}))));_.defaultProps={size:"medium",color:"inherit"};const D=_,R=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"M21 .59 23.41 3A2 2 0 0 1 24 4.41V18.5a2 2 0 0 1-2 2h-7.77a.25.25 0 0 1-.23-.33c.18-.472.311-.961.39-1.46a.25.25 0 0 1 .25-.21h6.86a.5.5 0 0 0 .5-.5V4.62a.469.469 0 0 0-.15-.35l-2.12-2.12a.47.47 0 0 0-.35-.15H8.5a.5.5 0 0 0-.5.5v6.86a.25.25 0 0 1-.29.25 7.12 7.12 0 0 0-1.46-.09.24.24 0 0 1-.25-.24V2a2 2 0 0 1 2-2h11.59A2 2 0 0 1 21 .59Z",fill:"currentColor"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.889 12.095a6.5 6.5 0 1 1 7.222 10.81 6.5 6.5 0 0 1-7.222-10.81ZM2.14 16.28a4.41 4.41 0 0 0 .36 3.32h.03a.25.25 0 0 0 .4.05l5.7-5.72a.26.26 0 0 0-.06-.4 4.41 4.41 0 0 0-3.32-.36 4.47 4.47 0 0 0-3.11 3.11Zm7.514 4.404A4.47 4.47 0 0 0 10.8 18.72h.03a4.41 4.41 0 0 0-.39-3.32.25.25 0 0 0-.4-.05l-5.72 5.72a.25.25 0 0 0 .05.4 4.41 4.41 0 0 0 3.32.36 4.47 4.47 0 0 0 1.964-1.146Z",fill:"currentColor"})]}))));R.defaultProps={size:"medium",color:"inherit"};const z=R,I=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"M5.505 5.11h-3a.5.5 0 0 1-.5-.5v-.23a1.5 1.5 0 0 1 1.5-1.5h1a1.5 1.5 0 0 1 1.5 1.5v.23a.49.49 0 0 1-.5.5ZM14.755 16.88a3.75 3.75 0 1 0 0-7.5 3.75 3.75 0 0 0 0 7.5Z",fill:"currentColor"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.445 6.12h-1.31a.53.53 0 0 1-.48-.34l-.077-.156c-.622-1.259-1.238-2.504-2.573-2.504h-5c-1.07 0-1.64.78-2.66 2.2l-.174.243c-.256.364-.392.557-.666.557h-6c-2.07 0-2.5 1.21-2.5 2.23v10.39a2.25 2.25 0 0 0 2.56 2.38h18.88a2.25 2.25 0 0 0 2.56-2.38V8.35c0-1.02-.44-2.23-2.56-2.23Zm-.94 7a5.75 5.75 0 1 1-5.75-5.74 5.76 5.76 0 0 1 5.75 5.74Zm-15.5-3.24a1.25 1.25 0 1 1-1.25-1.26 1.24 1.24 0 0 1 1.25 1.26Z",fill:"currentColor"})]}))));I.defaultProps={size:"medium",color:"inherit"};const L=I,$=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm0 22a10 10 0 1 1 0-20 10 10 0 0 1 0 20Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"m17.13 15.81-4.63-4.25V6.5a1 1 0 1 0-2 0V12a1 1 0 0 0 .32.74l5 4.54a1 1 0 0 0 1.42-.06 1 1 0 0 0-.11-1.41Z",fill:"currentColor"})]}))));$.defaultProps={size:"medium",color:"inherit"};const N=$,Z=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M21.86 11.5a3 3 0 0 0-3-3h-.27a2 2 0 0 0-1.73-1h-1.27a2 2 0 0 0-1.73-1h-1V3a2.5 2.5 0 0 0-5 0v10.29l-1.21-1.7a2.485 2.485 0 1 0-4.05 2.88l6.09 8.61a1.005 1.005 0 0 0 1.64-1.16l-6.1-8.61a.48.48 0 0 1 .48-.755.49.49 0 0 1 .31.195l2.12 3a1.5 1.5 0 0 0 2.72-.87V3a.5.5 0 1 1 1 0v7.5a1 1 0 0 0 2 0V8.75a.25.25 0 0 1 .25-.25h.5a.25.25 0 0 1 .25.25v1.75a1 1 0 0 0 2 0v-.75a.25.25 0 0 1 .25-.25h.5a.25.25 0 0 1 .25.25v1.75a1 1 0 0 0 2 0v-.71a.232.232 0 0 1 .11-.2.26.26 0 0 1 .23 0 1 1 0 0 1 .66.95v2.6a9 9 0 0 1-.34 2.47l-1.62 5.61a1 1 0 0 0 1.447 1.149 1 1 0 0 0 .473-.599l1.62-5.65a11.06 11.06 0 0 0 .42-3V11.5Z",fill:"currentColor"})}))));Z.defaultProps={size:"medium",color:"inherit"};const H=Z,V=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"M8.53 13.31a.25.25 0 0 1 0-.34l2.53-2.71a1.003 1.003 0 0 0-.045-1.415A1.001 1.001 0 0 0 9.6 8.89l-3.33 3.57a1 1 0 0 0 0 1.37L9.6 17.4a1 1 0 0 0 1.42.05 1 1 0 0 0 0-1.39l-2.49-2.75ZM14.085 8.633a1 1 0 0 1 .315.257l3.3 3.56a1 1 0 0 1 0 1.37l-3.33 3.57A1 1 0 0 1 12.94 16l2.53-2.66a.25.25 0 0 0 0-.34l-2.53-2.75a1 1 0 0 1 1.145-1.617Z",fill:"currentColor"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.71 5.71 16.29.29a1 1 0 0 0-.7-.29H4a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6.42a.999.999 0 0 0-.29-.71ZM20 21.5a.5.5 0 0 1-.5.5h-15a.5.5 0 0 1-.5-.5v-19a.5.5 0 0 1 .5-.5H15a.49.49 0 0 1 .36.15l4.53 4.53A.49.49 0 0 1 20 7v14.5Z",fill:"currentColor"})]}))));V.defaultProps={size:"medium",color:"inherit"};const F=V,B=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 15.5h2.44a1 1 0 0 1 0 2H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3h15.5a3 3 0 0 1 3 3v3.5a1 1 0 0 1-2 0V6a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v8.5a1 1 0 0 0 1 1ZM6.168 1.944a1 1 0 1 0 1.663 1.112 1 1 0 0 0-1.663-1.112Zm3.776 1.387a1 1 0 1 0 1.111-1.663 1 1 0 0 0-1.11 1.663Zm-5.613-.275a1 1 0 1 0-1.663-1.112 1 1 0 0 0 1.663 1.112Z",fill:"currentColor"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.556 9.348a8 8 0 1 1 8.888 13.303 8 8 0 0 1-8.888-13.303Zm7.834 5.762h2.76a6.229 6.229 0 0 0-4.33-5.06 11.19 11.19 0 0 1 1.57 5.06Zm-5 1.78a9.109 9.109 0 0 0 1.61 4.6 9.11 9.11 0 0 0 1.61-4.6h-3.22ZM16 10.51a9.109 9.109 0 0 0-1.61 4.6h3.22a9.11 9.11 0 0 0-1.61-4.6Zm-3.39 4.6a11.19 11.19 0 0 1 1.57-5.06 6.23 6.23 0 0 0-4.33 5.06h2.76Zm0 1.78H9.85A6.23 6.23 0 0 0 14.18 22a11.19 11.19 0 0 1-1.57-5.11Zm6.81 0a11.19 11.19 0 0 1-1.57 5.06l-.03.05a6.23 6.23 0 0 0 4.36-5.11h-2.76Z",fill:"currentColor"})]}))));B.defaultProps={size:"medium",color:"inherit"};const W=B,U=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"M24.003 10.66a5.82 5.82 0 0 0-1.77-4.16 5.7 5.7 0 0 0-3.45-1.59.25.25 0 0 1-.19-.12 7.68 7.68 0 0 0-14.1 2.3.25.25 0 0 1-.22.19 4.66 4.66 0 0 0-2.58 1 4.59 4.59 0 0 0-1.69 3.58 4.33 4.33 0 0 0 1.24 3.21 5.58 5.58 0 0 0 3.6 1.38 1 1 0 0 0 0-2 3.36 3.36 0 0 1-2.17-.81 2.35 2.35 0 0 1-.67-1.78 2.58 2.58 0 0 1 3.12-2.53 1 1 0 0 0 .81-.19 1 1 0 0 0 .39-.73 5.68 5.68 0 0 1 10.82-2.09 1 1 0 0 0 .94.57 3.66 3.66 0 0 1 2.76 1.05 3.74 3.74 0 0 1 1.16 2.72 3.83 3.83 0 0 1-3.44 3.79 1.009 1.009 0 1 0 .26 2 5.82 5.82 0 0 0 5.18-5.79Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M15.504 17.45h-1.75a.25.25 0 0 1-.25-.25V10a1.5 1.5 0 0 0-3 0v7.2a.25.25 0 0 1-.25.25h-1.75a1 1 0 0 0-.71 1.7l3.5 3.5a1 1 0 0 0 1.42 0l3.5-3.5a1 1 0 0 0-.71-1.7Z",fill:"currentColor"})]}))));U.defaultProps={size:"medium",color:"inherit"};const Y=U,q=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"M18 19v-9a1 1 0 0 0-1-1H1a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1ZM6.06 17.22a.63.63 0 0 1-.28.84.71.71 0 0 1-.28.06.62.62 0 0 1-.56-.34L4.06 16h-.12l-.88 1.76a.62.62 0 0 1-.56.34.71.71 0 0 1-.28-.06.63.63 0 0 1-.28-.84l1.31-2.61a.28.28 0 0 0 0-.22l-1.31-2.59a.63.63 0 0 1 1.12-.56L3.93 13a.08.08 0 0 0 .11.03.08.08 0 0 0 .03-.03c0-.06.87-1.75.87-1.75a.63.63 0 0 1 1.12.56l-1.31 2.58a.28.28 0 0 0 0 .22l1.31 2.61Zm4.44.9h-2a1.62 1.62 0 0 1-1.62-1.62v-5a.62.62 0 0 1 1.24 0v5a.37.37 0 0 0 .38.37h2a.63.63 0 0 1 0 1.25Zm2.93-4.75 1.84 1.22a1.94 1.94 0 0 1 .288 2.968 1.92 1.92 0 0 1-1.358.562h-1.7a.63.63 0 0 1 0-1.25h1.7a.68.68 0 0 0 .68-.67.691.691 0 0 0-.31-.57l-1.84-1.23a1.93 1.93 0 0 1 1.07-3.53h1.7a.63.63 0 0 1 0 1.25h-1.7a.68.68 0 0 0-.37 1.25Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M23.71 5.71 18.29.29a1 1 0 0 0-.7-.29H6a2 2 0 0 0-2 2v5.75a.25.25 0 0 0 .25.25h1.5A.25.25 0 0 0 6 7.75V2.5a.5.5 0 0 1 .5-.5h10.25a.25.25 0 0 1 .25.25V5a2 2 0 0 0 2 2h2.75a.25.25 0 0 1 .25.25V21.5a.5.5 0 0 1-.5.5H6.25a.25.25 0 0 1-.25-.25v-.5a.25.25 0 0 0-.25-.25h-1.5a.25.25 0 0 0-.25.25V22a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6.41a1 1 0 0 0-.29-.7Z",fill:"currentColor"})]}))));q.defaultProps={size:"medium",color:"inherit"};const G=q,K=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M0 16V1.25a.12.12 0 0 1 .006-.035 1.245 1.245 0 0 1 2.49-.004.15.15 0 0 1 .005.04V16a.76.76 0 0 0 .75.75H15a.25.25 0 0 0 .25-.25V13a1 1 0 0 1 .62-.92 1 1 0 0 1 1.09.21l5 5a1.002 1.002 0 0 1 0 1.42l-5 5a1 1 0 0 1-1.09.21 1 1 0 0 1-.62-.92v-3.5a.25.25 0 0 0-.25-.25H3.25A3.26 3.26 0 0 1 0 16Z",fill:"currentColor"})}))));K.defaultProps={size:"medium",color:"inherit"};const X=K,Q=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"M4.378 12.225a3.222 3.222 0 0 1 1.75 2.872v2.048c0 .49.474.806 1.192.806h1.05a1.313 1.313 0 0 1 0 2.627H7.32a3.503 3.503 0 0 1-3.818-3.503v-1.978a.806.806 0 0 0-.438-.648L.595 12.925a1.314 1.314 0 0 1-.433-1.728c.103-.192.252-.356.433-.478l2.347-1.523c.438-.228.63-.473.63-.666V6.516A3.502 3.502 0 0 1 7.39 3.014h1.05a1.313 1.313 0 1 1 0 2.627H7.39c-.718 0-1.191.315-1.191.823v2.049a3.292 3.292 0 0 1-1.944 2.924s-.298.14-.298.333c0 .192.42.455.42.455ZM23.254 12.96 20.61 14.45c-.543.245-.735.508-.735.63v2.049a3.73 3.73 0 0 1-4.168 3.502h-1.103a1.34 1.34 0 0 1 0-2.68h1.19c.876 0 1.542-.35 1.542-.805v-2.048a3.344 3.344 0 0 1 2.189-2.977s.28-.158.28-.35c0-.193-.403-.298-.403-.298a3.274 3.274 0 0 1-2.066-2.907V6.516c0-.472-.666-.823-1.541-.823h-1.191a1.313 1.313 0 1 1 0-2.626h1.19a3.73 3.73 0 0 1 4.168 3.502v2.049c0 .105.193.367.63.56l2.75 1.558a1.313 1.313 0 0 1 0 2.277l-.088-.053Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M13.89 12.995a.857.857 0 0 1-1.21 1.212l-.904-.903a.286.286 0 0 0-.411 0l-.903.902a.857.857 0 0 1-1.211-1.211l.902-.903a.285.285 0 0 0 0-.411l-.902-.972a.857.857 0 0 1 1.211-1.143l.903.903a.284.284 0 0 0 .411 0l.903-.903a.857.857 0 0 1 1.212 1.143l-.903.903a.287.287 0 0 0-.065.318.288.288 0 0 0 .065.094l.903.971Z",fill:"currentColor"})]}))));Q.defaultProps={size:"medium",color:"inherit"};const J=Q,ee=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M9.386 21.122c-.25.275-.589.43-.942.43s-.692-.155-.942-.43L.39 13.295A1.546 1.546 0 0 1 0 12.258c0-.389.14-.762.39-1.037l7.112-7.827c.253-.26.587-.4.932-.394.346.007.675.161.92.43.244.269.384.631.39 1.012.006.38-.122.748-.358 1.026l-5.831 6.497a.532.532 0 0 0 0 .704l5.85 6.438c.247.278.384.652.38 1.041-.003.389-.146.76-.399 1.033v-.059ZM23.61 13.295l-7.112 7.827c-.253.26-.587.4-.932.394a1.277 1.277 0 0 1-.92-.43 1.544 1.544 0 0 1-.39-1.011c-.006-.38.122-.749.358-1.027l5.85-6.438a.493.493 0 0 0 .1-.16.533.533 0 0 0-.1-.544l-5.85-6.38a1.553 1.553 0 0 1-.358-1.026c.006-.38.146-.743.39-1.011.245-.27.574-.423.92-.43.345-.007.68.134.932.394l7.112 7.827c.25.275.39.648.39 1.037 0 .389-.14.762-.39 1.037v-.059Z",fill:"currentColor"})}))));ee.defaultProps={size:"medium",color:"inherit"};const te=ee,ne=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm0 21.55A9.55 9.55 0 1 1 21.55 12 9.56 9.56 0 0 1 12 21.55Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M10.27 7.14H8.83a.98.98 0 0 0-.98.98v8.82c0 .541.439.98.98.98h1.44a.98.98 0 0 0 .98-.98V8.12a.98.98 0 0 0-.98-.98ZM15.2 7.1h-1.5a.98.98 0 0 0-.98.98v8.82c0 .541.439.98.98.98h1.5a.98.98 0 0 0 .98-.98V8.08a.98.98 0 0 0-.98-.98Z",fill:"currentColor"})]}))));ne.defaultProps={size:"medium",color:"inherit"};const re=ne,ie=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm0 21.55A9.55 9.55 0 1 1 21.55 12 9.56 9.56 0 0 1 12 21.55Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M14.94 8.08H9.06a.98.98 0 0 0-.98.98v5.88c0 .541.439.98.98.98h5.88a.98.98 0 0 0 .98-.98V9.06a.98.98 0 0 0-.98-.98Z",fill:"currentColor"})]}))));ie.defaultProps={size:"medium",color:"inherit"};const oe=ie,ae=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M23.44 9.55A1.5 1.5 0 0 0 22.28 9H10.42a.5.5 0 0 1-.49-.4l-.28-1.39A1.51 1.51 0 0 0 8.18 6H1.72a1.48 1.48 0 0 0-1.16.55 1.47 1.47 0 0 0-.31 1.24l2.6 13A1.51 1.51 0 0 0 4.32 22h16a1.51 1.51 0 0 0 1.47-1.21l2-10a1.47 1.47 0 0 0-.35-1.24ZM3.22 5a1 1 0 0 0 1-.78.26.26 0 0 1 .22-.22h15.28a.5.5 0 0 1 .5.5V7a1 1 0 1 0 2 0V4a2 2 0 0 0-2-2h-16a2 2 0 0 0-2 2 1 1 0 0 0 1 1Z",fill:"currentColor"})}))));ae.defaultProps={size:"medium",color:"inherit"};const se=ae,le=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M12 .63c-5.08 0-10.49 1.75-10.5 5v12.75c0 3.25 5.41 5 10.5 5s10.5-1.75 10.5-5V5.64C22.5 2.38 17.09.63 12 .63Zm8.5 17.75c0 1.22-3.31 3-8.5 3-5.19 0-8.5-1.78-8.5-3v-.79a.25.25 0 0 1 .37-.22A17.62 17.62 0 0 0 12 19.13a17.65 17.65 0 0 0 8.13-1.76.25.25 0 0 1 .37.22v.79Zm0-4.25c0 1.22-3.31 3-8.5 3-5.19 0-8.5-1.78-8.5-3v-.79a.25.25 0 0 1 .37-.22A17.62 17.62 0 0 0 12 14.88a17.65 17.65 0 0 0 8.13-1.76.25.25 0 0 1 .37.22v.79Zm0-4.25c0 1.22-3.31 3-8.5 3-5.19 0-8.5-1.78-8.5-3v-.79a.25.25 0 0 1 .37-.22A17.65 17.65 0 0 0 12 10.63a17.65 17.65 0 0 0 8.13-1.76.25.25 0 0 1 .37.22v.79Zm0-4.25c0 1.23-3.32 3-8.5 3s-8.5-1.78-8.5-3 3.31-3 8.5-3c5.19 0 8.5 1.77 8.5 3Z",fill:"currentColor"})}))));le.defaultProps={size:"medium",color:"inherit"};const ce=le,ue=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"M8.45 12.32c-.1 0-.33-.05-.33.17v4a.24.24 0 0 0 .33.21 2.36 2.36 0 0 0 1.43-2.2 2.39 2.39 0 0 0-1.43-2.18ZM4 12.12h-.62a.26.26 0 0 0-.26.26v1.24a.26.26 0 0 0 .26.25H4a.88.88 0 1 0 0-1.75Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M18 19v-9a1 1 0 0 0-1-1H1a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1ZM4 15.12h-.62a.26.26 0 0 0-.26.26v2.12a.62.62 0 0 1-1.24 0v-6a.63.63 0 0 1 .62-.63H4a2.13 2.13 0 0 1 0 4.25Zm3.5 3a.62.62 0 0 1-.62-.62v-6a.63.63 0 0 1 .62-.63 3.63 3.63 0 0 1 0 7.25Zm8-6h-2a.38.38 0 0 0-.38.38v1.12a.26.26 0 0 0 .26.25h1.12a.63.63 0 0 1 0 1.25h-1.12a.26.26 0 0 0-.26.26v2.12a.62.62 0 0 1-1.24 0v-5a1.62 1.62 0 0 1 1.62-1.63h2a.63.63 0 0 1 0 1.25Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M23.71 5.71 18.29.29a1 1 0 0 0-.7-.29H6a2 2 0 0 0-2 2v5.75a.25.25 0 0 0 .25.25h1.5A.25.25 0 0 0 6 7.75V2.5a.5.5 0 0 1 .5-.5h10.25a.25.25 0 0 1 .25.25V5a2 2 0 0 0 2 2h2.75a.25.25 0 0 1 .25.25V21.5a.5.5 0 0 1-.5.5H6.25a.25.25 0 0 1-.25-.25v-.5a.25.25 0 0 0-.25-.25h-1.5a.25.25 0 0 0-.25.25V22a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6.41a1 1 0 0 0-.29-.7Z",fill:"currentColor"})]}))));ue.defaultProps={size:"medium",color:"inherit"};const de=ue,he=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M2.9 10.63a6.36 6.36 0 0 1 6.35-6.35h13.28a1.44 1.44 0 1 0 0-2.87H9.25a9.22 9.22 0 1 0 0 18.44h8.85a.25.25 0 0 1 .25.25v1.06a1.43 1.43 0 0 0 1.972 1.32c.172-.071.328-.177.458-.31l2.75-2.74a1.45 1.45 0 0 0 0-2l-2.73-2.78a1.43 1.43 0 0 0-2.45 1v1.06a.25.25 0 0 1-.25.25H9.25a6.35 6.35 0 0 1-6.35-6.33Z",fill:"currentColor"})}))));he.defaultProps={size:"medium",color:"inherit"};const fe=he,pe=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M22.5 7.41h-4.76a.28.28 0 0 1-.19-.09.23.23 0 0 1-.05-.21l1-5.39a1.27 1.27 0 1 0-2.5-.45L14.94 7.2a.26.26 0 0 1-.25.21h-3.63a.28.28 0 0 1-.19-.09.23.23 0 0 1 0-.21l1-5.39a1.25 1.25 0 1 0-2.46-.45L8.26 7.2a.26.26 0 0 1-.26.21H3.41a1.25 1.25 0 1 0 0 2.5h4.06a.25.25 0 0 1 .19.09.28.28 0 0 1 0 .2L7 13.88a.26.26 0 0 1-.25.21H1.5a1.25 1.25 0 0 0 0 2.5h4.75a.25.25 0 0 1 .19.09.21.21 0 0 1 0 .2l-1 5.39a1.3 1.3 0 1 0 2.56.45l1.08-5.93a.25.25 0 0 1 .25-.2h3.63a.249.249 0 0 1 .19.09.21.21 0 0 1 .05.2l-1 5.39a1.251 1.251 0 0 0 2.46.45l1.08-5.93a.25.25 0 0 1 .25-.2h4.61a1.25 1.25 0 0 0 0-2.5h-4.08a.25.25 0 0 1-.19-.09.3.3 0 0 1 0-.21l.67-3.68a.25.25 0 0 1 .25-.2h5.3a1.25 1.25 0 0 0 0-2.5h-.05Zm-8.78 6.47a.25.25 0 0 1-.24.21H9.84a.25.25 0 0 1-.241-.189.23.23 0 0 1 .001-.111l.67-3.68a.24.24 0 0 1 .24-.2h3.64a.25.25 0 0 1 .19.09.21.21 0 0 1 .05.2l-.67 3.68Z",fill:"currentColor"})}))));pe.defaultProps={size:"medium",color:"inherit"};const me=pe,ge=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"M8.5 5H23a1 1 0 1 0 0-2H8.5a1 1 0 0 0 0 2ZM23 11H8.5a1 1 0 0 0 0 2H23a1 1 0 0 0 0-2ZM23 19H8.5a1 1 0 0 0 0 2H23a1 1 0 0 0 0-2ZM3.5 2.5h-2A.5.5 0 0 0 1 3v2a.5.5 0 0 0 .5.5h2A.5.5 0 0 0 4 5V3a.5.5 0 0 0-.5-.5Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M3.5 1.5h-2A1.5 1.5 0 0 0 0 3v2a1.5 1.5 0 0 0 1.5 1.5h2A1.5 1.5 0 0 0 5 5V3a1.5 1.5 0 0 0-1.5-1.5ZM4 5a.5.5 0 0 1-.5.5h-2A.5.5 0 0 1 1 5V3a.5.5 0 0 1 .5-.5h2A.5.5 0 0 1 4 3v2ZM3.5 10.5h-2a.5.5 0 0 0-.5.5v2a.5.5 0 0 0 .5.5h2A.5.5 0 0 0 4 13v-2a.5.5 0 0 0-.5-.5Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M3.5 9.5h-2A1.5 1.5 0 0 0 0 11v2a1.5 1.5 0 0 0 1.5 1.5h2A1.5 1.5 0 0 0 5 13v-2a1.5 1.5 0 0 0-1.5-1.5ZM4 13a.5.5 0 0 1-.5.5h-2A.5.5 0 0 1 1 13v-2a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 .5.5v2ZM3.5 18.5h-2a.5.5 0 0 0-.5.5v2a.5.5 0 0 0 .5.5h2A.5.5 0 0 0 4 21v-2a.5.5 0 0 0-.5-.5Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M3.5 17.5h-2A1.5 1.5 0 0 0 0 19v2a1.5 1.5 0 0 0 1.5 1.5h2A1.5 1.5 0 0 0 5 21v-2a1.5 1.5 0 0 0-1.5-1.5ZM4 21a.5.5 0 0 1-.5.5h-2A.5.5 0 0 1 1 21v-2a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 .5.5v2Z",fill:"currentColor"})]}))));ge.defaultProps={size:"medium",color:"inherit"};const ve=ge,ye=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"M22 0H2a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2Zm0 21.5a.5.5 0 0 1-.5.5h-19a.5.5 0 0 1-.5-.5v-19a.5.5 0 0 1 .5-.5h19a.5.5 0 0 1 .5.5v19Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M5.32 19.25h13.36a.77.77 0 0 0 .71-1.17L12.67 5.15a.74.74 0 0 0-1.34 0L4.61 18.08a.77.77 0 0 0 .71 1.17Z",fill:"currentColor"})]}))));ye.defaultProps={size:"medium",color:"inherit"};const be=ye,we=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"M5.75 6a1 1 0 0 0 1-1V2h8.84l2.16 2.16V5a1 1 0 0 0 2 0V3.75a1 1 0 0 0-.29-.75L17 .59A2 2 0 0 0 15.59 0H6.75a2 2 0 0 0-2 2v3a1 1 0 0 0 1 1ZM21.5 7h-19A2.5 2.5 0 0 0 0 9.5V14a2.5 2.5 0 0 0 2.5 2.5H5v6.25A1.25 1.25 0 0 0 6.25 24h12a1.249 1.249 0 0 0 1.25-1.25V16.5h2A2.5 2.5 0 0 0 24 14V9.5A2.5 2.5 0 0 0 21.5 7Zm-18 4.5a1 1 0 1 1 0-2.001 1 1 0 0 1 0 2.001Zm14 10a.5.5 0 0 1-.5.5H7.5a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5H17a.5.5 0 0 1 .5.5v9Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M15 14.75H9.5a.75.75 0 1 0 0 1.5H15a.75.75 0 1 0 0-1.5ZM13.25 18.25H9.5a.75.75 0 1 0 0 1.5h3.75a.75.75 0 1 0 0-1.5Z",fill:"currentColor"})]}))));we.defaultProps={size:"medium",color:"inherit"};const xe=we,ke=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"M20 7.5a1 1 0 0 0-1-1h-7a1 1 0 1 0 0 2h7a1 1 0 0 0 1-1ZM12.5 11a1 1 0 0 0 0 2h4a1 1 0 1 0 0-2h-4Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M23.41 3 21 .59A2 2 0 0 0 19.59 0H8a2 2 0 0 0-2 2v7.82a.25.25 0 0 0 .23.25c.489.027.974.097 1.45.21a.24.24 0 0 0 .32-.23V2.5a.5.5 0 0 1 .5-.5h10.88a.47.47 0 0 1 .35.15l2.12 2.12a.47.47 0 0 1 .15.35V18a.5.5 0 0 1-.5.5h-8.34a.259.259 0 0 0-.254.244.26.26 0 0 0 .024.126l.79 1.5a.25.25 0 0 0 .22.13H22a2 2 0 0 0 2-2V4.41A2 2 0 0 0 23.41 3Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M7.78 12.27a1.451 1.451 0 0 0-2.56 0L.16 21.9A1.44 1.44 0 0 0 1.44 24h10.12a1.43 1.43 0 0 0 1.28-2.09l-5.06-9.64ZM5.75 16a.75.75 0 1 1 1.5 0v3a.75.75 0 1 1-1.5 0v-3Zm.75 6.25a1 1 0 1 1 0-2.001 1 1 0 0 1 0 2Z",fill:"currentColor"})]}))));ke.defaultProps={size:"medium",color:"inherit"};const Se=ke,Ce=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M23.75 11.52a1.25 1.25 0 0 0-1.25-1.25H11.32a.25.25 0 0 1-.25-.25V7.7a.5.5 0 0 0-.601-.487.51.51 0 0 0-.259.137L6.4 11.17a.48.48 0 0 0 0 .7l3.81 3.82a.51.51 0 0 0 .36.15.429.429 0 0 0 .19 0 .5.5 0 0 0 .31-.46V13a.25.25 0 0 1 .25-.25H22.5a1.25 1.25 0 0 0 1.25-1.23ZM1.5 23.75a1.25 1.25 0 0 0 1.25-1.25v-21a1.25 1.25 0 0 0-2.5 0v21a1.25 1.25 0 0 0 1.25 1.25Z",fill:"currentColor"})}))));Ce.defaultProps={size:"medium",color:"inherit"};const je=Ce,Oe=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"M23.41 3 21 .59A2 2 0 0 0 19.59 0H8a2 2 0 0 0-2 2v7.27a.25.25 0 0 0 .25.25c.4 0 1.16 0 1.46.08A.25.25 0 0 0 8 9.35V2.5a.5.5 0 0 1 .5-.5h10.88a.47.47 0 0 1 .35.15l2.12 2.12a.47.47 0 0 1 .15.35V18a.5.5 0 0 1-.5.5h-6.86a.25.25 0 0 0-.24.21 8.893 8.893 0 0 1-.4 1.46.24.24 0 0 0 .22.33H22a2 2 0 0 0 2-2V4.41A2 2 0 0 0 23.41 3Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M6.5 11a6.5 6.5 0 1 0 6.5 6.5A6.51 6.51 0 0 0 6.5 11ZM9 18.25H7.5a.25.25 0 0 0-.25.25V20a.75.75 0 1 1-1.5 0v-1.5a.25.25 0 0 0-.25-.25H4a.75.75 0 1 1 0-1.5h1.5a.25.25 0 0 0 .25-.25V15a.75.75 0 1 1 1.5 0v1.5a.25.25 0 0 0 .25.25H9a.75.75 0 1 1 0 1.5Z",fill:"currentColor"})]}))));Oe.defaultProps={size:"medium",color:"inherit"};const Me=Oe,Pe=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"M23.41 3 21 .59A2 2 0 0 0 19.59 0H8a2 2 0 0 0-2 2v7.28a.26.26 0 0 0 .24.25c.37 0 1 0 1.49.08A.25.25 0 0 0 8 9.36V2.5a.5.5 0 0 1 .5-.5h10.88a.47.47 0 0 1 .35.15l2.12 2.12a.47.47 0 0 1 .15.35V18a.5.5 0 0 1-.5.5h-6.86a.25.25 0 0 0-.24.21 8.893 8.893 0 0 1-.4 1.46.24.24 0 0 0 .23.33H22a2 2 0 0 0 2-2V4.41A2 2 0 0 0 23.41 3Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M6.5 11a6.5 6.5 0 1 0 6.5 6.5A6.51 6.51 0 0 0 6.5 11Zm1.24 6.68 1.41 1.41a.75.75 0 0 1-1.06 1.06l-1.41-1.41a.25.25 0 0 0-.36 0l-1.41 1.41a.75.75 0 0 1-1.06-1.06l1.41-1.41a.25.25 0 0 0 0-.36l-1.41-1.41a.75.75 0 1 1 1.06-1.06l1.41 1.41a.25.25 0 0 0 .36 0l1.41-1.41a.75.75 0 1 1 1.06 1.06l-1.41 1.41a.25.25 0 0 0 0 .36Z",fill:"currentColor"})]}))));Pe.defaultProps={size:"medium",color:"inherit"};const Ee=Pe,Ae=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"M11 8h3.5a1 1 0 1 0 0-2H11a1 1 0 1 0 0 2ZM11 12h7.5a1 1 0 0 0 0-2H11a1 1 0 0 0 0 2Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M23.71 5.71 18.29.29a1 1 0 0 0-.7-.29H8a2 2 0 0 0-2 2v11.17c0 .19.1.33.25.33h1.5a.25.25 0 0 0 .25-.25v-11A.25.25 0 0 1 8.25 2h8.82a.31.31 0 0 1 .18.07l4.68 4.68a.31.31 0 0 1 .07.18v12.82a.25.25 0 0 1-.25.25h-6a.25.25 0 0 0-.25.25v1.5a.25.25 0 0 0 .25.25H22a2 2 0 0 0 2-2V6.41a1 1 0 0 0-.29-.7Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M13 15H6a.999.999 0 0 1-.8-.4l-.9-1.2a1 1 0 0 0-.8-.4H1a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-7a1 1 0 0 0-1-1Z",fill:"currentColor"})]}))));Ae.defaultProps={size:"medium",color:"inherit"};const Te=Ae,_e=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"M23.41 3 21 .59A2 2 0 0 0 19.59 0H8a2 2 0 0 0-2 2v7.28a.24.24 0 0 0 .25.24c.488-.02.978.01 1.46.09A.25.25 0 0 0 8 9.36V2.5a.5.5 0 0 1 .5-.5h10.88a.47.47 0 0 1 .35.15l2.12 2.12a.47.47 0 0 1 .15.35V18a.5.5 0 0 1-.5.5h-6.86a.25.25 0 0 0-.25.21c-.079.499-.21.988-.39 1.46a.25.25 0 0 0 .23.33H22a2 2 0 0 0 2-2V4.41A2 2 0 0 0 23.41 3Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M6.5 11a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13Zm-4 8.6a4.41 4.41 0 0 1-.36-3.32 4.47 4.47 0 0 1 3.11-3.11 4.41 4.41 0 0 1 3.32.36.26.26 0 0 1 .06.4l-5.7 5.72a.25.25 0 0 1-.4-.05H2.5Zm8.3-.88a4.47 4.47 0 0 1-3.11 3.11 4.41 4.41 0 0 1-3.32-.36.25.25 0 0 1-.05-.4l5.72-5.72a.25.25 0 0 1 .4.05 4.41 4.41 0 0 1 .39 3.32h-.03Z",fill:"currentColor"})]}))));_e.defaultProps={size:"medium",color:"inherit"};const De=_e,Re=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"M17.495 11a6.5 6.5 0 1 0 6.5 6.5 6.51 6.51 0 0 0-6.5-6.5Zm1.24 6.68 1.41 1.41a.75.75 0 0 1-1.06 1.06l-1.41-1.41a.25.25 0 0 0-.36 0l-1.41 1.41a.75.75 0 0 1-1.06-1.06l1.41-1.41a.25.25 0 0 0 0-.36l-1.41-1.41a.75.75 0 1 1 1.06-1.06l1.41 1.41a.25.25 0 0 0 .36 0l1.41-1.41a.75.75 0 1 1 1.06 1.06l-1.41 1.41a.25.25 0 0 0 0 .36Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M8.75 18H2.5a.5.5 0 0 1-.5-.5v-15a.5.5 0 0 1 .5-.5h15a.5.5 0 0 1 .5.5v6.543a1 1 0 0 0 2 0V2a2 2 0 0 0-2-2H2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h6.75a1 1 0 0 0 0-2Z",fill:"currentColor"})]}))));Re.defaultProps={size:"medium",color:"inherit"};const ze=Re,Ie=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"M17.495 11a6.5 6.5 0 1 0 6.5 6.5 6.51 6.51 0 0 0-6.5-6.5Zm2.5 7.25h-1.5a.25.25 0 0 0-.25.25V20a.75.75 0 1 1-1.5 0v-1.5a.25.25 0 0 0-.25-.25h-1.5a.75.75 0 1 1 0-1.5h1.5a.25.25 0 0 0 .25-.25V15a.75.75 0 1 1 1.5 0v1.5a.25.25 0 0 0 .25.25h1.5a.75.75 0 1 1 0 1.5Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M8.75 18H2.5a.5.5 0 0 1-.5-.5v-15a.5.5 0 0 1 .5-.5h15a.5.5 0 0 1 .5.5v6.543a1 1 0 0 0 2 0V2a2 2 0 0 0-2-2H2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h6.75a1 1 0 0 0 0-2Z",fill:"currentColor"})]}))));Ie.defaultProps={size:"medium",color:"inherit"};const Le=Ie,$e=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"m23.894 21.77-11-20.53a1 1 0 0 0-1.76 0l-11 20.53a1 1 0 0 0 0 1 1 1 0 0 0 .86.49h22.02a1 1 0 0 0 .86-.49 1 1 0 0 0 .02-1Zm-2.75-.65a.26.26 0 0 1-.22.13H3.104a.26.26 0 0 1-.22-.13.25.25 0 0 1 0-.24l8.91-16.64a.25.25 0 0 1 .44 0l8.91 16.64a.25.25 0 0 1 0 .24Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M12.264 15.71a1 1 0 0 0 1-1V9.45a1 1 0 0 0-2 0v5.26a1 1 0 0 0 1 1ZM12.264 19.46a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z",fill:"currentColor"})]}))));$e.defaultProps={size:"medium",color:"inherit"};const Ne=$e,Ze=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"M21.75 0H2.25A2.25 2.25 0 0 0 0 2.25v19.5A2.25 2.25 0 0 0 2.25 24h19.5A2.25 2.25 0 0 0 24 21.75V2.25A2.25 2.25 0 0 0 21.75 0Zm-.25 21.5h-19v-19h19v19Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M7.07 16.93a1.231 1.231 0 0 0 1.76 0l3-3a.27.27 0 0 1 .36 0l3 3a1.23 1.23 0 0 0 1.76 0 1.24 1.24 0 0 0 0-1.76l-3-3a.27.27 0 0 1 0-.36l3-3a1.244 1.244 0 1 0-1.76-1.76l-3 3a.27.27 0 0 1-.36 0l-3-3a1.252 1.252 0 0 0-1.76 1.78l3 3a.27.27 0 0 1 0 .36l-3 3a1.24 1.24 0 0 0 0 1.74Z",fill:"currentColor"})]}))));Ze.defaultProps={size:"medium",color:"inherit"};const He=Ze,Ve=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"M21.8 0H2.2A2.21 2.21 0 0 0 0 2.2v19.6A2.21 2.21 0 0 0 2.2 24h19.6a2.21 2.21 0 0 0 2.2-2.2V2.2A2.21 2.21 0 0 0 21.8 0Zm-.3 21.5h-19v-19h19v19Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M6.27 13.25h4.23a.25.25 0 0 1 .25.25v4.23a1.25 1.25 0 0 0 2.5 0V13.5a.25.25 0 0 1 .25-.25h4.23a1.25 1.25 0 0 0 0-2.5H13.5a.25.25 0 0 1-.25-.25V6.27a1.25 1.25 0 0 0-2.5 0v4.23a.25.25 0 0 1-.25.25H6.27a1.25 1.25 0 0 0 0 2.5Z",fill:"currentColor"})]}))));Ve.defaultProps={size:"medium",color:"inherit"};const Fe=Ve,Be=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"M22 1.5H5.5a2 2 0 0 0-2 2V17a2 2 0 0 0 2 2H22a2 2 0 0 0 2-2V3.5a2 2 0 0 0-2-2Zm-.5 2a.5.5 0 0 1 .5.5v.19a.502.502 0 0 1-.22.42l-7.52 5a.52.52 0 0 1-.55 0l-8-5a.5.5 0 0 1-.23-.42V4A.5.5 0 0 1 6 3.5h15.5ZM6 17a.5.5 0 0 1-.5-.5V7.72a.51.51 0 0 1 .26-.44.49.49 0 0 1 .51 0l7.2 4.54A.92.92 0 0 0 14 12a1 1 0 0 0 .55-.17l6.67-4.45a.5.5 0 0 1 .78.42v8.7a.51.51 0 0 1-.5.5H6Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M19.5 20.5h-17A.5.5 0 0 1 2 20V6a1 1 0 0 0-2 0v14.5a2 2 0 0 0 2 2h17.5a1 1 0 0 0 0-2Z",fill:"currentColor"})]}))));Be.defaultProps={size:"medium",color:"inherit"};const We=Be,Ue=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M14.3 12.18a.24.24 0 0 1 0-.35l9.257-9.274a1.49 1.49 0 0 0 0-2.121 1.509 1.509 0 0 0-2.12 0L12.18 9.699a.251.251 0 0 1-.36 0L2.562.435A1.51 1.51 0 0 0 .115.92a1.492 1.492 0 0 0 .328 1.635L9.7 11.83a.24.24 0 0 1 0 .35L.443 21.444a1.49 1.49 0 0 0 0 2.121 1.51 1.51 0 0 0 2.12 0l9.257-9.264a.252.252 0 0 1 .278-.057c.03.014.059.033.082.057l9.258 9.264a1.51 1.51 0 0 0 2.447-.486 1.492 1.492 0 0 0-.328-1.635L14.3 12.18Z",fill:"currentColor"})}))));Ue.defaultProps={size:"medium",color:"inherit"};const Ye=Ue,qe=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M24 11.963a2.41 2.41 0 0 0-.815-1.8L11.995.327A1.443 1.443 0 0 0 9.64 1.507c.018.373.18.724.451.98l8.646 7.6a.25.25 0 0 1-.165.436H1.442A1.442 1.442 0 0 0 0 11.963a1.439 1.439 0 0 0 1.442 1.44H18.57a.252.252 0 0 1 .165.438l-8.646 7.6a1.441 1.441 0 0 0 .284 2.418 1.443 1.443 0 0 0 1.619-.258l11.192-9.838a2.408 2.408 0 0 0 .816-1.8Z",fill:"currentColor"})}))));qe.defaultProps={size:"medium",color:"inherit"};const Ge=qe,Ke=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M21.546 0h-8.12a1.5 1.5 0 0 0 0 3h7.33a.25.25 0 0 1 .25.25v13.22a.25.25 0 0 1-.25.25H7.006a.25.25 0 0 1-.25-.25v-3a1 1 0 0 0-1.71-.71l-4.75 4.75a1 1 0 0 0 0 1.42l4.78 4.77a1 1 0 0 0 .71.3 1 1 0 0 0 1-1v-3a.25.25 0 0 1 .22-.28h14.54a2.46 2.46 0 0 0 2.46-2.46V2.45A2.46 2.46 0 0 0 21.546 0Z",fill:"currentColor"})}))));Ke.defaultProps={size:"medium",color:"inherit"};const Xe=Ke,Qe=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M21.943 15.236a1.25 1.25 0 0 0-2.13-1l-1.55 1.55a1.002 1.002 0 0 0 0 1.42 1 1 0 0 0 .69.29.24.24 0 0 1 .21.12.23.23 0 0 1 0 .24 7.579 7.579 0 0 1-5.09 4 .53.53 0 0 1-.42-.1.51.51 0 0 1-.19-.39v-9.47a.5.5 0 0 1 .5-.5h3a1 1 0 0 0 0-2h-3a.5.5 0 0 1-.5-.5v-1.69a.49.49 0 0 1 .31-.46 3.5 3.5 0 1 0-2.62 0 .49.49 0 0 1 .31.46v1.69a.5.5 0 0 1-.5.5h-3a1 1 0 1 0 0 2h3a.5.5 0 0 1 .5.5v9.45a.51.51 0 0 1-.19.39.53.53 0 0 1-.42.1 7.58 7.58 0 0 1-5.09-4 .23.23 0 0 1 0-.24.24.24 0 0 1 .21-.12 1 1 0 0 0 .69-1.71l-1.53-1.51a1.27 1.27 0 0 0-1.41-.24 1.26 1.26 0 0 0-.72 1.23 9.5 9.5 0 0 0 18.94 0v-.01Zm-10.97-11.72a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z",fill:"currentColor"})}))));Qe.defaultProps={size:"medium",color:"inherit"};const Je=Qe,et=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.315 16a6.33 6.33 0 0 0 1.87-.283 5.365 5.365 0 0 1-1.048-1.184.34.34 0 0 1-.161-.265 5.31 5.31 0 0 1-.696-2.637c0-.959.253-1.859.695-2.636v-1.06a.333.333 0 0 1 .334-.333h.808a5.33 5.33 0 0 1 1.76-1.016.666.666 0 0 0-.568-.317h-2a.333.333 0 0 1-.334-.333V4.809a.327.327 0 0 1 .207-.307 2.333 2.333 0 1 0-1.747 0 .327.327 0 0 1 .207.307v1.127a.333.333 0 0 1-.333.333h-2a.667.667 0 1 0 0 1.333h2a.333.333 0 0 1 .333.334v6.3a.34.34 0 0 1-.127.26.354.354 0 0 1-.28.066 5.053 5.053 0 0 1-3.393-2.666.153.153 0 0 1 0-.16.16.16 0 0 1 .14-.08.667.667 0 0 0 .46-1.14l-1.02-1.007a.847.847 0 0 0-.94-.16.84.84 0 0 0-.48.82A6.333 6.333 0 0 0 6.315 16Zm-1-13.65a1 1 0 1 1 2 0 1 1 0 0 1-2 0Z",fill:"currentColor"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.225 8.08a4.333 4.333 0 0 1 2.408-.73 4.34 4.34 0 0 1 4.333 4.332 4.334 4.334 0 1 1-6.74-3.603Zm4.32 5.016a.5.5 0 0 0-.146-.354l-.94-.94a.168.168 0 0 1 0-.24l.94-.94a.5.5 0 0 0-.706-.706l-.94.94a.168.168 0 0 1-.24 0l-.94-.94a.5.5 0 1 0-.707.707l.94.94a.166.166 0 0 1 0 .24l-.94.94a.5.5 0 0 0 .707.706l.94-.94a.166.166 0 0 1 .24 0l.94.94a.5.5 0 0 0 .853-.353Z",fill:"currentColor"})]}))));et.defaultProps={size:"medium",color:"inherit"};const tt=et,nt=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M24 4.5a3 3 0 0 0-3-3H3a3 3 0 0 0-3 3V19a3 3 0 0 0 3 3h18a3 3 0 0 0 3-3V4.5Zm-14.35-1a1 1 0 0 1 1.7 0 .91.91 0 0 1 0 1 1 1 0 0 1-1.7 0 .91.91 0 0 1 0-1Zm-3.5 0a1 1 0 0 1 1.7 0 .91.91 0 0 1 0 1 1 1 0 0 1-1.7 0 .91.91 0 0 1 0-1Zm-3.56.09a1 1 0 0 1 1.76-.09.91.91 0 0 1 0 1A1 1 0 0 1 2.5 4a1.12 1.12 0 0 1 .09-.41ZM22 19a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6.75a.25.25 0 0 1 .25-.25h19.5a.25.25 0 0 1 .25.25V19Z",fill:"currentColor"})}))));nt.defaultProps={size:"medium",color:"inherit"};const rt=nt,it=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.121 3.879A3 3 0 0 1 20 6v9.5a3 3 0 0 1-3 3H4.5a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3H17a3 3 0 0 1 2.121.879Zm-7.607.774A1 1 0 0 0 11.15 5a.91.91 0 0 0 0 1 1 1 0 0 0 1.7 0 .91.91 0 0 0 0-1 1 1 0 0 0-1.336-.347Zm-3.5 0A1 1 0 0 0 7.65 5a.91.91 0 0 0 0 1 1 1 0 0 0 1.7 0 .91.91 0 0 0 0-1 1 1 0 0 0-1.336-.347Zm-3.576.033a1 1 0 0 0-.348.404A1.12 1.12 0 0 0 4 5.5a1 1 0 0 0 1.85.5.91.91 0 0 0 0-1 1 1 0 0 0-1.412-.314Zm13.27 11.521A1 1 0 0 0 18 15.5V8.25a.25.25 0 0 0-.25-.25h-14a.25.25 0 0 0-.25.25v7.25a1 1 0 0 0 1 1H17a1 1 0 0 0 .707-.293Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M20.5 22H8a1 1 0 0 1 0-2h12.5a1 1 0 0 0 1-1V7.5a1 1 0 1 1 2 0V19a3 3 0 0 1-3 3Z",fill:"currentColor"})]}))));it.defaultProps={size:"medium",color:"inherit"};const ot=it,at=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"M17.34 10.378a6.67 6.67 0 1 0 .516 13.33 6.67 6.67 0 0 0-.516-13.33Zm-3.73 9a.22.22 0 0 1-.2.07.25.25 0 0 1-.19-.12 4.5 4.5 0 0 1-.45-1.17 4.69 4.69 0 0 1 4.58-5.79c.367 0 .732.041 1.09.12.408.092.8.247 1.16.46a.231.231 0 0 1 .13.18.28.28 0 0 1-.07.21l-.31.31-5.43 5.41-.31.32Zm7 1a4.74 4.74 0 0 1-4.42 1.24 4.502 4.502 0 0 1-1.17-.45.282.282 0 0 1-.12-.18.26.26 0 0 1 .07-.21l6.05-6.05a.25.25 0 0 1 .2-.07.26.26 0 0 1 .19.13c.205.363.357.754.45 1.16a4.73 4.73 0 0 1-1.21 4.42l-.04.01Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M20.74.008H3a3 3 0 0 0-3 3v14.29a3 3 0 0 0 3 3h4.9a1 1 0 0 0 0-2H3a1 1 0 0 1-1-1v-12.1a.25.25 0 0 1 .24-.25h19.24a.25.25 0 0 1 .25.25v3.66a1 1 0 0 0 2 0v-5.89a3 3 0 0 0-2.99-2.96Zm-16.45 3a1 1 0 0 1-.83.5 1 1 0 0 1-.84-.5.91.91 0 0 1-.06-.89 1 1 0 0 1 .9-.59 1 1 0 0 1 .83.5.88.88 0 0 1 0 1v-.02Zm3.46 0a.95.95 0 0 1-1.67 0 .88.88 0 0 1 0-1 .95.95 0 0 1 1.67 0 .88.88 0 0 1 0 1Zm3.46 0a1 1 0 0 1-.84.5 1 1 0 0 1-.83-.5.92.92 0 0 1-.16-.49.92.92 0 0 1 .16-.49 1 1 0 0 1 .83-.5 1 1 0 0 1 .84.5.88.88 0 0 1 0 1v-.02Z",fill:"currentColor"})]}))));at.defaultProps={size:"medium",color:"inherit"};const st=at,lt=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"M22.29 16.128a3 3 0 0 0 0-4.24l-11-11a3 3 0 0 0-2.12-.88H2a2 2 0 0 0-2 2v7.17a3 3 0 0 0 .88 2.12l11 11a3 3 0 0 0 4.24 0l6.17-6.17Zm-1.41-1.41-6.18 6.17a1 1 0 0 1-1.41 0l-11-11a1 1 0 0 1-.29-.71v-6.67a.5.5 0 0 1 .5-.5h6.67a1 1 0 0 1 .71.29l11 11a1 1 0 0 1 0 1.42Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M6 7.508a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z",fill:"currentColor"})]}))));lt.defaultProps={size:"medium",color:"inherit"};const ct=lt,ut=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"M19.29 17.008a3 3 0 0 0 0-4.24l-8-8a3 3 0 0 0-2.12-.88H2a2 2 0 0 0-2 2v7.12a3 3 0 0 0 .88 2.12l8 8a3 3 0 0 0 4.24 0l6.17-6.12Zm-1.41-1.41-6.18 6.12a1 1 0 0 1-1.41 0l-8-8a1.001 1.001 0 0 1-.29-.71v-6.67a.5.5 0 0 1 .5-.5h6.67a1 1 0 0 1 .71.29l8 8a1 1 0 0 1 0 1.42v.05Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M6 11.338a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM3.83 2.258a.25.25 0 0 0 .25.25h1.54a.26.26 0 0 0 .24-.17.49.49 0 0 1 .47-.33H13a1 1 0 0 1 .71.29l8 8a1 1 0 0 1 0 1.42l-.72.71a.26.26 0 0 0 0 .35l1.06 1.06a.249.249 0 0 0 .36 0l.71-.71a3 3 0 0 0 0-4.24l-8-8A3 3 0 0 0 13 .008H5.83a2 2 0 0 0-2 2v.25Z",fill:"currentColor"})]}))));ut.defaultProps={size:"medium",color:"inherit"};const dt=ut,ht=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm0 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"m11.88 8.38-1.94 1.94a.26.26 0 0 0 0 .28.25.25 0 0 0 .23.15H18a1.25 1.25 0 0 1 0 2.5h-7.88a.25.25 0 0 0-.23.15.26.26 0 0 0 0 .28l1.94 1.94a1.25 1.25 0 1 1-1.77 1.76l-4.5-4.5a1.26 1.26 0 0 1 0-1.76l4.5-4.5a1.25 1.25 0 1 1 1.77 1.76h.05Z",fill:"currentColor"})]}))));ht.defaultProps={size:"medium",color:"inherit"};const ft=ht,pt=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"M12 24A12 12 0 1 0 12 .001 12 12 0 0 0 12 24Zm0-2a10 10 0 1 1 0-20 10 10 0 0 1 0 20Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"m12.11 15.62 1.94-1.94a.25.25 0 0 0 .06-.28.25.25 0 0 0-.23-.15H6a1.25 1.25 0 0 1 0-2.5h7.88a.25.25 0 0 0 .23-.15.24.24 0 0 0-.06-.28l-1.94-1.94a1.25 1.25 0 0 1 1.77-1.76l4.5 4.5a1.23 1.23 0 0 1 0 1.76l-4.5 4.5a1.25 1.25 0 0 1-1.77-1.76Z",fill:"currentColor"})]}))));pt.defaultProps={size:"medium",color:"inherit"};const mt=pt,gt=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M20.5 5.27a.24.24 0 0 1 .35 0l1.44 1.44A1 1 0 0 0 23 7a1 1 0 0 0 1-1V1a1 1 0 0 0-1-1h-5a1 1 0 0 0-.92.62 1 1 0 0 0 .21 1.09l1.44 1.44a.24.24 0 0 1 0 .35l-6.55 6.55a.25.25 0 0 1-.36 0L5.27 3.5a.24.24 0 0 1 0-.35l1.44-1.44A1 1 0 0 0 6.92.62 1 1 0 0 0 6 0H1a1 1 0 0 0-1 1v5a1 1 0 0 0 .62.92 1 1 0 0 0 .764.006 1 1 0 0 0 .326-.216l1.44-1.44a.24.24 0 0 1 .35 0l6.56 6.55a.27.27 0 0 1 0 .36L3.5 18.73a.24.24 0 0 1-.35 0l-1.44-1.44a1 1 0 0 0-1.09-.21A1 1 0 0 0 0 18v5a1 1 0 0 0 1 1h5a1 1 0 0 0 .92-.62 1 1 0 0 0-.21-1.09l-1.44-1.44a.24.24 0 0 1 0-.35l6.55-6.56a.27.27 0 0 1 .36 0l6.55 6.56a.24.24 0 0 1 0 .35l-1.44 1.44a.999.999 0 0 0-.21 1.09A1 1 0 0 0 18 24h5a1 1 0 0 0 1-1v-5a1 1 0 0 0-.62-.92 1 1 0 0 0-1.09.21l-1.44 1.44a.24.24 0 0 1-.35 0l-6.56-6.55a.27.27 0 0 1 0-.36l6.56-6.55Z",fill:"currentColor"})}))));gt.defaultProps={size:"medium",color:"inherit"};const vt=gt,yt=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M23.38.628a1.24 1.24 0 0 0-1.76 0l-3.42 3.38a.26.26 0 0 1-.2.1.29.29 0 0 1-.15-.1l-1.32-1.3a1 1 0 0 0-1.71.71v4.77a1 1 0 0 0 1 1h4.77a1 1 0 0 0 .92-.62 1 1 0 0 0-.21-1.09L20 6.158a.25.25 0 0 1 0-.36l3.41-3.41a1.239 1.239 0 0 0-.03-1.76ZM.62 23.388a1.209 1.209 0 0 0 .88.37 1.209 1.209 0 0 0 .88-.37l3.42-3.38a.22.22 0 0 1 .2-.1.242.242 0 0 1 .18.07l1.29 1.33a.999.999 0 0 0 .71.29.84.84 0 0 0 .38-.08 1 1 0 0 0 .62-.92v-4.77a1 1 0 0 0-1-1H3.41a1 1 0 0 0-.98 1.187 1 1 0 0 0 .27.513l1.3 1.33a.24.24 0 0 1 0 .35l-3.38 3.42a1.24 1.24 0 0 0 0 1.76ZM14.82 20.598a1 1 0 0 0 .62.92.84.84 0 0 0 .38.08.998.998 0 0 0 .71-.29l1.32-1.3a.24.24 0 0 1 .15-.1.223.223 0 0 1 .17.07l3.42 3.41a1.228 1.228 0 0 0 1.76 0 1.238 1.238 0 0 0 0-1.76L20 18.208a.24.24 0 0 1 0-.35l1.33-1.33a1 1 0 0 0-.71-1.7h-4.8a1 1 0 0 0-1 1v4.77ZM9.18 3.418a1 1 0 0 0-1.71-.71l-1.32 1.3a.29.29 0 0 1-.15.1.26.26 0 0 1-.2-.1L2.38.628a1.245 1.245 0 0 0-1.76 1.76L4 5.798a.25.25 0 0 1 0 .36l-1.3 1.32a1 1 0 0 0-.21 1.09 1 1 0 0 0 .92.62h4.77a1 1 0 0 0 1-1v-4.77Z",fill:"currentColor"})}))));yt.defaultProps={size:"medium",color:"inherit"};const bt=yt,wt=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M20.75 24.008h-11a1.5 1.5 0 0 1-1.48-1.29.26.26 0 0 0-.27-.21H3.73a2 2 0 0 1-2-2v-19.5a1 1 0 0 1 2 0v5a.5.5 0 0 0 .5.5H8a.26.26 0 0 0 .25-.21 1.5 1.5 0 0 1 1.5-1.29h11a1.5 1.5 0 0 1 1.5 1.5v2a1.5 1.5 0 0 1-1.5 1.5h-11a1.5 1.5 0 0 1-1.48-1.29.26.26 0 0 0-.27-.21H4.23a.5.5 0 0 0-.5.5v4a.5.5 0 0 0 .5.5H8a.26.26 0 0 0 .25-.21 1.5 1.5 0 0 1 1.5-1.29h11a1.5 1.5 0 0 1 1.5 1.5v2a1.5 1.5 0 0 1-1.5 1.5h-11a1.5 1.5 0 0 1-1.48-1.29.26.26 0 0 0-.27-.21H4.23a.5.5 0 0 0-.5.5v4a.5.5 0 0 0 .5.5H8a.26.26 0 0 0 .25-.21 1.5 1.5 0 0 1 1.5-1.29h11a1.5 1.5 0 0 1 1.5 1.5v2a1.5 1.5 0 0 1-1.5 1.5Z",fill:"currentColor"})}))));wt.defaultProps={size:"medium",color:"inherit"};const xt=wt,kt=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"m24.33 21.403-4.82-4.77a10.65 10.65 0 1 0-8.854 4.739 10.537 10.537 0 0 0 5.913-1.808l4.832 4.832a2.078 2.078 0 0 0 2.93 0 2.08 2.08 0 0 0 0-2.993ZM10.658 3.126a7.534 7.534 0 1 1-7.534 7.543 7.544 7.544 0 0 1 7.533-7.543Z",fill:"currentColor"})}))));kt.defaultProps={size:"medium",color:"inherit"};const St=kt,Ct=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M20.79 14.228a11.128 11.128 0 0 1-3.67.7 6.39 6.39 0 0 1-4.1-1.32.49.49 0 0 0-.79.25l-2 7a.5.5 0 0 0 0 .32c.18.45 3 1.78 4.62 1.78a11.559 11.559 0 0 0 4.36-1 .541.541 0 0 0 .29-.32l2-6.84a.51.51 0 0 0-.14-.51.5.5 0 0 0-.57-.06ZM10.76 12.678a7.71 7.71 0 0 0-4.17-1.42 11.922 11.922 0 0 0-4.22 1 .471.471 0 0 0-.29.32l-2.06 7.03a.5.5 0 0 0 .67.6 9.841 9.841 0 0 1 3.64-.83 6.45 6.45 0 0 1 3.78 1.33.49.49 0 0 0 .28.09c.055.01.113.01.17 0a.509.509 0 0 0 .31-.33c.42-1.46 1.84-6.3 2.15-7.22a.51.51 0 0 0-.26-.57ZM3.21 10.168a10 10 0 0 1 3.75-.88 6.4 6.4 0 0 1 3.64 1.32c.084.05.18.078.28.08.055.01.113.01.17 0a.53.53 0 0 0 .31-.33l2.07-7.09a.596.596 0 0 0 0-.14.5.5 0 0 0-.24-.43 7.6 7.6 0 0 0-4.4-1.39 11 11 0 0 0-4 .92.5.5 0 0 0-.29.33l-2 7a.51.51 0 0 0 .15.51.47.47 0 0 0 .56.1ZM23.85 4.188a.51.51 0 0 0-.53-.08 9.3 9.3 0 0 1-3.73.9 6.55 6.55 0 0 1-4.05-1.34.48.48 0 0 0-.78.25l-2.06 7.09a.61.61 0 0 0 .22.57 8.29 8.29 0 0 0 4.66 1.43 9.69 9.69 0 0 0 4.11-1 .47.47 0 0 0 .17-.14.45.45 0 0 0 .11-.19l2-7a.51.51 0 0 0-.12-.49Z",fill:"currentColor"})}))));Ct.defaultProps={size:"medium",color:"inherit"};const jt=Ct,Ot=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M21.5 3h-2.75a.25.25 0 0 1-.25-.25V1a1 1 0 1 0-2 0v4.75a.75.75 0 1 1-1.5 0V3.5a.5.5 0 0 0-.5-.5H8.25A.25.25 0 0 1 8 2.75V1a1 1 0 1 0-2 0v4.75a.75.75 0 1 1-1.5 0V3.5A.5.5 0 0 0 4 3H2.5a2 2 0 0 0-2 2v17a2 2 0 0 0 2 2h19a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2ZM21 22H3a.5.5 0 0 1-.5-.5v-12A.5.5 0 0 1 3 9h18a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5Z",fill:"currentColor"})}))));Ot.defaultProps={size:"medium",color:"inherit"};const Mt=Ot,Pt=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"M23.41 3 21 .6a2 2 0 0 0-1.41-.6H8a2 2 0 0 0-2 2v7.3a.24.24 0 0 0 .22.24 7.16 7.16 0 0 1 1.46.31.24.24 0 0 0 .32-.21V2.52A.5.5 0 0 1 8.5 2h10.88a.5.5 0 0 1 .35.14l2.12 2.12a.51.51 0 0 1 .15.36V18a.5.5 0 0 1-.5.5h-9.13a.24.24 0 0 0-.23.17c-.16.43-.36.9-.44 1.11-.08.21.14.28.26.41.12.13.28.31.37.31H22a2 2 0 0 0 2-2V4.43A2 2 0 0 0 23.41 3Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M10.17 19.77a.24.24 0 0 1 0-.3 5.5 5.5 0 1 0-6.724 2.14 5.49 5.49 0 0 0 5.034-.46.24.24 0 0 1 .3 0l2.51 2.51a1 1 0 0 0 1.41-1.41l-2.53-2.48ZM5.5 20a3.5 3.5 0 1 1 0-7 3.5 3.5 0 0 1 0 7Z",fill:"currentColor"})]}))));Pt.defaultProps={size:"medium",color:"inherit"};const Et=Pt,At=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M22.72 6.53a1 1 0 0 0-1.3-.46 3.5 3.5 0 0 1-4.53-1.62 1 1 0 0 0-1.35-.44 3.43 3.43 0 0 1-1.54.37 3.5 3.5 0 0 1-3.5-3.5.75.75 0 0 0-.91-.74A12 12 0 1 0 24 11.88a11.75 11.75 0 0 0-1.28-5.35Zm-18.8 8.18a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm4.75-8.16a2 2 0 1 1 0 4 2 2 0 0 1 0-4ZM9 18.88a2 2 0 1 1 0-4 2 2 0 0 1 0 4Zm4.67-7.75a1 1 0 1 1 2 0 1 1 0 0 1-2 0ZM15 19.88a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm3.5-4a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Z",fill:"currentColor"})}))));At.defaultProps={size:"medium",color:"inherit"};const Tt=At,_t=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"M13.4 4.73a.24.24 0 0 0 .2.26 1.09 1.09 0 0 1 .82 1.11v1.4a1.24 1.24 0 0 0 1.25 1.24 1.23 1.23 0 0 0 1.24-1.24V4a1.5 1.5 0 0 0-1.49-1.5h-1.73a.29.29 0 0 0-.18.07.26.26 0 0 0-.07.18c0 .45 0 1.47-.04 1.98ZM9 21.26A1.23 1.23 0 0 0 7.71 20H3.48a1.071 1.071 0 0 1-1-1.14V6.1A1.08 1.08 0 0 1 3.33 5a.25.25 0 0 0 .2-.26v-2a.25.25 0 0 0-.25-.25H1.5A1.5 1.5 0 0 0 0 4v17a1.5 1.5 0 0 0 1.49 1.5h6.22A1.239 1.239 0 0 0 9 21.26ZM11.94 4.47v-2a.5.5 0 0 0-.5-.49h-.76a.26.26 0 0 1-.25-.22 2 2 0 0 0-3.95 0 .25.25 0 0 1-.25.24h-.76a.49.49 0 0 0-.47.48v2a.49.49 0 0 0 .49.5h6a.5.5 0 0 0 .45-.51ZM19 17.27h-4a.75.75 0 0 0 0 1.5h4a.75.75 0 1 0 0-1.5ZM14.29 14.54a.76.76 0 0 0 .75.75h2.49a.75.75 0 1 0 0-1.5H15a.76.76 0 0 0-.71.75Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M23.5 13.46a2 2 0 0 0-.58-1.41l-1.41-1.4a2 2 0 0 0-1.41-.59h-7.61a2 2 0 0 0-2 2V22a2 2 0 0 0 2 2h9a2 2 0 0 0 2-2l.01-8.54Zm-11-.4a1 1 0 0 1 1-1h6.19a1.002 1.002 0 0 1 .71.29l.82.82a1 1 0 0 1 .29.7V21a1 1 0 0 1-1 1h-7a1 1 0 0 1-1-1l-.01-7.94Z",fill:"currentColor"})]}))));_t.defaultProps={size:"medium",color:"inherit"};const Dt=_t,Rt=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"m15.32 2.15 4.53 4.53A.49.49 0 0 1 20 7v14.5a.5.5 0 0 1-.5.5h-15a.5.5 0 0 1-.5-.5v-19a.5.5 0 0 1 .5-.5H15a.49.49 0 0 1 .32.15ZM15.59 0H4a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6.41a1 1 0 0 0-.29-.7L16.29.29a1 1 0 0 0-.7-.29Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M16 11H7a1 1 0 0 1 0-2h9a1 1 0 1 1 0 2ZM16 15H7a1 1 0 0 1 0-2h9a1 1 0 0 1 0 2ZM11.5 19H7a1 1 0 0 1 0-2h4.5a1 1 0 0 1 0 2Z",fill:"currentColor"})]}))));Rt.defaultProps={size:"medium",color:"inherit"};const zt=Rt,It=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M24 12a1.25 1.25 0 0 0-1.25-1.25h-1.59a9.27 9.27 0 0 0-7.91-7.91V1.25a1.25 1.25 0 0 0-2.5 0v1.59a9.27 9.27 0 0 0-7.91 7.91H1.25a1.25 1.25 0 0 0 0 2.5h1.59a9.25 9.25 0 0 0 7.91 7.9v1.6a1.25 1.25 0 0 0 2.5 0v-1.6a9.25 9.25 0 0 0 7.91-7.9h1.59A1.249 1.249 0 0 0 24 12Zm-10.44 6.56a.23.23 0 0 1-.21 0 .239.239 0 0 1-.1-.19v-1.12a1.25 1.25 0 0 0-2.5 0v1.07a.24.24 0 0 1-.1.19.23.23 0 0 1-.21 0 6.74 6.74 0 0 1-5-5 .28.28 0 0 1 0-.22.25.25 0 0 1 .2-.09h1.11a1.25 1.25 0 0 0 0-2.5H5.68a.25.25 0 0 1-.24-.31 6.76 6.76 0 0 1 5-5 .26.26 0 0 1 .31.25v1.11a1.25 1.25 0 0 0 2.5 0V5.68a.26.26 0 0 1 .31-.25 6.76 6.76 0 0 1 5 5 .25.25 0 0 1-.24.31h-1.07a1.25 1.25 0 0 0 0 2.5h1.07a.25.25 0 0 1 .2.09.28.28 0 0 1 0 .22 6.74 6.74 0 0 1-4.96 5.01Z",fill:"currentColor"})}))));It.defaultProps={size:"medium",color:"inherit"};const Lt=It,$t=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M1.44 0A1.43 1.43 0 0 0 0 1.44v4.62a7.36 7.36 0 0 0 2.77 5.75.22.22 0 0 1 .09.19.25.25 0 0 1-.09.19A7.36 7.36 0 0 0 0 17.94v4.62a1.44 1.44 0 1 0 2.88 0v-4.62a4.51 4.51 0 0 1 4.5-4.5H18a.25.25 0 0 1 .25.25v1.19a1.44 1.44 0 0 0 2.46 1L23.58 13a1.45 1.45 0 0 0 0-2L20.7 8.1a1.44 1.44 0 0 0-2.46 1v1.21a.25.25 0 0 1-.25.25H7.38a4.51 4.51 0 0 1-4.5-4.5V1.44A1.43 1.43 0 0 0 1.44 0Z",fill:"currentColor"})}))));$t.defaultProps={size:"medium",color:"inherit"};const Nt=$t,Zt=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"m20.7 23.58 2.88-2.88a1.44 1.44 0 0 0-1-2.46h-1.21a.25.25 0 0 1-.25-.25 7.359 7.359 0 0 0-2.77-5.75.251.251 0 0 1 0-.38 7.36 7.36 0 0 0 2.77-5.8V6a.25.25 0 0 1 .25-.25h1.19a1.44 1.44 0 0 0 1.02-2.45L20.7.42a1.45 1.45 0 0 0-2 0L15.78 3.3a1.48 1.48 0 0 0-.42 1c.002.189.04.375.11.55a1.44 1.44 0 0 0 1.33.91H18a.25.25 0 0 1 .24.24 4.51 4.51 0 0 1-4.5 4.5H1.44a1.44 1.44 0 1 0 0 2.88h12.3a4.51 4.51 0 0 1 4.5 4.5.25.25 0 0 1-.25.25H16.8a1.44 1.44 0 0 0-1.44 1.44c.008.375.159.732.42 1l2.88 2.88a1.45 1.45 0 0 0 2 0l.04.13Z",fill:"currentColor"})}))));Zt.defaultProps={size:"medium",color:"inherit"};const Ht=Zt,Vt=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"M18.25 11.5V15a.75.75 0 1 0 1.5 0v-3.5a.75.75 0 1 0-1.5 0ZM15.75 14.5V12a1.25 1.25 0 0 0-1.25-1.25H13A1.25 1.25 0 0 0 11.75 12v2.5A1.25 1.25 0 0 0 13 15.75h1.5a1.25 1.25 0 0 0 1.25-1.25Zm-1.5-.5a.25.25 0 0 1-.25.25h-.5a.25.25 0 0 1-.25-.25v-1.5a.25.25 0 0 1 .25-.25h.5a.25.25 0 0 1 .25.25V14ZM14.25 8.5V5a.75.75 0 1 0-1.5 0v3.5a.75.75 0 1 0 1.5 0ZM20.75 8V5.5a1.25 1.25 0 0 0-1.25-1.25H18a1.25 1.25 0 0 0-1.25 1.25V8A1.25 1.25 0 0 0 18 9.25h1.5A1.25 1.25 0 0 0 20.75 8Zm-1.5-.5a.25.25 0 0 1-.25.25h-.5a.25.25 0 0 1-.25-.25V6a.25.25 0 0 1 .25-.25h.5a.25.25 0 0 1 .25.25v1.5Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M23.91 3 21.5.59A2 2 0 0 0 20.09 0H8.5a2 2 0 0 0-2 2v9.57a.29.29 0 0 0 .07.18l1.5 1.5a.26.26 0 0 0 .43-.18V2.5A.5.5 0 0 1 9 2h10.88a.47.47 0 0 1 .35.15l2.12 2.12a.469.469 0 0 1 .15.35V18a.5.5 0 0 1-.5.5h-8.32a.25.25 0 0 0-.24.34c.17.43.36 1.15.45 1.48a.25.25 0 0 0 .24.18h8.37a2 2 0 0 0 2-2V4.42A2 2 0 0 0 23.91 3ZM11.15 18.45l-6.58-6.58a2.72 2.72 0 0 0-3.61-.28 2.63 2.63 0 0 0-.2 3.88l6.68 6.68a.25.25 0 0 0 .36 0l3.35-3.35a.24.24 0 0 0 0-.35ZM11.94 20.13l-2.81 2.81a.25.25 0 0 0 .13.42l3.14.63h.1a.469.469 0 0 0 .35-.15.49.49 0 0 0 .14-.45l-.63-3.14a.25.25 0 0 0-.42-.12Z",fill:"currentColor"})]}))));Vt.defaultProps={size:"medium",color:"inherit"};const Ft=Vt,Bt=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M24 6.3a2 2 0 0 0-1.95-1.95H12a.51.51 0 0 1-.45-.28l-.74-1.49A2 2 0 0 0 9.06 1.5H2a2 2 0 0 0-2 1.95v17.1a2 2 0 0 0 2 1.95h20.1a2 2 0 0 0 1.9-1.95V6.3ZM22.05 20a.5.5 0 0 1-.5.5l-19 .05a.5.5 0 0 1-.5-.5L2 4a.5.5 0 0 1 .5-.5h6.26a.49.49 0 0 1 .44.28l.77 1.52a1.93 1.93 0 0 0 1.74 1.08h9.84a.5.5 0 0 1 .5.5V20Z",fill:"currentColor"})}))));Bt.defaultProps={size:"medium",color:"inherit"};const Wt=Bt,Ut=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M20.5 19.34 16.14 12a1 1 0 0 1-.14-.51V2.5a.5.5 0 0 1 .5-.5H18a1 1 0 1 0 0-2H6a1 1 0 0 0 0 2h1.5a.5.5 0 0 1 .5.5v9a1 1 0 0 1-.14.51l-4.32 7.27A3 3 0 0 0 6 24h12a3 3 0 0 0 2.49-4.66h.01ZM8.67 16a.5.5 0 0 1-.43-.75l1.62-2.74A1 1 0 0 0 10 12V2.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v2.75a.5.5 0 0 1-.5.5h-1.32a.75.75 0 1 0 0 1.5h1.32a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1.32a.75.75 0 1 0 0 1.5h1.32a.5.5 0 0 1 .5.5V12a1 1 0 0 0 .14.51l1.61 2.74a.47.47 0 0 1 0 .5.52.52 0 0 1-.44.25H8.67Zm.82 5.82a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Zm4.22-3a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm2.49 3.09a1 1 0 1 1 1-1 1 1 0 0 1-1 .98v.02Z",fill:"currentColor"})}))));Ut.defaultProps={size:"medium",color:"inherit"};const Yt=Ut,qt=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M21.5 1.5h-19a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h4v3a1 1 0 0 0 1.71.71l3.71-3.71h9.58a2 2 0 0 0 2-2v-13a2 2 0 0 0-2-2Zm0 14.75a.25.25 0 0 1-.25.25H11.5a1 1 0 0 0-.71.29L8.5 19.08V17.5a1 1 0 0 0-1-1H2.75a.25.25 0 0 1-.25-.25V3.75a.25.25 0 0 1 .25-.25h18.5a.25.25 0 0 1 .25.25v12.5Z",fill:"currentColor"})}))));qt.defaultProps={size:"medium",color:"inherit"};const Gt=qt,Kt=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M23 22H7a1 1 0 0 0 0 2h16a1 1 0 1 0 0-2ZM23 17H7a1 1 0 0 0 0 2h16a1 1 0 0 0 0-2ZM24 13a1 1 0 0 0-1-1H7a1 1 0 0 0 0 2h16a1 1 0 0 0 1-1ZM23 2.025H7a1 1 0 1 0 0 2h16a1 1 0 0 0 0-2ZM7.37 7.88 3.7 5.13a.75.75 0 0 0-1.2.6v1.5a.25.25 0 0 1-.25.25H1a1 1 0 1 0 0 2h1.25a.25.25 0 0 1 .25.25v1.5a.75.75 0 0 0 1.2.6l3.67-2.75a.76.76 0 0 0 0-1.2ZM12 8.98h11a1 1 0 1 0 0-2H12a1 1 0 0 0 0 2Z",fill:"currentColor"})}))));Kt.defaultProps={size:"medium",color:"inherit"};const Xt=Kt,Qt=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M15.07 4a.49.49 0 0 0-.36-.15.5.5 0 0 0-.35.14L3.44 14.91a.5.5 0 0 0 0 .71l4.94 4.94a.491.491 0 0 0 .71 0L20 9.65a.51.51 0 0 0 0-.71L15.07 4ZM2.43 16.8a.51.51 0 0 0-.84.24L.08 23.31a.49.49 0 0 0 .14.47.51.51 0 0 0 .47.14L7 22.41a.49.49 0 0 0 .36-.35.52.52 0 0 0-.12-.49L2.43 16.8ZM23.2 2.92 21.08.8a2.52 2.52 0 0 0-3.54 0l-1.41 1.42a.481.481 0 0 0 0 .7l4.95 5a.48.48 0 0 0 .7 0l1.42-1.47a2.5 2.5 0 0 0 0-3.53Z",fill:"currentColor"})}))));Qt.defaultProps={size:"medium",color:"inherit"};const Jt=Qt,en=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M7 21.75h10a1.25 1.25 0 0 0 0-2.5H7a1.76 1.76 0 0 1-1.75-1.75v-4.25A.25.25 0 0 1 5.5 13h1a.49.49 0 0 0 .5-.29.47.47 0 0 0-.07-.53l-2.5-3a.49.49 0 0 0-.76 0l-2.5 3a.47.47 0 0 0-.07.53.49.49 0 0 0 .4.29h1a.25.25 0 0 1 .25.25v4.25A4.26 4.26 0 0 0 7 21.75ZM20 15a.49.49 0 0 0 .38-.18l2.5-3a.47.47 0 0 0 .07-.53.49.49 0 0 0-.45-.29h-1a.25.25 0 0 1-.25-.25V6.5A4.25 4.25 0 0 0 17 2.25H7a1.25 1.25 0 0 0 0 2.5h10a1.75 1.75 0 0 1 1.75 1.75v4.25a.25.25 0 0 1-.25.25h-1a.49.49 0 0 0-.45.29.47.47 0 0 0 .07.53l2.5 3A.49.49 0 0 0 20 15Z",fill:"currentColor"})}))));en.defaultProps={size:"medium",color:"inherit"};const tn=en,nn=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M17.25 21.25h-1.43a2.57 2.57 0 0 1-2.57-2.57v-1.84a.25.25 0 0 1 .25-.25h.89a1.25 1.25 0 0 0 0-2.5h-.89a.25.25 0 0 1-.25-.25V5.32a2.57 2.57 0 0 1 2.57-2.57h1.43a1.25 1.25 0 0 0 0-2.5h-1.43a5 5 0 0 0-3.64 1.54.24.24 0 0 1-.36 0A5 5 0 0 0 8.18.25H6.75a1.25 1.25 0 0 0 0 2.5h1.43a2.57 2.57 0 0 1 2.57 2.57v8.52a.25.25 0 0 1-.25.25h-.89a1.25 1.25 0 0 0 0 2.5h.89a.25.25 0 0 1 .25.25v1.84a2.571 2.571 0 0 1-2.57 2.57H6.75a1.25 1.25 0 0 0 0 2.5h1.43a5 5 0 0 0 3.64-1.55.27.27 0 0 1 .36 0 5 5 0 0 0 3.64 1.55h1.43a1.25 1.25 0 0 0 0-2.5Z",fill:"currentColor"})}))));nn.defaultProps={size:"medium",color:"inherit"};const rn=nn,on=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"M20.5 2h-17a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h17a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3Zm-11 11V8h5v5h-5Zm5 2v5h-5v-5h5Zm-12-7h5v5h-5V8Zm14 0h5v5h-5V8Zm-14 11v-4h5v5h-4a1 1 0 0 1-1-1Zm18 1h-4v-5h5v4a1 1 0 0 1-1 1Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M5 11.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM5 18.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",fill:"currentColor"})]}))));on.defaultProps={size:"medium",color:"inherit"};const an=on,sn=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"M17.75 11.5a6.25 6.25 0 1 0 0 12.5 6.25 6.25 0 0 0 0-12.5Zm-3.6 8.29a.23.23 0 0 1-.18-.13 4.12 4.12 0 0 1-.47-1.91 4.26 4.26 0 0 1 4.25-4.25c.665 0 1.32.161 1.91.47a.23.23 0 0 1 .13.18.26.26 0 0 1-.07.22l-5.35 5.35a.26.26 0 0 1-.22.07Zm3.6 2.21a4.12 4.12 0 0 1-1.91-.47.23.23 0 0 1-.13-.18.26.26 0 0 1 .07-.22l5.35-5.35a.26.26 0 0 1 .327-.028.23.23 0 0 1 .073.088c.309.59.47 1.245.47 1.91A4.26 4.26 0 0 1 17.75 22Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M10.46 15.13H8.61v-2.57H12a7.71 7.71 0 0 1 2.16-1.68V8.5h3.5V10h.09a7.32 7.32 0 0 1 1.41.13V2.39A2.39 2.39 0 0 0 16.78 0H2.39A2.39 2.39 0 0 0 0 2.39v11.86a2.39 2.39 0 0 0 2.39 2.38h7.69a7.502 7.502 0 0 1 .38-1.5Zm3.7-10.7h3.5V7h-3.5V4.43Zm-5.55 0h4.05V7H8.61V4.43Zm0 4.07h4.05v2.56H8.61V8.5Zm-1.5 6.63H2.39a.89.89 0 0 1-.89-.88v-1.69h5.61v2.57Zm0-4.07H1.5V8.5h5.61v2.56Zm0-4.06H1.5V4.43h5.61V7Z",fill:"currentColor"})]}))));sn.defaultProps={size:"medium",color:"inherit"};const ln=sn,cn=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"M21.78 0H9.89a2.22 2.22 0 0 0-2.22 2.22v1.54h10.39a3.43 3.43 0 0 1 2 .66h2.4V7.7h-1v1.5h1v2.56a.72.72 0 0 1-.72.72h-.25V14h.25A2.22 2.22 0 0 0 24 11.76V2.22A2.23 2.23 0 0 0 21.78 0Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M18.06 5H6.17A2.22 2.22 0 0 0 4 7.22v1.55h10.11a3.46 3.46 0 0 1 2 .65h2.64v3.29h-1.2v1.5h1.2v2.56a.72.72 0 0 1-.72.72h-.48V19h.48a2.22 2.22 0 0 0 2.22-2.22V7.22A2.21 2.21 0 0 0 18.06 5Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M14.11 10H2.22A2.22 2.22 0 0 0 0 12.24v9.54A2.23 2.23 0 0 0 2.22 24h11.89a2.23 2.23 0 0 0 2.22-2.22v-9.54A2.22 2.22 0 0 0 14.11 10Zm-6.48 7.7v-3.26h3.24v3.28l-3.24-.02Zm3.24 1.5v3.3H7.63v-3.28l3.24-.02ZM1.5 14.44h4.63v3.28H1.5v-3.28Zm10.87 0h2.46v3.28h-2.46v-3.28ZM1.5 21.78v-2.56h4.63v3.28H2.22a.72.72 0 0 1-.72-.72Zm12.61.72h-1.74v-3.28h2.46v2.56a.72.72 0 0 1-.72.72Z",fill:"currentColor"})]}))));cn.defaultProps={size:"medium",color:"inherit"};const un=cn},550:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IconActivity:()=>Kr,IconAlignCenter:()=>Mr,IconAlignJustify:()=>Sr,IconAlignLeft:()=>Er,IconAlignRight:()=>jr,IconArchive:()=>yi,IconAtSign:()=>wi,IconAttachment:()=>Wn,IconBackspace:()=>kn,IconBan:()=>h,IconBarChart:()=>uo,IconBarChart2:()=>lo,IconBluetooth:()=>vo,IconBook:()=>Vi,IconBookOpen:()=>Zi,IconBookmark:()=>Bi,IconBox:()=>Vr,IconBrandgoogle:()=>ms,IconBrandlinkedin:()=>vs,IconBrandslack:()=>xs,IconBrandtwitter:()=>bs,IconBriefcase:()=>Br,IconCalendar:()=>En.Z,IconCheck:()=>f.Z,IconCheckCircle:()=>I,IconCheckSquare:()=>C,IconChevronDown:()=>ue.Z,IconChevronLeft:()=>he,IconChevronRight:()=>se.Z,IconChevronUp:()=>ce,IconClipboard:()=>qr,IconClock:()=>Pn,IconCloud:()=>Xo,IconCode:()=>Yo,IconColumns:()=>ai,IconCommand:()=>Fo,IconCompass:()=>oa,IconCopy:()=>cr,IconCornerdownLeft:()=>et,IconCornerdownRight:()=>Qe,IconCornerleftDown:()=>Ke,IconCornerleftUp:()=>Ue,IconCornerrightDown:()=>qe,IconCornerrightUp:()=>Be,IconCornerupLeft:()=>Ve,IconCornerupRight:()=>Ze,IconCpu:()=>Wo,IconCreditCard:()=>Zr,IconCrop:()=>On,IconCrosshair:()=>ra,IconDatabase:()=>Eo,IconDelete:()=>en,IconDeleteBlank:()=>nn,IconDocker:()=>Ya,IconDoubleChevronDown:()=>ie,IconDoubleChevronLeft:()=>ae,IconDoubleChevronRight:()=>ee,IconDoubleChevronUp:()=>ne,IconDown:()=>Ft,IconDownCircle:()=>At,IconDownLeft:()=>Wt,IconDownRight:()=>Ht,IconDownload:()=>gt,IconDownloadCloud:()=>wt,IconDroplet:()=>wn,IconEdit:()=>fr,IconEditForm:()=>tr,IconEmpty:()=>s,IconEmptyCircle:()=>_,IconEmptySquare:()=>k,IconEmptyTriangle:()=>y,IconExclamation:()=>u,IconExclamationCircle:()=>W,IconExclamationTriangle:()=>w,IconExternalLink:()=>Dr,IconEyeOff:()=>nt,IconEyeOn:()=>it,IconFile:()=>io,IconFileInput:()=>cs,IconFileMinus:()=>no,IconFilePlus:()=>eo,IconFileText:()=>Qi,IconFilledCircle:()=>rs.Z,IconFilledTriangle:()=>ns.Z,IconFilter:()=>Cn,IconFlag:()=>Jo,IconFolder:()=>Ki,IconFolderMinus:()=>qi,IconFolderPlus:()=>Ui,IconFontBold:()=>xr,IconFontItalic:()=>br,IconFontType:()=>mr,IconFontUnderline:()=>vr,IconForwardLeft:()=>za,IconForwardRight:()=>Da,IconFrown:()=>Oi,IconGitBranch:()=>Ho,IconGitCommit:()=>No,IconGitMerge:()=>Lo,IconGitPr:()=>zo,IconGithub:()=>Wa,IconGitlab:()=>Ga,IconGlobe:()=>ma,IconGrid:()=>ni,IconHardDrive:()=>To,IconHash:()=>Do,IconHeart:()=>Qt,IconHighlight:()=>dr,IconHome:()=>ta,IconImage:()=>Hn,IconInbox:()=>gi,IconInfoCircle:()=>R,IconLayers:()=>ui,IconLayout:()=>ii,IconLeft:()=>Ut.Z,IconLeftCircle:()=>_t,IconLifeBuoy:()=>Ur,IconLink:()=>Xn,IconLink2:()=>Yn,IconLinkedin:()=>Tn,IconList:()=>Fn,IconLoader:()=>Rr.Z,IconLockLocked:()=>X.Z,IconLogIn:()=>$e,IconLogOut:()=>Ie,IconMail:()=>pi,IconMap:()=>da,IconMapPin:()=>fa,IconMaximize:()=>Ae,IconMaximize2:()=>Oe,IconMeh:()=>Ci,IconMenu:()=>yn.Z,IconMessageCircle:()=>ei,IconMessageSquare:()=>Qr,IconMicOff:()=>at,IconMicOn:()=>lt,IconMinimize:()=>Pe,IconMinimize2:()=>Ce,IconMinus:()=>g.Z,IconMinusCircle:()=>V,IconMinusSquare:()=>A,IconMoon:()=>Xa,IconMoreHorizontal:()=>vn,IconMoreVertical:()=>mn,IconMove:()=>_e,IconNavigation:()=>ca,IconNavigation2:()=>sa,IconNotificationOff:()=>we,IconNotificationOn:()=>ke,IconPartners:()=>os,IconPause:()=>Ma,IconPauseCircle:()=>xa,IconPenTool:()=>Jn,IconPercent:()=>$r,IconPieChart:()=>ao,IconPlay:()=>ja,IconPlayCircle:()=>ba,IconPlus:()=>m,IconPlusCircle:()=>Z,IconPlusSquare:()=>P,IconPower:()=>bo,IconPrinter:()=>hi,IconQuestionCircle:()=>F.Z,IconRadio:()=>mo,IconRecCircle:()=>ts,IconRefreshLeft:()=>Ha,IconRefreshRight:()=>Fa,IconRepeat:()=>Na,IconRight:()=>Dt.Z,IconRightCircle:()=>Ot,IconRobocorp:()=>Go.Z,IconRobocorpOutline:()=>qo.Z,IconRotationLeft:()=>Ct,IconRotationRight:()=>kt,IconRss:()=>fo,IconSave:()=>sr,IconScissorsTool:()=>Gn,IconSearch:()=>dn,IconSend:()=>cn,IconServer:()=>Mo,IconSettings:()=>sn,IconShare:()=>fn,IconShieldOff:()=>ge,IconShieldOn:()=>ye,IconShuffle:()=>La,IconSidebar:()=>li,IconSkipBack:()=>Ta,IconSkipForward:()=>Ea,IconSlack:()=>zn,IconSliders:()=>on,IconSmartphone:()=>So,IconSmile:()=>ki,IconSort:()=>Q.Z,IconSortArrow:()=>De.Z,IconSortFilled:()=>Re.Z,IconStar:()=>qt,IconStarFilled:()=>Kt,IconStop:()=>Sa,IconStopCircle:()=>va,IconSun:()=>Ja,IconTablet:()=>xo,IconTarget:()=>Ir,IconTerminal:()=>jo,IconThumbDown:()=>Y,IconThumbUp:()=>G,IconTrendingDown:()=>fs,IconTrendingUp:()=>ds,IconTwitter:()=>Dn,IconUnlink:()=>Nn,IconUnlink2:()=>ss,IconUnlocked:()=>K.Z,IconUp:()=>Lt,IconUpCircle:()=>Pt,IconUpLeft:()=>Nt,IconUpRight:()=>zt,IconUpload:()=>pt,IconUploadCloud:()=>yt,IconUser:()=>Ai,IconUserCheck:()=>$i,IconUserMinus:()=>Ii,IconUserPlus:()=>Ri,IconUserX:()=>_i,IconUsers:()=>Pi,IconVideo:()=>Tr,IconWifiOn:()=>pe,IconWindows:()=>Ln,IconX:()=>l.Z,IconXCircle:()=>$,IconXSquare:()=>O,IconZapOff:()=>ut,IconZapOn:()=>ht,IconZoomIn:()=>or,IconZoomOut:()=>rr});var r=n(3823),i=n(3231),o=n(6377);const a=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.153 1.293A1 1 0 0 1 7.86 1h8.28a1 1 0 0 1 .707.293l5.86 5.86A1 1 0 0 1 23 7.86v8.28a1 1 0 0 1-.293.707l-5.86 5.86a1 1 0 0 1-.707.293H7.86a1 1 0 0 1-.707-.293l-5.86-5.86A1 1 0 0 1 1 16.14V7.86a1 1 0 0 1 .293-.707l5.86-5.86ZM8.274 3 3 8.274v7.452L8.274 21h7.452L21 15.726V8.274L15.726 3H8.274Z",fill:"currentColor"})}))));a.defaultProps={size:"medium",color:"inherit"};const s=a;var l=n(2761);const c=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.153 1.293A1 1 0 0 1 7.86 1h8.28a1 1 0 0 1 .707.293l5.86 5.86A1 1 0 0 1 23 7.86v8.28a1 1 0 0 1-.293.707l-5.86 5.86a1 1 0 0 1-.707.293H7.86a1 1 0 0 1-.707-.293l-5.86-5.86A1 1 0 0 1 1 16.14V7.86a1 1 0 0 1 .293-.707l5.86-5.86ZM8.274 3 3 8.274v7.452L8.274 21h7.452L21 15.726V8.274L15.726 3H8.274ZM12 7a1 1 0 0 1 1 1v4a1 1 0 1 1-2 0V8a1 1 0 0 1 1-1Zm0 8a1 1 0 1 0 0 2h.01a1 1 0 1 0 0-2H12Z",fill:"currentColor"})}))));c.defaultProps={size:"medium",color:"inherit"};const u=c,d=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.382 4.968a9 9 0 0 1 12.65 12.65L6.382 4.968ZM4.968 6.382a9 9 0 0 0 12.65 12.65L4.967 6.382ZM12 1C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1Z",fill:"currentColor"})}))));d.defaultProps={size:"medium",color:"inherit"};const h=d;var f=n(4591);const p=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13 5a1 1 0 1 0-2 0v6H5a1 1 0 1 0 0 2h6v6a1 1 0 1 0 2 0v-6h6a1 1 0 1 0 0-2h-6V5Z",fill:"currentColor"})}))));p.defaultProps={size:"medium",color:"inherit"};const m=p;var g=n(9725);const v=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.528 2.283a3 3 0 0 1 4.037 1.058l.003.005 8.47 14.14.008.014a3 3 0 0 1-2.565 4.5H3.519a3 3 0 0 1-2.565-4.5l.008-.014 8.47-14.14.858.514-.855-.519a3 3 0 0 1 1.093-1.058Zm.618 2.094L2.683 18.506A1 1 0 0 0 3.536 20h16.928a1 1 0 0 0 .853-1.494L12.855 4.379l-.001-.002a1 1 0 0 0-1.708 0Z",fill:"currentColor"})}))));v.defaultProps={size:"medium",color:"inherit"};const y=v,b=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.528 2.283a3 3 0 0 1 4.037 1.058l.003.005 8.47 14.14.008.014A3 3 0 0 1 20.48 22H3.519a3 3 0 0 1-2.565-4.5l.008-.014 8.47-14.14.858.514-.855-.519a3 3 0 0 1 1.093-1.058Zm.618 2.094L2.682 18.506A1 1 0 0 0 3.536 20h16.927a1 1 0 0 0 .854-1.494L12.855 4.379l-.001-.002a1 1 0 0 0-1.708 0ZM12 8a1 1 0 0 1 1 1v4a1 1 0 1 1-2 0V9a1 1 0 0 1 1-1Zm0 8a1 1 0 1 0 0 2h.01a1 1 0 1 0 0-2H12Z",fill:"currentColor"})}))));b.defaultProps={size:"medium",color:"inherit"};const w=b,x=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H5ZM2 5a3 3 0 0 1 3-3h14a3 3 0 0 1 3 3v14a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V5Z",fill:"currentColor"})}))));x.defaultProps={size:"medium",color:"inherit"};const k=x,S=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.293 4.293A1 1 0 0 1 5 4h11a1 1 0 1 0 0-2H5a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3v-7a1 1 0 1 0-2 0v7a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5a1 1 0 0 1 .293-.707Zm8.414 10.414 10-10a1 1 0 0 0-1.414-1.414L12 12.586l-2.293-2.293a1 1 0 1 0-1.414 1.414l3 3a1 1 0 0 0 1.414 0Z",fill:"currentColor"})}))));S.defaultProps={size:"medium",color:"inherit"};const C=S,j=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H5ZM2 5a3 3 0 0 1 3-3h14a3 3 0 0 1 3 3v14a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V5Zm6.293 3.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z",fill:"currentColor"})}))));j.defaultProps={size:"medium",color:"inherit"};const O=j,M=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H5ZM2 5a3 3 0 0 1 3-3h14a3 3 0 0 1 3 3v14a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V5Zm10 2a1 1 0 0 1 1 1v3h3a1 1 0 1 1 0 2h-3v3a1 1 0 1 1-2 0v-3H8a1 1 0 1 1 0-2h3V8a1 1 0 0 1 1-1Z",fill:"currentColor"})}))));M.defaultProps={size:"medium",color:"inherit"};const P=M,E=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5Zm1-3a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3H5Zm3 9a1 1 0 1 0 0 2h8a1 1 0 1 0 0-2H8Z",fill:"currentColor"})}))));E.defaultProps={size:"medium",color:"inherit"};const A=E,T=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Z",fill:"currentColor"})}))));T.defaultProps={size:"medium",color:"inherit"};const _=T,D=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm11-1a1 1 0 0 1 1 1v4a1 1 0 1 1-2 0v-4a1 1 0 0 1 1-1Zm0-4a1 1 0 1 0 0 2h.01a1 1 0 1 0 0-2H12Z",fill:"currentColor"})}))));D.defaultProps={size:"medium",color:"inherit"};const R=D,z=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.017 3.216a9 9 0 0 1 5.646.557 1 1 0 1 0 .814-1.826A11 11 0 1 0 23 12v-.921a1 1 0 1 0-2 0V12a9 9 0 1 1-10.983-8.784Zm12.69 1.49a1 1 0 0 0-1.415-1.413L12 12.595l-2.293-2.292a1 1 0 1 0-1.414 1.414l3 3a1 1 0 0 0 1.415 0l10-10.01Z",fill:"currentColor"})}))));z.defaultProps={size:"medium",color:"inherit"};const I=z,L=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm14.707-3.707a1 1 0 0 1 0 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 1.414-1.414L12 10.586l2.293-2.293a1 1 0 0 1 1.414 0Z",fill:"currentColor"})}))));L.defaultProps={size:"medium",color:"inherit"};const $=L,N=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm11-5a1 1 0 0 1 1 1v3h3a1 1 0 1 1 0 2h-3v3a1 1 0 1 1-2 0v-3H8a1 1 0 1 1 0-2h3V8a1 1 0 0 1 1-1Z",fill:"currentColor"})}))));N.defaultProps={size:"medium",color:"inherit"};const Z=N,H=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 12a9 9 0 1 1 18 0 9 9 0 0 1-18 0Zm9-11C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1ZM8 11a1 1 0 1 0 0 2h8a1 1 0 1 0 0-2H8Z",fill:"currentColor"})}))));H.defaultProps={size:"medium",color:"inherit"};const V=H;var F=n(7986);const B=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm11-5a1 1 0 0 1 1 1v4a1 1 0 1 1-2 0V8a1 1 0 0 1 1-1Zm0 8a1 1 0 1 0 0 2h.01a1 1 0 1 0 0-2H12Z",fill:"currentColor"})}))));B.defaultProps={size:"medium",color:"inherit"};const W=B,U=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.564 3.316A1.31 1.31 0 0 0 19.688 3H18v9h1.688A1.31 1.31 0 0 0 21 10.923V4.077a1.31 1.31 0 0 0-.436-.761ZM16 12.788l-3.608 8.117A2 2 0 0 1 11 19v-4a1 1 0 0 0-1-1H4.329a1.001 1.001 0 0 1-1-1.15l1.38-9a1 1 0 0 1 1-.85H16v9.788ZM19.662 1a3.31 3.31 0 0 1 3.329 2.866c.006.044.009.09.009.134v7c0 .045-.003.09-.009.134A3.31 3.31 0 0 1 19.662 14H17.65l-3.736 8.406A1 1 0 0 1 13 23a4 4 0 0 1-4-4v-3H4.345a3 3 0 0 1-2.994-3.45l1.38-9A3.002 3.002 0 0 1 5.725 1h13.937Z",fill:"currentColor"})}))));U.defaultProps={size:"medium",color:"inherit"};const Y=U,q=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.086 1.594A1 1 0 0 1 11 1a4 4 0 0 1 4 4v3h4.655a3 3 0 0 1 2.994 3.45l-1.38 9A3.002 3.002 0 0 1 18.275 23H4a3 3 0 0 1-3-3v-7a3 3 0 0 1 3-3h2.35l3.736-8.406ZM8 11.212l3.608-8.117A2 2 0 0 1 13 5v4a1 1 0 0 0 1 1h5.671a1 1 0 0 1 1 1.15l-1.38 9a1 1 0 0 1-1 .85H8v-9.788ZM6 21v-9H4a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h2Z",fill:"currentColor"})}))));q.defaultProps={size:"medium",color:"inherit"};const G=q;var K=n(9068),X=n(1951),Q=n(6605);const J=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.707 6.293a1 1 0 0 0-1.414 1.414L9.586 12l-4.293 4.293a1 1 0 1 0 1.414 1.414l5-5a1 1 0 0 0 0-1.414l-5-5Zm7 0a1 1 0 1 0-1.414 1.414L16.586 12l-4.293 4.293a1 1 0 0 0 1.414 1.414l5-5a1 1 0 0 0 0-1.414l-5-5Z",fill:"currentColor"})}))));J.defaultProps={size:"medium",color:"inherit"};const ee=J,te=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.707 5.293a1 1 0 0 0-1.414 0l-5 5a1 1 0 1 0 1.414 1.414L12 7.414l4.293 4.293a1 1 0 0 0 1.414-1.414l-5-5Zm5 12-5-5a1 1 0 0 0-1.414 0l-5 5a1 1 0 1 0 1.414 1.414L12 14.414l4.293 4.293a1 1 0 0 0 1.414-1.414Z",fill:"currentColor"})}))));te.defaultProps={size:"medium",color:"inherit"};const ne=te,re=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.707 5.293a1 1 0 0 0-1.414 1.414l5 5a1 1 0 0 0 1.414 0l5-5a1 1 0 0 0-1.414-1.414L12 9.586 7.707 5.293Zm0 7a1 1 0 0 0-1.414 1.414l5 5a1 1 0 0 0 1.414 0l5-5a1 1 0 0 0-1.414-1.414L12 16.586l-4.293-4.293Z",fill:"currentColor"})}))));re.defaultProps={size:"medium",color:"inherit"};const ie=re,oe=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.707 7.707a1 1 0 0 0-1.414-1.414l-5 5a1 1 0 0 0 0 1.414l5 5a1 1 0 0 0 1.414-1.414L7.414 12l4.293-4.293Zm7 0a1 1 0 0 0-1.414-1.414l-5 5a1 1 0 0 0 0 1.414l5 5a1 1 0 0 0 1.414-1.414L14.414 12l4.293-4.293Z",fill:"currentColor"})}))));oe.defaultProps={size:"medium",color:"inherit"};const ae=oe;var se=n(5513);const le=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.293 8.293a1 1 0 0 1 1.414 0l6 6a1 1 0 0 1-1.414 1.414L12 10.414l-5.293 5.293a1 1 0 0 1-1.414-1.414l6-6Z",fill:"currentColor"})}))));le.defaultProps={size:"medium",color:"inherit"};const ce=le;var ue=n(7918);const de=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.707 5.293a1 1 0 0 1 0 1.414L10.414 12l5.293 5.293a1 1 0 0 1-1.414 1.414l-6-6a1 1 0 0 1 0-1.414l6-6a1 1 0 0 1 1.414 0Z",fill:"currentColor"})}))));de.defaultProps={size:"medium",color:"inherit"};const he=de,fe=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.081 9.75a15 15 0 0 1 19.838 0 1 1 0 1 0 1.322-1.5 17 17 0 0 0-22.482 0 1 1 0 0 0 1.322 1.5Zm3.559 3.568a10 10 0 0 1 12.8 0 1 1 0 1 0 1.28-1.536 12 12 0 0 0-15.36 0 1 1 0 1 0 1.28 1.536Zm6.365 2.683a5 5 0 0 0-2.896.924 1 1 0 0 1-1.158-1.63 7 7 0 0 1 8.108 0 1 1 0 1 1-1.158 1.63 5 5 0 0 0-2.896-.924ZM12 19a1 1 0 1 0 0 2h.01a1 1 0 1 0 0-2H12Z",fill:"currentColor"})}))));fe.defaultProps={size:"medium",color:"inherit"};const pe=fe,me=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.707.293A1 1 0 0 0 .293 1.707l2.824 2.824A.998.998 0 0 0 3 5v7c0 3.446 2.282 6.2 4.341 8.003a22.686 22.686 0 0 0 4.104 2.836l.024.013.052.026.022.011.006.004h.002s.002.001.449-.893l-.447.894a1 1 0 0 0 .914-.01 21.287 21.287 0 0 0 5.173-3.83l4.653 4.653a1 1 0 0 0 1.414-1.414l-5.373-5.373a.702.702 0 0 0-.012-.013L5.453 4.04a.989.989 0 0 0-.031-.032L1.707.293ZM5 6.414V12c0 2.553 1.718 4.8 3.659 6.497a20.69 20.69 0 0 0 3.34 2.365 19.287 19.287 0 0 0 4.227-3.222L5 6.414Zm6.65-5.35a1 1 0 0 1 .701 0l8 3A1 1 0 0 1 21 5v7.007a7.9 7.9 0 0 1-.355 2.29 1 1 0 1 1-1.91-.593A5.9 5.9 0 0 0 19 11.997V5.693l-7-2.625-2.81 1.049a1 1 0 0 1-.7-1.874l3.16-1.18Z",fill:"currentColor"})}))));me.defaultProps={size:"medium",color:"inherit"};const ge=me,ve=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.649 1.064a1 1 0 0 1 .702 0l8 3A1 1 0 0 1 21 5v7c0 3.446-2.282 6.2-4.341 8.003a22.684 22.684 0 0 1-4.104 2.836 8.28 8.28 0 0 1-.076.04l-.022.01-.006.004h-.002s-.002.001-.449-.893l-.448.894-.003-.001-.006-.004-.022-.01a8.28 8.28 0 0 1-.35-.188 22.686 22.686 0 0 1-3.83-2.689C5.281 18.2 3 15.447 3 12V5a1 1 0 0 1 .649-.936l8-3ZM12 22l-.448.894c.282.14.614.141.895 0L12 22Zm0-1.137a20.69 20.69 0 0 0 3.341-2.365C17.282 16.8 19 14.553 19 12V5.693l-7-2.625-7 2.625V12c0 2.554 1.718 4.8 3.659 6.497A20.692 20.692 0 0 0 12 20.863Z",fill:"currentColor"})}))));ve.defaultProps={size:"medium",color:"inherit"};const ye=ve,be=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.293.293a1 1 0 0 1 1.414 0L17.7 16.286l.014.014 5.993 5.993a1 1 0 0 1-1.414 1.414L16.586 18H3a1 1 0 0 1-.566-1.824l.003-.002.052-.042c.053-.044.141-.123.254-.242.224-.237.547-.636.88-1.244C4.282 13.435 5 11.353 5 8c0-.486.05-.968.15-1.437L.292 1.707a1 1 0 0 1 0-1.414ZM6.997 8.41c-.057 3.419-.812 5.713-1.619 7.193-.076.14-.153.271-.229.396h9.437l-7.59-7.59Zm8.31-6.59a7 7 0 0 0-7.192.347 1 1 0 1 0 1.11 1.664A5 5 0 0 1 17 7.98v.003c-.029 1.782.195 3.56.665 5.28a1 1 0 1 0 1.93-.527 16.893 16.893 0 0 1-.596-4.702v-.02L19 8a7 7 0 0 0-3.694-6.18ZM9.768 20.135a1 1 0 0 1 1.367.363 1 1 0 0 0 1.73 0 1 1 0 1 1 1.73 1.004 3 3 0 0 1-5.19 0 1 1 0 0 1 .363-1.367Z",fill:"currentColor"})}))));be.defaultProps={size:"medium",color:"inherit"};const we=be,xe=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 1a7 7 0 0 0-7 7c0 3.353-.717 5.435-1.378 6.646a5.937 5.937 0 0 1-.88 1.244 3.036 3.036 0 0 1-.305.284l-.003.002A1 1 0 0 0 3 18h18a1 1 0 0 0 .566-1.824l-.002-.002a3.042 3.042 0 0 1-.306-.283 5.939 5.939 0 0 1-.88-1.245C19.718 13.435 19 11.353 19 8a7 7 0 0 0-7-7Zm6.622 14.604c.076.14.153.271.229.396H5.149c.076-.125.153-.257.229-.396C6.218 14.065 7 11.647 7 8a5 5 0 1 1 10 0c0 3.647.783 6.065 1.622 7.604Zm-7.487 4.894a1 1 0 0 0-1.73 1.004 3.001 3.001 0 0 0 5.19 0 1 1 0 0 0-1.73-1.004 1 1 0 0 1-1.73 0Z",fill:"currentColor"})}))));xe.defaultProps={size:"medium",color:"inherit"};const ke=xe,Se=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 2a1 1 0 0 1 1 1v3a3 3 0 0 1-3 3H3a1 1 0 0 1 0-2h3a1 1 0 0 0 1-1V3a1 1 0 0 1 1-1Zm8 0a1 1 0 0 1 1 1v3a1 1 0 0 0 1 1h3a1 1 0 1 1 0 2h-3a3 3 0 0 1-3-3V3a1 1 0 0 1 1-1ZM2 16a1 1 0 0 1 1-1h3a3 3 0 0 1 3 3v3a1 1 0 1 1-2 0v-3a1 1 0 0 0-1-1H3a1 1 0 0 1-1-1Zm16 1a1 1 0 0 0-1 1v3a1 1 0 1 1-2 0v-3a3 3 0 0 1 3-3h3a1 1 0 1 1 0 2h-3Z",fill:"currentColor"})}))));Se.defaultProps={size:"medium",color:"inherit"};const Ce=Se,je=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.879 2.879A3 3 0 0 1 5 2h3a1 1 0 0 1 0 2H5a1 1 0 0 0-1 1v3a1 1 0 0 1-2 0V5a3 3 0 0 1 .879-2.121ZM15 3a1 1 0 0 1 1-1h3a3 3 0 0 1 3 3v3a1 1 0 1 1-2 0V5a1 1 0 0 0-1-1h-3a1 1 0 0 1-1-1ZM3 15a1 1 0 0 1 1 1v3a1 1 0 0 0 1 1h3a1 1 0 1 1 0 2H5a3 3 0 0 1-3-3v-3a1 1 0 0 1 1-1Zm18 0a1 1 0 0 1 1 1v3a3 3 0 0 1-3 3h-3a1 1 0 1 1 0-2h3a1 1 0 0 0 1-1v-3a1 1 0 0 1 1-1Z",fill:"currentColor"})}))));je.defaultProps={size:"medium",color:"inherit"};const Oe=je,Me=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.707 3.707 16.414 9H20a1 1 0 1 1 0 2h-6.003a.997.997 0 0 1-.702-.29l-.004-.005a.997.997 0 0 1-.291-.702V4a1 1 0 1 1 2 0v3.586l5.293-5.293a1 1 0 1 1 1.414 1.414ZM4 13a1 1 0 1 0 0 2h3.586l-5.293 5.293a1 1 0 1 0 1.414 1.414L9 16.414V20a1 1 0 1 0 2 0v-6.003a.997.997 0 0 0-.997-.997H4Z",fill:"currentColor"})}))));Me.defaultProps={size:"medium",color:"inherit"};const Pe=Me,Ee=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 4a1 1 0 1 1 0-2h6a1 1 0 0 1 1 1v6a1 1 0 1 1-2 0V5.414l-5.293 5.293a1 1 0 0 1-1.414-1.414L18.586 4H15Zm-5.707 9.293a1 1 0 0 1 1.414 1.414L5.414 20H9a1 1 0 1 1 0 2H3a1 1 0 0 1-1-1v-6a1 1 0 1 1 2 0v3.586l5.293-5.293Z",fill:"currentColor"})}))));Ee.defaultProps={size:"medium",color:"inherit"};const Ae=Ee,Te=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.293 1.293a1 1 0 0 1 1.414 0l3 3a1 1 0 0 1-1.414 1.414L13 4.414V11h6.586l-1.293-1.293a1 1 0 0 1 1.414-1.414l3 3a1 1 0 0 1 0 1.414l-3 3a1 1 0 0 1-1.414-1.414L19.586 13H13v6.586l1.293-1.293a1 1 0 0 1 1.414 1.414l-3 3a1 1 0 0 1-1.414 0l-3-3a1 1 0 1 1 1.414-1.414L11 19.586V13H4.414l1.293 1.293a1 1 0 1 1-1.414 1.414l-3-3a1 1 0 0 1 0-1.414l3-3a1 1 0 0 1 1.414 1.414L4.414 11H11V4.414L9.707 5.707a1 1 0 0 1-1.414-1.414l3-3Z",fill:"currentColor"})}))));Te.defaultProps={size:"medium",color:"inherit"};const _e=Te;var De=n(4013),Re=n(6952);const ze=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.293 4.293A1 1 0 0 1 5 4h4a1 1 0 0 0 0-2H5a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h4a1 1 0 1 0 0-2H5a1 1 0 0 1-1-1V5a1 1 0 0 1 .293-.707Zm12.414 2a1 1 0 1 0-1.414 1.414L18.586 11H9a1 1 0 1 0 0 2h9.586l-3.293 3.293a1 1 0 0 0 1.414 1.414l5-5a1 1 0 0 0 0-1.414l-5-5Z",fill:"currentColor"})}))));ze.defaultProps={size:"medium",color:"inherit"};const Ie=ze,Le=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 3a1 1 0 0 1 1-1h4a3 3 0 0 1 3 3v14a3 3 0 0 1-3 3h-4a1 1 0 1 1 0-2h4a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1h-4a1 1 0 0 1-1-1ZM9.293 6.293a1 1 0 0 1 1.414 0l5 5 .007.007c.176.18.285.425.286.697v.006a.996.996 0 0 1-.286.697l-.008.008-4.999 5a1 1 0 0 1-1.414-1.415L12.586 13H3a1 1 0 1 1 0-2h9.586L9.293 7.707a1 1 0 0 1 0-1.414Z",fill:"currentColor"})}))));Le.defaultProps={size:"medium",color:"inherit"};const $e=Le,Ne=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.293 3.293a1 1 0 0 1 1.414 0l5 5a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414-1.414L17.586 10H8a3 3 0 0 0-3 3v7a1 1 0 1 1-2 0v-7a5 5 0 0 1 5-5h9.586l-3.293-3.293a1 1 0 0 1 0-1.414Z",fill:"currentColor"})}))));Ne.defaultProps={size:"medium",color:"inherit"};const Ze=Ne,He=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.707 3.293a1 1 0 0 1 0 1.414L6.414 8H16a5 5 0 0 1 5 5v7a1 1 0 1 1-2 0v-7a3 3 0 0 0-3-3H6.414l3.293 3.293a1 1 0 0 1-1.414 1.414l-5-5a1 1 0 0 1 0-1.414l5-5a1 1 0 0 1 1.414 0Z",fill:"currentColor"})}))));He.defaultProps={size:"medium",color:"inherit"};const Ve=He,Fe=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.293 3.293a1 1 0 0 1 1.414 0l5 5a1 1 0 0 1-1.414 1.414L16 6.414V16a5 5 0 0 1-5 5H4a1 1 0 1 1 0-2h7a3 3 0 0 0 3-3V6.414l-3.293 3.293a1 1 0 0 1-1.414-1.414l5-5Z",fill:"currentColor"})}))));Fe.defaultProps={size:"medium",color:"inherit"};const Be=Fe,We=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.293 3.293a1 1 0 0 1 1.414 0l5 5a1 1 0 0 1-1.414 1.414L10 6.414V16a3 3 0 0 0 3 3h7a1 1 0 1 1 0 2h-7a5 5 0 0 1-5-5V6.414L4.707 9.707a1 1 0 0 1-1.414-1.414l5-5Z",fill:"currentColor"})}))));We.defaultProps={size:"medium",color:"inherit"};const Ue=We,Ye=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 4a1 1 0 0 1 1-1h7a5 5 0 0 1 5 5v9.586l3.293-3.293a1 1 0 0 1 1.414 1.414l-5 5a1 1 0 0 1-1.414 0l-5-5a1 1 0 1 1 1.414-1.414L14 17.586V8a3 3 0 0 0-3-3H4a1 1 0 0 1-1-1Z",fill:"currentColor"})}))));Ye.defaultProps={size:"medium",color:"inherit"};const qe=Ye,Ge=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.464 4.464A5 5 0 0 1 13 3h7a1 1 0 1 1 0 2h-7a3 3 0 0 0-3 3v9.586l3.293-3.293a1 1 0 0 1 1.414 1.414l-5 5a1 1 0 0 1-1.414 0l-5-5a1 1 0 1 1 1.414-1.414L8 17.586V8a5 5 0 0 1 1.464-3.536Z",fill:"currentColor"})}))));Ge.defaultProps={size:"medium",color:"inherit"};const Ke=Ge,Xe=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 3a1 1 0 0 1 1 1v7a3 3 0 0 0 3 3h9.586l-3.293-3.293a1 1 0 0 1 1.414-1.414l5 5a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414-1.414L17.586 16H8a5 5 0 0 1-5-5V4a1 1 0 0 1 1-1Z",fill:"currentColor"})}))));Xe.defaultProps={size:"medium",color:"inherit"};const Qe=Xe,Je=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 3a1 1 0 0 1 1 1v7a5 5 0 0 1-5 5H6.414l3.293 3.293a1 1 0 0 1-1.414 1.414l-5-5a1 1 0 0 1 0-1.414l5-5a1 1 0 0 1 1.414 1.414L6.414 14H16a3 3 0 0 0 3-3V4a1 1 0 0 1 1-1Z",fill:"currentColor"})}))));Je.defaultProps={size:"medium",color:"inherit"};const et=Je,tt=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.293.293a1 1 0 0 1 1.414 0l22 22a1 1 0 0 1-1.414 1.414l-4.467-4.467a11.07 11.07 0 0 1-5.81 1.76H12c-3.9 0-6.896-2.226-8.855-4.316a20.676 20.676 0 0 1-2.831-3.85 12.339 12.339 0 0 1-.192-.354l-.011-.022-.003-.007-.002-.002v-.001L1 12l-.894.447a1 1 0 0 1 .013-.92 19.45 19.45 0 0 1 4.45-5.544L.293 1.707a1 1 0 0 1 0-1.414Zm1.85 11.71a18.669 18.669 0 0 0 2.462 3.313c1.789 1.909 4.29 3.68 7.387 3.684a9.07 9.07 0 0 0 4.38-1.214l-2.322-2.322a3.993 3.993 0 0 1-3.623.32A4 4 0 0 1 8.536 9.95L5.987 7.401a17.45 17.45 0 0 0-3.844 4.602Zm7.885-.56a2 2 0 0 0 2.53 2.53l-2.53-2.53Zm.19-6.245A8.113 8.113 0 0 1 12 5c3.1 0 5.605 1.774 7.395 3.684A18.681 18.681 0 0 1 21.86 12a19.027 19.027 0 0 1-1.765 2.524 1 1 0 0 0 1.54 1.276 21.022 21.022 0 0 0 1.672-2.324 17.163 17.163 0 0 0 .575-1.003l.01-.017.002-.006v-.002h.001L23 12l.894.447a1 1 0 0 0 0-.894L23 12l.894-.448-.002-.003-.003-.007-.011-.022a10.615 10.615 0 0 0-.192-.354 20.675 20.675 0 0 0-2.831-3.85C18.895 5.226 15.899 3 12 3c-.773 0-1.514.088-2.219.246a1 1 0 1 0 .438 1.952Z",fill:"currentColor"})}))));tt.defaultProps={size:"medium",color:"inherit"};const nt=tt,rt=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.574 12.707c-.18-.277-.324-.518-.433-.707a18.678 18.678 0 0 1 2.464-3.316C6.395 6.774 8.9 5 12 5c3.1 0 5.605 1.774 7.395 3.684A18.681 18.681 0 0 1 21.86 12a18.684 18.684 0 0 1-2.464 3.316C17.605 17.226 15.101 19 12 19c-3.1 0-5.604-1.774-7.395-3.684a18.68 18.68 0 0 1-2.03-2.609Zm21.32-1.155L23 12l.894.448-.002.003-.003.007-.011.022a10.615 10.615 0 0 1-.192.354 20.672 20.672 0 0 1-2.831 3.85C18.895 18.774 15.899 21 12 21c-3.9 0-6.896-2.226-8.855-4.316a20.67 20.67 0 0 1-2.831-3.85 12.375 12.375 0 0 1-.192-.354l-.011-.022-.003-.007-.002-.002v-.001L1 12l-.894-.448.002-.003.003-.007.011-.022a8.267 8.267 0 0 1 .192-.354 20.674 20.674 0 0 1 2.831-3.85C5.105 5.226 8.1 3 12 3c3.9 0 6.895 2.226 8.855 4.316a20.675 20.675 0 0 1 2.831 3.85 11.81 11.81 0 0 1 .192.354l.011.022.003.007.002.002v.001ZM23 12l.894-.447a1 1 0 0 1 0 .894L23 12ZM.106 11.553 1 12l-.894.447a1 1 0 0 1 0-.894ZM10 12a2 2 0 1 1 4 0 2 2 0 0 1-4 0Zm2-4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z",fill:"currentColor"})}))));rt.defaultProps={size:"medium",color:"inherit"};const it=rt,ot=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.628.78A4 4 0 0 1 16 4.002m0 .001v5.339a1 1 0 1 1-2 0V4.002a2 2 0 0 0-3.96-.4 1 1 0 1 1-1.96-.398A4 4 0 0 1 9.628.779M.293.296a1 1 0 0 1 1.414 0l15.788 15.788a.997.997 0 0 1 .374.374l5.838 5.838a1 1 0 0 1-1.414 1.414l-5.359-5.359A8 8 0 0 1 13 19.991v2.012h3a1 1 0 1 1 0 2H8a1 1 0 1 1 0-2h3v-2.012A7.997 7.997 0 0 1 4 12v-1.996a1 1 0 0 1 2 0v2.007a6 6 0 0 0 5.706 6.037 1 1 0 0 1 .588 0 6.003 6.003 0 0 0 3.212-1.124l-1.476-1.476a3.998 3.998 0 0 1-5.355-1.223A4 4 0 0 1 8 12.004V9.417L.293 1.71a1 1 0 0 1 0-1.414ZM10 11.417v.585a2 2 0 0 0 2.516 1.93L10 11.418Zm9-2.414a1 1 0 0 1 1 1v2c0 .471-.043.943-.126 1.407a1 1 0 0 1-1.968-.354A6 6 0 0 0 18 12.002v-1.999a1 1 0 0 1 1-1Z",fill:"currentColor"})}))));ot.defaultProps={size:"medium",color:"inherit"};const at=ot,st=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.172 1.172A4 4 0 0 1 16 4v8a4 4 0 1 1-8 0V4a4 4 0 0 1 1.172-2.828ZM12 2a2 2 0 0 0-2 2v8a2 2 0 0 0 4 0V4a2 2 0 0 0-2-2ZM5 9a1 1 0 0 1 1 1v2a6 6 0 1 0 12 0v-2a1 1 0 1 1 2 0v2a8 8 0 0 1-7 7.937V22h3a1 1 0 1 1 0 2H8a1 1 0 1 1 0-2h3v-2.063A8 8 0 0 1 4 12v-2a1 1 0 0 1 1-1Z",fill:"currentColor"})}))));st.defaultProps={size:"medium",color:"inherit"};const lt=st,ct=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.293.293a1 1 0 0 1 1.414 0L8.7 7.286l.016.016 7.984 7.984.016.016 6.991 6.99a1 1 0 0 1-1.414 1.415l-6.226-6.226-4.299 5.16a1 1 0 0 1-1.76-.765l.86-6.876H3a1 1 0 0 1-.768-1.64L6.647 8.06.293 1.707a1 1 0 0 1 0-1.414ZM8.067 9.48 5.135 13h6.45L8.068 9.481Zm4.894 4.894-.546 4.364 2.232-2.678-1.686-1.686Zm.437-13.293a1 1 0 0 1 .594 1.041l-.59 4.75a1 1 0 0 1-1.984-.246l.17-1.366-.25.299a1 1 0 0 1-1.537-1.28l2.43-2.92a1 1 0 0 1 1.167-.278ZM14.66 10a1 1 0 0 1 1-1H21a1 1 0 0 1 .768 1.641l-2.43 2.91a1 1 0 0 1-1.536-1.282L18.862 11H15.66a1 1 0 0 1-1-1Z",fill:"currentColor"})}))));ct.defaultProps={size:"medium",color:"inherit"};const ut=ct,dt=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.398 1.083a1 1 0 0 1 .594 1.041L13.132 9H21a1 1 0 0 1 .768 1.64l-10 12a1 1 0 0 1-1.76-.764l.86-6.876H3a1 1 0 0 1-.768-1.64l10-12a1 1 0 0 1 1.166-.277ZM5.135 13H12a1 1 0 0 1 .992 1.124l-.577 4.615L18.865 11H12a1 1 0 0 1-.992-1.124l.577-4.616L5.135 13Z",fill:"currentColor"})}))));dt.defaultProps={size:"medium",color:"inherit"};const ht=dt,ft=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.293 2.293a1 1 0 0 1 1.414 0l5 5a1 1 0 0 1-1.414 1.414L13 5.414V15a1 1 0 1 1-2 0V5.414L7.707 8.707a1 1 0 0 1-1.414-1.414l5-5ZM3 14a1 1 0 0 1 1 1v4a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-4a1 1 0 1 1 2 0v4a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3v-4a1 1 0 0 1 1-1Z",fill:"currentColor"})}))));ft.defaultProps={size:"medium",color:"inherit"};const pt=ft,mt=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2a1 1 0 0 1 1 1v9.586l3.293-3.293a1 1 0 1 1 1.414 1.414l-5 5a1 1 0 0 1-1.414 0l-5-5a1 1 0 0 1 1.414-1.414L11 12.586V3a1 1 0 0 1 1-1ZM3 14a1 1 0 0 1 1 1v4a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-4a1 1 0 1 1 2 0v4a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3v-4a1 1 0 0 1 1-1Z",fill:"currentColor"})}))));mt.defaultProps={size:"medium",color:"inherit"};const gt=mt,vt=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.669 2.009A9 9 0 0 1 17.484 8h.521a6.002 6.002 0 0 1 5.497 8.398 6 6 0 0 1-2.628 2.87 1 1 0 1 1-.957-1.756A4 4 0 0 0 18.005 10h-1.26a1 1 0 0 1-.968-.75 7 7 0 1 0-12.022 6.388 1 1 0 1 1-1.499 1.324A9 9 0 0 1 8.669 2.01Zm2.63 9.284a1 1 0 0 1 1.413 0l4 4a1 1 0 1 1-1.414 1.414l-2.293-2.293V21a1 1 0 1 1-2 0v-6.586l-2.293 2.293a1 1 0 0 1-1.414-1.414l4-4Z",fill:"currentColor"})}))));vt.defaultProps={size:"medium",color:"inherit"};const yt=vt,bt=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.677 1.994A9 9 0 0 1 17.489 8h.52a6.003 6.003 0 0 1 5.724 4.188 6 6 0 0 1-2.269 6.72 1 1 0 1 1-1.15-1.636A4 4 0 0 0 18.01 10h-1.261a1 1 0 0 1-.969-.751 6.999 6.999 0 0 0-13.668.491 7 7 0 0 0 1.646 5.887 1 1 0 0 1-1.498 1.326A9 9 0 0 1 8.677 1.994ZM12.009 11a1 1 0 0 1 1 1v6.586l2.293-2.293a1 1 0 0 1 1.414 1.414l-4 4a1 1 0 0 1-1.414 0l-4-4a1 1 0 1 1 1.414-1.414l2.293 2.293V12a1 1 0 0 1 1-1Z",fill:"currentColor"})}))));bt.defaultProps={size:"medium",color:"inherit"};const wt=bt,xt=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.127 4.081a8 8 0 1 0 6.42 10.586 1 1 0 0 1 1.886.666 10 10 0 1 1-2.367-10.41L22 7.684V4a1 1 0 1 1 2 0v6a1 1 0 0 1-1 1h-6a1 1 0 1 1 0-2h3.48l-2.796-2.632a8 8 0 0 0-4.557-2.287Z",fill:"currentColor"})}))));xt.defaultProps={size:"medium",color:"inherit"};const kt=xt,St=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.605 2.107a10 10 0 1 1-8.038 13.225 1 1 0 0 1 1.886-.664 8 8 0 1 0 1.872-8.3L3.525 9H7a1 1 0 0 1 0 2H1a1 1 0 0 1-1-1V4a1 1 0 0 1 2 0v3.688l2.944-2.767a10 10 0 0 1 5.661-2.814Z",fill:"currentColor"})}))));St.defaultProps={size:"medium",color:"inherit"};const Ct=St,jt=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 12a9 9 0 1 0-18 0 9 9 0 0 0 18 0ZM12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1Zm-.707 7.707a1 1 0 0 1 1.414-1.414l4 4a1 1 0 0 1 0 1.414l-4 4a1 1 0 0 1-1.414-1.414L13.586 13H8a1 1 0 1 1 0-2h5.586l-2.293-2.293Z",fill:"currentColor"})}))));jt.defaultProps={size:"medium",color:"inherit"};const Ot=jt,Mt=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 12a9 9 0 1 0 18 0 9 9 0 0 0-18 0Zm9 11C5.925 23 1 18.075 1 12S5.925 1 12 1s11 4.925 11 11-4.925 11-11 11Zm1-7a1 1 0 1 1-2 0v-5.586l-2.293 2.293a1 1 0 0 1-1.414-1.414l4-4a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1-1.414 1.414L13 10.414V16Z",fill:"currentColor"})}))));Mt.defaultProps={size:"medium",color:"inherit"};const Pt=Mt,Et=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 12a9 9 0 1 1 18 0 9 9 0 0 1-18 0Zm9-11C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1Zm1 7a1 1 0 1 0-2 0v5.586l-2.293-2.293a1 1 0 0 0-1.414 1.414l4 4a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L13 13.586V8Z",fill:"currentColor"})}))));Et.defaultProps={size:"medium",color:"inherit"};const At=Et,Tt=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 12a9 9 0 1 1 18 0 9 9 0 0 1-18 0Zm9-11C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1Zm.707 7.707a1 1 0 0 0-1.414-1.414l-4 4a1 1 0 0 0 0 1.414l4 4a1 1 0 0 0 1.414-1.414L10.414 13H16a1 1 0 1 0 0-2h-5.586l2.293-2.293Z",fill:"currentColor"})}))));Tt.defaultProps={size:"medium",color:"inherit"};const _t=Tt;var Dt=n(3281);const Rt=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.707 17.707a1 1 0 0 1-1.414-1.414L14.586 8H7a1 1 0 1 1 0-2h10.003a.997.997 0 0 1 .997.997V17a1 1 0 1 1-2 0V9.414l-8.293 8.293Z",fill:"currentColor"})}))));Rt.defaultProps={size:"medium",color:"inherit"};const zt=Rt,It=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.293 4.293a1 1 0 0 1 1.414 0l7 7a1 1 0 0 1-1.414 1.414L13 7.414V19a1 1 0 1 1-2 0V7.414l-5.293 5.293a1 1 0 0 1-1.414-1.414l7-7Z",fill:"currentColor"})}))));It.defaultProps={size:"medium",color:"inherit"};const Lt=It,$t=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.293 17.707a1 1 0 0 0 1.414-1.414L9.414 8H17a1 1 0 1 0 0-2H6.997A.997.997 0 0 0 6 6.997V17a1 1 0 1 0 2 0V9.414l8.293 8.293Z",fill:"currentColor"})}))));$t.defaultProps={size:"medium",color:"inherit"};const Nt=$t,Zt=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.707 6.293a1 1 0 0 0-1.414 1.414L14.586 16H7a1 1 0 1 0 0 2h10.003a.996.996 0 0 0 .71-.3.997.997 0 0 0 .287-.697V7a1 1 0 1 0-2 0v7.586L7.707 6.293Z",fill:"currentColor"})}))));Zt.defaultProps={size:"medium",color:"inherit"};const Ht=Zt,Vt=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4a1 1 0 0 1 1 1v11.586l5.293-5.293a1 1 0 0 1 1.414 1.414l-7 7a1 1 0 0 1-1.414 0l-7-7a1 1 0 1 1 1.414-1.414L11 16.586V5a1 1 0 0 1 1-1Z",fill:"currentColor"})}))));Vt.defaultProps={size:"medium",color:"inherit"};const Ft=Vt,Bt=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m9.414 16 8.293-8.293a1 1 0 0 0-1.414-1.414L8 14.586V7a1 1 0 0 0-2 0v10a.997.997 0 0 0 .997 1H17a1 1 0 1 0 0-2H9.414Z",fill:"currentColor"})}))));Bt.defaultProps={size:"medium",color:"inherit"};const Wt=Bt;var Ut=n(9622);const Yt=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 1a1 1 0 0 1 .897.557l2.857 5.79 6.39.934a1 1 0 0 1 .554 1.705l-4.623 4.503 1.09 6.362a1 1 0 0 1-1.45 1.054L12 18.9l-5.715 3.005a1 1 0 0 1-1.45-1.054l1.09-6.362-4.623-4.503a1 1 0 0 1 .553-1.705l6.39-.935 2.858-5.789A1 1 0 0 1 12 1Zm0 3.26L9.807 8.702a1 1 0 0 1-.752.546l-4.907.718 3.55 3.457a1 1 0 0 1 .288.885l-.838 4.883 4.387-2.307a1 1 0 0 1 .93 0l4.387 2.307-.838-4.883a1 1 0 0 1 .288-.885l3.55-3.457-4.907-.718a1 1 0 0 1-.752-.546L12 4.259Z",fill:"currentColor"})}))));Yt.defaultProps={size:"medium",color:"inherit"};const qt=Yt,Gt=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M12 1a1 1 0 0 1 .897.557l2.857 5.79 6.39.934a1 1 0 0 1 .554 1.705l-4.623 4.503 1.09 6.362a1 1 0 0 1-1.45 1.054L12 18.9l-5.715 3.005a1 1 0 0 1-1.45-1.054l1.09-6.362-4.623-4.503a1 1 0 0 1 .553-1.705l6.39-.935 2.858-5.789A1 1 0 0 1 12 1Z",fill:"currentColor"})}))));Gt.defaultProps={size:"medium",color:"inherit"};const Kt=Gt,Xt=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.462 2.493a6.5 6.5 0 0 1 8.495 8.495 6.498 6.498 0 0 1-1.41 2.11s0-.001 0 0l-8.84 8.84a1 1 0 0 1-1.414 0l-8.84-8.84a6.501 6.501 0 0 1 9.194-9.195l.353.353.353-.353a6.501 6.501 0 0 1 2.109-1.41Zm2.488 1.505a4.5 4.5 0 0 0-3.183 1.319l-1.06 1.06a1 1 0 0 1-1.414 0l-1.06-1.06a4.501 4.501 0 1 0-6.366 6.366L12 19.816l8.133-8.133a4.501 4.501 0 0 0-3.183-7.685Z",fill:"currentColor"})}))));Xt.defaultProps={size:"medium",color:"inherit"};const Qt=Xt,Jt=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.293 3.293A1 1 0 0 1 10 3h4a1 1 0 0 1 1 1v1H9V4a1 1 0 0 1 .293-.707ZM7 5V4a3 3 0 0 1 3-3h4a3 3 0 0 1 3 3v1h4a1 1 0 1 1 0 2h-1v13a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3V7H3a1 1 0 0 1 0-2h4ZM6 7v13a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V7H6Zm4 3a1 1 0 0 1 1 1v6a1 1 0 1 1-2 0v-6a1 1 0 0 1 1-1Zm5 7v-6a1 1 0 1 0-2 0v6a1 1 0 1 0 2 0Z",fill:"currentColor"})}))));Jt.defaultProps={size:"medium",color:"inherit"};const en=Jt,tn=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.293 3.293A1 1 0 0 1 10 3h4a1 1 0 0 1 1 1v1H9V4a1 1 0 0 1 .293-.707ZM7 5V4a3 3 0 0 1 3-3h4a3 3 0 0 1 3 3v1h4a1 1 0 1 1 0 2h-1v13a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3V7H3a1 1 0 0 1 0-2h4ZM6 7v13a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V7H6Z",fill:"currentColor"})}))));tn.defaultProps={size:"medium",color:"inherit"};const nn=tn,rn=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 2a1 1 0 0 1 1 1v7a1 1 0 1 1-2 0V3a1 1 0 0 1 1-1Zm1 13h2a1 1 0 1 0 0-2H1a1 1 0 1 0 0 2h2v6a1 1 0 1 0 2 0v-6Zm8-3a1 1 0 1 0-2 0v9a1 1 0 1 0 2 0v-9ZM12 2a1 1 0 0 1 1 1v4h2a1 1 0 1 1 0 2H9a1 1 0 1 1 0-2h2V3a1 1 0 0 1 1-1Zm8 13h3a1 1 0 1 1 0 2h-2v4a1 1 0 1 1-2 0v-4h-2a1 1 0 1 1 0-2h3Zm0-13a1 1 0 0 1 1 1v9a1 1 0 1 1-2 0V3a1 1 0 0 1 1-1Z",fill:"currentColor"})}))));rn.defaultProps={size:"medium",color:"inherit"};const on=rn,an=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.293 2.293A1 1 0 0 1 13 3v.094a2.65 2.65 0 0 0 1.601 2.423 2.65 2.65 0 0 0 2.918-.532l.008-.008.06-.06a1 1 0 0 1 1.416 0 .999.999 0 0 1 0 1.415l-.06.06-.008.009a2.65 2.65 0 0 0-.607 2.729c.012.09.037.18.073.264A2.65 2.65 0 0 0 20.826 11H21a1 1 0 0 1 0 2h-.094a2.65 2.65 0 0 0-2.423 1.601 2.65 2.65 0 0 0 .532 2.918l.008.008.06.06a1 1 0 0 1 0 1.416 1 1 0 0 1-1.415 0l-.06-.06-.009-.008a2.651 2.651 0 0 0-2.918-.532 2.65 2.65 0 0 0-1.601 2.423V21a1 1 0 0 1-2 0V20.887a2.65 2.65 0 0 0-1.705-2.415 2.651 2.651 0 0 0-2.894.543l-.008.008-.06.06a.999.999 0 0 1-1.416 0 1 1 0 0 1 0-1.415l.06-.06.008-.009a2.65 2.65 0 0 0 .532-2.918 2.65 2.65 0 0 0-2.423-1.601H3a1 1 0 0 1 0-2H3.113a2.65 2.65 0 0 0 2.414-1.705 2.65 2.65 0 0 0-.542-2.894l-.008-.008-.06-.06a1 1 0 0 1 0-1.416 1 1 0 0 1 1.415 0l.06.06.009.008a2.65 2.65 0 0 0 2.729.607 1 1 0 0 0 .264-.073A2.65 2.65 0 0 0 11 3.174V3a1 1 0 0 1 .293-.707Zm9.022 13.11L19.4 15l.92.394a.65.65 0 0 1 .593-.394H21a3 3 0 0 0 0-6h-.168a.65.65 0 0 1-.533-.285 1.006 1.006 0 0 0-.064-.199.65.65 0 0 1 .127-.714l.055-.054a2.999 2.999 0 0 0-.973-4.896 3 3 0 0 0-3.271.651l-.055.055a.65.65 0 0 1-.714.127l-.01-.004A.65.65 0 0 1 15 3.087V3a3 3 0 0 0-6 0v.167a.65.65 0 0 1-.285.534 1 1 0 0 0-.199.064.65.65 0 0 1-.714-.127l-.054-.055a3 3 0 1 0-4.245 4.244l.055.055a.65.65 0 0 1 .127.714l-.024.059a.65.65 0 0 1-.585.425H3a3 3 0 1 0 0 6h.167a.65.65 0 0 1 .594.394l.004.01a.65.65 0 0 1-.127.714l-.055.055a3 3 0 0 0 3.27 4.895 3 3 0 0 0 .974-.65v-.001l.055-.055a.65.65 0 0 1 .714-.127l.059.023a.651.651 0 0 1 .425.586V21a3 3 0 1 0 6 0v-.168a.65.65 0 0 1 .394-.593l.01-.004a.65.65 0 0 1 .714.127l.055.055a2.999 2.999 0 0 0 4.244 0l-.707-.707.707.707a2.999 2.999 0 0 0 0-4.244l-.055-.055a.65.65 0 0 1-.127-.714ZM10 12a2 2 0 1 1 4 0 2 2 0 0 1-4 0Zm2-4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z",fill:"currentColor"})}))));an.defaultProps={size:"medium",color:"inherit"};const sn=an,ln=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.707 1.293a.998.998 0 0 1 .23 1.058l-6.993 19.98a1 1 0 0 1-1.858.075l-3.844-8.648-8.648-3.844a1 1 0 0 1 .076-1.858l19.979-6.993a1 1 0 0 1 1.058.23ZM18.194 4.39 4.711 9.111l6.067 2.696 7.416-7.416Zm-6.001 8.83 7.415-7.415-4.719 13.483-2.696-6.068Z",fill:"currentColor"})}))));ln.defaultProps={size:"medium",color:"inherit"};const cn=ln,un=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 11a7 7 0 1 1 12.042 4.856 1.005 1.005 0 0 0-.186.186A7 7 0 0 1 4 11Zm12.618 7.032a9 9 0 1 1 1.414-1.414l3.675 3.675a1 1 0 0 1-1.414 1.414l-3.675-3.675Z",fill:"currentColor"})}))));un.defaultProps={size:"medium",color:"inherit"};const dn=un,hn=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 3a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm-2.842 4.815a4 4 0 1 0-1.008-1.727L8.842 9.185a4 4 0 1 0 0 5.63l5.309 3.093a4 4 0 1 0 1.01-1.726l-5.31-3.095a4.003 4.003 0 0 0 0-2.175l5.307-3.097Zm-7.46 3.129a1.008 1.008 0 0 0 .059.099c.155.284.243.61.243.957a1.99 1.99 0 0 1-.301 1.056 2 2 0 1 1 0-2.112ZM16 19c0-.325.078-.633.216-.904a1.017 1.017 0 0 0 .121-.208A2 2 0 1 1 16 19Z",fill:"currentColor"})}))));hn.defaultProps={size:"medium",color:"inherit"};const fn=hn,pn=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 5a2 2 0 1 1 4 0 2 2 0 0 1-4 0Zm0 7a2 2 0 1 1 4 0 2 2 0 0 1-4 0Zm2 5a2 2 0 1 0 0 4 2 2 0 0 0 0-4Z",fill:"currentColor"})}))));pn.defaultProps={size:"medium",color:"inherit"};const mn=pn,gn=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 10a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm5 2a2 2 0 1 1 4 0 2 2 0 0 1-4 0Zm7 0a2 2 0 1 1 4 0 2 2 0 0 1-4 0Z",fill:"currentColor"})}))));gn.defaultProps={size:"medium",color:"inherit"};const vn=gn;var yn=n(1832);const bn=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 1.69a1 1 0 0 1 .707.293l5.66 5.66a9 9 0 1 1-12.724 0l5.65-5.66A1 1 0 0 1 12 1.69Zm0 2.415L7.058 9.057a7 7 0 1 0 9.896 0l-4.952-4.952Z",fill:"currentColor"})}))));bn.defaultProps={size:"medium",color:"inherit"};const wn=bn,xn=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.247 3.341A1 1 0 0 1 8 3h13a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H8a1 1 0 0 1-.753-.341l-7-8a1 1 0 0 1 0-1.318l7-8ZM8.454 5l-6.125 7 6.125 7H21a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1H8.454Zm10.253 3.293a1 1 0 0 1 0 1.414L16.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L15 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L13.586 12l-2.293-2.293a1 1 0 0 1 1.414-1.414L15 10.586l2.293-2.293a1 1 0 0 1 1.414 0Z",fill:"currentColor"})}))));xn.defaultProps={size:"medium",color:"inherit"};const kn=xn,Sn=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.093 2.58A1 1 0 0 1 2 2h20a1 1 0 0 1 .764 1.646L15 12.826V21a1 1 0 0 1-1.447.894l-4-2A1 1 0 0 1 9 19v-6.174l-7.764-9.18a1 1 0 0 1-.143-1.067ZM4.155 4l6.609 7.814a1 1 0 0 1 .236.646v5.922l2 1V12.46a1 1 0 0 1 .236-.646L19.845 4H4.155Z",fill:"currentColor"})}))));Sn.defaultProps={size:"medium",color:"inherit"};const Cn=Sn,jn=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.13 1.009a1 1 0 1 0-2-.018l-.036 4.103-4.103.036a1 1 0 1 0 .018 2l4.068-.035L5 15.99V16a3 3 0 0 0 3 3h9v4a1 1 0 1 0 2 0v-4h4a1 1 0 1 0 0-2h-4V8a3 3 0 0 0-3-3h-.009l-8.896.077.035-4.068Zm-.053 6.068L7 16.004A1 1 0 0 0 8 17h9V8a1 1 0 0 0-.996-1l-8.927.077Z",fill:"currentColor"})}))));jn.defaultProps={size:"medium",color:"inherit"};const On=jn,Mn=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 12a9 9 0 1 1 18 0 9 9 0 0 1-18 0Zm9-11C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1Zm1 5a1 1 0 1 0-2 0v6a1 1 0 0 0 .553.894l4 2a1 1 0 1 0 .894-1.788L13 11.382V6Z",fill:"currentColor"})}))));Mn.defaultProps={size:"medium",color:"inherit"};const Pn=Mn;var En=n(1192);const An=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M22.224 0C23.203 0 24 .775 24 1.73v20.538c0 .956-.797 1.732-1.776 1.732H1.77C.794 24 0 23.224 0 22.268V1.73C0 .775.794 0 1.771 0h20.453ZM16.18 8.713c-1.732 0-2.893.949-3.368 1.85h-.048V8.997H9.351V20.45h3.557v-5.666c0-1.494.283-2.941 2.136-2.941 1.825 0 1.85 1.708 1.85 3.037v5.57h3.557v-6.283c0-3.083-.666-5.455-4.27-5.455Zm-9.063.285h-3.56V20.45h3.56V8.998Zm-1.78-5.694a2.064 2.064 0 1 0 0 4.128 2.064 2.064 0 0 0 0-4.128Z",fill:"currentColor"})}))));An.defaultProps={size:"medium",color:"inherit"};const Tn=An,_n=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M21.557 7.891c0 6.509-4.953 14.012-14.009 14.012-2.782 0-5.368-.816-7.548-2.214a9.883 9.883 0 0 0 7.289-2.037 4.928 4.928 0 0 1-4.6-3.419 5.031 5.031 0 0 0 2.224-.085 4.929 4.929 0 0 1-3.95-4.83v-.061c.665.37 1.425.59 2.231.617a4.924 4.924 0 0 1-1.523-6.575A13.977 13.977 0 0 0 11.82 8.444a4.972 4.972 0 0 1-.127-1.123A4.921 4.921 0 0 1 16.617 2.4c1.417 0 2.696.596 3.595 1.553a9.916 9.916 0 0 0 3.126-1.194 4.942 4.942 0 0 1-2.165 2.723A9.849 9.849 0 0 0 24 4.707a9.944 9.944 0 0 1-2.457 2.548c.01.211.014.425.014.636Z",fill:"currentColor"})}))));_n.defaultProps={size:"medium",color:"inherit"};const Dn=_n,Rn=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.41 2.4A2.397 2.397 0 0 1 8.804 0a2.4 2.4 0 0 1 2.397 2.4V4.8H8.805a2.398 2.398 0 0 1-2.395-2.4Zm-3.992 4h6.386A2.398 2.398 0 0 1 11.2 8.8a2.398 2.398 0 0 1-2.396 2.4H2.417A2.398 2.398 0 0 1 .022 8.8a2.398 2.398 0 0 1 2.396-2.4Zm19.161 0a2.398 2.398 0 0 1 2.396 2.4 2.398 2.398 0 0 1-2.396 2.4h-2.396V8.8a2.398 2.398 0 0 1 2.396-2.4Zm-3.992-4v6.4c.001 1.324-1.071 2.399-2.395 2.4a2.398 2.398 0 0 1-2.395-2.4V2.4A2.398 2.398 0 0 1 15.193 0a2.398 2.398 0 0 1 2.394 2.4ZM15.192 24a2.398 2.398 0 0 0 2.395-2.4 2.398 2.398 0 0 0-2.395-2.399h-2.396v2.4A2.399 2.399 0 0 0 15.192 24Zm0-6.401h6.387a2.398 2.398 0 0 0 2.395-2.4 2.398 2.398 0 0 0-2.394-2.4h-6.387a2.398 2.398 0 0 0-2.396 2.4 2.397 2.397 0 0 0 2.395 2.4Zm-12.774 0a2.398 2.398 0 0 1-2.396-2.4 2.398 2.398 0 0 1 2.396-2.4h2.396v2.4a2.398 2.398 0 0 1-2.396 2.4Zm3.992 4v-6.4a2.396 2.396 0 1 1 4.79.002v6.4A2.398 2.398 0 0 1 8.804 24a2.398 2.398 0 0 1-2.394-2.4Z",fill:"currentColor"})}))));Rn.defaultProps={size:"medium",color:"inherit"};const zn=Rn,In=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"m0 3.398 9.808-1.332.004 9.432-9.803.055L0 3.398Zm9.803 9.187.008 9.44L.008 20.68v-8.16l9.795.064Zm1.19-10.693L23.996 0v11.378l-13.005.103V1.892ZM24 12.673 23.997 24l-13.005-1.83-.018-9.518L24 12.673Z",fill:"currentColor"})}))));In.defaultProps={size:"medium",color:"inherit"};const Ln=In,$n=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 8a4 4 0 0 0 0 8h2a1 1 0 1 1 0 2H7A6 6 0 1 1 7 6h2a1 1 0 0 1 0 2H7Zm7-1a1 1 0 0 1 1-1h2a6 6 0 1 1 0 12h-2a1 1 0 1 1 0-2h2a4 4 0 1 0 0-8h-2a1 1 0 0 1-1-1Z",fill:"currentColor"})}))));$n.defaultProps={size:"medium",color:"inherit"};const Nn=$n,Zn=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4a1 1 0 0 0-1 1v14a1 1 0 0 0 .65.937L15.292 9.293a1 1 0 0 1 1.414 0L20 12.586V5a1 1 0 0 0-1-1H5Zm17 10.999V5a3 3 0 0 0-3-3H5a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3v-4.001Zm-2 .415-4-4L7.414 20H19a1 1 0 0 0 1-1v-3.586ZM8.5 8a.5.5 0 1 0 0 1 .5.5 0 0 0 0-1ZM6 8.5a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0Z",fill:"currentColor"})}))));Zn.defaultProps={size:"medium",color:"inherit"};const Hn=Zn,Vn=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 5a1 1 0 0 0 0 2h.01a1 1 0 0 0 0-2H3Zm5 0a1 1 0 0 0 0 2h13a1 1 0 1 0 0-2H8Zm0 6a1 1 0 1 0 0 2h13a1 1 0 1 0 0-2H8Zm-1 7a1 1 0 0 1 1-1h13a1 1 0 1 1 0 2H8a1 1 0 0 1-1-1Zm-5-6a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H3a1 1 0 0 1-1-1Zm1 5a1 1 0 1 0 0 2h.01a1 1 0 1 0 0-2H3Z",fill:"currentColor"})}))));Vn.defaultProps={size:"medium",color:"inherit"};const Fn=Vn,Bn=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.78 2.388c-.796 0-1.56.316-2.123.88l-9.19 9.19a5.003 5.003 0 1 0 7.076 7.075l9.19-9.19a1 1 0 0 1 1.414 1.414l-9.19 9.19a7.003 7.003 0 0 1-9.904-9.904l9.19-9.19a5.002 5.002 0 0 1 7.074 7.074l-9.2 9.19a3.001 3.001 0 0 1-4.244-4.244l8.49-8.48a1 1 0 1 1 1.414 1.415l-8.49 8.48a1.003 1.003 0 0 0 .708 1.708c.266 0 .52-.105.708-.293l9.2-9.19a3.004 3.004 0 0 0-2.123-5.125Z",fill:"currentColor"})}))));Bn.defaultProps={size:"medium",color:"inherit"};const Wn=Bn,Un=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.996 1.067a6 6 0 0 0-4.22 1.684l-.011.01-1.72 1.71a1 1 0 0 0 1.41 1.418l1.715-1.704a4 4 0 0 1 5.656 5.654l-2.993 2.994a4 4 0 0 1-6.032-.432 1 1 0 0 0-1.602 1.198 6 6 0 0 0 9.048.648l3-3 .012-.012a6 6 0 0 0-4.263-10.168ZM10.425 8.01a6 6 0 0 0-4.672 1.743l-3 3-.012.012a6 6 0 0 0 8.484 8.484l.012-.012 1.71-1.71a1 1 0 0 0-1.414-1.414L9.83 19.816a4 4 0 0 1-5.656-5.655l2.993-2.994a4 4 0 0 1 6.032.432 1 1 0 0 0 1.602-1.198 6.001 6.001 0 0 0-4.376-2.39Z",fill:"currentColor"})}))));Un.defaultProps={size:"medium",color:"inherit"};const Yn=Un,qn=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 4a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm3.446 4.032a4 4 0 1 0-1.414 1.414L10.586 12l-2.554 2.554a4 4 0 1 0 1.414 1.414l3.261-3.26 8-8a1 1 0 0 0-1.414-1.415L12 10.586 9.446 8.032ZM6 16a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm7.762-2.226a1 1 0 0 1 1.414-.002l5.53 5.52a1 1 0 0 1-1.413 1.416l-5.53-5.52a1 1 0 0 1-.001-1.415Z",fill:"currentColor"})}))));qn.defaultProps={size:"medium",color:"inherit"};const Gn=qn,Kn=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.172 9.172A4 4 0 0 1 6 8h3a1 1 0 1 0 0-2H6a6 6 0 1 0 0 12h3a1 1 0 1 0 0-2H6a4 4 0 0 1-2.828-6.828ZM15 6a1 1 0 1 0 0 2h3a4 4 0 1 1 0 8h-3a1 1 0 1 0 0 2h3a6 6 0 0 0 0-12h-3Zm-7 5a1 1 0 1 0 0 2h8a1 1 0 1 0 0-2H8Z",fill:"currentColor"})}))));Kn.defaultProps={size:"medium",color:"inherit"};const Xn=Kn,Qn=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.077 1.003c.06.005.118.014.175.03l14.483 3.495a1 1 0 0 1 .746.776l1.153 5.765a1 1 0 0 1 1.073.224l3 3a1 1 0 0 1 0 1.414l-7 7a1 1 0 0 1-1.414 0l-3-3a1 1 0 0 1-.224-1.073L5.304 17.48a1 1 0 0 1-.776-.746L1.032 2.252a1.003 1.003 0 0 1 .26-.96.996.996 0 0 1 .785-.289Zm6.215 8.704L3.806 5.22l2.516 10.425 6.35 1.27 4.242-4.244-1.27-6.349L5.22 3.806l4.487 4.486a3 3 0 1 1-1.414 1.414Zm1.989.598a1 1 0 1 0 .025-.025l-.013.013-.012.012Zm8.427 3.401v.001l-5 5-.002.002-.292.291L15 20.586 20.586 15 19 13.414l-.292.292Z",fill:"currentColor"})}))));Qn.defaultProps={size:"medium",color:"inherit"};const Jn=Qn,er=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.207 3.207a1.121 1.121 0 0 1 1.586 1.586l-9.304 9.304-2.115.529.529-2.115 9.304-9.304ZM20 .88c-.828 0-1.622.329-2.207.914l-9.5 9.5a1 1 0 0 0-.263.464l-1 4a1 1 0 0 0 1.213 1.213l4-1a1 1 0 0 0 .464-.263l9.5-9.5A3.121 3.121 0 0 0 20 .88ZM4 3a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3v-7a1 1 0 1 0-2 0v7a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h7a1 1 0 1 0 0-2H4Z",fill:"currentColor"})}))));er.defaultProps={size:"medium",color:"inherit"};const tr=er,nr=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 4a7 7 0 1 0 4.858 12.04 1.007 1.007 0 0 1 .182-.182A7 7 0 0 0 11 4Zm0 16a8.962 8.962 0 0 0 5.618-1.968l3.675 3.675a1 1 0 1 0 1.415-1.414l-3.676-3.675A9 9 0 1 0 11 20ZM8 10a1 1 0 1 0 0 2h6a1 1 0 1 0 0-2H8Z",fill:"currentColor"})}))));nr.defaultProps={size:"medium",color:"inherit"};const rr=nr,ir=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 11a7 7 0 1 1 12.04 4.858.993.993 0 0 0-.182.182A7 7 0 0 1 4 11Zm12.618 7.032a9 9 0 1 1 1.414-1.414l3.675 3.675a1 1 0 0 1-1.414 1.414l-3.675-3.675ZM11 7a1 1 0 0 1 1 1v2h2a1 1 0 1 1 0 2h-2v2a1 1 0 1 1-2 0v-2H8a1 1 0 1 1 0-2h2V8a1 1 0 0 1 1-1Z",fill:"currentColor"})}))));ir.defaultProps={size:"medium",color:"inherit"};const or=ir,ar=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h1v-7a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v7h1a1 1 0 0 0 1-1V8.414L15.586 4H8v3h7a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1V4H5Zm2-2H5a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V8a1 1 0 0 0-.293-.707l-5-5A1 1 0 0 0 16 2H7Zm1 12v6h8v-6H8Z",fill:"currentColor"})}))));ar.defaultProps={size:"medium",color:"inherit"};const sr=ar,lr=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.293 3.293A1 1 0 0 1 4 3h9a1 1 0 0 1 1 1v1a1 1 0 1 0 2 0V4a3 3 0 0 0-3-3H4a3 3 0 0 0-3 3v9a3 3 0 0 0 3 3h1a1 1 0 1 0 0-2H4a1 1 0 0 1-1-1V4a1 1 0 0 1 .293-.707ZM10 11a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1h-9a1 1 0 0 1-1-1v-9Zm1-3a3 3 0 0 0-3 3v9a3 3 0 0 0 3 3h9a3 3 0 0 0 3-3v-9a3 3 0 0 0-3-3h-9Z",fill:"currentColor"})}))));lr.defaultProps={size:"medium",color:"inherit"};const cr=lr,ur=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.207 4.207a1.121 1.121 0 0 1 1.586 1.586L6.489 18.097l-2.115.529.529-2.115L17.207 4.207ZM18 1.88c-.828 0-1.622.329-2.207.914l-12.5 12.5a1 1 0 0 0-.263.464l-1 4a1 1 0 0 0 1.213 1.213l4-1a1 1 0 0 0 .464-.263l12.5-12.5a3.12 3.12 0 0 0-1.012-5.09A3.121 3.121 0 0 0 18 1.878ZM12 19a1 1 0 1 0 0 2h9a1 1 0 1 0 0-2h-9Z",fill:"currentColor"})}))));ur.defaultProps={size:"medium",color:"inherit"};const dr=ur,hr=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 3.172a1.829 1.829 0 0 0-1.293.535L4.395 17.02l-.97 3.556 3.556-.97L20.293 6.293A1.829 1.829 0 0 0 19 3.172Zm-1.465-1.709a3.829 3.829 0 0 1 4.172 6.244l-13.5 13.5a1 1 0 0 1-.444.258l-5.5 1.5a1 1 0 0 1-1.228-1.228l1.5-5.5a1 1 0 0 1 .258-.444l13.5-13.5a3.83 3.83 0 0 1 1.242-.83Z",fill:"currentColor"})}))));hr.defaultProps={size:"medium",color:"inherit"};const fr=hr,pr=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 4a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1v3a1 1 0 1 1-2 0V5h-6v14h2a1 1 0 1 1 0 2H9a1 1 0 1 1 0-2h2V5H5v2a1 1 0 0 1-2 0V4Z",fill:"currentColor"})}))));pr.defaultProps={size:"medium",color:"inherit"};const mr=pr,gr=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 3a1 1 0 0 0-2 0v7a7 7 0 1 0 14 0V3a1 1 0 1 0-2 0v7a5 5 0 1 1-10 0V3ZM4 20a1 1 0 1 0 0 2h16a1 1 0 1 0 0-2H4Z",fill:"currentColor"})}))));gr.defaultProps={size:"medium",color:"inherit"};const vr=gr,yr=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.023 3H19a1 1 0 1 1 0 2h-3.307l-5.25 14H14a1 1 0 1 1 0 2H5a1 1 0 1 1 0-2h3.307l5.25-14H10a1 1 0 1 1 0-2H15.023Z",fill:"currentColor"})}))));yr.defaultProps={size:"medium",color:"inherit"};const br=yr,wr=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 3a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h9a5 5 0 0 0 2.435-9.367A5 5 0 0 0 14 3H6Zm8 8a3 3 0 0 0 0-6H7v6h7Zm-7 2v6h8a3 3 0 0 0 0-6H7Z",fill:"currentColor"})}))));wr.defaultProps={size:"medium",color:"inherit"};const xr=wr,kr=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 5a1 1 0 0 0 0 2h18a1 1 0 1 0 0-2H3Zm0 4a1 1 0 0 0 0 2h18a1 1 0 1 0 0-2H3Zm-1 5a1 1 0 0 1 1-1h18a1 1 0 1 1 0 2H3a1 1 0 0 1-1-1Zm1 3a1 1 0 1 0 0 2h18a1 1 0 1 0 0-2H3Z",fill:"currentColor"})}))));kr.defaultProps={size:"medium",color:"inherit"};const Sr=kr,Cr=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 5a1 1 0 0 0 0 2h18a1 1 0 1 0 0-2H3Zm4 4a1 1 0 0 0 0 2h14a1 1 0 1 0 0-2H7Zm-5 5a1 1 0 0 1 1-1h18a1 1 0 1 1 0 2H3a1 1 0 0 1-1-1Zm5 3a1 1 0 1 0 0 2h14a1 1 0 1 0 0-2H7Z",fill:"currentColor"})}))));Cr.defaultProps={size:"medium",color:"inherit"};const jr=Cr,Or=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 5a1 1 0 0 0 0 2h18a1 1 0 1 0 0-2H3Zm3 4a1 1 0 0 0 0 2h12a1 1 0 1 0 0-2H6Zm-4 5a1 1 0 0 1 1-1h18a1 1 0 1 1 0 2H3a1 1 0 0 1-1-1Zm4 3a1 1 0 1 0 0 2h12a1 1 0 1 0 0-2H6Z",fill:"currentColor"})}))));Or.defaultProps={size:"medium",color:"inherit"};const Mr=Or,Pr=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 5a1 1 0 0 0 0 2h18a1 1 0 1 0 0-2H3Zm0 4a1 1 0 0 0 0 2h14a1 1 0 1 0 0-2H3Zm-1 5a1 1 0 0 1 1-1h18a1 1 0 1 1 0 2H3a1 1 0 0 1-1-1Zm1 3a1 1 0 1 0 0 2h14a1 1 0 1 0 0-2H3Z",fill:"currentColor"})}))));Pr.defaultProps={size:"medium",color:"inherit"};const Er=Pr,Ar=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 10.057V7a3 3 0 0 0-3-3H3a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h11a3 3 0 0 0 3-3v-3.057l5.419 3.87A1 1 0 0 0 24 17V7a1 1 0 0 0-1.581-.814L17 10.056ZM2 7a1 1 0 0 1 1-1h11a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7Zm20 8.057L17.72 12 22 8.943v6.114Z",fill:"currentColor"})}))));Ar.defaultProps={size:"medium",color:"inherit"};const Tr=Ar,_r=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 4a1 1 0 1 1 0-2h6a1 1 0 0 1 1 1v6a1 1 0 1 1-2 0V5.414l-9.293 9.293a1 1 0 0 1-1.414-1.414L18.586 4H15ZM5 7a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1v-6a1 1 0 1 1 2 0v6a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V8a3 3 0 0 1 3-3h6a1 1 0 1 1 0 2H5Z",fill:"currentColor"})}))));_r.defaultProps={size:"medium",color:"inherit"};const Dr=_r;var Rr=n(4402);const zr=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm11-5a5 5 0 1 0 0 10 5 5 0 0 0 0-10Zm-7 5a7 7 0 1 1 14 0 7 7 0 0 1-14 0Zm6 0a1 1 0 1 1 2 0 1 1 0 0 1-2 0Zm1-3a3 3 0 1 0 0 6 3 3 0 0 0 0-6Z",fill:"currentColor"})}))));zr.defaultProps={size:"medium",color:"inherit"};const Ir=zr,Lr=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.5 5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3ZM3 6.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0Zm16.707-.793-14 14a1 1 0 0 1-1.414-1.414l14-14a1 1 0 1 1 1.414 1.414ZM16 17.5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Zm1.5-3.5a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7Z",fill:"currentColor"})}))));Lr.defaultProps={size:"medium",color:"inherit"};const $r=Lr,Nr=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 6a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v3H2V6Zm-2 4V6a3 3 0 0 1 3-3h18a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3v-8Zm22 1v7a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-7h20Z",fill:"currentColor"})}))));Nr.defaultProps={size:"medium",color:"inherit"};const Zr=Nr,Hr=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.502 1.403a3 3 0 0 1 2.996 0l.002.001 6.996 3.998.004.002a3 3 0 0 1 .937.848 1 1 0 0 1 .249.414A3 3 0 0 1 22 7.999V16.001a3 3 0 0 1-1.5 2.595l-.004.002-6.996 3.998-.002.001a3.002 3.002 0 0 1-1.023.363.995.995 0 0 1-.95 0 2.999 2.999 0 0 1-1.023-.363H10.5l-6.996-3.999-.004-.002A3 3 0 0 1 2 16.001V8a3 3 0 0 1 .314-1.333 1.003 1.003 0 0 1 .249-.414 3 3 0 0 1 .937-.848l.004-.002 6.998-4ZM13 20.578l6.5-3.714h.002a1.001 1.001 0 0 0 .498-.865V8.538l-7 4.049v7.991Zm-2-7.991v7.991l-6.5-3.714h-.002A1 1 0 0 1 4 15.998V8.538l7 4.049Zm1.504-9.449 6.457 3.69L12 10.855 5.039 6.828l6.457-3.69.004-.002a1 1 0 0 1 1 0l.004.002Z",fill:"currentColor"})}))));Hr.defaultProps={size:"medium",color:"inherit"};const Vr=Hr,Fr=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 2a3 3 0 0 0-3 3v1H4a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h16a3 3 0 0 0 3-3V9a3 3 0 0 0-3-3h-3V5a3 3 0 0 0-3-3h-4Zm5 4V5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v1h6ZM9 8h6v12H9V8ZM7 8H4a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h3V8Zm10 12V8h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-3Z",fill:"currentColor"})}))));Fr.defaultProps={size:"medium",color:"inherit"};const Br=Fr,Wr=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.968 6.382A8.962 8.962 0 0 0 3 12c0 2.125.737 4.078 1.968 5.618l2.86-2.86A4.977 4.977 0 0 1 7 12c0-1.02.305-1.967.828-2.758l-2.86-2.86Zm4.275 9.79-2.86 2.86A8.962 8.962 0 0 0 12 21a8.962 8.962 0 0 0 5.618-1.968l-2.86-2.86A4.977 4.977 0 0 1 12 17a4.976 4.976 0 0 1-2.757-.828ZM21 12a8.962 8.962 0 0 1-1.968 5.618l-2.86-2.86c.523-.791.828-1.739.828-2.758 0-1.02-.305-1.967-.828-2.757l2.86-2.86A8.962 8.962 0 0 1 21 12Zm-3.382-7.032-2.86 2.86A4.977 4.977 0 0 0 12 7a4.977 4.977 0 0 0-2.757.828l-2.86-2.86A8.962 8.962 0 0 1 12 3c2.125 0 4.078.736 5.618 1.968ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm11-3a3 3 0 1 0 0 6 3 3 0 0 0 0-6Z",fill:"currentColor"})}))));Wr.defaultProps={size:"medium",color:"inherit"};const Ur=Wr,Yr=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 1a2 2 0 0 0-2 2H6a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3h-1a2 2 0 0 0-2-2H9Zm8 4a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2H6a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-1ZM9 4v1h6V3H9v1Z",fill:"currentColor"})}))));Yr.defaultProps={size:"medium",color:"inherit"};const qr=Yr,Gr=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 2a1 1 0 0 1 .949.684L15 17.838l2.051-6.154A1 1 0 0 1 18 11h4a1 1 0 1 1 0 2h-3.28l-2.771 8.316a1 1 0 0 1-1.898 0L9 6.162l-2.051 6.154A1 1 0 0 1 6 13H2a1 1 0 1 1 0-2h3.28L8.05 2.684A1 1 0 0 1 9 2Z",fill:"currentColor"})}))));Gr.defaultProps={size:"medium",color:"inherit"};const Kr=Gr,Xr=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4a1 1 0 0 0-1 1v13.586l2.293-2.293A1 1 0 0 1 7 16h12a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H5ZM2.879 2.879A3 3 0 0 1 5 2h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H7.414l-3.707 3.707A1 1 0 0 1 2 21V5a3 3 0 0 1 .879-2.121Z",fill:"currentColor"})}))));Xr.defaultProps={size:"medium",color:"inherit"};const Qr=Xr,Jr=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5 4a7.5 7.5 0 0 0-6.725 10.825 1 1 0 0 1 .055.756L4.59 19.357l3.564-1.297a1 1 0 0 1 .813.058A7.5 7.5 0 1 0 12.5 4ZM3 11.5a9.5 9.5 0 1 1 5.433 8.587L3.342 21.94a1 1 0 0 1-1.292-1.252l1.756-5.354A9.47 9.47 0 0 1 3 11.5Z",fill:"currentColor"})}))));Jr.defaultProps={size:"medium",color:"inherit"};const ei=Jr,ti=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 2a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1H3Zm1 7V4h5v5H4Zm10-7a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1h-7Zm1 7V4h5v5h-5Zm-2 5a1 1 0 0 1 1-1h7a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1h-7a1 1 0 0 1-1-1v-7Zm2 1v5h5v-5h-5ZM3 13a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1v-7a1 1 0 0 0-1-1H3Zm1 7v-5h5v5H4Z",fill:"currentColor"})}))));ti.defaultProps={size:"medium",color:"inherit"};const ni=ti,ri=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4a1 1 0 0 0-1 1v3h16V5a1 1 0 0 0-1-1H5Zm3 6H4v9a1 1 0 0 0 1 1h3V10Zm2 10V10h10v9a1 1 0 0 1-1 1h-9Zm-1 2H5a3 3 0 0 1-3-3V5a3 3 0 0 1 3-3h14a3 3 0 0 1 3 3v14a3 3 0 0 1-3 3H9Z",fill:"currentColor"})}))));ri.defaultProps={size:"medium",color:"inherit"};const ii=ri,oi=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.879 2.879A3 3 0 0 1 5 2h14a3 3 0 0 1 3 3v14a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V5a3 3 0 0 1 .879-2.121ZM13 20h6a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1h-6v16ZM11 4v16H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h6Z",fill:"currentColor"})}))));oi.defaultProps={size:"medium",color:"inherit"};const ai=oi,si=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 5a1 1 0 0 1 1-1h3v16H5a1 1 0 0 1-1-1V5Zm6 15V4h9a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-9Zm-1 2H5a3 3 0 0 1-3-3V5a3 3 0 0 1 3-3h14a3 3 0 0 1 3 3v14a3 3 0 0 1-3 3H9Z",fill:"currentColor"})}))));si.defaultProps={size:"medium",color:"inherit"};const li=si,ci=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.553 1.106a1 1 0 0 1 .894 0l10 5a1 1 0 0 1 0 1.788l-10 5a1 1 0 0 1-.894 0l-10-5a1 1 0 0 1 0-1.788l10-5ZM4.236 7 12 10.882 19.764 7 12 3.118 4.236 7Zm-3.13 9.553a1 1 0 0 1 1.341-.447L12 20.882l9.553-4.776a1 1 0 1 1 .894 1.788l-10 5a1 1 0 0 1-.894 0l-10-5a1 1 0 0 1-.447-1.341Zm1.341-5.447a1 1 0 1 0-.894 1.788l10 5a1 1 0 0 0 .894 0l10-5a1 1 0 1 0-.894-1.788L12 15.882l-9.553-4.776Z",fill:"currentColor"})}))));ci.defaultProps={size:"medium",color:"inherit"};const ui=ci,di=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v6h1a3 3 0 0 1 3 3v5a3 3 0 0 1-3 3h-1v3a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-3H4a3 3 0 0 1-3-3v-5a3 3 0 0 1 3-3h1V2Zm2 16v3h10v-6H7v3Zm12-1v-3a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v3H4a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1h-1ZM17 3v5H7V3h10Z",fill:"currentColor"})}))));di.defaultProps={size:"medium",color:"inherit"};const hi=di,fi=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.107 5.554C3.272 5.227 3.612 5 4 5h16c.388 0 .728.227.893.554L12 11.779 3.107 5.554ZM1 5.983V18c0 1.652 1.348 3 3 3h16c1.652 0 3-1.348 3-3V5.982A3.006 3.006 0 0 0 20 3H4a3.006 3.006 0 0 0-3 2.983ZM21 7.92V18c0 .548-.452 1-1 1H4c-.548 0-1-.452-1-1V7.92l8.427 5.9a1 1 0 0 0 1.146 0L21 7.92Z",fill:"currentColor"})}))));fi.defaultProps={size:"medium",color:"inherit"};const pi=fi,mi=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.24 3a3 3 0 0 0-2.685 1.664v.001l-3.44 6.87A.995.995 0 0 0 1 12v6a3 3 0 0 0 3 3h16a3 3 0 0 0 3-3v-6.038a.996.996 0 0 0-.115-.428l-3.44-6.869v-.001A3 3 0 0 0 16.76 3H7.24Zm13.14 8-2.724-5.442-.002-.003A1 1 0 0 0 16.76 5H7.24a1 1 0 0 0-.894.555L5.45 5.11l.894.448L3.62 11H8a1 1 0 0 1 .832.445L10.535 14h2.93l1.703-2.555A1 1 0 0 1 16 11h4.38ZM3 13v5a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1v-5h-4.465l-1.703 2.555A1 1 0 0 1 14 16h-4a1 1 0 0 1-.832-.445L7.465 13H3Z",fill:"currentColor"})}))));mi.defaultProps={size:"medium",color:"inherit"};const gi=mi,vi=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 3a1 1 0 0 1 1-1h22a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1h-1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V9H1a1 1 0 0 1-1-1V3Zm20 17V9H4v11h16Zm2-13H2V4h20v3Zm-12 4a1 1 0 1 0 0 2h4a1 1 0 1 0 0-2h-4Z",fill:"currentColor"})}))));vi.defaultProps={size:"medium",color:"inherit"};const yi=vi,bi=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.5 1.288a11 11 0 1 0 4.188 19.446 1 1 0 1 0-1.216-1.588A9 9 0 1 1 21 12v1a2 2 0 0 1-4 0V8a1 1 0 0 0-2 0 5 5 0 1 0 .74 7.319A3.996 3.996 0 0 0 19 17a4 4 0 0 0 4-4v-1a11 11 0 0 0-8.5-10.712ZM9 12a3 3 0 1 1 6 0 3 3 0 0 1-6 0Z",fill:"currentColor"})}))));bi.defaultProps={size:"medium",color:"inherit"};const wi=bi,xi=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 12a9 9 0 1 1 18 0 9 9 0 0 1-18 0Zm9-11C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1ZM7.4 13.2a1 1 0 0 1 1.397.196l.005.006.033.041a4.952 4.952 0 0 0 .815.748c.578.42 1.376.809 2.35.809.975 0 1.772-.39 2.35-.809a4.953 4.953 0 0 0 .815-.748l.034-.041.004-.006A1 1 0 0 1 16.8 14.6L16 14l.8.6-.001.001-.001.002-.003.004-.007.009-.021.027-.07.086a6.944 6.944 0 0 1-1.17 1.08c-.8.58-2.002 1.191-3.527 1.191-1.525 0-2.728-.61-3.526-1.191a6.942 6.942 0 0 1-1.17-1.08 4.174 4.174 0 0 1-.07-.086l-.022-.027-.007-.01-.003-.003-.001-.002S7.2 14.6 8 14l-.8.6a1 1 0 0 1 .2-1.4ZM8 9a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H9a1 1 0 0 1-1-1Zm7-1a1 1 0 1 0 0 2h.01a1 1 0 1 0 0-2H15Z",fill:"currentColor"})}))));xi.defaultProps={size:"medium",color:"inherit"};const ki=xi,Si=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 12a9 9 0 1 1 18 0 9 9 0 0 1-18 0Zm9-11C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1ZM8 14a1 1 0 1 0 0 2h8a1 1 0 1 0 0-2H8Zm0-5a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H9a1 1 0 0 1-1-1Zm7-1a1 1 0 1 0 0 2h.01a1 1 0 1 0 0-2H15Z",fill:"currentColor"})}))));Si.defaultProps={size:"medium",color:"inherit"};const Ci=Si,ji=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm7-3a1 1 0 0 1 1-1h.01a1 1 0 0 1 0 2H9a1 1 0 0 1-1-1Zm6 0a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H15a1 1 0 0 1-1-1Zm-5.526 5.191c.798-.58 2-1.191 3.526-1.191 1.525 0 2.728.61 3.526 1.191a6.944 6.944 0 0 1 1.17 1.08c.03.035.053.064.07.086l.022.027.007.01.003.003.001.002S16.8 15.4 16 16l.8-.6a1 1 0 0 1-1.597 1.204l-.005-.006a3.709 3.709 0 0 0-.194-.219 4.953 4.953 0 0 0-.655-.57C13.772 15.389 12.975 15 12 15c-.975 0-1.772.39-2.35.809a4.952 4.952 0 0 0-.815.748l-.034.041-.004.006.001-.002H8.8m0 0-.002.002A1 1 0 0 1 7.2 15.4l.8.6-.8-.6.002-.003.003-.004.007-.009.021-.027.07-.086a6.942 6.942 0 0 1 1.171-1.08",fill:"currentColor"})}))));ji.defaultProps={size:"medium",color:"inherit"};const Oi=ji,Mi=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 7a3 3 0 1 1 6 0 3 3 0 0 1-6 0Zm3-5a5 5 0 1 0 0 10A5 5 0 0 0 9 2ZM5 14a5 5 0 0 0-5 5v2a1 1 0 1 0 2 0v-2a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v2a1 1 0 1 0 2 0v-2a5 5 0 0 0-5-5H5Zm14.032.88a1 1 0 0 1 1.218-.718A5 5 0 0 1 24 18.999V21a1 1 0 1 1-2 0v-2a3 3 0 0 0-2.25-2.902 1 1 0 0 1-.718-1.218ZM16.248 2.161a1 1 0 1 0-.496 1.938 3 3 0 0 1 0 5.812 1 1 0 1 0 .496 1.938 5 5 0 0 0 0-9.688Z",fill:"currentColor"})}))));Mi.defaultProps={size:"medium",color:"inherit"};const Pi=Mi,Ei=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 7a3 3 0 1 1 6 0 3 3 0 0 1-6 0Zm3-5a5 5 0 1 0 0 10 5 5 0 0 0 0-10ZM8 14a5 5 0 0 0-5 5v2a1 1 0 1 0 2 0v-2a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v2a1 1 0 1 0 2 0v-2a5 5 0 0 0-5-5H8Z",fill:"currentColor"})}))));Ei.defaultProps={size:"medium",color:"inherit"};const Ai=Ei,Ti=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 7a3 3 0 1 1 6 0 3 3 0 0 1-6 0Zm3-5a5 5 0 1 0 0 10 5 5 0 0 0 0-10ZM5 14a5 5 0 0 0-5 5v2a1 1 0 1 0 2 0v-2a3 3 0 0 1 3-3h7a3 3 0 0 1 3 3v2a1 1 0 1 0 2 0v-2a5 5 0 0 0-5-5H5Zm12.293-6.707a1 1 0 0 1 1.414 0L20.5 9.086l1.793-1.793a1 1 0 1 1 1.414 1.414L21.914 10.5l1.793 1.793a1 1 0 0 1-1.414 1.414L20.5 11.914l-1.793 1.793a1 1 0 0 1-1.414-1.414l1.793-1.793-1.793-1.793a1 1 0 0 1 0-1.414Z",fill:"currentColor"})}))));Ti.defaultProps={size:"medium",color:"inherit"};const _i=Ti,Di=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 7a3 3 0 1 1 6 0 3 3 0 0 1-6 0Zm3-5a5 5 0 1 0 0 10 5 5 0 0 0 0-10ZM5 14a5 5 0 0 0-5 5v2a1 1 0 1 0 2 0v-2a3 3 0 0 1 3-3h7a3 3 0 0 1 3 3v2a1 1 0 1 0 2 0v-2a5 5 0 0 0-5-5H5Zm15-7a1 1 0 0 1 1 1v2h2a1 1 0 1 1 0 2h-2v2a1 1 0 1 1-2 0v-2h-2a1 1 0 1 1 0-2h2V8a1 1 0 0 1 1-1Z",fill:"currentColor"})}))));Di.defaultProps={size:"medium",color:"inherit"};const Ri=Di,zi=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 4a3 3 0 1 0 0 6 3 3 0 0 0 0-6Zm-5 3a5 5 0 1 1 10 0 5 5 0 0 1-10 0Zm-2.036 8.464A5 5 0 0 1 5 14h7a5 5 0 0 1 5 5v2a1 1 0 1 1-2 0v-2a3 3 0 0 0-3-3H5a3 3 0 0 0-3 3v2a1 1 0 1 1-2 0v-2a5 5 0 0 1 1.464-3.536ZM17 10a1 1 0 1 0 0 2h6a1 1 0 1 0 0-2h-6Z",fill:"currentColor"})}))));zi.defaultProps={size:"medium",color:"inherit"};const Ii=zi,Li=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 4a3 3 0 1 0 0 6 3 3 0 0 0 0-6Zm-5 3a5 5 0 1 1 10 0 5 5 0 0 1-10 0Zm-2.036 8.464A5 5 0 0 1 5 14h7a5 5 0 0 1 5 5v2a1 1 0 1 1-2 0v-2a3 3 0 0 0-3-3H5a3 3 0 0 0-3 3v2a1 1 0 1 1-2 0v-2a5 5 0 0 1 1.464-3.536Zm22.243-5.757a1 1 0 0 0-1.414-1.414L19 11.586l-1.293-1.293a1 1 0 1 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4Z",fill:"currentColor"})}))));Li.defaultProps={size:"medium",color:"inherit"};const $i=Li,Ni=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 2a1 1 0 0 0-1 1v15a1 1 0 0 0 1 1h7a2 2 0 0 1 2 2 1 1 0 1 0 2 0 2 2 0 0 1 2-2h7a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1h-6a5 5 0 0 0-4 2 5 5 0 0 0-4-2H2Zm11 15.536A4 4 0 0 1 15 17h6V4h-5a3 3 0 0 0-3 3v10.536Zm-2 0V7a3 3 0 0 0-3-3H3v13h6a4 4 0 0 1 2 .536Z",fill:"currentColor"})}))));Ni.defaultProps={size:"medium",color:"inherit"};const Zi=Ni,Hi=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.44 3.44A1.5 1.5 0 0 1 6.5 3H19v13H6.5a3.5 3.5 0 0 0-1.5.338V4.5c0-.398.158-.78.44-1.06ZM5 19.5A1.5 1.5 0 0 0 6.5 21H19v-3H6.5A1.5 1.5 0 0 0 5 19.5ZM21 17V2a1 1 0 0 0-1-1H6.5A3.5 3.5 0 0 0 3 4.5v15A3.5 3.5 0 0 0 6.5 23H20a1 1 0 0 0 1-1v-5Z",fill:"currentColor"})}))));Hi.defaultProps={size:"medium",color:"inherit"};const Vi=Hi,Fi=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 4a1 1 0 0 0-1 1v14.057l5.419-3.87a1 1 0 0 1 1.162 0L18 19.056V5a1 1 0 0 0-1-1H7ZM4.879 2.879A3 3 0 0 1 7 2h10a3 3 0 0 1 3 3v16a1 1 0 0 1-1.581.814L12 17.229l-6.419 4.585A1 1 0 0 1 4 21V5a3 3 0 0 1 .879-2.121Z",fill:"currentColor"})}))));Fi.defaultProps={size:"medium",color:"inherit"};const Bi=Fi,Wi=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1h-9a1 1 0 0 1-.832-.445L8.465 4H4ZM1.879 2.879A3 3 0 0 1 4 2h5a1 1 0 0 1 .832.445L11.535 5H20a3 3 0 0 1 3 3v11a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V5a3 3 0 0 1 .879-2.121ZM12 10a1 1 0 0 1 1 1v2h2a1 1 0 1 1 0 2h-2v2a1 1 0 1 1-2 0v-2H9a1 1 0 1 1 0-2h2v-2a1 1 0 0 1 1-1Z",fill:"currentColor"})}))));Wi.defaultProps={size:"medium",color:"inherit"};const Ui=Wi,Yi=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.293 4.293A1 1 0 0 1 4 4h4.465l1.703 2.555A1 1 0 0 0 11 7h9a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V5a1 1 0 0 1 .293-.707ZM4 2a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h16a3 3 0 0 0 3-3V8a3 3 0 0 0-3-3h-8.465L9.832 2.445A1 1 0 0 0 9 2H4Zm5 11a1 1 0 1 0 0 2h6a1 1 0 1 0 0-2H9Z",fill:"currentColor"})}))));Yi.defaultProps={size:"medium",color:"inherit"};const qi=Yi,Gi=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1h-9a1 1 0 0 1-.832-.445L8.465 4H4ZM1.879 2.879A3 3 0 0 1 4 2h5a1 1 0 0 1 .832.445L11.535 5H20a3 3 0 0 1 3 3v11a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V5a3 3 0 0 1 .879-2.121Z",fill:"currentColor"})}))));Gi.defaultProps={size:"medium",color:"inherit"};const Ki=Gi,Xi=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 1a3 3 0 0 0-3 3v16a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V8a1 1 0 0 0-.293-.707l-6-6A1 1 0 0 0 14 1H6Zm-.707 2.293A1 1 0 0 1 6 3h7v5a1 1 0 0 0 1 1h5v11a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V4a1 1 0 0 1 .293-.707ZM17.586 7 15 4.414V7h2.586ZM8 12a1 1 0 1 0 0 2h8a1 1 0 1 0 0-2H8Zm-1 5a1 1 0 0 1 1-1h8a1 1 0 1 1 0 2H8a1 1 0 0 1-1-1Zm1-9a1 1 0 0 0 0 2h2a1 1 0 1 0 0-2H8Z",fill:"currentColor"})}))));Xi.defaultProps={size:"medium",color:"inherit"};const Qi=Xi,Ji=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.879 1.879A3 3 0 0 1 6 1h8a1 1 0 0 1 .707.293l6 6A1 1 0 0 1 21 8v12a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V4a3 3 0 0 1 .879-2.121ZM6 3a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V9h-5a1 1 0 0 1-1-1V3H6Zm9 1.414L17.586 7H15V4.414ZM12 11a1 1 0 0 1 1 1v2h2a1 1 0 1 1 0 2h-2v2a1 1 0 1 1-2 0v-2H9a1 1 0 1 1 0-2h2v-2a1 1 0 0 1 1-1Z",fill:"currentColor"})}))));Ji.defaultProps={size:"medium",color:"inherit"};const eo=Ji,to=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 1a3 3 0 0 0-3 3v16a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V8a1 1 0 0 0-.293-.707l-6-6A1 1 0 0 0 14 1H6Zm-.707 2.293A1 1 0 0 1 6 3h7v5a1 1 0 0 0 1 1h5v11a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V4a1 1 0 0 1 .293-.707ZM17.586 7 15 4.414V7h2.586ZM9 14a1 1 0 1 0 0 2h6a1 1 0 1 0 0-2H9Z",fill:"currentColor"})}))));to.defaultProps={size:"medium",color:"inherit"};const no=to,ro=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.879 1.879A3 3 0 0 1 6 1h7a1 1 0 0 1 .707.293l7 7A1 1 0 0 1 21 9v11a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V4a3 3 0 0 1 .879-2.121ZM6 3a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V10h-6a1 1 0 0 1-1-1V3H6Zm8 1.414L17.586 8H14V4.414Z",fill:"currentColor"})}))));ro.defaultProps={size:"medium",color:"inherit"};const io=ro,oo=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 1a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1A11 11 0 0 0 12 1Zm1 10V3.056A9 9 0 0 1 20.944 11H13ZM8.4 3.747a1 1 0 0 0-.8-1.834A11 11 0 1 0 22.131 16.28a1 1 0 1 0-1.842-.778A9 9 0 1 1 8.399 3.747Z",fill:"currentColor"})}))));oo.defaultProps={size:"medium",color:"inherit"};const ao=oo,so=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 3a1 1 0 0 1 1 1v16a1 1 0 1 1-2 0V4a1 1 0 0 1 1-1Zm-6 6a1 1 0 0 1 1 1v10a1 1 0 1 1-2 0V10a1 1 0 0 1 1-1Zm-5 7a1 1 0 1 0-2 0v4a1 1 0 1 0 2 0v-4Z",fill:"currentColor"})}))));so.defaultProps={size:"medium",color:"inherit"};const lo=so,co=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3a1 1 0 0 1 1 1v16a1 1 0 1 1-2 0V4a1 1 0 0 1 1-1Zm6 6a1 1 0 0 1 1 1v10a1 1 0 1 1-2 0V10a1 1 0 0 1 1-1ZM7 14a1 1 0 1 0-2 0v6a1 1 0 1 0 2 0v-6Z",fill:"currentColor"})}))));co.defaultProps={size:"medium",color:"inherit"};const uo=co,ho=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 4a1 1 0 0 1 1-1 17 17 0 0 1 17 17 1 1 0 1 1-2 0A15 15 0 0 0 4 5a1 1 0 0 1-1-1Zm0 7a1 1 0 0 1 1-1 10 10 0 0 1 10 10 1 1 0 1 1-2 0 8 8 0 0 0-8-8 1 1 0 0 1-1-1Zm2 6a2 2 0 1 0 0 4 2 2 0 0 0 0-4Z",fill:"currentColor"})}))));ho.defaultProps={size:"medium",color:"inherit"};const fo=ho,po=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.637 5.637a1 1 0 1 0-1.414-1.414 11 11 0 0 0 0 15.554 1 1 0 1 0 1.414-1.414 9 9 0 0 1 0-12.726Zm14.14-1.414a1 1 0 1 0-1.414 1.414 9 9 0 0 1 0 12.726 1 1 0 1 0 1.414 1.414 11 11 0 0 0 0-15.554ZM8.467 8.457a1 1 0 1 0-1.414-1.415 7 7 0 0 0 0 9.905 1 1 0 0 0 1.414-1.414 5 5 0 0 1 0-7.076Zm8.48-1.405a1 1 0 1 0-1.414 1.415 5 5 0 0 1 0 7.075 1 1 0 0 0 1.414 1.415 7 7 0 0 0 0-9.905ZM11 12a1 1 0 1 1 2 0 1 1 0 0 1-2 0Zm1-3a3 3 0 1 0 0 6 3 3 0 0 0 0-6Z",fill:"currentColor"})}))));po.defaultProps={size:"medium",color:"inherit"};const mo=po,go=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.617.076a1 1 0 0 1 1.09.217l5.5 5.5a1 1 0 0 1 0 1.414L13.414 12l4.793 4.793a1 1 0 0 1 0 1.414l-5.5 5.5A1 1 0 0 1 11 23v-8.586l-3.793 3.793a1 1 0 0 1-1.414-1.414L10.586 12 5.793 7.207a1 1 0 0 1 1.414-1.414L11 9.586V1a1 1 0 0 1 .617-.924ZM13 14.414l3.086 3.086L13 20.586v-6.172Zm0-4.828V3.414L16.086 6.5 13 9.586Z",fill:"currentColor"})}))));go.defaultProps={size:"medium",color:"inherit"};const vo=go,yo=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13 2a1 1 0 1 0-2 0v10a1 1 0 1 0 2 0V2ZM6.337 7.347a1 1 0 0 0-1.414-1.414 10 10 0 1 0 14.144 0 1 1 0 1 0-1.414 1.414 8 8 0 1 1-11.316 0Z",fill:"currentColor"})}))));yo.defaultProps={size:"medium",color:"inherit"};const bo=yo,wo=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V4Zm1-3a3 3 0 0 0-3 3v16a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V4a3 3 0 0 0-3-3H6Zm6 16a1 1 0 1 0 0 2h.01a1 1 0 1 0 0-2H12Z",fill:"currentColor"})}))));wo.defaultProps={size:"medium",color:"inherit"};const xo=wo,ko=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 4a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V4Zm1-3a3 3 0 0 0-3 3v16a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V4a3 3 0 0 0-3-3H7Zm5 16a1 1 0 1 0 0 2h.01a1 1 0 1 0 0-2H12Z",fill:"currentColor"})}))));ko.defaultProps={size:"medium",color:"inherit"};const So=ko,Co=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.707 4.293a1 1 0 0 0-1.414 1.414L8.586 11l-5.293 5.293a1 1 0 1 0 1.414 1.414l6-6a1 1 0 0 0 0-1.414l-6-6ZM12 18a1 1 0 1 0 0 2h8a1 1 0 1 0 0-2h-8Z",fill:"currentColor"})}))));Co.defaultProps={size:"medium",color:"inherit"};const jo=Co,Oo=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 4a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4Zm1-3a3 3 0 0 0-3 3v4a3 3 0 0 0 3 3h16a3 3 0 0 0 3-3V4a3 3 0 0 0-3-3H4ZM3 16a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-4Zm1-3a3 3 0 0 0-3 3v4a3 3 0 0 0 3 3h16a3 3 0 0 0 3-3v-4a3 3 0 0 0-3-3H4Zm1-7a1 1 0 0 1 1-1h.01a1 1 0 0 1 0 2H6a1 1 0 0 1-1-1Zm1 11a1 1 0 1 0 0 2h.01a1 1 0 1 0 0-2H6Z",fill:"currentColor"})}))));Oo.defaultProps={size:"medium",color:"inherit"};const Mo=Oo,Po=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.003 4.985 4 5c0 .002 0 .006.003.015a.296.296 0 0 0 .032.066c.043.07.13.174.291.301.33.26.87.539 1.626.79C7.454 6.674 9.592 7 12 7s4.546-.327 6.048-.827c.756-.252 1.296-.53 1.626-.79.162-.128.248-.232.29-.302a.293.293 0 0 0 .033-.066A.052.052 0 0 0 20 5l-.003-.015a.293.293 0 0 0-.032-.066 1.235 1.235 0 0 0-.291-.301c-.33-.26-.87-.539-1.626-.79C16.546 3.326 14.408 3 12 3s-4.546.327-6.048.827c-.756.252-1.296.53-1.626.79a1.236 1.236 0 0 0-.29.302.296.296 0 0 0-.033.066ZM20 7.527a9.536 9.536 0 0 1-1.32.543C16.925 8.655 14.563 9 12 9c-2.563 0-4.925-.345-6.68-.93A9.536 9.536 0 0 1 4 7.527V12c0 .002 0 .007.003.018a.298.298 0 0 0 .033.067c.042.07.127.173.288.3.328.26.864.537 1.618.789 1.497.5 3.635.826 6.058.826s4.561-.326 6.058-.826c.754-.252 1.29-.53 1.618-.789.16-.127.246-.23.288-.3a.298.298 0 0 0 .033-.067A.061.061 0 0 0 20 12V7.527ZM22 12V5c0-.852-.519-1.504-1.088-1.953-.581-.458-1.36-.826-2.232-1.117C16.925 1.345 14.563 1 12 1c-2.563 0-4.925.345-6.68.93-.873.29-1.651.66-2.232 1.117C2.518 3.496 2 4.148 2 5v14c0 .85.513 1.502 1.082 1.953.579.459 1.355.827 2.226 1.118C7.061 22.656 9.423 23 12 23s4.939-.344 6.692-.929c.87-.29 1.647-.66 2.226-1.118C21.487 20.502 22 19.849 22 19v-7Zm-2 2.532c-.398.203-.84.383-1.308.539-1.753.585-4.115.929-6.692.929s-4.939-.344-6.692-.929A9.461 9.461 0 0 1 4 14.531V19c0 .002 0 .007.003.018a.298.298 0 0 0 .033.067c.042.07.127.173.288.3.328.26.864.537 1.618.789 1.497.5 3.635.826 6.058.826s4.561-.326 6.058-.826c.754-.252 1.29-.53 1.618-.789.16-.127.246-.23.288-.3a.298.298 0 0 0 .033-.067A.061.061 0 0 0 20 19v-4.468Z",fill:"currentColor"})}))));Po.defaultProps={size:"medium",color:"inherit"};const Eo=Po,Ao=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.24 3a3 3 0 0 0-2.685 1.664v.001l-3.44 6.87A.995.995 0 0 0 1 12v6a3 3 0 0 0 3 3h16a3 3 0 0 0 3-3v-6.038a.996.996 0 0 0-.115-.428l-3.44-6.869v-.001A3 3 0 0 0 16.76 3H7.24Zm13.14 8-2.724-5.442-.002-.003A1 1 0 0 0 16.76 5H7.24a1 1 0 0 0-.894.555L5.45 5.11l.894.448L3.62 11h16.762ZM3 13v5a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1v-5H3Zm2 3a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H6a1 1 0 0 1-1-1Zm5-1a1 1 0 1 0 0 2h.01a1 1 0 1 0 0-2H10Z",fill:"currentColor"})}))));Ao.defaultProps={size:"medium",color:"inherit"};const To=Ao,_o=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.11 2.006a1 1 0 0 1 .884 1.104L10.45 8h3.987l.568-5.11a1 1 0 1 1 1.988.22L16.45 8H20a1 1 0 1 1 0 2h-3.772l-.444 4H20a1 1 0 1 1 0 2h-4.438l-.568 5.11a1 1 0 0 1-1.988-.22L13.55 16H9.562l-.568 5.11a1 1 0 0 1-1.988-.22L7.55 16H4a1 1 0 1 1 0-2h3.772l.444-4H4a1 1 0 0 1 0-2h4.438l.568-5.11a1 1 0 0 1 1.104-.884ZM13.772 14l.444-4h-3.988l-.444 4h3.988Z",fill:"currentColor"})}))));_o.defaultProps={size:"medium",color:"inherit"};const Do=_o,Ro=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 6a2 2 0 1 1 4 0 2 2 0 0 1-4 0Zm3 3.874A4.002 4.002 0 0 0 6 2a4 4 0 0 0-1 7.874V21a1 1 0 1 0 2 0V9.874ZM16 18a2 2 0 1 1 4 0 2 2 0 0 1-4 0Zm-2 0a4.002 4.002 0 0 1 3-3.874V8a1 1 0 0 0-1-1h-3a1 1 0 1 1 0-2h3a3 3 0 0 1 3 3v6.126A4.002 4.002 0 0 1 18 22a4 4 0 0 1-4-4Z",fill:"currentColor"})}))));Ro.defaultProps={size:"medium",color:"inherit"};const zo=Ro,Io=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 4a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm1.047 5.862A4.002 4.002 0 0 0 6 2a4 4 0 0 0-1 7.874V21a1 1 0 1 0 2 0v-6a10 10 0 0 0 7.116 3.96A4.002 4.002 0 0 0 22 18a4 4 0 0 0-7.862-1.047 8 8 0 0 1-7.091-7.091ZM16 18a2 2 0 1 0 4 0 2 2 0 0 0-4 0Z",fill:"currentColor"})}))));Io.defaultProps={size:"medium",color:"inherit"};const Lo=Io,$o=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 9a3 3 0 1 0 0 6 3 3 0 0 0 0-6Zm-5 4a.986.986 0 0 0 .099-.005 5.002 5.002 0 0 0 9.802 0c.036.003.072.005.109.005h5.95a1 1 0 0 0 0-2h-5.95c-.037 0-.073.002-.109.006a5.002 5.002 0 0 0-9.802-.001.986.986 0 0 0-.1-.005H1.05a1 1 0 1 0 0 2H7Z",fill:"currentColor"})}))));$o.defaultProps={size:"medium",color:"inherit"};const No=$o,Zo=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 3a1 1 0 0 0-2 0v11.126A4.002 4.002 0 0 0 6 22a4.002 4.002 0 0 0 3.884-3.04 10 10 0 0 0 9.077-9.076A4.002 4.002 0 0 0 18 2a4 4 0 0 0-1.047 7.862 8 8 0 0 1-7.091 7.091A4.007 4.007 0 0 0 7 14.126V3Zm1 15a2 2 0 1 0-4 0 2 2 0 0 0 4 0ZM18 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z",fill:"currentColor"})}))));Zo.defaultProps={size:"medium",color:"inherit"};const Ho=Zo,Vo=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.172 3.172A4 4 0 0 1 10 6v2h4V6a4 4 0 1 1 4 4h-2v4h2a4 4 0 1 1-4 4v-2h-4v2a4 4 0 1 1-4-4h2v-4H6a4 4 0 0 1-2.828-6.828ZM8 8V6a2 2 0 1 0-2 2h2Zm2 2v4h4v-4h-4Zm-2 6H6a2 2 0 1 0 2 2v-2Zm8 0v2a2 2 0 1 0 2-2h-2Zm0-8h2a2 2 0 1 0-2-2v2Z",fill:"currentColor"})}))));Vo.defaultProps={size:"medium",color:"inherit"};const Fo=Vo,Bo=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 0a1 1 0 0 1 1 1v2h4V1a1 1 0 1 1 2 0v2h2a3 3 0 0 1 3 3v2h2a1 1 0 1 1 0 2h-2v3h2a1 1 0 1 1 0 2h-2v3a3 3 0 0 1-3 3h-2v2a1 1 0 1 1-2 0v-2h-4v2a1 1 0 1 1-2 0v-2H6a3 3 0 0 1-3-3v-3H1a1 1 0 1 1 0-2h2v-3H1a1 1 0 1 1 0-2h2V6a3 3 0 0 1 3-3h2V1a1 1 0 0 1 1-1ZM5 14v4a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v8Zm4-6a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1H9Zm1 6v-4h4v4h-4Z",fill:"currentColor"})}))));Bo.defaultProps={size:"medium",color:"inherit"};const Wo=Bo,Uo=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.707 6.707a1 1 0 0 0-1.414-1.414l-6 6a1 1 0 0 0 0 1.414l6 6a1 1 0 0 0 1.414-1.414L3.414 12l5.293-5.293Zm8-1.414a1 1 0 1 0-1.414 1.414L20.586 12l-5.293 5.293a1 1 0 0 0 1.414 1.414l6-6a1 1 0 0 0 0-1.414l-6-6Z",fill:"currentColor"})}))));Uo.defaultProps={size:"medium",color:"inherit"};const Yo=Uo;var qo=n(4474),Go=n(2298);const Ko=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M8.996 21a8.983 8.983 0 0 1-8.707-6.75c-.6-2.33-.26-4.75.96-6.82a8.945 8.945 0 0 1 5.498-4.14c2.329-.6 4.748-.26 6.817.96A9.023 9.023 0 0 1 17.483 9h.52A6.004 6.004 0 0 1 24 15c0 3.31-2.689 6-5.998 6H8.996c.01 0 0 0 0 0Zm0-16c-.57 0-1.16.08-1.75.23a6.926 6.926 0 0 0-4.278 3.22A6.994 6.994 0 0 0 8.996 19h9.006c2.21 0 3.999-1.79 3.999-4s-1.79-4-3.999-4h-1.26c-.459 0-.849-.31-.969-.75C14.963 7.1 12.115 5 8.996 5Z",fill:"currentColor"})}))));Ko.defaultProps={size:"medium",color:"inherit"};const Xo=Ko,Qo=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m4.52 2.145-.189-.53c-.29.103-.545.268-.752.478A1 1 0 0 0 3 3v19a1 1 0 1 0 2 0v-6.5a2 2 0 0 0 .657-.111l.005-.002.066-.02c.068-.02.179-.051.327-.086.3-.07.74-.152 1.273-.19 1.076-.075 2.443.034 3.78.7 2.163 1.075 4.296 1.217 5.845 1.107.78-.055 1.433-.175 1.9-.284a9.592 9.592 0 0 0 .73-.2l.053-.018.019-.006.008-.003.003-.001h.001c.001-.001.002-.001-.667-1.886l.669 1.885A2 2 0 0 0 21 14.5v-10a2 2 0 0 0-2.657-1.889l-.005.002-.067.02c-.067.02-.178.051-.326.086-.3.07-.74.151-1.273.19-1.076.075-2.443-.033-3.78-.7C10.728 1.134 8.595.992 7.046 1.102c-.78.055-1.433.175-1.9.283a9.64 9.64 0 0 0-.783.219l-.019.006-.008.003-.003.001h-.001s-.001.001.187.531ZM5 3.5v10s.792-.281 2-.388c1.33-.118 3.165-.025 5 .888 3.5 1.742 7 .5 7 .5V4.499s-.792.282-2 .39c-1.33.117-3.165.024-5-.889-3.5-1.742-7-.5-7-.5Z",fill:"currentColor"})}))));Qo.defaultProps={size:"medium",color:"inherit"};const Jo=Qo,ea=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.614 1.21a1 1 0 0 0-1.228 0l-9 7A1 1 0 0 0 2 9v11a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V9a1 1 0 0 0-.386-.79l-9-7ZM16 21h3a1 1 0 0 0 1-1V9.49l-8-6.223-8 6.222V20a1 1 0 0 0 1 1h3v-9a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v9Zm-6 0v-8h4v8h-4Z",fill:"currentColor"})}))));ea.defaultProps={size:"medium",color:"inherit"};const ta=ea,na=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm12 8.945V18a1 1 0 1 0-2 0v2.945A9.004 9.004 0 0 1 3.055 13H6a1 1 0 1 0 0-2H3.055A9.004 9.004 0 0 1 11 3.055V6a1 1 0 1 0 2 0V3.055A9.004 9.004 0 0 1 20.945 11H18a1 1 0 1 0 0 2h2.945A9.004 9.004 0 0 1 13 20.945Z",fill:"currentColor"})}))));na.defaultProps={size:"medium",color:"inherit"};const ra=na,ia=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 12a9 9 0 1 1 18 0 9 9 0 0 1-18 0Zm9-11C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1Zm5.188 7.076a1 1 0 0 0-1.264-1.265l-6.36 2.12a1 1 0 0 0-.633.633l-2.12 6.36a1 1 0 0 0 1.265 1.265l6.36-2.12a1 1 0 0 0 .632-.633l2.12-6.36ZM9.341 14.66l1.33-3.988 3.988-1.33-1.33 3.988-3.988 1.33Z",fill:"currentColor"})}))));ia.defaultProps={size:"medium",color:"inherit"};const oa=ia,aa=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.707 1.293a1 1 0 0 1 .197 1.135l-9 19a1 1 0 0 1-1.874-.186l-1.855-7.417-7.418-1.855a1 1 0 0 1-.185-1.874l19-9a1 1 0 0 1 1.135.197ZM5.953 10.708l5.29 1.322a1 1 0 0 1 .727.728l1.322 5.289 6.606-13.945-13.945 6.606Z",fill:"currentColor"})}))));aa.defaultProps={size:"medium",color:"inherit"};const sa=aa,la=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 1a1 1 0 0 1 .938.654l7 19a1 1 0 0 1-1.434 1.214L12 18.152l-6.504 3.716a1 1 0 0 1-1.434-1.214l7-19A1 1 0 0 1 12 1ZM6.887 18.77l4.617-2.638a1 1 0 0 1 .992 0l4.617 2.638L12 4.893 6.887 18.77Z",fill:"currentColor"})}))));la.defaultProps={size:"medium",color:"inherit"};const ca=la,ua=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 1a.995.995 0 0 0-.511.14L.504 5.132A1 1 0 0 0 0 6v16a1 1 0 0 0 1.496.868l6.535-3.734 7.504 3.751a.994.994 0 0 0 .976-.026l6.985-3.99A1 1 0 0 0 24 18V2a1 1 0 0 0-1.496-.868l-6.536 3.734-7.503-3.751A.995.995 0 0 0 8.008 1H8Zm9 19.277 5-2.857V3.723L17 6.58v13.697ZM15 6.618l-6-3v13.764l6 3V6.618ZM2 6.58l5-2.857V17.42l-5 2.857V6.58Z",fill:"currentColor"})}))));ua.defaultProps={size:"medium",color:"inherit"};const da=ua,ha=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.343 4.343A8 8 0 0 1 20 10c0 3.098-2.016 6.104-4.226 8.437A29.412 29.412 0 0 1 12 21.773a29.419 29.419 0 0 1-3.774-3.335C6.016 16.103 4 13.097 4 10a8 8 0 0 1 2.343-5.657Zm5.102 19.489L12 23l-.555.832a1 1 0 0 0 1.11 0L12 23l.555.832h.001l.002-.002.007-.005.023-.015.082-.057c.072-.05.174-.12.302-.214a31.433 31.433 0 0 0 4.254-3.727C19.516 17.397 22 13.903 22 10a10 10 0 0 0-20 0c0 3.902 2.484 7.396 4.774 9.813a31.428 31.428 0 0 0 4.254 3.726 18.887 18.887 0 0 0 .384.27l.023.016.007.005.002.001ZM10 10a2 2 0 1 1 4 0 2 2 0 0 1-4 0Zm2-4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z",fill:"currentColor"})}))));ha.defaultProps={size:"medium",color:"inherit"};const fa=ha,pa=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.726 3.29A9.008 9.008 0 0 0 3.055 11H7.05a16.3 16.3 0 0 1 2.676-7.71Zm4.548 0A16.3 16.3 0 0 1 16.95 11h3.995a9.008 9.008 0 0 0-6.67-7.71Zm.668 7.71A14.3 14.3 0 0 0 12 3.55 14.3 14.3 0 0 0 9.058 11h5.884Zm-5.884 2h5.884A14.3 14.3 0 0 1 12 20.45 14.3 14.3 0 0 1 9.058 13ZM7.05 13H3.055a9.008 9.008 0 0 0 6.67 7.71A16.3 16.3 0 0 1 7.05 13Zm7.224 7.71A16.3 16.3 0 0 0 16.95 13h3.995a9.008 9.008 0 0 1-6.67 7.71ZM12 23c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11Z",fill:"currentColor"})}))));pa.defaultProps={size:"medium",color:"inherit"};const ma=pa,ga=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 12a9 9 0 1 1 18 0 9 9 0 0 1-18 0Zm9-11C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1ZM9 8a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1H9Zm1 6v-4h4v4h-4Z",fill:"currentColor"})}))));ga.defaultProps={size:"medium",color:"inherit"};const va=ga,ya=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 12a9 9 0 1 1 18 0 9 9 0 0 1-18 0Zm9-11C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1Zm-1.445 6.168A1 1 0 0 0 9 8v8a1 1 0 0 0 1.555.832l6-4a1 1 0 0 0 0-1.664l-6-4ZM14.197 12 11 14.132V9.869L14.197 12Z",fill:"currentColor"})}))));ya.defaultProps={size:"medium",color:"inherit"};const ba=ya,wa=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm9-4a1 1 0 0 1 1 1v6a1 1 0 1 1-2 0V9a1 1 0 0 1 1-1Zm5 1a1 1 0 1 0-2 0v6a1 1 0 1 0 2 0V9Z",fill:"currentColor"})}))));wa.defaultProps={size:"medium",color:"inherit"};const xa=wa,ka=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H5ZM2 5a3 3 0 0 1 3-3h14a3 3 0 0 1 3 3v14a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V5Z",fill:"currentColor"})}))));ka.defaultProps={size:"medium",color:"inherit"};const Sa=ka,Ca=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.52 2.122a1 1 0 0 1 1.02.037l14 9a1 1 0 0 1 0 1.682l-14 9A1 1 0 0 1 4 21V3a1 1 0 0 1 .52-.878ZM6 4.832v14.336L17.15 12 6 4.832Z",fill:"currentColor"})}))));Ca.defaultProps={size:"medium",color:"inherit"};const ja=Ca,Oa=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 3a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1H6Zm1 16V5h2v14H7Zm7-16a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1h-4Zm1 16V5h2v14h-2Z",fill:"currentColor"})}))));Oa.defaultProps={size:"medium",color:"inherit"};const Ma=Oa,Pa=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.625 3.22A1 1 0 0 0 4 4v16a1 1 0 0 0 1.625.78l10-8a1 1 0 0 0 0-1.56l-10-8ZM13.399 12 6 17.92V6.08L13.4 12ZM20 5a1 1 0 1 0-2 0v14a1 1 0 1 0 2 0V5Z",fill:"currentColor"})}))));Pa.defaultProps={size:"medium",color:"inherit"};const Ea=Pa,Aa=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 4a1 1 0 0 0-1.625-.78l-10 8a1 1 0 0 0 0 1.56l10 8A1 1 0 0 0 20 20V4Zm-2 13.92L10.6 12 18 6.08v11.84ZM6 5a1 1 0 0 0-2 0v14a1 1 0 1 0 2 0V5Z",fill:"currentColor"})}))));Aa.defaultProps={size:"medium",color:"inherit"};const Ta=Aa,_a=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.614 4.21A1 1 0 0 0 1 5v14a1 1 0 0 0 1.614.79l9-7A1 1 0 0 0 12 12v7a1 1 0 0 0 1.614.79l9-7a1 1 0 0 0 0-1.58l-9-7A1 1 0 0 0 12 5v7a1 1 0 0 0-.386-.79l-9-7ZM9.37 12 3 16.955v-9.91L9.371 12Zm11 0L14 16.955v-9.91L20.371 12Z",fill:"currentColor"})}))));_a.defaultProps={size:"medium",color:"inherit"};const Da=_a,Ra=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5a1 1 0 0 0-1.614-.79l-9 7a1 1 0 0 0 0 1.58l9 7A1 1 0 0 0 12 19v-7a1 1 0 0 0 .386.79l9 7A1 1 0 0 0 23 19V5a1 1 0 0 0-1.614-.79l-9 7A1 1 0 0 0 12 12V5Zm-2 11.955L3.629 12 10 7.045v9.91Zm11 0L14.629 12 21 7.045v9.91Z",fill:"currentColor"})}))));Ra.defaultProps={size:"medium",color:"inherit"};const za=Ra,Ia=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 4a1 1 0 1 1 0-2h5a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0V5.414L4.707 20.707a1 1 0 0 1-1.414-1.414L18.586 4H16ZM3.293 3.293a1 1 0 0 1 1.414 0l5 5a1 1 0 0 1-1.414 1.414l-5-5a1 1 0 0 1 0-1.414Zm11 12.414a1 1 0 0 1 1.414-1.414L20 18.586V16a1 1 0 1 1 2 0v5a1 1 0 0 1-1 1h-5a1 1 0 1 1 0-2h2.586l-4.293-4.293Z",fill:"currentColor"})}))));Ia.defaultProps={size:"medium",color:"inherit"};const La=Ia,$a=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.293.293a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1 0 1.414l-4 4a1 1 0 0 1-1.414-1.414L18.586 6H7a3 3 0 0 0-3 3v2a1 1 0 1 1-2 0V9a5 5 0 0 1 5-5h11.586l-2.293-2.293a1 1 0 0 1 0-1.414ZM20 15v-2a1 1 0 1 1 2 0v2a5 5 0 0 1-5 5H5.414l2.293 2.293a1 1 0 1 1-1.414 1.414l-4-4a1 1 0 0 1 0-1.414l4-4a1 1 0 0 1 1.414 1.414L5.414 18H17a3 3 0 0 0 3-3Z",fill:"currentColor"})}))));$a.defaultProps={size:"medium",color:"inherit"};const Na=$a,Za=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.227 2.396a10 10 0 0 1 12.206 6.27 1 1 0 1 1-1.886.668A8 8 0 0 0 6.325 6.369L3.525 9H7a1 1 0 1 1 0 2H1a1 1 0 0 1-1-1V4a1 1 0 1 1 2 0v3.688l2.944-2.766a10 10 0 0 1 4.283-2.526ZM16 14a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v6a1 1 0 1 1-2 0v-3.688l-2.944 2.766a10 10 0 0 1-16.489-3.744 1 1 0 1 1 1.886-.668 8 8 0 0 0 13.213 2.974l.01-.009 2.8-2.631H17a1 1 0 0 1-1-1Z",fill:"currentColor"})}))));Za.defaultProps={size:"medium",color:"inherit"};const Ha=Za,Va=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.217 4.317a8 8 0 0 0-9.764 5.017 1 1 0 1 1-1.886-.668 10 10 0 0 1 16.489-3.744L22 7.688V4a1 1 0 1 1 2 0v6a1 1 0 0 1-1 1h-6a1 1 0 1 1 0-2h3.476l-2.8-2.631a8 8 0 0 0-3.458-2.051ZM0 14a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2H3.525l2.8 2.631.022.022a8 8 0 0 0 13.2-2.987 1 1 0 1 1 1.886.668 10 10 0 0 1-16.489 3.744L2 16.312V20a1 1 0 1 1-2 0v-6Z",fill:"currentColor"})}))));Va.defaultProps={size:"medium",color:"inherit"};const Fa=Va,Ba=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 0C5.37 0 0 5.506 0 12.303c0 5.445 3.435 10.043 8.205 11.674.6.107.825-.262.825-.585 0-.292-.015-1.261-.015-2.291C6 21.67 5.22 20.346 4.98 19.654c-.135-.354-.72-1.446-1.23-1.738-.42-.23-1.02-.8-.015-.815.945-.015 1.62.892 1.845 1.261 1.08 1.86 2.805 1.338 3.495 1.015.105-.8.42-1.338.765-1.645-2.67-.308-5.46-1.37-5.46-6.075 0-1.338.465-2.446 1.23-3.307-.12-.308-.54-1.569.12-3.26 0 0 1.005-.323 3.3 1.26.96-.276 1.98-.415 3-.415s2.04.139 3 .416c2.295-1.6 3.3-1.261 3.3-1.261.66 1.691.24 2.952.12 3.26.765.861 1.23 1.953 1.23 3.307 0 4.721-2.805 5.767-5.475 6.075.435.384.81 1.122.81 2.276 0 1.645-.015 2.968-.015 3.383 0 .323.225.707.825.585a12.047 12.047 0 0 0 5.919-4.489A12.536 12.536 0 0 0 24 12.304C24 5.505 18.63 0 12 0Z",fill:"currentColor"})}))));Ba.defaultProps={size:"medium",color:"inherit"};const Wa=Ba,Ua=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M23.723 10.413a3.803 3.803 0 0 0-2.852-.342 3.693 3.693 0 0 0-1.551-2.428l-.314-.24-.25.305a3.351 3.351 0 0 0-.618 2.363c.054.556.248 1.09.563 1.551-.249.13-.563.25-.812.379-.54.17-1.105.25-1.671.24H.137l-.102.35A6.997 6.997 0 0 0 .6 16.127l.24.434v.064c1.495 2.484 4.163 3.6 7.08 3.6 5.539 0 10.155-2.418 12.351-7.634 1.431.065 2.862-.313 3.545-1.68l.185-.304-.277-.194ZM4.854 16.875a1.302 1.302 0 0 1-1.301-1.265 1.302 1.302 0 0 1 2.603 0 1.302 1.302 0 0 1-1.302 1.265Zm8.004-7.727h-2.419v2.419h2.419V9.148Zm0-3.037h-2.419V8.53h2.419V6.11Zm0-3.111h-2.419v2.428h2.419V3Zm2.981 6.148h-2.418v2.419h2.418V9.148Zm-9 0H4.42v2.419H6.84V9.148Zm3.046 0H7.421v2.419h2.427l.037-2.419Zm-6.028 0H1.44v2.419h2.418V9.148Zm6.028-3.037H7.421V8.53h2.427l.037-2.419Zm-3.046 0H4.42V8.53H6.84V6.074v.037Z",fill:"currentColor"})}))));Ua.defaultProps={size:"medium",color:"inherit"};const Ya=Ua,qa=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.557 2.482a.558.558 0 0 1-.004-.012l.004.012Zm.55 1.69L7 9.98a1 1 0 0 0 .951.69h8.1a1 1 0 0 0 .951-.691l1.886-5.804L20.779 10l1.224 3.625L12 20.894l-9.964-7.242 3.071-9.48Zm17.04 9.526-.08-.11a.162.162 0 0 1 .04-.037l.087.134-.047.013Zm.024.032.479.66-.437-.674-.043.014Zm1.05 1.482-10.633 7.727a1 1 0 0 1-1.176 0l-10.65-7.74-.004-.003a1.84 1.84 0 0 1-.659-2.056L3.76 1.851a1.42 1.42 0 0 1 .388-.591 1.43 1.43 0 0 1 1.948.021c.17.165.297.37.368.596L8.676 8.67h6.647l2.216-6.819.018-.052a1.43 1.43 0 0 1 2.318-.518c.17.165.297.37.368.596l2.436 7.498 1.268 3.755a.614.614 0 0 1 .013.04 1.84 1.84 0 0 1-.74 2.042ZM17.926 1.26l.002-.002L18.6 2l-.674-.738.001-.002Zm1.344 1.482.003-.004-.003.004Z",fill:"currentColor"})}))));qa.defaultProps={size:"medium",color:"inherit"};const Ga=qa,Ka=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.043 2.509a1 1 0 0 1-.067 1.085 6 6 0 0 0 8.391 8.392 1 1 0 0 1 1.59.896A10 10 0 1 1 11.08 2.004a1 1 0 0 1 .963.505Zm-2.765 1.93a8 8 0 1 0 10.245 10.245A8 8 0 0 1 9.278 4.439Z",fill:"currentColor"})}))));Ka.defaultProps={size:"medium",color:"inherit"};const Xa=Ka,Qa=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 0a1 1 0 0 1 1 1v2a1 1 0 1 1-2 0V1a1 1 0 0 1 1-1ZM3.513 3.513a1 1 0 0 1 1.414 0l1.42 1.42a1 1 0 0 1-1.414 1.414l-1.42-1.42a1 1 0 0 1 0-1.414Zm16.974 0a1 1 0 0 1 0 1.414l-1.42 1.42a1 1 0 1 1-1.414-1.414l1.42-1.42a1 1 0 0 1 1.414 0ZM12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm-6 4a6 6 0 1 1 12 0 6 6 0 0 1-12 0Zm-6 0a1 1 0 0 1 1-1h2a1 1 0 1 1 0 2H1a1 1 0 0 1-1-1Zm20 0a1 1 0 0 1 1-1h2a1 1 0 1 1 0 2h-2a1 1 0 0 1-1-1ZM6.347 17.653a1 1 0 0 1 0 1.414l-1.42 1.42a1 1 0 0 1-1.414-1.414l1.42-1.42a1 1 0 0 1 1.414 0Zm11.306 0a1 1 0 0 1 1.414 0l1.42 1.42a1 1 0 0 1-1.414 1.414l-1.42-1.42a1 1 0 0 1 0-1.414ZM12 20a1 1 0 0 1 1 1v2a1 1 0 1 1-2 0v-2a1 1 0 0 1 1-1Z",fill:"currentColor"})}))));Qa.defaultProps={size:"medium",color:"inherit"};const Ja=Qa,es=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 12a9 9 0 1 1 18 0 9 9 0 0 1-18 0Zm9-11C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z",fill:"currentColor"})]}))));es.defaultProps={size:"medium",color:"inherit"};const ts=es;var ns=n(3768),rs=n(1549);const is=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m8.008 4 1-.009-.017-2-1 .009a8.072 8.072 0 0 0-5.627 13.778l5.686 5.685a7.002 7.002 0 0 0 9.9 0l1.635-1.636a4 4 0 0 0 0-5.655l-3.613-3.613-.707-.708-1.414 1.415.707.707 3.613 3.612a2 2 0 0 1 .202 2.592l-3.166-3.166-1.414 1.415 3.183 3.183-.44.44a5 5 0 0 1-.845.68l-3.101-3.102-1.414 1.415 2.435 2.435a5.005 5.005 0 0 1-4.147-1.428l-5.686-5.685a6.072 6.072 0 0 1 0-8.586l-.707-.707.708.706A6.048 6.048 0 0 1 8.009 4Zm3.628 1.778a6.072 6.072 0 0 1 9.505 7.409l-.513.858 1.717 1.026.513-.859a8.074 8.074 0 0 0-1.223-9.848l-.706.707.706-.707a8.072 8.072 0 0 0-11.413 0l-4.93 4.929-.706.707.707.707.172.172a5 5 0 0 0 7.07 0l2.172-2.172.707-.707L14 6.586l-.707.707-2.172 2.172a3 3 0 0 1-3.638.466l4.153-4.153Z",fill:"currentColor"})}))));is.defaultProps={size:"medium",color:"inherit"};const os=is,as=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 1a1 1 0 0 1 1 1v3a1 1 0 0 1-2 0V2a1 1 0 0 1 1-1Zm4.776 1.75a6.006 6.006 0 0 1 8.338 0l.002.002a6.004 6.004 0 0 1 .281 8.335.998.998 0 0 1-.132.162l-1.72 1.71a1 1 0 0 1-1.41-1.418l1.591-1.582a1 1 0 0 1 .094-.113 4.004 4.004 0 0 0-.095-5.657 4.006 4.006 0 0 0-5.556-.004l-1.714 1.704a1 1 0 1 1-1.41-1.418l1.72-1.71.01-.01ZM1 8a1 1 0 0 1 1-1h3a1 1 0 0 1 0 2H2a1 1 0 0 1-1-1Zm4.877 3.043a1 1 0 0 1 0 1.414l-1.703 1.704a4.004 4.004 0 0 0 .1 5.65 4.006 4.006 0 0 0 5.556.005l1.703-1.703a1 1 0 0 1 1.414 1.414l-1.71 1.71-.013.013a6.006 6.006 0 0 1-8.338 0l-.002-.002a6.004 6.004 0 0 1-.143-8.482l.012-.013 1.71-1.71a1 1 0 0 1 1.414 0ZM18 16a1 1 0 0 1 1-1h3a1 1 0 1 1 0 2h-3a1 1 0 0 1-1-1Zm-2 2a1 1 0 0 1 1 1v3a1 1 0 1 1-2 0v-3a1 1 0 0 1 1-1Z",fill:"currentColor"})}))));as.defaultProps={size:"medium",color:"inherit"};const ss=as,ls=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.879 1.879A3 3 0 0 1 6 1h8.5a1 1 0 0 1 .707.293l5.5 5.5A1 1 0 0 1 21 7.5V20a3 3 0 0 1-3 3H4a1 1 0 1 1 0-2h14a1 1 0 0 0 1-1V9h-5a1 1 0 0 1-1-1V3H6a1 1 0 0 0-1 1v4a1 1 0 0 1-2 0V4a3 3 0 0 1 .879-2.121ZM15 3.914V7h3.086L15 3.914Zm-6.707 7.379a1 1 0 0 1 1.414 0l3 3a1 1 0 0 1 0 1.414l-3 3a1 1 0 0 1-1.414-1.414L9.586 16H2a1 1 0 1 1 0-2h7.586l-1.293-1.293a1 1 0 0 1 0-1.414Z",fill:"currentColor"})}))));ls.defaultProps={size:"medium",color:"inherit"};const cs=ls,us=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 7a1 1 0 1 1 0-2h6a1 1 0 0 1 1 1v6a1 1 0 1 1-2 0V8.414l-7.793 7.793a1 1 0 0 1-1.414 0L8.5 11.914l-6.793 6.793a1 1 0 0 1-1.414-1.414l7.5-7.5a1 1 0 0 1 1.414 0l4.293 4.293L20.586 7H17Z",fill:"currentColor"})}))));us.defaultProps={size:"medium",color:"inherit"};const ds=us,hs=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.707 5.293A1 1 0 0 0 .293 6.707l7.5 7.5a1 1 0 0 0 1.414 0L13.5 9.914 20.586 17H17a1 1 0 1 0 0 2h6.003a.996.996 0 0 0 .996-.952L24 18v-6a1 1 0 1 0-2 0v3.586l-7.793-7.793a1 1 0 0 0-1.414 0L8.5 12.086 1.707 5.293Z",fill:"currentColor"})}))));hs.defaultProps={size:"medium",color:"inherit"};const fs=hs,ps=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.52 12.273c0-.852-.076-1.669-.219-2.454H12v4.641h6.459a5.521 5.521 0 0 1-2.395 3.621v3.012h3.877c2.27-2.089 3.579-5.166 3.579-8.82Z",fill:"#4285F4"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 24c3.24 0 5.956-1.075 7.941-2.907l-3.877-3.012c-1.075.72-2.45 1.147-4.064 1.147-3.125 0-5.77-2.112-6.715-4.948H1.276v3.11A11.996 11.996 0 0 0 12 24Z",fill:"#34A853"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.285 14.28A7.213 7.213 0 0 1 4.91 12c0-.79.136-1.56.376-2.28V6.61H1.276A11.995 11.995 0 0 0 0 12c0 1.936.464 3.77 1.276 5.39l4.01-3.11Z",fill:"#FBBC05"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4.773c1.761 0 3.344.606 4.587 1.794l3.442-3.44C17.951 1.188 15.235 0 12 0A11.996 11.996 0 0 0 1.276 6.61l4.01 3.11C6.228 6.884 8.874 4.773 12 4.773Z",fill:"#EA4335"})]}))));ps.defaultProps={size:"medium",color:"inherit"};const ms=ps,gs=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{d:"M22.224 0H1.77C.794 0 0 .775 0 1.73v20.538C0 23.224.794 24 1.771 24h20.453c.979 0 1.776-.776 1.776-1.732V1.73C24 .775 23.203 0 22.224 0Z",fill:"#0077B5"}),(0,r.jsx)("path",{d:"M20.45 20.45h-3.557v-5.569c0-1.329-.024-3.037-1.85-3.037-1.852 0-2.135 1.447-2.135 2.941v5.666H9.35V8.998h3.414v1.564h.048c.475-.9 1.636-1.85 3.368-1.85 3.604 0 4.27 2.373 4.27 5.457v6.282ZM5.34 7.433a2.065 2.065 0 1 1 0-4.13 2.065 2.065 0 0 1 0 4.13ZM3.559 20.45h3.56V8.998h-3.56V20.45Z",fill:"#fff"})]}))));gs.defaultProps={size:"medium",color:"inherit"};const vs=gs,ys=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M21.557 7.891c0 6.509-4.953 14.012-14.009 14.012-2.782 0-5.368-.816-7.548-2.214a10 10 0 0 0 1.174.07c2.309 0 4.43-.788 6.115-2.107a4.929 4.929 0 0 1-4.6-3.419 5.031 5.031 0 0 0 2.224-.085 4.929 4.929 0 0 1-3.95-4.83v-.061c.665.37 1.425.59 2.231.617a4.924 4.924 0 0 1-1.523-6.575A13.977 13.977 0 0 0 11.82 8.444a4.972 4.972 0 0 1-.127-1.123A4.921 4.921 0 0 1 16.617 2.4c1.417 0 2.696.596 3.595 1.554a9.916 9.916 0 0 0 3.126-1.195 4.942 4.942 0 0 1-2.165 2.723A9.849 9.849 0 0 0 24 4.707a9.944 9.944 0 0 1-2.457 2.548c.01.211.014.425.014.636Z",fill:"#1DA1F2"})}))));ys.defaultProps={size:"medium",color:"inherit"};const bs=ys,ws=(0,o.w)(((e,t)=>(0,r.jsxs)(i.A0,Object.assign({ref:t},e,{children:[(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.804 0A2.397 2.397 0 0 0 6.41 2.4a2.398 2.398 0 0 0 2.395 2.399h2.396V2.4A2.4 2.4 0 0 0 8.804 0c.001 0 .001 0 0 0Zm0 6.4H2.418A2.398 2.398 0 0 0 .022 8.8a2.398 2.398 0 0 0 2.395 2.4h6.387A2.398 2.398 0 0 0 11.2 8.8a2.398 2.398 0 0 0-2.396-2.4Z",fill:"#36C5F0"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.975 8.8a2.398 2.398 0 0 0-2.396-2.4 2.398 2.398 0 0 0-2.396 2.4v2.4h2.396a2.398 2.398 0 0 0 2.396-2.4Zm-6.388 0V2.4A2.398 2.398 0 0 0 15.193 0a2.398 2.398 0 0 0-2.396 2.4v6.4a2.398 2.398 0 0 0 2.395 2.4 2.398 2.398 0 0 0 2.395-2.4Z",fill:"#2EB67D"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.192 24a2.398 2.398 0 0 0 2.395-2.4 2.398 2.398 0 0 0-2.395-2.399h-2.396v2.4A2.399 2.399 0 0 0 15.192 24Zm0-6.401h6.387a2.398 2.398 0 0 0 2.395-2.4 2.398 2.398 0 0 0-2.394-2.4h-6.387a2.398 2.398 0 0 0-2.396 2.4c0 1.324 1.07 2.399 2.395 2.4Z",fill:"#ECB22E"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.022 15.2a2.398 2.398 0 0 0 2.396 2.399 2.398 2.398 0 0 0 2.396-2.4v-2.4H2.418a2.398 2.398 0 0 0-2.396 2.4Zm6.388 0v6.4A2.398 2.398 0 0 0 8.804 24a2.398 2.398 0 0 0 2.396-2.4v-6.399a2.396 2.396 0 1 0-4.79-.002s0 .001 0 0Z",fill:"#E01E5A"})]}))));ws.defaultProps={size:"medium",color:"inherit"};const xs=ws},5021:(e,t,n)=>{"use strict";t.Z=function(e){var t=e.from,n=void 0===t?{x:0,y:0}:t,a=e.to,l=void 0===a?{x:1,y:1}:a,c=e.fill,u=void 0===c?"transparent":c,d=e.className,h=e.innerRef,f=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,o),p=n.x===l.x||n.y===l.y;return r.default.createElement("line",s({ref:h,className:(0,i.default)("visx-line",d),x1:n.x,y1:n.y,x2:l.x,y2:l.y,fill:u,shapeRendering:p?"crispEdges":"auto"},f))};var r=a(n(5466)),i=a(n(2703)),o=["from","to","fill","className","innerRef"];function a(e){return e&&e.__esModule?e:{default:e}}function s(){return s=Object.assign||function(e){for(var t=1;t{"use strict";function t(e,t,i){e instanceof RegExp&&(e=n(e,i)),t instanceof RegExp&&(t=n(t,i));var o=r(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,i,o,a,s,l=n.indexOf(e),c=n.indexOf(t,l+1),u=l;if(l>=0&&c>0){if(e===t)return[l,c];for(r=[],o=n.length;u>=0&&!s;)u==l?(r.push(u),l=n.indexOf(e,u+1)):1==r.length?s=[r.pop(),c]:((i=r.pop())=0?l:c;r.length&&(s=[o,a])}return s}e.exports=t,t.range=r},2703:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t{"use strict";n.d(t,{Z:()=>f});var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const i=function(e,t,n){var i,o=r[e];return i="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};function o(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var a={date:o({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:o({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:o({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function l(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=null!=n&&n.width?String(n.width):i;r=e.formattingValues[o]||e.formattingValues[i]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function c(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a,s=o[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?d(l,(function(e){return e.test(s)})):u(l,(function(e){return e.test(s)}));a=e.valueCallback?e.valueCallback(c):c,a=n.valueCallback?n.valueCallback(a):a;var h=t.slice(s.length);return{value:a,rest:h}}}function u(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function d(e,t){for(var n=0;n20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:l({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:l({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:l({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:l({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:l({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(h={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(h.matchPattern);if(!n)return null;var r=n[0],i=e.match(h.parsePattern);if(!i)return null;var o=h.valueCallback?h.valueCallback(i[0]):i[0];o=t.valueCallback?t.valueCallback(o):o;var a=e.slice(r.length);return{value:o,rest:a}}),era:c({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:c({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:c({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:c({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:c({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},4072:(e,t,n)=>{"use strict";n.d(t,{j:()=>i});var r={};function i(){return r}},5010:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},i=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}};const o={p:i,P:function(e,t){var n,o=e.match(/(P+)(p+)?/)||[],a=o[1],s=o[2];if(!s)return r(e,t);switch(a){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",r(a,t)).replace("{{time}}",i(s,t))}}},7500:(e,t,n)=>{"use strict";function r(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}n.d(t,{Z:()=>r})},1047:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(4265),i=n(7906),o=n(4369),a=n(8755);function s(e){(0,a.Z)(1,arguments);var t=(0,o.Z)(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=(0,i.Z)(n);return r}var l=6048e5;function c(e){(0,a.Z)(1,arguments);var t=(0,r.default)(e),n=(0,i.Z)(t).getTime()-s(t).getTime();return Math.round(n/l)+1}},4369:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(4265),i=n(8755),o=n(7906);function a(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(n+1,0,4),a.setUTCHours(0,0,0,0);var s=(0,o.Z)(a),l=new Date(0);l.setUTCFullYear(n,0,4),l.setUTCHours(0,0,0,0);var c=(0,o.Z)(l);return t.getTime()>=s.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1}},4710:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(4265),i=n(7760),o=n(4590),a=n(8755),s=n(506),l=n(4072);function c(e,t){var n,r,c,u,d,h,f,p;(0,a.Z)(1,arguments);var m=(0,l.j)(),g=(0,s.Z)(null!==(n=null!==(r=null!==(c=null!==(u=null==t?void 0:t.firstWeekContainsDate)&&void 0!==u?u:null==t||null===(d=t.locale)||void 0===d||null===(h=d.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==c?c:m.firstWeekContainsDate)&&void 0!==r?r:null===(f=m.locale)||void 0===f||null===(p=f.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==n?n:1),v=(0,o.Z)(e,t),y=new Date(0);y.setUTCFullYear(v,0,g),y.setUTCHours(0,0,0,0);var b=(0,i.Z)(y,t);return b}var u=6048e5;function d(e,t){(0,a.Z)(1,arguments);var n=(0,r.default)(e),o=(0,i.Z)(n,t).getTime()-c(n,t).getTime();return Math.round(o/u)+1}},4590:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(4265),i=n(8755),o=n(7760),a=n(506),s=n(4072);function l(e,t){var n,l,c,u,d,h,f,p;(0,i.Z)(1,arguments);var m=(0,r.default)(e),g=m.getUTCFullYear(),v=(0,s.j)(),y=(0,a.Z)(null!==(n=null!==(l=null!==(c=null!==(u=null==t?void 0:t.firstWeekContainsDate)&&void 0!==u?u:null==t||null===(d=t.locale)||void 0===d||null===(h=d.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==c?c:v.firstWeekContainsDate)&&void 0!==l?l:null===(f=v.locale)||void 0===f||null===(p=f.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==n?n:1);if(!(y>=1&&y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(g+1,0,y),b.setUTCHours(0,0,0,0);var w=(0,o.Z)(b,t),x=new Date(0);x.setUTCFullYear(g,0,y),x.setUTCHours(0,0,0,0);var k=(0,o.Z)(x,t);return m.getTime()>=w.getTime()?g+1:m.getTime()>=k.getTime()?g:g-1}},845:(e,t,n)=>{"use strict";n.d(t,{Do:()=>a,Iu:()=>o,qp:()=>s});var r=["D","DD"],i=["YY","YYYY"];function o(e){return-1!==r.indexOf(e)}function a(e){return-1!==i.indexOf(e)}function s(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}},8755:(e,t,n)=>{"use strict";function r(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:()=>r})},7906:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(4265),i=n(8755);function o(e){(0,i.Z)(1,arguments);var t=1,n=(0,r.default)(e),o=n.getUTCDay(),a=(o{"use strict";n.d(t,{Z:()=>s});var r=n(4265),i=n(8755),o=n(506),a=n(4072);function s(e,t){var n,s,l,c,u,d,h,f;(0,i.Z)(1,arguments);var p=(0,a.j)(),m=(0,o.Z)(null!==(n=null!==(s=null!==(l=null!==(c=null==t?void 0:t.weekStartsOn)&&void 0!==c?c:null==t||null===(u=t.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==l?l:p.weekStartsOn)&&void 0!==s?s:null===(h=p.locale)||void 0===h||null===(f=h.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==n?n:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,r.default)(e),v=g.getUTCDay(),y=(v{"use strict";function r(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,{Z:()=>r})},1539:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(506),i=n(4265),o=n(8755);function a(e,t){(0,o.Z)(2,arguments);var n=(0,i.default)(e),a=(0,r.Z)(t);return isNaN(a)?new Date(NaN):a?(n.setDate(n.getDate()+a),n):n}},9127:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(506),i=n(3429),o=n(8755),a=36e5;function s(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.Z)(e,n*a)}},3429:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(506),i=n(4265),o=n(8755);function a(e,t){(0,o.Z)(2,arguments);var n=(0,i.default)(e).getTime(),a=(0,r.Z)(t);return new Date(n+a)}},6966:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(506),i=n(3429),o=n(8755);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.Z)(e,6e4*n)}},5886:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(506),i=n(4265),o=n(8755);function a(e,t){(0,o.Z)(2,arguments);var n=(0,i.default)(e),a=(0,r.Z)(t);if(isNaN(a))return new Date(NaN);if(!a)return n;var s=n.getDate(),l=new Date(n.getTime());l.setMonth(n.getMonth()+a+1,0);var c=l.getDate();return s>=c?l:(n.setFullYear(l.getFullYear(),l.getMonth(),s),n)}},5863:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(506),i=n(1539),o=n(8755);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t),a=7*n;return(0,i.default)(e,a)}},9623:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(506),i=n(5886),o=n(8755);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.default)(e,12*n)}},6896:(e,t,n)=>{"use strict";n.d(t,{qk:()=>o,vh:()=>i,yJ:()=>r});Math.pow(10,8);var r=6e4,i=36e5,o=1e3},1312:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(7500),i=n(3817),o=n(8755),a=864e5;function s(e,t){(0,o.Z)(2,arguments);var n=(0,i.default)(e),s=(0,i.default)(t),l=n.getTime()-(0,r.Z)(n),c=s.getTime()-(0,r.Z)(s);return Math.round((l-c)/a)}},268:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(4265),i=n(8755);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t),a=n.getFullYear()-o.getFullYear(),s=n.getMonth()-o.getMonth();return 12*a+s}},5254:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(6395),i=n(7500),o=n(8755),a=6048e5;function s(e,t,n){(0,o.Z)(2,arguments);var s=(0,r.default)(e,n),l=(0,r.default)(t,n),c=s.getTime()-(0,i.Z)(s),u=l.getTime()-(0,i.Z)(l);return Math.round((c-u)/a)}},1121:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(4265),i=n(8755);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getFullYear()-o.getFullYear()}},2093:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(4265),i=n(8755);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e);return t.setHours(23,59,59,999),t}},2743:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(4265),i=n(8755);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}},6477:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(4072),i=n(4265),o=n(506),a=n(8755);function s(e,t){var n,s,l,c,u,d,h,f;(0,a.Z)(1,arguments);var p=(0,r.j)(),m=(0,o.Z)(null!==(n=null!==(s=null!==(l=null!==(c=null==t?void 0:t.weekStartsOn)&&void 0!==c?c:null==t||null===(u=t.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==l?l:p.weekStartsOn)&&void 0!==s?s:null===(h=p.locale)||void 0===h||null===(f=h.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==n?n:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,i.default)(e),v=g.getDay(),y=6+(v{"use strict";n.r(t),n.d(t,{default:()=>z});var r=n(4359),i=n(9071),o=n(4265),a=n(8755),s=864e5;var l=n(1047),c=n(4369),u=n(4710),d=n(4590);function h(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?n:1-n;return h("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):h(n+1,2)},d:function(e,t){return h(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return h(e.getUTCHours()%12||12,t.length)},H:function(e,t){return h(e.getUTCHours(),t.length)},m:function(e,t){return h(e.getUTCMinutes(),t.length)},s:function(e,t){return h(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return h(Math.floor(r*Math.pow(10,n-3)),t.length)}};var p="midnight",m="noon",g="morning",v="afternoon",y="evening",b="night";function w(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var a=t||"";return n+String(i)+a+h(o,2)}function x(e,t){return e%60==0?(e>0?"-":"+")+h(Math.abs(e)/60,2):k(e,t)}function k(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e);return r+h(Math.floor(i/60),2)+n+h(i%60,2)}const S={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return f.y(e,t)},Y:function(e,t,n,r){var i=(0,d.Z)(e,r),o=i>0?i:1-i;return"YY"===t?h(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):h(o,t.length)},R:function(e,t){return h((0,c.Z)(e),t.length)},u:function(e,t){return h(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return h(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return h(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return f.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return h(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=(0,u.Z)(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):h(i,t.length)},I:function(e,t,n){var r=(0,l.Z)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):h(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):f.d(e,t)},D:function(e,t,n){var r=function(e){(0,a.Z)(1,arguments);var t=(0,o.default)(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/s)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):h(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return h(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return h(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return h(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?m:0===i?p:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?y:i>=12?v:i>=4?g:b,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return f.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):f.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):h(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):h(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):f.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):f.s(e,t)},S:function(e,t){return f.S(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return x(i);case"XXXX":case"XX":return k(i);default:return k(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return x(i);case"xxxx":case"xx":return k(i);default:return k(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+w(i,":");default:return"GMT"+k(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+w(i,":");default:return"GMT"+k(i,":")}},t:function(e,t,n,r){var i=r._originalDate||e;return h(Math.floor(i.getTime()/1e3),t.length)},T:function(e,t,n,r){return h((r._originalDate||e).getTime(),t.length)}};var C=n(5010),j=n(7500),O=n(845),M=n(506),P=n(4072),E=n(7808),A=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,T=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,_=/^'([^]*?)'?$/,D=/''/g,R=/[a-zA-Z]/;function z(e,t,n){var s,l,c,u,d,h,f,p,m,g,v,y,b,w,x,k,_,D;(0,a.Z)(2,arguments);var z=String(t),L=(0,P.j)(),$=null!==(s=null!==(l=null==n?void 0:n.locale)&&void 0!==l?l:L.locale)&&void 0!==s?s:E.Z,N=(0,M.Z)(null!==(c=null!==(u=null!==(d=null!==(h=null==n?void 0:n.firstWeekContainsDate)&&void 0!==h?h:null==n||null===(f=n.locale)||void 0===f||null===(p=f.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==d?d:L.firstWeekContainsDate)&&void 0!==u?u:null===(m=L.locale)||void 0===m||null===(g=m.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==c?c:1);if(!(N>=1&&N<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Z=(0,M.Z)(null!==(v=null!==(y=null!==(b=null!==(w=null==n?void 0:n.weekStartsOn)&&void 0!==w?w:null==n||null===(x=n.locale)||void 0===x||null===(k=x.options)||void 0===k?void 0:k.weekStartsOn)&&void 0!==b?b:L.weekStartsOn)&&void 0!==y?y:null===(_=L.locale)||void 0===_||null===(D=_.options)||void 0===D?void 0:D.weekStartsOn)&&void 0!==v?v:0);if(!(Z>=0&&Z<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!$.localize)throw new RangeError("locale must contain localize property");if(!$.formatLong)throw new RangeError("locale must contain formatLong property");var H=(0,o.default)(e);if(!(0,r.default)(H))throw new RangeError("Invalid time value");var V=(0,j.Z)(H),F=(0,i.Z)(H,V),B={firstWeekContainsDate:N,weekStartsOn:Z,locale:$,_originalDate:H},W=z.match(T).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,C.Z[t])(e,$.formatLong):e})).join("").match(A).map((function(r){if("''"===r)return"'";var i=r[0];if("'"===i)return I(r);var o=S[i];if(o)return null!=n&&n.useAdditionalWeekYearTokens||!(0,O.Do)(r)||(0,O.qp)(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!(0,O.Iu)(r)||(0,O.qp)(r,t,String(e)),o(F,r,$.localize,B);if(i.match(R))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return r})).join("");return W}function I(e){var t=e.match(_);return t?t[1].replace(D,"'"):e}},9851:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(4265),i=n(8755);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getDate();return n}},716:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(4265),i=n(8755);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getDay();return n}},3980:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(4265),i=n(8755);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getHours();return n}},3688:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(4265),i=n(6395),o=n(8755);function a(e){return(0,o.Z)(1,arguments),(0,i.default)(e,{weekStartsOn:1})}function s(e){(0,o.Z)(1,arguments);var t=(0,r.default)(e),n=t.getFullYear(),i=new Date(0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);var s=a(i),l=new Date(0);l.setFullYear(n,0,4),l.setHours(0,0,0,0);var c=a(l);return t.getTime()>=s.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1}function l(e){(0,o.Z)(1,arguments);var t=s(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=a(n);return r}var c=6048e5;function u(e){(0,o.Z)(1,arguments);var t=(0,r.default)(e),n=a(t).getTime()-l(t).getTime();return Math.round(n/c)+1}},3663:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(4265),i=n(8755);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getMinutes();return n}},8572:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(4265),i=n(8755);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getMonth();return n}},3508:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(4265),i=n(8755);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=Math.floor(t.getMonth()/3)+1;return n}},7028:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(4265),i=n(8755);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getSeconds();return n}},6398:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(4265),i=n(8755);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getTime();return n}},691:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(4265),i=n(8755);function o(e){return(0,i.Z)(1,arguments),(0,r.default)(e).getFullYear()}},3593:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(4265),i=n(8755);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getTime()>o.getTime()}},3225:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(4265),i=n(8755);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getTime(){"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(8755);function i(e){return(0,r.Z)(1,arguments),e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}},9721:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(4265),i=n(8755);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getTime()===o.getTime()}},4727:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(3817),i=n(8755);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getTime()===o.getTime()}},5789:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(4265),i=n(8755);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}},4622:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(7438),i=n(8755);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getTime()===o.getTime()}},4635:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(4265),i=n(8755);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e),o=(0,r.default)(t);return n.getFullYear()===o.getFullYear()}},4359:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(2837),i=n(4265),o=n(8755);function a(e){if((0,o.Z)(1,arguments),!(0,r.default)(e)&&"number"!=typeof e)return!1;var t=(0,i.default)(e);return!isNaN(Number(t))}},8301:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(4265),i=n(8755);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.default)(e).getTime(),o=(0,r.default)(t.start).getTime(),a=(0,r.default)(t.end).getTime();if(!(o<=a))throw new RangeError("Invalid interval");return n>=o&&n<=a}},5925:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(4265),i=n(8755);function o(e){var t,n;if((0,i.Z)(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!=typeof e||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=(0,r.default)(e);(void 0===n||n{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(4265),i=n(8755);function o(e){var t,n;if((0,i.Z)(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!=typeof e||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=(0,r.default)(e);(void 0===n||n>t||isNaN(t.getDate()))&&(n=t)})),n||new Date(NaN)}},4725:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>We});var r=n(7808),i=n(9071),o=n(4265);function a(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}var s=n(5010),l=n(7500),c=n(845),u=n(506),d=n(8755);function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class f{constructor(){h(this,"priority",void 0),h(this,"subPriority",0)}validate(e,t){return!0}}class p extends f{constructor(e,t,n,r,i){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,i&&(this.subPriority=i)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}}class m extends f{constructor(){super(...arguments),h(this,"priority",10),h(this,"subPriority",-1)}set(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class v{constructor(){g(this,"incompatibleTokens",void 0),g(this,"priority",void 0),g(this,"subPriority",void 0)}run(e,t,n,r){var i=this.parse(e,t,n,r);return i?{setter:new p(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(e,t,n){return!0}}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=n(6896),w=/^(1[0-2]|0?\d)/,x=/^(3[0-1]|[0-2]?\d)/,k=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,S=/^(5[0-3]|[0-4]?\d)/,C=/^(2[0-3]|[0-1]?\d)/,j=/^(2[0-4]|[0-1]?\d)/,O=/^(1[0-1]|0?\d)/,M=/^(1[0-2]|0?\d)/,P=/^[0-5]?\d/,E=/^[0-5]?\d/,A=/^\d/,T=/^\d{1,2}/,_=/^\d{1,3}/,D=/^\d{1,4}/,R=/^-?\d+/,z=/^-?\d/,I=/^-?\d{1,2}/,L=/^-?\d{1,3}/,$=/^-?\d{1,4}/,N=/^([+-])(\d{2})(\d{2})?|Z/,Z=/^([+-])(\d{2})(\d{2})|Z/,H=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,V=/^([+-])(\d{2}):(\d{2})|Z/,F=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function B(e,t){return e?{value:t(e.value),rest:e.rest}:e}function W(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function U(e,t){var n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};var r="+"===n[1]?1:-1,i=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(i*b.vh+o*b.yJ+a*b.qk),rest:t.slice(n[0].length)}}function Y(e){return W(R,e)}function q(e,t){switch(e){case 1:return W(A,t);case 2:return W(T,t);case 3:return W(_,t);case 4:return W(D,t);default:return W(new RegExp("^\\d{1,"+e+"}"),t)}}function G(e,t){switch(e){case 1:return W(z,t);case 2:return W(I,t);case 3:return W(L,t);case 4:return W($,t);default:return W(new RegExp("^-?\\d{1,"+e+"}"),t)}}function K(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function X(e,t){var n,r=t>0,i=r?t:1-t;if(i<=50)n=e||100;else{var o=i+50;n=e+100*Math.floor(o/100)-(e>=o%100?100:0)}return r?n:1-n}function Q(e){return e%400==0||e%4==0&&e%100!=0}function J(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ee=n(4590),te=n(7760);function ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var re=n(7906);function ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ce(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ue=n(4710);function de(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var he=n(1047);function fe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var me=[31,28,31,30,31,30,31,31,30,31,30,31],ge=[31,29,31,30,31,30,31,31,30,31,30,31];function ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ye=n(4072);function be(e,t,n){var r,i,a,s,l,c,h,f;(0,d.Z)(2,arguments);var p=(0,ye.j)(),m=(0,u.Z)(null!==(r=null!==(i=null!==(a=null!==(s=null==n?void 0:n.weekStartsOn)&&void 0!==s?s:null==n||null===(l=n.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==a?a:p.weekStartsOn)&&void 0!==i?i:null===(h=p.locale)||void 0===h||null===(f=h.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==r?r:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,o.default)(e),v=(0,u.Z)(t),y=g.getUTCDay(),b=v%7,w=(b+7)%7,x=(w0}set(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var i=X(n.year,r);return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}var o="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}},Y:new class extends v{constructor(){super(...arguments),ne(this,"priority",130),ne(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return B(q(4,e),r);case"Yo":return B(n.ordinalNumber(e,{unit:"year"}),r);default:return B(q(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){var i=(0,ee.Z)(e,r);if(n.isTwoDigitYear){var o=X(n.year,i);return e.setUTCFullYear(o,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,te.Z)(e,r)}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),(0,te.Z)(e,r)}},R:new class extends v{constructor(){super(...arguments),ie(this,"priority",130),ie(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(e,t){return G("R"===t?4:t.length,e)}set(e,t,n){var r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),(0,re.Z)(r)}},u:new class extends v{constructor(){super(...arguments),oe(this,"priority",130),oe(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(e,t){return G("u"===t?4:t.length,e)}set(e,t,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}},Q:new class extends v{constructor(){super(...arguments),ae(this,"priority",120),ae(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"Q":case"QQ":return q(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}},q:new class extends v{constructor(){super(...arguments),se(this,"priority",120),se(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"q":case"qq":return q(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}},M:new class extends v{constructor(){super(...arguments),le(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),le(this,"priority",110)}parse(e,t,n){var r=function(e){return e-1};switch(t){case"M":return B(W(w,e),r);case"MM":return B(q(2,e),r);case"Mo":return B(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}},L:new class extends v{constructor(){super(...arguments),ce(this,"priority",110),ce(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(e,t,n){var r=function(e){return e-1};switch(t){case"L":return B(W(w,e),r);case"LL":return B(q(2,e),r);case"Lo":return B(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}},w:new class extends v{constructor(){super(...arguments),de(this,"priority",100),de(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(e,t,n){switch(t){case"w":return W(S,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return q(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return(0,te.Z)(function(e,t,n){(0,d.Z)(2,arguments);var r=(0,o.default)(e),i=(0,u.Z)(t),a=(0,ue.Z)(r,n)-i;return r.setUTCDate(r.getUTCDate()-7*a),r}(e,n,r),r)}},I:new class extends v{constructor(){super(...arguments),fe(this,"priority",100),fe(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(e,t,n){switch(t){case"I":return W(S,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return q(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return(0,re.Z)(function(e,t){(0,d.Z)(2,arguments);var n=(0,o.default)(e),r=(0,u.Z)(t),i=(0,he.Z)(n)-r;return n.setUTCDate(n.getUTCDate()-7*i),n}(e,n))}},d:new class extends v{constructor(){super(...arguments),pe(this,"priority",90),pe(this,"subPriority",1),pe(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"d":return W(x,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return q(t.length,e)}}validate(e,t){var n=Q(e.getUTCFullYear()),r=e.getUTCMonth();return n?t>=1&&t<=ge[r]:t>=1&&t<=me[r]}set(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}},D:new class extends v{constructor(){super(...arguments),ve(this,"priority",90),ve(this,"subpriority",1),ve(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(e,t,n){switch(t){case"D":case"DD":return W(k,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return q(t.length,e)}}validate(e,t){return Q(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}},E:new class extends v{constructor(){super(...arguments),we(this,"priority",90),we(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=be(e,n,r)).setUTCHours(0,0,0,0),e}},e:new class extends v{constructor(){super(...arguments),xe(this,"priority",90),xe(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return B(q(t.length,e),i);case"eo":return B(n.ordinalNumber(e,{unit:"day"}),i);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=be(e,n,r)).setUTCHours(0,0,0,0),e}},c:new class extends v{constructor(){super(...arguments),ke(this,"priority",90),ke(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return B(q(t.length,e),i);case"co":return B(n.ordinalNumber(e,{unit:"day"}),i);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=be(e,n,r)).setUTCHours(0,0,0,0),e}},i:new class extends v{constructor(){super(...arguments),Se(this,"priority",90),Se(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(e,t,n){var r=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return q(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return B(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return B(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return B(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return B(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return e=function(e,t){(0,d.Z)(2,arguments);var n=(0,u.Z)(t);n%7==0&&(n-=7);var r=1,i=(0,o.default)(e),a=i.getUTCDay(),s=((n%7+7)%7=1&&t<=12}set(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}},H:new class extends v{constructor(){super(...arguments),Pe(this,"priority",70),Pe(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(e,t,n){switch(t){case"H":return W(C,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return q(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setUTCHours(n,0,0,0),e}},K:new class extends v{constructor(){super(...arguments),Ee(this,"priority",70),Ee(this,"incompatibleTokens",["h","H","k","t","T"])}parse(e,t,n){switch(t){case"K":return W(O,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return q(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}},k:new class extends v{constructor(){super(...arguments),Ae(this,"priority",70),Ae(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(e,t,n){switch(t){case"k":return W(j,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return q(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){var r=n<=24?n%24:n;return e.setUTCHours(r,0,0,0),e}},m:new class extends v{constructor(){super(...arguments),Te(this,"priority",60),Te(this,"incompatibleTokens",["t","T"])}parse(e,t,n){switch(t){case"m":return W(P,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return q(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setUTCMinutes(n,0,0),e}},s:new class extends v{constructor(){super(...arguments),_e(this,"priority",50),_e(this,"incompatibleTokens",["t","T"])}parse(e,t,n){switch(t){case"s":return W(E,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return q(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setUTCSeconds(n,0),e}},S:new class extends v{constructor(){super(...arguments),De(this,"priority",30),De(this,"incompatibleTokens",["t","T"])}parse(e,t){return B(q(t.length,e),(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))}set(e,t,n){return e.setUTCMilliseconds(n),e}},X:new class extends v{constructor(){super(...arguments),Re(this,"priority",10),Re(this,"incompatibleTokens",["t","T","x"])}parse(e,t){switch(t){case"X":return U(N,e);case"XX":return U(Z,e);case"XXXX":return U(H,e);case"XXXXX":return U(F,e);default:return U(V,e)}}set(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}},x:new class extends v{constructor(){super(...arguments),ze(this,"priority",10),ze(this,"incompatibleTokens",["t","T","X"])}parse(e,t){switch(t){case"x":return U(N,e);case"xx":return U(Z,e);case"xxxx":return U(H,e);case"xxxxx":return U(F,e);default:return U(V,e)}}set(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}},t:new class extends v{constructor(){super(...arguments),Ie(this,"priority",40),Ie(this,"incompatibleTokens","*")}parse(e){return Y(e)}set(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}},T:new class extends v{constructor(){super(...arguments),Le(this,"priority",20),Le(this,"incompatibleTokens","*")}parse(e){return Y(e)}set(e,t,n){return[new Date(n),{timestampIsSet:!0}]}}},Ne=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ze=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,He=/^'([^]*?)'?$/,Ve=/''/g,Fe=/\S/,Be=/[a-zA-Z]/;function We(e,t,n,h){var f,p,g,v,y,b,w,x,k,S,C,j,O,M,P,E,A,T;(0,d.Z)(3,arguments);var _=String(e),D=String(t),R=(0,ye.j)(),z=null!==(f=null!==(p=null==h?void 0:h.locale)&&void 0!==p?p:R.locale)&&void 0!==f?f:r.Z;if(!z.match)throw new RangeError("locale must contain match property");var I=(0,u.Z)(null!==(g=null!==(v=null!==(y=null!==(b=null==h?void 0:h.firstWeekContainsDate)&&void 0!==b?b:null==h||null===(w=h.locale)||void 0===w||null===(x=w.options)||void 0===x?void 0:x.firstWeekContainsDate)&&void 0!==y?y:R.firstWeekContainsDate)&&void 0!==v?v:null===(k=R.locale)||void 0===k||null===(S=k.options)||void 0===S?void 0:S.firstWeekContainsDate)&&void 0!==g?g:1);if(!(I>=1&&I<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var L=(0,u.Z)(null!==(C=null!==(j=null!==(O=null!==(M=null==h?void 0:h.weekStartsOn)&&void 0!==M?M:null==h||null===(P=h.locale)||void 0===P||null===(E=P.options)||void 0===E?void 0:E.weekStartsOn)&&void 0!==O?O:R.weekStartsOn)&&void 0!==j?j:null===(A=R.locale)||void 0===A||null===(T=A.options)||void 0===T?void 0:T.weekStartsOn)&&void 0!==C?C:0);if(!(L>=0&&L<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===D)return""===_?(0,o.default)(n):new Date(NaN);var $={firstWeekContainsDate:I,weekStartsOn:L,locale:z},N=[new m],Z=D.match(Ze).map((function(e){var t=e[0];return t in s.Z?(0,s.Z[t])(e,z.formatLong):e})).join("").match(Ne),H=[],V=function(t){null!=h&&h.useAdditionalWeekYearTokens||!(0,c.Do)(t)||(0,c.qp)(t,D,e),null!=h&&h.useAdditionalDayOfYearTokens||!(0,c.Iu)(t)||(0,c.qp)(t,D,e);var n=t[0],r=$e[n];if(r){var i=r.incompatibleTokens;if(Array.isArray(i)){var o=H.find((function(e){return i.includes(e.token)||e.token===n}));if(o)throw new RangeError("The format string mustn't contain `".concat(o.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===r.incompatibleTokens&&H.length>0)throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));H.push({token:n,fullToken:t});var a=r.run(_,t,z.match,$);if(!a)return F=t,{v:new Date(NaN)};N.push(a.setter),_=a.rest}else{if(n.match(Be))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if("''"===t?t="'":"'"===n&&(t=Ue(t)),0!==_.indexOf(t))return F=t,{v:new Date(NaN)};_=_.slice(t.length)}F=t};for(var F of Z){var B=V(F);if("object"==typeof B)return B.v}if(_.length>0&&Fe.test(_))return new Date(NaN);var W=N.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return N.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),U=(0,o.default)(n);if(isNaN(U.getTime()))return new Date(NaN);var Y=(0,i.Z)(U,(0,l.Z)(U)),q={};for(var G of W){if(!G.validate(Y,$))return new Date(NaN);var K=G.set(Y,q,$);Array.isArray(K)?(Y=K[0],a(q,K[1])):Y=K}return Y}function Ue(e){return e.match(He)[1].replace(Ve,"'")}},5162:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(6896),i=n(8755),o=n(506);function a(e,t){var n;(0,i.Z)(1,arguments);var r=(0,o.Z)(null!==(n=null==t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var a,s=d(e);if(s.date){var l=h(s.date,r);a=f(l.restDateString,l.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);var c,u=a.getTime(),p=0;if(s.time&&(p=m(s.time),isNaN(p)))return new Date(NaN);if(!s.timezone){var g=new Date(u+p),y=new Date(0);return y.setFullYear(g.getUTCFullYear(),g.getUTCMonth(),g.getUTCDate()),y.setHours(g.getUTCHours(),g.getUTCMinutes(),g.getUTCSeconds(),g.getUTCMilliseconds()),y}return c=v(s.timezone),isNaN(c)?new Date(NaN):new Date(u+p+c)}var s={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},l=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,c=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,u=/^([+-])(\d{2})(?::?(\d{2}))?$/;function d(e){var t,n={},r=e.split(s.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],s.timeZoneDelimiter.test(n.date)&&(n.date=e.split(s.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var i=s.timezone.exec(t);i?(n.time=t.replace(i[1],""),n.timezone=i[1]):n.time=t}return n}function h(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:null===o?i:100*o,restDateString:e.slice((r[1]||r[2]).length)}}function f(e,t){if(null===t)return new Date(NaN);var n=e.match(l);if(!n)return new Date(NaN);var r=!!n[4],i=p(n[1]),o=p(n[2])-1,a=p(n[3]),s=p(n[4]),c=p(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,c)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var i=r.getUTCDay()||7,o=7*(t-1)+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}(t,s,c):new Date(NaN);var u=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(y[t]||(b(e)?29:28))}(t,o,a)&&function(e,t){return t>=1&&t<=(b(e)?366:365)}(t,i)?(u.setUTCFullYear(t,o,Math.max(i,a)),u):new Date(NaN)}function p(e){return e?parseInt(e):1}function m(e){var t=e.match(c);if(!t)return NaN;var n=g(t[1]),i=g(t[2]),o=g(t[3]);return function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,i,o)?n*r.vh+i*r.yJ+1e3*o:NaN}function g(e){return e&&parseFloat(e.replace(",","."))||0}function v(e){if("Z"===e)return 0;var t=e.match(u);if(!t)return 0;var n="+"===t[1]?-1:1,i=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,o)?n*(i*r.vh+o*r.yJ):NaN}var y=[31,null,31,30,31,30,31,31,30,31,30,31];function b(e){return e%400==0||e%4==0&&e%100!=0}},6561:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(506),i=n(4265),o=n(8755);function a(e,t){(0,o.Z)(2,arguments);var n=(0,i.default)(e),a=(0,r.Z)(t);return n.setHours(a),n}},9382:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(506),i=n(4265),o=n(8755);function a(e,t){(0,o.Z)(2,arguments);var n=(0,i.default)(e),a=(0,r.Z)(t);return n.setMinutes(a),n}},6435:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(506),i=n(4265),o=n(8755);function a(e){(0,o.Z)(1,arguments);var t=(0,i.default)(e),n=t.getFullYear(),r=t.getMonth(),a=new Date(0);return a.setFullYear(n,r+1,0),a.setHours(0,0,0,0),a.getDate()}function s(e,t){(0,o.Z)(2,arguments);var n=(0,i.default)(e),s=(0,r.Z)(t),l=n.getFullYear(),c=n.getDate(),u=new Date(0);u.setFullYear(l,s,15),u.setHours(0,0,0,0);var d=a(u);return n.setMonth(s,Math.min(c,d)),n}},64:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(506),i=n(4265),o=n(6435),a=n(8755);function s(e,t){(0,a.Z)(2,arguments);var n=(0,i.default)(e),s=(0,r.Z)(t),l=Math.floor(n.getMonth()/3)+1,c=s-l;return(0,o.default)(n,n.getMonth()+3*c)}},4018:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(506),i=n(4265),o=n(8755);function a(e,t){(0,o.Z)(2,arguments);var n=(0,i.default)(e),a=(0,r.Z)(t);return n.setSeconds(a),n}},6042:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(506),i=n(4265),o=n(8755);function a(e,t){(0,o.Z)(2,arguments);var n=(0,i.default)(e),a=(0,r.Z)(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(a),n)}},3817:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(4265),i=n(8755);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e);return t.setHours(0,0,0,0),t}},9102:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(4265),i=n(8755);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e);return t.setDate(1),t.setHours(0,0,0,0),t}},7438:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(4265),i=n(8755);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=t.getMonth(),o=n-n%3;return t.setMonth(o,1),t.setHours(0,0,0,0),t}},6395:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(4265),i=n(506),o=n(8755),a=n(4072);function s(e,t){var n,s,l,c,u,d,h,f;(0,o.Z)(1,arguments);var p=(0,a.j)(),m=(0,i.Z)(null!==(n=null!==(s=null!==(l=null!==(c=null==t?void 0:t.weekStartsOn)&&void 0!==c?c:null==t||null===(u=t.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==l?l:p.weekStartsOn)&&void 0!==s?s:null===(h=p.locale)||void 0===h||null===(f=h.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==n?n:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,r.default)(e),v=g.getDay(),y=(v{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(4265),i=n(8755);function o(e){(0,i.Z)(1,arguments);var t=(0,r.default)(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}},2200:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(1539),i=n(8755),o=n(506);function a(e,t){(0,i.Z)(2,arguments);var n=(0,o.Z)(t);return(0,r.default)(e,-n)}},4746:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(9127),i=n(8755),o=n(506);function a(e,t){(0,i.Z)(2,arguments);var n=(0,o.Z)(t);return(0,r.default)(e,-n)}},9071:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3429),i=n(8755),o=n(506);function a(e,t){(0,i.Z)(2,arguments);var n=(0,o.Z)(t);return(0,r.Z)(e,-n)}},1663:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(6966),i=n(8755),o=n(506);function a(e,t){(0,i.Z)(2,arguments);var n=(0,o.Z)(t);return(0,r.default)(e,-n)}},4246:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(506),i=n(5886),o=n(8755);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.default)(e,-n)}},7426:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(506),i=n(5863),o=n(8755);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.default)(e,-n)}},5333:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(506),i=n(9623),o=n(8755);function a(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.default)(e,-n)}},4265:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(8755);function i(e){(0,r.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}},6850:e=>{function t(e,t,n){var r,i,o,a,s;function l(){var c=Date.now()-a;c=0?r=setTimeout(l,t-c):(r=null,n||(s=e.apply(o,i),o=i=null))}null==t&&(t=100);var c=function(){o=this,i=arguments,a=Date.now();var c=n&&!r;return r||(r=setTimeout(l,t)),c&&(s=e.apply(o,i),o=i=null),s};return c.clear=function(){r&&(clearTimeout(r),r=null)},c.flush=function(){r&&(s=e.apply(o,i),o=i=null,clearTimeout(r),r=null)},c}t.debounce=t,e.exports=t},4944:function(){!function(){"use strict";function e(e){var t=!0,n=!1,r=null,i={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function o(e){return!!(e&&e!==document&&"HTML"!==e.nodeName&&"BODY"!==e.nodeName&&"classList"in e&&"contains"in e.classList)}function a(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!i[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}function s(e){e.classList.contains("focus-visible")||(e.classList.add("focus-visible"),e.setAttribute("data-focus-visible-added",""))}function l(e){e.hasAttribute("data-focus-visible-added")&&(e.classList.remove("focus-visible"),e.removeAttribute("data-focus-visible-added"))}function c(n){n.metaKey||n.altKey||n.ctrlKey||(o(e.activeElement)&&s(e.activeElement),t=!0)}function u(e){t=!1}function d(e){o(e.target)&&(t||a(e.target))&&s(e.target)}function h(e){o(e.target)&&(e.target.classList.contains("focus-visible")||e.target.hasAttribute("data-focus-visible-added"))&&(n=!0,window.clearTimeout(r),r=window.setTimeout((function(){n=!1}),100),l(e.target))}function f(e){"hidden"===document.visibilityState&&(n&&(t=!0),p())}function p(){document.addEventListener("mousemove",g),document.addEventListener("mousedown",g),document.addEventListener("mouseup",g),document.addEventListener("pointermove",g),document.addEventListener("pointerdown",g),document.addEventListener("pointerup",g),document.addEventListener("touchmove",g),document.addEventListener("touchstart",g),document.addEventListener("touchend",g)}function m(){document.removeEventListener("mousemove",g),document.removeEventListener("mousedown",g),document.removeEventListener("mouseup",g),document.removeEventListener("pointermove",g),document.removeEventListener("pointerdown",g),document.removeEventListener("pointerup",g),document.removeEventListener("touchmove",g),document.removeEventListener("touchstart",g),document.removeEventListener("touchend",g)}function g(e){e.target.nodeName&&"html"===e.target.nodeName.toLowerCase()||(t=!1,m())}document.addEventListener("keydown",c,!0),document.addEventListener("mousedown",u,!0),document.addEventListener("pointerdown",u,!0),document.addEventListener("touchstart",u,!0),document.addEventListener("visibilitychange",f,!0),p(),e.addEventListener("focus",d,!0),e.addEventListener("blur",h,!0),e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.host?e.host.setAttribute("data-js-focus-visible",""):e.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if("undefined"!=typeof window&&"undefined"!=typeof document){var t;window.applyFocusVisiblePolyfill=e;try{t=new CustomEvent("focus-visible-polyfill-ready")}catch(e){(t=document.createEvent("CustomEvent")).initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(t)}"undefined"!=typeof document&&e(document)}()},1332:(e,t,n)=>{var r;!function(i,o,a,s){"use strict";var l,c=["","webkit","Moz","MS","ms","o"],u=o.createElement("div"),d=Math.round,h=Math.abs,f=Date.now;function p(e,t,n){return setTimeout(x(e,n),t)}function m(e,t,n){return!!Array.isArray(e)&&(g(e,n[t],n),!0)}function g(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==s)for(r=0;r\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=i.console&&(i.console.warn||i.console.log);return o&&o.call(i.console,r,n),e.apply(this,arguments)}}l="function"!=typeof Object.assign?function(e){if(e===s||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n-1}function P(e){return e.trim().split(/\s+/g)}function E(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;rn[t]})):r.sort()),r}function _(e,t){for(var n,r,i=t[0].toUpperCase()+t.slice(1),o=0;o1&&!n.firstMultiple?n.firstMultiple=W(t):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,l=a?a.center:o.center,c=t.center=U(r);t.timeStamp=f(),t.deltaTime=t.timeStamp-o.timeStamp,t.angle=K(l,c),t.distance=G(l,c),function(e,t){var n=t.center,r=e.offsetDelta||{},i=e.prevDelta||{},o=e.prevInput||{};1!==t.eventType&&4!==o.eventType||(i=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y});t.deltaX=i.x+(n.x-r.x),t.deltaY=i.y+(n.y-r.y)}(n,t),t.offsetDirection=q(t.deltaX,t.deltaY);var u=Y(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=u.x,t.overallVelocityY=u.y,t.overallVelocity=h(u.x)>h(u.y)?u.x:u.y,t.scale=a?(d=a.pointers,p=r,G(p[0],p[1],V)/G(d[0],d[1],V)):1,t.rotation=a?function(e,t){return K(t[1],t[0],V)+K(e[1],e[0],V)}(a.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,r,i,o,a=e.lastInterval||t,l=t.timeStamp-a.timeStamp;if(8!=t.eventType&&(l>25||a.velocity===s)){var c=t.deltaX-a.deltaX,u=t.deltaY-a.deltaY,d=Y(l,c,u);r=d.x,i=d.y,n=h(d.x)>h(d.y)?d.x:d.y,o=q(c,u),e.lastInterval=t}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;t.velocity=n,t.velocityX=r,t.velocityY=i,t.direction=o}(n,t);var d,p;var m=e.element;O(t.srcEvent.target,m)&&(m=t.srcEvent.target);t.target=m}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function W(e){for(var t=[],n=0;n=h(t)?e<0?2:4:t<0?8:16}function G(e,t,n){n||(n=H);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return Math.sqrt(r*r+i*i)}function K(e,t,n){n||(n=H);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return 180*Math.atan2(i,r)/Math.PI}F.prototype={handler:function(){},init:function(){this.evEl&&C(this.element,this.evEl,this.domHandler),this.evTarget&&C(this.target,this.evTarget,this.domHandler),this.evWin&&C(R(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&j(this.element,this.evEl,this.domHandler),this.evTarget&&j(this.target,this.evTarget,this.domHandler),this.evWin&&j(R(this.element),this.evWin,this.domHandler)}};var X={mousedown:1,mousemove:2,mouseup:4},Q="mousedown",J="mousemove mouseup";function ee(){this.evEl=Q,this.evWin=J,this.pressed=!1,F.apply(this,arguments)}w(ee,F,{handler:function(e){var t=X[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:N,srcEvent:e}))}});var te={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},ne={2:$,3:"pen",4:N,5:"kinect"},re="pointerdown",ie="pointermove pointerup pointercancel";function oe(){this.evEl=re,this.evWin=ie,F.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}i.MSPointerEvent&&!i.PointerEvent&&(re="MSPointerDown",ie="MSPointerMove MSPointerUp MSPointerCancel"),w(oe,F,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),i=te[r],o=ne[e.pointerType]||e.pointerType,a=o==$,s=E(t,e.pointerId,"pointerId");1&i&&(0===e.button||a)?s<0&&(t.push(e),s=t.length-1):12&i&&(n=!0),s<0||(t[s]=e,this.callback(this.manager,i,{pointers:t,changedPointers:[e],pointerType:o,srcEvent:e}),n&&t.splice(s,1))}});var ae={touchstart:1,touchmove:2,touchend:4,touchcancel:8},se="touchstart",le="touchstart touchmove touchend touchcancel";function ce(){this.evTarget=se,this.evWin=le,this.started=!1,F.apply(this,arguments)}function ue(e,t){var n=A(e.touches),r=A(e.changedTouches);return 12&t&&(n=T(n.concat(r),"identifier",!0)),[n,r]}w(ce,F,{handler:function(e){var t=ae[e.type];if(1===t&&(this.started=!0),this.started){var n=ue.call(this,e,t);12&t&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:$,srcEvent:e})}}});var de={touchstart:1,touchmove:2,touchend:4,touchcancel:8},he="touchstart touchmove touchend touchcancel";function fe(){this.evTarget=he,this.targetIds={},F.apply(this,arguments)}function pe(e,t){var n=A(e.touches),r=this.targetIds;if(3&t&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,a=A(e.changedTouches),s=[],l=this.target;if(o=n.filter((function(e){return O(e.target,l)})),1===t)for(i=0;i-1&&r.splice(e,1)}),2500)}}function ye(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n<8&&r(t.options.event+Te(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=8&&r(t.options.event+Te(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=Ee},canEmit:function(){for(var e=0;et.threshold&&i&t.direction},attrTest:function(e){return Re.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=_e(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),w(Ie,Re,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Ce]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),w(Le,Ae,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[ke]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distancet.time;if(this._input=e,!r||!n||12&e.eventType&&!i)this.reset();else if(1&e.eventType)this.reset(),this._timer=p((function(){this.state=8,this.tryEmit()}),t.time,this);else if(4&e.eventType)return 8;return Ee},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=f(),this.manager.emit(this.options.event,this._input)))}}),w($e,Re,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Ce]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),w(Ne,Re,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return ze.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return 30&n?t=e.overallVelocity:6&n?t=e.overallVelocityX:n&Z&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&h(t)>this.options.velocity&&4&e.eventType},emit:function(e){var t=_e(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),w(Ze,Ae,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Se]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance{"use strict";var r=n(4257),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var i=f(n);i&&i!==p&&e(t,i,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case h:case g:case m:case l:return e;default:return t}}case i:return t}}}function k(e){return x(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=h,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return k(e)||x(e)===u},t.isConcurrentMode=k,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===h},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===h||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},4257:(e,t,n)=>{"use strict";e.exports=n(4325)},4097:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getFontEmbedCSS:()=>X,toBlob:()=>K,toCanvas:()=>U,toJpeg:()=>G,toPixelData:()=>Y,toPng:()=>q,toSvg:()=>B});var r=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const i="application/font-woff",o="image/jpeg",a={woff:i,woff2:i,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:o,jpeg:o,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"};function s(e){const t=function(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}(e).toLowerCase();return a[t]||""}function l(e){return-1!==e.search(/^(data:)/)}function c(e,t){return`data:${t};base64,${e}`}const u=function(){let e=0;return()=>(e+=1,`u${`0000${(Math.random()*Math.pow(36,4)<<0).toString(36)}`.slice(-4)}${e}`)}();function d(e){const t=[];for(let n=0,r=e.length;ne.toBlob(t))):new Promise((t=>{const n=window.atob(e.toDataURL().split(",")[1]),r=n.length,i=new Uint8Array(r);for(let e=0;e{const r=new Image;r.onload=()=>t(r),r.onerror=n,r.crossOrigin="anonymous",r.decoding="sync",r.src=e}))}function m(e,t,n){return r(this,void 0,void 0,(function*(){const i="http://www.w3.org/2000/svg",o=document.createElementNS(i,"svg"),a=document.createElementNS(i,"foreignObject");return o.setAttribute("width",`${t}`),o.setAttribute("height",`${n}`),o.setAttribute("viewBox",`0 0 ${t} ${n}`),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.setAttribute("x","0"),a.setAttribute("y","0"),a.setAttribute("externalResourcesRequired","true"),o.appendChild(a),a.appendChild(e),function(e){return r(this,void 0,void 0,(function*(){return Promise.resolve().then((()=>(new XMLSerializer).serializeToString(e))).then(encodeURIComponent).then((e=>`data:image/svg+xml;charset=utf-8,${e}`))}))}(o)}))}const g={};function v(e,t){const n=function(e){let t=e.replace(/\?.*/,"");return/ttf|otf|eot|woff2?/i.test(t)&&(t=t.replace(/.*\//,"")),t}(e);if(null!=g[n])return g[n];t.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+(new Date).getTime());const r=window.fetch(e).then((e=>e.blob().then((t=>({blob:t,contentType:e.headers.get("Content-Type")||""}))))).then((({blob:e,contentType:t})=>new Promise(((n,r)=>{const i=new FileReader;i.onloadend=()=>n({contentType:t,blob:i.result}),i.onerror=r,i.readAsDataURL(e)})))).then((({blob:e,contentType:t})=>{return{contentType:t,blob:(n=e,n.split(/,/)[1])};var n})).catch((n=>{let r="";if(t.imagePlaceholder){const e=t.imagePlaceholder.split(/,/);e&&e[1]&&(r=e[1])}let i=`Failed to fetch resource: ${e}`;return n&&(i="string"==typeof n?n:n.message),i&&console.error(i),{blob:r,contentType:""}}));return g[n]=r,r}function y(e,t,n){const r=`.${e}:${t}`,i=n.cssText?function(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}(n):function(e){return d(e).map((t=>`${t}: ${e.getPropertyValue(t)}${e.getPropertyPriority(t)?" !important":""};`)).join(" ")}(n);return document.createTextNode(`${r}{${i}}`)}function b(e,t,n){const r=window.getComputedStyle(e,n),i=r.getPropertyValue("content");if(""===i||"none"===i)return;const o=u();try{t.className=`${t.className} ${o}`}catch(e){return}const a=document.createElement("style");a.appendChild(y(o,n,r)),t.appendChild(a)}var w=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};function x(e,t){return w(this,void 0,void 0,(function*(){return e instanceof HTMLCanvasElement?function(e){return w(this,void 0,void 0,(function*(){const t=e.toDataURL();return"data:,"===t?Promise.resolve(e.cloneNode(!1)):p(t)}))}(e):e instanceof HTMLVideoElement&&e.poster?function(e,t){return w(this,void 0,void 0,(function*(){return Promise.resolve(e.poster).then((e=>v(e,t))).then((t=>c(t.blob,s(e.poster)||t.contentType))).then((e=>p(e)))}))}(e,t):Promise.resolve(e.cloneNode(!1))}))}function k(e,t){return w(this,void 0,void 0,(function*(){return t instanceof Element?Promise.resolve().then((()=>function(e,t){const n=window.getComputedStyle(e),r=t.style;r&&(n.cssText?r.cssText=n.cssText:d(n).forEach((e=>{r.setProperty(e,n.getPropertyValue(e),n.getPropertyPriority(e))})))}(e,t))).then((()=>function(e,t){b(e,t,":before"),b(e,t,":after")}(e,t))).then((()=>function(e,t){e instanceof HTMLTextAreaElement&&(t.innerHTML=e.value),e instanceof HTMLInputElement&&t.setAttribute("value",e.value)}(e,t))).then((()=>t)):Promise.resolve(t)}))}function S(e,t,n){return w(this,void 0,void 0,(function*(){return n||!t.filter||t.filter(e)?Promise.resolve(e).then((e=>x(e,t))).then((n=>function(e,t,n){var r;return w(this,void 0,void 0,(function*(){const i=null!=(o=e).tagName&&"SLOT"===o.tagName.toUpperCase()&&e.assignedNodes?d(e.assignedNodes()):d((null!==(r=e.shadowRoot)&&void 0!==r?r:e).childNodes);var o;return 0===i.length||e instanceof HTMLVideoElement?Promise.resolve(t):i.reduce(((e,r)=>e.then((()=>S(r,n))).then((e=>{e&&t.appendChild(e)}))),Promise.resolve()).then((()=>t))}))}(e,n,t))).then((t=>k(e,t))):Promise.resolve(null)}))}var C=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const j=/url\((['"]?)([^'"]+?)\1\)/g,O=/url\([^)]+\)\s*format\((["'])([^"']+)\1\)/g,M=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function P(e){const t=[];return e.replace(j,((e,n,r)=>(t.push(r),e))),t.filter((e=>!l(e)))}function E(e,t,n,r,i){const o=n?function(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const n=document.implementation.createHTMLDocument(),r=n.createElement("base"),i=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(i),t&&(r.href=t),i.href=e,i.href}(t,n):t;return Promise.resolve(o).then((e=>i?i(e):v(e,r))).then((e=>"string"==typeof e?c(e,s(t)):c(e.blob,s(t)||e.contentType))).then((n=>e.replace(function(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}(t),`$1${n}$3`))).then((e=>e),(()=>o))}function A(e){return-1!==e.search(j)}function T(e,t,n){return C(this,void 0,void 0,(function*(){if(!A(e))return Promise.resolve(e);const r=function(e,{preferredFontFormat:t}){return t?e.replace(M,(e=>{for(;;){const[n,,r]=O.exec(e)||[];if(!r)return"";if(r===t)return`src: ${n};`}})):e}(e,n);return Promise.resolve(r).then(P).then((e=>e.reduce(((e,r)=>e.then((e=>E(e,r,t,n)))),Promise.resolve(r))))}))}var _=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};function D(e,t){return _(this,void 0,void 0,(function*(){return e instanceof Element?Promise.resolve(e).then((e=>function(e,t){var n;return _(this,void 0,void 0,(function*(){const r=null===(n=e.style)||void 0===n?void 0:n.getPropertyValue("background");return r?Promise.resolve(r).then((e=>T(e,null,t))).then((t=>(e.style.setProperty("background",t,e.style.getPropertyPriority("background")),e))):Promise.resolve(e)}))}(e,t))).then((e=>function(e,t){return _(this,void 0,void 0,(function*(){if((!(e instanceof HTMLImageElement)||l(e.src))&&(!(e instanceof SVGImageElement)||l(e.href.baseVal)))return Promise.resolve(e);const n=e instanceof HTMLImageElement?e.src:e.href.baseVal;return Promise.resolve(n).then((e=>v(e,t))).then((e=>c(e.blob,s(n)||e.contentType))).then((t=>new Promise(((n,r)=>{e.onload=n,e.onerror=r,e instanceof HTMLImageElement?(e.srcset="",e.src=t):e.href.baseVal=t})))).then((()=>e),(()=>e))}))}(e,t))).then((e=>function(e,t){return _(this,void 0,void 0,(function*(){const n=d(e.childNodes).map((e=>D(e,t)));return Promise.all(n).then((()=>e))}))}(e,t))):Promise.resolve(e)}))}var R=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const z={};function I(e){const t=z[e];if(null!=t)return t;const n=window.fetch(e).then((t=>({url:e,cssText:t.text()})));return z[e]=n,n}function L(e){return R(this,void 0,void 0,(function*(){return e.cssText.then((t=>{let n=t;const r=/url\(["']?([^"')]+)["']?\)/g,i=(n.match(/url\([^)]+\)/g)||[]).map((t=>{let i=t.replace(r,"$1");return i.startsWith("https://")||(i=new URL(i,e.url).href),window.fetch(i).then((e=>e.blob())).then((e=>new Promise(((r,i)=>{const o=new FileReader;o.onloadend=()=>{n=n.replace(t,`url(${o.result})`),r([t,o.result])},o.onerror=i,o.readAsDataURL(e)}))))}));return Promise.all(i).then((()=>n))}))}))}function $(e){if(null==e)return[];const t=[];let n=e.replace(/(\/\*[\s\S]*?\*\/)/gi,"");const r=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const e=r.exec(n);if(null===e)break;t.push(e[0])}n=n.replace(r,"");const i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,o=new RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let e=i.exec(n);if(null===e){if(e=o.exec(n),null===e)break;i.lastIndex=o.lastIndex}else o.lastIndex=i.lastIndex;t.push(e[0])}return t}function N(e){return e.filter((e=>e.type===CSSRule.FONT_FACE_RULE)).filter((e=>A(e.style.getPropertyValue("src"))))}function Z(e){return R(this,void 0,void 0,(function*(){return new Promise(((t,n)=>{null==e.ownerDocument&&n(new Error("Provided element is not within a Document")),t(d(e.ownerDocument.styleSheets))})).then((e=>function(e){return R(this,void 0,void 0,(function*(){const t=[],n=[];return e.forEach((t=>{if("cssRules"in t)try{d(t.cssRules).forEach(((e,r)=>{if(e.type===CSSRule.IMPORT_RULE){let i=r+1;const o=I(e.href).then((e=>e?L(e):"")).then((e=>$(e).forEach((e=>{try{t.insertRule(e,e.startsWith("@import")?i+=1:t.cssRules.length)}catch(t){console.error("Error inserting rule from remote css",{rule:e,error:t})}})))).catch((e=>{console.error("Error loading remote css",e.toString())}));n.push(o)}}))}catch(r){const i=e.find((e=>null==e.href))||document.styleSheets[0];null!=t.href&&n.push(I(t.href).then((e=>e?L(e):"")).then((e=>$(e).forEach((e=>{i.insertRule(e,t.cssRules.length)})))).catch((e=>{console.error("Error loading remote stylesheet",e.toString())}))),console.error("Error inlining remote css file",r.toString())}})),Promise.all(n).then((()=>(e.forEach((e=>{if("cssRules"in e)try{d(e.cssRules).forEach((e=>{t.push(e)}))}catch(t){console.error(`Error while reading CSS rules from ${e.href}`,t.toString())}})),t)))}))}(e))).then(N)}))}function H(e,t){return R(this,void 0,void 0,(function*(){return Z(e).then((e=>Promise.all(e.map((e=>{const n=e.parentStyleSheet?e.parentStyleSheet.href:null;return T(e.cssText,n,t)}))))).then((e=>e.join("\n")))}))}var V=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};function F(e,t={}){const n=t.width||function(e){const t=h(e,"border-left-width"),n=h(e,"border-right-width");return e.clientWidth+t+n}(e),r=t.height||function(e){const t=h(e,"border-top-width"),n=h(e,"border-bottom-width");return e.clientHeight+t+n}(e);return{width:n,height:r}}function B(e,t={}){return V(this,void 0,void 0,(function*(){const{width:n,height:r}=F(e,t);return Promise.resolve(e).then((e=>S(e,t,!0))).then((e=>function(e,t){return R(this,void 0,void 0,(function*(){return(null!=t.fontEmbedCSS?Promise.resolve(t.fontEmbedCSS):H(e,t)).then((t=>{const n=document.createElement("style"),r=document.createTextNode(t);return n.appendChild(r),e.firstChild?e.insertBefore(n,e.firstChild):e.appendChild(n),e}))}))}(e,t))).then((e=>D(e,t))).then((e=>function(e,t){const{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);const r=t.style;return null!=r&&Object.keys(r).forEach((e=>{n[e]=r[e]})),e}(e,t))).then((e=>m(e,n,r)))}))}const W=16384;function U(e,t={}){return V(this,void 0,void 0,(function*(){return B(e,t).then(p).then((n=>{const r=document.createElement("canvas"),i=r.getContext("2d"),o=t.pixelRatio||function(){let e,t;try{t=process}catch(e){}const n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}(),{width:a,height:s}=F(e,t),l=t.canvasWidth||a,c=t.canvasHeight||s;return r.width=l*o,r.height=c*o,t.skipAutoScale||function(e){(e.width>W||e.height>W)&&(e.width>W&&e.height>W?e.width>e.height?(e.height*=W/e.width,e.width=W):(e.width*=W/e.height,e.height=W):e.width>W?(e.height*=W/e.width,e.width=W):(e.width*=W/e.height,e.height=W))}(r),r.style.width=`${l}`,r.style.height=`${c}`,t.backgroundColor&&(i.fillStyle=t.backgroundColor,i.fillRect(0,0,r.width,r.height)),i.drawImage(n,0,0,r.width,r.height),r}))}))}function Y(e,t={}){return V(this,void 0,void 0,(function*(){const{width:n,height:r}=F(e,t);return U(e,t).then((e=>e.getContext("2d").getImageData(0,0,n,r).data))}))}function q(e,t={}){return V(this,void 0,void 0,(function*(){return U(e,t).then((e=>e.toDataURL()))}))}function G(e,t={}){return V(this,void 0,void 0,(function*(){return U(e,t).then((e=>e.toDataURL("image/jpeg",t.quality||1)))}))}function K(e,t={}){return V(this,void 0,void 0,(function*(){return U(e,t).then(f)}))}function X(e,t={}){return V(this,void 0,void 0,(function*(){return H(e,t)}))}},1979:(e,t,n)=>{var r=n(9129),i=n(9047),o=n(3486),a=n(4786),s=n(6444);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var r=n(3708),i=n(6993),o=n(286),a=n(1678),s=n(9743);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var r=n(3203)(n(4362),"Map");e.exports=r},8423:(e,t,n)=>{var r=n(6977),i=n(7474),o=n(727),a=n(3653),s=n(6140);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var r=n(4362).Symbol;e.exports=r},6213:(e,t,n)=>{var r=n(7950);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},1185:(e,t,n)=>{var r=n(2773),i=n(3888),o=n(2299),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},4106:(e,t,n)=>{var r=n(3626),i=n(9249),o=n(71),a=n(1214),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,h=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?h:s).test(a(e))}},1741:(e,t,n)=>{var r=n(4362)["__core-js_shared__"];e.exports=r},8556:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},404:(e,t,n)=>{var r=n(4480);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},3203:(e,t,n)=>{var r=n(4106),i=n(7338);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},3888:(e,t,n)=>{var r=n(2773),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},7338:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},9129:(e,t,n)=>{var r=n(6326);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},9047:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},3486:(e,t,n)=>{var r=n(6326),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},4786:(e,t,n)=>{var r=n(6326),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},6444:(e,t,n)=>{var r=n(6326);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},4480:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},9249:(e,t,n)=>{var r,i=n(1741),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},3708:e=>{e.exports=function(){this.__data__=[],this.size=0}},6993:(e,t,n)=>{var r=n(6213),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},286:(e,t,n)=>{var r=n(6213);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},1678:(e,t,n)=>{var r=n(6213);e.exports=function(e){return r(this.__data__,e)>-1}},9743:(e,t,n)=>{var r=n(6213);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},6977:(e,t,n)=>{var r=n(1979),i=n(2768),o=n(4804);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},7474:(e,t,n)=>{var r=n(404);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},727:(e,t,n)=>{var r=n(404);e.exports=function(e){return r(this,e).get(e)}},3653:(e,t,n)=>{var r=n(404);e.exports=function(e){return r(this,e).has(e)}},6140:(e,t,n)=>{var r=n(404);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},6326:(e,t,n)=>{var r=n(3203)(Object,"create");e.exports=r},2299:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},4362:(e,t,n)=>{var r=n(8556),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},1214:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},7950:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},3626:(e,t,n)=>{var r=n(1185),i=n(71);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},71:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},3974:function(e,t,n){var r;e=n.nmd(e),function(){var i,o="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",l=16,c=32,u=64,d=128,h=256,f=1/0,p=9007199254740991,m=NaN,g=4294967295,v=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",c],["partialRight",u],["rearg",h]],y="[object Arguments]",b="[object Array]",w="[object Boolean]",x="[object Date]",k="[object Error]",S="[object Function]",C="[object GeneratorFunction]",j="[object Map]",O="[object Number]",M="[object Object]",P="[object Promise]",E="[object RegExp]",A="[object Set]",T="[object String]",_="[object Symbol]",D="[object WeakMap]",R="[object ArrayBuffer]",z="[object DataView]",I="[object Float32Array]",L="[object Float64Array]",$="[object Int8Array]",N="[object Int16Array]",Z="[object Int32Array]",H="[object Uint8Array]",V="[object Uint8ClampedArray]",F="[object Uint16Array]",B="[object Uint32Array]",W=/\b__p \+= '';/g,U=/\b(__p \+=) '' \+/g,Y=/(__e\(.*?\)|\b__t\)) \+\n'';/g,q=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,K=RegExp(q.source),X=RegExp(G.source),Q=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ie=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(ie.source),ae=/^\s+/,se=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ce=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,he=/[()=,{}\[\]\/\s]/,fe=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,ge=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,we=/^(?:0|[1-9]\d*)$/,xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ke=/($^)/,Se=/['\n\r\u2028\u2029\\]/g,Ce="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",je="\\u2700-\\u27bf",Oe="a-z\\xdf-\\xf6\\xf8-\\xff",Me="A-Z\\xc0-\\xd6\\xd8-\\xde",Pe="\\ufe0e\\ufe0f",Ee="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ae="['’]",Te="[\\ud800-\\udfff]",_e="["+Ee+"]",De="["+Ce+"]",Re="\\d+",ze="[\\u2700-\\u27bf]",Ie="["+Oe+"]",Le="[^\\ud800-\\udfff"+Ee+Re+je+Oe+Me+"]",$e="\\ud83c[\\udffb-\\udfff]",Ne="[^\\ud800-\\udfff]",Ze="(?:\\ud83c[\\udde6-\\uddff]){2}",He="[\\ud800-\\udbff][\\udc00-\\udfff]",Ve="["+Me+"]",Fe="(?:"+Ie+"|"+Le+")",Be="(?:"+Ve+"|"+Le+")",We="(?:['’](?:d|ll|m|re|s|t|ve))?",Ue="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ye="(?:"+De+"|"+$e+")"+"?",qe="[\\ufe0e\\ufe0f]?",Ge=qe+Ye+("(?:\\u200d(?:"+[Ne,Ze,He].join("|")+")"+qe+Ye+")*"),Ke="(?:"+[ze,Ze,He].join("|")+")"+Ge,Xe="(?:"+[Ne+De+"?",De,Ze,He,Te].join("|")+")",Qe=RegExp(Ae,"g"),Je=RegExp(De,"g"),et=RegExp($e+"(?="+$e+")|"+Xe+Ge,"g"),tt=RegExp([Ve+"?"+Ie+"+"+We+"(?="+[_e,Ve,"$"].join("|")+")",Be+"+"+Ue+"(?="+[_e,Ve+Fe,"$"].join("|")+")",Ve+"?"+Fe+"+"+We,Ve+"+"+Ue,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Re,Ke].join("|"),"g"),nt=RegExp("[\\u200d\\ud800-\\udfff"+Ce+Pe+"]"),rt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,it=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ot=-1,at={};at[I]=at[L]=at[$]=at[N]=at[Z]=at[H]=at[V]=at[F]=at[B]=!0,at[y]=at[b]=at[R]=at[w]=at[z]=at[x]=at[k]=at[S]=at[j]=at[O]=at[M]=at[E]=at[A]=at[T]=at[D]=!1;var st={};st[y]=st[b]=st[R]=st[z]=st[w]=st[x]=st[I]=st[L]=st[$]=st[N]=st[Z]=st[j]=st[O]=st[M]=st[E]=st[A]=st[T]=st[_]=st[H]=st[V]=st[F]=st[B]=!0,st[k]=st[S]=st[D]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ct=parseFloat,ut=parseInt,dt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ht="object"==typeof self&&self&&self.Object===Object&&self,ft=dt||ht||Function("return this")(),pt=t&&!t.nodeType&&t,mt=pt&&e&&!e.nodeType&&e,gt=mt&&mt.exports===pt,vt=gt&&dt.process,yt=function(){try{var e=mt&&mt.require&&mt.require("util").types;return e||vt&&vt.binding&&vt.binding("util")}catch(e){}}(),bt=yt&&yt.isArrayBuffer,wt=yt&&yt.isDate,xt=yt&&yt.isMap,kt=yt&&yt.isRegExp,St=yt&&yt.isSet,Ct=yt&&yt.isTypedArray;function jt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ot(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i-1}function _t(e,t,n){for(var r=-1,i=null==e?0:e.length;++r-1;);return n}function tn(e,t){for(var n=e.length;n--&&Ht(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var rn=Ut({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),on=Ut({"&":"&","<":"<",">":">",'"':""","'":"'"});function an(e){return"\\"+lt[e]}function sn(e){return nt.test(e)}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function cn(e,t){return function(n){return e(t(n))}}function un(e,t){for(var n=-1,r=e.length,i=0,o=[];++n",""":'"',"'":"'"});var vn=function e(t){var n,r=(t=null==t?ft:vn.defaults(ft.Object(),t,vn.pick(ft,it))).Array,se=t.Date,Ce=t.Error,je=t.Function,Oe=t.Math,Me=t.Object,Pe=t.RegExp,Ee=t.String,Ae=t.TypeError,Te=r.prototype,_e=je.prototype,De=Me.prototype,Re=t["__core-js_shared__"],ze=_e.toString,Ie=De.hasOwnProperty,Le=0,$e=(n=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Ne=De.toString,Ze=ze.call(Me),He=ft._,Ve=Pe("^"+ze.call(Ie).replace(ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fe=gt?t.Buffer:i,Be=t.Symbol,We=t.Uint8Array,Ue=Fe?Fe.allocUnsafe:i,Ye=cn(Me.getPrototypeOf,Me),qe=Me.create,Ge=De.propertyIsEnumerable,Ke=Te.splice,Xe=Be?Be.isConcatSpreadable:i,et=Be?Be.iterator:i,nt=Be?Be.toStringTag:i,lt=function(){try{var e=po(Me,"defineProperty");return e({},"",{}),e}catch(e){}}(),dt=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,ht=se&&se.now!==ft.Date.now&&se.now,pt=t.setTimeout!==ft.setTimeout&&t.setTimeout,mt=Oe.ceil,vt=Oe.floor,yt=Me.getOwnPropertySymbols,$t=Fe?Fe.isBuffer:i,Ut=t.isFinite,yn=Te.join,bn=cn(Me.keys,Me),wn=Oe.max,xn=Oe.min,kn=se.now,Sn=t.parseInt,Cn=Oe.random,jn=Te.reverse,On=po(t,"DataView"),Mn=po(t,"Map"),Pn=po(t,"Promise"),En=po(t,"Set"),An=po(t,"WeakMap"),Tn=po(Me,"create"),_n=An&&new An,Dn={},Rn=Ho(On),zn=Ho(Mn),In=Ho(Pn),Ln=Ho(En),$n=Ho(An),Nn=Be?Be.prototype:i,Zn=Nn?Nn.valueOf:i,Hn=Nn?Nn.toString:i;function Vn(e){if(is(e)&&!Ya(e)&&!(e instanceof Un)){if(e instanceof Wn)return e;if(Ie.call(e,"__wrapped__"))return Vo(e)}return new Wn(e)}var Fn=function(){function e(){}return function(t){if(!rs(t))return{};if(qe)return qe(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Bn(){}function Wn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Un(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function ur(e,t,n,r,o,a){var s,l=1&t,c=2&t,u=4&t;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!rs(e))return e;var d=Ya(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ie.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Ti(e,s)}else{var h=vo(e),f=h==S||h==C;if(Xa(e))return ji(e,l);if(h==M||h==y||f&&!o){if(s=c||f?{}:bo(e),!l)return c?function(e,t){return _i(e,go(e),t)}(e,function(e,t){return e&&_i(t,zs(t),e)}(s,e)):function(e,t){return _i(e,mo(e),t)}(e,ar(s,e))}else{if(!st[h])return o?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case R:return Oi(e);case w:case x:return new r(+e);case z:return function(e,t){var n=t?Oi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case I:case L:case $:case N:case Z:case H:case V:case F:case B:return Mi(e,n);case j:return new r;case O:case T:return new r(e);case E:return function(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}(e);case A:return new r;case _:return i=e,Zn?Me(Zn.call(i)):{}}var i}(e,h,l)}}a||(a=new Xn);var p=a.get(e);if(p)return p;a.set(e,s),cs(e)?e.forEach((function(r){s.add(ur(r,t,n,r,e,a))})):os(e)&&e.forEach((function(r,i){s.set(i,ur(r,t,n,i,e,a))}));var m=d?i:(u?c?ao:oo:c?zs:Rs)(e);return Mt(m||e,(function(r,i){m&&(r=e[i=r]),rr(s,i,ur(r,t,n,i,e,a))})),s}function dr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Me(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function hr(e,t,n){if("function"!=typeof e)throw new Ae(o);return Ro((function(){e.apply(i,n)}),t)}function fr(e,t,n,r){var i=-1,o=Tt,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=Dt(t,Xt(n))),r?(o=_t,a=!1):t.length>=200&&(o=Jt,a=!1,t=new Kn(t));e:for(;++i-1},qn.prototype.set=function(e,t){var n=this.__data__,r=ir(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Gn.prototype.clear=function(){this.size=0,this.__data__={hash:new Yn,map:new(Mn||qn),string:new Yn}},Gn.prototype.delete=function(e){var t=ho(this,e).delete(e);return this.size-=t?1:0,t},Gn.prototype.get=function(e){return ho(this,e).get(e)},Gn.prototype.has=function(e){return ho(this,e).has(e)},Gn.prototype.set=function(e,t){var n=ho(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Kn.prototype.add=Kn.prototype.push=function(e){return this.__data__.set(e,a),this},Kn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.clear=function(){this.__data__=new qn,this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Xn.prototype.get=function(e){return this.__data__.get(e)},Xn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof qn){var r=n.__data__;if(!Mn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Gn(r)}return n.set(e,t),this.size=n.size,this};var pr=zi(kr),mr=zi(Sr,!0);function gr(e,t){var n=!0;return pr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function vr(e,t,n){for(var r=-1,o=e.length;++r0&&n(s)?t>1?br(s,t-1,n,r,i):Rt(i,s):r||(i[i.length]=s)}return i}var wr=Ii(),xr=Ii(!0);function kr(e,t){return e&&wr(e,t,Rs)}function Sr(e,t){return e&&xr(e,t,Rs)}function Cr(e,t){return At(t,(function(t){return es(e[t])}))}function jr(e,t){for(var n=0,r=(t=xi(t,e)).length;null!=e&&nt}function Er(e,t){return null!=e&&Ie.call(e,t)}function Ar(e,t){return null!=e&&t in Me(e)}function Tr(e,t,n){for(var o=n?_t:Tt,a=e[0].length,s=e.length,l=s,c=r(s),u=1/0,d=[];l--;){var h=e[l];l&&t&&(h=Dt(h,Xt(t))),u=xn(h.length,u),c[l]=!n&&(t||a>=120&&h.length>=120)?new Kn(l&&h):i}h=e[0];var f=-1,p=c[0];e:for(;++f=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Yr(e,t,n){for(var r=-1,i=t.length,o={};++r-1;)s!==e&&Ke.call(s,l,1),Ke.call(e,l,1);return e}function Gr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;xo(i)?Ke.call(e,i,1):fi(e,i)}}return e}function Kr(e,t){return e+vt(Cn()*(t-e+1))}function Xr(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=vt(t/2))&&(e+=e)}while(t);return n}function Qr(e,t){return zo(Eo(e,t,al),e+"")}function Jr(e){return Jn(Fs(e))}function ei(e,t){var n=Fs(e);return $o(n,cr(t,0,n.length))}function ti(e,t,n,r){if(!rs(e))return e;for(var o=-1,a=(t=xi(t,e)).length,s=a-1,l=e;null!=l&&++oo?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i>>1,a=e[o];null!==a&&!ds(a)&&(n?a<=t:a=200){var c=t?null:Xi(e);if(c)return dn(c);a=!1,i=Jt,l=new Kn}else l=t?[]:s;e:for(;++r=r?e:oi(e,t,n)}var Ci=dt||function(e){return ft.clearTimeout(e)};function ji(e,t){if(t)return e.slice();var n=e.length,r=Ue?Ue(n):new e.constructor(n);return e.copy(r),r}function Oi(e){var t=new e.constructor(e.byteLength);return new We(t).set(new We(e)),t}function Mi(e,t){var n=t?Oi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Pi(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,a=ds(e),s=t!==i,l=null===t,c=t==t,u=ds(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!o)return 1;if(!r&&!a&&!u&&e1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&ko(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=Me(t);++r-1?o[a?t[s]:s]:i}}function Hi(e){return io((function(t){var n=t.length,r=n,a=Wn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Ae(o);if(a&&!l&&"wrapper"==lo(s))var l=new Wn([],!0)}for(r=l?r:n;++r1&&b.reverse(),f&&ul))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var h=-1,f=!0,p=2&n?new Kn:i;for(a.set(e,t),a.set(t,e);++h-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Mt(v,(function(n){var r="_."+n[0];t&n[1]&&!Tt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(ue):[]}(r),n)))}function Lo(e){var t=0,n=0;return function(){var r=kn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function $o(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,la(e,n)}));function ma(e){var t=Vn(e);return t.__chain__=!0,t}function ga(e,t){return t(e)}var va=io((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return lr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Un&&xo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ga,args:[o],thisArg:i}),new Wn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)}));var ya=Di((function(e,t,n){Ie.call(e,n)?++e[n]:sr(e,n,1)}));var ba=Zi(Uo),wa=Zi(Yo);function xa(e,t){return(Ya(e)?Mt:pr)(e,uo(t,3))}function ka(e,t){return(Ya(e)?Pt:mr)(e,uo(t,3))}var Sa=Di((function(e,t,n){Ie.call(e,n)?e[n].push(t):sr(e,n,[t])}));var Ca=Qr((function(e,t,n){var i=-1,o="function"==typeof t,a=Ga(e)?r(e.length):[];return pr(e,(function(e){a[++i]=o?jt(t,e,n):_r(e,t,n)})),a})),ja=Di((function(e,t,n){sr(e,n,t)}));function Oa(e,t){return(Ya(e)?Dt:Hr)(e,uo(t,3))}var Ma=Di((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Pa=Qr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&ko(e,t[0],t[1])?t=[]:n>2&&ko(t[0],t[1],t[2])&&(t=[t[0]]),Ur(e,br(t,1),[])})),Ea=ht||function(){return ft.Date.now()};function Aa(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Ji(e,d,i,i,i,i,t)}function Ta(e,t){var n;if("function"!=typeof t)throw new Ae(o);return e=vs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var _a=Qr((function(e,t,n){var r=1;if(n.length){var i=un(n,co(_a));r|=c}return Ji(e,r,t,n,i)})),Da=Qr((function(e,t,n){var r=3;if(n.length){var i=un(n,co(Da));r|=c}return Ji(t,r,e,n,i)}));function Ra(e,t,n){var r,a,s,l,c,u,d=0,h=!1,f=!1,p=!0;if("function"!=typeof e)throw new Ae(o);function m(t){var n=r,o=a;return r=a=i,d=t,l=e.apply(o,n)}function g(e){return d=e,c=Ro(y,t),h?m(e):l}function v(e){var n=e-u;return u===i||n>=t||n<0||f&&e-d>=s}function y(){var e=Ea();if(v(e))return b(e);c=Ro(y,function(e){var n=t-(e-u);return f?xn(n,s-(e-d)):n}(e))}function b(e){return c=i,p&&r?m(e):(r=a=i,l)}function w(){var e=Ea(),n=v(e);if(r=arguments,a=this,u=e,n){if(c===i)return g(u);if(f)return Ci(c),c=Ro(y,t),m(u)}return c===i&&(c=Ro(y,t)),l}return t=bs(t)||0,rs(n)&&(h=!!n.leading,s=(f="maxWait"in n)?wn(bs(n.maxWait)||0,t):s,p="trailing"in n?!!n.trailing:p),w.cancel=function(){c!==i&&Ci(c),d=0,r=u=a=c=i},w.flush=function(){return c===i?l:b(Ea())},w}var za=Qr((function(e,t){return hr(e,1,t)})),Ia=Qr((function(e,t,n){return hr(e,bs(t)||0,n)}));function La(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ae(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(La.Cache||Gn),n}function $a(e){if("function"!=typeof e)throw new Ae(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}La.Cache=Gn;var Na=ki((function(e,t){var n=(t=1==t.length&&Ya(t[0])?Dt(t[0],Xt(uo())):Dt(br(t,1),Xt(uo()))).length;return Qr((function(r){for(var i=-1,o=xn(r.length,n);++i=t})),Ua=Dr(function(){return arguments}())?Dr:function(e){return is(e)&&Ie.call(e,"callee")&&!Ge.call(e,"callee")},Ya=r.isArray,qa=bt?Xt(bt):function(e){return is(e)&&Mr(e)==R};function Ga(e){return null!=e&&ns(e.length)&&!es(e)}function Ka(e){return is(e)&&Ga(e)}var Xa=$t||bl,Qa=wt?Xt(wt):function(e){return is(e)&&Mr(e)==x};function Ja(e){if(!is(e))return!1;var t=Mr(e);return t==k||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ss(e)}function es(e){if(!rs(e))return!1;var t=Mr(e);return t==S||t==C||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ts(e){return"number"==typeof e&&e==vs(e)}function ns(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function rs(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function is(e){return null!=e&&"object"==typeof e}var os=xt?Xt(xt):function(e){return is(e)&&vo(e)==j};function as(e){return"number"==typeof e||is(e)&&Mr(e)==O}function ss(e){if(!is(e)||Mr(e)!=M)return!1;var t=Ye(e);if(null===t)return!0;var n=Ie.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ze.call(n)==Ze}var ls=kt?Xt(kt):function(e){return is(e)&&Mr(e)==E};var cs=St?Xt(St):function(e){return is(e)&&vo(e)==A};function us(e){return"string"==typeof e||!Ya(e)&&is(e)&&Mr(e)==T}function ds(e){return"symbol"==typeof e||is(e)&&Mr(e)==_}var hs=Ct?Xt(Ct):function(e){return is(e)&&ns(e.length)&&!!at[Mr(e)]};var fs=qi(Zr),ps=qi((function(e,t){return e<=t}));function ms(e){if(!e)return[];if(Ga(e))return us(e)?pn(e):Ti(e);if(et&&e[et])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[et]());var t=vo(e);return(t==j?ln:t==A?dn:Fs)(e)}function gs(e){return e?(e=bs(e))===f||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function vs(e){var t=gs(e),n=t%1;return t==t?n?t-n:t:0}function ys(e){return e?cr(vs(e),0,g):0}function bs(e){if("number"==typeof e)return e;if(ds(e))return m;if(rs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=rs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Kt(e);var n=ve.test(e);return n||be.test(e)?ut(e.slice(2),n?2:8):ge.test(e)?m:+e}function ws(e){return _i(e,zs(e))}function xs(e){return null==e?"":di(e)}var ks=Ri((function(e,t){if(Oo(t)||Ga(t))_i(t,Rs(t),e);else for(var n in t)Ie.call(t,n)&&rr(e,n,t[n])})),Ss=Ri((function(e,t){_i(t,zs(t),e)})),Cs=Ri((function(e,t,n,r){_i(t,zs(t),e,r)})),js=Ri((function(e,t,n,r){_i(t,Rs(t),e,r)})),Os=io(lr);var Ms=Qr((function(e,t){e=Me(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&ko(t[0],t[1],o)&&(r=1);++n1),t})),_i(e,ao(e),n),r&&(n=ur(n,7,no));for(var i=t.length;i--;)fi(n,t[i]);return n}));var Ns=io((function(e,t){return null==e?{}:function(e,t){return Yr(e,t,(function(t,n){return As(e,n)}))}(e,t)}));function Zs(e,t){if(null==e)return{};var n=Dt(ao(e),(function(e){return[e]}));return t=uo(t),Yr(e,n,(function(e,n){return t(e,n[0])}))}var Hs=Qi(Rs),Vs=Qi(zs);function Fs(e){return null==e?[]:Qt(e,Rs(e))}var Bs=$i((function(e,t,n){return t=t.toLowerCase(),e+(n?Ws(t):t)}));function Ws(e){return Js(xs(e).toLowerCase())}function Us(e){return(e=xs(e))&&e.replace(xe,rn).replace(Je,"")}var Ys=$i((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),qs=$i((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Gs=Li("toLowerCase");var Ks=$i((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Xs=$i((function(e,t,n){return e+(n?" ":"")+Js(t)}));var Qs=$i((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Js=Li("toUpperCase");function el(e,t,n){return e=xs(e),(t=n?i:t)===i?function(e){return rt.test(e)}(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var tl=Qr((function(e,t){try{return jt(e,i,t)}catch(e){return Ja(e)?e:new Ce(e)}})),nl=io((function(e,t){return Mt(t,(function(t){t=Zo(t),sr(e,t,_a(e[t],e))})),e}));function rl(e){return function(){return e}}var il=Hi(),ol=Hi(!0);function al(e){return e}function sl(e){return Lr("function"==typeof e?e:ur(e,1))}var ll=Qr((function(e,t){return function(n){return _r(n,e,t)}})),cl=Qr((function(e,t){return function(n){return _r(e,n,t)}}));function ul(e,t,n){var r=Rs(t),i=Cr(t,r);null!=n||rs(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Cr(t,Rs(t)));var o=!(rs(n)&&"chain"in n&&!n.chain),a=es(e);return Mt(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=Ti(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Rt([this.value()],arguments))})})),e}function dl(){}var hl=Wi(Dt),fl=Wi(Et),pl=Wi(Lt);function ml(e){return So(e)?Wt(Zo(e)):function(e){return function(t){return jr(t,e)}}(e)}var gl=Yi(),vl=Yi(!0);function yl(){return[]}function bl(){return!1}var wl=Bi((function(e,t){return e+t}),0),xl=Ki("ceil"),kl=Bi((function(e,t){return e/t}),1),Sl=Ki("floor");var Cl,jl=Bi((function(e,t){return e*t}),1),Ol=Ki("round"),Ml=Bi((function(e,t){return e-t}),0);return Vn.after=function(e,t){if("function"!=typeof t)throw new Ae(o);return e=vs(e),function(){if(--e<1)return t.apply(this,arguments)}},Vn.ary=Aa,Vn.assign=ks,Vn.assignIn=Ss,Vn.assignInWith=Cs,Vn.assignWith=js,Vn.at=Os,Vn.before=Ta,Vn.bind=_a,Vn.bindAll=nl,Vn.bindKey=Da,Vn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ya(e)?e:[e]},Vn.chain=ma,Vn.chunk=function(e,t,n){t=(n?ko(e,t,n):t===i)?1:wn(vs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,l=r(mt(o/t));ao?0:o+n),(r=r===i||r>o?o:vs(r))<0&&(r+=o),r=n>r?0:ys(r);n>>0)?(e=xs(e))&&("string"==typeof t||null!=t&&!ls(t))&&!(t=di(t))&&sn(e)?Si(pn(e),0,n):e.split(t,n):[]},Vn.spread=function(e,t){if("function"!=typeof e)throw new Ae(o);return t=null==t?0:wn(vs(t),0),Qr((function(n){var r=n[t],i=Si(n,0,t);return r&&Rt(i,r),jt(e,this,i)}))},Vn.tail=function(e){var t=null==e?0:e.length;return t?oi(e,1,t):[]},Vn.take=function(e,t,n){return e&&e.length?oi(e,0,(t=n||t===i?1:vs(t))<0?0:t):[]},Vn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?oi(e,(t=r-(t=n||t===i?1:vs(t)))<0?0:t,r):[]},Vn.takeRightWhile=function(e,t){return e&&e.length?mi(e,uo(t,3),!1,!0):[]},Vn.takeWhile=function(e,t){return e&&e.length?mi(e,uo(t,3)):[]},Vn.tap=function(e,t){return t(e),e},Vn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Ae(o);return rs(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ra(e,t,{leading:r,maxWait:t,trailing:i})},Vn.thru=ga,Vn.toArray=ms,Vn.toPairs=Hs,Vn.toPairsIn=Vs,Vn.toPath=function(e){return Ya(e)?Dt(e,Zo):ds(e)?[e]:Ti(No(xs(e)))},Vn.toPlainObject=ws,Vn.transform=function(e,t,n){var r=Ya(e),i=r||Xa(e)||hs(e);if(t=uo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:rs(e)&&es(o)?Fn(Ye(e)):{}}return(i?Mt:kr)(e,(function(e,r,i){return t(n,e,r,i)})),n},Vn.unary=function(e){return Aa(e,1)},Vn.union=ia,Vn.unionBy=oa,Vn.unionWith=aa,Vn.uniq=function(e){return e&&e.length?hi(e):[]},Vn.uniqBy=function(e,t){return e&&e.length?hi(e,uo(t,2)):[]},Vn.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?hi(e,i,t):[]},Vn.unset=function(e,t){return null==e||fi(e,t)},Vn.unzip=sa,Vn.unzipWith=la,Vn.update=function(e,t,n){return null==e?e:pi(e,t,wi(n))},Vn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:pi(e,t,wi(n),r)},Vn.values=Fs,Vn.valuesIn=function(e){return null==e?[]:Qt(e,zs(e))},Vn.without=ca,Vn.words=el,Vn.wrap=function(e,t){return Za(wi(t),e)},Vn.xor=ua,Vn.xorBy=da,Vn.xorWith=ha,Vn.zip=fa,Vn.zipObject=function(e,t){return yi(e||[],t||[],rr)},Vn.zipObjectDeep=function(e,t){return yi(e||[],t||[],ti)},Vn.zipWith=pa,Vn.entries=Hs,Vn.entriesIn=Vs,Vn.extend=Ss,Vn.extendWith=Cs,ul(Vn,Vn),Vn.add=wl,Vn.attempt=tl,Vn.camelCase=Bs,Vn.capitalize=Ws,Vn.ceil=xl,Vn.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=bs(n))==n?n:0),t!==i&&(t=(t=bs(t))==t?t:0),cr(bs(e),t,n)},Vn.clone=function(e){return ur(e,4)},Vn.cloneDeep=function(e){return ur(e,5)},Vn.cloneDeepWith=function(e,t){return ur(e,5,t="function"==typeof t?t:i)},Vn.cloneWith=function(e,t){return ur(e,4,t="function"==typeof t?t:i)},Vn.conformsTo=function(e,t){return null==t||dr(e,t,Rs(t))},Vn.deburr=Us,Vn.defaultTo=function(e,t){return null==e||e!=e?t:e},Vn.divide=kl,Vn.endsWith=function(e,t,n){e=xs(e),t=di(t);var r=e.length,o=n=n===i?r:cr(vs(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Vn.eq=Fa,Vn.escape=function(e){return(e=xs(e))&&X.test(e)?e.replace(G,on):e},Vn.escapeRegExp=function(e){return(e=xs(e))&&oe.test(e)?e.replace(ie,"\\$&"):e},Vn.every=function(e,t,n){var r=Ya(e)?Et:gr;return n&&ko(e,t,n)&&(t=i),r(e,uo(t,3))},Vn.find=ba,Vn.findIndex=Uo,Vn.findKey=function(e,t){return Nt(e,uo(t,3),kr)},Vn.findLast=wa,Vn.findLastIndex=Yo,Vn.findLastKey=function(e,t){return Nt(e,uo(t,3),Sr)},Vn.floor=Sl,Vn.forEach=xa,Vn.forEachRight=ka,Vn.forIn=function(e,t){return null==e?e:wr(e,uo(t,3),zs)},Vn.forInRight=function(e,t){return null==e?e:xr(e,uo(t,3),zs)},Vn.forOwn=function(e,t){return e&&kr(e,uo(t,3))},Vn.forOwnRight=function(e,t){return e&&Sr(e,uo(t,3))},Vn.get=Es,Vn.gt=Ba,Vn.gte=Wa,Vn.has=function(e,t){return null!=e&&yo(e,t,Er)},Vn.hasIn=As,Vn.head=Go,Vn.identity=al,Vn.includes=function(e,t,n,r){e=Ga(e)?e:Fs(e),n=n&&!r?vs(n):0;var i=e.length;return n<0&&(n=wn(i+n,0)),us(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Ht(e,t,n)>-1},Vn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:vs(n);return i<0&&(i=wn(r+i,0)),Ht(e,t,i)},Vn.inRange=function(e,t,n){return t=gs(t),n===i?(n=t,t=0):n=gs(n),function(e,t,n){return e>=xn(t,n)&&e=-9007199254740991&&e<=p},Vn.isSet=cs,Vn.isString=us,Vn.isSymbol=ds,Vn.isTypedArray=hs,Vn.isUndefined=function(e){return e===i},Vn.isWeakMap=function(e){return is(e)&&vo(e)==D},Vn.isWeakSet=function(e){return is(e)&&"[object WeakSet]"==Mr(e)},Vn.join=function(e,t){return null==e?"":yn.call(e,t)},Vn.kebabCase=Ys,Vn.last=Jo,Vn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=vs(n))<0?wn(r+o,0):xn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Zt(e,Ft,o,!0)},Vn.lowerCase=qs,Vn.lowerFirst=Gs,Vn.lt=fs,Vn.lte=ps,Vn.max=function(e){return e&&e.length?vr(e,al,Pr):i},Vn.maxBy=function(e,t){return e&&e.length?vr(e,uo(t,2),Pr):i},Vn.mean=function(e){return Bt(e,al)},Vn.meanBy=function(e,t){return Bt(e,uo(t,2))},Vn.min=function(e){return e&&e.length?vr(e,al,Zr):i},Vn.minBy=function(e,t){return e&&e.length?vr(e,uo(t,2),Zr):i},Vn.stubArray=yl,Vn.stubFalse=bl,Vn.stubObject=function(){return{}},Vn.stubString=function(){return""},Vn.stubTrue=function(){return!0},Vn.multiply=jl,Vn.nth=function(e,t){return e&&e.length?Wr(e,vs(t)):i},Vn.noConflict=function(){return ft._===this&&(ft._=He),this},Vn.noop=dl,Vn.now=Ea,Vn.pad=function(e,t,n){e=xs(e);var r=(t=vs(t))?fn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Ui(vt(i),n)+e+Ui(mt(i),n)},Vn.padEnd=function(e,t,n){e=xs(e);var r=(t=vs(t))?fn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Cn();return xn(e+o*(t-e+ct("1e-"+((o+"").length-1))),t)}return Kr(e,t)},Vn.reduce=function(e,t,n){var r=Ya(e)?zt:Yt,i=arguments.length<3;return r(e,uo(t,4),n,i,pr)},Vn.reduceRight=function(e,t,n){var r=Ya(e)?It:Yt,i=arguments.length<3;return r(e,uo(t,4),n,i,mr)},Vn.repeat=function(e,t,n){return t=(n?ko(e,t,n):t===i)?1:vs(t),Xr(xs(e),t)},Vn.replace=function(){var e=arguments,t=xs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Vn.result=function(e,t,n){var r=-1,o=(t=xi(t,e)).length;for(o||(o=1,e=i);++rp)return[];var n=g,r=xn(e,g);t=uo(t),e-=g;for(var i=Gt(r,t);++n=a)return e;var l=n-fn(r);if(l<1)return r;var c=s?Si(s,0,l).join(""):e.slice(0,l);if(o===i)return c+r;if(s&&(l+=c.length-l),ls(o)){if(e.slice(l).search(o)){var u,d=c;for(o.global||(o=Pe(o.source,xs(me.exec(o))+"g")),o.lastIndex=0;u=o.exec(d);)var h=u.index;c=c.slice(0,h===i?l:h)}}else if(e.indexOf(di(o),l)!=l){var f=c.lastIndexOf(o);f>-1&&(c=c.slice(0,f))}return c+r},Vn.unescape=function(e){return(e=xs(e))&&K.test(e)?e.replace(q,gn):e},Vn.uniqueId=function(e){var t=++Le;return xs(e)+t},Vn.upperCase=Qs,Vn.upperFirst=Js,Vn.each=xa,Vn.eachRight=ka,Vn.first=Go,ul(Vn,(Cl={},kr(Vn,(function(e,t){Ie.call(Vn.prototype,t)||(Cl[t]=e)})),Cl),{chain:!1}),Vn.VERSION="4.17.21",Mt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Vn[e].placeholder=Vn})),Mt(["drop","take"],(function(e,t){Un.prototype[e]=function(n){n=n===i?1:wn(vs(n),0);var r=this.__filtered__&&!t?new Un(this):this.clone();return r.__filtered__?r.__takeCount__=xn(n,r.__takeCount__):r.__views__.push({size:xn(n,g),type:e+(r.__dir__<0?"Right":"")}),r},Un.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Mt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Un.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:uo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Mt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Un.prototype[e]=function(){return this[n](1).value()[0]}})),Mt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Un.prototype[e]=function(){return this.__filtered__?new Un(this):this[n](1)}})),Un.prototype.compact=function(){return this.filter(al)},Un.prototype.find=function(e){return this.filter(e).head()},Un.prototype.findLast=function(e){return this.reverse().find(e)},Un.prototype.invokeMap=Qr((function(e,t){return"function"==typeof e?new Un(this):this.map((function(n){return _r(n,e,t)}))})),Un.prototype.reject=function(e){return this.filter($a(uo(e)))},Un.prototype.slice=function(e,t){e=vs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Un(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=vs(t))<0?n.dropRight(-t):n.take(t-e)),n)},Un.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Un.prototype.toArray=function(){return this.take(g)},kr(Un.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Vn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(Vn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof Un,c=s[0],u=l||Ya(t),d=function(e){var t=o.apply(Vn,Rt([e],s));return r&&h?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var h=this.__chain__,f=!!this.__actions__.length,p=a&&!h,m=l&&!f;if(!a&&u){t=m?t:new Un(this);var g=e.apply(t,s);return g.__actions__.push({func:ga,args:[d],thisArg:i}),new Wn(g,h)}return p&&m?e.apply(this,s):(g=this.thru(d),p?r?g.value()[0]:g.value():g)})})),Mt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Te[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Vn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ya(i)?i:[],e)}return this[n]((function(n){return t.apply(Ya(n)?n:[],e)}))}})),kr(Un.prototype,(function(e,t){var n=Vn[t];if(n){var r=n.name+"";Ie.call(Dn,r)||(Dn[r]=[]),Dn[r].push({name:t,func:n})}})),Dn[Vi(i,2).name]=[{name:"wrapper",func:i}],Un.prototype.clone=function(){var e=new Un(this.__wrapped__);return e.__actions__=Ti(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ti(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ti(this.__views__),e},Un.prototype.reverse=function(){if(this.__filtered__){var e=new Un(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Un.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ya(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Vn.prototype.plant=function(e){for(var t,n=this;n instanceof Bn;){var r=Vo(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Vn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Un){var t=e;return this.__actions__.length&&(t=new Un(this)),(t=t.reverse()).__actions__.push({func:ga,args:[ra],thisArg:i}),new Wn(t,this.__chain__)}return this.thru(ra)},Vn.prototype.toJSON=Vn.prototype.valueOf=Vn.prototype.value=function(){return gi(this.__wrapped__,this.__actions__)},Vn.prototype.first=Vn.prototype.head,et&&(Vn.prototype[et]=function(){return this}),Vn}();ft._=vn,(r=function(){return vn}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},104:(e,t,n)=>{var r=n(8423);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},3324:(e,t,n)=>{var r=n(9391);r.prototype.formulaEval=function(){"use strict";for(var e,t,n,r=[],i=this.value,o=0;o"+t.value+""+i[o].show+""+e.value+"",type:10}):r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+""+e.value+"",type:1})):2===i[o].type||9===i[o].type?(e=r.pop(),t=r.pop(),r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+i[o].show+(1!=e.type?"(":"")+e.value+(1!=e.type?")":""),type:i[o].type})):12===i[o].type&&(e=r.pop(),t=r.pop(),n=r.pop(),r.push({value:i[o].show+"("+n.value+","+t.value+","+e.value+")",type:12}));return r[0].value},e.exports=r},3259:(e,t,n)=>{"use strict";var r=n(9084);function i(e,t){for(var n=0;np.length-2?p.length-1:e.length-l;n>0;n--)if(void 0!==p[n])for(i=0;i0&&n{"use strict";var t=function(e){this.value=e};t.math={isDegree:!0,acos:function(e){return t.math.isDegree?180/Math.PI*Math.acos(e):Math.acos(e)},add:function(e,t){return e+t},asin:function(e){return t.math.isDegree?180/Math.PI*Math.asin(e):Math.asin(e)},atan:function(e){return t.math.isDegree?180/Math.PI*Math.atan(e):Math.atan(e)},acosh:function(e){return Math.log(e+Math.sqrt(e*e-1))},asinh:function(e){return Math.log(e+Math.sqrt(e*e+1))},atanh:function(e){return Math.log((1+e)/(1-e))},C:function(e,n){var r=1,i=e-n,o=n;o{var r=n(3259);r.prototype.toPostfix=function(){"use strict";for(var e,t,n,i,o,a=[],s=[{value:"(",type:4,pre:0}],l=this.value,c=1;cn)s.push(e);else{for(;n>=i&&!u||u&&i{var r=n(5121);r.prototype.postfixEval=function(e){"use strict";(e=e||{}).PI=Math.PI,e.E=Math.E;for(var t,n,i,o=[],a=this.value,s=void 0!==e.n,l=0;l1)throw new r.Exception("Uncaught Syntax error");return o[0].value>1e15?"Infinity":parseFloat(o[0].value.toFixed(15))},r.eval=function(e,t,n){return void 0===t?this.lex(e).toPostfix().postfixEval():void 0===n?void 0!==t.length?this.lex(e,t).toPostfix().postfixEval():this.lex(e).toPostfix().postfixEval(t):this.lex(e,t).toPostfix().postfixEval(n)},e.exports=r},7347:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var a,s,l=i(e),c=1;c{"use strict";var r=n(6642);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},3074:(e,t,n)=>{e.exports=n(3433)()},6642:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5813:function(e,t,n){!function(e,t,n,r,i,o,a,s,l,c,u,d,h,f,p,m,g,v,y,b,w,x,k,S,C,j,O,M,P,E,A,T,_,D,R,z,I,L,$,N,Z,H,V,F,B,W,U,Y,q,G,K,X,Q,J,ee,te,ne,re,ie,oe,ae,se,le){"use strict";function ce(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var ue=ce(t),de=ce(r),he=ce(i),fe=ce(o),pe=ce(a),me=ce(s),ge=ce(l),ve=ce(c),ye=ce(u),be=ce(d),we=ce(h),xe=ce(m),ke=ce(g),Se=ce(v),Ce=ce(y),je=ce(b),Oe=ce(w),Me=ce(x),Pe=ce(k),Ee=ce(S),Ae=ce(C),Te=ce(j),_e=ce(O),De=ce(M),Re=ce(P),ze=ce(E),Ie=ce(A),Le=ce(T),$e=ce(_),Ne=ce(D),Ze=ce(R),He=ce(z),Ve=ce(I),Fe=ce(L),Be=ce($),We=ce(Z),Ue=ce(H),Ye=ce(V),qe=ce(F),Ge=ce(B),Ke=ce(W),Xe=ce(U),Qe=ce(G),Je=ce(K),et=ce(X),tt=ce(Q),nt=ce(J),rt=ce(ee),it=ce(te),ot=ce(ne),at=ce(re),st=ce(ie),lt=ce(oe),ct=ce(ae),ut=ce(se);function dt(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 ht(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(o=st.default(e,t.slice(0,e.length),new Date)),Rt(o)||(o=new Date(e))),Rt(o)&&s?o:null)}function Rt(e,t){return t=t||new Date("1/1/1000"),fe.default(e)&&!it.default(e,t)}function zt(e,t,n){if("en"===n)return pe.default(e,t,{awareOfUnicodeTokens:!0});var r=Qt(n);return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!r&&Xt()&&Qt(Xt())&&(r=Qt(Xt())),pe.default(e,t,{locale:r||null,awareOfUnicodeTokens:!0})}function It(e,t){var n=t.dateFormat,r=t.locale;return e&&zt(e,Array.isArray(n)?n[0]:n,r)||""}function Lt(e,t){var n=t.hour,r=void 0===n?0:n,i=t.minute,o=void 0===i?0:i,a=t.second,s=void 0===a?0:a;return Le.default(Ie.default(ze.default(e,s),o),r)}function $t(e,t){var n=t&&Qt(t)||Xt()&&Qt(Xt());return Ae.default(e,n?{locale:n}:null)}function Nt(e,t){return zt(e,"ddd",t)}function Zt(e){return Ue.default(e)}function Ht(e,t,n){var r=Qt(t||Xt());return Ye.default(e,{locale:r,weekStartsOn:n})}function Vt(e){return qe.default(e)}function Ft(e){return Ke.default(e)}function Bt(e){return Ge.default(e)}function Wt(e,t){return e&&t?tt.default(e,t):!e&&!t}function Ut(e,t){return e&&t?et.default(e,t):!e&&!t}function Yt(e,t){return e&&t?nt.default(e,t):!e&&!t}function qt(e,t){return e&&t?Je.default(e,t):!e&&!t}function Gt(e,t){return e&&t?Qe.default(e,t):!e&&!t}function Kt(e,t,n){var r,i=Ue.default(t),o=Xe.default(n);try{r=ot.default(e,{start:i,end:o})}catch(e){r=!1}return r}function Xt(){return("undefined"!=typeof window?window:globalThis).__localeId__}function Qt(e){if("string"==typeof e){var t="undefined"!=typeof window?window:globalThis;return t.__localeData__?t.__localeData__[e]:null}return e}function Jt(e,t){return zt($e.default(_t(),e),"LLLL",t)}function en(e,t){return zt($e.default(_t(),e),"LLL",t)}function tn(e,t){return zt(Ne.default(_t(),e),"QQQ",t)}function nn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.excludeDateIntervals,a=t.includeDates,s=t.includeDateIntervals,l=t.filterDate;return un(e,{minDate:n,maxDate:r})||i&&i.some((function(t){return qt(e,t)}))||o&&o.some((function(t){var n=t.start,r=t.end;return ot.default(e,{start:n,end:r})}))||a&&!a.some((function(t){return qt(e,t)}))||s&&!s.some((function(t){var n=t.start,r=t.end;return ot.default(e,{start:n,end:r})}))||l&&!l(_t(e))||!1}function rn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.excludeDates,r=t.excludeDateIntervals;return r&&r.length>0?r.some((function(t){var n=t.start,r=t.end;return ot.default(e,{start:n,end:r})})):n&&n.some((function(t){return qt(e,t)}))||!1}function on(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,a=t.filterDate;return un(e,{minDate:n,maxDate:r})||i&&i.some((function(t){return Ut(e,t)}))||o&&!o.some((function(t){return Ut(e,t)}))||a&&!a(_t(e))||!1}function an(e,t,n,r){var i=De.default(e),o=Te.default(e),a=De.default(t),s=Te.default(t),l=De.default(r);return i===a&&i===l?o<=n&&n<=s:i=n||li:void 0}function sn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,i=t.excludeDates,o=t.includeDates,a=t.filterDate;return un(e,{minDate:n,maxDate:r})||i&&i.some((function(t){return Yt(e,t)}))||o&&!o.some((function(t){return Yt(e,t)}))||a&&!a(_t(e))||!1}function ln(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate;return un(new Date(e,0,1),{minDate:n,maxDate:r})||!1}function cn(e,t,n,r){var i=De.default(e),o=_e.default(e),a=De.default(t),s=_e.default(t),l=De.default(r);return i===a&&i===l?o<=n&&n<=s:i=n||li:void 0}function un(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate;return n&&Fe.default(e,n)<0||r&&Fe.default(e,r)>0}function dn(e,t){return t.some((function(t){return Me.default(t)===Me.default(e)&&Oe.default(t)===Oe.default(e)}))}function hn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.excludeTimes,r=t.includeTimes,i=t.filterTime;return n&&dn(e,n)||r&&!dn(e,r)||i&&!i(e)||!1}function fn(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var i,o=_t(),a=Le.default(Ie.default(o,Oe.default(e)),Me.default(e)),s=Le.default(Ie.default(o,Oe.default(n)),Me.default(n)),l=Le.default(Ie.default(o,Oe.default(r)),Me.default(r));try{i=!ot.default(a,{start:s,end:l})}catch(e){i=!1}return i}function pn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.includeDates,i=Se.default(e,1);return n&&Be.default(n,i)>0||r&&r.every((function(e){return Be.default(e,i)>0}))||!1}function mn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=be.default(e,1);return n&&Be.default(i,n)>0||r&&r.every((function(e){return Be.default(i,e)>0}))||!1}function gn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.includeDates,i=Ce.default(e,1);return n&&We.default(n,i)>0||r&&r.every((function(e){return We.default(e,i)>0}))||!1}function vn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.includeDates,i=we.default(e,1);return n&&We.default(i,n)>0||r&&r.every((function(e){return We.default(i,e)>0}))||!1}function yn(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter((function(e){return Fe.default(e,t)>=0}));return He.default(r)}return n?He.default(n):t}function bn(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter((function(e){return Fe.default(e,t)<=0}));return Ve.default(r)}return n?Ve.default(n):t}function wn(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"react-datepicker__day--highlighted",n=new Map,r=0,i=e.length;r1&&void 0!==arguments[1]?arguments[1]:At,n=Math.ceil(De.default(e)/t)*t;return{startPeriod:n-(t-1),endPeriod:n}}function Cn(e,t,n,r){for(var i=[],o=0;o<2*t+1;o++){var a=e+t-o,s=!0;n&&(s=De.default(n)<=a),r&&s&&(s=De.default(r)>=a),s&&i.push(a)}return i}var jn=function(e){bt(r,e);var n=Ct(r);function r(e){var i;pt(this,r),vt(kt(i=n.call(this,e)),"renderOptions",(function(){var e=i.props.year,t=i.state.yearsList.map((function(t){return ue.default.createElement("div",{className:e===t?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:t,onClick:i.onChange.bind(kt(i),t),"aria-selected":e===t?"true":void 0},e===t?ue.default.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",t)})),n=i.props.minDate?De.default(i.props.minDate):null,r=i.props.maxDate?De.default(i.props.maxDate):null;return r&&i.state.yearsList.find((function(e){return e===r}))||t.unshift(ue.default.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:i.incrementYears},ue.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),n&&i.state.yearsList.find((function(e){return e===n}))||t.push(ue.default.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:i.decrementYears},ue.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),t})),vt(kt(i),"onChange",(function(e){i.props.onChange(e)})),vt(kt(i),"handleClickOutside",(function(){i.props.onCancel()})),vt(kt(i),"shiftYears",(function(e){var t=i.state.yearsList.map((function(t){return t+e}));i.setState({yearsList:t})})),vt(kt(i),"incrementYears",(function(){return i.shiftYears(1)})),vt(kt(i),"decrementYears",(function(){return i.shiftYears(-1)}));var o=e.yearDropdownItemNumber,a=e.scrollableYearDropdown,s=o||(a?10:5);return i.state={yearsList:Cn(i.props.year,s,i.props.minDate,i.props.maxDate)},i.dropdownRef=t.createRef(),i}return gt(r,[{key:"componentDidMount",value:function(){var e=this.dropdownRef.current;e&&(e.scrollTop=e.scrollHeight/2-e.clientHeight/2)}},{key:"render",value:function(){var e=de.default({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return ue.default.createElement("div",{className:e,ref:this.dropdownRef},this.renderOptions())}}]),r}(ue.default.Component),On=ct.default(jn),Mn=function(e){bt(n,e);var t=Ct(n);function n(){var e;pt(this,n);for(var r=arguments.length,i=new Array(r),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},n=!1;0===e.getTabIndex()&&!t.isInputFocused&&e.isSameDay(e.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(n=!0),e.props.inline&&!e.props.shouldFocusDayInline&&(n=!1),e.props.containerRef&&e.props.containerRef.current&&e.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(n=!0)),n&&e.dayEl.current.focus({preventScroll:!0})})),vt(kt(e),"renderDayContents",(function(){return e.props.monthShowsDuplicateDaysEnd&&e.isAfterMonth()||e.props.monthShowsDuplicateDaysStart&&e.isBeforeMonth()?null:e.props.renderDayContents?e.props.renderDayContents(Ee.default(e.props.day),e.props.day):Ee.default(e.props.day)})),vt(kt(e),"render",(function(){return ue.default.createElement("div",{ref:e.dayEl,className:e.getClassNames(e.props.day),onKeyDown:e.handleOnKeyDown,onClick:e.handleClick,onMouseEnter:e.handleMouseEnter,tabIndex:e.getTabIndex(),"aria-label":e.getAriaLabel(),role:"option","aria-disabled":e.isDisabled(),"aria-current":e.isCurrentDay()?"date":void 0,"aria-selected":e.isSelected()},e.renderDayContents())})),e}return gt(n,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(e){this.handleFocusDay(e)}}]),n}(ue.default.Component),In=function(e){bt(n,e);var t=Ct(n);function n(){var e;pt(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=6,s=!n&&!e.isWeekInMonth(o);if(a||s){if(!e.props.peekNextMonth)break;i=!0}}return t})),vt(kt(e),"onMonthClick",(function(t,n){e.handleDayClick(Vt($e.default(e.props.day,n)),t)})),vt(kt(e),"handleMonthNavigation",(function(t,n){e.isDisabled(n)||e.isExcluded(n)||(e.props.setPreSelection(n),e.MONTH_REFS[t].current&&e.MONTH_REFS[t].current.focus())})),vt(kt(e),"onMonthKeyDown",(function(t,n){var r=t.key;if(!e.props.disabledKeyboardNavigation)switch(r){case"Enter":e.onMonthClick(t,n),e.props.setPreSelection(e.props.selected);break;case"ArrowRight":e.handleMonthNavigation(11===n?0:n+1,be.default(e.props.preSelection,1));break;case"ArrowLeft":e.handleMonthNavigation(0===n?11:n-1,Se.default(e.props.preSelection,1))}})),vt(kt(e),"onQuarterClick",(function(t,n){e.handleDayClick(Bt(Ne.default(e.props.day,n)),t)})),vt(kt(e),"getMonthClassNames",(function(t){var n=e.props,r=n.day,i=n.startDate,o=n.endDate,a=n.selected,s=n.minDate,l=n.maxDate,c=n.preSelection,u=n.monthClassName,d=u?u(r):void 0;return de.default("react-datepicker__month-text","react-datepicker__month-".concat(t),d,{"react-datepicker__month--disabled":(s||l)&&on($e.default(r,t),e.props),"react-datepicker__month--selected":e.isSelectedMonth(r,t,a),"react-datepicker__month-text--keyboard-selected":Te.default(c)===t,"react-datepicker__month--in-range":an(i,o,t,r),"react-datepicker__month--range-start":e.isRangeStartMonth(t),"react-datepicker__month--range-end":e.isRangeEndMonth(t),"react-datepicker__month-text--today":e.isCurrentMonth(r,t)})})),vt(kt(e),"getTabIndex",(function(t){var n=Te.default(e.props.preSelection);return e.props.disabledKeyboardNavigation||t!==n?"-1":"0"})),vt(kt(e),"getAriaLabel",(function(t){var n=e.props,r=n.chooseDayAriaLabelPrefix,i=void 0===r?"Choose":r,o=n.disabledDayAriaLabelPrefix,a=void 0===o?"Not available":o,s=n.day,l=$e.default(s,t),c=e.isDisabled(l)||e.isExcluded(l)?a:i;return"".concat(c," ").concat(zt(l,"MMMM yyyy"))})),vt(kt(e),"getQuarterClassNames",(function(t){var n=e.props,r=n.day,i=n.startDate,o=n.endDate,a=n.selected,s=n.minDate,l=n.maxDate;return de.default("react-datepicker__quarter-text","react-datepicker__quarter-".concat(t),{"react-datepicker__quarter--disabled":(s||l)&&sn(Ne.default(r,t),e.props),"react-datepicker__quarter--selected":e.isSelectedQuarter(r,t,a),"react-datepicker__quarter--in-range":cn(i,o,t,r),"react-datepicker__quarter--range-start":e.isRangeStartQuarter(t),"react-datepicker__quarter--range-end":e.isRangeEndQuarter(t)})})),vt(kt(e),"renderMonths",(function(){var t=e.props,n=t.showFullMonthYearPicker,r=t.showTwoColumnMonthYearPicker,i=t.showFourColumnMonthYearPicker,o=t.locale,a=t.day,s=t.selected;return(i?[[0,1,2,3],[4,5,6,7],[8,9,10,11]]:r?[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]]:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]]).map((function(t,r){return ue.default.createElement("div",{className:"react-datepicker__month-wrapper",key:r},t.map((function(t,r){return ue.default.createElement("div",{ref:e.MONTH_REFS[t],key:r,onClick:function(n){e.onMonthClick(n,t)},onKeyDown:function(n){e.onMonthKeyDown(n,t)},tabIndex:e.getTabIndex(t),className:e.getMonthClassNames(t),role:"option","aria-label":e.getAriaLabel(t),"aria-current":e.isCurrentMonth(a,t)?"date":void 0,"aria-selected":e.isSelectedMonth(a,t,s)},n?Jt(t,o):en(t,o))})))}))})),vt(kt(e),"renderQuarters",(function(){var t=e.props,n=t.day,r=t.selected;return ue.default.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map((function(t,i){return ue.default.createElement("div",{key:i,role:"option",onClick:function(n){e.onQuarterClick(n,t)},className:e.getQuarterClassNames(t),"aria-selected":e.isSelectedQuarter(n,t,r)},tn(t,e.props.locale))})))})),vt(kt(e),"getClassNames",(function(){var t=e.props;t.day;var n=t.selectingDate,r=t.selectsStart,i=t.selectsEnd,o=t.showMonthYearPicker,a=t.showQuarterYearPicker;return de.default("react-datepicker__month",{"react-datepicker__month--selecting-range":n&&(r||i)},{"react-datepicker__monthPicker":o},{"react-datepicker__quarterPicker":a})})),e}return gt(n,[{key:"render",value:function(){var e=this.props,t=e.showMonthYearPicker,n=e.showQuarterYearPicker,r=e.day,i=e.ariaLabelPrefix,o=void 0===i?"month ":i;return ue.default.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(o," ").concat(zt(r,"yyyy-MM")),role:"listbox"},t?this.renderMonths():n?this.renderQuarters():this.renderWeeks())}}]),n}(ue.default.Component),Nn=function(e){bt(n,e);var t=Ct(n);function n(){var e;pt(this,n);for(var r=arguments.length,i=new Array(r),o=0;o0&&void 0!==arguments[0]?arguments[0]:{}).className||"").split(/\s+/);return Fn.some((function(t){return e.indexOf(t)>=0}))})(e.target)&&r.props.onDropdownFocus()})),vt(kt(r),"getDateInView",(function(){var e=r.props,t=e.preSelection,n=e.selected,i=e.openToDate,o=yn(r.props),a=bn(r.props),s=_t();return i||n||t||(o&&it.default(s,o)?o:a&&rt.default(s,a)?a:s)})),vt(kt(r),"increaseMonth",(function(){r.setState((function(e){var t=e.date;return{date:be.default(t,1)}}),(function(){return r.handleMonthChange(r.state.date)}))})),vt(kt(r),"decreaseMonth",(function(){r.setState((function(e){var t=e.date;return{date:Se.default(t,1)}}),(function(){return r.handleMonthChange(r.state.date)}))})),vt(kt(r),"handleDayClick",(function(e,t,n){r.props.onSelect(e,t,n),r.props.setPreSelection&&r.props.setPreSelection(e)})),vt(kt(r),"handleDayMouseEnter",(function(e){r.setState({selectingDate:e}),r.props.onDayMouseEnter&&r.props.onDayMouseEnter(e)})),vt(kt(r),"handleMonthMouseLeave",(function(){r.setState({selectingDate:null}),r.props.onMonthMouseLeave&&r.props.onMonthMouseLeave()})),vt(kt(r),"handleYearChange",(function(e){r.props.onYearChange&&r.props.onYearChange(e),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(e),r.props.setOpen&&r.props.setOpen(!0)),r.props.setPreSelection&&r.props.setPreSelection(e)})),vt(kt(r),"handleMonthChange",(function(e){r.props.onMonthChange&&r.props.onMonthChange(e),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(e),r.props.setOpen&&r.props.setOpen(!0)),r.props.setPreSelection&&r.props.setPreSelection(e)})),vt(kt(r),"handleMonthYearChange",(function(e){r.handleYearChange(e),r.handleMonthChange(e)})),vt(kt(r),"changeYear",(function(e){r.setState((function(t){var n=t.date;return{date:Ze.default(n,e)}}),(function(){return r.handleYearChange(r.state.date)}))})),vt(kt(r),"changeMonth",(function(e){r.setState((function(t){var n=t.date;return{date:$e.default(n,e)}}),(function(){return r.handleMonthChange(r.state.date)}))})),vt(kt(r),"changeMonthYear",(function(e){r.setState((function(t){var n=t.date;return{date:Ze.default($e.default(n,Te.default(e)),De.default(e))}}),(function(){return r.handleMonthYearChange(r.state.date)}))})),vt(kt(r),"header",(function(){var e=Ht(arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.state.date,r.props.locale,r.props.calendarStartDay),t=[];return r.props.showWeekNumbers&&t.push(ue.default.createElement("div",{key:"W",className:"react-datepicker__day-name"},r.props.weekLabel||"#")),t.concat([0,1,2,3,4,5,6].map((function(t){var n=ve.default(e,t),i=r.formatWeekday(n,r.props.locale),o=r.props.weekDayClassName?r.props.weekDayClassName(n):void 0;return ue.default.createElement("div",{key:t,className:de.default("react-datepicker__day-name",o)},i)})))})),vt(kt(r),"formatWeekday",(function(e,t){return r.props.formatWeekDay?function(e,t,n){return t(zt(e,"EEEE",n))}(e,r.props.formatWeekDay,t):r.props.useWeekdaysShort?function(e,t){return zt(e,"EEE",t)}(e,t):function(e,t){return zt(e,"EEEEEE",t)}(e,t)})),vt(kt(r),"decreaseYear",(function(){r.setState((function(e){var t=e.date;return{date:Ce.default(t,r.props.showYearPicker?r.props.yearItemNumber:1)}}),(function(){return r.handleYearChange(r.state.date)}))})),vt(kt(r),"renderPreviousButton",(function(){if(!r.props.renderCustomHeader){var e;switch(!0){case r.props.showMonthYearPicker:e=gn(r.state.date,r.props);break;case r.props.showYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.yearItemNumber,i=void 0===r?At:r,o=Sn(Ft(Ce.default(e,i)),i).endPeriod,a=n&&De.default(n);return a&&a>o||!1}(r.state.date,r.props);break;default:e=pn(r.state.date,r.props)}if((r.props.forceShowMonthNavigation||r.props.showDisabledMonthNavigation||!e)&&!r.props.showTimeSelectOnly){var t=["react-datepicker__navigation","react-datepicker__navigation--previous"],n=r.decreaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(n=r.decreaseYear),e&&r.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--previous--disabled"),n=null);var i=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,o=r.props,a=o.previousMonthButtonLabel,s=o.previousYearButtonLabel,l=r.props,c=l.previousMonthAriaLabel,u=void 0===c?"string"==typeof a?a:"Previous Month":c,d=l.previousYearAriaLabel,h=void 0===d?"string"==typeof s?s:"Previous Year":d;return ue.default.createElement("button",{type:"button",className:t.join(" "),onClick:n,onKeyDown:r.props.handleOnKeyDown,"aria-label":i?h:u},ue.default.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},i?r.props.previousYearButtonLabel:r.props.previousMonthButtonLabel))}}})),vt(kt(r),"increaseYear",(function(){r.setState((function(e){var t=e.date;return{date:we.default(t,r.props.showYearPicker?r.props.yearItemNumber:1)}}),(function(){return r.handleYearChange(r.state.date)}))})),vt(kt(r),"renderNextButton",(function(){if(!r.props.renderCustomHeader){var e;switch(!0){case r.props.showMonthYearPicker:e=vn(r.state.date,r.props);break;case r.props.showYearPicker:e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.yearItemNumber,i=void 0===r?At:r,o=Sn(we.default(e,i),i).startPeriod,a=n&&De.default(n);return a&&a0&&void 0!==arguments[0]?arguments[0]:r.state.date,t=["react-datepicker__current-month"];return r.props.showYearDropdown&&t.push("react-datepicker__current-month--hasYearDropdown"),r.props.showMonthDropdown&&t.push("react-datepicker__current-month--hasMonthDropdown"),r.props.showMonthYearDropdown&&t.push("react-datepicker__current-month--hasMonthYearDropdown"),ue.default.createElement("div",{className:t.join(" ")},zt(e,r.props.dateFormat,r.props.locale))})),vt(kt(r),"renderYearDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showYearDropdown&&!e)return ue.default.createElement(Mn,{adjustDateOnChange:r.props.adjustDateOnChange,date:r.state.date,onSelect:r.props.onSelect,setOpen:r.props.setOpen,dropdownMode:r.props.dropdownMode,onChange:r.changeYear,minDate:r.props.minDate,maxDate:r.props.maxDate,year:De.default(r.state.date),scrollableYearDropdown:r.props.scrollableYearDropdown,yearDropdownItemNumber:r.props.yearDropdownItemNumber})})),vt(kt(r),"renderMonthDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showMonthDropdown&&!e)return ue.default.createElement(An,{dropdownMode:r.props.dropdownMode,locale:r.props.locale,onChange:r.changeMonth,month:Te.default(r.state.date),useShortMonthInDropdown:r.props.useShortMonthInDropdown})})),vt(kt(r),"renderMonthYearDropdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showMonthYearDropdown&&!e)return ue.default.createElement(Rn,{dropdownMode:r.props.dropdownMode,locale:r.props.locale,dateFormat:r.props.dateFormat,onChange:r.changeMonthYear,minDate:r.props.minDate,maxDate:r.props.maxDate,date:r.state.date,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown})})),vt(kt(r),"renderTodayButton",(function(){if(r.props.todayButton&&!r.props.showTimeSelectOnly)return ue.default.createElement("div",{className:"react-datepicker__today-button",onClick:function(e){return r.props.onSelect(Ue.default(_t()),e)}},r.props.todayButton)})),vt(kt(r),"renderDefaultHeader",(function(e){var t=e.monthDate,n=e.i;return ue.default.createElement("div",{className:"react-datepicker__header ".concat(r.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},r.renderCurrentMonth(t),ue.default.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(r.props.dropdownMode),onFocus:r.handleDropdownFocus},r.renderMonthDropdown(0!==n),r.renderMonthYearDropdown(0!==n),r.renderYearDropdown(0!==n)),ue.default.createElement("div",{className:"react-datepicker__day-names"},r.header(t)))})),vt(kt(r),"renderCustomHeader",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.monthDate,n=e.i;if(r.props.showTimeSelect&&!r.state.monthContainer||r.props.showTimeSelectOnly)return null;var i=pn(r.state.date,r.props),o=mn(r.state.date,r.props),a=gn(r.state.date,r.props),s=vn(r.state.date,r.props),l=!r.props.showMonthYearPicker&&!r.props.showQuarterYearPicker&&!r.props.showYearPicker;return ue.default.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:r.props.onDropdownFocus},r.props.renderCustomHeader(ht(ht({},r.state),{},{customHeaderCount:n,monthDate:t,changeMonth:r.changeMonth,changeYear:r.changeYear,decreaseMonth:r.decreaseMonth,increaseMonth:r.increaseMonth,decreaseYear:r.decreaseYear,increaseYear:r.increaseYear,prevMonthButtonDisabled:i,nextMonthButtonDisabled:o,prevYearButtonDisabled:a,nextYearButtonDisabled:s})),l&&ue.default.createElement("div",{className:"react-datepicker__day-names"},r.header(t)))})),vt(kt(r),"renderYearHeader",(function(){var e=r.state.date,t=r.props,n=t.showYearPicker,i=Sn(e,t.yearItemNumber),o=i.startPeriod,a=i.endPeriod;return ue.default.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},n?"".concat(o," - ").concat(a):De.default(e))})),vt(kt(r),"renderHeader",(function(e){switch(!0){case void 0!==r.props.renderCustomHeader:return r.renderCustomHeader(e);case r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker:return r.renderYearHeader(e);default:return r.renderDefaultHeader(e)}})),vt(kt(r),"renderMonths",(function(){if(!r.props.showTimeSelectOnly&&!r.props.showYearPicker){for(var e=[],t=r.props.showPreviousMonths?r.props.monthsShown-1:0,n=Se.default(r.state.date,t),i=0;i0;e.push(ue.default.createElement("div",{key:s,ref:function(e){r.monthContainer=e},className:"react-datepicker__month-container"},r.renderHeader({monthDate:a,i}),ue.default.createElement($n,{chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:r.props.weekAriaLabelPrefix,ariaLabelPrefix:r.props.monthAriaLabelPrefix,onChange:r.changeMonthYear,day:a,dayClassName:r.props.dayClassName,calendarStartDay:r.props.calendarStartDay,monthClassName:r.props.monthClassName,onDayClick:r.handleDayClick,handleOnKeyDown:r.props.handleOnDayKeyDown,onDayMouseEnter:r.handleDayMouseEnter,onMouseLeave:r.handleMonthMouseLeave,onWeekSelect:r.props.onWeekSelect,orderInDisplay:i,formatWeekNumber:r.props.formatWeekNumber,locale:r.props.locale,minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,highlightDates:r.props.highlightDates,selectingDate:r.state.selectingDate,includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,inline:r.props.inline,shouldFocusDayInline:r.props.shouldFocusDayInline,fixedHeight:r.props.fixedHeight,filterDate:r.props.filterDate,preSelection:r.props.preSelection,setPreSelection:r.props.setPreSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,showWeekNumbers:r.props.showWeekNumbers,startDate:r.props.startDate,endDate:r.props.endDate,peekNextMonth:r.props.peekNextMonth,setOpen:r.props.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,renderDayContents:r.props.renderDayContents,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,showMonthYearPicker:r.props.showMonthYearPicker,showFullMonthYearPicker:r.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:r.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:r.props.showFourColumnMonthYearPicker,showYearPicker:r.props.showYearPicker,showQuarterYearPicker:r.props.showQuarterYearPicker,isInputFocused:r.props.isInputFocused,containerRef:r.containerRef,monthShowsDuplicateDaysEnd:l,monthShowsDuplicateDaysStart:c})))}return e}})),vt(kt(r),"renderYears",(function(){if(!r.props.showTimeSelectOnly)return r.props.showYearPicker?ue.default.createElement("div",{className:"react-datepicker__year--container"},r.renderHeader(),ue.default.createElement(Zn,yt({onDayClick:r.handleDayClick,date:r.state.date},r.props))):void 0})),vt(kt(r),"renderTimeSection",(function(){if(r.props.showTimeSelect&&(r.state.monthContainer||r.props.showTimeSelectOnly))return ue.default.createElement(Nn,{selected:r.props.selected,openToDate:r.props.openToDate,onChange:r.props.onTimeChange,timeClassName:r.props.timeClassName,format:r.props.timeFormat,includeTimes:r.props.includeTimes,intervals:r.props.timeIntervals,minTime:r.props.minTime,maxTime:r.props.maxTime,excludeTimes:r.props.excludeTimes,filterTime:r.props.filterTime,timeCaption:r.props.timeCaption,todayButton:r.props.todayButton,showMonthDropdown:r.props.showMonthDropdown,showMonthYearDropdown:r.props.showMonthYearDropdown,showYearDropdown:r.props.showYearDropdown,withPortal:r.props.withPortal,monthRef:r.state.monthContainer,injectTimes:r.props.injectTimes,locale:r.props.locale,handleOnKeyDown:r.props.handleOnKeyDown,showTimeSelectOnly:r.props.showTimeSelectOnly})})),vt(kt(r),"renderInputTimeSection",(function(){var e=new Date(r.props.selected),t=Rt(e)&&Boolean(r.props.selected)?"".concat(kn(e.getHours()),":").concat(kn(e.getMinutes())):"";if(r.props.showTimeInput)return ue.default.createElement(Hn,{date:e,timeString:t,timeInputLabel:r.props.timeInputLabel,onChange:r.props.onTimeChange,customTimeInput:r.props.customTimeInput})})),r.containerRef=ue.default.createRef(),r.state={date:r.getDateInView(),selectingDate:null,monthContainer:null},r}return gt(n,[{key:"componentDidMount",value:function(){var e=this;this.props.showTimeSelect&&(this.assignMonthContainer=void e.setState({monthContainer:e.monthContainer}))}},{key:"componentDidUpdate",value:function(e){this.props.preSelection&&!qt(this.props.preSelection,e.preSelection)?this.setState({date:this.props.preSelection}):this.props.openToDate&&!qt(this.props.openToDate,e.openToDate)&&this.setState({date:this.props.openToDate})}},{key:"render",value:function(){var e=this.props.container||Vn;return ue.default.createElement("div",{ref:this.containerRef},ue.default.createElement(e,{className:de.default("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow,arrowProps:this.props.arrowProps},this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.props.children))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,monthSelectedIn:0,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:At}}}]),n}(ue.default.Component),Wn=function(e){bt(n,e);var t=Ct(n);function n(e){var r;return pt(this,n),(r=t.call(this,e)).el=document.createElement("div"),r}return gt(n,[{key:"componentDidMount",value:function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.portalRoot.removeChild(this.el)}},{key:"render",value:function(){return ut.default.createPortal(this.props.children,this.el)}}]),n}(ue.default.Component),Un=function(e){return!e.disabled&&-1!==e.tabIndex},Yn=function(e){bt(n,e);var t=Ct(n);function n(e){var r;return pt(this,n),vt(kt(r=t.call(this,e)),"getTabChildren",(function(){return Array.prototype.slice.call(r.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(Un)})),vt(kt(r),"handleFocusStart",(function(e){var t=r.getTabChildren();t&&t.length>1&&t[t.length-1].focus()})),vt(kt(r),"handleFocusEnd",(function(e){var t=r.getTabChildren();t&&t.length>1&&t[0].focus()})),r.tabLoopRef=ue.default.createRef(),r}return gt(n,[{key:"render",value:function(){return this.props.enableTabLoop?ue.default.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},ue.default.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,ue.default.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),n}(ue.default.Component),qn=function(e){bt(n,e);var t=Ct(n);function n(){return pt(this,n),t.apply(this,arguments)}return gt(n,[{key:"render",value:function(){var e,t=this.props,n=t.className,r=t.wrapperClassName,i=t.hidePopper,o=t.popperComponent,a=t.popperModifiers,s=t.popperPlacement,l=t.popperProps,c=t.targetComponent,u=t.enableTabLoop,d=t.popperOnKeyDown,h=t.portalId,f=t.portalHost;if(!i){var p=de.default("react-datepicker-popper",n);e=ue.default.createElement(le.Popper,yt({modifiers:a,placement:s},l),(function(e){var t=e.ref,n=e.style,r=e.placement,i=e.arrowProps;return ue.default.createElement(Yn,{enableTabLoop:u},ue.default.createElement("div",{ref:t,style:n,className:p,"data-placement":r,onKeyDown:d},ue.default.cloneElement(o,{arrowProps:i})))}))}this.props.popperContainer&&(e=ue.default.createElement(this.props.popperContainer,{},e)),h&&!i&&(e=ue.default.createElement(Wn,{portalId:h,portalHost:f},e));var m=de.default("react-datepicker-wrapper",r);return ue.default.createElement(le.Manager,{className:"react-datepicker-manager"},ue.default.createElement(le.Reference,null,(function(e){var t=e.ref;return ue.default.createElement("div",{ref:t,className:m},c)})),e)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),n}(ue.default.Component),Gn="react-datepicker-ignore-onclickoutside",Kn=ct.default(Bn),Xn="Date input not valid.",Qn=function(e){bt(n,e);var t=Ct(n);function n(e){var r;return pt(this,n),vt(kt(r=t.call(this,e)),"getPreSelection",(function(){return r.props.openToDate?r.props.openToDate:r.props.selectsEnd&&r.props.startDate?r.props.startDate:r.props.selectsStart&&r.props.endDate?r.props.endDate:_t()})),vt(kt(r),"calcInitialState",(function(){var e,t=r.getPreSelection(),n=yn(r.props),i=bn(r.props),o=n&&it.default(t,Ue.default(n))?n:i&&rt.default(t,Xe.default(i))?i:t;return{open:r.props.startOpen||!1,preventFocus:!1,preSelection:null!==(e=r.props.selectsRange?r.props.startDate:r.props.selected)&&void 0!==e?e:o,highlightDates:wn(r.props.highlightDates),focused:!1,shouldFocusDayInline:!1}})),vt(kt(r),"clearPreventFocusTimeout",(function(){r.preventFocusTimeout&&clearTimeout(r.preventFocusTimeout)})),vt(kt(r),"setFocus",(function(){r.input&&r.input.focus&&r.input.focus({preventScroll:!0})})),vt(kt(r),"setBlur",(function(){r.input&&r.input.blur&&r.input.blur(),r.cancelFocusInput()})),vt(kt(r),"setOpen",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r.setState({open:e,preSelection:e&&r.state.open?r.state.preSelection:r.calcInitialState().preSelection,lastPreSelectChange:er},(function(){e||r.setState((function(e){return{focused:!!t&&e.focused}}),(function(){!t&&r.setBlur(),r.setState({inputValue:null})}))}))})),vt(kt(r),"inputOk",(function(){return he.default(r.state.preSelection)})),vt(kt(r),"isCalendarOpen",(function(){return void 0===r.props.open?r.state.open&&!r.props.disabled&&!r.props.readOnly:r.props.open})),vt(kt(r),"handleFocus",(function(e){r.state.preventFocus||(r.props.onFocus(e),r.props.preventOpenOnFocus||r.props.readOnly||r.setOpen(!0)),r.setState({focused:!0})})),vt(kt(r),"cancelFocusInput",(function(){clearTimeout(r.inputFocusTimeout),r.inputFocusTimeout=null})),vt(kt(r),"deferFocusInput",(function(){r.cancelFocusInput(),r.inputFocusTimeout=setTimeout((function(){return r.setFocus()}),1)})),vt(kt(r),"handleDropdownFocus",(function(){r.cancelFocusInput()})),vt(kt(r),"handleBlur",(function(e){(!r.state.open||r.props.withPortal||r.props.showTimeInput)&&r.props.onBlur(e),r.setState({focused:!1})})),vt(kt(r),"handleCalendarClickOutside",(function(e){r.props.inline||r.setOpen(!1),r.props.onClickOutside(e),r.props.withPortal&&e.preventDefault()})),vt(kt(r),"handleChange",(function(){for(var e=arguments.length,t=new Array(e),n=0;n{"use strict";var r=n(5466),i=n(7767);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n