(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[754],{99414:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(2784),o=n(93867);function i(e){const t=(0,r.useRef)(null),n=(0,r.useRef)(null);return n.current&&n.current.update(e),(0,r.useEffect)((()=>(n.current=new(0,o.cW)({...e,ref:t}),()=>{n.current=null})),[]),r.createElement("div",{ref:t})}},1493:function(e,t,n){"use strict";n.d(t,{b:function(){return P}});var r=n(2784),o=n(59618),i=n(80298),a=n(41319),l=Object.defineProperty,s=Object.defineProperties,c=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,d=(e,t,n)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,h=(e,t)=>{for(var n in t||(t={}))f.call(t,n)&&d(e,n,t[n]);if(u)for(var n of u(t))p.call(t,n)&&d(e,n,t[n]);return e},m=(e,t)=>s(e,c(t));function g({variant:e,color:t,theme:n}){if("filled"===e){return{backgroundColor:n.fn.variant({variant:"filled",color:t}).background,color:n.white}}if("outline"===e){const e=n.fn.variant({variant:"outline",color:t});return{color:e.color,borderColor:e.border,backgroundColor:"dark"===n.colorScheme?n.colors.dark[6]:n.white}}const r=n.fn.variant({variant:"light",color:t});return{backgroundColor:r.background,color:r.color}}var y=(0,a.k)(((e,{color:t,radius:n,variant:r})=>({root:h(m(h({},e.fn.fontStyles()),{position:"relative",overflow:"hidden",padding:`${e.spacing.sm}px ${e.spacing.md}px`,borderRadius:e.fn.radius(n),border:"1px solid transparent"}),g({variant:r,color:t,theme:e})),wrapper:{display:"flex"},body:{flex:1},title:{boxSizing:"border-box",margin:0,marginBottom:7,display:"flex",alignItems:"center",justifyContent:"space-between",lineHeight:e.lineHeight,fontSize:e.fontSizes.sm,fontWeight:700,"&[data-with-close-button]":{paddingRight:e.spacing.md}},label:{display:"block",overflow:"hidden",textOverflow:"ellipsis"},icon:{lineHeight:1,width:20,height:20,display:"flex",alignItems:"center",justifyContent:"flex-start",marginRight:e.spacing.md,marginTop:1},message:m(h({},e.fn.fontStyles()),{lineHeight:e.lineHeight,textOverflow:"ellipsis",overflow:"hidden",fontSize:e.fontSizes.sm,color:"filled"===r?e.white:"dark"===e.colorScheme?"light"===r?e.white:e.colors.dark[0]:e.black}),closeButton:{position:"absolute",top:e.spacing.sm,right:e.spacing.sm,color:"inherit"}}))),v=n(69558),b=n(70476),w=Object.defineProperty,x=Object.getOwnPropertySymbols,k=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,E=(e,t,n)=>t in e?w(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const S={variant:"light"},P=(0,r.forwardRef)(((e,t)=>{const n=(0,o.N4)("Alert",S,e),{id:a,className:l,title:s,variant:c,children:u,color:f,classNames:p,icon:d,styles:h,onClose:m,radius:g,withCloseButton:w,closeButtonLabel:P,unstyled:C}=n,j=((e,t)=>{var n={};for(var r in e)k.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&x)for(var r of x(e))t.indexOf(r)<0&&O.call(e,r)&&(n[r]=e[r]);return n})(n,["id","className","title","variant","children","color","classNames","icon","styles","onClose","radius","withCloseButton","closeButtonLabel","unstyled"]),{classes:N,cx:R}=y({color:f,radius:g,variant:c},{classNames:p,styles:h,unstyled:C,name:"Alert"}),I=(0,i.M)(a),z=s&&`${I}-title`,A=`${I}-body`;return r.createElement(v.x,((e,t)=>{for(var n in t||(t={}))k.call(t,n)&&E(e,n,t[n]);if(x)for(var n of x(t))O.call(t,n)&&E(e,n,t[n]);return e})({id:I,role:"alert","aria-labelledby":z,"aria-describedby":A,className:R(N.root,N[c],l),ref:t},j),r.createElement("div",{className:N.wrapper},d&&r.createElement("div",{className:N.icon},d),r.createElement("div",{className:N.body},s&&r.createElement("div",{className:N.title,"data-with-close-button":w||void 0},r.createElement("span",{id:z,className:N.label},s)),w&&r.createElement(b.P,{className:N.closeButton,onClick:m,variant:"transparent",size:16,iconSize:16,"aria-label":P}),r.createElement("div",{id:A,className:N.message},u))))}));P.displayName="@mantine/core/Alert"},31626:function(e,t,n){"use strict";n.d(t,{q:function(){return ne}});var r=n(2784),o=n(59618),i=n(75673),a=Object.defineProperty,l=Object.defineProperties,s=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,p=(e,t,n)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function d(e){return r.createElement("svg",(t=((e,t)=>{for(var n in t||(t={}))u.call(t,n)&&p(e,n,t[n]);if(c)for(var n of c(t))f.call(t,n)&&p(e,n,t[n]);return e})({},e),l(t,s({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"}))),r.createElement("path",{d:"M0.877014 7.49988C0.877014 3.84219 3.84216 0.877045 7.49985 0.877045C11.1575 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1575 14.1227 7.49985 14.1227C3.84216 14.1227 0.877014 11.1575 0.877014 7.49988ZM7.49985 1.82704C4.36683 1.82704 1.82701 4.36686 1.82701 7.49988C1.82701 8.97196 2.38774 10.3131 3.30727 11.3213C4.19074 9.94119 5.73818 9.02499 7.50023 9.02499C9.26206 9.02499 10.8093 9.94097 11.6929 11.3208C12.6121 10.3127 13.1727 8.97172 13.1727 7.49988C13.1727 4.36686 10.6328 1.82704 7.49985 1.82704ZM10.9818 11.9787C10.2839 10.7795 8.9857 9.97499 7.50023 9.97499C6.01458 9.97499 4.71624 10.7797 4.01845 11.9791C4.97952 12.7272 6.18765 13.1727 7.49985 13.1727C8.81227 13.1727 10.0206 12.727 10.9818 11.9787ZM5.14999 6.50487C5.14999 5.207 6.20212 4.15487 7.49999 4.15487C8.79786 4.15487 9.84999 5.207 9.84999 6.50487C9.84999 7.80274 8.79786 8.85487 7.49999 8.85487C6.20212 8.85487 5.14999 7.80274 5.14999 6.50487ZM7.49999 5.10487C6.72679 5.10487 6.09999 5.73167 6.09999 6.50487C6.09999 7.27807 6.72679 7.90487 7.49999 7.90487C8.27319 7.90487 8.89999 7.27807 8.89999 6.50487C8.89999 5.73167 8.27319 5.10487 7.49999 5.10487Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}));var t}var h=Object.defineProperty,m=Object.defineProperties,g=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,w=(e,t,n)=>t in e?h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const x=(0,r.createContext)(null);function k({spacing:e,children:t}){return r.createElement(x.Provider,{value:{spacing:e}},t)}function O(){const e=(0,r.useContext)(x);return e?(t=((e,t)=>{for(var n in t||(t={}))v.call(t,n)&&w(e,n,t[n]);if(y)for(var n of y(t))b.call(t,n)&&w(e,n,t[n]);return e})({},e),m(t,g({withinGroup:!0}))):{spacing:null,withinGroup:!1};var t}var E=n(41319),S=(0,E.k)(((e,{spacing:t})=>({root:{display:"flex",paddingLeft:e.fn.size({size:t,sizes:e.spacing})}}))),P=n(69558),C=Object.defineProperty,j=Object.getOwnPropertySymbols,N=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,I=(e,t,n)=>t in e?C(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const z={},A=(0,r.forwardRef)(((e,t)=>{const n=(0,o.N4)("AvatarGroup",z,e),{children:i,spacing:a="sm",unstyled:l,className:s}=n,c=((e,t)=>{var n={};for(var r in e)N.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&j)for(var r of j(e))t.indexOf(r)<0&&R.call(e,r)&&(n[r]=e[r]);return n})(n,["children","spacing","unstyled","className"]),{classes:u,cx:f}=S({spacing:a},{name:"AvatarGroup",unstyled:l});return r.createElement(k,{spacing:a},r.createElement(P.x,((e,t)=>{for(var n in t||(t={}))N.call(t,n)&&I(e,n,t[n]);if(j)for(var n of j(t))R.call(t,n)&&I(e,n,t[n]);return e})({ref:t,className:f(u.root,s)},c),i))}));A.displayName="@mantine/core/AvatarGroup";var T=Object.defineProperty,D=Object.defineProperties,L=Object.getOwnPropertyDescriptors,M=Object.getOwnPropertySymbols,F=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable,B=(e,t,n)=>t in e?T(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,W=(e,t)=>{for(var n in t||(t={}))F.call(t,n)&&B(e,n,t[n]);if(M)for(var n of M(t))_.call(t,n)&&B(e,n,t[n]);return e},H=(e,t)=>D(e,L(t));const U={xs:16,sm:26,md:38,lg:56,xl:84};function V({withinGroup:e,spacing:t,theme:n}){return e?{marginLeft:-n.fn.size({size:t,sizes:n.spacing}),backgroundColor:`${"dark"===n.colorScheme?n.colors.dark[7]:n.white}`,border:`2px solid ${"dark"===n.colorScheme?n.colors.dark[7]:n.white}`}:null}var $=(0,E.k)(((e,{size:t,radius:n,color:r,withinGroup:o,spacing:i,variant:a,gradient:l})=>{const s=e.fn.variant({variant:a,color:r,gradient:l});return{root:W(H(W({},e.fn.focusStyles()),{WebkitTapHighlightColor:"transparent",boxSizing:"border-box",position:"relative",display:"block",userSelect:"none",overflow:"hidden",width:e.fn.size({size:t,sizes:U}),minWidth:e.fn.size({size:t,sizes:U}),height:e.fn.size({size:t,sizes:U}),borderRadius:e.fn.radius(n),textDecoration:"none",border:0,backgroundColor:"transparent",padding:0}),V({withinGroup:o,spacing:i,theme:e})),image:{objectFit:"cover",width:"100%",height:"100%",display:"block"},placeholder:H(W({},e.fn.fontStyles()),{fontSize:e.fn.size({size:t,sizes:U})/2.5,color:s.color,fontWeight:700,backgroundColor:s.background,display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",userSelect:"none",backgroundImage:"gradient"===a?s.background:void 0,border:`${"gradient"===a?0:1}px solid ${s.border}`,borderRadius:e.fn.radius(n)}),placeholderIcon:{width:"70%",height:"70%",color:s.color}}})),q=Object.defineProperty,Y=Object.defineProperties,X=Object.getOwnPropertyDescriptors,Z=Object.getOwnPropertySymbols,G=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable,Q=(e,t,n)=>t in e?q(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,J=(e,t)=>{for(var n in t||(t={}))G.call(t,n)&&Q(e,n,t[n]);if(Z)for(var n of Z(t))K.call(t,n)&&Q(e,n,t[n]);return e};const ee={size:"md",color:"gray",variant:"light"},te=(0,r.forwardRef)(((e,t)=>{const n=(0,o.N4)("Avatar",ee,e),{className:i,size:a,src:l,alt:s,radius:c,children:u,color:f,variant:p,gradient:h,classNames:m,styles:g,imageProps:y,unstyled:v}=n,b=((e,t)=>{var n={};for(var r in e)G.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Z)for(var r of Z(e))t.indexOf(r)<0&&K.call(e,r)&&(n[r]=e[r]);return n})(n,["className","size","src","alt","radius","children","color","variant","gradient","classNames","styles","imageProps","unstyled"]),w=O(),[x,k]=(0,r.useState)(!l),{classes:E,cx:S}=$({color:f,radius:c,size:a,withinGroup:w.withinGroup,spacing:w.spacing,variant:p,gradient:h},{classNames:m,styles:g,unstyled:v,name:"Avatar"});return(0,r.useEffect)((()=>{k(!l)}),[l]),r.createElement(P.x,J({component:"div",className:S(E.root,i),ref:t},b),x?r.createElement("div",{className:E.placeholder,title:s},u||r.createElement(d,{className:E.placeholderIcon})):r.createElement("img",(C=J({},y),j={className:E.image,src:l,alt:s,onError:()=>k(!0)},Y(C,X(j)))));var C,j}));te.displayName="@mantine/core/Avatar",te.Group=A;const ne=(0,i.F)(te)},3178:function(e,t,n){"use strict";n.d(t,{z:function(){return W}});var r=n(2784),o=n(59618),i=n(75673),a=n(41319),l=(0,a.k)(((e,{orientation:t,buttonBorderWidth:n})=>({root:{display:"flex",flexDirection:"vertical"===t?"column":"row","& [data-button]":{"&:first-of-type":{borderBottomRightRadius:0,["vertical"===t?"borderBottomLeftRadius":"borderTopRightRadius"]:0,["vertical"===t?"borderBottomWidth":"borderRightWidth"]:n/2},"&:last-of-type":{borderTopLeftRadius:0,["vertical"===t?"borderTopRightRadius":"borderBottomLeftRadius"]:0,["vertical"===t?"borderTopWidth":"borderLeftWidth"]:n/2},"&:not(:first-of-type):not(:last-of-type)":{borderRadius:0,["vertical"===t?"borderTopWidth":"borderLeftWidth"]:n/2,["vertical"===t?"borderBottomWidth":"borderRightWidth"]:n/2},"& + [data-button]":{["vertical"===t?"marginTop":"marginLeft"]:-n,"@media (min-resolution: 192dpi)":{["vertical"===t?"marginTop":"marginLeft"]:0}}}}}))),s=n(69558),c=Object.defineProperty,u=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,d=(e,t,n)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const h={orientation:"horizontal",buttonBorderWidth:1},m=(0,r.forwardRef)(((e,t)=>{const n=(0,o.N4)("ButtonGroup",h,e),{className:i,orientation:a,buttonBorderWidth:c,unstyled:m}=n,g=((e,t)=>{var n={};for(var r in e)f.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&u)for(var r of u(e))t.indexOf(r)<0&&p.call(e,r)&&(n[r]=e[r]);return n})(n,["className","orientation","buttonBorderWidth","unstyled"]),{classes:y,cx:v}=l({orientation:a,buttonBorderWidth:c},{name:"ButtonGroup",unstyled:m});return r.createElement(s.x,((e,t)=>{for(var n in t||(t={}))f.call(t,n)&&d(e,n,t[n]);if(u)for(var n of u(t))p.call(t,n)&&d(e,n,t[n]);return e})({className:v(y.root,i),ref:t},g))}));m.displayName="@mantine/core/ButtonGroup";var g=n(47034),y=Object.defineProperty,v=Object.defineProperties,b=Object.getOwnPropertyDescriptors,w=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,O=(e,t,n)=>t in e?y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,E=(e,t)=>{for(var n in t||(t={}))x.call(t,n)&&O(e,n,t[n]);if(w)for(var n of w(t))k.call(t,n)&&O(e,n,t[n]);return e},S=(e,t)=>v(e,b(t));const P={xs:{height:g.J.xs,paddingLeft:14,paddingRight:14},sm:{height:g.J.sm,paddingLeft:18,paddingRight:18},md:{height:g.J.md,paddingLeft:22,paddingRight:22},lg:{height:g.J.lg,paddingLeft:26,paddingRight:26},xl:{height:g.J.xl,paddingLeft:32,paddingRight:32},"compact-xs":{height:22,paddingLeft:7,paddingRight:7},"compact-sm":{height:26,paddingLeft:8,paddingRight:8},"compact-md":{height:30,paddingLeft:10,paddingRight:10},"compact-lg":{height:34,paddingLeft:12,paddingRight:12},"compact-xl":{height:40,paddingLeft:14,paddingRight:14}};function C({compact:e,size:t,withLeftIcon:n,withRightIcon:r}){if(e)return P[`compact-${t}`];const o=P[t];return S(E({},o),{paddingLeft:n?o.paddingLeft/1.5:o.paddingLeft,paddingRight:r?o.paddingRight/1.5:o.paddingRight})}const j=e=>({display:e?"block":"inline-block",width:e?"100%":"auto"});function N({variant:e,theme:t,color:n,gradient:r}){const o=t.fn.variant({color:n,variant:e,gradient:r});return"gradient"===e?{border:0,backgroundImage:o.background,color:o.color,"&:hover":t.fn.hover({backgroundSize:"200%"})}:E({border:`1px solid ${o.border}`,backgroundColor:o.background,color:o.color},t.fn.hover({backgroundColor:o.hover}))}var R=(0,a.k)(((e,{color:t,size:n,radius:r,fullWidth:o,compact:i,gradient:a,variant:l,withLeftIcon:s,withRightIcon:c})=>({root:S(E(S(E(E(E(E({},C({compact:i,size:n,withLeftIcon:s,withRightIcon:c})),e.fn.fontStyles()),e.fn.focusStyles()),j(o)),{borderRadius:e.fn.radius(r),fontWeight:600,position:"relative",lineHeight:1,fontSize:e.fn.size({size:n,sizes:e.fontSizes}),userSelect:"none",cursor:"pointer"}),N({variant:l,theme:e,color:t,gradient:a})),{"&:active":e.activeStyles,"&:disabled, &[data-disabled]":{borderColor:"transparent",backgroundColor:"dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[2],color:"dark"===e.colorScheme?e.colors.dark[6]:e.colors.gray[5],cursor:"not-allowed",backgroundImage:"none",pointerEvents:"none","&:active":{transform:"none"}},"&[data-loading]":{pointerEvents:"none","&::before":{content:'""',position:"absolute",top:-1,left:-1,right:-1,bottom:-1,backgroundColor:"dark"===e.colorScheme?e.fn.rgba(e.colors.dark[7],.5):"rgba(255, 255, 255, .5)",borderRadius:e.fn.radius(r),cursor:"not-allowed"}}}),icon:{display:"flex",alignItems:"center"},leftIcon:{marginRight:10},rightIcon:{marginLeft:10},centerLoader:{position:"absolute",left:"50%",transform:"translateX(-50%)",opacity:.5},inner:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",overflow:"visible"},label:{whiteSpace:"nowrap",height:"100%",overflow:"hidden",display:"flex",alignItems:"center"}}))),I=n(53607),z=n(41696),A=Object.defineProperty,T=Object.getOwnPropertySymbols,D=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable,M=(e,t,n)=>t in e?A(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,F=(e,t)=>{for(var n in t||(t={}))D.call(t,n)&&M(e,n,t[n]);if(T)for(var n of T(t))L.call(t,n)&&M(e,n,t[n]);return e};const _={size:"sm",type:"button",variant:"filled",loaderPosition:"left"},B=(0,r.forwardRef)(((e,t)=>{const n=(0,o.N4)("Button",_,e),{className:i,size:a,color:l,type:s,disabled:c,children:u,leftIcon:f,rightIcon:p,fullWidth:d,variant:h,radius:m,uppercase:g,compact:y,loading:v,loaderPosition:b,loaderProps:w,gradient:x,classNames:k,styles:O,unstyled:E}=n,S=((e,t)=>{var n={};for(var r in e)D.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&T)for(var r of T(e))t.indexOf(r)<0&&L.call(e,r)&&(n[r]=e[r]);return n})(n,["className","size","color","type","disabled","children","leftIcon","rightIcon","fullWidth","variant","radius","uppercase","compact","loading","loaderPosition","loaderProps","gradient","classNames","styles","unstyled"]),{classes:C,cx:j,theme:N}=R({radius:m,color:l,size:a,fullWidth:d,compact:y,gradient:x,variant:h,withLeftIcon:!!f,withRightIcon:!!p},{name:"Button",unstyled:E,classNames:k,styles:O}),A=N.fn.variant({color:l,variant:h}),M=r.createElement(I.a,F({color:A.color,size:N.fn.size({size:a,sizes:P}).height/2},w));return r.createElement(z.k,F({className:j(C.root,i),type:s,disabled:c,"data-button":!0,"data-disabled":c||void 0,"data-loading":v||void 0,ref:t,unstyled:E},S),r.createElement("div",{className:C.inner},(f||v&&"left"===b)&&r.createElement("span",{className:j(C.icon,C.leftIcon)},v&&"left"===b?M:f),v&&"center"===b&&r.createElement("span",{className:C.centerLoader},M),r.createElement("span",{className:C.label,style:{textTransform:g?"uppercase":void 0}},u),(p||v&&"right"===b)&&r.createElement("span",{className:j(C.icon,C.rightIcon)},v&&"right"===b?M:p)))}));B.displayName="@mantine/core/Button",B.Group=m;const W=(0,i.F)(B)},57591:function(e,t,n){"use strict";n.d(t,{M:function(){return h}});var r=n(2784),o=n(59618),i=n(86246),a=n(75673),l=n(69558),s=Object.defineProperty,c=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,p=(e,t,n)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const d=(0,r.forwardRef)(((e,t)=>{const n=(0,o.N4)("Center",{},e),{inline:a,sx:s}=n,d=((e,t)=>{var n={};for(var r in e)u.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&c)for(var r of c(e))t.indexOf(r)<0&&f.call(e,r)&&(n[r]=e[r]);return n})(n,["inline","sx"]);return r.createElement(l.x,((e,t)=>{for(var n in t||(t={}))u.call(t,n)&&p(e,n,t[n]);if(c)for(var n of c(t))f.call(t,n)&&p(e,n,t[n]);return e})({ref:t,sx:[{display:a?"inline-flex":"flex",alignItems:"center",justifyContent:"center"},...(0,i.R)(s)]},d))}));d.displayName="@mantine/core/Center";const h=(0,a.F)(d)},82073:function(e,t,n){"use strict";n.d(t,{S:function(){return d}});var r=n(2784),o=n(59618),i=n(80603),a=n(5248),l=Object.defineProperty,s=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,f=(e,t,n)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const p={multiple:!1},d=(0,r.forwardRef)(((e,t)=>{const n=(0,o.N4)("FileButton",p,e),{onChange:l,children:d,multiple:h,accept:m,name:g,form:y,resetRef:v,disabled:b,capture:w}=n,x=((e,t)=>{var n={};for(var r in e)c.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&s)for(var r of s(e))t.indexOf(r)<0&&u.call(e,r)&&(n[r]=e[r]);return n})(n,["onChange","children","multiple","accept","name","form","resetRef","disabled","capture"]),k=(0,r.useRef)();return(0,i.k)(v,(()=>{k.current.value=""})),r.createElement(r.Fragment,null,d(((e,t)=>{for(var n in t||(t={}))c.call(t,n)&&f(e,n,t[n]);if(s)for(var n of s(t))u.call(t,n)&&f(e,n,t[n]);return e})({onClick:()=>{!b&&k.current.click()}},x)),r.createElement("input",{style:{display:"none"},type:"file",accept:m,multiple:h,onChange:e=>{l(h?Array.from(e.currentTarget.files):e.currentTarget.files[0]||null)},ref:(0,a.Y)(t,k),name:g,form:y,capture:w}))}));d.displayName="@mantine/core/FileButton"},19245:function(e,t,n){"use strict";n.d(t,{J:function(){return j}});var r=n(2784),o=n(59618),i=n(94594),a=n(79061),l=n(41319),s=Object.defineProperty,c=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,p=(e,t,n)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,d=(e,t)=>{for(var n in t||(t={}))u.call(t,n)&&p(e,n,t[n]);if(c)for(var n of c(t))f.call(t,n)&&p(e,n,t[n]);return e};const h=(e,t)=>"content"===e?"auto":"auto"===e?"0px":e?100/(t/e)+"%":void 0,m=(e,t,n)=>n||"auto"===e||"content"===e?"unset":h(e,t),g=(e,t)=>{if(e)return"auto"===e||t?1:0},y=(e,t)=>0===e?0:e?100/(t/e)+"%":void 0,v=(e,t)=>"undefined"!==typeof e?t.fn.size({size:e,sizes:t.spacing})/2:void 0;function b({sizes:e,offsets:t,orders:n,theme:r,columns:o,gutters:i,grow:l}){return a.j1.reduce(((a,s)=>(a[`@media (min-width: ${r.breakpoints[s]}px)`]={order:n[s],flexBasis:h(e[s],o),padding:v(i[s],r),flexShrink:0,width:"content"===e[s]?"auto":void 0,maxWidth:m(e[s],o,l),marginLeft:y(t[s],o),flexGrow:g(e[s],l)},a)),{})}var w=(0,l.k)(((e,{gutter:t,gutterXs:n,gutterSm:r,gutterMd:o,gutterLg:i,gutterXl:a,grow:l,offset:s,offsetXs:c,offsetSm:u,offsetMd:f,offsetLg:p,offsetXl:w,columns:x,span:k,xs:O,sm:E,md:S,lg:P,xl:C,order:j,orderXs:N,orderSm:R,orderMd:I,orderLg:z,orderXl:A})=>({col:d({boxSizing:"border-box",flexGrow:g(k,l),order:j,padding:v(t,e),marginLeft:y(s,x),flexBasis:h(k,x),flexShrink:0,width:"content"===k?"auto":void 0,maxWidth:m(k,x,l)},b({sizes:{xs:O,sm:E,md:S,lg:P,xl:C},offsets:{xs:c,sm:u,md:f,lg:p,xl:w},orders:{xs:N,sm:R,md:I,lg:z,xl:A},gutters:{xs:n,sm:r,md:o,lg:i,xl:a},theme:e,columns:x,grow:l}))}))),x=n(69558),k=Object.defineProperty,O=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable,P=(e,t,n)=>t in e?k(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const C={};const j=(0,r.forwardRef)(((e,t)=>{const n=(0,o.N4)("GridCol",C,e),{children:a,span:l,offset:s,offsetXs:c,offsetSm:u,offsetMd:f,offsetLg:p,offsetXl:d,xs:h,sm:m,md:g,lg:y,xl:v,order:b,orderXs:k,orderSm:j,orderMd:N,orderLg:R,orderXl:I,className:z,id:A,unstyled:T}=n,D=((e,t)=>{var n={};for(var r in e)E.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&O)for(var r of O(e))t.indexOf(r)<0&&S.call(e,r)&&(n[r]=e[r]);return n})(n,["children","span","offset","offsetXs","offsetSm","offsetMd","offsetLg","offsetXl","xs","sm","md","lg","xl","order","orderXs","orderSm","orderMd","orderLg","orderXl","className","id","unstyled"]),L=(0,i.n)(),M=l||L.columns,{classes:F,cx:_}=w({gutter:L.gutter,gutterXs:L.gutterXs,gutterSm:L.gutterSm,gutterMd:L.gutterMd,gutterLg:L.gutterLg,gutterXl:L.gutterXl,offset:s,offsetXs:c,offsetSm:u,offsetMd:f,offsetLg:p,offsetXl:d,xs:h,sm:m,md:g,lg:y,xl:v,order:b,orderXs:k,orderSm:j,orderMd:N,orderLg:R,orderXl:I,grow:L.grow,columns:L.columns,span:M},{unstyled:T,name:"Grid"});return!function(e){return"auto"===e||"content"===e||"number"===typeof e&&e>0&&e%1===0}(M)||M>L.columns?null:r.createElement(x.x,((e,t)=>{for(var n in t||(t={}))E.call(t,n)&&P(e,n,t[n]);if(O)for(var n of O(t))S.call(t,n)&&P(e,n,t[n]);return e})({className:_(F.col,z),ref:t},D),a)}));j.displayName="@mantine/core/Col"},94594:function(e,t,n){"use strict";n.d(t,{k:function(){return o},n:function(){return i}});var r=n(50855);const[o,i]=(0,r.R)("Grid component was not found in tree")},51389:function(e,t,n){"use strict";n.d(t,{Grid:function(){return E}});var r=n(2784),o=n(59618),i=n(19245),a=n(94594),l=n(79061),s=n(41319),c=Object.defineProperty,u=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,d=(e,t,n)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,h=(e,t)=>{for(var n in t||(t={}))f.call(t,n)&&d(e,n,t[n]);if(u)for(var n of u(t))p.call(t,n)&&d(e,n,t[n]);return e};function m(e,t){return l.j1.reduce(((n,r)=>("undefined"!==typeof e[r]&&(n[`@media (min-width: ${t.breakpoints[r]}px)`]={margin:-t.fn.size({size:e[r],sizes:t.spacing})/2}),n)),{})}var g=(0,s.k)(((e,{justify:t,align:n,gutter:r,gutterXs:o,gutterSm:i,gutterMd:a,gutterLg:l,gutterXl:s})=>({root:h({margin:-e.fn.size({size:r,sizes:e.spacing})/2,display:"flex",flexWrap:"wrap",justifyContent:t,alignItems:n},m({xs:o,sm:i,md:a,lg:l,xl:s},e))}))),y=n(69558),v=Object.defineProperty,b=Object.getOwnPropertySymbols,w=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,k=(e,t,n)=>t in e?v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const O={gutter:"md",justify:"flex-start",align:"stretch",columns:12},E=(0,r.forwardRef)(((e,t)=>{const n=(0,o.N4)("Grid",O,e),{gutter:i,gutterXs:l,gutterSm:s,gutterMd:c,gutterLg:u,gutterXl:f,children:p,grow:d,justify:h,align:m,columns:v,className:E,id:S,unstyled:P}=n,C=((e,t)=>{var n={};for(var r in e)w.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&b)for(var r of b(e))t.indexOf(r)<0&&x.call(e,r)&&(n[r]=e[r]);return n})(n,["gutter","gutterXs","gutterSm","gutterMd","gutterLg","gutterXl","children","grow","justify","align","columns","className","id","unstyled"]),{classes:j,cx:N}=g({gutter:i,justify:h,align:m,gutterXs:l,gutterSm:s,gutterMd:c,gutterLg:u,gutterXl:f},{unstyled:P,name:"Grid"});return r.createElement(a.k,{value:{gutter:i,gutterXs:l,gutterSm:s,gutterMd:c,gutterLg:u,gutterXl:f,grow:d,columns:v}},r.createElement(y.x,((e,t)=>{for(var n in t||(t={}))w.call(t,n)&&k(e,n,t[n]);if(b)for(var n of b(t))x.call(t,n)&&k(e,n,t[n]);return e})({className:N(j.root,E),ref:t},C),p))}));E.Col=i.J,E.displayName="@mantine/core/Grid"},4678:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(2784),o=n(59618);var i=n(41319);const a={left:"flex-start",center:"center",right:"flex-end",apart:"space-between"};var l=(0,i.k)(((e,{spacing:t,position:n,noWrap:r,grow:o,align:i,count:l})=>({root:{boxSizing:"border-box",display:"flex",flexDirection:"row",alignItems:i||"center",flexWrap:r?"nowrap":"wrap",justifyContent:a[n],gap:e.fn.size({size:t,sizes:e.spacing}),"& > *":{boxSizing:"border-box",maxWidth:o?`calc(${100/l}% - ${e.fn.size({size:t,sizes:e.spacing})-e.fn.size({size:t,sizes:e.spacing})/l}px)`:void 0,flexGrow:o?1:0}}}))),s=n(69558),c=Object.defineProperty,u=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,d=(e,t,n)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const h={position:"left",spacing:"md"},m=(0,r.forwardRef)(((e,t)=>{const n=(0,o.N4)("Group",h,e),{className:i,position:a,align:c,children:m,noWrap:g,grow:y,spacing:v,unstyled:b}=n,w=((e,t)=>{var n={};for(var r in e)f.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&u)for(var r of u(e))t.indexOf(r)<0&&p.call(e,r)&&(n[r]=e[r]);return n})(n,["className","position","align","children","noWrap","grow","spacing","unstyled"]),x=function(e){return r.Children.toArray(e).filter(Boolean)}(m),{classes:k,cx:O}=l({align:c,grow:y,noWrap:g,spacing:v,position:a,count:x.length},{unstyled:b,name:"Group"});return r.createElement(s.x,((e,t)=>{for(var n in t||(t={}))f.call(t,n)&&d(e,n,t[n]);if(u)for(var n of u(t))p.call(t,n)&&d(e,n,t[n]);return e})({className:O(k.root,i),ref:t},w),x)}));m.displayName="@mantine/core/Group"},79830:function(e,t,n){"use strict";n.d(t,{E:function(){return z}});var r=n(2784),o=n(59618),i=n(55913),a=Object.defineProperty,l=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,u=(e,t,n)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function f(e){return r.createElement("svg",((e,t)=>{for(var n in t||(t={}))s.call(t,n)&&u(e,n,t[n]);if(l)for(var n of l(t))c.call(t,n)&&u(e,n,t[n]);return e})({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{d:"M2.5 1H12.5C13.3284 1 14 1.67157 14 2.5V12.5C14 13.3284 13.3284 14 12.5 14H2.5C1.67157 14 1 13.3284 1 12.5V2.5C1 1.67157 1.67157 1 2.5 1ZM2.5 2C2.22386 2 2 2.22386 2 2.5V8.3636L3.6818 6.6818C3.76809 6.59551 3.88572 6.54797 4.00774 6.55007C4.12975 6.55216 4.24568 6.60372 4.32895 6.69293L7.87355 10.4901L10.6818 7.6818C10.8575 7.50607 11.1425 7.50607 11.3182 7.6818L13 9.3636V2.5C13 2.22386 12.7761 2 12.5 2H2.5ZM2 12.5V9.6364L3.98887 7.64753L7.5311 11.4421L8.94113 13H2.5C2.22386 13 2 12.7761 2 12.5ZM12.5 13H10.155L8.48336 11.153L11 8.6364L13 10.6364V12.5C13 12.7761 12.7761 13 12.5 13ZM6.64922 5.5C6.64922 5.03013 7.03013 4.64922 7.5 4.64922C7.96987 4.64922 8.35078 5.03013 8.35078 5.5C8.35078 5.96987 7.96987 6.35078 7.5 6.35078C7.03013 6.35078 6.64922 5.96987 6.64922 5.5ZM7.5 3.74922C6.53307 3.74922 5.74922 4.53307 5.74922 5.5C5.74922 6.46693 6.53307 7.25078 7.5 7.25078C8.46693 7.25078 9.25078 6.46693 9.25078 5.5C9.25078 4.53307 8.46693 3.74922 7.5 3.74922Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}var p=n(41319),d=Object.defineProperty,h=Object.defineProperties,m=Object.getOwnPropertyDescriptors,g=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable,b=(e,t,n)=>t in e?d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,w=(e,t)=>{for(var n in t||(t={}))y.call(t,n)&&b(e,n,t[n]);if(g)for(var n of g(t))v.call(t,n)&&b(e,n,t[n]);return e},x=(e,t)=>h(e,m(t)),k=(0,p.k)(((e,{radius:t})=>({root:{},imageWrapper:{position:"relative"},figure:{margin:0},image:x(w({},e.fn.fontStyles()),{display:"block",width:"100%",height:"100%",border:0,borderRadius:e.fn.size({size:t,sizes:e.radius})}),caption:{color:"dark"===e.colorScheme?e.colors.dark[2]:e.colors.gray[7],marginTop:e.spacing.xs},placeholder:x(w({},e.fn.cover()),{display:"flex",alignItems:"center",justifyContent:"center",color:"dark"===e.colorScheme?e.colors.dark[2]:e.colors.gray[6],backgroundColor:"dark"===e.colorScheme?e.colors.dark[8]:e.colors.gray[0],borderRadius:e.fn.size({size:t,sizes:e.radius})})}))),O=n(69558),E=n(37327),S=Object.defineProperty,P=Object.getOwnPropertySymbols,C=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable,N=(e,t,n)=>t in e?S(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,R=(e,t)=>{for(var n in t||(t={}))C.call(t,n)&&N(e,n,t[n]);if(P)for(var n of P(t))j.call(t,n)&&N(e,n,t[n]);return e};const I={fit:"cover",width:"100%",height:"auto",radius:0},z=(0,r.forwardRef)(((e,t)=>{const n=(0,o.N4)("Image",I,e),{className:a,alt:l,src:s,fit:c,width:u,height:p,radius:d,imageProps:h,withPlaceholder:m,placeholder:g,imageRef:y,classNames:v,styles:b,caption:w,unstyled:x,style:S}=n,N=((e,t)=>{var n={};for(var r in e)C.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&P)for(var r of P(e))t.indexOf(r)<0&&j.call(e,r)&&(n[r]=e[r]);return n})(n,["className","alt","src","fit","width","height","radius","imageProps","withPlaceholder","placeholder","imageRef","classNames","styles","caption","unstyled","style"]),{classes:z,cx:A}=k({radius:d},{classNames:v,styles:b,unstyled:x,name:"Image"}),[T,D]=(0,r.useState)(!s),L=m&&T;return(0,i.l)((()=>{D(!s)}),[s]),r.createElement(O.x,R({className:A(z.root,a),ref:t,style:R({width:u},S)},N),r.createElement("figure",{className:z.figure},r.createElement("div",{className:z.imageWrapper},r.createElement("img",R({className:z.image,src:s,alt:l,style:{objectFit:c,width:u,height:p},ref:y,onError:e=>{D(!0),"function"===typeof(null==h?void 0:h.onError)&&h.onError(e)}},h)),L&&r.createElement("div",{className:z.placeholder,title:l},g||r.createElement("div",null,r.createElement(f,{style:{width:40,height:40}})))),!!w&&r.createElement(E.x,{component:"figcaption",size:"sm",align:"center",className:z.caption},w)))}));z.displayName="@mantine/core/Image"},41123:function(e,t,n){"use strict";n.d(t,{z:function(){return L}});var r=n(2784),o=n(51464),i=n(59618),a=n(28165),l=n(41319),s=Object.defineProperty,c=Object.defineProperties,u=Object.getOwnPropertyDescriptors,f=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,h=(e,t,n)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,m=(e,t)=>{for(var n in t||(t={}))p.call(t,n)&&h(e,n,t[n]);if(f)for(var n of f(t))d.call(t,n)&&h(e,n,t[n]);return e},g=(e,t)=>c(e,u(t));const y=e=>(0,a.F4)({from:{boxShadow:`0 0 0.5px 0 ${e}`,opacity:.6},to:{boxShadow:`0 0 0.5px 4.4px ${e}`,opacity:0}});function v(e,t=0){const n={},[r,o]=e.split("-");let i="",a="";return"top"===r&&(n.top=t,a="-50%"),"middle"===r&&(n.top="50%",a="-50%"),"bottom"===r&&(n.bottom=t,a="50%"),"start"===o&&(n.left=t,i="-50%"),"center"===o&&(n.left="50%",i="-50%"),"end"===o&&(n.right=t,i="50%"),n.transform=`translate(${i}, ${a})`,n}var b=(0,l.k)(((e,{radius:t,size:n,color:r,position:o,offset:i,inline:a,withBorder:l,withLabel:s,zIndex:c})=>{const{background:u}=e.fn.variant({variant:"filled",primaryFallback:!1,color:r||e.primaryColor});return{root:{position:"relative",display:a?"inline-block":"block"},indicator:g(m({},v(o,i)),{zIndex:c,position:"absolute",[s?"minWidth":"width"]:n,height:n,display:"flex",justifyContent:"center",alignItems:"center",fontSize:e.fontSizes.xs,paddingLeft:s?`calc(${e.spacing.xs}px / 2)`:0,paddingRight:s?`calc(${e.spacing.xs}px / 2)`:0,borderRadius:e.fn.size({size:t,sizes:e.radius}),backgroundColor:e.fn.variant({variant:"filled",primaryFallback:!1,color:r||e.primaryColor}).background,border:l?`2px solid ${"dark"===e.colorScheme?e.colors.dark[7]:e.white}`:void 0,color:e.white,whiteSpace:"nowrap"}),processing:{animation:`${y(u)} 1000ms linear infinite`},common:g(m({},v(o,i)),{position:"absolute",[s?"minWidth":"width"]:n,height:n,borderRadius:e.fn.size({size:t,sizes:e.radius})})}}));function w(e){const t=(0,r.useRef)();return(0,r.useEffect)((()=>{t.current=e}),[e]),t.current}const x=(0,a.F4)({from:{transform:"translateY(-60%)",opacity:0},to:{transform:"translateY(0%)",opacity:1}}),k=(0,a.F4)({from:{transform:"translateY(60%)",opacity:0},to:{transform:"translateY(0%)",opacity:1}}),O=(0,a.F4)({from:{transform:"translateY(0%)",opacity:1},to:{transform:"translateY(-60%)",opacity:0}}),E=(0,a.F4)({from:{transform:"translateY(0%)",opacity:1},to:{transform:"translateY(60%)",opacity:0}});var S=(0,l.k)((()=>({baseNumber:{height:18,width:"0.6em",maxWidth:"0.6em",position:"relative",display:"inline-block"},oldNumberTop:{transform:"translateY(-100%);"},oldNumberBottom:{transform:"translateY(100%);"},oldNumber:{display:"inline-block",opacity:0,position:"absolute",left:0,right:0},currentNumberTop:{transform:"translateY(0%);"},currentNumber:{display:"inline-block",opacity:1,position:"absolute",top:0,bottom:0,left:0,right:0},currentNumberScrollDown:{animation:`${x} .2s cubic-bezier(0,0,.2, 1)`,animationIterationCount:1},currentNumberScrollUp:{animation:`${k} .2s cubic-bezier(0,0,.2, 1)`,animationIterationCount:1},oldNumberScrollUp:{animation:`${O} .2s cubic-bezier(0,0,.2, 1)`,animationIterationCount:1},oldNumberScrollDown:{animation:`${E} .2s cubic-bezier(0,0,.2, 1)`,animationIterationCount:1}})));const P=(0,r.forwardRef)(((e,t)=>{const[n,o]=(0,r.useState)(e.value),[i,a]=(0,r.useState)(e.value),[l,s]=(0,r.useState)("up"),[c,u]=(0,r.useState)(!1),f=w(e.value),p=e=>{u(!0),s(e),setTimeout((()=>{u(!1)}),180)};(0,r.useEffect)((()=>{o(f),a(e.value),(()=>{const{newOriginalNumber:t,oldOriginalNumber:n}=e;null!=t&&null!=n&&(t>n?p("up"):tc?"up"===l?d.currentNumberScrollUp:d.currentNumberScrollDown:null),[c,l]),g=(0,r.useMemo)((()=>c?"up"===l?d.oldNumberScrollUp:d.oldNumberScrollDown:null),[c,l]);return r.createElement("span",{ref:t,className:d.baseNumber},n&&r.createElement("span",{className:h(d.oldNumber,d.currentNumberTop,g)},n)||null,r.createElement("span",null,r.createElement("span",{className:h(d.currentNumber,m)},i)),n&&r.createElement("span",{className:h(d.oldNumber,d.oldNumberBottom,g)},n)||null)}));var C=(0,l.k)((()=>({base:{display:"flex",alignItems:"center",overflow:"hidden"}})));const j=(0,r.forwardRef)((({value:e=0,max:t},n)=>{const[o,i]=(0,r.useState)(),[a,l]=(0,r.useState)(),s=w(e);(0,r.useEffect)((()=>{"string"===typeof e?(i(void 0),l(void 0)):"string"===typeof s?(i(void 0),l(e)):(i(s),l(e))}),[e,s]);const c=(0,r.useMemo)((()=>{if("string"===typeof e)return[];if(e<1)return[0];const n=[];let r=e;for("number"===typeof t&&(r=Math.min(t,r));r>=1;)n.push(r%10),r/=10,r=Math.floor(r);return n.reverse(),n}),[e,t]),{classes:u}=C(null,{name:"machine"});return"string"===typeof e?r.createElement("span",{ref:n},e):r.createElement("span",{ref:n,className:u.base},c.map(((e,t)=>r.createElement(P,{key:c.length-t-1,value:e,oldOriginalNumber:o,newOriginalNumber:a}))),"number"===typeof t&&e>t&&r.createElement("span",null,"+"))}));var N=n(69558),R=Object.defineProperty,I=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable,T=(e,t,n)=>t in e?R(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const D={position:"top-end",offset:0,inline:!1,withBorder:!1,disabled:!1,showZero:!0,processing:!1,dot:!0,size:10,overflowCount:99,radius:1e3,zIndex:(0,o.w)("app")},L=(0,r.forwardRef)(((e,t)=>{const n=(0,i.N4)("Indicator",D,e),{children:o,position:a,offset:l,size:s,radius:c,inline:u,withBorder:f,className:p,color:d,dot:h,styles:m,label:g,overflowCount:y,showZero:v,classNames:w,disabled:x,zIndex:k,unstyled:O,processing:E}=n,S=((e,t)=>{var n={};for(var r in e)z.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&I)for(var r of I(e))t.indexOf(r)<0&&A.call(e,r)&&(n[r]=e[r]);return n})(n,["children","position","offset","size","radius","inline","withBorder","className","color","dot","styles","label","overflowCount","showZero","classNames","disabled","zIndex","unstyled","processing"]),{classes:P,cx:C}=b({position:a,offset:l,size:s,radius:c,inline:u,color:d,withBorder:f,zIndex:k,withLabel:!!g},{name:"Indicator",classNames:w,styles:m,unstyled:O}),R=(0,r.useMemo)((()=>"number"===typeof g?r.createElement(j,{value:g,max:y}):g),[g,y]),L=(0,r.useMemo)((()=>!x&&(h||null!=g&&!(g<=0&&!v))),[x,g,v]);return r.createElement(N.x,((e,t)=>{for(var n in t||(t={}))z.call(t,n)&&T(e,n,t[n]);if(I)for(var n of I(t))A.call(t,n)&&T(e,n,t[n]);return e})({ref:t,className:C(P.root,p)},S),L&&r.createElement(r.Fragment,null,r.createElement("div",{className:C(P.indicator,P.common)},R),E&&r.createElement("div",{className:C(P.processing,P.common)})),o)}));L.displayName="@mantine/core/Indicator"},94282:function(e,t,n){"use strict";n.d(t,{I:function(){return Oe}});var r=n(2784),o=n(59618),i=n(75673),a=n(41319),l=(0,a.k)(((e,{size:t})=>({label:{display:"inline-block",fontSize:e.fn.size({size:t,sizes:e.fontSizes}),fontWeight:500,color:"dark"===e.colorScheme?e.colors.dark[0]:e.colors.gray[9],wordBreak:"break-word",cursor:"default",WebkitTapHighlightColor:"transparent"},required:{color:e.fn.variant({variant:"filled",color:"red"}).background}}))),s=n(69558),c=Object.defineProperty,u=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,d=(e,t,n)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const h={labelElement:"label",size:"sm"},m=(0,r.forwardRef)(((e,t)=>{const n=(0,o.N4)("InputLabel",h,e),{labelElement:i,children:a,required:c,size:m,classNames:g,styles:y,unstyled:v,className:b,htmlFor:w,__staticSelector:x}=n,k=((e,t)=>{var n={};for(var r in e)f.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&u)for(var r of u(e))t.indexOf(r)<0&&p.call(e,r)&&(n[r]=e[r]);return n})(n,["labelElement","children","required","size","classNames","styles","unstyled","className","htmlFor","__staticSelector"]),{classes:O,cx:E}=l({size:m},{name:["InputWrapper",x],classNames:g,styles:y,unstyled:v});return r.createElement(s.x,((e,t)=>{for(var n in t||(t={}))f.call(t,n)&&d(e,n,t[n]);if(u)for(var n of u(t))p.call(t,n)&&d(e,n,t[n]);return e})({component:i,ref:t,className:E(O.label,b),htmlFor:"label"===i?w:void 0},k),a,c&&r.createElement("span",{className:O.required,"aria-hidden":!0}," *"))}));m.displayName="@mantine/core/InputLabel";var g=(0,a.k)(((e,{size:t})=>({error:{wordBreak:"break-word",color:e.fn.variant({variant:"filled",color:"red"}).background,fontSize:e.fn.size({size:t,sizes:e.fontSizes})-2,lineHeight:1.2,display:"block"}}))),y=n(37327),v=Object.defineProperty,b=Object.getOwnPropertySymbols,w=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,k=(e,t,n)=>t in e?v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const O={size:"sm"},E=(0,r.forwardRef)(((e,t)=>{const n=(0,o.N4)("InputError",O,e),{children:i,className:a,classNames:l,styles:s,unstyled:c,size:u,__staticSelector:f}=n,p=((e,t)=>{var n={};for(var r in e)w.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&b)for(var r of b(e))t.indexOf(r)<0&&x.call(e,r)&&(n[r]=e[r]);return n})(n,["children","className","classNames","styles","unstyled","size","__staticSelector"]),{classes:d,cx:h}=g({size:u},{name:["InputWrapper",f],classNames:l,styles:s,unstyled:c});return r.createElement(y.x,((e,t)=>{for(var n in t||(t={}))w.call(t,n)&&k(e,n,t[n]);if(b)for(var n of b(t))x.call(t,n)&&k(e,n,t[n]);return e})({className:h(d.error,a),ref:t},p),i)}));E.displayName="@mantine/core/InputError";var S=(0,a.k)(((e,{size:t})=>({description:{wordBreak:"break-word",color:"dark"===e.colorScheme?e.colors.dark[2]:e.colors.gray[6],fontSize:e.fn.size({size:t,sizes:e.fontSizes})-2,lineHeight:1.2,display:"block"}}))),P=Object.defineProperty,C=Object.getOwnPropertySymbols,j=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable,R=(e,t,n)=>t in e?P(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const I={size:"sm"},z=(0,r.forwardRef)(((e,t)=>{const n=(0,o.N4)("InputDescription",I,e),{children:i,className:a,classNames:l,styles:s,unstyled:c,size:u,__staticSelector:f}=n,p=((e,t)=>{var n={};for(var r in e)j.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&C)for(var r of C(e))t.indexOf(r)<0&&N.call(e,r)&&(n[r]=e[r]);return n})(n,["children","className","classNames","styles","unstyled","size","__staticSelector"]),{classes:d,cx:h}=S({size:u},{name:["InputWrapper",f],classNames:l,styles:s,unstyled:c});return r.createElement(y.x,((e,t)=>{for(var n in t||(t={}))j.call(t,n)&&R(e,n,t[n]);if(C)for(var n of C(t))N.call(t,n)&&R(e,n,t[n]);return e})({color:"dimmed",className:h(d.description,a),ref:t,unstyled:c},p),i)}));z.displayName="@mantine/core/InputDescription";const A=(0,r.createContext)({offsetBottom:!1,offsetTop:!1,describedBy:void 0}),T=A.Provider;function D(e,{hasDescription:t,hasError:n}){const r=e.findIndex((e=>"input"===e)),o=e[r-1],i=e[r+1];return{offsetBottom:t&&"description"===i||n&&"error"===i,offsetTop:t&&"description"===o||n&&"error"===o}}var L=Object.defineProperty,M=Object.defineProperties,F=Object.getOwnPropertyDescriptors,_=Object.getOwnPropertySymbols,B=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable,H=(e,t,n)=>t in e?L(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,U=(e,t)=>{for(var n in t||(t={}))B.call(t,n)&&H(e,n,t[n]);if(_)for(var n of _(t))W.call(t,n)&&H(e,n,t[n]);return e},V=(0,a.k)((e=>{return{root:(t=U({},e.fn.fontStyles()),n={lineHeight:e.lineHeight},M(t,F(n)))};var t,n})),$=Object.defineProperty,q=Object.defineProperties,Y=Object.getOwnPropertyDescriptors,X=Object.getOwnPropertySymbols,Z=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable,K=(e,t,n)=>t in e?$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Q=(e,t)=>{for(var n in t||(t={}))Z.call(t,n)&&K(e,n,t[n]);if(X)for(var n of X(t))G.call(t,n)&&K(e,n,t[n]);return e},J=(e,t)=>q(e,Y(t));const ee={labelElement:"label",size:"sm",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},te=(0,r.forwardRef)(((e,t)=>{const n=(0,o.N4)("InputWrapper",ee,e),{className:i,label:a,children:l,required:c,id:u,error:f,description:p,labelElement:d,labelProps:h,descriptionProps:g,errorProps:y,classNames:v,styles:b,size:w,inputContainer:x,__staticSelector:k,unstyled:O,inputWrapperOrder:S,withAsterisk:P}=n,C=((e,t)=>{var n={};for(var r in e)Z.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&X)for(var r of X(e))t.indexOf(r)<0&&G.call(e,r)&&(n[r]=e[r]);return n})(n,["className","label","children","required","id","error","description","labelElement","labelProps","descriptionProps","errorProps","classNames","styles","size","inputContainer","__staticSelector","unstyled","inputWrapperOrder","withAsterisk"]),{classes:j,cx:N}=V(null,{classNames:v,styles:b,name:["InputWrapper",k],unstyled:O}),R={classNames:v,styles:b,unstyled:O,size:w,__staticSelector:k},I="boolean"===typeof P?P:c,A=u?`${u}-error`:null==y?void 0:y.id,L=u?`${u}-description`:null==g?void 0:g.id,M=`${!!f&&"boolean"!==typeof f?A:""} ${p?L:""}`,F=M.trim().length>0?M.trim():void 0,_=a&&r.createElement(m,Q(Q({key:"label",labelElement:d,id:u?`${u}-label`:void 0,htmlFor:u,required:I},R),h),a),B=p&&r.createElement(z,J(Q(Q({key:"description"},g),R),{size:(null==g?void 0:g.size)||R.size,id:(null==g?void 0:g.id)||L}),p),W=r.createElement(r.Fragment,{key:"input"},x(l)),H="boolean"!==typeof f&&f&&r.createElement(E,J(Q(Q({},y),R),{size:(null==y?void 0:y.size)||R.size,key:"error",id:(null==y?void 0:y.id)||A}),f),U=S.map((e=>{switch(e){case"label":return _;case"input":return W;case"description":return B;case"error":return H;default:return null}}));return r.createElement(T,{value:Q({describedBy:F},D(S,{hasDescription:!!B,hasError:!!H}))},r.createElement(s.x,Q({className:N(j.root,i),ref:t},C),U))}));te.displayName="@mantine/core/InputWrapper";var ne=n(86246),re=Object.defineProperty,oe=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,le=(e,t,n)=>t in e?re(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const se={},ce=(0,r.forwardRef)(((e,t)=>{const n=(0,o.N4)("InputPlaceholder",se,e),{sx:i}=n,a=((e,t)=>{var n={};for(var r in e)ie.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&oe)for(var r of oe(e))t.indexOf(r)<0&&ae.call(e,r)&&(n[r]=e[r]);return n})(n,["sx"]);return r.createElement(s.x,((e,t)=>{for(var n in t||(t={}))ie.call(t,n)&&le(e,n,t[n]);if(oe)for(var n of oe(t))ae.call(t,n)&&le(e,n,t[n]);return e})({component:"span",sx:[e=>e.fn.placeholderStyles(),...(0,ne.R)(i)],ref:t},a))}));ce.displayName="@mantine/core/InputPlaceholder";var ue=n(47034),fe=n(35100),pe=Object.defineProperty,de=Object.defineProperties,he=Object.getOwnPropertyDescriptors,me=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,ve=(e,t,n)=>t in e?pe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,be=(e,t)=>{for(var n in t||(t={}))ge.call(t,n)&&ve(e,n,t[n]);if(me)for(var n of me(t))ye.call(t,n)&&ve(e,n,t[n]);return e},we=(e,t)=>de(e,he(t));const xe={rightSectionWidth:36,size:"sm",variant:"default"},ke=(0,r.forwardRef)(((e,t)=>{const n=(0,o.N4)("Input",xe,e),{className:i,invalid:a,required:l,disabled:c,variant:u,icon:f,style:p,rightSectionWidth:d,iconWidth:h,rightSection:m,rightSectionProps:g,radius:y,size:v,wrapperProps:b,classNames:w,styles:x,__staticSelector:k,multiline:O,sx:E,unstyled:S,pointer:P}=n,C=((e,t)=>{var n={};for(var r in e)ge.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&me)for(var r of me(e))t.indexOf(r)<0&&ye.call(e,r)&&(n[r]=e[r]);return n})(n,["className","invalid","required","disabled","variant","icon","style","rightSectionWidth","iconWidth","rightSection","rightSectionProps","radius","size","wrapperProps","classNames","styles","__staticSelector","multiline","sx","unstyled","pointer"]),{offsetBottom:j,offsetTop:N,describedBy:R}=(0,r.useContext)(A),{classes:I,cx:z}=(0,ue.Z)({radius:y,size:v,multiline:O,variant:u,invalid:a,rightSectionWidth:d,iconWidth:h,withRightSection:!!m,offsetBottom:j,offsetTop:N,pointer:P},{classNames:w,styles:x,name:["Input",k],unstyled:S}),{systemStyles:T,rest:D}=(0,fe.x)(C);return r.createElement(s.x,be(be({className:z(I.wrapper,i),sx:E,style:p},T),b),f&&r.createElement("div",{className:I.icon},f),r.createElement(s.x,we(be({component:"input"},D),{ref:t,required:l,"aria-invalid":a,"aria-describedby":R,disabled:c,className:z(I[`${u}Variant`],I.input,{[I.withIcon]:f,[I.invalid]:a,[I.disabled]:c})})),m&&r.createElement("div",we(be({},g),{className:I.rightSection}),m))}));ke.displayName="@mantine/core/Input",ke.Wrapper=te,ke.Label=m,ke.Description=z,ke.Error=E,ke.Placeholder=ce;const Oe=(0,i.F)(ke)},47034:function(e,t,n){"use strict";n.d(t,{J:function(){return d}});var r=n(41319),o=Object.defineProperty,i=Object.defineProperties,a=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,u=(e,t,n)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,f=(e,t)=>{for(var n in t||(t={}))s.call(t,n)&&u(e,n,t[n]);if(l)for(var n of l(t))c.call(t,n)&&u(e,n,t[n]);return e},p=(e,t)=>i(e,a(t));const d={xs:30,sm:36,md:42,lg:50,xl:60};function h({theme:e,variant:t}){return"default"===t?{border:`1px solid ${"dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[4]}`,backgroundColor:"dark"===e.colorScheme?e.colors.dark[6]:e.white,transition:"border-color 100ms ease","&:focus, &:focus-within":e.focusRingStyles.inputStyles(e)}:"filled"===t?{border:"1px solid transparent",backgroundColor:"dark"===e.colorScheme?e.colors.dark[5]:e.colors.gray[1],"&:focus, &:focus-within":e.focusRingStyles.inputStyles(e)}:{borderWidth:0,color:"dark"===e.colorScheme?e.colors.dark[0]:e.black,backgroundColor:"transparent",minHeight:28,outline:0,"&:focus, &:focus-within":{outline:"none",borderColor:"transparent"},"&:disabled":{backgroundColor:"transparent","&:focus, &:focus-within":{outline:"none",borderColor:"transparent"}}}}var m=(0,r.k)(((e,{size:t,multiline:n,radius:r,variant:o,invalid:i,rightSectionWidth:a,withRightSection:l,iconWidth:s,offsetBottom:c,offsetTop:u,pointer:m})=>{const g=e.fn.variant({variant:"filled",color:"red"}).background,y="default"===o||"filled"===o?{minHeight:e.fn.size({size:t,sizes:d}),paddingLeft:e.fn.size({size:t,sizes:d})/3,paddingRight:l?a:e.fn.size({size:t,sizes:d})/3,borderRadius:e.fn.radius(r)}:null;return{wrapper:{position:"relative",marginTop:u?`calc(${e.spacing.xs}px / 2)`:void 0,marginBottom:c?`calc(${e.spacing.xs}px / 2)`:void 0},input:f(p(f(p(f({},e.fn.fontStyles()),{height:n?"unstyled"===o?void 0:"auto":e.fn.size({size:t,sizes:d}),WebkitTapHighlightColor:"transparent",lineHeight:n?e.lineHeight:e.fn.size({size:t,sizes:d})-2+"px",appearance:"none",resize:"none",boxSizing:"border-box",fontSize:e.fn.size({size:t,sizes:e.fontSizes}),width:"100%",color:"dark"===e.colorScheme?e.colors.dark[0]:e.black,display:"block",textAlign:"left",cursor:m?"pointer":void 0}),y),{"&:disabled":{backgroundColor:"dark"===e.colorScheme?e.colors.dark[6]:e.colors.gray[1],color:e.colors.dark[2],opacity:.6,cursor:"not-allowed","&::placeholder":{color:e.colors.dark[2]}},"&::placeholder":p(f({},e.fn.placeholderStyles()),{opacity:1}),"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button, &::-webkit-search-decoration, &::-webkit-search-cancel-button, &::-webkit-search-results-button, &::-webkit-search-results-decoration":{appearance:"none"},"&[type=number]":{MozAppearance:"textfield"}}),h({theme:e,variant:o})),withIcon:{paddingLeft:"number"===typeof s?s:e.fn.size({size:t,sizes:d})},invalid:{color:g,borderColor:g,"&::placeholder":{opacity:1,color:g}},disabled:{backgroundColor:"dark"===e.colorScheme?e.colors.dark[6]:e.colors.gray[1],color:e.colors.dark[2],opacity:.6,cursor:"not-allowed","&::placeholder":{color:e.colors.dark[2]}},icon:{pointerEvents:"none",position:"absolute",zIndex:1,left:0,top:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",width:"number"===typeof s?s:e.fn.size({size:t,sizes:d}),color:i?e.colors.red["dark"===e.colorScheme?6:7]:"dark"===e.colorScheme?e.colors.dark[2]:e.colors.gray[5]},rightSection:{position:"absolute",top:0,bottom:0,right:0,display:"flex",alignItems:"center",justifyContent:"center",width:a}}}));t.Z=m},18328:function(e,t,n){"use strict";n.d(t,{a:function(){return A}});var r=n(2784),o=n(59618),i=n(50855);const[a,l]=(0,i.R)("List component was not found in tree");var s=n(41319),c=(0,s.k)(((e,{spacing:t,center:n},r)=>({itemWrapper:{ref:r("itemWrapper"),display:"inline-flex",flexDirection:"column",whiteSpace:"normal"},item:{whiteSpace:"nowrap",lineHeight:n?1:e.lineHeight,"&:not(:first-of-type)":{marginTop:e.fn.size({size:t,sizes:e.spacing})}},withIcon:{listStyle:"none",[`& .${r("itemWrapper")}`]:{display:"inline-flex",alignItems:n?"center":"flex-start",flexDirection:"row"}},itemIcon:{display:"inline-block",verticalAlign:"middle",marginRight:e.spacing.sm}}))),u=n(69558),f=Object.defineProperty,p=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,m=(e,t,n)=>t in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const g={},y=(0,r.forwardRef)(((e,t)=>{const n=(0,o.N4)("ListItem",g,e),{className:i,children:a,icon:s}=n,f=((e,t)=>{var n={};for(var r in e)d.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&p)for(var r of p(e))t.indexOf(r)<0&&h.call(e,r)&&(n[r]=e[r]);return n})(n,["className","children","icon"]),{icon:y,spacing:v,center:b,listStyleType:w,size:x,withPadding:k,classNames:O,styles:E,unstyled:S}=l(),P=s||y,{classes:C,cx:j}=c({withPadding:k,size:x,listStyleType:w,center:b,spacing:v},{classNames:O,styles:E,unstyled:S,name:"List"});return r.createElement(u.x,((e,t)=>{for(var n in t||(t={}))d.call(t,n)&&m(e,n,t[n]);if(p)for(var n of p(t))h.call(t,n)&&m(e,n,t[n]);return e})({component:"li",className:j(C.item,{[C.withIcon]:P},i),ref:t},f),r.createElement("div",{className:C.itemWrapper},P&&r.createElement("span",{className:C.itemIcon},P),r.createElement("span",null,a)))}));y.displayName="@mantine/core/ListItem";var v=Object.defineProperty,b=Object.defineProperties,w=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,k=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,E=(e,t,n)=>t in e?v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,S=(e,t)=>{for(var n in t||(t={}))k.call(t,n)&&E(e,n,t[n]);if(x)for(var n of x(t))O.call(t,n)&&E(e,n,t[n]);return e},P=(0,s.k)(((e,{withPadding:t,size:n,listStyleType:r})=>{return{root:(o=S({},e.fn.fontStyles()),i={listStyleType:r,color:"dark"===e.colorScheme?e.colors.dark[0]:e.black,fontSize:e.fn.size({size:n,sizes:e.fontSizes}),lineHeight:e.lineHeight,margin:0,paddingLeft:t?e.spacing.xl:0,listStylePosition:"inside"},b(o,w(i)))};var o,i})),C=Object.defineProperty,j=Object.getOwnPropertySymbols,N=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,I=(e,t,n)=>t in e?C(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const z={type:"unordered",size:"md",spacing:0},A=(0,r.forwardRef)(((e,t)=>{const n=(0,o.N4)("List",z,e),{children:i,type:l,size:s,listStyleType:c,withPadding:f,center:p,spacing:d,icon:h,className:m,styles:g,classNames:y,unstyled:v}=n,b=((e,t)=>{var n={};for(var r in e)N.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&j)for(var r of j(e))t.indexOf(r)<0&&R.call(e,r)&&(n[r]=e[r]);return n})(n,["children","type","size","listStyleType","withPadding","center","spacing","icon","className","styles","classNames","unstyled"]),{classes:w,cx:x}=P({withPadding:f,size:s,listStyleType:c,center:p,spacing:d},{classNames:y,styles:g,name:"List",unstyled:v});return r.createElement(a,{value:{spacing:d,center:p,icon:h,listStyleType:c,size:s,withPadding:f,classNames:y,styles:g,unstyled:v}},r.createElement(u.x,((e,t)=>{for(var n in t||(t={}))N.call(t,n)&&I(e,n,t[n]);if(j)for(var n of j(t))R.call(t,n)&&I(e,n,t[n]);return e})({component:"unordered"===l?"ul":"ol",className:x(w.root,m),ref:t},b),i))}));A.Item=y,A.displayName="@mantine/core/List"},37735:function(e,t,n){"use strict";n.d(t,{u:function(){return fe}});var r=n(2784),o=n(80298);const i=/input|select|textarea|button|object/,a="a, input, select, textarea, button, object, [tabindex]";function l(e){return"none"===e.style.display}function s(e){let t=e.getAttribute("tabindex");return null===t&&(t=void 0),parseInt(t,10)}function c(e){const t=e.nodeName.toLowerCase(),n=!Number.isNaN(s(e));return(i.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&function(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||"hidden"===e.getAttribute("type"))return!1;let t=e;for(;t&&t!==document.body&&11!==t.nodeType;){if(l(t))return!1;t=t.parentNode}return!0}(e)}function u(e){const t=s(e);return(Number.isNaN(t)||t>=0)&&c(e)}function f(e){return Array.from(e.querySelectorAll(a)).filter(u)}function p(e=!0){const t=(0,r.useRef)(),n=(0,r.useRef)(null),o=(0,r.useCallback)((r=>{if(e&&null!==r&&(n.current=function(e,t="body > :not(script)"){const n=Array.from(document.querySelectorAll(t)).map((t=>{var n;if((null==(n=null==t?void 0:t.shadowRoot)?void 0:n.contains(e))||t.contains(e))return;const r=t.getAttribute("aria-hidden");return null!==r&&"false"!==r||t.setAttribute("aria-hidden","true"),{node:t,ariaHidden:r}}));return()=>{n.forEach((e=>{e&&(null===e.ariaHidden?e.node.removeAttribute("aria-hidden"):e.node.setAttribute("aria-hidden",e.ariaHidden))}))}}(r),t.current!==r))if(r){const e=()=>{let e=r.querySelector("[data-autofocus]");if(!e){const t=Array.from(r.querySelectorAll(a));e=t.find(u)||t.find(c)||null,!e&&c(r)&&(e=r)}e&&e.focus({preventScroll:!0})};setTimeout((()=>{r.getRootNode()&&e()})),t.current=r}else t.current=null}),[e]);return(0,r.useEffect)((()=>{if(!e)return;const r=e=>{"Tab"===e.key&&t.current&&function(e,t){const n=f(e);if(!n.length)return void t.preventDefault();const r=n[t.shiftKey?0:n.length-1],o=e.getRootNode();if(r!==o.activeElement&&e!==o.activeElement)return;t.preventDefault();const i=n[t.shiftKey?n.length-1:0];i&&i.focus()}(t.current,e)};return document.addEventListener("keydown",r),()=>{document.removeEventListener("keydown",r),n.current&&n.current()}}),[e]),o}var d=n(5248);const h=({disableBodyPadding:e})=>{const t=e?null:"undefined"===typeof window||"undefined"===typeof document?0:parseInt(window.getComputedStyle(document.body).paddingRight,10)+(window.innerWidth-document.documentElement.clientWidth);return`body {\n --removed-scroll-width: ${t}px;\n touch-action: none;\n overflow: hidden !important;\n position: relative !important;\n ${t?"padding-right: var(--removed-scroll-width) !important;":""}\n `};function m(e,t={disableBodyPadding:!1}){const[n,o]=(0,r.useState)(e||!1),i=(0,r.useRef)(0),{disableBodyPadding:a}=t,l=(0,r.useRef)(null),s=()=>{i.current=window.scrollY;const e=h({disableBodyPadding:a}),t=function(){const e=document.createElement("style");return e.type="text/css",e.setAttribute("mantine-scroll-lock",""),e}();var n,r;r=e,(n=t).styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t),l.current=t},c=()=>{(null==l?void 0:l.current)&&(l.current.parentNode.removeChild(l.current),l.current=null)};return(0,r.useEffect)((()=>(n?s():c(),c)),[n]),(0,r.useEffect)((()=>{void 0!==e&&o(e)}),[e]),(0,r.useEffect)((()=>{void 0===e&&"undefined"!==typeof window&&"hidden"===window.document.body.style.overflow&&o(!0)}),[o]),[n,o]}var g=n(55913);var y=n(51464),v=n(59618),b=n(41319),w=Object.defineProperty,x=Object.getOwnPropertySymbols,k=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,E=(e,t,n)=>t in e?w(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,S=(e,t)=>{for(var n in t||(t={}))k.call(t,n)&&E(e,n,t[n]);if(x)for(var n of x(t))O.call(t,n)&&E(e,n,t[n]);return e};const P={xs:320,sm:380,md:440,lg:620,xl:780};function C(e){return e?{position:"absolute",top:0,left:0,right:0,bottom:0,maxHeight:"100vh",overflowY:"auto"}:{}}var j=(0,b.k)(((e,{overflow:t,size:n,centered:r,zIndex:o,fullScreen:i})=>({close:{},overlay:{display:i?"none":void 0},root:{position:"fixed",zIndex:o,top:0,left:0,right:0,bottom:0},inner:{position:"absolute",top:0,left:0,right:0,bottom:0,overflowY:"auto",padding:i?0:`${2*e.spacing.xl}px ${e.spacing.md}px`,display:"flex",justifyContent:"center",alignItems:r?"center":"flex-start"},title:{marginRight:e.spacing.md,textOverflow:"ellipsis",display:"block",wordBreak:"break-word"},modal:S({position:"relative",width:i?"100vw":e.fn.size({sizes:P,size:n}),borderRadius:i?0:void 0,outline:0,backgroundColor:"dark"===e.colorScheme?e.colors.dark[7]:e.white,marginTop:r?"auto":void 0,marginBottom:r?"auto":void 0,zIndex:1},C(i)),header:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:e.spacing.md,marginRight:-9},body:{maxHeight:"inside"===t?"calc(100vh - 185px)":null,overflowY:"inside"===t?"auto":null,wordBreak:"break-word"}}))),N=n(33031),R=n(76835),I=n(99212);function z({transitions:e,duration:t=250,exitDuration:n=t,mounted:o,children:i,timingFunction:a,onExit:l,onEntered:s,onEnter:c,onExited:u}){const{transitionDuration:f,transitionStatus:p,transitionTimingFunction:d}=(0,I.Y)({mounted:o,duration:t,exitDuration:n,timingFunction:a,onExit:l,onEntered:s,onEnter:c,onExited:u});if(0===f)return o?r.createElement(r.Fragment,null,i({})):null;if("exited"===p)return null;const h=Object.keys(e).reduce(((t,n)=>(t[n]=(0,R.B)({duration:e[n].duration,transition:e[n].transition,timingFunction:e[n].timingFunction||d,state:p}),t)),{});return r.createElement(r.Fragment,null,i(h))}z.displayName="@mantine/core/GroupedTransition";var A=n(69558),T=n(86246),D=n(75673),L=(0,b.k)(((e,{zIndex:t})=>({root:{position:"absolute",top:0,bottom:0,left:0,right:0,zIndex:t}}))),M=Object.defineProperty,F=Object.defineProperties,_=Object.getOwnPropertyDescriptors,B=Object.getOwnPropertySymbols,W=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable,U=(e,t,n)=>t in e?M(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,V=(e,t)=>{for(var n in t||(t={}))W.call(t,n)&&U(e,n,t[n]);if(B)for(var n of B(t))H.call(t,n)&&U(e,n,t[n]);return e};const $={opacity:.6,color:"#fff",zIndex:(0,y.w)("modal"),radius:0,blur:0},q=(0,r.forwardRef)(((e,t)=>{const n=(0,v.N4)("Overlay",$,e),{opacity:o,blur:i,color:a,gradient:l,zIndex:s,radius:c,sx:u,unstyled:f,className:p}=n,d=((e,t)=>{var n={};for(var r in e)W.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&B)for(var r of B(e))t.indexOf(r)<0&&H.call(e,r)&&(n[r]=e[r]);return n})(n,["opacity","blur","color","gradient","zIndex","radius","sx","unstyled","className"]),{classes:h,cx:m}=L({zIndex:s},{name:"Overlay",unstyled:f}),g=l?{backgroundImage:l}:{backgroundColor:a},y=e=>r.createElement(A.x,V({ref:t,className:m(h.root,p),sx:[e=>{return t=V({},g),n={opacity:o,borderRadius:e.fn.size({size:c,sizes:e.radius})},F(t,_(n));var t,n},...(0,T.R)(u)]},e));return i?r.createElement(A.x,V({className:m(h.root,p),sx:[{backdropFilter:`blur(${i}px)`},...(0,T.R)(u)]},d),y()):y(d)}));q.displayName="@mantine/core/Overlay";const Y=(0,D.F)(q);var X=(0,b.k)(((e,{radius:t,shadow:n,withBorder:r})=>({root:{outline:0,WebkitTapHighlightColor:"transparent",display:"block",textDecoration:"none",color:"dark"===e.colorScheme?e.colors.dark[0]:e.black,backgroundColor:"dark"===e.colorScheme?e.colors.dark[7]:e.white,boxSizing:"border-box",borderRadius:e.fn.radius(t),boxShadow:e.shadows[n]||n||"none",border:r?`1px solid ${"dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[3]}`:void 0}}))),Z=Object.defineProperty,G=Object.getOwnPropertySymbols,K=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable,J=(e,t,n)=>t in e?Z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const ee={},te=(0,r.forwardRef)(((e,t)=>{const n=(0,v.N4)("Paper",ee,e),{className:o,children:i,radius:a,withBorder:l,shadow:s,unstyled:c}=n,u=((e,t)=>{var n={};for(var r in e)K.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&G)for(var r of G(e))t.indexOf(r)<0&&Q.call(e,r)&&(n[r]=e[r]);return n})(n,["className","children","radius","withBorder","shadow","unstyled"]),{classes:f,cx:p}=X({radius:a,shadow:s,withBorder:l},{name:"Paper",unstyled:c});return r.createElement(A.x,((e,t)=>{for(var n in t||(t={}))K.call(t,n)&&J(e,n,t[n]);if(G)for(var n of G(t))Q.call(t,n)&&J(e,n,t[n]);return e})({className:p(f.root,o),ref:t},u),i)}));te.displayName="@mantine/core/Paper";const ne=(0,D.F)(te);var re=n(37327),oe=n(70476),ie=Object.defineProperty,ae=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,ce=(e,t,n)=>t in e?ie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const ue={size:"md",transitionDuration:250,overflow:"outside",padding:"lg",shadow:"lg",closeOnClickOutside:!0,closeOnEscape:!0,trapFocus:!0,withCloseButton:!0,withinPortal:!0,lockScroll:!0,withFocusReturn:!0,overlayBlur:0,zIndex:(0,y.w)("modal"),exitTransitionDuration:0};function fe(e){const t=(0,v.N4)("Modal",ue,e),{className:n,opened:i,title:a,onClose:l,children:s,withCloseButton:c,overlayOpacity:u,size:f,transitionDuration:h,exitTransitionDuration:y,closeButtonLabel:b,overlayColor:w,overflow:x,transition:k,padding:O,shadow:E,radius:S,id:P,classNames:C,styles:R,closeOnClickOutside:I,trapFocus:T,closeOnEscape:D,centered:L,target:M,withinPortal:F,zIndex:_,overlayBlur:B,transitionTimingFunction:W,fullScreen:H,unstyled:U,lockScroll:V,withFocusReturn:$}=t,q=((e,t)=>{var n={};for(var r in e)le.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&ae)for(var r of ae(e))t.indexOf(r)<0&&se.call(e,r)&&(n[r]=e[r]);return n})(t,["className","opened","title","onClose","children","withCloseButton","overlayOpacity","size","transitionDuration","exitTransitionDuration","closeButtonLabel","overlayColor","overflow","transition","padding","shadow","radius","id","classNames","styles","closeOnClickOutside","trapFocus","closeOnEscape","centered","target","withinPortal","zIndex","overlayBlur","transitionTimingFunction","fullScreen","unstyled","lockScroll","withFocusReturn"]),X=(0,o.M)(P),Z=`${X}-title`,G=`${X}-body`,{classes:K,cx:Q,theme:J}=j({size:f,overflow:x,centered:L,zIndex:_,fullScreen:H},{unstyled:U,classNames:C,styles:R,name:"Modal"}),ee=p(T&&i),te=(0,r.useRef)(null),ie=(0,d.Y)(ee,te),fe="number"===typeof u?u:"dark"===J.colorScheme?.85:.75;m(V&&i);const pe=e=>{!T&&"Escape"===e.key&&D&&l()};(0,r.useEffect)((()=>{if(!T)return window.addEventListener("keydown",pe),()=>window.removeEventListener("keydown",pe)}),[T]),function({opened:e,shouldReturnFocus:t=!0}){const n=(0,r.useRef)(),o=()=>{var e;n.current&&"focus"in n.current&&"function"===typeof n.current.focus&&(null==(e=n.current)||e.focus({preventScroll:!0}))};(0,g.l)((()=>{let r=-1;const i=e=>{"Tab"===e.key&&window.clearTimeout(r)};return document.addEventListener("keydown",i),e?n.current=document.activeElement:t&&(r=window.setTimeout(o,10)),()=>{window.clearTimeout(r),document.removeEventListener("keydown",i)}}),[e,t])}({opened:i,shouldReturnFocus:T&&$});const de=(0,r.useRef)(null);var he,me,ge;he="mousedown",me=e=>{de.current=e.target},(0,r.useEffect)((()=>(window.addEventListener(he,me,ge),()=>window.removeEventListener(he,me,ge))),[he,me]);const ye=()=>{de.current===te.current&&I&&l()};return r.createElement(N.q,{withinPortal:F,target:M},r.createElement(z,{mounted:i,duration:h,exitDuration:y,timingFunction:W,transitions:{modal:{duration:h,transition:k||(H?"fade":"pop")},overlay:{duration:h/2,transition:"fade",timingFunction:"ease"}}},(e=>r.createElement(r.Fragment,null,r.createElement(A.x,((e,t)=>{for(var n in t||(t={}))le.call(t,n)&&ce(e,n,t[n]);if(ae)for(var n of ae(t))se.call(t,n)&&ce(e,n,t[n]);return e})({id:X,className:Q(K.root,n)},q),r.createElement("div",{style:e.overlay},r.createElement(Y,{className:K.overlay,sx:{position:"fixed"},zIndex:0,blur:B,color:w||("dark"===J.colorScheme?J.colors.dark[9]:J.black),opacity:fe,unstyled:U})),r.createElement("div",{role:"presentation",className:K.inner,onClick:ye,onKeyDown:e=>{var t;"true"!==(null==(t=e.target)?void 0:t.getAttribute("data-mantine-stop-propagation"))&&"Escape"===e.key&&D&&l()},ref:ie},r.createElement(ne,{className:K.modal,shadow:E,p:O,radius:S,role:"dialog","aria-labelledby":Z,"aria-describedby":G,"aria-modal":!0,tabIndex:-1,style:e.modal,unstyled:U,onClick:e=>e.stopPropagation()},(a||c)&&r.createElement("div",{className:K.header},r.createElement(re.x,{id:Z,className:K.title},a),c&&r.createElement(oe.P,{iconSize:16,onClick:l,"aria-label":b,className:K.close})),r.createElement("div",{id:G,className:K.body},s))))))))}fe.displayName="@mantine/core/Modal"},33031:function(e,t,n){"use strict";n.d(t,{q:function(){return u}});var r=n(2784),o=n(27636),i=Object.defineProperty,a=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,c=(e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function u(e){var t=e,{withinPortal:n=!0,children:i}=t,u=((e,t)=>{var n={};for(var r in e)l.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&a)for(var r of a(e))t.indexOf(r)<0&&s.call(e,r)&&(n[r]=e[r]);return n})(t,["withinPortal","children"]);return n?r.createElement(o.h,((e,t)=>{for(var n in t||(t={}))l.call(t,n)&&c(e,n,t[n]);if(a)for(var n of a(t))s.call(t,n)&&c(e,n,t[n]);return e})({},u),i):r.createElement(r.Fragment,null,i)}u.displayName="@mantine/core/OptionalPortal"},75683:function(e,t,n){"use strict";n.d(t,{Y:function(){return se}});var r=n(2784),o=n(80298),i=n(59618),a=Object.defineProperty,l=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,u=(e,t,n)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const f=(0,r.createContext)(null),p=f.Provider;var d=n(4678),h=n(69697);function m({spacing:e,offset:t,orientation:n,children:o,role:i,unstyled:a}){return"horizontal"===n?r.createElement(d.Z,{pt:t,spacing:e,role:i,unstyled:a},o):r.createElement(h.K,{pt:t,spacing:e,role:i,unstyled:a},o)}var g=n(94282),y=Object.defineProperty,v=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable,x=(e,t,n)=>t in e?y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,k=(e,t)=>{for(var n in t||(t={}))b.call(t,n)&&x(e,n,t[n]);if(v)for(var n of v(t))w.call(t,n)&&x(e,n,t[n]);return e};const O={orientation:"horizontal",spacing:"lg",offset:"xs",size:"sm"},E=(0,r.forwardRef)(((e,t)=>{const n=(0,i.N4)("RadioGroup",O,e),{children:a,value:l,defaultValue:s,onChange:c,orientation:u,spacing:f,size:d,wrapperProps:h,unstyled:y,offset:x,name:E}=n,S=((e,t)=>{var n={};for(var r in e)b.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&v)for(var r of v(e))t.indexOf(r)<0&&w.call(e,r)&&(n[r]=e[r]);return n})(n,["children","value","defaultValue","onChange","orientation","spacing","size","wrapperProps","unstyled","offset","name"]),P=(0,o.M)(E),[C,j]=function({value:e,defaultValue:t,finalValue:n,onChange:o=(()=>{})}){const[i,a]=(0,r.useState)(void 0!==t?t:n);return void 0!==e?[e,o,!0]:[i,e=>{a(e),null==o||o(e)},!1]}({value:l,defaultValue:s,finalValue:"",onChange:c});return r.createElement(p,{value:{value:C,onChange:e=>j(e.currentTarget.value),size:d,name:P}},r.createElement(g.I.Wrapper,k(k({labelElement:"div",size:d,__staticSelector:"RadioGroup",ref:t,unstyled:y},h),S),r.createElement(m,{spacing:f,orientation:u,unstyled:y,role:"radiogroup",offset:x},a)))}));E.displayName="@mantine/core/RadioGroup";var S=n(41319),P=Object.defineProperty,C=Object.defineProperties,j=Object.getOwnPropertyDescriptors,N=Object.getOwnPropertySymbols,R=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,z=(e,t,n)=>t in e?P(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,A=(e,t)=>{for(var n in t||(t={}))R.call(t,n)&&z(e,n,t[n]);if(N)for(var n of N(t))I.call(t,n)&&z(e,n,t[n]);return e};const T={xs:16,sm:20,md:24,lg:30,xl:36},D={xs:6,sm:8,md:10,lg:14,xl:16};var L=(0,S.k)(((e,{size:t,color:n,transitionDuration:r,labelPosition:o,error:i},a)=>{const l=e.fn.variant({variant:"filled",color:n}),s=e.fn.variant({variant:"filled",color:"red"}).background;return{inner:{order:"left"===o?2:1,position:"relative",alignSelf:"flex-start"},icon:{ref:a("icon"),color:e.white,opacity:0,transform:"scale(0.75) translateY(2px)",transition:`opacity ${r}ms ${e.transitionTimingFunction}`,pointerEvents:"none",width:e.fn.size({sizes:D,size:t}),height:e.fn.size({sizes:D,size:t}),position:"absolute",top:`calc(50% - ${e.fn.size({sizes:D,size:t})/2}px)`,left:`calc(50% - ${e.fn.size({sizes:D,size:t})/2}px)`},radio:(c=A({},e.fn.focusStyles()),u={backgroundColor:"dark"===e.colorScheme?e.colors.dark[6]:e.white,border:`1px solid ${i?s:"dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[4]}`,position:"relative",appearance:"none",width:e.fn.size({sizes:T,size:t}),height:e.fn.size({sizes:T,size:t}),borderRadius:e.fn.size({sizes:T,size:t}),margin:0,display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"background-color, border-color",transitionTimingFunction:e.transitionTimingFunction,transitionDuration:`${r}ms`,cursor:e.cursorType,"&:checked":{background:l.background,borderColor:l.background,[`& + .${a("icon")}`]:{opacity:1,transform:"scale(1)"}},"&:disabled":{borderColor:"dark"===e.colorScheme?e.colors.dark[5]:e.colors.gray[4],backgroundColor:"dark"===e.colorScheme?e.colors.dark[5]:e.colors.gray[1],[`& + .${a("icon")}`]:{color:"dark"===e.colorScheme?e.colors.dark[6]:e.colors.gray[4]}}},C(c,j(u)))};var c,u})),M=n(35100),F=Object.defineProperty,_=Object.defineProperties,B=Object.getOwnPropertyDescriptors,W=Object.getOwnPropertySymbols,H=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable,V=(e,t,n)=>t in e?F(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$=(e,t)=>{for(var n in t||(t={}))H.call(t,n)&&V(e,n,t[n]);if(W)for(var n of W(t))U.call(t,n)&&V(e,n,t[n]);return e};const q={xs:16,sm:20,md:24,lg:30,xl:36};var Y=(0,S.k)(((e,{labelPosition:t,size:n})=>{return{root:{},body:{display:"flex"},labelWrapper:(r=$({},e.fn.fontStyles()),o={display:"inline-flex",flexDirection:"column",WebkitTapHighlightColor:"transparent",fontSize:e.fn.size({size:n,sizes:e.fontSizes}),lineHeight:`${e.fn.size({size:n,sizes:q})}px`,color:"dark"===e.colorScheme?e.colors.dark[0]:e.black,cursor:e.cursorType,order:"left"===t?1:2},_(r,B(o))),description:{marginTop:`calc(${e.spacing.xs}px / 2)`,["left"===t?"paddingRight":"paddingLeft"]:e.spacing.sm},error:{marginTop:`calc(${e.spacing.xs}px / 2)`,["left"===t?"paddingRight":"paddingLeft"]:e.spacing.sm},label:{cursor:e.cursorType,["left"===t?"paddingRight":"paddingLeft"]:e.spacing.sm,"&[data-disabled]":{color:"dark"===e.colorScheme?e.colors.dark[3]:e.colors.gray[5]}}};var r,o})),X=n(69558),Z=Object.defineProperty,G=Object.getOwnPropertySymbols,K=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable,J=(e,t,n)=>t in e?Z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function ee(e){var t=e,{__staticSelector:n,className:o,classNames:i,styles:a,unstyled:l,children:s,label:c,description:u,id:f,disabled:p,error:d,size:h,labelPosition:m}=t,y=((e,t)=>{var n={};for(var r in e)K.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&G)for(var r of G(e))t.indexOf(r)<0&&Q.call(e,r)&&(n[r]=e[r]);return n})(t,["__staticSelector","className","classNames","styles","unstyled","children","label","description","id","disabled","error","size","labelPosition"]);const{classes:v,cx:b}=Y({size:h,labelPosition:m},{name:n,styles:a,classNames:i,unstyled:l});return r.createElement(X.x,((e,t)=>{for(var n in t||(t={}))K.call(t,n)&&J(e,n,t[n]);if(G)for(var n of G(t))Q.call(t,n)&&J(e,n,t[n]);return e})({className:b(v.root,o)},y),r.createElement("div",{className:b(v.body)},s,r.createElement("div",{className:v.labelWrapper},c&&r.createElement("label",{className:v.label,"data-disabled":p||void 0,htmlFor:f},c),u&&r.createElement(g.I.Description,{className:v.description},u),d&&"boolean"!==d&&r.createElement(g.I.Error,{className:v.error},d))))}ee.displayName="@mantine/core/InlineInput";var te=Object.defineProperty,ne=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,ie=(e,t,n)=>t in e?te(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ae=(e,t)=>{for(var n in t||(t={}))re.call(t,n)&&ie(e,n,t[n]);if(ne)for(var n of ne(t))oe.call(t,n)&&ie(e,n,t[n]);return e};const le={icon:function(e){return r.createElement("svg",((e,t)=>{for(var n in t||(t={}))s.call(t,n)&&u(e,n,t[n]);if(l)for(var n of l(t))c.call(t,n)&&u(e,n,t[n]);return e})({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 5 5"},e),r.createElement("path",{fill:"currentColor",d:"M0 2.5a2.5 2.5 0 115 0 2.5 2.5 0 01-5 0z"}))},transitionDuration:100,size:"sm",labelPosition:"right"},se=(0,r.forwardRef)(((e,t)=>{var n,a;const l=(0,i.N4)("Radio",le,e),{className:s,style:c,id:u,label:p,size:d,title:h,disabled:m,color:g,classNames:y,styles:v,sx:b,icon:w,transitionDuration:x,wrapperProps:k,unstyled:O,labelPosition:E,description:S,error:P}=l,C=((e,t)=>{var n={};for(var r in e)re.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&ne)for(var r of ne(e))t.indexOf(r)<0&&oe.call(e,r)&&(n[r]=e[r]);return n})(l,["className","style","id","label","size","title","disabled","color","classNames","styles","sx","icon","transitionDuration","wrapperProps","unstyled","labelPosition","description","error"]),j=(0,r.useContext)(f),N=null!=(n=null==j?void 0:j.size)?n:d,R=e.size?d:N,{classes:I}=L({color:g,size:R,transitionDuration:x,labelPosition:E,error:!!P},{classNames:y,styles:v,unstyled:O,name:"Radio"}),{systemStyles:z,rest:A}=(0,M.x)(C),T=(0,o.M)(u),D=j?{checked:j.value===A.value,name:null!=(a=A.name)?a:j.name,onChange:j.onChange}:{};return r.createElement(ee,ae(ae({className:s,sx:b,style:c,id:T,size:R,labelPosition:E,label:p,description:S,error:P,disabled:m,__staticSelector:"Radio",classNames:y,styles:v,unstyled:O,"data-checked":D.checked||void 0},z),k),r.createElement("div",{className:I.inner},r.createElement("input",ae(ae({ref:t,className:I.radio,type:"radio",id:T,disabled:m},A),D)),r.createElement(w,{className:I.icon,"aria-hidden":!0})))}));se.displayName="@mantine/core/Radio",se.Group=E},34914:function(e,t,n){"use strict";n.d(t,{T:function(){return D}});var r=n(2784),o=n(59618);var i=n(77795),a=Object.defineProperty,l=Object.defineProperties,s=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,p=(e,t,n)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,d=(e,t)=>{for(var n in t||(t={}))u.call(t,n)&&p(e,n,t[n]);if(c)for(var n of c(t))f.call(t,n)&&p(e,n,t[n]);return e};function h(e){var t=e,{size:n,value:a,offset:p,sum:h,thickness:m,root:g,color:y,lineRoundCaps:v,tooltip:b}=t,w=((e,t)=>{var n={};for(var r in e)u.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&c)for(var r of c(e))t.indexOf(r)<0&&f.call(e,r)&&(n[r]=e[r]);return n})(t,["size","value","offset","sum","thickness","root","color","lineRoundCaps","tooltip"]);const x=(0,o.rZ)(),k=x.fn.themeColor(y||("dark"===x.colorScheme?"dark":"gray"),y?x.fn.primaryShade():"dark"===x.colorScheme?4:1,!1);return r.createElement(i.u.Floating,{disabled:!b,label:b},r.createElement("circle",d((O=d({},w),l(O,s({fill:"none",strokeLinecap:v?"round":"butt",stroke:k}))),function({size:e,thickness:t,sum:n,value:r,root:o,offset:i}){const a=(.9*e-2*t)/2,l=Math.PI*a*2/100;return{strokeWidth:t,cx:e/2,cy:e/2,r:a,transform:o?`scale(1, -1) translate(0, -${e})`:null,strokeDasharray:o?`${(100-n)*l}, ${n*l}`:`${r*l}, ${(100-r)*l}`,strokeDashoffset:o?0:i}}({sum:h,size:n,thickness:m,value:a,offset:p,root:g}))));var O}h.displayName="@mantine/core/Curve";var m=Object.defineProperty,g=Object.defineProperties,y=Object.getOwnPropertyDescriptors,v=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable,x=(e,t,n)=>t in e?m(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,k=(e,t)=>{for(var n in t||(t={}))b.call(t,n)&&x(e,n,t[n]);if(v)for(var n of v(t))w.call(t,n)&&x(e,n,t[n]);return e},O=(e,t)=>g(e,y(t));var E=(0,n(41319).k)({root:{position:"relative"},label:{position:"absolute",top:"50%",transform:"translateY(-50%)"}}),S=n(69558),P=Object.defineProperty,C=Object.defineProperties,j=Object.getOwnPropertyDescriptors,N=Object.getOwnPropertySymbols,R=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,z=(e,t,n)=>t in e?P(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,A=(e,t)=>{for(var n in t||(t={}))R.call(t,n)&&z(e,n,t[n]);if(N)for(var n of N(t))I.call(t,n)&&z(e,n,t[n]);return e};const T={size:120,thickness:12},D=(0,r.forwardRef)(((e,t)=>{const n=(0,o.N4)("RingProgress",T,e),{className:i,style:a,label:l,sections:s,size:c,thickness:u,classNames:f,styles:p,roundCaps:d,rootColor:m,unstyled:g}=n,y=((e,t)=>{var n={};for(var r in e)R.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&N)for(var r of N(e))t.indexOf(r)<0&&I.call(e,r)&&(n[r]=e[r]);return n})(n,["className","style","label","sections","size","thickness","classNames","styles","roundCaps","rootColor","unstyled"]),{classes:v,cx:b}=E(null,{classNames:f,styles:p,unstyled:g,name:"RingProgress"}),w=function({size:e,thickness:t,sections:n,renderRoundedLineCaps:r,rootColor:o}){const i=n.reduce(((e,t)=>e+t.value),0),a=Math.PI*((.9*e-2*t)/2)*2;let l=a;const s=[],c=[];for(let u=0;u2){c.push(O(k({},s[0]),{lineRoundCaps:r})),c.push(O(k({},s[s.length-2]),{lineRoundCaps:r}));for(let e=1;e<=s.length-3;e+=1)c.push(O(k({},s[e]),{lineRoundCaps:!1}))}else c.push(O(k({},s[0]),{lineRoundCaps:r}));return c}({size:c,thickness:u,sections:s,renderRoundedLineCaps:d,rootColor:m}).map((({data:e,sum:t,root:n,lineRoundCaps:o,offset:i},a)=>{return r.createElement(h,(l=A({},e),s={key:a,size:c,thickness:u,sum:t,offset:i,color:null==e?void 0:e.color,root:n,lineRoundCaps:o},C(l,j(s))));var l,s}));return r.createElement(S.x,A({style:A({width:c,height:c},a),className:b(v.root,i),ref:t},y),r.createElement("svg",{width:c,height:c,style:{transform:"rotate(-90deg)"}},w),l&&r.createElement("div",{className:v.label,style:{right:2*u,left:2*u}},l))}));D.displayName="@mantine/core/RingProgress"},69697:function(e,t,n){"use strict";n.d(t,{K:function(){return d}});var r=n(2784),o=n(59618),i=(0,n(41319).k)(((e,{spacing:t,align:n,justify:r})=>({root:{display:"flex",flexDirection:"column",alignItems:n,justifyContent:r,gap:e.fn.size({size:t,sizes:e.spacing})}}))),a=n(69558),l=Object.defineProperty,s=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,f=(e,t,n)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const p={spacing:"md",align:"stretch",justify:"flex-start"},d=(0,r.forwardRef)(((e,t)=>{const n=(0,o.N4)("Stack",p,e),{spacing:l,className:d,align:h,justify:m,unstyled:g}=n,y=((e,t)=>{var n={};for(var r in e)c.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&s)for(var r of s(e))t.indexOf(r)<0&&u.call(e,r)&&(n[r]=e[r]);return n})(n,["spacing","className","align","justify","unstyled"]),{classes:v,cx:b}=i({spacing:l,align:h,justify:m},{name:"Stack",unstyled:g});return r.createElement(a.x,((e,t)=>{for(var n in t||(t={}))c.call(t,n)&&f(e,n,t[n]);if(s)for(var n of s(t))u.call(t,n)&&f(e,n,t[n]);return e})({className:b(v.root,d),ref:t},y))}));d.displayName="@mantine/core/Stack"},38443:function(e,t,n){"use strict";n.d(t,{g:function(){return A}});var r=n(2784),o=n(7896),i=n(31461),a=n(84337),l=function(e,t){"function"!==typeof e?e.current=t:e(t)},s=function(e,t){var n=(0,r.useRef)();return(0,r.useCallback)((function(r){e.current=r,n.current&&l(n.current,null),n.current=t,t&&l(t,r)}),[t])},c={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},u=function(e){Object.keys(c).forEach((function(t){e.style.setProperty(t,c[t],"important")}))},f=null;var p=function(){},d=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],h=!!document.documentElement.currentStyle,m=function(e){var t=function(e){var t=r.useRef(e);return(0,a.Z)((function(){t.current=e})),t}(e);(0,r.useLayoutEffect)((function(){var e=function(e){t.current(e)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[])},g=function(e,t){var n=e.cacheMeasurements,a=e.maxRows,l=e.minRows,c=e.onChange,g=void 0===c?p:c,y=e.onHeightChange,v=void 0===y?p:y,b=(0,i.Z)(e,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]);var w=void 0!==b.value,x=(0,r.useRef)(null),k=s(x,t),O=(0,r.useRef)(0),E=(0,r.useRef)(),S=function(){var e=x.current,t=n&&E.current?E.current:function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n,r=(n=t,d.reduce((function(e,t){return e[t]=n[t],e}),{})),o=r.boxSizing;return""===o?null:(h&&"border-box"===o&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px"),{sizingStyle:r,paddingSize:parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),borderSize:parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth)})}(e);if(t){E.current=t;var r=function(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=1/0),f||((f=document.createElement("textarea")).setAttribute("tabindex","-1"),f.setAttribute("aria-hidden","true"),u(f)),null===f.parentNode&&document.body.appendChild(f);var o=e.paddingSize,i=e.borderSize,a=e.sizingStyle,l=a.boxSizing;Object.keys(a).forEach((function(e){var t=e;f.style[t]=a[t]})),u(f),f.value=t;var s=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize}(f,e);f.value="x";var c=f.scrollHeight-o,p=c*n;"border-box"===l&&(p=p+o+i),s=Math.max(p,s);var d=c*r;return"border-box"===l&&(d=d+o+i),[s=Math.min(d,s),c]}(t,e.value||e.placeholder||"x",l,a),o=r[0],i=r[1];O.current!==o&&(O.current=o,e.style.setProperty("height",o+"px","important"),v(o,{rowHeight:i}))}};return(0,r.useLayoutEffect)(S),m(S),(0,r.createElement)("textarea",(0,o.Z)({},b,{onChange:function(e){w||S(),g(e)},ref:k}))},y=(0,r.forwardRef)(g),v=n(80298),b=n(59618),w=(0,n(41319).k)((e=>({input:{paddingTop:e.spacing.xs,paddingBottom:e.spacing.xs}}))),x=n(35100),k=n(94282),O=Object.defineProperty,E=Object.defineProperties,S=Object.getOwnPropertyDescriptors,P=Object.getOwnPropertySymbols,C=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable,N=(e,t,n)=>t in e?O(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,R=(e,t)=>{for(var n in t||(t={}))C.call(t,n)&&N(e,n,t[n]);if(P)for(var n of P(t))j.call(t,n)&&N(e,n,t[n]);return e},I=(e,t)=>E(e,S(t));const z={autosize:!1,size:"sm",__staticSelector:"Textarea"},A=(0,r.forwardRef)(((e,t)=>{const n=(0,b.N4)("Textarea",z,e),{autosize:o,maxRows:i,minRows:a,label:l,error:s,description:c,id:u,className:f,required:p,style:d,wrapperProps:h,classNames:m,styles:g,size:O,__staticSelector:E,sx:S,errorProps:N,descriptionProps:A,labelProps:T,inputWrapperOrder:D,inputContainer:L,unstyled:M,withAsterisk:F}=n,_=((e,t)=>{var n={};for(var r in e)C.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&P)for(var r of P(e))t.indexOf(r)<0&&j.call(e,r)&&(n[r]=e[r]);return n})(n,["autosize","maxRows","minRows","label","error","description","id","className","required","style","wrapperProps","classNames","styles","size","__staticSelector","sx","errorProps","descriptionProps","labelProps","inputWrapperOrder","inputContainer","unstyled","withAsterisk"]),B=(0,v.M)(u),{classes:W,cx:H}=w(),{systemStyles:U,rest:V}=(0,x.x)(_),$=R({required:p,ref:t,invalid:!!s,id:B,classNames:I(R({},m),{input:H(W.input,null==m?void 0:m.input)}),styles:g,__staticSelector:E,size:O,multiline:!0,unstyled:M},V);return r.createElement(k.I.Wrapper,R(R({label:l,error:s,id:B,description:c,required:p,style:d,className:f,classNames:m,styles:g,size:O,__staticSelector:E,sx:S,errorProps:N,labelProps:T,descriptionProps:A,inputContainer:L,inputWrapperOrder:D,unstyled:M,withAsterisk:F},U),h),o?r.createElement(k.I,I(R({},$),{component:y,maxRows:i,minRows:a})):r.createElement(k.I,I(R({},$),{component:"textarea",rows:a})))}));A.displayName="@mantine/core/Textarea"},77795:function(e,t,n){"use strict";n.d(t,{u:function(){return hn}});var r=n(2784),o=n.t(r,2);function i(e){return!Array.isArray(e)&&null!==e&&("object"===typeof e&&e.type!==r.Fragment)}var a=n(5248),l=n(51464),s=n(59618);const c=Math.min,u=Math.max,f=Math.round,p=Math.floor,d=e=>({x:e,y:e}),h={left:"right",right:"left",bottom:"top",top:"bottom"},m={start:"end",end:"start"};function g(e,t,n){return u(e,c(t,n))}function y(e,t){return"function"===typeof e?e(t):e}function v(e){return e.split("-")[0]}function b(e){return e.split("-")[1]}function w(e){return"x"===e?"y":"x"}function x(e){return"y"===e?"height":"width"}function k(e){return["top","bottom"].includes(v(e))?"y":"x"}function O(e){return w(k(e))}function E(e){return e.replace(/start|end/g,(e=>m[e]))}function S(e){return e.replace(/left|right|bottom|top/g,(e=>h[e]))}function P(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 C(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function j(e,t,n){let{reference:r,floating:o}=e;const i=k(t),a=O(t),l=x(a),s=v(t),c="y"===i,u=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,p=r[l]/2-o[l]/2;let d;switch(s){case"top":d={x:u,y:r.y-o.height};break;case"bottom":d={x:u,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:f};break;case"left":d={x:r.x-o.width,y:f};break;default:d={x:r.x,y:r.y}}switch(b(t)){case"start":d[a]-=p*(n&&c?-1:1);break;case"end":d[a]+=p*(n&&c?-1:1)}return d}async function N(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:p=!1,padding:d=0}=y(t,e),h=P(d),m=l[p?"floating"===f?"reference":"floating":f],g=C(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:s})),v="floating"===f?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),w=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},x=C(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:b,strategy:s}):v);return{top:(g.top-x.top+h.top)/w.y,bottom:(x.bottom-g.bottom+h.bottom)/w.y,left:(g.left-x.left+h.left)/w.x,right:(x.right-g.right+h.right)/w.x}}function R(e){const t=c(...e.map((e=>e.left))),n=c(...e.map((e=>e.top)));return{x:t,y:n,width:u(...e.map((e=>e.right)))-t,height:u(...e.map((e=>e.bottom)))-n}}function I(e){return T(e)?(e.nodeName||"").toLowerCase():"#document"}function z(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function A(e){var t;return null==(t=(T(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function T(e){return e instanceof Node||e instanceof z(e).Node}function D(e){return e instanceof Element||e instanceof z(e).Element}function L(e){return e instanceof HTMLElement||e instanceof z(e).HTMLElement}function M(e){return"undefined"!==typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof z(e).ShadowRoot)}function F(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=U(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function _(e){return["table","td","th"].includes(I(e))}function B(e){const t=W(),n=U(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!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 W(){return!("undefined"===typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function H(e){return["html","body","#document"].includes(I(e))}function U(e){return z(e).getComputedStyle(e)}function V(e){return D(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function $(e){if("html"===I(e))return e;const t=e.assignedSlot||e.parentNode||M(e)&&e.host||A(e);return M(t)?t.host:t}function q(e){const t=$(e);return H(t)?e.ownerDocument?e.ownerDocument.body:e.body:L(t)&&F(t)?t:q(t)}function Y(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=q(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=z(o);return i?t.concat(a,a.visualViewport||[],F(o)?o:[],a.frameElement&&n?Y(a.frameElement):[]):t.concat(o,Y(o,[],n))}function X(e){const t=U(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=L(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=f(n)!==i||f(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function Z(e){return D(e)?e:e.contextElement}function G(e){const t=Z(e);if(!L(t))return d(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=X(t);let a=(i?f(n.width):n.width)/r,l=(i?f(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const K=d(0);function Q(e){const t=z(e);return W()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:K}function J(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Z(e);let a=d(1);t&&(r?D(r)&&(a=G(r)):a=G(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==z(e))&&t}(i,n,r)?Q(i):d(0);let s=(o.left+l.x)/a.x,c=(o.top+l.y)/a.y,u=o.width/a.x,f=o.height/a.y;if(i){const e=z(i),t=r&&D(r)?z(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=G(o),t=o.getBoundingClientRect(),r=U(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,f*=e.y,s+=i,c+=a,n=z(o),o=n.frameElement}}return C({width:u,height:f,x:s,y:c})}const ee=[":popover-open",":modal"];function te(e){return ee.some((t=>{try{return e.matches(t)}catch(n){return!1}}))}function ne(e){return J(A(e)).left+V(e).scrollLeft}function re(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=z(e),r=A(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const e=W();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}(e,n);else if("document"===t)r=function(e){const t=A(e),n=V(e),r=e.ownerDocument.body,o=u(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=u(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+ne(e);const l=-n.scrollTop;return"rtl"===U(r).direction&&(a+=u(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}(A(e));else if(D(t))r=function(e,t){const n=J(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=L(e)?G(e):d(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Q(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return C(r)}function oe(e,t){const n=$(e);return!(n===t||!D(n)||H(n))&&("fixed"===U(n).position||oe(n,t))}function ie(e,t,n){const r=L(t),o=A(t),i="fixed"===n,a=J(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=d(0);if(r||!r&&!i)if(("body"!==I(t)||F(o))&&(l=V(t)),r){const e=J(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=ne(o));return{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function ae(e){return"static"===U(e).position}function le(e,t){return L(e)&&"fixed"!==U(e).position?t?t(e):e.offsetParent:null}function se(e,t){const n=z(e);if(te(e))return n;if(!L(e)){let t=$(e);for(;t&&!H(t);){if(D(t)&&!ae(t))return t;t=$(t)}return n}let r=le(e,t);for(;r&&_(r)&&ae(r);)r=le(r,t);return r&&H(r)&&ae(r)&&!B(r)?n:r||function(e){let t=$(e);for(;L(t)&&!H(t);){if(B(t))return t;t=$(t)}return null}(e)||n}const ce={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=A(r),l=!!t&&te(t.floating);if(r===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},c=d(1);const u=d(0),f=L(r);if((f||!f&&!i)&&(("body"!==I(r)||F(a))&&(s=V(r)),L(r))){const e=J(r);c=G(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x,y:n.y*c.y-s.scrollTop*c.y+u.y}},getDocumentElement:A,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?te(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Y(e,[],!1).filter((e=>D(e)&&"body"!==I(e))),o=null;const i="fixed"===U(e).position;let a=i?$(e):e;for(;D(a)&&!H(a);){const t=U(a),n=B(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||F(a)&&!n&&oe(e,a))?r=r.filter((e=>e!==a)):o=t,a=$(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[...i,r],l=a[0],s=a.reduce(((e,n)=>{const r=re(t,n,o);return e.top=u(r.top,e.top),e.right=c(r.right,e.right),e.bottom=c(r.bottom,e.bottom),e.left=u(r.left,e.left),e}),re(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:se,getElementRects:async function(e){const t=this.getOffsetParent||se,n=this.getDimensions,r=await n(e.floating);return{reference:ie(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=X(e);return{width:t,height:n}},getScale:G,isElement:D,isRTL:function(e){return"rtl"===U(e).direction}};function ue(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"===typeof ResizeObserver,layoutShift:l="function"===typeof IntersectionObserver,animationFrame:s=!1}=r,f=Z(e),d=o||i?[...f?Y(f):[],...Y(t)]:[];d.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const h=f&&l?function(e,t){let n,r=null;const o=A(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),i();const{left:f,top:d,width:h,height:m}=e.getBoundingClientRect();if(l||t(),!h||!m)return;const g={rootMargin:-p(d)+"px "+-p(o.clientWidth-(f+h))+"px "+-p(o.clientHeight-(d+m))+"px "+-p(f)+"px",threshold:u(0,c(1,s))||1};let y=!0;function v(e){const t=e[0].intersectionRatio;if(t!==s){if(!y)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}y=!1}try{r=new IntersectionObserver(v,{...g,root:o.ownerDocument})}catch(b){r=new IntersectionObserver(v,g)}r.observe(e)}(!0),i}(f,n):null;let m,g=-1,y=null;a&&(y=new ResizeObserver((e=>{let[r]=e;r&&r.target===f&&y&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame((()=>{var e;null==(e=y)||e.observe(t)}))),n()})),f&&!s&&y.observe(f),y.observe(t));let v=s?J(e):null;return s&&function t(){const r=J(e);!v||r.x===v.x&&r.y===v.y&&r.width===v.width&&r.height===v.height||n();v=r,m=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==h||h(),null==(e=y)||e.disconnect(),y=null,s&&cancelAnimationFrame(m)}}const fe=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:l}=t,s=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=v(n),l=b(n),s="y"===k(n),c=["left","top"].includes(a)?-1:1,u=i&&s?-1:1,f=y(t,e);let{mainAxis:p,crossAxis:d,alignmentAxis:h}="number"===typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&"number"===typeof h&&(d="end"===l?-1*h:h),s?{x:d*u,y:p*c}:{x:p*c,y:d*u}}(t,e);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}},pe=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=y(e,t),c={x:n,y:r},u=await N(t,s),f=k(v(o)),p=w(f);let d=c[p],h=c[f];if(i){const e="y"===p?"bottom":"right";d=g(d+u["y"===p?"top":"left"],d,d-u[e])}if(a){const e="y"===f?"bottom":"right";h=g(h+u["y"===f?"top":"left"],h,h-u[e])}const m=l.fn({...t,[p]:d,[f]:h});return{...m,data:{x:m.x-n,y:m.y-r}}}}},de=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:l,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=y(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const w=v(o),k=v(l)===l,P=await(null==s.isRTL?void 0:s.isRTL(c.floating)),C=p||(k||!m?[S(l)]:function(e){const t=S(e);return[E(e),t,E(t)]}(l));p||"none"===h||C.push(...function(e,t,n,r){const o=b(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(v(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(E)))),i}(l,m,h,P));const j=[l,...C],R=await N(t,g),I=[];let z=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&I.push(R[w]),f){const e=function(e,t,n){void 0===n&&(n=!1);const r=b(e),o=O(e),i=x(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=S(a)),[a,S(a)]}(o,a,P);I.push(R[e[0]],R[e[1]])}if(z=[...z,{placement:o,overflows:I}],!I.every((e=>e<=0))){var A,T;const e=((null==(A=i.flip)?void 0:A.index)||0)+1,t=j[e];if(t)return{data:{index:e,overflows:z},reset:{placement:t}};let n=null==(T=z.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:T.placement;if(!n)switch(d){case"bestFit":{var D;const e=null==(D=z.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:D[0];e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}},he=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:l,middlewareData:s}=t,{element:u,padding:f=0}=y(e,t)||{};if(null==u)return{};const p=P(f),d={x:n,y:r},h=O(o),m=x(h),v=await a.getDimensions(u),w="y"===h,k=w?"top":"left",E=w?"bottom":"right",S=w?"clientHeight":"clientWidth",C=i.reference[m]+i.reference[h]-d[h]-i.floating[m],j=d[h]-i.reference[h],N=await(null==a.getOffsetParent?void 0:a.getOffsetParent(u));let R=N?N[S]:0;R&&await(null==a.isElement?void 0:a.isElement(N))||(R=l.floating[S]||i.floating[m]);const I=C/2-j/2,z=R/2-v[m]/2-1,A=c(p[k],z),T=c(p[E],z),D=A,L=R-v[m]-T,M=R/2-v[m]/2+I,F=g(D,M,L),_=!s.arrow&&null!=b(o)&&M!==F&&i.reference[m]/2-(Me.y-t.y)),n=[];let r=null;for(let o=0;or.height/2?n.push([e]):n[n.length-1].push(e),r=e}return n.map((e=>C(R(e))))}(p),h=C(R(p)),m=P(l);const g=await i.getElementRects({reference:{getBoundingClientRect:function(){if(2===d.length&&d[0].left>d[1].right&&null!=s&&null!=f)return d.find((e=>s>e.left-m.left&&se.top-m.top&&f=2){if("y"===k(n)){const e=d[0],t=d[d.length-1],r="top"===v(n),o=e.top,i=t.bottom,a=r?e.left:t.left,l=r?e.right:t.right;return{top:o,bottom:i,left:a,right:l,width:l-a,height:i-o,x:a,y:o}}const e="left"===v(n),t=u(...d.map((e=>e.right))),r=c(...d.map((e=>e.left))),o=d.filter((n=>e?n.left===r:n.right===t)),i=o[0].top,a=o[o.length-1].bottom;return{top:i,bottom:a,left:r,right:t,width:t-r,height:a-i,x:r,y:i}}return h}},floating:r.floating,strategy:a});return o.reference.x!==g.reference.x||o.reference.y!==g.reference.y||o.reference.width!==g.reference.width||o.reference.height!==g.reference.height?{reset:{rects:g}}:{}}}},ge=(e,t,n)=>{const r=new Map,o={platform:ce,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=j(c,r,s),p=r,d={},h=0;for(let m=0;m{const{element:t,padding:n}=e;return{name:"arrow",options:e,fn(e){return r=t,Object.prototype.hasOwnProperty.call(r,"current")?null!=t.current?he({element:t.current,padding:n}).fn(e):{}:t?he({element:t,padding:n}).fn(e):{};var r}}};var be="undefined"!==typeof document?r.useLayoutEffect:r.useEffect;function we(e,t){if(e===t)return!0;if(typeof e!==typeof t)return!1;if("function"===typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!==r--;)if(!we(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!we(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function xe(e){const t=r.useRef(e);return be((()=>{t.current=e})),t}var ke="undefined"!==typeof document?r.useLayoutEffect:r.useEffect;function Oe(){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 Ee=!1,Se=0;const Pe=()=>"floating-ui-"+Se++;const Ce=o["useId".toString()],je=null!=Ce?Ce:function(){const[e,t]=r.useState((()=>Ee?Pe():void 0));return ke((()=>{null==e&&t(Pe())}),[]),r.useEffect((()=>{Ee||(Ee=!0)}),[]),e},Ne=r.createContext(null),Re=r.createContext(null),Ie=()=>{var e,t;return null!=(e=null==(t=r.useContext(Ne))?void 0:t.id)?e:null},ze=()=>r.useContext(Re);function Ae(e){var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document}function Te(e){var t;return null!=(t=Ae(e).defaultView)?t:window}function De(e){return!!e&&e instanceof Te(e).Element}function Le(e){return!!e&&e instanceof Te(e).HTMLElement}const Me=o["useInsertionEffect".toString()];function Fe(e){const t=r.useRef((()=>{0}));return Me?Me((()=>{t.current=e})):t.current=e,r.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;rOe()))[0],m=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,whileElementsMounted:a,open:l}=e,[s,c]=r.useState({x:null,y:null,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[u,f]=r.useState(o);we(u,o)||f(o);const p=r.useRef(null),d=r.useRef(null),h=r.useRef(s),m=xe(a),g=xe(i),[y,v]=r.useState(null),[b,w]=r.useState(null),x=r.useCallback((e=>{p.current!==e&&(p.current=e,v(e))}),[]),k=r.useCallback((e=>{d.current!==e&&(d.current=e,w(e))}),[]),O=r.useCallback((()=>{if(!p.current||!d.current)return;const e={placement:t,strategy:n,middleware:u};g.current&&(e.platform=g.current),ge(p.current,d.current,e).then((e=>{const t={...e,isPositioned:!0};E.current&&!we(h.current,t)&&(h.current=t,ye.flushSync((()=>{c(t)})))}))}),[u,t,n,g]);be((()=>{!1===l&&h.current.isPositioned&&(h.current.isPositioned=!1,c((e=>({...e,isPositioned:!1}))))}),[l]);const E=r.useRef(!1);be((()=>(E.current=!0,()=>{E.current=!1})),[]),be((()=>{if(y&&b){if(m.current)return m.current(y,b,O);O()}}),[y,b,O,m]);const S=r.useMemo((()=>({reference:p,floating:d,setReference:x,setFloating:k})),[x,k]),P=r.useMemo((()=>({reference:y,floating:b})),[y,b]);return r.useMemo((()=>({...s,update:O,refs:S,elements:P,reference:x,floating:k})),[s,O,S,P,x,k])}({placement:i,middleware:a,strategy:l,whileElementsMounted:o}),g=Fe(n),y=r.useMemo((()=>({...m.refs,domReference:p})),[m.refs]),v=r.useMemo((()=>({...m,refs:y,dataRef:d,nodeId:s,events:h,open:t,onOpenChange:g,_:{domReference:c}})),[m,s,h,t,g,y,c]);ke((()=>{const e=null==f?void 0:f.nodesRef.current.find((e=>e.id===s));e&&(e.context=v)}));const{reference:b}=m,w=r.useCallback((e=>{(De(e)||null===e)&&(v.refs.domReference.current=e,u(e)),b(e)}),[b,v.refs]);return r.useMemo((()=>({...m,context:v,refs:y,reference:w})),[m,y,v,w])}function Be(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,o]=t;var i;0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"===typeof o&&(null==(i=r.get(n))||i.push(o),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;ie(...o)))})):e[n]=o})),e):e),{})}}function We(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:[],o=r;for(;o.length;){var i;o=null!=(i=e.filter((e=>{var t;return null==(t=o)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})))?i:[],r=r.concat(o)}return r}function He(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Ue(e){const t=(0,r.useRef)(e);return ke((()=>{t.current=e})),t}function Ve(e){const t=(0,r.useRef)();return ke((()=>{t.current=e}),[e]),t.current}function $e(e,t,n){return n&&"mouse"!==n?0:"number"===typeof e?e:null==e?void 0:e[t]}const qe=function(e,t){let{enabled:n=!0,delay:o=0,handleClose:i=null,mouseOnly:a=!1,restMs:l=0,move:s=!0}=void 0===t?{}:t;const{open:c,onOpenChange:u,dataRef:f,events:p,refs:d,_:h}=e,m=ze(),g=Ie(),y=Ue(i),v=Ue(o),b=Ve(c),w=r.useRef(),x=r.useRef(),k=r.useRef(),O=r.useRef(),E=r.useRef(!0),S=r.useRef(!1),P=r.useCallback((()=>{var e;const t=null==(e=f.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[f]);r.useEffect((()=>{if(n)return p.on("dismiss",e),()=>{p.off("dismiss",e)};function e(){clearTimeout(x.current),clearTimeout(O.current),E.current=!0}}),[n,p,d]),r.useEffect((()=>{if(!n||!y.current)return;function e(){P()&&u(!1)}const t=Ae(d.floating.current).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[d,u,n,y,f,P]);const C=r.useCallback((function(e){void 0===e&&(e=!0);const t=$e(v.current,"close",w.current);t&&!k.current?(clearTimeout(x.current),x.current=setTimeout((()=>u(!1)),t)):e&&(clearTimeout(x.current),u(!1))}),[v,u]),j=r.useCallback((()=>{k.current&&(Ae(d.floating.current).removeEventListener("pointermove",k.current),k.current=void 0)}),[d]),N=r.useCallback((()=>{Ae(d.floating.current).body.style.pointerEvents="",S.current=!1}),[d]);return r.useEffect((()=>{if(!n)return;function t(){return!!f.current.openEvent&&["click","mousedown"].includes(f.current.openEvent.type)}function r(e){if(clearTimeout(x.current),E.current=!1,a&&"mouse"!==w.current||l>0&&0===$e(v.current,"open"))return;f.current.openEvent=e;const t=$e(v.current,"open",w.current);t?x.current=setTimeout((()=>{u(!0)}),t):u(!0)}function o(n){if(t())return;const r=Ae(d.floating.current);if(clearTimeout(O.current),y.current)return clearTimeout(x.current),k.current&&r.removeEventListener("pointermove",k.current),k.current=y.current({...e,tree:m,x:n.clientX,y:n.clientY,onClose(){N(),j(),C()}}),void r.addEventListener("pointermove",k.current);C()}function i(n){t()||null==y.current||y.current({...e,tree:m,x:n.clientX,y:n.clientY,leave:!0,onClose(){N(),j(),C()}})(n)}const p=d.floating.current,h=d.domReference.current;return De(h)?(c&&h.addEventListener("mouseleave",i),null==p||p.addEventListener("mouseleave",i),s&&h.addEventListener("mousemove",r,{once:!0}),h.addEventListener("mouseenter",r),h.addEventListener("mouseleave",o),()=>{c&&h.removeEventListener("mouseleave",i),null==p||p.removeEventListener("mouseleave",i),s&&h.removeEventListener("mousemove",r),h.removeEventListener("mouseenter",r),h.removeEventListener("mouseleave",o)}):void 0}),[h.domReference,n,e,a,l,s,C,j,N,u,c,m,d,v,y,f]),ke((()=>{if(n&&c&&y.current&&y.current.__options.blockPointerEvents&&P()){Ae(d.floating.current).body.style.pointerEvents="none",S.current=!0;const n=d.domReference.current,r=d.floating.current;if(De(n)&&r){var e,t;const o=null==m||null==(e=m.nodesRef.current.find((e=>e.id===g)))||null==(t=e.context)?void 0:t.refs.floating.current;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="auto",r.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents=""}}}}),[n,c,g,d,m,y,f,P]),ke((()=>{b&&!c&&(w.current=void 0,j(),N())})),r.useEffect((()=>()=>{j(),clearTimeout(x.current),clearTimeout(O.current),S.current&&N()}),[n,j,N]),r.useMemo((()=>{if(!n)return{};function e(e){w.current=e.pointerType}return{reference:{onPointerDown:e,onPointerEnter:e,onMouseMove(){c||0===l||(clearTimeout(O.current),O.current=setTimeout((()=>{E.current||u(!0)}),l))}},floating:{onMouseEnter(){clearTimeout(x.current)},onMouseLeave(){C(!1)}}}}),[n,l,c,u,C])},Ye=r.createContext({delay:1e3,initialDelay:1e3,currentId:null,setCurrentId:()=>{},setState:()=>{}}),Xe=()=>r.useContext(Ye),Ze=e=>{let{children:t,delay:n}=e;const[o,i]=r.useState({delay:n,initialDelay:n,currentId:null}),a=r.useCallback((e=>{i((t=>({...t,currentId:e})))}),[]);return r.createElement(Ye.Provider,{value:r.useMemo((()=>({...o,setState:i,setCurrentId:a})),[o,i,a])},t)},Ge=(e,t)=>{let{open:n,onOpenChange:o}=e,{id:i}=t;const{currentId:a,initialDelay:l,setState:s}=Xe();r.useEffect((()=>{a&&(s((e=>({...e,delay:{open:1,close:$e(l,"close")}}))),a!==i&&o(!1))}),[i,o,s,a,l]),r.useEffect((()=>{n||a!==i||(o(!1),s((e=>({...e,delay:l,currentId:null}))))}),[n,s,a,i,o,l])};const Ke=function(e,t){let{open:n}=e,{enabled:o=!0,role:i="dialog"}=void 0===t?{}:t;const a=je(),l=je();return r.useMemo((()=>{const e={id:a,role:i};return o?"tooltip"===i?{reference:{"aria-describedby":n?a:void 0},floating:e}:{reference:{"aria-expanded":n?"true":"false","aria-haspopup":"alertdialog"===i?"dialog":i,"aria-controls":n?a:void 0,..."listbox"===i&&{role:"combobox"},..."menu"===i&&{id:l}},floating:{...e,..."menu"===i&&{"aria-labelledby":l}}}:{}}),[o,i,n,a,l])};function Qe(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 Je={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},et={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},tt=function(e,t){let{open:n,onOpenChange:o,refs:i,events:a,nodeId:l}=e,{enabled:s=!0,escapeKey:c=!0,outsidePress:u=!0,outsidePressEvent:f="pointerdown",referencePress:p=!1,referencePressEvent:d="pointerdown",ancestorScroll:h=!1,bubbles:m=!0}=void 0===t?{}:t;const g=ze(),y=null!=Ie(),v=r.useRef(!1);return r.useEffect((()=>{if(!n||!s)return;function e(e){if("Escape"===e.key){if(!m&&g&&We(g.nodesRef.current,l).length>0)return;a.emit("dismiss",{preventScroll:!1}),o(!1)}}function t(e){const t=v.current;if(v.current=!1,t)return;const n=He(e);if(De(n)&&i.floating.current){var r;const t=null!=(r=i.floating.current.ownerDocument.defaultView)?r:window,o=n.scrollWidth>n.clientWidth,a=n.scrollHeight>n.clientHeight;let l=a&&e.offsetX>n.clientWidth;if(a){"rtl"===t.getComputedStyle(n).direction&&(l=e.offsetX<=n.offsetWidth-n.clientWidth)}if(l||o&&e.offsetY>n.clientHeight)return}const s=g&&We(g.nodesRef.current,l).some((t=>{var n;return Qe(e,null==(n=t.context)?void 0:n.refs.floating.current)}));Qe(e,i.floating.current)||Qe(e,i.domReference.current)||s||!m&&g&&We(g.nodesRef.current,l).length>0||(a.emit("dismiss",!!y&&{preventScroll:!0}),o(!1))}function r(){o(!1)}const p=Ae(i.floating.current);c&&p.addEventListener("keydown",e),u&&p.addEventListener(f,t);let d=[];return h&&(De(i.domReference.current)&&(d=Y(i.domReference.current)),De(i.floating.current)&&(d=d.concat(Y(i.floating.current))),!De(i.reference.current)&&i.reference.current&&i.reference.current.contextElement&&(d=d.concat(Y(i.reference.current.contextElement)))),d=d.filter((e=>{var t;return e!==(null==(t=p.defaultView)?void 0:t.visualViewport)})),d.forEach((e=>{e.addEventListener("scroll",r,{passive:!0})})),()=>{c&&p.removeEventListener("keydown",e),u&&p.removeEventListener(f,t),d.forEach((e=>{e.removeEventListener("scroll",r)}))}}),[c,u,f,a,g,l,n,o,h,s,m,i,y]),r.useEffect((()=>{v.current=!1}),[u,f]),r.useMemo((()=>s?{reference:{[Je[d]]:()=>{p&&(a.emit("dismiss"),o(!1))}},floating:{[et[f]]:()=>{v.current=!0}}}:{}),[s,a,p,f,d,o])},nt=function(e,t){let{open:n,onOpenChange:o,dataRef:i,refs:a,events:l}=e,{enabled:s=!0,keyboardOnly:c=!0}=void 0===t?{}:t;const u=r.useRef(""),f=r.useRef(!1),p=r.useRef();return r.useEffect((()=>{var e;if(!s)return;const t=null!=(e=Ae(a.floating.current).defaultView)?e:window;function r(){!n&&Le(a.domReference.current)&&a.domReference.current.blur()}return t.addEventListener("blur",r),()=>{t.removeEventListener("blur",r)}}),[a,n,s]),r.useEffect((()=>{if(s)return l.on("dismiss",e),()=>{l.off("dismiss",e)};function e(){f.current=!0}}),[l,s]),r.useEffect((()=>()=>{clearTimeout(p.current)}),[]),r.useMemo((()=>s?{reference:{onPointerDown(e){let{pointerType:t}=e;u.current=t,f.current=!(!t||!c)},onPointerLeave(){f.current=!1},onFocus(e){var t,n,r;f.current||"focus"===e.type&&"mousedown"===(null==(t=i.current.openEvent)?void 0:t.type)&&null!=(n=a.domReference.current)&&n.contains(null==(r=i.current.openEvent)?void 0:r.target)||(i.current.openEvent=e.nativeEvent,o(!0))},onBlur(e){const t=e.relatedTarget;p.current=setTimeout((()=>{var e,n;null!=(e=a.floating.current)&&e.contains(t)||null!=(n=a.domReference.current)&&n.contains(t)||(f.current=!1,o(!1))}))}}}:{}),[s,c,a,i,o])};const rt=(0,r.createContext)(!1),ot=rt.Provider;function it({children:e,openDelay:t=0,closeDelay:n=0}){return r.createElement(ot,{value:!0},r.createElement(Ze,{delay:{open:t,close:n}},e))}it.displayName="@mantine/core/TooltipGroup";var at=n(41319),lt=Object.defineProperty,st=Object.defineProperties,ct=Object.getOwnPropertyDescriptors,ut=Object.getOwnPropertySymbols,ft=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,dt=(e,t,n)=>t in e?lt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ht=(e,t)=>{for(var n in t||(t={}))ft.call(t,n)&&dt(e,n,t[n]);if(ut)for(var n of ut(t))pt.call(t,n)&&dt(e,n,t[n]);return e};function mt(e,t){if(!t)return{backgroundColor:"dark"===e.colorScheme?e.colors.dark[6]:e.colors.gray[9],color:e.white};const n=e.fn.variant({variant:"filled",color:t,primaryFallback:!1});return{backgroundColor:n.background,color:n.color}}var gt=(0,at.k)(((e,{color:t,radius:n,width:r,multiline:o})=>{return{tooltip:(i=ht(ht({},e.fn.fontStyles()),mt(e,t)),a={lineHeight:e.lineHeight,fontSize:e.fontSizes.sm,borderRadius:e.fn.radius(n),padding:`calc(${e.spacing.xs}px / 2) ${e.spacing.xs}px`,position:"absolute",whiteSpace:o?"unset":"nowrap",pointerEvents:"none",width:r},st(i,ct(a))),arrow:{backgroundColor:"inherit",border:0,zIndex:1}};var i,a}));const yt="Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported";var vt=n(33031),bt=n(69558),wt=Object.defineProperty,xt=Object.defineProperties,kt=Object.getOwnPropertyDescriptors,Ot=Object.getOwnPropertySymbols,Et=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable,Pt=(e,t,n)=>t in e?wt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ct=(e,t)=>{for(var n in t||(t={}))Et.call(t,n)&&Pt(e,n,t[n]);if(Ot)for(var n of Ot(t))St.call(t,n)&&Pt(e,n,t[n]);return e},jt=(e,t)=>xt(e,kt(t));const Nt={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:(0,l.w)("popover")};function Rt(e){var t;const n=(0,s.N4)("TooltipFloating",Nt,e),{children:o,refProp:l,withinPortal:c,style:u,className:f,classNames:p,styles:d,unstyled:h,radius:m,color:g,label:y,offset:v,position:b,multiline:w,width:x,zIndex:k,disabled:O}=n,E=((e,t)=>{var n={};for(var r in e)Et.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Ot)for(var r of Ot(e))t.indexOf(r)<0&&St.call(e,r)&&(n[r]=e[r]);return n})(n,["children","refProp","withinPortal","style","className","classNames","styles","unstyled","radius","color","label","offset","position","multiline","width","zIndex","disabled"]),{handleMouseMove:S,x:P,y:C,opened:j,boundaryRef:N,floating:R,setOpened:I}=function({offset:e,position:t}){const[n,o]=(0,r.useState)(!1),i=(0,r.useRef)(),{x:a,y:l,reference:s,floating:c,refs:u,update:f,placement:p}=_e({placement:t,middleware:[pe({crossAxis:!0,padding:5,rootBoundary:"document"})]}),d=p.includes("right")?e:t.includes("left")?-1*e:0,h=p.includes("bottom")?e:t.includes("top")?-1*e:0,m=(0,r.useCallback)((({clientX:e,clientY:t})=>{s({getBoundingClientRect:()=>({width:0,height:0,x:e,y:t,left:e+d,top:t+h,right:e,bottom:t})})}),[s]);return(0,r.useEffect)((()=>{if(u.floating.current){const e=i.current;e.addEventListener("mousemove",m);const t=Y(u.floating.current);return t.forEach((e=>{e.addEventListener("scroll",f)})),()=>{e.removeEventListener("mousemove",m),t.forEach((e=>{e.removeEventListener("scroll",f)}))}}}),[s,u.floating,f,m,n]),{handleMouseMove:m,x:a,y:l,opened:n,setOpened:o,boundaryRef:i,floating:c}}({offset:v,position:b}),{classes:z,cx:A}=gt({radius:m,color:g,multiline:w,width:x},{name:"TooltipFloating",classNames:p,styles:d,unstyled:h});if(!i(o))throw new Error(yt);const T=(0,a.Y)(N,o.ref);return O?r.createElement(r.Fragment,null,o):r.createElement(r.Fragment,null,r.createElement(vt.q,{withinPortal:c},r.createElement(bt.x,jt(Ct({},E),{ref:R,className:A(z.tooltip,f),style:jt(Ct({},u),{zIndex:k,display:j?"block":"none",top:null!=C?C:"",left:null!=(t=Math.round(P))?t:""})}),y)),(0,r.cloneElement)(o,jt(Ct({},o.props),{[l]:T,onMouseEnter:e=>{var t,n;null==(n=(t=o.props).onMouseEnter)||n.call(t,e),S(e),I(!0)},onMouseLeave:e=>{var t,n;null==(n=(t=o.props).onMouseLeave)||n.call(t,e),I(!1)}})))}Rt.displayName="@mantine/core/TooltipFloating";var It=n(80298),zt=n(55913);function At(e){const[t,n]=(0,r.useState)(!1),o="boolean"===typeof e.opened?e.opened:t,i=(0,r.useContext)(rt),a=(0,It.M)(),{delay:l,currentId:s,setCurrentId:c}=Xe(),u=(0,r.useCallback)((e=>{n(e),e&&c(a)}),[c,a]),{x:f,y:p,reference:d,floating:h,context:m,refs:g,update:y,placement:v,middlewareData:{arrow:{x:b,y:w}={}}}=_e({placement:e.position,open:o,onOpenChange:u,middleware:[fe(e.offset),pe({padding:8}),de(),ve({element:e.arrowRef,padding:e.arrowOffset}),...e.inline?[me()]:[]]}),{getReferenceProps:x,getFloatingProps:k}=function(e){void 0===e&&(e=[]);const t=e,n=r.useCallback((t=>Be(t,e,"reference")),t),o=r.useCallback((t=>Be(t,e,"floating")),t),i=r.useCallback((t=>Be(t,e,"item")),t);return r.useMemo((()=>({getReferenceProps:n,getFloatingProps:o,getItemProps:i})),[n,o,i])}([qe(m,{enabled:e.events.hover,delay:i?l:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events.touch}),nt(m,{enabled:e.events.focus,keyboardOnly:!0}),Ke(m,{role:"tooltip"}),tt(m,{enabled:void 0===typeof e.opened}),Ge(m,{id:a})]);!function({opened:e,floating:t,positionDependencies:n}){const[o,i]=(0,r.useState)(0);(0,r.useEffect)((()=>{if(t.refs.reference.current&&t.refs.floating.current)return ue(t.refs.reference.current,t.refs.floating.current,t.update)}),[t.refs.reference,t.refs.floating,e,o]),(0,zt.l)((()=>{t.update()}),n),(0,zt.l)((()=>{i((e=>e+1))}),[e])}({opened:o,positionDependencies:e.positionDependencies,floating:{refs:g,update:y}}),(0,zt.l)((()=>{var t;null==(t=e.onPositionChange)||t.call(e,v)}),[v]);return{x:f,y:p,arrowX:b,arrowY:w,reference:d,floating:h,getFloatingProps:k,getReferenceProps:x,isGroupPhase:o&&s&&s!==a,opened:o,placement:v}}function Tt(e,t){if("rtl"===e&&(t.includes("right")||t.includes("left"))){const[e,n]=t.split("-"),r="right"===e?"left":"right";return void 0===n?r:`${r}-${n}`}return t}var Dt=n(50527),Lt=Object.defineProperty,Mt=Object.defineProperties,Ft=Object.getOwnPropertyDescriptors,_t=Object.getOwnPropertySymbols,Bt=Object.prototype.hasOwnProperty,Wt=Object.prototype.propertyIsEnumerable,Ht=(e,t,n)=>t in e?Lt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ut=(e,t)=>{for(var n in t||(t={}))Bt.call(t,n)&&Ht(e,n,t[n]);if(_t)for(var n of _t(t))Wt.call(t,n)&&Ht(e,n,t[n]);return e},Vt=(e,t)=>Mt(e,Ft(t));function $t(e,t,n,r){return"center"===e||"center"===r?{top:t}:"end"===e?{bottom:n}:"start"===e?{top:n}:{}}function qt(e,t,n,r,o){return"center"===e||"center"===r?{left:t}:"end"===e?{["ltr"===o?"right":"left"]:n}:"start"===e?{["ltr"===o?"left":"right"]:n}:{}}const Yt={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function Xt({position:e,withBorder:t,arrowSize:n,arrowOffset:r,arrowRadius:o,arrowPosition:i,arrowX:a,arrowY:l,dir:s}){const[c,u="center"]=e.split("-"),f={width:n,height:n,transform:"rotate(45deg)",position:"absolute",[Yt[c]]:o},p=t?-n/2-1:-n/2;return"left"===c?Vt(Ut(Ut({},f),$t(u,l,r,i)),{right:p,borderLeft:0,borderBottom:0}):"right"===c?Vt(Ut(Ut({},f),$t(u,l,r,i)),{left:p,borderRight:0,borderTop:0}):"top"===c?Vt(Ut(Ut({},f),qt(u,a,r,i,s)),{bottom:p,borderTop:0,borderLeft:0}):"bottom"===c?Vt(Ut(Ut({},f),qt(u,a,r,i,s)),{top:p,borderBottom:0,borderRight:0}):{}}var Zt=Object.defineProperty,Gt=Object.defineProperties,Kt=Object.getOwnPropertyDescriptors,Qt=Object.getOwnPropertySymbols,Jt=Object.prototype.hasOwnProperty,en=Object.prototype.propertyIsEnumerable,tn=(e,t,n)=>t in e?Zt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const nn=(0,r.forwardRef)(((e,t)=>{var n=e,{withBorder:o,position:i,arrowSize:a,arrowOffset:l,arrowRadius:c,arrowPosition:u,visible:f,arrowX:p,arrowY:d}=n,h=((e,t)=>{var n={};for(var r in e)Jt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Qt)for(var r of Qt(e))t.indexOf(r)<0&&en.call(e,r)&&(n[r]=e[r]);return n})(n,["withBorder","position","arrowSize","arrowOffset","arrowRadius","arrowPosition","visible","arrowX","arrowY"]);const m=(0,s.rZ)();return f?r.createElement("div",(g=((e,t)=>{for(var n in t||(t={}))Jt.call(t,n)&&tn(e,n,t[n]);if(Qt)for(var n of Qt(t))en.call(t,n)&&tn(e,n,t[n]);return e})({},h),y={ref:t,style:Xt({withBorder:o,position:i,arrowSize:a,arrowOffset:l,arrowRadius:c,arrowPosition:u,dir:m.dir,arrowX:p,arrowY:d})},Gt(g,Kt(y)))):null;var g,y}));nn.displayName="@mantine/core/FloatingArrow";var rn=Object.defineProperty,on=Object.defineProperties,an=Object.getOwnPropertyDescriptors,ln=Object.getOwnPropertySymbols,sn=Object.prototype.hasOwnProperty,cn=Object.prototype.propertyIsEnumerable,un=(e,t,n)=>t in e?rn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fn=(e,t)=>{for(var n in t||(t={}))sn.call(t,n)&&un(e,n,t[n]);if(ln)for(var n of ln(t))cn.call(t,n)&&un(e,n,t[n]);return e};const pn={position:"top",refProp:"ref",withinPortal:!1,inline:!1,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transition:"fade",transitionDuration:100,width:"auto",events:{hover:!0,focus:!1,touch:!1},zIndex:(0,l.w)("popover"),positionDependencies:[]},dn=(0,r.forwardRef)(((e,t)=>{const n=(0,r.useRef)(null),o=(0,s.N4)("Tooltip",pn,e),{children:l,position:c,refProp:u,label:f,openDelay:p,closeDelay:d,onPositionChange:h,opened:m,withinPortal:g,radius:y,color:v,classNames:b,styles:w,unstyled:x,style:k,className:O,withArrow:E,arrowSize:S,arrowOffset:P,arrowRadius:C,arrowPosition:j,offset:N,transition:R,transitionDuration:I,multiline:z,width:A,events:T,zIndex:D,disabled:L,positionDependencies:M,onClick:F,onMouseEnter:_,onMouseLeave:B,inline:W}=o,H=((e,t)=>{var n={};for(var r in e)sn.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&ln)for(var r of ln(e))t.indexOf(r)<0&&cn.call(e,r)&&(n[r]=e[r]);return n})(o,["children","position","refProp","label","openDelay","closeDelay","onPositionChange","opened","withinPortal","radius","color","classNames","styles","unstyled","style","className","withArrow","arrowSize","arrowOffset","arrowRadius","arrowPosition","offset","transition","transitionDuration","multiline","width","events","zIndex","disabled","positionDependencies","onClick","onMouseEnter","onMouseLeave","inline"]),{classes:U,cx:V,theme:$}=gt({radius:y,color:v,width:A,multiline:z},{name:"Tooltip",classNames:b,styles:w,unstyled:x}),q=At({position:Tt($.dir,c),closeDelay:d,openDelay:p,onPositionChange:h,opened:m,events:T,arrowRef:n,arrowOffset:P,offset:N+(E?S/2:0),positionDependencies:[...M,l],inline:W});if(!i(l))throw new Error(yt);const Y=(0,a.Y)(q.reference,l.ref,t);return r.createElement(r.Fragment,null,r.createElement(vt.q,{withinPortal:g},r.createElement(Dt.u,{mounted:!L&&q.opened,transition:R,duration:q.isGroupPhase?10:I},(e=>{var t,o,i,a;return r.createElement(bt.x,fn(fn({},H),q.getFloatingProps({ref:q.floating,className:U.tooltip,style:(i=fn(fn({},k),e),a={zIndex:D,top:null!=(t=q.y)?t:0,left:null!=(o=q.x)?o:0},on(i,an(a)))})),f,r.createElement(nn,{ref:n,arrowX:q.arrowX,arrowY:q.arrowY,visible:E,withBorder:!1,position:q.placement,arrowSize:S,arrowOffset:P,arrowRadius:C,arrowPosition:j,className:U.arrow}))}))),(0,r.cloneElement)(l,q.getReferenceProps(fn({onClick:F,onMouseEnter:_,onMouseLeave:B,onMouseMove:e.onMouseMove,onPointerDown:e.onPointerDown,onPointerEnter:e.onPointerEnter,[u]:Y,className:V(O,l.props.className)},l.props))))}));dn.Group=it,dn.Floating=Rt,dn.displayName="@mantine/core/Tooltip";const hn=dn},50527:function(e,t,n){"use strict";n.d(t,{u:function(){return a}});var r=n(2784),o=n(76835),i=n(99212);function a({transition:e,duration:t=250,exitDuration:n=t,mounted:a,children:l,timingFunction:s,onExit:c,onEntered:u,onEnter:f,onExited:p}){const{transitionDuration:d,transitionStatus:h,transitionTimingFunction:m}=(0,i.Y)({mounted:a,exitDuration:n,duration:t,timingFunction:s,onExit:c,onEntered:u,onEnter:f,onExited:p});return 0===d?a?r.createElement(r.Fragment,null,l({})):null:"exited"===h?null:r.createElement(r.Fragment,null,l((0,o.B)({transition:e,duration:d,state:h,timingFunction:m})))}a.displayName="@mantine/core/Transition"},76835:function(e,t,n){"use strict";n.d(t,{B:function(){return x}});var r=Object.defineProperty,o=Object.defineProperties,i=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,c=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,u=(e,t)=>{for(var n in t||(t={}))l.call(t,n)&&c(e,n,t[n]);if(a)for(var n of a(t))s.call(t,n)&&c(e,n,t[n]);return e},f=(e,t)=>o(e,i(t));const p={in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(.9) translateY(10px)"},transitionProperty:"transform, opacity"},d={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(-20px) skew(-10deg, -5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:f(u({},p),{common:{transformOrigin:"center center"}}),"pop-bottom-left":f(u({},p),{common:{transformOrigin:"bottom left"}}),"pop-bottom-right":f(u({},p),{common:{transformOrigin:"bottom right"}}),"pop-top-left":f(u({},p),{common:{transformOrigin:"top left"}}),"pop-top-right":f(u({},p),{common:{transformOrigin:"top right"}})};var h=Object.defineProperty,m=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,v=(e,t,n)=>t in e?h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,b=(e,t)=>{for(var n in t||(t={}))g.call(t,n)&&v(e,n,t[n]);if(m)for(var n of m(t))y.call(t,n)&&v(e,n,t[n]);return e};const w={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function x({transition:e,state:t,duration:n,timingFunction:r}){const o={transitionDuration:`${n}ms`,transitionTimingFunction:r};return"string"===typeof e?e in d?b(b(b({transitionProperty:d[e].transitionProperty},o),d[e].common),d[e][w[t]]):null:b(b(b({transitionProperty:e.transitionProperty},o),e.common),e[w[t]])}},99212:function(e,t,n){"use strict";n.d(t,{Y:function(){return l}});var r=n(2784),o=n(88837),i=n(55913),a=n(59618);function l({duration:e,exitDuration:t,timingFunction:n,mounted:l,onEnter:s,onExit:c,onEntered:u,onExited:f}){const p=(0,a.rZ)(),d=(0,o.J)(),h=!!p.respectReducedMotion&&d,[m,g]=(0,r.useState)(l?"entered":"exited");let y=h?0:e;const v=(0,r.useRef)(-1);return(0,i.l)((()=>{(n=>{const r=n?s:c,o=n?u:f;if(g(n?"pre-entering":"pre-exiting"),window.clearTimeout(v.current),y=h?0:n?e:t,0===y)"function"===typeof r&&r(),"function"===typeof o&&o(),g(n?"entered":"exited");else{const e=window.setTimeout((()=>{"function"===typeof r&&r(),g(n?"entering":"exiting")}),10);v.current=window.setTimeout((()=>{window.clearTimeout(e),"function"===typeof o&&o(),g(n?"entered":"exited")}),y)}})(l)}),[l]),(0,r.useEffect)((()=>()=>window.clearTimeout(v.current)),[]),{transitionDuration:y,transitionStatus:m,transitionTimingFunction:n||p.transitionTimingFunction}}},256:function(e,t,n){"use strict";n.d(t,{c:function(){return z}});var r=n(2784),o=n(69378),i=n.n(o);function a(e){return null===e||"object"!==typeof e?{}:Object.keys(e).reduce(((t,n)=>{const r=e[n];return void 0!==r&&null!==r&&!1!==r&&(t[n]=r),t}),{})}var l=Object.defineProperty,s=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,f=(e,t,n)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function p(e,t){if(null===t||"object"!==typeof t)return{};const n=((e,t)=>{for(var n in t||(t={}))c.call(t,n)&&f(e,n,t[n]);if(s)for(var n of s(t))u.call(t,n)&&f(e,n,t[n]);return e})({},t);return Object.keys(t).forEach((t=>{t.includes(`${String(e)}.`)&&delete n[t]})),n}function d(e,t){return!!t&&("boolean"===typeof t?t:!!Array.isArray(t)&&t.includes(e.replace(/[.][0-9]/g,".__MANTINE_FORM_INDEX__")))}function h(e){if("object"!==typeof e)return e;var t,n,r=Object.prototype.toString.call(e);if("[object Object]"===r){if(e.constructor!==Object&&"function"===typeof e.constructor)for(t in n=new e.constructor,e)e.hasOwnProperty(t)&&n[t]!==e[t]&&(n[t]=h(e[t]));else for(t in n={},e)"__proto__"===t?Object.defineProperty(n,t,{value:h(e[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=h(e[t]);return n}if("[object Array]"===r){for(t=e.length,n=Array(t);t--;)n[t]=h(e[t]);return n}return"[object Set]"===r?(n=new Set,e.forEach((function(e){n.add(h(e))})),n):"[object Map]"===r?(n=new Map,e.forEach((function(e,t){n.set(h(t),h(e))})),n):"[object Date]"===r?new Date(+e):"[object RegExp]"===r?((n=new RegExp(e.source,e.flags)).lastIndex=e.lastIndex,n):"[object DataView]"===r?new e.constructor(h(e.buffer)):"[object ArrayBuffer]"===r?e.slice(0):"Array]"===r.slice(-6)?new e.constructor(e):e}function m(e){return"string"!==typeof e?[]:e.split(".")}function g(e,t,n){const r=m(e);if(0===r.length)return n;const o=h(n);if(1===r.length)return o[r[0]]=t,o;let i=o[r[0]];for(let a=1;a0,errors:t}}function b(e,t,n="",r={}){return"object"!==typeof e||null===e?r:Object.keys(e).reduce(((r,o)=>{const i=e[o],a=`${""===n?"":`${n}.`}${o}`,l=y(a,t);let s=!1;return"function"===typeof i&&(r[a]=i(l,t,a)),"object"===typeof i&&Array.isArray(l)&&(s=!0,l.forEach(((e,n)=>b(i,t,`${a}.${n}`,r)))),"object"===typeof i&&"object"===typeof l&&null!==l&&(s||b(i,t,a,r)),r}),r)}function w(e,t){return v("function"===typeof e?e(t):b(e,t))}function x(e,t,n){if("string"!==typeof e)return{hasError:!1,error:null};const r=w(t,n),o=Object.keys(r.errors).find((t=>e.split(".").every(((e,n)=>e===t.split(".")[n]))));return{hasError:!!o,error:o?r.errors[o]:null}}function k(e,t){const n=Object.keys(e);if("string"===typeof t){const r=n.filter((e=>e.startsWith(`${t}.`)));return e[t]||r.some((t=>e[t]))||!1}return n.some((t=>e[t]))}var O=Object.defineProperty,E=Object.defineProperties,S=Object.getOwnPropertyDescriptors,P=Object.getOwnPropertySymbols,C=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable,N=(e,t,n)=>t in e?O(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,R=(e,t)=>{for(var n in t||(t={}))C.call(t,n)&&N(e,n,t[n]);if(P)for(var n of P(t))j.call(t,n)&&N(e,n,t[n]);return e},I=(e,t)=>E(e,S(t));function z({initialValues:e={},initialErrors:t={},initialDirty:n={},initialTouched:o={},clearInputErrorOnChange:l=!0,validateInputOnChange:s=!1,validateInputOnBlur:c=!1,transformValues:u=(e=>e),validate:f}={}){const[h,m]=(0,r.useState)(o),[v,b]=(0,r.useState)(n),[O,E]=(0,r.useState)(e),[S,P]=(0,r.useState)(a(t)),C=(0,r.useRef)(e),j=(0,r.useCallback)((()=>m({})),[]),N=e=>{(e=>{C.current=e})(e||O),b({})},z=(0,r.useCallback)((e=>P((t=>a("function"===typeof e?e(t):e)))),[]),A=(0,r.useCallback)((()=>P({})),[]),T=(0,r.useCallback)((()=>{E(e),A(),N(e),j()}),[]),D=(0,r.useCallback)(((e,t)=>z((n=>I(R({},n),{[e]:t})))),[]),L=(0,r.useCallback)((e=>z((t=>{if("string"!==typeof e)return t;const n=R({},t);return delete n[e],n}))),[]),M=(0,r.useCallback)((e=>b((t=>{if("string"!==typeof e)return t;const n=p(e,t);return delete n[e],n}))),[]),F=(0,r.useCallback)(((e,t)=>{const n=d(e,s);M(e),m((t=>I(R({},t),{[e]:!0}))),E((r=>{const o=g(e,t,r);if(n){const t=x(e,f,o);t.hasError?D(e,t.error):L(e)}return o})),!n&&l&&D(e,null)}),[]),_=(0,r.useCallback)((e=>{E((t=>{const n="function"===typeof e?e(t):e;return R(R({},t),n)})),l&&A()}),[]),B=(0,r.useCallback)(((e,t)=>{M(e),E((n=>function(e,{from:t,to:n},r){const o=y(e,r);if(!Array.isArray(o))return r;const i=[...o],a=o[t];return i.splice(t,1),i.splice(n,0,a),g(e,i,r)}(e,t,n)))}),[]),W=(0,r.useCallback)(((e,t)=>{M(e),E((n=>function(e,t,n){const r=y(e,n);return Array.isArray(r)?g(e,r.filter(((e,n)=>n!==t)),n):n}(e,t,n))),P((t=>p(e,t)))}),[]),H=(0,r.useCallback)(((e,t,n)=>{M(e),E((r=>function(e,t,n,r){const o=y(e,r);if(!Array.isArray(o))return r;const i=[...o];return i.splice("number"===typeof n?n:i.length,0,t),g(e,i,r)}(e,t,n,r)))}),[]),U=(0,r.useCallback)((()=>{const e=w(f,O);return P(e.errors),e}),[O,f]),V=(0,r.useCallback)((e=>{const t=x(e,f,O);return t.hasError?D(e,t.error):L(e),t}),[O,f]),$=(0,r.useCallback)((e=>{e.preventDefault(),T()}),[]),q=(0,r.useCallback)((e=>k(h,e)),[h]),Y=(0,r.useCallback)((e=>e?!x(e,f,O).hasError:!w(f,O).hasErrors),[O,f]);return{values:O,errors:S,setValues:_,setErrors:z,setFieldValue:F,setFieldError:D,clearFieldError:L,clearErrors:A,reset:T,validate:U,validateField:V,reorderListItem:B,removeListItem:W,insertListItem:H,getInputProps:(e,{type:t="input",withError:n="input"===t,withFocus:r=!0}={})=>{var o;const i={onChange:(o=t=>F(e,t),e=>{if(e)if("function"===typeof e)o(e);else if("object"===typeof e&&"nativeEvent"in e){const{currentTarget:t}=e;t instanceof HTMLInputElement?"checkbox"===t.type?o(t.checked):o(t.value):(t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement)&&o(t.value)}else o(e);else o(e)})};return n&&(i.error=S[e]),"checkbox"===t?i.checked=y(e,O):i.value=y(e,O),r&&(i.onFocus=()=>m((t=>I(R({},t),{[e]:!0}))),i.onBlur=()=>{if(d(e,c)){const t=x(e,f,O);t.hasError?D(e,t.error):L(e)}}),i},onSubmit:(e,t)=>n=>{null==n||n.preventDefault();const r=U();r.hasErrors?null==t||t(r.errors,O,n):e(u(O),n)},onReset:$,isDirty:e=>{if(e){const t=y(e,v);if("boolean"===typeof t)return t;const n=y(e,O),r=y(e,C.current);return!i()(n,r)}return Object.keys(v).length>0?k(v):!i()(O,C.current)},isTouched:q,setTouched:m,setDirty:b,resetTouched:j,resetDirty:N,isValid:Y}}},80298:function(e,t,n){"use strict";n.d(t,{M:function(){return l}});var r=n(2784),o=n(92900);const i=r["useId".toString()]||(()=>{});function a(){const[e,t]=(0,r.useState)("");return(0,o.Y)((()=>{t(`mantine-${Math.random().toString(36).slice(2,11)}`)}),[]),e}function l(e){return"string"===typeof e?e:function(){const e=i();return e?`mantine-${e.replace(/:/g,"")}`:""}()||a()}},58465:function(e,t,n){"use strict";n.d(t,{Y:function(){return o}});var r=n(2784);function o(e,t){const[n,o]=(0,r.useState)(!1),i=(0,r.useRef)(),a=(0,r.useRef)();(0,r.useEffect)((()=>{a.current=e}),[e]);const l=()=>{o((e=>(e||i.current||(i.current=window.setInterval(a.current,t)),!0)))},s=()=>{o(!1),window.clearInterval(i.current),i.current=void 0};return{start:l,stop:s,toggle:()=>{n?s():l()},active:n}}},5248:function(e,t,n){"use strict";n.d(t,{Y:function(){return i}});var r=n(2784),o=n(80603);function i(...e){return(0,r.useCallback)(function(...e){return t=>{e.forEach((e=>(0,o.k)(e,t)))}}(...e),e)}},80603:function(e,t,n){"use strict";function r(e,t){"function"===typeof e?e(t):"object"===typeof e&&null!==e&&"current"in e&&(e.current=t)}n.d(t,{k:function(){return r}})},50855:function(e,t,n){"use strict";n.d(t,{R:function(){return o}});var r=n(2784);function o(e){const t=(0,r.createContext)(null);return[({children:e,value:n})=>r.createElement(t.Provider,{value:n},e),()=>{const n=(0,r.useContext)(t);if(null===n)throw new Error(e);return n}]}},86246:function(e,t,n){"use strict";function r(e){return Array.isArray(e)?e:[e]}n.d(t,{R:function(){return r}})},30387:function(e,t){"use strict";t.Z=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?i===t.replace(/\/.*$/,""):o===t}))}return!0}},8938:function(e){"use strict";e.exports=function(e,t){if("string"===typeof e)return a(e);if("number"===typeof e)return i(e,t);return null},e.exports.format=i,e.exports.parse=a;var t=/\B(?=(\d{3})+(?!\d))/g,n=/(?:\.0*|(\.[^0]+)0+)$/,r={b:1,kb:1024,mb:1<<20,gb:1<<30,tb:Math.pow(1024,4),pb:Math.pow(1024,5)},o=/^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i;function i(e,o){if(!Number.isFinite(e))return null;var i=Math.abs(e),a=o&&o.thousandsSeparator||"",l=o&&o.unitSeparator||"",s=o&&void 0!==o.decimalPlaces?o.decimalPlaces:2,c=Boolean(o&&o.fixedDecimals),u=o&&o.unit||"";u&&r[u.toLowerCase()]||(u=i>=r.pb?"PB":i>=r.tb?"TB":i>=r.gb?"GB":i>=r.mb?"MB":i>=r.kb?"KB":"B");var f=(e/r[u.toLowerCase()]).toFixed(s);return c||(f=f.replace(n,"$1")),a&&(f=f.split(".").map((function(e,n){return 0===n?e.replace(t,a):e})).join(".")),f+l+u}function a(e){if("number"===typeof e&&!isNaN(e))return e;if("string"!==typeof e)return null;var t,n=o.exec(e),i="b";return n?(t=parseFloat(n[1]),i=n[4].toLowerCase()):(t=parseInt(e,10),i="b"),isNaN(t)?null:Math.floor(r[i]*t)}},49385:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return"undefined"===typeof r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,c,u,f=arguments[0],p=1,d=arguments.length,h=!1;for("boolean"===typeof f&&(h=f,f=arguments[1]||{},p=2),(null==f||"object"!==typeof f&&"function"!==typeof f)&&(f={});p=t||n<0||g&&e-h>=u}function x(){var e=o();if(w(e))return k(e);p=setTimeout(x,function(e){var n=t-(e-d);return g?l(n,u-(e-h)):n}(e))}function k(e){return p=void 0,y&&s?v(e):(s=c=void 0,f)}function O(){var e=o(),n=w(e);if(s=arguments,c=this,d=e,n){if(void 0===p)return b(d);if(g)return clearTimeout(p),p=setTimeout(x,t),v(d)}return void 0===p&&(p=setTimeout(x,t)),f}return t=i(t)||0,r(n)&&(m=!!n.leading,u=(g="maxWait"in n)?a(i(n.maxWait)||0,t):u,y="trailing"in n?!!n.trailing:y),O.cancel=function(){void 0!==p&&clearTimeout(p),h=0,s=d=c=p=void 0},O.flush=function(){return void 0===p?f:k(o())},O}},61100:function(e,t,n){var r=n(37772);e.exports=function(){return r.Date.now()}},68015:function(e,t,n){var r=n(67320)("round");e.exports=r},12436:function(e,t,n){var r=n(54073),o=n(29259);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},52060:function(e){"use strict";const t=e=>"object"===typeof e&&null!==e,n=Symbol("skip"),r=e=>t(e)&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),o=(e,t,i,a=new WeakMap)=>{if(i={deep:!1,target:{},...i},a.has(e))return a.get(e);a.set(e,i.target);const{target:l}=i;delete i.target;const s=e=>e.map((e=>r(e)?o(e,t,i,a):e));if(Array.isArray(e))return s(e);for(const[c,u]of Object.entries(e)){const f=t(c,u,e);if(f===n)continue;let[p,d,{shouldRecurse:h=!0}={}]=f;"__proto__"!==p&&(i.deep&&h&&r(d)&&(d=Array.isArray(d)?s(d):o(d,t,i,a)),l[p]=d)}return l};e.exports=(e,n,r)=>{if(!t(e))throw new TypeError(`Expected an object, got \`${e}\` (${typeof e})`);return o(e,n,r)},e.exports.mapObjectSkip=n},22016:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),o=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(l){o={error:l}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};var i=function(e,t){void 0===e&&(e=!1);var n=o((0,r.useState)(e),2),i=n[0],a=n[1];return[i,(0,r.useMemo)((function(){var n=void 0===t?!e:t;return{toggle:function(){return a((function(t){return t===e?n:e}))},set:function(e){return a(e)},setLeft:function(){return a(e)},setRight:function(){return a(n)}}}),[])]},a=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(l){o={error:l}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function l(e){void 0===e&&(e=!1);var t=a(i(e),2),n=t[0],o=t[1],l=o.toggle,s=o.set;return[n,(0,r.useMemo)((function(){return{toggle:l,set:function(e){return s(!!e)},setTrue:function(){return s(!0)},setFalse:function(){return s(!1)}}}),[])]}},69031:function(e,t,n){"use strict";var r=n(2784),o=function(e,t){return!Object.is(e,t)};t.Z=function(e,t){void 0===t&&(t=o);var n=(0,r.useRef)(),i=(0,r.useRef)();return t(i.current,e)&&(n.current=i.current,i.current=e),n.current}},3138:function(e,t,n){"use strict";n.d(t,{Z:function(){return fe}});var r=n(2784),o=function(e){return function(t,n){var o=(0,r.useRef)(!1);e((function(){return function(){o.current=!1}}),[]),e((function(){if(o.current)return t();o.current=!0}),n)}},i=o(r.useEffect),a=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(l){o={error:l}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},l=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o0)&&!(r=i.next()).done;)a.push(r.value)}catch(l){o={error:l}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},x=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o-1&&(o=setTimeout((function(){g.delete(e)}),t)),g.set(e,m(m({},n),{timer:o}))}(e,i,t),function(e,t){v[e]&&v[e].forEach((function(e){return e(t)}))}(e,t.data)},k=function(e,t){return void 0===t&&(t=[]),c?c(t):function(e){return g.get(e)}(e)};return u((function(){if(n){var t=k(n);t&&Object.hasOwnProperty.call(t,"data")&&(e.state.data=t.data,e.state.params=t.params,(-1===l||(new Date).getTime()-t.time<=l)&&(e.state.loading=!1)),f.current=b(n,(function(t){e.setState({data:t})}))}}),[]),h((function(){var e;null===(e=f.current)||void 0===e||e.call(f)})),n?{onBefore:function(e){var t=k(n,e);return t&&Object.hasOwnProperty.call(t,"data")?-1===l||(new Date).getTime()-t.time<=l?{loading:!1,data:null===t||void 0===t?void 0:t.data,error:void 0,returnNow:!0}:{data:null===t||void 0===t?void 0:t.data,error:void 0}:{}},onRequest:function(e,t){var r=function(e){return y.get(e)}(n);return r&&r!==p.current||(r=e.apply(void 0,x([],w(t),!1)),p.current=r,function(e,t){y.set(e,t),t.then((function(t){return y.delete(e),t})).catch((function(){y.delete(e)}))}(n,r)),{servicePromise:r}},onSuccess:function(t,r){var o;n&&(null===(o=f.current)||void 0===o||o.call(f),d(n,{data:t,params:r,time:(new Date).getTime()}),f.current=b(n,(function(t){e.setState({data:t})})))},onMutate:function(t){var r;n&&(null===(r=f.current)||void 0===r||r.call(f),d(n,{data:t,params:e.state.params,time:(new Date).getTime()}),f.current=b(n,(function(t){e.setState({data:t})})))}}:{}},O=n(54073),E=n.n(O),S=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(l){o={error:l}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},P=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o0)&&!(r=i.next()).done;)a.push(r.value)}catch(l){o={error:l}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},D=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o-1&&L.splice(t,1)}},_=function(e,t){var n=t.refreshOnWindowFocus,o=t.focusTimespan,i=void 0===o?5e3:o,a=(0,r.useRef)(),l=function(){var e;null===(e=a.current)||void 0===e||e.call(a)};return(0,r.useEffect)((function(){if(n){var t=function(e,t){var n=!1;return function(){for(var r=[],o=0;o0)&&!(r=i.next()).done;)a.push(r.value)}catch(l){o={error:l}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},V=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o0)&&!(r=i.next()).done;)a.push(r.value)}catch(l){o={error:l}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},Z=function(){var e=X((0,r.useState)({}),2)[1];return(0,r.useCallback)((function(){return e({})}),[])},G=function(){return G=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0)&&!(r=i.next()).done;)a.push(r.value)}catch(l){o={error:l}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},te=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o0)&&!(r=i.next()).done;)a.push(r.value)}catch(l){o={error:l}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},le=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o0)&&!(r=i.next()).done;)a.push(r.value)}catch(l){o={error:l}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},ue=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o0)&&!(r=i.next()).done;)a.push(r.value)}catch(l){o={error:l}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};var a=function(e){var t=o(),n=i((0,r.useState)(e),2),a=n[0],l=n[1];return[a,(0,r.useCallback)((function(e){t.current||l(e)}),[])]}},16184:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return x}});const r=n(43219),o=n(16794)._(n(2784)),i=r._(n(35487)),a=n(66845),l=n(19190),s=n(26020),c=(n(69737),n(36213));function u(e){return"/"===e[0]?e.slice(1):e}const f={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1},p=new Set;new Map;const d="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";const h=new Map([["default",function(e){let{config:t,src:n,width:r,quality:o}=e;return n.endsWith(".svg")&&!t.dangerouslyAllowSVG?n:(0,c.normalizePathTrailingSlash)(t.path)+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+(o||75)}],["imgix",function(e){let{config:t,src:n,width:r,quality:o}=e;const i=new URL(""+t.path+u(n)),a=i.searchParams;return a.set("auto",a.getAll("auto").join(",")||"format"),a.set("fit",a.get("fit")||"max"),a.set("w",a.get("w")||r.toString()),o&&a.set("q",o.toString()),i.href}],["cloudinary",function(e){let{config:t,src:n,width:r,quality:o}=e;const i=["f_auto","c_limit","w_"+r,"q_"+(o||"auto")].join(",")+"/";return""+t.path+i+u(n)}],["akamai",function(e){let{config:t,src:n,width:r}=e;return""+t.path+u(n)+"?imwidth="+r}],["custom",function(e){let{src:t}=e;throw new Error('Image with src "'+t+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}]]);function m(e){return void 0!==e.default}function g(e){let{config:t,src:n,unoptimized:r,layout:o,width:i,quality:a,sizes:l,loader:s}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};const{widths:c,kind:u}=function(e,t,n,r){let{deviceSizes:o,allSizes:i}=e;if(r&&("fill"===n||"responsive"===n)){const e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);n)t.push(parseInt(n[2]));if(t.length){const e=.01*Math.min(...t);return{widths:i.filter((t=>t>=o[0]*e)),kind:"w"}}return{widths:i,kind:"w"}}return"number"!==typeof t||"fill"===n||"responsive"===n?{widths:o,kind:"w"}:{widths:[...new Set([t,2*t].map((e=>i.find((t=>t>=e))||i[i.length-1])))],kind:"x"}}(t,i,o,l),f=c.length-1;return{sizes:l||"w"!==u?l:"100vw",srcSet:c.map(((e,r)=>s({config:t,src:n,quality:a,width:e})+" "+("w"===u?e:r+1)+u)).join(", "),src:s({config:t,src:n,quality:a,width:c[f]})}}function y(e){return"number"===typeof e?e:"string"===typeof e?parseInt(e,10):void 0}function v(e){var t;const n=(null==(t=e.config)?void 0:t.loader)||"default",r=h.get(n);if(r)return r(e);throw new Error('Unknown "loader" found in "next.config.js". Expected: '+a.VALID_LOADERS.join(", ")+". Received: "+n)}function b(e,t,n,r,o,i){if(!e||e.src===d||e["data-loaded-src"]===t)return;e["data-loaded-src"]=t;("decode"in e?e.decode():Promise.resolve()).catch((()=>{})).then((()=>{if(e.parentNode&&(p.add(t),"blur"===r&&i(!0),null==o?void 0:o.current)){const{naturalWidth:t,naturalHeight:n}=e;o.current({naturalWidth:t,naturalHeight:n})}}))}const w=e=>{let{imgAttributes:t,heightInt:n,widthInt:r,qualityInt:i,layout:a,className:l,imgStyle:s,blurStyle:c,isLazy:u,placeholder:f,loading:p,srcString:d,config:h,unoptimized:m,loader:y,onLoadingCompleteRef:v,setBlurComplete:w,setIntersection:x,onLoad:k,onError:O,isVisible:E,noscriptSizes:S,...P}=e;return p=u?"lazy":p,o.default.createElement(o.default.Fragment,null,o.default.createElement("img",{...P,...t,decoding:"async","data-nimg":a,className:l,style:{...s,...c},ref:(0,o.useCallback)((e=>{x(e),(null==e?void 0:e.complete)&&b(e,d,0,f,v,w)}),[x,d,a,f,v,w]),onLoad:e=>{b(e.currentTarget,d,0,f,v,w),k&&k(e)},onError:e=>{"blur"===f&&w(!0),O&&O(e)}}),(u||"blur"===f)&&o.default.createElement("noscript",null,o.default.createElement("img",{...P,loading:p,decoding:"async","data-nimg":a,style:s,className:l,...g({config:h,src:d,unoptimized:m,layout:a,width:r,quality:i,sizes:S,loader:y})})))};function x(e){let{src:t,sizes:n,unoptimized:r=!1,priority:c=!1,loading:u,lazyRoot:h=null,lazyBoundary:b,className:x,quality:k,width:O,height:E,style:S,objectFit:P,objectPosition:C,onLoadingComplete:j,placeholder:N="empty",blurDataURL:R,...I}=e;const z=(0,o.useContext)(s.ImageConfigContext),A=(0,o.useMemo)((()=>{const e=f||z||a.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort(((e,t)=>e-t)),n=e.deviceSizes.sort(((e,t)=>e-t));return{...e,allSizes:t,deviceSizes:n}}),[z]);let T=I,D=n?"responsive":"intrinsic";"layout"in T&&(T.layout&&(D=T.layout),delete T.layout);let L=v;if("loader"in T){if(T.loader){const e=T.loader;L=t=>{const{config:n,...r}=t;return e(r)}}delete T.loader}let M="";if(function(e){return"object"===typeof e&&(m(e)||function(e){return void 0!==e.src}(e))}(t)){const e=m(t)?t.default:t;if(!e.src)throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(R=R||e.blurDataURL,M=e.src,(!D||"fill"!==D)&&(E=E||e.height,O=O||e.width,!e.height||!e.width))throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e))}t="string"===typeof t?t:M;let F=!c&&("lazy"===u||"undefined"===typeof u);(t.startsWith("data:")||t.startsWith("blob:"))&&(r=!0,F=!1),p.has(t)&&(F=!1),A.unoptimized&&(r=!0);const[_,B]=(0,o.useState)(!1),[W,H,U]=(0,l.useIntersection)({rootRef:h,rootMargin:b||"200px",disabled:!F}),V=!F||H,$={boxSizing:"border-box",display:"block",overflow:"hidden",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},q={boxSizing:"border-box",display:"block",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0};let Y,X=!1;const Z={position:"absolute",top:0,left:0,bottom:0,right:0,boxSizing:"border-box",padding:0,border:"none",margin:"auto",display:"block",width:0,height:0,minWidth:"100%",maxWidth:"100%",minHeight:"100%",maxHeight:"100%",objectFit:P,objectPosition:C};let G=y(O),K=y(E);const Q=y(k);const J=Object.assign({},S,Z),ee="blur"!==N||_?{}:{backgroundSize:P||"cover",backgroundPosition:C||"0% 0%",filter:"blur(20px)",backgroundImage:'url("'+R+'")'};if("fill"===D)$.display="block",$.position="absolute",$.top=0,$.left=0,$.bottom=0,$.right=0;else if("undefined"!==typeof G&&"undefined"!==typeof K){const e=K/G,t=isNaN(e)?"100%":100*e+"%";"responsive"===D?($.display="block",$.position="relative",X=!0,q.paddingTop=t):"intrinsic"===D?($.display="inline-block",$.position="relative",$.maxWidth="100%",X=!0,q.maxWidth="100%",Y="data:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20version=%271.1%27%20width=%27"+G+"%27%20height=%27"+K+"%27/%3e"):"fixed"===D&&($.display="inline-block",$.position="relative",$.width=G,$.height=K)}else 0;let te={src:d,srcSet:void 0,sizes:void 0};V&&(te=g({config:A,src:t,unoptimized:r,layout:D,width:G,quality:Q,sizes:n,loader:L}));let ne=t;const re={imageSrcSet:te.srcSet,imageSizes:te.sizes,crossOrigin:T.crossOrigin,referrerPolicy:T.referrerPolicy},oe=o.default.useLayoutEffect,ie=(0,o.useRef)(j),ae=(0,o.useRef)(t);(0,o.useEffect)((()=>{ie.current=j}),[j]),oe((()=>{ae.current!==t&&(U(),ae.current=t)}),[U,t]);const le={isLazy:F,imgAttributes:te,heightInt:K,widthInt:G,qualityInt:Q,layout:D,className:x,imgStyle:J,blurStyle:ee,loading:u,config:A,unoptimized:r,placeholder:N,loader:L,srcString:ne,onLoadingCompleteRef:ie,setBlurComplete:B,setIntersection:W,isVisible:V,noscriptSizes:n,...T};return o.default.createElement(o.default.Fragment,null,o.default.createElement("span",{style:$},X?o.default.createElement("span",{style:q},Y?o.default.createElement("img",{style:{display:"block",maxWidth:"100%",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},alt:"","aria-hidden":!0,src:Y}):null):null,o.default.createElement(w,le)),c?o.default.createElement(i.default,null,o.default.createElement("link",{key:"__nimg-"+te.src+te.srcSet+te.sizes,rel:"preload",as:"image",href:te.srcSet?void 0:te.src,...re})):null)}("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},19190:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return c}});const r=n(2784),o=n(82120),i="function"===typeof IntersectionObserver,a=new Map,l=[];function s(e,t,n){const{id:r,observer:o,elements:i}=function(e){const t={root:e.root||null,margin:e.rootMargin||""},n=l.find((e=>e.root===t.root&&e.margin===t.margin));let r;if(n&&(r=a.get(n),r))return r;const o=new Map,i=new IntersectionObserver((e=>{e.forEach((e=>{const t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)}))}),e);return r={id:t,observer:i,elements:o},l.push(t),a.set(t,r),r}(n);return i.set(e,t),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),a.delete(r);const e=l.findIndex((e=>e.root===r.root&&e.margin===r.margin));e>-1&&l.splice(e,1)}}}function c(e){let{rootRef:t,rootMargin:n,disabled:a}=e;const l=a||!i,[c,u]=(0,r.useState)(!1),f=(0,r.useRef)(null),p=(0,r.useCallback)((e=>{f.current=e}),[]);(0,r.useEffect)((()=>{if(i){if(l||c)return;const e=f.current;if(e&&e.tagName){return s(e,(e=>e&&u(e)),{root:null==t?void 0:t.current,rootMargin:n})}}else if(!c){const e=(0,o.requestIdleCallback)((()=>u(!0)));return()=>(0,o.cancelIdleCallback)(e)}}),[l,n,t,c,f.current]);const d=(0,r.useCallback)((()=>{u(!1)}),[]);return[p,c,d]}("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},38421:function(e,t,n){e.exports=n(16184)},68262:function(e,t,n){"use strict";var r=n(23586);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function 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:i,resetWarningCache:o};return n.PropTypes=n,n}},13980:function(e,t,n){e.exports=n(68262)()},23586:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},97897:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var r=n(33028),o=n(56666),i=n(9249),a=n(87371),l=n(45754),s=n(95058);function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}var u=n(11987);function f(e){var t=c();return function(){var n,r=(0,s.Z)(e);if(t){var o=(0,s.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.Z)(this,n)}}var p=n(2784),d=n(28316);function h(e){return function(e){return e instanceof HTMLElement||e instanceof SVGElement}(e)?e:e instanceof p.Component?d.findDOMNode(e):null}var m=n(12524),g=n.n(m),y={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=y.F1&&t<=y.F12)return!1;switch(t){case y.ALT:case y.CAPS_LOCK:case y.CONTEXT_MENU:case y.CTRL:case y.DOWN:case y.END:case y.ESC:case y.HOME:case y.INSERT:case y.LEFT:case y.MAC_FF_META:case y.META:case y.NUMLOCK:case y.NUM_CENTER:case y.PAGE_DOWN:case y.PAGE_UP:case y.PAUSE:case y.PRINT_SCREEN:case y.RIGHT:case y.SHIFT:case y.UP:case y.WIN_KEY:case y.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=y.ZERO&&e<=y.NINE)return!0;if(e>=y.NUM_ZERO&&e<=y.NUM_MULTIPLY)return!0;if(e>=y.A&&e<=y.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case y.SPACE:case y.QUESTION_MARK:case y.NUM_PLUS:case y.NUM_MINUS:case y.NUM_PERIOD:case y.NUM_DIVISION:case y.SEMICOLON:case y.DASH:case y.EQUALS:case y.COMMA:case y.PERIOD:case y.SLASH:case y.APOSTROPHE:case y.SINGLE_QUOTE:case y.OPEN_SQUARE_BRACKET:case y.BACKSLASH:case y.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},v=y;var b=function(e){(0,l.Z)(n,e);var t=f(n);function n(){var e;(0,i.Z)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a=a&&rs?"true":"false","aria-posinset":s+1,"aria-setsize":c,tabIndex:o?-1:0},p.createElement("div",{className:"".concat(i,"-first")},f),p.createElement("div",{className:"".concat(i,"-second")},f)));return l&&(d=l(d,this.props)),d}}]),n}(p.Component);function w(){}var x=function(e){(0,l.Z)(n,e);var t=f(n);function n(e){var r;(0,i.Z)(this,n),(r=t.call(this,e)).stars=void 0,r.rate=void 0,r.onHover=function(e,t){var n=r.props.onHoverChange,o=r.getStarValue(t,e.pageX);o!==r.state.cleanedValue&&r.setState({hoverValue:o,cleanedValue:null}),n(o)},r.onMouseLeave=function(){var e=r.props.onHoverChange;r.setState({hoverValue:void 0,cleanedValue:null}),e(void 0)},r.onClick=function(e,t){var n=r.props.allowClear,o=r.state.value,i=r.getStarValue(t,e.pageX),a=!1;n&&(a=i===o),r.onMouseLeave(),r.changeValue(a?0:i),r.setState({cleanedValue:a?i:null})},r.onFocus=function(){var e=r.props.onFocus;r.setState({focused:!0}),e&&e()},r.onBlur=function(){var e=r.props.onBlur;r.setState({focused:!1}),e&&e()},r.onKeyDown=function(e){var t=e.keyCode,n=r.props,o=n.count,i=n.allowHalf,a=n.onKeyDown,l="rtl"===n.direction,s=r.state.value;t===v.RIGHT&&s0&&!l||t===v.RIGHT&&s>0&&l?(s-=i?.5:1,r.changeValue(s),e.preventDefault()):t===v.LEFT&&ss/2||!o&&t-l1&&void 0!==arguments[1]?arguments[1]:1,r=o+=1;function l(t){if(0===t)a(r),e();else{var o=n((function(){l(t-1)}));i.set(r,o)}}return l(t),r};l.cancel=function(e){var t=i.get(e);return a(t),r(t)};var s=l;t.Z=s},75031:function(e,t,n){"use strict";n.d(t,{uI:function(){return we}});var r=n(2784),o=n(13980),i=n.n(o);function a(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(t){i(t)}}function l(e){try{s(r.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))}function l(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]0)&&!(r=i.next()).done;)a.push(r.value)}catch(l){o={error:l}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function c(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var p=[".DS_Store","Thumbs.db"];function d(e){return"object"===typeof e&&null!==e}function h(e){return v(e.target.files).map((function(e){return f(e)}))}function m(e){return a(this,void 0,void 0,(function(){return l(this,(function(t){switch(t.label){case 0:return[4,Promise.all(e.map((function(e){return e.getFile()})))];case 1:return[2,t.sent().map((function(e){return f(e)}))]}}))}))}function g(e,t){return a(this,void 0,void 0,(function(){var n;return l(this,(function(r){switch(r.label){case 0:return e.items?(n=v(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(b))]):[3,2];case 1:return[2,y(w(r.sent()))];case 2:return[2,y(v(e.files).map((function(e){return f(e)})))]}}))}))}function y(e){return e.filter((function(e){return-1===p.indexOf(e.name)}))}function v(e){if(null===e)return[];for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nn)return[!1,F(n)];if(e.sizen)return[!1,F(n)]}return[!0,null]}function U(e){return void 0!==e&&null!==e}function V(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,a=e.maxFiles,l=e.validator;return!(!i&&t.length>1||i&&a>=1&&t.length>a)&&t.every((function(e){var t=R(W(e,n),1)[0],i=R(H(e,r,o),1)[0],a=l?l(e):null;return t&&i&&!a}))}function $(e){return"function"===typeof e.isPropagationStopped?e.isPropagationStopped():"undefined"!==typeof e.cancelBubble&&e.cancelBubble}function q(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function Y(e){e.preventDefault()}function X(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}function Z(e){return-1!==e.indexOf("Edge/")}function G(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return X(e)||Z(e)}function K(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),o=1;oe.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ye=(0,r.forwardRef)((function(e,t){var n=e.children,o=we(ge(e,ie)),i=o.open,a=ge(o,ae);return(0,r.useImperativeHandle)(t,(function(){return{open:i}}),[i]),r.createElement(r.Fragment,null,n(he(he({},a),{},{open:i})))}));ye.displayName="Dropzone";var ve={disabled:!1,getFilesFromEvent:function(e){return a(this,void 0,void 0,(function(){return l(this,(function(t){return d(e)&&d(e.dataTransfer)?[2,g(e.dataTransfer,e.type)]:function(e){return d(e)&&d(e.target)}(e)?[2,h(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"===typeof e.getFile}))?[2,m(e)]:[2,[]]}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};ye.defaultProps=ve,ye.propTypes={children:i().func,accept:i().objectOf(i().arrayOf(i().string)),multiple:i().bool,preventDropOnDocument:i().bool,noClick:i().bool,noKeyboard:i().bool,noDrag:i().bool,noDragEventsBubbling:i().bool,minSize:i().number,maxSize:i().number,maxFiles:i().number,disabled:i().bool,getFilesFromEvent:i().func,onFileDialogCancel:i().func,onFileDialogOpen:i().func,useFsAccessApi:i().bool,autoFocus:i().bool,onDragEnter:i().func,onDragLeave:i().func,onDragOver:i().func,onDrop:i().func,onDropAccepted:i().func,onDropRejected:i().func,onError:i().func,validator:i().func};var be={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function we(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=he(he({},ve),e),n=t.accept,o=t.disabled,i=t.getFilesFromEvent,a=t.maxSize,l=t.minSize,s=t.multiple,c=t.maxFiles,u=t.onDragEnter,f=t.onDragLeave,p=t.onDragOver,d=t.onDrop,h=t.onDropAccepted,m=t.onDropRejected,g=t.onFileDialogCancel,y=t.onFileDialogOpen,v=t.useFsAccessApi,b=t.autoFocus,w=t.preventDropOnDocument,x=t.noClick,k=t.noKeyboard,O=t.noDrag,E=t.noDragEventsBubbling,S=t.onError,P=t.validator,C=(0,r.useMemo)((function(){return ee(n)}),[n]),j=(0,r.useMemo)((function(){return J(n)}),[n]),N=(0,r.useMemo)((function(){return"function"===typeof y?y:ke}),[y]),R=(0,r.useMemo)((function(){return"function"===typeof g?g:ke}),[g]),I=(0,r.useRef)(null),z=(0,r.useRef)(null),A=(0,r.useReducer)(xe,be),T=ue(A,2),D=T[0],L=T[1],M=D.isFocused,F=D.isFileDialogActive,_=(0,r.useRef)("undefined"!==typeof window&&window.isSecureContext&&v&&Q()),U=function(){!_.current&&F&&setTimeout((function(){z.current&&(z.current.files.length||(L({type:"closeDialog"}),R()))}),300)};(0,r.useEffect)((function(){return window.addEventListener("focus",U,!1),function(){window.removeEventListener("focus",U,!1)}}),[z,F,R,_]);var X=(0,r.useRef)([]),Z=function(e){I.current&&I.current.contains(e.target)||(e.preventDefault(),X.current=[])};(0,r.useEffect)((function(){return w&&(document.addEventListener("dragover",Y,!1),document.addEventListener("drop",Z,!1)),function(){w&&(document.removeEventListener("dragover",Y),document.removeEventListener("drop",Z))}}),[I,w]),(0,r.useEffect)((function(){return!o&&b&&I.current&&I.current.focus(),function(){}}),[I,b,o]);var re=(0,r.useCallback)((function(e){S?S(e):console.error(e)}),[S]),oe=(0,r.useCallback)((function(e){e.preventDefault(),e.persist(),je(e),X.current=[].concat(ce(X.current),[e.target]),q(e)&&Promise.resolve(i(e)).then((function(t){if(!$(e)||E){var n=t.length,r=n>0&&V({files:t,accept:C,minSize:l,maxSize:a,multiple:s,maxFiles:c,validator:P});L({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}})).catch((function(e){return re(e)}))}),[i,u,re,E,C,l,a,s,c,P]),ie=(0,r.useCallback)((function(e){e.preventDefault(),e.persist(),je(e);var t=q(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(n){}return t&&p&&p(e),!1}),[p,E]),ae=(0,r.useCallback)((function(e){e.preventDefault(),e.persist(),je(e);var t=X.current.filter((function(e){return I.current&&I.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),X.current=t,t.length>0||(L({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),q(e)&&f&&f(e))}),[I,f,E]),fe=(0,r.useCallback)((function(e,t){var n=[],r=[];e.forEach((function(e){var t=ue(W(e,C),2),o=t[0],i=t[1],s=ue(H(e,l,a),2),c=s[0],u=s[1],f=P?P(e):null;if(o&&c&&!f)n.push(e);else{var p=[i,u];f&&(p=p.concat(f)),r.push({file:e,errors:p.filter((function(e){return e}))})}})),(!s&&n.length>1||s&&c>=1&&n.length>c)&&(n.forEach((function(e){r.push({file:e,errors:[B]})})),n.splice(0)),L({acceptedFiles:n,fileRejections:r,type:"setFiles"}),d&&d(n,r,t),r.length>0&&m&&m(r,t),n.length>0&&h&&h(n,t)}),[L,s,C,l,a,c,d,h,m,P]),pe=(0,r.useCallback)((function(e){e.preventDefault(),e.persist(),je(e),X.current=[],q(e)&&Promise.resolve(i(e)).then((function(t){$(e)&&!E||fe(t,e)})).catch((function(e){return re(e)})),L({type:"reset"})}),[i,fe,re,E]),de=(0,r.useCallback)((function(){if(_.current){L({type:"openDialog"}),N();var e={multiple:s,types:j};window.showOpenFilePicker(e).then((function(e){return i(e)})).then((function(e){fe(e,null),L({type:"closeDialog"})})).catch((function(e){te(e)?(R(e),L({type:"closeDialog"})):ne(e)?(_.current=!1,z.current?(z.current.value=null,z.current.click()):re(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):re(e)}))}else z.current&&(L({type:"openDialog"}),N(),z.current.value=null,z.current.click())}),[L,N,R,v,fe,re,j,s]),ye=(0,r.useCallback)((function(e){I.current&&I.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),de()))}),[I,de]),we=(0,r.useCallback)((function(){L({type:"focus"})}),[]),Oe=(0,r.useCallback)((function(){L({type:"blur"})}),[]),Ee=(0,r.useCallback)((function(){x||(G()?setTimeout(de,0):de())}),[x,de]),Se=function(e){return o?null:e},Pe=function(e){return k?null:Se(e)},Ce=function(e){return O?null:Se(e)},je=function(e){E&&e.stopPropagation()},Ne=(0,r.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.role,i=e.onKeyDown,a=e.onFocus,l=e.onBlur,s=e.onClick,c=e.onDragEnter,u=e.onDragOver,f=e.onDragLeave,p=e.onDrop,d=ge(e,le);return he(he(me({onKeyDown:Pe(K(i,ye)),onFocus:Pe(K(a,we)),onBlur:Pe(K(l,Oe)),onClick:Se(K(s,Ee)),onDragEnter:Ce(K(c,oe)),onDragOver:Ce(K(u,ie)),onDragLeave:Ce(K(f,ae)),onDrop:Ce(K(p,pe)),role:"string"===typeof r&&""!==r?r:"presentation"},n,I),o||k?{}:{tabIndex:0}),d)}}),[I,ye,we,Oe,Ee,oe,ie,ae,pe,k,O,o]),Re=(0,r.useCallback)((function(e){e.stopPropagation()}),[]),Ie=(0,r.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,o=e.onClick,i=ge(e,se),a=me({accept:C,multiple:s,type:"file",style:{display:"none"},onChange:Se(K(r,pe)),onClick:Se(K(o,Re)),tabIndex:-1},n,z);return he(he({},a),i)}}),[z,n,s,pe,o]);return he(he({},D),{},{isFocused:M&&!o,getRootProps:Ne,getInputProps:Ie,rootRef:I,inputRef:z,open:Se(de)})}function xe(e,t){switch(t.type){case"focus":return he(he({},e),{},{isFocused:!0});case"blur":return he(he({},e),{},{isFocused:!1});case"openDialog":return he(he({},be),{},{isFileDialogActive:!0});case"closeDialog":return he(he({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return he(he({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return he(he({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return he({},be);default:return e}}function ke(){}},40322:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var r=n(7896),o=n(31461),i=n(81665);function a(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var l=n(2784),s=n(28316),c=!1,u=l.createContext(null),f=function(e){return e.scrollTop},p="unmounted",d="exited",h="entering",m="entered",g="exiting",y=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=d,r.appearStatus=h):o=m:o=t.unmountOnExit||t.mountOnEnter?p:d,r.state={status:o},r.nextCallback=null,r}(0,i.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===p?{status:d}: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!==h&&n!==m&&(t=h):n!==h&&n!==m||(t=g)}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===h){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:s.findDOMNode(this);n&&f(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===d&&this.setState({status:p})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[s.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),u=r?l.appear:l.enter;!e&&!n||c?this.safeSetState({status:m},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:h},(function(){t.props.onEntering(i,a),t.onTransitionEnd(u,(function(){t.safeSetState({status:m},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:s.findDOMNode(this);t&&!c?(this.props.onExit(r),this.safeSetState({status:g},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:d},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:d},(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:s.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===p)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,(0,o.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return l.createElement(u.Provider,{value:null},"function"===typeof n?n(e,r):l.cloneElement(l.Children.only(n),r))},t}(l.Component);function v(){}y.contextType=u,y.propTypes={},y.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:v,onEntering:v,onEntered:v,onExit:v,onExiting:v,onExited:v},y.UNMOUNTED=p,y.EXITED=d,y.ENTERING=h,y.ENTERED=m,y.EXITING=g;var b=y,w=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=a(n.className,r):n.setAttribute("class",a(n.className&&n.className.baseVal||"",r)));var n,r}))},x=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o>>0,e=(r*=e)>>>0,e+=4294967296*(r-=e)}return 2.3283064365386963e-10*(e>>>0)}}();t.next=function(){var e=2091639*t.s0+2.3283064365386963e-10*t.c;return t.s0=t.s1,t.s1=t.s2,t.s2=e-(t.c=0|e)},t.c=1,t.s0=n(" "),t.s1=n(" "),t.s2=n(" "),t.s0-=n(e),t.s0<0&&(t.s0+=1),t.s1-=n(e),t.s1<0&&(t.s1+=1),t.s2-=n(e),t.s2<0&&(t.s2+=1),n=null}function l(e,t){return t.c=e.c,t.s0=e.s0,t.s1=e.s1,t.s2=e.s2,t}function s(e,t){var n=new a(e),r=t&&t.state,o=n.next;return o.int32=function(){return 4294967296*n.next()|0},o.double=function(){return o()+11102230246251565e-32*(2097152*o()|0)},o.quick=o,r&&("object"==typeof r&&l(r,n),o.state=function(){return l(n,{})}),o}o&&o.exports?o.exports=s:n.amdD&&n.amdO?void 0===(r=function(){return s}.call(t,n,t,o))||(o.exports=r):this.alea=s}(0,e=n.nmd(e),n.amdD)},33929:function(e,t,n){var r;!function(e,o,i){function a(e){var t=this,n="";t.next=function(){var e=t.b,n=t.c,r=t.d,o=t.a;return e=e<<25^e>>>7^n,n=n-r|0,r=r<<24^r>>>8^o,o=o-e|0,t.b=e=e<<20^e>>>12^n,t.c=n=n-r|0,t.d=r<<16^n>>>16^o,t.a=o-e|0},t.a=0,t.b=0,t.c=-1640531527,t.d=1367130551,e===Math.floor(e)?(t.a=e/4294967296|0,t.b=0|e):n+=e;for(var r=0;r>>0)/4294967296};return o.double=function(){do{var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},o.int32=n.next,o.quick=o,r&&("object"==typeof r&&l(r,n),o.state=function(){return l(n,{})}),o}o&&o.exports?o.exports=s:n.amdD&&n.amdO?void 0===(r=function(){return s}.call(t,n,t,o))||(o.exports=r):this.tychei=s}(0,e=n.nmd(e),n.amdD)},12824:function(e,t,n){var r;!function(e,o,i){function a(e){var t=this,n="";t.x=0,t.y=0,t.z=0,t.w=0,t.next=function(){var e=t.x^t.x<<11;return t.x=t.y,t.y=t.z,t.z=t.w,t.w^=t.w>>>19^e^e>>>8},e===(0|e)?t.x=e:n+=e;for(var r=0;r>>0)/4294967296};return o.double=function(){do{var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},o.int32=n.next,o.quick=o,r&&("object"==typeof r&&l(r,n),o.state=function(){return l(n,{})}),o}o&&o.exports?o.exports=s:n.amdD&&n.amdO?void 0===(r=function(){return s}.call(t,n,t,o))||(o.exports=r):this.xor128=s}(0,e=n.nmd(e),n.amdD)},45028:function(e,t,n){var r;!function(e,o,i){function a(e){var t=this;t.next=function(){var e,n,r=t.w,o=t.X,i=t.i;return t.w=r=r+1640531527|0,n=o[i+34&127],e=o[i=i+1&127],n^=n<<13,e^=e<<17,n^=n>>>15,e^=e>>>12,n=o[i]=n^e,t.i=i,n+(r^r>>>16)|0},function(e,t){var n,r,o,i,a,l=[],s=128;for(t===(0|t)?(r=t,t=null):(t+="\0",r=0,s=Math.max(s,t.length)),o=0,i=-32;i>>15,r^=r<<4,r^=r>>>13,i>=0&&(a=a+1640531527|0,o=0==(n=l[127&i]^=r+a)?o+1:0);for(o>=128&&(l[127&(t&&t.length||0)]=-1),o=127,i=512;i>0;--i)r=l[o+34&127],n=l[o=o+1&127],r^=r<<13,n^=n<<17,r^=r>>>15,n^=n>>>12,l[o]=r^n;e.w=a,e.X=l,e.i=o}(t,e)}function l(e,t){return t.i=e.i,t.w=e.w,t.X=e.X.slice(),t}function s(e,t){null==e&&(e=+new Date);var n=new a(e),r=t&&t.state,o=function(){return(n.next()>>>0)/4294967296};return o.double=function(){do{var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},o.int32=n.next,o.quick=o,r&&(r.X&&l(r,n),o.state=function(){return l(n,{})}),o}o&&o.exports?o.exports=s:n.amdD&&n.amdO?void 0===(r=function(){return s}.call(t,n,t,o))||(o.exports=r):this.xor4096=s}(0,e=n.nmd(e),n.amdD)},10330:function(e,t,n){var r;!function(e,o,i){function a(e){var t=this;t.next=function(){var e,n,r=t.x,o=t.i;return e=r[o],n=(e^=e>>>7)^e<<24,n^=(e=r[o+1&7])^e>>>10,n^=(e=r[o+3&7])^e>>>3,n^=(e=r[o+4&7])^e<<7,e=r[o+7&7],n^=(e^=e<<13)^e<<9,r[o]=n,t.i=o+1&7,n},function(e,t){var n,r=[];if(t===(0|t))r[0]=t;else for(t=""+t,n=0;n0;--n)e.next()}(t,e)}function l(e,t){return t.x=e.x.slice(),t.i=e.i,t}function s(e,t){null==e&&(e=+new Date);var n=new a(e),r=t&&t.state,o=function(){return(n.next()>>>0)/4294967296};return o.double=function(){do{var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},o.int32=n.next,o.quick=o,r&&(r.x&&l(r,n),o.state=function(){return l(n,{})}),o}o&&o.exports?o.exports=s:n.amdD&&n.amdO?void 0===(r=function(){return s}.call(t,n,t,o))||(o.exports=r):this.xorshift7=s}(0,e=n.nmd(e),n.amdD)},244:function(e,t,n){var r;!function(e,o,i){function a(e){var t=this,n="";t.next=function(){var e=t.x^t.x>>>2;return t.x=t.y,t.y=t.z,t.z=t.w,t.w=t.v,(t.d=t.d+362437|0)+(t.v=t.v^t.v<<4^e^e<<1)|0},t.x=0,t.y=0,t.z=0,t.w=0,t.v=0,e===(0|e)?t.x=e:n+=e;for(var r=0;r>>4),t.next()}function l(e,t){return t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t.v=e.v,t.d=e.d,t}function s(e,t){var n=new a(e),r=t&&t.state,o=function(){return(n.next()>>>0)/4294967296};return o.double=function(){do{var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},o.int32=n.next,o.quick=o,r&&("object"==typeof r&&l(r,n),o.state=function(){return l(n,{})}),o}o&&o.exports?o.exports=s:n.amdD&&n.amdO?void 0===(r=function(){return s}.call(t,n,t,o))||(o.exports=r):this.xorwow=s}(0,e=n.nmd(e),n.amdD)},53154:function(e,t,n){var r;!function(o,i,a){var l,s=256,c=a.pow(s,6),u=a.pow(2,52),f=2*u,p=255;function d(e,t,n){var r=[],p=y(g((t=1==t?{entropy:!0}:t||{}).entropy?[e,v(i)]:null==e?function(){try{var e;return l&&(e=l.randomBytes)?e=e(s):(e=new Uint8Array(s),(o.crypto||o.msCrypto).getRandomValues(e)),v(e)}catch(r){var t=o.navigator,n=t&&t.plugins;return[+new Date,o,n,o.screen,v(i)]}}():e,3),r),d=new h(r),b=function(){for(var e=d.g(6),t=c,n=0;e=f;)e/=2,t/=2,n>>>=1;return(e+n)/t};return b.int32=function(){return 0|d.g(4)},b.quick=function(){return d.g(4)/4294967296},b.double=b,y(v(d.S),i),(t.pass||n||function(e,t,n,r){return r&&(r.S&&m(r,d),e.state=function(){return m(d,{})}),n?(a.random=e,t):e})(b,p,"global"in t?t.global:this==a,t.state)}function h(e){var t,n=e.length,r=this,o=0,i=r.i=r.j=0,a=r.S=[];for(n||(e=[n++]);o=t||n<0||g&&e-a.current>=y},v=function(t){return l.current=null,m&&s.current?e(t):(s.current=c.current=null,u.current)},b=function e(){var o=Date.now();if(r(o))return v(o);if(p.current){var l=t-(o-i.current),s=g?Math.min(l,y-(o-a.current)):l;n(e,s)}},w=function(){var f=Date.now(),d=r(f);if(s.current=[].slice.call(arguments),c.current=o,i.current=f,d){if(!l.current&&p.current)return a.current=i.current,n(b,t),h?e(i.current):u.current;if(g)return n(b,t),e(i.current)}return l.current||n(b,t),u.current};return w.cancel=function(){l.current&&(d?cancelAnimationFrame(l.current):clearTimeout(l.current)),a.current=0,s.current=i.current=c.current=l.current=null},w.isPending=function(){return!!l.current},w.flush=function(){return l.current?v(Date.now()):u.current},w}),[h,g,t,y,m,d]);return v}function i(e,t,n){var r=void 0===n?{}:n,i=r.leading,a=r.trailing;return o(e,t,{maxWait:t,leading:void 0===i||i,trailing:void 0===a||a})}},84337:function(e,t,n){"use strict";var r=n(2784).useLayoutEffect;t.Z=r},12524:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),z=R({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function A(e,t){return t in e?e[t]:t}function T(e,t){return A(e,t.toLowerCase())}const D=R({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:T,properties:{xmlns:null,xmlnsXLink:null}}),L=R({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:b,ariaAutoComplete:null,ariaBusy:b,ariaChecked:b,ariaColCount:x,ariaColIndex:x,ariaColSpan:x,ariaControls:k,ariaCurrent:null,ariaDescribedBy:k,ariaDetails:null,ariaDisabled:b,ariaDropEffect:k,ariaErrorMessage:null,ariaExpanded:b,ariaFlowTo:k,ariaGrabbed:b,ariaHasPopup:null,ariaHidden:b,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:k,ariaLevel:x,ariaLive:null,ariaModal:b,ariaMultiLine:b,ariaMultiSelectable:b,ariaOrientation:null,ariaOwns:k,ariaPlaceholder:null,ariaPosInSet:x,ariaPressed:b,ariaReadOnly:b,ariaRelevant:null,ariaRequired:b,ariaRoleDescription:k,ariaRowCount:x,ariaRowIndex:x,ariaRowSpan:x,ariaSelected:b,ariaSetSize:x,ariaSort:null,ariaValueMax:x,ariaValueMin:x,ariaValueNow:x,ariaValueText:null,role:null}}),M=R({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:T,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:O,acceptCharset:k,accessKey:k,action:null,allow:null,allowFullScreen:v,allowPaymentRequest:v,allowUserMedia:v,alt:null,as:null,async:v,autoCapitalize:null,autoComplete:k,autoFocus:v,autoPlay:v,blocking:k,capture:null,charSet:null,checked:v,cite:null,className:k,cols:x,colSpan:null,content:null,contentEditable:b,controls:v,controlsList:k,coords:x|O,crossOrigin:null,data:null,dateTime:null,decoding:null,default:v,defer:v,dir:null,dirName:null,disabled:v,download:w,draggable:b,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:v,formTarget:null,headers:k,height:x,hidden:v,high:x,href:null,hrefLang:null,htmlFor:k,httpEquiv:k,id:null,imageSizes:null,imageSrcSet:null,inert:v,inputMode:null,integrity:null,is:null,isMap:v,itemId:null,itemProp:k,itemRef:k,itemScope:v,itemType:k,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:v,low:x,manifest:null,max:null,maxLength:x,media:null,method:null,min:null,minLength:x,multiple:v,muted:v,name:null,nonce:null,noModule:v,noValidate:v,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:v,optimum:x,pattern:null,ping:k,placeholder:null,playsInline:v,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:v,referrerPolicy:null,rel:k,required:v,reversed:v,rows:x,rowSpan:x,sandbox:k,scope:null,scoped:v,seamless:v,selected:v,shadowRootClonable:v,shadowRootDelegatesFocus:v,shadowRootMode:null,shape:null,size:x,sizes:null,slot:null,span:x,spellCheck:b,src:null,srcDoc:null,srcLang:null,srcSet:null,start:x,step:null,style:null,tabIndex:x,target:null,title:null,translate:null,type:null,typeMustMatch:v,useMap:null,value:b,width:x,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:k,axis:null,background:null,bgColor:null,border:x,borderColor:null,bottomMargin:x,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:v,declare:v,event:null,face:null,frame:null,frameBorder:null,hSpace:x,leftMargin:x,link:null,longDesc:null,lowSrc:null,marginHeight:x,marginWidth:x,noResize:v,noHref:v,noShade:v,noWrap:v,object:null,profile:null,prompt:null,rev:null,rightMargin:x,rules:null,scheme:null,scrolling:b,standby:null,summary:null,text:null,topMargin:x,valueType:null,version:null,vAlign:null,vLink:null,vSpace:x,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:v,disableRemotePlayback:v,prefix:null,property:null,results:x,security:null,unselectable:null}}),F=R({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:A,properties:{about:E,accentHeight:x,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:x,amplitude:x,arabicForm:null,ascent:x,attributeName:null,attributeType:null,azimuth:x,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:x,by:null,calcMode:null,capHeight:x,className:k,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:x,diffuseConstant:x,direction:null,display:null,dur:null,divisor:x,dominantBaseline:null,download:v,dx:null,dy:null,edgeMode:null,editable:null,elevation:x,enableBackground:null,end:null,event:null,exponent:x,externalResourcesRequired:null,fill:null,fillOpacity:x,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:O,g2:O,glyphName:O,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:x,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:x,horizOriginX:x,horizOriginY:x,id:null,ideographic:x,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:x,k:x,k1:x,k2:x,k3:x,k4:x,kernelMatrix:E,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:x,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:x,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:x,overlineThickness:x,paintOrder:null,panose1:null,path:null,pathLength:x,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:k,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:x,pointsAtY:x,pointsAtZ:x,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:E,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:E,rev:E,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:E,requiredFeatures:E,requiredFonts:E,requiredFormats:E,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:x,specularExponent:x,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:x,strikethroughThickness:x,string:null,stroke:null,strokeDashArray:E,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:x,strokeOpacity:x,strokeWidth:null,style:null,surfaceScale:x,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:E,tabIndex:x,tableValues:null,target:null,targetX:x,targetY:x,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:E,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:x,underlineThickness:x,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:x,values:null,vAlphabetic:x,vMathematical:x,vectorEffect:null,vHanging:x,vIdeographic:x,version:null,vertAdvY:x,vertOriginX:x,vertOriginY:x,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:x,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),_=h([z,I,D,L,M],"html"),B=h([z,I,D,L,F],"svg"),W=/^data[-\w.:]+$/i,H=/-[a-z]/g,U=/[A-Z]/g;function V(e){return"-"+e.toLowerCase()}function $(e){return e.charAt(1).toUpperCase()}const q={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var Y=n(63338),X=Y.default||Y;const Z=K("end"),G=K("start");function K(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"===typeof n.line&&n.line>0&&"number"===typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"===typeof n.offset&&n.offset>-1?n.offset:void 0}}}function Q(e){return e&&"object"===typeof e?"position"in e||"type"in e?ee(e.position):"start"in e||"end"in e?ee(e):"line"in e||"column"in e?J(e):"":""}function J(e){return te(e&&e.line)+":"+te(e&&e.column)}function ee(e){return J(e&&e.start)+"-"+J(e&&e.end)}function te(e){return e&&"number"===typeof e?e:1}class ne extends Error{constructor(e,t,n){super(),"string"===typeof t&&(n=t,t=void 0);let r="",o={},i=!1;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"===typeof e?r=e:!o.cause&&e&&(i=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"===typeof n){const e=n.indexOf(":");-1===e?o.ruleId=n:(o.source=n.slice(0,e),o.ruleId=n.slice(e+1))}if(!o.place&&o.ancestors&&o.ancestors){const e=o.ancestors[o.ancestors.length-1];e&&(o.place=e.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=a?a.line:void 0,this.name=Q(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=i&&o.cause&&"string"===typeof o.cause.stack?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}ne.prototype.file="",ne.prototype.name="",ne.prototype.reason="",ne.prototype.message="",ne.prototype.stack="",ne.prototype.column=void 0,ne.prototype.line=void 0,ne.prototype.ancestors=void 0,ne.prototype.cause=void 0,ne.prototype.fatal=void 0,ne.prototype.place=void 0,ne.prototype.ruleId=void 0,ne.prototype.source=void 0;const re={}.hasOwnProperty,oe=new Map,ie=/[A-Z]/g,ae=/-([a-z])/g,le=new Set(["table","tbody","thead","tfoot","tr"]),se=new Set(["td","th"]),ce="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ue(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!==typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,o,i){const a=Array.isArray(o.children),l=G(n);return t(r,o,i,a,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!==typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!==typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,o,i){const a=Array.isArray(o.children)?n:t;return i?a(r,o,i):a(r,o)}}(0,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?B:_,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},i=fe(o,e,void 0);return i&&"string"!==typeof i?i:o.create(e,o.Fragment,{children:i||void 0},void 0)}function fe(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(o=B,e.schema=o);e.ancestors.push(t);const i=ge(e,t.tagName,!1),a=function(e,t){const n={};let r,o;for(o in t.properties)if("children"!==o&&re.call(t.properties,o)){const i=me(e,o,t.properties[o]);if(i){const[o,a]=i;e.tableCellAlignToStyle&&"align"===o&&"string"===typeof a&&se.has(t.tagName)?r=a:n[o]=a}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let l=he(e,t);le.has(t.tagName)&&(l=l.filter((function(e){return"string"!==typeof e||!f(e)})));return pe(e,a,i,t),de(a,l),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}ye(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.name&&"html"===r.space&&(o=B,e.schema=o);e.ancestors.push(t);const i=null===t.name?e.Fragment:ge(e,t.name,!0),a=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];t.type;const o=t.expression;o.type;const i=o.properties[0];i.type,Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else ye(e,t.position);else{const o=r.name;let i;if(r.value&&"object"===typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];t.type,i=e.evaluater.evaluateExpression(t.expression)}else ye(e,t.position);else i=null===r.value||r.value;n[o]=i}return n}(e,t),l=he(e,t);return pe(e,a,i,t),de(a,l),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ye(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return de(r,he(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function pe(e,t,n,r){"string"!==typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function de(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function he(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:oe;for(;++r4&&"data"===n.slice(0,4)&&W.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(H,$);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!H.test(e)){let n=e.replace(U,V);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=C}return new o(r,t)}(e.schema,t);if(!(null===n||void 0===n||"number"===typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"===typeof n?n:function(e,t){const n={};try{X(t,r)}catch(o){if(!e.ignoreInvalidStyle){const t=o,n=new ne("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:t,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=ce+"#cannot-parse-style-attribute",n}}return n;function r(e,t){let r=e;"--"!==r.slice(0,2)&&("-ms-"===r.slice(0,4)&&(r="ms-"+r.slice(4)),r=r.replace(ae,be)),n[r]=t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)re.call(e,n)&&(t[ve(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?q[r.property]||r.property:r.attribute,n]}}function ge(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,o=-1;for(;++oo?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a0?(Se(e,e.length,0,t),e):t}class Ce{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return ethis.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&je(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),je(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),je(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e-1&&e.test(String.fromCharCode(t))}}function Ye(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){if(Ue(r))return e.enter(n),a(r);return t(r)};function a(r){return Ue(r)&&i++i))return;const n=t.events.length;let o,l,s=n;for(;s--;)if("exit"===t.events[s][0]&&"chunkFlow"===t.events[s][1].type){if(o){l=t.events[s][1].end;break}o=!0}for(y(a),e=n;er;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},Ge={tokenize:function(e,t,n){return Ye(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const Ke={tokenize:function(e,t,n){return function(t){return Ue(t)?Ye(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||We(e)?t(e):n(e)}},partial:!0};const Qe={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):We(t)?e.check(Je,i,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return Ne(e),e}},Je={tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Ye(e,o,"linePrefix")};function o(o){if(null===o||We(o))return n(o);const i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}},partial:!0};const et={tokenize:function(e){const t=this,n=e.attempt(Ke,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,Ye(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Qe,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const tt={resolveAll:it()},nt=ot("string"),rt=ot("text");function ot(e){return{tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,a);return i;function i(e){return s(e)?o(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),l;t.consume(e)}function l(e){return s(e)?(t.exit("data"),o(e)):(t.consume(e),l)}function s(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o-1){const e=a[0];"string"===typeof e?a[0]=e.slice(r):a.shift()}i>0&&a.push(e[o].slice(0,i))}return a}(a,e)}function h(){const{line:e,column:t,offset:n,_index:o,_bufferIndex:i}=r;return{line:e,column:t,offset:n,_index:o,_bufferIndex:i}}function m(){let e;for(;r._index=3&&(null===i||We(i))?(e.exit("thematicBreak"),t(i)):n(i)}function a(t){return t===r?(e.consume(t),o++,a):(e.exit("thematicBreakSequence"),Ue(t)?Ye(e,i,"whitespace")(t):i(t))}}};const ut={name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,a=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:Fe(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(ct,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(t)}return n(t)};function l(t){return Fe(t)&&++a<10?(e.consume(t),l):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),s(t)):n(t)}function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(Ke,r.interrupt?n:c,e.attempt(ft,f,u))}function c(e){return r.containerState.initialBlankLine=!0,i++,f(e)}function u(t){return Ue(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),f):n(t)}function f(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ke,o,i);function o(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ye(e,t,"listItemIndent",r.containerState.size+1)(n)}function i(n){return r.containerState.furtherBlankLines||!Ue(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(pt,t,a)(n))}function a(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ye(e,e.attempt(ut,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)}},ft={tokenize:function(e,t,n){const r=this;return Ye(e,(function(e){const o=r.events[r.events.length-1];return!Ue(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},pt={tokenize:function(e,t,n){const r=this;return Ye(e,(function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0};const dt={name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return Ue(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(Ue(t))return Ye(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return o(t)};function o(r){return e.attempt(dt,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function ht(e,t,n,r,o,i,a,l,s){const c=s||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),f;if(null===t||32===t||41===t||Me(t))return n(t);return e.enter(r),e.enter(a),e.enter(l),e.enter("chunkString",{contentType:"string"}),h(t)};function f(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(l),f(t)):null===t||60===t||We(t)?n(t):(e.consume(t),92===t?d:p)}function d(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function h(o){return u||null!==o&&41!==o&&!He(o)?u999||null===f||91===f||93===f&&!l||94===f&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(f):93===f?(e.exit(i),e.enter(o),e.consume(f),e.exit(o),e.exit(r),t):We(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(f))}function u(t){return null===t||91===t||93===t||We(t)||s++>999?(e.exit("chunkString"),c(t)):(e.consume(t),l||(l=!Ue(t)),92===t?f:u)}function f(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}}function gt(e,t,n,r,o,i){let a;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(o),e.consume(t),e.exit(o),a=40===t?41:t,l;return n(t)};function l(n){return n===a?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),s(n))}function s(t){return t===a?(e.exit(i),l(a)):null===t?n(t):We(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Ye(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||We(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?u:c)}function u(t){return t===a||92===t?(e.consume(t),c):c(t)}}function yt(e,t){let n;return function r(o){if(We(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r;if(Ue(o))return Ye(e,r,n?"linePrefix":"lineSuffix")(o);return t(o)}}function vt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const bt={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return mt.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=vt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return He(t)?yt(e,l)(t):l(t)}function l(t){return ht(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(wt,c,c)(t)}function c(t){return Ue(t)?Ye(e,u,"whitespace")(t):u(t)}function u(i){return null===i||We(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i)}}},wt={tokenize:function(e,t,n){return function(t){return He(t)?yt(e,r)(t):n(t)};function r(t){return gt(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return Ue(t)?Ye(e,i,"whitespace")(t):i(t)}function i(e){return null===e||We(e)?t(e):n(e)}},partial:!0};const xt={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),Ye(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)}function i(t){return null===t?l(t):We(t)?e.attempt(kt,i,l)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||We(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),a)}function l(n){return e.exit("codeIndented"),t(n)}}},kt={tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):We(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):Ye(e,i,"linePrefix",5)(t)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):We(e)?o(e):n(e)}},partial:!0};const Ot={name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||He(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||We(n)?(e.exit("atxHeading"),t(n)):Ue(n)?Ye(e,i,"whitespace")(n):(e.enter("atxHeadingText"),l(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),i(t))}function l(t){return null===t||35===t||He(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),l)}},resolve:function(e,t){let n,r,o=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);o-2>i&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4);o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},Se(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e}};const Et={name:"setextUnderline",tokenize:function(e,t,n){const r=this;let o;return function(t){let a,l=r.events.length;for(;l--;)if("lineEnding"!==r.events[l][1].type&&"linePrefix"!==r.events[l][1].type&&"content"!==r.events[l][1].type){a="paragraph"===r.events[l][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||a))return e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t);return n(t)};function i(t){return t===o?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),Ue(t)?Ye(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||We(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const a={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",a,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[o][1].end)):e[n][1]=a;return e.push(["exit",a,t]),e}};const St=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Pt=["pre","script","style","textarea"],Ct={name:"htmlFlow",tokenize:function(e,t,n){const r=this;let o,i,a,l,s;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(l){return 33===l?(e.consume(l),u):47===l?(e.consume(l),i=!0,d):63===l?(e.consume(l),o=3,r.interrupt?t:T):Te(l)?(e.consume(l),a=String.fromCharCode(l),h):n(l)}function u(i){return 45===i?(e.consume(i),o=2,f):91===i?(e.consume(i),o=5,l=0,p):Te(i)?(e.consume(i),o=4,r.interrupt?t:T):n(i)}function f(o){return 45===o?(e.consume(o),r.interrupt?t:T):n(o)}function p(o){const i="CDATA[";return o===i.charCodeAt(l++)?(e.consume(o),l===i.length?r.interrupt?t:P:p):n(o)}function d(t){return Te(t)?(e.consume(t),a=String.fromCharCode(t),h):n(t)}function h(l){if(null===l||47===l||62===l||He(l)){const s=47===l,c=a.toLowerCase();return s||i||!Pt.includes(c)?St.includes(a.toLowerCase())?(o=6,s?(e.consume(l),m):r.interrupt?t(l):P(l)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(l):i?g(l):y(l)):(o=1,r.interrupt?t(l):P(l))}return 45===l||De(l)?(e.consume(l),a+=String.fromCharCode(l),h):n(l)}function m(o){return 62===o?(e.consume(o),r.interrupt?t:P):n(o)}function g(t){return Ue(t)?(e.consume(t),g):E(t)}function y(t){return 47===t?(e.consume(t),E):58===t||95===t||Te(t)?(e.consume(t),v):Ue(t)?(e.consume(t),y):E(t)}function v(t){return 45===t||46===t||58===t||95===t||De(t)?(e.consume(t),v):b(t)}function b(t){return 61===t?(e.consume(t),w):Ue(t)?(e.consume(t),b):y(t)}function w(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,x):Ue(t)?(e.consume(t),w):k(t)}function x(t){return t===s?(e.consume(t),s=null,O):null===t||We(t)?n(t):(e.consume(t),x)}function k(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||He(t)?b(t):(e.consume(t),k)}function O(e){return 47===e||62===e||Ue(e)?y(e):n(e)}function E(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||We(t)?P(t):Ue(t)?(e.consume(t),S):n(t)}function P(t){return 45===t&&2===o?(e.consume(t),R):60===t&&1===o?(e.consume(t),I):62===t&&4===o?(e.consume(t),D):63===t&&3===o?(e.consume(t),T):93===t&&5===o?(e.consume(t),A):!We(t)||6!==o&&7!==o?null===t||We(t)?(e.exit("htmlFlowData"),C(t)):(e.consume(t),P):(e.exit("htmlFlowData"),e.check(jt,L,C)(t))}function C(t){return e.check(Nt,j,L)(t)}function j(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),N}function N(t){return null===t||We(t)?C(t):(e.enter("htmlFlowData"),P(t))}function R(t){return 45===t?(e.consume(t),T):P(t)}function I(t){return 47===t?(e.consume(t),a="",z):P(t)}function z(t){if(62===t){const n=a.toLowerCase();return Pt.includes(n)?(e.consume(t),D):P(t)}return Te(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),z):P(t)}function A(t){return 93===t?(e.consume(t),T):P(t)}function T(t){return 62===t?(e.consume(t),D):45===t&&2===o?(e.consume(t),T):P(t)}function D(t){return null===t||We(t)?(e.exit("htmlFlowData"),L(t)):(e.consume(t),D)}function L(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},jt={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Ke,t,n)}},partial:!0},Nt={tokenize:function(e,t,n){const r=this;return function(t){if(We(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o;return n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0};const Rt={tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},It={name:"codeFenced",tokenize:function(e,t,n){const r=this,o={tokenize:function(e,t,n){let o=0;return a;function a(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s}function s(t){return e.enter("codeFencedFence"),Ue(t)?Ye(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===i?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===i?(o++,e.consume(t),u):o>=l?(e.exit("codeFencedFenceSequence"),Ue(t)?Ye(e,f,"whitespace")(t):f(t)):n(t)}function f(r){return null===r||We(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0};let i,a=0,l=0;return function(t){return function(t){const n=r.events[r.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(t)}(t)};function s(t){return t===i?(l++,e.consume(t),s):l<3?n(t):(e.exit("codeFencedFenceSequence"),Ue(t)?Ye(e,c,"whitespace")(t):c(t))}function c(n){return null===n||We(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(Rt,d,v)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||We(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):Ue(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ye(e,f,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),u)}function f(t){return null===t||We(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||We(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===i?n(t):(e.consume(t),p)}function d(t){return e.attempt(o,v,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return a>0&&Ue(t)?Ye(e,g,"linePrefix",a+1)(t):g(t)}function g(t){return null===t||We(t)?e.check(Rt,d,v)(t):(e.enter("codeFlowValue"),y(t))}function y(t){return null===t||We(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),y)}function v(n){return e.exit("codeFenced"),t(n)}},concrete:!0};const zt=document.createElement("i");function At(e){const t="&"+e+";";zt.innerHTML=t;const n=zt.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}const Tt={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),l};function l(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),o=31,i=De,c(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=_e,c):(e.enter("characterReferenceValue"),o=7,i=Fe,c(t))}function c(l){if(59===l&&a){const o=e.exit("characterReferenceValue");return i!==De||At(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(l),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(l)}return i(l)&&a++1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const f=Object.assign({},e[n][1].end),p=Object.assign({},e[u][1].start);Vt(f,-l),Vt(p,l),i={type:l>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[n][1].end)},a={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[u][1].start),end:p},o={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[u][1].start)},r={type:l>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},a.end)},e[n][1].end=Object.assign({},i.start),e[u][1].start=Object.assign({},a.end),s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=Pe(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=Pe(s,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),s=Pe(s,lt(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),s=Pe(s,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,s=Pe(s,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,Se(e,n-1,u-n+3,s),u=n+s.length-c-2;break}u=-1;for(;++u13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535===(65535&n)||65534===(65535&n)||n>1114111?"\ufffd":String.fromCodePoint(n)}const cn=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function un(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return sn(n.slice(t?2:1),t?16:10)}return At(n)||e}const fn={}.hasOwnProperty;function pn(e,t,n){return"string"!==typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(ne),autolinkProtocol:S,autolinkEmail:S,atxHeading:i(K),blockQuote:i(q),characterEscape:S,characterReference:S,codeFenced:i(Y),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:i(Y,a),codeText:i(X,a),codeTextData:S,data:S,codeFlowValue:S,definition:i(Z),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:i(G),hardBreakEscape:i(J),hardBreakTrailing:i(J),htmlFlow:i(ee,a),htmlFlowData:S,htmlText:i(ee,a),htmlTextData:S,image:i(te),label:a,link:i(ne),listItem:i(oe),listItemValue:p,listOrdered:i(re,f),listUnordered:i(re),paragraph:i(ie),reference:_,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:i(K),strong:i(ae),thematicBreak:i(se)},exit:{atxHeading:s(),atxHeadingSequence:x,autolink:s(),autolinkEmail:$,autolinkProtocol:V,blockQuote:s(),characterEscapeValue:P,characterReferenceMarkerHexadecimal:W,characterReferenceMarkerNumeric:W,characterReferenceValue:H,characterReference:U,codeFenced:s(g),codeFencedFence:m,codeFencedFenceInfo:d,codeFencedFenceMeta:h,codeFlowValue:P,codeIndented:s(y),codeText:s(I),codeTextData:P,data:P,definition:s(),definitionDestinationString:w,definitionLabelString:v,definitionTitleString:b,emphasis:s(),hardBreakEscape:s(j),hardBreakTrailing:s(j),htmlFlow:s(N),htmlFlowData:P,htmlText:s(R),htmlTextData:P,image:s(A),label:D,labelText:T,lineEnding:C,link:s(z),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:B,resourceDestinationString:L,resourceTitleString:M,resource:F,setextHeading:s(E),setextHeadingLineSequence:O,setextHeadingText:k,strong:s(),thematicBreak:s()}};hn(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const i={stack:[r],tokenStack:[],config:t,enter:l,exit:c,buffer:a,resume:u,data:n},s=[];let f=-1;for(;++f0){const e=i.tokenStack[i.tokenStack.length-1];(e[1]||gn).call(i,void 0,e[0])}for(r.position={start:dn(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:dn(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},f=-1;++f((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=o=>{if(e.has(o))return e.get(o);const[i,a]=t[o];switch(i){case 0:case-1:return n(a,o);case 1:{const e=n([],o);for(const t of a)e.push(r(t));return e}case 2:{const e=n({},o);for(const[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),o);case 4:{const{source:e,flags:t}=a;return n(new RegExp(e,t),o)}case 5:{const e=n(new Map,o);for(const[t,n]of a)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,o);for(const t of a)e.add(r(t));return e}case 7:{const{name:e,message:t}=a;return n(new vn[e](t),o)}case 8:return n(BigInt(a),o);case"BigInt":return n(Object(BigInt(a)),o)}return n(new vn[i](a),o)};return r})(new Map,e)(0),wn="",{toString:xn}={},{keys:kn}=Object,On=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=xn.call(e).slice(8,-1);switch(n){case"Array":return[1,wn];case"Object":return[2,wn];case"Date":return[3,wn];case"RegExp":return[4,wn];case"Map":return[5,wn];case"Set":return[6,wn]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},En=([e,t])=>0===e&&("function"===t||"symbol"===t),Sn=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const o=(e,t)=>{const o=r.push(e)-1;return n.set(t,o),o},i=r=>{if(n.has(r))return n.get(r);let[a,l]=On(r);switch(a){case 0:{let t=r;switch(l){case"bigint":a=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);t=null;break;case"undefined":return o([-1],r)}return o([a,t],r)}case 1:{if(l)return o([l,[...r]],r);const e=[],t=o([a,e],r);for(const n of r)e.push(i(n));return t}case 2:{if(l)switch(l){case"BigInt":return o([l,r.toString()],r);case"Boolean":case"Number":case"String":return o([l,r.valueOf()],r)}if(t&&"toJSON"in r)return i(r.toJSON());const n=[],s=o([a,n],r);for(const t of kn(r))!e&&En(On(r[t]))||n.push([i(t),i(r[t])]);return s}case 3:return o([a,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return o([a,{source:e,flags:t}],r)}case 5:{const t=[],n=o([a,t],r);for(const[o,a]of r)(e||!En(On(o))&&!En(On(a)))&&t.push([i(o),i(a)]);return n}case 6:{const t=[],n=o([a,t],r);for(const o of r)!e&&En(On(o))||t.push(i(o));return n}}const{message:s}=r;return o([a,{name:l,message:s}],r)};return i})(!(t||n),!!t,new Map,r)(e),r};var Pn="function"===typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?bn(Sn(e,t)):structuredClone(e):(e,t)=>bn(Sn(e,t));function Cn(e){const t=[];let n=-1,r=0,o=0;for(;++n55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(a=String.fromCharCode(i,t),o=1):a="\ufffd"}else a=String.fromCharCode(i);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+o+1,a=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function jn(e,t){const n=[{type:"text",value:"\u21a9"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Nn(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const Rn=function(e){if(null===e||void 0===e)return zn;if("function"===typeof e)return In(e);if("object"===typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n":"")+")"})}return u;function u(){let c,u,f,p=Tn;if((!t||i(o,l,s[s.length-1]||void 0))&&(p=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[true,e];return null===e||void 0===e?Tn:[e]}(n(o,s)),false===p[0]))return p;if("children"in o&&o.children){const t=o;if(t.children&&"skip"!==p[0])for(u=(r?t.children.length:-1)+a,f=s.concat(t);u>-1&&u1:t}function _n(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(Bn(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(Bn(t.slice(o),o>0,!1)),i.join("")}function Bn(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const Wn={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"===typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=Cn(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let a,l=e.footnoteCounts.get(r);void 0===l?(l=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=i+1,l+=1,e.footnoteCounts.set(r,l);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,s);const c={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Mn(e,t);const o={src:Cn(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const n={src:Cn(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Mn(e,t);const o={href:Cn(r.url||"")};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const n={href:Cn(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let l=-1;for(;++l0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=G(t.children[1]),a=Z(t.children[t.children.length-1]);i&&a&&(r.position={start:i,end:a}),o.push(r)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,a=i?i.length:t.children.length;let l=-1;const s=[];for(;++l0&&n.push({type:"text",value:"\n"}),n}function Zn(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function Gn(e,t){const n=function(e,t){const n=t||Vn,r=new Map,o=new Map,i=new Map,a={...Wn,...n.handlers},l={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r0&&f.push({type:"text",value:" "});let e="string"===typeof n?n:n(s,u);"string"===typeof e&&(e={type:"text",value:e}),f.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"===typeof r?r:r(s,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const d=i[i.length-1];if(d&&"element"===d.type&&"p"===d.tagName){const e=d.children[d.children.length-1];e&&"text"===e.type?e.value+=" ":d.children.push({type:"text",value:" "}),d.children.push(...f)}else i.push(...f);const h={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(i,!0)};e.patch(o,h),l.push(h)}if(0!==l.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...Pn(a),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:"\n"}]}}(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({type:"text",value:"\n"},o),i}function Kn(e,t){return e&&"run"in e?async function(n,r){const o=Gn(n,{file:r,...t});await e.run(o,r)}:function(n,r){return Gn(n,{file:r,...t||e})}}function Qn(e){if(e)throw e}var Jn=n(49385);function er(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function tr(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!==typeof r)throw new TypeError("Expected function as last argument, not "+r);!function o(i,...a){const l=e[++n];let s=-1;if(i)r(i);else{for(;++st.length;let l;r&&t.push(o);try{l=e.apply(this,t)}catch(i){const t=i;if(r&&n)throw t;return o(t)}r||(l&&l.then&&"function"===typeof l.then?l.then(a,o):l instanceof Error?o(l):a(l))}function o(e,...r){n||(n=!0,t(e,...r))}function a(e){o(null,e)}}(l,o)(...a):r(null,...a)}}(null,...t)},use:function(n){if("function"!==typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const nr={basename:function(e,t){if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');rr(e);let n,r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let a=-1,l=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1),l>-1&&(e.codePointAt(i)===t.codePointAt(l--)?l<0&&(o=i):(l=-1,o=a));r===o?o=a:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(rr(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){rr(e);let t,n=e.length,r=-1,o=0,i=-1,a=0;for(;n--;){const l=e.codePointAt(n);if(47!==l)r<0&&(t=!0,r=n+1),46===l?i<0?i=n:1!==a&&(a=1):i>-1&&(a=-1);else if(t){o=n+1;break}}if(i<0||r<0||0===a||1===a&&i===r-1&&i===o+1)return"";return e.slice(i,r)},join:function(...e){let t,n=-1;for(;++n2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),a=s,l=0;continue}}else if(o.length>0){o="",i=0,a=s,l=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(a+1,s):o=e.slice(a+1,s),i=s-a-1;a=s,l=0}else 46===n&&l>-1?l++:l=-1}return o}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function rr(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const or={cwd:function(){return"/"}};function ir(e){return Boolean(null!==e&&"object"===typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function ar(e){if("string"===typeof e)e=new URL(e);else if(!ir(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n0){let[r,...i]=t;const a=n[o][1];er(a)&&er(r)&&(r=Jn(!0,a,r)),n[o]=[e,r,...i]}}}}const mr=(new hr).freeze();function gr(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function yr(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function vr(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function br(e){if(!er(e)||"string"!==typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function wr(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function xr(e){return function(e){return Boolean(e&&"object"===typeof e&&"message"in e&&"messages"in e)}(e)?e:new sr(e)}const kr=[],Or={allowDangerousHtml:!0},Er=/^(https?|ircs?|mailto|xmpp)$/i,Sr=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Pr(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",o=e.className,a=e.components,l=e.disallowedElements,s=e.rehypePlugins||kr,c=e.remarkPlugins||kr,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Or}:Or,f=e.skipHtml,p=e.unwrapDisallowed,d=e.urlTransform||Cr,h=mr().use(yn).use(c).use(Kn,u).use(s),m=new sr;"string"===typeof r&&(m.value=r);for(const i of Sr)Object.hasOwn(e,i.from)&&(i.from,i.to&&i.to,i.id);const g=h.parse(m);let y=h.runSync(g,m);return o&&(y={type:"element",tagName:"div",properties:{className:o},children:"root"===y.type?y.children:[y]}),Ln(y,(function(e,r,o){if("raw"===e.type&&o&&"number"===typeof r)return f?o.children.splice(r,1):o.children[r]={type:"text",value:e.value},r;if("element"===e.type){let t;for(t in xe)if(Object.hasOwn(xe,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=xe[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=d(String(n||""),t,e))}}if("element"===e.type){let i=t?!t.includes(e.tagName):!!l&&l.includes(e.tagName);if(!i&&n&&"number"===typeof r&&(i=!n(e,r,o)),i&&o&&"number"===typeof r)return p&&e.children?o.children.splice(r,1,...e.children):o.children.splice(r,1),r}})),ue(y,{Fragment:i.Fragment,components:a,ignoreInvalidStyle:!0,jsx:i.jsx,jsxs:i.jsxs,passKeys:!0,passNode:!0})}function Cr(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return t<0||o>-1&&t>o||n>-1&&t>n||r>-1&&t>r||Er.test(e.slice(0,t))?e:""}const jr=function(e,t,n,r,o){const i=Nr(t);if(null!==n&&void 0!==n&&("number"!==typeof n||n<0||n===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite `index`");if(null!==r&&void 0!==r&&(!r.type||!r.children))throw new Error("Expected valid `parent`");if((null===n||void 0===n)!==(null===r||void 0===r))throw new Error("Expected both `index` and `parent`");return!!zr(e)&&i.call(o,e,n,r)},Nr=function(e){if(null===e||void 0===e)return Ir;if("string"===typeof e)return function(e){return Rr(t);function t(t){return t.tagName===e}}(e);if("object"===typeof e)return function(e){const t=[];let n=-1;for(;++n0&&(e.properties.rel=[...i]),a&&(e.properties.target=a),r){const n=_r(t.contentProperties,e)||{};e.children.push({type:"element",tagName:"span",properties:Pn(n),children:Pn(r)})}}}}))}}function _r(e,t){return"function"===typeof e?e(t):e}function Br(e,t,n){const r=Rn((n||{}).ignore||[]),o=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r0?{type:"text",value:i}:void 0),!1===i?r.lastIndex=n+1:(l!==n&&u.push({type:"text",value:e.value.slice(l,n)}),Array.isArray(i)?u.push(...i):i&&u.push(i),l=n+f[0].length,c=!0),!r.global)break;f=r.exec(e.value)}c?(l0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function ao(e,t){const n=String(e);if("string"!==typeof t)throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;-1!==o;)r++,o=n.indexOf(t,o+t.length);return r}Jr[43]=Qr,Jr[45]=Qr,Jr[46]=Qr,Jr[95]=Qr,Jr[72]=[Qr,Kr],Jr[104]=[Qr,Kr],Jr[87]=[Qr,Gr],Jr[119]=[Qr,Gr];const lo="phrasing",so=["autolink","link","image","label"];function co(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function uo(e){this.config.enter.autolinkProtocol.call(this,e)}function fo(e){this.config.exit.autolinkProtocol.call(this,e)}function po(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function ho(e){this.config.exit.autolinkEmail.call(this,e)}function mo(e){this.exit(e)}function go(e){Br(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,yo],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,vo]],{ignore:["link","linkReference"]})}function yo(e,t,n,r,o){let i="";if(!bo(o))return!1;if(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n))return!1;const a=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const o=ao(e,"(");let i=ao(e,")");for(;-1!==r&&o>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}(n+r);if(!a[0])return!1;const l={type:"link",title:null,url:i+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[l,{type:"text",value:a[1]}]:l}function vo(e,t,n,r){return!(!bo(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function bo(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||$e(n)||Ve(n))&&(!t||47!==n)}const wo=Nr((function(e){return"audio"===e.tagName||"canvas"===e.tagName||"embed"===e.tagName||"iframe"===e.tagName||"img"===e.tagName||"math"===e.tagName||"object"===e.tagName||"picture"===e.tagName||"svg"===e.tagName||"video"===e.tagName})),xo=["address","article","aside","blockquote","body","br","caption","center","col","colgroup","dd","dialog","dir","div","dl","dt","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","legend","li","li","listing","main","menu","nav","ol","optgroup","option","p","plaintext","pre","section","summary","table","tbody","td","td","tfoot","th","th","thead","tr","ul","wbr","xmp"],ko=["button","input","select","textarea"],Oo=["area","base","basefont","dialog","datalist","head","link","meta","noembed","noframes","param","rp","script","source","style","template","track","title"],Eo={},So=Rn(["doctype","comment"]);function Po(e){const t=function(e){return t;function t(t){return String(t).replace(/[\t\n\v\f\r ]+/g,e)}}((e||Eo).newlines?To:Do);return function(e){Co(e,{collapse:t,whitespace:"normal"})}}function Co(e,t){if("children"in e){const n={...t};return("root"===e.type||Io(e))&&(n.before=!0,n.after=!0),n.whitespace=function(e,t){if("tagName"in e&&e.properties)switch(e.tagName){case"listing":case"plaintext":case"script":case"style":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return e.properties.wrap?"pre-wrap":"pre";case"td":case"th":return e.properties.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}return t.whitespace}(e,t),function(e,t){let n=t.before;const r=t.after,o=e.children;let i=o.length,a=-1;for(;++avoid 0!==e[t])).map((t=>{return`${t}_${"root"===t?(n=e.root,n?(i.has(n)||(l+=1,i.set(n,l.toString())),i.get(n)):"0"):e[t]}`;var n})).toString()}function c(e,t,n={},r=a){if("undefined"===typeof window.IntersectionObserver&&void 0!==r){const o=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:"number"===typeof n.threshold?n.threshold:0,time:0,boundingClientRect:o,intersectionRect:o,rootBounds:o}),()=>{}}const{id:i,observer:l,elements:c}=function(e){let t=s(e),n=o.get(t);if(!n){const r=new Map;let i;const a=new IntersectionObserver((t=>{t.forEach((t=>{var n;const o=t.isIntersecting&&i.some((e=>t.intersectionRatio>=e));e.trackVisibility&&"undefined"===typeof t.isVisible&&(t.isVisible=o),null==(n=r.get(t.target))||n.forEach((e=>{e(o,t)}))}))}),e);i=a.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:a,elements:r},o.set(t,n)}return n}(n);let u=c.get(e)||[];return c.has(e)||c.set(e,u),u.push(t),l.observe(e),function(){u.splice(u.indexOf(t),1),0===u.length&&(c.delete(e),l.unobserve(e)),0===c.size&&(l.disconnect(),o.delete(i))}}r.Component;function u({threshold:e,delay:t,trackVisibility:n,rootMargin:o,root:i,triggerOnce:a,skip:l,initialInView:s,fallbackInView:u,onChange:f}={}){var p;const[d,h]=r.useState(null),m=r.useRef(),[g,y]=r.useState({inView:!!s,entry:void 0});m.current=f,r.useEffect((()=>{if(l||!d)return;let r=c(d,((e,t)=>{y({inView:e,entry:t}),m.current&&m.current(e,t),t.isIntersecting&&a&&r&&(r(),r=void 0)}),{root:i,rootMargin:o,threshold:e,trackVisibility:n,delay:t},u);return()=>{r&&r()}}),[Array.isArray(e)?e.toString():e,d,i,o,a,l,n,u,t]);const v=null==(p=g.entry)?void 0:p.target;r.useEffect((()=>{d||!v||a||l||y({inView:!!s,entry:void 0})}),[d,v,a,l,s]);const b=[h,g.inView,g.entry];return b.ref=b[0],b.inView=b[1],b.entry=b[2],b}},23800:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var r=n(2784);function o({width:e,height:t}){return e/t}function i(e,t=0){const n=10**t;return Math.round((e+Number.EPSILON)*n)/n}class a{constructor(e){this.comparator=e,this.heap=[],this.n=0}greater(e,t){return this.comparator(this.heap[e],this.heap[t])<0}swap(e,t){const n=this.heap[e];this.heap[e]=this.heap[t],this.heap[t]=n}swim(e){let t=e,n=Math.floor(t/2);for(;t>1&&this.greater(n,t);)this.swap(n,t),t=n,n=Math.floor(t/2)}sink(e){let t=e,n=2*t;for(;n<=this.n&&(ne.weight,(e,t)=>s(t)-s(e)));var s;for(l.push({id:t,weight:0});l.size()>0;){const{id:t,weight:n}=l.pop();if(!o.has(t)){const a=e(t);o.add(t),a.forEach(((e,o)=>{const a=n+e,s=r.get(o),c=i.get(o);(void 0===c||c>a&&(c/a>1.005||void 0!==s&&se+o(t)),0)}function c(e,t,n,r,o,i,a){const l=e.slice(t,n),c=s(l,r,i,a);return c>0?(c-o)**2*l.length:void 0}function u({photos:e,layoutOptions:t}){const{spacing:n,padding:r,containerWidth:a,targetRowHeight:u,rowConstraints:f}=t,p=function({photos:e,targetRowHeight:t,containerWidth:n}){return i(n/t/e.reduce(((e,t)=>Math.min(o(t),e)),Number.MAX_VALUE))+2}({photos:e,containerWidth:a,targetRowHeight:u}),d=function({photos:e,layoutOptions:t,targetRowHeight:n,limitNodeSearch:r,rowConstraints:o}){return i=>{var a,l;const{containerWidth:s,spacing:u,padding:f}=t,p=new Map;p.set(i,0);const d=null!=(a=null==o?void 0:o.minPhotos)?a:1,h=Math.min(r,null!=(l=null==o?void 0:o.maxPhotos)?l:1/0);for(let t=i+d;th);t+=1){const r=c(e,i,t,s,n,u,f);if(void 0===r)break;p.set(t,r)}return p}}({photos:e,layoutOptions:t,targetRowHeight:u,limitNodeSearch:p,rowConstraints:f}),h=l(d,0,e.length);if(void 0===h)return;const m=[];for(let i=1;i({photo:e,index:t}))).slice(h[i-1],h[i]),l=s(t.map((({photo:e})=>e)),a,n,r);m.push(t.map((({photo:e,index:n},r)=>({photo:e,layout:{height:l,width:l*o(e),index:n,photoIndex:r,photosCount:t.length}}))))}return m}function f(...e){return[...e].filter((e=>Boolean(e))).join(" ")}function p(e,{width:t,photosCount:n},{spacing:r,padding:o,containerWidth:a}){const l=r*(n-1)+2*o*n;return`calc((${e} - ${l}px) / ${i((a-l)/t,5)})`}function d(e,t){return"rows"!==t.layout?`calc(100% - ${2*t.padding}px)`:p("100%",e,t)}function h(e,t,n){var r,o;return p(null!=(o=null==(r=e.match(/calc\((.*)\)/))?void 0:r[1])?o:e,t,n)}function m(e,t,n){let r,o;const i=e.srcSet||e.images;return i&&i.length>0&&(r=i.concat(i.find((({width:t})=>t===e.width))?[]:[{src:e.src,width:e.width,height:e.height}]).sort(((e,t)=>e.width-t.width)).map((e=>`${e.src} ${e.width}w`)).join(", ")),n.sizes?o=(n.sizes.sizes||[]).map((({viewport:e,size:r})=>`${e} ${h(r,t,n)}`)).concat(h(n.sizes.size,t,n)).join(", "):r&&(o=`${Math.ceil(t.width/n.containerWidth*100)}vw`),{srcSet:r,sizes:o}}function g(e){var t,n;const{photo:o,layout:i,layoutOptions:a,imageProps:{style:l,className:s,...c}={},renderPhoto:u}=e,{onClick:p}=a,h={display:"block",boxSizing:"content-box",width:d(i,a),height:"auto",aspectRatio:`${o.width} / ${o.height}`,...a.padding?{padding:`${a.padding}px`}:null,...("columns"===a.layout||"masonry"===a.layout)&&i.photoIndex{p({event:e,photo:o,index:i.index})}:void 0,y={src:o.src,alt:null!=(t=o.alt)?t:"",title:o.title,onClick:g,style:h,className:f("react-photo-album--photo",s),loading:"lazy",decoding:"async",...m(o,i,a),...c},v=e=>{const{src:t,alt:n,srcSet:o,sizes:i,style:a,...l}=y;return r.createElement("img",{alt:n,...o?{srcSet:o,sizes:i}:null,src:t,style:(null==e?void 0:e.wrapped)?{display:"block",width:"100%",height:"100%"}:a,...l})},b=(({display:e,boxSizing:t,width:n,aspectRatio:r,padding:o,marginBottom:i,cursor:a})=>({display:e,boxSizing:t,width:n,aspectRatio:r,padding:o,marginBottom:i,cursor:a}))(h);return r.createElement(r.Fragment,null,null!=(n=null==u?void 0:u({photo:o,layout:i,layoutOptions:a,imageProps:y,renderDefaultPhoto:v,wrapperStyle:b}))?n:v())}function y({rowContainerProps:e,children:t}){return r.createElement("div",{...e},t)}function v(e){const{layoutOptions:t,rowIndex:n,rowsCount:o,renderRowContainer:i,rowContainerProps:{style:a,className:l,...s}={},children:c}=e,u={className:f("react-photo-album--row",l),style:{display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"flex-start",justifyContent:"space-between",...nr.createElement(v,{key:`row-${t}`,layoutOptions:n,rowIndex:t,rowsCount:s.length,renderRowContainer:i,rowContainerProps:l},e.map((({photo:e,layout:t})=>r.createElement(g,{key:e.key||e.src,photo:e,layout:t,layoutOptions:n,renderPhoto:o,imageProps:a}))))))):null}function w(e,t,n,r){return function(e,t,n){const r=[n];for(let o=n,i=t;i>0;i-=1)o=e.get(o)[i].node,r.push(o);return r.reverse()}(function(e,t,n,r){const o=new Map,i=new Set;i.add(n);for(let a=0;a{const l=a>0?o.get(n)[a].weight:0;e(n).forEach((({neighbor:e,weight:s})=>{let c=o.get(e);c||(c=[],o.set(e,c));const u=l+s,f=c[a+1];(!f||f.weight>u&&(f.weight/u>1.0001||ne+t),0);for(let u=0;u({photo:e,index:t}))).slice(e[u],e[u+1]),p=i.reduce(((e,t,n)=>e+(r[u]-r[n])*t),0),d=(n-(e.length-2)*a-2*(e.length-1)*l-p)*i[u]/c;s.push(f.map((({photo:e,index:t},n)=>({photo:e,layout:{width:d,height:d/o(e),index:t,photoIndex:n,photosCount:f.length}}))))}return s}function k({photos:e,layoutOptions:t,targetColumnWidth:n}){const{columns:r,spacing:i,padding:a,containerWidth:l}=t,s=[],c=[];if(e.length<=r){const t=e.length>0?e.reduce(((e,t)=>e+o(t)),0)/e.length:1;for(let n=0;nMath.min(n,e.length))),photos:e,columnsRatios:c,columnsGaps:s,containerWidth:l,spacing:i,padding:a})}}const u=(e.reduce(((e,t)=>e+n/o(t)),0)+i*(e.length-r)+2*a*e.length)/r,f=function({photos:e,spacing:t,padding:n,targetColumnWidth:r,targetColumnHeight:i}){return a=>{const l=[],s=1.5*i;let c=r/o(e[a])+2*n;for(let u=a+1;us||u===e.length));u+=1)c+=r/o(e[u])+t+2*n;return l}}({photos:e,targetColumnWidth:n,targetColumnHeight:u,spacing:i,padding:a}),p=w(f,r,0,e.length);for(let d=0;de+1/o(t)),0)}return{columnsGaps:s,columnsRatios:c,columnsModel:x({path:p,photos:e,columnsRatios:c,columnsGaps:s,containerWidth:l,spacing:i,padding:a})}}function O(e){const{photos:t,layoutOptions:n}=e,{columns:r,spacing:o,padding:i,containerWidth:a}=n,l=(a-o*(r-1)-2*i*r)/r,{columnsGaps:s,columnsRatios:c,columnsModel:u}=k({photos:t,layoutOptions:n,targetColumnWidth:l});return u.findIndex((e=>e.findIndex((({layout:{width:e,height:t}})=>e<0||t<0))>=0))>=0?r>1?O({photos:t,layoutOptions:{...n,columns:r-1}}):void 0:{columnsModel:u,columnsGaps:s,columnsRatios:c}}function E({photos:e,layoutOptions:t}){return O({photos:e,layoutOptions:t})}function S({columnContainerProps:e,children:t}){return r.createElement("div",{...e},t)}function P(e){const{layoutOptions:t,columnIndex:n,columnsCount:r,columnsGaps:o,columnsRatios:a}=e,{layout:l,spacing:s,padding:c}=t;if("masonry"===l||!o||!a)return`calc((100% - ${s*(r-1)}px) / ${r})`;const u=a.reduce(((e,t)=>e+t),0);return`calc((100% - ${i((r-1)*s+2*r*c+a.reduce(((e,t,r)=>e+(o[n]-o[r])*t),0),3)}px) * ${i(a[n]/u,5)} + ${2*c}px)`}function C(e){const{layoutOptions:t,renderColumnContainer:n,children:o,columnContainerProps:{style:i,className:a,...l}={},...s}=e,c={className:f("react-photo-album--column",a),style:{display:"flex",flexDirection:"column",flexWrap:"nowrap",alignItems:"flex-start",width:P(e),justifyContent:"columns"===t.layout?"space-between":"flex-start",...i},...l};return r.createElement(r.Fragment,null,(null!=n?n:S)({layoutOptions:t,columnContainerProps:c,children:o,...s}))}function j(e){const{photos:t,layoutOptions:n,renderPhoto:o,renderColumnContainer:i,componentsProps:{imageProps:a,columnContainerProps:l}}=e,s=E({photos:t,layoutOptions:n});if(!s)return null;const{columnsModel:c,columnsRatios:u,columnsGaps:f}=s;return r.createElement(r.Fragment,null,c.map(((e,t)=>r.createElement(C,{key:`column-${t}`,layoutOptions:n,columnIndex:t,columnsCount:c.length,columnsGaps:f,columnsRatios:u,renderColumnContainer:i,columnContainerProps:l},e.map((({photo:e,layout:t})=>r.createElement(g,{key:e.key||e.src,photo:e,layout:t,layoutOptions:n,renderPhoto:o,imageProps:a})))))))}function N(e){const{photos:t,layoutOptions:n}=e,{columns:r,spacing:i,padding:a,containerWidth:l}=n,s=(l-i*(r-1)-2*a*r)/r;if(s<=0)return r>1?N({...e,layoutOptions:{...n,columns:r-1}}):void 0;const c=[];for(let o=0;o{const r=c.reduce(((e,t,n)=>t[]))).map((e=>e.map((({photo:t,index:n},r)=>({photo:t,layout:{width:s,height:s/o(t),index:n,photoIndex:r,photosCount:e.length}})))))}function R(e){const{photos:t,layoutOptions:n,renderPhoto:o,renderColumnContainer:i,componentsProps:{imageProps:a,columnContainerProps:l}}=e,s=N({photos:t,layoutOptions:n});return s?r.createElement(r.Fragment,null,s.map(((e,t)=>r.createElement(C,{key:`masonry-column-${t}`,layoutOptions:n,columnsCount:s.length,columnIndex:t,renderColumnContainer:i,columnContainerProps:l},e.map((({photo:e,layout:t})=>r.createElement(g,{key:e.key||e.src,photo:e,layout:t,layoutOptions:n,renderPhoto:o,imageProps:a}))))))):null}function I({containerProps:e,children:t,containerRef:n}){return r.createElement("div",{ref:n,...e},t)}function z(e){const{layout:t,renderContainer:n,children:o,containerRef:i,containerProps:{style:a,className:l,...s}={}}=e,c={className:f("react-photo-album",`react-photo-album--${t}`,l),style:{display:"flex",flexWrap:"nowrap",justifyContent:"space-between",flexDirection:"rows"===t?"column":"row",...a},...s};return r.createElement(r.Fragment,null,(null!=n?n:I)({containerProps:c,containerRef:i,layout:t,children:o}))}function A(e,{newContainerWidth:t,newScrollbarWidth:n}){const{containerWidth:r,scrollbarWidth:o}=e;return void 0!==r&&void 0!==o&&void 0!==t&&void 0!==n&&t>r&&t-r<=20&&n0){const e=[...t.filter((e=>e>0))].sort(((e,t)=>t-e));e.push(Math.floor(e[e.length-1]/2));const r=n;n=e.find(((t,n)=>t<=r||n===e.length-1))}return n}const D=Object.freeze([1200,600,300,0]);function L(e,t){return"function"===typeof e?e(t):e}function M(e,t){return"undefined"!==typeof e?L(e,t):void 0}function F(e,t,n,r=0){const o=M(e,t);return Math.round(Math.max(void 0===o?function(e,t){const n=D.findIndex((e=>e<=t));return L(e[n>=0?n:0],t)}(n,t):o,r))}function _(e){const{photos:t,layout:n,renderContainer:o,defaultContainerWidth:i,breakpoints:a}=e,{containerRef:l,containerWidth:s}=function(e,t){const[{containerWidth:n},o]=r.useReducer(A,{containerWidth:t}),i=r.useRef(null),a=r.useRef();return{containerRef:r.useCallback((t=>{var n;null==(n=a.current)||n.disconnect(),a.current=void 0,i.current=t;const r=()=>o({newContainerWidth:T(i.current,e),newScrollbarWidth:window.innerWidth-document.documentElement.clientWidth});r(),t&&"undefined"!==typeof ResizeObserver&&(a.current=new ResizeObserver(r),a.current.observe(t))}),[e]),containerWidth:n}}(function(e){const t=r.useRef(e);return e&&t.current&&e.join()===t.current.join()||(t.current=e),t.current}(a),i);if(!n||!["rows","columns","masonry"].includes(n)||!Array.isArray(t))return null;const c=s?function({layout:e,onClick:t,containerWidth:n,targetRowHeight:r,rowConstraints:o,columns:i,spacing:a,padding:l,sizes:s}){return{layout:e,onClick:t,containerWidth:n,columns:F(i,n,[5,4,3,2],1),spacing:F(a,n,[20,15,10,5]),padding:F(l,n,[0,0,0,0,0]),targetRowHeight:F(r,n,[e=>e/5,e=>e/4,e=>e/3,e=>e/2]),rowConstraints:M(o,n),sizes:s}}({containerWidth:s,...e}):void 0,u=function(e,t,n){const{photos:r,componentsProps:o}=e,i=L(o,t)||{};if(n){const{layout:e,spacing:t,padding:o,rowConstraints:a}=n;if("rows"===e){const{singleRowMaxHeight:e}=a||{};if(e){const n=Math.floor(r.reduce(((t,{width:n,height:r})=>t+n/r*e-2*o),o*r.length*2+t*(r.length-1)));n>0&&(i.containerProps=i.containerProps||{},i.containerProps.style={maxWidth:n,...i.containerProps.style})}}}return i}(e,s,c);return r.createElement(z,{layout:n,containerRef:l,renderContainer:o,containerProps:u.containerProps},c&&function(e,t,n){const{photos:o,layout:i,renderPhoto:a,renderRowContainer:l,renderColumnContainer:s}=e,c={photos:o,renderPhoto:a,componentsProps:t};return"rows"===i?r.createElement(b,{layoutOptions:n,renderRowContainer:l,...c}):"columns"===i?r.createElement(j,{layoutOptions:n,renderColumnContainer:s,...c}):r.createElement(R,{layoutOptions:n,renderColumnContainer:s,...c})}(e,u,c))}}}]);