1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[526],{94315:(e,t,o)=>{o.r(t),o.d(t,{default:()=>r});var r=(0,o(528769).A)("outline","file-import","IconFileImport",[["path",{d:"M14 3v4a1 1 0 0 0 1 1h4",key:"svg-0"}],["path",{d:"M5 13v-8a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2h-5.5m-9.5 -2h7m-3 -3l3 3l-3 3",key:"svg-1"}]])},162198:(e,t,o)=>{o.r(t),o.d(t,{default:()=>r});var r=(0,o(528769).A)("outline","list","IconList",[["path",{d:"M9 6l11 0",key:"svg-0"}],["path",{d:"M9 12l11 0",key:"svg-1"}],["path",{d:"M9 18l11 0",key:"svg-2"}],["path",{d:"M5 6l0 .01",key:"svg-3"}],["path",{d:"M5 12l0 .01",key:"svg-4"}],["path",{d:"M5 18l0 .01",key:"svg-5"}]])},432326:(e,t,o)=>{o.r(t),o.d(t,{default:()=>r});var r=(0,o(528769).A)("outline","arrow-back","IconArrowBack",[["path",{d:"M9 11l-4 4l4 4m-4 -4h11a4 4 0 0 0 0 -8h-1",key:"svg-0"}]])},446544:(e,t,o)=>{o.r(t),o.d(t,{default:()=>r});var r=(0,o(528769).A)("outline","quote","IconQuote",[["path",{d:"M10 11h-4a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1h3a1 1 0 0 1 1 1v6c0 2.667 -1.333 4.333 -4 5",key:"svg-0"}],["path",{d:"M19 11h-4a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1h3a1 1 0 0 1 1 1v6c0 2.667 -1.333 4.333 -4 5",key:"svg-1"}]])},521681:(e,t,o)=>{o.r(t),o.d(t,{default:()=>r});var r=(0,o(528769).A)("outline","hand-click","IconHandClick",[["path",{d:"M8 13v-8.5a1.5 1.5 0 0 1 3 0v7.5",key:"svg-0"}],["path",{d:"M11 11.5v-2a1.5 1.5 0 0 1 3 0v2.5",key:"svg-1"}],["path",{d:"M14 10.5a1.5 1.5 0 0 1 3 0v1.5",key:"svg-2"}],["path",{d:"M17 11.5a1.5 1.5 0 0 1 3 0v4.5a6 6 0 0 1 -6 6h-2h.208a6 6 0 0 1 -5.012 -2.7l-.196 -.3c-.312 -.479 -1.407 -2.388 -3.286 -5.728a1.5 1.5 0 0 1 .536 -2.022a1.867 1.867 0 0 1 2.28 .28l1.47 1.47",key:"svg-3"}],["path",{d:"M5 3l-1 -1",key:"svg-4"}],["path",{d:"M4 7h-1",key:"svg-5"}],["path",{d:"M14 3l1 -1",key:"svg-6"}],["path",{d:"M15 6h1",key:"svg-7"}]])},534467:(e,t,o)=>{o.d(t,{NP:()=>ao});var r=o(249738),n=o(688329),a=o(537908),i=o(705922);function l(e){if("number"==typeof e)return!0;if("string"==typeof e){if(e.startsWith("calc(")||e.startsWith("var(")||e.includes(" ")&&""!==e.trim())return!0;let t=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return e.trim().split(/\s+/).every(e=>t.test(e))}return!1}function s(e){return"0rem"===e?"0rem":`calc(${e} * var(--mantine-scale))`}function c(e,{shouldScale:t=!1}={}){return function o(r){if(0===r||"0"===r)return`0${e}`;if("number"==typeof r){let o=`${r/16}${e}`;return t?s(o):o}if("string"==typeof r){if(""===r||r.startsWith("calc(")||r.startsWith("clamp(")||r.includes("rgba("))return r;if(r.includes(","))return r.split(",").map(e=>o(e)).join(",");if(r.includes(" "))return r.split(" ").map(e=>o(e)).join(" ");if(r.includes(e))return t?s(r):r;let n=r.replace("px","");if(!Number.isNaN(Number(n))){let o=`${Number(n)/16}${e}`;return t?s(o):o}}return r}}let d=c("rem",{shouldScale:!0}),u=c("em");function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"size",o=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(void 0!==e)return l(e)?o?d(e):e:"var(--".concat(t,"-").concat(e,")")}function m(e){return p(e,"mantine-spacing")}function f(e){return void 0===e?"var(--mantine-radius-default)":p(e,"mantine-radius")}function h(e){return p(e,"mantine-font-size")}function v(e){if(e)return p(e,"mantine-shadow",!1)}function g(e){return Object.keys(e).reduce((t,o)=>(void 0!==e[o]&&(t[o]=e[o]),t),{})}function y(e){if(/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)){let t=e.replace("#","");if(3===t.length){let e=t.split("");t=[e[0],e[0],e[1],e[1],e[2],e[2]].join("")}if(8===t.length){let e=parseInt(t.slice(6,8),16)/255;return{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:e}}let o=parseInt(t,16);return{r:o>>16&255,g:o>>8&255,b:255&o,a:1}}if(e.startsWith("rgb")){let[t,o,r,n]=e.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:t,g:o,b:r,a:void 0===n?1:n}}return e.startsWith("hsl")?function(e){let t,o,r,n=e.match(/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i);if(!n)return{r:0,g:0,b:0,a:1};let a=parseInt(n[1],10),i=parseInt(n[2],10)/100,l=parseInt(n[3],10)/100,s=n[5]?parseFloat(n[5]):void 0,c=(1-Math.abs(2*l-1))*i,d=a/60,u=c*(1-Math.abs(d%2-1)),p=l-c/2;return d>=0&&d<1?(t=c,o=u,r=0):d>=1&&d<2?(t=u,o=c,r=0):d>=2&&d<3?(t=0,o=c,r=u):d>=3&&d<4?(t=0,o=u,r=c):d>=4&&d<5?(t=u,o=0,r=c):(t=c,o=0,r=u),{r:Math.round((t+p)*255),g:Math.round((o+p)*255),b:Math.round((r+p)*255),a:s||1}}(e):{r:0,g:0,b:0,a:1}}function b(e,t){if(e.startsWith("var("))return`color-mix(in srgb, ${e}, black ${100*t}%)`;let{r:o,g:r,b:n,a}=y(e),i=1-t,l=e=>Math.round(e*i);return`rgba(${l(o)}, ${l(r)}, ${l(n)}, ${a})`}function w(e,t){return"number"==typeof e.primaryShade?e.primaryShade:"dark"===t?e.primaryShade.dark:e.primaryShade.light}function x(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function k(e,t=.179){return!e.startsWith("var(")&&function(e){if(e.startsWith("oklch("))return(function(e){let t=e.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}(e)||0)/100;let{r:t,g:o,b:r}=y(e),n=x(t/255);return .2126*n+.7152*x(o/255)+.0722*x(r/255)}(e)>t}
1function C(e){let{color:t,theme:o,colorScheme:r}=e;if("string"!=typeof t)throw Error("[@mantine/core] Failed to parse color. Expected color to be a string, instead got ".concat(typeof t));if("bright"===t)return{color:t,value:"dark"===r?o.white:o.black,shade:void 0,isThemeColor:!1,isLight:k("dark"===r?o.white:o.black,o.luminanceThreshold),variable:"--mantine-color-bright"};if("dimmed"===t)return{color:t,value:"dark"===r?o.colors.dark[2]:o.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:k("dark"===r?o.colors.dark[2]:o.colors.gray[6],o.luminanceThreshold),variable:"--mantine-color-dimmed"};if("white"===t||"black"===t)return{color:t,value:"white"===t?o.white:o.black,shade:void 0,isThemeColor:!1,isLight:k("white"===t?o.white:o.black,o.luminanceThreshold),variable:"--mantine-color-".concat(t)};let[n,a]=t.split("."),i=a?Number(a):void 0,l=n in o.colors;if(l){let e=void 0!==i?o.colors[n][i]:o.colors[n][w(o,r||"light")];return{color:n,value:e,shade:i,isThemeColor:l,isLight:k(e,o.luminanceThreshold),variable:a?"--mantine-color-".concat(n,"-").concat(i):"--mantine-color-".concat(n,"-filled")}}return{color:t,value:t,isThemeColor:l,isLight:k(t,o.luminanceThreshold),shade:i,variable:void 0}}function j(e,t){let o=C({color:e||t.primaryColor,theme:t});return o.variable?"var(".concat(o.variable,")"):e}function S(e,t){var o,r;let n={from:(null==e?void 0:e.from)||t.defaultGradient.from,to:(null==e?void 0:e.to)||t.defaultGradient.to,deg:null!=(r=null!=(o=null==e?void 0:e.deg)?o:t.defaultGradient.deg)?r:0},a=j(n.from,t),i=j(n.to,t);return"linear-gradient(".concat(n.deg,"deg, ").concat(a," 0%, ").concat(i," 100%)")}function N(e,t){if("string"!=typeof e||t>1||t<0)return"rgba(0, 0, 0, 1)";if(e.startsWith("var("))return`color-mix(in srgb, ${e}, transparent ${(1-t)*100}%)`;if(e.startsWith("oklch"))return e.includes("/")?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${t})`):e.replace(")",` / ${t})`);let{r:o,g:r,b:n}=y(e);return`rgba(${o}, ${r}, ${n}, ${t})`}let P="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",T={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:{dark:["#C9C9C9","#b8b8b8","#828282","#696969","#424242","#3b3b3b","#2e2e2e","#242424","#1f1f1f","#141414"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:e=>{let{color:t,theme:o,variant:r,gradient:n,autoContrast:a}=e,i=C({color:t,theme:o}),l="boolean"==typeof a?a:o.autoContrast;if("filled"===r){let e=l&&i.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return i.isThemeColor?void 0===i.shade?{background:"var(--mantine-color-".concat(t,"-filled)"),hover:"var(--mantine-color-".concat(t,"-filled-hover)"),color:e,border:"".concat(d(1)," solid transparent")}:{background:"var(--mantine-color-".concat(i.color,"-").concat(i.shade,")"),hover:"var(--mantine-color-".concat(i.color,"-").concat(9===i.shade?8:i.shade+1,")"),color:e,border:"".concat(d(1)," solid transparent")}:{background:t,hover:b(t,.1),color:e,border:"".concat(d(1)," solid transparent")}}if("light"===r){if(i.isThemeColor){if(void 0===i.shade)return{background:"var(--mantine-color-".concat(t,"-light)"),hover:"var(--mantine-color-".concat(t,"-light-hover)"),color:"var(--mantine-color-".concat(t,"-light-color)"),border:"".concat(d(1)," solid transparent")};let e=o.colors[i.color][i.shade];return{background:N(e,.1),hover:N(e,.12),color:"var(--mantine-color-".concat(i.color,"-").concat(Math.min(i.shade,6),")"),border:"".concat(d(1)," solid transparent")}}return{background:N(t,.1),hover:N(t,.12),color:t,border:"".concat(d(1)," solid transparent")}}if("outline"===r)return i.isThemeColor?void 0===i.shade?{background:"transparent",hover:"var(--mantine-color-".concat(t,"-outline-hover)"),color:"var(--mantine-color-".concat(t,"-outline)"),border:"".concat(d(1)," solid var(--mantine-color-").concat(t,"-outline)")}:{background:"transparent",hover:N(o.colors[i.color][i.shade],.05),color:"var(--mantine-color-".concat(i.color,"-").concat(i.shade,")"),border:"".concat(d(1)," solid var(--mantine-color-").concat(i.color,"-").concat(i.shade,")")}:{background:"transparent",hover:N(t,.05),color:t,border:"".concat(d(1)," solid ").concat(t)};if("subtle"===r)return i.isThemeColor?void 0===i.shade?{background:"transparent",hover:"var(--mantine-color-".concat(t,"-light-hover)"),color:"var(--mantine-color-".concat(t,"-light-color)"),border:"".concat(d(1)," solid transparent")}:{background:"transparent",hover:N(o.colors[i.color][i.shade],.12),color:"var(--mantine-color-".concat(i.color,"-").concat(Math.min(i.shade,6),")"),border:"".concat(d(1)," solid transparent")}:{background:"transparent",hover:N(t,.12),color:t,border:"".concat(d(1)," solid transparent")};if("transparent"===r)return i.isThemeColor?void 0===i.shade?{background:"transparent",hover:"transparent",color:"var(--mantine-color-".concat(t,"-light-color)"),border:"".concat(d(1)," solid transparent")}:{background:"transparent",hover:"transparent",color:"var(--mantine-color-".concat(i.color,"-").concat(Math.min(i.shade,6),")"),border:"".concat(d(1)," solid transparent")}:{background:"transparent",hover:"transparent",color:t,border:"".concat(d(1)," solid transparent")};if("white"===r)return i.isThemeColor?void 0===i.shade?{background:"var(--mantine-color-white)",hover:b(o.white,.01),color:"var(--mantine-color-".concat(t,"-filled)"),border:"".concat(d(1)," solid transparent")}:{background:"var(--mantine-color-white)",hover:b(o.white,.01),color:"var(--mantine-color-".concat(i.color,"-").concat(i.shade,")"),border:"".concat(d(1)," solid transparent")}:{background:"var(--mantine-color-white)",hover:b(o.white,.01),color:t,border:"".concat(d(1)," solid transparent")};return"gradient"===r?{background:S(n,o),hover:S(n,o),color:"var(--mantine-color-white)",border:"none"}:"default"===r?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:"".concat(d(1)," solid var(--mantine-color-default-border)")}:{}},autoContrast:!1,luminanceThreshold:.3,fontFamily:P,fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",respectReducedMotion:!1,cursorType:"default",defaultGradient:{from:"blue",to:"cyan",deg:45},defaultRadius:"sm",activeClassName:"mantine-active",focusClassName:"",headings:{fontFamily:P,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:d(34),lineHeight:"1.3"},h2:{fontSize:d(26),lineHeight:"1.35"},h3:{fontSize:d(22),lineHeight:"1.4"},h4:{fontSize:d(18),lineHeight:"1.45"},h5:{fontSize:d(16),lineHeight:"1.5"},h6:{fontSize:d(14),lineHeight:"1.5"}}},fontSizes:{xs:d(12),sm:d(14),md:d(16),lg:d(18),xl:d(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"}
1,radius:{xs:d(2),sm:d(4),md:d(8),lg:d(16),xl:d(32)},spacing:{xs:d(10),sm:d(12),md:d(16),lg:d(20),xl:d(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${d(1)} ${d(3)} rgba(0, 0, 0, 0.05), 0 ${d(1)} ${d(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${d(1)} ${d(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${d(10)} ${d(15)} ${d(-5)}, rgba(0, 0, 0, 0.04) 0 ${d(7)} ${d(7)} ${d(-5)}`,md:`0 ${d(1)} ${d(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${d(20)} ${d(25)} ${d(-5)}, rgba(0, 0, 0, 0.04) 0 ${d(10)} ${d(10)} ${d(-5)}`,lg:`0 ${d(1)} ${d(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${d(28)} ${d(23)} ${d(-7)}, rgba(0, 0, 0, 0.04) 0 ${d(12)} ${d(12)} ${d(-7)}`,xl:`0 ${d(1)} ${d(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${d(36)} ${d(28)} ${d(-7)}, rgba(0, 0, 0, 0.04) 0 ${d(17)} ${d(17)} ${d(-7)}`},other:{},components:{}};function E(e){return e&&"object"==typeof e&&!Array.isArray(e)}function R(e,t){let o={...e};return E(e)&&E(t)&&Object.keys(t).forEach(r=>{E(t[r])&&r in e?o[r]=R(o[r],t[r]):o[r]=t[r]}),o}function O(e){return!(e<0)&&!(e>9)&&parseInt(e.toString(),10)===e}function _(e){if(!(e.primaryColor in e.colors))throw Error("[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more â https://mantine.dev/theming/colors/#primary-color");if("object"==typeof e.primaryShade&&(!O(e.primaryShade.dark)||!O(e.primaryShade.light))||"number"==typeof e.primaryShade&&!O(e.primaryShade))throw Error("[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }")}let M=(0,i.createContext)(null);function I(){let e=(0,i.useContext)(M);if(!e)throw Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return e}function D(e){let{theme:t,children:o,inherit:n=!0}=e,a=(0,i.useContext)(M)||T,l=(0,i.useMemo)(()=>(function(e,t){if(!t)return _(e),e;let o=R(e,t);return t.fontFamily&&!t.headings?.fontFamily&&(o.headings.fontFamily=t.fontFamily),_(o),o})(n?a:T,t),[t,a,n]);return(0,r.jsx)(M.Provider,{value:l,children:o})}function z(e,t,o){var r;let n=I(),a=null==(r=n.components[e])?void 0:r.defaultProps,i="function"==typeof a?a(n):a;return{...t,...i,...g(o)}}D.displayName="@mantine/core/MantineThemeProvider";let A=(0,i.createContext)(null);function F(){let e=(0,i.useContext)(A);if(!e)throw Error("[@mantine/core] MantineProvider was not found in tree");return e}function L(){return F().getStyleNonce}function B(){return F().env||"default"}var $=o(852613);let H={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"},q={};function W(e){let{theme:t,classNames:o,props:r,stylesCtx:n}=e;var a=(Array.isArray(o)?o:[o]).map(e=>"function"==typeof e?e(t,r,n):e||q);let i={};return a.forEach(e=>{Object.entries(e).forEach(e=>{let[t,o]=e;i[t]?i[t]=(0,$.A)(i[t],o):i[t]=o})}),i}function G(e){let{selector:t,stylesCtx:o,theme:r,classNames:n,props:a}=e;return W({theme:r,classNames:n,props:a,stylesCtx:o})[t]}function V(e){let{theme:t,styles:o,props:r,stylesCtx:n}=e;return(Array.isArray(o)?o:[o]).reduce((e,o)=>"function"==typeof o?{...e,...o(t,r,n)}:{...e,...o},{})}function U(e){let{style:t,theme:o}=e;return Array.isArray(t)?[...t].reduce((e,t)=>({...e,...U({style:t,theme:o})}),{}):"function"==typeof t?t(o):null==t?{}:t}function Y(e){let{name:t,classes:o,props:r,stylesCtx:n,className:a,style:i,rootSelector:l="root",unstyled:s,classNames:c,styles:d,vars:u,varsResolver:p}=e,m=I(),f=F().classNamesPrefix,h=F().withStaticClasses,v=F().headless,y=(Array.isArray(t)?t:[t]).filter(e=>e),{withStylesTransform:b,getTransformedStyles:w}=function(e){var t,o;let{props:r,stylesCtx:n,themeName:a}=e,i=I(),l=null==(t=null==(o=F().stylesTransform)?void 0:o.styles)?void 0:t();return{getTransformedStyles:e=>l?[...e.map(e=>l(e,{props:r,theme:i,ctx:n})),...a.map(e=>{var t;return l(null==(t=i.components[e])?void 0:t.styles,{props:r,theme:i,ctx:n})})].filter(Boolean):[],withStylesTransform:!!l}}({props:r,stylesCtx:n,themeName:y});return(e,t)=>({className:function(e){let{theme:t,options:o,themeName:r,selector:n,classNamesPrefix:a,classNames:i,classes:l,unstyled:s,className:c,rootSelector:d,props:u,stylesCtx:p,withStaticClasse
1s:m,headless:f,transformedStyles:h}=e;return(0,$.A)(function(e){let{theme:t,options:o,unstyled:r}=e;return(0,$.A)((null==o?void 0:o.focusable)&&!r&&(t.focusClassName||H[t.focusRing]),(null==o?void 0:o.active)&&!r&&t.activeClassName)}({theme:t,options:o,unstyled:s||f}),function(e){let{themeName:t,theme:o,selector:r,props:n,stylesCtx:a}=e;return t.map(e=>{var t,i;return null==(t=W({theme:o,classNames:null==(i=o.components[e])?void 0:i.classNames,props:n,stylesCtx:a}))?void 0:t[r]})}({theme:t,themeName:r,selector:n,props:u,stylesCtx:p}),function(e){let{options:t,classes:o,selector:r,unstyled:n}=e;return(null==t?void 0:t.variant)&&!n?o["".concat(r,"--").concat(t.variant)]:void 0}({options:o,classes:l,selector:n,unstyled:s}),G({selector:n,stylesCtx:p,theme:t,classNames:i,props:u}),G({selector:n,stylesCtx:p,theme:t,classNames:h,props:u}),function(e){let{selector:t,stylesCtx:o,options:r,props:n,theme:a}=e;return W({theme:a,classNames:null==r?void 0:r.classNames,props:(null==r?void 0:r.props)||n,stylesCtx:o})[t]}({selector:n,stylesCtx:p,options:o,props:u,theme:t}),function(e){let{rootSelector:t,selector:o,className:r}=e;return t===o?r:void 0}({rootSelector:d,selector:n,className:c}),function(e){let{selector:t,classes:o,unstyled:r}=e;return r?void 0:o[t]}({selector:n,classes:l,unstyled:s||f}),m&&!f&&function(e){let{themeName:t,classNamesPrefix:o,selector:r,withStaticClass:n}=e;return!1===n?[]:t.map(e=>"".concat(o,"-").concat(e,"-").concat(r))}({themeName:r,classNamesPrefix:a,selector:n,withStaticClass:null==o?void 0:o.withStaticClass}),null==o?void 0:o.className)}({theme:m,options:t,themeName:y,selector:e,classNamesPrefix:f,classNames:c,classes:o,unstyled:s,className:a,rootSelector:l,props:r,stylesCtx:n,withStaticClasses:h,headless:v,transformedStyles:w([null==t?void 0:t.styles,d])}),style:function(e){let{theme:t,themeName:o,selector:r,options:n,props:a,stylesCtx:i,rootSelector:l,styles:s,style:c,vars:d,varsResolver:u,headless:p,withStylesTransform:m}=e;return{...!m&&function(e){let{theme:t,themeName:o,props:r,stylesCtx:n,selector:a}=e;return o.map(e=>{var o;return V({theme:t,styles:null==(o=t.components[e])?void 0:o.styles,props:r,stylesCtx:n})[a]}).reduce((e,t)=>({...e,...t}),{})}({theme:t,themeName:o,props:a,stylesCtx:i,selector:r}),...!m&&V({theme:t,styles:s,props:a,stylesCtx:i})[r],...!m&&V({theme:t,styles:null==n?void 0:n.styles,props:(null==n?void 0:n.props)||a,stylesCtx:i})[r],...function(e){var t;let{vars:o,varsResolver:r,theme:n,props:a,stylesCtx:i,selector:l,themeName:s,headless:c}=e;return null==(t=[c?{}:null==r?void 0:r(n,a,i),...s.map(e=>{var t,o,r;return null==(r=n.components)||null==(o=r[e])||null==(t=o.vars)?void 0:t.call(o,n,a,i)}),null==o?void 0:o(n,a,i)].reduce((e,t)=>(t&&Object.keys(t).forEach(o=>{e[o]={...e[o],...g(t[o])}}),e),{}))?void 0:t[l]}({theme:t,props:a,stylesCtx:i,vars:d,varsResolver:u,selector:r,themeName:o,headless:p}),...l===r?U({style:c,theme:t}):null,...U({style:null==n?void 0:n.style,theme:t})}}({theme:m,themeName:y,selector:e,options:t,props:r,stylesCtx:n,rootSelector:l,styles:d,style:i,vars:u,varsResolver:p,headless:v,withStylesTransform:b})})}function X(e){return Object.keys(e)}function K(e){return X(e).reduce((t,o)=>void 0!==e[o]?"".concat(t).concat(o.replace(/[A-Z]/g,e=>"-".concat(e.toLowerCase())),":").concat(e[o],";"):t,"").trim()}function Z(e){let t=L();return(0,r.jsx)("style",{"data-mantine-styles":"inline",nonce:null==t?void 0:t(),dangerouslySetInnerHTML:{__html:function(e){let{selector:t,styles:o,media:r,container:n}=e,a=o?K(o):"",i=Array.isArray(r)?r.map(e=>"@media".concat(e.query,"{").concat(t,"{").concat(K(e.styles),"}}")):[],l=Array.isArray(n)?n.map(e=>"@container ".concat(e.query,"{").concat(t,"{").concat(K(e.styles),"}}")):[];return"".concat(a?"".concat(t,"{").concat(a,"}"):"").concat(i.join("")).concat(l.join("")).trim()}(e)}})}function Q(e){return e.startsWith("data-")?e:"data-".concat(e)}function J(e,t){return Array.isArray(e)?[...e].reduce((e,o)=>({...e,...J(o,t)}),{}):"function"==typeof e?e(t):null==e?{}:e}function ee(e){let{m:t,mx:o,my:r,mt:n,mb:a,ml:i,mr:l,me:s,ms:c,p:d,px:u,py:p,pt:m,pb:f,pl:h,pr:v,pe:y,ps:b,bd:w,bg:x,c:k,opacity:C,ff:j,fz:S,fw:N,lts:P,ta:T,lh:E,fs:R,tt:O,td:_,w:M,miw:I,maw:D,h:z,mih:A,mah:F,bgsz:L,bgp:B,bgr:$,bga:H,pos:q,top:W,left:G,bottom:V,right:U,inset:Y,display:X,flex:K,hiddenFrom:Z,visibleFrom
1:Q,lightHidden:J,darkHidden:ee,sx:et,...eo}=e;return{styleProps:g({m:t,mx:o,my:r,mt:n,mb:a,ml:i,mr:l,me:s,ms:c,p:d,px:u,py:p,pt:m,pb:f,pl:h,pr:v,pe:y,ps:b,bd:w,bg:x,c:k,opacity:C,ff:j,fz:S,fw:N,lts:P,ta:T,lh:E,fs:R,tt:O,td:_,w:M,miw:I,maw:D,h:z,mih:A,mah:F,bgsz:L,bgp:B,bgr:$,bga:H,pos:q,top:W,left:G,bottom:V,right:U,inset:Y,display:X,flex:K,hiddenFrom:Z,visibleFrom:Q,lightHidden:J,darkHidden:ee,sx:et}),rest:eo}}let et={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},ms:{type:"spacing",property:"marginInlineStart"},me:{type:"spacing",property:"marginInlineEnd"},mx:{type:"spacing",property:"marginInline"},my:{type:"spacing",property:"marginBlock"},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},ps:{type:"spacing",property:"paddingInlineStart"},pe:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bd:{type:"border",property:"border"},bg:{type:"color",property:"background"},c:{type:"textColor",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"fontFamily",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"lineHeight",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"size",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"},flex:{type:"identity",property:"flex"}};function eo(e,t){let o=C({color:e,theme:t});return"dimmed"===o.color?"var(--mantine-color-dimmed)":"bright"===o.color?"var(--mantine-color-bright)":o.variable?"var(".concat(o.variable,")"):o.color}let er={text:"var(--mantine-font-family)",mono:"var(--mantine-font-family-monospace)",monospace:"var(--mantine-font-family-monospace)",heading:"var(--mantine-font-family-headings)",headings:"var(--mantine-font-family-headings)"},en=["h1","h2","h3","h4","h5","h6"],ea=["h1","h2","h3","h4","h5","h6"],ei={color:eo,textColor:function(e,t){let o=C({color:e,theme:t});return o.isThemeColor&&void 0===o.shade?"var(--mantine-color-".concat(o.color,"-text)"):eo(e,t)},fontSize:function(e,t){return"string"==typeof e&&e in t.fontSizes?"var(--mantine-font-size-".concat(e,")"):"string"==typeof e&&en.includes(e)?"var(--mantine-".concat(e,"-font-size)"):"number"==typeof e||"string"==typeof e?d(e):e},spacing:function(e,t){if("number"==typeof e)return d(e);if("string"==typeof e){let o=e.replace("-","");if(!(o in t.spacing))return d(e);let r="--mantine-spacing-".concat(o);return e.startsWith("-")?"calc(var(".concat(r,") * -1)"):"var(".concat(r,")")}return e},identity:function(e){return e},size:function(e){return"number"==typeof e?d(e):e},lineHeight:function(e,t){return"string"==typeof e&&e in t.lineHeights?"var(--mantine-line-height-".concat(e,")"):"string"==typeof e&&ea.includes(e)?"var(--mantine-".concat(e,"-line-height)"):e},fontFamily:function(e){return"string"==typeof e&&e in er?er[e]:e},border:function(e,t){if("number"==typeof e)return d(e);if("string"==typeof e){let[o,r,...n]=e.split(" ").filter(e=>""!==e.trim()),a="".concat(d(o));return r&&(a+=" ".concat(r)),n.length>0&&(a+=" ".concat(eo(n.join(" "),t))),a.trim()}return e}};function el(e){return e.replace("(min-width: ","").replace("em)","")}function es(e){let{styleProps:t,data:o,theme:r}=e;return function(e){let{media:t,...o}=e,r=Object.keys(t).sort((e,t)=>
1Number(el(e))-Number(el(t))).map(e=>({query:e,styles:t[e]}));return{...o,media:r}}(X(t).reduce((e,n)=>{var a,i;if("hiddenFrom"===n||"visibleFrom"===n||"sx"===n)return e;let l=o[n],s=Array.isArray(l.property)?l.property:[l.property],c="object"==typeof(i=t[n])&&null!==i?"base"in i?i.base:void 0:i;if(!function(e){if("object"!=typeof e||null===e)return!1;let t=Object.keys(e);return 1!==t.length||"base"!==t[0]}(t[n]))return s.forEach(t=>{e.inlineStyles[t]=ei[l.type](c,r)}),e;e.hasResponsiveStyles=!0;let d="object"==typeof(a=t[n])&&null!==a?X(a).filter(e=>"base"!==e):[];return s.forEach(o=>{c&&(e.styles[o]=ei[l.type](c,r)),d.forEach(a=>{var i;let s="(min-width: ".concat(r.breakpoints[a],")");e.media[s]={...e.media[s],[o]:ei[l.type]((i=t[n],"object"==typeof i&&null!==i&&a in i?i[a]:i),r)}})}),e},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function ec(){let e=(0,i.useId)().replace(/:/g,"");return"__m__-".concat(e)}let ed=(0,i.forwardRef)((e,t)=>{var o;let{component:n,style:a,__vars:i,className:s,variant:c,mod:d,size:u,hiddenFrom:p,visibleFrom:m,lightHidden:f,darkHidden:h,renderRoot:v,__size:g,...y}=e,b=I(),{styleProps:w,rest:x}=ee(y),k=function(){var e;return null==(e=F().stylesTransform)?void 0:e.sx}(),C=null==k||null==(o=k())?void 0:o(w.sx),j=ec(),S=es({styleProps:w,theme:b,data:et}),N={ref:t,style:function(e){let{theme:t,style:o,vars:r,styleProps:n}=e,a=J(o,t),i=J(r,t);return{...a,...i,...n}}({theme:b,style:a,vars:i,styleProps:S.inlineStyles}),className:(0,$.A)(s,C,{[j]:S.hasResponsiveStyles,"mantine-light-hidden":f,"mantine-dark-hidden":h,["mantine-hidden-from-".concat(p)]:p,["mantine-visible-from-".concat(m)]:m}),"data-variant":c,"data-size":l(u)?void 0:u||void 0,size:g,...function e(t){return t?"string"==typeof t?{[Q(t)]:!0}:Array.isArray(t)?[...t].reduce((t,o)=>({...t,...e(o)}),{}):Object.keys(t).reduce((e,o)=>{let r=t[o];return void 0===r||""===r||!1===r||null===r||(e[Q(o)]=t[o]),e},{}):null}(d),...x};return(0,r.jsxs)(r.Fragment,{children:[S.hasResponsiveStyles&&(0,r.jsx)(Z,{selector:".".concat(j),styles:S.styles,media:S.media}),"function"==typeof v?v(N):(0,r.jsx)(n||"div",{...N})]})});function eu(e){return e}function ep(e){let t=(0,i.forwardRef)(e);return t.extend=eu,t.withProps=e=>{let o=(0,i.forwardRef)((o,n)=>(0,r.jsx)(t,{...e,...o,ref:n}));return o.extend=t.extend,o.displayName="WithProps(".concat(t.displayName,")"),o},t}ed.displayName="@mantine/core/Box";var em={root:"m_6d731127"};let ef={gap:"md",align:"stretch",justify:"flex-start"},eh=(e,t)=>{let{gap:o,align:r,justify:n}=t;return{root:{"--stack-gap":m(o),"--stack-align":r,"--stack-justify":n}}},ev=ep((e,t)=>{let o=z("Stack",ef,e),{classNames:n,className:a,style:i,styles:l,unstyled:s,vars:c,align:d,justify:u,gap:p,variant:m,...f}=o,h=Y({name:"Stack",props:o,classes:em,className:a,style:i,classNames:n,styles:l,unstyled:s,vars:c,varsResolver:eh});return(0,r.jsx)(ed,{ref:t,...h("root"),variant:m,...f})});function eg(e){let t=(0,i.forwardRef)(e);return t.withProps=e=>{let o=(0,i.forwardRef)((o,n)=>(0,r.jsx)(t,{...e,...o,ref:n}));return o.extend=t.extend,o.displayName="WithProps(".concat(t.displayName,")"),o},t.extend=eu,t}ev.classes=em,ev.displayName="@mantine/core/Stack";var ey={root:"m_b6d8b162"};let eb={inherit:!1},ew=(e,t)=>{let{variant:o,lineClamp:r,gradient:n,size:a,color:i}=t;return{root:{"--text-fz":h(a),"--text-lh":p(a,"mantine-line-height",!1),"--text-gradient":"gradient"===o?S(n,e):void 0,"--text-line-clamp":"number"==typeof r?r.toString():void 0,"--text-color":i?j(i,e):void 0}}},ex=eg((e,t)=>{let o=z("Text",eb,e),{lineClamp:n,truncate:a,inline:i,inherit:l,gradient:s,span:c,__staticSelector:d,vars:u,className:p,style:m,classNames:f,styles:h,unstyled:v,variant:g,mod:y,size:b,...w}=o,x=Y({name:["Text",d],props:o,classes:ey,className:p,style:m,classNames:f,styles:h,unstyled:v,vars:u,varsResolver:ew});return(0,r.jsx)(ed,{...x("root",{focusable:!0}),ref:t,component:c?"span":"p",variant:g,mod:[{"data-truncate":function(e){return"start"===e?"start":"end"===e||e?"end":void 0}(a),"data-line-clamp":"number"==typeof n,"data-inline":i,"data-inherit":l},y],size:b,...w})});ex.classes=ey,ex.displayName="@mantine/core/Text";var ek={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",oval
1Loader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};let eC=(0,i.forwardRef)((e,t)=>{let{className:o,...n}=e;return(0,r.jsxs)(ed,{component:"span",className:(0,$.A)(ek.barsLoader,o),...n,ref:t,children:[(0,r.jsx)("span",{className:ek.bar}),(0,r.jsx)("span",{className:ek.bar}),(0,r.jsx)("span",{className:ek.bar})]})});eC.displayName="@mantine/core/Bars";let ej=(0,i.forwardRef)((e,t)=>{let{className:o,...n}=e;return(0,r.jsxs)(ed,{component:"span",className:(0,$.A)(ek.dotsLoader,o),...n,ref:t,children:[(0,r.jsx)("span",{className:ek.dot}),(0,r.jsx)("span",{className:ek.dot}),(0,r.jsx)("span",{className:ek.dot})]})});ej.displayName="@mantine/core/Dots";let eS=(0,i.forwardRef)((e,t)=>{let{className:o,...n}=e;return(0,r.jsx)(ed,{component:"span",className:(0,$.A)(ek.ovalLoader,o),...n,ref:t})});eS.displayName="@mantine/core/Oval";let eN={bars:eC,oval:eS,dots:ej},eP={loaders:eN,type:"oval"},eT=(e,t)=>{let{size:o,color:r}=t;return{root:{"--loader-size":p(o,"loader-size"),"--loader-color":r?j(r,e):void 0}}},eE=ep((e,t)=>{let o=z("Loader",eP,e),{size:n,color:a,type:i,vars:l,className:s,style:c,classNames:d,styles:u,unstyled:p,loaders:m,variant:f,children:h,...v}=o,g=Y({name:"Loader",props:o,classes:ek,className:s,style:c,classNames:d,styles:u,unstyled:p,vars:l,varsResolver:eT});return h?(0,r.jsx)(ed,{...g("root"),ref:t,...v,children:h}):(0,r.jsx)(ed,{...g("root"),ref:t,component:m[i],variant:f,size:n,...v})});eE.defaultLoaders=eN,eE.classes=ek,eE.displayName="@mantine/core/Loader";let eR=e=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(.9) translateY(".concat("bottom"===e?10:-10,"px)")},transitionProperty:"transform, opacity"}),eO={fade:{in:{opacity:1},out:{opacity:0}
1,transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(30px)"},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-30px)"},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(30px)"},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-30px)"},transitionProperty:"opacity, transform"},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:{...eR("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...eR("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...eR("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...eR("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...eR("top"),common:{transformOrigin:"top right"}}},e_={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};var eM=o(959007);function eI(e,t){let o=(0,i.useRef)(!1);(0,i.useEffect)(()=>()=>{o.current=!1},[]),(0,i.useEffect)(()=>{if(o.current)return e();o.current=!0},t)}function eD(e){let{keepMounted:t,transition:o="fade",duration:n=250,exitDuration:a=n,mounted:l,children:s,timingFunction:c="ease",onExit:d,onEntered:u,onEnter:p,onExited:m,enterDelay:f,exitDelay:h}=e,v=B(),{transitionDuration:g,transitionStatus:y,transitionTimingFunction:b}=function(e){let{duration:t,exitDuration:o,timingFunction:r,mounted:n,onEnter:a,onExit:l,onEntered:s,onExited:c,enterDelay:d,exitDelay:u}=e,p=I(),m=function(e,t){let{getInitialValueInEffect:o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{getInitialValueInEffect:!0},[r,n]=(0,i.useState)(o?t:!!("undefined"!=typeof window&&"matchMedia"in window)&&window.matchMedia(e).matches),a=(0,i.useRef)(null);return(0,i.useEffect)(()=>{if("matchMedia"in window){a.current=window.matchMedia(e),n(a.current.matches);var t=a.current,o=e=>n(e.matches);try{return t.addEventListener("change",o),()=>t.removeEventListener("change",o)}catch(e){return t.addListener(o),()=>t.removeListener(o)}}},[e]),r}("(prefers-reduced-motion: reduce)",void 0,void 0),f=!!p.respectReducedMotion&&m,[h,v]=(0,i.useState)(f?0:t),[g,y]=(0,i.useState)(n?"entered":"exited"),b=(0,i.useRef)(-1),w=(0,i.useRef)(-1),x=(0,i.useRef)(-1);function k(){window.clearTimeout(b.current),window.clearTimeout(w.current),cancelAnimationFrame(x.current)}let C=e=>{k();let r=e?a:l,n=e?s:c,i=f?0:e?t:o;v(i),0===i?("function"==typeof r&&r(),"function"==typeof n&&n(),y(e?"entered":"exited")):x.current=requestAnimationFrame(()=>{eM.flushSync(()=>{y(e?"pre-entering":"pre-exiting")}),x.current=requestAnimationFrame(()=>{"function"==typeof r&&r(),y(e?"entering":"exiting"),b.current=window.setTimeout(()=>{"function"==typeof n&&n(),y(e?"entered":"exited")},i)})})};return eI(()=>{(e=>{if(k(),"number"!=typeof(e?d:u))return C(e);w.current=window.setTimeout(()=>{C(e)},e?d:u)})(n)},[n]),(0,i.useEffect)(()=>()=>{k()},[]),{transitionDuration:h,transitionStatus:g,transitionTimingFunction:r||"ease"}}({mounted:l,exitDuration:a,duration:n,timingFunction:c,onExit:d,onEntered:u,onEnter:p,onExited:m,enterDelay:f,exitDelay:h});return 0===g||"test"===v?l?(0,r.jsx)(r.Fragment,{children:s({})}):t?s({display:"none"}):null:"exited"===y?t?s({display:"none"}):null:(0,r.jsx)(r.Fragment,{children:s(function(e){let{transition:t,state:o,duration:r,timingFunction:n}
1=e,a={WebkitBackfaceVisibility:"hidden",willChange:"transform, opacity",transitionDuration:"".concat(r,"ms"),transitionTimingFunction:n};return"string"==typeof t?t in eO?{transitionProperty:eO[t].transitionProperty,...a,...eO[t].common,...eO[t][e_[o]]}:{}:{transitionProperty:t.transitionProperty,...a,...t.common,...t[e_[o]]}}({transition:o,duration:g,state:y,timingFunction:b}))})}eD.displayName="@mantine/core/Transition";var ez={root:"m_87cf2631"};let eA={__staticSelector:"UnstyledButton"},eF=eg((e,t)=>{let o=z("UnstyledButton",eA,e),{className:n,component:a="button",__staticSelector:i,unstyled:l,classNames:s,styles:c,style:d,...u}=o,p=Y({name:i,props:o,classes:ez,className:n,style:d,classNames:s,styles:c,unstyled:l});return(0,r.jsx)(ed,{...p("root",{focusable:!0}),component:a,ref:t,type:"button"===a?"button":void 0,...u})});eF.classes=ez,eF.displayName="@mantine/core/UnstyledButton";var eL={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};let eB={orientation:"horizontal"},e$=(e,t)=>{let{borderWidth:o}=t;return{group:{"--button-border-width":d(o)}}},eH=ep((e,t)=>{let o=z("ButtonGroup",eB,e),{className:n,style:a,classNames:i,styles:l,unstyled:s,orientation:c,vars:d,borderWidth:u,variant:p,mod:m,...f}=z("ButtonGroup",eB,e),h=Y({name:"ButtonGroup",props:o,classes:eL,className:n,style:a,classNames:i,styles:l,unstyled:s,vars:d,varsResolver:e$,rootSelector:"group"});return(0,r.jsx)(ed,{...h("group"),ref:t,variant:p,mod:[{"data-orientation":c},m],role:"group",...f})});eH.classes=eL,eH.displayName="@mantine/core/ButtonGroup";let eq={},eW=(e,t)=>{let{radius:o,color:r,gradient:n,variant:a,autoContrast:i,size:l}=t,s=e.variantColorResolver({color:r||e.primaryColor,theme:e,gradient:n,variant:a||"filled",autoContrast:i});return{groupSection:{"--section-height":p(l,"section-height"),"--section-padding-x":p(l,"section-padding-x"),"--section-fz":(null==l?void 0:l.includes("compact"))?h(l.replace("compact-","")):h(l),"--section-radius":void 0===o?void 0:f(o),"--section-bg":r||a?s.background:void 0,"--section-color":s.color,"--section-bd":r||a?s.border:void 0}}},eG=ep((e,t)=>{let o=z("ButtonGroupSection",eq,e),{className:n,style:a,classNames:i,styles:l,unstyled:s,vars:c,variant:d,gradient:u,radius:p,autoContrast:m,...f}=z("ButtonGroupSection",eq,e),h=Y({name:"ButtonGroupSection",props:o,classes:eL,className:n,style:a,classNames:i,styles:l,unstyled:s,vars:c,varsResolver:eW,rootSelector:"groupSection"});return(0,r.jsx)(ed,{...h("groupSection"),ref:t,variant:d,...f})});eG.classes=eL,eG.displayName="@mantine/core/ButtonGroupSection";let eV={in:{opacity:1,transform:"translate(-50%, calc(-50% + ".concat(d(1),"))")},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},eU={},eY=(e,t)=>{let{radius:o,color:r,gradient:n,variant:a,size:i,justify:l,autoContrast:s}=t,c=e.variantColorResolver({color:r||e.primaryColor,theme:e,gradient:n,variant:a||"filled",autoContrast:s});return{root:{"--button-justify":l,"--button-height":p(i,"button-height"),"--button-padding-x":p(i,"button-padding-x"),"--button-fz":(null==i?void 0:i.includes("compact"))?h(i.replace("compact-","")):h(i),"--button-radius":void 0===o?void 0:f(o),"--button-bg":r||a?c.background:void 0,"--button-hover":r||a?c.hover:void 0,"--button-color":c.color,"--button-bd":r||a?c.border:void 0,"--button-hover-color":r||a?c.hoverColor:void 0}}},eX=eg((e,t)=>
1{let o=z("Button",eU,e),{style:n,vars:a,className:i,color:l,disabled:s,children:c,leftSection:d,rightSection:u,fullWidth:p,variant:m,radius:f,loading:h,loaderProps:v,gradient:g,classNames:y,styles:b,unstyled:w,"data-disabled":x,autoContrast:k,mod:C,...j}=o,S=Y({name:"Button",props:o,classes:eL,className:i,style:n,classNames:y,styles:b,unstyled:w,vars:a,varsResolver:eY}),N=!!d,P=!!u;return(0,r.jsxs)(eF,{ref:t,...S("root",{active:!s&&!h&&!x}),unstyled:w,variant:m,disabled:s||h,mod:[{disabled:s||x,loading:h,block:p,"with-left-section":N,"with-right-section":P},C],...j,children:[(0,r.jsx)(eD,{mounted:!!h,transition:eV,duration:150,children:e=>(0,r.jsx)(ed,{component:"span",...S("loader",{style:e}),"aria-hidden":!0,children:(0,r.jsx)(eE,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...v})})}),(0,r.jsxs)("span",{...S("inner"),children:[d&&(0,r.jsx)(ed,{component:"span",...S("section"),mod:{position:"left"},children:d}),(0,r.jsx)(ed,{component:"span",mod:{loading:h},...S("label"),children:c}),u&&(0,r.jsx)(ed,{component:"span",...S("section"),mod:{position:"right"},children:u})]})]})});eX.classes=eL,eX.displayName="@mantine/core/Button",eX.Group=eH,eX.GroupSection=eG;var eK={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};let eZ={orientation:"horizontal"},eQ=(e,t)=>{let{borderWidth:o}=t;return{group:{"--ai-border-width":d(o)}}},eJ=ep((e,t)=>{let o=z("ActionIconGroup",eZ,e),{className:n,style:a,classNames:i,styles:l,unstyled:s,orientation:c,vars:d,borderWidth:u,variant:p,mod:m,...f}=z("ActionIconGroup",eZ,e),h=Y({name:"ActionIconGroup",props:o,classes:eK,className:n,style:a,classNames:i,styles:l,unstyled:s,vars:d,varsResolver:eQ,rootSelector:"group"});return(0,r.jsx)(ed,{...h("group"),ref:t,variant:p,mod:[{"data-orientation":c},m],role:"group",...f})});eJ.classes=eK,eJ.displayName="@mantine/core/ActionIconGroup";let e0={},e1=(e,t)=>{let{radius:o,color:r,gradient:n,variant:a,autoContrast:i,size:l}=t,s=e.variantColorResolver({color:r||e.primaryColor,theme:e,gradient:n,variant:a||"filled",autoContrast:i});return{groupSection:{"--section-height":p(l,"section-height"),"--section-padding-x":p(l,"section-padding-x"),"--section-fz":h(l),"--section-radius":void 0===o?void 0:f(o),"--section-bg":r||a?s.background:void 0,"--section-color":s.color,"--section-bd":r||a?s.border:void 0}}},e2=ep((e,t)=>{let o=z("ActionIconGroupSection",e0,e),{className:n,style:a,classNames:i,styles:l,unstyled:s,vars:c,variant:d,gradient:u,radius:p,autoContrast:m,...f}=z("ActionIconGroupSection",e0,e),h=Y({name:"ActionIconGroupSection",props:o,classes:eK,className:n,style:a,classNames:i,styles:l,unstyled:s,vars:c,varsResolver:e1,rootSelector:"groupSection"});return(0,r.jsx)(ed,{...h("groupSection"),ref:t,variant:d,...f})});e2.classes=eK,e2.displayName="@mantine/core/ActionIconGroupSection";let e9={},e4=(e,t)=>{let{size:o,radius:r,variant:n,gradient:a,color:i,autoContrast:l}=t,s=e.variantColorResolver({color:i||e.primaryColor,theme:e,gradient:a,variant:n||"filled",autoContrast:l});return{root:{"--ai-size":p(o,"ai-size"),"--ai-radius":void 0===r?void 0:f(r),"--ai-bg":i||n?s.background:void 0,"--ai-hover":i||n?s.hover:void 0,"--ai-hover-color":i||n?s.hoverColor:void 0,"--ai-color":s.color,"--ai-bd":i||n?s.border:void 0}}},e7=eg((e,t)=>{let o=z("ActionIcon",e9,e),{className:n,unstyled:a,variant:i,classNames:l,styles:s,style:c,loading:d,loaderProps:u,size:p,color:m,radius:f,__staticSelector:h,gradient:v,vars:g,children:y,disabled:b,"data-disabled":w,autoContrast:x,mod:k,...C}=o,j=Y({name:["ActionIcon",h],props:o,className:n,style:c,classes:eK,classNames:l,styles:s,unstyled:a,vars:g,varsResolver:e4});return(0,r.jsxs)(eF,{...j("root",{active:!b&&!d&&!w}),...C,unstyled:a,variant:i,size:p,disabled:b||d,ref:t,mod:[{loading:d,disabled:b||w},k],children:[(0,r.jsx)(eD,{mounted:!!d,transition:"slide-down",duration:150,children:e=>(0,r.jsx)(ed,{component:"span",...j("loader",{style:e}),"aria-hidden":!0,children:(0,r.jsx)(eE,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...u})})}),(0,r.jsx)(ed,{component:"span",mod:{loading:d},...j("icon"),children:y})]})});function e8(e,t){if("function"==typeof e)return e(t);"object"==typeof e&&null!==e&&"current"in e&&(e.current=t)}function e5(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];let r=new Map;return e=>{if(t.forEach(t=>{let o=e8(t,e);o&&r.set(t,o)}),r.size>0)return()=>
1{t.forEach(e=>{let t=r.get(e);t?t():e8(e,null)}),r.clear()}}}function e3(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return(0,i.useCallback)(e5(...t),t)}function e6(e){return!Array.isArray(e)&&null!==e&&"object"==typeof e&&e.type!==i.Fragment}e7.classes=eK,e7.displayName="@mantine/core/ActionIcon",e7.Group=eJ,e7.GroupSection=e2;let te={app:100,modal:200,popover:300,overlay:400,max:9999};function tt(e){var t;let o=i.version;return"string"!=typeof i.version||o.startsWith("18.")?null==e?void 0:e.ref:null==e||null==(t=e.props)?void 0:t.ref}let to=(0,i.createContext)({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function tr(){return(0,i.useContext)(to)}function tn(e,t){if("rtl"===e&&(t.includes("right")||t.includes("left"))){let[e,o]=t.split("-"),r="right"===e?"left":"right";return void 0===o?r:"".concat(r,"-").concat(o)}return t}function ta(e,t,o,r){return"center"===e||"center"===r?{top:t}:"end"===e?{bottom:o}:"start"===e?{top:o}:{}}function ti(e,t,o,r,n){return"center"===e||"center"===r?{left:t}:"end"===e?{["ltr"===n?"right":"left"]:o}:"start"===e?{["ltr"===n?"left":"right"]:o}:{}}let tl={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"},ts=(0,i.forwardRef)((e,t)=>{let{position:o,arrowSize:n,arrowOffset:a,arrowRadius:i,arrowPosition:l,visible:s,arrowX:c,arrowY:d,style:u,...p}=e,{dir:m}=tr();return s?(0,r.jsx)("div",{...p,ref:t,style:{...u,...function(e){let{position:t,arrowSize:o,arrowOffset:r,arrowRadius:n,arrowPosition:a,arrowX:i,arrowY:l,dir:s}=e,[c,d="center"]=t.split("-"),u={width:o,height:o,transform:"rotate(45deg)",position:"absolute",[tl[c]]:n},p=-o/2;return"left"===c?{...u,...ta(d,l,r,a),right:p,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:"right"===c?{...u,...ta(d,l,r,a),left:p,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:"top"===c?{...u,...ti(d,i,r,a,s),bottom:p,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:"bottom"===c?{...u,...ti(d,i,r,a,s),top:p,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}({position:o,arrowSize:n,arrowOffset:a,arrowRadius:i,arrowPosition:l,dir:m,arrowX:c,arrowY:d})}}):null});ts.displayName="@mantine/core/FloatingArrow";let tc="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;function td(e){let t=document.createElement("div");return t.setAttribute("data-portal","true"),"string"==typeof e.className&&t.classList.add(...e.className.split(" ").filter(Boolean)),"object"==typeof e.style&&Object.assign(t.style,e.style),"string"==typeof e.id&&t.setAttribute("id",e.id),t}let tu={},tp=ep((e,t)=>{let{children:o,target:n,reuseTargetNode:a,...l}=z("Portal",tu,e),[s,c]=(0,i.useState)(!1),d=(0,i.useRef)(null);return(tc(()=>(c(!0),d.current=function(e){let{target:t,reuseTargetNode:o,...r}=e;if(t)return"string"==typeof t?document.querySelector(t)||td(r):t;if(o){let e=document.querySelector("[data-mantine-shared-portal-node]");if(e)return e;let t=td(r);return t.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(t),t}return td(r)}({target:n,reuseTargetNode:a,...l}),e8(t,d.current),n||a||!d.current||document.body.appendChild(d.current),()=>{n||a||!d.current||document.body.removeChild(d.current)}),[n]),s&&d.current)?(0,eM.createPortal)((0,r.jsx)(r.Fragment,{children:o}),d.current):null});tp.displayName="@mantine/core/Portal";let tm=ep((e,t)=>{let{withinPortal:o=!0,children:n,...a}=e;return"test"!==B()&&o?(0,r.jsx)(tp,{ref:t,...a,children:n}):(0,r.jsx)(r.Fragment,{children:n})});tm.displayName="@mantine/core/OptionalPortal";let tf={duration:100,transition:"fade"};var th=o(608138),tv=o(380314),tg=o(252884),ty={tooltip:"m_1b3c8819",arrow:"m_f898399f"};let tb={refProp:"ref",withinPortal:!0,offset:10,defaultOpened:!1,position:"right",zIndex:te.popover},tw=(e,t)=>{let{radius:o,color:r}=t;return{tooltip:{"--tooltip-radius":void 0===o?void 0:f(o),"--tooltip-bg":r?j(r,e):void 0,"--tooltip-color":r?"var(--mantine-color-white)":void 0}}},tx=ep((e,t)=>{var o,n;let a=z("TooltipFloating",tb,e),{children:l,refProp:s,withinPortal:c,style:d,className:u,classNames:p,styles:m,unstyled:f,radius:h,color:v,label:g,offset:y,position:b,multiline:w,zIndex:x,disabled:k,defaultOpened:C,variant:j,vars:S,portalProps:N,...P}=a,T=I(),E=Y({name:"TooltipFloating",props:a,classes:ty,className:u,style:d,classNames:p,styles:m,unstyled:f,rootSelector:"tooltip",vars:S,varsResolver:tw}),{handleMouseMove:R,x:O,y:_,opened:M,boundaryRef:D,floating:A,setOpened:F}=function(e){let{offset:t,position:o,defaultOpened:r}=e,[n,a]=(0,i.useState)(r),l=(0,i.useRef)(null),{x:s,y:c,elements:d,refs:u,update:p,placement:m}=(0,th.we)({placement:o,middleware:[(0,tv.BN)({crossAxis:!0,padding:5,rootBoundary:"document"})]}),f=m.includes("right")?t:o.includes("left")?-1*t:0,h=m.includes("bottom")?t:o.includes("top")?-1*t:0,v=(0,i.useCallback)(e=>{let{clientX:t,clientY:o}=e;u.setPositionReference({getBoundingClientRect:()=>({width:0,height:0,x:t,y:o,left:t+f,top:o+h,right:t,bottom:o})})},[d.reference]);return(0,i.useEffect)(()=>
1{if(u.floating.current){let e=l.current;e.addEventListener("mousemove",v);let t=(0,tg.v9)(u.floating.current);return t.forEach(e=>{e.addEventListener("scroll",p)}),()=>{e.removeEventListener("mousemove",v),t.forEach(e=>{e.removeEventListener("scroll",p)})}}},[d.reference,u.floating.current,p,v,n]),{handleMouseMove:v,x:s,y:c,opened:n,setOpened:a,boundaryRef:l,floating:u.setFloating}}({offset:y,position:b,defaultOpened:C});if(!e6(l))throw Error("[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");let L=e3(D,tt(l),t),B=l.props;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(tm,{...N,withinPortal:c,children:(0,r.jsx)(ed,{...P,...E("tooltip",{style:{...function e(t,o){return Array.isArray(t)?[...t].reduce((t,r)=>({...t,...e(r,o)}),{}):"function"==typeof t?t(o):null==t?{}:t}(d,T),zIndex:x,display:!k&&M?"block":"none",top:null!=(o=_&&Math.round(_))?o:"",left:null!=(n=O&&Math.round(O))?n:""}}),variant:j,ref:A,mod:{multiline:w},children:g})}),(0,i.cloneElement)(l,{...B,[s]:L,onMouseEnter:e=>{var t;null==(t=B.onMouseEnter)||t.call(B,e),R(e),F(!0)},onMouseLeave:e=>{var t;null==(t=B.onMouseLeave)||t.call(B,e),F(!1)}})]})});tx.classes=ty,tx.displayName="@mantine/core/TooltipFloating";let tk=(0,i.createContext)(!1),tC=tk.Provider,tj={openDelay:0,closeDelay:0};function tS(e){let{openDelay:t,closeDelay:o,children:n}=z("TooltipGroup",tj,e);return(0,r.jsx)(tC,{value:!0,children:(0,r.jsx)(th.T3,{delay:{open:t,close:o},children:n})})}tS.displayName="@mantine/core/TooltipGroup",tS.extend=e=>e;let tN=i["useId".toString()]||(()=>void 0);function tP(e){let t=function(){let e=tN();return e?"mantine-".concat(e.replace(/:/g,"")):""}(),[o,r]=(0,i.useState)(t);return(tc(()=>{r(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mantine-";return"".concat(e).concat(Math.random().toString(36).slice(2,11))}())},[]),"string"==typeof e)?e:"undefined"==typeof window?t:o}var tT=o(497161);function tE(e){let{opened:t,floating:o,position:r,positionDependencies:n}=e,[a,l]=(0,i.useState)(0);(0,i.useEffect)(()=>{if(o.refs.reference.current&&o.refs.floating.current&&t)return(0,tT.ll)(o.refs.reference.current,o.refs.floating.current,o.update)},[o.refs.reference.current,o.refs.floating.current,t,a,r]),eI(()=>{o.update()},n),eI(()=>
1{l(e=>e+1)},[t])}let tR={position:"top",refProp:"ref",withinPortal:!0,inline:!1,defaultOpened:!1,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},events:{hover:!0,focus:!1,touch:!1},zIndex:te.popover,positionDependencies:[],middlewares:{flip:!0,shift:!0,inline:!1}},tO=(e,t)=>{let{radius:o,color:r}=t;return{tooltip:{"--tooltip-radius":void 0===o?void 0:f(o),"--tooltip-bg":r?j(r,e):void 0,"--tooltip-color":r?"var(--mantine-color-white)":void 0}}},t_=ep((e,t)=>{var o;let n=z("Tooltip",tR,e),{children:a,position:l,refProp:s,label:c,openDelay:d,closeDelay:u,onPositionChange:p,opened:m,defaultOpened:f,withinPortal:h,radius:v,color:g,classNames:y,styles:b,unstyled:w,style:x,className:k,withArrow:C,arrowSize:j,arrowOffset:S,arrowRadius:N,arrowPosition:P,offset:T,transitionProps:E,multiline:R,events:O,zIndex:_,disabled:M,positionDependencies:I,onClick:D,onMouseEnter:A,onMouseLeave:F,inline:L,variant:B,keepMounted:H,vars:q,portalProps:W,mod:G,floatingStrategy:V,middlewares:U,...X}=z("Tooltip",tR,n),{dir:K}=tr(),Z=(0,i.useRef)(null),Q=function(e){var t,o,r;let[n,a]=(0,i.useState)(e.defaultOpened),l="boolean"==typeof e.opened?e.opened:n,s=(0,i.useContext)(tk),c=tP(),d=(0,i.useCallback)(e=>{a(e),e&&x(c)},[c]),{x:u,y:p,context:m,refs:f,update:h,placement:v,middlewareData:{arrow:{x:g,y:y}={}}}=(0,th.we)({strategy:e.strategy,placement:e.position,open:l,onOpenChange:d,middleware:function(e){let t=function(e){if(void 0===e)return{shift:!0,flip:!0};let t={...e};return void 0===e.shift&&(t.shift=!0),void 0===e.flip&&(t.flip=!0),t}(e.middlewares),o=[(0,tv.cY)(e.offset)];return t.shift&&o.push((0,tv.BN)("boolean"==typeof t.shift?{padding:8}:{padding:8,...t.shift})),t.flip&&o.push("boolean"==typeof t.flip?(0,tv.UU)():(0,tv.UU)(t.flip)),o.push((0,tv.UE)({element:e.arrowRef,padding:e.arrowOffset})),t.inline?o.push("boolean"==typeof t.inline?(0,tv.mG)():(0,tv.mG)(t.inline)):e.inline&&o.push((0,tv.mG)()),o}(e)}),{delay:b,currentId:w,setCurrentId:x}=(0,th.ck)(m,{id:c}),{getReferenceProps:k,getFloatingProps:C}=(0,th.bv)([(0,th.Mk)(m,{enabled:null==(t=e.events)?void 0:t.hover,delay:s?b:{open:e.openDelay,close:e.closeDelay},mouseOnly:!(null==(o=e.events)?void 0:o.touch)}),(0,th.iQ)(m,{enabled:null==(r=e.events)?void 0:r.focus,visibleOnly:!0}),(0,th.It)(m,{role:"tooltip"}),(0,th.s9)(m,{enabled:void 0===e.opened})]);tE({opened:l,position:e.position,positionDependencies:e.positionDependencies,floating:{refs:f,update:h}}),eI(()=>{var t;null==(t=e.onPositionChange)||t.call(e,v)},[v]);let j=l&&w&&w!==c;return{x:u,y:p,arrowX:g,arrowY:y,reference:f.setReference,floating:f.setFloating,getFloatingProps:C,getReferenceProps:k,isGroupPhase:j,opened:l,placement:v}}({position:tn(K,l),closeDelay:u,openDelay:d,onPositionChange:p,opened:m,defaultOpened:f,events:O,arrowRef:Z,arrowOffset:S,offset:"number"==typeof T?T+(C?j/2:0):T,positionDependencies:[...I,a],inline:L,strategy:V,middlewares:U}),J=Y({name:"Tooltip",props:n,classes:ty,className:k,style:x,classNames:y,styles:b,unstyled:w,rootSelector:"tooltip",vars:q,varsResolver:tO});if(!e6(a))throw Error("[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");let ee=e3(Q.reference,tt(a),t),et=(o={duration:100,transition:"fade"},{...tf,...o,...E}),eo=a.props;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(tm,{...W,withinPortal:h,children:(0,r.jsx)(eD,{...et,keepMounted:H,mounted:!M&&!!Q.opened,duration:Q.isGroupPhase?10:et.duration,children:e=>{var t,o;return(0,r.jsxs)(ed,{...X,"data-fixed":"fixed"===V||void 0,variant:B,mod:[{multiline:R},G],...Q.getFloatingProps({ref:Q.floating,className:J("tooltip").className,style:{...J("tooltip").style,...e,zIndex:_,top:null!=(t=Q.y)?t:0,left:null!=(o=Q.x)?o:0}}),children:[c,(0,r.jsx)(ts,{ref:Z,arrowX:Q.arrowX,arrowY:Q.arrowY,visible:C,position:Q.placement,arrowSize:j,arrowOffset:S,arrowRadius:N,arrowPosition:P,...J("arrow")})]})}})}),(0,i.cloneElement)(a,Q.getReferenceProps({onClick:D,onMouseEnter:A,onMouseLeave:F,onMouseMove:n.onMouseMove,onPointerDown:n.onPointerDown,onPointerEnter:n.onPointerEnter,className:(0,$.A)(k,eo.className),...eo,[s]:ee}))]})});function tM(e){let{value:t,defaultValue:o,finalValue:r,onChange:n=()=>{}}=e,[a,l]=(0,i.useState)(void 0!==o?o:r);return void 0!==t?[t,n,!0]:[a,function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];l(e),null==n||n(e,...o)},!1]}function tI(e){let{size:t,style:o,...n}=e,a=void 0!==t?{width:d(t),height:d(t),...o}:o;return(0,r.jsx)("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:a,"aria-hidden":!0,...n,children:(0,r.jsx)("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"
1currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function tD(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=(0,i.createContext)(e);return[e=>{let{children:o,value:n}=e;return(0,r.jsx)(t.Provider,{value:n,children:o})},()=>(0,i.useContext)(t)]}t_.classes=ty,t_.displayName="@mantine/core/Tooltip",t_.Floating=tx,t_.Group=tS;let[tz,tA]=tD(),tF={};function tL(e){let{value:t,defaultValue:o,onChange:n,multiple:a,children:i}=z("ChipGroup",tF,e),[l,s]=tM({value:t,defaultValue:o,finalValue:a?[]:null,onChange:n});return(0,r.jsx)(tz,{value:{isChipSelected:e=>Array.isArray(l)?l.includes(e):e===l,onChange:e=>{let t=e.currentTarget.value;Array.isArray(l)?s(l.includes(t)?l.filter(e=>e!==t):[...l,t]):s(t)},multiple:a},children:i})}tL.displayName="@mantine/core/ChipGroup";var tB={root:"m_f59ffda3",label:"m_be049a53","label--outline":"m_3904c1af","label--filled":"m_fa109255","label--light":"m_f7e165c3",iconWrapper:"m_9ac86df9",checkIcon:"m_d6d72580",input:"m_bde07329"};let t$={type:"checkbox"},tH=(e,t)=>{let{size:o,radius:r,variant:n,color:a,autoContrast:i}=t,l=e.variantColorResolver({color:a||e.primaryColor,theme:e,variant:n||"filled",autoContrast:i});return{root:{"--chip-fz":h(o),"--chip-size":p(o,"chip-size"),"--chip-radius":void 0===r?void 0:f(r),"--chip-checked-padding":p(o,"chip-checked-padding"),"--chip-padding":p(o,"chip-padding"),"--chip-icon-size":p(o,"chip-icon-size"),"--chip-bg":a||n?l.background:void 0,"--chip-hover":a||n?l.hover:void 0,"--chip-color":a||n?l.color:void 0,"--chip-bd":a||n?l.border:void 0,"--chip-spacing":p(o,"chip-spacing")}}},tq=ep((e,t)=>{let o=z("Chip",t$,e),{classNames:n,className:a,style:i,styles:l,unstyled:s,vars:c,id:d,checked:u,defaultChecked:p,onChange:m,value:f,wrapperProps:h,type:v,disabled:g,children:y,size:b,variant:w,icon:x,rootRef:k,autoContrast:C,mod:j,...S}=o,N=Y({name:"Chip",classes:tB,props:o,className:a,style:i,classNames:n,styles:l,unstyled:s,vars:c,varsResolver:tH}),P=tA(),T=tP(d),{styleProps:E,rest:R}=ee(S),[O,_]=tM({value:u,defaultValue:p,finalValue:!1,onChange:m}),M=P?{checked:P.isChipSelected(f),onChange:e=>{P.onChange(e),null==m||m(e.currentTarget.checked)},type:P.multiple?"checkbox":"radio"}:{},I=M.checked||O;return(0,r.jsxs)(ed,{size:b,variant:w,ref:k,mod:j,...N("root"),...E,...h,children:[(0,r.jsx)("input",{type:v,...N("input"),checked:I,onChange:e=>_(e.currentTarget.checked),id:T,disabled:g,ref:t,value:f,...M,...R}),(0,r.jsxs)("label",{htmlFor:T,"data-checked":I||void 0,"data-disabled":g||void 0,...N("label",{variant:w||"filled"}),children:[I&&(0,r.jsx)("span",{...N("iconWrapper"),children:x||(0,r.jsx)(tI,{...N("checkIcon")})}),(0,r.jsx)("span",{children:y})]})]})});tq.classes=tB,tq.displayName="@mantine/core/Chip",tq.Group=tL;var tW={root:"m_4081bf90"};let tG={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},tV=(e,t,o)=>{let{grow:r,preventGrowOverflow:n,gap:a,align:i,justify:l,wrap:s}=t,{childWidth:c}=o;return{root:{"--group-child-width":r&&n?c:void 0,"--group-gap":m(a),"--group-align":i,"--group-justify":l,"--group-wrap":s}}},tU=ep((e,t)=>{let o=z("Group",tG,e),{classNames:n,className:a,style:l,styles:s,unstyled:c,children:d,gap:u,align:p,justify:f,wrap:h,grow:v,preventGrowOverflow:g,vars:y,variant:b,__size:w,mod:x,...k}=o,C=i.Children.toArray(d).filter(Boolean),j=C.length,S=m(null!=u?u:"md"),N=Y({name:"Group",props:o,stylesCtx:{childWidth:"calc(".concat(100/j,"% - (").concat(S," - ").concat(S," / ").concat(j,"))")},className:a,style:l,classes:tW,classNames:n,styles:s,unstyled:c,vars:y,varsResolver:tV});return(0,r.jsx)(ed,{...N("root"),ref:t,variant:b,mod:[{grow:v},x],size:w,...k,children:C})});tU.classes=tW,tU.displayName="@mantine/core/Group";var tY={root:"m_1b7284a3"};let tX={},tK=(e,t)=>{let{radius:o,shadow:r}=t;return{root:{"--paper-radius":void 0===o?void 0:f(o),"--paper-shadow":v(r)}}},tZ=eg((e,t)=>{let o=z("Paper",tX,e),{classNames:n,className:a,style:i,styles:l,unstyled:s,withBorder:c,vars:d,radius:u,shadow:p,variant:m,mod:f,...h}=o,v=Y({name:"Paper",props:o,classes:tY,className:a,style:i,classNames:n,styles:l,unstyled:s,vars:d,varsResolver:tK});return(0,r.jsx)(ed,{ref:t,mod:[{"data-with-border":c},f],...v("root"),variant:m,...h})});function tQ(e){let t=(0,i.createContext)(null);return[e=>{let{children:o,value:n}=e;return(0,r.jsx)(t.Provider,{value:n,children:o})},()=>{let o=(0,i.useContext)(t);if(null===o)throw Error(e);return o}]}tZ.classes=tY,tZ.displayName="@mantine/core/Paper";let[tJ,t0]=tQ("Card component was not found in tree");var t1={root:"m_e615b15f",section:"m_599a2148"};let t2={},t9=eg((e,t)=>
1{let{classNames:o,className:n,style:a,styles:i,vars:l,withBorder:s,inheritPadding:c,mod:d,...u}=z("CardSection",t2,e),p=t0();return(0,r.jsx)(ed,{ref:t,mod:[{"with-border":s,"inherit-padding":c},d],...p.getStyles("section",{className:n,style:a,styles:i,classNames:o}),...u})});t9.classes=t1,t9.displayName="@mantine/core/CardSection";let t4={},t7=(e,t)=>{let{padding:o}=t;return{root:{"--card-padding":m(o)}}},t8=eg((e,t)=>{let o=z("Card",t4,e),{classNames:n,className:a,style:l,styles:s,unstyled:c,vars:d,children:u,padding:p,...m}=o,f=Y({name:"Card",props:o,classes:t1,className:a,style:l,classNames:n,styles:s,unstyled:c,vars:d,varsResolver:t7}),h=i.Children.toArray(u),v=h.map((e,t)=>"object"==typeof e&&e&&"type"in e&&e.type===t9?(0,i.cloneElement)(e,{"data-first-section":0===t||void 0,"data-last-section":t===h.length-1||void 0}):e);return(0,r.jsx)(tJ,{value:{getStyles:f},children:(0,r.jsx)(tZ,{ref:t,unstyled:c,...f("root"),...m,children:v})})});t8.classes=t1,t8.displayName="@mantine/core/Card",t8.Section=t9;var t5={root:"m_3eebeb36",label:"m_9e365f20"};let t3={orientation:"horizontal"},t6=(e,t)=>{let{color:o,variant:r,size:n}=t;return{root:{"--divider-color":o?j(o,e):void 0,"--divider-border-style":r,"--divider-size":p(n,"divider-size")}}},oe=ep((e,t)=>{let o=z("Divider",t3,e),{classNames:n,className:a,style:i,styles:l,unstyled:s,vars:c,color:d,orientation:u,label:p,labelPosition:m,mod:f,...h}=o,v=Y({name:"Divider",classes:t5,props:o,className:a,style:i,classNames:n,styles:l,unstyled:s,vars:c,varsResolver:t6});return(0,r.jsx)(ed,{ref:t,mod:[{orientation:u,"with-label":!!p},f],...v("root"),...h,role:"separator",children:p&&(0,r.jsx)(ed,{component:"span",mod:{position:m},...v("label"),children:p})})});oe.classes=t5,oe.displayName="@mantine/core/Divider";var ot={root:"m_18320242","skeleton-fade":"m_299c329c"};let oo={visible:!0,animate:!0},or=(e,t)=>{let{width:o,height:r,radius:n,circle:a}=t;return{root:{"--skeleton-height":d(r),"--skeleton-width":a?d(r):d(o),"--skeleton-radius":a?"1000px":void 0===n?void 0:f(n)}}},on=ep((e,t)=>{let o=z("Skeleton",oo,e),{classNames:n,className:a,style:i,styles:l,unstyled:s,vars:c,width:d,height:u,circle:p,visible:m,radius:f,animate:h,mod:v,...g}=o,y=Y({name:"Skeleton",classes:ot,props:o,className:a,style:i,classNames:n,styles:l,unstyled:s,vars:c,varsResolver:or});return(0,r.jsx)(ed,{ref:t,...y("root"),mod:[{visible:m,animate:h},v],...g})});on.classes=ot,on.displayName="@mantine/core/Skeleton";let oa=(0,i.createContext)(null),oi=oa.Provider;var ol={group:"m_11def92b",root:"m_f85678b6",image:"m_11f8ac07",placeholder:"m_104cd71f"};let os={},oc=(e,t)=>{let{spacing:o}=t;return{group:{"--ag-spacing":m(o)}}},od=ep((e,t)=>{let o=z("AvatarGroup",os,e),{classNames:n,className:a,style:i,styles:l,unstyled:s,vars:c,spacing:d,...u}=o,p=Y({name:"AvatarGroup",classes:ol,props:o,className:a,style:i,classNames:n,styles:l,unstyled:s,vars:c,varsResolver:oc,rootSelector:"group"});return(0,r.jsx)(oi,{value:!0,children:(0,r.jsx)(ed,{ref:t,...p("group"),...u})})});function ou(e){return(0,r.jsx)("svg",{...e,"data-avatar-placeholder-icon":!0,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("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"})})}od.classes=ol,od.displayName="@mantine/core/AvatarGroup";let op=["blue","cyan","grape","green","indigo","lime","orange","pink","red","teal","violet"],om={},of=(e,t)=>
1{let{size:o,radius:r,variant:n,gradient:a,color:i,autoContrast:l,name:s,allowedInitialsColors:c}=t,d="initials"===i&&"string"==typeof s?function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:op,o=Math.abs(function(e){let t=0;for(let o=0;o<e.length;o+=1)t=(t<<5)-t+e.charCodeAt(o)|0;return t}(e))%t.length;return t[o]}(s,c):i,u=e.variantColorResolver({color:d||"gray",theme:e,gradient:a,variant:n||"light",autoContrast:l});return{root:{"--avatar-size":p(o,"avatar-size"),"--avatar-radius":void 0===r?void 0:f(r),"--avatar-bg":d||n?u.background:void 0,"--avatar-color":d||n?u.color:void 0,"--avatar-bd":d||n?u.border:void 0}}},oh=eg((e,t)=>{let o=z("Avatar",om,e),{classNames:n,className:a,style:l,styles:s,unstyled:c,vars:d,src:u,alt:p,radius:m,color:f,gradient:h,imageProps:v,children:g,autoContrast:y,mod:b,name:w,allowedInitialsColors:x,...k}=o,C={withinGroup:!!(0,i.useContext)(oa)},[j,S]=(0,i.useState)(!u),N=Y({name:"Avatar",props:o,classes:ol,className:a,style:l,classNames:n,styles:s,unstyled:c,vars:d,varsResolver:of});return(0,i.useEffect)(()=>S(!u),[u]),(0,r.jsx)(ed,{...N("root"),mod:[{"within-group":C.withinGroup},b],ref:t,...k,children:j?(0,r.jsx)("span",{...N("placeholder"),title:p,children:g||"string"==typeof w&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,o=e.split(" ");return 1===o.length?e.slice(0,t).toUpperCase():o.map(e=>e[0]).slice(0,t).join("").toUpperCase()}(w)||(0,r.jsx)(ou,{})}):(0,r.jsx)("img",{...v,...N("image"),src:u,alt:p,onError:e=>{var t;S(!0),null==v||null==(t=v.onError)||t.call(v,e)}})})});oh.classes=ol,oh.displayName="@mantine/core/Avatar",oh.Group=od;let[ov,og]=tD({size:"sm"});function oy(e){let{classNames:t,styles:o,props:r,stylesCtx:n}=e,a=I();return{resolvedClassNames:W({theme:a,classNames:t,props:r,stylesCtx:n||void 0}),resolvedStyles:V({theme:a,styles:o,props:r,stylesCtx:n||void 0})}}let ob=(0,i.forwardRef)((e,t)=>{let{size:o="var(--cb-icon-size, 70%)",style:n,...a}=e;return(0,r.jsx)("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...n,width:o,height:o},ref:t,...a,children:(0,r.jsx)("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})});ob.displayName="@mantine/core/CloseIcon";var ow={root:"m_86a44da5","root--subtle":"m_220c80f2"};let ox={variant:"subtle"},ok=(e,t)=>{let{size:o,radius:r,iconSize:n}=t;return{root:{"--cb-size":p(o,"cb-size"),"--cb-radius":void 0===r?void 0:f(r),"--cb-icon-size":d(n)}}},oC=eg((e,t)=>{let o=z("CloseButton",ox,e),{iconSize:n,children:a,vars:i,radius:l,className:s,classNames:c,style:d,styles:u,unstyled:p,"data-disabled":m,disabled:f,variant:h,icon:v,mod:g,__staticSelector:y,...b}=o,w=Y({name:y||"CloseButton",props:o,className:s,style:d,classes:ow,classNames:c,styles:u,unstyled:p,vars:i,varsResolver:ok});return(0,r.jsxs)(eF,{ref:t,...b,unstyled:p,variant:h,disabled:f,mod:[{disabled:f||m},g],...w("root",{variant:h,active:!f&&!m}),children:[v||(0,r.jsx)(ob,{}),a]})});oC.classes=ow,oC.displayName="@mantine/core/CloseButton";let oj={},oS=ep((e,t)=>{let o=z("InputClearButton",oj,e),{size:n,variant:a,vars:i,classNames:l,styles:s,...c}=o,d=og(),{resolvedClassNames:u,resolvedStyles:p}=oy({classNames:l,styles:s,props:o});return(0,r.jsx)(oC,{variant:a||"transparent",ref:t,size:n||(null==d?void 0:d.size)||"sm",classNames:u,styles:p,__staticSelector:"InputClearButton",...c})});oS.displayName="@mantine/core/InputClearButton";let[oN,oP]=tD({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var oT={wrapper:"m_6c018570",input:"m_8fb7ebe7",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",description:"m_fe47ce59"};let oE={},oR=(e,t)=>{let{size:o}=t;return{description:{"--input-description-size":void 0===o?void 0:"calc(".concat(h(o)," - ").concat(d(2),")")}}},oO=ep((e,t)=>{let o=z("InputDescription",oE,e),{classNames:n,className:a,style:i,styles:l,unstyled:s,vars:c,size:d,__staticSelector:u,__inheritStyles:p=!0,variant:m,...f}=z("InputDescription",oE,o),h=oP(),v=Y({name:["InputWrapper",u],props:o,classes:oT,className:a,style:i,classNames:n,styles:l,unstyled:s,rootSelector:"description",vars:c,varsResolver:oR}),g=p&&(null==h?void 0:h.getStyles)||v;return(0,r.jsx)(ed,{component:"p",ref:t,variant:m,size:d,...g("description",(null==h?void 0:h.getStyles)?{className:a,style:i}:void 0),...f})});oO.classes=oT,oO.displayName="@mantine/core/InputDescription";let o_={},oM=(e,t)=>{let{size:o}=t;return{error:{"--input-error-size":void 0===o?void 0:"calc(".concat(h(o)," - ").concat(d(2),")")}}},oI=ep((e,t)=>{let o=z("InputError",o_,e),{classNames:n,className:a,style:i,styles:l,unstyled:s,vars:c,size:d,__staticSelector:u,__inheritStyles:p=!0,variant:m,...f}=o,h=Y({name:["InputWrapper",u],props:o,classes:oT,className:a,style:i,classNames:n,styles:l,unstyled:s,rootSelector:"error",vars:c,varsResolver:oM}),v=oP(),g=p&&(null==v?void 0:v.getStyles)||h;return(0,r.jsx)(ed,{component:"p",ref:t,variant:m,size:d,...g("error",(null==v?void 0:v.getStyles)?{className:a,style:i}:void 0),...f})});oI.classes=oT,oI.displayName="@mantine/core/InputError";let oD={labelElement:"label"},oz=(e,t)=>
1{let{size:o}=t;return{label:{"--input-label-size":h(o),"--input-asterisk-color":void 0}}},oA=ep((e,t)=>{let o=z("InputLabel",oD,e),{classNames:n,className:a,style:i,styles:l,unstyled:s,vars:c,labelElement:d,size:u,required:p,htmlFor:m,onMouseDown:f,children:h,__staticSelector:v,variant:g,mod:y,...b}=z("InputLabel",oD,o),w=Y({name:["InputWrapper",v],props:o,classes:oT,className:a,style:i,classNames:n,styles:l,unstyled:s,rootSelector:"label",vars:c,varsResolver:oz}),x=oP(),k=(null==x?void 0:x.getStyles)||w;return(0,r.jsxs)(ed,{...k("label",(null==x?void 0:x.getStyles)?{className:a,style:i}:void 0),component:d,variant:g,size:u,ref:t,htmlFor:"label"===d?m:void 0,mod:[{required:p},y],onMouseDown:e=>{null==f||f(e),!e.defaultPrevented&&e.detail>1&&e.preventDefault()},...b,children:[h,p&&(0,r.jsx)("span",{...k("required"),"aria-hidden":!0,children:" *"})]})});oA.classes=oT,oA.displayName="@mantine/core/InputLabel";let oF={},oL=ep((e,t)=>{let o=z("InputPlaceholder",oF,e),{classNames:n,className:a,style:i,styles:l,unstyled:s,vars:c,__staticSelector:d,variant:u,error:p,mod:m,...f}=z("InputPlaceholder",oF,o),h=Y({name:["InputPlaceholder",d],props:o,classes:oT,className:a,style:i,classNames:n,styles:l,unstyled:s,rootSelector:"placeholder"});return(0,r.jsx)(ed,{...h("placeholder"),mod:[{error:!!p},m],component:"span",variant:u,ref:t,...f})});oL.classes=oT,oL.displayName="@mantine/core/InputPlaceholder";let oB={labelElement:"label",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},o$=(e,t)=>{let{size:o}=t;return{label:{"--input-label-size":h(o),"--input-asterisk-color":void 0},error:{"--input-error-size":void 0===o?void 0:"calc(".concat(h(o)," - ").concat(d(2),")")},description:{"--input-description-size":void 0===o?void 0:"calc(".concat(h(o)," - ").concat(d(2),")")}}},oH=ep((e,t)=>{let o=z("InputWrapper",oB,e),{classNames:n,className:a,style:l,styles:s,unstyled:c,vars:d,size:u,variant:p,__staticSelector:m,inputContainer:f,inputWrapperOrder:h,label:v,error:g,description:y,labelProps:b,descriptionProps:w,errorProps:x,labelElement:k,children:C,withAsterisk:j,id:S,required:N,__stylesApiProps:P,mod:T,...E}=o,R=Y({name:["InputWrapper",m],props:P||o,classes:oT,className:a,style:l,classNames:n,styles:s,unstyled:c,vars:d,varsResolver:o$}),O={size:u,variant:p,__staticSelector:m},_=tP(S),M=(null==x?void 0:x.id)||"".concat(_,"-error"),I=(null==w?void 0:w.id)||"".concat(_,"-description"),D=!!g&&"boolean"!=typeof g,A=!!y,F="".concat(D?M:""," ").concat(A?I:""),L=F.trim().length>0?F.trim():void 0,B=(null==b?void 0:b.id)||"".concat(_,"-label"),$=v&&(0,r.jsx)(oA,{labelElement:k,id:B,htmlFor:_,required:"boolean"==typeof j?j:N,...O,...b,children:v},"label"),H=A&&(0,r.jsx)(oO,{...w,...O,size:(null==w?void 0:w.size)||O.size,id:(null==w?void 0:w.id)||I,children:y},"description"),q=(0,r.jsx)(i.Fragment,{children:f(C)},"input"),W=D&&(0,i.createElement)(oI,{...x,...O,size:(null==x?void 0:x.size)||O.size,key:"error",id:(null==x?void 0:x.id)||M},g),G=h.map(e=>{switch(e){case"label":return $;case"input":return q;case"description":return H;case"error":return W;default:return null}});return(0,r.jsx)(oN,{value:{getStyles:R,describedBy:L,inputId:_,labelId:B,...function(e,t){let{hasDescription:o,hasError:r}=t,n=e.findIndex(e=>"input"===e),a=e.slice(0,n),i=e.slice(n+1),l=o&&a.includes("description")||r&&a.includes("error");return{offsetBottom:o&&i.includes("description")||r&&i.includes("error"),offsetTop:l}}(h,{hasDescription:A,hasError:D})},children:(0,r.jsx)(ed,{ref:t,variant:p,size:u,mod:[{error:!!g},T],...R("root"),...E,children:G})})});oH.classes=oT,oH.displayName="@mantine/core/InputWrapper";let oq={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0},oW=(e,t,o)=>({wrapper:{"--input-margin-top":o.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":o.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":p(t.size,"input-height"),"--input-fz":h(t.size),"--input-radius":void 0===t.radius?void 0:f(t.radius),"--input-left-section-width":void 0!==t.leftSectionWidth?d(t.leftSectionWidth):void 0,"--input-right-section-width":void 0!==t.rightSectionWidth?d(t.rightSectionWidth):void 0,"--input-padding-y":t.multiline?p(t.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}}),oG=eg((e,t)=>
1{let o=z("Input",oq,e),{classNames:n,className:a,style:i,styles:l,unstyled:s,required:c,__staticSelector:d,__stylesApiProps:u,size:p,wrapperProps:m,error:f,disabled:h,leftSection:v,leftSectionProps:g,leftSectionWidth:y,rightSection:b,rightSectionProps:w,rightSectionWidth:x,rightSectionPointerEvents:k,leftSectionPointerEvents:C,variant:j,vars:S,pointer:N,multiline:P,radius:T,id:E,withAria:R,withErrorStyles:O,mod:_,inputSize:M,__clearSection:I,__clearable:D,__defaultRightSection:A,...F}=o,{styleProps:L,rest:B}=ee(F),$=oP(),H=Y({name:["Input",d],props:u||o,classes:oT,className:a,style:i,classNames:n,styles:l,unstyled:s,stylesCtx:{offsetBottom:null==$?void 0:$.offsetBottom,offsetTop:null==$?void 0:$.offsetTop},rootSelector:"wrapper",vars:S,varsResolver:oW}),q=R?{required:c,disabled:h,"aria-invalid":!!f,"aria-describedby":null==$?void 0:$.describedBy,id:(null==$?void 0:$.inputId)||E}:{},W=b||D&&I||A;return(0,r.jsx)(ov,{value:{size:p||"sm"},children:(0,r.jsxs)(ed,{...H("wrapper"),...L,...m,mod:[{error:!!f&&O,pointer:N,disabled:h,multiline:P,"data-with-right-section":!!W,"data-with-left-section":!!v},_],variant:j,size:p,children:[v&&(0,r.jsx)("div",{...g,"data-position":"left",...H("section",{className:null==g?void 0:g.className,style:null==g?void 0:g.style}),children:v}),(0,r.jsx)(ed,{component:"input",...B,...q,ref:t,required:c,mod:{disabled:h,error:!!f&&O},variant:j,__size:M,...H("input")}),W&&(0,r.jsx)("div",{...w,"data-position":"right",...H("section",{className:null==w?void 0:w.className,style:null==w?void 0:w.style}),children:W})]})})});oG.classes=oT,oG.Wrapper=oH,oG.Label=oA,oG.Error=oI,oG.Description=oO,oG.Placeholder=oL,oG.ClearButton=oS,oG.displayName="@mantine/core/Input";let oV={__staticSelector:"InputBase",withAria:!0},oU=eg((e,t)=>{let{inputProps:o,wrapperProps:n,...a}=function(e,t,o){let r=z(e,t,o),{label:n,description:a,error:i,required:l,classNames:s,styles:c,className:d,unstyled:u,__staticSelector:p,__stylesApiProps:m,errorProps:f,labelProps:h,descriptionProps:v,wrapperProps:g,id:y,size:b,style:w,inputContainer:x,inputWrapperOrder:k,withAsterisk:C,variant:j,vars:S,mod:N,...P}=r,{styleProps:T,rest:E}=ee(P),R={label:n,description:a,error:i,required:l,classNames:s,className:d,__staticSelector:p,__stylesApiProps:m||r,errorProps:f,labelProps:h,descriptionProps:v,unstyled:u,styles:c,size:b,style:w,inputContainer:x,inputWrapperOrder:k,withAsterisk:C,variant:j,id:y,mod:N,...g};return{...E,classNames:s,styles:c,unstyled:u,wrapperProps:{...R,...T},inputProps:{required:l,classNames:s,styles:c,unstyled:u,size:b,__staticSelector:p,__stylesApiProps:m||r,error:i,variant:j,id:y}}}("InputBase",oV,e);return(0,r.jsx)(oG.Wrapper,{...n,children:(0,r.jsx)(oG,{...o,...a,ref:t})})});oU.classes={...oG.classes,...oG.Wrapper.classes},oU.displayName="@mantine/core/InputBase";let oY={},oX=ep((e,t)=>{let o=z("TextInput",oY,e);return(0,r.jsx)(oU,{component:"input",ref:t,...o,__staticSelector:"TextInput"})});function oK(e,t){let o=e;for(;(o=o.parentElement)&&!o.matches(t););return o}oX.classes=oU.classes,oX.displayName="@mantine/core/TextInput";let oZ=["mousedown","touchstart"];var oQ={root:"m_9814e45f"};let oJ={zIndex:te.modal},o0=(e,t)=>{let{gradient:o,color:r,backgroundOpacity:n,blur:a,radius:i,zIndex:l}=t;return{root:{"--overlay-bg":o||(void 0!==r||void 0!==n)&&N(r||"#000",null!=n?n:.6)||void 0,"--overlay-filter":a?"blur(".concat(d(a),")"):void 0,"--overlay-radius":void 0===i?void 0:f(i),"--overlay-z-index":null==l?void 0:l.toString()}}},o1=eg((e,t)=>{let o=z("Overlay",oJ,e),{classNames:n,className:a,style:i,styles:l,unstyled:s,vars:c,fixed:d,center:u,children:p,radius:m,zIndex:f,gradient:h,blur:v,color:g,backgroundOpacity:y,mod:b,...w}=o,x=Y({name:"Overlay",props:o,classes:oQ,className:a,style:i,classNames:n,styles:l,unstyled:s,vars:c,varsResolver:o0});return(0,r.jsx)(ed,{ref:t,...x("root"),mod:[{center:u,fixed:d},b],...w,children:p})});o1.classes=oQ,o1.displayName="@mantine/core/Overlay";let[o2,o9]=tQ("Popover component was not found in the tree"),o4=()=>{},o7=/input|select|textarea|button|object/,o8="a, input, select, textarea, button, object, [tabindex]";function o5(e){let t=e.getAttribute("tabindex");return null===t&&(t=void 0),parseInt(t,10)}function o3(e){let t=e.nodeName.toLowerCase(),o=!Number.isNaN(o5(e));return(o7.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||o)&&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("none"===t.style.display)return!1;t=t.parentNode}return!0}(e)}function o6(e){let t=o5(e);return(Number.isNaN(t)||t>=0)&&o3(e)}function re(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,i.useRef)(null),o=e=>{let t=e.querySelector("[data-autofocus]");
1if(!t){let o=Array.from(e.querySelectorAll(o8));!(t=o.find(o6)||o.find(o3)||null)&&o3(e)&&(t=e)}t&&t.focus({preventScroll:!0})},r=(0,i.useCallback)(r=>{e&&null!==r&&t.current!==r&&(r?(setTimeout(()=>{r.getRootNode()&&o(r)}),t.current=r):t.current=null)},[e]);return(0,i.useEffect)(()=>{if(!e)return;t.current&&setTimeout(()=>o(t.current));let r=e=>{"Tab"===e.key&&t.current&&function(e,t){let o=Array.from(e.querySelectorAll(o8)).filter(o6);if(!o.length)return t.preventDefault();let r=o[t.shiftKey?0:o.length-1],n=e.getRootNode(),a=r===n.activeElement||e===n.activeElement,i=n.activeElement;if("INPUT"===i.tagName&&"radio"===i.getAttribute("type")&&(a=o.filter(e=>"radio"===e.getAttribute("type")&&e.getAttribute("name")===i.getAttribute("name")).includes(r)),!a)return;t.preventDefault();let l=o[t.shiftKey?o.length-1:0];l&&l.focus()}(t.current,e)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[e]),r}var rt={root:"m_515a97f8"};let ro={},rr=ep((e,t)=>{let o=z("VisuallyHidden",ro,e),{classNames:n,className:a,style:i,styles:l,unstyled:s,vars:c,...d}=o,u=Y({name:"VisuallyHidden",classes:rt,props:o,className:a,style:i,classNames:n,styles:l,unstyled:s});return(0,r.jsx)(ed,{component:"span",ref:t,...u("root"),...d})});function rn(e){let{children:t,active:o=!0,refProp:r="ref",innerRef:n}=e,a=e3(re(o),n);return e6(t)?(0,i.cloneElement)(t,{[r]:a}):t}function ra(e){return(0,r.jsx)(rr,{tabIndex:-1,"data-autofocus":!0,...e})}rr.classes=rt,rr.displayName="@mantine/core/VisuallyHidden",rn.displayName="@mantine/core/FocusTrap",ra.displayName="@mantine/core/FocusTrapInitialFocus",rn.InitialFocus=ra;var ri={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};let rl={},rs=ep((e,t)=>{var o,n,a,l,s;let c=z("PopoverDropdown",rl,e),{className:u,style:p,vars:m,children:f,onKeyDownCapture:h,variant:v,classNames:g,styles:y,...b}=c,w=o9(),x=function(e){let{opened:t,shouldReturnFocus:o=!0}=e,r=(0,i.useRef)(null),n=()=>{if(r.current&&"focus"in r.current&&"function"==typeof r.current.focus){var e;null==(e=r.current)||e.focus({preventScroll:!0})}};return eI(()=>{let e=-1,a=t=>{"Tab"===t.key&&window.clearTimeout(e)};return document.addEventListener("keydown",a),t?r.current=document.activeElement:o&&(e=window.setTimeout(n,10)),()=>{window.clearTimeout(e),document.removeEventListener("keydown",a)}},[t,o]),n}({opened:w.opened,shouldReturnFocus:w.returnFocus}),k=w.withRoles?{"aria-labelledby":w.getTargetId(),id:w.getDropdownId(),role:"dialog",tabIndex:-1}:{},C=e3(t,w.floating);return w.disabled?null:(0,r.jsx)(tm,{...w.portalProps,withinPortal:w.withinPortal,children:(0,r.jsx)(eD,{mounted:w.opened,...w.transitionProps,transition:(null==(o=w.transitionProps)?void 0:o.transition)||"fade",duration:null!=(s=null==(n=w.transitionProps)?void 0:n.duration)?s:150,keepMounted:w.keepMounted,exitDuration:"number"==typeof(null==(a=w.transitionProps)?void 0:a.exitDuration)?w.transitionProps.exitDuration:null==(l=w.transitionProps)?void 0:l.duration,children:e=>{var t,o;return(0,r.jsx)(rn,{active:w.trapFocus&&w.opened,innerRef:C,children:(0,r.jsxs)(ed,{...k,...b,variant:v,onKeyDownCapture:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{active:!0};return"function"==typeof e&&t.active?o=>{if("Escape"===o.key){var r;e(o),null==(r=t.onTrigger)||r.call(t)}}:t.onKeyDown||o4}(()=>{var e,t;null==(e=w.onClose)||e.call(w),null==(t=w.onDismiss)||t.call(w)},{active:w.closeOnEscape,onTrigger:x,onKeyDown:h}),"data-position":w.placement,"data-fixed":"fixed"===w.floatingStrategy||void 0,...w.getStyles("dropdown",{className:u,props:c,classNames:g,styles:y,style:[{...e,zIndex:w.zIndex,top:null!=(t=w.y)?t:0,left:null!=(o=w.x)?o:0,width:"target"===w.width?void 0:d(w.width)},w.resolvedStyles.dropdown,null==y?void 0:y.dropdown,p]}),children:[f,(0,r.jsx)(ts,{ref:w.arrowRef,arrowX:w.arrowX,arrowY:w.arrowY,visible:w.withArrow,position:w.placement,arrowSize:w.arrowSize,arrowRadius:w.arrowRadius,arrowOffset:w.arrowOffset,arrowPosition:w.arrowPosition,...w.getStyles("arrow",{props:c,classNames:g,styles:y})})]})})}})})});rs.classes=ri,rs.displayName="@mantine/core/PopoverDropdown";let rc={refProp:"ref",popupType:"dialog"},rd=ep((e,t)=>{let{children:o,refProp:r,popupType:n,...a}=z("PopoverTarget",rc,e);if(!e6(o))throw Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, str
1ings, numbers and other primitive values are not supported");let l=o9(),s=e3(l.reference,tt(o),t),c=l.withRoles?{"aria-haspopup":n,"aria-expanded":l.opened,"aria-controls":l.getDropdownId(),id:l.getTargetId()}:{};return(0,i.cloneElement)(o,{...a,...c,...l.targetProps,className:(0,$.A)(l.targetProps.className,a.className,o.props.className),[r]:s,...!l.controlled?{onClick:l.onToggle}:null})});rd.displayName="@mantine/core/PopoverTarget";let ru={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,withOverlay:!1,clickOutsideEvents:["mousedown","touchstart"],zIndex:te.popover,__staticSelector:"Popover",width:"max-content"},rp=(e,t)=>{let{radius:o,shadow:r}=t;return{dropdown:{"--popover-radius":void 0===o?void 0:f(o),"--popover-shadow":v(r)}}};function rm(e){var t,o,n,a,l,s;let c=z("Popover",ru,e),{children:d,position:u,offset:p,onPositionChange:m,positionDependencies:f,opened:h,transitionProps:v,onExitTransitionEnd:g,onEnterTransitionEnd:y,width:b,middlewares:w,withArrow:x,arrowSize:k,arrowOffset:C,arrowRadius:j,arrowPosition:S,unstyled:N,classNames:P,styles:T,closeOnClickOutside:E,withinPortal:R,portalProps:O,closeOnEscape:_,clickOutsideEvents:M,trapFocus:I,onClose:D,onDismiss:A,onOpen:F,onChange:L,zIndex:B,radius:$,shadow:H,id:q,defaultOpened:W,__staticSelector:G,withRoles:V,disabled:U,returnFocus:X,variant:K,keepMounted:Z,vars:Q,floatingStrategy:J,withOverlay:ee,overlayProps:et,...eo}=c,er=Y({name:G,props:c,classes:ri,classNames:P,styles:T,unstyled:N,rootSelector:"dropdown",vars:Q,varsResolver:rp}),{resolvedStyles:en}=oy({classNames:P,styles:T,props:c}),ea=(0,i.useRef)(null),[ei,el]=(0,i.useState)(null),[es,ec]=(0,i.useState)(null),{dir:ed}=tr(),eu=tP(q),ep=function(e){let[t,o]=tM({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),r=(0,i.useRef)(t),n=(0,th.we)({strategy:e.strategy,placement:e.position,middleware:function(e,t){let o=function(e){if(void 0===e)return{shift:!0,flip:!0};let t={...e};return void 0===e.shift&&(t.shift=!0),void 0===e.flip&&(t.flip=!0),t}(e.middlewares),r=[(0,tv.cY)(e.offset)];return o.shift&&r.push((0,tv.BN)("boolean"==typeof o.shift?{limiter:(0,tv.ER)(),padding:5}:{limiter:(0,tv.ER)(),padding:5,...o.shift})),o.flip&&r.push("boolean"==typeof o.flip?(0,tv.UU)():(0,tv.UU)(o.flip)),o.inline&&r.push("boolean"==typeof o.inline?(0,tv.mG)():(0,tv.mG)(o.inline)),r.push((0,tv.UE)({element:e.arrowRef,padding:e.arrowOffset})),(o.size||"target"===e.width)&&r.push((0,tv.Ej)({..."boolean"==typeof o.size?{}:o.size,apply(r){var n,a;let{rects:i,availableWidth:l,availableHeight:s,...c}=r,d=null!=(a=null==(n=t().refs.floating.current)?void 0:n.style)?a:{};o.size&&("object"==typeof o.size&&o.size.apply?o.size.apply({rects:i,availableWidth:l,availableHeight:s,...c}):Object.assign(d,{maxWidth:"".concat(l,"px"),maxHeight:"".concat(s,"px")})),"target"===e.width&&Object.assign(d,{width:"".concat(i.reference.width,"px")})}})),r}(e,()=>n)});return tE({opened:t,position:e.position,positionDependencies:e.positionDependencies||[],floating:n}),eI(()=>{var t;null==(t=e.onPositionChange)||t.call(e,n.placement)},[n.placement]),eI(()=>{if(t!==r.current){var o,n;t?null==(n=e.onOpen)||n.call(e):null==(o=e.onClose)||o.call(e)}r.current=t},[t,e.onClose,e.onOpen]),{floating:n,controlled:"boolean"==typeof e.opened,opened:t,onClose:()=>{t&&!e.disabled&&o(!1)},onToggle:()=>!e.disabled&&o(!t)}}({middlewares:w,width:b,position:tn(ed,u),offset:"number"==typeof p?p+(x?k/2:0):p,arrowRef:ea,arrowOffset:C,onPositionChange:m,positionDependencies:f,opened:h,defaultOpened:W,onChange:L,onOpen:F,onClose:D,onDismiss:A,strategy:J,disabled:U});!function(e,t,o){let r=(0,i.useRef)(null);(0,i.useEffect)(()=>{let n=t=>{let{target:n}=null!=t?t:{};if(Array.isArray(o)){let r=(null==n?void 0:n.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(n)&&"HTML"!==n.tagName;o.every(e=>!!e&&!t.composedPath().includes(e))&&!r&&e()}else r.current&&!r.current.contains(n)&&e()};
1return(t||oZ).forEach(e=>document.addEventListener(e,n)),()=>{(t||oZ).forEach(e=>document.removeEventListener(e,n))}},[r,e,o])}(()=>{E&&(ep.onClose(),null==A||A())},M,[ei,es]);let em=(0,i.useCallback)(e=>{el(e),ep.floating.refs.setReference(e)},[ep.floating.refs.setReference]),ef=(0,i.useCallback)(e=>{ec(e),ep.floating.refs.setFloating(e)},[ep.floating.refs.setFloating]),eh=(0,i.useCallback)(()=>{var e;null==v||null==(e=v.onExited)||e.call(v),null==g||g()},[null==v?void 0:v.onExited,g]),ev=(0,i.useCallback)(()=>{var e;null==v||null==(e=v.onEntered)||e.call(v),null==y||y()},[null==v?void 0:v.onEntered,y]);return(0,r.jsxs)(o2,{value:{returnFocus:X,disabled:U,controlled:ep.controlled,reference:em,floating:ef,x:ep.floating.x,y:ep.floating.y,arrowX:null==(n=ep.floating)||null==(o=n.middlewareData)||null==(t=o.arrow)?void 0:t.x,arrowY:null==(s=ep.floating)||null==(l=s.middlewareData)||null==(a=l.arrow)?void 0:a.y,opened:ep.opened,arrowRef:ea,transitionProps:{...v,onExited:eh,onEntered:ev},width:b,withArrow:x,arrowSize:k,arrowOffset:C,arrowRadius:j,arrowPosition:S,placement:ep.floating.placement,trapFocus:I,withinPortal:R,portalProps:O,zIndex:B,radius:$,shadow:H,closeOnEscape:_,onDismiss:A,onClose:ep.onClose,onToggle:ep.onToggle,getTargetId:()=>"".concat(eu,"-target"),getDropdownId:()=>"".concat(eu,"-dropdown"),withRoles:V,targetProps:eo,__staticSelector:G,classNames:P,styles:T,unstyled:N,variant:K,keepMounted:Z,getStyles:er,resolvedStyles:en,floatingStrategy:J},children:[d,ee&&(0,r.jsx)(eD,{transition:"fade",mounted:ep.opened,duration:(null==v?void 0:v.duration)||250,exitDuration:(null==v?void 0:v.exitDuration)||250,children:e=>(0,r.jsx)(tm,{withinPortal:R,children:(0,r.jsx)(o1,{...et,...er("overlay",{className:null==et?void 0:et.className,style:[e,null==et?void 0:et.style]})})})})]})}rm.Target=rd,rm.Dropdown=rs,rm.displayName="@mantine/core/Popover",rm.extend=e=>e;let[rf,rh]=tQ("Menu component was not found in the tree");var rv={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",itemLabel:"m_5476e0d3",itemSection:"m_8b75e504"};let rg={},ry=ep((e,t)=>{let{classNames:o,className:n,style:a,styles:i,vars:l,...s}=z("MenuDivider",rg,e),c=rh();return(0,r.jsx)(ed,{ref:t,...c.getStyles("divider",{className:n,style:a,styles:i,classNames:o}),...s})});function rb(e,t){return o=>{null==e||e(o),null==t||t(o)}}ry.classes=rv,ry.displayName="@mantine/core/MenuDivider";let rw={},rx=ep((e,t)=>{let{classNames:o,className:n,style:a,styles:l,vars:s,onMouseEnter:c,onMouseLeave:d,onKeyDown:u,children:p,...m}=z("MenuDropdown",rw,e),f=(0,i.useRef)(null),h=rh(),v=rb(u,e=>{if("ArrowUp"===e.key||"ArrowDown"===e.key){var t,o;e.preventDefault(),null==(o=f.current)||null==(t=o.querySelectorAll("[data-menu-item]:not(:disabled)")[0])||t.focus()}}),g=rb(c,()=>("hover"===h.trigger||"click-hover"===h.trigger)&&h.openDropdown()),y=rb(d,()=>("hover"===h.trigger||"click-hover"===h.trigger)&&h.closeDropdown());return(0,r.jsxs)(rm.Dropdown,{...m,onMouseEnter:g,onMouseLeave:y,role:"menu","aria-orientation":"vertical",ref:e3(t,f),...h.getStyles("dropdown",{className:n,style:a,styles:l,classNames:o,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:v,children:[h.withInitialFocusPlaceholder&&(0,r.jsx)("div",{tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),p]})});function rk(e){let{parentSelector:t,siblingSelector:o,onKeyDown:r,loop:n=!0,activateOnFocus:a=!1,dir:i="rtl",orientation:l}=e;return e=>{var s;null==r||r(e);let c=Array.from((null==(s=oK(e.currentTarget,t))?void 0:s.querySelectorAll(o))||[]).filter(o=>{var r;return r=e.currentTarget,oK(r,t)===oK(o,t)}),d=c.findIndex(t=>e.currentTarget===t),u=function(e,t,o){for(let o=e+1;o<t.length;o+=1)if(!t[o].disabled)return o;if(o){for(let e=0;e<t.length;e+=1)if(!t[e].disabled)return e}return e}(d,c,n),p=function(e,t,o){for(let o=e-1;o>=0;o-=1)if(!t[o].disabled)return o;if(o){for(let e=t.length-1;e>-1;e-=1)if(!t[e].disabled)return e}return e}(d,c,n),m="rtl"===i?p:u,f="rtl"===i?u:p;switch(e.key){case"ArrowRight":"horizontal"===l&&(e.stopPropagation(),e.preventDefault(),c[m].focus(),a&&c[m].click());break;case"ArrowLeft":"horizontal"===l&&(e.stopPropagation(),e.preventDefault(),c[f].focus(),a&&c[f].click());break;case"ArrowUp":"vertical"===l&&(e.stopPropagation(),e.preventDefault(),c[p].focus(),a&&c[p].click());break;case"ArrowDown":"vertical"===l&&(e.stopPropagation(),e.preventDefault(),c[u].focus(),a&&c[u].click());break;case"Home":e.stopPropagation(),e.preventDefault(),c[0].disabled||c[0].focus();break;case"End":{e.stopPropagation(),e.preventDefault();let t=c.length-1;c[t].disabled||c[t].focus()}}}}rx.classes=rv,rx.displayName="@mantine/core/MenuDropdown";let rC={},rj=eg((e,t)=>
1{let{classNames:o,className:n,style:a,styles:l,vars:s,color:c,closeMenuOnClick:d,leftSection:u,rightSection:p,children:m,disabled:f,"data-disabled":h,...v}=z("MenuItem",rC,e),g=rh(),y=I(),{dir:b}=tr(),w=(0,i.useRef)(null),x=g.getItemIndex(w.current),k=rb(v.onMouseLeave,()=>g.setHovered(-1)),j=rb(v.onMouseEnter,()=>g.setHovered(g.getItemIndex(w.current))),S=rb(v.onClick,()=>{!h&&("boolean"==typeof d?d&&g.closeDropdownImmediately():g.closeOnItemClick&&g.closeDropdownImmediately())}),N=rb(v.onFocus,()=>g.setHovered(g.getItemIndex(w.current))),P=c?y.variantColorResolver({color:c,theme:y,variant:"light"}):void 0,T=c?C({color:c,theme:y}):null;return(0,r.jsxs)(eF,{...v,unstyled:g.unstyled,tabIndex:g.menuItemTabIndex,onFocus:N,...g.getStyles("item",{className:n,style:a,styles:l,classNames:o}),ref:e3(w,t),role:"menuitem",disabled:f,"data-menu-item":!0,"data-disabled":f||h||void 0,"data-hovered":g.hovered===x||void 0,"data-mantine-stop-propagation":!0,onMouseEnter:j,onMouseLeave:k,onClick:S,onKeyDown:rk({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:g.loop,dir:b,orientation:"vertical",onKeyDown:v.onKeyDown}),__vars:{"--menu-item-color":(null==T?void 0:T.isThemeColor)&&(null==T?void 0:T.shade)===void 0?"var(--mantine-color-".concat(T.color,"-6)"):null==P?void 0:P.color,"--menu-item-hover":null==P?void 0:P.hover},children:[u&&(0,r.jsx)("div",{...g.getStyles("itemSection",{styles:l,classNames:o}),"data-position":"left",children:u}),m&&(0,r.jsx)("div",{...g.getStyles("itemLabel",{styles:l,classNames:o}),children:m}),p&&(0,r.jsx)("div",{...g.getStyles("itemSection",{styles:l,classNames:o}),"data-position":"right",children:p})]})});rj.classes=rv,rj.displayName="@mantine/core/MenuItem";let rS={},rN=ep((e,t)=>{let{classNames:o,className:n,style:a,styles:i,vars:l,...s}=z("MenuLabel",rS,e),c=rh();return(0,r.jsx)(ed,{ref:t,...c.getStyles("label",{className:n,style:a,styles:i,classNames:o}),...s})});rN.classes=rv,rN.displayName="@mantine/core/MenuLabel";let rP={refProp:"ref"},rT=(0,i.forwardRef)((e,t)=>{let{children:o,refProp:n,...a}=z("MenuTarget",rP,e);if(!e6(o))throw Error("Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");let l=rh(),s=o.props,c=rb(s.onClick,()=>{"click"===l.trigger?l.toggleDropdown():"click-hover"===l.trigger&&(l.setOpenedViaClick(!0),l.opened||l.openDropdown())}),d=rb(s.onMouseEnter,()=>("hover"===l.trigger||"click-hover"===l.trigger)&&l.openDropdown()),u=rb(s.onMouseLeave,()=>{"hover"===l.trigger?l.closeDropdown():"click-hover"!==l.trigger||l.openedViaClick||l.closeDropdown()});return(0,r.jsx)(rm.Target,{refProp:n,popupType:"menu",ref:t,...a,children:(0,i.cloneElement)(o,{onClick:c,onMouseEnter:d,onMouseLeave:u,"data-expanded":!!l.opened||void 0})})});rT.displayName="@mantine/core/MenuTarget";let rE={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:["mousedown","touchstart","keydown"],loop:!0,trigger:"click",openDelay:0,closeDelay:100,menuItemTabIndex:-1};function rR(e){let t=z("Menu",rE,e),{children:o,onOpen:n,onClose:a,opened:l,defaultOpened:s,trapFocus:c,onChange:d,closeOnItemClick:u,loop:p,closeOnEscape:m,trigger:f,openDelay:h,closeDelay:v,classNames:g,styles:y,unstyled:b,variant:w,vars:x,menuItemTabIndex:k,keepMounted:C,withInitialFocusPlaceholder:j,...S}=t,N=Y({name:"Menu",classes:rv,props:t,classNames:g,styles:y,unstyled:b}),[P,{setHovered:T,resetHovered:E}]=function(){let[e,t]=(0,i.useState)(-1);return[e,{setHovered:t,resetHovered:()=>t(-1)}]}(),[R,O]=tM({value:l,defaultValue:s,finalValue:!1,onChange:d}),[_,M]=(0,i.useState)(!1),I=()=>{O(!1),M(!1),R&&(null==a||a())},D=()=>{O(!0),R||null==n||n()},A=()=>{R?I():D()},{openDropdown:F,closeDropdown:L}=function(e){let{open:t,close:o,openDelay:r,closeDelay:n}=e,a=(0,i.useRef)(-1),l=(0,i.useRef)(-1),s=()=>{window.clearTimeout(a.current),window.clearTimeout(l.current)};return(0,i.useEffect)(()=>s,[]),{openDropdown:()=>{s(),0===r||void 0===r?t():a.current=window.setTimeout(t,r)},closeDropdown:()=>{s(),0===n||void 0===n?o():l.current=window.setTimeout(o,n)}}}({open:D,close:I,closeDelay:v,openDelay:h}),{resolvedClassNames:B,resolvedStyles:$}=oy({classNames:g,styles:y,props:t});return eI(()=>{E()},[R]),(0,r.jsx)(rf,{value:{getStyles:N,opened:R,toggleDropdown:A,getItemIndex:e=>{var t;return e?Array.from((null==(t=oK(e,"[data-menu-dropdown]"))?void 0:t.querySelectorAll("[data-menu-item]"))||[]).findIndex(t=>t===e):null},hovered:P,setHovered:T,openedViaClick:_,setOpenedViaClick:M,closeOnItemClick:u,closeDropdown:"click"===f?I:L,openDropdown:"click"===f?D:F,closeDropdownImmediately:I,loop:p,trigger:f,unstyled:b,menuItemTabIndex:k,withInitialFocusPlaceholder:j},children:(0,r.jsx)(rm,{...S,opened:R,onChange:A,defaultOpened:s,trapFocus:!C&&c,closeOnEscape:m,__staticSelector:"Menu",classNames:B,styles:$,unstyled:b,variant:w,keepMounted:C,children:o})})}function rO(e,t){return o=>{if("string"!=typeof o||0===o.trim().length)throw Error(t);return"".concat(e,"-").concat(o)}}
1function r_(e){let{color:t,theme:o,autoContrast:r}=e;return("boolean"==typeof r?r:o.autoContrast)&&C({color:t||o.primaryColor,theme:o}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function rM(e,t){return r_({color:e.colors[e.primaryColor][w(e,t)],theme:e,autoContrast:null})}rR.extend=e=>e,rR.withProps=function(e){return t=>{let o=(0,i.forwardRef)((o,n)=>(0,r.jsx)(e,{...t,...o,ref:n}));return o.extend=e.extend,o.displayName="WithProps(".concat(e.displayName,")"),o}}(rR),rR.classes=rv,rR.displayName="@mantine/core/Menu",rR.Item=rj,rR.Label=rN,rR.Dropdown=rx,rR.Target=rT,rR.Divider=ry;let[rI,rD]=tQ("Tabs component was not found in the tree");var rz={root:"m_89d60db1","list--default":"m_576c9d4",list:"m_89d33d6d",panel:"m_b0c91715",tab:"m_4ec4dce6",tabSection:"m_fc420b1f","tab--default":"m_539e827b","list--outline":"m_6772fbd5","tab--outline":"m_b59ab47c","tab--pills":"m_c3381914"};let rA={},rF=ep((e,t)=>{let o=z("TabsList",rA,e),{children:n,className:a,grow:i,justify:l,classNames:s,styles:c,style:d,mod:u,...p}=o,m=rD();return(0,r.jsx)(ed,{...p,...m.getStyles("list",{className:a,style:d,classNames:s,styles:c,props:o,variant:m.variant}),ref:t,role:"tablist",variant:m.variant,mod:[{grow:i,orientation:m.orientation,placement:"vertical"===m.orientation&&m.placement,inverted:m.inverted},u],"aria-orientation":m.orientation,__vars:{"--tabs-justify":l},children:n})});rF.classes=rz,rF.displayName="@mantine/core/TabsList";let rL={},rB=ep((e,t)=>{let o=z("TabsPanel",rL,e),{children:n,className:a,value:i,classNames:l,styles:s,style:c,mod:d,keepMounted:u,...p}=o,m=rD(),f=m.value===i,h=m.keepMounted||u||f?n:null;return(0,r.jsx)(ed,{...p,...m.getStyles("panel",{className:a,classNames:l,styles:s,style:[c,f?void 0:{display:"none"}],props:o}),ref:t,mod:[{orientation:m.orientation},d],role:"tabpanel",id:m.getPanelId(i),"aria-labelledby":m.getTabId(i),children:h})});rB.classes=rz,rB.displayName="@mantine/core/TabsPanel";let r$={},rH=ep((e,t)=>{let o=z("TabsTab",r$,e),{className:n,children:a,rightSection:i,leftSection:l,value:s,onClick:c,onKeyDown:d,disabled:u,color:p,style:m,classNames:f,styles:h,vars:v,mod:g,tabIndex:y,...b}=o,w=I(),{dir:x}=tr(),k=rD(),C=s===k.value,S={classNames:f,styles:h,props:o};return(0,r.jsxs)(eF,{...b,...k.getStyles("tab",{className:n,style:m,variant:k.variant,...S}),disabled:u,unstyled:k.unstyled,variant:k.variant,mod:[{active:C,disabled:u,orientation:k.orientation,inverted:k.inverted,placement:"vertical"===k.orientation&&k.placement},g],ref:t,role:"tab",id:k.getTabId(s),"aria-selected":C,tabIndex:void 0!==y?y:C||null===k.value?0:-1,"aria-controls":k.getPanelId(s),onClick:e=>{k.onChange(k.allowTabDeactivation&&s===k.value?null:s),null==c||c(e)},__vars:{"--tabs-color":p?j(p,w):void 0},onKeyDown:rk({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:k.activateTabWithKeyboard,loop:k.loop,orientation:k.orientation||"horizontal",dir:x,onKeyDown:d}),children:[l&&(0,r.jsx)("span",{...k.getStyles("tabSection",S),"data-position":"left",children:l}),a&&(0,r.jsx)("span",{...k.getStyles("tabLabel",S),children:a}),i&&(0,r.jsx)("span",{...k.getStyles("tabSection",S),"data-position":"right",children:i})]})});rH.classes=rz,rH.displayName="@mantine/core/TabsTab";let rq="Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value",rW={keepMounted:!0,orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,allowTabDeactivation:!1,unstyled:!1,inverted:!1,variant:"default",placement:"left"},rG=(e,t)=>{let{radius:o,color:r,autoContrast:n}=t;return{root:{"--tabs-radius":f(o),"--tabs-color":j(r,e),"--tabs-text-color":!function(e,t){return"boolean"==typeof e?e:t.autoContrast}(n,e)?void 0:r_({color:r,theme:e,autoContrast:n})}}},rV=ep((e,t)=>{let o=z("Tabs",rW,e),{defaultValue:n,value:a,onChange:i,orientation:l,children:s,loop:c,id:d,activateTabWithKeyboard:u,allowTabDeactivation:p,variant:m,color:f,radius:h,inverted:v,placement:g,keepMounted:y,classNames:b,styles:w,unstyled:x,className:k,style:C,vars:j,autoContrast:S,mod:N,...P}=o,T=tP(d),[E,R]=tM({value:a,defaultValue:n,finalValue:null,onChange:i}),O=Y({name:"Tabs",props:o,classes:rz,className:k,style:C,classNames:b,styles:w,unstyled:x,vars:j,varsResolver:rG});return(0,r.jsx)(rI,{value:{placement:g,value:E,orientation:l,id:T,loop:c,activateTabWithKeyboard:u,getTabId:rO("".concat(T,"-tab"),rq),getPanelId:rO("".concat(T,"-panel"),rq),onChange:R,allowTabDeactivation:p,variant:m,color:f,radius:h,inverted:v,keepMounted:y,unstyled:x,getStyles:O},children:(0,r.jsx)(ed,{ref:t,id:T,variant:m,mod:[{orientation:l,inverted:"horizontal"===l&&v,placement:"vertical"===l&&g},N],...O("root"),...P,children:s})})});rV.classes=rz,rV.displayName="@mantine/core/Tabs",rV.Tab=rH,rV.Panel=rB,rV.List=rF;var rU={root:"m_6e45937b",loader:"m_e8eb006c",overlay:"m_df587f17"};let rY={transitionProps:{transition:"fade",duration:0},overlayProps:{backgroundOpacity:.75},zIndex:te.overlay},rX=(e,t)=>{let{zIndex:o}=t;return{root:{"--lo-z-index":null==o?void 0:o.toString()}}},rK=ep((e,t)=>{let o=z("LoadingOverlay",rY,e),{classNames:n,className:a,style:i,styles:l,unstyled:s,vars:c,transitionProps:d,loaderProps:u,overlayProps:p,visible:m,zIndex:f,...h}=o,v=I(),g=Y({name:"LoadingOverlay",classes:rU,props:o,className:a,style:i,classNames:n,styles:l,unstyled:s,vars:c,varsResolver:rX}),y={...rY.overlayProps,...p};return(0,r.jsx)(eD,{transition:"fade",...d,mounted:!!m,children:e=>(0,r.jsxs)(ed,{...g("root",{style:e}),ref:t,...h,children:[(0,r.jsx)(eE,{...g("loader"),unstyled:s,...u}),(0,r.jsx)(o1,{...y,...g("overlay"),darkHidden:!0,unstyled:s,color:(null==p?void 0:p.color)||v.white}),(0,r.jsx)(o1,{...y,...g("overlay"),lightHidden:!0,unstyled:s,color:(null==p?void 0:p.color)||v.colors.dark[5]})]})})});rK.classes=rU,rK.displayName="@mantine/core/LoadingOverlay";let rZ={multiple:!1},rQ=(0,i.forwardRef)((e,t)=>{let{onChange:o,children:n,multiple:a,accept:l,name:s,form:c,resetRef:d,disabled:u,capture:p,inputProps:m,...f}=z("FileButton",rZ,e),h=(0,i.useRef)(null);return e8(d,()=>{h.current&&(h.current.value="")}
1),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("input",{style:{display:"none"},type:"file",accept:l,multiple:a,onChange:e=>{a?o(Array.from(e.currentTarget.files)):o(e.currentTarget.files[0]||null)},ref:e3(t,h),name:s,form:c,capture:p,...m}),n({onClick:()=>{var e;u||null==(e=h.current)||e.click()},...f})]})});rQ.displayName="@mantine/core/FileButton";let rJ={valueComponent:e=>{let{value:t}=e;return(0,r.jsx)("div",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Array.isArray(t)?t.map(e=>e.name).join(", "):null==t?void 0:t.name})}},r0=ep((e,t)=>{let o=z("FileInput",rJ,e),{unstyled:n,vars:a,onChange:l,value:s,defaultValue:c,multiple:d,accept:u,name:p,form:m,valueComponent:f,clearable:h,clearButtonProps:v,readOnly:g,capture:y,fileInputProps:b,rightSection:w,size:x,placeholder:k,component:C,resetRef:j,classNames:S,styles:N,...P}=o,T=(0,i.useRef)(null),{resolvedClassNames:E,resolvedStyles:R}=oy({classNames:S,styles:N,props:o}),[O,_]=tM({value:s,defaultValue:c,onChange:l,finalValue:d?[]:null}),M=Array.isArray(O)?0!==O.length:null!==O,I=w||(h&&M&&!g?(0,r.jsx)(oC,{...v,variant:"subtle",onClick:()=>_(d?[]:null),size:x,unstyled:n}):null);return(0,i.useEffect)(()=>{if(Array.isArray(O)&&0===O.length||null===O){var e;null==(e=T.current)||e.call(T)}},[O]),(0,r.jsx)(rQ,{onChange:_,multiple:d,accept:u,name:p,form:m,resetRef:e3(T,j),disabled:g,capture:y,inputProps:b,children:e=>(0,r.jsx)(oU,{component:C||"button",ref:t,rightSection:I,...e,...P,__staticSelector:"FileInput",multiline:!0,type:"button",pointer:!0,__stylesApiProps:o,unstyled:n,size:x,classNames:S,styles:N,children:M?(0,r.jsx)(f,{value:O}):(0,r.jsx)(oG.Placeholder,{__staticSelector:"FileInput",classNames:E,styles:R,children:k})})})});r0.classes=oU.classes,r0.displayName="@mantine/core/FileInput";var r1={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};let r2={},r9=(e,t)=>{let{radius:o,color:r,gradient:n,variant:a,size:i,autoContrast:l}=t,s=e.variantColorResolver({color:r||e.primaryColor,theme:e,gradient:n,variant:a||"filled",autoContrast:l});return{root:{"--badge-height":p(i,"badge-height"),"--badge-padding-x":p(i,"badge-padding-x"),"--badge-fz":p(i,"badge-fz"),"--badge-radius":void 0===o?void 0:f(o),"--badge-bg":r||a?s.background:void 0,"--badge-color":r||a?s.color:void 0,"--badge-bd":r||a?s.border:void 0,"--badge-dot-color":"dot"===a?j(r,e):void 0}}},r4=eg((e,t)=>{let o=z("Badge",r2,e),{classNames:n,className:a,style:i,styles:l,unstyled:s,vars:c,radius:d,color:u,gradient:p,leftSection:m,rightSection:f,children:h,variant:v,fullWidth:g,autoContrast:y,circle:b,mod:w,...x}=o,k=Y({name:"Badge",props:o,classes:r1,className:a,style:i,classNames:n,styles:l,unstyled:s,vars:c,varsResolver:r9});return(0,r.jsxs)(ed,{variant:v,mod:[{block:g,circle:b,"with-right-section":!!f,"with-left-section":!!m},w],...k("root",{variant:v}),ref:t,...x,children:[m&&(0,r.jsx)("span",{...k("section"),"data-position":"left",children:m}),(0,r.jsx)("span",{...k("label"),children:h}),f&&(0,r.jsx)("span",{...k("section"),"data-position":"right",children:f})]})});r4.classes=r1,r4.displayName="@mantine/core/Badge";let r7={gap:{type:"spacing",property:"gap"},rowGap:{type:"spacing",property:"rowGap"},columnGap:{type:"spacing",property:"columnGap"},align:{type:"identity",property:"alignItems"},justify:{type:"identity",property:"justifyContent"},wrap:{type:"identity",property:"flexWrap"},direction:{type:"identity",property:"flexDirection"}};var r8={root:"m_8bffd616"};let r5={},r3=eg((e,t)=>{let o=z("Flex",r5,e),{classNames:n,className:a,style:i,styles:l,unstyled:s,vars:c,gap:d,rowGap:u,columnGap:p,align:m,justify:f,wrap:h,direction:v,...y}=o,b=Y({name:"Flex",classes:r8,props:o,className:a,style:i,classNames:n,styles:l,unstyled:s,vars:c}),w=I(),x=ec(),k=es({styleProps:{gap:d,rowGap:u,columnGap:p,align:m,justify:f,wrap:h,direction:v},theme:w,data:r7});return(0,r.jsxs)(r.Fragment,{children:[k.hasResponsiveStyles&&(0,r.jsx)(Z,{selector:".".concat(x),styles:k.styles,media:k.media}),(0,r.jsx)(ed,{ref:t,...b("root",{className:x,style:g(k.inlineStyles)}),...y})]})});function r6(e){return"auto"===e||"dark"===e||"light"===e}function ne(){let e=I(),t=L(),o=X(e.breakpoints).reduce((t,o)=>{let r=e.breakpoints[o].includes("px"),n=function(e){let t="string"==typeof e&&e.includes("var(--mantine-scale)")?e.match(/^calc\((.*?)\)$/)?.[1].split("*")[0].trim():e;return"number"==typeof t?t:"string"==typeof t?t.includes("calc")||t.includes("var")?t:t.includes("px")?Number(t.replace("px","")):t.includes("rem")?16*Number(t.replace("rem","")):t.includes("em")?16*Number(t.replace("em","")):Number(t):NaN}(e.breakpoints[o]),a=r?"".concat(n-.1,"px"):u(n-.1),i=r?"".concat(n,"px"):u(n);return"".concat(t,"@media (max-width: ").concat(a,") {.mantine-visible-from-").concat(o," {display: none !important;}}@media (min-width: ").concat(i,") {.mantine-hidden-from-").concat(o," {display: none !important;}}")},"");
1return(0,r.jsx)("style",{"data-mantine-styles":"classes",nonce:null==t?void 0:t(),dangerouslySetInnerHTML:{__html:o}})}function nt(e){return Object.entries(e).map(e=>{let[t,o]=e;return"".concat(t,": ").concat(o,";")}).join("")}function no(e,t){return(Array.isArray(e)?e:[e]).reduce((e,t)=>"".concat(t,"{").concat(e,"}"),t)}function nr(e){let{theme:t,color:o,colorScheme:r,name:n=o,withColorValues:a=!0}=e;if(!t.colors[o])return{};if("light"===r){let e=w(t,"light"),r={["--mantine-color-".concat(n,"-text")]:"var(--mantine-color-".concat(n,"-filled)"),["--mantine-color-".concat(n,"-filled")]:"var(--mantine-color-".concat(n,"-").concat(e,")"),["--mantine-color-".concat(n,"-filled-hover")]:"var(--mantine-color-".concat(n,"-").concat(9===e?8:e+1,")"),["--mantine-color-".concat(n,"-light")]:N(t.colors[o][e],.1),["--mantine-color-".concat(n,"-light-hover")]:N(t.colors[o][e],.12),["--mantine-color-".concat(n,"-light-color")]:"var(--mantine-color-".concat(n,"-").concat(e,")"),["--mantine-color-".concat(n,"-outline")]:"var(--mantine-color-".concat(n,"-").concat(e,")"),["--mantine-color-".concat(n,"-outline-hover")]:N(t.colors[o][e],.05)};return a?{["--mantine-color-".concat(n,"-0")]:t.colors[o][0],["--mantine-color-".concat(n,"-1")]:t.colors[o][1],["--mantine-color-".concat(n,"-2")]:t.colors[o][2],["--mantine-color-".concat(n,"-3")]:t.colors[o][3],["--mantine-color-".concat(n,"-4")]:t.colors[o][4],["--mantine-color-".concat(n,"-5")]:t.colors[o][5],["--mantine-color-".concat(n,"-6")]:t.colors[o][6],["--mantine-color-".concat(n,"-7")]:t.colors[o][7],["--mantine-color-".concat(n,"-8")]:t.colors[o][8],["--mantine-color-".concat(n,"-9")]:t.colors[o][9],...r}:r}let i=w(t,"dark"),l={["--mantine-color-".concat(n,"-text")]:"var(--mantine-color-".concat(n,"-4)"),["--mantine-color-".concat(n,"-filled")]:"var(--mantine-color-".concat(n,"-").concat(i,")"),["--mantine-color-".concat(n,"-filled-hover")]:"var(--mantine-color-".concat(n,"-").concat(9===i?8:i+1,")"),["--mantine-color-".concat(n,"-light")]:N(t.colors[o][Math.max(0,i-2)],.15),["--mantine-color-".concat(n,"-light-hover")]:N(t.colors[o][Math.max(0,i-2)],.2),["--mantine-color-".concat(n,"-light-color")]:"var(--mantine-color-".concat(n,"-").concat(Math.max(i-5,0),")"),["--mantine-color-".concat(n,"-outline")]:"var(--mantine-color-".concat(n,"-").concat(Math.max(i-4,0),")"),["--mantine-color-".concat(n,"-outline-hover")]:N(t.colors[o][Math.max(i-4,0)],.05)};return a?{["--mantine-color-".concat(n,"-0")]:t.colors[o][0],["--mantine-color-".concat(n,"-1")]:t.colors[o][1],["--mantine-color-".concat(n,"-2")]:t.colors[o][2],["--mantine-color-".concat(n,"-3")]:t.colors[o][3],["--mantine-color-".concat(n,"-4")]:t.colors[o][4],["--mantine-color-".concat(n,"-5")]:t.colors[o][5],["--mantine-color-".concat(n,"-6")]:t.colors[o][6],["--mantine-color-".concat(n,"-7")]:t.colors[o][7],["--mantine-color-".concat(n,"-8")]:t.colors[o][8],["--mantine-color-".concat(n,"-9")]:t.colors[o][9],...l}:l}function nn(e,t,o){X(t).forEach(r=>Object.assign(e,{["--mantine-".concat(o,"-").concat(r)]:t[r]}))}r3.classes=r8,r3.displayName="@mantine/core/Flex";let na=e=>{let t=w(e,"light"),o=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:d(e.defaultRadius),r={variables:{"--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-color-scheme":"light dark","--mantine-webkit-font-smoothing":e.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":e.fontSmoothing?"grayscale":"unset","--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":o,"--mantine-primary-color-filled":"var(--mantine-color-".concat(e.primaryColor,"-filled)"),"--mantine-primary-color-filled-hover":"var(--mantine-color-".concat(e.primaryColor,"-filled-hover)"),"--mantine-primary-color-light":"var(--mantine-color-".concat(e.primaryColor,"-light)"),"--mantine-primary-color-light-hover":"var(--mantine-color-".concat(e.primaryColor,"-light-hover)"),"--mantine-primary-color-light-color":"var(--mantine-color-".concat(e.primaryColor,"-light-color)")},light:{"--mantine-primary-color-contrast":rM(e,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":"var(--mantine-color-".concat(e.primaryColor,"-").concat(t,")"),"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)"},dark:{"--mantine-primary-color-contrast":rM(e,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":"var(--mantine-color-".concat(e.primaryColor,"-4)"),"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)"}};nn(r.variables,e.breakpoints,"breakpoint"),nn(r.variables,e.spacing,"spacing"),nn(r.variables,e.fontSizes,"font-size"),nn(r.variables,e.lineHeights,"line-height"),nn(r.variables,e.shadows,"shadow"),nn(r.variables,e.radius,"radius"),e.colors[e.primaryColor].forEach((t,o)=>{r.variables["--mantine-primary-color-".concat(o)]="var(--mantine-color-".concat(e.primaryColor,"-").concat(o,")")}
1),X(e.colors).forEach(t=>{let o=e.colors[t];if(function(e){return!!e&&"object"==typeof e&&"mantine-virtual-color"in e}(o)){Object.assign(r.light,nr({theme:e,name:o.name,color:o.light,colorScheme:"light",withColorValues:!0})),Object.assign(r.dark,nr({theme:e,name:o.name,color:o.dark,colorScheme:"dark",withColorValues:!0}));return}o.forEach((e,o)=>{r.variables["--mantine-color-".concat(t,"-").concat(o)]=e}),Object.assign(r.light,nr({theme:e,color:t,colorScheme:"light",withColorValues:!1})),Object.assign(r.dark,nr({theme:e,color:t,colorScheme:"dark",withColorValues:!1}))});let n=e.headings.sizes;return X(n).forEach(t=>{r.variables["--mantine-".concat(t,"-font-size")]=n[t].fontSize,r.variables["--mantine-".concat(t,"-line-height")]=n[t].lineHeight,r.variables["--mantine-".concat(t,"-font-weight")]=n[t].fontWeight||e.headings.fontWeight}),r},ni=na(T);function nl(e){let{cssVariablesSelector:t,deduplicateCssVariables:o}=e,n=I(),a=L(),i=function(e){let{theme:t,generator:o}=e,r=na(t),n=null==o?void 0:o(t);return n?R(r,n):r}({theme:n,generator:F().cssVariablesResolver}),l=":root"===t&&o,s=function(e,t){let o=nt(e.variables),r=o?no(t,o):"",n=nt(e.dark),a=nt(e.light),i=n?":host"===t?no("".concat(t,'([data-mantine-color-scheme="dark"])'),n):no("".concat(t,'[data-mantine-color-scheme="dark"]'),n):"",l=a?":host"===t?no("".concat(t,'([data-mantine-color-scheme="light"])'),a):no("".concat(t,'[data-mantine-color-scheme="light"]'),a):"";return"".concat(r).concat(i).concat(l)}(l?function(e){let t={variables:{},light:{},dark:{}};return X(e.variables).forEach(o=>{ni.variables[o]!==e.variables[o]&&(t.variables[o]=e.variables[o])}),X(e.light).forEach(o=>{ni.light[o]!==e.light[o]&&(t.light[o]=e.light[o])}),X(e.dark).forEach(o=>{ni.dark[o]!==e.dark[o]&&(t.dark[o]=e.dark[o])}),t}(i):i,t);if(s)return(0,r.jsx)("style",{"data-mantine-styles":!0,nonce:null==a?void 0:a(),dangerouslySetInnerHTML:{__html:"".concat(s).concat(l?"":"\n ".concat(t,'[data-mantine-color-scheme="dark"] { --mantine-color-scheme: dark; }\n ').concat(t,'[data-mantine-color-scheme="light"] { --mantine-color-scheme: light; }\n'))}});return null}function ns(e,t){var o,r;let n="undefined"!=typeof window&&"matchMedia"in window&&(null==(o=window.matchMedia("(prefers-color-scheme: dark)"))?void 0:o.matches);null==(r=t())||r.setAttribute("data-mantine-color-scheme","auto"!==e?e:n?"dark":"light")}function nc(e){let{theme:t,children:o,getStyleNonce:n,withStaticClasses:a=!0,withGlobalClasses:l=!0,deduplicateCssVariables:s=!0,withCssVariables:c=!0,cssVariablesSelector:d=":root",classNamesPrefix:u="mantine",colorSchemeManager:p=function(){let e,{key:t="mantine-color-scheme-value"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{get:e=>{if("undefined"==typeof window)return e;try{let o=window.localStorage.getItem(t);return r6(o)?o:e}catch(t){return e}},set:e=>{try{window.localStorage.setItem(t,e)}catch(e){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",e)}},subscribe:o=>{e=e=>{e.storageArea===window.localStorage&&e.key===t&&r6(e.newValue)&&o(e.newValue)},window.addEventListener("storage",e)},unsubscribe:()=>{window.removeEventListener("storage",e)},clear:()=>{window.localStorage.removeItem(t)}}}(),defaultColorScheme:m="light",getRootElement:f=()=>document.documentElement,cssVariablesResolver:h,forceColorScheme:v,stylesTransform:g,env:y}=e,{colorScheme:b,setColorScheme:w,clearColorScheme:x}=function(e){let{manager:t,defaultColorScheme:o,getRootElement:r,forceColorScheme:n}=e,a=(0,i.useRef)(null),[l,s]=(0,i.useState)(()=>t.get(o)),c=n||l,d=(0,i.useCallback)(e=>{n||(ns(e,r),s(e),t.set(e))},[t.set,c,n]),u=(0,i.useCallback)(()=>{s(o),ns(o,r),t.clear()},[t.clear,o]);return(0,i.useEffect)(()=>(t.subscribe(d),t.unsubscribe),[t.subscribe,t.unsubscribe]),tc(()=>{ns(t.get(o),r)},[]),(0,i.useEffect)(()=>{var e;if(n)return ns(n,r),()=>{};void 0===n&&ns(l,r),"undefined"!=typeof window&&"matchMedia"in window&&(a.current=window.matchMedia("(prefers-color-scheme: dark)"));let t=e=>{"auto"===l&&ns(e.matches?"dark":"light",r)};return null==(e=a.current)||e.addEventListener("change",t),()=>{var e;return null==(e=a.current)?void 0:e.removeEventListener("change",t)}}
1,[l,n]),{colorScheme:c,setColorScheme:d,clearColorScheme:u}}({defaultColorScheme:m,forceColorScheme:v,manager:p,getRootElement:f});return!function(e){let{respectReducedMotion:t,getRootElement:o}=e;tc(()=>{if(t){var e;null==(e=o())||e.setAttribute("data-respect-reduced-motion","true")}},[t])}({respectReducedMotion:(null==t?void 0:t.respectReducedMotion)||!1,getRootElement:f}),(0,r.jsx)(A.Provider,{value:{colorScheme:b,setColorScheme:w,clearColorScheme:x,getRootElement:f,classNamesPrefix:u,getStyleNonce:n,cssVariablesResolver:h,cssVariablesSelector:d,withStaticClasses:a,stylesTransform:g,env:y},children:(0,r.jsxs)(D,{theme:t,children:[c&&(0,r.jsx)(nl,{cssVariablesSelector:d,deduplicateCssVariables:s}),l&&(0,r.jsx)(ne,{}),o]})})}function nd(){let{onBlur:e,onFocus:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=(0,i.useRef)(null),[r,n]=(0,i.useState)(!1),a=(0,i.useRef)(!1),l=e=>{n(e),a.current=e},s=e=>{a.current||(l(!0),null==t||t(e))},c=t=>{a.current&&!(t.currentTarget instanceof HTMLElement&&t.relatedTarget instanceof HTMLElement&&t.currentTarget.contains(t.relatedTarget))&&(l(!1),null==e||e(t))};return(0,i.useEffect)(()=>{let e=o.current;if(e)return e.addEventListener("focusin",s),e.addEventListener("focusout",c),()=>{null==e||e.removeEventListener("focusin",s),null==e||e.removeEventListener("focusout",c)}},[s,c]),{ref:o,focused:r}}nl.displayName="@mantine/CssVariables",!function(){let e=console.error;console.error=function(){for(var t=arguments.length,o=Array(t),r=0;r<t;r++)o[r]=arguments[r];o.length>1&&"string"==typeof o[0]&&o[0].toLowerCase().includes("extra attributes from the server")&&"string"==typeof o[1]&&o[1].toLowerCase().includes("data-mantine-color-scheme")||e(...o)}}(),nc.displayName="@mantine/core/MantineProvider";let nu=(e,t,o=!1)=>((function e(r,n="--bn"){for(let a in r){let i=a.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),l=`${n}-${i}`;"object"!=typeof r[a]?("number"==typeof r[a]&&(r[a]=`${r[a]}px`),o?t.style.removeProperty(l):t.style.setProperty(l,r[a].toString())):e(r[a],l)}})(e),[]),np=(e,t)=>nu(e,t),nm={colors:{editor:{text:void 0,background:void 0},menu:{text:void 0,background:void 0},tooltip:{text:void 0,background:void 0},hovered:{text:void 0,background:void 0},selected:{text:void 0,background:void 0},disabled:{text:void 0,background:void 0},shadow:void 0,border:void 0,sideMenu:void 0,highlights:{gray:{text:void 0,background:void 0},brown:{text:void 0,background:void 0},red:{text:void 0,background:void 0},orange:{text:void 0,background:void 0},yellow:{text:void 0,background:void 0},green:{text:void 0,background:void 0},blue:{text:void 0,background:void 0},purple:{text:void 0,background:void 0},pink:{text:void 0,background:void 0}}},borderRadius:void 0,fontFamily:void 0},nf=e=>(0,r.jsxs)(ev,{gap:0,className:"bn-tooltip",children:[(0,r.jsx)(ex,{size:"sm",lineClamp:5,children:e.mainTooltip}),e.secondaryTooltip&&(0,r.jsx)(ex,{size:"xs",lineClamp:5,children:e.secondaryTooltip})]}),nh=(0,i.forwardRef)((e,t)=>{let{className:o,children:a,mainTooltip:l,secondaryTooltip:s,icon:c,isSelected:d,isDisabled:u,onClick:p,label:m,variant:f,...h}=e;(0,n.qmO)(h,!1);let[v,g]=(0,i.useState)(!1),y=a?(0,r.jsx)(eX,{"aria-label":m,className:o,onMouseDown:e=>{(0,n.nrF)()&&e.currentTarget.focus()},onClick:e=>{g(!0),null==p||p(e)},onPointerLeave:()=>g(!1),"aria-pressed":d,"data-selected":d||void 0,"data-test":l?l.slice(0,1).toLowerCase()+l.replace(/\s+/g,"").slice(1):void 0,size:"compact"===f?"compact-xs":"xs",disabled:u||!1,ref:t,...h,children:a}):(0,r.jsx)(e7,{className:o,"aria-label":m,onMouseDown:e=>{(0,n.nrF)()&&e.currentTarget.focus()},onClick:e=>{g(!0),null==p||p(e)},onPointerLeave:()=>g(!1),"aria-pressed":d,"data-selected":d||void 0,"data-test":l?l.slice(0,1).toLowerCase()+l.replace(/\s+/g,"").slice(1):void 0,size:"compact"===f?20:30,disabled:u||!1,ref:t,...h,children:c});return l?(0,r.jsx)(t_,{disabled:v,withinPortal:!1,label:(0,r.jsx)(nf,{mainTooltip:l,secondaryTooltip:s}),children:y}):y}),nv=(0,i.forwardRef)((e,t)=>{let{className:o,text:a,icon:l,isSelected:s,mainTooltip:c,secondaryTooltip:d,onClick:u,onMouseEnter:p,...m}=e;(0,n.qmO)(m,!1);let[f,h]=(0,i.useState)(!1),v=(0,r.jsxs)(tq,{className:o,checked:!0===s,wrapperProps:{onMouseEnter:p,onMouseLeave:()=>h(!1),onClick:e=>{h(!0),null==u||u(e)}},variant:"light",icon:null,ref:t,children:[(0,r.jsx)("span",{children:l}),(0,r.jsx)("span",{children:a})]});return!c||f?v:(0,r.jsx)(t_,{refProp:"rootRef",withinPortal:!1,label:(0,r.jsx)(nf,{mainTooltip:c,secondaryTooltip:d}),children:v})}),ng=(0,i.forwardRef)((e,t)=>{let{className:o,children:a,...i}=e;return(0,n.qmO)(i),(0,r.jsx)(tU,{className:o,ref:t,children:a})}),ny=(0,i.forwardRef)((e,t)=>{let{className:o,children:l,headerText:s,selected:c,onFocus:d,onBlur:u,tabIndex:p,...m}=e;(0,n.qmO)(m,!1);let f=(0,i.useRef)(null);return(0,i.useEffect)(()=>{var e;c&&(null==(e=f.current)||e.scrollIntoView({behavior:"smooth",block:"center"}))},[c]),(0,r.jsxs)(t8,{className:(0,n.e$J)(o,c?"selected":""),onFocus:d,onBlur:u,tabIndex:p,ref:(0,a.Px)([t,f]),children:[s&&(0,r.jsx)(ex,{className:"bn-header-text",children:s}),l]})}),nb=(0,i.forwardRef)((e,t)=>{let{className:o,children:a,...i}=e;return(0,n.qmO)(i,!1),(0,r.jsx)(t8.Section,{className:o,ref:t,children:a})}),nw=(0,i.forwardRef)((e,t)=>{let{className:o,children:a,...i}=e;return(0,n.qmO)(i,!1),(0,r.jsx)(oe,{className:o,label:(0,r.jsx)(ex,{children:a}),ref:t})}),nx=(0,i.forwardRef)((e,t)=>{let{authorInfo:o,timeString:i,edited:l,...s}=e,c=(0,a.K_)();return(0,n.qmO)(s,!1),"loading"===o?(0,r.jsxs)(tU,{children:[(0,r.jsx)(on,{height:24,width:24}),(0,r.jsx)("div",{children:(0,r.jsx)(on,{height:12,width:100})})]}):(0,r.jsxs)(tU,{children:[(0,r.jsx)(oh,{src:o.avatarUrl,alt:o.username,radius:"xl",size:"sm",color:"initials"}),(0,r.jsxs)(ex,{fz:"sm",fw:"bold",children:[o.username,(0,r.jsxs)(ex,{fz:"xs",c:"dimmed",span:!0,ml:"xs",children:[i," ",l&&`(${c.comments.edited})`]})]})]})}),nk=(0,i.forwardRef)((e,t)=>{let{className:o,showActions:l,authorInfo:s,timeString:c,edited:d,actions:u,children:p,...m}=e,{hovered:f,ref:h}=function(){let[e,t]=(0,i.useState)(!1),o=(0,i.useRef)(null),r=(0,i.useCallback)(()=>t(!0),[]),n=(0,i.useCallback)(()=>t(!1),[]);return(0,i.useEffect)(()=>{let e=o.current;if(e)return e.addEventListener("mouseenter",r),e.addEventListener("mouseleave",n),()=>{null==e||e.removeEventListener("mouseenter",r),null==e||e.removeEventListener("mouseleave",n)}},[o.current]),{ref:o,hovered:e}}(),{focused:v,ref:g}=nd(),y=(0,a.Px)([t,h]);return(0,n.qmO)(m,!1),(0,r.jsxs)(tU,{pos:"relative",ref:y,className:o,children:[u&&(!0===l||void 0===l||"hover"===l&&f||v)?(0,r.jsx)(tU,{ref:g,style:{position:"absolute",right:0,top:0,zIndex:10},children:u}):null,(0,r.jsx)(nx,{...e}),p]})}),nC=(0,i.forwardRef)((e,t)=>{let{className:o,autoFocus:i,onFocus:l,onBlur:s,editor:c,editable:d,...u}=e;return(0,n.qmO)(u,!1),(0,r.jsx)(ao,{autoFocus:i,className:o,editor:e.editor,sideMenu:!1,slashMenu:!1,tableHandles:!1,filePanel:!1,formattingToolbar:!1,editable:d,ref:t,onFocus:l,onBlur:s,children:(0,r.jsx)(a.T9,{formattingToolbar:nj})})}),nj=()=>{let e=(0,a.Db)([]).filter(e=>"nestBlockButton"!==e.key&&"unnestBlockButton"!==e.key);return(0,r.jsx)(a.PT,{blockTypeSelectItems:[],children:e})},nS=(0,i.forwardRef)((e,t)=>{let{className:o,name:a,label:i,variant:l,icon:s,value:c,autoFocus:d,placeholder:u,disabled:p,onKeyDown:m,onChange:f,onSubmit:h,autoComplete:v,rightSection:g,...y}=e;return(0,n.qmO)(y),(0,r.jsx)(oX,{size:"xs",className:(0,n.e$J)(o||"","large"===l?"bn-mt-input-large":""),ref:t,name:a,label:i,leftSection:s,value:c,autoFocus:d,"data-autofocus":d?"true":void 0,rightSection:g,placeholder:u,disabled:p,onKeyDown:m,onChange:f,onSubmit:h,autoComplete:v})});var nN={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},nP=i.createContext&&i.createContext(nN),nT=["attr","size","title"];function nE(){return(nE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e}).apply(this,arguments)}function nR(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}function nO(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};
1t%2?nR(Object(o),!0).forEach(function(t){var r,n,a;r=e,n=t,a=o[t],(n=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var r=o.call(e,t);if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(n))in r?Object.defineProperty(r,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[n]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nR(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function n_(e){return t=>i.createElement(nM,nE({attr:nO({},e.attr)},t),function e(t){return t&&t.map((t,o)=>i.createElement(t.tag,nO({key:o},t.attr),e(t.child)))}(e.child))}function nM(e){var t=t=>{var o,{attr:r,size:n,title:a}=e,l=function(e,t){if(null==e)return{};var o,r,n=function(e,t){if(null==e)return{};var o={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;o[r]=e[r]}return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)o=a[r],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}(e,nT),s=n||t.size||"1em";return t.className&&(o=t.className),e.className&&(o=(o?o+" ":"")+e.className),i.createElement("svg",nE({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,l,{className:o,style:nO(nO({color:e.color||t.color},t.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),a&&i.createElement("title",null,a),e.children)};return void 0!==nP?i.createElement(nP.Consumer,null,e=>t(e)):t(nN)}function nI(e){return n_({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"},child:[]}]})(e)}function nD(e){return n_({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"},child:[]}]})(e)}let nz=(0,i.createContext)(void 0),nA=(0,i.forwardRef)((e,t)=>{let{children:o,onOpenChange:a,position:l,sub:s,...c}=e;(0,n.qmO)(c);let[d,u]=(0,i.useState)(!1),p=(0,i.useRef)(null),m=(0,i.useRef)(),f=(0,i.useCallback)(()=>{m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{u(!1)},250)},[]),h=(0,i.useCallback)(()=>{m.current&&clearTimeout(m.current),u(!0)},[]);return(0,r.jsx)(nz.Provider,{value:{onMenuMouseOver:h,onMenuMouseLeave:f},children:(0,r.jsx)(rR.Item,{className:"bn-menu-item bn-mt-sub-menu-item",ref:e5(t,p),onMouseOver:h,onMouseLeave:f,children:(0,r.jsx)(rR,{portalProps:{target:p.current?p.current.parentElement:void 0},middlewares:{flip:!0,shift:!0,inline:!1,size:!0},trigger:"hover",opened:d,onChange:a,position:l,children:o})})})}),nF=(0,i.forwardRef)((e,t)=>{let{className:o,children:a,icon:i,checked:l,subTrigger:s,onClick:c,...d}=e;return(0,n.qmO)(d,!1),s?(0,r.jsxs)("div",{onClick:e=>{e.preventDefault(),e.stopPropagation()},ref:t,...d,children:[a,(0,r.jsx)(nD,{size:15})]}):(0,r.jsx)(rR.Item,{className:o,ref:t,leftSection:i,rightSection:l?(0,r.jsx)(tI,{size:10}):!1===l?(0,r.jsx)("div",{className:"bn-tick-space"}):null,onClick:c,...d,children:a})}),nL=(0,i.forwardRef)((e,t)=>{let{className:o,children:a,sub:l,...s}=e;(0,n.qmO)(s);let c=(0,i.useContext)(nz);return(0,r.jsx)(rR.Dropdown,{className:o,ref:t,onMouseOver:null==c?void 0:c.onMenuMouseOver,onMouseLeave:null==c?void 0:c.onMenuMouseLeave,children:a})}),nB=(0,i.forwardRef)((e,t)=>{let{className:o,...a}=e;return(0,n.qmO)(a),(0,r.jsx)(rR.Divider,{className:o,ref:t})}),n$=(0,i.forwardRef)((e,t)=>{let{className:o,children:a,...i}=e;return(0,n.qmO)(i),(0,r.jsx)(rR.Label,{className:o,ref:t,children:a})}),nH=(0,i.forwardRef)((e,t)=>{let{className:o,children:a,icon:i,onClick:l,onDragEnd:s,onDragStart:c,draggable:d,label:u,...p}=e;return(0,n.qmO)(p,!1),i?(0,r.jsx)(e7,{size:24,className:o,ref:t,onClick:l,onDragEnd:s,onDragStart:c,draggable:d,"aria-label":u,...p,children:i}):(0,r.jsx)(eX,{className:o,ref:t,onClick:l,onDragEnd:s,onDragStart:c,draggable:d,"aria-label":u,...p,children:a})}),nq=(0,i.forwardRef)((e,t)=>{let{className:o,tabs:a,defaultOpenTab:i,openTab:l,setOpenTab:s,loading:c,...d}=e;return(0,n.qmO)(d),(0,r.jsx)(tU,{className:o,ref:t,children:(0,r.jsxs)(rV,{value:l,defaultValue:i,onChange:s,children:[c&&(0,r.jsx)(rK,{visible:c}),(0,r.jsx)(rV.List,{children:a.map(e=>(0,r.jsx)(rV.Tab,{"data-test":`${e.name.toLowerCase()}-tab`,value:e.name,children:e.name},e.name))}),a.map(e=>(0,r.jsx)(rV.Panel,{value:e.name,children:e.tabPanel},e.name))]})})}),nW=(0,i.forwardRef)((e,t)=>{let{className:o,children:a,onClick:i,label:l,...s}=e;return(0,n.qmO)(s),(0,r.jsx)(eX,{size:"xs","aria-label":l,className:o,ref:t,onClick:i,...s,children:a})}),nG=(0,i.forwardRef)((e,t)=>{let{className:o,accept:a,value:i,placeholder:l,onChange:s,...c}=e;return(0,n.qmO)(c),(0,r.jsx)(r0,{size:"xs",className:o,ref:t,accept:a,value:i,placeholder:l,onChange:s,...c})}),nV=(0,i.forwardRef)((e,t)=>{let{className:o,children:a,...i}=e;return(0,n.qmO)(i),(0,r.jsx)("div",{className:o,ref:t,children:a})}),nU=(0,i.forwardRef)((e,t)=>{let{className:o,value:a,placeholder:i,onKeyDown:l,onChange:s,...c}=e;return(0,n.qmO)(c),(0,r.jsx)(oX,{size:"xs","data-test":"embed-input",className:o,ref:t,value:a,placeholder:i,onKeyDown:l,onChange:s})}),nY=(0,i.forwardRef)((e,t)=>{let{className:o,children:a,variant:i,...l}=e;return(0,n.qmO)(l),(0,r.jsx)(rs,{className:o,ref:t,children:a})}),nX=(0,i.forwardRef)((e,t)=>{let{className:o,children:a,...i}=e;return(0,n.qmO)(i,!1),(0,r.jsx)(tU,{align:"center",gap:0,className:o,ref:t,...i,children:a})}),nK=(0,i.forwardRef)((e,t)=>{let{className:o,children:a,icon:i,onClick:l,onDragEnd:s,onDragStart:c,draggable:d,label:u,...p}=e;return(0,n.qmO)(p,!1),i?(0,r.jsx)(e7,{size:24,className:o,ref:t,onClick:l,onDragEnd:s,onDragStart:c,draggable:d,"aria-label":u,...p,children:i}):(0,r.jsx)(eX,{className:o,ref:t,onClick:l,onDragEnd:s,onDragStart:c,draggable:d,"aria-label":u,...p,children:a})}),nZ=(0,i.forwardRef)((e,t)=>{let{className:o,children:a,id:i,...l}=e;return(0,n.qmO)(l),(0,r.jsx)(ev,{gap:0,className:o,ref:t,id:i,role:"listbox",children:a})}),nQ=(0,i.forwardRef)((e,t)=>{let{className:o,children:a,...i}=e;return(0,n.qmO)(i),(0,r.jsx)(tU,{className:o,ref:t,children:(0,r.jsx)(tU,{className:"bn-mt-suggestion-menu-item-title",children:a})})}),nJ=(0,i.forwardRef)((e,t)=>{let{className:o,isSelected:l,onClick:s,item:c,id:d,...u}=e;(0,n.qmO)(u);let p=(0,i.useRef)(null);return(0,i.useEffect)(()=>
1{if(!p.current||!l)return;let e=(0,a.vZ)(p.current,document.querySelector(".bn-suggestion-menu, #ai-suggestion-menu"));"top"===e?p.current.scrollIntoView(!0):"bottom"===e&&p.current.scrollIntoView(!1)},[l]),(0,r.jsxs)(tU,{gap:0,className:o,ref:e5(t,p),id:d,role:"option",onMouseDown:e=>e.preventDefault(),onClick:s,"aria-selected":l||void 0,children:[c.icon&&(0,r.jsx)(tU,{className:"bn-mt-suggestion-menu-item-section","data-position":"left",children:c.icon}),(0,r.jsxs)(ev,{gap:0,className:"bn-mt-suggestion-menu-item-body",children:[(0,r.jsx)(ex,{className:"bn-mt-suggestion-menu-item-title",children:c.title}),(0,r.jsx)(ex,{className:"bn-mt-suggestion-menu-item-subtitle",children:c.subtext})]}),c.badge&&(0,r.jsx)(tU,{"data-position":"right",className:"bn-mt-suggestion-menu-item-section",children:(0,r.jsx)(r4,{size:"xs",children:c.badge})})]})}),n0=(0,i.forwardRef)((e,t)=>{let{className:o,children:a,...i}=e;return(0,n.qmO)(i),(0,r.jsx)(tU,{className:o,ref:t,children:a})}),n1=(0,i.forwardRef)((e,t)=>{let{className:o,...a}=e;return(0,n.qmO)(a),(0,r.jsx)(eE,{className:o,type:"dots",size:16,ref:t})}),n2=(0,i.forwardRef)((e,t)=>{let{className:o,children:a,id:i,columns:l,...s}=e;return(0,n.qmO)(s),(0,r.jsx)("div",{className:o,style:{gridTemplateColumns:`repeat(${l}, 1fr)`},ref:t,id:i,role:"grid",children:a})}),n9=(0,i.forwardRef)((e,t)=>{let{className:o,children:a,columns:i,...l}=e;return(0,n.qmO)(l),(0,r.jsx)(tU,{className:o,style:{gridColumn:`1 / ${i+1}`},ref:t,children:(0,r.jsx)(tU,{className:"bn-mt-suggestion-menu-item-title",children:a})})}),n4=(0,i.forwardRef)((e,t)=>{let{className:o,isSelected:l,onClick:s,item:c,id:d,...u}=e;(0,n.qmO)(u);let p=(0,i.useRef)(null);return(0,i.useEffect)(()=>{if(!p.current||!l)return;let e=(0,a.vZ)(p.current,document.querySelector(".bn-grid-suggestion-menu"));"top"===e?p.current.scrollIntoView(!0):"bottom"===e&&p.current.scrollIntoView(!1)},[l]),(0,r.jsx)("div",{className:o,ref:e5(t,p),id:d,role:"option",onClick:s,"aria-selected":l||void 0,children:c.icon})}),n7=(0,i.forwardRef)((e,t)=>{let{className:o,children:a,columns:i,...l}=e;return(0,n.qmO)(l),(0,r.jsx)(eE,{className:o,style:{gridColumn:`1 / ${i+1}`},type:"dots",ref:t})}),n8=(0,i.forwardRef)((e,t)=>{let{children:o,className:a,onMouseDown:i,onClick:l,...s}=e;return(0,n.qmO)(s,!1),(0,r.jsx)(eX,{className:a,ref:t,onMouseDown:i,onClick:l,...s,children:o})}),n5=(0,i.forwardRef)((e,t)=>{let{className:o,children:a,draggable:i,onDragStart:l,onDragEnd:s,style:c,label:d,...u}=e;return(0,n.qmO)(u,!1),(0,r.jsx)(eX,{className:o,ref:t,"aria-label":d,draggable:i,onDragStart:l,onDragEnd:s,style:c,...u,children:a})}),n3=(0,i.forwardRef)((e,t)=>{let{className:o,children:a,onMouseEnter:i,onMouseLeave:l,variant:s,...c}=e;(0,n.qmO)(c);let{ref:d,focused:u}=nd(),p=e5(t,d,re(u));return(0,r.jsx)(r3,{className:o,ref:p,role:"toolbar",onMouseEnter:i,onMouseLeave:l,gap:"action-toolbar"===s?2:void 0,children:a})}),n6=(0,i.forwardRef)((e,t)=>{let{className:o,items:a,isDisabled:i,...l}=e;(0,n.qmO)(l);let s=a.filter(e=>e.isSelected)[0];return s?(0,r.jsxs)(rR,{withinPortal:!1,transitionProps:{exitDuration:0},disabled:i,middlewares:{flip:!0,shift:!0,inline:!1,size:!0},children:[(0,r.jsx)(rR.Target,{children:(0,r.jsx)(eX,{onMouseDown:e=>{(0,n.nrF)()&&e.currentTarget.focus()},leftSection:s.icon,rightSection:(0,r.jsx)(nI,{}),size:"xs",variant:"subtle",disabled:i,children:s.text})}),(0,r.jsx)(rR.Dropdown,{className:o,ref:t,children:a.map(e=>(0,r.jsx)(rR.Item,{onClick:e.onClick,leftSection:e.icon,rightSection:e.isSelected?(0,r.jsx)(tI,{size:10,className:"bn-tick-icon"}):(0,r.jsx)("div",{className:"bn-tick-space"}),disabled:e.isDisabled,children:e.text},e.text))})]}):null}),ae={FormattingToolbar:{Root:n3,Button:nh,Select:n6},FilePanel:{Root:nq,Button:nW,FileInput:nG,TabPanel:nV,TextInput:nU},GridSuggestionMenu:{Root:n2,Item:n4,EmptyItem:n9,Loader:n7},LinkToolbar:{Root:n3,Button:nh,Select:n6},SideMenu:{Root:nX,Button:nK},SuggestionMenu:{Root:nZ,Item:nJ,EmptyItem:nQ,Label:n0,Loader:n1},TableHandle:{Root:n5,ExtendButton:n8},Generic:{Badge:{Root:nv,Group:ng},Form:{Root:e=>(0,r.jsx)("div",{children:e.children}),TextInput:nS},Menu:{Root:e=>{let{children:t,onOpenChange:o,position:a,sub:i,...l}=e;return(0,n.qmO)(l),i?(0,r.jsx)(nA,{...e}):(0,r.jsx)(rR,{withinPortal:!1,middlewares:{flip:!0,shift:!0,inline:!1,size:!0},onChange:o,position:a,children:t})},Trigger:e=>{let{children:t,sub:o,...a}=e;return(0,n.qmO)(a),(0,r.jsx)(rR.Target,{children:t})},Dropdown:nL,Divider:nB,Label:n$,Item:nF,Button:nH},Popover:{Root:e=>{let{opened:t,position:o,children:a,...i}=e;return(0,n.qmO)(i),(0,r.jsx)(rm,{withinPortal:!1,opened:t,position:o,children:a})},Trigger:e=>{let{children:t,...o}=e;return(0,n.qmO)(o),(0,r.jsx)(rd,{children:t})},Content:nY},Toolbar:{Root:n3,Button:nh,Select:n6}},Comments:{Comment:nk,Editor:nC,Card:ny,CardSection:nb,ExpandSectionsPrompt:nw}},at={activeClassName:""},ao=e=>{let{className:t,theme:o,...l}=e,s=(0,a.Qx)(),c=(0,a.dm)(),d=(null==s?void 0:s.colorSchemePreference)||c,u=(0,i.useCallback)(e=>{if(e&&(nu(nm,e,!0),"object"==typeof o))return"light"in o&&"dark"in o?void np(o["dark"===d?"dark":"light"],e):void np(o,e)},[d,o]),p="string"==typeof o?o:"no-preference"!==d?d:"light";return(0,r.jsx)(a.aG.Provider,{value:ae,children:(0,r.jsx)(nc,{theme:at,cssVariablesSelector:".bn-mantine",getRootElement:()=>{},children:(0,r.jsx)(a.TO,{"data-mantine-color-scheme":p,className:(0,n.e$J)("bn-mantine",t||""),theme:"object"==typeof o?void 0:o,...l,ref:u})})})},ar={colors:{editor:{text:"#3F3F3F",background:"#FFFFFF"},menu:{text:"#3F3F3F",background:"#FFFFFF"},tooltip:{text:"#3F3F3F",background:"#EFEFEF"},hovered:{text:"#3F3F3F",background:"#EFEFEF"},selected:{text:"#FFFFFF",background:"#3F3F3F"},disabled:{text:"#AFAFAF",background:"#EFEFEF"},shadow:"#CFCFCF",border:"#EFEFEF",sideMenu:"#CFCFCF",highlights:n.lNy},borderRadius:6,fontFamily:'"Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Open Sans", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif'};n.Ovo,ar.borderRadius,ar.fontFamily},592313:(e,t,o)=>{o.d(t,{IB:()=>p,Ws:()=>D,fy:()=>k,y2:()=>x});var r=o(688329),n=o(311699),a=o(731504),i=o(926477),l=o(824774),s=o(249738),c=o(705922),d=Object.defineProperty,u=(e,t,o)=>((e,t,o)=>t in e?d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o)(e,"symbol"!=typeof t?t+"":t,o);let p=Object.freeze(Object.defineProperty({__proto__:null,ar:{slash_menu:{two_columns:{title:"عÙ
ÙØ¯Ø§Ù",subtext:"عÙ
ÙØ¯Ø§Ù Ø¬ÙØ¨Ùا Ø¥ÙÙ Ø¬ÙØ¨",aliases:["أعÙ
دة","صÙ","ØªÙØ³ÙÙ
"],group:"اÙÙØªÙ Ø§ÙØ£Ø³Ø§Ø³ÙØ©"},three_columns:{title:"Ø«ÙØ§Ø«Ø© أعÙ
دة",subtext:"Ø«ÙØ§Ø«Ø© أعÙ
دة Ø¬ÙØ¨Ùا Ø¥ÙÙ Ø¬ÙØ¨",aliases:["أعÙ
دة","صÙ","ØªÙØ³ÙÙ
"],group:"اÙÙØªÙ Ø§ÙØ£Ø³Ø§Ø³ÙØ©"}}},de:{slash_menu:{two_columns:{title:"Zwei Spalten",subtext:"Zwei Spalten nebeneinander",aliases:["Spalten","Reihe","teilen"],group:"Grundlegende Bl\xf6cke"},three_columns:{title:"Drei Spalten",subtext:"Drei Spalten nebeneinander",aliases:["Spalten","Reihe","teilen"],group:"Grundlegende Bl\xf6cke"}}},en:{slash_menu:{two_columns:{title:"Two Columns",subtext:"Two columns side by side",aliases:["columns","row","split"],group:"Basic blocks"},three_columns:{title:"Three Columns",subtext:"Three columns side by side",aliases:["columns","row","split"],group:"Basic blocks"}}},es:{slash_menu:{two_columns:{title:"Dos Columnas",subtext:"Dos columnas lado a lado",aliases:["columnas","fila","dividir"],group:"Bloques b\xe1sicos"},three_columns:{title:"Tres Columnas",subtext:"Tres columnas lado a lado",aliases:["columnas","fila","dividir"],group:"Bloques b\xe1sicos"}}},fr:{slash_menu:{two_columns:{title:"Deux Colonnes",subtext:"Deux colonnes c\xf4te \xe0 c\xf4te",aliases:["colonnes","rang\xe9e","partager"],group:"Blocs de base"},three_columns:{title:"Trois Colonnes",subtext:"Trois colonnes c\xf4te \xe0 c\xf4te",aliases:["colonnes","rang\xe9e","partager"],group:"Blocs de base"}}},hr:{slash_menu:{two_columns:{title:"Dva Stupca",subtext:"Dva stupca jedan pored drugog",aliases:["stupci","redak","podijeli"],group:"Osnovni blokovi"},three_columns:{title:"Tri Stupca",subtext:"Tri stupca jedan pored drugog",aliases:["stupci","redak","podijeli"],group:"Osnovni blokovi"}}},is:{slash_menu:{two_columns:{title:"Tv\xe6r D\xe1lkar",subtext:"Tv\xe6r d\xe1lkar hli\xf0 vi\xf0 hli\xf0",aliases:["d\xe1lkar","r\xf6\xf0","skipta"],group:"Grunnblokkar"},three_columns:{title:"\xder\xedr D\xe1lkar",subtext:"\xder\xedr d\xe1lkar hli\xf0 vi\xf0 hli\xf0",aliases:["d\xe1lkar","r\xf6\xf0","skipta"],group:"Grunnblokkar"}}},ja:{slash_menu:{two_columns:{title:"äºå",subtext:"äºå並ãã§",aliases:["å","è¡","åå²"],group:"åºæ¬ãããã¯"},three_columns:{title:"ä¸å",subtext:"ä¸å並ãã§",aliases:["å","è¡","åå²"],group:"åºæ¬ãããã¯"}}},ko:{slash_menu:{two_columns:{title:"ë ì´",subtext:"ë ì´ ëëí",aliases:["ì´","í","ë¶í "],group:"기본 ë¸ë¡"},three_columns:{title:"ì¸ ì´",subtext:"ì¸ ì´ ëëí",aliases:["ì´","í","ë¶í "],group:"기본 ë¸ë¡"}}},nl:{slash_menu:{two_columns:{title:"Twee Kolommen",subtext:"Twee kolommen naast elkaar",aliases:["kolommen","rij","verdelen"],group:"Basisblokken"},three_columns:{title:"Drie Kolommen",subtext:"Drie kolommen naast elkaar",aliases:["kolommen","rij","verdelen"],group:"Basisblokken"}}},pl:{slash_menu:{two_columns:{title:"Dwie Kolumny",subtext:"Dwie kolumny obok siebie",aliases:["kolumny","rzÄ
d","podzieliÄ"],group:"Podstawowe bloki"},three_columns:{title:"Trzy Kolumny",subtext:"Trzy kolumny obok siebie",aliases:["kolumny","rzÄ
d","podzieliÄ"],group:"Podstawowe bloki"}}},pt:{slash_menu:{two_columns:{title:"Duas Colunas",subtext:"Duas colunas lado a lado",aliases:["colunas","linha","dividir"],group:"Blocos b\xe1sicos"},three_columns:{title:"Tr\xeas Colunas",subtext:"Tr\xeas colunas lado a lado",aliases:["colunas","linha","dividir"],group:"Blocos b\xe1sicos"}}},ru:{slash_menu:{two_columns:{title:"Ðва СÑолбÑа",subtext:"Ðва ÑÑолбÑа ÑÑдом",aliases:["ÑÑолбÑÑ","ÑÑд","ÑазделиÑÑ"],group:"ÐазовÑе блоки"},three_columns:{title:"ТÑи СÑолбÑа",subtext:"ТÑи ÑÑолбÑа ÑÑдом",aliases:["ÑÑолбÑÑ","ÑÑд","ÑазделиÑÑ"],group:"ÐазовÑе блоки"}}},vi:{slash_menu:{two_columns:{title:"Hai Cá»t",subtext:"Hai cá»t cạnh nhau",aliases:["cá»t","h\xe0ng","chia"],group:"Khá»i cÆ¡ bản"},three_columns:{title:"Ba Cá»t",subtext:"Ba cá»t cạnh nhau",aliases:["cá»t","h\xe0ng","chia"],group:"Khá»i cÆ¡ bản"}}},zh:{slash_menu:{two_columns:{title:"两å",subtext:"两åå¹¶æ",aliases:["å","è¡","åå²"],group:"åºç¡"},three_columns:{title:"ä¸å",subtext:"ä¸åå¹¶æ",aliases:["å","è¡","åå²"],group:"åºç¡"}}}},Symbol.toStringTag,{value:"Module"}));function m(e){if(!e.dictionary.multi_column)throw Error("Multi-column dictionary not found");return e.dictionary.multi_column}let f=new a.hs("ColumnResizePlugin");class h{constructor(e,t){u(this,"editor"),u(this,"view"),u(this,"RESIZE_MARGIN_WIDTH_PX",20),u(this,"COLUMN_MIN_WIDTH_P
1ERCENT",.5),u(this,"getColumnHoverOrDefaultState",e=>{if(!this.editor.isEditable)return{type:"default"};let t=e.target;if(!this.view.dom.contains(t))return{type:"default"};let o=t.closest(".bn-block-column");if(!o)return{type:"default"};let n=e.clientX,a=o.getBoundingClientRect(),i=n<a.left+this.RESIZE_MARGIN_WIDTH_PX?"left":n>a.right-this.RESIZE_MARGIN_WIDTH_PX?"right":"none",l="left"===i?o.previousElementSibling:"right"===i?o.nextElementSibling:void 0;if(!l)return{type:"default"};let s="left"===i?l:o,c="left"===i?o:l,d=s.getAttribute("data-id"),u=c.getAttribute("data-id"),p=(0,r.dV$)(d,this.view.state.doc),m=(0,r.dV$)(u,this.view.state.doc);if(!p||!m||!p.posBeforeNode)throw Error("Column not found");return{type:"hover",leftColumn:{element:s,id:d,...p},rightColumn:{element:c,id:u,...m}}}),u(this,"mouseDownHandler",e=>{let t=this.getColumnHoverOrDefaultState(e);if("default"===t.type)return;e.preventDefault();let o=e.clientX,r=t.leftColumn.element.getBoundingClientRect().width,n=t.rightColumn.element.getBoundingClientRect().width,a=t.leftColumn.node.attrs.width,i=t.rightColumn.node.attrs.width;t={type:"resize",startPos:o,leftColumn:{...t.leftColumn,widthPx:r,widthPercent:a},rightColumn:{...t.rightColumn,widthPx:n,widthPercent:i}},this.view.dispatch(this.view.state.tr.setMeta(f,t)),this.editor.sideMenu.freezeMenu()}),u(this,"mouseMoveHandler",e=>{var t,o;let r=f.getState(this.view.state);if(!r)return;if("resize"!==r.type){let n=this.getColumnHoverOrDefaultState(e),a="default"===r.type&&"default"===n.type,i="default"!==r.type&&"default"!==n.type&&r.leftColumn.id===n.leftColumn.id&&r.rightColumn.id===n.rightColumn.id;if(a||i||"hover"===n.type&&null!=(o=null==(t=this.editor.sideMenu.view)?void 0:t.state)&&o.show)return;this.view.dispatch(this.view.state.tr.setMeta(f,n));return}let n=(e.clientX-r.startPos)*r.leftColumn.widthPercent,a=(r.leftColumn.widthPx+n)/r.leftColumn.widthPx-1,i=r.leftColumn.widthPercent+a,l=r.rightColumn.widthPercent-a;i<this.COLUMN_MIN_WIDTH_PERCENT?(l-=this.COLUMN_MIN_WIDTH_PERCENT-i,i=this.COLUMN_MIN_WIDTH_PERCENT):l<this.COLUMN_MIN_WIDTH_PERCENT&&(i-=this.COLUMN_MIN_WIDTH_PERCENT-l,l=this.COLUMN_MIN_WIDTH_PERCENT),this.view.dispatch(this.view.state.tr.setNodeAttribute(r.leftColumn.posBeforeNode,"width",i).setNodeAttribute(r.rightColumn.posBeforeNode,"width",l).setMeta("addToHistory",!1))}),u(this,"mouseUpHandler",e=>{let t=f.getState(this.view.state);if(!t||"resize"!==t.type)return;let o=this.getColumnHoverOrDefaultState(e);this.view.dispatch(this.view.state.tr.setMeta(f,o)),this.editor.sideMenu.unfreezeMenu()}),this.editor=e,this.view=t,this.view.dom.addEventListener("mousedown",this.mouseDownHandler),document.body.addEventListener("mousemove",this.mouseMoveHandler),document.body.addEventListener("mouseup",this.mouseUpHandler)}destroy(){this.view.dom.removeEventListener("mousedown",this.mouseDownHandler),document.body.removeEventListener("mousemove",this.mouseMoveHandler),document.body.removeEventListener("mouseup",this.mouseUpHandler)}}let v=(0,r.xeQ)({name:"column",group:"bnBlock childContainer",content:"blockContainer+",priority:40,defining:!0,marks:"deletion insertion modification",addAttributes:()=>({width:{default:1,parseHTML:e=>{let t=e.getAttribute("data-width");if(null===t)return null;let o=parseFloat(t);return isFinite(o)?o:null},renderHTML:e=>({"data-width":e.width.toString(),style:`flex-grow: ${e.width};`})}}),parseHTML(){return[{tag:"div",getAttrs:e=>"string"!=typeof e&&e.getAttribute("data-node-type")===this.name&&{}}]},renderHTML({HTMLAttributes:e}){let t=document.createElement("div");for(let[o,r]of(t.className="bn-block-column",t.setAttribute("data-node-type",this.name),Object.entries(e)))t.setAttribute(o,r);return{dom:t,contentDOM:t}},addExtensions(){let e;return[(e=this.options.editor,n.YY.create({name:"columnResize",addProseMirrorPlugins:()=>[new a.k_({key:f,props:{decorations:e=>{let t=f.getState(e);return t&&"default"!==t.type?i.zF.create(e.doc,[i.NZ.node(t.leftColumn.posBeforeNode,t.leftColumn.posBeforeNode+t.leftColumn.node.nodeSize,{style:"box-shadow: 4px 0 0 #ccc; cursor: col-resize"}),i.NZ.node(t.rightColumn.posBeforeNode,t.rightColumn.posBeforeNode+t.rightColumn.node.nodeSize,{style:"cursor: col-resize"})]):i.zF.empty}},state:{init:()=>({type:"default"}),apply:(e,t)=>{let o=e.getMeta(f);
1return void 0===o?t:o}},view:t=>new h(e,t)})]}))]}}),g=(0,r.xeQ)({name:"columnList",group:"childContainer bnBlock blockGroupChild",content:"column column+",priority:40,defining:!0,marks:"deletion insertion modification",parseHTML(){return[{tag:"div",getAttrs:e=>"string"!=typeof e&&e.getAttribute("data-node-type")===this.name&&{}}]},renderHTML({HTMLAttributes:e}){let t=document.createElement("div");for(let[o,r]of(t.className="bn-block-column-list",t.setAttribute("data-node-type",this.name),Object.entries(e)))t.setAttribute(o,r);return t.style.display="flex",{dom:t,contentDOM:t}}}),y=(0,r.V4G)(v,{width:{default:1}}),b=(0,r.V4G)(g,{}),w=r.fb2.create({blockSpecs:{column:y,columnList:b}}),x=e=>r.fb2.create({blockSpecs:{...e.blockSpecs,column:y,columnList:b},inlineContentSpecs:e.inlineContentSpecs,styleSpecs:e.styleSpecs});function k(e){let t=e.editor;return new a.k_({view:t=>new C(t,e),props:{handleDrop(e,o,n,a){let i=e.posAtCoords({left:o.clientX,top:o.clientY});if(!i)throw Error("Could not get event position");let l=j(e.state,i),s=(0,r.cVW)(l),c=e.nodeDOM(l.posBeforeNode).getBoundingClientRect(),d="regular";if(o.clientX<=c.left+.1*c.width&&(d="left"),o.clientX>=c.right-.1*c.width&&(d="right"),"regular"===d)return!1;let u=(0,r.$Vl)(n.content.child(0),t.pmSchema);if("column"===s.blockNoteType){let o=e.state.doc.resolve(s.bnBlock.beforePos).node(),n=(0,r.$Vl)(o,t.pmSchema),a=0;n.children.forEach(e=>{a+=e.props.width});let i=a/n.children.length;if(i<.99||i>1.01){let e=1/i;n.children.forEach(t=>{t.props.width=t.props.width*e})}let l=n.children.findIndex(e=>e.id===s.bnBlock.node.attrs.id),c=n.children.map(e=>({...e,children:e.children.filter(e=>e.id!==u.id)})).filter(e=>e.children.length>0).toSpliced("left"===d?l:l+1,0,{type:"column",children:[u],props:{},content:void 0,id:r.pdF.options.generateID()});t.removeBlocks([u]),t.updateBlock(n,{children:c})}else{let e=(0,r.$Vl)(s.bnBlock.node,t.pmSchema);if(e.id===u.id)return;let o="left"===d?[u,e]:[e,u];t.removeBlocks([u]),t.replaceBlocks([e],[{type:"columnList",children:o.map(e=>({type:"column",children:[e]}))}])}return!0}}})}class C{constructor(e,t){u(this,"width"),u(this,"color"),u(this,"class"),u(this,"cursorPos"),u(this,"element",null),u(this,"timeout"),u(this,"handlers"),this.editorView=e,this.width=t.width??1,this.color=!1===t.color?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map(t=>{let o=e=>{this[t](e)};return e.dom.addEventListener(t,o,"drop"===t||void 0),{name:t,handler:o}})}destroy(){this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t,"drop"===e||void 0))}update(e,t){null!=this.cursorPos&&t.doc!==e.state.doc&&(this.cursorPos.pos>e.state.doc.content.size?this.setCursor(void 0):this.updateOverlay())}setCursor(e){var t,o;e===this.cursorPos||(null==e?void 0:e.pos)===(null==(t=this.cursorPos)?void 0:t.pos)&&(null==e?void 0:e.position)===(null==(o=this.cursorPos)?void 0:o.position)||(this.cursorPos=e,e?this.updateOverlay():(this.element.parentNode.removeChild(this.element),this.element=null))}updateOverlay(){let e,t,o;if(!this.cursorPos)throw Error("updateOverlay called with no cursor position");let r=this.editorView.state.doc.resolve(this.cursorPos.pos),n=!r.parent.inlineContent,a=this.editorView.dom,i=a.getBoundingClientRect(),l=i.width/a.offsetWidth,s=i.height/a.offsetHeight;if(n){let t=r.nodeBefore,o=r.nodeAfter;if(t||o)if("left"===this.cursorPos.position||"right"===this.cursorPos.position){let t=this.editorView.nodeDOM(this.cursorPos.pos);if(!t)throw Error("nodeDOM returned null in updateOverlay");let o=t.getBoundingClientRect(),r=this.width/2*s,n="left"===this.cursorPos.position?o.left:o.right;e={left:n-r,right:n+r,top:o.top,bottom:o.bottom}}else{let r=this.editorView.nodeDOM(this.cursorPos.pos-(t?t.nodeSize:0));if(r){let n=r.getBoundingClientRect(),a=t?n.bottom:n.top;t&&o&&(a=(a+this.editorView.nodeDOM(this.cursorPos.pos).getBoundingClientRect().top)/2);let i=this.width/2*s;"regular"===this.cursorPos.position&&(e={left:n.left,right:n.right,top:a-i,bottom:a+i})}}}if(!e){let t=this.editorView.coordsAtPos(this.cursorPos.pos),o=this.width/2*l;e={left:t.left-o,right:t.left+o,top:t.top,bottom:t.bottom}}let c=this.editorView.dom.offsetParent;if(this.element||(this.element=c.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-vertical","regular"!==this.cursorPos.position),this.element.classList.toggle("prosemirror-dropcursor-inline",!n),c&&(c!==document.body||"static"!==getComputedStyle(c).position)){let e=c.getBoundingClientRect(),r=e.width/c.offsetWidth,n=e.he
1ight/c.offsetHeight;t=e.left-c.scrollLeft*r,o=e.top-c.scrollTop*n}else t=-window.scrollX,o=-window.scrollY;this.element.style.left=(e.left-t)/l+"px",this.element.style.top=(e.top-o)/s+"px",this.element.style.width=(e.right-e.left)/l+"px",this.element.style.height=(e.bottom-e.top)/s+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(void 0),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),o=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),r=o&&o.type.spec.disableDropCursor,n="function"==typeof r?r(this.editorView,t,e):r;if(t&&!n){let o="regular",r=t.pos,n=j(this.editorView.state,t),a=this.editorView.nodeDOM(n.posBeforeNode).getBoundingClientRect();if(e.clientX<=a.left+.1*a.width&&(o="left",r=n.posBeforeNode),e.clientX>=a.right-.1*a.width&&(o="right",r=n.posBeforeNode),"regular"===o&&this.editorView.dragging&&this.editorView.dragging.slice){let e=(0,l.Um)(this.editorView.state.doc,r,this.editorView.dragging.slice);null!=e&&(r=e)}this.setCursor({pos:r,position:o}),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.setCursor(void 0)}dragleave(e){e.target!==this.editorView.dom&&this.editorView.dom.contains(e.relatedTarget)||this.setCursor(void 0)}}function j(e,t){let o=(0,r.SjT)(e.doc,t.pos),n=e.doc.resolve(o.posBeforeNode);return"column"===n.parent.type.name&&(n=e.doc.resolve(n.before())),{posBeforeNode:n.pos,node:n.nodeAfter}}var S={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},N=c.createContext&&c.createContext(S),P=["attr","size","title"];function T(){return(T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e}).apply(this,arguments)}function E(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}function R(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?E(Object(o),!0).forEach(function(t){var r,n,a;r=e,n=t,a=o[t],(n=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var r=o.call(e,t);if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(n))in r?Object.defineProperty(r,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[n]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):E(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function O(e){return t=>c.createElement(_,T({attr:R({},e.attr)},t),function e(t){return t&&t.map((t,o)=>c.createElement(t.tag,R({key:o},t.attr),e(t.child)))}(e.child))}function _(e){var t=t=>{var o,{attr:r,size:n,title:a}=e,i=function(e,t){if(null==e)return{};var o,r,n=function(e,t){if(null==e)return{};var o={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;o[r]=e[r]}return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)o=a[r],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}(e,P),l=n||t.size||"1em";return t.className&&(o=t.className),e.className&&(o=(o?o+" ":"")+e.className),c.createElement("svg",T({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,i,{className:o,style:R(R({color:e.color||t.color},t.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),a&&c.createElement("title",null,a),e.children)};return void 0!==N?c.createElement(N.Consumer,null,e=>t(e)):t(S)}function M(e){return O({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M3 3m0 1a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v16a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1zm9 -1v18"},child:[]}]})(e)}function I(e){return O({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M3 3m0 1a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v16a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1zm6 -1v18m6 -18v18"},child:[]}]})(e)}function D(e){let t=[];return"column"in e.schema.blockSchema&&e.schema.blockSchema.columnList===w.blockSchema.columnList&&"column"in e.schema.blockSchema&&e.schema.blockSchema.column===w.blockSchema.column&&t.push({...m(e).slash_menu.two_columns,icon:(0,s.jsx)(M,{size:18}),onItemClick:()=>{(0,r.tM1)(e,{type:"columnList",children:[{type:"column",children:[{type:"paragraph"}]},{type:"column",children:[{type:"paragraph"}]}]})}},{...m(e).slash_menu.three_columns,icon:(0,s.jsx)(I,{size:18}),onItemClick:()=>{(0,r.tM1)(e,{type:"columnList",children:[{type:"column",children:[{type:"paragraph"}]},{type:"column",children:[{type:"paragraph"}]},{type:"column",children:[{type:"paragraph"}]}]})}}),t}},739444:(e,t,o)=>{o.d(t,{A:()=>r});let r=(0,o(76800).A)("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]])},817870:(e,t,o)=>{o.r(t),o.d(t,{default:()=>r});var r=(0,o(528769).A)("filled","circle-filled","IconCircleFilled",[["path",{d:"M7 3.34a10 10 0 1 1 -4.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 4.995 -8.336z",key:"svg-0"}]])},880069:(e,t,o)=>{o.r(t),o.d(t,{default:()=>r});var r=(0,o(528769).A)("outline","upload","IconUpload",[["path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M7 9l5 -5l5 5",key:"svg-1"}],["path",{d:"M12 4l0 12",key:"svg-2"}]])},921885:(e,t,o)=>{o.r(t),o.d(t,{default:()=>r});var r=(0,o(528769).A)("outline","separator","IconSeparator",[["path",{d:"M3 12l0 .01",key:"svg-0"}],["path",{d:"M7 12l10 0",key:"svg-1"}],["path",{d:"M21 12l0 .01",key:"svg-2"}]])}}]); 2//# sourceMappingURL=526-85a3ea8ea90114ab.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.