From ba7970b31edbbc35f4e28753509f3171a708d3b4 Mon Sep 17 00:00:00 2001 From: Github Actions Date: Wed, 14 Aug 2024 08:49:21 +0000 Subject: [PATCH] ci: automatic build fixes --- ...790a0995.js => AddContentIcon-60d5e19c.js} | 2 +- ...Icon-54252c75.js => CheckIcon-9f687844.js} | 2 +- ...der-19a8277d.js => ClipLoader-f52b169b.js} | 2 +- ...on-0610dd77.js => DailyMotion-b31bb25a.js} | 2 +- ...con-396521e3.js => DeleteIcon-9461c6b1.js} | 2 +- ...ebook-5af94284.js => Facebook-982fecad.js} | 2 +- ...yer-231028e2.js => FilePlayer-6456896f.js} | 2 +- ...oIcon-473ded19.js => InfoIcon-89f3f76d.js} | 2 +- ...altura-1ff524f5.js => Kaltura-70d941fb.js} | 2 +- ...Icon-d047ebb5.js => MergeIcon-dc64ffd2.js} | 2 +- ...cloud-1ee1d636.js => Mixcloud-6d8c58dc.js} | 2 +- ...a8e305b7.js => NodeCircleIcon-b9d0958d.js} | 2 +- ...sIcon-c31fb232.js => PlusIcon-95ca5a40.js} | 2 +- ...opover-8ff60b97.js => Popover-a7534715.js} | 2 +- ...review-d32c5564.js => Preview-d1601aa7.js} | 2 +- ...con-d549dd07.js => SearchIcon-c000717e.js} | 2 +- ...leton-079276a0.js => Skeleton-6b5d8ec7.js} | 2 +- ...oud-43839928.js => SoundCloud-edbca398.js} | 2 +- .../{Stack-dbe00046.js => Stack-a4065033.js} | 2 +- ...ble-bfbc2d5d.js => Streamable-9ca10da6.js} | 2 +- ...ase-f58c5852.js => SwitchBase-49769912.js} | 2 +- .../{Tabs-b4885406.js => Tabs-6e4fbac2.js} | 2 +- ...8d1e37.js => TextareaAutosize-04e2890c.js} | 2 +- ...{Twitch-967d8a02.js => Twitch-e4c05adf.js} | 2 +- ...idyard-bf15707d.js => Vidyard-e3e4dcb8.js} | 2 +- .../{Vimeo-2200abd5.js => Vimeo-85e297dc.js} | 2 +- ...{Wistia-0be26dcd.js => Wistia-c5e6d427.js} | 2 +- ...ouTube-6ce9a547.js => YouTube-06c47415.js} | 2 +- ...-b719273b.js => createSvgIcon-c64a52be.js} | 2 +- .../{index-97de25c0.js => index-1130cd3a.js} | 6 +- .../{index-584de0f7.js => index-26c7ce89.js} | 2 +- .../{index-c101d01d.js => index-2818a813.js} | 2 +- .../{index-837b4b05.js => index-2ce49eeb.js} | 4 +- .../{index-ac7b69fc.js => index-3862aa83.js} | 2 +- .../{index-9a45d929.js => index-3886dc98.js} | 2 +- .../{index-0deccf02.js => index-4f7525f2.js} | 2 +- .../{index-375a8c2d.js => index-5370554b.js} | 2 +- .../{index-adad2e25.js => index-73f6b088.js} | 10 +- .../{index-29d402d8.js => index-96aff156.js} | 2 +- .../{index-d66bf21e.js => index-a904ba63.js} | 6 +- .../{index-5ef6dc30.js => index-aa6cc2a1.js} | 16 +-- build/assets/index-aac659dd.js | 29 ---- .../{index-6851ff74.js => index-ae125883.js} | 4 +- .../{index-73fb50fe.js => index-bbc2f2ba.js} | 2 +- .../{index-de7da582.js => index-bd1e0bc6.js} | 6 +- .../{index-ac3ebd0e.js => index-bd349272.js} | 4 +- .../{index-54401641.js => index-cc30c812.js} | 8 +- .../{index-06d04bb9.js => index-ce0a9014.js} | 2 +- .../{index-7adf0284.js => index-d9eecfe2.js} | 10 +- .../{index-f802a35d.js => index-f330db9f.js} | 4 +- .../{index-21067c9d.js => index-f50d1ab5.js} | 2 +- build/assets/index-f812334e.js | 71 ++++++++++ .../{index-93bc2f63.js => index-f857b04d.js} | 130 +++++++++++------- build/assets/index-f870d337.js | 71 ---------- ....esm-9353033f.js => index.esm-22240fd2.js} | 2 +- ...s-f54e8b6d.js => useSlotProps-f1483ce3.js} | 2 +- build/index.html | 2 +- 57 files changed, 231 insertions(+), 232 deletions(-) rename build/assets/{AddContentIcon-790a0995.js => AddContentIcon-60d5e19c.js} (97%) rename build/assets/{CheckIcon-54252c75.js => CheckIcon-9f687844.js} (92%) rename build/assets/{ClipLoader-19a8277d.js => ClipLoader-f52b169b.js} (97%) rename build/assets/{DailyMotion-0610dd77.js => DailyMotion-b31bb25a.js} (95%) rename build/assets/{DeleteIcon-396521e3.js => DeleteIcon-9461c6b1.js} (96%) rename build/assets/{Facebook-5af94284.js => Facebook-982fecad.js} (96%) rename build/assets/{FilePlayer-231028e2.js => FilePlayer-6456896f.js} (98%) rename build/assets/{InfoIcon-473ded19.js => InfoIcon-89f3f76d.js} (97%) rename build/assets/{Kaltura-1ff524f5.js => Kaltura-70d941fb.js} (95%) rename build/assets/{MergeIcon-d047ebb5.js => MergeIcon-dc64ffd2.js} (97%) rename build/assets/{Mixcloud-1ee1d636.js => Mixcloud-6d8c58dc.js} (95%) rename build/assets/{NodeCircleIcon-a8e305b7.js => NodeCircleIcon-b9d0958d.js} (91%) rename build/assets/{PlusIcon-c31fb232.js => PlusIcon-95ca5a40.js} (94%) rename build/assets/{Popover-8ff60b97.js => Popover-a7534715.js} (99%) rename build/assets/{Preview-d32c5564.js => Preview-d1601aa7.js} (97%) rename build/assets/{SearchIcon-d549dd07.js => SearchIcon-c000717e.js} (96%) rename build/assets/{Skeleton-079276a0.js => Skeleton-6b5d8ec7.js} (97%) rename build/assets/{SoundCloud-43839928.js => SoundCloud-edbca398.js} (95%) rename build/assets/{Stack-dbe00046.js => Stack-a4065033.js} (99%) rename build/assets/{Streamable-bfbc2d5d.js => Streamable-9ca10da6.js} (95%) rename build/assets/{SwitchBase-f58c5852.js => SwitchBase-49769912.js} (94%) rename build/assets/{Tabs-b4885406.js => Tabs-6e4fbac2.js} (98%) rename build/assets/{TextareaAutosize-9f8d1e37.js => TextareaAutosize-04e2890c.js} (91%) rename build/assets/{Twitch-967d8a02.js => Twitch-e4c05adf.js} (95%) rename build/assets/{Vidyard-bf15707d.js => Vidyard-e3e4dcb8.js} (95%) rename build/assets/{Vimeo-2200abd5.js => Vimeo-85e297dc.js} (96%) rename build/assets/{Wistia-0be26dcd.js => Wistia-c5e6d427.js} (96%) rename build/assets/{YouTube-6ce9a547.js => YouTube-06c47415.js} (97%) rename build/assets/{createSvgIcon-b719273b.js => createSvgIcon-c64a52be.js} (97%) rename build/assets/{index-97de25c0.js => index-1130cd3a.js} (52%) rename build/assets/{index-584de0f7.js => index-26c7ce89.js} (99%) rename build/assets/{index-c101d01d.js => index-2818a813.js} (64%) rename build/assets/{index-837b4b05.js => index-2ce49eeb.js} (74%) rename build/assets/{index-ac7b69fc.js => index-3862aa83.js} (92%) rename build/assets/{index-9a45d929.js => index-3886dc98.js} (85%) rename build/assets/{index-0deccf02.js => index-4f7525f2.js} (64%) rename build/assets/{index-375a8c2d.js => index-5370554b.js} (91%) rename build/assets/{index-adad2e25.js => index-73f6b088.js} (95%) rename build/assets/{index-29d402d8.js => index-96aff156.js} (96%) rename build/assets/{index-d66bf21e.js => index-a904ba63.js} (51%) rename build/assets/{index-5ef6dc30.js => index-aa6cc2a1.js} (71%) delete mode 100644 build/assets/index-aac659dd.js rename build/assets/{index-6851ff74.js => index-ae125883.js} (78%) rename build/assets/{index-73fb50fe.js => index-bbc2f2ba.js} (91%) rename build/assets/{index-de7da582.js => index-bd1e0bc6.js} (85%) rename build/assets/{index-ac3ebd0e.js => index-bd349272.js} (53%) rename build/assets/{index-54401641.js => index-cc30c812.js} (91%) rename build/assets/{index-06d04bb9.js => index-ce0a9014.js} (98%) rename build/assets/{index-7adf0284.js => index-d9eecfe2.js} (98%) rename build/assets/{index-f802a35d.js => index-f330db9f.js} (93%) rename build/assets/{index-21067c9d.js => index-f50d1ab5.js} (99%) create mode 100644 build/assets/index-f812334e.js rename build/assets/{index-93bc2f63.js => index-f857b04d.js} (72%) delete mode 100644 build/assets/index-f870d337.js rename build/assets/{index.esm-9353033f.js => index.esm-22240fd2.js} (98%) rename build/assets/{useSlotProps-f54e8b6d.js => useSlotProps-f1483ce3.js} (78%) diff --git a/build/assets/AddContentIcon-790a0995.js b/build/assets/AddContentIcon-60d5e19c.js similarity index 97% rename from build/assets/AddContentIcon-790a0995.js rename to build/assets/AddContentIcon-60d5e19c.js index 986abf25c..aaf268566 100644 --- a/build/assets/AddContentIcon-790a0995.js +++ b/build/assets/AddContentIcon-60d5e19c.js @@ -1 +1 @@ -import{j as C}from"./index-21067c9d.js";const r=s=>C.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("mask",{id:"mask0_1259_25",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:C.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_1259_25)",children:C.jsx("path",{d:"M11.25 12.75V16C11.25 16.2125 11.3219 16.3906 11.4657 16.5343C11.6095 16.6781 11.7877 16.75 12.0003 16.75C12.2129 16.75 12.391 16.6781 12.5346 16.5343C12.6782 16.3906 12.75 16.2125 12.75 16V12.75H16C16.2125 12.75 16.3906 12.6781 16.5344 12.5343C16.6781 12.3904 16.75 12.2122 16.75 11.9997C16.75 11.7871 16.6781 11.609 16.5344 11.4654C16.3906 11.3218 16.2125 11.25 16 11.25H12.75V7.99998C12.75 7.78748 12.6781 7.60935 12.5343 7.4656C12.3905 7.32187 12.2123 7.25 11.9997 7.25C11.7871 7.25 11.609 7.32187 11.4654 7.4656C11.3218 7.60935 11.25 7.78748 11.25 7.99998V11.25H8.00001C7.78751 11.25 7.60939 11.3219 7.46566 11.4657C7.32191 11.6095 7.25003 11.7877 7.25003 12.0003C7.25003 12.2129 7.32191 12.391 7.46566 12.5346C7.60939 12.6782 7.78751 12.75 8.00001 12.75H11.25ZM12.0017 21.5C10.6877 21.5 9.45271 21.2506 8.29658 20.752C7.14043 20.2533 6.13475 19.5765 5.27953 18.7217C4.4243 17.8669 3.74724 16.8616 3.24836 15.706C2.74947 14.5504 2.50003 13.3156 2.50003 12.0017C2.50003 10.6877 2.74936 9.45268 3.24803 8.29655C3.7467 7.1404 4.42345 6.13472 5.27828 5.2795C6.13313 4.42427 7.13837 3.74721 8.29401 3.24833C9.44962 2.74944 10.6844 2.5 11.9983 2.5C13.3123 2.5 14.5473 2.74933 15.7034 3.248C16.8596 3.74667 17.8653 4.42342 18.7205 5.27825C19.5757 6.1331 20.2528 7.13834 20.7517 8.29398C21.2505 9.44959 21.5 10.6844 21.5 11.9983C21.5 13.3122 21.2506 14.5473 20.752 15.7034C20.2533 16.8596 19.5766 17.8652 18.7217 18.7205C17.8669 19.5757 16.8616 20.2527 15.706 20.7516C14.5504 21.2505 13.3156 21.5 12.0017 21.5ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76664 19.225 7.87498 17.675 6.32498C16.125 4.77498 14.2333 3.99998 12 3.99998C9.76667 3.99998 7.87501 4.77498 6.32501 6.32498C4.77501 7.87498 4.00001 9.76664 4.00001 12C4.00001 14.2333 4.77501 16.125 6.32501 17.675C7.87501 19.225 9.76667 20 12 20Z",fill:"currentColor"})})]});export{r as A}; +import{j as C}from"./index-f50d1ab5.js";const r=s=>C.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("mask",{id:"mask0_1259_25",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:C.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_1259_25)",children:C.jsx("path",{d:"M11.25 12.75V16C11.25 16.2125 11.3219 16.3906 11.4657 16.5343C11.6095 16.6781 11.7877 16.75 12.0003 16.75C12.2129 16.75 12.391 16.6781 12.5346 16.5343C12.6782 16.3906 12.75 16.2125 12.75 16V12.75H16C16.2125 12.75 16.3906 12.6781 16.5344 12.5343C16.6781 12.3904 16.75 12.2122 16.75 11.9997C16.75 11.7871 16.6781 11.609 16.5344 11.4654C16.3906 11.3218 16.2125 11.25 16 11.25H12.75V7.99998C12.75 7.78748 12.6781 7.60935 12.5343 7.4656C12.3905 7.32187 12.2123 7.25 11.9997 7.25C11.7871 7.25 11.609 7.32187 11.4654 7.4656C11.3218 7.60935 11.25 7.78748 11.25 7.99998V11.25H8.00001C7.78751 11.25 7.60939 11.3219 7.46566 11.4657C7.32191 11.6095 7.25003 11.7877 7.25003 12.0003C7.25003 12.2129 7.32191 12.391 7.46566 12.5346C7.60939 12.6782 7.78751 12.75 8.00001 12.75H11.25ZM12.0017 21.5C10.6877 21.5 9.45271 21.2506 8.29658 20.752C7.14043 20.2533 6.13475 19.5765 5.27953 18.7217C4.4243 17.8669 3.74724 16.8616 3.24836 15.706C2.74947 14.5504 2.50003 13.3156 2.50003 12.0017C2.50003 10.6877 2.74936 9.45268 3.24803 8.29655C3.7467 7.1404 4.42345 6.13472 5.27828 5.2795C6.13313 4.42427 7.13837 3.74721 8.29401 3.24833C9.44962 2.74944 10.6844 2.5 11.9983 2.5C13.3123 2.5 14.5473 2.74933 15.7034 3.248C16.8596 3.74667 17.8653 4.42342 18.7205 5.27825C19.5757 6.1331 20.2528 7.13834 20.7517 8.29398C21.2505 9.44959 21.5 10.6844 21.5 11.9983C21.5 13.3122 21.2506 14.5473 20.752 15.7034C20.2533 16.8596 19.5766 17.8652 18.7217 18.7205C17.8669 19.5757 16.8616 20.2527 15.706 20.7516C14.5504 21.2505 13.3156 21.5 12.0017 21.5ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76664 19.225 7.87498 17.675 6.32498C16.125 4.77498 14.2333 3.99998 12 3.99998C9.76667 3.99998 7.87501 4.77498 6.32501 6.32498C4.77501 7.87498 4.00001 9.76664 4.00001 12C4.00001 14.2333 4.77501 16.125 6.32501 17.675C7.87501 19.225 9.76667 20 12 20Z",fill:"currentColor"})})]});export{r as A}; diff --git a/build/assets/CheckIcon-54252c75.js b/build/assets/CheckIcon-9f687844.js similarity index 92% rename from build/assets/CheckIcon-54252c75.js rename to build/assets/CheckIcon-9f687844.js index 0177d09c8..021ca81e1 100644 --- a/build/assets/CheckIcon-54252c75.js +++ b/build/assets/CheckIcon-9f687844.js @@ -1 +1 @@ -import{j as C}from"./index-21067c9d.js";const t=o=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsx("path",{d:"M3.08467 5.34482L8.02842 0.401074C8.14508 0.284408 8.28363 0.226074 8.44404 0.226074C8.60446 0.226074 8.743 0.284408 8.85967 0.401074C8.97633 0.517741 9.03467 0.656283 9.03467 0.816699C9.03467 0.977116 8.97633 1.11566 8.85967 1.23232L3.493 6.59899C3.37633 6.71566 3.24022 6.77399 3.08467 6.77399C2.92911 6.77399 2.793 6.71566 2.67633 6.59899L0.168 4.09066C0.0513333 3.97399 -0.00456944 3.83545 0.000291667 3.67503C0.00515278 3.51462 0.0659167 3.37607 0.182583 3.25941C0.29925 3.14274 0.437792 3.08441 0.598208 3.08441C0.758625 3.08441 0.897167 3.14274 1.01383 3.25941L3.08467 5.34482Z",fill:"currentColor"})});export{t as C}; +import{j as C}from"./index-f50d1ab5.js";const t=o=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsx("path",{d:"M3.08467 5.34482L8.02842 0.401074C8.14508 0.284408 8.28363 0.226074 8.44404 0.226074C8.60446 0.226074 8.743 0.284408 8.85967 0.401074C8.97633 0.517741 9.03467 0.656283 9.03467 0.816699C9.03467 0.977116 8.97633 1.11566 8.85967 1.23232L3.493 6.59899C3.37633 6.71566 3.24022 6.77399 3.08467 6.77399C2.92911 6.77399 2.793 6.71566 2.67633 6.59899L0.168 4.09066C0.0513333 3.97399 -0.00456944 3.83545 0.000291667 3.67503C0.00515278 3.51462 0.0659167 3.37607 0.182583 3.25941C0.29925 3.14274 0.437792 3.08441 0.598208 3.08441C0.758625 3.08441 0.897167 3.14274 1.01383 3.25941L3.08467 5.34482Z",fill:"currentColor"})});export{t as C}; diff --git a/build/assets/ClipLoader-19a8277d.js b/build/assets/ClipLoader-f52b169b.js similarity index 97% rename from build/assets/ClipLoader-19a8277d.js rename to build/assets/ClipLoader-f52b169b.js index 15616ba21..24dbd8e2d 100644 --- a/build/assets/ClipLoader-19a8277d.js +++ b/build/assets/ClipLoader-f52b169b.js @@ -1,4 +1,4 @@ -import{r as m}from"./index-21067c9d.js";var g={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function h(e){if(typeof e=="number")return{value:e,unit:"px"};var t,a=(e.match(/^[0-9.]*/)||"").toString();a.includes(".")?t=parseFloat(a):t=parseInt(a,10);var r=(e.match(/[^0-9]*$/)||"").toString();return g[r]?{value:t,unit:r}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}function d(e){var t=h(e);return"".concat(t.value).concat(t.unit)}var b=function(e,t,a){var r="react-spinners-".concat(e,"-").concat(a);if(typeof window>"u"||!window.document)return r;var n=document.createElement("style");document.head.appendChild(n);var o=n.sheet,l=` +import{r as m}from"./index-f50d1ab5.js";var g={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function h(e){if(typeof e=="number")return{value:e,unit:"px"};var t,a=(e.match(/^[0-9.]*/)||"").toString();a.includes(".")?t=parseFloat(a):t=parseInt(a,10);var r=(e.match(/[^0-9]*$/)||"").toString();return g[r]?{value:t,unit:r}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}function d(e){var t=h(e);return"".concat(t.value).concat(t.unit)}var b=function(e,t,a){var r="react-spinners-".concat(e,"-").concat(a);if(typeof window>"u"||!window.document)return r;var n=document.createElement("style");document.head.appendChild(n);var o=n.sheet,l=` @keyframes `.concat(r,` { `).concat(t,` } diff --git a/build/assets/DailyMotion-0610dd77.js b/build/assets/DailyMotion-b31bb25a.js similarity index 95% rename from build/assets/DailyMotion-0610dd77.js rename to build/assets/DailyMotion-b31bb25a.js index ea8da5756..624980206 100644 --- a/build/assets/DailyMotion-0610dd77.js +++ b/build/assets/DailyMotion-b31bb25a.js @@ -1 +1 @@ -import{n as P,r as v}from"./index-21067c9d.js";import{u as D,p as O}from"./index-adad2e25.js";function b(t,e){for(var r=0;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,s=Object.defineProperty,w=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,j=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty,E=(t,e,r)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,A=(t,e)=>{for(var r in e)s(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of S(e))!T.call(t,a)&&a!==r&&s(t,a,{get:()=>e[a],enumerable:!(o=w(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?M(j(t)):{},h(e||!t||!t.__esModule?s(r,"default",{value:t,enumerable:!0}):r,t)),C=t=>h(s({},"__esModule",{value:!0}),t),n=(t,e,r)=>(E(t,typeof e!="symbol"?e+"":e,r),r),d={};A(d,{default:()=>p});var _=C(d),c=L(v),l=D,f=O;const x="https://api.dmcdn.net/all.js",N="DM",K="dmAsyncInit";class p extends c.Component{constructor(){super(...arguments),n(this,"callPlayer",l.callPlayer),n(this,"onDurationChange",()=>{const e=this.getDuration();this.props.onDuration(e)}),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)}),n(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{controls:r,config:o,onError:a,playing:i}=this.props,[,y]=e.match(f.MATCH_URL_DAILYMOTION);if(this.player){this.player.load(y,{start:(0,l.parseStartTime)(e),autoplay:i});return}(0,l.getSDK)(x,N,K,u=>u.player).then(u=>{if(!this.container)return;const m=u.player;this.player=new m(this.container,{width:"100%",height:"100%",video:y,params:{controls:r,autoplay:this.props.playing,mute:this.props.muted,start:(0,l.parseStartTime)(e),origin:window.location.origin,...o.params},events:{apiready:this.props.onReady,seeked:()=>this.props.onSeek(this.player.currentTime),video_end:this.props.onEnded,durationchange:this.onDurationChange,pause:this.props.onPause,playing:this.props.onPlay,waiting:this.props.onBuffer,error:g=>a(g)}})},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}n(p,"displayName","DailyMotion");n(p,"canPlay",f.canPlay.dailymotion);n(p,"loopOnEnded",!0);const R=P(_),k=b({__proto__:null,default:R},[_]);export{k as D}; +import{n as P,r as v}from"./index-f50d1ab5.js";import{u as D,p as O}from"./index-73f6b088.js";function b(t,e){for(var r=0;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,s=Object.defineProperty,w=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,j=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty,E=(t,e,r)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,A=(t,e)=>{for(var r in e)s(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of S(e))!T.call(t,a)&&a!==r&&s(t,a,{get:()=>e[a],enumerable:!(o=w(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?M(j(t)):{},h(e||!t||!t.__esModule?s(r,"default",{value:t,enumerable:!0}):r,t)),C=t=>h(s({},"__esModule",{value:!0}),t),n=(t,e,r)=>(E(t,typeof e!="symbol"?e+"":e,r),r),d={};A(d,{default:()=>p});var _=C(d),c=L(v),l=D,f=O;const x="https://api.dmcdn.net/all.js",N="DM",K="dmAsyncInit";class p extends c.Component{constructor(){super(...arguments),n(this,"callPlayer",l.callPlayer),n(this,"onDurationChange",()=>{const e=this.getDuration();this.props.onDuration(e)}),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)}),n(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{controls:r,config:o,onError:a,playing:i}=this.props,[,y]=e.match(f.MATCH_URL_DAILYMOTION);if(this.player){this.player.load(y,{start:(0,l.parseStartTime)(e),autoplay:i});return}(0,l.getSDK)(x,N,K,u=>u.player).then(u=>{if(!this.container)return;const m=u.player;this.player=new m(this.container,{width:"100%",height:"100%",video:y,params:{controls:r,autoplay:this.props.playing,mute:this.props.muted,start:(0,l.parseStartTime)(e),origin:window.location.origin,...o.params},events:{apiready:this.props.onReady,seeked:()=>this.props.onSeek(this.player.currentTime),video_end:this.props.onEnded,durationchange:this.onDurationChange,pause:this.props.onPause,playing:this.props.onPlay,waiting:this.props.onBuffer,error:g=>a(g)}})},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}n(p,"displayName","DailyMotion");n(p,"canPlay",f.canPlay.dailymotion);n(p,"loopOnEnded",!0);const R=P(_),k=b({__proto__:null,default:R},[_]);export{k as D}; diff --git a/build/assets/DeleteIcon-396521e3.js b/build/assets/DeleteIcon-9461c6b1.js similarity index 96% rename from build/assets/DeleteIcon-396521e3.js rename to build/assets/DeleteIcon-9461c6b1.js index c4b646c82..95b80657b 100644 --- a/build/assets/DeleteIcon-396521e3.js +++ b/build/assets/DeleteIcon-9461c6b1.js @@ -1 +1 @@ -import{j as e}from"./index-21067c9d.js";const s=C=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsxs("g",{id:"delete",children:[e.jsx("mask",{id:"mask0_2401_3378",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:e.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),e.jsx("g",{children:e.jsx("path",{id:"delete_2",d:"M6.08975 17.0834C5.67415 17.0834 5.31919 16.9362 5.02485 16.6419C4.73051 16.3475 4.58333 15.9926 4.58333 15.577V5.00009H4.375C4.19765 5.00009 4.04915 4.94026 3.9295 4.82061C3.80983 4.70095 3.75 4.55245 3.75 4.37511C3.75 4.19776 3.80983 4.04926 3.9295 3.92961C4.04915 3.80994 4.19765 3.75011 4.375 3.75011H7.49998C7.49998 3.54605 7.57183 3.37218 7.71552 3.22848C7.85922 3.08479 8.03309 3.01294 8.23715 3.01294H11.7628C11.9669 3.01294 12.1407 3.08479 12.2844 3.22848C12.4281 3.37218 12.5 3.54605 12.5 3.75011H15.625C15.8023 3.75011 15.9508 3.80994 16.0705 3.92961C16.1901 4.04926 16.25 4.19776 16.25 4.37511C16.25 4.55245 16.1901 4.70095 16.0705 4.82061C15.9508 4.94026 15.8023 5.00009 15.625 5.00009H15.4166V15.577C15.4166 15.9926 15.2695 16.3475 14.9751 16.6419C14.6808 16.9362 14.3258 17.0834 13.9102 17.0834H6.08975ZM14.1666 5.00009H5.83331V15.577C5.83331 15.6518 5.85735 15.7132 5.90544 15.7613C5.95352 15.8094 6.01496 15.8334 6.08975 15.8334H13.9102C13.985 15.8334 14.0464 15.8094 14.0945 15.7613C14.1426 15.7132 14.1666 15.6518 14.1666 15.577V5.00009ZM7.83654 14.1668H9.08652V6.66675H7.83654V14.1668ZM10.9134 14.1668H12.1634V6.66675H10.9134V14.1668Z",fill:"currentColor"})})]})});export{s as D}; +import{j as e}from"./index-f50d1ab5.js";const s=C=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsxs("g",{id:"delete",children:[e.jsx("mask",{id:"mask0_2401_3378",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:e.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),e.jsx("g",{children:e.jsx("path",{id:"delete_2",d:"M6.08975 17.0834C5.67415 17.0834 5.31919 16.9362 5.02485 16.6419C4.73051 16.3475 4.58333 15.9926 4.58333 15.577V5.00009H4.375C4.19765 5.00009 4.04915 4.94026 3.9295 4.82061C3.80983 4.70095 3.75 4.55245 3.75 4.37511C3.75 4.19776 3.80983 4.04926 3.9295 3.92961C4.04915 3.80994 4.19765 3.75011 4.375 3.75011H7.49998C7.49998 3.54605 7.57183 3.37218 7.71552 3.22848C7.85922 3.08479 8.03309 3.01294 8.23715 3.01294H11.7628C11.9669 3.01294 12.1407 3.08479 12.2844 3.22848C12.4281 3.37218 12.5 3.54605 12.5 3.75011H15.625C15.8023 3.75011 15.9508 3.80994 16.0705 3.92961C16.1901 4.04926 16.25 4.19776 16.25 4.37511C16.25 4.55245 16.1901 4.70095 16.0705 4.82061C15.9508 4.94026 15.8023 5.00009 15.625 5.00009H15.4166V15.577C15.4166 15.9926 15.2695 16.3475 14.9751 16.6419C14.6808 16.9362 14.3258 17.0834 13.9102 17.0834H6.08975ZM14.1666 5.00009H5.83331V15.577C5.83331 15.6518 5.85735 15.7132 5.90544 15.7613C5.95352 15.8094 6.01496 15.8334 6.08975 15.8334H13.9102C13.985 15.8334 14.0464 15.8094 14.0945 15.7613C14.1426 15.7132 14.1666 15.6518 14.1666 15.577V5.00009ZM7.83654 14.1668H9.08652V6.66675H7.83654V14.1668ZM10.9134 14.1668H12.1634V6.66675H10.9134V14.1668Z",fill:"currentColor"})})]})});export{s as D}; diff --git a/build/assets/Facebook-5af94284.js b/build/assets/Facebook-982fecad.js similarity index 96% rename from build/assets/Facebook-5af94284.js rename to build/assets/Facebook-982fecad.js index 6575b6f15..e9decdd6d 100644 --- a/build/assets/Facebook-5af94284.js +++ b/build/assets/Facebook-982fecad.js @@ -1 +1 @@ -import{n as _,r as P}from"./index-21067c9d.js";import{u as g,p as m}from"./index-adad2e25.js";function v(t,e){for(var r=0;ra[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var O=Object.create,i=Object.defineProperty,D=Object.getOwnPropertyDescriptor,E=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,I=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,k=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of E(e))!j.call(t,s)&&s!==r&&i(t,s,{get:()=>e[s],enumerable:!(a=D(e,s))||a.enumerable});return t},w=(t,e,r)=>(r=t!=null?O(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),F=t=>h(i({},"__esModule",{value:!0}),t),o=(t,e,r)=>(I(t,typeof e!="symbol"?e+"":e,r),r),b={};k(b,{default:()=>l});var d=F(b),u=w(P),n=g,x=m;const c="https://connect.facebook.net/en_US/sdk.js",f="FB",y="fbAsyncInit",L="facebook-player-";class l extends u.Component{constructor(){super(...arguments),o(this,"callPlayer",n.callPlayer),o(this,"playerID",this.props.config.playerId||`${L}${(0,n.randomString)()}`),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){if(r){(0,n.getSDK)(c,f,y).then(a=>a.XFBML.parse());return}(0,n.getSDK)(c,f,y).then(a=>{a.init({appId:this.props.config.appId,xfbml:!0,version:this.props.config.version}),a.Event.subscribe("xfbml.render",s=>{this.props.onLoaded()}),a.Event.subscribe("xfbml.ready",s=>{s.type==="video"&&s.id===this.playerID&&(this.player=s.instance,this.player.subscribe("startedPlaying",this.props.onPlay),this.player.subscribe("paused",this.props.onPause),this.player.subscribe("finishedPlaying",this.props.onEnded),this.player.subscribe("startedBuffering",this.props.onBuffer),this.player.subscribe("finishedBuffering",this.props.onBufferEnd),this.player.subscribe("error",this.props.onError),this.props.muted?this.callPlayer("mute"):this.callPlayer("unmute"),this.props.onReady(),document.getElementById(this.playerID).querySelector("iframe").style.visibility="visible")})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentPosition")}getSecondsLoaded(){return null}render(){const{attributes:e}=this.props.config,r={width:"100%",height:"100%"};return u.default.createElement("div",{style:r,id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false",...e})}}o(l,"displayName","Facebook");o(l,"canPlay",x.canPlay.facebook);o(l,"loopOnEnded",!0);const M=_(d),N=v({__proto__:null,default:M},[d]);export{N as F}; +import{n as _,r as P}from"./index-f50d1ab5.js";import{u as g,p as m}from"./index-73f6b088.js";function v(t,e){for(var r=0;ra[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var O=Object.create,i=Object.defineProperty,D=Object.getOwnPropertyDescriptor,E=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,I=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,k=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of E(e))!j.call(t,s)&&s!==r&&i(t,s,{get:()=>e[s],enumerable:!(a=D(e,s))||a.enumerable});return t},w=(t,e,r)=>(r=t!=null?O(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),F=t=>h(i({},"__esModule",{value:!0}),t),o=(t,e,r)=>(I(t,typeof e!="symbol"?e+"":e,r),r),b={};k(b,{default:()=>l});var d=F(b),u=w(P),n=g,x=m;const c="https://connect.facebook.net/en_US/sdk.js",f="FB",y="fbAsyncInit",L="facebook-player-";class l extends u.Component{constructor(){super(...arguments),o(this,"callPlayer",n.callPlayer),o(this,"playerID",this.props.config.playerId||`${L}${(0,n.randomString)()}`),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){if(r){(0,n.getSDK)(c,f,y).then(a=>a.XFBML.parse());return}(0,n.getSDK)(c,f,y).then(a=>{a.init({appId:this.props.config.appId,xfbml:!0,version:this.props.config.version}),a.Event.subscribe("xfbml.render",s=>{this.props.onLoaded()}),a.Event.subscribe("xfbml.ready",s=>{s.type==="video"&&s.id===this.playerID&&(this.player=s.instance,this.player.subscribe("startedPlaying",this.props.onPlay),this.player.subscribe("paused",this.props.onPause),this.player.subscribe("finishedPlaying",this.props.onEnded),this.player.subscribe("startedBuffering",this.props.onBuffer),this.player.subscribe("finishedBuffering",this.props.onBufferEnd),this.player.subscribe("error",this.props.onError),this.props.muted?this.callPlayer("mute"):this.callPlayer("unmute"),this.props.onReady(),document.getElementById(this.playerID).querySelector("iframe").style.visibility="visible")})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentPosition")}getSecondsLoaded(){return null}render(){const{attributes:e}=this.props.config,r={width:"100%",height:"100%"};return u.default.createElement("div",{style:r,id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false",...e})}}o(l,"displayName","Facebook");o(l,"canPlay",x.canPlay.facebook);o(l,"loopOnEnded",!0);const M=_(d),N=v({__proto__:null,default:M},[d]);export{N as F}; diff --git a/build/assets/FilePlayer-231028e2.js b/build/assets/FilePlayer-6456896f.js similarity index 98% rename from build/assets/FilePlayer-231028e2.js rename to build/assets/FilePlayer-6456896f.js index 3be460969..18bbcde63 100644 --- a/build/assets/FilePlayer-231028e2.js +++ b/build/assets/FilePlayer-6456896f.js @@ -1 +1 @@ -import{n as b,r as _}from"./index-21067c9d.js";import{u as O,p as A}from"./index-adad2e25.js";function R(s,e){for(var t=0;ti[n]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var I=Object.create,u=Object.defineProperty,D=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,M=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty,U=(s,e,t)=>e in s?u(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,N=(s,e)=>{for(var t in e)u(s,t,{get:e[t],enumerable:!0})},E=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of w(e))!k.call(s,n)&&n!==t&&u(s,n,{get:()=>e[n],enumerable:!(i=D(e,n))||i.enumerable});return s},j=(s,e,t)=>(t=s!=null?I(M(s)):{},E(e||!s||!s.__esModule?u(t,"default",{value:s,enumerable:!0}):t,s)),H=s=>E(u({},"__esModule",{value:!0}),s),r=(s,e,t)=>(U(s,typeof e!="symbol"?e+"":e,t),t),m={};N(m,{default:()=>P});var g=H(m),c=j(_),a=O,d=A;const y=typeof navigator<"u",F=y&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,v=y&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||F)&&!window.MSStream,V=y&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,T="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",C="Hls",B="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",x="dashjs",K="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",G="flvjs",X=/www\.dropbox\.com\/.+/,f=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,W="https://videodelivery.net/{id}/manifest/video.m3u8";class P extends c.Component{constructor(){super(...arguments),r(this,"onReady",(...e)=>this.props.onReady(...e)),r(this,"onPlay",(...e)=>this.props.onPlay(...e)),r(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),r(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),r(this,"onPause",(...e)=>this.props.onPause(...e)),r(this,"onEnded",(...e)=>this.props.onEnded(...e)),r(this,"onError",(...e)=>this.props.onError(...e)),r(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),r(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),r(this,"onDisablePIP",e=>{const{onDisablePIP:t,playing:i}=this.props;t(e),i&&this.play()}),r(this,"onPresentationModeChange",e=>{if(this.player&&(0,a.supportsWebKitPresentationMode)(this.player)){const{webkitPresentationMode:t}=this.player;t==="picture-in-picture"?this.onEnablePIP(e):t==="inline"&&this.onDisablePIP(e)}}),r(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),r(this,"mute",()=>{this.player.muted=!0}),r(this,"unmute",()=>{this.player.muted=!1}),r(this,"renderSourceElement",(e,t)=>typeof e=="string"?c.default.createElement("source",{key:t,src:e}):c.default.createElement("source",{key:t,...e})),r(this,"renderTrack",(e,t)=>c.default.createElement("track",{key:t,...e})),r(this,"ref",e=>{this.player&&(this.prevPlayer=this.player),this.player=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getSource(this.props.url);e&&(this.player.src=e),(v||this.props.config.forceDisableHls)&&this.player.load()}componentDidUpdate(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url!==e.url&&!(0,a.isMediaStream)(this.props.url)&&!(this.props.url instanceof Array)&&(this.player.srcObject=null)}componentWillUnmount(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}addListeners(e){const{url:t,playsinline:i}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.addEventListener("canplay",this.onReady),i&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}removeListeners(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}shouldUseAudio(e){return e.config.forceVideo||e.config.attributes.poster?!1:d.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio}shouldUseHLS(e){return V&&this.props.config.forceSafariHLS||this.props.config.forceHLS?!0:v||this.props.config.forceDisableHls?!1:d.HLS_EXTENSIONS.test(e)||f.test(e)}shouldUseDASH(e){return d.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}shouldUseFLV(e){return d.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}load(e){const{hlsVersion:t,hlsOptions:i,dashVersion:n,flvVersion:l}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,a.getSDK)(T.replace("VERSION",t),C).then(o=>{if(this.hls=new o(i),this.hls.on(o.Events.MANIFEST_PARSED,()=>{this.props.onReady()}),this.hls.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.hls,o)}),f.test(e)){const h=e.match(f)[1];this.hls.loadSource(W.replace("{id}",h))}else this.hls.loadSource(e);this.hls.attachMedia(this.player),this.props.onLoaded()}),this.shouldUseDASH(e)&&(0,a.getSDK)(B.replace("VERSION",n),x).then(o=>{this.dash=o.MediaPlayer().create(),this.dash.initialize(this.player,e,this.props.playing),this.dash.on("error",this.props.onError),parseInt(n)<3?this.dash.getDebug().setLogToBrowserConsole(!1):this.dash.updateSettings({debug:{logLevel:o.Debug.LOG_LEVEL_NONE}}),this.props.onLoaded()}),this.shouldUseFLV(e)&&(0,a.getSDK)(K.replace("VERSION",l),G).then(o=>{this.flv=o.createPlayer({type:"flv",url:e}),this.flv.attachMediaElement(this.player),this.flv.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.flv,o)}),this.flv.load(),this.props.onLoaded()}),e instanceof Array)this.player.load();else if((0,a.isMediaStream)(e))try{this.player.srcObject=e}catch{this.player.src=window.URL.createObjectURL(e)}}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="picture-in-picture"&&this.player.webkitSetPresentationMode("picture-in-picture")}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="inline"&&this.player.webkitSetPresentationMode("inline")}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(e.length===0)return 0;const t=e.end(e.length-1),i=this.getDuration();return t>i?i:t}getSource(e){const t=this.shouldUseHLS(e),i=this.shouldUseDASH(e),n=this.shouldUseFLV(e);if(!(e instanceof Array||(0,a.isMediaStream)(e)||t||i||n))return X.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}render(){const{url:e,playing:t,loop:i,controls:n,muted:l,config:o,width:h,height:p}=this.props,L=this.shouldUseAudio(this.props)?"audio":"video",S={width:h==="auto"?h:"100%",height:p==="auto"?p:"100%"};return c.default.createElement(L,{ref:this.ref,src:this.getSource(e),style:S,preload:"auto",autoPlay:t||void 0,controls:n,muted:l,loop:i,...o.attributes},e instanceof Array&&e.map(this.renderSourceElement),o.tracks.map(this.renderTrack))}}r(P,"displayName","FilePlayer");r(P,"canPlay",d.canPlay.file);const z=b(g),Q=R({__proto__:null,default:z},[g]);export{Q as F}; +import{n as b,r as _}from"./index-f50d1ab5.js";import{u as O,p as A}from"./index-73f6b088.js";function R(s,e){for(var t=0;ti[n]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var I=Object.create,u=Object.defineProperty,D=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,M=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty,U=(s,e,t)=>e in s?u(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,N=(s,e)=>{for(var t in e)u(s,t,{get:e[t],enumerable:!0})},E=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of w(e))!k.call(s,n)&&n!==t&&u(s,n,{get:()=>e[n],enumerable:!(i=D(e,n))||i.enumerable});return s},j=(s,e,t)=>(t=s!=null?I(M(s)):{},E(e||!s||!s.__esModule?u(t,"default",{value:s,enumerable:!0}):t,s)),H=s=>E(u({},"__esModule",{value:!0}),s),r=(s,e,t)=>(U(s,typeof e!="symbol"?e+"":e,t),t),m={};N(m,{default:()=>P});var g=H(m),c=j(_),a=O,d=A;const y=typeof navigator<"u",F=y&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,v=y&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||F)&&!window.MSStream,V=y&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,T="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",C="Hls",B="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",x="dashjs",K="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",G="flvjs",X=/www\.dropbox\.com\/.+/,f=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,W="https://videodelivery.net/{id}/manifest/video.m3u8";class P extends c.Component{constructor(){super(...arguments),r(this,"onReady",(...e)=>this.props.onReady(...e)),r(this,"onPlay",(...e)=>this.props.onPlay(...e)),r(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),r(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),r(this,"onPause",(...e)=>this.props.onPause(...e)),r(this,"onEnded",(...e)=>this.props.onEnded(...e)),r(this,"onError",(...e)=>this.props.onError(...e)),r(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),r(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),r(this,"onDisablePIP",e=>{const{onDisablePIP:t,playing:i}=this.props;t(e),i&&this.play()}),r(this,"onPresentationModeChange",e=>{if(this.player&&(0,a.supportsWebKitPresentationMode)(this.player)){const{webkitPresentationMode:t}=this.player;t==="picture-in-picture"?this.onEnablePIP(e):t==="inline"&&this.onDisablePIP(e)}}),r(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),r(this,"mute",()=>{this.player.muted=!0}),r(this,"unmute",()=>{this.player.muted=!1}),r(this,"renderSourceElement",(e,t)=>typeof e=="string"?c.default.createElement("source",{key:t,src:e}):c.default.createElement("source",{key:t,...e})),r(this,"renderTrack",(e,t)=>c.default.createElement("track",{key:t,...e})),r(this,"ref",e=>{this.player&&(this.prevPlayer=this.player),this.player=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getSource(this.props.url);e&&(this.player.src=e),(v||this.props.config.forceDisableHls)&&this.player.load()}componentDidUpdate(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url!==e.url&&!(0,a.isMediaStream)(this.props.url)&&!(this.props.url instanceof Array)&&(this.player.srcObject=null)}componentWillUnmount(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}addListeners(e){const{url:t,playsinline:i}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.addEventListener("canplay",this.onReady),i&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}removeListeners(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}shouldUseAudio(e){return e.config.forceVideo||e.config.attributes.poster?!1:d.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio}shouldUseHLS(e){return V&&this.props.config.forceSafariHLS||this.props.config.forceHLS?!0:v||this.props.config.forceDisableHls?!1:d.HLS_EXTENSIONS.test(e)||f.test(e)}shouldUseDASH(e){return d.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}shouldUseFLV(e){return d.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}load(e){const{hlsVersion:t,hlsOptions:i,dashVersion:n,flvVersion:l}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,a.getSDK)(T.replace("VERSION",t),C).then(o=>{if(this.hls=new o(i),this.hls.on(o.Events.MANIFEST_PARSED,()=>{this.props.onReady()}),this.hls.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.hls,o)}),f.test(e)){const h=e.match(f)[1];this.hls.loadSource(W.replace("{id}",h))}else this.hls.loadSource(e);this.hls.attachMedia(this.player),this.props.onLoaded()}),this.shouldUseDASH(e)&&(0,a.getSDK)(B.replace("VERSION",n),x).then(o=>{this.dash=o.MediaPlayer().create(),this.dash.initialize(this.player,e,this.props.playing),this.dash.on("error",this.props.onError),parseInt(n)<3?this.dash.getDebug().setLogToBrowserConsole(!1):this.dash.updateSettings({debug:{logLevel:o.Debug.LOG_LEVEL_NONE}}),this.props.onLoaded()}),this.shouldUseFLV(e)&&(0,a.getSDK)(K.replace("VERSION",l),G).then(o=>{this.flv=o.createPlayer({type:"flv",url:e}),this.flv.attachMediaElement(this.player),this.flv.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.flv,o)}),this.flv.load(),this.props.onLoaded()}),e instanceof Array)this.player.load();else if((0,a.isMediaStream)(e))try{this.player.srcObject=e}catch{this.player.src=window.URL.createObjectURL(e)}}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="picture-in-picture"&&this.player.webkitSetPresentationMode("picture-in-picture")}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="inline"&&this.player.webkitSetPresentationMode("inline")}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(e.length===0)return 0;const t=e.end(e.length-1),i=this.getDuration();return t>i?i:t}getSource(e){const t=this.shouldUseHLS(e),i=this.shouldUseDASH(e),n=this.shouldUseFLV(e);if(!(e instanceof Array||(0,a.isMediaStream)(e)||t||i||n))return X.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}render(){const{url:e,playing:t,loop:i,controls:n,muted:l,config:o,width:h,height:p}=this.props,L=this.shouldUseAudio(this.props)?"audio":"video",S={width:h==="auto"?h:"100%",height:p==="auto"?p:"100%"};return c.default.createElement(L,{ref:this.ref,src:this.getSource(e),style:S,preload:"auto",autoPlay:t||void 0,controls:n,muted:l,loop:i,...o.attributes},e instanceof Array&&e.map(this.renderSourceElement),o.tracks.map(this.renderTrack))}}r(P,"displayName","FilePlayer");r(P,"canPlay",d.canPlay.file);const z=b(g),Q=R({__proto__:null,default:z},[g]);export{Q as F}; diff --git a/build/assets/InfoIcon-473ded19.js b/build/assets/InfoIcon-89f3f76d.js similarity index 97% rename from build/assets/InfoIcon-473ded19.js rename to build/assets/InfoIcon-89f3f76d.js index 9f5e1f3ae..bd1495e22 100644 --- a/build/assets/InfoIcon-473ded19.js +++ b/build/assets/InfoIcon-89f3f76d.js @@ -1 +1 @@ -import{j as C}from"./index-21067c9d.js";const r=i=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsxs("g",{id:"info",children:[C.jsx("mask",{id:"mask0_2682_970",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:C.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_2682_970)",children:C.jsx("path",{id:"info_2",d:"M7.99992 11.3334C8.18881 11.3334 8.34714 11.2695 8.47492 11.1417C8.6027 11.0139 8.66658 10.8556 8.66658 10.6667V8.00004C8.66658 7.81115 8.6027 7.65282 8.47492 7.52504C8.34714 7.39726 8.18881 7.33337 7.99992 7.33337C7.81103 7.33337 7.6527 7.39726 7.52492 7.52504C7.39714 7.65282 7.33325 7.81115 7.33325 8.00004V10.6667C7.33325 10.8556 7.39714 11.0139 7.52492 11.1417C7.6527 11.2695 7.81103 11.3334 7.99992 11.3334ZM7.99992 6.00004C8.18881 6.00004 8.34714 5.93615 8.47492 5.80837C8.6027 5.6806 8.66658 5.52226 8.66658 5.33337C8.66658 5.14448 8.6027 4.98615 8.47492 4.85837C8.34714 4.7306 8.18881 4.66671 7.99992 4.66671C7.81103 4.66671 7.6527 4.7306 7.52492 4.85837C7.39714 4.98615 7.33325 5.14448 7.33325 5.33337C7.33325 5.52226 7.39714 5.6806 7.52492 5.80837C7.6527 5.93615 7.81103 6.00004 7.99992 6.00004ZM7.99992 14.6667C7.0777 14.6667 6.21103 14.4917 5.39992 14.1417C4.58881 13.7917 3.88325 13.3167 3.28325 12.7167C2.68325 12.1167 2.20825 11.4112 1.85825 10.6C1.50825 9.78893 1.33325 8.92226 1.33325 8.00004C1.33325 7.07782 1.50825 6.21115 1.85825 5.40004C2.20825 4.58893 2.68325 3.88337 3.28325 3.28337C3.88325 2.68337 4.58881 2.20837 5.39992 1.85837C6.21103 1.50837 7.0777 1.33337 7.99992 1.33337C8.92214 1.33337 9.78881 1.50837 10.5999 1.85837C11.411 2.20837 12.1166 2.68337 12.7166 3.28337C13.3166 3.88337 13.7916 4.58893 14.1416 5.40004C14.4916 6.21115 14.6666 7.07782 14.6666 8.00004C14.6666 8.92226 14.4916 9.78893 14.1416 10.6C13.7916 11.4112 13.3166 12.1167 12.7166 12.7167C12.1166 13.3167 11.411 13.7917 10.5999 14.1417C9.78881 14.4917 8.92214 14.6667 7.99992 14.6667ZM7.99992 13.3334C9.48881 13.3334 10.7499 12.8167 11.7833 11.7834C12.8166 10.75 13.3333 9.48893 13.3333 8.00004C13.3333 6.51115 12.8166 5.25004 11.7833 4.21671C10.7499 3.18337 9.48881 2.66671 7.99992 2.66671C6.51103 2.66671 5.24992 3.18337 4.21659 4.21671C3.18325 5.25004 2.66659 6.51115 2.66659 8.00004C2.66659 9.48893 3.18325 10.75 4.21659 11.7834C5.24992 12.8167 6.51103 13.3334 7.99992 13.3334Z",fill:"currentColor"})})]})});export{r as I}; +import{j as C}from"./index-f50d1ab5.js";const r=i=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsxs("g",{id:"info",children:[C.jsx("mask",{id:"mask0_2682_970",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:C.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_2682_970)",children:C.jsx("path",{id:"info_2",d:"M7.99992 11.3334C8.18881 11.3334 8.34714 11.2695 8.47492 11.1417C8.6027 11.0139 8.66658 10.8556 8.66658 10.6667V8.00004C8.66658 7.81115 8.6027 7.65282 8.47492 7.52504C8.34714 7.39726 8.18881 7.33337 7.99992 7.33337C7.81103 7.33337 7.6527 7.39726 7.52492 7.52504C7.39714 7.65282 7.33325 7.81115 7.33325 8.00004V10.6667C7.33325 10.8556 7.39714 11.0139 7.52492 11.1417C7.6527 11.2695 7.81103 11.3334 7.99992 11.3334ZM7.99992 6.00004C8.18881 6.00004 8.34714 5.93615 8.47492 5.80837C8.6027 5.6806 8.66658 5.52226 8.66658 5.33337C8.66658 5.14448 8.6027 4.98615 8.47492 4.85837C8.34714 4.7306 8.18881 4.66671 7.99992 4.66671C7.81103 4.66671 7.6527 4.7306 7.52492 4.85837C7.39714 4.98615 7.33325 5.14448 7.33325 5.33337C7.33325 5.52226 7.39714 5.6806 7.52492 5.80837C7.6527 5.93615 7.81103 6.00004 7.99992 6.00004ZM7.99992 14.6667C7.0777 14.6667 6.21103 14.4917 5.39992 14.1417C4.58881 13.7917 3.88325 13.3167 3.28325 12.7167C2.68325 12.1167 2.20825 11.4112 1.85825 10.6C1.50825 9.78893 1.33325 8.92226 1.33325 8.00004C1.33325 7.07782 1.50825 6.21115 1.85825 5.40004C2.20825 4.58893 2.68325 3.88337 3.28325 3.28337C3.88325 2.68337 4.58881 2.20837 5.39992 1.85837C6.21103 1.50837 7.0777 1.33337 7.99992 1.33337C8.92214 1.33337 9.78881 1.50837 10.5999 1.85837C11.411 2.20837 12.1166 2.68337 12.7166 3.28337C13.3166 3.88337 13.7916 4.58893 14.1416 5.40004C14.4916 6.21115 14.6666 7.07782 14.6666 8.00004C14.6666 8.92226 14.4916 9.78893 14.1416 10.6C13.7916 11.4112 13.3166 12.1167 12.7166 12.7167C12.1166 13.3167 11.411 13.7917 10.5999 14.1417C9.78881 14.4917 8.92214 14.6667 7.99992 14.6667ZM7.99992 13.3334C9.48881 13.3334 10.7499 12.8167 11.7833 11.7834C12.8166 10.75 13.3333 9.48893 13.3333 8.00004C13.3333 6.51115 12.8166 5.25004 11.7833 4.21671C10.7499 3.18337 9.48881 2.66671 7.99992 2.66671C6.51103 2.66671 5.24992 3.18337 4.21659 4.21671C3.18325 5.25004 2.66659 6.51115 2.66659 8.00004C2.66659 9.48893 3.18325 10.75 4.21659 11.7834C5.24992 12.8167 6.51103 13.3334 7.99992 13.3334Z",fill:"currentColor"})})]})});export{r as I}; diff --git a/build/assets/Kaltura-1ff524f5.js b/build/assets/Kaltura-70d941fb.js similarity index 95% rename from build/assets/Kaltura-1ff524f5.js rename to build/assets/Kaltura-70d941fb.js index 701f8a9f0..a153cbf4b 100644 --- a/build/assets/Kaltura-1ff524f5.js +++ b/build/assets/Kaltura-70d941fb.js @@ -1 +1 @@ -import{n as y,r as f}from"./index-21067c9d.js";import{u as _,p as m}from"./index-adad2e25.js";function P(r,e){for(var t=0;to[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,j=(r,e,t)=>e in r?n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,L=(r,e)=>{for(var t in e)n(r,t,{get:e[t],enumerable:!0})},c=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of v(e))!w.call(r,a)&&a!==t&&n(r,a,{get:()=>e[a],enumerable:!(o=b(e,a))||o.enumerable});return r},K=(r,e,t)=>(t=r!=null?g(O(r)):{},c(e||!r||!r.__esModule?n(t,"default",{value:r,enumerable:!0}):t,r)),D=r=>c(n({},"__esModule",{value:!0}),r),s=(r,e,t)=>(j(r,typeof e!="symbol"?e+"":e,t),t),h={};L(h,{default:()=>i});var d=D(h),u=K(f),p=_,S=m;const T="https://cdn.embed.ly/player-0.1.0.min.js",E="playerjs";class i extends u.Component{constructor(){super(...arguments),s(this,"callPlayer",p.callPlayer),s(this,"duration",null),s(this,"currentTime",null),s(this,"secondsLoaded",null),s(this,"mute",()=>{this.callPlayer("mute")}),s(this,"unmute",()=>{this.callPlayer("unmute")}),s(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(T,E).then(t=>{this.iframe&&(this.player=new t.Player(this.iframe),this.player.on("ready",()=>{setTimeout(()=>{this.player.isReady=!0,this.player.setLoop(this.props.loop),this.props.muted&&this.player.mute(),this.addListeners(this.player,this.props),this.props.onReady()},500)}))},this.props.onError)}addListeners(e,t){e.on("play",t.onPlay),e.on("pause",t.onPause),e.on("ended",t.onEnded),e.on("error",t.onError),e.on("timeupdate",({duration:o,seconds:a})=>{this.duration=o,this.currentTime=a})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("setCurrentTime",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e={width:"100%",height:"100%"};return u.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:e,allow:"encrypted-media; autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"})}}s(i,"displayName","Kaltura");s(i,"canPlay",S.canPlay.kaltura);const M=y(d),N=P({__proto__:null,default:M},[d]);export{N as K}; +import{n as y,r as f}from"./index-f50d1ab5.js";import{u as _,p as m}from"./index-73f6b088.js";function P(r,e){for(var t=0;to[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,j=(r,e,t)=>e in r?n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,L=(r,e)=>{for(var t in e)n(r,t,{get:e[t],enumerable:!0})},c=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of v(e))!w.call(r,a)&&a!==t&&n(r,a,{get:()=>e[a],enumerable:!(o=b(e,a))||o.enumerable});return r},K=(r,e,t)=>(t=r!=null?g(O(r)):{},c(e||!r||!r.__esModule?n(t,"default",{value:r,enumerable:!0}):t,r)),D=r=>c(n({},"__esModule",{value:!0}),r),s=(r,e,t)=>(j(r,typeof e!="symbol"?e+"":e,t),t),h={};L(h,{default:()=>i});var d=D(h),u=K(f),p=_,S=m;const T="https://cdn.embed.ly/player-0.1.0.min.js",E="playerjs";class i extends u.Component{constructor(){super(...arguments),s(this,"callPlayer",p.callPlayer),s(this,"duration",null),s(this,"currentTime",null),s(this,"secondsLoaded",null),s(this,"mute",()=>{this.callPlayer("mute")}),s(this,"unmute",()=>{this.callPlayer("unmute")}),s(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(T,E).then(t=>{this.iframe&&(this.player=new t.Player(this.iframe),this.player.on("ready",()=>{setTimeout(()=>{this.player.isReady=!0,this.player.setLoop(this.props.loop),this.props.muted&&this.player.mute(),this.addListeners(this.player,this.props),this.props.onReady()},500)}))},this.props.onError)}addListeners(e,t){e.on("play",t.onPlay),e.on("pause",t.onPause),e.on("ended",t.onEnded),e.on("error",t.onError),e.on("timeupdate",({duration:o,seconds:a})=>{this.duration=o,this.currentTime=a})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("setCurrentTime",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e={width:"100%",height:"100%"};return u.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:e,allow:"encrypted-media; autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"})}}s(i,"displayName","Kaltura");s(i,"canPlay",S.canPlay.kaltura);const M=y(d),N=P({__proto__:null,default:M},[d]);export{N as K}; diff --git a/build/assets/MergeIcon-d047ebb5.js b/build/assets/MergeIcon-dc64ffd2.js similarity index 97% rename from build/assets/MergeIcon-d047ebb5.js rename to build/assets/MergeIcon-dc64ffd2.js index da5b3c38a..71d27d26f 100644 --- a/build/assets/MergeIcon-d047ebb5.js +++ b/build/assets/MergeIcon-dc64ffd2.js @@ -1 +1 @@ -import{j as C}from"./index-21067c9d.js";const t=r=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsx("path",{d:"M7.37516 8.625V11.3334C7.37516 11.5104 7.43508 11.6589 7.55491 11.7786C7.67476 11.8984 7.82326 11.9583 8.00041 11.9583C8.17758 11.9583 8.32599 11.8984 8.44564 11.7786C8.5653 11.6589 8.62512 11.5104 8.62512 11.3334V8.625H11.3335C11.5106 8.625 11.659 8.56508 11.7788 8.44525C11.8986 8.3254 11.9585 8.1769 11.9585 7.99975C11.9585 7.82258 11.8986 7.67417 11.7788 7.55452C11.659 7.43487 11.5106 7.37504 11.3335 7.37504H8.62512V4.66669C8.62512 4.4896 8.56521 4.34117 8.44537 4.22137C8.32553 4.1016 8.17702 4.04171 7.99987 4.04171C7.82271 4.04171 7.6743 4.1016 7.55464 4.22137C7.43499 4.34117 7.37516 4.4896 7.37516 4.66669V7.37504H4.66681C4.48973 7.37504 4.3413 7.43496 4.22152 7.55479C4.10173 7.67464 4.04183 7.82314 4.04183 8.00029C4.04183 8.17746 4.10173 8.32587 4.22152 8.44552C4.3413 8.56517 4.48973 8.625 4.66681 8.625H7.37516ZM8.00154 15.9167C6.90659 15.9167 5.8774 15.7089 4.91395 15.2933C3.9505 14.8778 3.11243 14.3138 2.39975 13.6015C1.68705 12.8891 1.12284 12.0514 0.7071 11.0884C0.291364 10.1253 0.0834961 9.09636 0.0834961 8.00142C0.0834961 6.90647 0.291274 5.87728 0.70683 4.91383C1.12239 3.95037 1.68634 3.11231 2.3987 2.39963C3.11108 1.68693 3.94878 1.12272 4.91181 0.706979C5.87482 0.291243 6.9038 0.083374 7.99875 0.083374C9.09369 0.083374 10.1229 0.291153 11.0863 0.706708C12.0498 1.12226 12.8879 1.68622 13.6005 2.39858C14.3132 3.11096 14.8774 3.94866 15.2932 4.91169C15.7089 5.8747 15.9168 6.90368 15.9168 7.99863C15.9168 9.09357 15.709 10.1228 15.2935 11.0862C14.8779 12.0497 14.3139 12.8877 13.6016 13.6004C12.8892 14.3131 12.0515 14.8773 11.0885 15.2931C10.1255 15.7088 9.09648 15.9167 8.00154 15.9167ZM8.00014 14.6667C9.86125 14.6667 11.4376 14.0209 12.7293 12.7292C14.021 11.4375 14.6668 9.86113 14.6668 8.00002C14.6668 6.13891 14.021 4.56252 12.7293 3.27085C11.4376 1.97919 9.86125 1.33335 8.00014 1.33335C6.13903 1.33335 4.56264 1.97919 3.27098 3.27085C1.97931 4.56252 1.33348 6.13891 1.33348 8.00002C1.33348 9.86113 1.97931 11.4375 3.27098 12.7292C4.56264 14.0209 6.13903 14.6667 8.00014 14.6667Z",fill:"currentColor"})}),e=r=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsx("path",{d:"M1.33317 15.5L0.166504 14.3333L4.18734 10.2917C4.50678 9.97222 4.74984 9.61111 4.9165 9.20833C5.08317 8.80556 5.1665 8.38194 5.1665 7.9375L5.1665 3.6875L3.83317 5L2.6665 3.83333L5.99984 0.5L9.33317 3.83333L8.1665 5L6.83317 3.6875L6.83317 7.9375C6.83317 8.38194 6.9165 8.80556 7.08317 9.20833C7.24984 9.61111 7.49289 9.97222 7.81234 10.2917L11.8332 14.3333L10.6665 15.5L5.99984 10.8333L1.33317 15.5Z",fill:"currentColor"})});export{t as A,e as M}; +import{j as C}from"./index-f50d1ab5.js";const t=r=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsx("path",{d:"M7.37516 8.625V11.3334C7.37516 11.5104 7.43508 11.6589 7.55491 11.7786C7.67476 11.8984 7.82326 11.9583 8.00041 11.9583C8.17758 11.9583 8.32599 11.8984 8.44564 11.7786C8.5653 11.6589 8.62512 11.5104 8.62512 11.3334V8.625H11.3335C11.5106 8.625 11.659 8.56508 11.7788 8.44525C11.8986 8.3254 11.9585 8.1769 11.9585 7.99975C11.9585 7.82258 11.8986 7.67417 11.7788 7.55452C11.659 7.43487 11.5106 7.37504 11.3335 7.37504H8.62512V4.66669C8.62512 4.4896 8.56521 4.34117 8.44537 4.22137C8.32553 4.1016 8.17702 4.04171 7.99987 4.04171C7.82271 4.04171 7.6743 4.1016 7.55464 4.22137C7.43499 4.34117 7.37516 4.4896 7.37516 4.66669V7.37504H4.66681C4.48973 7.37504 4.3413 7.43496 4.22152 7.55479C4.10173 7.67464 4.04183 7.82314 4.04183 8.00029C4.04183 8.17746 4.10173 8.32587 4.22152 8.44552C4.3413 8.56517 4.48973 8.625 4.66681 8.625H7.37516ZM8.00154 15.9167C6.90659 15.9167 5.8774 15.7089 4.91395 15.2933C3.9505 14.8778 3.11243 14.3138 2.39975 13.6015C1.68705 12.8891 1.12284 12.0514 0.7071 11.0884C0.291364 10.1253 0.0834961 9.09636 0.0834961 8.00142C0.0834961 6.90647 0.291274 5.87728 0.70683 4.91383C1.12239 3.95037 1.68634 3.11231 2.3987 2.39963C3.11108 1.68693 3.94878 1.12272 4.91181 0.706979C5.87482 0.291243 6.9038 0.083374 7.99875 0.083374C9.09369 0.083374 10.1229 0.291153 11.0863 0.706708C12.0498 1.12226 12.8879 1.68622 13.6005 2.39858C14.3132 3.11096 14.8774 3.94866 15.2932 4.91169C15.7089 5.8747 15.9168 6.90368 15.9168 7.99863C15.9168 9.09357 15.709 10.1228 15.2935 11.0862C14.8779 12.0497 14.3139 12.8877 13.6016 13.6004C12.8892 14.3131 12.0515 14.8773 11.0885 15.2931C10.1255 15.7088 9.09648 15.9167 8.00154 15.9167ZM8.00014 14.6667C9.86125 14.6667 11.4376 14.0209 12.7293 12.7292C14.021 11.4375 14.6668 9.86113 14.6668 8.00002C14.6668 6.13891 14.021 4.56252 12.7293 3.27085C11.4376 1.97919 9.86125 1.33335 8.00014 1.33335C6.13903 1.33335 4.56264 1.97919 3.27098 3.27085C1.97931 4.56252 1.33348 6.13891 1.33348 8.00002C1.33348 9.86113 1.97931 11.4375 3.27098 12.7292C4.56264 14.0209 6.13903 14.6667 8.00014 14.6667Z",fill:"currentColor"})}),e=r=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsx("path",{d:"M1.33317 15.5L0.166504 14.3333L4.18734 10.2917C4.50678 9.97222 4.74984 9.61111 4.9165 9.20833C5.08317 8.80556 5.1665 8.38194 5.1665 7.9375L5.1665 3.6875L3.83317 5L2.6665 3.83333L5.99984 0.5L9.33317 3.83333L8.1665 5L6.83317 3.6875L6.83317 7.9375C6.83317 8.38194 6.9165 8.80556 7.08317 9.20833C7.24984 9.61111 7.49289 9.97222 7.81234 10.2917L11.8332 14.3333L10.6665 15.5L5.99984 10.8333L1.33317 15.5Z",fill:"currentColor"})});export{t as A,e as M}; diff --git a/build/assets/Mixcloud-1ee1d636.js b/build/assets/Mixcloud-6d8c58dc.js similarity index 95% rename from build/assets/Mixcloud-1ee1d636.js rename to build/assets/Mixcloud-6d8c58dc.js index ecb1360bf..3afd11555 100644 --- a/build/assets/Mixcloud-1ee1d636.js +++ b/build/assets/Mixcloud-6d8c58dc.js @@ -1 +1 @@ -import{n as _,r as f}from"./index-21067c9d.js";import{u as m,p as g}from"./index-adad2e25.js";function v(t,e){for(var r=0;rs[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var P=Object.create,i=Object.defineProperty,O=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyNames,M=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,x=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of b(e))!w.call(t,o)&&o!==r&&i(t,o,{get:()=>e[o],enumerable:!(s=O(e,o))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?P(M(t)):{},c(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),S=t=>c(i({},"__esModule",{value:!0}),t),a=(t,e,r)=>(x(t,typeof e!="symbol"?e+"":e,r),r),d={};j(d,{default:()=>l});var h=S(d),u=D(f),p=m,y=g;const E="https://widget.mixcloud.com/media/js/widgetApi.js",L="Mixcloud";class l extends u.Component{constructor(){super(...arguments),a(this,"callPlayer",p.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"secondsLoaded",null),a(this,"mute",()=>{}),a(this,"unmute",()=>{}),a(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(E,L).then(r=>{this.player=r.PlayerWidget(this.iframe),this.player.ready.then(()=>{this.player.events.play.on(this.props.onPlay),this.player.events.pause.on(this.props.onPause),this.player.events.ended.on(this.props.onEnded),this.player.events.error.on(this.props.error),this.player.events.progress.on((s,o)=>{this.currentTime=s,this.duration=o}),this.props.onReady()})},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return null}render(){const{url:e,config:r}=this.props,s=e.match(y.MATCH_URL_MIXCLOUD)[1],o={width:"100%",height:"100%"},n=(0,p.queryString)({...r.options,feed:`/${s}/`});return u.default.createElement("iframe",{key:s,ref:this.ref,style:o,src:`https://www.mixcloud.com/widget/iframe/?${n}`,frameBorder:"0",allow:"autoplay"})}}a(l,"displayName","Mixcloud");a(l,"canPlay",y.canPlay.mixcloud);a(l,"loopOnEnded",!0);const T=_(h),N=v({__proto__:null,default:T},[h]);export{N as M}; +import{n as _,r as f}from"./index-f50d1ab5.js";import{u as m,p as g}from"./index-73f6b088.js";function v(t,e){for(var r=0;rs[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var P=Object.create,i=Object.defineProperty,O=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyNames,M=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,x=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of b(e))!w.call(t,o)&&o!==r&&i(t,o,{get:()=>e[o],enumerable:!(s=O(e,o))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?P(M(t)):{},c(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),S=t=>c(i({},"__esModule",{value:!0}),t),a=(t,e,r)=>(x(t,typeof e!="symbol"?e+"":e,r),r),d={};j(d,{default:()=>l});var h=S(d),u=D(f),p=m,y=g;const E="https://widget.mixcloud.com/media/js/widgetApi.js",L="Mixcloud";class l extends u.Component{constructor(){super(...arguments),a(this,"callPlayer",p.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"secondsLoaded",null),a(this,"mute",()=>{}),a(this,"unmute",()=>{}),a(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(E,L).then(r=>{this.player=r.PlayerWidget(this.iframe),this.player.ready.then(()=>{this.player.events.play.on(this.props.onPlay),this.player.events.pause.on(this.props.onPause),this.player.events.ended.on(this.props.onEnded),this.player.events.error.on(this.props.error),this.player.events.progress.on((s,o)=>{this.currentTime=s,this.duration=o}),this.props.onReady()})},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return null}render(){const{url:e,config:r}=this.props,s=e.match(y.MATCH_URL_MIXCLOUD)[1],o={width:"100%",height:"100%"},n=(0,p.queryString)({...r.options,feed:`/${s}/`});return u.default.createElement("iframe",{key:s,ref:this.ref,style:o,src:`https://www.mixcloud.com/widget/iframe/?${n}`,frameBorder:"0",allow:"autoplay"})}}a(l,"displayName","Mixcloud");a(l,"canPlay",y.canPlay.mixcloud);a(l,"loopOnEnded",!0);const T=_(h),N=v({__proto__:null,default:T},[h]);export{N as M}; diff --git a/build/assets/NodeCircleIcon-a8e305b7.js b/build/assets/NodeCircleIcon-b9d0958d.js similarity index 91% rename from build/assets/NodeCircleIcon-a8e305b7.js rename to build/assets/NodeCircleIcon-b9d0958d.js index 5ee62908f..b0f2686bc 100644 --- a/build/assets/NodeCircleIcon-a8e305b7.js +++ b/build/assets/NodeCircleIcon-b9d0958d.js @@ -1,4 +1,4 @@ -import{o,a$ as e,aZ as r,aY as n,j as t}from"./index-21067c9d.js";import{I as i}from"./index-93bc2f63.js";const l={[e]:"RSS link",[r]:"Twitter Handle",[n]:"Youtube channel"},w="Sources Table",p="Queued Sources",d="Topics",h="View Content",u="date",T="edge_count",x="alphabetically",E="https://twitter.com",m="IS_ALIAS",g="https://www.twitter.com/anyuser/status/",I=o(i)` +import{o,a$ as e,aZ as r,aY as n,j as t}from"./index-f50d1ab5.js";import{I as i}from"./index-f857b04d.js";const l={[e]:"RSS link",[r]:"Twitter Handle",[n]:"Youtube channel"},w="Sources Table",p="Queued Sources",d="Topics",h="View Content",u="date",T="edge_count",x="alphabetically",E="https://twitter.com",m="IS_ALIAS",g="https://www.twitter.com/anyuser/status/",I=o(i)` && { vertical-align: middle; margin: 5px 0 0 4px; diff --git a/build/assets/PlusIcon-c31fb232.js b/build/assets/PlusIcon-95ca5a40.js similarity index 94% rename from build/assets/PlusIcon-c31fb232.js rename to build/assets/PlusIcon-95ca5a40.js index cba7e7657..bb5a15aa6 100644 --- a/build/assets/PlusIcon-c31fb232.js +++ b/build/assets/PlusIcon-95ca5a40.js @@ -1 +1 @@ -import{j as s}from"./index-21067c9d.js";const t=e=>s.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 21 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("mask",{id:"mask0_3553_6463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"21",height:"20",children:s.jsx("rect",{x:"0.5",width:"1em",height:"1em",fill:"currentColor"})}),s.jsx("g",{children:s.jsx("path",{d:"M9.87516 10.625H5.7085C5.53141 10.625 5.38298 10.5651 5.26318 10.4453C5.14339 10.3254 5.0835 10.1769 5.0835 9.99975C5.0835 9.82258 5.14339 9.67417 5.26318 9.55452C5.38298 9.43487 5.53141 9.37504 5.7085 9.37504H9.87516V5.20837C9.87516 5.03129 9.93508 4.88285 10.0549 4.76306C10.1748 4.64327 10.3233 4.58337 10.5004 4.58337C10.6776 4.58337 10.826 4.64327 10.9456 4.76306C11.0653 4.88285 11.1251 5.03129 11.1251 5.20837V9.37504H15.2918C15.4689 9.37504 15.6173 9.43496 15.7371 9.55479C15.8569 9.67464 15.9168 9.82314 15.9168 10.0003C15.9168 10.1775 15.8569 10.3259 15.7371 10.4455C15.6173 10.5652 15.4689 10.625 15.2918 10.625H11.1251V14.7917C11.1251 14.9688 11.0652 15.1172 10.9454 15.237C10.8255 15.3568 10.677 15.4167 10.4999 15.4167C10.3227 15.4167 10.1743 15.3568 10.0546 15.237C9.93499 15.1172 9.87516 14.9688 9.87516 14.7917V10.625Z",fill:"currentColor"})})]});export{t as P}; +import{j as s}from"./index-f50d1ab5.js";const t=e=>s.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 21 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("mask",{id:"mask0_3553_6463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"21",height:"20",children:s.jsx("rect",{x:"0.5",width:"1em",height:"1em",fill:"currentColor"})}),s.jsx("g",{children:s.jsx("path",{d:"M9.87516 10.625H5.7085C5.53141 10.625 5.38298 10.5651 5.26318 10.4453C5.14339 10.3254 5.0835 10.1769 5.0835 9.99975C5.0835 9.82258 5.14339 9.67417 5.26318 9.55452C5.38298 9.43487 5.53141 9.37504 5.7085 9.37504H9.87516V5.20837C9.87516 5.03129 9.93508 4.88285 10.0549 4.76306C10.1748 4.64327 10.3233 4.58337 10.5004 4.58337C10.6776 4.58337 10.826 4.64327 10.9456 4.76306C11.0653 4.88285 11.1251 5.03129 11.1251 5.20837V9.37504H15.2918C15.4689 9.37504 15.6173 9.43496 15.7371 9.55479C15.8569 9.67464 15.9168 9.82314 15.9168 10.0003C15.9168 10.1775 15.8569 10.3259 15.7371 10.4455C15.6173 10.5652 15.4689 10.625 15.2918 10.625H11.1251V14.7917C11.1251 14.9688 11.0652 15.1172 10.9454 15.237C10.8255 15.3568 10.677 15.4167 10.4999 15.4167C10.3227 15.4167 10.1743 15.3568 10.0546 15.237C9.93499 15.1172 9.87516 14.9688 9.87516 14.7917V10.625Z",fill:"currentColor"})})]});export{t as P}; diff --git a/build/assets/Popover-8ff60b97.js b/build/assets/Popover-a7534715.js similarity index 99% rename from build/assets/Popover-8ff60b97.js rename to build/assets/Popover-a7534715.js index 0af8d868a..536c56e88 100644 --- a/build/assets/Popover-8ff60b97.js +++ b/build/assets/Popover-a7534715.js @@ -1 +1 @@ -import{m as me,a as G,R as ve,b as xe,g as be,s as se,_ as g,f as Ae,r as c,u as Pe,j as A,c as ie,d as ye,h as Ze,ad as Xe}from"./index-21067c9d.js";import{q as et,T as Ve,d as ae,e as Le,s as _e,f as Be}from"./index-93bc2f63.js";import{o as q,a as fe,e as tt,u as Ee,d as nt,i as ot}from"./useSlotProps-f54e8b6d.js";function je(...e){return e.reduce((t,r)=>r==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}function rt(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const it=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},He=it,Ue={disabled:!1};var st=function(t){return t.scrollTop},ue="unmounted",Y="exited",J="entering",re="entered",Ne="exiting",X=function(e){et(t,e);function t(o,i){var n;n=e.call(this,o,i)||this;var s=i,a=s&&!s.isMounting?o.enter:o.appear,l;return n.appearStatus=null,o.in?a?(l=Y,n.appearStatus=J):l=re:o.unmountOnExit||o.mountOnEnter?l=ue:l=Y,n.state={status:l},n.nextCallback=null,n}t.getDerivedStateFromProps=function(i,n){var s=i.in;return s&&n.status===ue?{status:Y}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var n=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==J&&s!==re&&(n=J):(s===J||s===re)&&(n=Ne)}this.updateStatus(!1,n)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,n,s,a;return n=s=a=i,i!=null&&typeof i!="number"&&(n=i.exit,s=i.enter,a=i.appear!==void 0?i.appear:s),{exit:n,enter:s,appear:a}},r.updateStatus=function(i,n){if(i===void 0&&(i=!1),n!==null)if(this.cancelNextCallback(),n===J){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:me.findDOMNode(this);s&&st(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Y&&this.setState({status:ue})},r.performEnter=function(i){var n=this,s=this.props.enter,a=this.context?this.context.isMounting:i,l=this.props.nodeRef?[a]:[me.findDOMNode(this),a],d=l[0],m=l[1],E=this.getTimeouts(),C=a?E.appear:E.enter;if(!i&&!s||Ue.disabled){this.safeSetState({status:re},function(){n.props.onEntered(d)});return}this.props.onEnter(d,m),this.safeSetState({status:J},function(){n.props.onEntering(d,m),n.onTransitionEnd(C,function(){n.safeSetState({status:re},function(){n.props.onEntered(d,m)})})})},r.performExit=function(){var i=this,n=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:me.findDOMNode(this);if(!n||Ue.disabled){this.safeSetState({status:Y},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Ne},function(){i.props.onExiting(a),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Y},function(){i.props.onExited(a)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,n){n=this.setNextCallback(n),this.setState(i,n)},r.setNextCallback=function(i){var n=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,n.nextCallback=null,i(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},r.onTransitionEnd=function(i,n){this.setNextCallback(n);var s=this.props.nodeRef?this.props.nodeRef.current:me.findDOMNode(this),a=i==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],d=l[0],m=l[1];this.props.addEndListener(d,m)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===ue)return null;var n=this.props,s=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var a=G(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ve.createElement(Ve.Provider,{value:null},typeof s=="function"?s(i,a):ve.cloneElement(ve.Children.only(s),a))},t}(ve.Component);X.contextType=Ve;X.propTypes={};function oe(){}X.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:oe,onEntering:oe,onEntered:oe,onExit:oe,onExiting:oe,onExited:oe};X.UNMOUNTED=ue;X.EXITED=Y;X.ENTERING=J;X.ENTERED=re;X.EXITING=Ne;const Ye=X,Je=e=>e.scrollTop;function ge(e,t){var r,o;const{timeout:i,easing:n,style:s={}}=e;return{duration:(r=s.transitionDuration)!=null?r:typeof i=="number"?i:i[t.mode]||0,easing:(o=s.transitionTimingFunction)!=null?o:typeof n=="object"?n[t.mode]:n,delay:s.transitionDelay}}function at(e){return xe("MuiPaper",e)}be("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const lt=["className","component","elevation","square","variant"],ct=e=>{const{square:t,elevation:r,variant:o,classes:i}=e,n={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${r}`]};return ye(n,at,i)},ut=se("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return g({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&g({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Ae("#fff",He(t.elevation))}, ${Ae("#fff",He(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),dt=c.forwardRef(function(t,r){const o=Pe({props:t,name:"MuiPaper"}),{className:i,component:n="div",elevation:s=1,square:a=!1,variant:l="elevation"}=o,d=G(o,lt),m=g({},o,{component:n,elevation:s,square:a,variant:l}),E=ct(m);return A.jsx(ut,g({as:n,ownerState:m,className:ie(E.root,i),ref:r},d))}),ft=dt,pt=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ht(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function mt(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function vt(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||mt(e))}function Et(e){const t=[],r=[];return Array.from(e.querySelectorAll(pt)).forEach((o,i)=>{const n=ht(o);n===-1||!vt(o)||(n===0?t.push(o):r.push({documentOrder:i,tabIndex:n,node:o}))}),r.sort((o,i)=>o.tabIndex===i.tabIndex?o.documentOrder-i.documentOrder:o.tabIndex-i.tabIndex).map(o=>o.node).concat(t)}function gt(){return!0}function xt(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:n=Et,isEnabled:s=gt,open:a}=e,l=c.useRef(!1),d=c.useRef(null),m=c.useRef(null),E=c.useRef(null),C=c.useRef(null),N=c.useRef(!1),h=c.useRef(null),S=ae(t.ref,h),y=c.useRef(null);c.useEffect(()=>{!a||!h.current||(N.current=!r)},[r,a]),c.useEffect(()=>{if(!a||!h.current)return;const u=q(h.current);return h.current.contains(u.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),N.current&&h.current.focus()),()=>{i||(E.current&&E.current.focus&&(l.current=!0,E.current.focus()),E.current=null)}},[a]),c.useEffect(()=>{if(!a||!h.current)return;const u=q(h.current),x=R=>{y.current=R,!(o||!s()||R.key!=="Tab")&&u.activeElement===h.current&&R.shiftKey&&(l.current=!0,m.current&&m.current.focus())},b=()=>{const R=h.current;if(R===null)return;if(!u.hasFocus()||!s()||l.current){l.current=!1;return}if(R.contains(u.activeElement)||o&&u.activeElement!==d.current&&u.activeElement!==m.current)return;if(u.activeElement!==C.current)C.current=null;else if(C.current!==null)return;if(!N.current)return;let D=[];if((u.activeElement===d.current||u.activeElement===m.current)&&(D=n(h.current)),D.length>0){var _,$;const H=!!((_=y.current)!=null&&_.shiftKey&&(($=y.current)==null?void 0:$.key)==="Tab"),O=D[0],L=D[D.length-1];typeof O!="string"&&typeof L!="string"&&(H?L.focus():O.focus())}else R.focus()};u.addEventListener("focusin",b),u.addEventListener("keydown",x,!0);const M=setInterval(()=>{u.activeElement&&u.activeElement.tagName==="BODY"&&b()},50);return()=>{clearInterval(M),u.removeEventListener("focusin",b),u.removeEventListener("keydown",x,!0)}},[r,o,i,s,a,n]);const k=u=>{E.current===null&&(E.current=u.relatedTarget),N.current=!0,C.current=u.target;const x=t.props.onFocus;x&&x(u)},I=u=>{E.current===null&&(E.current=u.relatedTarget),N.current=!0};return A.jsxs(c.Fragment,{children:[A.jsx("div",{tabIndex:a?0:-1,onFocus:I,ref:d,"data-testid":"sentinelStart"}),c.cloneElement(t,{ref:S,onFocus:k}),A.jsx("div",{tabIndex:a?0:-1,onFocus:I,ref:m,"data-testid":"sentinelEnd"})]})}function bt(e){return typeof e=="function"?e():e}const Pt=c.forwardRef(function(t,r){const{children:o,container:i,disablePortal:n=!1}=t,[s,a]=c.useState(null),l=ae(c.isValidElement(o)?o.ref:null,r);if(Le(()=>{n||a(bt(i)||document.body)},[i,n]),Le(()=>{if(s&&!n)return _e(r,s),()=>{_e(r,null)}},[r,s,n]),n){if(c.isValidElement(o)){const d={ref:l};return c.cloneElement(o,d)}return A.jsx(c.Fragment,{children:o})}return A.jsx(c.Fragment,{children:s&&Ze.createPortal(o,s)})});function yt(e){const t=q(e);return t.body===e?fe(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function de(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function We(e){return parseInt(fe(e).getComputedStyle(e).paddingRight,10)||0}function Tt(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||o}function ze(e,t,r,o,i){const n=[t,r,...o];[].forEach.call(e.children,s=>{const a=n.indexOf(s)===-1,l=!Tt(s);a&&l&&de(s,i)})}function ke(e,t){let r=-1;return e.some((o,i)=>t(o)?(r=i,!0):!1),r}function Rt(e,t){const r=[],o=e.container;if(!t.disableScrollLock){if(yt(o)){const s=rt(q(o));r.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${We(o)+s}px`;const a=q(o).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${We(l)+s}px`})}let n;if(o.parentNode instanceof DocumentFragment)n=q(o).body;else{const s=o.parentElement,a=fe(o);n=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:o}r.push({value:n.style.overflow,property:"overflow",el:n},{value:n.style.overflowX,property:"overflow-x",el:n},{value:n.style.overflowY,property:"overflow-y",el:n}),n.style.overflow="hidden"}return()=>{r.forEach(({value:n,el:s,property:a})=>{n?s.style.setProperty(a,n):s.style.removeProperty(a)})}}function kt(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class St{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&de(t.modalRef,!1);const i=kt(r);ze(r,t.mount,t.modalRef,i,!0);const n=ke(this.containers,s=>s.container===r);return n!==-1?(this.containers[n].modals.push(t),o):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),o)}mount(t,r){const o=ke(this.containers,n=>n.modals.indexOf(t)!==-1),i=this.containers[o];i.restore||(i.restore=Rt(i,r))}remove(t,r=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const i=ke(this.containers,s=>s.modals.indexOf(t)!==-1),n=this.containers[i];if(n.modals.splice(n.modals.indexOf(t),1),this.modals.splice(o,1),n.modals.length===0)n.restore&&n.restore(),t.modalRef&&de(t.modalRef,r),ze(n.container,t.mount,t.modalRef,n.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=n.modals[n.modals.length-1];s.modalRef&&de(s.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Ct(e){return typeof e=="function"?e():e}function Nt(e){return e?e.props.hasOwnProperty("in"):!1}const Mt=new St;function wt(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:o=!1,manager:i=Mt,closeAfterTransition:n=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:d,open:m,rootRef:E}=e,C=c.useRef({}),N=c.useRef(null),h=c.useRef(null),S=ae(h,E),[y,k]=c.useState(!m),I=Nt(l);let u=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(u=!1);const x=()=>q(N.current),b=()=>(C.current.modalRef=h.current,C.current.mount=N.current,C.current),M=()=>{i.mount(b(),{disableScrollLock:o}),h.current&&(h.current.scrollTop=0)},R=Be(()=>{const p=Ct(t)||x().body;i.add(b(),p),h.current&&M()}),D=c.useCallback(()=>i.isTopModal(b()),[i]),_=Be(p=>{N.current=p,p&&(m&&D()?M():h.current&&de(h.current,u))}),$=c.useCallback(()=>{i.remove(b(),u)},[u,i]);c.useEffect(()=>()=>{$()},[$]),c.useEffect(()=>{m?R():(!I||!n)&&$()},[m,$,I,n,R]);const H=p=>v=>{var F;(F=p.onKeyDown)==null||F.call(p,v),!(v.key!=="Escape"||v.which===229||!D())&&(r||(v.stopPropagation(),d&&d(v,"escapeKeyDown")))},O=p=>v=>{var F;(F=p.onClick)==null||F.call(p,v),v.target===v.currentTarget&&d&&d(v,"backdropClick")};return{getRootProps:(p={})=>{const v=tt(e);delete v.onTransitionEnter,delete v.onTransitionExited;const F=g({},v,p);return g({role:"presentation"},F,{onKeyDown:H(F),ref:S})},getBackdropProps:(p={})=>{const v=p;return g({"aria-hidden":!0},v,{onClick:O(v),open:m})},getTransitionProps:()=>{const p=()=>{k(!1),s&&s()},v=()=>{k(!0),a&&a(),n&&$()};return{onEnter:je(p,l==null?void 0:l.props.onEnter),onExited:je(v,l==null?void 0:l.props.onExited)}},rootRef:S,portalRef:_,isTopModal:D,exited:y,hasTransition:I}}const Ot=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],It={entering:{opacity:1},entered:{opacity:1}},Dt=c.forwardRef(function(t,r){const o=Xe(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:n,appear:s=!0,children:a,easing:l,in:d,onEnter:m,onEntered:E,onEntering:C,onExit:N,onExited:h,onExiting:S,style:y,timeout:k=i,TransitionComponent:I=Ye}=t,u=G(t,Ot),x=c.useRef(null),b=ae(x,a.ref,r),M=T=>f=>{if(T){const p=x.current;f===void 0?T(p):T(p,f)}},R=M(C),D=M((T,f)=>{Je(T);const p=ge({style:y,timeout:k,easing:l},{mode:"enter"});T.style.webkitTransition=o.transitions.create("opacity",p),T.style.transition=o.transitions.create("opacity",p),m&&m(T,f)}),_=M(E),$=M(S),H=M(T=>{const f=ge({style:y,timeout:k,easing:l},{mode:"exit"});T.style.webkitTransition=o.transitions.create("opacity",f),T.style.transition=o.transitions.create("opacity",f),N&&N(T)}),O=M(h),L=T=>{n&&n(x.current,T)};return A.jsx(I,g({appear:s,in:d,nodeRef:x,onEnter:D,onEntered:_,onEntering:R,onExit:H,onExited:O,onExiting:$,addEndListener:L,timeout:k},u,{children:(T,f)=>c.cloneElement(a,g({style:g({opacity:0,visibility:T==="exited"&&!d?"hidden":void 0},It[T],y,a.props.style),ref:b},f))}))}),$t=Dt;function Ft(e){return xe("MuiBackdrop",e)}be("MuiBackdrop",["root","invisible"]);const At=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Lt=e=>{const{classes:t,invisible:r}=e;return ye({root:["root",r&&"invisible"]},Ft,t)},_t=se("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>g({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Bt=c.forwardRef(function(t,r){var o,i,n;const s=Pe({props:t,name:"MuiBackdrop"}),{children:a,className:l,component:d="div",components:m={},componentsProps:E={},invisible:C=!1,open:N,slotProps:h={},slots:S={},TransitionComponent:y=$t,transitionDuration:k}=s,I=G(s,At),u=g({},s,{component:d,invisible:C}),x=Lt(u),b=(o=h.root)!=null?o:E.root;return A.jsx(y,g({in:N,timeout:k},I,{children:A.jsx(_t,g({"aria-hidden":!0},b,{as:(i=(n=S.root)!=null?n:m.Root)!=null?i:d,className:ie(x.root,l,b==null?void 0:b.className),ownerState:g({},u,b==null?void 0:b.ownerState),classes:x,ref:r,children:a}))}))}),jt=Bt;function Ht(e){return xe("MuiModal",e)}be("MuiModal",["root","hidden","backdrop"]);const Ut=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Wt=e=>{const{open:t,exited:r,classes:o}=e;return ye({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Ht,o)},zt=se("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>g({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Kt=se(jt,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Gt=c.forwardRef(function(t,r){var o,i,n,s,a,l;const d=Pe({name:"MuiModal",props:t}),{BackdropComponent:m=Kt,BackdropProps:E,className:C,closeAfterTransition:N=!1,children:h,container:S,component:y,components:k={},componentsProps:I={},disableAutoFocus:u=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:b=!1,disablePortal:M=!1,disableRestoreFocus:R=!1,disableScrollLock:D=!1,hideBackdrop:_=!1,keepMounted:$=!1,onBackdropClick:H,open:O,slotProps:L,slots:T}=d,f=G(d,Ut),p=g({},d,{closeAfterTransition:N,disableAutoFocus:u,disableEnforceFocus:x,disableEscapeKeyDown:b,disablePortal:M,disableRestoreFocus:R,disableScrollLock:D,hideBackdrop:_,keepMounted:$}),{getRootProps:v,getBackdropProps:F,getTransitionProps:B,portalRef:z,isTopModal:pe,exited:U,hasTransition:he}=wt(g({},p,{rootRef:r})),V=g({},p,{exited:U}),K=Wt(V),Q={};if(h.props.tabIndex===void 0&&(Q.tabIndex="-1"),he){const{onEnter:P,onExited:w}=B();Q.onEnter=P,Q.onExited=w}const Z=(o=(i=T==null?void 0:T.root)!=null?i:k.Root)!=null?o:zt,le=(n=(s=T==null?void 0:T.backdrop)!=null?s:k.Backdrop)!=null?n:m,ce=(a=L==null?void 0:L.root)!=null?a:I.root,ee=(l=L==null?void 0:L.backdrop)!=null?l:I.backdrop,Te=Ee({elementType:Z,externalSlotProps:ce,externalForwardedProps:f,getSlotProps:v,additionalProps:{ref:r,as:y},ownerState:V,className:ie(C,ce==null?void 0:ce.className,K==null?void 0:K.root,!V.open&&V.exited&&(K==null?void 0:K.hidden))}),Re=Ee({elementType:le,externalSlotProps:ee,additionalProps:E,getSlotProps:P=>F(g({},P,{onClick:w=>{H&&H(w),P!=null&&P.onClick&&P.onClick(w)}})),className:ie(ee==null?void 0:ee.className,E==null?void 0:E.className,K==null?void 0:K.backdrop),ownerState:V});return!$&&!O&&(!he||U)?null:A.jsx(Pt,{ref:z,container:S,disablePortal:M,children:A.jsxs(Z,g({},Te,{children:[!_&&m?A.jsx(le,g({},Re)):null,A.jsx(xt,{disableEnforceFocus:x,disableAutoFocus:u,disableRestoreFocus:R,isEnabled:pe,open:O,children:c.cloneElement(h,Q)})]}))})}),qt=Gt,Xt=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Me(e){return`scale(${e}, ${e**2})`}const Vt={entering:{opacity:1,transform:Me(1)},entered:{opacity:1,transform:"none"}},Se=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Qe=c.forwardRef(function(t,r){const{addEndListener:o,appear:i=!0,children:n,easing:s,in:a,onEnter:l,onEntered:d,onEntering:m,onExit:E,onExited:C,onExiting:N,style:h,timeout:S="auto",TransitionComponent:y=Ye}=t,k=G(t,Xt),I=c.useRef(),u=c.useRef(),x=Xe(),b=c.useRef(null),M=ae(b,n.ref,r),R=f=>p=>{if(f){const v=b.current;p===void 0?f(v):f(v,p)}},D=R(m),_=R((f,p)=>{Je(f);const{duration:v,delay:F,easing:B}=ge({style:h,timeout:S,easing:s},{mode:"enter"});let z;S==="auto"?(z=x.transitions.getAutoHeightDuration(f.clientHeight),u.current=z):z=v,f.style.transition=[x.transitions.create("opacity",{duration:z,delay:F}),x.transitions.create("transform",{duration:Se?z:z*.666,delay:F,easing:B})].join(","),l&&l(f,p)}),$=R(d),H=R(N),O=R(f=>{const{duration:p,delay:v,easing:F}=ge({style:h,timeout:S,easing:s},{mode:"exit"});let B;S==="auto"?(B=x.transitions.getAutoHeightDuration(f.clientHeight),u.current=B):B=p,f.style.transition=[x.transitions.create("opacity",{duration:B,delay:v}),x.transitions.create("transform",{duration:Se?B:B*.666,delay:Se?v:v||B*.333,easing:F})].join(","),f.style.opacity=0,f.style.transform=Me(.75),E&&E(f)}),L=R(C),T=f=>{S==="auto"&&(I.current=setTimeout(f,u.current||0)),o&&o(b.current,f)};return c.useEffect(()=>()=>{clearTimeout(I.current)},[]),A.jsx(y,g({appear:i,in:a,nodeRef:b,onEnter:_,onEntered:$,onEntering:D,onExit:O,onExited:L,onExiting:H,addEndListener:T,timeout:S==="auto"?null:S},k,{children:(f,p)=>c.cloneElement(n,g({style:g({opacity:0,transform:Me(.75),visibility:f==="exited"&&!a?"hidden":void 0},Vt[f],h,n.props.style),ref:M},p))}))});Qe.muiSupportAuto=!0;const Yt=Qe;function Jt(e){return xe("MuiPopover",e)}be("MuiPopover",["root","paper"]);const Qt=["onEntering"],Zt=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],en=["slotProps"];function Ke(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function Ge(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function qe(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Ce(e){return typeof e=="function"?e():e}const tn=e=>{const{classes:t}=e;return ye({root:["root"],paper:["paper"]},Jt,t)},nn=se(qt,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),on=se(ft,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),rn=c.forwardRef(function(t,r){var o,i,n;const s=Pe({props:t,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:d={vertical:"top",horizontal:"left"},anchorPosition:m,anchorReference:E="anchorEl",children:C,className:N,container:h,elevation:S=8,marginThreshold:y=16,open:k,PaperProps:I={},slots:u,slotProps:x,transformOrigin:b={vertical:"top",horizontal:"left"},TransitionComponent:M=Yt,transitionDuration:R="auto",TransitionProps:{onEntering:D}={},disableScrollLock:_=!1}=s,$=G(s.TransitionProps,Qt),H=G(s,Zt),O=(o=x==null?void 0:x.paper)!=null?o:I,L=c.useRef(),T=ae(L,O.ref),f=g({},s,{anchorOrigin:d,anchorReference:E,elevation:S,marginThreshold:y,externalPaperSlotProps:O,transformOrigin:b,TransitionComponent:M,transitionDuration:R,TransitionProps:$}),p=tn(f),v=c.useCallback(()=>{if(E==="anchorPosition")return m;const P=Ce(l),j=(P&&P.nodeType===1?P:q(L.current).body).getBoundingClientRect();return{top:j.top+Ke(j,d.vertical),left:j.left+Ge(j,d.horizontal)}},[l,d.horizontal,d.vertical,m,E]),F=c.useCallback(P=>({vertical:Ke(P,b.vertical),horizontal:Ge(P,b.horizontal)}),[b.horizontal,b.vertical]),B=c.useCallback(P=>{const w={width:P.offsetWidth,height:P.offsetHeight},j=F(w);if(E==="none")return{top:null,left:null,transformOrigin:qe(j)};const we=v();let te=we.top-j.vertical,ne=we.left-j.horizontal;const Oe=te+w.height,Ie=ne+w.width,De=fe(Ce(l)),$e=De.innerHeight-y,Fe=De.innerWidth-y;if(y!==null&&te$e){const W=Oe-$e;te-=W,j.vertical+=W}if(y!==null&&neFe){const W=Ie-Fe;ne-=W,j.horizontal+=W}return{top:`${Math.round(te)}px`,left:`${Math.round(ne)}px`,transformOrigin:qe(j)}},[l,E,v,F,y]),[z,pe]=c.useState(k),U=c.useCallback(()=>{const P=L.current;if(!P)return;const w=B(P);w.top!==null&&(P.style.top=w.top),w.left!==null&&(P.style.left=w.left),P.style.transformOrigin=w.transformOrigin,pe(!0)},[B]);c.useEffect(()=>(_&&window.addEventListener("scroll",U),()=>window.removeEventListener("scroll",U)),[l,_,U]);const he=(P,w)=>{D&&D(P,w),U()},V=()=>{pe(!1)};c.useEffect(()=>{k&&U()}),c.useImperativeHandle(a,()=>k?{updatePosition:()=>{U()}}:null,[k,U]),c.useEffect(()=>{if(!k)return;const P=nt(()=>{U()}),w=fe(l);return w.addEventListener("resize",P),()=>{P.clear(),w.removeEventListener("resize",P)}},[l,k,U]);let K=R;R==="auto"&&!M.muiSupportAuto&&(K=void 0);const Q=h||(l?q(Ce(l)).body:void 0),Z=(i=u==null?void 0:u.root)!=null?i:nn,le=(n=u==null?void 0:u.paper)!=null?n:on,ce=Ee({elementType:le,externalSlotProps:g({},O,{style:z?O.style:g({},O.style,{opacity:0})}),additionalProps:{elevation:S,ref:T},ownerState:f,className:ie(p.paper,O==null?void 0:O.className)}),ee=Ee({elementType:Z,externalSlotProps:(x==null?void 0:x.root)||{},externalForwardedProps:H,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:Q,open:k},ownerState:f,className:ie(p.root,N)}),{slotProps:Te}=ee,Re=G(ee,en);return A.jsx(Z,g({},Re,!ot(Z)&&{slotProps:Te,disableScrollLock:_},{children:A.jsx(M,g({appear:!0,in:k,onEntering:he,onExited:V,timeout:K},$,{children:A.jsx(le,g({},ce,{children:C}))}))}))}),cn=rn;export{cn as P,Ye as T,ft as a,rt as b,on as c,Pt as d,ge as g,Je as r}; +import{m as me,a as G,R as ve,b as xe,g as be,s as se,_ as g,f as Ae,r as c,u as Pe,j as A,c as ie,d as ye,h as Ze,ad as Xe}from"./index-f50d1ab5.js";import{t as et,w as Ve,e as ae,f as Le,s as _e,g as Be}from"./index-f857b04d.js";import{o as q,a as fe,e as tt,u as Ee,d as nt,i as ot}from"./useSlotProps-f1483ce3.js";function je(...e){return e.reduce((t,r)=>r==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}function rt(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const it=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},He=it,Ue={disabled:!1};var st=function(t){return t.scrollTop},ue="unmounted",Y="exited",J="entering",re="entered",Ne="exiting",X=function(e){et(t,e);function t(o,i){var n;n=e.call(this,o,i)||this;var s=i,a=s&&!s.isMounting?o.enter:o.appear,l;return n.appearStatus=null,o.in?a?(l=Y,n.appearStatus=J):l=re:o.unmountOnExit||o.mountOnEnter?l=ue:l=Y,n.state={status:l},n.nextCallback=null,n}t.getDerivedStateFromProps=function(i,n){var s=i.in;return s&&n.status===ue?{status:Y}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var n=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==J&&s!==re&&(n=J):(s===J||s===re)&&(n=Ne)}this.updateStatus(!1,n)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,n,s,a;return n=s=a=i,i!=null&&typeof i!="number"&&(n=i.exit,s=i.enter,a=i.appear!==void 0?i.appear:s),{exit:n,enter:s,appear:a}},r.updateStatus=function(i,n){if(i===void 0&&(i=!1),n!==null)if(this.cancelNextCallback(),n===J){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:me.findDOMNode(this);s&&st(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Y&&this.setState({status:ue})},r.performEnter=function(i){var n=this,s=this.props.enter,a=this.context?this.context.isMounting:i,l=this.props.nodeRef?[a]:[me.findDOMNode(this),a],d=l[0],m=l[1],E=this.getTimeouts(),C=a?E.appear:E.enter;if(!i&&!s||Ue.disabled){this.safeSetState({status:re},function(){n.props.onEntered(d)});return}this.props.onEnter(d,m),this.safeSetState({status:J},function(){n.props.onEntering(d,m),n.onTransitionEnd(C,function(){n.safeSetState({status:re},function(){n.props.onEntered(d,m)})})})},r.performExit=function(){var i=this,n=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:me.findDOMNode(this);if(!n||Ue.disabled){this.safeSetState({status:Y},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Ne},function(){i.props.onExiting(a),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Y},function(){i.props.onExited(a)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,n){n=this.setNextCallback(n),this.setState(i,n)},r.setNextCallback=function(i){var n=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,n.nextCallback=null,i(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},r.onTransitionEnd=function(i,n){this.setNextCallback(n);var s=this.props.nodeRef?this.props.nodeRef.current:me.findDOMNode(this),a=i==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],d=l[0],m=l[1];this.props.addEndListener(d,m)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===ue)return null;var n=this.props,s=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var a=G(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ve.createElement(Ve.Provider,{value:null},typeof s=="function"?s(i,a):ve.cloneElement(ve.Children.only(s),a))},t}(ve.Component);X.contextType=Ve;X.propTypes={};function oe(){}X.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:oe,onEntering:oe,onEntered:oe,onExit:oe,onExiting:oe,onExited:oe};X.UNMOUNTED=ue;X.EXITED=Y;X.ENTERING=J;X.ENTERED=re;X.EXITING=Ne;const Ye=X,Je=e=>e.scrollTop;function ge(e,t){var r,o;const{timeout:i,easing:n,style:s={}}=e;return{duration:(r=s.transitionDuration)!=null?r:typeof i=="number"?i:i[t.mode]||0,easing:(o=s.transitionTimingFunction)!=null?o:typeof n=="object"?n[t.mode]:n,delay:s.transitionDelay}}function at(e){return xe("MuiPaper",e)}be("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const lt=["className","component","elevation","square","variant"],ct=e=>{const{square:t,elevation:r,variant:o,classes:i}=e,n={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${r}`]};return ye(n,at,i)},ut=se("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return g({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&g({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Ae("#fff",He(t.elevation))}, ${Ae("#fff",He(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),dt=c.forwardRef(function(t,r){const o=Pe({props:t,name:"MuiPaper"}),{className:i,component:n="div",elevation:s=1,square:a=!1,variant:l="elevation"}=o,d=G(o,lt),m=g({},o,{component:n,elevation:s,square:a,variant:l}),E=ct(m);return A.jsx(ut,g({as:n,ownerState:m,className:ie(E.root,i),ref:r},d))}),ft=dt,pt=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ht(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function mt(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function vt(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||mt(e))}function Et(e){const t=[],r=[];return Array.from(e.querySelectorAll(pt)).forEach((o,i)=>{const n=ht(o);n===-1||!vt(o)||(n===0?t.push(o):r.push({documentOrder:i,tabIndex:n,node:o}))}),r.sort((o,i)=>o.tabIndex===i.tabIndex?o.documentOrder-i.documentOrder:o.tabIndex-i.tabIndex).map(o=>o.node).concat(t)}function gt(){return!0}function xt(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:n=Et,isEnabled:s=gt,open:a}=e,l=c.useRef(!1),d=c.useRef(null),m=c.useRef(null),E=c.useRef(null),C=c.useRef(null),N=c.useRef(!1),h=c.useRef(null),S=ae(t.ref,h),y=c.useRef(null);c.useEffect(()=>{!a||!h.current||(N.current=!r)},[r,a]),c.useEffect(()=>{if(!a||!h.current)return;const u=q(h.current);return h.current.contains(u.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),N.current&&h.current.focus()),()=>{i||(E.current&&E.current.focus&&(l.current=!0,E.current.focus()),E.current=null)}},[a]),c.useEffect(()=>{if(!a||!h.current)return;const u=q(h.current),x=R=>{y.current=R,!(o||!s()||R.key!=="Tab")&&u.activeElement===h.current&&R.shiftKey&&(l.current=!0,m.current&&m.current.focus())},b=()=>{const R=h.current;if(R===null)return;if(!u.hasFocus()||!s()||l.current){l.current=!1;return}if(R.contains(u.activeElement)||o&&u.activeElement!==d.current&&u.activeElement!==m.current)return;if(u.activeElement!==C.current)C.current=null;else if(C.current!==null)return;if(!N.current)return;let D=[];if((u.activeElement===d.current||u.activeElement===m.current)&&(D=n(h.current)),D.length>0){var _,$;const H=!!((_=y.current)!=null&&_.shiftKey&&(($=y.current)==null?void 0:$.key)==="Tab"),O=D[0],L=D[D.length-1];typeof O!="string"&&typeof L!="string"&&(H?L.focus():O.focus())}else R.focus()};u.addEventListener("focusin",b),u.addEventListener("keydown",x,!0);const M=setInterval(()=>{u.activeElement&&u.activeElement.tagName==="BODY"&&b()},50);return()=>{clearInterval(M),u.removeEventListener("focusin",b),u.removeEventListener("keydown",x,!0)}},[r,o,i,s,a,n]);const k=u=>{E.current===null&&(E.current=u.relatedTarget),N.current=!0,C.current=u.target;const x=t.props.onFocus;x&&x(u)},I=u=>{E.current===null&&(E.current=u.relatedTarget),N.current=!0};return A.jsxs(c.Fragment,{children:[A.jsx("div",{tabIndex:a?0:-1,onFocus:I,ref:d,"data-testid":"sentinelStart"}),c.cloneElement(t,{ref:S,onFocus:k}),A.jsx("div",{tabIndex:a?0:-1,onFocus:I,ref:m,"data-testid":"sentinelEnd"})]})}function bt(e){return typeof e=="function"?e():e}const Pt=c.forwardRef(function(t,r){const{children:o,container:i,disablePortal:n=!1}=t,[s,a]=c.useState(null),l=ae(c.isValidElement(o)?o.ref:null,r);if(Le(()=>{n||a(bt(i)||document.body)},[i,n]),Le(()=>{if(s&&!n)return _e(r,s),()=>{_e(r,null)}},[r,s,n]),n){if(c.isValidElement(o)){const d={ref:l};return c.cloneElement(o,d)}return A.jsx(c.Fragment,{children:o})}return A.jsx(c.Fragment,{children:s&&Ze.createPortal(o,s)})});function yt(e){const t=q(e);return t.body===e?fe(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function de(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function We(e){return parseInt(fe(e).getComputedStyle(e).paddingRight,10)||0}function Tt(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||o}function ze(e,t,r,o,i){const n=[t,r,...o];[].forEach.call(e.children,s=>{const a=n.indexOf(s)===-1,l=!Tt(s);a&&l&&de(s,i)})}function ke(e,t){let r=-1;return e.some((o,i)=>t(o)?(r=i,!0):!1),r}function Rt(e,t){const r=[],o=e.container;if(!t.disableScrollLock){if(yt(o)){const s=rt(q(o));r.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${We(o)+s}px`;const a=q(o).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${We(l)+s}px`})}let n;if(o.parentNode instanceof DocumentFragment)n=q(o).body;else{const s=o.parentElement,a=fe(o);n=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:o}r.push({value:n.style.overflow,property:"overflow",el:n},{value:n.style.overflowX,property:"overflow-x",el:n},{value:n.style.overflowY,property:"overflow-y",el:n}),n.style.overflow="hidden"}return()=>{r.forEach(({value:n,el:s,property:a})=>{n?s.style.setProperty(a,n):s.style.removeProperty(a)})}}function kt(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class St{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&de(t.modalRef,!1);const i=kt(r);ze(r,t.mount,t.modalRef,i,!0);const n=ke(this.containers,s=>s.container===r);return n!==-1?(this.containers[n].modals.push(t),o):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),o)}mount(t,r){const o=ke(this.containers,n=>n.modals.indexOf(t)!==-1),i=this.containers[o];i.restore||(i.restore=Rt(i,r))}remove(t,r=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const i=ke(this.containers,s=>s.modals.indexOf(t)!==-1),n=this.containers[i];if(n.modals.splice(n.modals.indexOf(t),1),this.modals.splice(o,1),n.modals.length===0)n.restore&&n.restore(),t.modalRef&&de(t.modalRef,r),ze(n.container,t.mount,t.modalRef,n.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=n.modals[n.modals.length-1];s.modalRef&&de(s.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Ct(e){return typeof e=="function"?e():e}function Nt(e){return e?e.props.hasOwnProperty("in"):!1}const Mt=new St;function wt(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:o=!1,manager:i=Mt,closeAfterTransition:n=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:d,open:m,rootRef:E}=e,C=c.useRef({}),N=c.useRef(null),h=c.useRef(null),S=ae(h,E),[y,k]=c.useState(!m),I=Nt(l);let u=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(u=!1);const x=()=>q(N.current),b=()=>(C.current.modalRef=h.current,C.current.mount=N.current,C.current),M=()=>{i.mount(b(),{disableScrollLock:o}),h.current&&(h.current.scrollTop=0)},R=Be(()=>{const p=Ct(t)||x().body;i.add(b(),p),h.current&&M()}),D=c.useCallback(()=>i.isTopModal(b()),[i]),_=Be(p=>{N.current=p,p&&(m&&D()?M():h.current&&de(h.current,u))}),$=c.useCallback(()=>{i.remove(b(),u)},[u,i]);c.useEffect(()=>()=>{$()},[$]),c.useEffect(()=>{m?R():(!I||!n)&&$()},[m,$,I,n,R]);const H=p=>v=>{var F;(F=p.onKeyDown)==null||F.call(p,v),!(v.key!=="Escape"||v.which===229||!D())&&(r||(v.stopPropagation(),d&&d(v,"escapeKeyDown")))},O=p=>v=>{var F;(F=p.onClick)==null||F.call(p,v),v.target===v.currentTarget&&d&&d(v,"backdropClick")};return{getRootProps:(p={})=>{const v=tt(e);delete v.onTransitionEnter,delete v.onTransitionExited;const F=g({},v,p);return g({role:"presentation"},F,{onKeyDown:H(F),ref:S})},getBackdropProps:(p={})=>{const v=p;return g({"aria-hidden":!0},v,{onClick:O(v),open:m})},getTransitionProps:()=>{const p=()=>{k(!1),s&&s()},v=()=>{k(!0),a&&a(),n&&$()};return{onEnter:je(p,l==null?void 0:l.props.onEnter),onExited:je(v,l==null?void 0:l.props.onExited)}},rootRef:S,portalRef:_,isTopModal:D,exited:y,hasTransition:I}}const Ot=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],It={entering:{opacity:1},entered:{opacity:1}},Dt=c.forwardRef(function(t,r){const o=Xe(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:n,appear:s=!0,children:a,easing:l,in:d,onEnter:m,onEntered:E,onEntering:C,onExit:N,onExited:h,onExiting:S,style:y,timeout:k=i,TransitionComponent:I=Ye}=t,u=G(t,Ot),x=c.useRef(null),b=ae(x,a.ref,r),M=T=>f=>{if(T){const p=x.current;f===void 0?T(p):T(p,f)}},R=M(C),D=M((T,f)=>{Je(T);const p=ge({style:y,timeout:k,easing:l},{mode:"enter"});T.style.webkitTransition=o.transitions.create("opacity",p),T.style.transition=o.transitions.create("opacity",p),m&&m(T,f)}),_=M(E),$=M(S),H=M(T=>{const f=ge({style:y,timeout:k,easing:l},{mode:"exit"});T.style.webkitTransition=o.transitions.create("opacity",f),T.style.transition=o.transitions.create("opacity",f),N&&N(T)}),O=M(h),L=T=>{n&&n(x.current,T)};return A.jsx(I,g({appear:s,in:d,nodeRef:x,onEnter:D,onEntered:_,onEntering:R,onExit:H,onExited:O,onExiting:$,addEndListener:L,timeout:k},u,{children:(T,f)=>c.cloneElement(a,g({style:g({opacity:0,visibility:T==="exited"&&!d?"hidden":void 0},It[T],y,a.props.style),ref:b},f))}))}),$t=Dt;function Ft(e){return xe("MuiBackdrop",e)}be("MuiBackdrop",["root","invisible"]);const At=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Lt=e=>{const{classes:t,invisible:r}=e;return ye({root:["root",r&&"invisible"]},Ft,t)},_t=se("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>g({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Bt=c.forwardRef(function(t,r){var o,i,n;const s=Pe({props:t,name:"MuiBackdrop"}),{children:a,className:l,component:d="div",components:m={},componentsProps:E={},invisible:C=!1,open:N,slotProps:h={},slots:S={},TransitionComponent:y=$t,transitionDuration:k}=s,I=G(s,At),u=g({},s,{component:d,invisible:C}),x=Lt(u),b=(o=h.root)!=null?o:E.root;return A.jsx(y,g({in:N,timeout:k},I,{children:A.jsx(_t,g({"aria-hidden":!0},b,{as:(i=(n=S.root)!=null?n:m.Root)!=null?i:d,className:ie(x.root,l,b==null?void 0:b.className),ownerState:g({},u,b==null?void 0:b.ownerState),classes:x,ref:r,children:a}))}))}),jt=Bt;function Ht(e){return xe("MuiModal",e)}be("MuiModal",["root","hidden","backdrop"]);const Ut=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Wt=e=>{const{open:t,exited:r,classes:o}=e;return ye({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Ht,o)},zt=se("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>g({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Kt=se(jt,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Gt=c.forwardRef(function(t,r){var o,i,n,s,a,l;const d=Pe({name:"MuiModal",props:t}),{BackdropComponent:m=Kt,BackdropProps:E,className:C,closeAfterTransition:N=!1,children:h,container:S,component:y,components:k={},componentsProps:I={},disableAutoFocus:u=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:b=!1,disablePortal:M=!1,disableRestoreFocus:R=!1,disableScrollLock:D=!1,hideBackdrop:_=!1,keepMounted:$=!1,onBackdropClick:H,open:O,slotProps:L,slots:T}=d,f=G(d,Ut),p=g({},d,{closeAfterTransition:N,disableAutoFocus:u,disableEnforceFocus:x,disableEscapeKeyDown:b,disablePortal:M,disableRestoreFocus:R,disableScrollLock:D,hideBackdrop:_,keepMounted:$}),{getRootProps:v,getBackdropProps:F,getTransitionProps:B,portalRef:z,isTopModal:pe,exited:U,hasTransition:he}=wt(g({},p,{rootRef:r})),V=g({},p,{exited:U}),K=Wt(V),Q={};if(h.props.tabIndex===void 0&&(Q.tabIndex="-1"),he){const{onEnter:P,onExited:w}=B();Q.onEnter=P,Q.onExited=w}const Z=(o=(i=T==null?void 0:T.root)!=null?i:k.Root)!=null?o:zt,le=(n=(s=T==null?void 0:T.backdrop)!=null?s:k.Backdrop)!=null?n:m,ce=(a=L==null?void 0:L.root)!=null?a:I.root,ee=(l=L==null?void 0:L.backdrop)!=null?l:I.backdrop,Te=Ee({elementType:Z,externalSlotProps:ce,externalForwardedProps:f,getSlotProps:v,additionalProps:{ref:r,as:y},ownerState:V,className:ie(C,ce==null?void 0:ce.className,K==null?void 0:K.root,!V.open&&V.exited&&(K==null?void 0:K.hidden))}),Re=Ee({elementType:le,externalSlotProps:ee,additionalProps:E,getSlotProps:P=>F(g({},P,{onClick:w=>{H&&H(w),P!=null&&P.onClick&&P.onClick(w)}})),className:ie(ee==null?void 0:ee.className,E==null?void 0:E.className,K==null?void 0:K.backdrop),ownerState:V});return!$&&!O&&(!he||U)?null:A.jsx(Pt,{ref:z,container:S,disablePortal:M,children:A.jsxs(Z,g({},Te,{children:[!_&&m?A.jsx(le,g({},Re)):null,A.jsx(xt,{disableEnforceFocus:x,disableAutoFocus:u,disableRestoreFocus:R,isEnabled:pe,open:O,children:c.cloneElement(h,Q)})]}))})}),qt=Gt,Xt=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Me(e){return`scale(${e}, ${e**2})`}const Vt={entering:{opacity:1,transform:Me(1)},entered:{opacity:1,transform:"none"}},Se=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Qe=c.forwardRef(function(t,r){const{addEndListener:o,appear:i=!0,children:n,easing:s,in:a,onEnter:l,onEntered:d,onEntering:m,onExit:E,onExited:C,onExiting:N,style:h,timeout:S="auto",TransitionComponent:y=Ye}=t,k=G(t,Xt),I=c.useRef(),u=c.useRef(),x=Xe(),b=c.useRef(null),M=ae(b,n.ref,r),R=f=>p=>{if(f){const v=b.current;p===void 0?f(v):f(v,p)}},D=R(m),_=R((f,p)=>{Je(f);const{duration:v,delay:F,easing:B}=ge({style:h,timeout:S,easing:s},{mode:"enter"});let z;S==="auto"?(z=x.transitions.getAutoHeightDuration(f.clientHeight),u.current=z):z=v,f.style.transition=[x.transitions.create("opacity",{duration:z,delay:F}),x.transitions.create("transform",{duration:Se?z:z*.666,delay:F,easing:B})].join(","),l&&l(f,p)}),$=R(d),H=R(N),O=R(f=>{const{duration:p,delay:v,easing:F}=ge({style:h,timeout:S,easing:s},{mode:"exit"});let B;S==="auto"?(B=x.transitions.getAutoHeightDuration(f.clientHeight),u.current=B):B=p,f.style.transition=[x.transitions.create("opacity",{duration:B,delay:v}),x.transitions.create("transform",{duration:Se?B:B*.666,delay:Se?v:v||B*.333,easing:F})].join(","),f.style.opacity=0,f.style.transform=Me(.75),E&&E(f)}),L=R(C),T=f=>{S==="auto"&&(I.current=setTimeout(f,u.current||0)),o&&o(b.current,f)};return c.useEffect(()=>()=>{clearTimeout(I.current)},[]),A.jsx(y,g({appear:i,in:a,nodeRef:b,onEnter:_,onEntered:$,onEntering:D,onExit:O,onExited:L,onExiting:H,addEndListener:T,timeout:S==="auto"?null:S},k,{children:(f,p)=>c.cloneElement(n,g({style:g({opacity:0,transform:Me(.75),visibility:f==="exited"&&!a?"hidden":void 0},Vt[f],h,n.props.style),ref:M},p))}))});Qe.muiSupportAuto=!0;const Yt=Qe;function Jt(e){return xe("MuiPopover",e)}be("MuiPopover",["root","paper"]);const Qt=["onEntering"],Zt=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],en=["slotProps"];function Ke(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function Ge(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function qe(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Ce(e){return typeof e=="function"?e():e}const tn=e=>{const{classes:t}=e;return ye({root:["root"],paper:["paper"]},Jt,t)},nn=se(qt,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),on=se(ft,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),rn=c.forwardRef(function(t,r){var o,i,n;const s=Pe({props:t,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:d={vertical:"top",horizontal:"left"},anchorPosition:m,anchorReference:E="anchorEl",children:C,className:N,container:h,elevation:S=8,marginThreshold:y=16,open:k,PaperProps:I={},slots:u,slotProps:x,transformOrigin:b={vertical:"top",horizontal:"left"},TransitionComponent:M=Yt,transitionDuration:R="auto",TransitionProps:{onEntering:D}={},disableScrollLock:_=!1}=s,$=G(s.TransitionProps,Qt),H=G(s,Zt),O=(o=x==null?void 0:x.paper)!=null?o:I,L=c.useRef(),T=ae(L,O.ref),f=g({},s,{anchorOrigin:d,anchorReference:E,elevation:S,marginThreshold:y,externalPaperSlotProps:O,transformOrigin:b,TransitionComponent:M,transitionDuration:R,TransitionProps:$}),p=tn(f),v=c.useCallback(()=>{if(E==="anchorPosition")return m;const P=Ce(l),j=(P&&P.nodeType===1?P:q(L.current).body).getBoundingClientRect();return{top:j.top+Ke(j,d.vertical),left:j.left+Ge(j,d.horizontal)}},[l,d.horizontal,d.vertical,m,E]),F=c.useCallback(P=>({vertical:Ke(P,b.vertical),horizontal:Ge(P,b.horizontal)}),[b.horizontal,b.vertical]),B=c.useCallback(P=>{const w={width:P.offsetWidth,height:P.offsetHeight},j=F(w);if(E==="none")return{top:null,left:null,transformOrigin:qe(j)};const we=v();let te=we.top-j.vertical,ne=we.left-j.horizontal;const Oe=te+w.height,Ie=ne+w.width,De=fe(Ce(l)),$e=De.innerHeight-y,Fe=De.innerWidth-y;if(y!==null&&te$e){const W=Oe-$e;te-=W,j.vertical+=W}if(y!==null&&neFe){const W=Ie-Fe;ne-=W,j.horizontal+=W}return{top:`${Math.round(te)}px`,left:`${Math.round(ne)}px`,transformOrigin:qe(j)}},[l,E,v,F,y]),[z,pe]=c.useState(k),U=c.useCallback(()=>{const P=L.current;if(!P)return;const w=B(P);w.top!==null&&(P.style.top=w.top),w.left!==null&&(P.style.left=w.left),P.style.transformOrigin=w.transformOrigin,pe(!0)},[B]);c.useEffect(()=>(_&&window.addEventListener("scroll",U),()=>window.removeEventListener("scroll",U)),[l,_,U]);const he=(P,w)=>{D&&D(P,w),U()},V=()=>{pe(!1)};c.useEffect(()=>{k&&U()}),c.useImperativeHandle(a,()=>k?{updatePosition:()=>{U()}}:null,[k,U]),c.useEffect(()=>{if(!k)return;const P=nt(()=>{U()}),w=fe(l);return w.addEventListener("resize",P),()=>{P.clear(),w.removeEventListener("resize",P)}},[l,k,U]);let K=R;R==="auto"&&!M.muiSupportAuto&&(K=void 0);const Q=h||(l?q(Ce(l)).body:void 0),Z=(i=u==null?void 0:u.root)!=null?i:nn,le=(n=u==null?void 0:u.paper)!=null?n:on,ce=Ee({elementType:le,externalSlotProps:g({},O,{style:z?O.style:g({},O.style,{opacity:0})}),additionalProps:{elevation:S,ref:T},ownerState:f,className:ie(p.paper,O==null?void 0:O.className)}),ee=Ee({elementType:Z,externalSlotProps:(x==null?void 0:x.root)||{},externalForwardedProps:H,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:Q,open:k},ownerState:f,className:ie(p.root,N)}),{slotProps:Te}=ee,Re=G(ee,en);return A.jsx(Z,g({},Re,!ot(Z)&&{slotProps:Te,disableScrollLock:_},{children:A.jsx(M,g({appear:!0,in:k,onEntering:he,onExited:V,timeout:K},$,{children:A.jsx(le,g({},ce,{children:C}))}))}))}),cn=rn;export{cn as P,Ye as T,ft as a,rt as b,on as c,Pt as d,ge as g,Je as r}; diff --git a/build/assets/Preview-d32c5564.js b/build/assets/Preview-d1601aa7.js similarity index 97% rename from build/assets/Preview-d32c5564.js rename to build/assets/Preview-d1601aa7.js index 06b58f820..21c54c8c3 100644 --- a/build/assets/Preview-d32c5564.js +++ b/build/assets/Preview-d1601aa7.js @@ -1 +1 @@ -import{n as y,r as b}from"./index-21067c9d.js";function v(r,e){for(var t=0;tn[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var w=Object.create,i=Object.defineProperty,P=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,x=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty,j=(r,e,t)=>e in r?i(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,E=(r,e)=>{for(var t in e)i(r,t,{get:e[t],enumerable:!0})},h=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of O(e))!I.call(r,a)&&a!==t&&i(r,a,{get:()=>e[a],enumerable:!(n=P(e,a))||n.enumerable});return r},S=(r,e,t)=>(t=r!=null?w(x(r)):{},h(e||!r||!r.__esModule?i(t,"default",{value:r,enumerable:!0}):t,r)),C=r=>h(i({},"__esModule",{value:!0}),r),p=(r,e,t)=>(j(r,typeof e!="symbol"?e+"":e,t),t),_={};E(_,{default:()=>N});var g=C(_),s=S(b);const u="64px",d={};class N extends s.Component{constructor(){super(...arguments),p(this,"mounted",!1),p(this,"state",{image:null}),p(this,"handleKeyPress",e=>{(e.key==="Enter"||e.key===" ")&&this.props.onClick()})}componentDidMount(){this.mounted=!0,this.fetchImage(this.props)}componentDidUpdate(e){const{url:t,light:n}=this.props;(e.url!==t||e.light!==n)&&this.fetchImage(this.props)}componentWillUnmount(){this.mounted=!1}fetchImage({url:e,light:t,oEmbedUrl:n}){if(!s.default.isValidElement(t)){if(typeof t=="string"){this.setState({image:t});return}if(d[e]){this.setState({image:d[e]});return}return this.setState({image:null}),window.fetch(n.replace("{url}",e)).then(a=>a.json()).then(a=>{if(a.thumbnail_url&&this.mounted){const o=a.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");this.setState({image:o}),d[e]=o}})}}render(){const{light:e,onClick:t,playIcon:n,previewTabIndex:a}=this.props,{image:o}=this.state,l=s.default.isValidElement(e),f={display:"flex",alignItems:"center",justifyContent:"center"},c={preview:{width:"100%",height:"100%",backgroundImage:o&&!l?`url(${o})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...f},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:u,width:u,height:u,position:l?"absolute":void 0,...f},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},m=s.default.createElement("div",{style:c.shadow,className:"react-player__shadow"},s.default.createElement("div",{style:c.playIcon,className:"react-player__play-icon"}));return s.default.createElement("div",{style:c.preview,className:"react-player__preview",onClick:t,tabIndex:a,onKeyPress:this.handleKeyPress},l?e:null,n||m)}}const k=y(g),M=v({__proto__:null,default:k},[g]);export{M as P}; +import{n as y,r as b}from"./index-f50d1ab5.js";function v(r,e){for(var t=0;tn[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var w=Object.create,i=Object.defineProperty,P=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,x=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty,j=(r,e,t)=>e in r?i(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,E=(r,e)=>{for(var t in e)i(r,t,{get:e[t],enumerable:!0})},h=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of O(e))!I.call(r,a)&&a!==t&&i(r,a,{get:()=>e[a],enumerable:!(n=P(e,a))||n.enumerable});return r},S=(r,e,t)=>(t=r!=null?w(x(r)):{},h(e||!r||!r.__esModule?i(t,"default",{value:r,enumerable:!0}):t,r)),C=r=>h(i({},"__esModule",{value:!0}),r),p=(r,e,t)=>(j(r,typeof e!="symbol"?e+"":e,t),t),_={};E(_,{default:()=>N});var g=C(_),s=S(b);const u="64px",d={};class N extends s.Component{constructor(){super(...arguments),p(this,"mounted",!1),p(this,"state",{image:null}),p(this,"handleKeyPress",e=>{(e.key==="Enter"||e.key===" ")&&this.props.onClick()})}componentDidMount(){this.mounted=!0,this.fetchImage(this.props)}componentDidUpdate(e){const{url:t,light:n}=this.props;(e.url!==t||e.light!==n)&&this.fetchImage(this.props)}componentWillUnmount(){this.mounted=!1}fetchImage({url:e,light:t,oEmbedUrl:n}){if(!s.default.isValidElement(t)){if(typeof t=="string"){this.setState({image:t});return}if(d[e]){this.setState({image:d[e]});return}return this.setState({image:null}),window.fetch(n.replace("{url}",e)).then(a=>a.json()).then(a=>{if(a.thumbnail_url&&this.mounted){const o=a.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");this.setState({image:o}),d[e]=o}})}}render(){const{light:e,onClick:t,playIcon:n,previewTabIndex:a}=this.props,{image:o}=this.state,l=s.default.isValidElement(e),f={display:"flex",alignItems:"center",justifyContent:"center"},c={preview:{width:"100%",height:"100%",backgroundImage:o&&!l?`url(${o})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...f},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:u,width:u,height:u,position:l?"absolute":void 0,...f},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},m=s.default.createElement("div",{style:c.shadow,className:"react-player__shadow"},s.default.createElement("div",{style:c.playIcon,className:"react-player__play-icon"}));return s.default.createElement("div",{style:c.preview,className:"react-player__preview",onClick:t,tabIndex:a,onKeyPress:this.handleKeyPress},l?e:null,n||m)}}const k=y(g),M=v({__proto__:null,default:k},[g]);export{M as P}; diff --git a/build/assets/SearchIcon-d549dd07.js b/build/assets/SearchIcon-c000717e.js similarity index 96% rename from build/assets/SearchIcon-d549dd07.js rename to build/assets/SearchIcon-c000717e.js index a81ba75df..6c07316ed 100644 --- a/build/assets/SearchIcon-d549dd07.js +++ b/build/assets/SearchIcon-c000717e.js @@ -1 +1 @@ -import{b as T,g as B,s as M,e as C,_ as s,r as W,u as j,a as w,j as p,c as P,d as R}from"./index-21067c9d.js";import{e as L}from"./Stack-dbe00046.js";function N(r){return T("MuiTypography",r)}B("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const U=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],_=r=>{const{align:t,gutterBottom:a,noWrap:n,paragraph:e,variant:o,classes:h}=r,i={root:["root",o,r.align!=="inherit"&&`align${C(t)}`,a&&"gutterBottom",n&&"noWrap",e&&"paragraph"]};return R(i,N,h)},$=M("span",{name:"MuiTypography",slot:"Root",overridesResolver:(r,t)=>{const{ownerState:a}=r;return[t.root,a.variant&&t[a.variant],a.align!=="inherit"&&t[`align${C(a.align)}`],a.noWrap&&t.noWrap,a.gutterBottom&&t.gutterBottom,a.paragraph&&t.paragraph]}})(({theme:r,ownerState:t})=>s({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&r.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),u={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},E={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Z=r=>E[r]||r,z=W.forwardRef(function(t,a){const n=j({props:t,name:"MuiTypography"}),e=Z(n.color),o=L(s({},n,{color:e})),{align:h="inherit",className:i,component:l,gutterBottom:d=!1,noWrap:x=!1,paragraph:c=!1,variant:g="body1",variantMapping:m=u}=o,f=w(o,U),y=s({},o,{align:h,color:e,className:i,component:l,gutterBottom:d,noWrap:x,paragraph:c,variant:g,variantMapping:m}),v=l||(c?"p":m[g]||u[g])||"span",b=_(y);return p.jsx($,s({as:v,ref:a,ownerState:y,className:P(b.root,i)},f))}),I=z,J=r=>p.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("g",{id:"Property 1=Normal",children:p.jsx("path",{id:"search",d:"M15.5192 20.6153C13.8115 20.6153 12.3654 20.023 11.1808 18.8384C9.99618 17.6538 9.40387 16.2077 9.40387 14.5C9.40387 12.7923 9.99618 11.3462 11.1808 10.1615C12.3654 8.97694 13.8115 8.38464 15.5192 8.38464C17.2269 8.38464 18.6731 8.97694 19.8577 10.1615C21.0423 11.3462 21.6346 12.7923 21.6346 14.5C21.6346 15.2141 21.5147 15.8961 21.275 16.5461C21.0352 17.1961 20.7153 17.7615 20.3153 18.2423L23.0692 20.9961C23.2077 21.1346 23.2785 21.3087 23.2817 21.5183C23.2849 21.7279 23.2141 21.9051 23.0692 22.05C22.9243 22.1948 22.7487 22.2673 22.5423 22.2673C22.3359 22.2673 22.1603 22.1948 22.0154 22.05L19.2615 19.2961C18.7615 19.7089 18.1865 20.032 17.5365 20.2653C16.8865 20.4987 16.2141 20.6153 15.5192 20.6153ZM15.5192 19.1154C16.8077 19.1154 17.899 18.6683 18.7933 17.774C19.6875 16.8798 20.1346 15.7885 20.1346 14.5C20.1346 13.2115 19.6875 12.1202 18.7933 11.2259C17.899 10.3317 16.8077 9.88459 15.5192 9.88459C14.2308 9.88459 13.1394 10.3317 12.2452 11.2259C11.351 12.1202 10.9038 13.2115 10.9038 14.5C10.9038 15.7885 11.351 16.8798 12.2452 17.774C13.1394 18.6683 14.2308 19.1154 15.5192 19.1154Z",fill:"currentColor"})})});export{J as S,I as T}; +import{b as T,g as B,s as M,e as C,_ as s,r as W,u as j,a as w,j as p,c as P,d as R}from"./index-f50d1ab5.js";import{e as L}from"./Stack-a4065033.js";function N(r){return T("MuiTypography",r)}B("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const U=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],_=r=>{const{align:t,gutterBottom:a,noWrap:n,paragraph:e,variant:o,classes:h}=r,i={root:["root",o,r.align!=="inherit"&&`align${C(t)}`,a&&"gutterBottom",n&&"noWrap",e&&"paragraph"]};return R(i,N,h)},$=M("span",{name:"MuiTypography",slot:"Root",overridesResolver:(r,t)=>{const{ownerState:a}=r;return[t.root,a.variant&&t[a.variant],a.align!=="inherit"&&t[`align${C(a.align)}`],a.noWrap&&t.noWrap,a.gutterBottom&&t.gutterBottom,a.paragraph&&t.paragraph]}})(({theme:r,ownerState:t})=>s({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&r.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),u={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},E={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Z=r=>E[r]||r,z=W.forwardRef(function(t,a){const n=j({props:t,name:"MuiTypography"}),e=Z(n.color),o=L(s({},n,{color:e})),{align:h="inherit",className:i,component:l,gutterBottom:d=!1,noWrap:x=!1,paragraph:c=!1,variant:g="body1",variantMapping:m=u}=o,f=w(o,U),y=s({},o,{align:h,color:e,className:i,component:l,gutterBottom:d,noWrap:x,paragraph:c,variant:g,variantMapping:m}),v=l||(c?"p":m[g]||u[g])||"span",b=_(y);return p.jsx($,s({as:v,ref:a,ownerState:y,className:P(b.root,i)},f))}),I=z,J=r=>p.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("g",{id:"Property 1=Normal",children:p.jsx("path",{id:"search",d:"M15.5192 20.6153C13.8115 20.6153 12.3654 20.023 11.1808 18.8384C9.99618 17.6538 9.40387 16.2077 9.40387 14.5C9.40387 12.7923 9.99618 11.3462 11.1808 10.1615C12.3654 8.97694 13.8115 8.38464 15.5192 8.38464C17.2269 8.38464 18.6731 8.97694 19.8577 10.1615C21.0423 11.3462 21.6346 12.7923 21.6346 14.5C21.6346 15.2141 21.5147 15.8961 21.275 16.5461C21.0352 17.1961 20.7153 17.7615 20.3153 18.2423L23.0692 20.9961C23.2077 21.1346 23.2785 21.3087 23.2817 21.5183C23.2849 21.7279 23.2141 21.9051 23.0692 22.05C22.9243 22.1948 22.7487 22.2673 22.5423 22.2673C22.3359 22.2673 22.1603 22.1948 22.0154 22.05L19.2615 19.2961C18.7615 19.7089 18.1865 20.032 17.5365 20.2653C16.8865 20.4987 16.2141 20.6153 15.5192 20.6153ZM15.5192 19.1154C16.8077 19.1154 17.899 18.6683 18.7933 17.774C19.6875 16.8798 20.1346 15.7885 20.1346 14.5C20.1346 13.2115 19.6875 12.1202 18.7933 11.2259C17.899 10.3317 16.8077 9.88459 15.5192 9.88459C14.2308 9.88459 13.1394 10.3317 12.2452 11.2259C11.351 12.1202 10.9038 13.2115 10.9038 14.5C10.9038 15.7885 11.351 16.8798 12.2452 17.774C13.1394 18.6683 14.2308 19.1154 15.5192 19.1154Z",fill:"currentColor"})})});export{J as S,I as T}; diff --git a/build/assets/Skeleton-079276a0.js b/build/assets/Skeleton-6b5d8ec7.js similarity index 97% rename from build/assets/Skeleton-079276a0.js rename to build/assets/Skeleton-6b5d8ec7.js index 44db80fb1..f2f5c62c0 100644 --- a/build/assets/Skeleton-079276a0.js +++ b/build/assets/Skeleton-6b5d8ec7.js @@ -1,4 +1,4 @@ -import{b as x,g as y,k as b,s as R,_ as o,f as _,bm as u,r as S,u as $,a as U,j as M,c as j,d as A}from"./index-21067c9d.js";function X(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function N(t){return parseFloat(t)}function B(t){return x("MuiSkeleton",t)}y("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const E=["animation","className","component","height","style","variant","width"];let r=t=>t,p,g,m,f;const F=t=>{const{classes:a,variant:e,animation:i,hasChildren:n,width:l,height:s}=t;return A({root:["root",e,i,n&&"withChildren",n&&!l&&"fitContent",n&&!s&&"heightAuto"]},B,a)},K=b(p||(p=r` +import{b as x,g as y,k as b,s as R,_ as o,f as _,bm as u,r as S,u as $,a as U,j as M,c as j,d as A}from"./index-f50d1ab5.js";function X(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function N(t){return parseFloat(t)}function B(t){return x("MuiSkeleton",t)}y("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const E=["animation","className","component","height","style","variant","width"];let r=t=>t,p,g,m,f;const F=t=>{const{classes:a,variant:e,animation:i,hasChildren:n,width:l,height:s}=t;return A({root:["root",e,i,n&&"withChildren",n&&!l&&"fitContent",n&&!s&&"heightAuto"]},B,a)},K=b(p||(p=r` 0% { opacity: 1; } diff --git a/build/assets/SoundCloud-43839928.js b/build/assets/SoundCloud-edbca398.js similarity index 95% rename from build/assets/SoundCloud-43839928.js rename to build/assets/SoundCloud-edbca398.js index ed03b9165..0f231cae9 100644 --- a/build/assets/SoundCloud-43839928.js +++ b/build/assets/SoundCloud-edbca398.js @@ -1 +1 @@ -import{n as P,r as g}from"./index-21067c9d.js";import{u as b,p as v}from"./index-adad2e25.js";function O(t,e){for(var r=0;rs[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,w=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,C=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty,D=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,L=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},d=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of j(e))!E.call(t,o)&&o!==r&&l(t,o,{get:()=>e[o],enumerable:!(s=w(e,o))||s.enumerable});return t},R=(t,e,r)=>(r=t!=null?S(C(t)):{},d(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),T=t=>d(l({},"__esModule",{value:!0}),t),n=(t,e,r)=>(D(t,typeof e!="symbol"?e+"":e,r),r),h={};L(h,{default:()=>u});var f=T(h),p=R(g),c=b,M=v;const x="https://w.soundcloud.com/player/api.js",A="SC";class u extends p.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"duration",null),n(this,"currentTime",null),n(this,"fractionLoaded",null),n(this,"mute",()=>{this.setVolume(0)}),n(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),n(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){(0,c.getSDK)(x,A).then(s=>{if(!this.iframe)return;const{PLAY:o,PLAY_PROGRESS:i,PAUSE:y,FINISH:_,ERROR:m}=s.Widget.Events;r||(this.player=s.Widget(this.iframe),this.player.bind(o,this.props.onPlay),this.player.bind(y,()=>{this.duration-this.currentTime<.05||this.props.onPause()}),this.player.bind(i,a=>{this.currentTime=a.currentPosition/1e3,this.fractionLoaded=a.loadedProgress}),this.player.bind(_,()=>this.props.onEnded()),this.player.bind(m,a=>this.props.onError(a))),this.player.load(e,{...this.props.config.options,callback:()=>{this.player.getDuration(a=>{this.duration=a/1e3,this.props.onReady()})}})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seekTo",e*1e3),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.fractionLoaded*this.duration}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return p.default.createElement("iframe",{ref:this.ref,src:`https://w.soundcloud.com/player/?url=${encodeURIComponent(this.props.url)}`,style:r,frameBorder:0,allow:"autoplay"})}}n(u,"displayName","SoundCloud");n(u,"canPlay",M.canPlay.soundcloud);n(u,"loopOnEnded",!0);const N=P(f),I=O({__proto__:null,default:N},[f]);export{I as S}; +import{n as P,r as g}from"./index-f50d1ab5.js";import{u as b,p as v}from"./index-73f6b088.js";function O(t,e){for(var r=0;rs[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,w=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,C=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty,D=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,L=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},d=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of j(e))!E.call(t,o)&&o!==r&&l(t,o,{get:()=>e[o],enumerable:!(s=w(e,o))||s.enumerable});return t},R=(t,e,r)=>(r=t!=null?S(C(t)):{},d(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),T=t=>d(l({},"__esModule",{value:!0}),t),n=(t,e,r)=>(D(t,typeof e!="symbol"?e+"":e,r),r),h={};L(h,{default:()=>u});var f=T(h),p=R(g),c=b,M=v;const x="https://w.soundcloud.com/player/api.js",A="SC";class u extends p.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"duration",null),n(this,"currentTime",null),n(this,"fractionLoaded",null),n(this,"mute",()=>{this.setVolume(0)}),n(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),n(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){(0,c.getSDK)(x,A).then(s=>{if(!this.iframe)return;const{PLAY:o,PLAY_PROGRESS:i,PAUSE:y,FINISH:_,ERROR:m}=s.Widget.Events;r||(this.player=s.Widget(this.iframe),this.player.bind(o,this.props.onPlay),this.player.bind(y,()=>{this.duration-this.currentTime<.05||this.props.onPause()}),this.player.bind(i,a=>{this.currentTime=a.currentPosition/1e3,this.fractionLoaded=a.loadedProgress}),this.player.bind(_,()=>this.props.onEnded()),this.player.bind(m,a=>this.props.onError(a))),this.player.load(e,{...this.props.config.options,callback:()=>{this.player.getDuration(a=>{this.duration=a/1e3,this.props.onReady()})}})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seekTo",e*1e3),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.fractionLoaded*this.duration}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return p.default.createElement("iframe",{ref:this.ref,src:`https://w.soundcloud.com/player/?url=${encodeURIComponent(this.props.url)}`,style:r,frameBorder:0,allow:"autoplay"})}}n(u,"displayName","SoundCloud");n(u,"canPlay",M.canPlay.soundcloud);n(u,"loopOnEnded",!0);const N=P(f),I=O({__proto__:null,default:N},[f]);export{I as S}; diff --git a/build/assets/Stack-dbe00046.js b/build/assets/Stack-a4065033.js similarity index 99% rename from build/assets/Stack-dbe00046.js rename to build/assets/Stack-a4065033.js index 4e0d926ae..340105f78 100644 --- a/build/assets/Stack-dbe00046.js +++ b/build/assets/Stack-a4065033.js @@ -1 +1 @@ -import{r as E,a as ae,_ as T,bE as Tt,bF as Mt,bG as Bt,bH as Ft,bI as Wt,bp as Qe,bo as Ae,bJ as Lt,bD as Vt,bK as Nt,j as Q,bL as Ze,d as De,b as Te,g as vt,s as Me,bM as Ht,u as Be,e as mt,c as Ut}from"./index-21067c9d.js";import{o as et,u as It}from"./useSlotProps-f54e8b6d.js";import{d as qt}from"./Popover-8ff60b97.js";import{d as tt,e as rt}from"./index-93bc2f63.js";function Se(e,t){var r,o;return E.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(o=e.type)==null||(o=o._payload)==null||(o=o.value)==null?void 0:o.muiName)!==-1}function Vo({controlled:e,default:t,name:r,state:o="value"}){const{current:n}=E.useRef(e!==void 0),[a,c]=E.useState(t),s=n?e:a,i=E.useCallback(f=>{n||c(f)},[]);return[s,i]}const zt=["sx"],Xt=e=>{var t,r;const o={systemProps:{},otherProps:{}},n=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Tt;return Object.keys(e).forEach(a=>{n[a]?o.systemProps[a]=e[a]:o.otherProps[a]=e[a]}),o};function Yt(e){const{sx:t}=e,r=ae(e,zt),{systemProps:o,otherProps:n}=Xt(r);let a;return Array.isArray(t)?a=[o,...t]:typeof t=="function"?a=(...c)=>{const s=t(...c);return Mt(s)?T({},o,s):o}:a=T({},o,t),T({},n,{sx:a})}function ht(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;tt.root});function er(e){return Wt({props:e,name:"MuiStack",defaultTheme:Qt})}function tr(e,t){const r=E.Children.toArray(e).filter(Boolean);return r.reduce((o,n,a)=>(o.push(n),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],or=({ownerState:e,theme:t})=>{let r=T({display:"flex",flexDirection:"column"},Qe({theme:t},Ae({values:e.direction,breakpoints:t.breakpoints.values}),o=>({flexDirection:o})));if(e.spacing){const o=Lt(t),n=Object.keys(t.breakpoints.values).reduce((i,f)=>((typeof e.spacing=="object"&&e.spacing[f]!=null||typeof e.direction=="object"&&e.direction[f]!=null)&&(i[f]=!0),i),{}),a=Ae({values:e.direction,base:n}),c=Ae({values:e.spacing,base:n});typeof a=="object"&&Object.keys(a).forEach((i,f,l)=>{if(!a[i]){const h=f>0?a[l[f-1]]:"column";a[i]=h}}),r=Vt(r,Qe({theme:t},c,(i,f)=>e.useFlexGap?{gap:Ze(o,i)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${rr(f?a[f]:e.direction)}`]:Ze(o,i)}}))}return r=Nt(t.breakpoints,r),r};function nr(e={}){const{createStyledComponent:t=Zt,useThemeProps:r=er,componentName:o="MuiStack"}=e,n=()=>De({root:["root"]},i=>Te(o,i),{}),a=t(or);return E.forwardRef(function(i,f){const l=r(i),v=Yt(l),{component:h="div",direction:u="column",spacing:x=0,divider:d,children:m,className:w,useFlexGap:P=!1}=v,b=ae(v,Kt),p={direction:u,spacing:x,useFlexGap:P},g=n();return Q.jsx(a,T({as:h,ownerState:p,ref:f,className:Gt(g.root,w)},b,{children:d?tr(m,d):m}))})}const ar={disableDefaultClasses:!1},ir=E.createContext(ar);function sr(e){const{disableDefaultClasses:t}=E.useContext(ir);return r=>t?"":e(r)}var B="top",N="bottom",H="right",F="left",Fe="auto",de=[B,N,H,F],te="start",pe="end",lr="clippingParents",gt="viewport",le="popper",cr="reference",ot=de.reduce(function(e,t){return e.concat([t+"-"+te,t+"-"+pe])},[]),yt=[].concat(de,[Fe]).reduce(function(e,t){return e.concat([t,t+"-"+te,t+"-"+pe])},[]),fr="beforeRead",pr="read",ur="afterRead",dr="beforeMain",vr="main",mr="afterMain",hr="beforeWrite",gr="write",yr="afterWrite",br=[fr,pr,ur,dr,vr,mr,hr,gr,yr];function I(e){return e?(e.nodeName||"").toLowerCase():null}function W(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Z(e){var t=W(e).Element;return e instanceof t||e instanceof Element}function V(e){var t=W(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function We(e){if(typeof ShadowRoot>"u")return!1;var t=W(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function xr(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var o=t.styles[r]||{},n=t.attributes[r]||{},a=t.elements[r];!V(a)||!I(a)||(Object.assign(a.style,o),Object.keys(n).forEach(function(c){var s=n[c];s===!1?a.removeAttribute(c):a.setAttribute(c,s===!0?"":s)}))})}function wr(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(o){var n=t.elements[o],a=t.attributes[o]||{},c=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:r[o]),s=c.reduce(function(i,f){return i[f]="",i},{});!V(n)||!I(n)||(Object.assign(n.style,s),Object.keys(a).forEach(function(i){n.removeAttribute(i)}))})}}const Or={name:"applyStyles",enabled:!0,phase:"write",fn:xr,effect:wr,requires:["computeStyles"]};function U(e){return e.split("-")[0]}var K=Math.max,we=Math.min,re=Math.round;function $e(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function bt(){return!/^((?!chrome|android).)*safari/i.test($e())}function oe(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var o=e.getBoundingClientRect(),n=1,a=1;t&&V(e)&&(n=e.offsetWidth>0&&re(o.width)/e.offsetWidth||1,a=e.offsetHeight>0&&re(o.height)/e.offsetHeight||1);var c=Z(e)?W(e):window,s=c.visualViewport,i=!bt()&&r,f=(o.left+(i&&s?s.offsetLeft:0))/n,l=(o.top+(i&&s?s.offsetTop:0))/a,v=o.width/n,h=o.height/a;return{width:v,height:h,top:l,right:f+v,bottom:l+h,left:f,x:f,y:l}}function Le(e){var t=oe(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function xt(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&We(r)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function q(e){return W(e).getComputedStyle(e)}function Pr(e){return["table","td","th"].indexOf(I(e))>=0}function Y(e){return((Z(e)?e.ownerDocument:e.document)||window.document).documentElement}function Oe(e){return I(e)==="html"?e:e.assignedSlot||e.parentNode||(We(e)?e.host:null)||Y(e)}function nt(e){return!V(e)||q(e).position==="fixed"?null:e.offsetParent}function Er(e){var t=/firefox/i.test($e()),r=/Trident/i.test($e());if(r&&V(e)){var o=q(e);if(o.position==="fixed")return null}var n=Oe(e);for(We(n)&&(n=n.host);V(n)&&["html","body"].indexOf(I(n))<0;){var a=q(n);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return n;n=n.parentNode}return null}function ve(e){for(var t=W(e),r=nt(e);r&&Pr(r)&&q(r).position==="static";)r=nt(r);return r&&(I(r)==="html"||I(r)==="body"&&q(r).position==="static")?t:r||Er(e)||t}function Ve(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ce(e,t,r){return K(e,we(t,r))}function Cr(e,t,r){var o=ce(e,t,r);return o>r?r:o}function wt(){return{top:0,right:0,bottom:0,left:0}}function Ot(e){return Object.assign({},wt(),e)}function Pt(e,t){return t.reduce(function(r,o){return r[o]=e,r},{})}var Rr=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Ot(typeof t!="number"?t:Pt(t,de))};function Ar(e){var t,r=e.state,o=e.name,n=e.options,a=r.elements.arrow,c=r.modifiersData.popperOffsets,s=U(r.placement),i=Ve(s),f=[F,H].indexOf(s)>=0,l=f?"height":"width";if(!(!a||!c)){var v=Rr(n.padding,r),h=Le(a),u=i==="y"?B:F,x=i==="y"?N:H,d=r.rects.reference[l]+r.rects.reference[i]-c[i]-r.rects.popper[l],m=c[i]-r.rects.reference[i],w=ve(a),P=w?i==="y"?w.clientHeight||0:w.clientWidth||0:0,b=d/2-m/2,p=v[u],g=P-h[l]-v[x],y=P/2-h[l]/2+b,O=ce(p,y,g),A=i;r.modifiersData[o]=(t={},t[A]=O,t.centerOffset=O-y,t)}}function Sr(e){var t=e.state,r=e.options,o=r.element,n=o===void 0?"[data-popper-arrow]":o;n!=null&&(typeof n=="string"&&(n=t.elements.popper.querySelector(n),!n)||xt(t.elements.popper,n)&&(t.elements.arrow=n))}const $r={name:"arrow",enabled:!0,phase:"main",fn:Ar,effect:Sr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ne(e){return e.split("-")[1]}var jr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function kr(e,t){var r=e.x,o=e.y,n=t.devicePixelRatio||1;return{x:re(r*n)/n||0,y:re(o*n)/n||0}}function at(e){var t,r=e.popper,o=e.popperRect,n=e.placement,a=e.variation,c=e.offsets,s=e.position,i=e.gpuAcceleration,f=e.adaptive,l=e.roundOffsets,v=e.isFixed,h=c.x,u=h===void 0?0:h,x=c.y,d=x===void 0?0:x,m=typeof l=="function"?l({x:u,y:d}):{x:u,y:d};u=m.x,d=m.y;var w=c.hasOwnProperty("x"),P=c.hasOwnProperty("y"),b=F,p=B,g=window;if(f){var y=ve(r),O="clientHeight",A="clientWidth";if(y===W(r)&&(y=Y(r),q(y).position!=="static"&&s==="absolute"&&(O="scrollHeight",A="scrollWidth")),y=y,n===B||(n===F||n===H)&&a===pe){p=N;var C=v&&y===g&&g.visualViewport?g.visualViewport.height:y[O];d-=C-o.height,d*=i?1:-1}if(n===F||(n===B||n===N)&&a===pe){b=H;var R=v&&y===g&&g.visualViewport?g.visualViewport.width:y[A];u-=R-o.width,u*=i?1:-1}}var $=Object.assign({position:s},f&&jr),D=l===!0?kr({x:u,y:d},W(r)):{x:u,y:d};if(u=D.x,d=D.y,i){var S;return Object.assign({},$,(S={},S[p]=P?"0":"",S[b]=w?"0":"",S.transform=(g.devicePixelRatio||1)<=1?"translate("+u+"px, "+d+"px)":"translate3d("+u+"px, "+d+"px, 0)",S))}return Object.assign({},$,(t={},t[p]=P?d+"px":"",t[b]=w?u+"px":"",t.transform="",t))}function Dr(e){var t=e.state,r=e.options,o=r.gpuAcceleration,n=o===void 0?!0:o,a=r.adaptive,c=a===void 0?!0:a,s=r.roundOffsets,i=s===void 0?!0:s,f={placement:U(t.placement),variation:ne(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,at(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:i})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,at(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:i})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Tr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Dr,data:{}};var be={passive:!0};function Mr(e){var t=e.state,r=e.instance,o=e.options,n=o.scroll,a=n===void 0?!0:n,c=o.resize,s=c===void 0?!0:c,i=W(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&f.forEach(function(l){l.addEventListener("scroll",r.update,be)}),s&&i.addEventListener("resize",r.update,be),function(){a&&f.forEach(function(l){l.removeEventListener("scroll",r.update,be)}),s&&i.removeEventListener("resize",r.update,be)}}const Br={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Mr,data:{}};var Fr={left:"right",right:"left",bottom:"top",top:"bottom"};function xe(e){return e.replace(/left|right|bottom|top/g,function(t){return Fr[t]})}var Wr={start:"end",end:"start"};function it(e){return e.replace(/start|end/g,function(t){return Wr[t]})}function Ne(e){var t=W(e),r=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:r,scrollTop:o}}function He(e){return oe(Y(e)).left+Ne(e).scrollLeft}function Lr(e,t){var r=W(e),o=Y(e),n=r.visualViewport,a=o.clientWidth,c=o.clientHeight,s=0,i=0;if(n){a=n.width,c=n.height;var f=bt();(f||!f&&t==="fixed")&&(s=n.offsetLeft,i=n.offsetTop)}return{width:a,height:c,x:s+He(e),y:i}}function Vr(e){var t,r=Y(e),o=Ne(e),n=(t=e.ownerDocument)==null?void 0:t.body,a=K(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),c=K(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),s=-o.scrollLeft+He(e),i=-o.scrollTop;return q(n||r).direction==="rtl"&&(s+=K(r.clientWidth,n?n.clientWidth:0)-a),{width:a,height:c,x:s,y:i}}function Ue(e){var t=q(e),r=t.overflow,o=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function Et(e){return["html","body","#document"].indexOf(I(e))>=0?e.ownerDocument.body:V(e)&&Ue(e)?e:Et(Oe(e))}function fe(e,t){var r;t===void 0&&(t=[]);var o=Et(e),n=o===((r=e.ownerDocument)==null?void 0:r.body),a=W(o),c=n?[a].concat(a.visualViewport||[],Ue(o)?o:[]):o,s=t.concat(c);return n?s:s.concat(fe(Oe(c)))}function je(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Nr(e,t){var r=oe(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function st(e,t,r){return t===gt?je(Lr(e,r)):Z(t)?Nr(t,r):je(Vr(Y(e)))}function Hr(e){var t=fe(Oe(e)),r=["absolute","fixed"].indexOf(q(e).position)>=0,o=r&&V(e)?ve(e):e;return Z(o)?t.filter(function(n){return Z(n)&&xt(n,o)&&I(n)!=="body"}):[]}function Ur(e,t,r,o){var n=t==="clippingParents"?Hr(e):[].concat(t),a=[].concat(n,[r]),c=a[0],s=a.reduce(function(i,f){var l=st(e,f,o);return i.top=K(l.top,i.top),i.right=we(l.right,i.right),i.bottom=we(l.bottom,i.bottom),i.left=K(l.left,i.left),i},st(e,c,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Ct(e){var t=e.reference,r=e.element,o=e.placement,n=o?U(o):null,a=o?ne(o):null,c=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,i;switch(n){case B:i={x:c,y:t.y-r.height};break;case N:i={x:c,y:t.y+t.height};break;case H:i={x:t.x+t.width,y:s};break;case F:i={x:t.x-r.width,y:s};break;default:i={x:t.x,y:t.y}}var f=n?Ve(n):null;if(f!=null){var l=f==="y"?"height":"width";switch(a){case te:i[f]=i[f]-(t[l]/2-r[l]/2);break;case pe:i[f]=i[f]+(t[l]/2-r[l]/2);break}}return i}function ue(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=o===void 0?e.placement:o,a=r.strategy,c=a===void 0?e.strategy:a,s=r.boundary,i=s===void 0?lr:s,f=r.rootBoundary,l=f===void 0?gt:f,v=r.elementContext,h=v===void 0?le:v,u=r.altBoundary,x=u===void 0?!1:u,d=r.padding,m=d===void 0?0:d,w=Ot(typeof m!="number"?m:Pt(m,de)),P=h===le?cr:le,b=e.rects.popper,p=e.elements[x?P:h],g=Ur(Z(p)?p:p.contextElement||Y(e.elements.popper),i,l,c),y=oe(e.elements.reference),O=Ct({reference:y,element:b,strategy:"absolute",placement:n}),A=je(Object.assign({},b,O)),C=h===le?A:y,R={top:g.top-C.top+w.top,bottom:C.bottom-g.bottom+w.bottom,left:g.left-C.left+w.left,right:C.right-g.right+w.right},$=e.modifiersData.offset;if(h===le&&$){var D=$[n];Object.keys(R).forEach(function(S){var k=[H,N].indexOf(S)>=0?1:-1,L=[B,N].indexOf(S)>=0?"y":"x";R[S]+=D[L]*k})}return R}function Ir(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=r.boundary,a=r.rootBoundary,c=r.padding,s=r.flipVariations,i=r.allowedAutoPlacements,f=i===void 0?yt:i,l=ne(o),v=l?s?ot:ot.filter(function(x){return ne(x)===l}):de,h=v.filter(function(x){return f.indexOf(x)>=0});h.length===0&&(h=v);var u=h.reduce(function(x,d){return x[d]=ue(e,{placement:d,boundary:n,rootBoundary:a,padding:c})[U(d)],x},{});return Object.keys(u).sort(function(x,d){return u[x]-u[d]})}function qr(e){if(U(e)===Fe)return[];var t=xe(e);return[it(e),t,it(t)]}function zr(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var n=r.mainAxis,a=n===void 0?!0:n,c=r.altAxis,s=c===void 0?!0:c,i=r.fallbackPlacements,f=r.padding,l=r.boundary,v=r.rootBoundary,h=r.altBoundary,u=r.flipVariations,x=u===void 0?!0:u,d=r.allowedAutoPlacements,m=t.options.placement,w=U(m),P=w===m,b=i||(P||!x?[xe(m)]:qr(m)),p=[m].concat(b).reduce(function(ee,X){return ee.concat(U(X)===Fe?Ir(t,{placement:X,boundary:l,rootBoundary:v,padding:f,flipVariations:x,allowedAutoPlacements:d}):X)},[]),g=t.rects.reference,y=t.rects.popper,O=new Map,A=!0,C=p[0],R=0;R=0,L=k?"width":"height",j=ue(t,{placement:$,boundary:l,rootBoundary:v,altBoundary:h,padding:f}),M=k?S?H:F:S?N:B;g[L]>y[L]&&(M=xe(M));var z=xe(M),G=[];if(a&&G.push(j[D]<=0),s&&G.push(j[M]<=0,j[z]<=0),G.every(function(ee){return ee})){C=$,A=!1;break}O.set($,G)}if(A)for(var me=x?3:1,Pe=function(X){var se=p.find(function(ge){var _=O.get(ge);if(_)return _.slice(0,X).every(function(Ee){return Ee})});if(se)return C=se,"break"},ie=me;ie>0;ie--){var he=Pe(ie);if(he==="break")break}t.placement!==C&&(t.modifiersData[o]._skip=!0,t.placement=C,t.reset=!0)}}const Xr={name:"flip",enabled:!0,phase:"main",fn:zr,requiresIfExists:["offset"],data:{_skip:!1}};function lt(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function ct(e){return[B,H,N,F].some(function(t){return e[t]>=0})}function Yr(e){var t=e.state,r=e.name,o=t.rects.reference,n=t.rects.popper,a=t.modifiersData.preventOverflow,c=ue(t,{elementContext:"reference"}),s=ue(t,{altBoundary:!0}),i=lt(c,o),f=lt(s,n,a),l=ct(i),v=ct(f);t.modifiersData[r]={referenceClippingOffsets:i,popperEscapeOffsets:f,isReferenceHidden:l,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":v})}const Gr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Yr};function _r(e,t,r){var o=U(e),n=[F,B].indexOf(o)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,c=a[0],s=a[1];return c=c||0,s=(s||0)*n,[F,H].indexOf(o)>=0?{x:s,y:c}:{x:c,y:s}}function Jr(e){var t=e.state,r=e.options,o=e.name,n=r.offset,a=n===void 0?[0,0]:n,c=yt.reduce(function(l,v){return l[v]=_r(v,t.rects,a),l},{}),s=c[t.placement],i=s.x,f=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=i,t.modifiersData.popperOffsets.y+=f),t.modifiersData[o]=c}const Kr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Jr};function Qr(e){var t=e.state,r=e.name;t.modifiersData[r]=Ct({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Zr={name:"popperOffsets",enabled:!0,phase:"read",fn:Qr,data:{}};function eo(e){return e==="x"?"y":"x"}function to(e){var t=e.state,r=e.options,o=e.name,n=r.mainAxis,a=n===void 0?!0:n,c=r.altAxis,s=c===void 0?!1:c,i=r.boundary,f=r.rootBoundary,l=r.altBoundary,v=r.padding,h=r.tether,u=h===void 0?!0:h,x=r.tetherOffset,d=x===void 0?0:x,m=ue(t,{boundary:i,rootBoundary:f,padding:v,altBoundary:l}),w=U(t.placement),P=ne(t.placement),b=!P,p=Ve(w),g=eo(p),y=t.modifiersData.popperOffsets,O=t.rects.reference,A=t.rects.popper,C=typeof d=="function"?d(Object.assign({},t.rects,{placement:t.placement})):d,R=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(y){if(a){var S,k=p==="y"?B:F,L=p==="y"?N:H,j=p==="y"?"height":"width",M=y[p],z=M+m[k],G=M-m[L],me=u?-A[j]/2:0,Pe=P===te?O[j]:A[j],ie=P===te?-A[j]:-O[j],he=t.elements.arrow,ee=u&&he?Le(he):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:wt(),se=X[k],ge=X[L],_=ce(0,O[j],ee[j]),Ee=b?O[j]/2-me-_-se-R.mainAxis:Pe-_-se-R.mainAxis,At=b?-O[j]/2+me+_+ge+R.mainAxis:ie+_+ge+R.mainAxis,Ce=t.elements.arrow&&ve(t.elements.arrow),St=Ce?p==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,Ie=(S=$==null?void 0:$[p])!=null?S:0,$t=M+Ee-Ie-St,jt=M+At-Ie,qe=ce(u?we(z,$t):z,M,u?K(G,jt):G);y[p]=qe,D[p]=qe-M}if(s){var ze,kt=p==="x"?B:F,Dt=p==="x"?N:H,J=y[g],ye=g==="y"?"height":"width",Xe=J+m[kt],Ye=J-m[Dt],Re=[B,F].indexOf(w)!==-1,Ge=(ze=$==null?void 0:$[g])!=null?ze:0,_e=Re?Xe:J-O[ye]-A[ye]-Ge+R.altAxis,Je=Re?J+O[ye]+A[ye]-Ge-R.altAxis:Ye,Ke=u&&Re?Cr(_e,J,Je):ce(u?_e:Xe,J,u?Je:Ye);y[g]=Ke,D[g]=Ke-J}t.modifiersData[o]=D}}const ro={name:"preventOverflow",enabled:!0,phase:"main",fn:to,requiresIfExists:["offset"]};function oo(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function no(e){return e===W(e)||!V(e)?Ne(e):oo(e)}function ao(e){var t=e.getBoundingClientRect(),r=re(t.width)/e.offsetWidth||1,o=re(t.height)/e.offsetHeight||1;return r!==1||o!==1}function io(e,t,r){r===void 0&&(r=!1);var o=V(t),n=V(t)&&ao(t),a=Y(t),c=oe(e,n,r),s={scrollLeft:0,scrollTop:0},i={x:0,y:0};return(o||!o&&!r)&&((I(t)!=="body"||Ue(a))&&(s=no(t)),V(t)?(i=oe(t,!0),i.x+=t.clientLeft,i.y+=t.clientTop):a&&(i.x=He(a))),{x:c.left+s.scrollLeft-i.x,y:c.top+s.scrollTop-i.y,width:c.width,height:c.height}}function so(e){var t=new Map,r=new Set,o=[];e.forEach(function(a){t.set(a.name,a)});function n(a){r.add(a.name);var c=[].concat(a.requires||[],a.requiresIfExists||[]);c.forEach(function(s){if(!r.has(s)){var i=t.get(s);i&&n(i)}}),o.push(a)}return e.forEach(function(a){r.has(a.name)||n(a)}),o}function lo(e){var t=so(e);return br.reduce(function(r,o){return r.concat(t.filter(function(n){return n.phase===o}))},[])}function co(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function fo(e){var t=e.reduce(function(r,o){var n=r[o.name];return r[o.name]=n?Object.assign({},n,o,{options:Object.assign({},n.options,o.options),data:Object.assign({},n.data,o.data)}):o,r},{});return Object.keys(t).map(function(r){return t[r]})}var ft={placement:"bottom",modifiers:[],strategy:"absolute"};function pt(){for(var e=arguments.length,t=new Array(e),r=0;rDe({root:["root"]},sr(mo)),wo={},Oo=E.forwardRef(function(t,r){var o;const{anchorEl:n,children:a,direction:c,disablePortal:s,modifiers:i,open:f,placement:l,popperOptions:v,popperRef:h,slotProps:u={},slots:x={},TransitionProps:d}=t,m=ae(t,ho),w=E.useRef(null),P=tt(w,r),b=E.useRef(null),p=tt(b,h),g=E.useRef(p);rt(()=>{g.current=p},[p]),E.useImperativeHandle(h,()=>b.current,[]);const y=yo(l,c),[O,A]=E.useState(y),[C,R]=E.useState(ke(n));E.useEffect(()=>{b.current&&b.current.forceUpdate()}),E.useEffect(()=>{n&&R(ke(n))},[n]),rt(()=>{if(!C||!f)return;const L=z=>{A(z.placement)};let j=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{L(z)}}];i!=null&&(j=j.concat(i)),v&&v.modifiers!=null&&(j=j.concat(v.modifiers));const M=vo(C,w.current,T({placement:y},v,{modifiers:j}));return g.current(M),()=>{M.destroy(),g.current(null)}},[C,s,i,f,v,y]);const $={placement:O};d!==null&&($.TransitionProps=d);const D=xo(),S=(o=x.root)!=null?o:"div",k=It({elementType:S,externalSlotProps:u.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:P},ownerState:t,className:D.root});return Q.jsx(S,T({},k,{children:typeof a=="function"?a($):a}))}),Po=E.forwardRef(function(t,r){const{anchorEl:o,children:n,container:a,direction:c="ltr",disablePortal:s=!1,keepMounted:i=!1,modifiers:f,open:l,placement:v="bottom",popperOptions:h=wo,popperRef:u,style:x,transition:d=!1,slotProps:m={},slots:w={}}=t,P=ae(t,go),[b,p]=E.useState(!0),g=()=>{p(!1)},y=()=>{p(!0)};if(!i&&!l&&(!d||b))return null;let O;if(a)O=a;else if(o){const R=ke(o);O=R&&bo(R)?et(R).body:et(null).body}const A=!l&&i&&(!d||b)?"none":void 0,C=d?{in:l,onEnter:g,onExited:y}:void 0;return Q.jsx(qt,{disablePortal:s,container:O,children:Q.jsx(Oo,T({anchorEl:o,direction:c,disablePortal:s,modifiers:f,ref:r,open:d?!b:l,placement:v,popperOptions:h,popperRef:u,slotProps:m,slots:w},P,{style:T({position:"fixed",top:0,left:0,display:A},x),TransitionProps:C,children:n}))})}),Eo=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Co=Me(Po,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ro=E.forwardRef(function(t,r){var o;const n=Ht(),a=Be({props:t,name:"MuiPopper"}),{anchorEl:c,component:s,components:i,componentsProps:f,container:l,disablePortal:v,keepMounted:h,modifiers:u,open:x,placement:d,popperOptions:m,popperRef:w,transition:P,slots:b,slotProps:p}=a,g=ae(a,Eo),y=(o=b==null?void 0:b.root)!=null?o:i==null?void 0:i.Root,O=T({anchorEl:c,container:l,disablePortal:v,keepMounted:h,modifiers:u,open:x,placement:d,popperOptions:m,popperRef:w,transition:P},g);return Q.jsx(Co,T({as:s,direction:n==null?void 0:n.direction,slots:{root:y},slotProps:p??f},O,{ref:r}))}),No=Ro;function Ho({props:e,states:t,muiFormControl:r}){return t.reduce((o,n)=>(o[n]=e[n],r&&typeof e[n]>"u"&&(o[n]=r[n]),o),{})}const Ao=E.createContext(void 0),Rt=Ao;function Uo(){return E.useContext(Rt)}function ut(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function dt(e,t=!1){return e&&(ut(e.value)&&e.value!==""||t&&ut(e.defaultValue)&&e.defaultValue!=="")}function So(e){return e.startAdornment}function $o(e){return Te("MuiFormControl",e)}vt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const jo=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],ko=e=>{const{classes:t,margin:r,fullWidth:o}=e,n={root:["root",r!=="none"&&`margin${mt(r)}`,o&&"fullWidth"]};return De(n,$o,t)},Do=Me("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,t[`margin${mt(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>T({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),To=E.forwardRef(function(t,r){const o=Be({props:t,name:"MuiFormControl"}),{children:n,className:a,color:c="primary",component:s="div",disabled:i=!1,error:f=!1,focused:l,fullWidth:v=!1,hiddenLabel:h=!1,margin:u="none",required:x=!1,size:d="medium",variant:m="outlined"}=o,w=ae(o,jo),P=T({},o,{color:c,component:s,disabled:i,error:f,fullWidth:v,hiddenLabel:h,margin:u,required:x,size:d,variant:m}),b=ko(P),[p,g]=E.useState(()=>{let S=!1;return n&&E.Children.forEach(n,k=>{if(!Se(k,["Input","Select"]))return;const L=Se(k,["Select"])?k.props.input:k;L&&So(L.props)&&(S=!0)}),S}),[y,O]=E.useState(()=>{let S=!1;return n&&E.Children.forEach(n,k=>{Se(k,["Input","Select"])&&(dt(k.props,!0)||dt(k.props.inputProps,!0))&&(S=!0)}),S}),[A,C]=E.useState(!1);i&&A&&C(!1);const R=l!==void 0&&!i?l:A;let $;const D=E.useMemo(()=>({adornedStart:p,setAdornedStart:g,color:c,disabled:i,error:f,filled:y,focused:R,fullWidth:v,hiddenLabel:h,size:d,onBlur:()=>{C(!1)},onEmpty:()=>{O(!1)},onFilled:()=>{O(!0)},onFocus:()=>{C(!0)},registerEffect:$,required:x,variant:m}),[p,c,i,f,y,R,v,h,$,x,d,m]);return Q.jsx(Rt.Provider,{value:D,children:Q.jsx(Do,T({as:s,ownerState:P,className:Ut(b.root,a),ref:r},w,{children:n}))})}),Io=To,Mo=nr({createStyledComponent:Me("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Be({props:e,name:"MuiStack"})}),qo=Mo;export{Io as F,No as P,qo as S,Uo as a,Rt as b,Yt as e,Ho as f,dt as i,Vo as u}; +import{r as E,a as ae,_ as T,bE as Tt,bF as Mt,bG as Bt,bH as Ft,bI as Wt,bp as Qe,bo as Ae,bJ as Lt,bD as Vt,bK as Nt,j as Q,bL as Ze,d as De,b as Te,g as vt,s as Me,bM as Ht,u as Be,e as mt,c as Ut}from"./index-f50d1ab5.js";import{o as et,u as It}from"./useSlotProps-f1483ce3.js";import{d as qt}from"./Popover-a7534715.js";import{e as tt,f as rt}from"./index-f857b04d.js";function Se(e,t){var r,o;return E.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(o=e.type)==null||(o=o._payload)==null||(o=o.value)==null?void 0:o.muiName)!==-1}function Vo({controlled:e,default:t,name:r,state:o="value"}){const{current:n}=E.useRef(e!==void 0),[a,c]=E.useState(t),s=n?e:a,i=E.useCallback(f=>{n||c(f)},[]);return[s,i]}const zt=["sx"],Xt=e=>{var t,r;const o={systemProps:{},otherProps:{}},n=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Tt;return Object.keys(e).forEach(a=>{n[a]?o.systemProps[a]=e[a]:o.otherProps[a]=e[a]}),o};function Yt(e){const{sx:t}=e,r=ae(e,zt),{systemProps:o,otherProps:n}=Xt(r);let a;return Array.isArray(t)?a=[o,...t]:typeof t=="function"?a=(...c)=>{const s=t(...c);return Mt(s)?T({},o,s):o}:a=T({},o,t),T({},n,{sx:a})}function ht(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;tt.root});function er(e){return Wt({props:e,name:"MuiStack",defaultTheme:Qt})}function tr(e,t){const r=E.Children.toArray(e).filter(Boolean);return r.reduce((o,n,a)=>(o.push(n),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],or=({ownerState:e,theme:t})=>{let r=T({display:"flex",flexDirection:"column"},Qe({theme:t},Ae({values:e.direction,breakpoints:t.breakpoints.values}),o=>({flexDirection:o})));if(e.spacing){const o=Lt(t),n=Object.keys(t.breakpoints.values).reduce((i,f)=>((typeof e.spacing=="object"&&e.spacing[f]!=null||typeof e.direction=="object"&&e.direction[f]!=null)&&(i[f]=!0),i),{}),a=Ae({values:e.direction,base:n}),c=Ae({values:e.spacing,base:n});typeof a=="object"&&Object.keys(a).forEach((i,f,l)=>{if(!a[i]){const h=f>0?a[l[f-1]]:"column";a[i]=h}}),r=Vt(r,Qe({theme:t},c,(i,f)=>e.useFlexGap?{gap:Ze(o,i)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${rr(f?a[f]:e.direction)}`]:Ze(o,i)}}))}return r=Nt(t.breakpoints,r),r};function nr(e={}){const{createStyledComponent:t=Zt,useThemeProps:r=er,componentName:o="MuiStack"}=e,n=()=>De({root:["root"]},i=>Te(o,i),{}),a=t(or);return E.forwardRef(function(i,f){const l=r(i),v=Yt(l),{component:h="div",direction:u="column",spacing:x=0,divider:d,children:m,className:w,useFlexGap:P=!1}=v,b=ae(v,Kt),p={direction:u,spacing:x,useFlexGap:P},g=n();return Q.jsx(a,T({as:h,ownerState:p,ref:f,className:Gt(g.root,w)},b,{children:d?tr(m,d):m}))})}const ar={disableDefaultClasses:!1},ir=E.createContext(ar);function sr(e){const{disableDefaultClasses:t}=E.useContext(ir);return r=>t?"":e(r)}var B="top",N="bottom",H="right",F="left",Fe="auto",de=[B,N,H,F],te="start",pe="end",lr="clippingParents",gt="viewport",le="popper",cr="reference",ot=de.reduce(function(e,t){return e.concat([t+"-"+te,t+"-"+pe])},[]),yt=[].concat(de,[Fe]).reduce(function(e,t){return e.concat([t,t+"-"+te,t+"-"+pe])},[]),fr="beforeRead",pr="read",ur="afterRead",dr="beforeMain",vr="main",mr="afterMain",hr="beforeWrite",gr="write",yr="afterWrite",br=[fr,pr,ur,dr,vr,mr,hr,gr,yr];function I(e){return e?(e.nodeName||"").toLowerCase():null}function W(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Z(e){var t=W(e).Element;return e instanceof t||e instanceof Element}function V(e){var t=W(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function We(e){if(typeof ShadowRoot>"u")return!1;var t=W(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function xr(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var o=t.styles[r]||{},n=t.attributes[r]||{},a=t.elements[r];!V(a)||!I(a)||(Object.assign(a.style,o),Object.keys(n).forEach(function(c){var s=n[c];s===!1?a.removeAttribute(c):a.setAttribute(c,s===!0?"":s)}))})}function wr(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(o){var n=t.elements[o],a=t.attributes[o]||{},c=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:r[o]),s=c.reduce(function(i,f){return i[f]="",i},{});!V(n)||!I(n)||(Object.assign(n.style,s),Object.keys(a).forEach(function(i){n.removeAttribute(i)}))})}}const Or={name:"applyStyles",enabled:!0,phase:"write",fn:xr,effect:wr,requires:["computeStyles"]};function U(e){return e.split("-")[0]}var K=Math.max,we=Math.min,re=Math.round;function $e(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function bt(){return!/^((?!chrome|android).)*safari/i.test($e())}function oe(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var o=e.getBoundingClientRect(),n=1,a=1;t&&V(e)&&(n=e.offsetWidth>0&&re(o.width)/e.offsetWidth||1,a=e.offsetHeight>0&&re(o.height)/e.offsetHeight||1);var c=Z(e)?W(e):window,s=c.visualViewport,i=!bt()&&r,f=(o.left+(i&&s?s.offsetLeft:0))/n,l=(o.top+(i&&s?s.offsetTop:0))/a,v=o.width/n,h=o.height/a;return{width:v,height:h,top:l,right:f+v,bottom:l+h,left:f,x:f,y:l}}function Le(e){var t=oe(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function xt(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&We(r)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function q(e){return W(e).getComputedStyle(e)}function Pr(e){return["table","td","th"].indexOf(I(e))>=0}function Y(e){return((Z(e)?e.ownerDocument:e.document)||window.document).documentElement}function Oe(e){return I(e)==="html"?e:e.assignedSlot||e.parentNode||(We(e)?e.host:null)||Y(e)}function nt(e){return!V(e)||q(e).position==="fixed"?null:e.offsetParent}function Er(e){var t=/firefox/i.test($e()),r=/Trident/i.test($e());if(r&&V(e)){var o=q(e);if(o.position==="fixed")return null}var n=Oe(e);for(We(n)&&(n=n.host);V(n)&&["html","body"].indexOf(I(n))<0;){var a=q(n);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return n;n=n.parentNode}return null}function ve(e){for(var t=W(e),r=nt(e);r&&Pr(r)&&q(r).position==="static";)r=nt(r);return r&&(I(r)==="html"||I(r)==="body"&&q(r).position==="static")?t:r||Er(e)||t}function Ve(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ce(e,t,r){return K(e,we(t,r))}function Cr(e,t,r){var o=ce(e,t,r);return o>r?r:o}function wt(){return{top:0,right:0,bottom:0,left:0}}function Ot(e){return Object.assign({},wt(),e)}function Pt(e,t){return t.reduce(function(r,o){return r[o]=e,r},{})}var Rr=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Ot(typeof t!="number"?t:Pt(t,de))};function Ar(e){var t,r=e.state,o=e.name,n=e.options,a=r.elements.arrow,c=r.modifiersData.popperOffsets,s=U(r.placement),i=Ve(s),f=[F,H].indexOf(s)>=0,l=f?"height":"width";if(!(!a||!c)){var v=Rr(n.padding,r),h=Le(a),u=i==="y"?B:F,x=i==="y"?N:H,d=r.rects.reference[l]+r.rects.reference[i]-c[i]-r.rects.popper[l],m=c[i]-r.rects.reference[i],w=ve(a),P=w?i==="y"?w.clientHeight||0:w.clientWidth||0:0,b=d/2-m/2,p=v[u],g=P-h[l]-v[x],y=P/2-h[l]/2+b,O=ce(p,y,g),A=i;r.modifiersData[o]=(t={},t[A]=O,t.centerOffset=O-y,t)}}function Sr(e){var t=e.state,r=e.options,o=r.element,n=o===void 0?"[data-popper-arrow]":o;n!=null&&(typeof n=="string"&&(n=t.elements.popper.querySelector(n),!n)||xt(t.elements.popper,n)&&(t.elements.arrow=n))}const $r={name:"arrow",enabled:!0,phase:"main",fn:Ar,effect:Sr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ne(e){return e.split("-")[1]}var jr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function kr(e,t){var r=e.x,o=e.y,n=t.devicePixelRatio||1;return{x:re(r*n)/n||0,y:re(o*n)/n||0}}function at(e){var t,r=e.popper,o=e.popperRect,n=e.placement,a=e.variation,c=e.offsets,s=e.position,i=e.gpuAcceleration,f=e.adaptive,l=e.roundOffsets,v=e.isFixed,h=c.x,u=h===void 0?0:h,x=c.y,d=x===void 0?0:x,m=typeof l=="function"?l({x:u,y:d}):{x:u,y:d};u=m.x,d=m.y;var w=c.hasOwnProperty("x"),P=c.hasOwnProperty("y"),b=F,p=B,g=window;if(f){var y=ve(r),O="clientHeight",A="clientWidth";if(y===W(r)&&(y=Y(r),q(y).position!=="static"&&s==="absolute"&&(O="scrollHeight",A="scrollWidth")),y=y,n===B||(n===F||n===H)&&a===pe){p=N;var C=v&&y===g&&g.visualViewport?g.visualViewport.height:y[O];d-=C-o.height,d*=i?1:-1}if(n===F||(n===B||n===N)&&a===pe){b=H;var R=v&&y===g&&g.visualViewport?g.visualViewport.width:y[A];u-=R-o.width,u*=i?1:-1}}var $=Object.assign({position:s},f&&jr),D=l===!0?kr({x:u,y:d},W(r)):{x:u,y:d};if(u=D.x,d=D.y,i){var S;return Object.assign({},$,(S={},S[p]=P?"0":"",S[b]=w?"0":"",S.transform=(g.devicePixelRatio||1)<=1?"translate("+u+"px, "+d+"px)":"translate3d("+u+"px, "+d+"px, 0)",S))}return Object.assign({},$,(t={},t[p]=P?d+"px":"",t[b]=w?u+"px":"",t.transform="",t))}function Dr(e){var t=e.state,r=e.options,o=r.gpuAcceleration,n=o===void 0?!0:o,a=r.adaptive,c=a===void 0?!0:a,s=r.roundOffsets,i=s===void 0?!0:s,f={placement:U(t.placement),variation:ne(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,at(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:i})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,at(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:i})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Tr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Dr,data:{}};var be={passive:!0};function Mr(e){var t=e.state,r=e.instance,o=e.options,n=o.scroll,a=n===void 0?!0:n,c=o.resize,s=c===void 0?!0:c,i=W(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&f.forEach(function(l){l.addEventListener("scroll",r.update,be)}),s&&i.addEventListener("resize",r.update,be),function(){a&&f.forEach(function(l){l.removeEventListener("scroll",r.update,be)}),s&&i.removeEventListener("resize",r.update,be)}}const Br={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Mr,data:{}};var Fr={left:"right",right:"left",bottom:"top",top:"bottom"};function xe(e){return e.replace(/left|right|bottom|top/g,function(t){return Fr[t]})}var Wr={start:"end",end:"start"};function it(e){return e.replace(/start|end/g,function(t){return Wr[t]})}function Ne(e){var t=W(e),r=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:r,scrollTop:o}}function He(e){return oe(Y(e)).left+Ne(e).scrollLeft}function Lr(e,t){var r=W(e),o=Y(e),n=r.visualViewport,a=o.clientWidth,c=o.clientHeight,s=0,i=0;if(n){a=n.width,c=n.height;var f=bt();(f||!f&&t==="fixed")&&(s=n.offsetLeft,i=n.offsetTop)}return{width:a,height:c,x:s+He(e),y:i}}function Vr(e){var t,r=Y(e),o=Ne(e),n=(t=e.ownerDocument)==null?void 0:t.body,a=K(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),c=K(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),s=-o.scrollLeft+He(e),i=-o.scrollTop;return q(n||r).direction==="rtl"&&(s+=K(r.clientWidth,n?n.clientWidth:0)-a),{width:a,height:c,x:s,y:i}}function Ue(e){var t=q(e),r=t.overflow,o=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function Et(e){return["html","body","#document"].indexOf(I(e))>=0?e.ownerDocument.body:V(e)&&Ue(e)?e:Et(Oe(e))}function fe(e,t){var r;t===void 0&&(t=[]);var o=Et(e),n=o===((r=e.ownerDocument)==null?void 0:r.body),a=W(o),c=n?[a].concat(a.visualViewport||[],Ue(o)?o:[]):o,s=t.concat(c);return n?s:s.concat(fe(Oe(c)))}function je(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Nr(e,t){var r=oe(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function st(e,t,r){return t===gt?je(Lr(e,r)):Z(t)?Nr(t,r):je(Vr(Y(e)))}function Hr(e){var t=fe(Oe(e)),r=["absolute","fixed"].indexOf(q(e).position)>=0,o=r&&V(e)?ve(e):e;return Z(o)?t.filter(function(n){return Z(n)&&xt(n,o)&&I(n)!=="body"}):[]}function Ur(e,t,r,o){var n=t==="clippingParents"?Hr(e):[].concat(t),a=[].concat(n,[r]),c=a[0],s=a.reduce(function(i,f){var l=st(e,f,o);return i.top=K(l.top,i.top),i.right=we(l.right,i.right),i.bottom=we(l.bottom,i.bottom),i.left=K(l.left,i.left),i},st(e,c,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Ct(e){var t=e.reference,r=e.element,o=e.placement,n=o?U(o):null,a=o?ne(o):null,c=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,i;switch(n){case B:i={x:c,y:t.y-r.height};break;case N:i={x:c,y:t.y+t.height};break;case H:i={x:t.x+t.width,y:s};break;case F:i={x:t.x-r.width,y:s};break;default:i={x:t.x,y:t.y}}var f=n?Ve(n):null;if(f!=null){var l=f==="y"?"height":"width";switch(a){case te:i[f]=i[f]-(t[l]/2-r[l]/2);break;case pe:i[f]=i[f]+(t[l]/2-r[l]/2);break}}return i}function ue(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=o===void 0?e.placement:o,a=r.strategy,c=a===void 0?e.strategy:a,s=r.boundary,i=s===void 0?lr:s,f=r.rootBoundary,l=f===void 0?gt:f,v=r.elementContext,h=v===void 0?le:v,u=r.altBoundary,x=u===void 0?!1:u,d=r.padding,m=d===void 0?0:d,w=Ot(typeof m!="number"?m:Pt(m,de)),P=h===le?cr:le,b=e.rects.popper,p=e.elements[x?P:h],g=Ur(Z(p)?p:p.contextElement||Y(e.elements.popper),i,l,c),y=oe(e.elements.reference),O=Ct({reference:y,element:b,strategy:"absolute",placement:n}),A=je(Object.assign({},b,O)),C=h===le?A:y,R={top:g.top-C.top+w.top,bottom:C.bottom-g.bottom+w.bottom,left:g.left-C.left+w.left,right:C.right-g.right+w.right},$=e.modifiersData.offset;if(h===le&&$){var D=$[n];Object.keys(R).forEach(function(S){var k=[H,N].indexOf(S)>=0?1:-1,L=[B,N].indexOf(S)>=0?"y":"x";R[S]+=D[L]*k})}return R}function Ir(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=r.boundary,a=r.rootBoundary,c=r.padding,s=r.flipVariations,i=r.allowedAutoPlacements,f=i===void 0?yt:i,l=ne(o),v=l?s?ot:ot.filter(function(x){return ne(x)===l}):de,h=v.filter(function(x){return f.indexOf(x)>=0});h.length===0&&(h=v);var u=h.reduce(function(x,d){return x[d]=ue(e,{placement:d,boundary:n,rootBoundary:a,padding:c})[U(d)],x},{});return Object.keys(u).sort(function(x,d){return u[x]-u[d]})}function qr(e){if(U(e)===Fe)return[];var t=xe(e);return[it(e),t,it(t)]}function zr(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var n=r.mainAxis,a=n===void 0?!0:n,c=r.altAxis,s=c===void 0?!0:c,i=r.fallbackPlacements,f=r.padding,l=r.boundary,v=r.rootBoundary,h=r.altBoundary,u=r.flipVariations,x=u===void 0?!0:u,d=r.allowedAutoPlacements,m=t.options.placement,w=U(m),P=w===m,b=i||(P||!x?[xe(m)]:qr(m)),p=[m].concat(b).reduce(function(ee,X){return ee.concat(U(X)===Fe?Ir(t,{placement:X,boundary:l,rootBoundary:v,padding:f,flipVariations:x,allowedAutoPlacements:d}):X)},[]),g=t.rects.reference,y=t.rects.popper,O=new Map,A=!0,C=p[0],R=0;R=0,L=k?"width":"height",j=ue(t,{placement:$,boundary:l,rootBoundary:v,altBoundary:h,padding:f}),M=k?S?H:F:S?N:B;g[L]>y[L]&&(M=xe(M));var z=xe(M),G=[];if(a&&G.push(j[D]<=0),s&&G.push(j[M]<=0,j[z]<=0),G.every(function(ee){return ee})){C=$,A=!1;break}O.set($,G)}if(A)for(var me=x?3:1,Pe=function(X){var se=p.find(function(ge){var _=O.get(ge);if(_)return _.slice(0,X).every(function(Ee){return Ee})});if(se)return C=se,"break"},ie=me;ie>0;ie--){var he=Pe(ie);if(he==="break")break}t.placement!==C&&(t.modifiersData[o]._skip=!0,t.placement=C,t.reset=!0)}}const Xr={name:"flip",enabled:!0,phase:"main",fn:zr,requiresIfExists:["offset"],data:{_skip:!1}};function lt(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function ct(e){return[B,H,N,F].some(function(t){return e[t]>=0})}function Yr(e){var t=e.state,r=e.name,o=t.rects.reference,n=t.rects.popper,a=t.modifiersData.preventOverflow,c=ue(t,{elementContext:"reference"}),s=ue(t,{altBoundary:!0}),i=lt(c,o),f=lt(s,n,a),l=ct(i),v=ct(f);t.modifiersData[r]={referenceClippingOffsets:i,popperEscapeOffsets:f,isReferenceHidden:l,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":v})}const Gr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Yr};function _r(e,t,r){var o=U(e),n=[F,B].indexOf(o)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,c=a[0],s=a[1];return c=c||0,s=(s||0)*n,[F,H].indexOf(o)>=0?{x:s,y:c}:{x:c,y:s}}function Jr(e){var t=e.state,r=e.options,o=e.name,n=r.offset,a=n===void 0?[0,0]:n,c=yt.reduce(function(l,v){return l[v]=_r(v,t.rects,a),l},{}),s=c[t.placement],i=s.x,f=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=i,t.modifiersData.popperOffsets.y+=f),t.modifiersData[o]=c}const Kr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Jr};function Qr(e){var t=e.state,r=e.name;t.modifiersData[r]=Ct({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Zr={name:"popperOffsets",enabled:!0,phase:"read",fn:Qr,data:{}};function eo(e){return e==="x"?"y":"x"}function to(e){var t=e.state,r=e.options,o=e.name,n=r.mainAxis,a=n===void 0?!0:n,c=r.altAxis,s=c===void 0?!1:c,i=r.boundary,f=r.rootBoundary,l=r.altBoundary,v=r.padding,h=r.tether,u=h===void 0?!0:h,x=r.tetherOffset,d=x===void 0?0:x,m=ue(t,{boundary:i,rootBoundary:f,padding:v,altBoundary:l}),w=U(t.placement),P=ne(t.placement),b=!P,p=Ve(w),g=eo(p),y=t.modifiersData.popperOffsets,O=t.rects.reference,A=t.rects.popper,C=typeof d=="function"?d(Object.assign({},t.rects,{placement:t.placement})):d,R=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(y){if(a){var S,k=p==="y"?B:F,L=p==="y"?N:H,j=p==="y"?"height":"width",M=y[p],z=M+m[k],G=M-m[L],me=u?-A[j]/2:0,Pe=P===te?O[j]:A[j],ie=P===te?-A[j]:-O[j],he=t.elements.arrow,ee=u&&he?Le(he):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:wt(),se=X[k],ge=X[L],_=ce(0,O[j],ee[j]),Ee=b?O[j]/2-me-_-se-R.mainAxis:Pe-_-se-R.mainAxis,At=b?-O[j]/2+me+_+ge+R.mainAxis:ie+_+ge+R.mainAxis,Ce=t.elements.arrow&&ve(t.elements.arrow),St=Ce?p==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,Ie=(S=$==null?void 0:$[p])!=null?S:0,$t=M+Ee-Ie-St,jt=M+At-Ie,qe=ce(u?we(z,$t):z,M,u?K(G,jt):G);y[p]=qe,D[p]=qe-M}if(s){var ze,kt=p==="x"?B:F,Dt=p==="x"?N:H,J=y[g],ye=g==="y"?"height":"width",Xe=J+m[kt],Ye=J-m[Dt],Re=[B,F].indexOf(w)!==-1,Ge=(ze=$==null?void 0:$[g])!=null?ze:0,_e=Re?Xe:J-O[ye]-A[ye]-Ge+R.altAxis,Je=Re?J+O[ye]+A[ye]-Ge-R.altAxis:Ye,Ke=u&&Re?Cr(_e,J,Je):ce(u?_e:Xe,J,u?Je:Ye);y[g]=Ke,D[g]=Ke-J}t.modifiersData[o]=D}}const ro={name:"preventOverflow",enabled:!0,phase:"main",fn:to,requiresIfExists:["offset"]};function oo(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function no(e){return e===W(e)||!V(e)?Ne(e):oo(e)}function ao(e){var t=e.getBoundingClientRect(),r=re(t.width)/e.offsetWidth||1,o=re(t.height)/e.offsetHeight||1;return r!==1||o!==1}function io(e,t,r){r===void 0&&(r=!1);var o=V(t),n=V(t)&&ao(t),a=Y(t),c=oe(e,n,r),s={scrollLeft:0,scrollTop:0},i={x:0,y:0};return(o||!o&&!r)&&((I(t)!=="body"||Ue(a))&&(s=no(t)),V(t)?(i=oe(t,!0),i.x+=t.clientLeft,i.y+=t.clientTop):a&&(i.x=He(a))),{x:c.left+s.scrollLeft-i.x,y:c.top+s.scrollTop-i.y,width:c.width,height:c.height}}function so(e){var t=new Map,r=new Set,o=[];e.forEach(function(a){t.set(a.name,a)});function n(a){r.add(a.name);var c=[].concat(a.requires||[],a.requiresIfExists||[]);c.forEach(function(s){if(!r.has(s)){var i=t.get(s);i&&n(i)}}),o.push(a)}return e.forEach(function(a){r.has(a.name)||n(a)}),o}function lo(e){var t=so(e);return br.reduce(function(r,o){return r.concat(t.filter(function(n){return n.phase===o}))},[])}function co(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function fo(e){var t=e.reduce(function(r,o){var n=r[o.name];return r[o.name]=n?Object.assign({},n,o,{options:Object.assign({},n.options,o.options),data:Object.assign({},n.data,o.data)}):o,r},{});return Object.keys(t).map(function(r){return t[r]})}var ft={placement:"bottom",modifiers:[],strategy:"absolute"};function pt(){for(var e=arguments.length,t=new Array(e),r=0;rDe({root:["root"]},sr(mo)),wo={},Oo=E.forwardRef(function(t,r){var o;const{anchorEl:n,children:a,direction:c,disablePortal:s,modifiers:i,open:f,placement:l,popperOptions:v,popperRef:h,slotProps:u={},slots:x={},TransitionProps:d}=t,m=ae(t,ho),w=E.useRef(null),P=tt(w,r),b=E.useRef(null),p=tt(b,h),g=E.useRef(p);rt(()=>{g.current=p},[p]),E.useImperativeHandle(h,()=>b.current,[]);const y=yo(l,c),[O,A]=E.useState(y),[C,R]=E.useState(ke(n));E.useEffect(()=>{b.current&&b.current.forceUpdate()}),E.useEffect(()=>{n&&R(ke(n))},[n]),rt(()=>{if(!C||!f)return;const L=z=>{A(z.placement)};let j=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{L(z)}}];i!=null&&(j=j.concat(i)),v&&v.modifiers!=null&&(j=j.concat(v.modifiers));const M=vo(C,w.current,T({placement:y},v,{modifiers:j}));return g.current(M),()=>{M.destroy(),g.current(null)}},[C,s,i,f,v,y]);const $={placement:O};d!==null&&($.TransitionProps=d);const D=xo(),S=(o=x.root)!=null?o:"div",k=It({elementType:S,externalSlotProps:u.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:P},ownerState:t,className:D.root});return Q.jsx(S,T({},k,{children:typeof a=="function"?a($):a}))}),Po=E.forwardRef(function(t,r){const{anchorEl:o,children:n,container:a,direction:c="ltr",disablePortal:s=!1,keepMounted:i=!1,modifiers:f,open:l,placement:v="bottom",popperOptions:h=wo,popperRef:u,style:x,transition:d=!1,slotProps:m={},slots:w={}}=t,P=ae(t,go),[b,p]=E.useState(!0),g=()=>{p(!1)},y=()=>{p(!0)};if(!i&&!l&&(!d||b))return null;let O;if(a)O=a;else if(o){const R=ke(o);O=R&&bo(R)?et(R).body:et(null).body}const A=!l&&i&&(!d||b)?"none":void 0,C=d?{in:l,onEnter:g,onExited:y}:void 0;return Q.jsx(qt,{disablePortal:s,container:O,children:Q.jsx(Oo,T({anchorEl:o,direction:c,disablePortal:s,modifiers:f,ref:r,open:d?!b:l,placement:v,popperOptions:h,popperRef:u,slotProps:m,slots:w},P,{style:T({position:"fixed",top:0,left:0,display:A},x),TransitionProps:C,children:n}))})}),Eo=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Co=Me(Po,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ro=E.forwardRef(function(t,r){var o;const n=Ht(),a=Be({props:t,name:"MuiPopper"}),{anchorEl:c,component:s,components:i,componentsProps:f,container:l,disablePortal:v,keepMounted:h,modifiers:u,open:x,placement:d,popperOptions:m,popperRef:w,transition:P,slots:b,slotProps:p}=a,g=ae(a,Eo),y=(o=b==null?void 0:b.root)!=null?o:i==null?void 0:i.Root,O=T({anchorEl:c,container:l,disablePortal:v,keepMounted:h,modifiers:u,open:x,placement:d,popperOptions:m,popperRef:w,transition:P},g);return Q.jsx(Co,T({as:s,direction:n==null?void 0:n.direction,slots:{root:y},slotProps:p??f},O,{ref:r}))}),No=Ro;function Ho({props:e,states:t,muiFormControl:r}){return t.reduce((o,n)=>(o[n]=e[n],r&&typeof e[n]>"u"&&(o[n]=r[n]),o),{})}const Ao=E.createContext(void 0),Rt=Ao;function Uo(){return E.useContext(Rt)}function ut(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function dt(e,t=!1){return e&&(ut(e.value)&&e.value!==""||t&&ut(e.defaultValue)&&e.defaultValue!=="")}function So(e){return e.startAdornment}function $o(e){return Te("MuiFormControl",e)}vt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const jo=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],ko=e=>{const{classes:t,margin:r,fullWidth:o}=e,n={root:["root",r!=="none"&&`margin${mt(r)}`,o&&"fullWidth"]};return De(n,$o,t)},Do=Me("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,t[`margin${mt(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>T({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),To=E.forwardRef(function(t,r){const o=Be({props:t,name:"MuiFormControl"}),{children:n,className:a,color:c="primary",component:s="div",disabled:i=!1,error:f=!1,focused:l,fullWidth:v=!1,hiddenLabel:h=!1,margin:u="none",required:x=!1,size:d="medium",variant:m="outlined"}=o,w=ae(o,jo),P=T({},o,{color:c,component:s,disabled:i,error:f,fullWidth:v,hiddenLabel:h,margin:u,required:x,size:d,variant:m}),b=ko(P),[p,g]=E.useState(()=>{let S=!1;return n&&E.Children.forEach(n,k=>{if(!Se(k,["Input","Select"]))return;const L=Se(k,["Select"])?k.props.input:k;L&&So(L.props)&&(S=!0)}),S}),[y,O]=E.useState(()=>{let S=!1;return n&&E.Children.forEach(n,k=>{Se(k,["Input","Select"])&&(dt(k.props,!0)||dt(k.props.inputProps,!0))&&(S=!0)}),S}),[A,C]=E.useState(!1);i&&A&&C(!1);const R=l!==void 0&&!i?l:A;let $;const D=E.useMemo(()=>({adornedStart:p,setAdornedStart:g,color:c,disabled:i,error:f,filled:y,focused:R,fullWidth:v,hiddenLabel:h,size:d,onBlur:()=>{C(!1)},onEmpty:()=>{O(!1)},onFilled:()=>{O(!0)},onFocus:()=>{C(!0)},registerEffect:$,required:x,variant:m}),[p,c,i,f,y,R,v,h,$,x,d,m]);return Q.jsx(Rt.Provider,{value:D,children:Q.jsx(Do,T({as:s,ownerState:P,className:Ut(b.root,a),ref:r},w,{children:n}))})}),Io=To,Mo=nr({createStyledComponent:Me("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Be({props:e,name:"MuiStack"})}),qo=Mo;export{Io as F,No as P,qo as S,Uo as a,Rt as b,Yt as e,Ho as f,dt as i,Vo as u}; diff --git a/build/assets/Streamable-bfbc2d5d.js b/build/assets/Streamable-9ca10da6.js similarity index 95% rename from build/assets/Streamable-bfbc2d5d.js rename to build/assets/Streamable-9ca10da6.js index 0cd54450a..8853a3ad5 100644 --- a/build/assets/Streamable-bfbc2d5d.js +++ b/build/assets/Streamable-9ca10da6.js @@ -1 +1 @@ -import{n as m,r as f}from"./index-21067c9d.js";import{u as _,p as b}from"./index-adad2e25.js";function P(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,l=Object.defineProperty,v=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,L=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,w=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of O(e))!j.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=v(e,a))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?g(S(t)):{},c(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>c(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(L(t,typeof e!="symbol"?e+"":e,r),r),h={};w(h,{default:()=>i});var y=E(h),p=D(f),u=_,d=b;const M="https://cdn.embed.ly/player-0.1.0.min.js",T="playerjs";class i extends p.Component{constructor(){super(...arguments),o(this,"callPlayer",u.callPlayer),o(this,"duration",null),o(this,"currentTime",null),o(this,"secondsLoaded",null),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")}),o(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,u.getSDK)(M,T).then(r=>{this.iframe&&(this.player=new r.Player(this.iframe),this.player.setLoop(this.props.loop),this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seeked",this.props.onSeek),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({duration:s,seconds:a})=>{this.duration=s,this.currentTime=a}),this.player.on("buffered",({percent:s})=>{this.duration&&(this.secondsLoaded=this.duration*s)}),this.props.muted&&this.player.mute())},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e=this.props.url.match(d.MATCH_URL_STREAMABLE)[1],r={width:"100%",height:"100%"};return p.default.createElement("iframe",{ref:this.ref,src:`https://streamable.com/o/${e}`,frameBorder:"0",scrolling:"no",style:r,allow:"encrypted-media; autoplay; fullscreen;"})}}o(i,"displayName","Streamable");o(i,"canPlay",d.canPlay.streamable);const x=m(y),N=P({__proto__:null,default:x},[y]);export{N as S}; +import{n as m,r as f}from"./index-f50d1ab5.js";import{u as _,p as b}from"./index-73f6b088.js";function P(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,l=Object.defineProperty,v=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,L=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,w=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of O(e))!j.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=v(e,a))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?g(S(t)):{},c(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>c(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(L(t,typeof e!="symbol"?e+"":e,r),r),h={};w(h,{default:()=>i});var y=E(h),p=D(f),u=_,d=b;const M="https://cdn.embed.ly/player-0.1.0.min.js",T="playerjs";class i extends p.Component{constructor(){super(...arguments),o(this,"callPlayer",u.callPlayer),o(this,"duration",null),o(this,"currentTime",null),o(this,"secondsLoaded",null),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")}),o(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,u.getSDK)(M,T).then(r=>{this.iframe&&(this.player=new r.Player(this.iframe),this.player.setLoop(this.props.loop),this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seeked",this.props.onSeek),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({duration:s,seconds:a})=>{this.duration=s,this.currentTime=a}),this.player.on("buffered",({percent:s})=>{this.duration&&(this.secondsLoaded=this.duration*s)}),this.props.muted&&this.player.mute())},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e=this.props.url.match(d.MATCH_URL_STREAMABLE)[1],r={width:"100%",height:"100%"};return p.default.createElement("iframe",{ref:this.ref,src:`https://streamable.com/o/${e}`,frameBorder:"0",scrolling:"no",style:r,allow:"encrypted-media; autoplay; fullscreen;"})}}o(i,"displayName","Streamable");o(i,"canPlay",d.canPlay.streamable);const x=m(y),N=P({__proto__:null,default:x},[y]);export{N as S}; diff --git a/build/assets/SwitchBase-f58c5852.js b/build/assets/SwitchBase-49769912.js similarity index 94% rename from build/assets/SwitchBase-f58c5852.js rename to build/assets/SwitchBase-49769912.js index 19c27a16d..021da04f7 100644 --- a/build/assets/SwitchBase-f58c5852.js +++ b/build/assets/SwitchBase-49769912.js @@ -1 +1 @@ -import{b as W,g as A,s as F,_ as c,i as D,r as G,a as H,j as x,c as J,e as K,d as M}from"./index-21067c9d.js";import{u as Q,a as T}from"./Stack-dbe00046.js";import{n as V}from"./index-93bc2f63.js";function X(e){return W("PrivateSwitchBase",e)}A("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Y=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Z=e=>{const{classes:o,checked:i,disabled:r,edge:a}=e,l={root:["root",i&&"checked",r&&"disabled",a&&`edge${K(a)}`],input:["input"]};return M(l,X,o)},ee=F(V)(({ownerState:e})=>c({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),se=F("input",{shouldForwardProp:D})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),te=G.forwardRef(function(o,i){const{autoFocus:r,checked:a,checkedIcon:l,className:w,defaultChecked:h,disabled:y,disableFocusRipple:p=!1,edge:S=!1,icon:R,id:P,inputProps:I,inputRef:j,name:z,onBlur:f,onChange:m,onFocus:g,readOnly:E,required:N=!1,tabIndex:U,type:d,value:b}=o,_=H(o,Y),[k,q]=Q({controlled:a,default:!!h,name:"SwitchBase",state:"checked"}),t=T(),v=s=>{g&&g(s),t&&t.onFocus&&t.onFocus(s)},L=s=>{f&&f(s),t&&t.onBlur&&t.onBlur(s)},O=s=>{if(s.nativeEvent.defaultPrevented)return;const C=s.target.checked;q(C),m&&m(s,C)};let n=y;t&&typeof n>"u"&&(n=t.disabled);const $=d==="checkbox"||d==="radio",u=c({},o,{checked:k,disabled:n,disableFocusRipple:p,edge:S}),B=Z(u);return x.jsxs(ee,c({component:"span",className:J(B.root,w),centerRipple:!0,focusRipple:!p,disabled:n,tabIndex:null,role:void 0,onFocus:v,onBlur:L,ownerState:u,ref:i},_,{children:[x.jsx(se,c({autoFocus:r,checked:a,defaultChecked:h,className:B.input,disabled:n,id:$?P:void 0,name:z,onChange:O,readOnly:E,ref:j,required:N,ownerState:u,tabIndex:U,type:d},d==="checkbox"&&b===void 0?{}:{value:b},I)),k?l:R]}))}),de=te;export{de as S}; +import{b as W,g as A,s as F,_ as c,i as D,r as G,a as H,j as x,c as J,e as K,d as M}from"./index-f50d1ab5.js";import{u as Q,a as T}from"./Stack-a4065033.js";import{o as V}from"./index-f857b04d.js";function X(e){return W("PrivateSwitchBase",e)}A("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Y=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Z=e=>{const{classes:o,checked:i,disabled:r,edge:a}=e,l={root:["root",i&&"checked",r&&"disabled",a&&`edge${K(a)}`],input:["input"]};return M(l,X,o)},ee=F(V)(({ownerState:e})=>c({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),se=F("input",{shouldForwardProp:D})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),te=G.forwardRef(function(o,i){const{autoFocus:r,checked:a,checkedIcon:l,className:w,defaultChecked:h,disabled:y,disableFocusRipple:p=!1,edge:S=!1,icon:R,id:P,inputProps:I,inputRef:j,name:z,onBlur:f,onChange:m,onFocus:g,readOnly:E,required:N=!1,tabIndex:U,type:d,value:b}=o,_=H(o,Y),[k,q]=Q({controlled:a,default:!!h,name:"SwitchBase",state:"checked"}),t=T(),v=s=>{g&&g(s),t&&t.onFocus&&t.onFocus(s)},L=s=>{f&&f(s),t&&t.onBlur&&t.onBlur(s)},O=s=>{if(s.nativeEvent.defaultPrevented)return;const C=s.target.checked;q(C),m&&m(s,C)};let n=y;t&&typeof n>"u"&&(n=t.disabled);const $=d==="checkbox"||d==="radio",u=c({},o,{checked:k,disabled:n,disableFocusRipple:p,edge:S}),B=Z(u);return x.jsxs(ee,c({component:"span",className:J(B.root,w),centerRipple:!0,focusRipple:!p,disabled:n,tabIndex:null,role:void 0,onFocus:v,onBlur:L,ownerState:u,ref:i},_,{children:[x.jsx(se,c({autoFocus:r,checked:a,defaultChecked:h,className:B.input,disabled:n,id:$?P:void 0,name:z,onChange:O,readOnly:E,ref:j,required:N,ownerState:u,tabIndex:U,type:d},d==="checkbox"&&b===void 0?{}:{value:b},I)),k?l:R]}))}),de=te;export{de as S}; diff --git a/build/assets/Tabs-b4885406.js b/build/assets/Tabs-6e4fbac2.js similarity index 98% rename from build/assets/Tabs-b4885406.js rename to build/assets/Tabs-6e4fbac2.js index ba5ddde6c..711032f66 100644 --- a/build/assets/Tabs-b4885406.js +++ b/build/assets/Tabs-6e4fbac2.js @@ -1 +1 @@ -import{g as ft,b as pt,s as O,e as Pt,_ as b,r as c,u as ht,a as rt,c as L,j as S,d as St,ad as Lt}from"./index-21067c9d.js";import{n as Nt,e as Zt,f as ut}from"./index-93bc2f63.js";import{d as $t,a as kt,u as lt,o as te}from"./useSlotProps-f54e8b6d.js";import{c as Ft}from"./createSvgIcon-b719273b.js";let U;function At(){if(U)return U;const t=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",t.appendChild(e),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),U="reverse",t.scrollLeft>0?U="default":(t.scrollLeft=1,t.scrollLeft===0&&(U="negative")),document.body.removeChild(t),U}function ee(t,e){const r=t.scrollLeft;if(e!=="rtl")return r;switch(At()){case"negative":return t.scrollWidth-t.clientWidth+r;case"reverse":return t.scrollWidth-t.clientWidth-r;default:return r}}function oe(t){return pt("MuiTab",t)}const le=ft("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),A=le,re=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],ne=t=>{const{classes:e,textColor:r,fullWidth:a,wrapped:n,icon:d,label:h,selected:p,disabled:u}=t,m={root:["root",d&&h&&"labelIcon",`textColor${Pt(r)}`,a&&"fullWidth",n&&"wrapped",p&&"selected",u&&"disabled"],iconWrapper:["iconWrapper"]};return St(m,oe,e)},se=O(Nt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${Pt(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped]}})(({theme:t,ownerState:e})=>b({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${A.iconWrapper}`]:b({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${A.selected}`]:{opacity:1},[`&.${A.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),ae=c.forwardRef(function(e,r){const a=ht({props:e,name:"MuiTab"}),{className:n,disabled:d=!1,disableFocusRipple:h=!1,fullWidth:p,icon:u,iconPosition:m="top",indicator:w,label:T,onChange:y,onClick:x,onFocus:j,selected:I,selectionFollowsFocus:g,textColor:H="inherit",value:C,wrapped:nt=!1}=a,D=rt(a,re),Y=b({},a,{disabled:d,disableFocusRipple:h,selected:I,icon:!!u,iconPosition:m,label:!!T,fullWidth:p,textColor:H,wrapped:nt}),X=ne(Y),N=u&&T&&c.isValidElement(u)?c.cloneElement(u,{className:L(X.iconWrapper,u.props.className)}):u,J=R=>{!I&&y&&y(R,C),x&&x(R)},_=R=>{g&&!I&&y&&y(R,C),j&&j(R)};return S.jsxs(se,b({focusRipple:!h,className:L(X.root,n),ref:r,role:"tab","aria-selected":I,disabled:d,onClick:J,onFocus:_,ownerState:Y,tabIndex:I?0:-1},D,{children:[m==="top"||m==="start"?S.jsxs(c.Fragment,{children:[N,T]}):S.jsxs(c.Fragment,{children:[T,N]}),w]}))}),Fe=ae,ie=Ft(S.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ce=Ft(S.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function de(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function ue(t,e,r,a={},n=()=>{}){const{ease:d=de,duration:h=300}=a;let p=null;const u=e[t];let m=!1;const w=()=>{m=!0},T=y=>{if(m){n(new Error("Animation cancelled"));return}p===null&&(p=y);const x=Math.min(1,(y-p)/h);if(e[t]=d(x)*(r-u)+u,x>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(T)};return u===r?(n(new Error("Element already at target position")),w):(requestAnimationFrame(T),w)}const be=["onChange"],fe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function pe(t){const{onChange:e}=t,r=rt(t,be),a=c.useRef(),n=c.useRef(null),d=()=>{a.current=n.current.offsetHeight-n.current.clientHeight};return Zt(()=>{const h=$t(()=>{const u=a.current;d(),u!==a.current&&e(a.current)}),p=kt(n.current);return p.addEventListener("resize",h),()=>{h.clear(),p.removeEventListener("resize",h)}},[e]),c.useEffect(()=>{d(),e(a.current)},[e]),S.jsx("div",b({style:fe,ref:n},r))}function he(t){return pt("MuiTabScrollButton",t)}const Se=ft("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ve=Se,me=["className","slots","slotProps","direction","orientation","disabled"],xe=t=>{const{classes:e,orientation:r,disabled:a}=t;return St({root:["root",r,a&&"disabled"]},he,e)},ge=O(Nt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})(({ownerState:t})=>b({width:40,flexShrink:0,opacity:.8,[`&.${ve.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),ye=c.forwardRef(function(e,r){var a,n;const d=ht({props:e,name:"MuiTabScrollButton"}),{className:h,slots:p={},slotProps:u={},direction:m}=d,w=rt(d,me),y=Lt().direction==="rtl",x=b({isRtl:y},d),j=xe(x),I=(a=p.StartScrollButtonIcon)!=null?a:ie,g=(n=p.EndScrollButtonIcon)!=null?n:ce,H=lt({elementType:I,externalSlotProps:u.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x}),C=lt({elementType:g,externalSlotProps:u.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x});return S.jsx(ge,b({component:"div",className:L(j.root,h),ref:r,role:null,ownerState:x,tabIndex:null},w,{children:m==="left"?S.jsx(I,b({},H)):S.jsx(g,b({},C))}))}),Ce=ye;function Be(t){return pt("MuiTabs",t)}const we=ft("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),bt=we,Te=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Rt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,zt=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,ot=(t,e,r)=>{let a=!1,n=r(t,e);for(;n;){if(n===t.firstChild){if(a)return;a=!0}const d=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||d)n=r(t,n);else{n.focus();return}}},Ie=t=>{const{vertical:e,fixed:r,hideScrollbar:a,scrollableX:n,scrollableY:d,centered:h,scrollButtonsHideMobile:p,classes:u}=t;return St({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",a&&"hideScrollbar",n&&"scrollableX",d&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",h&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",p&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[a&&"hideScrollbar"]},Be,u)},Ee=O("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${bt.scrollButtons}`]:e.scrollButtons},{[`& .${bt.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>b({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${bt.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),Me=O("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})(({ownerState:t})=>b({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Re=O("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})(({ownerState:t})=>b({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),ze=O("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>b({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),We=O(pe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Wt={},Pe=c.forwardRef(function(e,r){const a=ht({props:e,name:"MuiTabs"}),n=Lt(),d=n.direction==="rtl",{"aria-label":h,"aria-labelledby":p,action:u,centered:m=!1,children:w,className:T,component:y="div",allowScrollButtonsMobile:x=!1,indicatorColor:j="primary",onChange:I,orientation:g="horizontal",ScrollButtonComponent:H=Ce,scrollButtons:C="auto",selectionFollowsFocus:nt,slots:D={},slotProps:Y={},TabIndicatorProps:X={},TabScrollButtonProps:N={},textColor:J="primary",value:_,variant:R="standard",visibleScrollbar:st=!1}=a,Ot=rt(a,Te),E=R==="scrollable",B=g==="vertical",K=B?"scrollTop":"scrollLeft",Q=B?"top":"left",Z=B?"bottom":"right",at=B?"clientHeight":"clientWidth",V=B?"height":"width",$=b({},a,{component:y,allowScrollButtonsMobile:x,indicatorColor:j,orientation:g,vertical:B,scrollButtons:C,textColor:J,variant:R,visibleScrollbar:st,fixed:!E,hideScrollbar:E&&!st,scrollableX:E&&!B,scrollableY:E&&B,centered:m&&!E,scrollButtonsHideMobile:!x}),W=Ie($),jt=lt({elementType:D.StartScrollButtonIcon,externalSlotProps:Y.startScrollButtonIcon,ownerState:$}),Ht=lt({elementType:D.EndScrollButtonIcon,externalSlotProps:Y.endScrollButtonIcon,ownerState:$}),[vt,Dt]=c.useState(!1),[k,mt]=c.useState(Wt),[xt,Xt]=c.useState(!1),[gt,_t]=c.useState(!1),[yt,Ut]=c.useState(!1),[Ct,Yt]=c.useState({overflow:"hidden",scrollbarWidth:0}),Bt=new Map,z=c.useRef(null),F=c.useRef(null),wt=()=>{const o=z.current;let l;if(o){const s=o.getBoundingClientRect();l={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ee(o,n.direction),scrollWidth:o.scrollWidth,top:s.top,bottom:s.bottom,left:s.left,right:s.right}}let i;if(o&&_!==!1){const s=F.current.children;if(s.length>0){const f=s[Bt.get(_)];i=f?f.getBoundingClientRect():null}}return{tabsMeta:l,tabMeta:i}},q=ut(()=>{const{tabsMeta:o,tabMeta:l}=wt();let i=0,s;if(B)s="top",l&&o&&(i=l.top-o.top+o.scrollTop);else if(s=d?"right":"left",l&&o){const v=d?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;i=(d?-1:1)*(l[s]-o[s]+v)}const f={[s]:i,[V]:l?l[V]:0};if(isNaN(k[s])||isNaN(k[V]))mt(f);else{const v=Math.abs(k[s]-f[s]),M=Math.abs(k[V]-f[V]);(v>=1||M>=1)&&mt(f)}}),it=(o,{animation:l=!0}={})=>{l?ue(K,z.current,o,{duration:n.transitions.duration.standard}):z.current[K]=o},Tt=o=>{let l=z.current[K];B?l+=o:(l+=o*(d?-1:1),l*=d&&At()==="reverse"?-1:1),it(l)},It=()=>{const o=z.current[at];let l=0;const i=Array.from(F.current.children);for(let s=0;so){s===0&&(l=o);break}l+=f[at]}return l},Kt=()=>{Tt(-1*It())},Vt=()=>{Tt(It())},qt=c.useCallback(o=>{Yt({overflow:null,scrollbarWidth:o})},[]),Gt=()=>{const o={};o.scrollbarSizeListener=E?S.jsx(We,{onChange:qt,className:L(W.scrollableX,W.hideScrollbar)}):null;const i=E&&(C==="auto"&&(xt||gt)||C===!0);return o.scrollButtonStart=i?S.jsx(H,b({slots:{StartScrollButtonIcon:D.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:jt},orientation:g,direction:d?"right":"left",onClick:Kt,disabled:!xt},N,{className:L(W.scrollButtons,N.className)})):null,o.scrollButtonEnd=i?S.jsx(H,b({slots:{EndScrollButtonIcon:D.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ht},orientation:g,direction:d?"left":"right",onClick:Vt,disabled:!gt},N,{className:L(W.scrollButtons,N.className)})):null,o},Et=ut(o=>{const{tabsMeta:l,tabMeta:i}=wt();if(!(!i||!l)){if(i[Q]l[Z]){const s=l[K]+(i[Z]-l[Z]);it(s,{animation:o})}}}),tt=ut(()=>{E&&C!==!1&&Ut(!yt)});c.useEffect(()=>{const o=$t(()=>{z.current&&q()});let l;const i=v=>{v.forEach(M=>{M.removedNodes.forEach(G=>{var P;(P=l)==null||P.unobserve(G)}),M.addedNodes.forEach(G=>{var P;(P=l)==null||P.observe(G)})}),o(),tt()},s=kt(z.current);s.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(l=new ResizeObserver(o),Array.from(F.current.children).forEach(v=>{l.observe(v)})),typeof MutationObserver<"u"&&(f=new MutationObserver(i),f.observe(F.current,{childList:!0})),()=>{var v,M;o.clear(),s.removeEventListener("resize",o),(v=f)==null||v.disconnect(),(M=l)==null||M.disconnect()}},[q,tt]),c.useEffect(()=>{const o=Array.from(F.current.children),l=o.length;if(typeof IntersectionObserver<"u"&&l>0&&E&&C!==!1){const i=o[0],s=o[l-1],f={root:z.current,threshold:.99},v=dt=>{Xt(!dt[0].isIntersecting)},M=new IntersectionObserver(v,f);M.observe(i);const G=dt=>{_t(!dt[0].isIntersecting)},P=new IntersectionObserver(G,f);return P.observe(s),()=>{M.disconnect(),P.disconnect()}}},[E,C,yt,w==null?void 0:w.length]),c.useEffect(()=>{Dt(!0)},[]),c.useEffect(()=>{q()}),c.useEffect(()=>{Et(Wt!==k)},[Et,k]),c.useImperativeHandle(u,()=>({updateIndicator:q,updateScrollButtons:tt}),[q,tt]);const Mt=S.jsx(ze,b({},X,{className:L(W.indicator,X.className),ownerState:$,style:b({},k,X.style)}));let et=0;const Jt=c.Children.map(w,o=>{if(!c.isValidElement(o))return null;const l=o.props.value===void 0?et:o.props.value;Bt.set(l,et);const i=l===_;return et+=1,c.cloneElement(o,b({fullWidth:R==="fullWidth",indicator:i&&!vt&&Mt,selected:i,selectionFollowsFocus:nt,onChange:I,textColor:J,value:l},et===1&&_===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),Qt=o=>{const l=F.current,i=te(l).activeElement;if(i.getAttribute("role")!=="tab")return;let f=g==="horizontal"?"ArrowLeft":"ArrowUp",v=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&d&&(f="ArrowRight",v="ArrowLeft"),o.key){case f:o.preventDefault(),ot(l,i,zt);break;case v:o.preventDefault(),ot(l,i,Rt);break;case"Home":o.preventDefault(),ot(l,null,Rt);break;case"End":o.preventDefault(),ot(l,null,zt);break}},ct=Gt();return S.jsxs(Ee,b({className:L(W.root,T),ownerState:$,ref:r,as:y},Ot,{children:[ct.scrollButtonStart,ct.scrollbarSizeListener,S.jsxs(Me,{className:W.scroller,ownerState:$,style:{overflow:Ct.overflow,[B?`margin${d?"Left":"Right"}`:"marginBottom"]:st?void 0:-Ct.scrollbarWidth},ref:z,children:[S.jsx(Re,{"aria-label":h,"aria-labelledby":p,"aria-orientation":g==="vertical"?"vertical":null,className:W.flexContainer,ownerState:$,onKeyDown:Qt,ref:F,role:"tablist",children:Jt}),vt&&Mt]}),ct.scrollButtonEnd]}))}),Ae=Pe;export{Ae as T,Fe as a}; +import{g as ft,b as pt,s as O,e as Pt,_ as b,r as c,u as ht,a as rt,c as L,j as S,d as St,ad as Lt}from"./index-f50d1ab5.js";import{o as Nt,f as Zt,g as ut}from"./index-f857b04d.js";import{d as $t,a as kt,u as lt,o as te}from"./useSlotProps-f1483ce3.js";import{c as Ft}from"./createSvgIcon-c64a52be.js";let U;function At(){if(U)return U;const t=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",t.appendChild(e),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),U="reverse",t.scrollLeft>0?U="default":(t.scrollLeft=1,t.scrollLeft===0&&(U="negative")),document.body.removeChild(t),U}function ee(t,e){const r=t.scrollLeft;if(e!=="rtl")return r;switch(At()){case"negative":return t.scrollWidth-t.clientWidth+r;case"reverse":return t.scrollWidth-t.clientWidth-r;default:return r}}function oe(t){return pt("MuiTab",t)}const le=ft("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),A=le,re=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],ne=t=>{const{classes:e,textColor:r,fullWidth:a,wrapped:n,icon:d,label:h,selected:p,disabled:u}=t,m={root:["root",d&&h&&"labelIcon",`textColor${Pt(r)}`,a&&"fullWidth",n&&"wrapped",p&&"selected",u&&"disabled"],iconWrapper:["iconWrapper"]};return St(m,oe,e)},se=O(Nt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${Pt(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped]}})(({theme:t,ownerState:e})=>b({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${A.iconWrapper}`]:b({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${A.selected}`]:{opacity:1},[`&.${A.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),ae=c.forwardRef(function(e,r){const a=ht({props:e,name:"MuiTab"}),{className:n,disabled:d=!1,disableFocusRipple:h=!1,fullWidth:p,icon:u,iconPosition:m="top",indicator:w,label:T,onChange:y,onClick:x,onFocus:j,selected:I,selectionFollowsFocus:g,textColor:H="inherit",value:C,wrapped:nt=!1}=a,D=rt(a,re),Y=b({},a,{disabled:d,disableFocusRipple:h,selected:I,icon:!!u,iconPosition:m,label:!!T,fullWidth:p,textColor:H,wrapped:nt}),X=ne(Y),N=u&&T&&c.isValidElement(u)?c.cloneElement(u,{className:L(X.iconWrapper,u.props.className)}):u,J=R=>{!I&&y&&y(R,C),x&&x(R)},_=R=>{g&&!I&&y&&y(R,C),j&&j(R)};return S.jsxs(se,b({focusRipple:!h,className:L(X.root,n),ref:r,role:"tab","aria-selected":I,disabled:d,onClick:J,onFocus:_,ownerState:Y,tabIndex:I?0:-1},D,{children:[m==="top"||m==="start"?S.jsxs(c.Fragment,{children:[N,T]}):S.jsxs(c.Fragment,{children:[T,N]}),w]}))}),Fe=ae,ie=Ft(S.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ce=Ft(S.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function de(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function ue(t,e,r,a={},n=()=>{}){const{ease:d=de,duration:h=300}=a;let p=null;const u=e[t];let m=!1;const w=()=>{m=!0},T=y=>{if(m){n(new Error("Animation cancelled"));return}p===null&&(p=y);const x=Math.min(1,(y-p)/h);if(e[t]=d(x)*(r-u)+u,x>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(T)};return u===r?(n(new Error("Element already at target position")),w):(requestAnimationFrame(T),w)}const be=["onChange"],fe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function pe(t){const{onChange:e}=t,r=rt(t,be),a=c.useRef(),n=c.useRef(null),d=()=>{a.current=n.current.offsetHeight-n.current.clientHeight};return Zt(()=>{const h=$t(()=>{const u=a.current;d(),u!==a.current&&e(a.current)}),p=kt(n.current);return p.addEventListener("resize",h),()=>{h.clear(),p.removeEventListener("resize",h)}},[e]),c.useEffect(()=>{d(),e(a.current)},[e]),S.jsx("div",b({style:fe,ref:n},r))}function he(t){return pt("MuiTabScrollButton",t)}const Se=ft("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ve=Se,me=["className","slots","slotProps","direction","orientation","disabled"],xe=t=>{const{classes:e,orientation:r,disabled:a}=t;return St({root:["root",r,a&&"disabled"]},he,e)},ge=O(Nt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})(({ownerState:t})=>b({width:40,flexShrink:0,opacity:.8,[`&.${ve.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),ye=c.forwardRef(function(e,r){var a,n;const d=ht({props:e,name:"MuiTabScrollButton"}),{className:h,slots:p={},slotProps:u={},direction:m}=d,w=rt(d,me),y=Lt().direction==="rtl",x=b({isRtl:y},d),j=xe(x),I=(a=p.StartScrollButtonIcon)!=null?a:ie,g=(n=p.EndScrollButtonIcon)!=null?n:ce,H=lt({elementType:I,externalSlotProps:u.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x}),C=lt({elementType:g,externalSlotProps:u.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x});return S.jsx(ge,b({component:"div",className:L(j.root,h),ref:r,role:null,ownerState:x,tabIndex:null},w,{children:m==="left"?S.jsx(I,b({},H)):S.jsx(g,b({},C))}))}),Ce=ye;function Be(t){return pt("MuiTabs",t)}const we=ft("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),bt=we,Te=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Rt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,zt=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,ot=(t,e,r)=>{let a=!1,n=r(t,e);for(;n;){if(n===t.firstChild){if(a)return;a=!0}const d=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||d)n=r(t,n);else{n.focus();return}}},Ie=t=>{const{vertical:e,fixed:r,hideScrollbar:a,scrollableX:n,scrollableY:d,centered:h,scrollButtonsHideMobile:p,classes:u}=t;return St({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",a&&"hideScrollbar",n&&"scrollableX",d&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",h&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",p&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[a&&"hideScrollbar"]},Be,u)},Ee=O("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${bt.scrollButtons}`]:e.scrollButtons},{[`& .${bt.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>b({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${bt.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),Me=O("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})(({ownerState:t})=>b({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Re=O("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})(({ownerState:t})=>b({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),ze=O("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>b({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),We=O(pe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Wt={},Pe=c.forwardRef(function(e,r){const a=ht({props:e,name:"MuiTabs"}),n=Lt(),d=n.direction==="rtl",{"aria-label":h,"aria-labelledby":p,action:u,centered:m=!1,children:w,className:T,component:y="div",allowScrollButtonsMobile:x=!1,indicatorColor:j="primary",onChange:I,orientation:g="horizontal",ScrollButtonComponent:H=Ce,scrollButtons:C="auto",selectionFollowsFocus:nt,slots:D={},slotProps:Y={},TabIndicatorProps:X={},TabScrollButtonProps:N={},textColor:J="primary",value:_,variant:R="standard",visibleScrollbar:st=!1}=a,Ot=rt(a,Te),E=R==="scrollable",B=g==="vertical",K=B?"scrollTop":"scrollLeft",Q=B?"top":"left",Z=B?"bottom":"right",at=B?"clientHeight":"clientWidth",V=B?"height":"width",$=b({},a,{component:y,allowScrollButtonsMobile:x,indicatorColor:j,orientation:g,vertical:B,scrollButtons:C,textColor:J,variant:R,visibleScrollbar:st,fixed:!E,hideScrollbar:E&&!st,scrollableX:E&&!B,scrollableY:E&&B,centered:m&&!E,scrollButtonsHideMobile:!x}),W=Ie($),jt=lt({elementType:D.StartScrollButtonIcon,externalSlotProps:Y.startScrollButtonIcon,ownerState:$}),Ht=lt({elementType:D.EndScrollButtonIcon,externalSlotProps:Y.endScrollButtonIcon,ownerState:$}),[vt,Dt]=c.useState(!1),[k,mt]=c.useState(Wt),[xt,Xt]=c.useState(!1),[gt,_t]=c.useState(!1),[yt,Ut]=c.useState(!1),[Ct,Yt]=c.useState({overflow:"hidden",scrollbarWidth:0}),Bt=new Map,z=c.useRef(null),F=c.useRef(null),wt=()=>{const o=z.current;let l;if(o){const s=o.getBoundingClientRect();l={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ee(o,n.direction),scrollWidth:o.scrollWidth,top:s.top,bottom:s.bottom,left:s.left,right:s.right}}let i;if(o&&_!==!1){const s=F.current.children;if(s.length>0){const f=s[Bt.get(_)];i=f?f.getBoundingClientRect():null}}return{tabsMeta:l,tabMeta:i}},q=ut(()=>{const{tabsMeta:o,tabMeta:l}=wt();let i=0,s;if(B)s="top",l&&o&&(i=l.top-o.top+o.scrollTop);else if(s=d?"right":"left",l&&o){const v=d?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;i=(d?-1:1)*(l[s]-o[s]+v)}const f={[s]:i,[V]:l?l[V]:0};if(isNaN(k[s])||isNaN(k[V]))mt(f);else{const v=Math.abs(k[s]-f[s]),M=Math.abs(k[V]-f[V]);(v>=1||M>=1)&&mt(f)}}),it=(o,{animation:l=!0}={})=>{l?ue(K,z.current,o,{duration:n.transitions.duration.standard}):z.current[K]=o},Tt=o=>{let l=z.current[K];B?l+=o:(l+=o*(d?-1:1),l*=d&&At()==="reverse"?-1:1),it(l)},It=()=>{const o=z.current[at];let l=0;const i=Array.from(F.current.children);for(let s=0;so){s===0&&(l=o);break}l+=f[at]}return l},Kt=()=>{Tt(-1*It())},Vt=()=>{Tt(It())},qt=c.useCallback(o=>{Yt({overflow:null,scrollbarWidth:o})},[]),Gt=()=>{const o={};o.scrollbarSizeListener=E?S.jsx(We,{onChange:qt,className:L(W.scrollableX,W.hideScrollbar)}):null;const i=E&&(C==="auto"&&(xt||gt)||C===!0);return o.scrollButtonStart=i?S.jsx(H,b({slots:{StartScrollButtonIcon:D.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:jt},orientation:g,direction:d?"right":"left",onClick:Kt,disabled:!xt},N,{className:L(W.scrollButtons,N.className)})):null,o.scrollButtonEnd=i?S.jsx(H,b({slots:{EndScrollButtonIcon:D.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ht},orientation:g,direction:d?"left":"right",onClick:Vt,disabled:!gt},N,{className:L(W.scrollButtons,N.className)})):null,o},Et=ut(o=>{const{tabsMeta:l,tabMeta:i}=wt();if(!(!i||!l)){if(i[Q]l[Z]){const s=l[K]+(i[Z]-l[Z]);it(s,{animation:o})}}}),tt=ut(()=>{E&&C!==!1&&Ut(!yt)});c.useEffect(()=>{const o=$t(()=>{z.current&&q()});let l;const i=v=>{v.forEach(M=>{M.removedNodes.forEach(G=>{var P;(P=l)==null||P.unobserve(G)}),M.addedNodes.forEach(G=>{var P;(P=l)==null||P.observe(G)})}),o(),tt()},s=kt(z.current);s.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(l=new ResizeObserver(o),Array.from(F.current.children).forEach(v=>{l.observe(v)})),typeof MutationObserver<"u"&&(f=new MutationObserver(i),f.observe(F.current,{childList:!0})),()=>{var v,M;o.clear(),s.removeEventListener("resize",o),(v=f)==null||v.disconnect(),(M=l)==null||M.disconnect()}},[q,tt]),c.useEffect(()=>{const o=Array.from(F.current.children),l=o.length;if(typeof IntersectionObserver<"u"&&l>0&&E&&C!==!1){const i=o[0],s=o[l-1],f={root:z.current,threshold:.99},v=dt=>{Xt(!dt[0].isIntersecting)},M=new IntersectionObserver(v,f);M.observe(i);const G=dt=>{_t(!dt[0].isIntersecting)},P=new IntersectionObserver(G,f);return P.observe(s),()=>{M.disconnect(),P.disconnect()}}},[E,C,yt,w==null?void 0:w.length]),c.useEffect(()=>{Dt(!0)},[]),c.useEffect(()=>{q()}),c.useEffect(()=>{Et(Wt!==k)},[Et,k]),c.useImperativeHandle(u,()=>({updateIndicator:q,updateScrollButtons:tt}),[q,tt]);const Mt=S.jsx(ze,b({},X,{className:L(W.indicator,X.className),ownerState:$,style:b({},k,X.style)}));let et=0;const Jt=c.Children.map(w,o=>{if(!c.isValidElement(o))return null;const l=o.props.value===void 0?et:o.props.value;Bt.set(l,et);const i=l===_;return et+=1,c.cloneElement(o,b({fullWidth:R==="fullWidth",indicator:i&&!vt&&Mt,selected:i,selectionFollowsFocus:nt,onChange:I,textColor:J,value:l},et===1&&_===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),Qt=o=>{const l=F.current,i=te(l).activeElement;if(i.getAttribute("role")!=="tab")return;let f=g==="horizontal"?"ArrowLeft":"ArrowUp",v=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&d&&(f="ArrowRight",v="ArrowLeft"),o.key){case f:o.preventDefault(),ot(l,i,zt);break;case v:o.preventDefault(),ot(l,i,Rt);break;case"Home":o.preventDefault(),ot(l,null,Rt);break;case"End":o.preventDefault(),ot(l,null,zt);break}},ct=Gt();return S.jsxs(Ee,b({className:L(W.root,T),ownerState:$,ref:r,as:y},Ot,{children:[ct.scrollButtonStart,ct.scrollbarSizeListener,S.jsxs(Me,{className:W.scroller,ownerState:$,style:{overflow:Ct.overflow,[B?`margin${d?"Left":"Right"}`:"marginBottom"]:st?void 0:-Ct.scrollbarWidth},ref:z,children:[S.jsx(Re,{"aria-label":h,"aria-labelledby":p,"aria-orientation":g==="vertical"?"vertical":null,className:W.flexContainer,ownerState:$,onKeyDown:Qt,ref:F,role:"tablist",children:Jt}),vt&&Mt]}),ct.scrollButtonEnd]}))}),Ae=Pe;export{Ae as T,Fe as a}; diff --git a/build/assets/TextareaAutosize-9f8d1e37.js b/build/assets/TextareaAutosize-04e2890c.js similarity index 91% rename from build/assets/TextareaAutosize-9f8d1e37.js rename to build/assets/TextareaAutosize-04e2890c.js index fb0ca256d..0d648b6c4 100644 --- a/build/assets/TextareaAutosize-9f8d1e37.js +++ b/build/assets/TextareaAutosize-04e2890c.js @@ -1,2 +1,2 @@ -import{r as o,a as L,j as v,_ as b,h as I}from"./index-21067c9d.js";import{d as D,e as T}from"./index-93bc2f63.js";import{a as F,d as P}from"./useSlotProps-f54e8b6d.js";const U=["onChange","maxRows","minRows","style","value"];function w(r){return parseInt(r,10)||0}const V={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function M(r){return r==null||Object.keys(r).length===0||r.outerHeightStyle===0&&!r.overflow}const J=o.forwardRef(function(l,O){const{onChange:R,maxRows:x,minRows:h=1,style:S,value:y}=l,k=L(l,U),{current:A}=o.useRef(y!=null),p=o.useRef(null),N=D(O,p),H=o.useRef(null),c=o.useRef(0),[z,E]=o.useState({outerHeightStyle:0}),f=o.useCallback(()=>{const e=p.current,n=F(e).getComputedStyle(e);if(n.width==="0px")return{outerHeightStyle:0};const t=H.current;t.style.width=n.width,t.value=e.value||l.placeholder||"x",t.value.slice(-1)===` +import{r as o,a as L,j as v,_ as b,h as I}from"./index-f50d1ab5.js";import{e as D,f as T}from"./index-f857b04d.js";import{a as F,d as P}from"./useSlotProps-f1483ce3.js";const U=["onChange","maxRows","minRows","style","value"];function w(r){return parseInt(r,10)||0}const V={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function M(r){return r==null||Object.keys(r).length===0||r.outerHeightStyle===0&&!r.overflow}const J=o.forwardRef(function(l,O){const{onChange:R,maxRows:x,minRows:h=1,style:S,value:y}=l,k=L(l,U),{current:A}=o.useRef(y!=null),p=o.useRef(null),N=D(O,p),H=o.useRef(null),c=o.useRef(0),[z,E]=o.useState({outerHeightStyle:0}),f=o.useCallback(()=>{const e=p.current,n=F(e).getComputedStyle(e);if(n.width==="0px")return{outerHeightStyle:0};const t=H.current;t.style.width=n.width,t.value=e.value||l.placeholder||"x",t.value.slice(-1)===` `&&(t.value+=" ");const g=n.boxSizing,m=w(n.paddingBottom)+w(n.paddingTop),a=w(n.borderBottomWidth)+w(n.borderTopWidth),u=t.scrollHeight;t.value="x";const d=t.scrollHeight;let s=u;h&&(s=Math.max(Number(h)*d,s)),x&&(s=Math.min(Number(x)*d,s)),s=Math.max(s,d);const j=s+(g==="border-box"?m+a:0),B=Math.abs(s-u)<=1;return{outerHeightStyle:j,overflow:B}},[x,h,l.placeholder]),C=(e,i)=>{const{outerHeightStyle:n,overflow:t}=i;return c.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==t)?(c.current+=1,{overflow:t,outerHeightStyle:n}):e},W=o.useCallback(()=>{const e=f();M(e)||E(i=>C(i,e))},[f]);T(()=>{const e=()=>{const u=f();M(u)||I.flushSync(()=>{E(d=>C(d,u))})},i=()=>{c.current=0,e()};let n;const t=P(i),g=p.current,m=F(g);m.addEventListener("resize",t);let a;return typeof ResizeObserver<"u"&&(a=new ResizeObserver(i),a.observe(g)),()=>{t.clear(),cancelAnimationFrame(n),m.removeEventListener("resize",t),a&&a.disconnect()}},[f]),T(()=>{W()}),o.useEffect(()=>{c.current=0},[y]);const _=e=>{c.current=0,A||W(),R&&R(e)};return v.jsxs(o.Fragment,{children:[v.jsx("textarea",b({value:y,onChange:_,ref:N,rows:h,style:b({height:z.outerHeightStyle,overflow:z.overflow?"hidden":void 0},S)},k)),v.jsx("textarea",{"aria-hidden":!0,className:l.className,readOnly:!0,ref:H,tabIndex:-1,style:b({},V.shadow,S,{paddingTop:0,paddingBottom:0})})]})});export{J as T}; diff --git a/build/assets/Twitch-967d8a02.js b/build/assets/Twitch-e4c05adf.js similarity index 95% rename from build/assets/Twitch-967d8a02.js rename to build/assets/Twitch-e4c05adf.js index 1d24f755a..028bf326c 100644 --- a/build/assets/Twitch-967d8a02.js +++ b/build/assets/Twitch-e4c05adf.js @@ -1 +1 @@ -import{n as w,r as D}from"./index-21067c9d.js";import{u as C,p as N}from"./index-adad2e25.js";function I(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,j=Object.getOwnPropertyDescriptor,A=Object.getOwnPropertyNames,M=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty,R=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,x=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},_=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of A(e))!H.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=j(e,a))||s.enumerable});return t},F=(t,e,r)=>(r=t!=null?S(M(t)):{},_(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),U=t=>_(l({},"__esModule",{value:!0}),t),n=(t,e,r)=>(R(t,typeof e!="symbol"?e+"":e,r),r),P={};x(P,{default:()=>h});var f=U(P),d=F(D),c=C,u=N;const K="https://player.twitch.tv/js/embed/v1.js",V="Twitch",$="twitch-player-";class h extends d.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${$}${(0,c.randomString)()}`),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){const{playsinline:s,onError:a,config:o,controls:v}=this.props,i=u.MATCH_URL_TWITCH_CHANNEL.test(e),p=i?e.match(u.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(u.MATCH_URL_TWITCH_VIDEO)[1];if(r){i?this.player.setChannel(p):this.player.setVideo("v"+p);return}(0,c.getSDK)(K,V).then(y=>{this.player=new y.Player(this.playerID,{video:i?"":p,channel:i?p:"",height:"100%",width:"100%",playsinline:s,autoplay:this.props.playing,muted:this.props.muted,controls:i?!0:v,time:(0,c.parseStartTime)(e),...o.options});const{READY:m,PLAYING:g,PAUSE:E,ENDED:O,ONLINE:L,OFFLINE:b,SEEK:T}=y.Player;this.player.addEventListener(m,this.props.onReady),this.player.addEventListener(g,this.props.onPlay),this.player.addEventListener(E,this.props.onPause),this.player.addEventListener(O,this.props.onEnded),this.player.addEventListener(T,this.props.onSeek),this.player.addEventListener(L,this.props.onLoaded),this.player.addEventListener(b,this.props.onLoaded)},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){const e={width:"100%",height:"100%"};return d.default.createElement("div",{style:e,id:this.playerID})}}n(h,"displayName","Twitch");n(h,"canPlay",u.canPlay.twitch);n(h,"loopOnEnded",!0);const W=w(f),k=I({__proto__:null,default:W},[f]);export{k as T}; +import{n as w,r as D}from"./index-f50d1ab5.js";import{u as C,p as N}from"./index-73f6b088.js";function I(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,j=Object.getOwnPropertyDescriptor,A=Object.getOwnPropertyNames,M=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty,R=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,x=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},_=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of A(e))!H.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=j(e,a))||s.enumerable});return t},F=(t,e,r)=>(r=t!=null?S(M(t)):{},_(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),U=t=>_(l({},"__esModule",{value:!0}),t),n=(t,e,r)=>(R(t,typeof e!="symbol"?e+"":e,r),r),P={};x(P,{default:()=>h});var f=U(P),d=F(D),c=C,u=N;const K="https://player.twitch.tv/js/embed/v1.js",V="Twitch",$="twitch-player-";class h extends d.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${$}${(0,c.randomString)()}`),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){const{playsinline:s,onError:a,config:o,controls:v}=this.props,i=u.MATCH_URL_TWITCH_CHANNEL.test(e),p=i?e.match(u.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(u.MATCH_URL_TWITCH_VIDEO)[1];if(r){i?this.player.setChannel(p):this.player.setVideo("v"+p);return}(0,c.getSDK)(K,V).then(y=>{this.player=new y.Player(this.playerID,{video:i?"":p,channel:i?p:"",height:"100%",width:"100%",playsinline:s,autoplay:this.props.playing,muted:this.props.muted,controls:i?!0:v,time:(0,c.parseStartTime)(e),...o.options});const{READY:m,PLAYING:g,PAUSE:E,ENDED:O,ONLINE:L,OFFLINE:b,SEEK:T}=y.Player;this.player.addEventListener(m,this.props.onReady),this.player.addEventListener(g,this.props.onPlay),this.player.addEventListener(E,this.props.onPause),this.player.addEventListener(O,this.props.onEnded),this.player.addEventListener(T,this.props.onSeek),this.player.addEventListener(L,this.props.onLoaded),this.player.addEventListener(b,this.props.onLoaded)},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){const e={width:"100%",height:"100%"};return d.default.createElement("div",{style:e,id:this.playerID})}}n(h,"displayName","Twitch");n(h,"canPlay",u.canPlay.twitch);n(h,"loopOnEnded",!0);const W=w(f),k=I({__proto__:null,default:W},[f]);export{k as T}; diff --git a/build/assets/Vidyard-bf15707d.js b/build/assets/Vidyard-e3e4dcb8.js similarity index 95% rename from build/assets/Vidyard-bf15707d.js rename to build/assets/Vidyard-e3e4dcb8.js index 6659166b8..19ebee73b 100644 --- a/build/assets/Vidyard-bf15707d.js +++ b/build/assets/Vidyard-e3e4dcb8.js @@ -1 +1 @@ -import{n as g,r as v}from"./index-21067c9d.js";import{u as b,p as O}from"./index-adad2e25.js";function V(t,e){for(var r=0;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var D=Object.create,i=Object.defineProperty,j=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,S=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty,A=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,E=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of w(e))!M.call(t,a)&&a!==r&&i(t,a,{get:()=>e[a],enumerable:!(o=j(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?D(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),R=t=>h(i({},"__esModule",{value:!0}),t),s=(t,e,r)=>(A(t,typeof e!="symbol"?e+"":e,r),r),_={};E(_,{default:()=>y});var f=R(_),c=L(v),d=b,P=O;const x="https://play.vidyard.com/embed/v4.js",C="VidyardV4",N="onVidyardAPI";class y extends c.Component{constructor(){super(...arguments),s(this,"callPlayer",d.callPlayer),s(this,"mute",()=>{this.setVolume(0)}),s(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),s(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:r,config:o,onError:a,onDuration:n}=this.props,l=e&&e.match(P.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,d.getSDK)(x,C,N).then(p=>{this.container&&(p.api.addReadyListener((u,m)=>{this.player||(this.player=m,this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seek",this.props.onSeek),this.player.on("playerComplete",this.props.onEnded))},l),p.api.renderPlayer({uuid:l,container:this.container,autoplay:r?1:0,...o.options}),p.api.getPlayerMetadata(l).then(u=>{this.duration=u.length_in_seconds,n(u.length_in_seconds)}))},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){window.VidyardV4.api.destroyPlayer(this.player)}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setPlaybackRate(e){this.callPlayer("setPlaybackSpeed",e)}getDuration(){return this.duration}getCurrentTime(){return this.callPlayer("currentTime")}getSecondsLoaded(){return null}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}s(y,"displayName","Vidyard");s(y,"canPlay",P.canPlay.vidyard);const T=g(f),B=V({__proto__:null,default:T},[f]);export{B as V}; +import{n as g,r as v}from"./index-f50d1ab5.js";import{u as b,p as O}from"./index-73f6b088.js";function V(t,e){for(var r=0;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var D=Object.create,i=Object.defineProperty,j=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,S=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty,A=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,E=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of w(e))!M.call(t,a)&&a!==r&&i(t,a,{get:()=>e[a],enumerable:!(o=j(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?D(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),R=t=>h(i({},"__esModule",{value:!0}),t),s=(t,e,r)=>(A(t,typeof e!="symbol"?e+"":e,r),r),_={};E(_,{default:()=>y});var f=R(_),c=L(v),d=b,P=O;const x="https://play.vidyard.com/embed/v4.js",C="VidyardV4",N="onVidyardAPI";class y extends c.Component{constructor(){super(...arguments),s(this,"callPlayer",d.callPlayer),s(this,"mute",()=>{this.setVolume(0)}),s(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),s(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:r,config:o,onError:a,onDuration:n}=this.props,l=e&&e.match(P.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,d.getSDK)(x,C,N).then(p=>{this.container&&(p.api.addReadyListener((u,m)=>{this.player||(this.player=m,this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seek",this.props.onSeek),this.player.on("playerComplete",this.props.onEnded))},l),p.api.renderPlayer({uuid:l,container:this.container,autoplay:r?1:0,...o.options}),p.api.getPlayerMetadata(l).then(u=>{this.duration=u.length_in_seconds,n(u.length_in_seconds)}))},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){window.VidyardV4.api.destroyPlayer(this.player)}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setPlaybackRate(e){this.callPlayer("setPlaybackSpeed",e)}getDuration(){return this.duration}getCurrentTime(){return this.callPlayer("currentTime")}getSecondsLoaded(){return null}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}s(y,"displayName","Vidyard");s(y,"canPlay",P.canPlay.vidyard);const T=g(f),B=V({__proto__:null,default:T},[f]);export{B as V}; diff --git a/build/assets/Vimeo-2200abd5.js b/build/assets/Vimeo-85e297dc.js similarity index 96% rename from build/assets/Vimeo-2200abd5.js rename to build/assets/Vimeo-85e297dc.js index cd8742b6e..077e0acf3 100644 --- a/build/assets/Vimeo-2200abd5.js +++ b/build/assets/Vimeo-85e297dc.js @@ -1 +1 @@ -import{n as d,r as f}from"./index-21067c9d.js";import{u as m,p as _}from"./index-adad2e25.js";function P(t,e){for(var r=0;ra[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty,w=(t,e,r)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of v(e))!D.call(t,o)&&o!==r&&n(t,o,{get:()=>e[o],enumerable:!(a=b(e,o))||a.enumerable});return t},M=(t,e,r)=>(r=t!=null?g(O(t)):{},h(e||!t||!t.__esModule?n(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>h(n({},"__esModule",{value:!0}),t),i=(t,e,r)=>(w(t,typeof e!="symbol"?e+"":e,r),r),c={};j(c,{default:()=>l});var y=E(c),p=M(f),u=m,L=_;const S="https://player.vimeo.com/api/player.js",V="Vimeo",k=t=>t.replace("/manage/videos","");class l extends p.Component{constructor(){super(...arguments),i(this,"callPlayer",u.callPlayer),i(this,"duration",null),i(this,"currentTime",null),i(this,"secondsLoaded",null),i(this,"mute",()=>{this.setMuted(!0)}),i(this,"unmute",()=>{this.setMuted(!1)}),i(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){this.duration=null,(0,u.getSDK)(S,V).then(r=>{if(!this.container)return;const{playerOptions:a,title:o}=this.props.config;this.player=new r.Player(this.container,{url:k(e),autoplay:this.props.playing,muted:this.props.muted,loop:this.props.loop,playsinline:this.props.playsinline,controls:this.props.controls,...a}),this.player.ready().then(()=>{const s=this.container.querySelector("iframe");s.style.width="100%",s.style.height="100%",o&&(s.title=o)}).catch(this.props.onError),this.player.on("loaded",()=>{this.props.onReady(),this.refreshDuration()}),this.player.on("play",()=>{this.props.onPlay(),this.refreshDuration()}),this.player.on("pause",this.props.onPause),this.player.on("seeked",s=>this.props.onSeek(s.seconds)),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({seconds:s})=>{this.currentTime=s}),this.player.on("progress",({seconds:s})=>{this.secondsLoaded=s}),this.player.on("bufferstart",this.props.onBuffer),this.player.on("bufferend",this.props.onBufferEnd),this.player.on("playbackratechange",s=>this.props.onPlaybackRateChange(s.playbackRate))},this.props.onError)}refreshDuration(){this.player.getDuration().then(e=>{this.duration=e})}play(){const e=this.callPlayer("play");e&&e.catch(this.props.onError)}pause(){this.callPlayer("pause")}stop(){this.callPlayer("unload")}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setMuted(e){this.callPlayer("setMuted",e)}setLoop(e){this.callPlayer("setLoop",e)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const{display:e}=this.props,r={width:"100%",height:"100%",overflow:"hidden",display:e};return p.default.createElement("div",{key:this.props.url,ref:this.ref,style:r})}}i(l,"displayName","Vimeo");i(l,"canPlay",L.canPlay.vimeo);i(l,"forceLoad",!0);const T=d(y),R=P({__proto__:null,default:T},[y]);export{R as V}; +import{n as d,r as f}from"./index-f50d1ab5.js";import{u as m,p as _}from"./index-73f6b088.js";function P(t,e){for(var r=0;ra[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty,w=(t,e,r)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of v(e))!D.call(t,o)&&o!==r&&n(t,o,{get:()=>e[o],enumerable:!(a=b(e,o))||a.enumerable});return t},M=(t,e,r)=>(r=t!=null?g(O(t)):{},h(e||!t||!t.__esModule?n(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>h(n({},"__esModule",{value:!0}),t),i=(t,e,r)=>(w(t,typeof e!="symbol"?e+"":e,r),r),c={};j(c,{default:()=>l});var y=E(c),p=M(f),u=m,L=_;const S="https://player.vimeo.com/api/player.js",V="Vimeo",k=t=>t.replace("/manage/videos","");class l extends p.Component{constructor(){super(...arguments),i(this,"callPlayer",u.callPlayer),i(this,"duration",null),i(this,"currentTime",null),i(this,"secondsLoaded",null),i(this,"mute",()=>{this.setMuted(!0)}),i(this,"unmute",()=>{this.setMuted(!1)}),i(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){this.duration=null,(0,u.getSDK)(S,V).then(r=>{if(!this.container)return;const{playerOptions:a,title:o}=this.props.config;this.player=new r.Player(this.container,{url:k(e),autoplay:this.props.playing,muted:this.props.muted,loop:this.props.loop,playsinline:this.props.playsinline,controls:this.props.controls,...a}),this.player.ready().then(()=>{const s=this.container.querySelector("iframe");s.style.width="100%",s.style.height="100%",o&&(s.title=o)}).catch(this.props.onError),this.player.on("loaded",()=>{this.props.onReady(),this.refreshDuration()}),this.player.on("play",()=>{this.props.onPlay(),this.refreshDuration()}),this.player.on("pause",this.props.onPause),this.player.on("seeked",s=>this.props.onSeek(s.seconds)),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({seconds:s})=>{this.currentTime=s}),this.player.on("progress",({seconds:s})=>{this.secondsLoaded=s}),this.player.on("bufferstart",this.props.onBuffer),this.player.on("bufferend",this.props.onBufferEnd),this.player.on("playbackratechange",s=>this.props.onPlaybackRateChange(s.playbackRate))},this.props.onError)}refreshDuration(){this.player.getDuration().then(e=>{this.duration=e})}play(){const e=this.callPlayer("play");e&&e.catch(this.props.onError)}pause(){this.callPlayer("pause")}stop(){this.callPlayer("unload")}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setMuted(e){this.callPlayer("setMuted",e)}setLoop(e){this.callPlayer("setLoop",e)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const{display:e}=this.props,r={width:"100%",height:"100%",overflow:"hidden",display:e};return p.default.createElement("div",{key:this.props.url,ref:this.ref,style:r})}}i(l,"displayName","Vimeo");i(l,"canPlay",L.canPlay.vimeo);i(l,"forceLoad",!0);const T=d(y),R=P({__proto__:null,default:T},[y]);export{R as V}; diff --git a/build/assets/Wistia-0be26dcd.js b/build/assets/Wistia-c5e6d427.js similarity index 96% rename from build/assets/Wistia-0be26dcd.js rename to build/assets/Wistia-c5e6d427.js index 082af29c7..b7cb70e8e 100644 --- a/build/assets/Wistia-0be26dcd.js +++ b/build/assets/Wistia-c5e6d427.js @@ -1 +1 @@ -import{n as m,r as g}from"./index-21067c9d.js";import{u as v,p as w}from"./index-adad2e25.js";function O(t,e){for(var a=0;as[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var C=Object.create,i=Object.defineProperty,k=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,E=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty,R=(t,e,a)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,j=(t,e)=>{for(var a in e)i(t,a,{get:e[a],enumerable:!0})},h=(t,e,a,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of D(e))!S.call(t,r)&&r!==a&&i(t,r,{get:()=>e[r],enumerable:!(s=k(e,r))||s.enumerable});return t},I=(t,e,a)=>(a=t!=null?C(E(t)):{},h(e||!t||!t.__esModule?i(a,"default",{value:t,enumerable:!0}):a,t)),W=t=>h(i({},"__esModule",{value:!0}),t),n=(t,e,a)=>(R(t,typeof e!="symbol"?e+"":e,a),a),d={};j(d,{default:()=>l});var _=W(d),y=I(g),c=v,P=w;const M="https://fast.wistia.com/assets/external/E-v1.js",x="Wistia",A="wistia-player-";class l extends y.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${A}${(0,c.randomString)()}`),n(this,"onPlay",(...e)=>this.props.onPlay(...e)),n(this,"onPause",(...e)=>this.props.onPause(...e)),n(this,"onSeek",(...e)=>this.props.onSeek(...e)),n(this,"onEnded",(...e)=>this.props.onEnded(...e)),n(this,"onPlaybackRateChange",(...e)=>this.props.onPlaybackRateChange(...e)),n(this,"mute",()=>{this.callPlayer("mute")}),n(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:a,muted:s,controls:r,onReady:o,config:p,onError:b}=this.props;(0,c.getSDK)(M,x).then(f=>{p.customControls&&p.customControls.forEach(u=>f.defineControl(u)),window._wq=window._wq||[],window._wq.push({id:this.playerID,options:{autoPlay:a,silentAutoPlay:"allow",muted:s,controlsVisibleOnLoad:r,fullscreenButton:r,playbar:r,playbackRateControl:r,qualityControl:r,volumeControl:r,settingsControl:r,smallPlayButton:r,...p.options},onReady:u=>{this.player=u,this.unbind(),this.player.bind("play",this.onPlay),this.player.bind("pause",this.onPause),this.player.bind("seek",this.onSeek),this.player.bind("end",this.onEnded),this.player.bind("playbackratechange",this.onPlaybackRateChange),o()}})},b)}unbind(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.unbind(),this.callPlayer("remove")}seekTo(e,a=!0){this.callPlayer("time",e),a||this.pause()}setVolume(e){this.callPlayer("volume",e)}setPlaybackRate(e){this.callPlayer("playbackRate",e)}getDuration(){return this.callPlayer("duration")}getCurrentTime(){return this.callPlayer("time")}getSecondsLoaded(){return null}render(){const{url:e}=this.props,a=e&&e.match(P.MATCH_URL_WISTIA)[1],s=`wistia_embed wistia_async_${a}`,r={width:"100%",height:"100%"};return y.default.createElement("div",{id:this.playerID,key:a,className:s,style:r})}}n(l,"displayName","Wistia");n(l,"canPlay",P.canPlay.wistia);n(l,"loopOnEnded",!0);const L=m(_),$=O({__proto__:null,default:L},[_]);export{$ as W}; +import{n as m,r as g}from"./index-f50d1ab5.js";import{u as v,p as w}from"./index-73f6b088.js";function O(t,e){for(var a=0;as[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var C=Object.create,i=Object.defineProperty,k=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,E=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty,R=(t,e,a)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,j=(t,e)=>{for(var a in e)i(t,a,{get:e[a],enumerable:!0})},h=(t,e,a,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of D(e))!S.call(t,r)&&r!==a&&i(t,r,{get:()=>e[r],enumerable:!(s=k(e,r))||s.enumerable});return t},I=(t,e,a)=>(a=t!=null?C(E(t)):{},h(e||!t||!t.__esModule?i(a,"default",{value:t,enumerable:!0}):a,t)),W=t=>h(i({},"__esModule",{value:!0}),t),n=(t,e,a)=>(R(t,typeof e!="symbol"?e+"":e,a),a),d={};j(d,{default:()=>l});var _=W(d),y=I(g),c=v,P=w;const M="https://fast.wistia.com/assets/external/E-v1.js",x="Wistia",A="wistia-player-";class l extends y.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${A}${(0,c.randomString)()}`),n(this,"onPlay",(...e)=>this.props.onPlay(...e)),n(this,"onPause",(...e)=>this.props.onPause(...e)),n(this,"onSeek",(...e)=>this.props.onSeek(...e)),n(this,"onEnded",(...e)=>this.props.onEnded(...e)),n(this,"onPlaybackRateChange",(...e)=>this.props.onPlaybackRateChange(...e)),n(this,"mute",()=>{this.callPlayer("mute")}),n(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:a,muted:s,controls:r,onReady:o,config:p,onError:b}=this.props;(0,c.getSDK)(M,x).then(f=>{p.customControls&&p.customControls.forEach(u=>f.defineControl(u)),window._wq=window._wq||[],window._wq.push({id:this.playerID,options:{autoPlay:a,silentAutoPlay:"allow",muted:s,controlsVisibleOnLoad:r,fullscreenButton:r,playbar:r,playbackRateControl:r,qualityControl:r,volumeControl:r,settingsControl:r,smallPlayButton:r,...p.options},onReady:u=>{this.player=u,this.unbind(),this.player.bind("play",this.onPlay),this.player.bind("pause",this.onPause),this.player.bind("seek",this.onSeek),this.player.bind("end",this.onEnded),this.player.bind("playbackratechange",this.onPlaybackRateChange),o()}})},b)}unbind(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.unbind(),this.callPlayer("remove")}seekTo(e,a=!0){this.callPlayer("time",e),a||this.pause()}setVolume(e){this.callPlayer("volume",e)}setPlaybackRate(e){this.callPlayer("playbackRate",e)}getDuration(){return this.callPlayer("duration")}getCurrentTime(){return this.callPlayer("time")}getSecondsLoaded(){return null}render(){const{url:e}=this.props,a=e&&e.match(P.MATCH_URL_WISTIA)[1],s=`wistia_embed wistia_async_${a}`,r={width:"100%",height:"100%"};return y.default.createElement("div",{id:this.playerID,key:a,className:s,style:r})}}n(l,"displayName","Wistia");n(l,"canPlay",P.canPlay.wistia);n(l,"loopOnEnded",!0);const L=m(_),$=O({__proto__:null,default:L},[_]);export{$ as W}; diff --git a/build/assets/YouTube-6ce9a547.js b/build/assets/YouTube-06c47415.js similarity index 97% rename from build/assets/YouTube-6ce9a547.js rename to build/assets/YouTube-06c47415.js index b86de23a1..bbaa2e1a2 100644 --- a/build/assets/YouTube-6ce9a547.js +++ b/build/assets/YouTube-06c47415.js @@ -1 +1 @@ -import{n as U,r as I}from"./index-21067c9d.js";import{u as L,p as Y}from"./index-adad2e25.js";function k(a,e){for(var t=0;ts[r]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,u=Object.defineProperty,j=Object.getOwnPropertyDescriptor,N=Object.getOwnPropertyNames,V=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty,x=(a,e,t)=>e in a?u(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,K=(a,e)=>{for(var t in e)u(a,t,{get:e[t],enumerable:!0})},v=(a,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of N(e))!B.call(a,r)&&r!==t&&u(a,r,{get:()=>e[r],enumerable:!(s=j(e,r))||s.enumerable});return a},F=(a,e,t)=>(t=a!=null?M(V(a)):{},v(e||!a||!a.__esModule?u(t,"default",{value:a,enumerable:!0}):t,a)),H=a=>v(u({},"__esModule",{value:!0}),a),o=(a,e,t)=>(x(a,typeof e!="symbol"?e+"":e,t),t),w={};K(w,{default:()=>O});var S=H(w),m=F(I),p=L,D=Y;const G="https://www.youtube.com/iframe_api",T="YT",z="onYouTubeIframeAPIReady",f=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,b=/user\/([a-zA-Z0-9_-]+)\/?/,Q=/youtube-nocookie\.com/,Z="https://www.youtube-nocookie.com";class O extends m.Component{constructor(){super(...arguments),o(this,"callPlayer",p.callPlayer),o(this,"parsePlaylist",e=>{if(e instanceof Array)return{listType:"playlist",playlist:e.map(this.getID).join(",")};if(f.test(e)){const[,t]=e.match(f);return{listType:"playlist",list:t.replace(/^UC/,"UU")}}if(b.test(e)){const[,t]=e.match(b);return{listType:"user_uploads",list:t}}return{}}),o(this,"onStateChange",e=>{const{data:t}=e,{onPlay:s,onPause:r,onBuffer:n,onBufferEnd:P,onEnded:_,onReady:g,loop:y,config:{playerVars:l,onUnstarted:h}}=this.props,{UNSTARTED:d,PLAYING:c,PAUSED:i,BUFFERING:E,ENDED:A,CUED:C}=window[T].PlayerState;if(t===d&&h(),t===c&&(s(),P()),t===i&&r(),t===E&&n(),t===A){const R=!!this.callPlayer("getPlaylist");y&&!R&&(l.start?this.seekTo(l.start):this.play()),_()}t===C&&g()}),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unMute")}),o(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}getID(e){return!e||e instanceof Array||f.test(e)?null:e.match(D.MATCH_URL_YOUTUBE)[1]}load(e,t){const{playing:s,muted:r,playsinline:n,controls:P,loop:_,config:g,onError:y}=this.props,{playerVars:l,embedOptions:h}=g,d=this.getID(e);if(t){if(f.test(e)||b.test(e)||e instanceof Array){this.player.loadPlaylist(this.parsePlaylist(e));return}this.player.cueVideoById({videoId:d,startSeconds:(0,p.parseStartTime)(e)||l.start,endSeconds:(0,p.parseEndTime)(e)||l.end});return}(0,p.getSDK)(G,T,z,c=>c.loaded).then(c=>{this.container&&(this.player=new c.Player(this.container,{width:"100%",height:"100%",videoId:d,playerVars:{autoplay:s?1:0,mute:r?1:0,controls:P?1:0,start:(0,p.parseStartTime)(e),end:(0,p.parseEndTime)(e),origin:window.location.origin,playsinline:n?1:0,...this.parsePlaylist(e),...l},events:{onReady:()=>{_&&this.player.setLoop(!0),this.props.onReady()},onPlaybackRateChange:i=>this.props.onPlaybackRateChange(i.data),onPlaybackQualityChange:i=>this.props.onPlaybackQualityChange(i),onStateChange:this.onStateChange,onError:i=>y(i.data)},host:Q.test(e)?Z:void 0,...h}))},y),h.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer’s callback props instead, eg onReady, onPlay, onPause")}play(){this.callPlayer("playVideo")}pause(){this.callPlayer("pauseVideo")}stop(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}seekTo(e,t=!1){this.callPlayer("seekTo",e),!t&&!this.props.playing&&this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return m.default.createElement("div",{style:t},m.default.createElement("div",{ref:this.ref}))}}o(O,"displayName","YouTube");o(O,"canPlay",D.canPlay.youtube);const $=U(S),W=k({__proto__:null,default:$},[S]);export{W as Y}; +import{n as U,r as I}from"./index-f50d1ab5.js";import{u as L,p as Y}from"./index-73f6b088.js";function k(a,e){for(var t=0;ts[r]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,u=Object.defineProperty,j=Object.getOwnPropertyDescriptor,N=Object.getOwnPropertyNames,V=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty,x=(a,e,t)=>e in a?u(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,K=(a,e)=>{for(var t in e)u(a,t,{get:e[t],enumerable:!0})},v=(a,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of N(e))!B.call(a,r)&&r!==t&&u(a,r,{get:()=>e[r],enumerable:!(s=j(e,r))||s.enumerable});return a},F=(a,e,t)=>(t=a!=null?M(V(a)):{},v(e||!a||!a.__esModule?u(t,"default",{value:a,enumerable:!0}):t,a)),H=a=>v(u({},"__esModule",{value:!0}),a),o=(a,e,t)=>(x(a,typeof e!="symbol"?e+"":e,t),t),w={};K(w,{default:()=>O});var S=H(w),m=F(I),p=L,D=Y;const G="https://www.youtube.com/iframe_api",T="YT",z="onYouTubeIframeAPIReady",f=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,b=/user\/([a-zA-Z0-9_-]+)\/?/,Q=/youtube-nocookie\.com/,Z="https://www.youtube-nocookie.com";class O extends m.Component{constructor(){super(...arguments),o(this,"callPlayer",p.callPlayer),o(this,"parsePlaylist",e=>{if(e instanceof Array)return{listType:"playlist",playlist:e.map(this.getID).join(",")};if(f.test(e)){const[,t]=e.match(f);return{listType:"playlist",list:t.replace(/^UC/,"UU")}}if(b.test(e)){const[,t]=e.match(b);return{listType:"user_uploads",list:t}}return{}}),o(this,"onStateChange",e=>{const{data:t}=e,{onPlay:s,onPause:r,onBuffer:n,onBufferEnd:P,onEnded:_,onReady:g,loop:y,config:{playerVars:l,onUnstarted:h}}=this.props,{UNSTARTED:d,PLAYING:c,PAUSED:i,BUFFERING:E,ENDED:A,CUED:C}=window[T].PlayerState;if(t===d&&h(),t===c&&(s(),P()),t===i&&r(),t===E&&n(),t===A){const R=!!this.callPlayer("getPlaylist");y&&!R&&(l.start?this.seekTo(l.start):this.play()),_()}t===C&&g()}),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unMute")}),o(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}getID(e){return!e||e instanceof Array||f.test(e)?null:e.match(D.MATCH_URL_YOUTUBE)[1]}load(e,t){const{playing:s,muted:r,playsinline:n,controls:P,loop:_,config:g,onError:y}=this.props,{playerVars:l,embedOptions:h}=g,d=this.getID(e);if(t){if(f.test(e)||b.test(e)||e instanceof Array){this.player.loadPlaylist(this.parsePlaylist(e));return}this.player.cueVideoById({videoId:d,startSeconds:(0,p.parseStartTime)(e)||l.start,endSeconds:(0,p.parseEndTime)(e)||l.end});return}(0,p.getSDK)(G,T,z,c=>c.loaded).then(c=>{this.container&&(this.player=new c.Player(this.container,{width:"100%",height:"100%",videoId:d,playerVars:{autoplay:s?1:0,mute:r?1:0,controls:P?1:0,start:(0,p.parseStartTime)(e),end:(0,p.parseEndTime)(e),origin:window.location.origin,playsinline:n?1:0,...this.parsePlaylist(e),...l},events:{onReady:()=>{_&&this.player.setLoop(!0),this.props.onReady()},onPlaybackRateChange:i=>this.props.onPlaybackRateChange(i.data),onPlaybackQualityChange:i=>this.props.onPlaybackQualityChange(i),onStateChange:this.onStateChange,onError:i=>y(i.data)},host:Q.test(e)?Z:void 0,...h}))},y),h.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer’s callback props instead, eg onReady, onPlay, onPause")}play(){this.callPlayer("playVideo")}pause(){this.callPlayer("pauseVideo")}stop(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}seekTo(e,t=!1){this.callPlayer("seekTo",e),!t&&!this.props.playing&&this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return m.default.createElement("div",{style:t},m.default.createElement("div",{ref:this.ref}))}}o(O,"displayName","YouTube");o(O,"canPlay",D.canPlay.youtube);const $=U(S),W=k({__proto__:null,default:$},[S]);export{W as Y}; diff --git a/build/assets/createSvgIcon-b719273b.js b/build/assets/createSvgIcon-c64a52be.js similarity index 97% rename from build/assets/createSvgIcon-b719273b.js rename to build/assets/createSvgIcon-c64a52be.js index 0d599a92f..a2af10e5e 100644 --- a/build/assets/createSvgIcon-b719273b.js +++ b/build/assets/createSvgIcon-c64a52be.js @@ -1 +1 @@ -import{b as I,g as C,s as w,e as f,r as v,u as R,a as b,_ as g,j as S,c as j,d as N}from"./index-21067c9d.js";function A(o){return I("MuiSvgIcon",o)}C("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const B=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],M=o=>{const{color:e,fontSize:t,classes:i}=o,n={root:["root",e!=="inherit"&&`color${f(e)}`,`fontSize${f(t)}`]};return N(n,A,i)},T=w("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:t}=o;return[e.root,t.color!=="inherit"&&e[`color${f(t.color)}`],e[`fontSize${f(t.fontSize)}`]]}})(({theme:o,ownerState:e})=>{var t,i,n,u,m,a,h,p,d,r,s,c,l;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(t=o.transitions)==null||(i=t.create)==null?void 0:i.call(t,"fill",{duration:(n=o.transitions)==null||(n=n.duration)==null?void 0:n.shorter}),fontSize:{inherit:"inherit",small:((u=o.typography)==null||(m=u.pxToRem)==null?void 0:m.call(u,20))||"1.25rem",medium:((a=o.typography)==null||(h=a.pxToRem)==null?void 0:h.call(a,24))||"1.5rem",large:((p=o.typography)==null||(d=p.pxToRem)==null?void 0:d.call(p,35))||"2.1875rem"}[e.fontSize],color:(r=(s=(o.vars||o).palette)==null||(s=s[e.color])==null?void 0:s.main)!=null?r:{action:(c=(o.vars||o).palette)==null||(c=c.action)==null?void 0:c.active,disabled:(l=(o.vars||o).palette)==null||(l=l.action)==null?void 0:l.disabled,inherit:void 0}[e.color]}}),_=v.forwardRef(function(e,t){const i=R({props:e,name:"MuiSvgIcon"}),{children:n,className:u,color:m="inherit",component:a="svg",fontSize:h="medium",htmlColor:p,inheritViewBox:d=!1,titleAccess:r,viewBox:s="0 0 24 24"}=i,c=b(i,B),l=v.isValidElement(n)&&n.type==="svg",y=g({},i,{color:m,component:a,fontSize:h,instanceFontSize:e.fontSize,inheritViewBox:d,viewBox:s,hasSvgAsChild:l}),x={};d||(x.viewBox=s);const z=M(y);return S.jsxs(T,g({as:a,className:j(z.root,u),focusable:"false",color:p,"aria-hidden":r?void 0:!0,role:r?"img":void 0,ref:t},x,c,l&&n.props,{ownerState:y,children:[l?n.props.children:n,r?S.jsx("title",{children:r}):null]}))});_.muiName="SvgIcon";const $=_;function U(o,e){function t(i,n){return S.jsx($,g({"data-testid":`${e}Icon`,ref:n},i,{children:o}))}return t.muiName=$.muiName,v.memo(v.forwardRef(t))}export{U as c}; +import{b as I,g as C,s as w,e as f,r as v,u as R,a as b,_ as g,j as S,c as j,d as N}from"./index-f50d1ab5.js";function A(o){return I("MuiSvgIcon",o)}C("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const B=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],M=o=>{const{color:e,fontSize:t,classes:i}=o,n={root:["root",e!=="inherit"&&`color${f(e)}`,`fontSize${f(t)}`]};return N(n,A,i)},T=w("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:t}=o;return[e.root,t.color!=="inherit"&&e[`color${f(t.color)}`],e[`fontSize${f(t.fontSize)}`]]}})(({theme:o,ownerState:e})=>{var t,i,n,u,m,a,h,p,d,r,s,c,l;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(t=o.transitions)==null||(i=t.create)==null?void 0:i.call(t,"fill",{duration:(n=o.transitions)==null||(n=n.duration)==null?void 0:n.shorter}),fontSize:{inherit:"inherit",small:((u=o.typography)==null||(m=u.pxToRem)==null?void 0:m.call(u,20))||"1.25rem",medium:((a=o.typography)==null||(h=a.pxToRem)==null?void 0:h.call(a,24))||"1.5rem",large:((p=o.typography)==null||(d=p.pxToRem)==null?void 0:d.call(p,35))||"2.1875rem"}[e.fontSize],color:(r=(s=(o.vars||o).palette)==null||(s=s[e.color])==null?void 0:s.main)!=null?r:{action:(c=(o.vars||o).palette)==null||(c=c.action)==null?void 0:c.active,disabled:(l=(o.vars||o).palette)==null||(l=l.action)==null?void 0:l.disabled,inherit:void 0}[e.color]}}),_=v.forwardRef(function(e,t){const i=R({props:e,name:"MuiSvgIcon"}),{children:n,className:u,color:m="inherit",component:a="svg",fontSize:h="medium",htmlColor:p,inheritViewBox:d=!1,titleAccess:r,viewBox:s="0 0 24 24"}=i,c=b(i,B),l=v.isValidElement(n)&&n.type==="svg",y=g({},i,{color:m,component:a,fontSize:h,instanceFontSize:e.fontSize,inheritViewBox:d,viewBox:s,hasSvgAsChild:l}),x={};d||(x.viewBox=s);const z=M(y);return S.jsxs(T,g({as:a,className:j(z.root,u),focusable:"false",color:p,"aria-hidden":r?void 0:!0,role:r?"img":void 0,ref:t},x,c,l&&n.props,{ownerState:y,children:[l?n.props.children:n,r?S.jsx("title",{children:r}):null]}))});_.muiName="SvgIcon";const $=_;function U(o,e){function t(i,n){return S.jsx($,g({"data-testid":`${e}Icon`,ref:n},i,{children:o}))}return t.muiName=$.muiName,v.memo(v.forwardRef(t))}export{U as c}; diff --git a/build/assets/index-97de25c0.js b/build/assets/index-1130cd3a.js similarity index 52% rename from build/assets/index-97de25c0.js rename to build/assets/index-1130cd3a.js index d5c6e25d9..cff832395 100644 --- a/build/assets/index-97de25c0.js +++ b/build/assets/index-1130cd3a.js @@ -1,4 +1,4 @@ -import{r as p,a8 as T,j as e,F as x,bg as I,o as n,T as v,O as _,y as L,q as A,bj as F}from"./index-21067c9d.js";import{j as B,h as E,F as N,B as M}from"./index-93bc2f63.js";import{B as O}from"./index-54401641.js";import{u as w}from"./index-9a45d929.js";import{S as k,A as z,N as D,F as P,b as Y,I as R}from"./NodeCircleIcon-a8e305b7.js";import{A as X,O as H,T as W}from"./index-f870d337.js";import{C as q}from"./ClipLoader-19a8277d.js";import"./index-aac659dd.js";import"./Stack-dbe00046.js";import"./useSlotProps-f54e8b6d.js";import"./Popover-8ff60b97.js";import"./createSvgIcon-b719273b.js";import"./TextareaAutosize-9f8d1e37.js";const U=({topicId:s,onSelect:r,selectedValue:d,dataId:c})=>{const[u,h]=p.useState([]),[g,f]=p.useState(!1),j=p.useMemo(()=>{const o=async i=>{const m={is_muted:"False",sort_by:z,search:i,skip:"0",limit:"1000"};f(!0);try{const C=(await I(m.search)).data.filter(y=>(y==null?void 0:y.ref_id)!==s);h(C)}catch{h([])}finally{f(!1)}};return T.debounce(o,300)},[s]),a=o=>{const i=o.trim();if(!i){h([]);return}i.length>2&&j(o)},b=o=>{const i=o?u.find(m=>m.ref_id===o.value):null;r(i||null)},t=o=>({label:o.search_value,value:o.ref_id,type:o.node_type}),S=o=>o.map(t);return d?e.jsxs(x,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:d.search_value}),e.jsx(k,{onClick:()=>r(null),size:"medium",children:e.jsx(B,{})})]}):e.jsx(X,{dataId:c,handleInputChange:a,isLoading:g,onSelect:b,options:S(u)||H,selectedValue:d?t(d):null})},$=({from:s,onSelect:r,selectedToNode:d,isSwapped:c,setIsSwapped:u})=>e.jsxs(x,{mb:20,children:[e.jsx(x,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(x,{align:"center",direction:"row",children:e.jsx(G,{children:"Merge topic"})})}),e.jsxs(Q,{swap:c,children:[e.jsx(J,{children:e.jsx(V,{disabled:!0,label:c?"To":"From",swap:c,value:s==null?void 0:s.name})}),e.jsxs(x,{my:16,children:[e.jsx(ee,{children:"Type"}),e.jsx(v,{children:"IS ALIAS"})]}),e.jsx(x,{"data-testid":"to-section-container",children:e.jsxs(Z,{children:[e.jsx(te,{children:c?"From":"To"}),e.jsx(U,{dataId:"to-node",onSelect:r,selectedValue:d,topicId:s==null?void 0:s.ref_id})]})}),e.jsxs(K,{children:[e.jsx(oe,{children:e.jsx(D,{})}),e.jsx(se,{"data-testid":"swap-icon",onClick:u,children:e.jsx(P,{})}),e.jsx(ne,{children:e.jsx(Y,{})})]})]})]}),G=n(v)` +import{r as p,a8 as T,j as e,F as x,bg as I,o as n,T as v,O as _,y as L,q as A,bj as F}from"./index-f50d1ab5.js";import{k as B,i as E,F as N,B as k}from"./index-f857b04d.js";import{B as M}from"./index-cc30c812.js";import{u as w}from"./index-3886dc98.js";import{S as O,A as z,N as D,F as P,b as Y,I as R}from"./NodeCircleIcon-b9d0958d.js";import{A as X,O as H,T as W}from"./index-f812334e.js";import{C as q}from"./ClipLoader-f52b169b.js";import"./Stack-a4065033.js";import"./useSlotProps-f1483ce3.js";import"./Popover-a7534715.js";import"./createSvgIcon-c64a52be.js";import"./TextareaAutosize-04e2890c.js";const U=({topicId:s,onSelect:r,selectedValue:d,dataId:c})=>{const[u,h]=p.useState([]),[g,f]=p.useState(!1),j=p.useMemo(()=>{const o=async i=>{const m={is_muted:"False",sort_by:z,search:i,skip:"0",limit:"1000"};f(!0);try{const C=(await I(m.search)).data.filter(y=>(y==null?void 0:y.ref_id)!==s);h(C)}catch{h([])}finally{f(!1)}};return T.debounce(o,300)},[s]),a=o=>{const i=o.trim();if(!i){h([]);return}i.length>2&&j(o)},b=o=>{const i=o?u.find(m=>m.ref_id===o.value):null;r(i||null)},t=o=>({label:o.search_value,value:o.ref_id,type:o.node_type}),S=o=>o.map(t);return d?e.jsxs(x,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:d.search_value}),e.jsx(O,{onClick:()=>r(null),size:"medium",children:e.jsx(B,{})})]}):e.jsx(X,{dataId:c,handleInputChange:a,isLoading:g,onSelect:b,options:S(u)||H,selectedValue:d?t(d):null})},$=({from:s,onSelect:r,selectedToNode:d,isSwapped:c,setIsSwapped:u})=>e.jsxs(x,{mb:20,children:[e.jsx(x,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(x,{align:"center",direction:"row",children:e.jsx(G,{children:"Merge topic"})})}),e.jsxs(Q,{swap:c,children:[e.jsx(J,{children:e.jsx(V,{disabled:!0,label:c?"To":"From",swap:c,value:s==null?void 0:s.name})}),e.jsxs(x,{my:16,children:[e.jsx(ee,{children:"Type"}),e.jsx(v,{children:"IS ALIAS"})]}),e.jsx(x,{"data-testid":"to-section-container",children:e.jsxs(Z,{children:[e.jsx(te,{children:c?"From":"To"}),e.jsx(U,{dataId:"to-node",onSelect:r,selectedValue:d,topicId:s==null?void 0:s.ref_id})]})}),e.jsxs(K,{children:[e.jsx(oe,{children:e.jsx(D,{})}),e.jsx(se,{"data-testid":"swap-icon",onClick:u,children:e.jsx(P,{})}),e.jsx(ne,{children:e.jsx(Y,{})})]})]})]}),G=n(v)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; @@ -87,9 +87,9 @@ import{r as p,a8 as T,j as e,F as x,bg as I,o as n,T as v,O as _,y as L,q as A,b transform: translateY(10px) translateX(3px); color: #6b7a8d; line-height: 1; -`,Se=()=>{const{close:s}=_("mergeToNode"),[r,d,c]=w(l=>[l.data,l.ids,l.total]),u=E({mode:"onChange"}),[h,g]=p.useState(!1),[f,j]=p.useState(!1),[a,b]=p.useState(null),[t,S]=p.useState(),o=L();p.useEffect(()=>{o&&S(o)},[o]);const i=()=>{b(null),s()},m=async()=>{if(!(!a||!r)){g(!0);try{await F({from:t==null?void 0:t.ref_id,to:a==null?void 0:a.ref_id}),t!=null&&t.ref_id&&(r[t==null?void 0:t.ref_id]={...r[t==null?void 0:t.ref_id],edgeList:[R],edgeCount:r[t==null?void 0:t.ref_id].edgeCount-1},w.setState({ids:d.filter(l=>l!==a.ref_id),total:c-1})),i()}catch(l){console.warn(l)}finally{g(!1)}}};return e.jsx(O,{id:"mergeToNode",kind:"small",onClose:i,preventOutsideClose:!0,children:e.jsxs(N,{...u,children:[e.jsx($,{from:t,isSwapped:f,onSelect:b,selectedToNode:a,setIsSwapped:()=>j(!f)}),e.jsxs(re,{color:"secondary","data-testid":"merge-topics-button",disabled:h||!a,onClick:m,size:"large",variant:"contained",children:["Merge topics",h&&e.jsx(ae,{children:e.jsx(q,{color:A.BLUE_PRESS_STATE,size:12})})]})]})})},re=n(M)` +`,je=()=>{const{close:s}=_("mergeToNode"),[r,d,c]=w(l=>[l.data,l.ids,l.total]),u=E({mode:"onChange"}),[h,g]=p.useState(!1),[f,j]=p.useState(!1),[a,b]=p.useState(null),[t,S]=p.useState(),o=L();p.useEffect(()=>{o&&S(o)},[o]);const i=()=>{b(null),s()},m=async()=>{if(!(!a||!r)){g(!0);try{await F({from:t==null?void 0:t.ref_id,to:a==null?void 0:a.ref_id}),t!=null&&t.ref_id&&(r[t==null?void 0:t.ref_id]={...r[t==null?void 0:t.ref_id],edgeList:[R],edgeCount:r[t==null?void 0:t.ref_id].edgeCount-1},w.setState({ids:d.filter(l=>l!==a.ref_id),total:c-1})),i()}catch(l){console.warn(l)}finally{g(!1)}}};return e.jsx(M,{id:"mergeToNode",kind:"small",onClose:i,preventOutsideClose:!0,children:e.jsxs(N,{...u,children:[e.jsx($,{from:t,isSwapped:f,onSelect:b,selectedToNode:a,setIsSwapped:()=>j(!f)}),e.jsxs(re,{color:"secondary","data-testid":"merge-topics-button",disabled:h||!a,onClick:m,size:"large",variant:"contained",children:["Merge topics",h&&e.jsx(ae,{children:e.jsx(q,{color:A.BLUE_PRESS_STATE,size:12})})]})]})})},re=n(k)` width: 293px !important; margin: 0 0 10px auto !important; `,ae=n.span` margin-top: 2px; -`;export{Se as MergeNodeModal}; +`;export{je as MergeNodeModal}; diff --git a/build/assets/index-584de0f7.js b/build/assets/index-26c7ce89.js similarity index 99% rename from build/assets/index-584de0f7.js rename to build/assets/index-26c7ce89.js index 3f7555436..dc30169e5 100644 --- a/build/assets/index-584de0f7.js +++ b/build/assets/index-26c7ce89.js @@ -1,4 +1,4 @@ -import{r as P,n as Cc,_ as yi,bt as _c,bu as ed,j as L,R as td,p as nd,q as Ki,bv as rd,bw as id,bx as od}from"./index-21067c9d.js";import{a5 as fl,u as Vl,a6 as ad,U as ld,z as Ec,t as sd,C as io,a7 as ud,a2 as Zl,P as Ql,q as da,a8 as dl,a9 as cd,aa as fd,ab as dd,y as hd,ac as pd,ad as vd,ae as md,V as st,a as Nr,af as gd,b as yd,k as Xl,X as pa,ag as Tc,K as Ul,ah as Rl,ai as pi,aj as xd,Y as Yl,S as wd,ak as Fl,al as Fu,p as Sd,am as Cd,r as oo,x as xi,an as Mc,O as kc,s as _d,o as Ed,ao as Td,ap as Md,l as kd,L as Au,j as Pd,aq as Ld,ar as Ud,as as Rd,at as Jl,au as Du,av as Ir,aw as Fd,ax as hl}from"./three.module-2ce81f73.js";import{r as _t,b as Ad}from"./index-93bc2f63.js";var Pc={exports:{}},Gr={};/** +import{r as P,n as Cc,_ as yi,bt as _c,bu as ed,j as L,R as td,p as nd,q as Ki,bv as rd,bw as id,bx as od}from"./index-f50d1ab5.js";import{a5 as fl,u as Vl,a6 as ad,U as ld,z as Ec,t as sd,C as io,a7 as ud,a2 as Zl,P as Ql,q as da,a8 as dl,a9 as cd,aa as fd,ab as dd,y as hd,ac as pd,ad as vd,ae as md,V as st,a as Nr,af as gd,b as yd,k as Xl,X as pa,ag as Tc,K as Ul,ah as Rl,ai as pi,aj as xd,Y as Yl,S as wd,ak as Fl,al as Fu,p as Sd,am as Cd,r as oo,x as xi,an as Mc,O as kc,s as _d,o as Ed,ao as Td,ap as Md,l as kd,L as Au,j as Pd,aq as Ld,ar as Ud,as as Rd,at as Jl,au as Du,av as Ir,aw as Fd,ax as hl}from"./three.module-2ce81f73.js";import{r as _t,c as Ad}from"./index-f857b04d.js";var Pc={exports:{}},Gr={};/** * @license React * react-reconciler-constants.production.min.js * diff --git a/build/assets/index-c101d01d.js b/build/assets/index-2818a813.js similarity index 64% rename from build/assets/index-c101d01d.js rename to build/assets/index-2818a813.js index 4d0841d89..934e7e925 100644 --- a/build/assets/index-c101d01d.js +++ b/build/assets/index-2818a813.js @@ -1 +1 @@ -import{p as o}from"./index-21067c9d.js";const n=()=>{const{simulation:s,simulationHelpers:e}=o(r=>r);return{nodes:(s==null?void 0:s.nodes())||[],links:e.getLinks()}};export{n as u}; +import{p as o}from"./index-f50d1ab5.js";const n=()=>{const{simulation:s,simulationHelpers:e}=o(r=>r);return{nodes:(s==null?void 0:s.nodes())||[],links:e.getLinks()}};export{n as u}; diff --git a/build/assets/index-837b4b05.js b/build/assets/index-2ce49eeb.js similarity index 74% rename from build/assets/index-837b4b05.js rename to build/assets/index-2ce49eeb.js index 418e7edd2..e699038e8 100644 --- a/build/assets/index-837b4b05.js +++ b/build/assets/index-2ce49eeb.js @@ -1,4 +1,4 @@ -import{o as v,q,T as F,F as n,r as x,j as e,aW as J,b8 as $,C as K,y as U,b9 as Q,O as D,aV as z,bk as X,bn as Z}from"./index-21067c9d.js";import{g as V,B as E,h as N,F as ee}from"./index-93bc2f63.js";import{B as te}from"./index-54401641.js";import{T as re}from"./index-de7da582.js";import{p as W}from"./index-44e303ef.js";import{n as ne,A as G}from"./index-f870d337.js";import{C as Y}from"./ClipLoader-19a8277d.js";import{c as oe}from"./index-64f1c910.js";import"./index.esm-9353033f.js";import"./InfoIcon-473ded19.js";import"./three.module-2ce81f73.js";import"./index-aac659dd.js";import"./Stack-dbe00046.js";import"./useSlotProps-f54e8b6d.js";import"./Popover-8ff60b97.js";import"./createSvgIcon-b719273b.js";import"./TextareaAutosize-9f8d1e37.js";const M=s=>s.charAt(0).toUpperCase()+s.slice(1).replace(/_/g," "),k=s=>s?[...s].sort((l,m)=>Number(m.required)-Number(l.required)):[],H=s=>s?s.filter(l=>l.key!=="node_key"):[],se=({handleSelectType:s,skipToStep:l,nodeType:m,selectedValues:r})=>{const[f,w]=x.useState(!1),[h,C]=x.useState(),{watch:j,formState:{isValid:t}}=V();x.useEffect(()=>{(async()=>{w(!0);const o=await $(m),T=W(o),A=H(T);C(A),w(!1)})()},[m,j]);const a=c=>c.charAt(0).toUpperCase()+c.slice(1).replace(/_/g," "),p=(h?[...h].sort((c,o)=>c.required&&!o.required?-1:!c.required&&o.required?1:0):[]).filter(c=>!!(c.required&&!Object.values(r).includes(c.key))),S=()=>{s(""),l("sourceType")},b=!t||f||p.some(c=>{var o;return c.required&&!((o=j(c.key))!=null&&o.trim())});return e.jsxs(n,{children:[e.jsx(n,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(n,{align:"center",direction:"row",children:e.jsx(ae,{children:"Required Properties"})})}),e.jsx(ie,{children:f?e.jsx(n,{style:{margin:"auto"},children:e.jsx(Y,{color:q.SECONDARY_BLUE})}):e.jsx(n,{className:"input__wrapper",children:p==null?void 0:p.map(({key:c,required:o})=>e.jsx(e.Fragment,{children:e.jsxs(ce,{children:[e.jsx(F,{children:a(c)}),e.jsx(re,{id:"item-name",maxLength:50,name:c,placeholder:o?"Required":"Optional",rules:{...o?{...J,pattern:{message:"No leading whitespace allowed",value:ne}}:{}}})]})}))})}),e.jsxs(n,{direction:"row",children:[e.jsx(n,{grow:1,children:e.jsx(E,{color:"secondary",onClick:S,size:"large",variant:"contained",children:"Prev"})}),e.jsx(n,{grow:1,ml:20,children:e.jsx(E,{color:"secondary",disabled:b,onClick:()=>l("createConfirmation"),size:"large",variant:"contained",children:"Next"})})]})]})},ae=v(F)` +import{o as v,q,T as F,F as n,r as x,j as e,aW as J,b8 as $,C as K,y as U,b9 as Q,O as D,aV as z,bk as X,bn as Z}from"./index-f50d1ab5.js";import{h as V,B as E,i as N,F as ee}from"./index-f857b04d.js";import{B as te}from"./index-cc30c812.js";import{T as re}from"./index-bd1e0bc6.js";import{p as W}from"./index-44e303ef.js";import{n as ne,A as G}from"./index-f812334e.js";import{C as Y}from"./ClipLoader-f52b169b.js";import{c as oe}from"./index-64f1c910.js";import"./index.esm-22240fd2.js";import"./InfoIcon-89f3f76d.js";import"./three.module-2ce81f73.js";import"./Stack-a4065033.js";import"./useSlotProps-f1483ce3.js";import"./Popover-a7534715.js";import"./createSvgIcon-c64a52be.js";import"./TextareaAutosize-04e2890c.js";const M=s=>s.charAt(0).toUpperCase()+s.slice(1).replace(/_/g," "),k=s=>s?[...s].sort((l,m)=>Number(m.required)-Number(l.required)):[],H=s=>s?s.filter(l=>l.key!=="node_key"):[],se=({handleSelectType:s,skipToStep:l,nodeType:m,selectedValues:r})=>{const[f,w]=x.useState(!1),[h,C]=x.useState(),{watch:j,formState:{isValid:t}}=V();x.useEffect(()=>{(async()=>{w(!0);const o=await $(m),T=W(o),A=H(T);C(A),w(!1)})()},[m,j]);const a=c=>c.charAt(0).toUpperCase()+c.slice(1).replace(/_/g," "),p=(h?[...h].sort((c,o)=>c.required&&!o.required?-1:!c.required&&o.required?1:0):[]).filter(c=>!!(c.required&&!Object.values(r).includes(c.key))),S=()=>{s(""),l("sourceType")},b=!t||f||p.some(c=>{var o;return c.required&&!((o=j(c.key))!=null&&o.trim())});return e.jsxs(n,{children:[e.jsx(n,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(n,{align:"center",direction:"row",children:e.jsx(ae,{children:"Required Properties"})})}),e.jsx(ie,{children:f?e.jsx(n,{style:{margin:"auto"},children:e.jsx(Y,{color:q.SECONDARY_BLUE})}):e.jsx(n,{className:"input__wrapper",children:p==null?void 0:p.map(({key:c,required:o})=>e.jsx(e.Fragment,{children:e.jsxs(ce,{children:[e.jsx(F,{children:a(c)}),e.jsx(re,{id:"item-name",maxLength:50,name:c,placeholder:o?"Required":"Optional",rules:{...o?{...J,pattern:{message:"No leading whitespace allowed",value:ne}}:{}}})]})}))})}),e.jsxs(n,{direction:"row",children:[e.jsx(n,{grow:1,children:e.jsx(E,{color:"secondary",onClick:S,size:"large",variant:"contained",children:"Prev"})}),e.jsx(n,{grow:1,ml:20,children:e.jsx(E,{color:"secondary",disabled:b,onClick:()=>l("createConfirmation"),size:"large",variant:"contained",children:"Next"})})]})]})},ae=v(F)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; @@ -74,4 +74,4 @@ import{o as v,q,T as F,F as n,r as x,j as e,aW as J,b8 as $,C as K,y as U,b9 as font-size: 22px; font-weight: 600; font-family: 'Barlow'; -`,we=async(s,l,m,r)=>{const f={},w=[];Object.entries(m).forEach(([t,a])=>{a!=="none"&&(f[a]=t),t!==a&&w.push(t)});const h={};Object.keys(r||{}).forEach(t=>{const a=r==null?void 0:r[t];Object.entries(f).forEach(([i,p])=>{p===t&&(h[f[i]]=a)})}),Object.keys(s).forEach(t=>{t!=="nodeType"&&(h[t]=s[t])});const C=r?r.node_type.charAt(0).toUpperCase()+r.node_type.slice(1):void 0,j={node_type:l,node_data:h,properties_to_be_deleted:w,type_to_be_deleted:C?[C]:[]};try{let t=r==null?void 0:r.ref_id;if((r==null?void 0:r.type)==="topic"){const{data:i}=await X({search:r==null?void 0:r.name}),p=i.find(S=>S.name===r.name);t=p==null?void 0:p.ref_id}const a=t||(r==null?void 0:r.ref_id);a&&await Z(a,j)}catch(t){console.error(t);let a=z;if(t.status===400)try{const i=await t.json();a=i.message||i.errorCode||(i==null?void 0:i.status)||z}catch{a=z}else t instanceof Error&&(a=t.message);throw new Error(a)}},ke=()=>{const[s,l]=x.useState("sourceType"),{close:m,visible:r}=D("changeNodeType"),{open:f}=D("editNodeName"),{open:w}=D("addType"),h=N({mode:"onChange"}),{watch:C,setValue:j,reset:t}=h,[a,i]=x.useState(""),[p,S]=x.useState({});x.useEffect(()=>()=>{l("sourceType"),t()},[r,t]);const b=U(),c=b!=null&&b.node_type?b.node_type.charAt(0).toUpperCase()+b.node_type.slice(1):"",o=C("nodeType");C("title");const T=()=>{m()},A=_=>{l(_)},d=h.handleSubmit(async _=>{try{await we(_,o,p,b),T()}catch(P){let L=z;if(T(),(P==null?void 0:P.status)===400){const B=await P.json();L=B.errorCode||(B==null?void 0:B.status)||z}else P instanceof Error&&(L=P.message);i(String(L))}}),u=_=>{_==="Create custom type"?w():j("nodeType",_)},y={sourceType:e.jsx(je,{allowNextStep:!!o,onSelectType:u,selectedType:o,skipToStep:A}),requiredProperties:e.jsx(se,{handleSelectType:u,nodeType:o,selectedValues:p,skipToStep:A}),createConfirmation:e.jsx(le,{nodeType:o,onclose:T,selectedNodeType:c}),mapProperties:e.jsx(pe,{handleSelectType:u,nodeType:o,selectedNodeType:c,selectedValues:p,setSelectedValues:S,skipToStep:A})},g=s==="mapProperties"?"regular":"small",O=()=>{m(),f()};return e.jsx(te,{id:"changeNodeType",kind:g,onClose:O,preventOutsideClose:!0,children:e.jsx(ee,{...h,children:e.jsx("form",{id:"add-node-form",onSubmit:d,children:y[s]})})})};export{ke as ChangeNodeTypeModal}; +`,we=async(s,l,m,r)=>{const f={},w=[];Object.entries(m).forEach(([t,a])=>{a!=="none"&&(f[a]=t),t!==a&&w.push(t)});const h={};Object.keys(r||{}).forEach(t=>{const a=r==null?void 0:r[t];Object.entries(f).forEach(([i,p])=>{p===t&&(h[f[i]]=a)})}),Object.keys(s).forEach(t=>{t!=="nodeType"&&(h[t]=s[t])});const C=r?r.node_type.charAt(0).toUpperCase()+r.node_type.slice(1):void 0,j={node_type:l,node_data:h,properties_to_be_deleted:w,type_to_be_deleted:C?[C]:[]};try{let t=r==null?void 0:r.ref_id;if((r==null?void 0:r.type)==="topic"){const{data:i}=await X({search:r==null?void 0:r.name}),p=i.find(S=>S.name===r.name);t=p==null?void 0:p.ref_id}const a=t||(r==null?void 0:r.ref_id);a&&await Z(a,j)}catch(t){console.error(t);let a=z;if(t.status===400)try{const i=await t.json();a=i.message||i.errorCode||(i==null?void 0:i.status)||z}catch{a=z}else t instanceof Error&&(a=t.message);throw new Error(a)}},Re=()=>{const[s,l]=x.useState("sourceType"),{close:m,visible:r}=D("changeNodeType"),{open:f}=D("editNodeName"),{open:w}=D("addType"),h=N({mode:"onChange"}),{watch:C,setValue:j,reset:t}=h,[a,i]=x.useState(""),[p,S]=x.useState({});x.useEffect(()=>()=>{l("sourceType"),t()},[r,t]);const b=U(),c=b!=null&&b.node_type?b.node_type.charAt(0).toUpperCase()+b.node_type.slice(1):"",o=C("nodeType");C("title");const T=()=>{m()},A=_=>{l(_)},d=h.handleSubmit(async _=>{try{await we(_,o,p,b),T()}catch(P){let L=z;if(T(),(P==null?void 0:P.status)===400){const B=await P.json();L=B.errorCode||(B==null?void 0:B.status)||z}else P instanceof Error&&(L=P.message);i(String(L))}}),u=_=>{_==="Create custom type"?w():j("nodeType",_)},y={sourceType:e.jsx(je,{allowNextStep:!!o,onSelectType:u,selectedType:o,skipToStep:A}),requiredProperties:e.jsx(se,{handleSelectType:u,nodeType:o,selectedValues:p,skipToStep:A}),createConfirmation:e.jsx(le,{nodeType:o,onclose:T,selectedNodeType:c}),mapProperties:e.jsx(pe,{handleSelectType:u,nodeType:o,selectedNodeType:c,selectedValues:p,setSelectedValues:S,skipToStep:A})},g=s==="mapProperties"?"regular":"small",O=()=>{m(),f()};return e.jsx(te,{id:"changeNodeType",kind:g,onClose:O,preventOutsideClose:!0,children:e.jsx(ee,{...h,children:e.jsx("form",{id:"add-node-form",onSubmit:d,children:y[s]})})})};export{Re as ChangeNodeTypeModal}; diff --git a/build/assets/index-ac7b69fc.js b/build/assets/index-3862aa83.js similarity index 92% rename from build/assets/index-ac7b69fc.js rename to build/assets/index-3862aa83.js index c399dce2e..889cea898 100644 --- a/build/assets/index-ac7b69fc.js +++ b/build/assets/index-3862aa83.js @@ -1,4 +1,4 @@ -import{j as e,o as c,q as t,F as i,O as y,r as l,p as b,B as S,y as M,bk as $,bl as D}from"./index-21067c9d.js";import{B as R}from"./index-54401641.js";import{S as I}from"./Skeleton-079276a0.js";import{C as z}from"./ClipLoader-19a8277d.js";import{B as j}from"./index-93bc2f63.js";const A=d=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 60 52",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M12.849 16.2461L31.5592 5.44376L50.2694 16.2461V37.8508L31.5592 48.6531L12.849 37.8508V16.2461Z",stroke:"#6B7A8D",fill:"currentColor","stroke-width":"2"}),e.jsx("path",{d:"M50.7383 16.0509L31.559 27.047M31.559 27.047L12.3798 16.0509M31.559 27.047L31.559 49.2949",stroke:"#6B7A8D","stroke-width":"2"}),e.jsx("path",{d:"M7.44052 9.03136C5.80715 8.08833 3.71857 8.64797 2.77554 10.2813C1.83251 11.9147 2.39215 14.0033 4.02552 14.9463L52.5595 42.9674C54.1929 43.9104 56.2814 43.3508 57.2245 41.7174L55.4924 40.7174L57.2245 41.7174C58.1675 40.0841 57.6079 37.9955 55.9745 37.0525L7.44052 9.03136Z",fill:"currentColor",stroke:"#23252F","stroke-width":"4","stroke-linecap":"round"})]}),E=({nodeName:d})=>e.jsx(i,{children:e.jsxs(i,{align:"center",direction:"column",justify:"space-between",children:[e.jsx(G,{children:e.jsx(A,{})}),e.jsxs(T,{children:["Are you sure you want to delete ",d||"this item","?"]})]})}),T=c(i)` +import{j as e,o as c,q as t,F as i,O as y,r as l,p as b,B as S,y as M,bk as $,bl as D}from"./index-f50d1ab5.js";import{B as R}from"./index-cc30c812.js";import{S as I}from"./Skeleton-6b5d8ec7.js";import{C as z}from"./ClipLoader-f52b169b.js";import{B as j}from"./index-f857b04d.js";const A=d=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 60 52",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M12.849 16.2461L31.5592 5.44376L50.2694 16.2461V37.8508L31.5592 48.6531L12.849 37.8508V16.2461Z",stroke:"#6B7A8D",fill:"currentColor","stroke-width":"2"}),e.jsx("path",{d:"M50.7383 16.0509L31.559 27.047M31.559 27.047L12.3798 16.0509M31.559 27.047L31.559 49.2949",stroke:"#6B7A8D","stroke-width":"2"}),e.jsx("path",{d:"M7.44052 9.03136C5.80715 8.08833 3.71857 8.64797 2.77554 10.2813C1.83251 11.9147 2.39215 14.0033 4.02552 14.9463L52.5595 42.9674C54.1929 43.9104 56.2814 43.3508 57.2245 41.7174L55.4924 40.7174L57.2245 41.7174C58.1675 40.0841 57.6079 37.9955 55.9745 37.0525L7.44052 9.03136Z",fill:"currentColor",stroke:"#23252F","stroke-width":"4","stroke-linecap":"round"})]}),E=({nodeName:d})=>e.jsx(i,{children:e.jsxs(i,{align:"center",direction:"column",justify:"space-between",children:[e.jsx(G,{children:e.jsx(A,{})}),e.jsxs(T,{children:["Are you sure you want to delete ",d||"this item","?"]})]})}),T=c(i)` color: ${t.white}; font-family: 'Barlow'; font-size: 20px; diff --git a/build/assets/index-9a45d929.js b/build/assets/index-3886dc98.js similarity index 85% rename from build/assets/index-9a45d929.js rename to build/assets/index-3886dc98.js index 496870e79..ae4927f21 100644 --- a/build/assets/index-9a45d929.js +++ b/build/assets/index-3886dc98.js @@ -1 +1 @@ -import{w as f,bk as m}from"./index-21067c9d.js";import{D as y}from"./NodeCircleIcon-a8e305b7.js";const c={data:null,ids:[],loading:!1,total:0,filters:{is_muted:!1,sortBy:y,page:0,pageSize:50}};let r=null;const S=f((a,n)=>({...c,setTopics:async()=>{a({loading:!0}),r&&r.abort();const t=new AbortController,{signal:p}=t;r=t;const{data:d,ids:g,filters:o}=n(),u=T(o);o.page===0&&a({data:null,ids:[],total:0});try{const e=await m(u,p),l=o.page===0?{}:{...d||{}},i=o.page===0?[]:[...g];e.data.forEach(s=>{l[s.ref_id]=s,i.push(s.ref_id)}),a({data:l,ids:i,total:e.totalCount}),a({loading:!1})}catch(e){console.log(e)}},setFilters:t=>a({filters:{...n().filters,page:0,...t}}),terminate:()=>a(c)})),T=a=>({muted:a.is_muted?"True":"False",skip:String(a.page*a.pageSize),limit:String(a.pageSize),sort_by:a.sortBy,...a.search?{search:a.search}:{node_type:"Topic"}});export{S as u}; +import{w as f,bk as m}from"./index-f50d1ab5.js";import{D as y}from"./NodeCircleIcon-b9d0958d.js";const c={data:null,ids:[],loading:!1,total:0,filters:{is_muted:!1,sortBy:y,page:0,pageSize:50}};let r=null;const S=f((a,n)=>({...c,setTopics:async()=>{a({loading:!0}),r&&r.abort();const t=new AbortController,{signal:p}=t;r=t;const{data:d,ids:g,filters:o}=n(),u=T(o);o.page===0&&a({data:null,ids:[],total:0});try{const e=await m(u,p),l=o.page===0?{}:{...d||{}},i=o.page===0?[]:[...g];e.data.forEach(s=>{l[s.ref_id]=s,i.push(s.ref_id)}),a({data:l,ids:i,total:e.totalCount}),a({loading:!1})}catch(e){console.log(e)}},setFilters:t=>a({filters:{...n().filters,page:0,...t}}),terminate:()=>a(c)})),T=a=>({muted:a.is_muted?"True":"False",skip:String(a.page*a.pageSize),limit:String(a.pageSize),sort_by:a.sortBy,...a.search?{search:a.search}:{node_type:"Topic"}});export{S as u}; diff --git a/build/assets/index-0deccf02.js b/build/assets/index-4f7525f2.js similarity index 64% rename from build/assets/index-0deccf02.js rename to build/assets/index-4f7525f2.js index e60062de5..811244279 100644 --- a/build/assets/index-0deccf02.js +++ b/build/assets/index-4f7525f2.js @@ -1,4 +1,4 @@ -import{o as i,j as t,q as a}from"./index-21067c9d.js";import{f as n}from"./index.esm-9353033f.js";import{t as e}from"./index-93bc2f63.js";const r=i.div` +import{o as i,j as t,q as a}from"./index-f50d1ab5.js";import{f as n}from"./index.esm-22240fd2.js";import{x as e}from"./index-f857b04d.js";const r=i.div` display: Flex; justify-content: center; align-items: center; diff --git a/build/assets/index-375a8c2d.js b/build/assets/index-5370554b.js similarity index 91% rename from build/assets/index-375a8c2d.js rename to build/assets/index-5370554b.js index e6bd902c9..25513cafa 100644 --- a/build/assets/index-375a8c2d.js +++ b/build/assets/index-5370554b.js @@ -1,4 +1,4 @@ -import{o as s,F as o,T as w,p as C,r as f,j as e,q as c,A as S,aU as A,aV as b,aW as z,J as D,O as y}from"./index-21067c9d.js";import{B as G}from"./index-54401641.js";import{G as M,B as v,h as $,F as B}from"./index-93bc2f63.js";import{C as T}from"./ClipLoader-19a8277d.js";import{T as j}from"./index-de7da582.js";import{S as E}from"./index-0deccf02.js";import{e as I}from"./index.esm-9353033f.js";import{T as k,a as F}from"./Tabs-b4885406.js";import"./InfoIcon-473ded19.js";import"./useSlotProps-f54e8b6d.js";import"./createSvgIcon-b719273b.js";const R=({onClose:a})=>{const[l]=C(d=>[d.graphStyle]),[r,i]=f.useState(!1),p=()=>{i(!0),localStorage.setItem("graphStyle",l),i(!1),a()};return e.jsxs(W,{direction:"column",children:[e.jsx(V,{children:"Default graph view:"}),e.jsx(M,{}),e.jsx(o,{mt:308,py:24,children:e.jsx(v,{color:"secondary",disabled:r,id:"add-node-submit-cta",onClick:p,size:"large",startIcon:r&&e.jsx(L,{children:e.jsx(T,{color:c.lightGray,size:12})}),type:"submit",variant:"contained",children:"Save Changes"})})]})},W=s(o)` +import{o as s,F as o,T as w,p as C,r as f,j as e,q as c,A as S,aU as A,aV as b,aW as z,J as D,O as y}from"./index-f50d1ab5.js";import{B as G}from"./index-cc30c812.js";import{G as M,B as v,i as $,F as B}from"./index-f857b04d.js";import{C as T}from"./ClipLoader-f52b169b.js";import{T as j}from"./index-bd1e0bc6.js";import{S as E}from"./index-4f7525f2.js";import{e as I}from"./index.esm-22240fd2.js";import{T as k,a as F}from"./Tabs-6e4fbac2.js";import"./InfoIcon-89f3f76d.js";import"./useSlotProps-f1483ce3.js";import"./createSvgIcon-c64a52be.js";const R=({onClose:a})=>{const[l]=C(d=>[d.graphStyle]),[r,i]=f.useState(!1),p=()=>{i(!0),localStorage.setItem("graphStyle",l),i(!1),a()};return e.jsxs(W,{direction:"column",children:[e.jsx(V,{children:"Default graph view:"}),e.jsx(M,{}),e.jsx(o,{mt:308,py:24,children:e.jsx(v,{color:"secondary",disabled:r,id:"add-node-submit-cta",onClick:p,size:"large",startIcon:r&&e.jsx(L,{children:e.jsx(T,{color:c.lightGray,size:12})}),type:"submit",variant:"contained",children:"Save Changes"})})]})},W=s(o)` display: flex; gap: 10px; padding: 36px; diff --git a/build/assets/index-adad2e25.js b/build/assets/index-73f6b088.js similarity index 95% rename from build/assets/index-adad2e25.js rename to build/assets/index-73f6b088.js index 8fc4bbaa6..8d813e26e 100644 --- a/build/assets/index-adad2e25.js +++ b/build/assets/index-73f6b088.js @@ -1,4 +1,4 @@ -import{aa as Vg,ab as bi,a8 as t1,ac as r4,r as z,_ as be,j as y,g as Ld,b as Nd,s as Yn,i as i4,e as Jt,f as lf,u as Rd,a as Ul,c as ir,d as Bd,ad as zd,ae as a4,af as o4,ag as Gg,o as H,q as R,ah as qg,Q as Wl,F,B as Sn,J as No,D as Kg,T as pt,ai as s4,aj as l4,v as zn,ak as Ga,al as Nt,am as u4,n as st,A as Bt,z as Ro,K as Xg,an as Zg,O as uf,C as c4,ao as f4,ap as Bo,aq as Ji,ar as _n,as as Jg,at as Fd,au as Qi,av as Te,R as U,aw as d4,ax as Qg,ay as h4,az as ev,aA as p4,aB as m4,aC as y4,aD as zo,aE as Hd,aF as tv,aG as nv,aH as g4,aI as v4,aJ as x4,aK as Yl,aL as b4,aM as w4,P as Oe,aN as S4,aO as _4,aP as O4,y as qt,aQ as n1,a5 as k4,E as an,aR as C4,aS as P4,p as A4,aT as j4}from"./index-21067c9d.js";import{v as ei,c as T4,d as cf,e as E4,f as fc,g as Ud,h as M4,F as $4,A as $n,i as Ti,B as Rt,j as rv,P as Vl,k as I4,l as Wd,I as iv,m as Gl}from"./index-93bc2f63.js";import{T as r1,S as av}from"./SearchIcon-d549dd07.js";import{c as D4,a as dc,C as ql}from"./ClipLoader-19a8277d.js";import{S as ov}from"./Skeleton-079276a0.js";import{P as Yd}from"./PlusIcon-c31fb232.js";import{T as L4,r as N4,g as i1,P as R4}from"./Popover-8ff60b97.js";import{o as Rs,e as hc,a as sv,d as B4,i as Bs,u as wr}from"./useSlotProps-f54e8b6d.js";import{T as ea,u as z4}from"./index-aac659dd.js";import{C as lv}from"./CheckIcon-54252c75.js";import{u as F4,a as H4,f as U4,S as W4,F as Y4,P as V4}from"./Stack-dbe00046.js";import{S as G4}from"./SwitchBase-f58c5852.js";import{c as Vd}from"./createSvgIcon-b719273b.js";import{B as q4}from"./index-54401641.js";import{u as uv}from"./index-c101d01d.js";import{b as K4,a as X4,c as Z4,d as J4}from"./index.esm-9353033f.js";import{I as Q4}from"./InfoIcon-473ded19.js";const a1="023d8eb306f0027b902fbdc81d33b49b6558b3434d374626f8c324979c92d47c21",e8=async e=>{let t=await bi.enable(!0);if(t||console.warn("Sphinx enable failed, means no pubkey and no budget (including budget of 0)"),t=await bi.keysend(a1,e),!(t!=null&&t.success)){if(t=await bi.topup(),t||(t=await bi.authorize()),!(t!=null&&t.budget)||(t==null?void 0:t.budget){const n=await e8(t),r={amount:t,refid:e};return await Vg.post("/boost",JSON.stringify(r)),n},n8=e=>{const[t,n]=e.split("-")||["",""];return parseInt(n,10)!==0?`${t} - ${n}`:t},cv=(e,t)=>{if(!t)return null;const n=e.filter(a=>a.show_title&&a.link&&a.show_title===t.show_title&&a.episode_title===t.episode_title),r=t1.groupBy(n,a=>a.timestamp),i=t1.values(r).reduce((a,o)=>(o[0]&&a.push(o[0]),a),[]);return i.sort((a,o)=>{var d,h;const[s]=((d=a.timestamp)==null?void 0:d.split("-"))||[""],[l]=((h=o.timestamp)==null?void 0:h.split("-"))||[""],u=ei(s),f=ei(l);return u-f}),i},r8=async e=>{await r4(async()=>{try{await bi.saveGraphData({metaData:{date:Math.floor(new Date().getTime()/1e3),...e},type:"second_brain_consumed_content"})}catch(t){console.warn(t)}})},i8=e=>{const t=/((http|https):\/\/[^\s]+)/g,n=/@(\w+)/g;let r=e.replace(/\\/g,"");return r=r.replace(/'/g,"’"),r=r.replace(/\n/g,"
"),r=r.replace(t,'$1'),r=r.replace(n,'@$1'),r},a8={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},o8=a8;function s8(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const l8=2;function fv(e,t){return e-t}function va(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function o1(e,t){var n;const{index:r}=(n=e.reduce((i,a,o)=>{const s=Math.abs(t-a);return i===null||s({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},h8=e=>e;let vs;function pc(){return vs===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?vs=CSS.supports("touch-action","none"):vs=!0),vs}function p8(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:a=!1,marks:o=!1,max:s=100,min:l=0,name:u,onChange:f,onChangeCommitted:d,orientation:h="horizontal",rootRef:m,scale:g=h8,step:v=1,tabIndex:b,value:_}=e,k=z.useRef(),[C,A]=z.useState(-1),[O,w]=z.useState(-1),[j,T]=z.useState(!1),I=z.useRef(0),[B,M]=F4({controlled:_,default:n??l,name:"Slider"}),D=f&&((N,q,ne)=>{const se=N.nativeEvent||N,oe=new se.constructor(se.type,se);Object.defineProperty(oe,"target",{writable:!0,value:{value:q,name:u}}),f(oe,q,ne)}),W=Array.isArray(B);let Y=W?B.slice().sort(fv):[B];Y=Y.map(N=>va(N,l,s));const V=o===!0&&v!==null?[...Array(Math.floor((s-l)/v)+1)].map((N,q)=>({value:l+v*q})):o||[],X=V.map(N=>N.value),{isFocusVisibleRef:Z,onBlur:G,onFocus:Q,ref:E}=T4(),[pe,ue]=z.useState(-1),$=z.useRef(),_e=cf(E,$),te=cf(m,_e),ge=N=>q=>{var ne;const se=Number(q.currentTarget.getAttribute("data-index"));Q(q),Z.current===!0&&ue(se),w(se),N==null||(ne=N.onFocus)==null||ne.call(N,q)},Ye=N=>q=>{var ne;G(q),Z.current===!1&&ue(-1),w(-1),N==null||(ne=N.onBlur)==null||ne.call(N,q)};E4(()=>{if(r&&$.current.contains(document.activeElement)){var N;(N=document.activeElement)==null||N.blur()}},[r]),r&&C!==-1&&A(-1),r&&pe!==-1&&ue(-1);const Me=N=>q=>{var ne;(ne=N.onChange)==null||ne.call(N,q);const se=Number(q.currentTarget.getAttribute("data-index")),oe=Y[se],Re=X.indexOf(oe);let ke=q.target.valueAsNumber;if(V&&v==null){const $e=X[X.length-1];ke>$e?ke=$e:ke{const{current:ne}=$,{width:se,height:oe,bottom:Re,left:ke}=ne.getBoundingClientRect();let $e;de.indexOf("vertical")===0?$e=(Re-N.y)/oe:$e=(N.x-ke)/se,de.indexOf("-reverse")!==-1&&($e=1-$e);let Ge;if(Ge=u8($e,l,s),v)Ge=f8(Ge,v,l);else{const ht=o1(X,Ge);Ge=X[ht]}Ge=va(Ge,l,s);let kt=0;if(W){q?kt=ae.current:kt=o1(Y,Ge),i&&(Ge=va(Ge,Y[kt-1]||-1/0,Y[kt+1]||1/0));const ht=Ge;Ge=s1({values:Y,newValue:Ge,index:kt}),i&&q||(kt=Ge.indexOf(ht),ae.current=kt)}return{newValue:Ge,activeIndex:kt}},ee=fc(N=>{const q=ms(N,k);if(!q)return;if(I.current+=1,N.type==="mousemove"&&N.buttons===0){Ae(N);return}const{newValue:ne,activeIndex:se}=ve({finger:q,move:!0});ys({sliderRef:$,activeIndex:se,setActive:A}),M(ne),!j&&I.current>l8&&T(!0),D&&!gs(ne,B)&&D(N,ne,se)}),Ae=fc(N=>{const q=ms(N,k);if(T(!1),!q)return;const{newValue:ne}=ve({finger:q,move:!0});A(-1),N.type==="touchend"&&w(-1),d&&d(N,ne),k.current=void 0,xe()}),he=fc(N=>{if(r)return;pc()||N.preventDefault();const q=N.changedTouches[0];q!=null&&(k.current=q.identifier);const ne=ms(N,k);if(ne!==!1){const{newValue:oe,activeIndex:Re}=ve({finger:ne});ys({sliderRef:$,activeIndex:Re,setActive:A}),M(oe),D&&!gs(oe,B)&&D(N,oe,Re)}I.current=0;const se=Rs($.current);se.addEventListener("touchmove",ee),se.addEventListener("touchend",Ae)}),xe=z.useCallback(()=>{const N=Rs($.current);N.removeEventListener("mousemove",ee),N.removeEventListener("mouseup",Ae),N.removeEventListener("touchmove",ee),N.removeEventListener("touchend",Ae)},[Ae,ee]);z.useEffect(()=>{const{current:N}=$;return N.addEventListener("touchstart",he,{passive:pc()}),()=>{N.removeEventListener("touchstart",he,{passive:pc()}),xe()}},[xe,he]),z.useEffect(()=>{r&&xe()},[r,xe]);const He=N=>q=>{var ne;if((ne=N.onMouseDown)==null||ne.call(N,q),r||q.defaultPrevented||q.button!==0)return;q.preventDefault();const se=ms(q,k);if(se!==!1){const{newValue:Re,activeIndex:ke}=ve({finger:se});ys({sliderRef:$,activeIndex:ke,setActive:A}),M(Re),D&&!gs(Re,B)&&D(q,Re,ke)}I.current=0;const oe=Rs($.current);oe.addEventListener("mousemove",ee),oe.addEventListener("mouseup",Ae)},rt=Ys(W?Y[0]:l,l,s),ft=Ys(Y[Y.length-1],l,s)-rt,tn=(N={})=>{const q=hc(N),ne={onMouseDown:He(q||{})},se=be({},q,ne);return be({},N,{ref:te},se)},Ue=N=>q=>{var ne;(ne=N.onMouseOver)==null||ne.call(N,q);const se=Number(q.currentTarget.getAttribute("data-index"));w(se)},Ne=N=>q=>{var ne;(ne=N.onMouseLeave)==null||ne.call(N,q),w(-1)};return{active:C,axis:de,axisProps:d8,dragging:j,focusedThumbIndex:pe,getHiddenInputProps:(N={})=>{var q;const ne=hc(N),se={onChange:Me(ne||{}),onFocus:ge(ne||{}),onBlur:Ye(ne||{})},oe=be({},ne,se);return be({tabIndex:b,"aria-labelledby":t,"aria-orientation":h,"aria-valuemax":g(s),"aria-valuemin":g(l),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(q=e.step)!=null?q:void 0,disabled:r},N,oe,{style:be({},o8,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:tn,getThumbProps:(N={})=>{const q=hc(N),ne={onMouseOver:Ue(q||{}),onMouseLeave:Ne(q||{})};return be({},N,q,ne)},marks:V,open:O,range:W,rootRef:te,trackLeap:ft,trackOffset:rt,values:Y,getThumbStyle:N=>({pointerEvents:C!==-1&&C!==N?"none":void 0})}}const m8=Vd(y.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),y8=Vd(y.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),g8=Vd(y.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function v8(e){return Nd("MuiCheckbox",e)}const x8=Ld("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),mc=x8,b8=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],w8=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,a={root:["root",n&&"indeterminate",`color${Jt(r)}`,`size${Jt(i)}`]},o=Bd(a,v8,t);return be({},t,o)},S8=Yn(G4,{shouldForwardProp:e=>i4(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Jt(n.size)}`],n.color!=="default"&&t[`color${Jt(n.color)}`]]}})(({theme:e,ownerState:t})=>be({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:lf(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${mc.checked}, &.${mc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${mc.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),_8=y.jsx(y8,{}),O8=y.jsx(m8,{}),k8=y.jsx(g8,{}),C8=z.forwardRef(function(t,n){var r,i;const a=Rd({props:t,name:"MuiCheckbox"}),{checkedIcon:o=_8,color:s="primary",icon:l=O8,indeterminate:u=!1,indeterminateIcon:f=k8,inputProps:d,size:h="medium",className:m}=a,g=Ul(a,b8),v=u?f:l,b=u?f:o,_=be({},a,{color:s,indeterminate:u,size:h}),k=w8(_);return y.jsx(S8,be({type:"checkbox",inputProps:be({"data-indeterminate":u},d),icon:z.cloneElement(v,{fontSize:(r=v.props.fontSize)!=null?r:h}),checkedIcon:z.cloneElement(b,{fontSize:(i=b.props.fontSize)!=null?i:h}),ownerState:_,ref:n,className:ir(k.root,m)},g,{classes:k}))}),P8=C8,A8=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function j8(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),a=sv(t);let o;if(t.fakeTransform)o=t.fakeTransform;else{const u=a.getComputedStyle(t);o=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let s=0,l=0;if(o&&o!=="none"&&typeof o=="string"){const u=o.split("(")[1].split(")")[0].split(",");s=parseInt(u[4],10),l=parseInt(u[5],10)}return e==="left"?i?`translateX(${i.right+s-r.left}px)`:`translateX(${a.innerWidth+s-r.left}px)`:e==="right"?i?`translateX(-${r.right-i.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${a.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function T8(e){return typeof e=="function"?e():e}function xs(e,t,n){const r=T8(n),i=j8(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const E8=z.forwardRef(function(t,n){const r=zd(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:l,container:u,direction:f="down",easing:d=i,in:h,onEnter:m,onEntered:g,onEntering:v,onExit:b,onExited:_,onExiting:k,style:C,timeout:A=a,TransitionComponent:O=L4}=t,w=Ul(t,A8),j=z.useRef(null),T=cf(l.ref,j,n),I=G=>Q=>{G&&(Q===void 0?G(j.current):G(j.current,Q))},B=I((G,Q)=>{xs(f,G,u),N4(G),m&&m(G,Q)}),M=I((G,Q)=>{const E=i1({timeout:A,style:C,easing:d},{mode:"enter"});G.style.webkitTransition=r.transitions.create("-webkit-transform",be({},E)),G.style.transition=r.transitions.create("transform",be({},E)),G.style.webkitTransform="none",G.style.transform="none",v&&v(G,Q)}),D=I(g),W=I(k),Y=I(G=>{const Q=i1({timeout:A,style:C,easing:d},{mode:"exit"});G.style.webkitTransition=r.transitions.create("-webkit-transform",Q),G.style.transition=r.transitions.create("transform",Q),xs(f,G,u),b&&b(G)}),V=I(G=>{G.style.webkitTransition="",G.style.transition="",_&&_(G)}),X=G=>{o&&o(j.current,G)},Z=z.useCallback(()=>{j.current&&xs(f,j.current,u)},[f,u]);return z.useEffect(()=>{if(h||f==="down"||f==="right")return;const G=B4(()=>{j.current&&xs(f,j.current,u)}),Q=sv(j.current);return Q.addEventListener("resize",G),()=>{G.clear(),Q.removeEventListener("resize",G)}},[f,h,u]),z.useEffect(()=>{h||Z()},[h,Z]),y.jsx(O,be({nodeRef:j,onEnter:B,onEntered:D,onEntering:M,onExit:Y,onExited:V,onExiting:W,addEndListener:X,appear:s,in:h,timeout:A},w,{children:(G,Q)=>z.cloneElement(l,be({ref:T,style:be({visibility:G==="exited"&&!h?"hidden":void 0},C,l.props.style)},Q))}))}),Ei=E8;function M8(e){return Nd("MuiFormControlLabel",e)}const $8=Ld("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),$a=$8,I8=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],D8=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:a}=e,o={root:["root",n&&"disabled",`labelPlacement${Jt(r)}`,i&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return Bd(o,M8,t)},L8=Yn("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${$a.label}`]:t.label},t.root,t[`labelPlacement${Jt(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>be({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${$a.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${$a.label}`]:{[`&.${$a.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),N8=Yn("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${$a.error}`]:{color:(e.vars||e).palette.error.main}})),R8=z.forwardRef(function(t,n){var r,i;const a=Rd({props:t,name:"MuiFormControlLabel"}),{className:o,componentsProps:s={},control:l,disabled:u,disableTypography:f,label:d,labelPlacement:h="end",required:m,slotProps:g={}}=a,v=Ul(a,I8),b=H4(),_=(r=u??l.props.disabled)!=null?r:b==null?void 0:b.disabled,k=m??l.props.required,C={disabled:_,required:k};["checked","name","onChange","value","inputRef"].forEach(I=>{typeof l.props[I]>"u"&&typeof a[I]<"u"&&(C[I]=a[I])});const A=U4({props:a,muiFormControl:b,states:["error"]}),O=be({},a,{disabled:_,labelPlacement:h,required:k,error:A.error}),w=D8(O),j=(i=g.typography)!=null?i:s.typography;let T=d;return T!=null&&T.type!==r1&&!f&&(T=y.jsx(r1,be({component:"span"},j,{className:ir(w.label,j==null?void 0:j.className),children:T}))),y.jsxs(L8,be({className:ir(w.root,o),ownerState:O,ref:n},v,{children:[z.cloneElement(l,C),k?y.jsxs(W4,{display:"block",children:[T,y.jsxs(N8,{ownerState:O,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]}):T]}))}),l1=R8,B8=e=>!e||!Bs(e),z8=B8;function F8(e){return Nd("MuiSlider",e)}const H8=Ld("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),En=H8,U8=e=>{const{open:t}=e;return{offset:ir(t&&En.valueLabelOpen),circle:En.valueLabelCircle,label:En.valueLabelLabel}};function W8(e){const{children:t,className:n,value:r}=e,i=U8(e);return t?z.cloneElement(t,{className:ir(t.props.className)},y.jsxs(z.Fragment,{children:[t.props.children,y.jsx("span",{className:ir(i.offset,n),"aria-hidden":!0,children:y.jsx("span",{className:i.circle,children:y.jsx("span",{className:i.label,children:r})})})]})):null}const Y8=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function u1(e){return e}const V8=Yn("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Jt(n.color)}`],n.size!=="medium"&&t[`size${Jt(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>be({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&be({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&be({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${En.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${En.dragging}`]:{[`& .${En.thumb}, & .${En.track}`]:{transition:"none"}}})),G8=Yn("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>be({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),q8=Yn("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?a4(e.palette[t.color].main,.62):o4(e.palette[t.color].main,.5);return be({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),K8=Yn("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${Jt(n.color)}`],n.size!=="medium"&&t[`thumbSize${Jt(n.size)}`]]}})(({theme:e,ownerState:t})=>be({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":be({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${En.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:lf(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${En.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:lf(e.palette[t.color].main,.16)}`},[`&.${En.disabled}`]:{"&:hover":{boxShadow:"none"}}})),X8=Yn(W8,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>be({[`&.${En.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"30px",top:"50%",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),Z8=Yn("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Gg(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>be({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),J8=Yn("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Gg(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>be({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),Q8=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:a,classes:o,color:s,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",s&&`color${Jt(s)}`,l&&`size${Jt(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${Jt(l)}`,s&&`thumbColor${Jt(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Bd(u,F8,o)},e9=({children:e})=>e,t9=z.forwardRef(function(t,n){var r,i,a,o,s,l,u,f,d,h,m,g,v,b,_,k,C,A,O,w,j,T,I,B;const M=Rd({props:t,name:"MuiSlider"}),W=zd().direction==="rtl",{"aria-label":Y,"aria-valuetext":V,"aria-labelledby":X,component:Z="span",components:G={},componentsProps:Q={},color:E="primary",classes:pe,className:ue,disableSwap:$=!1,disabled:_e=!1,getAriaLabel:te,getAriaValueText:ge,marks:Ye=!1,max:Me=100,min:ae=0,orientation:de="horizontal",size:ve="medium",step:ee=1,scale:Ae=u1,slotProps:he,slots:xe,track:He="normal",valueLabelDisplay:rt="off",valueLabelFormat:ft=u1}=M,tn=Ul(M,Y8),Ue=be({},M,{isRtl:W,max:Me,min:ae,classes:pe,disabled:_e,disableSwap:$,orientation:de,marks:Ye,color:E,size:ve,step:ee,scale:Ae,track:He,valueLabelDisplay:rt,valueLabelFormat:ft}),{axisProps:Ne,getRootProps:it,getHiddenInputProps:nn,getThumbProps:Cn,open:N,active:q,axis:ne,focusedThumbIndex:se,range:oe,dragging:Re,marks:ke,values:$e,trackOffset:Ge,trackLeap:kt,getThumbStyle:ht}=p8(be({},Ue,{rootRef:n}));Ue.marked=ke.length>0&&ke.some(je=>je.label),Ue.dragging=Re,Ue.focusedThumbIndex=se;const Ie=Q8(Ue),It=(r=(i=xe==null?void 0:xe.root)!=null?i:G.Root)!=null?r:V8,oi=(a=(o=xe==null?void 0:xe.rail)!=null?o:G.Rail)!=null?a:G8,Rr=(s=(l=xe==null?void 0:xe.track)!=null?l:G.Track)!=null?s:q8,qe=(u=(f=xe==null?void 0:xe.thumb)!=null?f:G.Thumb)!=null?u:K8,ua=(d=(h=xe==null?void 0:xe.valueLabel)!=null?h:G.ValueLabel)!=null?d:X8,si=(m=(g=xe==null?void 0:xe.mark)!=null?g:G.Mark)!=null?m:Z8,hr=(v=(b=xe==null?void 0:xe.markLabel)!=null?b:G.MarkLabel)!=null?v:J8,li=(_=(k=xe==null?void 0:xe.input)!=null?k:G.Input)!=null?_:"input",pr=(C=he==null?void 0:he.root)!=null?C:Q.root,mr=(A=he==null?void 0:he.rail)!=null?A:Q.rail,yr=(O=he==null?void 0:he.track)!=null?O:Q.track,ca=(w=he==null?void 0:he.thumb)!=null?w:Q.thumb,gr=(j=he==null?void 0:he.valueLabel)!=null?j:Q.valueLabel,Wu=(T=he==null?void 0:he.mark)!=null?T:Q.mark,Br=(I=he==null?void 0:he.markLabel)!=null?I:Q.markLabel,ui=(B=he==null?void 0:he.input)!=null?B:Q.input,ce=wr({elementType:It,getSlotProps:it,externalSlotProps:pr,externalForwardedProps:tn,additionalProps:be({},z8(It)&&{as:Z}),ownerState:be({},Ue,pr==null?void 0:pr.ownerState),className:[Ie.root,ue]}),Yu=wr({elementType:oi,externalSlotProps:mr,ownerState:Ue,className:Ie.rail}),Vu=wr({elementType:Rr,externalSlotProps:yr,additionalProps:{style:be({},Ne[ne].offset(Ge),Ne[ne].leap(kt))},ownerState:be({},Ue,yr==null?void 0:yr.ownerState),className:Ie.track}),Tt=wr({elementType:qe,getSlotProps:Cn,externalSlotProps:ca,ownerState:be({},Ue,ca==null?void 0:ca.ownerState),className:Ie.thumb}),fa=wr({elementType:ua,externalSlotProps:gr,ownerState:be({},Ue,gr==null?void 0:gr.ownerState),className:Ie.valueLabel}),Be=wr({elementType:si,externalSlotProps:Wu,ownerState:Ue,className:Ie.mark}),Vn=wr({elementType:hr,externalSlotProps:Br,ownerState:Ue,className:Ie.markLabel}),Gu=wr({elementType:li,getSlotProps:nn,externalSlotProps:ui,ownerState:Ue});return y.jsxs(It,be({},ce,{children:[y.jsx(oi,be({},Yu)),y.jsx(Rr,be({},Vu)),ke.filter(je=>je.value>=ae&&je.value<=Me).map((je,Je)=>{const Kt=Ys(je.value,ae,Me),lt=Ne[ne].offset(Kt);let mt;return He===!1?mt=$e.indexOf(je.value)!==-1:mt=He==="normal"&&(oe?je.value>=$e[0]&&je.value<=$e[$e.length-1]:je.value<=$e[0])||He==="inverted"&&(oe?je.value<=$e[0]||je.value>=$e[$e.length-1]:je.value>=$e[0]),y.jsxs(z.Fragment,{children:[y.jsx(si,be({"data-index":Je},Be,!Bs(si)&&{markActive:mt},{style:be({},lt,Be.style),className:ir(Be.className,mt&&Ie.markActive)})),je.label!=null?y.jsx(hr,be({"aria-hidden":!0,"data-index":Je},Vn,!Bs(hr)&&{markLabelActive:mt},{style:be({},lt,Vn.style),className:ir(Ie.markLabel,Vn.className,mt&&Ie.markLabelActive),children:je.label})):null]},Je)}),$e.map((je,Je)=>{const Kt=Ys(je,ae,Me),lt=Ne[ne].offset(Kt),mt=rt==="off"?e9:ua;return y.jsx(mt,be({},!Bs(mt)&&{valueLabelFormat:ft,valueLabelDisplay:rt,value:typeof ft=="function"?ft(Ae(je),Je):ft,index:Je,open:N===Je||q===Je||rt==="on",disabled:_e},fa,{children:y.jsx(qe,be({"data-index":Je},Tt,{className:ir(Ie.thumb,Tt.className,q===Je&&Ie.active,se===Je&&Ie.focusVisible),style:be({},lt,ht(Je),Tt.style),children:y.jsx(li,be({"data-index":Je,"aria-label":te?te(Je):Y,"aria-valuenow":Ae(je),"aria-labelledby":X,"aria-valuetext":ge?ge(Ae(je),Je):V,value:$e[Je]},Gu))}))}),Je)})]}))}),Kl=t9,n9=(e,t="down")=>{const n=zd(),[r,i]=z.useState(!1),a=n.breakpoints[t](e).split("@media")[1].trim();return z.useEffect(()=>{const o=()=>{const{matches:s}=window.matchMedia(a);i(s)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[a]),r},r9=e=>e.filter(t=>t.tldr).length>=2&&e.some(t=>t.audio_EN);function i9(e){return e.tldr_topic??e.name}var Vs=globalThis&&globalThis.__assign||function(){return Vs=Object.assign||function(e){for(var t,n=1,r=arguments.length;ny.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"keyboard_arrow_left",children:[y.jsx("mask",{id:"mask0_1428_267",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"18",height:"18",children:y.jsx("path",{id:"Bounding box",d:"M0 0H18V18H0V0Z",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_1428_267)",children:y.jsx("path",{id:"keyboard_arrow_left_2",d:"M8.10001 8.99998L11.025 11.925C11.1625 12.0625 11.2313 12.2375 11.2313 12.45C11.2313 12.6625 11.1625 12.8375 11.025 12.975C10.8875 13.1125 10.7125 13.1812 10.5 13.1812C10.2875 13.1812 10.1125 13.1125 9.97501 12.975L6.52501 9.52498C6.45001 9.44998 6.39688 9.36873 6.36563 9.28123C6.33438 9.19373 6.31876 9.09998 6.31876 8.99998C6.31876 8.89998 6.33438 8.80623 6.36563 8.71873C6.39688 8.63123 6.45001 8.54998 6.52501 8.47498L9.97501 5.02498C10.1125 4.88748 10.2875 4.81873 10.5 4.81873C10.7125 4.81873 10.8875 4.88748 11.025 5.02498C11.1625 5.16248 11.2313 5.33748 11.2313 5.54998C11.2313 5.76248 11.1625 5.93748 11.025 6.07498L8.10001 8.99998Z",fill:"currentColor"})})]})}),l9=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"arrow_forward",children:[y.jsx("mask",{id:"mask0_8980_24763",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:y.jsx("rect",{id:"Bounding box",x:"20",y:"20",width:"1em",height:"1em",transform:"rotate(-180 20 20)",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_8980_24763)",children:y.jsx("path",{id:"arrow_forward_2",d:"M7.52981 10.4372L16.0625 10.4372C16.2221 10.4372 16.3558 10.4911 16.4635 10.5988C16.5712 10.7065 16.625 10.8401 16.625 10.9997C16.625 11.1593 16.5712 11.293 16.4635 11.4007C16.3558 11.5084 16.2221 11.5622 16.0625 11.5622L7.52981 11.5622L11.4067 15.4391C11.5183 15.5507 11.5733 15.6812 11.5719 15.8307C11.5704 15.9802 11.5115 16.1132 11.3952 16.2295C11.2789 16.3382 11.1471 16.3944 11 16.3983C10.8529 16.4021 10.7212 16.3459 10.6048 16.2295L5.84956 11.4742C5.77938 11.404 5.72986 11.33 5.70101 11.2521C5.67216 11.1742 5.65773 11.0901 5.65773 10.9997C5.65773 10.9093 5.67216 10.8252 5.70101 10.7473C5.72986 10.6694 5.77938 10.5954 5.84956 10.5252L10.6048 5.76993C10.7087 5.66608 10.8373 5.61295 10.9906 5.61055C11.144 5.60815 11.2789 5.66128 11.3952 5.76993C11.5115 5.88626 11.5697 6.01992 11.5697 6.17088C11.5697 6.32184 11.5115 6.45549 11.3952 6.57183L7.52981 10.4372Z",fill:"currentColor"})})]})}),u9=H.input.attrs(()=>({autoCorrect:"off",autoComplete:"off"}))` +import{aa as Vg,ab as bi,a8 as t1,ac as r4,r as z,_ as be,j as y,g as Ld,b as Nd,s as Yn,i as i4,e as Jt,f as lf,u as Rd,a as Ul,c as ir,d as Bd,ad as zd,ae as a4,af as o4,ag as Gg,o as H,q as R,ah as qg,Q as Wl,F,B as Sn,J as No,D as Kg,T as pt,ai as s4,aj as l4,v as zn,ak as Ga,al as Nt,am as u4,n as st,A as Bt,z as Ro,K as Xg,an as Zg,O as uf,C as c4,ao as f4,ap as Bo,aq as Ji,ar as _n,as as Jg,at as Fd,au as Qi,av as Te,R as U,aw as d4,ax as Qg,ay as h4,az as ev,aA as p4,aB as m4,aC as y4,aD as zo,aE as Hd,aF as tv,aG as nv,aH as g4,aI as v4,aJ as x4,aK as Yl,aL as b4,aM as w4,P as Oe,aN as S4,aO as _4,aP as O4,y as qt,aQ as n1,a5 as k4,E as an,aR as C4,aS as P4,p as A4,aT as j4}from"./index-f50d1ab5.js";import{v as ei,d as T4,e as cf,f as E4,g as fc,h as Ud,i as M4,F as $4,A as $n,T as ea,j as Ti,B as Rt,k as rv,P as Vl,l as I4,m as Wd,b as D4,I as iv,n as Gl}from"./index-f857b04d.js";import{T as r1,S as av}from"./SearchIcon-c000717e.js";import{c as L4,a as dc,C as ql}from"./ClipLoader-f52b169b.js";import{S as ov}from"./Skeleton-6b5d8ec7.js";import{P as Yd}from"./PlusIcon-95ca5a40.js";import{T as N4,r as R4,g as i1,P as B4}from"./Popover-a7534715.js";import{o as Rs,e as hc,a as sv,d as z4,i as Bs,u as wr}from"./useSlotProps-f1483ce3.js";import{C as lv}from"./CheckIcon-9f687844.js";import{u as F4,a as H4,f as U4,S as W4,F as Y4,P as V4}from"./Stack-a4065033.js";import{S as G4}from"./SwitchBase-49769912.js";import{c as Vd}from"./createSvgIcon-c64a52be.js";import{B as q4}from"./index-cc30c812.js";import{u as uv}from"./index-2818a813.js";import{b as K4,a as X4,c as Z4,d as J4}from"./index.esm-22240fd2.js";import{I as Q4}from"./InfoIcon-89f3f76d.js";const a1="023d8eb306f0027b902fbdc81d33b49b6558b3434d374626f8c324979c92d47c21",e8=async e=>{let t=await bi.enable(!0);if(t||console.warn("Sphinx enable failed, means no pubkey and no budget (including budget of 0)"),t=await bi.keysend(a1,e),!(t!=null&&t.success)){if(t=await bi.topup(),t||(t=await bi.authorize()),!(t!=null&&t.budget)||(t==null?void 0:t.budget){const n=await e8(t),r={amount:t,refid:e};return await Vg.post("/boost",JSON.stringify(r)),n},n8=e=>{const[t,n]=e.split("-")||["",""];return parseInt(n,10)!==0?`${t} - ${n}`:t},cv=(e,t)=>{if(!t)return null;const n=e.filter(a=>a.show_title&&a.link&&a.show_title===t.show_title&&a.episode_title===t.episode_title),r=t1.groupBy(n,a=>a.timestamp),i=t1.values(r).reduce((a,o)=>(o[0]&&a.push(o[0]),a),[]);return i.sort((a,o)=>{var d,h;const[s]=((d=a.timestamp)==null?void 0:d.split("-"))||[""],[l]=((h=o.timestamp)==null?void 0:h.split("-"))||[""],u=ei(s),f=ei(l);return u-f}),i},r8=async e=>{await r4(async()=>{try{await bi.saveGraphData({metaData:{date:Math.floor(new Date().getTime()/1e3),...e},type:"second_brain_consumed_content"})}catch(t){console.warn(t)}})},i8=e=>{const t=/((http|https):\/\/[^\s]+)/g,n=/@(\w+)/g;let r=e.replace(/\\/g,"");return r=r.replace(/'/g,"’"),r=r.replace(/\n/g,"
"),r=r.replace(t,'$1'),r=r.replace(n,'@$1'),r},a8={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},o8=a8;function s8(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const l8=2;function fv(e,t){return e-t}function va(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function o1(e,t){var n;const{index:r}=(n=e.reduce((i,a,o)=>{const s=Math.abs(t-a);return i===null||s({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},h8=e=>e;let vs;function pc(){return vs===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?vs=CSS.supports("touch-action","none"):vs=!0),vs}function p8(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:a=!1,marks:o=!1,max:s=100,min:l=0,name:u,onChange:f,onChangeCommitted:d,orientation:h="horizontal",rootRef:m,scale:g=h8,step:v=1,tabIndex:b,value:_}=e,k=z.useRef(),[C,A]=z.useState(-1),[O,w]=z.useState(-1),[j,T]=z.useState(!1),I=z.useRef(0),[B,M]=F4({controlled:_,default:n??l,name:"Slider"}),D=f&&((N,q,ne)=>{const se=N.nativeEvent||N,oe=new se.constructor(se.type,se);Object.defineProperty(oe,"target",{writable:!0,value:{value:q,name:u}}),f(oe,q,ne)}),W=Array.isArray(B);let Y=W?B.slice().sort(fv):[B];Y=Y.map(N=>va(N,l,s));const V=o===!0&&v!==null?[...Array(Math.floor((s-l)/v)+1)].map((N,q)=>({value:l+v*q})):o||[],X=V.map(N=>N.value),{isFocusVisibleRef:Z,onBlur:G,onFocus:Q,ref:E}=T4(),[pe,ue]=z.useState(-1),$=z.useRef(),_e=cf(E,$),te=cf(m,_e),ge=N=>q=>{var ne;const se=Number(q.currentTarget.getAttribute("data-index"));Q(q),Z.current===!0&&ue(se),w(se),N==null||(ne=N.onFocus)==null||ne.call(N,q)},Ye=N=>q=>{var ne;G(q),Z.current===!1&&ue(-1),w(-1),N==null||(ne=N.onBlur)==null||ne.call(N,q)};E4(()=>{if(r&&$.current.contains(document.activeElement)){var N;(N=document.activeElement)==null||N.blur()}},[r]),r&&C!==-1&&A(-1),r&&pe!==-1&&ue(-1);const Me=N=>q=>{var ne;(ne=N.onChange)==null||ne.call(N,q);const se=Number(q.currentTarget.getAttribute("data-index")),oe=Y[se],Re=X.indexOf(oe);let ke=q.target.valueAsNumber;if(V&&v==null){const $e=X[X.length-1];ke>$e?ke=$e:ke{const{current:ne}=$,{width:se,height:oe,bottom:Re,left:ke}=ne.getBoundingClientRect();let $e;de.indexOf("vertical")===0?$e=(Re-N.y)/oe:$e=(N.x-ke)/se,de.indexOf("-reverse")!==-1&&($e=1-$e);let Ge;if(Ge=u8($e,l,s),v)Ge=f8(Ge,v,l);else{const ht=o1(X,Ge);Ge=X[ht]}Ge=va(Ge,l,s);let kt=0;if(W){q?kt=ae.current:kt=o1(Y,Ge),i&&(Ge=va(Ge,Y[kt-1]||-1/0,Y[kt+1]||1/0));const ht=Ge;Ge=s1({values:Y,newValue:Ge,index:kt}),i&&q||(kt=Ge.indexOf(ht),ae.current=kt)}return{newValue:Ge,activeIndex:kt}},ee=fc(N=>{const q=ms(N,k);if(!q)return;if(I.current+=1,N.type==="mousemove"&&N.buttons===0){Ae(N);return}const{newValue:ne,activeIndex:se}=ve({finger:q,move:!0});ys({sliderRef:$,activeIndex:se,setActive:A}),M(ne),!j&&I.current>l8&&T(!0),D&&!gs(ne,B)&&D(N,ne,se)}),Ae=fc(N=>{const q=ms(N,k);if(T(!1),!q)return;const{newValue:ne}=ve({finger:q,move:!0});A(-1),N.type==="touchend"&&w(-1),d&&d(N,ne),k.current=void 0,xe()}),he=fc(N=>{if(r)return;pc()||N.preventDefault();const q=N.changedTouches[0];q!=null&&(k.current=q.identifier);const ne=ms(N,k);if(ne!==!1){const{newValue:oe,activeIndex:Re}=ve({finger:ne});ys({sliderRef:$,activeIndex:Re,setActive:A}),M(oe),D&&!gs(oe,B)&&D(N,oe,Re)}I.current=0;const se=Rs($.current);se.addEventListener("touchmove",ee),se.addEventListener("touchend",Ae)}),xe=z.useCallback(()=>{const N=Rs($.current);N.removeEventListener("mousemove",ee),N.removeEventListener("mouseup",Ae),N.removeEventListener("touchmove",ee),N.removeEventListener("touchend",Ae)},[Ae,ee]);z.useEffect(()=>{const{current:N}=$;return N.addEventListener("touchstart",he,{passive:pc()}),()=>{N.removeEventListener("touchstart",he,{passive:pc()}),xe()}},[xe,he]),z.useEffect(()=>{r&&xe()},[r,xe]);const He=N=>q=>{var ne;if((ne=N.onMouseDown)==null||ne.call(N,q),r||q.defaultPrevented||q.button!==0)return;q.preventDefault();const se=ms(q,k);if(se!==!1){const{newValue:Re,activeIndex:ke}=ve({finger:se});ys({sliderRef:$,activeIndex:ke,setActive:A}),M(Re),D&&!gs(Re,B)&&D(q,Re,ke)}I.current=0;const oe=Rs($.current);oe.addEventListener("mousemove",ee),oe.addEventListener("mouseup",Ae)},rt=Ys(W?Y[0]:l,l,s),ft=Ys(Y[Y.length-1],l,s)-rt,tn=(N={})=>{const q=hc(N),ne={onMouseDown:He(q||{})},se=be({},q,ne);return be({},N,{ref:te},se)},Ue=N=>q=>{var ne;(ne=N.onMouseOver)==null||ne.call(N,q);const se=Number(q.currentTarget.getAttribute("data-index"));w(se)},Ne=N=>q=>{var ne;(ne=N.onMouseLeave)==null||ne.call(N,q),w(-1)};return{active:C,axis:de,axisProps:d8,dragging:j,focusedThumbIndex:pe,getHiddenInputProps:(N={})=>{var q;const ne=hc(N),se={onChange:Me(ne||{}),onFocus:ge(ne||{}),onBlur:Ye(ne||{})},oe=be({},ne,se);return be({tabIndex:b,"aria-labelledby":t,"aria-orientation":h,"aria-valuemax":g(s),"aria-valuemin":g(l),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(q=e.step)!=null?q:void 0,disabled:r},N,oe,{style:be({},o8,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:tn,getThumbProps:(N={})=>{const q=hc(N),ne={onMouseOver:Ue(q||{}),onMouseLeave:Ne(q||{})};return be({},N,q,ne)},marks:V,open:O,range:W,rootRef:te,trackLeap:ft,trackOffset:rt,values:Y,getThumbStyle:N=>({pointerEvents:C!==-1&&C!==N?"none":void 0})}}const m8=Vd(y.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),y8=Vd(y.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),g8=Vd(y.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function v8(e){return Nd("MuiCheckbox",e)}const x8=Ld("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),mc=x8,b8=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],w8=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,a={root:["root",n&&"indeterminate",`color${Jt(r)}`,`size${Jt(i)}`]},o=Bd(a,v8,t);return be({},t,o)},S8=Yn(G4,{shouldForwardProp:e=>i4(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Jt(n.size)}`],n.color!=="default"&&t[`color${Jt(n.color)}`]]}})(({theme:e,ownerState:t})=>be({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:lf(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${mc.checked}, &.${mc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${mc.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),_8=y.jsx(y8,{}),O8=y.jsx(m8,{}),k8=y.jsx(g8,{}),C8=z.forwardRef(function(t,n){var r,i;const a=Rd({props:t,name:"MuiCheckbox"}),{checkedIcon:o=_8,color:s="primary",icon:l=O8,indeterminate:u=!1,indeterminateIcon:f=k8,inputProps:d,size:h="medium",className:m}=a,g=Ul(a,b8),v=u?f:l,b=u?f:o,_=be({},a,{color:s,indeterminate:u,size:h}),k=w8(_);return y.jsx(S8,be({type:"checkbox",inputProps:be({"data-indeterminate":u},d),icon:z.cloneElement(v,{fontSize:(r=v.props.fontSize)!=null?r:h}),checkedIcon:z.cloneElement(b,{fontSize:(i=b.props.fontSize)!=null?i:h}),ownerState:_,ref:n,className:ir(k.root,m)},g,{classes:k}))}),P8=C8,A8=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function j8(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),a=sv(t);let o;if(t.fakeTransform)o=t.fakeTransform;else{const u=a.getComputedStyle(t);o=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let s=0,l=0;if(o&&o!=="none"&&typeof o=="string"){const u=o.split("(")[1].split(")")[0].split(",");s=parseInt(u[4],10),l=parseInt(u[5],10)}return e==="left"?i?`translateX(${i.right+s-r.left}px)`:`translateX(${a.innerWidth+s-r.left}px)`:e==="right"?i?`translateX(-${r.right-i.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${a.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function T8(e){return typeof e=="function"?e():e}function xs(e,t,n){const r=T8(n),i=j8(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const E8=z.forwardRef(function(t,n){const r=zd(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:l,container:u,direction:f="down",easing:d=i,in:h,onEnter:m,onEntered:g,onEntering:v,onExit:b,onExited:_,onExiting:k,style:C,timeout:A=a,TransitionComponent:O=N4}=t,w=Ul(t,A8),j=z.useRef(null),T=cf(l.ref,j,n),I=G=>Q=>{G&&(Q===void 0?G(j.current):G(j.current,Q))},B=I((G,Q)=>{xs(f,G,u),R4(G),m&&m(G,Q)}),M=I((G,Q)=>{const E=i1({timeout:A,style:C,easing:d},{mode:"enter"});G.style.webkitTransition=r.transitions.create("-webkit-transform",be({},E)),G.style.transition=r.transitions.create("transform",be({},E)),G.style.webkitTransform="none",G.style.transform="none",v&&v(G,Q)}),D=I(g),W=I(k),Y=I(G=>{const Q=i1({timeout:A,style:C,easing:d},{mode:"exit"});G.style.webkitTransition=r.transitions.create("-webkit-transform",Q),G.style.transition=r.transitions.create("transform",Q),xs(f,G,u),b&&b(G)}),V=I(G=>{G.style.webkitTransition="",G.style.transition="",_&&_(G)}),X=G=>{o&&o(j.current,G)},Z=z.useCallback(()=>{j.current&&xs(f,j.current,u)},[f,u]);return z.useEffect(()=>{if(h||f==="down"||f==="right")return;const G=z4(()=>{j.current&&xs(f,j.current,u)}),Q=sv(j.current);return Q.addEventListener("resize",G),()=>{G.clear(),Q.removeEventListener("resize",G)}},[f,h,u]),z.useEffect(()=>{h||Z()},[h,Z]),y.jsx(O,be({nodeRef:j,onEnter:B,onEntered:D,onEntering:M,onExit:Y,onExited:V,onExiting:W,addEndListener:X,appear:s,in:h,timeout:A},w,{children:(G,Q)=>z.cloneElement(l,be({ref:T,style:be({visibility:G==="exited"&&!h?"hidden":void 0},C,l.props.style)},Q))}))}),Ei=E8;function M8(e){return Nd("MuiFormControlLabel",e)}const $8=Ld("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),$a=$8,I8=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],D8=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:a}=e,o={root:["root",n&&"disabled",`labelPlacement${Jt(r)}`,i&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return Bd(o,M8,t)},L8=Yn("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${$a.label}`]:t.label},t.root,t[`labelPlacement${Jt(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>be({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${$a.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${$a.label}`]:{[`&.${$a.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),N8=Yn("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${$a.error}`]:{color:(e.vars||e).palette.error.main}})),R8=z.forwardRef(function(t,n){var r,i;const a=Rd({props:t,name:"MuiFormControlLabel"}),{className:o,componentsProps:s={},control:l,disabled:u,disableTypography:f,label:d,labelPlacement:h="end",required:m,slotProps:g={}}=a,v=Ul(a,I8),b=H4(),_=(r=u??l.props.disabled)!=null?r:b==null?void 0:b.disabled,k=m??l.props.required,C={disabled:_,required:k};["checked","name","onChange","value","inputRef"].forEach(I=>{typeof l.props[I]>"u"&&typeof a[I]<"u"&&(C[I]=a[I])});const A=U4({props:a,muiFormControl:b,states:["error"]}),O=be({},a,{disabled:_,labelPlacement:h,required:k,error:A.error}),w=D8(O),j=(i=g.typography)!=null?i:s.typography;let T=d;return T!=null&&T.type!==r1&&!f&&(T=y.jsx(r1,be({component:"span"},j,{className:ir(w.label,j==null?void 0:j.className),children:T}))),y.jsxs(L8,be({className:ir(w.root,o),ownerState:O,ref:n},v,{children:[z.cloneElement(l,C),k?y.jsxs(W4,{display:"block",children:[T,y.jsxs(N8,{ownerState:O,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]}):T]}))}),l1=R8,B8=e=>!e||!Bs(e),z8=B8;function F8(e){return Nd("MuiSlider",e)}const H8=Ld("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),En=H8,U8=e=>{const{open:t}=e;return{offset:ir(t&&En.valueLabelOpen),circle:En.valueLabelCircle,label:En.valueLabelLabel}};function W8(e){const{children:t,className:n,value:r}=e,i=U8(e);return t?z.cloneElement(t,{className:ir(t.props.className)},y.jsxs(z.Fragment,{children:[t.props.children,y.jsx("span",{className:ir(i.offset,n),"aria-hidden":!0,children:y.jsx("span",{className:i.circle,children:y.jsx("span",{className:i.label,children:r})})})]})):null}const Y8=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function u1(e){return e}const V8=Yn("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Jt(n.color)}`],n.size!=="medium"&&t[`size${Jt(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>be({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&be({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&be({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${En.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${En.dragging}`]:{[`& .${En.thumb}, & .${En.track}`]:{transition:"none"}}})),G8=Yn("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>be({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),q8=Yn("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?a4(e.palette[t.color].main,.62):o4(e.palette[t.color].main,.5);return be({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),K8=Yn("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${Jt(n.color)}`],n.size!=="medium"&&t[`thumbSize${Jt(n.size)}`]]}})(({theme:e,ownerState:t})=>be({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":be({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${En.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:lf(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${En.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:lf(e.palette[t.color].main,.16)}`},[`&.${En.disabled}`]:{"&:hover":{boxShadow:"none"}}})),X8=Yn(W8,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>be({[`&.${En.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"30px",top:"50%",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),Z8=Yn("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Gg(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>be({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),J8=Yn("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Gg(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>be({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),Q8=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:a,classes:o,color:s,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",s&&`color${Jt(s)}`,l&&`size${Jt(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${Jt(l)}`,s&&`thumbColor${Jt(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Bd(u,F8,o)},e9=({children:e})=>e,t9=z.forwardRef(function(t,n){var r,i,a,o,s,l,u,f,d,h,m,g,v,b,_,k,C,A,O,w,j,T,I,B;const M=Rd({props:t,name:"MuiSlider"}),W=zd().direction==="rtl",{"aria-label":Y,"aria-valuetext":V,"aria-labelledby":X,component:Z="span",components:G={},componentsProps:Q={},color:E="primary",classes:pe,className:ue,disableSwap:$=!1,disabled:_e=!1,getAriaLabel:te,getAriaValueText:ge,marks:Ye=!1,max:Me=100,min:ae=0,orientation:de="horizontal",size:ve="medium",step:ee=1,scale:Ae=u1,slotProps:he,slots:xe,track:He="normal",valueLabelDisplay:rt="off",valueLabelFormat:ft=u1}=M,tn=Ul(M,Y8),Ue=be({},M,{isRtl:W,max:Me,min:ae,classes:pe,disabled:_e,disableSwap:$,orientation:de,marks:Ye,color:E,size:ve,step:ee,scale:Ae,track:He,valueLabelDisplay:rt,valueLabelFormat:ft}),{axisProps:Ne,getRootProps:it,getHiddenInputProps:nn,getThumbProps:Cn,open:N,active:q,axis:ne,focusedThumbIndex:se,range:oe,dragging:Re,marks:ke,values:$e,trackOffset:Ge,trackLeap:kt,getThumbStyle:ht}=p8(be({},Ue,{rootRef:n}));Ue.marked=ke.length>0&&ke.some(je=>je.label),Ue.dragging=Re,Ue.focusedThumbIndex=se;const Ie=Q8(Ue),It=(r=(i=xe==null?void 0:xe.root)!=null?i:G.Root)!=null?r:V8,oi=(a=(o=xe==null?void 0:xe.rail)!=null?o:G.Rail)!=null?a:G8,Rr=(s=(l=xe==null?void 0:xe.track)!=null?l:G.Track)!=null?s:q8,qe=(u=(f=xe==null?void 0:xe.thumb)!=null?f:G.Thumb)!=null?u:K8,ua=(d=(h=xe==null?void 0:xe.valueLabel)!=null?h:G.ValueLabel)!=null?d:X8,si=(m=(g=xe==null?void 0:xe.mark)!=null?g:G.Mark)!=null?m:Z8,hr=(v=(b=xe==null?void 0:xe.markLabel)!=null?b:G.MarkLabel)!=null?v:J8,li=(_=(k=xe==null?void 0:xe.input)!=null?k:G.Input)!=null?_:"input",pr=(C=he==null?void 0:he.root)!=null?C:Q.root,mr=(A=he==null?void 0:he.rail)!=null?A:Q.rail,yr=(O=he==null?void 0:he.track)!=null?O:Q.track,ca=(w=he==null?void 0:he.thumb)!=null?w:Q.thumb,gr=(j=he==null?void 0:he.valueLabel)!=null?j:Q.valueLabel,Wu=(T=he==null?void 0:he.mark)!=null?T:Q.mark,Br=(I=he==null?void 0:he.markLabel)!=null?I:Q.markLabel,ui=(B=he==null?void 0:he.input)!=null?B:Q.input,ce=wr({elementType:It,getSlotProps:it,externalSlotProps:pr,externalForwardedProps:tn,additionalProps:be({},z8(It)&&{as:Z}),ownerState:be({},Ue,pr==null?void 0:pr.ownerState),className:[Ie.root,ue]}),Yu=wr({elementType:oi,externalSlotProps:mr,ownerState:Ue,className:Ie.rail}),Vu=wr({elementType:Rr,externalSlotProps:yr,additionalProps:{style:be({},Ne[ne].offset(Ge),Ne[ne].leap(kt))},ownerState:be({},Ue,yr==null?void 0:yr.ownerState),className:Ie.track}),Tt=wr({elementType:qe,getSlotProps:Cn,externalSlotProps:ca,ownerState:be({},Ue,ca==null?void 0:ca.ownerState),className:Ie.thumb}),fa=wr({elementType:ua,externalSlotProps:gr,ownerState:be({},Ue,gr==null?void 0:gr.ownerState),className:Ie.valueLabel}),Be=wr({elementType:si,externalSlotProps:Wu,ownerState:Ue,className:Ie.mark}),Vn=wr({elementType:hr,externalSlotProps:Br,ownerState:Ue,className:Ie.markLabel}),Gu=wr({elementType:li,getSlotProps:nn,externalSlotProps:ui,ownerState:Ue});return y.jsxs(It,be({},ce,{children:[y.jsx(oi,be({},Yu)),y.jsx(Rr,be({},Vu)),ke.filter(je=>je.value>=ae&&je.value<=Me).map((je,Je)=>{const Kt=Ys(je.value,ae,Me),lt=Ne[ne].offset(Kt);let mt;return He===!1?mt=$e.indexOf(je.value)!==-1:mt=He==="normal"&&(oe?je.value>=$e[0]&&je.value<=$e[$e.length-1]:je.value<=$e[0])||He==="inverted"&&(oe?je.value<=$e[0]||je.value>=$e[$e.length-1]:je.value>=$e[0]),y.jsxs(z.Fragment,{children:[y.jsx(si,be({"data-index":Je},Be,!Bs(si)&&{markActive:mt},{style:be({},lt,Be.style),className:ir(Be.className,mt&&Ie.markActive)})),je.label!=null?y.jsx(hr,be({"aria-hidden":!0,"data-index":Je},Vn,!Bs(hr)&&{markLabelActive:mt},{style:be({},lt,Vn.style),className:ir(Ie.markLabel,Vn.className,mt&&Ie.markLabelActive),children:je.label})):null]},Je)}),$e.map((je,Je)=>{const Kt=Ys(je,ae,Me),lt=Ne[ne].offset(Kt),mt=rt==="off"?e9:ua;return y.jsx(mt,be({},!Bs(mt)&&{valueLabelFormat:ft,valueLabelDisplay:rt,value:typeof ft=="function"?ft(Ae(je),Je):ft,index:Je,open:N===Je||q===Je||rt==="on",disabled:_e},fa,{children:y.jsx(qe,be({"data-index":Je},Tt,{className:ir(Ie.thumb,Tt.className,q===Je&&Ie.active,se===Je&&Ie.focusVisible),style:be({},lt,ht(Je),Tt.style),children:y.jsx(li,be({"data-index":Je,"aria-label":te?te(Je):Y,"aria-valuenow":Ae(je),"aria-labelledby":X,"aria-valuetext":ge?ge(Ae(je),Je):V,value:$e[Je]},Gu))}))}),Je)})]}))}),Kl=t9,n9=(e,t="down")=>{const n=zd(),[r,i]=z.useState(!1),a=n.breakpoints[t](e).split("@media")[1].trim();return z.useEffect(()=>{const o=()=>{const{matches:s}=window.matchMedia(a);i(s)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[a]),r},r9=e=>e.filter(t=>t.tldr).length>=2&&e.some(t=>t.audio_EN);function i9(e){return e.tldr_topic??e.name}var Vs=globalThis&&globalThis.__assign||function(){return Vs=Object.assign||function(e){for(var t,n=1,r=arguments.length;ny.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"keyboard_arrow_left",children:[y.jsx("mask",{id:"mask0_1428_267",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"18",height:"18",children:y.jsx("path",{id:"Bounding box",d:"M0 0H18V18H0V0Z",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_1428_267)",children:y.jsx("path",{id:"keyboard_arrow_left_2",d:"M8.10001 8.99998L11.025 11.925C11.1625 12.0625 11.2313 12.2375 11.2313 12.45C11.2313 12.6625 11.1625 12.8375 11.025 12.975C10.8875 13.1125 10.7125 13.1812 10.5 13.1812C10.2875 13.1812 10.1125 13.1125 9.97501 12.975L6.52501 9.52498C6.45001 9.44998 6.39688 9.36873 6.36563 9.28123C6.33438 9.19373 6.31876 9.09998 6.31876 8.99998C6.31876 8.89998 6.33438 8.80623 6.36563 8.71873C6.39688 8.63123 6.45001 8.54998 6.52501 8.47498L9.97501 5.02498C10.1125 4.88748 10.2875 4.81873 10.5 4.81873C10.7125 4.81873 10.8875 4.88748 11.025 5.02498C11.1625 5.16248 11.2313 5.33748 11.2313 5.54998C11.2313 5.76248 11.1625 5.93748 11.025 6.07498L8.10001 8.99998Z",fill:"currentColor"})})]})}),l9=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"arrow_forward",children:[y.jsx("mask",{id:"mask0_8980_24763",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:y.jsx("rect",{id:"Bounding box",x:"20",y:"20",width:"1em",height:"1em",transform:"rotate(-180 20 20)",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_8980_24763)",children:y.jsx("path",{id:"arrow_forward_2",d:"M7.52981 10.4372L16.0625 10.4372C16.2221 10.4372 16.3558 10.4911 16.4635 10.5988C16.5712 10.7065 16.625 10.8401 16.625 10.9997C16.625 11.1593 16.5712 11.293 16.4635 11.4007C16.3558 11.5084 16.2221 11.5622 16.0625 11.5622L7.52981 11.5622L11.4067 15.4391C11.5183 15.5507 11.5733 15.6812 11.5719 15.8307C11.5704 15.9802 11.5115 16.1132 11.3952 16.2295C11.2789 16.3382 11.1471 16.3944 11 16.3983C10.8529 16.4021 10.7212 16.3459 10.6048 16.2295L5.84956 11.4742C5.77938 11.404 5.72986 11.33 5.70101 11.2521C5.67216 11.1742 5.65773 11.0901 5.65773 10.9997C5.65773 10.9093 5.67216 10.8252 5.70101 10.7473C5.72986 10.6694 5.77938 10.5954 5.84956 10.5252L10.6048 5.76993C10.7087 5.66608 10.8373 5.61295 10.9906 5.61055C11.144 5.60815 11.2789 5.66128 11.3952 5.76993C11.5115 5.88626 11.5697 6.01992 11.5697 6.17088C11.5697 6.32184 11.5115 6.45549 11.3952 6.57183L7.52981 10.4372Z",fill:"currentColor"})})]})}),u9=H.input.attrs(()=>({autoCorrect:"off",autoComplete:"off"}))` pointer-events: auto; height: 48px; padding: 0 40px 0 18px; @@ -647,7 +647,7 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=W3,r.max=Y3,r.now=V3,r.utc=g,r.uni width: 9px; font-size: 10px; } -`,kS=H(R4)` +`,kS=H(B4)` .MuiPaper-root { background: ${R.BUTTON1}; min-width: 149px; @@ -1101,7 +1101,7 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=W3,r.max=Y3,r.now=V3,r.utc=g,r.uni `,XC=H.audio` height: 0; width: 0; -`,ZC=()=>{const{isFetching:e,setSidebarFilter:t}=Sn(T=>T),[n,r]=z4(T=>[T.schemas,T.setSchemas]),i=Ro(),a=Zg(),{currentSearch:o,clearSearch:s,searchFormValue:l}=Bt(T=>T),[u]=c4(T=>[T.trendingTopicsFeatureFlag]),{setValue:f,watch:d}=Ud(),h=z.useRef(null),[m,g]=z.useState(!1),[v,b]=z.useState(!1),[_,k]=z.useState(null),[C,A]=z.useState(!1);z.useEffect(()=>{f("search",l)},[f,l]),z.useEffect(()=>{const T=h.current;if(!T)return;const I=()=>{g((T==null?void 0:T.scrollTop)>0)};T.addEventListener("scroll",I)},[]);const O=d("search");z.useEffect(()=>{(async()=>{try{const I=await f4();r(I.schemas.filter(B=>!B.is_deleted))}catch(I){console.error("Error fetching schema:",I)}})()},[r]);const w=T=>{k(v?null:T.currentTarget),b(I=>!I),A(!1)},j=Wl();return y.jsxs(y.Fragment,{children:[y.jsxs(sx,{className:zn({"has-shadow":m}),children:[y.jsxs(rP,{children:[y.jsxs(JC,{children:[y.jsx(hv,{}),y.jsx(eP,{"data-testid":"search_action_icon",onClick:()=>{if(o){f("search",""),s(),t("all"),i(null),j("/");return}if(O.trim()==="")return;const T=O.replace(/\s+/g,"+");j(`/search?q=${T}`)},children:e?y.jsx(ql,{color:R.SECONDARY_BLUE,"data-testid":"loader",size:"20"}):y.jsx(y.Fragment,{children:o!=null&&o.trim()?y.jsx(rv,{}):y.jsx(av,{})})})]}),y.jsx(iP,{"data-testid":"search_filter_icon",isFilterOpen:v,onClick:w,children:v?y.jsx(YS,{}):y.jsx(VS,{})}),y.jsx(TS,{anchorEl:_,schemaAll:n,setShowAllSchemas:A,showAllSchemas:C})]}),o&&y.jsx(QC,{children:e?y.jsx(GS,{}):y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"left",children:[y.jsx("span",{className:"count",children:a.length}),y.jsx("span",{className:"label",children:" results"})]}),y.jsx("div",{className:"right",style:{alignItems:"center"},children:y.jsx(SS,{})})]})})]}),y.jsxs(tP,{ref:h,children:[!o&&u&&y.jsx(nP,{children:y.jsx(UC,{})}),!o&&y.jsx(QS,{}),e?y.jsx(mv,{}):y.jsx(n_,{isSearchResult:!!o})]})]})},sx=H(F).attrs({direction:"column",justify:"center",align:"stretch"})(({theme:e})=>({padding:e.spacing(3.75,2),[e.breakpoints.up("sm")]:{padding:"12px"},"&.has-shadow":{borderBottom:"1px solid rgba(0, 0, 0, 0.25)",background:R.BG1,boxShadow:"0px 1px 6px 0px rgba(0, 0, 0, 0.20)"}})),JC=H(F).attrs({direction:"row",justify:"center",align:"center"})` +`,ZC=()=>{const{isFetching:e,setSidebarFilter:t}=Sn(T=>T),[n,r]=D4(T=>[T.schemas,T.setSchemas]),i=Ro(),a=Zg(),{currentSearch:o,clearSearch:s,searchFormValue:l}=Bt(T=>T),[u]=c4(T=>[T.trendingTopicsFeatureFlag]),{setValue:f,watch:d}=Ud(),h=z.useRef(null),[m,g]=z.useState(!1),[v,b]=z.useState(!1),[_,k]=z.useState(null),[C,A]=z.useState(!1);z.useEffect(()=>{f("search",l)},[f,l]),z.useEffect(()=>{const T=h.current;if(!T)return;const I=()=>{g((T==null?void 0:T.scrollTop)>0)};T.addEventListener("scroll",I)},[]);const O=d("search");z.useEffect(()=>{(async()=>{try{const I=await f4();r(I.schemas.filter(B=>!B.is_deleted))}catch(I){console.error("Error fetching schema:",I)}})()},[r]);const w=T=>{k(v?null:T.currentTarget),b(I=>!I),A(!1)},j=Wl();return y.jsxs(y.Fragment,{children:[y.jsxs(sx,{className:zn({"has-shadow":m}),children:[y.jsxs(rP,{children:[y.jsxs(JC,{children:[y.jsx(hv,{}),y.jsx(eP,{"data-testid":"search_action_icon",onClick:()=>{if(o){f("search",""),s(),t("all"),i(null),j("/");return}if(O.trim()==="")return;const T=O.replace(/\s+/g,"+");j(`/search?q=${T}`)},children:e?y.jsx(ql,{color:R.SECONDARY_BLUE,"data-testid":"loader",size:"20"}):y.jsx(y.Fragment,{children:o!=null&&o.trim()?y.jsx(rv,{}):y.jsx(av,{})})})]}),y.jsx(iP,{"data-testid":"search_filter_icon",isFilterOpen:v,onClick:w,children:v?y.jsx(YS,{}):y.jsx(VS,{})}),y.jsx(TS,{anchorEl:_,schemaAll:n,setShowAllSchemas:A,showAllSchemas:C})]}),o&&y.jsx(QC,{children:e?y.jsx(GS,{}):y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"left",children:[y.jsx("span",{className:"count",children:a.length}),y.jsx("span",{className:"label",children:" results"})]}),y.jsx("div",{className:"right",style:{alignItems:"center"},children:y.jsx(SS,{})})]})})]}),y.jsxs(tP,{ref:h,children:[!o&&u&&y.jsx(nP,{children:y.jsx(UC,{})}),!o&&y.jsx(QS,{}),e?y.jsx(mv,{}):y.jsx(n_,{isSearchResult:!!o})]})]})},sx=H(F).attrs({direction:"column",justify:"center",align:"stretch"})(({theme:e})=>({padding:e.spacing(3.75,2),[e.breakpoints.up("sm")]:{padding:"12px"},"&.has-shadow":{borderBottom:"1px solid rgba(0, 0, 0, 0.25)",background:R.BG1,boxShadow:"0px 1px 6px 0px rgba(0, 0, 0, 0.20)"}})),JC=H(F).attrs({direction:"row",justify:"center",align:"center"})` width: 85%; `,QC=H(F).attrs({direction:"row",justify:"space-between",align:"center"})` flex-grow: 1; @@ -1732,7 +1732,7 @@ ${({disabled:e})=>e&&qg` `,qK=H.audio` height: 0; width: 0; -`,KK=()=>{const e=qt(),{setPlayingNode:t}=Gl(n=>n);switch(z.useEffect(()=>{var r,i;if(!e)return;(e.media_url||e.link||((r=e.properties)==null?void 0:r.link)||((i=e.properties)==null?void 0:i.media_url))&&t(e)},[t,e]),e==null?void 0:e.node_type){case"guest":case"person":return y.jsx(gK,{});case"data_series":return y.jsx(pq,{});case"tribe_message":return y.jsx(hK,{});case"Tweet":return y.jsx(PK,{});case"topic":return y.jsx(CK,{});case"show":return y.jsx(kK,{});case"video":case"podcast":case"clip":case"twitter_space":return y.jsx(Y2,{});case"document":return y.jsx(UK,{});case"episode":return y.jsx(lK,{},e.ref_id);case"image":return y.jsx(dK,{});default:return y.jsx(IK,{})}},XK=z.memo(KK);var ZK=function(t,n,r){var i=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");typeof n=="function"&&(r=n,n={}),n=n||{},r=r||function(){},a.type=n.type||"text/javascript",a.charset=n.charset||"utf8",a.async="async"in n?!!n.async:!0,a.src=t,n.attrs&&JK(a,n.attrs),n.text&&(a.text=""+n.text);var o="onload"in a?Rg:QK;o(a,r),a.onload||Rg(a,r),i.appendChild(a)};function JK(e,t){for(var n in t)e.setAttribute(n,t[n])}function Rg(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function QK(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var eX=function(t){return tX(t)&&!nX(t)};function tX(e){return!!e&&typeof e=="object"}function nX(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||aX(e)}var rX=typeof Symbol=="function"&&Symbol.for,iX=rX?Symbol.for("react.element"):60103;function aX(e){return e.$$typeof===iX}function oX(e){return Array.isArray(e)?[]:{}}function Lo(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Zi(oX(e),e,t):e}function sX(e,t,n){return e.concat(t).map(function(r){return Lo(r,n)})}function lX(e,t){if(!t.customMerge)return Zi;var n=t.customMerge(e);return typeof n=="function"?n:Zi}function uX(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Bg(e){return Object.keys(e).concat(uX(e))}function V2(e,t){try{return t in e}catch{return!1}}function cX(e,t){return V2(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function fX(e,t,n){var r={};return n.isMergeableObject(e)&&Bg(e).forEach(function(i){r[i]=Lo(e[i],n)}),Bg(t).forEach(function(i){cX(e,i)||(V2(e,i)&&n.isMergeableObject(t[i])?r[i]=lX(i,n)(e[i],t[i],n):r[i]=Lo(t[i],n))}),r}function Zi(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||sX,n.isMergeableObject=n.isMergeableObject||eX,n.cloneUnlessOtherwiseSpecified=Lo;var r=Array.isArray(t),i=Array.isArray(e),a=r===i;return a?r?n.arrayMerge(e,t,n):fX(e,t,n):Lo(t,n)}Zi.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Zi(r,i,n)},{})};var dX=Zi,G2=dX,hX=Object.create,Bu=Object.defineProperty,pX=Object.getOwnPropertyDescriptor,mX=Object.getOwnPropertyNames,yX=Object.getPrototypeOf,gX=Object.prototype.hasOwnProperty,vX=(e,t)=>{for(var n in t)Bu(e,n,{get:t[n],enumerable:!0})},q2=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of mX(t))!gX.call(e,i)&&i!==n&&Bu(e,i,{get:()=>t[i],enumerable:!(r=pX(t,i))||r.enumerable});return e},dp=(e,t,n)=>(n=e!=null?hX(yX(e)):{},q2(t||!e||!e.__esModule?Bu(n,"default",{value:e,enumerable:!0}):n,e)),xX=e=>q2(Bu({},"__esModule",{value:!0}),e),K2={};vX(K2,{callPlayer:()=>DX,getConfig:()=>$X,getSDK:()=>MX,isBlobUrl:()=>NX,isMediaStream:()=>LX,lazy:()=>_X,omit:()=>IX,parseEndTime:()=>jX,parseStartTime:()=>AX,queryString:()=>EX,randomString:()=>TX,supportsWebKitPresentationMode:()=>RX});var zu=xX(K2),bX=dp(z),wX=dp(ZK),SX=dp(G2);const _X=e=>bX.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),OX=/[?&#](?:start|t)=([0-9hms]+)/,kX=/[?&#]end=([0-9hms]+)/,Md=/(\d+)(h|m|s)/g,CX=/^\d+$/;function X2(e,t){if(e instanceof Array)return;const n=e.match(t);if(n){const r=n[1];if(r.match(Md))return PX(r);if(CX.test(r))return parseInt(r)}}function PX(e){let t=0,n=Md.exec(e);for(;n!==null;){const[,r,i]=n;i==="h"&&(t+=parseInt(r,10)*60*60),i==="m"&&(t+=parseInt(r,10)*60),i==="s"&&(t+=parseInt(r,10)),n=Md.exec(e)}return t}function AX(e){return X2(e,OX)}function jX(e){return X2(e,kX)}function TX(){return Math.random().toString(36).substr(2,5)}function EX(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function af(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}const vi={},MX=function(t,n,r=null,i=()=>!0,a=wX.default){const o=af(n);return o&&i(o)?Promise.resolve(o):new Promise((s,l)=>{if(vi[t]){vi[t].push({resolve:s,reject:l});return}vi[t]=[{resolve:s,reject:l}];const u=f=>{vi[t].forEach(d=>d.resolve(f))};if(r){const f=window[r];window[r]=function(){f&&f(),u(af(n))}}a(t,f=>{f?(vi[t].forEach(d=>d.reject(f)),vi[t]=null):r||u(af(n))})})};function $X(e,t){return(0,SX.default)(t.config,e.config)}function IX(e,...t){const n=[].concat(...t),r={},i=Object.keys(e);for(const a of i)n.indexOf(a)===-1&&(r[a]=e[a]);return r}function DX(e,...t){if(!this.player||!this.player[e]){let n=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c – `;return this.player?this.player[e]||(n+="The method was not available"):n+="The player was not available",console.warn(n,"font-weight: bold",""),null}return this.player[e](...t)}function LX(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function NX(e){return/^blob:/.test(e)}function RX(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var hp=Object.defineProperty,BX=Object.getOwnPropertyDescriptor,zX=Object.getOwnPropertyNames,FX=Object.prototype.hasOwnProperty,HX=(e,t)=>{for(var n in t)hp(e,n,{get:t[n],enumerable:!0})},UX=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of zX(t))!FX.call(e,i)&&i!==n&&hp(e,i,{get:()=>t[i],enumerable:!(r=BX(t,i))||r.enumerable});return e},WX=e=>UX(hp({},"__esModule",{value:!0}),e),Z2={};HX(Z2,{AUDIO_EXTENSIONS:()=>pp,DASH_EXTENSIONS:()=>cw,FLV_EXTENSIONS:()=>fw,HLS_EXTENSIONS:()=>yp,MATCH_URL_DAILYMOTION:()=>ow,MATCH_URL_FACEBOOK:()=>ew,MATCH_URL_FACEBOOK_WATCH:()=>tw,MATCH_URL_KALTURA:()=>uw,MATCH_URL_MIXCLOUD:()=>sw,MATCH_URL_SOUNDCLOUD:()=>J2,MATCH_URL_STREAMABLE:()=>nw,MATCH_URL_TWITCH_CHANNEL:()=>aw,MATCH_URL_TWITCH_VIDEO:()=>iw,MATCH_URL_VIDYARD:()=>lw,MATCH_URL_VIMEO:()=>Q2,MATCH_URL_WISTIA:()=>rw,MATCH_URL_YOUTUBE:()=>$d,VIDEO_EXTENSIONS:()=>mp,canPlay:()=>VX});var YX=WX(Z2),zg=zu;const $d=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,J2=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,Q2=/vimeo\.com\/(?!progressive_redirect).+/,ew=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,tw=/^https?:\/\/fb\.watch\/.+$/,nw=/streamable\.com\/([a-z0-9]+)$/,rw=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,iw=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,aw=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,ow=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,sw=/mixcloud\.com\/([^/]+\/[^/]+)/,lw=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,uw=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,pp=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,mp=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,yp=/\.(m3u8)($|\?)/i,cw=/\.(mpd)($|\?)/i,fw=/\.(flv)($|\?)/i,Id=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&Id(t)||Id(t.src))return!0;return!1}return(0,zg.isMediaStream)(e)||(0,zg.isBlobUrl)(e)?!0:pp.test(e)||mp.test(e)||yp.test(e)||cw.test(e)||fw.test(e)},VX={youtube:e=>e instanceof Array?e.every(t=>$d.test(t)):$d.test(e),soundcloud:e=>J2.test(e)&&!pp.test(e),vimeo:e=>Q2.test(e)&&!mp.test(e)&&!yp.test(e),facebook:e=>ew.test(e)||tw.test(e),streamable:e=>nw.test(e),wistia:e=>rw.test(e),twitch:e=>iw.test(e)||aw.test(e),dailymotion:e=>ow.test(e),mixcloud:e=>sw.test(e),vidyard:e=>lw.test(e),kaltura:e=>uw.test(e),file:Id};var gp=Object.defineProperty,GX=Object.getOwnPropertyDescriptor,qX=Object.getOwnPropertyNames,KX=Object.prototype.hasOwnProperty,XX=(e,t)=>{for(var n in t)gp(e,n,{get:t[n],enumerable:!0})},ZX=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of qX(t))!KX.call(e,i)&&i!==n&&gp(e,i,{get:()=>t[i],enumerable:!(r=GX(t,i))||r.enumerable});return e},JX=e=>ZX(gp({},"__esModule",{value:!0}),e),dw={};XX(dw,{default:()=>eZ});var QX=JX(dw),rn=zu,Xt=YX,eZ=[{key:"youtube",name:"YouTube",canPlay:Xt.canPlay.youtube,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./YouTube-6ce9a547.js").then(e=>e.Y),["assets/YouTube-6ce9a547.js","assets/index-21067c9d.js","assets/index-a2878e02.css"]))},{key:"soundcloud",name:"SoundCloud",canPlay:Xt.canPlay.soundcloud,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./SoundCloud-43839928.js").then(e=>e.S),["assets/SoundCloud-43839928.js","assets/index-21067c9d.js","assets/index-a2878e02.css"]))},{key:"vimeo",name:"Vimeo",canPlay:Xt.canPlay.vimeo,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./Vimeo-2200abd5.js").then(e=>e.V),["assets/Vimeo-2200abd5.js","assets/index-21067c9d.js","assets/index-a2878e02.css"]))},{key:"facebook",name:"Facebook",canPlay:Xt.canPlay.facebook,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./Facebook-5af94284.js").then(e=>e.F),["assets/Facebook-5af94284.js","assets/index-21067c9d.js","assets/index-a2878e02.css"]))},{key:"streamable",name:"Streamable",canPlay:Xt.canPlay.streamable,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./Streamable-bfbc2d5d.js").then(e=>e.S),["assets/Streamable-bfbc2d5d.js","assets/index-21067c9d.js","assets/index-a2878e02.css"]))},{key:"wistia",name:"Wistia",canPlay:Xt.canPlay.wistia,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./Wistia-0be26dcd.js").then(e=>e.W),["assets/Wistia-0be26dcd.js","assets/index-21067c9d.js","assets/index-a2878e02.css"]))},{key:"twitch",name:"Twitch",canPlay:Xt.canPlay.twitch,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./Twitch-967d8a02.js").then(e=>e.T),["assets/Twitch-967d8a02.js","assets/index-21067c9d.js","assets/index-a2878e02.css"]))},{key:"dailymotion",name:"DailyMotion",canPlay:Xt.canPlay.dailymotion,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./DailyMotion-0610dd77.js").then(e=>e.D),["assets/DailyMotion-0610dd77.js","assets/index-21067c9d.js","assets/index-a2878e02.css"]))},{key:"mixcloud",name:"Mixcloud",canPlay:Xt.canPlay.mixcloud,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./Mixcloud-1ee1d636.js").then(e=>e.M),["assets/Mixcloud-1ee1d636.js","assets/index-21067c9d.js","assets/index-a2878e02.css"]))},{key:"vidyard",name:"Vidyard",canPlay:Xt.canPlay.vidyard,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./Vidyard-bf15707d.js").then(e=>e.V),["assets/Vidyard-bf15707d.js","assets/index-21067c9d.js","assets/index-a2878e02.css"]))},{key:"kaltura",name:"Kaltura",canPlay:Xt.canPlay.kaltura,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./Kaltura-1ff524f5.js").then(e=>e.K),["assets/Kaltura-1ff524f5.js","assets/index-21067c9d.js","assets/index-a2878e02.css"]))},{key:"file",name:"FilePlayer",canPlay:Xt.canPlay.file,canEnablePIP:e=>Xt.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,rn.supportsWebKitPresentationMode)())&&!Xt.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./FilePlayer-231028e2.js").then(e=>e.F),["assets/FilePlayer-231028e2.js","assets/index-21067c9d.js","assets/index-a2878e02.css"]))}],Fg=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function tZ(e,t){return!!(e===t||Fg(e)&&Fg(t))}function nZ(e,t){if(e.length!==t.length)return!1;for(var n=0;n{for(var n in t)Fu(e,n,{get:t[n],enumerable:!0})},pw=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of dZ(t))!pZ.call(e,i)&&i!==n&&Fu(e,i,{get:()=>t[i],enumerable:!(r=fZ(t,i))||r.enumerable});return e},yZ=(e,t,n)=>(n=e!=null?cZ(hZ(e)):{},pw(t||!e||!e.__esModule?Fu(n,"default",{value:e,enumerable:!0}):n,e)),gZ=e=>pw(Fu({},"__esModule",{value:!0}),e),mw={};mZ(mw,{defaultProps:()=>bZ,propTypes:()=>xZ});var yw=gZ(mw),vZ=yZ(P4);const{string:Ut,bool:Wt,number:xi,array:of,oneOfType:Ea,shape:mn,object:Yt,func:wt,node:Hg}=vZ.default,xZ={url:Ea([Ut,of,Yt]),playing:Wt,loop:Wt,controls:Wt,volume:xi,muted:Wt,playbackRate:xi,width:Ea([Ut,xi]),height:Ea([Ut,xi]),style:Yt,progressInterval:xi,playsinline:Wt,pip:Wt,stopOnUnmount:Wt,light:Ea([Wt,Ut,Yt]),playIcon:Hg,previewTabIndex:xi,fallback:Hg,oEmbedUrl:Ut,wrapper:Ea([Ut,wt,mn({render:wt.isRequired})]),config:mn({soundcloud:mn({options:Yt}),youtube:mn({playerVars:Yt,embedOptions:Yt,onUnstarted:wt}),facebook:mn({appId:Ut,version:Ut,playerId:Ut,attributes:Yt}),dailymotion:mn({params:Yt}),vimeo:mn({playerOptions:Yt,title:Ut}),file:mn({attributes:Yt,tracks:of,forceVideo:Wt,forceAudio:Wt,forceHLS:Wt,forceSafariHLS:Wt,forceDisableHls:Wt,forceDASH:Wt,forceFLV:Wt,hlsOptions:Yt,hlsVersion:Ut,dashVersion:Ut,flvVersion:Ut}),wistia:mn({options:Yt,playerId:Ut,customControls:of}),mixcloud:mn({options:Yt}),twitch:mn({options:Yt,playerId:Ut}),vidyard:mn({options:Yt})}),onReady:wt,onStart:wt,onPlay:wt,onPause:wt,onBuffer:wt,onBufferEnd:wt,onEnded:wt,onError:wt,onDuration:wt,onSeek:wt,onPlaybackRateChange:wt,onPlaybackQualityChange:wt,onProgress:wt,onClickPreview:wt,onEnablePIP:wt,onDisablePIP:wt},Et=()=>{},bZ={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:Et},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:Et,onStart:Et,onPlay:Et,onPause:Et,onBuffer:Et,onBufferEnd:Et,onEnded:Et,onError:Et,onDuration:Et,onSeek:Et,onPlaybackRateChange:Et,onPlaybackQualityChange:Et,onProgress:Et,onClickPreview:Et,onEnablePIP:Et,onDisablePIP:Et};var wZ=Object.create,es=Object.defineProperty,SZ=Object.getOwnPropertyDescriptor,_Z=Object.getOwnPropertyNames,OZ=Object.getPrototypeOf,kZ=Object.prototype.hasOwnProperty,CZ=(e,t,n)=>t in e?es(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,PZ=(e,t)=>{for(var n in t)es(e,n,{get:t[n],enumerable:!0})},gw=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of _Z(t))!kZ.call(e,i)&&i!==n&&es(e,i,{get:()=>t[i],enumerable:!(r=SZ(t,i))||r.enumerable});return e},vw=(e,t,n)=>(n=e!=null?wZ(OZ(e)):{},gw(t||!e||!e.__esModule?es(n,"default",{value:e,enumerable:!0}):n,e)),AZ=e=>gw(es({},"__esModule",{value:!0}),e),vt=(e,t,n)=>(CZ(e,typeof t!="symbol"?t+"":t,n),n),xw={};PZ(xw,{default:()=>Hu});var jZ=AZ(xw),Ug=vw(z),TZ=vw(hw),bw=yw,EZ=zu;const MZ=5e3;class Hu extends Ug.Component{constructor(){super(...arguments),vt(this,"mounted",!1),vt(this,"isReady",!1),vt(this,"isPlaying",!1),vt(this,"isLoading",!0),vt(this,"loadOnReady",null),vt(this,"startOnPlay",!0),vt(this,"seekOnPlay",null),vt(this,"onDurationCalled",!1),vt(this,"handlePlayerMount",t=>{if(this.player){this.progress();return}this.player=t,this.player.load(this.props.url),this.progress()}),vt(this,"getInternalPlayer",t=>this.player?this.player[t]:null),vt(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const t=this.getCurrentTime()||0,n=this.getSecondsLoaded(),r=this.getDuration();if(r){const i={playedSeconds:t,played:t/r};n!==null&&(i.loadedSeconds=n,i.loaded=n/r),(i.playedSeconds!==this.prevPlayed||i.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(i),this.prevPlayed=i.playedSeconds,this.prevLoaded=i.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),vt(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:t,playing:n,volume:r,muted:i}=this.props;t(),!i&&r!==null&&this.player.setVolume(r),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):n&&this.player.play(),this.handleDurationCheck()}),vt(this,"handlePlay",()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:t,onPlay:n,playbackRate:r}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&r!==1&&this.player.setPlaybackRate(r),t(),this.startOnPlay=!1),n(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()}),vt(this,"handlePause",t=>{this.isPlaying=!1,this.isLoading||this.props.onPause(t)}),vt(this,"handleEnded",()=>{const{activePlayer:t,loop:n,onEnded:r}=this.props;t.loopOnEnded&&n&&this.seekTo(0),n||(this.isPlaying=!1,r())}),vt(this,"handleError",(...t)=>{this.isLoading=!1,this.props.onError(...t)}),vt(this,"handleDurationCheck",()=>{clearTimeout(this.durationCheckTimeout);const t=this.getDuration();t?this.onDurationCalled||(this.props.onDuration(t),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)}),vt(this,"handleLoaded",()=>{this.isLoading=!1})}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}componentDidUpdate(t){if(!this.player)return;const{url:n,playing:r,volume:i,muted:a,playbackRate:o,pip:s,loop:l,activePlayer:u,disableDeferredLoading:f}=this.props;if(!(0,TZ.default)(t.url,n)){if(this.isLoading&&!u.forceLoad&&!f&&!(0,EZ.isMediaStream)(n)){console.warn(`ReactPlayer: the attempt to load ${n} is being deferred until the player has loaded`),this.loadOnReady=n;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(n,this.isReady)}!t.playing&&r&&!this.isPlaying&&this.player.play(),t.playing&&!r&&this.isPlaying&&this.player.pause(),!t.pip&&s&&this.player.enablePIP&&this.player.enablePIP(),t.pip&&!s&&this.player.disablePIP&&this.player.disablePIP(),t.volume!==i&&i!==null&&this.player.setVolume(i),t.muted!==a&&(a?this.player.mute():(this.player.unmute(),i!==null&&setTimeout(()=>this.player.setVolume(i)))),t.playbackRate!==o&&this.player.setPlaybackRate&&this.player.setPlaybackRate(o),t.loop!==l&&this.player.setLoop&&this.player.setLoop(l)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(t,n,r){if(!this.isReady){t!==0&&(this.seekOnPlay=t,setTimeout(()=>{this.seekOnPlay=null},MZ));return}if(n?n==="fraction":t>0&&t<1){const a=this.player.getDuration();if(!a){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(a*t,r);return}this.player.seekTo(t,r)}render(){const t=this.props.activePlayer;return t?Ug.default.createElement(t,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}vt(Hu,"displayName","Player");vt(Hu,"propTypes",bw.propTypes);vt(Hu,"defaultProps",bw.defaultProps);var $Z=Object.create,ts=Object.defineProperty,IZ=Object.getOwnPropertyDescriptor,DZ=Object.getOwnPropertyNames,LZ=Object.getPrototypeOf,NZ=Object.prototype.hasOwnProperty,RZ=(e,t,n)=>t in e?ts(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,BZ=(e,t)=>{for(var n in t)ts(e,n,{get:t[n],enumerable:!0})},ww=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of DZ(t))!NZ.call(e,i)&&i!==n&&ts(e,i,{get:()=>t[i],enumerable:!(r=IZ(t,i))||r.enumerable});return e},ns=(e,t,n)=>(n=e!=null?$Z(LZ(e)):{},ww(t||!e||!e.__esModule?ts(n,"default",{value:e,enumerable:!0}):n,e)),zZ=e=>ww(ts({},"__esModule",{value:!0}),e),gt=(e,t,n)=>(RZ(e,typeof t!="symbol"?t+"":t,n),n),Sw={};BZ(Sw,{createReactPlayer:()=>KZ});var FZ=zZ(Sw),wi=ns(z),HZ=ns(G2),sf=ns(aZ),Wg=ns(hw),Na=yw,_w=zu,UZ=ns(jZ);const WZ=(0,_w.lazy)(()=>an(()=>import("./Preview-d32c5564.js").then(e=>e.P),["assets/Preview-d32c5564.js","assets/index-21067c9d.js","assets/index-a2878e02.css"])),YZ=typeof window<"u"&&window.document,VZ=typeof Nt<"u"&&Nt.window&&Nt.window.document,GZ=Object.keys(Na.propTypes),qZ=YZ||VZ?wi.Suspense:()=>null,Ma=[],KZ=(e,t)=>{var n;return n=class extends wi.Component{constructor(){super(...arguments),gt(this,"state",{showPreview:!!this.props.light}),gt(this,"references",{wrapper:r=>{this.wrapper=r},player:r=>{this.player=r}}),gt(this,"handleClickPreview",r=>{this.setState({showPreview:!1}),this.props.onClickPreview(r)}),gt(this,"showPreview",()=>{this.setState({showPreview:!0})}),gt(this,"getDuration",()=>this.player?this.player.getDuration():null),gt(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),gt(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),gt(this,"getInternalPlayer",(r="player")=>this.player?this.player.getInternalPlayer(r):null),gt(this,"seekTo",(r,i,a)=>{if(!this.player)return null;this.player.seekTo(r,i,a)}),gt(this,"handleReady",()=>{this.props.onReady(this)}),gt(this,"getActivePlayer",(0,sf.default)(r=>{for(const i of[...Ma,...e])if(i.canPlay(r))return i;return t||null})),gt(this,"getConfig",(0,sf.default)((r,i)=>{const{config:a}=this.props;return HZ.default.all([Na.defaultProps.config,Na.defaultProps.config[i]||{},a,a[i]||{}])})),gt(this,"getAttributes",(0,sf.default)(r=>(0,_w.omit)(this.props,GZ))),gt(this,"renderActivePlayer",r=>{if(!r)return null;const i=this.getActivePlayer(r);if(!i)return null;const a=this.getConfig(r,i.key);return wi.default.createElement(UZ.default,{...this.props,key:i.key,ref:this.references.player,config:a,activePlayer:i.lazyPlayer||i,onReady:this.handleReady})})}shouldComponentUpdate(r,i){return!(0,Wg.default)(this.props,r)||!(0,Wg.default)(this.state,i)}componentDidUpdate(r){const{light:i}=this.props;!r.light&&i&&this.setState({showPreview:!0}),r.light&&!i&&this.setState({showPreview:!1})}renderPreview(r){if(!r)return null;const{light:i,playIcon:a,previewTabIndex:o,oEmbedUrl:s}=this.props;return wi.default.createElement(WZ,{url:r,light:i,playIcon:a,previewTabIndex:o,oEmbedUrl:s,onClick:this.handleClickPreview})}render(){const{url:r,style:i,width:a,height:o,fallback:s,wrapper:l}=this.props,{showPreview:u}=this.state,f=this.getAttributes(r),d=typeof l=="string"?this.references.wrapper:void 0;return wi.default.createElement(l,{ref:d,style:{...i,width:a,height:o},...f},wi.default.createElement(qZ,{fallback:s},u?this.renderPreview(r):this.renderActivePlayer(r)))}},gt(n,"displayName","ReactPlayer"),gt(n,"propTypes",Na.propTypes),gt(n,"defaultProps",Na.defaultProps),gt(n,"addCustomPlayer",r=>{Ma.push(r)}),gt(n,"removeCustomPlayers",()=>{Ma.length=0}),gt(n,"canPlay",r=>{for(const i of[...Ma,...e])if(i.canPlay(r))return!0;return!1}),gt(n,"canEnablePIP",r=>{for(const i of[...Ma,...e])if(i.canEnablePIP&&i.canEnablePIP(r))return!0;return!1}),n};var XZ=Object.create,Uu=Object.defineProperty,ZZ=Object.getOwnPropertyDescriptor,JZ=Object.getOwnPropertyNames,QZ=Object.getPrototypeOf,eJ=Object.prototype.hasOwnProperty,tJ=(e,t)=>{for(var n in t)Uu(e,n,{get:t[n],enumerable:!0})},Ow=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of JZ(t))!eJ.call(e,i)&&i!==n&&Uu(e,i,{get:()=>t[i],enumerable:!(r=ZZ(t,i))||r.enumerable});return e},nJ=(e,t,n)=>(n=e!=null?XZ(QZ(e)):{},Ow(t||!e||!e.__esModule?Uu(n,"default",{value:e,enumerable:!0}):n,e)),rJ=e=>Ow(Uu({},"__esModule",{value:!0}),e),kw={};tJ(kw,{default:()=>sJ});var iJ=rJ(kw),Dd=nJ(QX),aJ=FZ;const oJ=Dd.default[Dd.default.length-1];var sJ=(0,aJ.createReactPlayer)(Dd.default,oJ);const lJ=st(iJ),uJ=e=>y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",children:[y.jsx("mask",{id:"mask0_4160_9271",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:y.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_4160_9271)",children:y.jsx("path",{d:"M11 25V21H7V19H13V25H11ZM19 25V19H25V21H21V25H19ZM7 13V11H11V7H13V13H7ZM19 13V7H21V11H25V13H19Z",fill:"currentColor"})})]}),cJ=e=>y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 22 22",fill:"currentColor",children:[y.jsx("mask",{id:"mask0_3130_18463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"22",height:"22",children:y.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_3130_18463)",children:y.jsx("path",{d:"M4.58301 17.4166V12.8333H5.95798V16.0416H9.16634V17.4166H4.58301ZM4.58301 9.16658V4.58325H9.16634V5.95823H5.95798V9.16658H4.58301ZM12.833 17.4166V16.0416H16.0414V12.8333H17.4163V17.4166H12.833ZM16.0414 9.16658V5.95823H12.833V4.58325H17.4163V9.16658H16.0414Z",fill:"currentColor"})})]}),fJ=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"volume_up",children:[y.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_1483_75386)",children:y.jsx("path",{id:"volume_up_2",d:"M14.0384 20.1095V18.5595C15.4807 18.1005 16.6425 17.2672 17.5239 16.0595C18.4053 14.8518 18.8461 13.4903 18.8461 11.9749C18.8461 10.4595 18.4053 9.09799 17.5239 7.89031C16.6425 6.68261 15.4807 5.84927 14.0384 5.39031V3.84033C15.8999 4.33905 17.4165 5.33841 18.5883 6.83841C19.7601 8.33839 20.346 10.0506 20.346 11.9749C20.346 13.8993 19.7601 15.6114 18.5883 17.1114C17.4165 18.6114 15.8999 19.6108 14.0384 20.1095ZM3.65381 14.4999V9.49993H7.36531L11.6537 5.21153V18.7883L7.36531 14.4999H3.65381ZM14.0384 15.6537V8.29608C14.7127 8.66275 15.2339 9.17909 15.6018 9.84511C15.9698 10.5111 16.1537 11.2294 16.1537 11.9999C16.1537 12.7602 15.9682 13.4675 15.597 14.122C15.2259 14.7765 14.7063 15.2871 14.0384 15.6537Z",fill:"currentColor"})})]})}),dJ=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"volume_mute",children:[y.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsxs("g",{mask:"url(#mask0_1483_75386)",children:[y.jsx("path",{id:"volume_up_2",d:"M14.0384 20.1095V18.5595C15.4807 18.1005 16.6425 17.2672 17.5239 16.0595C18.4053 14.8518 18.8461 13.4903 18.8461 11.9749C18.8461 10.4595 18.4053 9.09799 17.5239 7.89031C16.6425 6.68261 15.4807 5.84927 14.0384 5.39031V3.84033C15.8999 4.33905 17.4165 5.33841 18.5883 6.83841C19.7601 8.33839 20.346 10.0506 20.346 11.9749C20.346 13.8993 19.7601 15.6114 18.5883 17.1114C17.4165 18.6114 15.8999 19.6108 14.0384 20.1095ZM3.65381 14.4999V9.49993H7.36531L11.6537 5.21153V18.7883L7.36531 14.4999H3.65381ZM14.0384 15.6537V8.29608C14.7127 8.66275 15.2339 9.17909 15.6018 9.84511C15.9698 10.5111 16.1537 11.2294 16.1537 11.9999C16.1537 12.7602 15.9682 13.4675 15.597 14.122C15.2259 14.7765 14.7063 15.2871 14.0384 15.6537Z",fill:"currentColor"}),y.jsx("path",{id:"mute_line",d:"M6 21L21 4",stroke:"#808080","stroke-width":"2","stroke-linecap":"round"})]})]})}),Yg=e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.floor(e%60),i=t>0?`${t}:`:"",a=t>0?n.toString().padStart(2,"0"):n.toString(),o=r.toString().padStart(2,"0");return`${i}${a}:${o}`},hJ=({isPlaying:e,isFullScreen:t,setIsPlaying:n,playingTime:r,duration:i,handleProgressChange:a,handleVolumeChange:o,onFullScreenClick:s,showToolbar:l})=>{const[u,f]=z.useState(.5),[d,h]=z.useState(!1),[m,g]=z.useState(.5),v=(_,k)=>{const C=Array.isArray(k)?k[0]:k;f(C),o(_,C),d&&h(!1)},b=()=>{d?(f(m),o(new Event("input"),m)):(g(u),f(0),o(new Event("input"),0)),h(!d)};return y.jsxs(F,{children:[(!l||t)&&y.jsx(bJ,{"aria-label":"Small","data-testid":"progress-bar",isFullScreen:t,max:i,onChange:a,size:"small",value:r}),y.jsxs(pJ,{align:"center",direction:"row",showToolbar:l||t,children:[y.jsx(gJ,{onClick:n,size:"small",children:e?y.jsx(Vl,{}):y.jsx(Wd,{})}),y.jsxs(wJ,{direction:"row",children:[y.jsx("span",{children:Yg(r)}),y.jsx("span",{className:"separator",children:"/"}),y.jsx("span",{className:"duration",children:Yg(i)})]}),y.jsxs(vJ,{direction:"row",px:9,children:[y.jsx(Kl,{className:"volume-slider",max:1,min:0,onChange:v,size:"small",step:.1,value:u}),y.jsx(mJ,{onClick:b,children:d?y.jsx(yJ,{children:y.jsx(dJ,{})}):y.jsx(fJ,{})})]}),y.jsx(xJ,{"data-testid":"fullscreen-button",onClick:s,children:t?y.jsx(uJ,{}):y.jsx(cJ,{})})]})]})},pJ=H(F)` +`,KK=()=>{const e=qt(),{setPlayingNode:t}=Gl(n=>n);switch(z.useEffect(()=>{var r,i;if(!e)return;(e.media_url||e.link||((r=e.properties)==null?void 0:r.link)||((i=e.properties)==null?void 0:i.media_url))&&t(e)},[t,e]),e==null?void 0:e.node_type){case"guest":case"person":return y.jsx(gK,{});case"data_series":return y.jsx(pq,{});case"tribe_message":return y.jsx(hK,{});case"Tweet":return y.jsx(PK,{});case"topic":return y.jsx(CK,{});case"show":return y.jsx(kK,{});case"video":case"podcast":case"clip":case"twitter_space":return y.jsx(Y2,{});case"document":return y.jsx(UK,{});case"episode":return y.jsx(lK,{},e.ref_id);case"image":return y.jsx(dK,{});default:return y.jsx(IK,{})}},XK=z.memo(KK);var ZK=function(t,n,r){var i=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");typeof n=="function"&&(r=n,n={}),n=n||{},r=r||function(){},a.type=n.type||"text/javascript",a.charset=n.charset||"utf8",a.async="async"in n?!!n.async:!0,a.src=t,n.attrs&&JK(a,n.attrs),n.text&&(a.text=""+n.text);var o="onload"in a?Rg:QK;o(a,r),a.onload||Rg(a,r),i.appendChild(a)};function JK(e,t){for(var n in t)e.setAttribute(n,t[n])}function Rg(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function QK(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var eX=function(t){return tX(t)&&!nX(t)};function tX(e){return!!e&&typeof e=="object"}function nX(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||aX(e)}var rX=typeof Symbol=="function"&&Symbol.for,iX=rX?Symbol.for("react.element"):60103;function aX(e){return e.$$typeof===iX}function oX(e){return Array.isArray(e)?[]:{}}function Lo(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Zi(oX(e),e,t):e}function sX(e,t,n){return e.concat(t).map(function(r){return Lo(r,n)})}function lX(e,t){if(!t.customMerge)return Zi;var n=t.customMerge(e);return typeof n=="function"?n:Zi}function uX(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Bg(e){return Object.keys(e).concat(uX(e))}function V2(e,t){try{return t in e}catch{return!1}}function cX(e,t){return V2(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function fX(e,t,n){var r={};return n.isMergeableObject(e)&&Bg(e).forEach(function(i){r[i]=Lo(e[i],n)}),Bg(t).forEach(function(i){cX(e,i)||(V2(e,i)&&n.isMergeableObject(t[i])?r[i]=lX(i,n)(e[i],t[i],n):r[i]=Lo(t[i],n))}),r}function Zi(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||sX,n.isMergeableObject=n.isMergeableObject||eX,n.cloneUnlessOtherwiseSpecified=Lo;var r=Array.isArray(t),i=Array.isArray(e),a=r===i;return a?r?n.arrayMerge(e,t,n):fX(e,t,n):Lo(t,n)}Zi.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Zi(r,i,n)},{})};var dX=Zi,G2=dX,hX=Object.create,Bu=Object.defineProperty,pX=Object.getOwnPropertyDescriptor,mX=Object.getOwnPropertyNames,yX=Object.getPrototypeOf,gX=Object.prototype.hasOwnProperty,vX=(e,t)=>{for(var n in t)Bu(e,n,{get:t[n],enumerable:!0})},q2=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of mX(t))!gX.call(e,i)&&i!==n&&Bu(e,i,{get:()=>t[i],enumerable:!(r=pX(t,i))||r.enumerable});return e},dp=(e,t,n)=>(n=e!=null?hX(yX(e)):{},q2(t||!e||!e.__esModule?Bu(n,"default",{value:e,enumerable:!0}):n,e)),xX=e=>q2(Bu({},"__esModule",{value:!0}),e),K2={};vX(K2,{callPlayer:()=>DX,getConfig:()=>$X,getSDK:()=>MX,isBlobUrl:()=>NX,isMediaStream:()=>LX,lazy:()=>_X,omit:()=>IX,parseEndTime:()=>jX,parseStartTime:()=>AX,queryString:()=>EX,randomString:()=>TX,supportsWebKitPresentationMode:()=>RX});var zu=xX(K2),bX=dp(z),wX=dp(ZK),SX=dp(G2);const _X=e=>bX.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),OX=/[?&#](?:start|t)=([0-9hms]+)/,kX=/[?&#]end=([0-9hms]+)/,Md=/(\d+)(h|m|s)/g,CX=/^\d+$/;function X2(e,t){if(e instanceof Array)return;const n=e.match(t);if(n){const r=n[1];if(r.match(Md))return PX(r);if(CX.test(r))return parseInt(r)}}function PX(e){let t=0,n=Md.exec(e);for(;n!==null;){const[,r,i]=n;i==="h"&&(t+=parseInt(r,10)*60*60),i==="m"&&(t+=parseInt(r,10)*60),i==="s"&&(t+=parseInt(r,10)),n=Md.exec(e)}return t}function AX(e){return X2(e,OX)}function jX(e){return X2(e,kX)}function TX(){return Math.random().toString(36).substr(2,5)}function EX(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function af(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}const vi={},MX=function(t,n,r=null,i=()=>!0,a=wX.default){const o=af(n);return o&&i(o)?Promise.resolve(o):new Promise((s,l)=>{if(vi[t]){vi[t].push({resolve:s,reject:l});return}vi[t]=[{resolve:s,reject:l}];const u=f=>{vi[t].forEach(d=>d.resolve(f))};if(r){const f=window[r];window[r]=function(){f&&f(),u(af(n))}}a(t,f=>{f?(vi[t].forEach(d=>d.reject(f)),vi[t]=null):r||u(af(n))})})};function $X(e,t){return(0,SX.default)(t.config,e.config)}function IX(e,...t){const n=[].concat(...t),r={},i=Object.keys(e);for(const a of i)n.indexOf(a)===-1&&(r[a]=e[a]);return r}function DX(e,...t){if(!this.player||!this.player[e]){let n=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c – `;return this.player?this.player[e]||(n+="The method was not available"):n+="The player was not available",console.warn(n,"font-weight: bold",""),null}return this.player[e](...t)}function LX(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function NX(e){return/^blob:/.test(e)}function RX(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var hp=Object.defineProperty,BX=Object.getOwnPropertyDescriptor,zX=Object.getOwnPropertyNames,FX=Object.prototype.hasOwnProperty,HX=(e,t)=>{for(var n in t)hp(e,n,{get:t[n],enumerable:!0})},UX=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of zX(t))!FX.call(e,i)&&i!==n&&hp(e,i,{get:()=>t[i],enumerable:!(r=BX(t,i))||r.enumerable});return e},WX=e=>UX(hp({},"__esModule",{value:!0}),e),Z2={};HX(Z2,{AUDIO_EXTENSIONS:()=>pp,DASH_EXTENSIONS:()=>cw,FLV_EXTENSIONS:()=>fw,HLS_EXTENSIONS:()=>yp,MATCH_URL_DAILYMOTION:()=>ow,MATCH_URL_FACEBOOK:()=>ew,MATCH_URL_FACEBOOK_WATCH:()=>tw,MATCH_URL_KALTURA:()=>uw,MATCH_URL_MIXCLOUD:()=>sw,MATCH_URL_SOUNDCLOUD:()=>J2,MATCH_URL_STREAMABLE:()=>nw,MATCH_URL_TWITCH_CHANNEL:()=>aw,MATCH_URL_TWITCH_VIDEO:()=>iw,MATCH_URL_VIDYARD:()=>lw,MATCH_URL_VIMEO:()=>Q2,MATCH_URL_WISTIA:()=>rw,MATCH_URL_YOUTUBE:()=>$d,VIDEO_EXTENSIONS:()=>mp,canPlay:()=>VX});var YX=WX(Z2),zg=zu;const $d=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,J2=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,Q2=/vimeo\.com\/(?!progressive_redirect).+/,ew=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,tw=/^https?:\/\/fb\.watch\/.+$/,nw=/streamable\.com\/([a-z0-9]+)$/,rw=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,iw=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,aw=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,ow=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,sw=/mixcloud\.com\/([^/]+\/[^/]+)/,lw=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,uw=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,pp=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,mp=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,yp=/\.(m3u8)($|\?)/i,cw=/\.(mpd)($|\?)/i,fw=/\.(flv)($|\?)/i,Id=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&Id(t)||Id(t.src))return!0;return!1}return(0,zg.isMediaStream)(e)||(0,zg.isBlobUrl)(e)?!0:pp.test(e)||mp.test(e)||yp.test(e)||cw.test(e)||fw.test(e)},VX={youtube:e=>e instanceof Array?e.every(t=>$d.test(t)):$d.test(e),soundcloud:e=>J2.test(e)&&!pp.test(e),vimeo:e=>Q2.test(e)&&!mp.test(e)&&!yp.test(e),facebook:e=>ew.test(e)||tw.test(e),streamable:e=>nw.test(e),wistia:e=>rw.test(e),twitch:e=>iw.test(e)||aw.test(e),dailymotion:e=>ow.test(e),mixcloud:e=>sw.test(e),vidyard:e=>lw.test(e),kaltura:e=>uw.test(e),file:Id};var gp=Object.defineProperty,GX=Object.getOwnPropertyDescriptor,qX=Object.getOwnPropertyNames,KX=Object.prototype.hasOwnProperty,XX=(e,t)=>{for(var n in t)gp(e,n,{get:t[n],enumerable:!0})},ZX=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of qX(t))!KX.call(e,i)&&i!==n&&gp(e,i,{get:()=>t[i],enumerable:!(r=GX(t,i))||r.enumerable});return e},JX=e=>ZX(gp({},"__esModule",{value:!0}),e),dw={};XX(dw,{default:()=>eZ});var QX=JX(dw),rn=zu,Xt=YX,eZ=[{key:"youtube",name:"YouTube",canPlay:Xt.canPlay.youtube,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./YouTube-06c47415.js").then(e=>e.Y),["assets/YouTube-06c47415.js","assets/index-f50d1ab5.js","assets/index-a2878e02.css"]))},{key:"soundcloud",name:"SoundCloud",canPlay:Xt.canPlay.soundcloud,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./SoundCloud-edbca398.js").then(e=>e.S),["assets/SoundCloud-edbca398.js","assets/index-f50d1ab5.js","assets/index-a2878e02.css"]))},{key:"vimeo",name:"Vimeo",canPlay:Xt.canPlay.vimeo,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./Vimeo-85e297dc.js").then(e=>e.V),["assets/Vimeo-85e297dc.js","assets/index-f50d1ab5.js","assets/index-a2878e02.css"]))},{key:"facebook",name:"Facebook",canPlay:Xt.canPlay.facebook,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./Facebook-982fecad.js").then(e=>e.F),["assets/Facebook-982fecad.js","assets/index-f50d1ab5.js","assets/index-a2878e02.css"]))},{key:"streamable",name:"Streamable",canPlay:Xt.canPlay.streamable,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./Streamable-9ca10da6.js").then(e=>e.S),["assets/Streamable-9ca10da6.js","assets/index-f50d1ab5.js","assets/index-a2878e02.css"]))},{key:"wistia",name:"Wistia",canPlay:Xt.canPlay.wistia,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./Wistia-c5e6d427.js").then(e=>e.W),["assets/Wistia-c5e6d427.js","assets/index-f50d1ab5.js","assets/index-a2878e02.css"]))},{key:"twitch",name:"Twitch",canPlay:Xt.canPlay.twitch,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./Twitch-e4c05adf.js").then(e=>e.T),["assets/Twitch-e4c05adf.js","assets/index-f50d1ab5.js","assets/index-a2878e02.css"]))},{key:"dailymotion",name:"DailyMotion",canPlay:Xt.canPlay.dailymotion,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./DailyMotion-b31bb25a.js").then(e=>e.D),["assets/DailyMotion-b31bb25a.js","assets/index-f50d1ab5.js","assets/index-a2878e02.css"]))},{key:"mixcloud",name:"Mixcloud",canPlay:Xt.canPlay.mixcloud,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./Mixcloud-6d8c58dc.js").then(e=>e.M),["assets/Mixcloud-6d8c58dc.js","assets/index-f50d1ab5.js","assets/index-a2878e02.css"]))},{key:"vidyard",name:"Vidyard",canPlay:Xt.canPlay.vidyard,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./Vidyard-e3e4dcb8.js").then(e=>e.V),["assets/Vidyard-e3e4dcb8.js","assets/index-f50d1ab5.js","assets/index-a2878e02.css"]))},{key:"kaltura",name:"Kaltura",canPlay:Xt.canPlay.kaltura,lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./Kaltura-70d941fb.js").then(e=>e.K),["assets/Kaltura-70d941fb.js","assets/index-f50d1ab5.js","assets/index-a2878e02.css"]))},{key:"file",name:"FilePlayer",canPlay:Xt.canPlay.file,canEnablePIP:e=>Xt.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,rn.supportsWebKitPresentationMode)())&&!Xt.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,rn.lazy)(()=>an(()=>import("./FilePlayer-6456896f.js").then(e=>e.F),["assets/FilePlayer-6456896f.js","assets/index-f50d1ab5.js","assets/index-a2878e02.css"]))}],Fg=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function tZ(e,t){return!!(e===t||Fg(e)&&Fg(t))}function nZ(e,t){if(e.length!==t.length)return!1;for(var n=0;n{for(var n in t)Fu(e,n,{get:t[n],enumerable:!0})},pw=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of dZ(t))!pZ.call(e,i)&&i!==n&&Fu(e,i,{get:()=>t[i],enumerable:!(r=fZ(t,i))||r.enumerable});return e},yZ=(e,t,n)=>(n=e!=null?cZ(hZ(e)):{},pw(t||!e||!e.__esModule?Fu(n,"default",{value:e,enumerable:!0}):n,e)),gZ=e=>pw(Fu({},"__esModule",{value:!0}),e),mw={};mZ(mw,{defaultProps:()=>bZ,propTypes:()=>xZ});var yw=gZ(mw),vZ=yZ(P4);const{string:Ut,bool:Wt,number:xi,array:of,oneOfType:Ea,shape:mn,object:Yt,func:wt,node:Hg}=vZ.default,xZ={url:Ea([Ut,of,Yt]),playing:Wt,loop:Wt,controls:Wt,volume:xi,muted:Wt,playbackRate:xi,width:Ea([Ut,xi]),height:Ea([Ut,xi]),style:Yt,progressInterval:xi,playsinline:Wt,pip:Wt,stopOnUnmount:Wt,light:Ea([Wt,Ut,Yt]),playIcon:Hg,previewTabIndex:xi,fallback:Hg,oEmbedUrl:Ut,wrapper:Ea([Ut,wt,mn({render:wt.isRequired})]),config:mn({soundcloud:mn({options:Yt}),youtube:mn({playerVars:Yt,embedOptions:Yt,onUnstarted:wt}),facebook:mn({appId:Ut,version:Ut,playerId:Ut,attributes:Yt}),dailymotion:mn({params:Yt}),vimeo:mn({playerOptions:Yt,title:Ut}),file:mn({attributes:Yt,tracks:of,forceVideo:Wt,forceAudio:Wt,forceHLS:Wt,forceSafariHLS:Wt,forceDisableHls:Wt,forceDASH:Wt,forceFLV:Wt,hlsOptions:Yt,hlsVersion:Ut,dashVersion:Ut,flvVersion:Ut}),wistia:mn({options:Yt,playerId:Ut,customControls:of}),mixcloud:mn({options:Yt}),twitch:mn({options:Yt,playerId:Ut}),vidyard:mn({options:Yt})}),onReady:wt,onStart:wt,onPlay:wt,onPause:wt,onBuffer:wt,onBufferEnd:wt,onEnded:wt,onError:wt,onDuration:wt,onSeek:wt,onPlaybackRateChange:wt,onPlaybackQualityChange:wt,onProgress:wt,onClickPreview:wt,onEnablePIP:wt,onDisablePIP:wt},Et=()=>{},bZ={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:Et},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:Et,onStart:Et,onPlay:Et,onPause:Et,onBuffer:Et,onBufferEnd:Et,onEnded:Et,onError:Et,onDuration:Et,onSeek:Et,onPlaybackRateChange:Et,onPlaybackQualityChange:Et,onProgress:Et,onClickPreview:Et,onEnablePIP:Et,onDisablePIP:Et};var wZ=Object.create,es=Object.defineProperty,SZ=Object.getOwnPropertyDescriptor,_Z=Object.getOwnPropertyNames,OZ=Object.getPrototypeOf,kZ=Object.prototype.hasOwnProperty,CZ=(e,t,n)=>t in e?es(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,PZ=(e,t)=>{for(var n in t)es(e,n,{get:t[n],enumerable:!0})},gw=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of _Z(t))!kZ.call(e,i)&&i!==n&&es(e,i,{get:()=>t[i],enumerable:!(r=SZ(t,i))||r.enumerable});return e},vw=(e,t,n)=>(n=e!=null?wZ(OZ(e)):{},gw(t||!e||!e.__esModule?es(n,"default",{value:e,enumerable:!0}):n,e)),AZ=e=>gw(es({},"__esModule",{value:!0}),e),vt=(e,t,n)=>(CZ(e,typeof t!="symbol"?t+"":t,n),n),xw={};PZ(xw,{default:()=>Hu});var jZ=AZ(xw),Ug=vw(z),TZ=vw(hw),bw=yw,EZ=zu;const MZ=5e3;class Hu extends Ug.Component{constructor(){super(...arguments),vt(this,"mounted",!1),vt(this,"isReady",!1),vt(this,"isPlaying",!1),vt(this,"isLoading",!0),vt(this,"loadOnReady",null),vt(this,"startOnPlay",!0),vt(this,"seekOnPlay",null),vt(this,"onDurationCalled",!1),vt(this,"handlePlayerMount",t=>{if(this.player){this.progress();return}this.player=t,this.player.load(this.props.url),this.progress()}),vt(this,"getInternalPlayer",t=>this.player?this.player[t]:null),vt(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const t=this.getCurrentTime()||0,n=this.getSecondsLoaded(),r=this.getDuration();if(r){const i={playedSeconds:t,played:t/r};n!==null&&(i.loadedSeconds=n,i.loaded=n/r),(i.playedSeconds!==this.prevPlayed||i.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(i),this.prevPlayed=i.playedSeconds,this.prevLoaded=i.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),vt(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:t,playing:n,volume:r,muted:i}=this.props;t(),!i&&r!==null&&this.player.setVolume(r),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):n&&this.player.play(),this.handleDurationCheck()}),vt(this,"handlePlay",()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:t,onPlay:n,playbackRate:r}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&r!==1&&this.player.setPlaybackRate(r),t(),this.startOnPlay=!1),n(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()}),vt(this,"handlePause",t=>{this.isPlaying=!1,this.isLoading||this.props.onPause(t)}),vt(this,"handleEnded",()=>{const{activePlayer:t,loop:n,onEnded:r}=this.props;t.loopOnEnded&&n&&this.seekTo(0),n||(this.isPlaying=!1,r())}),vt(this,"handleError",(...t)=>{this.isLoading=!1,this.props.onError(...t)}),vt(this,"handleDurationCheck",()=>{clearTimeout(this.durationCheckTimeout);const t=this.getDuration();t?this.onDurationCalled||(this.props.onDuration(t),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)}),vt(this,"handleLoaded",()=>{this.isLoading=!1})}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}componentDidUpdate(t){if(!this.player)return;const{url:n,playing:r,volume:i,muted:a,playbackRate:o,pip:s,loop:l,activePlayer:u,disableDeferredLoading:f}=this.props;if(!(0,TZ.default)(t.url,n)){if(this.isLoading&&!u.forceLoad&&!f&&!(0,EZ.isMediaStream)(n)){console.warn(`ReactPlayer: the attempt to load ${n} is being deferred until the player has loaded`),this.loadOnReady=n;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(n,this.isReady)}!t.playing&&r&&!this.isPlaying&&this.player.play(),t.playing&&!r&&this.isPlaying&&this.player.pause(),!t.pip&&s&&this.player.enablePIP&&this.player.enablePIP(),t.pip&&!s&&this.player.disablePIP&&this.player.disablePIP(),t.volume!==i&&i!==null&&this.player.setVolume(i),t.muted!==a&&(a?this.player.mute():(this.player.unmute(),i!==null&&setTimeout(()=>this.player.setVolume(i)))),t.playbackRate!==o&&this.player.setPlaybackRate&&this.player.setPlaybackRate(o),t.loop!==l&&this.player.setLoop&&this.player.setLoop(l)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(t,n,r){if(!this.isReady){t!==0&&(this.seekOnPlay=t,setTimeout(()=>{this.seekOnPlay=null},MZ));return}if(n?n==="fraction":t>0&&t<1){const a=this.player.getDuration();if(!a){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(a*t,r);return}this.player.seekTo(t,r)}render(){const t=this.props.activePlayer;return t?Ug.default.createElement(t,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}vt(Hu,"displayName","Player");vt(Hu,"propTypes",bw.propTypes);vt(Hu,"defaultProps",bw.defaultProps);var $Z=Object.create,ts=Object.defineProperty,IZ=Object.getOwnPropertyDescriptor,DZ=Object.getOwnPropertyNames,LZ=Object.getPrototypeOf,NZ=Object.prototype.hasOwnProperty,RZ=(e,t,n)=>t in e?ts(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,BZ=(e,t)=>{for(var n in t)ts(e,n,{get:t[n],enumerable:!0})},ww=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of DZ(t))!NZ.call(e,i)&&i!==n&&ts(e,i,{get:()=>t[i],enumerable:!(r=IZ(t,i))||r.enumerable});return e},ns=(e,t,n)=>(n=e!=null?$Z(LZ(e)):{},ww(t||!e||!e.__esModule?ts(n,"default",{value:e,enumerable:!0}):n,e)),zZ=e=>ww(ts({},"__esModule",{value:!0}),e),gt=(e,t,n)=>(RZ(e,typeof t!="symbol"?t+"":t,n),n),Sw={};BZ(Sw,{createReactPlayer:()=>KZ});var FZ=zZ(Sw),wi=ns(z),HZ=ns(G2),sf=ns(aZ),Wg=ns(hw),Na=yw,_w=zu,UZ=ns(jZ);const WZ=(0,_w.lazy)(()=>an(()=>import("./Preview-d1601aa7.js").then(e=>e.P),["assets/Preview-d1601aa7.js","assets/index-f50d1ab5.js","assets/index-a2878e02.css"])),YZ=typeof window<"u"&&window.document,VZ=typeof Nt<"u"&&Nt.window&&Nt.window.document,GZ=Object.keys(Na.propTypes),qZ=YZ||VZ?wi.Suspense:()=>null,Ma=[],KZ=(e,t)=>{var n;return n=class extends wi.Component{constructor(){super(...arguments),gt(this,"state",{showPreview:!!this.props.light}),gt(this,"references",{wrapper:r=>{this.wrapper=r},player:r=>{this.player=r}}),gt(this,"handleClickPreview",r=>{this.setState({showPreview:!1}),this.props.onClickPreview(r)}),gt(this,"showPreview",()=>{this.setState({showPreview:!0})}),gt(this,"getDuration",()=>this.player?this.player.getDuration():null),gt(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),gt(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),gt(this,"getInternalPlayer",(r="player")=>this.player?this.player.getInternalPlayer(r):null),gt(this,"seekTo",(r,i,a)=>{if(!this.player)return null;this.player.seekTo(r,i,a)}),gt(this,"handleReady",()=>{this.props.onReady(this)}),gt(this,"getActivePlayer",(0,sf.default)(r=>{for(const i of[...Ma,...e])if(i.canPlay(r))return i;return t||null})),gt(this,"getConfig",(0,sf.default)((r,i)=>{const{config:a}=this.props;return HZ.default.all([Na.defaultProps.config,Na.defaultProps.config[i]||{},a,a[i]||{}])})),gt(this,"getAttributes",(0,sf.default)(r=>(0,_w.omit)(this.props,GZ))),gt(this,"renderActivePlayer",r=>{if(!r)return null;const i=this.getActivePlayer(r);if(!i)return null;const a=this.getConfig(r,i.key);return wi.default.createElement(UZ.default,{...this.props,key:i.key,ref:this.references.player,config:a,activePlayer:i.lazyPlayer||i,onReady:this.handleReady})})}shouldComponentUpdate(r,i){return!(0,Wg.default)(this.props,r)||!(0,Wg.default)(this.state,i)}componentDidUpdate(r){const{light:i}=this.props;!r.light&&i&&this.setState({showPreview:!0}),r.light&&!i&&this.setState({showPreview:!1})}renderPreview(r){if(!r)return null;const{light:i,playIcon:a,previewTabIndex:o,oEmbedUrl:s}=this.props;return wi.default.createElement(WZ,{url:r,light:i,playIcon:a,previewTabIndex:o,oEmbedUrl:s,onClick:this.handleClickPreview})}render(){const{url:r,style:i,width:a,height:o,fallback:s,wrapper:l}=this.props,{showPreview:u}=this.state,f=this.getAttributes(r),d=typeof l=="string"?this.references.wrapper:void 0;return wi.default.createElement(l,{ref:d,style:{...i,width:a,height:o},...f},wi.default.createElement(qZ,{fallback:s},u?this.renderPreview(r):this.renderActivePlayer(r)))}},gt(n,"displayName","ReactPlayer"),gt(n,"propTypes",Na.propTypes),gt(n,"defaultProps",Na.defaultProps),gt(n,"addCustomPlayer",r=>{Ma.push(r)}),gt(n,"removeCustomPlayers",()=>{Ma.length=0}),gt(n,"canPlay",r=>{for(const i of[...Ma,...e])if(i.canPlay(r))return!0;return!1}),gt(n,"canEnablePIP",r=>{for(const i of[...Ma,...e])if(i.canEnablePIP&&i.canEnablePIP(r))return!0;return!1}),n};var XZ=Object.create,Uu=Object.defineProperty,ZZ=Object.getOwnPropertyDescriptor,JZ=Object.getOwnPropertyNames,QZ=Object.getPrototypeOf,eJ=Object.prototype.hasOwnProperty,tJ=(e,t)=>{for(var n in t)Uu(e,n,{get:t[n],enumerable:!0})},Ow=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of JZ(t))!eJ.call(e,i)&&i!==n&&Uu(e,i,{get:()=>t[i],enumerable:!(r=ZZ(t,i))||r.enumerable});return e},nJ=(e,t,n)=>(n=e!=null?XZ(QZ(e)):{},Ow(t||!e||!e.__esModule?Uu(n,"default",{value:e,enumerable:!0}):n,e)),rJ=e=>Ow(Uu({},"__esModule",{value:!0}),e),kw={};tJ(kw,{default:()=>sJ});var iJ=rJ(kw),Dd=nJ(QX),aJ=FZ;const oJ=Dd.default[Dd.default.length-1];var sJ=(0,aJ.createReactPlayer)(Dd.default,oJ);const lJ=st(iJ),uJ=e=>y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",children:[y.jsx("mask",{id:"mask0_4160_9271",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:y.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_4160_9271)",children:y.jsx("path",{d:"M11 25V21H7V19H13V25H11ZM19 25V19H25V21H21V25H19ZM7 13V11H11V7H13V13H7ZM19 13V7H21V11H25V13H19Z",fill:"currentColor"})})]}),cJ=e=>y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 22 22",fill:"currentColor",children:[y.jsx("mask",{id:"mask0_3130_18463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"22",height:"22",children:y.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_3130_18463)",children:y.jsx("path",{d:"M4.58301 17.4166V12.8333H5.95798V16.0416H9.16634V17.4166H4.58301ZM4.58301 9.16658V4.58325H9.16634V5.95823H5.95798V9.16658H4.58301ZM12.833 17.4166V16.0416H16.0414V12.8333H17.4163V17.4166H12.833ZM16.0414 9.16658V5.95823H12.833V4.58325H17.4163V9.16658H16.0414Z",fill:"currentColor"})})]}),fJ=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"volume_up",children:[y.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_1483_75386)",children:y.jsx("path",{id:"volume_up_2",d:"M14.0384 20.1095V18.5595C15.4807 18.1005 16.6425 17.2672 17.5239 16.0595C18.4053 14.8518 18.8461 13.4903 18.8461 11.9749C18.8461 10.4595 18.4053 9.09799 17.5239 7.89031C16.6425 6.68261 15.4807 5.84927 14.0384 5.39031V3.84033C15.8999 4.33905 17.4165 5.33841 18.5883 6.83841C19.7601 8.33839 20.346 10.0506 20.346 11.9749C20.346 13.8993 19.7601 15.6114 18.5883 17.1114C17.4165 18.6114 15.8999 19.6108 14.0384 20.1095ZM3.65381 14.4999V9.49993H7.36531L11.6537 5.21153V18.7883L7.36531 14.4999H3.65381ZM14.0384 15.6537V8.29608C14.7127 8.66275 15.2339 9.17909 15.6018 9.84511C15.9698 10.5111 16.1537 11.2294 16.1537 11.9999C16.1537 12.7602 15.9682 13.4675 15.597 14.122C15.2259 14.7765 14.7063 15.2871 14.0384 15.6537Z",fill:"currentColor"})})]})}),dJ=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"volume_mute",children:[y.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsxs("g",{mask:"url(#mask0_1483_75386)",children:[y.jsx("path",{id:"volume_up_2",d:"M14.0384 20.1095V18.5595C15.4807 18.1005 16.6425 17.2672 17.5239 16.0595C18.4053 14.8518 18.8461 13.4903 18.8461 11.9749C18.8461 10.4595 18.4053 9.09799 17.5239 7.89031C16.6425 6.68261 15.4807 5.84927 14.0384 5.39031V3.84033C15.8999 4.33905 17.4165 5.33841 18.5883 6.83841C19.7601 8.33839 20.346 10.0506 20.346 11.9749C20.346 13.8993 19.7601 15.6114 18.5883 17.1114C17.4165 18.6114 15.8999 19.6108 14.0384 20.1095ZM3.65381 14.4999V9.49993H7.36531L11.6537 5.21153V18.7883L7.36531 14.4999H3.65381ZM14.0384 15.6537V8.29608C14.7127 8.66275 15.2339 9.17909 15.6018 9.84511C15.9698 10.5111 16.1537 11.2294 16.1537 11.9999C16.1537 12.7602 15.9682 13.4675 15.597 14.122C15.2259 14.7765 14.7063 15.2871 14.0384 15.6537Z",fill:"currentColor"}),y.jsx("path",{id:"mute_line",d:"M6 21L21 4",stroke:"#808080","stroke-width":"2","stroke-linecap":"round"})]})]})}),Yg=e=>{const t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.floor(e%60),i=t>0?`${t}:`:"",a=t>0?n.toString().padStart(2,"0"):n.toString(),o=r.toString().padStart(2,"0");return`${i}${a}:${o}`},hJ=({isPlaying:e,isFullScreen:t,setIsPlaying:n,playingTime:r,duration:i,handleProgressChange:a,handleVolumeChange:o,onFullScreenClick:s,showToolbar:l})=>{const[u,f]=z.useState(.5),[d,h]=z.useState(!1),[m,g]=z.useState(.5),v=(_,k)=>{const C=Array.isArray(k)?k[0]:k;f(C),o(_,C),d&&h(!1)},b=()=>{d?(f(m),o(new Event("input"),m)):(g(u),f(0),o(new Event("input"),0)),h(!d)};return y.jsxs(F,{children:[(!l||t)&&y.jsx(bJ,{"aria-label":"Small","data-testid":"progress-bar",isFullScreen:t,max:i,onChange:a,size:"small",value:r}),y.jsxs(pJ,{align:"center",direction:"row",showToolbar:l||t,children:[y.jsx(gJ,{onClick:n,size:"small",children:e?y.jsx(Vl,{}):y.jsx(Wd,{})}),y.jsxs(wJ,{direction:"row",children:[y.jsx("span",{children:Yg(r)}),y.jsx("span",{className:"separator",children:"/"}),y.jsx("span",{className:"duration",children:Yg(i)})]}),y.jsxs(vJ,{direction:"row",px:9,children:[y.jsx(Kl,{className:"volume-slider",max:1,min:0,onChange:v,size:"small",step:.1,value:u}),y.jsx(mJ,{onClick:b,children:d?y.jsx(yJ,{children:y.jsx(dJ,{})}):y.jsx(fJ,{})})]}),y.jsx(xJ,{"data-testid":"fullscreen-button",onClick:s,children:t?y.jsx(uJ,{}):y.jsx(cJ,{})})]})]})},pJ=H(F)` height: 60px; padding: 12px 16px; ${e=>e.showToolbar&&` @@ -1899,4 +1899,4 @@ ${({disabled:e})=>e&&qg` `,$J=H(F).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:R.BG1_NORMAL,cursor:"pointer",transitionDuration:"0.2s",position:"absolute",right:"0px",top:"50%",zIndex:1,width:"24px",height:"48px",transform:"translateY(-50%)",borderRadius:"0px 6px 6px 0px",boxShadow:"2px 0px 6px 0px rgba(0, 0, 0, 0.25) inset",color:R.white,[e.breakpoints.up("sm")]:{left:"100%"},"&:hover":{backgroundColor:R.BG1_HOVER},"&:active":{backgroundColor:R.BG1_PRESS,color:R.GRAY6}})),IJ=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"chevron_right",children:[y.jsx("mask",{id:"mask0_1247_21809",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"18",height:"18",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_1247_21809)",children:y.jsx("path",{id:"chevron_right_2",d:"M9.44998 8.99998L6.52498 6.07498C6.38748 5.93748 6.31873 5.76248 6.31873 5.54998C6.31873 5.33748 6.38748 5.16248 6.52498 5.02498C6.66248 4.88748 6.83748 4.81873 7.04998 4.81873C7.26248 4.81873 7.43748 4.88748 7.57498 5.02498L11.025 8.47498C11.1 8.54997 11.1531 8.63123 11.1844 8.71873C11.2156 8.80623 11.2312 8.89998 11.2312 8.99998C11.2312 9.09998 11.2156 9.19373 11.1844 9.28123C11.1531 9.36873 11.1 9.44998 11.025 9.52497L7.57498 12.975C7.43748 13.1125 7.26248 13.1812 7.04998 13.1812C6.83748 13.1812 6.66248 13.1125 6.52498 12.975C6.38748 12.8375 6.31873 12.6625 6.31873 12.45C6.31873 12.2375 6.38748 12.0625 6.52498 11.925L9.44998 8.99998Z",fill:"currentColor"})})]})}),DJ=()=>{const{sidebarIsOpen:e,showCollapseButton:t}=Bt(n=>({sidebarIsOpen:n.setSidebarOpen,showCollapseButton:n.showCollapseButton}));return y.jsx(y.Fragment,{children:t&&y.jsx(LJ,{onClick:()=>{e(!0)},children:y.jsx(IJ,{})})})},LJ=H(F).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:R.BG1_NORMAL,cursor:"pointer",transitionDuration:"0.2s",position:"absolute",top:"50%",zIndex:1,width:"24px",height:"48px",transform:"translateY(-50%)",borderRadius:"0px 6px 6px 0px",boxShadow:"2px 0px 6px 0px rgba(0, 0, 0, 0.25) inset",color:R.white,[e.breakpoints.up("sm")]:{left:"64px"},"&:hover":{backgroundColor:R.BG1_HOVER},"&:active":{backgroundColor:R.BG1_PRESS,color:R.GRAY6}})),Cw=390,NJ=z.forwardRef(({subViewOpen:e},t)=>{const{setSidebarOpen:n}=Bt(i=>i),r=j4();return y.jsxs(BJ,{ref:t,id:"sidebar-wrapper",children:[y.jsx(FJ,{}),r?y.jsx(xS,{}):y.jsx(ZC,{}),!e&&y.jsx(zJ,{onClick:()=>{n(!1)},children:y.jsx(dv,{})})]})}),RJ=["topic","person","guest","event","organization","place","project","software"],Pw=()=>{const{sidebarIsOpen:e}=Bt(r=>r),t=qt(),n=!!t&&e&&!RJ.includes(t.node_type);return y.jsxs(y.Fragment,{children:[y.jsx(Ei,{direction:"right",in:e,mountOnEnter:!0,unmountOnExit:!0,children:y.jsx(NJ,{subViewOpen:n})}),y.jsx(jJ,{open:n}),!e&&y.jsx(DJ,{})]})},BJ=H(F)(({theme:e})=>({position:"relative",background:R.BG1,height:"100vh",width:"100%",zIndex:30,[e.breakpoints.up("sm")]:{width:Cw}})),zJ=H(F).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:R.BG1_NORMAL,cursor:"pointer",transitionDuration:"0.2s",position:"absolute",right:"0px",top:"50%",zIndex:1,width:"24px",height:"48px",transform:"translateY(-50%)",borderRadius:"0px 6px 6px 0px",boxShadow:"2px 0px 6px 0px rgba(0, 0, 0, 0.25) inset",color:R.white,[e.breakpoints.up("sm")]:{left:"100%"},"&:hover":{backgroundColor:R.BG1_HOVER},"&:active":{backgroundColor:R.BG1_PRESS,color:R.GRAY6}})),FJ=H(F)` flex: 0 0 64px; background: ${R.BG2}; -`;Pw.displayName="Sidebar";const aQ=Object.freeze(Object.defineProperty({__proto__:null,MENU_WIDTH:Cw,SideBar:Pw},Symbol.toStringTag,{value:"Module"}));export{aQ as i,YX as p,zu as u}; +`;Pw.displayName="Sidebar";const iQ=Object.freeze(Object.defineProperty({__proto__:null,MENU_WIDTH:Cw,SideBar:Pw},Symbol.toStringTag,{value:"Module"}));export{iQ as i,YX as p,zu as u}; diff --git a/build/assets/index-29d402d8.js b/build/assets/index-96aff156.js similarity index 96% rename from build/assets/index-29d402d8.js rename to build/assets/index-96aff156.js index d9c0cb986..8e99c3952 100644 --- a/build/assets/index-29d402d8.js +++ b/build/assets/index-96aff156.js @@ -1,4 +1,4 @@ -import{aX as B,aY as v,aZ as b,a_ as I,a$ as _,b0 as U,b1 as O,o as x,q as l,J as Z,r as g,j as e,F as n,b2 as K,T as j,b3 as X,aW as Q,O as ee,aV as f,b4 as te,ab as se,b5 as ne,b6 as oe,aa as re,b7 as ie,N as ae}from"./index-21067c9d.js";import{B as w,h as ce,F as le}from"./index-93bc2f63.js";import{B as de}from"./index-54401641.js";import{S as ue}from"./index-0deccf02.js";import{e as xe}from"./index.esm-9353033f.js";import{C as he}from"./CheckIcon-54252c75.js";import{C as ge}from"./ClipLoader-19a8277d.js";import{T as z}from"./index-de7da582.js";import"./InfoIcon-473ded19.js";const R=/\b(?:twitter\.com|x\.com)\/(?:@)?([\w_]+)(?:$|\?[^/]*$)/,pe=/(https?:\/\/)?(www\.)?youtube\.com\/watch\?v=([A-Za-z0-9_-]+)/,fe=/(https?:\/\/)?(www\.)?youtube\.com\/live\/([A-Za-z0-9_-]+)/,we=/(https?:\/\/)?(www\.)?youtu\.be\/([A-Za-z0-9_-]+)/,me=/https:\/\/twitter\.com\/i\/spaces\/([A-Za-z0-9_-]+)/,be=/https:\/\/(twitter\.com|x\.com)\/[^/]+\/status\/(\d+)/,je=/(https?:\/\/)?([A-Za-z0-9_-]+)\.mp3/,ye=/(https?:\/\/)?(.*\.)?.+\/(feed|rss|rss.xml|.*.rss|.*\?(feed|format)=rss)$/,Se=/https?:\/\/(www\.)?youtube\.com\/(user\/)?(@)?([\w-]+)/,ve=/^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/,_e=/https:\/\/twitter\.com\/i\/broadcasts\/([A-Za-z0-9_-]+)/;function $e(t){return[fe,_e,pe,we,me,je].some(i=>i.test(t))?B:Se.test(t)?v:R.test(t)?b:be.test(t)?I:ye.test(t)?_:ve.test(t)?U:O}const Ee=(t,s="")=>{const o=(s===b?R:/@(\w+)/).exec(t);return o?o[1]:null},L=t=>!!t&&[b,v,_].includes(t),Ce=({onClick:t,loading:s,type:i,error:o})=>{const r=Z(u=>u.budget),[h,d]=g.useState(10),a=L(i)?"radar":"add_node";return g.useEffect(()=>{(async()=>{try{const c=await X(a);d(c.data.price)}catch(c){console.error("cannot fetch",c)}})()},[a]),e.jsxs(n,{children:[e.jsx(n,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(n,{align:"center",direction:"row",children:e.jsx(Be,{children:"Approve Cost"})})}),e.jsxs(n,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(ke,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[h," sats"]})]}),e.jsxs(ze,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[K(r)," sats"]})]})]}),e.jsx(n,{children:e.jsx(w,{color:"secondary","data-testid":"check-icon",disabled:s||!!o,onClick:t,size:"large",startIcon:s?e.jsx(P,{children:e.jsx(ge,{color:l.lightGray,size:12})}):e.jsxs(P,{children:[" ",e.jsx(he,{})]}),type:"submit",variant:"contained",children:"Approve"})}),o?e.jsx(Le,{children:e.jsxs(Re,{children:[e.jsx(xe,{className:"errorIcon"}),e.jsx("span",{children:o})]})}):null]})},ke=x(n).attrs({direction:"column",align:"space-between",justify:"flex-start"})` +import{aX as B,aY as v,aZ as b,a_ as I,a$ as _,b0 as U,b1 as O,o as x,q as l,J as Z,r as g,j as e,F as n,b2 as K,T as j,b3 as X,aW as Q,O as ee,aV as f,b4 as te,ab as se,b5 as ne,b6 as oe,aa as re,b7 as ie,N as ae}from"./index-f50d1ab5.js";import{B as w,i as ce,F as le}from"./index-f857b04d.js";import{B as de}from"./index-cc30c812.js";import{S as ue}from"./index-4f7525f2.js";import{e as xe}from"./index.esm-22240fd2.js";import{C as he}from"./CheckIcon-9f687844.js";import{C as ge}from"./ClipLoader-f52b169b.js";import{T as z}from"./index-bd1e0bc6.js";import"./InfoIcon-89f3f76d.js";const R=/\b(?:twitter\.com|x\.com)\/(?:@)?([\w_]+)(?:$|\?[^/]*$)/,pe=/(https?:\/\/)?(www\.)?youtube\.com\/watch\?v=([A-Za-z0-9_-]+)/,fe=/(https?:\/\/)?(www\.)?youtube\.com\/live\/([A-Za-z0-9_-]+)/,we=/(https?:\/\/)?(www\.)?youtu\.be\/([A-Za-z0-9_-]+)/,me=/https:\/\/twitter\.com\/i\/spaces\/([A-Za-z0-9_-]+)/,be=/https:\/\/(twitter\.com|x\.com)\/[^/]+\/status\/(\d+)/,je=/(https?:\/\/)?([A-Za-z0-9_-]+)\.mp3/,ye=/(https?:\/\/)?(.*\.)?.+\/(feed|rss|rss.xml|.*.rss|.*\?(feed|format)=rss)$/,Se=/https?:\/\/(www\.)?youtube\.com\/(user\/)?(@)?([\w-]+)/,ve=/^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/,_e=/https:\/\/twitter\.com\/i\/broadcasts\/([A-Za-z0-9_-]+)/;function $e(t){return[fe,_e,pe,we,me,je].some(i=>i.test(t))?B:Se.test(t)?v:R.test(t)?b:be.test(t)?I:ye.test(t)?_:ve.test(t)?U:O}const Ee=(t,s="")=>{const o=(s===b?R:/@(\w+)/).exec(t);return o?o[1]:null},L=t=>!!t&&[b,v,_].includes(t),Ce=({onClick:t,loading:s,type:i,error:o})=>{const r=Z(u=>u.budget),[h,d]=g.useState(10),a=L(i)?"radar":"add_node";return g.useEffect(()=>{(async()=>{try{const c=await X(a);d(c.data.price)}catch(c){console.error("cannot fetch",c)}})()},[a]),e.jsxs(n,{children:[e.jsx(n,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(n,{align:"center",direction:"row",children:e.jsx(Be,{children:"Approve Cost"})})}),e.jsxs(n,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(ke,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[h," sats"]})]}),e.jsxs(ze,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[K(r)," sats"]})]})]}),e.jsx(n,{children:e.jsx(w,{color:"secondary","data-testid":"check-icon",disabled:s||!!o,onClick:t,size:"large",startIcon:s?e.jsx(P,{children:e.jsx(ge,{color:l.lightGray,size:12})}):e.jsxs(P,{children:[" ",e.jsx(he,{})]}),type:"submit",variant:"contained",children:"Approve"})}),o?e.jsx(Le,{children:e.jsxs(Re,{children:[e.jsx(xe,{className:"errorIcon"}),e.jsx("span",{children:o})]})}):null]})},ke=x(n).attrs({direction:"column",align:"space-between",justify:"flex-start"})` width: 141px; height: 61px; border: 1px solid ${l.GRAY7}; diff --git a/build/assets/index-d66bf21e.js b/build/assets/index-a904ba63.js similarity index 51% rename from build/assets/index-d66bf21e.js rename to build/assets/index-a904ba63.js index 1980ff1e7..83a33a7f4 100644 --- a/build/assets/index-d66bf21e.js +++ b/build/assets/index-a904ba63.js @@ -1,4 +1,4 @@ -import{j as e,o as r,q as y,T as S,F as n,O as g,C as q,y as k,aW as G,r as l,bk as O,bi as P,B as Y}from"./index-21067c9d.js";import{B as J}from"./index-54401641.js";import{h as K,F as Q,B as F}from"./index-93bc2f63.js";import{T as B}from"./index-de7da582.js";import{T as X}from"./index-aac659dd.js";import{S as Z}from"./Skeleton-079276a0.js";import{C as ee}from"./ClipLoader-19a8277d.js";import"./index.esm-9353033f.js";import"./InfoIcon-473ded19.js";const _=/^https:\/\/\S+\.(png|jpe?g|svg)$/;function te(s){return!!_.test(s)}const ae=s=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"4 3 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M10 4.7002H6.1C5.21634 4.7002 4.5 5.41654 4.5 6.3002V13.9002C4.5 14.7838 5.21634 15.5002 6.1 15.5002H13.7C14.5837 15.5002 15.3 14.7839 15.3 13.9002V10.5002",stroke:"#909BAA","stroke-linecap":"round"}),e.jsx("path",{d:"M16 4L9 11",stroke:"#909BAA","stroke-width":"1.5","stroke-linecap":"round"})]}),oe=()=>{const{open:s}=g("changeNodeType"),{close:u}=g("editNodeName"),{changeNodeTypeFeatureFlag:c}=q(x=>({changeNodeTypeFeatureFlag:x.changeNodeTypeFeatureFlag})),a=k(),h=a==null?void 0:a.node_type,d=()=>{u(),s()};return e.jsxs(n,{children:[e.jsx(n,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsxs(n,{align:"center",direction:"row",children:[e.jsx(ne,{children:"Edit Node"}),e.jsxs(se,{children:[e.jsx(X,{type:h}),c&&e.jsx(re,{onClick:d,children:e.jsx(ae,{})})]})]})}),e.jsxs(n,{mb:18,children:[e.jsx(I,{style:{marginBottom:8},children:"Node Name"}),e.jsx(B,{id:"cy-topic",maxLength:50,name:"name",placeholder:"Node name",rules:{...G}})]}),e.jsxs(n,{mb:36,children:[e.jsx(I,{style:{marginBottom:8},children:"Image Url"}),e.jsx(B,{id:"cy-image_url",maxLength:500,name:"image_url",placeholder:"Image url",rules:{pattern:{message:"Please enter a valid URL",value:_}}})]})]})},ne=r(S)` +import{j as e,o as r,q as y,T as S,F as n,O as g,C as q,y as k,aW as G,r as l,bk as O,bi as P,B as Y}from"./index-f50d1ab5.js";import{B as J}from"./index-cc30c812.js";import{T as K,i as Q,F as X,B as F}from"./index-f857b04d.js";import{T as B}from"./index-bd1e0bc6.js";import{S as Z}from"./Skeleton-6b5d8ec7.js";import{C as ee}from"./ClipLoader-f52b169b.js";import"./index.esm-22240fd2.js";import"./InfoIcon-89f3f76d.js";const _=/^https:\/\/\S+\.(png|jpe?g|svg)$/;function te(s){return!!_.test(s)}const ae=s=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"4 3 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M10 4.7002H6.1C5.21634 4.7002 4.5 5.41654 4.5 6.3002V13.9002C4.5 14.7838 5.21634 15.5002 6.1 15.5002H13.7C14.5837 15.5002 15.3 14.7839 15.3 13.9002V10.5002",stroke:"#909BAA","stroke-linecap":"round"}),e.jsx("path",{d:"M16 4L9 11",stroke:"#909BAA","stroke-width":"1.5","stroke-linecap":"round"})]}),oe=()=>{const{open:s}=g("changeNodeType"),{close:u}=g("editNodeName"),{changeNodeTypeFeatureFlag:c}=q(x=>({changeNodeTypeFeatureFlag:x.changeNodeTypeFeatureFlag})),a=k(),h=a==null?void 0:a.node_type,d=()=>{u(),s()};return e.jsxs(n,{children:[e.jsx(n,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsxs(n,{align:"center",direction:"row",children:[e.jsx(ne,{children:"Edit Node"}),e.jsxs(se,{children:[e.jsx(K,{type:h}),c&&e.jsx(re,{onClick:d,children:e.jsx(ae,{})})]})]})}),e.jsxs(n,{mb:18,children:[e.jsx(I,{style:{marginBottom:8},children:"Node Name"}),e.jsx(B,{id:"cy-topic",maxLength:50,name:"name",placeholder:"Node name",rules:{...G}})]}),e.jsxs(n,{mb:36,children:[e.jsx(I,{style:{marginBottom:8},children:"Image Url"}),e.jsx(B,{id:"cy-image_url",maxLength:500,name:"image_url",placeholder:"Image url",rules:{pattern:{message:"Please enter a valid URL",value:_}}})]})]})},ne=r(S)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; @@ -17,7 +17,7 @@ import{j as e,o as r,q as y,T as S,F as n,O as g,C as q,y as k,aW as G,r as l,bk `,re=r(n)` align-items: center; cursor: pointer; -`,ie=()=>{var C,T,b;const{close:s}=g("editNodeName"),u=K({mode:"onChange"}),{watch:c,setValue:a,reset:h,getValues:d}=u,[x,N]=l.useState(!1),[j,w]=l.useState(!1),[o,E]=l.useState(),t=k(),{open:L}=g("removeNode");l.useEffect(()=>(o?a("name",o==null?void 0:o.name):t&&(a("name",t.name),a("image_url",(t==null?void 0:t.image_url)??"")),()=>{h()}),[o,a,h,t]),l.useEffect(()=>{(async()=>{if(!(!t||t.type!=="topic")){w(!0);try{const{data:i}=await O({search:t==null?void 0:t.name}),p=i.find(H=>H.name===t.name);E(p)}catch(i){console.log(i)}finally{w(!1)}}})()},[t]);const D=c("imageInputType"),R=c("name"),f=c("image_url");l.useEffect(()=>{a("imageInputType",te(f))},[f,a]);const A=()=>{s()},m=o||t,M=async()=>{N(!0);const i={["name"]:R.trim(),image_url:f.trim()};try{await P((m==null?void 0:m.ref_id)||"",{node_data:i});const{updateNode:p}=Y.getState();p({...m,...i}),A()}catch(p){console.warn(p)}finally{N(!1)}},U=async()=>{L()},v=(T=(C=d())==null?void 0:C.name)==null?void 0:T.trim(),V=v&&(o==null?void 0:o.name.trim())!==v,z=d().image_url&&(t==null?void 0:t.image_url)!==((b=d())==null?void 0:b.image_url),W=x||j||!!f&&!D||!V&&!z;return e.jsx(le,{children:e.jsxs(Q,{...u,children:[j?e.jsx(n,{my:24,children:e.jsx(Z,{})}):e.jsx(oe,{}),e.jsxs(n,{direction:"row",mb:6,children:[e.jsx(ce,{color:"secondary",disabled:j||!m,onClick:U,size:"large",style:{marginRight:20},variant:"contained",children:"Delete"}),e.jsxs(F,{color:"secondary",disabled:W,onClick:M,size:"large",style:{flex:1},variant:"contained",children:["Save Changes",x&&e.jsx(de,{children:e.jsx(ee,{color:y.lightGray,size:12})})]})]})]})})},le=r(n)` +`,ie=()=>{var C,T,b;const{close:s}=g("editNodeName"),u=Q({mode:"onChange"}),{watch:c,setValue:a,reset:h,getValues:d}=u,[x,N]=l.useState(!1),[j,w]=l.useState(!1),[o,E]=l.useState(),t=k(),{open:L}=g("removeNode");l.useEffect(()=>(o?a("name",o==null?void 0:o.name):t&&(a("name",t.name),a("image_url",(t==null?void 0:t.image_url)??"")),()=>{h()}),[o,a,h,t]),l.useEffect(()=>{(async()=>{if(!(!t||t.type!=="topic")){w(!0);try{const{data:i}=await O({search:t==null?void 0:t.name}),p=i.find(H=>H.name===t.name);E(p)}catch(i){console.log(i)}finally{w(!1)}}})()},[t]);const D=c("imageInputType"),R=c("name"),f=c("image_url");l.useEffect(()=>{a("imageInputType",te(f))},[f,a]);const A=()=>{s()},m=o||t,M=async()=>{N(!0);const i={["name"]:R.trim(),image_url:f.trim()};try{await P((m==null?void 0:m.ref_id)||"",{node_data:i});const{updateNode:p}=Y.getState();p({...m,...i}),A()}catch(p){console.warn(p)}finally{N(!1)}},U=async()=>{L()},v=(T=(C=d())==null?void 0:C.name)==null?void 0:T.trim(),V=v&&(o==null?void 0:o.name.trim())!==v,z=d().image_url&&(t==null?void 0:t.image_url)!==((b=d())==null?void 0:b.image_url),W=x||j||!!f&&!D||!V&&!z;return e.jsx(le,{children:e.jsxs(X,{...u,children:[j?e.jsx(n,{my:24,children:e.jsx(Z,{})}):e.jsx(oe,{}),e.jsxs(n,{direction:"row",mb:6,children:[e.jsx(ce,{color:"secondary",disabled:j||!m,onClick:U,size:"large",style:{marginRight:20},variant:"contained",children:"Delete"}),e.jsxs(F,{color:"secondary",disabled:W,onClick:M,size:"large",style:{flex:1},variant:"contained",children:["Save Changes",x&&e.jsx(de,{children:e.jsx(ee,{color:y.lightGray,size:12})})]})]})]})})},le=r(n)` padding: 20px; `,ce=r(F)` && { @@ -33,4 +33,4 @@ import{j as e,o as r,q as y,T as S,F as n,O as g,C as q,y as k,aW as G,r as l,bk } `,de=r.span` margin-top: 3px; -`,Ne=()=>{const{close:s}=g("editNodeName");return e.jsx(J,{id:"editNodeName",kind:"large",onClose:s,preventOutsideClose:!0,children:e.jsx(ie,{})})};export{Ne as EditNodeNameModal}; +`,je=()=>{const{close:s}=g("editNodeName");return e.jsx(J,{id:"editNodeName",kind:"large",onClose:s,preventOutsideClose:!0,children:e.jsx(ie,{})})};export{je as EditNodeNameModal}; diff --git a/build/assets/index-5ef6dc30.js b/build/assets/index-aa6cc2a1.js similarity index 71% rename from build/assets/index-5ef6dc30.js rename to build/assets/index-aa6cc2a1.js index 88bc8801f..ed41899e9 100644 --- a/build/assets/index-5ef6dc30.js +++ b/build/assets/index-aa6cc2a1.js @@ -1,7 +1,7 @@ -import{r as g,b as Ft,g as Wt,s as Te,_ as Z,u as Yt,ad as lo,a as Gt,j as o,c as Ht,bo as Ye,bp as it,d as Ut,e as fe,f as gt,ae as uo,af as po,b9 as at,o as B,T as K,F as w,aW as Le,q as D,bq as fo,br as et,bs as ho,b8 as Zt,O as Xt,aa as Ve,aV as pe,a1 as xt,a0 as bt,Z as yt,Y as wt,X as mo,M as go,ao as jt}from"./index-21067c9d.js";import{B as xo}from"./index-54401641.js";import{h as ct,B as Oe,F as Kt,j as lt,o as bo,g as yo,I as wo,p as jo}from"./index-93bc2f63.js";import{A as Fe,O as vo,a as vt,N as qt}from"./index-f870d337.js";import{T as We}from"./index-de7da582.js";import{C as le}from"./ClipLoader-19a8277d.js";import{u as Qt}from"./index-aac659dd.js";import{D as Co}from"./DeleteIcon-396521e3.js";import{P as Eo}from"./PlusIcon-c31fb232.js";import{p as st,c as Po,g as To}from"./index-44e303ef.js";import{e as Oo}from"./Stack-dbe00046.js";import{S as Ao}from"./SwitchBase-f58c5852.js";import{g as Mo,m as $o,u as ee,b as Ge,t as rt,T as Jt,i as eo,H as So,j as Ct,C as _o,P as Io,k as No}from"./index-584de0f7.js";import{Z as zo,_ as ko,E as Ro,V as N,$ as de,a0 as ue,a1 as Et,P as Re,a2 as De,a3 as Pt,a as q,a4 as Do,G as Bo,C as Lo}from"./three.module-2ce81f73.js";import{A as Tt}from"./AddContentIcon-790a0995.js";import"./Popover-8ff60b97.js";import"./useSlotProps-f54e8b6d.js";import"./createSvgIcon-b719273b.js";import"./TextareaAutosize-9f8d1e37.js";import"./index.esm-9353033f.js";import"./InfoIcon-473ded19.js";const Vo=g.createContext(),Ot=Vo;function Fo(t){return Ft("MuiGrid",t)}const Wo=[0,1,2,3,4,5,6,7,8,9,10],Yo=["column-reverse","column","row-reverse","row"],Go=["nowrap","wrap-reverse","wrap"],Ee=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Ho=Wt("MuiGrid",["root","container","item","zeroMinWidth",...Wo.map(t=>`spacing-xs-${t}`),...Yo.map(t=>`direction-xs-${t}`),...Go.map(t=>`wrap-xs-${t}`),...Ee.map(t=>`grid-xs-${t}`),...Ee.map(t=>`grid-sm-${t}`),...Ee.map(t=>`grid-md-${t}`),...Ee.map(t=>`grid-lg-${t}`),...Ee.map(t=>`grid-xl-${t}`)]),Pe=Ho,Uo=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function he(t){const n=parseFloat(t);return`${n}${String(t).replace(String(n),"")||"px"}`}function Zo({theme:t,ownerState:n}){let s;return t.breakpoints.keys.reduce((e,a)=>{let l={};if(n[a]&&(s=n[a]),!s)return e;if(s===!0)l={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(s==="auto")l={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const u=Ye({values:n.columns,breakpoints:t.breakpoints.values}),i=typeof u=="object"?u[a]:u;if(i==null)return e;const c=`${Math.round(s/i*1e8)/1e6}%`;let E={};if(n.container&&n.item&&n.columnSpacing!==0){const d=t.spacing(n.columnSpacing);if(d!=="0px"){const h=`calc(${c} + ${he(d)})`;E={flexBasis:h,maxWidth:h}}}l=Z({flexBasis:c,flexGrow:0,maxWidth:c},E)}return t.breakpoints.values[a]===0?Object.assign(e,l):e[t.breakpoints.up(a)]=l,e},{})}function Xo({theme:t,ownerState:n}){const s=Ye({values:n.direction,breakpoints:t.breakpoints.values});return it({theme:t},s,e=>{const a={flexDirection:e};return e.indexOf("column")===0&&(a[`& > .${Pe.item}`]={maxWidth:"none"}),a})}function to({breakpoints:t,values:n}){let s="";Object.keys(n).forEach(a=>{s===""&&n[a]!==0&&(s=a)});const e=Object.keys(t).sort((a,l)=>t[a]-t[l]);return e.slice(0,e.indexOf(s))}function Ko({theme:t,ownerState:n}){const{container:s,rowSpacing:e}=n;let a={};if(s&&e!==0){const l=Ye({values:e,breakpoints:t.breakpoints.values});let u;typeof l=="object"&&(u=to({breakpoints:t.breakpoints.values,values:l})),a=it({theme:t},l,(i,c)=>{var E;const d=t.spacing(i);return d!=="0px"?{marginTop:`-${he(d)}`,[`& > .${Pe.item}`]:{paddingTop:he(d)}}:(E=u)!=null&&E.includes(c)?{}:{marginTop:0,[`& > .${Pe.item}`]:{paddingTop:0}}})}return a}function qo({theme:t,ownerState:n}){const{container:s,columnSpacing:e}=n;let a={};if(s&&e!==0){const l=Ye({values:e,breakpoints:t.breakpoints.values});let u;typeof l=="object"&&(u=to({breakpoints:t.breakpoints.values,values:l})),a=it({theme:t},l,(i,c)=>{var E;const d=t.spacing(i);return d!=="0px"?{width:`calc(100% + ${he(d)})`,marginLeft:`-${he(d)}`,[`& > .${Pe.item}`]:{paddingLeft:he(d)}}:(E=u)!=null&&E.includes(c)?{}:{width:"100%",marginLeft:0,[`& > .${Pe.item}`]:{paddingLeft:0}}})}return a}function Qo(t,n,s={}){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[s[`spacing-xs-${String(t)}`]];const e=[];return n.forEach(a=>{const l=t[a];Number(l)>0&&e.push(s[`spacing-${a}-${String(l)}`])}),e}const Jo=Te("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:s}=t,{container:e,direction:a,item:l,spacing:u,wrap:i,zeroMinWidth:c,breakpoints:E}=s;let d=[];e&&(d=Qo(u,E,n));const h=[];return E.forEach(m=>{const x=s[m];x&&h.push(n[`grid-${m}-${String(x)}`])}),[n.root,e&&n.container,l&&n.item,c&&n.zeroMinWidth,...d,a!=="row"&&n[`direction-xs-${String(a)}`],i!=="wrap"&&n[`wrap-xs-${String(i)}`],...h]}})(({ownerState:t})=>Z({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},t.wrap!=="wrap"&&{flexWrap:t.wrap}),Xo,Ko,qo,Zo);function en(t,n){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[`spacing-xs-${String(t)}`];const s=[];return n.forEach(e=>{const a=t[e];if(Number(a)>0){const l=`spacing-${e}-${String(a)}`;s.push(l)}}),s}const tn=t=>{const{classes:n,container:s,direction:e,item:a,spacing:l,wrap:u,zeroMinWidth:i,breakpoints:c}=t;let E=[];s&&(E=en(l,c));const d=[];c.forEach(m=>{const x=t[m];x&&d.push(`grid-${m}-${String(x)}`)});const h={root:["root",s&&"container",a&&"item",i&&"zeroMinWidth",...E,e!=="row"&&`direction-xs-${String(e)}`,u!=="wrap"&&`wrap-xs-${String(u)}`,...d]};return Ut(h,Fo,n)},on=g.forwardRef(function(n,s){const e=Yt({props:n,name:"MuiGrid"}),{breakpoints:a}=lo(),l=Oo(e),{className:u,columns:i,columnSpacing:c,component:E="div",container:d=!1,direction:h="row",item:m=!1,rowSpacing:x,spacing:b=0,wrap:y="wrap",zeroMinWidth:P=!1}=l,v=Gt(l,Uo),j=x||b,M=c||b,A=g.useContext(Ot),C=d?i||12:A,_={},L=Z({},v);a.keys.forEach(f=>{v[f]!=null&&(_[f]=v[f],delete L[f])});const k=Z({},l,{columns:C,container:d,direction:h,item:m,rowSpacing:j,columnSpacing:M,wrap:y,zeroMinWidth:P,spacing:b},_,{breakpoints:a.keys}),F=tn(k);return o.jsx(Ot.Provider,{value:C,children:o.jsx(Jo,Z({ownerState:k,className:Ht(F.root,u),as:E,ref:s},L))})}),ce=on;function nn(t){return Ft("MuiSwitch",t)}const sn=Wt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),H=sn,rn=["className","color","edge","size","sx"],an=t=>{const{classes:n,edge:s,size:e,color:a,checked:l,disabled:u}=t,i={root:["root",s&&`edge${fe(s)}`,`size${fe(e)}`],switchBase:["switchBase",`color${fe(a)}`,l&&"checked",u&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=Ut(i,nn,n);return Z({},n,c)},cn=Te("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:s}=t;return[n.root,s.edge&&n[`edge${fe(s.edge)}`],n[`size${fe(s.size)}`]]}})(({ownerState:t})=>Z({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},t.edge==="start"&&{marginLeft:-8},t.edge==="end"&&{marginRight:-8},t.size==="small"&&{width:40,height:24,padding:7,[`& .${H.thumb}`]:{width:16,height:16},[`& .${H.switchBase}`]:{padding:4,[`&.${H.checked}`]:{transform:"translateX(16px)"}}})),ln=Te(Ao,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,n)=>{const{ownerState:s}=t;return[n.switchBase,{[`& .${H.input}`]:n.input},s.color!=="default"&&n[`color${fe(s.color)}`]]}})(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${H.checked}`]:{transform:"translateX(20px)"},[`&.${H.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${H.checked} + .${H.track}`]:{opacity:.5},[`&.${H.disabled} + .${H.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${H.input}`]:{left:"-100%",width:"300%"}}),({theme:t,ownerState:n})=>Z({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:gt(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},n.color!=="default"&&{[`&.${H.checked}`]:{color:(t.vars||t).palette[n.color].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:gt(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${H.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${n.color}DisabledColor`]:`${t.palette.mode==="light"?uo(t.palette[n.color].main,.62):po(t.palette[n.color].main,.55)}`}},[`&.${H.checked} + .${H.track}`]:{backgroundColor:(t.vars||t).palette[n.color].main}})),dn=Te("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,n)=>n.track})(({theme:t})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${t.palette.mode==="light"?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:`${t.palette.mode==="light"?.38:.3}`})),un=Te("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,n)=>n.thumb})(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),pn=g.forwardRef(function(n,s){const e=Yt({props:n,name:"MuiSwitch"}),{className:a,color:l="primary",edge:u=!1,size:i="medium",sx:c}=e,E=Gt(e,rn),d=Z({},e,{color:l,edge:u,size:i}),h=an(d),m=o.jsx(un,{className:h.thumb,ownerState:d});return o.jsxs(cn,{className:Ht(h.root,a),sx:c,ownerState:d,children:[o.jsx(ln,Z({type:"checkbox",icon:m,checkedIcon:m,ref:s,ownerState:d},E,{classes:Z({},h,{root:h.switchBase})})),o.jsx(dn,{className:h.track,ownerState:d})]})}),fn=pn,hn={type:"",parent:""},At=({onSelect:t,dataTestId:n,edgeLink:s,hideSelectAll:e})=>{const a=ct({mode:"onChange",defaultValues:hn}),{watch:l,setValue:u}=a,[i,c]=g.useState([]),[E,d]=g.useState(!1),h=y=>{u("parent",(y==null?void 0:y.value)||""),t(y==null?void 0:y.value)},m=y=>y.charAt(0).toUpperCase()+y.slice(1);g.useEffect(()=>{(async()=>{d(!0);try{const v=(await at()).schemas.filter(M=>!M.is_deleted&&M.type).map(M=>(M==null?void 0:M.type)==="thing"?{label:"No Parent",value:M.type}:{label:m(M.type),value:M.type});c(e?v:[{label:"Select all",value:"all"},...v]),s&&u("parent",s)}catch(P){console.warn(P)}finally{d(!1)}})()},[s,u,e]);const x=l("parent"),b=()=>{const y=i==null?void 0:i.find(P=>P.value===x);if(y)return y;if(s)return{label:s,value:s}};return o.jsx(Fe,{dataTestId:n,disabled:!!s,isLoading:E,onSelect:h,options:i||vo,selectedValue:b()})},mn=({selectedType:t,setSelectedFromNode:n,setSelectedToNode:s,edgeLinkData:e,selectedFromNode:a,selectedToNode:l})=>{const u=l==="all",i=a==="all";return o.jsxs(w,{children:[o.jsx(w,{align:"center",direction:"row",justify:"space-between",mb:35,children:o.jsx(w,{align:"center",direction:"row",children:o.jsx(gn,{children:e!=null&&e.refId?"Edit Edge":"Add Edge"})})}),o.jsxs(w,{mb:25,children:[o.jsx(w,{mb:12,children:o.jsx(K,{children:"Source"})}),o.jsx(At,{dataTestId:"from_node",edgeLink:e==null?void 0:e.source,hideSelectAll:u,onSelect:n})]}),o.jsxs(w,{mb:10,children:[o.jsx(w,{mb:12,children:o.jsx(K,{children:"Edge Name"})}),o.jsx(w,{mb:12,children:o.jsx(We,{id:"cy-item-name",maxLength:250,name:"type",placeholder:"Enter type name",rules:{...Le},value:t})})]}),o.jsxs(w,{mb:25,children:[o.jsx(w,{mb:12,children:o.jsx(K,{children:"Destination"})}),o.jsx(At,{dataTestId:"to_node",edgeLink:e==null?void 0:e.target,hideSelectAll:i,onSelect:s})]})]})},gn=B(K)` +import{r as g,b as Ft,g as Wt,s as Te,_ as Z,u as Yt,ad as lo,a as Gt,j as o,c as Ht,bo as Ye,bp as it,d as Ut,e as fe,f as gt,ae as uo,af as po,b9 as at,o as B,T as K,F as w,aW as Le,q as D,bq as fo,br as et,bs as ho,b8 as Zt,O as Xt,aa as Ve,aV as pe,a1 as xt,a0 as bt,Z as yt,Y as wt,X as mo,M as go,ao as jt}from"./index-f50d1ab5.js";import{B as xo}from"./index-cc30c812.js";import{i as ct,B as Oe,F as Kt,k as lt,p as bo,h as yo,I as wo,q as jo,b as qt}from"./index-f857b04d.js";import{A as Fe,O as vo,a as vt,N as Qt}from"./index-f812334e.js";import{T as We}from"./index-bd1e0bc6.js";import{C as le}from"./ClipLoader-f52b169b.js";import{D as Co}from"./DeleteIcon-9461c6b1.js";import{P as Eo}from"./PlusIcon-95ca5a40.js";import{p as st,c as Po,g as To}from"./index-44e303ef.js";import{e as Oo}from"./Stack-a4065033.js";import{S as Ao}from"./SwitchBase-49769912.js";import{g as Mo,m as $o,u as ee,b as Ge,t as rt,T as Jt,i as eo,H as So,j as Ct,C as _o,P as Io,k as No}from"./index-26c7ce89.js";import{Z as ko,_ as zo,E as Ro,V as N,$ as de,a0 as ue,a1 as Et,P as Re,a2 as De,a3 as Pt,a as q,a4 as Do,G as Bo,C as Lo}from"./three.module-2ce81f73.js";import{A as Tt}from"./AddContentIcon-60d5e19c.js";import"./Popover-a7534715.js";import"./useSlotProps-f1483ce3.js";import"./createSvgIcon-c64a52be.js";import"./TextareaAutosize-04e2890c.js";import"./index.esm-22240fd2.js";import"./InfoIcon-89f3f76d.js";const Vo=g.createContext(),Ot=Vo;function Fo(t){return Ft("MuiGrid",t)}const Wo=[0,1,2,3,4,5,6,7,8,9,10],Yo=["column-reverse","column","row-reverse","row"],Go=["nowrap","wrap-reverse","wrap"],Ee=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Ho=Wt("MuiGrid",["root","container","item","zeroMinWidth",...Wo.map(t=>`spacing-xs-${t}`),...Yo.map(t=>`direction-xs-${t}`),...Go.map(t=>`wrap-xs-${t}`),...Ee.map(t=>`grid-xs-${t}`),...Ee.map(t=>`grid-sm-${t}`),...Ee.map(t=>`grid-md-${t}`),...Ee.map(t=>`grid-lg-${t}`),...Ee.map(t=>`grid-xl-${t}`)]),Pe=Ho,Uo=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function he(t){const n=parseFloat(t);return`${n}${String(t).replace(String(n),"")||"px"}`}function Zo({theme:t,ownerState:n}){let s;return t.breakpoints.keys.reduce((e,a)=>{let l={};if(n[a]&&(s=n[a]),!s)return e;if(s===!0)l={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(s==="auto")l={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const u=Ye({values:n.columns,breakpoints:t.breakpoints.values}),i=typeof u=="object"?u[a]:u;if(i==null)return e;const c=`${Math.round(s/i*1e8)/1e6}%`;let E={};if(n.container&&n.item&&n.columnSpacing!==0){const d=t.spacing(n.columnSpacing);if(d!=="0px"){const h=`calc(${c} + ${he(d)})`;E={flexBasis:h,maxWidth:h}}}l=Z({flexBasis:c,flexGrow:0,maxWidth:c},E)}return t.breakpoints.values[a]===0?Object.assign(e,l):e[t.breakpoints.up(a)]=l,e},{})}function Xo({theme:t,ownerState:n}){const s=Ye({values:n.direction,breakpoints:t.breakpoints.values});return it({theme:t},s,e=>{const a={flexDirection:e};return e.indexOf("column")===0&&(a[`& > .${Pe.item}`]={maxWidth:"none"}),a})}function to({breakpoints:t,values:n}){let s="";Object.keys(n).forEach(a=>{s===""&&n[a]!==0&&(s=a)});const e=Object.keys(t).sort((a,l)=>t[a]-t[l]);return e.slice(0,e.indexOf(s))}function Ko({theme:t,ownerState:n}){const{container:s,rowSpacing:e}=n;let a={};if(s&&e!==0){const l=Ye({values:e,breakpoints:t.breakpoints.values});let u;typeof l=="object"&&(u=to({breakpoints:t.breakpoints.values,values:l})),a=it({theme:t},l,(i,c)=>{var E;const d=t.spacing(i);return d!=="0px"?{marginTop:`-${he(d)}`,[`& > .${Pe.item}`]:{paddingTop:he(d)}}:(E=u)!=null&&E.includes(c)?{}:{marginTop:0,[`& > .${Pe.item}`]:{paddingTop:0}}})}return a}function qo({theme:t,ownerState:n}){const{container:s,columnSpacing:e}=n;let a={};if(s&&e!==0){const l=Ye({values:e,breakpoints:t.breakpoints.values});let u;typeof l=="object"&&(u=to({breakpoints:t.breakpoints.values,values:l})),a=it({theme:t},l,(i,c)=>{var E;const d=t.spacing(i);return d!=="0px"?{width:`calc(100% + ${he(d)})`,marginLeft:`-${he(d)}`,[`& > .${Pe.item}`]:{paddingLeft:he(d)}}:(E=u)!=null&&E.includes(c)?{}:{width:"100%",marginLeft:0,[`& > .${Pe.item}`]:{paddingLeft:0}}})}return a}function Qo(t,n,s={}){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[s[`spacing-xs-${String(t)}`]];const e=[];return n.forEach(a=>{const l=t[a];Number(l)>0&&e.push(s[`spacing-${a}-${String(l)}`])}),e}const Jo=Te("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:s}=t,{container:e,direction:a,item:l,spacing:u,wrap:i,zeroMinWidth:c,breakpoints:E}=s;let d=[];e&&(d=Qo(u,E,n));const h=[];return E.forEach(m=>{const x=s[m];x&&h.push(n[`grid-${m}-${String(x)}`])}),[n.root,e&&n.container,l&&n.item,c&&n.zeroMinWidth,...d,a!=="row"&&n[`direction-xs-${String(a)}`],i!=="wrap"&&n[`wrap-xs-${String(i)}`],...h]}})(({ownerState:t})=>Z({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},t.wrap!=="wrap"&&{flexWrap:t.wrap}),Xo,Ko,qo,Zo);function en(t,n){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[`spacing-xs-${String(t)}`];const s=[];return n.forEach(e=>{const a=t[e];if(Number(a)>0){const l=`spacing-${e}-${String(a)}`;s.push(l)}}),s}const tn=t=>{const{classes:n,container:s,direction:e,item:a,spacing:l,wrap:u,zeroMinWidth:i,breakpoints:c}=t;let E=[];s&&(E=en(l,c));const d=[];c.forEach(m=>{const x=t[m];x&&d.push(`grid-${m}-${String(x)}`)});const h={root:["root",s&&"container",a&&"item",i&&"zeroMinWidth",...E,e!=="row"&&`direction-xs-${String(e)}`,u!=="wrap"&&`wrap-xs-${String(u)}`,...d]};return Ut(h,Fo,n)},on=g.forwardRef(function(n,s){const e=Yt({props:n,name:"MuiGrid"}),{breakpoints:a}=lo(),l=Oo(e),{className:u,columns:i,columnSpacing:c,component:E="div",container:d=!1,direction:h="row",item:m=!1,rowSpacing:x,spacing:b=0,wrap:y="wrap",zeroMinWidth:P=!1}=l,v=Gt(l,Uo),j=x||b,M=c||b,A=g.useContext(Ot),C=d?i||12:A,_={},L=Z({},v);a.keys.forEach(f=>{v[f]!=null&&(_[f]=v[f],delete L[f])});const z=Z({},l,{columns:C,container:d,direction:h,item:m,rowSpacing:j,columnSpacing:M,wrap:y,zeroMinWidth:P,spacing:b},_,{breakpoints:a.keys}),F=tn(z);return o.jsx(Ot.Provider,{value:C,children:o.jsx(Jo,Z({ownerState:z,className:Ht(F.root,u),as:E,ref:s},L))})}),ce=on;function nn(t){return Ft("MuiSwitch",t)}const sn=Wt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),H=sn,rn=["className","color","edge","size","sx"],an=t=>{const{classes:n,edge:s,size:e,color:a,checked:l,disabled:u}=t,i={root:["root",s&&`edge${fe(s)}`,`size${fe(e)}`],switchBase:["switchBase",`color${fe(a)}`,l&&"checked",u&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=Ut(i,nn,n);return Z({},n,c)},cn=Te("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:s}=t;return[n.root,s.edge&&n[`edge${fe(s.edge)}`],n[`size${fe(s.size)}`]]}})(({ownerState:t})=>Z({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},t.edge==="start"&&{marginLeft:-8},t.edge==="end"&&{marginRight:-8},t.size==="small"&&{width:40,height:24,padding:7,[`& .${H.thumb}`]:{width:16,height:16},[`& .${H.switchBase}`]:{padding:4,[`&.${H.checked}`]:{transform:"translateX(16px)"}}})),ln=Te(Ao,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,n)=>{const{ownerState:s}=t;return[n.switchBase,{[`& .${H.input}`]:n.input},s.color!=="default"&&n[`color${fe(s.color)}`]]}})(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${H.checked}`]:{transform:"translateX(20px)"},[`&.${H.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${H.checked} + .${H.track}`]:{opacity:.5},[`&.${H.disabled} + .${H.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${H.input}`]:{left:"-100%",width:"300%"}}),({theme:t,ownerState:n})=>Z({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:gt(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},n.color!=="default"&&{[`&.${H.checked}`]:{color:(t.vars||t).palette[n.color].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:gt(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${H.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${n.color}DisabledColor`]:`${t.palette.mode==="light"?uo(t.palette[n.color].main,.62):po(t.palette[n.color].main,.55)}`}},[`&.${H.checked} + .${H.track}`]:{backgroundColor:(t.vars||t).palette[n.color].main}})),dn=Te("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,n)=>n.track})(({theme:t})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${t.palette.mode==="light"?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:`${t.palette.mode==="light"?.38:.3}`})),un=Te("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,n)=>n.thumb})(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),pn=g.forwardRef(function(n,s){const e=Yt({props:n,name:"MuiSwitch"}),{className:a,color:l="primary",edge:u=!1,size:i="medium",sx:c}=e,E=Gt(e,rn),d=Z({},e,{color:l,edge:u,size:i}),h=an(d),m=o.jsx(un,{className:h.thumb,ownerState:d});return o.jsxs(cn,{className:Ht(h.root,a),sx:c,ownerState:d,children:[o.jsx(ln,Z({type:"checkbox",icon:m,checkedIcon:m,ref:s,ownerState:d},E,{classes:Z({},h,{root:h.switchBase})})),o.jsx(dn,{className:h.track,ownerState:d})]})}),fn=pn,hn={type:"",parent:""},At=({onSelect:t,dataTestId:n,edgeLink:s,hideSelectAll:e})=>{const a=ct({mode:"onChange",defaultValues:hn}),{watch:l,setValue:u}=a,[i,c]=g.useState([]),[E,d]=g.useState(!1),h=y=>{u("parent",(y==null?void 0:y.value)||""),t(y==null?void 0:y.value)},m=y=>y.charAt(0).toUpperCase()+y.slice(1);g.useEffect(()=>{(async()=>{d(!0);try{const v=(await at()).schemas.filter(M=>!M.is_deleted&&M.type).map(M=>(M==null?void 0:M.type)==="thing"?{label:"No Parent",value:M.type}:{label:m(M.type),value:M.type});c(e?v:[{label:"Select all",value:"all"},...v]),s&&u("parent",s)}catch(P){console.warn(P)}finally{d(!1)}})()},[s,u,e]);const x=l("parent"),b=()=>{const y=i==null?void 0:i.find(P=>P.value===x);if(y)return y;if(s)return{label:s,value:s}};return o.jsx(Fe,{dataTestId:n,disabled:!!s,isLoading:E,onSelect:h,options:i||vo,selectedValue:b()})},mn=({selectedType:t,setSelectedFromNode:n,setSelectedToNode:s,edgeLinkData:e,selectedFromNode:a,selectedToNode:l})=>{const u=l==="all",i=a==="all";return o.jsxs(w,{children:[o.jsx(w,{align:"center",direction:"row",justify:"space-between",mb:35,children:o.jsx(w,{align:"center",direction:"row",children:o.jsx(gn,{children:e!=null&&e.refId?"Edit Edge":"Add Edge"})})}),o.jsxs(w,{mb:25,children:[o.jsx(w,{mb:12,children:o.jsx(K,{children:"Source"})}),o.jsx(At,{dataTestId:"from_node",edgeLink:e==null?void 0:e.source,hideSelectAll:u,onSelect:n})]}),o.jsxs(w,{mb:10,children:[o.jsx(w,{mb:12,children:o.jsx(K,{children:"Edge Name"})}),o.jsx(w,{mb:12,children:o.jsx(We,{id:"cy-item-name",maxLength:250,name:"type",placeholder:"Enter type name",rules:{...Le},value:t})})]}),o.jsxs(w,{mb:25,children:[o.jsx(w,{mb:12,children:o.jsx(K,{children:"Destination"})}),o.jsx(At,{dataTestId:"to_node",edgeLink:e==null?void 0:e.target,hideSelectAll:i,onSelect:s})]})]})},gn=B(K)` font-size: 22px; font-weight: 600; -`,xn=({onCancel:t,edgeLinkData:n,setGraphLoading:s})=>{var _,L,k;const e=ct({mode:"onChange"}),{setValue:a,getValues:l}=e,[u,i]=g.useState(!1),[c,E]=g.useState(!1),[d,h]=g.useState(""),[m,x]=g.useState(""),[b,y]=g.useState(""),P=e.watch("type");g.useEffect(()=>{a("type",n==null?void 0:n.edgeType)},[n==null?void 0:n.edgeType,a]),g.useEffect(()=>{h(P)},[P]);const v=e.handleSubmit(async F=>{i(!0),s(!0);const f={source:m,target:b,edge_type:F.type},$={ref_id:n==null?void 0:n.refId,edge_type:F.type};try{if(n!=null&&n.refId)await fo($);else if(b&&m)if(m==="all"||b==="all"){const S=(await at()).schemas.filter(W=>!W.is_deleted&&W.type).map(W=>W.type);m==="all"?await Promise.all(S.map(W=>et({...f,source:W}))):b==="all"&&await Promise.all(S.map(W=>et({...f,target:W})))}else await et(f)}catch(V){console.warn("API Error:",V)}finally{i(!1),s(!1),x(""),y(""),t()}}),j=(L=(_=l())==null?void 0:_.type)==null?void 0:L.trim(),M=j&&((k=n==null?void 0:n.edgeType)==null?void 0:k.trim())!==j,A=n!=null&&n.refId?u||!M:u||!b||!m||!d,C=async()=>{E(!0),s(!0);try{n!=null&&n.refId&&await ho(n==null?void 0:n.refId)}catch(F){console.warn("API Error:",F)}finally{E(!1),s(!1),x(""),y(""),t()}};return o.jsx(Kt,{...e,children:o.jsxs("form",{id:"add-type-form",onSubmit:v,children:[o.jsx(mn,{edgeLinkData:n,selectedFromNode:m,selectedToNode:b,selectedType:d,setSelectedFromNode:x,setSelectedToNode:y}),o.jsxs(w,{direction:"row",justify:"space-between",mt:20,children:[(n==null?void 0:n.refId)&&o.jsx(w,{direction:"column",children:o.jsxs(yn,{color:"secondary",disabled:c,onClick:C,size:"large",style:{marginRight:20},variant:"contained",children:["Delete",c&&o.jsxs(Mt,{children:[o.jsx(le,{color:D.lightGray,size:12})," "]})]})}),o.jsxs(bn,{color:"secondary",disabled:A,onClick:v,size:"large",variant:"contained",children:["Confirm",u&&o.jsxs(Mt,{children:[o.jsx(le,{color:D.lightGray,size:12})," "]})]})]})]})})},bn=B(Oe)` +`,xn=({onCancel:t,edgeLinkData:n,setGraphLoading:s})=>{var _,L,z;const e=ct({mode:"onChange"}),{setValue:a,getValues:l}=e,[u,i]=g.useState(!1),[c,E]=g.useState(!1),[d,h]=g.useState(""),[m,x]=g.useState(""),[b,y]=g.useState(""),P=e.watch("type");g.useEffect(()=>{a("type",n==null?void 0:n.edgeType)},[n==null?void 0:n.edgeType,a]),g.useEffect(()=>{h(P)},[P]);const v=e.handleSubmit(async F=>{i(!0),s(!0);const f={source:m,target:b,edge_type:F.type},$={ref_id:n==null?void 0:n.refId,edge_type:F.type};try{if(n!=null&&n.refId)await fo($);else if(b&&m)if(m==="all"||b==="all"){const S=(await at()).schemas.filter(W=>!W.is_deleted&&W.type).map(W=>W.type);m==="all"?await Promise.all(S.map(W=>et({...f,source:W}))):b==="all"&&await Promise.all(S.map(W=>et({...f,target:W})))}else await et(f)}catch(V){console.warn("API Error:",V)}finally{i(!1),s(!1),x(""),y(""),t()}}),j=(L=(_=l())==null?void 0:_.type)==null?void 0:L.trim(),M=j&&((z=n==null?void 0:n.edgeType)==null?void 0:z.trim())!==j,A=n!=null&&n.refId?u||!M:u||!b||!m||!d,C=async()=>{E(!0),s(!0);try{n!=null&&n.refId&&await ho(n==null?void 0:n.refId)}catch(F){console.warn("API Error:",F)}finally{E(!1),s(!1),x(""),y(""),t()}};return o.jsx(Kt,{...e,children:o.jsxs("form",{id:"add-type-form",onSubmit:v,children:[o.jsx(mn,{edgeLinkData:n,selectedFromNode:m,selectedToNode:b,selectedType:d,setSelectedFromNode:x,setSelectedToNode:y}),o.jsxs(w,{direction:"row",justify:"space-between",mt:20,children:[(n==null?void 0:n.refId)&&o.jsx(w,{direction:"column",children:o.jsxs(yn,{color:"secondary",disabled:c,onClick:C,size:"large",style:{marginRight:20},variant:"contained",children:["Delete",c&&o.jsxs(Mt,{children:[o.jsx(le,{color:D.lightGray,size:12})," "]})]})}),o.jsxs(bn,{color:"secondary",disabled:A,onClick:v,size:"large",variant:"contained",children:["Confirm",u&&o.jsxs(Mt,{children:[o.jsx(le,{color:D.lightGray,size:12})," "]})]})]})]})})},bn=B(Oe)` width: 293px !important; margin: 0 0 10px auto !important; `,Mt=B.span` @@ -22,14 +22,14 @@ import{r as g,b as Ft,g as Wt,s as Te,_ as Z,u as Yt,ad as lo,a as Gt,j as o,c a font-size: 32px; color: ${D.white}; cursor: pointer; -`,vn=/^[a-z0-9_]+$/,Cn=({parentParam:t,onDelete:n})=>{const[s,e]=g.useState(!1),[a,l]=g.useState([]),{fields:u,append:i,replace:c,remove:E}=bo({name:"attributes"}),{setValue:d,watch:h}=yo();return g.useEffect(()=>{const m=async()=>{try{let x=[{required:!1,type:"string",key:""}];if(t!==qt.value.toLowerCase()){e(!0);const b=await Zt(t);b.attributes&&typeof b.attributes=="object"?x=st(b.attributes):x=st(b)}x=x.filter(b=>b.key!=="node_key"),c(x),l(x)}catch(x){console.warn(x)}finally{e(!1)}};a.length===0&&m()},[t,d,c,a.length]),o.jsxs(o.Fragment,{children:[s?o.jsx(w,{align:"center",children:o.jsx(le,{color:D.SECONDARY_BLUE,size:"30"})}):o.jsx(En,{py:8,children:o.jsx(ce,{container:!0,spacing:2,children:u.map((m,x)=>{const b=h(`attributes[${x}].type`),y=h(`attributes[${x}].required`),P=m.isNew||!1,v=["name"].includes(h(`attributes[${x}].key`));return o.jsxs(g.Fragment,{children:[o.jsx(ce,{item:!0,xs:5,children:o.jsx(We,{autoComplete:"off",className:"text-input",dataTestId:`cy-item-name-${x}`,disabled:!P,id:`cy-item-name-${x}`,maxLength:50,name:`attributes.${x}.key`,placeholder:"Enter value",rules:{...Le,pattern:{message:"Please avoid special characters, spaces and uppercase",value:vn}}})}),o.jsx(ce,{item:!0,xs:4,children:o.jsx(Fe,{dataTestId:`cy-item-select-${x}`,disabled:v,onSelect:j=>d(`attributes[${x}].type`,j==null?void 0:j.value),options:vt,selectedValue:vt.find(j=>j.value===b)})}),o.jsxs(ce,{item:!0,xs:3,children:[o.jsx(fn,{checked:y,"data-testid":`cy-item-${x}`,disabled:v,name:`attributes.${x}.required`,onChange:j=>d(`attributes[${x}].required`,j.target.checked),size:"small"}),!v&&o.jsx(wo,{onClick:()=>{E(x),m.key!==void 0&&n&&n(m.key)},children:o.jsx(Co,{})})]})]},m.id)})})}),o.jsx(w,{align:"flex-start",py:12,children:o.jsx(Oe,{"data-testid":"add-attribute-btn",onClick:()=>i({key:"",type:"string",required:!0,isNew:!0}),size:"medium",startIcon:o.jsx(Eo,{}),variant:"contained",children:"Add Attribute"})})]})},En=B(w)` +`,vn=/^[a-z0-9_]+$/,Cn=({parentParam:t,onDelete:n})=>{const[s,e]=g.useState(!1),[a,l]=g.useState([]),{fields:u,append:i,replace:c,remove:E}=bo({name:"attributes"}),{setValue:d,watch:h}=yo();return g.useEffect(()=>{const m=async()=>{try{let x=[{required:!1,type:"string",key:""}];if(t!==Qt.value.toLowerCase()){e(!0);const b=await Zt(t);b.attributes&&typeof b.attributes=="object"?x=st(b.attributes):x=st(b)}x=x.filter(b=>b.key!=="node_key"),c(x),l(x)}catch(x){console.warn(x)}finally{e(!1)}};a.length===0&&m()},[t,d,c,a.length]),o.jsxs(o.Fragment,{children:[s?o.jsx(w,{align:"center",children:o.jsx(le,{color:D.SECONDARY_BLUE,size:"30"})}):o.jsx(En,{py:8,children:o.jsx(ce,{container:!0,spacing:2,children:u.map((m,x)=>{const b=h(`attributes[${x}].type`),y=h(`attributes[${x}].required`),P=m.isNew||!1,v=["name"].includes(h(`attributes[${x}].key`));return o.jsxs(g.Fragment,{children:[o.jsx(ce,{item:!0,xs:5,children:o.jsx(We,{autoComplete:"off",className:"text-input",dataTestId:`cy-item-name-${x}`,disabled:!P,id:`cy-item-name-${x}`,maxLength:50,name:`attributes.${x}.key`,placeholder:"Enter value",rules:{...Le,pattern:{message:"Please avoid special characters, spaces and uppercase",value:vn}}})}),o.jsx(ce,{item:!0,xs:4,children:o.jsx(Fe,{dataTestId:`cy-item-select-${x}`,disabled:v,onSelect:j=>d(`attributes[${x}].type`,j==null?void 0:j.value),options:vt,selectedValue:vt.find(j=>j.value===b)})}),o.jsxs(ce,{item:!0,xs:3,children:[o.jsx(fn,{checked:y,"data-testid":`cy-item-${x}`,disabled:v,name:`attributes.${x}.required`,onChange:j=>d(`attributes[${x}].required`,j.target.checked),size:"small"}),!v&&o.jsx(wo,{onClick:()=>{E(x),m.key!==void 0&&n&&n(m.key)},children:o.jsx(Co,{})})]})]},m.id)})})}),o.jsx(w,{align:"flex-start",py:12,children:o.jsx(Oe,{"data-testid":"add-attribute-btn",onClick:()=>i({key:"",type:"string",required:!0,isNew:!0}),size:"medium",startIcon:o.jsx(Eo,{}),variant:"contained",children:"Add Attribute"})})]})},En=B(w)` overflow-y: auto; width: calc(100% + 20px); max-height: calc(80vh - 300px); `,Pn=({parent:t,onDelete:n})=>{const s=t;return o.jsxs(w,{children:[o.jsx(w,{direction:"row",mb:10,children:o.jsxs(ce,{container:!0,spacing:2,children:[o.jsx(ce,{item:!0,xs:5,children:o.jsx(tt,{style:{marginRight:180},children:"Attributes"})}),o.jsx(ce,{item:!0,xs:4,children:o.jsx(tt,{style:{marginRight:130},children:"Type"})}),o.jsx(ce,{item:!0,xs:3,children:o.jsx(tt,{children:"Required"})})]})}),s&&o.jsx(Cn,{onDelete:n,parentParam:s},s)]})},tt=B(K)` font-size: 15px; color: gray; -`,Tn={type:"",parent:""},On=(t,n)=>t.length!==n.length?!0:t.some((s,e)=>{const a=n[e];return s.required!==a.required||s.type!==a.type||s.key!==a.key}),An=async(t,n=!1,s)=>{try{const{attributes:e,...a}=t,l={...Po(e),...s.reduce((c,E)=>({...c,[E]:"delete"}),{})},u={...a,attributes:l};let i;if(n?i=await Ve.put(`/schema/${t.ref_id}`,JSON.stringify(u),{}):i=await Ve.post("/schema",JSON.stringify({...u,node_key:"name"}),{}),i.status!=="success")throw new Error("error");return i==null?void 0:i.ref_id}catch(e){let a=pe;if(e.status===400){const l=await e.json();a=l.errorCode||(l==null?void 0:l.status)||pe}else e instanceof Error&&(a=e.message);throw new Error(a)}},Mn=t=>t.charAt(0).toUpperCase()+t.slice(1),$t=async(t,n)=>{try{const l=((await at()).schemas||[]).filter(u=>!u.is_deleted&&u.type&&(!n||n(u))).map(u=>u.type==="thing"?{label:"No Parent",value:u.type}:{label:Mn(u.type),value:u.type});t(l)}catch(s){console.warn(s)}},$n=({graphLoading:t,onSchemaCreate:n,selectedSchema:s,onDelete:e,setSelectedSchemaId:a,setGraphLoading:l,setIsCreateNew:u,onSchemaUpdate:i})=>{const{close:c,visible:E}=Xt("addType"),d=ct({mode:"onChange",defaultValues:s?{type:s.type,parent:s.parent}:Tn}),{watch:h,setValue:m,reset:x,getValues:b}=d,[y,P]=g.useState(!1),[v,j]=g.useState(!1),[M,A]=g.useState(!1),[C,_]=g.useState(null),[L,k]=g.useState(!1),[F,f]=g.useState(null),[$,V]=g.useState(""),[S,W]=g.useState(null),[X,te]=g.useState([]),[re,J]=g.useState([]),[me,Ae]=g.useState(!0);g.useEffect(()=>()=>{x()},[E,x]);const Me=()=>{u(!1),a("")};g.useEffect(()=>{s||(A(!0),$t(_).finally(()=>A(!1)))},[s]),g.useEffect(()=>{(async()=>{if(s){m("type",s==null?void 0:s.type),m("parent",s.parent);let z=[{required:!1,type:"string",key:""}];if(s.type!==qt.value.toLowerCase()){const Y=await Zt(s.type);z=Y?st(Y):z}z=z.filter(Y=>Y.key!=="node_key"),J(z),await $t(f,Y=>Y.type!==s.type)}})()},[s,m]);const U=h("parent");h("type");const $e=I=>Array.isArray(I)&&I.every(z=>typeof z=="object"&&"key"in z),ge=h("attributes"),xe=g.useMemo(()=>$e(ge)?ge:[],[ge]),He=()=>{c()},Ue=I=>{te(z=>[...z,I])},Ze=async()=>{if(s!=null&&s.type){j(!0),l(!0);try{await Ve.delete(`/schema/${s.ref_id}`),e(s.type),c()}catch(I){let z=pe;if((I==null?void 0:I.status)===400){const Y=await I.json();z=Y.errorCode||(Y==null?void 0:Y.status)||pe}else I instanceof Error&&(z=I.message);W(z)}finally{j(!1),l(!1),u(!1)}}},Se=d.handleSubmit(async I=>{if(!U){k(!0);return}P(!0);try{if(s&&I.type!==(s==null?void 0:s.type)||s&&b().parent!==(s==null?void 0:s.parent)){const Y=b().parent??(s==null?void 0:s.parent);l(!0),await Ve.put(`/schema/${s==null?void 0:s.ref_id}`,JSON.stringify({type:I.type,parent:Y})),await i()}const z=await An({...I,...s?{ref_id:s==null?void 0:s.ref_id}:{}},!!s,X);n({type:I.type,parent:U||"",ref_id:(s==null?void 0:s.ref_id)||z||"new"}),He()}catch(z){let Y=pe;if((z==null?void 0:z.status)===400){const ie=await z.json();Y=ie.errorCode||(ie==null?void 0:ie.status)||pe}else z instanceof Error&&(Y=z.message);V(Y)}finally{P(!1),l(!1),u(!1)}});g.useEffect(()=>{const I=d.watch(z=>{var ye,we,Ie,Ne,je;const Y=On(xe,re),ie=((ye=z.type)==null?void 0:ye.trim())!==((we=s==null?void 0:s.type)==null?void 0:we.trim())||((Ie=z.parent)==null?void 0:Ie.trim())!==((Ne=s==null?void 0:s.parent)==null?void 0:Ne.trim())||Y,be=!!((je=z.type)!=null&&je.trim());Ae(s?y||!ie||!be||L:y||L||!be)});return()=>I.unsubscribe()},[d,xe,re,s,y,L]);const Xe=()=>C==null?void 0:C.find(I=>I.value===U),_e=()=>{const I=F==null?void 0:F.find(z=>z.value===U);if(I)return I;if(U)return{label:U,value:U}};return o.jsxs(w,{children:[o.jsx(w,{direction:"row",justify:"flex-end",children:o.jsx(In,{"data-testid":"close-sidebar-sub-view",onClick:Me,children:o.jsx(lt,{})})}),o.jsx(w,{children:o.jsx(Kt,{...d,children:o.jsxs("form",{id:"add-type-form",onSubmit:Se,children:[o.jsx(w,{children:s?o.jsxs(o.Fragment,{children:[o.jsxs(w,{mb:12,children:[o.jsx(w,{mb:12,children:o.jsx(K,{children:"Name"})}),o.jsx(w,{mb:12,children:o.jsx(We,{dataTestId:"cy-item-name",defaultValue:s==null?void 0:s.type,id:"cy-item-name",maxLength:250,name:"type",placeholder:"Enter type name",rules:{...Le},value:U})})]}),o.jsxs(w,{mb:12,children:[o.jsx(w,{mb:12,children:o.jsx(K,{children:"Parent"})}),o.jsx(Fe,{isLoading:M||t,onSelect:I=>{m("parent",(I==null?void 0:I.value)||""),k(!1)},options:F||[],selectedValue:_e()}),$&&o.jsx(ot,{children:$})]})]}):o.jsxs(o.Fragment,{children:[o.jsxs(w,{mb:12,children:[o.jsx(w,{mb:12,children:o.jsx(K,{children:"Select Parent"})}),o.jsx(Fe,{isLoading:M,onSelect:I=>{m("parent",(I==null?void 0:I.value)||""),k(!1)},options:C,selectedValue:Xe()}),L&&o.jsx(ot,{children:"A parent type must be selected"})]}),o.jsxs(w,{children:[o.jsx(w,{mb:12,children:o.jsx(K,{children:"Type name"})}),o.jsx(w,{mb:12,children:o.jsx(We,{id:"cy-item-name",maxLength:250,name:"type",placeholder:"Enter type name",rules:{...Le},value:U})})]})]})}),o.jsx(Pn,{onDelete:Ue,parent:s?s.type:U}),o.jsxs(w,{direction:"row",justify:"space-between",mt:20,children:[s&&o.jsxs(w,{direction:"column",children:[o.jsxs(_n,{color:"secondary",disabled:v,onClick:Ze,size:"large",style:{marginRight:20},variant:"contained",children:["Delete",v&&o.jsxs(St,{children:[o.jsx(le,{color:D.lightGray,size:12})," "]})]}),S&&o.jsx(ot,{children:S})]}),o.jsxs(Sn,{color:"secondary",disabled:me,onClick:Se,size:"large",variant:"contained",children:["Confirm",y&&o.jsxs(St,{children:[o.jsx(le,{color:D.lightGray,size:12})," "]})]})]})]})})})]})},Sn=B(Oe)` +`,Tn={type:"",parent:""},On=(t,n)=>t.length!==n.length?!0:t.some((s,e)=>{const a=n[e];return s.required!==a.required||s.type!==a.type||s.key!==a.key}),An=async(t,n=!1,s)=>{try{const{attributes:e,...a}=t,l={...Po(e),...s.reduce((c,E)=>({...c,[E]:"delete"}),{})},u={...a,attributes:l};let i;if(n?i=await Ve.put(`/schema/${t.ref_id}`,JSON.stringify(u),{}):i=await Ve.post("/schema",JSON.stringify({...u,node_key:"name"}),{}),i.status!=="success")throw new Error("error");return i==null?void 0:i.ref_id}catch(e){let a=pe;if(e.status===400){const l=await e.json();a=l.errorCode||(l==null?void 0:l.status)||pe}else e instanceof Error&&(a=e.message);throw new Error(a)}},Mn=t=>t.charAt(0).toUpperCase()+t.slice(1),$t=async(t,n)=>{try{const l=((await at()).schemas||[]).filter(u=>!u.is_deleted&&u.type&&(!n||n(u))).map(u=>u.type==="thing"?{label:"No Parent",value:u.type}:{label:Mn(u.type),value:u.type});t(l)}catch(s){console.warn(s)}},$n=({graphLoading:t,onSchemaCreate:n,selectedSchema:s,onDelete:e,setSelectedSchemaId:a,setGraphLoading:l,setIsCreateNew:u,onSchemaUpdate:i})=>{const{close:c,visible:E}=Xt("addType"),d=ct({mode:"onChange",defaultValues:s?{type:s.type,parent:s.parent}:Tn}),{watch:h,setValue:m,reset:x,getValues:b}=d,[y,P]=g.useState(!1),[v,j]=g.useState(!1),[M,A]=g.useState(!1),[C,_]=g.useState(null),[L,z]=g.useState(!1),[F,f]=g.useState(null),[$,V]=g.useState(""),[S,W]=g.useState(null),[X,te]=g.useState([]),[re,J]=g.useState([]),[me,Ae]=g.useState(!0);g.useEffect(()=>()=>{x()},[E,x]);const Me=()=>{u(!1),a("")};g.useEffect(()=>{s||(A(!0),$t(_).finally(()=>A(!1)))},[s]),g.useEffect(()=>{(async()=>{if(s){m("type",s==null?void 0:s.type),m("parent",s.parent);let k=[{required:!1,type:"string",key:""}];if(s.type!==Qt.value.toLowerCase()){const Y=await Zt(s.type);k=Y?st(Y):k}k=k.filter(Y=>Y.key!=="node_key"),J(k),await $t(f,Y=>Y.type!==s.type)}})()},[s,m]);const U=h("parent");h("type");const $e=I=>Array.isArray(I)&&I.every(k=>typeof k=="object"&&"key"in k),ge=h("attributes"),xe=g.useMemo(()=>$e(ge)?ge:[],[ge]),He=()=>{c()},Ue=I=>{te(k=>[...k,I])},Ze=async()=>{if(s!=null&&s.type){j(!0),l(!0);try{await Ve.delete(`/schema/${s.ref_id}`),e(s.type),c()}catch(I){let k=pe;if((I==null?void 0:I.status)===400){const Y=await I.json();k=Y.errorCode||(Y==null?void 0:Y.status)||pe}else I instanceof Error&&(k=I.message);W(k)}finally{j(!1),l(!1),u(!1)}}},Se=d.handleSubmit(async I=>{if(!U){z(!0);return}P(!0);try{if(s&&I.type!==(s==null?void 0:s.type)||s&&b().parent!==(s==null?void 0:s.parent)){const Y=b().parent??(s==null?void 0:s.parent);l(!0),await Ve.put(`/schema/${s==null?void 0:s.ref_id}`,JSON.stringify({type:I.type,parent:Y})),await i()}const k=await An({...I,...s?{ref_id:s==null?void 0:s.ref_id}:{}},!!s,X);n({type:I.type,parent:U||"",ref_id:(s==null?void 0:s.ref_id)||k||"new"}),He()}catch(k){let Y=pe;if((k==null?void 0:k.status)===400){const ie=await k.json();Y=ie.errorCode||(ie==null?void 0:ie.status)||pe}else k instanceof Error&&(Y=k.message);V(Y)}finally{P(!1),l(!1),u(!1)}});g.useEffect(()=>{const I=d.watch(k=>{var ye,we,Ie,Ne,je;const Y=On(xe,re),ie=((ye=k.type)==null?void 0:ye.trim())!==((we=s==null?void 0:s.type)==null?void 0:we.trim())||((Ie=k.parent)==null?void 0:Ie.trim())!==((Ne=s==null?void 0:s.parent)==null?void 0:Ne.trim())||Y,be=!!((je=k.type)!=null&&je.trim());Ae(s?y||!ie||!be||L:y||L||!be)});return()=>I.unsubscribe()},[d,xe,re,s,y,L]);const Xe=()=>C==null?void 0:C.find(I=>I.value===U),_e=()=>{const I=F==null?void 0:F.find(k=>k.value===U);if(I)return I;if(U)return{label:U,value:U}};return o.jsxs(w,{children:[o.jsx(w,{direction:"row",justify:"flex-end",children:o.jsx(In,{"data-testid":"close-sidebar-sub-view",onClick:Me,children:o.jsx(lt,{})})}),o.jsx(w,{children:o.jsx(Kt,{...d,children:o.jsxs("form",{id:"add-type-form",onSubmit:Se,children:[o.jsx(w,{children:s?o.jsxs(o.Fragment,{children:[o.jsxs(w,{mb:12,children:[o.jsx(w,{mb:12,children:o.jsx(K,{children:"Name"})}),o.jsx(w,{mb:12,children:o.jsx(We,{dataTestId:"cy-item-name",defaultValue:s==null?void 0:s.type,id:"cy-item-name",maxLength:250,name:"type",placeholder:"Enter type name",rules:{...Le},value:U})})]}),o.jsxs(w,{mb:12,children:[o.jsx(w,{mb:12,children:o.jsx(K,{children:"Parent"})}),o.jsx(Fe,{isLoading:M||t,onSelect:I=>{m("parent",(I==null?void 0:I.value)||""),z(!1)},options:F||[],selectedValue:_e()}),$&&o.jsx(ot,{children:$})]})]}):o.jsxs(o.Fragment,{children:[o.jsxs(w,{mb:12,children:[o.jsx(w,{mb:12,children:o.jsx(K,{children:"Select Parent"})}),o.jsx(Fe,{isLoading:M,onSelect:I=>{m("parent",(I==null?void 0:I.value)||""),z(!1)},options:C,selectedValue:Xe()}),L&&o.jsx(ot,{children:"A parent type must be selected"})]}),o.jsxs(w,{children:[o.jsx(w,{mb:12,children:o.jsx(K,{children:"Type name"})}),o.jsx(w,{mb:12,children:o.jsx(We,{id:"cy-item-name",maxLength:250,name:"type",placeholder:"Enter type name",rules:{...Le},value:U})})]})]})}),o.jsx(Pn,{onDelete:Ue,parent:s?s.type:U}),o.jsxs(w,{direction:"row",justify:"space-between",mt:20,children:[s&&o.jsxs(w,{direction:"column",children:[o.jsxs(_n,{color:"secondary",disabled:v,onClick:Ze,size:"large",style:{marginRight:20},variant:"contained",children:["Delete",v&&o.jsxs(St,{children:[o.jsx(le,{color:D.lightGray,size:12})," "]})]}),S&&o.jsx(ot,{children:S})]}),o.jsxs(Sn,{color:"secondary",disabled:me,onClick:Se,size:"large",variant:"contained",children:["Confirm",y&&o.jsxs(St,{children:[o.jsx(le,{color:D.lightGray,size:12})," "]})]})]})]})})})]})},Sn=B(Oe)` width: 100% !important; margin: 0 auto !important; `,St=B.span` @@ -57,7 +57,7 @@ import{r as g,b as Ft,g as Wt,s as Te,_ as Z,u as Yt,ad as lo,a as Gt,j as o,c a line-height: 0.2px; margin-top: 12px; padding-top: 20px; -`;var Nn=Object.defineProperty,zn=(t,n,s)=>n in t?Nn(t,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[n]=s,T=(t,n,s)=>(zn(t,typeof n!="symbol"?n+"":n,s),s);const Be=new zo,_t=new ko,kn=Math.cos(70*(Math.PI/180)),It=(t,n)=>(t%n+n)%n;let Rn=class extends Ro{constructor(n,s){super(),T(this,"object"),T(this,"domElement"),T(this,"enabled",!0),T(this,"target",new N),T(this,"minDistance",0),T(this,"maxDistance",1/0),T(this,"minZoom",0),T(this,"maxZoom",1/0),T(this,"minPolarAngle",0),T(this,"maxPolarAngle",Math.PI),T(this,"minAzimuthAngle",-1/0),T(this,"maxAzimuthAngle",1/0),T(this,"enableDamping",!1),T(this,"dampingFactor",.05),T(this,"enableZoom",!0),T(this,"zoomSpeed",1),T(this,"enableRotate",!0),T(this,"rotateSpeed",1),T(this,"enablePan",!0),T(this,"panSpeed",1),T(this,"screenSpacePanning",!0),T(this,"keyPanSpeed",7),T(this,"zoomToCursor",!1),T(this,"autoRotate",!1),T(this,"autoRotateSpeed",2),T(this,"reverseOrbit",!1),T(this,"reverseHorizontalOrbit",!1),T(this,"reverseVerticalOrbit",!1),T(this,"keys",{LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"}),T(this,"mouseButtons",{LEFT:de.ROTATE,MIDDLE:de.DOLLY,RIGHT:de.PAN}),T(this,"touches",{ONE:ue.ROTATE,TWO:ue.DOLLY_PAN}),T(this,"target0"),T(this,"position0"),T(this,"zoom0"),T(this,"_domElementKeyEvents",null),T(this,"getPolarAngle"),T(this,"getAzimuthalAngle"),T(this,"setPolarAngle"),T(this,"setAzimuthalAngle"),T(this,"getDistance"),T(this,"listenToKeyEvents"),T(this,"stopListenToKeyEvents"),T(this,"saveState"),T(this,"reset"),T(this,"update"),T(this,"connect"),T(this,"dispose"),this.object=n,this.domElement=s,this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this.getPolarAngle=()=>d.phi,this.getAzimuthalAngle=()=>d.theta,this.setPolarAngle=r=>{let p=It(r,2*Math.PI),O=d.phi;O<0&&(O+=2*Math.PI),p<0&&(p+=2*Math.PI);let R=Math.abs(p-O);2*Math.PI-R{let p=It(r,2*Math.PI),O=d.theta;O<0&&(O+=2*Math.PI),p<0&&(p+=2*Math.PI);let R=Math.abs(p-O);2*Math.PI-Re.object.position.distanceTo(e.target),this.listenToKeyEvents=r=>{r.addEventListener("keydown",Qe),this._domElementKeyEvents=r},this.stopListenToKeyEvents=()=>{this._domElementKeyEvents.removeEventListener("keydown",Qe),this._domElementKeyEvents=null},this.saveState=()=>{e.target0.copy(e.target),e.position0.copy(e.object.position),e.zoom0=e.object.zoom},this.reset=()=>{e.target.copy(e.target0),e.object.position.copy(e.position0),e.object.zoom=e.zoom0,e.object.updateProjectionMatrix(),e.dispatchEvent(a),e.update(),c=i.NONE},this.update=(()=>{const r=new N,p=new N(0,1,0),O=new Et().setFromUnitVectors(n.up,p),R=O.clone().invert(),G=new N,oe=new Et,ae=2*Math.PI;return function(){const mt=e.object.position;O.setFromUnitVectors(n.up,p),R.copy(O).invert(),r.copy(mt).sub(e.target),r.applyQuaternion(O),d.setFromVector3(r),e.autoRotate&&c===i.NONE&&W(V()),e.enableDamping?(d.theta+=h.theta*e.dampingFactor,d.phi+=h.phi*e.dampingFactor):(d.theta+=h.theta,d.phi+=h.phi);let ne=e.minAzimuthAngle,se=e.maxAzimuthAngle;isFinite(ne)&&isFinite(se)&&(ne<-Math.PI?ne+=ae:ne>Math.PI&&(ne-=ae),se<-Math.PI?se+=ae:se>Math.PI&&(se-=ae),ne<=se?d.theta=Math.max(ne,Math.min(se,d.theta)):d.theta=d.theta>(ne+se)/2?Math.max(ne,d.theta):Math.min(se,d.theta)),d.phi=Math.max(e.minPolarAngle,Math.min(e.maxPolarAngle,d.phi)),d.makeSafe(),e.enableDamping===!0?e.target.addScaledVector(x,e.dampingFactor):e.target.add(x),e.zoomToCursor&&F||e.object.isOrthographicCamera?d.radius=U(d.radius):d.radius=U(d.radius*m),r.setFromSpherical(d),r.applyQuaternion(R),mt.copy(e.target).add(r),e.object.matrixAutoUpdate||e.object.updateMatrix(),e.object.lookAt(e.target),e.enableDamping===!0?(h.theta*=1-e.dampingFactor,h.phi*=1-e.dampingFactor,x.multiplyScalar(1-e.dampingFactor)):(h.set(0,0,0),x.set(0,0,0));let ze=!1;if(e.zoomToCursor&&F){let ve=null;if(e.object instanceof Re&&e.object.isPerspectiveCamera){const Ce=r.length();ve=U(Ce*m);const ke=Ce-ve;e.object.position.addScaledVector(L,ke),e.object.updateMatrixWorld()}else if(e.object.isOrthographicCamera){const Ce=new N(k.x,k.y,0);Ce.unproject(e.object),e.object.zoom=Math.max(e.minZoom,Math.min(e.maxZoom,e.object.zoom/m)),e.object.updateProjectionMatrix(),ze=!0;const ke=new N(k.x,k.y,0);ke.unproject(e.object),e.object.position.sub(ke).add(Ce),e.object.updateMatrixWorld(),ve=r.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),e.zoomToCursor=!1;ve!==null&&(e.screenSpacePanning?e.target.set(0,0,-1).transformDirection(e.object.matrix).multiplyScalar(ve).add(e.object.position):(Be.origin.copy(e.object.position),Be.direction.set(0,0,-1).transformDirection(e.object.matrix),Math.abs(e.object.up.dot(Be.direction))E||8*(1-oe.dot(e.object.quaternion))>E?(e.dispatchEvent(a),G.copy(e.object.position),oe.copy(e.object.quaternion),ze=!1,!0):!1}})(),this.connect=r=>{r===document&&console.error('THREE.OrbitControls: "document" should not be used as the target "domElement". Please use "renderer.domElement" instead.'),e.domElement=r,e.domElement.style.touchAction="none",e.domElement.addEventListener("contextmenu",pt),e.domElement.addEventListener("pointerdown",je),e.domElement.addEventListener("pointercancel",dt),e.domElement.addEventListener("wheel",ut)},this.dispose=()=>{var r,p,O,R,G,oe;(r=e.domElement)==null||r.removeEventListener("contextmenu",pt),(p=e.domElement)==null||p.removeEventListener("pointerdown",je),(O=e.domElement)==null||O.removeEventListener("pointercancel",dt),(R=e.domElement)==null||R.removeEventListener("wheel",ut),(G=e.domElement)==null||G.ownerDocument.removeEventListener("pointermove",Ke),(oe=e.domElement)==null||oe.ownerDocument.removeEventListener("pointerup",qe),e._domElementKeyEvents!==null&&e._domElementKeyEvents.removeEventListener("keydown",Qe)};const e=this,a={type:"change"},l={type:"start"},u={type:"end"},i={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let c=i.NONE;const E=1e-6,d=new Pt,h=new Pt;let m=1;const x=new N,b=new q,y=new q,P=new q,v=new q,j=new q,M=new q,A=new q,C=new q,_=new q,L=new N,k=new q;let F=!1;const f=[],$={};function V(){return 2*Math.PI/60/60*e.autoRotateSpeed}function S(){return Math.pow(.95,e.zoomSpeed)}function W(r){e.reverseOrbit||e.reverseHorizontalOrbit?h.theta+=r:h.theta-=r}function X(r){e.reverseOrbit||e.reverseVerticalOrbit?h.phi+=r:h.phi-=r}const te=(()=>{const r=new N;return function(O,R){r.setFromMatrixColumn(R,0),r.multiplyScalar(-O),x.add(r)}})(),re=(()=>{const r=new N;return function(O,R){e.screenSpacePanning===!0?r.setFromMatrixColumn(R,1):(r.setFromMatrixColumn(R,0),r.crossVectors(e.object.up,r)),r.multiplyScalar(O),x.add(r)}})(),J=(()=>{const r=new N;return function(O,R){const G=e.domElement;if(G&&e.object instanceof Re&&e.object.isPerspectiveCamera){const oe=e.object.position;r.copy(oe).sub(e.target);let ae=r.length();ae*=Math.tan(e.object.fov/2*Math.PI/180),te(2*O*ae/G.clientHeight,e.object.matrix),re(2*R*ae/G.clientHeight,e.object.matrix)}else G&&e.object instanceof De&&e.object.isOrthographicCamera?(te(O*(e.object.right-e.object.left)/e.object.zoom/G.clientWidth,e.object.matrix),re(R*(e.object.top-e.object.bottom)/e.object.zoom/G.clientHeight,e.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),e.enablePan=!1)}})();function me(r){e.object instanceof Re&&e.object.isPerspectiveCamera||e.object instanceof De&&e.object.isOrthographicCamera?m/=r:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),e.enableZoom=!1)}function Ae(r){e.object instanceof Re&&e.object.isPerspectiveCamera||e.object instanceof De&&e.object.isOrthographicCamera?m*=r:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),e.enableZoom=!1)}function Me(r){if(!e.zoomToCursor||!e.domElement)return;F=!0;const p=e.domElement.getBoundingClientRect(),O=r.clientX-p.left,R=r.clientY-p.top,G=p.width,oe=p.height;k.x=O/G*2-1,k.y=-(R/oe)*2+1,L.set(k.x,k.y,1).unproject(e.object).sub(e.object.position).normalize()}function U(r){return Math.max(e.minDistance,Math.min(e.maxDistance,r))}function $e(r){b.set(r.clientX,r.clientY)}function ge(r){Me(r),A.set(r.clientX,r.clientY)}function xe(r){v.set(r.clientX,r.clientY)}function He(r){y.set(r.clientX,r.clientY),P.subVectors(y,b).multiplyScalar(e.rotateSpeed);const p=e.domElement;p&&(W(2*Math.PI*P.x/p.clientHeight),X(2*Math.PI*P.y/p.clientHeight)),b.copy(y),e.update()}function Ue(r){C.set(r.clientX,r.clientY),_.subVectors(C,A),_.y>0?me(S()):_.y<0&&Ae(S()),A.copy(C),e.update()}function Ze(r){j.set(r.clientX,r.clientY),M.subVectors(j,v).multiplyScalar(e.panSpeed),J(M.x,M.y),v.copy(j),e.update()}function Se(r){Me(r),r.deltaY<0?Ae(S()):r.deltaY>0&&me(S()),e.update()}function Xe(r){let p=!1;switch(r.code){case e.keys.UP:J(0,e.keyPanSpeed),p=!0;break;case e.keys.BOTTOM:J(0,-e.keyPanSpeed),p=!0;break;case e.keys.LEFT:J(e.keyPanSpeed,0),p=!0;break;case e.keys.RIGHT:J(-e.keyPanSpeed,0),p=!0;break}p&&(r.preventDefault(),e.update())}function _e(){if(f.length==1)b.set(f[0].pageX,f[0].pageY);else{const r=.5*(f[0].pageX+f[1].pageX),p=.5*(f[0].pageY+f[1].pageY);b.set(r,p)}}function I(){if(f.length==1)v.set(f[0].pageX,f[0].pageY);else{const r=.5*(f[0].pageX+f[1].pageX),p=.5*(f[0].pageY+f[1].pageY);v.set(r,p)}}function z(){const r=f[0].pageX-f[1].pageX,p=f[0].pageY-f[1].pageY,O=Math.sqrt(r*r+p*p);A.set(0,O)}function Y(){e.enableZoom&&z(),e.enablePan&&I()}function ie(){e.enableZoom&&z(),e.enableRotate&&_e()}function be(r){if(f.length==1)y.set(r.pageX,r.pageY);else{const O=Je(r),R=.5*(r.pageX+O.x),G=.5*(r.pageY+O.y);y.set(R,G)}P.subVectors(y,b).multiplyScalar(e.rotateSpeed);const p=e.domElement;p&&(W(2*Math.PI*P.x/p.clientHeight),X(2*Math.PI*P.y/p.clientHeight)),b.copy(y)}function ye(r){if(f.length==1)j.set(r.pageX,r.pageY);else{const p=Je(r),O=.5*(r.pageX+p.x),R=.5*(r.pageY+p.y);j.set(O,R)}M.subVectors(j,v).multiplyScalar(e.panSpeed),J(M.x,M.y),v.copy(j)}function we(r){const p=Je(r),O=r.pageX-p.x,R=r.pageY-p.y,G=Math.sqrt(O*O+R*R);C.set(0,G),_.set(0,Math.pow(C.y/A.y,e.zoomSpeed)),me(_.y),A.copy(C)}function Ie(r){e.enableZoom&&we(r),e.enablePan&&ye(r)}function Ne(r){e.enableZoom&&we(r),e.enableRotate&&be(r)}function je(r){var p,O;e.enabled!==!1&&(f.length===0&&((p=e.domElement)==null||p.ownerDocument.addEventListener("pointermove",Ke),(O=e.domElement)==null||O.ownerDocument.addEventListener("pointerup",qe)),co(r),r.pointerType==="touch"?io(r):so(r))}function Ke(r){e.enabled!==!1&&(r.pointerType==="touch"?ao(r):ro(r))}function qe(r){var p,O,R;ft(r),f.length===0&&((p=e.domElement)==null||p.releasePointerCapture(r.pointerId),(O=e.domElement)==null||O.ownerDocument.removeEventListener("pointermove",Ke),(R=e.domElement)==null||R.ownerDocument.removeEventListener("pointerup",qe)),e.dispatchEvent(u),c=i.NONE}function dt(r){ft(r)}function so(r){let p;switch(r.button){case 0:p=e.mouseButtons.LEFT;break;case 1:p=e.mouseButtons.MIDDLE;break;case 2:p=e.mouseButtons.RIGHT;break;default:p=-1}switch(p){case de.DOLLY:if(e.enableZoom===!1)return;ge(r),c=i.DOLLY;break;case de.ROTATE:if(r.ctrlKey||r.metaKey||r.shiftKey){if(e.enablePan===!1)return;xe(r),c=i.PAN}else{if(e.enableRotate===!1)return;$e(r),c=i.ROTATE}break;case de.PAN:if(r.ctrlKey||r.metaKey||r.shiftKey){if(e.enableRotate===!1)return;$e(r),c=i.ROTATE}else{if(e.enablePan===!1)return;xe(r),c=i.PAN}break;default:c=i.NONE}c!==i.NONE&&e.dispatchEvent(l)}function ro(r){if(e.enabled!==!1)switch(c){case i.ROTATE:if(e.enableRotate===!1)return;He(r);break;case i.DOLLY:if(e.enableZoom===!1)return;Ue(r);break;case i.PAN:if(e.enablePan===!1)return;Ze(r);break}}function ut(r){e.enabled===!1||e.enableZoom===!1||c!==i.NONE&&c!==i.ROTATE||(r.preventDefault(),e.dispatchEvent(l),Se(r),e.dispatchEvent(u))}function Qe(r){e.enabled===!1||e.enablePan===!1||Xe(r)}function io(r){switch(ht(r),f.length){case 1:switch(e.touches.ONE){case ue.ROTATE:if(e.enableRotate===!1)return;_e(),c=i.TOUCH_ROTATE;break;case ue.PAN:if(e.enablePan===!1)return;I(),c=i.TOUCH_PAN;break;default:c=i.NONE}break;case 2:switch(e.touches.TWO){case ue.DOLLY_PAN:if(e.enableZoom===!1&&e.enablePan===!1)return;Y(),c=i.TOUCH_DOLLY_PAN;break;case ue.DOLLY_ROTATE:if(e.enableZoom===!1&&e.enableRotate===!1)return;ie(),c=i.TOUCH_DOLLY_ROTATE;break;default:c=i.NONE}break;default:c=i.NONE}c!==i.NONE&&e.dispatchEvent(l)}function ao(r){switch(ht(r),c){case i.TOUCH_ROTATE:if(e.enableRotate===!1)return;be(r),e.update();break;case i.TOUCH_PAN:if(e.enablePan===!1)return;ye(r),e.update();break;case i.TOUCH_DOLLY_PAN:if(e.enableZoom===!1&&e.enablePan===!1)return;Ie(r),e.update();break;case i.TOUCH_DOLLY_ROTATE:if(e.enableZoom===!1&&e.enableRotate===!1)return;Ne(r),e.update();break;default:c=i.NONE}}function pt(r){e.enabled!==!1&&r.preventDefault()}function co(r){f.push(r)}function ft(r){delete $[r.pointerId];for(let p=0;pnew Do(void 0,void 0,void 0)),E=g.useCallback((h,m,x,b=20)=>(h instanceof N?c.v0.copy(h):c.v0.set(...h),m instanceof N?c.v2.copy(m):c.v2.set(...m),x instanceof N?c.v1.copy(x):c.v1.copy(c.v0.clone().add(c.v2.clone().sub(c.v0)).add(Dn.set(0,c.v0.y-c.v2.y,0))),c.getPoints(b)),[]);g.useLayoutEffect(()=>{i.current.setPoints=(h,m,x)=>{const b=E(h,m,x);i.current.geometry&&i.current.geometry.setPositions(b.map(y=>y.toArray()).flat())}},[]);const d=g.useMemo(()=>E(n,s,e,a),[n,s,e,a]);return g.createElement(Mo,Z({ref:$o([i,u]),points:d},l))}),Bn=g.forwardRef(({makeDefault:t,camera:n,regress:s,domElement:e,enableDamping:a=!0,onChange:l,onStart:u,onEnd:i,...c},E)=>{const d=ee(C=>C.invalidate),h=ee(C=>C.camera),m=ee(C=>C.gl),x=ee(C=>C.events),b=ee(C=>C.setEvents),y=ee(C=>C.set),P=ee(C=>C.get),v=ee(C=>C.performance),j=n||h,M=e||x.connected||m.domElement,A=g.useMemo(()=>new Rn(j),[j]);return Ge(()=>{A.enabled&&A.update()},-1),g.useEffect(()=>(A.connect(M),()=>void A.dispose()),[M,s,A,d]),g.useEffect(()=>{const C=k=>{d(),s&&v.regress(),l&&l(k)},_=k=>{u&&u(k)},L=k=>{i&&i(k)};return A.addEventListener("change",C),A.addEventListener("start",_),A.addEventListener("end",L),()=>{A.removeEventListener("start",_),A.removeEventListener("end",L),A.removeEventListener("change",C)}},[l,u,i,A,d,b]),g.useEffect(()=>{if(t){const C=P().controls;return y({controls:A}),()=>y({controls:C})}},[t,A]),g.createElement("primitive",Z({ref:E,object:A,enableDamping:a},c))});function Ln(t){const n=t+"Geometry";return g.forwardRef(({args:s,children:e,...a},l)=>g.createElement("mesh",Z({ref:l},a),g.createElement(n,{attach:"geometry",args:s}),e))}const Vn=Ln("circle"),Q=10,Fn=2,Wn=2,zt=10,Yn=10,kt=(t,n,s)=>{const l=new N().subVectors(n,t).normalize().multiplyScalar(s);return new N().addVectors(t,l)},Gn=(t,n,s,e)=>{const a=new N().lerpVectors(t,n,.5),l=new N().subVectors(n,t).normalize(),u=new N(-l.y,l.x,l.z).normalize(),i=(s-e/2)*Yn;return new N().addVectors(a,u.multiplyScalar(i))},oo=({links:t,nodes:n,onEdgeClick:s})=>{const e=g.useRef(null),{camera:a}=ee(),l=new N,u=new N,i=new N,c=new N,E=new N,d=new N,h=new N,m=new N;Ge(()=>{e.current&&n&&e.current.children.forEach((b,y)=>{var F,f,$,V;const P=t[y];if(!P)return;const v=n.find(S=>S.ref_id===P.target),j=n.find(S=>S.ref_id===P.source);l.set((j==null?void 0:j.x)||0,(j==null?void 0:j.y)||0,(j==null?void 0:j.z)||0),u.set((v==null?void 0:v.x)||0,(v==null?void 0:v.y)||0,(v==null?void 0:v.z)||0);const M=b.children[0],A=b.children[1],C=b.children[2],_=b.children[3],L=t.filter(S=>S.source===P.source&&S.target===P.target||S.source===P.target&&S.target===P.source).length,k=t.filter((S,W)=>W1?i.copy(Gn(m,h,k,L)):i.lerpVectors(m,h,.5);const S=30;c.subVectors(h,m).normalize().multiplyScalar(S/2),E.subVectors(i,c),d.addVectors(i,c);const W=new N().addVectors(m,E).multiplyScalar(.5),X=new N().addVectors(d,h).multiplyScalar(.5);($=M.setPoints)==null||$.call(M,m,E,W),(V=A.setPoints)==null||V.call(A,d,h,X),C.position.set(h.x,h.y,h.z),C.lookAt(m),C.rotateX(-Math.PI/2),_.position.set(i.x,i.y,i.z),_.lookAt(a.position);let te=Math.atan2(h.y-m.y,h.x-m.x);(te>Math.PI/2||te<-Math.PI/2)&&(te+=Math.PI),_.rotation.set(0,0,te);const re=m.distanceTo(h),J=re{if(b==="CHILD_OF"||y==="string"||P==="string")return;const j=n==null?void 0:n.find(_=>_.ref_id===y),M=n==null?void 0:n.find(_=>_.ref_id===P),A=(j==null?void 0:j.type)||"",C=(M==null?void 0:M.type)||"";s(v,b,A,C)};return o.jsx("group",{ref:e,children:t.map(b=>o.jsxs("group",{children:[o.jsx(Nt,{color:"white",end:[0,0,0],lineWidth:1,start:[0,0,0]}),o.jsx(Nt,{color:"white",end:[0,0,0],lineWidth:1,start:[0,0,0]}),o.jsxs("mesh",{position:new N(0,0,0),children:[o.jsx("coneGeometry",{args:[Fn,Wn,32]}),o.jsx("meshBasicMaterial",{color:"white"})]}),o.jsx(Jt,{anchorX:"center",anchorY:"middle",color:"white",...eo,lineHeight:1,maxWidth:20,onClick:()=>x(b.edge_type,b.source,b.target,b.ref_id),rotation:[0,0,0],textAlign:"center",children:rt(b.edge_type,zt)})]},b.ref_id))})};oo.displayName="Lines";const Hn=["#ff13c9","#5af0ff","#3233ff","#c2f0c2","#ff6666","#99ccff","#ffb3b3"],Un=B.div` +`;var Nn=Object.defineProperty,kn=(t,n,s)=>n in t?Nn(t,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[n]=s,T=(t,n,s)=>(kn(t,typeof n!="symbol"?n+"":n,s),s);const Be=new ko,_t=new zo,zn=Math.cos(70*(Math.PI/180)),It=(t,n)=>(t%n+n)%n;let Rn=class extends Ro{constructor(n,s){super(),T(this,"object"),T(this,"domElement"),T(this,"enabled",!0),T(this,"target",new N),T(this,"minDistance",0),T(this,"maxDistance",1/0),T(this,"minZoom",0),T(this,"maxZoom",1/0),T(this,"minPolarAngle",0),T(this,"maxPolarAngle",Math.PI),T(this,"minAzimuthAngle",-1/0),T(this,"maxAzimuthAngle",1/0),T(this,"enableDamping",!1),T(this,"dampingFactor",.05),T(this,"enableZoom",!0),T(this,"zoomSpeed",1),T(this,"enableRotate",!0),T(this,"rotateSpeed",1),T(this,"enablePan",!0),T(this,"panSpeed",1),T(this,"screenSpacePanning",!0),T(this,"keyPanSpeed",7),T(this,"zoomToCursor",!1),T(this,"autoRotate",!1),T(this,"autoRotateSpeed",2),T(this,"reverseOrbit",!1),T(this,"reverseHorizontalOrbit",!1),T(this,"reverseVerticalOrbit",!1),T(this,"keys",{LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"}),T(this,"mouseButtons",{LEFT:de.ROTATE,MIDDLE:de.DOLLY,RIGHT:de.PAN}),T(this,"touches",{ONE:ue.ROTATE,TWO:ue.DOLLY_PAN}),T(this,"target0"),T(this,"position0"),T(this,"zoom0"),T(this,"_domElementKeyEvents",null),T(this,"getPolarAngle"),T(this,"getAzimuthalAngle"),T(this,"setPolarAngle"),T(this,"setAzimuthalAngle"),T(this,"getDistance"),T(this,"listenToKeyEvents"),T(this,"stopListenToKeyEvents"),T(this,"saveState"),T(this,"reset"),T(this,"update"),T(this,"connect"),T(this,"dispose"),this.object=n,this.domElement=s,this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this.getPolarAngle=()=>d.phi,this.getAzimuthalAngle=()=>d.theta,this.setPolarAngle=r=>{let p=It(r,2*Math.PI),O=d.phi;O<0&&(O+=2*Math.PI),p<0&&(p+=2*Math.PI);let R=Math.abs(p-O);2*Math.PI-R{let p=It(r,2*Math.PI),O=d.theta;O<0&&(O+=2*Math.PI),p<0&&(p+=2*Math.PI);let R=Math.abs(p-O);2*Math.PI-Re.object.position.distanceTo(e.target),this.listenToKeyEvents=r=>{r.addEventListener("keydown",Qe),this._domElementKeyEvents=r},this.stopListenToKeyEvents=()=>{this._domElementKeyEvents.removeEventListener("keydown",Qe),this._domElementKeyEvents=null},this.saveState=()=>{e.target0.copy(e.target),e.position0.copy(e.object.position),e.zoom0=e.object.zoom},this.reset=()=>{e.target.copy(e.target0),e.object.position.copy(e.position0),e.object.zoom=e.zoom0,e.object.updateProjectionMatrix(),e.dispatchEvent(a),e.update(),c=i.NONE},this.update=(()=>{const r=new N,p=new N(0,1,0),O=new Et().setFromUnitVectors(n.up,p),R=O.clone().invert(),G=new N,oe=new Et,ae=2*Math.PI;return function(){const mt=e.object.position;O.setFromUnitVectors(n.up,p),R.copy(O).invert(),r.copy(mt).sub(e.target),r.applyQuaternion(O),d.setFromVector3(r),e.autoRotate&&c===i.NONE&&W(V()),e.enableDamping?(d.theta+=h.theta*e.dampingFactor,d.phi+=h.phi*e.dampingFactor):(d.theta+=h.theta,d.phi+=h.phi);let ne=e.minAzimuthAngle,se=e.maxAzimuthAngle;isFinite(ne)&&isFinite(se)&&(ne<-Math.PI?ne+=ae:ne>Math.PI&&(ne-=ae),se<-Math.PI?se+=ae:se>Math.PI&&(se-=ae),ne<=se?d.theta=Math.max(ne,Math.min(se,d.theta)):d.theta=d.theta>(ne+se)/2?Math.max(ne,d.theta):Math.min(se,d.theta)),d.phi=Math.max(e.minPolarAngle,Math.min(e.maxPolarAngle,d.phi)),d.makeSafe(),e.enableDamping===!0?e.target.addScaledVector(x,e.dampingFactor):e.target.add(x),e.zoomToCursor&&F||e.object.isOrthographicCamera?d.radius=U(d.radius):d.radius=U(d.radius*m),r.setFromSpherical(d),r.applyQuaternion(R),mt.copy(e.target).add(r),e.object.matrixAutoUpdate||e.object.updateMatrix(),e.object.lookAt(e.target),e.enableDamping===!0?(h.theta*=1-e.dampingFactor,h.phi*=1-e.dampingFactor,x.multiplyScalar(1-e.dampingFactor)):(h.set(0,0,0),x.set(0,0,0));let ke=!1;if(e.zoomToCursor&&F){let ve=null;if(e.object instanceof Re&&e.object.isPerspectiveCamera){const Ce=r.length();ve=U(Ce*m);const ze=Ce-ve;e.object.position.addScaledVector(L,ze),e.object.updateMatrixWorld()}else if(e.object.isOrthographicCamera){const Ce=new N(z.x,z.y,0);Ce.unproject(e.object),e.object.zoom=Math.max(e.minZoom,Math.min(e.maxZoom,e.object.zoom/m)),e.object.updateProjectionMatrix(),ke=!0;const ze=new N(z.x,z.y,0);ze.unproject(e.object),e.object.position.sub(ze).add(Ce),e.object.updateMatrixWorld(),ve=r.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),e.zoomToCursor=!1;ve!==null&&(e.screenSpacePanning?e.target.set(0,0,-1).transformDirection(e.object.matrix).multiplyScalar(ve).add(e.object.position):(Be.origin.copy(e.object.position),Be.direction.set(0,0,-1).transformDirection(e.object.matrix),Math.abs(e.object.up.dot(Be.direction))E||8*(1-oe.dot(e.object.quaternion))>E?(e.dispatchEvent(a),G.copy(e.object.position),oe.copy(e.object.quaternion),ke=!1,!0):!1}})(),this.connect=r=>{r===document&&console.error('THREE.OrbitControls: "document" should not be used as the target "domElement". Please use "renderer.domElement" instead.'),e.domElement=r,e.domElement.style.touchAction="none",e.domElement.addEventListener("contextmenu",pt),e.domElement.addEventListener("pointerdown",je),e.domElement.addEventListener("pointercancel",dt),e.domElement.addEventListener("wheel",ut)},this.dispose=()=>{var r,p,O,R,G,oe;(r=e.domElement)==null||r.removeEventListener("contextmenu",pt),(p=e.domElement)==null||p.removeEventListener("pointerdown",je),(O=e.domElement)==null||O.removeEventListener("pointercancel",dt),(R=e.domElement)==null||R.removeEventListener("wheel",ut),(G=e.domElement)==null||G.ownerDocument.removeEventListener("pointermove",Ke),(oe=e.domElement)==null||oe.ownerDocument.removeEventListener("pointerup",qe),e._domElementKeyEvents!==null&&e._domElementKeyEvents.removeEventListener("keydown",Qe)};const e=this,a={type:"change"},l={type:"start"},u={type:"end"},i={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let c=i.NONE;const E=1e-6,d=new Pt,h=new Pt;let m=1;const x=new N,b=new q,y=new q,P=new q,v=new q,j=new q,M=new q,A=new q,C=new q,_=new q,L=new N,z=new q;let F=!1;const f=[],$={};function V(){return 2*Math.PI/60/60*e.autoRotateSpeed}function S(){return Math.pow(.95,e.zoomSpeed)}function W(r){e.reverseOrbit||e.reverseHorizontalOrbit?h.theta+=r:h.theta-=r}function X(r){e.reverseOrbit||e.reverseVerticalOrbit?h.phi+=r:h.phi-=r}const te=(()=>{const r=new N;return function(O,R){r.setFromMatrixColumn(R,0),r.multiplyScalar(-O),x.add(r)}})(),re=(()=>{const r=new N;return function(O,R){e.screenSpacePanning===!0?r.setFromMatrixColumn(R,1):(r.setFromMatrixColumn(R,0),r.crossVectors(e.object.up,r)),r.multiplyScalar(O),x.add(r)}})(),J=(()=>{const r=new N;return function(O,R){const G=e.domElement;if(G&&e.object instanceof Re&&e.object.isPerspectiveCamera){const oe=e.object.position;r.copy(oe).sub(e.target);let ae=r.length();ae*=Math.tan(e.object.fov/2*Math.PI/180),te(2*O*ae/G.clientHeight,e.object.matrix),re(2*R*ae/G.clientHeight,e.object.matrix)}else G&&e.object instanceof De&&e.object.isOrthographicCamera?(te(O*(e.object.right-e.object.left)/e.object.zoom/G.clientWidth,e.object.matrix),re(R*(e.object.top-e.object.bottom)/e.object.zoom/G.clientHeight,e.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),e.enablePan=!1)}})();function me(r){e.object instanceof Re&&e.object.isPerspectiveCamera||e.object instanceof De&&e.object.isOrthographicCamera?m/=r:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),e.enableZoom=!1)}function Ae(r){e.object instanceof Re&&e.object.isPerspectiveCamera||e.object instanceof De&&e.object.isOrthographicCamera?m*=r:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),e.enableZoom=!1)}function Me(r){if(!e.zoomToCursor||!e.domElement)return;F=!0;const p=e.domElement.getBoundingClientRect(),O=r.clientX-p.left,R=r.clientY-p.top,G=p.width,oe=p.height;z.x=O/G*2-1,z.y=-(R/oe)*2+1,L.set(z.x,z.y,1).unproject(e.object).sub(e.object.position).normalize()}function U(r){return Math.max(e.minDistance,Math.min(e.maxDistance,r))}function $e(r){b.set(r.clientX,r.clientY)}function ge(r){Me(r),A.set(r.clientX,r.clientY)}function xe(r){v.set(r.clientX,r.clientY)}function He(r){y.set(r.clientX,r.clientY),P.subVectors(y,b).multiplyScalar(e.rotateSpeed);const p=e.domElement;p&&(W(2*Math.PI*P.x/p.clientHeight),X(2*Math.PI*P.y/p.clientHeight)),b.copy(y),e.update()}function Ue(r){C.set(r.clientX,r.clientY),_.subVectors(C,A),_.y>0?me(S()):_.y<0&&Ae(S()),A.copy(C),e.update()}function Ze(r){j.set(r.clientX,r.clientY),M.subVectors(j,v).multiplyScalar(e.panSpeed),J(M.x,M.y),v.copy(j),e.update()}function Se(r){Me(r),r.deltaY<0?Ae(S()):r.deltaY>0&&me(S()),e.update()}function Xe(r){let p=!1;switch(r.code){case e.keys.UP:J(0,e.keyPanSpeed),p=!0;break;case e.keys.BOTTOM:J(0,-e.keyPanSpeed),p=!0;break;case e.keys.LEFT:J(e.keyPanSpeed,0),p=!0;break;case e.keys.RIGHT:J(-e.keyPanSpeed,0),p=!0;break}p&&(r.preventDefault(),e.update())}function _e(){if(f.length==1)b.set(f[0].pageX,f[0].pageY);else{const r=.5*(f[0].pageX+f[1].pageX),p=.5*(f[0].pageY+f[1].pageY);b.set(r,p)}}function I(){if(f.length==1)v.set(f[0].pageX,f[0].pageY);else{const r=.5*(f[0].pageX+f[1].pageX),p=.5*(f[0].pageY+f[1].pageY);v.set(r,p)}}function k(){const r=f[0].pageX-f[1].pageX,p=f[0].pageY-f[1].pageY,O=Math.sqrt(r*r+p*p);A.set(0,O)}function Y(){e.enableZoom&&k(),e.enablePan&&I()}function ie(){e.enableZoom&&k(),e.enableRotate&&_e()}function be(r){if(f.length==1)y.set(r.pageX,r.pageY);else{const O=Je(r),R=.5*(r.pageX+O.x),G=.5*(r.pageY+O.y);y.set(R,G)}P.subVectors(y,b).multiplyScalar(e.rotateSpeed);const p=e.domElement;p&&(W(2*Math.PI*P.x/p.clientHeight),X(2*Math.PI*P.y/p.clientHeight)),b.copy(y)}function ye(r){if(f.length==1)j.set(r.pageX,r.pageY);else{const p=Je(r),O=.5*(r.pageX+p.x),R=.5*(r.pageY+p.y);j.set(O,R)}M.subVectors(j,v).multiplyScalar(e.panSpeed),J(M.x,M.y),v.copy(j)}function we(r){const p=Je(r),O=r.pageX-p.x,R=r.pageY-p.y,G=Math.sqrt(O*O+R*R);C.set(0,G),_.set(0,Math.pow(C.y/A.y,e.zoomSpeed)),me(_.y),A.copy(C)}function Ie(r){e.enableZoom&&we(r),e.enablePan&&ye(r)}function Ne(r){e.enableZoom&&we(r),e.enableRotate&&be(r)}function je(r){var p,O;e.enabled!==!1&&(f.length===0&&((p=e.domElement)==null||p.ownerDocument.addEventListener("pointermove",Ke),(O=e.domElement)==null||O.ownerDocument.addEventListener("pointerup",qe)),co(r),r.pointerType==="touch"?io(r):so(r))}function Ke(r){e.enabled!==!1&&(r.pointerType==="touch"?ao(r):ro(r))}function qe(r){var p,O,R;ft(r),f.length===0&&((p=e.domElement)==null||p.releasePointerCapture(r.pointerId),(O=e.domElement)==null||O.ownerDocument.removeEventListener("pointermove",Ke),(R=e.domElement)==null||R.ownerDocument.removeEventListener("pointerup",qe)),e.dispatchEvent(u),c=i.NONE}function dt(r){ft(r)}function so(r){let p;switch(r.button){case 0:p=e.mouseButtons.LEFT;break;case 1:p=e.mouseButtons.MIDDLE;break;case 2:p=e.mouseButtons.RIGHT;break;default:p=-1}switch(p){case de.DOLLY:if(e.enableZoom===!1)return;ge(r),c=i.DOLLY;break;case de.ROTATE:if(r.ctrlKey||r.metaKey||r.shiftKey){if(e.enablePan===!1)return;xe(r),c=i.PAN}else{if(e.enableRotate===!1)return;$e(r),c=i.ROTATE}break;case de.PAN:if(r.ctrlKey||r.metaKey||r.shiftKey){if(e.enableRotate===!1)return;$e(r),c=i.ROTATE}else{if(e.enablePan===!1)return;xe(r),c=i.PAN}break;default:c=i.NONE}c!==i.NONE&&e.dispatchEvent(l)}function ro(r){if(e.enabled!==!1)switch(c){case i.ROTATE:if(e.enableRotate===!1)return;He(r);break;case i.DOLLY:if(e.enableZoom===!1)return;Ue(r);break;case i.PAN:if(e.enablePan===!1)return;Ze(r);break}}function ut(r){e.enabled===!1||e.enableZoom===!1||c!==i.NONE&&c!==i.ROTATE||(r.preventDefault(),e.dispatchEvent(l),Se(r),e.dispatchEvent(u))}function Qe(r){e.enabled===!1||e.enablePan===!1||Xe(r)}function io(r){switch(ht(r),f.length){case 1:switch(e.touches.ONE){case ue.ROTATE:if(e.enableRotate===!1)return;_e(),c=i.TOUCH_ROTATE;break;case ue.PAN:if(e.enablePan===!1)return;I(),c=i.TOUCH_PAN;break;default:c=i.NONE}break;case 2:switch(e.touches.TWO){case ue.DOLLY_PAN:if(e.enableZoom===!1&&e.enablePan===!1)return;Y(),c=i.TOUCH_DOLLY_PAN;break;case ue.DOLLY_ROTATE:if(e.enableZoom===!1&&e.enableRotate===!1)return;ie(),c=i.TOUCH_DOLLY_ROTATE;break;default:c=i.NONE}break;default:c=i.NONE}c!==i.NONE&&e.dispatchEvent(l)}function ao(r){switch(ht(r),c){case i.TOUCH_ROTATE:if(e.enableRotate===!1)return;be(r),e.update();break;case i.TOUCH_PAN:if(e.enablePan===!1)return;ye(r),e.update();break;case i.TOUCH_DOLLY_PAN:if(e.enableZoom===!1&&e.enablePan===!1)return;Ie(r),e.update();break;case i.TOUCH_DOLLY_ROTATE:if(e.enableZoom===!1&&e.enableRotate===!1)return;Ne(r),e.update();break;default:c=i.NONE}}function pt(r){e.enabled!==!1&&r.preventDefault()}function co(r){f.push(r)}function ft(r){delete $[r.pointerId];for(let p=0;pnew Do(void 0,void 0,void 0)),E=g.useCallback((h,m,x,b=20)=>(h instanceof N?c.v0.copy(h):c.v0.set(...h),m instanceof N?c.v2.copy(m):c.v2.set(...m),x instanceof N?c.v1.copy(x):c.v1.copy(c.v0.clone().add(c.v2.clone().sub(c.v0)).add(Dn.set(0,c.v0.y-c.v2.y,0))),c.getPoints(b)),[]);g.useLayoutEffect(()=>{i.current.setPoints=(h,m,x)=>{const b=E(h,m,x);i.current.geometry&&i.current.geometry.setPositions(b.map(y=>y.toArray()).flat())}},[]);const d=g.useMemo(()=>E(n,s,e,a),[n,s,e,a]);return g.createElement(Mo,Z({ref:$o([i,u]),points:d},l))}),Bn=g.forwardRef(({makeDefault:t,camera:n,regress:s,domElement:e,enableDamping:a=!0,onChange:l,onStart:u,onEnd:i,...c},E)=>{const d=ee(C=>C.invalidate),h=ee(C=>C.camera),m=ee(C=>C.gl),x=ee(C=>C.events),b=ee(C=>C.setEvents),y=ee(C=>C.set),P=ee(C=>C.get),v=ee(C=>C.performance),j=n||h,M=e||x.connected||m.domElement,A=g.useMemo(()=>new Rn(j),[j]);return Ge(()=>{A.enabled&&A.update()},-1),g.useEffect(()=>(A.connect(M),()=>void A.dispose()),[M,s,A,d]),g.useEffect(()=>{const C=z=>{d(),s&&v.regress(),l&&l(z)},_=z=>{u&&u(z)},L=z=>{i&&i(z)};return A.addEventListener("change",C),A.addEventListener("start",_),A.addEventListener("end",L),()=>{A.removeEventListener("start",_),A.removeEventListener("end",L),A.removeEventListener("change",C)}},[l,u,i,A,d,b]),g.useEffect(()=>{if(t){const C=P().controls;return y({controls:A}),()=>y({controls:C})}},[t,A]),g.createElement("primitive",Z({ref:E,object:A,enableDamping:a},c))});function Ln(t){const n=t+"Geometry";return g.forwardRef(({args:s,children:e,...a},l)=>g.createElement("mesh",Z({ref:l},a),g.createElement(n,{attach:"geometry",args:s}),e))}const Vn=Ln("circle"),Q=10,Fn=2,Wn=2,kt=10,Yn=10,zt=(t,n,s)=>{const l=new N().subVectors(n,t).normalize().multiplyScalar(s);return new N().addVectors(t,l)},Gn=(t,n,s,e)=>{const a=new N().lerpVectors(t,n,.5),l=new N().subVectors(n,t).normalize(),u=new N(-l.y,l.x,l.z).normalize(),i=(s-e/2)*Yn;return new N().addVectors(a,u.multiplyScalar(i))},oo=({links:t,nodes:n,onEdgeClick:s})=>{const e=g.useRef(null),{camera:a}=ee(),l=new N,u=new N,i=new N,c=new N,E=new N,d=new N,h=new N,m=new N;Ge(()=>{e.current&&n&&e.current.children.forEach((b,y)=>{var F,f,$,V;const P=t[y];if(!P)return;const v=n.find(S=>S.ref_id===P.target),j=n.find(S=>S.ref_id===P.source);l.set((j==null?void 0:j.x)||0,(j==null?void 0:j.y)||0,(j==null?void 0:j.z)||0),u.set((v==null?void 0:v.x)||0,(v==null?void 0:v.y)||0,(v==null?void 0:v.z)||0);const M=b.children[0],A=b.children[1],C=b.children[2],_=b.children[3],L=t.filter(S=>S.source===P.source&&S.target===P.target||S.source===P.target&&S.target===P.source).length,z=t.filter((S,W)=>W1?i.copy(Gn(m,h,z,L)):i.lerpVectors(m,h,.5);const S=30;c.subVectors(h,m).normalize().multiplyScalar(S/2),E.subVectors(i,c),d.addVectors(i,c);const W=new N().addVectors(m,E).multiplyScalar(.5),X=new N().addVectors(d,h).multiplyScalar(.5);($=M.setPoints)==null||$.call(M,m,E,W),(V=A.setPoints)==null||V.call(A,d,h,X),C.position.set(h.x,h.y,h.z),C.lookAt(m),C.rotateX(-Math.PI/2),_.position.set(i.x,i.y,i.z),_.lookAt(a.position);let te=Math.atan2(h.y-m.y,h.x-m.x);(te>Math.PI/2||te<-Math.PI/2)&&(te+=Math.PI),_.rotation.set(0,0,te);const re=m.distanceTo(h),J=re{if(b==="CHILD_OF"||y==="string"||P==="string")return;const j=n==null?void 0:n.find(_=>_.ref_id===y),M=n==null?void 0:n.find(_=>_.ref_id===P),A=(j==null?void 0:j.type)||"",C=(M==null?void 0:M.type)||"";s(v,b,A,C)};return o.jsx("group",{ref:e,children:t.map(b=>o.jsxs("group",{children:[o.jsx(Nt,{color:"white",end:[0,0,0],lineWidth:1,start:[0,0,0]}),o.jsx(Nt,{color:"white",end:[0,0,0],lineWidth:1,start:[0,0,0]}),o.jsxs("mesh",{position:new N(0,0,0),children:[o.jsx("coneGeometry",{args:[Fn,Wn,32]}),o.jsx("meshBasicMaterial",{color:"white"})]}),o.jsx(Jt,{anchorX:"center",anchorY:"middle",color:"white",...eo,lineHeight:1,maxWidth:20,onClick:()=>x(b.edge_type,b.source,b.target,b.ref_id),rotation:[0,0,0],textAlign:"center",children:rt(b.edge_type,kt)})]},b.ref_id))})};oo.displayName="Lines";const Hn=["#ff13c9","#5af0ff","#3233ff","#c2f0c2","#ff6666","#99ccff","#ffb3b3"],Un=B.div` color: white; background: rgba(0, 0, 0, 1); padding: 2px 5px; @@ -71,7 +71,7 @@ import{r as g,b as Ft,g as Wt,s as Te,_ as Z,u as Yt,ad as lo,a as Gt,j as o,c a font-weight: 400; `,Zn=B(So)` position: absolute; -`;new Bo(2,2,2);const no=g.memo(({node:t,setSelectedNode:n,onSimulationUpdate:s,isSelected:e})=>{var y;const a=g.useRef(null),[l,u]=g.useState(!1);console.log(e);const{size:i,camera:c}=ee(),E=jo(P=>{if(t.type==="Thing")return;const{xy:[v,j],down:M,dragging:A,first:C,elapsedTime:_}=P;if(!(!A||C||_<100)&&M&&a.current){s();const L=(v-i.left)/window.innerWidth*i.width,k=(j-i.top)/window.innerHeight*i.height,$=new N(L/i.width*2-1,-k/i.height*2+1,0).unproject(c).multiply(new N(1,1,0)).clone();t.fx=$.x,t.fy=$.y}});Ge(()=>{a.current&&a.current.position.set(t.x||0,t.y||0,0)});const d=Hn[(y=t==null?void 0:t.children)==null?void 0:y.length]||"red",h=P=>{P.stopPropagation(),t.type!=="Thing"&&n()},m=rt(t.type||"",Q),x=()=>{u(!0)},b=()=>{u(!1)};return o.jsxs("mesh",{ref:a,onClick:h,...E(),onPointerOut:b,onPointerOver:x,position:new N(t.x,t.y,0),children:[o.jsx(Vn,{args:[Q,30,20],children:o.jsx("meshStandardMaterial",{attach:"material",color:d})}),o.jsx(Jt,{...eo,clipRect:[-Q,-Q,Q,Q],color:"#000",fontSize:2,maxWidth:Q*2,name:t.type,textAlign:"left",children:m}),l&&o.jsx(Zn,{position:[0,5,0],zIndexRange:[100,0],children:o.jsx(Un,{children:t.type})})]})});no.displayName="Node";const Xn=({simulation:t,setSelectedSchemaId:n,selectedId:s,setIsAddEdgeNode:e})=>{const[a]=Qt(u=>[u.schemas]),l=()=>{t&&(t.alpha(.05),t.restart())};return o.jsx(o.Fragment,{children:a.map((u,i)=>{const c=t.nodes()[i];return c?o.jsx(no,{isSelected:c.ref_id===s,node:c,onSimulationUpdate:l,setSelectedNode:()=>{e(!1),n(c.ref_id)}},c.ref_id):null})})},Kn=({schemasWithPositions:t,filteredLinks:n,setSelectedSchemaId:s,selectedSchemaId:e,setIsAddEdgeNode:a,onEdgeClick:l})=>{const[u,i]=g.useState(null),c=Ct(t),E=Ct(n);return g.useEffect(()=>{if(!t.length||!n.length)return;const d=structuredClone(t),h=structuredClone(n);if(u){c&&c.length!==t.length&&E&&E.length!==n.length&&(u.nodes(d).force("link",xt(h).id(x=>x.ref_id).distance(100)).force("charge",bt()).force("center",yt()).force("collide",wt(Q+5)).alpha(.5).restart(),i({...u}));return}const m=mo(d).force("link",xt(h).id(x=>x.ref_id).distance(120)).force("charge",bt().strength(-100)).force("center",yt()).force("collide",wt(Q+5));i(m)},[t,u,n,c,E]),Ge(()=>{}),u?o.jsxs(o.Fragment,{children:[o.jsx(oo,{links:n,nodes:u.nodes(),onEdgeClick:l}),o.jsx(Xn,{selectedId:e,setIsAddEdgeNode:a,setSelectedSchemaId:s,simulation:u})]}):null},nt=new Lo(0),qn=({selectedSchemaId:t,links:n,schemasWithPositions:s,setSelectedSchemaId:e,setIsAddEdgeNode:a,onEdgeClick:l})=>o.jsxs(_o,{camera:{zoom:1,position:[0,0,200]},id:"schema-canvas",linear:!0,orthographic:!0,children:[o.jsx("color",{args:[nt.r,nt.g,nt.b],attach:"background"}),go&&o.jsx(Io,{position:"right-bottom"}),o.jsx(Qn,{}),o.jsx(No,{}),o.jsx(Kn,{filteredLinks:n,onEdgeClick:l,schemasWithPositions:s,selectedSchemaId:t,setIsAddEdgeNode:a,setSelectedSchemaId:e})]}),Qn=()=>{g.useEffect(()=>{const s=a=>{["Meta","Alt"].includes(a.key)&&(document.body.style.cursor="grab")},e=a=>{["Meta","Alt"].includes(a.key)&&(document.body.style.cursor="default")};return window.addEventListener("keydown",s,!1),window.addEventListener("keyup",e,!1),()=>{window.removeEventListener("keydown",s,!1),window.removeEventListener("keyup",e,!1)}},[]);const t=()=>{document.body.style.cursor="grabbing"},n=()=>{document.body.style.cursor="default"};return o.jsx(Bn,{dampingFactor:1,enableDamping:!0,enablePan:!0,enableRotate:!1,enableZoom:!0,maxZoom:20,minZoom:1,onEnd:n,onStart:t,zoomSpeed:1.5,zoomToCursor:!0})},Jn=t=>o.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 19",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M9.5002 0.270145C10.3742 0.270145 11.1128 0.571885 11.7161 1.17537C12.3193 1.77868 12.6209 2.51732 12.6209 3.39129C12.6209 4.17273 12.3716 4.85117 11.873 5.42662C11.3744 6.00189 10.7483 6.34792 9.99474 6.46469L9.99474 9.0052L13.8388 9.0052C14.2785 9.0052 14.6549 9.16172 14.9679 9.47476C15.2809 9.78779 15.4375 10.1642 15.4375 10.6039L15.4375 12.564L17.0171 12.564C17.2435 12.564 17.4334 12.6405 17.5866 12.7936C17.7396 12.9468 17.8162 13.1366 17.8162 13.3631L17.8162 17.5042C17.8162 17.7389 17.7396 17.9321 17.5866 18.0836C17.4334 18.2352 17.2435 18.311 17.0171 18.311L12.8759 18.311C12.6412 18.311 12.4481 18.2345 12.2965 18.0814C12.1449 17.9282 12.0692 17.7384 12.0692 17.5119L12.0692 13.3707C12.0692 13.136 12.1457 12.9429 12.2987 12.7913C12.452 12.6398 12.6418 12.564 12.8682 12.564L14.4479 12.564L14.4479 10.6039C14.4479 10.4262 14.3908 10.2803 14.2767 10.166C14.1624 10.0518 14.0164 9.99478 13.8388 9.99478L5.16112 9.99478C4.98349 9.99478 4.83753 10.0518 4.72323 10.166C4.6091 10.2803 4.55203 10.4262 4.55203 10.6039L4.55203 12.6115C5.3056 12.7283 5.93168 13.0743 6.43026 13.6496C6.92885 14.225 7.17814 14.9034 7.17814 15.6849C7.17814 16.5587 6.87648 17.2973 6.27317 17.9008C5.66969 18.5041 4.93096 18.8058 4.05699 18.8058C3.18303 18.8058 2.44439 18.5041 1.84107 17.9008C1.23792 17.2973 0.936342 16.5587 0.936343 15.6849C0.936343 14.9034 1.18564 14.225 1.68422 13.6496C2.18281 13.0743 2.80888 12.7283 3.56245 12.6115L3.56245 10.6039C3.56245 10.1642 3.71897 9.78779 4.03201 9.47476C4.34504 9.16172 4.72142 9.0052 5.16112 9.0052L9.00516 9.0052L9.00516 6.46469C8.25159 6.34792 7.62552 6.00189 7.12693 5.42662C6.62835 4.85117 6.37905 4.17273 6.37905 3.39129C6.37905 2.51732 6.68071 1.77868 7.28403 1.17537C7.88751 0.571885 8.62623 0.270145 9.5002 0.270145Z",fill:"currentColor"})}),es=({onClose:t,activeTab:n,setActiveTab:s})=>o.jsxs(ts,{children:[o.jsxs(os,{children:[o.jsx(Jn,{}),o.jsx(ns,{children:"Blueprint"})]}),o.jsxs(ss,{children:[o.jsx(Rt,{active:n==="all",onClick:()=>s("all"),children:"Show All"}),o.jsx(Rt,{active:n==="parent",onClick:()=>s("parent"),children:"Parent Only"})]}),o.jsx(rs,{onClick:t,children:o.jsx(lt,{})})]}),ts=B(w)` +`;new Bo(2,2,2);const no=g.memo(({node:t,setSelectedNode:n,onSimulationUpdate:s,isSelected:e})=>{var y;const a=g.useRef(null),[l,u]=g.useState(!1);console.log(e);const{size:i,camera:c}=ee(),E=jo(P=>{if(t.type==="Thing")return;const{xy:[v,j],down:M,dragging:A,first:C,elapsedTime:_}=P;if(!(!A||C||_<100)&&M&&a.current){s();const L=(v-i.left)/window.innerWidth*i.width,z=(j-i.top)/window.innerHeight*i.height,$=new N(L/i.width*2-1,-z/i.height*2+1,0).unproject(c).multiply(new N(1,1,0)).clone();t.fx=$.x,t.fy=$.y}});Ge(()=>{a.current&&a.current.position.set(t.x||0,t.y||0,0)});const d=Hn[(y=t==null?void 0:t.children)==null?void 0:y.length]||"red",h=P=>{P.stopPropagation(),t.type!=="Thing"&&n()},m=rt(t.type||"",Q),x=()=>{u(!0)},b=()=>{u(!1)};return o.jsxs("mesh",{ref:a,onClick:h,...E(),onPointerOut:b,onPointerOver:x,position:new N(t.x,t.y,0),children:[o.jsx(Vn,{args:[Q,30,20],children:o.jsx("meshStandardMaterial",{attach:"material",color:d})}),o.jsx(Jt,{...eo,clipRect:[-Q,-Q,Q,Q],color:"#000",fontSize:2,maxWidth:Q*2,name:t.type,textAlign:"left",children:m}),l&&o.jsx(Zn,{position:[0,5,0],zIndexRange:[100,0],children:o.jsx(Un,{children:t.type})})]})});no.displayName="Node";const Xn=({simulation:t,setSelectedSchemaId:n,selectedId:s,setIsAddEdgeNode:e})=>{const[a]=qt(u=>[u.schemas]),l=()=>{t&&(t.alpha(.05),t.restart())};return o.jsx(o.Fragment,{children:a.map((u,i)=>{const c=t.nodes()[i];return c?o.jsx(no,{isSelected:c.ref_id===s,node:c,onSimulationUpdate:l,setSelectedNode:()=>{e(!1),n(c.ref_id)}},c.ref_id):null})})},Kn=({schemasWithPositions:t,filteredLinks:n,setSelectedSchemaId:s,selectedSchemaId:e,setIsAddEdgeNode:a,onEdgeClick:l})=>{const[u,i]=g.useState(null),c=Ct(t),E=Ct(n);return g.useEffect(()=>{if(!t.length||!n.length)return;const d=structuredClone(t),h=structuredClone(n);if(u){c&&c.length!==t.length&&E&&E.length!==n.length&&(u.nodes(d).force("link",xt(h).id(x=>x.ref_id).distance(100)).force("charge",bt()).force("center",yt()).force("collide",wt(Q+5)).alpha(.5).restart(),i({...u}));return}const m=mo(d).force("link",xt(h).id(x=>x.ref_id).distance(120)).force("charge",bt().strength(-100)).force("center",yt()).force("collide",wt(Q+5));i(m)},[t,u,n,c,E]),Ge(()=>{}),u?o.jsxs(o.Fragment,{children:[o.jsx(oo,{links:n,nodes:u.nodes(),onEdgeClick:l}),o.jsx(Xn,{selectedId:e,setIsAddEdgeNode:a,setSelectedSchemaId:s,simulation:u})]}):null},nt=new Lo(0),qn=({selectedSchemaId:t,links:n,schemasWithPositions:s,setSelectedSchemaId:e,setIsAddEdgeNode:a,onEdgeClick:l})=>o.jsxs(_o,{camera:{zoom:1,position:[0,0,200]},id:"schema-canvas",linear:!0,orthographic:!0,children:[o.jsx("color",{args:[nt.r,nt.g,nt.b],attach:"background"}),go&&o.jsx(Io,{position:"right-bottom"}),o.jsx(Qn,{}),o.jsx(No,{}),o.jsx(Kn,{filteredLinks:n,onEdgeClick:l,schemasWithPositions:s,selectedSchemaId:t,setIsAddEdgeNode:a,setSelectedSchemaId:e})]}),Qn=()=>{g.useEffect(()=>{const s=a=>{["Meta","Alt"].includes(a.key)&&(document.body.style.cursor="grab")},e=a=>{["Meta","Alt"].includes(a.key)&&(document.body.style.cursor="default")};return window.addEventListener("keydown",s,!1),window.addEventListener("keyup",e,!1),()=>{window.removeEventListener("keydown",s,!1),window.removeEventListener("keyup",e,!1)}},[]);const t=()=>{document.body.style.cursor="grabbing"},n=()=>{document.body.style.cursor="default"};return o.jsx(Bn,{dampingFactor:1,enableDamping:!0,enablePan:!0,enableRotate:!1,enableZoom:!0,maxZoom:20,minZoom:1,onEnd:n,onStart:t,zoomSpeed:1.5,zoomToCursor:!0})},Jn=t=>o.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 19",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M9.5002 0.270145C10.3742 0.270145 11.1128 0.571885 11.7161 1.17537C12.3193 1.77868 12.6209 2.51732 12.6209 3.39129C12.6209 4.17273 12.3716 4.85117 11.873 5.42662C11.3744 6.00189 10.7483 6.34792 9.99474 6.46469L9.99474 9.0052L13.8388 9.0052C14.2785 9.0052 14.6549 9.16172 14.9679 9.47476C15.2809 9.78779 15.4375 10.1642 15.4375 10.6039L15.4375 12.564L17.0171 12.564C17.2435 12.564 17.4334 12.6405 17.5866 12.7936C17.7396 12.9468 17.8162 13.1366 17.8162 13.3631L17.8162 17.5042C17.8162 17.7389 17.7396 17.9321 17.5866 18.0836C17.4334 18.2352 17.2435 18.311 17.0171 18.311L12.8759 18.311C12.6412 18.311 12.4481 18.2345 12.2965 18.0814C12.1449 17.9282 12.0692 17.7384 12.0692 17.5119L12.0692 13.3707C12.0692 13.136 12.1457 12.9429 12.2987 12.7913C12.452 12.6398 12.6418 12.564 12.8682 12.564L14.4479 12.564L14.4479 10.6039C14.4479 10.4262 14.3908 10.2803 14.2767 10.166C14.1624 10.0518 14.0164 9.99478 13.8388 9.99478L5.16112 9.99478C4.98349 9.99478 4.83753 10.0518 4.72323 10.166C4.6091 10.2803 4.55203 10.4262 4.55203 10.6039L4.55203 12.6115C5.3056 12.7283 5.93168 13.0743 6.43026 13.6496C6.92885 14.225 7.17814 14.9034 7.17814 15.6849C7.17814 16.5587 6.87648 17.2973 6.27317 17.9008C5.66969 18.5041 4.93096 18.8058 4.05699 18.8058C3.18303 18.8058 2.44439 18.5041 1.84107 17.9008C1.23792 17.2973 0.936342 16.5587 0.936343 15.6849C0.936343 14.9034 1.18564 14.225 1.68422 13.6496C2.18281 13.0743 2.80888 12.7283 3.56245 12.6115L3.56245 10.6039C3.56245 10.1642 3.71897 9.78779 4.03201 9.47476C4.34504 9.16172 4.72142 9.0052 5.16112 9.0052L9.00516 9.0052L9.00516 6.46469C8.25159 6.34792 7.62552 6.00189 7.12693 5.42662C6.62835 4.85117 6.37905 4.17273 6.37905 3.39129C6.37905 2.51732 6.68071 1.77868 7.28403 1.17537C7.88751 0.571885 8.62623 0.270145 9.5002 0.270145Z",fill:"currentColor"})}),es=({onClose:t,activeTab:n,setActiveTab:s})=>o.jsxs(ts,{children:[o.jsxs(os,{children:[o.jsx(Jn,{}),o.jsx(ns,{children:"Blueprint"})]}),o.jsxs(ss,{children:[o.jsx(Rt,{active:n==="all",onClick:()=>s("all"),children:"Show All"}),o.jsx(Rt,{active:n==="parent",onClick:()=>s("parent"),children:"Parent Only"})]}),o.jsx(rs,{onClick:t,children:o.jsx(lt,{})})]}),ts=B(w)` background-color: ${D.BG1}; height: 64px; width: 100%; @@ -227,7 +227,7 @@ import{r as g,b as Ft,g as Wt,s as Te,_ as Z,u as Yt,ad as lo,a as Gt,j as o,c a justify-content: center; align-items: center; font-size: 24px; -`,cs=({Close:t})=>{const[n,s]=g.useState(""),[e,a]=g.useState(!1),[l,u]=g.useState(!1),[i,c]=g.useState(!1),[E,d]=g.useState({refId:"",edgeType:"",source:"",target:""}),[h,m]=g.useState(!1),[x,b]=g.useState("all"),[y,P,v,j]=Qt(f=>[f.schemas,f.links,f.setSchemas,f.setSchemaLinks]);g.useEffect(()=>{(async()=>{u(!0);try{const $=await jt(),V=$.schemas.filter(S=>S.ref_id&&!S.is_deleted);v(V.length>0?V:$.schemas),j($.edges.length>0?$.edges:[]),u(!1)}catch($){console.error("Error fetching data:",$),u(!1)}})()},[v,j]);const M=f=>{if(y.some(V=>V.ref_id===f.ref_id))v(y.map(V=>V.ref_id===f.ref_id?{...f,children:[]}:V));else{v([...y,{...f,children:[]}]);const V=y.find(S=>f.parent===S.type);j([...P,{ref_id:`new-link-${P.length}`,edge_type:"CHILD_OF",source:f.ref_id||"new",target:(V==null?void 0:V.ref_id)||"new"}])}},A=async()=>{const f=await jt();v(f.schemas.filter($=>$.ref_id&&!$.is_deleted&&$.ref_id)),j(f.edges)},C=f=>{v(y.filter($=>$.type!==f))},_=y.map(f=>({...f,children:y.filter($=>$.parent===f.type).map($=>$.ref_id||"")})),L=P.filter(f=>_.some($=>$.ref_id===f.source)&&_.some($=>$.ref_id===f.target)),k=y.find(f=>f.ref_id===n)||null;if(l)return o.jsx(w,{align:"center",basis:"100%",grow:1,justify:"center",shrink:1,children:o.jsx(le,{color:D.white})});const F=x==="all"?L:L.filter(f=>f.edge_type==="CHILD_OF");return o.jsxs(o.Fragment,{children:[o.jsx(w,{ml:-20,mr:-20,mt:-20,children:o.jsx(es,{activeTab:x,onClose:t,setActiveTab:b})}),o.jsxs(w,{align:"stretch",direction:"row",grow:1,children:[o.jsx(w,{mb:-20,ml:-20,children:o.jsx(is,{onAddEdgeNode:()=>{c(!0),a(!1),s(""),d({refId:"",edgeType:"",source:"",target:""})},onCreateNew:()=>{c(!1),a(!0),s("")}})}),o.jsx(w,{children:k||e?o.jsx(Lt,{children:o.jsx(Vt,{children:o.jsx($n,{graphLoading:h,onDelete:C,onSchemaCreate:M,onSchemaUpdate:A,selectedSchema:k,setGraphLoading:m,setIsCreateNew:a,setSelectedSchemaId:s})})}):null}),o.jsx(w,{children:i?o.jsx(Lt,{children:o.jsx(Vt,{children:o.jsx(wn,{edgeData:E,setGraphLoading:m,setIsAddEdgeNode:c})})}):null}),o.jsx(ls,{direction:"row",grow:1,children:o.jsx(ds,{children:h?o.jsx(w,{align:"center",basis:"100%",grow:1,justify:"center",shrink:1,children:o.jsx(le,{color:D.white})}):o.jsx(qn,{links:F,onEdgeClick:(f,$,V,S)=>{d({refId:f,edgeType:$,source:V,target:S}),c(!0),a(!1),s("")},schemasWithPositions:_,selectedSchemaId:n,setIsAddEdgeNode:c,setSelectedSchemaId:s})})})]})]})},ls=B(w)` +`,cs=({Close:t})=>{const[n,s]=g.useState(""),[e,a]=g.useState(!1),[l,u]=g.useState(!1),[i,c]=g.useState(!1),[E,d]=g.useState({refId:"",edgeType:"",source:"",target:""}),[h,m]=g.useState(!1),[x,b]=g.useState("all"),[y,P,v,j]=qt(f=>[f.schemas,f.links,f.setSchemas,f.setSchemaLinks]);g.useEffect(()=>{(async()=>{u(!0);try{const $=await jt(),V=$.schemas.filter(S=>S.ref_id&&!S.is_deleted);v(V.length>0?V:$.schemas),j($.edges.length>0?$.edges:[]),u(!1)}catch($){console.error("Error fetching data:",$),u(!1)}})()},[v,j]);const M=f=>{if(y.some(V=>V.ref_id===f.ref_id))v(y.map(V=>V.ref_id===f.ref_id?{...f,children:[]}:V));else{v([...y,{...f,children:[]}]);const V=y.find(S=>f.parent===S.type);j([...P,{ref_id:`new-link-${P.length}`,edge_type:"CHILD_OF",source:f.ref_id||"new",target:(V==null?void 0:V.ref_id)||"new"}])}},A=async()=>{const f=await jt();v(f.schemas.filter($=>$.ref_id&&!$.is_deleted&&$.ref_id)),j(f.edges)},C=f=>{v(y.filter($=>$.type!==f))},_=y.map(f=>({...f,children:y.filter($=>$.parent===f.type).map($=>$.ref_id||"")})),L=P.filter(f=>_.some($=>$.ref_id===f.source)&&_.some($=>$.ref_id===f.target)),z=y.find(f=>f.ref_id===n)||null;if(l)return o.jsx(w,{align:"center",basis:"100%",grow:1,justify:"center",shrink:1,children:o.jsx(le,{color:D.white})});const F=x==="all"?L:L.filter(f=>f.edge_type==="CHILD_OF");return o.jsxs(o.Fragment,{children:[o.jsx(w,{ml:-20,mr:-20,mt:-20,children:o.jsx(es,{activeTab:x,onClose:t,setActiveTab:b})}),o.jsxs(w,{align:"stretch",direction:"row",grow:1,children:[o.jsx(w,{mb:-20,ml:-20,children:o.jsx(is,{onAddEdgeNode:()=>{c(!0),a(!1),s(""),d({refId:"",edgeType:"",source:"",target:""})},onCreateNew:()=>{c(!1),a(!0),s("")}})}),o.jsx(w,{children:z||e?o.jsx(Lt,{children:o.jsx(Vt,{children:o.jsx($n,{graphLoading:h,onDelete:C,onSchemaCreate:M,onSchemaUpdate:A,selectedSchema:z,setGraphLoading:m,setIsCreateNew:a,setSelectedSchemaId:s})})}):null}),o.jsx(w,{children:i?o.jsx(Lt,{children:o.jsx(Vt,{children:o.jsx(wn,{edgeData:E,setGraphLoading:m,setIsAddEdgeNode:c})})}):null}),o.jsx(ls,{direction:"row",grow:1,children:o.jsx(ds,{children:h?o.jsx(w,{align:"center",basis:"100%",grow:1,justify:"center",shrink:1,children:o.jsx(le,{color:D.white})}):o.jsx(qn,{links:F,onEdgeClick:(f,$,V,S)=>{d({refId:f,edgeType:$,source:V,target:S}),c(!0),a(!1),s("")},schemasWithPositions:_,selectedSchemaId:n,setIsAddEdgeNode:c,setSelectedSchemaId:s})})})]})]})},ls=B(w)` flex: 1 1 auto; justify-content: center; position: relative; @@ -274,4 +274,4 @@ import{r as g,b as Ft,g as Wt,s as Te,_ as Z,u as Yt,ad as lo,a as Gt,j as o,c a padding: 16px; `,ds=B(w)` flex: 1 1 100%; -`,us=()=>{const{close:t}=Xt("blueprintGraph"),n=()=>{t()};return o.jsx(xo,{background:"black",id:"blueprintGraph",kind:"full",preventOutsideClose:!0,children:o.jsx(cs,{Close:n})})},zs=g.memo(us);export{zs as BlueprintModal}; +`,us=()=>{const{close:t}=Xt("blueprintGraph"),n=()=>{t()};return o.jsx(xo,{background:"black",id:"blueprintGraph",kind:"full",preventOutsideClose:!0,children:o.jsx(cs,{Close:n})})},Ns=g.memo(us);export{Ns as BlueprintModal}; diff --git a/build/assets/index-aac659dd.js b/build/assets/index-aac659dd.js deleted file mode 100644 index 16687f237..000000000 --- a/build/assets/index-aac659dd.js +++ /dev/null @@ -1,29 +0,0 @@ -import{w as n,o as g,q as t,F as d,j as c}from"./index-21067c9d.js";const l={schemas:[],links:[]},p=n((a,e)=>({...l,setSchemas:s=>{a({schemas:s.map(r=>({...r}))})},setSchemaLinks:s=>{a({links:s})},getPrimaryColorByType:s=>{const r=e().schemas.find(o=>o.type===s);return r?r.primary_color:void 0}})),_=({type:a})=>{let e;const[s]=p(i=>[i.getPrimaryColorByType]),r=a.toLowerCase(),o=s(a);switch(r){case"video":case"twitter_space":case"podcast":case"clip":e={iconStart:"video_badge.svg",color:o??t.CLIP};break;case"show":e={iconStart:"show_badge.svg",color:o??t.SHOW};break;case"tweet":e={iconStart:"twitter_badge.svg",color:o??t.TWEET};break;case"episode":e={iconStart:"audio_badge.svg",color:o??t.EPISODE};break;case"document":e={iconStart:"notes_badge.svg",color:o??t.TEXT};break;case"organization":e={iconStart:"organization_badge.svg",color:o??t.ORGANIZATION};break;case"person":case"guest":case"host":e={iconStart:"person_badge.svg",color:o??t.PERSON};break;case"event":e={iconStart:"event_badge.svg",color:o??t.EVENT};break;case"topic":e={iconStart:"topic_badge.svg",color:o??t.TOPIC};break;default:e={iconStart:"thing_badge.svg",color:o??t.THING};break}return c.jsx(b,{...e,label:a})},b=({iconStart:a,color:e,label:s})=>c.jsxs(m,{color:e,label:s,children:[c.jsx("img",{alt:s,className:"badge__img",src:a}),c.jsx("div",{className:"badge__label",children:s})]}),m=g(d).attrs({direction:"row"})` - cursor: pointer; - background: ${({color:a})=>a}; - border-radius: 3px; - overflow: hidden; - justify-content: center; - align-items: center; - padding: 0 4px; - gap: 2px; - - .badge__img { - width: 10px; - height: 10px; - object-fit: contain; - } - - .badge__label { - color: ${({label:a})=>a.toLowerCase()==="topic"?t.black:t.white}; - font-family: Barlow; - font-size: 8px; - font-style: normal; - font-weight: 800; - line-height: 14px; - text-transform: uppercase; - line-height: 14px; - letter-spacing: 0.48px; - padding: 0 4px; - } -`;export{_ as T,p as u}; diff --git a/build/assets/index-6851ff74.js b/build/assets/index-ae125883.js similarity index 78% rename from build/assets/index-6851ff74.js rename to build/assets/index-ae125883.js index d5d0a1737..c5a579c3b 100644 --- a/build/assets/index-6851ff74.js +++ b/build/assets/index-ae125883.js @@ -1,4 +1,4 @@ -import{aa as Z,o as g,q as b,F as t,T,J as V,r as y,j as e,b2 as ee,b3 as te,aW as F,b8 as se,C as ne,b9 as oe,O as D,B as re,p as ie,aV as I,ac as ae,ab as ce,b6 as le}from"./index-21067c9d.js";import{B as C,g as de,h as pe,F as me}from"./index-93bc2f63.js";import{B as xe}from"./index-54401641.js";import{S as ue}from"./index-0deccf02.js";import{e as he}from"./index.esm-9353033f.js";import{C as fe}from"./CheckIcon-54252c75.js";import{C as W}from"./ClipLoader-19a8277d.js";import{n as z,A as ye,O as ge,i as je}from"./index-f870d337.js";import{p as q}from"./index-44e303ef.js";import{T as L}from"./index-de7da582.js";import{c as we}from"./index-64f1c910.js";import"./index-aac659dd.js";import"./Stack-dbe00046.js";import"./useSlotProps-f54e8b6d.js";import"./Popover-8ff60b97.js";import"./createSvgIcon-b719273b.js";import"./TextareaAutosize-9f8d1e37.js";import"./three.module-2ce81f73.js";import"./InfoIcon-473ded19.js";const be=async(o,a,c="")=>await Z.post(`/${o}`,JSON.stringify(a),{Authorization:c}),Se=async(o,a,c,x,d,r)=>{const m=o==="Create custom type"?"schema":"node",l={node_data:{...a,...o==="Image"&&{source_link:c}},node_type:o,name:x,pubkey:r};return be(m,l,d)},Ne=({onClick:o,loading:a,error:c})=>{const x=V(l=>l.budget),[d,r]=y.useState(10),m="node";return y.useEffect(()=>{(async()=>{try{const h=await te(m);r(h.data.price)}catch(h){console.error("cannot fetch",h)}})()},[m]),e.jsxs(t,{children:[e.jsx(t,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(t,{align:"center",direction:"row",children:e.jsx(ke,{children:"Approve Cost"})})}),e.jsxs(t,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(Te,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[d," sats"]})]}),e.jsxs(Ce,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[ee(x)," sats"]})]})]}),e.jsx(t,{children:e.jsx(C,{color:"secondary","data-testid":"check-icon",disabled:a||!!c,onClick:o,size:"large",startIcon:a?e.jsx(R,{children:e.jsx(W,{color:b.lightGray,size:12})}):e.jsxs(R,{children:[" ",e.jsx(fe,{})]}),type:"submit",variant:"contained",children:"Approve"})}),c?e.jsx(Be,{children:e.jsxs(ve,{children:[e.jsx(he,{className:"errorIcon"}),e.jsx("span",{children:c})]})}):null]})},Te=g(t).attrs({direction:"column",align:"space-between",justify:"flex-start"})` +import{aa as Z,o as g,q as b,F as t,T,J as V,r as y,j as e,b2 as ee,b3 as te,aW as F,b8 as se,C as ne,b9 as oe,O as D,B as re,p as ie,aV as I,ac as ae,ab as ce,b6 as le}from"./index-f50d1ab5.js";import{B as C,h as de,i as pe,F as me}from"./index-f857b04d.js";import{B as xe}from"./index-cc30c812.js";import{S as ue}from"./index-4f7525f2.js";import{e as he}from"./index.esm-22240fd2.js";import{C as fe}from"./CheckIcon-9f687844.js";import{C as W}from"./ClipLoader-f52b169b.js";import{n as z,A as ye,O as ge,i as je}from"./index-f812334e.js";import{p as q}from"./index-44e303ef.js";import{T as L}from"./index-bd1e0bc6.js";import{c as we}from"./index-64f1c910.js";import"./Stack-a4065033.js";import"./useSlotProps-f1483ce3.js";import"./Popover-a7534715.js";import"./createSvgIcon-c64a52be.js";import"./TextareaAutosize-04e2890c.js";import"./three.module-2ce81f73.js";import"./InfoIcon-89f3f76d.js";const be=async(o,a,c="")=>await Z.post(`/${o}`,JSON.stringify(a),{Authorization:c}),Se=async(o,a,c,x,d,r)=>{const m=o==="Create custom type"?"schema":"node",l={node_data:{...a,...o==="Image"&&{source_link:c}},node_type:o,name:x,pubkey:r};return be(m,l,d)},Ne=({onClick:o,loading:a,error:c})=>{const x=V(l=>l.budget),[d,r]=y.useState(10),m="node";return y.useEffect(()=>{(async()=>{try{const h=await te(m);r(h.data.price)}catch(h){console.error("cannot fetch",h)}})()},[m]),e.jsxs(t,{children:[e.jsx(t,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(t,{align:"center",direction:"row",children:e.jsx(ke,{children:"Approve Cost"})})}),e.jsxs(t,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(Te,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[d," sats"]})]}),e.jsxs(Ce,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[ee(x)," sats"]})]})]}),e.jsx(t,{children:e.jsx(C,{color:"secondary","data-testid":"check-icon",disabled:a||!!c,onClick:o,size:"large",startIcon:a?e.jsx(R,{children:e.jsx(W,{color:b.lightGray,size:12})}):e.jsxs(R,{children:[" ",e.jsx(fe,{})]}),type:"submit",variant:"contained",children:"Approve"})}),c?e.jsx(Be,{children:e.jsxs(ve,{children:[e.jsx(he,{className:"errorIcon"}),e.jsx("span",{children:c})]})}):null]})},Te=g(t).attrs({direction:"column",align:"space-between",justify:"flex-start"})` width: 141px; height: 61px; border: 1px solid ${b.GRAY7}; @@ -120,4 +120,4 @@ import{aa as Z,o as g,q as b,F as t,T,J as V,r as y,j as e,b2 as ee,b3 as te,aW font-size: 22px; font-weight: 600; font-family: 'Barlow'; -`,Pe=async(o,a,c)=>{var f;const x=Object.entries(o).reduce((n,[j,p])=>(p!=null&&p!==""&&(n[j]=p),n),{}),{nodeType:d,typeName:r,sourceLink:m,...l}=x;let h="",w="";d!=="Create custom type"&&await ae(async()=>{const n=await ce.enable();w=n==null?void 0:n.pubkey,h=await le()});try{const n=await Se(d,l,m,r,h,w);c(o,(f=n==null?void 0:n.data)==null?void 0:f.ref_id)}catch(n){let j=I;if(n.status===400){const p=await n.json();j=p.message||p.errorCode||(p==null?void 0:p.status)||I}else n instanceof Error&&(j=n.message);throw new Error(j)}},ot=()=>{const[o,a]=y.useState("sourceType"),{close:c,visible:x}=D("addItem"),{open:d}=D("addType"),[r]=V(i=>[i.setBudget]),m=pe({mode:"onChange"}),{watch:l,setValue:h,reset:w}=m,[f,n]=y.useState(!1),[j,p]=y.useState(""),[s]=re(i=>[i.addNewNode]),[u]=ie(i=>[i.setSelectedNode]);y.useEffect(()=>()=>{a("sourceType"),w()},[x,w]);const S=l("nodeType"),_=l("typeName"),A=l("sourceLink"),J=l("type");l("title");const O=()=>{c()},E=i=>{p(""),a(i)},U=(i,N)=>{const v=N||`new-id-${Math.random()}`,k=i.nodeType.toLocaleLowerCase(),Q=Object.entries(i).reduce(($,[X,B])=>(B!=null&&B!==""&&($[X]=B),$),{}),P={name:i.typeName??i.name,type:k,label:i.typeName??i.name,node_type:k,id:v,edge_count:0,ref_id:v,x:Math.random(),y:Math.random(),z:Math.random(),date:parseInt((new Date().getTime()/1e3).toFixed(0),10),weight:4,...i.source_link?{source_link:i.source_link}:{},properties:{...Q}};s({nodes:[P],links:[]}),u(P)},Y=m.handleSubmit(async i=>{p(""),n(!0);try{await Pe(i,r,U),ue("Item Added"),O()}catch(N){let v=I;if((N==null?void 0:N.status)===400){const k=await N.json();v=k.errorCode||(k==null?void 0:k.status)||I}else N instanceof Error&&(v=N.message);p(String(v))}finally{n(!1)}}),M=i=>{i==="Create custom type"?d():h("nodeType",i)},H={sourceType:e.jsx(Oe,{allowNextStep:!!S,onSelectType:M,selectedType:S,skipToStep:E}),source:e.jsx(Fe,{name:_,skipToStep:E,sourceLink:A||"",type:S}),setBudget:e.jsx(Ne,{error:j,loading:f,onClick:()=>null}),createConfirmation:e.jsx(ze,{onclose:O,type:J}),setAttribues:e.jsx(Ie,{handleSelectType:M,nodeType:S,skipToStep:E})},K="small";return e.jsx(xe,{id:"addItem",kind:K,onClose:c,preventOutsideClose:!0,children:e.jsx(me,{...m,children:e.jsx("form",{id:"add-node-form",onSubmit:Y,children:H[o]})})})};export{ot as AddItemModal}; +`,Pe=async(o,a,c)=>{var f;const x=Object.entries(o).reduce((n,[j,p])=>(p!=null&&p!==""&&(n[j]=p),n),{}),{nodeType:d,typeName:r,sourceLink:m,...l}=x;let h="",w="";d!=="Create custom type"&&await ae(async()=>{const n=await ce.enable();w=n==null?void 0:n.pubkey,h=await le()});try{const n=await Se(d,l,m,r,h,w);c(o,(f=n==null?void 0:n.data)==null?void 0:f.ref_id)}catch(n){let j=I;if(n.status===400){const p=await n.json();j=p.message||p.errorCode||(p==null?void 0:p.status)||I}else n instanceof Error&&(j=n.message);throw new Error(j)}},nt=()=>{const[o,a]=y.useState("sourceType"),{close:c,visible:x}=D("addItem"),{open:d}=D("addType"),[r]=V(i=>[i.setBudget]),m=pe({mode:"onChange"}),{watch:l,setValue:h,reset:w}=m,[f,n]=y.useState(!1),[j,p]=y.useState(""),[s]=re(i=>[i.addNewNode]),[u]=ie(i=>[i.setSelectedNode]);y.useEffect(()=>()=>{a("sourceType"),w()},[x,w]);const S=l("nodeType"),_=l("typeName"),A=l("sourceLink"),J=l("type");l("title");const O=()=>{c()},E=i=>{p(""),a(i)},U=(i,N)=>{const v=N||`new-id-${Math.random()}`,k=i.nodeType.toLocaleLowerCase(),Q=Object.entries(i).reduce(($,[X,B])=>(B!=null&&B!==""&&($[X]=B),$),{}),P={name:i.typeName??i.name,type:k,label:i.typeName??i.name,node_type:k,id:v,edge_count:0,ref_id:v,x:Math.random(),y:Math.random(),z:Math.random(),date:parseInt((new Date().getTime()/1e3).toFixed(0),10),weight:4,...i.source_link?{source_link:i.source_link}:{},properties:{...Q}};s({nodes:[P],links:[]}),u(P)},Y=m.handleSubmit(async i=>{p(""),n(!0);try{await Pe(i,r,U),ue("Item Added"),O()}catch(N){let v=I;if((N==null?void 0:N.status)===400){const k=await N.json();v=k.errorCode||(k==null?void 0:k.status)||I}else N instanceof Error&&(v=N.message);p(String(v))}finally{n(!1)}}),M=i=>{i==="Create custom type"?d():h("nodeType",i)},H={sourceType:e.jsx(Oe,{allowNextStep:!!S,onSelectType:M,selectedType:S,skipToStep:E}),source:e.jsx(Fe,{name:_,skipToStep:E,sourceLink:A||"",type:S}),setBudget:e.jsx(Ne,{error:j,loading:f,onClick:()=>null}),createConfirmation:e.jsx(ze,{onclose:O,type:J}),setAttribues:e.jsx(Ie,{handleSelectType:M,nodeType:S,skipToStep:E})},K="small";return e.jsx(xe,{id:"addItem",kind:K,onClose:c,preventOutsideClose:!0,children:e.jsx(me,{...m,children:e.jsx("form",{id:"add-node-form",onSubmit:Y,children:H[o]})})})};export{nt as AddItemModal}; diff --git a/build/assets/index-73fb50fe.js b/build/assets/index-bbc2f2ba.js similarity index 91% rename from build/assets/index-73fb50fe.js rename to build/assets/index-bbc2f2ba.js index fcd7c073a..7c8611a22 100644 --- a/build/assets/index-73fb50fe.js +++ b/build/assets/index-bbc2f2ba.js @@ -1,4 +1,4 @@ -import{o as i,j as e,F as s,aW as b,T as a,q as n,O as w,r as m,aa as j}from"./index-21067c9d.js";import{B as C,h as S,F as y}from"./index-93bc2f63.js";import{B as k}from"./index-54401641.js";import{S as v}from"./index-0deccf02.js";import{T as F}from"./index-de7da582.js";import"./index.esm-9353033f.js";import"./InfoIcon-473ded19.js";const B=({allowNextStep:t})=>e.jsxs(s,{p:12,children:[e.jsx(s,{align:"center",direction:"row",justify:"space-between",mb:25,children:e.jsx(s,{align:"center",direction:"row",children:e.jsx(T,{children:"Feedback"})})}),e.jsx(s,{mb:30,children:e.jsx(F,{id:"feedback-message",isTextArea:!0,maxLength:500,name:"message",placeholder:"Leave your feedback here ...",rules:b})}),e.jsx(s,{children:e.jsx(C,{color:"secondary","data-testid":"submit-feedback-btn",disabled:!t,size:"large",type:"submit",variant:"contained",children:"Submit"})})]}),T=i(a)` +import{o as i,j as e,F as s,aW as b,T as a,q as n,O as w,r as m,aa as j}from"./index-f50d1ab5.js";import{B as C,i as S,F as y}from"./index-f857b04d.js";import{B as k}from"./index-cc30c812.js";import{S as v}from"./index-4f7525f2.js";import{T as F}from"./index-bd1e0bc6.js";import"./index.esm-22240fd2.js";import"./InfoIcon-89f3f76d.js";const B=({allowNextStep:t})=>e.jsxs(s,{p:12,children:[e.jsx(s,{align:"center",direction:"row",justify:"space-between",mb:25,children:e.jsx(s,{align:"center",direction:"row",children:e.jsx(T,{children:"Feedback"})})}),e.jsx(s,{mb:30,children:e.jsx(F,{id:"feedback-message",isTextArea:!0,maxLength:500,name:"message",placeholder:"Leave your feedback here ...",rules:b})}),e.jsx(s,{children:e.jsx(C,{color:"secondary","data-testid":"submit-feedback-btn",disabled:!t,size:"large",type:"submit",variant:"contained",children:"Submit"})})]}),T=i(a)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-de7da582.js b/build/assets/index-bd1e0bc6.js similarity index 85% rename from build/assets/index-de7da582.js rename to build/assets/index-bd1e0bc6.js index a0618f5af..9e93381c0 100644 --- a/build/assets/index-de7da582.js +++ b/build/assets/index-bd1e0bc6.js @@ -1,4 +1,4 @@ -import{r as I,h as fe,n as de,o as N,q as S,j as w,F as L,T as pe}from"./index-21067c9d.js";import{g as he,w as ge,x as ve}from"./index-93bc2f63.js";import{e as me}from"./index.esm-9353033f.js";import{I as xe}from"./InfoIcon-473ded19.js";var ee={exports:{}},te={exports:{}},be=function(e,r,t,n,o,i,s,u){if(!e){var f;if(r===void 0)f=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var p=[t,n,o,i,s,u],l=0;f=new Error(r.replace(/%s/g,function(){return p[l++]})),f.name="Invariant Violation"}throw f.framesToPop=1,f}},ke=be;function ne(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var k=I,_=ne(k),Pe=fe,K=ne(ke);function B(){return(B=Object.assign||function(e){for(var r=1;r=0||(o[t]=e[t]);return o}function oe(e){return requestAnimationFrame(e)}function Q(e){cancelAnimationFrame(e)}function R(e){var r=e.ownerDocument;return r.hasFocus()&&r.activeElement===e}function ie(e){return e==null?void 0:e.ownerDocument}function Ee(e){var r=function(t){var n;return(n=ie(t))==null?void 0:n.defaultView}(e);return!!r&&e instanceof r.HTMLElement}function W(e){return k.useCallback(function(){var r=e.current,t=typeof window<"u"&&Ee(r);if(!r||!t)return null;if(r.nodeName!=="INPUT"&&(r=r.querySelector("input")),!r)throw new Error("react-input-mask: inputComponent doesn't contain input node");return r},[e])}function ye(e,r){var t,n,o,i,s=k.useRef({start:null,end:null}),u=W(e),f=k.useCallback(function(){return function(g){var d=g.selectionStart,P=g.selectionEnd;return{start:d,end:P,length:P-d}}(u())},[u]),p=k.useCallback(function(){return s.current},[]),l=k.useCallback(function(g){var d=u();d&&R(d)&&(function(P,y,C){C===void 0&&(C=y),P.setSelectionRange(y,C)}(d,g.start,g.end),s.current=f())},[u,f]),a=k.useCallback(function(){s.current=f()},[f]),c=(t=a,n=k.useRef(null),o=k.useCallback(function(){n.current===null&&function g(){t(),n.current=oe(g)}()},[t]),i=k.useCallback(function(){Q(n.current),n.current=null},[]),k.useEffect(function(){n.current&&(i(),o())},[o,i]),k.useEffect(Q,[]),[o,i]),h=c[0],E=c[1];return k.useLayoutEffect(function(){if(r){var g=u();return g.addEventListener("focus",h),g.addEventListener("blur",E),R(g)&&h(),function(){g.removeEventListener("focus",h),g.removeEventListener("blur",E),E()}}}),{getSelection:f,getLastSelection:p,setSelection:l}}function Ce(e,r){var t=k.useRef(),n=ye(t,r),o=n.getSelection,i=n.getLastSelection,s=n.setSelection,u=function(a,c){var h=W(a),E=k.useRef(c);return{getValue:k.useCallback(function(){return h().value},[h]),getLastValue:k.useCallback(function(){return E.current},[]),setValue:k.useCallback(function(g){E.current=g;var d=h();d&&(d.value=g)},[h])}}(t,e),f=u.getValue,p=u.getLastValue,l=u.setValue;return{inputRef:t,getInputState:function(){return{value:f(),selection:o()}},getLastInputState:function(){return{value:p(),selection:i()}},setInputState:function(a){var c=a.value,h=a.selection;l(c),s(h)}}}var Se=["disabled","onBlur","onChange","onFocus","onMouseDown","readOnly","value"],J={9:/[0-9]/,a:/[A-Za-z]/,"*":/[A-Za-z0-9]/},Fe=function(e){var r=this;this.isCharacterAllowedAtPosition=function(t,n){var o=r.maskOptions.maskPlaceholder;return!!r.isCharacterFillingPosition(t,n)||!!o&&o[n]===t},this.isCharacterFillingPosition=function(t,n){var o=r.maskOptions.mask;if(!t||n>=o.length)return!1;if(!r.isPositionEditable(n))return o[n]===t;var i=o[n];return new RegExp(i).test(t)},this.isPositionEditable=function(t){var n=r.maskOptions,o=n.mask,i=n.permanents;return t=0;i--)if(o(n[i],i))return i;return-1}(t.split(""),function(n,o){return r.isPositionEditable(o)&&r.isCharacterFillingPosition(n,o)})+1},this.getStringFillingLengthAtPosition=function(t,n){return t.split("").reduce(function(o,i){return r.insertCharacterAtPosition(o,i,o.length)},function(o,i){i===void 0&&(i=1);for(var s="",u=0;u=0;n--)if(r.isPositionEditable(n))return n;return null},this.getRightEditablePosition=function(t){for(var n=r.maskOptions.mask,o=t;o=i&&!c?"":a=i?l:c?u?u[a]:"":f[a]}).join("");return r.formatValue(p)},this.insertCharacterAtPosition=function(t,n,o){var i=r.maskOptions,s=i.mask,u=i.maskPlaceholder;if(o>=s.length)return t;var f=r.isCharacterAllowedAtPosition(n,o),p=r.isPositionEditable(o),l=r.getRightEditablePosition(o),a=u&&l?n===u[l]:null,c=t.slice(0,o);return!f&&p||(t=c+(f?n:s[o])),f||p||a||(t=r.insertCharacterAtPosition(t,n,o+1)),t},this.insertStringAtPosition=function(t,n,o){var i=r.maskOptions,s=i.mask,u=i.maskPlaceholder;if(!n||o>=s.length)return t;var f=n.split(""),p=r.isValueFilled(t)||!!u,l=t.slice(o);return t=f.reduce(function(a,c){return r.insertCharacterAtPosition(a,c,a.length)},t.slice(0,o)),p?t+=l.slice(t.length-o):r.isValueFilled(t)?t+=s.slice(t.length).join(""):t=l.split("").filter(function(a,c){return r.isPositionEditable(o+c)}).reduce(function(a,c){var h=r.getRightEditablePosition(a.length);return h===null?a:(r.isPositionEditable(a.length)||(a+=s.slice(a.length,h).join("")),r.insertCharacterAtPosition(a,c,a.length))},t),t},this.processChange=function(t,n){var o=r.maskOptions,i=o.mask,s=o.prefix,u=o.lastEditablePosition,f=t.value,p=t.selection,l=n.value,a=n.selection,c=f,h="",E=0,g=0,d=Math.min(a.start,p.start);return p.end>a.start?(h=c.slice(a.start,p.end),g=(E=r.getStringFillingLengthAtPosition(h,d))?a.length:0):c.length=i.length?d=i.length:d=s.length&&d=0||(o[t]=e[t]);return o}function oe(e){return requestAnimationFrame(e)}function Q(e){cancelAnimationFrame(e)}function R(e){var r=e.ownerDocument;return r.hasFocus()&&r.activeElement===e}function ie(e){return e==null?void 0:e.ownerDocument}function we(e){var r=function(t){var n;return(n=ie(t))==null?void 0:n.defaultView}(e);return!!r&&e instanceof r.HTMLElement}function W(e){return k.useCallback(function(){var r=e.current,t=typeof window<"u"&&we(r);if(!r||!t)return null;if(r.nodeName!=="INPUT"&&(r=r.querySelector("input")),!r)throw new Error("react-input-mask: inputComponent doesn't contain input node");return r},[e])}function ye(e,r){var t,n,o,i,s=k.useRef({start:null,end:null}),u=W(e),f=k.useCallback(function(){return function(g){var d=g.selectionStart,P=g.selectionEnd;return{start:d,end:P,length:P-d}}(u())},[u]),p=k.useCallback(function(){return s.current},[]),l=k.useCallback(function(g){var d=u();d&&R(d)&&(function(P,y,C){C===void 0&&(C=y),P.setSelectionRange(y,C)}(d,g.start,g.end),s.current=f())},[u,f]),a=k.useCallback(function(){s.current=f()},[f]),c=(t=a,n=k.useRef(null),o=k.useCallback(function(){n.current===null&&function g(){t(),n.current=oe(g)}()},[t]),i=k.useCallback(function(){Q(n.current),n.current=null},[]),k.useEffect(function(){n.current&&(i(),o())},[o,i]),k.useEffect(Q,[]),[o,i]),h=c[0],w=c[1];return k.useLayoutEffect(function(){if(r){var g=u();return g.addEventListener("focus",h),g.addEventListener("blur",w),R(g)&&h(),function(){g.removeEventListener("focus",h),g.removeEventListener("blur",w),w()}}}),{getSelection:f,getLastSelection:p,setSelection:l}}function Ce(e,r){var t=k.useRef(),n=ye(t,r),o=n.getSelection,i=n.getLastSelection,s=n.setSelection,u=function(a,c){var h=W(a),w=k.useRef(c);return{getValue:k.useCallback(function(){return h().value},[h]),getLastValue:k.useCallback(function(){return w.current},[]),setValue:k.useCallback(function(g){w.current=g;var d=h();d&&(d.value=g)},[h])}}(t,e),f=u.getValue,p=u.getLastValue,l=u.setValue;return{inputRef:t,getInputState:function(){return{value:f(),selection:o()}},getLastInputState:function(){return{value:p(),selection:i()}},setInputState:function(a){var c=a.value,h=a.selection;l(c),s(h)}}}var Se=["disabled","onBlur","onChange","onFocus","onMouseDown","readOnly","value"],J={9:/[0-9]/,a:/[A-Za-z]/,"*":/[A-Za-z0-9]/},Fe=function(e){var r=this;this.isCharacterAllowedAtPosition=function(t,n){var o=r.maskOptions.maskPlaceholder;return!!r.isCharacterFillingPosition(t,n)||!!o&&o[n]===t},this.isCharacterFillingPosition=function(t,n){var o=r.maskOptions.mask;if(!t||n>=o.length)return!1;if(!r.isPositionEditable(n))return o[n]===t;var i=o[n];return new RegExp(i).test(t)},this.isPositionEditable=function(t){var n=r.maskOptions,o=n.mask,i=n.permanents;return t=0;i--)if(o(n[i],i))return i;return-1}(t.split(""),function(n,o){return r.isPositionEditable(o)&&r.isCharacterFillingPosition(n,o)})+1},this.getStringFillingLengthAtPosition=function(t,n){return t.split("").reduce(function(o,i){return r.insertCharacterAtPosition(o,i,o.length)},function(o,i){i===void 0&&(i=1);for(var s="",u=0;u=0;n--)if(r.isPositionEditable(n))return n;return null},this.getRightEditablePosition=function(t){for(var n=r.maskOptions.mask,o=t;o=i&&!c?"":a=i?l:c?u?u[a]:"":f[a]}).join("");return r.formatValue(p)},this.insertCharacterAtPosition=function(t,n,o){var i=r.maskOptions,s=i.mask,u=i.maskPlaceholder;if(o>=s.length)return t;var f=r.isCharacterAllowedAtPosition(n,o),p=r.isPositionEditable(o),l=r.getRightEditablePosition(o),a=u&&l?n===u[l]:null,c=t.slice(0,o);return!f&&p||(t=c+(f?n:s[o])),f||p||a||(t=r.insertCharacterAtPosition(t,n,o+1)),t},this.insertStringAtPosition=function(t,n,o){var i=r.maskOptions,s=i.mask,u=i.maskPlaceholder;if(!n||o>=s.length)return t;var f=n.split(""),p=r.isValueFilled(t)||!!u,l=t.slice(o);return t=f.reduce(function(a,c){return r.insertCharacterAtPosition(a,c,a.length)},t.slice(0,o)),p?t+=l.slice(t.length-o):r.isValueFilled(t)?t+=s.slice(t.length).join(""):t=l.split("").filter(function(a,c){return r.isPositionEditable(o+c)}).reduce(function(a,c){var h=r.getRightEditablePosition(a.length);return h===null?a:(r.isPositionEditable(a.length)||(a+=s.slice(a.length,h).join("")),r.insertCharacterAtPosition(a,c,a.length))},t),t},this.processChange=function(t,n){var o=r.maskOptions,i=o.mask,s=o.prefix,u=o.lastEditablePosition,f=t.value,p=t.selection,l=n.value,a=n.selection,c=f,h="",w=0,g=0,d=Math.min(a.start,p.start);return p.end>a.start?(h=c.slice(a.start,p.end),g=(w=r.getStringFillingLengthAtPosition(h,d))?a.length:0):c.length=i.length?d=i.length:d=s.length&&dS[e]}; background: transparent; @@ -32,7 +32,7 @@ import{r as I,h as fe,n as de,o as N,q as S,j as w,F as L,T as pe}from"./index-2 -webkit-text-fill-color: ${({placeholderTextColor:e})=>S[e]}; color: ${({placeholderTextColor:e})=>S[e]}; } -`;U.displayName="WebTextInput";const ae=I.forwardRef(({autoComplete:e=O.autoComplete,autoFocus:r,className:t,colorName:n=O.colorName,dataTestId:o,defaultValue:i,disabled:s=O.disabled,id:u,maxLength:f=O.maxLength,name:p,onBlur:l,onChange:a,onFocus:c,onKeyDown:h,placeholder:E=O.placeholder,placeholderTextColor:g=O.placeholderTextColor,textAlign:d=O.textAlign,type:P=O.type,value:y},C)=>{const F=I.useCallback(M=>{a&&a(M.target.value)},[a]);return w.jsx(U,{ref:C,autoComplete:e,autoFocus:r,className:t,colorName:n,"data-testid":o,defaultValue:i,disabled:s,id:u,maxLength:f,name:p,onBlur:l,onChange:F,onFocus:c,onKeyDown:h,placeholder:E,placeholderTextColor:g,textAlign:d,type:P,value:y})});ae.displayName="BaseTextInput";const Me=e=>e.hasError?S.primaryRed:e.hasContent||e.isFocused||e.isHovered?S.primaryBlue:"transparent",Ae=N(L)` +`;U.displayName="WebTextInput";const ae=I.forwardRef(({autoComplete:e=O.autoComplete,autoFocus:r,className:t,colorName:n=O.colorName,dataTestId:o,defaultValue:i,disabled:s=O.disabled,id:u,maxLength:f=O.maxLength,name:p,onBlur:l,onChange:a,onFocus:c,onKeyDown:h,placeholder:w=O.placeholder,placeholderTextColor:g=O.placeholderTextColor,textAlign:d=O.textAlign,type:P=O.type,value:y},C)=>{const F=I.useCallback(M=>{a&&a(M.target.value)},[a]);return E.jsx(U,{ref:C,autoComplete:e,autoFocus:r,className:t,colorName:n,"data-testid":o,defaultValue:i,disabled:s,id:u,maxLength:f,name:p,onBlur:l,onChange:F,onFocus:c,onKeyDown:h,placeholder:w,placeholderTextColor:g,textAlign:d,type:P,value:y})});ae.displayName="BaseTextInput";const Me=e=>e.hasError?S.primaryRed:e.hasContent||e.isFocused||e.isHovered?S.primaryBlue:"transparent",Ae=N(L)` background: ${S.inputBg2}; border-radius: 8px; border: 1px solid ${Me}; @@ -93,4 +93,4 @@ import{r as I,h as fe,n as de,o as N,q as S,j as w,F as L,T as pe}from"./index-2 line-height: 20px; letter-spacing: 0.01em; text-align: left; -`,ze=({id:e,dataTestId:r,label:t,mask:n="",message:o,name:i,rules:s,showMask:u=!1,maskPlaceholder:f=null,isTextArea:p=!1,placeholder:l="",maxLength:a,...c})=>{const{register:h,control:E,formState:{errors:g},getValues:d}=he()||{},P=ge(g,i),y=d(i),[C,F]=I.useState(!1),[M,A]=I.useState(!1);return I.useEffect(()=>{const V=document.getElementById(e);V&&V.focus()},[e]),w.jsxs(L,{shrink:1,children:[w.jsxs(L,{align:"center",direction:"row",children:[t&&w.jsx(Ie,{htmlFor:e,children:t}),o&&w.jsxs(Re,{name:i,role:"tooltip",children:[w.jsx(xe,{}),w.jsx("div",{className:"tooltip",children:o})]})]}),w.jsx(Ae,{hasContent:!!y,hasError:!!P,isFocused:C,isHovered:M,onMouseEnter:()=>A(!0),onMouseLeave:()=>A(!1),children:w.jsx(ve,{control:E,...h(i),render:({field:{onBlur:V,onChange:T,value:D,ref:$}})=>{const{disabled:v=O.disabled,textAlign:m=O.textAlign}=c;return p?w.jsx(Te,{ref:$,"data-testid":r,disabled:v,id:e,maxLength:a,onBlur:()=>{F(!1),V()},onChange:T,onFocus:()=>F(!0),placeholder:l,value:D||""}):n?w.jsx(Le,{alwaysShowMask:u,disabled:!1,inputRef:$,mask:n,...h(i),maskPlaceholder:f,onBlur:V,onChange:T,value:D,children:w.jsx(U,{colorName:"white","data-testid":r,disabled:v,...h(i),id:e,onBlur:()=>F(!1),onFocus:()=>F(!0),placeholderTextColor:"inputPlaceholder",textAlign:m})}):w.jsx(ae,{...c,colorName:"white",dataTestId:r,id:e,...h(i),onBlur:()=>{F(!1),V()},onChange:T,onFocus:()=>F(!0),placeholder:l,placeholderTextColor:"inputPlaceholder",value:D||""})},rules:s})}),P&&w.jsx(L,{pl:4,pt:8,shrink:1,tabIndex:0,children:w.jsx(pe,{color:"primaryRed",kind:"regularBold",children:w.jsxs(L,{align:"center",direction:"row",shrink:1,children:[w.jsx(me,{fontSize:18}),w.jsx(L,{pl:4,shrink:1,children:P.message!==""?P.message:"Please enter a valid URL"})]})})})]})};export{ae as B,ze as T}; +`,ze=({id:e,dataTestId:r,label:t,mask:n="",message:o,name:i,rules:s,showMask:u=!1,maskPlaceholder:f=null,isTextArea:p=!1,placeholder:l="",maxLength:a,...c})=>{const{register:h,control:w,formState:{errors:g},getValues:d}=he()||{},P=ge(g,i),y=d(i),[C,F]=I.useState(!1),[M,A]=I.useState(!1);return I.useEffect(()=>{const V=document.getElementById(e);V&&V.focus()},[e]),E.jsxs(L,{shrink:1,children:[E.jsxs(L,{align:"center",direction:"row",children:[t&&E.jsx(Ie,{htmlFor:e,children:t}),o&&E.jsxs(Re,{name:i,role:"tooltip",children:[E.jsx(xe,{}),E.jsx("div",{className:"tooltip",children:o})]})]}),E.jsx(Ae,{hasContent:!!y,hasError:!!P,isFocused:C,isHovered:M,onMouseEnter:()=>A(!0),onMouseLeave:()=>A(!1),children:E.jsx(ve,{control:w,...h(i),render:({field:{onBlur:V,onChange:T,value:D,ref:$}})=>{const{disabled:v=O.disabled,textAlign:m=O.textAlign}=c;return p?E.jsx(Te,{ref:$,"data-testid":r,disabled:v,id:e,maxLength:a,onBlur:()=>{F(!1),V()},onChange:T,onFocus:()=>F(!0),placeholder:l,value:D||""}):n?E.jsx(Le,{alwaysShowMask:u,disabled:!1,inputRef:$,mask:n,...h(i),maskPlaceholder:f,onBlur:V,onChange:T,value:D,children:E.jsx(U,{colorName:"white","data-testid":r,disabled:v,...h(i),id:e,onBlur:()=>F(!1),onFocus:()=>F(!0),placeholderTextColor:"inputPlaceholder",textAlign:m})}):E.jsx(ae,{...c,colorName:"white",dataTestId:r,id:e,...h(i),onBlur:()=>{F(!1),V()},onChange:T,onFocus:()=>F(!0),placeholder:l,placeholderTextColor:"inputPlaceholder",value:D||""})},rules:s})}),P&&E.jsx(L,{pl:4,pt:8,shrink:1,tabIndex:0,children:E.jsx(pe,{color:"primaryRed",kind:"regularBold",children:E.jsxs(L,{align:"center",direction:"row",shrink:1,children:[E.jsx(me,{fontSize:18}),E.jsx(L,{pl:4,shrink:1,children:P.message!==""?P.message:"Please enter a valid URL"})]})})})]})};export{ae as B,ze as T}; diff --git a/build/assets/index-ac3ebd0e.js b/build/assets/index-bd349272.js similarity index 53% rename from build/assets/index-ac3ebd0e.js rename to build/assets/index-bd349272.js index d76ec06be..c49920da3 100644 --- a/build/assets/index-ac3ebd0e.js +++ b/build/assets/index-bd349272.js @@ -1,4 +1,4 @@ -import{r,j as e,bf as F,a8 as O,F as h,bg as E,o as l,T as k,O as I,y as A,q as T,bh as N}from"./index-21067c9d.js";import{B as z}from"./index-54401641.js";import{j as D,h as M,F as Y,B as P}from"./index-93bc2f63.js";import{S as X,A as G,N as H,F as R,b as q}from"./NodeCircleIcon-a8e305b7.js";import{A as L,O as V,T as W}from"./index-f870d337.js";import{C as _}from"./ClipLoader-19a8277d.js";import"./index-aac659dd.js";import"./Stack-dbe00046.js";import"./useSlotProps-f54e8b6d.js";import"./Popover-8ff60b97.js";import"./createSvgIcon-b719273b.js";import"./TextareaAutosize-9f8d1e37.js";const $=({selectedType:t,setSelectedType:c})=>{const[p,d]=r.useState([]);r.useEffect(()=>{(async()=>{try{const{data:x}=await F();d(x.edge_types)}catch(x){console.warn(x)}})()},[d]);const a=o=>({label:o,value:o}),f=o=>{c((o==null?void 0:o.value)||"")};return e.jsx(L,{onSelect:f,options:p.map(a),selectedValue:t?a(t):null})},J=({onSelect:t,selectedValue:c,topicId:p})=>{const[d,a]=r.useState([]),[f,o]=r.useState(!1),x=r.useMemo(()=>{const s=async u=>{const i={is_muted:"False",sort_by:G,search:u,skip:"0",limit:"1000"};o(!0);try{const w=(await E(i.search)).data.filter(y=>(y==null?void 0:y.ref_id)!==p);a(w)}catch{a([])}finally{o(!1)}};return O.debounce(s,300)},[p]),b=s=>{const u=s.trim();if(!u){a([]);return}u.length>2&&x(s)},j=s=>{const u=s?d.find(i=>i.ref_id===s.value):null;t(u||null)},n=s=>({label:s.search_value,value:s.ref_id,type:s.node_type}),v=s=>s.map(n);return c?e.jsxs(h,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:c.search_value}),e.jsx(X,{onClick:()=>t(null),size:"medium",children:e.jsx(D,{})})]}):e.jsx(L,{handleInputChange:b,isLoading:f,onSelect:j,options:v(d)||V,selectedValue:c?n(c):null})},K=({from:t,onSelect:c,selectedType:p,setSelectedType:d,selectedToNode:a,setIsSwapped:f,isSwapped:o})=>{const x=()=>{f()},b=t&&("search_value"in t?t.search_value:t.name);return e.jsxs(h,{mb:20,children:[e.jsx(h,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(h,{align:"center",direction:"row",children:e.jsx(U,{children:"Add Edge"})})}),e.jsxs(Z,{swap:o,children:[e.jsx(h,{children:e.jsx(ee,{disabled:!0,label:o?"To":"From",swap:o,value:b})}),e.jsxs(h,{my:16,children:[e.jsx(oe,{children:"Type"}),e.jsx($,{selectedType:p,setSelectedType:d})]}),e.jsx(h,{children:e.jsxs(te,{children:[e.jsx(se,{children:o?"From":"To"}),e.jsx(J,{onSelect:c,selectedValue:a,topicId:t==null?void 0:t.ref_id})]})}),e.jsxs(Q,{children:[e.jsx(ne,{children:e.jsx(H,{})}),e.jsx(ae,{onClick:x,children:e.jsx(R,{})}),e.jsx(ie,{children:e.jsx(q,{})})]})]})]})},Q=l.div` +import{r,j as e,bf as F,a8 as O,F as h,bg as E,o as l,T as k,O as I,y as A,q as T,bh as N}from"./index-f50d1ab5.js";import{B as z}from"./index-cc30c812.js";import{k as D,i as M,F as Y,B as P}from"./index-f857b04d.js";import{S as X,A as G,N as H,F as R,b as q}from"./NodeCircleIcon-b9d0958d.js";import{A as L,O as V,T as W}from"./index-f812334e.js";import{C as _}from"./ClipLoader-f52b169b.js";import"./Stack-a4065033.js";import"./useSlotProps-f1483ce3.js";import"./Popover-a7534715.js";import"./createSvgIcon-c64a52be.js";import"./TextareaAutosize-04e2890c.js";const $=({selectedType:t,setSelectedType:c})=>{const[p,d]=r.useState([]);r.useEffect(()=>{(async()=>{try{const{data:x}=await F();d(x.edge_types)}catch(x){console.warn(x)}})()},[d]);const a=o=>({label:o,value:o}),f=o=>{c((o==null?void 0:o.value)||"")};return e.jsx(L,{onSelect:f,options:p.map(a),selectedValue:t?a(t):null})},J=({onSelect:t,selectedValue:c,topicId:p})=>{const[d,a]=r.useState([]),[f,o]=r.useState(!1),x=r.useMemo(()=>{const s=async u=>{const i={is_muted:"False",sort_by:G,search:u,skip:"0",limit:"1000"};o(!0);try{const w=(await E(i.search)).data.filter(y=>(y==null?void 0:y.ref_id)!==p);a(w)}catch{a([])}finally{o(!1)}};return O.debounce(s,300)},[p]),b=s=>{const u=s.trim();if(!u){a([]);return}u.length>2&&x(s)},j=s=>{const u=s?d.find(i=>i.ref_id===s.value):null;t(u||null)},n=s=>({label:s.search_value,value:s.ref_id,type:s.node_type}),v=s=>s.map(n);return c?e.jsxs(h,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:c.search_value}),e.jsx(X,{onClick:()=>t(null),size:"medium",children:e.jsx(D,{})})]}):e.jsx(L,{handleInputChange:b,isLoading:f,onSelect:j,options:v(d)||V,selectedValue:c?n(c):null})},K=({from:t,onSelect:c,selectedType:p,setSelectedType:d,selectedToNode:a,setIsSwapped:f,isSwapped:o})=>{const x=()=>{f()},b=t&&("search_value"in t?t.search_value:t.name);return e.jsxs(h,{mb:20,children:[e.jsx(h,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(h,{align:"center",direction:"row",children:e.jsx(U,{children:"Add Edge"})})}),e.jsxs(Z,{swap:o,children:[e.jsx(h,{children:e.jsx(ee,{disabled:!0,label:o?"To":"From",swap:o,value:b})}),e.jsxs(h,{my:16,children:[e.jsx(oe,{children:"Type"}),e.jsx($,{selectedType:p,setSelectedType:d})]}),e.jsx(h,{children:e.jsxs(te,{children:[e.jsx(se,{children:o?"From":"To"}),e.jsx(J,{onSelect:c,selectedValue:a,topicId:t==null?void 0:t.ref_id})]})}),e.jsxs(Q,{children:[e.jsx(ne,{children:e.jsx(H,{})}),e.jsx(ae,{onClick:x,children:e.jsx(R,{})}),e.jsx(ie,{children:e.jsx(q,{})})]})]})]})},Q=l.div` position: absolute; top: 26px; bottom: 26px; @@ -89,4 +89,4 @@ import{r,j as e,bf as F,a8 as O,F as h,bg as E,o as l,T as k,O as I,y as A,q as margin: 0 0 10px auto !important; `,ce=l.span` margin-top: 2px; -`,Se=()=>{const{close:t}=I("addEdgeToNode");return e.jsx(z,{id:"addEdgeToNode",kind:"small",onClose:t,preventOutsideClose:!0,children:e.jsx(re,{})})};export{Se as AddNodeEdgeModal}; +`,ve=()=>{const{close:t}=I("addEdgeToNode");return e.jsx(z,{id:"addEdgeToNode",kind:"small",onClose:t,preventOutsideClose:!0,children:e.jsx(re,{})})};export{ve as AddNodeEdgeModal}; diff --git a/build/assets/index-54401641.js b/build/assets/index-cc30c812.js similarity index 91% rename from build/assets/index-54401641.js rename to build/assets/index-cc30c812.js index 8a21c635c..319ec4442 100644 --- a/build/assets/index-54401641.js +++ b/build/assets/index-cc30c812.js @@ -1,4 +1,4 @@ -import{ai as m,o as s,q as r,ah as o,F as d,O as w,r as y,j as e}from"./index-21067c9d.js";import{j as v}from"./index-93bc2f63.js";const j=m` +import{ai as m,o as s,q as r,ah as o,F as d,O as w,r as y,j as e}from"./index-f50d1ab5.js";import{k as v}from"./index-f857b04d.js";const k=m` 0% { transform: scale(0.8); } @@ -6,7 +6,7 @@ import{ai as m,o as s,q as r,ah as o,F as d,O as w,r as y,j as e}from"./index-21 100% { transform: scale(1); } -`,k=({kind:a="regular"})=>{switch(a){case"small":return o` +`,j=({kind:a="regular"})=>{switch(a){case"small":return o` width: 370px; `;case"large":return o` width: 709px; @@ -18,12 +18,12 @@ import{ai as m,o as s,q as r,ah as o,F as d,O as w,r as y,j as e}from"./index-21 `}},b=s(d)` z-index: 2000; margin: 0 auto; - animation: ${j} 0.2s ease-in-out; + animation: ${k} 0.2s ease-in-out; position: relative; max-width: 100%; overflow: visible; background: ${r}; - ${k}; + ${j}; @media (max-width: 1024px) { height: auto; diff --git a/build/assets/index-06d04bb9.js b/build/assets/index-ce0a9014.js similarity index 98% rename from build/assets/index-06d04bb9.js rename to build/assets/index-ce0a9014.js index 812da84e4..60abdbef7 100644 --- a/build/assets/index-06d04bb9.js +++ b/build/assets/index-ce0a9014.js @@ -1,4 +1,4 @@ -import{j as e,O as i,Q as y,K as H,B as M,C as d,J as S,U as F,T as o,o as a,q as s,F as l}from"./index-21067c9d.js";import{A as Z}from"./AddContentIcon-790a0995.js";import{C as A}from"./index-93bc2f63.js";const B=t=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_1259_27",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:e.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),e.jsx("g",{mask:"url(#mask0_1259_27)",children:e.jsx("path",{d:"M5.30773 20.5C4.81061 20.5 4.38506 20.3229 4.03106 19.9689C3.67704 19.6149 3.50003 19.1894 3.50003 18.6923V5.3077C3.50003 4.81058 3.67704 4.38503 4.03106 4.03103C4.38506 3.67701 4.81061 3.5 5.30773 3.5H18.6923C19.1894 3.5 19.615 3.67701 19.969 4.03103C20.323 4.38503 20.5 4.81058 20.5 5.3077V11.6327C20.2538 11.5275 20.0074 11.4384 19.7606 11.3654C19.5138 11.2923 19.2603 11.234 19 11.1904V5.3077C19 5.23077 18.968 5.16024 18.9039 5.09613C18.8397 5.03203 18.7692 4.99998 18.6923 4.99998H5.30773C5.2308 4.99998 5.16027 5.03203 5.09616 5.09613C5.03206 5.16024 5.00001 5.23077 5.00001 5.3077V18.6923C5.00001 18.7692 5.03206 18.8397 5.09616 18.9038C5.16027 18.9679 5.2308 19 5.30773 19H11.1654C11.2026 19.2769 11.2577 19.5387 11.3308 19.7855C11.4038 20.0323 11.4929 20.2705 11.5981 20.5H5.30773ZM5.00001 19V4.99998V11.1904V11.1154V19ZM7.25003 15.8849C7.25003 16.0975 7.32191 16.2756 7.46566 16.4192C7.60939 16.5628 7.78751 16.6346 8.00001 16.6346H11.2673C11.3109 16.3743 11.3757 16.1208 11.4616 15.874C11.5475 15.6272 11.641 15.3808 11.7423 15.1346H8.00001C7.78751 15.1346 7.60939 15.2065 7.46566 15.3503C7.32191 15.4941 7.25003 15.6723 7.25003 15.8849ZM7.25003 12.0003C7.25003 12.2129 7.32191 12.391 7.46566 12.5346C7.60939 12.6782 7.78751 12.75 8.00001 12.75H13.5904C14.0212 12.3846 14.4808 12.0785 14.9692 11.8317C15.4577 11.5849 15.9807 11.4096 16.5384 11.3058C16.4259 11.281 16.3009 11.2655 16.1634 11.2593C16.0259 11.2531 15.901 11.25 15.7885 11.25H8.00001C7.78751 11.25 7.60939 11.3219 7.46566 11.4657C7.32191 11.6095 7.25003 11.7877 7.25003 12.0003ZM7.25003 8.1157C7.25003 8.3283 7.32191 8.50639 7.46566 8.64998C7.60939 8.79356 7.78751 8.86535 8.00001 8.86535H16C16.2125 8.86535 16.3906 8.79344 16.5344 8.64963C16.6781 8.50583 16.75 8.32763 16.75 8.11503C16.75 7.90244 16.6781 7.72436 16.5344 7.58078C16.3906 7.43718 16.2125 7.36538 16 7.36538H8.00001C7.78751 7.36538 7.60939 7.43728 7.46566 7.5811C7.32191 7.72492 7.25003 7.90312 7.25003 8.1157ZM18 22.5576C16.7513 22.5576 15.6891 22.1198 14.8135 21.2442C13.9378 20.3685 13.5 19.3064 13.5 18.0577C13.5 16.809 13.9378 15.7468 14.8135 14.8712C15.6891 13.9955 16.7513 13.5577 18 13.5577C19.2487 13.5577 20.3109 13.9955 21.1865 14.8712C22.0622 15.7468 22.5 16.809 22.5 18.0577C22.5 19.3064 22.0622 20.3685 21.1865 21.2442C20.3109 22.1198 19.2487 22.5576 18 22.5576ZM17.5577 18.5V20.5577C17.5577 20.6756 17.6019 20.7788 17.6904 20.8673C17.7788 20.9557 17.8821 21 18 21C18.118 21 18.2212 20.9557 18.3096 20.8673C18.3981 20.7788 18.4423 20.6756 18.4423 20.5577V18.5H20.5C20.618 18.5 20.7212 18.4557 20.8096 18.3673C20.8981 18.2788 20.9423 18.1756 20.9423 18.0577C20.9423 17.9397 20.8981 17.8365 20.8096 17.748C20.7212 17.6596 20.618 17.6154 20.5 17.6154H18.4423V15.5577C18.4423 15.4397 18.3981 15.3365 18.3096 15.2481C18.2212 15.1596 18.118 15.1154 18 15.1154C17.8821 15.1154 17.7788 15.1596 17.6904 15.2481C17.6019 15.3365 17.5577 15.4397 17.5577 15.5577V17.6154H15.5C15.3821 17.6154 15.2788 17.6596 15.1904 17.748C15.1019 17.8365 15.0577 17.9397 15.0577 18.0577C15.0577 18.1756 15.1019 18.2788 15.1904 18.3673C15.2788 18.4557 15.3821 18.5 15.5 18.5H17.5577Z",fill:"currentColor"})})]}),I=t=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 25 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.8553 2.95196L15.3555 5.30477C15.2095 5.44218 15.1081 5.62031 15.0647 5.81603L14.52 8.26717H7.41204C6.80549 8.26717 6.31378 8.75888 6.31378 9.36543C6.31378 9.97198 6.80549 10.4637 7.41204 10.4637H15.0998C15.1427 10.4637 15.185 10.4612 15.2266 10.4564C15.2442 10.4574 15.2619 10.4578 15.2798 10.4578H18.6054C18.8441 10.4578 19.0749 10.3724 19.2562 10.2171L21.3582 8.41535C21.5744 9.252 21.6894 10.1293 21.6894 11.0336C21.6894 16.7958 17.0182 21.467 11.256 21.467C9.70613 21.467 8.23523 21.1291 6.91291 20.5229L1.57616 21.8571C1.20996 21.9486 0.878268 21.6169 0.969816 21.2508L2.21945 16.2522C1.33102 14.7172 0.82251 12.9347 0.82251 11.0336C0.82251 5.27132 5.49373 0.600098 11.256 0.600098C13.7596 0.600098 16.0573 1.48194 17.8553 2.95196ZM7.41204 12.6603C6.80549 12.6603 6.31378 13.152 6.31378 13.7586C6.31378 14.3651 6.80549 14.8568 7.41204 14.8568H11.8051C12.4116 14.8568 12.9033 14.3651 12.9033 13.7586C12.9033 13.152 12.4116 12.6603 11.8051 12.6603H7.41204ZM22.1006 1.12041L16.3757 6.84529C16.3348 6.88621 16.3066 6.93809 16.2945 6.99468L15.9135 8.77616C15.868 8.98885 16.0569 9.17774 16.2696 9.13226L18.0511 8.75129C18.1077 8.73919 18.1596 8.71098 18.2005 8.67006L23.9254 2.94518C24.0425 2.82803 24.0425 2.63808 23.9254 2.52092L22.5249 1.12041C22.4077 1.00325 22.2178 1.00325 22.1006 1.12041Z",fill:"currentColor"})}),V=t=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_1259_29",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:e.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),e.jsx("g",{mask:"url(#mask0_1259_29)",children:e.jsx("path",{d:"M13.5096 21.5H10.4808C10.2564 21.5 10.0622 21.4246 9.8981 21.274C9.734 21.1233 9.63528 20.9358 9.60195 20.7115L9.31157 18.4538C9.04362 18.3641 8.76894 18.2384 8.48752 18.0769C8.2061 17.9153 7.9545 17.7422 7.7327 17.5576L5.64425 18.4384C5.43015 18.5217 5.21765 18.5301 5.00675 18.4634C4.79585 18.3967 4.63014 18.2647 4.50962 18.0673L3.00582 15.4481C2.8853 15.2506 2.84845 15.0397 2.89525 14.8154C2.94203 14.591 3.0558 14.4102 3.23657 14.2731L5.04427 12.9058C5.02119 12.757 5.00484 12.6077 4.99522 12.4577C4.9856 12.3077 4.9808 12.1583 4.9808 12.0096C4.9808 11.8673 4.9856 11.7227 4.99522 11.5759C5.00484 11.4291 5.02119 11.2686 5.04427 11.0942L3.23657 9.72688C3.0558 9.58971 2.94203 9.40894 2.89525 9.18458C2.84845 8.96023 2.8853 8.74934 3.00582 8.5519L4.50962 5.95195C4.61989 5.74425 4.78143 5.60963 4.99425 5.5481C5.20706 5.48657 5.42052 5.49747 5.63462 5.5808L7.72307 6.45195C7.9641 6.26092 8.22148 6.08623 8.4952 5.9279C8.76893 5.76955 9.03785 5.6423 9.30195 5.54615L9.60195 3.28848C9.63528 3.06411 9.734 2.87661 9.8981 2.72598C10.0622 2.57533 10.2564 2.5 10.4808 2.5H13.5096C13.7339 2.5 13.9298 2.57533 14.0971 2.72598C14.2644 2.87661 14.3647 3.06411 14.398 3.28848L14.6884 5.55578C14.9884 5.66474 15.2599 5.79198 15.5029 5.9375C15.7458 6.08302 15.991 6.2545 16.2384 6.45195L18.3654 5.5808C18.5795 5.49747 18.7904 5.48753 18.998 5.55098C19.2057 5.61444 19.3699 5.74489 19.4904 5.94233L20.9942 8.5519C21.1147 8.74934 21.1515 8.96023 21.1047 9.18458C21.058 9.40894 20.9442 9.58971 20.7634 9.72688L18.9173 11.123C18.9532 11.2846 18.9727 11.4355 18.9759 11.5759C18.9791 11.7163 18.9807 11.8577 18.9807 12C18.9807 12.1359 18.9775 12.274 18.9711 12.4144C18.9647 12.5548 18.9416 12.7154 18.9019 12.8962L20.7288 14.2731C20.916 14.4038 21.0314 14.583 21.0749 14.8106C21.1185 15.0381 21.0801 15.2506 20.9596 15.4481L19.4557 18.0519C19.3352 18.2493 19.167 18.3823 18.9509 18.4509C18.7349 18.5195 18.5198 18.5121 18.3057 18.4288L16.2384 17.548C15.991 17.7455 15.7384 17.9201 15.4807 18.0721C15.223 18.224 14.9589 18.348 14.6884 18.4442L14.398 20.7115C14.3647 20.9358 14.2644 21.1233 14.0971 21.274C13.9298 21.4246 13.7339 21.5 13.5096 21.5ZM12.0115 15C12.8436 15 13.5516 14.708 14.1355 14.124C14.7195 13.54 15.0115 12.832 15.0115 12C15.0115 11.1679 14.7195 10.4599 14.1355 9.87595C13.5516 9.29198 12.8436 9 12.0115 9C11.1692 9 10.4587 9.29198 9.87982 9.87595C9.30099 10.4599 9.01157 11.1679 9.01157 12C9.01157 12.832 9.30099 13.54 9.87982 14.124C10.4587 14.708 11.1692 15 12.0115 15Z",fill:"currentColor"})})]}),_=t=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_1259_26",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:e.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),e.jsx("g",{mask:"url(#mask0_1259_26)",children:e.jsx("path",{d:"M10.0577 18.7499C9.84521 18.7499 9.66708 18.678 9.52333 18.5342C9.3796 18.3904 9.30773 18.2122 9.30773 17.9996C9.30773 17.787 9.3796 17.609 9.52333 17.4654C9.66708 17.3218 9.84521 17.25 10.0577 17.25H19.75C19.9625 17.25 20.1406 17.3219 20.2844 17.4657C20.4281 17.6095 20.5 17.7877 20.5 18.0003C20.5 18.2129 20.4281 18.391 20.2844 18.5346C20.1406 18.6782 19.9625 18.7499 19.75 18.7499H10.0577ZM10.0577 12.7499C9.84521 12.7499 9.66708 12.678 9.52333 12.5342C9.3796 12.3904 9.30773 12.2122 9.30773 11.9996C9.30773 11.787 9.3796 11.609 9.52333 11.4654C9.66708 11.3218 9.84521 11.25 10.0577 11.25H19.75C19.9625 11.25 20.1406 11.3219 20.2844 11.4657C20.4281 11.6095 20.5 11.7877 20.5 12.0003C20.5 12.2129 20.4281 12.391 20.2844 12.5346C20.1406 12.6782 19.9625 12.7499 19.75 12.7499H10.0577ZM10.0577 6.74995C9.84521 6.74995 9.66708 6.67805 9.52333 6.53425C9.3796 6.39043 9.30773 6.21223 9.30773 5.99965C9.30773 5.78705 9.3796 5.60896 9.52333 5.46537C9.66708 5.32179 9.84521 5.25 10.0577 5.25H19.75C19.9625 5.25 20.1406 5.3219 20.2844 5.4657C20.4281 5.60951 20.5 5.78771 20.5 6.0003C20.5 6.2129 20.4281 6.39099 20.2844 6.53457C20.1406 6.67816 19.9625 6.74995 19.75 6.74995H10.0577ZM5.16348 19.6634C4.70603 19.6634 4.31443 19.5005 3.98868 19.1748C3.66291 18.849 3.50003 18.4574 3.50003 18C3.50003 17.5425 3.66291 17.1509 3.98868 16.8252C4.31443 16.4994 4.70603 16.3365 5.16348 16.3365C5.62093 16.3365 6.01253 16.4994 6.33828 16.8252C6.66403 17.1509 6.82691 17.5425 6.82691 18C6.82691 18.4574 6.66403 18.849 6.33828 19.1748C6.01253 19.5005 5.62093 19.6634 5.16348 19.6634ZM5.16348 13.6634C4.70603 13.6634 4.31443 13.5005 3.98868 13.1748C3.66291 12.849 3.50003 12.4574 3.50003 12C3.50003 11.5425 3.66291 11.1509 3.98868 10.8252C4.31443 10.4994 4.70603 10.3365 5.16348 10.3365C5.62093 10.3365 6.01253 10.4994 6.33828 10.8252C6.66403 11.1509 6.82691 11.5425 6.82691 12C6.82691 12.4574 6.66403 12.849 6.33828 13.1748C6.01253 13.5005 5.62093 13.6634 5.16348 13.6634ZM5.16348 7.6634C4.70603 7.6634 4.31443 7.50052 3.98868 7.17477C3.66291 6.84902 3.50003 6.45742 3.50003 5.99997C3.50003 5.54252 3.66291 5.15092 3.98868 4.82517C4.31443 4.49942 4.70603 4.33655 5.16348 4.33655C5.62093 4.33655 6.01253 4.49942 6.33828 4.82517C6.66403 5.15092 6.82691 5.54252 6.82691 5.99997C6.82691 6.45742 6.66403 6.84902 6.33828 7.17477C6.01253 7.50052 5.62093 7.6634 5.16348 7.6634Z",fill:"currentColor"})})]}),D=()=>{const{open:t}=i("sourcesTable"),{open:h}=i("addItem"),{open:p}=i("addContent"),{open:x}=i("settings"),{open:u}=i("blueprintGraph"),{open:m}=i("feedback"),g=y(),{resetAiSummaryAnswer:j,setNewLoading:b}=H(),{abortFetchData:w}=M(n=>n),k=d(n=>n.customSchemaFeatureFlag),f=d(n=>n.userFeedbackFeatureFlag),[c]=S(n=>[n.isAdmin]),L=F(),v=()=>{b(null),w(),j(),g("/")};return e.jsxs($,{children:[e.jsx(U,{onClick:v,children:e.jsx("img",{alt:"Second brain",src:"logo.svg"})}),c?e.jsxs(C,{"data-testid":"add-item-modal",onClick:h,children:[e.jsx(r,{children:e.jsx(B,{})}),e.jsx(o,{children:"Add Item"})]}):null,e.jsxs(C,{"data-testid":"add-content-modal",onClick:p,children:[e.jsx(r,{children:e.jsx(Z,{})}),e.jsx(o,{children:"Add Content"})]}),e.jsxs(C,{id:"cy-open-soure-table",onClick:t,children:[e.jsx(r,{children:e.jsx(_,{})}),e.jsx(o,{children:"Source Table"})]}),k&&c?e.jsxs(C,{"data-testid":"add-blueprint-modal",id:"cy-open-soure-table",onClick:u,children:[e.jsx(r,{children:e.jsx(A,{})}),e.jsx(o,{children:"Blueprint"})]}):null,e.jsxs(C,{"data-testid":"settings-modal",onClick:x,children:[e.jsx(r,{children:e.jsx(V,{})}),e.jsx(o,{children:"Settings"})]}),f&&L?e.jsxs(T,{"data-testid":"feedback-modal",onClick:m,children:[e.jsx(r,{children:e.jsx(I,{})}),e.jsx(o,{children:"Send Feedback"})]}):null]})},$=a(l).attrs({align:"flex-start",direction:"column",justify:"flex-start"})` +import{j as e,O as i,Q as y,K as H,B as M,C as d,J as S,U as F,T as o,o as a,q as s,F as l}from"./index-f50d1ab5.js";import{A as Z}from"./AddContentIcon-60d5e19c.js";import{C as A}from"./index-f857b04d.js";const B=t=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_1259_27",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:e.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),e.jsx("g",{mask:"url(#mask0_1259_27)",children:e.jsx("path",{d:"M5.30773 20.5C4.81061 20.5 4.38506 20.3229 4.03106 19.9689C3.67704 19.6149 3.50003 19.1894 3.50003 18.6923V5.3077C3.50003 4.81058 3.67704 4.38503 4.03106 4.03103C4.38506 3.67701 4.81061 3.5 5.30773 3.5H18.6923C19.1894 3.5 19.615 3.67701 19.969 4.03103C20.323 4.38503 20.5 4.81058 20.5 5.3077V11.6327C20.2538 11.5275 20.0074 11.4384 19.7606 11.3654C19.5138 11.2923 19.2603 11.234 19 11.1904V5.3077C19 5.23077 18.968 5.16024 18.9039 5.09613C18.8397 5.03203 18.7692 4.99998 18.6923 4.99998H5.30773C5.2308 4.99998 5.16027 5.03203 5.09616 5.09613C5.03206 5.16024 5.00001 5.23077 5.00001 5.3077V18.6923C5.00001 18.7692 5.03206 18.8397 5.09616 18.9038C5.16027 18.9679 5.2308 19 5.30773 19H11.1654C11.2026 19.2769 11.2577 19.5387 11.3308 19.7855C11.4038 20.0323 11.4929 20.2705 11.5981 20.5H5.30773ZM5.00001 19V4.99998V11.1904V11.1154V19ZM7.25003 15.8849C7.25003 16.0975 7.32191 16.2756 7.46566 16.4192C7.60939 16.5628 7.78751 16.6346 8.00001 16.6346H11.2673C11.3109 16.3743 11.3757 16.1208 11.4616 15.874C11.5475 15.6272 11.641 15.3808 11.7423 15.1346H8.00001C7.78751 15.1346 7.60939 15.2065 7.46566 15.3503C7.32191 15.4941 7.25003 15.6723 7.25003 15.8849ZM7.25003 12.0003C7.25003 12.2129 7.32191 12.391 7.46566 12.5346C7.60939 12.6782 7.78751 12.75 8.00001 12.75H13.5904C14.0212 12.3846 14.4808 12.0785 14.9692 11.8317C15.4577 11.5849 15.9807 11.4096 16.5384 11.3058C16.4259 11.281 16.3009 11.2655 16.1634 11.2593C16.0259 11.2531 15.901 11.25 15.7885 11.25H8.00001C7.78751 11.25 7.60939 11.3219 7.46566 11.4657C7.32191 11.6095 7.25003 11.7877 7.25003 12.0003ZM7.25003 8.1157C7.25003 8.3283 7.32191 8.50639 7.46566 8.64998C7.60939 8.79356 7.78751 8.86535 8.00001 8.86535H16C16.2125 8.86535 16.3906 8.79344 16.5344 8.64963C16.6781 8.50583 16.75 8.32763 16.75 8.11503C16.75 7.90244 16.6781 7.72436 16.5344 7.58078C16.3906 7.43718 16.2125 7.36538 16 7.36538H8.00001C7.78751 7.36538 7.60939 7.43728 7.46566 7.5811C7.32191 7.72492 7.25003 7.90312 7.25003 8.1157ZM18 22.5576C16.7513 22.5576 15.6891 22.1198 14.8135 21.2442C13.9378 20.3685 13.5 19.3064 13.5 18.0577C13.5 16.809 13.9378 15.7468 14.8135 14.8712C15.6891 13.9955 16.7513 13.5577 18 13.5577C19.2487 13.5577 20.3109 13.9955 21.1865 14.8712C22.0622 15.7468 22.5 16.809 22.5 18.0577C22.5 19.3064 22.0622 20.3685 21.1865 21.2442C20.3109 22.1198 19.2487 22.5576 18 22.5576ZM17.5577 18.5V20.5577C17.5577 20.6756 17.6019 20.7788 17.6904 20.8673C17.7788 20.9557 17.8821 21 18 21C18.118 21 18.2212 20.9557 18.3096 20.8673C18.3981 20.7788 18.4423 20.6756 18.4423 20.5577V18.5H20.5C20.618 18.5 20.7212 18.4557 20.8096 18.3673C20.8981 18.2788 20.9423 18.1756 20.9423 18.0577C20.9423 17.9397 20.8981 17.8365 20.8096 17.748C20.7212 17.6596 20.618 17.6154 20.5 17.6154H18.4423V15.5577C18.4423 15.4397 18.3981 15.3365 18.3096 15.2481C18.2212 15.1596 18.118 15.1154 18 15.1154C17.8821 15.1154 17.7788 15.1596 17.6904 15.2481C17.6019 15.3365 17.5577 15.4397 17.5577 15.5577V17.6154H15.5C15.3821 17.6154 15.2788 17.6596 15.1904 17.748C15.1019 17.8365 15.0577 17.9397 15.0577 18.0577C15.0577 18.1756 15.1019 18.2788 15.1904 18.3673C15.2788 18.4557 15.3821 18.5 15.5 18.5H17.5577Z",fill:"currentColor"})})]}),I=t=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 25 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.8553 2.95196L15.3555 5.30477C15.2095 5.44218 15.1081 5.62031 15.0647 5.81603L14.52 8.26717H7.41204C6.80549 8.26717 6.31378 8.75888 6.31378 9.36543C6.31378 9.97198 6.80549 10.4637 7.41204 10.4637H15.0998C15.1427 10.4637 15.185 10.4612 15.2266 10.4564C15.2442 10.4574 15.2619 10.4578 15.2798 10.4578H18.6054C18.8441 10.4578 19.0749 10.3724 19.2562 10.2171L21.3582 8.41535C21.5744 9.252 21.6894 10.1293 21.6894 11.0336C21.6894 16.7958 17.0182 21.467 11.256 21.467C9.70613 21.467 8.23523 21.1291 6.91291 20.5229L1.57616 21.8571C1.20996 21.9486 0.878268 21.6169 0.969816 21.2508L2.21945 16.2522C1.33102 14.7172 0.82251 12.9347 0.82251 11.0336C0.82251 5.27132 5.49373 0.600098 11.256 0.600098C13.7596 0.600098 16.0573 1.48194 17.8553 2.95196ZM7.41204 12.6603C6.80549 12.6603 6.31378 13.152 6.31378 13.7586C6.31378 14.3651 6.80549 14.8568 7.41204 14.8568H11.8051C12.4116 14.8568 12.9033 14.3651 12.9033 13.7586C12.9033 13.152 12.4116 12.6603 11.8051 12.6603H7.41204ZM22.1006 1.12041L16.3757 6.84529C16.3348 6.88621 16.3066 6.93809 16.2945 6.99468L15.9135 8.77616C15.868 8.98885 16.0569 9.17774 16.2696 9.13226L18.0511 8.75129C18.1077 8.73919 18.1596 8.71098 18.2005 8.67006L23.9254 2.94518C24.0425 2.82803 24.0425 2.63808 23.9254 2.52092L22.5249 1.12041C22.4077 1.00325 22.2178 1.00325 22.1006 1.12041Z",fill:"currentColor"})}),V=t=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_1259_29",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:e.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),e.jsx("g",{mask:"url(#mask0_1259_29)",children:e.jsx("path",{d:"M13.5096 21.5H10.4808C10.2564 21.5 10.0622 21.4246 9.8981 21.274C9.734 21.1233 9.63528 20.9358 9.60195 20.7115L9.31157 18.4538C9.04362 18.3641 8.76894 18.2384 8.48752 18.0769C8.2061 17.9153 7.9545 17.7422 7.7327 17.5576L5.64425 18.4384C5.43015 18.5217 5.21765 18.5301 5.00675 18.4634C4.79585 18.3967 4.63014 18.2647 4.50962 18.0673L3.00582 15.4481C2.8853 15.2506 2.84845 15.0397 2.89525 14.8154C2.94203 14.591 3.0558 14.4102 3.23657 14.2731L5.04427 12.9058C5.02119 12.757 5.00484 12.6077 4.99522 12.4577C4.9856 12.3077 4.9808 12.1583 4.9808 12.0096C4.9808 11.8673 4.9856 11.7227 4.99522 11.5759C5.00484 11.4291 5.02119 11.2686 5.04427 11.0942L3.23657 9.72688C3.0558 9.58971 2.94203 9.40894 2.89525 9.18458C2.84845 8.96023 2.8853 8.74934 3.00582 8.5519L4.50962 5.95195C4.61989 5.74425 4.78143 5.60963 4.99425 5.5481C5.20706 5.48657 5.42052 5.49747 5.63462 5.5808L7.72307 6.45195C7.9641 6.26092 8.22148 6.08623 8.4952 5.9279C8.76893 5.76955 9.03785 5.6423 9.30195 5.54615L9.60195 3.28848C9.63528 3.06411 9.734 2.87661 9.8981 2.72598C10.0622 2.57533 10.2564 2.5 10.4808 2.5H13.5096C13.7339 2.5 13.9298 2.57533 14.0971 2.72598C14.2644 2.87661 14.3647 3.06411 14.398 3.28848L14.6884 5.55578C14.9884 5.66474 15.2599 5.79198 15.5029 5.9375C15.7458 6.08302 15.991 6.2545 16.2384 6.45195L18.3654 5.5808C18.5795 5.49747 18.7904 5.48753 18.998 5.55098C19.2057 5.61444 19.3699 5.74489 19.4904 5.94233L20.9942 8.5519C21.1147 8.74934 21.1515 8.96023 21.1047 9.18458C21.058 9.40894 20.9442 9.58971 20.7634 9.72688L18.9173 11.123C18.9532 11.2846 18.9727 11.4355 18.9759 11.5759C18.9791 11.7163 18.9807 11.8577 18.9807 12C18.9807 12.1359 18.9775 12.274 18.9711 12.4144C18.9647 12.5548 18.9416 12.7154 18.9019 12.8962L20.7288 14.2731C20.916 14.4038 21.0314 14.583 21.0749 14.8106C21.1185 15.0381 21.0801 15.2506 20.9596 15.4481L19.4557 18.0519C19.3352 18.2493 19.167 18.3823 18.9509 18.4509C18.7349 18.5195 18.5198 18.5121 18.3057 18.4288L16.2384 17.548C15.991 17.7455 15.7384 17.9201 15.4807 18.0721C15.223 18.224 14.9589 18.348 14.6884 18.4442L14.398 20.7115C14.3647 20.9358 14.2644 21.1233 14.0971 21.274C13.9298 21.4246 13.7339 21.5 13.5096 21.5ZM12.0115 15C12.8436 15 13.5516 14.708 14.1355 14.124C14.7195 13.54 15.0115 12.832 15.0115 12C15.0115 11.1679 14.7195 10.4599 14.1355 9.87595C13.5516 9.29198 12.8436 9 12.0115 9C11.1692 9 10.4587 9.29198 9.87982 9.87595C9.30099 10.4599 9.01157 11.1679 9.01157 12C9.01157 12.832 9.30099 13.54 9.87982 14.124C10.4587 14.708 11.1692 15 12.0115 15Z",fill:"currentColor"})})]}),_=t=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_1259_26",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:e.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),e.jsx("g",{mask:"url(#mask0_1259_26)",children:e.jsx("path",{d:"M10.0577 18.7499C9.84521 18.7499 9.66708 18.678 9.52333 18.5342C9.3796 18.3904 9.30773 18.2122 9.30773 17.9996C9.30773 17.787 9.3796 17.609 9.52333 17.4654C9.66708 17.3218 9.84521 17.25 10.0577 17.25H19.75C19.9625 17.25 20.1406 17.3219 20.2844 17.4657C20.4281 17.6095 20.5 17.7877 20.5 18.0003C20.5 18.2129 20.4281 18.391 20.2844 18.5346C20.1406 18.6782 19.9625 18.7499 19.75 18.7499H10.0577ZM10.0577 12.7499C9.84521 12.7499 9.66708 12.678 9.52333 12.5342C9.3796 12.3904 9.30773 12.2122 9.30773 11.9996C9.30773 11.787 9.3796 11.609 9.52333 11.4654C9.66708 11.3218 9.84521 11.25 10.0577 11.25H19.75C19.9625 11.25 20.1406 11.3219 20.2844 11.4657C20.4281 11.6095 20.5 11.7877 20.5 12.0003C20.5 12.2129 20.4281 12.391 20.2844 12.5346C20.1406 12.6782 19.9625 12.7499 19.75 12.7499H10.0577ZM10.0577 6.74995C9.84521 6.74995 9.66708 6.67805 9.52333 6.53425C9.3796 6.39043 9.30773 6.21223 9.30773 5.99965C9.30773 5.78705 9.3796 5.60896 9.52333 5.46537C9.66708 5.32179 9.84521 5.25 10.0577 5.25H19.75C19.9625 5.25 20.1406 5.3219 20.2844 5.4657C20.4281 5.60951 20.5 5.78771 20.5 6.0003C20.5 6.2129 20.4281 6.39099 20.2844 6.53457C20.1406 6.67816 19.9625 6.74995 19.75 6.74995H10.0577ZM5.16348 19.6634C4.70603 19.6634 4.31443 19.5005 3.98868 19.1748C3.66291 18.849 3.50003 18.4574 3.50003 18C3.50003 17.5425 3.66291 17.1509 3.98868 16.8252C4.31443 16.4994 4.70603 16.3365 5.16348 16.3365C5.62093 16.3365 6.01253 16.4994 6.33828 16.8252C6.66403 17.1509 6.82691 17.5425 6.82691 18C6.82691 18.4574 6.66403 18.849 6.33828 19.1748C6.01253 19.5005 5.62093 19.6634 5.16348 19.6634ZM5.16348 13.6634C4.70603 13.6634 4.31443 13.5005 3.98868 13.1748C3.66291 12.849 3.50003 12.4574 3.50003 12C3.50003 11.5425 3.66291 11.1509 3.98868 10.8252C4.31443 10.4994 4.70603 10.3365 5.16348 10.3365C5.62093 10.3365 6.01253 10.4994 6.33828 10.8252C6.66403 11.1509 6.82691 11.5425 6.82691 12C6.82691 12.4574 6.66403 12.849 6.33828 13.1748C6.01253 13.5005 5.62093 13.6634 5.16348 13.6634ZM5.16348 7.6634C4.70603 7.6634 4.31443 7.50052 3.98868 7.17477C3.66291 6.84902 3.50003 6.45742 3.50003 5.99997C3.50003 5.54252 3.66291 5.15092 3.98868 4.82517C4.31443 4.49942 4.70603 4.33655 5.16348 4.33655C5.62093 4.33655 6.01253 4.49942 6.33828 4.82517C6.66403 5.15092 6.82691 5.54252 6.82691 5.99997C6.82691 6.45742 6.66403 6.84902 6.33828 7.17477C6.01253 7.50052 5.62093 7.6634 5.16348 7.6634Z",fill:"currentColor"})})]}),D=()=>{const{open:t}=i("sourcesTable"),{open:h}=i("addItem"),{open:p}=i("addContent"),{open:x}=i("settings"),{open:u}=i("blueprintGraph"),{open:m}=i("feedback"),g=y(),{resetAiSummaryAnswer:j,setNewLoading:b}=H(),{abortFetchData:w}=M(n=>n),k=d(n=>n.customSchemaFeatureFlag),f=d(n=>n.userFeedbackFeatureFlag),[c]=S(n=>[n.isAdmin]),L=F(),v=()=>{b(null),w(),j(),g("/")};return e.jsxs($,{children:[e.jsx(U,{onClick:v,children:e.jsx("img",{alt:"Second brain",src:"logo.svg"})}),c?e.jsxs(C,{"data-testid":"add-item-modal",onClick:h,children:[e.jsx(r,{children:e.jsx(B,{})}),e.jsx(o,{children:"Add Item"})]}):null,e.jsxs(C,{"data-testid":"add-content-modal",onClick:p,children:[e.jsx(r,{children:e.jsx(Z,{})}),e.jsx(o,{children:"Add Content"})]}),e.jsxs(C,{id:"cy-open-soure-table",onClick:t,children:[e.jsx(r,{children:e.jsx(_,{})}),e.jsx(o,{children:"Source Table"})]}),k&&c?e.jsxs(C,{"data-testid":"add-blueprint-modal",id:"cy-open-soure-table",onClick:u,children:[e.jsx(r,{children:e.jsx(A,{})}),e.jsx(o,{children:"Blueprint"})]}):null,e.jsxs(C,{"data-testid":"settings-modal",onClick:x,children:[e.jsx(r,{children:e.jsx(V,{})}),e.jsx(o,{children:"Settings"})]}),f&&L?e.jsxs(T,{"data-testid":"feedback-modal",onClick:m,children:[e.jsx(r,{children:e.jsx(I,{})}),e.jsx(o,{children:"Send Feedback"})]}):null]})},$=a(l).attrs({align:"flex-start",direction:"column",justify:"flex-start"})` flex: 0 0 64px; z-index: 31; transition: opacity 1s; diff --git a/build/assets/index-7adf0284.js b/build/assets/index-d9eecfe2.js similarity index 98% rename from build/assets/index-7adf0284.js rename to build/assets/index-d9eecfe2.js index 94ed61c23..01fc9b462 100644 --- a/build/assets/index-7adf0284.js +++ b/build/assets/index-d9eecfe2.js @@ -1,4 +1,4 @@ -import{r as b,_ as $a,j as M,R as Zr,w as uu,o as ze,q as we,F as xs,B as xn,J as hu,A as hr,K as ef,y as Jt,p as nt,V as bo,v as du,X as tf,Y as sf,Z as nf,a0 as rf,a1 as of,a2 as af,a3 as cf,a4 as lf,a5 as uf,O as $o,a6 as hf,a7 as df,a8 as ff,a9 as pf,M as mf}from"./index-21067c9d.js";import{u as ge,a as Xa,e as Qa,b as Rt,L as _f,c as gf,d as vf,m as yf,f as xf,g as Tf,h as fu,H as dr,t as pu,T as wf,i as kf,j as Sf,D as Cf,C as bf,P as Ef,k as Of}from"./index-584de0f7.js";import{D as Cr,F as Af,V as X,a as Fe,T as Eo,b as Mf,C as hs,W as Df,c as Rf,E as Ka,d as Tt,N as Gn,e as Pf,B as oi,U as ps,M as If,f as Nf,g as Ff,h as Uf,i as Lf,j as br,k as Mi,S as es,l as Bf,m as Q,R as zf,n as Ts,o as Ta,P as mu,p as Ja,q as Jc,r as Vf,L as $r,s as jf,t as _u,u as gu,v as vu,w as yu,x as el,y as Hf,z as qf,A as Er,H as Wf,G as Gf,I as Yf,J as Zf,K as $f,O as Xf,Q as fr,X as Qf,Y as Kf}from"./three.module-2ce81f73.js";import{B as xu,_ as Ue,a as Vt,u as ec,A as Jf,O as ep,b as tp}from"./index-93bc2f63.js";import{T as sp}from"./TextareaAutosize-9f8d1e37.js";import{T as tl,u as np}from"./index-aac659dd.js";import{D as ip}from"./DeleteIcon-396521e3.js";import{M as rp,a as op}from"./index.esm-9353033f.js";import{u as ap}from"./index-c101d01d.js";import{M as cp,A as lp}from"./MergeIcon-d047ebb5.js";import{P as up}from"./PlusIcon-c31fb232.js";import{P as hp}from"./Popover-8ff60b97.js";import{C as dp}from"./ClipLoader-19a8277d.js";import"./useSlotProps-f54e8b6d.js";function fp(n){let e;const t=new Set,s=(l,u)=>{const h=typeof l=="function"?l(e):l;if(h!==e){const f=e;e=u?h:Object.assign({},e,h),t.forEach(d=>d(e,f))}},i=()=>e,r=(l,u=i,h=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let f=u(e);function d(){const m=u(e);if(!h(f,m)){const p=f;l(f=m,p)}}return t.add(d),()=>t.delete(d)},c={setState:s,getState:i,subscribe:(l,u,h)=>u||h?r(l,u,h):(t.add(l),()=>t.delete(l)),destroy:()=>t.clear()};return e=n(s,i,c),c}const pp=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),sl=pp?b.useEffect:b.useLayoutEffect;function mp(n){const e=typeof n=="function"?fp(n):n,t=(s=e.getState,i=Object.is)=>{const[,r]=b.useReducer(_=>_+1,0),o=e.getState(),a=b.useRef(o),c=b.useRef(s),l=b.useRef(i),u=b.useRef(!1),h=b.useRef();h.current===void 0&&(h.current=s(o));let f,d=!1;(a.current!==o||c.current!==s||l.current!==i||u.current)&&(f=s(o),d=!i(h.current,f)),sl(()=>{d&&(h.current=f),a.current=o,c.current=s,l.current=i,u.current=!1});const m=b.useRef(o);sl(()=>{const _=()=>{try{const S=e.getState(),T=c.current(S);l.current(h.current,T)||(a.current=S,h.current=T,r())}catch{u.current=!0,r()}},v=e.subscribe(_);return e.getState()!==m.current&&_(),v},[]);const p=d?f:h.current;return b.useDebugValue(p),p};return Object.assign(t,e),t[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const s=[t,e];return{next(){const i=s.length<=0;return{value:s.shift(),done:i}}}},t}let fi=0;const _p=mp(n=>(Cr.onStart=(e,t,s)=>{n({active:!0,item:e,loaded:t,total:s,progress:(t-fi)/(s-fi)*100})},Cr.onLoad=()=>{n({active:!1})},Cr.onError=e=>n(t=>({errors:[...t.errors,e]})),Cr.onProgress=(e,t,s)=>{t===s&&(fi=s),n({active:!0,item:e,loaded:t,total:s,progress:(t-fi)/(s-fi)*100||100})},{errors:[],active:!1,progress:0,item:"",loaded:0,total:0})),gp=n=>`Loading ${n.toFixed(2)}%`;function vp({containerStyles:n,innerStyles:e,barStyles:t,dataStyles:s,dataInterpolation:i=gp,initialState:r=o=>o}){const{active:o,progress:a}=_p(),c=b.useRef(0),l=b.useRef(0),u=b.useRef(null),[h,f]=b.useState(r(o));b.useEffect(()=>{let m;return o!==h&&(m=setTimeout(()=>f(o),300)),()=>clearTimeout(m)},[h,o]);const d=b.useCallback(()=>{u.current&&(c.current+=(a-c.current)/2,(c.current>.95*a||a===100)&&(c.current=a),u.current.innerText=i(c.current),c.current(d(),()=>cancelAnimationFrame(l.current)),[d]),h?b.createElement("div",{style:{...Or.container,opacity:o?1:0,...n}},b.createElement("div",null,b.createElement("div",{style:{...Or.inner,...e}},b.createElement("div",{style:{...Or.bar,transform:`scaleX(${a/100})`,...t}}),b.createElement("span",{ref:u,style:{...Or.data,...s}})))):null}const Or={container:{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"#171717",display:"flex",alignItems:"center",justifyContent:"center",transition:"opacity 300ms ease",zIndex:1e3},inner:{width:100,height:3,background:"#272727",textAlign:"center"},bar:{height:3,width:"100%",background:"white",transition:"transform 200ms",transformOrigin:"left center"},data:{display:"inline-block",position:"relative",fontVariantNumeric:"tabular-nums",marginTop:"0.8em",color:"#f0f0f0",fontSize:"0.6em",fontFamily:'-apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", "Helvetica Neue", Helvetica, Arial, Roboto, Ubuntu, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',whiteSpace:"nowrap"}};let pi;function yp(){var n;if(pi!==void 0)return pi;try{let e;const t=document.createElement("canvas");return pi=!!(window.WebGL2RenderingContext&&(e=t.getContext("webgl2"))),e&&((n=e.getExtension("WEBGL_lose_context"))==null||n.loseContext()),pi}catch{return pi=!1}}const Xo=new Af,Qo=new X,En=new X,Pt=new X,is=new X,qt=new X,rs=new X,os=new X,mi=new X,_i=new X,gi=new X,Ar=new X,vi=new X,yi=new X,xi=new X;class xp{constructor(e,t,s){this.camera=e,this.scene=t,this.startPoint=new X,this.endPoint=new X,this.collection=[],this.deep=s||Number.MAX_VALUE}select(e,t){return this.startPoint=e||this.startPoint,this.endPoint=t||this.endPoint,this.collection=[],this.updateFrustum(this.startPoint,this.endPoint),this.searchChildInFrustum(Xo,this.scene),this.collection}updateFrustum(e,t){if(e=e||this.startPoint,t=t||this.endPoint,e.x===t.x&&(t.x+=Number.EPSILON),e.y===t.y&&(t.y+=Number.EPSILON),this.camera.updateProjectionMatrix(),this.camera.updateMatrixWorld(),this.camera.isPerspectiveCamera){En.copy(e),En.x=Math.min(e.x,t.x),En.y=Math.max(e.y,t.y),t.x=Math.max(e.x,t.x),t.y=Math.min(e.y,t.y),Pt.setFromMatrixPosition(this.camera.matrixWorld),is.copy(En),qt.set(t.x,En.y,0),rs.copy(t),os.set(En.x,t.y,0),is.unproject(this.camera),qt.unproject(this.camera),rs.unproject(this.camera),os.unproject(this.camera),vi.copy(is).sub(Pt),yi.copy(qt).sub(Pt),xi.copy(rs).sub(Pt),vi.normalize(),yi.normalize(),xi.normalize(),vi.multiplyScalar(this.deep),yi.multiplyScalar(this.deep),xi.multiplyScalar(this.deep),vi.add(Pt),yi.add(Pt),xi.add(Pt);var s=Xo.planes;s[0].setFromCoplanarPoints(Pt,is,qt),s[1].setFromCoplanarPoints(Pt,qt,rs),s[2].setFromCoplanarPoints(rs,os,Pt),s[3].setFromCoplanarPoints(os,is,Pt),s[4].setFromCoplanarPoints(qt,rs,os),s[5].setFromCoplanarPoints(xi,yi,vi),s[5].normal.multiplyScalar(-1)}else if(this.camera.isOrthographicCamera){const i=Math.min(e.x,t.x),r=Math.max(e.y,t.y),o=Math.max(e.x,t.x),a=Math.min(e.y,t.y);is.set(i,r,-1),qt.set(o,r,-1),rs.set(o,a,-1),os.set(i,a,-1),mi.set(i,r,1),_i.set(o,r,1),gi.set(o,a,1),Ar.set(i,a,1),is.unproject(this.camera),qt.unproject(this.camera),rs.unproject(this.camera),os.unproject(this.camera),mi.unproject(this.camera),_i.unproject(this.camera),gi.unproject(this.camera),Ar.unproject(this.camera);var s=Xo.planes;s[0].setFromCoplanarPoints(is,mi,_i),s[1].setFromCoplanarPoints(qt,_i,gi),s[2].setFromCoplanarPoints(gi,Ar,os),s[3].setFromCoplanarPoints(Ar,mi,is),s[4].setFromCoplanarPoints(qt,rs,os),s[5].setFromCoplanarPoints(gi,_i,mi),s[5].normal.multiplyScalar(-1)}else console.error("THREE.SelectionBox: Unsupported camera type.")}searchChildInFrustum(e,t){if((t.isMesh||t.isLine||t.isPoints)&&t.material!==void 0&&(t.geometry.boundingSphere===null&&t.geometry.computeBoundingSphere(),Qo.copy(t.geometry.boundingSphere.center),Qo.applyMatrix4(t.matrixWorld),e.containsPoint(Qo)&&this.collection.push(t)),t.children.length>0)for(let s=0;sc,...a}){const{setEvents:c,camera:l,raycaster:u,gl:h,controls:f,size:d,get:m}=ge(),[p,_]=b.useState(!1),[v,S]=b.useReducer((w,{object:k,shift:x})=>k===void 0?[]:Array.isArray(k)?k:x?w.includes(k)?w.filter(C=>C!==k):[k,...w]:w[0]===k?[]:[k],[]);b.useEffect(()=>void(s==null?void 0:s(v)),[v]);const T=b.useCallback(w=>{w.stopPropagation(),S({object:o([w.object])[0],shift:e&&w.shiftKey})},[]),y=b.useCallback(w=>!p&&S({}),[p]),g=b.useRef(null);return b.useEffect(()=>{if(!n||!e)return;const w=new xp(l,g.current),k=document.createElement("div");k.style.pointerEvents="none",k.style.border=i,k.style.backgroundColor=r,k.style.position="fixed";const x=new Fe,C=new Fe,E=new Fe,O=m().events.enabled,A=f==null?void 0:f.enabled;let R=!1;function P(B,Te){const{offsetX:ae,offsetY:$}=B,{width:me,height:Ye}=d;Te.set(ae/me*2-1,-($/Ye)*2+1)}function F(B){var Te;f&&(f.enabled=!1),c({enabled:!1}),R=!0,(Te=h.domElement.parentElement)==null||Te.appendChild(k),k.style.left=`${B.clientX}px`,k.style.top=`${B.clientY}px`,k.style.width="0px",k.style.height="0px",x.x=B.clientX,x.y=B.clientY}function N(B){E.x=Math.max(x.x,B.clientX),E.y=Math.max(x.y,B.clientY),C.x=Math.min(x.x,B.clientX),C.y=Math.min(x.y,B.clientY),k.style.left=`${C.x}px`,k.style.top=`${C.y}px`,k.style.width=`${E.x-C.x}px`,k.style.height=`${E.y-C.y}px`}function U(){if(R){var B;f&&(f.enabled=A),c({enabled:O}),R=!1,(B=k.parentElement)==null||B.removeChild(k)}}function V(B){B.shiftKey&&(F(B),P(B,w.startPoint))}let z=[];function q(B){if(R){N(B),P(B,w.endPoint);const Te=w.select().sort(ae=>ae.uuid).filter(ae=>ae.isMesh);Tp(Te,z)||(z=Te,S({object:o(Te)}))}}function j(B){R&&U()}return document.addEventListener("pointerdown",V,{passive:!0}),document.addEventListener("pointermove",q,{passive:!0,capture:!0}),document.addEventListener("pointerup",j,{passive:!0}),()=>{document.removeEventListener("pointerdown",V),document.removeEventListener("pointermove",q),document.removeEventListener("pointerup",j)}},[d.width,d.height,u,l,f,h]),b.createElement("group",$a({ref:g,onClick:T,onPointerOver:()=>_(!0),onPointerOut:()=>_(!1),onPointerMissed:y},a),b.createElement(wp.Provider,{value:v},t))}const nl=n=>n===Object(n)&&!Array.isArray(n)&&typeof n!="function";function on(n,e){const t=ge(i=>i.gl),s=Xa(Eo,nl(n)?Object.values(n):n);if(b.useLayoutEffect(()=>{e==null||e(s)},[e]),b.useEffect(()=>{(Array.isArray(s)?s:[s]).forEach(t.initTexture)},[t,s]),nl(n)){const i=Object.keys(n),r={};return i.forEach(o=>Object.assign(r,{[o]:s[i.indexOf(o)]})),r}else return s}on.preload=n=>Xa.preload(Eo,n);on.clear=n=>Xa.clear(Eo,n);/*! +import{r as b,_ as $a,j as M,R as Zr,w as uu,o as ze,q as we,F as xs,B as xn,J as hu,A as hr,K as ef,y as Jt,p as nt,V as bo,v as du,X as tf,Y as sf,Z as nf,a0 as rf,a1 as of,a2 as af,a3 as cf,a4 as lf,a5 as uf,O as $o,a6 as hf,a7 as df,a8 as ff,a9 as pf,M as mf}from"./index-f50d1ab5.js";import{u as ge,a as Xa,e as Qa,b as Rt,L as _f,c as gf,d as vf,m as yf,f as xf,g as Tf,h as fu,H as dr,t as pu,T as wf,i as kf,j as Sf,D as Cf,C as bf,P as Ef,k as Of}from"./index-26c7ce89.js";import{D as Cr,F as Af,V as X,a as Fe,T as Eo,b as Mf,C as hs,W as Df,c as Rf,E as Ka,d as Tt,N as Gn,e as Pf,B as oi,U as ps,M as If,f as Nf,g as Ff,h as Uf,i as Lf,j as br,k as Mi,S as es,l as Bf,m as Q,R as zf,n as Ts,o as Ta,P as mu,p as Ja,q as Jc,r as Vf,L as $r,s as jf,t as _u,u as gu,v as vu,w as yu,x as el,y as Hf,z as qf,A as Er,H as Wf,G as Gf,I as Yf,J as Zf,K as $f,O as Xf,Q as fr,X as Qf,Y as Kf}from"./three.module-2ce81f73.js";import{B as xu,_ as Ue,a as Vt,u as ec,T as tl,A as Jf,b as ep,O as tp,c as sp}from"./index-f857b04d.js";import{T as np}from"./TextareaAutosize-04e2890c.js";import{D as ip}from"./DeleteIcon-9461c6b1.js";import{M as rp,a as op}from"./index.esm-22240fd2.js";import{u as ap}from"./index-2818a813.js";import{M as cp,A as lp}from"./MergeIcon-dc64ffd2.js";import{P as up}from"./PlusIcon-95ca5a40.js";import{P as hp}from"./Popover-a7534715.js";import{C as dp}from"./ClipLoader-f52b169b.js";import"./useSlotProps-f1483ce3.js";function fp(n){let e;const t=new Set,s=(l,u)=>{const h=typeof l=="function"?l(e):l;if(h!==e){const f=e;e=u?h:Object.assign({},e,h),t.forEach(d=>d(e,f))}},i=()=>e,r=(l,u=i,h=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let f=u(e);function d(){const m=u(e);if(!h(f,m)){const p=f;l(f=m,p)}}return t.add(d),()=>t.delete(d)},c={setState:s,getState:i,subscribe:(l,u,h)=>u||h?r(l,u,h):(t.add(l),()=>t.delete(l)),destroy:()=>t.clear()};return e=n(s,i,c),c}const pp=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),sl=pp?b.useEffect:b.useLayoutEffect;function mp(n){const e=typeof n=="function"?fp(n):n,t=(s=e.getState,i=Object.is)=>{const[,r]=b.useReducer(_=>_+1,0),o=e.getState(),a=b.useRef(o),c=b.useRef(s),l=b.useRef(i),u=b.useRef(!1),h=b.useRef();h.current===void 0&&(h.current=s(o));let f,d=!1;(a.current!==o||c.current!==s||l.current!==i||u.current)&&(f=s(o),d=!i(h.current,f)),sl(()=>{d&&(h.current=f),a.current=o,c.current=s,l.current=i,u.current=!1});const m=b.useRef(o);sl(()=>{const _=()=>{try{const S=e.getState(),T=c.current(S);l.current(h.current,T)||(a.current=S,h.current=T,r())}catch{u.current=!0,r()}},v=e.subscribe(_);return e.getState()!==m.current&&_(),v},[]);const p=d?f:h.current;return b.useDebugValue(p),p};return Object.assign(t,e),t[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const s=[t,e];return{next(){const i=s.length<=0;return{value:s.shift(),done:i}}}},t}let fi=0;const _p=mp(n=>(Cr.onStart=(e,t,s)=>{n({active:!0,item:e,loaded:t,total:s,progress:(t-fi)/(s-fi)*100})},Cr.onLoad=()=>{n({active:!1})},Cr.onError=e=>n(t=>({errors:[...t.errors,e]})),Cr.onProgress=(e,t,s)=>{t===s&&(fi=s),n({active:!0,item:e,loaded:t,total:s,progress:(t-fi)/(s-fi)*100||100})},{errors:[],active:!1,progress:0,item:"",loaded:0,total:0})),gp=n=>`Loading ${n.toFixed(2)}%`;function vp({containerStyles:n,innerStyles:e,barStyles:t,dataStyles:s,dataInterpolation:i=gp,initialState:r=o=>o}){const{active:o,progress:a}=_p(),c=b.useRef(0),l=b.useRef(0),u=b.useRef(null),[h,f]=b.useState(r(o));b.useEffect(()=>{let m;return o!==h&&(m=setTimeout(()=>f(o),300)),()=>clearTimeout(m)},[h,o]);const d=b.useCallback(()=>{u.current&&(c.current+=(a-c.current)/2,(c.current>.95*a||a===100)&&(c.current=a),u.current.innerText=i(c.current),c.current(d(),()=>cancelAnimationFrame(l.current)),[d]),h?b.createElement("div",{style:{...Or.container,opacity:o?1:0,...n}},b.createElement("div",null,b.createElement("div",{style:{...Or.inner,...e}},b.createElement("div",{style:{...Or.bar,transform:`scaleX(${a/100})`,...t}}),b.createElement("span",{ref:u,style:{...Or.data,...s}})))):null}const Or={container:{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"#171717",display:"flex",alignItems:"center",justifyContent:"center",transition:"opacity 300ms ease",zIndex:1e3},inner:{width:100,height:3,background:"#272727",textAlign:"center"},bar:{height:3,width:"100%",background:"white",transition:"transform 200ms",transformOrigin:"left center"},data:{display:"inline-block",position:"relative",fontVariantNumeric:"tabular-nums",marginTop:"0.8em",color:"#f0f0f0",fontSize:"0.6em",fontFamily:'-apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", "Helvetica Neue", Helvetica, Arial, Roboto, Ubuntu, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',whiteSpace:"nowrap"}};let pi;function yp(){var n;if(pi!==void 0)return pi;try{let e;const t=document.createElement("canvas");return pi=!!(window.WebGL2RenderingContext&&(e=t.getContext("webgl2"))),e&&((n=e.getExtension("WEBGL_lose_context"))==null||n.loseContext()),pi}catch{return pi=!1}}const Xo=new Af,Qo=new X,En=new X,Pt=new X,is=new X,qt=new X,rs=new X,os=new X,mi=new X,_i=new X,gi=new X,Ar=new X,vi=new X,yi=new X,xi=new X;class xp{constructor(e,t,s){this.camera=e,this.scene=t,this.startPoint=new X,this.endPoint=new X,this.collection=[],this.deep=s||Number.MAX_VALUE}select(e,t){return this.startPoint=e||this.startPoint,this.endPoint=t||this.endPoint,this.collection=[],this.updateFrustum(this.startPoint,this.endPoint),this.searchChildInFrustum(Xo,this.scene),this.collection}updateFrustum(e,t){if(e=e||this.startPoint,t=t||this.endPoint,e.x===t.x&&(t.x+=Number.EPSILON),e.y===t.y&&(t.y+=Number.EPSILON),this.camera.updateProjectionMatrix(),this.camera.updateMatrixWorld(),this.camera.isPerspectiveCamera){En.copy(e),En.x=Math.min(e.x,t.x),En.y=Math.max(e.y,t.y),t.x=Math.max(e.x,t.x),t.y=Math.min(e.y,t.y),Pt.setFromMatrixPosition(this.camera.matrixWorld),is.copy(En),qt.set(t.x,En.y,0),rs.copy(t),os.set(En.x,t.y,0),is.unproject(this.camera),qt.unproject(this.camera),rs.unproject(this.camera),os.unproject(this.camera),vi.copy(is).sub(Pt),yi.copy(qt).sub(Pt),xi.copy(rs).sub(Pt),vi.normalize(),yi.normalize(),xi.normalize(),vi.multiplyScalar(this.deep),yi.multiplyScalar(this.deep),xi.multiplyScalar(this.deep),vi.add(Pt),yi.add(Pt),xi.add(Pt);var s=Xo.planes;s[0].setFromCoplanarPoints(Pt,is,qt),s[1].setFromCoplanarPoints(Pt,qt,rs),s[2].setFromCoplanarPoints(rs,os,Pt),s[3].setFromCoplanarPoints(os,is,Pt),s[4].setFromCoplanarPoints(qt,rs,os),s[5].setFromCoplanarPoints(xi,yi,vi),s[5].normal.multiplyScalar(-1)}else if(this.camera.isOrthographicCamera){const i=Math.min(e.x,t.x),r=Math.max(e.y,t.y),o=Math.max(e.x,t.x),a=Math.min(e.y,t.y);is.set(i,r,-1),qt.set(o,r,-1),rs.set(o,a,-1),os.set(i,a,-1),mi.set(i,r,1),_i.set(o,r,1),gi.set(o,a,1),Ar.set(i,a,1),is.unproject(this.camera),qt.unproject(this.camera),rs.unproject(this.camera),os.unproject(this.camera),mi.unproject(this.camera),_i.unproject(this.camera),gi.unproject(this.camera),Ar.unproject(this.camera);var s=Xo.planes;s[0].setFromCoplanarPoints(is,mi,_i),s[1].setFromCoplanarPoints(qt,_i,gi),s[2].setFromCoplanarPoints(gi,Ar,os),s[3].setFromCoplanarPoints(Ar,mi,is),s[4].setFromCoplanarPoints(qt,rs,os),s[5].setFromCoplanarPoints(gi,_i,mi),s[5].normal.multiplyScalar(-1)}else console.error("THREE.SelectionBox: Unsupported camera type.")}searchChildInFrustum(e,t){if((t.isMesh||t.isLine||t.isPoints)&&t.material!==void 0&&(t.geometry.boundingSphere===null&&t.geometry.computeBoundingSphere(),Qo.copy(t.geometry.boundingSphere.center),Qo.applyMatrix4(t.matrixWorld),e.containsPoint(Qo)&&this.collection.push(t)),t.children.length>0)for(let s=0;sc,...a}){const{setEvents:c,camera:l,raycaster:u,gl:h,controls:f,size:d,get:m}=ge(),[p,_]=b.useState(!1),[v,S]=b.useReducer((w,{object:k,shift:x})=>k===void 0?[]:Array.isArray(k)?k:x?w.includes(k)?w.filter(C=>C!==k):[k,...w]:w[0]===k?[]:[k],[]);b.useEffect(()=>void(s==null?void 0:s(v)),[v]);const T=b.useCallback(w=>{w.stopPropagation(),S({object:o([w.object])[0],shift:e&&w.shiftKey})},[]),y=b.useCallback(w=>!p&&S({}),[p]),g=b.useRef(null);return b.useEffect(()=>{if(!n||!e)return;const w=new xp(l,g.current),k=document.createElement("div");k.style.pointerEvents="none",k.style.border=i,k.style.backgroundColor=r,k.style.position="fixed";const x=new Fe,C=new Fe,E=new Fe,O=m().events.enabled,A=f==null?void 0:f.enabled;let R=!1;function P(B,Te){const{offsetX:ae,offsetY:$}=B,{width:me,height:Ye}=d;Te.set(ae/me*2-1,-($/Ye)*2+1)}function F(B){var Te;f&&(f.enabled=!1),c({enabled:!1}),R=!0,(Te=h.domElement.parentElement)==null||Te.appendChild(k),k.style.left=`${B.clientX}px`,k.style.top=`${B.clientY}px`,k.style.width="0px",k.style.height="0px",x.x=B.clientX,x.y=B.clientY}function N(B){E.x=Math.max(x.x,B.clientX),E.y=Math.max(x.y,B.clientY),C.x=Math.min(x.x,B.clientX),C.y=Math.min(x.y,B.clientY),k.style.left=`${C.x}px`,k.style.top=`${C.y}px`,k.style.width=`${E.x-C.x}px`,k.style.height=`${E.y-C.y}px`}function U(){if(R){var B;f&&(f.enabled=A),c({enabled:O}),R=!1,(B=k.parentElement)==null||B.removeChild(k)}}function V(B){B.shiftKey&&(F(B),P(B,w.startPoint))}let z=[];function q(B){if(R){N(B),P(B,w.endPoint);const Te=w.select().sort(ae=>ae.uuid).filter(ae=>ae.isMesh);Tp(Te,z)||(z=Te,S({object:o(Te)}))}}function j(B){R&&U()}return document.addEventListener("pointerdown",V,{passive:!0}),document.addEventListener("pointermove",q,{passive:!0,capture:!0}),document.addEventListener("pointerup",j,{passive:!0}),()=>{document.removeEventListener("pointerdown",V),document.removeEventListener("pointermove",q),document.removeEventListener("pointerup",j)}},[d.width,d.height,u,l,f,h]),b.createElement("group",$a({ref:g,onClick:T,onPointerOver:()=>_(!0),onPointerOut:()=>_(!1),onPointerMissed:y},a),b.createElement(wp.Provider,{value:v},t))}const nl=n=>n===Object(n)&&!Array.isArray(n)&&typeof n!="function";function on(n,e){const t=ge(i=>i.gl),s=Xa(Eo,nl(n)?Object.values(n):n);if(b.useLayoutEffect(()=>{e==null||e(s)},[e]),b.useEffect(()=>{(Array.isArray(s)?s:[s]).forEach(t.initTexture)},[t,s]),nl(n)){const i=Object.keys(n),r={};return i.forEach(o=>Object.assign(r,{[o]:s[i.indexOf(o)]})),r}else return s}on.preload=n=>Xa.preload(Eo,n);on.clear=n=>Xa.clear(Eo,n);/*! * camera-controls * https://github.com/yomotsu/camera-controls * (c) 2017 @yomotsu @@ -213,7 +213,7 @@ float d=distance(uv,center);color*=smoothstep(0.8,offset*0.799,d*(darkness+offse #else vec2 coord=(uv-center)*vec2(offset);color=mix(color,vec3(1.0-darkness),dot(coord,coord)); #endif -outputColor=vec4(color,inputColor.a);}`,pm=class extends Li{constructor({blendFunction:n,technique:e=Ir.DEFAULT,eskil:t=!1,offset:s=.5,darkness:i=.5}={}){super("VignetteEffect",fm,{blendFunction:n,defines:new Map([["VIGNETTE_TECHNIQUE",e.toFixed(0)]]),uniforms:new Map([["offset",new Q(s)],["darkness",new Q(i)]])})}get technique(){return Number(this.defines.get("VIGNETTE_TECHNIQUE"))}set technique(n){this.technique!==n&&(this.defines.set("VIGNETTE_TECHNIQUE",n.toFixed(0)),this.setChanged())}get eskil(){return this.technique===Ir.ESKIL}set eskil(n){this.technique=n?Ir.ESKIL:Ir.DEFAULT}getTechnique(){return this.technique}setTechnique(n){this.technique=n}get offset(){return this.uniforms.get("offset").value}set offset(n){this.uniforms.get("offset").value=n}getOffset(){return this.offset}setOffset(n){this.offset=n}get darkness(){return this.uniforms.get("darkness").value}set darkness(n){this.uniforms.get("darkness").value=n}getDarkness(){return this.darkness}setDarkness(n){this.darkness=n}};const Du=b.createContext(null),_l=n=>(n.getAttributes()&ds.CONVOLUTION)===ds.CONVOLUTION,mm=Zr.memo(b.forwardRef(({children:n,camera:e,scene:t,resolutionScale:s,enabled:i=!0,renderPriority:r=1,autoClear:o=!0,depthBuffer:a,disableNormalPass:c,stencilBuffer:l,multisampling:u=8,frameBufferType:h=Wf},f)=>{const{gl:d,scene:m,camera:p,size:_}=ge(),v=t||m,S=e||p,[T,y,g]=b.useMemo(()=>{const C=yp(),E=new C0(d,{depthBuffer:a,stencilBuffer:l,multisampling:u>0&&C?u:0,frameBufferType:h});E.addPass(new Mo(v,S));let O=null,A=null;return c||(A=new T0(v,S),A.enabled=!1,E.addPass(A),s!==void 0&&C&&(O=new m0({normalBuffer:A.texture,resolutionScale:s}),O.enabled=!1,E.addPass(O))),[E,A,O]},[S,d,a,l,u,h,v,c,s]);b.useEffect(()=>T==null?void 0:T.setSize(_.width,_.height),[T,_]),Rt((C,E)=>{if(i){const O=d.autoClear;d.autoClear=o,l&&!o&&d.clearStencil(),T.render(E),d.autoClear=O}},i?r:0);const w=b.useRef(null),k=xf(w);b.useLayoutEffect(()=>{const C=[];if(w.current&&k.current&&T){const E=k.current.objects;for(let O=0;O{for(const E of C)T==null||T.removePass(E);y&&(y.enabled=!1),g&&(g.enabled=!1)}},[T,n,S,y,g,k]);const x=b.useMemo(()=>({composer:T,normalPass:y,downSamplingPass:g,resolutionScale:s,camera:S,scene:v}),[T,y,g,s,S,v]);return b.useImperativeHandle(f,()=>T,[T]),M.jsx(Du.Provider,{value:x,children:M.jsx("group",{ref:w,children:n})})})),gl=n=>typeof n=="object"&&n!=null&&"current"in n?n.current:n;let _m=0;const vl=new WeakMap,Ru=(n,e)=>Zr.forwardRef(function({blendFunction:s=e==null?void 0:e.blendFunction,opacity:i=e==null?void 0:e.opacity,...r},o){let a=vl.get(n);if(!a){const u=`@react-three/postprocessing/${n.name}-${_m++}`;Qa({[u]:n}),vl.set(n,a=u)}const c=ge(u=>u.camera),l=Zr.useMemo(()=>{var u,h;return[...(u=e==null?void 0:e.args)!=null?u:[],...(h=r.args)!=null?h:[{...e,...r}]]},[JSON.stringify(r)]);return M.jsx(a,{camera:c,"blendMode-blendFunction":s,"blendMode-opacity-value":i,...r,ref:o,args:l})}),gm=Ru(lm,{blendFunction:ee.ADD}),vm=b.forwardRef(function({selection:e=[],selectionLayer:t=10,blendFunction:s,patternTexture:i,edgeStrength:r,pulseSpeed:o,visibleEdgeColor:a,hiddenEdgeColor:c,width:l,height:u,kernelSize:h,blur:f,xRay:d,...m},p){const _=ge(g=>g.invalidate),{scene:v,camera:S}=b.useContext(Du),T=b.useMemo(()=>new dm(v,S,{blendFunction:s,patternTexture:i,edgeStrength:r,pulseSpeed:o,visibleEdgeColor:a,hiddenEdgeColor:c,width:l,height:u,kernelSize:h,blur:f,xRay:d,...m}),[s,f,S,r,u,c,h,i,o,v,a,l,d]),y=b.useContext(tc);return b.useEffect(()=>{if(!y&&e)return T.selection.set(Array.isArray(e)?e.map(gl):[gl(e)]),_(),()=>{T.selection.clear(),_()}},[T,e,y,_]),b.useEffect(()=>{T.selectionLayer=t,_()},[T,_,t]),b.useRef(),b.useEffect(()=>{var g;if(y&&y.enabled&&(g=y.selected)!=null&&g.length)return T.selection.set(y.selected),_(),()=>{T.selection.clear(),_()}},[y,T.selection,_]),b.useEffect(()=>()=>{T.dispose()},[T]),M.jsx("primitive",{ref:p,object:T})}),ym=Ru(pm),xm={isUserDragging:!1,isUserScrolling:!1,userMovedCamera:!1,isUserScrollingOnHtmlPanel:!1},Ns=uu(n=>({...xm,setIsUserDragging:e=>n({isUserDragging:e}),setIsUserScrolling:e=>n({isUserScrolling:e}),setUserMovedCamera:e=>n({userMovedCamera:e}),setIsUserScrollingOnHtmlPanel:e=>n({isUserScrollingOnHtmlPanel:e})})),yl=n=>M.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:M.jsx("path",{d:"M9.47019 6.56248H0.9375C0.777887 6.56248 0.644237 6.50863 0.53655 6.40094C0.42885 6.29326 0.375 6.15961 0.375 5.99999C0.375 5.84038 0.42885 5.70673 0.53655 5.59904C0.644237 5.49136 0.777887 5.43751 0.9375 5.43751H9.47019L5.59326 1.56058C5.48172 1.44904 5.42667 1.31851 5.42812 1.169C5.42956 1.01948 5.48846 0.886545 5.60481 0.770208C5.72114 0.661558 5.85287 0.605308 5.99998 0.601458C6.14709 0.597608 6.27882 0.653858 6.39516 0.770208L11.1504 5.52549C11.2206 5.59568 11.2701 5.66971 11.299 5.7476C11.3278 5.82548 11.3423 5.90961 11.3423 5.99999C11.3423 6.09038 11.3278 6.17451 11.299 6.25239C11.2701 6.33028 11.2206 6.40431 11.1504 6.4745L6.39516 11.2298C6.29132 11.3336 6.16272 11.3868 6.00936 11.3892C5.85599 11.3916 5.72114 11.3384 5.60481 11.2298C5.48846 11.1134 5.43028 10.9798 5.43028 10.8288C5.43028 10.6779 5.48846 10.5442 5.60481 10.4279L9.47019 6.56248Z",fill:"currentColor"})}),Tm=n=>M.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:M.jsxs("g",{id:"captive_portal",children:[M.jsx("mask",{id:"mask0_8513_13265",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:M.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),M.jsxs("g",{mask:"url(#mask0_8513_13265)",children:[M.jsx("path",{id:"captive_portal_2",d:"M9.99992 17.9154C8.90589 17.9154 7.87735 17.7073 6.91429 17.2912C5.9511 16.8751 5.11318 16.3107 4.40054 15.5981C3.6879 14.8854 3.12353 14.0475 2.70742 13.0843C2.29131 12.1213 2.08325 11.0927 2.08325 9.9987C2.08325 8.90467 2.29131 7.87613 2.70742 6.91307C3.12353 5.94988 3.6879 5.11196 4.40054 4.39932C5.11318 3.68668 5.9511 3.12231 6.91429 2.7062C7.87735 2.29009 8.90589 2.08203 9.99992 2.08203C11.0939 2.08203 12.1225 2.29009 13.0855 2.7062C14.0487 3.12231 14.8867 3.68668 15.5993 4.39932C16.3119 5.11196 16.8763 5.94988 17.2924 6.91307C17.7085 7.87613 17.9166 8.90467 17.9166 9.9987C17.9166 10.1429 17.9131 10.2983 17.9062 10.4649C17.8992 10.6316 17.8861 10.7871 17.8668 10.9314C17.8444 11.1088 17.7699 11.2487 17.6433 11.3512C17.5167 11.4538 17.3605 11.5052 17.1745 11.5052C17.011 11.5052 16.8717 11.4346 16.7564 11.2935C16.641 11.1525 16.5945 10.9977 16.617 10.8289C16.6448 10.6846 16.66 10.5462 16.6626 10.4137C16.6653 10.2812 16.6666 10.1429 16.6666 9.9987C16.6666 9.69425 16.6466 9.39113 16.6066 9.08932C16.5664 8.78738 16.5037 8.48689 16.4183 8.18786H13.3203C13.3727 8.48689 13.4107 8.78738 13.4343 9.08932C13.4578 9.39113 13.4695 9.69425 13.4695 9.9987C13.4695 10.1429 13.4682 10.2962 13.4655 10.4587C13.4628 10.6211 13.4544 10.7743 13.4405 10.9185C13.4182 11.0959 13.345 11.2379 13.221 11.3447C13.0971 11.4517 12.9464 11.5052 12.7691 11.5052C12.6056 11.5052 12.4628 11.4389 12.3405 11.3064C12.2182 11.1739 12.1682 11.0233 12.1905 10.8545C12.2044 10.7102 12.2128 10.5676 12.2155 10.4266C12.2182 10.2855 12.2195 10.1429 12.2195 9.9987C12.2195 9.69425 12.2078 9.39113 12.1843 9.08932C12.1607 8.78738 12.1228 8.48689 12.0705 8.18786H7.92929C7.87707 8.48689 7.83915 8.78738 7.81554 9.08932C7.79207 9.39113 7.78033 9.69425 7.78033 9.9987C7.78033 10.3031 7.79207 10.6063 7.81554 10.9081C7.83915 11.21 7.87707 11.5105 7.92929 11.8095H10.3685C10.5458 11.8095 10.6944 11.8694 10.8141 11.9891C10.9337 12.1087 10.9935 12.2572 10.9935 12.4345C10.9935 12.6119 10.9337 12.7604 10.8141 12.8802C10.6944 12.9997 10.5458 13.0595 10.3685 13.0595H8.21617C8.39895 13.7155 8.63693 14.3445 8.93013 14.9466C9.22346 15.5487 9.58006 16.1157 9.99992 16.6477C10.1495 16.6477 10.2991 16.6485 10.4487 16.6502C10.5983 16.6517 10.7451 16.6429 10.8893 16.6237C11.0614 16.6012 11.2051 16.6455 11.3203 16.7566C11.4358 16.8677 11.4935 17.0093 11.4935 17.1814C11.4935 17.3672 11.4457 17.5222 11.3501 17.6462C11.2544 17.7701 11.1179 17.8432 10.9405 17.8656C10.7964 17.8849 10.641 17.898 10.4743 17.9049C10.3076 17.9119 10.1495 17.9154 9.99992 17.9154ZM3.58159 11.8095H6.6795C6.62714 11.5105 6.58915 11.21 6.56554 10.9081C6.54207 10.6063 6.53033 10.3031 6.53033 9.9987C6.53033 9.69425 6.54207 9.39113 6.56554 9.08932C6.58915 8.78738 6.62714 8.48689 6.6795 8.18786H3.58159C3.49617 8.48689 3.43339 8.78738 3.39325 9.08932C3.35325 9.39113 3.33325 9.69425 3.33325 9.9987C3.33325 10.3031 3.35325 10.6063 3.39325 10.9081C3.43339 11.21 3.49617 11.5105 3.58159 11.8095ZM8.38617 16.4345C8.05075 15.9143 7.76256 15.3715 7.52159 14.8064C7.28061 14.2413 7.08429 13.659 6.93263 13.0595H4.10575C4.54047 13.9174 5.1302 14.6413 5.87492 15.231C6.61964 15.8209 7.45672 16.222 8.38617 16.4345ZM4.10575 6.93786H6.93263C7.0736 6.33314 7.26325 5.74821 7.50159 5.18307C7.73978 4.61779 8.03464 4.07773 8.38617 3.56286C7.45131 3.77009 6.6129 4.16856 5.87096 4.75828C5.12888 5.348 4.54047 6.07453 4.10575 6.93786ZM8.21617 6.93786H11.7837C11.6063 6.28189 11.3669 5.65557 11.0655 5.05891C10.7643 4.4621 10.4091 3.89238 9.99992 3.34974C9.58534 3.88168 9.22874 4.4487 8.93013 5.05078C8.63152 5.65286 8.39353 6.28189 8.21617 6.93786ZM13.0672 6.93786H15.8941C15.4594 6.07453 14.871 5.34668 14.1289 4.75432C13.3869 4.16182 12.5485 3.76467 11.6137 3.56286C11.9491 4.08314 12.2333 4.62717 12.4662 5.19495C12.6991 5.76286 12.8994 6.34384 13.0672 6.93786Z",fill:"currentColor"}),M.jsx("path",{id:"travel_explore",d:"M18.0634 18.7783L16.8556 17.5822C16.6378 17.7211 16.4031 17.8331 16.1517 17.9184C15.9003 18.0038 15.6342 18.0465 15.3535 18.0465C14.6044 18.0465 13.9694 17.7857 13.4484 17.2642C12.9275 16.7428 12.667 16.1071 12.667 15.3572C12.667 14.6074 12.9275 13.9717 13.4484 13.4502C13.9694 12.9287 14.6044 12.668 15.3535 12.668C16.1026 12.668 16.7376 12.9287 17.2586 13.4502C17.7795 13.9717 18.04 14.6074 18.04 15.3572C18.04 15.6425 17.9963 15.9121 17.9089 16.166C17.8215 16.4198 17.7063 16.6557 17.5633 16.8738L18.7711 18.0698C18.8684 18.1628 18.917 18.2798 18.917 18.4208C18.917 18.5618 18.8684 18.6809 18.7711 18.7783C18.6781 18.8714 18.5611 18.918 18.4203 18.918C18.2796 18.918 18.1606 18.8714 18.0634 18.7783ZM15.3535 17.038C15.8236 17.038 16.221 16.8755 16.5456 16.5506C16.8703 16.2256 17.0326 15.8278 17.0326 15.3572C17.0326 14.8866 16.8703 14.4888 16.5456 14.1639C16.221 13.8389 15.8236 13.6764 15.3535 13.6764C14.8834 13.6764 14.486 13.8389 14.1614 14.1639C13.8367 14.4888 13.6744 14.8866 13.6744 15.3572C13.6744 15.8278 13.8367 16.2256 14.1614 16.5506C14.486 16.8755 14.8834 17.038 15.3535 17.038Z",fill:"currentColor"})]})]})}),wm=n=>M.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:M.jsx("path",{d:"M8.95833 14.0013C9.25 14.0013 9.49653 13.9006 9.69792 13.6992C9.89931 13.4978 10 13.2513 10 12.9596C10 12.668 9.89931 12.4214 9.69792 12.2201C9.49653 12.0187 9.25 11.918 8.95833 11.918C8.66667 11.918 8.42014 12.0187 8.21875 12.2201C8.01736 12.4214 7.91667 12.668 7.91667 12.9596C7.91667 13.2513 8.01736 13.4978 8.21875 13.6992C8.42014 13.9006 8.66667 14.0013 8.95833 14.0013ZM9 17.3346C7.84722 17.3346 6.76389 17.1159 5.75 16.6784C4.73611 16.2409 3.85417 15.6471 3.10417 14.8971C2.35417 14.1471 1.76042 13.2652 1.32292 12.2513C0.885416 11.2374 0.666666 10.1541 0.666666 9.0013C0.666666 7.84852 0.885416 6.76519 1.32292 5.7513C1.76042 4.73741 2.35417 3.85547 3.10417 3.10547C3.85417 2.35547 4.73611 1.76172 5.75 1.32422C6.76389 0.886719 7.84722 0.667969 9 0.667969C10.1528 0.667969 11.2361 0.886719 12.25 1.32422C13.2639 1.76172 14.1458 2.35547 14.8958 3.10547C15.6458 3.85547 16.2396 4.73741 16.6771 5.7513C17.1146 6.76519 17.3333 7.84852 17.3333 9.0013C17.3333 10.1541 17.1146 11.2374 16.6771 12.2513C16.2396 13.2652 15.6458 14.1471 14.8958 14.8971C14.1458 15.6471 13.2639 16.2409 12.25 16.6784C11.2361 17.1159 10.1528 17.3346 9 17.3346ZM9.08333 5.41797C9.43056 5.41797 9.73264 5.52908 9.98958 5.7513C10.2465 5.97352 10.375 6.2513 10.375 6.58464C10.375 6.89019 10.2812 7.16102 10.0937 7.39714C9.90625 7.63325 9.69444 7.85547 9.45833 8.0638C9.13889 8.34158 8.85764 8.64714 8.61458 8.98047C8.37153 9.3138 8.25 9.6888 8.25 10.1055C8.25 10.2999 8.32292 10.4631 8.46875 10.5951C8.61458 10.727 8.78472 10.793 8.97917 10.793C9.1875 10.793 9.36458 10.7235 9.51042 10.5846C9.65625 10.4457 9.75 10.2721 9.79167 10.0638C9.84722 9.77214 9.97222 9.51172 10.1667 9.28255C10.3611 9.05339 10.5694 8.83464 10.7917 8.6263C11.1111 8.32075 11.3854 7.98741 11.6146 7.6263C11.8437 7.26519 11.9583 6.86241 11.9583 6.41797C11.9583 5.70964 11.6701 5.12977 11.0937 4.67839C10.5174 4.227 9.84722 4.0013 9.08333 4.0013C8.55555 4.0013 8.05208 4.11241 7.57292 4.33464C7.09375 4.55686 6.72917 4.89714 6.47917 5.35547C6.38194 5.52214 6.35069 5.69922 6.38542 5.88672C6.42014 6.07422 6.51389 6.21658 6.66667 6.3138C6.86111 6.42491 7.0625 6.45964 7.27083 6.41797C7.47917 6.3763 7.65278 6.25825 7.79167 6.0638C7.94444 5.85547 8.13542 5.69575 8.36458 5.58464C8.59375 5.47352 8.83333 5.41797 9.08333 5.41797Z",fill:"currentColor"})}),km=()=>{const[n,e]=b.useState(""),{fetchData:t,setAbortRequests:s,seedQuestions:i}=xn(T=>T),[r]=hu(T=>[T.setBudget]),{setUniverseQuestionIsOpen:o,setSidebarOpen:a,setShowCollapseButton:c}=hr(T=>({setUniverseQuestionIsOpen:T.setUniverseQuestionIsOpen,setSidebarOpen:T.setSidebarOpen,setShowCollapseButton:T.setShowCollapseButton})),l=ef(T=>T.resetAiSummaryAnswer),[u,h]=b.useState([]);b.useEffect(()=>{i&&h(v(i).slice(0,4))},[i]);const f=async T=>{T&&(l(),o(),a(!0),c(!0)),await t(r,s,T)},d=!!n.trim().length,m=async T=>{T.keyCode===13&&T.shiftKey===!1&&d&&(T.preventDefault(),f(n))},p=async T=>{e(T),await f(T)},_=()=>{o(),a(!0),c(!0)},v=T=>{const y=[...T];let g=y.length-1;for(;g>0;){const w=Math.floor(Math.random()*(g+1));[y[g],y[w]]=[y[w],y[g]],g-=1}return y},S=!!n&&n.trim().length>0;return M.jsxs(bm,{children:["Ideas have shapes",M.jsxs(Cm,{onKeyDown:m,py:12,tabIndex:-1,children:[M.jsx(Sm,{onChange:T=>e(T.target.value),placeholder:"What do you want to know?",value:n}),M.jsx(Em,{color:"secondary",disabled:!S,onClick:()=>f(n),variant:"contained",children:S?M.jsxs(M.Fragment,{children:["Search ",M.jsx(yl,{})]}):M.jsx(yl,{})})]}),u.length>0&&M.jsx(Am,{children:u.map(T=>M.jsxs(Mm,{onClick:()=>p(T),children:[M.jsx(wm,{}),T]},T))}),M.jsx(Om,{onClick:_,startIcon:M.jsx(Tm,{}),children:"Explore Graph"})]})},Sm=ze(sp).attrs({maxRows:3})` +outputColor=vec4(color,inputColor.a);}`,pm=class extends Li{constructor({blendFunction:n,technique:e=Ir.DEFAULT,eskil:t=!1,offset:s=.5,darkness:i=.5}={}){super("VignetteEffect",fm,{blendFunction:n,defines:new Map([["VIGNETTE_TECHNIQUE",e.toFixed(0)]]),uniforms:new Map([["offset",new Q(s)],["darkness",new Q(i)]])})}get technique(){return Number(this.defines.get("VIGNETTE_TECHNIQUE"))}set technique(n){this.technique!==n&&(this.defines.set("VIGNETTE_TECHNIQUE",n.toFixed(0)),this.setChanged())}get eskil(){return this.technique===Ir.ESKIL}set eskil(n){this.technique=n?Ir.ESKIL:Ir.DEFAULT}getTechnique(){return this.technique}setTechnique(n){this.technique=n}get offset(){return this.uniforms.get("offset").value}set offset(n){this.uniforms.get("offset").value=n}getOffset(){return this.offset}setOffset(n){this.offset=n}get darkness(){return this.uniforms.get("darkness").value}set darkness(n){this.uniforms.get("darkness").value=n}getDarkness(){return this.darkness}setDarkness(n){this.darkness=n}};const Du=b.createContext(null),_l=n=>(n.getAttributes()&ds.CONVOLUTION)===ds.CONVOLUTION,mm=Zr.memo(b.forwardRef(({children:n,camera:e,scene:t,resolutionScale:s,enabled:i=!0,renderPriority:r=1,autoClear:o=!0,depthBuffer:a,disableNormalPass:c,stencilBuffer:l,multisampling:u=8,frameBufferType:h=Wf},f)=>{const{gl:d,scene:m,camera:p,size:_}=ge(),v=t||m,S=e||p,[T,y,g]=b.useMemo(()=>{const C=yp(),E=new C0(d,{depthBuffer:a,stencilBuffer:l,multisampling:u>0&&C?u:0,frameBufferType:h});E.addPass(new Mo(v,S));let O=null,A=null;return c||(A=new T0(v,S),A.enabled=!1,E.addPass(A),s!==void 0&&C&&(O=new m0({normalBuffer:A.texture,resolutionScale:s}),O.enabled=!1,E.addPass(O))),[E,A,O]},[S,d,a,l,u,h,v,c,s]);b.useEffect(()=>T==null?void 0:T.setSize(_.width,_.height),[T,_]),Rt((C,E)=>{if(i){const O=d.autoClear;d.autoClear=o,l&&!o&&d.clearStencil(),T.render(E),d.autoClear=O}},i?r:0);const w=b.useRef(null),k=xf(w);b.useLayoutEffect(()=>{const C=[];if(w.current&&k.current&&T){const E=k.current.objects;for(let O=0;O{for(const E of C)T==null||T.removePass(E);y&&(y.enabled=!1),g&&(g.enabled=!1)}},[T,n,S,y,g,k]);const x=b.useMemo(()=>({composer:T,normalPass:y,downSamplingPass:g,resolutionScale:s,camera:S,scene:v}),[T,y,g,s,S,v]);return b.useImperativeHandle(f,()=>T,[T]),M.jsx(Du.Provider,{value:x,children:M.jsx("group",{ref:w,children:n})})})),gl=n=>typeof n=="object"&&n!=null&&"current"in n?n.current:n;let _m=0;const vl=new WeakMap,Ru=(n,e)=>Zr.forwardRef(function({blendFunction:s=e==null?void 0:e.blendFunction,opacity:i=e==null?void 0:e.opacity,...r},o){let a=vl.get(n);if(!a){const u=`@react-three/postprocessing/${n.name}-${_m++}`;Qa({[u]:n}),vl.set(n,a=u)}const c=ge(u=>u.camera),l=Zr.useMemo(()=>{var u,h;return[...(u=e==null?void 0:e.args)!=null?u:[],...(h=r.args)!=null?h:[{...e,...r}]]},[JSON.stringify(r)]);return M.jsx(a,{camera:c,"blendMode-blendFunction":s,"blendMode-opacity-value":i,...r,ref:o,args:l})}),gm=Ru(lm,{blendFunction:ee.ADD}),vm=b.forwardRef(function({selection:e=[],selectionLayer:t=10,blendFunction:s,patternTexture:i,edgeStrength:r,pulseSpeed:o,visibleEdgeColor:a,hiddenEdgeColor:c,width:l,height:u,kernelSize:h,blur:f,xRay:d,...m},p){const _=ge(g=>g.invalidate),{scene:v,camera:S}=b.useContext(Du),T=b.useMemo(()=>new dm(v,S,{blendFunction:s,patternTexture:i,edgeStrength:r,pulseSpeed:o,visibleEdgeColor:a,hiddenEdgeColor:c,width:l,height:u,kernelSize:h,blur:f,xRay:d,...m}),[s,f,S,r,u,c,h,i,o,v,a,l,d]),y=b.useContext(tc);return b.useEffect(()=>{if(!y&&e)return T.selection.set(Array.isArray(e)?e.map(gl):[gl(e)]),_(),()=>{T.selection.clear(),_()}},[T,e,y,_]),b.useEffect(()=>{T.selectionLayer=t,_()},[T,_,t]),b.useRef(),b.useEffect(()=>{var g;if(y&&y.enabled&&(g=y.selected)!=null&&g.length)return T.selection.set(y.selected),_(),()=>{T.selection.clear(),_()}},[y,T.selection,_]),b.useEffect(()=>()=>{T.dispose()},[T]),M.jsx("primitive",{ref:p,object:T})}),ym=Ru(pm),xm={isUserDragging:!1,isUserScrolling:!1,userMovedCamera:!1,isUserScrollingOnHtmlPanel:!1},Ns=uu(n=>({...xm,setIsUserDragging:e=>n({isUserDragging:e}),setIsUserScrolling:e=>n({isUserScrolling:e}),setUserMovedCamera:e=>n({userMovedCamera:e}),setIsUserScrollingOnHtmlPanel:e=>n({isUserScrollingOnHtmlPanel:e})})),yl=n=>M.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:M.jsx("path",{d:"M9.47019 6.56248H0.9375C0.777887 6.56248 0.644237 6.50863 0.53655 6.40094C0.42885 6.29326 0.375 6.15961 0.375 5.99999C0.375 5.84038 0.42885 5.70673 0.53655 5.59904C0.644237 5.49136 0.777887 5.43751 0.9375 5.43751H9.47019L5.59326 1.56058C5.48172 1.44904 5.42667 1.31851 5.42812 1.169C5.42956 1.01948 5.48846 0.886545 5.60481 0.770208C5.72114 0.661558 5.85287 0.605308 5.99998 0.601458C6.14709 0.597608 6.27882 0.653858 6.39516 0.770208L11.1504 5.52549C11.2206 5.59568 11.2701 5.66971 11.299 5.7476C11.3278 5.82548 11.3423 5.90961 11.3423 5.99999C11.3423 6.09038 11.3278 6.17451 11.299 6.25239C11.2701 6.33028 11.2206 6.40431 11.1504 6.4745L6.39516 11.2298C6.29132 11.3336 6.16272 11.3868 6.00936 11.3892C5.85599 11.3916 5.72114 11.3384 5.60481 11.2298C5.48846 11.1134 5.43028 10.9798 5.43028 10.8288C5.43028 10.6779 5.48846 10.5442 5.60481 10.4279L9.47019 6.56248Z",fill:"currentColor"})}),Tm=n=>M.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:M.jsxs("g",{id:"captive_portal",children:[M.jsx("mask",{id:"mask0_8513_13265",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:M.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),M.jsxs("g",{mask:"url(#mask0_8513_13265)",children:[M.jsx("path",{id:"captive_portal_2",d:"M9.99992 17.9154C8.90589 17.9154 7.87735 17.7073 6.91429 17.2912C5.9511 16.8751 5.11318 16.3107 4.40054 15.5981C3.6879 14.8854 3.12353 14.0475 2.70742 13.0843C2.29131 12.1213 2.08325 11.0927 2.08325 9.9987C2.08325 8.90467 2.29131 7.87613 2.70742 6.91307C3.12353 5.94988 3.6879 5.11196 4.40054 4.39932C5.11318 3.68668 5.9511 3.12231 6.91429 2.7062C7.87735 2.29009 8.90589 2.08203 9.99992 2.08203C11.0939 2.08203 12.1225 2.29009 13.0855 2.7062C14.0487 3.12231 14.8867 3.68668 15.5993 4.39932C16.3119 5.11196 16.8763 5.94988 17.2924 6.91307C17.7085 7.87613 17.9166 8.90467 17.9166 9.9987C17.9166 10.1429 17.9131 10.2983 17.9062 10.4649C17.8992 10.6316 17.8861 10.7871 17.8668 10.9314C17.8444 11.1088 17.7699 11.2487 17.6433 11.3512C17.5167 11.4538 17.3605 11.5052 17.1745 11.5052C17.011 11.5052 16.8717 11.4346 16.7564 11.2935C16.641 11.1525 16.5945 10.9977 16.617 10.8289C16.6448 10.6846 16.66 10.5462 16.6626 10.4137C16.6653 10.2812 16.6666 10.1429 16.6666 9.9987C16.6666 9.69425 16.6466 9.39113 16.6066 9.08932C16.5664 8.78738 16.5037 8.48689 16.4183 8.18786H13.3203C13.3727 8.48689 13.4107 8.78738 13.4343 9.08932C13.4578 9.39113 13.4695 9.69425 13.4695 9.9987C13.4695 10.1429 13.4682 10.2962 13.4655 10.4587C13.4628 10.6211 13.4544 10.7743 13.4405 10.9185C13.4182 11.0959 13.345 11.2379 13.221 11.3447C13.0971 11.4517 12.9464 11.5052 12.7691 11.5052C12.6056 11.5052 12.4628 11.4389 12.3405 11.3064C12.2182 11.1739 12.1682 11.0233 12.1905 10.8545C12.2044 10.7102 12.2128 10.5676 12.2155 10.4266C12.2182 10.2855 12.2195 10.1429 12.2195 9.9987C12.2195 9.69425 12.2078 9.39113 12.1843 9.08932C12.1607 8.78738 12.1228 8.48689 12.0705 8.18786H7.92929C7.87707 8.48689 7.83915 8.78738 7.81554 9.08932C7.79207 9.39113 7.78033 9.69425 7.78033 9.9987C7.78033 10.3031 7.79207 10.6063 7.81554 10.9081C7.83915 11.21 7.87707 11.5105 7.92929 11.8095H10.3685C10.5458 11.8095 10.6944 11.8694 10.8141 11.9891C10.9337 12.1087 10.9935 12.2572 10.9935 12.4345C10.9935 12.6119 10.9337 12.7604 10.8141 12.8802C10.6944 12.9997 10.5458 13.0595 10.3685 13.0595H8.21617C8.39895 13.7155 8.63693 14.3445 8.93013 14.9466C9.22346 15.5487 9.58006 16.1157 9.99992 16.6477C10.1495 16.6477 10.2991 16.6485 10.4487 16.6502C10.5983 16.6517 10.7451 16.6429 10.8893 16.6237C11.0614 16.6012 11.2051 16.6455 11.3203 16.7566C11.4358 16.8677 11.4935 17.0093 11.4935 17.1814C11.4935 17.3672 11.4457 17.5222 11.3501 17.6462C11.2544 17.7701 11.1179 17.8432 10.9405 17.8656C10.7964 17.8849 10.641 17.898 10.4743 17.9049C10.3076 17.9119 10.1495 17.9154 9.99992 17.9154ZM3.58159 11.8095H6.6795C6.62714 11.5105 6.58915 11.21 6.56554 10.9081C6.54207 10.6063 6.53033 10.3031 6.53033 9.9987C6.53033 9.69425 6.54207 9.39113 6.56554 9.08932C6.58915 8.78738 6.62714 8.48689 6.6795 8.18786H3.58159C3.49617 8.48689 3.43339 8.78738 3.39325 9.08932C3.35325 9.39113 3.33325 9.69425 3.33325 9.9987C3.33325 10.3031 3.35325 10.6063 3.39325 10.9081C3.43339 11.21 3.49617 11.5105 3.58159 11.8095ZM8.38617 16.4345C8.05075 15.9143 7.76256 15.3715 7.52159 14.8064C7.28061 14.2413 7.08429 13.659 6.93263 13.0595H4.10575C4.54047 13.9174 5.1302 14.6413 5.87492 15.231C6.61964 15.8209 7.45672 16.222 8.38617 16.4345ZM4.10575 6.93786H6.93263C7.0736 6.33314 7.26325 5.74821 7.50159 5.18307C7.73978 4.61779 8.03464 4.07773 8.38617 3.56286C7.45131 3.77009 6.6129 4.16856 5.87096 4.75828C5.12888 5.348 4.54047 6.07453 4.10575 6.93786ZM8.21617 6.93786H11.7837C11.6063 6.28189 11.3669 5.65557 11.0655 5.05891C10.7643 4.4621 10.4091 3.89238 9.99992 3.34974C9.58534 3.88168 9.22874 4.4487 8.93013 5.05078C8.63152 5.65286 8.39353 6.28189 8.21617 6.93786ZM13.0672 6.93786H15.8941C15.4594 6.07453 14.871 5.34668 14.1289 4.75432C13.3869 4.16182 12.5485 3.76467 11.6137 3.56286C11.9491 4.08314 12.2333 4.62717 12.4662 5.19495C12.6991 5.76286 12.8994 6.34384 13.0672 6.93786Z",fill:"currentColor"}),M.jsx("path",{id:"travel_explore",d:"M18.0634 18.7783L16.8556 17.5822C16.6378 17.7211 16.4031 17.8331 16.1517 17.9184C15.9003 18.0038 15.6342 18.0465 15.3535 18.0465C14.6044 18.0465 13.9694 17.7857 13.4484 17.2642C12.9275 16.7428 12.667 16.1071 12.667 15.3572C12.667 14.6074 12.9275 13.9717 13.4484 13.4502C13.9694 12.9287 14.6044 12.668 15.3535 12.668C16.1026 12.668 16.7376 12.9287 17.2586 13.4502C17.7795 13.9717 18.04 14.6074 18.04 15.3572C18.04 15.6425 17.9963 15.9121 17.9089 16.166C17.8215 16.4198 17.7063 16.6557 17.5633 16.8738L18.7711 18.0698C18.8684 18.1628 18.917 18.2798 18.917 18.4208C18.917 18.5618 18.8684 18.6809 18.7711 18.7783C18.6781 18.8714 18.5611 18.918 18.4203 18.918C18.2796 18.918 18.1606 18.8714 18.0634 18.7783ZM15.3535 17.038C15.8236 17.038 16.221 16.8755 16.5456 16.5506C16.8703 16.2256 17.0326 15.8278 17.0326 15.3572C17.0326 14.8866 16.8703 14.4888 16.5456 14.1639C16.221 13.8389 15.8236 13.6764 15.3535 13.6764C14.8834 13.6764 14.486 13.8389 14.1614 14.1639C13.8367 14.4888 13.6744 14.8866 13.6744 15.3572C13.6744 15.8278 13.8367 16.2256 14.1614 16.5506C14.486 16.8755 14.8834 17.038 15.3535 17.038Z",fill:"currentColor"})]})]})}),wm=n=>M.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:M.jsx("path",{d:"M8.95833 14.0013C9.25 14.0013 9.49653 13.9006 9.69792 13.6992C9.89931 13.4978 10 13.2513 10 12.9596C10 12.668 9.89931 12.4214 9.69792 12.2201C9.49653 12.0187 9.25 11.918 8.95833 11.918C8.66667 11.918 8.42014 12.0187 8.21875 12.2201C8.01736 12.4214 7.91667 12.668 7.91667 12.9596C7.91667 13.2513 8.01736 13.4978 8.21875 13.6992C8.42014 13.9006 8.66667 14.0013 8.95833 14.0013ZM9 17.3346C7.84722 17.3346 6.76389 17.1159 5.75 16.6784C4.73611 16.2409 3.85417 15.6471 3.10417 14.8971C2.35417 14.1471 1.76042 13.2652 1.32292 12.2513C0.885416 11.2374 0.666666 10.1541 0.666666 9.0013C0.666666 7.84852 0.885416 6.76519 1.32292 5.7513C1.76042 4.73741 2.35417 3.85547 3.10417 3.10547C3.85417 2.35547 4.73611 1.76172 5.75 1.32422C6.76389 0.886719 7.84722 0.667969 9 0.667969C10.1528 0.667969 11.2361 0.886719 12.25 1.32422C13.2639 1.76172 14.1458 2.35547 14.8958 3.10547C15.6458 3.85547 16.2396 4.73741 16.6771 5.7513C17.1146 6.76519 17.3333 7.84852 17.3333 9.0013C17.3333 10.1541 17.1146 11.2374 16.6771 12.2513C16.2396 13.2652 15.6458 14.1471 14.8958 14.8971C14.1458 15.6471 13.2639 16.2409 12.25 16.6784C11.2361 17.1159 10.1528 17.3346 9 17.3346ZM9.08333 5.41797C9.43056 5.41797 9.73264 5.52908 9.98958 5.7513C10.2465 5.97352 10.375 6.2513 10.375 6.58464C10.375 6.89019 10.2812 7.16102 10.0937 7.39714C9.90625 7.63325 9.69444 7.85547 9.45833 8.0638C9.13889 8.34158 8.85764 8.64714 8.61458 8.98047C8.37153 9.3138 8.25 9.6888 8.25 10.1055C8.25 10.2999 8.32292 10.4631 8.46875 10.5951C8.61458 10.727 8.78472 10.793 8.97917 10.793C9.1875 10.793 9.36458 10.7235 9.51042 10.5846C9.65625 10.4457 9.75 10.2721 9.79167 10.0638C9.84722 9.77214 9.97222 9.51172 10.1667 9.28255C10.3611 9.05339 10.5694 8.83464 10.7917 8.6263C11.1111 8.32075 11.3854 7.98741 11.6146 7.6263C11.8437 7.26519 11.9583 6.86241 11.9583 6.41797C11.9583 5.70964 11.6701 5.12977 11.0937 4.67839C10.5174 4.227 9.84722 4.0013 9.08333 4.0013C8.55555 4.0013 8.05208 4.11241 7.57292 4.33464C7.09375 4.55686 6.72917 4.89714 6.47917 5.35547C6.38194 5.52214 6.35069 5.69922 6.38542 5.88672C6.42014 6.07422 6.51389 6.21658 6.66667 6.3138C6.86111 6.42491 7.0625 6.45964 7.27083 6.41797C7.47917 6.3763 7.65278 6.25825 7.79167 6.0638C7.94444 5.85547 8.13542 5.69575 8.36458 5.58464C8.59375 5.47352 8.83333 5.41797 9.08333 5.41797Z",fill:"currentColor"})}),km=()=>{const[n,e]=b.useState(""),{fetchData:t,setAbortRequests:s,seedQuestions:i}=xn(T=>T),[r]=hu(T=>[T.setBudget]),{setUniverseQuestionIsOpen:o,setSidebarOpen:a,setShowCollapseButton:c}=hr(T=>({setUniverseQuestionIsOpen:T.setUniverseQuestionIsOpen,setSidebarOpen:T.setSidebarOpen,setShowCollapseButton:T.setShowCollapseButton})),l=ef(T=>T.resetAiSummaryAnswer),[u,h]=b.useState([]);b.useEffect(()=>{i&&h(v(i).slice(0,4))},[i]);const f=async T=>{T&&(l(),o(),a(!0),c(!0)),await t(r,s,T)},d=!!n.trim().length,m=async T=>{T.keyCode===13&&T.shiftKey===!1&&d&&(T.preventDefault(),f(n))},p=async T=>{e(T),await f(T)},_=()=>{o(),a(!0),c(!0)},v=T=>{const y=[...T];let g=y.length-1;for(;g>0;){const w=Math.floor(Math.random()*(g+1));[y[g],y[w]]=[y[w],y[g]],g-=1}return y},S=!!n&&n.trim().length>0;return M.jsxs(bm,{children:["Ideas have shapes",M.jsxs(Cm,{onKeyDown:m,py:12,tabIndex:-1,children:[M.jsx(Sm,{onChange:T=>e(T.target.value),placeholder:"What do you want to know?",value:n}),M.jsx(Em,{color:"secondary",disabled:!S,onClick:()=>f(n),variant:"contained",children:S?M.jsxs(M.Fragment,{children:["Search ",M.jsx(yl,{})]}):M.jsx(yl,{})})]}),u.length>0&&M.jsx(Am,{children:u.map(T=>M.jsxs(Mm,{onClick:()=>p(T),children:[M.jsx(wm,{}),T]},T))}),M.jsx(Om,{onClick:_,startIcon:M.jsx(Tm,{}),children:"Explore Graph"})]})},Sm=ze(np).attrs({maxRows:3})` background: ${we.BG1}; max-width: 700px; width: 700px; @@ -774,7 +774,7 @@ outputColor=vec4(color,inputColor.a);}`,pm=class extends Li{constructor({blendFu } `,_w=["#fff","#9747FF","#00887A","#0098A6","#0288D1","#33691E","#465A65","#512DA7","#5C6BC0","#5D4038","#662C00","#689F39","#6B1B00","#750000","#78909C","#7E57C2","#8C6E63","#AA47BC","#BF360C","#C2175B","#EC407A","#EF6C00","#F5511E","#FF9696","#FFC064","#FFCD29","#FFEA60"];function gw(n){const e=pu(n,30),t=e.split(" ");if(n.split(" ").length<=5)return e;const s=Math.ceil(t.length/3),i=s*2,r=t.slice(0,s).join(" "),o=t.slice(s,i).join(" "),a=t.slice(i).join(" ");return`${r} ${o} -${a}`}const Kc=b.memo(({node:n,hide:e})=>{const t=b.useRef(null),s=Jt(),i=cf(),o=bo().includes((n==null?void 0:n.ref_id)||""),a=!!s&&(s==null?void 0:s.ref_id)===n.ref_id,c=!!i&&(i==null?void 0:i.ref_id)===n.ref_id,l=nt(_=>_.showSelectionGraph),[u]=np(_=>[_.getPrimaryColorByType]),h=lf();Rt(({camera:_})=>{t!=null&&t.current&&t.current.quaternion.copy(_.quaternion)});const f=b.useMemo(()=>{let _=(n.edge_count||1)*20;l&&a?_=40:!a&&o&&(_=0);const v=_/Math.sqrt(n.name.length);return _=Math.max(v,20),_},[n.edge_count,n.name,a,o,l]),d=b.useMemo(()=>s&&!a||i&&!c?.2:1,[a,s,c,i]),p=u(n.node_type)??(_w[h.indexOf(n.node_type)]||we.white);return M.jsx(M.Fragment,{children:M.jsx(wf,{ref:t,anchorX:"center",anchorY:"middle",color:p,fillOpacity:d,scale:f,userData:n,visible:!e,...kf,children:gw(String(n.name))})})});Kc.displayName="TextNode";const Gd=b.memo(()=>{const[n,e]=b.useState(null),{dataInitial:t}=xn(l=>l),s=Jt(),i=b.useRef(null),r=bo(),o=Sf(t==null?void 0:t.nodes.length),{selectionGraphData:a,setSelectionData:c}=nt(ec(l=>l));return b.useEffect(()=>{const l=structuredClone((t==null?void 0:t.nodes)||[]),u=structuredClone((t==null?void 0:t.links)||[]);if(o===l.length||!r.length)return;const h=l.filter(f=>f.ref_id===(s==null?void 0:s.ref_id)||r.includes((f==null?void 0:f.ref_id)||"")).map(f=>{const d=f.ref_id===(s==null?void 0:s.ref_id)?{fx:0,fy:0,fz:0}:{};return{...f,x:0,y:0,z:0,...d}});if(h){const f=u.filter(d=>h.some(m=>m.ref_id===d.target)&&h.some(m=>m.ref_id===d.source));c({nodes:h,links:f})}},[t,s,r,c,o]),b.useEffect(()=>{if(n||!a.nodes.length)return;const l=structuredClone(a.links),u=dw(a.nodes,l,{numDimensions:2,forceLinkStrength:.01,forceCenterStrength:.85,forceChargeStrength:-20,velocityDecay:.9});e(u)},[a,n]),b.useEffect(()=>()=>{c({nodes:[],links:[]})},[c]),b.useEffect(()=>{n&&n.on("tick",()=>{i.current&&i.current.children.forEach((u,h)=>{const f=n.nodes()[h];f&&u.position.set(f.x,f.y,f.z)})})},[n]),M.jsxs(M.Fragment,{children:[M.jsx("group",{ref:i,name:"simulation-2d-group",children:a==null?void 0:a.nodes.map(l=>M.jsx("mesh",{children:l.name?M.jsx(Kc,{hide:!0,node:l},l.ref_id||l.id):M.jsx(Qc,{hide:!0,node:l},l.ref_id||l.id)},l.ref_id))}),M.jsx(Ap,{fog:!0,lineWidth:.9,children:(a==null?void 0:a.links).map((l,u)=>M.jsx(fw,{animated:!0,link:l},u.toString()))},`selection-links-${a==null?void 0:a.links.length}`),n&&M.jsx(pw,{links:a.links,simulation:n})]})});Gd.displayName="SelectionDataNodes";const vw=200,Yd=b.memo(()=>{const n=Jt(),e=bo(),{selectionGraphData:t,showSelectionGraph:s,setHoveredNode:i,setIsHovering:r}=nt(m=>m),o=xn(m=>m.dataInitial),a=hr(m=>m.setTranscriptOpen),c=b.useCallback(m=>!!(s&&!t.nodes.find(p=>p.ref_id===m.ref_id)),[s,t]),l=b.useCallback(m=>{const p=m==null?void 0:m[0];p&&(a(!1),p.userData&&(c(p.userData)||nt.getState().setSelectedNode((p==null?void 0:p.userData)||null)))},[a,c]),u=b.useRef(null),h=b.useCallback(m=>{m.stopPropagation(),r(!1),u.current&&(clearTimeout(u.current),u.current=null)},[r]),f=b.useCallback(m=>{var v;const _=m.intersections.map(S=>S.object)[0];if((v=_==null?void 0:_.userData)!=null&&v.ref_id){const S=_.userData;c(S)||(m.stopPropagation(),r(!0),u.current=setTimeout(()=>{i(S)},vw))}},[i,c,r]),d=s&&!!n;return M.jsxs(kp,{filter:m=>m.filter(p=>{var _;return!!((_=p.userData)!=null&&_.ref_id)}),onChange:l,onPointerOut:h,onPointerOver:f,children:[!1,M.jsx(Wd,{}),M.jsx("group",{name:"simulation-3d-group__nodes",children:o==null?void 0:o.nodes.map(m=>{const p=!!n&&(e.includes(m.ref_id)||n.ref_id===m.ref_id);return M.jsx("mesh",{children:m.name?M.jsx(Kc,{hide:d||p,node:m},m.ref_id||m.id):M.jsx(Qc,{hide:d,node:m},m.ref_id||m.id)},m.ref_id)})}),d&&M.jsx(Gd,{})]})});Yd.displayName="Cubes";const yw={earthRef:null},xw=uu(n=>({...yw,setEarthRef:e=>n({earthRef:e})})),Tw=new X(0,0,0),ww=()=>{const n=b.useRef(null),e=b.useRef(null),{graphStyle:t,showSelectionGraph:s}=nt(a=>a),i=xw(a=>a.setEarthRef),r=on("textures/earth/galaxy.png"),o=on("textures/earth/clouds.png");return Rt(({camera:a})=>{e.current&&e.current.position.copy(a.getWorldPosition(Tw))}),b.useLayoutEffect(()=>{n.current&&i(n)},[i]),t!=="earth"||s?null:M.jsxs(M.Fragment,{children:[M.jsxs("mesh",{ref:n,userData:{type:"earth"},children:[M.jsx("sphereGeometry",{args:[Br,200,200]}),M.jsx(kw,{})]}),M.jsxs("mesh",{children:[M.jsx("sphereGeometry",{args:[Br+2,200,200]}),M.jsx("meshStandardMaterial",{alphaMap:o,map:o,transparent:!0})]}),M.jsxs("mesh",{children:[M.jsx("sphereGeometry",{args:[Br*4,200,200]}),M.jsx("meshStandardMaterial",{map:r,opacity:.4,side:Mi,transparent:!0})]}),M.jsx("directionalLight",{ref:e,intensity:.9,position:[0,0,Br*3]})]})},kw=()=>{const n=on("textures/earth/earth.jpeg"),e=on("textures/earth/bump.jpeg"),t=on("textures/earth/water.png"),s=b.useMemo(()=>new fr({map:n,bumpMap:e,aoMap:e,roughnessMap:e,metalnessMap:t,toneMapped:!0,roughness:35,metalness:0}),[n,e,t]);return M.jsx("meshStandardMaterial",{...s})},Sw="C",Cw=256,bw=256,Ew={g:"LottieFiles AE 0.1.20"},Ow=[{ty:0,nm:"I",sr:1,st:0,op:26,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_0",ind:1},{ty:0,nm:"I",sr:1,st:26,op:52,ip:26,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_1",ind:2},{ty:0,nm:"I",sr:1,st:52,op:78,ip:52,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_2",ind:3},{ty:0,nm:"I",sr:1,st:78,op:108,ip:78,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_3",ind:4}],Aw="5.5.7",Mw=60,Dw=104,Rw=0,Pw=[{nm:"",id:"comp_0",layers:[{ty:4,nm:"I",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.656,.016],[0,20],[-34.641,0],[.016,-19.984]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[51.962,10],[17.321,30],[17.321,-10],[51.962,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,-9.984],[17.32,10],[17.32,-30],[-17.32,-50.016]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,30],[17.32,50],[17.305,10],[-17.32,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.321,10],[-51.962,30],[-51.962,-10],[-17.321,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[0,20],[-34.641,0],[0,-20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:1}]},{nm:"",id:"comp_1",layers:[{ty:4,nm:"R",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[0,0,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:0}},ef:[],shapes:[],ind:1},{ty:4,nm:"S",sr:1,st:-20,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,-10.016],[-17.32,-30],[17.32,-50],[51.961,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:2,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[.015,-20],[0,20],[34.641,40]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:3,parent:1},{ty:4,nm:"S",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,-10.016],[-17.32,-30],[17.32,-50],[51.961,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:4,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:33,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.324,30],[-17.34,-9.984],[17.336,-30.016],[17.336,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:5,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:35,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[.015,-20],[0,20],[34.641,40]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:6,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.324,30],[-17.34,-9.984],[17.336,-30.016],[17.336,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:7,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.305,30],[-17.336,-9.984],[17.336,-30.016],[17.32,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:8,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[.016,-20.016],[-34.643,-40],[-34.641,.016],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:9,parent:1},{ty:4,nm:"S",sr:1,st:-20,op:31,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,-10],[17.321,30],[-17.321,10],[-17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.305,50],[-51.961,30],[-17.321,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:10,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:34,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.305,30],[-17.336,-9.984],[17.336,-30.016],[17.32,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:11,parent:1},{ty:4,nm:"S",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,-10],[17.321,30],[-17.321,10],[-17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.305,50],[-51.961,30],[-17.321,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:12,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[.016,-20.016],[-34.643,-40],[-34.641,.016],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:13,parent:1}]},{nm:"",id:"comp_2",layers:[{ty:4,nm:"R",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[0,0,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:0}},ef:[],shapes:[],ind:1},{ty:4,nm:"T",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-34.656,.031],[.047,-19.969],[34.652,.031],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:2,parent:1},{ty:4,nm:"S",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[17.32,-9.984],[17.32,-50],[-17.32,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:3,parent:1},{ty:4,nm:"F",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.321,30],[-51.962,10],[-51.962,-30],[-17.321,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:4,parent:1},{ty:4,nm:"S",sr:1,st:0,op:30,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[17.32,-9.984],[17.32,-50],[-17.32,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:5,parent:1},{ty:4,nm:"F",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[51.962,30],[17.321,10],[17.321,-30],[51.962,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:6,parent:1},{ty:4,nm:"S",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,50],[17.32,30],[17.336,-10],[-17.336,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:7,parent:1},{ty:4,nm:"F",sr:1,st:0,op:30,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[51.962,30],[17.321,10],[17.321,-30],[51.962,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:8,parent:1},{ty:4,nm:"T",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-34.656,0],[.015,-20],[34.656,0],[.012,20.062]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:9,parent:1}]},{nm:"",id:"comp_3",layers:[{ty:4,nm:"R",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[0,0,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:0}},ef:[],shapes:[],ind:1},{ty:4,nm:"S",sr:1,st:0,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-10],[-17.32,-30.016],[-51.961,-10],[-17.305,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:2,parent:1},{ty:4,nm:"T",sr:1,st:0,op:32,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[.015,60.016],[-34.642,40],[-34.641,0],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:3,parent:1},{ty:4,nm:"S",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[-17.32,-30],[17.32,-10],[17.32,30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.312,-10],[-17.313,10],[17.332,30],[51.977,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:4,parent:1},{ty:4,nm:"F",sr:1,st:0,op:32,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-29.984],[17.348,10],[-17.305,30],[-17.305,-9.984]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:5,parent:1},{ty:4,nm:"F",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-30],[17.32,10],[-17.32,30],[-17.336,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:6,parent:1},{ty:4,nm:"S",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-10],[-17.32,-30.016],[-51.961,-10],[-17.305,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:7,parent:1},{ty:4,nm:"T",sr:1,st:0,op:32,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[0,-20],[0,-60.016],[34.641,-40]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:8,parent:1},{ty:4,nm:"S",sr:1,st:0,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[-17.32,-30],[17.32,-10],[17.32,30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.312,-10],[-17.313,10],[17.332,30],[51.977,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:9,parent:1},{ty:4,nm:"F",sr:1,st:0,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-30],[17.32,10],[-17.32,30],[-17.336,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:10,parent:1}]}],Iw={nm:Sw,h:Cw,w:bw,meta:Ew,layers:Ow,v:Aw,fr:Mw,op:Dw,ip:Rw,assets:Pw},Nw=({meshId:n})=>{const e=b.useRef(null);return b.useEffect(()=>{const t=document.getElementById(`lottie-animation-${n}`);return t&&(e.current=uf.loadAnimation({container:t,animationData:Iw,loop:!0,autoplay:!0})),()=>{e.current&&e.current.destroy()}},[n]),M.jsx("div",{id:`lottie-animation-${n}`,style:{width:"2em",height:"2em"}})},ya=()=>Math.floor(Math.random()*2001)-1e3,Fw=()=>M.jsx(M.Fragment,{children:["a","b","c"].map(n=>{const e=ya(),t=ya(),s=ya();return M.jsx("mesh",{position:[e,t,s],children:M.jsx(dr,{center:!0,sprite:!0,children:M.jsx(Uw,{children:M.jsx(Nw,{meshId:n})})})},n)})}),Uw=ze.div` +${a}`}const Kc=b.memo(({node:n,hide:e})=>{const t=b.useRef(null),s=Jt(),i=cf(),o=bo().includes((n==null?void 0:n.ref_id)||""),a=!!s&&(s==null?void 0:s.ref_id)===n.ref_id,c=!!i&&(i==null?void 0:i.ref_id)===n.ref_id,l=nt(_=>_.showSelectionGraph),[u]=ep(_=>[_.getPrimaryColorByType]),h=lf();Rt(({camera:_})=>{t!=null&&t.current&&t.current.quaternion.copy(_.quaternion)});const f=b.useMemo(()=>{let _=(n.edge_count||1)*20;l&&a?_=40:!a&&o&&(_=0);const v=_/Math.sqrt(n.name.length);return _=Math.max(v,20),_},[n.edge_count,n.name,a,o,l]),d=b.useMemo(()=>s&&!a||i&&!c?.2:1,[a,s,c,i]),p=u(n.node_type)??(_w[h.indexOf(n.node_type)]||we.white);return M.jsx(M.Fragment,{children:M.jsx(wf,{ref:t,anchorX:"center",anchorY:"middle",color:p,fillOpacity:d,scale:f,userData:n,visible:!e,...kf,children:gw(String(n.name))})})});Kc.displayName="TextNode";const Gd=b.memo(()=>{const[n,e]=b.useState(null),{dataInitial:t}=xn(l=>l),s=Jt(),i=b.useRef(null),r=bo(),o=Sf(t==null?void 0:t.nodes.length),{selectionGraphData:a,setSelectionData:c}=nt(ec(l=>l));return b.useEffect(()=>{const l=structuredClone((t==null?void 0:t.nodes)||[]),u=structuredClone((t==null?void 0:t.links)||[]);if(o===l.length||!r.length)return;const h=l.filter(f=>f.ref_id===(s==null?void 0:s.ref_id)||r.includes((f==null?void 0:f.ref_id)||"")).map(f=>{const d=f.ref_id===(s==null?void 0:s.ref_id)?{fx:0,fy:0,fz:0}:{};return{...f,x:0,y:0,z:0,...d}});if(h){const f=u.filter(d=>h.some(m=>m.ref_id===d.target)&&h.some(m=>m.ref_id===d.source));c({nodes:h,links:f})}},[t,s,r,c,o]),b.useEffect(()=>{if(n||!a.nodes.length)return;const l=structuredClone(a.links),u=dw(a.nodes,l,{numDimensions:2,forceLinkStrength:.01,forceCenterStrength:.85,forceChargeStrength:-20,velocityDecay:.9});e(u)},[a,n]),b.useEffect(()=>()=>{c({nodes:[],links:[]})},[c]),b.useEffect(()=>{n&&n.on("tick",()=>{i.current&&i.current.children.forEach((u,h)=>{const f=n.nodes()[h];f&&u.position.set(f.x,f.y,f.z)})})},[n]),M.jsxs(M.Fragment,{children:[M.jsx("group",{ref:i,name:"simulation-2d-group",children:a==null?void 0:a.nodes.map(l=>M.jsx("mesh",{children:l.name?M.jsx(Kc,{hide:!0,node:l},l.ref_id||l.id):M.jsx(Qc,{hide:!0,node:l},l.ref_id||l.id)},l.ref_id))}),M.jsx(Ap,{fog:!0,lineWidth:.9,children:(a==null?void 0:a.links).map((l,u)=>M.jsx(fw,{animated:!0,link:l},u.toString()))},`selection-links-${a==null?void 0:a.links.length}`),n&&M.jsx(pw,{links:a.links,simulation:n})]})});Gd.displayName="SelectionDataNodes";const vw=200,Yd=b.memo(()=>{const n=Jt(),e=bo(),{selectionGraphData:t,showSelectionGraph:s,setHoveredNode:i,setIsHovering:r}=nt(m=>m),o=xn(m=>m.dataInitial),a=hr(m=>m.setTranscriptOpen),c=b.useCallback(m=>!!(s&&!t.nodes.find(p=>p.ref_id===m.ref_id)),[s,t]),l=b.useCallback(m=>{const p=m==null?void 0:m[0];p&&(a(!1),p.userData&&(c(p.userData)||nt.getState().setSelectedNode((p==null?void 0:p.userData)||null)))},[a,c]),u=b.useRef(null),h=b.useCallback(m=>{m.stopPropagation(),r(!1),u.current&&(clearTimeout(u.current),u.current=null)},[r]),f=b.useCallback(m=>{var v;const _=m.intersections.map(S=>S.object)[0];if((v=_==null?void 0:_.userData)!=null&&v.ref_id){const S=_.userData;c(S)||(m.stopPropagation(),r(!0),u.current=setTimeout(()=>{i(S)},vw))}},[i,c,r]),d=s&&!!n;return M.jsxs(kp,{filter:m=>m.filter(p=>{var _;return!!((_=p.userData)!=null&&_.ref_id)}),onChange:l,onPointerOut:h,onPointerOver:f,children:[!1,M.jsx(Wd,{}),M.jsx("group",{name:"simulation-3d-group__nodes",children:o==null?void 0:o.nodes.map(m=>{const p=!!n&&(e.includes(m.ref_id)||n.ref_id===m.ref_id);return M.jsx("mesh",{children:m.name?M.jsx(Kc,{hide:d||p,node:m},m.ref_id||m.id):M.jsx(Qc,{hide:d,node:m},m.ref_id||m.id)},m.ref_id)})}),d&&M.jsx(Gd,{})]})});Yd.displayName="Cubes";const yw={earthRef:null},xw=uu(n=>({...yw,setEarthRef:e=>n({earthRef:e})})),Tw=new X(0,0,0),ww=()=>{const n=b.useRef(null),e=b.useRef(null),{graphStyle:t,showSelectionGraph:s}=nt(a=>a),i=xw(a=>a.setEarthRef),r=on("textures/earth/galaxy.png"),o=on("textures/earth/clouds.png");return Rt(({camera:a})=>{e.current&&e.current.position.copy(a.getWorldPosition(Tw))}),b.useLayoutEffect(()=>{n.current&&i(n)},[i]),t!=="earth"||s?null:M.jsxs(M.Fragment,{children:[M.jsxs("mesh",{ref:n,userData:{type:"earth"},children:[M.jsx("sphereGeometry",{args:[Br,200,200]}),M.jsx(kw,{})]}),M.jsxs("mesh",{children:[M.jsx("sphereGeometry",{args:[Br+2,200,200]}),M.jsx("meshStandardMaterial",{alphaMap:o,map:o,transparent:!0})]}),M.jsxs("mesh",{children:[M.jsx("sphereGeometry",{args:[Br*4,200,200]}),M.jsx("meshStandardMaterial",{map:r,opacity:.4,side:Mi,transparent:!0})]}),M.jsx("directionalLight",{ref:e,intensity:.9,position:[0,0,Br*3]})]})},kw=()=>{const n=on("textures/earth/earth.jpeg"),e=on("textures/earth/bump.jpeg"),t=on("textures/earth/water.png"),s=b.useMemo(()=>new fr({map:n,bumpMap:e,aoMap:e,roughnessMap:e,metalnessMap:t,toneMapped:!0,roughness:35,metalness:0}),[n,e,t]);return M.jsx("meshStandardMaterial",{...s})},Sw="C",Cw=256,bw=256,Ew={g:"LottieFiles AE 0.1.20"},Ow=[{ty:0,nm:"I",sr:1,st:0,op:26,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_0",ind:1},{ty:0,nm:"I",sr:1,st:26,op:52,ip:26,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_1",ind:2},{ty:0,nm:"I",sr:1,st:52,op:78,ip:52,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_2",ind:3},{ty:0,nm:"I",sr:1,st:78,op:108,ip:78,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_3",ind:4}],Aw="5.5.7",Mw=60,Dw=104,Rw=0,Pw=[{nm:"",id:"comp_0",layers:[{ty:4,nm:"I",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.656,.016],[0,20],[-34.641,0],[.016,-19.984]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[51.962,10],[17.321,30],[17.321,-10],[51.962,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,-9.984],[17.32,10],[17.32,-30],[-17.32,-50.016]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,30],[17.32,50],[17.305,10],[-17.32,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.321,10],[-51.962,30],[-51.962,-10],[-17.321,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[0,20],[-34.641,0],[0,-20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:1}]},{nm:"",id:"comp_1",layers:[{ty:4,nm:"R",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[0,0,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:0}},ef:[],shapes:[],ind:1},{ty:4,nm:"S",sr:1,st:-20,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,-10.016],[-17.32,-30],[17.32,-50],[51.961,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:2,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[.015,-20],[0,20],[34.641,40]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:3,parent:1},{ty:4,nm:"S",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,-10.016],[-17.32,-30],[17.32,-50],[51.961,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:4,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:33,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.324,30],[-17.34,-9.984],[17.336,-30.016],[17.336,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:5,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:35,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[.015,-20],[0,20],[34.641,40]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:6,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.324,30],[-17.34,-9.984],[17.336,-30.016],[17.336,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:7,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.305,30],[-17.336,-9.984],[17.336,-30.016],[17.32,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:8,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[.016,-20.016],[-34.643,-40],[-34.641,.016],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:9,parent:1},{ty:4,nm:"S",sr:1,st:-20,op:31,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,-10],[17.321,30],[-17.321,10],[-17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.305,50],[-51.961,30],[-17.321,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:10,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:34,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.305,30],[-17.336,-9.984],[17.336,-30.016],[17.32,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:11,parent:1},{ty:4,nm:"S",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,-10],[17.321,30],[-17.321,10],[-17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.305,50],[-51.961,30],[-17.321,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:12,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[.016,-20.016],[-34.643,-40],[-34.641,.016],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:13,parent:1}]},{nm:"",id:"comp_2",layers:[{ty:4,nm:"R",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[0,0,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:0}},ef:[],shapes:[],ind:1},{ty:4,nm:"T",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-34.656,.031],[.047,-19.969],[34.652,.031],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:2,parent:1},{ty:4,nm:"S",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[17.32,-9.984],[17.32,-50],[-17.32,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:3,parent:1},{ty:4,nm:"F",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.321,30],[-51.962,10],[-51.962,-30],[-17.321,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:4,parent:1},{ty:4,nm:"S",sr:1,st:0,op:30,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[17.32,-9.984],[17.32,-50],[-17.32,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:5,parent:1},{ty:4,nm:"F",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[51.962,30],[17.321,10],[17.321,-30],[51.962,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:6,parent:1},{ty:4,nm:"S",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,50],[17.32,30],[17.336,-10],[-17.336,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:7,parent:1},{ty:4,nm:"F",sr:1,st:0,op:30,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[51.962,30],[17.321,10],[17.321,-30],[51.962,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:8,parent:1},{ty:4,nm:"T",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-34.656,0],[.015,-20],[34.656,0],[.012,20.062]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:9,parent:1}]},{nm:"",id:"comp_3",layers:[{ty:4,nm:"R",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[0,0,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:0}},ef:[],shapes:[],ind:1},{ty:4,nm:"S",sr:1,st:0,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-10],[-17.32,-30.016],[-51.961,-10],[-17.305,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:2,parent:1},{ty:4,nm:"T",sr:1,st:0,op:32,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[.015,60.016],[-34.642,40],[-34.641,0],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:3,parent:1},{ty:4,nm:"S",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[-17.32,-30],[17.32,-10],[17.32,30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.312,-10],[-17.313,10],[17.332,30],[51.977,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:4,parent:1},{ty:4,nm:"F",sr:1,st:0,op:32,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-29.984],[17.348,10],[-17.305,30],[-17.305,-9.984]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:5,parent:1},{ty:4,nm:"F",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-30],[17.32,10],[-17.32,30],[-17.336,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:6,parent:1},{ty:4,nm:"S",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-10],[-17.32,-30.016],[-51.961,-10],[-17.305,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:7,parent:1},{ty:4,nm:"T",sr:1,st:0,op:32,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[0,-20],[0,-60.016],[34.641,-40]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:8,parent:1},{ty:4,nm:"S",sr:1,st:0,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[-17.32,-30],[17.32,-10],[17.32,30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.312,-10],[-17.313,10],[17.332,30],[51.977,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:9,parent:1},{ty:4,nm:"F",sr:1,st:0,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-30],[17.32,10],[-17.32,30],[-17.336,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:10,parent:1}]}],Iw={nm:Sw,h:Cw,w:bw,meta:Ew,layers:Ow,v:Aw,fr:Mw,op:Dw,ip:Rw,assets:Pw},Nw=({meshId:n})=>{const e=b.useRef(null);return b.useEffect(()=>{const t=document.getElementById(`lottie-animation-${n}`);return t&&(e.current=uf.loadAnimation({container:t,animationData:Iw,loop:!0,autoplay:!0})),()=>{e.current&&e.current.destroy()}},[n]),M.jsx("div",{id:`lottie-animation-${n}`,style:{width:"2em",height:"2em"}})},ya=()=>Math.floor(Math.random()*2001)-1e3,Fw=()=>M.jsx(M.Fragment,{children:["a","b","c"].map(n=>{const e=ya(),t=ya(),s=ya();return M.jsx("mesh",{position:[e,t,s],children:M.jsx(dr,{center:!0,sprite:!0,children:M.jsx(Uw,{children:M.jsx(Nw,{meshId:n})})})},n)})}),Uw=ze.div` border: 2px solid white; border-radius: 50%; display: flex; @@ -835,7 +835,7 @@ ${a}`}const Kc=b.memo(({node:n,hide:e})=>{const t=b.useRef(null),s=Jt(),i=cf(),o top: 0; background-color: ${we.black}; z-index: 1; -`,Ww=()=>M.jsx(dr,{children:M.jsx(vp,{})}),Gw=()=>{const{universeColor:n}=tp("universe",{universeColor:we.black}),e=Jt(),t=b.useMemo(()=>e!=null&&e.node_type?fu(e.node_type):Nx,[e]);return M.jsxs(M.Fragment,{children:[M.jsx("color",{args:[n],attach:"background"}),M.jsx(Of,{}),M.jsx(qx,{}),M.jsxs(Np,{children:[M.jsxs(mm,{autoClear:!1,multisampling:8,children:[M.jsx(ym,{darkness:.7,eskil:!1,offset:.05}),M.jsx(gm,{luminanceThreshold:1,mipmapBlur:!0,resolutionX:Oe.AUTO_SIZE,resolutionY:Oe.AUTO_SIZE}),M.jsx(vm,{blendFunction:ee.SCREEN,blur:!0,edgeStrength:4,hiddenEdgeColor:t,visibleEdgeColor:t})]}),M.jsx(jw,{})]})]})};let xa=null;const Yw={aspect:window.innerWidth/window.innerHeight,far:3e4,near:1,position:[Pi.x,Pi.y,Pi.z]},Zw=()=>{const[n,e,t]=[Ns(a=>a.setIsUserScrollingOnHtmlPanel),Ns(a=>a.setIsUserScrolling),Ns(a=>a.setUserMovedCamera)],s=xn(a=>a.isFetching),i=hr(a=>a.universeQuestionIsOpen),r=b.useCallback(a=>{var u;const{target:c}=a,{offsetParent:l}=c;xa&&clearTimeout(xa),(u=l==null?void 0:l.classList)!=null&&u.contains("html-panel")&&l.clientHeight{e(!1),n(!1)},200)},[e,n,t]),o=b.useCallback(a=>pf(a,"threeState"),[]);return M.jsxs($w,{children:[M.jsx(b.Suspense,{fallback:null,children:M.jsxs(bf,{camera:Yw,id:"universe-canvas",onCreated:o,onWheel:r,children:[mf&&M.jsx(Ef,{position:"bottom-right"}),M.jsxs(b.Suspense,{fallback:M.jsx(Ww,{}),children:[M.jsx(Rp,{}),M.jsx(Pp,{}),M.jsx(Ip,{}),M.jsx(Gw,{})]})]})}),i&&M.jsx(km,{}),s&&M.jsx(Hw,{fullSize:!1}),M.jsx(ep,{})]})},$w=ze(xs)` +`,Ww=()=>M.jsx(dr,{children:M.jsx(vp,{})}),Gw=()=>{const{universeColor:n}=sp("universe",{universeColor:we.black}),e=Jt(),t=b.useMemo(()=>e!=null&&e.node_type?fu(e.node_type):Nx,[e]);return M.jsxs(M.Fragment,{children:[M.jsx("color",{args:[n],attach:"background"}),M.jsx(Of,{}),M.jsx(qx,{}),M.jsxs(Np,{children:[M.jsxs(mm,{autoClear:!1,multisampling:8,children:[M.jsx(ym,{darkness:.7,eskil:!1,offset:.05}),M.jsx(gm,{luminanceThreshold:1,mipmapBlur:!0,resolutionX:Oe.AUTO_SIZE,resolutionY:Oe.AUTO_SIZE}),M.jsx(vm,{blendFunction:ee.SCREEN,blur:!0,edgeStrength:4,hiddenEdgeColor:t,visibleEdgeColor:t})]}),M.jsx(jw,{})]})]})};let xa=null;const Yw={aspect:window.innerWidth/window.innerHeight,far:3e4,near:1,position:[Pi.x,Pi.y,Pi.z]},Zw=()=>{const[n,e,t]=[Ns(a=>a.setIsUserScrollingOnHtmlPanel),Ns(a=>a.setIsUserScrolling),Ns(a=>a.setUserMovedCamera)],s=xn(a=>a.isFetching),i=hr(a=>a.universeQuestionIsOpen),r=b.useCallback(a=>{var u;const{target:c}=a,{offsetParent:l}=c;xa&&clearTimeout(xa),(u=l==null?void 0:l.classList)!=null&&u.contains("html-panel")&&l.clientHeight{e(!1),n(!1)},200)},[e,n,t]),o=b.useCallback(a=>pf(a,"threeState"),[]);return M.jsxs($w,{children:[M.jsx(b.Suspense,{fallback:null,children:M.jsxs(bf,{camera:Yw,id:"universe-canvas",onCreated:o,onWheel:r,children:[mf&&M.jsx(Ef,{position:"bottom-right"}),M.jsxs(b.Suspense,{fallback:M.jsx(Ww,{}),children:[M.jsx(Rp,{}),M.jsx(Pp,{}),M.jsx(Ip,{}),M.jsx(Gw,{})]})]})}),i&&M.jsx(km,{}),s&&M.jsx(Hw,{fullSize:!1}),M.jsx(tp,{})]})},$w=ze(xs)` flex: 1 1 100%; position: relative; -`,zk=b.memo(Zw);export{zk as Universe}; +`,Bk=b.memo(Zw);export{Bk as Universe}; diff --git a/build/assets/index-f802a35d.js b/build/assets/index-f330db9f.js similarity index 93% rename from build/assets/index-f802a35d.js rename to build/assets/index-f330db9f.js index c2e8e035c..ad80a34e7 100644 --- a/build/assets/index-f802a35d.js +++ b/build/assets/index-f330db9f.js @@ -1,4 +1,4 @@ -import{r as h,b as q,g as Q,s as H,_ as N,u as X,a as K,j as e,c as J,d as ee,e as P,ae as ut,f as oe,af as gt,o as d,q as x,T as _,F as g,O as E,ba as ft,ah as se,R as ne,B as ae,ab as mt,bb as bt,bc as Ge,v as re,bd as Ze,a8 as ye,aZ as ke,aY as _e,a$ as Le,be as Ct,J as Ye,bf as jt,bg as qe,bh as yt,aW as wt,bi as le,bj as vt,A as Tt,C as St,U as $t}from"./index-21067c9d.js";import{B as ce}from"./index-54401641.js";import{B as W,I as Y,j as te,h as we,F as ve}from"./index-93bc2f63.js";import{T as Me,s as D,a as Qe,S as Xe,A as Te,N as Ke,F as Je,b as et,E as kt,D as _t,c as tt,Q as st,V as ot,d as Lt}from"./NodeCircleIcon-a8e305b7.js";import{P as Mt}from"./PlusIcon-c31fb232.js";import{C as M}from"./ClipLoader-19a8277d.js";import{f as Nt,g as Bt,h as zt,a as It,i as Rt}from"./index.esm-9353033f.js";import{P as Se,a as Et}from"./Popover-8ff60b97.js";import{S as nt,T as Ne}from"./SearchIcon-d549dd07.js";import{I as At,A as $e,O as rt,T as it}from"./index-f870d337.js";import{B as Ot,T as Ft}from"./index-de7da582.js";import{D as Ht}from"./DeleteIcon-396521e3.js";import{u as I}from"./index-9a45d929.js";import{M as Be,A as Wt}from"./MergeIcon-d047ebb5.js";import{C as at}from"./CheckIcon-54252c75.js";import{T as Pt,a as Ut}from"./Tabs-b4885406.js";import"./useSlotProps-f54e8b6d.js";import"./Stack-dbe00046.js";import"./index-aac659dd.js";import"./createSvgIcon-b719273b.js";import"./TextareaAutosize-9f8d1e37.js";import"./InfoIcon-473ded19.js";const Dt=h.createContext(),lt=Dt;function Vt(t){return q("MuiTable",t)}Q("MuiTable",["root","stickyHeader"]);const Gt=["className","component","padding","size","stickyHeader"],Zt=t=>{const{classes:s,stickyHeader:n}=t;return ee({root:["root",n&&"stickyHeader"]},Vt,s)},Yt=H("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,n.stickyHeader&&s.stickyHeader]}})(({theme:t,ownerState:s})=>N({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":N({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},s.stickyHeader&&{borderCollapse:"separate"})),ze="table",qt=h.forwardRef(function(s,n){const r=X({props:s,name:"MuiTable"}),{className:a,component:l=ze,padding:i="normal",size:o="medium",stickyHeader:c=!1}=r,u=K(r,Gt),m=N({},r,{component:l,padding:i,size:o,stickyHeader:c}),p=Zt(m),C=h.useMemo(()=>({padding:i,size:o,stickyHeader:c}),[i,o,c]);return e.jsx(lt.Provider,{value:C,children:e.jsx(Yt,N({as:l,role:l===ze?null:"table",ref:n,className:J(p.root,a),ownerState:m},u))})}),de=qt,Qt=h.createContext(),pe=Qt;function Xt(t){return q("MuiTableBody",t)}Q("MuiTableBody",["root"]);const Kt=["className","component"],Jt=t=>{const{classes:s}=t;return ee({root:["root"]},Xt,s)},es=H("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(t,s)=>s.root})({display:"table-row-group"}),ts={variant:"body"},Ie="tbody",ss=h.forwardRef(function(s,n){const r=X({props:s,name:"MuiTableBody"}),{className:a,component:l=Ie}=r,i=K(r,Kt),o=N({},r,{component:l}),c=Jt(o);return e.jsx(pe.Provider,{value:ts,children:e.jsx(es,N({className:J(c.root,a),as:l,ref:n,role:l===Ie?null:"rowgroup",ownerState:o},i))})}),os=ss;function ns(t){return q("MuiTableCell",t)}const rs=Q("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),is=rs,as=["align","className","component","padding","scope","size","sortDirection","variant"],ls=t=>{const{classes:s,variant:n,align:r,padding:a,size:l,stickyHeader:i}=t,o={root:["root",n,i&&"stickyHeader",r!=="inherit"&&`align${P(r)}`,a!=="normal"&&`padding${P(a)}`,`size${P(l)}`]};return ee(o,ns,s)},cs=H("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,s[n.variant],s[`size${P(n.size)}`],n.padding!=="normal"&&s[`padding${P(n.padding)}`],n.align!=="inherit"&&s[`align${P(n.align)}`],n.stickyHeader&&s.stickyHeader]}})(({theme:t,ownerState:s})=>N({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid +import{r as h,b as q,g as Q,s as H,_ as N,u as X,a as K,j as e,c as J,d as ee,e as P,ae as ut,f as oe,af as gt,o as d,q as x,T as _,F as g,O as E,ba as ft,ah as se,R as ne,B as ae,ab as mt,bb as bt,bc as Ge,v as re,bd as Ze,a8 as ye,aZ as ke,aY as _e,a$ as Le,be as Ct,J as Ye,bf as jt,bg as qe,bh as yt,aW as wt,bi as le,bj as vt,A as Tt,C as St,U as $t}from"./index-f50d1ab5.js";import{B as ce}from"./index-cc30c812.js";import{B as W,I as Y,k as te,i as we,F as ve}from"./index-f857b04d.js";import{T as Me,s as D,a as Qe,S as Xe,A as Te,N as Ke,F as Je,b as et,E as kt,D as _t,c as tt,Q as st,V as ot,d as Lt}from"./NodeCircleIcon-b9d0958d.js";import{P as Mt}from"./PlusIcon-95ca5a40.js";import{C as M}from"./ClipLoader-f52b169b.js";import{f as Nt,g as Bt,h as zt,a as It,i as Rt}from"./index.esm-22240fd2.js";import{P as Se,a as Et}from"./Popover-a7534715.js";import{S as nt,T as Ne}from"./SearchIcon-c000717e.js";import{I as At,A as $e,O as rt,T as it}from"./index-f812334e.js";import{B as Ot,T as Ft}from"./index-bd1e0bc6.js";import{D as Ht}from"./DeleteIcon-9461c6b1.js";import{u as I}from"./index-3886dc98.js";import{M as Be,A as Wt}from"./MergeIcon-dc64ffd2.js";import{C as at}from"./CheckIcon-9f687844.js";import{T as Pt,a as Ut}from"./Tabs-6e4fbac2.js";import"./useSlotProps-f1483ce3.js";import"./Stack-a4065033.js";import"./createSvgIcon-c64a52be.js";import"./TextareaAutosize-04e2890c.js";import"./InfoIcon-89f3f76d.js";const Dt=h.createContext(),lt=Dt;function Vt(t){return q("MuiTable",t)}Q("MuiTable",["root","stickyHeader"]);const Gt=["className","component","padding","size","stickyHeader"],Zt=t=>{const{classes:s,stickyHeader:n}=t;return ee({root:["root",n&&"stickyHeader"]},Vt,s)},Yt=H("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,n.stickyHeader&&s.stickyHeader]}})(({theme:t,ownerState:s})=>N({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":N({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},s.stickyHeader&&{borderCollapse:"separate"})),ze="table",qt=h.forwardRef(function(s,n){const r=X({props:s,name:"MuiTable"}),{className:a,component:l=ze,padding:i="normal",size:o="medium",stickyHeader:c=!1}=r,u=K(r,Gt),m=N({},r,{component:l,padding:i,size:o,stickyHeader:c}),p=Zt(m),C=h.useMemo(()=>({padding:i,size:o,stickyHeader:c}),[i,o,c]);return e.jsx(lt.Provider,{value:C,children:e.jsx(Yt,N({as:l,role:l===ze?null:"table",ref:n,className:J(p.root,a),ownerState:m},u))})}),de=qt,Qt=h.createContext(),pe=Qt;function Xt(t){return q("MuiTableBody",t)}Q("MuiTableBody",["root"]);const Kt=["className","component"],Jt=t=>{const{classes:s}=t;return ee({root:["root"]},Xt,s)},es=H("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(t,s)=>s.root})({display:"table-row-group"}),ts={variant:"body"},Ie="tbody",ss=h.forwardRef(function(s,n){const r=X({props:s,name:"MuiTableBody"}),{className:a,component:l=Ie}=r,i=K(r,Kt),o=N({},r,{component:l}),c=Jt(o);return e.jsx(pe.Provider,{value:ts,children:e.jsx(es,N({className:J(c.root,a),as:l,ref:n,role:l===Ie?null:"rowgroup",ownerState:o},i))})}),os=ss;function ns(t){return q("MuiTableCell",t)}const rs=Q("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),is=rs,as=["align","className","component","padding","scope","size","sortDirection","variant"],ls=t=>{const{classes:s,variant:n,align:r,padding:a,size:l,stickyHeader:i}=t,o={root:["root",n,i&&"stickyHeader",r!=="inherit"&&`align${P(r)}`,a!=="normal"&&`padding${P(a)}`,`size${P(l)}`]};return ee(o,ns,s)},cs=H("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,s[n.variant],s[`size${P(n.size)}`],n.padding!=="normal"&&s[`padding${P(n.padding)}`],n.align!=="inherit"&&s[`align${P(n.align)}`],n.stickyHeader&&s.stickyHeader]}})(({theme:t,ownerState:s})=>N({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid ${t.palette.mode==="light"?ut(oe(t.palette.divider,1),.88):gt(oe(t.palette.divider,1),.68)}`,textAlign:"left",padding:16},s.variant==="head"&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},s.variant==="body"&&{color:(t.vars||t).palette.text.primary},s.variant==="footer"&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},s.size==="small"&&{padding:"6px 16px",[`&.${is.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},s.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},s.padding==="none"&&{padding:0},s.align==="left"&&{textAlign:"left"},s.align==="center"&&{textAlign:"center"},s.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},s.align==="justify"&&{textAlign:"justify"},s.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})),ds=h.forwardRef(function(s,n){const r=X({props:s,name:"MuiTableCell"}),{align:a="inherit",className:l,component:i,padding:o,scope:c,size:u,sortDirection:m,variant:p}=r,C=K(r,as),b=h.useContext(lt),j=h.useContext(pe),w=j&&j.variant==="head";let y;i?y=i:y=w?"th":"td";let S=c;y==="td"?S=void 0:!S&&w&&(S="col");const $=p||j&&j.variant,A=N({},r,{align:a,component:y,padding:o||(b&&b.padding?b.padding:"normal"),size:u||(b&&b.size?b.size:"medium"),sortDirection:m,stickyHeader:$==="head"&&b&&b.stickyHeader,variant:$}),O=ls(A);let B=null;return m&&(B=m==="asc"?"ascending":"descending"),e.jsx(cs,N({as:y,ref:n,className:J(O.root,l),"aria-sort":B,scope:S,ownerState:A},C))}),ps=ds;function hs(t){return q("MuiTableHead",t)}Q("MuiTableHead",["root"]);const xs=["className","component"],us=t=>{const{classes:s}=t;return ee({root:["root"]},hs,s)},gs=H("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(t,s)=>s.root})({display:"table-header-group"}),fs={variant:"head"},Re="thead",ms=h.forwardRef(function(s,n){const r=X({props:s,name:"MuiTableHead"}),{className:a,component:l=Re}=r,i=K(r,xs),o=N({},r,{component:l}),c=us(o);return e.jsx(pe.Provider,{value:fs,children:e.jsx(gs,N({as:l,className:J(c.root,a),ref:n,role:l===Re?null:"rowgroup",ownerState:o},i))})}),ct=ms;function bs(t){return q("MuiTableRow",t)}const Cs=Q("MuiTableRow",["root","selected","hover","head","footer"]),Ee=Cs,js=["className","component","hover","selected"],ys=t=>{const{classes:s,selected:n,hover:r,head:a,footer:l}=t;return ee({root:["root",n&&"selected",r&&"hover",a&&"head",l&&"footer"]},bs,s)},ws=H("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,n.head&&s.head,n.footer&&s.footer]}})(({theme:t})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Ee.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${Ee.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:oe(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:oe(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}})),Ae="tr",vs=h.forwardRef(function(s,n){const r=X({props:s,name:"MuiTableRow"}),{className:a,component:l=Ae,hover:i=!1,selected:o=!1}=r,c=K(r,js),u=h.useContext(pe),m=N({},r,{component:l,hover:i,selected:o,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),p=ys(m);return e.jsx(ws,N({as:l,ref:n,className:J(p.root,a),role:l===Ae?null:"row",ownerState:m},c))}),V=vs;function Ce(t){const s=new Date(Number(t)*1e3),n=s.getFullYear(),r=(1+s.getMonth()).toString().padStart(2,"0");return`${s.getDate().toString().padStart(2,"0")}/${r}/${n}`}const f=d(ps)` && { color: ${x.white}; @@ -845,4 +845,4 @@ import{r as h,b as q,g as Q,s as H,_ as N,u as X,a as K,j as e,c as J,d as ee,e @media (max-width: 768px) { padding: 3px; } -`,Dn=()=>{const{close:t}=E("sourcesTable"),{visible:s}=E("addContent");return s?null:e.jsx(ce,{background:"BG1",id:"sourcesTable",kind:"large",noWrap:!0,onClose:t,preventOutsideClose:!0,children:e.jsx(fn,{})})};export{Dn as SourcesTableModal}; +`,Un=()=>{const{close:t}=E("sourcesTable"),{visible:s}=E("addContent");return s?null:e.jsx(ce,{background:"BG1",id:"sourcesTable",kind:"large",noWrap:!0,onClose:t,preventOutsideClose:!0,children:e.jsx(fn,{})})};export{Un as SourcesTableModal}; diff --git a/build/assets/index-21067c9d.js b/build/assets/index-f50d1ab5.js similarity index 99% rename from build/assets/index-21067c9d.js rename to build/assets/index-f50d1ab5.js index 46f636444..76030deaf 100644 --- a/build/assets/index-21067c9d.js +++ b/build/assets/index-f50d1ab5.js @@ -664,4 +664,4 @@ PROCEED WITH CAUTION! align-items: center; width: 100%; height: 100%; -`,LazyApp=reactExports.lazy(()=>__vitePreload(()=>import("./index-93bc2f63.js").then(o=>o.y),["assets/index-93bc2f63.js","assets/index-b60658ac.css"]).then(({App:o})=>({default:o}))),AppContainer=()=>{const o=jsxRuntimeExports.jsx(LazyApp,{}),{splashDataLoading:et}=useDataStore(tt=>tt);return jsxRuntimeExports.jsxs(AppProviders,{children:[et&&jsxRuntimeExports.jsx(Splash,{}),jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx("div",{children:"Loading..."}),children:jsxRuntimeExports.jsx(AuthGuard,{children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{element:o,path:"/"}),jsxRuntimeExports.jsx(Route,{element:o,path:"/search"}),jsxRuntimeExports.jsx(Route,{element:o,path:"*"})]})})}),jsxRuntimeExports.jsx(E2ETests,{})]})},index="",root=client$1.createRoot(document.getElementById("root"));root.render(isE2E?jsxRuntimeExports.jsx(BrowserRouter,{children:jsxRuntimeExports.jsx(AppContainer,{})}):jsxRuntimeExports.jsx(React.StrictMode,{children:jsxRuntimeExports.jsx(BrowserRouter,{children:jsxRuntimeExports.jsx(AppContainer,{})})}));reportWebVitals();overrideConsole();export{$2AODx$react as $,useAppStore as A,useDataStore as B,useFeatureFlagStore as C,useHasAiChatsResponseLoading as D,__vitePreload as E,Flex as F,media as G,Stats as H,useSearchParams as I,useUserStore as J,useAiSummaryStore as K,LinearProgress$1 as L,isDevelopment as M,updateBudget as N,useModal as O,PropTypes as P,useNavigate as Q,React as R,SocketContext as S,Text as T,isSphinx as U,useSelectedNodeRelativeIds as V,We as W,forceSimulation as X,forceCollide as Y,forceCenter as Z,_extends$1 as _,_objectWithoutPropertiesLoose as a,RSS as a$,forceManyBody as a0,forceLink as a1,NODE_RELATIVE_HIGHLIGHT_COLORS as a2,useHoveredNode as a3,useNodeTypes as a4,lottie as a5,fetchNodeEdges as a6,NodesIcon as a7,lodashExports as a8,addToGlobalForE2e as a9,_getTag as aA,isBufferExports as aB,isTypedArray_1 as aC,isObject_1 as aD,keys_1 as aE,isArguments_1 as aF,_isIndex as aG,isLength_1 as aH,_Set as aI,_arrayPush as aJ,isArrayLike_1 as aK,_baseUnary as aL,_defineProperty$1 as aM,_root as aN,_getPrototype as aO,_baseAssignValue as aP,getFullTranscript as aQ,getAugmentedNamespace as aR,propTypesExports as aS,useHasAiChats as aT,postAboutData as aU,NODE_ADD_ERROR as aV,requiredRule as aW,LINK as aX,YOUTUBE_CHANNEL as aY,TWITTER_HANDLE as aZ,TWITTER_SOURCE as a_,api as aa,distExports$1 as ab,executeIfProd as ac,useTheme as ad,lighten as ae,darken as af,slotShouldForwardProp as ag,Ce as ah,Ue as ai,Tooltip as aj,hooks as ak,commonjsGlobal as al,commonjsRequire as am,useFilteredNodes as an,getSchemaAll as ao,_baseGetTag as ap,isObjectLike_1 as aq,isArray_1 as ar,_MapCache as as,_Symbol as at,isObject$b as au,isFunction$3 as av,_Uint8Array as aw,eq_1 as ax,_getAllKeys as ay,_Stack as az,generateUtilityClass as b,WEB_PAGE as b0,DOCUMENT as b1,formatBudget as b2,getPriceData as b3,isE2E as b4,sphinxBridge as b5,getLSat as b6,payLsat as b7,getNodeType as b8,getNodeSchemaTypes as b9,defaultTheme$1 as bA,THEME_ID as bB,formatMuiErrorMessage as bC,deepmerge as bD,defaultSxConfig$1 as bE,isPlainObject as bF,createStyled as bG,createTheme$1 as bH,useThemeProps$1 as bI,createUnarySpacing as bJ,mergeBreakpointsInOrder as bK,getValue as bL,useTheme$3 as bM,getNodeContent as ba,approveRadarData as bb,deleteRadarData as bc,getRadarData as bd,putRadarData as be,getEdgeTypes as bf,getEdges as bg,postEdgeType as bh,putNodeData as bi,postMergeTopics as bj,getTopicsData as bk,deleteNode as bl,css as bm,changeNodeType as bn,resolveBreakpointValues as bo,handleBreakpoints as bp,updateEdgeType as bq,postBluePrintType as br,deleteEdgeType as bs,createRoot as bt,react as bu,GRAPH_GROUND_COLOR as bv,GRAPH_LIGHT_INTENSITY as bw,GRAPH_FOG_COLOR as bx,Global as by,useTheme$2 as bz,clsx$1 as c,composeClasses as d,capitalize as e,alpha as f,generateUtilityClasses as g,reactDomExports as h,rootShouldForwardProp as i,jsxRuntimeExports as j,keyframes as k,resolveProps as l,ReactDOM as m,getDefaultExportFromCjs as n,styled$3 as o,useGraphStore as p,colors as q,reactExports as r,styled$1 as s,graphStyles as t,useThemeProps as u,clsx as v,create$3 as w,devtools as x,useSelectedNode as y,useUpdateSelectedNode as z}; +`,LazyApp=reactExports.lazy(()=>__vitePreload(()=>import("./index-f857b04d.js").then(o=>o.D),["assets/index-f857b04d.js","assets/index-b60658ac.css"]).then(({App:o})=>({default:o}))),AppContainer=()=>{const o=jsxRuntimeExports.jsx(LazyApp,{}),{splashDataLoading:et}=useDataStore(tt=>tt);return jsxRuntimeExports.jsxs(AppProviders,{children:[et&&jsxRuntimeExports.jsx(Splash,{}),jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx("div",{children:"Loading..."}),children:jsxRuntimeExports.jsx(AuthGuard,{children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{element:o,path:"/"}),jsxRuntimeExports.jsx(Route,{element:o,path:"/search"}),jsxRuntimeExports.jsx(Route,{element:o,path:"*"})]})})}),jsxRuntimeExports.jsx(E2ETests,{})]})},index="",root=client$1.createRoot(document.getElementById("root"));root.render(isE2E?jsxRuntimeExports.jsx(BrowserRouter,{children:jsxRuntimeExports.jsx(AppContainer,{})}):jsxRuntimeExports.jsx(React.StrictMode,{children:jsxRuntimeExports.jsx(BrowserRouter,{children:jsxRuntimeExports.jsx(AppContainer,{})})}));reportWebVitals();overrideConsole();export{$2AODx$react as $,useAppStore as A,useDataStore as B,useFeatureFlagStore as C,useHasAiChatsResponseLoading as D,__vitePreload as E,Flex as F,media as G,Stats as H,useSearchParams as I,useUserStore as J,useAiSummaryStore as K,LinearProgress$1 as L,isDevelopment as M,updateBudget as N,useModal as O,PropTypes as P,useNavigate as Q,React as R,SocketContext as S,Text as T,isSphinx as U,useSelectedNodeRelativeIds as V,We as W,forceSimulation as X,forceCollide as Y,forceCenter as Z,_extends$1 as _,_objectWithoutPropertiesLoose as a,RSS as a$,forceManyBody as a0,forceLink as a1,NODE_RELATIVE_HIGHLIGHT_COLORS as a2,useHoveredNode as a3,useNodeTypes as a4,lottie as a5,fetchNodeEdges as a6,NodesIcon as a7,lodashExports as a8,addToGlobalForE2e as a9,_getTag as aA,isBufferExports as aB,isTypedArray_1 as aC,isObject_1 as aD,keys_1 as aE,isArguments_1 as aF,_isIndex as aG,isLength_1 as aH,_Set as aI,_arrayPush as aJ,isArrayLike_1 as aK,_baseUnary as aL,_defineProperty$1 as aM,_root as aN,_getPrototype as aO,_baseAssignValue as aP,getFullTranscript as aQ,getAugmentedNamespace as aR,propTypesExports as aS,useHasAiChats as aT,postAboutData as aU,NODE_ADD_ERROR as aV,requiredRule as aW,LINK as aX,YOUTUBE_CHANNEL as aY,TWITTER_HANDLE as aZ,TWITTER_SOURCE as a_,api as aa,distExports$1 as ab,executeIfProd as ac,useTheme as ad,lighten as ae,darken as af,slotShouldForwardProp as ag,Ce as ah,Ue as ai,Tooltip as aj,hooks as ak,commonjsGlobal as al,commonjsRequire as am,useFilteredNodes as an,getSchemaAll as ao,_baseGetTag as ap,isObjectLike_1 as aq,isArray_1 as ar,_MapCache as as,_Symbol as at,isObject$b as au,isFunction$3 as av,_Uint8Array as aw,eq_1 as ax,_getAllKeys as ay,_Stack as az,generateUtilityClass as b,WEB_PAGE as b0,DOCUMENT as b1,formatBudget as b2,getPriceData as b3,isE2E as b4,sphinxBridge as b5,getLSat as b6,payLsat as b7,getNodeType as b8,getNodeSchemaTypes as b9,defaultTheme$1 as bA,THEME_ID as bB,formatMuiErrorMessage as bC,deepmerge as bD,defaultSxConfig$1 as bE,isPlainObject as bF,createStyled as bG,createTheme$1 as bH,useThemeProps$1 as bI,createUnarySpacing as bJ,mergeBreakpointsInOrder as bK,getValue as bL,useTheme$3 as bM,getNodeContent as ba,approveRadarData as bb,deleteRadarData as bc,getRadarData as bd,putRadarData as be,getEdgeTypes as bf,getEdges as bg,postEdgeType as bh,putNodeData as bi,postMergeTopics as bj,getTopicsData as bk,deleteNode as bl,css as bm,changeNodeType as bn,resolveBreakpointValues as bo,handleBreakpoints as bp,updateEdgeType as bq,postBluePrintType as br,deleteEdgeType as bs,createRoot as bt,react as bu,GRAPH_GROUND_COLOR as bv,GRAPH_LIGHT_INTENSITY as bw,GRAPH_FOG_COLOR as bx,Global as by,useTheme$2 as bz,clsx$1 as c,composeClasses as d,capitalize as e,alpha as f,generateUtilityClasses as g,reactDomExports as h,rootShouldForwardProp as i,jsxRuntimeExports as j,keyframes as k,resolveProps as l,ReactDOM as m,getDefaultExportFromCjs as n,styled$3 as o,useGraphStore as p,colors as q,reactExports as r,styled$1 as s,graphStyles as t,useThemeProps as u,clsx as v,create$3 as w,devtools as x,useSelectedNode as y,useUpdateSelectedNode as z}; diff --git a/build/assets/index-f812334e.js b/build/assets/index-f812334e.js new file mode 100644 index 000000000..6ebfc4fef --- /dev/null +++ b/build/assets/index-f812334e.js @@ -0,0 +1,71 @@ +import{r as p,$ as Ot,j as f,by as wt,bz as Lt,_ as a,b as ye,g as Ie,s as w,e as O,u as Pe,a as ae,c as ne,d as $e,f as Re,bA as Mt,bB as Ft,bC as ct,k as dt,bm as ut,i as Xe,bD as To,ad as Tt,ag as Nt,o as At,q as je,F as zt}from"./index-f50d1ab5.js";import{g as xo,s as Dt,e as lo,o as Uo,f as pt,I as ft,T as Et}from"./index-f857b04d.js";import{u as fo,a as so,f as io,i as bt,b as Bt,P as No,F as jt,S as Wt}from"./Stack-a4065033.js";import{a as gt,b as _t,P as Ut,c as Ht}from"./Popover-a7534715.js";import{i as Ho,o as Fo,u as Vo}from"./useSlotProps-f1483ce3.js";import{c as Ao}from"./createSvgIcon-c64a52be.js";import{T as Vt}from"./TextareaAutosize-04e2890c.js";let Ko=0;function Kt(e){const[o,t]=p.useState(e),r=e||o;return p.useEffect(()=>{o==null&&(Ko+=1,t(`mui-${Ko}`))},[o]),r}const qo=Ot["useId".toString()];function zo(e){if(qo!==void 0){const o=qo();return e??o}return Kt(e)}const qt=e=>{const o=p.useRef({});return p.useEffect(()=>{o.current=e}),o.current},Gt=qt;function Xt(e){return e==null||Object.keys(e).length===0}function Yt(e){const{styles:o,defaultTheme:t={}}=e,r=typeof o=="function"?s=>o(Xt(s)?t:s):o;return f.jsx(wt,{styles:r})}function Zt({styles:e,themeId:o,defaultTheme:t={}}){const r=Lt(t),s=typeof e=="function"?e(o&&r[o]||r):e;return f.jsx(Yt,{styles:s})}const Jt=Ao(f.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function Go(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Qt(e={}){const{ignoreAccents:o=!0,ignoreCase:t=!0,limit:r,matchFrom:s="any",stringify:c,trim:d=!1}=e;return(i,{inputValue:b,getOptionLabel:u})=>{let m=d?b.trim():b;t&&(m=m.toLowerCase()),o&&(m=Go(m));const v=m?i.filter($=>{let h=(c||u)($);return t&&(h=h.toLowerCase()),o&&(h=Go(h)),s==="start"?h.indexOf(m)===0:h.indexOf(m)>-1}):i;return typeof r=="number"?v.slice(0,r):v}}function Lo(e,o){for(let t=0;t{var o;return e.current!==null&&((o=e.current.parentElement)==null?void 0:o.contains(document.activeElement))};function tn(e){const{unstable_isActiveElementInListbox:o=on,unstable_classNamePrefix:t="Mui",autoComplete:r=!1,autoHighlight:s=!1,autoSelect:c=!1,blurOnSelect:d=!1,clearOnBlur:i=!e.freeSolo,clearOnEscape:b=!1,componentName:u="useAutocomplete",defaultValue:m=e.multiple?[]:null,disableClearable:v=!1,disableCloseOnSelect:$=!1,disabled:h,disabledItemsFocusable:x=!1,disableListWrap:E=!1,filterOptions:_=en,filterSelectedOptions:R=!1,freeSolo:k=!1,getOptionDisabled:y,getOptionKey:S,getOptionLabel:z=l=>{var n;return(n=l.label)!=null?n:l},groupBy:T,handleHomeEndKeys:L=!e.freeSolo,id:q,includeInputInList:le=!1,inputValue:de,isOptionEqualToValue:oe=(l,n)=>l===n,multiple:M=!1,onChange:J,onClose:G,onHighlightChange:se,onInputChange:Q,onOpen:re,open:U,openOnFocus:F=!1,options:ie,readOnly:Se=!1,selectOnFocus:Le=!e.freeSolo,value:ue}=e,j=zo(q);let ee=z;ee=l=>{const n=z(l);return typeof n!="string"?String(n):n};const fe=p.useRef(!1),We=p.useRef(!0),Z=p.useRef(null),be=p.useRef(null),[Me,Y]=p.useState(null),[H,ze]=p.useState(-1),_e=s?0:-1,te=p.useRef(_e),[P,to]=fo({controlled:ue,default:m,name:u}),[W,xe]=fo({controlled:de,default:"",name:u,state:"inputValue"}),[Fe,ce]=p.useState(!1),Te=p.useCallback((l,n)=>{if(!(M?P.length!(R&&(M?P:[P]).some(n=>n!==null&&oe(l,n)))),{inputValue:Ee&&Ye?"":W,getOptionLabel:ee}):[],he=Gt({filteredOptions:B,value:P,inputValue:W});p.useEffect(()=>{const l=P!==he.value;Fe&&!l||k&&!l||Te(null,P)},[P,Te,Fe,he.value,k]);const Ke=me&&B.length>0&&!Se,qe=xo(l=>{l===-1?Z.current.focus():Me.querySelector(`[data-tag-index="${l}"]`).focus()});p.useEffect(()=>{M&&H>P.length-1&&(ze(-1),qe(-1))},[P,M,H,qe]);function I(l,n){if(!be.current||l<0||l>=B.length)return-1;let g=l;for(;;){const C=be.current.querySelector(`[data-option-index="${g}"]`),K=x?!1:!C||C.disabled||C.getAttribute("aria-disabled")==="true";if(C&&C.hasAttribute("tabindex")&&!K)return g;if(n==="next"?g=(g+1)%B.length:g=(g-1+B.length)%B.length,g===l)return-1}}const D=xo(({event:l,index:n,reason:g="auto"})=>{if(te.current=n,n===-1?Z.current.removeAttribute("aria-activedescendant"):Z.current.setAttribute("aria-activedescendant",`${j}-option-${n}`),se&&se(l,n===-1?null:B[n],g),!be.current)return;const C=be.current.querySelector(`[role="option"].${t}-focused`);C&&(C.classList.remove(`${t}-focused`),C.classList.remove(`${t}-focusVisible`));let K=be.current;if(be.current.getAttribute("role")!=="listbox"&&(K=be.current.parentElement.querySelector('[role="listbox"]')),!K)return;if(n===-1){K.scrollTop=0;return}const pe=be.current.querySelector(`[data-option-index="${n}"]`);if(pe&&(pe.classList.add(`${t}-focused`),g==="keyboard"&&pe.classList.add(`${t}-focusVisible`),K.scrollHeight>K.clientHeight&&g!=="mouse"&&g!=="touch")){const ge=pe,He=K.clientHeight+K.scrollTop,_o=ge.offsetTop+ge.offsetHeight;_o>He?K.scrollTop=_o-K.clientHeight:ge.offsetTop-ge.offsetHeight*(T?1.3:0){if(!N)return;const pe=I((()=>{const ge=B.length-1;if(n==="reset")return _e;if(n==="start")return 0;if(n==="end")return ge;const He=te.current+n;return He<0?He===-1&&le?-1:E&&te.current!==-1||Math.abs(n)>1?0:ge:He>ge?He===ge+1&&le?-1:E||Math.abs(n)>1?ge:0:He})(),g);if(D({index:pe,reason:C,event:l}),r&&n!=="reset")if(pe===-1)Z.current.value=W;else{const ge=ee(B[pe]);Z.current.value=ge,ge.toLowerCase().indexOf(W.toLowerCase())===0&&W.length>0&&Z.current.setSelectionRange(W.length,ge.length)}}),ke=()=>{const l=(n,g)=>{const C=n?ee(n):"",K=g?ee(g):"";return C===K};if(te.current!==-1&&he.filteredOptions&&he.filteredOptions.length!==B.length&&he.inputValue===W&&(M?P.length===he.value.length&&he.value.every((n,g)=>ee(P[g])===ee(n)):l(he.value,P))){const n=he.filteredOptions[te.current];if(n&&B.some(C=>ee(C)===ee(n)))return!0}return!1},Ze=p.useCallback(()=>{if(!N||ke())return;const l=M?P[0]:P;if(B.length===0||l==null){X({diff:"reset"});return}if(be.current){if(l!=null){const n=B[te.current];if(M&&n&&Lo(P,C=>oe(n,C))!==-1)return;const g=Lo(B,C=>oe(C,l));g===-1?X({diff:"reset"}):D({index:g});return}if(te.current>=B.length-1){D({index:B.length-1});return}D({index:te.current})}},[B.length,M?!1:P,R,X,D,N,W,M]),Po=xo(l=>{Dt(be,l),l&&Ze()});p.useEffect(()=>{Ze()},[Ze]);const Ae=l=>{me||(Ne(!0),De(!0),re&&re(l))},Ge=(l,n)=>{me&&(Ne(!1),G&&G(l,n))},Ue=(l,n,g,C)=>{if(M){if(P.length===n.length&&P.every((K,pe)=>K===n[pe]))return}else if(P===n)return;J&&J(l,n,g,C),to(n)},no=p.useRef(!1),eo=(l,n,g="selectOption",C="options")=>{let K=g,pe=n;if(M){pe=Array.isArray(P)?P.slice():[];const ge=Lo(pe,He=>oe(n,He));ge===-1?pe.push(n):C!=="freeSolo"&&(pe.splice(ge,1),K="removeOption")}Te(l,pe),Ue(l,pe,K,{option:n}),!$&&(!l||!l.ctrlKey&&!l.metaKey)&&Ge(l,K),(d===!0||d==="touch"&&no.current||d==="mouse"&&!no.current)&&Z.current.blur()};function go(l,n){if(l===-1)return-1;let g=l;for(;;){if(n==="next"&&g===P.length||n==="previous"&&g===-1)return-1;const C=Me.querySelector(`[data-tag-index="${g}"]`);if(!C||!C.hasAttribute("tabindex")||C.disabled||C.getAttribute("aria-disabled")==="true")g+=n==="next"?1:-1;else return g}}const mo=(l,n)=>{if(!M)return;W===""&&Ge(l,"toggleInput");let g=H;H===-1?W===""&&n==="previous"&&(g=P.length-1):(g+=n==="next"?1:-1,g<0&&(g=0),g===P.length&&(g=-1)),g=go(g,n),ze(g),qe(g)},ho=l=>{fe.current=!0,xe(""),Q&&Q(l,"","clear"),Ue(l,M?[]:null,"clear")},ko=l=>n=>{if(l.onKeyDown&&l.onKeyDown(n),!n.defaultMuiPrevented&&(H!==-1&&["ArrowLeft","ArrowRight"].indexOf(n.key)===-1&&(ze(-1),qe(-1)),n.which!==229))switch(n.key){case"Home":N&&L&&(n.preventDefault(),X({diff:"start",direction:"next",reason:"keyboard",event:n}));break;case"End":N&&L&&(n.preventDefault(),X({diff:"end",direction:"previous",reason:"keyboard",event:n}));break;case"PageUp":n.preventDefault(),X({diff:-Xo,direction:"previous",reason:"keyboard",event:n}),Ae(n);break;case"PageDown":n.preventDefault(),X({diff:Xo,direction:"next",reason:"keyboard",event:n}),Ae(n);break;case"ArrowDown":n.preventDefault(),X({diff:1,direction:"next",reason:"keyboard",event:n}),Ae(n);break;case"ArrowUp":n.preventDefault(),X({diff:-1,direction:"previous",reason:"keyboard",event:n}),Ae(n);break;case"ArrowLeft":mo(n,"previous");break;case"ArrowRight":mo(n,"next");break;case"Enter":if(te.current!==-1&&N){const g=B[te.current],C=y?y(g):!1;if(n.preventDefault(),C)return;eo(n,g,"selectOption"),r&&Z.current.setSelectionRange(Z.current.value.length,Z.current.value.length)}else k&&W!==""&&Ee===!1&&(M&&n.preventDefault(),eo(n,W,"createOption","freeSolo"));break;case"Escape":N?(n.preventDefault(),n.stopPropagation(),Ge(n,"escape")):b&&(W!==""||M&&P.length>0)&&(n.preventDefault(),n.stopPropagation(),ho(n));break;case"Backspace":if(M&&!Se&&W===""&&P.length>0){const g=H===-1?P.length-1:H,C=P.slice();C.splice(g,1),Ue(n,C,"removeOption",{option:P[g]})}break;case"Delete":if(M&&!Se&&W===""&&P.length>0&&H!==-1){const g=H,C=P.slice();C.splice(g,1),Ue(n,C,"removeOption",{option:P[g]})}break}},jo=l=>{ce(!0),F&&!fe.current&&Ae(l)},ro=l=>{if(o(be)){Z.current.focus();return}ce(!1),We.current=!0,fe.current=!1,c&&te.current!==-1&&N?eo(l,B[te.current],"blur"):c&&k&&W!==""?eo(l,W,"blur","freeSolo"):i&&Te(l,P),Ge(l,"blur")},Ce=l=>{const n=l.target.value;W!==n&&(xe(n),De(!1),Q&&Q(l,n,"input")),n===""?!v&&!M&&Ue(l,null,"clear"):Ae(l)},ve=l=>{const n=Number(l.currentTarget.getAttribute("data-option-index"));te.current!==n&&D({event:l,index:n,reason:"mouse"})},Be=l=>{D({event:l,index:Number(l.currentTarget.getAttribute("data-option-index")),reason:"touch"}),no.current=!0},Wo=l=>{const n=Number(l.currentTarget.getAttribute("data-option-index"));eo(l,B[n],"selectOption"),no.current=!1},Ro=l=>n=>{const g=P.slice();g.splice(l,1),Ue(n,g,"removeOption",{option:P[l]})},Oo=l=>{me?Ge(l,"toggleInput"):Ae(l)},wo=l=>{l.currentTarget.contains(l.target)&&l.target.getAttribute("id")!==j&&l.preventDefault()},vo=l=>{l.currentTarget.contains(l.target)&&(Z.current.focus(),Le&&We.current&&Z.current.selectionEnd-Z.current.selectionStart===0&&Z.current.select(),We.current=!1)},co=l=>{!h&&(W===""||!me)&&Oo(l)};let oo=k&&W.length>0;oo=oo||(M?P.length>0:P!==null);let ao=B;return T&&(ao=B.reduce((l,n,g)=>{const C=T(n);return l.length>0&&l[l.length-1].group===C?l[l.length-1].options.push(n):l.push({key:g,index:g,group:C,options:[n]}),l},[])),h&&Fe&&ro(),{getRootProps:(l={})=>a({"aria-owns":Ke?`${j}-listbox`:null},l,{onKeyDown:ko(l),onMouseDown:wo,onClick:vo}),getInputLabelProps:()=>({id:`${j}-label`,htmlFor:j}),getInputProps:()=>({id:j,value:W,onBlur:ro,onFocus:jo,onChange:Ce,onMouseDown:co,"aria-activedescendant":N?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ke?`${j}-listbox`:void 0,"aria-expanded":Ke,autoComplete:"off",ref:Z,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:ho}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Oo}),getTagProps:({index:l})=>a({key:l,"data-tag-index":l,tabIndex:-1},!Se&&{onDelete:Ro(l)}),getListboxProps:()=>({role:"listbox",id:`${j}-listbox`,"aria-labelledby":`${j}-label`,ref:Po,onMouseDown:l=>{l.preventDefault()}}),getOptionProps:({index:l,option:n})=>{var g;const C=(M?P:[P]).some(pe=>pe!=null&&oe(n,pe)),K=y?y(n):!1;return{key:(g=S==null?void 0:S(n))!=null?g:ee(n),tabIndex:-1,role:"option",id:`${j}-option-${l}`,onMouseMove:ve,onClick:Wo,onTouchStart:Be,"data-option-index":l,"aria-disabled":K,"aria-selected":C}},id:j,inputValue:W,value:P,dirty:oo,expanded:N&&Me,popupOpen:N,focused:Fe||H!==-1,anchorEl:Me,setAnchorEl:Y,focusedTag:H,groupedOptions:ao}}function nn(e){return ye("MuiListSubheader",e)}Ie("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const rn=["className","color","component","disableGutters","disableSticky","inset"],an=e=>{const{classes:o,color:t,disableGutters:r,inset:s,disableSticky:c}=e,d={root:["root",t!=="default"&&`color${O(t)}`,!r&&"gutters",s&&"inset",!c&&"sticky"]};return $e(d,nn,o)},ln=w("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.color!=="default"&&o[`color${O(t.color)}`],!t.disableGutters&&o.gutters,t.inset&&o.inset,!t.disableSticky&&o.sticky]}})(({theme:e,ownerState:o})=>a({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},o.color==="primary"&&{color:(e.vars||e).palette.primary.main},o.color==="inherit"&&{color:"inherit"},!o.disableGutters&&{paddingLeft:16,paddingRight:16},o.inset&&{paddingLeft:72},!o.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),mt=p.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiListSubheader"}),{className:s,color:c="default",component:d="li",disableGutters:i=!1,disableSticky:b=!1,inset:u=!1}=r,m=ae(r,rn),v=a({},r,{color:c,component:d,disableGutters:i,disableSticky:b,inset:u}),$=an(v);return f.jsx(ln,a({as:d,className:ne($.root,s),ref:t,ownerState:v},m))});mt.muiSkipListHighlight=!0;const sn=mt,cn=Ao(f.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function dn(e){return ye("MuiChip",e)}const un=Ie("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),V=un,pn=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],fn=e=>{const{classes:o,disabled:t,size:r,color:s,iconColor:c,onDelete:d,clickable:i,variant:b}=e,u={root:["root",b,t&&"disabled",`size${O(r)}`,`color${O(s)}`,i&&"clickable",i&&`clickableColor${O(s)}`,d&&"deletable",d&&`deletableColor${O(s)}`,`${b}${O(s)}`],label:["label",`label${O(r)}`],avatar:["avatar",`avatar${O(r)}`,`avatarColor${O(s)}`],icon:["icon",`icon${O(r)}`,`iconColor${O(c)}`],deleteIcon:["deleteIcon",`deleteIcon${O(r)}`,`deleteIconColor${O(s)}`,`deleteIcon${O(b)}Color${O(s)}`]};return $e(u,dn,o)},bn=w("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e,{color:r,iconColor:s,clickable:c,onDelete:d,size:i,variant:b}=t;return[{[`& .${V.avatar}`]:o.avatar},{[`& .${V.avatar}`]:o[`avatar${O(i)}`]},{[`& .${V.avatar}`]:o[`avatarColor${O(r)}`]},{[`& .${V.icon}`]:o.icon},{[`& .${V.icon}`]:o[`icon${O(i)}`]},{[`& .${V.icon}`]:o[`iconColor${O(s)}`]},{[`& .${V.deleteIcon}`]:o.deleteIcon},{[`& .${V.deleteIcon}`]:o[`deleteIcon${O(i)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIconColor${O(r)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIcon${O(b)}Color${O(r)}`]},o.root,o[`size${O(i)}`],o[`color${O(r)}`],c&&o.clickable,c&&r!=="default"&&o[`clickableColor${O(r)})`],d&&o.deletable,d&&r!=="default"&&o[`deletableColor${O(r)}`],o[b],o[`${b}${O(r)}`]]}})(({theme:e,ownerState:o})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return a({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${V.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${V.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${V.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${V.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${V.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${V.icon}`]:a({marginLeft:5,marginRight:-6},o.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},o.iconColor===o.color&&a({color:e.vars?e.vars.palette.Chip.defaultIconColor:t},o.color!=="default"&&{color:"inherit"})),[`& .${V.deleteIcon}`]:a({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Re(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Re(e.palette.text.primary,.4)}},o.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},o.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[o.color].contrastTextChannel} / 0.7)`:Re(e.palette[o.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[o.color].contrastText}})},o.size==="small"&&{height:24},o.color!=="default"&&{backgroundColor:(e.vars||e).palette[o.color].main,color:(e.vars||e).palette[o.color].contrastText},o.onDelete&&{[`&.${V.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},o.onDelete&&o.color!=="default"&&{[`&.${V.focusVisible}`]:{backgroundColor:(e.vars||e).palette[o.color].dark}})},({theme:e,ownerState:o})=>a({},o.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${V.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},o.clickable&&o.color!=="default"&&{[`&:hover, &.${V.focusVisible}`]:{backgroundColor:(e.vars||e).palette[o.color].dark}}),({theme:e,ownerState:o})=>a({},o.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${V.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${V.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${V.avatar}`]:{marginLeft:4},[`& .${V.avatarSmall}`]:{marginLeft:2},[`& .${V.icon}`]:{marginLeft:4},[`& .${V.iconSmall}`]:{marginLeft:2},[`& .${V.deleteIcon}`]:{marginRight:5},[`& .${V.deleteIconSmall}`]:{marginRight:3}},o.variant==="outlined"&&o.color!=="default"&&{color:(e.vars||e).palette[o.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / 0.7)`:Re(e.palette[o.color].main,.7)}`,[`&.${V.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Re(e.palette[o.color].main,e.palette.action.hoverOpacity)},[`&.${V.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Re(e.palette[o.color].main,e.palette.action.focusOpacity)},[`& .${V.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / 0.7)`:Re(e.palette[o.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[o.color].main}}})),gn=w("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,o)=>{const{ownerState:t}=e,{size:r}=t;return[o.label,o[`label${O(r)}`]]}})(({ownerState:e})=>a({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function Yo(e){return e.key==="Backspace"||e.key==="Delete"}const mn=p.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiChip"}),{avatar:s,className:c,clickable:d,color:i="default",component:b,deleteIcon:u,disabled:m=!1,icon:v,label:$,onClick:h,onDelete:x,onKeyDown:E,onKeyUp:_,size:R="medium",variant:k="filled",tabIndex:y,skipFocusWhenDisabled:S=!1}=r,z=ae(r,pn),T=p.useRef(null),L=lo(T,t),q=F=>{F.stopPropagation(),x&&x(F)},le=F=>{F.currentTarget===F.target&&Yo(F)&&F.preventDefault(),E&&E(F)},de=F=>{F.currentTarget===F.target&&(x&&Yo(F)?x(F):F.key==="Escape"&&T.current&&T.current.blur()),_&&_(F)},oe=d!==!1&&h?!0:d,M=oe||x?Uo:b||"div",J=a({},r,{component:M,disabled:m,size:R,color:i,iconColor:p.isValidElement(v)&&v.props.color||i,onDelete:!!x,clickable:oe,variant:k}),G=fn(J),se=M===Uo?a({component:b||"div",focusVisibleClassName:G.focusVisible},x&&{disableRipple:!0}):{};let Q=null;x&&(Q=u&&p.isValidElement(u)?p.cloneElement(u,{className:ne(u.props.className,G.deleteIcon),onClick:q}):f.jsx(cn,{className:ne(G.deleteIcon),onClick:q}));let re=null;s&&p.isValidElement(s)&&(re=p.cloneElement(s,{className:ne(G.avatar,s.props.className)}));let U=null;return v&&p.isValidElement(v)&&(U=p.cloneElement(v,{className:ne(G.icon,v.props.className)})),f.jsxs(bn,a({as:M,className:ne(G.root,c),disabled:oe&&m?!0:void 0,onClick:h,onKeyDown:le,onKeyUp:de,ref:L,tabIndex:S&&m?-1:y,ownerState:J},se,z,{children:[re||U,f.jsx(gn,{className:ne(G.label),ownerState:J,children:$}),Q]}))}),hn=mn;function vn(e){return f.jsx(Zt,a({},e,{defaultTheme:Mt,themeId:Ft}))}function xn(e){return ye("MuiInputBase",e)}const Cn=Ie("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Oe=Cn,yn=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Co=(e,o)=>{const{ownerState:t}=e;return[o.root,t.formControl&&o.formControl,t.startAdornment&&o.adornedStart,t.endAdornment&&o.adornedEnd,t.error&&o.error,t.size==="small"&&o.sizeSmall,t.multiline&&o.multiline,t.color&&o[`color${O(t.color)}`],t.fullWidth&&o.fullWidth,t.hiddenLabel&&o.hiddenLabel]},yo=(e,o)=>{const{ownerState:t}=e;return[o.input,t.size==="small"&&o.inputSizeSmall,t.multiline&&o.inputMultiline,t.type==="search"&&o.inputTypeSearch,t.startAdornment&&o.inputAdornedStart,t.endAdornment&&o.inputAdornedEnd,t.hiddenLabel&&o.inputHiddenLabel]},In=e=>{const{classes:o,color:t,disabled:r,error:s,endAdornment:c,focused:d,formControl:i,fullWidth:b,hiddenLabel:u,multiline:m,readOnly:v,size:$,startAdornment:h,type:x}=e,E={root:["root",`color${O(t)}`,r&&"disabled",s&&"error",b&&"fullWidth",d&&"focused",i&&"formControl",$&&$!=="medium"&&`size${O($)}`,m&&"multiline",h&&"adornedStart",c&&"adornedEnd",u&&"hiddenLabel",v&&"readOnly"],input:["input",r&&"disabled",x==="search"&&"inputTypeSearch",m&&"inputMultiline",$==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",c&&"inputAdornedEnd",v&&"readOnly"]};return $e(E,xn,o)},Io=w("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Co})(({theme:e,ownerState:o})=>a({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Oe.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},o.multiline&&a({padding:"4px 0 5px"},o.size==="small"&&{paddingTop:1}),o.fullWidth&&{width:"100%"})),$o=w("input",{name:"MuiInputBase",slot:"Input",overridesResolver:yo})(({theme:e,ownerState:o})=>{const t=e.palette.mode==="light",r=a({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),s={opacity:"0 !important"},c=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return a({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Oe.formControl} &`]:{"&::-webkit-input-placeholder":s,"&::-moz-placeholder":s,"&:-ms-input-placeholder":s,"&::-ms-input-placeholder":s,"&:focus::-webkit-input-placeholder":c,"&:focus::-moz-placeholder":c,"&:focus:-ms-input-placeholder":c,"&:focus::-ms-input-placeholder":c},[`&.${Oe.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},o.size==="small"&&{paddingTop:1},o.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},o.type==="search"&&{MozAppearance:"textfield"})}),$n=f.jsx(vn,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Sn=p.forwardRef(function(o,t){var r;const s=Pe({props:o,name:"MuiInputBase"}),{"aria-describedby":c,autoComplete:d,autoFocus:i,className:b,components:u={},componentsProps:m={},defaultValue:v,disabled:$,disableInjectingGlobalStyles:h,endAdornment:x,fullWidth:E=!1,id:_,inputComponent:R="input",inputProps:k={},inputRef:y,maxRows:S,minRows:z,multiline:T=!1,name:L,onBlur:q,onChange:le,onClick:de,onFocus:oe,onKeyDown:M,onKeyUp:J,placeholder:G,readOnly:se,renderSuffix:Q,rows:re,slotProps:U={},slots:F={},startAdornment:ie,type:Se="text",value:Le}=s,ue=ae(s,yn),j=k.value!=null?k.value:Le,{current:ee}=p.useRef(j!=null),fe=p.useRef(),We=p.useCallback(N=>{},[]),Z=lo(fe,y,k.ref,We),[be,Me]=p.useState(!1),Y=so(),H=io({props:s,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});H.focused=Y?Y.focused:be,p.useEffect(()=>{!Y&&$&&be&&(Me(!1),q&&q())},[Y,$,be,q]);const ze=Y&&Y.onFilled,_e=Y&&Y.onEmpty,te=p.useCallback(N=>{bt(N)?ze&&ze():_e&&_e()},[ze,_e]);pt(()=>{ee&&te({value:j})},[j,te,ee]);const P=N=>{if(H.disabled){N.stopPropagation();return}oe&&oe(N),k.onFocus&&k.onFocus(N),Y&&Y.onFocus?Y.onFocus(N):Me(!0)},to=N=>{q&&q(N),k.onBlur&&k.onBlur(N),Y&&Y.onBlur?Y.onBlur(N):Me(!1)},W=(N,...B)=>{if(!ee){const he=N.target||fe.current;if(he==null)throw new Error(ct(1));te({value:he.value})}k.onChange&&k.onChange(N,...B),le&&le(N,...B)};p.useEffect(()=>{te(fe.current)},[]);const xe=N=>{fe.current&&N.currentTarget===N.target&&fe.current.focus(),de&&de(N)};let Fe=R,ce=k;T&&Fe==="input"&&(re?ce=a({type:void 0,minRows:re,maxRows:re},ce):ce=a({type:void 0,maxRows:S,minRows:z},ce),Fe=Vt);const Te=N=>{te(N.animationName==="mui-auto-fill-cancel"?fe.current:{value:"x"})};p.useEffect(()=>{Y&&Y.setAdornedStart(!!ie)},[Y,ie]);const me=a({},s,{color:H.color||"primary",disabled:H.disabled,endAdornment:x,error:H.error,focused:H.focused,formControl:Y,fullWidth:E,hiddenLabel:H.hiddenLabel,multiline:T,size:H.size,startAdornment:ie,type:Se}),Ne=In(me),Ye=F.root||u.Root||Io,De=U.root||m.root||{},Ee=F.input||u.Input||$o;return ce=a({},ce,(r=U.input)!=null?r:m.input),f.jsxs(p.Fragment,{children:[!h&&$n,f.jsxs(Ye,a({},De,!Ho(Ye)&&{ownerState:a({},me,De.ownerState)},{ref:t,onClick:xe},ue,{className:ne(Ne.root,De.className,b,se&&"MuiInputBase-readOnly"),children:[ie,f.jsx(Bt.Provider,{value:null,children:f.jsx(Ee,a({ownerState:me,"aria-invalid":H.error,"aria-describedby":c,autoComplete:d,autoFocus:i,defaultValue:v,disabled:H.disabled,id:_,onAnimationStart:Te,name:L,placeholder:G,readOnly:se,required:H.required,rows:re,value:j,onKeyDown:M,onKeyUp:J,type:Se},ce,!Ho(Ee)&&{as:Fe,ownerState:a({},me,ce.ownerState)},{ref:Z,className:ne(Ne.input,ce.className,se&&"MuiInputBase-readOnly"),onBlur:to,onChange:W,onFocus:P}))}),x,Q?Q(a({},H,{startAdornment:ie})):null]}))]})}),Do=Sn;function Pn(e){return ye("MuiInput",e)}const kn=a({},Oe,Ie("MuiInput",["root","underline","input"])),Qe=kn;function Rn(e){return ye("MuiOutlinedInput",e)}const On=a({},Oe,Ie("MuiOutlinedInput",["root","notchedOutline","input"])),Ve=On;function wn(e){return ye("MuiFilledInput",e)}const Ln=a({},Oe,Ie("MuiFilledInput",["root","underline","input"])),we=Ln,ht=Ao(f.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Mn(e){return ye("MuiAutocomplete",e)}const Fn=Ie("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),A=Fn;var Zo,Jo;const Tn=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],Nn=["ref"],An=["key"],zn=e=>{const{classes:o,disablePortal:t,expanded:r,focused:s,fullWidth:c,hasClearIcon:d,hasPopupIcon:i,inputFocused:b,popupOpen:u,size:m}=e,v={root:["root",r&&"expanded",s&&"focused",c&&"fullWidth",d&&"hasClearIcon",i&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",b&&"inputFocused"],tag:["tag",`tagSize${O(m)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",t&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return $e(v,Mn,o)},Dn=w("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e,{fullWidth:r,hasClearIcon:s,hasPopupIcon:c,inputFocused:d,size:i}=t;return[{[`& .${A.tag}`]:o.tag},{[`& .${A.tag}`]:o[`tagSize${O(i)}`]},{[`& .${A.inputRoot}`]:o.inputRoot},{[`& .${A.input}`]:o.input},{[`& .${A.input}`]:d&&o.inputFocused},o.root,r&&o.fullWidth,c&&o.hasPopupIcon,s&&o.hasClearIcon]}})(({ownerState:e})=>a({[`&.${A.focused} .${A.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${A.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${A.tag}`]:a({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${A.inputRoot}`]:{flexWrap:"wrap",[`.${A.hasPopupIcon}&, .${A.hasClearIcon}&`]:{paddingRight:26+4},[`.${A.hasPopupIcon}.${A.hasClearIcon}&`]:{paddingRight:52+4},[`& .${A.input}`]:{width:0,minWidth:30}},[`& .${Qe.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Qe.root}.${Oe.sizeSmall}`]:{[`& .${Qe.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Ve.root}`]:{padding:9,[`.${A.hasPopupIcon}&, .${A.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${A.hasPopupIcon}.${A.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${A.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${A.endAdornment}`]:{right:9}},[`& .${Ve.root}.${Oe.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${A.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${we.root}`]:{paddingTop:19,paddingLeft:8,[`.${A.hasPopupIcon}&, .${A.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${A.hasPopupIcon}.${A.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${we.input}`]:{padding:"7px 4px"},[`& .${A.endAdornment}`]:{right:9}},[`& .${we.root}.${Oe.sizeSmall}`]:{paddingBottom:1,[`& .${we.input}`]:{padding:"2.5px 4px"}},[`& .${Oe.hiddenLabel}`]:{paddingTop:8},[`& .${we.root}.${Oe.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${A.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${we.root}.${Oe.hiddenLabel}.${Oe.sizeSmall}`]:{[`& .${A.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${A.input}`]:a({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),En=w("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,o)=>o.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),Bn=w(ft,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,o)=>o.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),jn=w(ft,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},o)=>a({},o.popupIndicator,e.popupOpen&&o.popupIndicatorOpen)})(({ownerState:e})=>a({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),Wn=w(No,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`& .${A.option}`]:o.option},o.popper,t.disablePortal&&o.popperDisablePortal]}})(({theme:e,ownerState:o})=>a({zIndex:(e.vars||e).zIndex.modal},o.disablePortal&&{position:"absolute"})),_n=w(gt,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,o)=>o.paper})(({theme:e})=>a({},e.typography.body1,{overflow:"auto"})),Un=w("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,o)=>o.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Hn=w("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,o)=>o.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Vn=w("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,o)=>o.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${A.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${A.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${A.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Re(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${A.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Re(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${A.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Re(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),Kn=w(sn,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,o)=>o.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),qn=w("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,o)=>o.groupUl})({padding:0,[`& .${A.option}`]:{paddingLeft:24}}),Gn=p.forwardRef(function(o,t){var r,s,c,d;const i=Pe({props:o,name:"MuiAutocomplete"}),{autoComplete:b=!1,autoHighlight:u=!1,autoSelect:m=!1,blurOnSelect:v=!1,ChipProps:$,className:h,clearIcon:x=Zo||(Zo=f.jsx(Jt,{fontSize:"small"})),clearOnBlur:E=!i.freeSolo,clearOnEscape:_=!1,clearText:R="Clear",closeText:k="Close",componentsProps:y={},defaultValue:S=i.multiple?[]:null,disableClearable:z=!1,disableCloseOnSelect:T=!1,disabled:L=!1,disabledItemsFocusable:q=!1,disableListWrap:le=!1,disablePortal:de=!1,filterSelectedOptions:oe=!1,forcePopupIcon:M="auto",freeSolo:J=!1,fullWidth:G=!1,getLimitTagsText:se=n=>`+${n}`,getOptionLabel:Q,groupBy:re,handleHomeEndKeys:U=!i.freeSolo,includeInputInList:F=!1,limitTags:ie=-1,ListboxComponent:Se="ul",ListboxProps:Le,loading:ue=!1,loadingText:j="Loading…",multiple:ee=!1,noOptionsText:fe="No options",openOnFocus:We=!1,openText:Z="Open",PaperComponent:be=gt,PopperComponent:Me=No,popupIcon:Y=Jo||(Jo=f.jsx(ht,{})),readOnly:H=!1,renderGroup:ze,renderInput:_e,renderOption:te,renderTags:P,selectOnFocus:to=!i.freeSolo,size:W="medium",slotProps:xe={}}=i,Fe=ae(i,Tn),{getRootProps:ce,getInputProps:Te,getInputLabelProps:me,getPopupIndicatorProps:Ne,getClearProps:Ye,getTagProps:De,getListboxProps:Ee,getOptionProps:N,value:B,dirty:he,expanded:Ke,id:qe,popupOpen:I,focused:D,focusedTag:X,anchorEl:ke,setAnchorEl:Ze,inputValue:Po,groupedOptions:Ae}=tn(a({},i,{componentName:"Autocomplete"})),Ge=!z&&!L&&he&&!H,Ue=(!J||M===!0)&&M!==!1,{onMouseDown:no}=Te(),{ref:eo}=Le??{},go=Ee(),{ref:mo}=go,ho=ae(go,Nn),ko=lo(mo,eo),ro=Q||(n=>{var g;return(g=n.label)!=null?g:n}),Ce=a({},i,{disablePortal:de,expanded:Ke,focused:D,fullWidth:G,getOptionLabel:ro,hasClearIcon:Ge,hasPopupIcon:Ue,inputFocused:X===-1,popupOpen:I,size:W}),ve=zn(Ce);let Be;if(ee&&B.length>0){const n=g=>a({className:ve.tag,disabled:L},De(g));P?Be=P(B,n,Ce):Be=B.map((g,C)=>f.jsx(hn,a({label:ro(g),size:W},n({index:C}),$)))}if(ie>-1&&Array.isArray(Be)){const n=Be.length-ie;!D&&n>0&&(Be=Be.splice(0,ie),Be.push(f.jsx("span",{className:ve.tag,children:se(n)},Be.length)))}const Ro=ze||(n=>f.jsxs("li",{children:[f.jsx(Kn,{className:ve.groupLabel,ownerState:Ce,component:"div",children:n.group}),f.jsx(qn,{className:ve.groupUl,ownerState:Ce,children:n.children})]},n.key)),wo=te||((n,g)=>{const{key:C}=n,K=ae(n,An);return f.jsx("li",a({},K,{children:ro(g)}),C)}),vo=(n,g)=>{const C=N({option:n,index:g});return wo(a({},C,{className:ve.option}),n,{selected:C["aria-selected"],index:g,inputValue:Po},Ce)},co=(r=xe.clearIndicator)!=null?r:y.clearIndicator,oo=(s=xe.paper)!=null?s:y.paper,ao=(c=xe.popper)!=null?c:y.popper,l=(d=xe.popupIndicator)!=null?d:y.popupIndicator;return f.jsxs(p.Fragment,{children:[f.jsx(Dn,a({ref:t,className:ne(ve.root,h),ownerState:Ce},ce(Fe),{children:_e({id:qe,disabled:L,fullWidth:!0,size:W==="small"?"small":void 0,InputLabelProps:me(),InputProps:a({ref:Ze,className:ve.inputRoot,startAdornment:Be,onClick:n=>{n.target===n.currentTarget&&no(n)}},(Ge||Ue)&&{endAdornment:f.jsxs(En,{className:ve.endAdornment,ownerState:Ce,children:[Ge?f.jsx(Bn,a({},Ye(),{"aria-label":R,title:R,ownerState:Ce},co,{className:ne(ve.clearIndicator,co==null?void 0:co.className),children:x})):null,Ue?f.jsx(jn,a({},Ne(),{disabled:L,"aria-label":I?k:Z,title:I?k:Z,ownerState:Ce},l,{className:ne(ve.popupIndicator,l==null?void 0:l.className),children:Y})):null]})}),inputProps:a({className:ve.input,disabled:L,readOnly:H},Te())})})),ke?f.jsx(Wn,a({as:Me,disablePortal:de,style:{width:ke?ke.clientWidth:null},ownerState:Ce,role:"presentation",anchorEl:ke,open:I},ao,{className:ne(ve.popper,ao==null?void 0:ao.className),children:f.jsxs(_n,a({ownerState:Ce,as:be},oo,{className:ne(ve.paper,oo==null?void 0:oo.className),children:[ue&&Ae.length===0?f.jsx(Un,{className:ve.loading,ownerState:Ce,children:j}):null,Ae.length===0&&!J&&!ue?f.jsx(Hn,{className:ve.noOptions,ownerState:Ce,role:"presentation",onMouseDown:n=>{n.preventDefault()},children:fe}):null,Ae.length>0?f.jsx(Vn,a({as:Se,className:ve.listbox,ownerState:Ce},ho,Le,{ref:ko,children:Ae.map((n,g)=>re?Ro({key:n.key,group:n.group,children:n.options.map((C,K)=>vo(C,n.index+K))}):vo(n,g))})):null]}))})):null]})}),Xn=Gn;function Yn(e){return ye("MuiCircularProgress",e)}Ie("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Zn=["className","color","disableShrink","size","style","thickness","value","variant"];let So=e=>e,Qo,et,ot,tt;const Je=44,Jn=dt(Qo||(Qo=So` + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +`)),Qn=dt(et||(et=So` + 0% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: 0; + } + + 50% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -15px; + } + + 100% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -125px; + } +`)),er=e=>{const{classes:o,variant:t,color:r,disableShrink:s}=e,c={root:["root",t,`color${O(r)}`],svg:["svg"],circle:["circle",`circle${O(t)}`,s&&"circleDisableShrink"]};return $e(c,Yn,o)},or=w("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,o[t.variant],o[`color${O(t.color)}`]]}})(({ownerState:e,theme:o})=>a({display:"inline-block"},e.variant==="determinate"&&{transition:o.transitions.create("transform")},e.color!=="inherit"&&{color:(o.vars||o).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&ut(ot||(ot=So` + animation: ${0} 1.4s linear infinite; + `),Jn)),tr=w("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,o)=>o.svg})({display:"block"}),nr=w("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.circle,o[`circle${O(t.variant)}`],t.disableShrink&&o.circleDisableShrink]}})(({ownerState:e,theme:o})=>a({stroke:"currentColor"},e.variant==="determinate"&&{transition:o.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&ut(tt||(tt=So` + animation: ${0} 1.4s ease-in-out infinite; + `),Qn)),rr=p.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiCircularProgress"}),{className:s,color:c="primary",disableShrink:d=!1,size:i=40,style:b,thickness:u=3.6,value:m=0,variant:v="indeterminate"}=r,$=ae(r,Zn),h=a({},r,{color:c,disableShrink:d,size:i,thickness:u,value:m,variant:v}),x=er(h),E={},_={},R={};if(v==="determinate"){const k=2*Math.PI*((Je-u)/2);E.strokeDasharray=k.toFixed(3),R["aria-valuenow"]=Math.round(m),E.strokeDashoffset=`${((100-m)/100*k).toFixed(3)}px`,_.transform="rotate(-90deg)"}return f.jsx(or,a({className:ne(x.root,s),style:a({width:i,height:i},_,b),ownerState:h,ref:t,role:"progressbar"},R,$,{children:f.jsx(tr,{className:x.svg,ownerState:h,viewBox:`${Je/2} ${Je/2} ${Je} ${Je}`,children:f.jsx(nr,{className:x.circle,style:E,ownerState:h,cx:Je,cy:Je,r:(Je-u)/2,fill:"none",strokeWidth:u})})}))}),ar=rr,lr=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],sr=e=>{const{classes:o,disableUnderline:t}=e,s=$e({root:["root",!t&&"underline"],input:["input"]},wn,o);return a({},o,s)},ir=w(Io,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[...Co(e,o),!t.disableUnderline&&o.underline]}})(({theme:e,ownerState:o})=>{var t;const r=e.palette.mode==="light",s=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",c=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",d=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return a({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:c,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:d,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:c}},[`&.${we.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:c},[`&.${we.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i}},!o.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(t=(e.vars||e).palette[o.color||"primary"])==null?void 0:t.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${we.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${we.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:s}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${we.disabled}, .${we.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${we.disabled}:before`]:{borderBottomStyle:"dotted"}},o.startAdornment&&{paddingLeft:12},o.endAdornment&&{paddingRight:12},o.multiline&&a({padding:"25px 12px 8px"},o.size==="small"&&{paddingTop:21,paddingBottom:4},o.hiddenLabel&&{paddingTop:16,paddingBottom:17},o.hiddenLabel&&o.size==="small"&&{paddingTop:8,paddingBottom:9}))}),cr=w($o,{name:"MuiFilledInput",slot:"Input",overridesResolver:yo})(({theme:e,ownerState:o})=>a({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},o.size==="small"&&{paddingTop:21,paddingBottom:4},o.hiddenLabel&&{paddingTop:16,paddingBottom:17},o.startAdornment&&{paddingLeft:0},o.endAdornment&&{paddingRight:0},o.hiddenLabel&&o.size==="small"&&{paddingTop:8,paddingBottom:9},o.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),vt=p.forwardRef(function(o,t){var r,s,c,d;const i=Pe({props:o,name:"MuiFilledInput"}),{components:b={},componentsProps:u,fullWidth:m=!1,inputComponent:v="input",multiline:$=!1,slotProps:h,slots:x={},type:E="text"}=i,_=ae(i,lr),R=a({},i,{fullWidth:m,inputComponent:v,multiline:$,type:E}),k=sr(i),y={root:{ownerState:R},input:{ownerState:R}},S=h??u?To(y,h??u):y,z=(r=(s=x.root)!=null?s:b.Root)!=null?r:ir,T=(c=(d=x.input)!=null?d:b.Input)!=null?c:cr;return f.jsx(Do,a({slots:{root:z,input:T},componentsProps:S,fullWidth:m,inputComponent:v,multiline:$,ref:t,type:E},_,{classes:k}))});vt.muiName="Input";const xt=vt;function dr(e){return ye("MuiFormHelperText",e)}const ur=Ie("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),nt=ur;var rt;const pr=["children","className","component","disabled","error","filled","focused","margin","required","variant"],fr=e=>{const{classes:o,contained:t,size:r,disabled:s,error:c,filled:d,focused:i,required:b}=e,u={root:["root",s&&"disabled",c&&"error",r&&`size${O(r)}`,t&&"contained",i&&"focused",d&&"filled",b&&"required"]};return $e(u,dr,o)},br=w("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.size&&o[`size${O(t.size)}`],t.contained&&o.contained,t.filled&&o.filled]}})(({theme:e,ownerState:o})=>a({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${nt.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${nt.error}`]:{color:(e.vars||e).palette.error.main}},o.size==="small"&&{marginTop:4},o.contained&&{marginLeft:14,marginRight:14})),gr=p.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiFormHelperText"}),{children:s,className:c,component:d="p"}=r,i=ae(r,pr),b=so(),u=io({props:r,muiFormControl:b,states:["variant","size","disabled","error","filled","focused","required"]}),m=a({},r,{component:d,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),v=fr(m);return f.jsx(br,a({as:d,ownerState:m,className:ne(v.root,c),ref:t},i,{children:s===" "?rt||(rt=f.jsx("span",{className:"notranslate",children:"​"})):s}))}),mr=gr;function hr(e){return ye("MuiFormLabel",e)}const vr=Ie("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),bo=vr,xr=["children","className","color","component","disabled","error","filled","focused","required"],Cr=e=>{const{classes:o,color:t,focused:r,disabled:s,error:c,filled:d,required:i}=e,b={root:["root",`color${O(t)}`,s&&"disabled",c&&"error",d&&"filled",r&&"focused",i&&"required"],asterisk:["asterisk",c&&"error"]};return $e(b,hr,o)},yr=w("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},o)=>a({},o.root,e.color==="secondary"&&o.colorSecondary,e.filled&&o.filled)})(({theme:e,ownerState:o})=>a({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${bo.focused}`]:{color:(e.vars||e).palette[o.color].main},[`&.${bo.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${bo.error}`]:{color:(e.vars||e).palette.error.main}})),Ir=w("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,o)=>o.asterisk})(({theme:e})=>({[`&.${bo.error}`]:{color:(e.vars||e).palette.error.main}})),$r=p.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiFormLabel"}),{children:s,className:c,component:d="label"}=r,i=ae(r,xr),b=so(),u=io({props:r,muiFormControl:b,states:["color","required","focused","disabled","error","filled"]}),m=a({},r,{color:u.color||"primary",component:d,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),v=Cr(m);return f.jsxs(yr,a({as:d,ownerState:m,className:ne(v.root,c),ref:t},i,{children:[s,u.required&&f.jsxs(Ir,{ownerState:m,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]}))}),Sr=$r,Pr=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],kr=e=>{const{classes:o,disableUnderline:t}=e,s=$e({root:["root",!t&&"underline"],input:["input"]},Pn,o);return a({},o,s)},Rr=w(Io,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[...Co(e,o),!t.disableUnderline&&o.underline]}})(({theme:e,ownerState:o})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),a({position:"relative"},o.formControl&&{"label + &":{marginTop:16}},!o.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[o.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Qe.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Qe.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Qe.disabled}, .${Qe.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Qe.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Or=w($o,{name:"MuiInput",slot:"Input",overridesResolver:yo})({}),Ct=p.forwardRef(function(o,t){var r,s,c,d;const i=Pe({props:o,name:"MuiInput"}),{disableUnderline:b,components:u={},componentsProps:m,fullWidth:v=!1,inputComponent:$="input",multiline:h=!1,slotProps:x,slots:E={},type:_="text"}=i,R=ae(i,Pr),k=kr(i),S={root:{ownerState:{disableUnderline:b}}},z=x??m?To(x??m,S):S,T=(r=(s=E.root)!=null?s:u.Root)!=null?r:Rr,L=(c=(d=E.input)!=null?d:u.Input)!=null?c:Or;return f.jsx(Do,a({slots:{root:T,input:L},slotProps:z,fullWidth:v,inputComponent:$,multiline:h,ref:t,type:_},R,{classes:k}))});Ct.muiName="Input";const yt=Ct;function wr(e){return ye("MuiInputLabel",e)}Ie("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Lr=["disableAnimation","margin","shrink","variant","className"],Mr=e=>{const{classes:o,formControl:t,size:r,shrink:s,disableAnimation:c,variant:d,required:i}=e,b={root:["root",t&&"formControl",!c&&"animated",s&&"shrink",r&&r!=="normal"&&`size${O(r)}`,d],asterisk:[i&&"asterisk"]},u=$e(b,wr,o);return a({},o,u)},Fr=w(Sr,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`& .${bo.asterisk}`]:o.asterisk},o.root,t.formControl&&o.formControl,t.size==="small"&&o.sizeSmall,t.shrink&&o.shrink,!t.disableAnimation&&o.animated,t.focused&&o.focused,o[t.variant]]}})(({theme:e,ownerState:o})=>a({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},o.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},o.size==="small"&&{transform:"translate(0, 17px) scale(1)"},o.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!o.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},o.variant==="filled"&&a({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},o.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},o.shrink&&a({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},o.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),o.variant==="outlined"&&a({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},o.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},o.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Tr=p.forwardRef(function(o,t){const r=Pe({name:"MuiInputLabel",props:o}),{disableAnimation:s=!1,shrink:c,className:d}=r,i=ae(r,Lr),b=so();let u=c;typeof u>"u"&&b&&(u=b.filled||b.focused||b.adornedStart);const m=io({props:r,muiFormControl:b,states:["size","variant","required","focused"]}),v=a({},r,{disableAnimation:s,formControl:b,shrink:u,size:m.size,variant:m.variant,required:m.required,focused:m.focused}),$=Mr(v);return f.jsx(Fr,a({"data-shrink":u,ownerState:v,ref:t,className:ne($.root,d)},i,{classes:$}))}),Nr=Tr,Ar=p.createContext({}),zr=Ar;function Dr(e){return ye("MuiList",e)}Ie("MuiList",["root","padding","dense","subheader"]);const Er=["children","className","component","dense","disablePadding","subheader"],Br=e=>{const{classes:o,disablePadding:t,dense:r,subheader:s}=e;return $e({root:["root",!t&&"padding",r&&"dense",s&&"subheader"]},Dr,o)},jr=w("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,!t.disablePadding&&o.padding,t.dense&&o.dense,t.subheader&&o.subheader]}})(({ownerState:e})=>a({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Wr=p.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiList"}),{children:s,className:c,component:d="ul",dense:i=!1,disablePadding:b=!1,subheader:u}=r,m=ae(r,Er),v=p.useMemo(()=>({dense:i}),[i]),$=a({},r,{component:d,dense:i,disablePadding:b}),h=Br($);return f.jsx(zr.Provider,{value:v,children:f.jsxs(jr,a({as:d,className:ne(h.root,c),ref:t,ownerState:$},m,{children:[u,s]}))})}),_r=Wr,Ur=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Mo(e,o,t){return e===o?e.firstChild:o&&o.nextElementSibling?o.nextElementSibling:t?null:e.firstChild}function at(e,o,t){return e===o?t?e.firstChild:e.lastChild:o&&o.previousElementSibling?o.previousElementSibling:t?null:e.lastChild}function It(e,o){if(o===void 0)return!0;let t=e.innerText;return t===void 0&&(t=e.textContent),t=t.trim().toLowerCase(),t.length===0?!1:o.repeating?t[0]===o.keys[0]:t.indexOf(o.keys.join(""))===0}function uo(e,o,t,r,s,c){let d=!1,i=s(e,o,o?t:!1);for(;i;){if(i===e.firstChild){if(d)return!1;d=!0}const b=r?!1:i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||!It(i,c)||b)i=s(e,i,t);else return i.focus(),!0}return!1}const Hr=p.forwardRef(function(o,t){const{actions:r,autoFocus:s=!1,autoFocusItem:c=!1,children:d,className:i,disabledItemsFocusable:b=!1,disableListWrap:u=!1,onKeyDown:m,variant:v="selectedMenu"}=o,$=ae(o,Ur),h=p.useRef(null),x=p.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});pt(()=>{s&&h.current.focus()},[s]),p.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(y,S)=>{const z=!h.current.style.width;if(y.clientHeight{const S=h.current,z=y.key,T=Fo(S).activeElement;if(z==="ArrowDown")y.preventDefault(),uo(S,T,u,b,Mo);else if(z==="ArrowUp")y.preventDefault(),uo(S,T,u,b,at);else if(z==="Home")y.preventDefault(),uo(S,null,u,b,Mo);else if(z==="End")y.preventDefault(),uo(S,null,u,b,at);else if(z.length===1){const L=x.current,q=z.toLowerCase(),le=performance.now();L.keys.length>0&&(le-L.lastTime>500?(L.keys=[],L.repeating=!0,L.previousKeyMatched=!0):L.repeating&&q!==L.keys[0]&&(L.repeating=!1)),L.lastTime=le,L.keys.push(q);const de=T&&!L.repeating&&It(T,L);L.previousKeyMatched&&(de||uo(S,T,!1,b,Mo,L))?y.preventDefault():L.previousKeyMatched=!1}m&&m(y)},_=lo(h,t);let R=-1;p.Children.forEach(d,(y,S)=>{if(!p.isValidElement(y)){R===S&&(R+=1,R>=d.length&&(R=-1));return}y.props.disabled||(v==="selectedMenu"&&y.props.selected||R===-1)&&(R=S),R===S&&(y.props.disabled||y.props.muiSkipListHighlight||y.type.muiSkipListHighlight)&&(R+=1,R>=d.length&&(R=-1))});const k=p.Children.map(d,(y,S)=>{if(S===R){const z={};return c&&(z.autoFocus=!0),y.props.tabIndex===void 0&&v==="selectedMenu"&&(z.tabIndex=0),p.cloneElement(y,z)}return y});return f.jsx(_r,a({role:"menu",ref:_,className:i,onKeyDown:E,tabIndex:s?0:-1},$,{children:k}))}),Vr=Hr;function Kr(e){return ye("MuiMenu",e)}Ie("MuiMenu",["root","paper","list"]);const qr=["onEntering"],Gr=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Xr={vertical:"top",horizontal:"right"},Yr={vertical:"top",horizontal:"left"},Zr=e=>{const{classes:o}=e;return $e({root:["root"],paper:["paper"],list:["list"]},Kr,o)},Jr=w(Ut,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,o)=>o.root})({}),Qr=w(Ht,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,o)=>o.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),ea=w(Vr,{name:"MuiMenu",slot:"List",overridesResolver:(e,o)=>o.list})({outline:0}),oa=p.forwardRef(function(o,t){var r,s;const c=Pe({props:o,name:"MuiMenu"}),{autoFocus:d=!0,children:i,className:b,disableAutoFocusItem:u=!1,MenuListProps:m={},onClose:v,open:$,PaperProps:h={},PopoverClasses:x,transitionDuration:E="auto",TransitionProps:{onEntering:_}={},variant:R="selectedMenu",slots:k={},slotProps:y={}}=c,S=ae(c.TransitionProps,qr),z=ae(c,Gr),T=Tt(),L=T.direction==="rtl",q=a({},c,{autoFocus:d,disableAutoFocusItem:u,MenuListProps:m,onEntering:_,PaperProps:h,transitionDuration:E,TransitionProps:S,variant:R}),le=Zr(q),de=d&&!u&&$,oe=p.useRef(null),M=(F,ie)=>{oe.current&&oe.current.adjustStyleForScrollbar(F,T),_&&_(F,ie)},J=F=>{F.key==="Tab"&&(F.preventDefault(),v&&v(F,"tabKeyDown"))};let G=-1;p.Children.map(i,(F,ie)=>{p.isValidElement(F)&&(F.props.disabled||(R==="selectedMenu"&&F.props.selected||G===-1)&&(G=ie))});const se=(r=k.paper)!=null?r:Qr,Q=(s=y.paper)!=null?s:h,re=Vo({elementType:k.root,externalSlotProps:y.root,ownerState:q,className:[le.root,b]}),U=Vo({elementType:se,externalSlotProps:Q,ownerState:q,className:le.paper});return f.jsx(Jr,a({onClose:v,anchorOrigin:{vertical:"bottom",horizontal:L?"right":"left"},transformOrigin:L?Xr:Yr,slots:{paper:se,root:k.root},slotProps:{root:re,paper:U},open:$,ref:t,transitionDuration:E,TransitionProps:a({onEntering:M},S),ownerState:q},z,{classes:x,children:f.jsx(ea,a({onKeyDown:J,actions:oe,autoFocus:d&&(G===-1||u),autoFocusItem:de,variant:R},m,{className:ne(le.list,m.className),children:i}))}))}),ta=oa;function na(e){return ye("MuiNativeSelect",e)}const ra=Ie("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Eo=ra,aa=["className","disabled","error","IconComponent","inputRef","variant"],la=e=>{const{classes:o,variant:t,disabled:r,multiple:s,open:c,error:d}=e,i={select:["select",t,r&&"disabled",s&&"multiple",d&&"error"],icon:["icon",`icon${O(t)}`,c&&"iconOpen",r&&"disabled"]};return $e(i,na,o)},$t=({ownerState:e,theme:o})=>a({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":a({},o.vars?{backgroundColor:`rgba(${o.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:o.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Eo.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(o.vars||o).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(o.vars||o).shape.borderRadius,"&:focus":{borderRadius:(o.vars||o).shape.borderRadius},"&&&":{paddingRight:32}}),sa=w("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Xe,overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.select,o[t.variant],t.error&&o.error,{[`&.${Eo.multiple}`]:o.multiple}]}})($t),St=({ownerState:e,theme:o})=>a({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(o.vars||o).palette.action.active,[`&.${Eo.disabled}`]:{color:(o.vars||o).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),ia=w("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.icon,t.variant&&o[`icon${O(t.variant)}`],t.open&&o.iconOpen]}})(St),ca=p.forwardRef(function(o,t){const{className:r,disabled:s,error:c,IconComponent:d,inputRef:i,variant:b="standard"}=o,u=ae(o,aa),m=a({},o,{disabled:s,variant:b,error:c}),v=la(m);return f.jsxs(p.Fragment,{children:[f.jsx(sa,a({ownerState:m,className:ne(v.select,r),disabled:s,ref:i||t},u)),o.multiple?null:f.jsx(ia,{as:d,ownerState:m,className:v.icon})]})}),da=ca;var lt;const ua=["children","classes","className","label","notched"],pa=w("fieldset",{shouldForwardProp:Xe})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),fa=w("legend",{shouldForwardProp:Xe})(({ownerState:e,theme:o})=>a({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:o.transitions.create("width",{duration:150,easing:o.transitions.easing.easeOut})},e.withLabel&&a({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:o.transitions.create("max-width",{duration:50,easing:o.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:o.transitions.create("max-width",{duration:100,easing:o.transitions.easing.easeOut,delay:50})})));function ba(e){const{className:o,label:t,notched:r}=e,s=ae(e,ua),c=t!=null&&t!=="",d=a({},e,{notched:r,withLabel:c});return f.jsx(pa,a({"aria-hidden":!0,className:o,ownerState:d},s,{children:f.jsx(fa,{ownerState:d,children:c?f.jsx("span",{children:t}):lt||(lt=f.jsx("span",{className:"notranslate",children:"​"}))})}))}const ga=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],ma=e=>{const{classes:o}=e,r=$e({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Rn,o);return a({},o,r)},ha=w(Io,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Co})(({theme:e,ownerState:o})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return a({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ve.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ve.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Ve.focused} .${Ve.notchedOutline}`]:{borderColor:(e.vars||e).palette[o.color].main,borderWidth:2},[`&.${Ve.error} .${Ve.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ve.disabled} .${Ve.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},o.startAdornment&&{paddingLeft:14},o.endAdornment&&{paddingRight:14},o.multiline&&a({padding:"16.5px 14px"},o.size==="small"&&{padding:"8.5px 14px"}))}),va=w(ba,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,o)=>o.notchedOutline})(({theme:e})=>{const o=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:o}}),xa=w($o,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:yo})(({theme:e,ownerState:o})=>a({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},o.size==="small"&&{padding:"8.5px 14px"},o.multiline&&{padding:0},o.startAdornment&&{paddingLeft:0},o.endAdornment&&{paddingRight:0})),Pt=p.forwardRef(function(o,t){var r,s,c,d,i;const b=Pe({props:o,name:"MuiOutlinedInput"}),{components:u={},fullWidth:m=!1,inputComponent:v="input",label:$,multiline:h=!1,notched:x,slots:E={},type:_="text"}=b,R=ae(b,ga),k=ma(b),y=so(),S=io({props:b,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),z=a({},b,{color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:y,fullWidth:m,hiddenLabel:S.hiddenLabel,multiline:h,size:S.size,type:_}),T=(r=(s=E.root)!=null?s:u.Root)!=null?r:ha,L=(c=(d=E.input)!=null?d:u.Input)!=null?c:xa;return f.jsx(Do,a({slots:{root:T,input:L},renderSuffix:q=>f.jsx(va,{ownerState:z,className:k.notchedOutline,label:$!=null&&$!==""&&S.required?i||(i=f.jsxs(p.Fragment,{children:[$," ","*"]})):$,notched:typeof x<"u"?x:!!(q.startAdornment||q.filled||q.focused)}),fullWidth:m,inputComponent:v,multiline:h,ref:t,type:_},R,{classes:a({},k,{notchedOutline:null})}))});Pt.muiName="Input";const kt=Pt;function Ca(e){return ye("MuiSelect",e)}const ya=Ie("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),po=ya;var st;const Ia=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],$a=w("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`&.${po.select}`]:o.select},{[`&.${po.select}`]:o[t.variant]},{[`&.${po.error}`]:o.error},{[`&.${po.multiple}`]:o.multiple}]}})($t,{[`&.${po.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Sa=w("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.icon,t.variant&&o[`icon${O(t.variant)}`],t.open&&o.iconOpen]}})(St),Pa=w("input",{shouldForwardProp:e=>Nt(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,o)=>o.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function it(e,o){return typeof o=="object"&&o!==null?e===o:String(e)===String(o)}function ka(e){return e==null||typeof e=="string"&&!e.trim()}const Ra=e=>{const{classes:o,variant:t,disabled:r,multiple:s,open:c,error:d}=e,i={select:["select",t,r&&"disabled",s&&"multiple",d&&"error"],icon:["icon",`icon${O(t)}`,c&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return $e(i,Ca,o)},Oa=p.forwardRef(function(o,t){var r;const{"aria-describedby":s,"aria-label":c,autoFocus:d,autoWidth:i,children:b,className:u,defaultOpen:m,defaultValue:v,disabled:$,displayEmpty:h,error:x=!1,IconComponent:E,inputRef:_,labelId:R,MenuProps:k={},multiple:y,name:S,onBlur:z,onChange:T,onClose:L,onFocus:q,onOpen:le,open:de,readOnly:oe,renderValue:M,SelectDisplayProps:J={},tabIndex:G,value:se,variant:Q="standard"}=o,re=ae(o,Ia),[U,F]=fo({controlled:se,default:v,name:"Select"}),[ie,Se]=fo({controlled:de,default:m,name:"Select"}),Le=p.useRef(null),ue=p.useRef(null),[j,ee]=p.useState(null),{current:fe}=p.useRef(de!=null),[We,Z]=p.useState(),be=lo(t,_),Me=p.useCallback(I=>{ue.current=I,I&&ee(I)},[]),Y=j==null?void 0:j.parentNode;p.useImperativeHandle(be,()=>({focus:()=>{ue.current.focus()},node:Le.current,value:U}),[U]),p.useEffect(()=>{m&&ie&&j&&!fe&&(Z(i?null:Y.clientWidth),ue.current.focus())},[j,i]),p.useEffect(()=>{d&&ue.current.focus()},[d]),p.useEffect(()=>{if(!R)return;const I=Fo(ue.current).getElementById(R);if(I){const D=()=>{getSelection().isCollapsed&&ue.current.focus()};return I.addEventListener("click",D),()=>{I.removeEventListener("click",D)}}},[R]);const H=(I,D)=>{I?le&&le(D):L&&L(D),fe||(Z(i?null:Y.clientWidth),Se(I))},ze=I=>{I.button===0&&(I.preventDefault(),ue.current.focus(),H(!0,I))},_e=I=>{H(!1,I)},te=p.Children.toArray(b),P=I=>{const D=te.find(X=>X.props.value===I.target.value);D!==void 0&&(F(D.props.value),T&&T(I,D))},to=I=>D=>{let X;if(D.currentTarget.hasAttribute("tabindex")){if(y){X=Array.isArray(U)?U.slice():[];const ke=U.indexOf(I.props.value);ke===-1?X.push(I.props.value):X.splice(ke,1)}else X=I.props.value;if(I.props.onClick&&I.props.onClick(D),U!==X&&(F(X),T)){const ke=D.nativeEvent||D,Ze=new ke.constructor(ke.type,ke);Object.defineProperty(Ze,"target",{writable:!0,value:{value:X,name:S}}),T(Ze,I)}y||H(!1,D)}},W=I=>{oe||[" ","ArrowUp","ArrowDown","Enter"].indexOf(I.key)!==-1&&(I.preventDefault(),H(!0,I))},xe=j!==null&&ie,Fe=I=>{!xe&&z&&(Object.defineProperty(I,"target",{writable:!0,value:{value:U,name:S}}),z(I))};delete re["aria-invalid"];let ce,Te;const me=[];let Ne=!1;(bt({value:U})||h)&&(M?ce=M(U):Ne=!0);const Ye=te.map(I=>{if(!p.isValidElement(I))return null;let D;if(y){if(!Array.isArray(U))throw new Error(ct(2));D=U.some(X=>it(X,I.props.value)),D&&Ne&&me.push(I.props.children)}else D=it(U,I.props.value),D&&Ne&&(Te=I.props.children);return p.cloneElement(I,{"aria-selected":D?"true":"false",onClick:to(I),onKeyUp:X=>{X.key===" "&&X.preventDefault(),I.props.onKeyUp&&I.props.onKeyUp(X)},role:"option",selected:D,value:void 0,"data-value":I.props.value})});Ne&&(y?me.length===0?ce=null:ce=me.reduce((I,D,X)=>(I.push(D),X{const{classes:o}=e;return o},Bo={name:"MuiSelect",overridesResolver:(e,o)=>o.root,shouldForwardProp:e=>Xe(e)&&e!=="variant",slot:"Root"},Ta=w(yt,Bo)(""),Na=w(kt,Bo)(""),Aa=w(xt,Bo)(""),Rt=p.forwardRef(function(o,t){const r=Pe({name:"MuiSelect",props:o}),{autoWidth:s=!1,children:c,classes:d={},className:i,defaultOpen:b=!1,displayEmpty:u=!1,IconComponent:m=ht,id:v,input:$,inputProps:h,label:x,labelId:E,MenuProps:_,multiple:R=!1,native:k=!1,onClose:y,onOpen:S,open:z,renderValue:T,SelectDisplayProps:L,variant:q="outlined"}=r,le=ae(r,La),de=k?da:wa,oe=so(),M=io({props:r,muiFormControl:oe,states:["variant","error"]}),J=M.variant||q,G=a({},r,{variant:J,classes:d}),se=Fa(G),Q=ae(se,Ma),re=$||{standard:f.jsx(Ta,{ownerState:G}),outlined:f.jsx(Na,{label:x,ownerState:G}),filled:f.jsx(Aa,{ownerState:G})}[J],U=lo(t,re.ref);return f.jsx(p.Fragment,{children:p.cloneElement(re,a({inputComponent:de,inputProps:a({children:c,error:M.error,IconComponent:m,variant:J,type:void 0,multiple:R},k?{id:v}:{autoWidth:s,defaultOpen:b,displayEmpty:u,labelId:E,MenuProps:_,onClose:y,onOpen:S,open:z,renderValue:T,SelectDisplayProps:a({id:v},L)},h,{classes:h?To(Q,h.classes):Q},$?$.props.inputProps:{})},R&&k&&J==="outlined"?{notched:!0}:{},{ref:U,className:ne(re.props.className,i,se.root)},!$&&{variant:J},le))})});Rt.muiName="Select";const za=Rt;function Da(e){return ye("MuiTextField",e)}Ie("MuiTextField",["root"]);const Ea=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Ba={standard:yt,filled:xt,outlined:kt},ja=e=>{const{classes:o}=e;return $e({root:["root"]},Da,o)},Wa=w(jt,{name:"MuiTextField",slot:"Root",overridesResolver:(e,o)=>o.root})({}),_a=p.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiTextField"}),{autoComplete:s,autoFocus:c=!1,children:d,className:i,color:b="primary",defaultValue:u,disabled:m=!1,error:v=!1,FormHelperTextProps:$,fullWidth:h=!1,helperText:x,id:E,InputLabelProps:_,inputProps:R,InputProps:k,inputRef:y,label:S,maxRows:z,minRows:T,multiline:L=!1,name:q,onBlur:le,onChange:de,onFocus:oe,placeholder:M,required:J=!1,rows:G,select:se=!1,SelectProps:Q,type:re,value:U,variant:F="outlined"}=r,ie=ae(r,Ea),Se=a({},r,{autoFocus:c,color:b,disabled:m,error:v,fullWidth:h,multiline:L,required:J,select:se,variant:F}),Le=ja(Se),ue={};F==="outlined"&&(_&&typeof _.shrink<"u"&&(ue.notched=_.shrink),ue.label=S),se&&((!Q||!Q.native)&&(ue.id=void 0),ue["aria-describedby"]=void 0);const j=zo(E),ee=x&&j?`${j}-helper-text`:void 0,fe=S&&j?`${j}-label`:void 0,We=Ba[F],Z=f.jsx(We,a({"aria-describedby":ee,autoComplete:s,autoFocus:c,defaultValue:u,fullWidth:h,multiline:L,name:q,rows:G,maxRows:z,minRows:T,type:re,value:U,id:j,inputRef:y,onBlur:le,onChange:de,onFocus:oe,placeholder:M,inputProps:R},ue,k));return f.jsxs(Wa,a({className:ne(Le.root,i),disabled:m,error:v,fullWidth:h,ref:t,required:J,color:b,variant:F,ownerState:Se},ie,{children:[S!=null&&S!==""&&f.jsx(Nr,a({htmlFor:j,id:fe},_,{children:S})),se?f.jsx(za,a({"aria-describedby":ee,id:j,labelId:fe,value:U,input:Z},Q,{children:d})):Z,x&&f.jsx(mr,a({id:ee},$,{children:x}))]}))}),Ua=_a,Qa={label:"Not Selected",value:"Not Selected"},el={label:"No Parent",value:"No Parent"},ol=[{label:"number",value:"int"},{label:"string",value:"string"}],tl=[{label:"Corporation",value:"Corporation"},{label:"Event",value:"Event"},{label:"Image",value:"Image"},{label:"Organization",value:"Organization"},{label:"Person",value:"Person"},{label:"Place",value:"Place"},{label:"Project",value:"Project"},{label:"Software",value:"Software"},{label:"Topic",value:"Topic"}],nl=/^[^\s].*$/,Ha={options:[],getOptionLabel:e=>e.label,handleInputChange:e=>e},rl=({options:e,onSelect:o,selectedValue:t=null,handleInputChange:r,isLoading:s=!1,autoFocus:c=!1,disabled:d=!1,dataTestId:i,dataId:b})=>{const u=p.useRef(null),[m,v]=p.useState(!1);p.useEffect(()=>{c&&u.current&&(u.current.focus(),v(!0))},[c]);const $=(h,x)=>{o(x)};return f.jsx(Wt,{flexGrow:1,spacing:1,children:f.jsx(Xn,{...Ha,autoFocus:!0,autoHighlight:!0,blurOnSelect:!0,"data-testid":b,disableClearable:!0,disabled:d,disablePortal:!0,id:"blur-on-select",ListboxProps:{sx:{backgroundColor:je.DROPDOWN_BG,"&::-webkit-scrollbar":{width:"3px"},"&::-webkit-scrollbar-thumb":{backgroundClip:"padding-box",backgroundColor:je.SCROLL_BAR,borderRadius:"6px"}},ref:u},loading:s,onChange:$,onClose:()=>v(!1),onInputChange:(h,x)=>r==null?void 0:r(x),onOpen:()=>v(!0),open:m,options:e??[],PopperComponent:({children:h,...x})=>f.jsx(No,{...x,placement:"bottom-start",children:h}),renderInput:h=>f.jsx(Va,{inputRef:u,...h,"data-testid":i,InputProps:{...h.InputProps,disableUnderline:!0,endAdornment:f.jsx(f.Fragment,{children:s?f.jsx(ar,{color:"inherit",size:20}):h.InputProps.endAdornment})},size:"medium",variant:"standard"}),renderOption:(h,x)=>f.jsx("li",{...h,children:f.jsxs(zt,{align:"center","data-testid":x.label,direction:"row",grow:1,justify:"space-between",onClick:x==null?void 0:x.action,shrink:1,style:{fontSize:"14px",wordBreak:"break-word"},children:[f.jsx("div",{className:"option",children:x.label!==""?x.label:"Not Selected"}),(x==null?void 0:x.type)&&f.jsx(Et,{type:x.type})]})}),sx:{"&.MuiAutocomplete-option:hover":{backgroundColor:je.DROPDOWN_HOVER},"&.MuiAutocomplete-option[aria-selected='true']":{backgroundColor:je.DROPDOWN_SELECTED}},value:t||void 0})})},Va=At(Ua)` + && { + z-index: 2; + width: 100%; + color: #fff; + font-size: 15px; + box-shadow: none; + border-radius: 6px; + pointer-events: auto; + background-color: ${je.BG2}; + box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.1); + padding: 0 8px; + + &:focus, + &:active { + color: ${je.white}; + background-color: ${je.BG2_ACTIVE_INPUT}; + outline: 1px solid ${je.primaryBlue}; + } + + &:hover { + background-color: ${je.BG2_ACTIVE_INPUT}; + box-shadow: 0 0 0 1px ${je.primaryBlue}; + } + + &::placeholder { + font-size: 15px; + text-align: left; + font-weight: 500; + line-height: 16px; + letter-spacing: 0em; + font-family: Barlow; + color: ${je.GRAY7}; + } + + .MuiInput-input.MuiInputBase-input { + padding: 8px; + } + + .MuiInput-root { + padding: 0; + } + } +`;export{rl as A,Do as I,el as N,tl as O,Ua as T,ol as a,Qa as i,nl as n}; diff --git a/build/assets/index-93bc2f63.js b/build/assets/index-f857b04d.js similarity index 72% rename from build/assets/index-93bc2f63.js rename to build/assets/index-f857b04d.js index c9ffb4c90..ad5d65189 100644 --- a/build/assets/index-93bc2f63.js +++ b/build/assets/index-f857b04d.js @@ -1,4 +1,4 @@ -import{r as d,R as h,_ as Z,a as Fn,c as We,j as S,g as Pr,k as Xo,s as Wt,u as Ar,b as Zo,d as Qo,e as ke,f as en,h as Jo,i as Ml,l as jl,m as ha,$ as Ll,P as ae,n as Fl,W as zl,o as fe,p as ei,q as xe,F as J,t as Nl,v as Vl,w as ga,x as Bl,L as Wl,y as ma,z as ba,A as zn,B as ya,C as va,D as Hl,T as Se,S as Ul,E as ze,G as Kl,H as Gl,I as Yl,J as ql,K as Xl,M as Zl,N as Ql}from"./index-21067c9d.js";function Jl(e){return e?String(e).replace(/[[]{2}/g,"").replace(/[\]]{2}/g,""):""}const eu=e=>{const[t,n,r]=e.split(":"),o=parseInt(t,10),i=parseInt(n,10),s=parseInt(r,10);return o*3600+i*60+s};function tu(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const nu=typeof window<"u"?d.useLayoutEffect:d.useEffect,ru=nu;function qn(e){const t=d.useRef(e);return ru(()=>{t.current=e}),d.useRef((...n)=>(0,t.current)(...n)).current}function Oi(...e){return d.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{tu(n,t)})},e)}let Ir=!0,yo=!1,Pi;const ou={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function iu(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&ou[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function su(e){e.metaKey||e.altKey||e.ctrlKey||(Ir=!0)}function Kr(){Ir=!1}function au(){this.visibilityState==="hidden"&&yo&&(Ir=!0)}function cu(e){e.addEventListener("keydown",su,!0),e.addEventListener("mousedown",Kr,!0),e.addEventListener("pointerdown",Kr,!0),e.addEventListener("touchstart",Kr,!0),e.addEventListener("visibilitychange",au,!0)}function lu(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Ir||iu(t)}function uu(){const e=d.useCallback(o=>{o!=null&&cu(o.ownerDocument)},[]),t=d.useRef(!1);function n(){return t.current?(yo=!0,window.clearTimeout(Pi),Pi=window.setTimeout(()=>{yo=!1},100),t.current=!1,!0):!1}function r(o){return lu(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function vo(e,t){return vo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},vo(e,t)}function du(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,vo(e,t)}const Ai=h.createContext(null);function fu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ti(e,t){var n=function(i){return t&&d.isValidElement(i)?t(i):i},r=Object.create(null);return e&&d.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function pu(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var s,a={};for(var c in t){if(r[c])for(s=0;s{if(!a&&c!=null){const b=setTimeout(c,l);return()=>{clearTimeout(b)}}},[c,a,l]),S.jsx("span",{className:p,style:g,children:S.jsx("span",{className:m})})}const xu=Pr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),qe=xu,wu=["center","classes","className"];let Dr=e=>e,Ii,Di,Mi,ji;const xo=550,$u=80,Eu=Xo(Ii||(Ii=Dr` +import{r as d,R as h,_ as Z,a as Fn,c as We,j as _,g as Pr,k as Xo,s as Wt,u as Ar,b as Zo,d as Qo,e as Te,f as en,h as Jo,i as Ml,l as jl,m as ga,$ as Ll,P as ce,n as Fl,W as zl,o as fe,p as ei,q as Q,F as ee,t as Nl,v as Vl,w as ti,x as Bl,L as Wl,y as ma,z as ba,A as zn,B as ya,C as va,D as Hl,T as Ae,S as Ul,E as ze,G as Kl,H as Gl,I as Yl,J as ql,K as Xl,M as Zl,N as Ql}from"./index-f50d1ab5.js";function Jl(e){return e?String(e).replace(/[[]{2}/g,"").replace(/[\]]{2}/g,""):""}const eu=e=>{const[t,n,r]=e.split(":"),o=parseInt(t,10),i=parseInt(n,10),s=parseInt(r,10);return o*3600+i*60+s};function tu(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const nu=typeof window<"u"?d.useLayoutEffect:d.useEffect,ru=nu;function qn(e){const t=d.useRef(e);return ru(()=>{t.current=e}),d.useRef((...n)=>(0,t.current)(...n)).current}function Pi(...e){return d.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{tu(n,t)})},e)}let Ir=!0,yo=!1,Ai;const ou={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function iu(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&ou[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function su(e){e.metaKey||e.altKey||e.ctrlKey||(Ir=!0)}function Kr(){Ir=!1}function au(){this.visibilityState==="hidden"&&yo&&(Ir=!0)}function cu(e){e.addEventListener("keydown",su,!0),e.addEventListener("mousedown",Kr,!0),e.addEventListener("pointerdown",Kr,!0),e.addEventListener("touchstart",Kr,!0),e.addEventListener("visibilitychange",au,!0)}function lu(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Ir||iu(t)}function uu(){const e=d.useCallback(o=>{o!=null&&cu(o.ownerDocument)},[]),t=d.useRef(!1);function n(){return t.current?(yo=!0,window.clearTimeout(Ai),Ai=window.setTimeout(()=>{yo=!1},100),t.current=!1,!0):!1}function r(o){return lu(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function vo(e,t){return vo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},vo(e,t)}function du(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,vo(e,t)}const Ii=h.createContext(null);function fu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ni(e,t){var n=function(i){return t&&d.isValidElement(i)?t(i):i},r=Object.create(null);return e&&d.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function pu(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var s,a={};for(var c in t){if(r[c])for(s=0;s{if(!a&&c!=null){const b=setTimeout(c,l);return()=>{clearTimeout(b)}}},[c,a,l]),_.jsx("span",{className:p,style:g,children:_.jsx("span",{className:m})})}const xu=Pr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),qe=xu,wu=["center","classes","className"];let Dr=e=>e,Di,Mi,ji,Li;const xo=550,Eu=80,$u=Xo(Di||(Di=Dr` 0% { transform: scale(0); opacity: 0.1; @@ -8,7 +8,7 @@ import{r as d,R as h,_ as Z,a as Fn,c as We,j as S,g as Pr,k as Xo,s as Wt,u as transform: scale(1); opacity: 0.3; } -`)),Cu=Xo(Di||(Di=Dr` +`)),Cu=Xo(Mi||(Mi=Dr` 0% { opacity: 1; } @@ -16,7 +16,7 @@ import{r as d,R as h,_ as Z,a as Fn,c as We,j as S,g as Pr,k as Xo,s as Wt,u as 100% { opacity: 0; } -`)),_u=Xo(Mi||(Mi=Dr` +`)),_u=Xo(ji||(ji=Dr` 0% { transform: scale(1); } @@ -28,7 +28,7 @@ import{r as d,R as h,_ as Z,a as Fn,c as We,j as S,g as Pr,k as Xo,s as Wt,u as 100% { transform: scale(1); } -`)),Su=Wt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Tu=Wt(vu,{name:"MuiTouchRipple",slot:"Ripple"})(ji||(ji=Dr` +`)),Su=Wt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Tu=Wt(vu,{name:"MuiTouchRipple",slot:"Ripple"})(Li||(Li=Dr` opacity: 0; position: absolute; @@ -71,30 +71,30 @@ import{r as d,R as h,_ as Z,a as Fn,c as We,j as S,g as Pr,k as Xo,s as Wt,u as animation-iteration-count: infinite; animation-delay: 200ms; } -`),qe.rippleVisible,Eu,xo,({theme:e})=>e.transitions.easing.easeInOut,qe.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,qe.child,qe.childLeaving,Cu,xo,({theme:e})=>e.transitions.easing.easeInOut,qe.childPulsate,_u,({theme:e})=>e.transitions.easing.easeInOut),ku=d.forwardRef(function(t,n){const r=Ar({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s}=r,a=Fn(r,wu),[c,l]=d.useState([]),u=d.useRef(0),f=d.useRef(null);d.useEffect(()=>{f.current&&(f.current(),f.current=null)},[c]);const p=d.useRef(!1),g=d.useRef(0),m=d.useRef(null),b=d.useRef(null);d.useEffect(()=>()=>{g.current&&clearTimeout(g.current)},[]);const w=d.useCallback(_=>{const{pulsate:$,rippleX:E,rippleY:T,rippleSize:R,cb:F}=_;l(j=>[...j,S.jsx(Tu,{classes:{ripple:We(i.ripple,qe.ripple),rippleVisible:We(i.rippleVisible,qe.rippleVisible),ripplePulsate:We(i.ripplePulsate,qe.ripplePulsate),child:We(i.child,qe.child),childLeaving:We(i.childLeaving,qe.childLeaving),childPulsate:We(i.childPulsate,qe.childPulsate)},timeout:xo,pulsate:$,rippleX:E,rippleY:T,rippleSize:R},u.current)]),u.current+=1,f.current=F},[i]),v=d.useCallback((_={},$={},E=()=>{})=>{const{pulsate:T=!1,center:R=o||$.pulsate,fakeElement:F=!1}=$;if((_==null?void 0:_.type)==="mousedown"&&p.current){p.current=!1;return}(_==null?void 0:_.type)==="touchstart"&&(p.current=!0);const j=F?null:b.current,z=j?j.getBoundingClientRect():{width:0,height:0,left:0,top:0};let A,N,L;if(R||_===void 0||_.clientX===0&&_.clientY===0||!_.clientX&&!_.touches)A=Math.round(z.width/2),N=Math.round(z.height/2);else{const{clientX:D,clientY:V}=_.touches&&_.touches.length>0?_.touches[0]:_;A=Math.round(D-z.left),N=Math.round(V-z.top)}if(R)L=Math.sqrt((2*z.width**2+z.height**2)/3),L%2===0&&(L+=1);else{const D=Math.max(Math.abs((j?j.clientWidth:0)-A),A)*2+2,V=Math.max(Math.abs((j?j.clientHeight:0)-N),N)*2+2;L=Math.sqrt(D**2+V**2)}_!=null&&_.touches?m.current===null&&(m.current=()=>{w({pulsate:T,rippleX:A,rippleY:N,rippleSize:L,cb:E})},g.current=setTimeout(()=>{m.current&&(m.current(),m.current=null)},$u)):w({pulsate:T,rippleX:A,rippleY:N,rippleSize:L,cb:E})},[o,w]),y=d.useCallback(()=>{v({},{pulsate:!0})},[v]),C=d.useCallback((_,$)=>{if(clearTimeout(g.current),(_==null?void 0:_.type)==="touchend"&&m.current){m.current(),m.current=null,g.current=setTimeout(()=>{C(_,$)});return}m.current=null,l(E=>E.length>0?E.slice(1):E),f.current=$},[]);return d.useImperativeHandle(n,()=>({pulsate:y,start:v,stop:C}),[y,v,C]),S.jsx(Su,Z({className:We(qe.root,i.root,s),ref:b},a,{children:S.jsx(yu,{component:null,exit:!0,children:c})}))}),Ru=ku;function Ou(e){return Zo("MuiButtonBase",e)}const Pu=Pr("MuiButtonBase",["root","disabled","focusVisible"]),Au=Pu,Iu=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Du=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=Qo({root:["root",t&&"disabled",n&&"focusVisible"]},Ou,o);return n&&r&&(s.root+=` ${r}`),s},Mu=Wt("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Au.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ju=d.forwardRef(function(t,n){const r=Ar({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:a,component:c="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:g="a",onBlur:m,onClick:b,onContextMenu:w,onDragLeave:v,onFocus:y,onFocusVisible:C,onKeyDown:_,onKeyUp:$,onMouseDown:E,onMouseLeave:T,onMouseUp:R,onTouchEnd:F,onTouchMove:j,onTouchStart:z,tabIndex:A=0,TouchRippleProps:N,touchRippleRef:L,type:D}=r,V=Fn(r,Iu),U=d.useRef(null),Y=d.useRef(null),Q=Oi(Y,L),{isFocusVisibleRef:de,onFocus:ne,onBlur:ye,ref:pe}=uu(),[re,le]=d.useState(!1);l&&re&&le(!1),d.useImperativeHandle(o,()=>({focusVisible:()=>{le(!0),U.current.focus()}}),[]);const[ie,Ce]=d.useState(!1);d.useEffect(()=>{Ce(!0)},[]);const _e=ie&&!u&&!l;d.useEffect(()=>{re&&p&&!u&&ie&&Y.current.pulsate()},[u,p,re,ie]);function ve(K,Ve,Dt=f){return qn(st=>(Ve&&Ve(st),!Dt&&Y.current&&Y.current[K](st),!0))}const it=ve("start",E),dt=ve("stop",w),_t=ve("stop",v),Ne=ve("stop",R),ft=ve("stop",K=>{re&&K.preventDefault(),T&&T(K)}),Pe=ve("start",z),Ye=ve("stop",F),Ut=ve("stop",j),Kt=ve("stop",K=>{ye(K),de.current===!1&&le(!1),m&&m(K)},!1),Gt=qn(K=>{U.current||(U.current=K.currentTarget),ne(K),de.current===!0&&(le(!0),C&&C(K)),y&&y(K)}),x=()=>{const K=U.current;return c&&c!=="button"&&!(K.tagName==="A"&&K.href)},k=d.useRef(!1),I=qn(K=>{p&&!k.current&&re&&Y.current&&K.key===" "&&(k.current=!0,Y.current.stop(K,()=>{Y.current.start(K)})),K.target===K.currentTarget&&x()&&K.key===" "&&K.preventDefault(),_&&_(K),K.target===K.currentTarget&&x()&&K.key==="Enter"&&!l&&(K.preventDefault(),b&&b(K))}),O=qn(K=>{p&&K.key===" "&&Y.current&&re&&!K.defaultPrevented&&(k.current=!1,Y.current.stop(K,()=>{Y.current.pulsate(K)})),$&&$(K),b&&K.target===K.currentTarget&&x()&&K.key===" "&&!K.defaultPrevented&&b(K)});let P=c;P==="button"&&(V.href||V.to)&&(P=g);const M={};P==="button"?(M.type=D===void 0?"button":D,M.disabled=l):(!V.href&&!V.to&&(M.role="button"),l&&(M["aria-disabled"]=l));const W=Oi(n,pe,U),X=Z({},r,{centerRipple:i,component:c,disabled:l,disableRipple:u,disableTouchRipple:f,focusRipple:p,tabIndex:A,focusVisible:re}),se=Du(X);return S.jsxs(Mu,Z({as:P,className:We(se.root,a),ownerState:X,onBlur:Kt,onClick:b,onContextMenu:dt,onFocus:Gt,onKeyDown:I,onKeyUp:O,onMouseDown:it,onMouseLeave:ft,onMouseUp:Ne,onDragLeave:_t,onTouchEnd:Ye,onTouchMove:Ut,onTouchStart:Pe,ref:W,tabIndex:l?-1:A,type:D},M,V,{children:[s,_e?S.jsx(Ru,Z({ref:Q,center:i},N)):null]}))}),xa=ju;function Lu(e){return Zo("MuiIconButton",e)}const Fu=Pr("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),zu=Fu,Nu=["edge","children","className","color","disabled","disableFocusRipple","size"],Vu=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${ke(r)}`,o&&`edge${ke(o)}`,`size${ke(i)}`]};return Qo(s,Lu,t)},Bu=Wt(xa,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ke(n.color)}`],n.edge&&t[`edge${ke(n.edge)}`],t[`size${ke(n.size)}`]]}})(({theme:e,ownerState:t})=>Z({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:en(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return Z({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&Z({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":Z({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:en(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${zu.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Wu=d.forwardRef(function(t,n){const r=Ar({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:a="default",disabled:c=!1,disableFocusRipple:l=!1,size:u="medium"}=r,f=Fn(r,Nu),p=Z({},r,{edge:o,color:a,disabled:c,disableFocusRipple:l,size:u}),g=Vu(p);return S.jsx(Bu,Z({className:We(g.root,s),centerRipple:!0,focusRipple:!l,disabled:c,ref:n,ownerState:p},f,{children:i}))}),wa=Wu,Hu=["top","right","bottom","left"],Ot=Math.min,He=Math.max,ur=Math.round,Xn=Math.floor,Pt=e=>({x:e,y:e}),Uu={left:"right",right:"left",bottom:"top",top:"bottom"},Ku={start:"end",end:"start"};function wo(e,t,n){return He(e,Ot(t,n))}function vt(e,t){return typeof e=="function"?e(t):e}function xt(e){return e.split("-")[0]}function un(e){return e.split("-")[1]}function ri(e){return e==="x"?"y":"x"}function oi(e){return e==="y"?"height":"width"}function dn(e){return["top","bottom"].includes(xt(e))?"y":"x"}function ii(e){return ri(dn(e))}function Gu(e,t,n){n===void 0&&(n=!1);const r=un(e),o=ii(e),i=oi(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=dr(s)),[s,dr(s)]}function Yu(e){const t=dr(e);return[$o(e),t,$o(t)]}function $o(e){return e.replace(/start|end/g,t=>Ku[t])}function qu(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function Xu(e,t,n,r){const o=un(e);let i=qu(xt(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map($o)))),i}function dr(e){return e.replace(/left|right|bottom|top/g,t=>Uu[t])}function Zu(e){return{top:0,right:0,bottom:0,left:0,...e}}function $a(e){return typeof e!="number"?Zu(e):{top:e,right:e,bottom:e,left:e}}function fr(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Li(e,t,n){let{reference:r,floating:o}=e;const i=dn(t),s=ii(t),a=oi(s),c=xt(t),l=i==="y",u=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/2;let g;switch(c){case"top":g={x:u,y:r.y-o.height};break;case"bottom":g={x:u,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:f};break;case"left":g={x:r.x-o.width,y:f};break;default:g={x:r.x,y:r.y}}switch(un(t)){case"start":g[s]-=p*(n&&l?-1:1);break;case"end":g[s]+=p*(n&&l?-1:1);break}return g}const Qu=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=Li(l,r,c),p=r,g={},m=0;for(let b=0;b({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=vt(e,t)||{};if(l==null)return{};const f=$a(u),p={x:n,y:r},g=ii(o),m=oi(g),b=await s.getDimensions(l),w=g==="y",v=w?"top":"left",y=w?"bottom":"right",C=w?"clientHeight":"clientWidth",_=i.reference[m]+i.reference[g]-p[g]-i.floating[m],$=p[g]-i.reference[g],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let T=E?E[C]:0;(!T||!await(s.isElement==null?void 0:s.isElement(E)))&&(T=a.floating[C]||i.floating[m]);const R=_/2-$/2,F=T/2-b[m]/2-1,j=Ot(f[v],F),z=Ot(f[y],F),A=j,N=T-b[m]-z,L=T/2-b[m]/2+R,D=wo(A,L,N),V=!c.arrow&&un(o)!=null&&L!=D&&i.reference[m]/2-(LA<=0)){var F,j;const A=(((F=i.flip)==null?void 0:F.index)||0)+1,N=$[A];if(N)return{data:{index:A,overflows:R},reset:{placement:N}};let L=(j=R.filter(D=>D.overflows[0]<=0).sort((D,V)=>D.overflows[1]-V.overflows[1])[0])==null?void 0:j.placement;if(!L)switch(g){case"bestFit":{var z;const D=(z=R.map(V=>[V.placement,V.overflows.filter(U=>U>0).reduce((U,Y)=>U+Y,0)]).sort((V,U)=>V[1]-U[1])[0])==null?void 0:z[0];D&&(L=D);break}case"initialPlacement":L=a;break}if(o!==L)return{reset:{placement:L}}}return{}}}};function zi(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ni(e){return Hu.some(t=>e[t]>=0)}const ed=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=vt(e,t);switch(r){case"referenceHidden":{const i=await Pn(t,{...o,elementContext:"reference"}),s=zi(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ni(s)}}}case"escaped":{const i=await Pn(t,{...o,altBoundary:!0}),s=zi(i,n.floating);return{data:{escapedOffsets:s,escaped:Ni(s)}}}default:return{}}}}};async function td(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=xt(n),a=un(n),c=dn(n)==="y",l=["left","top"].includes(s)?-1:1,u=i&&c?-1:1,f=vt(t,e);let{mainAxis:p,crossAxis:g,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&typeof m=="number"&&(g=a==="end"?m*-1:m),c?{x:g*u,y:p*l}:{x:p*l,y:g*u}}const nd=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,c=await td(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},rd=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:w=>{let{x:v,y}=w;return{x:v,y}}},...c}=vt(e,t),l={x:n,y:r},u=await Pn(t,c),f=dn(xt(o)),p=ri(f);let g=l[p],m=l[f];if(i){const w=p==="y"?"top":"left",v=p==="y"?"bottom":"right",y=g+u[w],C=g-u[v];g=wo(y,g,C)}if(s){const w=f==="y"?"top":"left",v=f==="y"?"bottom":"right",y=m+u[w],C=m-u[v];m=wo(y,m,C)}const b=a.fn({...t,[p]:g,[f]:m});return{...b,data:{x:b.x-n,y:b.y-r}}}}},od=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=vt(e,t),u={x:n,y:r},f=dn(o),p=ri(f);let g=u[p],m=u[f];const b=vt(a,t),w=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(c){const C=p==="y"?"height":"width",_=i.reference[p]-i.floating[C]+w.mainAxis,$=i.reference[p]+i.reference[C]-w.mainAxis;g<_?g=_:g>$&&(g=$)}if(l){var v,y;const C=p==="y"?"width":"height",_=["top","left"].includes(xt(o)),$=i.reference[f]-i.floating[C]+(_&&((v=s.offset)==null?void 0:v[f])||0)+(_?0:w.crossAxis),E=i.reference[f]+i.reference[C]+(_?0:((y=s.offset)==null?void 0:y[f])||0)-(_?w.crossAxis:0);m<$?m=$:m>E&&(m=E)}return{[p]:g,[f]:m}}}},id=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:s=()=>{},...a}=vt(e,t),c=await Pn(t,a),l=xt(n),u=un(n),f=dn(n)==="y",{width:p,height:g}=r.floating;let m,b;l==="top"||l==="bottom"?(m=l,b=u===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(b=l,m=u==="end"?"top":"bottom");const w=g-c[m],v=p-c[b],y=!t.middlewareData.shift;let C=w,_=v;if(f){const E=p-c.left-c.right;_=u||y?Ot(v,E):E}else{const E=g-c.top-c.bottom;C=u||y?Ot(w,E):E}if(y&&!u){const E=He(c.left,0),T=He(c.right,0),R=He(c.top,0),F=He(c.bottom,0);f?_=p-2*(E!==0||T!==0?E+T:He(c.left,c.right)):C=g-2*(R!==0||F!==0?R+F:He(c.top,c.bottom))}await s({...t,availableWidth:_,availableHeight:C});const $=await o.getDimensions(i.floating);return p!==$.width||g!==$.height?{reset:{rects:!0}}:{}}}};function At(e){return Ea(e)?(e.nodeName||"").toLowerCase():"#document"}function Ge(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Et(e){var t;return(t=(Ea(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ea(e){return e instanceof Node||e instanceof Ge(e).Node}function wt(e){return e instanceof Element||e instanceof Ge(e).Element}function lt(e){return e instanceof HTMLElement||e instanceof Ge(e).HTMLElement}function Vi(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ge(e).ShadowRoot}function Nn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=et(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function sd(e){return["table","td","th"].includes(At(e))}function si(e){const t=ai(),n=et(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function ad(e){let t=an(e);for(;lt(t)&&!Mr(t);){if(si(t))return t;t=an(t)}return null}function ai(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Mr(e){return["html","body","#document"].includes(At(e))}function et(e){return Ge(e).getComputedStyle(e)}function jr(e){return wt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function an(e){if(At(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Vi(e)&&e.host||Et(e);return Vi(t)?t.host:t}function Ca(e){const t=an(e);return Mr(t)?e.ownerDocument?e.ownerDocument.body:e.body:lt(t)&&Nn(t)?t:Ca(t)}function An(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ca(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Ge(o);return i?t.concat(s,s.visualViewport||[],Nn(o)?o:[],s.frameElement&&n?An(s.frameElement):[]):t.concat(o,An(o,[],n))}function _a(e){const t=et(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=lt(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=ur(n)!==i||ur(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function ci(e){return wt(e)?e:e.contextElement}function rn(e){const t=ci(e);if(!lt(t))return Pt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=_a(t);let s=(i?ur(n.width):n.width)/r,a=(i?ur(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const cd=Pt(0);function Sa(e){const t=Ge(e);return!ai()||!t.visualViewport?cd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ld(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ge(e)?!1:t}function Vt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=ci(e);let s=Pt(1);t&&(r?wt(r)&&(s=rn(r)):s=rn(e));const a=ld(i,n,r)?Sa(i):Pt(0);let c=(o.left+a.x)/s.x,l=(o.top+a.y)/s.y,u=o.width/s.x,f=o.height/s.y;if(i){const p=Ge(i),g=r&&wt(r)?Ge(r):r;let m=p.frameElement;for(;m&&r&&g!==p;){const b=rn(m),w=m.getBoundingClientRect(),v=et(m),y=w.left+(m.clientLeft+parseFloat(v.paddingLeft))*b.x,C=w.top+(m.clientTop+parseFloat(v.paddingTop))*b.y;c*=b.x,l*=b.y,u*=b.x,f*=b.y,c+=y,l+=C,m=Ge(m).frameElement}}return fr({width:u,height:f,x:c,y:l})}function ud(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=lt(n),i=Et(n);if(n===i)return t;let s={scrollLeft:0,scrollTop:0},a=Pt(1);const c=Pt(0);if((o||!o&&r!=="fixed")&&((At(n)!=="body"||Nn(i))&&(s=jr(n)),lt(n))){const l=Vt(n);a=rn(n),c.x=l.x+n.clientLeft,c.y=l.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-s.scrollLeft*a.x+c.x,y:t.y*a.y-s.scrollTop*a.y+c.y}}function dd(e){return Array.from(e.getClientRects())}function Ta(e){return Vt(Et(e)).left+jr(e).scrollLeft}function fd(e){const t=Et(e),n=jr(e),r=e.ownerDocument.body,o=He(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=He(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Ta(e);const a=-n.scrollTop;return et(r).direction==="rtl"&&(s+=He(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function pd(e,t){const n=Ge(e),r=Et(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;const l=ai();(!l||l&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:a,y:c}}function hd(e,t){const n=Vt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=lt(e)?rn(e):Pt(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=o*i.x,l=r*i.y;return{width:s,height:a,x:c,y:l}}function Bi(e,t,n){let r;if(t==="viewport")r=pd(e,n);else if(t==="document")r=fd(Et(e));else if(wt(t))r=hd(t,n);else{const o=Sa(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return fr(r)}function ka(e,t){const n=an(e);return n===t||!wt(n)||Mr(n)?!1:et(n).position==="fixed"||ka(n,t)}function gd(e,t){const n=t.get(e);if(n)return n;let r=An(e,[],!1).filter(a=>wt(a)&&At(a)!=="body"),o=null;const i=et(e).position==="fixed";let s=i?an(e):e;for(;wt(s)&&!Mr(s);){const a=et(s),c=si(s);!c&&a.position==="fixed"&&(o=null),(i?!c&&!o:!c&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Nn(s)&&!c&&ka(e,s))?r=r.filter(u=>u!==s):o=a,s=an(s)}return t.set(e,r),r}function md(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?gd(t,this._c):[].concat(n),r],a=s[0],c=s.reduce((l,u)=>{const f=Bi(t,u,o);return l.top=He(f.top,l.top),l.right=Ot(f.right,l.right),l.bottom=Ot(f.bottom,l.bottom),l.left=He(f.left,l.left),l},Bi(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function bd(e){return _a(e)}function yd(e,t,n){const r=lt(t),o=Et(t),i=n==="fixed",s=Vt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=Pt(0);if(r||!r&&!i)if((At(t)!=="body"||Nn(o))&&(a=jr(t)),r){const l=Vt(t,!0,i,t);c.x=l.x+t.clientLeft,c.y=l.y+t.clientTop}else o&&(c.x=Ta(o));return{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function Wi(e,t){return!lt(e)||et(e).position==="fixed"?null:t?t(e):e.offsetParent}function Ra(e,t){const n=Ge(e);if(!lt(e))return n;let r=Wi(e,t);for(;r&&sd(r)&&et(r).position==="static";)r=Wi(r,t);return r&&(At(r)==="html"||At(r)==="body"&&et(r).position==="static"&&!si(r))?n:r||ad(e)||n}const vd=async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||Ra,i=this.getDimensions;return{reference:yd(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}};function xd(e){return et(e).direction==="rtl"}const wd={convertOffsetParentRelativeRectToViewportRelativeRect:ud,getDocumentElement:Et,getClippingRect:md,getOffsetParent:Ra,getElementRects:vd,getClientRects:dd,getDimensions:bd,getScale:rn,isElement:wt,isRTL:xd};function $d(e,t){let n=null,r;const o=Et(e);function i(){clearTimeout(r),n&&n.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const{left:l,top:u,width:f,height:p}=e.getBoundingClientRect();if(a||t(),!f||!p)return;const g=Xn(u),m=Xn(o.clientWidth-(l+f)),b=Xn(o.clientHeight-(u+p)),w=Xn(l),y={rootMargin:-g+"px "+-m+"px "+-b+"px "+-w+"px",threshold:He(0,Ot(1,c))||1};let C=!0;function _($){const E=$[0].intersectionRatio;if(E!==c){if(!C)return s();E?s(!1,E):r=setTimeout(()=>{s(!1,1e-7)},100)}C=!1}try{n=new IntersectionObserver(_,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,y)}n.observe(e)}return s(!0),i}function Ed(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=ci(e),u=o||i?[...l?An(l):[],...An(t)]:[];u.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const f=l&&a?$d(l,n):null;let p=-1,g=null;s&&(g=new ResizeObserver(v=>{let[y]=v;y&&y.target===l&&g&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{g&&g.observe(t)})),n()}),l&&!c&&g.observe(l),g.observe(t));let m,b=c?Vt(e):null;c&&w();function w(){const v=Vt(e);b&&(v.x!==b.x||v.y!==b.y||v.width!==b.width||v.height!==b.height)&&n(),b=v,m=requestAnimationFrame(w)}return n(),()=>{u.forEach(v=>{o&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),f&&f(),g&&g.disconnect(),g=null,c&&cancelAnimationFrame(m)}}const Cd=(e,t,n)=>{const r=new Map,o={platform:wd,...n},i={...o.platform,_c:r};return Qu(e,t,{...o,platform:i})},_d=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Fi({element:r.current,padding:o}).fn(n):{}:r?Fi({element:r,padding:o}).fn(n):{}}}};var sr=typeof document<"u"?d.useLayoutEffect:d.useEffect;function pr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!pr(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!pr(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Oa(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Hi(e,t){const n=Oa(e);return Math.round(t*n)/n}function Ui(e){const t=d.useRef(e);return sr(()=>{t.current=e}),t}function Sd(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[u,f]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,g]=d.useState(r);pr(p,r)||g(r);const[m,b]=d.useState(null),[w,v]=d.useState(null),y=d.useCallback(V=>{V!=E.current&&(E.current=V,b(V))},[b]),C=d.useCallback(V=>{V!==T.current&&(T.current=V,v(V))},[v]),_=i||m,$=s||w,E=d.useRef(null),T=d.useRef(null),R=d.useRef(u),F=Ui(c),j=Ui(o),z=d.useCallback(()=>{if(!E.current||!T.current)return;const V={placement:t,strategy:n,middleware:p};j.current&&(V.platform=j.current),Cd(E.current,T.current,V).then(U=>{const Y={...U,isPositioned:!0};A.current&&!pr(R.current,Y)&&(R.current=Y,Jo.flushSync(()=>{f(Y)}))})},[p,t,n,j]);sr(()=>{l===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,f(V=>({...V,isPositioned:!1})))},[l]);const A=d.useRef(!1);sr(()=>(A.current=!0,()=>{A.current=!1}),[]),sr(()=>{if(_&&(E.current=_),$&&(T.current=$),_&&$){if(F.current)return F.current(_,$,z);z()}},[_,$,z,F]);const N=d.useMemo(()=>({reference:E,floating:T,setReference:y,setFloating:C}),[y,C]),L=d.useMemo(()=>({reference:_,floating:$}),[_,$]),D=d.useMemo(()=>{const V={position:n,left:0,top:0};if(!L.floating)return V;const U=Hi(L.floating,u.x),Y=Hi(L.floating,u.y);return a?{...V,transform:"translate("+U+"px, "+Y+"px)",...Oa(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:U,top:Y}},[n,a,L.floating,u.x,u.y]);return d.useMemo(()=>({...u,update:z,refs:N,elements:L,floatingStyles:D}),[u,z,N,L,D])}function Td(e){return Zo("MuiButton",e)}const kd=Pr("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Zn=kd,Rd=d.createContext({}),Od=Rd,Pd=d.createContext(void 0),Ad=Pd,Id=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Dd=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:s}=e,a={root:["root",i,`${i}${ke(t)}`,`size${ke(o)}`,`${i}Size${ke(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${ke(o)}`],endIcon:["endIcon",`iconSize${ke(o)}`]},c=Qo(a,Td,s);return Z({},s,c)},Pa=e=>Z({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),Md=Wt(xa,{shouldForwardProp:e=>Ml(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ke(n.color)}`],t[`size${ke(n.size)}`],t[`${n.variant}Size${ke(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return Z({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":Z({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:en(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:en(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:en(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Z({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Zn.focusVisible}`]:Z({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Zn.disabled}`]:Z({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${en(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Zn.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Zn.disabled}`]:{boxShadow:"none"}}),jd=Wt("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ke(n.size)}`]]}})(({ownerState:e})=>Z({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Pa(e))),Ld=Wt("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ke(n.size)}`]]}})(({ownerState:e})=>Z({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Pa(e))),Fd=d.forwardRef(function(t,n){const r=d.useContext(Od),o=d.useContext(Ad),i=jl(r,t),s=Ar({props:i,name:"MuiButton"}),{children:a,color:c="primary",component:l="button",className:u,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:g=!1,endIcon:m,focusVisibleClassName:b,fullWidth:w=!1,size:v="medium",startIcon:y,type:C,variant:_="text"}=s,$=Fn(s,Id),E=Z({},s,{color:c,component:l,disabled:f,disableElevation:p,disableFocusRipple:g,fullWidth:w,size:v,type:C,variant:_}),T=Dd(E),R=y&&S.jsx(jd,{className:T.startIcon,ownerState:E,children:y}),F=m&&S.jsx(Ld,{className:T.endIcon,ownerState:E,children:m}),j=o||"";return S.jsxs(Md,Z({ownerState:E,className:We(r.className,T.root,u,j),component:l,disabled:f,focusRipple:!g,focusVisibleClassName:We(T.focusVisible,b),ref:n,type:C},$,{classes:T,children:[R,a,F]}))}),li=Fd;function zd(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Aa(...e){return t=>e.forEach(n=>zd(n,t))}function fn(...e){return d.useCallback(Aa(...e),e)}const Ia=d.forwardRef((e,t)=>{const{children:n,...r}=e,o=d.Children.toArray(n),i=o.find(Nd);if(i){const s=i.props.children,a=o.map(c=>c===i?d.Children.count(s)>1?d.Children.only(null):d.isValidElement(s)?s.props.children:null:c);return d.createElement(Eo,Z({},r,{ref:t}),d.isValidElement(s)?d.cloneElement(s,void 0,a):null)}return d.createElement(Eo,Z({},r,{ref:t}),n)});Ia.displayName="Slot";const Eo=d.forwardRef((e,t)=>{const{children:n,...r}=e;return d.isValidElement(n)?d.cloneElement(n,{...Vd(r,n.props),ref:t?Aa(t,n.ref):n.ref}):d.Children.count(n)>1?d.Children.only(null):null});Eo.displayName="SlotClone";const Da=({children:e})=>d.createElement(d.Fragment,null,e);function Nd(e){return d.isValidElement(e)&&e.type===Da}function Vd(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{i(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const Bd=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ht=Bd.reduce((e,t)=>{const n=d.forwardRef((r,o)=>{const{asChild:i,...s}=r,a=i?Ia:t;return d.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),d.createElement(a,Z({},s,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Wd(e,t){e&&Jo.flushSync(()=>e.dispatchEvent(t))}const Hd=d.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?ha.createPortal(d.createElement(Ht.div,Z({},o,{ref:t})),r):null}),Ud=Hd;var Ki=Object.prototype.hasOwnProperty;function In(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&In(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(Ki.call(e,n)&&++r&&!Ki.call(t,n)||!(n in t)||!In(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function Vn(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r0;)s[a]=arguments[a+4];e.call(this,s),e.captureStackTrace&&e.captureStackTrace(this,t),this.rule=n,this.value=r,this.cause=o,this.target=i}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Error),ut=function(t,n){t===void 0&&(t=[]),n===void 0&&(n=[]),this.chain=t,this.nextRuleModifiers=n};ut.prototype._applyRule=function(t,n){var r=this;return function(){for(var o=[],i=arguments.length;i--;)o[i]=arguments[i];return r.chain.push(new Lr(n,t.apply(r,o),o,r.nextRuleModifiers)),r.nextRuleModifiers=[],r}};ut.prototype._applyModifier=function(t,n){return this.nextRuleModifiers.push(new Kd(n,t.simple,t.async)),this};ut.prototype._clone=function(){return new ut(this.chain.slice(),this.nextRuleModifiers.slice())};ut.prototype.test=function(t){return this.chain.every(function(n){return n._test(t)})};ut.prototype.testAll=function(t){var n=[];return this.chain.forEach(function(r){try{r._check(t)}catch(o){n.push(new ui(r,t,o))}}),n};ut.prototype.check=function(t){this.chain.forEach(function(n){try{n._check(t)}catch(r){throw new ui(n,t,r)}})};ut.prototype.testAsync=function(t){var n=this;return new Promise(function(r,o){La(t,n.chain.slice(),r,o)})};function La(e,t,n,r){if(t.length){var o=t.shift();o._testAsync(e).then(function(){La(e,t,n,r)},function(i){r(new ui(o,e,i))})}else n(e)}var Gi=function(e,t){return t&&typeof e=="string"&&e.trim().length===0?!0:e==null};function Gd(e,t){return t===void 0&&(t=!1),{simple:function(n){return Gi(n,t)||e.check(n)===void 0},async:function(n){return Gi(n,t)||e.testAsync(n)}}}function Fe(){return typeof Proxy<"u"?Fa(new ut):Co(new ut)}var Dn={};Fe.extend=function(e){Object.assign(Dn,e)};Fe.clearCustomRules=function(){Dn={}};function Fa(e){return new Proxy(e,{get:function(n,r){if(r in n)return n[r];var o=Fa(e._clone());if(r in hr)return o._applyModifier(hr[r],r);if(r in Dn)return o._applyRule(Dn[r],r);if(r in _o)return o._applyRule(_o[r],r)}})}function Co(e){var t=function(o,i){return Object.keys(o).forEach(function(s){i[s]=function(){for(var a=[],c=arguments.length;c--;)a[c]=arguments[c];var l=Co(i._clone()),u=l._applyRule(o[s],s).apply(void 0,a);return u}}),i},n=t(_o,e),r=t(Dn,n);return Object.keys(hr).forEach(function(o){Object.defineProperty(r,o,{get:function(){var i=Co(r._clone());return i._applyModifier(hr[o],o)}})}),r}var hr={not:{simple:function(e){return function(t){return!e(t)}},async:function(e){return function(t){return Promise.resolve(e(t)).then(function(n){return!n}).catch(function(){return!0})}}},some:{simple:function(e){return function(t){return Qn(t).some(function(n){try{return e(n)}catch{return!1}})}},async:function(e){return function(t){return Promise.all(Qn(t).map(function(n){try{return e(n).catch(function(){return!1})}catch{return!1}})).then(function(n){return n.some(Boolean)})}}},every:{simple:function(e){return function(t){return t!==!1&&Qn(t).every(e)}},async:function(e){return function(t){return Promise.all(Qn(t).map(e)).then(function(n){return n.every(Boolean)})}}},strict:{simple:function(e,t){return function(n){return Yi(t)&&n&&typeof n=="object"?Object.keys(t.args[0]).length===Object.keys(n).length&&e(n):e(n)}},async:function(e,t){return function(n){return Promise.resolve(e(n)).then(function(r){return Yi(t)&&n&&typeof n=="object"?Object.keys(t.args[0]).length===Object.keys(n).length&&r:r}).catch(function(){return!1})}}}};function Yi(e){return e&&e.name==="schema"&&e.args.length>0&&typeof e.args[0]=="object"}function Qn(e){return typeof e=="string"?e.split(""):e}var _o={equal:function(e){return function(t){return t==e}},exact:function(e){return function(t){return t===e}},number:function(e){return e===void 0&&(e=!0),function(t){return typeof t=="number"&&(e||isFinite(t))}},integer:function(){return function(e){var t=Number.isInteger||Yd;return t(e)}},numeric:function(){return function(e){return!isNaN(parseFloat(e))&&isFinite(e)}},string:function(){return Xt("string")},boolean:function(){return Xt("boolean")},undefined:function(){return Xt("undefined")},null:function(){return Xt("null")},array:function(){return Xt("array")},object:function(){return Xt("object")},instanceOf:function(e){return function(t){return t instanceof e}},pattern:function(e){return function(t){return e.test(t)}},lowercase:function(){return function(e){return typeof e=="boolean"||e===e.toLowerCase()&&e.trim()!==""}},uppercase:function(){return function(e){return e===e.toUpperCase()&&e.trim()!==""}},vowel:function(){return function(e){return/^[aeiou]+$/i.test(e)}},consonant:function(){return function(e){return/^(?=[^aeiou])([a-z]+)$/i.test(e)}},first:function(e){return function(t){return t[0]==e}},last:function(e){return function(t){return t[t.length-1]==e}},empty:function(){return function(e){return e.length===0}},length:function(e,t){return function(n){return n.length>=e&&n.length<=(t||e)}},minLength:function(e){return function(t){return t.length>=e}},maxLength:function(e){return function(t){return t.length<=e}},negative:function(){return function(e){return e<0}},positive:function(){return function(e){return e>=0}},between:function(e,t){return function(n){return n>=e&&n<=t}},range:function(e,t){return function(n){return n>=e&&n<=t}},lessThan:function(e){return function(t){return te}},greaterThanOrEqual:function(e){return function(t){return t>=e}},even:function(){return function(e){return e%2===0}},odd:function(){return function(e){return e%2!==0}},includes:function(e){return function(t){return~t.indexOf(e)}},schema:function(e){return qd(e)},passesAnyOf:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return function(n){return e.some(function(r){return r.test(n)})}},optional:Gd};function Xt(e){return function(t){return Array.isArray(t)&&e==="array"||t===null&&e==="null"||typeof t===e}}function Yd(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function qd(e){return{simple:function(t){var n=[];if(Object.keys(e).forEach(function(r){var o=e[r];try{o.check((t||{})[r])}catch(i){i.target=r,n.push(i)}}),n.length>0)throw n;return!0},async:function(t){var n=[],r=Object.keys(e).map(function(o){var i=e[o];return i.testAsync((t||{})[o]).catch(function(s){s.target=o,n.push(s)})});return Promise.all(r).then(function(){if(n.length>0)throw n;return!0})}}}var ee="colors",Ae="sizes",H="space",Xd={gap:H,gridGap:H,columnGap:H,gridColumnGap:H,rowGap:H,gridRowGap:H,inset:H,insetBlock:H,insetBlockEnd:H,insetBlockStart:H,insetInline:H,insetInlineEnd:H,insetInlineStart:H,margin:H,marginTop:H,marginRight:H,marginBottom:H,marginLeft:H,marginBlock:H,marginBlockEnd:H,marginBlockStart:H,marginInline:H,marginInlineEnd:H,marginInlineStart:H,padding:H,paddingTop:H,paddingRight:H,paddingBottom:H,paddingLeft:H,paddingBlock:H,paddingBlockEnd:H,paddingBlockStart:H,paddingInline:H,paddingInlineEnd:H,paddingInlineStart:H,top:H,right:H,bottom:H,left:H,scrollMargin:H,scrollMarginTop:H,scrollMarginRight:H,scrollMarginBottom:H,scrollMarginLeft:H,scrollMarginX:H,scrollMarginY:H,scrollMarginBlock:H,scrollMarginBlockEnd:H,scrollMarginBlockStart:H,scrollMarginInline:H,scrollMarginInlineEnd:H,scrollMarginInlineStart:H,scrollPadding:H,scrollPaddingTop:H,scrollPaddingRight:H,scrollPaddingBottom:H,scrollPaddingLeft:H,scrollPaddingX:H,scrollPaddingY:H,scrollPaddingBlock:H,scrollPaddingBlockEnd:H,scrollPaddingBlockStart:H,scrollPaddingInline:H,scrollPaddingInlineEnd:H,scrollPaddingInlineStart:H,fontSize:"fontSizes",background:ee,backgroundColor:ee,backgroundImage:ee,borderImage:ee,border:ee,borderBlock:ee,borderBlockEnd:ee,borderBlockStart:ee,borderBottom:ee,borderBottomColor:ee,borderColor:ee,borderInline:ee,borderInlineEnd:ee,borderInlineStart:ee,borderLeft:ee,borderLeftColor:ee,borderRight:ee,borderRightColor:ee,borderTop:ee,borderTopColor:ee,caretColor:ee,color:ee,columnRuleColor:ee,fill:ee,outline:ee,outlineColor:ee,stroke:ee,textDecorationColor:ee,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:Ae,minBlockSize:Ae,maxBlockSize:Ae,inlineSize:Ae,minInlineSize:Ae,maxInlineSize:Ae,width:Ae,minWidth:Ae,maxWidth:Ae,height:Ae,minHeight:Ae,maxHeight:Ae,flexBasis:Ae,gridTemplateColumns:Ae,gridTemplateRows:Ae,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},Zd=(e,t)=>typeof t=="function"?{"()":Function.prototype.toString.call(t)}:t,pn=()=>{const e=Object.create(null);return(t,n,...r)=>{const o=(i=>JSON.stringify(i,Zd))(t);return o in e?e[o]:e[o]=n(t,...r)}},Ft=Symbol.for("sxs.internal"),di=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),qi=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:Qd}=Object.prototype,So=e=>e.includes("-")?e:e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()),Jd=/\s+(?![^()]*\))/,Zt=e=>t=>e(...typeof t=="string"?String(t).split(Jd):[t]),Xi={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:Zt((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e})),marginInline:Zt((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e})),maxSize:Zt((e,t)=>({maxBlockSize:e,maxInlineSize:t||e})),minSize:Zt((e,t)=>({minBlockSize:e,minInlineSize:t||e})),paddingBlock:Zt((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e})),paddingInline:Zt((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e}))},Gr=/([\d.]+)([^]*)/,ef=(e,t)=>e.length?e.reduce((n,r)=>(n.push(...t.map(o=>o.includes("&")?o.replace(/&/g,/[ +>|~]/.test(r)&&/&.*&/.test(o)?`:is(${r})`:r):r+" "+o)),n),[]):t,tf=(e,t)=>e in nf&&typeof t=="string"?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(n,r,o,i)=>r+(o==="stretch"?`-moz-available${i};${So(e)}:${r}-webkit-fill-available`:`-moz-fit-content${i};${So(e)}:${r}fit-content`)+i):String(t),nf={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},$t=e=>e?e+"-":"",za=(e,t,n)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(r,o,i,s,a)=>s=="$"==!!i?r:(o||s=="--"?"calc(":"")+"var(--"+(s==="$"?$t(t)+(a.includes("$")?"":$t(n))+a.replace(/\$/g,"-"):a)+")"+(o||s=="--"?"*"+(o||"")+(i||"1")+")":"")),rf=/\s*,\s*(?![^()]*\))/,of=Object.prototype.toString,tn=(e,t,n,r,o)=>{let i,s,a;const c=(l,u,f)=>{let p,g;const m=b=>{for(p in b){const y=p.charCodeAt(0)===64,C=y&&Array.isArray(b[p])?b[p]:[b[p]];for(g of C){const _=/[A-Z]/.test(v=p)?v:v.replace(/-[^]/g,E=>E[1].toUpperCase()),$=typeof g=="object"&&g&&g.toString===of&&(!r.utils[_]||!u.length);if(_ in r.utils&&!$){const E=r.utils[_];if(E!==s){s=E,m(E(g)),s=null;continue}}else if(_ in Xi){const E=Xi[_];if(E!==a){a=E,m(E(g)),a=null;continue}}if(y&&(w=p.slice(1)in r.media?"@media "+r.media[p.slice(1)]:p,p=w.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(E,T,R,F,j,z)=>{const A=Gr.test(T),N=.0625*(A?-1:1),[L,D]=A?[F,T]:[T,F];return"("+(R[0]==="="?"":R[0]===">"===A?"max-":"min-")+L+":"+(R[0]!=="="&&R.length===1?D.replace(Gr,(V,U,Y)=>Number(U)+N*(R===">"?1:-1)+Y):D)+(j?") and ("+(j[0]===">"?"min-":"max-")+L+":"+(j.length===1?z.replace(Gr,(V,U,Y)=>Number(U)+N*(j===">"?-1:1)+Y):z):"")+")"})),$){const E=y?f.concat(p):[...f],T=y?[...u]:ef(u,p.split(rf));i!==void 0&&o(Zi(...i)),i=void 0,c(g,T,E)}else i===void 0&&(i=[[],u,f]),p=y||p.charCodeAt(0)!==36?p:`--${$t(r.prefix)}${p.slice(1).replace(/\$/g,"-")}`,g=$?g:typeof g=="number"?g&&_ in sf?String(g)+"px":String(g):za(tf(_,g??""),r.prefix,r.themeMap[_]),i[0].push(`${y?`${p} `:`${So(p)}:`}${g}`)}}var w,v};m(l),i!==void 0&&o(Zi(...i)),i=void 0};c(e,t,n)},Zi=(e,t,n)=>`${n.map(r=>`${r}{`).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,sf={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},Qi=e=>String.fromCharCode(e+(e>25?39:97)),zt=e=>(t=>{let n,r="";for(n=Math.abs(t);n>52;n=n/52|0)r=Qi(n%52)+r;return Qi(n%52)+r})(((t,n)=>{let r=n.length;for(;r;)t=33*t^n.charCodeAt(--r);return t})(5381,JSON.stringify(e))>>>0),Sn=["themed","global","styled","onevar","resonevar","allvar","inline"],af=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch{return!1}},cf=e=>{let t;const n=()=>{const{cssRules:o}=t.sheet;return[].map.call(o,(i,s)=>{const{cssText:a}=i;let c="";if(a.startsWith("--sxs"))return"";if(o[s-1]&&(c=o[s-1].cssText).startsWith("--sxs")){if(!i.cssRules.length)return"";for(const l in t.rules)if(t.rules[l].group===i)return`--sxs{--sxs:${[...t.rules[l].cache].join(" ")}}${a}`;return i.cssRules.length?`${c}${a}`:""}return a}).join("")},r=()=>{if(t){const{rules:a,sheet:c}=t;if(!c.deleteRule){for(;Object(Object(c.cssRules)[0]).type===3;)c.cssRules.splice(0,1);c.cssRules=[]}for(const l in a)delete a[l]}const o=Object(e).styleSheets||[];for(const a of o)if(af(a)){for(let c=0,l=a.cssRules;l[c];++c){const u=Object(l[c]);if(u.type!==1)continue;const f=Object(l[c+1]);if(f.type!==4)continue;++c;const{cssText:p}=u;if(!p.startsWith("--sxs"))continue;const g=p.slice(14,-3).trim().split(/\s+/),m=Sn[g[0]];m&&(t||(t={sheet:a,reset:r,rules:{},toString:n}),t.rules[m]={group:f,index:c,cache:new Set(g)})}if(t)break}if(!t){const a=(c,l)=>({type:l,cssRules:[],insertRule(u,f){this.cssRules.splice(f,0,a(u,{import:3,undefined:1}[(u.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return c==="@media{}"?`@media{${[].map.call(this.cssRules,u=>u.cssText).join("")}}`:c}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:a("","text/css"),rules:{},reset:r,toString:n}}const{sheet:i,rules:s}=t;for(let a=Sn.length-1;a>=0;--a){const c=Sn[a];if(!s[c]){const l=Sn[a+1],u=s[l]?s[l].index:i.cssRules.length;i.insertRule("@media{}",u),i.insertRule(`--sxs{--sxs:${a}}`,u),s[c]={group:i.cssRules[u+1],index:u,cache:new Set([a])}}lf(s[c])}};return r(),t},lf=e=>{const t=e.group;let n=t.cssRules.length;e.apply=r=>{try{t.insertRule(r,n),++n}catch{}}},wn=Symbol(),uf=pn(),Ji=(e,t)=>uf(e,()=>(...n)=>{let r={type:null,composers:new Set};for(const o of n)if(o!=null)if(o[Ft]){r.type==null&&(r.type=o[Ft].type);for(const i of o[Ft].composers)r.composers.add(i)}else o.constructor!==Object||o.$$typeof?r.type==null&&(r.type=o):r.composers.add(df(o,e));return r.type==null&&(r.type="span"),r.composers.size||r.composers.add(["PJLV",{},[],[],{},[]]),ff(e,r,t)}),df=({variants:e,compoundVariants:t,defaultVariants:n,...r},o)=>{const i=`${$t(o.prefix)}c-${zt(r)}`,s=[],a=[],c=Object.create(null),l=[];for(const p in n)c[p]=String(n[p]);if(typeof e=="object"&&e)for(const p in e){u=c,f=p,Qd.call(u,f)||(c[p]="undefined");const g=e[p];for(const m in g){const b={[p]:String(m)};String(m)==="undefined"&&l.push(p);const w=g[m],v=[b,w,!qi(w)];s.push(v)}}var u,f;if(typeof t=="object"&&t)for(const p of t){let{css:g,...m}=p;g=typeof g=="object"&&g||{};for(const w in m)m[w]=String(m[w]);const b=[m,g,!qi(g)];a.push(b)}return[i,r,s,a,c,l]},ff=(e,t,n)=>{const[r,o,i,s]=pf(t.composers),a=typeof t.type=="function"||t.type.$$typeof?(f=>{function p(){for(let g=0;gp.rules[g]={apply:m=>p[wn].push([g,m])}),p})(n):null,c=(a||n).rules,l=`.${r}${o.length>1?`:where(.${o.slice(1).join(".")})`:""}`,u=f=>{f=typeof f=="object"&&f||hf;const{css:p,...g}=f,m={};for(const v in i)if(delete g[v],v in f){let y=f[v];typeof y=="object"&&y?m[v]={"@initial":i[v],...y}:(y=String(y),m[v]=y!=="undefined"||s.has(v)?y:i[v])}else m[v]=i[v];const b=new Set([...o]);for(const[v,y,C,_]of t.composers){n.rules.styled.cache.has(v)||(n.rules.styled.cache.add(v),tn(y,[`.${v}`],[],e,T=>{c.styled.apply(T)}));const $=es(C,m,e.media),E=es(_,m,e.media,!0);for(const T of $)if(T!==void 0)for(const[R,F,j]of T){const z=`${v}-${zt(F)}-${R}`;b.add(z);const A=(j?n.rules.resonevar:n.rules.onevar).cache,N=j?c.resonevar:c.onevar;A.has(z)||(A.add(z),tn(F,[`.${z}`],[],e,L=>{N.apply(L)}))}for(const T of E)if(T!==void 0)for(const[R,F]of T){const j=`${v}-${zt(F)}-${R}`;b.add(j),n.rules.allvar.cache.has(j)||(n.rules.allvar.cache.add(j),tn(F,[`.${j}`],[],e,z=>{c.allvar.apply(z)}))}}if(typeof p=="object"&&p){const v=`${r}-i${zt(p)}-css`;b.add(v),n.rules.inline.cache.has(v)||(n.rules.inline.cache.add(v),tn(p,[`.${v}`],[],e,y=>{c.inline.apply(y)}))}for(const v of String(f.className||"").trim().split(/\s+/))v&&b.add(v);const w=g.className=[...b].join(" ");return{type:t.type,className:w,selector:l,props:g,toString:()=>w,deferredInjector:a}};return di(u,{className:r,selector:l,[Ft]:t,toString:()=>(n.rules.styled.cache.has(r)||u(),r)})},pf=e=>{let t="";const n=[],r={},o=[];for(const[i,,,,s,a]of e){t===""&&(t=i),n.push(i),o.push(...a);for(const c in s){const l=s[c];(r[c]===void 0||l!=="undefined"||a.includes(l))&&(r[c]=l)}}return[t,n,r,new Set(o)]},es=(e,t,n,r)=>{const o=[];e:for(let[i,s,a]of e){if(a)continue;let c,l=0,u=!1;for(c in i){const f=i[c];let p=t[c];if(p!==f){if(typeof p!="object"||!p)continue e;{let g,m,b=0;for(const w in p){if(f===String(p[w])){if(w!=="@initial"){const v=w.slice(1);(m=m||[]).push(v in n?n[v]:w.replace(/^@media ?/,"")),u=!0}l+=b,g=!0}++b}if(m&&m.length&&(s={["@media "+m.join(", ")]:s}),!g)continue e}}}(o[l]=o[l]||[]).push([r?"cv":`${c}-${i[c]}`,s,u])}return o},hf={},gf=pn(),mf=(e,t)=>gf(e,()=>(...n)=>{const r=()=>{for(let o of n){o=typeof o=="object"&&o||{};let i=zt(o);if(!t.rules.global.cache.has(i)){if(t.rules.global.cache.add(i),"@import"in o){let s=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let a of[].concat(o["@import"]))a=a.includes('"')||a.includes("'")?a:`"${a}"`,t.sheet.insertRule(`@import ${a};`,s++);delete o["@import"]}tn(o,[],[],e,s=>{t.rules.global.apply(s)})}}return""};return di(r,{toString:r})}),bf=pn(),yf=(e,t)=>bf(e,()=>n=>{const r=`${$t(e.prefix)}k-${zt(n)}`,o=()=>{if(!t.rules.global.cache.has(r)){t.rules.global.cache.add(r);const i=[];tn(n,[],[],e,a=>i.push(a));const s=`@keyframes ${r}{${i.join("")}}`;t.rules.global.apply(s)}return r};return di(o,{get name(){return o()},toString:o})}),vf=class{constructor(e,t,n,r){this.token=e==null?"":String(e),this.value=t==null?"":String(t),this.scale=n==null?"":String(n),this.prefix=r==null?"":String(r)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+$t(this.prefix)+$t(this.scale)+this.token}toString(){return this.computedValue}},xf=pn(),wf=(e,t)=>xf(e,()=>(n,r)=>{r=typeof n=="object"&&n||Object(r);const o=`.${n=(n=typeof n=="string"?n:"")||`${$t(e.prefix)}t-${zt(r)}`}`,i={},s=[];for(const c in r){i[c]={};for(const l in r[c]){const u=`--${$t(e.prefix)}${c}-${l}`,f=za(String(r[c][l]),e.prefix,c);i[c][l]=new vf(l,f,c,e.prefix),s.push(`${u}:${f}`)}}const a=()=>{if(s.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);const c=`${r===e.theme?":root,":""}.${n}{${s.join(";")}}`;t.rules.themed.apply(c)}return n};return{...i,get className(){return a()},selector:o,toString:a}}),$f=pn(),ts,Ef=pn(),Na=e=>{const t=(n=>{let r=!1;const o=$f(n,i=>{r=!0;const s="prefix"in(i=typeof i=="object"&&i||{})?String(i.prefix):"",a=typeof i.media=="object"&&i.media||{},c=typeof i.root=="object"?i.root||null:globalThis.document||null,l=typeof i.theme=="object"&&i.theme||{},u={prefix:s,media:a,theme:l,themeMap:typeof i.themeMap=="object"&&i.themeMap||{...Xd},utils:typeof i.utils=="object"&&i.utils||{}},f=cf(c),p={css:Ji(u,f),globalCss:mf(u,f),keyframes:yf(u,f),createTheme:wf(u,f),reset(){f.reset(),p.theme.toString()},theme:{},sheet:f,config:u,prefix:s,getCssText:f.toString,toString:f.toString};return String(p.theme=p.createTheme(l)),p});return r||o.reset(),o})(e);return t.styled=(({config:n,sheet:r})=>Ef(n,()=>{const o=Ji(n,r);return(...i)=>{const s=o(...i),a=s[Ft].type,c=h.forwardRef((l,u)=>{const f=l&&l.as||a,{props:p,deferredInjector:g}=s(l);return delete p.as,p.ref=u,g?h.createElement(h.Fragment,null,h.createElement(f,p),h.createElement(g,null)):h.createElement(f,p)});return c.className=s.className,c.displayName=`Styled.${a.displayName||a.name||a}`,c.selector=s.selector,c.toString=()=>s.selector,c[Ft]=s[Ft],c}}))(t),t},Cf=()=>ts||(ts=Na()),kv=(...e)=>Cf().styled(...e);function _f(e,t,n){return Math.max(t,Math.min(e,n))}const Re={toVector(e,t){return e===void 0&&(e=t),Array.isArray(e)?e:[e,e]},add(e,t){return[e[0]+t[0],e[1]+t[1]]},sub(e,t){return[e[0]-t[0],e[1]-t[1]]},addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function ns(e,t,n){return t===0||Math.abs(t)===1/0?Math.pow(e,n*5):e*t*n/(t+n*e)}function rs(e,t,n,r=.15){return r===0?_f(e,t,n):en?+ns(e-n,n-t,r)+n:e}function Sf(e,[t,n],[r,o]){const[[i,s],[a,c]]=e;return[rs(t,i,s,r),rs(n,a,c,o)]}function Tf(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kf(e){var t=Tf(e,"string");return typeof t=="symbol"?t:String(t)}function Le(e,t,n){return t=kf(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function os(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function me(e){for(var t=1;t{var n,r;return t.target===e.currentTarget||((n=e.currentTarget)===null||n===void 0||(r=n.contains)===null||r===void 0?void 0:r.call(n,t.target))})}function jf(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function Wa(e){return Fr(e)?jf(e)[0]:e}function Lf(e){return Mf(e).map(t=>t.identifier)}function Yr(e){const t=Wa(e);return Fr(e)?t.identifier:t.pointerId}function ss(e){const t=Wa(e);return[t.clientX,t.clientY]}function Ff(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i}=e;Object.assign(t,{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i})}return t}function gr(e,...t){return typeof e=="function"?e(...t):e}function zf(){}function Nf(...e){return e.length===0?zf:e.length===1?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function as(e,t){return Object.assign({},t,e||{})}const Vf=32;class Bf{constructor(t,n,r){this.ctrl=t,this.args=n,this.key=r,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(t){this.ctrl.state[this.key]=t}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:t,shared:n,ingKey:r,args:o}=this;n[r]=t._active=t.active=t._blocked=t._force=!1,t._step=[!1,!1],t.intentional=!1,t._movement=[0,0],t._distance=[0,0],t._direction=[0,0],t._delta=[0,0],t._bounds=[[-1/0,1/0],[-1/0,1/0]],t.args=o,t.axis=void 0,t.memo=void 0,t.elapsedTime=t.timeDelta=0,t.direction=[0,0],t.distance=[0,0],t.overflow=[0,0],t._movementBound=[!1,!1],t.velocity=[0,0],t.movement=[0,0],t.delta=[0,0],t.timeStamp=0}start(t){const n=this.state,r=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=t.target,n.currentTarget=t.currentTarget,n.lastOffset=r.from?gr(r.from,n):n.offset,n.offset=n.lastOffset,n.startTime=n.timeStamp=t.timeStamp)}computeValues(t){const n=this.state;n._values=t,n.values=this.config.transform(t)}computeInitial(){const t=this.state;t._initial=t._values,t.initial=t.values}compute(t){const{state:n,config:r,shared:o}=this;n.args=this.args;let i=0;if(t&&(n.event=t,r.preventDefault&&t.cancelable&&n.event.preventDefault(),n.type=t.type,o.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,o.locked=!!document.pointerLockElement,Object.assign(o,Ff(t)),o.down=o.pressed=o.buttons%2===1||o.touches>0,i=t.timeStamp-n.timeStamp,n.timeStamp=t.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const E=n._delta.map(Math.abs);Re.addTo(n._distance,E)}this.axisIntent&&this.axisIntent(t);const[s,a]=n._movement,[c,l]=r.threshold,{_step:u,values:f}=n;if(r.hasCustomTransform?(u[0]===!1&&(u[0]=Math.abs(s)>=c&&f[0]),u[1]===!1&&(u[1]=Math.abs(a)>=l&&f[1])):(u[0]===!1&&(u[0]=Math.abs(s)>=c&&Math.sign(s)*c),u[1]===!1&&(u[1]=Math.abs(a)>=l&&Math.sign(a)*l)),n.intentional=u[0]!==!1||u[1]!==!1,!n.intentional)return;const p=[0,0];if(r.hasCustomTransform){const[E,T]=f;p[0]=u[0]!==!1?E-u[0]:0,p[1]=u[1]!==!1?T-u[1]:0}else p[0]=u[0]!==!1?s-u[0]:0,p[1]=u[1]!==!1?a-u[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(p);const g=n.offset,m=n._active&&!n._blocked||n.active;m&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=o[this.ingKey]=n._active,t&&(n.first&&("bounds"in r&&(n._bounds=gr(r.bounds,n)),this.setup&&this.setup()),n.movement=p,this.computeOffset()));const[b,w]=n.offset,[[v,y],[C,_]]=n._bounds;n.overflow=[by?1:0,w_?1:0],n._movementBound[0]=n.overflow[0]?n._movementBound[0]===!1?n._movement[0]:n._movementBound[0]:!1,n._movementBound[1]=n.overflow[1]?n._movementBound[1]===!1?n._movement[1]:n._movementBound[1]:!1;const $=n._active?r.rubberband||[0,0]:[0,0];if(n.offset=Sf(n._bounds,n.offset,$),n.delta=Re.sub(n.offset,g),this.computeMovement(),m&&(!n.last||i>Vf)){n.delta=Re.sub(n.offset,g);const E=n.delta.map(Math.abs);Re.addTo(n.distance,E),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&i>0&&(n.velocity=[E[0]/i,E[1]/i],n.timeDelta=i)}}emit(){const t=this.state,n=this.shared,r=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&&!t._force&&!r.triggerAllEvents)return;const o=this.handler(me(me(me({},n),t),{},{[this.aliasKey]:t.values}));o!==void 0&&(t.memo=o)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function Wf([e,t],n){const r=Math.abs(e),o=Math.abs(t);if(r>o&&r>n)return"x";if(o>r&&o>n)return"y"}class Hf extends Bf{constructor(...t){super(...t),Le(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=Re.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=Re.sub(this.state.offset,this.state.lastOffset)}axisIntent(t){const n=this.state,r=this.config;if(!n.axis&&t){const o=typeof r.axisThreshold=="object"?r.axisThreshold[Ba(t)]:r.axisThreshold;n.axis=Wf(n._movement,o)}n._blocked=(r.lockDirection||!!r.axis)&&!n.axis||!!r.axis&&r.axis!==n.axis}restrictToAxis(t){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":t[1]=0;break;case"y":t[0]=0;break}}}const Uf=e=>e,cs=.15,Ha={enabled(e=!0){return e},eventOptions(e,t,n){return me(me({},n.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[cs,cs];case!1:return[0,0];default:return Re.toVector(e)}},from(e){if(typeof e=="function")return e;if(e!=null)return Re.toVector(e)},transform(e,t,n){const r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||Uf},threshold(e){return Re.toVector(e,0)}},Kf=0,Bn=me(me({},Ha),{},{axis(e,t,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(e=Kf){return e},bounds(e={}){if(typeof e=="function")return i=>Bn.bounds(e(i));if("current"in e)return()=>e.current;if(typeof HTMLElement=="function"&&e instanceof HTMLElement)return e;const{left:t=-1/0,right:n=1/0,top:r=-1/0,bottom:o=1/0}=e;return[[t,n],[r,o]]}}),ls={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};class Gf extends Hf{constructor(...t){super(...t),Le(this,"ingKey","dragging")}reset(){super.reset();const t=this.state;t._pointerId=void 0,t._pointerActive=!1,t._keyboardActive=!1,t._preventScroll=!1,t._delayed=!1,t.swipe=[0,0],t.tap=!1,t.canceled=!1,t.cancel=this.cancel.bind(this)}setup(){const t=this.state;if(t._bounds instanceof HTMLElement){const n=t._bounds.getBoundingClientRect(),r=t.currentTarget.getBoundingClientRect(),o={left:n.left-r.left+t.offset[0],right:n.right-r.right+t.offset[0],top:n.top-r.top+t.offset[1],bottom:n.bottom-r.bottom+t.offset[1]};t._bounds=Bn.bounds(o)}}cancel(){const t=this.state;t.canceled||(t.canceled=!0,t._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(t){const n=this.config,r=this.state;if(t.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(t.buttons):n.pointerButtons!==-1&&n.pointerButtons!==t.buttons))return;const o=this.ctrl.setEventIds(t);n.pointerCapture&&t.target.setPointerCapture(t.pointerId),!(o&&o.size>1&&r._pointerActive)&&(this.start(t),this.setupPointer(t),r._pointerId=Yr(t),r._pointerActive=!0,this.computeValues(ss(t)),this.computeInitial(),n.preventScrollAxis&&Ba(t)!=="mouse"?(r._active=!1,this.setupScrollPrevention(t)):n.delay>0?(this.setupDelayTrigger(t),n.triggerAllEvents&&(this.compute(t),this.emit())):this.startPointerDrag(t))}startPointerDrag(t){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(t),this.emit()}pointerMove(t){const n=this.state,r=this.config;if(!n._pointerActive)return;const o=Yr(t);if(n._pointerId!==void 0&&o!==n._pointerId)return;const i=ss(t);if(document.pointerLockElement===t.target?n._delta=[t.movementX,t.movementY]:(n._delta=Re.sub(i,n._values),this.computeValues(i)),Re.addTo(n._movement,n._delta),this.compute(t),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(t);return}if(r.preventScrollAxis&&!n._preventScroll)if(n.axis)if(n.axis===r.preventScrollAxis||r.preventScrollAxis==="xy"){n._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(t);return}else return;this.emit()}pointerUp(t){this.ctrl.setEventIds(t);try{this.config.pointerCapture&&t.target.hasPointerCapture(t.pointerId)&&t.target.releasePointerCapture(t.pointerId)}catch{}const n=this.state,r=this.config;if(!n._active||!n._pointerActive)return;const o=Yr(t);if(n._pointerId!==void 0&&o!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);const[i,s]=n._distance;if(n.tap=i<=r.tapsThreshold&&s<=r.tapsThreshold,n.tap&&r.filterTaps)n._force=!0;else{const[a,c]=n._delta,[l,u]=n._movement,[f,p]=r.swipe.velocity,[g,m]=r.swipe.distance,b=r.swipe.duration;if(n.elapsedTimef&&Math.abs(l)>g&&(n.swipe[0]=Math.sign(a)),v>p&&Math.abs(u)>m&&(n.swipe[1]=Math.sign(c))}}this.emit()}pointerClick(t){!this.state.tap&&t.detail>0&&(t.preventDefault(),t.stopPropagation())}setupPointer(t){const n=this.config,r=n.device;n.pointerLock&&t.currentTarget.requestPointerLock(),n.pointerCapture||(this.eventStore.add(this.sharedConfig.window,r,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(t){this.state._preventScroll&&t.cancelable&&t.preventDefault()}setupScrollPrevention(t){this.state._preventScroll=!1,Yf(t);const n=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",n),this.eventStore.add(this.sharedConfig.window,"touch","cancel",n),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,t)}setupDelayTrigger(t){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(t)},this.config.delay)}keyDown(t){const n=ls[t.key];if(n){const r=this.state,o=t.shiftKey?10:t.altKey?.1:1;this.start(t),r._delta=n(this.config.keyboardDisplacement,o),r._keyboardActive=!0,Re.addTo(r._movement,r._delta),this.compute(t),this.emit()}}keyUp(t){t.key in ls&&(this.state._keyboardActive=!1,this.setActive(),this.compute(t),this.emit())}bind(t){const n=this.config.device;t(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(t(n,"change",this.pointerMove.bind(this)),t(n,"end",this.pointerUp.bind(this)),t(n,"cancel",this.pointerUp.bind(this)),t("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(t("key","down",this.keyDown.bind(this)),t("key","up",this.keyUp.bind(this))),this.config.filterTaps&&t("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function Yf(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}const Wn=typeof window<"u"&&window.document&&window.document.createElement;function Ua(){return Wn&&"ontouchstart"in window}function qf(){return Ua()||Wn&&window.navigator.maxTouchPoints>1}function Xf(){return Wn&&"onpointerdown"in window}function Zf(){return Wn&&"exitPointerLock"in window.document}function Qf(){try{return"constructor"in GestureEvent}catch{return!1}}const Xe={isBrowser:Wn,gesture:Qf(),touch:Ua(),touchscreen:qf(),pointer:Xf(),pointerLock:Zf()},Jf=250,ep=180,tp=.5,np=50,rp=250,op=10,us={mouse:0,touch:0,pen:8},ip=me(me({},Bn),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:o=!1}={}}){return this.pointerLock=r&&Xe.pointerLock,Xe.touch&&n?"touch":this.pointerLock?"mouse":Xe.pointer&&!o?"pointer":Xe.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&e?Jf:void 0,!(!Xe.touchscreen||n===!1))return e||(n!==void 0?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:r=1,keys:o=!0}={}}){return this.pointerButtons=r,this.keys=o,!this.pointerLock&&this.device==="pointer"&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:r=3,axis:o=void 0}){const i=Re.toVector(e,n?r:o?1:0);return this.filterTaps=n,this.tapsThreshold=r,i},swipe({velocity:e=tp,distance:t=np,duration:n=rp}={}){return{velocity:this.transform(Re.toVector(e)),distance:this.transform(Re.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return ep;case!1:return 0;default:return e}},axisThreshold(e){return e?me(me({},us),e):us},keyboardDisplacement(e=op){return e}});me(me({},Ha),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!Xe.touch&&Xe.gesture)return"gesture";if(Xe.touch&&r)return"touch";if(Xe.touchscreen){if(Xe.pointer)return"pointer";if(Xe.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const o=s=>{const a=as(gr(n,s),{min:-1/0,max:1/0});return[a.min,a.max]},i=s=>{const a=as(gr(r,s),{min:-1/0,max:1/0});return[a.min,a.max]};return typeof n!="function"&&typeof r!="function"?[o(),i()]:s=>[o(s),i(s)]},threshold(e,t,n){return this.lockDirection=n.axis==="lock",Re.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return e===void 0?"ctrlKey":e},pinchOnWheel(e=!0){return e}});me(me({},Bn),{},{mouseOnly:(e=!0)=>e});me(me({},Bn),{},{mouseOnly:(e=!0)=>e});const Ka=new Map,To=new Map;function sp(e){Ka.set(e.key,e.engine),To.set(e.key,e.resolver)}const ap={key:"drag",engine:Gf,resolver:ip};function cp(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function lp(e,t){if(e==null)return{};var n=cp(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}const up={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=Xe.isBrowser?window:void 0){return e},eventOptions({passive:e=!0,capture:t=!1}={}){return{passive:e,capture:t}},transform(e){return e}},dp=["target","eventOptions","window","enabled","transform"];function ar(e={},t){const n={};for(const[r,o]of Object.entries(t))switch(typeof o){case"function":n[r]=o.call(n,e[r],r,e);break;case"object":n[r]=ar(e[r],o);break;case"boolean":o&&(n[r]=e[r]);break}return n}function fp(e,t,n={}){const r=e,{target:o,eventOptions:i,window:s,enabled:a,transform:c}=r,l=lp(r,dp);if(n.shared=ar({target:o,eventOptions:i,window:s,enabled:a,transform:c},up),t){const u=To.get(t);n[t]=ar(me({shared:n.shared},l),u)}else for(const u in l){const f=To.get(u);f&&(n[u]=ar(me({shared:n.shared},l[u]),f))}return n}class Ga{constructor(t,n){Le(this,"_listeners",new Set),this._ctrl=t,this._gestureKey=n}add(t,n,r,o,i){const s=this._listeners,a=Df(n,r),c=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},l=me(me({},c),i);t.addEventListener(a,o,l);const u=()=>{t.removeEventListener(a,o,l),s.delete(u)};return s.add(u),u}clean(){this._listeners.forEach(t=>t()),this._listeners.clear()}}class pp{constructor(){Le(this,"_timeouts",new Map)}add(t,n,r=140,...o){this.remove(t),this._timeouts.set(t,window.setTimeout(n,r,...o))}remove(t){const n=this._timeouts.get(t);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(t=>void window.clearTimeout(t)),this._timeouts.clear()}}let hp=class{constructor(t){Le(this,"gestures",new Set),Le(this,"_targetEventStore",new Ga(this)),Le(this,"gestureEventStores",{}),Le(this,"gestureTimeoutStores",{}),Le(this,"handlers",{}),Le(this,"config",{}),Le(this,"pointerIds",new Set),Le(this,"touchIds",new Set),Le(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),gp(this,t)}setEventIds(t){if(Fr(t))return this.touchIds=new Set(Lf(t)),this.touchIds;if("pointerId"in t)return t.type==="pointerup"||t.type==="pointercancel"?this.pointerIds.delete(t.pointerId):t.type==="pointerdown"&&this.pointerIds.add(t.pointerId),this.pointerIds}applyHandlers(t,n){this.handlers=t,this.nativeHandlers=n}applyConfig(t,n){this.config=fp(t,n,this.config)}clean(){this._targetEventStore.clean();for(const t of this.gestures)this.gestureEventStores[t].clean(),this.gestureTimeoutStores[t].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...t){const n=this.config.shared,r={};let o;if(!(n.target&&(o=n.target(),!o))){if(n.enabled){for(const s of this.gestures){const a=this.config[s],c=ds(r,a.eventOptions,!!o);if(a.enabled){const l=Ka.get(s);new l(this,t,s).bind(c)}}const i=ds(r,n.eventOptions,!!o);for(const s in this.nativeHandlers)i(s,"",a=>this.nativeHandlers[s](me(me({},this.state.shared),{},{event:a,args:t})),void 0,!0)}for(const i in r)r[i]=Nf(...r[i]);if(!o)return r;for(const i in r){const{device:s,capture:a,passive:c}=If(i);this._targetEventStore.add(o,s,"",r[i],{capture:a,passive:c})}}}};function Qt(e,t){e.gestures.add(t),e.gestureEventStores[t]=new Ga(e,t),e.gestureTimeoutStores[t]=new pp}function gp(e,t){t.drag&&Qt(e,"drag"),t.wheel&&Qt(e,"wheel"),t.scroll&&Qt(e,"scroll"),t.move&&Qt(e,"move"),t.pinch&&Qt(e,"pinch"),t.hover&&Qt(e,"hover")}const ds=(e,t,n)=>(r,o,i,s={},a=!1)=>{var c,l;const u=(c=s.capture)!==null&&c!==void 0?c:t.capture,f=(l=s.passive)!==null&&l!==void 0?l:t.passive;let p=a?r:Pf(r,o,u);n&&f&&(p+="Passive"),e[p]=e[p]||[],e[p].push(i)};function mp(e,t={},n,r){const o=h.useMemo(()=>new hp(e),[]);if(o.applyHandlers(e,r),o.applyConfig(t,n),h.useEffect(o.effect.bind(o)),h.useEffect(()=>o.clean.bind(o),[]),t.target===void 0)return o.bind.bind(o)}function bp(e,t){return sp(ap),mp({drag:e},t||{},"drag")}function mt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Ya(e,t=[]){let n=[];function r(i,s){const a=d.createContext(s),c=n.length;n=[...n,s];function l(f){const{scope:p,children:g,...m}=f,b=(p==null?void 0:p[e][c])||a,w=d.useMemo(()=>m,Object.values(m));return d.createElement(b.Provider,{value:w},g)}function u(f,p){const g=(p==null?void 0:p[e][c])||a,m=d.useContext(g);if(m)return m;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return l.displayName=i+"Provider",[l,u]}const o=()=>{const i=n.map(s=>d.createContext(s));return function(a){const c=(a==null?void 0:a[e])||i;return d.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,yp(o,...t)]}function yp(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:c,scopeName:l})=>{const f=c(i)[`__scope${l}`];return{...a,...f}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function hn(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function vp(e,t=globalThis==null?void 0:globalThis.document){const n=hn(e);d.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const ko="dismissableLayer.update",xp="dismissableLayer.pointerDownOutside",wp="dismissableLayer.focusOutside";let fs;const $p=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ep=d.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...l}=e,u=d.useContext($p),[f,p]=d.useState(null),g=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,m]=d.useState({}),b=fn(t,R=>p(R)),w=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=w.indexOf(v),C=f?w.indexOf(f):-1,_=u.layersWithOutsidePointerEventsDisabled.size>0,$=C>=y,E=Cp(R=>{const F=R.target,j=[...u.branches].some(z=>z.contains(F));!$||j||(i==null||i(R),a==null||a(R),R.defaultPrevented||c==null||c())},g),T=_p(R=>{const F=R.target;[...u.branches].some(z=>z.contains(F))||(s==null||s(R),a==null||a(R),R.defaultPrevented||c==null||c())},g);return vp(R=>{C===u.layers.size-1&&(o==null||o(R),!R.defaultPrevented&&c&&(R.preventDefault(),c()))},g),d.useEffect(()=>{if(f)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(fs=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),ps(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=fs)}},[f,g,r,u]),d.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),ps())},[f,u]),d.useEffect(()=>{const R=()=>m({});return document.addEventListener(ko,R),()=>document.removeEventListener(ko,R)},[]),d.createElement(Ht.div,Z({},l,{ref:b,style:{pointerEvents:_?$?"auto":"none":void 0,...e.style},onFocusCapture:mt(e.onFocusCapture,T.onFocusCapture),onBlurCapture:mt(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:mt(e.onPointerDownCapture,E.onPointerDownCapture)}))});function Cp(e,t=globalThis==null?void 0:globalThis.document){const n=hn(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){qa(xp,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function _p(e,t=globalThis==null?void 0:globalThis.document){const n=hn(e),r=d.useRef(!1);return d.useEffect(()=>{const o=i=>{i.target&&!r.current&&qa(wp,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ps(){const e=new CustomEvent(ko);document.dispatchEvent(e)}function qa(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Wd(o,i):o.dispatchEvent(i)}const cn=globalThis!=null&&globalThis.document?d.useLayoutEffect:()=>{},Sp=Ll["useId".toString()]||(()=>{});let Tp=0;function kp(e){const[t,n]=d.useState(Sp());return cn(()=>{e||n(r=>r??String(Tp++))},[e]),e||(t?`radix-${t}`:"")}const Rp=d.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return d.createElement(Ht.svg,Z({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:d.createElement("polygon",{points:"0,0 30,0 15,10"}))}),Op=Rp;function Pp(e){const[t,n]=d.useState(void 0);return cn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;s=l.inlineSize,a=l.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const Xa="Popper",[Za,Qa]=Ya(Xa),[Ap,Ja]=Za(Xa),Ip=e=>{const{__scopePopper:t,children:n}=e,[r,o]=d.useState(null);return d.createElement(Ap,{scope:t,anchor:r,onAnchorChange:o},n)},Dp="PopperAnchor",Mp=d.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Ja(Dp,n),s=d.useRef(null),a=fn(t,s);return d.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:d.createElement(Ht.div,Z({},o,{ref:a}))}),ec="PopperContent",[jp,Lp]=Za(ec),Fp=d.forwardRef((e,t)=>{var n,r,o,i,s,a,c,l;const{__scopePopper:u,side:f="bottom",sideOffset:p=0,align:g="center",alignOffset:m=0,arrowPadding:b=0,avoidCollisions:w=!0,collisionBoundary:v=[],collisionPadding:y=0,sticky:C="partial",hideWhenDetached:_=!1,updatePositionStrategy:$="optimized",onPlaced:E,...T}=e,R=Ja(ec,u),[F,j]=d.useState(null),z=fn(t,Pe=>j(Pe)),[A,N]=d.useState(null),L=Pp(A),D=(n=L==null?void 0:L.width)!==null&&n!==void 0?n:0,V=(r=L==null?void 0:L.height)!==null&&r!==void 0?r:0,U=f+(g!=="center"?"-"+g:""),Y=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},Q=Array.isArray(v)?v:[v],de=Q.length>0,ne={padding:Y,boundary:Q.filter(Bp),altBoundary:de},{refs:ye,floatingStyles:pe,placement:re,isPositioned:le,middlewareData:ie}=Sd({strategy:"fixed",placement:U,whileElementsMounted:(...Pe)=>Ed(...Pe,{animationFrame:$==="always"}),elements:{reference:R.anchor},middleware:[nd({mainAxis:p+V,alignmentAxis:m}),w&&rd({mainAxis:!0,crossAxis:!1,limiter:C==="partial"?od():void 0,...ne}),w&&Ju({...ne}),id({...ne,apply:({elements:Pe,rects:Ye,availableWidth:Ut,availableHeight:Kt})=>{const{width:Gt,height:x}=Ye.reference,k=Pe.floating.style;k.setProperty("--radix-popper-available-width",`${Ut}px`),k.setProperty("--radix-popper-available-height",`${Kt}px`),k.setProperty("--radix-popper-anchor-width",`${Gt}px`),k.setProperty("--radix-popper-anchor-height",`${x}px`)}}),A&&_d({element:A,padding:b}),Wp({arrowWidth:D,arrowHeight:V}),_&&ed({strategy:"referenceHidden",...ne})]}),[Ce,_e]=tc(re),ve=hn(E);cn(()=>{le&&(ve==null||ve())},[le,ve]);const it=(o=ie.arrow)===null||o===void 0?void 0:o.x,dt=(i=ie.arrow)===null||i===void 0?void 0:i.y,_t=((s=ie.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[Ne,ft]=d.useState();return cn(()=>{F&&ft(window.getComputedStyle(F).zIndex)},[F]),d.createElement("div",{ref:ye.setFloating,"data-radix-popper-content-wrapper":"",style:{...pe,transform:le?pe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ne,"--radix-popper-transform-origin":[(a=ie.transformOrigin)===null||a===void 0?void 0:a.x,(c=ie.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")},dir:e.dir},d.createElement(jp,{scope:u,placedSide:Ce,onArrowChange:N,arrowX:it,arrowY:dt,shouldHideArrow:_t},d.createElement(Ht.div,Z({"data-side":Ce,"data-align":_e},T,{ref:z,style:{...T.style,animation:le?void 0:"none",opacity:(l=ie.hide)!==null&&l!==void 0&&l.referenceHidden?0:void 0}}))))}),zp="PopperArrow",Np={top:"bottom",right:"left",bottom:"top",left:"right"},Vp=d.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Lp(zp,r),s=Np[i.placedSide];return d.createElement("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},d.createElement(Op,Z({},o,{ref:n,style:{...o.style,display:"block"}})))});function Bp(e){return e!==null}const Wp=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,s;const{placement:a,rects:c,middlewareData:l}=t,f=((n=l.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,p=f?0:e.arrowWidth,g=f?0:e.arrowHeight,[m,b]=tc(a),w={start:"0%",center:"50%",end:"100%"}[b],v=((r=(o=l.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+p/2,y=((i=(s=l.arrow)===null||s===void 0?void 0:s.y)!==null&&i!==void 0?i:0)+g/2;let C="",_="";return m==="bottom"?(C=f?w:`${v}px`,_=`${-g}px`):m==="top"?(C=f?w:`${v}px`,_=`${c.floating.height+g}px`):m==="right"?(C=`${-g}px`,_=f?w:`${y}px`):m==="left"&&(C=`${c.floating.width+g}px`,_=f?w:`${y}px`),{data:{x:C,y:_}}}});function tc(e){const[t,n="center"]=e.split("-");return[t,n]}const Hp=Ip,Up=Mp,Kp=Fp,Gp=Vp;function Yp(e,t){return d.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const nc=e=>{const{present:t,children:n}=e,r=qp(t),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),i=fn(r.ref,o.ref);return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:i}):null};nc.displayName="Presence";function qp(e){const[t,n]=d.useState(),r=d.useRef({}),o=d.useRef(e),i=d.useRef("none"),s=e?"mounted":"unmounted",[a,c]=Yp(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const l=Jn(r.current);i.current=a==="mounted"?l:"none"},[a]),cn(()=>{const l=r.current,u=o.current;if(u!==e){const p=i.current,g=Jn(l);e?c("MOUNT"):g==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&p!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),cn(()=>{if(t){const l=f=>{const g=Jn(r.current).includes(f.animationName);f.target===t&&g&&Jo.flushSync(()=>c("ANIMATION_END"))},u=f=>{f.target===t&&(i.current=Jn(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:d.useCallback(l=>{l&&(r.current=getComputedStyle(l)),n(l)},[])}}function Jn(e){return(e==null?void 0:e.animationName)||"none"}function Xp({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Zp({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:r,a=hn(n),c=d.useCallback(l=>{if(i){const f=typeof l=="function"?l(e):l;f!==e&&a(f)}else o(l)},[i,e,o,a]);return[s,c]}function Zp({defaultProp:e,onChange:t}){const n=d.useState(e),[r]=n,o=d.useRef(r),i=hn(t);return d.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const Qp=d.forwardRef((e,t)=>d.createElement(Ht.span,Z({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),Jp=Qp,[zr,Ov]=Ya("Tooltip",[Qa]),Nr=Qa(),eh="TooltipProvider",Ro="tooltip.open",[Pv,fi]=zr(eh),pi="Tooltip",[th,Vr]=zr(pi),nh=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:s,delayDuration:a}=e,c=fi(pi,e.__scopeTooltip),l=Nr(t),[u,f]=d.useState(null),p=kp(),g=d.useRef(0),m=s??c.disableHoverableContent,b=a??c.delayDuration,w=d.useRef(!1),[v=!1,y]=Xp({prop:r,defaultProp:o,onChange:T=>{T?(c.onOpen(),document.dispatchEvent(new CustomEvent(Ro))):c.onClose(),i==null||i(T)}}),C=d.useMemo(()=>v?w.current?"delayed-open":"instant-open":"closed",[v]),_=d.useCallback(()=>{window.clearTimeout(g.current),w.current=!1,y(!0)},[y]),$=d.useCallback(()=>{window.clearTimeout(g.current),y(!1)},[y]),E=d.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{w.current=!0,y(!0)},b)},[b,y]);return d.useEffect(()=>()=>window.clearTimeout(g.current),[]),d.createElement(Hp,l,d.createElement(th,{scope:t,contentId:p,open:v,stateAttribute:C,trigger:u,onTriggerChange:f,onTriggerEnter:d.useCallback(()=>{c.isOpenDelayed?E():_()},[c.isOpenDelayed,E,_]),onTriggerLeave:d.useCallback(()=>{m?$():window.clearTimeout(g.current)},[$,m]),onOpen:_,onClose:$,disableHoverableContent:m},n))},hs="TooltipTrigger",rh=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Vr(hs,n),i=fi(hs,n),s=Nr(n),a=d.useRef(null),c=fn(t,a,o.onTriggerChange),l=d.useRef(!1),u=d.useRef(!1),f=d.useCallback(()=>l.current=!1,[]);return d.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),d.createElement(Up,Z({asChild:!0},s),d.createElement(Ht.button,Z({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:c,onPointerMove:mt(e.onPointerMove,p=>{p.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:mt(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:mt(e.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:mt(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:mt(e.onBlur,o.onClose),onClick:mt(e.onClick,o.onClose)})))}),oh="TooltipPortal",[Av,ih]=zr(oh,{forceMount:void 0}),Mn="TooltipContent",sh=d.forwardRef((e,t)=>{const n=ih(Mn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=Vr(Mn,e.__scopeTooltip);return d.createElement(nc,{present:r||s.open},s.disableHoverableContent?d.createElement(rc,Z({side:o},i,{ref:t})):d.createElement(ah,Z({side:o},i,{ref:t})))}),ah=d.forwardRef((e,t)=>{const n=Vr(Mn,e.__scopeTooltip),r=fi(Mn,e.__scopeTooltip),o=d.useRef(null),i=fn(t,o),[s,a]=d.useState(null),{trigger:c,onClose:l}=n,u=o.current,{onPointerInTransitChange:f}=r,p=d.useCallback(()=>{a(null),f(!1)},[f]),g=d.useCallback((m,b)=>{const w=m.currentTarget,v={x:m.clientX,y:m.clientY},y=fh(v,w.getBoundingClientRect()),C=ph(v,y),_=hh(b.getBoundingClientRect()),$=mh([...C,..._]);a($),f(!0)},[f]);return d.useEffect(()=>()=>p(),[p]),d.useEffect(()=>{if(c&&u){const m=w=>g(w,u),b=w=>g(w,c);return c.addEventListener("pointerleave",m),u.addEventListener("pointerleave",b),()=>{c.removeEventListener("pointerleave",m),u.removeEventListener("pointerleave",b)}}},[c,u,g,p]),d.useEffect(()=>{if(s){const m=b=>{const w=b.target,v={x:b.clientX,y:b.clientY},y=(c==null?void 0:c.contains(w))||(u==null?void 0:u.contains(w)),C=!gh(v,s);y?p():C&&(p(),l())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[c,u,s,l,p]),d.createElement(rc,Z({},e,{ref:i}))}),[ch,lh]=zr(pi,{isInside:!1}),rc=d.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,c=Vr(Mn,n),l=Nr(n),{onClose:u}=c;return d.useEffect(()=>(document.addEventListener(Ro,u),()=>document.removeEventListener(Ro,u)),[u]),d.useEffect(()=>{if(c.trigger){const f=p=>{const g=p.target;g!=null&&g.contains(c.trigger)&&u()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[c.trigger,u]),d.createElement(Ep,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:u},d.createElement(Kp,Z({"data-state":c.stateAttribute},l,a,{ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),d.createElement(Da,null,r),d.createElement(ch,{scope:n,isInside:!0},d.createElement(Jp,{id:c.contentId,role:"tooltip"},o||r))))}),uh="TooltipArrow",dh=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Nr(n);return lh(uh,n).isInside?null:d.createElement(Gp,Z({},o,r,{ref:t}))});function fh(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function ph(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function hh(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function gh(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;ir!=u>r&&n<(l-a)*(r-c)/(u-c)+a&&(o=!o)}return o}function mh(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),bh(t)}function bh(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const yh=nh,vh=rh,xh=sh,wh=dh;function $h(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function te(e,t){if(e==null)return{};var n=$h(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}let ge;(function(e){e[e.UNSUPPORTED_INPUT=0]="UNSUPPORTED_INPUT",e[e.NO_COMPONENT_FOR_TYPE=1]="NO_COMPONENT_FOR_TYPE",e[e.UNKNOWN_INPUT=2]="UNKNOWN_INPUT",e[e.DUPLICATE_KEYS=3]="DUPLICATE_KEYS",e[e.ALREADY_REGISTERED_TYPE=4]="ALREADY_REGISTERED_TYPE",e[e.CLIPBOARD_ERROR=5]="CLIPBOARD_ERROR",e[e.THEME_ERROR=6]="THEME_ERROR",e[e.PATH_DOESNT_EXIST=7]="PATH_DOESNT_EXIST",e[e.INPUT_TYPE_OVERRIDE=8]="INPUT_TYPE_OVERRIDE",e[e.EMPTY_KEY=9]="EMPTY_KEY"})(ge||(ge={}));const Eh={[ge.UNSUPPORTED_INPUT]:(e,t)=>[`An input with type \`${e}\` input was found at path \`${t}\` but it's not supported yet.`],[ge.NO_COMPONENT_FOR_TYPE]:(e,t)=>[`Type \`${e}\` found at path \`${t}\` can't be displayed in panel because no component supports it yet.`],[ge.UNKNOWN_INPUT]:(e,t)=>[`input at path \`${e}\` is not recognized.`,t],[ge.DUPLICATE_KEYS]:(e,t,n)=>[`Key \`${e}\` of path \`${t}\` already exists at path \`${n}\`. Even nested keys need to be unique. Rename one of the keys.`],[ge.ALREADY_REGISTERED_TYPE]:e=>[`Type ${e} has already been registered. You can't register a component with the same type.`],[ge.CLIPBOARD_ERROR]:e=>["Error copying the value",e],[ge.THEME_ERROR]:(e,t)=>[`Error accessing the theme \`${e}.${t}\` value.`],[ge.PATH_DOESNT_EXIST]:e=>[`Error getting the value at path \`${e}\`. There is probably an error in your \`render\` function.`],[ge.PATH_DOESNT_EXIST]:e=>[`Error accessing the value at path \`${e}\``],[ge.INPUT_TYPE_OVERRIDE]:(e,t,n)=>[`Input at path \`${e}\` already exists with type: \`${t}\`. Its type cannot be overridden with type \`${n}\`.`],[ge.EMPTY_KEY]:()=>["Keys can not be empty, if you want to hide a label use whitespace."]};function oc(e,t,...n){const[r,...o]=Eh[t](...n);console[e]("LEVA: "+r,...o)}const bt=oc.bind(null,"warn"),Ch=oc.bind(null,"log"),_h=["value"],Sh=["schema"],Th=["value"],ic=[],Bt={};function gs(e){let{value:t}=e,n=te(e,_h);for(let r of ic){const o=r(t,n);if(o)return o}}function Ct(e,t){let{schema:n}=t,r=te(t,Sh);if(e in Bt){bt(ge.ALREADY_REGISTERED_TYPE,e);return}ic.push((o,i)=>n(o,i)&&e),Bt[e]=r}function qr(e,t,n,r){const{normalize:o}=Bt[e];if(o)return o(t,n,r);if(typeof t!="object"||!("value"in t))return{value:t};const{value:i}=t,s=te(t,Th);return{value:i,settings:s}}function kh(e,t,n,r,o,i){const{sanitize:s}=Bt[e];return s?s(t,n,r,o,i):t}function ms(e,t,n){const{format:r}=Bt[e];return r?r(t,n):t}function Rh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function q(e){for(var t=1;te>n?n:e{if(e===""||typeof e=="number")return e;try{const t=Tt(e);if(!isNaN(t))return t}catch{}return parseFloat(e)},Ph=Math.log(10);function ys(e){let t=Math.abs(+String(e).replace(".",""));if(t===0)return .01;for(;t!==0&&t%10===0;)t/=10;const n=Math.floor(Math.log(t)/Ph)+1,r=Math.floor(Math.log10(Math.abs(e))),o=Math.pow(10,r-n);return Math.max(o,.001)}const mr=(e,t,n)=>n===t?0:(It(e,t,n)-t)/(n-t),br=(e,t,n)=>e*(n-t)+t,Ah=()=>"_"+Math.random().toString(36).substr(2,9),vs=/\(([0-9+\-*/^ .]+)\)/,xs=/(\d+(?:\.\d+)?) ?\^ ?(\d+(?:\.\d+)?)/,ws=/(\d+(?:\.\d+)?) ?\* ?(\d+(?:\.\d+)?)/,$s=/(\d+(?:\.\d+)?) ?\/ ?(\d+(?:\.\d+)?)/,Es=/(\d+(?:\.\d+)?) ?\+ ?(\d+(?:\.\d+)?)/,Cs=/(\d+(?:\.\d+)?) ?- ?(\d+(?:\.\d+)?)/;function Tt(e){if(isNaN(Number(e)))if(vs.test(e)){const t=e.replace(vs,(n,r)=>String(Tt(r)));return Tt(t)}else if(xs.test(e)){const t=e.replace(xs,(n,r,o)=>String(Math.pow(Number(r),Number(o))));return Tt(t)}else if(ws.test(e)){const t=e.replace(ws,(n,r,o)=>String(Number(r)*Number(o)));return Tt(t)}else if($s.test(e)){const t=e.replace($s,(n,r,o)=>{if(o!=0)return String(Number(r)/Number(o));throw new Error("Division by zero")});return Tt(t)}else if(Es.test(e)){const t=e.replace(Es,(n,r,o)=>String(Number(r)+Number(o)));return Tt(t)}else if(Cs.test(e)){const t=e.replace(Cs,(n,r,o)=>String(Number(r)-Number(o)));return Tt(t)}else return Number(e);return Number(e)}function Ih(e,t){return t.reduce((n,r)=>(e&&e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}function Dh(e,t){const n=q({},e);return t.forEach(r=>r in e&&delete n[r]),n}function Mh(e,t){return e.reduce((n,r,o)=>Object.assign(n,{[t[o]]:r}),{})}function sc(e){return Object.prototype.toString.call(e)==="[object Object]"}const jh=e=>sc(e)&&Object.keys(e).length===0;let nt;(function(e){e.BUTTON="BUTTON",e.BUTTON_GROUP="BUTTON_GROUP",e.MONITOR="MONITOR",e.FOLDER="FOLDER"})(nt||(nt={}));let rt;(function(e){e.SELECT="SELECT",e.IMAGE="IMAGE",e.NUMBER="NUMBER",e.COLOR="COLOR",e.STRING="STRING",e.BOOLEAN="BOOLEAN",e.INTERVAL="INTERVAL",e.VECTOR3D="VECTOR3D",e.VECTOR2D="VECTOR2D"})(rt||(rt={}));const Lh=["type","__customInput"],Fh=["render","label","optional","order","disabled","hint","onChange","onEditStart","onEditEnd","transient"],zh=["type"];function ac(e,t,n={},r){var o,i;if(typeof e!="object"||Array.isArray(e))return{type:r,input:e,options:q({key:t,label:t,optional:!1,disabled:!1,order:0},n)};if("__customInput"in e){const{type:$,__customInput:E}=e,T=te(e,Lh);return ac(E,t,T,$)}const{render:s,label:a,optional:c,order:l=0,disabled:u,hint:f,onChange:p,onEditStart:g,onEditEnd:m,transient:b}=e,w=te(e,Fh),v=q({render:s,key:t,label:a??t,hint:f,transient:b??!!p,onEditStart:g,onEditEnd:m,disabled:u,optional:c,order:l},n);let{type:y}=w,C=te(w,zh);if(y=r??y,y in nt)return{type:y,input:C,options:v};let _;return r&&sc(C)&&"value"in C?_=C.value:_=jh(C)?void 0:C,{type:y,input:_,options:q(q({},v),{},{onChange:p,optional:(o=v.optional)!==null&&o!==void 0?o:!1,disabled:(i=v.disabled)!==null&&i!==void 0?i:!1})}}function Nh(e,t,n,r){const o=ac(e,t),{type:i,input:s,options:a}=o;if(i)return i in nt?o:{type:i,input:qr(i,s,n,r),options:a};let c=gs(s);return c?{type:c,input:qr(c,s,n,r),options:a}:(c=gs({value:s}),c?{type:c,input:qr(c,{value:s},n,r),options:a}:!1)}function _s(e,t,n,r,o){const{value:i,type:s,settings:a}=e;e.value=cc({type:s,value:i,settings:a},t,n,r),e.fromPanel=o}const Vh=function(t,n,r){this.type="LEVA_ERROR",this.message="LEVA: "+t,this.previousValue=n,this.error=r};function cc({type:e,value:t,settings:n},r,o,i){const s=e!=="SELECT"&&typeof r=="function"?r(t):r;let a;try{a=kh(e,s,n,t,o,i)}catch(c){throw new Vh(`The value \`${r}\` did not result in a correct value.`,t,c)}return In(a,t)?t:a}const lc=(e,t,n=!1)=>{let r=0;return function(){const o=arguments,i=n&&!r,s=()=>e.apply(this,o);window.clearTimeout(r),r=window.setTimeout(s,t),i&&s()}},uc=e=>e.shiftKey?5:e.altKey?1/5:1;function Bh(e,t){const n=console.error;console.error=()=>{},ha.render(e,t),console.error=n}const Wh=["value"],Hh=["min","max"],Uh=e=>{if(typeof e=="number")return!0;if(typeof e=="string"){const t=parseFloat(e);return isNaN(t)?!1:e.substring((""+t).length).trim().length<4}return!1},dc=(e,{min:t=-1/0,max:n=1/0,suffix:r})=>{const o=parseFloat(e);if(e===""||isNaN(o))throw Error("Invalid number");const i=It(o,t,n);return r?i+r:i},Kh=(e,{pad:t=0,suffix:n})=>{const r=parseFloat(e).toFixed(t);return n?r+n:r},fc=e=>{let{value:t}=e,n=te(e,Wh);const{min:r=-1/0,max:o=1/0}=n,i=te(n,Hh);let s=parseFloat(t);const a=typeof t=="string"?t.substring((""+s).length):void 0;s=It(s,r,o);let c=n.step;c||(Number.isFinite(r)?Number.isFinite(o)?c=+(Math.abs(o-r)/100).toPrecision(1):c=+(Math.abs(s-r)/100).toPrecision(1):Number.isFinite(o)&&(c=+(Math.abs(o-s)/100).toPrecision(1)));const l=c?ys(c)*10:ys(s);c=c||l/10;const u=Math.round(It(Math.log10(1/l),0,2));return{value:a?s+a:s,settings:q({initialValue:s,step:c,pad:u,min:r,max:o,suffix:a},i)}},pc=(e,{step:t,initialValue:n})=>{const r=Math.round((e-n)/t);return n+r*t};var hc=Object.freeze({__proto__:null,schema:Uh,sanitize:dc,format:Kh,normalize:fc,sanitizeStep:pc});function be(){return be=Object.assign?Object.assign.bind():function(e){for(var t=1;t({colors:{elevation1:"#292d39",elevation2:"#181c20",elevation3:"#373c4b",accent1:"#0066dc",accent2:"#007bff",accent3:"#3c93ff",highlight1:"#535760",highlight2:"#8c92a4",highlight3:"#fefefe",vivid1:"#ffcc00",folderWidgetColor:"$highlight2",folderTextColor:"$highlight3",toolTipBackground:"$highlight3",toolTipText:"$elevation2"},radii:{xs:"2px",sm:"3px",lg:"10px"},space:{xs:"3px",sm:"6px",md:"10px",rowGap:"7px",colGap:"7px"},fonts:{mono:"ui-monospace, SFMono-Regular, Menlo, 'Roboto Mono', monospace",sans:"system-ui, sans-serif"},fontSizes:{root:"11px",toolTip:"$root"},sizes:{rootWidth:"280px",controlWidth:"160px",numberInputMinWidth:"38px",scrubberWidth:"8px",scrubberHeight:"16px",rowHeight:"24px",folderTitleHeight:"20px",checkboxSize:"16px",joystickWidth:"100px",joystickHeight:"100px",colorPickerWidth:"$controlWidth",colorPickerHeight:"100px",imagePreviewWidth:"$controlWidth",imagePreviewHeight:"100px",monitorHeight:"60px",titleBarHeight:"39px"},shadows:{level1:"0 0 9px 0 #00000088",level2:"0 4px 14px #00000033"},borderWidths:{root:"0px",input:"1px",focus:"1px",hover:"1px",active:"1px",folder:"1px"},fontWeights:{label:"normal",folder:"normal",button:"normal"}});function er(e,t){const[n,r]=e.split(" "),o={};return n!=="none"&&(o.boxShadow=`${t.inset?"inset ":""}0 0 0 $borderWidths${[t.key]} $colors${n!=="default"&&n||t.borderColor}`),r&&(o.backgroundColor=r),o}const $n={$inputStyle:()=>e=>er(e,{key:"$input",borderColor:"$highlight1",inset:!0}),$focusStyle:()=>e=>er(e,{key:"$focus",borderColor:"$accent2"}),$hoverStyle:()=>e=>er(e,{key:"$hover",borderColor:"$accent1",inset:!0}),$activeStyle:()=>e=>er(e,{key:"$active",borderColor:"$accent1",inset:!0})},{styled:G,css:Iv,createTheme:Yh,globalCss:qh,keyframes:Dv}=Na({prefix:"leva",theme:yc(),utils:q(q({},$n),{},{$flex:()=>({display:"flex",alignItems:"center"}),$flexCenter:()=>({display:"flex",alignItems:"center",justifyContent:"center"}),$reset:()=>({outline:"none",fontSize:"inherit",fontWeight:"inherit",color:"inherit",fontFamily:"inherit",border:"none",backgroundColor:"transparent",appearance:"none"}),$draggable:()=>({touchAction:"none",WebkitUserDrag:"none",userSelect:"none"}),$focus:e=>({"&:focus":$n.$focusStyle()(e)}),$focusWithin:e=>({"&:focus-within":$n.$focusStyle()(e)}),$hover:e=>({"&:hover":$n.$hoverStyle()(e)}),$active:e=>({"&:active":$n.$activeStyle()(e)})})}),Xh=qh({".leva__panel__dragged":{WebkitUserDrag:"none",userSelect:"none",input:{userSelect:"none"},"*":{cursor:"ew-resize !important"}}});function Zh(e){const t=yc();if(!e)return{theme:t,className:""};Object.keys(e).forEach(r=>{Object.assign(t[r],e[r])});const n=Yh(t);return{theme:t,className:n.className}}function yt(e,t){const{theme:n}=d.useContext(hi);if(!(e in n)||!(t in n[e]))return bt(ge.THEME_ERROR,e,t),"";let r=t;for(;;){let o=n[e][r];if(typeof o=="string"&&o.charAt(0)==="$")r=o.substr(1);else return o}}const vc=G("input",{$reset:"",padding:"0 $sm",width:0,minWidth:0,flex:1,height:"100%",variants:{levaType:{number:{textAlign:"right"}},as:{textarea:{padding:"$sm"}}}}),xc=G("div",{$draggable:"",height:"100%",$flexCenter:"",position:"relative",padding:"0 $xs",fontSize:"0.8em",opacity:.8,cursor:"default",touchAction:"none",[`& + ${vc}`]:{paddingLeft:0}}),Qh=G(xc,{cursor:"ew-resize",marginRight:"-$xs",textTransform:"uppercase",opacity:.3,"&:hover":{opacity:1},variants:{dragging:{true:{backgroundColor:"$accent2",opacity:1}}}}),Jh=G("div",{$flex:"",position:"relative",borderRadius:"$sm",overflow:"hidden",color:"inherit",height:"$rowHeight",backgroundColor:"$elevation3",$inputStyle:"$elevation1",$hover:"",$focusWithin:"",variants:{textArea:{true:{height:"auto"}}}}),eg=["innerLabel","value","onUpdate","onChange","onKeyDown","type","id","inputType","rows"],tg=["onUpdate"];function gi(e){let{innerLabel:t,value:n,onUpdate:r,onChange:o,onKeyDown:i,type:s,id:a,inputType:c="text",rows:l=0}=e,u=te(e,eg);const{id:f,emitOnEditStart:p,emitOnEditEnd:g,disabled:m}=Oe(),b=a||f,w=d.useRef(null),v=l>0,y=v?"textarea":"input",C=d.useCallback(E=>T=>{const R=T.currentTarget.value;E(R)},[]);h.useEffect(()=>{const E=w.current,T=C(R=>{r(R),g()});return E==null||E.addEventListener("blur",T),()=>E==null?void 0:E.removeEventListener("blur",T)},[C,r,g]);const _=d.useCallback(E=>{E.key==="Enter"&&C(r)(E)},[C,r]),$=Object.assign({as:y},v?{rows:l}:{},u);return h.createElement(Jh,{textArea:v},t&&typeof t=="string"?h.createElement(xc,null,t):t,h.createElement(vc,be({levaType:s,ref:w,id:b,type:c,autoComplete:"off",spellCheck:"false",value:n,onChange:C(o),onFocus:()=>p(),onKeyPress:_,onKeyDown:i,disabled:m},$)))}function ng(e){let{onUpdate:t}=e,n=te(e,tg);const r=d.useCallback(i=>t(Oh(i)),[t]),o=d.useCallback(i=>{const s=i.key==="ArrowUp"?1:i.key==="ArrowDown"?-1:0;if(s){i.preventDefault();const a=i.altKey?.1:i.shiftKey?10:1;t(c=>parseFloat(c)+s*a)}},[t]);return h.createElement(gi,be({},n,{onUpdate:r,onKeyDown:o,type:"number"}))}const yr=G("div",{}),Oo=G("div",{position:"relative",background:"$elevation2",transition:"height 300ms ease",variants:{fill:{true:{},false:{}},flat:{false:{},true:{}},isRoot:{true:{},false:{paddingLeft:"$md","&::after":{content:'""',position:"absolute",left:0,top:0,width:"$borderWidths$folder",height:"100%",backgroundColor:"$folderWidgetColor",opacity:.4,transform:"translateX(-50%)"}}}},compoundVariants:[{isRoot:!0,fill:!1,css:{overflowY:"auto",maxHeight:"calc(100vh - 20px - $$titleBarHeight)"}},{isRoot:!0,flat:!1,css:{borderRadius:"$lg"}}]}),rg=G("div",{$flex:"",color:"$folderTextColor",userSelect:"none",cursor:"pointer",height:"$folderTitleHeight",fontWeight:"$folder","> svg":{marginLeft:-4,marginRight:4,cursor:"pointer",fill:"$folderWidgetColor",opacity:.6},"&:hover > svg":{fill:"$folderWidgetColor"},[`&:hover + ${Oo}::after`]:{opacity:.6},[`${yr}:hover > & + ${Oo}::after`]:{opacity:.6},[`${yr}:hover > & > svg`]:{opacity:1}}),wc=G("div",{position:"relative",display:"grid",gridTemplateColumns:"100%",rowGap:"$rowGap",transition:"opacity 250ms ease",variants:{toggled:{true:{opacity:1,transitionDelay:"250ms"},false:{opacity:0,transitionDelay:"0ms",pointerEvents:"none"}},isRoot:{true:{"& > div":{paddingLeft:"$md",paddingRight:"$md"},"& > div:first-of-type":{paddingTop:"$sm"},"& > div:last-of-type":{paddingBottom:"$sm"},[`> ${yr}:not(:first-of-type)`]:{paddingTop:"$sm",marginTop:"$md",borderTop:"$borderWidths$folder solid $colors$elevation1"}}}}}),$c=G("div",{position:"relative",zIndex:100,display:"grid",rowGap:"$rowGap",gridTemplateRows:"minmax($sizes$rowHeight, max-content)",alignItems:"center",color:"$highlight2",[`${wc} > &`]:{"&:first-of-type":{marginTop:"$rowGap"},"&:last-of-type":{marginBottom:"$rowGap"}},variants:{disabled:{true:{pointerEvents:"none"},false:{"&:hover,&:focus-within":{color:"$highlight3"}}}}}),Ec=G($c,{gridTemplateColumns:"auto $sizes$controlWidth",columnGap:"$colGap"}),og=G("div",{$flex:"",height:"100%",position:"relative",overflow:"hidden","& > div":{marginLeft:"$colGap",padding:"0 $xs",opacity:.4},"& > div:hover":{opacity:.8},"& > div > svg":{display:"none",cursor:"pointer",width:13,minWidth:13,height:13,backgroundColor:"$elevation2"},"&:hover > div > svg":{display:"block"},variants:{align:{top:{height:"100%",alignItems:"flex-start",paddingTop:"$sm"}}}}),ig=G("input",{$reset:"",height:0,width:0,opacity:0,margin:0,"& + label":{position:"relative",$flexCenter:"",height:"100%",userSelect:"none",cursor:"pointer",paddingLeft:2,paddingRight:"$sm",pointerEvents:"auto"},"& + label:after":{content:'""',width:6,height:6,backgroundColor:"$elevation3",borderRadius:"50%",$activeStyle:""},"&:focus + label:after":{$focusStyle:""},"& + label:active:after":{backgroundColor:"$accent1",$focusStyle:""},"&:checked + label:after":{backgroundColor:"$accent1"}}),Po=G("label",{fontWeight:"$label",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& > svg":{display:"block"}}),sg=G("div",{opacity:1,variants:{disabled:{true:{opacity:.6,pointerEvents:"none",[`& ${Po}`]:{pointerEvents:"auto"}}}}}),Cc=G("div",{position:"fixed",top:0,bottom:0,right:0,left:0,zIndex:1e3,userSelect:"none"}),ag=G("div",{background:"$toolTipBackground",fontFamily:"$sans",fontSize:"$toolTip",padding:"$xs $sm",color:"$toolTipText",borderRadius:"$xs",boxShadow:"$level2",maxWidth:260}),cg=G(wh,{fill:"$toolTipBackground"});function mi({children:e}){const{className:t}=d.useContext(hi);return h.createElement(Ud,{className:t},e)}const lg=["align"];function ug(){const{id:e,disable:t,disabled:n}=Oe();return h.createElement(h.Fragment,null,h.createElement(ig,{id:e+"__disable",type:"checkbox",checked:!n,onChange:()=>t(!n)}),h.createElement("label",{htmlFor:e+"__disable"}))}function dg(e){const{id:t,optional:n,hint:r}=Oe(),o=e.htmlFor||(t?{htmlFor:t}:null),i=!r&&typeof e.children=="string"?{title:e.children}:null;return h.createElement(h.Fragment,null,n&&h.createElement(ug,null),r!==void 0?h.createElement(yh,null,h.createElement(vh,{asChild:!0},h.createElement(Po,be({},o,e))),h.createElement(xh,{side:"top",sideOffset:2},h.createElement(ag,null,r,h.createElement(cg,null)))):h.createElement(Po,be({},o,i,e)))}function ot(e){let{align:t}=e,n=te(e,lg);const{value:r,label:o,key:i,disabled:s}=Oe(),{hideCopyButton:a}=Gh(),c=!a&&i!==void 0,[l,u]=d.useState(!1),f=async()=>{try{await navigator.clipboard.writeText(JSON.stringify({[i]:r??""})),u(!0)}catch{bt(ge.CLIPBOARD_ERROR,{[i]:r})}};return h.createElement(og,{align:t,onPointerLeave:()=>u(!1)},h.createElement(dg,n),c&&!s&&h.createElement("div",{title:`Click to copy ${typeof o=="string"?o:i} value`},l?h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},h.createElement("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"}),h.createElement("path",{fillRule:"evenodd",d:"M4 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V5zm9.707 5.707a1 1 0 00-1.414-1.414L9 12.586l-1.293-1.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})):h.createElement("svg",{onClick:f,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},h.createElement("path",{d:"M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"}),h.createElement("path",{d:"M6 3a2 2 0 00-2 2v11a2 2 0 002 2h8a2 2 0 002-2V5a2 2 0 00-2-2 3 3 0 01-3 3H9a3 3 0 01-3-3z"}))))}const fg=["toggled"],pg=G("svg",{fill:"currentColor",transition:"transform 350ms ease, fill 250ms ease"});function bi(e){let{toggled:t}=e,n=te(e,fg);return h.createElement(pg,be({width:"9",height:"5",viewBox:"0 0 9 5",xmlns:"http://www.w3.org/2000/svg",style:{transform:`rotate(${t?0:-90}deg)`}},n),h.createElement("path",{d:"M3.8 4.4c.4.3 1 .3 1.4 0L8 1.7A1 1 0 007.4 0H1.6a1 1 0 00-.7 1.7l3 2.7z"}))}const hg=["input"];function tt(e){let{input:t}=e,n=te(e,hg);return t?h.createElement(Ec,n):h.createElement($c,n)}function _c({value:e,type:t,settings:n,setValue:r}){const[o,i]=d.useState(ms(t,e,n)),s=d.useRef(e),a=d.useRef(n);a.current=n;const c=d.useCallback(u=>i(ms(t,u,a.current)),[t]),l=d.useCallback(u=>{try{r(u)}catch(f){const{type:p,previousValue:g}=f;if(p!=="LEVA_ERROR")throw f;c(g)}},[c,r]);return d.useEffect(()=>{In(e,s.current)||c(e),s.current=e},[e,c]),{displayValue:o,onChange:i,onUpdate:l}}function Un(e,t){const{emitOnEditStart:n,emitOnEditEnd:r}=Oe();return bp(o=>{o.first&&(document.body.classList.add("leva__panel__dragged"),n==null||n());const i=e(o);return o.last&&(document.body.classList.remove("leva__panel__dragged"),r==null||r()),i},t)}function gg(e){const t=d.useRef(null),n=d.useRef(null),r=d.useRef(!1);return d.useEffect(()=>{const o=lc(()=>{t.current.width=t.current.offsetWidth*window.devicePixelRatio,t.current.height=t.current.offsetHeight*window.devicePixelRatio,e(t.current,n.current)},250);return window.addEventListener("resize",o),r.current||(o(),r.current=!0),()=>window.removeEventListener("resize",o)},[e]),d.useEffect(()=>{n.current=t.current.getContext("2d")},[]),[t,n]}function Sc(){const e=d.useRef(null),t=d.useRef({x:0,y:0}),n=d.useCallback(r=>{Object.assign(t.current,r),e.current&&(e.current.style.transform=`translate3d(${t.current.x}px, ${t.current.y}px, 0)`)},[]);return[e,n]}const mg=["__refCount"],Xr=(e,t)=>{if(!e[t])return null;const n=e[t];return te(n,mg)};function bg(e){const t=Hn(),[n,r]=d.useState(Xr(t.getData(),e)),o=d.useCallback(l=>t.setValueAtPath(e,l,!0),[e,t]),i=d.useCallback(l=>t.setSettingsAtPath(e,l),[e,t]),s=d.useCallback(l=>t.disableInputAtPath(e,l),[e,t]),a=d.useCallback(()=>t.emitOnEditStart(e),[e,t]),c=d.useCallback(()=>t.emitOnEditEnd(e),[e,t]);return d.useEffect(()=>{r(Xr(t.getData(),e));const l=t.useStore.subscribe(u=>Xr(u.data,e),r,{equalityFn:Vn});return()=>l()},[t,e]),[n,{set:o,setSettings:i,disable:s,storeId:t.storeId,emitOnEditStart:a,emitOnEditEnd:c}]}const yg=G("div",{variants:{hasRange:{true:{position:"relative",display:"grid",gridTemplateColumns:"auto $sizes$numberInputMinWidth",columnGap:"$colGap",alignItems:"center"}}}}),Tc=G("div",{position:"relative",width:"100%",height:2,borderRadius:"$xs",backgroundColor:"$elevation1"}),Ao=G("div",{position:"absolute",width:"$scrubberWidth",height:"$scrubberHeight",borderRadius:"$xs",boxShadow:"0 0 0 2px $colors$elevation2",backgroundColor:"$accent2",cursor:"pointer",$active:"none $accent1",$hover:"none $accent3",variants:{position:{left:{borderTopRightRadius:0,borderBottomRightRadius:0,transform:"translateX(calc(-0.5 * ($sizes$scrubberWidth + 4px)))"},right:{borderTopLeftRadius:0,borderBottomLeftRadius:0,transform:"translateX(calc(0.5 * ($sizes$scrubberWidth + 4px)))"}}}}),kc=G("div",{position:"relative",$flex:"",height:"100%",cursor:"pointer",touchAction:"none"}),Rc=G("div",{position:"absolute",height:"100%",backgroundColor:"$accent2"});function vg({value:e,min:t,max:n,onDrag:r,step:o,initialValue:i}){const s=d.useRef(null),a=d.useRef(null),c=d.useRef(0),l=yt("sizes","scrubberWidth"),u=Un(({event:p,first:g,xy:[m],movement:[b],memo:w})=>{if(g){const{width:y,left:C}=s.current.getBoundingClientRect();c.current=y-parseFloat(l),w=(p==null?void 0:p.target)===a.current?e:br((m-C)/y,t,n)}const v=w+br(b/c.current,0,n-t);return r(pc(v,{step:o,initialValue:i})),w}),f=mr(e,t,n);return h.createElement(kc,be({ref:s},u()),h.createElement(Tc,null,h.createElement(Rc,{style:{left:0,right:`${(1-f)*100}%`}})),h.createElement(Ao,{ref:a,style:{left:`calc(${f} * (100% - ${l}))`}}))}const xg=h.memo(({label:e,onUpdate:t,step:n,innerLabelTrim:r})=>{const[o,i]=d.useState(!1),s=Un(({active:a,delta:[c],event:l,memo:u=0})=>(i(a),u+=c/2,Math.abs(u)>=1&&(t(f=>parseFloat(f)+Math.floor(u)*n*uc(l)),u=0),u));return h.createElement(Qh,be({dragging:o,title:e.length>1?e:""},s()),e.slice(0,r))});function Oc({label:e,id:t,displayValue:n,onUpdate:r,onChange:o,settings:i,innerLabelTrim:s=1}){const a=s>0&&h.createElement(xg,{label:e,step:i.step,onUpdate:r,innerLabelTrim:s});return h.createElement(ng,{id:t,value:String(n),onUpdate:r,onChange:o,innerLabel:a})}function wg(){const e=Oe(),{label:t,value:n,onUpdate:r,settings:o,id:i}=e,{min:s,max:a}=o,c=a!==1/0&&s!==-1/0;return h.createElement(tt,{input:!0},h.createElement(ot,null,t),h.createElement(yg,{hasRange:c},c&&h.createElement(vg,be({value:parseFloat(n),onDrag:r},o)),h.createElement(Oc,be({},e,{id:i,label:"value",innerLabelTrim:c?0:1}))))}const{sanitizeStep:$g}=hc,Eg=te(hc,["sanitizeStep"]);var Cg=q({component:wg},Eg);const _g=(e,t)=>Fe().schema({options:Fe().passesAnyOf(Fe().object(),Fe().array())}).test(t),Sg=(e,{values:t})=>{if(t.indexOf(e)<0)throw Error("Selected value doesn't match Select options");return e},Tg=(e,{values:t})=>t.indexOf(e),kg=e=>{let{value:t,options:n}=e,r,o;return Array.isArray(n)?(o=n,r=n.map(i=>String(i))):(o=Object.values(n),r=Object.keys(n)),"value"in e?o.includes(t)||(r.unshift(String(t)),o.unshift(t)):t=o[0],Object.values(n).includes(t)||(n[String(t)]=t),{value:t,settings:{keys:r,values:o}}};var Rg=Object.freeze({__proto__:null,schema:_g,sanitize:Sg,format:Tg,normalize:kg});const Og=G("div",{$flexCenter:"",position:"relative","> svg":{pointerEvents:"none",position:"absolute",right:"$md"}}),Io=G("select",{position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:0}),Pg=G("div",{display:"flex",alignItems:"center",width:"100%",height:"$rowHeight",backgroundColor:"$elevation3",borderRadius:"$sm",padding:"0 $sm",cursor:"pointer",[`${Io}:focus + &`]:{$focusStyle:""},[`${Io}:hover + &`]:{$hoverStyle:""}});function Ag({displayValue:e,value:t,onUpdate:n,id:r,settings:o,disabled:i}){const{keys:s,values:a}=o,c=d.useRef();return t===a[e]&&(c.current=s[e]),h.createElement(Og,null,h.createElement(Io,{id:r,value:e,onChange:l=>n(a[Number(l.currentTarget.value)]),disabled:i},s.map((l,u)=>h.createElement("option",{key:l,value:u},l))),h.createElement(Pg,null,c.current),h.createElement(bi,{toggled:!0}))}function Ig(){const{label:e,value:t,displayValue:n,onUpdate:r,id:o,disabled:i,settings:s}=Oe();return h.createElement(tt,{input:!0},h.createElement(ot,null,e),h.createElement(Ag,{id:o,value:t,displayValue:n,onUpdate:r,settings:s,disabled:i}))}var Dg=q({component:Ig},Rg);const Mg=e=>Fe().string().test(e),jg=e=>{if(typeof e!="string")throw Error("Invalid string");return e},Lg=({value:e,editable:t=!0,rows:n=!1})=>({value:e,settings:{editable:t,rows:typeof n=="number"?n:n?5:0}});var Fg=Object.freeze({__proto__:null,schema:Mg,sanitize:jg,normalize:Lg});const zg=["displayValue","onUpdate","onChange","editable"],Ng=G("div",{whiteSpace:"pre-wrap"});function Vg(e){let{displayValue:t,onUpdate:n,onChange:r,editable:o=!0}=e,i=te(e,zg);return o?h.createElement(gi,be({value:t,onUpdate:n,onChange:r},i)):h.createElement(Ng,null,t)}function Bg(){const{label:e,settings:t,displayValue:n,onUpdate:r,onChange:o}=Oe();return h.createElement(tt,{input:!0},h.createElement(ot,null,e),h.createElement(Vg,be({displayValue:n,onUpdate:r,onChange:o},t)))}var Wg=q({component:Bg},Fg);const Hg=e=>Fe().boolean().test(e),Ug=e=>{if(typeof e!="boolean")throw Error("Invalid boolean");return e};var Kg=Object.freeze({__proto__:null,schema:Hg,sanitize:Ug});const Gg=G("div",{position:"relative",$flex:"",height:"$rowHeight",input:{$reset:"",height:0,width:0,opacity:0,margin:0},label:{position:"relative",$flexCenter:"",userSelect:"none",cursor:"pointer",height:"$checkboxSize",width:"$checkboxSize",backgroundColor:"$elevation3",borderRadius:"$sm",$hover:""},"input:focus + label":{$focusStyle:""},"input:focus:checked + label, input:checked + label:hover":{$hoverStyle:"$accent3"},"input + label:active":{backgroundColor:"$accent1"},"input:checked + label:active":{backgroundColor:"$accent1"},"label > svg":{display:"none",width:"90%",height:"90%",stroke:"$highlight3"},"input:checked + label":{backgroundColor:"$accent2"},"input:checked + label > svg":{display:"block"}});function Yg({value:e,onUpdate:t,id:n,disabled:r}){return h.createElement(Gg,null,h.createElement("input",{id:n,type:"checkbox",checked:e,onChange:o=>t(o.currentTarget.checked),disabled:r}),h.createElement("label",{htmlFor:n},h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"}))))}function qg(){const{label:e,value:t,onUpdate:n,disabled:r,id:o}=Oe();return h.createElement(tt,{input:!0},h.createElement(ot,null,e),h.createElement(Yg,{value:t,onUpdate:n,id:o,disabled:r}))}var Xg=q({component:qg},Kg);const Zg=["locked"];function Qg({value:e,id:t,valueKey:n,settings:r,onUpdate:o,innerLabelTrim:i}){const s=d.useRef(e[n]);s.current=e[n];const a=d.useCallback(l=>o({[n]:cc({type:"NUMBER",value:s.current,settings:r},l)}),[o,r,n]),c=_c({type:"NUMBER",value:e[n],settings:r,setValue:a});return h.createElement(Oc,{id:t,label:n,value:e[n],displayValue:c.displayValue,onUpdate:c.onUpdate,onChange:c.onChange,settings:r,innerLabelTrim:i})}const Jg=G("div",{display:"grid",columnGap:"$colGap",gridAutoFlow:"column dense",alignItems:"center",variants:{withLock:{true:{gridTemplateColumns:"10px auto","> svg":{cursor:"pointer"}}}}});function e1(e){let{locked:t}=e,n=te(e,Zg);return h.createElement("svg",be({width:"10",height:"10",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),t?h.createElement("path",{d:"M5 4.63601C5 3.76031 5.24219 3.1054 5.64323 2.67357C6.03934 2.24705 6.64582 1.9783 7.5014 1.9783C8.35745 1.9783 8.96306 2.24652 9.35823 2.67208C9.75838 3.10299 10 3.75708 10 4.63325V5.99999H5V4.63601ZM4 5.99999V4.63601C4 3.58148 4.29339 2.65754 4.91049 1.99307C5.53252 1.32329 6.42675 0.978302 7.5014 0.978302C8.57583 0.978302 9.46952 1.32233 10.091 1.99162C10.7076 2.65557 11 3.57896 11 4.63325V5.99999H12C12.5523 5.99999 13 6.44771 13 6.99999V13C13 13.5523 12.5523 14 12 14H3C2.44772 14 2 13.5523 2 13V6.99999C2 6.44771 2.44772 5.99999 3 5.99999H4ZM3 6.99999H12V13H3V6.99999Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}):h.createElement("path",{d:"M9 3.63601C9 2.76044 9.24207 2.11211 9.64154 1.68623C10.0366 1.26502 10.6432 1 11.5014 1C12.4485 1 13.0839 1.30552 13.4722 1.80636C13.8031 2.23312 14 2.84313 14 3.63325H15C15 2.68242 14.7626 1.83856 14.2625 1.19361C13.6389 0.38943 12.6743 0 11.5014 0C10.4294 0 9.53523 0.337871 8.91218 1.0021C8.29351 1.66167 8 2.58135 8 3.63601V6H1C0.447715 6 0 6.44772 0 7V13C0 13.5523 0.447715 14 1 14H10C10.5523 14 11 13.5523 11 13V7C11 6.44772 10.5523 6 10 6H9V3.63601ZM1 7H10V13H1V7Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}function yi({value:e,onUpdate:t,settings:n,innerLabelTrim:r}){const{id:o,setSettings:i}=Oe(),{lock:s,locked:a}=n;return h.createElement(Jg,{withLock:s},s&&h.createElement(e1,{locked:a,onClick:()=>i({locked:!a})}),Object.keys(e).map((c,l)=>h.createElement(Qg,{id:l===0?o:`${o}.${c}`,key:c,valueKey:c,value:e,settings:n[c],onUpdate:t,innerLabelTrim:r})))}const Pc=(e,t)=>{const n={};let r=0,o=1/0;Object.entries(e).forEach(([i,s])=>{n[i]=fc(q({value:s},t[i])).settings,r=Math.max(r,n[i].step),o=Math.min(o,n[i].pad)});for(let i in n){const{step:s,min:a,max:c}=t[i]||{};!isFinite(s)&&(!isFinite(a)||!isFinite(c))&&(n[i].step=r,n[i].pad=o)}return n},t1=["lock"],n1=["value"];function r1(e){const t=Fe().array().length(e).every.number(),n=r=>{if(!r||typeof r!="object")return!1;const o=Object.values(r);return o.length===e&&o.every(i=>isFinite(i))};return r=>t.test(r)||n(r)}function o1(e){return Array.isArray(e)?"array":"object"}function Tn(e,t,n){return o1(e)===t?e:t==="array"?Object.values(e):Mh(e,n)}const i1=(e,t,n)=>{const r=Tn(e,"object",t.keys);for(let s in r)r[s]=dc(r[s],t[s]);const o=Object.keys(r);let i={};if(o.length===t.keys.length)i=r;else{const s=Tn(n,"object",t.keys);if(o.length===1&&t.locked){const a=o[0],c=r[a],l=s[a],u=l!==0?c/l:1;for(let f in s)f===a?i[a]=c:i[f]=s[f]*u}else i=q(q({},s),r)}return Tn(i,t.format,t.keys)},s1=(e,t)=>Tn(e,"object",t.keys),a1=e=>!!e&&("step"in e||"min"in e||"max"in e);function c1(e,t,n=[]){const{lock:r=!1}=t,o=te(t,t1),i=Array.isArray(e)?"array":"object",s=i==="object"?Object.keys(e):n,a=Tn(e,"object",s),c=a1(o)?s.reduce((u,f)=>Object.assign(u,{[f]:o}),{}):o,l=Pc(a,c);return{value:i==="array"?e:a,settings:q(q({},l),{},{format:i,keys:s,lock:r,locked:!1})}}function Ac(e){return{schema:r1(e.length),normalize:t=>{let{value:n}=t,r=te(t,n1);return c1(n,r,e)},format:(t,n)=>s1(t,n),sanitize:(t,n,r)=>i1(t,n,r)}}var l1={grad:.9,turn:360,rad:360/(2*Math.PI)},ht=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},Ee=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},Je=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e>t?e:t},Ic=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Ss=function(e){return{r:Je(e.r,0,255),g:Je(e.g,0,255),b:Je(e.b,0,255),a:Je(e.a)}},Zr=function(e){return{r:Ee(e.r),g:Ee(e.g),b:Ee(e.b),a:Ee(e.a,3)}},u1=/^#([0-9a-f]{3,8})$/i,tr=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Dc=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:60*(a<0?a+6:a),s:i?s/i*100:0,v:i/255*100,a:o}},Mc=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),s=r*(1-n),a=r*(1-(t-i)*n),c=r*(1-(1-t+i)*n),l=i%6;return{r:255*[r,a,s,s,c,r][l],g:255*[c,r,r,a,s,s][l],b:255*[s,s,c,r,r,a][l],a:o}},Ts=function(e){return{h:Ic(e.h),s:Je(e.s,0,100),l:Je(e.l,0,100),a:Je(e.a)}},ks=function(e){return{h:Ee(e.h),s:Ee(e.s),l:Ee(e.l),a:Ee(e.a,3)}},Rs=function(e){return Mc((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},kn=function(e){return{h:(t=Dc(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},d1=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,f1=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,p1=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,h1=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Do={string:[[function(e){var t=u1.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?Ee(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?Ee(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=p1.exec(e)||h1.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Ss({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=d1.exec(e)||f1.exec(e);if(!t)return null;var n,r,o=Ts({h:(n=t[1],r=t[2],r===void 0&&(r="deg"),Number(n)*(l1[r]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return Rs(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=o===void 0?1:o;return ht(t)&&ht(n)&&ht(r)?Ss({r:Number(t),g:Number(n),b:Number(r),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,o=e.a,i=o===void 0?1:o;if(!ht(t)||!ht(n)||!ht(r))return null;var s=Ts({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return Rs(s)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=o===void 0?1:o;if(!ht(t)||!ht(n)||!ht(r))return null;var s=function(a){return{h:Ic(a.h),s:Je(a.s,0,100),v:Je(a.v,0,100),a:Je(a.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return Mc(s)},"hsv"]]},Os=function(e,t){for(var n=0;n=.5},e.prototype.toHex=function(){return t=Zr(this.rgba),n=t.r,r=t.g,o=t.b,s=(i=t.a)<1?tr(Ee(255*i)):"","#"+tr(n)+tr(r)+tr(o)+s;var t,n,r,o,i,s},e.prototype.toRgb=function(){return Zr(this.rgba)},e.prototype.toRgbString=function(){return t=Zr(this.rgba),n=t.r,r=t.g,o=t.b,(i=t.a)<1?"rgba("+n+", "+r+", "+o+", "+i+")":"rgb("+n+", "+r+", "+o+")";var t,n,r,o,i},e.prototype.toHsl=function(){return ks(kn(this.rgba))},e.prototype.toHslString=function(){return t=ks(kn(this.rgba)),n=t.h,r=t.s,o=t.l,(i=t.a)<1?"hsla("+n+", "+r+"%, "+o+"%, "+i+")":"hsl("+n+", "+r+"%, "+o+"%)";var t,n,r,o,i},e.prototype.toHsv=function(){return t=Dc(this.rgba),{h:Ee(t.h),s:Ee(t.s),v:Ee(t.v),a:Ee(t.a,3)};var t},e.prototype.invert=function(){return Ie({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),Ie(Qr(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),Ie(Qr(this.rgba,-t))},e.prototype.grayscale=function(){return Ie(Qr(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),Ie(Ps(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),Ie(Ps(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?Ie({r:(n=this.rgba).r,g:n.g,b:n.b,a:t}):Ee(this.rgba.a,3);var n},e.prototype.hue=function(t){var n=kn(this.rgba);return typeof t=="number"?Ie({h:t,s:n.s,l:n.l,a:n.a}):Ee(n.h)},e.prototype.isEqual=function(t){return this.toHex()===Ie(t).toHex()},e}(),Ie=function(e){return e instanceof Mo?e:new Mo(e)},As=[],m1=function(e){e.forEach(function(t){As.indexOf(t)<0&&(t(Mo,Do),As.push(t))})};function b1(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var o in n)r[n[o]]=o;var i={};e.prototype.toName=function(s){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var a,c,l=r[this.toHex()];if(l)return l;if(s!=null&&s.closest){var u=this.toRgb(),f=1/0,p="black";if(!i.length)for(var g in n)i[g]=new e(n[g]).toRgb();for(var m in n){var b=(a=u,c=i[m],Math.pow(a.r-c.r,2)+Math.pow(a.g-c.g,2)+Math.pow(a.b-c.b,2));b=0||(o[n]=e[n]);return o}function jo(e){var t=d.useRef(e),n=d.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var ln=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:w.buttons>0)&&o.current?i(Is(o.current,w,a.current)):b(!1)},m=function(){return b(!1)};function b(w){var v=c.current,y=Lo(o.current),C=w?y.addEventListener:y.removeEventListener;C(v?"touchmove":"mousemove",g),C(v?"touchend":"mouseup",m)}return[function(w){var v=w.nativeEvent,y=o.current;if(y&&(Ds(v),!function(_,$){return $&&!Rn(_)}(v,c.current)&&y)){if(Rn(v)){c.current=!0;var C=v.changedTouches||[];C.length&&(a.current=C[0].identifier)}y.focus(),i(Is(y,v,a.current)),b(!0)}},function(w){var v=w.which||w.keyCode;v<37||v>40||(w.preventDefault(),s({left:v===39?.05:v===37?-.05:0,top:v===40?.05:v===38?-.05:0}))},b]},[s,i]),u=l[0],f=l[1],p=l[2];return d.useEffect(function(){return p},[p]),h.createElement("div",gn({},r,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),Kn=function(e){return e.filter(Boolean).join(" ")},wi=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,i=Kn(["react-colorful__pointer",e.className]);return h.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},h.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},je=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Lc=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:je(e.h),s:je(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:je(o/2),a:je(r,2)}},Fo=function(e){var t=Lc(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},eo=function(e){var t=Lc(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},Fc=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),s=r*(1-n),a=r*(1-(t-i)*n),c=r*(1-(1-t+i)*n),l=i%6;return{r:je(255*[r,a,s,s,c,r][l]),g:je(255*[c,r,r,a,s,s][l]),b:je(255*[s,s,c,r,r,a][l]),a:je(o,2)}},zc=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:je(60*(a<0?a+6:a)),s:je(i?s/i*100:0),v:je(i/255*100),a:o}},Nc=h.memo(function(e){var t=e.hue,n=e.onChange,r=Kn(["react-colorful__hue",e.className]);return h.createElement("div",{className:r},h.createElement(xi,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:ln(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":je(t),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(wi,{className:"react-colorful__hue-pointer",left:t/360,color:Fo({h:t,s:100,v:100,a:1})})))}),Vc=h.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:Fo({h:t.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:r},h.createElement(xi,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:ln(t.s+100*o.left,0,100),v:ln(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+je(t.s)+"%, Brightness "+je(t.v)+"%"},h.createElement(wi,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:Fo(t)})))}),$i=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0};function Bc(e,t,n){var r=jo(n),o=d.useState(function(){return e.toHsva(t)}),i=o[0],s=o[1],a=d.useRef({color:t,hsva:i});d.useEffect(function(){if(!e.equal(t,a.current.color)){var l=e.toHsva(t);a.current={hsva:l,color:t},s(l)}},[t,e]),d.useEffect(function(){var l;$i(i,a.current.hsva)||e.equal(l=e.fromHsva(i),a.current.color)||(a.current={hsva:i,color:l},r(l))},[i,e,r]);var c=d.useCallback(function(l){s(function(u){return Object.assign({},u,l)})},[]);return[i,c]}var y1=typeof window<"u"?d.useLayoutEffect:d.useEffect,v1=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},Ms=new Map,Wc=function(e){y1(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!Ms.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,Ms.set(t,n);var r=v1();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},x1=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,i=e.onChange,s=vi(e,["className","colorModel","color","onChange"]),a=d.useRef(null);Wc(a);var c=Bc(n,o,i),l=c[0],u=c[1],f=Kn(["react-colorful",t]);return h.createElement("div",gn({},s,{ref:a,className:f}),h.createElement(Vc,{hsva:l,onChange:u}),h.createElement(Nc,{hue:l.h,onChange:u,className:"react-colorful__last-control"}))},w1=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+eo(Object.assign({},n,{a:0}))+", "+eo(Object.assign({},n,{a:1}))+")"},i=Kn(["react-colorful__alpha",t]),s=je(100*n.a);return h.createElement("div",{className:i},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement(xi,{onMove:function(a){r({a:a.left})},onKey:function(a){r({a:ln(n.a+a.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(wi,{className:"react-colorful__alpha-pointer",left:n.a,color:eo(n)})))},$1=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,i=e.onChange,s=vi(e,["className","colorModel","color","onChange"]),a=d.useRef(null);Wc(a);var c=Bc(n,o,i),l=c[0],u=c[1],f=Kn(["react-colorful",t]);return h.createElement("div",gn({},s,{ref:a,className:f}),h.createElement(Vc,{hsva:l,onChange:u}),h.createElement(Nc,{hue:l.h,onChange:u}),h.createElement(w1,{hsva:l,onChange:u,className:"react-colorful__last-control"}))},E1={defaultColor:{r:0,g:0,b:0,a:1},toHsva:zc,fromHsva:Fc,equal:$i},C1=function(e){return h.createElement($1,gn({},e,{colorModel:E1}))},_1={defaultColor:{r:0,g:0,b:0},toHsva:function(e){return zc({r:e.r,g:e.g,b:e.b,a:1})},fromHsva:function(e){return{r:(t=Fc(e)).r,g:t.g,b:t.b};var t},equal:$i},S1=function(e){return h.createElement(x1,gn({},e,{colorModel:_1}))};function Mv(e,t,n,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,n,i):s(t,n))||i);return o>3&&i&&Object.defineProperty(t,n,i),i}function mn(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(u){try{l(r.next(u))}catch(f){s(f)}}function c(u){try{l(r.throw(u))}catch(f){s(f)}}function l(u){u.done?i(u.value):o(u.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}function bn(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(l){return function(u){return c([l,u])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(n=0)),n;)try{if(r=1,o&&(i=l[0]&2?o.return:l[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;switch(o=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,o=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function k1(){for(var e=[],t=0;t0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function O1(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=R1.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var P1=[".DS_Store","Thumbs.db"];function A1(e){return mn(this,void 0,void 0,function(){return bn(this,function(t){return vr(e)&&I1(e)?[2,L1(e.dataTransfer,e.type)]:D1(e)?[2,M1(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,j1(e)]:[2,[]]})})}function I1(e){return vr(e.dataTransfer)}function D1(e){return vr(e)&&vr(e.target)}function vr(e){return typeof e=="object"&&e!==null}function M1(e){return zo(e.target.files).map(function(t){return Gn(t)})}function j1(e){return mn(this,void 0,void 0,function(){var t;return bn(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return Gn(r)})]}})})}function L1(e,t){return mn(this,void 0,void 0,function(){var n,r;return bn(this,function(o){switch(o.label){case 0:return e===null?[2,[]]:e.items?(n=zo(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(F1))]):[3,2];case 1:return r=o.sent(),[2,js(Hc(r))];case 2:return[2,js(zo(e.files).map(function(i){return Gn(i)}))]}})})}function js(e){return e.filter(function(t){return P1.indexOf(t.name)===-1})}function zo(e){if(e===null)return[];for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nn)return[!1,Bs(n)];if(e.sizen)return[!1,Bs(n)]}return[!0,null]}function En(e){return e!=null}function Q1(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,s=e.maxFiles;return!i&&t.length>1||i&&s>=1&&t.length>s?!1:t.every(function(a){var c=Gc(a,n),l=Ns(c,1),u=l[0],f=Yc(a,r,o),p=Ns(f,1),g=p[0];return u&&g})}function xr(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function nr(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Hs(e){e.preventDefault()}function J1(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function e0(e){return e.indexOf("Edge/")!==-1}function t0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return J1(e)||e0(e)}function at(){for(var e=arguments.length,t=new Array(e),n=0;n1?o-1:0),s=1;se.transitions.easing.easeInOut,qe.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,qe.child,qe.childLeaving,Cu,xo,({theme:e})=>e.transitions.easing.easeInOut,qe.childPulsate,_u,({theme:e})=>e.transitions.easing.easeInOut),ku=d.forwardRef(function(t,n){const r=Ar({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s}=r,a=Fn(r,wu),[c,l]=d.useState([]),u=d.useRef(0),f=d.useRef(null);d.useEffect(()=>{f.current&&(f.current(),f.current=null)},[c]);const p=d.useRef(!1),g=d.useRef(0),m=d.useRef(null),b=d.useRef(null);d.useEffect(()=>()=>{g.current&&clearTimeout(g.current)},[]);const w=d.useCallback(S=>{const{pulsate:E,rippleX:$,rippleY:T,rippleSize:R,cb:F}=S;l(j=>[...j,_.jsx(Tu,{classes:{ripple:We(i.ripple,qe.ripple),rippleVisible:We(i.rippleVisible,qe.rippleVisible),ripplePulsate:We(i.ripplePulsate,qe.ripplePulsate),child:We(i.child,qe.child),childLeaving:We(i.childLeaving,qe.childLeaving),childPulsate:We(i.childPulsate,qe.childPulsate)},timeout:xo,pulsate:E,rippleX:$,rippleY:T,rippleSize:R},u.current)]),u.current+=1,f.current=F},[i]),v=d.useCallback((S={},E={},$=()=>{})=>{const{pulsate:T=!1,center:R=o||E.pulsate,fakeElement:F=!1}=E;if((S==null?void 0:S.type)==="mousedown"&&p.current){p.current=!1;return}(S==null?void 0:S.type)==="touchstart"&&(p.current=!0);const j=F?null:b.current,z=j?j.getBoundingClientRect():{width:0,height:0,left:0,top:0};let A,N,L;if(R||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)A=Math.round(z.width/2),N=Math.round(z.height/2);else{const{clientX:D,clientY:V}=S.touches&&S.touches.length>0?S.touches[0]:S;A=Math.round(D-z.left),N=Math.round(V-z.top)}if(R)L=Math.sqrt((2*z.width**2+z.height**2)/3),L%2===0&&(L+=1);else{const D=Math.max(Math.abs((j?j.clientWidth:0)-A),A)*2+2,V=Math.max(Math.abs((j?j.clientHeight:0)-N),N)*2+2;L=Math.sqrt(D**2+V**2)}S!=null&&S.touches?m.current===null&&(m.current=()=>{w({pulsate:T,rippleX:A,rippleY:N,rippleSize:L,cb:$})},g.current=setTimeout(()=>{m.current&&(m.current(),m.current=null)},Eu)):w({pulsate:T,rippleX:A,rippleY:N,rippleSize:L,cb:$})},[o,w]),y=d.useCallback(()=>{v({},{pulsate:!0})},[v]),C=d.useCallback((S,E)=>{if(clearTimeout(g.current),(S==null?void 0:S.type)==="touchend"&&m.current){m.current(),m.current=null,g.current=setTimeout(()=>{C(S,E)});return}m.current=null,l($=>$.length>0?$.slice(1):$),f.current=E},[]);return d.useImperativeHandle(n,()=>({pulsate:y,start:v,stop:C}),[y,v,C]),_.jsx(Su,Z({className:We(qe.root,i.root,s),ref:b},a,{children:_.jsx(yu,{component:null,exit:!0,children:c})}))}),Ru=ku;function Ou(e){return Zo("MuiButtonBase",e)}const Pu=Pr("MuiButtonBase",["root","disabled","focusVisible"]),Au=Pu,Iu=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Du=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=Qo({root:["root",t&&"disabled",n&&"focusVisible"]},Ou,o);return n&&r&&(s.root+=` ${r}`),s},Mu=Wt("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Au.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ju=d.forwardRef(function(t,n){const r=Ar({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:a,component:c="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:g="a",onBlur:m,onClick:b,onContextMenu:w,onDragLeave:v,onFocus:y,onFocusVisible:C,onKeyDown:S,onKeyUp:E,onMouseDown:$,onMouseLeave:T,onMouseUp:R,onTouchEnd:F,onTouchMove:j,onTouchStart:z,tabIndex:A=0,TouchRippleProps:N,touchRippleRef:L,type:D}=r,V=Fn(r,Iu),U=d.useRef(null),Y=d.useRef(null),J=Pi(Y,L),{isFocusVisibleRef:pe,onFocus:re,onBlur:ve,ref:he}=uu(),[oe,ue]=d.useState(!1);l&&oe&&ue(!1),d.useImperativeHandle(o,()=>({focusVisible:()=>{ue(!0),U.current.focus()}}),[]);const[se,Ce]=d.useState(!1);d.useEffect(()=>{Ce(!0)},[]);const _e=se&&!u&&!l;d.useEffect(()=>{oe&&p&&!u&&se&&Y.current.pulsate()},[u,p,oe,se]);function xe(K,Ve,Dt=f){return qn(st=>(Ve&&Ve(st),!Dt&&Y.current&&Y.current[K](st),!0))}const it=xe("start",$),dt=xe("stop",w),_t=xe("stop",v),Ne=xe("stop",R),ft=xe("stop",K=>{oe&&K.preventDefault(),T&&T(K)}),Oe=xe("start",z),Ye=xe("stop",F),Ut=xe("stop",j),Kt=xe("stop",K=>{ve(K),pe.current===!1&&ue(!1),m&&m(K)},!1),Gt=qn(K=>{U.current||(U.current=K.currentTarget),re(K),pe.current===!0&&(ue(!0),C&&C(K)),y&&y(K)}),x=()=>{const K=U.current;return c&&c!=="button"&&!(K.tagName==="A"&&K.href)},k=d.useRef(!1),I=qn(K=>{p&&!k.current&&oe&&Y.current&&K.key===" "&&(k.current=!0,Y.current.stop(K,()=>{Y.current.start(K)})),K.target===K.currentTarget&&x()&&K.key===" "&&K.preventDefault(),S&&S(K),K.target===K.currentTarget&&x()&&K.key==="Enter"&&!l&&(K.preventDefault(),b&&b(K))}),O=qn(K=>{p&&K.key===" "&&Y.current&&oe&&!K.defaultPrevented&&(k.current=!1,Y.current.stop(K,()=>{Y.current.pulsate(K)})),E&&E(K),b&&K.target===K.currentTarget&&x()&&K.key===" "&&!K.defaultPrevented&&b(K)});let P=c;P==="button"&&(V.href||V.to)&&(P=g);const M={};P==="button"?(M.type=D===void 0?"button":D,M.disabled=l):(!V.href&&!V.to&&(M.role="button"),l&&(M["aria-disabled"]=l));const W=Pi(n,he,U),X=Z({},r,{centerRipple:i,component:c,disabled:l,disableRipple:u,disableTouchRipple:f,focusRipple:p,tabIndex:A,focusVisible:oe}),ae=Du(X);return _.jsxs(Mu,Z({as:P,className:We(ae.root,a),ownerState:X,onBlur:Kt,onClick:b,onContextMenu:dt,onFocus:Gt,onKeyDown:I,onKeyUp:O,onMouseDown:it,onMouseLeave:ft,onMouseUp:Ne,onDragLeave:_t,onTouchEnd:Ye,onTouchMove:Ut,onTouchStart:Oe,ref:W,tabIndex:l?-1:A,type:D},M,V,{children:[s,_e?_.jsx(Ru,Z({ref:J,center:i},N)):null]}))}),xa=ju;function Lu(e){return Zo("MuiIconButton",e)}const Fu=Pr("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),zu=Fu,Nu=["edge","children","className","color","disabled","disableFocusRipple","size"],Vu=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${Te(r)}`,o&&`edge${Te(o)}`,`size${Te(i)}`]};return Qo(s,Lu,t)},Bu=Wt(xa,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Te(n.color)}`],n.edge&&t[`edge${Te(n.edge)}`],t[`size${Te(n.size)}`]]}})(({theme:e,ownerState:t})=>Z({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:en(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return Z({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&Z({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":Z({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:en(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${zu.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Wu=d.forwardRef(function(t,n){const r=Ar({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:a="default",disabled:c=!1,disableFocusRipple:l=!1,size:u="medium"}=r,f=Fn(r,Nu),p=Z({},r,{edge:o,color:a,disabled:c,disableFocusRipple:l,size:u}),g=Vu(p);return _.jsx(Bu,Z({className:We(g.root,s),centerRipple:!0,focusRipple:!l,disabled:c,ref:n,ownerState:p},f,{children:i}))}),wa=Wu,Hu=["top","right","bottom","left"],Ot=Math.min,He=Math.max,ur=Math.round,Xn=Math.floor,Pt=e=>({x:e,y:e}),Uu={left:"right",right:"left",bottom:"top",top:"bottom"},Ku={start:"end",end:"start"};function wo(e,t,n){return He(e,Ot(t,n))}function vt(e,t){return typeof e=="function"?e(t):e}function xt(e){return e.split("-")[0]}function un(e){return e.split("-")[1]}function oi(e){return e==="x"?"y":"x"}function ii(e){return e==="y"?"height":"width"}function dn(e){return["top","bottom"].includes(xt(e))?"y":"x"}function si(e){return oi(dn(e))}function Gu(e,t,n){n===void 0&&(n=!1);const r=un(e),o=si(e),i=ii(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=dr(s)),[s,dr(s)]}function Yu(e){const t=dr(e);return[Eo(e),t,Eo(t)]}function Eo(e){return e.replace(/start|end/g,t=>Ku[t])}function qu(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function Xu(e,t,n,r){const o=un(e);let i=qu(xt(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Eo)))),i}function dr(e){return e.replace(/left|right|bottom|top/g,t=>Uu[t])}function Zu(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ea(e){return typeof e!="number"?Zu(e):{top:e,right:e,bottom:e,left:e}}function fr(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Fi(e,t,n){let{reference:r,floating:o}=e;const i=dn(t),s=si(t),a=ii(s),c=xt(t),l=i==="y",u=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/2;let g;switch(c){case"top":g={x:u,y:r.y-o.height};break;case"bottom":g={x:u,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:f};break;case"left":g={x:r.x-o.width,y:f};break;default:g={x:r.x,y:r.y}}switch(un(t)){case"start":g[s]-=p*(n&&l?-1:1);break;case"end":g[s]+=p*(n&&l?-1:1);break}return g}const Qu=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=Fi(l,r,c),p=r,g={},m=0;for(let b=0;b({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=vt(e,t)||{};if(l==null)return{};const f=Ea(u),p={x:n,y:r},g=si(o),m=ii(g),b=await s.getDimensions(l),w=g==="y",v=w?"top":"left",y=w?"bottom":"right",C=w?"clientHeight":"clientWidth",S=i.reference[m]+i.reference[g]-p[g]-i.floating[m],E=p[g]-i.reference[g],$=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let T=$?$[C]:0;(!T||!await(s.isElement==null?void 0:s.isElement($)))&&(T=a.floating[C]||i.floating[m]);const R=S/2-E/2,F=T/2-b[m]/2-1,j=Ot(f[v],F),z=Ot(f[y],F),A=j,N=T-b[m]-z,L=T/2-b[m]/2+R,D=wo(A,L,N),V=!c.arrow&&un(o)!=null&&L!=D&&i.reference[m]/2-(LA<=0)){var F,j;const A=(((F=i.flip)==null?void 0:F.index)||0)+1,N=E[A];if(N)return{data:{index:A,overflows:R},reset:{placement:N}};let L=(j=R.filter(D=>D.overflows[0]<=0).sort((D,V)=>D.overflows[1]-V.overflows[1])[0])==null?void 0:j.placement;if(!L)switch(g){case"bestFit":{var z;const D=(z=R.map(V=>[V.placement,V.overflows.filter(U=>U>0).reduce((U,Y)=>U+Y,0)]).sort((V,U)=>V[1]-U[1])[0])==null?void 0:z[0];D&&(L=D);break}case"initialPlacement":L=a;break}if(o!==L)return{reset:{placement:L}}}return{}}}};function Ni(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Vi(e){return Hu.some(t=>e[t]>=0)}const ed=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=vt(e,t);switch(r){case"referenceHidden":{const i=await Pn(t,{...o,elementContext:"reference"}),s=Ni(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Vi(s)}}}case"escaped":{const i=await Pn(t,{...o,altBoundary:!0}),s=Ni(i,n.floating);return{data:{escapedOffsets:s,escaped:Vi(s)}}}default:return{}}}}};async function td(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=xt(n),a=un(n),c=dn(n)==="y",l=["left","top"].includes(s)?-1:1,u=i&&c?-1:1,f=vt(t,e);let{mainAxis:p,crossAxis:g,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&typeof m=="number"&&(g=a==="end"?m*-1:m),c?{x:g*u,y:p*l}:{x:p*l,y:g*u}}const nd=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,c=await td(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},rd=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:w=>{let{x:v,y}=w;return{x:v,y}}},...c}=vt(e,t),l={x:n,y:r},u=await Pn(t,c),f=dn(xt(o)),p=oi(f);let g=l[p],m=l[f];if(i){const w=p==="y"?"top":"left",v=p==="y"?"bottom":"right",y=g+u[w],C=g-u[v];g=wo(y,g,C)}if(s){const w=f==="y"?"top":"left",v=f==="y"?"bottom":"right",y=m+u[w],C=m-u[v];m=wo(y,m,C)}const b=a.fn({...t,[p]:g,[f]:m});return{...b,data:{x:b.x-n,y:b.y-r}}}}},od=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=vt(e,t),u={x:n,y:r},f=dn(o),p=oi(f);let g=u[p],m=u[f];const b=vt(a,t),w=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(c){const C=p==="y"?"height":"width",S=i.reference[p]-i.floating[C]+w.mainAxis,E=i.reference[p]+i.reference[C]-w.mainAxis;gE&&(g=E)}if(l){var v,y;const C=p==="y"?"width":"height",S=["top","left"].includes(xt(o)),E=i.reference[f]-i.floating[C]+(S&&((v=s.offset)==null?void 0:v[f])||0)+(S?0:w.crossAxis),$=i.reference[f]+i.reference[C]+(S?0:((y=s.offset)==null?void 0:y[f])||0)-(S?w.crossAxis:0);m$&&(m=$)}return{[p]:g,[f]:m}}}},id=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:s=()=>{},...a}=vt(e,t),c=await Pn(t,a),l=xt(n),u=un(n),f=dn(n)==="y",{width:p,height:g}=r.floating;let m,b;l==="top"||l==="bottom"?(m=l,b=u===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(b=l,m=u==="end"?"top":"bottom");const w=g-c[m],v=p-c[b],y=!t.middlewareData.shift;let C=w,S=v;if(f){const $=p-c.left-c.right;S=u||y?Ot(v,$):$}else{const $=g-c.top-c.bottom;C=u||y?Ot(w,$):$}if(y&&!u){const $=He(c.left,0),T=He(c.right,0),R=He(c.top,0),F=He(c.bottom,0);f?S=p-2*($!==0||T!==0?$+T:He(c.left,c.right)):C=g-2*(R!==0||F!==0?R+F:He(c.top,c.bottom))}await s({...t,availableWidth:S,availableHeight:C});const E=await o.getDimensions(i.floating);return p!==E.width||g!==E.height?{reset:{rects:!0}}:{}}}};function At(e){return $a(e)?(e.nodeName||"").toLowerCase():"#document"}function Ge(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function $t(e){var t;return(t=($a(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function $a(e){return e instanceof Node||e instanceof Ge(e).Node}function wt(e){return e instanceof Element||e instanceof Ge(e).Element}function lt(e){return e instanceof HTMLElement||e instanceof Ge(e).HTMLElement}function Bi(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ge(e).ShadowRoot}function Nn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=et(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function sd(e){return["table","td","th"].includes(At(e))}function ai(e){const t=ci(),n=et(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function ad(e){let t=an(e);for(;lt(t)&&!Mr(t);){if(ai(t))return t;t=an(t)}return null}function ci(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Mr(e){return["html","body","#document"].includes(At(e))}function et(e){return Ge(e).getComputedStyle(e)}function jr(e){return wt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function an(e){if(At(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Bi(e)&&e.host||$t(e);return Bi(t)?t.host:t}function Ca(e){const t=an(e);return Mr(t)?e.ownerDocument?e.ownerDocument.body:e.body:lt(t)&&Nn(t)?t:Ca(t)}function An(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ca(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Ge(o);return i?t.concat(s,s.visualViewport||[],Nn(o)?o:[],s.frameElement&&n?An(s.frameElement):[]):t.concat(o,An(o,[],n))}function _a(e){const t=et(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=lt(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=ur(n)!==i||ur(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function li(e){return wt(e)?e:e.contextElement}function rn(e){const t=li(e);if(!lt(t))return Pt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=_a(t);let s=(i?ur(n.width):n.width)/r,a=(i?ur(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const cd=Pt(0);function Sa(e){const t=Ge(e);return!ci()||!t.visualViewport?cd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ld(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ge(e)?!1:t}function Vt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=li(e);let s=Pt(1);t&&(r?wt(r)&&(s=rn(r)):s=rn(e));const a=ld(i,n,r)?Sa(i):Pt(0);let c=(o.left+a.x)/s.x,l=(o.top+a.y)/s.y,u=o.width/s.x,f=o.height/s.y;if(i){const p=Ge(i),g=r&&wt(r)?Ge(r):r;let m=p.frameElement;for(;m&&r&&g!==p;){const b=rn(m),w=m.getBoundingClientRect(),v=et(m),y=w.left+(m.clientLeft+parseFloat(v.paddingLeft))*b.x,C=w.top+(m.clientTop+parseFloat(v.paddingTop))*b.y;c*=b.x,l*=b.y,u*=b.x,f*=b.y,c+=y,l+=C,m=Ge(m).frameElement}}return fr({width:u,height:f,x:c,y:l})}function ud(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=lt(n),i=$t(n);if(n===i)return t;let s={scrollLeft:0,scrollTop:0},a=Pt(1);const c=Pt(0);if((o||!o&&r!=="fixed")&&((At(n)!=="body"||Nn(i))&&(s=jr(n)),lt(n))){const l=Vt(n);a=rn(n),c.x=l.x+n.clientLeft,c.y=l.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-s.scrollLeft*a.x+c.x,y:t.y*a.y-s.scrollTop*a.y+c.y}}function dd(e){return Array.from(e.getClientRects())}function Ta(e){return Vt($t(e)).left+jr(e).scrollLeft}function fd(e){const t=$t(e),n=jr(e),r=e.ownerDocument.body,o=He(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=He(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Ta(e);const a=-n.scrollTop;return et(r).direction==="rtl"&&(s+=He(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function pd(e,t){const n=Ge(e),r=$t(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;const l=ci();(!l||l&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:a,y:c}}function hd(e,t){const n=Vt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=lt(e)?rn(e):Pt(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=o*i.x,l=r*i.y;return{width:s,height:a,x:c,y:l}}function Wi(e,t,n){let r;if(t==="viewport")r=pd(e,n);else if(t==="document")r=fd($t(e));else if(wt(t))r=hd(t,n);else{const o=Sa(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return fr(r)}function ka(e,t){const n=an(e);return n===t||!wt(n)||Mr(n)?!1:et(n).position==="fixed"||ka(n,t)}function gd(e,t){const n=t.get(e);if(n)return n;let r=An(e,[],!1).filter(a=>wt(a)&&At(a)!=="body"),o=null;const i=et(e).position==="fixed";let s=i?an(e):e;for(;wt(s)&&!Mr(s);){const a=et(s),c=ai(s);!c&&a.position==="fixed"&&(o=null),(i?!c&&!o:!c&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Nn(s)&&!c&&ka(e,s))?r=r.filter(u=>u!==s):o=a,s=an(s)}return t.set(e,r),r}function md(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?gd(t,this._c):[].concat(n),r],a=s[0],c=s.reduce((l,u)=>{const f=Wi(t,u,o);return l.top=He(f.top,l.top),l.right=Ot(f.right,l.right),l.bottom=Ot(f.bottom,l.bottom),l.left=He(f.left,l.left),l},Wi(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function bd(e){return _a(e)}function yd(e,t,n){const r=lt(t),o=$t(t),i=n==="fixed",s=Vt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=Pt(0);if(r||!r&&!i)if((At(t)!=="body"||Nn(o))&&(a=jr(t)),r){const l=Vt(t,!0,i,t);c.x=l.x+t.clientLeft,c.y=l.y+t.clientTop}else o&&(c.x=Ta(o));return{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function Hi(e,t){return!lt(e)||et(e).position==="fixed"?null:t?t(e):e.offsetParent}function Ra(e,t){const n=Ge(e);if(!lt(e))return n;let r=Hi(e,t);for(;r&&sd(r)&&et(r).position==="static";)r=Hi(r,t);return r&&(At(r)==="html"||At(r)==="body"&&et(r).position==="static"&&!ai(r))?n:r||ad(e)||n}const vd=async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||Ra,i=this.getDimensions;return{reference:yd(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}};function xd(e){return et(e).direction==="rtl"}const wd={convertOffsetParentRelativeRectToViewportRelativeRect:ud,getDocumentElement:$t,getClippingRect:md,getOffsetParent:Ra,getElementRects:vd,getClientRects:dd,getDimensions:bd,getScale:rn,isElement:wt,isRTL:xd};function Ed(e,t){let n=null,r;const o=$t(e);function i(){clearTimeout(r),n&&n.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const{left:l,top:u,width:f,height:p}=e.getBoundingClientRect();if(a||t(),!f||!p)return;const g=Xn(u),m=Xn(o.clientWidth-(l+f)),b=Xn(o.clientHeight-(u+p)),w=Xn(l),y={rootMargin:-g+"px "+-m+"px "+-b+"px "+-w+"px",threshold:He(0,Ot(1,c))||1};let C=!0;function S(E){const $=E[0].intersectionRatio;if($!==c){if(!C)return s();$?s(!1,$):r=setTimeout(()=>{s(!1,1e-7)},100)}C=!1}try{n=new IntersectionObserver(S,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,y)}n.observe(e)}return s(!0),i}function $d(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=li(e),u=o||i?[...l?An(l):[],...An(t)]:[];u.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const f=l&&a?Ed(l,n):null;let p=-1,g=null;s&&(g=new ResizeObserver(v=>{let[y]=v;y&&y.target===l&&g&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{g&&g.observe(t)})),n()}),l&&!c&&g.observe(l),g.observe(t));let m,b=c?Vt(e):null;c&&w();function w(){const v=Vt(e);b&&(v.x!==b.x||v.y!==b.y||v.width!==b.width||v.height!==b.height)&&n(),b=v,m=requestAnimationFrame(w)}return n(),()=>{u.forEach(v=>{o&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),f&&f(),g&&g.disconnect(),g=null,c&&cancelAnimationFrame(m)}}const Cd=(e,t,n)=>{const r=new Map,o={platform:wd,...n},i={...o.platform,_c:r};return Qu(e,t,{...o,platform:i})},_d=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?zi({element:r.current,padding:o}).fn(n):{}:r?zi({element:r,padding:o}).fn(n):{}}}};var sr=typeof document<"u"?d.useLayoutEffect:d.useEffect;function pr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!pr(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!pr(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Oa(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ui(e,t){const n=Oa(e);return Math.round(t*n)/n}function Ki(e){const t=d.useRef(e);return sr(()=>{t.current=e}),t}function Sd(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[u,f]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,g]=d.useState(r);pr(p,r)||g(r);const[m,b]=d.useState(null),[w,v]=d.useState(null),y=d.useCallback(V=>{V!=$.current&&($.current=V,b(V))},[b]),C=d.useCallback(V=>{V!==T.current&&(T.current=V,v(V))},[v]),S=i||m,E=s||w,$=d.useRef(null),T=d.useRef(null),R=d.useRef(u),F=Ki(c),j=Ki(o),z=d.useCallback(()=>{if(!$.current||!T.current)return;const V={placement:t,strategy:n,middleware:p};j.current&&(V.platform=j.current),Cd($.current,T.current,V).then(U=>{const Y={...U,isPositioned:!0};A.current&&!pr(R.current,Y)&&(R.current=Y,Jo.flushSync(()=>{f(Y)}))})},[p,t,n,j]);sr(()=>{l===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,f(V=>({...V,isPositioned:!1})))},[l]);const A=d.useRef(!1);sr(()=>(A.current=!0,()=>{A.current=!1}),[]),sr(()=>{if(S&&($.current=S),E&&(T.current=E),S&&E){if(F.current)return F.current(S,E,z);z()}},[S,E,z,F]);const N=d.useMemo(()=>({reference:$,floating:T,setReference:y,setFloating:C}),[y,C]),L=d.useMemo(()=>({reference:S,floating:E}),[S,E]),D=d.useMemo(()=>{const V={position:n,left:0,top:0};if(!L.floating)return V;const U=Ui(L.floating,u.x),Y=Ui(L.floating,u.y);return a?{...V,transform:"translate("+U+"px, "+Y+"px)",...Oa(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:U,top:Y}},[n,a,L.floating,u.x,u.y]);return d.useMemo(()=>({...u,update:z,refs:N,elements:L,floatingStyles:D}),[u,z,N,L,D])}function Td(e){return Zo("MuiButton",e)}const kd=Pr("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Zn=kd,Rd=d.createContext({}),Od=Rd,Pd=d.createContext(void 0),Ad=Pd,Id=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Dd=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:s}=e,a={root:["root",i,`${i}${Te(t)}`,`size${Te(o)}`,`${i}Size${Te(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Te(o)}`],endIcon:["endIcon",`iconSize${Te(o)}`]},c=Qo(a,Td,s);return Z({},s,c)},Pa=e=>Z({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),Md=Wt(xa,{shouldForwardProp:e=>Ml(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Te(n.color)}`],t[`size${Te(n.size)}`],t[`${n.variant}Size${Te(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return Z({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":Z({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:en(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:en(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:en(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Z({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Zn.focusVisible}`]:Z({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Zn.disabled}`]:Z({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${en(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Zn.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Zn.disabled}`]:{boxShadow:"none"}}),jd=Wt("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Te(n.size)}`]]}})(({ownerState:e})=>Z({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Pa(e))),Ld=Wt("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Te(n.size)}`]]}})(({ownerState:e})=>Z({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Pa(e))),Fd=d.forwardRef(function(t,n){const r=d.useContext(Od),o=d.useContext(Ad),i=jl(r,t),s=Ar({props:i,name:"MuiButton"}),{children:a,color:c="primary",component:l="button",className:u,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:g=!1,endIcon:m,focusVisibleClassName:b,fullWidth:w=!1,size:v="medium",startIcon:y,type:C,variant:S="text"}=s,E=Fn(s,Id),$=Z({},s,{color:c,component:l,disabled:f,disableElevation:p,disableFocusRipple:g,fullWidth:w,size:v,type:C,variant:S}),T=Dd($),R=y&&_.jsx(jd,{className:T.startIcon,ownerState:$,children:y}),F=m&&_.jsx(Ld,{className:T.endIcon,ownerState:$,children:m}),j=o||"";return _.jsxs(Md,Z({ownerState:$,className:We(r.className,T.root,u,j),component:l,disabled:f,focusRipple:!g,focusVisibleClassName:We(T.focusVisible,b),ref:n,type:C},E,{classes:T,children:[R,a,F]}))}),ui=Fd;function zd(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Aa(...e){return t=>e.forEach(n=>zd(n,t))}function fn(...e){return d.useCallback(Aa(...e),e)}const Ia=d.forwardRef((e,t)=>{const{children:n,...r}=e,o=d.Children.toArray(n),i=o.find(Nd);if(i){const s=i.props.children,a=o.map(c=>c===i?d.Children.count(s)>1?d.Children.only(null):d.isValidElement(s)?s.props.children:null:c);return d.createElement($o,Z({},r,{ref:t}),d.isValidElement(s)?d.cloneElement(s,void 0,a):null)}return d.createElement($o,Z({},r,{ref:t}),n)});Ia.displayName="Slot";const $o=d.forwardRef((e,t)=>{const{children:n,...r}=e;return d.isValidElement(n)?d.cloneElement(n,{...Vd(r,n.props),ref:t?Aa(t,n.ref):n.ref}):d.Children.count(n)>1?d.Children.only(null):null});$o.displayName="SlotClone";const Da=({children:e})=>d.createElement(d.Fragment,null,e);function Nd(e){return d.isValidElement(e)&&e.type===Da}function Vd(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{i(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const Bd=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ht=Bd.reduce((e,t)=>{const n=d.forwardRef((r,o)=>{const{asChild:i,...s}=r,a=i?Ia:t;return d.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),d.createElement(a,Z({},s,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Wd(e,t){e&&Jo.flushSync(()=>e.dispatchEvent(t))}const Hd=d.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?ga.createPortal(d.createElement(Ht.div,Z({},o,{ref:t})),r):null}),Ud=Hd;var Gi=Object.prototype.hasOwnProperty;function In(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&In(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(Gi.call(e,n)&&++r&&!Gi.call(t,n)||!(n in t)||!In(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function Vn(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r0;)s[a]=arguments[a+4];e.call(this,s),e.captureStackTrace&&e.captureStackTrace(this,t),this.rule=n,this.value=r,this.cause=o,this.target=i}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Error),ut=function(t,n){t===void 0&&(t=[]),n===void 0&&(n=[]),this.chain=t,this.nextRuleModifiers=n};ut.prototype._applyRule=function(t,n){var r=this;return function(){for(var o=[],i=arguments.length;i--;)o[i]=arguments[i];return r.chain.push(new Lr(n,t.apply(r,o),o,r.nextRuleModifiers)),r.nextRuleModifiers=[],r}};ut.prototype._applyModifier=function(t,n){return this.nextRuleModifiers.push(new Kd(n,t.simple,t.async)),this};ut.prototype._clone=function(){return new ut(this.chain.slice(),this.nextRuleModifiers.slice())};ut.prototype.test=function(t){return this.chain.every(function(n){return n._test(t)})};ut.prototype.testAll=function(t){var n=[];return this.chain.forEach(function(r){try{r._check(t)}catch(o){n.push(new di(r,t,o))}}),n};ut.prototype.check=function(t){this.chain.forEach(function(n){try{n._check(t)}catch(r){throw new di(n,t,r)}})};ut.prototype.testAsync=function(t){var n=this;return new Promise(function(r,o){La(t,n.chain.slice(),r,o)})};function La(e,t,n,r){if(t.length){var o=t.shift();o._testAsync(e).then(function(){La(e,t,n,r)},function(i){r(new di(o,e,i))})}else n(e)}var Yi=function(e,t){return t&&typeof e=="string"&&e.trim().length===0?!0:e==null};function Gd(e,t){return t===void 0&&(t=!1),{simple:function(n){return Yi(n,t)||e.check(n)===void 0},async:function(n){return Yi(n,t)||e.testAsync(n)}}}function Fe(){return typeof Proxy<"u"?Fa(new ut):Co(new ut)}var Dn={};Fe.extend=function(e){Object.assign(Dn,e)};Fe.clearCustomRules=function(){Dn={}};function Fa(e){return new Proxy(e,{get:function(n,r){if(r in n)return n[r];var o=Fa(e._clone());if(r in hr)return o._applyModifier(hr[r],r);if(r in Dn)return o._applyRule(Dn[r],r);if(r in _o)return o._applyRule(_o[r],r)}})}function Co(e){var t=function(o,i){return Object.keys(o).forEach(function(s){i[s]=function(){for(var a=[],c=arguments.length;c--;)a[c]=arguments[c];var l=Co(i._clone()),u=l._applyRule(o[s],s).apply(void 0,a);return u}}),i},n=t(_o,e),r=t(Dn,n);return Object.keys(hr).forEach(function(o){Object.defineProperty(r,o,{get:function(){var i=Co(r._clone());return i._applyModifier(hr[o],o)}})}),r}var hr={not:{simple:function(e){return function(t){return!e(t)}},async:function(e){return function(t){return Promise.resolve(e(t)).then(function(n){return!n}).catch(function(){return!0})}}},some:{simple:function(e){return function(t){return Qn(t).some(function(n){try{return e(n)}catch{return!1}})}},async:function(e){return function(t){return Promise.all(Qn(t).map(function(n){try{return e(n).catch(function(){return!1})}catch{return!1}})).then(function(n){return n.some(Boolean)})}}},every:{simple:function(e){return function(t){return t!==!1&&Qn(t).every(e)}},async:function(e){return function(t){return Promise.all(Qn(t).map(e)).then(function(n){return n.every(Boolean)})}}},strict:{simple:function(e,t){return function(n){return qi(t)&&n&&typeof n=="object"?Object.keys(t.args[0]).length===Object.keys(n).length&&e(n):e(n)}},async:function(e,t){return function(n){return Promise.resolve(e(n)).then(function(r){return qi(t)&&n&&typeof n=="object"?Object.keys(t.args[0]).length===Object.keys(n).length&&r:r}).catch(function(){return!1})}}}};function qi(e){return e&&e.name==="schema"&&e.args.length>0&&typeof e.args[0]=="object"}function Qn(e){return typeof e=="string"?e.split(""):e}var _o={equal:function(e){return function(t){return t==e}},exact:function(e){return function(t){return t===e}},number:function(e){return e===void 0&&(e=!0),function(t){return typeof t=="number"&&(e||isFinite(t))}},integer:function(){return function(e){var t=Number.isInteger||Yd;return t(e)}},numeric:function(){return function(e){return!isNaN(parseFloat(e))&&isFinite(e)}},string:function(){return Xt("string")},boolean:function(){return Xt("boolean")},undefined:function(){return Xt("undefined")},null:function(){return Xt("null")},array:function(){return Xt("array")},object:function(){return Xt("object")},instanceOf:function(e){return function(t){return t instanceof e}},pattern:function(e){return function(t){return e.test(t)}},lowercase:function(){return function(e){return typeof e=="boolean"||e===e.toLowerCase()&&e.trim()!==""}},uppercase:function(){return function(e){return e===e.toUpperCase()&&e.trim()!==""}},vowel:function(){return function(e){return/^[aeiou]+$/i.test(e)}},consonant:function(){return function(e){return/^(?=[^aeiou])([a-z]+)$/i.test(e)}},first:function(e){return function(t){return t[0]==e}},last:function(e){return function(t){return t[t.length-1]==e}},empty:function(){return function(e){return e.length===0}},length:function(e,t){return function(n){return n.length>=e&&n.length<=(t||e)}},minLength:function(e){return function(t){return t.length>=e}},maxLength:function(e){return function(t){return t.length<=e}},negative:function(){return function(e){return e<0}},positive:function(){return function(e){return e>=0}},between:function(e,t){return function(n){return n>=e&&n<=t}},range:function(e,t){return function(n){return n>=e&&n<=t}},lessThan:function(e){return function(t){return te}},greaterThanOrEqual:function(e){return function(t){return t>=e}},even:function(){return function(e){return e%2===0}},odd:function(){return function(e){return e%2!==0}},includes:function(e){return function(t){return~t.indexOf(e)}},schema:function(e){return qd(e)},passesAnyOf:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return function(n){return e.some(function(r){return r.test(n)})}},optional:Gd};function Xt(e){return function(t){return Array.isArray(t)&&e==="array"||t===null&&e==="null"||typeof t===e}}function Yd(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function qd(e){return{simple:function(t){var n=[];if(Object.keys(e).forEach(function(r){var o=e[r];try{o.check((t||{})[r])}catch(i){i.target=r,n.push(i)}}),n.length>0)throw n;return!0},async:function(t){var n=[],r=Object.keys(e).map(function(o){var i=e[o];return i.testAsync((t||{})[o]).catch(function(s){s.target=o,n.push(s)})});return Promise.all(r).then(function(){if(n.length>0)throw n;return!0})}}}var te="colors",Pe="sizes",H="space",Xd={gap:H,gridGap:H,columnGap:H,gridColumnGap:H,rowGap:H,gridRowGap:H,inset:H,insetBlock:H,insetBlockEnd:H,insetBlockStart:H,insetInline:H,insetInlineEnd:H,insetInlineStart:H,margin:H,marginTop:H,marginRight:H,marginBottom:H,marginLeft:H,marginBlock:H,marginBlockEnd:H,marginBlockStart:H,marginInline:H,marginInlineEnd:H,marginInlineStart:H,padding:H,paddingTop:H,paddingRight:H,paddingBottom:H,paddingLeft:H,paddingBlock:H,paddingBlockEnd:H,paddingBlockStart:H,paddingInline:H,paddingInlineEnd:H,paddingInlineStart:H,top:H,right:H,bottom:H,left:H,scrollMargin:H,scrollMarginTop:H,scrollMarginRight:H,scrollMarginBottom:H,scrollMarginLeft:H,scrollMarginX:H,scrollMarginY:H,scrollMarginBlock:H,scrollMarginBlockEnd:H,scrollMarginBlockStart:H,scrollMarginInline:H,scrollMarginInlineEnd:H,scrollMarginInlineStart:H,scrollPadding:H,scrollPaddingTop:H,scrollPaddingRight:H,scrollPaddingBottom:H,scrollPaddingLeft:H,scrollPaddingX:H,scrollPaddingY:H,scrollPaddingBlock:H,scrollPaddingBlockEnd:H,scrollPaddingBlockStart:H,scrollPaddingInline:H,scrollPaddingInlineEnd:H,scrollPaddingInlineStart:H,fontSize:"fontSizes",background:te,backgroundColor:te,backgroundImage:te,borderImage:te,border:te,borderBlock:te,borderBlockEnd:te,borderBlockStart:te,borderBottom:te,borderBottomColor:te,borderColor:te,borderInline:te,borderInlineEnd:te,borderInlineStart:te,borderLeft:te,borderLeftColor:te,borderRight:te,borderRightColor:te,borderTop:te,borderTopColor:te,caretColor:te,color:te,columnRuleColor:te,fill:te,outline:te,outlineColor:te,stroke:te,textDecorationColor:te,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:Pe,minBlockSize:Pe,maxBlockSize:Pe,inlineSize:Pe,minInlineSize:Pe,maxInlineSize:Pe,width:Pe,minWidth:Pe,maxWidth:Pe,height:Pe,minHeight:Pe,maxHeight:Pe,flexBasis:Pe,gridTemplateColumns:Pe,gridTemplateRows:Pe,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},Zd=(e,t)=>typeof t=="function"?{"()":Function.prototype.toString.call(t)}:t,pn=()=>{const e=Object.create(null);return(t,n,...r)=>{const o=(i=>JSON.stringify(i,Zd))(t);return o in e?e[o]:e[o]=n(t,...r)}},Ft=Symbol.for("sxs.internal"),fi=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),Xi=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:Qd}=Object.prototype,So=e=>e.includes("-")?e:e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()),Jd=/\s+(?![^()]*\))/,Zt=e=>t=>e(...typeof t=="string"?String(t).split(Jd):[t]),Zi={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:Zt((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e})),marginInline:Zt((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e})),maxSize:Zt((e,t)=>({maxBlockSize:e,maxInlineSize:t||e})),minSize:Zt((e,t)=>({minBlockSize:e,minInlineSize:t||e})),paddingBlock:Zt((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e})),paddingInline:Zt((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e}))},Gr=/([\d.]+)([^]*)/,ef=(e,t)=>e.length?e.reduce((n,r)=>(n.push(...t.map(o=>o.includes("&")?o.replace(/&/g,/[ +>|~]/.test(r)&&/&.*&/.test(o)?`:is(${r})`:r):r+" "+o)),n),[]):t,tf=(e,t)=>e in nf&&typeof t=="string"?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(n,r,o,i)=>r+(o==="stretch"?`-moz-available${i};${So(e)}:${r}-webkit-fill-available`:`-moz-fit-content${i};${So(e)}:${r}fit-content`)+i):String(t),nf={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},Et=e=>e?e+"-":"",za=(e,t,n)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(r,o,i,s,a)=>s=="$"==!!i?r:(o||s=="--"?"calc(":"")+"var(--"+(s==="$"?Et(t)+(a.includes("$")?"":Et(n))+a.replace(/\$/g,"-"):a)+")"+(o||s=="--"?"*"+(o||"")+(i||"1")+")":"")),rf=/\s*,\s*(?![^()]*\))/,of=Object.prototype.toString,tn=(e,t,n,r,o)=>{let i,s,a;const c=(l,u,f)=>{let p,g;const m=b=>{for(p in b){const y=p.charCodeAt(0)===64,C=y&&Array.isArray(b[p])?b[p]:[b[p]];for(g of C){const S=/[A-Z]/.test(v=p)?v:v.replace(/-[^]/g,$=>$[1].toUpperCase()),E=typeof g=="object"&&g&&g.toString===of&&(!r.utils[S]||!u.length);if(S in r.utils&&!E){const $=r.utils[S];if($!==s){s=$,m($(g)),s=null;continue}}else if(S in Zi){const $=Zi[S];if($!==a){a=$,m($(g)),a=null;continue}}if(y&&(w=p.slice(1)in r.media?"@media "+r.media[p.slice(1)]:p,p=w.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,($,T,R,F,j,z)=>{const A=Gr.test(T),N=.0625*(A?-1:1),[L,D]=A?[F,T]:[T,F];return"("+(R[0]==="="?"":R[0]===">"===A?"max-":"min-")+L+":"+(R[0]!=="="&&R.length===1?D.replace(Gr,(V,U,Y)=>Number(U)+N*(R===">"?1:-1)+Y):D)+(j?") and ("+(j[0]===">"?"min-":"max-")+L+":"+(j.length===1?z.replace(Gr,(V,U,Y)=>Number(U)+N*(j===">"?-1:1)+Y):z):"")+")"})),E){const $=y?f.concat(p):[...f],T=y?[...u]:ef(u,p.split(rf));i!==void 0&&o(Qi(...i)),i=void 0,c(g,T,$)}else i===void 0&&(i=[[],u,f]),p=y||p.charCodeAt(0)!==36?p:`--${Et(r.prefix)}${p.slice(1).replace(/\$/g,"-")}`,g=E?g:typeof g=="number"?g&&S in sf?String(g)+"px":String(g):za(tf(S,g??""),r.prefix,r.themeMap[S]),i[0].push(`${y?`${p} `:`${So(p)}:`}${g}`)}}var w,v};m(l),i!==void 0&&o(Qi(...i)),i=void 0};c(e,t,n)},Qi=(e,t,n)=>`${n.map(r=>`${r}{`).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,sf={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},Ji=e=>String.fromCharCode(e+(e>25?39:97)),zt=e=>(t=>{let n,r="";for(n=Math.abs(t);n>52;n=n/52|0)r=Ji(n%52)+r;return Ji(n%52)+r})(((t,n)=>{let r=n.length;for(;r;)t=33*t^n.charCodeAt(--r);return t})(5381,JSON.stringify(e))>>>0),Sn=["themed","global","styled","onevar","resonevar","allvar","inline"],af=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch{return!1}},cf=e=>{let t;const n=()=>{const{cssRules:o}=t.sheet;return[].map.call(o,(i,s)=>{const{cssText:a}=i;let c="";if(a.startsWith("--sxs"))return"";if(o[s-1]&&(c=o[s-1].cssText).startsWith("--sxs")){if(!i.cssRules.length)return"";for(const l in t.rules)if(t.rules[l].group===i)return`--sxs{--sxs:${[...t.rules[l].cache].join(" ")}}${a}`;return i.cssRules.length?`${c}${a}`:""}return a}).join("")},r=()=>{if(t){const{rules:a,sheet:c}=t;if(!c.deleteRule){for(;Object(Object(c.cssRules)[0]).type===3;)c.cssRules.splice(0,1);c.cssRules=[]}for(const l in a)delete a[l]}const o=Object(e).styleSheets||[];for(const a of o)if(af(a)){for(let c=0,l=a.cssRules;l[c];++c){const u=Object(l[c]);if(u.type!==1)continue;const f=Object(l[c+1]);if(f.type!==4)continue;++c;const{cssText:p}=u;if(!p.startsWith("--sxs"))continue;const g=p.slice(14,-3).trim().split(/\s+/),m=Sn[g[0]];m&&(t||(t={sheet:a,reset:r,rules:{},toString:n}),t.rules[m]={group:f,index:c,cache:new Set(g)})}if(t)break}if(!t){const a=(c,l)=>({type:l,cssRules:[],insertRule(u,f){this.cssRules.splice(f,0,a(u,{import:3,undefined:1}[(u.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return c==="@media{}"?`@media{${[].map.call(this.cssRules,u=>u.cssText).join("")}}`:c}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:a("","text/css"),rules:{},reset:r,toString:n}}const{sheet:i,rules:s}=t;for(let a=Sn.length-1;a>=0;--a){const c=Sn[a];if(!s[c]){const l=Sn[a+1],u=s[l]?s[l].index:i.cssRules.length;i.insertRule("@media{}",u),i.insertRule(`--sxs{--sxs:${a}}`,u),s[c]={group:i.cssRules[u+1],index:u,cache:new Set([a])}}lf(s[c])}};return r(),t},lf=e=>{const t=e.group;let n=t.cssRules.length;e.apply=r=>{try{t.insertRule(r,n),++n}catch{}}},wn=Symbol(),uf=pn(),es=(e,t)=>uf(e,()=>(...n)=>{let r={type:null,composers:new Set};for(const o of n)if(o!=null)if(o[Ft]){r.type==null&&(r.type=o[Ft].type);for(const i of o[Ft].composers)r.composers.add(i)}else o.constructor!==Object||o.$$typeof?r.type==null&&(r.type=o):r.composers.add(df(o,e));return r.type==null&&(r.type="span"),r.composers.size||r.composers.add(["PJLV",{},[],[],{},[]]),ff(e,r,t)}),df=({variants:e,compoundVariants:t,defaultVariants:n,...r},o)=>{const i=`${Et(o.prefix)}c-${zt(r)}`,s=[],a=[],c=Object.create(null),l=[];for(const p in n)c[p]=String(n[p]);if(typeof e=="object"&&e)for(const p in e){u=c,f=p,Qd.call(u,f)||(c[p]="undefined");const g=e[p];for(const m in g){const b={[p]:String(m)};String(m)==="undefined"&&l.push(p);const w=g[m],v=[b,w,!Xi(w)];s.push(v)}}var u,f;if(typeof t=="object"&&t)for(const p of t){let{css:g,...m}=p;g=typeof g=="object"&&g||{};for(const w in m)m[w]=String(m[w]);const b=[m,g,!Xi(g)];a.push(b)}return[i,r,s,a,c,l]},ff=(e,t,n)=>{const[r,o,i,s]=pf(t.composers),a=typeof t.type=="function"||t.type.$$typeof?(f=>{function p(){for(let g=0;gp.rules[g]={apply:m=>p[wn].push([g,m])}),p})(n):null,c=(a||n).rules,l=`.${r}${o.length>1?`:where(.${o.slice(1).join(".")})`:""}`,u=f=>{f=typeof f=="object"&&f||hf;const{css:p,...g}=f,m={};for(const v in i)if(delete g[v],v in f){let y=f[v];typeof y=="object"&&y?m[v]={"@initial":i[v],...y}:(y=String(y),m[v]=y!=="undefined"||s.has(v)?y:i[v])}else m[v]=i[v];const b=new Set([...o]);for(const[v,y,C,S]of t.composers){n.rules.styled.cache.has(v)||(n.rules.styled.cache.add(v),tn(y,[`.${v}`],[],e,T=>{c.styled.apply(T)}));const E=ts(C,m,e.media),$=ts(S,m,e.media,!0);for(const T of E)if(T!==void 0)for(const[R,F,j]of T){const z=`${v}-${zt(F)}-${R}`;b.add(z);const A=(j?n.rules.resonevar:n.rules.onevar).cache,N=j?c.resonevar:c.onevar;A.has(z)||(A.add(z),tn(F,[`.${z}`],[],e,L=>{N.apply(L)}))}for(const T of $)if(T!==void 0)for(const[R,F]of T){const j=`${v}-${zt(F)}-${R}`;b.add(j),n.rules.allvar.cache.has(j)||(n.rules.allvar.cache.add(j),tn(F,[`.${j}`],[],e,z=>{c.allvar.apply(z)}))}}if(typeof p=="object"&&p){const v=`${r}-i${zt(p)}-css`;b.add(v),n.rules.inline.cache.has(v)||(n.rules.inline.cache.add(v),tn(p,[`.${v}`],[],e,y=>{c.inline.apply(y)}))}for(const v of String(f.className||"").trim().split(/\s+/))v&&b.add(v);const w=g.className=[...b].join(" ");return{type:t.type,className:w,selector:l,props:g,toString:()=>w,deferredInjector:a}};return fi(u,{className:r,selector:l,[Ft]:t,toString:()=>(n.rules.styled.cache.has(r)||u(),r)})},pf=e=>{let t="";const n=[],r={},o=[];for(const[i,,,,s,a]of e){t===""&&(t=i),n.push(i),o.push(...a);for(const c in s){const l=s[c];(r[c]===void 0||l!=="undefined"||a.includes(l))&&(r[c]=l)}}return[t,n,r,new Set(o)]},ts=(e,t,n,r)=>{const o=[];e:for(let[i,s,a]of e){if(a)continue;let c,l=0,u=!1;for(c in i){const f=i[c];let p=t[c];if(p!==f){if(typeof p!="object"||!p)continue e;{let g,m,b=0;for(const w in p){if(f===String(p[w])){if(w!=="@initial"){const v=w.slice(1);(m=m||[]).push(v in n?n[v]:w.replace(/^@media ?/,"")),u=!0}l+=b,g=!0}++b}if(m&&m.length&&(s={["@media "+m.join(", ")]:s}),!g)continue e}}}(o[l]=o[l]||[]).push([r?"cv":`${c}-${i[c]}`,s,u])}return o},hf={},gf=pn(),mf=(e,t)=>gf(e,()=>(...n)=>{const r=()=>{for(let o of n){o=typeof o=="object"&&o||{};let i=zt(o);if(!t.rules.global.cache.has(i)){if(t.rules.global.cache.add(i),"@import"in o){let s=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let a of[].concat(o["@import"]))a=a.includes('"')||a.includes("'")?a:`"${a}"`,t.sheet.insertRule(`@import ${a};`,s++);delete o["@import"]}tn(o,[],[],e,s=>{t.rules.global.apply(s)})}}return""};return fi(r,{toString:r})}),bf=pn(),yf=(e,t)=>bf(e,()=>n=>{const r=`${Et(e.prefix)}k-${zt(n)}`,o=()=>{if(!t.rules.global.cache.has(r)){t.rules.global.cache.add(r);const i=[];tn(n,[],[],e,a=>i.push(a));const s=`@keyframes ${r}{${i.join("")}}`;t.rules.global.apply(s)}return r};return fi(o,{get name(){return o()},toString:o})}),vf=class{constructor(e,t,n,r){this.token=e==null?"":String(e),this.value=t==null?"":String(t),this.scale=n==null?"":String(n),this.prefix=r==null?"":String(r)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+Et(this.prefix)+Et(this.scale)+this.token}toString(){return this.computedValue}},xf=pn(),wf=(e,t)=>xf(e,()=>(n,r)=>{r=typeof n=="object"&&n||Object(r);const o=`.${n=(n=typeof n=="string"?n:"")||`${Et(e.prefix)}t-${zt(r)}`}`,i={},s=[];for(const c in r){i[c]={};for(const l in r[c]){const u=`--${Et(e.prefix)}${c}-${l}`,f=za(String(r[c][l]),e.prefix,c);i[c][l]=new vf(l,f,c,e.prefix),s.push(`${u}:${f}`)}}const a=()=>{if(s.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);const c=`${r===e.theme?":root,":""}.${n}{${s.join(";")}}`;t.rules.themed.apply(c)}return n};return{...i,get className(){return a()},selector:o,toString:a}}),Ef=pn(),ns,$f=pn(),Na=e=>{const t=(n=>{let r=!1;const o=Ef(n,i=>{r=!0;const s="prefix"in(i=typeof i=="object"&&i||{})?String(i.prefix):"",a=typeof i.media=="object"&&i.media||{},c=typeof i.root=="object"?i.root||null:globalThis.document||null,l=typeof i.theme=="object"&&i.theme||{},u={prefix:s,media:a,theme:l,themeMap:typeof i.themeMap=="object"&&i.themeMap||{...Xd},utils:typeof i.utils=="object"&&i.utils||{}},f=cf(c),p={css:es(u,f),globalCss:mf(u,f),keyframes:yf(u,f),createTheme:wf(u,f),reset(){f.reset(),p.theme.toString()},theme:{},sheet:f,config:u,prefix:s,getCssText:f.toString,toString:f.toString};return String(p.theme=p.createTheme(l)),p});return r||o.reset(),o})(e);return t.styled=(({config:n,sheet:r})=>$f(n,()=>{const o=es(n,r);return(...i)=>{const s=o(...i),a=s[Ft].type,c=h.forwardRef((l,u)=>{const f=l&&l.as||a,{props:p,deferredInjector:g}=s(l);return delete p.as,p.ref=u,g?h.createElement(h.Fragment,null,h.createElement(f,p),h.createElement(g,null)):h.createElement(f,p)});return c.className=s.className,c.displayName=`Styled.${a.displayName||a.name||a}`,c.selector=s.selector,c.toString=()=>s.selector,c[Ft]=s[Ft],c}}))(t),t},Cf=()=>ns||(ns=Na()),Iv=(...e)=>Cf().styled(...e);function _f(e,t,n){return Math.max(t,Math.min(e,n))}const ke={toVector(e,t){return e===void 0&&(e=t),Array.isArray(e)?e:[e,e]},add(e,t){return[e[0]+t[0],e[1]+t[1]]},sub(e,t){return[e[0]-t[0],e[1]-t[1]]},addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function rs(e,t,n){return t===0||Math.abs(t)===1/0?Math.pow(e,n*5):e*t*n/(t+n*e)}function os(e,t,n,r=.15){return r===0?_f(e,t,n):en?+rs(e-n,n-t,r)+n:e}function Sf(e,[t,n],[r,o]){const[[i,s],[a,c]]=e;return[os(t,i,s,r),os(n,a,c,o)]}function Tf(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kf(e){var t=Tf(e,"string");return typeof t=="symbol"?t:String(t)}function Le(e,t,n){return t=kf(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function is(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function be(e){for(var t=1;t{var n,r;return t.target===e.currentTarget||((n=e.currentTarget)===null||n===void 0||(r=n.contains)===null||r===void 0?void 0:r.call(n,t.target))})}function jf(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function Wa(e){return Fr(e)?jf(e)[0]:e}function Lf(e){return Mf(e).map(t=>t.identifier)}function Yr(e){const t=Wa(e);return Fr(e)?t.identifier:t.pointerId}function as(e){const t=Wa(e);return[t.clientX,t.clientY]}function Ff(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i}=e;Object.assign(t,{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i})}return t}function gr(e,...t){return typeof e=="function"?e(...t):e}function zf(){}function Nf(...e){return e.length===0?zf:e.length===1?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function cs(e,t){return Object.assign({},t,e||{})}const Vf=32;class Bf{constructor(t,n,r){this.ctrl=t,this.args=n,this.key=r,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(t){this.ctrl.state[this.key]=t}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:t,shared:n,ingKey:r,args:o}=this;n[r]=t._active=t.active=t._blocked=t._force=!1,t._step=[!1,!1],t.intentional=!1,t._movement=[0,0],t._distance=[0,0],t._direction=[0,0],t._delta=[0,0],t._bounds=[[-1/0,1/0],[-1/0,1/0]],t.args=o,t.axis=void 0,t.memo=void 0,t.elapsedTime=t.timeDelta=0,t.direction=[0,0],t.distance=[0,0],t.overflow=[0,0],t._movementBound=[!1,!1],t.velocity=[0,0],t.movement=[0,0],t.delta=[0,0],t.timeStamp=0}start(t){const n=this.state,r=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=t.target,n.currentTarget=t.currentTarget,n.lastOffset=r.from?gr(r.from,n):n.offset,n.offset=n.lastOffset,n.startTime=n.timeStamp=t.timeStamp)}computeValues(t){const n=this.state;n._values=t,n.values=this.config.transform(t)}computeInitial(){const t=this.state;t._initial=t._values,t.initial=t.values}compute(t){const{state:n,config:r,shared:o}=this;n.args=this.args;let i=0;if(t&&(n.event=t,r.preventDefault&&t.cancelable&&n.event.preventDefault(),n.type=t.type,o.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,o.locked=!!document.pointerLockElement,Object.assign(o,Ff(t)),o.down=o.pressed=o.buttons%2===1||o.touches>0,i=t.timeStamp-n.timeStamp,n.timeStamp=t.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const $=n._delta.map(Math.abs);ke.addTo(n._distance,$)}this.axisIntent&&this.axisIntent(t);const[s,a]=n._movement,[c,l]=r.threshold,{_step:u,values:f}=n;if(r.hasCustomTransform?(u[0]===!1&&(u[0]=Math.abs(s)>=c&&f[0]),u[1]===!1&&(u[1]=Math.abs(a)>=l&&f[1])):(u[0]===!1&&(u[0]=Math.abs(s)>=c&&Math.sign(s)*c),u[1]===!1&&(u[1]=Math.abs(a)>=l&&Math.sign(a)*l)),n.intentional=u[0]!==!1||u[1]!==!1,!n.intentional)return;const p=[0,0];if(r.hasCustomTransform){const[$,T]=f;p[0]=u[0]!==!1?$-u[0]:0,p[1]=u[1]!==!1?T-u[1]:0}else p[0]=u[0]!==!1?s-u[0]:0,p[1]=u[1]!==!1?a-u[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(p);const g=n.offset,m=n._active&&!n._blocked||n.active;m&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=o[this.ingKey]=n._active,t&&(n.first&&("bounds"in r&&(n._bounds=gr(r.bounds,n)),this.setup&&this.setup()),n.movement=p,this.computeOffset()));const[b,w]=n.offset,[[v,y],[C,S]]=n._bounds;n.overflow=[by?1:0,wS?1:0],n._movementBound[0]=n.overflow[0]?n._movementBound[0]===!1?n._movement[0]:n._movementBound[0]:!1,n._movementBound[1]=n.overflow[1]?n._movementBound[1]===!1?n._movement[1]:n._movementBound[1]:!1;const E=n._active?r.rubberband||[0,0]:[0,0];if(n.offset=Sf(n._bounds,n.offset,E),n.delta=ke.sub(n.offset,g),this.computeMovement(),m&&(!n.last||i>Vf)){n.delta=ke.sub(n.offset,g);const $=n.delta.map(Math.abs);ke.addTo(n.distance,$),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&i>0&&(n.velocity=[$[0]/i,$[1]/i],n.timeDelta=i)}}emit(){const t=this.state,n=this.shared,r=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&&!t._force&&!r.triggerAllEvents)return;const o=this.handler(be(be(be({},n),t),{},{[this.aliasKey]:t.values}));o!==void 0&&(t.memo=o)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function Wf([e,t],n){const r=Math.abs(e),o=Math.abs(t);if(r>o&&r>n)return"x";if(o>r&&o>n)return"y"}class Hf extends Bf{constructor(...t){super(...t),Le(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=ke.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=ke.sub(this.state.offset,this.state.lastOffset)}axisIntent(t){const n=this.state,r=this.config;if(!n.axis&&t){const o=typeof r.axisThreshold=="object"?r.axisThreshold[Ba(t)]:r.axisThreshold;n.axis=Wf(n._movement,o)}n._blocked=(r.lockDirection||!!r.axis)&&!n.axis||!!r.axis&&r.axis!==n.axis}restrictToAxis(t){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":t[1]=0;break;case"y":t[0]=0;break}}}const Uf=e=>e,ls=.15,Ha={enabled(e=!0){return e},eventOptions(e,t,n){return be(be({},n.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[ls,ls];case!1:return[0,0];default:return ke.toVector(e)}},from(e){if(typeof e=="function")return e;if(e!=null)return ke.toVector(e)},transform(e,t,n){const r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||Uf},threshold(e){return ke.toVector(e,0)}},Kf=0,Bn=be(be({},Ha),{},{axis(e,t,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(e=Kf){return e},bounds(e={}){if(typeof e=="function")return i=>Bn.bounds(e(i));if("current"in e)return()=>e.current;if(typeof HTMLElement=="function"&&e instanceof HTMLElement)return e;const{left:t=-1/0,right:n=1/0,top:r=-1/0,bottom:o=1/0}=e;return[[t,n],[r,o]]}}),us={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};class Gf extends Hf{constructor(...t){super(...t),Le(this,"ingKey","dragging")}reset(){super.reset();const t=this.state;t._pointerId=void 0,t._pointerActive=!1,t._keyboardActive=!1,t._preventScroll=!1,t._delayed=!1,t.swipe=[0,0],t.tap=!1,t.canceled=!1,t.cancel=this.cancel.bind(this)}setup(){const t=this.state;if(t._bounds instanceof HTMLElement){const n=t._bounds.getBoundingClientRect(),r=t.currentTarget.getBoundingClientRect(),o={left:n.left-r.left+t.offset[0],right:n.right-r.right+t.offset[0],top:n.top-r.top+t.offset[1],bottom:n.bottom-r.bottom+t.offset[1]};t._bounds=Bn.bounds(o)}}cancel(){const t=this.state;t.canceled||(t.canceled=!0,t._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(t){const n=this.config,r=this.state;if(t.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(t.buttons):n.pointerButtons!==-1&&n.pointerButtons!==t.buttons))return;const o=this.ctrl.setEventIds(t);n.pointerCapture&&t.target.setPointerCapture(t.pointerId),!(o&&o.size>1&&r._pointerActive)&&(this.start(t),this.setupPointer(t),r._pointerId=Yr(t),r._pointerActive=!0,this.computeValues(as(t)),this.computeInitial(),n.preventScrollAxis&&Ba(t)!=="mouse"?(r._active=!1,this.setupScrollPrevention(t)):n.delay>0?(this.setupDelayTrigger(t),n.triggerAllEvents&&(this.compute(t),this.emit())):this.startPointerDrag(t))}startPointerDrag(t){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(t),this.emit()}pointerMove(t){const n=this.state,r=this.config;if(!n._pointerActive)return;const o=Yr(t);if(n._pointerId!==void 0&&o!==n._pointerId)return;const i=as(t);if(document.pointerLockElement===t.target?n._delta=[t.movementX,t.movementY]:(n._delta=ke.sub(i,n._values),this.computeValues(i)),ke.addTo(n._movement,n._delta),this.compute(t),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(t);return}if(r.preventScrollAxis&&!n._preventScroll)if(n.axis)if(n.axis===r.preventScrollAxis||r.preventScrollAxis==="xy"){n._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(t);return}else return;this.emit()}pointerUp(t){this.ctrl.setEventIds(t);try{this.config.pointerCapture&&t.target.hasPointerCapture(t.pointerId)&&t.target.releasePointerCapture(t.pointerId)}catch{}const n=this.state,r=this.config;if(!n._active||!n._pointerActive)return;const o=Yr(t);if(n._pointerId!==void 0&&o!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);const[i,s]=n._distance;if(n.tap=i<=r.tapsThreshold&&s<=r.tapsThreshold,n.tap&&r.filterTaps)n._force=!0;else{const[a,c]=n._delta,[l,u]=n._movement,[f,p]=r.swipe.velocity,[g,m]=r.swipe.distance,b=r.swipe.duration;if(n.elapsedTimef&&Math.abs(l)>g&&(n.swipe[0]=Math.sign(a)),v>p&&Math.abs(u)>m&&(n.swipe[1]=Math.sign(c))}}this.emit()}pointerClick(t){!this.state.tap&&t.detail>0&&(t.preventDefault(),t.stopPropagation())}setupPointer(t){const n=this.config,r=n.device;n.pointerLock&&t.currentTarget.requestPointerLock(),n.pointerCapture||(this.eventStore.add(this.sharedConfig.window,r,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(t){this.state._preventScroll&&t.cancelable&&t.preventDefault()}setupScrollPrevention(t){this.state._preventScroll=!1,Yf(t);const n=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",n),this.eventStore.add(this.sharedConfig.window,"touch","cancel",n),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,t)}setupDelayTrigger(t){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(t)},this.config.delay)}keyDown(t){const n=us[t.key];if(n){const r=this.state,o=t.shiftKey?10:t.altKey?.1:1;this.start(t),r._delta=n(this.config.keyboardDisplacement,o),r._keyboardActive=!0,ke.addTo(r._movement,r._delta),this.compute(t),this.emit()}}keyUp(t){t.key in us&&(this.state._keyboardActive=!1,this.setActive(),this.compute(t),this.emit())}bind(t){const n=this.config.device;t(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(t(n,"change",this.pointerMove.bind(this)),t(n,"end",this.pointerUp.bind(this)),t(n,"cancel",this.pointerUp.bind(this)),t("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(t("key","down",this.keyDown.bind(this)),t("key","up",this.keyUp.bind(this))),this.config.filterTaps&&t("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function Yf(e){"persist"in e&&typeof e.persist=="function"&&e.persist()}const Wn=typeof window<"u"&&window.document&&window.document.createElement;function Ua(){return Wn&&"ontouchstart"in window}function qf(){return Ua()||Wn&&window.navigator.maxTouchPoints>1}function Xf(){return Wn&&"onpointerdown"in window}function Zf(){return Wn&&"exitPointerLock"in window.document}function Qf(){try{return"constructor"in GestureEvent}catch{return!1}}const Xe={isBrowser:Wn,gesture:Qf(),touch:Ua(),touchscreen:qf(),pointer:Xf(),pointerLock:Zf()},Jf=250,ep=180,tp=.5,np=50,rp=250,op=10,ds={mouse:0,touch:0,pen:8},ip=be(be({},Bn),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:o=!1}={}}){return this.pointerLock=r&&Xe.pointerLock,Xe.touch&&n?"touch":this.pointerLock?"mouse":Xe.pointer&&!o?"pointer":Xe.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&e?Jf:void 0,!(!Xe.touchscreen||n===!1))return e||(n!==void 0?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:r=1,keys:o=!0}={}}){return this.pointerButtons=r,this.keys=o,!this.pointerLock&&this.device==="pointer"&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:r=3,axis:o=void 0}){const i=ke.toVector(e,n?r:o?1:0);return this.filterTaps=n,this.tapsThreshold=r,i},swipe({velocity:e=tp,distance:t=np,duration:n=rp}={}){return{velocity:this.transform(ke.toVector(e)),distance:this.transform(ke.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return ep;case!1:return 0;default:return e}},axisThreshold(e){return e?be(be({},ds),e):ds},keyboardDisplacement(e=op){return e}});be(be({},Ha),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!Xe.touch&&Xe.gesture)return"gesture";if(Xe.touch&&r)return"touch";if(Xe.touchscreen){if(Xe.pointer)return"pointer";if(Xe.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const o=s=>{const a=cs(gr(n,s),{min:-1/0,max:1/0});return[a.min,a.max]},i=s=>{const a=cs(gr(r,s),{min:-1/0,max:1/0});return[a.min,a.max]};return typeof n!="function"&&typeof r!="function"?[o(),i()]:s=>[o(s),i(s)]},threshold(e,t,n){return this.lockDirection=n.axis==="lock",ke.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return e===void 0?"ctrlKey":e},pinchOnWheel(e=!0){return e}});be(be({},Bn),{},{mouseOnly:(e=!0)=>e});be(be({},Bn),{},{mouseOnly:(e=!0)=>e});const Ka=new Map,To=new Map;function sp(e){Ka.set(e.key,e.engine),To.set(e.key,e.resolver)}const ap={key:"drag",engine:Gf,resolver:ip};function cp(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function lp(e,t){if(e==null)return{};var n=cp(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}const up={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=Xe.isBrowser?window:void 0){return e},eventOptions({passive:e=!0,capture:t=!1}={}){return{passive:e,capture:t}},transform(e){return e}},dp=["target","eventOptions","window","enabled","transform"];function ar(e={},t){const n={};for(const[r,o]of Object.entries(t))switch(typeof o){case"function":n[r]=o.call(n,e[r],r,e);break;case"object":n[r]=ar(e[r],o);break;case"boolean":o&&(n[r]=e[r]);break}return n}function fp(e,t,n={}){const r=e,{target:o,eventOptions:i,window:s,enabled:a,transform:c}=r,l=lp(r,dp);if(n.shared=ar({target:o,eventOptions:i,window:s,enabled:a,transform:c},up),t){const u=To.get(t);n[t]=ar(be({shared:n.shared},l),u)}else for(const u in l){const f=To.get(u);f&&(n[u]=ar(be({shared:n.shared},l[u]),f))}return n}class Ga{constructor(t,n){Le(this,"_listeners",new Set),this._ctrl=t,this._gestureKey=n}add(t,n,r,o,i){const s=this._listeners,a=Df(n,r),c=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},l=be(be({},c),i);t.addEventListener(a,o,l);const u=()=>{t.removeEventListener(a,o,l),s.delete(u)};return s.add(u),u}clean(){this._listeners.forEach(t=>t()),this._listeners.clear()}}class pp{constructor(){Le(this,"_timeouts",new Map)}add(t,n,r=140,...o){this.remove(t),this._timeouts.set(t,window.setTimeout(n,r,...o))}remove(t){const n=this._timeouts.get(t);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(t=>void window.clearTimeout(t)),this._timeouts.clear()}}let hp=class{constructor(t){Le(this,"gestures",new Set),Le(this,"_targetEventStore",new Ga(this)),Le(this,"gestureEventStores",{}),Le(this,"gestureTimeoutStores",{}),Le(this,"handlers",{}),Le(this,"config",{}),Le(this,"pointerIds",new Set),Le(this,"touchIds",new Set),Le(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),gp(this,t)}setEventIds(t){if(Fr(t))return this.touchIds=new Set(Lf(t)),this.touchIds;if("pointerId"in t)return t.type==="pointerup"||t.type==="pointercancel"?this.pointerIds.delete(t.pointerId):t.type==="pointerdown"&&this.pointerIds.add(t.pointerId),this.pointerIds}applyHandlers(t,n){this.handlers=t,this.nativeHandlers=n}applyConfig(t,n){this.config=fp(t,n,this.config)}clean(){this._targetEventStore.clean();for(const t of this.gestures)this.gestureEventStores[t].clean(),this.gestureTimeoutStores[t].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...t){const n=this.config.shared,r={};let o;if(!(n.target&&(o=n.target(),!o))){if(n.enabled){for(const s of this.gestures){const a=this.config[s],c=fs(r,a.eventOptions,!!o);if(a.enabled){const l=Ka.get(s);new l(this,t,s).bind(c)}}const i=fs(r,n.eventOptions,!!o);for(const s in this.nativeHandlers)i(s,"",a=>this.nativeHandlers[s](be(be({},this.state.shared),{},{event:a,args:t})),void 0,!0)}for(const i in r)r[i]=Nf(...r[i]);if(!o)return r;for(const i in r){const{device:s,capture:a,passive:c}=If(i);this._targetEventStore.add(o,s,"",r[i],{capture:a,passive:c})}}}};function Qt(e,t){e.gestures.add(t),e.gestureEventStores[t]=new Ga(e,t),e.gestureTimeoutStores[t]=new pp}function gp(e,t){t.drag&&Qt(e,"drag"),t.wheel&&Qt(e,"wheel"),t.scroll&&Qt(e,"scroll"),t.move&&Qt(e,"move"),t.pinch&&Qt(e,"pinch"),t.hover&&Qt(e,"hover")}const fs=(e,t,n)=>(r,o,i,s={},a=!1)=>{var c,l;const u=(c=s.capture)!==null&&c!==void 0?c:t.capture,f=(l=s.passive)!==null&&l!==void 0?l:t.passive;let p=a?r:Pf(r,o,u);n&&f&&(p+="Passive"),e[p]=e[p]||[],e[p].push(i)};function mp(e,t={},n,r){const o=h.useMemo(()=>new hp(e),[]);if(o.applyHandlers(e,r),o.applyConfig(t,n),h.useEffect(o.effect.bind(o)),h.useEffect(()=>o.clean.bind(o),[]),t.target===void 0)return o.bind.bind(o)}function bp(e,t){return sp(ap),mp({drag:e},t||{},"drag")}function mt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Ya(e,t=[]){let n=[];function r(i,s){const a=d.createContext(s),c=n.length;n=[...n,s];function l(f){const{scope:p,children:g,...m}=f,b=(p==null?void 0:p[e][c])||a,w=d.useMemo(()=>m,Object.values(m));return d.createElement(b.Provider,{value:w},g)}function u(f,p){const g=(p==null?void 0:p[e][c])||a,m=d.useContext(g);if(m)return m;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return l.displayName=i+"Provider",[l,u]}const o=()=>{const i=n.map(s=>d.createContext(s));return function(a){const c=(a==null?void 0:a[e])||i;return d.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,yp(o,...t)]}function yp(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:c,scopeName:l})=>{const f=c(i)[`__scope${l}`];return{...a,...f}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function hn(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function vp(e,t=globalThis==null?void 0:globalThis.document){const n=hn(e);d.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const ko="dismissableLayer.update",xp="dismissableLayer.pointerDownOutside",wp="dismissableLayer.focusOutside";let ps;const Ep=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$p=d.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...l}=e,u=d.useContext(Ep),[f,p]=d.useState(null),g=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,m]=d.useState({}),b=fn(t,R=>p(R)),w=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=w.indexOf(v),C=f?w.indexOf(f):-1,S=u.layersWithOutsidePointerEventsDisabled.size>0,E=C>=y,$=Cp(R=>{const F=R.target,j=[...u.branches].some(z=>z.contains(F));!E||j||(i==null||i(R),a==null||a(R),R.defaultPrevented||c==null||c())},g),T=_p(R=>{const F=R.target;[...u.branches].some(z=>z.contains(F))||(s==null||s(R),a==null||a(R),R.defaultPrevented||c==null||c())},g);return vp(R=>{C===u.layers.size-1&&(o==null||o(R),!R.defaultPrevented&&c&&(R.preventDefault(),c()))},g),d.useEffect(()=>{if(f)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ps=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),hs(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=ps)}},[f,g,r,u]),d.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),hs())},[f,u]),d.useEffect(()=>{const R=()=>m({});return document.addEventListener(ko,R),()=>document.removeEventListener(ko,R)},[]),d.createElement(Ht.div,Z({},l,{ref:b,style:{pointerEvents:S?E?"auto":"none":void 0,...e.style},onFocusCapture:mt(e.onFocusCapture,T.onFocusCapture),onBlurCapture:mt(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:mt(e.onPointerDownCapture,$.onPointerDownCapture)}))});function Cp(e,t=globalThis==null?void 0:globalThis.document){const n=hn(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){qa(xp,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function _p(e,t=globalThis==null?void 0:globalThis.document){const n=hn(e),r=d.useRef(!1);return d.useEffect(()=>{const o=i=>{i.target&&!r.current&&qa(wp,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function hs(){const e=new CustomEvent(ko);document.dispatchEvent(e)}function qa(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Wd(o,i):o.dispatchEvent(i)}const cn=globalThis!=null&&globalThis.document?d.useLayoutEffect:()=>{},Sp=Ll["useId".toString()]||(()=>{});let Tp=0;function kp(e){const[t,n]=d.useState(Sp());return cn(()=>{e||n(r=>r??String(Tp++))},[e]),e||(t?`radix-${t}`:"")}const Rp=d.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return d.createElement(Ht.svg,Z({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:d.createElement("polygon",{points:"0,0 30,0 15,10"}))}),Op=Rp;function Pp(e){const[t,n]=d.useState(void 0);return cn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;s=l.inlineSize,a=l.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const Xa="Popper",[Za,Qa]=Ya(Xa),[Ap,Ja]=Za(Xa),Ip=e=>{const{__scopePopper:t,children:n}=e,[r,o]=d.useState(null);return d.createElement(Ap,{scope:t,anchor:r,onAnchorChange:o},n)},Dp="PopperAnchor",Mp=d.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Ja(Dp,n),s=d.useRef(null),a=fn(t,s);return d.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:d.createElement(Ht.div,Z({},o,{ref:a}))}),ec="PopperContent",[jp,Lp]=Za(ec),Fp=d.forwardRef((e,t)=>{var n,r,o,i,s,a,c,l;const{__scopePopper:u,side:f="bottom",sideOffset:p=0,align:g="center",alignOffset:m=0,arrowPadding:b=0,avoidCollisions:w=!0,collisionBoundary:v=[],collisionPadding:y=0,sticky:C="partial",hideWhenDetached:S=!1,updatePositionStrategy:E="optimized",onPlaced:$,...T}=e,R=Ja(ec,u),[F,j]=d.useState(null),z=fn(t,Oe=>j(Oe)),[A,N]=d.useState(null),L=Pp(A),D=(n=L==null?void 0:L.width)!==null&&n!==void 0?n:0,V=(r=L==null?void 0:L.height)!==null&&r!==void 0?r:0,U=f+(g!=="center"?"-"+g:""),Y=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},J=Array.isArray(v)?v:[v],pe=J.length>0,re={padding:Y,boundary:J.filter(Bp),altBoundary:pe},{refs:ve,floatingStyles:he,placement:oe,isPositioned:ue,middlewareData:se}=Sd({strategy:"fixed",placement:U,whileElementsMounted:(...Oe)=>$d(...Oe,{animationFrame:E==="always"}),elements:{reference:R.anchor},middleware:[nd({mainAxis:p+V,alignmentAxis:m}),w&&rd({mainAxis:!0,crossAxis:!1,limiter:C==="partial"?od():void 0,...re}),w&&Ju({...re}),id({...re,apply:({elements:Oe,rects:Ye,availableWidth:Ut,availableHeight:Kt})=>{const{width:Gt,height:x}=Ye.reference,k=Oe.floating.style;k.setProperty("--radix-popper-available-width",`${Ut}px`),k.setProperty("--radix-popper-available-height",`${Kt}px`),k.setProperty("--radix-popper-anchor-width",`${Gt}px`),k.setProperty("--radix-popper-anchor-height",`${x}px`)}}),A&&_d({element:A,padding:b}),Wp({arrowWidth:D,arrowHeight:V}),S&&ed({strategy:"referenceHidden",...re})]}),[Ce,_e]=tc(oe),xe=hn($);cn(()=>{ue&&(xe==null||xe())},[ue,xe]);const it=(o=se.arrow)===null||o===void 0?void 0:o.x,dt=(i=se.arrow)===null||i===void 0?void 0:i.y,_t=((s=se.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[Ne,ft]=d.useState();return cn(()=>{F&&ft(window.getComputedStyle(F).zIndex)},[F]),d.createElement("div",{ref:ve.setFloating,"data-radix-popper-content-wrapper":"",style:{...he,transform:ue?he.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ne,"--radix-popper-transform-origin":[(a=se.transformOrigin)===null||a===void 0?void 0:a.x,(c=se.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")},dir:e.dir},d.createElement(jp,{scope:u,placedSide:Ce,onArrowChange:N,arrowX:it,arrowY:dt,shouldHideArrow:_t},d.createElement(Ht.div,Z({"data-side":Ce,"data-align":_e},T,{ref:z,style:{...T.style,animation:ue?void 0:"none",opacity:(l=se.hide)!==null&&l!==void 0&&l.referenceHidden?0:void 0}}))))}),zp="PopperArrow",Np={top:"bottom",right:"left",bottom:"top",left:"right"},Vp=d.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Lp(zp,r),s=Np[i.placedSide];return d.createElement("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},d.createElement(Op,Z({},o,{ref:n,style:{...o.style,display:"block"}})))});function Bp(e){return e!==null}const Wp=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,s;const{placement:a,rects:c,middlewareData:l}=t,f=((n=l.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,p=f?0:e.arrowWidth,g=f?0:e.arrowHeight,[m,b]=tc(a),w={start:"0%",center:"50%",end:"100%"}[b],v=((r=(o=l.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+p/2,y=((i=(s=l.arrow)===null||s===void 0?void 0:s.y)!==null&&i!==void 0?i:0)+g/2;let C="",S="";return m==="bottom"?(C=f?w:`${v}px`,S=`${-g}px`):m==="top"?(C=f?w:`${v}px`,S=`${c.floating.height+g}px`):m==="right"?(C=`${-g}px`,S=f?w:`${y}px`):m==="left"&&(C=`${c.floating.width+g}px`,S=f?w:`${y}px`),{data:{x:C,y:S}}}});function tc(e){const[t,n="center"]=e.split("-");return[t,n]}const Hp=Ip,Up=Mp,Kp=Fp,Gp=Vp;function Yp(e,t){return d.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const nc=e=>{const{present:t,children:n}=e,r=qp(t),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),i=fn(r.ref,o.ref);return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:i}):null};nc.displayName="Presence";function qp(e){const[t,n]=d.useState(),r=d.useRef({}),o=d.useRef(e),i=d.useRef("none"),s=e?"mounted":"unmounted",[a,c]=Yp(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const l=Jn(r.current);i.current=a==="mounted"?l:"none"},[a]),cn(()=>{const l=r.current,u=o.current;if(u!==e){const p=i.current,g=Jn(l);e?c("MOUNT"):g==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&p!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),cn(()=>{if(t){const l=f=>{const g=Jn(r.current).includes(f.animationName);f.target===t&&g&&Jo.flushSync(()=>c("ANIMATION_END"))},u=f=>{f.target===t&&(i.current=Jn(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:d.useCallback(l=>{l&&(r.current=getComputedStyle(l)),n(l)},[])}}function Jn(e){return(e==null?void 0:e.animationName)||"none"}function Xp({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Zp({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:r,a=hn(n),c=d.useCallback(l=>{if(i){const f=typeof l=="function"?l(e):l;f!==e&&a(f)}else o(l)},[i,e,o,a]);return[s,c]}function Zp({defaultProp:e,onChange:t}){const n=d.useState(e),[r]=n,o=d.useRef(r),i=hn(t);return d.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const Qp=d.forwardRef((e,t)=>d.createElement(Ht.span,Z({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),Jp=Qp,[zr,Mv]=Ya("Tooltip",[Qa]),Nr=Qa(),eh="TooltipProvider",Ro="tooltip.open",[jv,pi]=zr(eh),hi="Tooltip",[th,Vr]=zr(hi),nh=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:s,delayDuration:a}=e,c=pi(hi,e.__scopeTooltip),l=Nr(t),[u,f]=d.useState(null),p=kp(),g=d.useRef(0),m=s??c.disableHoverableContent,b=a??c.delayDuration,w=d.useRef(!1),[v=!1,y]=Xp({prop:r,defaultProp:o,onChange:T=>{T?(c.onOpen(),document.dispatchEvent(new CustomEvent(Ro))):c.onClose(),i==null||i(T)}}),C=d.useMemo(()=>v?w.current?"delayed-open":"instant-open":"closed",[v]),S=d.useCallback(()=>{window.clearTimeout(g.current),w.current=!1,y(!0)},[y]),E=d.useCallback(()=>{window.clearTimeout(g.current),y(!1)},[y]),$=d.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{w.current=!0,y(!0)},b)},[b,y]);return d.useEffect(()=>()=>window.clearTimeout(g.current),[]),d.createElement(Hp,l,d.createElement(th,{scope:t,contentId:p,open:v,stateAttribute:C,trigger:u,onTriggerChange:f,onTriggerEnter:d.useCallback(()=>{c.isOpenDelayed?$():S()},[c.isOpenDelayed,$,S]),onTriggerLeave:d.useCallback(()=>{m?E():window.clearTimeout(g.current)},[E,m]),onOpen:S,onClose:E,disableHoverableContent:m},n))},gs="TooltipTrigger",rh=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Vr(gs,n),i=pi(gs,n),s=Nr(n),a=d.useRef(null),c=fn(t,a,o.onTriggerChange),l=d.useRef(!1),u=d.useRef(!1),f=d.useCallback(()=>l.current=!1,[]);return d.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),d.createElement(Up,Z({asChild:!0},s),d.createElement(Ht.button,Z({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:c,onPointerMove:mt(e.onPointerMove,p=>{p.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:mt(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:mt(e.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:mt(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:mt(e.onBlur,o.onClose),onClick:mt(e.onClick,o.onClose)})))}),oh="TooltipPortal",[Lv,ih]=zr(oh,{forceMount:void 0}),Mn="TooltipContent",sh=d.forwardRef((e,t)=>{const n=ih(Mn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=Vr(Mn,e.__scopeTooltip);return d.createElement(nc,{present:r||s.open},s.disableHoverableContent?d.createElement(rc,Z({side:o},i,{ref:t})):d.createElement(ah,Z({side:o},i,{ref:t})))}),ah=d.forwardRef((e,t)=>{const n=Vr(Mn,e.__scopeTooltip),r=pi(Mn,e.__scopeTooltip),o=d.useRef(null),i=fn(t,o),[s,a]=d.useState(null),{trigger:c,onClose:l}=n,u=o.current,{onPointerInTransitChange:f}=r,p=d.useCallback(()=>{a(null),f(!1)},[f]),g=d.useCallback((m,b)=>{const w=m.currentTarget,v={x:m.clientX,y:m.clientY},y=fh(v,w.getBoundingClientRect()),C=ph(v,y),S=hh(b.getBoundingClientRect()),E=mh([...C,...S]);a(E),f(!0)},[f]);return d.useEffect(()=>()=>p(),[p]),d.useEffect(()=>{if(c&&u){const m=w=>g(w,u),b=w=>g(w,c);return c.addEventListener("pointerleave",m),u.addEventListener("pointerleave",b),()=>{c.removeEventListener("pointerleave",m),u.removeEventListener("pointerleave",b)}}},[c,u,g,p]),d.useEffect(()=>{if(s){const m=b=>{const w=b.target,v={x:b.clientX,y:b.clientY},y=(c==null?void 0:c.contains(w))||(u==null?void 0:u.contains(w)),C=!gh(v,s);y?p():C&&(p(),l())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[c,u,s,l,p]),d.createElement(rc,Z({},e,{ref:i}))}),[ch,lh]=zr(hi,{isInside:!1}),rc=d.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...a}=e,c=Vr(Mn,n),l=Nr(n),{onClose:u}=c;return d.useEffect(()=>(document.addEventListener(Ro,u),()=>document.removeEventListener(Ro,u)),[u]),d.useEffect(()=>{if(c.trigger){const f=p=>{const g=p.target;g!=null&&g.contains(c.trigger)&&u()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[c.trigger,u]),d.createElement($p,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:u},d.createElement(Kp,Z({"data-state":c.stateAttribute},l,a,{ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),d.createElement(Da,null,r),d.createElement(ch,{scope:n,isInside:!0},d.createElement(Jp,{id:c.contentId,role:"tooltip"},o||r))))}),uh="TooltipArrow",dh=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Nr(n);return lh(uh,n).isInside?null:d.createElement(Gp,Z({},o,r,{ref:t}))});function fh(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function ph(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function hh(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function gh(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;ir!=u>r&&n<(l-a)*(r-c)/(u-c)+a&&(o=!o)}return o}function mh(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),bh(t)}function bh(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const yh=nh,vh=rh,xh=sh,wh=dh;function Eh(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function ne(e,t){if(e==null)return{};var n=Eh(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}let me;(function(e){e[e.UNSUPPORTED_INPUT=0]="UNSUPPORTED_INPUT",e[e.NO_COMPONENT_FOR_TYPE=1]="NO_COMPONENT_FOR_TYPE",e[e.UNKNOWN_INPUT=2]="UNKNOWN_INPUT",e[e.DUPLICATE_KEYS=3]="DUPLICATE_KEYS",e[e.ALREADY_REGISTERED_TYPE=4]="ALREADY_REGISTERED_TYPE",e[e.CLIPBOARD_ERROR=5]="CLIPBOARD_ERROR",e[e.THEME_ERROR=6]="THEME_ERROR",e[e.PATH_DOESNT_EXIST=7]="PATH_DOESNT_EXIST",e[e.INPUT_TYPE_OVERRIDE=8]="INPUT_TYPE_OVERRIDE",e[e.EMPTY_KEY=9]="EMPTY_KEY"})(me||(me={}));const $h={[me.UNSUPPORTED_INPUT]:(e,t)=>[`An input with type \`${e}\` input was found at path \`${t}\` but it's not supported yet.`],[me.NO_COMPONENT_FOR_TYPE]:(e,t)=>[`Type \`${e}\` found at path \`${t}\` can't be displayed in panel because no component supports it yet.`],[me.UNKNOWN_INPUT]:(e,t)=>[`input at path \`${e}\` is not recognized.`,t],[me.DUPLICATE_KEYS]:(e,t,n)=>[`Key \`${e}\` of path \`${t}\` already exists at path \`${n}\`. Even nested keys need to be unique. Rename one of the keys.`],[me.ALREADY_REGISTERED_TYPE]:e=>[`Type ${e} has already been registered. You can't register a component with the same type.`],[me.CLIPBOARD_ERROR]:e=>["Error copying the value",e],[me.THEME_ERROR]:(e,t)=>[`Error accessing the theme \`${e}.${t}\` value.`],[me.PATH_DOESNT_EXIST]:e=>[`Error getting the value at path \`${e}\`. There is probably an error in your \`render\` function.`],[me.PATH_DOESNT_EXIST]:e=>[`Error accessing the value at path \`${e}\``],[me.INPUT_TYPE_OVERRIDE]:(e,t,n)=>[`Input at path \`${e}\` already exists with type: \`${t}\`. Its type cannot be overridden with type \`${n}\`.`],[me.EMPTY_KEY]:()=>["Keys can not be empty, if you want to hide a label use whitespace."]};function oc(e,t,...n){const[r,...o]=$h[t](...n);console[e]("LEVA: "+r,...o)}const bt=oc.bind(null,"warn"),Ch=oc.bind(null,"log"),_h=["value"],Sh=["schema"],Th=["value"],ic=[],Bt={};function ms(e){let{value:t}=e,n=ne(e,_h);for(let r of ic){const o=r(t,n);if(o)return o}}function Ct(e,t){let{schema:n}=t,r=ne(t,Sh);if(e in Bt){bt(me.ALREADY_REGISTERED_TYPE,e);return}ic.push((o,i)=>n(o,i)&&e),Bt[e]=r}function qr(e,t,n,r){const{normalize:o}=Bt[e];if(o)return o(t,n,r);if(typeof t!="object"||!("value"in t))return{value:t};const{value:i}=t,s=ne(t,Th);return{value:i,settings:s}}function kh(e,t,n,r,o,i){const{sanitize:s}=Bt[e];return s?s(t,n,r,o,i):t}function bs(e,t,n){const{format:r}=Bt[e];return r?r(t,n):t}function Rh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function q(e){for(var t=1;te>n?n:e{if(e===""||typeof e=="number")return e;try{const t=Tt(e);if(!isNaN(t))return t}catch{}return parseFloat(e)},Ph=Math.log(10);function vs(e){let t=Math.abs(+String(e).replace(".",""));if(t===0)return .01;for(;t!==0&&t%10===0;)t/=10;const n=Math.floor(Math.log(t)/Ph)+1,r=Math.floor(Math.log10(Math.abs(e))),o=Math.pow(10,r-n);return Math.max(o,.001)}const mr=(e,t,n)=>n===t?0:(It(e,t,n)-t)/(n-t),br=(e,t,n)=>e*(n-t)+t,Ah=()=>"_"+Math.random().toString(36).substr(2,9),xs=/\(([0-9+\-*/^ .]+)\)/,ws=/(\d+(?:\.\d+)?) ?\^ ?(\d+(?:\.\d+)?)/,Es=/(\d+(?:\.\d+)?) ?\* ?(\d+(?:\.\d+)?)/,$s=/(\d+(?:\.\d+)?) ?\/ ?(\d+(?:\.\d+)?)/,Cs=/(\d+(?:\.\d+)?) ?\+ ?(\d+(?:\.\d+)?)/,_s=/(\d+(?:\.\d+)?) ?- ?(\d+(?:\.\d+)?)/;function Tt(e){if(isNaN(Number(e)))if(xs.test(e)){const t=e.replace(xs,(n,r)=>String(Tt(r)));return Tt(t)}else if(ws.test(e)){const t=e.replace(ws,(n,r,o)=>String(Math.pow(Number(r),Number(o))));return Tt(t)}else if(Es.test(e)){const t=e.replace(Es,(n,r,o)=>String(Number(r)*Number(o)));return Tt(t)}else if($s.test(e)){const t=e.replace($s,(n,r,o)=>{if(o!=0)return String(Number(r)/Number(o));throw new Error("Division by zero")});return Tt(t)}else if(Cs.test(e)){const t=e.replace(Cs,(n,r,o)=>String(Number(r)+Number(o)));return Tt(t)}else if(_s.test(e)){const t=e.replace(_s,(n,r,o)=>String(Number(r)-Number(o)));return Tt(t)}else return Number(e);return Number(e)}function Ih(e,t){return t.reduce((n,r)=>(e&&e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}function Dh(e,t){const n=q({},e);return t.forEach(r=>r in e&&delete n[r]),n}function Mh(e,t){return e.reduce((n,r,o)=>Object.assign(n,{[t[o]]:r}),{})}function sc(e){return Object.prototype.toString.call(e)==="[object Object]"}const jh=e=>sc(e)&&Object.keys(e).length===0;let nt;(function(e){e.BUTTON="BUTTON",e.BUTTON_GROUP="BUTTON_GROUP",e.MONITOR="MONITOR",e.FOLDER="FOLDER"})(nt||(nt={}));let rt;(function(e){e.SELECT="SELECT",e.IMAGE="IMAGE",e.NUMBER="NUMBER",e.COLOR="COLOR",e.STRING="STRING",e.BOOLEAN="BOOLEAN",e.INTERVAL="INTERVAL",e.VECTOR3D="VECTOR3D",e.VECTOR2D="VECTOR2D"})(rt||(rt={}));const Lh=["type","__customInput"],Fh=["render","label","optional","order","disabled","hint","onChange","onEditStart","onEditEnd","transient"],zh=["type"];function ac(e,t,n={},r){var o,i;if(typeof e!="object"||Array.isArray(e))return{type:r,input:e,options:q({key:t,label:t,optional:!1,disabled:!1,order:0},n)};if("__customInput"in e){const{type:E,__customInput:$}=e,T=ne(e,Lh);return ac($,t,T,E)}const{render:s,label:a,optional:c,order:l=0,disabled:u,hint:f,onChange:p,onEditStart:g,onEditEnd:m,transient:b}=e,w=ne(e,Fh),v=q({render:s,key:t,label:a??t,hint:f,transient:b??!!p,onEditStart:g,onEditEnd:m,disabled:u,optional:c,order:l},n);let{type:y}=w,C=ne(w,zh);if(y=r??y,y in nt)return{type:y,input:C,options:v};let S;return r&&sc(C)&&"value"in C?S=C.value:S=jh(C)?void 0:C,{type:y,input:S,options:q(q({},v),{},{onChange:p,optional:(o=v.optional)!==null&&o!==void 0?o:!1,disabled:(i=v.disabled)!==null&&i!==void 0?i:!1})}}function Nh(e,t,n,r){const o=ac(e,t),{type:i,input:s,options:a}=o;if(i)return i in nt?o:{type:i,input:qr(i,s,n,r),options:a};let c=ms(s);return c?{type:c,input:qr(c,s,n,r),options:a}:(c=ms({value:s}),c?{type:c,input:qr(c,{value:s},n,r),options:a}:!1)}function Ss(e,t,n,r,o){const{value:i,type:s,settings:a}=e;e.value=cc({type:s,value:i,settings:a},t,n,r),e.fromPanel=o}const Vh=function(t,n,r){this.type="LEVA_ERROR",this.message="LEVA: "+t,this.previousValue=n,this.error=r};function cc({type:e,value:t,settings:n},r,o,i){const s=e!=="SELECT"&&typeof r=="function"?r(t):r;let a;try{a=kh(e,s,n,t,o,i)}catch(c){throw new Vh(`The value \`${r}\` did not result in a correct value.`,t,c)}return In(a,t)?t:a}const lc=(e,t,n=!1)=>{let r=0;return function(){const o=arguments,i=n&&!r,s=()=>e.apply(this,o);window.clearTimeout(r),r=window.setTimeout(s,t),i&&s()}},uc=e=>e.shiftKey?5:e.altKey?1/5:1;function Bh(e,t){const n=console.error;console.error=()=>{},ga.render(e,t),console.error=n}const Wh=["value"],Hh=["min","max"],Uh=e=>{if(typeof e=="number")return!0;if(typeof e=="string"){const t=parseFloat(e);return isNaN(t)?!1:e.substring((""+t).length).trim().length<4}return!1},dc=(e,{min:t=-1/0,max:n=1/0,suffix:r})=>{const o=parseFloat(e);if(e===""||isNaN(o))throw Error("Invalid number");const i=It(o,t,n);return r?i+r:i},Kh=(e,{pad:t=0,suffix:n})=>{const r=parseFloat(e).toFixed(t);return n?r+n:r},fc=e=>{let{value:t}=e,n=ne(e,Wh);const{min:r=-1/0,max:o=1/0}=n,i=ne(n,Hh);let s=parseFloat(t);const a=typeof t=="string"?t.substring((""+s).length):void 0;s=It(s,r,o);let c=n.step;c||(Number.isFinite(r)?Number.isFinite(o)?c=+(Math.abs(o-r)/100).toPrecision(1):c=+(Math.abs(s-r)/100).toPrecision(1):Number.isFinite(o)&&(c=+(Math.abs(o-s)/100).toPrecision(1)));const l=c?vs(c)*10:vs(s);c=c||l/10;const u=Math.round(It(Math.log10(1/l),0,2));return{value:a?s+a:s,settings:q({initialValue:s,step:c,pad:u,min:r,max:o,suffix:a},i)}},pc=(e,{step:t,initialValue:n})=>{const r=Math.round((e-n)/t);return n+r*t};var hc=Object.freeze({__proto__:null,schema:Uh,sanitize:dc,format:Kh,normalize:fc,sanitizeStep:pc});function ye(){return ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t({colors:{elevation1:"#292d39",elevation2:"#181c20",elevation3:"#373c4b",accent1:"#0066dc",accent2:"#007bff",accent3:"#3c93ff",highlight1:"#535760",highlight2:"#8c92a4",highlight3:"#fefefe",vivid1:"#ffcc00",folderWidgetColor:"$highlight2",folderTextColor:"$highlight3",toolTipBackground:"$highlight3",toolTipText:"$elevation2"},radii:{xs:"2px",sm:"3px",lg:"10px"},space:{xs:"3px",sm:"6px",md:"10px",rowGap:"7px",colGap:"7px"},fonts:{mono:"ui-monospace, SFMono-Regular, Menlo, 'Roboto Mono', monospace",sans:"system-ui, sans-serif"},fontSizes:{root:"11px",toolTip:"$root"},sizes:{rootWidth:"280px",controlWidth:"160px",numberInputMinWidth:"38px",scrubberWidth:"8px",scrubberHeight:"16px",rowHeight:"24px",folderTitleHeight:"20px",checkboxSize:"16px",joystickWidth:"100px",joystickHeight:"100px",colorPickerWidth:"$controlWidth",colorPickerHeight:"100px",imagePreviewWidth:"$controlWidth",imagePreviewHeight:"100px",monitorHeight:"60px",titleBarHeight:"39px"},shadows:{level1:"0 0 9px 0 #00000088",level2:"0 4px 14px #00000033"},borderWidths:{root:"0px",input:"1px",focus:"1px",hover:"1px",active:"1px",folder:"1px"},fontWeights:{label:"normal",folder:"normal",button:"normal"}});function er(e,t){const[n,r]=e.split(" "),o={};return n!=="none"&&(o.boxShadow=`${t.inset?"inset ":""}0 0 0 $borderWidths${[t.key]} $colors${n!=="default"&&n||t.borderColor}`),r&&(o.backgroundColor=r),o}const En={$inputStyle:()=>e=>er(e,{key:"$input",borderColor:"$highlight1",inset:!0}),$focusStyle:()=>e=>er(e,{key:"$focus",borderColor:"$accent2"}),$hoverStyle:()=>e=>er(e,{key:"$hover",borderColor:"$accent1",inset:!0}),$activeStyle:()=>e=>er(e,{key:"$active",borderColor:"$accent1",inset:!0})},{styled:G,css:Fv,createTheme:Yh,globalCss:qh,keyframes:zv}=Na({prefix:"leva",theme:yc(),utils:q(q({},En),{},{$flex:()=>({display:"flex",alignItems:"center"}),$flexCenter:()=>({display:"flex",alignItems:"center",justifyContent:"center"}),$reset:()=>({outline:"none",fontSize:"inherit",fontWeight:"inherit",color:"inherit",fontFamily:"inherit",border:"none",backgroundColor:"transparent",appearance:"none"}),$draggable:()=>({touchAction:"none",WebkitUserDrag:"none",userSelect:"none"}),$focus:e=>({"&:focus":En.$focusStyle()(e)}),$focusWithin:e=>({"&:focus-within":En.$focusStyle()(e)}),$hover:e=>({"&:hover":En.$hoverStyle()(e)}),$active:e=>({"&:active":En.$activeStyle()(e)})})}),Xh=qh({".leva__panel__dragged":{WebkitUserDrag:"none",userSelect:"none",input:{userSelect:"none"},"*":{cursor:"ew-resize !important"}}});function Zh(e){const t=yc();if(!e)return{theme:t,className:""};Object.keys(e).forEach(r=>{Object.assign(t[r],e[r])});const n=Yh(t);return{theme:t,className:n.className}}function yt(e,t){const{theme:n}=d.useContext(gi);if(!(e in n)||!(t in n[e]))return bt(me.THEME_ERROR,e,t),"";let r=t;for(;;){let o=n[e][r];if(typeof o=="string"&&o.charAt(0)==="$")r=o.substr(1);else return o}}const vc=G("input",{$reset:"",padding:"0 $sm",width:0,minWidth:0,flex:1,height:"100%",variants:{levaType:{number:{textAlign:"right"}},as:{textarea:{padding:"$sm"}}}}),xc=G("div",{$draggable:"",height:"100%",$flexCenter:"",position:"relative",padding:"0 $xs",fontSize:"0.8em",opacity:.8,cursor:"default",touchAction:"none",[`& + ${vc}`]:{paddingLeft:0}}),Qh=G(xc,{cursor:"ew-resize",marginRight:"-$xs",textTransform:"uppercase",opacity:.3,"&:hover":{opacity:1},variants:{dragging:{true:{backgroundColor:"$accent2",opacity:1}}}}),Jh=G("div",{$flex:"",position:"relative",borderRadius:"$sm",overflow:"hidden",color:"inherit",height:"$rowHeight",backgroundColor:"$elevation3",$inputStyle:"$elevation1",$hover:"",$focusWithin:"",variants:{textArea:{true:{height:"auto"}}}}),eg=["innerLabel","value","onUpdate","onChange","onKeyDown","type","id","inputType","rows"],tg=["onUpdate"];function mi(e){let{innerLabel:t,value:n,onUpdate:r,onChange:o,onKeyDown:i,type:s,id:a,inputType:c="text",rows:l=0}=e,u=ne(e,eg);const{id:f,emitOnEditStart:p,emitOnEditEnd:g,disabled:m}=Re(),b=a||f,w=d.useRef(null),v=l>0,y=v?"textarea":"input",C=d.useCallback($=>T=>{const R=T.currentTarget.value;$(R)},[]);h.useEffect(()=>{const $=w.current,T=C(R=>{r(R),g()});return $==null||$.addEventListener("blur",T),()=>$==null?void 0:$.removeEventListener("blur",T)},[C,r,g]);const S=d.useCallback($=>{$.key==="Enter"&&C(r)($)},[C,r]),E=Object.assign({as:y},v?{rows:l}:{},u);return h.createElement(Jh,{textArea:v},t&&typeof t=="string"?h.createElement(xc,null,t):t,h.createElement(vc,ye({levaType:s,ref:w,id:b,type:c,autoComplete:"off",spellCheck:"false",value:n,onChange:C(o),onFocus:()=>p(),onKeyPress:S,onKeyDown:i,disabled:m},E)))}function ng(e){let{onUpdate:t}=e,n=ne(e,tg);const r=d.useCallback(i=>t(Oh(i)),[t]),o=d.useCallback(i=>{const s=i.key==="ArrowUp"?1:i.key==="ArrowDown"?-1:0;if(s){i.preventDefault();const a=i.altKey?.1:i.shiftKey?10:1;t(c=>parseFloat(c)+s*a)}},[t]);return h.createElement(mi,ye({},n,{onUpdate:r,onKeyDown:o,type:"number"}))}const yr=G("div",{}),Oo=G("div",{position:"relative",background:"$elevation2",transition:"height 300ms ease",variants:{fill:{true:{},false:{}},flat:{false:{},true:{}},isRoot:{true:{},false:{paddingLeft:"$md","&::after":{content:'""',position:"absolute",left:0,top:0,width:"$borderWidths$folder",height:"100%",backgroundColor:"$folderWidgetColor",opacity:.4,transform:"translateX(-50%)"}}}},compoundVariants:[{isRoot:!0,fill:!1,css:{overflowY:"auto",maxHeight:"calc(100vh - 20px - $$titleBarHeight)"}},{isRoot:!0,flat:!1,css:{borderRadius:"$lg"}}]}),rg=G("div",{$flex:"",color:"$folderTextColor",userSelect:"none",cursor:"pointer",height:"$folderTitleHeight",fontWeight:"$folder","> svg":{marginLeft:-4,marginRight:4,cursor:"pointer",fill:"$folderWidgetColor",opacity:.6},"&:hover > svg":{fill:"$folderWidgetColor"},[`&:hover + ${Oo}::after`]:{opacity:.6},[`${yr}:hover > & + ${Oo}::after`]:{opacity:.6},[`${yr}:hover > & > svg`]:{opacity:1}}),wc=G("div",{position:"relative",display:"grid",gridTemplateColumns:"100%",rowGap:"$rowGap",transition:"opacity 250ms ease",variants:{toggled:{true:{opacity:1,transitionDelay:"250ms"},false:{opacity:0,transitionDelay:"0ms",pointerEvents:"none"}},isRoot:{true:{"& > div":{paddingLeft:"$md",paddingRight:"$md"},"& > div:first-of-type":{paddingTop:"$sm"},"& > div:last-of-type":{paddingBottom:"$sm"},[`> ${yr}:not(:first-of-type)`]:{paddingTop:"$sm",marginTop:"$md",borderTop:"$borderWidths$folder solid $colors$elevation1"}}}}}),Ec=G("div",{position:"relative",zIndex:100,display:"grid",rowGap:"$rowGap",gridTemplateRows:"minmax($sizes$rowHeight, max-content)",alignItems:"center",color:"$highlight2",[`${wc} > &`]:{"&:first-of-type":{marginTop:"$rowGap"},"&:last-of-type":{marginBottom:"$rowGap"}},variants:{disabled:{true:{pointerEvents:"none"},false:{"&:hover,&:focus-within":{color:"$highlight3"}}}}}),$c=G(Ec,{gridTemplateColumns:"auto $sizes$controlWidth",columnGap:"$colGap"}),og=G("div",{$flex:"",height:"100%",position:"relative",overflow:"hidden","& > div":{marginLeft:"$colGap",padding:"0 $xs",opacity:.4},"& > div:hover":{opacity:.8},"& > div > svg":{display:"none",cursor:"pointer",width:13,minWidth:13,height:13,backgroundColor:"$elevation2"},"&:hover > div > svg":{display:"block"},variants:{align:{top:{height:"100%",alignItems:"flex-start",paddingTop:"$sm"}}}}),ig=G("input",{$reset:"",height:0,width:0,opacity:0,margin:0,"& + label":{position:"relative",$flexCenter:"",height:"100%",userSelect:"none",cursor:"pointer",paddingLeft:2,paddingRight:"$sm",pointerEvents:"auto"},"& + label:after":{content:'""',width:6,height:6,backgroundColor:"$elevation3",borderRadius:"50%",$activeStyle:""},"&:focus + label:after":{$focusStyle:""},"& + label:active:after":{backgroundColor:"$accent1",$focusStyle:""},"&:checked + label:after":{backgroundColor:"$accent1"}}),Po=G("label",{fontWeight:"$label",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& > svg":{display:"block"}}),sg=G("div",{opacity:1,variants:{disabled:{true:{opacity:.6,pointerEvents:"none",[`& ${Po}`]:{pointerEvents:"auto"}}}}}),Cc=G("div",{position:"fixed",top:0,bottom:0,right:0,left:0,zIndex:1e3,userSelect:"none"}),ag=G("div",{background:"$toolTipBackground",fontFamily:"$sans",fontSize:"$toolTip",padding:"$xs $sm",color:"$toolTipText",borderRadius:"$xs",boxShadow:"$level2",maxWidth:260}),cg=G(wh,{fill:"$toolTipBackground"});function bi({children:e}){const{className:t}=d.useContext(gi);return h.createElement(Ud,{className:t},e)}const lg=["align"];function ug(){const{id:e,disable:t,disabled:n}=Re();return h.createElement(h.Fragment,null,h.createElement(ig,{id:e+"__disable",type:"checkbox",checked:!n,onChange:()=>t(!n)}),h.createElement("label",{htmlFor:e+"__disable"}))}function dg(e){const{id:t,optional:n,hint:r}=Re(),o=e.htmlFor||(t?{htmlFor:t}:null),i=!r&&typeof e.children=="string"?{title:e.children}:null;return h.createElement(h.Fragment,null,n&&h.createElement(ug,null),r!==void 0?h.createElement(yh,null,h.createElement(vh,{asChild:!0},h.createElement(Po,ye({},o,e))),h.createElement(xh,{side:"top",sideOffset:2},h.createElement(ag,null,r,h.createElement(cg,null)))):h.createElement(Po,ye({},o,i,e)))}function ot(e){let{align:t}=e,n=ne(e,lg);const{value:r,label:o,key:i,disabled:s}=Re(),{hideCopyButton:a}=Gh(),c=!a&&i!==void 0,[l,u]=d.useState(!1),f=async()=>{try{await navigator.clipboard.writeText(JSON.stringify({[i]:r??""})),u(!0)}catch{bt(me.CLIPBOARD_ERROR,{[i]:r})}};return h.createElement(og,{align:t,onPointerLeave:()=>u(!1)},h.createElement(dg,n),c&&!s&&h.createElement("div",{title:`Click to copy ${typeof o=="string"?o:i} value`},l?h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},h.createElement("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"}),h.createElement("path",{fillRule:"evenodd",d:"M4 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V5zm9.707 5.707a1 1 0 00-1.414-1.414L9 12.586l-1.293-1.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})):h.createElement("svg",{onClick:f,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},h.createElement("path",{d:"M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"}),h.createElement("path",{d:"M6 3a2 2 0 00-2 2v11a2 2 0 002 2h8a2 2 0 002-2V5a2 2 0 00-2-2 3 3 0 01-3 3H9a3 3 0 01-3-3z"}))))}const fg=["toggled"],pg=G("svg",{fill:"currentColor",transition:"transform 350ms ease, fill 250ms ease"});function yi(e){let{toggled:t}=e,n=ne(e,fg);return h.createElement(pg,ye({width:"9",height:"5",viewBox:"0 0 9 5",xmlns:"http://www.w3.org/2000/svg",style:{transform:`rotate(${t?0:-90}deg)`}},n),h.createElement("path",{d:"M3.8 4.4c.4.3 1 .3 1.4 0L8 1.7A1 1 0 007.4 0H1.6a1 1 0 00-.7 1.7l3 2.7z"}))}const hg=["input"];function tt(e){let{input:t}=e,n=ne(e,hg);return t?h.createElement($c,n):h.createElement(Ec,n)}function _c({value:e,type:t,settings:n,setValue:r}){const[o,i]=d.useState(bs(t,e,n)),s=d.useRef(e),a=d.useRef(n);a.current=n;const c=d.useCallback(u=>i(bs(t,u,a.current)),[t]),l=d.useCallback(u=>{try{r(u)}catch(f){const{type:p,previousValue:g}=f;if(p!=="LEVA_ERROR")throw f;c(g)}},[c,r]);return d.useEffect(()=>{In(e,s.current)||c(e),s.current=e},[e,c]),{displayValue:o,onChange:i,onUpdate:l}}function Un(e,t){const{emitOnEditStart:n,emitOnEditEnd:r}=Re();return bp(o=>{o.first&&(document.body.classList.add("leva__panel__dragged"),n==null||n());const i=e(o);return o.last&&(document.body.classList.remove("leva__panel__dragged"),r==null||r()),i},t)}function gg(e){const t=d.useRef(null),n=d.useRef(null),r=d.useRef(!1);return d.useEffect(()=>{const o=lc(()=>{t.current.width=t.current.offsetWidth*window.devicePixelRatio,t.current.height=t.current.offsetHeight*window.devicePixelRatio,e(t.current,n.current)},250);return window.addEventListener("resize",o),r.current||(o(),r.current=!0),()=>window.removeEventListener("resize",o)},[e]),d.useEffect(()=>{n.current=t.current.getContext("2d")},[]),[t,n]}function Sc(){const e=d.useRef(null),t=d.useRef({x:0,y:0}),n=d.useCallback(r=>{Object.assign(t.current,r),e.current&&(e.current.style.transform=`translate3d(${t.current.x}px, ${t.current.y}px, 0)`)},[]);return[e,n]}const mg=["__refCount"],Xr=(e,t)=>{if(!e[t])return null;const n=e[t];return ne(n,mg)};function bg(e){const t=Hn(),[n,r]=d.useState(Xr(t.getData(),e)),o=d.useCallback(l=>t.setValueAtPath(e,l,!0),[e,t]),i=d.useCallback(l=>t.setSettingsAtPath(e,l),[e,t]),s=d.useCallback(l=>t.disableInputAtPath(e,l),[e,t]),a=d.useCallback(()=>t.emitOnEditStart(e),[e,t]),c=d.useCallback(()=>t.emitOnEditEnd(e),[e,t]);return d.useEffect(()=>{r(Xr(t.getData(),e));const l=t.useStore.subscribe(u=>Xr(u.data,e),r,{equalityFn:Vn});return()=>l()},[t,e]),[n,{set:o,setSettings:i,disable:s,storeId:t.storeId,emitOnEditStart:a,emitOnEditEnd:c}]}const yg=G("div",{variants:{hasRange:{true:{position:"relative",display:"grid",gridTemplateColumns:"auto $sizes$numberInputMinWidth",columnGap:"$colGap",alignItems:"center"}}}}),Tc=G("div",{position:"relative",width:"100%",height:2,borderRadius:"$xs",backgroundColor:"$elevation1"}),Ao=G("div",{position:"absolute",width:"$scrubberWidth",height:"$scrubberHeight",borderRadius:"$xs",boxShadow:"0 0 0 2px $colors$elevation2",backgroundColor:"$accent2",cursor:"pointer",$active:"none $accent1",$hover:"none $accent3",variants:{position:{left:{borderTopRightRadius:0,borderBottomRightRadius:0,transform:"translateX(calc(-0.5 * ($sizes$scrubberWidth + 4px)))"},right:{borderTopLeftRadius:0,borderBottomLeftRadius:0,transform:"translateX(calc(0.5 * ($sizes$scrubberWidth + 4px)))"}}}}),kc=G("div",{position:"relative",$flex:"",height:"100%",cursor:"pointer",touchAction:"none"}),Rc=G("div",{position:"absolute",height:"100%",backgroundColor:"$accent2"});function vg({value:e,min:t,max:n,onDrag:r,step:o,initialValue:i}){const s=d.useRef(null),a=d.useRef(null),c=d.useRef(0),l=yt("sizes","scrubberWidth"),u=Un(({event:p,first:g,xy:[m],movement:[b],memo:w})=>{if(g){const{width:y,left:C}=s.current.getBoundingClientRect();c.current=y-parseFloat(l),w=(p==null?void 0:p.target)===a.current?e:br((m-C)/y,t,n)}const v=w+br(b/c.current,0,n-t);return r(pc(v,{step:o,initialValue:i})),w}),f=mr(e,t,n);return h.createElement(kc,ye({ref:s},u()),h.createElement(Tc,null,h.createElement(Rc,{style:{left:0,right:`${(1-f)*100}%`}})),h.createElement(Ao,{ref:a,style:{left:`calc(${f} * (100% - ${l}))`}}))}const xg=h.memo(({label:e,onUpdate:t,step:n,innerLabelTrim:r})=>{const[o,i]=d.useState(!1),s=Un(({active:a,delta:[c],event:l,memo:u=0})=>(i(a),u+=c/2,Math.abs(u)>=1&&(t(f=>parseFloat(f)+Math.floor(u)*n*uc(l)),u=0),u));return h.createElement(Qh,ye({dragging:o,title:e.length>1?e:""},s()),e.slice(0,r))});function Oc({label:e,id:t,displayValue:n,onUpdate:r,onChange:o,settings:i,innerLabelTrim:s=1}){const a=s>0&&h.createElement(xg,{label:e,step:i.step,onUpdate:r,innerLabelTrim:s});return h.createElement(ng,{id:t,value:String(n),onUpdate:r,onChange:o,innerLabel:a})}function wg(){const e=Re(),{label:t,value:n,onUpdate:r,settings:o,id:i}=e,{min:s,max:a}=o,c=a!==1/0&&s!==-1/0;return h.createElement(tt,{input:!0},h.createElement(ot,null,t),h.createElement(yg,{hasRange:c},c&&h.createElement(vg,ye({value:parseFloat(n),onDrag:r},o)),h.createElement(Oc,ye({},e,{id:i,label:"value",innerLabelTrim:c?0:1}))))}const{sanitizeStep:Eg}=hc,$g=ne(hc,["sanitizeStep"]);var Cg=q({component:wg},$g);const _g=(e,t)=>Fe().schema({options:Fe().passesAnyOf(Fe().object(),Fe().array())}).test(t),Sg=(e,{values:t})=>{if(t.indexOf(e)<0)throw Error("Selected value doesn't match Select options");return e},Tg=(e,{values:t})=>t.indexOf(e),kg=e=>{let{value:t,options:n}=e,r,o;return Array.isArray(n)?(o=n,r=n.map(i=>String(i))):(o=Object.values(n),r=Object.keys(n)),"value"in e?o.includes(t)||(r.unshift(String(t)),o.unshift(t)):t=o[0],Object.values(n).includes(t)||(n[String(t)]=t),{value:t,settings:{keys:r,values:o}}};var Rg=Object.freeze({__proto__:null,schema:_g,sanitize:Sg,format:Tg,normalize:kg});const Og=G("div",{$flexCenter:"",position:"relative","> svg":{pointerEvents:"none",position:"absolute",right:"$md"}}),Io=G("select",{position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:0}),Pg=G("div",{display:"flex",alignItems:"center",width:"100%",height:"$rowHeight",backgroundColor:"$elevation3",borderRadius:"$sm",padding:"0 $sm",cursor:"pointer",[`${Io}:focus + &`]:{$focusStyle:""},[`${Io}:hover + &`]:{$hoverStyle:""}});function Ag({displayValue:e,value:t,onUpdate:n,id:r,settings:o,disabled:i}){const{keys:s,values:a}=o,c=d.useRef();return t===a[e]&&(c.current=s[e]),h.createElement(Og,null,h.createElement(Io,{id:r,value:e,onChange:l=>n(a[Number(l.currentTarget.value)]),disabled:i},s.map((l,u)=>h.createElement("option",{key:l,value:u},l))),h.createElement(Pg,null,c.current),h.createElement(yi,{toggled:!0}))}function Ig(){const{label:e,value:t,displayValue:n,onUpdate:r,id:o,disabled:i,settings:s}=Re();return h.createElement(tt,{input:!0},h.createElement(ot,null,e),h.createElement(Ag,{id:o,value:t,displayValue:n,onUpdate:r,settings:s,disabled:i}))}var Dg=q({component:Ig},Rg);const Mg=e=>Fe().string().test(e),jg=e=>{if(typeof e!="string")throw Error("Invalid string");return e},Lg=({value:e,editable:t=!0,rows:n=!1})=>({value:e,settings:{editable:t,rows:typeof n=="number"?n:n?5:0}});var Fg=Object.freeze({__proto__:null,schema:Mg,sanitize:jg,normalize:Lg});const zg=["displayValue","onUpdate","onChange","editable"],Ng=G("div",{whiteSpace:"pre-wrap"});function Vg(e){let{displayValue:t,onUpdate:n,onChange:r,editable:o=!0}=e,i=ne(e,zg);return o?h.createElement(mi,ye({value:t,onUpdate:n,onChange:r},i)):h.createElement(Ng,null,t)}function Bg(){const{label:e,settings:t,displayValue:n,onUpdate:r,onChange:o}=Re();return h.createElement(tt,{input:!0},h.createElement(ot,null,e),h.createElement(Vg,ye({displayValue:n,onUpdate:r,onChange:o},t)))}var Wg=q({component:Bg},Fg);const Hg=e=>Fe().boolean().test(e),Ug=e=>{if(typeof e!="boolean")throw Error("Invalid boolean");return e};var Kg=Object.freeze({__proto__:null,schema:Hg,sanitize:Ug});const Gg=G("div",{position:"relative",$flex:"",height:"$rowHeight",input:{$reset:"",height:0,width:0,opacity:0,margin:0},label:{position:"relative",$flexCenter:"",userSelect:"none",cursor:"pointer",height:"$checkboxSize",width:"$checkboxSize",backgroundColor:"$elevation3",borderRadius:"$sm",$hover:""},"input:focus + label":{$focusStyle:""},"input:focus:checked + label, input:checked + label:hover":{$hoverStyle:"$accent3"},"input + label:active":{backgroundColor:"$accent1"},"input:checked + label:active":{backgroundColor:"$accent1"},"label > svg":{display:"none",width:"90%",height:"90%",stroke:"$highlight3"},"input:checked + label":{backgroundColor:"$accent2"},"input:checked + label > svg":{display:"block"}});function Yg({value:e,onUpdate:t,id:n,disabled:r}){return h.createElement(Gg,null,h.createElement("input",{id:n,type:"checkbox",checked:e,onChange:o=>t(o.currentTarget.checked),disabled:r}),h.createElement("label",{htmlFor:n},h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"}))))}function qg(){const{label:e,value:t,onUpdate:n,disabled:r,id:o}=Re();return h.createElement(tt,{input:!0},h.createElement(ot,null,e),h.createElement(Yg,{value:t,onUpdate:n,id:o,disabled:r}))}var Xg=q({component:qg},Kg);const Zg=["locked"];function Qg({value:e,id:t,valueKey:n,settings:r,onUpdate:o,innerLabelTrim:i}){const s=d.useRef(e[n]);s.current=e[n];const a=d.useCallback(l=>o({[n]:cc({type:"NUMBER",value:s.current,settings:r},l)}),[o,r,n]),c=_c({type:"NUMBER",value:e[n],settings:r,setValue:a});return h.createElement(Oc,{id:t,label:n,value:e[n],displayValue:c.displayValue,onUpdate:c.onUpdate,onChange:c.onChange,settings:r,innerLabelTrim:i})}const Jg=G("div",{display:"grid",columnGap:"$colGap",gridAutoFlow:"column dense",alignItems:"center",variants:{withLock:{true:{gridTemplateColumns:"10px auto","> svg":{cursor:"pointer"}}}}});function e1(e){let{locked:t}=e,n=ne(e,Zg);return h.createElement("svg",ye({width:"10",height:"10",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),t?h.createElement("path",{d:"M5 4.63601C5 3.76031 5.24219 3.1054 5.64323 2.67357C6.03934 2.24705 6.64582 1.9783 7.5014 1.9783C8.35745 1.9783 8.96306 2.24652 9.35823 2.67208C9.75838 3.10299 10 3.75708 10 4.63325V5.99999H5V4.63601ZM4 5.99999V4.63601C4 3.58148 4.29339 2.65754 4.91049 1.99307C5.53252 1.32329 6.42675 0.978302 7.5014 0.978302C8.57583 0.978302 9.46952 1.32233 10.091 1.99162C10.7076 2.65557 11 3.57896 11 4.63325V5.99999H12C12.5523 5.99999 13 6.44771 13 6.99999V13C13 13.5523 12.5523 14 12 14H3C2.44772 14 2 13.5523 2 13V6.99999C2 6.44771 2.44772 5.99999 3 5.99999H4ZM3 6.99999H12V13H3V6.99999Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}):h.createElement("path",{d:"M9 3.63601C9 2.76044 9.24207 2.11211 9.64154 1.68623C10.0366 1.26502 10.6432 1 11.5014 1C12.4485 1 13.0839 1.30552 13.4722 1.80636C13.8031 2.23312 14 2.84313 14 3.63325H15C15 2.68242 14.7626 1.83856 14.2625 1.19361C13.6389 0.38943 12.6743 0 11.5014 0C10.4294 0 9.53523 0.337871 8.91218 1.0021C8.29351 1.66167 8 2.58135 8 3.63601V6H1C0.447715 6 0 6.44772 0 7V13C0 13.5523 0.447715 14 1 14H10C10.5523 14 11 13.5523 11 13V7C11 6.44772 10.5523 6 10 6H9V3.63601ZM1 7H10V13H1V7Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}function vi({value:e,onUpdate:t,settings:n,innerLabelTrim:r}){const{id:o,setSettings:i}=Re(),{lock:s,locked:a}=n;return h.createElement(Jg,{withLock:s},s&&h.createElement(e1,{locked:a,onClick:()=>i({locked:!a})}),Object.keys(e).map((c,l)=>h.createElement(Qg,{id:l===0?o:`${o}.${c}`,key:c,valueKey:c,value:e,settings:n[c],onUpdate:t,innerLabelTrim:r})))}const Pc=(e,t)=>{const n={};let r=0,o=1/0;Object.entries(e).forEach(([i,s])=>{n[i]=fc(q({value:s},t[i])).settings,r=Math.max(r,n[i].step),o=Math.min(o,n[i].pad)});for(let i in n){const{step:s,min:a,max:c}=t[i]||{};!isFinite(s)&&(!isFinite(a)||!isFinite(c))&&(n[i].step=r,n[i].pad=o)}return n},t1=["lock"],n1=["value"];function r1(e){const t=Fe().array().length(e).every.number(),n=r=>{if(!r||typeof r!="object")return!1;const o=Object.values(r);return o.length===e&&o.every(i=>isFinite(i))};return r=>t.test(r)||n(r)}function o1(e){return Array.isArray(e)?"array":"object"}function Tn(e,t,n){return o1(e)===t?e:t==="array"?Object.values(e):Mh(e,n)}const i1=(e,t,n)=>{const r=Tn(e,"object",t.keys);for(let s in r)r[s]=dc(r[s],t[s]);const o=Object.keys(r);let i={};if(o.length===t.keys.length)i=r;else{const s=Tn(n,"object",t.keys);if(o.length===1&&t.locked){const a=o[0],c=r[a],l=s[a],u=l!==0?c/l:1;for(let f in s)f===a?i[a]=c:i[f]=s[f]*u}else i=q(q({},s),r)}return Tn(i,t.format,t.keys)},s1=(e,t)=>Tn(e,"object",t.keys),a1=e=>!!e&&("step"in e||"min"in e||"max"in e);function c1(e,t,n=[]){const{lock:r=!1}=t,o=ne(t,t1),i=Array.isArray(e)?"array":"object",s=i==="object"?Object.keys(e):n,a=Tn(e,"object",s),c=a1(o)?s.reduce((u,f)=>Object.assign(u,{[f]:o}),{}):o,l=Pc(a,c);return{value:i==="array"?e:a,settings:q(q({},l),{},{format:i,keys:s,lock:r,locked:!1})}}function Ac(e){return{schema:r1(e.length),normalize:t=>{let{value:n}=t,r=ne(t,n1);return c1(n,r,e)},format:(t,n)=>s1(t,n),sanitize:(t,n,r)=>i1(t,n,r)}}var l1={grad:.9,turn:360,rad:360/(2*Math.PI)},ht=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},$e=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},Je=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e>t?e:t},Ic=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Ts=function(e){return{r:Je(e.r,0,255),g:Je(e.g,0,255),b:Je(e.b,0,255),a:Je(e.a)}},Zr=function(e){return{r:$e(e.r),g:$e(e.g),b:$e(e.b),a:$e(e.a,3)}},u1=/^#([0-9a-f]{3,8})$/i,tr=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Dc=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:60*(a<0?a+6:a),s:i?s/i*100:0,v:i/255*100,a:o}},Mc=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),s=r*(1-n),a=r*(1-(t-i)*n),c=r*(1-(1-t+i)*n),l=i%6;return{r:255*[r,a,s,s,c,r][l],g:255*[c,r,r,a,s,s][l],b:255*[s,s,c,r,r,a][l],a:o}},ks=function(e){return{h:Ic(e.h),s:Je(e.s,0,100),l:Je(e.l,0,100),a:Je(e.a)}},Rs=function(e){return{h:$e(e.h),s:$e(e.s),l:$e(e.l),a:$e(e.a,3)}},Os=function(e){return Mc((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},kn=function(e){return{h:(t=Dc(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},d1=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,f1=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,p1=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,h1=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Do={string:[[function(e){var t=u1.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?$e(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?$e(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=p1.exec(e)||h1.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Ts({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=d1.exec(e)||f1.exec(e);if(!t)return null;var n,r,o=ks({h:(n=t[1],r=t[2],r===void 0&&(r="deg"),Number(n)*(l1[r]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return Os(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=o===void 0?1:o;return ht(t)&&ht(n)&&ht(r)?Ts({r:Number(t),g:Number(n),b:Number(r),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,o=e.a,i=o===void 0?1:o;if(!ht(t)||!ht(n)||!ht(r))return null;var s=ks({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return Os(s)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=o===void 0?1:o;if(!ht(t)||!ht(n)||!ht(r))return null;var s=function(a){return{h:Ic(a.h),s:Je(a.s,0,100),v:Je(a.v,0,100),a:Je(a.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return Mc(s)},"hsv"]]},Ps=function(e,t){for(var n=0;n=.5},e.prototype.toHex=function(){return t=Zr(this.rgba),n=t.r,r=t.g,o=t.b,s=(i=t.a)<1?tr($e(255*i)):"","#"+tr(n)+tr(r)+tr(o)+s;var t,n,r,o,i,s},e.prototype.toRgb=function(){return Zr(this.rgba)},e.prototype.toRgbString=function(){return t=Zr(this.rgba),n=t.r,r=t.g,o=t.b,(i=t.a)<1?"rgba("+n+", "+r+", "+o+", "+i+")":"rgb("+n+", "+r+", "+o+")";var t,n,r,o,i},e.prototype.toHsl=function(){return Rs(kn(this.rgba))},e.prototype.toHslString=function(){return t=Rs(kn(this.rgba)),n=t.h,r=t.s,o=t.l,(i=t.a)<1?"hsla("+n+", "+r+"%, "+o+"%, "+i+")":"hsl("+n+", "+r+"%, "+o+"%)";var t,n,r,o,i},e.prototype.toHsv=function(){return t=Dc(this.rgba),{h:$e(t.h),s:$e(t.s),v:$e(t.v),a:$e(t.a,3)};var t},e.prototype.invert=function(){return Ie({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),Ie(Qr(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),Ie(Qr(this.rgba,-t))},e.prototype.grayscale=function(){return Ie(Qr(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),Ie(As(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),Ie(As(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?Ie({r:(n=this.rgba).r,g:n.g,b:n.b,a:t}):$e(this.rgba.a,3);var n},e.prototype.hue=function(t){var n=kn(this.rgba);return typeof t=="number"?Ie({h:t,s:n.s,l:n.l,a:n.a}):$e(n.h)},e.prototype.isEqual=function(t){return this.toHex()===Ie(t).toHex()},e}(),Ie=function(e){return e instanceof Mo?e:new Mo(e)},Is=[],m1=function(e){e.forEach(function(t){Is.indexOf(t)<0&&(t(Mo,Do),Is.push(t))})};function b1(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var o in n)r[n[o]]=o;var i={};e.prototype.toName=function(s){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var a,c,l=r[this.toHex()];if(l)return l;if(s!=null&&s.closest){var u=this.toRgb(),f=1/0,p="black";if(!i.length)for(var g in n)i[g]=new e(n[g]).toRgb();for(var m in n){var b=(a=u,c=i[m],Math.pow(a.r-c.r,2)+Math.pow(a.g-c.g,2)+Math.pow(a.b-c.b,2));b=0||(o[n]=e[n]);return o}function jo(e){var t=d.useRef(e),n=d.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var ln=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:w.buttons>0)&&o.current?i(Ds(o.current,w,a.current)):b(!1)},m=function(){return b(!1)};function b(w){var v=c.current,y=Lo(o.current),C=w?y.addEventListener:y.removeEventListener;C(v?"touchmove":"mousemove",g),C(v?"touchend":"mouseup",m)}return[function(w){var v=w.nativeEvent,y=o.current;if(y&&(Ms(v),!function(S,E){return E&&!Rn(S)}(v,c.current)&&y)){if(Rn(v)){c.current=!0;var C=v.changedTouches||[];C.length&&(a.current=C[0].identifier)}y.focus(),i(Ds(y,v,a.current)),b(!0)}},function(w){var v=w.which||w.keyCode;v<37||v>40||(w.preventDefault(),s({left:v===39?.05:v===37?-.05:0,top:v===40?.05:v===38?-.05:0}))},b]},[s,i]),u=l[0],f=l[1],p=l[2];return d.useEffect(function(){return p},[p]),h.createElement("div",gn({},r,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),Kn=function(e){return e.filter(Boolean).join(" ")},Ei=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,i=Kn(["react-colorful__pointer",e.className]);return h.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},h.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},je=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Lc=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:je(e.h),s:je(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:je(o/2),a:je(r,2)}},Fo=function(e){var t=Lc(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},eo=function(e){var t=Lc(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},Fc=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),s=r*(1-n),a=r*(1-(t-i)*n),c=r*(1-(1-t+i)*n),l=i%6;return{r:je(255*[r,a,s,s,c,r][l]),g:je(255*[c,r,r,a,s,s][l]),b:je(255*[s,s,c,r,r,a][l]),a:je(o,2)}},zc=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:je(60*(a<0?a+6:a)),s:je(i?s/i*100:0),v:je(i/255*100),a:o}},Nc=h.memo(function(e){var t=e.hue,n=e.onChange,r=Kn(["react-colorful__hue",e.className]);return h.createElement("div",{className:r},h.createElement(wi,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:ln(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":je(t),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(Ei,{className:"react-colorful__hue-pointer",left:t/360,color:Fo({h:t,s:100,v:100,a:1})})))}),Vc=h.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:Fo({h:t.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:r},h.createElement(wi,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:ln(t.s+100*o.left,0,100),v:ln(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+je(t.s)+"%, Brightness "+je(t.v)+"%"},h.createElement(Ei,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:Fo(t)})))}),$i=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0};function Bc(e,t,n){var r=jo(n),o=d.useState(function(){return e.toHsva(t)}),i=o[0],s=o[1],a=d.useRef({color:t,hsva:i});d.useEffect(function(){if(!e.equal(t,a.current.color)){var l=e.toHsva(t);a.current={hsva:l,color:t},s(l)}},[t,e]),d.useEffect(function(){var l;$i(i,a.current.hsva)||e.equal(l=e.fromHsva(i),a.current.color)||(a.current={hsva:i,color:l},r(l))},[i,e,r]);var c=d.useCallback(function(l){s(function(u){return Object.assign({},u,l)})},[]);return[i,c]}var y1=typeof window<"u"?d.useLayoutEffect:d.useEffect,v1=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},js=new Map,Wc=function(e){y1(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!js.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,js.set(t,n);var r=v1();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},x1=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,i=e.onChange,s=xi(e,["className","colorModel","color","onChange"]),a=d.useRef(null);Wc(a);var c=Bc(n,o,i),l=c[0],u=c[1],f=Kn(["react-colorful",t]);return h.createElement("div",gn({},s,{ref:a,className:f}),h.createElement(Vc,{hsva:l,onChange:u}),h.createElement(Nc,{hue:l.h,onChange:u,className:"react-colorful__last-control"}))},w1=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+eo(Object.assign({},n,{a:0}))+", "+eo(Object.assign({},n,{a:1}))+")"},i=Kn(["react-colorful__alpha",t]),s=je(100*n.a);return h.createElement("div",{className:i},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement(wi,{onMove:function(a){r({a:a.left})},onKey:function(a){r({a:ln(n.a+a.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(Ei,{className:"react-colorful__alpha-pointer",left:n.a,color:eo(n)})))},E1=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,i=e.onChange,s=xi(e,["className","colorModel","color","onChange"]),a=d.useRef(null);Wc(a);var c=Bc(n,o,i),l=c[0],u=c[1],f=Kn(["react-colorful",t]);return h.createElement("div",gn({},s,{ref:a,className:f}),h.createElement(Vc,{hsva:l,onChange:u}),h.createElement(Nc,{hue:l.h,onChange:u}),h.createElement(w1,{hsva:l,onChange:u,className:"react-colorful__last-control"}))},$1={defaultColor:{r:0,g:0,b:0,a:1},toHsva:zc,fromHsva:Fc,equal:$i},C1=function(e){return h.createElement(E1,gn({},e,{colorModel:$1}))},_1={defaultColor:{r:0,g:0,b:0},toHsva:function(e){return zc({r:e.r,g:e.g,b:e.b,a:1})},fromHsva:function(e){return{r:(t=Fc(e)).r,g:t.g,b:t.b};var t},equal:$i},S1=function(e){return h.createElement(x1,gn({},e,{colorModel:_1}))};function Nv(e,t,n,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,n,i):s(t,n))||i);return o>3&&i&&Object.defineProperty(t,n,i),i}function mn(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(u){try{l(r.next(u))}catch(f){s(f)}}function c(u){try{l(r.throw(u))}catch(f){s(f)}}function l(u){u.done?i(u.value):o(u.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}function bn(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(l){return function(u){return c([l,u])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(n=0)),n;)try{if(r=1,o&&(i=l[0]&2?o.return:l[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;switch(o=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,o=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function k1(){for(var e=[],t=0;t0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function O1(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=R1.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var P1=[".DS_Store","Thumbs.db"];function A1(e){return mn(this,void 0,void 0,function(){return bn(this,function(t){return vr(e)&&I1(e)?[2,L1(e.dataTransfer,e.type)]:D1(e)?[2,M1(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,j1(e)]:[2,[]]})})}function I1(e){return vr(e.dataTransfer)}function D1(e){return vr(e)&&vr(e.target)}function vr(e){return typeof e=="object"&&e!==null}function M1(e){return zo(e.target.files).map(function(t){return Gn(t)})}function j1(e){return mn(this,void 0,void 0,function(){var t;return bn(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return Gn(r)})]}})})}function L1(e,t){return mn(this,void 0,void 0,function(){var n,r;return bn(this,function(o){switch(o.label){case 0:return e===null?[2,[]]:e.items?(n=zo(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(F1))]):[3,2];case 1:return r=o.sent(),[2,Ls(Hc(r))];case 2:return[2,Ls(zo(e.files).map(function(i){return Gn(i)}))]}})})}function Ls(e){return e.filter(function(t){return P1.indexOf(t.name)===-1})}function zo(e){if(e===null)return[];for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nn)return[!1,Ws(n)];if(e.sizen)return[!1,Ws(n)]}return[!0,null]}function $n(e){return e!=null}function Q1(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,s=e.maxFiles;return!i&&t.length>1||i&&s>=1&&t.length>s?!1:t.every(function(a){var c=Gc(a,n),l=Vs(c,1),u=l[0],f=Yc(a,r,o),p=Vs(f,1),g=p[0];return u&&g})}function xr(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function nr(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Us(e){e.preventDefault()}function J1(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function e0(e){return e.indexOf("Edge/")!==-1}function t0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return J1(e)||e0(e)}function at(){for(var e=arguments.length,t=new Array(e),n=0;n1?o-1:0),s=1;se.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function b0(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var Ei=d.forwardRef(function(e,t){var n=e.children,r=wr(e,s0),o=Zc(r),i=o.open,s=wr(o,a0);return d.useImperativeHandle(t,function(){return{open:i}},[i]),h.createElement(d.Fragment,null,n(he(he({},s),{},{open:i})))});Ei.displayName="Dropzone";var Xc={disabled:!1,getFilesFromEvent:A1,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0};Ei.defaultProps=Xc;Ei.propTypes={children:ae.func,accept:ae.oneOfType([ae.string,ae.arrayOf(ae.string)]),multiple:ae.bool,preventDropOnDocument:ae.bool,noClick:ae.bool,noKeyboard:ae.bool,noDrag:ae.bool,noDragEventsBubbling:ae.bool,minSize:ae.number,maxSize:ae.number,maxFiles:ae.number,disabled:ae.bool,getFilesFromEvent:ae.func,onFileDialogCancel:ae.func,onFileDialogOpen:ae.func,useFsAccessApi:ae.bool,onDragEnter:ae.func,onDragLeave:ae.func,onDragOver:ae.func,onDrop:ae.func,onDropAccepted:ae.func,onDropRejected:ae.func,validator:ae.func};var Bo={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function Zc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=he(he({},Xc),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,s=t.minSize,a=t.multiple,c=t.maxFiles,l=t.onDragEnter,u=t.onDragLeave,f=t.onDragOver,p=t.onDrop,g=t.onDropAccepted,m=t.onDropRejected,b=t.onFileDialogCancel,w=t.onFileDialogOpen,v=t.useFsAccessApi,y=t.preventDropOnDocument,C=t.noClick,_=t.noKeyboard,$=t.noDrag,E=t.noDragEventsBubbling,T=t.validator,R=d.useMemo(function(){return typeof w=="function"?w:Ks},[w]),F=d.useMemo(function(){return typeof b=="function"?b:Ks},[b]),j=d.useRef(null),z=d.useRef(null),A=d.useReducer(y0,Bo),N=to(A,2),L=N[0],D=N[1],V=L.isFocused,U=L.isFileDialogActive,Y=L.draggedFiles,Q=d.useRef(typeof window<"u"&&window.isSecureContext&&v&&n0()),de=function(){!Q.current&&U&&setTimeout(function(){if(z.current){var P=z.current.files;P.length||(D({type:"closeDialog"}),F())}},300)};d.useEffect(function(){return window.addEventListener("focus",de,!1),function(){window.removeEventListener("focus",de,!1)}},[z,U,F,Q]);var ne=d.useRef([]),ye=function(P){j.current&&j.current.contains(P.target)||(P.preventDefault(),ne.current=[])};d.useEffect(function(){return y&&(document.addEventListener("dragover",Hs,!1),document.addEventListener("drop",ye,!1)),function(){y&&(document.removeEventListener("dragover",Hs),document.removeEventListener("drop",ye))}},[j,y]);var pe=d.useCallback(function(O){O.preventDefault(),O.persist(),Ye(O),ne.current=[].concat(u0(ne.current),[O.target]),nr(O)&&Promise.resolve(o(O)).then(function(P){xr(O)&&!E||(D({draggedFiles:P,isDragActive:!0,type:"setDraggedFiles"}),l&&l(O))})},[o,l,E]),re=d.useCallback(function(O){O.preventDefault(),O.persist(),Ye(O);var P=nr(O);if(P&&O.dataTransfer)try{O.dataTransfer.dropEffect="copy"}catch{}return P&&f&&f(O),!1},[f,E]),le=d.useCallback(function(O){O.preventDefault(),O.persist(),Ye(O);var P=ne.current.filter(function(W){return j.current&&j.current.contains(W)}),M=P.indexOf(O.target);M!==-1&&P.splice(M,1),ne.current=P,!(P.length>0)&&(D({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),nr(O)&&u&&u(O))},[j,u,E]),ie=d.useCallback(function(O,P){var M=[],W=[];O.forEach(function(X){var se=Gc(X,n),K=to(se,2),Ve=K[0],Dt=K[1],st=Yc(X,s,i),pt=to(st,2),vn=pt[0],Yt=pt[1],xn=T?T(X):null;if(Ve&&vn&&!xn)M.push(X);else{var qt=[Dt,Yt];xn&&(qt=qt.concat(xn)),W.push({file:X,errors:qt.filter(function(Dl){return Dl})})}}),(!a&&M.length>1||a&&c>=1&&M.length>c)&&(M.forEach(function(X){W.push({file:X,errors:[Z1]})}),M.splice(0)),D({acceptedFiles:M,fileRejections:W,type:"setFiles"}),p&&p(M,W,P),W.length>0&&m&&m(W,P),M.length>0&&g&&g(M,P)},[D,a,n,s,i,c,p,g,m,T]),Ce=d.useCallback(function(O){O.preventDefault(),O.persist(),Ye(O),ne.current=[],nr(O)&&Promise.resolve(o(O)).then(function(P){xr(O)&&!E||ie(P,O)}),D({type:"reset"})},[o,ie,E]),_e=d.useCallback(function(){if(Q.current){D({type:"openDialog"}),R();var O={multiple:a,types:r0(n)};window.showOpenFilePicker(O).then(function(P){return o(P)}).then(function(P){ie(P,null),D({type:"closeDialog"})}).catch(function(P){o0(P)?(F(P),D({type:"closeDialog"})):i0(P)&&(Q.current=!1,z.current&&(z.current.value=null,z.current.click()))});return}z.current&&(D({type:"openDialog"}),R(),z.current.value=null,z.current.click())},[D,R,F,v,ie,n,a]),ve=d.useCallback(function(O){!j.current||!j.current.isEqualNode(O.target)||(O.key===" "||O.key==="Enter"||O.keyCode===32||O.keyCode===13)&&(O.preventDefault(),_e())},[j,_e]),it=d.useCallback(function(){D({type:"focus"})},[]),dt=d.useCallback(function(){D({type:"blur"})},[]),_t=d.useCallback(function(){C||(t0()?setTimeout(_e,0):_e())},[C,_e]),Ne=function(P){return r?null:P},ft=function(P){return _?null:Ne(P)},Pe=function(P){return $?null:Ne(P)},Ye=function(P){E&&P.stopPropagation()},Ut=d.useMemo(function(){return function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P=O.refKey,M=P===void 0?"ref":P,W=O.role,X=O.onKeyDown,se=O.onFocus,K=O.onBlur,Ve=O.onClick,Dt=O.onDragEnter,st=O.onDragOver,pt=O.onDragLeave,vn=O.onDrop,Yt=wr(O,c0);return he(he(Vo({onKeyDown:ft(at(X,ve)),onFocus:ft(at(se,it)),onBlur:ft(at(K,dt)),onClick:Ne(at(Ve,_t)),onDragEnter:Pe(at(Dt,pe)),onDragOver:Pe(at(st,re)),onDragLeave:Pe(at(pt,le)),onDrop:Pe(at(vn,Ce)),role:typeof W=="string"&&W!==""?W:"button"},M,j),!r&&!_?{tabIndex:0}:{}),Yt)}},[j,ve,it,dt,_t,pe,re,le,Ce,_,$,r]),Kt=d.useCallback(function(O){O.stopPropagation()},[]),Gt=d.useMemo(function(){return function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P=O.refKey,M=P===void 0?"ref":P,W=O.onChange,X=O.onClick,se=wr(O,l0),K=Vo({accept:n,multiple:a,type:"file",style:{display:"none"},onChange:Ne(at(W,Ce)),onClick:Ne(at(X,Kt)),tabIndex:-1},M,z);return he(he({},K),se)}},[z,n,a,Ce,r]),x=Y.length,k=x>0&&Q1({files:Y,accept:n,minSize:s,maxSize:i,multiple:a,maxFiles:c}),I=x>0&&!k;return he(he({},L),{},{isDragAccept:k,isDragReject:I,isFocused:V&&!r,getRootProps:Ut,getInputProps:Gt,rootRef:j,inputRef:z,open:Ne(_e)})}function y0(e,t){switch(t.type){case"focus":return he(he({},e),{},{isFocused:!0});case"blur":return he(he({},e),{},{isFocused:!1});case"openDialog":return he(he({},Bo),{},{isFileDialogActive:!0});case"closeDialog":return he(he({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return he(he({},e),{},{draggedFiles:r,isDragActive:n});case"setFiles":return he(he({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return he({},Bo);default:return e}}function Ks(){}function v0(e){let t;const n=new Set,r=(l,u)=>{const f=typeof l=="function"?l(t):l;if(f!==t){const p=t;t=u?f:Object.assign({},t,f),n.forEach(g=>g(t,p))}},o=()=>t,i=(l,u=o,f=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let p=u(t);function g(){const m=u(t);if(!f(p,m)){const b=p;l(p=m,b)}}return n.add(g),()=>n.delete(g)},c={setState:r,getState:o,subscribe:(l,u,f)=>u||f?i(l,u,f):(n.add(l),()=>n.delete(l)),destroy:()=>n.clear()};return t=e(r,o,c),c}const x0=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Gs=x0?d.useEffect:d.useLayoutEffect;function w0(e){const t=typeof e=="function"?v0(e):e,n=(r=t.getState,o=Object.is)=>{const[,i]=d.useReducer(w=>w+1,0),s=t.getState(),a=d.useRef(s),c=d.useRef(r),l=d.useRef(o),u=d.useRef(!1),f=d.useRef();f.current===void 0&&(f.current=r(s));let p,g=!1;(a.current!==s||c.current!==r||l.current!==o||u.current)&&(p=r(s),g=!o(f.current,p)),Gs(()=>{g&&(f.current=p),a.current=s,c.current=r,l.current=o,u.current=!1});const m=d.useRef(s);Gs(()=>{const w=()=>{try{const y=t.getState(),C=c.current(y);l.current(f.current,C)||(a.current=y,f.current=C,i())}catch{u.current=!0,i()}},v=t.subscribe(w);return t.getState()!==m.current&&w(),v},[]);const b=g?p:f.current;return d.useDebugValue(b),b};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const r=[n,t];return{next(){const o=r.length<=0;return{value:r.shift(),done:o}}}},n}const $0=e=>(t,n,r)=>{const o=r.subscribe;return r.subscribe=(s,a,c)=>{let l=s;if(a){const u=(c==null?void 0:c.equalityFn)||Object.is;let f=s(r.getState());l=p=>{const g=s(p);if(!u(f,g)){const m=f;a(f=g,m)}},c!=null&&c.fireImmediately&&a(f,f)}return o(l)},e(t,n,r)};/*! +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qc(e,t){if(e){if(typeof e=="string")return No(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return No(e,t)}}function No(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function b0(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var Ci=d.forwardRef(function(e,t){var n=e.children,r=wr(e,s0),o=Zc(r),i=o.open,s=wr(o,a0);return d.useImperativeHandle(t,function(){return{open:i}},[i]),h.createElement(d.Fragment,null,n(ge(ge({},s),{},{open:i})))});Ci.displayName="Dropzone";var Xc={disabled:!1,getFilesFromEvent:A1,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0};Ci.defaultProps=Xc;Ci.propTypes={children:ce.func,accept:ce.oneOfType([ce.string,ce.arrayOf(ce.string)]),multiple:ce.bool,preventDropOnDocument:ce.bool,noClick:ce.bool,noKeyboard:ce.bool,noDrag:ce.bool,noDragEventsBubbling:ce.bool,minSize:ce.number,maxSize:ce.number,maxFiles:ce.number,disabled:ce.bool,getFilesFromEvent:ce.func,onFileDialogCancel:ce.func,onFileDialogOpen:ce.func,useFsAccessApi:ce.bool,onDragEnter:ce.func,onDragLeave:ce.func,onDragOver:ce.func,onDrop:ce.func,onDropAccepted:ce.func,onDropRejected:ce.func,validator:ce.func};var Bo={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function Zc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=ge(ge({},Xc),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,s=t.minSize,a=t.multiple,c=t.maxFiles,l=t.onDragEnter,u=t.onDragLeave,f=t.onDragOver,p=t.onDrop,g=t.onDropAccepted,m=t.onDropRejected,b=t.onFileDialogCancel,w=t.onFileDialogOpen,v=t.useFsAccessApi,y=t.preventDropOnDocument,C=t.noClick,S=t.noKeyboard,E=t.noDrag,$=t.noDragEventsBubbling,T=t.validator,R=d.useMemo(function(){return typeof w=="function"?w:Gs},[w]),F=d.useMemo(function(){return typeof b=="function"?b:Gs},[b]),j=d.useRef(null),z=d.useRef(null),A=d.useReducer(y0,Bo),N=to(A,2),L=N[0],D=N[1],V=L.isFocused,U=L.isFileDialogActive,Y=L.draggedFiles,J=d.useRef(typeof window<"u"&&window.isSecureContext&&v&&n0()),pe=function(){!J.current&&U&&setTimeout(function(){if(z.current){var P=z.current.files;P.length||(D({type:"closeDialog"}),F())}},300)};d.useEffect(function(){return window.addEventListener("focus",pe,!1),function(){window.removeEventListener("focus",pe,!1)}},[z,U,F,J]);var re=d.useRef([]),ve=function(P){j.current&&j.current.contains(P.target)||(P.preventDefault(),re.current=[])};d.useEffect(function(){return y&&(document.addEventListener("dragover",Us,!1),document.addEventListener("drop",ve,!1)),function(){y&&(document.removeEventListener("dragover",Us),document.removeEventListener("drop",ve))}},[j,y]);var he=d.useCallback(function(O){O.preventDefault(),O.persist(),Ye(O),re.current=[].concat(u0(re.current),[O.target]),nr(O)&&Promise.resolve(o(O)).then(function(P){xr(O)&&!$||(D({draggedFiles:P,isDragActive:!0,type:"setDraggedFiles"}),l&&l(O))})},[o,l,$]),oe=d.useCallback(function(O){O.preventDefault(),O.persist(),Ye(O);var P=nr(O);if(P&&O.dataTransfer)try{O.dataTransfer.dropEffect="copy"}catch{}return P&&f&&f(O),!1},[f,$]),ue=d.useCallback(function(O){O.preventDefault(),O.persist(),Ye(O);var P=re.current.filter(function(W){return j.current&&j.current.contains(W)}),M=P.indexOf(O.target);M!==-1&&P.splice(M,1),re.current=P,!(P.length>0)&&(D({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),nr(O)&&u&&u(O))},[j,u,$]),se=d.useCallback(function(O,P){var M=[],W=[];O.forEach(function(X){var ae=Gc(X,n),K=to(ae,2),Ve=K[0],Dt=K[1],st=Yc(X,s,i),pt=to(st,2),vn=pt[0],Yt=pt[1],xn=T?T(X):null;if(Ve&&vn&&!xn)M.push(X);else{var qt=[Dt,Yt];xn&&(qt=qt.concat(xn)),W.push({file:X,errors:qt.filter(function(Dl){return Dl})})}}),(!a&&M.length>1||a&&c>=1&&M.length>c)&&(M.forEach(function(X){W.push({file:X,errors:[Z1]})}),M.splice(0)),D({acceptedFiles:M,fileRejections:W,type:"setFiles"}),p&&p(M,W,P),W.length>0&&m&&m(W,P),M.length>0&&g&&g(M,P)},[D,a,n,s,i,c,p,g,m,T]),Ce=d.useCallback(function(O){O.preventDefault(),O.persist(),Ye(O),re.current=[],nr(O)&&Promise.resolve(o(O)).then(function(P){xr(O)&&!$||se(P,O)}),D({type:"reset"})},[o,se,$]),_e=d.useCallback(function(){if(J.current){D({type:"openDialog"}),R();var O={multiple:a,types:r0(n)};window.showOpenFilePicker(O).then(function(P){return o(P)}).then(function(P){se(P,null),D({type:"closeDialog"})}).catch(function(P){o0(P)?(F(P),D({type:"closeDialog"})):i0(P)&&(J.current=!1,z.current&&(z.current.value=null,z.current.click()))});return}z.current&&(D({type:"openDialog"}),R(),z.current.value=null,z.current.click())},[D,R,F,v,se,n,a]),xe=d.useCallback(function(O){!j.current||!j.current.isEqualNode(O.target)||(O.key===" "||O.key==="Enter"||O.keyCode===32||O.keyCode===13)&&(O.preventDefault(),_e())},[j,_e]),it=d.useCallback(function(){D({type:"focus"})},[]),dt=d.useCallback(function(){D({type:"blur"})},[]),_t=d.useCallback(function(){C||(t0()?setTimeout(_e,0):_e())},[C,_e]),Ne=function(P){return r?null:P},ft=function(P){return S?null:Ne(P)},Oe=function(P){return E?null:Ne(P)},Ye=function(P){$&&P.stopPropagation()},Ut=d.useMemo(function(){return function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P=O.refKey,M=P===void 0?"ref":P,W=O.role,X=O.onKeyDown,ae=O.onFocus,K=O.onBlur,Ve=O.onClick,Dt=O.onDragEnter,st=O.onDragOver,pt=O.onDragLeave,vn=O.onDrop,Yt=wr(O,c0);return ge(ge(Vo({onKeyDown:ft(at(X,xe)),onFocus:ft(at(ae,it)),onBlur:ft(at(K,dt)),onClick:Ne(at(Ve,_t)),onDragEnter:Oe(at(Dt,he)),onDragOver:Oe(at(st,oe)),onDragLeave:Oe(at(pt,ue)),onDrop:Oe(at(vn,Ce)),role:typeof W=="string"&&W!==""?W:"button"},M,j),!r&&!S?{tabIndex:0}:{}),Yt)}},[j,xe,it,dt,_t,he,oe,ue,Ce,S,E,r]),Kt=d.useCallback(function(O){O.stopPropagation()},[]),Gt=d.useMemo(function(){return function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P=O.refKey,M=P===void 0?"ref":P,W=O.onChange,X=O.onClick,ae=wr(O,l0),K=Vo({accept:n,multiple:a,type:"file",style:{display:"none"},onChange:Ne(at(W,Ce)),onClick:Ne(at(X,Kt)),tabIndex:-1},M,z);return ge(ge({},K),ae)}},[z,n,a,Ce,r]),x=Y.length,k=x>0&&Q1({files:Y,accept:n,minSize:s,maxSize:i,multiple:a,maxFiles:c}),I=x>0&&!k;return ge(ge({},L),{},{isDragAccept:k,isDragReject:I,isFocused:V&&!r,getRootProps:Ut,getInputProps:Gt,rootRef:j,inputRef:z,open:Ne(_e)})}function y0(e,t){switch(t.type){case"focus":return ge(ge({},e),{},{isFocused:!0});case"blur":return ge(ge({},e),{},{isFocused:!1});case"openDialog":return ge(ge({},Bo),{},{isFileDialogActive:!0});case"closeDialog":return ge(ge({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return ge(ge({},e),{},{draggedFiles:r,isDragActive:n});case"setFiles":return ge(ge({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return ge({},Bo);default:return e}}function Gs(){}function v0(e){let t;const n=new Set,r=(l,u)=>{const f=typeof l=="function"?l(t):l;if(f!==t){const p=t;t=u?f:Object.assign({},t,f),n.forEach(g=>g(t,p))}},o=()=>t,i=(l,u=o,f=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let p=u(t);function g(){const m=u(t);if(!f(p,m)){const b=p;l(p=m,b)}}return n.add(g),()=>n.delete(g)},c={setState:r,getState:o,subscribe:(l,u,f)=>u||f?i(l,u,f):(n.add(l),()=>n.delete(l)),destroy:()=>n.clear()};return t=e(r,o,c),c}const x0=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Ys=x0?d.useEffect:d.useLayoutEffect;function w0(e){const t=typeof e=="function"?v0(e):e,n=(r=t.getState,o=Object.is)=>{const[,i]=d.useReducer(w=>w+1,0),s=t.getState(),a=d.useRef(s),c=d.useRef(r),l=d.useRef(o),u=d.useRef(!1),f=d.useRef();f.current===void 0&&(f.current=r(s));let p,g=!1;(a.current!==s||c.current!==r||l.current!==o||u.current)&&(p=r(s),g=!o(f.current,p)),Ys(()=>{g&&(f.current=p),a.current=s,c.current=r,l.current=o,u.current=!1});const m=d.useRef(s);Ys(()=>{const w=()=>{try{const y=t.getState(),C=c.current(y);l.current(f.current,C)||(a.current=y,f.current=C,i())}catch{u.current=!0,i()}},v=t.subscribe(w);return t.getState()!==m.current&&w(),v},[]);const b=g?p:f.current;return d.useDebugValue(b),b};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const r=[n,t];return{next(){const o=r.length<=0;return{value:r.shift(),done:o}}}},n}const E0=e=>(t,n,r)=>{const o=r.subscribe;return r.subscribe=(s,a,c)=>{let l=s;if(a){const u=(c==null?void 0:c.equalityFn)||Object.is;let f=s(r.getState());l=p=>{const g=s(p);if(!u(f,g)){const m=f;a(f=g,m)}},c!=null&&c.fireImmediately&&a(f,f)}return o(l)},e(t,n,r)};/*! * isobject * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. - */var E0=function(t){return t!=null&&typeof t=="object"&&Array.isArray(t)===!1};/*! + */var $0=function(t){return t!=null&&typeof t=="object"&&Array.isArray(t)===!1};/*! * is-plain-object * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. - */var C0=E0;function Ys(e){return C0(e)===!0&&Object.prototype.toString.call(e)==="[object Object]"}var Qc=function(t){var n,r;return!(Ys(t)===!1||(n=t.constructor,typeof n!="function")||(r=n.prototype,Ys(r)===!1)||r.hasOwnProperty("isPrototypeOf")===!1)};/*! + */var C0=$0;function qs(e){return C0(e)===!0&&Object.prototype.toString.call(e)==="[object Object]"}var Qc=function(t){var n,r;return!(qs(t)===!1||(n=t.constructor,typeof n!="function")||(r=n.prototype,qs(r)===!1)||r.hasOwnProperty("isPrototypeOf")===!1)};/*! * is-extendable * * Copyright (c) 2015-2017, Jon Schlinkert. * Released under the MIT License. - */var _0=Qc,Ci=function(t){return _0(t)||typeof t=="function"||Array.isArray(t)};/*! + */var _0=Qc,_i=function(t){return _0(t)||typeof t=="function"||Array.isArray(t)};/*! * for-in * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. - */var S0=function(t,n,r){for(var o in t)if(n.call(r,t[o],o,t)===!1)break},T0=Ci,k0=S0;function Jc(e,t){for(var n=arguments.length,r=0;++r * * Copyright (c) 2014-2015, Jon Schlinkert. @@ -104,7 +104,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * * Copyright (c) 2015, Jon Schlinkert. * Licensed under the MIT License. - */var D0=function(e,t){if(e===null||typeof e>"u")throw new TypeError("expected first argument to be an object.");if(typeof t>"u"||typeof Symbol>"u"||typeof Object.getOwnPropertySymbols!="function")return e;for(var n=Object.prototype.propertyIsEnumerable,r=Object(e),o=arguments.length,i=0;++i"u")throw new TypeError("Cannot convert undefined or null to object");qs(e)||(e={});for(var t=1;t"u")throw new TypeError("expected first argument to be an object.");if(typeof t>"u"||typeof Symbol>"u"||typeof Object.getOwnPropertySymbols!="function")return e;for(var n=Object.prototype.propertyIsEnumerable,r=Object(e),o=arguments.length,i=0;++i"u")throw new TypeError("Cannot convert undefined or null to object");Xs(e)||(e={});for(var t=1;t * * Copyright (c) 2015-2017, Jon Schlinkert. @@ -114,7 +114,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * * Copyright (c) 2015, Jon Schlinkert. * Licensed under the MIT License. - */var K0=function(t){return typeof t<"u"&&t!==null&&(typeof t=="object"||typeof t=="function")},Xs=K0,G0=function(t){Xs(t)||(t={});for(var n=arguments.length,r=1;r * * Copyright (c) 2015, Jon Schlinkert. @@ -124,7 +124,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * * Copyright (c) 2014-2015, 2017, Jon Schlinkert. * Released under the MIT License. - */var Z0=W0,Q0=G0,Zs=Qc,Qs=X0,J0=function(e,t,n){if(!Qs(e)||(Array.isArray(t)&&(t=[].concat.apply([],t).join(".")),typeof t!="string"))return e;for(var r=Z0(t,{sep:".",brackets:!0}).filter(em),o=r.length,i=-1,s=e;++ie.filter(Boolean).join(".");function om(e){const t=e.split(".");return[t.pop(),t.join(".")||void 0]}function im(e,t){return Object.entries(Ih(e,t)).reduce((n,[,{value:r,disabled:o,key:i}])=>(n[i]=o?void 0:r,n),{})}function sm(e,t){const n=d.useRef();return(t?In:Vn)(e,n.current)||(n.current=e),n.current}function el(e,t){return d.useMemo(e,sm(t,!0))}function am(e){const t=d.useRef(null),n=d.useRef(null),r=d.useRef(!0);return d.useLayoutEffect(()=>{e||(t.current.style.height="0px",t.current.style.overflow="hidden")},[]),d.useEffect(()=>{if(r.current){r.current=!1;return}let o;const i=t.current,s=()=>{e&&(i.style.removeProperty("height"),i.style.removeProperty("overflow"),n.current.scrollIntoView({behavior:"smooth",block:"nearest"}))};i.addEventListener("transitionend",s,{once:!0});const{height:a}=n.current.getBoundingClientRect();return i.style.height=a+"px",e||(i.style.overflow="hidden",o=window.setTimeout(()=>i.style.height="0px",50)),()=>{i.removeEventListener("transitionend",s),clearTimeout(o)}},[e]),{wrapperRef:t,contentRef:n}}const cm=e=>{const[t,n]=d.useState(e.getVisiblePaths());return d.useEffect(()=>{n(e.getVisiblePaths());const r=e.useStore.subscribe(e.getVisiblePaths,n,{equalityFn:Vn});return()=>r()},[e]),t};function lm(e,t,n){return e.useStore(o=>{const i=q(q({},n),o.data);return im(i,t)},Vn)}function tl(e=3){const t=d.useRef(null),n=d.useRef(null),[r,o]=d.useState(!1),i=d.useCallback(()=>o(!0),[]),s=d.useCallback(()=>o(!1),[]);return d.useLayoutEffect(()=>{if(r){const{bottom:a,top:c,left:l}=t.current.getBoundingClientRect(),{height:u}=n.current.getBoundingClientRect(),f=a+u>window.innerHeight-40?"up":"down";n.current.style.position="fixed",n.current.style.zIndex="10000",n.current.style.left=l+"px",f==="down"?n.current.style.top=a+e+"px":n.current.style.bottom=window.innerHeight-c+e+"px"}},[e,r]),{popinRef:t,wrapperRef:n,shown:r,show:i,hide:s}}m1([b1]);const um={rgb:"toRgb",hsl:"toHsl",hsv:"toHsv",hex:"toHex"};Fe.extend({color:()=>e=>Ie(e).isValid()});const dm=e=>Fe().color().test(e);function nl(e,{format:t,hasAlpha:n,isString:r}){const o=um[t]+(r&&t!=="hex"?"String":""),i=e[o]();return typeof i=="object"&&!n?Dh(i,["a"]):i}const rl=(e,t)=>{const n=Ie(e);if(!n.isValid())throw Error("Invalid color");return nl(n,t)},fm=(e,t)=>nl(Ie(e),q(q({},t),{},{isString:!0,format:"hex"})),pm=({value:e})=>{const t=g1(e),n=t==="name"?"hex":t,r=typeof e=="object"?"a"in e:t==="hex"&&e.length===8||/^(rgba)|(hsla)|(hsva)/.test(e),o={format:n,hasAlpha:r,isString:typeof e=="string"};return{value:rl(e,o),settings:o}};var hm=Object.freeze({__proto__:null,schema:dm,sanitize:rl,format:fm,normalize:pm});const gm=G("div",{position:"relative",boxSizing:"border-box",borderRadius:"$sm",overflow:"hidden",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",backgroundColor:"#fff",backgroundImage:`url('data:image/svg+xml;charset=utf-8,')`,$inputStyle:"",$hover:"",zIndex:1,variants:{active:{true:{$inputStyle:"$accent1"}}},"&::before":{content:'""',position:"absolute",top:0,bottom:0,right:0,left:0,backgroundColor:"currentColor",zIndex:1}}),mm=G("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto",columnGap:"$colGap",alignItems:"center"}),bm=G("div",{width:"$colorPickerWidth",height:"$colorPickerHeight",".react-colorful":{width:"100%",height:"100%",boxShadow:"$level2",cursor:"crosshair"},".react-colorful__saturation":{borderRadius:"$sm $sm 0 0"},".react-colorful__alpha, .react-colorful__hue":{height:10},".react-colorful__last-control":{borderRadius:"0 0 $sm $sm"},".react-colorful__pointer":{height:12,width:12}});function ta(e,t){return t!=="rgb"?Ie(e).toRgb():e}function ym({value:e,displayValue:t,settings:n,onUpdate:r}){const{emitOnEditStart:o,emitOnEditEnd:i}=Oe(),{format:s,hasAlpha:a}=n,{popinRef:c,wrapperRef:l,shown:u,show:f,hide:p}=tl(),g=d.useRef(0),[m,b]=d.useState(()=>ta(e,s)),w=a?C1:S1,v=()=>{b(ta(e,s)),f(),o()},y=()=>{p(),i(),window.clearTimeout(g.current)},C=()=>{g.current=window.setTimeout(y,500)};return d.useEffect(()=>()=>window.clearTimeout(g.current),[]),h.createElement(h.Fragment,null,h.createElement(gm,{ref:c,active:u,onClick:()=>v(),style:{color:t}}),u&&h.createElement(mi,null,h.createElement(Cc,{onPointerUp:y}),h.createElement(bm,{ref:l,onMouseEnter:()=>window.clearTimeout(g.current),onMouseLeave:_=>_.buttons===0&&C()},h.createElement(w,{color:m,onChange:r}))))}function vm(){const{value:e,displayValue:t,label:n,onChange:r,onUpdate:o,settings:i}=Oe();return h.createElement(tt,{input:!0},h.createElement(ot,null,n),h.createElement(mm,null,h.createElement(ym,{value:e,displayValue:t,onChange:r,onUpdate:o,settings:i}),h.createElement(gi,{value:t,onChange:r,onUpdate:o})))}var xm=q({component:vm},hm);function wm(){const{label:e,displayValue:t,onUpdate:n,settings:r}=Oe();return h.createElement(tt,{input:!0},h.createElement(ot,null,e),h.createElement(yi,{value:t,settings:r,onUpdate:n}))}var $m=q({component:wm},Ac(["x","y","z"]));const Em=G("div",{$flexCenter:"",position:"relative",backgroundColor:"$elevation3",borderRadius:"$sm",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",touchAction:"none",$draggable:"",$hover:"","&:active":{cursor:"none"},"&::after":{content:'""',backgroundColor:"$accent2",height:4,width:4,borderRadius:2}}),Cm=G("div",{$flexCenter:"",width:"$joystickWidth",height:"$joystickHeight",borderRadius:"$sm",boxShadow:"$level2",position:"fixed",zIndex:1e4,overflow:"hidden",$draggable:"",transform:"translate(-50%, -50%)",variants:{isOutOfBounds:{true:{backgroundColor:"$elevation1"},false:{backgroundColor:"$elevation3"}}},"> div":{position:"absolute",$flexCenter:"",borderStyle:"solid",borderWidth:1,borderColor:"$highlight1",backgroundColor:"$elevation3",width:"80%",height:"80%","&::after,&::before":{content:'""',position:"absolute",zindex:10,backgroundColor:"$highlight1"},"&::before":{width:"100%",height:1},"&::after":{height:"100%",width:1}},"> span":{position:"relative",zindex:100,width:10,height:10,backgroundColor:"$accent2",borderRadius:"50%"}});function _m({value:e,settings:t,onUpdate:n}){const r=d.useRef(),o=d.useRef(0),i=d.useRef(0),s=d.useRef(1),[a,c]=d.useState(!1),[l,u]=d.useState(!1),[f,p]=Sc(),g=d.useRef(null),m=d.useRef(null);d.useLayoutEffect(()=>{if(a){const{top:A,left:N,width:L,height:D}=g.current.getBoundingClientRect();m.current.style.left=N+L/2+"px",m.current.style.top=A+D/2+"px"}},[a]);const{keys:[b,w],joystick:v}=t,y=v==="invertY"?1:-1,{[b]:{step:C},[w]:{step:_}}=t,$=yt("sizes","joystickWidth"),E=yt("sizes","joystickHeight"),T=parseFloat($)*.8/2,R=parseFloat(E)*.8/2,F=d.useCallback(()=>{r.current||(u(!0),o.current&&p({x:o.current*T}),i.current&&p({y:i.current*-R}),r.current=window.setInterval(()=>{n(A=>{const N=C*o.current*s.current,L=y*_*i.current*s.current;return Array.isArray(A)?{[b]:A[0]+N,[w]:A[1]+L}:{[b]:A[b]+N,[w]:A[w]+L}})},16))},[T,R,n,p,C,_,b,w,y]),j=d.useCallback(()=>{window.clearTimeout(r.current),r.current=void 0,u(!1)},[]);d.useEffect(()=>{function A(N){s.current=uc(N)}return window.addEventListener("keydown",A),window.addEventListener("keyup",A),()=>{window.clearTimeout(r.current),window.removeEventListener("keydown",A),window.removeEventListener("keyup",A)}},[]);const z=Un(({first:A,active:N,delta:[L,D],movement:[V,U]})=>{A&&c(!0);const Y=It(V,-T,T),Q=It(U,-R,R);o.current=Math.abs(V)>Math.abs(Y)?Math.sign(V-Y):0,i.current=Math.abs(U)>Math.abs(Q)?Math.sign(Q-U):0;let de=e[b],ne=e[w];N?(o.current||(de+=L*C*s.current,p({x:Y})),i.current||(ne-=y*D*_*s.current,p({y:Q})),o.current||i.current?F():j(),n({[b]:de,[w]:ne})):(c(!1),o.current=0,i.current=0,p({x:0,y:0}),j())});return h.createElement(Em,be({ref:g},z()),a&&h.createElement(mi,null,h.createElement(Cm,{ref:m,isOutOfBounds:l},h.createElement("div",null),h.createElement("span",{ref:f}))))}const Sm=G("div",{display:"grid",columnGap:"$colGap",variants:{withJoystick:{true:{gridTemplateColumns:"$sizes$rowHeight auto"},false:{gridTemplateColumns:"auto"}}}});function Tm(){const{label:e,displayValue:t,onUpdate:n,settings:r}=Oe();return h.createElement(tt,{input:!0},h.createElement(ot,null,e),h.createElement(Sm,{withJoystick:!!r.joystick},r.joystick&&h.createElement(_m,{value:t,settings:r,onUpdate:n}),h.createElement(yi,{value:t,settings:r,onUpdate:n})))}const km=["joystick"],ol=Ac(["x","y"]),Rm=e=>{let{joystick:t=!0}=e,n=te(e,km);const{value:r,settings:o}=ol.normalize(n);return{value:r,settings:q(q({},o),{},{joystick:t})}};var Om=q(q({component:Tm},ol),{},{normalize:Rm});const Pm=e=>{if(e!==void 0){if(e instanceof File)try{return URL.createObjectURL(e)}catch{return}if(typeof e=="string"&&e.indexOf("blob:")===0)return e;throw Error("Invalid image format [undefined | blob | File].")}},Am=(e,t)=>typeof t=="object"&&"image"in t,Im=({image:e})=>({value:e});var Dm=Object.freeze({__proto__:null,sanitize:Pm,schema:Am,normalize:Im});const Mm=G("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto 20px",columnGap:"$colGap",alignItems:"center"}),jm=G("div",{$flexCenter:"",overflow:"hidden",height:"$rowHeight",background:"$elevation3",textAlign:"center",color:"inherit",borderRadius:"$sm",outline:"none",userSelect:"none",cursor:"pointer",$inputStyle:"",$hover:"",$focusWithin:"",$active:"$accent1 $elevation1",variants:{isDragAccept:{true:{$inputStyle:"$accent1",backgroundColor:"$elevation1"}}}}),Lm=G("div",{boxSizing:"border-box",borderRadius:"$sm",height:"$rowHeight",width:"$rowHeight",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center",variants:{hasImage:{true:{cursor:"pointer",$hover:"",$active:""}}}}),Fm=G("div",{$flexCenter:"",width:"$imagePreviewWidth",height:"$imagePreviewHeight",borderRadius:"$sm",boxShadow:"$level2",pointerEvents:"none",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center"}),zm=G("div",{fontSize:"0.8em",height:"100%",padding:"$rowGap $md"}),Nm=G("div",{$flexCenter:"",top:"0",right:"0",marginRight:"$sm",height:"100%",cursor:"pointer",variants:{disabled:{true:{color:"$elevation3",cursor:"default"}}},"&::after,&::before":{content:'""',position:"absolute",height:2,width:10,borderRadius:1,backgroundColor:"currentColor"},"&::after":{transform:"rotate(45deg)"},"&::before":{transform:"rotate(-45deg)"}});function Vm(){const{label:e,value:t,onUpdate:n,disabled:r}=Oe(),{popinRef:o,wrapperRef:i,shown:s,show:a,hide:c}=tl(),l=d.useCallback(m=>{m.length&&n(m[0])},[n]),u=d.useCallback(m=>{m.stopPropagation(),n(void 0)},[n]),{getRootProps:f,getInputProps:p,isDragAccept:g}=Zc({maxFiles:1,accept:"image/*",onDrop:l,disabled:r});return h.createElement(tt,{input:!0},h.createElement(ot,null,e),h.createElement(Mm,null,h.createElement(Lm,{ref:o,hasImage:!!t,onPointerDown:()=>!!t&&a(),onPointerUp:c,style:{backgroundImage:t?`url(${t})`:"none"}}),s&&!!t&&h.createElement(mi,null,h.createElement(Cc,{onPointerUp:c,style:{cursor:"pointer"}}),h.createElement(Fm,{ref:i,style:{backgroundImage:`url(${t})`}})),h.createElement(jm,f({isDragAccept:g}),h.createElement("input",p()),h.createElement(zm,null,g?"drop image":"click or drop")),h.createElement(Nm,{onClick:u,disabled:!t})))}var Bm=q({component:Vm},Dm);const na=Fe().number(),Wm=(e,t)=>Fe().array().length(2).every.number().test(e)&&Fe().schema({min:na,max:na}).test(t),$r=e=>({min:e[0],max:e[1]}),il=(e,{bounds:[t,n]},r)=>{const o=Array.isArray(e)?$r(e):e,i={min:r[0],max:r[1]},{min:s,max:a}=q(q({},i),o);return[It(Number(s),t,Math.max(t,a)),It(Number(a),Math.min(n,s),n)]},Hm=({value:e,min:t,max:n})=>{const r={min:t,max:n},o=Pc($r(e),{min:r,max:r}),i=[t,n],s=q(q({},o),{},{bounds:i});return{value:il($r(e),s,e),settings:s}};var Um=Object.freeze({__proto__:null,schema:Wm,format:$r,sanitize:il,normalize:Hm});const Km=["value","bounds","onDrag"],Gm=["bounds"],Ym=G("div",{display:"grid",columnGap:"$colGap",gridTemplateColumns:"auto calc($sizes$numberInputMinWidth * 2 + $space$rowGap)"});function qm(e){let{value:t,bounds:[n,r],onDrag:o}=e,i=te(e,Km);const s=d.useRef(null),a=d.useRef(null),c=d.useRef(null),l=d.useRef(0),u=yt("sizes","scrubberWidth"),f=Un(({event:m,first:b,xy:[w],movement:[v],memo:y={}})=>{if(b){const{width:_,left:$}=s.current.getBoundingClientRect();l.current=_-parseFloat(u);const E=(m==null?void 0:m.target)===a.current||(m==null?void 0:m.target)===c.current;y.pos=br((w-$)/_,n,r);const T=Math.abs(y.pos-t.min)-Math.abs(y.pos-t.max);y.key=T<0||T===0&&y.pos<=t.min?"min":"max",E&&(y.pos=t[y.key])}const C=y.pos+br(v/l.current,0,r-n);return o({[y.key]:$g(C,i[y.key])}),y}),p=`calc(${mr(t.min,n,r)} * (100% - ${u} - 8px) + 4px)`,g=`calc(${1-mr(t.max,n,r)} * (100% - ${u} - 8px) + 4px)`;return h.createElement(kc,be({ref:s},f()),h.createElement(Tc,null,h.createElement(Rc,{style:{left:p,right:g}})),h.createElement(Ao,{position:"left",ref:a,style:{left:p}}),h.createElement(Ao,{position:"right",ref:c,style:{right:g}}))}function Xm(){const{label:e,displayValue:t,onUpdate:n,settings:r}=Oe(),o=te(r,Gm);return h.createElement(h.Fragment,null,h.createElement(tt,{input:!0},h.createElement(ot,null,e),h.createElement(Ym,null,h.createElement(qm,be({value:t},r,{onDrag:n})),h.createElement(yi,{value:t,settings:o,onUpdate:n,innerLabelTrim:0}))))}var Zm=q({component:Xm},Um);const Qm=()=>{const e=new Map;return{on:(t,n)=>{let r=e.get(t);r===void 0&&(r=new Set,e.set(t,r)),r.add(n)},off:(t,n)=>{const r=e.get(t);r!==void 0&&(r.delete(n),r.size===0&&e.delete(t))},emit:(t,...n)=>{const r=e.get(t);if(r!==void 0)for(const o of r)o(...n)}}},Jm=["type","value"],eb=["onChange","transient","onEditStart","onEditEnd"],tb=function(){const t=w0($0(()=>({data:{}}))),n=Qm();this.storeId=Ah(),this.useStore=t;const r={},o=new Set;this.getVisiblePaths=()=>{const s=this.getData(),a=Object.keys(s),c=[];Object.entries(r).forEach(([u,f])=>{f.render&&a.some(p=>p.indexOf(u)===0)&&!f.render(this.get)&&c.push(u+".")});const l=[];return o.forEach(u=>{u in s&&s[u].__refCount>0&&c.every(f=>u.indexOf(f)===-1)&&(!s[u].render||s[u].render(this.get))&&l.push(u)}),l},this.setOrderedPaths=s=>{s.forEach(a=>o.add(a))},this.orderPaths=s=>(this.setOrderedPaths(s),s),this.disposePaths=s=>{t.setState(a=>{const c=a.data;return s.forEach(l=>{if(l in c){const u=c[l];u.__refCount--,u.__refCount===0&&u.type in nt&&delete c[l]}}),{data:c}})},this.dispose=()=>{t.setState(()=>({data:{}}))},this.getFolderSettings=s=>r[s]||{},this.getData=()=>t.getState().data,this.addData=(s,a)=>{t.setState(c=>{const l=c.data;return Object.entries(s).forEach(([u,f])=>{let p=l[u];if(p){const{type:g,value:m}=f,b=te(f,Jm);g!==p.type?bt(ge.INPUT_TYPE_OVERRIDE,g):((p.__refCount===0||a)&&Object.assign(p,b),p.__refCount++)}else l[u]=q(q({},f),{},{__refCount:1})}),{data:l}})},this.setValueAtPath=(s,a,c)=>{t.setState(l=>{const u=l.data;return _s(u[s],a,s,this,c),{data:u}})},this.setSettingsAtPath=(s,a)=>{t.setState(c=>{const l=c.data;return l[s].settings=q(q({},l[s].settings),a),{data:l}})},this.disableInputAtPath=(s,a)=>{t.setState(c=>{const l=c.data;return l[s].disabled=a,{data:l}})},this.set=(s,a)=>{t.setState(c=>{const l=c.data;return Object.entries(s).forEach(([u,f])=>{try{_s(l[u],f,void 0,void 0,a)}catch{}}),{data:l}})},this.getInput=s=>{try{return this.getData()[s]}catch{bt(ge.PATH_DOESNT_EXIST,s)}},this.get=s=>{var a;return(a=this.getInput(s))===null||a===void 0?void 0:a.value},this.emitOnEditStart=s=>{n.emit(`onEditStart:${s}`,this.get(s),s,q(q({},this.getInput(s)),{},{get:this.get}))},this.emitOnEditEnd=s=>{n.emit(`onEditEnd:${s}`,this.get(s),s,q(q({},this.getInput(s)),{},{get:this.get}))},this.subscribeToEditStart=(s,a)=>{const c=`onEditStart:${s}`;return n.on(c,a),()=>n.off(c,a)},this.subscribeToEditEnd=(s,a)=>{const c=`onEditEnd:${s}`;return n.on(c,a),()=>n.off(c,a)};const i=(s,a,c)=>{const l={};return Object.entries(s).forEach(([u,f])=>{if(u==="")return bt(ge.EMPTY_KEY);let p=_i(a,u);if(f.type===nt.FOLDER){const g=i(f.schema,p,c);Object.assign(l,g),p in r||(r[p]=f.settings)}else if(u in c)bt(ge.DUPLICATE_KEYS,u,p,c[u].path);else{const g=Nh(f,u,p,l);if(g){const{type:m,options:b,input:w}=g,{onChange:v,transient:y,onEditStart:C,onEditEnd:_}=b,$=te(b,eb);l[p]=q(q(q({type:m},$),w),{},{fromPanel:!0}),c[u]={path:p,onChange:v,transient:y,onEditStart:C,onEditEnd:_}}else bt(ge.UNKNOWN_INPUT,p,f)}}),l};this.getDataFromSchema=s=>{const a={};return[i(s,"",a),a]}},sl=new tb,nb={collapsed:!1};function rb(e,t){return{type:nt.FOLDER,schema:e,settings:q(q({},nb),t)}}const ra=e=>"__levaInput"in e,ob=(e,t)=>{const n={},r=t?t.toLowerCase():null;return e.forEach(o=>{const[i,s]=om(o);(!r||i.toLowerCase().indexOf(r)>-1)&&rm(n,s,{[i]:{__levaInput:!0,path:o}})}),n},ib=["type","label","path","valueKey","value","settings","setValue","disabled"];function sb(e){let{type:t,label:n,path:r,valueKey:o,value:i,settings:s,setValue:a,disabled:c}=e,l=te(e,ib);const{displayValue:u,onChange:f,onUpdate:p}=_c({type:t,value:i,settings:s,setValue:a}),g=Bt[t].component;return g?h.createElement(gc.Provider,{value:q({key:o,path:r,id:""+r,label:n,displayValue:u,value:i,onChange:f,onUpdate:p,settings:s,setValue:a,disabled:c},l)},h.createElement(sg,{disabled:c},h.createElement(g,null))):(bt(ge.NO_COMPONENT_FOR_TYPE,t,r),null)}const ab=G("button",{display:"block",$reset:"",fontWeight:"$button",height:"$rowHeight",borderStyle:"none",borderRadius:"$sm",backgroundColor:"$elevation1",color:"$highlight1","&:not(:disabled)":{color:"$highlight3",backgroundColor:"$accent2",cursor:"pointer",$hover:"$accent3",$active:"$accent3 $accent1",$focus:""}});function cb({onClick:e,settings:t,label:n}){const r=Hn();return h.createElement(tt,null,h.createElement(ab,{disabled:t.disabled,onClick:()=>e(r.get)},n))}const lb=G("div",{$flex:"",justifyContent:"flex-end",gap:"$colGap"}),ub=G("button",{$reset:"",cursor:"pointer",borderRadius:"$xs","&:hover":{backgroundColor:"$elevation3"}}),db=({label:e,opts:t})=>{let n=typeof e=="string"&&e.trim()===""?null:e,r=t;return typeof t.opts=="object"&&(r.label!==void 0&&(n=t.label),r=t.opts),{label:n,opts:r}};function fb(e){const{label:t,opts:n}=db(e),r=Hn();return h.createElement(tt,{input:!!t},t&&h.createElement(ot,null,t),h.createElement(lb,null,Object.entries(n).map(([o,i])=>h.createElement(ub,{key:o,onClick:()=>i(r.get)},o))))}const pb=G("canvas",{height:"$monitorHeight",width:"100%",display:"block",borderRadius:"$sm"}),al=100;function hb(e,t){e.push(t),e.length>al&&e.shift()}const gb=d.forwardRef(function({initialValue:e},t){const n=yt("colors","highlight3"),r=yt("colors","elevation2"),o=yt("colors","highlight1"),[i,s]=d.useMemo(()=>[Ie(o).alpha(.4).toRgbString(),Ie(o).alpha(.1).toRgbString()],[o]),a=d.useRef([e]),c=d.useRef(e),l=d.useRef(e),u=d.useRef(),f=d.useCallback((m,b)=>{if(!m)return;const{width:w,height:v}=m,y=new Path2D,C=w/al,_=v*.05;for(let T=0;T({frame:m=>{(c.current===void 0||ml.current)&&(l.current=m),hb(a.current,m),u.current=requestAnimationFrame(()=>f(p.current,g.current))}}),[p,g,f]),d.useEffect(()=>()=>cancelAnimationFrame(u.current),[]),h.createElement(pb,{ref:p})}),oa=e=>Number.isFinite(e)?e.toPrecision(2):e.toString(),mb=d.forwardRef(function({initialValue:e},t){const[n,r]=d.useState(oa(e));return d.useImperativeHandle(t,()=>({frame:o=>r(oa(o))}),[]),h.createElement("div",null,n)});function ia(e){return typeof e=="function"?e():e.current}function bb({label:e,objectOrFn:t,settings:n}){const r=d.useRef(),o=d.useRef(ia(t));return d.useEffect(()=>{const i=window.setInterval(()=>{var s;document.hidden||(s=r.current)===null||s===void 0||s.frame(ia(t))},n.interval);return()=>window.clearInterval(i)},[t,n.interval]),h.createElement(tt,{input:!0},h.createElement(ot,{align:"top"},e),n.graph?h.createElement(gb,{ref:r,initialValue:o.current}):h.createElement(mb,{ref:r,initialValue:o.current}))}const yb=["type","label","key"],vb={[nt.BUTTON]:cb,[nt.BUTTON_GROUP]:fb,[nt.MONITOR]:bb},xb=h.memo(({path:e})=>{const[t,{set:n,setSettings:r,disable:o,storeId:i,emitOnEditStart:s,emitOnEditEnd:a}]=bg(e);if(!t)return null;const{type:c,label:l,key:u}=t,f=te(t,yb);if(c in nt){const p=vb[c];return h.createElement(p,be({label:l,path:e},f))}return c in Bt?h.createElement(sb,be({key:i+e,type:c,label:l,storeId:i,path:e,valueKey:u,setValue:n,setSettings:r,disable:o,emitOnEditStart:s,emitOnEditEnd:a},f)):(Ch(ge.UNSUPPORTED_INPUT,c,e),null)});function wb({toggle:e,toggled:t,name:n}){return h.createElement(rg,{onClick:()=>e()},h.createElement(bi,{toggled:t}),h.createElement("div",null,n))}const $b=({name:e,path:t,tree:n})=>{const r=Hn(),o=_i(t,e),{collapsed:i,color:s}=r.getFolderSettings(o),[a,c]=d.useState(!i),l=d.useRef(null),u=yt("colors","folderWidgetColor"),f=yt("colors","folderTextColor");return d.useLayoutEffect(()=>{l.current.style.setProperty("--leva-colors-folderWidgetColor",s||u),l.current.style.setProperty("--leva-colors-folderTextColor",s||f)},[s,u,f]),h.createElement(yr,{ref:l},h.createElement(wb,{name:e,toggled:a,toggle:()=>c(p=>!p)}),h.createElement(cl,{parent:o,tree:n,toggled:a}))},cl=h.memo(({isRoot:e=!1,fill:t=!1,flat:n=!1,parent:r,tree:o,toggled:i})=>{const{wrapperRef:s,contentRef:a}=am(i),c=Hn(),l=([f,p])=>{var g;return(ra(p)?(g=c.getInput(p.path))===null||g===void 0?void 0:g.order:c.getFolderSettings(_i(r,f)).order)||0},u=Object.entries(o).sort((f,p)=>l(f)-l(p));return h.createElement(Oo,{ref:s,isRoot:e,fill:t,flat:n},h.createElement(wc,{ref:a,isRoot:e,toggled:i},u.map(([f,p])=>ra(p)?h.createElement(xb,{key:p.path,valueKey:p.valueKey,path:p.path}):h.createElement($b,{key:f,name:f,path:r,tree:p}))))}),Eb=G("div",{position:"relative",fontFamily:"$mono",fontSize:"$root",color:"$rootText",backgroundColor:"$elevation1",variants:{fill:{false:{position:"fixed",top:"10px",right:"10px",zIndex:1e3,width:"$rootWidth"},true:{position:"relative",width:"100%"}},flat:{false:{borderRadius:"$lg",boxShadow:"$level1"}},oneLineLabels:{true:{[`${Ec}`]:{gridTemplateColumns:"auto",gridAutoColumns:"minmax(max-content, 1fr)",gridAutoRows:"minmax($sizes$rowHeight), auto)",rowGap:0,columnGap:0,marginTop:"$rowGap"}}},hideTitleBar:{true:{$$titleBarHeight:"0px"},false:{$$titleBarHeight:"$sizes$titleBarHeight"}}},"&,*,*:after,*:before":{boxSizing:"border-box"},"*::selection":{backgroundColor:"$accent2"}}),ll=40,Er=G("i",{$flexCenter:"",width:ll,userSelect:"none",cursor:"pointer","> svg":{fill:"$highlight1",transition:"transform 350ms ease, fill 250ms ease"},"&:hover > svg":{fill:"$highlight3"},variants:{active:{true:{"> svg":{fill:"$highlight2"}}}}}),Cb=G("div",{display:"flex",alignItems:"stretch",justifyContent:"space-between",height:"$titleBarHeight",variants:{mode:{drag:{cursor:"grab"}}}}),_b=G("div",{$flex:"",position:"relative",width:"100%",overflow:"hidden",transition:"height 250ms ease",color:"$highlight3",paddingLeft:"$md",[`> ${Er}`]:{height:30},variants:{toggled:{true:{height:30},false:{height:0}}}}),Sb=G("input",{$reset:"",flex:1,position:"relative",height:30,width:"100%",backgroundColor:"transparent",fontSize:"10px",borderRadius:"$root","&:focus":{},"&::placeholder":{color:"$highlight2"}}),Tb=G("div",{touchAction:"none",$flexCenter:"",flex:1,"> svg":{fill:"$highlight1"},color:"$highlight1",variants:{drag:{true:{$draggable:"","> svg":{transition:"fill 250ms ease"},"&:hover":{color:"$highlight3"},"&:hover > svg":{fill:"$highlight3"}}},filterEnabled:{false:{paddingRight:ll}}}}),kb=h.forwardRef(({setFilter:e,toggle:t},n)=>{const[r,o]=d.useState(""),i=d.useMemo(()=>lc(e,250),[e]),s=()=>{e(""),o("")},a=c=>{const l=c.currentTarget.value;t(!0),o(l)};return d.useEffect(()=>{i(r)},[r,i]),h.createElement(h.Fragment,null,h.createElement(Sb,{ref:n,value:r,placeholder:"[Open filter with CMD+SHIFT+L]",onPointerDown:c=>c.stopPropagation(),onChange:a}),h.createElement(Er,{onClick:()=>s(),style:{visibility:r?"visible":"hidden"}},h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"14",width:"14",viewBox:"0 0 20 20",fill:"currentColor"},h.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"}))))});function Rb({setFilter:e,onDrag:t,onDragStart:n,onDragEnd:r,toggle:o,toggled:i,title:s,drag:a,filterEnabled:c,from:l}){const[u,f]=d.useState(!1),p=d.useRef(null);d.useEffect(()=>{var m,b;u?(m=p.current)===null||m===void 0||m.focus():(b=p.current)===null||b===void 0||b.blur()},[u]);const g=Un(({offset:[m,b],first:w,last:v})=>{t({x:m,y:b}),w&&n({x:m,y:b}),v&&r({x:m,y:b})},{filterTaps:!0,from:({offset:[m,b]})=>[(l==null?void 0:l.x)||m,(l==null?void 0:l.y)||b]});return d.useEffect(()=>{const m=b=>{b.key==="L"&&b.shiftKey&&b.metaKey&&f(w=>!w)};return window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)},[]),h.createElement(h.Fragment,null,h.createElement(Cb,{mode:a?"drag":void 0},h.createElement(Er,{active:!i,onClick:()=>o()},h.createElement(bi,{toggled:i,width:12,height:8})),h.createElement(Tb,be({},a?g():{},{drag:a,filterEnabled:c}),s===void 0&&a?h.createElement("svg",{width:"20",height:"10",viewBox:"0 0 28 14",xmlns:"http://www.w3.org/2000/svg"},h.createElement("circle",{cx:"2",cy:"2",r:"2"}),h.createElement("circle",{cx:"14",cy:"2",r:"2"}),h.createElement("circle",{cx:"26",cy:"2",r:"2"}),h.createElement("circle",{cx:"2",cy:"12",r:"2"}),h.createElement("circle",{cx:"14",cy:"12",r:"2"}),h.createElement("circle",{cx:"26",cy:"12",r:"2"})):s),c&&h.createElement(Er,{active:u,onClick:()=>f(m=>!m)},h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20",viewBox:"0 0 20 20"},h.createElement("path",{d:"M9 9a2 2 0 114 0 2 2 0 01-4 0z"}),h.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-13a4 4 0 00-3.446 6.032l-2.261 2.26a1 1 0 101.414 1.415l2.261-2.261A4 4 0 1011 5z",clipRule:"evenodd"})))),h.createElement(_b,{toggled:u},h.createElement(kb,{ref:p,setFilter:e,toggle:o})))}const Ob=["store","hidden","theme","collapsed"];function Pb(e){let{store:t,hidden:n=!1,theme:r,collapsed:o=!1}=e,i=te(e,Ob);const s=el(()=>Zh(r),[r]),[a,c]=d.useState(!o),l=typeof o=="object"?!o.collapsed:a,u=d.useMemo(()=>typeof o=="object"?f=>{typeof f=="function"?o.onChange(!f(!o.collapsed)):o.onChange(!f)}:c,[o]);return!t||n?null:h.createElement(hi.Provider,{value:s},h.createElement(Ab,be({store:t},i,{toggled:l,setToggle:u,rootClass:s.className})))}const Ab=h.memo(({store:e,rootClass:t,fill:n=!1,flat:r=!1,neverHide:o=!1,oneLineLabels:i=!1,titleBar:s={title:void 0,drag:!0,filter:!0,position:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0},hideCopyButton:a=!1,toggled:c,setToggle:l})=>{var u,f;const p=cm(e),[g,m]=d.useState(""),b=d.useMemo(()=>ob(p,g),[p,g]),[w,v]=Sc(),y=o||p.length>0,C=typeof s=="object"&&s.title||void 0,_=typeof s=="object"&&(u=s.drag)!==null&&u!==void 0?u:!0,$=typeof s=="object"&&(f=s.filter)!==null&&f!==void 0?f:!0,E=typeof s=="object"&&s.position||void 0,T=typeof s=="object"&&s.onDrag||void 0,R=typeof s=="object"&&s.onDragStart||void 0,F=typeof s=="object"&&s.onDragEnd||void 0;return h.useEffect(()=>{v({x:E==null?void 0:E.x,y:E==null?void 0:E.y})},[E,v]),Xh(),h.createElement(bc.Provider,{value:{hideCopyButton:a}},h.createElement(Eb,{ref:w,className:t,fill:n,flat:r,oneLineLabels:i,hideTitleBar:!s,style:{display:y?"block":"none"}},s&&h.createElement(Rb,{onDrag:j=>{v(j),T==null||T(j)},onDragStart:j=>R==null?void 0:R(j),onDragEnd:j=>F==null?void 0:F(j),setFilter:m,toggle:j=>l(z=>j??!z),toggled:c,title:C,drag:_,filterEnabled:$,from:E}),y&&h.createElement(mc.Provider,{value:e},h.createElement(cl,{isRoot:!0,fill:n,flat:r,tree:b,toggled:c}))))}),Ib=["isRoot"];let Cr=!1,jt=null;function ul(e){let{isRoot:t=!1}=e,n=te(e,Ib);return d.useEffect(()=>(Cr=!0,!t&&jt&&(jt.remove(),jt=null),()=>{t||(Cr=!1)}),[t]),h.createElement(Pb,be({store:sl},n))}function Db(e){d.useEffect(()=>{e&&!Cr&&(jt||(jt=document.getElementById("leva__root")||Object.assign(document.createElement("div"),{id:"leva__root"}),document.body&&(document.body.appendChild(jt),Bh(h.createElement(ul,{isRoot:!0}),jt))),Cr=!0)},[e])}function Mb(e,t,n,r,o){let i,s,a,c,l;return typeof e=="string"?(s=e,i=t,Array.isArray(n)?l=n:n&&("store"in n?(c=n,l=r):(a=n,Array.isArray(r)?l=r:(c=r,l=o)))):(i=e,Array.isArray(t)?l=t:(c=t,l=n)),{schema:i,folderName:s,folderSettings:a,hookSettings:c,deps:l||[]}}function jv(e,t,n,r,o){const{folderName:i,schema:s,folderSettings:a,hookSettings:c,deps:l}=Mb(e,t,n,r,o),u=typeof s=="function",f=d.useRef(!1),p=d.useRef(!0),g=el(()=>{f.current=!0;const z=typeof s=="function"?s():s;return i?{[i]:rb(z,a)}:z},l),m=!(c!=null&&c.store);Db(m);const[b]=d.useState(()=>(c==null?void 0:c.store)||sl),[w,v]=d.useMemo(()=>b.getDataFromSchema(g),[b,g]),[y,C,_,$,E]=d.useMemo(()=>{const z=[],A=[],N={},L={},D={};return Object.values(v).forEach(({path:V,onChange:U,onEditStart:Y,onEditEnd:Q,transient:de})=>{z.push(V),U?(N[V]=U,de||A.push(V)):A.push(V),Y&&(L[V]=Y),Q&&(D[V]=Q)}),[z,A,N,L,D]},[v]),T=d.useMemo(()=>b.orderPaths(y),[y,b]),R=lm(b,C,w),F=d.useCallback(z=>{const A=Object.entries(z).reduce((N,[L,D])=>Object.assign(N,{[v[L].path]:D}),{});b.set(A,!1)},[b,v]),j=d.useCallback(z=>b.get(v[z].path),[b,v]);return d.useEffect(()=>{const z=!p.current&&f.current;return b.addData(w,z),p.current=!1,f.current=!1,()=>b.disposePaths(T)},[b,T,w]),d.useEffect(()=>{const z=[];return Object.entries(_).forEach(([A,N])=>{N(b.get(A),A,q({initial:!0,get:b.get},b.getInput(A)));const L=b.useStore.subscribe(D=>{const V=D.data[A];return[V.disabled?void 0:V.value,V]},([D,V])=>N(D,A,q({initial:!1,get:b.get},V)),{equalityFn:Vn});z.push(L)}),()=>z.forEach(A=>A())},[b,_]),d.useEffect(()=>{const z=[];return Object.entries($).forEach(([A,N])=>z.push(b.subscribeToEditStart(A,N))),Object.entries(E).forEach(([A,N])=>z.push(b.subscribeToEditEnd(A,N))),()=>z.forEach(A=>A())},[$,E,b]),u?[R,F,j]:R}Ct(rt.SELECT,Dg);Ct(rt.IMAGE,Bm);Ct(rt.NUMBER,Cg);Ct(rt.COLOR,xm);Ct(rt.STRING,Wg);Ct(rt.BOOLEAN,Xg);Ct(rt.INTERVAL,Zm);Ct(rt.VECTOR3D,$m);Ct(rt.VECTOR2D,Om);var Yn=e=>e.type==="checkbox",nn=e=>e instanceof Date,De=e=>e==null;const dl=e=>typeof e=="object";var we=e=>!De(e)&&!Array.isArray(e)&&dl(e)&&!nn(e),fl=e=>we(e)&&e.target?Yn(e.target)?e.target.checked:e.target.value:e,jb=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,pl=(e,t)=>e.has(jb(t)),Lb=e=>{const t=e.constructor&&e.constructor.prototype;return we(t)&&t.hasOwnProperty("isPrototypeOf")},Si=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Te(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Si&&(e instanceof Blob||e instanceof FileList))&&(n||we(e)))if(t=n?[]:{},!n&&!Lb(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=Te(e[r]));else return e;return t}var yn=e=>Array.isArray(e)?e.filter(Boolean):[],ce=e=>e===void 0,B=(e,t,n)=>{if(!t||!we(e))return n;const r=yn(t.split(/[,[\].]+?/)).reduce((o,i)=>De(o)?o:o[i],e);return ce(r)||r===e?ce(e[t])?n:e[t]:r},Ze=e=>typeof e=="boolean";const _r={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Qe={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},gt={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},hl=h.createContext(null),Br=()=>h.useContext(hl),Fb=e=>{const{children:t,...n}=e;return h.createElement(hl.Provider,{value:n},t)};var gl=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const s=i;return t._proxyFormState[s]!==Qe.all&&(t._proxyFormState[s]=!r||Qe.all),n&&(n[s]=!0),e[s]}});return o},Be=e=>we(e)&&!Object.keys(e).length,ml=(e,t,n,r)=>{n(e);const{name:o,...i}=e;return Be(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(s=>t[s]===(!r||Qe.all))},Ue=e=>Array.isArray(e)?e:[e],bl=(e,t,n)=>!e||!t||e===t||Ue(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function Wr(e){const t=h.useRef(e);t.current=e,h.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function zb(e){const t=Br(),{control:n=t.control,disabled:r,name:o,exact:i}=e||{},[s,a]=h.useState(n._formState),c=h.useRef(!0),l=h.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=h.useRef(o);return u.current=o,Wr({disabled:r,next:f=>c.current&&bl(u.current,f.name,i)&&ml(f,l.current,n._updateFormState)&&a({...n._formState,...f}),subject:n._subjects.state}),h.useEffect(()=>(c.current=!0,l.current.isValid&&n._updateValid(!0),()=>{c.current=!1}),[n]),gl(s,n,l.current,!1)}var ct=e=>typeof e=="string",yl=(e,t,n,r,o)=>ct(e)?(r&&t.watch.add(e),B(n,e,o)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),B(n,i))):(r&&(t.watchAll=!0),n);function Nb(e){const t=Br(),{control:n=t.control,name:r,defaultValue:o,disabled:i,exact:s}=e||{},a=h.useRef(r);a.current=r,Wr({disabled:i,subject:n._subjects.values,next:u=>{bl(a.current,u.name,s)&&l(Te(yl(a.current,n._names,u.values||n._formValues,!1,o)))}});const[c,l]=h.useState(n._getWatch(r,o));return h.useEffect(()=>n._removeUnmounted()),c}var Ti=e=>/^\w*$/.test(e),vl=e=>yn(e.replace(/["|']|\]/g,"").split(/\.|\[/)),oe=(e,t,n)=>{let r=-1;const o=Ti(t)?[t]:vl(t),i=o.length,s=i-1;for(;++r{const u=o._options.shouldUnregister||i,f=(p,g)=>{const m=B(o._fields,p);m&&(m._f.mount=g)};if(f(n,!0),u){const p=Te(B(o._options.defaultValues,n));oe(o._defaultValues,n,p),ce(B(o._formValues,n))&&oe(o._formValues,n,p)}return()=>{(s?u&&!o._state.action:u)?o.unregister(n):f(n,!1)}},[n,o,s,i]),h.useEffect(()=>{B(o._fields,n)&&o._updateDisabledField({disabled:r,fields:o._fields,name:n,value:B(o._fields,n)._f.value})},[r,n,o]),{field:{name:n,value:a,...Ze(r)||Ze(c.disabled)?{disabled:c.disabled||r}:{},onChange:h.useCallback(u=>l.current.onChange({target:{value:fl(u),name:n},type:_r.CHANGE}),[n]),onBlur:h.useCallback(()=>l.current.onBlur({target:{value:B(o._formValues,n),name:n},type:_r.BLUR}),[n,o]),ref:u=>{const f=B(o._fields,n);f&&u&&(f._f.ref={focus:()=>u.focus(),select:()=>u.select(),setCustomValidity:p=>u.setCustomValidity(p),reportValidity:()=>u.reportValidity()})}},formState:c,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!B(c.errors,n)},isDirty:{enumerable:!0,get:()=>!!B(c.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!B(c.touchedFields,n)},error:{enumerable:!0,get:()=>B(c.errors,n)}})}}const Lv=e=>e.render(Vb(e));var Bb=(e,t,n,r,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:o||!0}}:{},St=()=>{const e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(Math.random()*16+e)%16|0;return(t=="x"?n:n&3|8).toString(16)})},ro=(e,t,n={})=>n.shouldFocus||ce(n.shouldFocus)?n.focusName||`${e}.${ce(n.focusIndex)?t:n.focusIndex}.`:"",Uo=e=>({isOnSubmit:!e||e===Qe.onSubmit,isOnBlur:e===Qe.onBlur,isOnChange:e===Qe.onChange,isOnAll:e===Qe.all,isOnTouch:e===Qe.onTouched}),Ko=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const sn=(e,t,n,r)=>{for(const o of n||Object.keys(e)){const i=B(e,o);if(i){const{_f:s,...a}=i;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],o)&&!r)break;if(s.ref&&t(s.ref,s.name)&&!r)break;sn(a,t)}else we(a)&&sn(a,t)}}};var xl=(e,t,n)=>{const r=yn(B(e,n));return oe(r,"root",t[n]),oe(e,n,r),e},ki=e=>e.type==="file",kt=e=>typeof e=="function",Sr=e=>{if(!Si)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},cr=e=>ct(e),Ri=e=>e.type==="radio",Tr=e=>e instanceof RegExp;const sa={value:!1,isValid:!1},aa={value:!0,isValid:!0};var wl=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!ce(e[0].attributes.value)?ce(e[0].value)||e[0].value===""?aa:{value:e[0].value,isValid:!0}:aa:sa}return sa};const ca={isValid:!1,value:null};var $l=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,ca):ca;function la(e,t,n="validate"){if(cr(e)||Array.isArray(e)&&e.every(cr)||Ze(e)&&!e)return{type:n,message:cr(e)?e:"",ref:t}}var Jt=e=>we(e)&&!Tr(e)?e:{value:e,message:""},Go=async(e,t,n,r,o)=>{const{ref:i,refs:s,required:a,maxLength:c,minLength:l,min:u,max:f,pattern:p,validate:g,name:m,valueAsNumber:b,mount:w,disabled:v}=e._f,y=B(t,m);if(!w||v)return{};const C=s?s[0]:i,_=A=>{r&&C.reportValidity&&(C.setCustomValidity(Ze(A)?"":A||""),C.reportValidity())},$={},E=Ri(i),T=Yn(i),R=E||T,F=(b||ki(i))&&ce(i.value)&&ce(y)||Sr(i)&&i.value===""||y===""||Array.isArray(y)&&!y.length,j=Bb.bind(null,m,n,$),z=(A,N,L,D=gt.maxLength,V=gt.minLength)=>{const U=A?N:L;$[m]={type:A?D:V,message:U,ref:i,...j(A?D:V,U)}};if(o?!Array.isArray(y)||!y.length:a&&(!R&&(F||De(y))||Ze(y)&&!y||T&&!wl(s).isValid||E&&!$l(s).isValid)){const{value:A,message:N}=cr(a)?{value:!!a,message:a}:Jt(a);if(A&&($[m]={type:gt.required,message:N,ref:C,...j(gt.required,N)},!n))return _(N),$}if(!F&&(!De(u)||!De(f))){let A,N;const L=Jt(f),D=Jt(u);if(!De(y)&&!isNaN(y)){const V=i.valueAsNumber||y&&+y;De(L.value)||(A=V>L.value),De(D.value)||(N=Vnew Date(new Date().toDateString()+" "+de),Y=i.type=="time",Q=i.type=="week";ct(L.value)&&y&&(A=Y?U(y)>U(L.value):Q?y>L.value:V>new Date(L.value)),ct(D.value)&&y&&(N=Y?U(y)+A.value,D=!De(N.value)&&y.length<+N.value;if((L||D)&&(z(L,A.message,N.message),!n))return _($[m].message),$}if(p&&!F&&ct(y)){const{value:A,message:N}=Jt(p);if(Tr(A)&&!y.match(A)&&($[m]={type:gt.pattern,message:N,ref:i,...j(gt.pattern,N)},!n))return _(N),$}if(g){if(kt(g)){const A=await g(y,t),N=la(A,C);if(N&&($[m]={...N,...j(gt.validate,N.message)},!n))return _(N.message),$}else if(we(g)){let A={};for(const N in g){if(!Be(A)&&!n)break;const L=la(await g[N](y,t),C,N);L&&(A={...L,...j(N,L.message)},_(L.message),n&&($[m]=A))}if(!Be(A)&&($[m]={ref:C,...A},!n))return $}}return _(!0),$},oo=(e,t)=>[...e,...Ue(t)],io=e=>Array.isArray(e)?e.map(()=>{}):void 0;function so(e,t,n){return[...e.slice(0,t),...Ue(n),...e.slice(t)]}var ao=(e,t,n)=>Array.isArray(e)?(ce(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],co=(e,t)=>[...Ue(t),...Ue(e)];function Wb(e,t){let n=0;const r=[...e];for(const o of t)r.splice(o-n,1),n++;return yn(r).length?r:[]}var lo=(e,t)=>ce(t)?[]:Wb(e,Ue(t).sort((n,r)=>n-r)),uo=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]};function Hb(e,t){const n=t.slice(0,-1).length;let r=0;for(;r(e[t]=n,e);function Fv(e){const t=Br(),{control:n=t.control,name:r,keyName:o="id",shouldUnregister:i}=e,[s,a]=h.useState(n._getFieldArray(r)),c=h.useRef(n._getFieldArray(r).map(St)),l=h.useRef(s),u=h.useRef(r),f=h.useRef(!1);u.current=r,l.current=s,n._names.array.add(r),e.rules&&n.register(r,e.rules),Wr({next:({values:$,name:E})=>{if(E===u.current||!E){const T=B($,u.current);Array.isArray(T)&&(a(T),c.current=T.map(St))}},subject:n._subjects.array});const p=h.useCallback($=>{f.current=!0,n._updateFieldArray(r,$)},[n,r]),g=($,E)=>{const T=Ue(Te($)),R=oo(n._getFieldArray(r),T);n._names.focus=ro(r,R.length-1,E),c.current=oo(c.current,T.map(St)),p(R),a(R),n._updateFieldArray(r,R,oo,{argA:io($)})},m=($,E)=>{const T=Ue(Te($)),R=co(n._getFieldArray(r),T);n._names.focus=ro(r,0,E),c.current=co(c.current,T.map(St)),p(R),a(R),n._updateFieldArray(r,R,co,{argA:io($)})},b=$=>{const E=lo(n._getFieldArray(r),$);c.current=lo(c.current,$),p(E),a(E),n._updateFieldArray(r,E,lo,{argA:$})},w=($,E,T)=>{const R=Ue(Te(E)),F=so(n._getFieldArray(r),$,R);n._names.focus=ro(r,$,T),c.current=so(c.current,$,R.map(St)),p(F),a(F),n._updateFieldArray(r,F,so,{argA:$,argB:io(E)})},v=($,E)=>{const T=n._getFieldArray(r);uo(T,$,E),uo(c.current,$,E),p(T),a(T),n._updateFieldArray(r,T,uo,{argA:$,argB:E},!1)},y=($,E)=>{const T=n._getFieldArray(r);ao(T,$,E),ao(c.current,$,E),p(T),a(T),n._updateFieldArray(r,T,ao,{argA:$,argB:E},!1)},C=($,E)=>{const T=Te(E),R=ua(n._getFieldArray(r),$,T);c.current=[...R].map((F,j)=>!F||j===$?St():c.current[j]),p(R),a([...R]),n._updateFieldArray(r,R,ua,{argA:$,argB:T},!0,!1)},_=$=>{const E=Ue(Te($));c.current=E.map(St),p([...E]),a([...E]),n._updateFieldArray(r,[...E],T=>T,{},!0,!1)};return h.useEffect(()=>{if(n._state.action=!1,Ko(r,n._names)&&n._subjects.state.next({...n._formState}),f.current&&(!Uo(n._options.mode).isOnSubmit||n._formState.isSubmitted))if(n._options.resolver)n._executeSchema([r]).then($=>{const E=B($.errors,r),T=B(n._formState.errors,r);(T?!E&&T.type||E&&(T.type!==E.type||T.message!==E.message):E&&E.type)&&(E?oe(n._formState.errors,r,E):$e(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{const $=B(n._fields,r);$&&$._f&&Go($,n._formValues,n._options.criteriaMode===Qe.all,n._options.shouldUseNativeValidation,!0).then(E=>!Be(E)&&n._subjects.state.next({errors:xl(n._formState.errors,E,r)}))}n._subjects.values.next({name:r,values:{...n._formValues}}),n._names.focus&&sn(n._fields,($,E)=>{if(n._names.focus&&E.startsWith(n._names.focus)&&$.focus)return $.focus(),1}),n._names.focus="",n._updateValid(),f.current=!1},[s,r,n]),h.useEffect(()=>(!B(n._formValues,r)&&n._updateFieldArray(r),()=>{(n._options.shouldUnregister||i)&&n.unregister(r)}),[r,n,o,i]),{swap:h.useCallback(v,[p,r,n]),move:h.useCallback(y,[p,r,n]),prepend:h.useCallback(m,[p,r,n]),append:h.useCallback(g,[p,r,n]),remove:h.useCallback(b,[p,r,n]),insert:h.useCallback(w,[p,r,n]),update:h.useCallback(C,[p,r,n]),replace:h.useCallback(_,[p,r,n]),fields:h.useMemo(()=>s.map(($,E)=>({...$,[o]:c.current[E]||St()})),[s,o])}}var fo=()=>{let e=[];return{get observers(){return e},next:o=>{for(const i of e)i.next&&i.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(i=>i!==o)}}),unsubscribe:()=>{e=[]}}},kr=e=>De(e)||!dl(e);function Lt(e,t){if(kr(e)||kr(t))return e===t;if(nn(e)&&nn(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n){const i=e[o];if(!r.includes(o))return!1;if(o!=="ref"){const s=t[o];if(nn(i)&&nn(s)||we(i)&&we(s)||Array.isArray(i)&&Array.isArray(s)?!Lt(i,s):i!==s)return!1}}return!0}var El=e=>e.type==="select-multiple",Kb=e=>Ri(e)||Yn(e),po=e=>Sr(e)&&e.isConnected,Cl=e=>{for(const t in e)if(kt(e[t]))return!0;return!1};function Rr(e,t={}){const n=Array.isArray(e);if(we(e)||n)for(const r in e)Array.isArray(e[r])||we(e[r])&&!Cl(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Rr(e[r],t[r])):De(e[r])||(t[r]=!0);return t}function _l(e,t,n){const r=Array.isArray(e);if(we(e)||r)for(const o in e)Array.isArray(e[o])||we(e[o])&&!Cl(e[o])?ce(t)||kr(n[o])?n[o]=Array.isArray(e[o])?Rr(e[o],[]):{...Rr(e[o])}:_l(e[o],De(t)?{}:t[o],n[o]):n[o]=!Lt(e[o],t[o]);return n}var ho=(e,t)=>_l(e,t,Rr(t)),Sl=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>ce(e)?e:t?e===""?NaN:e&&+e:n&&ct(e)?new Date(e):r?r(e):e;function go(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return ki(t)?t.files:Ri(t)?$l(e.refs).value:El(t)?[...t.selectedOptions].map(({value:n})=>n):Yn(t)?wl(e.refs).value:Sl(ce(t.value)?e.ref.value:t.value,e)}var Gb=(e,t,n,r)=>{const o={};for(const i of e){const s=B(t,i);s&&oe(o,i,s._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:r}},Cn=e=>ce(e)?e:Tr(e)?e.source:we(e)?Tr(e.value)?e.value.source:e.value:e,Yb=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function da(e,t,n){const r=B(e,n);if(r||Ti(n))return{error:r,name:n};const o=n.split(".");for(;o.length;){const i=o.join("."),s=B(t,i),a=B(e,i);if(s&&!Array.isArray(s)&&n!==i)return{name:n};if(a&&a.type)return{name:i,error:a};o.pop()}return{name:n}}var qb=(e,t,n,r,o)=>o.isOnAll?!1:!n&&o.isOnTouch?!(t||e):(n?r.isOnBlur:o.isOnBlur)?!e:(n?r.isOnChange:o.isOnChange)?e:!0,Xb=(e,t)=>!yn(B(e,t)).length&&$e(e,t);const Zb={mode:Qe.onSubmit,reValidateMode:Qe.onChange,shouldFocusError:!0};function Qb(e={},t){let n={...Zb,...e},r={submitCount:0,isDirty:!1,isLoading:kt(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:n.errors||{},disabled:!1},o={},i=we(n.defaultValues)||we(n.values)?Te(n.defaultValues||n.values)||{}:{},s=n.shouldUnregister?{}:Te(i),a={action:!1,mount:!1,watch:!1},c={mount:new Set,unMount:new Set,array:new Set,watch:new Set},l,u=0;const f={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={values:fo(),array:fo(),state:fo()},g=e.resetOptions&&e.resetOptions.keepDirtyValues,m=Uo(n.mode),b=Uo(n.reValidateMode),w=n.criteriaMode===Qe.all,v=x=>k=>{clearTimeout(u),u=setTimeout(x,k)},y=async x=>{if(f.isValid||x){const k=n.resolver?Be((await j()).errors):await A(o,!0);k!==r.isValid&&p.state.next({isValid:k})}},C=x=>f.isValidating&&p.state.next({isValidating:x}),_=(x,k=[],I,O,P=!0,M=!0)=>{if(O&&I){if(a.action=!0,M&&Array.isArray(B(o,x))){const W=I(B(o,x),O.argA,O.argB);P&&oe(o,x,W)}if(M&&Array.isArray(B(r.errors,x))){const W=I(B(r.errors,x),O.argA,O.argB);P&&oe(r.errors,x,W),Xb(r.errors,x)}if(f.touchedFields&&M&&Array.isArray(B(r.touchedFields,x))){const W=I(B(r.touchedFields,x),O.argA,O.argB);P&&oe(r.touchedFields,x,W)}f.dirtyFields&&(r.dirtyFields=ho(i,s)),p.state.next({name:x,isDirty:L(x,k),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else oe(s,x,k)},$=(x,k)=>{oe(r.errors,x,k),p.state.next({errors:r.errors})},E=x=>{r.errors=x,p.state.next({errors:r.errors,isValid:!1})},T=(x,k,I,O)=>{const P=B(o,x);if(P){const M=B(s,x,ce(I)?B(i,x):I);ce(M)||O&&O.defaultChecked||k?oe(s,x,k?M:go(P._f)):U(x,M),a.mount&&y()}},R=(x,k,I,O,P)=>{let M=!1,W=!1;const X={name:x},se=!!(B(o,x)&&B(o,x)._f.disabled);if(!I||O){f.isDirty&&(W=r.isDirty,r.isDirty=X.isDirty=L(),M=W!==X.isDirty);const K=se||Lt(B(i,x),k);W=!!(!se&&B(r.dirtyFields,x)),K||se?$e(r.dirtyFields,x):oe(r.dirtyFields,x,!0),X.dirtyFields=r.dirtyFields,M=M||f.dirtyFields&&W!==!K}if(I){const K=B(r.touchedFields,x);K||(oe(r.touchedFields,x,I),X.touchedFields=r.touchedFields,M=M||f.touchedFields&&K!==I)}return M&&P&&p.state.next(X),M?X:{}},F=(x,k,I,O)=>{const P=B(r.errors,x),M=f.isValid&&Ze(k)&&r.isValid!==k;if(e.delayError&&I?(l=v(()=>$(x,I)),l(e.delayError)):(clearTimeout(u),l=null,I?oe(r.errors,x,I):$e(r.errors,x)),(I?!Lt(P,I):P)||!Be(O)||M){const W={...O,...M&&Ze(k)?{isValid:k}:{},errors:r.errors,name:x};r={...r,...W},p.state.next(W)}C(!1)},j=async x=>n.resolver(s,n.context,Gb(x||c.mount,o,n.criteriaMode,n.shouldUseNativeValidation)),z=async x=>{const{errors:k}=await j(x);if(x)for(const I of x){const O=B(k,I);O?oe(r.errors,I,O):$e(r.errors,I)}else r.errors=k;return k},A=async(x,k,I={valid:!0})=>{for(const O in x){const P=x[O];if(P){const{_f:M,...W}=P;if(M){const X=c.array.has(M.name),se=await Go(P,s,w,n.shouldUseNativeValidation&&!k,X);if(se[M.name]&&(I.valid=!1,k))break;!k&&(B(se,M.name)?X?xl(r.errors,se,M.name):oe(r.errors,M.name,se[M.name]):$e(r.errors,M.name))}W&&await A(W,k,I)}}return I.valid},N=()=>{for(const x of c.unMount){const k=B(o,x);k&&(k._f.refs?k._f.refs.every(I=>!po(I)):!po(k._f.ref))&&_e(x)}c.unMount=new Set},L=(x,k)=>(x&&k&&oe(s,x,k),!Lt(pe(),i)),D=(x,k,I)=>yl(x,c,{...a.mount?s:ce(k)?i:ct(x)?{[x]:k}:k},I,k),V=x=>yn(B(a.mount?s:i,x,e.shouldUnregister?B(i,x,[]):[])),U=(x,k,I={})=>{const O=B(o,x);let P=k;if(O){const M=O._f;M&&(!M.disabled&&oe(s,x,Sl(k,M)),P=Sr(M.ref)&&De(k)?"":k,El(M.ref)?[...M.ref.options].forEach(W=>W.selected=P.includes(W.value)):M.refs?Yn(M.ref)?M.refs.length>1?M.refs.forEach(W=>(!W.defaultChecked||!W.disabled)&&(W.checked=Array.isArray(P)?!!P.find(X=>X===W.value):P===W.value)):M.refs[0]&&(M.refs[0].checked=!!P):M.refs.forEach(W=>W.checked=W.value===P):ki(M.ref)?M.ref.value="":(M.ref.value=P,M.ref.type||p.values.next({name:x,values:{...s}})))}(I.shouldDirty||I.shouldTouch)&&R(x,P,I.shouldTouch,I.shouldDirty,!0),I.shouldValidate&&ye(x)},Y=(x,k,I)=>{for(const O in k){const P=k[O],M=`${x}.${O}`,W=B(o,M);(c.array.has(x)||!kr(P)||W&&!W._f)&&!nn(P)?Y(M,P,I):U(M,P,I)}},Q=(x,k,I={})=>{const O=B(o,x),P=c.array.has(x),M=Te(k);oe(s,x,M),P?(p.array.next({name:x,values:{...s}}),(f.isDirty||f.dirtyFields)&&I.shouldDirty&&p.state.next({name:x,dirtyFields:ho(i,s),isDirty:L(x,M)})):O&&!O._f&&!De(M)?Y(x,M,I):U(x,M,I),Ko(x,c)&&p.state.next({...r}),p.values.next({name:x,values:{...s}}),!a.mount&&t()},de=async x=>{const k=x.target;let I=k.name,O=!0;const P=B(o,I),M=()=>k.type?go(P._f):fl(x),W=X=>{O=Number.isNaN(X)||X===B(s,I,X)};if(P){let X,se;const K=M(),Ve=x.type===_r.BLUR||x.type===_r.FOCUS_OUT,Dt=!Yb(P._f)&&!n.resolver&&!B(r.errors,I)&&!P._f.deps||qb(Ve,B(r.touchedFields,I),r.isSubmitted,b,m),st=Ko(I,c,Ve);oe(s,I,K),Ve?(P._f.onBlur&&P._f.onBlur(x),l&&l(0)):P._f.onChange&&P._f.onChange(x);const pt=R(I,K,Ve,!1),vn=!Be(pt)||st;if(!Ve&&p.values.next({name:I,type:x.type,values:{...s}}),Dt)return f.isValid&&y(),vn&&p.state.next({name:I,...st?{}:pt});if(!Ve&&st&&p.state.next({...r}),C(!0),n.resolver){const{errors:Yt}=await j([I]);if(W(K),O){const xn=da(r.errors,o,I),qt=da(Yt,o,xn.name||I);X=qt.error,I=qt.name,se=Be(Yt)}}else X=(await Go(P,s,w,n.shouldUseNativeValidation))[I],W(K),O&&(X?se=!1:f.isValid&&(se=await A(o,!0)));O&&(P._f.deps&&ye(P._f.deps),F(I,se,X,pt))}},ne=(x,k)=>{if(B(r.errors,k)&&x.focus)return x.focus(),1},ye=async(x,k={})=>{let I,O;const P=Ue(x);if(C(!0),n.resolver){const M=await z(ce(x)?x:P);I=Be(M),O=x?!P.some(W=>B(M,W)):I}else x?(O=(await Promise.all(P.map(async M=>{const W=B(o,M);return await A(W&&W._f?{[M]:W}:W)}))).every(Boolean),!(!O&&!r.isValid)&&y()):O=I=await A(o);return p.state.next({...!ct(x)||f.isValid&&I!==r.isValid?{}:{name:x},...n.resolver||!x?{isValid:I}:{},errors:r.errors,isValidating:!1}),k.shouldFocus&&!O&&sn(o,ne,x?P:c.mount),O},pe=x=>{const k={...i,...a.mount?s:{}};return ce(x)?k:ct(x)?B(k,x):x.map(I=>B(k,I))},re=(x,k)=>({invalid:!!B((k||r).errors,x),isDirty:!!B((k||r).dirtyFields,x),isTouched:!!B((k||r).touchedFields,x),error:B((k||r).errors,x)}),le=x=>{x&&Ue(x).forEach(k=>$e(r.errors,k)),p.state.next({errors:x?r.errors:{}})},ie=(x,k,I)=>{const O=(B(o,x,{_f:{}})._f||{}).ref;oe(r.errors,x,{...k,ref:O}),p.state.next({name:x,errors:r.errors,isValid:!1}),I&&I.shouldFocus&&O&&O.focus&&O.focus()},Ce=(x,k)=>kt(x)?p.values.subscribe({next:I=>x(D(void 0,k),I)}):D(x,k,!0),_e=(x,k={})=>{for(const I of x?Ue(x):c.mount)c.mount.delete(I),c.array.delete(I),k.keepValue||($e(o,I),$e(s,I)),!k.keepError&&$e(r.errors,I),!k.keepDirty&&$e(r.dirtyFields,I),!k.keepTouched&&$e(r.touchedFields,I),!n.shouldUnregister&&!k.keepDefaultValue&&$e(i,I);p.values.next({values:{...s}}),p.state.next({...r,...k.keepDirty?{isDirty:L()}:{}}),!k.keepIsValid&&y()},ve=({disabled:x,name:k,field:I,fields:O,value:P})=>{if(Ze(x)){const M=x?void 0:ce(P)?go(I?I._f:B(O,k)._f):P;oe(s,k,M),R(k,M,!1,!1,!0)}},it=(x,k={})=>{let I=B(o,x);const O=Ze(k.disabled);return oe(o,x,{...I||{},_f:{...I&&I._f?I._f:{ref:{name:x}},name:x,mount:!0,...k}}),c.mount.add(x),I?ve({field:I,disabled:k.disabled,name:x,value:k.value}):T(x,!0,k.value),{...O?{disabled:k.disabled}:{},...n.progressive?{required:!!k.required,min:Cn(k.min),max:Cn(k.max),minLength:Cn(k.minLength),maxLength:Cn(k.maxLength),pattern:Cn(k.pattern)}:{},name:x,onChange:de,onBlur:de,ref:P=>{if(P){it(x,k),I=B(o,x);const M=ce(P.value)&&P.querySelectorAll&&P.querySelectorAll("input,select,textarea")[0]||P,W=Kb(M),X=I._f.refs||[];if(W?X.find(se=>se===M):M===I._f.ref)return;oe(o,x,{_f:{...I._f,...W?{refs:[...X.filter(po),M,...Array.isArray(B(i,x))?[{}]:[]],ref:{type:M.type,name:x}}:{ref:M}}}),T(x,!1,void 0,M)}else I=B(o,x,{}),I._f&&(I._f.mount=!1),(n.shouldUnregister||k.shouldUnregister)&&!(pl(c.array,x)&&a.action)&&c.unMount.add(x)}}},dt=()=>n.shouldFocusError&&sn(o,ne,c.mount),_t=x=>{Ze(x)&&(p.state.next({disabled:x}),sn(o,(k,I)=>{let O=x;const P=B(o,I);P&&Ze(P._f.disabled)&&(O||(O=P._f.disabled)),k.disabled=O},0,!1))},Ne=(x,k)=>async I=>{I&&(I.preventDefault&&I.preventDefault(),I.persist&&I.persist());let O=Te(s);if(p.state.next({isSubmitting:!0}),n.resolver){const{errors:P,values:M}=await j();r.errors=P,O=M}else await A(o);$e(r.errors,"root"),Be(r.errors)?(p.state.next({errors:{}}),await x(O,I)):(k&&await k({...r.errors},I),dt(),setTimeout(dt)),p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Be(r.errors),submitCount:r.submitCount+1,errors:r.errors})},ft=(x,k={})=>{B(o,x)&&(ce(k.defaultValue)?Q(x,B(i,x)):(Q(x,k.defaultValue),oe(i,x,k.defaultValue)),k.keepTouched||$e(r.touchedFields,x),k.keepDirty||($e(r.dirtyFields,x),r.isDirty=k.defaultValue?L(x,B(i,x)):L()),k.keepError||($e(r.errors,x),f.isValid&&y()),p.state.next({...r}))},Pe=(x,k={})=>{const I=x?Te(x):i,O=Te(I),P=x&&!Be(x)?O:i;if(k.keepDefaultValues||(i=I),!k.keepValues){if(k.keepDirtyValues||g)for(const M of c.mount)B(r.dirtyFields,M)?oe(P,M,B(s,M)):Q(M,B(P,M));else{if(Si&&ce(x))for(const M of c.mount){const W=B(o,M);if(W&&W._f){const X=Array.isArray(W._f.refs)?W._f.refs[0]:W._f.ref;if(Sr(X)){const se=X.closest("form");if(se){se.reset();break}}}}o={}}s=e.shouldUnregister?k.keepDefaultValues?Te(i):{}:Te(P),p.array.next({values:{...P}}),p.values.next({values:{...P}})}c={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!a.mount&&t(),a.mount=!f.isValid||!!k.keepIsValid,a.watch=!!e.shouldUnregister,p.state.next({submitCount:k.keepSubmitCount?r.submitCount:0,isDirty:k.keepDirty?r.isDirty:!!(k.keepDefaultValues&&!Lt(x,i)),isSubmitted:k.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:k.keepDirtyValues?r.dirtyFields:k.keepDefaultValues&&x?ho(i,x):{},touchedFields:k.keepTouched?r.touchedFields:{},errors:k.keepErrors?r.errors:{},isSubmitSuccessful:k.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},Ye=(x,k)=>Pe(kt(x)?x(s):x,k);return{control:{register:it,unregister:_e,getFieldState:re,handleSubmit:Ne,setError:ie,_executeSchema:j,_getWatch:D,_getDirty:L,_updateValid:y,_removeUnmounted:N,_updateFieldArray:_,_updateDisabledField:ve,_getFieldArray:V,_reset:Pe,_resetDefaultValues:()=>kt(n.defaultValues)&&n.defaultValues().then(x=>{Ye(x,n.resetOptions),p.state.next({isLoading:!1})}),_updateFormState:x=>{r={...r,...x}},_disableForm:_t,_subjects:p,_proxyFormState:f,_setErrors:E,get _fields(){return o},get _formValues(){return s},get _state(){return a},set _state(x){a=x},get _defaultValues(){return i},get _names(){return c},set _names(x){c=x},get _formState(){return r},set _formState(x){r=x},get _options(){return n},set _options(x){n={...n,...x}}},trigger:ye,register:it,handleSubmit:Ne,watch:Ce,setValue:Q,getValues:pe,reset:Ye,resetField:ft,clearErrors:le,unregister:_e,setError:ie,setFocus:(x,k={})=>{const I=B(o,x),O=I&&I._f;if(O){const P=O.refs?O.refs[0]:O.ref;P.focus&&(P.focus(),k.shouldSelect&&P.select())}},getFieldState:re}}function Jb(e={}){const t=h.useRef(),n=h.useRef(),[r,o]=h.useState({isDirty:!1,isValidating:!1,isLoading:kt(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:e.errors||{},disabled:!1,defaultValues:kt(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Qb(e,()=>o(s=>({...s}))),formState:r});const i=t.current.control;return i._options=e,Wr({subject:i._subjects.state,next:s=>{ml(s,i._proxyFormState,i._updateFormState,!0)&&o({...i._formState})}}),h.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),h.useEffect(()=>{if(i._proxyFormState.isDirty){const s=i._getDirty();s!==r.isDirty&&i._subjects.state.next({isDirty:s})}},[i,r.isDirty]),h.useEffect(()=>{e.values&&!Lt(e.values,n.current)?(i._reset(e.values,i._options.resetOptions),n.current=e.values,o(s=>({...s}))):i._resetDefaultValues()},[e.values,i]),h.useEffect(()=>{e.errors&&i._setErrors(e.errors)},[e.errors,i]),h.useEffect(()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),t.current.formState=gl(r,i),t.current}const ey=zl` + */var Z0=W0,Q0=G0,Qs=Qc,Js=X0,J0=function(e,t,n){if(!Js(e)||(Array.isArray(t)&&(t=[].concat.apply([],t).join(".")),typeof t!="string"))return e;for(var r=Z0(t,{sep:".",brackets:!0}).filter(em),o=r.length,i=-1,s=e;++ie.filter(Boolean).join(".");function om(e){const t=e.split(".");return[t.pop(),t.join(".")||void 0]}function im(e,t){return Object.entries(Ih(e,t)).reduce((n,[,{value:r,disabled:o,key:i}])=>(n[i]=o?void 0:r,n),{})}function sm(e,t){const n=d.useRef();return(t?In:Vn)(e,n.current)||(n.current=e),n.current}function el(e,t){return d.useMemo(e,sm(t,!0))}function am(e){const t=d.useRef(null),n=d.useRef(null),r=d.useRef(!0);return d.useLayoutEffect(()=>{e||(t.current.style.height="0px",t.current.style.overflow="hidden")},[]),d.useEffect(()=>{if(r.current){r.current=!1;return}let o;const i=t.current,s=()=>{e&&(i.style.removeProperty("height"),i.style.removeProperty("overflow"),n.current.scrollIntoView({behavior:"smooth",block:"nearest"}))};i.addEventListener("transitionend",s,{once:!0});const{height:a}=n.current.getBoundingClientRect();return i.style.height=a+"px",e||(i.style.overflow="hidden",o=window.setTimeout(()=>i.style.height="0px",50)),()=>{i.removeEventListener("transitionend",s),clearTimeout(o)}},[e]),{wrapperRef:t,contentRef:n}}const cm=e=>{const[t,n]=d.useState(e.getVisiblePaths());return d.useEffect(()=>{n(e.getVisiblePaths());const r=e.useStore.subscribe(e.getVisiblePaths,n,{equalityFn:Vn});return()=>r()},[e]),t};function lm(e,t,n){return e.useStore(o=>{const i=q(q({},n),o.data);return im(i,t)},Vn)}function tl(e=3){const t=d.useRef(null),n=d.useRef(null),[r,o]=d.useState(!1),i=d.useCallback(()=>o(!0),[]),s=d.useCallback(()=>o(!1),[]);return d.useLayoutEffect(()=>{if(r){const{bottom:a,top:c,left:l}=t.current.getBoundingClientRect(),{height:u}=n.current.getBoundingClientRect(),f=a+u>window.innerHeight-40?"up":"down";n.current.style.position="fixed",n.current.style.zIndex="10000",n.current.style.left=l+"px",f==="down"?n.current.style.top=a+e+"px":n.current.style.bottom=window.innerHeight-c+e+"px"}},[e,r]),{popinRef:t,wrapperRef:n,shown:r,show:i,hide:s}}m1([b1]);const um={rgb:"toRgb",hsl:"toHsl",hsv:"toHsv",hex:"toHex"};Fe.extend({color:()=>e=>Ie(e).isValid()});const dm=e=>Fe().color().test(e);function nl(e,{format:t,hasAlpha:n,isString:r}){const o=um[t]+(r&&t!=="hex"?"String":""),i=e[o]();return typeof i=="object"&&!n?Dh(i,["a"]):i}const rl=(e,t)=>{const n=Ie(e);if(!n.isValid())throw Error("Invalid color");return nl(n,t)},fm=(e,t)=>nl(Ie(e),q(q({},t),{},{isString:!0,format:"hex"})),pm=({value:e})=>{const t=g1(e),n=t==="name"?"hex":t,r=typeof e=="object"?"a"in e:t==="hex"&&e.length===8||/^(rgba)|(hsla)|(hsva)/.test(e),o={format:n,hasAlpha:r,isString:typeof e=="string"};return{value:rl(e,o),settings:o}};var hm=Object.freeze({__proto__:null,schema:dm,sanitize:rl,format:fm,normalize:pm});const gm=G("div",{position:"relative",boxSizing:"border-box",borderRadius:"$sm",overflow:"hidden",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",backgroundColor:"#fff",backgroundImage:`url('data:image/svg+xml;charset=utf-8,')`,$inputStyle:"",$hover:"",zIndex:1,variants:{active:{true:{$inputStyle:"$accent1"}}},"&::before":{content:'""',position:"absolute",top:0,bottom:0,right:0,left:0,backgroundColor:"currentColor",zIndex:1}}),mm=G("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto",columnGap:"$colGap",alignItems:"center"}),bm=G("div",{width:"$colorPickerWidth",height:"$colorPickerHeight",".react-colorful":{width:"100%",height:"100%",boxShadow:"$level2",cursor:"crosshair"},".react-colorful__saturation":{borderRadius:"$sm $sm 0 0"},".react-colorful__alpha, .react-colorful__hue":{height:10},".react-colorful__last-control":{borderRadius:"0 0 $sm $sm"},".react-colorful__pointer":{height:12,width:12}});function na(e,t){return t!=="rgb"?Ie(e).toRgb():e}function ym({value:e,displayValue:t,settings:n,onUpdate:r}){const{emitOnEditStart:o,emitOnEditEnd:i}=Re(),{format:s,hasAlpha:a}=n,{popinRef:c,wrapperRef:l,shown:u,show:f,hide:p}=tl(),g=d.useRef(0),[m,b]=d.useState(()=>na(e,s)),w=a?C1:S1,v=()=>{b(na(e,s)),f(),o()},y=()=>{p(),i(),window.clearTimeout(g.current)},C=()=>{g.current=window.setTimeout(y,500)};return d.useEffect(()=>()=>window.clearTimeout(g.current),[]),h.createElement(h.Fragment,null,h.createElement(gm,{ref:c,active:u,onClick:()=>v(),style:{color:t}}),u&&h.createElement(bi,null,h.createElement(Cc,{onPointerUp:y}),h.createElement(bm,{ref:l,onMouseEnter:()=>window.clearTimeout(g.current),onMouseLeave:S=>S.buttons===0&&C()},h.createElement(w,{color:m,onChange:r}))))}function vm(){const{value:e,displayValue:t,label:n,onChange:r,onUpdate:o,settings:i}=Re();return h.createElement(tt,{input:!0},h.createElement(ot,null,n),h.createElement(mm,null,h.createElement(ym,{value:e,displayValue:t,onChange:r,onUpdate:o,settings:i}),h.createElement(mi,{value:t,onChange:r,onUpdate:o})))}var xm=q({component:vm},hm);function wm(){const{label:e,displayValue:t,onUpdate:n,settings:r}=Re();return h.createElement(tt,{input:!0},h.createElement(ot,null,e),h.createElement(vi,{value:t,settings:r,onUpdate:n}))}var Em=q({component:wm},Ac(["x","y","z"]));const $m=G("div",{$flexCenter:"",position:"relative",backgroundColor:"$elevation3",borderRadius:"$sm",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",touchAction:"none",$draggable:"",$hover:"","&:active":{cursor:"none"},"&::after":{content:'""',backgroundColor:"$accent2",height:4,width:4,borderRadius:2}}),Cm=G("div",{$flexCenter:"",width:"$joystickWidth",height:"$joystickHeight",borderRadius:"$sm",boxShadow:"$level2",position:"fixed",zIndex:1e4,overflow:"hidden",$draggable:"",transform:"translate(-50%, -50%)",variants:{isOutOfBounds:{true:{backgroundColor:"$elevation1"},false:{backgroundColor:"$elevation3"}}},"> div":{position:"absolute",$flexCenter:"",borderStyle:"solid",borderWidth:1,borderColor:"$highlight1",backgroundColor:"$elevation3",width:"80%",height:"80%","&::after,&::before":{content:'""',position:"absolute",zindex:10,backgroundColor:"$highlight1"},"&::before":{width:"100%",height:1},"&::after":{height:"100%",width:1}},"> span":{position:"relative",zindex:100,width:10,height:10,backgroundColor:"$accent2",borderRadius:"50%"}});function _m({value:e,settings:t,onUpdate:n}){const r=d.useRef(),o=d.useRef(0),i=d.useRef(0),s=d.useRef(1),[a,c]=d.useState(!1),[l,u]=d.useState(!1),[f,p]=Sc(),g=d.useRef(null),m=d.useRef(null);d.useLayoutEffect(()=>{if(a){const{top:A,left:N,width:L,height:D}=g.current.getBoundingClientRect();m.current.style.left=N+L/2+"px",m.current.style.top=A+D/2+"px"}},[a]);const{keys:[b,w],joystick:v}=t,y=v==="invertY"?1:-1,{[b]:{step:C},[w]:{step:S}}=t,E=yt("sizes","joystickWidth"),$=yt("sizes","joystickHeight"),T=parseFloat(E)*.8/2,R=parseFloat($)*.8/2,F=d.useCallback(()=>{r.current||(u(!0),o.current&&p({x:o.current*T}),i.current&&p({y:i.current*-R}),r.current=window.setInterval(()=>{n(A=>{const N=C*o.current*s.current,L=y*S*i.current*s.current;return Array.isArray(A)?{[b]:A[0]+N,[w]:A[1]+L}:{[b]:A[b]+N,[w]:A[w]+L}})},16))},[T,R,n,p,C,S,b,w,y]),j=d.useCallback(()=>{window.clearTimeout(r.current),r.current=void 0,u(!1)},[]);d.useEffect(()=>{function A(N){s.current=uc(N)}return window.addEventListener("keydown",A),window.addEventListener("keyup",A),()=>{window.clearTimeout(r.current),window.removeEventListener("keydown",A),window.removeEventListener("keyup",A)}},[]);const z=Un(({first:A,active:N,delta:[L,D],movement:[V,U]})=>{A&&c(!0);const Y=It(V,-T,T),J=It(U,-R,R);o.current=Math.abs(V)>Math.abs(Y)?Math.sign(V-Y):0,i.current=Math.abs(U)>Math.abs(J)?Math.sign(J-U):0;let pe=e[b],re=e[w];N?(o.current||(pe+=L*C*s.current,p({x:Y})),i.current||(re-=y*D*S*s.current,p({y:J})),o.current||i.current?F():j(),n({[b]:pe,[w]:re})):(c(!1),o.current=0,i.current=0,p({x:0,y:0}),j())});return h.createElement($m,ye({ref:g},z()),a&&h.createElement(bi,null,h.createElement(Cm,{ref:m,isOutOfBounds:l},h.createElement("div",null),h.createElement("span",{ref:f}))))}const Sm=G("div",{display:"grid",columnGap:"$colGap",variants:{withJoystick:{true:{gridTemplateColumns:"$sizes$rowHeight auto"},false:{gridTemplateColumns:"auto"}}}});function Tm(){const{label:e,displayValue:t,onUpdate:n,settings:r}=Re();return h.createElement(tt,{input:!0},h.createElement(ot,null,e),h.createElement(Sm,{withJoystick:!!r.joystick},r.joystick&&h.createElement(_m,{value:t,settings:r,onUpdate:n}),h.createElement(vi,{value:t,settings:r,onUpdate:n})))}const km=["joystick"],ol=Ac(["x","y"]),Rm=e=>{let{joystick:t=!0}=e,n=ne(e,km);const{value:r,settings:o}=ol.normalize(n);return{value:r,settings:q(q({},o),{},{joystick:t})}};var Om=q(q({component:Tm},ol),{},{normalize:Rm});const Pm=e=>{if(e!==void 0){if(e instanceof File)try{return URL.createObjectURL(e)}catch{return}if(typeof e=="string"&&e.indexOf("blob:")===0)return e;throw Error("Invalid image format [undefined | blob | File].")}},Am=(e,t)=>typeof t=="object"&&"image"in t,Im=({image:e})=>({value:e});var Dm=Object.freeze({__proto__:null,sanitize:Pm,schema:Am,normalize:Im});const Mm=G("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto 20px",columnGap:"$colGap",alignItems:"center"}),jm=G("div",{$flexCenter:"",overflow:"hidden",height:"$rowHeight",background:"$elevation3",textAlign:"center",color:"inherit",borderRadius:"$sm",outline:"none",userSelect:"none",cursor:"pointer",$inputStyle:"",$hover:"",$focusWithin:"",$active:"$accent1 $elevation1",variants:{isDragAccept:{true:{$inputStyle:"$accent1",backgroundColor:"$elevation1"}}}}),Lm=G("div",{boxSizing:"border-box",borderRadius:"$sm",height:"$rowHeight",width:"$rowHeight",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center",variants:{hasImage:{true:{cursor:"pointer",$hover:"",$active:""}}}}),Fm=G("div",{$flexCenter:"",width:"$imagePreviewWidth",height:"$imagePreviewHeight",borderRadius:"$sm",boxShadow:"$level2",pointerEvents:"none",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center"}),zm=G("div",{fontSize:"0.8em",height:"100%",padding:"$rowGap $md"}),Nm=G("div",{$flexCenter:"",top:"0",right:"0",marginRight:"$sm",height:"100%",cursor:"pointer",variants:{disabled:{true:{color:"$elevation3",cursor:"default"}}},"&::after,&::before":{content:'""',position:"absolute",height:2,width:10,borderRadius:1,backgroundColor:"currentColor"},"&::after":{transform:"rotate(45deg)"},"&::before":{transform:"rotate(-45deg)"}});function Vm(){const{label:e,value:t,onUpdate:n,disabled:r}=Re(),{popinRef:o,wrapperRef:i,shown:s,show:a,hide:c}=tl(),l=d.useCallback(m=>{m.length&&n(m[0])},[n]),u=d.useCallback(m=>{m.stopPropagation(),n(void 0)},[n]),{getRootProps:f,getInputProps:p,isDragAccept:g}=Zc({maxFiles:1,accept:"image/*",onDrop:l,disabled:r});return h.createElement(tt,{input:!0},h.createElement(ot,null,e),h.createElement(Mm,null,h.createElement(Lm,{ref:o,hasImage:!!t,onPointerDown:()=>!!t&&a(),onPointerUp:c,style:{backgroundImage:t?`url(${t})`:"none"}}),s&&!!t&&h.createElement(bi,null,h.createElement(Cc,{onPointerUp:c,style:{cursor:"pointer"}}),h.createElement(Fm,{ref:i,style:{backgroundImage:`url(${t})`}})),h.createElement(jm,f({isDragAccept:g}),h.createElement("input",p()),h.createElement(zm,null,g?"drop image":"click or drop")),h.createElement(Nm,{onClick:u,disabled:!t})))}var Bm=q({component:Vm},Dm);const ra=Fe().number(),Wm=(e,t)=>Fe().array().length(2).every.number().test(e)&&Fe().schema({min:ra,max:ra}).test(t),Er=e=>({min:e[0],max:e[1]}),il=(e,{bounds:[t,n]},r)=>{const o=Array.isArray(e)?Er(e):e,i={min:r[0],max:r[1]},{min:s,max:a}=q(q({},i),o);return[It(Number(s),t,Math.max(t,a)),It(Number(a),Math.min(n,s),n)]},Hm=({value:e,min:t,max:n})=>{const r={min:t,max:n},o=Pc(Er(e),{min:r,max:r}),i=[t,n],s=q(q({},o),{},{bounds:i});return{value:il(Er(e),s,e),settings:s}};var Um=Object.freeze({__proto__:null,schema:Wm,format:Er,sanitize:il,normalize:Hm});const Km=["value","bounds","onDrag"],Gm=["bounds"],Ym=G("div",{display:"grid",columnGap:"$colGap",gridTemplateColumns:"auto calc($sizes$numberInputMinWidth * 2 + $space$rowGap)"});function qm(e){let{value:t,bounds:[n,r],onDrag:o}=e,i=ne(e,Km);const s=d.useRef(null),a=d.useRef(null),c=d.useRef(null),l=d.useRef(0),u=yt("sizes","scrubberWidth"),f=Un(({event:m,first:b,xy:[w],movement:[v],memo:y={}})=>{if(b){const{width:S,left:E}=s.current.getBoundingClientRect();l.current=S-parseFloat(u);const $=(m==null?void 0:m.target)===a.current||(m==null?void 0:m.target)===c.current;y.pos=br((w-E)/S,n,r);const T=Math.abs(y.pos-t.min)-Math.abs(y.pos-t.max);y.key=T<0||T===0&&y.pos<=t.min?"min":"max",$&&(y.pos=t[y.key])}const C=y.pos+br(v/l.current,0,r-n);return o({[y.key]:Eg(C,i[y.key])}),y}),p=`calc(${mr(t.min,n,r)} * (100% - ${u} - 8px) + 4px)`,g=`calc(${1-mr(t.max,n,r)} * (100% - ${u} - 8px) + 4px)`;return h.createElement(kc,ye({ref:s},f()),h.createElement(Tc,null,h.createElement(Rc,{style:{left:p,right:g}})),h.createElement(Ao,{position:"left",ref:a,style:{left:p}}),h.createElement(Ao,{position:"right",ref:c,style:{right:g}}))}function Xm(){const{label:e,displayValue:t,onUpdate:n,settings:r}=Re(),o=ne(r,Gm);return h.createElement(h.Fragment,null,h.createElement(tt,{input:!0},h.createElement(ot,null,e),h.createElement(Ym,null,h.createElement(qm,ye({value:t},r,{onDrag:n})),h.createElement(vi,{value:t,settings:o,onUpdate:n,innerLabelTrim:0}))))}var Zm=q({component:Xm},Um);const Qm=()=>{const e=new Map;return{on:(t,n)=>{let r=e.get(t);r===void 0&&(r=new Set,e.set(t,r)),r.add(n)},off:(t,n)=>{const r=e.get(t);r!==void 0&&(r.delete(n),r.size===0&&e.delete(t))},emit:(t,...n)=>{const r=e.get(t);if(r!==void 0)for(const o of r)o(...n)}}},Jm=["type","value"],eb=["onChange","transient","onEditStart","onEditEnd"],tb=function(){const t=w0(E0(()=>({data:{}}))),n=Qm();this.storeId=Ah(),this.useStore=t;const r={},o=new Set;this.getVisiblePaths=()=>{const s=this.getData(),a=Object.keys(s),c=[];Object.entries(r).forEach(([u,f])=>{f.render&&a.some(p=>p.indexOf(u)===0)&&!f.render(this.get)&&c.push(u+".")});const l=[];return o.forEach(u=>{u in s&&s[u].__refCount>0&&c.every(f=>u.indexOf(f)===-1)&&(!s[u].render||s[u].render(this.get))&&l.push(u)}),l},this.setOrderedPaths=s=>{s.forEach(a=>o.add(a))},this.orderPaths=s=>(this.setOrderedPaths(s),s),this.disposePaths=s=>{t.setState(a=>{const c=a.data;return s.forEach(l=>{if(l in c){const u=c[l];u.__refCount--,u.__refCount===0&&u.type in nt&&delete c[l]}}),{data:c}})},this.dispose=()=>{t.setState(()=>({data:{}}))},this.getFolderSettings=s=>r[s]||{},this.getData=()=>t.getState().data,this.addData=(s,a)=>{t.setState(c=>{const l=c.data;return Object.entries(s).forEach(([u,f])=>{let p=l[u];if(p){const{type:g,value:m}=f,b=ne(f,Jm);g!==p.type?bt(me.INPUT_TYPE_OVERRIDE,g):((p.__refCount===0||a)&&Object.assign(p,b),p.__refCount++)}else l[u]=q(q({},f),{},{__refCount:1})}),{data:l}})},this.setValueAtPath=(s,a,c)=>{t.setState(l=>{const u=l.data;return Ss(u[s],a,s,this,c),{data:u}})},this.setSettingsAtPath=(s,a)=>{t.setState(c=>{const l=c.data;return l[s].settings=q(q({},l[s].settings),a),{data:l}})},this.disableInputAtPath=(s,a)=>{t.setState(c=>{const l=c.data;return l[s].disabled=a,{data:l}})},this.set=(s,a)=>{t.setState(c=>{const l=c.data;return Object.entries(s).forEach(([u,f])=>{try{Ss(l[u],f,void 0,void 0,a)}catch{}}),{data:l}})},this.getInput=s=>{try{return this.getData()[s]}catch{bt(me.PATH_DOESNT_EXIST,s)}},this.get=s=>{var a;return(a=this.getInput(s))===null||a===void 0?void 0:a.value},this.emitOnEditStart=s=>{n.emit(`onEditStart:${s}`,this.get(s),s,q(q({},this.getInput(s)),{},{get:this.get}))},this.emitOnEditEnd=s=>{n.emit(`onEditEnd:${s}`,this.get(s),s,q(q({},this.getInput(s)),{},{get:this.get}))},this.subscribeToEditStart=(s,a)=>{const c=`onEditStart:${s}`;return n.on(c,a),()=>n.off(c,a)},this.subscribeToEditEnd=(s,a)=>{const c=`onEditEnd:${s}`;return n.on(c,a),()=>n.off(c,a)};const i=(s,a,c)=>{const l={};return Object.entries(s).forEach(([u,f])=>{if(u==="")return bt(me.EMPTY_KEY);let p=Si(a,u);if(f.type===nt.FOLDER){const g=i(f.schema,p,c);Object.assign(l,g),p in r||(r[p]=f.settings)}else if(u in c)bt(me.DUPLICATE_KEYS,u,p,c[u].path);else{const g=Nh(f,u,p,l);if(g){const{type:m,options:b,input:w}=g,{onChange:v,transient:y,onEditStart:C,onEditEnd:S}=b,E=ne(b,eb);l[p]=q(q(q({type:m},E),w),{},{fromPanel:!0}),c[u]={path:p,onChange:v,transient:y,onEditStart:C,onEditEnd:S}}else bt(me.UNKNOWN_INPUT,p,f)}}),l};this.getDataFromSchema=s=>{const a={};return[i(s,"",a),a]}},sl=new tb,nb={collapsed:!1};function rb(e,t){return{type:nt.FOLDER,schema:e,settings:q(q({},nb),t)}}const oa=e=>"__levaInput"in e,ob=(e,t)=>{const n={},r=t?t.toLowerCase():null;return e.forEach(o=>{const[i,s]=om(o);(!r||i.toLowerCase().indexOf(r)>-1)&&rm(n,s,{[i]:{__levaInput:!0,path:o}})}),n},ib=["type","label","path","valueKey","value","settings","setValue","disabled"];function sb(e){let{type:t,label:n,path:r,valueKey:o,value:i,settings:s,setValue:a,disabled:c}=e,l=ne(e,ib);const{displayValue:u,onChange:f,onUpdate:p}=_c({type:t,value:i,settings:s,setValue:a}),g=Bt[t].component;return g?h.createElement(gc.Provider,{value:q({key:o,path:r,id:""+r,label:n,displayValue:u,value:i,onChange:f,onUpdate:p,settings:s,setValue:a,disabled:c},l)},h.createElement(sg,{disabled:c},h.createElement(g,null))):(bt(me.NO_COMPONENT_FOR_TYPE,t,r),null)}const ab=G("button",{display:"block",$reset:"",fontWeight:"$button",height:"$rowHeight",borderStyle:"none",borderRadius:"$sm",backgroundColor:"$elevation1",color:"$highlight1","&:not(:disabled)":{color:"$highlight3",backgroundColor:"$accent2",cursor:"pointer",$hover:"$accent3",$active:"$accent3 $accent1",$focus:""}});function cb({onClick:e,settings:t,label:n}){const r=Hn();return h.createElement(tt,null,h.createElement(ab,{disabled:t.disabled,onClick:()=>e(r.get)},n))}const lb=G("div",{$flex:"",justifyContent:"flex-end",gap:"$colGap"}),ub=G("button",{$reset:"",cursor:"pointer",borderRadius:"$xs","&:hover":{backgroundColor:"$elevation3"}}),db=({label:e,opts:t})=>{let n=typeof e=="string"&&e.trim()===""?null:e,r=t;return typeof t.opts=="object"&&(r.label!==void 0&&(n=t.label),r=t.opts),{label:n,opts:r}};function fb(e){const{label:t,opts:n}=db(e),r=Hn();return h.createElement(tt,{input:!!t},t&&h.createElement(ot,null,t),h.createElement(lb,null,Object.entries(n).map(([o,i])=>h.createElement(ub,{key:o,onClick:()=>i(r.get)},o))))}const pb=G("canvas",{height:"$monitorHeight",width:"100%",display:"block",borderRadius:"$sm"}),al=100;function hb(e,t){e.push(t),e.length>al&&e.shift()}const gb=d.forwardRef(function({initialValue:e},t){const n=yt("colors","highlight3"),r=yt("colors","elevation2"),o=yt("colors","highlight1"),[i,s]=d.useMemo(()=>[Ie(o).alpha(.4).toRgbString(),Ie(o).alpha(.1).toRgbString()],[o]),a=d.useRef([e]),c=d.useRef(e),l=d.useRef(e),u=d.useRef(),f=d.useCallback((m,b)=>{if(!m)return;const{width:w,height:v}=m,y=new Path2D,C=w/al,S=v*.05;for(let T=0;T({frame:m=>{(c.current===void 0||ml.current)&&(l.current=m),hb(a.current,m),u.current=requestAnimationFrame(()=>f(p.current,g.current))}}),[p,g,f]),d.useEffect(()=>()=>cancelAnimationFrame(u.current),[]),h.createElement(pb,{ref:p})}),ia=e=>Number.isFinite(e)?e.toPrecision(2):e.toString(),mb=d.forwardRef(function({initialValue:e},t){const[n,r]=d.useState(ia(e));return d.useImperativeHandle(t,()=>({frame:o=>r(ia(o))}),[]),h.createElement("div",null,n)});function sa(e){return typeof e=="function"?e():e.current}function bb({label:e,objectOrFn:t,settings:n}){const r=d.useRef(),o=d.useRef(sa(t));return d.useEffect(()=>{const i=window.setInterval(()=>{var s;document.hidden||(s=r.current)===null||s===void 0||s.frame(sa(t))},n.interval);return()=>window.clearInterval(i)},[t,n.interval]),h.createElement(tt,{input:!0},h.createElement(ot,{align:"top"},e),n.graph?h.createElement(gb,{ref:r,initialValue:o.current}):h.createElement(mb,{ref:r,initialValue:o.current}))}const yb=["type","label","key"],vb={[nt.BUTTON]:cb,[nt.BUTTON_GROUP]:fb,[nt.MONITOR]:bb},xb=h.memo(({path:e})=>{const[t,{set:n,setSettings:r,disable:o,storeId:i,emitOnEditStart:s,emitOnEditEnd:a}]=bg(e);if(!t)return null;const{type:c,label:l,key:u}=t,f=ne(t,yb);if(c in nt){const p=vb[c];return h.createElement(p,ye({label:l,path:e},f))}return c in Bt?h.createElement(sb,ye({key:i+e,type:c,label:l,storeId:i,path:e,valueKey:u,setValue:n,setSettings:r,disable:o,emitOnEditStart:s,emitOnEditEnd:a},f)):(Ch(me.UNSUPPORTED_INPUT,c,e),null)});function wb({toggle:e,toggled:t,name:n}){return h.createElement(rg,{onClick:()=>e()},h.createElement(yi,{toggled:t}),h.createElement("div",null,n))}const Eb=({name:e,path:t,tree:n})=>{const r=Hn(),o=Si(t,e),{collapsed:i,color:s}=r.getFolderSettings(o),[a,c]=d.useState(!i),l=d.useRef(null),u=yt("colors","folderWidgetColor"),f=yt("colors","folderTextColor");return d.useLayoutEffect(()=>{l.current.style.setProperty("--leva-colors-folderWidgetColor",s||u),l.current.style.setProperty("--leva-colors-folderTextColor",s||f)},[s,u,f]),h.createElement(yr,{ref:l},h.createElement(wb,{name:e,toggled:a,toggle:()=>c(p=>!p)}),h.createElement(cl,{parent:o,tree:n,toggled:a}))},cl=h.memo(({isRoot:e=!1,fill:t=!1,flat:n=!1,parent:r,tree:o,toggled:i})=>{const{wrapperRef:s,contentRef:a}=am(i),c=Hn(),l=([f,p])=>{var g;return(oa(p)?(g=c.getInput(p.path))===null||g===void 0?void 0:g.order:c.getFolderSettings(Si(r,f)).order)||0},u=Object.entries(o).sort((f,p)=>l(f)-l(p));return h.createElement(Oo,{ref:s,isRoot:e,fill:t,flat:n},h.createElement(wc,{ref:a,isRoot:e,toggled:i},u.map(([f,p])=>oa(p)?h.createElement(xb,{key:p.path,valueKey:p.valueKey,path:p.path}):h.createElement(Eb,{key:f,name:f,path:r,tree:p}))))}),$b=G("div",{position:"relative",fontFamily:"$mono",fontSize:"$root",color:"$rootText",backgroundColor:"$elevation1",variants:{fill:{false:{position:"fixed",top:"10px",right:"10px",zIndex:1e3,width:"$rootWidth"},true:{position:"relative",width:"100%"}},flat:{false:{borderRadius:"$lg",boxShadow:"$level1"}},oneLineLabels:{true:{[`${$c}`]:{gridTemplateColumns:"auto",gridAutoColumns:"minmax(max-content, 1fr)",gridAutoRows:"minmax($sizes$rowHeight), auto)",rowGap:0,columnGap:0,marginTop:"$rowGap"}}},hideTitleBar:{true:{$$titleBarHeight:"0px"},false:{$$titleBarHeight:"$sizes$titleBarHeight"}}},"&,*,*:after,*:before":{boxSizing:"border-box"},"*::selection":{backgroundColor:"$accent2"}}),ll=40,$r=G("i",{$flexCenter:"",width:ll,userSelect:"none",cursor:"pointer","> svg":{fill:"$highlight1",transition:"transform 350ms ease, fill 250ms ease"},"&:hover > svg":{fill:"$highlight3"},variants:{active:{true:{"> svg":{fill:"$highlight2"}}}}}),Cb=G("div",{display:"flex",alignItems:"stretch",justifyContent:"space-between",height:"$titleBarHeight",variants:{mode:{drag:{cursor:"grab"}}}}),_b=G("div",{$flex:"",position:"relative",width:"100%",overflow:"hidden",transition:"height 250ms ease",color:"$highlight3",paddingLeft:"$md",[`> ${$r}`]:{height:30},variants:{toggled:{true:{height:30},false:{height:0}}}}),Sb=G("input",{$reset:"",flex:1,position:"relative",height:30,width:"100%",backgroundColor:"transparent",fontSize:"10px",borderRadius:"$root","&:focus":{},"&::placeholder":{color:"$highlight2"}}),Tb=G("div",{touchAction:"none",$flexCenter:"",flex:1,"> svg":{fill:"$highlight1"},color:"$highlight1",variants:{drag:{true:{$draggable:"","> svg":{transition:"fill 250ms ease"},"&:hover":{color:"$highlight3"},"&:hover > svg":{fill:"$highlight3"}}},filterEnabled:{false:{paddingRight:ll}}}}),kb=h.forwardRef(({setFilter:e,toggle:t},n)=>{const[r,o]=d.useState(""),i=d.useMemo(()=>lc(e,250),[e]),s=()=>{e(""),o("")},a=c=>{const l=c.currentTarget.value;t(!0),o(l)};return d.useEffect(()=>{i(r)},[r,i]),h.createElement(h.Fragment,null,h.createElement(Sb,{ref:n,value:r,placeholder:"[Open filter with CMD+SHIFT+L]",onPointerDown:c=>c.stopPropagation(),onChange:a}),h.createElement($r,{onClick:()=>s(),style:{visibility:r?"visible":"hidden"}},h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"14",width:"14",viewBox:"0 0 20 20",fill:"currentColor"},h.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"}))))});function Rb({setFilter:e,onDrag:t,onDragStart:n,onDragEnd:r,toggle:o,toggled:i,title:s,drag:a,filterEnabled:c,from:l}){const[u,f]=d.useState(!1),p=d.useRef(null);d.useEffect(()=>{var m,b;u?(m=p.current)===null||m===void 0||m.focus():(b=p.current)===null||b===void 0||b.blur()},[u]);const g=Un(({offset:[m,b],first:w,last:v})=>{t({x:m,y:b}),w&&n({x:m,y:b}),v&&r({x:m,y:b})},{filterTaps:!0,from:({offset:[m,b]})=>[(l==null?void 0:l.x)||m,(l==null?void 0:l.y)||b]});return d.useEffect(()=>{const m=b=>{b.key==="L"&&b.shiftKey&&b.metaKey&&f(w=>!w)};return window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)},[]),h.createElement(h.Fragment,null,h.createElement(Cb,{mode:a?"drag":void 0},h.createElement($r,{active:!i,onClick:()=>o()},h.createElement(yi,{toggled:i,width:12,height:8})),h.createElement(Tb,ye({},a?g():{},{drag:a,filterEnabled:c}),s===void 0&&a?h.createElement("svg",{width:"20",height:"10",viewBox:"0 0 28 14",xmlns:"http://www.w3.org/2000/svg"},h.createElement("circle",{cx:"2",cy:"2",r:"2"}),h.createElement("circle",{cx:"14",cy:"2",r:"2"}),h.createElement("circle",{cx:"26",cy:"2",r:"2"}),h.createElement("circle",{cx:"2",cy:"12",r:"2"}),h.createElement("circle",{cx:"14",cy:"12",r:"2"}),h.createElement("circle",{cx:"26",cy:"12",r:"2"})):s),c&&h.createElement($r,{active:u,onClick:()=>f(m=>!m)},h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20",viewBox:"0 0 20 20"},h.createElement("path",{d:"M9 9a2 2 0 114 0 2 2 0 01-4 0z"}),h.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-13a4 4 0 00-3.446 6.032l-2.261 2.26a1 1 0 101.414 1.415l2.261-2.261A4 4 0 1011 5z",clipRule:"evenodd"})))),h.createElement(_b,{toggled:u},h.createElement(kb,{ref:p,setFilter:e,toggle:o})))}const Ob=["store","hidden","theme","collapsed"];function Pb(e){let{store:t,hidden:n=!1,theme:r,collapsed:o=!1}=e,i=ne(e,Ob);const s=el(()=>Zh(r),[r]),[a,c]=d.useState(!o),l=typeof o=="object"?!o.collapsed:a,u=d.useMemo(()=>typeof o=="object"?f=>{typeof f=="function"?o.onChange(!f(!o.collapsed)):o.onChange(!f)}:c,[o]);return!t||n?null:h.createElement(gi.Provider,{value:s},h.createElement(Ab,ye({store:t},i,{toggled:l,setToggle:u,rootClass:s.className})))}const Ab=h.memo(({store:e,rootClass:t,fill:n=!1,flat:r=!1,neverHide:o=!1,oneLineLabels:i=!1,titleBar:s={title:void 0,drag:!0,filter:!0,position:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0},hideCopyButton:a=!1,toggled:c,setToggle:l})=>{var u,f;const p=cm(e),[g,m]=d.useState(""),b=d.useMemo(()=>ob(p,g),[p,g]),[w,v]=Sc(),y=o||p.length>0,C=typeof s=="object"&&s.title||void 0,S=typeof s=="object"&&(u=s.drag)!==null&&u!==void 0?u:!0,E=typeof s=="object"&&(f=s.filter)!==null&&f!==void 0?f:!0,$=typeof s=="object"&&s.position||void 0,T=typeof s=="object"&&s.onDrag||void 0,R=typeof s=="object"&&s.onDragStart||void 0,F=typeof s=="object"&&s.onDragEnd||void 0;return h.useEffect(()=>{v({x:$==null?void 0:$.x,y:$==null?void 0:$.y})},[$,v]),Xh(),h.createElement(bc.Provider,{value:{hideCopyButton:a}},h.createElement($b,{ref:w,className:t,fill:n,flat:r,oneLineLabels:i,hideTitleBar:!s,style:{display:y?"block":"none"}},s&&h.createElement(Rb,{onDrag:j=>{v(j),T==null||T(j)},onDragStart:j=>R==null?void 0:R(j),onDragEnd:j=>F==null?void 0:F(j),setFilter:m,toggle:j=>l(z=>j??!z),toggled:c,title:C,drag:S,filterEnabled:E,from:$}),y&&h.createElement(mc.Provider,{value:e},h.createElement(cl,{isRoot:!0,fill:n,flat:r,tree:b,toggled:c}))))}),Ib=["isRoot"];let Cr=!1,jt=null;function ul(e){let{isRoot:t=!1}=e,n=ne(e,Ib);return d.useEffect(()=>(Cr=!0,!t&&jt&&(jt.remove(),jt=null),()=>{t||(Cr=!1)}),[t]),h.createElement(Pb,ye({store:sl},n))}function Db(e){d.useEffect(()=>{e&&!Cr&&(jt||(jt=document.getElementById("leva__root")||Object.assign(document.createElement("div"),{id:"leva__root"}),document.body&&(document.body.appendChild(jt),Bh(h.createElement(ul,{isRoot:!0}),jt))),Cr=!0)},[e])}function Mb(e,t,n,r,o){let i,s,a,c,l;return typeof e=="string"?(s=e,i=t,Array.isArray(n)?l=n:n&&("store"in n?(c=n,l=r):(a=n,Array.isArray(r)?l=r:(c=r,l=o)))):(i=e,Array.isArray(t)?l=t:(c=t,l=n)),{schema:i,folderName:s,folderSettings:a,hookSettings:c,deps:l||[]}}function Vv(e,t,n,r,o){const{folderName:i,schema:s,folderSettings:a,hookSettings:c,deps:l}=Mb(e,t,n,r,o),u=typeof s=="function",f=d.useRef(!1),p=d.useRef(!0),g=el(()=>{f.current=!0;const z=typeof s=="function"?s():s;return i?{[i]:rb(z,a)}:z},l),m=!(c!=null&&c.store);Db(m);const[b]=d.useState(()=>(c==null?void 0:c.store)||sl),[w,v]=d.useMemo(()=>b.getDataFromSchema(g),[b,g]),[y,C,S,E,$]=d.useMemo(()=>{const z=[],A=[],N={},L={},D={};return Object.values(v).forEach(({path:V,onChange:U,onEditStart:Y,onEditEnd:J,transient:pe})=>{z.push(V),U?(N[V]=U,pe||A.push(V)):A.push(V),Y&&(L[V]=Y),J&&(D[V]=J)}),[z,A,N,L,D]},[v]),T=d.useMemo(()=>b.orderPaths(y),[y,b]),R=lm(b,C,w),F=d.useCallback(z=>{const A=Object.entries(z).reduce((N,[L,D])=>Object.assign(N,{[v[L].path]:D}),{});b.set(A,!1)},[b,v]),j=d.useCallback(z=>b.get(v[z].path),[b,v]);return d.useEffect(()=>{const z=!p.current&&f.current;return b.addData(w,z),p.current=!1,f.current=!1,()=>b.disposePaths(T)},[b,T,w]),d.useEffect(()=>{const z=[];return Object.entries(S).forEach(([A,N])=>{N(b.get(A),A,q({initial:!0,get:b.get},b.getInput(A)));const L=b.useStore.subscribe(D=>{const V=D.data[A];return[V.disabled?void 0:V.value,V]},([D,V])=>N(D,A,q({initial:!1,get:b.get},V)),{equalityFn:Vn});z.push(L)}),()=>z.forEach(A=>A())},[b,S]),d.useEffect(()=>{const z=[];return Object.entries(E).forEach(([A,N])=>z.push(b.subscribeToEditStart(A,N))),Object.entries($).forEach(([A,N])=>z.push(b.subscribeToEditEnd(A,N))),()=>z.forEach(A=>A())},[E,$,b]),u?[R,F,j]:R}Ct(rt.SELECT,Dg);Ct(rt.IMAGE,Bm);Ct(rt.NUMBER,Cg);Ct(rt.COLOR,xm);Ct(rt.STRING,Wg);Ct(rt.BOOLEAN,Xg);Ct(rt.INTERVAL,Zm);Ct(rt.VECTOR3D,Em);Ct(rt.VECTOR2D,Om);var Yn=e=>e.type==="checkbox",nn=e=>e instanceof Date,De=e=>e==null;const dl=e=>typeof e=="object";var we=e=>!De(e)&&!Array.isArray(e)&&dl(e)&&!nn(e),fl=e=>we(e)&&e.target?Yn(e.target)?e.target.checked:e.target.value:e,jb=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,pl=(e,t)=>e.has(jb(t)),Lb=e=>{const t=e.constructor&&e.constructor.prototype;return we(t)&&t.hasOwnProperty("isPrototypeOf")},Ti=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Se(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Ti&&(e instanceof Blob||e instanceof FileList))&&(n||we(e)))if(t=n?[]:{},!n&&!Lb(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=Se(e[r]));else return e;return t}var yn=e=>Array.isArray(e)?e.filter(Boolean):[],le=e=>e===void 0,B=(e,t,n)=>{if(!t||!we(e))return n;const r=yn(t.split(/[,[\].]+?/)).reduce((o,i)=>De(o)?o:o[i],e);return le(r)||r===e?le(e[t])?n:e[t]:r},Ze=e=>typeof e=="boolean";const _r={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Qe={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},gt={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},hl=h.createContext(null),Br=()=>h.useContext(hl),Fb=e=>{const{children:t,...n}=e;return h.createElement(hl.Provider,{value:n},t)};var gl=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const s=i;return t._proxyFormState[s]!==Qe.all&&(t._proxyFormState[s]=!r||Qe.all),n&&(n[s]=!0),e[s]}});return o},Be=e=>we(e)&&!Object.keys(e).length,ml=(e,t,n,r)=>{n(e);const{name:o,...i}=e;return Be(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(s=>t[s]===(!r||Qe.all))},Ue=e=>Array.isArray(e)?e:[e],bl=(e,t,n)=>!e||!t||e===t||Ue(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function Wr(e){const t=h.useRef(e);t.current=e,h.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function zb(e){const t=Br(),{control:n=t.control,disabled:r,name:o,exact:i}=e||{},[s,a]=h.useState(n._formState),c=h.useRef(!0),l=h.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=h.useRef(o);return u.current=o,Wr({disabled:r,next:f=>c.current&&bl(u.current,f.name,i)&&ml(f,l.current,n._updateFormState)&&a({...n._formState,...f}),subject:n._subjects.state}),h.useEffect(()=>(c.current=!0,l.current.isValid&&n._updateValid(!0),()=>{c.current=!1}),[n]),gl(s,n,l.current,!1)}var ct=e=>typeof e=="string",yl=(e,t,n,r,o)=>ct(e)?(r&&t.watch.add(e),B(n,e,o)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),B(n,i))):(r&&(t.watchAll=!0),n);function Nb(e){const t=Br(),{control:n=t.control,name:r,defaultValue:o,disabled:i,exact:s}=e||{},a=h.useRef(r);a.current=r,Wr({disabled:i,subject:n._subjects.values,next:u=>{bl(a.current,u.name,s)&&l(Se(yl(a.current,n._names,u.values||n._formValues,!1,o)))}});const[c,l]=h.useState(n._getWatch(r,o));return h.useEffect(()=>n._removeUnmounted()),c}var ki=e=>/^\w*$/.test(e),vl=e=>yn(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ie=(e,t,n)=>{let r=-1;const o=ki(t)?[t]:vl(t),i=o.length,s=i-1;for(;++r{const u=o._options.shouldUnregister||i,f=(p,g)=>{const m=B(o._fields,p);m&&(m._f.mount=g)};if(f(n,!0),u){const p=Se(B(o._options.defaultValues,n));ie(o._defaultValues,n,p),le(B(o._formValues,n))&&ie(o._formValues,n,p)}return()=>{(s?u&&!o._state.action:u)?o.unregister(n):f(n,!1)}},[n,o,s,i]),h.useEffect(()=>{B(o._fields,n)&&o._updateDisabledField({disabled:r,fields:o._fields,name:n,value:B(o._fields,n)._f.value})},[r,n,o]),{field:{name:n,value:a,...Ze(r)||Ze(c.disabled)?{disabled:c.disabled||r}:{},onChange:h.useCallback(u=>l.current.onChange({target:{value:fl(u),name:n},type:_r.CHANGE}),[n]),onBlur:h.useCallback(()=>l.current.onBlur({target:{value:B(o._formValues,n),name:n},type:_r.BLUR}),[n,o]),ref:u=>{const f=B(o._fields,n);f&&u&&(f._f.ref={focus:()=>u.focus(),select:()=>u.select(),setCustomValidity:p=>u.setCustomValidity(p),reportValidity:()=>u.reportValidity()})}},formState:c,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!B(c.errors,n)},isDirty:{enumerable:!0,get:()=>!!B(c.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!B(c.touchedFields,n)},error:{enumerable:!0,get:()=>B(c.errors,n)}})}}const Bv=e=>e.render(Vb(e));var Bb=(e,t,n,r,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:o||!0}}:{},St=()=>{const e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(Math.random()*16+e)%16|0;return(t=="x"?n:n&3|8).toString(16)})},ro=(e,t,n={})=>n.shouldFocus||le(n.shouldFocus)?n.focusName||`${e}.${le(n.focusIndex)?t:n.focusIndex}.`:"",Uo=e=>({isOnSubmit:!e||e===Qe.onSubmit,isOnBlur:e===Qe.onBlur,isOnChange:e===Qe.onChange,isOnAll:e===Qe.all,isOnTouch:e===Qe.onTouched}),Ko=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const sn=(e,t,n,r)=>{for(const o of n||Object.keys(e)){const i=B(e,o);if(i){const{_f:s,...a}=i;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],o)&&!r)break;if(s.ref&&t(s.ref,s.name)&&!r)break;sn(a,t)}else we(a)&&sn(a,t)}}};var xl=(e,t,n)=>{const r=yn(B(e,n));return ie(r,"root",t[n]),ie(e,n,r),e},Ri=e=>e.type==="file",kt=e=>typeof e=="function",Sr=e=>{if(!Ti)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},cr=e=>ct(e),Oi=e=>e.type==="radio",Tr=e=>e instanceof RegExp;const aa={value:!1,isValid:!1},ca={value:!0,isValid:!0};var wl=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!le(e[0].attributes.value)?le(e[0].value)||e[0].value===""?ca:{value:e[0].value,isValid:!0}:ca:aa}return aa};const la={isValid:!1,value:null};var El=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,la):la;function ua(e,t,n="validate"){if(cr(e)||Array.isArray(e)&&e.every(cr)||Ze(e)&&!e)return{type:n,message:cr(e)?e:"",ref:t}}var Jt=e=>we(e)&&!Tr(e)?e:{value:e,message:""},Go=async(e,t,n,r,o)=>{const{ref:i,refs:s,required:a,maxLength:c,minLength:l,min:u,max:f,pattern:p,validate:g,name:m,valueAsNumber:b,mount:w,disabled:v}=e._f,y=B(t,m);if(!w||v)return{};const C=s?s[0]:i,S=A=>{r&&C.reportValidity&&(C.setCustomValidity(Ze(A)?"":A||""),C.reportValidity())},E={},$=Oi(i),T=Yn(i),R=$||T,F=(b||Ri(i))&&le(i.value)&&le(y)||Sr(i)&&i.value===""||y===""||Array.isArray(y)&&!y.length,j=Bb.bind(null,m,n,E),z=(A,N,L,D=gt.maxLength,V=gt.minLength)=>{const U=A?N:L;E[m]={type:A?D:V,message:U,ref:i,...j(A?D:V,U)}};if(o?!Array.isArray(y)||!y.length:a&&(!R&&(F||De(y))||Ze(y)&&!y||T&&!wl(s).isValid||$&&!El(s).isValid)){const{value:A,message:N}=cr(a)?{value:!!a,message:a}:Jt(a);if(A&&(E[m]={type:gt.required,message:N,ref:C,...j(gt.required,N)},!n))return S(N),E}if(!F&&(!De(u)||!De(f))){let A,N;const L=Jt(f),D=Jt(u);if(!De(y)&&!isNaN(y)){const V=i.valueAsNumber||y&&+y;De(L.value)||(A=V>L.value),De(D.value)||(N=Vnew Date(new Date().toDateString()+" "+pe),Y=i.type=="time",J=i.type=="week";ct(L.value)&&y&&(A=Y?U(y)>U(L.value):J?y>L.value:V>new Date(L.value)),ct(D.value)&&y&&(N=Y?U(y)+A.value,D=!De(N.value)&&y.length<+N.value;if((L||D)&&(z(L,A.message,N.message),!n))return S(E[m].message),E}if(p&&!F&&ct(y)){const{value:A,message:N}=Jt(p);if(Tr(A)&&!y.match(A)&&(E[m]={type:gt.pattern,message:N,ref:i,...j(gt.pattern,N)},!n))return S(N),E}if(g){if(kt(g)){const A=await g(y,t),N=ua(A,C);if(N&&(E[m]={...N,...j(gt.validate,N.message)},!n))return S(N.message),E}else if(we(g)){let A={};for(const N in g){if(!Be(A)&&!n)break;const L=ua(await g[N](y,t),C,N);L&&(A={...L,...j(N,L.message)},S(L.message),n&&(E[m]=A))}if(!Be(A)&&(E[m]={ref:C,...A},!n))return E}}return S(!0),E},oo=(e,t)=>[...e,...Ue(t)],io=e=>Array.isArray(e)?e.map(()=>{}):void 0;function so(e,t,n){return[...e.slice(0,t),...Ue(n),...e.slice(t)]}var ao=(e,t,n)=>Array.isArray(e)?(le(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],co=(e,t)=>[...Ue(t),...Ue(e)];function Wb(e,t){let n=0;const r=[...e];for(const o of t)r.splice(o-n,1),n++;return yn(r).length?r:[]}var lo=(e,t)=>le(t)?[]:Wb(e,Ue(t).sort((n,r)=>n-r)),uo=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]};function Hb(e,t){const n=t.slice(0,-1).length;let r=0;for(;r(e[t]=n,e);function Wv(e){const t=Br(),{control:n=t.control,name:r,keyName:o="id",shouldUnregister:i}=e,[s,a]=h.useState(n._getFieldArray(r)),c=h.useRef(n._getFieldArray(r).map(St)),l=h.useRef(s),u=h.useRef(r),f=h.useRef(!1);u.current=r,l.current=s,n._names.array.add(r),e.rules&&n.register(r,e.rules),Wr({next:({values:E,name:$})=>{if($===u.current||!$){const T=B(E,u.current);Array.isArray(T)&&(a(T),c.current=T.map(St))}},subject:n._subjects.array});const p=h.useCallback(E=>{f.current=!0,n._updateFieldArray(r,E)},[n,r]),g=(E,$)=>{const T=Ue(Se(E)),R=oo(n._getFieldArray(r),T);n._names.focus=ro(r,R.length-1,$),c.current=oo(c.current,T.map(St)),p(R),a(R),n._updateFieldArray(r,R,oo,{argA:io(E)})},m=(E,$)=>{const T=Ue(Se(E)),R=co(n._getFieldArray(r),T);n._names.focus=ro(r,0,$),c.current=co(c.current,T.map(St)),p(R),a(R),n._updateFieldArray(r,R,co,{argA:io(E)})},b=E=>{const $=lo(n._getFieldArray(r),E);c.current=lo(c.current,E),p($),a($),n._updateFieldArray(r,$,lo,{argA:E})},w=(E,$,T)=>{const R=Ue(Se($)),F=so(n._getFieldArray(r),E,R);n._names.focus=ro(r,E,T),c.current=so(c.current,E,R.map(St)),p(F),a(F),n._updateFieldArray(r,F,so,{argA:E,argB:io($)})},v=(E,$)=>{const T=n._getFieldArray(r);uo(T,E,$),uo(c.current,E,$),p(T),a(T),n._updateFieldArray(r,T,uo,{argA:E,argB:$},!1)},y=(E,$)=>{const T=n._getFieldArray(r);ao(T,E,$),ao(c.current,E,$),p(T),a(T),n._updateFieldArray(r,T,ao,{argA:E,argB:$},!1)},C=(E,$)=>{const T=Se($),R=da(n._getFieldArray(r),E,T);c.current=[...R].map((F,j)=>!F||j===E?St():c.current[j]),p(R),a([...R]),n._updateFieldArray(r,R,da,{argA:E,argB:T},!0,!1)},S=E=>{const $=Ue(Se(E));c.current=$.map(St),p([...$]),a([...$]),n._updateFieldArray(r,[...$],T=>T,{},!0,!1)};return h.useEffect(()=>{if(n._state.action=!1,Ko(r,n._names)&&n._subjects.state.next({...n._formState}),f.current&&(!Uo(n._options.mode).isOnSubmit||n._formState.isSubmitted))if(n._options.resolver)n._executeSchema([r]).then(E=>{const $=B(E.errors,r),T=B(n._formState.errors,r);(T?!$&&T.type||$&&(T.type!==$.type||T.message!==$.message):$&&$.type)&&($?ie(n._formState.errors,r,$):Ee(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{const E=B(n._fields,r);E&&E._f&&Go(E,n._formValues,n._options.criteriaMode===Qe.all,n._options.shouldUseNativeValidation,!0).then($=>!Be($)&&n._subjects.state.next({errors:xl(n._formState.errors,$,r)}))}n._subjects.values.next({name:r,values:{...n._formValues}}),n._names.focus&&sn(n._fields,(E,$)=>{if(n._names.focus&&$.startsWith(n._names.focus)&&E.focus)return E.focus(),1}),n._names.focus="",n._updateValid(),f.current=!1},[s,r,n]),h.useEffect(()=>(!B(n._formValues,r)&&n._updateFieldArray(r),()=>{(n._options.shouldUnregister||i)&&n.unregister(r)}),[r,n,o,i]),{swap:h.useCallback(v,[p,r,n]),move:h.useCallback(y,[p,r,n]),prepend:h.useCallback(m,[p,r,n]),append:h.useCallback(g,[p,r,n]),remove:h.useCallback(b,[p,r,n]),insert:h.useCallback(w,[p,r,n]),update:h.useCallback(C,[p,r,n]),replace:h.useCallback(S,[p,r,n]),fields:h.useMemo(()=>s.map((E,$)=>({...E,[o]:c.current[$]||St()})),[s,o])}}var fo=()=>{let e=[];return{get observers(){return e},next:o=>{for(const i of e)i.next&&i.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(i=>i!==o)}}),unsubscribe:()=>{e=[]}}},kr=e=>De(e)||!dl(e);function Lt(e,t){if(kr(e)||kr(t))return e===t;if(nn(e)&&nn(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n){const i=e[o];if(!r.includes(o))return!1;if(o!=="ref"){const s=t[o];if(nn(i)&&nn(s)||we(i)&&we(s)||Array.isArray(i)&&Array.isArray(s)?!Lt(i,s):i!==s)return!1}}return!0}var $l=e=>e.type==="select-multiple",Kb=e=>Oi(e)||Yn(e),po=e=>Sr(e)&&e.isConnected,Cl=e=>{for(const t in e)if(kt(e[t]))return!0;return!1};function Rr(e,t={}){const n=Array.isArray(e);if(we(e)||n)for(const r in e)Array.isArray(e[r])||we(e[r])&&!Cl(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Rr(e[r],t[r])):De(e[r])||(t[r]=!0);return t}function _l(e,t,n){const r=Array.isArray(e);if(we(e)||r)for(const o in e)Array.isArray(e[o])||we(e[o])&&!Cl(e[o])?le(t)||kr(n[o])?n[o]=Array.isArray(e[o])?Rr(e[o],[]):{...Rr(e[o])}:_l(e[o],De(t)?{}:t[o],n[o]):n[o]=!Lt(e[o],t[o]);return n}var ho=(e,t)=>_l(e,t,Rr(t)),Sl=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>le(e)?e:t?e===""?NaN:e&&+e:n&&ct(e)?new Date(e):r?r(e):e;function go(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return Ri(t)?t.files:Oi(t)?El(e.refs).value:$l(t)?[...t.selectedOptions].map(({value:n})=>n):Yn(t)?wl(e.refs).value:Sl(le(t.value)?e.ref.value:t.value,e)}var Gb=(e,t,n,r)=>{const o={};for(const i of e){const s=B(t,i);s&&ie(o,i,s._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:r}},Cn=e=>le(e)?e:Tr(e)?e.source:we(e)?Tr(e.value)?e.value.source:e.value:e,Yb=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function fa(e,t,n){const r=B(e,n);if(r||ki(n))return{error:r,name:n};const o=n.split(".");for(;o.length;){const i=o.join("."),s=B(t,i),a=B(e,i);if(s&&!Array.isArray(s)&&n!==i)return{name:n};if(a&&a.type)return{name:i,error:a};o.pop()}return{name:n}}var qb=(e,t,n,r,o)=>o.isOnAll?!1:!n&&o.isOnTouch?!(t||e):(n?r.isOnBlur:o.isOnBlur)?!e:(n?r.isOnChange:o.isOnChange)?e:!0,Xb=(e,t)=>!yn(B(e,t)).length&&Ee(e,t);const Zb={mode:Qe.onSubmit,reValidateMode:Qe.onChange,shouldFocusError:!0};function Qb(e={},t){let n={...Zb,...e},r={submitCount:0,isDirty:!1,isLoading:kt(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:n.errors||{},disabled:!1},o={},i=we(n.defaultValues)||we(n.values)?Se(n.defaultValues||n.values)||{}:{},s=n.shouldUnregister?{}:Se(i),a={action:!1,mount:!1,watch:!1},c={mount:new Set,unMount:new Set,array:new Set,watch:new Set},l,u=0;const f={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={values:fo(),array:fo(),state:fo()},g=e.resetOptions&&e.resetOptions.keepDirtyValues,m=Uo(n.mode),b=Uo(n.reValidateMode),w=n.criteriaMode===Qe.all,v=x=>k=>{clearTimeout(u),u=setTimeout(x,k)},y=async x=>{if(f.isValid||x){const k=n.resolver?Be((await j()).errors):await A(o,!0);k!==r.isValid&&p.state.next({isValid:k})}},C=x=>f.isValidating&&p.state.next({isValidating:x}),S=(x,k=[],I,O,P=!0,M=!0)=>{if(O&&I){if(a.action=!0,M&&Array.isArray(B(o,x))){const W=I(B(o,x),O.argA,O.argB);P&&ie(o,x,W)}if(M&&Array.isArray(B(r.errors,x))){const W=I(B(r.errors,x),O.argA,O.argB);P&&ie(r.errors,x,W),Xb(r.errors,x)}if(f.touchedFields&&M&&Array.isArray(B(r.touchedFields,x))){const W=I(B(r.touchedFields,x),O.argA,O.argB);P&&ie(r.touchedFields,x,W)}f.dirtyFields&&(r.dirtyFields=ho(i,s)),p.state.next({name:x,isDirty:L(x,k),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else ie(s,x,k)},E=(x,k)=>{ie(r.errors,x,k),p.state.next({errors:r.errors})},$=x=>{r.errors=x,p.state.next({errors:r.errors,isValid:!1})},T=(x,k,I,O)=>{const P=B(o,x);if(P){const M=B(s,x,le(I)?B(i,x):I);le(M)||O&&O.defaultChecked||k?ie(s,x,k?M:go(P._f)):U(x,M),a.mount&&y()}},R=(x,k,I,O,P)=>{let M=!1,W=!1;const X={name:x},ae=!!(B(o,x)&&B(o,x)._f.disabled);if(!I||O){f.isDirty&&(W=r.isDirty,r.isDirty=X.isDirty=L(),M=W!==X.isDirty);const K=ae||Lt(B(i,x),k);W=!!(!ae&&B(r.dirtyFields,x)),K||ae?Ee(r.dirtyFields,x):ie(r.dirtyFields,x,!0),X.dirtyFields=r.dirtyFields,M=M||f.dirtyFields&&W!==!K}if(I){const K=B(r.touchedFields,x);K||(ie(r.touchedFields,x,I),X.touchedFields=r.touchedFields,M=M||f.touchedFields&&K!==I)}return M&&P&&p.state.next(X),M?X:{}},F=(x,k,I,O)=>{const P=B(r.errors,x),M=f.isValid&&Ze(k)&&r.isValid!==k;if(e.delayError&&I?(l=v(()=>E(x,I)),l(e.delayError)):(clearTimeout(u),l=null,I?ie(r.errors,x,I):Ee(r.errors,x)),(I?!Lt(P,I):P)||!Be(O)||M){const W={...O,...M&&Ze(k)?{isValid:k}:{},errors:r.errors,name:x};r={...r,...W},p.state.next(W)}C(!1)},j=async x=>n.resolver(s,n.context,Gb(x||c.mount,o,n.criteriaMode,n.shouldUseNativeValidation)),z=async x=>{const{errors:k}=await j(x);if(x)for(const I of x){const O=B(k,I);O?ie(r.errors,I,O):Ee(r.errors,I)}else r.errors=k;return k},A=async(x,k,I={valid:!0})=>{for(const O in x){const P=x[O];if(P){const{_f:M,...W}=P;if(M){const X=c.array.has(M.name),ae=await Go(P,s,w,n.shouldUseNativeValidation&&!k,X);if(ae[M.name]&&(I.valid=!1,k))break;!k&&(B(ae,M.name)?X?xl(r.errors,ae,M.name):ie(r.errors,M.name,ae[M.name]):Ee(r.errors,M.name))}W&&await A(W,k,I)}}return I.valid},N=()=>{for(const x of c.unMount){const k=B(o,x);k&&(k._f.refs?k._f.refs.every(I=>!po(I)):!po(k._f.ref))&&_e(x)}c.unMount=new Set},L=(x,k)=>(x&&k&&ie(s,x,k),!Lt(he(),i)),D=(x,k,I)=>yl(x,c,{...a.mount?s:le(k)?i:ct(x)?{[x]:k}:k},I,k),V=x=>yn(B(a.mount?s:i,x,e.shouldUnregister?B(i,x,[]):[])),U=(x,k,I={})=>{const O=B(o,x);let P=k;if(O){const M=O._f;M&&(!M.disabled&&ie(s,x,Sl(k,M)),P=Sr(M.ref)&&De(k)?"":k,$l(M.ref)?[...M.ref.options].forEach(W=>W.selected=P.includes(W.value)):M.refs?Yn(M.ref)?M.refs.length>1?M.refs.forEach(W=>(!W.defaultChecked||!W.disabled)&&(W.checked=Array.isArray(P)?!!P.find(X=>X===W.value):P===W.value)):M.refs[0]&&(M.refs[0].checked=!!P):M.refs.forEach(W=>W.checked=W.value===P):Ri(M.ref)?M.ref.value="":(M.ref.value=P,M.ref.type||p.values.next({name:x,values:{...s}})))}(I.shouldDirty||I.shouldTouch)&&R(x,P,I.shouldTouch,I.shouldDirty,!0),I.shouldValidate&&ve(x)},Y=(x,k,I)=>{for(const O in k){const P=k[O],M=`${x}.${O}`,W=B(o,M);(c.array.has(x)||!kr(P)||W&&!W._f)&&!nn(P)?Y(M,P,I):U(M,P,I)}},J=(x,k,I={})=>{const O=B(o,x),P=c.array.has(x),M=Se(k);ie(s,x,M),P?(p.array.next({name:x,values:{...s}}),(f.isDirty||f.dirtyFields)&&I.shouldDirty&&p.state.next({name:x,dirtyFields:ho(i,s),isDirty:L(x,M)})):O&&!O._f&&!De(M)?Y(x,M,I):U(x,M,I),Ko(x,c)&&p.state.next({...r}),p.values.next({name:x,values:{...s}}),!a.mount&&t()},pe=async x=>{const k=x.target;let I=k.name,O=!0;const P=B(o,I),M=()=>k.type?go(P._f):fl(x),W=X=>{O=Number.isNaN(X)||X===B(s,I,X)};if(P){let X,ae;const K=M(),Ve=x.type===_r.BLUR||x.type===_r.FOCUS_OUT,Dt=!Yb(P._f)&&!n.resolver&&!B(r.errors,I)&&!P._f.deps||qb(Ve,B(r.touchedFields,I),r.isSubmitted,b,m),st=Ko(I,c,Ve);ie(s,I,K),Ve?(P._f.onBlur&&P._f.onBlur(x),l&&l(0)):P._f.onChange&&P._f.onChange(x);const pt=R(I,K,Ve,!1),vn=!Be(pt)||st;if(!Ve&&p.values.next({name:I,type:x.type,values:{...s}}),Dt)return f.isValid&&y(),vn&&p.state.next({name:I,...st?{}:pt});if(!Ve&&st&&p.state.next({...r}),C(!0),n.resolver){const{errors:Yt}=await j([I]);if(W(K),O){const xn=fa(r.errors,o,I),qt=fa(Yt,o,xn.name||I);X=qt.error,I=qt.name,ae=Be(Yt)}}else X=(await Go(P,s,w,n.shouldUseNativeValidation))[I],W(K),O&&(X?ae=!1:f.isValid&&(ae=await A(o,!0)));O&&(P._f.deps&&ve(P._f.deps),F(I,ae,X,pt))}},re=(x,k)=>{if(B(r.errors,k)&&x.focus)return x.focus(),1},ve=async(x,k={})=>{let I,O;const P=Ue(x);if(C(!0),n.resolver){const M=await z(le(x)?x:P);I=Be(M),O=x?!P.some(W=>B(M,W)):I}else x?(O=(await Promise.all(P.map(async M=>{const W=B(o,M);return await A(W&&W._f?{[M]:W}:W)}))).every(Boolean),!(!O&&!r.isValid)&&y()):O=I=await A(o);return p.state.next({...!ct(x)||f.isValid&&I!==r.isValid?{}:{name:x},...n.resolver||!x?{isValid:I}:{},errors:r.errors,isValidating:!1}),k.shouldFocus&&!O&&sn(o,re,x?P:c.mount),O},he=x=>{const k={...i,...a.mount?s:{}};return le(x)?k:ct(x)?B(k,x):x.map(I=>B(k,I))},oe=(x,k)=>({invalid:!!B((k||r).errors,x),isDirty:!!B((k||r).dirtyFields,x),isTouched:!!B((k||r).touchedFields,x),error:B((k||r).errors,x)}),ue=x=>{x&&Ue(x).forEach(k=>Ee(r.errors,k)),p.state.next({errors:x?r.errors:{}})},se=(x,k,I)=>{const O=(B(o,x,{_f:{}})._f||{}).ref;ie(r.errors,x,{...k,ref:O}),p.state.next({name:x,errors:r.errors,isValid:!1}),I&&I.shouldFocus&&O&&O.focus&&O.focus()},Ce=(x,k)=>kt(x)?p.values.subscribe({next:I=>x(D(void 0,k),I)}):D(x,k,!0),_e=(x,k={})=>{for(const I of x?Ue(x):c.mount)c.mount.delete(I),c.array.delete(I),k.keepValue||(Ee(o,I),Ee(s,I)),!k.keepError&&Ee(r.errors,I),!k.keepDirty&&Ee(r.dirtyFields,I),!k.keepTouched&&Ee(r.touchedFields,I),!n.shouldUnregister&&!k.keepDefaultValue&&Ee(i,I);p.values.next({values:{...s}}),p.state.next({...r,...k.keepDirty?{isDirty:L()}:{}}),!k.keepIsValid&&y()},xe=({disabled:x,name:k,field:I,fields:O,value:P})=>{if(Ze(x)){const M=x?void 0:le(P)?go(I?I._f:B(O,k)._f):P;ie(s,k,M),R(k,M,!1,!1,!0)}},it=(x,k={})=>{let I=B(o,x);const O=Ze(k.disabled);return ie(o,x,{...I||{},_f:{...I&&I._f?I._f:{ref:{name:x}},name:x,mount:!0,...k}}),c.mount.add(x),I?xe({field:I,disabled:k.disabled,name:x,value:k.value}):T(x,!0,k.value),{...O?{disabled:k.disabled}:{},...n.progressive?{required:!!k.required,min:Cn(k.min),max:Cn(k.max),minLength:Cn(k.minLength),maxLength:Cn(k.maxLength),pattern:Cn(k.pattern)}:{},name:x,onChange:pe,onBlur:pe,ref:P=>{if(P){it(x,k),I=B(o,x);const M=le(P.value)&&P.querySelectorAll&&P.querySelectorAll("input,select,textarea")[0]||P,W=Kb(M),X=I._f.refs||[];if(W?X.find(ae=>ae===M):M===I._f.ref)return;ie(o,x,{_f:{...I._f,...W?{refs:[...X.filter(po),M,...Array.isArray(B(i,x))?[{}]:[]],ref:{type:M.type,name:x}}:{ref:M}}}),T(x,!1,void 0,M)}else I=B(o,x,{}),I._f&&(I._f.mount=!1),(n.shouldUnregister||k.shouldUnregister)&&!(pl(c.array,x)&&a.action)&&c.unMount.add(x)}}},dt=()=>n.shouldFocusError&&sn(o,re,c.mount),_t=x=>{Ze(x)&&(p.state.next({disabled:x}),sn(o,(k,I)=>{let O=x;const P=B(o,I);P&&Ze(P._f.disabled)&&(O||(O=P._f.disabled)),k.disabled=O},0,!1))},Ne=(x,k)=>async I=>{I&&(I.preventDefault&&I.preventDefault(),I.persist&&I.persist());let O=Se(s);if(p.state.next({isSubmitting:!0}),n.resolver){const{errors:P,values:M}=await j();r.errors=P,O=M}else await A(o);Ee(r.errors,"root"),Be(r.errors)?(p.state.next({errors:{}}),await x(O,I)):(k&&await k({...r.errors},I),dt(),setTimeout(dt)),p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Be(r.errors),submitCount:r.submitCount+1,errors:r.errors})},ft=(x,k={})=>{B(o,x)&&(le(k.defaultValue)?J(x,B(i,x)):(J(x,k.defaultValue),ie(i,x,k.defaultValue)),k.keepTouched||Ee(r.touchedFields,x),k.keepDirty||(Ee(r.dirtyFields,x),r.isDirty=k.defaultValue?L(x,B(i,x)):L()),k.keepError||(Ee(r.errors,x),f.isValid&&y()),p.state.next({...r}))},Oe=(x,k={})=>{const I=x?Se(x):i,O=Se(I),P=x&&!Be(x)?O:i;if(k.keepDefaultValues||(i=I),!k.keepValues){if(k.keepDirtyValues||g)for(const M of c.mount)B(r.dirtyFields,M)?ie(P,M,B(s,M)):J(M,B(P,M));else{if(Ti&&le(x))for(const M of c.mount){const W=B(o,M);if(W&&W._f){const X=Array.isArray(W._f.refs)?W._f.refs[0]:W._f.ref;if(Sr(X)){const ae=X.closest("form");if(ae){ae.reset();break}}}}o={}}s=e.shouldUnregister?k.keepDefaultValues?Se(i):{}:Se(P),p.array.next({values:{...P}}),p.values.next({values:{...P}})}c={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!a.mount&&t(),a.mount=!f.isValid||!!k.keepIsValid,a.watch=!!e.shouldUnregister,p.state.next({submitCount:k.keepSubmitCount?r.submitCount:0,isDirty:k.keepDirty?r.isDirty:!!(k.keepDefaultValues&&!Lt(x,i)),isSubmitted:k.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:k.keepDirtyValues?r.dirtyFields:k.keepDefaultValues&&x?ho(i,x):{},touchedFields:k.keepTouched?r.touchedFields:{},errors:k.keepErrors?r.errors:{},isSubmitSuccessful:k.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},Ye=(x,k)=>Oe(kt(x)?x(s):x,k);return{control:{register:it,unregister:_e,getFieldState:oe,handleSubmit:Ne,setError:se,_executeSchema:j,_getWatch:D,_getDirty:L,_updateValid:y,_removeUnmounted:N,_updateFieldArray:S,_updateDisabledField:xe,_getFieldArray:V,_reset:Oe,_resetDefaultValues:()=>kt(n.defaultValues)&&n.defaultValues().then(x=>{Ye(x,n.resetOptions),p.state.next({isLoading:!1})}),_updateFormState:x=>{r={...r,...x}},_disableForm:_t,_subjects:p,_proxyFormState:f,_setErrors:$,get _fields(){return o},get _formValues(){return s},get _state(){return a},set _state(x){a=x},get _defaultValues(){return i},get _names(){return c},set _names(x){c=x},get _formState(){return r},set _formState(x){r=x},get _options(){return n},set _options(x){n={...n,...x}}},trigger:ve,register:it,handleSubmit:Ne,watch:Ce,setValue:J,getValues:he,reset:Ye,resetField:ft,clearErrors:ue,unregister:_e,setError:se,setFocus:(x,k={})=>{const I=B(o,x),O=I&&I._f;if(O){const P=O.refs?O.refs[0]:O.ref;P.focus&&(P.focus(),k.shouldSelect&&P.select())}},getFieldState:oe}}function Jb(e={}){const t=h.useRef(),n=h.useRef(),[r,o]=h.useState({isDirty:!1,isValidating:!1,isLoading:kt(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:e.errors||{},disabled:!1,defaultValues:kt(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Qb(e,()=>o(s=>({...s}))),formState:r});const i=t.current.control;return i._options=e,Wr({subject:i._subjects.state,next:s=>{ml(s,i._proxyFormState,i._updateFormState,!0)&&o({...i._formState})}}),h.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),h.useEffect(()=>{if(i._proxyFormState.isDirty){const s=i._getDirty();s!==r.isDirty&&i._subjects.state.next({isDirty:s})}},[i,r.isDirty]),h.useEffect(()=>{e.values&&!Lt(e.values,n.current)?(i._reset(e.values,i._options.resetOptions),n.current=e.values,o(s=>({...s}))):i._resetDefaultValues()},[e.values,i]),h.useEffect(()=>{e.errors&&i._setErrors(e.errors)},[e.errors,i]),h.useEffect(()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),t.current.formState=gl(r,i),t.current}const ey=zl` html { box-sizing: border-box; } @@ -176,7 +176,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho border-collapse: collapse; border-spacing: 0; } -`,ty=e=>S.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 17",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:S.jsxs("g",{id:"center",children:[S.jsx("path",{id:"Vector 121",d:"M9 4L9 1",stroke:"white","stroke-linecap":"round"}),S.jsx("path",{id:"Vector 123",d:"M14 9H17",stroke:"white","stroke-linecap":"round"}),S.jsx("path",{id:"Vector 122",d:"M9 16L9 14",stroke:"white","stroke-linecap":"round"}),S.jsx("path",{id:"Vector 124",d:"M1 9L4 9",stroke:"white","stroke-linecap":"round"}),S.jsx("circle",{id:"Ellipse 2",cx:"9.00001",cy:"9.00001",r:"5.02857",stroke:"white"})]})}),ny=()=>{const[e,t]=ei(n=>[n.cameraFocusTrigger,n.setCameraFocusTrigger]);return S.jsx(ry,{href:"",onClick:()=>t(!e),size:"medium",startIcon:S.jsx(ty,{})})},ry=fe(li)` +`,ty=e=>_.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 17",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:_.jsxs("g",{id:"center",children:[_.jsx("path",{id:"Vector 121",d:"M9 4L9 1",stroke:"white","stroke-linecap":"round"}),_.jsx("path",{id:"Vector 123",d:"M14 9H17",stroke:"white","stroke-linecap":"round"}),_.jsx("path",{id:"Vector 122",d:"M9 16L9 14",stroke:"white","stroke-linecap":"round"}),_.jsx("path",{id:"Vector 124",d:"M1 9L4 9",stroke:"white","stroke-linecap":"round"}),_.jsx("circle",{id:"Ellipse 2",cx:"9.00001",cy:"9.00001",r:"5.02857",stroke:"white"})]})}),ny=()=>{const[e,t]=ei(n=>[n.cameraFocusTrigger,n.setCameraFocusTrigger]);return _.jsx(ry,{href:"",onClick:()=>t(!e),size:"medium",startIcon:_.jsx(ty,{})})},ry=fe(ui)` && { padding: 0; width: 32px; @@ -190,32 +190,32 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho filter: brightness(0.65); } } -`;function oy(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,o]of e)if(!Object.is(o,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r{const r=e(n);return oy(t.current,r)?t.current:t.current=r}}const ay=e=>S.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:S.jsxs("g",{id:"bubble_chart",children:[S.jsx("mask",{id:"mask0_1551_42",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:S.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),S.jsx("g",{mask:"url(#mask0_1551_42)",children:S.jsx("path",{id:"bubble_chart_2",d:"M5.83333 15C4.91667 15 4.13194 14.6736 3.47917 14.0208C2.82639 13.3681 2.5 12.5833 2.5 11.6667C2.5 10.75 2.82639 9.96528 3.47917 9.3125C4.13194 8.65972 4.91667 8.33333 5.83333 8.33333C6.75 8.33333 7.53472 8.65972 8.1875 9.3125C8.84028 9.96528 9.16667 10.75 9.16667 11.6667C9.16667 12.5833 8.84028 13.3681 8.1875 14.0208C7.53472 14.6736 6.75 15 5.83333 15ZM13.75 11.6667C12.4722 11.6667 11.3889 11.2222 10.5 10.3333C9.61111 9.44444 9.16667 8.36111 9.16667 7.08333C9.16667 5.80556 9.61111 4.72222 10.5 3.83333C11.3889 2.94444 12.4722 2.5 13.75 2.5C15.0278 2.5 16.1111 2.94444 17 3.83333C17.8889 4.72222 18.3333 5.80556 18.3333 7.08333C18.3333 8.36111 17.8889 9.44444 17 10.3333C16.1111 11.2222 15.0278 11.6667 13.75 11.6667ZM12.0833 17.5C11.3889 17.5 10.7986 17.2569 10.3125 16.7708C9.82639 16.2847 9.58333 15.6944 9.58333 15C9.58333 14.3056 9.82639 13.7153 10.3125 13.2292C10.7986 12.7431 11.3889 12.5 12.0833 12.5C12.7778 12.5 13.3681 12.7431 13.8542 13.2292C14.3403 13.7153 14.5833 14.3056 14.5833 15C14.5833 15.6944 14.3403 16.2847 13.8542 16.7708C13.3681 17.2569 12.7778 17.5 12.0833 17.5Z",fill:"currentColor"})})]})}),cy=e=>S.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:S.jsxs("g",{id:"communities",children:[S.jsx("mask",{id:"mask0_1551_39",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:S.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),S.jsx("g",{mask:"url(#mask0_1551_39)",children:S.jsx("path",{id:"communities_2",d:"M7.50002 13.125C7.90494 13.125 8.24921 12.9832 8.53285 12.6995C8.81651 12.4159 8.95833 12.0716 8.95833 11.6667C8.95833 11.2618 8.81651 10.9175 8.53285 10.6339C8.24921 10.3502 7.90494 10.2084 7.50002 10.2084C7.0951 10.2084 6.75083 10.3502 6.46719 10.6339C6.18353 10.9175 6.04171 11.2618 6.04171 11.6667C6.04171 12.0716 6.18353 12.4159 6.46719 12.6995C6.75083 12.9832 7.0951 13.125 7.50002 13.125ZM12.5 13.125C12.9049 13.125 13.2492 12.9832 13.5329 12.6995C13.8165 12.4159 13.9583 12.0716 13.9583 11.6667C13.9583 11.2618 13.8165 10.9175 13.5329 10.6339C13.2492 10.3502 12.9049 10.2084 12.5 10.2084C12.0951 10.2084 11.7508 10.3502 11.4672 10.6339C11.1835 10.9175 11.0417 11.2618 11.0417 11.6667C11.0417 12.0716 11.1835 12.4159 11.4672 12.6995C11.7508 12.9832 12.0951 13.125 12.5 13.125ZM10 8.95833C10.4049 8.95833 10.7492 8.81651 11.0329 8.53285C11.3165 8.24922 11.4583 7.90494 11.4583 7.50002C11.4583 7.0951 11.3165 6.75083 11.0329 6.46719C10.7492 6.18354 10.4049 6.04171 10 6.04171C9.5951 6.04171 9.25083 6.18354 8.96719 6.46719C8.68354 6.75083 8.54171 7.0951 8.54171 7.50002C8.54171 7.90494 8.68354 8.24922 8.96719 8.53285C9.25083 8.81651 9.5951 8.95833 10 8.95833ZM10.0014 17.9167C8.90647 17.9167 7.87728 17.7089 6.91383 17.2933C5.95037 16.8778 5.1123 16.3138 4.39962 15.6015C3.68693 14.8891 3.12271 14.0514 2.70698 13.0884C2.29124 12.1253 2.08337 11.0964 2.08337 10.0014C2.08337 8.90647 2.29115 7.87728 2.70671 6.91383C3.12226 5.95037 3.68622 5.11231 4.39858 4.39963C5.11096 3.68693 5.94866 3.12272 6.91169 2.70698C7.8747 2.29124 8.90368 2.08337 9.99862 2.08337C11.0936 2.08337 12.1228 2.29115 13.0862 2.70671C14.0497 3.12226 14.8877 3.68622 15.6004 4.39858C16.3131 5.11096 16.8773 5.94866 17.2931 6.91169C17.7088 7.8747 17.9167 8.90368 17.9167 9.99863C17.9167 11.0936 17.7089 12.1228 17.2933 13.0862C16.8778 14.0497 16.3138 14.8877 15.6015 15.6004C14.8891 16.3131 14.0514 16.8773 13.0884 17.2931C12.1253 17.7088 11.0964 17.9167 10.0014 17.9167ZM10 16.6667C11.8611 16.6667 13.4375 16.0209 14.7292 14.7292C16.0209 13.4375 16.6667 11.8611 16.6667 10C16.6667 8.13891 16.0209 6.56252 14.7292 5.27085C13.4375 3.97919 11.8611 3.33335 10 3.33335C8.13891 3.33335 6.56252 3.97919 5.27085 5.27085C3.97919 6.56252 3.33335 8.13891 3.33335 10C3.33335 11.8611 3.97919 13.4375 5.27085 14.7292C6.56252 16.0209 8.13891 16.6667 10 16.6667Z",fill:"currentColor"})})]})}),ly=e=>S.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:S.jsxs("g",{id:"grain",children:[S.jsx("mask",{id:"mask0_1551_45",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:S.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),S.jsx("g",{mask:"url(#mask0_1551_45)",children:S.jsx("path",{id:"grain_2",d:"M4.99999 16.5064C4.57906 16.5064 4.22276 16.3605 3.93109 16.0689C3.63942 15.7772 3.49359 15.4209 3.49359 15C3.49359 14.5791 3.63942 14.2228 3.93109 13.9311C4.22276 13.6394 4.57906 13.4936 4.99999 13.4936C5.42092 13.4936 5.77722 13.6394 6.06888 13.9311C6.36055 14.2228 6.50638 14.5791 6.50638 15C6.50638 15.4209 6.36055 15.7772 6.06888 16.0689C5.77722 16.3605 5.42092 16.5064 4.99999 16.5064ZM11.6667 16.5064C11.2457 16.5064 10.8894 16.3605 10.5978 16.0689C10.3061 15.7772 10.1603 15.4209 10.1603 15C10.1603 14.5791 10.3061 14.2228 10.5978 13.9311C10.8894 13.6394 11.2457 13.4936 11.6667 13.4936C12.0876 13.4936 12.4439 13.6394 12.7355 13.9311C13.0272 14.2228 13.1731 14.5791 13.1731 15C13.1731 15.4209 13.0272 15.7772 12.7355 16.0689C12.4439 16.3605 12.0876 16.5064 11.6667 16.5064ZM8.33332 13.1731C7.91239 13.1731 7.55609 13.0272 7.26442 12.7355C6.97276 12.4439 6.82692 12.0876 6.82692 11.6667C6.82692 11.2457 6.97276 10.8894 7.26442 10.5978C7.55609 10.3061 7.91239 10.1603 8.33332 10.1603C8.75425 10.1603 9.11055 10.3061 9.40222 10.5978C9.69388 10.8894 9.83972 11.2457 9.83972 11.6667C9.83972 12.0876 9.69388 12.4439 9.40222 12.7355C9.11055 13.0272 8.75425 13.1731 8.33332 13.1731ZM15 13.1731C14.5791 13.1731 14.2228 13.0272 13.9311 12.7355C13.6394 12.4439 13.4936 12.0876 13.4936 11.6667C13.4936 11.2457 13.6394 10.8894 13.9311 10.5978C14.2228 10.3061 14.5791 10.1603 15 10.1603C15.4209 10.1603 15.7772 10.3061 16.0689 10.5978C16.3605 10.8894 16.5064 11.2457 16.5064 11.6667C16.5064 12.0876 16.3605 12.4439 16.0689 12.7355C15.7772 13.0272 15.4209 13.1731 15 13.1731ZM4.99999 9.83972C4.57906 9.83972 4.22276 9.69388 3.93109 9.40222C3.63942 9.11055 3.49359 8.75425 3.49359 8.33332C3.49359 7.91239 3.63942 7.55609 3.93109 7.26442C4.22276 6.97276 4.57906 6.82692 4.99999 6.82692C5.42092 6.82692 5.77722 6.97276 6.06888 7.26442C6.36055 7.55609 6.50638 7.91239 6.50638 8.33332C6.50638 8.75425 6.36055 9.11055 6.06888 9.40222C5.77722 9.69388 5.42092 9.83972 4.99999 9.83972ZM11.6667 9.83972C11.2457 9.83972 10.8894 9.69388 10.5978 9.40222C10.3061 9.11055 10.1603 8.75425 10.1603 8.33332C10.1603 7.91239 10.3061 7.55609 10.5978 7.26442C10.8894 6.97276 11.2457 6.82692 11.6667 6.82692C12.0876 6.82692 12.4439 6.97276 12.7355 7.26442C13.0272 7.55609 13.1731 7.91239 13.1731 8.33332C13.1731 8.75425 13.0272 9.11055 12.7355 9.40222C12.4439 9.69388 12.0876 9.83972 11.6667 9.83972ZM8.33332 6.50638C7.91239 6.50638 7.55609 6.36055 7.26442 6.06888C6.97276 5.77722 6.82692 5.42092 6.82692 4.99999C6.82692 4.57906 6.97276 4.22276 7.26442 3.93109C7.55609 3.63942 7.91239 3.49359 8.33332 3.49359C8.75425 3.49359 9.11055 3.63942 9.40222 3.93109C9.69388 4.22276 9.83972 4.57906 9.83972 4.99999C9.83972 5.42092 9.69388 5.77722 9.40222 6.06888C9.11055 6.36055 8.75425 6.50638 8.33332 6.50638ZM15 6.50638C14.5791 6.50638 14.2228 6.36055 13.9311 6.06888C13.6394 5.77722 13.4936 5.42092 13.4936 4.99999C13.4936 4.57906 13.6394 4.22276 13.9311 3.93109C14.2228 3.63942 14.5791 3.49359 15 3.49359C15.4209 3.49359 15.7772 3.63942 16.0689 3.93109C16.3605 4.22276 16.5064 4.57906 16.5064 4.99999C16.5064 5.42092 16.3605 5.77722 16.0689 6.06888C15.7772 6.36055 15.4209 6.50638 15 6.50638Z",fill:"currentColor"})})]})}),uy=e=>S.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:S.jsxs("g",{id:"public",children:[S.jsx("mask",{id:"mask0_1551_36",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:S.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),S.jsx("g",{mask:"url(#mask0_1551_36)",children:S.jsx("path",{id:"public_2",d:"M10.0028 17.5C8.96567 17.5 7.9906 17.3032 7.07758 16.9096C6.16457 16.516 5.37037 15.9818 4.69498 15.3071C4.0196 14.6323 3.48493 13.8389 3.09096 12.9267C2.69699 12.0145 2.5 11.0399 2.5 10.0028C2.5 8.96567 2.6968 7.9906 3.0904 7.07758C3.48401 6.16457 4.01819 5.37037 4.69294 4.69498C5.36769 4.0196 6.16114 3.48493 7.07329 3.09096C7.98546 2.69699 8.9601 2.5 9.99721 2.5C11.0343 2.5 12.0094 2.6968 12.9224 3.0904C13.8354 3.48401 14.6296 4.01819 15.305 4.69294C15.9804 5.36769 16.5151 6.16114 16.909 7.07329C17.303 7.98546 17.5 8.9601 17.5 9.99721C17.5 11.0343 17.3032 12.0094 16.9096 12.9224C16.516 13.8354 15.9818 14.6296 15.3071 15.305C14.6323 15.9804 13.8389 16.5151 12.9267 16.909C12.0145 17.303 11.0399 17.5 10.0028 17.5ZM9.16667 16.625V15C8.70833 15 8.31597 14.8368 7.98958 14.5104C7.66319 14.184 7.5 13.7917 7.5 13.3333V12.5L3.5 8.5C3.45833 8.75 3.42014 9 3.38542 9.25C3.35069 9.5 3.33333 9.75 3.33333 10C3.33333 11.6806 3.88542 13.1528 4.98958 14.4167C6.09375 15.6806 7.48611 16.4167 9.16667 16.625ZM14.9167 14.5C15.1944 14.1944 15.4444 13.8646 15.6667 13.5104C15.8889 13.1562 16.0729 12.7882 16.2187 12.4062C16.3646 12.0243 16.4757 11.6319 16.5521 11.2292C16.6285 10.8264 16.6667 10.4167 16.6667 10C16.6667 8.63083 16.2909 7.38042 15.5393 6.24877C14.7877 5.11712 13.7746 4.30129 12.5 3.80129V4.16667C12.5 4.625 12.3368 5.01736 12.0104 5.34375C11.684 5.67014 11.2917 5.83333 10.8333 5.83333H9.16667V7.5C9.16667 7.73611 9.08681 7.93403 8.92708 8.09375C8.76736 8.25347 8.56944 8.33333 8.33333 8.33333H6.66667V10H11.6667C11.9028 10 12.1007 10.0799 12.2604 10.2396C12.4201 10.3993 12.5 10.5972 12.5 10.8333V13.3333H13.3333C13.6944 13.3333 14.0208 13.441 14.3125 13.6562C14.6042 13.8715 14.8056 14.1528 14.9167 14.5Z",fill:"currentColor"})})]})}),dy={split:S.jsx(ly,{}),force:S.jsx(cy,{}),sphere:S.jsx(ay,{}),earth:S.jsx(uy,{})},fy=()=>{const[e,t]=ei(sy(r=>[r.graphStyle,r.setGraphStyle])),n=r=>{t(r)};return S.jsx(py,{direction:"column",children:Nl.map(r=>S.jsx(J,{className:Vl("icon",{active:e===r}),onClick:()=>n(r),children:dy[r]},r))})},py=fe(J).attrs({direction:"row",align:"center",justify:"space-between"})` +`;function oy(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,o]of e)if(!Object.is(o,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r{const r=e(n);return oy(t.current,r)?t.current:t.current=r}}const ay=e=>_.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:_.jsxs("g",{id:"bubble_chart",children:[_.jsx("mask",{id:"mask0_1551_42",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:_.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),_.jsx("g",{mask:"url(#mask0_1551_42)",children:_.jsx("path",{id:"bubble_chart_2",d:"M5.83333 15C4.91667 15 4.13194 14.6736 3.47917 14.0208C2.82639 13.3681 2.5 12.5833 2.5 11.6667C2.5 10.75 2.82639 9.96528 3.47917 9.3125C4.13194 8.65972 4.91667 8.33333 5.83333 8.33333C6.75 8.33333 7.53472 8.65972 8.1875 9.3125C8.84028 9.96528 9.16667 10.75 9.16667 11.6667C9.16667 12.5833 8.84028 13.3681 8.1875 14.0208C7.53472 14.6736 6.75 15 5.83333 15ZM13.75 11.6667C12.4722 11.6667 11.3889 11.2222 10.5 10.3333C9.61111 9.44444 9.16667 8.36111 9.16667 7.08333C9.16667 5.80556 9.61111 4.72222 10.5 3.83333C11.3889 2.94444 12.4722 2.5 13.75 2.5C15.0278 2.5 16.1111 2.94444 17 3.83333C17.8889 4.72222 18.3333 5.80556 18.3333 7.08333C18.3333 8.36111 17.8889 9.44444 17 10.3333C16.1111 11.2222 15.0278 11.6667 13.75 11.6667ZM12.0833 17.5C11.3889 17.5 10.7986 17.2569 10.3125 16.7708C9.82639 16.2847 9.58333 15.6944 9.58333 15C9.58333 14.3056 9.82639 13.7153 10.3125 13.2292C10.7986 12.7431 11.3889 12.5 12.0833 12.5C12.7778 12.5 13.3681 12.7431 13.8542 13.2292C14.3403 13.7153 14.5833 14.3056 14.5833 15C14.5833 15.6944 14.3403 16.2847 13.8542 16.7708C13.3681 17.2569 12.7778 17.5 12.0833 17.5Z",fill:"currentColor"})})]})}),cy=e=>_.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:_.jsxs("g",{id:"communities",children:[_.jsx("mask",{id:"mask0_1551_39",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:_.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),_.jsx("g",{mask:"url(#mask0_1551_39)",children:_.jsx("path",{id:"communities_2",d:"M7.50002 13.125C7.90494 13.125 8.24921 12.9832 8.53285 12.6995C8.81651 12.4159 8.95833 12.0716 8.95833 11.6667C8.95833 11.2618 8.81651 10.9175 8.53285 10.6339C8.24921 10.3502 7.90494 10.2084 7.50002 10.2084C7.0951 10.2084 6.75083 10.3502 6.46719 10.6339C6.18353 10.9175 6.04171 11.2618 6.04171 11.6667C6.04171 12.0716 6.18353 12.4159 6.46719 12.6995C6.75083 12.9832 7.0951 13.125 7.50002 13.125ZM12.5 13.125C12.9049 13.125 13.2492 12.9832 13.5329 12.6995C13.8165 12.4159 13.9583 12.0716 13.9583 11.6667C13.9583 11.2618 13.8165 10.9175 13.5329 10.6339C13.2492 10.3502 12.9049 10.2084 12.5 10.2084C12.0951 10.2084 11.7508 10.3502 11.4672 10.6339C11.1835 10.9175 11.0417 11.2618 11.0417 11.6667C11.0417 12.0716 11.1835 12.4159 11.4672 12.6995C11.7508 12.9832 12.0951 13.125 12.5 13.125ZM10 8.95833C10.4049 8.95833 10.7492 8.81651 11.0329 8.53285C11.3165 8.24922 11.4583 7.90494 11.4583 7.50002C11.4583 7.0951 11.3165 6.75083 11.0329 6.46719C10.7492 6.18354 10.4049 6.04171 10 6.04171C9.5951 6.04171 9.25083 6.18354 8.96719 6.46719C8.68354 6.75083 8.54171 7.0951 8.54171 7.50002C8.54171 7.90494 8.68354 8.24922 8.96719 8.53285C9.25083 8.81651 9.5951 8.95833 10 8.95833ZM10.0014 17.9167C8.90647 17.9167 7.87728 17.7089 6.91383 17.2933C5.95037 16.8778 5.1123 16.3138 4.39962 15.6015C3.68693 14.8891 3.12271 14.0514 2.70698 13.0884C2.29124 12.1253 2.08337 11.0964 2.08337 10.0014C2.08337 8.90647 2.29115 7.87728 2.70671 6.91383C3.12226 5.95037 3.68622 5.11231 4.39858 4.39963C5.11096 3.68693 5.94866 3.12272 6.91169 2.70698C7.8747 2.29124 8.90368 2.08337 9.99862 2.08337C11.0936 2.08337 12.1228 2.29115 13.0862 2.70671C14.0497 3.12226 14.8877 3.68622 15.6004 4.39858C16.3131 5.11096 16.8773 5.94866 17.2931 6.91169C17.7088 7.8747 17.9167 8.90368 17.9167 9.99863C17.9167 11.0936 17.7089 12.1228 17.2933 13.0862C16.8778 14.0497 16.3138 14.8877 15.6015 15.6004C14.8891 16.3131 14.0514 16.8773 13.0884 17.2931C12.1253 17.7088 11.0964 17.9167 10.0014 17.9167ZM10 16.6667C11.8611 16.6667 13.4375 16.0209 14.7292 14.7292C16.0209 13.4375 16.6667 11.8611 16.6667 10C16.6667 8.13891 16.0209 6.56252 14.7292 5.27085C13.4375 3.97919 11.8611 3.33335 10 3.33335C8.13891 3.33335 6.56252 3.97919 5.27085 5.27085C3.97919 6.56252 3.33335 8.13891 3.33335 10C3.33335 11.8611 3.97919 13.4375 5.27085 14.7292C6.56252 16.0209 8.13891 16.6667 10 16.6667Z",fill:"currentColor"})})]})}),ly=e=>_.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:_.jsxs("g",{id:"grain",children:[_.jsx("mask",{id:"mask0_1551_45",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:_.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),_.jsx("g",{mask:"url(#mask0_1551_45)",children:_.jsx("path",{id:"grain_2",d:"M4.99999 16.5064C4.57906 16.5064 4.22276 16.3605 3.93109 16.0689C3.63942 15.7772 3.49359 15.4209 3.49359 15C3.49359 14.5791 3.63942 14.2228 3.93109 13.9311C4.22276 13.6394 4.57906 13.4936 4.99999 13.4936C5.42092 13.4936 5.77722 13.6394 6.06888 13.9311C6.36055 14.2228 6.50638 14.5791 6.50638 15C6.50638 15.4209 6.36055 15.7772 6.06888 16.0689C5.77722 16.3605 5.42092 16.5064 4.99999 16.5064ZM11.6667 16.5064C11.2457 16.5064 10.8894 16.3605 10.5978 16.0689C10.3061 15.7772 10.1603 15.4209 10.1603 15C10.1603 14.5791 10.3061 14.2228 10.5978 13.9311C10.8894 13.6394 11.2457 13.4936 11.6667 13.4936C12.0876 13.4936 12.4439 13.6394 12.7355 13.9311C13.0272 14.2228 13.1731 14.5791 13.1731 15C13.1731 15.4209 13.0272 15.7772 12.7355 16.0689C12.4439 16.3605 12.0876 16.5064 11.6667 16.5064ZM8.33332 13.1731C7.91239 13.1731 7.55609 13.0272 7.26442 12.7355C6.97276 12.4439 6.82692 12.0876 6.82692 11.6667C6.82692 11.2457 6.97276 10.8894 7.26442 10.5978C7.55609 10.3061 7.91239 10.1603 8.33332 10.1603C8.75425 10.1603 9.11055 10.3061 9.40222 10.5978C9.69388 10.8894 9.83972 11.2457 9.83972 11.6667C9.83972 12.0876 9.69388 12.4439 9.40222 12.7355C9.11055 13.0272 8.75425 13.1731 8.33332 13.1731ZM15 13.1731C14.5791 13.1731 14.2228 13.0272 13.9311 12.7355C13.6394 12.4439 13.4936 12.0876 13.4936 11.6667C13.4936 11.2457 13.6394 10.8894 13.9311 10.5978C14.2228 10.3061 14.5791 10.1603 15 10.1603C15.4209 10.1603 15.7772 10.3061 16.0689 10.5978C16.3605 10.8894 16.5064 11.2457 16.5064 11.6667C16.5064 12.0876 16.3605 12.4439 16.0689 12.7355C15.7772 13.0272 15.4209 13.1731 15 13.1731ZM4.99999 9.83972C4.57906 9.83972 4.22276 9.69388 3.93109 9.40222C3.63942 9.11055 3.49359 8.75425 3.49359 8.33332C3.49359 7.91239 3.63942 7.55609 3.93109 7.26442C4.22276 6.97276 4.57906 6.82692 4.99999 6.82692C5.42092 6.82692 5.77722 6.97276 6.06888 7.26442C6.36055 7.55609 6.50638 7.91239 6.50638 8.33332C6.50638 8.75425 6.36055 9.11055 6.06888 9.40222C5.77722 9.69388 5.42092 9.83972 4.99999 9.83972ZM11.6667 9.83972C11.2457 9.83972 10.8894 9.69388 10.5978 9.40222C10.3061 9.11055 10.1603 8.75425 10.1603 8.33332C10.1603 7.91239 10.3061 7.55609 10.5978 7.26442C10.8894 6.97276 11.2457 6.82692 11.6667 6.82692C12.0876 6.82692 12.4439 6.97276 12.7355 7.26442C13.0272 7.55609 13.1731 7.91239 13.1731 8.33332C13.1731 8.75425 13.0272 9.11055 12.7355 9.40222C12.4439 9.69388 12.0876 9.83972 11.6667 9.83972ZM8.33332 6.50638C7.91239 6.50638 7.55609 6.36055 7.26442 6.06888C6.97276 5.77722 6.82692 5.42092 6.82692 4.99999C6.82692 4.57906 6.97276 4.22276 7.26442 3.93109C7.55609 3.63942 7.91239 3.49359 8.33332 3.49359C8.75425 3.49359 9.11055 3.63942 9.40222 3.93109C9.69388 4.22276 9.83972 4.57906 9.83972 4.99999C9.83972 5.42092 9.69388 5.77722 9.40222 6.06888C9.11055 6.36055 8.75425 6.50638 8.33332 6.50638ZM15 6.50638C14.5791 6.50638 14.2228 6.36055 13.9311 6.06888C13.6394 5.77722 13.4936 5.42092 13.4936 4.99999C13.4936 4.57906 13.6394 4.22276 13.9311 3.93109C14.2228 3.63942 14.5791 3.49359 15 3.49359C15.4209 3.49359 15.7772 3.63942 16.0689 3.93109C16.3605 4.22276 16.5064 4.57906 16.5064 4.99999C16.5064 5.42092 16.3605 5.77722 16.0689 6.06888C15.7772 6.36055 15.4209 6.50638 15 6.50638Z",fill:"currentColor"})})]})}),uy=e=>_.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:_.jsxs("g",{id:"public",children:[_.jsx("mask",{id:"mask0_1551_36",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:_.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),_.jsx("g",{mask:"url(#mask0_1551_36)",children:_.jsx("path",{id:"public_2",d:"M10.0028 17.5C8.96567 17.5 7.9906 17.3032 7.07758 16.9096C6.16457 16.516 5.37037 15.9818 4.69498 15.3071C4.0196 14.6323 3.48493 13.8389 3.09096 12.9267C2.69699 12.0145 2.5 11.0399 2.5 10.0028C2.5 8.96567 2.6968 7.9906 3.0904 7.07758C3.48401 6.16457 4.01819 5.37037 4.69294 4.69498C5.36769 4.0196 6.16114 3.48493 7.07329 3.09096C7.98546 2.69699 8.9601 2.5 9.99721 2.5C11.0343 2.5 12.0094 2.6968 12.9224 3.0904C13.8354 3.48401 14.6296 4.01819 15.305 4.69294C15.9804 5.36769 16.5151 6.16114 16.909 7.07329C17.303 7.98546 17.5 8.9601 17.5 9.99721C17.5 11.0343 17.3032 12.0094 16.9096 12.9224C16.516 13.8354 15.9818 14.6296 15.3071 15.305C14.6323 15.9804 13.8389 16.5151 12.9267 16.909C12.0145 17.303 11.0399 17.5 10.0028 17.5ZM9.16667 16.625V15C8.70833 15 8.31597 14.8368 7.98958 14.5104C7.66319 14.184 7.5 13.7917 7.5 13.3333V12.5L3.5 8.5C3.45833 8.75 3.42014 9 3.38542 9.25C3.35069 9.5 3.33333 9.75 3.33333 10C3.33333 11.6806 3.88542 13.1528 4.98958 14.4167C6.09375 15.6806 7.48611 16.4167 9.16667 16.625ZM14.9167 14.5C15.1944 14.1944 15.4444 13.8646 15.6667 13.5104C15.8889 13.1562 16.0729 12.7882 16.2187 12.4062C16.3646 12.0243 16.4757 11.6319 16.5521 11.2292C16.6285 10.8264 16.6667 10.4167 16.6667 10C16.6667 8.63083 16.2909 7.38042 15.5393 6.24877C14.7877 5.11712 13.7746 4.30129 12.5 3.80129V4.16667C12.5 4.625 12.3368 5.01736 12.0104 5.34375C11.684 5.67014 11.2917 5.83333 10.8333 5.83333H9.16667V7.5C9.16667 7.73611 9.08681 7.93403 8.92708 8.09375C8.76736 8.25347 8.56944 8.33333 8.33333 8.33333H6.66667V10H11.6667C11.9028 10 12.1007 10.0799 12.2604 10.2396C12.4201 10.3993 12.5 10.5972 12.5 10.8333V13.3333H13.3333C13.6944 13.3333 14.0208 13.441 14.3125 13.6562C14.6042 13.8715 14.8056 14.1528 14.9167 14.5Z",fill:"currentColor"})})]})}),dy={split:_.jsx(ly,{}),force:_.jsx(cy,{}),sphere:_.jsx(ay,{}),earth:_.jsx(uy,{})},fy=()=>{const[e,t]=ei(sy(r=>[r.graphStyle,r.setGraphStyle])),n=r=>{t(r)};return _.jsx(py,{direction:"column",children:Nl.map(r=>_.jsx(ee,{className:Vl("icon",{active:e===r}),onClick:()=>n(r),children:dy[r]},r))})},py=fe(ee).attrs({direction:"row",align:"center",justify:"space-between"})` padding: 6px 6px 6px 11px; - background: ${xe.BG1}; + background: ${Q.BG1}; border-radius: 200px; .icon { - color: ${xe.GRAY6}; + color: ${Q.GRAY6}; font-size: 20px; cursor: pointer; &:hover { - color: ${xe.GRAY3}; + color: ${Q.GRAY3}; } &:active { - color: ${xe.white}; + color: ${Q.white}; } &.active { - color: ${xe.white}; + color: ${Q.white}; } } .icon + .icon { margin-left: 20px; } -`,hy=e=>S.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("g",{id:"Property 1=press",children:S.jsx("path",{id:"close",d:"M16 17.2833L11.5083 21.775C11.3403 21.943 11.1264 22.0271 10.8667 22.0271C10.6069 22.0271 10.393 21.943 10.225 21.775C10.0569 21.6069 9.9729 21.393 9.9729 21.1333C9.9729 20.8736 10.0569 20.6597 10.225 20.4917L14.7167 16L10.225 11.5083C10.0569 11.3403 9.9729 11.1264 9.9729 10.8667C9.9729 10.6069 10.0569 10.393 10.225 10.225C10.393 10.0569 10.6069 9.9729 10.8667 9.9729C11.1264 9.9729 11.3403 10.0569 11.5083 10.225L16 14.7167L20.4917 10.225C20.6597 10.0569 20.8736 9.9729 21.1333 9.9729C21.393 9.9729 21.6069 10.0569 21.775 10.225C21.943 10.393 22.0271 10.6069 22.0271 10.8667C22.0271 11.1264 21.943 11.3403 21.775 11.5083L17.2833 16L21.775 20.4917C21.943 20.6597 22.0271 20.8736 22.0271 21.1333C22.0271 21.393 21.943 21.6069 21.775 21.775C21.6069 21.943 21.393 22.0271 21.1333 22.0271C20.8736 22.0271 20.6597 21.943 20.4917 21.775L16 17.2833Z",fill:"currentColor"})})}),gy=e=>S.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 38 38",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("g",{id:"Property 1=Pause Normal",children:S.jsx("path",{id:"Pause",d:"M19 3C10.15 3 3 10.15 3 19C3 27.85 10.15 35 19 35C27.85 35 35 27.85 35 19C35 10.15 27.8 3 19 3ZM17.25 23.3C17.25 24.25 16.5 25.05 15.5 25.05C14.55 25.05 13.75 24.3 13.75 23.3V14.65C13.75 13.7 14.5 12.9 15.5 12.9C16.45 12.9 17.25 13.65 17.25 14.65V23.3ZM24.2 23.3C24.2 24.25 23.45 25.05 22.45 25.05C21.5 25.05 20.7 24.3 20.7 23.3V14.65C20.7 13.7 21.45 12.9 22.45 12.9C23.4 12.9 24.2 13.65 24.2 14.65V23.3Z",fill:"currentColor"})})}),my=e=>S.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 38 38",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("g",{id:"Play & Pause",children:S.jsx("path",{id:"Play",d:"M19 3C10.1606 3 3 10.1606 3 19C3 27.8394 10.1606 35 19 35C27.8394 35 35 27.8394 35 19C35 10.1606 27.8338 3 19 3ZM24.0746 20.0898L16.936 24.6361C16.182 25.1149 15.1913 24.5755 15.1913 23.6784V14.5913C15.1913 13.6942 16.182 13.1548 16.936 13.6336L24.0746 18.1799C24.7736 18.6202 24.7736 19.644 24.0746 20.0898Z",fill:"currentColor"})})}),by={video:"video",podcast:"audio",episode:"audio",clip:"audio",tweet:"twitter",person:"person",guest:"person",twitter_space:"audio",show:"show",image:"image"},Tl=fe.div` +`,hy=e=>_.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:_.jsx("g",{id:"Property 1=press",children:_.jsx("path",{id:"close",d:"M16 17.2833L11.5083 21.775C11.3403 21.943 11.1264 22.0271 10.8667 22.0271C10.6069 22.0271 10.393 21.943 10.225 21.775C10.0569 21.6069 9.9729 21.393 9.9729 21.1333C9.9729 20.8736 10.0569 20.6597 10.225 20.4917L14.7167 16L10.225 11.5083C10.0569 11.3403 9.9729 11.1264 9.9729 10.8667C9.9729 10.6069 10.0569 10.393 10.225 10.225C10.393 10.0569 10.6069 9.9729 10.8667 9.9729C11.1264 9.9729 11.3403 10.0569 11.5083 10.225L16 14.7167L20.4917 10.225C20.6597 10.0569 20.8736 9.9729 21.1333 9.9729C21.393 9.9729 21.6069 10.0569 21.775 10.225C21.943 10.393 22.0271 10.6069 22.0271 10.8667C22.0271 11.1264 21.943 11.3403 21.775 11.5083L17.2833 16L21.775 20.4917C21.943 20.6597 22.0271 20.8736 22.0271 21.1333C22.0271 21.393 21.943 21.6069 21.775 21.775C21.6069 21.943 21.393 22.0271 21.1333 22.0271C20.8736 22.0271 20.6597 21.943 20.4917 21.775L16 17.2833Z",fill:"currentColor"})})}),gy=e=>_.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 38 38",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:_.jsx("g",{id:"Property 1=Pause Normal",children:_.jsx("path",{id:"Pause",d:"M19 3C10.15 3 3 10.15 3 19C3 27.85 10.15 35 19 35C27.85 35 35 27.85 35 19C35 10.15 27.8 3 19 3ZM17.25 23.3C17.25 24.25 16.5 25.05 15.5 25.05C14.55 25.05 13.75 24.3 13.75 23.3V14.65C13.75 13.7 14.5 12.9 15.5 12.9C16.45 12.9 17.25 13.65 17.25 14.65V23.3ZM24.2 23.3C24.2 24.25 23.45 25.05 22.45 25.05C21.5 25.05 20.7 24.3 20.7 23.3V14.65C20.7 13.7 21.45 12.9 22.45 12.9C23.4 12.9 24.2 13.65 24.2 14.65V23.3Z",fill:"currentColor"})})}),my=e=>_.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 38 38",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:_.jsx("g",{id:"Play & Pause",children:_.jsx("path",{id:"Play",d:"M19 3C10.1606 3 3 10.1606 3 19C3 27.8394 10.1606 35 19 35C27.8394 35 35 27.8394 35 19C35 10.1606 27.8338 3 19 3ZM24.0746 20.0898L16.936 24.6361C16.182 25.1149 15.1913 24.5755 15.1913 23.6784V14.5913C15.1913 13.6942 16.182 13.1548 16.936 13.6336L24.0746 18.1799C24.7736 18.6202 24.7736 19.644 24.0746 20.0898Z",fill:"currentColor"})})}),by={video:"video",podcast:"audio",episode:"audio",clip:"audio",tweet:"twitter",person:"person",guest:"person",twitter_space:"audio",show:"show",image:"image"},Tl=fe.div` background-image: ${({src:e,type:t="audio"})=>`url(${e}), url('/${by[t]||"generic"}_placeholder_img.png')`}; background-size: cover; background-position: center; @@ -223,18 +223,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho width: ${({size:e=45})=>e}px; height: ${({size:e=45})=>e}px; border-radius: ${({rounded:e})=>e?"50%":"2px"}; -`,_n={isPlaying:!1,miniPlayerIsVisible:!1,hasError:!1,isSeeking:!1,playingTime:0,playingNode:null,duration:0,volume:.5},yy=ga()(Bl((e,t)=>({..._n,setIsSeeking:n=>e({isSeeking:n}),setIsPlaying:n=>e({isPlaying:n}),setMiniPlayerIsVisible:n=>{e(n?{miniPlayerIsVisible:n}:{miniPlayerIsVisible:n,isPlaying:!1})},setHasError:n=>e({hasError:n}),setPlayingTime:n=>e({playingTime:n}),setDuration:n=>e({duration:n}),setVolume:n=>e({volume:n}),setPlayingNodeLink:n=>{const{playingNode:r}=t();r&&e({playingNode:{...r,link:n}})},setPlayingNode:n=>{n||e({..._n});const r=t().playingNode;(r==null?void 0:r.ref_id)!==(n==null?void 0:n.ref_id)&&e({..._n,miniPlayerIsVisible:!0,playingNode:n})},resetPlayer:()=>e({duration:_n.duration,hasError:_n.hasError})}))),vy=()=>{var C,_,$,E;const e=d.useRef(null),[t,n]=d.useState(0),r=ma(),o=ba(),[i,s]=zn(T=>[T.sidebarIsOpen,T.setSidebarOpen]),[a,c,l,u,f,p]=yy(T=>[T.isPlaying,T.setIsPlaying,T.playingTime,T.playingNode,T.miniPlayerIsVisible,T.setMiniPlayerIsVisible]),[g,m]=(C=u==null?void 0:u.properties)!=null&&C.timestamp?u.properties.timestamp.split("-").map(T=>eu(T)):[0,0],b=(l-g)/(m-g)*100;d.useEffect(()=>{var F,j;const T=((F=e.current)==null?void 0:F.offsetWidth)||0,R=((j=e.current)==null?void 0:j.scrollWidth)||0;n(R-T)},[]);const w=T=>{p(!1),T.stopPropagation()},v=()=>{o(u),s(!0)},y=i&&(r==null?void 0:r.ref_id)!==(u==null?void 0:u.ref_id)||u&&!i;return f&&u&&y?S.jsxs(xy,{onClick:v,children:[S.jsxs(wy,{children:[S.jsx(Tl,{src:((_=u==null?void 0:u.properties)==null?void 0:_.image_url)||"",type:u.node_type}),S.jsxs($y,{children:[S.jsxs(Ty,{ref:e,children:[S.jsx(Sy,{className:"title",scrollValue:t,children:($=u==null?void 0:u.properties)==null?void 0:$.episode_title}),S.jsx("div",{className:"subtitle",children:(E=u==null?void 0:u.properties)==null?void 0:E.show_title})]}),S.jsx(Cy,{"data-testid":"play-pause-button",onClick:T=>{c(!a),T.stopPropagation()},size:"small",children:a?S.jsx(gy,{"data-testid":"pause-icon"}):S.jsx(my,{"data-testid":"play-icon"})})]}),S.jsx(Ey,{onClick:T=>w(T),children:S.jsx(hy,{})})]}),S.jsx(_y,{value:b,variant:"determinate"})]}):null},xy=fe(J).attrs({direction:"column",align:"stretch",justify:"space-between"})` +`,_n={isPlaying:!1,miniPlayerIsVisible:!1,hasError:!1,isSeeking:!1,playingTime:0,playingNode:null,duration:0,volume:.5},yy=ti()(Bl((e,t)=>({..._n,setIsSeeking:n=>e({isSeeking:n}),setIsPlaying:n=>e({isPlaying:n}),setMiniPlayerIsVisible:n=>{e(n?{miniPlayerIsVisible:n}:{miniPlayerIsVisible:n,isPlaying:!1})},setHasError:n=>e({hasError:n}),setPlayingTime:n=>e({playingTime:n}),setDuration:n=>e({duration:n}),setVolume:n=>e({volume:n}),setPlayingNodeLink:n=>{const{playingNode:r}=t();r&&e({playingNode:{...r,link:n}})},setPlayingNode:n=>{n||e({..._n});const r=t().playingNode;(r==null?void 0:r.ref_id)!==(n==null?void 0:n.ref_id)&&e({..._n,miniPlayerIsVisible:!0,playingNode:n})},resetPlayer:()=>e({duration:_n.duration,hasError:_n.hasError})}))),vy=()=>{var C,S,E,$;const e=d.useRef(null),[t,n]=d.useState(0),r=ma(),o=ba(),[i,s]=zn(T=>[T.sidebarIsOpen,T.setSidebarOpen]),[a,c,l,u,f,p]=yy(T=>[T.isPlaying,T.setIsPlaying,T.playingTime,T.playingNode,T.miniPlayerIsVisible,T.setMiniPlayerIsVisible]),[g,m]=(C=u==null?void 0:u.properties)!=null&&C.timestamp?u.properties.timestamp.split("-").map(T=>eu(T)):[0,0],b=(l-g)/(m-g)*100;d.useEffect(()=>{var F,j;const T=((F=e.current)==null?void 0:F.offsetWidth)||0,R=((j=e.current)==null?void 0:j.scrollWidth)||0;n(R-T)},[]);const w=T=>{p(!1),T.stopPropagation()},v=()=>{o(u),s(!0)},y=i&&(r==null?void 0:r.ref_id)!==(u==null?void 0:u.ref_id)||u&&!i;return f&&u&&y?_.jsxs(xy,{onClick:v,children:[_.jsxs(wy,{children:[_.jsx(Tl,{src:((S=u==null?void 0:u.properties)==null?void 0:S.image_url)||"",type:u.node_type}),_.jsxs(Ey,{children:[_.jsxs(Ty,{ref:e,children:[_.jsx(Sy,{className:"title",scrollValue:t,children:(E=u==null?void 0:u.properties)==null?void 0:E.episode_title}),_.jsx("div",{className:"subtitle",children:($=u==null?void 0:u.properties)==null?void 0:$.show_title})]}),_.jsx(Cy,{"data-testid":"play-pause-button",onClick:T=>{c(!a),T.stopPropagation()},size:"small",children:a?_.jsx(gy,{"data-testid":"pause-icon"}):_.jsx(my,{"data-testid":"play-icon"})})]}),_.jsx($y,{onClick:T=>w(T),children:_.jsx(hy,{})})]}),_.jsx(_y,{value:b,variant:"determinate"})]}):null},xy=fe(ee).attrs({direction:"column",align:"stretch",justify:"space-between"})` padding: 8px; - background: ${xe.BG1}; + background: ${Q.BG1}; border-radius: 6px; width: 320px; height: 72px; margin-top: 16px; cursor: pointer; z-index: 0; -`,wy=fe(J).attrs({direction:"row",align:"center",justify:"flex-start"})``,$y=fe(J).attrs({direction:"row",align:"center",justify:"space-between"})` +`,wy=fe(ee).attrs({direction:"row",align:"center",justify:"flex-start"})``,Ey=fe(ee).attrs({direction:"row",align:"center",justify:"space-between"})` flex: 1; - color: ${xe.white}; + color: ${Q.white}; margin-left: 11px; .title { @@ -245,14 +245,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho .subtitle { font-size: 11px; - color: ${xe.GRAY6}; + color: ${Q.GRAY6}; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } -`,Ey=fe(wa)` +`,$y=fe(wa)` padding: 8px; - color: ${xe.GRAY6}; + color: ${Q.GRAY6}; z-index: 100000; `,Cy=fe(wa)` && { @@ -266,7 +266,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho && { flex-shrink: 0; height: 2px; - background-color: ${xe.white}; + background-color: ${Q.white}; color: blue; .MuiLinearProgress-bar { @@ -295,10 +295,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } color: #fff; -`,Ty=fe(J)` +`,Ty=fe(ee)` overflow: hidden; flex: 1; -`,ky=e=>S.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("g",{id:"Menu icons",children:S.jsx("path",{id:"Union","fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.2669 9.02431C16.2669 13.346 12.7635 16.8494 8.44179 16.8494C7.27934 16.8494 6.1761 16.5959 5.18431 16.1412L1.18187 17.1418C0.90723 17.2105 0.658457 16.9617 0.727118 16.6871L1.66434 12.9382C0.998057 11.7869 0.616699 10.4502 0.616699 9.02431C0.616699 4.70263 4.12011 1.19922 8.44179 1.19922C12.7635 1.19922 16.2669 4.70263 16.2669 9.02431ZM4.73511 7.77304C4.73511 7.31812 5.10389 6.94934 5.5588 6.94934H11.3247C11.7796 6.94934 12.1484 7.31812 12.1484 7.77304C12.1484 8.22795 11.7796 8.59673 11.3247 8.59673H5.5588C5.10389 8.59673 4.73511 8.22795 4.73511 7.77304ZM4.73505 11.068C4.73505 10.613 5.10383 10.2443 5.55874 10.2443H8.85352C9.30843 10.2443 9.67721 10.613 9.67721 11.068C9.67721 11.5229 9.30843 11.8917 8.85352 11.8917H5.55874C5.10383 11.8917 4.73505 11.5229 4.73505 11.068Z",fill:"currentColor"})})}),Ry=()=>{const{setUniverseQuestionIsOpen:e,setSidebarOpen:t,setShowCollapseButton:n}=zn(o=>({setUniverseQuestionIsOpen:o.setUniverseQuestionIsOpen,setSidebarOpen:o.setSidebarOpen,setShowCollapseButton:o.setShowCollapseButton})),r=()=>{e(),t(!1),n(!1)};return S.jsx(Oy,{color:"secondary",href:"",onClick:r,size:"medium",startIcon:S.jsx(ky,{}),variant:"contained"})},Oy=fe(li)` +`,ky=e=>_.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:_.jsx("g",{id:"Menu icons",children:_.jsx("path",{id:"Union","fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.2669 9.02431C16.2669 13.346 12.7635 16.8494 8.44179 16.8494C7.27934 16.8494 6.1761 16.5959 5.18431 16.1412L1.18187 17.1418C0.90723 17.2105 0.658457 16.9617 0.727118 16.6871L1.66434 12.9382C0.998057 11.7869 0.616699 10.4502 0.616699 9.02431C0.616699 4.70263 4.12011 1.19922 8.44179 1.19922C12.7635 1.19922 16.2669 4.70263 16.2669 9.02431ZM4.73511 7.77304C4.73511 7.31812 5.10389 6.94934 5.5588 6.94934H11.3247C11.7796 6.94934 12.1484 7.31812 12.1484 7.77304C12.1484 8.22795 11.7796 8.59673 11.3247 8.59673H5.5588C5.10389 8.59673 4.73511 8.22795 4.73511 7.77304ZM4.73505 11.068C4.73505 10.613 5.10383 10.2443 5.55874 10.2443H8.85352C9.30843 10.2443 9.67721 10.613 9.67721 11.068C9.67721 11.5229 9.30843 11.8917 8.85352 11.8917H5.55874C5.10383 11.8917 4.73505 11.5229 4.73505 11.068Z",fill:"currentColor"})})}),Ry=()=>{const{setUniverseQuestionIsOpen:e,setSidebarOpen:t,setShowCollapseButton:n}=zn(o=>({setUniverseQuestionIsOpen:o.setUniverseQuestionIsOpen,setSidebarOpen:o.setSidebarOpen,setShowCollapseButton:o.setShowCollapseButton})),r=()=>{e(),t(!1),n(!1)};return _.jsx(Oy,{color:"secondary",href:"",onClick:r,size:"medium",startIcon:_.jsx(ky,{}),variant:"contained"})},Oy=fe(ui)` && { padding: 0; width: 32px; @@ -311,22 +311,50 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho .MuiButton-startIcon { margin-left: 2px; - color: ${xe.white}; + color: ${Q.white}; } } -`,kl=()=>{const e=ma(),t=ya(i=>i.isFetching),n=zn(i=>i.universeQuestionIsOpen),r=va(i=>i.chatInterfaceFeatureFlag),o=Hl();return S.jsxs(Py,{align:"flex-end",id:"actions-toolbar",children:[!t&&!n&&S.jsx(ny,{}),S.jsxs(J,{align:"center",direction:"row",mt:16,children:[!o&&!t&&r&&!n&&S.jsx(Ry,{}),!t&&!n&&S.jsx(fy,{})]}),S.jsx(vy,{},e==null?void 0:e.ref_id)]})},Py=fe(J)` +`,kl=()=>{const e=ma(),t=ya(i=>i.isFetching),n=zn(i=>i.universeQuestionIsOpen),r=va(i=>i.chatInterfaceFeatureFlag),o=Hl();return _.jsxs(Py,{align:"flex-end",id:"actions-toolbar",children:[!t&&!n&&_.jsx(ny,{}),_.jsxs(ee,{align:"center",direction:"row",mt:16,children:[!o&&!t&&r&&!n&&_.jsx(Ry,{}),!t&&!n&&_.jsx(fy,{})]}),_.jsx(vy,{},e==null?void 0:e.ref_id)]})},Py=fe(ee)` position: absolute; right: 20px; bottom: 20px; pointer-events: all; -`,Ay=({twitterHandle:e})=>S.jsx(S.Fragment,{children:S.jsx(J,{direction:"row",children:S.jsx(J,{align:"flex-start",pb:12,children:S.jsxs(Se,{children:["Tweet by @",e]})})})}),Iy=fe(J)(({theme:e})=>({width:"300px",pointerEvents:"auto",background:xe.dashboardHeader,boxShadow:"0px 1px 6px rgba(0, 0, 0, 0.1)",color:xe.primaryText1,maxHeight:"400px",overflowY:"auto",transition:"opacity 0.6s",padding:e.spacing(2,3),[e.breakpoints.down("sm")]:{padding:e.spacing(1,1.5)},"&::-webkit-scrollbar":{width:"3px"},"&::-webkit-scrollbar-track":{borderRadius:"8px",margin:"8px",overflowY:"hidden"}})),Dy=fe(J)` +`,Ay={schemas:[],links:[]},Iy=ti((e,t)=>({...Ay,setSchemas:n=>{e({schemas:n.map(r=>({...r}))})},setSchemaLinks:n=>{e({links:n})},getPrimaryColorByType:n=>{const r=t().schemas.find(o=>o.type===n);return r?r.primary_color:void 0}})),Dy=({type:e})=>{let t;const[n]=Iy(i=>[i.getPrimaryColorByType]),r=e.toLowerCase(),o=n(e);switch(r){case"video":case"twitter_space":case"podcast":case"clip":t={iconStart:"video_badge.svg",color:o??Q.CLIP};break;case"show":t={iconStart:"show_badge.svg",color:o??Q.SHOW};break;case"tweet":t={iconStart:"twitter_badge.svg",color:o??Q.TWEET};break;case"episode":t={iconStart:"audio_badge.svg",color:o??Q.EPISODE};break;case"document":t={iconStart:"notes_badge.svg",color:o??Q.TEXT};break;case"organization":t={iconStart:"organization_badge.svg",color:o??Q.ORGANIZATION};break;case"person":case"guest":case"host":t={iconStart:"person_badge.svg",color:o??Q.PERSON};break;case"event":t={iconStart:"event_badge.svg",color:o??Q.EVENT};break;case"topic":t={iconStart:"topic_badge.svg",color:o??Q.TOPIC};break;default:t={iconStart:"thing_badge.svg",color:o??Q.THING};break}return _.jsx(My,{...t,label:e})},My=({iconStart:e,color:t,label:n})=>_.jsxs(jy,{color:t,label:n,children:[_.jsx("img",{alt:n,className:"badge__img",src:e}),_.jsx("div",{className:"badge__label",children:n})]}),jy=fe(ee).attrs({direction:"row"})` + cursor: pointer; + background: ${({color:e})=>e}; + border-radius: 3px; + overflow: hidden; + justify-content: center; + align-items: center; + padding: 0 4px; + gap: 2px; + + .badge__img { + width: 10px; + height: 10px; + object-fit: contain; + } + + .badge__label { + color: ${({label:e})=>e.toLowerCase()==="topic"?Q.black:Q.white}; + font-family: Barlow; + font-size: 8px; + font-style: normal; + font-weight: 800; + line-height: 14px; + text-transform: uppercase; + line-height: 14px; + letter-spacing: 0.48px; + padding: 0 4px; + } +`,Ly=({twitterHandle:e})=>_.jsx(_.Fragment,{children:_.jsx(ee,{direction:"row",children:_.jsx(ee,{align:"flex-start",pb:12,children:_.jsxs(Ae,{children:["Tweet by @",e]})})})}),Fy=fe(ee)(({theme:e})=>({width:"300px",pointerEvents:"auto",background:Q.dashboardHeader,boxShadow:"0px 1px 6px rgba(0, 0, 0, 0.1)",color:Q.primaryText1,maxHeight:"400px",overflowY:"auto",transition:"opacity 0.6s",padding:e.spacing(2,3),[e.breakpoints.down("sm")]:{padding:e.spacing(1,1.5)},"&::-webkit-scrollbar":{width:"3px"},"&::-webkit-scrollbar-track":{borderRadius:"8px",margin:"8px",overflowY:"hidden"}})),zy=fe(ee)` width: 22.5%; -`,My=({node:e})=>{if(!e)return null;const{node_type:t,show_title:n,episode_title:r,description:o,label:i,text:s,type:a,name:c,twitter_handle:l,image_url:u,guests:f}=e,p=f&&f.length>0,g=p&&typeof f[0]=="object";let m=u;return t==="guest"&&!u&&(m="person_placeholder2.png"),a==="twitter_space"&&(m="twitter_placeholder.png"),t==="topic"?null:S.jsx(Iy,{borderRadius:8,px:24,py:16,children:t==="tweet"?S.jsx(Ay,{twitterHandle:l}):S.jsxs(S.Fragment,{children:[S.jsxs(J,{direction:"row",children:[m&&S.jsx(Dy,{}),S.jsx(J,{align:"flex-start",pb:12,children:S.jsx(Se,{children:t==null?void 0:t.toUpperCase()})})]}),S.jsxs(J,{direction:"row",children:[m&&S.jsx(J,{pr:12,children:S.jsx(Tl,{src:m,type:"person"})}),S.jsxs("div",{children:[(c||i)&&S.jsx(J,{direction:"column",children:c?S.jsx(Se,{children:c}):S.jsxs(S.Fragment,{children:[S.jsx(Se,{children:i}),s&&S.jsx(J,{pt:4,children:S.jsxs(Se,{color:"primaryText1",kind:"tiny",children:["@",s]})})]})}),n&&S.jsx(Se,{color:"primaryText1",kind:"tiny",children:n}),r&&S.jsx(J,{pt:4,children:S.jsx(Se,{color:"primaryText1",kind:"tiny",children:r})}),o&&S.jsx(J,{pt:12,children:S.jsx(Se,{as:"div",kind:"regularBold",children:Jl(o)})}),l&&S.jsx(J,{pt:4,children:S.jsxs(Se,{color:"primaryText1",kind:"tiny",children:["@",l]})}),f&&f.length>0&&S.jsxs(J,{pt:12,children:[S.jsx(Se,{color:"primaryText1",children:"People"}),S.jsx(J,{pt:4,children:S.jsx(Se,{color:"primaryText1",kind:"tiny",children:p&&S.jsxs(J,{pt:12,children:[S.jsx(Se,{children:"Guests:"}),S.jsx(Se,{children:g?f.map(b=>`@${b==null?void 0:b.twitter_handle}`).join(", "):f.join(", ")})]})})})]})]})]})]})})},jy=()=>{const[e,t]=ei(c=>[c.hoveredNode,c.isHovering]),[n,r]=d.useState(!1),[o,i]=d.useState(!1);d.useEffect(()=>{let c=null;return t||o?r(!0):c=setTimeout(()=>r(!1),300),()=>{c&&clearTimeout(c)}},[t,o]);const s=d.useCallback(()=>{i(!0)},[]),a=d.useCallback(()=>{i(!1)},[]);return S.jsxs(Ly,{children:[e&&n&&S.jsx(Fy,{onMouseEnter:s,onMouseLeave:a,children:S.jsx(My,{node:e})}),S.jsx(kl,{})]})},Ly=fe("div")(({theme:e})=>({position:"absolute",zIndex:1,top:0,left:0,userSelect:"none",pointerEvents:"none",display:"flex",justifyContent:"flex-end",alignItems:"flex-start",height:"100%",width:"100%",padding:"16px",overflow:"hidden",[e.breakpoints.down("sm")]:{top:50}})),Fy=fe.div` +`,Ny=({node:e})=>{if(!e)return null;const{node_type:t,show_title:n,episode_title:r,description:o,label:i,text:s,type:a,name:c,twitter_handle:l,image_url:u,guests:f}=e,p=f&&f.length>0,g=p&&typeof f[0]=="object";let m=u;return t==="guest"&&!u&&(m="person_placeholder2.png"),a==="twitter_space"&&(m="twitter_placeholder.png"),t==="topic"?null:_.jsx(Fy,{borderRadius:8,px:24,py:16,children:t==="tweet"?_.jsx(Ly,{twitterHandle:l}):_.jsxs(_.Fragment,{children:[_.jsxs(ee,{direction:"row",children:[m&&_.jsx(zy,{}),_.jsx(ee,{align:"flex-start",pb:12,children:_.jsx(Dy,{type:t})})]}),_.jsxs(ee,{direction:"row",children:[m&&_.jsx(ee,{pr:12,children:_.jsx(Tl,{src:m,type:"person"})}),_.jsxs("div",{children:[(c||i)&&_.jsx(ee,{direction:"column",children:c?_.jsx(Ae,{children:c}):_.jsxs(_.Fragment,{children:[_.jsx(Ae,{children:i}),s&&_.jsx(ee,{pt:4,children:_.jsxs(Ae,{color:"primaryText1",kind:"tiny",children:["@",s]})})]})}),n&&_.jsx(Ae,{color:"primaryText1",kind:"tiny",children:n}),r&&_.jsx(ee,{pt:4,children:_.jsx(Ae,{color:"primaryText1",kind:"tiny",children:r})}),o&&_.jsx(ee,{pt:12,children:_.jsx(Ae,{as:"div",kind:"regularBold",children:Jl(o)})}),l&&_.jsx(ee,{pt:4,children:_.jsxs(Ae,{color:"primaryText1",kind:"tiny",children:["@",l]})}),f&&f.length>0&&_.jsxs(ee,{pt:12,children:[_.jsx(Ae,{color:"primaryText1",children:"People"}),_.jsx(ee,{pt:4,children:_.jsx(Ae,{color:"primaryText1",kind:"tiny",children:p&&_.jsxs(ee,{pt:12,children:[_.jsx(Ae,{children:"Guests:"}),_.jsx(Ae,{children:g?f.map(b=>`@${b==null?void 0:b.twitter_handle}`).join(", "):f.join(", ")})]})})})]})]})]})]})})},Vy=()=>{const[e,t]=ei(c=>[c.hoveredNode,c.isHovering]),[n,r]=d.useState(!1),[o,i]=d.useState(!1);d.useEffect(()=>{let c=null;return t||o?r(!0):c=setTimeout(()=>r(!1),300),()=>{c&&clearTimeout(c)}},[t,o]);const s=d.useCallback(()=>{i(!0)},[]),a=d.useCallback(()=>{i(!1)},[]);return _.jsxs(By,{children:[e&&n&&_.jsx(Wy,{onMouseEnter:s,onMouseLeave:a,children:_.jsx(Ny,{node:e})}),_.jsx(kl,{})]})},By=fe("div")(({theme:e})=>({position:"absolute",zIndex:1,top:0,left:0,userSelect:"none",pointerEvents:"none",display:"flex",justifyContent:"flex-end",alignItems:"flex-start",height:"100%",width:"100%",padding:"16px",overflow:"hidden",[e.breakpoints.down("sm")]:{top:50}})),Wy=fe.div` position: absolute; top: 65px; right: 55px; z-index: 100; -`,zy=()=>{const e=d.useContext(Ul);return e==null?void 0:e.socket},Ny={askedQuestions:null,askedQuestionsAnswers:null,hasQuestionInProgress:!1,hasTeachingInProgress:!1,hasInstagraphInProgress:!1,teachMeAnswer:null,instgraphAnswser:null},Vy=ga(e=>({...Ny,setAskedQuestion:t=>e(n=>({askedQuestions:[...n.askedQuestions||[],t],hasQuestionInProgress:!0})),setAskedQuestionAnswer:t=>e(n=>({askedQuestionsAnswers:[...n.askedQuestionsAnswers||[],t],hasQuestionInProgress:!1})),setHasQuestionInProgress:t=>e({hasQuestionInProgress:t}),setHasTeachingInProgress:t=>e({hasTeachingInProgress:t}),setHasInstagraphInProgress:t=>e({hasInstagraphInProgress:t}),setTeachMeAnswer:t=>e({hasTeachingInProgress:!1,teachMeAnswer:t}),setInstagraphAnswer:t=>{var n,r,o,i;(n=t==null?void 0:t.instagraph)!=null&&n.edges&&((r=t==null?void 0:t.instagraph)!=null&&r.nodes)&&e({hasInstagraphInProgress:!1,instgraphAnswser:{edges:(o=t==null?void 0:t.instagraph)==null?void 0:o.edges,nodes:(i=t==null?void 0:t.instagraph)==null?void 0:i.nodes}})}})),By="0.1.106",Wy=d.lazy(()=>ze(()=>import("./index-375a8c2d.js"),["assets/index-375a8c2d.js","assets/index-21067c9d.js","assets/index-a2878e02.css","assets/index-54401641.js","assets/ClipLoader-19a8277d.js","assets/index-de7da582.js","assets/index.esm-9353033f.js","assets/InfoIcon-473ded19.js","assets/index-0deccf02.js","assets/Tabs-b4885406.js","assets/useSlotProps-f54e8b6d.js","assets/createSvgIcon-b719273b.js"]).then(({SettingsModal:e})=>({default:e}))),Hy=d.lazy(()=>ze(()=>import("./index-29d402d8.js"),["assets/index-29d402d8.js","assets/index-21067c9d.js","assets/index-a2878e02.css","assets/index-54401641.js","assets/index-0deccf02.js","assets/index.esm-9353033f.js","assets/CheckIcon-54252c75.js","assets/ClipLoader-19a8277d.js","assets/index-de7da582.js","assets/InfoIcon-473ded19.js"]).then(({AddContentModal:e})=>({default:e}))),Uy=d.lazy(()=>ze(()=>import("./index-6851ff74.js"),["assets/index-6851ff74.js","assets/index-21067c9d.js","assets/index-a2878e02.css","assets/index-54401641.js","assets/index-0deccf02.js","assets/index.esm-9353033f.js","assets/CheckIcon-54252c75.js","assets/ClipLoader-19a8277d.js","assets/index-f870d337.js","assets/index-aac659dd.js","assets/Stack-dbe00046.js","assets/useSlotProps-f54e8b6d.js","assets/Popover-8ff60b97.js","assets/createSvgIcon-b719273b.js","assets/TextareaAutosize-9f8d1e37.js","assets/index-44e303ef.js","assets/three.module-2ce81f73.js","assets/index-de7da582.js","assets/InfoIcon-473ded19.js","assets/index-64f1c910.js"]).then(({AddItemModal:e})=>({default:e}))),Ky=d.lazy(()=>ze(()=>import("./index-f802a35d.js"),["assets/index-f802a35d.js","assets/index-21067c9d.js","assets/index-a2878e02.css","assets/index-54401641.js","assets/NodeCircleIcon-a8e305b7.js","assets/PlusIcon-c31fb232.js","assets/ClipLoader-19a8277d.js","assets/index.esm-9353033f.js","assets/Popover-8ff60b97.js","assets/useSlotProps-f54e8b6d.js","assets/SearchIcon-d549dd07.js","assets/Stack-dbe00046.js","assets/index-f870d337.js","assets/index-aac659dd.js","assets/createSvgIcon-b719273b.js","assets/TextareaAutosize-9f8d1e37.js","assets/index-de7da582.js","assets/InfoIcon-473ded19.js","assets/DeleteIcon-396521e3.js","assets/index-9a45d929.js","assets/MergeIcon-d047ebb5.js","assets/CheckIcon-54252c75.js","assets/Tabs-b4885406.js"]).then(({SourcesTableModal:e})=>({default:e}))),Gy=d.lazy(()=>ze(()=>import("./index-d66bf21e.js"),["assets/index-d66bf21e.js","assets/index-21067c9d.js","assets/index-a2878e02.css","assets/index-54401641.js","assets/index-de7da582.js","assets/index.esm-9353033f.js","assets/InfoIcon-473ded19.js","assets/index-aac659dd.js","assets/Skeleton-079276a0.js","assets/ClipLoader-19a8277d.js"]).then(({EditNodeNameModal:e})=>({default:e}))),Yy=d.lazy(()=>ze(()=>import("./index-ac7b69fc.js"),["assets/index-ac7b69fc.js","assets/index-21067c9d.js","assets/index-a2878e02.css","assets/index-54401641.js","assets/Skeleton-079276a0.js","assets/ClipLoader-19a8277d.js"]).then(({RemoveNodeModal:e})=>({default:e}))),qy=d.lazy(()=>ze(()=>import("./index-ac3ebd0e.js"),["assets/index-ac3ebd0e.js","assets/index-21067c9d.js","assets/index-a2878e02.css","assets/index-54401641.js","assets/NodeCircleIcon-a8e305b7.js","assets/index-f870d337.js","assets/index-aac659dd.js","assets/Stack-dbe00046.js","assets/useSlotProps-f54e8b6d.js","assets/Popover-8ff60b97.js","assets/createSvgIcon-b719273b.js","assets/TextareaAutosize-9f8d1e37.js","assets/ClipLoader-19a8277d.js"]).then(({AddNodeEdgeModal:e})=>({default:e}))),Xy=d.lazy(()=>ze(()=>import("./index-97de25c0.js"),["assets/index-97de25c0.js","assets/index-21067c9d.js","assets/index-a2878e02.css","assets/index-54401641.js","assets/index-9a45d929.js","assets/NodeCircleIcon-a8e305b7.js","assets/index-f870d337.js","assets/index-aac659dd.js","assets/Stack-dbe00046.js","assets/useSlotProps-f54e8b6d.js","assets/Popover-8ff60b97.js","assets/createSvgIcon-b719273b.js","assets/TextareaAutosize-9f8d1e37.js","assets/ClipLoader-19a8277d.js"]).then(({MergeNodeModal:e})=>({default:e}))),Zy=d.lazy(()=>ze(()=>import("./index-837b4b05.js"),["assets/index-837b4b05.js","assets/index-21067c9d.js","assets/index-a2878e02.css","assets/index-54401641.js","assets/index-de7da582.js","assets/index.esm-9353033f.js","assets/InfoIcon-473ded19.js","assets/index-44e303ef.js","assets/three.module-2ce81f73.js","assets/index-f870d337.js","assets/index-aac659dd.js","assets/Stack-dbe00046.js","assets/useSlotProps-f54e8b6d.js","assets/Popover-8ff60b97.js","assets/createSvgIcon-b719273b.js","assets/TextareaAutosize-9f8d1e37.js","assets/ClipLoader-19a8277d.js","assets/index-64f1c910.js"]).then(({ChangeNodeTypeModal:e})=>({default:e}))),Qy=d.lazy(()=>ze(()=>import("./index-5ef6dc30.js"),["assets/index-5ef6dc30.js","assets/index-21067c9d.js","assets/index-a2878e02.css","assets/index-54401641.js","assets/index-f870d337.js","assets/index-aac659dd.js","assets/Stack-dbe00046.js","assets/useSlotProps-f54e8b6d.js","assets/Popover-8ff60b97.js","assets/createSvgIcon-b719273b.js","assets/TextareaAutosize-9f8d1e37.js","assets/index-de7da582.js","assets/index.esm-9353033f.js","assets/InfoIcon-473ded19.js","assets/ClipLoader-19a8277d.js","assets/DeleteIcon-396521e3.js","assets/PlusIcon-c31fb232.js","assets/index-44e303ef.js","assets/three.module-2ce81f73.js","assets/SwitchBase-f58c5852.js","assets/index-584de0f7.js","assets/AddContentIcon-790a0995.js"]).then(({BlueprintModal:e})=>({default:e}))),Jy=d.lazy(()=>ze(()=>import("./index-73fb50fe.js"),["assets/index-73fb50fe.js","assets/index-21067c9d.js","assets/index-a2878e02.css","assets/index-54401641.js","assets/index-0deccf02.js","assets/index.esm-9353033f.js","assets/index-de7da582.js","assets/InfoIcon-473ded19.js"]).then(({UserFeedBackModal:e})=>({default:e}))),ev=()=>S.jsxs(S.Fragment,{children:[S.jsx(Uy,{}),S.jsx(Hy,{}),S.jsx(Wy,{}),S.jsx(Gy,{}),S.jsx(Yy,{}),S.jsx(Ky,{}),S.jsx(qy,{}),S.jsx(Zy,{}),S.jsx(Qy,{}),S.jsx(Xy,{}),S.jsx(Jy,{})]}),tv=()=>{const e=zn(t=>t.appMetaData);return e?S.jsxs(nv,{children:[S.jsxs(rv,{children:[S.jsx(S.Fragment,{children:e.title&&S.jsx(Se,{className:"title",color:"white",children:e.title})}),S.jsx(Se,{className:"subtitle",children:"Second Brain"})]}),S.jsx(Gl,{})]}):null},nv=fe(J).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` +`,Hy=()=>{const e=d.useContext(Ul);return e==null?void 0:e.socket},Uy={askedQuestions:null,askedQuestionsAnswers:null,hasQuestionInProgress:!1,hasTeachingInProgress:!1,hasInstagraphInProgress:!1,teachMeAnswer:null,instgraphAnswser:null},Ky=ti(e=>({...Uy,setAskedQuestion:t=>e(n=>({askedQuestions:[...n.askedQuestions||[],t],hasQuestionInProgress:!0})),setAskedQuestionAnswer:t=>e(n=>({askedQuestionsAnswers:[...n.askedQuestionsAnswers||[],t],hasQuestionInProgress:!1})),setHasQuestionInProgress:t=>e({hasQuestionInProgress:t}),setHasTeachingInProgress:t=>e({hasTeachingInProgress:t}),setHasInstagraphInProgress:t=>e({hasInstagraphInProgress:t}),setTeachMeAnswer:t=>e({hasTeachingInProgress:!1,teachMeAnswer:t}),setInstagraphAnswer:t=>{var n,r,o,i;(n=t==null?void 0:t.instagraph)!=null&&n.edges&&((r=t==null?void 0:t.instagraph)!=null&&r.nodes)&&e({hasInstagraphInProgress:!1,instgraphAnswser:{edges:(o=t==null?void 0:t.instagraph)==null?void 0:o.edges,nodes:(i=t==null?void 0:t.instagraph)==null?void 0:i.nodes}})}})),Gy="0.1.106",Yy=d.lazy(()=>ze(()=>import("./index-5370554b.js"),["assets/index-5370554b.js","assets/index-f50d1ab5.js","assets/index-a2878e02.css","assets/index-cc30c812.js","assets/ClipLoader-f52b169b.js","assets/index-bd1e0bc6.js","assets/index.esm-22240fd2.js","assets/InfoIcon-89f3f76d.js","assets/index-4f7525f2.js","assets/Tabs-6e4fbac2.js","assets/useSlotProps-f1483ce3.js","assets/createSvgIcon-c64a52be.js"]).then(({SettingsModal:e})=>({default:e}))),qy=d.lazy(()=>ze(()=>import("./index-96aff156.js"),["assets/index-96aff156.js","assets/index-f50d1ab5.js","assets/index-a2878e02.css","assets/index-cc30c812.js","assets/index-4f7525f2.js","assets/index.esm-22240fd2.js","assets/CheckIcon-9f687844.js","assets/ClipLoader-f52b169b.js","assets/index-bd1e0bc6.js","assets/InfoIcon-89f3f76d.js"]).then(({AddContentModal:e})=>({default:e}))),Xy=d.lazy(()=>ze(()=>import("./index-ae125883.js"),["assets/index-ae125883.js","assets/index-f50d1ab5.js","assets/index-a2878e02.css","assets/index-cc30c812.js","assets/index-4f7525f2.js","assets/index.esm-22240fd2.js","assets/CheckIcon-9f687844.js","assets/ClipLoader-f52b169b.js","assets/index-f812334e.js","assets/Stack-a4065033.js","assets/useSlotProps-f1483ce3.js","assets/Popover-a7534715.js","assets/createSvgIcon-c64a52be.js","assets/TextareaAutosize-04e2890c.js","assets/index-44e303ef.js","assets/three.module-2ce81f73.js","assets/index-bd1e0bc6.js","assets/InfoIcon-89f3f76d.js","assets/index-64f1c910.js"]).then(({AddItemModal:e})=>({default:e}))),Zy=d.lazy(()=>ze(()=>import("./index-f330db9f.js"),["assets/index-f330db9f.js","assets/index-f50d1ab5.js","assets/index-a2878e02.css","assets/index-cc30c812.js","assets/NodeCircleIcon-b9d0958d.js","assets/PlusIcon-95ca5a40.js","assets/ClipLoader-f52b169b.js","assets/index.esm-22240fd2.js","assets/Popover-a7534715.js","assets/useSlotProps-f1483ce3.js","assets/SearchIcon-c000717e.js","assets/Stack-a4065033.js","assets/index-f812334e.js","assets/createSvgIcon-c64a52be.js","assets/TextareaAutosize-04e2890c.js","assets/index-bd1e0bc6.js","assets/InfoIcon-89f3f76d.js","assets/DeleteIcon-9461c6b1.js","assets/index-3886dc98.js","assets/MergeIcon-dc64ffd2.js","assets/CheckIcon-9f687844.js","assets/Tabs-6e4fbac2.js"]).then(({SourcesTableModal:e})=>({default:e}))),Qy=d.lazy(()=>ze(()=>import("./index-a904ba63.js"),["assets/index-a904ba63.js","assets/index-f50d1ab5.js","assets/index-a2878e02.css","assets/index-cc30c812.js","assets/index-bd1e0bc6.js","assets/index.esm-22240fd2.js","assets/InfoIcon-89f3f76d.js","assets/Skeleton-6b5d8ec7.js","assets/ClipLoader-f52b169b.js"]).then(({EditNodeNameModal:e})=>({default:e}))),Jy=d.lazy(()=>ze(()=>import("./index-3862aa83.js"),["assets/index-3862aa83.js","assets/index-f50d1ab5.js","assets/index-a2878e02.css","assets/index-cc30c812.js","assets/Skeleton-6b5d8ec7.js","assets/ClipLoader-f52b169b.js"]).then(({RemoveNodeModal:e})=>({default:e}))),ev=d.lazy(()=>ze(()=>import("./index-bd349272.js"),["assets/index-bd349272.js","assets/index-f50d1ab5.js","assets/index-a2878e02.css","assets/index-cc30c812.js","assets/NodeCircleIcon-b9d0958d.js","assets/index-f812334e.js","assets/Stack-a4065033.js","assets/useSlotProps-f1483ce3.js","assets/Popover-a7534715.js","assets/createSvgIcon-c64a52be.js","assets/TextareaAutosize-04e2890c.js","assets/ClipLoader-f52b169b.js"]).then(({AddNodeEdgeModal:e})=>({default:e}))),tv=d.lazy(()=>ze(()=>import("./index-1130cd3a.js"),["assets/index-1130cd3a.js","assets/index-f50d1ab5.js","assets/index-a2878e02.css","assets/index-cc30c812.js","assets/index-3886dc98.js","assets/NodeCircleIcon-b9d0958d.js","assets/index-f812334e.js","assets/Stack-a4065033.js","assets/useSlotProps-f1483ce3.js","assets/Popover-a7534715.js","assets/createSvgIcon-c64a52be.js","assets/TextareaAutosize-04e2890c.js","assets/ClipLoader-f52b169b.js"]).then(({MergeNodeModal:e})=>({default:e}))),nv=d.lazy(()=>ze(()=>import("./index-2ce49eeb.js"),["assets/index-2ce49eeb.js","assets/index-f50d1ab5.js","assets/index-a2878e02.css","assets/index-cc30c812.js","assets/index-bd1e0bc6.js","assets/index.esm-22240fd2.js","assets/InfoIcon-89f3f76d.js","assets/index-44e303ef.js","assets/three.module-2ce81f73.js","assets/index-f812334e.js","assets/Stack-a4065033.js","assets/useSlotProps-f1483ce3.js","assets/Popover-a7534715.js","assets/createSvgIcon-c64a52be.js","assets/TextareaAutosize-04e2890c.js","assets/ClipLoader-f52b169b.js","assets/index-64f1c910.js"]).then(({ChangeNodeTypeModal:e})=>({default:e}))),rv=d.lazy(()=>ze(()=>import("./index-aa6cc2a1.js"),["assets/index-aa6cc2a1.js","assets/index-f50d1ab5.js","assets/index-a2878e02.css","assets/index-cc30c812.js","assets/index-f812334e.js","assets/Stack-a4065033.js","assets/useSlotProps-f1483ce3.js","assets/Popover-a7534715.js","assets/createSvgIcon-c64a52be.js","assets/TextareaAutosize-04e2890c.js","assets/index-bd1e0bc6.js","assets/index.esm-22240fd2.js","assets/InfoIcon-89f3f76d.js","assets/ClipLoader-f52b169b.js","assets/DeleteIcon-9461c6b1.js","assets/PlusIcon-95ca5a40.js","assets/index-44e303ef.js","assets/three.module-2ce81f73.js","assets/SwitchBase-49769912.js","assets/index-26c7ce89.js","assets/AddContentIcon-60d5e19c.js"]).then(({BlueprintModal:e})=>({default:e}))),ov=d.lazy(()=>ze(()=>import("./index-bbc2f2ba.js"),["assets/index-bbc2f2ba.js","assets/index-f50d1ab5.js","assets/index-a2878e02.css","assets/index-cc30c812.js","assets/index-4f7525f2.js","assets/index.esm-22240fd2.js","assets/index-bd1e0bc6.js","assets/InfoIcon-89f3f76d.js"]).then(({UserFeedBackModal:e})=>({default:e}))),iv=()=>_.jsxs(_.Fragment,{children:[_.jsx(Xy,{}),_.jsx(qy,{}),_.jsx(Yy,{}),_.jsx(Qy,{}),_.jsx(Jy,{}),_.jsx(Zy,{}),_.jsx(ev,{}),_.jsx(nv,{}),_.jsx(rv,{}),_.jsx(tv,{}),_.jsx(ov,{})]}),sv=()=>{const e=zn(t=>t.appMetaData);return e?_.jsxs(av,{children:[_.jsxs(cv,{children:[_.jsx(_.Fragment,{children:e.title&&_.jsx(Ae,{className:"title",color:"white",children:e.title})}),_.jsx(Ae,{className:"subtitle",children:"Second Brain"})]}),_.jsx(Gl,{})]}):null},av=fe(ee).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` height: 64px; position: absolute; top: 0px; @@ -335,7 +363,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho transition: opacity 1s; z-index: 99; padding: 20px 23px; -`,rv=fe.div` +`,cv=fe.div` ${Kl.smallOnly` display: none; `} @@ -353,7 +381,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } .subtitle { - color: ${xe.GRAY6}; + color: ${Q.GRAY6}; font-family: Barlow; font-size: 22px; font-style: normal; @@ -362,7 +390,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho letter-spacing: 0.22px; margin-left: 8px; } -`,ov=620,iv=()=>{const e=`(max-width: ${ov}px)`,[t,n]=d.useState(()=>window.matchMedia(e).matches);return d.useEffect(()=>{const r=window.matchMedia(e);n(r.matches);const o=()=>{n(r.matches)};return window.addEventListener("resize",o),()=>r.removeEventListener("change",o)},[e]),t},sv=()=>{const[e,t]=d.useState(!0),n=iv();d.useEffect(()=>{t(!0)},[n]);const r=()=>{t(!1)};return n&&e?S.jsxs(av,{align:"center",direction:"column",justify:"center",onClick:r,children:[S.jsx("img",{alt:"screen",src:"jamboard_kiosk.png"}),S.jsxs(J,{align:"center",direction:"column",justify:"center",children:[S.jsx(mo,{children:"Second Brain is currently"}),S.jsx(mo,{style:{fontWeight:600},children:"optimized for Desktop."}),S.jsx(mo,{children:"Mobile support coming soon."})]}),S.jsx(li,{color:"secondary",onClick:r,variant:"contained",children:"Got It"})]}):null},av=fe(J)` +`,lv=620,uv=()=>{const e=`(max-width: ${lv}px)`,[t,n]=d.useState(()=>window.matchMedia(e).matches);return d.useEffect(()=>{const r=window.matchMedia(e);n(r.matches);const o=()=>{n(r.matches)};return window.addEventListener("resize",o),()=>r.removeEventListener("change",o)},[e]),t},dv=()=>{const[e,t]=d.useState(!0),n=uv();d.useEffect(()=>{t(!0)},[n]);const r=()=>{t(!1)};return n&&e?_.jsxs(fv,{align:"center",direction:"column",justify:"center",onClick:r,children:[_.jsx("img",{alt:"screen",src:"jamboard_kiosk.png"}),_.jsxs(ee,{align:"center",direction:"column",justify:"center",children:[_.jsx(mo,{children:"Second Brain is currently"}),_.jsx(mo,{style:{fontWeight:600},children:"optimized for Desktop."}),_.jsx(mo,{children:"Mobile support coming soon."})]}),_.jsx(ui,{color:"secondary",onClick:r,variant:"contained",children:"Got It"})]}):null},fv=fe(ee)` height: 100vh; width: 100vw; background: rgba(0, 0, 0, 0.75); @@ -372,7 +400,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho top: 0; left: 0; right: 0; -`,mo=fe(Se)` +`,mo=fe(Ae)` color: #fff; text-align: center; font-family: Barlow; @@ -381,7 +409,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho font-weight: 400; line-height: 24px; margin: 1px; -`;function Rl(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ttypeof e=="number"&&!isNaN(e),Nt=e=>typeof e=="string",Ke=e=>typeof e=="function",lr=e=>Nt(e)||Ke(e)?e:null,Yo=e=>d.isValidElement(e)||Nt(e)||Ke(e)||jn(e);function cv(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=r+"px",o.transition=`all ${n}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)})})}function Hr(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:o=!0,collapseDuration:i=300}=e;return function(s){let{children:a,position:c,preventExitTransition:l,done:u,nodeRef:f,isIn:p,playToast:g}=s;const m=r?`${t}--${c}`:t,b=r?`${n}--${c}`:n,w=d.useRef(0);return d.useLayoutEffect(()=>{const v=f.current,y=m.split(" "),C=_=>{_.target===f.current&&(g(),v.removeEventListener("animationend",C),v.removeEventListener("animationcancel",C),w.current===0&&_.type!=="animationcancel"&&v.classList.remove(...y))};v.classList.add(...y),v.addEventListener("animationend",C),v.addEventListener("animationcancel",C)},[]),d.useEffect(()=>{const v=f.current,y=()=>{v.removeEventListener("animationend",y),o?cv(v,u,i):u()};p||(l?y():(w.current=1,v.className+=` ${b}`,v.addEventListener("animationend",y)))},[p]),h.createElement(h.Fragment,null,a)}}function fa(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Me=new Map;let Ln=[];const qo=new Set,lv=e=>qo.forEach(t=>t(e)),Ol=()=>Me.size>0;function Pl(e,t){var n;if(t)return!((n=Me.get(t))==null||!n.isToastActive(e));let r=!1;return Me.forEach(o=>{o.isToastActive(e)&&(r=!0)}),r}function Al(e,t){Yo(e)&&(Ol()||Ln.push({content:e,options:t}),Me.forEach(n=>{n.buildToast(e,t)}))}function pa(e,t){Me.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function uv(e){const{subscribe:t,getSnapshot:n,setProps:r}=d.useRef(function(i){const s=i.containerId||1;return{subscribe(a){const c=function(u,f,p){let g=1,m=0,b=[],w=[],v=[],y=f;const C=new Map,_=new Set,$=()=>{v=Array.from(C.values()),_.forEach(R=>R())},E=R=>{w=R==null?[]:w.filter(F=>F!==R),$()},T=R=>{const{toastId:F,onOpen:j,updateId:z,children:A}=R.props,N=z==null;R.staleId&&C.delete(R.staleId),C.set(F,R),w=[...w,R.props.toastId].filter(L=>L!==R.staleId),$(),p(fa(R,N?"added":"updated")),N&&Ke(j)&&j(d.isValidElement(A)&&A.props)};return{id:u,props:y,observe:R=>(_.add(R),()=>_.delete(R)),toggle:(R,F)=>{C.forEach(j=>{F!=null&&F!==j.props.toastId||Ke(j.toggle)&&j.toggle(R)})},removeToast:E,toasts:C,clearQueue:()=>{m-=b.length,b=[]},buildToast:(R,F)=>{if((ye=>{let{containerId:pe,toastId:re,updateId:le}=ye;const ie=pe?pe!==u:u!==1,Ce=C.has(re)&&le==null;return ie||Ce})(F))return;const{toastId:j,updateId:z,data:A,staleId:N,delay:L}=F,D=()=>{E(j)},V=z==null;V&&m++;const U={...y,style:y.toastStyle,key:g++,...Object.fromEntries(Object.entries(F).filter(ye=>{let[pe,re]=ye;return re!=null})),toastId:j,updateId:z,data:A,closeToast:D,isIn:!1,className:lr(F.className||y.toastClassName),bodyClassName:lr(F.bodyClassName||y.bodyClassName),progressClassName:lr(F.progressClassName||y.progressClassName),autoClose:!F.isLoading&&(Y=F.autoClose,Q=y.autoClose,Y===!1||jn(Y)&&Y>0?Y:Q),deleteToast(){const ye=C.get(j),{onClose:pe,children:re}=ye.props;Ke(pe)&&pe(d.isValidElement(re)&&re.props),p(fa(ye,"removed")),C.delete(j),m--,m<0&&(m=0),b.length>0?T(b.shift()):$()}};var Y,Q;U.closeButton=y.closeButton,F.closeButton===!1||Yo(F.closeButton)?U.closeButton=F.closeButton:F.closeButton===!0&&(U.closeButton=!Yo(y.closeButton)||y.closeButton);let de=R;d.isValidElement(R)&&!Nt(R.type)?de=d.cloneElement(R,{closeToast:D,toastProps:U,data:A}):Ke(R)&&(de=R({closeToast:D,toastProps:U,data:A}));const ne={content:de,props:U,staleId:N};y.limit&&y.limit>0&&m>y.limit&&V?b.push(ne):jn(L)?setTimeout(()=>{T(ne)},L):T(ne)},setProps(R){y=R},setToggle:(R,F)=>{C.get(R).toggle=F},isToastActive:R=>w.some(F=>F===R),getSnapshot:()=>y.newestOnTop?v.reverse():v}}(s,i,lv);Me.set(s,c);const l=c.observe(a);return Ln.forEach(u=>Al(u.content,u.options)),Ln=[],()=>{l(),Me.delete(s)}},setProps(a){var c;(c=Me.get(s))==null||c.setProps(a)},getSnapshot(){var a;return(a=Me.get(s))==null?void 0:a.getSnapshot()}}}(e)).current;r(e);const o=d.useSyncExternalStore(t,n,n);return{getToastToRender:function(i){if(!o)return[];const s=new Map;return o.forEach(a=>{const{position:c}=a.props;s.has(c)||s.set(c,[]),s.get(c).push(a)}),Array.from(s,a=>i(a[0],a[1]))},isToastActive:Pl,count:o==null?void 0:o.length}}function dv(e){const[t,n]=d.useState(!1),[r,o]=d.useState(!1),i=d.useRef(null),s=d.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:a,pauseOnHover:c,closeToast:l,onClick:u,closeOnClick:f}=e;var p,g;function m(){n(!0)}function b(){n(!1)}function w(C){const _=i.current;s.canDrag&&_&&(s.didMove=!0,t&&b(),s.delta=e.draggableDirection==="x"?C.clientX-s.start:C.clientY-s.start,s.start!==C.clientX&&(s.canCloseOnClick=!1),_.style.transform=`translate3d(${e.draggableDirection==="x"?`${s.delta}px, var(--y)`:`0, calc(${s.delta}px + var(--y))`},0)`,_.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function v(){document.removeEventListener("pointermove",w),document.removeEventListener("pointerup",v);const C=i.current;if(s.canDrag&&s.didMove&&C){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return o(!0),e.closeToast(),void e.collapseAll();C.style.transition="transform 0.2s, opacity 0.2s",C.style.removeProperty("transform"),C.style.removeProperty("opacity")}}(g=Me.get((p={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||g.setToggle(p.id,p.fn),d.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||b(),window.addEventListener("focus",m),window.addEventListener("blur",b),()=>{window.removeEventListener("focus",m),window.removeEventListener("blur",b)}},[e.pauseOnFocusLoss]);const y={onPointerDown:function(C){if(e.draggable===!0||e.draggable===C.pointerType){s.didMove=!1,document.addEventListener("pointermove",w),document.addEventListener("pointerup",v);const _=i.current;s.canCloseOnClick=!0,s.canDrag=!0,_.style.transition="none",e.draggableDirection==="x"?(s.start=C.clientX,s.removalDistance=_.offsetWidth*(e.draggablePercent/100)):(s.start=C.clientY,s.removalDistance=_.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(C){const{top:_,bottom:$,left:E,right:T}=i.current.getBoundingClientRect();C.nativeEvent.type!=="touchend"&&e.pauseOnHover&&C.clientX>=E&&C.clientX<=T&&C.clientY>=_&&C.clientY<=$?b():m()}};return a&&c&&(y.onMouseEnter=b,e.stacked||(y.onMouseLeave=m)),f&&(y.onClick=C=>{u&&u(C),s.canCloseOnClick&&l()}),{playToast:m,pauseToast:b,isRunning:t,preventExitTransition:r,toastRef:i,eventHandlers:y}}function fv(e){let{delay:t,isRunning:n,closeToast:r,type:o="default",hide:i,className:s,style:a,controlledProgress:c,progress:l,rtl:u,isIn:f,theme:p}=e;const g=i||c&&l===0,m={...a,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};c&&(m.transform=`scaleX(${l})`);const b=Rt("Toastify__progress-bar",c?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${p}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":u}),w=Ke(s)?s({rtl:u,type:o,defaultClassName:b}):Rt(b,s),v={[c&&l>=1?"onTransitionEnd":"onAnimationEnd"]:c&&l<1?null:()=>{f&&r()}};return h.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":g},h.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${p} Toastify__progress-bar--${o}`}),h.createElement("div",{role:"progressbar","aria-hidden":g?"true":"false","aria-label":"notification timer",className:w,style:m,...v}))}let pv=1;const Il=()=>""+pv++;function hv(e){return e&&(Nt(e.toastId)||jn(e.toastId))?e.toastId:Il()}function On(e,t){return Al(e,t),t.toastId}function Or(e,t){return{...t,type:t&&t.type||e,toastId:hv(t)}}function or(e){return(t,n)=>On(t,Or(e,n))}function ue(e,t){return On(e,Or("default",t))}ue.loading=(e,t)=>On(e,Or("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),ue.promise=function(e,t,n){let r,{pending:o,error:i,success:s}=t;o&&(r=Nt(o)?ue.loading(o,n):ue.loading(o.render,{...n,...o}));const a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(u,f,p)=>{if(f==null)return void ue.dismiss(r);const g={type:u,...a,...n,data:p},m=Nt(f)?{render:f}:f;return r?ue.update(r,{...g,...m}):ue(m.render,{...g,...m}),p},l=Ke(e)?e():e;return l.then(u=>c("success",s,u)).catch(u=>c("error",i,u)),l},ue.success=or("success"),ue.info=or("info"),ue.error=or("error"),ue.warning=or("warning"),ue.warn=ue.warning,ue.dark=(e,t)=>On(e,Or("default",{theme:"dark",...t})),ue.dismiss=function(e){(function(t){var n;if(Ol()){if(t==null||Nt(n=t)||jn(n))Me.forEach(o=>{o.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){var r;(r=Me.get(t.containerId))!=null&&r.removeToast(t.id)||Me.forEach(o=>{o.removeToast(t.id)})}}else Ln=Ln.filter(o=>t!=null&&o.options.toastId!==t)})(e)},ue.clearWaitingQueue=function(e){e===void 0&&(e={}),Me.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},ue.isActive=Pl,ue.update=function(e,t){t===void 0&&(t={});const n=((r,o)=>{var i;let{containerId:s}=o;return(i=Me.get(s||1))==null?void 0:i.toasts.get(r)})(e,t);if(n){const{props:r,content:o}=n,i={delay:100,...r,...t,toastId:t.toastId||e,updateId:Il()};i.toastId!==e&&(i.staleId=e);const s=i.render||o;delete i.render,On(s,i)}},ue.done=e=>{ue.update(e,{progress:1})},ue.onChange=function(e){return qo.add(e),()=>{qo.delete(e)}},ue.play=e=>pa(!0,e),ue.pause=e=>pa(!1,e);const gv=typeof window<"u"?d.useLayoutEffect:d.useEffect,ir=e=>{let{theme:t,type:n,isLoading:r,...o}=e;return h.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...o})},bo={info:function(e){return h.createElement(ir,{...e},h.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return h.createElement(ir,{...e},h.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return h.createElement(ir,{...e},h.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return h.createElement(ir,{...e},h.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return h.createElement("div",{className:"Toastify__spinner"})}},mv=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:o,playToast:i}=dv(e),{closeButton:s,children:a,autoClose:c,onClick:l,type:u,hideProgressBar:f,closeToast:p,transition:g,position:m,className:b,style:w,bodyClassName:v,bodyStyle:y,progressClassName:C,progressStyle:_,updateId:$,role:E,progress:T,rtl:R,toastId:F,deleteToast:j,isIn:z,isLoading:A,closeOnClick:N,theme:L}=e,D=Rt("Toastify__toast",`Toastify__toast-theme--${L}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":R},{"Toastify__toast--close-on-click":N}),V=Ke(b)?b({rtl:R,position:m,type:u,defaultClassName:D}):Rt(D,b),U=function(ne){let{theme:ye,type:pe,isLoading:re,icon:le}=ne,ie=null;const Ce={theme:ye,type:pe};return le===!1||(Ke(le)?ie=le({...Ce,isLoading:re}):d.isValidElement(le)?ie=d.cloneElement(le,Ce):re?ie=bo.spinner():(_e=>_e in bo)(pe)&&(ie=bo[pe](Ce))),ie}(e),Y=!!T||!c,Q={closeToast:p,type:u,theme:L};let de=null;return s===!1||(de=Ke(s)?s(Q):d.isValidElement(s)?d.cloneElement(s,Q):function(ne){let{closeToast:ye,theme:pe,ariaLabel:re="close"}=ne;return h.createElement("button",{className:`Toastify__close-button Toastify__close-button--${pe}`,type:"button",onClick:le=>{le.stopPropagation(),ye(le)},"aria-label":re},h.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},h.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(Q)),h.createElement(g,{isIn:z,done:j,position:m,preventExitTransition:n,nodeRef:r,playToast:i},h.createElement("div",{id:F,onClick:l,"data-in":z,className:V,...o,style:w,ref:r},h.createElement("div",{...z&&{role:E},className:Ke(v)?v({type:u}):Rt("Toastify__toast-body",v),style:y},U!=null&&h.createElement("div",{className:Rt("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!A})},U),h.createElement("div",null,a)),de,h.createElement(fv,{...$&&!Y?{key:`pb-${$}`}:{},rtl:R,theme:L,delay:c,isRunning:t,isIn:z,closeToast:p,hide:f,type:u,style:_,className:C,controlledProgress:Y,progress:T||0})))},Ur=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},bv=Hr(Ur("bounce",!0));Hr(Ur("slide",!0));Hr(Ur("zoom"));Hr(Ur("flip"));const yv={position:"top-right",transition:bv,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function vv(e){let t={...yv,...e};const n=e.stacked,[r,o]=d.useState(!0),i=d.useRef(null),{getToastToRender:s,isToastActive:a,count:c}=uv(t),{className:l,style:u,rtl:f,containerId:p}=t;function g(b){const w=Rt("Toastify__toast-container",`Toastify__toast-container--${b}`,{"Toastify__toast-container--rtl":f});return Ke(l)?l({position:b,rtl:f,defaultClassName:w}):Rt(w,lr(l))}function m(){n&&(o(!0),ue.play())}return gv(()=>{if(n){var b;const w=i.current.querySelectorAll('[data-in="true"]'),v=12,y=(b=t.position)==null?void 0:b.includes("top");let C=0,_=0;Array.from(w).reverse().forEach(($,E)=>{const T=$;T.classList.add("Toastify__toast--stacked"),E>0&&(T.dataset.collapsed=`${r}`),T.dataset.pos||(T.dataset.pos=y?"top":"bot");const R=C*(r?.2:1)+(r?0:v*E);T.style.setProperty("--y",`${y?R:-1*R}px`),T.style.setProperty("--g",`${v}`),T.style.setProperty("--s",""+(1-(r?_:0))),C+=T.offsetHeight,_+=.025})}},[r,c,n]),h.createElement("div",{ref:i,className:"Toastify",id:p,onMouseEnter:()=>{n&&(o(!1),ue.pause())},onMouseLeave:m},s((b,w)=>{const v=w.length?{...u}:{...u,pointerEvents:"none"};return h.createElement("div",{className:g(b),style:v,key:`container-${b}`},w.map(y=>{let{content:C,props:_}=y;return h.createElement(mv,{..._,stacked:n,collapseAll:m,isIn:a(_.toastId,_.containerId),style:_.style,key:`toast-${_.key}`},C)}))}))}const xv=fe(vv)` +`;function Rl(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ttypeof e=="number"&&!isNaN(e),Nt=e=>typeof e=="string",Ke=e=>typeof e=="function",lr=e=>Nt(e)||Ke(e)?e:null,Yo=e=>d.isValidElement(e)||Nt(e)||Ke(e)||jn(e);function pv(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=r+"px",o.transition=`all ${n}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)})})}function Hr(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:o=!0,collapseDuration:i=300}=e;return function(s){let{children:a,position:c,preventExitTransition:l,done:u,nodeRef:f,isIn:p,playToast:g}=s;const m=r?`${t}--${c}`:t,b=r?`${n}--${c}`:n,w=d.useRef(0);return d.useLayoutEffect(()=>{const v=f.current,y=m.split(" "),C=S=>{S.target===f.current&&(g(),v.removeEventListener("animationend",C),v.removeEventListener("animationcancel",C),w.current===0&&S.type!=="animationcancel"&&v.classList.remove(...y))};v.classList.add(...y),v.addEventListener("animationend",C),v.addEventListener("animationcancel",C)},[]),d.useEffect(()=>{const v=f.current,y=()=>{v.removeEventListener("animationend",y),o?pv(v,u,i):u()};p||(l?y():(w.current=1,v.className+=` ${b}`,v.addEventListener("animationend",y)))},[p]),h.createElement(h.Fragment,null,a)}}function pa(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Me=new Map;let Ln=[];const qo=new Set,hv=e=>qo.forEach(t=>t(e)),Ol=()=>Me.size>0;function Pl(e,t){var n;if(t)return!((n=Me.get(t))==null||!n.isToastActive(e));let r=!1;return Me.forEach(o=>{o.isToastActive(e)&&(r=!0)}),r}function Al(e,t){Yo(e)&&(Ol()||Ln.push({content:e,options:t}),Me.forEach(n=>{n.buildToast(e,t)}))}function ha(e,t){Me.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function gv(e){const{subscribe:t,getSnapshot:n,setProps:r}=d.useRef(function(i){const s=i.containerId||1;return{subscribe(a){const c=function(u,f,p){let g=1,m=0,b=[],w=[],v=[],y=f;const C=new Map,S=new Set,E=()=>{v=Array.from(C.values()),S.forEach(R=>R())},$=R=>{w=R==null?[]:w.filter(F=>F!==R),E()},T=R=>{const{toastId:F,onOpen:j,updateId:z,children:A}=R.props,N=z==null;R.staleId&&C.delete(R.staleId),C.set(F,R),w=[...w,R.props.toastId].filter(L=>L!==R.staleId),E(),p(pa(R,N?"added":"updated")),N&&Ke(j)&&j(d.isValidElement(A)&&A.props)};return{id:u,props:y,observe:R=>(S.add(R),()=>S.delete(R)),toggle:(R,F)=>{C.forEach(j=>{F!=null&&F!==j.props.toastId||Ke(j.toggle)&&j.toggle(R)})},removeToast:$,toasts:C,clearQueue:()=>{m-=b.length,b=[]},buildToast:(R,F)=>{if((ve=>{let{containerId:he,toastId:oe,updateId:ue}=ve;const se=he?he!==u:u!==1,Ce=C.has(oe)&&ue==null;return se||Ce})(F))return;const{toastId:j,updateId:z,data:A,staleId:N,delay:L}=F,D=()=>{$(j)},V=z==null;V&&m++;const U={...y,style:y.toastStyle,key:g++,...Object.fromEntries(Object.entries(F).filter(ve=>{let[he,oe]=ve;return oe!=null})),toastId:j,updateId:z,data:A,closeToast:D,isIn:!1,className:lr(F.className||y.toastClassName),bodyClassName:lr(F.bodyClassName||y.bodyClassName),progressClassName:lr(F.progressClassName||y.progressClassName),autoClose:!F.isLoading&&(Y=F.autoClose,J=y.autoClose,Y===!1||jn(Y)&&Y>0?Y:J),deleteToast(){const ve=C.get(j),{onClose:he,children:oe}=ve.props;Ke(he)&&he(d.isValidElement(oe)&&oe.props),p(pa(ve,"removed")),C.delete(j),m--,m<0&&(m=0),b.length>0?T(b.shift()):E()}};var Y,J;U.closeButton=y.closeButton,F.closeButton===!1||Yo(F.closeButton)?U.closeButton=F.closeButton:F.closeButton===!0&&(U.closeButton=!Yo(y.closeButton)||y.closeButton);let pe=R;d.isValidElement(R)&&!Nt(R.type)?pe=d.cloneElement(R,{closeToast:D,toastProps:U,data:A}):Ke(R)&&(pe=R({closeToast:D,toastProps:U,data:A}));const re={content:pe,props:U,staleId:N};y.limit&&y.limit>0&&m>y.limit&&V?b.push(re):jn(L)?setTimeout(()=>{T(re)},L):T(re)},setProps(R){y=R},setToggle:(R,F)=>{C.get(R).toggle=F},isToastActive:R=>w.some(F=>F===R),getSnapshot:()=>y.newestOnTop?v.reverse():v}}(s,i,hv);Me.set(s,c);const l=c.observe(a);return Ln.forEach(u=>Al(u.content,u.options)),Ln=[],()=>{l(),Me.delete(s)}},setProps(a){var c;(c=Me.get(s))==null||c.setProps(a)},getSnapshot(){var a;return(a=Me.get(s))==null?void 0:a.getSnapshot()}}}(e)).current;r(e);const o=d.useSyncExternalStore(t,n,n);return{getToastToRender:function(i){if(!o)return[];const s=new Map;return o.forEach(a=>{const{position:c}=a.props;s.has(c)||s.set(c,[]),s.get(c).push(a)}),Array.from(s,a=>i(a[0],a[1]))},isToastActive:Pl,count:o==null?void 0:o.length}}function mv(e){const[t,n]=d.useState(!1),[r,o]=d.useState(!1),i=d.useRef(null),s=d.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:a,pauseOnHover:c,closeToast:l,onClick:u,closeOnClick:f}=e;var p,g;function m(){n(!0)}function b(){n(!1)}function w(C){const S=i.current;s.canDrag&&S&&(s.didMove=!0,t&&b(),s.delta=e.draggableDirection==="x"?C.clientX-s.start:C.clientY-s.start,s.start!==C.clientX&&(s.canCloseOnClick=!1),S.style.transform=`translate3d(${e.draggableDirection==="x"?`${s.delta}px, var(--y)`:`0, calc(${s.delta}px + var(--y))`},0)`,S.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function v(){document.removeEventListener("pointermove",w),document.removeEventListener("pointerup",v);const C=i.current;if(s.canDrag&&s.didMove&&C){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return o(!0),e.closeToast(),void e.collapseAll();C.style.transition="transform 0.2s, opacity 0.2s",C.style.removeProperty("transform"),C.style.removeProperty("opacity")}}(g=Me.get((p={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||g.setToggle(p.id,p.fn),d.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||b(),window.addEventListener("focus",m),window.addEventListener("blur",b),()=>{window.removeEventListener("focus",m),window.removeEventListener("blur",b)}},[e.pauseOnFocusLoss]);const y={onPointerDown:function(C){if(e.draggable===!0||e.draggable===C.pointerType){s.didMove=!1,document.addEventListener("pointermove",w),document.addEventListener("pointerup",v);const S=i.current;s.canCloseOnClick=!0,s.canDrag=!0,S.style.transition="none",e.draggableDirection==="x"?(s.start=C.clientX,s.removalDistance=S.offsetWidth*(e.draggablePercent/100)):(s.start=C.clientY,s.removalDistance=S.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(C){const{top:S,bottom:E,left:$,right:T}=i.current.getBoundingClientRect();C.nativeEvent.type!=="touchend"&&e.pauseOnHover&&C.clientX>=$&&C.clientX<=T&&C.clientY>=S&&C.clientY<=E?b():m()}};return a&&c&&(y.onMouseEnter=b,e.stacked||(y.onMouseLeave=m)),f&&(y.onClick=C=>{u&&u(C),s.canCloseOnClick&&l()}),{playToast:m,pauseToast:b,isRunning:t,preventExitTransition:r,toastRef:i,eventHandlers:y}}function bv(e){let{delay:t,isRunning:n,closeToast:r,type:o="default",hide:i,className:s,style:a,controlledProgress:c,progress:l,rtl:u,isIn:f,theme:p}=e;const g=i||c&&l===0,m={...a,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};c&&(m.transform=`scaleX(${l})`);const b=Rt("Toastify__progress-bar",c?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${p}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":u}),w=Ke(s)?s({rtl:u,type:o,defaultClassName:b}):Rt(b,s),v={[c&&l>=1?"onTransitionEnd":"onAnimationEnd"]:c&&l<1?null:()=>{f&&r()}};return h.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":g},h.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${p} Toastify__progress-bar--${o}`}),h.createElement("div",{role:"progressbar","aria-hidden":g?"true":"false","aria-label":"notification timer",className:w,style:m,...v}))}let yv=1;const Il=()=>""+yv++;function vv(e){return e&&(Nt(e.toastId)||jn(e.toastId))?e.toastId:Il()}function On(e,t){return Al(e,t),t.toastId}function Or(e,t){return{...t,type:t&&t.type||e,toastId:vv(t)}}function or(e){return(t,n)=>On(t,Or(e,n))}function de(e,t){return On(e,Or("default",t))}de.loading=(e,t)=>On(e,Or("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),de.promise=function(e,t,n){let r,{pending:o,error:i,success:s}=t;o&&(r=Nt(o)?de.loading(o,n):de.loading(o.render,{...n,...o}));const a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(u,f,p)=>{if(f==null)return void de.dismiss(r);const g={type:u,...a,...n,data:p},m=Nt(f)?{render:f}:f;return r?de.update(r,{...g,...m}):de(m.render,{...g,...m}),p},l=Ke(e)?e():e;return l.then(u=>c("success",s,u)).catch(u=>c("error",i,u)),l},de.success=or("success"),de.info=or("info"),de.error=or("error"),de.warning=or("warning"),de.warn=de.warning,de.dark=(e,t)=>On(e,Or("default",{theme:"dark",...t})),de.dismiss=function(e){(function(t){var n;if(Ol()){if(t==null||Nt(n=t)||jn(n))Me.forEach(o=>{o.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){var r;(r=Me.get(t.containerId))!=null&&r.removeToast(t.id)||Me.forEach(o=>{o.removeToast(t.id)})}}else Ln=Ln.filter(o=>t!=null&&o.options.toastId!==t)})(e)},de.clearWaitingQueue=function(e){e===void 0&&(e={}),Me.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},de.isActive=Pl,de.update=function(e,t){t===void 0&&(t={});const n=((r,o)=>{var i;let{containerId:s}=o;return(i=Me.get(s||1))==null?void 0:i.toasts.get(r)})(e,t);if(n){const{props:r,content:o}=n,i={delay:100,...r,...t,toastId:t.toastId||e,updateId:Il()};i.toastId!==e&&(i.staleId=e);const s=i.render||o;delete i.render,On(s,i)}},de.done=e=>{de.update(e,{progress:1})},de.onChange=function(e){return qo.add(e),()=>{qo.delete(e)}},de.play=e=>ha(!0,e),de.pause=e=>ha(!1,e);const xv=typeof window<"u"?d.useLayoutEffect:d.useEffect,ir=e=>{let{theme:t,type:n,isLoading:r,...o}=e;return h.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...o})},bo={info:function(e){return h.createElement(ir,{...e},h.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return h.createElement(ir,{...e},h.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return h.createElement(ir,{...e},h.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return h.createElement(ir,{...e},h.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return h.createElement("div",{className:"Toastify__spinner"})}},wv=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:o,playToast:i}=mv(e),{closeButton:s,children:a,autoClose:c,onClick:l,type:u,hideProgressBar:f,closeToast:p,transition:g,position:m,className:b,style:w,bodyClassName:v,bodyStyle:y,progressClassName:C,progressStyle:S,updateId:E,role:$,progress:T,rtl:R,toastId:F,deleteToast:j,isIn:z,isLoading:A,closeOnClick:N,theme:L}=e,D=Rt("Toastify__toast",`Toastify__toast-theme--${L}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":R},{"Toastify__toast--close-on-click":N}),V=Ke(b)?b({rtl:R,position:m,type:u,defaultClassName:D}):Rt(D,b),U=function(re){let{theme:ve,type:he,isLoading:oe,icon:ue}=re,se=null;const Ce={theme:ve,type:he};return ue===!1||(Ke(ue)?se=ue({...Ce,isLoading:oe}):d.isValidElement(ue)?se=d.cloneElement(ue,Ce):oe?se=bo.spinner():(_e=>_e in bo)(he)&&(se=bo[he](Ce))),se}(e),Y=!!T||!c,J={closeToast:p,type:u,theme:L};let pe=null;return s===!1||(pe=Ke(s)?s(J):d.isValidElement(s)?d.cloneElement(s,J):function(re){let{closeToast:ve,theme:he,ariaLabel:oe="close"}=re;return h.createElement("button",{className:`Toastify__close-button Toastify__close-button--${he}`,type:"button",onClick:ue=>{ue.stopPropagation(),ve(ue)},"aria-label":oe},h.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},h.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(J)),h.createElement(g,{isIn:z,done:j,position:m,preventExitTransition:n,nodeRef:r,playToast:i},h.createElement("div",{id:F,onClick:l,"data-in":z,className:V,...o,style:w,ref:r},h.createElement("div",{...z&&{role:$},className:Ke(v)?v({type:u}):Rt("Toastify__toast-body",v),style:y},U!=null&&h.createElement("div",{className:Rt("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!A})},U),h.createElement("div",null,a)),pe,h.createElement(bv,{...E&&!Y?{key:`pb-${E}`}:{},rtl:R,theme:L,delay:c,isRunning:t,isIn:z,closeToast:p,hide:f,type:u,style:S,className:C,controlledProgress:Y,progress:T||0})))},Ur=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},Ev=Hr(Ur("bounce",!0));Hr(Ur("slide",!0));Hr(Ur("zoom"));Hr(Ur("flip"));const $v={position:"top-right",transition:Ev,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function Cv(e){let t={...$v,...e};const n=e.stacked,[r,o]=d.useState(!0),i=d.useRef(null),{getToastToRender:s,isToastActive:a,count:c}=gv(t),{className:l,style:u,rtl:f,containerId:p}=t;function g(b){const w=Rt("Toastify__toast-container",`Toastify__toast-container--${b}`,{"Toastify__toast-container--rtl":f});return Ke(l)?l({position:b,rtl:f,defaultClassName:w}):Rt(w,lr(l))}function m(){n&&(o(!0),de.play())}return xv(()=>{if(n){var b;const w=i.current.querySelectorAll('[data-in="true"]'),v=12,y=(b=t.position)==null?void 0:b.includes("top");let C=0,S=0;Array.from(w).reverse().forEach((E,$)=>{const T=E;T.classList.add("Toastify__toast--stacked"),$>0&&(T.dataset.collapsed=`${r}`),T.dataset.pos||(T.dataset.pos=y?"top":"bot");const R=C*(r?.2:1)+(r?0:v*$);T.style.setProperty("--y",`${y?R:-1*R}px`),T.style.setProperty("--g",`${v}`),T.style.setProperty("--s",""+(1-(r?S:0))),C+=T.offsetHeight,S+=.025})}},[r,c,n]),h.createElement("div",{ref:i,className:"Toastify",id:p,onMouseEnter:()=>{n&&(o(!1),de.pause())},onMouseLeave:m},s((b,w)=>{const v=w.length?{...u}:{...u,pointerEvents:"none"};return h.createElement("div",{className:g(b),style:v,key:`container-${b}`},w.map(y=>{let{content:C,props:S}=y;return h.createElement(wv,{...S,stacked:n,collapseAll:m,isIn:a(S.toastId,S.containerId),style:S.style,key:`toast-${S.key}`},C)}))}))}const _v=fe(Cv)` .Toastify__toast { background-color: #49c998ff; width: fit-content; @@ -391,18 +419,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } .Toastify__toast-body { background-color: #49c998ff; - color: ${xe.white}; + color: ${Q.white}; font-weight: 500; font-family: 'Barlow'; } .Toastify__close-button { - color: ${xe.white}; + color: ${Q.white}; } .Toastify__progress-bar--error { - background-color: ${xe.primaryRed}; + background-color: ${Q.primaryRed}; } .Toastify__progress-bar--success { - background-color: ${xe.primaryGreen}; + background-color: ${Q.primaryGreen}; } &.Toastify__toast-container--top-right { width: fit-content; @@ -410,15 +438,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho top: 60px; right: 48px; } -`,wv=fe(J)` +`,Sv=fe(ee)` height: 100%; width: 100%; - background-color: ${xe.black}; -`,$v=fe(J)` + background-color: ${Q.black}; +`,Tv=fe(ee)` position: absolute; bottom: 8px; left: 8px; - color: ${xe.white}; + color: ${Q.white}; font-size: 12px; opacity: 0.5; -`,Ev=d.lazy(()=>ze(()=>import("./index-06d04bb9.js"),["assets/index-06d04bb9.js","assets/index-21067c9d.js","assets/index-a2878e02.css","assets/AddContentIcon-790a0995.js"]).then(({MainToolbar:e})=>({default:e}))),Cv=d.lazy(()=>ze(()=>import("./index-7adf0284.js"),["assets/index-7adf0284.js","assets/index-21067c9d.js","assets/index-a2878e02.css","assets/index-584de0f7.js","assets/three.module-2ce81f73.js","assets/TextareaAutosize-9f8d1e37.js","assets/useSlotProps-f54e8b6d.js","assets/index-aac659dd.js","assets/DeleteIcon-396521e3.js","assets/index.esm-9353033f.js","assets/index-c101d01d.js","assets/MergeIcon-d047ebb5.js","assets/PlusIcon-c31fb232.js","assets/Popover-8ff60b97.js","assets/ClipLoader-19a8277d.js"]).then(({Universe:e})=>({default:e}))),_v=d.lazy(()=>ze(()=>import("./index-adad2e25.js").then(e=>e.i),["assets/index-adad2e25.js","assets/index-21067c9d.js","assets/index-a2878e02.css","assets/SearchIcon-d549dd07.js","assets/Stack-dbe00046.js","assets/useSlotProps-f54e8b6d.js","assets/Popover-8ff60b97.js","assets/ClipLoader-19a8277d.js","assets/Skeleton-079276a0.js","assets/PlusIcon-c31fb232.js","assets/index-aac659dd.js","assets/CheckIcon-54252c75.js","assets/SwitchBase-f58c5852.js","assets/createSvgIcon-b719273b.js","assets/index-54401641.js","assets/index-c101d01d.js","assets/index.esm-9353033f.js","assets/InfoIcon-473ded19.js"]).then(({SideBar:e})=>({default:e}))),Sv=()=>{const[e]=Yl(),t=e.get("q"),[n,r]=ql(D=>[D.setBudget,D.setNodeCount]),{setSidebarOpen:o,currentSearch:i,setCurrentSearch:s,setRelevanceSelected:a,setTranscriptOpen:c}=zn(D=>D),l=Vy(D=>D.setTeachMeAnswer),{fetchData:u,setCategoryFilter:f,setAbortRequests:p,addNewNode:g,splashDataLoading:m}=ya(D=>D),{setAiSummaryAnswer:b,getKeyExist:w,aiRefId:v}=Xl(D=>D),y=ba(),[C,_]=va(D=>[D.realtimeGraphFeatureFlag,D.chatInterfaceFeatureFlag]),$=zy(),E=Jb({mode:"onChange"}),{setValue:T}=E;d.useEffect(()=>{T("search",t??""),c(!1),y(null),a(!1),s(t??""),l(""),f(null)},[t,f,s,a,y,l,c,T]),d.useEffect(()=>{(async()=>{await u(n,p),o(!0),i?await Ql(n):y(null)})()},[i,u,n,p,o,y]);const R=d.useCallback(()=>{r("INCREMENT")},[r]),F=d.useCallback(D=>{D.ref_id&&b(D.ref_id,{answer:D.answer,answerLoading:!1})},[b]),j=d.useCallback(D=>{D.ref_id&&b(D.ref_id,{audio_en:D.audio_EN})},[b]),z=d.useCallback(D=>{D.ref_id&&b(D.ref_id,{questions:D.relevant_questions.map(V=>V.question),questionsLoading:!1})},[b]),A=d.useCallback(D=>{D.ref_id&&b(D.ref_id,{sources:D.sources.map(V=>V.ref_id),sourcesLoading:!1})},[b]),N=d.useCallback(D=>{g(D)},[g]),L=d.useCallback(D=>{D.question&&w(v)&&b(v,{answerLoading:!1,entities:D.entities})},[b,w,v]);return d.useEffect(()=>($&&($.connect(),$.on("connect_error",D=>{console.error("Socket connection error:",D)}),$.on("newnode",R),_&&$.on("extractedentitieshook",L),_&&$.on("askquestionhook",F),_&&$.on("relevantquestionshook",z),_&&$.on("answersourceshook",A),C&&$.on("new_node_created",N),_&&$.on("answeraudiohook",j)),()=>{$&&$.off()}),[$,R,N,C,F,_,z,A,L,j]),S.jsxs(S.Fragment,{children:[S.jsx(ey,{}),S.jsx(sv,{}),S.jsx(ul,{hidden:!Zl}),S.jsx(d.Suspense,{fallback:S.jsx("div",{children:"Loading..."}),children:m?null:S.jsxs(wv,{direction:"row",children:[S.jsxs(Fb,{...E,children:[S.jsx(Ev,{}),S.jsx(_v,{}),S.jsx(Cv,{}),S.jsx(jy,{}),S.jsx(tv,{}),S.jsxs($v,{children:["v",By]}),S.jsx(kl,{})]}),S.jsx(ev,{}),S.jsx(xv,{})]})})]})},zv=Object.freeze(Object.defineProperty({__proto__:null,App:Sv},Symbol.toStringTag,{value:"Module"}));export{Tl as A,li as B,cy as C,Fb as F,fy as G,wa as I,jy as O,gy as P,Ai as T,mn as _,Mv as a,jv as b,uu as c,Oi as d,ru as e,qn as f,Br as g,Jb as h,Jl as i,hy as j,ay as k,my as l,yy as m,xa as n,Fv as o,bp as p,du as q,kv as r,tu as s,ue as t,sy as u,eu as v,B as w,Lv as x,zv as y}; +`,kv=d.lazy(()=>ze(()=>import("./index-ce0a9014.js"),["assets/index-ce0a9014.js","assets/index-f50d1ab5.js","assets/index-a2878e02.css","assets/AddContentIcon-60d5e19c.js"]).then(({MainToolbar:e})=>({default:e}))),Rv=d.lazy(()=>ze(()=>import("./index-d9eecfe2.js"),["assets/index-d9eecfe2.js","assets/index-f50d1ab5.js","assets/index-a2878e02.css","assets/index-26c7ce89.js","assets/three.module-2ce81f73.js","assets/TextareaAutosize-04e2890c.js","assets/useSlotProps-f1483ce3.js","assets/DeleteIcon-9461c6b1.js","assets/index.esm-22240fd2.js","assets/index-2818a813.js","assets/MergeIcon-dc64ffd2.js","assets/PlusIcon-95ca5a40.js","assets/Popover-a7534715.js","assets/ClipLoader-f52b169b.js"]).then(({Universe:e})=>({default:e}))),Ov=d.lazy(()=>ze(()=>import("./index-73f6b088.js").then(e=>e.i),["assets/index-73f6b088.js","assets/index-f50d1ab5.js","assets/index-a2878e02.css","assets/SearchIcon-c000717e.js","assets/Stack-a4065033.js","assets/useSlotProps-f1483ce3.js","assets/Popover-a7534715.js","assets/ClipLoader-f52b169b.js","assets/Skeleton-6b5d8ec7.js","assets/PlusIcon-95ca5a40.js","assets/CheckIcon-9f687844.js","assets/SwitchBase-49769912.js","assets/createSvgIcon-c64a52be.js","assets/index-cc30c812.js","assets/index-2818a813.js","assets/index.esm-22240fd2.js","assets/InfoIcon-89f3f76d.js"]).then(({SideBar:e})=>({default:e}))),Pv=()=>{const[e]=Yl(),t=e.get("q"),[n,r]=ql(D=>[D.setBudget,D.setNodeCount]),{setSidebarOpen:o,currentSearch:i,setCurrentSearch:s,setRelevanceSelected:a,setTranscriptOpen:c}=zn(D=>D),l=Ky(D=>D.setTeachMeAnswer),{fetchData:u,setCategoryFilter:f,setAbortRequests:p,addNewNode:g,splashDataLoading:m}=ya(D=>D),{setAiSummaryAnswer:b,getKeyExist:w,aiRefId:v}=Xl(D=>D),y=ba(),[C,S]=va(D=>[D.realtimeGraphFeatureFlag,D.chatInterfaceFeatureFlag]),E=Hy(),$=Jb({mode:"onChange"}),{setValue:T}=$;d.useEffect(()=>{T("search",t??""),c(!1),y(null),a(!1),s(t??""),l(""),f(null)},[t,f,s,a,y,l,c,T]),d.useEffect(()=>{(async()=>{await u(n,p),o(!0),i?await Ql(n):y(null)})()},[i,u,n,p,o,y]);const R=d.useCallback(()=>{r("INCREMENT")},[r]),F=d.useCallback(D=>{D.ref_id&&b(D.ref_id,{answer:D.answer,answerLoading:!1})},[b]),j=d.useCallback(D=>{D.ref_id&&b(D.ref_id,{audio_en:D.audio_EN})},[b]),z=d.useCallback(D=>{D.ref_id&&b(D.ref_id,{questions:D.relevant_questions.map(V=>V.question),questionsLoading:!1})},[b]),A=d.useCallback(D=>{D.ref_id&&b(D.ref_id,{sources:D.sources.map(V=>V.ref_id),sourcesLoading:!1})},[b]),N=d.useCallback(D=>{g(D)},[g]),L=d.useCallback(D=>{D.question&&w(v)&&b(v,{answerLoading:!1,entities:D.entities})},[b,w,v]);return d.useEffect(()=>(E&&(E.connect(),E.on("connect_error",D=>{console.error("Socket connection error:",D)}),E.on("newnode",R),S&&E.on("extractedentitieshook",L),S&&E.on("askquestionhook",F),S&&E.on("relevantquestionshook",z),S&&E.on("answersourceshook",A),C&&E.on("new_node_created",N),S&&E.on("answeraudiohook",j)),()=>{E&&E.off()}),[E,R,N,C,F,S,z,A,L,j]),_.jsxs(_.Fragment,{children:[_.jsx(ey,{}),_.jsx(dv,{}),_.jsx(ul,{hidden:!Zl}),_.jsx(d.Suspense,{fallback:_.jsx("div",{children:"Loading..."}),children:m?null:_.jsxs(Sv,{direction:"row",children:[_.jsxs(Fb,{...$,children:[_.jsx(kv,{}),_.jsx(Ov,{}),_.jsx(Rv,{}),_.jsx(Vy,{}),_.jsx(sv,{}),_.jsxs(Tv,{children:["v",Gy]}),_.jsx(kl,{})]}),_.jsx(iv,{}),_.jsx(_v,{})]})})]})},Hv=Object.freeze(Object.defineProperty({__proto__:null,App:Pv},Symbol.toStringTag,{value:"Module"}));export{Tl as A,ui as B,cy as C,Hv as D,Fb as F,fy as G,wa as I,Vy as O,gy as P,Dy as T,mn as _,Nv as a,Iy as b,Vv as c,uu as d,Pi as e,ru as f,qn as g,Br as h,Jb as i,Jl as j,hy as k,ay as l,my as m,yy as n,xa as o,Wv as p,bp as q,Iv as r,tu as s,du as t,sy as u,eu as v,Ii as w,de as x,B as y,Bv as z}; diff --git a/build/assets/index-f870d337.js b/build/assets/index-f870d337.js deleted file mode 100644 index 9505ea0e6..000000000 --- a/build/assets/index-f870d337.js +++ /dev/null @@ -1,71 +0,0 @@ -import{r as p,$ as Ot,j as f,by as wt,bz as Lt,_ as a,b as ye,g as Ie,s as w,e as O,u as Pe,a as ae,c as ne,d as $e,f as Re,bA as Mt,bB as Ft,bC as ct,k as dt,bm as ut,i as Xe,bD as To,ad as Tt,ag as Nt,o as At,q as je,F as zt}from"./index-21067c9d.js";import{T as Dt}from"./index-aac659dd.js";import{u as fo,a as lo,f as so,i as pt,b as Et,P as No,F as Bt,S as jt}from"./Stack-dbe00046.js";import{a as ft,b as Wt,P as _t,c as Ut}from"./Popover-8ff60b97.js";import{f as xo,s as Ht,d as io,n as Uo,e as bt,I as gt}from"./index-93bc2f63.js";import{i as Ho,o as Fo,u as Vo}from"./useSlotProps-f54e8b6d.js";import{c as Ao}from"./createSvgIcon-b719273b.js";import{T as Vt}from"./TextareaAutosize-9f8d1e37.js";let Ko=0;function Kt(e){const[o,t]=p.useState(e),r=e||o;return p.useEffect(()=>{o==null&&(Ko+=1,t(`mui-${Ko}`))},[o]),r}const qo=Ot["useId".toString()];function zo(e){if(qo!==void 0){const o=qo();return e??o}return Kt(e)}const qt=e=>{const o=p.useRef({});return p.useEffect(()=>{o.current=e}),o.current},Gt=qt;function Xt(e){return e==null||Object.keys(e).length===0}function Yt(e){const{styles:o,defaultTheme:t={}}=e,r=typeof o=="function"?s=>o(Xt(s)?t:s):o;return f.jsx(wt,{styles:r})}function Zt({styles:e,themeId:o,defaultTheme:t={}}){const r=Lt(t),s=typeof e=="function"?e(o&&r[o]||r):e;return f.jsx(Yt,{styles:s})}const Jt=Ao(f.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function Go(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Qt(e={}){const{ignoreAccents:o=!0,ignoreCase:t=!0,limit:r,matchFrom:s="any",stringify:c,trim:d=!1}=e;return(i,{inputValue:b,getOptionLabel:u})=>{let m=d?b.trim():b;t&&(m=m.toLowerCase()),o&&(m=Go(m));const v=m?i.filter($=>{let h=(c||u)($);return t&&(h=h.toLowerCase()),o&&(h=Go(h)),s==="start"?h.indexOf(m)===0:h.indexOf(m)>-1}):i;return typeof r=="number"?v.slice(0,r):v}}function Lo(e,o){for(let t=0;t{var o;return e.current!==null&&((o=e.current.parentElement)==null?void 0:o.contains(document.activeElement))};function tn(e){const{unstable_isActiveElementInListbox:o=on,unstable_classNamePrefix:t="Mui",autoComplete:r=!1,autoHighlight:s=!1,autoSelect:c=!1,blurOnSelect:d=!1,clearOnBlur:i=!e.freeSolo,clearOnEscape:b=!1,componentName:u="useAutocomplete",defaultValue:m=e.multiple?[]:null,disableClearable:v=!1,disableCloseOnSelect:$=!1,disabled:h,disabledItemsFocusable:x=!1,disableListWrap:E=!1,filterOptions:_=en,filterSelectedOptions:R=!1,freeSolo:k=!1,getOptionDisabled:y,getOptionKey:S,getOptionLabel:z=l=>{var n;return(n=l.label)!=null?n:l},groupBy:T,handleHomeEndKeys:L=!e.freeSolo,id:q,includeInputInList:le=!1,inputValue:de,isOptionEqualToValue:oe=(l,n)=>l===n,multiple:M=!1,onChange:J,onClose:G,onHighlightChange:se,onInputChange:Q,onOpen:re,open:U,openOnFocus:F=!1,options:ie,readOnly:Se=!1,selectOnFocus:Le=!e.freeSolo,value:ue}=e,j=zo(q);let ee=z;ee=l=>{const n=z(l);return typeof n!="string"?String(n):n};const fe=p.useRef(!1),We=p.useRef(!0),Z=p.useRef(null),be=p.useRef(null),[Me,Y]=p.useState(null),[H,ze]=p.useState(-1),_e=s?0:-1,te=p.useRef(_e),[P,to]=fo({controlled:ue,default:m,name:u}),[W,xe]=fo({controlled:de,default:"",name:u,state:"inputValue"}),[Fe,ce]=p.useState(!1),Te=p.useCallback((l,n)=>{if(!(M?P.length!(R&&(M?P:[P]).some(n=>n!==null&&oe(l,n)))),{inputValue:Ee&&Ye?"":W,getOptionLabel:ee}):[],he=Gt({filteredOptions:B,value:P,inputValue:W});p.useEffect(()=>{const l=P!==he.value;Fe&&!l||k&&!l||Te(null,P)},[P,Te,Fe,he.value,k]);const Ke=me&&B.length>0&&!Se,qe=xo(l=>{l===-1?Z.current.focus():Me.querySelector(`[data-tag-index="${l}"]`).focus()});p.useEffect(()=>{M&&H>P.length-1&&(ze(-1),qe(-1))},[P,M,H,qe]);function I(l,n){if(!be.current||l<0||l>=B.length)return-1;let g=l;for(;;){const C=be.current.querySelector(`[data-option-index="${g}"]`),K=x?!1:!C||C.disabled||C.getAttribute("aria-disabled")==="true";if(C&&C.hasAttribute("tabindex")&&!K)return g;if(n==="next"?g=(g+1)%B.length:g=(g-1+B.length)%B.length,g===l)return-1}}const D=xo(({event:l,index:n,reason:g="auto"})=>{if(te.current=n,n===-1?Z.current.removeAttribute("aria-activedescendant"):Z.current.setAttribute("aria-activedescendant",`${j}-option-${n}`),se&&se(l,n===-1?null:B[n],g),!be.current)return;const C=be.current.querySelector(`[role="option"].${t}-focused`);C&&(C.classList.remove(`${t}-focused`),C.classList.remove(`${t}-focusVisible`));let K=be.current;if(be.current.getAttribute("role")!=="listbox"&&(K=be.current.parentElement.querySelector('[role="listbox"]')),!K)return;if(n===-1){K.scrollTop=0;return}const pe=be.current.querySelector(`[data-option-index="${n}"]`);if(pe&&(pe.classList.add(`${t}-focused`),g==="keyboard"&&pe.classList.add(`${t}-focusVisible`),K.scrollHeight>K.clientHeight&&g!=="mouse"&&g!=="touch")){const ge=pe,He=K.clientHeight+K.scrollTop,_o=ge.offsetTop+ge.offsetHeight;_o>He?K.scrollTop=_o-K.clientHeight:ge.offsetTop-ge.offsetHeight*(T?1.3:0){if(!N)return;const pe=I((()=>{const ge=B.length-1;if(n==="reset")return _e;if(n==="start")return 0;if(n==="end")return ge;const He=te.current+n;return He<0?He===-1&&le?-1:E&&te.current!==-1||Math.abs(n)>1?0:ge:He>ge?He===ge+1&&le?-1:E||Math.abs(n)>1?ge:0:He})(),g);if(D({index:pe,reason:C,event:l}),r&&n!=="reset")if(pe===-1)Z.current.value=W;else{const ge=ee(B[pe]);Z.current.value=ge,ge.toLowerCase().indexOf(W.toLowerCase())===0&&W.length>0&&Z.current.setSelectionRange(W.length,ge.length)}}),ke=()=>{const l=(n,g)=>{const C=n?ee(n):"",K=g?ee(g):"";return C===K};if(te.current!==-1&&he.filteredOptions&&he.filteredOptions.length!==B.length&&he.inputValue===W&&(M?P.length===he.value.length&&he.value.every((n,g)=>ee(P[g])===ee(n)):l(he.value,P))){const n=he.filteredOptions[te.current];if(n&&B.some(C=>ee(C)===ee(n)))return!0}return!1},Ze=p.useCallback(()=>{if(!N||ke())return;const l=M?P[0]:P;if(B.length===0||l==null){X({diff:"reset"});return}if(be.current){if(l!=null){const n=B[te.current];if(M&&n&&Lo(P,C=>oe(n,C))!==-1)return;const g=Lo(B,C=>oe(C,l));g===-1?X({diff:"reset"}):D({index:g});return}if(te.current>=B.length-1){D({index:B.length-1});return}D({index:te.current})}},[B.length,M?!1:P,R,X,D,N,W,M]),Po=xo(l=>{Ht(be,l),l&&Ze()});p.useEffect(()=>{Ze()},[Ze]);const Ae=l=>{me||(Ne(!0),De(!0),re&&re(l))},Ge=(l,n)=>{me&&(Ne(!1),G&&G(l,n))},Ue=(l,n,g,C)=>{if(M){if(P.length===n.length&&P.every((K,pe)=>K===n[pe]))return}else if(P===n)return;J&&J(l,n,g,C),to(n)},no=p.useRef(!1),eo=(l,n,g="selectOption",C="options")=>{let K=g,pe=n;if(M){pe=Array.isArray(P)?P.slice():[];const ge=Lo(pe,He=>oe(n,He));ge===-1?pe.push(n):C!=="freeSolo"&&(pe.splice(ge,1),K="removeOption")}Te(l,pe),Ue(l,pe,K,{option:n}),!$&&(!l||!l.ctrlKey&&!l.metaKey)&&Ge(l,K),(d===!0||d==="touch"&&no.current||d==="mouse"&&!no.current)&&Z.current.blur()};function go(l,n){if(l===-1)return-1;let g=l;for(;;){if(n==="next"&&g===P.length||n==="previous"&&g===-1)return-1;const C=Me.querySelector(`[data-tag-index="${g}"]`);if(!C||!C.hasAttribute("tabindex")||C.disabled||C.getAttribute("aria-disabled")==="true")g+=n==="next"?1:-1;else return g}}const mo=(l,n)=>{if(!M)return;W===""&&Ge(l,"toggleInput");let g=H;H===-1?W===""&&n==="previous"&&(g=P.length-1):(g+=n==="next"?1:-1,g<0&&(g=0),g===P.length&&(g=-1)),g=go(g,n),ze(g),qe(g)},ho=l=>{fe.current=!0,xe(""),Q&&Q(l,"","clear"),Ue(l,M?[]:null,"clear")},ko=l=>n=>{if(l.onKeyDown&&l.onKeyDown(n),!n.defaultMuiPrevented&&(H!==-1&&["ArrowLeft","ArrowRight"].indexOf(n.key)===-1&&(ze(-1),qe(-1)),n.which!==229))switch(n.key){case"Home":N&&L&&(n.preventDefault(),X({diff:"start",direction:"next",reason:"keyboard",event:n}));break;case"End":N&&L&&(n.preventDefault(),X({diff:"end",direction:"previous",reason:"keyboard",event:n}));break;case"PageUp":n.preventDefault(),X({diff:-Xo,direction:"previous",reason:"keyboard",event:n}),Ae(n);break;case"PageDown":n.preventDefault(),X({diff:Xo,direction:"next",reason:"keyboard",event:n}),Ae(n);break;case"ArrowDown":n.preventDefault(),X({diff:1,direction:"next",reason:"keyboard",event:n}),Ae(n);break;case"ArrowUp":n.preventDefault(),X({diff:-1,direction:"previous",reason:"keyboard",event:n}),Ae(n);break;case"ArrowLeft":mo(n,"previous");break;case"ArrowRight":mo(n,"next");break;case"Enter":if(te.current!==-1&&N){const g=B[te.current],C=y?y(g):!1;if(n.preventDefault(),C)return;eo(n,g,"selectOption"),r&&Z.current.setSelectionRange(Z.current.value.length,Z.current.value.length)}else k&&W!==""&&Ee===!1&&(M&&n.preventDefault(),eo(n,W,"createOption","freeSolo"));break;case"Escape":N?(n.preventDefault(),n.stopPropagation(),Ge(n,"escape")):b&&(W!==""||M&&P.length>0)&&(n.preventDefault(),n.stopPropagation(),ho(n));break;case"Backspace":if(M&&!Se&&W===""&&P.length>0){const g=H===-1?P.length-1:H,C=P.slice();C.splice(g,1),Ue(n,C,"removeOption",{option:P[g]})}break;case"Delete":if(M&&!Se&&W===""&&P.length>0&&H!==-1){const g=H,C=P.slice();C.splice(g,1),Ue(n,C,"removeOption",{option:P[g]})}break}},jo=l=>{ce(!0),F&&!fe.current&&Ae(l)},ro=l=>{if(o(be)){Z.current.focus();return}ce(!1),We.current=!0,fe.current=!1,c&&te.current!==-1&&N?eo(l,B[te.current],"blur"):c&&k&&W!==""?eo(l,W,"blur","freeSolo"):i&&Te(l,P),Ge(l,"blur")},Ce=l=>{const n=l.target.value;W!==n&&(xe(n),De(!1),Q&&Q(l,n,"input")),n===""?!v&&!M&&Ue(l,null,"clear"):Ae(l)},ve=l=>{const n=Number(l.currentTarget.getAttribute("data-option-index"));te.current!==n&&D({event:l,index:n,reason:"mouse"})},Be=l=>{D({event:l,index:Number(l.currentTarget.getAttribute("data-option-index")),reason:"touch"}),no.current=!0},Wo=l=>{const n=Number(l.currentTarget.getAttribute("data-option-index"));eo(l,B[n],"selectOption"),no.current=!1},Ro=l=>n=>{const g=P.slice();g.splice(l,1),Ue(n,g,"removeOption",{option:P[l]})},Oo=l=>{me?Ge(l,"toggleInput"):Ae(l)},wo=l=>{l.currentTarget.contains(l.target)&&l.target.getAttribute("id")!==j&&l.preventDefault()},vo=l=>{l.currentTarget.contains(l.target)&&(Z.current.focus(),Le&&We.current&&Z.current.selectionEnd-Z.current.selectionStart===0&&Z.current.select(),We.current=!1)},co=l=>{!h&&(W===""||!me)&&Oo(l)};let oo=k&&W.length>0;oo=oo||(M?P.length>0:P!==null);let ao=B;return T&&(ao=B.reduce((l,n,g)=>{const C=T(n);return l.length>0&&l[l.length-1].group===C?l[l.length-1].options.push(n):l.push({key:g,index:g,group:C,options:[n]}),l},[])),h&&Fe&&ro(),{getRootProps:(l={})=>a({"aria-owns":Ke?`${j}-listbox`:null},l,{onKeyDown:ko(l),onMouseDown:wo,onClick:vo}),getInputLabelProps:()=>({id:`${j}-label`,htmlFor:j}),getInputProps:()=>({id:j,value:W,onBlur:ro,onFocus:jo,onChange:Ce,onMouseDown:co,"aria-activedescendant":N?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ke?`${j}-listbox`:void 0,"aria-expanded":Ke,autoComplete:"off",ref:Z,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:ho}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Oo}),getTagProps:({index:l})=>a({key:l,"data-tag-index":l,tabIndex:-1},!Se&&{onDelete:Ro(l)}),getListboxProps:()=>({role:"listbox",id:`${j}-listbox`,"aria-labelledby":`${j}-label`,ref:Po,onMouseDown:l=>{l.preventDefault()}}),getOptionProps:({index:l,option:n})=>{var g;const C=(M?P:[P]).some(pe=>pe!=null&&oe(n,pe)),K=y?y(n):!1;return{key:(g=S==null?void 0:S(n))!=null?g:ee(n),tabIndex:-1,role:"option",id:`${j}-option-${l}`,onMouseMove:ve,onClick:Wo,onTouchStart:Be,"data-option-index":l,"aria-disabled":K,"aria-selected":C}},id:j,inputValue:W,value:P,dirty:oo,expanded:N&&Me,popupOpen:N,focused:Fe||H!==-1,anchorEl:Me,setAnchorEl:Y,focusedTag:H,groupedOptions:ao}}function nn(e){return ye("MuiListSubheader",e)}Ie("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const rn=["className","color","component","disableGutters","disableSticky","inset"],an=e=>{const{classes:o,color:t,disableGutters:r,inset:s,disableSticky:c}=e,d={root:["root",t!=="default"&&`color${O(t)}`,!r&&"gutters",s&&"inset",!c&&"sticky"]};return $e(d,nn,o)},ln=w("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.color!=="default"&&o[`color${O(t.color)}`],!t.disableGutters&&o.gutters,t.inset&&o.inset,!t.disableSticky&&o.sticky]}})(({theme:e,ownerState:o})=>a({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},o.color==="primary"&&{color:(e.vars||e).palette.primary.main},o.color==="inherit"&&{color:"inherit"},!o.disableGutters&&{paddingLeft:16,paddingRight:16},o.inset&&{paddingLeft:72},!o.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),mt=p.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiListSubheader"}),{className:s,color:c="default",component:d="li",disableGutters:i=!1,disableSticky:b=!1,inset:u=!1}=r,m=ae(r,rn),v=a({},r,{color:c,component:d,disableGutters:i,disableSticky:b,inset:u}),$=an(v);return f.jsx(ln,a({as:d,className:ne($.root,s),ref:t,ownerState:v},m))});mt.muiSkipListHighlight=!0;const sn=mt,cn=Ao(f.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function dn(e){return ye("MuiChip",e)}const un=Ie("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),V=un,pn=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],fn=e=>{const{classes:o,disabled:t,size:r,color:s,iconColor:c,onDelete:d,clickable:i,variant:b}=e,u={root:["root",b,t&&"disabled",`size${O(r)}`,`color${O(s)}`,i&&"clickable",i&&`clickableColor${O(s)}`,d&&"deletable",d&&`deletableColor${O(s)}`,`${b}${O(s)}`],label:["label",`label${O(r)}`],avatar:["avatar",`avatar${O(r)}`,`avatarColor${O(s)}`],icon:["icon",`icon${O(r)}`,`iconColor${O(c)}`],deleteIcon:["deleteIcon",`deleteIcon${O(r)}`,`deleteIconColor${O(s)}`,`deleteIcon${O(b)}Color${O(s)}`]};return $e(u,dn,o)},bn=w("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e,{color:r,iconColor:s,clickable:c,onDelete:d,size:i,variant:b}=t;return[{[`& .${V.avatar}`]:o.avatar},{[`& .${V.avatar}`]:o[`avatar${O(i)}`]},{[`& .${V.avatar}`]:o[`avatarColor${O(r)}`]},{[`& .${V.icon}`]:o.icon},{[`& .${V.icon}`]:o[`icon${O(i)}`]},{[`& .${V.icon}`]:o[`iconColor${O(s)}`]},{[`& .${V.deleteIcon}`]:o.deleteIcon},{[`& .${V.deleteIcon}`]:o[`deleteIcon${O(i)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIconColor${O(r)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIcon${O(b)}Color${O(r)}`]},o.root,o[`size${O(i)}`],o[`color${O(r)}`],c&&o.clickable,c&&r!=="default"&&o[`clickableColor${O(r)})`],d&&o.deletable,d&&r!=="default"&&o[`deletableColor${O(r)}`],o[b],o[`${b}${O(r)}`]]}})(({theme:e,ownerState:o})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return a({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${V.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${V.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${V.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${V.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${V.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${V.icon}`]:a({marginLeft:5,marginRight:-6},o.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},o.iconColor===o.color&&a({color:e.vars?e.vars.palette.Chip.defaultIconColor:t},o.color!=="default"&&{color:"inherit"})),[`& .${V.deleteIcon}`]:a({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Re(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Re(e.palette.text.primary,.4)}},o.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},o.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[o.color].contrastTextChannel} / 0.7)`:Re(e.palette[o.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[o.color].contrastText}})},o.size==="small"&&{height:24},o.color!=="default"&&{backgroundColor:(e.vars||e).palette[o.color].main,color:(e.vars||e).palette[o.color].contrastText},o.onDelete&&{[`&.${V.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},o.onDelete&&o.color!=="default"&&{[`&.${V.focusVisible}`]:{backgroundColor:(e.vars||e).palette[o.color].dark}})},({theme:e,ownerState:o})=>a({},o.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${V.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},o.clickable&&o.color!=="default"&&{[`&:hover, &.${V.focusVisible}`]:{backgroundColor:(e.vars||e).palette[o.color].dark}}),({theme:e,ownerState:o})=>a({},o.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${V.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${V.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${V.avatar}`]:{marginLeft:4},[`& .${V.avatarSmall}`]:{marginLeft:2},[`& .${V.icon}`]:{marginLeft:4},[`& .${V.iconSmall}`]:{marginLeft:2},[`& .${V.deleteIcon}`]:{marginRight:5},[`& .${V.deleteIconSmall}`]:{marginRight:3}},o.variant==="outlined"&&o.color!=="default"&&{color:(e.vars||e).palette[o.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / 0.7)`:Re(e.palette[o.color].main,.7)}`,[`&.${V.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Re(e.palette[o.color].main,e.palette.action.hoverOpacity)},[`&.${V.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Re(e.palette[o.color].main,e.palette.action.focusOpacity)},[`& .${V.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / 0.7)`:Re(e.palette[o.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[o.color].main}}})),gn=w("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,o)=>{const{ownerState:t}=e,{size:r}=t;return[o.label,o[`label${O(r)}`]]}})(({ownerState:e})=>a({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function Yo(e){return e.key==="Backspace"||e.key==="Delete"}const mn=p.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiChip"}),{avatar:s,className:c,clickable:d,color:i="default",component:b,deleteIcon:u,disabled:m=!1,icon:v,label:$,onClick:h,onDelete:x,onKeyDown:E,onKeyUp:_,size:R="medium",variant:k="filled",tabIndex:y,skipFocusWhenDisabled:S=!1}=r,z=ae(r,pn),T=p.useRef(null),L=io(T,t),q=F=>{F.stopPropagation(),x&&x(F)},le=F=>{F.currentTarget===F.target&&Yo(F)&&F.preventDefault(),E&&E(F)},de=F=>{F.currentTarget===F.target&&(x&&Yo(F)?x(F):F.key==="Escape"&&T.current&&T.current.blur()),_&&_(F)},oe=d!==!1&&h?!0:d,M=oe||x?Uo:b||"div",J=a({},r,{component:M,disabled:m,size:R,color:i,iconColor:p.isValidElement(v)&&v.props.color||i,onDelete:!!x,clickable:oe,variant:k}),G=fn(J),se=M===Uo?a({component:b||"div",focusVisibleClassName:G.focusVisible},x&&{disableRipple:!0}):{};let Q=null;x&&(Q=u&&p.isValidElement(u)?p.cloneElement(u,{className:ne(u.props.className,G.deleteIcon),onClick:q}):f.jsx(cn,{className:ne(G.deleteIcon),onClick:q}));let re=null;s&&p.isValidElement(s)&&(re=p.cloneElement(s,{className:ne(G.avatar,s.props.className)}));let U=null;return v&&p.isValidElement(v)&&(U=p.cloneElement(v,{className:ne(G.icon,v.props.className)})),f.jsxs(bn,a({as:M,className:ne(G.root,c),disabled:oe&&m?!0:void 0,onClick:h,onKeyDown:le,onKeyUp:de,ref:L,tabIndex:S&&m?-1:y,ownerState:J},se,z,{children:[re||U,f.jsx(gn,{className:ne(G.label),ownerState:J,children:$}),Q]}))}),hn=mn;function vn(e){return f.jsx(Zt,a({},e,{defaultTheme:Mt,themeId:Ft}))}function xn(e){return ye("MuiInputBase",e)}const Cn=Ie("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Oe=Cn,yn=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Co=(e,o)=>{const{ownerState:t}=e;return[o.root,t.formControl&&o.formControl,t.startAdornment&&o.adornedStart,t.endAdornment&&o.adornedEnd,t.error&&o.error,t.size==="small"&&o.sizeSmall,t.multiline&&o.multiline,t.color&&o[`color${O(t.color)}`],t.fullWidth&&o.fullWidth,t.hiddenLabel&&o.hiddenLabel]},yo=(e,o)=>{const{ownerState:t}=e;return[o.input,t.size==="small"&&o.inputSizeSmall,t.multiline&&o.inputMultiline,t.type==="search"&&o.inputTypeSearch,t.startAdornment&&o.inputAdornedStart,t.endAdornment&&o.inputAdornedEnd,t.hiddenLabel&&o.inputHiddenLabel]},In=e=>{const{classes:o,color:t,disabled:r,error:s,endAdornment:c,focused:d,formControl:i,fullWidth:b,hiddenLabel:u,multiline:m,readOnly:v,size:$,startAdornment:h,type:x}=e,E={root:["root",`color${O(t)}`,r&&"disabled",s&&"error",b&&"fullWidth",d&&"focused",i&&"formControl",$&&$!=="medium"&&`size${O($)}`,m&&"multiline",h&&"adornedStart",c&&"adornedEnd",u&&"hiddenLabel",v&&"readOnly"],input:["input",r&&"disabled",x==="search"&&"inputTypeSearch",m&&"inputMultiline",$==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",c&&"inputAdornedEnd",v&&"readOnly"]};return $e(E,xn,o)},Io=w("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Co})(({theme:e,ownerState:o})=>a({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Oe.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},o.multiline&&a({padding:"4px 0 5px"},o.size==="small"&&{paddingTop:1}),o.fullWidth&&{width:"100%"})),$o=w("input",{name:"MuiInputBase",slot:"Input",overridesResolver:yo})(({theme:e,ownerState:o})=>{const t=e.palette.mode==="light",r=a({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),s={opacity:"0 !important"},c=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return a({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Oe.formControl} &`]:{"&::-webkit-input-placeholder":s,"&::-moz-placeholder":s,"&:-ms-input-placeholder":s,"&::-ms-input-placeholder":s,"&:focus::-webkit-input-placeholder":c,"&:focus::-moz-placeholder":c,"&:focus:-ms-input-placeholder":c,"&:focus::-ms-input-placeholder":c},[`&.${Oe.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},o.size==="small"&&{paddingTop:1},o.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},o.type==="search"&&{MozAppearance:"textfield"})}),$n=f.jsx(vn,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Sn=p.forwardRef(function(o,t){var r;const s=Pe({props:o,name:"MuiInputBase"}),{"aria-describedby":c,autoComplete:d,autoFocus:i,className:b,components:u={},componentsProps:m={},defaultValue:v,disabled:$,disableInjectingGlobalStyles:h,endAdornment:x,fullWidth:E=!1,id:_,inputComponent:R="input",inputProps:k={},inputRef:y,maxRows:S,minRows:z,multiline:T=!1,name:L,onBlur:q,onChange:le,onClick:de,onFocus:oe,onKeyDown:M,onKeyUp:J,placeholder:G,readOnly:se,renderSuffix:Q,rows:re,slotProps:U={},slots:F={},startAdornment:ie,type:Se="text",value:Le}=s,ue=ae(s,yn),j=k.value!=null?k.value:Le,{current:ee}=p.useRef(j!=null),fe=p.useRef(),We=p.useCallback(N=>{},[]),Z=io(fe,y,k.ref,We),[be,Me]=p.useState(!1),Y=lo(),H=so({props:s,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});H.focused=Y?Y.focused:be,p.useEffect(()=>{!Y&&$&&be&&(Me(!1),q&&q())},[Y,$,be,q]);const ze=Y&&Y.onFilled,_e=Y&&Y.onEmpty,te=p.useCallback(N=>{pt(N)?ze&&ze():_e&&_e()},[ze,_e]);bt(()=>{ee&&te({value:j})},[j,te,ee]);const P=N=>{if(H.disabled){N.stopPropagation();return}oe&&oe(N),k.onFocus&&k.onFocus(N),Y&&Y.onFocus?Y.onFocus(N):Me(!0)},to=N=>{q&&q(N),k.onBlur&&k.onBlur(N),Y&&Y.onBlur?Y.onBlur(N):Me(!1)},W=(N,...B)=>{if(!ee){const he=N.target||fe.current;if(he==null)throw new Error(ct(1));te({value:he.value})}k.onChange&&k.onChange(N,...B),le&&le(N,...B)};p.useEffect(()=>{te(fe.current)},[]);const xe=N=>{fe.current&&N.currentTarget===N.target&&fe.current.focus(),de&&de(N)};let Fe=R,ce=k;T&&Fe==="input"&&(re?ce=a({type:void 0,minRows:re,maxRows:re},ce):ce=a({type:void 0,maxRows:S,minRows:z},ce),Fe=Vt);const Te=N=>{te(N.animationName==="mui-auto-fill-cancel"?fe.current:{value:"x"})};p.useEffect(()=>{Y&&Y.setAdornedStart(!!ie)},[Y,ie]);const me=a({},s,{color:H.color||"primary",disabled:H.disabled,endAdornment:x,error:H.error,focused:H.focused,formControl:Y,fullWidth:E,hiddenLabel:H.hiddenLabel,multiline:T,size:H.size,startAdornment:ie,type:Se}),Ne=In(me),Ye=F.root||u.Root||Io,De=U.root||m.root||{},Ee=F.input||u.Input||$o;return ce=a({},ce,(r=U.input)!=null?r:m.input),f.jsxs(p.Fragment,{children:[!h&&$n,f.jsxs(Ye,a({},De,!Ho(Ye)&&{ownerState:a({},me,De.ownerState)},{ref:t,onClick:xe},ue,{className:ne(Ne.root,De.className,b,se&&"MuiInputBase-readOnly"),children:[ie,f.jsx(Et.Provider,{value:null,children:f.jsx(Ee,a({ownerState:me,"aria-invalid":H.error,"aria-describedby":c,autoComplete:d,autoFocus:i,defaultValue:v,disabled:H.disabled,id:_,onAnimationStart:Te,name:L,placeholder:G,readOnly:se,required:H.required,rows:re,value:j,onKeyDown:M,onKeyUp:J,type:Se},ce,!Ho(Ee)&&{as:Fe,ownerState:a({},me,ce.ownerState)},{ref:Z,className:ne(Ne.input,ce.className,se&&"MuiInputBase-readOnly"),onBlur:to,onChange:W,onFocus:P}))}),x,Q?Q(a({},H,{startAdornment:ie})):null]}))]})}),Do=Sn;function Pn(e){return ye("MuiInput",e)}const kn=a({},Oe,Ie("MuiInput",["root","underline","input"])),Qe=kn;function Rn(e){return ye("MuiOutlinedInput",e)}const On=a({},Oe,Ie("MuiOutlinedInput",["root","notchedOutline","input"])),Ve=On;function wn(e){return ye("MuiFilledInput",e)}const Ln=a({},Oe,Ie("MuiFilledInput",["root","underline","input"])),we=Ln,ht=Ao(f.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Mn(e){return ye("MuiAutocomplete",e)}const Fn=Ie("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),A=Fn;var Zo,Jo;const Tn=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],Nn=["ref"],An=["key"],zn=e=>{const{classes:o,disablePortal:t,expanded:r,focused:s,fullWidth:c,hasClearIcon:d,hasPopupIcon:i,inputFocused:b,popupOpen:u,size:m}=e,v={root:["root",r&&"expanded",s&&"focused",c&&"fullWidth",d&&"hasClearIcon",i&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",b&&"inputFocused"],tag:["tag",`tagSize${O(m)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",t&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return $e(v,Mn,o)},Dn=w("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e,{fullWidth:r,hasClearIcon:s,hasPopupIcon:c,inputFocused:d,size:i}=t;return[{[`& .${A.tag}`]:o.tag},{[`& .${A.tag}`]:o[`tagSize${O(i)}`]},{[`& .${A.inputRoot}`]:o.inputRoot},{[`& .${A.input}`]:o.input},{[`& .${A.input}`]:d&&o.inputFocused},o.root,r&&o.fullWidth,c&&o.hasPopupIcon,s&&o.hasClearIcon]}})(({ownerState:e})=>a({[`&.${A.focused} .${A.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${A.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${A.tag}`]:a({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${A.inputRoot}`]:{flexWrap:"wrap",[`.${A.hasPopupIcon}&, .${A.hasClearIcon}&`]:{paddingRight:26+4},[`.${A.hasPopupIcon}.${A.hasClearIcon}&`]:{paddingRight:52+4},[`& .${A.input}`]:{width:0,minWidth:30}},[`& .${Qe.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Qe.root}.${Oe.sizeSmall}`]:{[`& .${Qe.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Ve.root}`]:{padding:9,[`.${A.hasPopupIcon}&, .${A.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${A.hasPopupIcon}.${A.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${A.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${A.endAdornment}`]:{right:9}},[`& .${Ve.root}.${Oe.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${A.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${we.root}`]:{paddingTop:19,paddingLeft:8,[`.${A.hasPopupIcon}&, .${A.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${A.hasPopupIcon}.${A.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${we.input}`]:{padding:"7px 4px"},[`& .${A.endAdornment}`]:{right:9}},[`& .${we.root}.${Oe.sizeSmall}`]:{paddingBottom:1,[`& .${we.input}`]:{padding:"2.5px 4px"}},[`& .${Oe.hiddenLabel}`]:{paddingTop:8},[`& .${we.root}.${Oe.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${A.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${we.root}.${Oe.hiddenLabel}.${Oe.sizeSmall}`]:{[`& .${A.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${A.input}`]:a({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),En=w("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,o)=>o.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),Bn=w(gt,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,o)=>o.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),jn=w(gt,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},o)=>a({},o.popupIndicator,e.popupOpen&&o.popupIndicatorOpen)})(({ownerState:e})=>a({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),Wn=w(No,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`& .${A.option}`]:o.option},o.popper,t.disablePortal&&o.popperDisablePortal]}})(({theme:e,ownerState:o})=>a({zIndex:(e.vars||e).zIndex.modal},o.disablePortal&&{position:"absolute"})),_n=w(ft,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,o)=>o.paper})(({theme:e})=>a({},e.typography.body1,{overflow:"auto"})),Un=w("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,o)=>o.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Hn=w("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,o)=>o.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Vn=w("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,o)=>o.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${A.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${A.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${A.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Re(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${A.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Re(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${A.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Re(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),Kn=w(sn,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,o)=>o.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),qn=w("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,o)=>o.groupUl})({padding:0,[`& .${A.option}`]:{paddingLeft:24}}),Gn=p.forwardRef(function(o,t){var r,s,c,d;const i=Pe({props:o,name:"MuiAutocomplete"}),{autoComplete:b=!1,autoHighlight:u=!1,autoSelect:m=!1,blurOnSelect:v=!1,ChipProps:$,className:h,clearIcon:x=Zo||(Zo=f.jsx(Jt,{fontSize:"small"})),clearOnBlur:E=!i.freeSolo,clearOnEscape:_=!1,clearText:R="Clear",closeText:k="Close",componentsProps:y={},defaultValue:S=i.multiple?[]:null,disableClearable:z=!1,disableCloseOnSelect:T=!1,disabled:L=!1,disabledItemsFocusable:q=!1,disableListWrap:le=!1,disablePortal:de=!1,filterSelectedOptions:oe=!1,forcePopupIcon:M="auto",freeSolo:J=!1,fullWidth:G=!1,getLimitTagsText:se=n=>`+${n}`,getOptionLabel:Q,groupBy:re,handleHomeEndKeys:U=!i.freeSolo,includeInputInList:F=!1,limitTags:ie=-1,ListboxComponent:Se="ul",ListboxProps:Le,loading:ue=!1,loadingText:j="Loading…",multiple:ee=!1,noOptionsText:fe="No options",openOnFocus:We=!1,openText:Z="Open",PaperComponent:be=ft,PopperComponent:Me=No,popupIcon:Y=Jo||(Jo=f.jsx(ht,{})),readOnly:H=!1,renderGroup:ze,renderInput:_e,renderOption:te,renderTags:P,selectOnFocus:to=!i.freeSolo,size:W="medium",slotProps:xe={}}=i,Fe=ae(i,Tn),{getRootProps:ce,getInputProps:Te,getInputLabelProps:me,getPopupIndicatorProps:Ne,getClearProps:Ye,getTagProps:De,getListboxProps:Ee,getOptionProps:N,value:B,dirty:he,expanded:Ke,id:qe,popupOpen:I,focused:D,focusedTag:X,anchorEl:ke,setAnchorEl:Ze,inputValue:Po,groupedOptions:Ae}=tn(a({},i,{componentName:"Autocomplete"})),Ge=!z&&!L&&he&&!H,Ue=(!J||M===!0)&&M!==!1,{onMouseDown:no}=Te(),{ref:eo}=Le??{},go=Ee(),{ref:mo}=go,ho=ae(go,Nn),ko=io(mo,eo),ro=Q||(n=>{var g;return(g=n.label)!=null?g:n}),Ce=a({},i,{disablePortal:de,expanded:Ke,focused:D,fullWidth:G,getOptionLabel:ro,hasClearIcon:Ge,hasPopupIcon:Ue,inputFocused:X===-1,popupOpen:I,size:W}),ve=zn(Ce);let Be;if(ee&&B.length>0){const n=g=>a({className:ve.tag,disabled:L},De(g));P?Be=P(B,n,Ce):Be=B.map((g,C)=>f.jsx(hn,a({label:ro(g),size:W},n({index:C}),$)))}if(ie>-1&&Array.isArray(Be)){const n=Be.length-ie;!D&&n>0&&(Be=Be.splice(0,ie),Be.push(f.jsx("span",{className:ve.tag,children:se(n)},Be.length)))}const Ro=ze||(n=>f.jsxs("li",{children:[f.jsx(Kn,{className:ve.groupLabel,ownerState:Ce,component:"div",children:n.group}),f.jsx(qn,{className:ve.groupUl,ownerState:Ce,children:n.children})]},n.key)),wo=te||((n,g)=>{const{key:C}=n,K=ae(n,An);return f.jsx("li",a({},K,{children:ro(g)}),C)}),vo=(n,g)=>{const C=N({option:n,index:g});return wo(a({},C,{className:ve.option}),n,{selected:C["aria-selected"],index:g,inputValue:Po},Ce)},co=(r=xe.clearIndicator)!=null?r:y.clearIndicator,oo=(s=xe.paper)!=null?s:y.paper,ao=(c=xe.popper)!=null?c:y.popper,l=(d=xe.popupIndicator)!=null?d:y.popupIndicator;return f.jsxs(p.Fragment,{children:[f.jsx(Dn,a({ref:t,className:ne(ve.root,h),ownerState:Ce},ce(Fe),{children:_e({id:qe,disabled:L,fullWidth:!0,size:W==="small"?"small":void 0,InputLabelProps:me(),InputProps:a({ref:Ze,className:ve.inputRoot,startAdornment:Be,onClick:n=>{n.target===n.currentTarget&&no(n)}},(Ge||Ue)&&{endAdornment:f.jsxs(En,{className:ve.endAdornment,ownerState:Ce,children:[Ge?f.jsx(Bn,a({},Ye(),{"aria-label":R,title:R,ownerState:Ce},co,{className:ne(ve.clearIndicator,co==null?void 0:co.className),children:x})):null,Ue?f.jsx(jn,a({},Ne(),{disabled:L,"aria-label":I?k:Z,title:I?k:Z,ownerState:Ce},l,{className:ne(ve.popupIndicator,l==null?void 0:l.className),children:Y})):null]})}),inputProps:a({className:ve.input,disabled:L,readOnly:H},Te())})})),ke?f.jsx(Wn,a({as:Me,disablePortal:de,style:{width:ke?ke.clientWidth:null},ownerState:Ce,role:"presentation",anchorEl:ke,open:I},ao,{className:ne(ve.popper,ao==null?void 0:ao.className),children:f.jsxs(_n,a({ownerState:Ce,as:be},oo,{className:ne(ve.paper,oo==null?void 0:oo.className),children:[ue&&Ae.length===0?f.jsx(Un,{className:ve.loading,ownerState:Ce,children:j}):null,Ae.length===0&&!J&&!ue?f.jsx(Hn,{className:ve.noOptions,ownerState:Ce,role:"presentation",onMouseDown:n=>{n.preventDefault()},children:fe}):null,Ae.length>0?f.jsx(Vn,a({as:Se,className:ve.listbox,ownerState:Ce},ho,Le,{ref:ko,children:Ae.map((n,g)=>re?Ro({key:n.key,group:n.group,children:n.options.map((C,K)=>vo(C,n.index+K))}):vo(n,g))})):null]}))})):null]})}),Xn=Gn;function Yn(e){return ye("MuiCircularProgress",e)}Ie("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Zn=["className","color","disableShrink","size","style","thickness","value","variant"];let So=e=>e,Qo,et,ot,tt;const Je=44,Jn=dt(Qo||(Qo=So` - 0% { - transform: rotate(0deg); - } - - 100% { - transform: rotate(360deg); - } -`)),Qn=dt(et||(et=So` - 0% { - stroke-dasharray: 1px, 200px; - stroke-dashoffset: 0; - } - - 50% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -15px; - } - - 100% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -125px; - } -`)),er=e=>{const{classes:o,variant:t,color:r,disableShrink:s}=e,c={root:["root",t,`color${O(r)}`],svg:["svg"],circle:["circle",`circle${O(t)}`,s&&"circleDisableShrink"]};return $e(c,Yn,o)},or=w("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,o[t.variant],o[`color${O(t.color)}`]]}})(({ownerState:e,theme:o})=>a({display:"inline-block"},e.variant==="determinate"&&{transition:o.transitions.create("transform")},e.color!=="inherit"&&{color:(o.vars||o).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&ut(ot||(ot=So` - animation: ${0} 1.4s linear infinite; - `),Jn)),tr=w("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,o)=>o.svg})({display:"block"}),nr=w("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.circle,o[`circle${O(t.variant)}`],t.disableShrink&&o.circleDisableShrink]}})(({ownerState:e,theme:o})=>a({stroke:"currentColor"},e.variant==="determinate"&&{transition:o.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&ut(tt||(tt=So` - animation: ${0} 1.4s ease-in-out infinite; - `),Qn)),rr=p.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiCircularProgress"}),{className:s,color:c="primary",disableShrink:d=!1,size:i=40,style:b,thickness:u=3.6,value:m=0,variant:v="indeterminate"}=r,$=ae(r,Zn),h=a({},r,{color:c,disableShrink:d,size:i,thickness:u,value:m,variant:v}),x=er(h),E={},_={},R={};if(v==="determinate"){const k=2*Math.PI*((Je-u)/2);E.strokeDasharray=k.toFixed(3),R["aria-valuenow"]=Math.round(m),E.strokeDashoffset=`${((100-m)/100*k).toFixed(3)}px`,_.transform="rotate(-90deg)"}return f.jsx(or,a({className:ne(x.root,s),style:a({width:i,height:i},_,b),ownerState:h,ref:t,role:"progressbar"},R,$,{children:f.jsx(tr,{className:x.svg,ownerState:h,viewBox:`${Je/2} ${Je/2} ${Je} ${Je}`,children:f.jsx(nr,{className:x.circle,style:E,ownerState:h,cx:Je,cy:Je,r:(Je-u)/2,fill:"none",strokeWidth:u})})}))}),ar=rr,lr=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],sr=e=>{const{classes:o,disableUnderline:t}=e,s=$e({root:["root",!t&&"underline"],input:["input"]},wn,o);return a({},o,s)},ir=w(Io,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[...Co(e,o),!t.disableUnderline&&o.underline]}})(({theme:e,ownerState:o})=>{var t;const r=e.palette.mode==="light",s=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",c=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",d=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return a({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:c,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:d,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:c}},[`&.${we.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:c},[`&.${we.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i}},!o.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(t=(e.vars||e).palette[o.color||"primary"])==null?void 0:t.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${we.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${we.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:s}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${we.disabled}, .${we.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${we.disabled}:before`]:{borderBottomStyle:"dotted"}},o.startAdornment&&{paddingLeft:12},o.endAdornment&&{paddingRight:12},o.multiline&&a({padding:"25px 12px 8px"},o.size==="small"&&{paddingTop:21,paddingBottom:4},o.hiddenLabel&&{paddingTop:16,paddingBottom:17},o.hiddenLabel&&o.size==="small"&&{paddingTop:8,paddingBottom:9}))}),cr=w($o,{name:"MuiFilledInput",slot:"Input",overridesResolver:yo})(({theme:e,ownerState:o})=>a({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},o.size==="small"&&{paddingTop:21,paddingBottom:4},o.hiddenLabel&&{paddingTop:16,paddingBottom:17},o.startAdornment&&{paddingLeft:0},o.endAdornment&&{paddingRight:0},o.hiddenLabel&&o.size==="small"&&{paddingTop:8,paddingBottom:9},o.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),vt=p.forwardRef(function(o,t){var r,s,c,d;const i=Pe({props:o,name:"MuiFilledInput"}),{components:b={},componentsProps:u,fullWidth:m=!1,inputComponent:v="input",multiline:$=!1,slotProps:h,slots:x={},type:E="text"}=i,_=ae(i,lr),R=a({},i,{fullWidth:m,inputComponent:v,multiline:$,type:E}),k=sr(i),y={root:{ownerState:R},input:{ownerState:R}},S=h??u?To(y,h??u):y,z=(r=(s=x.root)!=null?s:b.Root)!=null?r:ir,T=(c=(d=x.input)!=null?d:b.Input)!=null?c:cr;return f.jsx(Do,a({slots:{root:z,input:T},componentsProps:S,fullWidth:m,inputComponent:v,multiline:$,ref:t,type:E},_,{classes:k}))});vt.muiName="Input";const xt=vt;function dr(e){return ye("MuiFormHelperText",e)}const ur=Ie("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),nt=ur;var rt;const pr=["children","className","component","disabled","error","filled","focused","margin","required","variant"],fr=e=>{const{classes:o,contained:t,size:r,disabled:s,error:c,filled:d,focused:i,required:b}=e,u={root:["root",s&&"disabled",c&&"error",r&&`size${O(r)}`,t&&"contained",i&&"focused",d&&"filled",b&&"required"]};return $e(u,dr,o)},br=w("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.size&&o[`size${O(t.size)}`],t.contained&&o.contained,t.filled&&o.filled]}})(({theme:e,ownerState:o})=>a({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${nt.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${nt.error}`]:{color:(e.vars||e).palette.error.main}},o.size==="small"&&{marginTop:4},o.contained&&{marginLeft:14,marginRight:14})),gr=p.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiFormHelperText"}),{children:s,className:c,component:d="p"}=r,i=ae(r,pr),b=lo(),u=so({props:r,muiFormControl:b,states:["variant","size","disabled","error","filled","focused","required"]}),m=a({},r,{component:d,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),v=fr(m);return f.jsx(br,a({as:d,ownerState:m,className:ne(v.root,c),ref:t},i,{children:s===" "?rt||(rt=f.jsx("span",{className:"notranslate",children:"​"})):s}))}),mr=gr;function hr(e){return ye("MuiFormLabel",e)}const vr=Ie("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),bo=vr,xr=["children","className","color","component","disabled","error","filled","focused","required"],Cr=e=>{const{classes:o,color:t,focused:r,disabled:s,error:c,filled:d,required:i}=e,b={root:["root",`color${O(t)}`,s&&"disabled",c&&"error",d&&"filled",r&&"focused",i&&"required"],asterisk:["asterisk",c&&"error"]};return $e(b,hr,o)},yr=w("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},o)=>a({},o.root,e.color==="secondary"&&o.colorSecondary,e.filled&&o.filled)})(({theme:e,ownerState:o})=>a({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${bo.focused}`]:{color:(e.vars||e).palette[o.color].main},[`&.${bo.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${bo.error}`]:{color:(e.vars||e).palette.error.main}})),Ir=w("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,o)=>o.asterisk})(({theme:e})=>({[`&.${bo.error}`]:{color:(e.vars||e).palette.error.main}})),$r=p.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiFormLabel"}),{children:s,className:c,component:d="label"}=r,i=ae(r,xr),b=lo(),u=so({props:r,muiFormControl:b,states:["color","required","focused","disabled","error","filled"]}),m=a({},r,{color:u.color||"primary",component:d,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),v=Cr(m);return f.jsxs(yr,a({as:d,ownerState:m,className:ne(v.root,c),ref:t},i,{children:[s,u.required&&f.jsxs(Ir,{ownerState:m,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]}))}),Sr=$r,Pr=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],kr=e=>{const{classes:o,disableUnderline:t}=e,s=$e({root:["root",!t&&"underline"],input:["input"]},Pn,o);return a({},o,s)},Rr=w(Io,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[...Co(e,o),!t.disableUnderline&&o.underline]}})(({theme:e,ownerState:o})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),a({position:"relative"},o.formControl&&{"label + &":{marginTop:16}},!o.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[o.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Qe.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Qe.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Qe.disabled}, .${Qe.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Qe.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Or=w($o,{name:"MuiInput",slot:"Input",overridesResolver:yo})({}),Ct=p.forwardRef(function(o,t){var r,s,c,d;const i=Pe({props:o,name:"MuiInput"}),{disableUnderline:b,components:u={},componentsProps:m,fullWidth:v=!1,inputComponent:$="input",multiline:h=!1,slotProps:x,slots:E={},type:_="text"}=i,R=ae(i,Pr),k=kr(i),S={root:{ownerState:{disableUnderline:b}}},z=x??m?To(x??m,S):S,T=(r=(s=E.root)!=null?s:u.Root)!=null?r:Rr,L=(c=(d=E.input)!=null?d:u.Input)!=null?c:Or;return f.jsx(Do,a({slots:{root:T,input:L},slotProps:z,fullWidth:v,inputComponent:$,multiline:h,ref:t,type:_},R,{classes:k}))});Ct.muiName="Input";const yt=Ct;function wr(e){return ye("MuiInputLabel",e)}Ie("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Lr=["disableAnimation","margin","shrink","variant","className"],Mr=e=>{const{classes:o,formControl:t,size:r,shrink:s,disableAnimation:c,variant:d,required:i}=e,b={root:["root",t&&"formControl",!c&&"animated",s&&"shrink",r&&r!=="normal"&&`size${O(r)}`,d],asterisk:[i&&"asterisk"]},u=$e(b,wr,o);return a({},o,u)},Fr=w(Sr,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`& .${bo.asterisk}`]:o.asterisk},o.root,t.formControl&&o.formControl,t.size==="small"&&o.sizeSmall,t.shrink&&o.shrink,!t.disableAnimation&&o.animated,t.focused&&o.focused,o[t.variant]]}})(({theme:e,ownerState:o})=>a({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},o.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},o.size==="small"&&{transform:"translate(0, 17px) scale(1)"},o.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!o.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},o.variant==="filled"&&a({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},o.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},o.shrink&&a({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},o.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),o.variant==="outlined"&&a({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},o.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},o.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Tr=p.forwardRef(function(o,t){const r=Pe({name:"MuiInputLabel",props:o}),{disableAnimation:s=!1,shrink:c,className:d}=r,i=ae(r,Lr),b=lo();let u=c;typeof u>"u"&&b&&(u=b.filled||b.focused||b.adornedStart);const m=so({props:r,muiFormControl:b,states:["size","variant","required","focused"]}),v=a({},r,{disableAnimation:s,formControl:b,shrink:u,size:m.size,variant:m.variant,required:m.required,focused:m.focused}),$=Mr(v);return f.jsx(Fr,a({"data-shrink":u,ownerState:v,ref:t,className:ne($.root,d)},i,{classes:$}))}),Nr=Tr,Ar=p.createContext({}),zr=Ar;function Dr(e){return ye("MuiList",e)}Ie("MuiList",["root","padding","dense","subheader"]);const Er=["children","className","component","dense","disablePadding","subheader"],Br=e=>{const{classes:o,disablePadding:t,dense:r,subheader:s}=e;return $e({root:["root",!t&&"padding",r&&"dense",s&&"subheader"]},Dr,o)},jr=w("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,!t.disablePadding&&o.padding,t.dense&&o.dense,t.subheader&&o.subheader]}})(({ownerState:e})=>a({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Wr=p.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiList"}),{children:s,className:c,component:d="ul",dense:i=!1,disablePadding:b=!1,subheader:u}=r,m=ae(r,Er),v=p.useMemo(()=>({dense:i}),[i]),$=a({},r,{component:d,dense:i,disablePadding:b}),h=Br($);return f.jsx(zr.Provider,{value:v,children:f.jsxs(jr,a({as:d,className:ne(h.root,c),ref:t,ownerState:$},m,{children:[u,s]}))})}),_r=Wr,Ur=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Mo(e,o,t){return e===o?e.firstChild:o&&o.nextElementSibling?o.nextElementSibling:t?null:e.firstChild}function at(e,o,t){return e===o?t?e.firstChild:e.lastChild:o&&o.previousElementSibling?o.previousElementSibling:t?null:e.lastChild}function It(e,o){if(o===void 0)return!0;let t=e.innerText;return t===void 0&&(t=e.textContent),t=t.trim().toLowerCase(),t.length===0?!1:o.repeating?t[0]===o.keys[0]:t.indexOf(o.keys.join(""))===0}function uo(e,o,t,r,s,c){let d=!1,i=s(e,o,o?t:!1);for(;i;){if(i===e.firstChild){if(d)return!1;d=!0}const b=r?!1:i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||!It(i,c)||b)i=s(e,i,t);else return i.focus(),!0}return!1}const Hr=p.forwardRef(function(o,t){const{actions:r,autoFocus:s=!1,autoFocusItem:c=!1,children:d,className:i,disabledItemsFocusable:b=!1,disableListWrap:u=!1,onKeyDown:m,variant:v="selectedMenu"}=o,$=ae(o,Ur),h=p.useRef(null),x=p.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});bt(()=>{s&&h.current.focus()},[s]),p.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(y,S)=>{const z=!h.current.style.width;if(y.clientHeight{const S=h.current,z=y.key,T=Fo(S).activeElement;if(z==="ArrowDown")y.preventDefault(),uo(S,T,u,b,Mo);else if(z==="ArrowUp")y.preventDefault(),uo(S,T,u,b,at);else if(z==="Home")y.preventDefault(),uo(S,null,u,b,Mo);else if(z==="End")y.preventDefault(),uo(S,null,u,b,at);else if(z.length===1){const L=x.current,q=z.toLowerCase(),le=performance.now();L.keys.length>0&&(le-L.lastTime>500?(L.keys=[],L.repeating=!0,L.previousKeyMatched=!0):L.repeating&&q!==L.keys[0]&&(L.repeating=!1)),L.lastTime=le,L.keys.push(q);const de=T&&!L.repeating&&It(T,L);L.previousKeyMatched&&(de||uo(S,T,!1,b,Mo,L))?y.preventDefault():L.previousKeyMatched=!1}m&&m(y)},_=io(h,t);let R=-1;p.Children.forEach(d,(y,S)=>{if(!p.isValidElement(y)){R===S&&(R+=1,R>=d.length&&(R=-1));return}y.props.disabled||(v==="selectedMenu"&&y.props.selected||R===-1)&&(R=S),R===S&&(y.props.disabled||y.props.muiSkipListHighlight||y.type.muiSkipListHighlight)&&(R+=1,R>=d.length&&(R=-1))});const k=p.Children.map(d,(y,S)=>{if(S===R){const z={};return c&&(z.autoFocus=!0),y.props.tabIndex===void 0&&v==="selectedMenu"&&(z.tabIndex=0),p.cloneElement(y,z)}return y});return f.jsx(_r,a({role:"menu",ref:_,className:i,onKeyDown:E,tabIndex:s?0:-1},$,{children:k}))}),Vr=Hr;function Kr(e){return ye("MuiMenu",e)}Ie("MuiMenu",["root","paper","list"]);const qr=["onEntering"],Gr=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Xr={vertical:"top",horizontal:"right"},Yr={vertical:"top",horizontal:"left"},Zr=e=>{const{classes:o}=e;return $e({root:["root"],paper:["paper"],list:["list"]},Kr,o)},Jr=w(_t,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,o)=>o.root})({}),Qr=w(Ut,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,o)=>o.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),ea=w(Vr,{name:"MuiMenu",slot:"List",overridesResolver:(e,o)=>o.list})({outline:0}),oa=p.forwardRef(function(o,t){var r,s;const c=Pe({props:o,name:"MuiMenu"}),{autoFocus:d=!0,children:i,className:b,disableAutoFocusItem:u=!1,MenuListProps:m={},onClose:v,open:$,PaperProps:h={},PopoverClasses:x,transitionDuration:E="auto",TransitionProps:{onEntering:_}={},variant:R="selectedMenu",slots:k={},slotProps:y={}}=c,S=ae(c.TransitionProps,qr),z=ae(c,Gr),T=Tt(),L=T.direction==="rtl",q=a({},c,{autoFocus:d,disableAutoFocusItem:u,MenuListProps:m,onEntering:_,PaperProps:h,transitionDuration:E,TransitionProps:S,variant:R}),le=Zr(q),de=d&&!u&&$,oe=p.useRef(null),M=(F,ie)=>{oe.current&&oe.current.adjustStyleForScrollbar(F,T),_&&_(F,ie)},J=F=>{F.key==="Tab"&&(F.preventDefault(),v&&v(F,"tabKeyDown"))};let G=-1;p.Children.map(i,(F,ie)=>{p.isValidElement(F)&&(F.props.disabled||(R==="selectedMenu"&&F.props.selected||G===-1)&&(G=ie))});const se=(r=k.paper)!=null?r:Qr,Q=(s=y.paper)!=null?s:h,re=Vo({elementType:k.root,externalSlotProps:y.root,ownerState:q,className:[le.root,b]}),U=Vo({elementType:se,externalSlotProps:Q,ownerState:q,className:le.paper});return f.jsx(Jr,a({onClose:v,anchorOrigin:{vertical:"bottom",horizontal:L?"right":"left"},transformOrigin:L?Xr:Yr,slots:{paper:se,root:k.root},slotProps:{root:re,paper:U},open:$,ref:t,transitionDuration:E,TransitionProps:a({onEntering:M},S),ownerState:q},z,{classes:x,children:f.jsx(ea,a({onKeyDown:J,actions:oe,autoFocus:d&&(G===-1||u),autoFocusItem:de,variant:R},m,{className:ne(le.list,m.className),children:i}))}))}),ta=oa;function na(e){return ye("MuiNativeSelect",e)}const ra=Ie("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Eo=ra,aa=["className","disabled","error","IconComponent","inputRef","variant"],la=e=>{const{classes:o,variant:t,disabled:r,multiple:s,open:c,error:d}=e,i={select:["select",t,r&&"disabled",s&&"multiple",d&&"error"],icon:["icon",`icon${O(t)}`,c&&"iconOpen",r&&"disabled"]};return $e(i,na,o)},$t=({ownerState:e,theme:o})=>a({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":a({},o.vars?{backgroundColor:`rgba(${o.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:o.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Eo.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(o.vars||o).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(o.vars||o).shape.borderRadius,"&:focus":{borderRadius:(o.vars||o).shape.borderRadius},"&&&":{paddingRight:32}}),sa=w("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Xe,overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.select,o[t.variant],t.error&&o.error,{[`&.${Eo.multiple}`]:o.multiple}]}})($t),St=({ownerState:e,theme:o})=>a({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(o.vars||o).palette.action.active,[`&.${Eo.disabled}`]:{color:(o.vars||o).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),ia=w("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.icon,t.variant&&o[`icon${O(t.variant)}`],t.open&&o.iconOpen]}})(St),ca=p.forwardRef(function(o,t){const{className:r,disabled:s,error:c,IconComponent:d,inputRef:i,variant:b="standard"}=o,u=ae(o,aa),m=a({},o,{disabled:s,variant:b,error:c}),v=la(m);return f.jsxs(p.Fragment,{children:[f.jsx(sa,a({ownerState:m,className:ne(v.select,r),disabled:s,ref:i||t},u)),o.multiple?null:f.jsx(ia,{as:d,ownerState:m,className:v.icon})]})}),da=ca;var lt;const ua=["children","classes","className","label","notched"],pa=w("fieldset",{shouldForwardProp:Xe})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),fa=w("legend",{shouldForwardProp:Xe})(({ownerState:e,theme:o})=>a({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:o.transitions.create("width",{duration:150,easing:o.transitions.easing.easeOut})},e.withLabel&&a({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:o.transitions.create("max-width",{duration:50,easing:o.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:o.transitions.create("max-width",{duration:100,easing:o.transitions.easing.easeOut,delay:50})})));function ba(e){const{className:o,label:t,notched:r}=e,s=ae(e,ua),c=t!=null&&t!=="",d=a({},e,{notched:r,withLabel:c});return f.jsx(pa,a({"aria-hidden":!0,className:o,ownerState:d},s,{children:f.jsx(fa,{ownerState:d,children:c?f.jsx("span",{children:t}):lt||(lt=f.jsx("span",{className:"notranslate",children:"​"}))})}))}const ga=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],ma=e=>{const{classes:o}=e,r=$e({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Rn,o);return a({},o,r)},ha=w(Io,{shouldForwardProp:e=>Xe(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Co})(({theme:e,ownerState:o})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return a({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ve.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ve.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Ve.focused} .${Ve.notchedOutline}`]:{borderColor:(e.vars||e).palette[o.color].main,borderWidth:2},[`&.${Ve.error} .${Ve.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ve.disabled} .${Ve.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},o.startAdornment&&{paddingLeft:14},o.endAdornment&&{paddingRight:14},o.multiline&&a({padding:"16.5px 14px"},o.size==="small"&&{padding:"8.5px 14px"}))}),va=w(ba,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,o)=>o.notchedOutline})(({theme:e})=>{const o=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:o}}),xa=w($o,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:yo})(({theme:e,ownerState:o})=>a({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},o.size==="small"&&{padding:"8.5px 14px"},o.multiline&&{padding:0},o.startAdornment&&{paddingLeft:0},o.endAdornment&&{paddingRight:0})),Pt=p.forwardRef(function(o,t){var r,s,c,d,i;const b=Pe({props:o,name:"MuiOutlinedInput"}),{components:u={},fullWidth:m=!1,inputComponent:v="input",label:$,multiline:h=!1,notched:x,slots:E={},type:_="text"}=b,R=ae(b,ga),k=ma(b),y=lo(),S=so({props:b,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),z=a({},b,{color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:y,fullWidth:m,hiddenLabel:S.hiddenLabel,multiline:h,size:S.size,type:_}),T=(r=(s=E.root)!=null?s:u.Root)!=null?r:ha,L=(c=(d=E.input)!=null?d:u.Input)!=null?c:xa;return f.jsx(Do,a({slots:{root:T,input:L},renderSuffix:q=>f.jsx(va,{ownerState:z,className:k.notchedOutline,label:$!=null&&$!==""&&S.required?i||(i=f.jsxs(p.Fragment,{children:[$," ","*"]})):$,notched:typeof x<"u"?x:!!(q.startAdornment||q.filled||q.focused)}),fullWidth:m,inputComponent:v,multiline:h,ref:t,type:_},R,{classes:a({},k,{notchedOutline:null})}))});Pt.muiName="Input";const kt=Pt;function Ca(e){return ye("MuiSelect",e)}const ya=Ie("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),po=ya;var st;const Ia=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],$a=w("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`&.${po.select}`]:o.select},{[`&.${po.select}`]:o[t.variant]},{[`&.${po.error}`]:o.error},{[`&.${po.multiple}`]:o.multiple}]}})($t,{[`&.${po.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Sa=w("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.icon,t.variant&&o[`icon${O(t.variant)}`],t.open&&o.iconOpen]}})(St),Pa=w("input",{shouldForwardProp:e=>Nt(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,o)=>o.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function it(e,o){return typeof o=="object"&&o!==null?e===o:String(e)===String(o)}function ka(e){return e==null||typeof e=="string"&&!e.trim()}const Ra=e=>{const{classes:o,variant:t,disabled:r,multiple:s,open:c,error:d}=e,i={select:["select",t,r&&"disabled",s&&"multiple",d&&"error"],icon:["icon",`icon${O(t)}`,c&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return $e(i,Ca,o)},Oa=p.forwardRef(function(o,t){var r;const{"aria-describedby":s,"aria-label":c,autoFocus:d,autoWidth:i,children:b,className:u,defaultOpen:m,defaultValue:v,disabled:$,displayEmpty:h,error:x=!1,IconComponent:E,inputRef:_,labelId:R,MenuProps:k={},multiple:y,name:S,onBlur:z,onChange:T,onClose:L,onFocus:q,onOpen:le,open:de,readOnly:oe,renderValue:M,SelectDisplayProps:J={},tabIndex:G,value:se,variant:Q="standard"}=o,re=ae(o,Ia),[U,F]=fo({controlled:se,default:v,name:"Select"}),[ie,Se]=fo({controlled:de,default:m,name:"Select"}),Le=p.useRef(null),ue=p.useRef(null),[j,ee]=p.useState(null),{current:fe}=p.useRef(de!=null),[We,Z]=p.useState(),be=io(t,_),Me=p.useCallback(I=>{ue.current=I,I&&ee(I)},[]),Y=j==null?void 0:j.parentNode;p.useImperativeHandle(be,()=>({focus:()=>{ue.current.focus()},node:Le.current,value:U}),[U]),p.useEffect(()=>{m&&ie&&j&&!fe&&(Z(i?null:Y.clientWidth),ue.current.focus())},[j,i]),p.useEffect(()=>{d&&ue.current.focus()},[d]),p.useEffect(()=>{if(!R)return;const I=Fo(ue.current).getElementById(R);if(I){const D=()=>{getSelection().isCollapsed&&ue.current.focus()};return I.addEventListener("click",D),()=>{I.removeEventListener("click",D)}}},[R]);const H=(I,D)=>{I?le&&le(D):L&&L(D),fe||(Z(i?null:Y.clientWidth),Se(I))},ze=I=>{I.button===0&&(I.preventDefault(),ue.current.focus(),H(!0,I))},_e=I=>{H(!1,I)},te=p.Children.toArray(b),P=I=>{const D=te.find(X=>X.props.value===I.target.value);D!==void 0&&(F(D.props.value),T&&T(I,D))},to=I=>D=>{let X;if(D.currentTarget.hasAttribute("tabindex")){if(y){X=Array.isArray(U)?U.slice():[];const ke=U.indexOf(I.props.value);ke===-1?X.push(I.props.value):X.splice(ke,1)}else X=I.props.value;if(I.props.onClick&&I.props.onClick(D),U!==X&&(F(X),T)){const ke=D.nativeEvent||D,Ze=new ke.constructor(ke.type,ke);Object.defineProperty(Ze,"target",{writable:!0,value:{value:X,name:S}}),T(Ze,I)}y||H(!1,D)}},W=I=>{oe||[" ","ArrowUp","ArrowDown","Enter"].indexOf(I.key)!==-1&&(I.preventDefault(),H(!0,I))},xe=j!==null&&ie,Fe=I=>{!xe&&z&&(Object.defineProperty(I,"target",{writable:!0,value:{value:U,name:S}}),z(I))};delete re["aria-invalid"];let ce,Te;const me=[];let Ne=!1;(pt({value:U})||h)&&(M?ce=M(U):Ne=!0);const Ye=te.map(I=>{if(!p.isValidElement(I))return null;let D;if(y){if(!Array.isArray(U))throw new Error(ct(2));D=U.some(X=>it(X,I.props.value)),D&&Ne&&me.push(I.props.children)}else D=it(U,I.props.value),D&&Ne&&(Te=I.props.children);return p.cloneElement(I,{"aria-selected":D?"true":"false",onClick:to(I),onKeyUp:X=>{X.key===" "&&X.preventDefault(),I.props.onKeyUp&&I.props.onKeyUp(X)},role:"option",selected:D,value:void 0,"data-value":I.props.value})});Ne&&(y?me.length===0?ce=null:ce=me.reduce((I,D,X)=>(I.push(D),X{const{classes:o}=e;return o},Bo={name:"MuiSelect",overridesResolver:(e,o)=>o.root,shouldForwardProp:e=>Xe(e)&&e!=="variant",slot:"Root"},Ta=w(yt,Bo)(""),Na=w(kt,Bo)(""),Aa=w(xt,Bo)(""),Rt=p.forwardRef(function(o,t){const r=Pe({name:"MuiSelect",props:o}),{autoWidth:s=!1,children:c,classes:d={},className:i,defaultOpen:b=!1,displayEmpty:u=!1,IconComponent:m=ht,id:v,input:$,inputProps:h,label:x,labelId:E,MenuProps:_,multiple:R=!1,native:k=!1,onClose:y,onOpen:S,open:z,renderValue:T,SelectDisplayProps:L,variant:q="outlined"}=r,le=ae(r,La),de=k?da:wa,oe=lo(),M=so({props:r,muiFormControl:oe,states:["variant","error"]}),J=M.variant||q,G=a({},r,{variant:J,classes:d}),se=Fa(G),Q=ae(se,Ma),re=$||{standard:f.jsx(Ta,{ownerState:G}),outlined:f.jsx(Na,{label:x,ownerState:G}),filled:f.jsx(Aa,{ownerState:G})}[J],U=io(t,re.ref);return f.jsx(p.Fragment,{children:p.cloneElement(re,a({inputComponent:de,inputProps:a({children:c,error:M.error,IconComponent:m,variant:J,type:void 0,multiple:R},k?{id:v}:{autoWidth:s,defaultOpen:b,displayEmpty:u,labelId:E,MenuProps:_,onClose:y,onOpen:S,open:z,renderValue:T,SelectDisplayProps:a({id:v},L)},h,{classes:h?To(Q,h.classes):Q},$?$.props.inputProps:{})},R&&k&&J==="outlined"?{notched:!0}:{},{ref:U,className:ne(re.props.className,i,se.root)},!$&&{variant:J},le))})});Rt.muiName="Select";const za=Rt;function Da(e){return ye("MuiTextField",e)}Ie("MuiTextField",["root"]);const Ea=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Ba={standard:yt,filled:xt,outlined:kt},ja=e=>{const{classes:o}=e;return $e({root:["root"]},Da,o)},Wa=w(Bt,{name:"MuiTextField",slot:"Root",overridesResolver:(e,o)=>o.root})({}),_a=p.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiTextField"}),{autoComplete:s,autoFocus:c=!1,children:d,className:i,color:b="primary",defaultValue:u,disabled:m=!1,error:v=!1,FormHelperTextProps:$,fullWidth:h=!1,helperText:x,id:E,InputLabelProps:_,inputProps:R,InputProps:k,inputRef:y,label:S,maxRows:z,minRows:T,multiline:L=!1,name:q,onBlur:le,onChange:de,onFocus:oe,placeholder:M,required:J=!1,rows:G,select:se=!1,SelectProps:Q,type:re,value:U,variant:F="outlined"}=r,ie=ae(r,Ea),Se=a({},r,{autoFocus:c,color:b,disabled:m,error:v,fullWidth:h,multiline:L,required:J,select:se,variant:F}),Le=ja(Se),ue={};F==="outlined"&&(_&&typeof _.shrink<"u"&&(ue.notched=_.shrink),ue.label=S),se&&((!Q||!Q.native)&&(ue.id=void 0),ue["aria-describedby"]=void 0);const j=zo(E),ee=x&&j?`${j}-helper-text`:void 0,fe=S&&j?`${j}-label`:void 0,We=Ba[F],Z=f.jsx(We,a({"aria-describedby":ee,autoComplete:s,autoFocus:c,defaultValue:u,fullWidth:h,multiline:L,name:q,rows:G,maxRows:z,minRows:T,type:re,value:U,id:j,inputRef:y,onBlur:le,onChange:de,onFocus:oe,placeholder:M,inputProps:R},ue,k));return f.jsxs(Wa,a({className:ne(Le.root,i),disabled:m,error:v,fullWidth:h,ref:t,required:J,color:b,variant:F,ownerState:Se},ie,{children:[S!=null&&S!==""&&f.jsx(Nr,a({htmlFor:j,id:fe},_,{children:S})),se?f.jsx(za,a({"aria-describedby":ee,id:j,labelId:fe,value:U,input:Z},Q,{children:d})):Z,x&&f.jsx(mr,a({id:ee},$,{children:x}))]}))}),Ua=_a,el={label:"Not Selected",value:"Not Selected"},ol={label:"No Parent",value:"No Parent"},tl=[{label:"number",value:"int"},{label:"string",value:"string"}],nl=[{label:"Corporation",value:"Corporation"},{label:"Event",value:"Event"},{label:"Image",value:"Image"},{label:"Organization",value:"Organization"},{label:"Person",value:"Person"},{label:"Place",value:"Place"},{label:"Project",value:"Project"},{label:"Software",value:"Software"},{label:"Topic",value:"Topic"}],rl=/^[^\s].*$/,Ha={options:[],getOptionLabel:e=>e.label,handleInputChange:e=>e},al=({options:e,onSelect:o,selectedValue:t=null,handleInputChange:r,isLoading:s=!1,autoFocus:c=!1,disabled:d=!1,dataTestId:i,dataId:b})=>{const u=p.useRef(null),[m,v]=p.useState(!1);p.useEffect(()=>{c&&u.current&&(u.current.focus(),v(!0))},[c]);const $=(h,x)=>{o(x)};return f.jsx(jt,{flexGrow:1,spacing:1,children:f.jsx(Xn,{...Ha,autoFocus:!0,autoHighlight:!0,blurOnSelect:!0,"data-testid":b,disableClearable:!0,disabled:d,disablePortal:!0,id:"blur-on-select",ListboxProps:{sx:{backgroundColor:je.DROPDOWN_BG,"&::-webkit-scrollbar":{width:"3px"},"&::-webkit-scrollbar-thumb":{backgroundClip:"padding-box",backgroundColor:je.SCROLL_BAR,borderRadius:"6px"}},ref:u},loading:s,onChange:$,onClose:()=>v(!1),onInputChange:(h,x)=>r==null?void 0:r(x),onOpen:()=>v(!0),open:m,options:e??[],PopperComponent:({children:h,...x})=>f.jsx(No,{...x,placement:"bottom-start",children:h}),renderInput:h=>f.jsx(Va,{inputRef:u,...h,"data-testid":i,InputProps:{...h.InputProps,disableUnderline:!0,endAdornment:f.jsx(f.Fragment,{children:s?f.jsx(ar,{color:"inherit",size:20}):h.InputProps.endAdornment})},size:"medium",variant:"standard"}),renderOption:(h,x)=>f.jsx("li",{...h,children:f.jsxs(zt,{align:"center","data-testid":x.label,direction:"row",grow:1,justify:"space-between",onClick:x==null?void 0:x.action,shrink:1,style:{fontSize:"14px",wordBreak:"break-word"},children:[f.jsx("div",{className:"option",children:x.label!==""?x.label:"Not Selected"}),(x==null?void 0:x.type)&&f.jsx(Dt,{type:x.type})]})}),sx:{"&.MuiAutocomplete-option:hover":{backgroundColor:je.DROPDOWN_HOVER},"&.MuiAutocomplete-option[aria-selected='true']":{backgroundColor:je.DROPDOWN_SELECTED}},value:t||void 0})})},Va=At(Ua)` - && { - z-index: 2; - width: 100%; - color: #fff; - font-size: 15px; - box-shadow: none; - border-radius: 6px; - pointer-events: auto; - background-color: ${je.BG2}; - box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.1); - padding: 0 8px; - - &:focus, - &:active { - color: ${je.white}; - background-color: ${je.BG2_ACTIVE_INPUT}; - outline: 1px solid ${je.primaryBlue}; - } - - &:hover { - background-color: ${je.BG2_ACTIVE_INPUT}; - box-shadow: 0 0 0 1px ${je.primaryBlue}; - } - - &::placeholder { - font-size: 15px; - text-align: left; - font-weight: 500; - line-height: 16px; - letter-spacing: 0em; - font-family: Barlow; - color: ${je.GRAY7}; - } - - .MuiInput-input.MuiInputBase-input { - padding: 8px; - } - - .MuiInput-root { - padding: 0; - } - } -`;export{al as A,Do as I,ol as N,nl as O,Ua as T,tl as a,el as i,rl as n}; diff --git a/build/assets/index.esm-9353033f.js b/build/assets/index.esm-22240fd2.js similarity index 98% rename from build/assets/index.esm-9353033f.js rename to build/assets/index.esm-22240fd2.js index c37cfc495..f3db61d50 100644 --- a/build/assets/index.esm-9353033f.js +++ b/build/assets/index.esm-22240fd2.js @@ -1 +1 @@ -import{R as c}from"./index-21067c9d.js";var d={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},g=c.createContext&&c.createContext(d),i=globalThis&&globalThis.__assign||function(){return i=Object.assign||function(t){for(var e,a=1,r=arguments.length;a{e.apply(this,s)};clearTimeout(t),t=setTimeout(i,o)}return n.clear=()=>{clearTimeout(t)},n}function x(e){return e&&e.ownerDocument||document}function T(e){return x(e).defaultView||window}function N(e){return typeof e=="string"}function k(e,o,t){return e===void 0||N(e)?o:r({},o,{ownerState:r({},o.ownerState,t)})}function E(e,o=[]){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!o.includes(n)).forEach(n=>{t[n]=e[n]}),t}function H(e,o,t){return typeof e=="function"?e(o,t):e}function P(e){var o,t,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(o=0;o!(t.match(/^on[A-Z]/)&&typeof e[t]=="function")).forEach(t=>{o[t]=e[t]}),o}function R(e){const{getSlotProps:o,additionalProps:t,externalSlotProps:n,externalForwardedProps:s,className:i}=e;if(!o){const v=g(t==null?void 0:t.className,i,s==null?void 0:s.className,n==null?void 0:n.className),y=r({},t==null?void 0:t.style,s==null?void 0:s.style,n==null?void 0:n.style),p=r({},t,s,n);return v.length>0&&(p.className=v),Object.keys(y).length>0&&(p.style=y),{props:p,internalRef:void 0}}const c=E(r({},s,n)),a=S(n),d=S(s),l=o(c),u=g(l==null?void 0:l.className,t==null?void 0:t.className,i,s==null?void 0:s.className,n==null?void 0:n.className),f=r({},l==null?void 0:l.style,t==null?void 0:t.style,s==null?void 0:s.style,n==null?void 0:n.style),m=r({},l,t,d,a);return u.length>0&&(m.className=u),Object.keys(f).length>0&&(m.style=f),{props:m,internalRef:l.ref}}const C=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function W(e){var o;const{elementType:t,externalSlotProps:n,ownerState:s,skipResolvingSlotProps:i=!1}=e,c=h(e,C),a=i?{}:H(n,s),{props:d,internalRef:l}=R(r({},c,{externalSlotProps:a})),u=w(l,a==null?void 0:a.ref,(o=e.additionalProps)==null?void 0:o.ref);return k(t,r({},d,{ref:u}),s)}export{T as a,A as d,E as e,N as i,x as o,W as u}; +import{_ as r,a as h}from"./index-f50d1ab5.js";import{e as w}from"./index-f857b04d.js";function A(e,o=166){let t;function n(...s){const i=()=>{e.apply(this,s)};clearTimeout(t),t=setTimeout(i,o)}return n.clear=()=>{clearTimeout(t)},n}function x(e){return e&&e.ownerDocument||document}function T(e){return x(e).defaultView||window}function N(e){return typeof e=="string"}function k(e,o,t){return e===void 0||N(e)?o:r({},o,{ownerState:r({},o.ownerState,t)})}function E(e,o=[]){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!o.includes(n)).forEach(n=>{t[n]=e[n]}),t}function H(e,o,t){return typeof e=="function"?e(o,t):e}function P(e){var o,t,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(o=0;o!(t.match(/^on[A-Z]/)&&typeof e[t]=="function")).forEach(t=>{o[t]=e[t]}),o}function R(e){const{getSlotProps:o,additionalProps:t,externalSlotProps:n,externalForwardedProps:s,className:i}=e;if(!o){const v=g(t==null?void 0:t.className,i,s==null?void 0:s.className,n==null?void 0:n.className),y=r({},t==null?void 0:t.style,s==null?void 0:s.style,n==null?void 0:n.style),p=r({},t,s,n);return v.length>0&&(p.className=v),Object.keys(y).length>0&&(p.style=y),{props:p,internalRef:void 0}}const c=E(r({},s,n)),a=S(n),f=S(s),l=o(c),u=g(l==null?void 0:l.className,t==null?void 0:t.className,i,s==null?void 0:s.className,n==null?void 0:n.className),d=r({},l==null?void 0:l.style,t==null?void 0:t.style,s==null?void 0:s.style,n==null?void 0:n.style),m=r({},l,t,f,a);return u.length>0&&(m.className=u),Object.keys(d).length>0&&(m.style=d),{props:m,internalRef:l.ref}}const C=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function W(e){var o;const{elementType:t,externalSlotProps:n,ownerState:s,skipResolvingSlotProps:i=!1}=e,c=h(e,C),a=i?{}:H(n,s),{props:f,internalRef:l}=R(r({},c,{externalSlotProps:a})),u=w(l,a==null?void 0:a.ref,(o=e.additionalProps)==null?void 0:o.ref);return k(t,r({},f,{ref:u}),s)}export{T as a,A as d,E as e,N as i,x as o,W as u}; diff --git a/build/index.html b/build/index.html index de0acf0f1..99ca1ba6d 100644 --- a/build/index.html +++ b/build/index.html @@ -22,7 +22,7 @@ Learn how to configure a non-root public URL by running `npm run build`. --> Second Brain - +