diff --git a/assets/AdeleBlochBauer-mejG_S8r.jpg b/assets/AdeleBlochBauer-mejG_S8r.jpg new file mode 100644 index 0000000..827d217 Binary files /dev/null and b/assets/AdeleBlochBauer-mejG_S8r.jpg differ diff --git a/assets/AdeleBlochBauer-tcvF7iGz.jpg b/assets/AdeleBlochBauer-tcvF7iGz.jpg deleted file mode 100644 index 546a8a5..0000000 Binary files a/assets/AdeleBlochBauer-tcvF7iGz.jpg and /dev/null differ diff --git a/assets/Automat-4aGVD6wP.jpg b/assets/Automat-4aGVD6wP.jpg deleted file mode 100644 index 7a92810..0000000 Binary files a/assets/Automat-4aGVD6wP.jpg and /dev/null differ diff --git a/assets/Automat-75Y_eNLo.jpg b/assets/Automat-75Y_eNLo.jpg new file mode 100644 index 0000000..2375465 Binary files /dev/null and b/assets/Automat-75Y_eNLo.jpg differ diff --git a/assets/CasparDavidFriedrich-DgBCwwrd.jpg b/assets/CasparDavidFriedrich-DgBCwwrd.jpg deleted file mode 100644 index 8fc028c..0000000 Binary files a/assets/CasparDavidFriedrich-DgBCwwrd.jpg and /dev/null differ diff --git a/assets/CasparDavidFriedrich-JSuWPos_.jpg b/assets/CasparDavidFriedrich-JSuWPos_.jpg new file mode 100644 index 0000000..0fd93e4 Binary files /dev/null and b/assets/CasparDavidFriedrich-JSuWPos_.jpg differ diff --git a/assets/EdwardHopper-HFe-Xut6.jpg b/assets/EdwardHopper-HFe-Xut6.jpg new file mode 100644 index 0000000..57edfda Binary files /dev/null and b/assets/EdwardHopper-HFe-Xut6.jpg differ diff --git a/assets/EdwardHopper-xFABRt-p.jpg b/assets/EdwardHopper-xFABRt-p.jpg deleted file mode 100644 index 2798334..0000000 Binary files a/assets/EdwardHopper-xFABRt-p.jpg and /dev/null differ diff --git a/assets/FalseStart-fmADXiFl.jpg b/assets/FalseStart-fmADXiFl.jpg new file mode 100644 index 0000000..003e38a Binary files /dev/null and b/assets/FalseStart-fmADXiFl.jpg differ diff --git a/assets/FalseStart-yTLIDifo.jpg b/assets/FalseStart-yTLIDifo.jpg deleted file mode 100644 index cc9704f..0000000 Binary files a/assets/FalseStart-yTLIDifo.jpg and /dev/null differ diff --git a/assets/GadisPicnic-H7dx4KcZ.png b/assets/GadisPicnic-H7dx4KcZ.png new file mode 100644 index 0000000..ca6c6ac Binary files /dev/null and b/assets/GadisPicnic-H7dx4KcZ.png differ diff --git a/assets/GadisPicnic-lJO_U6V2.png b/assets/GadisPicnic-lJO_U6V2.png deleted file mode 100644 index 423b514..0000000 Binary files a/assets/GadisPicnic-lJO_U6V2.png and /dev/null differ diff --git a/assets/GardenOfJoy-8JshuTga.png b/assets/GardenOfJoy-8JshuTga.png new file mode 100644 index 0000000..3a43fae Binary files /dev/null and b/assets/GardenOfJoy-8JshuTga.png differ diff --git a/assets/GardenOfJoy-oWuW8Wso.png b/assets/GardenOfJoy-oWuW8Wso.png deleted file mode 100644 index 913ffc8..0000000 Binary files a/assets/GardenOfJoy-oWuW8Wso.png and /dev/null differ diff --git a/assets/GhentAltarpiece-mRyWwDtq.jpg b/assets/GhentAltarpiece-mRyWwDtq.jpg deleted file mode 100644 index 826e66d..0000000 Binary files a/assets/GhentAltarpiece-mRyWwDtq.jpg and /dev/null differ diff --git a/assets/GhentAltarpiece-u7WJ_Jfn.jpg b/assets/GhentAltarpiece-u7WJ_Jfn.jpg new file mode 100644 index 0000000..e8bd162 Binary files /dev/null and b/assets/GhentAltarpiece-u7WJ_Jfn.jpg differ diff --git a/assets/GirlWithAPearlEarring-VphH2lAZ.jpg b/assets/GirlWithAPearlEarring-VphH2lAZ.jpg deleted file mode 100644 index a51e6c7..0000000 Binary files a/assets/GirlWithAPearlEarring-VphH2lAZ.jpg and /dev/null differ diff --git a/assets/GirlWithAPearlEarring-YqINt3pj.jpg b/assets/GirlWithAPearlEarring-YqINt3pj.jpg new file mode 100644 index 0000000..2f0ae48 Binary files /dev/null and b/assets/GirlWithAPearlEarring-YqINt3pj.jpg differ diff --git a/assets/GustavKlimt-M4F63ad7.jpg b/assets/GustavKlimt-M4F63ad7.jpg new file mode 100644 index 0000000..fa6bbff Binary files /dev/null and b/assets/GustavKlimt-M4F63ad7.jpg differ diff --git a/assets/GustavKlimt-X2tAzCPY.jpg b/assets/GustavKlimt-X2tAzCPY.jpg deleted file mode 100644 index 58afe1f..0000000 Binary files a/assets/GustavKlimt-X2tAzCPY.jpg and /dev/null differ diff --git a/assets/Interchange-6iRiZAKA.jpg b/assets/Interchange-6iRiZAKA.jpg new file mode 100644 index 0000000..3532aa0 Binary files /dev/null and b/assets/Interchange-6iRiZAKA.jpg differ diff --git a/assets/Interchange-LDSN-hgv.jpg b/assets/Interchange-LDSN-hgv.jpg deleted file mode 100644 index 20c49da..0000000 Binary files a/assets/Interchange-LDSN-hgv.jpg and /dev/null differ diff --git a/assets/JanVanEyck-CUQ6tpld.jpg b/assets/JanVanEyck-CUQ6tpld.jpg deleted file mode 100644 index 55296f5..0000000 Binary files a/assets/JanVanEyck-CUQ6tpld.jpg and /dev/null differ diff --git a/assets/JanVanEyck-GCOi6ugC.jpg b/assets/JanVanEyck-GCOi6ugC.jpg new file mode 100644 index 0000000..67b87e4 Binary files /dev/null and b/assets/JanVanEyck-GCOi6ugC.jpg differ diff --git a/assets/JohannesVermeer-J6vMLGny.jpeg b/assets/JohannesVermeer-J6vMLGny.jpeg new file mode 100644 index 0000000..4744953 Binary files /dev/null and b/assets/JohannesVermeer-J6vMLGny.jpeg differ diff --git a/assets/JohannesVermeer-XqHY9Aij.jpeg b/assets/JohannesVermeer-XqHY9Aij.jpeg deleted file mode 100644 index 2f3e86e..0000000 Binary files a/assets/JohannesVermeer-XqHY9Aij.jpeg and /dev/null differ diff --git a/assets/LadyWithAFan-AbS8CJKt.jpg b/assets/LadyWithAFan-AbS8CJKt.jpg new file mode 100644 index 0000000..7bc33c4 Binary files /dev/null and b/assets/LadyWithAFan-AbS8CJKt.jpg differ diff --git a/assets/LadyWithAFan-G_ofcpeb.jpg b/assets/LadyWithAFan-G_ofcpeb.jpg deleted file mode 100644 index 081fb70..0000000 Binary files a/assets/LadyWithAFan-G_ofcpeb.jpg and /dev/null differ diff --git a/assets/LesDemoisellesdAvignon-4_RECU4U.jpg b/assets/LesDemoisellesdAvignon-4_RECU4U.jpg new file mode 100644 index 0000000..45e3d0b Binary files /dev/null and b/assets/LesDemoisellesdAvignon-4_RECU4U.jpg differ diff --git a/assets/LesDemoisellesdAvignon-jhcC77jI.jpg b/assets/LesDemoisellesdAvignon-jhcC77jI.jpg deleted file mode 100644 index 3b90f08..0000000 Binary files a/assets/LesDemoisellesdAvignon-jhcC77jI.jpg and /dev/null differ diff --git a/assets/Meules-B6PXlsW3.jpg b/assets/Meules-B6PXlsW3.jpg new file mode 100644 index 0000000..6e8ff72 Binary files /dev/null and b/assets/Meules-B6PXlsW3.jpg differ diff --git a/assets/Meules-CS9YLbsG.jpg b/assets/Meules-CS9YLbsG.jpg deleted file mode 100644 index 7e81bd0..0000000 Binary files a/assets/Meules-CS9YLbsG.jpg and /dev/null differ diff --git a/assets/MiriamOmar-444PJ78A.png b/assets/MiriamOmar-444PJ78A.png deleted file mode 100644 index 96a3455..0000000 Binary files a/assets/MiriamOmar-444PJ78A.png and /dev/null differ diff --git a/assets/MiriamOmar-HBU8CJzT.png b/assets/MiriamOmar-HBU8CJzT.png new file mode 100644 index 0000000..77aaa69 Binary files /dev/null and b/assets/MiriamOmar-HBU8CJzT.png differ diff --git a/assets/MonaLisa-3B6Z7VdH.jpg b/assets/MonaLisa-3B6Z7VdH.jpg new file mode 100644 index 0000000..9560c30 Binary files /dev/null and b/assets/MonaLisa-3B6Z7VdH.jpg differ diff --git a/assets/MonaLisa-SbNG62KE.jpg b/assets/MonaLisa-SbNG62KE.jpg deleted file mode 100644 index 0a92a24..0000000 Binary files a/assets/MonaLisa-SbNG62KE.jpg and /dev/null differ diff --git a/assets/MorningSun-0NcSv8Xv.jpg b/assets/MorningSun-0NcSv8Xv.jpg deleted file mode 100644 index b090095..0000000 Binary files a/assets/MorningSun-0NcSv8Xv.jpg and /dev/null differ diff --git a/assets/MorningSun-qaGlQTWp.jpg b/assets/MorningSun-qaGlQTWp.jpg new file mode 100644 index 0000000..97972f1 Binary files /dev/null and b/assets/MorningSun-qaGlQTWp.jpg differ diff --git a/assets/MrAndMrsAndrews-foPzLRmi.jpg b/assets/MrAndMrsAndrews-foPzLRmi.jpg new file mode 100644 index 0000000..4d3c175 Binary files /dev/null and b/assets/MrAndMrsAndrews-foPzLRmi.jpg differ diff --git a/assets/MrAndMrsAndrews-ysTxsErt.jpg b/assets/MrAndMrsAndrews-ysTxsErt.jpg deleted file mode 100644 index 2aa7361..0000000 Binary files a/assets/MrAndMrsAndrews-ysTxsErt.jpg and /dev/null differ diff --git a/assets/Nighthawks-49YtSYWm.jpg b/assets/Nighthawks-49YtSYWm.jpg new file mode 100644 index 0000000..9d11444 Binary files /dev/null and b/assets/Nighthawks-49YtSYWm.jpg differ diff --git a/assets/Nighthawks-OytFVNzX.jpg b/assets/Nighthawks-OytFVNzX.jpg deleted file mode 100644 index bc35db3..0000000 Binary files a/assets/Nighthawks-OytFVNzX.jpg and /dev/null differ diff --git a/assets/StarryNight-5i8XKLa1.jpg b/assets/StarryNight-5i8XKLa1.jpg deleted file mode 100644 index 52e69c8..0000000 Binary files a/assets/StarryNight-5i8XKLa1.jpg and /dev/null differ diff --git a/assets/StarryNight-t9zMraPd.jpg b/assets/StarryNight-t9zMraPd.jpg new file mode 100644 index 0000000..c33c63b Binary files /dev/null and b/assets/StarryNight-t9zMraPd.jpg differ diff --git a/assets/TheArnolfiniPortrait-TZfaFzfl.jpg b/assets/TheArnolfiniPortrait-TZfaFzfl.jpg deleted file mode 100644 index fb36a90..0000000 Binary files a/assets/TheArnolfiniPortrait-TZfaFzfl.jpg and /dev/null differ diff --git a/assets/TheArnolfiniPortrait-wKQuaTje.jpg b/assets/TheArnolfiniPortrait-wKQuaTje.jpg new file mode 100644 index 0000000..4b7c416 Binary files /dev/null and b/assets/TheArnolfiniPortrait-wKQuaTje.jpg differ diff --git a/assets/TheBlueBoy-dTUpBaO4.jpg b/assets/TheBlueBoy-dTUpBaO4.jpg new file mode 100644 index 0000000..910265b Binary files /dev/null and b/assets/TheBlueBoy-dTUpBaO4.jpg differ diff --git a/assets/TheBlueBoy-idGaQI_p.jpg b/assets/TheBlueBoy-idGaQI_p.jpg deleted file mode 100644 index e8ea045..0000000 Binary files a/assets/TheBlueBoy-idGaQI_p.jpg and /dev/null differ diff --git a/assets/TheKiss-2a_s1Ows.jpg b/assets/TheKiss-2a_s1Ows.jpg new file mode 100644 index 0000000..efeee9f Binary files /dev/null and b/assets/TheKiss-2a_s1Ows.jpg differ diff --git a/assets/TheKiss-AkM3Ukfa.jpg b/assets/TheKiss-AkM3Ukfa.jpg deleted file mode 100644 index 33ce086..0000000 Binary files a/assets/TheKiss-AkM3Ukfa.jpg and /dev/null differ diff --git a/assets/ThomasGainsborough-Gfe1rHka.jpg b/assets/ThomasGainsborough-Gfe1rHka.jpg deleted file mode 100644 index 643162d..0000000 Binary files a/assets/ThomasGainsborough-Gfe1rHka.jpg and /dev/null differ diff --git a/assets/ThomasGainsborough-SNBHe0iW.jpg b/assets/ThomasGainsborough-SNBHe0iW.jpg new file mode 100644 index 0000000..5654bae Binary files /dev/null and b/assets/ThomasGainsborough-SNBHe0iW.jpg differ diff --git a/assets/WandererAboveTheSeaOfFog-Ad9-lk1H.jpeg b/assets/WandererAboveTheSeaOfFog-Ad9-lk1H.jpeg deleted file mode 100644 index b000a67..0000000 Binary files a/assets/WandererAboveTheSeaOfFog-Ad9-lk1H.jpeg and /dev/null differ diff --git a/assets/WandererAboveTheSeaOfFog-jL7VMjKl.jpeg b/assets/WandererAboveTheSeaOfFog-jL7VMjKl.jpeg new file mode 100644 index 0000000..74e514c Binary files /dev/null and b/assets/WandererAboveTheSeaOfFog-jL7VMjKl.jpeg differ diff --git a/assets/WhistlersMother-4eOBD2Ik.jpg b/assets/WhistlersMother-4eOBD2Ik.jpg deleted file mode 100644 index 907b395..0000000 Binary files a/assets/WhistlersMother-4eOBD2Ik.jpg and /dev/null differ diff --git a/assets/WhistlersMother-mG-PJMlc.jpg b/assets/WhistlersMother-mG-PJMlc.jpg new file mode 100644 index 0000000..29bf49a Binary files /dev/null and b/assets/WhistlersMother-mG-PJMlc.jpg differ diff --git a/assets/index-bQXedbLb.js b/assets/index-P4EFfgLc.js similarity index 91% rename from assets/index-bQXedbLb.js rename to assets/index-P4EFfgLc.js index ef9e025..33464df 100644 --- a/assets/index-bQXedbLb.js +++ b/assets/index-P4EFfgLc.js @@ -6,7 +6,7 @@ function W3(e,t){for(var n=0;n>>1,O=I[T];if(0>>1;To(U,F))Qo(K,U)?(I[T]=K,I[Q]=F,T=Q):(I[T]=U,I[W]=F,T=W);else if(Qo(K,F))I[T]=K,I[Q]=F,T=Q;else break e}}return B}function o(I,B){var F=I.sortIndex-B.sortIndex;return F!==0?F:I.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,p=!1,y=!1,b=!1,w=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(I){for(var B=n(u);B!==null;){if(B.callback===null)r(u);else if(B.startTime<=I)r(u),B.sortIndex=B.expirationTime,t(l,B);else break;B=n(u)}}function S(I){if(b=!1,v(I),!y)if(n(l)!==null)y=!0,_(k);else{var B=n(u);B!==null&&j(S,B.startTime-I)}}function k(I,B){y=!1,b&&(b=!1,x(m),m=-1),p=!0;var F=f;try{for(v(B),d=n(l);d!==null&&(!(d.expirationTime>B)||I&&!E());){var T=d.callback;if(typeof T=="function"){d.callback=null,f=d.priorityLevel;var O=T(d.expirationTime<=B);B=e.unstable_now(),typeof O=="function"?d.callback=O:d===n(l)&&r(l),v(B)}else r(l);d=n(l)}if(d!==null)var V=!0;else{var W=n(u);W!==null&&j(S,W.startTime-B),V=!1}return V}finally{d=null,f=F,p=!1}}var A=!1,D=null,m=-1,L=5,M=-1;function E(){return!(e.unstable_now()-MI||125T?(I.sortIndex=F,t(u,I),n(l)===null&&I===n(u)&&(b?(x(m),m=-1):b=!0,j(S,F-T))):(I.sortIndex=O,t(l,I),y||p||(y=!0,_(k))),I},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(I){var B=f;return function(){var F=f;f=B;try{return I.apply(this,arguments)}finally{f=F}}}})(Dv);Lv.exports=Dv;var pC=Lv.exports;/** + */(function(e){function t(I,B){var O=I.length;I.push(B);e:for(;0>>1,F=I[T];if(0>>1;To(U,O))Qo(K,U)?(I[T]=K,I[Q]=O,T=Q):(I[T]=U,I[W]=O,T=W);else if(Qo(K,O))I[T]=K,I[Q]=O,T=Q;else break e}}return B}function o(I,B){var O=I.sortIndex-B.sortIndex;return O!==0?O:I.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,p=!1,y=!1,b=!1,w=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(I){for(var B=n(u);B!==null;){if(B.callback===null)r(u);else if(B.startTime<=I)r(u),B.sortIndex=B.expirationTime,t(l,B);else break;B=n(u)}}function S(I){if(b=!1,v(I),!y)if(n(l)!==null)y=!0,_(k);else{var B=n(u);B!==null&&j(S,B.startTime-I)}}function k(I,B){y=!1,b&&(b=!1,x(m),m=-1),p=!0;var O=f;try{for(v(B),d=n(l);d!==null&&(!(d.expirationTime>B)||I&&!E());){var T=d.callback;if(typeof T=="function"){d.callback=null,f=d.priorityLevel;var F=T(d.expirationTime<=B);B=e.unstable_now(),typeof F=="function"?d.callback=F:d===n(l)&&r(l),v(B)}else r(l);d=n(l)}if(d!==null)var V=!0;else{var W=n(u);W!==null&&j(S,W.startTime-B),V=!1}return V}finally{d=null,f=O,p=!1}}var A=!1,D=null,m=-1,L=5,M=-1;function E(){return!(e.unstable_now()-MI||125T?(I.sortIndex=O,t(u,I),n(l)===null&&I===n(u)&&(b?(x(m),m=-1):b=!0,j(S,O-T))):(I.sortIndex=F,t(l,I),y||p||(y=!0,_(k))),I},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(I){var B=f;return function(){var O=f;f=B;try{return I.apply(this,arguments)}finally{f=O}}}})(Dv);Lv.exports=Dv;var pC=Lv.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ function W3(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bc=Object.prototype.hasOwnProperty,hC=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Yp={},Xp={};function mC(e){return bc.call(Xp,e)?!0:bc.call(Yp,e)?!1:hC.test(e)?Xp[e]=!0:(Yp[e]=!0,!1)}function gC(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function vC(e,t,n,r){if(t===null||typeof t>"u"||gC(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ct(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var qe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){qe[e]=new ct(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];qe[t]=new ct(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){qe[e]=new ct(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){qe[e]=new ct(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){qe[e]=new ct(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){qe[e]=new ct(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){qe[e]=new ct(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){qe[e]=new ct(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){qe[e]=new ct(e,5,!1,e.toLowerCase(),null,!1,!1)});var af=/[\-:]([a-z])/g;function lf(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(af,lf);qe[t]=new ct(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(af,lf);qe[t]=new ct(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(af,lf);qe[t]=new ct(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){qe[e]=new ct(e,1,!1,e.toLowerCase(),null,!1,!1)});qe.xlinkHref=new ct("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){qe[e]=new ct(e,1,!1,e.toLowerCase(),null,!0,!0)});function uf(e,t,n,r){var o=qe.hasOwnProperty(t)?qe[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bc=Object.prototype.hasOwnProperty,hC=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Yp={},Xp={};function mC(e){return bc.call(Xp,e)?!0:bc.call(Yp,e)?!1:hC.test(e)?Xp[e]=!0:(Yp[e]=!0,!1)}function gC(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function vC(e,t,n,r){if(t===null||typeof t>"u"||gC(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ct(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Je={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Je[e]=new ct(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Je[t]=new ct(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Je[e]=new ct(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Je[e]=new ct(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Je[e]=new ct(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Je[e]=new ct(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Je[e]=new ct(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Je[e]=new ct(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Je[e]=new ct(e,5,!1,e.toLowerCase(),null,!1,!1)});var af=/[\-:]([a-z])/g;function lf(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(af,lf);Je[t]=new ct(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(af,lf);Je[t]=new ct(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(af,lf);Je[t]=new ct(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Je[e]=new ct(e,1,!1,e.toLowerCase(),null,!1,!1)});Je.xlinkHref=new ct("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Je[e]=new ct(e,1,!1,e.toLowerCase(),null,!0,!0)});function uf(e,t,n,r){var o=Je.hasOwnProperty(t)?Je[t]:null;(o!==null?o.type!==0:r||!(2a||o[s]!==i[a]){var l=` -`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{hu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?yi(e):""}function yC(e){switch(e.tag){case 5:return yi(e.type);case 16:return yi("Lazy");case 13:return yi("Suspense");case 19:return yi("SuspenseList");case 0:case 2:case 15:return e=mu(e.type,!1),e;case 11:return e=mu(e.type.render,!1),e;case 1:return e=mu(e.type,!0),e;default:return""}}function Sc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case uo:return"Fragment";case lo:return"Portal";case xc:return"Profiler";case cf:return"StrictMode";case wc:return"Suspense";case Cc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Fv:return(e.displayName||"Context")+".Consumer";case Rv:return(e._context.displayName||"Context")+".Provider";case df:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ff:return t=e.displayName||null,t!==null?t:Sc(e.type)||"Memo";case Rn:t=e._payload,e=e._init;try{return Sc(e(t))}catch{}}return null}function bC(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Sc(t);case 8:return t===cf?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function rr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function jv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function xC(e){var t=jv(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ns(e){e._valueTracker||(e._valueTracker=xC(e))}function _v(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=jv(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function La(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Pc(e,t){var n=t.checked;return Le({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Zp(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=rr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Bv(e,t){t=t.checked,t!=null&&uf(e,"checked",t,!1)}function $c(e,t){Bv(e,t);var n=rr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ec(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ec(e,t.type,rr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function qp(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ec(e,t,n){(t!=="number"||La(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var bi=Array.isArray;function ko(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Is.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Bi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ei={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},wC=["Webkit","ms","Moz","O"];Object.keys(Ei).forEach(function(e){wC.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ei[t]=Ei[e]})});function Wv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ei.hasOwnProperty(e)&&Ei[e]?(""+t).trim():t+"px"}function Uv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Wv(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var CC=Le({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ac(e,t){if(t){if(CC[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(z(62))}}function Mc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Lc=null;function pf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Dc=null,To=null,Ao=null;function th(e){if(e=gs(e)){if(typeof Dc!="function")throw Error(z(280));var t=e.stateNode;t&&(t=Rl(t),Dc(e.stateNode,e.type,t))}}function Hv(e){To?Ao?Ao.push(e):Ao=[e]:To=e}function Gv(){if(To){var e=To,t=Ao;if(Ao=To=null,th(e),t)for(e=0;e>>=0,e===0?32:31-(NC(e)/IC|0)|0}var Rs=64,Fs=4194304;function xi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ra(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=xi(a):(i&=s,i!==0&&(r=xi(i)))}else s=n&~o,s!==0?r=xi(s):i!==0&&(r=xi(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function hs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Gt(t),e[t]=n}function jC(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ti),ch=" ",dh=!1;function p0(e,t){switch(e){case"keyup":return f2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function h0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var co=!1;function h2(e,t){switch(e){case"compositionend":return h0(t);case"keypress":return t.which!==32?null:(dh=!0,ch);case"textInput":return e=t.data,e===ch&&dh?null:e;default:return null}}function m2(e,t){if(co)return e==="compositionend"||!wf&&p0(e,t)?(e=d0(),ha=yf=Vn=null,co=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=mh(n)}}function y0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?y0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function b0(){for(var e=window,t=La();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=La(e.document)}return t}function Cf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function P2(e){var t=b0(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&y0(n.ownerDocument.documentElement,n)){if(r!==null&&Cf(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=gh(n,i);var s=gh(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,fo=null,jc=null,Mi=null,_c=!1;function vh(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_c||fo==null||fo!==La(r)||(r=fo,"selectionStart"in r&&Cf(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Mi&&Hi(Mi,r)||(Mi=r,r=ja(jc,"onSelect"),0mo||(e.current=Uc[mo],Uc[mo]=null,mo--)}function ye(e,t){mo++,Uc[mo]=e.current,e.current=t}var or={},ot=dr(or),mt=dr(!1),Rr=or;function Fo(e,t){var n=e.type.contextTypes;if(!n)return or;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function gt(e){return e=e.childContextTypes,e!=null}function Ba(){Se(mt),Se(ot)}function Ph(e,t,n){if(ot.current!==or)throw Error(z(168));ye(ot,t),ye(mt,n)}function T0(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(z(108,bC(e)||"Unknown",o));return Le({},n,r)}function Va(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||or,Rr=ot.current,ye(ot,e),ye(mt,mt.current),!0}function $h(e,t,n){var r=e.stateNode;if(!r)throw Error(z(169));n?(e=T0(e,t,Rr),r.__reactInternalMemoizedMergedChildContext=e,Se(mt),Se(ot),ye(ot,e)):Se(mt),ye(mt,n)}var mn=null,Fl=!1,Au=!1;function A0(e){mn===null?mn=[e]:mn.push(e)}function F2(e){Fl=!0,A0(e)}function fr(){if(!Au&&mn!==null){Au=!0;var e=0,t=fe;try{var n=mn;for(fe=1;e>=s,o-=s,vn=1<<32-Gt(t)+o|n<m?(L=D,D=null):L=D.sibling;var M=f(x,D,v[m],S);if(M===null){D===null&&(D=L);break}e&&D&&M.alternate===null&&t(x,D),g=i(M,g,m),A===null?k=M:A.sibling=M,A=M,D=L}if(m===v.length)return n(x,D),$e&&wr(x,m),k;if(D===null){for(;mm?(L=D,D=null):L=D.sibling;var E=f(x,D,M.value,S);if(E===null){D===null&&(D=L);break}e&&D&&E.alternate===null&&t(x,D),g=i(E,g,m),A===null?k=E:A.sibling=E,A=E,D=L}if(M.done)return n(x,D),$e&&wr(x,m),k;if(D===null){for(;!M.done;m++,M=v.next())M=d(x,M.value,S),M!==null&&(g=i(M,g,m),A===null?k=M:A.sibling=M,A=M);return $e&&wr(x,m),k}for(D=r(x,D);!M.done;m++,M=v.next())M=p(D,x,m,M.value,S),M!==null&&(e&&M.alternate!==null&&D.delete(M.key===null?m:M.key),g=i(M,g,m),A===null?k=M:A.sibling=M,A=M);return e&&D.forEach(function(N){return t(x,N)}),$e&&wr(x,m),k}function w(x,g,v,S){if(typeof v=="object"&&v!==null&&v.type===uo&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Ds:e:{for(var k=v.key,A=g;A!==null;){if(A.key===k){if(k=v.type,k===uo){if(A.tag===7){n(x,A.sibling),g=o(A,v.props.children),g.return=x,x=g;break e}}else if(A.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Rn&&Dh(k)===A.type){n(x,A.sibling),g=o(A,v.props),g.ref=si(x,A,v),g.return=x,x=g;break e}n(x,A);break}else t(x,A);A=A.sibling}v.type===uo?(g=Ir(v.props.children,x.mode,S,v.key),g.return=x,x=g):(S=Ca(v.type,v.key,v.props,null,x.mode,S),S.ref=si(x,g,v),S.return=x,x=S)}return s(x);case lo:e:{for(A=v.key;g!==null;){if(g.key===A)if(g.tag===4&&g.stateNode.containerInfo===v.containerInfo&&g.stateNode.implementation===v.implementation){n(x,g.sibling),g=o(g,v.children||[]),g.return=x,x=g;break e}else{n(x,g);break}else t(x,g);g=g.sibling}g=Ou(v,x.mode,S),g.return=x,x=g}return s(x);case Rn:return A=v._init,w(x,g,A(v._payload),S)}if(bi(v))return y(x,g,v,S);if(ti(v))return b(x,g,v,S);zs(x,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,g!==null&&g.tag===6?(n(x,g.sibling),g=o(g,v),g.return=x,x=g):(n(x,g),g=Fu(v,x.mode,S),g.return=x,x=g),s(x)):n(x,g)}return w}var jo=O0(!0),j0=O0(!1),vs={},rn=dr(vs),Qi=dr(vs),Zi=dr(vs);function Ar(e){if(e===vs)throw Error(z(174));return e}function Lf(e,t){switch(ye(Zi,t),ye(Qi,e),ye(rn,vs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Tc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Tc(t,e)}Se(rn),ye(rn,t)}function _o(){Se(rn),Se(Qi),Se(Zi)}function _0(e){Ar(Zi.current);var t=Ar(rn.current),n=Tc(t,e.type);t!==n&&(ye(Qi,e),ye(rn,n))}function Df(e){Qi.current===e&&(Se(rn),Se(Qi))}var Ee=dr(0);function Ga(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Mu=[];function Nf(){for(var e=0;en?n:4,e(!0);var r=Lu.transition;Lu.transition={};try{e(!1),t()}finally{fe=n,Lu.transition=r}}function ty(){return Bt().memoizedState}function B2(e,t,n){var r=Qn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ny(e))ry(t,n);else if(n=N0(e,t,n,r),n!==null){var o=lt();Yt(n,e,r,o),oy(n,t,r)}}function V2(e,t,n){var r=Qn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ny(e))ry(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,Xt(a,s)){var l=t.interleaved;l===null?(o.next=o,Af(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=N0(e,t,o,r),n!==null&&(o=lt(),Yt(n,e,r,o),oy(n,t,r))}}function ny(e){var t=e.alternate;return e===Ae||t!==null&&t===Ae}function ry(e,t){Li=Ya=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function oy(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,mf(e,n)}}var Xa={readContext:_t,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useInsertionEffect:Je,useLayoutEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useMutableSource:Je,useSyncExternalStore:Je,useId:Je,unstable_isNewReconciler:!1},K2={readContext:_t,useCallback:function(e,t){return Jt().memoizedState=[e,t===void 0?null:t],e},useContext:_t,useEffect:Ih,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ya(4194308,4,Q0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ya(4194308,4,e,t)},useInsertionEffect:function(e,t){return ya(4,2,e,t)},useMemo:function(e,t){var n=Jt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Jt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=B2.bind(null,Ae,e),[r.memoizedState,e]},useRef:function(e){var t=Jt();return e={current:e},t.memoizedState=e},useState:Nh,useDebugValue:jf,useDeferredValue:function(e){return Jt().memoizedState=e},useTransition:function(){var e=Nh(!1),t=e[0];return e=_2.bind(null,e[1]),Jt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ae,o=Jt();if($e){if(n===void 0)throw Error(z(407));n=n()}else{if(n=t(),Xe===null)throw Error(z(349));Or&30||K0(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Ih(W0.bind(null,r,i,e),[e]),r.flags|=2048,es(9,z0.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Jt(),t=Xe.identifierPrefix;if($e){var n=yn,r=vn;n=(r&~(1<<32-Gt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=qi++,0")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{hu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?yi(e):""}function yC(e){switch(e.tag){case 5:return yi(e.type);case 16:return yi("Lazy");case 13:return yi("Suspense");case 19:return yi("SuspenseList");case 0:case 2:case 15:return e=mu(e.type,!1),e;case 11:return e=mu(e.type.render,!1),e;case 1:return e=mu(e.type,!0),e;default:return""}}function Sc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case uo:return"Fragment";case lo:return"Portal";case xc:return"Profiler";case cf:return"StrictMode";case wc:return"Suspense";case Cc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ov:return(e.displayName||"Context")+".Consumer";case Rv:return(e._context.displayName||"Context")+".Provider";case df:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ff:return t=e.displayName||null,t!==null?t:Sc(e.type)||"Memo";case Rn:t=e._payload,e=e._init;try{return Sc(e(t))}catch{}}return null}function bC(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Sc(t);case 8:return t===cf?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function rr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function jv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function xC(e){var t=jv(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ns(e){e._valueTracker||(e._valueTracker=xC(e))}function _v(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=jv(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function La(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Pc(e,t){var n=t.checked;return Le({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Zp(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=rr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Bv(e,t){t=t.checked,t!=null&&uf(e,"checked",t,!1)}function $c(e,t){Bv(e,t);var n=rr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ec(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ec(e,t.type,rr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Jp(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ec(e,t,n){(t!=="number"||La(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var bi=Array.isArray;function ko(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Is.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Bi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ei={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},wC=["Webkit","ms","Moz","O"];Object.keys(Ei).forEach(function(e){wC.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ei[t]=Ei[e]})});function Wv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ei.hasOwnProperty(e)&&Ei[e]?(""+t).trim():t+"px"}function Uv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Wv(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var CC=Le({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ac(e,t){if(t){if(CC[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(z(62))}}function Mc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Lc=null;function pf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Dc=null,To=null,Ao=null;function th(e){if(e=gs(e)){if(typeof Dc!="function")throw Error(z(280));var t=e.stateNode;t&&(t=Rl(t),Dc(e.stateNode,e.type,t))}}function Hv(e){To?Ao?Ao.push(e):Ao=[e]:To=e}function Gv(){if(To){var e=To,t=Ao;if(Ao=To=null,th(e),t)for(e=0;e>>=0,e===0?32:31-(NC(e)/IC|0)|0}var Rs=64,Os=4194304;function xi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ra(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=xi(a):(i&=s,i!==0&&(r=xi(i)))}else s=n&~o,s!==0?r=xi(s):i!==0&&(r=xi(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function hs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Gt(t),e[t]=n}function jC(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ti),ch=" ",dh=!1;function p0(e,t){switch(e){case"keyup":return f2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function h0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var co=!1;function h2(e,t){switch(e){case"compositionend":return h0(t);case"keypress":return t.which!==32?null:(dh=!0,ch);case"textInput":return e=t.data,e===ch&&dh?null:e;default:return null}}function m2(e,t){if(co)return e==="compositionend"||!wf&&p0(e,t)?(e=d0(),ha=yf=Vn=null,co=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=mh(n)}}function y0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?y0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function b0(){for(var e=window,t=La();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=La(e.document)}return t}function Cf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function P2(e){var t=b0(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&y0(n.ownerDocument.documentElement,n)){if(r!==null&&Cf(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=gh(n,i);var s=gh(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,fo=null,jc=null,Mi=null,_c=!1;function vh(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_c||fo==null||fo!==La(r)||(r=fo,"selectionStart"in r&&Cf(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Mi&&Hi(Mi,r)||(Mi=r,r=ja(jc,"onSelect"),0mo||(e.current=Uc[mo],Uc[mo]=null,mo--)}function ye(e,t){mo++,Uc[mo]=e.current,e.current=t}var or={},ot=dr(or),mt=dr(!1),Rr=or;function Oo(e,t){var n=e.type.contextTypes;if(!n)return or;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function gt(e){return e=e.childContextTypes,e!=null}function Ba(){Se(mt),Se(ot)}function Ph(e,t,n){if(ot.current!==or)throw Error(z(168));ye(ot,t),ye(mt,n)}function T0(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(z(108,bC(e)||"Unknown",o));return Le({},n,r)}function Va(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||or,Rr=ot.current,ye(ot,e),ye(mt,mt.current),!0}function $h(e,t,n){var r=e.stateNode;if(!r)throw Error(z(169));n?(e=T0(e,t,Rr),r.__reactInternalMemoizedMergedChildContext=e,Se(mt),Se(ot),ye(ot,e)):Se(mt),ye(mt,n)}var mn=null,Ol=!1,Au=!1;function A0(e){mn===null?mn=[e]:mn.push(e)}function O2(e){Ol=!0,A0(e)}function fr(){if(!Au&&mn!==null){Au=!0;var e=0,t=fe;try{var n=mn;for(fe=1;e>=s,o-=s,vn=1<<32-Gt(t)+o|n<m?(L=D,D=null):L=D.sibling;var M=f(x,D,v[m],S);if(M===null){D===null&&(D=L);break}e&&D&&M.alternate===null&&t(x,D),g=i(M,g,m),A===null?k=M:A.sibling=M,A=M,D=L}if(m===v.length)return n(x,D),$e&&wr(x,m),k;if(D===null){for(;mm?(L=D,D=null):L=D.sibling;var E=f(x,D,M.value,S);if(E===null){D===null&&(D=L);break}e&&D&&E.alternate===null&&t(x,D),g=i(E,g,m),A===null?k=E:A.sibling=E,A=E,D=L}if(M.done)return n(x,D),$e&&wr(x,m),k;if(D===null){for(;!M.done;m++,M=v.next())M=d(x,M.value,S),M!==null&&(g=i(M,g,m),A===null?k=M:A.sibling=M,A=M);return $e&&wr(x,m),k}for(D=r(x,D);!M.done;m++,M=v.next())M=p(D,x,m,M.value,S),M!==null&&(e&&M.alternate!==null&&D.delete(M.key===null?m:M.key),g=i(M,g,m),A===null?k=M:A.sibling=M,A=M);return e&&D.forEach(function(N){return t(x,N)}),$e&&wr(x,m),k}function w(x,g,v,S){if(typeof v=="object"&&v!==null&&v.type===uo&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Ds:e:{for(var k=v.key,A=g;A!==null;){if(A.key===k){if(k=v.type,k===uo){if(A.tag===7){n(x,A.sibling),g=o(A,v.props.children),g.return=x,x=g;break e}}else if(A.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Rn&&Dh(k)===A.type){n(x,A.sibling),g=o(A,v.props),g.ref=si(x,A,v),g.return=x,x=g;break e}n(x,A);break}else t(x,A);A=A.sibling}v.type===uo?(g=Ir(v.props.children,x.mode,S,v.key),g.return=x,x=g):(S=Ca(v.type,v.key,v.props,null,x.mode,S),S.ref=si(x,g,v),S.return=x,x=S)}return s(x);case lo:e:{for(A=v.key;g!==null;){if(g.key===A)if(g.tag===4&&g.stateNode.containerInfo===v.containerInfo&&g.stateNode.implementation===v.implementation){n(x,g.sibling),g=o(g,v.children||[]),g.return=x,x=g;break e}else{n(x,g);break}else t(x,g);g=g.sibling}g=Fu(v,x.mode,S),g.return=x,x=g}return s(x);case Rn:return A=v._init,w(x,g,A(v._payload),S)}if(bi(v))return y(x,g,v,S);if(ti(v))return b(x,g,v,S);zs(x,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,g!==null&&g.tag===6?(n(x,g.sibling),g=o(g,v),g.return=x,x=g):(n(x,g),g=Ou(v,x.mode,S),g.return=x,x=g),s(x)):n(x,g)}return w}var jo=F0(!0),j0=F0(!1),vs={},rn=dr(vs),Qi=dr(vs),Zi=dr(vs);function Ar(e){if(e===vs)throw Error(z(174));return e}function Lf(e,t){switch(ye(Zi,t),ye(Qi,e),ye(rn,vs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Tc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Tc(t,e)}Se(rn),ye(rn,t)}function _o(){Se(rn),Se(Qi),Se(Zi)}function _0(e){Ar(Zi.current);var t=Ar(rn.current),n=Tc(t,e.type);t!==n&&(ye(Qi,e),ye(rn,n))}function Df(e){Qi.current===e&&(Se(rn),Se(Qi))}var Ee=dr(0);function Ga(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Mu=[];function Nf(){for(var e=0;en?n:4,e(!0);var r=Lu.transition;Lu.transition={};try{e(!1),t()}finally{fe=n,Lu.transition=r}}function ty(){return Bt().memoizedState}function B2(e,t,n){var r=Qn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ny(e))ry(t,n);else if(n=N0(e,t,n,r),n!==null){var o=lt();Yt(n,e,r,o),oy(n,t,r)}}function V2(e,t,n){var r=Qn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ny(e))ry(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,Xt(a,s)){var l=t.interleaved;l===null?(o.next=o,Af(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=N0(e,t,o,r),n!==null&&(o=lt(),Yt(n,e,r,o),oy(n,t,r))}}function ny(e){var t=e.alternate;return e===Ae||t!==null&&t===Ae}function ry(e,t){Li=Ya=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function oy(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,mf(e,n)}}var Xa={readContext:_t,useCallback:qe,useContext:qe,useEffect:qe,useImperativeHandle:qe,useInsertionEffect:qe,useLayoutEffect:qe,useMemo:qe,useReducer:qe,useRef:qe,useState:qe,useDebugValue:qe,useDeferredValue:qe,useTransition:qe,useMutableSource:qe,useSyncExternalStore:qe,useId:qe,unstable_isNewReconciler:!1},K2={readContext:_t,useCallback:function(e,t){return qt().memoizedState=[e,t===void 0?null:t],e},useContext:_t,useEffect:Ih,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ya(4194308,4,Q0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ya(4194308,4,e,t)},useInsertionEffect:function(e,t){return ya(4,2,e,t)},useMemo:function(e,t){var n=qt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=qt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=B2.bind(null,Ae,e),[r.memoizedState,e]},useRef:function(e){var t=qt();return e={current:e},t.memoizedState=e},useState:Nh,useDebugValue:jf,useDeferredValue:function(e){return qt().memoizedState=e},useTransition:function(){var e=Nh(!1),t=e[0];return e=_2.bind(null,e[1]),qt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ae,o=qt();if($e){if(n===void 0)throw Error(z(407));n=n()}else{if(n=t(),Xe===null)throw Error(z(349));Fr&30||K0(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Ih(W0.bind(null,r,i,e),[e]),r.flags|=2048,es(9,z0.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=qt(),t=Xe.identifierPrefix;if($e){var n=yn,r=vn;n=(r&~(1<<32-Gt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ji++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[en]=t,e[Xi]=r,py(e,t,!1,!1),t.stateNode=e;e:{switch(s=Mc(n,r),n){case"dialog":Ce("cancel",e),Ce("close",e),o=r;break;case"iframe":case"object":case"embed":Ce("load",e),o=r;break;case"video":case"audio":for(o=0;oVo&&(t.flags|=128,r=!0,ai(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ga(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ai(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!$e)return et(t),null}else 2*Re()-i.renderingStartTime>Vo&&n!==1073741824&&(t.flags|=128,r=!0,ai(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Re(),t.sibling=null,n=Ee.current,ye(Ee,r?n&1|2:n&1),t):(et(t),null);case 22:case 23:return Wf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?xt&1073741824&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),null;case 24:return null;case 25:return null}throw Error(z(156,t.tag))}function Q2(e,t){switch(Pf(t),t.tag){case 1:return gt(t.type)&&Ba(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _o(),Se(mt),Se(ot),Nf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Df(t),null;case 13:if(Se(Ee),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(z(340));Oo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Se(Ee),null;case 4:return _o(),null;case 10:return Tf(t.type._context),null;case 22:case 23:return Wf(),null;case 24:return null;default:return null}}var Us=!1,nt=!1,Z2=typeof WeakSet=="function"?WeakSet:Set,X=null;function bo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){De(e,t,r)}else n.current=null}function rd(e,t,n){try{n()}catch(r){De(e,t,r)}}var zh=!1;function q2(e,t){if(Bc=Fa,e=b0(),Cf(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++u===o&&(a=s),f===i&&++c===r&&(l=s),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Vc={focusedElem:e,selectionRange:n},Fa=!1,X=t;X!==null;)if(t=X,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,X=e;else for(;X!==null;){t=X;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var b=y.memoizedProps,w=y.memoizedState,x=t.stateNode,g=x.getSnapshotBeforeUpdate(t.elementType===t.type?b:zt(t.type,b),w);x.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(z(163))}}catch(S){De(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,X=e;break}X=t.return}return y=zh,zh=!1,y}function Di(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&rd(t,n,i)}o=o.next}while(o!==r)}}function _l(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function od(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function gy(e){var t=e.alternate;t!==null&&(e.alternate=null,gy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[en],delete t[Xi],delete t[Wc],delete t[I2],delete t[R2])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function vy(e){return e.tag===5||e.tag===3||e.tag===4}function Wh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vy(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function id(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=_a));else if(r!==4&&(e=e.child,e!==null))for(id(e,t,n),e=e.sibling;e!==null;)id(e,t,n),e=e.sibling}function sd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(sd(e,t,n),e=e.sibling;e!==null;)sd(e,t,n),e=e.sibling}var Qe=null,Wt=!1;function Dn(e,t,n){for(n=n.child;n!==null;)yy(e,t,n),n=n.sibling}function yy(e,t,n){if(nn&&typeof nn.onCommitFiberUnmount=="function")try{nn.onCommitFiberUnmount(Ll,n)}catch{}switch(n.tag){case 5:nt||bo(n,t);case 6:var r=Qe,o=Wt;Qe=null,Dn(e,t,n),Qe=r,Wt=o,Qe!==null&&(Wt?(e=Qe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Qe.removeChild(n.stateNode));break;case 18:Qe!==null&&(Wt?(e=Qe,n=n.stateNode,e.nodeType===8?Tu(e.parentNode,n):e.nodeType===1&&Tu(e,n),Wi(e)):Tu(Qe,n.stateNode));break;case 4:r=Qe,o=Wt,Qe=n.stateNode.containerInfo,Wt=!0,Dn(e,t,n),Qe=r,Wt=o;break;case 0:case 11:case 14:case 15:if(!nt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&rd(n,t,s),o=o.next}while(o!==r)}Dn(e,t,n);break;case 1:if(!nt&&(bo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){De(n,t,a)}Dn(e,t,n);break;case 21:Dn(e,t,n);break;case 22:n.mode&1?(nt=(r=nt)||n.memoizedState!==null,Dn(e,t,n),nt=r):Dn(e,t,n);break;default:Dn(e,t,n)}}function Uh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Z2),t.forEach(function(r){var o=aS.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Vt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=Re()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*eS(r/1960))-r,10e?16:e,Kn===null)var r=!1;else{if(e=Kn,Kn=null,qa=0,ue&6)throw Error(z(331));var o=ue;for(ue|=4,X=e.current;X!==null;){var i=X,s=i.child;if(X.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lRe()-Kf?Nr(e,0):Vf|=n),vt(e,t)}function Ey(e,t){t===0&&(e.mode&1?(t=Fs,Fs<<=1,!(Fs&130023424)&&(Fs=4194304)):t=1);var n=lt();e=kn(e,t),e!==null&&(hs(e,t,n),vt(e,n))}function sS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ey(e,n)}function aS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(z(314))}r!==null&&r.delete(t),Ey(e,n)}var ky;ky=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||mt.current)ht=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ht=!1,Y2(e,t,n);ht=!!(e.flags&131072)}else ht=!1,$e&&t.flags&1048576&&M0(t,za,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ba(e,t),e=t.pendingProps;var o=Fo(t,ot.current);Lo(t,n),o=Rf(null,t,r,e,o,n);var i=Ff();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,gt(r)?(i=!0,Va(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Mf(t),o.updater=Ol,t.stateNode=o,o._reactInternals=t,Qc(t,r,e,n),t=Jc(null,t,r,!0,i,n)):(t.tag=0,$e&&i&&Sf(t),at(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ba(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=uS(r),e=zt(r,e),o){case 0:t=qc(null,t,r,e,n);break e;case 1:t=Bh(null,t,r,e,n);break e;case 11:t=jh(null,t,r,e,n);break e;case 14:t=_h(null,t,r,zt(r.type,e),n);break e}throw Error(z(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:zt(r,o),qc(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:zt(r,o),Bh(e,t,r,o,n);case 3:e:{if(cy(t),e===null)throw Error(z(387));r=t.pendingProps,i=t.memoizedState,o=i.element,I0(e,t),Ha(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Bo(Error(z(423)),t),t=Vh(e,t,r,n,o);break e}else if(r!==o){o=Bo(Error(z(424)),t),t=Vh(e,t,r,n,o);break e}else for(Ct=Gn(t.stateNode.containerInfo.firstChild),Pt=t,$e=!0,Ht=null,n=j0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Oo(),r===o){t=Tn(e,t,n);break e}at(e,t,r,n)}t=t.child}return t;case 5:return _0(t),e===null&&Gc(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Kc(r,o)?s=null:i!==null&&Kc(r,i)&&(t.flags|=32),uy(e,t),at(e,t,s,n),t.child;case 6:return e===null&&Gc(t),null;case 13:return dy(e,t,n);case 4:return Lf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=jo(t,null,r,n):at(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:zt(r,o),jh(e,t,r,o,n);case 7:return at(e,t,t.pendingProps,n),t.child;case 8:return at(e,t,t.pendingProps.children,n),t.child;case 12:return at(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,ye(Wa,r._currentValue),r._currentValue=s,i!==null)if(Xt(i.value,s)){if(i.children===o.children&&!mt.current){t=Tn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Cn(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Yc(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(z(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Yc(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}at(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Lo(t,n),o=_t(o),r=r(o),t.flags|=1,at(e,t,r,n),t.child;case 14:return r=t.type,o=zt(r,t.pendingProps),o=zt(r.type,o),_h(e,t,r,o,n);case 15:return ay(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:zt(r,o),ba(e,t),t.tag=1,gt(r)?(e=!0,Va(t)):e=!1,Lo(t,n),F0(t,r,o),Qc(t,r,o,n),Jc(null,t,r,!0,e,n);case 19:return fy(e,t,n);case 22:return ly(e,t,n)}throw Error(z(156,t.tag))};function Ty(e,t){return e0(e,t)}function lS(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ot(e,t,n,r){return new lS(e,t,n,r)}function Hf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function uS(e){if(typeof e=="function")return Hf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===df)return 11;if(e===ff)return 14}return 2}function Zn(e,t){var n=e.alternate;return n===null?(n=Ot(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ca(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Hf(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case uo:return Ir(n.children,o,i,t);case cf:s=8,o|=8;break;case xc:return e=Ot(12,n,t,o|2),e.elementType=xc,e.lanes=i,e;case wc:return e=Ot(13,n,t,o),e.elementType=wc,e.lanes=i,e;case Cc:return e=Ot(19,n,t,o),e.elementType=Cc,e.lanes=i,e;case Ov:return Vl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Rv:s=10;break e;case Fv:s=9;break e;case df:s=11;break e;case ff:s=14;break e;case Rn:s=16,r=null;break e}throw Error(z(130,e==null?e:typeof e,""))}return t=Ot(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Ir(e,t,n,r){return e=Ot(7,e,r,t),e.lanes=n,e}function Vl(e,t,n,r){return e=Ot(22,e,r,t),e.elementType=Ov,e.lanes=n,e.stateNode={isHidden:!1},e}function Fu(e,t,n){return e=Ot(6,e,null,t),e.lanes=n,e}function Ou(e,t,n){return t=Ot(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function cS(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vu(0),this.expirationTimes=vu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vu(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Gf(e,t,n,r,o,i,s,a,l){return e=new cS(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ot(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Mf(i),e}function dS(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Dy)}catch(e){console.error(e)}}Dy(),Mv.exports=kt;var Zf=Mv.exports;const Ny=Al(Zf);var Jh=Zf;yc.createRoot=Jh.createRoot,yc.hydrateRoot=Jh.hydrateRoot;const tl={prefix:String(Math.round(Math.random()*1e10)),current:0},Iy=ee.createContext(tl),gS=ee.createContext(!1);let vS=!!(typeof window<"u"&&window.document&&window.document.createElement),ju=new WeakMap;function yS(e=!1){let t=h.useContext(Iy),n=h.useRef(null);if(n.current===null&&!e){var r,o;let i=(o=ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(r=o.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let s=ju.get(i);s==null?ju.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==s.state&&(t.current=s.id,ju.delete(i))}n.current=++t.current}return n.current}function bS(e){let t=h.useContext(Iy);t===tl&&!vS&&console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.");let n=yS(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function xS(e){let t=ee.useId(),[n]=h.useState(ys()),r=n?"react-aria":`react-aria${tl.prefix}`;return e||`${r}-${t}`}const wS=typeof ee.useId=="function"?xS:bS;function CS(){return!1}function SS(){return!0}function PS(e){return()=>{}}function ys(){return typeof ee.useSyncExternalStore=="function"?ee.useSyncExternalStore(PS,CS,SS):h.useContext(gS)}class $S{getStringForLocale(t,n){let r=this.strings[n];r||(r=ES(n,this.strings,this.defaultLocale),this.strings[n]=r);let o=r[t];if(!o)throw new Error(`Could not find intl message ${t} in ${n} locale`);return o}constructor(t,n="en-US"){this.strings={...t},this.defaultLocale=n}}function ES(e,t,n="en-US"){if(t[e])return t[e];let r=kS(e);if(t[r])return t[r];for(let o in t)if(o.startsWith(r+"-"))return t[o];return t[n]}function kS(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const em=new Map,tm=new Map;class TS{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let o=n["="+t];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+r,s=em.get(i);s||(s=new Intl.PluralRules(this.locale,{type:r}),em.set(i,s));let a=s.select(t);return o=n[a]||n.other,typeof o=="function"?o():o}number(t){let n=tm.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),tm.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}function AS(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function MS(e,t,n){AS(e,t),t.set(e,n)}function pr(e,t,n){let[r,o]=h.useState(e||t),i=h.useRef(e!==void 0),s=e!==void 0;h.useEffect(()=>{let u=i.current;u!==s&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),i.current=s},[s]);let a=s?e:r,l=h.useCallback((u,...c)=>{let d=(f,...p)=>{n&&(Object.is(a,f)||n(f,...p)),s||(a=f)};typeof u=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((p,...y)=>{let b=u(s?a:p,...y);return d(b,...c),s?p:b})):(s||o(u),d(u,...c))},[s,a,n]);return[a,l]}function dd(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function Ry(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t{};function Fe(e){const t=h.useRef(null);return Te(()=>{t.current=e},[e]),h.useCallback((...n)=>{const r=t.current;return r(...n)},[])}function DS(e){let[t,n]=h.useState(e),r=h.useRef(null),o=Fe(()=>{let s=r.current.next();if(s.done){r.current=null;return}t===s.value?o():n(s.value)});Te(()=>{r.current&&o()});let i=Fe(s=>{r.current=s(t),o()});return[t,i]}let NS=!!(typeof window<"u"&&window.document&&window.document.createElement),nl=new Map;function sn(e){let[t,n]=h.useState(e),r=h.useRef(null),o=wS(t),i=h.useCallback(s=>{r.current=s},[]);return NS&&nl.set(o,i),Te(()=>{let s=o;return()=>{nl.delete(s)}},[o]),h.useEffect(()=>{let s=r.current;s&&(r.current=null,n(s))}),o}function IS(e,t){if(e===t)return e;let n=nl.get(e);if(n)return n(t),t;let r=nl.get(t);return r?(r(e),e):t}function qn(e=[]){let t=sn(),[n,r]=DS(t),o=h.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Te(o,[t,o,...e]),n}function zr(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const gn=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},rl=e=>e&&"window"in e&&e.window===e?e:gn(e).defaultView||window;function Y(...e){let t={...e[0]};for(let n=1;n=65&&o.charCodeAt(2)<=90?t[o]=zr(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=LS(i,s):o==="id"&&i&&s?t.id=IS(i,s):t[o]=s!==void 0?s:i}}return t}function RS(...e){return e.length===1?e[0]:t=>{for(let n of e)typeof n=="function"?n(t):n!=null&&(n.current=t)}}const FS=new Set(["id"]),OS=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),jS=new Set(["href","target","rel","download","ping","referrerPolicy"]),_S=/^(data-.*)$/;function hr(e,t={}){let{labelable:n,isLink:r,propNames:o}=t,i={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(FS.has(s)||n&&OS.has(s)||r&&jS.has(s)||o!=null&&o.has(s)||_S.test(s))&&(i[s]=e[s]);return i}function St(e){if(BS())e.focus({preventScroll:!0});else{let t=VS(e);e.focus(),KS(t)}}let Ys=null;function BS(){if(Ys==null){Ys=!1;try{var e=document.createElement("div");e.focus({get preventScroll(){return Ys=!0,!0}})}catch{}}return Ys}function VS(e){for(var t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==r;)(t.offsetHeight"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function qf(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function An(){return qf(/^Mac/i)}function zS(){return qf(/^iPhone/i)}function Fy(){return qf(/^iPad/i)||An()&&navigator.maxTouchPoints>1}function bs(){return zS()||Fy()}function Sa(){return An()||bs()}function Oy(){return Hl(/AppleWebKit/i)&&!WS()}function WS(){return Hl(/Chrome/i)}function jy(){return Hl(/Android/i)}function US(){return Hl(/Firefox/i)}const _y=h.createContext({isNative:!0,open:YS});function HS(e){let{children:t,navigate:n}=e,r=h.useMemo(()=>({isNative:!1,open:(o,i)=>{By(o,s=>{GS(s,i)?n(s.pathname+s.search+s.hash):an(s,i)})}}),[n]);return ee.createElement(_y.Provider,{value:r},t)}function Gl(){return h.useContext(_y)}function GS(e,t){let n=e.getAttribute("target");return(!n||n==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function an(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:s,altKey:a,shiftKey:l}=t;US()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(An()?i=!0:s=!0);let u=Oy()&&An()&&!Fy()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:s,altKey:a,shiftKey:l}):new MouseEvent("click",{metaKey:i,ctrlKey:s,altKey:a,shiftKey:l,bubbles:!0,cancelable:!0});an.isOpening=n,St(e),e.dispatchEvent(u),an.isOpening=!1}an.isOpening=!1;function By(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function YS(e,t){By(e,n=>an(n,t))}let so=new Map,fd=new Set;function nm(){if(typeof window>"u")return;let e=n=>{let r=so.get(n.target);r||(r=new Set,so.set(n.target,r),n.target.addEventListener("transitioncancel",t)),r.add(n.propertyName)},t=n=>{let r=so.get(n.target);if(r&&(r.delete(n.propertyName),r.size===0&&(n.target.removeEventListener("transitioncancel",t),so.delete(n.target)),so.size===0)){for(let o of fd)o();fd.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?nm():document.addEventListener("DOMContentLoaded",nm));function Jf(e){requestAnimationFrame(()=>{so.size===0?e():fd.add(e)})}function ep(){let e=h.useRef(new Map),t=h.useCallback((o,i,s,a)=>{let l=a!=null&&a.once?(...u)=>{e.current.delete(s),s(...u)}:s;e.current.set(s,{type:i,eventTarget:o,fn:l,options:a}),o.addEventListener(i,s,a)},[]),n=h.useCallback((o,i,s,a)=>{var l;let u=((l=e.current.get(s))===null||l===void 0?void 0:l.fn)||s;o.removeEventListener(i,u,a),e.current.delete(s)},[]),r=h.useCallback(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return h.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function ol(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;return n=sn(n),o&&r?o=[...new Set([n,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!r&&!o&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function XS(){return typeof window.ResizeObserver<"u"}function Vy(e){const{ref:t,onResize:n}=e;h.useEffect(()=>{let r=t==null?void 0:t.current;if(r)if(XS()){const o=new window.ResizeObserver(i=>{i.length&&n()});return o.observe(r),()=>{r&&o.unobserve(r)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t])}function tp(e,t){Te(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}})}function rm(e){for(il(e)&&(e=e.parentElement);e&&!il(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function il(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}let QS=0;const _u=new Map;function ZS(e){let[t,n]=h.useState(void 0);return Te(()=>{if(!e)return;let r=_u.get(e);if(r)n(r.element.id);else{let o=`react-aria-description-${QS++}`;n(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),r={refCount:0,element:i},_u.set(e,r)}return r.refCount++,()=>{--r.refCount===0&&(r.element.remove(),_u.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function qS(e,t,n,r){let o=Fe(n),i=n==null;h.useEffect(()=>{if(i)return;let s=e.current;return s.addEventListener(t,o,r),()=>{s.removeEventListener(t,o,r)}},[e,t,r,i,o])}function Ky(e,t){let n=om(e,t,"left"),r=om(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,s=e.scrollLeft,a=e.scrollTop,{borderTopWidth:l,borderLeftWidth:u}=getComputedStyle(e),c=e.scrollLeft+parseInt(u,10),d=e.scrollTop+parseInt(l,10),f=c+e.clientWidth,p=d+e.clientHeight;n<=s?s=n-parseInt(u,10):n+o>f&&(s+=n+o-f),r<=d?a=r-parseInt(l,10):r+i>p&&(a+=r+i-p),e.scrollLeft=s,e.scrollTop=a}function om(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent}return o}function im(e,t){if(document.contains(e)){let s=document.scrollingElement||document.documentElement;if(window.getComputedStyle(s).overflow==="hidden"){let l=rm(e);for(;e&&l&&e!==s&&l!==s;)Ky(l,e),e=l,l=rm(e)}else{var n;let{left:l,top:u}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:c,top:d}=e.getBoundingClientRect();if(Math.abs(l-c)>1||Math.abs(u-d)>1){var r,o,i;t==null||(o=t.containingElement)===null||o===void 0||(r=o.scrollIntoView)===null||r===void 0||r.call(o,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}}}function ns(e){return e.mozInputSource===0&&e.isTrusted?!0:jy()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function zy(e){return!jy()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function JS(e,t,n){let r=h.useRef(t),o=Fe(()=>{n&&n(r.current)});h.useEffect(()=>{var i;let s=e==null||(i=e.current)===null||i===void 0?void 0:i.form;return s==null||s.addEventListener("reset",o),()=>{s==null||s.removeEventListener("reset",o)}},[e,o])}const eP=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),tP=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Wy(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize().script;return n?eP.has(n):!1}let t=e.split("-")[0];return tP.has(t)}function Uy(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Wy(e)?"rtl":"ltr"}}let pd=Uy(),Ci=new Set;function sm(){pd=Uy();for(let e of Ci)e(pd)}function Hy(){let e=ys(),[t,n]=h.useState(pd);return h.useEffect(()=>(Ci.size===0&&window.addEventListener("languagechange",sm),Ci.add(n),()=>{Ci.delete(n),Ci.size===0&&window.removeEventListener("languagechange",sm)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const Gy=ee.createContext(null);function nP(e){let{locale:t,children:n}=e,r=Hy(),o=t?{locale:t,direction:Wy(t)?"rtl":"ltr"}:r;return ee.createElement(Gy.Provider,{value:o},n)}function xs(){let e=Hy();return h.useContext(Gy)||e}const am=new WeakMap;function rP(e){let t=am.get(e);return t||(t=new $S(e),am.set(e,t)),t}function np(e){let{locale:t}=xs(),n=h.useMemo(()=>rP(e),[e]);return h.useMemo(()=>new TS(t,n),[t,n])}let Bu=new Map;function Yy(e){let{locale:t}=xs(),n=t+(e?Object.entries(e).sort((o,i)=>o[0]s.length===0?!0:(i=i.normalize("NFC"),s=s.normalize("NFC"),t.compare(i.slice(0,s.length),s)===0),[t]),r=h.useCallback((i,s)=>s.length===0?!0:(i=i.normalize("NFC"),s=s.normalize("NFC"),t.compare(i.slice(-s.length),s)===0),[t]),o=h.useCallback((i,s)=>{if(s.length===0)return!0;i=i.normalize("NFC"),s=s.normalize("NFC");let a=0,l=s.length;for(;a+l<=i.length;a++){let u=i.slice(a,a+l);if(t.compare(s,u)===0)return!0}return!1},[t]);return h.useMemo(()=>({startsWith:n,endsWith:r,contains:o}),[n,r,o])}var tn=function(){return tn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r{Jf(()=>{if(wo==="restoring"){const t=gn(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=hd||""),hd="",wo="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Pa.has(e)){let t=Pa.get(e);e.style.userSelect==="none"&&t&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Pa.delete(e)}}const rp=ee.createContext({register:()=>{}});rp.displayName="PressResponderContext";function uP(e){let t=h.useContext(rp);if(t){let{register:n,...r}=t;e=Y(r,e),n()}return tp(t,e.ref),e}var Qs=new WeakMap;class Zs{continuePropagation(){lm(this,Qs,!1)}get shouldStopPropagation(){return aP(this,Qs)}constructor(t,n,r){MS(this,Qs,{writable:!0,value:void 0}),lm(this,Qs,!0),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey}}const cm=Symbol("linkClicked");function ws(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,isDisabled:s,isPressed:a,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:c,ref:d,...f}=uP(e),[p,y]=h.useState(!1),b=h.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:w,removeAllGlobalListeners:x}=ep(),g=Fe((m,L)=>{let M=b.current;if(s||M.didFirePressStart)return!1;let E=!0;if(M.isTriggeringEvent=!0,r){let N=new Zs("pressstart",L,m);r(N),E=N.shouldStopPropagation}return n&&n(!0),M.isTriggeringEvent=!1,M.didFirePressStart=!0,y(!0),E}),v=Fe((m,L,M=!0)=>{let E=b.current;if(!E.didFirePressStart)return!1;E.ignoreClickAfterPress=!0,E.didFirePressStart=!1,E.isTriggeringEvent=!0;let N=!0;if(o){let C=new Zs("pressend",L,m);o(C),N=C.shouldStopPropagation}if(n&&n(!1),y(!1),t&&M&&!s){let C=new Zs("press",L,m);t(C),N&&(N=C.shouldStopPropagation)}return E.isTriggeringEvent=!1,N}),S=Fe((m,L)=>{let M=b.current;if(s)return!1;if(i){M.isTriggeringEvent=!0;let E=new Zs("pressup",L,m);return i(E),M.isTriggeringEvent=!1,E.shouldStopPropagation}return!0}),k=Fe(m=>{let L=b.current;L.isPressed&&L.target&&(L.isOverTarget&&L.pointerType!=null&&v(cn(L.target,m),L.pointerType,!1),L.isPressed=!1,L.isOverTarget=!1,L.activePointerId=null,L.pointerType=null,x(),c||Xs(L.target))}),A=Fe(m=>{u&&k(m)}),D=h.useMemo(()=>{let m=b.current,L={onKeyDown(E){if(Vu(E.nativeEvent,E.currentTarget)&&E.currentTarget.contains(E.target)){var N;fm(E.target,E.key)&&E.preventDefault();let C=!0;!m.isPressed&&!E.repeat&&(m.target=E.currentTarget,m.isPressed=!0,C=g(E,"keyboard"),w(gn(E.currentTarget),"keyup",M,!1)),C&&E.stopPropagation(),E.metaKey&&An()&&((N=m.metaKeyEvents)===null||N===void 0||N.set(E.key,E.nativeEvent))}else E.key==="Meta"&&(m.metaKeyEvents=new Map)},onKeyUp(E){Vu(E.nativeEvent,E.currentTarget)&&!E.repeat&&E.currentTarget.contains(E.target)&&m.target&&S(cn(m.target,E),"keyboard")},onClick(E){if(!(E&&!E.currentTarget.contains(E.target))&&E&&E.button===0&&!m.isTriggeringEvent&&!an.isOpening){let N=!0;if(s&&E.preventDefault(),!m.ignoreClickAfterPress&&!m.ignoreEmulatedMouseEvents&&!m.isPressed&&(m.pointerType==="virtual"||ns(E.nativeEvent))){!s&&!l&&St(E.currentTarget);let C=g(E,"virtual"),$=S(E,"virtual"),R=v(E,"virtual");N=C&&$&&R}m.ignoreEmulatedMouseEvents=!1,m.ignoreClickAfterPress=!1,N&&E.stopPropagation()}}},M=E=>{var N;if(m.isPressed&&m.target&&Vu(E,m.target)){var C;fm(E.target,E.key)&&E.preventDefault();let R=E.target,_=v(cn(m.target,E),"keyboard",m.target.contains(R));x(),_&&E.stopPropagation(),E.key!=="Enter"&&op(m.target)&&m.target.contains(R)&&!E[cm]&&(E[cm]=!0,an(m.target,E,!1)),m.isPressed=!1,(C=m.metaKeyEvents)===null||C===void 0||C.delete(E.key)}else if(E.key==="Meta"&&(!((N=m.metaKeyEvents)===null||N===void 0)&&N.size)){var $;let R=m.metaKeyEvents;m.metaKeyEvents=void 0;for(let _ of R.values())($=m.target)===null||$===void 0||$.dispatchEvent(new KeyboardEvent("keyup",_))}};if(typeof PointerEvent<"u"){L.onPointerDown=$=>{if($.button!==0||!$.currentTarget.contains($.target))return;if(zy($.nativeEvent)){m.pointerType="virtual";return}Ku($.currentTarget)&&$.preventDefault(),m.pointerType=$.pointerType;let R=!0;m.isPressed||(m.isPressed=!0,m.isOverTarget=!0,m.activePointerId=$.pointerId,m.target=$.currentTarget,!s&&!l&&St($.currentTarget),c||um(m.target),R=g($,m.pointerType),w(gn($.currentTarget),"pointermove",E,!1),w(gn($.currentTarget),"pointerup",N,!1),w(gn($.currentTarget),"pointercancel",C,!1)),R&&$.stopPropagation()},L.onMouseDown=$=>{$.currentTarget.contains($.target)&&$.button===0&&(Ku($.currentTarget)&&$.preventDefault(),$.stopPropagation())},L.onPointerUp=$=>{!$.currentTarget.contains($.target)||m.pointerType==="virtual"||$.button===0&&Jr($,$.currentTarget)&&S($,m.pointerType||$.pointerType)};let E=$=>{$.pointerId===m.activePointerId&&(m.target&&Jr($,m.target)?!m.isOverTarget&&m.pointerType!=null&&(m.isOverTarget=!0,g(cn(m.target,$),m.pointerType)):m.target&&m.isOverTarget&&m.pointerType!=null&&(m.isOverTarget=!1,v(cn(m.target,$),m.pointerType,!1),A($)))},N=$=>{$.pointerId===m.activePointerId&&m.isPressed&&$.button===0&&m.target&&(Jr($,m.target)&&m.pointerType!=null?v(cn(m.target,$),m.pointerType):m.isOverTarget&&m.pointerType!=null&&v(cn(m.target,$),m.pointerType,!1),m.isPressed=!1,m.isOverTarget=!1,m.activePointerId=null,m.pointerType=null,x(),c||Xs(m.target))},C=$=>{k($)};L.onDragStart=$=>{$.currentTarget.contains($.target)&&k($)}}else{L.onMouseDown=C=>{if(C.button!==0||!C.currentTarget.contains(C.target))return;if(Ku(C.currentTarget)&&C.preventDefault(),m.ignoreEmulatedMouseEvents){C.stopPropagation();return}m.isPressed=!0,m.isOverTarget=!0,m.target=C.currentTarget,m.pointerType=ns(C.nativeEvent)?"virtual":"mouse",!s&&!l&&St(C.currentTarget),g(C,m.pointerType)&&C.stopPropagation(),w(gn(C.currentTarget),"mouseup",E,!1)},L.onMouseEnter=C=>{if(!C.currentTarget.contains(C.target))return;let $=!0;m.isPressed&&!m.ignoreEmulatedMouseEvents&&m.pointerType!=null&&(m.isOverTarget=!0,$=g(C,m.pointerType)),$&&C.stopPropagation()},L.onMouseLeave=C=>{if(!C.currentTarget.contains(C.target))return;let $=!0;m.isPressed&&!m.ignoreEmulatedMouseEvents&&m.pointerType!=null&&(m.isOverTarget=!1,$=v(C,m.pointerType,!1),A(C)),$&&C.stopPropagation()},L.onMouseUp=C=>{C.currentTarget.contains(C.target)&&!m.ignoreEmulatedMouseEvents&&C.button===0&&S(C,m.pointerType||"mouse")};let E=C=>{if(C.button===0){if(m.isPressed=!1,x(),m.ignoreEmulatedMouseEvents){m.ignoreEmulatedMouseEvents=!1;return}m.target&&Jr(C,m.target)&&m.pointerType!=null?v(cn(m.target,C),m.pointerType):m.target&&m.isOverTarget&&m.pointerType!=null&&v(cn(m.target,C),m.pointerType,!1),m.isOverTarget=!1}};L.onTouchStart=C=>{if(!C.currentTarget.contains(C.target))return;let $=cP(C.nativeEvent);if(!$)return;m.activePointerId=$.identifier,m.ignoreEmulatedMouseEvents=!0,m.isOverTarget=!0,m.isPressed=!0,m.target=C.currentTarget,m.pointerType="touch",!s&&!l&&St(C.currentTarget),c||um(m.target),g(C,m.pointerType)&&C.stopPropagation(),w(rl(C.currentTarget),"scroll",N,!0)},L.onTouchMove=C=>{if(!C.currentTarget.contains(C.target))return;if(!m.isPressed){C.stopPropagation();return}let $=dm(C.nativeEvent,m.activePointerId),R=!0;$&&Jr($,C.currentTarget)?!m.isOverTarget&&m.pointerType!=null&&(m.isOverTarget=!0,R=g(C,m.pointerType)):m.isOverTarget&&m.pointerType!=null&&(m.isOverTarget=!1,R=v(C,m.pointerType,!1),A(C)),R&&C.stopPropagation()},L.onTouchEnd=C=>{if(!C.currentTarget.contains(C.target))return;if(!m.isPressed){C.stopPropagation();return}let $=dm(C.nativeEvent,m.activePointerId),R=!0;$&&Jr($,C.currentTarget)&&m.pointerType!=null?(S(C,m.pointerType),R=v(C,m.pointerType)):m.isOverTarget&&m.pointerType!=null&&(R=v(C,m.pointerType,!1)),R&&C.stopPropagation(),m.isPressed=!1,m.activePointerId=null,m.isOverTarget=!1,m.ignoreEmulatedMouseEvents=!0,m.target&&!c&&Xs(m.target),x()},L.onTouchCancel=C=>{C.currentTarget.contains(C.target)&&(C.stopPropagation(),m.isPressed&&k(C))};let N=C=>{m.isPressed&&C.target.contains(m.target)&&k({currentTarget:m.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};L.onDragStart=C=>{C.currentTarget.contains(C.target)&&k(C)}}return L},[w,s,l,x,c,k,A,v,g,S]);return h.useEffect(()=>()=>{var m;c||Xs((m=b.current.target)!==null&&m!==void 0?m:void 0)},[c]),{isPressed:a||p,pressProps:Y(f,D)}}function op(e){return e.tagName==="A"&&e.hasAttribute("href")}function Vu(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof rl(o).HTMLInputElement&&!Zy(o,n)||o instanceof rl(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&op(o))&&n!=="Enter")}function cP(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function dm(e,t){const n=e.changedTouches;for(let r=0;rt.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Jr(e,t){let n=t.getBoundingClientRect(),r=dP(e);return fP(n,r)}function Ku(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function fm(e,t){return e instanceof HTMLInputElement?!Zy(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!op(e)}const pP=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Zy(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":pP.has(e.type)}function hP({children:e}){let t=h.useMemo(()=>({register:()=>{}}),[]);return ee.createElement(rp.Provider,{value:t},e)}class mP{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function qy(e){let t=h.useRef({isFocused:!1,observer:null});Te(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Fe(r=>{e==null||e(r)});return h.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=s=>{t.current.isFocused=!1,o.disabled&&n(new mP("blur",s)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let a=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function Jy(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=h.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),o&&o(!1),!0},[r,o]),s=qy(i),a=h.useCallback(l=>{l.target===l.currentTarget&&document.activeElement===l.target&&(n&&n(l),o&&o(!0),s(l))},[o,n,s]);return{focusProps:{onFocus:!t&&(n||o||r)?a:void 0,onBlur:!t&&(r||o)?i:void 0}}}let Wr=null,md=new Set,pm=!1,Br=!1,gd=!1;const gP={Tab:!0,Escape:!0};function Yl(e,t){for(let n of md)n(e,t)}function vP(e){return!(e.metaKey||!An()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function hm(e){Br=!0,vP(e)&&(Wr="keyboard",Yl("keyboard",e))}function eo(e){Wr="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Br=!0,Yl("pointer",e))}function yP(e){ns(e)&&(Br=!0,Wr="virtual")}function bP(e){e.target===window||e.target===document||(!Br&&!gd&&(Wr="virtual",Yl("virtual",e)),Br=!1,gd=!1)}function xP(){Br=!1,gd=!0}function vd(){if(typeof window>"u"||pm)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){Br=!0,e.apply(this,arguments)},document.addEventListener("keydown",hm,!0),document.addEventListener("keyup",hm,!0),document.addEventListener("click",yP,!0),window.addEventListener("focus",bP,!0),window.addEventListener("blur",xP,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",eo,!0),document.addEventListener("pointermove",eo,!0),document.addEventListener("pointerup",eo,!0)):(document.addEventListener("mousedown",eo,!0),document.addEventListener("mousemove",eo,!0),document.addEventListener("mouseup",eo,!0)),pm=!0}typeof document<"u"&&(document.readyState!=="loading"?vd():document.addEventListener("DOMContentLoaded",vd));function Ko(){return Wr!=="pointer"}function sl(){return Wr}function wP(e){Wr=e,Yl(e,null)}const CP=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function SP(e,t,n){var r;return e=e||(n==null?void 0:n.target)instanceof HTMLInputElement&&!CP.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof HTMLTextAreaElement||(n==null?void 0:n.target)instanceof HTMLElement&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof KeyboardEvent&&!gP[n.key])}function PP(e,t,n){vd(),h.useEffect(()=>{let r=(o,i)=>{SP(!!(n!=null&&n.isTextInput),o,i)&&e(Ko())};return md.add(r),()=>{md.delete(r)}},t)}function Cs(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=h.useRef({isFocusWithin:!1}),s=h.useCallback(u=>{i.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(u),o&&o(!1))},[n,o,i]),a=qy(s),l=h.useCallback(u=>{!i.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),o&&o(!0),i.current.isFocusWithin=!0,a(u))},[r,o,a]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:s}}}let al=!1,zu=0;function yd(){al=!0,setTimeout(()=>{al=!1},50)}function mm(e){e.pointerType==="touch"&&yd()}function $P(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",mm):document.addEventListener("touchend",yd),zu++,()=>{zu--,!(zu>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",mm):document.removeEventListener("touchend",yd))}}function un(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,s]=h.useState(!1),a=h.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;h.useEffect($P,[]);let{hoverProps:l,triggerHoverEnd:u}=h.useMemo(()=>{let c=(p,y)=>{if(a.pointerType=y,o||y==="touch"||a.isHovered||!p.currentTarget.contains(p.target))return;a.isHovered=!0;let b=p.currentTarget;a.target=b,t&&t({type:"hoverstart",target:b,pointerType:y}),n&&n(!0),s(!0)},d=(p,y)=>{if(a.pointerType="",a.target=null,y==="touch"||!a.isHovered)return;a.isHovered=!1;let b=p.currentTarget;r&&r({type:"hoverend",target:b,pointerType:y}),n&&n(!1),s(!1)},f={};return typeof PointerEvent<"u"?(f.onPointerEnter=p=>{al&&p.pointerType==="mouse"||c(p,p.pointerType)},f.onPointerLeave=p=>{!o&&p.currentTarget.contains(p.target)&&d(p,p.pointerType)}):(f.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},f.onMouseEnter=p=>{!a.ignoreEmulatedMouseEvents&&!al&&c(p,"mouse"),a.ignoreEmulatedMouseEvents=!1},f.onMouseLeave=p=>{!o&&p.currentTarget.contains(p.target)&&d(p,"mouse")}),{hoverProps:f,triggerHoverEnd:d}},[t,n,r,o,a]);return h.useEffect(()=>{o&&u({currentTarget:a.target},a.pointerType)},[o]),{hoverProps:l,isHovered:i}}function EP(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,i=h.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=Fe(l=>{n&&qs(l,t)&&(o&&o(l),i.current.isPointerDown=!0)}),a=Fe(l=>{n&&n(l)});h.useEffect(()=>{let l=i.current;if(r)return;const u=t.current,c=gn(u);if(typeof PointerEvent<"u"){let d=f=>{l.isPointerDown&&qs(f,t)&&a(f),l.isPointerDown=!1};return c.addEventListener("pointerdown",s,!0),c.addEventListener("pointerup",d,!0),()=>{c.removeEventListener("pointerdown",s,!0),c.removeEventListener("pointerup",d,!0)}}else{let d=p=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&qs(p,t)&&a(p),l.isPointerDown=!1},f=p=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&qs(p,t)&&a(p),l.isPointerDown=!1};return c.addEventListener("mousedown",s,!0),c.addEventListener("mouseup",d,!0),c.addEventListener("touchstart",s,!0),c.addEventListener("touchend",f,!0),()=>{c.removeEventListener("mousedown",s,!0),c.removeEventListener("mouseup",d,!0),c.removeEventListener("touchstart",s,!0),c.removeEventListener("touchend",f,!0)}}},[t,r,s,a])}function qs(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function gm(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function eb(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:gm(e.onKeyDown),onKeyUp:gm(e.onKeyUp)}}}const kP=500;function tb(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:i=kP,accessibilityDescription:s}=e;const a=h.useRef();let{addGlobalListener:l,removeGlobalListener:u}=ep(),{pressProps:c}=ws({isDisabled:t,onPressStart(f){if(f.continuePropagation(),(f.pointerType==="mouse"||f.pointerType==="touch")&&(n&&n({...f,type:"longpressstart"}),a.current=setTimeout(()=>{f.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...f,type:"longpress"}),a.current=void 0},i),f.pointerType==="touch")){let p=y=>{y.preventDefault()};l(f.target,"contextmenu",p,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{u(f.target,"contextmenu",p)},30)},{once:!0})}},onPressEnd(f){a.current&&clearTimeout(a.current),r&&(f.pointerType==="mouse"||f.pointerType==="touch")&&r({...f,type:"longpressend"})}}),d=ZS(o&&!t?s:void 0);return{longPressProps:Y(c,d)}}function ir(e){if(sl()==="virtual"){let t=document.activeElement;Jf(()=>{document.activeElement===t&&document.contains(e)&&St(e)})}else St(e)}function TP(e){if(!(e instanceof HTMLElement)&&!(e instanceof SVGElement))return!1;let{display:t,visibility:n}=e.style,r=t!=="none"&&n!=="hidden"&&n!=="collapse";if(r){const{getComputedStyle:o}=e.ownerDocument.defaultView;let{display:i,visibility:s}=o(e);r=i!=="none"&&s!=="hidden"&&s!=="collapse"}return r}function AP(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function nb(e,t){return e.nodeName!=="#comment"&&TP(e)&&AP(e,t)&&(!e.parentElement||nb(e.parentElement,e))}const vm=ee.createContext(null);let ve=null;function rb(e){let{children:t,contain:n,restoreFocus:r,autoFocus:o}=e,i=h.useRef(null),s=h.useRef(null),a=h.useRef([]),{parentNode:l}=h.useContext(vm)||{},u=h.useMemo(()=>new bd({scopeRef:a}),[a]);Te(()=>{let f=l||Ve.root;if(Ve.getTreeNode(f.scopeRef)&&ve&&!ul(ve,f.scopeRef)){let p=Ve.getTreeNode(ve);p&&(f=p)}f.addChild(u),Ve.addNode(u)},[u,l]),Te(()=>{let f=Ve.getTreeNode(a);f&&(f.contain=!!n)},[n]),Te(()=>{var f;let p=(f=i.current)===null||f===void 0?void 0:f.nextSibling,y=[];for(;p&&p!==s.current;)y.push(p),p=p.nextSibling;a.current=y},[t]),FP(a,r,n),NP(a,n),jP(a,r,n),RP(a,o),h.useEffect(()=>{let f=document.activeElement,p=null;if(rt(f,a.current)){for(let y of Ve.traverse())y.scopeRef&&rt(f,y.scopeRef.current)&&(p=y);p===Ve.getTreeNode(a)&&(ve=p.scopeRef)}},[a]),Te(()=>()=>{var f,p,y;let b=(y=(p=Ve.getTreeNode(a))===null||p===void 0||(f=p.parent)===null||f===void 0?void 0:f.scopeRef)!==null&&y!==void 0?y:null;(a===ve||ul(a,ve))&&(!b||Ve.getTreeNode(b))&&(ve=b),Ve.removeTreeNode(a)},[a]);let c=h.useMemo(()=>MP(a),[]),d=h.useMemo(()=>({focusManager:c,parentNode:u}),[u,c]);return ee.createElement(vm.Provider,{value:d},ee.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,ee.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:s}))}function MP(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:s}=t,a=r||document.activeElement,l=n[0].previousElementSibling,u=Mr(n),c=xn(u,{tabbable:o,accept:s},n);c.currentNode=rt(a,n)?a:l;let d=c.nextNode();return!d&&i&&(c.currentNode=l,d=c.nextNode()),d&&bn(d,!0),d},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:s}=t,a=r||document.activeElement,l=n[n.length-1].nextElementSibling,u=Mr(n),c=xn(u,{tabbable:o,accept:s},n);c.currentNode=rt(a,n)?a:l;let d=c.previousNode();return!d&&i&&(c.currentNode=l,d=c.previousNode()),d&&bn(d,!0),d},focusFirst(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Mr(n),s=xn(i,{tabbable:r,accept:o},n);s.currentNode=n[0].previousElementSibling;let a=s.nextNode();return a&&bn(a,!0),a},focusLast(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Mr(n),s=xn(i,{tabbable:r,accept:o},n);s.currentNode=n[n.length-1].nextElementSibling;let a=s.previousNode();return a&&bn(a,!0),a}}}const ip=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],LP=ip.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";ip.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const DP=ip.join(':not([hidden]):not([tabindex="-1"]),');function Mr(e){return e[0].parentElement}function Si(e){let t=Ve.getTreeNode(ve);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function NP(e,t){let n=h.useRef(),r=h.useRef();Te(()=>{let o=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}let i=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!Si(e))return;let u=document.activeElement,c=e.current;if(!c||!rt(u,c))return;let d=Mr(c),f=xn(d,{tabbable:!0},c);if(!u)return;f.currentNode=u;let p=l.shiftKey?f.previousNode():f.nextNode();p||(f.currentNode=l.shiftKey?c[c.length-1].nextElementSibling:c[0].previousElementSibling,p=l.shiftKey?f.previousNode():f.nextNode()),l.preventDefault(),p&&bn(p,!0)},s=l=>{(!ve||ul(ve,e))&&rt(l.target,e.current)?(ve=e,n.current=l.target):Si(e)&&!ll(l.target,e)?n.current?n.current.focus():ve&&ve.current&&cl(ve.current):Si(e)&&(n.current=l.target)},a=l=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(document.activeElement&&Si(e)&&!ll(document.activeElement,e))if(ve=e,document.body.contains(l.target)){var u;n.current=l.target,(u=n.current)===null||u===void 0||u.focus()}else ve.current&&cl(ve.current)})};return document.addEventListener("keydown",i,!1),document.addEventListener("focusin",s,!1),o==null||o.forEach(l=>l.addEventListener("focusin",s,!1)),o==null||o.forEach(l=>l.addEventListener("focusout",a,!1)),()=>{document.removeEventListener("keydown",i,!1),document.removeEventListener("focusin",s,!1),o==null||o.forEach(l=>l.removeEventListener("focusin",s,!1)),o==null||o.forEach(l=>l.removeEventListener("focusout",a,!1))}},[e,t]),Te(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function ob(e){return ll(e)}function rt(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function ll(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Ve.traverse(Ve.getTreeNode(t)))if(n&&rt(e,n.current))return!0;return!1}function IP(e){return ll(e,ve)}function ul(e,t){var n;let r=(n=Ve.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function bn(e,t=!1){if(e!=null&&!t)try{ir(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function cl(e,t=!0){let n=e[0].previousElementSibling,r=Mr(e),o=xn(r,{tabbable:t},e);o.currentNode=n;let i=o.nextNode();t&&!i&&(r=Mr(e),o=xn(r,{tabbable:!1},e),o.currentNode=n,i=o.nextNode()),bn(i)}function RP(e,t){const n=ee.useRef(t);h.useEffect(()=>{n.current&&(ve=e,!rt(document.activeElement,ve.current)&&e.current&&cl(e.current)),n.current=!1},[e])}function FP(e,t,n){Te(()=>{if(t||n)return;let r=e.current,o=i=>{let s=i.target;rt(s,e.current)?ve=e:ob(s)||(ve=null)};return document.addEventListener("focusin",o,!1),r==null||r.forEach(i=>i.addEventListener("focusin",o,!1)),()=>{document.removeEventListener("focusin",o,!1),r==null||r.forEach(i=>i.removeEventListener("focusin",o,!1))}},[e,t,n])}function OP(e){let t=Ve.getTreeNode(ve);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function jP(e,t,n){const r=h.useRef(typeof document<"u"?document.activeElement:null);Te(()=>{let o=e.current;if(!t||n)return;let i=()=>{(!ve||ul(ve,e))&&rt(document.activeElement,e.current)&&(ve=e)};return document.addEventListener("focusin",i,!1),o==null||o.forEach(s=>s.addEventListener("focusin",i,!1)),()=>{document.removeEventListener("focusin",i,!1),o==null||o.forEach(s=>s.removeEventListener("focusin",i,!1))}},[e,n]),Te(()=>{if(!t)return;let o=i=>{if(i.key!=="Tab"||i.altKey||i.ctrlKey||i.metaKey||!Si(e))return;let s=document.activeElement;if(!rt(s,e.current))return;let a=Ve.getTreeNode(e);if(!a)return;let l=a.nodeToRestore,u=xn(document.body,{tabbable:!0});u.currentNode=s;let c=i.shiftKey?u.previousNode():u.nextNode();if((!l||!document.body.contains(l)||l===document.body)&&(l=void 0,a.nodeToRestore=void 0),(!c||!rt(c,e.current))&&l){u.currentNode=l;do c=i.shiftKey?u.previousNode():u.nextNode();while(rt(c,e.current));i.preventDefault(),i.stopPropagation(),c?bn(c,!0):ob(l)?bn(l,!0):s.blur()}};return n||document.addEventListener("keydown",o,!0),()=>{n||document.removeEventListener("keydown",o,!0)}},[e,t,n]),Te(()=>{if(!t)return;let o=Ve.getTreeNode(e);if(o){var i;return o.nodeToRestore=(i=r.current)!==null&&i!==void 0?i:void 0,()=>{let s=Ve.getTreeNode(e);if(!s)return;let a=s.nodeToRestore;if(t&&a&&(rt(document.activeElement,e.current)||document.activeElement===document.body&&OP(e))){let l=Ve.clone();requestAnimationFrame(()=>{if(document.activeElement===document.body){let u=l.getTreeNode(e);for(;u;){if(u.nodeToRestore&&document.body.contains(u.nodeToRestore)){bn(u.nodeToRestore);return}u=u.parent}for(u=l.getTreeNode(e);u;){if(u.scopeRef&&u.scopeRef.current&&Ve.getTreeNode(u.scopeRef)){cl(u.scopeRef.current,!0);return}u=u.parent}}})}}}},[e,t])}function xn(e,t,n){let r=t!=null&&t.tabbable?DP:LP,o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(i){var s;return!(t==null||(s=t.from)===null||s===void 0)&&s.contains(i)?NodeFilter.FILTER_REJECT:i.matches(r)&&nb(i)&&(!n||rt(i,n))&&(!(t!=null&&t.accept)||t.accept(i))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(o.currentNode=t.from),o}class sp{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let o=this.fastMap.get(n??null);if(!o)return;let i=new bd({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&rt(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let o=n.children;r&&(r.removeChild(n),o.size>0&&o.forEach(i=>r&&r.addChild(i))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new sp;var r;for(let o of this.traverse())n.addTreeNode(o.scopeRef,(r=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,o.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new bd({scopeRef:null}),this.fastMap.set(null,this.root)}}class bd{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let Ve=new sp;function sr(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=h.useRef({isFocused:!1,isFocusVisible:t||Ko()}),[i,s]=h.useState(!1),[a,l]=h.useState(()=>o.current.isFocused&&o.current.isFocusVisible),u=h.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),c=h.useCallback(p=>{o.current.isFocused=p,s(p),u()},[u]);PP(p=>{o.current.isFocusVisible=p,u()},[],{isTextInput:n});let{focusProps:d}=Jy({isDisabled:r,onFocusChange:c}),{focusWithinProps:f}=Cs({isDisabled:!r,onFocusWithinChange:c});return{isFocused:i,isFocusVisible:a,focusProps:r?f:d}}let _P=ee.createContext(null);function BP(e){let t=h.useContext(_P)||{};tp(t,e);let{ref:n,...r}=t;return r}function ap(e,t){let{focusProps:n}=Jy(e),{keyboardProps:r}=eb(e),o=Y(n,r),i=BP(t),s=e.isDisabled?{}:i,a=h.useRef(e.autoFocus);return h.useEffect(()=>{a.current&&t.current&&ir(t.current),a.current=!1},[t]),{focusableProps:Y({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}const ym={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function VP(e={}){let{style:t,isFocusable:n}=e,[r,o]=h.useState(!1),{focusWithinProps:i}=Cs({isDisabled:!n,onFocusWithinChange:a=>o(a)}),s=h.useMemo(()=>r?t:t?{...ym,...t}:ym,[r]);return{visuallyHiddenProps:{...i,style:s}}}function KP(e){let{children:t,elementType:n="div",isFocusable:r,style:o,...i}=e,{visuallyHiddenProps:s}=VP(e);return ee.createElement(n,Y(i,s),t)}function zP(e){return e&&e.__esModule?e.default:e}const bm={top:"top",bottom:"top",left:"left",right:"left"},dl={top:"bottom",bottom:"top",left:"right",right:"left"},WP={top:"left",left:"top"},xd={top:"height",left:"width"},UP={width:"totalWidth",height:"totalHeight"},Js={};let to=typeof document<"u"&&window.visualViewport;function xm(e){let t=0,n=0,r=0,o=0,i=0,s=0,a={};if(e.tagName==="BODY"){let c=document.documentElement;r=c.clientWidth,o=c.clientHeight;var l;t=(l=to==null?void 0:to.width)!==null&&l!==void 0?l:r;var u;n=(u=to==null?void 0:to.height)!==null&&u!==void 0?u:o,a.top=c.scrollTop||e.scrollTop,a.left=c.scrollLeft||e.scrollLeft}else({width:t,height:n,top:i,left:s}=No(e)),a.top=e.scrollTop,a.left=e.scrollLeft,r=t,o=n;return{width:t,height:n,totalWidth:r,totalHeight:o,scroll:a,top:i,left:s}}function HP(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function wm(e,t,n,r,o,i){let s=o.scroll[e],a=r[xd[e]],l=t-i-s,u=t+i-s+n;return l<0?-l:u>a?Math.max(a-u,-l):0}function GP(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function Cm(e){if(Js[e])return Js[e];let[t,n]=e.split(" "),r=bm[t]||"right",o=WP[r];bm[n]||(n="center");let i=xd[r],s=xd[o];return Js[e]={placement:t,crossPlacement:n,axis:r,crossAxis:o,size:i,crossSize:s},Js[e]}function Wu(e,t,n,r,o,i,s,a,l,u){let{placement:c,crossPlacement:d,axis:f,crossAxis:p,size:y,crossSize:b}=r,w={};w[p]=e[p],d==="center"?w[p]+=(e[b]-n[b])/2:d!==p&&(w[p]+=e[b]-n[b]),w[p]+=i;const x=e[p]-n[b]+l+u,g=e[p]+e[b]-l-u;if(w[p]=dd(w[p],x,g),c===f){const v=a?s[y]:t[UP[y]];w[dl[f]]=Math.floor(v-e[f]+o)}else w[f]=Math.floor(e[f]+e[y]+o);return w}function YP(e,t,n,r,o,i){return e.top!=null?Math.max(0,t.height+t.top+t.scroll.top-(n.top+e.top)-(o.top+o.bottom+i)):Math.max(0,r.top+n.top-(t.top+t.scroll.top)-(o.top+o.bottom+i))}function Sm(e,t,n,r,o,i){let{placement:s,axis:a,size:l}=i;return s===a?Math.max(0,n[a]-e[a]-e.scroll[a]+t[a]-r[a]-r[dl[a]]-o):Math.max(0,e[l]+e[a]+e.scroll[a]-t[a]-n[a]-n[l]-r[a]-r[dl[a]]-o)}function XP(e,t,n,r,o,i,s,a,l,u,c,d,f,p,y,b){let w=Cm(e),{size:x,crossAxis:g,crossSize:v,placement:S,crossPlacement:k}=w,A=Wu(t,a,n,w,c,d,u,f,y,b),D=c,m=Sm(a,u,t,o,i+c,w);if(s&&r[x]>m){let I=Cm(`${dl[S]} ${k}`),B=Wu(t,a,n,I,c,d,u,f,y,b);Sm(a,u,t,o,i+c,I)>m&&(w=I,A=B,D=c)}let L=wm(g,A[g],n[v],a,l,i);A[g]+=L;let M=YP(A,a,u,t,o,i);p&&p{if(!n||r===null)return;let o=i=>{let s=i.target;if(!t.current||s instanceof Node&&!s.contains(t.current))return;let a=r||ib.get(t.current);a&&a()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[n,r,t])}let Mt=typeof document<"u"&&window.visualViewport;function sb(e){let{direction:t}=xs(),{arrowSize:n=0,targetRef:r,overlayRef:o,scrollRef:i=o,placement:s="bottom",containerPadding:a=12,shouldFlip:l=!0,boundaryElement:u=typeof document<"u"?document.body:null,offset:c=0,crossOffset:d=0,shouldUpdatePosition:f=!0,isOpen:p=!0,onClose:y,maxHeight:b,arrowBoundaryOffset:w=0}=e,[x,g]=h.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),v=[f,s,o.current,r.current,i.current,a,l,u,c,d,p,t,b,w,n],S=h.useCallback(()=>{if(f===!1||!p||!o.current||!r.current||!i.current||!u)return;let D=QP({placement:e$(s,t),overlayNode:o.current,targetNode:r.current,scrollNode:i.current,padding:a,shouldFlip:l,boundaryElement:u,offset:c,crossOffset:d,maxHeight:b,arrowSize:n,arrowBoundaryOffset:w});Object.keys(D.position).forEach(m=>o.current.style[m]=D.position[m]+"px"),o.current.style.maxHeight=D.maxHeight!=null?D.maxHeight+"px":void 0,g(D)},v);Te(S,v),JP(S),Vy({ref:o,onResize:S});let k=h.useRef(!1);Te(()=>{let D,m=()=>{k.current=!0,clearTimeout(D),D=setTimeout(()=>{k.current=!1},500),S()};return Mt==null||Mt.addEventListener("resize",m),Mt==null||Mt.addEventListener("scroll",m),()=>{Mt==null||Mt.removeEventListener("resize",m),Mt==null||Mt.removeEventListener("scroll",m)}},[S]);let A=h.useCallback(()=>{k.current||y()},[y,k]);return qP({triggerRef:r,isOpen:p,onClose:y&&A}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...x.position,maxHeight:x.maxHeight}},placement:x.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:x.arrowOffsetLeft,top:x.arrowOffsetTop}},updatePosition:S}}function JP(e){Te(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function e$(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const dn=[];function ab(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:a}=e;h.useEffect(()=>(o&&dn.push(t),()=>{let y=dn.indexOf(t);y>=0&&dn.splice(y,1)}),[o,t]);let l=()=>{dn[dn.length-1]===t&&n&&n()},u=y=>{(!a||a(y.target))&&dn[dn.length-1]===t&&(y.stopPropagation(),y.preventDefault())},c=y=>{(!a||a(y.target))&&(dn[dn.length-1]===t&&(y.stopPropagation(),y.preventDefault()),l())},d=y=>{y.key==="Escape"&&!s&&(y.stopPropagation(),y.preventDefault(),l())};EP({ref:t,onInteractOutside:i&&o?c:null,onInteractOutsideStart:u});let{focusWithinProps:f}=Cs({isDisabled:!r,onBlurWithin:y=>{!y.relatedTarget||IP(y.relatedTarget)||(!a||a(y.relatedTarget))&&n()}}),p=y=>{y.target===y.currentTarget&&y.preventDefault()};return{overlayProps:{onKeyDown:d,...f},underlayProps:{onPointerDown:p}}}function lb(e,t,n){let{type:r}=e,{isOpen:o}=t;h.useEffect(()=>{n&&n.current&&ib.set(n.current,t.close)});let i;r==="menu"?i=!0:r==="listbox"&&(i="listbox");let s=sn();return{triggerProps:{"aria-haspopup":i,"aria-expanded":o,"aria-controls":o?s:null,onPress:t.toggle},overlayProps:{id:s}}}const wd=ee.createContext(null);function t$(e){let{children:t}=e,n=h.useContext(wd),[r,o]=h.useState(0),i=h.useMemo(()=>({parent:n,modalCount:r,addModal(){o(s=>s+1),n&&n.addModal()},removeModal(){o(s=>s-1),n&&n.removeModal()}}),[n,r]);return ee.createElement(wd.Provider,{value:i},t)}function n$(){let e=h.useContext(wd);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:null}}}function r$(e){let{modalProviderProps:t}=n$();return ee.createElement("div",{"data-overlay-container":!0,...e,...t})}function ub(e){return ee.createElement(t$,null,ee.createElement(r$,e))}function Em(e){let t=ys(),{portalContainer:n=t?null:document.body,...r}=e;if(ee.useEffect(()=>{if(n!=null&&n.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[n]),!n)return null;let o=ee.createElement(ub,r);return Ny.createPortal(o,n)}var cb={},db={};db={dismiss:"تجاهل"};var fb={};fb={dismiss:"Отхвърляне"};var pb={};pb={dismiss:"Odstranit"};var hb={};hb={dismiss:"Luk"};var mb={};mb={dismiss:"Schließen"};var gb={};gb={dismiss:"Απόρριψη"};var vb={};vb={dismiss:"Dismiss"};var yb={};yb={dismiss:"Descartar"};var bb={};bb={dismiss:"Lõpeta"};var xb={};xb={dismiss:"Hylkää"};var wb={};wb={dismiss:"Rejeter"};var Cb={};Cb={dismiss:"התעלם"};var Sb={};Sb={dismiss:"Odbaci"};var Pb={};Pb={dismiss:"Elutasítás"};var $b={};$b={dismiss:"Ignora"};var Eb={};Eb={dismiss:"閉じる"};var kb={};kb={dismiss:"무시"};var Tb={};Tb={dismiss:"Atmesti"};var Ab={};Ab={dismiss:"Nerādīt"};var Mb={};Mb={dismiss:"Lukk"};var Lb={};Lb={dismiss:"Negeren"};var Db={};Db={dismiss:"Zignoruj"};var Nb={};Nb={dismiss:"Descartar"};var Ib={};Ib={dismiss:"Dispensar"};var Rb={};Rb={dismiss:"Revocare"};var Fb={};Fb={dismiss:"Пропустить"};var Ob={};Ob={dismiss:"Zrušiť"};var jb={};jb={dismiss:"Opusti"};var _b={};_b={dismiss:"Odbaci"};var Bb={};Bb={dismiss:"Avvisa"};var Vb={};Vb={dismiss:"Kapat"};var Kb={};Kb={dismiss:"Скасувати"};var zb={};zb={dismiss:"取消"};var Wb={};Wb={dismiss:"關閉"};cb={"ar-AE":db,"bg-BG":fb,"cs-CZ":pb,"da-DK":hb,"de-DE":mb,"el-GR":gb,"en-US":vb,"es-ES":yb,"et-EE":bb,"fi-FI":xb,"fr-FR":wb,"he-IL":Cb,"hr-HR":Sb,"hu-HU":Pb,"it-IT":$b,"ja-JP":Eb,"ko-KR":kb,"lt-LT":Tb,"lv-LV":Ab,"nb-NO":Mb,"nl-NL":Lb,"pl-PL":Db,"pt-BR":Nb,"pt-PT":Ib,"ro-RO":Rb,"ru-RU":Fb,"sk-SK":Ob,"sl-SI":jb,"sr-SP":_b,"sv-SE":Bb,"tr-TR":Vb,"uk-UA":Kb,"zh-CN":zb,"zh-TW":Wb};function fl(e){let{onDismiss:t,...n}=e,r=np(zP(cb)),o=ol(n,r.format("dismiss")),i=()=>{t&&t()};return ee.createElement(KP,null,ee.createElement("button",{...o,tabIndex:-1,onClick:i}))}let ui=new WeakMap,Lt=[];function Ub(e,t=document.body){let n=new Set(e),r=new Set,o=l=>{for(let f of l.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(f);let u=f=>{if(n.has(f)||r.has(f.parentElement)&&f.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let p of n)if(f.contains(p))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},c=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),d=u(l);if(d===NodeFilter.FILTER_ACCEPT&&i(l),d!==NodeFilter.FILTER_REJECT){let f=c.nextNode();for(;f!=null;)i(f),f=c.nextNode()}},i=l=>{var u;let c=(u=ui.get(l))!==null&&u!==void 0?u:0;l.getAttribute("aria-hidden")==="true"&&c===0||(c===0&&l.setAttribute("aria-hidden","true"),r.add(l),ui.set(l,c+1))};Lt.length&&Lt[Lt.length-1].disconnect(),o(t);let s=new MutationObserver(l=>{for(let u of l)if(!(u.type!=="childList"||u.addedNodes.length===0)&&![...n,...r].some(c=>c.contains(u.target))){for(let c of u.removedNodes)c instanceof Element&&(n.delete(c),r.delete(c));for(let c of u.addedNodes)(c instanceof HTMLElement||c instanceof SVGElement)&&(c.dataset.liveAnnouncer==="true"||c.dataset.reactAriaTopLayer==="true")?n.add(c):c instanceof Element&&o(c)}});s.observe(t,{childList:!0,subtree:!0});let a={observe(){s.observe(t,{childList:!0,subtree:!0})},disconnect(){s.disconnect()}};return Lt.push(a),()=>{s.disconnect();for(let l of r){let u=ui.get(l);u===1?(l.removeAttribute("aria-hidden"),ui.delete(l)):ui.set(l,u-1)}a===Lt[Lt.length-1]?(Lt.pop(),Lt.length&&Lt[Lt.length-1].observe()):Lt.splice(Lt.indexOf(a),1)}}const Hb=ee.createContext(null);function lp(e){let t=ys(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[o,i]=h.useState(!1),s=h.useMemo(()=>({contain:o,setContain:i}),[o,i]);if(!n)return null;let a=e.children;return e.disableFocusManagement||(a=ee.createElement(rb,{restoreFocus:!0,contain:o&&!r},a)),a=ee.createElement(Hb.Provider,{value:s},ee.createElement(hP,null,a)),Ny.createPortal(a,n)}function o$(){let e=h.useContext(Hb),t=e==null?void 0:e.setContain;Te(()=>{t==null||t(!0)},[t])}var i$=({children:e,locale:t="en-US",navigate:n,...r})=>{let o=e;return n&&(o=P.jsx(HS,{navigate:n,children:o})),P.jsx(nP,{locale:t,children:P.jsx(ub,{...r,children:o})})};function he(e){return h.forwardRef(e)}var Qt=(e,t,n=!0)=>{if(!t)return[e,{}];const r=t.reduce((o,i)=>i in e?{...o,[i]:e[i]}:o,{});return n?[Object.keys(e).filter(i=>!t.includes(i)).reduce((i,s)=>({...i,[s]:e[s]}),{}),r]:[e,r]},s$=["0","xs","sm","md","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl","8xl","9xl","1","2","3","3.5","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","20","24","28","32","36","40","44","48","52","56","60","64","72","80","96"],Uu=s$.map(e=>`unit-${e}`),km=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,it=e=>!e||typeof e!="object"||Object.keys(e).length===0,a$=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function Gb(e,t){e.forEach(function(n){Array.isArray(n)?Gb(n,t):t.push(n)})}function Yb(e){let t=[];return Gb(e,t),t}var l$=(...e)=>Yb(e).filter(Boolean),Xb=(e,t)=>{let n={},r=Object.keys(e),o=Object.keys(t);for(let i of r)if(o.includes(i)){let s=e[i],a=t[i];typeof s=="object"&&typeof a=="object"?n[i]=Xb(s,a):n[i]=a+" "+s}else n[i]=e[i];for(let i of o)r.includes(i)||(n[i]=t[i]);return n},Tm=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();function u$(){for(var e=0,t,n,r="";ee&&(t=0,r=n,n=new Map)}return{get:function(s){var a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return o(s,a),a},set:function(s,a){n.has(s)?n.set(s,a):o(s,a)}}}var qb="!";function g$(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(s){for(var a=[],l=0,u=0,c,d=0;du?c-u:void 0;return{modifiers:a,hasImportantModifier:y,baseClassName:b,maybePostfixModifierPosition:w}}}function v$(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function y$(e){return{cache:m$(e.cacheSize),splitModifiers:g$(e),...c$(e)}}var b$=/\s+/;function x$(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,i=new Set;return e.trim().split(b$).map(function(s){var a=n(s),l=a.modifiers,u=a.hasImportantModifier,c=a.baseClassName,d=a.maybePostfixModifierPosition,f=r(d?c.substring(0,d):c),p=!!d;if(!f){if(!d)return{isTailwindClass:!1,originalClassName:s};if(f=r(c),!f)return{isTailwindClass:!1,originalClassName:s};p=!1}var y=v$(l).join(":"),b=u?y+qb:y;return{isTailwindClass:!0,modifierId:b,classGroupId:f,originalClassName:s,hasPostfixModifier:p}}).reverse().filter(function(s){if(!s.isTailwindClass)return!0;var a=s.modifierId,l=s.classGroupId,u=s.hasPostfixModifier,c=a+l;return i.has(c)?!1:(i.add(c),o(l,u).forEach(function(d){return i.add(a+d)}),!0)}).reverse().map(function(s){return s.originalClassName}).join(" ")}function Sd(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;re||void 0,pl=(...e)=>n1(Yb(e).filter(Boolean).join(" ")),Hu=null,hl={},Ed=!1,fi=(...e)=>t=>t.twMerge?((!Hu||Ed)&&(Ed=!1,Hu=it(hl)?j$:O$(hl)),n1(Hu(pl(e)))):pl(e),Dm=(e,t)=>{for(let n in t)e.hasOwnProperty(n)?e[n]=pl(e[n],t[n]):e[n]=t[n];return e},B$=(e,t)=>{let{extend:n=null,slots:r={},variants:o={},compoundVariants:i=[],compoundSlots:s=[],defaultVariants:a={}}=e,l={..._$,...t},u=n!=null&&n.base?pl(n.base,e==null?void 0:e.base):e==null?void 0:e.base,c=n!=null&&n.variants&&!it(n.variants)?Xb(o,n.variants):o,d=n!=null&&n.defaultVariants&&!it(n.defaultVariants)?{...n.defaultVariants,...a}:a;!it(l.twMergeConfig)&&!a$(l.twMergeConfig,hl)&&(Ed=!0,hl=l.twMergeConfig);let f=it(r)?{}:{base:e==null?void 0:e.base,...r},p=it(n==null?void 0:n.slots)?f:Dm({...n==null?void 0:n.slots},it(f)?{base:e==null?void 0:e.base}:f),y=w=>{if(it(c)&&it(r)&&it(n==null?void 0:n.slots))return fi(u,w==null?void 0:w.class,w==null?void 0:w.className)(l);if(i&&!Array.isArray(i))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof i}`);if(s&&!Array.isArray(s))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof s}`);let x=(E,N,C=[],$)=>{let R=C;if(typeof N=="string")R=R.concat(Tm(N).split(" ").map(_=>`${E}:${_}`));else if(Array.isArray(N))R=R.concat(N.reduce((_,j)=>_.concat(`${E}:${j}`),[]));else if(typeof N=="object"&&typeof $=="string"){for(let _ in N)if(N.hasOwnProperty(_)&&_===$){let j=N[_];if(j&&typeof j=="string"){let I=Tm(j);R[$]?R[$]=R[$].concat(I.split(" ").map(B=>`${E}:${B}`)):R[$]=I.split(" ").map(B=>`${E}:${B}`)}else Array.isArray(j)&&j.length>0&&(R[$]=j.reduce((I,B)=>I.concat(`${E}:${B}`),[]))}}return R},g=(E,N=c,C=null,$=null)=>{var R;let _=N[E];if(!_||it(_))return null;let j=(R=$==null?void 0:$[E])!=null?R:w==null?void 0:w[E];if(j===null)return null;let I=km(j),B=Array.isArray(l.responsiveVariants)&&l.responsiveVariants.length>0||l.responsiveVariants===!0,F=d==null?void 0:d[E],T=[];if(typeof I=="object"&&B)for(let[V,W]of Object.entries(I)){let U=_[W];if(V==="initial"){F=W;continue}Array.isArray(l.responsiveVariants)&&!l.responsiveVariants.includes(V)||(T=x(V,U,T,C))}let O=_[I]||_[km(F)];return typeof T=="object"&&typeof C=="string"&&T[C]?Dm(T,O):T.length>0?(T.push(O),T):O},v=()=>c?Object.keys(c).map(E=>g(E,c)):null,S=(E,N)=>{if(!c||typeof c!="object")return null;let C=new Array;for(let $ in c){let R=g($,c,E,N),_=E==="base"&&typeof R=="string"?R:R&&R[E];_&&(C[C.length]=_)}return C},k={};for(let E in w)w[E]!==void 0&&(k[E]=w[E]);let A=(E,N)=>{var C;let $=typeof(w==null?void 0:w[E])=="object"?{[E]:(C=w[E])==null?void 0:C.initial}:{};return{...d,...k,...$,...N}},D=(E=[],N)=>{let C=[];for(let{class:$,className:R,..._}of E){let j=!0;for(let[I,B]of Object.entries(_)){let F=A(I,N);if(Array.isArray(B)){if(!B.includes(F[I])){j=!1;break}}else if(F[I]!==B){j=!1;break}}j&&($&&C.push($),R&&C.push(R))}return C},m=E=>{let N=D(i,E),C=D(n==null?void 0:n.compoundVariants,E);return l$(C,N)},L=E=>{let N=m(E);if(!Array.isArray(N))return N;let C={};for(let $ of N)if(typeof $=="string"&&(C.base=fi(C.base,$)(l)),typeof $=="object")for(let[R,_]of Object.entries($))C[R]=fi(C[R],_)(l);return C},M=E=>{if(s.length<1)return null;let N={};for(let{slots:C=[],class:$,className:R,..._}of s){if(!it(_)){let j=!0;for(let I of Object.keys(_)){let B=A(I,E)[I];if(B===void 0||(Array.isArray(_[I])?!_[I].includes(B):_[I]!==B)){j=!1;break}}if(!j)continue}for(let j of C)N[j]=N[j]||[],N[j].push([$,R])}return N};if(!it(r)||!it(n==null?void 0:n.slots)){let E={};if(typeof p=="object"&&!it(p))for(let N of Object.keys(p))E[N]=C=>{var $,R;return fi(p[N],S(N,C),(($=L(C))!=null?$:[])[N],((R=M(C))!=null?R:[])[N],C==null?void 0:C.class,C==null?void 0:C.className)(l)};return E}return fi(u,v(),m(),w==null?void 0:w.class,w==null?void 0:w.className)(l)},b=()=>{if(!(!c||typeof c!="object"))return Object.keys(c)};return y.variantKeys=b(),y.extend=n,y.base=u,y.slots=p,y.variants=c,y.defaultVariants=d,y.compoundSlots=s,y.compoundVariants=i,y},ta=["small","medium","large"],We=(e,t)=>{var n,r,o;return B$(e,{...t,twMerge:(n=t==null?void 0:t.twMerge)!=null?n:!0,twMergeConfig:{...t==null?void 0:t.twMergeConfig,theme:{...(r=t==null?void 0:t.twMergeConfig)==null?void 0:r.theme,opacity:["disabled"],spacing:["divider","unit",...Uu],borderWidth:ta,borderRadius:ta},classGroups:{...(o=t==null?void 0:t.twMergeConfig)==null?void 0:o.classGroups,shadow:[{shadow:ta}],"font-size":[{text:["tiny",...ta]}],"bg-image":["bg-stripe-gradient"],"min-w":[{"min-w":["unit",...Uu]}],"min-h":[{"min-h":["unit",...Uu]}]}}})},mr=["outline-none","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],V$=["outline-none","group-data-[focus-visible=true]:z-10","group-data-[focus-visible=true]:ring-2","group-data-[focus-visible=true]:ring-focus","group-data-[focus-visible=true]:ring-offset-2","group-data-[focus-visible=true]:ring-offset-background"],Gu=["absolute","top-1/2","left-1/2","-translate-x-1/2","-translate-y-1/2"],no={default:["[&+.border-medium.border-default]:ms-[calc(theme(borderWidth.medium)*-1)]"],primary:["[&+.border-medium.border-primary]:ms-[calc(theme(borderWidth.medium)*-1)]"],secondary:["[&+.border-medium.border-secondary]:ms-[calc(theme(borderWidth.medium)*-1)]"],success:["[&+.border-medium.border-success]:ms-[calc(theme(borderWidth.medium)*-1)]"],warning:["[&+.border-medium.border-warning]:ms-[calc(theme(borderWidth.medium)*-1)]"],danger:["[&+.border-medium.border-danger]:ms-[calc(theme(borderWidth.medium)*-1)]"]},K$={default:"bg-default text-default-foreground",primary:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",danger:"bg-danger text-danger-foreground",foreground:"bg-foreground text-background"},z$={default:"shadow-lg shadow-default/50 bg-default text-default-foreground",primary:"shadow-lg shadow-primary/40 bg-primary text-primary-foreground",secondary:"shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",success:"shadow-lg shadow-success/40 bg-success text-success-foreground",warning:"shadow-lg shadow-warning/40 bg-warning text-warning-foreground",danger:"shadow-lg shadow-danger/40 bg-danger text-danger-foreground",foreground:"shadow-lg shadow-foreground/40 bg-foreground text-background"},W$={default:"bg-transparent border-default text-foreground",primary:"bg-transparent border-primary text-primary",secondary:"bg-transparent border-secondary text-secondary",success:"bg-transparent border-success text-success",warning:"bg-transparent border-warning text-warning",danger:"bg-transparent border-danger text-danger",foreground:"bg-transparent border-foreground text-foreground"},U$={default:"bg-default/40 text-default-foreground",primary:"bg-primary/20 text-primary",secondary:"bg-secondary/20 text-secondary",success:"bg-success/20 text-success-600 dark:text-success",warning:"bg-warning/20 text-warning-600 dark:text-warning",danger:"bg-danger/20 text-danger dark:text-danger-500",foreground:"bg-foreground/10 text-foreground"},H$={default:"border-default bg-default-100 text-default-foreground",primary:"border-default bg-default-100 text-primary",secondary:"border-default bg-default-100 text-secondary",success:"border-default bg-default-100 text-success",warning:"border-default bg-default-100 text-warning",danger:"border-default bg-default-100 text-danger",foreground:"border-default bg-default-100 text-foreground"},G$={default:"bg-transparent text-default-foreground",primary:"bg-transparent text-primary",secondary:"bg-transparent text-secondary",success:"bg-transparent text-success",warning:"bg-transparent text-warning",danger:"bg-transparent text-danger",foreground:"bg-transparent text-foreground"},Y$={default:"border-default text-default-foreground hover:!bg-default",primary:"border-primary text-primary hover:!text-primary-foreground hover:!bg-primary",secondary:"border-secondary text-secondary hover:text-secondary-foreground hover:!bg-secondary",success:"border-success text-success hover:!text-success-foreground hover:!bg-success",warning:"border-warning text-warning hover:!text-warning-foreground hover:!bg-warning",danger:"border-danger text-danger hover:!text-danger-foreground hover:!bg-danger",foreground:"border-foreground text-foreground hover:!bg-foreground"},q={solid:K$,shadow:z$,bordered:W$,flat:U$,faded:H$,light:G$,ghost:Y$},Nm=We({slots:{base:"relative inline-flex flex-col gap-2 items-center justify-center",wrapper:"relative flex",circle1:["absolute","w-full","h-full","rounded-full","animate-spinner-ease-spin","border-2","border-solid","border-t-transparent","border-l-transparent","border-r-transparent"],circle2:["absolute","w-full","h-full","rounded-full","opacity-75","animate-spinner-linear-spin","border-2","border-dotted","border-t-transparent","border-l-transparent","border-r-transparent"],label:"text-foreground dark:text-foreground-dark font-regular"},variants:{size:{sm:{wrapper:"w-5 h-5",circle1:"border-2",circle2:"border-2",label:"text-small"},md:{wrapper:"w-8 h-8",circle1:"border-3",circle2:"border-3",label:"text-medium"},lg:{wrapper:"w-10 h-10",circle1:"border-3",circle2:"border-3",label:"text-large"}},color:{current:{circle1:"border-b-current",circle2:"border-b-current"},white:{circle1:"border-b-white",circle2:"border-b-white"},default:{circle1:"border-b-default",circle2:"border-b-default"},primary:{circle1:"border-b-primary",circle2:"border-b-primary"},secondary:{circle1:"border-b-secondary",circle2:"border-b-secondary"},success:{circle1:"border-b-success",circle2:"border-b-success"},warning:{circle1:"border-b-warning",circle2:"border-b-warning"},danger:{circle1:"border-b-danger",circle2:"border-b-danger"}},labelColor:{foreground:{label:"text-foreground"},primary:{label:"text-primary"},secondary:{label:"text-secondary"},success:{label:"text-success"},warning:{label:"text-warning"},danger:{label:"text-danger"}}},defaultVariants:{size:"md",color:"primary",labelColor:"foreground"}}),Im=We({slots:{base:["flex","z-40","w-full","h-auto","items-center","justify-center","data-[menu-open=true]:border-none"],wrapper:["z-40","flex","px-6","gap-4","w-full","flex-row","relative","flex-nowrap","items-center","justify-between","h-[var(--navbar-height)]"],toggle:["group","flex","items-center","justify-center","w-6","h-full","outline-none","rounded-small","tap-highlight-transparent",...mr],srOnly:["sr-only"],toggleIcon:["w-full","h-full","pointer-events-none","flex","flex-col","items-center","justify-center","text-inherit","group-data-[pressed=true]:opacity-70","transition-opacity","before:content-['']","before:block","before:h-px","before:w-6","before:bg-current","before:transition-transform","before:duration-150","before:-translate-y-1","before:rotate-0","group-data-[open=true]:before:translate-y-px","group-data-[open=true]:before:rotate-45","after:content-['']","after:block","after:h-px","after:w-6","after:bg-current","after:transition-transform","after:duration-150","after:translate-y-1","after:rotate-0","group-data-[open=true]:after:translate-y-0","group-data-[open=true]:after:-rotate-45"],brand:["flex","basis-0","flex-row","flex-grow","flex-nowrap","justify-start","bg-transparent","items-center","no-underline","text-medium","whitespace-nowrap","box-border"],content:["flex","gap-4","h-full","flex-row","flex-nowrap","items-center","data-[justify=start]:justify-start","data-[justify=start]:flex-grow","data-[justify=start]:basis-0","data-[justify=center]:justify-center","data-[justify=end]:justify-end","data-[justify=end]:flex-grow","data-[justify=end]:basis-0"],item:["text-medium","whitespace-nowrap","box-border","list-none","data-[active=true]:font-semibold"],menu:["z-30","px-6","pt-2","fixed","flex","max-w-full","top-[var(--navbar-height)]","inset-x-0","bottom-0","w-screen","flex-col","gap-2","overflow-y-auto"],menuItem:["text-large","data-[active=true]:font-semibold"]},variants:{position:{static:{base:"static"},sticky:{base:"sticky top-0 inset-x-0"}},maxWidth:{sm:{wrapper:"max-w-[640px]"},md:{wrapper:"max-w-[768px]"},lg:{wrapper:"max-w-[1024px]"},xl:{wrapper:"max-w-[1280px]"},"2xl":{wrapper:"max-w-[1536px]"},full:{wrapper:"max-w-full"}},hideOnScroll:{true:{base:["sticky","top-0","inset-x-0"]}},isBordered:{true:{base:["border-b","border-divider"]}},isBlurred:{false:{base:"bg-background",menu:"bg-background"},true:{base:["backdrop-blur-lg","data-[menu-open=true]:backdrop-blur-xl","backdrop-saturate-150","bg-background/70"],menu:["backdrop-blur-xl","backdrop-saturate-150","bg-background/70"]}},disableAnimation:{true:{menu:["hidden","h-[calc(100dvh_-_var(--navbar-height)_-_1px)]","data-[open=true]:flex"]}}},defaultVariants:{maxWidth:"lg",position:"sticky",isBlurred:!0}}),ml=We({slots:{base:["z-0","relative","bg-transparent","before:content-['']","before:hidden","before:z-[-1]","before:absolute","before:rotate-45","before:w-2.5","before:h-2.5","before:rounded-sm","data-[arrow=true]:before:block","data-[placement=top]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top]:before:left-1/2","data-[placement=top]:before:-translate-x-1/2","data-[placement=top-start]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-start]:before:left-3","data-[placement=top-end]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-end]:before:right-3","data-[placement=bottom]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom]:before:left-1/2","data-[placement=bottom]:before:-translate-x-1/2","data-[placement=bottom-start]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-start]:before:left-3","data-[placement=bottom-end]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-end]:before:right-3","data-[placement=left]:before:-right-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=left]:before:top-1/2","data-[placement=left]:before:-translate-y-1/2","data-[placement=left-start]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-start]:before:top-1/4","data-[placement=left-end]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-end]:before:bottom-1/4","data-[placement=right]:before:-left-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=right]:before:top-1/2","data-[placement=right]:before:-translate-y-1/2","data-[placement=right-start]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-start]:before:top-1/4","data-[placement=right-end]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-end]:before:bottom-1/4",...mr],content:["z-10","px-2.5","py-1","w-full","inline-flex","flex-col","items-center","justify-center","box-border","subpixel-antialiased","outline-none","box-border"],trigger:["z-10"],backdrop:["hidden"],arrow:[]},variants:{size:{sm:{content:"text-tiny"},md:{content:"text-small"},lg:{content:"text-medium"}},color:{default:{base:"before:bg-content1 before:shadow-small",content:"bg-content1"},foreground:{base:"before:bg-foreground",content:q.solid.foreground},primary:{base:"before:bg-primary",content:q.solid.primary},secondary:{base:"before:bg-secondary",content:q.solid.secondary},success:{base:"before:bg-success",content:q.solid.success},warning:{base:"before:bg-warning",content:q.solid.warning},danger:{base:"before:bg-danger",content:q.solid.danger}},radius:{none:{content:"rounded-none"},sm:{content:"rounded-small"},md:{content:"rounded-medium"},lg:{content:"rounded-large"},full:{content:"rounded-full"}},shadow:{sm:{content:"shadow-small"},md:{content:"shadow-medium"},lg:{content:"shadow-large"}},backdrop:{transparent:{},opaque:{backdrop:"bg-overlay/50 backdrop-opacity-disabled"},blur:{backdrop:"backdrop-blur-sm backdrop-saturate-150 bg-overlay/30"}},triggerScaleOnOpen:{true:{trigger:["aria-expanded:scale-[0.97]","aria-expanded:opacity-70","subpixel-antialiased"]},false:{}},disableAnimation:{true:{base:"animate-none"}}},defaultVariants:{color:"default",radius:"lg",size:"md",shadow:"md",backdrop:"transparent",disableAnimation:!1,triggerScaleOnOpen:!0},compoundVariants:[{backdrop:["opaque","blur"],class:{backdrop:"block w-full h-full fixed inset-0 -z-30"}}]}),X$=["data-[top-scroll=true]:[mask-image:linear-gradient(0deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[bottom-scroll=true]:[mask-image:linear-gradient(180deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[top-bottom-scroll=true]:[mask-image:linear-gradient(#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"],Q$=["data-[left-scroll=true]:[mask-image:linear-gradient(270deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[right-scroll=true]:[mask-image:linear-gradient(90deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[left-right-scroll=true]:[mask-image:linear-gradient(to_right,#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"],Rm=We({base:[],variants:{orientation:{vertical:["overflow-y-auto",...X$],horizontal:["overflow-x-auto",...Q$]},hideScrollBar:{true:"scrollbar-hide",false:""}},defaultVariants:{orientation:"vertical",hideScrollBar:!1}}),Fm=We({slots:{wrapper:"relative shadow-black/5",zoomedWrapper:"relative overflow-hidden rounded-inherit",img:"relative z-10 opacity-0 shadow-black/5 data-[loaded=true]:opacity-100",blurredImg:["absolute","z-0","inset-0","w-full","h-full","object-cover","filter","blur-lg","scale-105","saturate-150","opacity-30","translate-y-1"]},variants:{radius:{none:{},sm:{},md:{},lg:{},full:{}},shadow:{none:{wrapper:"shadow-none",img:"shadow-none"},sm:{wrapper:"shadow-small",img:"shadow-small"},md:{wrapper:"shadow-medium",img:"shadow-medium"},lg:{wrapper:"shadow-large",img:"shadow-large"}},isZoomed:{true:{img:["object-cover","transform","hover:scale-125"]}},showSkeleton:{true:{wrapper:["group","relative","overflow-hidden","bg-content3 dark:bg-content2","before:opacity-100","before:absolute","before:inset-0","before:-translate-x-full","before:animate-[shimmer_2s_infinite]","before:border-t","before:border-content4/30","before:bg-gradient-to-r","before:from-transparent","before:via-content4","dark:before:via-default-700/10","before:to-transparent","after:opacity-100","after:absolute","after:inset-0","after:-z-10","after:bg-content3","dark:after:bg-content2"],img:"opacity-0"}},disableAnimation:{true:{img:"transition-none"},false:{img:"transition-transform-opacity motion-reduce:transition-none !duration-300"}}},defaultVariants:{radius:"lg",shadow:"none",isZoomed:!1,isBlurred:!1,showSkeleton:!1,disableAnimation:!1},compoundSlots:[{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"none",class:"rounded-none"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"full",class:"rounded-full"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"sm",class:"rounded-small"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"md",class:"rounded-md"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"lg",class:"rounded-large"}]}),Om=We({slots:{base:"group flex flex-col",label:["absolute","z-10","pointer-events-none","origin-top-left","subpixel-antialiased","block","text-small","text-foreground-500"],mainWrapper:"h-full",inputWrapper:"relative w-full inline-flex tap-highlight-transparent flex-row items-center shadow-sm px-3 gap-3",innerWrapper:"inline-flex w-full items-center h-full box-border",input:["w-full font-normal bg-transparent !outline-none placeholder:text-foreground-500 focus-visible:outline-none","data-[has-start-content=true]:ps-1.5","data-[has-end-content=true]:pe-1.5"],clearButton:["p-2","-m-2","z-10","hidden","absolute","right-3","appearance-none","outline-none","select-none","opacity-0","hover:!opacity-100","cursor-pointer","active:!opacity-70","rounded-full",...mr],helperWrapper:"hidden group-data-[has-helper=true]:flex p-1 relative flex-col gap-1.5",description:"text-tiny text-foreground-400",errorMessage:"text-tiny text-danger"},variants:{variant:{flat:{inputWrapper:["bg-default-100","data-[hover=true]:bg-default-200","group-data-[focus=true]:bg-default-100"]},faded:{inputWrapper:["bg-default-100","border-medium","border-default-200","data-[hover=true]:border-default-400"],value:"group-data-[has-value=true]:text-default-foreground"},bordered:{inputWrapper:["border-medium","border-default-200","data-[hover=true]:border-default-400","group-data-[focus=true]:border-default-foreground"]},underlined:{inputWrapper:["!px-1","!pb-0","!gap-0","relative","box-border","border-b-medium","shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]","border-default-200","!rounded-none","hover:border-default-300","after:content-['']","after:w-0","after:origin-center","after:bg-default-foreground","after:absolute","after:left-1/2","after:-translate-x-1/2","after:-bottom-[2px]","after:h-[2px]","group-data-[focus=true]:after:w-full"],innerWrapper:"pb-1",label:"group-data-[filled-within=true]:text-foreground"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{label:"text-tiny",inputWrapper:"h-unit-8 min-h-unit-8 px-2 rounded-small",input:"text-small",clearButton:"text-medium"},md:{inputWrapper:"h-unit-10 min-h-unit-10 rounded-medium",input:"text-small",clearButton:"text-large"},lg:{inputWrapper:"h-unit-12 min-h-unit-12 rounded-large",input:"text-medium",clearButton:"text-large"}},radius:{none:{inputWrapper:"rounded-none"},sm:{inputWrapper:"rounded-small"},md:{inputWrapper:"rounded-medium"},lg:{inputWrapper:"rounded-large"},full:{inputWrapper:"rounded-full"}},labelPlacement:{outside:{mainWrapper:"flex flex-col"},"outside-left":{base:"flex-row items-center flex-nowrap data-[has-helper=true]:items-start",inputWrapper:"flex-1",mainWrapper:"flex flex-col",label:"relative text-foreground pr-2"},inside:{label:"text-tiny cursor-text",inputWrapper:"flex-col items-start justify-center gap-0",innerWrapper:"group-data-[has-label=true]:items-end"}},fullWidth:{true:{base:"w-full"}},isClearable:{true:{input:"peer pr-6",clearButton:"peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none",inputWrapper:"pointer-events-none",label:"pointer-events-none"}},isInvalid:{true:{label:"!text-danger",input:"!placeholder:text-danger !text-danger"}},isRequired:{true:{label:"after:content-['*'] after:text-danger after:ml-0.5"}},isMultiline:{true:{label:"relative",inputWrapper:"!h-auto",innerWrapper:"items-start group-data-[has-label=true]:items-start",input:"resize-none data-[hide-scroll=true]:scrollbar-hide"}},disableAnimation:{true:{input:"transition-none",inputWrapper:"transition-none",label:"transition-none"},false:{inputWrapper:"transition-background motion-reduce:transition-none !duration-150",label:["will-change-auto","!duration-200","!ease-out","motion-reduce:transition-none","transition-[transform,color,left,opacity]"],clearButton:["transition-opacity","motion-reduce:transition-none"]}}},defaultVariants:{variant:"flat",color:"default",size:"md",fullWidth:!0,labelPlacement:"inside",isDisabled:!1,isMultiline:!1,disableAnimation:!1},compoundVariants:[{variant:"flat",color:"default",class:{input:"group-data-[has-value=true]:text-default-foreground"}},{variant:"flat",color:"primary",class:{inputWrapper:["bg-primary-50","data-[hover=true]:bg-primary-100","text-primary","group-data-[focus=true]:bg-primary-50","placeholder:text-primary"],input:"placeholder:text-primary",label:"text-primary"}},{variant:"flat",color:"secondary",class:{inputWrapper:["bg-secondary-50","text-secondary","data-[hover=true]:bg-secondary-100","group-data-[focus=true]:bg-secondary-50","placeholder:text-secondary"],input:"placeholder:text-secondary",label:"text-secondary"}},{variant:"flat",color:"success",class:{inputWrapper:["bg-success-50","text-success-600","dark:text-success","placeholder:text-success-600","dark:placeholder:text-success","data-[hover=true]:bg-success-100","group-data-[focus=true]:bg-success-50"],input:"placeholder:text-success-600 dark:placeholder:text-success",label:"text-success-600 dark:text-success"}},{variant:"flat",color:"warning",class:{inputWrapper:["bg-warning-50","text-warning-600","dark:text-warning","placeholder:text-warning-600","dark:placeholder:text-warning","data-[hover=true]:bg-warning-100","group-data-[focus=true]:bg-warning-50"],input:"placeholder:text-warning-600 dark:placeholder:text-warning",label:"text-warning-600 dark:text-warning"}},{variant:"flat",color:"danger",class:{inputWrapper:["bg-danger-50","text-danger","dark:text-danger-500","placeholder:text-danger","dark:placeholder:text-danger-500","data-[hover=true]:bg-danger-100","group-data-[focus=true]:bg-danger-50"],input:"placeholder:text-danger dark:placeholder:text-danger-500",label:"text-danger dark:text-danger-500"}},{variant:"faded",color:"primary",class:{label:"text-primary",inputWrapper:"data-[hover=true]:border-primary focus-within:border-primary"}},{variant:"faded",color:"secondary",class:{label:"text-secondary",inputWrapper:"data-[hover=true]:border-secondary focus-within:border-secondary"}},{variant:"faded",color:"success",class:{label:"text-success",inputWrapper:"data-[hover=true]:border-success focus-within:border-success"}},{variant:"faded",color:"warning",class:{label:"text-warning",inputWrapper:"data-[hover=true]:border-warning focus-within:border-warning"}},{variant:"faded",color:"danger",class:{label:"text-danger",inputWrapper:"data-[hover=true]:border-danger focus-within:border-danger"}},{variant:"underlined",color:"default",class:{input:"group-data-[has-value=true]:text-foreground"}},{variant:"underlined",color:"primary",class:{inputWrapper:"after:bg-primary",label:"text-primary"}},{variant:"underlined",color:"secondary",class:{inputWrapper:"after:bg-secondary",label:"text-secondary"}},{variant:"underlined",color:"success",class:{inputWrapper:"after:bg-success",label:"text-success"}},{variant:"underlined",color:"warning",class:{inputWrapper:"after:bg-warning",label:"text-warning"}},{variant:"underlined",color:"danger",class:{inputWrapper:"after:bg-danger",label:"text-danger"}},{variant:"bordered",color:"primary",class:{inputWrapper:"group-data-[focus=true]:border-primary",label:"text-primary"}},{variant:"bordered",color:"secondary",class:{inputWrapper:"group-data-[focus=true]:border-secondary",label:"text-secondary"}},{variant:"bordered",color:"success",class:{inputWrapper:"group-data-[focus=true]:border-success",label:"text-success"}},{variant:"bordered",color:"warning",class:{inputWrapper:"group-data-[focus=true]:border-warning",label:"text-warning"}},{variant:"bordered",color:"danger",class:{inputWrapper:"group-data-[focus=true]:border-danger",label:"text-danger"}},{labelPlacement:"inside",color:"default",class:{label:"group-data-[filled-within=true]:text-default-600"}},{labelPlacement:"outside",color:"default",class:{label:"group-data-[filled-within=true]:text-foreground"}},{radius:"full",size:["sm"],class:{inputWrapper:"px-3"}},{radius:"full",size:"md",class:{inputWrapper:"px-4"}},{radius:"full",size:"lg",class:{inputWrapper:"px-5"}},{disableAnimation:!1,variant:["faded","bordered"],class:{inputWrapper:"transition-colors motion-reduce:transition-none"}},{disableAnimation:!1,variant:"underlined",class:{inputWrapper:"after:transition-width motion-reduce:after:transition-none"}},{variant:["flat","faded"],class:{inputWrapper:[...V$]}},{isInvalid:!0,variant:"flat",class:{inputWrapper:["bg-danger-50","data-[hover=true]:bg-danger-100","group-data-[focus=true]:bg-danger-50"]}},{isInvalid:!0,variant:"bordered",class:{inputWrapper:"!border-danger group-data-[focus=true]:border-danger"}},{isInvalid:!0,variant:"underlined",class:{inputWrapper:"after:bg-danger"}},{labelPlacement:"inside",size:"sm",class:{inputWrapper:"h-12 py-1.5 px-3"}},{labelPlacement:"inside",size:"md",class:{inputWrapper:"h-14 py-2"}},{labelPlacement:"inside",size:"lg",class:{label:"text-small",inputWrapper:"h-16 py-2.5 gap-0"}},{labelPlacement:"inside",size:"sm",variant:["bordered","faded"],class:{inputWrapper:"py-1"}},{labelPlacement:["inside","outside"],class:{label:["group-data-[filled-within=true]:pointer-events-auto"]}},{labelPlacement:["outside","outside-left"],class:{input:"h-full"}},{labelPlacement:"outside",isMultiline:!1,class:{base:"group relative justify-end",label:["pb-0","z-20","top-1/2","-translate-y-1/2","group-data-[filled-within=true]:left-0"]}},{labelPlacement:["inside"],class:{label:["group-data-[filled-within=true]:scale-85"]}},{labelPlacement:["inside"],variant:"flat",class:{innerWrapper:"pb-0.5"}},{variant:"underlined",size:"sm",class:{innerWrapper:"pb-1"}},{variant:"underlined",size:["md","lg"],class:{innerWrapper:"pb-1.5"}},{labelPlacement:"inside",size:["sm","md"],class:{label:"text-small"}},{labelPlacement:"inside",isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px)]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_5px)]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_3.5px)]"]}},{labelPlacement:"inside",variant:"underlined",size:"lg",isMultiline:!1,class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"]}},{labelPlacement:"outside",size:"sm",isMultiline:!1,class:{label:["left-2","text-tiny","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_8px)]"}},{labelPlacement:"outside",size:"md",isMultiline:!1,class:{label:["left-3","text-small","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_10px)]"}},{labelPlacement:"outside",size:"lg",isMultiline:!1,class:{label:["left-3","text-medium","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_12px)]"}},{labelPlacement:"outside-left",size:"sm",class:{label:"group-data-[has-helper=true]:pt-2"}},{labelPlacement:"outside-left",size:"md",class:{label:"group-data-[has-helper=true]:pt-3"}},{labelPlacement:"outside-left",size:"lg",class:{label:"group-data-[has-helper=true]:pt-4"}},{labelPlacement:["outside","outside-left"],isMultiline:!0,class:{inputWrapper:"py-2"}},{labelPlacement:"outside",isMultiline:!0,class:{label:"pb-1.5"}},{labelPlacement:"inside",isMultiline:!0,class:{label:"pb-0.5",input:"pt-0"}},{isMultiline:!0,disableAnimation:!1,class:{input:"transition-height !duration-100 motion-reduce:transition-none"}},{labelPlacement:["inside","outside"],class:{label:["pe-2","max-w-full","text-ellipsis","overflow-hidden"]}},{isMultiline:!0,radius:"full",class:{inputWrapper:"data-[has-multiple-rows=true]:rounded-large"}}]}),r1=We({slots:{base:"w-full relative flex flex-col gap-1 p-1",list:"w-full flex flex-col gap-0.5 outline-none",emptyContent:["h-10","px-2","py-1.5","w-full","h-full","text-foreground-400","text-start"]}}),gl=We({slots:{base:["flex","group","gap-2","items-center","justify-between","relative","px-2","py-1.5","w-full","h-full","box-border","rounded-small","subpixel-antialiased","outline-none","cursor-pointer","tap-highlight-transparent",...mr,"data-[focus-visible=true]:dark:ring-offset-background-content1"],wrapper:"w-full flex flex-col items-start justify-center",title:"flex-1 text-small font-normal truncate",description:["w-full","text-tiny","text-foreground-500","group-hover:text-current"],selectedIcon:["text-inherit","w-3","h-3","flex-shrink-0"],shortcut:["px-1","py-0.5","rounded","font-sans","text-foreground-500","text-tiny","border-small","border-default-300","group-hover:border-current"]},variants:{variant:{solid:{base:""},bordered:{base:"border-medium border-transparent bg-transparent"},light:{base:"bg-transparent"},faded:{base:["border-small border-transparent hover:border-default data-[hover=true]:bg-default-100","data-[selectable=true]:focus:border-default data-[selectable=true]:focus:bg-default-100"]},flat:{base:""},shadow:{base:"data-[hover=true]:shadow-lg"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},showDivider:{true:{base:["mb-1.5","after:content-['']","after:absolute","after:-bottom-1","after:left-0","after:right-0","after:h-divider","after:bg-divider"]},false:{}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},disableAnimation:{true:{},false:{base:"data-[hover=true]:transition-colors"}}},defaultVariants:{variant:"solid",color:"default",disableAnimation:!1,showDivider:!1},compoundVariants:[{variant:"solid",color:"default",class:{base:["data-[hover=true]:bg-default","data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:bg-default","data-[selectable=true]:focus:text-default-foreground"]}},{variant:"solid",color:"primary",class:{base:["data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground","data-[selectable=true]:focus:bg-primary data-[selectable=true]:focus:text-primary-foreground"]}},{variant:"solid",color:"secondary",class:{base:["data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground","data-[selectable=true]:focus:bg-secondary data-[selectable=true]:focus:text-secondary-foreground"]}},{variant:"solid",color:"success",class:{base:["data-[hover=true]:bg-success data-[hover=true]:text-success-foreground","data-[selectable=true]:focus:bg-success data-[selectable=true]:focus:text-success-foreground"]}},{variant:"solid",color:"warning",class:{base:["data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground","data-[selectable=true]:focus:bg-warning data-[selectable=true]:focus:text-warning-foreground"]}},{variant:"solid",color:"danger",class:{base:["data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground","data-[selectable=true]:focus:bg-danger data-[selectable=true]:focus:text-danger-foreground"]}},{variant:"shadow",color:"default",class:{base:["data-[hover=true]:shadow-default/50 data-[hover=true]:bg-default data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:shadow-default/50 data-[selectable=true]:focus:bg-default data-[selectable=true]:focus:text-default-foreground"]}},{variant:"shadow",color:"primary",class:{base:["data-[hover=true]:shadow-primary/30 data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground","data-[selectable=true]:focus:shadow-primary/30 data-[selectable=true]:focus:bg-primary data-[selectable=true]:focus:text-primary-foreground"]}},{variant:"shadow",color:"secondary",class:{base:["data-[hover=true]:shadow-secondary/30 data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground","data-[selectable=true]:focus:shadow-secondary/30 data-[selectable=true]:focus:bg-secondary data-[selectable=true]:focus:text-secondary-foreground"]}},{variant:"shadow",color:"success",class:{base:["data-[hover=true]:shadow-success/30 data-[hover=true]:bg-success data-[hover=true]:text-success-foreground","data-[selectable=true]:focus:shadow-success/30 data-[selectable=true]:focus:bg-success data-[selectable=true]:focus:text-success-foreground"]}},{variant:"shadow",color:"warning",class:{base:["data-[hover=true]:shadow-warning/30 data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground","data-[selectable=true]:focus:shadow-warning/30 data-[selectable=true]:focus:bg-warning data-[selectable=true]:focus:text-warning-foreground"]}},{variant:"shadow",color:"danger",class:{base:["data-[hover=true]:shadow-danger/30 data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground","data-[selectable=true]:focus:shadow-danger/30 data-[selectable=true]:focus:bg-danger data-[selectable=true]:focus:text-danger-foreground"]}},{variant:"bordered",color:"default",class:{base:["data-[hover=true]:border-default","data-[selectable=true]:focus:border-default"]}},{variant:"bordered",color:"primary",class:{base:["data-[hover=true]:border-primary data-[hover=true]:text-primary","data-[selectable=true]:focus:border-primary data-[selectable=true]:focus:text-primary"]}},{variant:"bordered",color:"secondary",class:{base:["data-[hover=true]:border-secondary data-[hover=true]:text-secondary","data-[selectable=true]:focus:border-secondary data-[selectable=true]:focus:text-secondary"]}},{variant:"bordered",color:"success",class:{base:["data-[hover=true]:border-success data-[hover=true]:text-success","data-[selectable=true]:focus:border-success data-[selectable=true]:focus:text-success"]}},{variant:"bordered",color:"warning",class:{base:["data-[hover=true]:border-warning data-[hover=true]:text-warning","data-[selectable=true]:focus:border-warning data-[selectable=true]:focus:text-warning"]}},{variant:"bordered",color:"danger",class:{base:["data-[hover=true]:border-danger data-[hover=true]:text-danger","data-[selectable=true]:focus:border-danger data-[selectable=true]:focus:text-danger"]}},{variant:"flat",color:"default",class:{base:["data-[hover=true]:bg-default/40","data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:bg-default/40","data-[selectable=true]:focus:text-default-foreground"]}},{variant:"flat",color:"primary",class:{base:["data-[hover=true]:bg-primary/20 data-[hover=true]:text-primary","data-[selectable=true]:focus:bg-primary/20 data-[selectable=true]:focus:text-primary"]}},{variant:"flat",color:"secondary",class:{base:["data-[hover=true]:bg-secondary/20 data-[hover=true]:text-secondary","data-[selectable=true]:focus:bg-secondary/20 data-[selectable=true]:focus:text-secondary"]}},{variant:"flat",color:"success",class:{base:["data-[hover=true]:bg-success/20 data-[hover=true]:text-success","data-[selectable=true]:focus:bg-success/20 data-[selectable=true]:focus:text-success"]}},{variant:"flat",color:"warning",class:{base:["data-[hover=true]:bg-warning/20 data-[hover=true]:text-warning","data-[selectable=true]:focus:bg-warning/20 data-[selectable=true]:focus:text-warning"]}},{variant:"flat",color:"danger",class:{base:["data-[hover=true]:bg-danger/20 data-[hover=true]:text-danger","data-[selectable=true]:focus:bg-danger/20 data-[selectable=true]:focus:text-danger"]}},{variant:"faded",color:"default",class:{base:["data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:text-default-foreground"]}},{variant:"faded",color:"primary",class:{base:["data-[hover=true]:text-primary","data-[selectable=true]:focus:text-primary"]}},{variant:"faded",color:"secondary",class:{base:["data-[hover=true]:text-secondary","data-[selectable=true]:focus:text-secondary"]}},{variant:"faded",color:"success",class:{base:["data-[hover=true]:text-success","data-[selectable=true]:focus:text-success"]}},{variant:"faded",color:"warning",class:{base:["data-[hover=true]:text-warning","data-[selectable=true]:focus:text-warning"]}},{variant:"faded",color:"danger",class:{base:["data-[hover=true]:text-danger","data-[selectable=true]:focus:text-danger"]}},{variant:"light",color:"default",class:{base:["data-[hover=true]:text-default-500","data-[selectable=true]:focus:text-default-500"]}},{variant:"light",color:"primary",class:{base:["data-[hover=true]:text-primary","data-[selectable=true]:focus:text-primary"]}},{variant:"light",color:"secondary",class:{base:["data-[hover=true]:text-secondary","data-[selectable=true]:focus:text-secondary"]}},{variant:"light",color:"success",class:{base:["data-[hover=true]:text-success","data-[selectable=true]:focus:text-success"]}},{variant:"light",color:"warning",class:{base:["data-[hover=true]:text-warning","data-[selectable=true]:focus:text-warning"]}},{variant:"light",color:"danger",class:{base:["data-[hover=true]:text-danger","data-[selectable=true]:focus:text-danger"]}}]}),o1=We({slots:{base:"relative mb-2",heading:"pl-1 text-tiny text-foreground-500",group:"data-[has-title=true]:pt-1",divider:"mt-2"}}),jm=We({slots:{base:["flex","flex-col","relative","overflow-hidden","height-auto","outline-none","text-foreground","box-border","bg-content1",...mr],header:["flex","p-3","z-10","w-full","justify-start","items-center","shrink-0","overflow-inherit","color-inherit","subpixel-antialiased"],body:["relative","flex","flex-1","w-full","p-3","flex-auto","flex-col","place-content-inherit","align-items-inherit","h-auto","break-words","text-left","overflow-y-auto","subpixel-antialiased"],footer:["p-3","h-auto","flex","w-full","items-center","overflow-hidden","color-inherit","subpixel-antialiased"]},variants:{shadow:{none:{base:"shadow-none"},sm:{base:"shadow-small"},md:{base:"shadow-medium"},lg:{base:"shadow-large"}},radius:{none:{base:"rounded-none",header:"rounded-none",footer:"rounded-none"},sm:{base:"rounded-small",header:"rounded-t-small",footer:"rounded-b-small"},md:{base:"rounded-medium",header:"rounded-t-medium",footer:"rounded-b-medium"},lg:{base:"rounded-large",header:"rounded-t-large",footer:"rounded-b-large"}},fullWidth:{true:{base:"w-full"}},isHoverable:{true:{base:"data-[hover=true]:bg-content2 dark:data-[hover=true]:bg-content2"}},isPressable:{true:{base:"cursor-pointer"}},isBlurred:{true:{base:["bg-background/80","dark:bg-background/20","backdrop-blur-md","backdrop-saturate-150"]}},isFooterBlurred:{true:{footer:["bg-background/10","backdrop-blur","backdrop-saturate-150"]}},isDisabled:{true:{base:"opacity-disabled cursor-not-allowed"}},disableAnimation:{true:"",false:{base:"transition-transform-background motion-reduce:transition-none"}}},compoundVariants:[{isPressable:!0,disableAnimation:!1,class:"data-[pressed=true]:scale-[0.97] tap-highlight-transparent"}],defaultVariants:{radius:"lg",shadow:"md",fullWidth:!1,isHoverable:!1,isPressable:!1,isDisabled:!1,disableAnimation:!1,isFooterBlurred:!1}}),Z$=We({base:"shrink-0 bg-divider border-none",variants:{orientation:{horizontal:"w-full h-divider",vertical:"h-full w-divider"}},defaultVariants:{orientation:"horizontal"}}),q$=We({base:["w-full","p-1","min-w-[200px]"]});We({slots:{base:["flex","group","gap-2","items-center","justify-between","relative","px-2","py-1.5","w-full","h-full","box-border","rounded-small","outline-none","cursor-pointer","tap-highlight-transparent","data-[pressed=true]:opacity-70",...mr,"data-[focus-visible=true]:dark:ring-offset-background-content1"],wrapper:"w-full flex flex-col items-start justify-center",title:"flex-1 text-small font-normal truncate",description:["w-full","text-tiny","text-foreground-500","group-hover:text-current"],selectedIcon:["text-inherit","w-3","h-3","flex-shrink-0"],shortcut:["px-1","py-0.5","rounded","font-sans","text-foreground-500","text-tiny","border-small","border-default-300","group-hover:border-current"]},variants:{variant:{solid:{base:""},bordered:{base:"border-medium border-transparent bg-transparent"},light:{base:"bg-transparent"},faded:{base:"border-small border-transparent hover:border-default data-[hover=true]:bg-default-100"},flat:{base:""},shadow:{base:"data-[hover=true]:shadow-lg"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},disableAnimation:{true:{},false:{}}},defaultVariants:{variant:"solid",color:"default",disableAnimation:!1},compoundVariants:[{variant:"solid",color:"default",class:{base:"data-[hover=true]:bg-default data-[hover=true]:text-default-foreground"}},{variant:"solid",color:"primary",class:{base:"data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground"}},{variant:"solid",color:"secondary",class:{base:"data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground"}},{variant:"solid",color:"success",class:{base:"data-[hover=true]:bg-success data-[hover=true]:text-success-foreground"}},{variant:"solid",color:"warning",class:{base:"data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground"}},{variant:"solid",color:"danger",class:{base:"data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground"}},{variant:"shadow",color:"default",class:{base:"data-[hover=true]:shadow-default/50 data-[hover=true]:bg-default data-[hover=true]:text-default-foreground"}},{variant:"shadow",color:"primary",class:{base:"data-[hover=true]:shadow-primary/30 data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground"}},{variant:"shadow",color:"secondary",class:{base:"data-[hover=true]:shadow-secondary/30 data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground"}},{variant:"shadow",color:"success",class:{base:"data-[hover=true]:shadow-success/30 data-[hover=true]:bg-success data-[hover=true]:text-success-foreground"}},{variant:"shadow",color:"warning",class:{base:"data-[hover=true]:shadow-warning/30 data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground"}},{variant:"shadow",color:"danger",class:{base:"data-[hover=true]:shadow-danger/30 data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground"}},{variant:"bordered",color:"default",class:{base:"data-[hover=true]:border-default"}},{variant:"bordered",color:"primary",class:{base:"data-[hover=true]:border-primary data-[hover=true]:text-primary"}},{variant:"bordered",color:"secondary",class:{base:"data-[hover=true]:border-secondary data-[hover=true]:text-secondary"}},{variant:"bordered",color:"success",class:{base:"data-[hover=true]:border-success data-[hover=true]:text-success"}},{variant:"bordered",color:"warning",class:{base:"data-[hover=true]:border-warning data-[hover=true]:text-warning"}},{variant:"bordered",color:"danger",class:{base:"data-[hover=true]:border-danger data-[hover=true]:text-danger"}},{variant:"flat",color:"default",class:{base:"data-[hover=true]:bg-default/40 data-[hover=true]:text-default-foreground"}},{variant:"flat",color:"primary",class:{base:"data-[hover=true]:bg-primary/20 data-[hover=true]:text-primary"}},{variant:"flat",color:"secondary",class:{base:"data-[hover=true]:bg-secondary/20 data-[hover=true]:text-secondary"}},{variant:"flat",color:"success",class:{base:"data-[hover=true]:bg-success/20 data-[hover=true]:text-success "}},{variant:"flat",color:"warning",class:{base:"data-[hover=true]:bg-warning/20 data-[hover=true]:text-warning"}},{variant:"flat",color:"danger",class:{base:"data-[hover=true]:bg-danger/20 data-[hover=true]:text-danger"}},{variant:"faded",color:"default",class:{base:"data-[hover=true]:text-default-foreground"}},{variant:"faded",color:"primary",class:{base:"data-[hover=true]:text-primary"}},{variant:"faded",color:"secondary",class:{base:"data-[hover=true]:text-secondary"}},{variant:"faded",color:"success",class:{base:"data-[hover=true]:text-success"}},{variant:"faded",color:"warning",class:{base:"data-[hover=true]:text-warning"}},{variant:"faded",color:"danger",class:{base:"data-[hover=true]:text-danger"}},{variant:"light",color:"default",class:{base:"data-[hover=true]:text-default-500"}},{variant:"light",color:"primary",class:{base:"data-[hover=true]:text-primary"}},{variant:"light",color:"secondary",class:{base:"data-[hover=true]:text-secondary"}},{variant:"light",color:"success",class:{base:"data-[hover=true]:text-success"}},{variant:"light",color:"warning",class:{base:"data-[hover=true]:text-warning"}},{variant:"light",color:"danger",class:{base:"data-[hover=true]:text-danger"}}]});We({slots:{base:"relative mb-2",heading:"pl-1 text-tiny text-foreground-500",group:"data-[has-title=true]:pt-1",divider:"mt-2"}});We({base:"w-full flex flex-col gap-0.5 p-1"});var _m=We({slots:{base:"group inline-flex flex-column w-full",listboxWrapper:"scroll-py-6 max-h-64 w-full",listbox:"",popoverContent:"w-full p-1 overflow-hidden",endContentWrapper:"relative flex h-full items-center -mr-2",clearButton:["text-medium","translate-x-1","cursor-text","opacity-0","text-default-500","group-data-[invalid=true]:text-danger","data-[visible=true]:opacity-100","data-[visible=true]:cursor-pointer","sm:data-[visible=true]:opacity-0","sm:group-data-[hover=true]:data-[visible=true]:opacity-100"],selectorButton:"text-medium"},variants:{isClearable:{true:{},false:{clearButton:"hidden"}},disableAnimation:{true:{selectorButton:"transition-none"},false:{selectorButton:"transition-transform duration-150 ease motion-reduce:transition-none"}},disableSelectorIconRotation:{true:{},false:{selectorButton:"data-[open=true]:rotate-180"}}},defaultVariants:{disableAnimation:!1,isClearable:!0,disableSelectorIconRotation:!1}}),J$=We({slots:{base:["flex","relative","justify-center","items-center","box-border","overflow-hidden","align-middle","text-white","z-0",...mr],img:["flex","object-cover","w-full","h-full","transition-opacity","!duration-500","opacity-0","data-[loaded=true]:opacity-100"],fallback:[...Gu,"flex","items-center","justify-center"],name:[...Gu,"font-normal","text-center","text-inherit"],icon:[...Gu,"flex","items-center","justify-center","text-inherit","w-full","h-full"]},variants:{size:{sm:{base:"w-8 h-8 text-tiny"},md:{base:"w-10 h-10 text-tiny"},lg:{base:"w-14 h-14 text-small"}},color:{default:{base:q.solid.default},primary:{base:q.solid.primary},secondary:{base:q.solid.secondary},success:{base:q.solid.success},warning:{base:q.solid.warning},danger:{base:q.solid.danger}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},isBordered:{true:{base:"ring-2 ring-offset-2 ring-offset-background dark:ring-offset-background-dark"}},isDisabled:{true:{base:"opacity-disabled"}},isInGroup:{true:{base:["-ms-2 data-[hover=true]:-translate-x-3 transition-transform","data-[focus-visible=true]:-translate-x-3"]}},isInGridGroup:{true:{base:"m-0 data-[hover=true]:translate-x-0"}}},defaultVariants:{size:"md",color:"default",radius:"full"},compoundVariants:[{color:"default",isBordered:!0,class:{base:"ring-default"}},{color:"primary",isBordered:!0,class:{base:"ring-primary"}},{color:"secondary",isBordered:!0,class:{base:"ring-secondary"}},{color:"success",isBordered:!0,class:{base:"ring-success"}},{color:"warning",isBordered:!0,class:{base:"ring-warning"}},{color:"danger",isBordered:!0,class:{base:"ring-danger"}}]});We({base:"flex items-center justify-center h-auto w-max-content",variants:{isGrid:{true:"inline-grid grid-cols-4 gap-3"}}});var e5=We({base:["z-0","group","relative","inline-flex","items-center","justify-center","box-border","appearance-none","outline-none","select-none","whitespace-nowrap","min-w-max","font-normal","subpixel-antialiased","overflow-hidden","tap-highlight-transparent",...mr],variants:{variant:{solid:"",bordered:"border-medium bg-transparent",light:"bg-transparent",flat:"",faded:"border-medium",shadow:"",ghost:"border-medium bg-transparent"},size:{sm:"px-unit-3 min-w-unit-16 h-unit-8 text-tiny gap-unit-2 rounded-small",md:"px-unit-4 min-w-unit-20 h-unit-10 text-small gap-unit-2 rounded-medium",lg:"px-unit-6 min-w-unit-24 h-unit-12 text-medium gap-unit-3 rounded-large"},color:{default:"",primary:"",secondary:"",success:"",warning:"",danger:""},radius:{none:"rounded-none",sm:"rounded-small",md:"rounded-medium",lg:"rounded-large",full:"rounded-full"},fullWidth:{true:"w-full"},isDisabled:{true:"opacity-disabled pointer-events-none"},isInGroup:{true:"[&:not(:first-child):not(:last-child)]:rounded-none"},isIconOnly:{true:"px-unit-0 !gap-unit-0",false:"[&>svg]:max-w-[theme(spacing.unit-8)]"},disableAnimation:{true:"!transition-none",false:"data-[pressed=true]:scale-[0.97] transition-transform-colors-opacity motion-reduce:transition-none"}},defaultVariants:{size:"md",variant:"solid",color:"default",fullWidth:!1,isDisabled:!1,isInGroup:!1,disableAnimation:!1},compoundVariants:[{variant:"solid",color:"default",class:q.solid.default},{variant:"solid",color:"primary",class:q.solid.primary},{variant:"solid",color:"secondary",class:q.solid.secondary},{variant:"solid",color:"success",class:q.solid.success},{variant:"solid",color:"warning",class:q.solid.warning},{variant:"solid",color:"danger",class:q.solid.danger},{variant:"shadow",color:"default",class:q.shadow.default},{variant:"shadow",color:"primary",class:q.shadow.primary},{variant:"shadow",color:"secondary",class:q.shadow.secondary},{variant:"shadow",color:"success",class:q.shadow.success},{variant:"shadow",color:"warning",class:q.shadow.warning},{variant:"shadow",color:"danger",class:q.shadow.danger},{variant:"bordered",color:"default",class:q.bordered.default},{variant:"bordered",color:"primary",class:q.bordered.primary},{variant:"bordered",color:"secondary",class:q.bordered.secondary},{variant:"bordered",color:"success",class:q.bordered.success},{variant:"bordered",color:"warning",class:q.bordered.warning},{variant:"bordered",color:"danger",class:q.bordered.danger},{variant:"flat",color:"default",class:q.flat.default},{variant:"flat",color:"primary",class:q.flat.primary},{variant:"flat",color:"secondary",class:q.flat.secondary},{variant:"flat",color:"success",class:q.flat.success},{variant:"flat",color:"warning",class:q.flat.warning},{variant:"flat",color:"danger",class:q.flat.danger},{variant:"faded",color:"default",class:q.faded.default},{variant:"faded",color:"primary",class:q.faded.primary},{variant:"faded",color:"secondary",class:q.faded.secondary},{variant:"faded",color:"success",class:q.faded.success},{variant:"faded",color:"warning",class:q.faded.warning},{variant:"faded",color:"danger",class:q.faded.danger},{variant:"light",color:"default",class:[q.light.default,"data-[hover=true]:bg-default/40"]},{variant:"light",color:"primary",class:[q.light.primary,"data-[hover=true]:bg-primary/20"]},{variant:"light",color:"secondary",class:[q.light.secondary,"data-[hover=true]:bg-secondary/20"]},{variant:"light",color:"success",class:[q.light.success,"data-[hover=true]:bg-success/20"]},{variant:"light",color:"warning",class:[q.light.warning,"data-[hover=true]:bg-warning/20"]},{variant:"light",color:"danger",class:[q.light.danger,"data-[hover=true]:bg-danger/20"]},{variant:"ghost",color:"default",class:q.ghost.default},{variant:"ghost",color:"primary",class:q.ghost.primary},{variant:"ghost",color:"secondary",class:q.ghost.secondary},{variant:"ghost",color:"success",class:q.ghost.success},{variant:"ghost",color:"warning",class:q.ghost.warning},{variant:"ghost",color:"danger",class:q.ghost.danger},{isInGroup:!0,class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,size:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,isRounded:!0,class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,radius:"none",class:"rounded-none first:rounded-s-none last:rounded-e-none"},{isInGroup:!0,radius:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,radius:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,radius:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,radius:"full",class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,variant:["ghost","bordered"],color:"default",className:no.default},{isInGroup:!0,variant:["ghost","bordered"],color:"primary",className:no.primary},{isInGroup:!0,variant:["ghost","bordered"],color:"secondary",className:no.secondary},{isInGroup:!0,variant:["ghost","bordered"],color:"success",className:no.success},{isInGroup:!0,variant:["ghost","bordered"],color:"warning",className:no.warning},{isInGroup:!0,variant:["ghost","bordered"],color:"danger",className:no.danger},{isIconOnly:!0,size:"sm",class:"min-w-unit-8 w-unit-8 h-unit-8"},{isIconOnly:!0,size:"md",class:"min-w-unit-10 w-unit-10 h-unit-10"},{isIconOnly:!0,size:"lg",class:"min-w-unit-12 w-unit-12 h-unit-12"},{variant:["solid","faded","flat","bordered","shadow"],class:"data-[hover=true]:opacity-hover"}]});We({base:"inline-flex items-center justify-center h-auto",variants:{fullWidth:{true:"w-full"}},defaultVariants:{fullWidth:!1}});var t5=e=>(e==null?void 0:e.length)<=4?e:e==null?void 0:e.slice(0,3),n5=(...e)=>{let t=" ";for(const n of e)if(typeof n=="string"&&n.length>0){t=n;break}return t};function i1(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t"u")&&!Bm[i]&&(Bm[i]=!0,((r=process==null?void 0:r5)==null?void 0:r.NODE_ENV)!=="production"))return console.warn(i,n)}var i5=e=>e.charAt(0).toUpperCase()+e.slice(1);function s5(e){return`${e}-${Math.floor(Math.random()*1e6)}`}function s1(e){for(const t in e)t.startsWith("on")&&delete e[t];return e}function a5(e){return typeof e=="function"}var H=e=>e?"true":void 0;function Yo(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=h.createContext(void 0);o.displayName=r;function i(){var s;const a=h.useContext(o);if(!a&&t){const l=new Error(n);throw l.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,l,i),l}return a}return[o.Provider,i,o]}function l5(e){return{UNSAFE_getDOMNode(){return e.current}}}function Oe(e){const t=h.useRef(null);return h.useImperativeHandle(e,()=>t.current),t}function u5(e,t){if(e!=null){if(a5(e)){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function kd(...e){return t=>{e.forEach(n=>u5(n,t))}}var c5=Object.create,a1=Object.defineProperty,d5=Object.getOwnPropertyDescriptor,l1=Object.getOwnPropertyNames,f5=Object.getPrototypeOf,p5=Object.prototype.hasOwnProperty,u1=(e,t)=>function(){return t||(0,e[l1(e)[0]])((t={exports:{}}).exports,t),t.exports},h5=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of l1(t))!p5.call(e,o)&&o!==n&&a1(e,o,{get:()=>t[o],enumerable:!(r=d5(t,o))||r.enumerable});return e},m5=(e,t,n)=>(n=e!=null?c5(f5(e)):{},h5(t||!e||!e.__esModule?a1(n,"default",{value:e,enumerable:!0}):n,e)),g5=u1({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.production.min.js"(e){var t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.iterator;function p(T){return T===null||typeof T!="object"?null:(T=f&&T[f]||T["@@iterator"],typeof T=="function"?T:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,w={};function x(T,O,V){this.props=T,this.context=O,this.refs=w,this.updater=V||y}x.prototype.isReactComponent={},x.prototype.setState=function(T,O){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,O,"setState")},x.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function g(){}g.prototype=x.prototype;function v(T,O,V){this.props=T,this.context=O,this.refs=w,this.updater=V||y}var S=v.prototype=new g;S.constructor=v,b(S,x.prototype),S.isPureReactComponent=!0;var k=Array.isArray,A=Object.prototype.hasOwnProperty,D={current:null},m={key:!0,ref:!0,__self:!0,__source:!0};function L(T,O,V){var W,U={},Q=null,K=null;if(O!=null)for(W in O.ref!==void 0&&(K=O.ref),O.key!==void 0&&(Q=""+O.key),O)A.call(O,W)&&!m.hasOwnProperty(W)&&(U[W]=O[W]);var G=arguments.length-2;if(G===1)U.children=V;else if(1<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[en]=t,e[Xi]=r,py(e,t,!1,!1),t.stateNode=e;e:{switch(s=Mc(n,r),n){case"dialog":Ce("cancel",e),Ce("close",e),o=r;break;case"iframe":case"object":case"embed":Ce("load",e),o=r;break;case"video":case"audio":for(o=0;oVo&&(t.flags|=128,r=!0,ai(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ga(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ai(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!$e)return et(t),null}else 2*Re()-i.renderingStartTime>Vo&&n!==1073741824&&(t.flags|=128,r=!0,ai(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Re(),t.sibling=null,n=Ee.current,ye(Ee,r?n&1|2:n&1),t):(et(t),null);case 22:case 23:return Wf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?xt&1073741824&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),null;case 24:return null;case 25:return null}throw Error(z(156,t.tag))}function Q2(e,t){switch(Pf(t),t.tag){case 1:return gt(t.type)&&Ba(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _o(),Se(mt),Se(ot),Nf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Df(t),null;case 13:if(Se(Ee),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(z(340));Fo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Se(Ee),null;case 4:return _o(),null;case 10:return Tf(t.type._context),null;case 22:case 23:return Wf(),null;case 24:return null;default:return null}}var Us=!1,nt=!1,Z2=typeof WeakSet=="function"?WeakSet:Set,X=null;function bo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){De(e,t,r)}else n.current=null}function rd(e,t,n){try{n()}catch(r){De(e,t,r)}}var zh=!1;function J2(e,t){if(Bc=Oa,e=b0(),Cf(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++u===o&&(a=s),f===i&&++c===r&&(l=s),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Vc={focusedElem:e,selectionRange:n},Oa=!1,X=t;X!==null;)if(t=X,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,X=e;else for(;X!==null;){t=X;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var b=y.memoizedProps,w=y.memoizedState,x=t.stateNode,g=x.getSnapshotBeforeUpdate(t.elementType===t.type?b:zt(t.type,b),w);x.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(z(163))}}catch(S){De(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,X=e;break}X=t.return}return y=zh,zh=!1,y}function Di(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&rd(t,n,i)}o=o.next}while(o!==r)}}function _l(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function od(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function gy(e){var t=e.alternate;t!==null&&(e.alternate=null,gy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[en],delete t[Xi],delete t[Wc],delete t[I2],delete t[R2])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function vy(e){return e.tag===5||e.tag===3||e.tag===4}function Wh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vy(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function id(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=_a));else if(r!==4&&(e=e.child,e!==null))for(id(e,t,n),e=e.sibling;e!==null;)id(e,t,n),e=e.sibling}function sd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(sd(e,t,n),e=e.sibling;e!==null;)sd(e,t,n),e=e.sibling}var Qe=null,Wt=!1;function Dn(e,t,n){for(n=n.child;n!==null;)yy(e,t,n),n=n.sibling}function yy(e,t,n){if(nn&&typeof nn.onCommitFiberUnmount=="function")try{nn.onCommitFiberUnmount(Ll,n)}catch{}switch(n.tag){case 5:nt||bo(n,t);case 6:var r=Qe,o=Wt;Qe=null,Dn(e,t,n),Qe=r,Wt=o,Qe!==null&&(Wt?(e=Qe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Qe.removeChild(n.stateNode));break;case 18:Qe!==null&&(Wt?(e=Qe,n=n.stateNode,e.nodeType===8?Tu(e.parentNode,n):e.nodeType===1&&Tu(e,n),Wi(e)):Tu(Qe,n.stateNode));break;case 4:r=Qe,o=Wt,Qe=n.stateNode.containerInfo,Wt=!0,Dn(e,t,n),Qe=r,Wt=o;break;case 0:case 11:case 14:case 15:if(!nt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&rd(n,t,s),o=o.next}while(o!==r)}Dn(e,t,n);break;case 1:if(!nt&&(bo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){De(n,t,a)}Dn(e,t,n);break;case 21:Dn(e,t,n);break;case 22:n.mode&1?(nt=(r=nt)||n.memoizedState!==null,Dn(e,t,n),nt=r):Dn(e,t,n);break;default:Dn(e,t,n)}}function Uh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Z2),t.forEach(function(r){var o=aS.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Vt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=Re()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*eS(r/1960))-r,10e?16:e,Kn===null)var r=!1;else{if(e=Kn,Kn=null,Ja=0,ue&6)throw Error(z(331));var o=ue;for(ue|=4,X=e.current;X!==null;){var i=X,s=i.child;if(X.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lRe()-Kf?Nr(e,0):Vf|=n),vt(e,t)}function Ey(e,t){t===0&&(e.mode&1?(t=Os,Os<<=1,!(Os&130023424)&&(Os=4194304)):t=1);var n=lt();e=kn(e,t),e!==null&&(hs(e,t,n),vt(e,n))}function sS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ey(e,n)}function aS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(z(314))}r!==null&&r.delete(t),Ey(e,n)}var ky;ky=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||mt.current)ht=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ht=!1,Y2(e,t,n);ht=!!(e.flags&131072)}else ht=!1,$e&&t.flags&1048576&&M0(t,za,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ba(e,t),e=t.pendingProps;var o=Oo(t,ot.current);Lo(t,n),o=Rf(null,t,r,e,o,n);var i=Of();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,gt(r)?(i=!0,Va(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Mf(t),o.updater=Fl,t.stateNode=o,o._reactInternals=t,Qc(t,r,e,n),t=qc(null,t,r,!0,i,n)):(t.tag=0,$e&&i&&Sf(t),at(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ba(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=uS(r),e=zt(r,e),o){case 0:t=Jc(null,t,r,e,n);break e;case 1:t=Bh(null,t,r,e,n);break e;case 11:t=jh(null,t,r,e,n);break e;case 14:t=_h(null,t,r,zt(r.type,e),n);break e}throw Error(z(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:zt(r,o),Jc(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:zt(r,o),Bh(e,t,r,o,n);case 3:e:{if(cy(t),e===null)throw Error(z(387));r=t.pendingProps,i=t.memoizedState,o=i.element,I0(e,t),Ha(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Bo(Error(z(423)),t),t=Vh(e,t,r,n,o);break e}else if(r!==o){o=Bo(Error(z(424)),t),t=Vh(e,t,r,n,o);break e}else for(Ct=Gn(t.stateNode.containerInfo.firstChild),Pt=t,$e=!0,Ht=null,n=j0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Fo(),r===o){t=Tn(e,t,n);break e}at(e,t,r,n)}t=t.child}return t;case 5:return _0(t),e===null&&Gc(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Kc(r,o)?s=null:i!==null&&Kc(r,i)&&(t.flags|=32),uy(e,t),at(e,t,s,n),t.child;case 6:return e===null&&Gc(t),null;case 13:return dy(e,t,n);case 4:return Lf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=jo(t,null,r,n):at(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:zt(r,o),jh(e,t,r,o,n);case 7:return at(e,t,t.pendingProps,n),t.child;case 8:return at(e,t,t.pendingProps.children,n),t.child;case 12:return at(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,ye(Wa,r._currentValue),r._currentValue=s,i!==null)if(Xt(i.value,s)){if(i.children===o.children&&!mt.current){t=Tn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Cn(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Yc(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(z(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Yc(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}at(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Lo(t,n),o=_t(o),r=r(o),t.flags|=1,at(e,t,r,n),t.child;case 14:return r=t.type,o=zt(r,t.pendingProps),o=zt(r.type,o),_h(e,t,r,o,n);case 15:return ay(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:zt(r,o),ba(e,t),t.tag=1,gt(r)?(e=!0,Va(t)):e=!1,Lo(t,n),O0(t,r,o),Qc(t,r,o,n),qc(null,t,r,!0,e,n);case 19:return fy(e,t,n);case 22:return ly(e,t,n)}throw Error(z(156,t.tag))};function Ty(e,t){return e0(e,t)}function lS(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ft(e,t,n,r){return new lS(e,t,n,r)}function Hf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function uS(e){if(typeof e=="function")return Hf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===df)return 11;if(e===ff)return 14}return 2}function Zn(e,t){var n=e.alternate;return n===null?(n=Ft(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ca(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Hf(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case uo:return Ir(n.children,o,i,t);case cf:s=8,o|=8;break;case xc:return e=Ft(12,n,t,o|2),e.elementType=xc,e.lanes=i,e;case wc:return e=Ft(13,n,t,o),e.elementType=wc,e.lanes=i,e;case Cc:return e=Ft(19,n,t,o),e.elementType=Cc,e.lanes=i,e;case Fv:return Vl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Rv:s=10;break e;case Ov:s=9;break e;case df:s=11;break e;case ff:s=14;break e;case Rn:s=16,r=null;break e}throw Error(z(130,e==null?e:typeof e,""))}return t=Ft(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Ir(e,t,n,r){return e=Ft(7,e,r,t),e.lanes=n,e}function Vl(e,t,n,r){return e=Ft(22,e,r,t),e.elementType=Fv,e.lanes=n,e.stateNode={isHidden:!1},e}function Ou(e,t,n){return e=Ft(6,e,null,t),e.lanes=n,e}function Fu(e,t,n){return t=Ft(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function cS(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vu(0),this.expirationTimes=vu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vu(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Gf(e,t,n,r,o,i,s,a,l){return e=new cS(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ft(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Mf(i),e}function dS(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Dy)}catch(e){console.error(e)}}Dy(),Mv.exports=kt;var Zf=Mv.exports;const Ny=Al(Zf);var qh=Zf;yc.createRoot=qh.createRoot,yc.hydrateRoot=qh.hydrateRoot;const tl={prefix:String(Math.round(Math.random()*1e10)),current:0},Iy=ee.createContext(tl),gS=ee.createContext(!1);let vS=!!(typeof window<"u"&&window.document&&window.document.createElement),ju=new WeakMap;function yS(e=!1){let t=h.useContext(Iy),n=h.useRef(null);if(n.current===null&&!e){var r,o;let i=(o=ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(r=o.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let s=ju.get(i);s==null?ju.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==s.state&&(t.current=s.id,ju.delete(i))}n.current=++t.current}return n.current}function bS(e){let t=h.useContext(Iy);t===tl&&!vS&&console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.");let n=yS(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function xS(e){let t=ee.useId(),[n]=h.useState(ys()),r=n?"react-aria":`react-aria${tl.prefix}`;return e||`${r}-${t}`}const wS=typeof ee.useId=="function"?xS:bS;function CS(){return!1}function SS(){return!0}function PS(e){return()=>{}}function ys(){return typeof ee.useSyncExternalStore=="function"?ee.useSyncExternalStore(PS,CS,SS):h.useContext(gS)}class $S{getStringForLocale(t,n){let r=this.strings[n];r||(r=ES(n,this.strings,this.defaultLocale),this.strings[n]=r);let o=r[t];if(!o)throw new Error(`Could not find intl message ${t} in ${n} locale`);return o}constructor(t,n="en-US"){this.strings={...t},this.defaultLocale=n}}function ES(e,t,n="en-US"){if(t[e])return t[e];let r=kS(e);if(t[r])return t[r];for(let o in t)if(o.startsWith(r+"-"))return t[o];return t[n]}function kS(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const em=new Map,tm=new Map;class TS{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let o=n["="+t];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+r,s=em.get(i);s||(s=new Intl.PluralRules(this.locale,{type:r}),em.set(i,s));let a=s.select(t);return o=n[a]||n.other,typeof o=="function"?o():o}number(t){let n=tm.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),tm.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}function AS(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function MS(e,t,n){AS(e,t),t.set(e,n)}function pr(e,t,n){let[r,o]=h.useState(e||t),i=h.useRef(e!==void 0),s=e!==void 0;h.useEffect(()=>{let u=i.current;u!==s&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),i.current=s},[s]);let a=s?e:r,l=h.useCallback((u,...c)=>{let d=(f,...p)=>{n&&(Object.is(a,f)||n(f,...p)),s||(a=f)};typeof u=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((p,...y)=>{let b=u(s?a:p,...y);return d(b,...c),s?p:b})):(s||o(u),d(u,...c))},[s,a,n]);return[a,l]}function dd(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function Ry(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t{};function Oe(e){const t=h.useRef(null);return Te(()=>{t.current=e},[e]),h.useCallback((...n)=>{const r=t.current;return r(...n)},[])}function DS(e){let[t,n]=h.useState(e),r=h.useRef(null),o=Oe(()=>{let s=r.current.next();if(s.done){r.current=null;return}t===s.value?o():n(s.value)});Te(()=>{r.current&&o()});let i=Oe(s=>{r.current=s(t),o()});return[t,i]}let NS=!!(typeof window<"u"&&window.document&&window.document.createElement),nl=new Map;function sn(e){let[t,n]=h.useState(e),r=h.useRef(null),o=wS(t),i=h.useCallback(s=>{r.current=s},[]);return NS&&nl.set(o,i),Te(()=>{let s=o;return()=>{nl.delete(s)}},[o]),h.useEffect(()=>{let s=r.current;s&&(r.current=null,n(s))}),o}function IS(e,t){if(e===t)return e;let n=nl.get(e);if(n)return n(t),t;let r=nl.get(t);return r?(r(e),e):t}function Jn(e=[]){let t=sn(),[n,r]=DS(t),o=h.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Te(o,[t,o,...e]),n}function zr(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const gn=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},rl=e=>e&&"window"in e&&e.window===e?e:gn(e).defaultView||window;function Y(...e){let t={...e[0]};for(let n=1;n=65&&o.charCodeAt(2)<=90?t[o]=zr(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=LS(i,s):o==="id"&&i&&s?t.id=IS(i,s):t[o]=s!==void 0?s:i}}return t}function RS(...e){return e.length===1?e[0]:t=>{for(let n of e)typeof n=="function"?n(t):n!=null&&(n.current=t)}}const OS=new Set(["id"]),FS=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),jS=new Set(["href","target","rel","download","ping","referrerPolicy"]),_S=/^(data-.*)$/;function hr(e,t={}){let{labelable:n,isLink:r,propNames:o}=t,i={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(OS.has(s)||n&&FS.has(s)||r&&jS.has(s)||o!=null&&o.has(s)||_S.test(s))&&(i[s]=e[s]);return i}function St(e){if(BS())e.focus({preventScroll:!0});else{let t=VS(e);e.focus(),KS(t)}}let Ys=null;function BS(){if(Ys==null){Ys=!1;try{var e=document.createElement("div");e.focus({get preventScroll(){return Ys=!0,!0}})}catch{}}return Ys}function VS(e){for(var t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==r;)(t.offsetHeight"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function Jf(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function An(){return Jf(/^Mac/i)}function zS(){return Jf(/^iPhone/i)}function Oy(){return Jf(/^iPad/i)||An()&&navigator.maxTouchPoints>1}function bs(){return zS()||Oy()}function Sa(){return An()||bs()}function Fy(){return Hl(/AppleWebKit/i)&&!WS()}function WS(){return Hl(/Chrome/i)}function jy(){return Hl(/Android/i)}function US(){return Hl(/Firefox/i)}const _y=h.createContext({isNative:!0,open:YS});function HS(e){let{children:t,navigate:n}=e,r=h.useMemo(()=>({isNative:!1,open:(o,i)=>{By(o,s=>{GS(s,i)?n(s.pathname+s.search+s.hash):an(s,i)})}}),[n]);return ee.createElement(_y.Provider,{value:r},t)}function Gl(){return h.useContext(_y)}function GS(e,t){let n=e.getAttribute("target");return(!n||n==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function an(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:s,altKey:a,shiftKey:l}=t;US()&&(!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(An()?i=!0:s=!0);let u=Fy()&&An()&&!Oy()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:s,altKey:a,shiftKey:l}):new MouseEvent("click",{metaKey:i,ctrlKey:s,altKey:a,shiftKey:l,bubbles:!0,cancelable:!0});an.isOpening=n,St(e),e.dispatchEvent(u),an.isOpening=!1}an.isOpening=!1;function By(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function YS(e,t){By(e,n=>an(n,t))}let so=new Map,fd=new Set;function nm(){if(typeof window>"u")return;let e=n=>{let r=so.get(n.target);r||(r=new Set,so.set(n.target,r),n.target.addEventListener("transitioncancel",t)),r.add(n.propertyName)},t=n=>{let r=so.get(n.target);if(r&&(r.delete(n.propertyName),r.size===0&&(n.target.removeEventListener("transitioncancel",t),so.delete(n.target)),so.size===0)){for(let o of fd)o();fd.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?nm():document.addEventListener("DOMContentLoaded",nm));function qf(e){requestAnimationFrame(()=>{so.size===0?e():fd.add(e)})}function ep(){let e=h.useRef(new Map),t=h.useCallback((o,i,s,a)=>{let l=a!=null&&a.once?(...u)=>{e.current.delete(s),s(...u)}:s;e.current.set(s,{type:i,eventTarget:o,fn:l,options:a}),o.addEventListener(i,s,a)},[]),n=h.useCallback((o,i,s,a)=>{var l;let u=((l=e.current.get(s))===null||l===void 0?void 0:l.fn)||s;o.removeEventListener(i,u,a),e.current.delete(s)},[]),r=h.useCallback(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return h.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function ol(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;return n=sn(n),o&&r?o=[...new Set([n,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!r&&!o&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function XS(){return typeof window.ResizeObserver<"u"}function Vy(e){const{ref:t,onResize:n}=e;h.useEffect(()=>{let r=t==null?void 0:t.current;if(r)if(XS()){const o=new window.ResizeObserver(i=>{i.length&&n()});return o.observe(r),()=>{r&&o.unobserve(r)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t])}function tp(e,t){Te(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}})}function rm(e){for(il(e)&&(e=e.parentElement);e&&!il(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function il(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}let QS=0;const _u=new Map;function ZS(e){let[t,n]=h.useState(void 0);return Te(()=>{if(!e)return;let r=_u.get(e);if(r)n(r.element.id);else{let o=`react-aria-description-${QS++}`;n(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),r={refCount:0,element:i},_u.set(e,r)}return r.refCount++,()=>{--r.refCount===0&&(r.element.remove(),_u.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function JS(e,t,n,r){let o=Oe(n),i=n==null;h.useEffect(()=>{if(i)return;let s=e.current;return s.addEventListener(t,o,r),()=>{s.removeEventListener(t,o,r)}},[e,t,r,i,o])}function Ky(e,t){let n=om(e,t,"left"),r=om(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,s=e.scrollLeft,a=e.scrollTop,{borderTopWidth:l,borderLeftWidth:u}=getComputedStyle(e),c=e.scrollLeft+parseInt(u,10),d=e.scrollTop+parseInt(l,10),f=c+e.clientWidth,p=d+e.clientHeight;n<=s?s=n-parseInt(u,10):n+o>f&&(s+=n+o-f),r<=d?a=r-parseInt(l,10):r+i>p&&(a+=r+i-p),e.scrollLeft=s,e.scrollTop=a}function om(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent}return o}function im(e,t){if(document.contains(e)){let s=document.scrollingElement||document.documentElement;if(window.getComputedStyle(s).overflow==="hidden"){let l=rm(e);for(;e&&l&&e!==s&&l!==s;)Ky(l,e),e=l,l=rm(e)}else{var n;let{left:l,top:u}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:c,top:d}=e.getBoundingClientRect();if(Math.abs(l-c)>1||Math.abs(u-d)>1){var r,o,i;t==null||(o=t.containingElement)===null||o===void 0||(r=o.scrollIntoView)===null||r===void 0||r.call(o,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}}}function ns(e){return e.mozInputSource===0&&e.isTrusted?!0:jy()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function zy(e){return!jy()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function qS(e,t,n){let r=h.useRef(t),o=Oe(()=>{n&&n(r.current)});h.useEffect(()=>{var i;let s=e==null||(i=e.current)===null||i===void 0?void 0:i.form;return s==null||s.addEventListener("reset",o),()=>{s==null||s.removeEventListener("reset",o)}},[e,o])}const eP=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),tP=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Wy(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize().script;return n?eP.has(n):!1}let t=e.split("-")[0];return tP.has(t)}function Uy(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Wy(e)?"rtl":"ltr"}}let pd=Uy(),Ci=new Set;function sm(){pd=Uy();for(let e of Ci)e(pd)}function Hy(){let e=ys(),[t,n]=h.useState(pd);return h.useEffect(()=>(Ci.size===0&&window.addEventListener("languagechange",sm),Ci.add(n),()=>{Ci.delete(n),Ci.size===0&&window.removeEventListener("languagechange",sm)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const Gy=ee.createContext(null);function nP(e){let{locale:t,children:n}=e,r=Hy(),o=t?{locale:t,direction:Wy(t)?"rtl":"ltr"}:r;return ee.createElement(Gy.Provider,{value:o},n)}function xs(){let e=Hy();return h.useContext(Gy)||e}const am=new WeakMap;function rP(e){let t=am.get(e);return t||(t=new $S(e),am.set(e,t)),t}function np(e){let{locale:t}=xs(),n=h.useMemo(()=>rP(e),[e]);return h.useMemo(()=>new TS(t,n),[t,n])}let Bu=new Map;function Yy(e){let{locale:t}=xs(),n=t+(e?Object.entries(e).sort((o,i)=>o[0]s.length===0?!0:(i=i.normalize("NFC"),s=s.normalize("NFC"),t.compare(i.slice(0,s.length),s)===0),[t]),r=h.useCallback((i,s)=>s.length===0?!0:(i=i.normalize("NFC"),s=s.normalize("NFC"),t.compare(i.slice(-s.length),s)===0),[t]),o=h.useCallback((i,s)=>{if(s.length===0)return!0;i=i.normalize("NFC"),s=s.normalize("NFC");let a=0,l=s.length;for(;a+l<=i.length;a++){let u=i.slice(a,a+l);if(t.compare(s,u)===0)return!0}return!1},[t]);return h.useMemo(()=>({startsWith:n,endsWith:r,contains:o}),[n,r,o])}var tn=function(){return tn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r{qf(()=>{if(wo==="restoring"){const t=gn(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=hd||""),hd="",wo="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Pa.has(e)){let t=Pa.get(e);e.style.userSelect==="none"&&t&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Pa.delete(e)}}const rp=ee.createContext({register:()=>{}});rp.displayName="PressResponderContext";function uP(e){let t=h.useContext(rp);if(t){let{register:n,...r}=t;e=Y(r,e),n()}return tp(t,e.ref),e}var Qs=new WeakMap;class Zs{continuePropagation(){lm(this,Qs,!1)}get shouldStopPropagation(){return aP(this,Qs)}constructor(t,n,r){MS(this,Qs,{writable:!0,value:void 0}),lm(this,Qs,!0),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey}}const cm=Symbol("linkClicked");function ws(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,isDisabled:s,isPressed:a,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:c,ref:d,...f}=uP(e),[p,y]=h.useState(!1),b=h.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:w,removeAllGlobalListeners:x}=ep(),g=Oe((m,L)=>{let M=b.current;if(s||M.didFirePressStart)return!1;let E=!0;if(M.isTriggeringEvent=!0,r){let N=new Zs("pressstart",L,m);r(N),E=N.shouldStopPropagation}return n&&n(!0),M.isTriggeringEvent=!1,M.didFirePressStart=!0,y(!0),E}),v=Oe((m,L,M=!0)=>{let E=b.current;if(!E.didFirePressStart)return!1;E.ignoreClickAfterPress=!0,E.didFirePressStart=!1,E.isTriggeringEvent=!0;let N=!0;if(o){let C=new Zs("pressend",L,m);o(C),N=C.shouldStopPropagation}if(n&&n(!1),y(!1),t&&M&&!s){let C=new Zs("press",L,m);t(C),N&&(N=C.shouldStopPropagation)}return E.isTriggeringEvent=!1,N}),S=Oe((m,L)=>{let M=b.current;if(s)return!1;if(i){M.isTriggeringEvent=!0;let E=new Zs("pressup",L,m);return i(E),M.isTriggeringEvent=!1,E.shouldStopPropagation}return!0}),k=Oe(m=>{let L=b.current;L.isPressed&&L.target&&(L.isOverTarget&&L.pointerType!=null&&v(cn(L.target,m),L.pointerType,!1),L.isPressed=!1,L.isOverTarget=!1,L.activePointerId=null,L.pointerType=null,x(),c||Xs(L.target))}),A=Oe(m=>{u&&k(m)}),D=h.useMemo(()=>{let m=b.current,L={onKeyDown(E){if(Vu(E.nativeEvent,E.currentTarget)&&E.currentTarget.contains(E.target)){var N;fm(E.target,E.key)&&E.preventDefault();let C=!0;!m.isPressed&&!E.repeat&&(m.target=E.currentTarget,m.isPressed=!0,C=g(E,"keyboard"),w(gn(E.currentTarget),"keyup",M,!1)),C&&E.stopPropagation(),E.metaKey&&An()&&((N=m.metaKeyEvents)===null||N===void 0||N.set(E.key,E.nativeEvent))}else E.key==="Meta"&&(m.metaKeyEvents=new Map)},onKeyUp(E){Vu(E.nativeEvent,E.currentTarget)&&!E.repeat&&E.currentTarget.contains(E.target)&&m.target&&S(cn(m.target,E),"keyboard")},onClick(E){if(!(E&&!E.currentTarget.contains(E.target))&&E&&E.button===0&&!m.isTriggeringEvent&&!an.isOpening){let N=!0;if(s&&E.preventDefault(),!m.ignoreClickAfterPress&&!m.ignoreEmulatedMouseEvents&&!m.isPressed&&(m.pointerType==="virtual"||ns(E.nativeEvent))){!s&&!l&&St(E.currentTarget);let C=g(E,"virtual"),$=S(E,"virtual"),R=v(E,"virtual");N=C&&$&&R}m.ignoreEmulatedMouseEvents=!1,m.ignoreClickAfterPress=!1,N&&E.stopPropagation()}}},M=E=>{var N;if(m.isPressed&&m.target&&Vu(E,m.target)){var C;fm(E.target,E.key)&&E.preventDefault();let R=E.target,_=v(cn(m.target,E),"keyboard",m.target.contains(R));x(),_&&E.stopPropagation(),E.key!=="Enter"&&op(m.target)&&m.target.contains(R)&&!E[cm]&&(E[cm]=!0,an(m.target,E,!1)),m.isPressed=!1,(C=m.metaKeyEvents)===null||C===void 0||C.delete(E.key)}else if(E.key==="Meta"&&(!((N=m.metaKeyEvents)===null||N===void 0)&&N.size)){var $;let R=m.metaKeyEvents;m.metaKeyEvents=void 0;for(let _ of R.values())($=m.target)===null||$===void 0||$.dispatchEvent(new KeyboardEvent("keyup",_))}};if(typeof PointerEvent<"u"){L.onPointerDown=$=>{if($.button!==0||!$.currentTarget.contains($.target))return;if(zy($.nativeEvent)){m.pointerType="virtual";return}Ku($.currentTarget)&&$.preventDefault(),m.pointerType=$.pointerType;let R=!0;m.isPressed||(m.isPressed=!0,m.isOverTarget=!0,m.activePointerId=$.pointerId,m.target=$.currentTarget,!s&&!l&&St($.currentTarget),c||um(m.target),R=g($,m.pointerType),w(gn($.currentTarget),"pointermove",E,!1),w(gn($.currentTarget),"pointerup",N,!1),w(gn($.currentTarget),"pointercancel",C,!1)),R&&$.stopPropagation()},L.onMouseDown=$=>{$.currentTarget.contains($.target)&&$.button===0&&(Ku($.currentTarget)&&$.preventDefault(),$.stopPropagation())},L.onPointerUp=$=>{!$.currentTarget.contains($.target)||m.pointerType==="virtual"||$.button===0&&qr($,$.currentTarget)&&S($,m.pointerType||$.pointerType)};let E=$=>{$.pointerId===m.activePointerId&&(m.target&&qr($,m.target)?!m.isOverTarget&&m.pointerType!=null&&(m.isOverTarget=!0,g(cn(m.target,$),m.pointerType)):m.target&&m.isOverTarget&&m.pointerType!=null&&(m.isOverTarget=!1,v(cn(m.target,$),m.pointerType,!1),A($)))},N=$=>{$.pointerId===m.activePointerId&&m.isPressed&&$.button===0&&m.target&&(qr($,m.target)&&m.pointerType!=null?v(cn(m.target,$),m.pointerType):m.isOverTarget&&m.pointerType!=null&&v(cn(m.target,$),m.pointerType,!1),m.isPressed=!1,m.isOverTarget=!1,m.activePointerId=null,m.pointerType=null,x(),c||Xs(m.target))},C=$=>{k($)};L.onDragStart=$=>{$.currentTarget.contains($.target)&&k($)}}else{L.onMouseDown=C=>{if(C.button!==0||!C.currentTarget.contains(C.target))return;if(Ku(C.currentTarget)&&C.preventDefault(),m.ignoreEmulatedMouseEvents){C.stopPropagation();return}m.isPressed=!0,m.isOverTarget=!0,m.target=C.currentTarget,m.pointerType=ns(C.nativeEvent)?"virtual":"mouse",!s&&!l&&St(C.currentTarget),g(C,m.pointerType)&&C.stopPropagation(),w(gn(C.currentTarget),"mouseup",E,!1)},L.onMouseEnter=C=>{if(!C.currentTarget.contains(C.target))return;let $=!0;m.isPressed&&!m.ignoreEmulatedMouseEvents&&m.pointerType!=null&&(m.isOverTarget=!0,$=g(C,m.pointerType)),$&&C.stopPropagation()},L.onMouseLeave=C=>{if(!C.currentTarget.contains(C.target))return;let $=!0;m.isPressed&&!m.ignoreEmulatedMouseEvents&&m.pointerType!=null&&(m.isOverTarget=!1,$=v(C,m.pointerType,!1),A(C)),$&&C.stopPropagation()},L.onMouseUp=C=>{C.currentTarget.contains(C.target)&&!m.ignoreEmulatedMouseEvents&&C.button===0&&S(C,m.pointerType||"mouse")};let E=C=>{if(C.button===0){if(m.isPressed=!1,x(),m.ignoreEmulatedMouseEvents){m.ignoreEmulatedMouseEvents=!1;return}m.target&&qr(C,m.target)&&m.pointerType!=null?v(cn(m.target,C),m.pointerType):m.target&&m.isOverTarget&&m.pointerType!=null&&v(cn(m.target,C),m.pointerType,!1),m.isOverTarget=!1}};L.onTouchStart=C=>{if(!C.currentTarget.contains(C.target))return;let $=cP(C.nativeEvent);if(!$)return;m.activePointerId=$.identifier,m.ignoreEmulatedMouseEvents=!0,m.isOverTarget=!0,m.isPressed=!0,m.target=C.currentTarget,m.pointerType="touch",!s&&!l&&St(C.currentTarget),c||um(m.target),g(C,m.pointerType)&&C.stopPropagation(),w(rl(C.currentTarget),"scroll",N,!0)},L.onTouchMove=C=>{if(!C.currentTarget.contains(C.target))return;if(!m.isPressed){C.stopPropagation();return}let $=dm(C.nativeEvent,m.activePointerId),R=!0;$&&qr($,C.currentTarget)?!m.isOverTarget&&m.pointerType!=null&&(m.isOverTarget=!0,R=g(C,m.pointerType)):m.isOverTarget&&m.pointerType!=null&&(m.isOverTarget=!1,R=v(C,m.pointerType,!1),A(C)),R&&C.stopPropagation()},L.onTouchEnd=C=>{if(!C.currentTarget.contains(C.target))return;if(!m.isPressed){C.stopPropagation();return}let $=dm(C.nativeEvent,m.activePointerId),R=!0;$&&qr($,C.currentTarget)&&m.pointerType!=null?(S(C,m.pointerType),R=v(C,m.pointerType)):m.isOverTarget&&m.pointerType!=null&&(R=v(C,m.pointerType,!1)),R&&C.stopPropagation(),m.isPressed=!1,m.activePointerId=null,m.isOverTarget=!1,m.ignoreEmulatedMouseEvents=!0,m.target&&!c&&Xs(m.target),x()},L.onTouchCancel=C=>{C.currentTarget.contains(C.target)&&(C.stopPropagation(),m.isPressed&&k(C))};let N=C=>{m.isPressed&&C.target.contains(m.target)&&k({currentTarget:m.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};L.onDragStart=C=>{C.currentTarget.contains(C.target)&&k(C)}}return L},[w,s,l,x,c,k,A,v,g,S]);return h.useEffect(()=>()=>{var m;c||Xs((m=b.current.target)!==null&&m!==void 0?m:void 0)},[c]),{isPressed:a||p,pressProps:Y(f,D)}}function op(e){return e.tagName==="A"&&e.hasAttribute("href")}function Vu(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof rl(o).HTMLInputElement&&!Zy(o,n)||o instanceof rl(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&op(o))&&n!=="Enter")}function cP(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function dm(e,t){const n=e.changedTouches;for(let r=0;rt.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function qr(e,t){let n=t.getBoundingClientRect(),r=dP(e);return fP(n,r)}function Ku(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function fm(e,t){return e instanceof HTMLInputElement?!Zy(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!op(e)}const pP=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Zy(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":pP.has(e.type)}function hP({children:e}){let t=h.useMemo(()=>({register:()=>{}}),[]);return ee.createElement(rp.Provider,{value:t},e)}class mP{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function Jy(e){let t=h.useRef({isFocused:!1,observer:null});Te(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Oe(r=>{e==null||e(r)});return h.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=s=>{t.current.isFocused=!1,o.disabled&&n(new mP("blur",s)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let a=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function qy(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=h.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),o&&o(!1),!0},[r,o]),s=Jy(i),a=h.useCallback(l=>{l.target===l.currentTarget&&document.activeElement===l.target&&(n&&n(l),o&&o(!0),s(l))},[o,n,s]);return{focusProps:{onFocus:!t&&(n||o||r)?a:void 0,onBlur:!t&&(r||o)?i:void 0}}}let Wr=null,md=new Set,pm=!1,Br=!1,gd=!1;const gP={Tab:!0,Escape:!0};function Yl(e,t){for(let n of md)n(e,t)}function vP(e){return!(e.metaKey||!An()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function hm(e){Br=!0,vP(e)&&(Wr="keyboard",Yl("keyboard",e))}function eo(e){Wr="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Br=!0,Yl("pointer",e))}function yP(e){ns(e)&&(Br=!0,Wr="virtual")}function bP(e){e.target===window||e.target===document||(!Br&&!gd&&(Wr="virtual",Yl("virtual",e)),Br=!1,gd=!1)}function xP(){Br=!1,gd=!0}function vd(){if(typeof window>"u"||pm)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){Br=!0,e.apply(this,arguments)},document.addEventListener("keydown",hm,!0),document.addEventListener("keyup",hm,!0),document.addEventListener("click",yP,!0),window.addEventListener("focus",bP,!0),window.addEventListener("blur",xP,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",eo,!0),document.addEventListener("pointermove",eo,!0),document.addEventListener("pointerup",eo,!0)):(document.addEventListener("mousedown",eo,!0),document.addEventListener("mousemove",eo,!0),document.addEventListener("mouseup",eo,!0)),pm=!0}typeof document<"u"&&(document.readyState!=="loading"?vd():document.addEventListener("DOMContentLoaded",vd));function Ko(){return Wr!=="pointer"}function sl(){return Wr}function wP(e){Wr=e,Yl(e,null)}const CP=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function SP(e,t,n){var r;return e=e||(n==null?void 0:n.target)instanceof HTMLInputElement&&!CP.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof HTMLTextAreaElement||(n==null?void 0:n.target)instanceof HTMLElement&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof KeyboardEvent&&!gP[n.key])}function PP(e,t,n){vd(),h.useEffect(()=>{let r=(o,i)=>{SP(!!(n!=null&&n.isTextInput),o,i)&&e(Ko())};return md.add(r),()=>{md.delete(r)}},t)}function Cs(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=h.useRef({isFocusWithin:!1}),s=h.useCallback(u=>{i.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(u),o&&o(!1))},[n,o,i]),a=Jy(s),l=h.useCallback(u=>{!i.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),o&&o(!0),i.current.isFocusWithin=!0,a(u))},[r,o,a]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:s}}}let al=!1,zu=0;function yd(){al=!0,setTimeout(()=>{al=!1},50)}function mm(e){e.pointerType==="touch"&&yd()}function $P(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",mm):document.addEventListener("touchend",yd),zu++,()=>{zu--,!(zu>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",mm):document.removeEventListener("touchend",yd))}}function un(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,s]=h.useState(!1),a=h.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;h.useEffect($P,[]);let{hoverProps:l,triggerHoverEnd:u}=h.useMemo(()=>{let c=(p,y)=>{if(a.pointerType=y,o||y==="touch"||a.isHovered||!p.currentTarget.contains(p.target))return;a.isHovered=!0;let b=p.currentTarget;a.target=b,t&&t({type:"hoverstart",target:b,pointerType:y}),n&&n(!0),s(!0)},d=(p,y)=>{if(a.pointerType="",a.target=null,y==="touch"||!a.isHovered)return;a.isHovered=!1;let b=p.currentTarget;r&&r({type:"hoverend",target:b,pointerType:y}),n&&n(!1),s(!1)},f={};return typeof PointerEvent<"u"?(f.onPointerEnter=p=>{al&&p.pointerType==="mouse"||c(p,p.pointerType)},f.onPointerLeave=p=>{!o&&p.currentTarget.contains(p.target)&&d(p,p.pointerType)}):(f.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},f.onMouseEnter=p=>{!a.ignoreEmulatedMouseEvents&&!al&&c(p,"mouse"),a.ignoreEmulatedMouseEvents=!1},f.onMouseLeave=p=>{!o&&p.currentTarget.contains(p.target)&&d(p,"mouse")}),{hoverProps:f,triggerHoverEnd:d}},[t,n,r,o,a]);return h.useEffect(()=>{o&&u({currentTarget:a.target},a.pointerType)},[o]),{hoverProps:l,isHovered:i}}function EP(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,i=h.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=Oe(l=>{n&&Js(l,t)&&(o&&o(l),i.current.isPointerDown=!0)}),a=Oe(l=>{n&&n(l)});h.useEffect(()=>{let l=i.current;if(r)return;const u=t.current,c=gn(u);if(typeof PointerEvent<"u"){let d=f=>{l.isPointerDown&&Js(f,t)&&a(f),l.isPointerDown=!1};return c.addEventListener("pointerdown",s,!0),c.addEventListener("pointerup",d,!0),()=>{c.removeEventListener("pointerdown",s,!0),c.removeEventListener("pointerup",d,!0)}}else{let d=p=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&Js(p,t)&&a(p),l.isPointerDown=!1},f=p=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&Js(p,t)&&a(p),l.isPointerDown=!1};return c.addEventListener("mousedown",s,!0),c.addEventListener("mouseup",d,!0),c.addEventListener("touchstart",s,!0),c.addEventListener("touchend",f,!0),()=>{c.removeEventListener("mousedown",s,!0),c.removeEventListener("mouseup",d,!0),c.removeEventListener("touchstart",s,!0),c.removeEventListener("touchend",f,!0)}}},[t,r,s,a])}function Js(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function gm(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function eb(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:gm(e.onKeyDown),onKeyUp:gm(e.onKeyUp)}}}const kP=500;function tb(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:i=kP,accessibilityDescription:s}=e;const a=h.useRef();let{addGlobalListener:l,removeGlobalListener:u}=ep(),{pressProps:c}=ws({isDisabled:t,onPressStart(f){if(f.continuePropagation(),(f.pointerType==="mouse"||f.pointerType==="touch")&&(n&&n({...f,type:"longpressstart"}),a.current=setTimeout(()=>{f.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...f,type:"longpress"}),a.current=void 0},i),f.pointerType==="touch")){let p=y=>{y.preventDefault()};l(f.target,"contextmenu",p,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{u(f.target,"contextmenu",p)},30)},{once:!0})}},onPressEnd(f){a.current&&clearTimeout(a.current),r&&(f.pointerType==="mouse"||f.pointerType==="touch")&&r({...f,type:"longpressend"})}}),d=ZS(o&&!t?s:void 0);return{longPressProps:Y(c,d)}}function ir(e){if(sl()==="virtual"){let t=document.activeElement;qf(()=>{document.activeElement===t&&document.contains(e)&&St(e)})}else St(e)}function TP(e){if(!(e instanceof HTMLElement)&&!(e instanceof SVGElement))return!1;let{display:t,visibility:n}=e.style,r=t!=="none"&&n!=="hidden"&&n!=="collapse";if(r){const{getComputedStyle:o}=e.ownerDocument.defaultView;let{display:i,visibility:s}=o(e);r=i!=="none"&&s!=="hidden"&&s!=="collapse"}return r}function AP(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function nb(e,t){return e.nodeName!=="#comment"&&TP(e)&&AP(e,t)&&(!e.parentElement||nb(e.parentElement,e))}const vm=ee.createContext(null);let ve=null;function rb(e){let{children:t,contain:n,restoreFocus:r,autoFocus:o}=e,i=h.useRef(null),s=h.useRef(null),a=h.useRef([]),{parentNode:l}=h.useContext(vm)||{},u=h.useMemo(()=>new bd({scopeRef:a}),[a]);Te(()=>{let f=l||Ve.root;if(Ve.getTreeNode(f.scopeRef)&&ve&&!ul(ve,f.scopeRef)){let p=Ve.getTreeNode(ve);p&&(f=p)}f.addChild(u),Ve.addNode(u)},[u,l]),Te(()=>{let f=Ve.getTreeNode(a);f&&(f.contain=!!n)},[n]),Te(()=>{var f;let p=(f=i.current)===null||f===void 0?void 0:f.nextSibling,y=[];for(;p&&p!==s.current;)y.push(p),p=p.nextSibling;a.current=y},[t]),OP(a,r,n),NP(a,n),jP(a,r,n),RP(a,o),h.useEffect(()=>{let f=document.activeElement,p=null;if(rt(f,a.current)){for(let y of Ve.traverse())y.scopeRef&&rt(f,y.scopeRef.current)&&(p=y);p===Ve.getTreeNode(a)&&(ve=p.scopeRef)}},[a]),Te(()=>()=>{var f,p,y;let b=(y=(p=Ve.getTreeNode(a))===null||p===void 0||(f=p.parent)===null||f===void 0?void 0:f.scopeRef)!==null&&y!==void 0?y:null;(a===ve||ul(a,ve))&&(!b||Ve.getTreeNode(b))&&(ve=b),Ve.removeTreeNode(a)},[a]);let c=h.useMemo(()=>MP(a),[]),d=h.useMemo(()=>({focusManager:c,parentNode:u}),[u,c]);return ee.createElement(vm.Provider,{value:d},ee.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,ee.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:s}))}function MP(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:s}=t,a=r||document.activeElement,l=n[0].previousElementSibling,u=Mr(n),c=xn(u,{tabbable:o,accept:s},n);c.currentNode=rt(a,n)?a:l;let d=c.nextNode();return!d&&i&&(c.currentNode=l,d=c.nextNode()),d&&bn(d,!0),d},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:s}=t,a=r||document.activeElement,l=n[n.length-1].nextElementSibling,u=Mr(n),c=xn(u,{tabbable:o,accept:s},n);c.currentNode=rt(a,n)?a:l;let d=c.previousNode();return!d&&i&&(c.currentNode=l,d=c.previousNode()),d&&bn(d,!0),d},focusFirst(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Mr(n),s=xn(i,{tabbable:r,accept:o},n);s.currentNode=n[0].previousElementSibling;let a=s.nextNode();return a&&bn(a,!0),a},focusLast(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=Mr(n),s=xn(i,{tabbable:r,accept:o},n);s.currentNode=n[n.length-1].nextElementSibling;let a=s.previousNode();return a&&bn(a,!0),a}}}const ip=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],LP=ip.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";ip.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const DP=ip.join(':not([hidden]):not([tabindex="-1"]),');function Mr(e){return e[0].parentElement}function Si(e){let t=Ve.getTreeNode(ve);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function NP(e,t){let n=h.useRef(),r=h.useRef();Te(()=>{let o=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}let i=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!Si(e))return;let u=document.activeElement,c=e.current;if(!c||!rt(u,c))return;let d=Mr(c),f=xn(d,{tabbable:!0},c);if(!u)return;f.currentNode=u;let p=l.shiftKey?f.previousNode():f.nextNode();p||(f.currentNode=l.shiftKey?c[c.length-1].nextElementSibling:c[0].previousElementSibling,p=l.shiftKey?f.previousNode():f.nextNode()),l.preventDefault(),p&&bn(p,!0)},s=l=>{(!ve||ul(ve,e))&&rt(l.target,e.current)?(ve=e,n.current=l.target):Si(e)&&!ll(l.target,e)?n.current?n.current.focus():ve&&ve.current&&cl(ve.current):Si(e)&&(n.current=l.target)},a=l=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(document.activeElement&&Si(e)&&!ll(document.activeElement,e))if(ve=e,document.body.contains(l.target)){var u;n.current=l.target,(u=n.current)===null||u===void 0||u.focus()}else ve.current&&cl(ve.current)})};return document.addEventListener("keydown",i,!1),document.addEventListener("focusin",s,!1),o==null||o.forEach(l=>l.addEventListener("focusin",s,!1)),o==null||o.forEach(l=>l.addEventListener("focusout",a,!1)),()=>{document.removeEventListener("keydown",i,!1),document.removeEventListener("focusin",s,!1),o==null||o.forEach(l=>l.removeEventListener("focusin",s,!1)),o==null||o.forEach(l=>l.removeEventListener("focusout",a,!1))}},[e,t]),Te(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function ob(e){return ll(e)}function rt(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function ll(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Ve.traverse(Ve.getTreeNode(t)))if(n&&rt(e,n.current))return!0;return!1}function IP(e){return ll(e,ve)}function ul(e,t){var n;let r=(n=Ve.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function bn(e,t=!1){if(e!=null&&!t)try{ir(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function cl(e,t=!0){let n=e[0].previousElementSibling,r=Mr(e),o=xn(r,{tabbable:t},e);o.currentNode=n;let i=o.nextNode();t&&!i&&(r=Mr(e),o=xn(r,{tabbable:!1},e),o.currentNode=n,i=o.nextNode()),bn(i)}function RP(e,t){const n=ee.useRef(t);h.useEffect(()=>{n.current&&(ve=e,!rt(document.activeElement,ve.current)&&e.current&&cl(e.current)),n.current=!1},[e])}function OP(e,t,n){Te(()=>{if(t||n)return;let r=e.current,o=i=>{let s=i.target;rt(s,e.current)?ve=e:ob(s)||(ve=null)};return document.addEventListener("focusin",o,!1),r==null||r.forEach(i=>i.addEventListener("focusin",o,!1)),()=>{document.removeEventListener("focusin",o,!1),r==null||r.forEach(i=>i.removeEventListener("focusin",o,!1))}},[e,t,n])}function FP(e){let t=Ve.getTreeNode(ve);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function jP(e,t,n){const r=h.useRef(typeof document<"u"?document.activeElement:null);Te(()=>{let o=e.current;if(!t||n)return;let i=()=>{(!ve||ul(ve,e))&&rt(document.activeElement,e.current)&&(ve=e)};return document.addEventListener("focusin",i,!1),o==null||o.forEach(s=>s.addEventListener("focusin",i,!1)),()=>{document.removeEventListener("focusin",i,!1),o==null||o.forEach(s=>s.removeEventListener("focusin",i,!1))}},[e,n]),Te(()=>{if(!t)return;let o=i=>{if(i.key!=="Tab"||i.altKey||i.ctrlKey||i.metaKey||!Si(e))return;let s=document.activeElement;if(!rt(s,e.current))return;let a=Ve.getTreeNode(e);if(!a)return;let l=a.nodeToRestore,u=xn(document.body,{tabbable:!0});u.currentNode=s;let c=i.shiftKey?u.previousNode():u.nextNode();if((!l||!document.body.contains(l)||l===document.body)&&(l=void 0,a.nodeToRestore=void 0),(!c||!rt(c,e.current))&&l){u.currentNode=l;do c=i.shiftKey?u.previousNode():u.nextNode();while(rt(c,e.current));i.preventDefault(),i.stopPropagation(),c?bn(c,!0):ob(l)?bn(l,!0):s.blur()}};return n||document.addEventListener("keydown",o,!0),()=>{n||document.removeEventListener("keydown",o,!0)}},[e,t,n]),Te(()=>{if(!t)return;let o=Ve.getTreeNode(e);if(o){var i;return o.nodeToRestore=(i=r.current)!==null&&i!==void 0?i:void 0,()=>{let s=Ve.getTreeNode(e);if(!s)return;let a=s.nodeToRestore;if(t&&a&&(rt(document.activeElement,e.current)||document.activeElement===document.body&&FP(e))){let l=Ve.clone();requestAnimationFrame(()=>{if(document.activeElement===document.body){let u=l.getTreeNode(e);for(;u;){if(u.nodeToRestore&&document.body.contains(u.nodeToRestore)){bn(u.nodeToRestore);return}u=u.parent}for(u=l.getTreeNode(e);u;){if(u.scopeRef&&u.scopeRef.current&&Ve.getTreeNode(u.scopeRef)){cl(u.scopeRef.current,!0);return}u=u.parent}}})}}}},[e,t])}function xn(e,t,n){let r=t!=null&&t.tabbable?DP:LP,o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(i){var s;return!(t==null||(s=t.from)===null||s===void 0)&&s.contains(i)?NodeFilter.FILTER_REJECT:i.matches(r)&&nb(i)&&(!n||rt(i,n))&&(!(t!=null&&t.accept)||t.accept(i))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(o.currentNode=t.from),o}class sp{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let o=this.fastMap.get(n??null);if(!o)return;let i=new bd({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&rt(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let o=n.children;r&&(r.removeChild(n),o.size>0&&o.forEach(i=>r&&r.addChild(i))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new sp;var r;for(let o of this.traverse())n.addTreeNode(o.scopeRef,(r=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,o.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new bd({scopeRef:null}),this.fastMap.set(null,this.root)}}class bd{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let Ve=new sp;function sr(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=h.useRef({isFocused:!1,isFocusVisible:t||Ko()}),[i,s]=h.useState(!1),[a,l]=h.useState(()=>o.current.isFocused&&o.current.isFocusVisible),u=h.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),c=h.useCallback(p=>{o.current.isFocused=p,s(p),u()},[u]);PP(p=>{o.current.isFocusVisible=p,u()},[],{isTextInput:n});let{focusProps:d}=qy({isDisabled:r,onFocusChange:c}),{focusWithinProps:f}=Cs({isDisabled:!r,onFocusWithinChange:c});return{isFocused:i,isFocusVisible:a,focusProps:r?f:d}}let _P=ee.createContext(null);function BP(e){let t=h.useContext(_P)||{};tp(t,e);let{ref:n,...r}=t;return r}function ap(e,t){let{focusProps:n}=qy(e),{keyboardProps:r}=eb(e),o=Y(n,r),i=BP(t),s=e.isDisabled?{}:i,a=h.useRef(e.autoFocus);return h.useEffect(()=>{a.current&&t.current&&ir(t.current),a.current=!1},[t]),{focusableProps:Y({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}const ym={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function VP(e={}){let{style:t,isFocusable:n}=e,[r,o]=h.useState(!1),{focusWithinProps:i}=Cs({isDisabled:!n,onFocusWithinChange:a=>o(a)}),s=h.useMemo(()=>r?t:t?{...ym,...t}:ym,[r]);return{visuallyHiddenProps:{...i,style:s}}}function KP(e){let{children:t,elementType:n="div",isFocusable:r,style:o,...i}=e,{visuallyHiddenProps:s}=VP(e);return ee.createElement(n,Y(i,s),t)}function zP(e){return e&&e.__esModule?e.default:e}const bm={top:"top",bottom:"top",left:"left",right:"left"},dl={top:"bottom",bottom:"top",left:"right",right:"left"},WP={top:"left",left:"top"},xd={top:"height",left:"width"},UP={width:"totalWidth",height:"totalHeight"},qs={};let to=typeof document<"u"&&window.visualViewport;function xm(e){let t=0,n=0,r=0,o=0,i=0,s=0,a={};if(e.tagName==="BODY"){let c=document.documentElement;r=c.clientWidth,o=c.clientHeight;var l;t=(l=to==null?void 0:to.width)!==null&&l!==void 0?l:r;var u;n=(u=to==null?void 0:to.height)!==null&&u!==void 0?u:o,a.top=c.scrollTop||e.scrollTop,a.left=c.scrollLeft||e.scrollLeft}else({width:t,height:n,top:i,left:s}=No(e)),a.top=e.scrollTop,a.left=e.scrollLeft,r=t,o=n;return{width:t,height:n,totalWidth:r,totalHeight:o,scroll:a,top:i,left:s}}function HP(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function wm(e,t,n,r,o,i){let s=o.scroll[e],a=r[xd[e]],l=t-i-s,u=t+i-s+n;return l<0?-l:u>a?Math.max(a-u,-l):0}function GP(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function Cm(e){if(qs[e])return qs[e];let[t,n]=e.split(" "),r=bm[t]||"right",o=WP[r];bm[n]||(n="center");let i=xd[r],s=xd[o];return qs[e]={placement:t,crossPlacement:n,axis:r,crossAxis:o,size:i,crossSize:s},qs[e]}function Wu(e,t,n,r,o,i,s,a,l,u){let{placement:c,crossPlacement:d,axis:f,crossAxis:p,size:y,crossSize:b}=r,w={};w[p]=e[p],d==="center"?w[p]+=(e[b]-n[b])/2:d!==p&&(w[p]+=e[b]-n[b]),w[p]+=i;const x=e[p]-n[b]+l+u,g=e[p]+e[b]-l-u;if(w[p]=dd(w[p],x,g),c===f){const v=a?s[y]:t[UP[y]];w[dl[f]]=Math.floor(v-e[f]+o)}else w[f]=Math.floor(e[f]+e[y]+o);return w}function YP(e,t,n,r,o,i){return e.top!=null?Math.max(0,t.height+t.top+t.scroll.top-(n.top+e.top)-(o.top+o.bottom+i)):Math.max(0,r.top+n.top-(t.top+t.scroll.top)-(o.top+o.bottom+i))}function Sm(e,t,n,r,o,i){let{placement:s,axis:a,size:l}=i;return s===a?Math.max(0,n[a]-e[a]-e.scroll[a]+t[a]-r[a]-r[dl[a]]-o):Math.max(0,e[l]+e[a]+e.scroll[a]-t[a]-n[a]-n[l]-r[a]-r[dl[a]]-o)}function XP(e,t,n,r,o,i,s,a,l,u,c,d,f,p,y,b){let w=Cm(e),{size:x,crossAxis:g,crossSize:v,placement:S,crossPlacement:k}=w,A=Wu(t,a,n,w,c,d,u,f,y,b),D=c,m=Sm(a,u,t,o,i+c,w);if(s&&r[x]>m){let I=Cm(`${dl[S]} ${k}`),B=Wu(t,a,n,I,c,d,u,f,y,b);Sm(a,u,t,o,i+c,I)>m&&(w=I,A=B,D=c)}let L=wm(g,A[g],n[v],a,l,i);A[g]+=L;let M=YP(A,a,u,t,o,i);p&&p{if(!n||r===null)return;let o=i=>{let s=i.target;if(!t.current||s instanceof Node&&!s.contains(t.current))return;let a=r||ib.get(t.current);a&&a()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[n,r,t])}let Mt=typeof document<"u"&&window.visualViewport;function sb(e){let{direction:t}=xs(),{arrowSize:n=0,targetRef:r,overlayRef:o,scrollRef:i=o,placement:s="bottom",containerPadding:a=12,shouldFlip:l=!0,boundaryElement:u=typeof document<"u"?document.body:null,offset:c=0,crossOffset:d=0,shouldUpdatePosition:f=!0,isOpen:p=!0,onClose:y,maxHeight:b,arrowBoundaryOffset:w=0}=e,[x,g]=h.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),v=[f,s,o.current,r.current,i.current,a,l,u,c,d,p,t,b,w,n],S=h.useCallback(()=>{if(f===!1||!p||!o.current||!r.current||!i.current||!u)return;let D=QP({placement:e$(s,t),overlayNode:o.current,targetNode:r.current,scrollNode:i.current,padding:a,shouldFlip:l,boundaryElement:u,offset:c,crossOffset:d,maxHeight:b,arrowSize:n,arrowBoundaryOffset:w});Object.keys(D.position).forEach(m=>o.current.style[m]=D.position[m]+"px"),o.current.style.maxHeight=D.maxHeight!=null?D.maxHeight+"px":void 0,g(D)},v);Te(S,v),qP(S),Vy({ref:o,onResize:S});let k=h.useRef(!1);Te(()=>{let D,m=()=>{k.current=!0,clearTimeout(D),D=setTimeout(()=>{k.current=!1},500),S()};return Mt==null||Mt.addEventListener("resize",m),Mt==null||Mt.addEventListener("scroll",m),()=>{Mt==null||Mt.removeEventListener("resize",m),Mt==null||Mt.removeEventListener("scroll",m)}},[S]);let A=h.useCallback(()=>{k.current||y()},[y,k]);return JP({triggerRef:r,isOpen:p,onClose:y&&A}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...x.position,maxHeight:x.maxHeight}},placement:x.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:x.arrowOffsetLeft,top:x.arrowOffsetTop}},updatePosition:S}}function qP(e){Te(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function e$(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const dn=[];function ab(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:a}=e;h.useEffect(()=>(o&&dn.push(t),()=>{let y=dn.indexOf(t);y>=0&&dn.splice(y,1)}),[o,t]);let l=()=>{dn[dn.length-1]===t&&n&&n()},u=y=>{(!a||a(y.target))&&dn[dn.length-1]===t&&(y.stopPropagation(),y.preventDefault())},c=y=>{(!a||a(y.target))&&(dn[dn.length-1]===t&&(y.stopPropagation(),y.preventDefault()),l())},d=y=>{y.key==="Escape"&&!s&&(y.stopPropagation(),y.preventDefault(),l())};EP({ref:t,onInteractOutside:i&&o?c:null,onInteractOutsideStart:u});let{focusWithinProps:f}=Cs({isDisabled:!r,onBlurWithin:y=>{!y.relatedTarget||IP(y.relatedTarget)||(!a||a(y.relatedTarget))&&n()}}),p=y=>{y.target===y.currentTarget&&y.preventDefault()};return{overlayProps:{onKeyDown:d,...f},underlayProps:{onPointerDown:p}}}function lb(e,t,n){let{type:r}=e,{isOpen:o}=t;h.useEffect(()=>{n&&n.current&&ib.set(n.current,t.close)});let i;r==="menu"?i=!0:r==="listbox"&&(i="listbox");let s=sn();return{triggerProps:{"aria-haspopup":i,"aria-expanded":o,"aria-controls":o?s:null,onPress:t.toggle},overlayProps:{id:s}}}const wd=ee.createContext(null);function t$(e){let{children:t}=e,n=h.useContext(wd),[r,o]=h.useState(0),i=h.useMemo(()=>({parent:n,modalCount:r,addModal(){o(s=>s+1),n&&n.addModal()},removeModal(){o(s=>s-1),n&&n.removeModal()}}),[n,r]);return ee.createElement(wd.Provider,{value:i},t)}function n$(){let e=h.useContext(wd);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:null}}}function r$(e){let{modalProviderProps:t}=n$();return ee.createElement("div",{"data-overlay-container":!0,...e,...t})}function ub(e){return ee.createElement(t$,null,ee.createElement(r$,e))}function Em(e){let t=ys(),{portalContainer:n=t?null:document.body,...r}=e;if(ee.useEffect(()=>{if(n!=null&&n.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[n]),!n)return null;let o=ee.createElement(ub,r);return Ny.createPortal(o,n)}var cb={},db={};db={dismiss:"تجاهل"};var fb={};fb={dismiss:"Отхвърляне"};var pb={};pb={dismiss:"Odstranit"};var hb={};hb={dismiss:"Luk"};var mb={};mb={dismiss:"Schließen"};var gb={};gb={dismiss:"Απόρριψη"};var vb={};vb={dismiss:"Dismiss"};var yb={};yb={dismiss:"Descartar"};var bb={};bb={dismiss:"Lõpeta"};var xb={};xb={dismiss:"Hylkää"};var wb={};wb={dismiss:"Rejeter"};var Cb={};Cb={dismiss:"התעלם"};var Sb={};Sb={dismiss:"Odbaci"};var Pb={};Pb={dismiss:"Elutasítás"};var $b={};$b={dismiss:"Ignora"};var Eb={};Eb={dismiss:"閉じる"};var kb={};kb={dismiss:"무시"};var Tb={};Tb={dismiss:"Atmesti"};var Ab={};Ab={dismiss:"Nerādīt"};var Mb={};Mb={dismiss:"Lukk"};var Lb={};Lb={dismiss:"Negeren"};var Db={};Db={dismiss:"Zignoruj"};var Nb={};Nb={dismiss:"Descartar"};var Ib={};Ib={dismiss:"Dispensar"};var Rb={};Rb={dismiss:"Revocare"};var Ob={};Ob={dismiss:"Пропустить"};var Fb={};Fb={dismiss:"Zrušiť"};var jb={};jb={dismiss:"Opusti"};var _b={};_b={dismiss:"Odbaci"};var Bb={};Bb={dismiss:"Avvisa"};var Vb={};Vb={dismiss:"Kapat"};var Kb={};Kb={dismiss:"Скасувати"};var zb={};zb={dismiss:"取消"};var Wb={};Wb={dismiss:"關閉"};cb={"ar-AE":db,"bg-BG":fb,"cs-CZ":pb,"da-DK":hb,"de-DE":mb,"el-GR":gb,"en-US":vb,"es-ES":yb,"et-EE":bb,"fi-FI":xb,"fr-FR":wb,"he-IL":Cb,"hr-HR":Sb,"hu-HU":Pb,"it-IT":$b,"ja-JP":Eb,"ko-KR":kb,"lt-LT":Tb,"lv-LV":Ab,"nb-NO":Mb,"nl-NL":Lb,"pl-PL":Db,"pt-BR":Nb,"pt-PT":Ib,"ro-RO":Rb,"ru-RU":Ob,"sk-SK":Fb,"sl-SI":jb,"sr-SP":_b,"sv-SE":Bb,"tr-TR":Vb,"uk-UA":Kb,"zh-CN":zb,"zh-TW":Wb};function fl(e){let{onDismiss:t,...n}=e,r=np(zP(cb)),o=ol(n,r.format("dismiss")),i=()=>{t&&t()};return ee.createElement(KP,null,ee.createElement("button",{...o,tabIndex:-1,onClick:i}))}let ui=new WeakMap,Lt=[];function Ub(e,t=document.body){let n=new Set(e),r=new Set,o=l=>{for(let f of l.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(f);let u=f=>{if(n.has(f)||r.has(f.parentElement)&&f.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let p of n)if(f.contains(p))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},c=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),d=u(l);if(d===NodeFilter.FILTER_ACCEPT&&i(l),d!==NodeFilter.FILTER_REJECT){let f=c.nextNode();for(;f!=null;)i(f),f=c.nextNode()}},i=l=>{var u;let c=(u=ui.get(l))!==null&&u!==void 0?u:0;l.getAttribute("aria-hidden")==="true"&&c===0||(c===0&&l.setAttribute("aria-hidden","true"),r.add(l),ui.set(l,c+1))};Lt.length&&Lt[Lt.length-1].disconnect(),o(t);let s=new MutationObserver(l=>{for(let u of l)if(!(u.type!=="childList"||u.addedNodes.length===0)&&![...n,...r].some(c=>c.contains(u.target))){for(let c of u.removedNodes)c instanceof Element&&(n.delete(c),r.delete(c));for(let c of u.addedNodes)(c instanceof HTMLElement||c instanceof SVGElement)&&(c.dataset.liveAnnouncer==="true"||c.dataset.reactAriaTopLayer==="true")?n.add(c):c instanceof Element&&o(c)}});s.observe(t,{childList:!0,subtree:!0});let a={observe(){s.observe(t,{childList:!0,subtree:!0})},disconnect(){s.disconnect()}};return Lt.push(a),()=>{s.disconnect();for(let l of r){let u=ui.get(l);u===1?(l.removeAttribute("aria-hidden"),ui.delete(l)):ui.set(l,u-1)}a===Lt[Lt.length-1]?(Lt.pop(),Lt.length&&Lt[Lt.length-1].observe()):Lt.splice(Lt.indexOf(a),1)}}const Hb=ee.createContext(null);function lp(e){let t=ys(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[o,i]=h.useState(!1),s=h.useMemo(()=>({contain:o,setContain:i}),[o,i]);if(!n)return null;let a=e.children;return e.disableFocusManagement||(a=ee.createElement(rb,{restoreFocus:!0,contain:o&&!r},a)),a=ee.createElement(Hb.Provider,{value:s},ee.createElement(hP,null,a)),Ny.createPortal(a,n)}function o$(){let e=h.useContext(Hb),t=e==null?void 0:e.setContain;Te(()=>{t==null||t(!0)},[t])}var i$=({children:e,locale:t="en-US",navigate:n,...r})=>{let o=e;return n&&(o=P.jsx(HS,{navigate:n,children:o})),P.jsx(nP,{locale:t,children:P.jsx(ub,{...r,children:o})})};function he(e){return h.forwardRef(e)}var Qt=(e,t,n=!0)=>{if(!t)return[e,{}];const r=t.reduce((o,i)=>i in e?{...o,[i]:e[i]}:o,{});return n?[Object.keys(e).filter(i=>!t.includes(i)).reduce((i,s)=>({...i,[s]:e[s]}),{}),r]:[e,r]},s$=["0","xs","sm","md","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl","8xl","9xl","1","2","3","3.5","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","20","24","28","32","36","40","44","48","52","56","60","64","72","80","96"],Uu=s$.map(e=>`unit-${e}`),km=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,it=e=>!e||typeof e!="object"||Object.keys(e).length===0,a$=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function Gb(e,t){e.forEach(function(n){Array.isArray(n)?Gb(n,t):t.push(n)})}function Yb(e){let t=[];return Gb(e,t),t}var l$=(...e)=>Yb(e).filter(Boolean),Xb=(e,t)=>{let n={},r=Object.keys(e),o=Object.keys(t);for(let i of r)if(o.includes(i)){let s=e[i],a=t[i];typeof s=="object"&&typeof a=="object"?n[i]=Xb(s,a):n[i]=a+" "+s}else n[i]=e[i];for(let i of o)r.includes(i)||(n[i]=t[i]);return n},Tm=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();function u$(){for(var e=0,t,n,r="";ee&&(t=0,r=n,n=new Map)}return{get:function(s){var a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return o(s,a),a},set:function(s,a){n.has(s)?n.set(s,a):o(s,a)}}}var Jb="!";function g$(e){var t=e.separator||":",n=t.length===1,r=t[0],o=t.length;return function(s){for(var a=[],l=0,u=0,c,d=0;du?c-u:void 0;return{modifiers:a,hasImportantModifier:y,baseClassName:b,maybePostfixModifierPosition:w}}}function v$(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var o=r[0]==="[";o?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function y$(e){return{cache:m$(e.cacheSize),splitModifiers:g$(e),...c$(e)}}var b$=/\s+/;function x$(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,i=new Set;return e.trim().split(b$).map(function(s){var a=n(s),l=a.modifiers,u=a.hasImportantModifier,c=a.baseClassName,d=a.maybePostfixModifierPosition,f=r(d?c.substring(0,d):c),p=!!d;if(!f){if(!d)return{isTailwindClass:!1,originalClassName:s};if(f=r(c),!f)return{isTailwindClass:!1,originalClassName:s};p=!1}var y=v$(l).join(":"),b=u?y+Jb:y;return{isTailwindClass:!0,modifierId:b,classGroupId:f,originalClassName:s,hasPostfixModifier:p}}).reverse().filter(function(s){if(!s.isTailwindClass)return!0;var a=s.modifierId,l=s.classGroupId,u=s.hasPostfixModifier,c=a+l;return i.has(c)?!1:(i.add(c),o(l,u).forEach(function(d){return i.add(a+d)}),!0)}).reverse().map(function(s){return s.originalClassName}).join(" ")}function Sd(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;re||void 0,pl=(...e)=>n1(Yb(e).filter(Boolean).join(" ")),Hu=null,hl={},Ed=!1,fi=(...e)=>t=>t.twMerge?((!Hu||Ed)&&(Ed=!1,Hu=it(hl)?j$:F$(hl)),n1(Hu(pl(e)))):pl(e),Dm=(e,t)=>{for(let n in t)e.hasOwnProperty(n)?e[n]=pl(e[n],t[n]):e[n]=t[n];return e},B$=(e,t)=>{let{extend:n=null,slots:r={},variants:o={},compoundVariants:i=[],compoundSlots:s=[],defaultVariants:a={}}=e,l={..._$,...t},u=n!=null&&n.base?pl(n.base,e==null?void 0:e.base):e==null?void 0:e.base,c=n!=null&&n.variants&&!it(n.variants)?Xb(o,n.variants):o,d=n!=null&&n.defaultVariants&&!it(n.defaultVariants)?{...n.defaultVariants,...a}:a;!it(l.twMergeConfig)&&!a$(l.twMergeConfig,hl)&&(Ed=!0,hl=l.twMergeConfig);let f=it(r)?{}:{base:e==null?void 0:e.base,...r},p=it(n==null?void 0:n.slots)?f:Dm({...n==null?void 0:n.slots},it(f)?{base:e==null?void 0:e.base}:f),y=w=>{if(it(c)&&it(r)&&it(n==null?void 0:n.slots))return fi(u,w==null?void 0:w.class,w==null?void 0:w.className)(l);if(i&&!Array.isArray(i))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof i}`);if(s&&!Array.isArray(s))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof s}`);let x=(E,N,C=[],$)=>{let R=C;if(typeof N=="string")R=R.concat(Tm(N).split(" ").map(_=>`${E}:${_}`));else if(Array.isArray(N))R=R.concat(N.reduce((_,j)=>_.concat(`${E}:${j}`),[]));else if(typeof N=="object"&&typeof $=="string"){for(let _ in N)if(N.hasOwnProperty(_)&&_===$){let j=N[_];if(j&&typeof j=="string"){let I=Tm(j);R[$]?R[$]=R[$].concat(I.split(" ").map(B=>`${E}:${B}`)):R[$]=I.split(" ").map(B=>`${E}:${B}`)}else Array.isArray(j)&&j.length>0&&(R[$]=j.reduce((I,B)=>I.concat(`${E}:${B}`),[]))}}return R},g=(E,N=c,C=null,$=null)=>{var R;let _=N[E];if(!_||it(_))return null;let j=(R=$==null?void 0:$[E])!=null?R:w==null?void 0:w[E];if(j===null)return null;let I=km(j),B=Array.isArray(l.responsiveVariants)&&l.responsiveVariants.length>0||l.responsiveVariants===!0,O=d==null?void 0:d[E],T=[];if(typeof I=="object"&&B)for(let[V,W]of Object.entries(I)){let U=_[W];if(V==="initial"){O=W;continue}Array.isArray(l.responsiveVariants)&&!l.responsiveVariants.includes(V)||(T=x(V,U,T,C))}let F=_[I]||_[km(O)];return typeof T=="object"&&typeof C=="string"&&T[C]?Dm(T,F):T.length>0?(T.push(F),T):F},v=()=>c?Object.keys(c).map(E=>g(E,c)):null,S=(E,N)=>{if(!c||typeof c!="object")return null;let C=new Array;for(let $ in c){let R=g($,c,E,N),_=E==="base"&&typeof R=="string"?R:R&&R[E];_&&(C[C.length]=_)}return C},k={};for(let E in w)w[E]!==void 0&&(k[E]=w[E]);let A=(E,N)=>{var C;let $=typeof(w==null?void 0:w[E])=="object"?{[E]:(C=w[E])==null?void 0:C.initial}:{};return{...d,...k,...$,...N}},D=(E=[],N)=>{let C=[];for(let{class:$,className:R,..._}of E){let j=!0;for(let[I,B]of Object.entries(_)){let O=A(I,N);if(Array.isArray(B)){if(!B.includes(O[I])){j=!1;break}}else if(O[I]!==B){j=!1;break}}j&&($&&C.push($),R&&C.push(R))}return C},m=E=>{let N=D(i,E),C=D(n==null?void 0:n.compoundVariants,E);return l$(C,N)},L=E=>{let N=m(E);if(!Array.isArray(N))return N;let C={};for(let $ of N)if(typeof $=="string"&&(C.base=fi(C.base,$)(l)),typeof $=="object")for(let[R,_]of Object.entries($))C[R]=fi(C[R],_)(l);return C},M=E=>{if(s.length<1)return null;let N={};for(let{slots:C=[],class:$,className:R,..._}of s){if(!it(_)){let j=!0;for(let I of Object.keys(_)){let B=A(I,E)[I];if(B===void 0||(Array.isArray(_[I])?!_[I].includes(B):_[I]!==B)){j=!1;break}}if(!j)continue}for(let j of C)N[j]=N[j]||[],N[j].push([$,R])}return N};if(!it(r)||!it(n==null?void 0:n.slots)){let E={};if(typeof p=="object"&&!it(p))for(let N of Object.keys(p))E[N]=C=>{var $,R;return fi(p[N],S(N,C),(($=L(C))!=null?$:[])[N],((R=M(C))!=null?R:[])[N],C==null?void 0:C.class,C==null?void 0:C.className)(l)};return E}return fi(u,v(),m(),w==null?void 0:w.class,w==null?void 0:w.className)(l)},b=()=>{if(!(!c||typeof c!="object"))return Object.keys(c)};return y.variantKeys=b(),y.extend=n,y.base=u,y.slots=p,y.variants=c,y.defaultVariants=d,y.compoundSlots=s,y.compoundVariants=i,y},ta=["small","medium","large"],We=(e,t)=>{var n,r,o;return B$(e,{...t,twMerge:(n=t==null?void 0:t.twMerge)!=null?n:!0,twMergeConfig:{...t==null?void 0:t.twMergeConfig,theme:{...(r=t==null?void 0:t.twMergeConfig)==null?void 0:r.theme,opacity:["disabled"],spacing:["divider","unit",...Uu],borderWidth:ta,borderRadius:ta},classGroups:{...(o=t==null?void 0:t.twMergeConfig)==null?void 0:o.classGroups,shadow:[{shadow:ta}],"font-size":[{text:["tiny",...ta]}],"bg-image":["bg-stripe-gradient"],"min-w":[{"min-w":["unit",...Uu]}],"min-h":[{"min-h":["unit",...Uu]}]}}})},mr=["outline-none","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],V$=["outline-none","group-data-[focus-visible=true]:z-10","group-data-[focus-visible=true]:ring-2","group-data-[focus-visible=true]:ring-focus","group-data-[focus-visible=true]:ring-offset-2","group-data-[focus-visible=true]:ring-offset-background"],Gu=["absolute","top-1/2","left-1/2","-translate-x-1/2","-translate-y-1/2"],no={default:["[&+.border-medium.border-default]:ms-[calc(theme(borderWidth.medium)*-1)]"],primary:["[&+.border-medium.border-primary]:ms-[calc(theme(borderWidth.medium)*-1)]"],secondary:["[&+.border-medium.border-secondary]:ms-[calc(theme(borderWidth.medium)*-1)]"],success:["[&+.border-medium.border-success]:ms-[calc(theme(borderWidth.medium)*-1)]"],warning:["[&+.border-medium.border-warning]:ms-[calc(theme(borderWidth.medium)*-1)]"],danger:["[&+.border-medium.border-danger]:ms-[calc(theme(borderWidth.medium)*-1)]"]},K$={default:"bg-default text-default-foreground",primary:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",danger:"bg-danger text-danger-foreground",foreground:"bg-foreground text-background"},z$={default:"shadow-lg shadow-default/50 bg-default text-default-foreground",primary:"shadow-lg shadow-primary/40 bg-primary text-primary-foreground",secondary:"shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",success:"shadow-lg shadow-success/40 bg-success text-success-foreground",warning:"shadow-lg shadow-warning/40 bg-warning text-warning-foreground",danger:"shadow-lg shadow-danger/40 bg-danger text-danger-foreground",foreground:"shadow-lg shadow-foreground/40 bg-foreground text-background"},W$={default:"bg-transparent border-default text-foreground",primary:"bg-transparent border-primary text-primary",secondary:"bg-transparent border-secondary text-secondary",success:"bg-transparent border-success text-success",warning:"bg-transparent border-warning text-warning",danger:"bg-transparent border-danger text-danger",foreground:"bg-transparent border-foreground text-foreground"},U$={default:"bg-default/40 text-default-foreground",primary:"bg-primary/20 text-primary",secondary:"bg-secondary/20 text-secondary",success:"bg-success/20 text-success-600 dark:text-success",warning:"bg-warning/20 text-warning-600 dark:text-warning",danger:"bg-danger/20 text-danger dark:text-danger-500",foreground:"bg-foreground/10 text-foreground"},H$={default:"border-default bg-default-100 text-default-foreground",primary:"border-default bg-default-100 text-primary",secondary:"border-default bg-default-100 text-secondary",success:"border-default bg-default-100 text-success",warning:"border-default bg-default-100 text-warning",danger:"border-default bg-default-100 text-danger",foreground:"border-default bg-default-100 text-foreground"},G$={default:"bg-transparent text-default-foreground",primary:"bg-transparent text-primary",secondary:"bg-transparent text-secondary",success:"bg-transparent text-success",warning:"bg-transparent text-warning",danger:"bg-transparent text-danger",foreground:"bg-transparent text-foreground"},Y$={default:"border-default text-default-foreground hover:!bg-default",primary:"border-primary text-primary hover:!text-primary-foreground hover:!bg-primary",secondary:"border-secondary text-secondary hover:text-secondary-foreground hover:!bg-secondary",success:"border-success text-success hover:!text-success-foreground hover:!bg-success",warning:"border-warning text-warning hover:!text-warning-foreground hover:!bg-warning",danger:"border-danger text-danger hover:!text-danger-foreground hover:!bg-danger",foreground:"border-foreground text-foreground hover:!bg-foreground"},J={solid:K$,shadow:z$,bordered:W$,flat:U$,faded:H$,light:G$,ghost:Y$},Nm=We({slots:{base:"relative inline-flex flex-col gap-2 items-center justify-center",wrapper:"relative flex",circle1:["absolute","w-full","h-full","rounded-full","animate-spinner-ease-spin","border-2","border-solid","border-t-transparent","border-l-transparent","border-r-transparent"],circle2:["absolute","w-full","h-full","rounded-full","opacity-75","animate-spinner-linear-spin","border-2","border-dotted","border-t-transparent","border-l-transparent","border-r-transparent"],label:"text-foreground dark:text-foreground-dark font-regular"},variants:{size:{sm:{wrapper:"w-5 h-5",circle1:"border-2",circle2:"border-2",label:"text-small"},md:{wrapper:"w-8 h-8",circle1:"border-3",circle2:"border-3",label:"text-medium"},lg:{wrapper:"w-10 h-10",circle1:"border-3",circle2:"border-3",label:"text-large"}},color:{current:{circle1:"border-b-current",circle2:"border-b-current"},white:{circle1:"border-b-white",circle2:"border-b-white"},default:{circle1:"border-b-default",circle2:"border-b-default"},primary:{circle1:"border-b-primary",circle2:"border-b-primary"},secondary:{circle1:"border-b-secondary",circle2:"border-b-secondary"},success:{circle1:"border-b-success",circle2:"border-b-success"},warning:{circle1:"border-b-warning",circle2:"border-b-warning"},danger:{circle1:"border-b-danger",circle2:"border-b-danger"}},labelColor:{foreground:{label:"text-foreground"},primary:{label:"text-primary"},secondary:{label:"text-secondary"},success:{label:"text-success"},warning:{label:"text-warning"},danger:{label:"text-danger"}}},defaultVariants:{size:"md",color:"primary",labelColor:"foreground"}}),Im=We({slots:{base:["flex","z-40","w-full","h-auto","items-center","justify-center","data-[menu-open=true]:border-none"],wrapper:["z-40","flex","px-6","gap-4","w-full","flex-row","relative","flex-nowrap","items-center","justify-between","h-[var(--navbar-height)]"],toggle:["group","flex","items-center","justify-center","w-6","h-full","outline-none","rounded-small","tap-highlight-transparent",...mr],srOnly:["sr-only"],toggleIcon:["w-full","h-full","pointer-events-none","flex","flex-col","items-center","justify-center","text-inherit","group-data-[pressed=true]:opacity-70","transition-opacity","before:content-['']","before:block","before:h-px","before:w-6","before:bg-current","before:transition-transform","before:duration-150","before:-translate-y-1","before:rotate-0","group-data-[open=true]:before:translate-y-px","group-data-[open=true]:before:rotate-45","after:content-['']","after:block","after:h-px","after:w-6","after:bg-current","after:transition-transform","after:duration-150","after:translate-y-1","after:rotate-0","group-data-[open=true]:after:translate-y-0","group-data-[open=true]:after:-rotate-45"],brand:["flex","basis-0","flex-row","flex-grow","flex-nowrap","justify-start","bg-transparent","items-center","no-underline","text-medium","whitespace-nowrap","box-border"],content:["flex","gap-4","h-full","flex-row","flex-nowrap","items-center","data-[justify=start]:justify-start","data-[justify=start]:flex-grow","data-[justify=start]:basis-0","data-[justify=center]:justify-center","data-[justify=end]:justify-end","data-[justify=end]:flex-grow","data-[justify=end]:basis-0"],item:["text-medium","whitespace-nowrap","box-border","list-none","data-[active=true]:font-semibold"],menu:["z-30","px-6","pt-2","fixed","flex","max-w-full","top-[var(--navbar-height)]","inset-x-0","bottom-0","w-screen","flex-col","gap-2","overflow-y-auto"],menuItem:["text-large","data-[active=true]:font-semibold"]},variants:{position:{static:{base:"static"},sticky:{base:"sticky top-0 inset-x-0"}},maxWidth:{sm:{wrapper:"max-w-[640px]"},md:{wrapper:"max-w-[768px]"},lg:{wrapper:"max-w-[1024px]"},xl:{wrapper:"max-w-[1280px]"},"2xl":{wrapper:"max-w-[1536px]"},full:{wrapper:"max-w-full"}},hideOnScroll:{true:{base:["sticky","top-0","inset-x-0"]}},isBordered:{true:{base:["border-b","border-divider"]}},isBlurred:{false:{base:"bg-background",menu:"bg-background"},true:{base:["backdrop-blur-lg","data-[menu-open=true]:backdrop-blur-xl","backdrop-saturate-150","bg-background/70"],menu:["backdrop-blur-xl","backdrop-saturate-150","bg-background/70"]}},disableAnimation:{true:{menu:["hidden","h-[calc(100dvh_-_var(--navbar-height)_-_1px)]","data-[open=true]:flex"]}}},defaultVariants:{maxWidth:"lg",position:"sticky",isBlurred:!0}}),ml=We({slots:{base:["z-0","relative","bg-transparent","before:content-['']","before:hidden","before:z-[-1]","before:absolute","before:rotate-45","before:w-2.5","before:h-2.5","before:rounded-sm","data-[arrow=true]:before:block","data-[placement=top]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top]:before:left-1/2","data-[placement=top]:before:-translate-x-1/2","data-[placement=top-start]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-start]:before:left-3","data-[placement=top-end]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-end]:before:right-3","data-[placement=bottom]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom]:before:left-1/2","data-[placement=bottom]:before:-translate-x-1/2","data-[placement=bottom-start]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-start]:before:left-3","data-[placement=bottom-end]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-end]:before:right-3","data-[placement=left]:before:-right-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=left]:before:top-1/2","data-[placement=left]:before:-translate-y-1/2","data-[placement=left-start]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-start]:before:top-1/4","data-[placement=left-end]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-end]:before:bottom-1/4","data-[placement=right]:before:-left-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=right]:before:top-1/2","data-[placement=right]:before:-translate-y-1/2","data-[placement=right-start]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-start]:before:top-1/4","data-[placement=right-end]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-end]:before:bottom-1/4",...mr],content:["z-10","px-2.5","py-1","w-full","inline-flex","flex-col","items-center","justify-center","box-border","subpixel-antialiased","outline-none","box-border"],trigger:["z-10"],backdrop:["hidden"],arrow:[]},variants:{size:{sm:{content:"text-tiny"},md:{content:"text-small"},lg:{content:"text-medium"}},color:{default:{base:"before:bg-content1 before:shadow-small",content:"bg-content1"},foreground:{base:"before:bg-foreground",content:J.solid.foreground},primary:{base:"before:bg-primary",content:J.solid.primary},secondary:{base:"before:bg-secondary",content:J.solid.secondary},success:{base:"before:bg-success",content:J.solid.success},warning:{base:"before:bg-warning",content:J.solid.warning},danger:{base:"before:bg-danger",content:J.solid.danger}},radius:{none:{content:"rounded-none"},sm:{content:"rounded-small"},md:{content:"rounded-medium"},lg:{content:"rounded-large"},full:{content:"rounded-full"}},shadow:{sm:{content:"shadow-small"},md:{content:"shadow-medium"},lg:{content:"shadow-large"}},backdrop:{transparent:{},opaque:{backdrop:"bg-overlay/50 backdrop-opacity-disabled"},blur:{backdrop:"backdrop-blur-sm backdrop-saturate-150 bg-overlay/30"}},triggerScaleOnOpen:{true:{trigger:["aria-expanded:scale-[0.97]","aria-expanded:opacity-70","subpixel-antialiased"]},false:{}},disableAnimation:{true:{base:"animate-none"}}},defaultVariants:{color:"default",radius:"lg",size:"md",shadow:"md",backdrop:"transparent",disableAnimation:!1,triggerScaleOnOpen:!0},compoundVariants:[{backdrop:["opaque","blur"],class:{backdrop:"block w-full h-full fixed inset-0 -z-30"}}]}),X$=["data-[top-scroll=true]:[mask-image:linear-gradient(0deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[bottom-scroll=true]:[mask-image:linear-gradient(180deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[top-bottom-scroll=true]:[mask-image:linear-gradient(#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"],Q$=["data-[left-scroll=true]:[mask-image:linear-gradient(270deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[right-scroll=true]:[mask-image:linear-gradient(90deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[left-right-scroll=true]:[mask-image:linear-gradient(to_right,#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"],Rm=We({base:[],variants:{orientation:{vertical:["overflow-y-auto",...X$],horizontal:["overflow-x-auto",...Q$]},hideScrollBar:{true:"scrollbar-hide",false:""}},defaultVariants:{orientation:"vertical",hideScrollBar:!1}}),Om=We({slots:{wrapper:"relative shadow-black/5",zoomedWrapper:"relative overflow-hidden rounded-inherit",img:"relative z-10 opacity-0 shadow-black/5 data-[loaded=true]:opacity-100",blurredImg:["absolute","z-0","inset-0","w-full","h-full","object-cover","filter","blur-lg","scale-105","saturate-150","opacity-30","translate-y-1"]},variants:{radius:{none:{},sm:{},md:{},lg:{},full:{}},shadow:{none:{wrapper:"shadow-none",img:"shadow-none"},sm:{wrapper:"shadow-small",img:"shadow-small"},md:{wrapper:"shadow-medium",img:"shadow-medium"},lg:{wrapper:"shadow-large",img:"shadow-large"}},isZoomed:{true:{img:["object-cover","transform","hover:scale-125"]}},showSkeleton:{true:{wrapper:["group","relative","overflow-hidden","bg-content3 dark:bg-content2","before:opacity-100","before:absolute","before:inset-0","before:-translate-x-full","before:animate-[shimmer_2s_infinite]","before:border-t","before:border-content4/30","before:bg-gradient-to-r","before:from-transparent","before:via-content4","dark:before:via-default-700/10","before:to-transparent","after:opacity-100","after:absolute","after:inset-0","after:-z-10","after:bg-content3","dark:after:bg-content2"],img:"opacity-0"}},disableAnimation:{true:{img:"transition-none"},false:{img:"transition-transform-opacity motion-reduce:transition-none !duration-300"}}},defaultVariants:{radius:"lg",shadow:"none",isZoomed:!1,isBlurred:!1,showSkeleton:!1,disableAnimation:!1},compoundSlots:[{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"none",class:"rounded-none"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"full",class:"rounded-full"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"sm",class:"rounded-small"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"md",class:"rounded-md"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"lg",class:"rounded-large"}]}),Fm=We({slots:{base:"group flex flex-col",label:["absolute","z-10","pointer-events-none","origin-top-left","subpixel-antialiased","block","text-small","text-foreground-500"],mainWrapper:"h-full",inputWrapper:"relative w-full inline-flex tap-highlight-transparent flex-row items-center shadow-sm px-3 gap-3",innerWrapper:"inline-flex w-full items-center h-full box-border",input:["w-full font-normal bg-transparent !outline-none placeholder:text-foreground-500 focus-visible:outline-none","data-[has-start-content=true]:ps-1.5","data-[has-end-content=true]:pe-1.5"],clearButton:["p-2","-m-2","z-10","hidden","absolute","right-3","appearance-none","outline-none","select-none","opacity-0","hover:!opacity-100","cursor-pointer","active:!opacity-70","rounded-full",...mr],helperWrapper:"hidden group-data-[has-helper=true]:flex p-1 relative flex-col gap-1.5",description:"text-tiny text-foreground-400",errorMessage:"text-tiny text-danger"},variants:{variant:{flat:{inputWrapper:["bg-default-100","data-[hover=true]:bg-default-200","group-data-[focus=true]:bg-default-100"]},faded:{inputWrapper:["bg-default-100","border-medium","border-default-200","data-[hover=true]:border-default-400"],value:"group-data-[has-value=true]:text-default-foreground"},bordered:{inputWrapper:["border-medium","border-default-200","data-[hover=true]:border-default-400","group-data-[focus=true]:border-default-foreground"]},underlined:{inputWrapper:["!px-1","!pb-0","!gap-0","relative","box-border","border-b-medium","shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]","border-default-200","!rounded-none","hover:border-default-300","after:content-['']","after:w-0","after:origin-center","after:bg-default-foreground","after:absolute","after:left-1/2","after:-translate-x-1/2","after:-bottom-[2px]","after:h-[2px]","group-data-[focus=true]:after:w-full"],innerWrapper:"pb-1",label:"group-data-[filled-within=true]:text-foreground"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{label:"text-tiny",inputWrapper:"h-unit-8 min-h-unit-8 px-2 rounded-small",input:"text-small",clearButton:"text-medium"},md:{inputWrapper:"h-unit-10 min-h-unit-10 rounded-medium",input:"text-small",clearButton:"text-large"},lg:{inputWrapper:"h-unit-12 min-h-unit-12 rounded-large",input:"text-medium",clearButton:"text-large"}},radius:{none:{inputWrapper:"rounded-none"},sm:{inputWrapper:"rounded-small"},md:{inputWrapper:"rounded-medium"},lg:{inputWrapper:"rounded-large"},full:{inputWrapper:"rounded-full"}},labelPlacement:{outside:{mainWrapper:"flex flex-col"},"outside-left":{base:"flex-row items-center flex-nowrap data-[has-helper=true]:items-start",inputWrapper:"flex-1",mainWrapper:"flex flex-col",label:"relative text-foreground pr-2"},inside:{label:"text-tiny cursor-text",inputWrapper:"flex-col items-start justify-center gap-0",innerWrapper:"group-data-[has-label=true]:items-end"}},fullWidth:{true:{base:"w-full"}},isClearable:{true:{input:"peer pr-6",clearButton:"peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none",inputWrapper:"pointer-events-none",label:"pointer-events-none"}},isInvalid:{true:{label:"!text-danger",input:"!placeholder:text-danger !text-danger"}},isRequired:{true:{label:"after:content-['*'] after:text-danger after:ml-0.5"}},isMultiline:{true:{label:"relative",inputWrapper:"!h-auto",innerWrapper:"items-start group-data-[has-label=true]:items-start",input:"resize-none data-[hide-scroll=true]:scrollbar-hide"}},disableAnimation:{true:{input:"transition-none",inputWrapper:"transition-none",label:"transition-none"},false:{inputWrapper:"transition-background motion-reduce:transition-none !duration-150",label:["will-change-auto","!duration-200","!ease-out","motion-reduce:transition-none","transition-[transform,color,left,opacity]"],clearButton:["transition-opacity","motion-reduce:transition-none"]}}},defaultVariants:{variant:"flat",color:"default",size:"md",fullWidth:!0,labelPlacement:"inside",isDisabled:!1,isMultiline:!1,disableAnimation:!1},compoundVariants:[{variant:"flat",color:"default",class:{input:"group-data-[has-value=true]:text-default-foreground"}},{variant:"flat",color:"primary",class:{inputWrapper:["bg-primary-50","data-[hover=true]:bg-primary-100","text-primary","group-data-[focus=true]:bg-primary-50","placeholder:text-primary"],input:"placeholder:text-primary",label:"text-primary"}},{variant:"flat",color:"secondary",class:{inputWrapper:["bg-secondary-50","text-secondary","data-[hover=true]:bg-secondary-100","group-data-[focus=true]:bg-secondary-50","placeholder:text-secondary"],input:"placeholder:text-secondary",label:"text-secondary"}},{variant:"flat",color:"success",class:{inputWrapper:["bg-success-50","text-success-600","dark:text-success","placeholder:text-success-600","dark:placeholder:text-success","data-[hover=true]:bg-success-100","group-data-[focus=true]:bg-success-50"],input:"placeholder:text-success-600 dark:placeholder:text-success",label:"text-success-600 dark:text-success"}},{variant:"flat",color:"warning",class:{inputWrapper:["bg-warning-50","text-warning-600","dark:text-warning","placeholder:text-warning-600","dark:placeholder:text-warning","data-[hover=true]:bg-warning-100","group-data-[focus=true]:bg-warning-50"],input:"placeholder:text-warning-600 dark:placeholder:text-warning",label:"text-warning-600 dark:text-warning"}},{variant:"flat",color:"danger",class:{inputWrapper:["bg-danger-50","text-danger","dark:text-danger-500","placeholder:text-danger","dark:placeholder:text-danger-500","data-[hover=true]:bg-danger-100","group-data-[focus=true]:bg-danger-50"],input:"placeholder:text-danger dark:placeholder:text-danger-500",label:"text-danger dark:text-danger-500"}},{variant:"faded",color:"primary",class:{label:"text-primary",inputWrapper:"data-[hover=true]:border-primary focus-within:border-primary"}},{variant:"faded",color:"secondary",class:{label:"text-secondary",inputWrapper:"data-[hover=true]:border-secondary focus-within:border-secondary"}},{variant:"faded",color:"success",class:{label:"text-success",inputWrapper:"data-[hover=true]:border-success focus-within:border-success"}},{variant:"faded",color:"warning",class:{label:"text-warning",inputWrapper:"data-[hover=true]:border-warning focus-within:border-warning"}},{variant:"faded",color:"danger",class:{label:"text-danger",inputWrapper:"data-[hover=true]:border-danger focus-within:border-danger"}},{variant:"underlined",color:"default",class:{input:"group-data-[has-value=true]:text-foreground"}},{variant:"underlined",color:"primary",class:{inputWrapper:"after:bg-primary",label:"text-primary"}},{variant:"underlined",color:"secondary",class:{inputWrapper:"after:bg-secondary",label:"text-secondary"}},{variant:"underlined",color:"success",class:{inputWrapper:"after:bg-success",label:"text-success"}},{variant:"underlined",color:"warning",class:{inputWrapper:"after:bg-warning",label:"text-warning"}},{variant:"underlined",color:"danger",class:{inputWrapper:"after:bg-danger",label:"text-danger"}},{variant:"bordered",color:"primary",class:{inputWrapper:"group-data-[focus=true]:border-primary",label:"text-primary"}},{variant:"bordered",color:"secondary",class:{inputWrapper:"group-data-[focus=true]:border-secondary",label:"text-secondary"}},{variant:"bordered",color:"success",class:{inputWrapper:"group-data-[focus=true]:border-success",label:"text-success"}},{variant:"bordered",color:"warning",class:{inputWrapper:"group-data-[focus=true]:border-warning",label:"text-warning"}},{variant:"bordered",color:"danger",class:{inputWrapper:"group-data-[focus=true]:border-danger",label:"text-danger"}},{labelPlacement:"inside",color:"default",class:{label:"group-data-[filled-within=true]:text-default-600"}},{labelPlacement:"outside",color:"default",class:{label:"group-data-[filled-within=true]:text-foreground"}},{radius:"full",size:["sm"],class:{inputWrapper:"px-3"}},{radius:"full",size:"md",class:{inputWrapper:"px-4"}},{radius:"full",size:"lg",class:{inputWrapper:"px-5"}},{disableAnimation:!1,variant:["faded","bordered"],class:{inputWrapper:"transition-colors motion-reduce:transition-none"}},{disableAnimation:!1,variant:"underlined",class:{inputWrapper:"after:transition-width motion-reduce:after:transition-none"}},{variant:["flat","faded"],class:{inputWrapper:[...V$]}},{isInvalid:!0,variant:"flat",class:{inputWrapper:["bg-danger-50","data-[hover=true]:bg-danger-100","group-data-[focus=true]:bg-danger-50"]}},{isInvalid:!0,variant:"bordered",class:{inputWrapper:"!border-danger group-data-[focus=true]:border-danger"}},{isInvalid:!0,variant:"underlined",class:{inputWrapper:"after:bg-danger"}},{labelPlacement:"inside",size:"sm",class:{inputWrapper:"h-12 py-1.5 px-3"}},{labelPlacement:"inside",size:"md",class:{inputWrapper:"h-14 py-2"}},{labelPlacement:"inside",size:"lg",class:{label:"text-small",inputWrapper:"h-16 py-2.5 gap-0"}},{labelPlacement:"inside",size:"sm",variant:["bordered","faded"],class:{inputWrapper:"py-1"}},{labelPlacement:["inside","outside"],class:{label:["group-data-[filled-within=true]:pointer-events-auto"]}},{labelPlacement:["outside","outside-left"],class:{input:"h-full"}},{labelPlacement:"outside",isMultiline:!1,class:{base:"group relative justify-end",label:["pb-0","z-20","top-1/2","-translate-y-1/2","group-data-[filled-within=true]:left-0"]}},{labelPlacement:["inside"],class:{label:["group-data-[filled-within=true]:scale-85"]}},{labelPlacement:["inside"],variant:"flat",class:{innerWrapper:"pb-0.5"}},{variant:"underlined",size:"sm",class:{innerWrapper:"pb-1"}},{variant:"underlined",size:["md","lg"],class:{innerWrapper:"pb-1.5"}},{labelPlacement:"inside",size:["sm","md"],class:{label:"text-small"}},{labelPlacement:"inside",isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px)]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_5px)]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_3.5px)]"]}},{labelPlacement:"inside",variant:"underlined",size:"lg",isMultiline:!1,class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"]}},{labelPlacement:"outside",size:"sm",isMultiline:!1,class:{label:["left-2","text-tiny","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_8px)]"}},{labelPlacement:"outside",size:"md",isMultiline:!1,class:{label:["left-3","text-small","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_10px)]"}},{labelPlacement:"outside",size:"lg",isMultiline:!1,class:{label:["left-3","text-medium","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_12px)]"}},{labelPlacement:"outside-left",size:"sm",class:{label:"group-data-[has-helper=true]:pt-2"}},{labelPlacement:"outside-left",size:"md",class:{label:"group-data-[has-helper=true]:pt-3"}},{labelPlacement:"outside-left",size:"lg",class:{label:"group-data-[has-helper=true]:pt-4"}},{labelPlacement:["outside","outside-left"],isMultiline:!0,class:{inputWrapper:"py-2"}},{labelPlacement:"outside",isMultiline:!0,class:{label:"pb-1.5"}},{labelPlacement:"inside",isMultiline:!0,class:{label:"pb-0.5",input:"pt-0"}},{isMultiline:!0,disableAnimation:!1,class:{input:"transition-height !duration-100 motion-reduce:transition-none"}},{labelPlacement:["inside","outside"],class:{label:["pe-2","max-w-full","text-ellipsis","overflow-hidden"]}},{isMultiline:!0,radius:"full",class:{inputWrapper:"data-[has-multiple-rows=true]:rounded-large"}}]}),r1=We({slots:{base:"w-full relative flex flex-col gap-1 p-1",list:"w-full flex flex-col gap-0.5 outline-none",emptyContent:["h-10","px-2","py-1.5","w-full","h-full","text-foreground-400","text-start"]}}),gl=We({slots:{base:["flex","group","gap-2","items-center","justify-between","relative","px-2","py-1.5","w-full","h-full","box-border","rounded-small","subpixel-antialiased","outline-none","cursor-pointer","tap-highlight-transparent",...mr,"data-[focus-visible=true]:dark:ring-offset-background-content1"],wrapper:"w-full flex flex-col items-start justify-center",title:"flex-1 text-small font-normal truncate",description:["w-full","text-tiny","text-foreground-500","group-hover:text-current"],selectedIcon:["text-inherit","w-3","h-3","flex-shrink-0"],shortcut:["px-1","py-0.5","rounded","font-sans","text-foreground-500","text-tiny","border-small","border-default-300","group-hover:border-current"]},variants:{variant:{solid:{base:""},bordered:{base:"border-medium border-transparent bg-transparent"},light:{base:"bg-transparent"},faded:{base:["border-small border-transparent hover:border-default data-[hover=true]:bg-default-100","data-[selectable=true]:focus:border-default data-[selectable=true]:focus:bg-default-100"]},flat:{base:""},shadow:{base:"data-[hover=true]:shadow-lg"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},showDivider:{true:{base:["mb-1.5","after:content-['']","after:absolute","after:-bottom-1","after:left-0","after:right-0","after:h-divider","after:bg-divider"]},false:{}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},disableAnimation:{true:{},false:{base:"data-[hover=true]:transition-colors"}}},defaultVariants:{variant:"solid",color:"default",disableAnimation:!1,showDivider:!1},compoundVariants:[{variant:"solid",color:"default",class:{base:["data-[hover=true]:bg-default","data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:bg-default","data-[selectable=true]:focus:text-default-foreground"]}},{variant:"solid",color:"primary",class:{base:["data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground","data-[selectable=true]:focus:bg-primary data-[selectable=true]:focus:text-primary-foreground"]}},{variant:"solid",color:"secondary",class:{base:["data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground","data-[selectable=true]:focus:bg-secondary data-[selectable=true]:focus:text-secondary-foreground"]}},{variant:"solid",color:"success",class:{base:["data-[hover=true]:bg-success data-[hover=true]:text-success-foreground","data-[selectable=true]:focus:bg-success data-[selectable=true]:focus:text-success-foreground"]}},{variant:"solid",color:"warning",class:{base:["data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground","data-[selectable=true]:focus:bg-warning data-[selectable=true]:focus:text-warning-foreground"]}},{variant:"solid",color:"danger",class:{base:["data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground","data-[selectable=true]:focus:bg-danger data-[selectable=true]:focus:text-danger-foreground"]}},{variant:"shadow",color:"default",class:{base:["data-[hover=true]:shadow-default/50 data-[hover=true]:bg-default data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:shadow-default/50 data-[selectable=true]:focus:bg-default data-[selectable=true]:focus:text-default-foreground"]}},{variant:"shadow",color:"primary",class:{base:["data-[hover=true]:shadow-primary/30 data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground","data-[selectable=true]:focus:shadow-primary/30 data-[selectable=true]:focus:bg-primary data-[selectable=true]:focus:text-primary-foreground"]}},{variant:"shadow",color:"secondary",class:{base:["data-[hover=true]:shadow-secondary/30 data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground","data-[selectable=true]:focus:shadow-secondary/30 data-[selectable=true]:focus:bg-secondary data-[selectable=true]:focus:text-secondary-foreground"]}},{variant:"shadow",color:"success",class:{base:["data-[hover=true]:shadow-success/30 data-[hover=true]:bg-success data-[hover=true]:text-success-foreground","data-[selectable=true]:focus:shadow-success/30 data-[selectable=true]:focus:bg-success data-[selectable=true]:focus:text-success-foreground"]}},{variant:"shadow",color:"warning",class:{base:["data-[hover=true]:shadow-warning/30 data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground","data-[selectable=true]:focus:shadow-warning/30 data-[selectable=true]:focus:bg-warning data-[selectable=true]:focus:text-warning-foreground"]}},{variant:"shadow",color:"danger",class:{base:["data-[hover=true]:shadow-danger/30 data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground","data-[selectable=true]:focus:shadow-danger/30 data-[selectable=true]:focus:bg-danger data-[selectable=true]:focus:text-danger-foreground"]}},{variant:"bordered",color:"default",class:{base:["data-[hover=true]:border-default","data-[selectable=true]:focus:border-default"]}},{variant:"bordered",color:"primary",class:{base:["data-[hover=true]:border-primary data-[hover=true]:text-primary","data-[selectable=true]:focus:border-primary data-[selectable=true]:focus:text-primary"]}},{variant:"bordered",color:"secondary",class:{base:["data-[hover=true]:border-secondary data-[hover=true]:text-secondary","data-[selectable=true]:focus:border-secondary data-[selectable=true]:focus:text-secondary"]}},{variant:"bordered",color:"success",class:{base:["data-[hover=true]:border-success data-[hover=true]:text-success","data-[selectable=true]:focus:border-success data-[selectable=true]:focus:text-success"]}},{variant:"bordered",color:"warning",class:{base:["data-[hover=true]:border-warning data-[hover=true]:text-warning","data-[selectable=true]:focus:border-warning data-[selectable=true]:focus:text-warning"]}},{variant:"bordered",color:"danger",class:{base:["data-[hover=true]:border-danger data-[hover=true]:text-danger","data-[selectable=true]:focus:border-danger data-[selectable=true]:focus:text-danger"]}},{variant:"flat",color:"default",class:{base:["data-[hover=true]:bg-default/40","data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:bg-default/40","data-[selectable=true]:focus:text-default-foreground"]}},{variant:"flat",color:"primary",class:{base:["data-[hover=true]:bg-primary/20 data-[hover=true]:text-primary","data-[selectable=true]:focus:bg-primary/20 data-[selectable=true]:focus:text-primary"]}},{variant:"flat",color:"secondary",class:{base:["data-[hover=true]:bg-secondary/20 data-[hover=true]:text-secondary","data-[selectable=true]:focus:bg-secondary/20 data-[selectable=true]:focus:text-secondary"]}},{variant:"flat",color:"success",class:{base:["data-[hover=true]:bg-success/20 data-[hover=true]:text-success","data-[selectable=true]:focus:bg-success/20 data-[selectable=true]:focus:text-success"]}},{variant:"flat",color:"warning",class:{base:["data-[hover=true]:bg-warning/20 data-[hover=true]:text-warning","data-[selectable=true]:focus:bg-warning/20 data-[selectable=true]:focus:text-warning"]}},{variant:"flat",color:"danger",class:{base:["data-[hover=true]:bg-danger/20 data-[hover=true]:text-danger","data-[selectable=true]:focus:bg-danger/20 data-[selectable=true]:focus:text-danger"]}},{variant:"faded",color:"default",class:{base:["data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:text-default-foreground"]}},{variant:"faded",color:"primary",class:{base:["data-[hover=true]:text-primary","data-[selectable=true]:focus:text-primary"]}},{variant:"faded",color:"secondary",class:{base:["data-[hover=true]:text-secondary","data-[selectable=true]:focus:text-secondary"]}},{variant:"faded",color:"success",class:{base:["data-[hover=true]:text-success","data-[selectable=true]:focus:text-success"]}},{variant:"faded",color:"warning",class:{base:["data-[hover=true]:text-warning","data-[selectable=true]:focus:text-warning"]}},{variant:"faded",color:"danger",class:{base:["data-[hover=true]:text-danger","data-[selectable=true]:focus:text-danger"]}},{variant:"light",color:"default",class:{base:["data-[hover=true]:text-default-500","data-[selectable=true]:focus:text-default-500"]}},{variant:"light",color:"primary",class:{base:["data-[hover=true]:text-primary","data-[selectable=true]:focus:text-primary"]}},{variant:"light",color:"secondary",class:{base:["data-[hover=true]:text-secondary","data-[selectable=true]:focus:text-secondary"]}},{variant:"light",color:"success",class:{base:["data-[hover=true]:text-success","data-[selectable=true]:focus:text-success"]}},{variant:"light",color:"warning",class:{base:["data-[hover=true]:text-warning","data-[selectable=true]:focus:text-warning"]}},{variant:"light",color:"danger",class:{base:["data-[hover=true]:text-danger","data-[selectable=true]:focus:text-danger"]}}]}),o1=We({slots:{base:"relative mb-2",heading:"pl-1 text-tiny text-foreground-500",group:"data-[has-title=true]:pt-1",divider:"mt-2"}}),jm=We({slots:{base:["flex","flex-col","relative","overflow-hidden","height-auto","outline-none","text-foreground","box-border","bg-content1",...mr],header:["flex","p-3","z-10","w-full","justify-start","items-center","shrink-0","overflow-inherit","color-inherit","subpixel-antialiased"],body:["relative","flex","flex-1","w-full","p-3","flex-auto","flex-col","place-content-inherit","align-items-inherit","h-auto","break-words","text-left","overflow-y-auto","subpixel-antialiased"],footer:["p-3","h-auto","flex","w-full","items-center","overflow-hidden","color-inherit","subpixel-antialiased"]},variants:{shadow:{none:{base:"shadow-none"},sm:{base:"shadow-small"},md:{base:"shadow-medium"},lg:{base:"shadow-large"}},radius:{none:{base:"rounded-none",header:"rounded-none",footer:"rounded-none"},sm:{base:"rounded-small",header:"rounded-t-small",footer:"rounded-b-small"},md:{base:"rounded-medium",header:"rounded-t-medium",footer:"rounded-b-medium"},lg:{base:"rounded-large",header:"rounded-t-large",footer:"rounded-b-large"}},fullWidth:{true:{base:"w-full"}},isHoverable:{true:{base:"data-[hover=true]:bg-content2 dark:data-[hover=true]:bg-content2"}},isPressable:{true:{base:"cursor-pointer"}},isBlurred:{true:{base:["bg-background/80","dark:bg-background/20","backdrop-blur-md","backdrop-saturate-150"]}},isFooterBlurred:{true:{footer:["bg-background/10","backdrop-blur","backdrop-saturate-150"]}},isDisabled:{true:{base:"opacity-disabled cursor-not-allowed"}},disableAnimation:{true:"",false:{base:"transition-transform-background motion-reduce:transition-none"}}},compoundVariants:[{isPressable:!0,disableAnimation:!1,class:"data-[pressed=true]:scale-[0.97] tap-highlight-transparent"}],defaultVariants:{radius:"lg",shadow:"md",fullWidth:!1,isHoverable:!1,isPressable:!1,isDisabled:!1,disableAnimation:!1,isFooterBlurred:!1}}),Z$=We({base:"shrink-0 bg-divider border-none",variants:{orientation:{horizontal:"w-full h-divider",vertical:"h-full w-divider"}},defaultVariants:{orientation:"horizontal"}}),J$=We({base:["w-full","p-1","min-w-[200px]"]});We({slots:{base:["flex","group","gap-2","items-center","justify-between","relative","px-2","py-1.5","w-full","h-full","box-border","rounded-small","outline-none","cursor-pointer","tap-highlight-transparent","data-[pressed=true]:opacity-70",...mr,"data-[focus-visible=true]:dark:ring-offset-background-content1"],wrapper:"w-full flex flex-col items-start justify-center",title:"flex-1 text-small font-normal truncate",description:["w-full","text-tiny","text-foreground-500","group-hover:text-current"],selectedIcon:["text-inherit","w-3","h-3","flex-shrink-0"],shortcut:["px-1","py-0.5","rounded","font-sans","text-foreground-500","text-tiny","border-small","border-default-300","group-hover:border-current"]},variants:{variant:{solid:{base:""},bordered:{base:"border-medium border-transparent bg-transparent"},light:{base:"bg-transparent"},faded:{base:"border-small border-transparent hover:border-default data-[hover=true]:bg-default-100"},flat:{base:""},shadow:{base:"data-[hover=true]:shadow-lg"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},disableAnimation:{true:{},false:{}}},defaultVariants:{variant:"solid",color:"default",disableAnimation:!1},compoundVariants:[{variant:"solid",color:"default",class:{base:"data-[hover=true]:bg-default data-[hover=true]:text-default-foreground"}},{variant:"solid",color:"primary",class:{base:"data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground"}},{variant:"solid",color:"secondary",class:{base:"data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground"}},{variant:"solid",color:"success",class:{base:"data-[hover=true]:bg-success data-[hover=true]:text-success-foreground"}},{variant:"solid",color:"warning",class:{base:"data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground"}},{variant:"solid",color:"danger",class:{base:"data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground"}},{variant:"shadow",color:"default",class:{base:"data-[hover=true]:shadow-default/50 data-[hover=true]:bg-default data-[hover=true]:text-default-foreground"}},{variant:"shadow",color:"primary",class:{base:"data-[hover=true]:shadow-primary/30 data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground"}},{variant:"shadow",color:"secondary",class:{base:"data-[hover=true]:shadow-secondary/30 data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground"}},{variant:"shadow",color:"success",class:{base:"data-[hover=true]:shadow-success/30 data-[hover=true]:bg-success data-[hover=true]:text-success-foreground"}},{variant:"shadow",color:"warning",class:{base:"data-[hover=true]:shadow-warning/30 data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground"}},{variant:"shadow",color:"danger",class:{base:"data-[hover=true]:shadow-danger/30 data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground"}},{variant:"bordered",color:"default",class:{base:"data-[hover=true]:border-default"}},{variant:"bordered",color:"primary",class:{base:"data-[hover=true]:border-primary data-[hover=true]:text-primary"}},{variant:"bordered",color:"secondary",class:{base:"data-[hover=true]:border-secondary data-[hover=true]:text-secondary"}},{variant:"bordered",color:"success",class:{base:"data-[hover=true]:border-success data-[hover=true]:text-success"}},{variant:"bordered",color:"warning",class:{base:"data-[hover=true]:border-warning data-[hover=true]:text-warning"}},{variant:"bordered",color:"danger",class:{base:"data-[hover=true]:border-danger data-[hover=true]:text-danger"}},{variant:"flat",color:"default",class:{base:"data-[hover=true]:bg-default/40 data-[hover=true]:text-default-foreground"}},{variant:"flat",color:"primary",class:{base:"data-[hover=true]:bg-primary/20 data-[hover=true]:text-primary"}},{variant:"flat",color:"secondary",class:{base:"data-[hover=true]:bg-secondary/20 data-[hover=true]:text-secondary"}},{variant:"flat",color:"success",class:{base:"data-[hover=true]:bg-success/20 data-[hover=true]:text-success "}},{variant:"flat",color:"warning",class:{base:"data-[hover=true]:bg-warning/20 data-[hover=true]:text-warning"}},{variant:"flat",color:"danger",class:{base:"data-[hover=true]:bg-danger/20 data-[hover=true]:text-danger"}},{variant:"faded",color:"default",class:{base:"data-[hover=true]:text-default-foreground"}},{variant:"faded",color:"primary",class:{base:"data-[hover=true]:text-primary"}},{variant:"faded",color:"secondary",class:{base:"data-[hover=true]:text-secondary"}},{variant:"faded",color:"success",class:{base:"data-[hover=true]:text-success"}},{variant:"faded",color:"warning",class:{base:"data-[hover=true]:text-warning"}},{variant:"faded",color:"danger",class:{base:"data-[hover=true]:text-danger"}},{variant:"light",color:"default",class:{base:"data-[hover=true]:text-default-500"}},{variant:"light",color:"primary",class:{base:"data-[hover=true]:text-primary"}},{variant:"light",color:"secondary",class:{base:"data-[hover=true]:text-secondary"}},{variant:"light",color:"success",class:{base:"data-[hover=true]:text-success"}},{variant:"light",color:"warning",class:{base:"data-[hover=true]:text-warning"}},{variant:"light",color:"danger",class:{base:"data-[hover=true]:text-danger"}}]});We({slots:{base:"relative mb-2",heading:"pl-1 text-tiny text-foreground-500",group:"data-[has-title=true]:pt-1",divider:"mt-2"}});We({base:"w-full flex flex-col gap-0.5 p-1"});var _m=We({slots:{base:"group inline-flex flex-column w-full",listboxWrapper:"scroll-py-6 max-h-64 w-full",listbox:"",popoverContent:"w-full p-1 overflow-hidden",endContentWrapper:"relative flex h-full items-center -mr-2",clearButton:["text-medium","translate-x-1","cursor-text","opacity-0","text-default-500","group-data-[invalid=true]:text-danger","data-[visible=true]:opacity-100","data-[visible=true]:cursor-pointer","sm:data-[visible=true]:opacity-0","sm:group-data-[hover=true]:data-[visible=true]:opacity-100"],selectorButton:"text-medium"},variants:{isClearable:{true:{},false:{clearButton:"hidden"}},disableAnimation:{true:{selectorButton:"transition-none"},false:{selectorButton:"transition-transform duration-150 ease motion-reduce:transition-none"}},disableSelectorIconRotation:{true:{},false:{selectorButton:"data-[open=true]:rotate-180"}}},defaultVariants:{disableAnimation:!1,isClearable:!0,disableSelectorIconRotation:!1}}),q$=We({slots:{base:["flex","relative","justify-center","items-center","box-border","overflow-hidden","align-middle","text-white","z-0",...mr],img:["flex","object-cover","w-full","h-full","transition-opacity","!duration-500","opacity-0","data-[loaded=true]:opacity-100"],fallback:[...Gu,"flex","items-center","justify-center"],name:[...Gu,"font-normal","text-center","text-inherit"],icon:[...Gu,"flex","items-center","justify-center","text-inherit","w-full","h-full"]},variants:{size:{sm:{base:"w-8 h-8 text-tiny"},md:{base:"w-10 h-10 text-tiny"},lg:{base:"w-14 h-14 text-small"}},color:{default:{base:J.solid.default},primary:{base:J.solid.primary},secondary:{base:J.solid.secondary},success:{base:J.solid.success},warning:{base:J.solid.warning},danger:{base:J.solid.danger}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},isBordered:{true:{base:"ring-2 ring-offset-2 ring-offset-background dark:ring-offset-background-dark"}},isDisabled:{true:{base:"opacity-disabled"}},isInGroup:{true:{base:["-ms-2 data-[hover=true]:-translate-x-3 transition-transform","data-[focus-visible=true]:-translate-x-3"]}},isInGridGroup:{true:{base:"m-0 data-[hover=true]:translate-x-0"}}},defaultVariants:{size:"md",color:"default",radius:"full"},compoundVariants:[{color:"default",isBordered:!0,class:{base:"ring-default"}},{color:"primary",isBordered:!0,class:{base:"ring-primary"}},{color:"secondary",isBordered:!0,class:{base:"ring-secondary"}},{color:"success",isBordered:!0,class:{base:"ring-success"}},{color:"warning",isBordered:!0,class:{base:"ring-warning"}},{color:"danger",isBordered:!0,class:{base:"ring-danger"}}]});We({base:"flex items-center justify-center h-auto w-max-content",variants:{isGrid:{true:"inline-grid grid-cols-4 gap-3"}}});var e5=We({base:["z-0","group","relative","inline-flex","items-center","justify-center","box-border","appearance-none","outline-none","select-none","whitespace-nowrap","min-w-max","font-normal","subpixel-antialiased","overflow-hidden","tap-highlight-transparent",...mr],variants:{variant:{solid:"",bordered:"border-medium bg-transparent",light:"bg-transparent",flat:"",faded:"border-medium",shadow:"",ghost:"border-medium bg-transparent"},size:{sm:"px-unit-3 min-w-unit-16 h-unit-8 text-tiny gap-unit-2 rounded-small",md:"px-unit-4 min-w-unit-20 h-unit-10 text-small gap-unit-2 rounded-medium",lg:"px-unit-6 min-w-unit-24 h-unit-12 text-medium gap-unit-3 rounded-large"},color:{default:"",primary:"",secondary:"",success:"",warning:"",danger:""},radius:{none:"rounded-none",sm:"rounded-small",md:"rounded-medium",lg:"rounded-large",full:"rounded-full"},fullWidth:{true:"w-full"},isDisabled:{true:"opacity-disabled pointer-events-none"},isInGroup:{true:"[&:not(:first-child):not(:last-child)]:rounded-none"},isIconOnly:{true:"px-unit-0 !gap-unit-0",false:"[&>svg]:max-w-[theme(spacing.unit-8)]"},disableAnimation:{true:"!transition-none",false:"data-[pressed=true]:scale-[0.97] transition-transform-colors-opacity motion-reduce:transition-none"}},defaultVariants:{size:"md",variant:"solid",color:"default",fullWidth:!1,isDisabled:!1,isInGroup:!1,disableAnimation:!1},compoundVariants:[{variant:"solid",color:"default",class:J.solid.default},{variant:"solid",color:"primary",class:J.solid.primary},{variant:"solid",color:"secondary",class:J.solid.secondary},{variant:"solid",color:"success",class:J.solid.success},{variant:"solid",color:"warning",class:J.solid.warning},{variant:"solid",color:"danger",class:J.solid.danger},{variant:"shadow",color:"default",class:J.shadow.default},{variant:"shadow",color:"primary",class:J.shadow.primary},{variant:"shadow",color:"secondary",class:J.shadow.secondary},{variant:"shadow",color:"success",class:J.shadow.success},{variant:"shadow",color:"warning",class:J.shadow.warning},{variant:"shadow",color:"danger",class:J.shadow.danger},{variant:"bordered",color:"default",class:J.bordered.default},{variant:"bordered",color:"primary",class:J.bordered.primary},{variant:"bordered",color:"secondary",class:J.bordered.secondary},{variant:"bordered",color:"success",class:J.bordered.success},{variant:"bordered",color:"warning",class:J.bordered.warning},{variant:"bordered",color:"danger",class:J.bordered.danger},{variant:"flat",color:"default",class:J.flat.default},{variant:"flat",color:"primary",class:J.flat.primary},{variant:"flat",color:"secondary",class:J.flat.secondary},{variant:"flat",color:"success",class:J.flat.success},{variant:"flat",color:"warning",class:J.flat.warning},{variant:"flat",color:"danger",class:J.flat.danger},{variant:"faded",color:"default",class:J.faded.default},{variant:"faded",color:"primary",class:J.faded.primary},{variant:"faded",color:"secondary",class:J.faded.secondary},{variant:"faded",color:"success",class:J.faded.success},{variant:"faded",color:"warning",class:J.faded.warning},{variant:"faded",color:"danger",class:J.faded.danger},{variant:"light",color:"default",class:[J.light.default,"data-[hover=true]:bg-default/40"]},{variant:"light",color:"primary",class:[J.light.primary,"data-[hover=true]:bg-primary/20"]},{variant:"light",color:"secondary",class:[J.light.secondary,"data-[hover=true]:bg-secondary/20"]},{variant:"light",color:"success",class:[J.light.success,"data-[hover=true]:bg-success/20"]},{variant:"light",color:"warning",class:[J.light.warning,"data-[hover=true]:bg-warning/20"]},{variant:"light",color:"danger",class:[J.light.danger,"data-[hover=true]:bg-danger/20"]},{variant:"ghost",color:"default",class:J.ghost.default},{variant:"ghost",color:"primary",class:J.ghost.primary},{variant:"ghost",color:"secondary",class:J.ghost.secondary},{variant:"ghost",color:"success",class:J.ghost.success},{variant:"ghost",color:"warning",class:J.ghost.warning},{variant:"ghost",color:"danger",class:J.ghost.danger},{isInGroup:!0,class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,size:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,isRounded:!0,class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,radius:"none",class:"rounded-none first:rounded-s-none last:rounded-e-none"},{isInGroup:!0,radius:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,radius:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,radius:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,radius:"full",class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,variant:["ghost","bordered"],color:"default",className:no.default},{isInGroup:!0,variant:["ghost","bordered"],color:"primary",className:no.primary},{isInGroup:!0,variant:["ghost","bordered"],color:"secondary",className:no.secondary},{isInGroup:!0,variant:["ghost","bordered"],color:"success",className:no.success},{isInGroup:!0,variant:["ghost","bordered"],color:"warning",className:no.warning},{isInGroup:!0,variant:["ghost","bordered"],color:"danger",className:no.danger},{isIconOnly:!0,size:"sm",class:"min-w-unit-8 w-unit-8 h-unit-8"},{isIconOnly:!0,size:"md",class:"min-w-unit-10 w-unit-10 h-unit-10"},{isIconOnly:!0,size:"lg",class:"min-w-unit-12 w-unit-12 h-unit-12"},{variant:["solid","faded","flat","bordered","shadow"],class:"data-[hover=true]:opacity-hover"}]});We({base:"inline-flex items-center justify-center h-auto",variants:{fullWidth:{true:"w-full"}},defaultVariants:{fullWidth:!1}});var t5=e=>(e==null?void 0:e.length)<=4?e:e==null?void 0:e.slice(0,3),n5=(...e)=>{let t=" ";for(const n of e)if(typeof n=="string"&&n.length>0){t=n;break}return t};function i1(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t"u")&&!Bm[i]&&(Bm[i]=!0,((r=process==null?void 0:r5)==null?void 0:r.NODE_ENV)!=="production"))return console.warn(i,n)}var i5=e=>e.charAt(0).toUpperCase()+e.slice(1);function s5(e){return`${e}-${Math.floor(Math.random()*1e6)}`}function s1(e){for(const t in e)t.startsWith("on")&&delete e[t];return e}function a5(e){return typeof e=="function"}var H=e=>e?"true":void 0;function Yo(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=h.createContext(void 0);o.displayName=r;function i(){var s;const a=h.useContext(o);if(!a&&t){const l=new Error(n);throw l.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,l,i),l}return a}return[o.Provider,i,o]}function l5(e){return{UNSAFE_getDOMNode(){return e.current}}}function Fe(e){const t=h.useRef(null);return h.useImperativeHandle(e,()=>t.current),t}function u5(e,t){if(e!=null){if(a5(e)){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function kd(...e){return t=>{e.forEach(n=>u5(n,t))}}var c5=Object.create,a1=Object.defineProperty,d5=Object.getOwnPropertyDescriptor,l1=Object.getOwnPropertyNames,f5=Object.getPrototypeOf,p5=Object.prototype.hasOwnProperty,u1=(e,t)=>function(){return t||(0,e[l1(e)[0]])((t={exports:{}}).exports,t),t.exports},h5=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of l1(t))!p5.call(e,o)&&o!==n&&a1(e,o,{get:()=>t[o],enumerable:!(r=d5(t,o))||r.enumerable});return e},m5=(e,t,n)=>(n=e!=null?c5(f5(e)):{},h5(t||!e||!e.__esModule?a1(n,"default",{value:e,enumerable:!0}):n,e)),g5=u1({"../../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.production.min.js"(e){var t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.iterator;function p(T){return T===null||typeof T!="object"?null:(T=f&&T[f]||T["@@iterator"],typeof T=="function"?T:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,w={};function x(T,F,V){this.props=T,this.context=F,this.refs=w,this.updater=V||y}x.prototype.isReactComponent={},x.prototype.setState=function(T,F){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,F,"setState")},x.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function g(){}g.prototype=x.prototype;function v(T,F,V){this.props=T,this.context=F,this.refs=w,this.updater=V||y}var S=v.prototype=new g;S.constructor=v,b(S,x.prototype),S.isPureReactComponent=!0;var k=Array.isArray,A=Object.prototype.hasOwnProperty,D={current:null},m={key:!0,ref:!0,__self:!0,__source:!0};function L(T,F,V){var W,U={},Q=null,K=null;if(F!=null)for(W in F.ref!==void 0&&(K=F.ref),F.key!==void 0&&(Q=""+F.key),F)A.call(F,W)&&!m.hasOwnProperty(W)&&(U[W]=F[W]);var G=arguments.length-2;if(G===1)U.children=V;else if(1{var n;let r=[];const o=(n=Vm.Children.map(e,s=>(0,Vm.isValidElement)(s)&&s.type===t?(r.push(s),null):s))==null?void 0:n.filter(Boolean),i=r.length>=0?r:void 0;return[o,i]},y5=new Set(["id","type","style","title","role","tabIndex","htmlFor","width","height","abbr","accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","async","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","challenge","charset","checked","cite","class","className","cols","colSpan","command","content","contentEditable","contextMenu","controls","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","dropzone","encType","for","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","hidden","high","href","hrefLang","httpEquiv","icon","inputMode","isMap","itemId","itemProp","itemRef","itemScope","itemType","kind","label","lang","list","loop","manifest","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","name","noValidate","open","optimum","pattern","ping","placeholder","poster","preload","radioGroup","referrerPolicy","readOnly","rel","required","rows","rowSpan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","slot","sortable","span","spellCheck","src","srcDoc","srcSet","start","step","target","translate","typeMustMatch","useMap","value","wmode","wrap"]),b5=new Set(["onCopy","onCut","onPaste","onLoad","onError","onWheel","onScroll","onCompositionEnd","onCompositionStart","onCompositionUpdate","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onSubmit","onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPointerDown","onPointerEnter","onPointerLeave","onPointerUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd"]),x5=/^(data-.*)$/,w5=/^(aria-.*)$/,Yu=/^(on[A-Z].*)$/;function ln(e,t={}){let{labelable:n=!0,enabled:r=!0,propNames:o,omitPropNames:i,omitEventNames:s}=t,a={};if(!r)return e;for(const l in e)i!=null&&i.has(l)||s!=null&&s.has(l)&&Yu.test(l)||Yu.test(l)&&!b5.has(l)||(Object.prototype.hasOwnProperty.call(e,l)&&(y5.has(l)||n&&w5.test(l)||o!=null&&o.has(l)||x5.test(l))||Yu.test(l))&&(a[l]=e[l]);return a}function Td(e){return Sa()?e.altKey:e.ctrlKey}function ao(e){return An()?e.metaKey:e.ctrlKey}const C5=1e3;function S5(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,o=h.useRef({search:"",timeout:null}).current,i=s=>{let a=P5(s.key);if(!a||s.ctrlKey||s.metaKey||!s.currentTarget.contains(s.target))return;a===" "&&o.search.trim().length>0&&(s.preventDefault(),"continuePropagation"in s||s.stopPropagation()),o.search+=a;let l=t.getKeyForSearch(o.search,n.focusedKey);l==null&&(l=t.getKeyForSearch(o.search)),l!=null&&(n.setFocusedKey(l),r&&r(l)),clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},C5)};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:null}}}function P5(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function d1(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:s=!1,disallowSelectAll:a=!1,selectOnFocus:l=t.selectionBehavior==="replace",disallowTypeAhead:u=!1,shouldUseVirtualFocus:c,allowsTabNavigation:d=!1,isVirtualized:f,scrollRef:p=r,linkBehavior:y="action"}=e,{direction:b}=xs(),w=Gl(),x=M=>{if(M.altKey&&M.key==="Tab"&&M.preventDefault(),!r.current.contains(M.target))return;const E=(F,T)=>{if(F!=null){if(t.isLink(F)&&y==="selection"&&l&&!Td(M)){Zf.flushSync(()=>{t.setFocusedKey(F,T)});let O=p.current.querySelector(`[data-key="${F}"]`);w.open(O,M);return}if(t.setFocusedKey(F,T),t.isLink(F)&&y==="override")return;M.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(F):l&&!Td(M)&&t.replaceSelection(F)}};switch(M.key){case"ArrowDown":if(n.getKeyBelow){var N,C;M.preventDefault();let F=t.focusedKey!=null?n.getKeyBelow(t.focusedKey):(N=n.getFirstKey)===null||N===void 0?void 0:N.call(n);F==null&&i&&(F=(C=n.getFirstKey)===null||C===void 0?void 0:C.call(n,t.focusedKey)),E(F)}break;case"ArrowUp":if(n.getKeyAbove){var $,R;M.preventDefault();let F=t.focusedKey!=null?n.getKeyAbove(t.focusedKey):($=n.getLastKey)===null||$===void 0?void 0:$.call(n);F==null&&i&&(F=(R=n.getLastKey)===null||R===void 0?void 0:R.call(n,t.focusedKey)),E(F)}break;case"ArrowLeft":if(n.getKeyLeftOf){var _,j;M.preventDefault();let F=n.getKeyLeftOf(t.focusedKey);F==null&&i&&(F=b==="rtl"?(_=n.getFirstKey)===null||_===void 0?void 0:_.call(n,t.focusedKey):(j=n.getLastKey)===null||j===void 0?void 0:j.call(n,t.focusedKey)),E(F,b==="rtl"?"first":"last")}break;case"ArrowRight":if(n.getKeyRightOf){var I,B;M.preventDefault();let F=n.getKeyRightOf(t.focusedKey);F==null&&i&&(F=b==="rtl"?(I=n.getLastKey)===null||I===void 0?void 0:I.call(n,t.focusedKey):(B=n.getFirstKey)===null||B===void 0?void 0:B.call(n,t.focusedKey)),E(F,b==="rtl"?"last":"first")}break;case"Home":if(n.getFirstKey){M.preventDefault();let F=n.getFirstKey(t.focusedKey,ao(M));t.setFocusedKey(F),ao(M)&&M.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(F):l&&t.replaceSelection(F)}break;case"End":if(n.getLastKey){M.preventDefault();let F=n.getLastKey(t.focusedKey,ao(M));t.setFocusedKey(F),ao(M)&&M.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(F):l&&t.replaceSelection(F)}break;case"PageDown":if(n.getKeyPageBelow){M.preventDefault();let F=n.getKeyPageBelow(t.focusedKey);E(F)}break;case"PageUp":if(n.getKeyPageAbove){M.preventDefault();let F=n.getKeyPageAbove(t.focusedKey);E(F)}break;case"a":ao(M)&&t.selectionMode==="multiple"&&a!==!0&&(M.preventDefault(),t.selectAll());break;case"Escape":M.preventDefault(),s||t.clearSelection();break;case"Tab":if(!d){if(M.shiftKey)r.current.focus();else{let F=xn(r.current,{tabbable:!0}),T,O;do O=F.lastChild(),O&&(T=O);while(O);T&&!T.contains(document.activeElement)&&St(T)}break}}},g=h.useRef({top:0,left:0});qS(p,"scroll",f?null:()=>{g.current={top:p.current.scrollTop,left:p.current.scrollLeft}});let v=M=>{if(t.isFocused){M.currentTarget.contains(M.target)||t.setFocused(!1);return}if(M.currentTarget.contains(M.target)){if(t.setFocused(!0),t.focusedKey==null){let C=R=>{R!=null&&(t.setFocusedKey(R),l&&t.replaceSelection(R))},$=M.relatedTarget;var E,N;$&&M.currentTarget.compareDocumentPosition($)&Node.DOCUMENT_POSITION_FOLLOWING?C((E=t.lastSelectedKey)!==null&&E!==void 0?E:n.getLastKey()):C((N=t.firstSelectedKey)!==null&&N!==void 0?N:n.getFirstKey())}else f||(p.current.scrollTop=g.current.top,p.current.scrollLeft=g.current.left);if(!f&&t.focusedKey!=null){let C=p.current.querySelector(`[data-key="${t.focusedKey}"]`);C&&(C.contains(document.activeElement)||St(C),sl()==="keyboard"&&im(C,{containingElement:r.current}))}}},S=M=>{M.currentTarget.contains(M.relatedTarget)||t.setFocused(!1)};const k=h.useRef(o);h.useEffect(()=>{if(k.current){let M=null;o==="first"&&(M=n.getFirstKey()),o==="last"&&(M=n.getLastKey());let E=t.selectedKeys;E.size&&(M=E.values().next().value),t.setFocused(!0),t.setFocusedKey(M),M==null&&!c&&ir(r.current)}k.current=!1},[]);let A=h.useRef(t.focusedKey);h.useEffect(()=>{let M=sl();if(t.isFocused&&t.focusedKey!=null&&(p!=null&&p.current)){let E=p.current.querySelector(`[data-key="${t.focusedKey}"]`);E&&M==="keyboard"&&(f||Ky(p.current,E),im(E,{containingElement:r.current}))}t.isFocused&&t.focusedKey==null&&A.current!=null&&ir(r.current),A.current=t.focusedKey},[f,p,t.focusedKey,t.isFocused,r]);let D={onKeyDown:x,onFocus:v,onBlur:S,onMouseDown(M){p.current===M.target&&M.preventDefault()}},{typeSelectProps:m}=S5({keyboardDelegate:n,selectionManager:t});u||(D=Y(m,D));let L;return c||(L=t.focusedKey==null?0:-1),{collectionProps:{...D,tabIndex:L}}}function f1(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:o,shouldUseVirtualFocus:i,focus:s,isDisabled:a,onAction:l,allowsDifferentPressOrigin:u,linkBehavior:c="action"}=e,d=Gl(),f=j=>{if(j.pointerType==="keyboard"&&Td(j))t.toggleSelection(n);else{if(t.selectionMode==="none")return;if(t.isLink(n)){if(c==="selection"){d.open(r.current,j),t.setSelectedKeys(t.selectedKeys);return}else if(c==="override"||c==="none")return}t.selectionMode==="single"?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):j&&j.shiftKey?t.extendSelection(n):t.selectionBehavior==="toggle"||j&&(ao(j)||j.pointerType==="touch"||j.pointerType==="virtual")?t.toggleSelection(n):t.replaceSelection(n)}};h.useEffect(()=>{n===t.focusedKey&&t.isFocused&&!i&&(s?s():document.activeElement!==r.current&&ir(r.current))},[r,n,t.focusedKey,t.childFocusStrategy,t.isFocused,i]),a=a||t.isDisabled(n);let p={};!i&&!a?p={tabIndex:n===t.focusedKey?0:-1,onFocus(j){j.target===r.current&&t.setFocusedKey(n)}}:a&&(p.onMouseDown=j=>{j.preventDefault()});let y=t.isLink(n)&&c==="override",b=t.isLink(n)&&c!=="selection"&&c!=="none",w=!a&&t.canSelectItem(n)&&!y,x=(l||b)&&!a,g=x&&(t.selectionBehavior==="replace"?!w:!w||t.isEmpty),v=x&&w&&t.selectionBehavior==="replace",S=g||v,k=h.useRef(null),A=S&&w,D=h.useRef(!1),m=h.useRef(!1),L=j=>{l&&l(),b&&d.open(r.current,j)},M={};o?(M.onPressStart=j=>{k.current=j.pointerType,D.current=A,j.pointerType==="keyboard"&&(!S||zm())&&f(j)},u?(M.onPressUp=g?null:j=>{j.pointerType!=="keyboard"&&w&&f(j)},M.onPress=g?L:null):M.onPress=j=>{if(g||v&&j.pointerType!=="mouse"){if(j.pointerType==="keyboard"&&!Km())return;L(j)}else j.pointerType!=="keyboard"&&w&&f(j)}):(M.onPressStart=j=>{k.current=j.pointerType,D.current=A,m.current=g,w&&(j.pointerType==="mouse"&&!g||j.pointerType==="keyboard"&&(!x||zm()))&&f(j)},M.onPress=j=>{(j.pointerType==="touch"||j.pointerType==="pen"||j.pointerType==="virtual"||j.pointerType==="keyboard"&&S&&Km()||j.pointerType==="mouse"&&m.current)&&(S?L(j):w&&f(j))}),p["data-key"]=n,M.preventFocusOnPress=i;let{pressProps:E,isPressed:N}=ws(M),C=v?j=>{k.current==="mouse"&&(j.stopPropagation(),j.preventDefault(),L(j))}:void 0,{longPressProps:$}=tb({isDisabled:!A,onLongPress(j){j.pointerType==="touch"&&(f(j),t.setSelectionBehavior("toggle"))}}),R=j=>{k.current==="touch"&&D.current&&j.preventDefault()},_=t.isLink(n)?j=>{an.isOpening||j.preventDefault()}:void 0;return{itemProps:Y(p,w||g?E:{},A?$:{},{onDoubleClick:C,onDragStartCapture:R,onClick:_}),isPressed:N,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:a,allowsSelection:w,hasAction:S}}function Km(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function zm(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class p1{getNextKey(t){for(t=this.collection.getKeyAfter(t);t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyAfter(t)}return null}getPreviousKey(t){for(t=this.collection.getKeyBefore(t);t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyBefore(t)}return null}findKey(t,n,r){let o=this.getItem(t);if(!o)return null;let i=o.getBoundingClientRect();do t=n(t),o=this.getItem(t);while(o&&r(i,o.getBoundingClientRect()));return t}isSameRow(t,n){return t.top===n.top||t.left!==n.left}isSameColumn(t,n){return t.left===n.left||t.top!==n.top}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();for(;t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyAfter(t)}return null}getLastKey(){let t=this.collection.getLastKey();for(;t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyBefore(t)}return null}getItem(t){return this.ref.current.querySelector(`[data-key="${t}"]`)}getKeyPageAbove(t){let n=this.ref.current,r=this.getItem(t);if(!r)return null;if(!il(n))return this.getFirstKey();let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(this.orientation==="horizontal"){let s=o.x-n.scrollLeft,a=Math.max(0,i.x-s+i.width-o.width);for(;r&&i.x-s>a;)t=this.getKeyAbove(t),r=t==null?null:this.getItem(t),i=r==null?void 0:r.getBoundingClientRect()}else{let s=o.y-n.scrollTop,a=Math.max(0,i.y-s+i.height-o.height);for(;r&&i.y-s>a;)t=this.getKeyAbove(t),r=t==null?null:this.getItem(t),i=r==null?void 0:r.getBoundingClientRect()}return t??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.getItem(t);if(!r)return null;if(!il(n))return this.getLastKey();let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(this.orientation==="horizontal"){let s=o.x-n.scrollLeft,a=Math.min(n.scrollWidth,i.x-s-i.width+o.width);for(;r&&i.x-si||new p1(n,a==="selection"?new Set:r,o,s),[i,n,r,o,s,a]),{collectionProps:u}=d1({...e,ref:o,selectionManager:t,keyboardDelegate:l});return{listProps:u}}var m1=ee.createContext(null);m1.displayName="PressResponderContext";var $5=Object.defineProperty,E5=(e,t,n)=>t in e?$5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vr=(e,t,n)=>(E5(e,typeof t!="symbol"?t+"":t,n),n),g1=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},k5=(e,t,n)=>(g1(e,t,"read from private field"),n?n.call(e):t.get(e)),T5=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},A5=(e,t,n,r)=>(g1(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),$a,na=class{constructor(e,t,n){vr(this,"type"),vr(this,"pointerType"),vr(this,"target"),vr(this,"shiftKey"),vr(this,"ctrlKey"),vr(this,"metaKey"),vr(this,"altKey"),T5(this,$a,!0),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey}continuePropagation(){A5(this,$a,!1)}get shouldStopPropagation(){return k5(this,$a)}};$a=new WeakMap;var Er=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document},Ad=e=>{var t,n;return(n=(t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)!=null?n:window},Co="default",Md="",Ea=new WeakMap;function Wm(e){if(bs()){if(Co==="default"){const t=Er(e);Md=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Co="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(Ea.set(e,e.style.userSelect),e.style.userSelect="none")}function ra(e){if(bs()){if(Co!=="disabled")return;Co="restoring",setTimeout(()=>{Jf(()=>{if(Co==="restoring"){const t=Er(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Md||""),Md="",Co="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Ea.has(e)){let t=Ea.get(e);e.style.userSelect==="none"&&t&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Ea.delete(e)}}function M5(e){let t=h.useContext(m1);if(t){let{register:n,...r}=t;e=Y(r,e),n()}return tp(t,e.ref),e}var Um=Symbol("linkClicked");function cp(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,isDisabled:s,isPressed:a,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:c,ref:d,...f}=M5(e),[p,y]=h.useState(!1),b=h.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:w,removeAllGlobalListeners:x}=ep(),g=Fe((m,L)=>{let M=b.current;if(s||M.didFirePressStart)return;let E=!0;if(M.isTriggeringEvent=!0,r){let N=new na("pressstart",L,m);r(N),E=N.shouldStopPropagation}return n&&n(!0),M.isTriggeringEvent=!1,M.didFirePressStart=!0,y(!0),E}),v=Fe((m,L,M=!0)=>{let E=b.current;if(!E.didFirePressStart)return;E.ignoreClickAfterPress=!0,E.didFirePressStart=!1,E.isTriggeringEvent=!0;let N=!0;if(o){let C=new na("pressend",L,m);o(C),N=C.shouldStopPropagation}if(n&&n(!1),y(!1),t&&M&&!s){let C=new na("press",L,m);t(C),N&&(N=C.shouldStopPropagation)}return E.isTriggeringEvent=!1,N}),S=Fe((m,L)=>{let M=b.current;if(!s){if(i){M.isTriggeringEvent=!0;let E=new na("pressup",L,m);return i(E),M.isTriggeringEvent=!1,E.shouldStopPropagation}return!0}}),k=Fe(m=>{let L=b.current;L.isPressed&&(L.isOverTarget&&L.target&&v(fn(L.target,m),L.pointerType,!1),L.isPressed=!1,L.isOverTarget=!1,L.activePointerId=null,L.pointerType=null,x(),!c&&L.target&&ra(L.target))}),A=Fe(m=>{u&&k(m)}),D=h.useMemo(()=>{let m=b.current,L={onKeyDown(E){var N;if(Xu(E.nativeEvent,E.currentTarget)&&E.currentTarget.contains(E.target)){Gm(E.target,E.key)&&E.preventDefault();let C=!0;!m.isPressed&&!E.repeat&&(m.target=E.currentTarget,m.isPressed=!0,C=g(E,"keyboard"),w(Er(E.currentTarget),"keyup",M,!1)),C&&E.stopPropagation(),E.metaKey&&An()&&((N=m.metaKeyEvents)==null||N.set(E.key,E.nativeEvent))}else E.key==="Meta"&&(m.metaKeyEvents=new Map)},onKeyUp(E){m.target&&Xu(E.nativeEvent,E.currentTarget)&&!E.repeat&&E.currentTarget.contains(E.target)&&S(fn(m.target,E),"keyboard")},onClick(E){if(!(E&&!E.currentTarget.contains(E.target))&&E&&E.button===0&&!m.isTriggeringEvent&&!an.isOpening){let N=!0;if(s&&E.preventDefault(),!m.ignoreClickAfterPress&&!m.ignoreEmulatedMouseEvents&&!m.isPressed&&(m.pointerType==="virtual"||ns(E.nativeEvent))){!s&&!l&&St(E.currentTarget);let C=g(E,"virtual"),$=S(E,"virtual"),R=v(E,"virtual");N=C&&$&&R}m.ignoreEmulatedMouseEvents=!1,m.ignoreClickAfterPress=!1,N&&E.stopPropagation()}}},M=E=>{var N,C;if(m.isPressed&&m.target&&Xu(E,m.target)){Gm(E.target,E.key)&&E.preventDefault();let $=E.target,R=v(fn(m.target,E),"keyboard",m.target.contains($));x(),R&&E.stopPropagation(),E.key!=="Enter"&&dp(m.target)&&m.target.contains($)&&!E[Um]&&(E[Um]=!0,an(m.target,E,!1)),m.isPressed=!1,(N=m.metaKeyEvents)==null||N.delete(E.key)}else if(E.key==="Meta"&&((C=m.metaKeyEvents)!=null&&C.size)){let $=m.metaKeyEvents;m.metaKeyEvents=null;for(let R of $.values())m.target&&m.target.dispatchEvent(new KeyboardEvent("keyup",R))}};if(typeof PointerEvent<"u"){L.onPointerDown=$=>{if($.button!==0||!$.currentTarget.contains($.target))return;if(zy($.nativeEvent)){m.pointerType="virtual";return}Qu($.currentTarget)&&$.preventDefault(),m.pointerType=$.pointerType;let R=!0;m.isPressed||(m.isPressed=!0,m.isOverTarget=!0,m.activePointerId=$.pointerId,m.target=$.currentTarget,!s&&!l&&St($.currentTarget),c||Wm(m.target),R=g($,m.pointerType),w(Er($.currentTarget),"pointermove",E,!1),w(Er($.currentTarget),"pointerup",N,!1),w(Er($.currentTarget),"pointercancel",C,!1)),R&&$.stopPropagation()},L.onMouseDown=$=>{$.currentTarget.contains($.target)&&$.button===0&&(Qu($.currentTarget)&&$.preventDefault(),$.stopPropagation())},L.onPointerUp=$=>{!$.currentTarget.contains($.target)||m.pointerType==="virtual"||$.button===0&&ro($,$.currentTarget)&&S($,m.pointerType||$.pointerType)};let E=$=>{$.pointerId!==m.activePointerId||!m.target||(ro($,m.target)?m.isOverTarget||(m.isOverTarget=!0,g(fn(m.target,$),m.pointerType)):m.isOverTarget&&(m.isOverTarget=!1,v(fn(m.target,$),m.pointerType,!1),A($)))},N=$=>{$.pointerId===m.activePointerId&&m.isPressed&&$.button===0&&m.target&&((ro($,m.target)||m.isOverTarget)&&v(fn(m.target,$),m.pointerType),m.isPressed=!1,m.isOverTarget=!1,m.activePointerId=null,m.pointerType=null,x(),c||ra(m.target))},C=$=>{k($)};L.onDragStart=$=>{$.currentTarget.contains($.target)&&k($)}}else{L.onMouseDown=C=>{if(C.button!==0||!C.currentTarget.contains(C.target))return;if(Qu(C.currentTarget)&&C.preventDefault(),m.ignoreEmulatedMouseEvents){C.stopPropagation();return}m.isPressed=!0,m.isOverTarget=!0,m.target=C.currentTarget,m.pointerType=ns(C.nativeEvent)?"virtual":"mouse",!s&&!l&&St(C.currentTarget),g(C,m.pointerType)&&C.stopPropagation(),w(Er(C.currentTarget),"mouseup",E,!1)},L.onMouseEnter=C=>{if(!C.currentTarget.contains(C.target))return;let $=!0;m.isPressed&&!m.ignoreEmulatedMouseEvents&&(m.isOverTarget=!0,$=g(C,m.pointerType)),$&&C.stopPropagation()},L.onMouseLeave=C=>{if(!C.currentTarget.contains(C.target))return;let $=!0;m.isPressed&&!m.ignoreEmulatedMouseEvents&&(m.isOverTarget=!1,$=v(C,m.pointerType,!1),A(C)),$&&C.stopPropagation()},L.onMouseUp=C=>{C.currentTarget.contains(C.target)&&!m.ignoreEmulatedMouseEvents&&C.button===0&&S(C,m.pointerType||"mouse")};let E=C=>{if(C.button===0){if(m.isPressed=!1,x(),m.ignoreEmulatedMouseEvents){m.ignoreEmulatedMouseEvents=!1;return}m.target&&(ro(C,m.target)?v(fn(m.target,C),m.pointerType):m.isOverTarget&&v(fn(m.target,C),m.pointerType,!1),m.isOverTarget=!1)}};L.onTouchStart=C=>{if(!C.currentTarget.contains(C.target))return;let $=L5(C.nativeEvent);if(!$)return;m.activePointerId=$.identifier,m.ignoreEmulatedMouseEvents=!0,m.isOverTarget=!0,m.isPressed=!0,m.target=C.currentTarget,m.pointerType="touch",!s&&!l&&St(C.currentTarget),c||Wm(m.target),g(C,m.pointerType)&&C.stopPropagation(),w(Ad(C.currentTarget),"scroll",N,!0)},L.onTouchMove=C=>{if(!C.currentTarget.contains(C.target))return;if(!m.isPressed){C.stopPropagation();return}let $=Hm(C.nativeEvent,m.activePointerId),R=!0;$&&ro($,C.currentTarget)?m.isOverTarget||(m.isOverTarget=!0,R=g(C,m.pointerType)):m.isOverTarget&&(m.isOverTarget=!1,R=v(C,m.pointerType,!1),A(C)),R&&C.stopPropagation()},L.onTouchEnd=C=>{if(!C.currentTarget.contains(C.target))return;if(!m.isPressed){C.stopPropagation();return}let $=Hm(C.nativeEvent,m.activePointerId),R=!0;$&&ro($,C.currentTarget)?(S(C,m.pointerType),R=v(C,m.pointerType)):m.isOverTarget&&(R=v(C,m.pointerType,!1)),R&&C.stopPropagation(),m.isPressed=!1,m.activePointerId=null,m.isOverTarget=!1,m.ignoreEmulatedMouseEvents=!0,!c&&m.target&&ra(m.target),x()},L.onTouchCancel=C=>{C.currentTarget.contains(C.target)&&(C.stopPropagation(),m.isPressed&&k(C))};let N=C=>{m.isPressed&&C.target.contains(m.target)&&k({currentTarget:m.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};L.onDragStart=C=>{C.currentTarget.contains(C.target)&&k(C)}}return L},[w,s,l,x,c,k,A,v,g,S]);return h.useEffect(()=>()=>{!c&&b.current.target&&ra(b.current.target)},[c]),{isPressed:a||p,pressProps:Y(f,D)}}function dp(e){return e.tagName==="A"&&e.hasAttribute("href")}function Xu(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof Ad(o).HTMLInputElement&&!v1(o,n)||o instanceof Ad(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&dp(o))&&n!=="Enter")}function L5(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Hm(e,t){const n=e.changedTouches;for(let r=0;rt.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function ro(e,t){let n=t.getBoundingClientRect(),r=D5(e);return N5(n,r)}function Qu(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function Gm(e,t){return e instanceof HTMLInputElement?!v1(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!dp(e)}var I5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function v1(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":I5.has(e.type)}var R5=e=>P.jsx("svg",{"aria-hidden":"true",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...e,children:P.jsx("path",{d:"M12 2a10 10 0 1010 10A10.016 10.016 0 0012 2zm3.36 12.3a.754.754 0 010 1.06.748.748 0 01-1.06 0l-2.3-2.3-2.3 2.3a.748.748 0 01-1.06 0 .754.754 0 010-1.06l2.3-2.3-2.3-2.3A.75.75 0 019.7 8.64l2.3 2.3 2.3-2.3a.75.75 0 011.06 1.06l-2.3 2.3z",fill:"currentColor"})}),F5=e=>P.jsx("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",width:"1em",...e,children:P.jsx("path",{d:"M18 6L6 18M6 6l12 12"})}),O5=({strokeWidth:e=1.5,...t})=>P.jsx("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:e,viewBox:"0 0 24 24",width:"1em",...t,children:P.jsx("path",{d:"m6 9 6 6 6-6"})});const y1=h.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Xl=h.createContext({}),Ql=h.createContext(null),Zl=typeof document<"u",fp=Zl?h.useLayoutEffect:h.useEffect,b1=h.createContext({strict:!1}),pp=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),j5="framerAppearId",x1="data-"+pp(j5);function _5(e,t,n,r){const{visualElement:o}=h.useContext(Xl),i=h.useContext(b1),s=h.useContext(Ql),a=h.useContext(y1).reducedMotion,l=h.useRef();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;h.useInsertionEffect(()=>{u&&u.update(n,s)});const c=h.useRef(!!(n[x1]&&!window.HandoffComplete));return fp(()=>{u&&(u.render(),c.current&&u.animationState&&u.animationState.animateChanges())}),h.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),u}function So(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function B5(e,t,n){return h.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):So(n)&&(n.current=r))},[t])}function rs(e){return typeof e=="string"||Array.isArray(e)}function ql(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const hp=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],mp=["initial",...hp];function Jl(e){return ql(e.animate)||mp.some(t=>rs(e[t]))}function w1(e){return!!(Jl(e)||e.variants)}function V5(e,t){if(Jl(e)){const{initial:n,animate:r}=e;return{initial:n===!1||rs(n)?n:void 0,animate:rs(r)?r:void 0}}return e.inherit!==!1?t:{}}function K5(e){const{initial:t,animate:n}=V5(e,h.useContext(Xl));return h.useMemo(()=>({initial:t,animate:n}),[Ym(t),Ym(n)])}function Ym(e){return Array.isArray(e)?e.join(" "):e}const Xm={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},os={};for(const e in Xm)os[e]={isEnabled:t=>Xm[e].some(n=>!!t[n])};function z5(e){for(const t in e)os[t]={...os[t],...e[t]}}const gp=h.createContext({}),C1=h.createContext({}),W5=Symbol.for("motionComponentSymbol");function U5({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&z5(e);function i(a,l){let u;const c={...h.useContext(y1),...a,layoutId:H5(a)},{isStatic:d}=c,f=K5(a),p=r(a,d);if(!d&&Zl){f.visualElement=_5(o,p,c,t);const y=h.useContext(C1),b=h.useContext(b1).strict;f.visualElement&&(u=f.visualElement.loadFeatures(c,b,e,y))}return h.createElement(Xl.Provider,{value:f},u&&f.visualElement?h.createElement(u,{visualElement:f.visualElement,...c}):null,n(o,a,B5(p,f.visualElement,l),p,d,f.visualElement))}const s=h.forwardRef(i);return s[W5]=o,s}function H5({layoutId:e}){const t=h.useContext(gp).id;return t&&e!==void 0?t+"-"+e:e}function G5(e){function t(r,o={}){return U5(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const Y5=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function vp(e){return typeof e!="string"||e.includes("-")?!1:!!(Y5.indexOf(e)>-1||/[A-Z]/.test(e))}const vl={};function X5(e){Object.assign(vl,e)}const Ss=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Hr=new Set(Ss);function S1(e,{layout:t,layoutId:n}){return Hr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!vl[e]||e==="opacity")}const yt=e=>!!(e&&e.getVelocity),Q5={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Z5=Ss.length;function q5(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let s=0;st=>typeof t=="string"&&t.startsWith(e),$1=P1("--"),Ld=P1("var(--"),J5=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,eE=(e,t)=>t&&typeof e=="number"?t.transform(e):e,ar=(e,t,n)=>Math.min(Math.max(n,e),t),Gr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ri={...Gr,transform:e=>ar(0,1,e)},oa={...Gr,default:1},Fi=e=>Math.round(e*1e5)/1e5,eu=/(-)?([\d]*\.?[\d])+/g,E1=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,tE=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Ps(e){return typeof e=="string"}const $s=e=>({test:t=>Ps(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),In=$s("deg"),on=$s("%"),te=$s("px"),nE=$s("vh"),rE=$s("vw"),Qm={...on,parse:e=>on.parse(e)/100,transform:e=>on.transform(e*100)},Zm={...Gr,transform:Math.round},k1={borderWidth:te,borderTopWidth:te,borderRightWidth:te,borderBottomWidth:te,borderLeftWidth:te,borderRadius:te,radius:te,borderTopLeftRadius:te,borderTopRightRadius:te,borderBottomRightRadius:te,borderBottomLeftRadius:te,width:te,maxWidth:te,height:te,maxHeight:te,size:te,top:te,right:te,bottom:te,left:te,padding:te,paddingTop:te,paddingRight:te,paddingBottom:te,paddingLeft:te,margin:te,marginTop:te,marginRight:te,marginBottom:te,marginLeft:te,rotate:In,rotateX:In,rotateY:In,rotateZ:In,scale:oa,scaleX:oa,scaleY:oa,scaleZ:oa,skew:In,skewX:In,skewY:In,distance:te,translateX:te,translateY:te,translateZ:te,x:te,y:te,z:te,perspective:te,transformPerspective:te,opacity:Ri,originX:Qm,originY:Qm,originZ:te,zIndex:Zm,fillOpacity:Ri,strokeOpacity:Ri,numOctaves:Zm};function yp(e,t,n,r){const{style:o,vars:i,transform:s,transformOrigin:a}=e;let l=!1,u=!1,c=!0;for(const d in t){const f=t[d];if($1(d)){i[d]=f;continue}const p=k1[d],y=eE(f,p);if(Hr.has(d)){if(l=!0,s[d]=y,!c)continue;f!==(p.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,a[d]=y):o[d]=y}if(t.transform||(l||r?o.transform=q5(e.transform,n,c,r):o.transform&&(o.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:p=0}=a;o.transformOrigin=`${d} ${f} ${p}`}}const bp=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function T1(e,t,n){for(const r in t)!yt(t[r])&&!S1(r,n)&&(e[r]=t[r])}function oE({transformTemplate:e},t,n){return h.useMemo(()=>{const r=bp();return yp(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function iE(e,t,n){const r=e.style||{},o={};return T1(o,r,e),Object.assign(o,oE(e,t,n)),e.transformValues?e.transformValues(o):o}function sE(e,t,n){const r={},o=iE(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const aE=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function yl(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||aE.has(e)}let A1=e=>!yl(e);function lE(e){e&&(A1=t=>t.startsWith("on")?!yl(t):e(t))}try{lE(require("@emotion/is-prop-valid").default)}catch{}function uE(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(A1(o)||n===!0&&yl(o)||!t&&!yl(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function qm(e,t,n){return typeof e=="string"?e:te.transform(t+n*e)}function cE(e,t,n){const r=qm(t,e.x,e.width),o=qm(n,e.y,e.height);return`${r} ${o}`}const dE={offset:"stroke-dashoffset",array:"stroke-dasharray"},fE={offset:"strokeDashoffset",array:"strokeDasharray"};function pE(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?dE:fE;e[i.offset]=te.transform(-r);const s=te.transform(t),a=te.transform(n);e[i.array]=`${s} ${a}`}function xp(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d,f){if(yp(e,u,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:y,dimensions:b}=e;p.transform&&(b&&(y.transform=p.transform),delete p.transform),b&&(o!==void 0||i!==void 0||y.transform)&&(y.transformOrigin=cE(b,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),s!==void 0&&pE(p,s,a,l,!1)}const M1=()=>({...bp(),attrs:{}}),wp=e=>typeof e=="string"&&e.toLowerCase()==="svg";function hE(e,t,n,r){const o=h.useMemo(()=>{const i=M1();return xp(i,t,{enableHardwareAcceleration:!1},wp(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};T1(i,e.style,e),o.style={...i,...o.style}}return o}function mE(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(vp(n)?hE:sE)(r,i,s,n),c={...uE(r,typeof n=="string",e),...l,ref:o},{children:d}=r,f=h.useMemo(()=>yt(d)?d.get():d,[d]);return h.createElement(n,{...c,children:f})}}function L1(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const D1=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function N1(e,t,n,r){L1(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(D1.has(o)?o:pp(o),t.attrs[o])}function Cp(e,t){const{style:n}=e,r={};for(const o in n)(yt(n[o])||t.style&&yt(t.style[o])||S1(o,e))&&(r[o]=n[o]);return r}function I1(e,t){const n=Cp(e,t);for(const r in e)if(yt(e[r])||yt(t[r])){const o=Ss.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[o]=e[r]}return n}function Sp(e,t,n,r={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),t}function R1(e){const t=h.useRef(null);return t.current===null&&(t.current=e()),t.current}const bl=e=>Array.isArray(e),gE=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),vE=e=>bl(e)?e[e.length-1]||0:e;function ka(e){const t=yt(e)?e.get():e;return gE(t)?t.toValue():t}function yE({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:bE(r,o,i,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const F1=e=>(t,n)=>{const r=h.useContext(Xl),o=h.useContext(Ql),i=()=>yE(e,t,r,o);return n?i():R1(i)};function bE(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=ka(i[f]);let{initial:s,animate:a}=e;const l=Jl(e),u=w1(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?a:s;return d&&typeof d!="boolean"&&!ql(d)&&(Array.isArray(d)?d:[d]).forEach(p=>{const y=Sp(e,p);if(!y)return;const{transitionEnd:b,transition:w,...x}=y;for(const g in x){let v=x[g];if(Array.isArray(v)){const S=c?v.length-1:0;v=v[S]}v!==null&&(o[g]=v)}for(const g in b)o[g]=b[g]}),o}const Ne=e=>e;class Jm{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function xE(e){let t=new Jm,n=new Jm,r=0,o=!1,i=!1;const s=new WeakSet,a={schedule:(l,u=!1,c=!1)=>{const d=c&&o,f=d?t:n;return u&&s.add(l),f.add(l)&&d&&o&&(r=t.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u(d[f]=xE(()=>n=!0),d),{}),s=d=>i[d].process(o),a=()=>{const d=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(d-o.timestamp,wE),1),o.timestamp=d,o.isProcessing=!0,ia.forEach(s),o.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,o.isProcessing||e(a)};return{schedule:ia.reduce((d,f)=>{const p=i[f];return d[f]=(y,b=!1,w=!1)=>(n||l(),p.schedule(y,b,w)),d},{}),cancel:d=>ia.forEach(f=>i[f].cancel(d)),state:o,steps:i}}const{schedule:be,cancel:Mn,state:tt,steps:Zu}=CE(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ne,!0),SE={useVisualState:F1({scrapeMotionValuesFromProps:I1,createRenderState:M1,onMount:(e,t,{renderState:n,latestValues:r})=>{be.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),be.render(()=>{xp(n,r,{enableHardwareAcceleration:!1},wp(t.tagName),e.transformTemplate),N1(t,n)})}})},PE={useVisualState:F1({scrapeMotionValuesFromProps:Cp,createRenderState:bp})};function $E(e,{forwardMotionProps:t=!1},n,r){return{...vp(e)?SE:PE,preloadedFeatures:n,useRender:mE(t),createVisualElement:r,Component:e}}function wn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const O1=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function tu(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const EE=e=>t=>O1(t)&&e(t,tu(t));function Sn(e,t,n,r){return wn(e,t,EE(n),r)}const kE=(e,t)=>n=>t(e(n)),Jn=(...e)=>e.reduce(kE);function j1(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const eg=j1("dragHorizontal"),tg=j1("dragVertical");function _1(e){let t=!1;if(e==="y")t=tg();else if(e==="x")t=eg();else{const n=eg(),r=tg();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function B1(){const e=_1(!0);return e?(e(),!1):!0}class gr{constructor(t){this.isMounted=!1,this.node=t}update(){}}function ng(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),o=(i,s)=>{if(i.pointerType==="touch"||B1())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[r]&&be.update(()=>a[r](i,s))};return Sn(e.current,n,o,{passive:!e.getProps()[r]})}class TE extends gr{mount(){this.unmount=Jn(ng(this.node,!0),ng(this.node,!1))}unmount(){}}class AE extends gr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Jn(wn(this.node.current,"focus",()=>this.onFocus()),wn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const V1=(e,t)=>t?e===t?!0:V1(e,t.parentElement):!1;function qu(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,tu(n))}class ME extends gr{constructor(){super(...arguments),this.removeStartListeners=Ne,this.removeEndListeners=Ne,this.removeAccessibleListeners=Ne,this.startPointerPress=(t,n)=>{if(this.removeEndListeners(),this.isPressing)return;const r=this.node.getProps(),i=Sn(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c}=this.node.getProps();be.update(()=>{V1(this.node.current,a.target)?u&&u(a,l):c&&c(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=Sn(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Jn(i,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||qu("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&be.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=wn(this.node.current,"keyup",s),qu("down",(a,l)=>{this.startPress(a,l)})},n=wn(this.node.current,"keydown",t),r=()=>{this.isPressing&&qu("cancel",(i,s)=>this.cancelPress(i,s))},o=wn(this.node.current,"blur",r);this.removeAccessibleListeners=Jn(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&be.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!B1()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&be.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Sn(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=wn(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Jn(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Dd=new WeakMap,Ju=new WeakMap,LE=e=>{const t=Dd.get(e.target);t&&t(e)},DE=e=>{e.forEach(LE)};function NE({root:e,...t}){const n=e||document;Ju.has(n)||Ju.set(n,{});const r=Ju.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(DE,{root:e,...t})),r[o]}function IE(e,t,n){const r=NE(t);return Dd.set(e,n),r.observe(e),()=>{Dd.delete(e),r.unobserve(e)}}const RE={some:0,all:1};class FE extends gr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:RE[o]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return IE(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(OE(t,n))&&this.startObserver()}unmount(){}}function OE({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const jE={inView:{Feature:FE},tap:{Feature:ME},focus:{Feature:AE},hover:{Feature:TE}};function K1(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rt[r]=n.get()),t}function BE(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function nu(e,t,n){const r=e.getProps();return Sp(r,t,n!==void 0?n:r.custom,_E(e),BE(e))}let VE=Ne,Pp=Ne;const er=e=>e*1e3,Pn=e=>e/1e3,KE={current:!1},z1=e=>Array.isArray(e)&&typeof e[0]=="number";function W1(e){return!!(!e||typeof e=="string"&&U1[e]||z1(e)||Array.isArray(e)&&e.every(W1))}const Pi=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,U1={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Pi([0,.65,.55,1]),circOut:Pi([.55,0,1,.45]),backIn:Pi([.31,.01,.66,-.59]),backOut:Pi([.33,1.53,.69,.99])};function H1(e){if(e)return z1(e)?Pi(e):Array.isArray(e)?e.map(H1):U1[e]}function zE(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=H1(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}function WE(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const G1=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,UE=1e-7,HE=12;function GE(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=G1(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>UE&&++aGE(i,0,1,e,n);return i=>i===0||i===1?i:G1(o(i),t,r)}const YE=Es(.42,0,1,1),XE=Es(0,0,.58,1),Y1=Es(.42,0,.58,1),QE=e=>Array.isArray(e)&&typeof e[0]!="number",X1=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Q1=e=>t=>1-e(1-t),$p=e=>1-Math.sin(Math.acos(e)),Z1=Q1($p),ZE=X1($p),q1=Es(.33,1.53,.69,.99),Ep=Q1(q1),qE=X1(Ep),JE=e=>(e*=2)<1?.5*Ep(e):.5*(2-Math.pow(2,-10*(e-1))),ek={linear:Ne,easeIn:YE,easeInOut:Y1,easeOut:XE,circIn:$p,circInOut:ZE,circOut:Z1,backIn:Ep,backInOut:qE,backOut:q1,anticipate:JE},rg=e=>{if(Array.isArray(e)){Pp(e.length===4);const[t,n,r,o]=e;return Es(t,n,r,o)}else if(typeof e=="string")return ek[e];return e},kp=(e,t)=>n=>!!(Ps(n)&&tE.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),J1=(e,t,n)=>r=>{if(!Ps(r))return r;const[o,i,s,a]=r.match(eu);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},tk=e=>ar(0,255,e),ec={...Gr,transform:e=>Math.round(tk(e))},Dr={test:kp("rgb","red"),parse:J1("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ec.transform(e)+", "+ec.transform(t)+", "+ec.transform(n)+", "+Fi(Ri.transform(r))+")"};function nk(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Nd={test:kp("#"),parse:nk,transform:Dr.transform},Po={test:kp("hsl","hue"),parse:J1("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+on.transform(Fi(t))+", "+on.transform(Fi(n))+", "+Fi(Ri.transform(r))+")"},st={test:e=>Dr.test(e)||Nd.test(e)||Po.test(e),parse:e=>Dr.test(e)?Dr.parse(e):Po.test(e)?Po.parse(e):Nd.parse(e),transform:e=>Ps(e)?e:e.hasOwnProperty("red")?Dr.transform(e):Po.transform(e)},ke=(e,t,n)=>-n*e+n*t+e;function tc(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function rk({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=tc(l,a,e+1/3),i=tc(l,a,e),s=tc(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}const nc=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},ok=[Nd,Dr,Po],ik=e=>ok.find(t=>t.test(e));function og(e){const t=ik(e);let n=t.parse(e);return t===Po&&(n=rk(n)),n}const ex=(e,t)=>{const n=og(e),r=og(t),o={...n};return i=>(o.red=nc(n.red,r.red,i),o.green=nc(n.green,r.green,i),o.blue=nc(n.blue,r.blue,i),o.alpha=ke(n.alpha,r.alpha,i),Dr.transform(o))};function sk(e){var t,n;return isNaN(e)&&Ps(e)&&(((t=e.match(eu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(E1))===null||n===void 0?void 0:n.length)||0)>0}const tx={regex:J5,countKey:"Vars",token:"${v}",parse:Ne},nx={regex:E1,countKey:"Colors",token:"${c}",parse:st.parse},rx={regex:eu,countKey:"Numbers",token:"${n}",parse:Gr.parse};function rc(e,{regex:t,countKey:n,token:r,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+n]=i.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...i.map(o)))}function xl(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&rc(n,tx),rc(n,nx),rc(n,rx),n}function ox(e){return xl(e).values}function ix(e){const{values:t,numColors:n,numVars:r,tokenised:o}=xl(e),i=t.length;return s=>{let a=o;for(let l=0;ltypeof e=="number"?0:e;function lk(e){const t=ox(e);return ix(e)(t.map(ak))}const lr={test:sk,parse:ox,createTransformer:ix,getAnimatableNone:lk},sx=(e,t)=>n=>`${n>0?t:e}`;function ax(e,t){return typeof e=="number"?n=>ke(e,t,n):st.test(e)?ex(e,t):e.startsWith("var(")?sx(e,t):ux(e,t)}const lx=(e,t)=>{const n=[...e],r=n.length,o=e.map((i,s)=>ax(i,t[s]));return i=>{for(let s=0;s{const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=ax(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}},ux=(e,t)=>{const n=lr.createTransformer(t),r=xl(e),o=xl(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?Jn(lx(r.values,o.values),n):sx(e,t)},is=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},ig=(e,t)=>n=>ke(e,t,n);function ck(e){return typeof e=="number"?ig:typeof e=="string"?st.test(e)?ex:ux:Array.isArray(e)?lx:typeof e=="object"?uk:ig}function dk(e,t,n){const r=[],o=n||ck(e[0]),i=e.length-1;for(let s=0;st[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=dk(t,r,o),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(ar(e[0],e[i-1],u)):l}function fk(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=is(0,t,r);e.push(ke(n,1,o))}}function pk(e){const t=[0];return fk(t,e.length-1),t}function hk(e,t){return e.map(n=>n*t)}function mk(e,t){return e.map(()=>t||Y1).splice(0,e.length-1)}function wl({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=QE(r)?r.map(rg):rg(r),i={done:!1,value:t[0]},s=hk(n&&n.length===t.length?n:pk(t),e),a=cx(s,t,{ease:Array.isArray(o)?o:mk(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}function dx(e,t){return t?e*(1e3/t):0}const gk=5;function fx(e,t,n){const r=Math.max(t-gk,0);return dx(n-e(r),t-r)}const oc=.001,vk=.01,sg=10,yk=.05,bk=1;function xk({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;VE(e<=er(sg));let s=1-t;s=ar(yk,bk,s),e=ar(vk,sg,Pn(e)),s<1?(o=u=>{const c=u*s,d=c*e,f=c-n,p=Id(u,s),y=Math.exp(-d);return oc-f/p*y},i=u=>{const d=u*s*e,f=d*n+n,p=Math.pow(s,2)*Math.pow(u,2)*e,y=Math.exp(-d),b=Id(Math.pow(u,2),s);return(-o(u)+oc>0?-1:1)*((f-p)*y)/b}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-oc+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=Ck(o,i,a);if(e=er(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const wk=12;function Ck(e,t,n){let r=n;for(let o=1;oe[n]!==void 0)}function $k(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!ag(e,Pk)&&ag(e,Sk)){const n=xk(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function px({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:l,mass:u,duration:c,velocity:d,isResolvedFromDuration:f}=$k({...r,velocity:-Pn(r.velocity||0)}),p=d||0,y=l/(2*Math.sqrt(a*u)),b=i-o,w=Pn(Math.sqrt(a/u)),x=Math.abs(b)<5;n||(n=x?.01:2),t||(t=x?.005:.5);let g;if(y<1){const v=Id(w,y);g=S=>{const k=Math.exp(-y*w*S);return i-k*((p+y*w*b)/v*Math.sin(v*S)+b*Math.cos(v*S))}}else if(y===1)g=v=>i-Math.exp(-w*v)*(b+(p+w*b)*v);else{const v=w*Math.sqrt(y*y-1);g=S=>{const k=Math.exp(-y*w*S),A=Math.min(v*S,300);return i-k*((p+y*w*b)*Math.sinh(A)+v*b*Math.cosh(A))/v}}return{calculatedDuration:f&&c||null,next:v=>{const S=g(v);if(f)s.done=v>=c;else{let k=p;v!==0&&(y<1?k=fx(g,v,S):k=0);const A=Math.abs(k)<=n,D=Math.abs(i-S)<=t;s.done=A&&D}return s.value=s.done?i:S,s}}}function lg({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},p=m=>a!==void 0&&ml,y=m=>a===void 0?l:l===void 0||Math.abs(a-m)-b*Math.exp(-m/r),v=m=>x+g(m),S=m=>{const L=g(m),M=v(m);f.done=Math.abs(L)<=u,f.value=f.done?x:M};let k,A;const D=m=>{p(f.value)&&(k=m,A=px({keyframes:[f.value,y(f.value)],velocity:fx(v,m,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return D(0),{calculatedDuration:null,next:m=>{let L=!1;return!A&&k===void 0&&(L=!0,S(m),D(m)),k!==void 0&&m>k?A.next(m-k):(!L&&S(m),f)}}}const Ek=e=>{const t=({timestamp:n})=>e(n);return{start:()=>be.update(t,!0),stop:()=>Mn(t),now:()=>tt.isProcessing?tt.timestamp:performance.now()}},ug=2e4;function cg(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=ug?1/0:t}const kk={decay:lg,inertia:lg,tween:wl,keyframes:wl,spring:px};function Cl({autoplay:e=!0,delay:t=0,driver:n=Ek,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...f}){let p=1,y=!1,b,w;const x=()=>{w=new Promise(T=>{b=T})};x();let g;const v=kk[o]||wl;let S;v!==wl&&typeof r[0]!="number"&&(S=cx([0,100],r,{clamp:!1}),r=[0,100]);const k=v({...f,keyframes:r});let A;a==="mirror"&&(A=v({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let D="idle",m=null,L=null,M=null;k.calculatedDuration===null&&i&&(k.calculatedDuration=cg(k));const{calculatedDuration:E}=k;let N=1/0,C=1/0;E!==null&&(N=E+s,C=N*(i+1)-s);let $=0;const R=T=>{if(L===null)return;p>0&&(L=Math.min(L,T)),p<0&&(L=Math.min(T-C/p,L)),m!==null?$=m:$=Math.round(T-L)*p;const O=$-t*(p>=0?1:-1),V=p>=0?O<0:O>C;$=Math.max(O,0),D==="finished"&&m===null&&($=C);let W=$,U=k;if(i){const Z=Math.min($,C)/N;let re=Math.floor(Z),ie=Z%1;!ie&&Z>=1&&(ie=1),ie===1&&re--,re=Math.min(re,i+1),!!(re%2)&&(a==="reverse"?(ie=1-ie,s&&(ie-=s/N)):a==="mirror"&&(U=A)),W=ar(0,1,ie)*N}const Q=V?{done:!1,value:r[0]}:U.next(W);S&&(Q.value=S(Q.value));let{done:K}=Q;!V&&E!==null&&(K=p>=0?$>=C:$<=0);const G=m===null&&(D==="finished"||D==="running"&&K);return d&&d(Q.value),G&&I(),Q},_=()=>{g&&g.stop(),g=void 0},j=()=>{D="idle",_(),b(),x(),L=M=null},I=()=>{D="finished",c&&c(),_(),b()},B=()=>{if(y)return;g||(g=n(R));const T=g.now();l&&l(),m!==null?L=T-m:(!L||D==="finished")&&(L=T),D==="finished"&&x(),M=L,m=null,D="running",g.start()};e&&B();const F={then(T,O){return w.then(T,O)},get time(){return Pn($)},set time(T){T=er(T),$=T,m!==null||!g||p===0?m=T:L=g.now()-T/p},get duration(){const T=k.calculatedDuration===null?cg(k):k.calculatedDuration;return Pn(T)},get speed(){return p},set speed(T){T===p||!g||(p=T,F.time=Pn($))},get state(){return D},play:B,pause:()=>{D="paused",m=$},stop:()=>{y=!0,D!=="idle"&&(D="idle",u&&u(),j())},cancel:()=>{M!==null&&R(M),j()},complete:()=>{D="finished"},sample:T=>(L=0,R(T))};return F}function Tk(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ak=Tk(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Mk=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),sa=10,Lk=2e4,Dk=(e,t)=>t.type==="spring"||e==="backgroundColor"||!W1(t.ease);function Nk(e,t,{onUpdate:n,onComplete:r,...o}){if(!(Ak()&&Mk.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let s=!1,a,l,u=!1;const c=()=>{l=new Promise(v=>{a=v})};c();let{keyframes:d,duration:f=300,ease:p,times:y}=o;if(Dk(t,o)){const v=Cl({...o,repeat:0,delay:0});let S={done:!1,value:d[0]};const k=[];let A=0;for(;!S.done&&A{u=!1,b.cancel()},x=()=>{u=!0,be.update(w),a(),c()};return b.onfinish=()=>{u||(e.set(WE(d,o)),r&&r(),x())},{then(v,S){return l.then(v,S)},attachTimeline(v){return b.timeline=v,b.onfinish=null,Ne},get time(){return Pn(b.currentTime||0)},set time(v){b.currentTime=er(v)},get speed(){return b.playbackRate},set speed(v){b.playbackRate=v},get duration(){return Pn(f)},play:()=>{s||(b.play(),Mn(w))},pause:()=>b.pause(),stop:()=>{if(s=!0,b.playState==="idle")return;const{currentTime:v}=b;if(v){const S=Cl({...o,autoplay:!1});e.setWithVelocity(S.sample(v-sa).value,S.sample(v).value,sa)}x()},complete:()=>{u||b.finish()},cancel:x}}function Ik({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:Ne,pause:Ne,stop:Ne,then:i=>(i(),Promise.resolve()),cancel:Ne,complete:Ne});return t?Cl({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const Rk={type:"spring",stiffness:500,damping:25,restSpeed:10},Fk=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Ok={type:"keyframes",duration:.8},jk={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},_k=(e,{keyframes:t})=>t.length>2?Ok:Hr.has(e)?e.startsWith("scale")?Fk(t[1]):Rk:jk,Rd=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(lr.test(t)||t==="0")&&!t.startsWith("url(")),Bk=new Set(["brightness","contrast","saturate","opacity"]);function Vk(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(eu)||[];if(!r)return e;const o=n.replace(r,"");let i=Bk.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Kk=/([a-z-]*)\(.*?\)/g,Fd={...lr,getAnimatableNone:e=>{const t=e.match(Kk);return t?t.map(Vk).join(" "):e}},zk={...k1,color:st,backgroundColor:st,outlineColor:st,fill:st,stroke:st,borderColor:st,borderTopColor:st,borderRightColor:st,borderBottomColor:st,borderLeftColor:st,filter:Fd,WebkitFilter:Fd},Tp=e=>zk[e];function hx(e,t){let n=Tp(e);return n!==Fd&&(n=lr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const mx=e=>/^0[^.\s]+$/.test(e);function Wk(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||mx(e)}function Uk(e,t,n,r){const o=Rd(t,n);let i;Array.isArray(n)?i=[...n]:i=[null,n];const s=r.from!==void 0?r.from:e.get();let a;const l=[];for(let u=0;uo=>{const i=Ap(r,e)||{},s=i.delay||r.delay||0;let{elapsed:a=0}=r;a=a-er(s);const l=Uk(t,e,n,i),u=l[0],c=l[l.length-1],d=Rd(e,u),f=Rd(e,c);let p={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-a,onUpdate:y=>{t.set(y),i.onUpdate&&i.onUpdate(y)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(Hk(i)||(p={...p,..._k(e,p)}),p.duration&&(p.duration=er(p.duration)),p.repeatDelay&&(p.repeatDelay=er(p.repeatDelay)),!d||!f||KE.current||i.type===!1||Gk.skipAnimations)return Ik(p);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const y=Nk(t,e,p);if(y)return y}return Cl(p)};function Sl(e){return!!(yt(e)&&e.add)}const gx=e=>/^\-?\d*\.?\d+$/.test(e);function Lp(e,t){e.indexOf(t)===-1&&e.push(t)}function Dp(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Np{constructor(){this.subscriptions=[]}add(t){return Lp(this.subscriptions,t),()=>Dp(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class Xk{constructor(t,n={}){this.version="10.17.9",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,o=!0)=>{this.prev=this.current,this.current=r;const{delta:i,timestamp:s}=tt;this.lastUpdated!==s&&(this.timeDelta=i,this.lastUpdated=s,be.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>be.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=Yk(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Np);const r=this.events[t].add(n);return t==="change"?()=>{r(),be.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?dx(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function zo(e,t){return new Xk(e,t)}const vx=e=>t=>t.test(e),Qk={test:e=>e==="auto",parse:e=>e},yx=[Gr,te,on,In,rE,nE,Qk],pi=e=>yx.find(vx(e)),Zk=[...yx,st,lr],qk=e=>Zk.find(vx(e));function Jk(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,zo(n))}function e6(e,t){const n=nu(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const s in i){const a=vE(i[s]);Jk(e,s,a)}}function t6(e,t,n){var r,o;const i=Object.keys(t).filter(a=>!e.hasValue(a)),s=i.length;if(s)for(let a=0;al.remove(d))),u.push(w)}return s&&Promise.all(u).then(()=>{s&&e6(e,s)}),u}function Od(e,t,n={}){const r=nu(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(bx(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=o;return s6(e,t,u+l,c,d,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,u]=a==="beforeChildren"?[i,s]:[s,i];return l().then(()=>u())}else return Promise.all([i(),s(n.delay)])}function s6(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=o===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(a6).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(Od(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function a6(e,t){return e.sortNodePosition(t)}function l6(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Od(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Od(e,t,n);else{const o=typeof t=="function"?nu(e,t,n.custom):t;r=Promise.all(bx(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}const u6=[...hp].reverse(),c6=hp.length;function d6(e){return t=>Promise.all(t.map(({animation:n,options:r})=>l6(e,n,r)))}function f6(e){let t=d6(e);const n=h6();let r=!0;const o=(l,u)=>{const c=nu(e,u);if(c){const{transition:d,transitionEnd:f,...p}=c;l={...l,...p,...f}}return l};function i(l){t=l(e)}function s(l,u){const c=e.getProps(),d=e.getVariantContext(!0)||{},f=[],p=new Set;let y={},b=1/0;for(let x=0;xb&&k,M=!1;const E=Array.isArray(S)?S:[S];let N=E.reduce(o,{});A===!1&&(N={});const{prevResolvedValues:C={}}=v,$={...C,...N},R=_=>{L=!0,p.has(_)&&(M=!0,p.delete(_)),v.needsAnimating[_]=!0};for(const _ in $){const j=N[_],I=C[_];if(y.hasOwnProperty(_))continue;let B=!1;bl(j)&&bl(I)?B=!K1(j,I):B=j!==I,B?j!==void 0?R(_):p.add(_):j!==void 0&&p.has(_)?R(_):v.protectedKeys[_]=!0}v.prevProp=S,v.prevResolvedValues=N,v.isActive&&(y={...y,...N}),r&&e.blockInitialAnimation&&(L=!1),L&&(!D||M)&&f.push(...E.map(_=>({animation:_,options:{type:g,...l}})))}if(p.size){const x={};p.forEach(g=>{const v=e.getBaseTarget(g);v!==void 0&&(x[g]=v)}),f.push({animation:x})}let w=!!f.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(w=!1),r=!1,w?t(f):Promise.resolve()}function a(l,u,c){var d;if(n[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(p=>{var y;return(y=p.animationState)===null||y===void 0?void 0:y.setActive(l,u)}),n[l].isActive=u;const f=s(c,l);for(const p in n)n[p].protectedKeys={};return f}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n}}function p6(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!K1(t,e):!1}function yr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function h6(){return{animate:yr(!0),whileInView:yr(),whileHover:yr(),whileTap:yr(),whileDrag:yr(),whileFocus:yr(),exit:yr()}}class m6 extends gr{constructor(t){super(t),t.animationState||(t.animationState=f6(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),ql(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let g6=0;class v6 extends gr{constructor(){super(...arguments),this.id=g6++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const i=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const y6={animation:{Feature:m6},exit:{Feature:v6}},dg=(e,t)=>Math.abs(e-t);function b6(e,t){const n=dg(e.x,t.x),r=dg(e.y,t.y);return Math.sqrt(n**2+r**2)}class xx{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=sc(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,p=b6(d.offset,{x:0,y:0})>=3;if(!f&&!p)return;const{point:y}=d,{timestamp:b}=tt;this.history.push({...y,timestamp:b});const{onStart:w,onMove:x}=this.handlers;f||(w&&w(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=ic(f,this.transformPagePoint),be.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:p,onSessionEnd:y,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=sc(d.type==="pointercancel"?this.lastMoveEventInfo:ic(f,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,w),y&&y(d,w)},!O1(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const s=tu(t),a=ic(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=tt;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,sc(a,this.history)),this.removeListeners=Jn(Sn(this.contextWindow,"pointermove",this.handlePointerMove),Sn(this.contextWindow,"pointerup",this.handlePointerUp),Sn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Mn(this.updatePoint)}}function ic(e,t){return t?{point:t(e.point)}:e}function fg(e,t){return{x:e.x-t.x,y:e.y-t.y}}function sc({point:e},t){return{point:e,delta:fg(e,wx(t)),offset:fg(e,x6(t)),velocity:w6(t,.1)}}function x6(e){return e[0]}function wx(e){return e[e.length-1]}function w6(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=wx(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>er(t)));)n--;if(!r)return{x:0,y:0};const i=Pn(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Et(e){return e.max-e.min}function jd(e,t=0,n=.01){return Math.abs(e-t)<=n}function pg(e,t,n,r=.5){e.origin=r,e.originPoint=ke(t.min,t.max,e.origin),e.scale=Et(n)/Et(t),(jd(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=ke(n.min,n.max,e.origin)-e.originPoint,(jd(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Oi(e,t,n,r){pg(e.x,t.x,n.x,r?r.originX:void 0),pg(e.y,t.y,n.y,r?r.originY:void 0)}function hg(e,t,n){e.min=n.min+t.min,e.max=e.min+Et(t)}function C6(e,t,n){hg(e.x,t.x,n.x),hg(e.y,t.y,n.y)}function mg(e,t,n){e.min=t.min-n.min,e.max=e.min+Et(t)}function ji(e,t,n){mg(e.x,t.x,n.x),mg(e.y,t.y,n.y)}function S6(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?ke(n,e,r.max):Math.min(e,n)),e}function gg(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function P6(e,{top:t,left:n,bottom:r,right:o}){return{x:gg(e.x,n,o),y:gg(e.y,t,r)}}function vg(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=is(t.min,t.max-r,e.min):r>o&&(n=is(e.min,e.max-o,t.min)),ar(0,1,n)}function k6(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const _d=.35;function T6(e=_d){return e===!1?e=0:e===!0&&(e=_d),{x:yg(e,"left","right"),y:yg(e,"top","bottom")}}function yg(e,t,n){return{min:bg(e,t),max:bg(e,n)}}function bg(e,t){return typeof e=="number"?e:e[t]||0}const xg=()=>({translate:0,scale:1,origin:0,originPoint:0}),$o=()=>({x:xg(),y:xg()}),wg=()=>({min:0,max:0}),Be=()=>({x:wg(),y:wg()});function It(e){return[e("x"),e("y")]}function Cx({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function A6({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function M6(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function ac(e){return e===void 0||e===1}function Bd({scale:e,scaleX:t,scaleY:n}){return!ac(e)||!ac(t)||!ac(n)}function Sr(e){return Bd(e)||Sx(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Sx(e){return Cg(e.x)||Cg(e.y)}function Cg(e){return e&&e!=="0%"}function Pl(e,t,n){const r=e-n,o=t*r;return n+o}function Sg(e,t,n,r,o){return o!==void 0&&(e=Pl(e,o,r)),Pl(e,n,r)+t}function Vd(e,t=0,n=1,r,o){e.min=Sg(e.min,t,n,r,o),e.max=Sg(e.max,t,n,r,o)}function Px(e,{x:t,y:n}){Vd(e.x,t.translate,t.scale,t.originPoint),Vd(e.y,n.translate,n.scale,n.originPoint)}function L6(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a1.0000000000001||e<.999999999999?e:1}function On(e,t){e.min=e.min+t,e.max=e.max+t}function $g(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,s=ke(e.min,e.max,i);Vd(e,t[n],t[r],s,t.scale)}const D6=["x","scaleX","originX"],N6=["y","scaleY","originY"];function Eo(e,t){$g(e.x,t,D6),$g(e.y,t,N6)}function $x(e,t){return Cx(M6(e.getBoundingClientRect(),t))}function I6(e,t,n){const r=$x(e,n),{scroll:o}=t;return o&&(On(r.x,o.offset.x),On(r.y,o.offset.y)),r}const Ex=({current:e})=>e?e.ownerDocument.defaultView:null,R6=new WeakMap;class F6{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Be(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(tu(c,"page").point)},i=(c,d)=>{const{drag:f,dragPropagation:p,onDragStart:y}=this.getProps();if(f&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=_1(f),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),It(w=>{let x=this.getAxisMotionValue(w).get()||0;if(on.test(x)){const{projection:g}=this.visualElement;if(g&&g.layout){const v=g.layout.layoutBox[w];v&&(x=Et(v)*(parseFloat(x)/100))}}this.originPoint[w]=x}),y&&be.update(()=>y(c,d),!1,!0);const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:f,dragDirectionLock:p,onDirectionLock:y,onDrag:b}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:w}=d;if(p&&this.currentDirection===null){this.currentDirection=O6(w),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",d.point,w),this.updateAxis("y",d.point,w),this.visualElement.render(),b&&b(c,d)},a=(c,d)=>this.stop(c,d),l=()=>It(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new xx(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Ex(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&be.update(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!aa(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=S6(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&So(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=P6(o.layoutBox,n):this.constraints=!1,this.elastic=T6(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&It(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=k6(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!So(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=I6(r,o.root,this.visualElement.getTransformPagePoint());let s=$6(o.layout.layoutBox,i);if(n){const a=n(A6(s));this.hasMutatedConstraints=!!a,a&&(s=Cx(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=It(c=>{if(!aa(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const f=o?200:1e6,p=o?40:1e7,y={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,y)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Mp(t,r,0,n))}stopAnimation(){It(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){It(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){It(n=>{const{drag:r}=this.getProps();if(!aa(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-ke(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!So(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};It(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();o[s]=E6({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),It(s=>{if(!aa(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(ke(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;R6.set(this.visualElement,this);const t=this.visualElement.current,n=Sn(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();So(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),r();const s=wn(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(It(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=_d,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function aa(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function O6(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class j6 extends gr{constructor(t){super(t),this.removeGroupControls=Ne,this.removeListeners=Ne,this.controls=new F6(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ne}unmount(){this.removeGroupControls(),this.removeListeners()}}const Eg=e=>(t,n)=>{e&&be.update(()=>e(t,n))};class _6 extends gr{constructor(){super(...arguments),this.removePointerDownListener=Ne}onPointerDown(t){this.session=new xx(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ex(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Eg(t),onStart:Eg(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&be.update(()=>o(i,s))}}}mount(){this.removePointerDownListener=Sn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function B6(){const e=h.useContext(Ql);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=h.useId();return h.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}const Ta={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function kg(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const hi={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(te.test(e))e=parseFloat(e);else return e;const n=kg(e,t.target.x),r=kg(e,t.target.y);return`${n}% ${r}%`}},V6={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=lr.parse(e);if(o.length>5)return r;const i=lr.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const u=ke(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),i(o)}};class K6 extends ee.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;X5(z6),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Ta.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||be.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function kx(e){const[t,n]=B6(),r=h.useContext(gp);return ee.createElement(K6,{...e,layoutGroup:r,switchLayoutGroup:h.useContext(C1),isPresent:t,safeToRemove:n})}const z6={borderRadius:{...hi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:hi,borderTopRightRadius:hi,borderBottomLeftRadius:hi,borderBottomRightRadius:hi,boxShadow:V6},Tx=["TopLeft","TopRight","BottomLeft","BottomRight"],W6=Tx.length,Tg=e=>typeof e=="string"?parseFloat(e):e,Ag=e=>typeof e=="number"||te.test(e);function U6(e,t,n,r,o,i){o?(e.opacity=ke(0,n.opacity!==void 0?n.opacity:1,H6(r)),e.opacityExit=ke(t.opacity!==void 0?t.opacity:1,0,G6(r))):i&&(e.opacity=ke(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(is(e,t,r))}function Lg(e,t){e.min=t.min,e.max=t.max}function Dt(e,t){Lg(e.x,t.x),Lg(e.y,t.y)}function Dg(e,t,n,r,o){return e-=t,e=Pl(e,1/n,r),o!==void 0&&(e=Pl(e,1/o,r)),e}function Y6(e,t=0,n=1,r=.5,o,i=e,s=e){if(on.test(t)&&(t=parseFloat(t),t=ke(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=ke(i.min,i.max,r);e===i&&(a-=t),e.min=Dg(e.min,t,n,a,o),e.max=Dg(e.max,t,n,a,o)}function Ng(e,t,[n,r,o],i,s){Y6(e,t[n],t[r],t[o],t.scale,i,s)}const X6=["x","scaleX","originX"],Q6=["y","scaleY","originY"];function Ig(e,t,n,r){Ng(e.x,t,X6,n?n.x:void 0,r?r.x:void 0),Ng(e.y,t,Q6,n?n.y:void 0,r?r.y:void 0)}function Rg(e){return e.translate===0&&e.scale===1}function Mx(e){return Rg(e.x)&&Rg(e.y)}function Z6(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Lx(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Fg(e){return Et(e.x)/Et(e.y)}class q6{constructor(){this.members=[]}add(t){Lp(this.members,t),t.scheduleRender()}remove(t){if(Dp(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Og(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:u,rotateY:c}=n;l&&(r+=`rotate(${l}deg) `),u&&(r+=`rotateX(${u}deg) `),c&&(r+=`rotateY(${c}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(r+=`scale(${s}, ${a})`),r||"none"}const J6=(e,t)=>e.depth-t.depth;class eT{constructor(){this.children=[],this.isDirty=!1}add(t){Lp(this.children,t),this.isDirty=!0}remove(t){Dp(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(J6),this.isDirty=!1,this.children.forEach(t)}}function tT(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Mn(r),e(i-t))};return be.read(r,!0),()=>Mn(r)}function nT(e){window.MotionDebug&&window.MotionDebug.record(e)}function rT(e){return e instanceof SVGElement&&e.tagName!=="svg"}function oT(e,t,n){const r=yt(e)?e:zo(e);return r.start(Mp("",r,t,n)),r.animation}const jg=["","X","Y","Z"],iT={visibility:"hidden"},_g=1e3;let sT=0;const Pr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Dx({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=sT++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Pr.totalNodes=Pr.resolvedTargetDeltas=Pr.recalculatedProjection=0,this.nodes.forEach(uT),this.nodes.forEach(hT),this.nodes.forEach(mT),this.nodes.forEach(cT),nT(Pr)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=tT(f,250),Ta.hasAnimatedSinceResize&&(Ta.hasAnimatedSinceResize=!1,this.nodes.forEach(Vg))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:p,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||c.getDefaultTransition()||xT,{onLayoutAnimationStart:w,onLayoutAnimationComplete:x}=c.getProps(),g=!this.targetLayout||!Lx(this.targetLayout,y)||p,v=!f&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||f&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,v);const S={...Ap(b,"layout"),onPlay:w,onComplete:x};(c.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else f||Vg(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Mn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(gT),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(dT),this.sharedNodes.forEach(vT)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,be.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){be.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const k=S/1e3;Kg(d.x,s.x,k),Kg(d.y,s.y,k),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ji(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),yT(this.relativeTarget,this.relativeTargetOrigin,f,k),v&&Z6(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=Be()),Dt(v,this.relativeTarget)),b&&(this.animationValues=c,U6(c,u,this.latestValues,k,g,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Mn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=be.update(()=>{Ta.hasAnimatedSinceResize=!0,this.currentAnimation=oT(0,_g,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(_g),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&Nx(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Be();const d=Et(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=Et(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Dt(a,l),Eo(a,c),Oi(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new q6),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const u={};for(let c=0;c{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Bg),this.root.sharedNodes.clear()}}}function aT(e){e.updateLayout()}function lT(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;i==="size"?It(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],p=Et(f);f.min=r[d].min,f.max=f.min+p}):Nx(i,n.layoutBox,r)&&It(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],p=Et(r[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const a=$o();Oi(a,r,n.layoutBox);const l=$o();s?Oi(l,e.applyTransform(o,!0),n.measuredBox):Oi(l,r,n.layoutBox);const u=!Mx(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const y=Be();ji(y,n.layoutBox,f.layoutBox);const b=Be();ji(b,r,p.layoutBox),Lx(y,b)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=y,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function uT(e){Pr.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function cT(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function dT(e){e.clearSnapshot()}function Bg(e){e.clearMeasurements()}function fT(e){e.isLayoutDirty=!1}function pT(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Vg(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function hT(e){e.resolveTargetDelta()}function mT(e){e.calcProjection()}function gT(e){e.resetRotation()}function vT(e){e.removeLeadSnapshot()}function Kg(e,t,n){e.translate=ke(t.translate,0,n),e.scale=ke(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function zg(e,t,n,r){e.min=ke(t.min,n.min,r),e.max=ke(t.max,n.max,r)}function yT(e,t,n,r){zg(e.x,t.x,n.x,r),zg(e.y,t.y,n.y,r)}function bT(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const xT={duration:.45,ease:[.4,0,.1,1]},Wg=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),Ug=Wg("applewebkit/")&&!Wg("chrome/")?Math.round:Ne;function Hg(e){e.min=Ug(e.min),e.max=Ug(e.max)}function wT(e){Hg(e.x),Hg(e.y)}function Nx(e,t,n){return e==="position"||e==="preserve-aspect"&&!jd(Fg(t),Fg(n),.2)}const CT=Dx({attachResizeListener:(e,t)=>wn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),lc={current:void 0},Ix=Dx({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!lc.current){const e=new CT({});e.mount(window),e.setOptions({layoutScroll:!0}),lc.current=e}return lc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),ST={pan:{Feature:_6},drag:{Feature:j6,ProjectionNode:Ix,MeasureLayout:kx}},PT=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function $T(e){const t=PT.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function Kd(e,t,n=1){const[r,o]=$T(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return gx(s)?parseFloat(s):s}else return Ld(o)?Kd(o,t,n+1):o}function ET(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(o=>{const i=o.get();if(!Ld(i))return;const s=Kd(i,r);s&&o.set(s)});for(const o in t){const i=t[o];if(!Ld(i))continue;const s=Kd(i,r);s&&(t[o]=s,n||(n={}),n[o]===void 0&&(n[o]=i))}return{target:t,transitionEnd:n}}const kT=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Rx=e=>kT.has(e),TT=e=>Object.keys(e).some(Rx),Gg=e=>e===Gr||e===te,Yg=(e,t)=>parseFloat(e.split(", ")[t]),Xg=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Yg(o[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?Yg(i[1],e):0}},AT=new Set(["x","y","z"]),MT=Ss.filter(e=>!AT.has(e));function LT(e){const t=[];return MT.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Wo={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Xg(4,13),y:Xg(5,14)};Wo.translateX=Wo.x;Wo.translateY=Wo.y;const DT=(e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:s}=i,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{a[u]=Wo[u](r,i)}),t.render();const l=t.measureViewportBox();return n.forEach(u=>{const c=t.getValue(u);c&&c.jump(a[u]),e[u]=Wo[u](l,i)}),e},NT=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(Rx);let i=[],s=!1;const a=[];if(o.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let c=n[l],d=pi(c);const f=t[l];let p;if(bl(f)){const y=f.length,b=f[0]===null?1:0;c=f[b],d=pi(c);for(let w=b;w=0?window.pageYOffset:null,u=DT(t,e,a);return i.length&&i.forEach(([c,d])=>{e.getValue(c).set(d)}),e.render(),Zl&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function IT(e,t,n,r){return TT(t)?NT(e,t,n,r):{target:t,transitionEnd:r}}const RT=(e,t,n,r)=>{const o=ET(e,t,r);return t=o.target,r=o.transitionEnd,IT(e,t,n,r)},zd={current:null},Fx={current:!1};function FT(){if(Fx.current=!0,!!Zl)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>zd.current=e.matches;e.addListener(t),t()}else zd.current=!1}function OT(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],s=n[o];if(yt(i))e.addValue(o,i),Sl(r)&&r.add(o);else if(yt(s))e.addValue(o,zo(i,{owner:e})),Sl(r)&&r.remove(o);else if(s!==i)if(e.hasValue(o)){const a=e.getValue(o);!a.hasAnimated&&a.set(i)}else{const a=e.getStaticValue(o);e.addValue(o,zo(a!==void 0?a:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const Qg=new WeakMap,Ox=Object.keys(os),jT=Ox.length,Zg=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],_T=mp.length;class BT{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,visualState:i},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>be.render(this.render,!1,!0);const{latestValues:a,renderState:l}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.isControllingVariants=Jl(n),this.isVariantNode=w1(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(n,{});for(const d in c){const f=c[d];a[d]!==void 0&&yt(f)&&(f.set(a[d],!1),Sl(u)&&u.add(d))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,Qg.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Fx.current||FT(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:zd.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Qg.delete(this.current),this.projection&&this.projection.unmount(),Mn(this.notifyUpdate),Mn(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Hr.has(t),o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&be.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,o,i){let s,a;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,layoutScroll:f,layoutRoot:p})}return a}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Be()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=zo(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,o=typeof r=="string"||typeof r=="object"?(n=Sp(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!yt(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Np),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class jx extends BT{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:o},i){let s=r6(r,t||{},this);if(o&&(n&&(n=o(n)),r&&(r=o(r)),s&&(s=o(s))),i){t6(this,r,s);const a=RT(this,r,s,n);n=a.transitionEnd,r=a.target}return{transition:t,transitionEnd:n,...r}}}function VT(e){return window.getComputedStyle(e)}class KT extends jx{readValueFromInstance(t,n){if(Hr.has(n)){const r=Tp(n);return r&&r.default||0}else{const r=VT(t),o=($1(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return $x(t,n)}build(t,n,r,o){yp(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Cp(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;yt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){L1(t,n,r,o)}}class zT extends jx{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Hr.has(n)){const r=Tp(n);return r&&r.default||0}return n=D1.has(n)?n:pp(n),t.getAttribute(n)}measureInstanceViewportBox(){return Be()}scrapeMotionValuesFromProps(t,n){return I1(t,n)}build(t,n,r,o){xp(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){N1(t,n,r,o)}mount(t){this.isSVGTag=wp(t.tagName),super.mount(t)}}const WT=(e,t)=>vp(e)?new zT(t,{enableHardwareAcceleration:!1}):new KT(t,{enableHardwareAcceleration:!0}),UT={layout:{ProjectionNode:Ix,MeasureLayout:kx}},HT={...y6,...jE,...ST,...UT},ur=G5((e,t)=>$E(e,t,HT,WT));function _x(){const e=h.useRef(!1);return fp(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function GT(){const e=_x(),[t,n]=h.useState(0),r=h.useCallback(()=>{e.current&&n(t+1)},[t]);return[h.useCallback(()=>be.postRender(r),[r]),t]}class YT extends h.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function XT({children:e,isPresent:t}){const n=h.useId(),r=h.useRef(null),o=h.useRef({width:0,height:0,top:0,left:0});return h.useInsertionEffect(()=>{const{width:i,height:s,top:a,left:l}=o.current;if(t||!r.current||!i||!s)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` + */var Vm=m5(v5()),c1=(e,t)=>{var n;let r=[];const o=(n=Vm.Children.map(e,s=>(0,Vm.isValidElement)(s)&&s.type===t?(r.push(s),null):s))==null?void 0:n.filter(Boolean),i=r.length>=0?r:void 0;return[o,i]},y5=new Set(["id","type","style","title","role","tabIndex","htmlFor","width","height","abbr","accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","async","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","challenge","charset","checked","cite","class","className","cols","colSpan","command","content","contentEditable","contextMenu","controls","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","dropzone","encType","for","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","hidden","high","href","hrefLang","httpEquiv","icon","inputMode","isMap","itemId","itemProp","itemRef","itemScope","itemType","kind","label","lang","list","loop","manifest","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","name","noValidate","open","optimum","pattern","ping","placeholder","poster","preload","radioGroup","referrerPolicy","readOnly","rel","required","rows","rowSpan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","slot","sortable","span","spellCheck","src","srcDoc","srcSet","start","step","target","translate","typeMustMatch","useMap","value","wmode","wrap"]),b5=new Set(["onCopy","onCut","onPaste","onLoad","onError","onWheel","onScroll","onCompositionEnd","onCompositionStart","onCompositionUpdate","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onSubmit","onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPointerDown","onPointerEnter","onPointerLeave","onPointerUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd"]),x5=/^(data-.*)$/,w5=/^(aria-.*)$/,Yu=/^(on[A-Z].*)$/;function ln(e,t={}){let{labelable:n=!0,enabled:r=!0,propNames:o,omitPropNames:i,omitEventNames:s}=t,a={};if(!r)return e;for(const l in e)i!=null&&i.has(l)||s!=null&&s.has(l)&&Yu.test(l)||Yu.test(l)&&!b5.has(l)||(Object.prototype.hasOwnProperty.call(e,l)&&(y5.has(l)||n&&w5.test(l)||o!=null&&o.has(l)||x5.test(l))||Yu.test(l))&&(a[l]=e[l]);return a}function Td(e){return Sa()?e.altKey:e.ctrlKey}function ao(e){return An()?e.metaKey:e.ctrlKey}const C5=1e3;function S5(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,o=h.useRef({search:"",timeout:null}).current,i=s=>{let a=P5(s.key);if(!a||s.ctrlKey||s.metaKey||!s.currentTarget.contains(s.target))return;a===" "&&o.search.trim().length>0&&(s.preventDefault(),"continuePropagation"in s||s.stopPropagation()),o.search+=a;let l=t.getKeyForSearch(o.search,n.focusedKey);l==null&&(l=t.getKeyForSearch(o.search)),l!=null&&(n.setFocusedKey(l),r&&r(l)),clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},C5)};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:null}}}function P5(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function d1(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:s=!1,disallowSelectAll:a=!1,selectOnFocus:l=t.selectionBehavior==="replace",disallowTypeAhead:u=!1,shouldUseVirtualFocus:c,allowsTabNavigation:d=!1,isVirtualized:f,scrollRef:p=r,linkBehavior:y="action"}=e,{direction:b}=xs(),w=Gl(),x=M=>{if(M.altKey&&M.key==="Tab"&&M.preventDefault(),!r.current.contains(M.target))return;const E=(O,T)=>{if(O!=null){if(t.isLink(O)&&y==="selection"&&l&&!Td(M)){Zf.flushSync(()=>{t.setFocusedKey(O,T)});let F=p.current.querySelector(`[data-key="${O}"]`);w.open(F,M);return}if(t.setFocusedKey(O,T),t.isLink(O)&&y==="override")return;M.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(O):l&&!Td(M)&&t.replaceSelection(O)}};switch(M.key){case"ArrowDown":if(n.getKeyBelow){var N,C;M.preventDefault();let O=t.focusedKey!=null?n.getKeyBelow(t.focusedKey):(N=n.getFirstKey)===null||N===void 0?void 0:N.call(n);O==null&&i&&(O=(C=n.getFirstKey)===null||C===void 0?void 0:C.call(n,t.focusedKey)),E(O)}break;case"ArrowUp":if(n.getKeyAbove){var $,R;M.preventDefault();let O=t.focusedKey!=null?n.getKeyAbove(t.focusedKey):($=n.getLastKey)===null||$===void 0?void 0:$.call(n);O==null&&i&&(O=(R=n.getLastKey)===null||R===void 0?void 0:R.call(n,t.focusedKey)),E(O)}break;case"ArrowLeft":if(n.getKeyLeftOf){var _,j;M.preventDefault();let O=n.getKeyLeftOf(t.focusedKey);O==null&&i&&(O=b==="rtl"?(_=n.getFirstKey)===null||_===void 0?void 0:_.call(n,t.focusedKey):(j=n.getLastKey)===null||j===void 0?void 0:j.call(n,t.focusedKey)),E(O,b==="rtl"?"first":"last")}break;case"ArrowRight":if(n.getKeyRightOf){var I,B;M.preventDefault();let O=n.getKeyRightOf(t.focusedKey);O==null&&i&&(O=b==="rtl"?(I=n.getLastKey)===null||I===void 0?void 0:I.call(n,t.focusedKey):(B=n.getFirstKey)===null||B===void 0?void 0:B.call(n,t.focusedKey)),E(O,b==="rtl"?"last":"first")}break;case"Home":if(n.getFirstKey){M.preventDefault();let O=n.getFirstKey(t.focusedKey,ao(M));t.setFocusedKey(O),ao(M)&&M.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(O):l&&t.replaceSelection(O)}break;case"End":if(n.getLastKey){M.preventDefault();let O=n.getLastKey(t.focusedKey,ao(M));t.setFocusedKey(O),ao(M)&&M.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(O):l&&t.replaceSelection(O)}break;case"PageDown":if(n.getKeyPageBelow){M.preventDefault();let O=n.getKeyPageBelow(t.focusedKey);E(O)}break;case"PageUp":if(n.getKeyPageAbove){M.preventDefault();let O=n.getKeyPageAbove(t.focusedKey);E(O)}break;case"a":ao(M)&&t.selectionMode==="multiple"&&a!==!0&&(M.preventDefault(),t.selectAll());break;case"Escape":M.preventDefault(),s||t.clearSelection();break;case"Tab":if(!d){if(M.shiftKey)r.current.focus();else{let O=xn(r.current,{tabbable:!0}),T,F;do F=O.lastChild(),F&&(T=F);while(F);T&&!T.contains(document.activeElement)&&St(T)}break}}},g=h.useRef({top:0,left:0});JS(p,"scroll",f?null:()=>{g.current={top:p.current.scrollTop,left:p.current.scrollLeft}});let v=M=>{if(t.isFocused){M.currentTarget.contains(M.target)||t.setFocused(!1);return}if(M.currentTarget.contains(M.target)){if(t.setFocused(!0),t.focusedKey==null){let C=R=>{R!=null&&(t.setFocusedKey(R),l&&t.replaceSelection(R))},$=M.relatedTarget;var E,N;$&&M.currentTarget.compareDocumentPosition($)&Node.DOCUMENT_POSITION_FOLLOWING?C((E=t.lastSelectedKey)!==null&&E!==void 0?E:n.getLastKey()):C((N=t.firstSelectedKey)!==null&&N!==void 0?N:n.getFirstKey())}else f||(p.current.scrollTop=g.current.top,p.current.scrollLeft=g.current.left);if(!f&&t.focusedKey!=null){let C=p.current.querySelector(`[data-key="${t.focusedKey}"]`);C&&(C.contains(document.activeElement)||St(C),sl()==="keyboard"&&im(C,{containingElement:r.current}))}}},S=M=>{M.currentTarget.contains(M.relatedTarget)||t.setFocused(!1)};const k=h.useRef(o);h.useEffect(()=>{if(k.current){let M=null;o==="first"&&(M=n.getFirstKey()),o==="last"&&(M=n.getLastKey());let E=t.selectedKeys;E.size&&(M=E.values().next().value),t.setFocused(!0),t.setFocusedKey(M),M==null&&!c&&ir(r.current)}k.current=!1},[]);let A=h.useRef(t.focusedKey);h.useEffect(()=>{let M=sl();if(t.isFocused&&t.focusedKey!=null&&(p!=null&&p.current)){let E=p.current.querySelector(`[data-key="${t.focusedKey}"]`);E&&M==="keyboard"&&(f||Ky(p.current,E),im(E,{containingElement:r.current}))}t.isFocused&&t.focusedKey==null&&A.current!=null&&ir(r.current),A.current=t.focusedKey},[f,p,t.focusedKey,t.isFocused,r]);let D={onKeyDown:x,onFocus:v,onBlur:S,onMouseDown(M){p.current===M.target&&M.preventDefault()}},{typeSelectProps:m}=S5({keyboardDelegate:n,selectionManager:t});u||(D=Y(m,D));let L;return c||(L=t.focusedKey==null?0:-1),{collectionProps:{...D,tabIndex:L}}}function f1(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:o,shouldUseVirtualFocus:i,focus:s,isDisabled:a,onAction:l,allowsDifferentPressOrigin:u,linkBehavior:c="action"}=e,d=Gl(),f=j=>{if(j.pointerType==="keyboard"&&Td(j))t.toggleSelection(n);else{if(t.selectionMode==="none")return;if(t.isLink(n)){if(c==="selection"){d.open(r.current,j),t.setSelectedKeys(t.selectedKeys);return}else if(c==="override"||c==="none")return}t.selectionMode==="single"?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):j&&j.shiftKey?t.extendSelection(n):t.selectionBehavior==="toggle"||j&&(ao(j)||j.pointerType==="touch"||j.pointerType==="virtual")?t.toggleSelection(n):t.replaceSelection(n)}};h.useEffect(()=>{n===t.focusedKey&&t.isFocused&&!i&&(s?s():document.activeElement!==r.current&&ir(r.current))},[r,n,t.focusedKey,t.childFocusStrategy,t.isFocused,i]),a=a||t.isDisabled(n);let p={};!i&&!a?p={tabIndex:n===t.focusedKey?0:-1,onFocus(j){j.target===r.current&&t.setFocusedKey(n)}}:a&&(p.onMouseDown=j=>{j.preventDefault()});let y=t.isLink(n)&&c==="override",b=t.isLink(n)&&c!=="selection"&&c!=="none",w=!a&&t.canSelectItem(n)&&!y,x=(l||b)&&!a,g=x&&(t.selectionBehavior==="replace"?!w:!w||t.isEmpty),v=x&&w&&t.selectionBehavior==="replace",S=g||v,k=h.useRef(null),A=S&&w,D=h.useRef(!1),m=h.useRef(!1),L=j=>{l&&l(),b&&d.open(r.current,j)},M={};o?(M.onPressStart=j=>{k.current=j.pointerType,D.current=A,j.pointerType==="keyboard"&&(!S||zm())&&f(j)},u?(M.onPressUp=g?null:j=>{j.pointerType!=="keyboard"&&w&&f(j)},M.onPress=g?L:null):M.onPress=j=>{if(g||v&&j.pointerType!=="mouse"){if(j.pointerType==="keyboard"&&!Km())return;L(j)}else j.pointerType!=="keyboard"&&w&&f(j)}):(M.onPressStart=j=>{k.current=j.pointerType,D.current=A,m.current=g,w&&(j.pointerType==="mouse"&&!g||j.pointerType==="keyboard"&&(!x||zm()))&&f(j)},M.onPress=j=>{(j.pointerType==="touch"||j.pointerType==="pen"||j.pointerType==="virtual"||j.pointerType==="keyboard"&&S&&Km()||j.pointerType==="mouse"&&m.current)&&(S?L(j):w&&f(j))}),p["data-key"]=n,M.preventFocusOnPress=i;let{pressProps:E,isPressed:N}=ws(M),C=v?j=>{k.current==="mouse"&&(j.stopPropagation(),j.preventDefault(),L(j))}:void 0,{longPressProps:$}=tb({isDisabled:!A,onLongPress(j){j.pointerType==="touch"&&(f(j),t.setSelectionBehavior("toggle"))}}),R=j=>{k.current==="touch"&&D.current&&j.preventDefault()},_=t.isLink(n)?j=>{an.isOpening||j.preventDefault()}:void 0;return{itemProps:Y(p,w||g?E:{},A?$:{},{onDoubleClick:C,onDragStartCapture:R,onClick:_}),isPressed:N,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:a,allowsSelection:w,hasAction:S}}function Km(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function zm(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class p1{getNextKey(t){for(t=this.collection.getKeyAfter(t);t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyAfter(t)}return null}getPreviousKey(t){for(t=this.collection.getKeyBefore(t);t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyBefore(t)}return null}findKey(t,n,r){let o=this.getItem(t);if(!o)return null;let i=o.getBoundingClientRect();do t=n(t),o=this.getItem(t);while(o&&r(i,o.getBoundingClientRect()));return t}isSameRow(t,n){return t.top===n.top||t.left!==n.left}isSameColumn(t,n){return t.left===n.left||t.top!==n.top}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();for(;t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyAfter(t)}return null}getLastKey(){let t=this.collection.getLastKey();for(;t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyBefore(t)}return null}getItem(t){return this.ref.current.querySelector(`[data-key="${t}"]`)}getKeyPageAbove(t){let n=this.ref.current,r=this.getItem(t);if(!r)return null;if(!il(n))return this.getFirstKey();let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(this.orientation==="horizontal"){let s=o.x-n.scrollLeft,a=Math.max(0,i.x-s+i.width-o.width);for(;r&&i.x-s>a;)t=this.getKeyAbove(t),r=t==null?null:this.getItem(t),i=r==null?void 0:r.getBoundingClientRect()}else{let s=o.y-n.scrollTop,a=Math.max(0,i.y-s+i.height-o.height);for(;r&&i.y-s>a;)t=this.getKeyAbove(t),r=t==null?null:this.getItem(t),i=r==null?void 0:r.getBoundingClientRect()}return t??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.getItem(t);if(!r)return null;if(!il(n))return this.getLastKey();let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(this.orientation==="horizontal"){let s=o.x-n.scrollLeft,a=Math.min(n.scrollWidth,i.x-s-i.width+o.width);for(;r&&i.x-si||new p1(n,a==="selection"?new Set:r,o,s),[i,n,r,o,s,a]),{collectionProps:u}=d1({...e,ref:o,selectionManager:t,keyboardDelegate:l});return{listProps:u}}var m1=ee.createContext(null);m1.displayName="PressResponderContext";var $5=Object.defineProperty,E5=(e,t,n)=>t in e?$5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vr=(e,t,n)=>(E5(e,typeof t!="symbol"?t+"":t,n),n),g1=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},k5=(e,t,n)=>(g1(e,t,"read from private field"),n?n.call(e):t.get(e)),T5=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},A5=(e,t,n,r)=>(g1(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),$a,na=class{constructor(e,t,n){vr(this,"type"),vr(this,"pointerType"),vr(this,"target"),vr(this,"shiftKey"),vr(this,"ctrlKey"),vr(this,"metaKey"),vr(this,"altKey"),T5(this,$a,!0),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey}continuePropagation(){A5(this,$a,!1)}get shouldStopPropagation(){return k5(this,$a)}};$a=new WeakMap;var Er=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document},Ad=e=>{var t,n;return(n=(t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)!=null?n:window},Co="default",Md="",Ea=new WeakMap;function Wm(e){if(bs()){if(Co==="default"){const t=Er(e);Md=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Co="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(Ea.set(e,e.style.userSelect),e.style.userSelect="none")}function ra(e){if(bs()){if(Co!=="disabled")return;Co="restoring",setTimeout(()=>{qf(()=>{if(Co==="restoring"){const t=Er(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Md||""),Md="",Co="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Ea.has(e)){let t=Ea.get(e);e.style.userSelect==="none"&&t&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Ea.delete(e)}}function M5(e){let t=h.useContext(m1);if(t){let{register:n,...r}=t;e=Y(r,e),n()}return tp(t,e.ref),e}var Um=Symbol("linkClicked");function cp(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,isDisabled:s,isPressed:a,preventFocusOnPress:l,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:c,ref:d,...f}=M5(e),[p,y]=h.useState(!1),b=h.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:w,removeAllGlobalListeners:x}=ep(),g=Oe((m,L)=>{let M=b.current;if(s||M.didFirePressStart)return;let E=!0;if(M.isTriggeringEvent=!0,r){let N=new na("pressstart",L,m);r(N),E=N.shouldStopPropagation}return n&&n(!0),M.isTriggeringEvent=!1,M.didFirePressStart=!0,y(!0),E}),v=Oe((m,L,M=!0)=>{let E=b.current;if(!E.didFirePressStart)return;E.ignoreClickAfterPress=!0,E.didFirePressStart=!1,E.isTriggeringEvent=!0;let N=!0;if(o){let C=new na("pressend",L,m);o(C),N=C.shouldStopPropagation}if(n&&n(!1),y(!1),t&&M&&!s){let C=new na("press",L,m);t(C),N&&(N=C.shouldStopPropagation)}return E.isTriggeringEvent=!1,N}),S=Oe((m,L)=>{let M=b.current;if(!s){if(i){M.isTriggeringEvent=!0;let E=new na("pressup",L,m);return i(E),M.isTriggeringEvent=!1,E.shouldStopPropagation}return!0}}),k=Oe(m=>{let L=b.current;L.isPressed&&(L.isOverTarget&&L.target&&v(fn(L.target,m),L.pointerType,!1),L.isPressed=!1,L.isOverTarget=!1,L.activePointerId=null,L.pointerType=null,x(),!c&&L.target&&ra(L.target))}),A=Oe(m=>{u&&k(m)}),D=h.useMemo(()=>{let m=b.current,L={onKeyDown(E){var N;if(Xu(E.nativeEvent,E.currentTarget)&&E.currentTarget.contains(E.target)){Gm(E.target,E.key)&&E.preventDefault();let C=!0;!m.isPressed&&!E.repeat&&(m.target=E.currentTarget,m.isPressed=!0,C=g(E,"keyboard"),w(Er(E.currentTarget),"keyup",M,!1)),C&&E.stopPropagation(),E.metaKey&&An()&&((N=m.metaKeyEvents)==null||N.set(E.key,E.nativeEvent))}else E.key==="Meta"&&(m.metaKeyEvents=new Map)},onKeyUp(E){m.target&&Xu(E.nativeEvent,E.currentTarget)&&!E.repeat&&E.currentTarget.contains(E.target)&&S(fn(m.target,E),"keyboard")},onClick(E){if(!(E&&!E.currentTarget.contains(E.target))&&E&&E.button===0&&!m.isTriggeringEvent&&!an.isOpening){let N=!0;if(s&&E.preventDefault(),!m.ignoreClickAfterPress&&!m.ignoreEmulatedMouseEvents&&!m.isPressed&&(m.pointerType==="virtual"||ns(E.nativeEvent))){!s&&!l&&St(E.currentTarget);let C=g(E,"virtual"),$=S(E,"virtual"),R=v(E,"virtual");N=C&&$&&R}m.ignoreEmulatedMouseEvents=!1,m.ignoreClickAfterPress=!1,N&&E.stopPropagation()}}},M=E=>{var N,C;if(m.isPressed&&m.target&&Xu(E,m.target)){Gm(E.target,E.key)&&E.preventDefault();let $=E.target,R=v(fn(m.target,E),"keyboard",m.target.contains($));x(),R&&E.stopPropagation(),E.key!=="Enter"&&dp(m.target)&&m.target.contains($)&&!E[Um]&&(E[Um]=!0,an(m.target,E,!1)),m.isPressed=!1,(N=m.metaKeyEvents)==null||N.delete(E.key)}else if(E.key==="Meta"&&((C=m.metaKeyEvents)!=null&&C.size)){let $=m.metaKeyEvents;m.metaKeyEvents=null;for(let R of $.values())m.target&&m.target.dispatchEvent(new KeyboardEvent("keyup",R))}};if(typeof PointerEvent<"u"){L.onPointerDown=$=>{if($.button!==0||!$.currentTarget.contains($.target))return;if(zy($.nativeEvent)){m.pointerType="virtual";return}Qu($.currentTarget)&&$.preventDefault(),m.pointerType=$.pointerType;let R=!0;m.isPressed||(m.isPressed=!0,m.isOverTarget=!0,m.activePointerId=$.pointerId,m.target=$.currentTarget,!s&&!l&&St($.currentTarget),c||Wm(m.target),R=g($,m.pointerType),w(Er($.currentTarget),"pointermove",E,!1),w(Er($.currentTarget),"pointerup",N,!1),w(Er($.currentTarget),"pointercancel",C,!1)),R&&$.stopPropagation()},L.onMouseDown=$=>{$.currentTarget.contains($.target)&&$.button===0&&(Qu($.currentTarget)&&$.preventDefault(),$.stopPropagation())},L.onPointerUp=$=>{!$.currentTarget.contains($.target)||m.pointerType==="virtual"||$.button===0&&ro($,$.currentTarget)&&S($,m.pointerType||$.pointerType)};let E=$=>{$.pointerId!==m.activePointerId||!m.target||(ro($,m.target)?m.isOverTarget||(m.isOverTarget=!0,g(fn(m.target,$),m.pointerType)):m.isOverTarget&&(m.isOverTarget=!1,v(fn(m.target,$),m.pointerType,!1),A($)))},N=$=>{$.pointerId===m.activePointerId&&m.isPressed&&$.button===0&&m.target&&((ro($,m.target)||m.isOverTarget)&&v(fn(m.target,$),m.pointerType),m.isPressed=!1,m.isOverTarget=!1,m.activePointerId=null,m.pointerType=null,x(),c||ra(m.target))},C=$=>{k($)};L.onDragStart=$=>{$.currentTarget.contains($.target)&&k($)}}else{L.onMouseDown=C=>{if(C.button!==0||!C.currentTarget.contains(C.target))return;if(Qu(C.currentTarget)&&C.preventDefault(),m.ignoreEmulatedMouseEvents){C.stopPropagation();return}m.isPressed=!0,m.isOverTarget=!0,m.target=C.currentTarget,m.pointerType=ns(C.nativeEvent)?"virtual":"mouse",!s&&!l&&St(C.currentTarget),g(C,m.pointerType)&&C.stopPropagation(),w(Er(C.currentTarget),"mouseup",E,!1)},L.onMouseEnter=C=>{if(!C.currentTarget.contains(C.target))return;let $=!0;m.isPressed&&!m.ignoreEmulatedMouseEvents&&(m.isOverTarget=!0,$=g(C,m.pointerType)),$&&C.stopPropagation()},L.onMouseLeave=C=>{if(!C.currentTarget.contains(C.target))return;let $=!0;m.isPressed&&!m.ignoreEmulatedMouseEvents&&(m.isOverTarget=!1,$=v(C,m.pointerType,!1),A(C)),$&&C.stopPropagation()},L.onMouseUp=C=>{C.currentTarget.contains(C.target)&&!m.ignoreEmulatedMouseEvents&&C.button===0&&S(C,m.pointerType||"mouse")};let E=C=>{if(C.button===0){if(m.isPressed=!1,x(),m.ignoreEmulatedMouseEvents){m.ignoreEmulatedMouseEvents=!1;return}m.target&&(ro(C,m.target)?v(fn(m.target,C),m.pointerType):m.isOverTarget&&v(fn(m.target,C),m.pointerType,!1),m.isOverTarget=!1)}};L.onTouchStart=C=>{if(!C.currentTarget.contains(C.target))return;let $=L5(C.nativeEvent);if(!$)return;m.activePointerId=$.identifier,m.ignoreEmulatedMouseEvents=!0,m.isOverTarget=!0,m.isPressed=!0,m.target=C.currentTarget,m.pointerType="touch",!s&&!l&&St(C.currentTarget),c||Wm(m.target),g(C,m.pointerType)&&C.stopPropagation(),w(Ad(C.currentTarget),"scroll",N,!0)},L.onTouchMove=C=>{if(!C.currentTarget.contains(C.target))return;if(!m.isPressed){C.stopPropagation();return}let $=Hm(C.nativeEvent,m.activePointerId),R=!0;$&&ro($,C.currentTarget)?m.isOverTarget||(m.isOverTarget=!0,R=g(C,m.pointerType)):m.isOverTarget&&(m.isOverTarget=!1,R=v(C,m.pointerType,!1),A(C)),R&&C.stopPropagation()},L.onTouchEnd=C=>{if(!C.currentTarget.contains(C.target))return;if(!m.isPressed){C.stopPropagation();return}let $=Hm(C.nativeEvent,m.activePointerId),R=!0;$&&ro($,C.currentTarget)?(S(C,m.pointerType),R=v(C,m.pointerType)):m.isOverTarget&&(R=v(C,m.pointerType,!1)),R&&C.stopPropagation(),m.isPressed=!1,m.activePointerId=null,m.isOverTarget=!1,m.ignoreEmulatedMouseEvents=!0,!c&&m.target&&ra(m.target),x()},L.onTouchCancel=C=>{C.currentTarget.contains(C.target)&&(C.stopPropagation(),m.isPressed&&k(C))};let N=C=>{m.isPressed&&C.target.contains(m.target)&&k({currentTarget:m.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};L.onDragStart=C=>{C.currentTarget.contains(C.target)&&k(C)}}return L},[w,s,l,x,c,k,A,v,g,S]);return h.useEffect(()=>()=>{!c&&b.current.target&&ra(b.current.target)},[c]),{isPressed:a||p,pressProps:Y(f,D)}}function dp(e){return e.tagName==="A"&&e.hasAttribute("href")}function Xu(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof Ad(o).HTMLInputElement&&!v1(o,n)||o instanceof Ad(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&dp(o))&&n!=="Enter")}function L5(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Hm(e,t){const n=e.changedTouches;for(let r=0;rt.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function ro(e,t){let n=t.getBoundingClientRect(),r=D5(e);return N5(n,r)}function Qu(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function Gm(e,t){return e instanceof HTMLInputElement?!v1(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!dp(e)}var I5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function v1(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":I5.has(e.type)}var R5=e=>P.jsx("svg",{"aria-hidden":"true",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...e,children:P.jsx("path",{d:"M12 2a10 10 0 1010 10A10.016 10.016 0 0012 2zm3.36 12.3a.754.754 0 010 1.06.748.748 0 01-1.06 0l-2.3-2.3-2.3 2.3a.748.748 0 01-1.06 0 .754.754 0 010-1.06l2.3-2.3-2.3-2.3A.75.75 0 019.7 8.64l2.3 2.3 2.3-2.3a.75.75 0 011.06 1.06l-2.3 2.3z",fill:"currentColor"})}),O5=e=>P.jsx("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",width:"1em",...e,children:P.jsx("path",{d:"M18 6L6 18M6 6l12 12"})}),F5=({strokeWidth:e=1.5,...t})=>P.jsx("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:e,viewBox:"0 0 24 24",width:"1em",...t,children:P.jsx("path",{d:"m6 9 6 6 6-6"})});const y1=h.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Xl=h.createContext({}),Ql=h.createContext(null),Zl=typeof document<"u",fp=Zl?h.useLayoutEffect:h.useEffect,b1=h.createContext({strict:!1}),pp=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),j5="framerAppearId",x1="data-"+pp(j5);function _5(e,t,n,r){const{visualElement:o}=h.useContext(Xl),i=h.useContext(b1),s=h.useContext(Ql),a=h.useContext(y1).reducedMotion,l=h.useRef();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;h.useInsertionEffect(()=>{u&&u.update(n,s)});const c=h.useRef(!!(n[x1]&&!window.HandoffComplete));return fp(()=>{u&&(u.render(),c.current&&u.animationState&&u.animationState.animateChanges())}),h.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),u}function So(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function B5(e,t,n){return h.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):So(n)&&(n.current=r))},[t])}function rs(e){return typeof e=="string"||Array.isArray(e)}function Jl(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const hp=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],mp=["initial",...hp];function ql(e){return Jl(e.animate)||mp.some(t=>rs(e[t]))}function w1(e){return!!(ql(e)||e.variants)}function V5(e,t){if(ql(e)){const{initial:n,animate:r}=e;return{initial:n===!1||rs(n)?n:void 0,animate:rs(r)?r:void 0}}return e.inherit!==!1?t:{}}function K5(e){const{initial:t,animate:n}=V5(e,h.useContext(Xl));return h.useMemo(()=>({initial:t,animate:n}),[Ym(t),Ym(n)])}function Ym(e){return Array.isArray(e)?e.join(" "):e}const Xm={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},os={};for(const e in Xm)os[e]={isEnabled:t=>Xm[e].some(n=>!!t[n])};function z5(e){for(const t in e)os[t]={...os[t],...e[t]}}const gp=h.createContext({}),C1=h.createContext({}),W5=Symbol.for("motionComponentSymbol");function U5({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&z5(e);function i(a,l){let u;const c={...h.useContext(y1),...a,layoutId:H5(a)},{isStatic:d}=c,f=K5(a),p=r(a,d);if(!d&&Zl){f.visualElement=_5(o,p,c,t);const y=h.useContext(C1),b=h.useContext(b1).strict;f.visualElement&&(u=f.visualElement.loadFeatures(c,b,e,y))}return h.createElement(Xl.Provider,{value:f},u&&f.visualElement?h.createElement(u,{visualElement:f.visualElement,...c}):null,n(o,a,B5(p,f.visualElement,l),p,d,f.visualElement))}const s=h.forwardRef(i);return s[W5]=o,s}function H5({layoutId:e}){const t=h.useContext(gp).id;return t&&e!==void 0?t+"-"+e:e}function G5(e){function t(r,o={}){return U5(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const Y5=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function vp(e){return typeof e!="string"||e.includes("-")?!1:!!(Y5.indexOf(e)>-1||/[A-Z]/.test(e))}const vl={};function X5(e){Object.assign(vl,e)}const Ss=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Hr=new Set(Ss);function S1(e,{layout:t,layoutId:n}){return Hr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!vl[e]||e==="opacity")}const yt=e=>!!(e&&e.getVelocity),Q5={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Z5=Ss.length;function J5(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let s=0;st=>typeof t=="string"&&t.startsWith(e),$1=P1("--"),Ld=P1("var(--"),q5=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,eE=(e,t)=>t&&typeof e=="number"?t.transform(e):e,ar=(e,t,n)=>Math.min(Math.max(n,e),t),Gr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ri={...Gr,transform:e=>ar(0,1,e)},oa={...Gr,default:1},Oi=e=>Math.round(e*1e5)/1e5,eu=/(-)?([\d]*\.?[\d])+/g,E1=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,tE=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Ps(e){return typeof e=="string"}const $s=e=>({test:t=>Ps(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),In=$s("deg"),on=$s("%"),te=$s("px"),nE=$s("vh"),rE=$s("vw"),Qm={...on,parse:e=>on.parse(e)/100,transform:e=>on.transform(e*100)},Zm={...Gr,transform:Math.round},k1={borderWidth:te,borderTopWidth:te,borderRightWidth:te,borderBottomWidth:te,borderLeftWidth:te,borderRadius:te,radius:te,borderTopLeftRadius:te,borderTopRightRadius:te,borderBottomRightRadius:te,borderBottomLeftRadius:te,width:te,maxWidth:te,height:te,maxHeight:te,size:te,top:te,right:te,bottom:te,left:te,padding:te,paddingTop:te,paddingRight:te,paddingBottom:te,paddingLeft:te,margin:te,marginTop:te,marginRight:te,marginBottom:te,marginLeft:te,rotate:In,rotateX:In,rotateY:In,rotateZ:In,scale:oa,scaleX:oa,scaleY:oa,scaleZ:oa,skew:In,skewX:In,skewY:In,distance:te,translateX:te,translateY:te,translateZ:te,x:te,y:te,z:te,perspective:te,transformPerspective:te,opacity:Ri,originX:Qm,originY:Qm,originZ:te,zIndex:Zm,fillOpacity:Ri,strokeOpacity:Ri,numOctaves:Zm};function yp(e,t,n,r){const{style:o,vars:i,transform:s,transformOrigin:a}=e;let l=!1,u=!1,c=!0;for(const d in t){const f=t[d];if($1(d)){i[d]=f;continue}const p=k1[d],y=eE(f,p);if(Hr.has(d)){if(l=!0,s[d]=y,!c)continue;f!==(p.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,a[d]=y):o[d]=y}if(t.transform||(l||r?o.transform=J5(e.transform,n,c,r):o.transform&&(o.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:p=0}=a;o.transformOrigin=`${d} ${f} ${p}`}}const bp=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function T1(e,t,n){for(const r in t)!yt(t[r])&&!S1(r,n)&&(e[r]=t[r])}function oE({transformTemplate:e},t,n){return h.useMemo(()=>{const r=bp();return yp(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function iE(e,t,n){const r=e.style||{},o={};return T1(o,r,e),Object.assign(o,oE(e,t,n)),e.transformValues?e.transformValues(o):o}function sE(e,t,n){const r={},o=iE(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const aE=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function yl(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||aE.has(e)}let A1=e=>!yl(e);function lE(e){e&&(A1=t=>t.startsWith("on")?!yl(t):e(t))}try{lE(require("@emotion/is-prop-valid").default)}catch{}function uE(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(A1(o)||n===!0&&yl(o)||!t&&!yl(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function Jm(e,t,n){return typeof e=="string"?e:te.transform(t+n*e)}function cE(e,t,n){const r=Jm(t,e.x,e.width),o=Jm(n,e.y,e.height);return`${r} ${o}`}const dE={offset:"stroke-dashoffset",array:"stroke-dasharray"},fE={offset:"strokeDashoffset",array:"strokeDasharray"};function pE(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?dE:fE;e[i.offset]=te.transform(-r);const s=te.transform(t),a=te.transform(n);e[i.array]=`${s} ${a}`}function xp(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d,f){if(yp(e,u,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:y,dimensions:b}=e;p.transform&&(b&&(y.transform=p.transform),delete p.transform),b&&(o!==void 0||i!==void 0||y.transform)&&(y.transformOrigin=cE(b,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),s!==void 0&&pE(p,s,a,l,!1)}const M1=()=>({...bp(),attrs:{}}),wp=e=>typeof e=="string"&&e.toLowerCase()==="svg";function hE(e,t,n,r){const o=h.useMemo(()=>{const i=M1();return xp(i,t,{enableHardwareAcceleration:!1},wp(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};T1(i,e.style,e),o.style={...i,...o.style}}return o}function mE(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(vp(n)?hE:sE)(r,i,s,n),c={...uE(r,typeof n=="string",e),...l,ref:o},{children:d}=r,f=h.useMemo(()=>yt(d)?d.get():d,[d]);return h.createElement(n,{...c,children:f})}}function L1(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const D1=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function N1(e,t,n,r){L1(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(D1.has(o)?o:pp(o),t.attrs[o])}function Cp(e,t){const{style:n}=e,r={};for(const o in n)(yt(n[o])||t.style&&yt(t.style[o])||S1(o,e))&&(r[o]=n[o]);return r}function I1(e,t){const n=Cp(e,t);for(const r in e)if(yt(e[r])||yt(t[r])){const o=Ss.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[o]=e[r]}return n}function Sp(e,t,n,r={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),t}function R1(e){const t=h.useRef(null);return t.current===null&&(t.current=e()),t.current}const bl=e=>Array.isArray(e),gE=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),vE=e=>bl(e)?e[e.length-1]||0:e;function ka(e){const t=yt(e)?e.get():e;return gE(t)?t.toValue():t}function yE({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:bE(r,o,i,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const O1=e=>(t,n)=>{const r=h.useContext(Xl),o=h.useContext(Ql),i=()=>yE(e,t,r,o);return n?i():R1(i)};function bE(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=ka(i[f]);let{initial:s,animate:a}=e;const l=ql(e),u=w1(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?a:s;return d&&typeof d!="boolean"&&!Jl(d)&&(Array.isArray(d)?d:[d]).forEach(p=>{const y=Sp(e,p);if(!y)return;const{transitionEnd:b,transition:w,...x}=y;for(const g in x){let v=x[g];if(Array.isArray(v)){const S=c?v.length-1:0;v=v[S]}v!==null&&(o[g]=v)}for(const g in b)o[g]=b[g]}),o}const Ne=e=>e;class qm{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function xE(e){let t=new qm,n=new qm,r=0,o=!1,i=!1;const s=new WeakSet,a={schedule:(l,u=!1,c=!1)=>{const d=c&&o,f=d?t:n;return u&&s.add(l),f.add(l)&&d&&o&&(r=t.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u(d[f]=xE(()=>n=!0),d),{}),s=d=>i[d].process(o),a=()=>{const d=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(d-o.timestamp,wE),1),o.timestamp=d,o.isProcessing=!0,ia.forEach(s),o.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,o.isProcessing||e(a)};return{schedule:ia.reduce((d,f)=>{const p=i[f];return d[f]=(y,b=!1,w=!1)=>(n||l(),p.schedule(y,b,w)),d},{}),cancel:d=>ia.forEach(f=>i[f].cancel(d)),state:o,steps:i}}const{schedule:be,cancel:Mn,state:tt,steps:Zu}=CE(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ne,!0),SE={useVisualState:O1({scrapeMotionValuesFromProps:I1,createRenderState:M1,onMount:(e,t,{renderState:n,latestValues:r})=>{be.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),be.render(()=>{xp(n,r,{enableHardwareAcceleration:!1},wp(t.tagName),e.transformTemplate),N1(t,n)})}})},PE={useVisualState:O1({scrapeMotionValuesFromProps:Cp,createRenderState:bp})};function $E(e,{forwardMotionProps:t=!1},n,r){return{...vp(e)?SE:PE,preloadedFeatures:n,useRender:mE(t),createVisualElement:r,Component:e}}function wn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const F1=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function tu(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const EE=e=>t=>F1(t)&&e(t,tu(t));function Sn(e,t,n,r){return wn(e,t,EE(n),r)}const kE=(e,t)=>n=>t(e(n)),qn=(...e)=>e.reduce(kE);function j1(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const eg=j1("dragHorizontal"),tg=j1("dragVertical");function _1(e){let t=!1;if(e==="y")t=tg();else if(e==="x")t=eg();else{const n=eg(),r=tg();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function B1(){const e=_1(!0);return e?(e(),!1):!0}class gr{constructor(t){this.isMounted=!1,this.node=t}update(){}}function ng(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),o=(i,s)=>{if(i.pointerType==="touch"||B1())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[r]&&be.update(()=>a[r](i,s))};return Sn(e.current,n,o,{passive:!e.getProps()[r]})}class TE extends gr{mount(){this.unmount=qn(ng(this.node,!0),ng(this.node,!1))}unmount(){}}class AE extends gr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=qn(wn(this.node.current,"focus",()=>this.onFocus()),wn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const V1=(e,t)=>t?e===t?!0:V1(e,t.parentElement):!1;function Ju(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,tu(n))}class ME extends gr{constructor(){super(...arguments),this.removeStartListeners=Ne,this.removeEndListeners=Ne,this.removeAccessibleListeners=Ne,this.startPointerPress=(t,n)=>{if(this.removeEndListeners(),this.isPressing)return;const r=this.node.getProps(),i=Sn(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c}=this.node.getProps();be.update(()=>{V1(this.node.current,a.target)?u&&u(a,l):c&&c(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=Sn(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=qn(i,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||Ju("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&be.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=wn(this.node.current,"keyup",s),Ju("down",(a,l)=>{this.startPress(a,l)})},n=wn(this.node.current,"keydown",t),r=()=>{this.isPressing&&Ju("cancel",(i,s)=>this.cancelPress(i,s))},o=wn(this.node.current,"blur",r);this.removeAccessibleListeners=qn(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&be.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!B1()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&be.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Sn(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=wn(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=qn(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Dd=new WeakMap,qu=new WeakMap,LE=e=>{const t=Dd.get(e.target);t&&t(e)},DE=e=>{e.forEach(LE)};function NE({root:e,...t}){const n=e||document;qu.has(n)||qu.set(n,{});const r=qu.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(DE,{root:e,...t})),r[o]}function IE(e,t,n){const r=NE(t);return Dd.set(e,n),r.observe(e),()=>{Dd.delete(e),r.unobserve(e)}}const RE={some:0,all:1};class OE extends gr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:RE[o]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return IE(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(FE(t,n))&&this.startObserver()}unmount(){}}function FE({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const jE={inView:{Feature:OE},tap:{Feature:ME},focus:{Feature:AE},hover:{Feature:TE}};function K1(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rt[r]=n.get()),t}function BE(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function nu(e,t,n){const r=e.getProps();return Sp(r,t,n!==void 0?n:r.custom,_E(e),BE(e))}let VE=Ne,Pp=Ne;const er=e=>e*1e3,Pn=e=>e/1e3,KE={current:!1},z1=e=>Array.isArray(e)&&typeof e[0]=="number";function W1(e){return!!(!e||typeof e=="string"&&U1[e]||z1(e)||Array.isArray(e)&&e.every(W1))}const Pi=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,U1={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Pi([0,.65,.55,1]),circOut:Pi([.55,0,1,.45]),backIn:Pi([.31,.01,.66,-.59]),backOut:Pi([.33,1.53,.69,.99])};function H1(e){if(e)return z1(e)?Pi(e):Array.isArray(e)?e.map(H1):U1[e]}function zE(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=H1(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}function WE(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const G1=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,UE=1e-7,HE=12;function GE(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=G1(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>UE&&++aGE(i,0,1,e,n);return i=>i===0||i===1?i:G1(o(i),t,r)}const YE=Es(.42,0,1,1),XE=Es(0,0,.58,1),Y1=Es(.42,0,.58,1),QE=e=>Array.isArray(e)&&typeof e[0]!="number",X1=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Q1=e=>t=>1-e(1-t),$p=e=>1-Math.sin(Math.acos(e)),Z1=Q1($p),ZE=X1($p),J1=Es(.33,1.53,.69,.99),Ep=Q1(J1),JE=X1(Ep),qE=e=>(e*=2)<1?.5*Ep(e):.5*(2-Math.pow(2,-10*(e-1))),ek={linear:Ne,easeIn:YE,easeInOut:Y1,easeOut:XE,circIn:$p,circInOut:ZE,circOut:Z1,backIn:Ep,backInOut:JE,backOut:J1,anticipate:qE},rg=e=>{if(Array.isArray(e)){Pp(e.length===4);const[t,n,r,o]=e;return Es(t,n,r,o)}else if(typeof e=="string")return ek[e];return e},kp=(e,t)=>n=>!!(Ps(n)&&tE.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),q1=(e,t,n)=>r=>{if(!Ps(r))return r;const[o,i,s,a]=r.match(eu);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},tk=e=>ar(0,255,e),ec={...Gr,transform:e=>Math.round(tk(e))},Dr={test:kp("rgb","red"),parse:q1("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ec.transform(e)+", "+ec.transform(t)+", "+ec.transform(n)+", "+Oi(Ri.transform(r))+")"};function nk(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Nd={test:kp("#"),parse:nk,transform:Dr.transform},Po={test:kp("hsl","hue"),parse:q1("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+on.transform(Oi(t))+", "+on.transform(Oi(n))+", "+Oi(Ri.transform(r))+")"},st={test:e=>Dr.test(e)||Nd.test(e)||Po.test(e),parse:e=>Dr.test(e)?Dr.parse(e):Po.test(e)?Po.parse(e):Nd.parse(e),transform:e=>Ps(e)?e:e.hasOwnProperty("red")?Dr.transform(e):Po.transform(e)},ke=(e,t,n)=>-n*e+n*t+e;function tc(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function rk({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=tc(l,a,e+1/3),i=tc(l,a,e),s=tc(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}const nc=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},ok=[Nd,Dr,Po],ik=e=>ok.find(t=>t.test(e));function og(e){const t=ik(e);let n=t.parse(e);return t===Po&&(n=rk(n)),n}const ex=(e,t)=>{const n=og(e),r=og(t),o={...n};return i=>(o.red=nc(n.red,r.red,i),o.green=nc(n.green,r.green,i),o.blue=nc(n.blue,r.blue,i),o.alpha=ke(n.alpha,r.alpha,i),Dr.transform(o))};function sk(e){var t,n;return isNaN(e)&&Ps(e)&&(((t=e.match(eu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(E1))===null||n===void 0?void 0:n.length)||0)>0}const tx={regex:q5,countKey:"Vars",token:"${v}",parse:Ne},nx={regex:E1,countKey:"Colors",token:"${c}",parse:st.parse},rx={regex:eu,countKey:"Numbers",token:"${n}",parse:Gr.parse};function rc(e,{regex:t,countKey:n,token:r,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+n]=i.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...i.map(o)))}function xl(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&rc(n,tx),rc(n,nx),rc(n,rx),n}function ox(e){return xl(e).values}function ix(e){const{values:t,numColors:n,numVars:r,tokenised:o}=xl(e),i=t.length;return s=>{let a=o;for(let l=0;ltypeof e=="number"?0:e;function lk(e){const t=ox(e);return ix(e)(t.map(ak))}const lr={test:sk,parse:ox,createTransformer:ix,getAnimatableNone:lk},sx=(e,t)=>n=>`${n>0?t:e}`;function ax(e,t){return typeof e=="number"?n=>ke(e,t,n):st.test(e)?ex(e,t):e.startsWith("var(")?sx(e,t):ux(e,t)}const lx=(e,t)=>{const n=[...e],r=n.length,o=e.map((i,s)=>ax(i,t[s]));return i=>{for(let s=0;s{const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=ax(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}},ux=(e,t)=>{const n=lr.createTransformer(t),r=xl(e),o=xl(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?qn(lx(r.values,o.values),n):sx(e,t)},is=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},ig=(e,t)=>n=>ke(e,t,n);function ck(e){return typeof e=="number"?ig:typeof e=="string"?st.test(e)?ex:ux:Array.isArray(e)?lx:typeof e=="object"?uk:ig}function dk(e,t,n){const r=[],o=n||ck(e[0]),i=e.length-1;for(let s=0;st[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=dk(t,r,o),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(ar(e[0],e[i-1],u)):l}function fk(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=is(0,t,r);e.push(ke(n,1,o))}}function pk(e){const t=[0];return fk(t,e.length-1),t}function hk(e,t){return e.map(n=>n*t)}function mk(e,t){return e.map(()=>t||Y1).splice(0,e.length-1)}function wl({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=QE(r)?r.map(rg):rg(r),i={done:!1,value:t[0]},s=hk(n&&n.length===t.length?n:pk(t),e),a=cx(s,t,{ease:Array.isArray(o)?o:mk(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}function dx(e,t){return t?e*(1e3/t):0}const gk=5;function fx(e,t,n){const r=Math.max(t-gk,0);return dx(n-e(r),t-r)}const oc=.001,vk=.01,sg=10,yk=.05,bk=1;function xk({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;VE(e<=er(sg));let s=1-t;s=ar(yk,bk,s),e=ar(vk,sg,Pn(e)),s<1?(o=u=>{const c=u*s,d=c*e,f=c-n,p=Id(u,s),y=Math.exp(-d);return oc-f/p*y},i=u=>{const d=u*s*e,f=d*n+n,p=Math.pow(s,2)*Math.pow(u,2)*e,y=Math.exp(-d),b=Id(Math.pow(u,2),s);return(-o(u)+oc>0?-1:1)*((f-p)*y)/b}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-oc+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=Ck(o,i,a);if(e=er(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const wk=12;function Ck(e,t,n){let r=n;for(let o=1;oe[n]!==void 0)}function $k(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!ag(e,Pk)&&ag(e,Sk)){const n=xk(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function px({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:l,mass:u,duration:c,velocity:d,isResolvedFromDuration:f}=$k({...r,velocity:-Pn(r.velocity||0)}),p=d||0,y=l/(2*Math.sqrt(a*u)),b=i-o,w=Pn(Math.sqrt(a/u)),x=Math.abs(b)<5;n||(n=x?.01:2),t||(t=x?.005:.5);let g;if(y<1){const v=Id(w,y);g=S=>{const k=Math.exp(-y*w*S);return i-k*((p+y*w*b)/v*Math.sin(v*S)+b*Math.cos(v*S))}}else if(y===1)g=v=>i-Math.exp(-w*v)*(b+(p+w*b)*v);else{const v=w*Math.sqrt(y*y-1);g=S=>{const k=Math.exp(-y*w*S),A=Math.min(v*S,300);return i-k*((p+y*w*b)*Math.sinh(A)+v*b*Math.cosh(A))/v}}return{calculatedDuration:f&&c||null,next:v=>{const S=g(v);if(f)s.done=v>=c;else{let k=p;v!==0&&(y<1?k=fx(g,v,S):k=0);const A=Math.abs(k)<=n,D=Math.abs(i-S)<=t;s.done=A&&D}return s.value=s.done?i:S,s}}}function lg({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},p=m=>a!==void 0&&ml,y=m=>a===void 0?l:l===void 0||Math.abs(a-m)-b*Math.exp(-m/r),v=m=>x+g(m),S=m=>{const L=g(m),M=v(m);f.done=Math.abs(L)<=u,f.value=f.done?x:M};let k,A;const D=m=>{p(f.value)&&(k=m,A=px({keyframes:[f.value,y(f.value)],velocity:fx(v,m,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return D(0),{calculatedDuration:null,next:m=>{let L=!1;return!A&&k===void 0&&(L=!0,S(m),D(m)),k!==void 0&&m>k?A.next(m-k):(!L&&S(m),f)}}}const Ek=e=>{const t=({timestamp:n})=>e(n);return{start:()=>be.update(t,!0),stop:()=>Mn(t),now:()=>tt.isProcessing?tt.timestamp:performance.now()}},ug=2e4;function cg(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=ug?1/0:t}const kk={decay:lg,inertia:lg,tween:wl,keyframes:wl,spring:px};function Cl({autoplay:e=!0,delay:t=0,driver:n=Ek,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...f}){let p=1,y=!1,b,w;const x=()=>{w=new Promise(T=>{b=T})};x();let g;const v=kk[o]||wl;let S;v!==wl&&typeof r[0]!="number"&&(S=cx([0,100],r,{clamp:!1}),r=[0,100]);const k=v({...f,keyframes:r});let A;a==="mirror"&&(A=v({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let D="idle",m=null,L=null,M=null;k.calculatedDuration===null&&i&&(k.calculatedDuration=cg(k));const{calculatedDuration:E}=k;let N=1/0,C=1/0;E!==null&&(N=E+s,C=N*(i+1)-s);let $=0;const R=T=>{if(L===null)return;p>0&&(L=Math.min(L,T)),p<0&&(L=Math.min(T-C/p,L)),m!==null?$=m:$=Math.round(T-L)*p;const F=$-t*(p>=0?1:-1),V=p>=0?F<0:F>C;$=Math.max(F,0),D==="finished"&&m===null&&($=C);let W=$,U=k;if(i){const Z=Math.min($,C)/N;let re=Math.floor(Z),ie=Z%1;!ie&&Z>=1&&(ie=1),ie===1&&re--,re=Math.min(re,i+1),!!(re%2)&&(a==="reverse"?(ie=1-ie,s&&(ie-=s/N)):a==="mirror"&&(U=A)),W=ar(0,1,ie)*N}const Q=V?{done:!1,value:r[0]}:U.next(W);S&&(Q.value=S(Q.value));let{done:K}=Q;!V&&E!==null&&(K=p>=0?$>=C:$<=0);const G=m===null&&(D==="finished"||D==="running"&&K);return d&&d(Q.value),G&&I(),Q},_=()=>{g&&g.stop(),g=void 0},j=()=>{D="idle",_(),b(),x(),L=M=null},I=()=>{D="finished",c&&c(),_(),b()},B=()=>{if(y)return;g||(g=n(R));const T=g.now();l&&l(),m!==null?L=T-m:(!L||D==="finished")&&(L=T),D==="finished"&&x(),M=L,m=null,D="running",g.start()};e&&B();const O={then(T,F){return w.then(T,F)},get time(){return Pn($)},set time(T){T=er(T),$=T,m!==null||!g||p===0?m=T:L=g.now()-T/p},get duration(){const T=k.calculatedDuration===null?cg(k):k.calculatedDuration;return Pn(T)},get speed(){return p},set speed(T){T===p||!g||(p=T,O.time=Pn($))},get state(){return D},play:B,pause:()=>{D="paused",m=$},stop:()=>{y=!0,D!=="idle"&&(D="idle",u&&u(),j())},cancel:()=>{M!==null&&R(M),j()},complete:()=>{D="finished"},sample:T=>(L=0,R(T))};return O}function Tk(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ak=Tk(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Mk=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),sa=10,Lk=2e4,Dk=(e,t)=>t.type==="spring"||e==="backgroundColor"||!W1(t.ease);function Nk(e,t,{onUpdate:n,onComplete:r,...o}){if(!(Ak()&&Mk.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let s=!1,a,l,u=!1;const c=()=>{l=new Promise(v=>{a=v})};c();let{keyframes:d,duration:f=300,ease:p,times:y}=o;if(Dk(t,o)){const v=Cl({...o,repeat:0,delay:0});let S={done:!1,value:d[0]};const k=[];let A=0;for(;!S.done&&A{u=!1,b.cancel()},x=()=>{u=!0,be.update(w),a(),c()};return b.onfinish=()=>{u||(e.set(WE(d,o)),r&&r(),x())},{then(v,S){return l.then(v,S)},attachTimeline(v){return b.timeline=v,b.onfinish=null,Ne},get time(){return Pn(b.currentTime||0)},set time(v){b.currentTime=er(v)},get speed(){return b.playbackRate},set speed(v){b.playbackRate=v},get duration(){return Pn(f)},play:()=>{s||(b.play(),Mn(w))},pause:()=>b.pause(),stop:()=>{if(s=!0,b.playState==="idle")return;const{currentTime:v}=b;if(v){const S=Cl({...o,autoplay:!1});e.setWithVelocity(S.sample(v-sa).value,S.sample(v).value,sa)}x()},complete:()=>{u||b.finish()},cancel:x}}function Ik({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:Ne,pause:Ne,stop:Ne,then:i=>(i(),Promise.resolve()),cancel:Ne,complete:Ne});return t?Cl({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const Rk={type:"spring",stiffness:500,damping:25,restSpeed:10},Ok=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Fk={type:"keyframes",duration:.8},jk={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},_k=(e,{keyframes:t})=>t.length>2?Fk:Hr.has(e)?e.startsWith("scale")?Ok(t[1]):Rk:jk,Rd=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(lr.test(t)||t==="0")&&!t.startsWith("url(")),Bk=new Set(["brightness","contrast","saturate","opacity"]);function Vk(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(eu)||[];if(!r)return e;const o=n.replace(r,"");let i=Bk.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Kk=/([a-z-]*)\(.*?\)/g,Od={...lr,getAnimatableNone:e=>{const t=e.match(Kk);return t?t.map(Vk).join(" "):e}},zk={...k1,color:st,backgroundColor:st,outlineColor:st,fill:st,stroke:st,borderColor:st,borderTopColor:st,borderRightColor:st,borderBottomColor:st,borderLeftColor:st,filter:Od,WebkitFilter:Od},Tp=e=>zk[e];function hx(e,t){let n=Tp(e);return n!==Od&&(n=lr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const mx=e=>/^0[^.\s]+$/.test(e);function Wk(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||mx(e)}function Uk(e,t,n,r){const o=Rd(t,n);let i;Array.isArray(n)?i=[...n]:i=[null,n];const s=r.from!==void 0?r.from:e.get();let a;const l=[];for(let u=0;uo=>{const i=Ap(r,e)||{},s=i.delay||r.delay||0;let{elapsed:a=0}=r;a=a-er(s);const l=Uk(t,e,n,i),u=l[0],c=l[l.length-1],d=Rd(e,u),f=Rd(e,c);let p={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-a,onUpdate:y=>{t.set(y),i.onUpdate&&i.onUpdate(y)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(Hk(i)||(p={...p,..._k(e,p)}),p.duration&&(p.duration=er(p.duration)),p.repeatDelay&&(p.repeatDelay=er(p.repeatDelay)),!d||!f||KE.current||i.type===!1||Gk.skipAnimations)return Ik(p);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const y=Nk(t,e,p);if(y)return y}return Cl(p)};function Sl(e){return!!(yt(e)&&e.add)}const gx=e=>/^\-?\d*\.?\d+$/.test(e);function Lp(e,t){e.indexOf(t)===-1&&e.push(t)}function Dp(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Np{constructor(){this.subscriptions=[]}add(t){return Lp(this.subscriptions,t),()=>Dp(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class Xk{constructor(t,n={}){this.version="10.17.9",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,o=!0)=>{this.prev=this.current,this.current=r;const{delta:i,timestamp:s}=tt;this.lastUpdated!==s&&(this.timeDelta=i,this.lastUpdated=s,be.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>be.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=Yk(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Np);const r=this.events[t].add(n);return t==="change"?()=>{r(),be.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?dx(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function zo(e,t){return new Xk(e,t)}const vx=e=>t=>t.test(e),Qk={test:e=>e==="auto",parse:e=>e},yx=[Gr,te,on,In,rE,nE,Qk],pi=e=>yx.find(vx(e)),Zk=[...yx,st,lr],Jk=e=>Zk.find(vx(e));function qk(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,zo(n))}function e6(e,t){const n=nu(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const s in i){const a=vE(i[s]);qk(e,s,a)}}function t6(e,t,n){var r,o;const i=Object.keys(t).filter(a=>!e.hasValue(a)),s=i.length;if(s)for(let a=0;al.remove(d))),u.push(w)}return s&&Promise.all(u).then(()=>{s&&e6(e,s)}),u}function Fd(e,t,n={}){const r=nu(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(bx(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=o;return s6(e,t,u+l,c,d,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,u]=a==="beforeChildren"?[i,s]:[s,i];return l().then(()=>u())}else return Promise.all([i(),s(n.delay)])}function s6(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=o===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(a6).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(Fd(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function a6(e,t){return e.sortNodePosition(t)}function l6(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Fd(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Fd(e,t,n);else{const o=typeof t=="function"?nu(e,t,n.custom):t;r=Promise.all(bx(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}const u6=[...hp].reverse(),c6=hp.length;function d6(e){return t=>Promise.all(t.map(({animation:n,options:r})=>l6(e,n,r)))}function f6(e){let t=d6(e);const n=h6();let r=!0;const o=(l,u)=>{const c=nu(e,u);if(c){const{transition:d,transitionEnd:f,...p}=c;l={...l,...p,...f}}return l};function i(l){t=l(e)}function s(l,u){const c=e.getProps(),d=e.getVariantContext(!0)||{},f=[],p=new Set;let y={},b=1/0;for(let x=0;xb&&k,M=!1;const E=Array.isArray(S)?S:[S];let N=E.reduce(o,{});A===!1&&(N={});const{prevResolvedValues:C={}}=v,$={...C,...N},R=_=>{L=!0,p.has(_)&&(M=!0,p.delete(_)),v.needsAnimating[_]=!0};for(const _ in $){const j=N[_],I=C[_];if(y.hasOwnProperty(_))continue;let B=!1;bl(j)&&bl(I)?B=!K1(j,I):B=j!==I,B?j!==void 0?R(_):p.add(_):j!==void 0&&p.has(_)?R(_):v.protectedKeys[_]=!0}v.prevProp=S,v.prevResolvedValues=N,v.isActive&&(y={...y,...N}),r&&e.blockInitialAnimation&&(L=!1),L&&(!D||M)&&f.push(...E.map(_=>({animation:_,options:{type:g,...l}})))}if(p.size){const x={};p.forEach(g=>{const v=e.getBaseTarget(g);v!==void 0&&(x[g]=v)}),f.push({animation:x})}let w=!!f.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(w=!1),r=!1,w?t(f):Promise.resolve()}function a(l,u,c){var d;if(n[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(p=>{var y;return(y=p.animationState)===null||y===void 0?void 0:y.setActive(l,u)}),n[l].isActive=u;const f=s(c,l);for(const p in n)n[p].protectedKeys={};return f}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n}}function p6(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!K1(t,e):!1}function yr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function h6(){return{animate:yr(!0),whileInView:yr(),whileHover:yr(),whileTap:yr(),whileDrag:yr(),whileFocus:yr(),exit:yr()}}class m6 extends gr{constructor(t){super(t),t.animationState||(t.animationState=f6(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Jl(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let g6=0;class v6 extends gr{constructor(){super(...arguments),this.id=g6++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const i=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const y6={animation:{Feature:m6},exit:{Feature:v6}},dg=(e,t)=>Math.abs(e-t);function b6(e,t){const n=dg(e.x,t.x),r=dg(e.y,t.y);return Math.sqrt(n**2+r**2)}class xx{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=sc(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,p=b6(d.offset,{x:0,y:0})>=3;if(!f&&!p)return;const{point:y}=d,{timestamp:b}=tt;this.history.push({...y,timestamp:b});const{onStart:w,onMove:x}=this.handlers;f||(w&&w(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=ic(f,this.transformPagePoint),be.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:p,onSessionEnd:y,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=sc(d.type==="pointercancel"?this.lastMoveEventInfo:ic(f,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,w),y&&y(d,w)},!F1(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const s=tu(t),a=ic(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=tt;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,sc(a,this.history)),this.removeListeners=qn(Sn(this.contextWindow,"pointermove",this.handlePointerMove),Sn(this.contextWindow,"pointerup",this.handlePointerUp),Sn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Mn(this.updatePoint)}}function ic(e,t){return t?{point:t(e.point)}:e}function fg(e,t){return{x:e.x-t.x,y:e.y-t.y}}function sc({point:e},t){return{point:e,delta:fg(e,wx(t)),offset:fg(e,x6(t)),velocity:w6(t,.1)}}function x6(e){return e[0]}function wx(e){return e[e.length-1]}function w6(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=wx(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>er(t)));)n--;if(!r)return{x:0,y:0};const i=Pn(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Et(e){return e.max-e.min}function jd(e,t=0,n=.01){return Math.abs(e-t)<=n}function pg(e,t,n,r=.5){e.origin=r,e.originPoint=ke(t.min,t.max,e.origin),e.scale=Et(n)/Et(t),(jd(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=ke(n.min,n.max,e.origin)-e.originPoint,(jd(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Fi(e,t,n,r){pg(e.x,t.x,n.x,r?r.originX:void 0),pg(e.y,t.y,n.y,r?r.originY:void 0)}function hg(e,t,n){e.min=n.min+t.min,e.max=e.min+Et(t)}function C6(e,t,n){hg(e.x,t.x,n.x),hg(e.y,t.y,n.y)}function mg(e,t,n){e.min=t.min-n.min,e.max=e.min+Et(t)}function ji(e,t,n){mg(e.x,t.x,n.x),mg(e.y,t.y,n.y)}function S6(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?ke(n,e,r.max):Math.min(e,n)),e}function gg(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function P6(e,{top:t,left:n,bottom:r,right:o}){return{x:gg(e.x,n,o),y:gg(e.y,t,r)}}function vg(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=is(t.min,t.max-r,e.min):r>o&&(n=is(e.min,e.max-o,t.min)),ar(0,1,n)}function k6(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const _d=.35;function T6(e=_d){return e===!1?e=0:e===!0&&(e=_d),{x:yg(e,"left","right"),y:yg(e,"top","bottom")}}function yg(e,t,n){return{min:bg(e,t),max:bg(e,n)}}function bg(e,t){return typeof e=="number"?e:e[t]||0}const xg=()=>({translate:0,scale:1,origin:0,originPoint:0}),$o=()=>({x:xg(),y:xg()}),wg=()=>({min:0,max:0}),Be=()=>({x:wg(),y:wg()});function It(e){return[e("x"),e("y")]}function Cx({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function A6({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function M6(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function ac(e){return e===void 0||e===1}function Bd({scale:e,scaleX:t,scaleY:n}){return!ac(e)||!ac(t)||!ac(n)}function Sr(e){return Bd(e)||Sx(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Sx(e){return Cg(e.x)||Cg(e.y)}function Cg(e){return e&&e!=="0%"}function Pl(e,t,n){const r=e-n,o=t*r;return n+o}function Sg(e,t,n,r,o){return o!==void 0&&(e=Pl(e,o,r)),Pl(e,n,r)+t}function Vd(e,t=0,n=1,r,o){e.min=Sg(e.min,t,n,r,o),e.max=Sg(e.max,t,n,r,o)}function Px(e,{x:t,y:n}){Vd(e.x,t.translate,t.scale,t.originPoint),Vd(e.y,n.translate,n.scale,n.originPoint)}function L6(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a1.0000000000001||e<.999999999999?e:1}function Fn(e,t){e.min=e.min+t,e.max=e.max+t}function $g(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,s=ke(e.min,e.max,i);Vd(e,t[n],t[r],s,t.scale)}const D6=["x","scaleX","originX"],N6=["y","scaleY","originY"];function Eo(e,t){$g(e.x,t,D6),$g(e.y,t,N6)}function $x(e,t){return Cx(M6(e.getBoundingClientRect(),t))}function I6(e,t,n){const r=$x(e,n),{scroll:o}=t;return o&&(Fn(r.x,o.offset.x),Fn(r.y,o.offset.y)),r}const Ex=({current:e})=>e?e.ownerDocument.defaultView:null,R6=new WeakMap;class O6{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Be(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(tu(c,"page").point)},i=(c,d)=>{const{drag:f,dragPropagation:p,onDragStart:y}=this.getProps();if(f&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=_1(f),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),It(w=>{let x=this.getAxisMotionValue(w).get()||0;if(on.test(x)){const{projection:g}=this.visualElement;if(g&&g.layout){const v=g.layout.layoutBox[w];v&&(x=Et(v)*(parseFloat(x)/100))}}this.originPoint[w]=x}),y&&be.update(()=>y(c,d),!1,!0);const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:f,dragDirectionLock:p,onDirectionLock:y,onDrag:b}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:w}=d;if(p&&this.currentDirection===null){this.currentDirection=F6(w),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",d.point,w),this.updateAxis("y",d.point,w),this.visualElement.render(),b&&b(c,d)},a=(c,d)=>this.stop(c,d),l=()=>It(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new xx(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Ex(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&be.update(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!aa(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=S6(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&So(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=P6(o.layoutBox,n):this.constraints=!1,this.elastic=T6(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&It(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=k6(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!So(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=I6(r,o.root,this.visualElement.getTransformPagePoint());let s=$6(o.layout.layoutBox,i);if(n){const a=n(A6(s));this.hasMutatedConstraints=!!a,a&&(s=Cx(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=It(c=>{if(!aa(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const f=o?200:1e6,p=o?40:1e7,y={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,y)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Mp(t,r,0,n))}stopAnimation(){It(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){It(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){It(n=>{const{drag:r}=this.getProps();if(!aa(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-ke(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!So(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};It(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();o[s]=E6({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),It(s=>{if(!aa(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(ke(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;R6.set(this.visualElement,this);const t=this.visualElement.current,n=Sn(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();So(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),r();const s=wn(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(It(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=_d,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function aa(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function F6(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class j6 extends gr{constructor(t){super(t),this.removeGroupControls=Ne,this.removeListeners=Ne,this.controls=new O6(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ne}unmount(){this.removeGroupControls(),this.removeListeners()}}const Eg=e=>(t,n)=>{e&&be.update(()=>e(t,n))};class _6 extends gr{constructor(){super(...arguments),this.removePointerDownListener=Ne}onPointerDown(t){this.session=new xx(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ex(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Eg(t),onStart:Eg(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&be.update(()=>o(i,s))}}}mount(){this.removePointerDownListener=Sn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function B6(){const e=h.useContext(Ql);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=h.useId();return h.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}const Ta={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function kg(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const hi={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(te.test(e))e=parseFloat(e);else return e;const n=kg(e,t.target.x),r=kg(e,t.target.y);return`${n}% ${r}%`}},V6={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=lr.parse(e);if(o.length>5)return r;const i=lr.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const u=ke(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),i(o)}};class K6 extends ee.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;X5(z6),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Ta.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||be.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function kx(e){const[t,n]=B6(),r=h.useContext(gp);return ee.createElement(K6,{...e,layoutGroup:r,switchLayoutGroup:h.useContext(C1),isPresent:t,safeToRemove:n})}const z6={borderRadius:{...hi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:hi,borderTopRightRadius:hi,borderBottomLeftRadius:hi,borderBottomRightRadius:hi,boxShadow:V6},Tx=["TopLeft","TopRight","BottomLeft","BottomRight"],W6=Tx.length,Tg=e=>typeof e=="string"?parseFloat(e):e,Ag=e=>typeof e=="number"||te.test(e);function U6(e,t,n,r,o,i){o?(e.opacity=ke(0,n.opacity!==void 0?n.opacity:1,H6(r)),e.opacityExit=ke(t.opacity!==void 0?t.opacity:1,0,G6(r))):i&&(e.opacity=ke(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(is(e,t,r))}function Lg(e,t){e.min=t.min,e.max=t.max}function Dt(e,t){Lg(e.x,t.x),Lg(e.y,t.y)}function Dg(e,t,n,r,o){return e-=t,e=Pl(e,1/n,r),o!==void 0&&(e=Pl(e,1/o,r)),e}function Y6(e,t=0,n=1,r=.5,o,i=e,s=e){if(on.test(t)&&(t=parseFloat(t),t=ke(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=ke(i.min,i.max,r);e===i&&(a-=t),e.min=Dg(e.min,t,n,a,o),e.max=Dg(e.max,t,n,a,o)}function Ng(e,t,[n,r,o],i,s){Y6(e,t[n],t[r],t[o],t.scale,i,s)}const X6=["x","scaleX","originX"],Q6=["y","scaleY","originY"];function Ig(e,t,n,r){Ng(e.x,t,X6,n?n.x:void 0,r?r.x:void 0),Ng(e.y,t,Q6,n?n.y:void 0,r?r.y:void 0)}function Rg(e){return e.translate===0&&e.scale===1}function Mx(e){return Rg(e.x)&&Rg(e.y)}function Z6(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Lx(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Og(e){return Et(e.x)/Et(e.y)}class J6{constructor(){this.members=[]}add(t){Lp(this.members,t),t.scheduleRender()}remove(t){if(Dp(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Fg(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:u,rotateY:c}=n;l&&(r+=`rotate(${l}deg) `),u&&(r+=`rotateX(${u}deg) `),c&&(r+=`rotateY(${c}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(r+=`scale(${s}, ${a})`),r||"none"}const q6=(e,t)=>e.depth-t.depth;class eT{constructor(){this.children=[],this.isDirty=!1}add(t){Lp(this.children,t),this.isDirty=!0}remove(t){Dp(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(q6),this.isDirty=!1,this.children.forEach(t)}}function tT(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Mn(r),e(i-t))};return be.read(r,!0),()=>Mn(r)}function nT(e){window.MotionDebug&&window.MotionDebug.record(e)}function rT(e){return e instanceof SVGElement&&e.tagName!=="svg"}function oT(e,t,n){const r=yt(e)?e:zo(e);return r.start(Mp("",r,t,n)),r.animation}const jg=["","X","Y","Z"],iT={visibility:"hidden"},_g=1e3;let sT=0;const Pr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Dx({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=sT++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Pr.totalNodes=Pr.resolvedTargetDeltas=Pr.recalculatedProjection=0,this.nodes.forEach(uT),this.nodes.forEach(hT),this.nodes.forEach(mT),this.nodes.forEach(cT),nT(Pr)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=tT(f,250),Ta.hasAnimatedSinceResize&&(Ta.hasAnimatedSinceResize=!1,this.nodes.forEach(Vg))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:p,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||c.getDefaultTransition()||xT,{onLayoutAnimationStart:w,onLayoutAnimationComplete:x}=c.getProps(),g=!this.targetLayout||!Lx(this.targetLayout,y)||p,v=!f&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||f&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,v);const S={...Ap(b,"layout"),onPlay:w,onComplete:x};(c.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else f||Vg(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Mn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(gT),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(dT),this.sharedNodes.forEach(vT)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,be.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){be.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const k=S/1e3;Kg(d.x,s.x,k),Kg(d.y,s.y,k),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ji(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),yT(this.relativeTarget,this.relativeTargetOrigin,f,k),v&&Z6(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=Be()),Dt(v,this.relativeTarget)),b&&(this.animationValues=c,U6(c,u,this.latestValues,k,g,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Mn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=be.update(()=>{Ta.hasAnimatedSinceResize=!0,this.currentAnimation=oT(0,_g,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(_g),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&Nx(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Be();const d=Et(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=Et(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Dt(a,l),Eo(a,c),Fi(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new J6),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const u={};for(let c=0;c{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Bg),this.root.sharedNodes.clear()}}}function aT(e){e.updateLayout()}function lT(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;i==="size"?It(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],p=Et(f);f.min=r[d].min,f.max=f.min+p}):Nx(i,n.layoutBox,r)&&It(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],p=Et(r[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const a=$o();Fi(a,r,n.layoutBox);const l=$o();s?Fi(l,e.applyTransform(o,!0),n.measuredBox):Fi(l,r,n.layoutBox);const u=!Mx(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const y=Be();ji(y,n.layoutBox,f.layoutBox);const b=Be();ji(b,r,p.layoutBox),Lx(y,b)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=y,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function uT(e){Pr.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function cT(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function dT(e){e.clearSnapshot()}function Bg(e){e.clearMeasurements()}function fT(e){e.isLayoutDirty=!1}function pT(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Vg(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function hT(e){e.resolveTargetDelta()}function mT(e){e.calcProjection()}function gT(e){e.resetRotation()}function vT(e){e.removeLeadSnapshot()}function Kg(e,t,n){e.translate=ke(t.translate,0,n),e.scale=ke(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function zg(e,t,n,r){e.min=ke(t.min,n.min,r),e.max=ke(t.max,n.max,r)}function yT(e,t,n,r){zg(e.x,t.x,n.x,r),zg(e.y,t.y,n.y,r)}function bT(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const xT={duration:.45,ease:[.4,0,.1,1]},Wg=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),Ug=Wg("applewebkit/")&&!Wg("chrome/")?Math.round:Ne;function Hg(e){e.min=Ug(e.min),e.max=Ug(e.max)}function wT(e){Hg(e.x),Hg(e.y)}function Nx(e,t,n){return e==="position"||e==="preserve-aspect"&&!jd(Og(t),Og(n),.2)}const CT=Dx({attachResizeListener:(e,t)=>wn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),lc={current:void 0},Ix=Dx({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!lc.current){const e=new CT({});e.mount(window),e.setOptions({layoutScroll:!0}),lc.current=e}return lc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),ST={pan:{Feature:_6},drag:{Feature:j6,ProjectionNode:Ix,MeasureLayout:kx}},PT=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function $T(e){const t=PT.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function Kd(e,t,n=1){const[r,o]=$T(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return gx(s)?parseFloat(s):s}else return Ld(o)?Kd(o,t,n+1):o}function ET(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(o=>{const i=o.get();if(!Ld(i))return;const s=Kd(i,r);s&&o.set(s)});for(const o in t){const i=t[o];if(!Ld(i))continue;const s=Kd(i,r);s&&(t[o]=s,n||(n={}),n[o]===void 0&&(n[o]=i))}return{target:t,transitionEnd:n}}const kT=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Rx=e=>kT.has(e),TT=e=>Object.keys(e).some(Rx),Gg=e=>e===Gr||e===te,Yg=(e,t)=>parseFloat(e.split(", ")[t]),Xg=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Yg(o[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?Yg(i[1],e):0}},AT=new Set(["x","y","z"]),MT=Ss.filter(e=>!AT.has(e));function LT(e){const t=[];return MT.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Wo={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Xg(4,13),y:Xg(5,14)};Wo.translateX=Wo.x;Wo.translateY=Wo.y;const DT=(e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:s}=i,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{a[u]=Wo[u](r,i)}),t.render();const l=t.measureViewportBox();return n.forEach(u=>{const c=t.getValue(u);c&&c.jump(a[u]),e[u]=Wo[u](l,i)}),e},NT=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(Rx);let i=[],s=!1;const a=[];if(o.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let c=n[l],d=pi(c);const f=t[l];let p;if(bl(f)){const y=f.length,b=f[0]===null?1:0;c=f[b],d=pi(c);for(let w=b;w=0?window.pageYOffset:null,u=DT(t,e,a);return i.length&&i.forEach(([c,d])=>{e.getValue(c).set(d)}),e.render(),Zl&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function IT(e,t,n,r){return TT(t)?NT(e,t,n,r):{target:t,transitionEnd:r}}const RT=(e,t,n,r)=>{const o=ET(e,t,r);return t=o.target,r=o.transitionEnd,IT(e,t,n,r)},zd={current:null},Ox={current:!1};function OT(){if(Ox.current=!0,!!Zl)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>zd.current=e.matches;e.addListener(t),t()}else zd.current=!1}function FT(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],s=n[o];if(yt(i))e.addValue(o,i),Sl(r)&&r.add(o);else if(yt(s))e.addValue(o,zo(i,{owner:e})),Sl(r)&&r.remove(o);else if(s!==i)if(e.hasValue(o)){const a=e.getValue(o);!a.hasAnimated&&a.set(i)}else{const a=e.getStaticValue(o);e.addValue(o,zo(a!==void 0?a:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const Qg=new WeakMap,Fx=Object.keys(os),jT=Fx.length,Zg=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],_T=mp.length;class BT{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,visualState:i},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>be.render(this.render,!1,!0);const{latestValues:a,renderState:l}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.isControllingVariants=ql(n),this.isVariantNode=w1(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(n,{});for(const d in c){const f=c[d];a[d]!==void 0&&yt(f)&&(f.set(a[d],!1),Sl(u)&&u.add(d))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,Qg.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Ox.current||OT(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:zd.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Qg.delete(this.current),this.projection&&this.projection.unmount(),Mn(this.notifyUpdate),Mn(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Hr.has(t),o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&be.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,o,i){let s,a;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,layoutScroll:f,layoutRoot:p})}return a}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Be()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=zo(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,o=typeof r=="string"||typeof r=="object"?(n=Sp(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!yt(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Np),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class jx extends BT{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:o},i){let s=r6(r,t||{},this);if(o&&(n&&(n=o(n)),r&&(r=o(r)),s&&(s=o(s))),i){t6(this,r,s);const a=RT(this,r,s,n);n=a.transitionEnd,r=a.target}return{transition:t,transitionEnd:n,...r}}}function VT(e){return window.getComputedStyle(e)}class KT extends jx{readValueFromInstance(t,n){if(Hr.has(n)){const r=Tp(n);return r&&r.default||0}else{const r=VT(t),o=($1(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return $x(t,n)}build(t,n,r,o){yp(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Cp(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;yt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){L1(t,n,r,o)}}class zT extends jx{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Hr.has(n)){const r=Tp(n);return r&&r.default||0}return n=D1.has(n)?n:pp(n),t.getAttribute(n)}measureInstanceViewportBox(){return Be()}scrapeMotionValuesFromProps(t,n){return I1(t,n)}build(t,n,r,o){xp(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){N1(t,n,r,o)}mount(t){this.isSVGTag=wp(t.tagName),super.mount(t)}}const WT=(e,t)=>vp(e)?new zT(t,{enableHardwareAcceleration:!1}):new KT(t,{enableHardwareAcceleration:!0}),UT={layout:{ProjectionNode:Ix,MeasureLayout:kx}},HT={...y6,...jE,...ST,...UT},ur=G5((e,t)=>$E(e,t,HT,WT));function _x(){const e=h.useRef(!1);return fp(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function GT(){const e=_x(),[t,n]=h.useState(0),r=h.useCallback(()=>{e.current&&n(t+1)},[t]);return[h.useCallback(()=>be.postRender(r),[r]),t]}class YT extends h.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function XT({children:e,isPresent:t}){const n=h.useId(),r=h.useRef(null),o=h.useRef({width:0,height:0,top:0,left:0});return h.useInsertionEffect(()=>{const{width:i,height:s,top:a,left:l}=o.current;if(t||!r.current||!i||!s)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${i}px !important; @@ -61,7 +61,7 @@ Error generating stack: `+i.message+` top: ${a}px !important; left: ${l}px !important; } - `),()=>{document.head.removeChild(u)}},[t]),h.createElement(YT,{isPresent:t,childRef:r,sizeRef:o},h.cloneElement(e,{ref:r}))}const uc=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=R1(QT),l=h.useId(),u=h.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:c=>{a.set(c,!0);for(const d of a.values())if(!d)return;r&&r()},register:c=>(a.set(c,!1),()=>a.delete(c))}),i?void 0:[n]);return h.useMemo(()=>{a.forEach((c,d)=>a.set(d,!1))},[n]),h.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=h.createElement(XT,{isPresent:n},e)),h.createElement(Ql.Provider,{value:u},e)};function QT(){return new Map}function ZT(e){return h.useEffect(()=>()=>e(),[])}const $r=e=>e.key||"";function qT(e,t){e.forEach(n=>{const r=$r(n);t.set(r,n)})}function JT(e){const t=[];return h.Children.forEach(e,n=>{h.isValidElement(n)&&t.push(n)}),t}const ks=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{const a=h.useContext(gp).forceRender||GT()[0],l=_x(),u=JT(e);let c=u;const d=h.useRef(new Map).current,f=h.useRef(c),p=h.useRef(new Map).current,y=h.useRef(!0);if(fp(()=>{y.current=!1,qT(u,p),f.current=c}),ZT(()=>{y.current=!0,p.clear(),d.clear()}),y.current)return h.createElement(h.Fragment,null,c.map(g=>h.createElement(uc,{key:$r(g),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:i,mode:s},g)));c=[...c];const b=f.current.map($r),w=u.map($r),x=b.length;for(let g=0;g{if(w.indexOf(v)!==-1)return;const S=p.get(v);if(!S)return;const k=b.indexOf(v);let A=g;if(!A){const D=()=>{d.delete(v);const m=Array.from(p.keys()).filter(L=>!w.includes(L));if(m.forEach(L=>p.delete(L)),f.current=u.filter(L=>{const M=$r(L);return M===v||m.includes(M)}),!d.size){if(l.current===!1)return;a(),r&&r()}};A=h.createElement(uc,{key:$r(S),isPresent:!1,onExitComplete:D,custom:t,presenceAffectsLayout:i,mode:s},S),d.set(v,A)}c.splice(k,0,A)}),c=c.map(g=>{const v=g.key;return d.has(v)?g:h.createElement(uc,{key:$r(g),isPresent:!0,presenceAffectsLayout:i,mode:s},g)}),h.createElement(h.Fragment,null,d.size?c:c.map(g=>h.cloneElement(g)))};var jn={ease:[.36,.66,.4,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1],spring:[.155,1.105,.295,1.12],springOut:[.57,-.15,.62,.07],softSpring:[.16,1.11,.3,1.02]},ss={scaleSpring:{enter:{transform:"scale(1)",opacity:1,transition:{type:"spring",bounce:0,duration:.3}},exit:{transform:"scale(0.6)",opacity:0,transition:{type:"easeOut",duration:.2}}},scaleSpringOpacity:{initial:{opacity:0,transform:"scale(0.8)"},enter:{opacity:1,transform:"scale(1)",transition:{type:"spring",bounce:0,duration:.3}},exit:{opacity:0,transform:"scale(0.7)",transition:{type:"easeOut",bounce:0,duration:.18}}},scale:{enter:{scale:1},exit:{scale:.95}},scaleFadeIn:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.25,ease:jn.easeIn}},exit:{transform:"scale(0.95)",opacity:0,transition:{duration:.2,ease:jn.easeOut}}},scaleInOut:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.4,ease:jn.ease}},exit:{transform:"scale(1.03)",opacity:0,transition:{duration:.3,ease:jn.ease}}},fade:{enter:{opacity:1,transition:{duration:.4,ease:jn.ease}},exit:{opacity:0,transition:{duration:.3,ease:jn.ease}}},collapse:{enter:{opacity:1,height:"auto",transition:{height:{type:"spring",bounce:0,duration:.3},opacity:{easings:"ease",duration:.4}}},exit:{opacity:0,height:0,transition:{easings:"ease",duration:.3}}}};function Bx(e){return null}Bx.getCollectionNode=function*(t,n){let{childItems:r,title:o,children:i}=t,s=t.title||t.children,a=t.textValue||(typeof s=="string"?s:"")||t["aria-label"]||"";!a&&!(n!=null&&n.suppressTextValueWarning)&&console.warn(" with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:s,textValue:a,"aria-label":t["aria-label"],hasChildNodes:e8(t),*childNodes(){if(r)for(let l of r)yield{type:"item",value:l};else if(o){let l=[];ee.Children.forEach(i,u=>{l.push({type:"item",element:u})}),yield*l}}}};function e8(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&ee.Children.count(e.children)>0)}let Vx=Bx;class t8{build(t,n){return this.context=n,qg(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");for(let o of t.items)yield*this.getFullNode({value:o},{renderer:n})}else{let o=[];ee.Children.forEach(n,s=>{o.push(s)});let i=0;for(let s of o){let a=this.getFullNode({element:s,index:i},{});for(let l of a)i++,yield l}}}getKey(t,n,r,o){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${o}${n.key}`;let i=n.value;if(i!=null){var s;let a=(s=i.key)!==null&&s!==void 0?s:i.id;if(a==null)throw new Error("No key found for item");return a}return o?`${o}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,o){let i=t.element;if(!i&&t.value&&n&&n.renderer){let l=this.cache.get(t.value);if(l&&(!l.shouldInvalidate||!l.shouldInvalidate(this.context))){l.index=t.index,l.parentKey=o?o.key:null,yield l;return}i=n.renderer(t.value)}if(ee.isValidElement(i)){let l=i.type;if(typeof l!="function"&&typeof l.getCollectionNode!="function"){let f=typeof i.type=="function"?i.type.name:i.type;throw new Error(`Unknown element <${f}> in collection.`)}let u=l.getCollectionNode(i.props,this.context),c=t.index,d=u.next();for(;!d.done&&d.value;){let f=d.value;t.index=c;let p=f.key;p||(p=f.element?null:this.getKey(i,t,n,r));let b=[...this.getFullNode({...f,key:p,index:c,wrapper:n8(t.wrapper,f.wrapper)},this.getChildState(n,f),r?`${r}${i.key}`:i.key,o)];for(let w of b){if(w.value=f.value||t.value,w.value&&this.cache.set(w.value,w),t.type&&w.type!==t.type)throw new Error(`Unsupported type <${cc(w.type)}> in <${cc(o.type)}>. Only <${cc(t.type)}> is supported.`);c++,yield w}d=u.next(b)}return}if(t.key==null)return;let s=this,a={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:t.value,level:o?o.level+1:0,index:t.index,rendered:t.rendered,textValue:t.textValue,"aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes,childNodes:qg(function*(){if(!t.hasChildNodes)return;let l=0;for(let u of t.childNodes()){u.key!=null&&(u.key=`${a.key}${u.key}`),u.index=l;let c=s.getFullNode(u,s.getChildState(n,u),a.key,a);for(let d of c)l++,yield d}})};yield a}constructor(){this.cache=new WeakMap}}function qg(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function n8(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function cc(e){return e[0].toUpperCase()+e.slice(1)}function Kx(e,t,n){let r=h.useMemo(()=>new t8,[]),{children:o,items:i,collection:s}=e;return h.useMemo(()=>{if(s)return s;let l=r.build({children:o,items:i},n);return t(l)},[r,o,i,s,n,t])}function ru(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function r8(e){return o8(e,0)}function o8(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function dc(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...Jg(e,t),t],o=[...Jg(e,n),n],i=r.slice(0,o.length).findIndex((s,a)=>s!==o[a]);return i!==-1?(t=r[i],n=o[i],t.index-n.index):r.findIndex(s=>s===n)>=0?1:(o.findIndex(s=>s===t)>=0,-1)}function Jg(e,t){let n=[];for(;(t==null?void 0:t.parentKey)!=null;)t=e.getItem(t.parentKey),n.unshift(t);return n}const ev=new WeakMap;function Ip(e){let t=ev.get(e);if(t!=null)return t;t=0;let n=r=>{for(let o of r)o.type==="section"?n(ru(o,e)):t++};return n(e),ev.set(e,t),t}class Ut extends Set{constructor(t,n,r){super(t),t instanceof Ut?(this.anchorKey=n||t.anchorKey,this.currentKey=r||t.currentKey):(this.anchorKey=n,this.currentKey=r)}}function i8(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function zx(e){let{selectionMode:t="none",disallowEmptySelection:n,allowDuplicateSelectionEvents:r,selectionBehavior:o="toggle",disabledBehavior:i="all"}=e,s=h.useRef(!1),[,a]=h.useState(!1),l=h.useRef(null),u=h.useRef(null),[,c]=h.useState(null),d=h.useMemo(()=>tv(e.selectedKeys),[e.selectedKeys]),f=h.useMemo(()=>tv(e.defaultSelectedKeys,new Ut),[e.defaultSelectedKeys]),[p,y]=pr(d,f,e.onSelectionChange),b=h.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[w,x]=h.useState(o);o==="replace"&&w==="toggle"&&typeof p=="object"&&p.size===0&&x("replace");let g=h.useRef(o);return h.useEffect(()=>{o!==g.current&&(x(o),g.current=o)},[o]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:w,setSelectionBehavior:x,get isFocused(){return s.current},setFocused(v){s.current=v,a(v)},get focusedKey(){return l.current},get childFocusStrategy(){return u.current},setFocusedKey(v,S="first"){l.current=v,u.current=S,c(v)},selectedKeys:p,setSelectedKeys(v){(r||!i8(v,p))&&y(v)},disabledKeys:b,disabledBehavior:i}}function tv(e,t){return e?e==="all"?"all":new Ut(e):t}class Wx{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){return this.state.selectionMode==="none"?!1:(t=this.getKey(t),this.state.selectedKeys==="all"?this.canSelectItem(t):this.state.selectedKeys.has(t))}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&dc(this.collection,r,t)<0)&&(t=r)}return t==null?void 0:t.key}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&dc(this.collection,r,t)>0)&&(t=r)}return t==null?void 0:t.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}t=this.getKey(t);let n;if(this.state.selectedKeys==="all")n=new Ut([t],t,t);else{let r=this.state.selectedKeys,o=r.anchorKey||t;n=new Ut(r,o,t);for(let i of this.getKeyRange(o,r.currentKey||t))n.delete(i);for(let i of this.getKeyRange(t,o))this.canSelectItem(i)&&n.add(i)}this.state.setSelectedKeys(n)}getKeyRange(t,n){let r=this.collection.getItem(t),o=this.collection.getItem(n);return r&&o?dc(this.collection,r,o)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){let r=[],o=t;for(;o;){let i=this.collection.getItem(o);if((i&&i.type==="item"||i.type==="cell"&&this.allowsCellSelection)&&r.push(o),o===n)return r;o=this.collection.getKeyAfter(o)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}if(t=this.getKey(t),t==null)return;let n=new Ut(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none"||(t=this.getKey(t),t==null))return;let n=this.canSelectItem(t)?new Ut([t],t,t):new Ut;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new Ut;for(let r of t)if(r=this.getKey(r),r!=null&&(n.add(r),this.selectionMode==="single"))break;this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r;){if(this.canSelectItem(r)){let o=this.collection.getItem(r);o.type==="item"&&t.push(r),o.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&n(r8(ru(o,this.collection)).key)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new Ut)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){return this.state.disabledKeys.has(t)&&this.state.disabledBehavior==="all"}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}constructor(t,n,r){this.collection=t,this.state=n;var o;this.allowsCellSelection=(o=r==null?void 0:r.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null}}class s8{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}constructor(t,{expandedKeys:n}={}){this.keyMap=new Map,this.iterable=t,n=n||new Set;let r=s=>{if(this.keyMap.set(s.key,s),s.childNodes&&(s.type==="section"||n.has(s.key)))for(let a of s.childNodes)r(a)};for(let s of t)r(s);let o,i=0;for(let[s,a]of this.keyMap)o?(o.nextKey=s,a.prevKey=o.key):(this.firstKey=s,a.prevKey=void 0),a.type==="item"&&(a.index=i++),o=a,o.nextKey=void 0;this.lastKey=o==null?void 0:o.key}}function a8(e){let[t,n]=pr(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,e.onExpandedChange),r=zx(e),o=h.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=Kx(e,h.useCallback(a=>new s8(a,{expandedKeys:t}),[t]),null);return h.useEffect(()=>{r.focusedKey!=null&&!i.getItem(r.focusedKey)&&r.setFocusedKey(null)},[i,r.focusedKey]),{collection:i,expandedKeys:t,disabledKeys:o,toggleKey:a=>{n(l8(t,a))},setExpandedKeys:n,selectionManager:new Wx(i,r)}}function l8(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}function u8(e){let t=ln(e,{enabled:typeof e.elementType=="string"}),n;return e.orientation==="vertical"&&(n="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":n}}:{separatorProps:t}}function c8(e){const{as:t,className:n,orientation:r,...o}=e;let i=t||"hr";i==="hr"&&r==="vertical"&&(i="div");const{separatorProps:s}=u8({elementType:typeof i=="string"?i:"hr",orientation:r}),a=h.useMemo(()=>Z$({orientation:r,className:n}),[r,n]),l=h.useCallback((u={})=>({className:a,role:"separator","data-orientation":r,...s,...o,...u}),[a,r,s,o]);return{Component:i,getDividerProps:l}}var Ux=he((e,t)=>{const{Component:n,getDividerProps:r}=c8({...e});return P.jsx(n,{ref:t,...r()})});Ux.displayName="NextUI.Divider";var Hx=Ux,Rp=e=>{const t={top:{originY:1},bottom:{originY:0},left:{originX:1},right:{originX:0},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1}};return(t==null?void 0:t[e])||{}},Gx=e=>({top:"top",bottom:"bottom",left:"left",right:"right","top-start":"top start","top-end":"top end","bottom-start":"bottom start","bottom-end":"bottom end","left-start":"left top","left-end":"left bottom","right-start":"right top","right-end":"right bottom"})[e],d8=(e,t)=>{if(t.includes("-")){const[n]=t.split("-");if(n.includes(e))return!1}return!0},$l=(e,t)=>{if(t.includes("-")){const[,n]=t.split("-");return`${e}-${n}`}return e},mi=new WeakMap,Nt=[];function f8(e,t=document.body){let n=new Set(e),r=new Set,o=l=>{for(let f of l.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(f);let u=f=>{const p=f.parentElement;if(n.has(f)||r.has(p)&&p.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let y of n)if(f.contains(y))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},c=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),d=u(l);if(d===NodeFilter.FILTER_ACCEPT&&i(l),d!==NodeFilter.FILTER_REJECT){let f=c.nextNode();for(;f!=null;)i(f),f=c.nextNode()}},i=l=>{var u;let c=(u=mi.get(l))!=null?u:0;l.getAttribute("aria-hidden")==="true"&&c===0||(c===0&&l.setAttribute("aria-hidden","true"),r.add(l),mi.set(l,c+1))};Nt.length&&Nt[Nt.length-1].disconnect(),o(t);let s=new MutationObserver(l=>{for(let u of l)if(!(u.type!=="childList"||u.addedNodes.length===0)&&![...n,...r].some(c=>c.contains(u.target))){for(let c of u.removedNodes)c instanceof Element&&(n.delete(c),r.delete(c));for(let c of u.addedNodes)(c instanceof HTMLElement||c instanceof SVGElement)&&(c.dataset.liveAnnouncer==="true"||c.dataset.reactAriaTopLayer==="true")?n.add(c):c instanceof Element&&o(c)}});s.observe(t,{childList:!0,subtree:!0});let a={observe(){s.observe(t,{childList:!0,subtree:!0})},disconnect(){s.disconnect()}};return Nt.push(a),()=>{s.disconnect();for(let l of r){let u=mi.get(l);u!=null&&(u===1?(l.removeAttribute("aria-hidden"),mi.delete(l)):mi.set(l,u-1))}a===Nt[Nt.length-1]?(Nt.pop(),Nt.length&&Nt[Nt.length-1].observe()):Nt.splice(Nt.indexOf(a),1)}}var p8=()=>P.jsxs("svg",{"aria-hidden":"true",fill:"none",height:"80%",role:"presentation",viewBox:"0 0 24 24",width:"80%",children:[P.jsx("path",{d:"M12 2C9.38 2 7.25 4.13 7.25 6.75C7.25 9.32 9.26 11.4 11.88 11.49C11.96 11.48 12.04 11.48 12.1 11.49C12.12 11.49 12.13 11.49 12.15 11.49C12.16 11.49 12.16 11.49 12.17 11.49C14.73 11.4 16.74 9.32 16.75 6.75C16.75 4.13 14.62 2 12 2Z",fill:"currentColor"}),P.jsx("path",{d:"M17.0809 14.1489C14.2909 12.2889 9.74094 12.2889 6.93094 14.1489C5.66094 14.9989 4.96094 16.1489 4.96094 17.3789C4.96094 18.6089 5.66094 19.7489 6.92094 20.5889C8.32094 21.5289 10.1609 21.9989 12.0009 21.9989C13.8409 21.9989 15.6809 21.5289 17.0809 20.5889C18.3409 19.7389 19.0409 18.5989 19.0409 17.3589C19.0309 16.1289 18.3409 14.9889 17.0809 14.1489Z",fill:"currentColor"})]}),[zL,h8]=Yo({name:"AvatarGroupContext",strict:!1}),m8=globalThis!=null&&globalThis.document?h.useLayoutEffect:h.useEffect;function Yx(e={}){const{loading:t,src:n,srcSet:r,onLoad:o,onError:i,crossOrigin:s,sizes:a,ignoreFallback:l}=e,[u,c]=h.useState("pending");h.useEffect(()=>{c(n?"loading":"pending")},[n]);const d=h.useRef(),f=h.useCallback(()=>{if(!n)return;p();const y=new Image;y.src=n,s&&(y.crossOrigin=s),r&&(y.srcset=r),a&&(y.sizes=a),t&&(y.loading=t),y.onload=b=>{p(),c("loaded"),o==null||o(b)},y.onerror=b=>{p(),c("failed"),i==null||i(b)},d.current=y},[n,s,r,a,o,i,t]),p=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)};return m8(()=>{if(!l)return u==="loading"&&f(),()=>{p()}},[u,f,l]),l?"loaded":u}function g8(e={}){var t,n,r,o,i;const s=h8(),a=!!s,{as:l,ref:u,src:c,name:d,icon:f,classNames:p,fallback:y,alt:b=d||"avatar",imgRef:w,color:x=(t=s==null?void 0:s.color)!=null?t:"default",radius:g=(n=s==null?void 0:s.radius)!=null?n:"full",size:v=(r=s==null?void 0:s.size)!=null?r:"md",isBordered:S=(o=s==null?void 0:s.isBordered)!=null?o:!1,isDisabled:k=(i=s==null?void 0:s.isDisabled)!=null?i:!1,isFocusable:A=!1,getInitials:D=t5,ignoreFallback:m=!1,showFallback:L=!1,ImgComponent:M="img",imgProps:E,className:N,onError:C,...$}=e,R=l||"span",_=Oe(u),j=Oe(w),{isFocusVisible:I,isFocused:B,focusProps:F}=sr(),{isHovered:T,hoverProps:O}=un({isDisabled:k}),W=Yx({src:c,onError:C,ignoreFallback:m})==="loaded",U=(!c||!W)&&L,Q=h.useMemo(()=>{var ie;return J$({color:x,radius:g,size:v,isBordered:S,isDisabled:k,isInGroup:a,isInGridGroup:(ie=s==null?void 0:s.isGrid)!=null?ie:!1})},[x,g,v,S,k,a,s==null?void 0:s.isGrid]),K=ne(p==null?void 0:p.base,N),G=h.useMemo(()=>A||l==="button",[A,l]),Z=h.useCallback((ie={})=>({ref:_,tabIndex:G?0:-1,"data-hover":H(T),"data-focus":H(B),"data-focus-visible":H(I),className:Q.base({class:ne(K,ie==null?void 0:ie.className)}),...Y($,O,G?F:{})}),[G,Q,K,F,$]),re=h.useCallback((ie={})=>({ref:j,src:c,"data-loaded":H(W),className:Q.img({class:p==null?void 0:p.img}),...Y(E,ie)}),[Q,W,E,c,j]);return{Component:R,ImgComponent:M,src:c,alt:b,icon:f,name:d,imgRef:j,slots:Q,classNames:p,fallback:y,isImgLoaded:W,showFallback:U,ignoreFallback:m,getInitials:D,getAvatarProps:Z,getImageProps:re}}var Xx=he((e,t)=>{const{Component:n,ImgComponent:r,src:o,icon:i=P.jsx(p8,{}),alt:s,classNames:a,slots:l,name:u,showFallback:c,fallback:d,getInitials:f,getAvatarProps:p,getImageProps:y}=g8({...e,ref:t}),b=h.useMemo(()=>!c&&o?null:d?P.jsx("div",{"aria-label":s,className:l.fallback({class:a==null?void 0:a.fallback}),role:"img",children:d}):u?P.jsx("span",{"aria-label":s,className:l.name({class:a==null?void 0:a.name}),role:"img",children:f(u)}):P.jsx("span",{"aria-label":s,className:l.icon({class:a==null?void 0:a.icon}),role:"img",children:i}),[c,o,d,u,a]);return P.jsxs(n,{...p(),children:[o&&P.jsx(r,{...y(),alt:s}),b]})});Xx.displayName="NextUI.Avatar";var Qx=Xx,[WL,v8]=Yo({name:"ButtonGroupContext",strict:!1});function Fp(e,t){let{elementType:n="button",isDisabled:r,onPress:o,onPressStart:i,onPressEnd:s,onPressChange:a,preventFocusOnPress:l,allowFocusWhenDisabled:u,onClick:c,href:d,target:f,rel:p,type:y="button",allowTextSelectionOnPress:b}=e,w;n==="button"?w={type:y,disabled:r}:w={role:"button",tabIndex:r?void 0:0,href:n==="a"&&r?void 0:d,target:n==="a"?f:void 0,type:n==="input"?y:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?p:void 0};let{pressProps:x,isPressed:g}=cp({onPressStart:i,onPressEnd:s,onPressChange:a,onPress:o,isDisabled:r,preventFocusOnPress:l,allowTextSelectionOnPress:b,ref:t}),{focusableProps:v}=ap(e,t);u&&(v.tabIndex=r?-1:v.tabIndex);let S=Y(v,x,hr(e,{labelable:!0}));return{isPressed:g,buttonProps:Y(w,S,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:k=>{c==null||c(k)}})}}var y8=(e,t,n)=>Math.min(Math.max(e,t),n),Zx=e=>{const{ripples:t=[],motionProps:n,color:r="currentColor",style:o,onClear:i}=e;return P.jsx(P.Fragment,{children:t.map(s=>{const a=y8(.01*s.size,.2,s.size>100?.75:.5);return P.jsx(ks,{mode:"popLayout",children:P.jsx(ur.span,{animate:{transform:"scale(2)",opacity:0},className:"nextui-ripple",exit:{opacity:0},initial:{transform:"scale(0)",opacity:.35},style:{position:"absolute",backgroundColor:r,borderRadius:"100%",transformOrigin:"center",pointerEvents:"none",zIndex:10,top:s.y,left:s.x,width:`${s.size}px`,height:`${s.size}px`,...o},transition:{duration:a},onAnimationComplete:()=>{i(s.key)},...n})},s.key)})})};Zx.displayName="NextUI.Ripple";var qx=Zx;function Jx(e={}){const[t,n]=h.useState([]),r=h.useCallback(i=>{const s=i.currentTarget,a=Math.max(s.clientWidth,s.clientHeight),l=s.getBoundingClientRect();n(u=>[...u,{key:s5(u.length.toString()),size:a,x:i.clientX-l.x-a/2,y:i.clientY-l.y-a/2}])},[]),o=h.useCallback(i=>{n(s=>s.filter(a=>a.key!==i))},[]);return{ripples:t,onClick:r,onClear:o,...e}}function b8(e){var t,n,r,o,i,s,a,l;const u=v8(),c=!!u,{ref:d,as:f,children:p,startContent:y,endContent:b,autoFocus:w,className:x,spinner:g,fullWidth:v=(t=u==null?void 0:u.fullWidth)!=null?t:!1,size:S=(n=u==null?void 0:u.size)!=null?n:"md",color:k=(r=u==null?void 0:u.color)!=null?r:"default",variant:A=(o=u==null?void 0:u.variant)!=null?o:"solid",disableAnimation:D=(i=u==null?void 0:u.disableAnimation)!=null?i:!1,radius:m=u==null?void 0:u.radius,disableRipple:L=(s=u==null?void 0:u.disableRipple)!=null?s:!1,isDisabled:M=(a=u==null?void 0:u.isDisabled)!=null?a:!1,isIconOnly:E=(l=u==null?void 0:u.isIconOnly)!=null?l:!1,isLoading:N=!1,spinnerPlacement:C="start",onPress:$,onClick:R,..._}=e,j=f||"button",I=typeof j=="string",B=Oe(d),{isFocusVisible:F,isFocused:T,focusProps:O}=sr({autoFocus:w}),V=M||N,W=h.useMemo(()=>e5({size:S,color:k,variant:A,radius:m,fullWidth:v,isDisabled:V,isInGroup:c,disableAnimation:D,isIconOnly:E,className:x}),[S,k,A,m,v,V,c,E,D,x]),{onClick:U,onClear:Q,ripples:K}=Jx(),G=h.useCallback(dt=>{L||V||D||B.current&&U(dt)},[L,V,D,B,U]),{buttonProps:Z,isPressed:re}=Fp({elementType:f,isDisabled:V,onPress:$,onClick:zr(R,G),..._},B),{isHovered:ie,hoverProps:de}=un({isDisabled:V}),ce=h.useCallback((dt={})=>({"data-disabled":H(V),"data-focus":H(T),"data-pressed":H(re),"data-focus-visible":H(F),"data-hover":H(ie),"data-loading":H(N),...Y(Z,O,de,ln(_,{enabled:I}),ln(dt))}),[N,V,T,re,I,F,ie,Z,O,de,_]),pe=dt=>h.isValidElement(dt)?h.cloneElement(dt,{"aria-hidden":!0,focusable:!1,tabIndex:-1}):null,bt=pe(y),J=pe(b),se=h.useMemo(()=>({sm:"sm",md:"sm",lg:"md"})[S],[S]),me=h.useCallback(()=>({ripples:K,onClear:Q}),[K,Q]);return{Component:j,children:p,domRef:B,spinner:g,styles:W,startContent:bt,endContent:J,isLoading:N,spinnerPlacement:C,spinnerSize:se,disableRipple:L,getButtonProps:ce,getRippleProps:me,isIconOnly:E}}function x8(e){const[t,n]=Qt(e,Nm.variantKeys),{children:r,className:o,classNames:i,label:s,...a}=t,l=h.useMemo(()=>Nm({...n}),[...Object.values(n)]),u=ne(i==null?void 0:i.base,o),c=s||r,d=h.useMemo(()=>c&&typeof c=="string"?c:a["aria-label"]?"":"Loading",[r,c,a["aria-label"]]),f=h.useCallback(()=>({"aria-label":d,className:l.base({class:u}),...a}),[d,l,u,a]);return{label:c,slots:l,classNames:i,getSpinnerProps:f}}var ew=he((e,t)=>{const{slots:n,classNames:r,label:o,getSpinnerProps:i}=x8({...e});return P.jsxs("div",{ref:t,...i(),children:[P.jsxs("div",{className:n.wrapper({class:r==null?void 0:r.wrapper}),children:[P.jsx("i",{className:n.circle1({class:r==null?void 0:r.circle1})}),P.jsx("i",{className:n.circle2({class:r==null?void 0:r.circle2})})]}),o&&P.jsx("span",{className:n.label(),children:o})]})});ew.displayName="NextUI.Spinner";var w8=ew,tw=he((e,t)=>{const{Component:n,domRef:r,children:o,styles:i,spinnerSize:s,spinner:a=P.jsx(w8,{color:"current",size:s}),spinnerPlacement:l,startContent:u,endContent:c,isLoading:d,disableRipple:f,getButtonProps:p,getRippleProps:y,isIconOnly:b}=b8({...e,ref:t});return P.jsxs(n,{ref:r,className:i,...p(),children:[u,d&&l==="start"&&a,d&&b?null:o,d&&l==="end"&&a,c,!f&&P.jsx(qx,{...y()})]})});tw.displayName="NextUI.Button";var Io=tw,[C8,nw]=Yo({name:"CardContext",strict:!0,errorMessage:"useCardContext: `context` is undefined. Seems you forgot to wrap component within "}),rw=he((e,t)=>{var n;const{as:r,className:o,children:i,...s}=e,a=r||"div",l=Oe(t),{slots:u,classNames:c}=nw(),d=ne(c==null?void 0:c.footer,o);return P.jsx(a,{ref:l,className:(n=u.footer)==null?void 0:n.call(u,{class:d}),...s,children:i})});rw.displayName="NextUI.CardFooter";var S8=rw,ow=he((e,t)=>{var n;const{as:r,className:o,children:i,...s}=e,a=r||"div",l=Oe(t),{slots:u,classNames:c}=nw(),d=ne(c==null?void 0:c.header,o);return P.jsx(a,{ref:l,className:(n=u.header)==null?void 0:n.call(u,{class:d}),...s,children:i})});ow.displayName="NextUI.CardHeader";var P8=ow;function $8(e){const[t,n]=Qt(e,jm.variantKeys),{ref:r,as:o,children:i,disableRipple:s=!1,onClick:a,onPress:l,autoFocus:u,className:c,classNames:d,allowTextSelectionOnPress:f=!0,...p}=t,y=Oe(r),b=o||(e.isPressable?"button":"div"),w=typeof b=="string",x=ne(d==null?void 0:d.base,c),{onClick:g,onClear:v,ripples:S}=Jx(),k=j=>{!e.disableAnimation&&!s&&y.current&&g(j)},{buttonProps:A,isPressed:D}=Fp({onPress:l,elementType:o,isDisabled:!e.isPressable,onClick:zr(a,k),allowTextSelectionOnPress:f,...p},y),{hoverProps:m,isHovered:L}=un({isDisabled:!e.isHoverable,...p}),{isFocusVisible:M,isFocused:E,focusProps:N}=sr({autoFocus:u}),C=h.useMemo(()=>jm({...n}),[...Object.values(n)]),$=h.useMemo(()=>({isDisabled:e.isDisabled,isFooterBlurred:e.isFooterBlurred,disableAnimation:e.disableAnimation,fullWidth:e.fullWidth,slots:C,classNames:d}),[C,d,e.isDisabled,e.isFooterBlurred,e.disableAnimation,e.fullWidth]),R=h.useCallback((j={})=>({ref:y,className:C.base({class:x}),tabIndex:e.isPressable?0:-1,"data-hover":H(L),"data-pressed":H(D),"data-focus":H(E),"data-focus-visible":H(M),"data-disabled":H(e.isDisabled),...Y(e.isPressable?{...A,...N,role:"button"}:{},e.isHoverable?m:{},ln(p,{enabled:w}),ln(j))}),[y,C,x,w,e.isPressable,e.isHoverable,e.isDisabled,L,D,M,A,N,m,p]),_=h.useCallback(()=>({ripples:S,onClear:v}),[S,v]);return{context:$,domRef:y,Component:b,classNames:d,children:i,isHovered:L,isPressed:D,isPressable:e.isPressable,isHoverable:e.isHoverable,disableAnimation:e.disableAnimation,disableRipple:s,handleClick:k,isFocusVisible:M,getCardProps:R,getRippleProps:_}}var iw=he((e,t)=>{const{children:n,context:r,Component:o,isPressable:i,disableAnimation:s,disableRipple:a,getCardProps:l,getRippleProps:u}=$8({...e,ref:t});return P.jsxs(o,{...l(),children:[P.jsx(C8,{value:r,children:n}),i&&!s&&!a&&P.jsx(qx,{...u()})]})});iw.displayName="NextUI.Card";var E8=iw;function k8(e,t,n){let{validationBehavior:r,focus:o}=e;Te(()=>{if(r==="native"&&(n!=null&&n.current)){let l=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(l),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(A8(n.current))}});let i=Fe(()=>{t.resetValidation()}),s=Fe(l=>{var u;t.displayValidation.isInvalid||t.commitValidation();let c=n==null||(u=n.current)===null||u===void 0?void 0:u.form;if(!l.defaultPrevented&&n&&c&&M8(c)===n.current){var d;o?o():(d=n.current)===null||d===void 0||d.focus(),wP("keyboard")}l.preventDefault()}),a=Fe(()=>{t.commitValidation()});h.useEffect(()=>{let l=n==null?void 0:n.current;if(!l)return;let u=l.form;return l.addEventListener("invalid",s),l.addEventListener("change",a),u==null||u.addEventListener("reset",i),()=>{l.removeEventListener("invalid",s),l.removeEventListener("change",a),u==null||u.removeEventListener("reset",i)}},[n,s,a,i,r])}function T8(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function A8(e){return{isInvalid:!e.validity.valid,validationDetails:T8(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function M8(e){for(let t=0;tnv(N8(s,o)),[s,o]);i!=null&&i.validationDetails.valid&&(i=null);let c=h.useContext(L8),d=h.useMemo(()=>r?Array.isArray(r)?r.flatMap(M=>Ud(c[M])):Ud(c[r]):[],[c,r]),[f,p]=h.useState(c),[y,b]=h.useState(!1);c!==f&&(p(c),b(!1));let w=h.useMemo(()=>nv(y?[]:d),[y,d]),x=h.useRef(gi),[g,v]=h.useState(gi),S=h.useRef(gi),k=()=>{if(!A)return;D(!1);let M=u||i||x.current;fc(M,S.current)||(S.current=M,v(M))},[A,D]=h.useState(!1);return h.useEffect(k),{realtimeValidation:l||w||u||i||gi,displayValidation:a==="native"?l||w||g:l||w||u||i||g,updateValidation(M){a==="aria"&&!fc(g,M)?v(M):x.current=M},resetValidation(){let M=gi;fc(M,S.current)||(S.current=M,v(M)),a==="native"&&D(!1),b(!0)},commitValidation(){a==="native"&&D(!0),b(!0)}}}function Ud(e){return e?Array.isArray(e)?e:[e]:[]}function N8(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Ud(n)}return[]}function nv(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:aw}:null}function fc(e,t){return e===t?!0:e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function uw(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:i="label"}=e;t=sn(t);let s=sn(),a={};n?(r=r?`${s} ${r}`:s,a={id:s,htmlFor:i==="label"?t:void 0}):!r&&!o&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=ol({id:t,"aria-label":o,"aria-labelledby":r});return{labelProps:a,fieldProps:l}}function I8(e){let{description:t,errorMessage:n,isInvalid:r,validationState:o}=e,{labelProps:i,fieldProps:s}=uw(e),a=qn([!!t,!!n,r,o]),l=qn([!!t,!!n,r,o]);return s=Y(s,{"aria-describedby":[a,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:s,descriptionProps:{id:a},errorMessageProps:{id:l}}}function Op(e){let[t,n]=pr(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=h.useCallback(()=>{n(!0)},[n]),o=h.useCallback(()=>{n(!1)},[n]),i=h.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:o,toggle:i}}const R8=1500,rv=500;let br={},F8=0,vi=!1,pn=null,xr=null;function O8(e={}){let{delay:t=R8,closeDelay:n=rv}=e,{isOpen:r,open:o,close:i}=Op(e),s=h.useMemo(()=>`${++F8}`,[]),a=h.useRef(),l=()=>{br[s]=d},u=()=>{for(let p in br)p!==s&&(br[p](!0),delete br[p])},c=()=>{clearTimeout(a.current),a.current=null,u(),l(),vi=!0,o(),pn&&(clearTimeout(pn),pn=null),xr&&(clearTimeout(xr),xr=null)},d=p=>{p||n<=0?(clearTimeout(a.current),a.current=null,i()):a.current||(a.current=setTimeout(()=>{a.current=null,i()},n)),pn&&(clearTimeout(pn),pn=null),vi&&(xr&&clearTimeout(xr),xr=setTimeout(()=>{delete br[s],xr=null,vi=!1},Math.max(rv,n)))},f=()=>{u(),l(),!r&&!pn&&!vi?pn=setTimeout(()=>{pn=null,vi=!0,c()},t):r||c()};return h.useEffect(()=>()=>{clearTimeout(a.current),br[s]&&delete br[s]},[s]),{isOpen:r,open:p=>{!p&&t>0&&!a.current?f():c()},close:d}}function j8(e,t){let n=hr(e,{labelable:!0}),{hoverProps:r}=un({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:Y(n,r,{role:"tooltip"})}}function _8(e,t,n){let{isDisabled:r,trigger:o}=e,i=sn(),s=h.useRef(!1),a=h.useRef(!1),l=()=>{(s.current||a.current)&&t.open(a.current)},u=g=>{!s.current&&!a.current&&t.close(g)};h.useEffect(()=>{let g=v=>{n&&n.current&&v.key==="Escape"&&(v.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",g,!0),()=>{document.removeEventListener("keydown",g,!0)}},[n,t]);let c=()=>{o!=="focus"&&(sl()==="pointer"?s.current=!0:s.current=!1,l())},d=()=>{o!=="focus"&&(a.current=!1,s.current=!1,u())},f=()=>{a.current=!1,s.current=!1,u(!0)},p=()=>{Ko()&&(a.current=!0,l())},y=()=>{a.current=!1,s.current=!1,u(!0)},{hoverProps:b}=un({isDisabled:r,onHoverStart:c,onHoverEnd:d}),{pressProps:w}=ws({onPressStart:f}),{focusableProps:x}=ap({isDisabled:r,onFocus:p,onBlur:y},n);return{triggerProps:{"aria-describedby":t.isOpen?i:void 0,...Y(x,b,w)},tooltipProps:{id:i}}}function B8(e){const[t,n]=Qt(e,ml.variantKeys),{ref:r,as:o,isOpen:i,content:s,children:a,defaultOpen:l,onOpenChange:u,isDisabled:c,trigger:d,shouldFlip:f=!0,containerPadding:p=12,placement:y="top",delay:b=0,closeDelay:w=500,showArrow:x=!1,offset:g=7,crossOffset:v=0,isDismissable:S,shouldCloseOnBlur:k=!0,portalContainer:A,isKeyboardDismissDisabled:D=!1,updatePositionDeps:m=[],shouldCloseOnInteractOutside:L,className:M,onClose:E,motionProps:N,classNames:C,...$}=t,R=o||"div",_=O8({delay:b,closeDelay:w,isDisabled:c,defaultOpen:l,isOpen:i,onOpenChange:de=>{u==null||u(de),de||E==null||E()}}),j=h.useRef(null),I=h.useRef(null),B=h.useId(),F=_.isOpen&&!c;h.useImperativeHandle(r,()=>l5(I));const{triggerProps:T,tooltipProps:O}=_8({isDisabled:c,trigger:d},_,j),{tooltipProps:V}=j8({isOpen:F,...Y(t,O)},_),{overlayProps:W,placement:U,updatePosition:Q}=sb({isOpen:F,targetRef:j,placement:Gx(y),overlayRef:I,offset:x?g+3:g,crossOffset:v,shouldFlip:f,containerPadding:p});h.useLayoutEffect(()=>{m.length&&Q()},m);const{overlayProps:K}=ab({isOpen:F,onClose:_.close,isDismissable:S,shouldCloseOnBlur:k,isKeyboardDismissDisabled:D,shouldCloseOnInteractOutside:L},I),G=h.useMemo(()=>{var de,ce,pe;return ml({...n,radius:(de=e==null?void 0:e.radius)!=null?de:"md",size:(ce=e==null?void 0:e.size)!=null?ce:"md",shadow:(pe=e==null?void 0:e.shadow)!=null?pe:"sm"})},[...Object.values(n),e==null?void 0:e.radius,e==null?void 0:e.size,e==null?void 0:e.shadow]),Z=h.useCallback((de={},ce=null)=>({...Y(T,de),ref:kd(ce,j),"aria-describedby":F?B:void 0}),[T,F,B,_]),re=h.useCallback(()=>({ref:I,"data-slot":"base","data-open":H(F),"data-arrow":H(x),"data-disabled":H(c),"data-placement":$l(U,y),...Y(V,K,$),style:Y(W.style,$.style,t.style),className:G.base({class:C==null?void 0:C.base}),id:B}),[G,F,x,c,U,y,V,K,$,W,t,B]),ie=h.useCallback(()=>({"data-slot":"content","data-open":H(F),"data-arrow":H(x),"data-disabled":H(c),"data-placement":$l(U,y),className:G.content({class:ne(C==null?void 0:C.content,M)})}),[G,F,x,c,U,y,C]);return{Component:R,content:s,children:a,isOpen:F,triggerRef:j,showArrow:x,portalContainer:A,placement:y,disableAnimation:e==null?void 0:e.disableAnimation,isDisabled:c,motionProps:N,getTooltipContentProps:ie,getTriggerProps:Z,getTooltipProps:re}}var cw=he((e,t)=>{const{Component:n,children:r,content:o,isOpen:i,portalContainer:s,placement:a,disableAnimation:l,motionProps:u,getTriggerProps:c,getTooltipProps:d,getTooltipContentProps:f}=B8({...e,ref:t});let p;try{const v=h.Children.only(r);p=h.cloneElement(v,c(v.props,v.ref))}catch{p=P.jsx("span",{}),o5("Tooltip must have only one child node. Please, check your code.")}const{ref:y,id:b,style:w,...x}=d(),g=P.jsx("div",{ref:y,id:b,style:w,children:P.jsx(ur.div,{animate:"enter",exit:"exit",initial:"exit",variants:ss.scaleSpring,...Y(u,x),style:{...Rp(a)},children:P.jsx(n,{...f(),children:o})})});return P.jsxs(P.Fragment,{children:[p,l&&i?P.jsx(Em,{portalContainer:s,children:P.jsx("div",{ref:y,id:b,style:w,...x,children:P.jsx(n,{...f(),children:o})})}):P.jsx(ks,{children:i?P.jsx(Em,{portalContainer:s,children:g}):null})]})});cw.displayName="NextUI.Tooltip";var dw=cw;function fw(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:o=!1,isReadOnly:i=!1,type:s="text",validationBehavior:a="aria"}=e,[l,u]=pr(e.value,e.defaultValue||"",e.onChange),{focusableProps:c}=ap(e,t),d=lw({...e,value:l}),{isInvalid:f,validationErrors:p,validationDetails:y}=d.displayValidation,{labelProps:b,fieldProps:w,descriptionProps:x,errorMessageProps:g}=I8({...e,isInvalid:f,errorMessage:e.errorMessage||p}),v=hr(e,{labelable:!0});const S={type:s,pattern:e.pattern};return JS(t,l,u),k8(e,d,t),h.useEffect(()=>{if(t.current instanceof rl(t.current).HTMLTextAreaElement){let k=t.current;Object.defineProperty(k,"defaultValue",{get:()=>k.value,set:()=>{},configurable:!0})}},[t]),{labelProps:b,inputProps:Y(v,n==="input"&&S,{disabled:r,readOnly:i,required:o&&a==="native","aria-required":o&&a==="aria"||void 0,"aria-invalid":f||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:l,onChange:k=>u(k.target.value),autoComplete:e.autoComplete,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...c,...w}),descriptionProps:x,errorMessageProps:g,isInvalid:f,validationErrors:p,validationDetails:y}}function V8(e){const[t,n]=Qt(e,Om.variantKeys),{ref:r,as:o,label:i,baseRef:s,wrapperRef:a,description:l,errorMessage:u,className:c,classNames:d,autoFocus:f,startContent:p,endContent:y,onClear:b,onChange:w,validationState:x,innerWrapperRef:g,onValueChange:v=()=>{},...S}=t,k=h.useCallback(oe=>{v(oe??"")},[v]),[A,D]=pr(t.value,t.defaultValue,k),[m,L]=h.useState(!1),M=o||"div",E=!!A,N=E||m,C=ne(d==null?void 0:d.base,c,E?"is-filled":""),$=e.isMultiline,R=Oe(r),_=Oe(s),j=Oe(a),I=Oe(g),B=h.useCallback(()=>{D(""),R.current&&(R.current.value="",R.current.focus()),b==null||b()},[R,D,b]),{labelProps:F,inputProps:T,descriptionProps:O,errorMessageProps:V}=fw({...e,"aria-label":n5(e==null?void 0:e["aria-label"],e==null?void 0:e.label,e==null?void 0:e.placeholder),inputElementType:$?"textarea":"input",onChange:D},R),{isFocusVisible:W,isFocused:U,focusProps:Q}=sr({autoFocus:f,isTextInput:!0}),{isHovered:K,hoverProps:G}=un({isDisabled:!!(e!=null&&e.isDisabled)}),{focusProps:Z,isFocusVisible:re}=sr(),{focusWithinProps:ie}=Cs({onFocusWithinChange:L}),{pressProps:de}=ws({isDisabled:!!(e!=null&&e.isDisabled),onPress:B}),ce=x==="invalid"||e.isInvalid,pe=h.useMemo(()=>{var oe;return(!e.labelPlacement||e.labelPlacement==="inside")&&!i?"outside":(oe=e.labelPlacement)!=null?oe:"inside"},[e.labelPlacement,i]),bt=!!b||e.isClearable,J=!!i||!!l||!!u,se=!!t.placeholder,me=!!i,dt=!!l||!!u,Zo=pe==="outside"||pe==="outside-left",je=pe==="inside",At=R.current?(!R.current.value||R.current.value===""||!A||A==="")&&se:!1,qo=pe==="outside-left",Zt=!!p,Pe=Zo?pe==="outside-left"||se||pe==="outside"&&Zt:!1,_e=pe==="outside"&&!se&&!Zt,ge=h.useMemo(()=>Om({...n,isInvalid:ce,isClearable:bt}),[...Object.values(n),ce,bt,Zt]),Jo=h.useCallback((oe={})=>({ref:_,className:ge.base({class:C}),"data-slot":"base","data-filled":H(E||se||Zt||At),"data-filled-within":H(N||se||Zt||At),"data-focus-within":H(m),"data-focus-visible":H(W),"data-readonly":H(e.isReadOnly),"data-focus":H(U),"data-hover":H(K),"data-required":H(e.isRequired),"data-invalid":H(ce),"data-disabled":H(e.isDisabled),"data-has-elements":H(J),"data-has-helper":H(dt),"data-has-label":H(me),"data-has-value":H(!At),...ie,...oe}),[ge,C,E,U,K,ce,dt,me,J,At,Zt,m,W,N,se,ie,e.isReadOnly,e.isRequired,e.isDisabled]),Ms=h.useCallback((oe={})=>({"data-slot":"label",className:ge.label({class:d==null?void 0:d.label}),...F,...oe}),[ge,F,d==null?void 0:d.label]),du=h.useCallback((oe={})=>({ref:R,"data-slot":"input","data-filled":H(E),"data-filled-within":H(N),"data-has-start-content":H(Zt),"data-has-end-content":H(!!y),className:ge.input({class:ne(d==null?void 0:d.input,A?"is-filled":"")}),...Y(Q,T,ln(S,{enabled:!0,labelable:!0,omitEventNames:new Set(Object.keys(T))}),oe),required:e.isRequired,"aria-readonly":H(e.isReadOnly),"aria-required":H(e.isRequired),onChange:zr(T.onChange,w)}),[ge,A,Q,T,S,E,N,Zt,y,d==null?void 0:d.input,e.isReadOnly,e.isRequired,w]),O3=h.useCallback((oe={})=>({ref:j,"data-slot":"input-wrapper","data-hover":H(K),"data-focus-visible":H(W),"data-focus":H(U),className:ge.inputWrapper({class:ne(d==null?void 0:d.inputWrapper,A?"is-filled":"")}),...Y(oe,G),onClick:ei=>{R.current&&ei.currentTarget===ei.target&&R.current.focus()},style:{cursor:"text",...oe.style}}),[ge,K,W,U,A,d==null?void 0:d.inputWrapper]),j3=h.useCallback((oe={})=>({...oe,ref:I,"data-slot":"inner-wrapper",onClick:ei=>{R.current&&ei.currentTarget===ei.target&&R.current.focus()},className:ge.innerWrapper({class:ne(d==null?void 0:d.innerWrapper,oe==null?void 0:oe.className)})}),[ge,d==null?void 0:d.innerWrapper]),_3=h.useCallback((oe={})=>({...oe,"data-slot":"main-wrapper",className:ge.mainWrapper({class:ne(d==null?void 0:d.mainWrapper,oe==null?void 0:oe.className)})}),[ge,d==null?void 0:d.mainWrapper]),B3=h.useCallback((oe={})=>({...oe,"data-slot":"helper-wrapper",className:ge.helperWrapper({class:ne(d==null?void 0:d.helperWrapper,oe==null?void 0:oe.className)})}),[ge,d==null?void 0:d.helperWrapper]),V3=h.useCallback((oe={})=>({...oe,...O,"data-slot":"description",className:ge.description({class:ne(d==null?void 0:d.description,oe==null?void 0:oe.className)})}),[ge,d==null?void 0:d.description]),K3=h.useCallback((oe={})=>({...oe,...V,"data-slot":"error-message",className:ge.errorMessage({class:ne(d==null?void 0:d.errorMessage,oe==null?void 0:oe.className)})}),[ge,V,d==null?void 0:d.errorMessage]),z3=h.useCallback((oe={})=>({...oe,role:"button",tabIndex:0,"data-slot":"clear-button","data-focus-visible":H(re),className:ge.clearButton({class:ne(d==null?void 0:d.clearButton,oe==null?void 0:oe.className)}),...Y(de,Z)}),[ge,re,de,Z,d==null?void 0:d.clearButton]);return{Component:M,classNames:d,domRef:R,label:i,description:l,startContent:p,endContent:y,labelPlacement:pe,isClearable:bt,isInvalid:ce,hasHelper:dt,hasStartContent:Zt,isLabelOutside:Pe,isOutsideLeft:qo,isLabelOutsideAsPlaceholder:_e,shouldLabelBeOutside:Zo,shouldLabelBeInside:je,hasPlaceholder:se,errorMessage:u,getBaseProps:Jo,getLabelProps:Ms,getInputProps:du,getMainWrapperProps:_3,getInputWrapperProps:O3,getInnerWrapperProps:j3,getHelperWrapperProps:B3,getDescriptionProps:V3,getErrorMessageProps:K3,getClearButtonProps:z3}}var pw=he((e,t)=>{const{Component:n,label:r,description:o,isClearable:i,startContent:s,endContent:a,labelPlacement:l,hasHelper:u,isOutsideLeft:c,shouldLabelBeOutside:d,errorMessage:f,getBaseProps:p,getLabelProps:y,getInputProps:b,getInnerWrapperProps:w,getInputWrapperProps:x,getMainWrapperProps:g,getHelperWrapperProps:v,getDescriptionProps:S,getErrorMessageProps:k,getClearButtonProps:A}=V8({...e,ref:t}),D=r?P.jsx("label",{...y(),children:r}):null,m=h.useMemo(()=>i?P.jsx("span",{...A(),children:a||P.jsx(R5,{})}):a,[i,A]),L=h.useMemo(()=>u?P.jsx("div",{...v(),children:f?P.jsx("div",{...k(),children:f}):o?P.jsx("div",{...S(),children:o}):null}):null,[u,f,o,v,k,S]),M=h.useMemo(()=>s||m?P.jsxs("div",{...w(),children:[s,P.jsx("input",{...b()}),m]}):P.jsx("div",{...w(),children:P.jsx("input",{...b()})}),[s,m,b,w]),E=h.useMemo(()=>d?P.jsxs("div",{...g(),children:[P.jsxs("div",{...x(),children:[c?null:D,M]}),L]}):P.jsxs(P.Fragment,{children:[P.jsxs("div",{...x(),children:[D,M]}),L]}),[l,L,d,D,M,f,o,g,x,k,S]);return P.jsxs(n,{...p(),children:[c?D:null,E]})});pw.displayName="NextUI.Input";var K8=pw;function z8(e,t){const{triggerRef:n,popoverRef:r,showArrow:o,offset:i=7,crossOffset:s=0,scrollRef:a,shouldFlip:l,boundaryElement:u,shouldCloseOnBlur:c=!0,placement:d="top",containerPadding:f,shouldCloseOnInteractOutside:p,isNonModal:y,isKeyboardDismissDisabled:b,...w}=e,x=y||!0,{overlayProps:g,underlayProps:v}=ab({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:c,isDismissable:!0,isKeyboardDismissDisabled:b,shouldCloseOnInteractOutside:p||(D=>{let m=n==null?void 0:n.current;return!m||!m.contains(D)})},r),{overlayProps:S,arrowProps:k,placement:A}=sb({...w,shouldFlip:l,crossOffset:s,targetRef:n,overlayRef:r,isOpen:t.isOpen,scrollRef:a,boundaryElement:u,containerPadding:f,placement:Gx(d),offset:o?i+3:i,onClose:()=>{}});return h.useEffect(()=>{if(t.isOpen&&!x&&r.current)return f8([r.current])},[x,t.isOpen,r]),{popoverProps:Y(g,S),arrowProps:k,underlayProps:v,placement:A}}function hw(e){var t,n;const[r,o]=Qt(e,ml.variantKeys),{as:i,children:s,ref:a,state:l,triggerRef:u,scrollRef:c,defaultOpen:d,onOpenChange:f,isOpen:p,isNonModal:y=!0,shouldFlip:b=!0,containerPadding:w=12,shouldBlockScroll:x=!1,shouldCloseOnBlur:g,portalContainer:v,placement:S="top",triggerType:k="dialog",showArrow:A=!1,offset:D=7,crossOffset:m=0,boundaryElement:L,isKeyboardDismissDisabled:M,shouldCloseOnInteractOutside:E,motionProps:N,className:C,classNames:$,onClose:R,..._}=r,j=i||"div",I=Oe(a),B=h.useRef(null),F=h.useRef(!1),T=u||B,O=(t=e.disableAnimation)!=null?t:!1,V=Op({isOpen:p,defaultOpen:d,onOpenChange:je=>{f==null||f(je),je||R==null||R()}}),W=l||V,{popoverProps:U,underlayProps:Q,placement:K}=z8({triggerRef:T,isNonModal:y,popoverRef:I,placement:S,offset:D,scrollRef:c,shouldCloseOnBlur:g,boundaryElement:L,crossOffset:m,shouldFlip:b,containerPadding:w,isKeyboardDismissDisabled:M,shouldCloseOnInteractOutside:E},W),{triggerProps:G}=lb({type:k},W,T),{isFocusVisible:Z,isFocused:re,focusProps:ie}=sr(),de=h.useMemo(()=>ml({...o}),[...Object.values(o)]),ce=ne($==null?void 0:$.base,C),pe=(je={})=>({ref:I,...Y(U,_,je),style:Y(U.style,_.style,je.style)}),bt=(je={})=>({"data-slot":"base","data-open":H(W.isOpen),"data-focus":H(re),"data-arrow":H(A),"data-focus-visible":H(Z),"data-placement":$l(K,S),...Y(ie,je),className:de.base({class:ne(ce)}),style:{outline:"none"}}),J=h.useCallback((je={})=>({"data-slot":"content","data-open":H(W.isOpen),"data-arrow":H(A),"data-placement":$l(K,S),className:de.content({class:ne($==null?void 0:$.content,je.className)})}),[de,W.isOpen,A,K,S,$]),se=h.useMemo(()=>d8(K,S)?K:S,[K,S]),me=h.useCallback(je=>{var At;let qo;return je.pointerType==="touch"&&((e==null?void 0:e.backdrop)==="blur"||(e==null?void 0:e.backdrop)==="opaque")?qo=setTimeout(()=>{F.current=!0},100):F.current=!0,(At=G.onPress)==null||At.call(G,je),()=>{clearTimeout(qo)}},[G==null?void 0:G.onPress]),dt=h.useCallback((je={},At=null)=>({"data-slot":"trigger","aria-haspopup":"dialog",...Y(G,je),onPress:me,className:de.trigger({class:ne($==null?void 0:$.trigger,je.className)}),ref:RS(At,T)}),[W,G,me,T]),Zo=h.useCallback((je={})=>({"data-slot":"backdrop",className:de.backdrop({class:$==null?void 0:$.backdrop}),onClick:At=>{if(!F.current){At.preventDefault();return}W.close(),F.current=!1},...Q,...je}),[de,W.isOpen,$,Q]);return h.useEffect(()=>{if(W.isOpen&&(I!=null&&I.current))return Ub([I==null?void 0:I.current])},[W.isOpen,I]),{state:W,Component:j,children:s,classNames:$,showArrow:A,triggerRef:T,placement:se,isNonModal:y,popoverRef:I,portalContainer:v,isOpen:W.isOpen,onClose:W.close,disableAnimation:O,shouldBlockScroll:x,backdrop:(n=e.backdrop)!=null?n:"transparent",motionProps:N,getBackdropProps:Zo,getPopoverProps:pe,getTriggerProps:dt,getDialogProps:bt,getContentProps:J}}var W8=({children:e,motionProps:t,placement:n,disableAnimation:r,style:o={},...i})=>r?P.jsx("div",{...i,children:e}):P.jsx(ur.div,{animate:"enter",exit:"exit",initial:"initial",style:{...o,...Rp(n==="center"?"top":n)},variants:ss.scaleSpringOpacity,...Y(i,t),children:e}),mw=he((e,t)=>{const{Component:n,state:r,children:o,placement:i,backdrop:s,portalContainer:a,disableAnimation:l,motionProps:u,isNonModal:c,getPopoverProps:d,getBackdropProps:f,getDialogProps:p,getContentProps:y}=hw({...e,shouldCloseOnInteractOutside:void 0,ref:t}),b=h.useMemo(()=>s==="transparent"?null:l?P.jsx("div",{...f()}):P.jsx(ur.div,{animate:"enter",exit:"exit",initial:"exit",variants:ss.fade,...f()}),[s,l,f]);return P.jsxs(lp,{portalContainer:a,children:[!c&&b,P.jsx(n,{...d(),children:P.jsxs(W8,{disableAnimation:l,motionProps:u,placement:i,tabIndex:-1,...p(),children:[!c&&P.jsx(fl,{onDismiss:r.close}),P.jsx("div",{...y(),children:o}),P.jsx(fl,{onDismiss:r.close})]})})]})});mw.displayName="NextUI.FreeSoloPopover";var U8=mw,[H8,gw]=Yo({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within ``"});function G8(e,t){let{role:n="dialog"}=e,r=qn();r=e["aria-label"]?void 0:r;let o=h.useRef(!1);return h.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){ir(t.current);let i=setTimeout(()=>{document.activeElement===t.current&&(o.current=!0,t.current.blur(),ir(t.current),o.current=!1)},500);return()=>{clearTimeout(i)}}},[t]),o$(),{dialogProps:{...hr(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:i=>{o.current&&i.stopPropagation()}},titleProps:{id:r}}}var Aa="right-scroll-bar-position",Ma="width-before-scroll-bar",Y8="with-scroll-bars-hidden",X8="--removed-body-scroll-bar-size";function Q8(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Z8(e,t){var n=h.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}function q8(e,t){return Z8(t||null,function(n){return e.forEach(function(r){return Q8(r,n)})})}function J8(e){return e}function e7(e,t){t===void 0&&(t=J8);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var l=function(){var c=s;s=[],c.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(c){s.push(c),u()},filter:function(c){return s=s.filter(c),n}}}};return o}function t7(e){e===void 0&&(e={});var t=e7(null);return t.options=tn({async:!0,ssr:!1},e),t}var vw=function(e){var t=e.sideCar,n=Xy(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return h.createElement(r,tn({},n))};vw.isSideCarExport=!0;function n7(e,t){return e.useMedium(t),vw}var yw=t7(),pc=function(){},ou=h.forwardRef(function(e,t){var n=h.useRef(null),r=h.useState({onScrollCapture:pc,onWheelCapture:pc,onTouchMoveCapture:pc}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,y=e.inert,b=e.allowPinchZoom,w=e.as,x=w===void 0?"div":w,g=e.gapMode,v=Xy(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=f,k=q8([n,t]),A=tn(tn({},v),o);return h.createElement(h.Fragment,null,c&&h.createElement(S,{sideCar:yw,removeScrollBar:u,shards:d,noIsolation:p,inert:y,setCallbacks:i,allowPinchZoom:!!b,lockRef:n,gapMode:g}),s?h.cloneElement(h.Children.only(a),tn(tn({},A),{ref:k})):h.createElement(x,tn({},A,{className:l,ref:k}),a))});ou.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ou.classNames={fullWidth:Ma,zeroRight:Aa};var ov,r7=function(){if(ov)return ov;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function o7(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=r7();return t&&e.setAttribute("nonce",t),e}function i7(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function s7(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var a7=function(){var e=0,t=null;return{add:function(n){e==0&&(t=o7())&&(i7(t,n),s7(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},l7=function(){var e=a7();return function(t,n){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},bw=function(){var e=l7(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},u7={left:0,top:0,right:0,gap:0},hc=function(e){return parseInt(e||"",10)||0},c7=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[hc(n),hc(r),hc(o)]},d7=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return u7;var t=c7(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},f7=bw(),p7=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),` + `),()=>{document.head.removeChild(u)}},[t]),h.createElement(YT,{isPresent:t,childRef:r,sizeRef:o},h.cloneElement(e,{ref:r}))}const uc=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=R1(QT),l=h.useId(),u=h.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:c=>{a.set(c,!0);for(const d of a.values())if(!d)return;r&&r()},register:c=>(a.set(c,!1),()=>a.delete(c))}),i?void 0:[n]);return h.useMemo(()=>{a.forEach((c,d)=>a.set(d,!1))},[n]),h.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=h.createElement(XT,{isPresent:n},e)),h.createElement(Ql.Provider,{value:u},e)};function QT(){return new Map}function ZT(e){return h.useEffect(()=>()=>e(),[])}const $r=e=>e.key||"";function JT(e,t){e.forEach(n=>{const r=$r(n);t.set(r,n)})}function qT(e){const t=[];return h.Children.forEach(e,n=>{h.isValidElement(n)&&t.push(n)}),t}const ks=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{const a=h.useContext(gp).forceRender||GT()[0],l=_x(),u=qT(e);let c=u;const d=h.useRef(new Map).current,f=h.useRef(c),p=h.useRef(new Map).current,y=h.useRef(!0);if(fp(()=>{y.current=!1,JT(u,p),f.current=c}),ZT(()=>{y.current=!0,p.clear(),d.clear()}),y.current)return h.createElement(h.Fragment,null,c.map(g=>h.createElement(uc,{key:$r(g),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:i,mode:s},g)));c=[...c];const b=f.current.map($r),w=u.map($r),x=b.length;for(let g=0;g{if(w.indexOf(v)!==-1)return;const S=p.get(v);if(!S)return;const k=b.indexOf(v);let A=g;if(!A){const D=()=>{d.delete(v);const m=Array.from(p.keys()).filter(L=>!w.includes(L));if(m.forEach(L=>p.delete(L)),f.current=u.filter(L=>{const M=$r(L);return M===v||m.includes(M)}),!d.size){if(l.current===!1)return;a(),r&&r()}};A=h.createElement(uc,{key:$r(S),isPresent:!1,onExitComplete:D,custom:t,presenceAffectsLayout:i,mode:s},S),d.set(v,A)}c.splice(k,0,A)}),c=c.map(g=>{const v=g.key;return d.has(v)?g:h.createElement(uc,{key:$r(g),isPresent:!0,presenceAffectsLayout:i,mode:s},g)}),h.createElement(h.Fragment,null,d.size?c:c.map(g=>h.cloneElement(g)))};var jn={ease:[.36,.66,.4,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1],spring:[.155,1.105,.295,1.12],springOut:[.57,-.15,.62,.07],softSpring:[.16,1.11,.3,1.02]},ss={scaleSpring:{enter:{transform:"scale(1)",opacity:1,transition:{type:"spring",bounce:0,duration:.3}},exit:{transform:"scale(0.6)",opacity:0,transition:{type:"easeOut",duration:.2}}},scaleSpringOpacity:{initial:{opacity:0,transform:"scale(0.8)"},enter:{opacity:1,transform:"scale(1)",transition:{type:"spring",bounce:0,duration:.3}},exit:{opacity:0,transform:"scale(0.7)",transition:{type:"easeOut",bounce:0,duration:.18}}},scale:{enter:{scale:1},exit:{scale:.95}},scaleFadeIn:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.25,ease:jn.easeIn}},exit:{transform:"scale(0.95)",opacity:0,transition:{duration:.2,ease:jn.easeOut}}},scaleInOut:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.4,ease:jn.ease}},exit:{transform:"scale(1.03)",opacity:0,transition:{duration:.3,ease:jn.ease}}},fade:{enter:{opacity:1,transition:{duration:.4,ease:jn.ease}},exit:{opacity:0,transition:{duration:.3,ease:jn.ease}}},collapse:{enter:{opacity:1,height:"auto",transition:{height:{type:"spring",bounce:0,duration:.3},opacity:{easings:"ease",duration:.4}}},exit:{opacity:0,height:0,transition:{easings:"ease",duration:.3}}}};function Bx(e){return null}Bx.getCollectionNode=function*(t,n){let{childItems:r,title:o,children:i}=t,s=t.title||t.children,a=t.textValue||(typeof s=="string"?s:"")||t["aria-label"]||"";!a&&!(n!=null&&n.suppressTextValueWarning)&&console.warn(" with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:s,textValue:a,"aria-label":t["aria-label"],hasChildNodes:e8(t),*childNodes(){if(r)for(let l of r)yield{type:"item",value:l};else if(o){let l=[];ee.Children.forEach(i,u=>{l.push({type:"item",element:u})}),yield*l}}}};function e8(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&ee.Children.count(e.children)>0)}let Vx=Bx;class t8{build(t,n){return this.context=n,Jg(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");for(let o of t.items)yield*this.getFullNode({value:o},{renderer:n})}else{let o=[];ee.Children.forEach(n,s=>{o.push(s)});let i=0;for(let s of o){let a=this.getFullNode({element:s,index:i},{});for(let l of a)i++,yield l}}}getKey(t,n,r,o){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${o}${n.key}`;let i=n.value;if(i!=null){var s;let a=(s=i.key)!==null&&s!==void 0?s:i.id;if(a==null)throw new Error("No key found for item");return a}return o?`${o}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,o){let i=t.element;if(!i&&t.value&&n&&n.renderer){let l=this.cache.get(t.value);if(l&&(!l.shouldInvalidate||!l.shouldInvalidate(this.context))){l.index=t.index,l.parentKey=o?o.key:null,yield l;return}i=n.renderer(t.value)}if(ee.isValidElement(i)){let l=i.type;if(typeof l!="function"&&typeof l.getCollectionNode!="function"){let f=typeof i.type=="function"?i.type.name:i.type;throw new Error(`Unknown element <${f}> in collection.`)}let u=l.getCollectionNode(i.props,this.context),c=t.index,d=u.next();for(;!d.done&&d.value;){let f=d.value;t.index=c;let p=f.key;p||(p=f.element?null:this.getKey(i,t,n,r));let b=[...this.getFullNode({...f,key:p,index:c,wrapper:n8(t.wrapper,f.wrapper)},this.getChildState(n,f),r?`${r}${i.key}`:i.key,o)];for(let w of b){if(w.value=f.value||t.value,w.value&&this.cache.set(w.value,w),t.type&&w.type!==t.type)throw new Error(`Unsupported type <${cc(w.type)}> in <${cc(o.type)}>. Only <${cc(t.type)}> is supported.`);c++,yield w}d=u.next(b)}return}if(t.key==null)return;let s=this,a={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:t.value,level:o?o.level+1:0,index:t.index,rendered:t.rendered,textValue:t.textValue,"aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes,childNodes:Jg(function*(){if(!t.hasChildNodes)return;let l=0;for(let u of t.childNodes()){u.key!=null&&(u.key=`${a.key}${u.key}`),u.index=l;let c=s.getFullNode(u,s.getChildState(n,u),a.key,a);for(let d of c)l++,yield d}})};yield a}constructor(){this.cache=new WeakMap}}function Jg(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function n8(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function cc(e){return e[0].toUpperCase()+e.slice(1)}function Kx(e,t,n){let r=h.useMemo(()=>new t8,[]),{children:o,items:i,collection:s}=e;return h.useMemo(()=>{if(s)return s;let l=r.build({children:o,items:i},n);return t(l)},[r,o,i,s,n,t])}function ru(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function r8(e){return o8(e,0)}function o8(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function dc(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...qg(e,t),t],o=[...qg(e,n),n],i=r.slice(0,o.length).findIndex((s,a)=>s!==o[a]);return i!==-1?(t=r[i],n=o[i],t.index-n.index):r.findIndex(s=>s===n)>=0?1:(o.findIndex(s=>s===t)>=0,-1)}function qg(e,t){let n=[];for(;(t==null?void 0:t.parentKey)!=null;)t=e.getItem(t.parentKey),n.unshift(t);return n}const ev=new WeakMap;function Ip(e){let t=ev.get(e);if(t!=null)return t;t=0;let n=r=>{for(let o of r)o.type==="section"?n(ru(o,e)):t++};return n(e),ev.set(e,t),t}class Ut extends Set{constructor(t,n,r){super(t),t instanceof Ut?(this.anchorKey=n||t.anchorKey,this.currentKey=r||t.currentKey):(this.anchorKey=n,this.currentKey=r)}}function i8(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function zx(e){let{selectionMode:t="none",disallowEmptySelection:n,allowDuplicateSelectionEvents:r,selectionBehavior:o="toggle",disabledBehavior:i="all"}=e,s=h.useRef(!1),[,a]=h.useState(!1),l=h.useRef(null),u=h.useRef(null),[,c]=h.useState(null),d=h.useMemo(()=>tv(e.selectedKeys),[e.selectedKeys]),f=h.useMemo(()=>tv(e.defaultSelectedKeys,new Ut),[e.defaultSelectedKeys]),[p,y]=pr(d,f,e.onSelectionChange),b=h.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[w,x]=h.useState(o);o==="replace"&&w==="toggle"&&typeof p=="object"&&p.size===0&&x("replace");let g=h.useRef(o);return h.useEffect(()=>{o!==g.current&&(x(o),g.current=o)},[o]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:w,setSelectionBehavior:x,get isFocused(){return s.current},setFocused(v){s.current=v,a(v)},get focusedKey(){return l.current},get childFocusStrategy(){return u.current},setFocusedKey(v,S="first"){l.current=v,u.current=S,c(v)},selectedKeys:p,setSelectedKeys(v){(r||!i8(v,p))&&y(v)},disabledKeys:b,disabledBehavior:i}}function tv(e,t){return e?e==="all"?"all":new Ut(e):t}class Wx{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){return this.state.selectionMode==="none"?!1:(t=this.getKey(t),this.state.selectedKeys==="all"?this.canSelectItem(t):this.state.selectedKeys.has(t))}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&dc(this.collection,r,t)<0)&&(t=r)}return t==null?void 0:t.key}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&dc(this.collection,r,t)>0)&&(t=r)}return t==null?void 0:t.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}t=this.getKey(t);let n;if(this.state.selectedKeys==="all")n=new Ut([t],t,t);else{let r=this.state.selectedKeys,o=r.anchorKey||t;n=new Ut(r,o,t);for(let i of this.getKeyRange(o,r.currentKey||t))n.delete(i);for(let i of this.getKeyRange(t,o))this.canSelectItem(i)&&n.add(i)}this.state.setSelectedKeys(n)}getKeyRange(t,n){let r=this.collection.getItem(t),o=this.collection.getItem(n);return r&&o?dc(this.collection,r,o)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){let r=[],o=t;for(;o;){let i=this.collection.getItem(o);if((i&&i.type==="item"||i.type==="cell"&&this.allowsCellSelection)&&r.push(o),o===n)return r;o=this.collection.getKeyAfter(o)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}if(t=this.getKey(t),t==null)return;let n=new Ut(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none"||(t=this.getKey(t),t==null))return;let n=this.canSelectItem(t)?new Ut([t],t,t):new Ut;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new Ut;for(let r of t)if(r=this.getKey(r),r!=null&&(n.add(r),this.selectionMode==="single"))break;this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r;){if(this.canSelectItem(r)){let o=this.collection.getItem(r);o.type==="item"&&t.push(r),o.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&n(r8(ru(o,this.collection)).key)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new Ut)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){return this.state.disabledKeys.has(t)&&this.state.disabledBehavior==="all"}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}constructor(t,n,r){this.collection=t,this.state=n;var o;this.allowsCellSelection=(o=r==null?void 0:r.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null}}class s8{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}constructor(t,{expandedKeys:n}={}){this.keyMap=new Map,this.iterable=t,n=n||new Set;let r=s=>{if(this.keyMap.set(s.key,s),s.childNodes&&(s.type==="section"||n.has(s.key)))for(let a of s.childNodes)r(a)};for(let s of t)r(s);let o,i=0;for(let[s,a]of this.keyMap)o?(o.nextKey=s,a.prevKey=o.key):(this.firstKey=s,a.prevKey=void 0),a.type==="item"&&(a.index=i++),o=a,o.nextKey=void 0;this.lastKey=o==null?void 0:o.key}}function a8(e){let[t,n]=pr(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,e.onExpandedChange),r=zx(e),o=h.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=Kx(e,h.useCallback(a=>new s8(a,{expandedKeys:t}),[t]),null);return h.useEffect(()=>{r.focusedKey!=null&&!i.getItem(r.focusedKey)&&r.setFocusedKey(null)},[i,r.focusedKey]),{collection:i,expandedKeys:t,disabledKeys:o,toggleKey:a=>{n(l8(t,a))},setExpandedKeys:n,selectionManager:new Wx(i,r)}}function l8(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}function u8(e){let t=ln(e,{enabled:typeof e.elementType=="string"}),n;return e.orientation==="vertical"&&(n="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":n}}:{separatorProps:t}}function c8(e){const{as:t,className:n,orientation:r,...o}=e;let i=t||"hr";i==="hr"&&r==="vertical"&&(i="div");const{separatorProps:s}=u8({elementType:typeof i=="string"?i:"hr",orientation:r}),a=h.useMemo(()=>Z$({orientation:r,className:n}),[r,n]),l=h.useCallback((u={})=>({className:a,role:"separator","data-orientation":r,...s,...o,...u}),[a,r,s,o]);return{Component:i,getDividerProps:l}}var Ux=he((e,t)=>{const{Component:n,getDividerProps:r}=c8({...e});return P.jsx(n,{ref:t,...r()})});Ux.displayName="NextUI.Divider";var Hx=Ux,Rp=e=>{const t={top:{originY:1},bottom:{originY:0},left:{originX:1},right:{originX:0},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1}};return(t==null?void 0:t[e])||{}},Gx=e=>({top:"top",bottom:"bottom",left:"left",right:"right","top-start":"top start","top-end":"top end","bottom-start":"bottom start","bottom-end":"bottom end","left-start":"left top","left-end":"left bottom","right-start":"right top","right-end":"right bottom"})[e],d8=(e,t)=>{if(t.includes("-")){const[n]=t.split("-");if(n.includes(e))return!1}return!0},$l=(e,t)=>{if(t.includes("-")){const[,n]=t.split("-");return`${e}-${n}`}return e},mi=new WeakMap,Nt=[];function f8(e,t=document.body){let n=new Set(e),r=new Set,o=l=>{for(let f of l.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(f);let u=f=>{const p=f.parentElement;if(n.has(f)||r.has(p)&&p.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let y of n)if(f.contains(y))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},c=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),d=u(l);if(d===NodeFilter.FILTER_ACCEPT&&i(l),d!==NodeFilter.FILTER_REJECT){let f=c.nextNode();for(;f!=null;)i(f),f=c.nextNode()}},i=l=>{var u;let c=(u=mi.get(l))!=null?u:0;l.getAttribute("aria-hidden")==="true"&&c===0||(c===0&&l.setAttribute("aria-hidden","true"),r.add(l),mi.set(l,c+1))};Nt.length&&Nt[Nt.length-1].disconnect(),o(t);let s=new MutationObserver(l=>{for(let u of l)if(!(u.type!=="childList"||u.addedNodes.length===0)&&![...n,...r].some(c=>c.contains(u.target))){for(let c of u.removedNodes)c instanceof Element&&(n.delete(c),r.delete(c));for(let c of u.addedNodes)(c instanceof HTMLElement||c instanceof SVGElement)&&(c.dataset.liveAnnouncer==="true"||c.dataset.reactAriaTopLayer==="true")?n.add(c):c instanceof Element&&o(c)}});s.observe(t,{childList:!0,subtree:!0});let a={observe(){s.observe(t,{childList:!0,subtree:!0})},disconnect(){s.disconnect()}};return Nt.push(a),()=>{s.disconnect();for(let l of r){let u=mi.get(l);u!=null&&(u===1?(l.removeAttribute("aria-hidden"),mi.delete(l)):mi.set(l,u-1))}a===Nt[Nt.length-1]?(Nt.pop(),Nt.length&&Nt[Nt.length-1].observe()):Nt.splice(Nt.indexOf(a),1)}}var p8=()=>P.jsxs("svg",{"aria-hidden":"true",fill:"none",height:"80%",role:"presentation",viewBox:"0 0 24 24",width:"80%",children:[P.jsx("path",{d:"M12 2C9.38 2 7.25 4.13 7.25 6.75C7.25 9.32 9.26 11.4 11.88 11.49C11.96 11.48 12.04 11.48 12.1 11.49C12.12 11.49 12.13 11.49 12.15 11.49C12.16 11.49 12.16 11.49 12.17 11.49C14.73 11.4 16.74 9.32 16.75 6.75C16.75 4.13 14.62 2 12 2Z",fill:"currentColor"}),P.jsx("path",{d:"M17.0809 14.1489C14.2909 12.2889 9.74094 12.2889 6.93094 14.1489C5.66094 14.9989 4.96094 16.1489 4.96094 17.3789C4.96094 18.6089 5.66094 19.7489 6.92094 20.5889C8.32094 21.5289 10.1609 21.9989 12.0009 21.9989C13.8409 21.9989 15.6809 21.5289 17.0809 20.5889C18.3409 19.7389 19.0409 18.5989 19.0409 17.3589C19.0309 16.1289 18.3409 14.9889 17.0809 14.1489Z",fill:"currentColor"})]}),[zL,h8]=Yo({name:"AvatarGroupContext",strict:!1}),m8=globalThis!=null&&globalThis.document?h.useLayoutEffect:h.useEffect;function Yx(e={}){const{loading:t,src:n,srcSet:r,onLoad:o,onError:i,crossOrigin:s,sizes:a,ignoreFallback:l}=e,[u,c]=h.useState("pending");h.useEffect(()=>{c(n?"loading":"pending")},[n]);const d=h.useRef(),f=h.useCallback(()=>{if(!n)return;p();const y=new Image;y.src=n,s&&(y.crossOrigin=s),r&&(y.srcset=r),a&&(y.sizes=a),t&&(y.loading=t),y.onload=b=>{p(),c("loaded"),o==null||o(b)},y.onerror=b=>{p(),c("failed"),i==null||i(b)},d.current=y},[n,s,r,a,o,i,t]),p=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)};return m8(()=>{if(!l)return u==="loading"&&f(),()=>{p()}},[u,f,l]),l?"loaded":u}function g8(e={}){var t,n,r,o,i;const s=h8(),a=!!s,{as:l,ref:u,src:c,name:d,icon:f,classNames:p,fallback:y,alt:b=d||"avatar",imgRef:w,color:x=(t=s==null?void 0:s.color)!=null?t:"default",radius:g=(n=s==null?void 0:s.radius)!=null?n:"full",size:v=(r=s==null?void 0:s.size)!=null?r:"md",isBordered:S=(o=s==null?void 0:s.isBordered)!=null?o:!1,isDisabled:k=(i=s==null?void 0:s.isDisabled)!=null?i:!1,isFocusable:A=!1,getInitials:D=t5,ignoreFallback:m=!1,showFallback:L=!1,ImgComponent:M="img",imgProps:E,className:N,onError:C,...$}=e,R=l||"span",_=Fe(u),j=Fe(w),{isFocusVisible:I,isFocused:B,focusProps:O}=sr(),{isHovered:T,hoverProps:F}=un({isDisabled:k}),W=Yx({src:c,onError:C,ignoreFallback:m})==="loaded",U=(!c||!W)&&L,Q=h.useMemo(()=>{var ie;return q$({color:x,radius:g,size:v,isBordered:S,isDisabled:k,isInGroup:a,isInGridGroup:(ie=s==null?void 0:s.isGrid)!=null?ie:!1})},[x,g,v,S,k,a,s==null?void 0:s.isGrid]),K=ne(p==null?void 0:p.base,N),G=h.useMemo(()=>A||l==="button",[A,l]),Z=h.useCallback((ie={})=>({ref:_,tabIndex:G?0:-1,"data-hover":H(T),"data-focus":H(B),"data-focus-visible":H(I),className:Q.base({class:ne(K,ie==null?void 0:ie.className)}),...Y($,F,G?O:{})}),[G,Q,K,O,$]),re=h.useCallback((ie={})=>({ref:j,src:c,"data-loaded":H(W),className:Q.img({class:p==null?void 0:p.img}),...Y(E,ie)}),[Q,W,E,c,j]);return{Component:R,ImgComponent:M,src:c,alt:b,icon:f,name:d,imgRef:j,slots:Q,classNames:p,fallback:y,isImgLoaded:W,showFallback:U,ignoreFallback:m,getInitials:D,getAvatarProps:Z,getImageProps:re}}var Xx=he((e,t)=>{const{Component:n,ImgComponent:r,src:o,icon:i=P.jsx(p8,{}),alt:s,classNames:a,slots:l,name:u,showFallback:c,fallback:d,getInitials:f,getAvatarProps:p,getImageProps:y}=g8({...e,ref:t}),b=h.useMemo(()=>!c&&o?null:d?P.jsx("div",{"aria-label":s,className:l.fallback({class:a==null?void 0:a.fallback}),role:"img",children:d}):u?P.jsx("span",{"aria-label":s,className:l.name({class:a==null?void 0:a.name}),role:"img",children:f(u)}):P.jsx("span",{"aria-label":s,className:l.icon({class:a==null?void 0:a.icon}),role:"img",children:i}),[c,o,d,u,a]);return P.jsxs(n,{...p(),children:[o&&P.jsx(r,{...y(),alt:s}),b]})});Xx.displayName="NextUI.Avatar";var Qx=Xx,[WL,v8]=Yo({name:"ButtonGroupContext",strict:!1});function Op(e,t){let{elementType:n="button",isDisabled:r,onPress:o,onPressStart:i,onPressEnd:s,onPressChange:a,preventFocusOnPress:l,allowFocusWhenDisabled:u,onClick:c,href:d,target:f,rel:p,type:y="button",allowTextSelectionOnPress:b}=e,w;n==="button"?w={type:y,disabled:r}:w={role:"button",tabIndex:r?void 0:0,href:n==="a"&&r?void 0:d,target:n==="a"?f:void 0,type:n==="input"?y:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?p:void 0};let{pressProps:x,isPressed:g}=cp({onPressStart:i,onPressEnd:s,onPressChange:a,onPress:o,isDisabled:r,preventFocusOnPress:l,allowTextSelectionOnPress:b,ref:t}),{focusableProps:v}=ap(e,t);u&&(v.tabIndex=r?-1:v.tabIndex);let S=Y(v,x,hr(e,{labelable:!0}));return{isPressed:g,buttonProps:Y(w,S,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:k=>{c==null||c(k)}})}}var y8=(e,t,n)=>Math.min(Math.max(e,t),n),Zx=e=>{const{ripples:t=[],motionProps:n,color:r="currentColor",style:o,onClear:i}=e;return P.jsx(P.Fragment,{children:t.map(s=>{const a=y8(.01*s.size,.2,s.size>100?.75:.5);return P.jsx(ks,{mode:"popLayout",children:P.jsx(ur.span,{animate:{transform:"scale(2)",opacity:0},className:"nextui-ripple",exit:{opacity:0},initial:{transform:"scale(0)",opacity:.35},style:{position:"absolute",backgroundColor:r,borderRadius:"100%",transformOrigin:"center",pointerEvents:"none",zIndex:10,top:s.y,left:s.x,width:`${s.size}px`,height:`${s.size}px`,...o},transition:{duration:a},onAnimationComplete:()=>{i(s.key)},...n})},s.key)})})};Zx.displayName="NextUI.Ripple";var Jx=Zx;function qx(e={}){const[t,n]=h.useState([]),r=h.useCallback(i=>{const s=i.currentTarget,a=Math.max(s.clientWidth,s.clientHeight),l=s.getBoundingClientRect();n(u=>[...u,{key:s5(u.length.toString()),size:a,x:i.clientX-l.x-a/2,y:i.clientY-l.y-a/2}])},[]),o=h.useCallback(i=>{n(s=>s.filter(a=>a.key!==i))},[]);return{ripples:t,onClick:r,onClear:o,...e}}function b8(e){var t,n,r,o,i,s,a,l;const u=v8(),c=!!u,{ref:d,as:f,children:p,startContent:y,endContent:b,autoFocus:w,className:x,spinner:g,fullWidth:v=(t=u==null?void 0:u.fullWidth)!=null?t:!1,size:S=(n=u==null?void 0:u.size)!=null?n:"md",color:k=(r=u==null?void 0:u.color)!=null?r:"default",variant:A=(o=u==null?void 0:u.variant)!=null?o:"solid",disableAnimation:D=(i=u==null?void 0:u.disableAnimation)!=null?i:!1,radius:m=u==null?void 0:u.radius,disableRipple:L=(s=u==null?void 0:u.disableRipple)!=null?s:!1,isDisabled:M=(a=u==null?void 0:u.isDisabled)!=null?a:!1,isIconOnly:E=(l=u==null?void 0:u.isIconOnly)!=null?l:!1,isLoading:N=!1,spinnerPlacement:C="start",onPress:$,onClick:R,..._}=e,j=f||"button",I=typeof j=="string",B=Fe(d),{isFocusVisible:O,isFocused:T,focusProps:F}=sr({autoFocus:w}),V=M||N,W=h.useMemo(()=>e5({size:S,color:k,variant:A,radius:m,fullWidth:v,isDisabled:V,isInGroup:c,disableAnimation:D,isIconOnly:E,className:x}),[S,k,A,m,v,V,c,E,D,x]),{onClick:U,onClear:Q,ripples:K}=qx(),G=h.useCallback(dt=>{L||V||D||B.current&&U(dt)},[L,V,D,B,U]),{buttonProps:Z,isPressed:re}=Op({elementType:f,isDisabled:V,onPress:$,onClick:zr(R,G),..._},B),{isHovered:ie,hoverProps:de}=un({isDisabled:V}),ce=h.useCallback((dt={})=>({"data-disabled":H(V),"data-focus":H(T),"data-pressed":H(re),"data-focus-visible":H(O),"data-hover":H(ie),"data-loading":H(N),...Y(Z,F,de,ln(_,{enabled:I}),ln(dt))}),[N,V,T,re,I,O,ie,Z,F,de,_]),pe=dt=>h.isValidElement(dt)?h.cloneElement(dt,{"aria-hidden":!0,focusable:!1,tabIndex:-1}):null,bt=pe(y),q=pe(b),se=h.useMemo(()=>({sm:"sm",md:"sm",lg:"md"})[S],[S]),me=h.useCallback(()=>({ripples:K,onClear:Q}),[K,Q]);return{Component:j,children:p,domRef:B,spinner:g,styles:W,startContent:bt,endContent:q,isLoading:N,spinnerPlacement:C,spinnerSize:se,disableRipple:L,getButtonProps:ce,getRippleProps:me,isIconOnly:E}}function x8(e){const[t,n]=Qt(e,Nm.variantKeys),{children:r,className:o,classNames:i,label:s,...a}=t,l=h.useMemo(()=>Nm({...n}),[...Object.values(n)]),u=ne(i==null?void 0:i.base,o),c=s||r,d=h.useMemo(()=>c&&typeof c=="string"?c:a["aria-label"]?"":"Loading",[r,c,a["aria-label"]]),f=h.useCallback(()=>({"aria-label":d,className:l.base({class:u}),...a}),[d,l,u,a]);return{label:c,slots:l,classNames:i,getSpinnerProps:f}}var ew=he((e,t)=>{const{slots:n,classNames:r,label:o,getSpinnerProps:i}=x8({...e});return P.jsxs("div",{ref:t,...i(),children:[P.jsxs("div",{className:n.wrapper({class:r==null?void 0:r.wrapper}),children:[P.jsx("i",{className:n.circle1({class:r==null?void 0:r.circle1})}),P.jsx("i",{className:n.circle2({class:r==null?void 0:r.circle2})})]}),o&&P.jsx("span",{className:n.label(),children:o})]})});ew.displayName="NextUI.Spinner";var w8=ew,tw=he((e,t)=>{const{Component:n,domRef:r,children:o,styles:i,spinnerSize:s,spinner:a=P.jsx(w8,{color:"current",size:s}),spinnerPlacement:l,startContent:u,endContent:c,isLoading:d,disableRipple:f,getButtonProps:p,getRippleProps:y,isIconOnly:b}=b8({...e,ref:t});return P.jsxs(n,{ref:r,className:i,...p(),children:[u,d&&l==="start"&&a,d&&b?null:o,d&&l==="end"&&a,c,!f&&P.jsx(Jx,{...y()})]})});tw.displayName="NextUI.Button";var Io=tw,[C8,nw]=Yo({name:"CardContext",strict:!0,errorMessage:"useCardContext: `context` is undefined. Seems you forgot to wrap component within "}),rw=he((e,t)=>{var n;const{as:r,className:o,children:i,...s}=e,a=r||"div",l=Fe(t),{slots:u,classNames:c}=nw(),d=ne(c==null?void 0:c.footer,o);return P.jsx(a,{ref:l,className:(n=u.footer)==null?void 0:n.call(u,{class:d}),...s,children:i})});rw.displayName="NextUI.CardFooter";var S8=rw,ow=he((e,t)=>{var n;const{as:r,className:o,children:i,...s}=e,a=r||"div",l=Fe(t),{slots:u,classNames:c}=nw(),d=ne(c==null?void 0:c.header,o);return P.jsx(a,{ref:l,className:(n=u.header)==null?void 0:n.call(u,{class:d}),...s,children:i})});ow.displayName="NextUI.CardHeader";var P8=ow;function $8(e){const[t,n]=Qt(e,jm.variantKeys),{ref:r,as:o,children:i,disableRipple:s=!1,onClick:a,onPress:l,autoFocus:u,className:c,classNames:d,allowTextSelectionOnPress:f=!0,...p}=t,y=Fe(r),b=o||(e.isPressable?"button":"div"),w=typeof b=="string",x=ne(d==null?void 0:d.base,c),{onClick:g,onClear:v,ripples:S}=qx(),k=j=>{!e.disableAnimation&&!s&&y.current&&g(j)},{buttonProps:A,isPressed:D}=Op({onPress:l,elementType:o,isDisabled:!e.isPressable,onClick:zr(a,k),allowTextSelectionOnPress:f,...p},y),{hoverProps:m,isHovered:L}=un({isDisabled:!e.isHoverable,...p}),{isFocusVisible:M,isFocused:E,focusProps:N}=sr({autoFocus:u}),C=h.useMemo(()=>jm({...n}),[...Object.values(n)]),$=h.useMemo(()=>({isDisabled:e.isDisabled,isFooterBlurred:e.isFooterBlurred,disableAnimation:e.disableAnimation,fullWidth:e.fullWidth,slots:C,classNames:d}),[C,d,e.isDisabled,e.isFooterBlurred,e.disableAnimation,e.fullWidth]),R=h.useCallback((j={})=>({ref:y,className:C.base({class:x}),tabIndex:e.isPressable?0:-1,"data-hover":H(L),"data-pressed":H(D),"data-focus":H(E),"data-focus-visible":H(M),"data-disabled":H(e.isDisabled),...Y(e.isPressable?{...A,...N,role:"button"}:{},e.isHoverable?m:{},ln(p,{enabled:w}),ln(j))}),[y,C,x,w,e.isPressable,e.isHoverable,e.isDisabled,L,D,M,A,N,m,p]),_=h.useCallback(()=>({ripples:S,onClear:v}),[S,v]);return{context:$,domRef:y,Component:b,classNames:d,children:i,isHovered:L,isPressed:D,isPressable:e.isPressable,isHoverable:e.isHoverable,disableAnimation:e.disableAnimation,disableRipple:s,handleClick:k,isFocusVisible:M,getCardProps:R,getRippleProps:_}}var iw=he((e,t)=>{const{children:n,context:r,Component:o,isPressable:i,disableAnimation:s,disableRipple:a,getCardProps:l,getRippleProps:u}=$8({...e,ref:t});return P.jsxs(o,{...l(),children:[P.jsx(C8,{value:r,children:n}),i&&!s&&!a&&P.jsx(Jx,{...u()})]})});iw.displayName="NextUI.Card";var E8=iw;function k8(e,t,n){let{validationBehavior:r,focus:o}=e;Te(()=>{if(r==="native"&&(n!=null&&n.current)){let l=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(l),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(A8(n.current))}});let i=Oe(()=>{t.resetValidation()}),s=Oe(l=>{var u;t.displayValidation.isInvalid||t.commitValidation();let c=n==null||(u=n.current)===null||u===void 0?void 0:u.form;if(!l.defaultPrevented&&n&&c&&M8(c)===n.current){var d;o?o():(d=n.current)===null||d===void 0||d.focus(),wP("keyboard")}l.preventDefault()}),a=Oe(()=>{t.commitValidation()});h.useEffect(()=>{let l=n==null?void 0:n.current;if(!l)return;let u=l.form;return l.addEventListener("invalid",s),l.addEventListener("change",a),u==null||u.addEventListener("reset",i),()=>{l.removeEventListener("invalid",s),l.removeEventListener("change",a),u==null||u.removeEventListener("reset",i)}},[n,s,a,i,r])}function T8(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function A8(e){return{isInvalid:!e.validity.valid,validationDetails:T8(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function M8(e){for(let t=0;tnv(N8(s,o)),[s,o]);i!=null&&i.validationDetails.valid&&(i=null);let c=h.useContext(L8),d=h.useMemo(()=>r?Array.isArray(r)?r.flatMap(M=>Ud(c[M])):Ud(c[r]):[],[c,r]),[f,p]=h.useState(c),[y,b]=h.useState(!1);c!==f&&(p(c),b(!1));let w=h.useMemo(()=>nv(y?[]:d),[y,d]),x=h.useRef(gi),[g,v]=h.useState(gi),S=h.useRef(gi),k=()=>{if(!A)return;D(!1);let M=u||i||x.current;fc(M,S.current)||(S.current=M,v(M))},[A,D]=h.useState(!1);return h.useEffect(k),{realtimeValidation:l||w||u||i||gi,displayValidation:a==="native"?l||w||g:l||w||u||i||g,updateValidation(M){a==="aria"&&!fc(g,M)?v(M):x.current=M},resetValidation(){let M=gi;fc(M,S.current)||(S.current=M,v(M)),a==="native"&&D(!1),b(!0)},commitValidation(){a==="native"&&D(!0),b(!0)}}}function Ud(e){return e?Array.isArray(e)?e:[e]:[]}function N8(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Ud(n)}return[]}function nv(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:aw}:null}function fc(e,t){return e===t?!0:e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function uw(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:i="label"}=e;t=sn(t);let s=sn(),a={};n?(r=r?`${s} ${r}`:s,a={id:s,htmlFor:i==="label"?t:void 0}):!r&&!o&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=ol({id:t,"aria-label":o,"aria-labelledby":r});return{labelProps:a,fieldProps:l}}function I8(e){let{description:t,errorMessage:n,isInvalid:r,validationState:o}=e,{labelProps:i,fieldProps:s}=uw(e),a=Jn([!!t,!!n,r,o]),l=Jn([!!t,!!n,r,o]);return s=Y(s,{"aria-describedby":[a,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:s,descriptionProps:{id:a},errorMessageProps:{id:l}}}function Fp(e){let[t,n]=pr(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=h.useCallback(()=>{n(!0)},[n]),o=h.useCallback(()=>{n(!1)},[n]),i=h.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:o,toggle:i}}const R8=1500,rv=500;let br={},O8=0,vi=!1,pn=null,xr=null;function F8(e={}){let{delay:t=R8,closeDelay:n=rv}=e,{isOpen:r,open:o,close:i}=Fp(e),s=h.useMemo(()=>`${++O8}`,[]),a=h.useRef(),l=()=>{br[s]=d},u=()=>{for(let p in br)p!==s&&(br[p](!0),delete br[p])},c=()=>{clearTimeout(a.current),a.current=null,u(),l(),vi=!0,o(),pn&&(clearTimeout(pn),pn=null),xr&&(clearTimeout(xr),xr=null)},d=p=>{p||n<=0?(clearTimeout(a.current),a.current=null,i()):a.current||(a.current=setTimeout(()=>{a.current=null,i()},n)),pn&&(clearTimeout(pn),pn=null),vi&&(xr&&clearTimeout(xr),xr=setTimeout(()=>{delete br[s],xr=null,vi=!1},Math.max(rv,n)))},f=()=>{u(),l(),!r&&!pn&&!vi?pn=setTimeout(()=>{pn=null,vi=!0,c()},t):r||c()};return h.useEffect(()=>()=>{clearTimeout(a.current),br[s]&&delete br[s]},[s]),{isOpen:r,open:p=>{!p&&t>0&&!a.current?f():c()},close:d}}function j8(e,t){let n=hr(e,{labelable:!0}),{hoverProps:r}=un({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:Y(n,r,{role:"tooltip"})}}function _8(e,t,n){let{isDisabled:r,trigger:o}=e,i=sn(),s=h.useRef(!1),a=h.useRef(!1),l=()=>{(s.current||a.current)&&t.open(a.current)},u=g=>{!s.current&&!a.current&&t.close(g)};h.useEffect(()=>{let g=v=>{n&&n.current&&v.key==="Escape"&&(v.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",g,!0),()=>{document.removeEventListener("keydown",g,!0)}},[n,t]);let c=()=>{o!=="focus"&&(sl()==="pointer"?s.current=!0:s.current=!1,l())},d=()=>{o!=="focus"&&(a.current=!1,s.current=!1,u())},f=()=>{a.current=!1,s.current=!1,u(!0)},p=()=>{Ko()&&(a.current=!0,l())},y=()=>{a.current=!1,s.current=!1,u(!0)},{hoverProps:b}=un({isDisabled:r,onHoverStart:c,onHoverEnd:d}),{pressProps:w}=ws({onPressStart:f}),{focusableProps:x}=ap({isDisabled:r,onFocus:p,onBlur:y},n);return{triggerProps:{"aria-describedby":t.isOpen?i:void 0,...Y(x,b,w)},tooltipProps:{id:i}}}function B8(e){const[t,n]=Qt(e,ml.variantKeys),{ref:r,as:o,isOpen:i,content:s,children:a,defaultOpen:l,onOpenChange:u,isDisabled:c,trigger:d,shouldFlip:f=!0,containerPadding:p=12,placement:y="top",delay:b=0,closeDelay:w=500,showArrow:x=!1,offset:g=7,crossOffset:v=0,isDismissable:S,shouldCloseOnBlur:k=!0,portalContainer:A,isKeyboardDismissDisabled:D=!1,updatePositionDeps:m=[],shouldCloseOnInteractOutside:L,className:M,onClose:E,motionProps:N,classNames:C,...$}=t,R=o||"div",_=F8({delay:b,closeDelay:w,isDisabled:c,defaultOpen:l,isOpen:i,onOpenChange:de=>{u==null||u(de),de||E==null||E()}}),j=h.useRef(null),I=h.useRef(null),B=h.useId(),O=_.isOpen&&!c;h.useImperativeHandle(r,()=>l5(I));const{triggerProps:T,tooltipProps:F}=_8({isDisabled:c,trigger:d},_,j),{tooltipProps:V}=j8({isOpen:O,...Y(t,F)},_),{overlayProps:W,placement:U,updatePosition:Q}=sb({isOpen:O,targetRef:j,placement:Gx(y),overlayRef:I,offset:x?g+3:g,crossOffset:v,shouldFlip:f,containerPadding:p});h.useLayoutEffect(()=>{m.length&&Q()},m);const{overlayProps:K}=ab({isOpen:O,onClose:_.close,isDismissable:S,shouldCloseOnBlur:k,isKeyboardDismissDisabled:D,shouldCloseOnInteractOutside:L},I),G=h.useMemo(()=>{var de,ce,pe;return ml({...n,radius:(de=e==null?void 0:e.radius)!=null?de:"md",size:(ce=e==null?void 0:e.size)!=null?ce:"md",shadow:(pe=e==null?void 0:e.shadow)!=null?pe:"sm"})},[...Object.values(n),e==null?void 0:e.radius,e==null?void 0:e.size,e==null?void 0:e.shadow]),Z=h.useCallback((de={},ce=null)=>({...Y(T,de),ref:kd(ce,j),"aria-describedby":O?B:void 0}),[T,O,B,_]),re=h.useCallback(()=>({ref:I,"data-slot":"base","data-open":H(O),"data-arrow":H(x),"data-disabled":H(c),"data-placement":$l(U,y),...Y(V,K,$),style:Y(W.style,$.style,t.style),className:G.base({class:C==null?void 0:C.base}),id:B}),[G,O,x,c,U,y,V,K,$,W,t,B]),ie=h.useCallback(()=>({"data-slot":"content","data-open":H(O),"data-arrow":H(x),"data-disabled":H(c),"data-placement":$l(U,y),className:G.content({class:ne(C==null?void 0:C.content,M)})}),[G,O,x,c,U,y,C]);return{Component:R,content:s,children:a,isOpen:O,triggerRef:j,showArrow:x,portalContainer:A,placement:y,disableAnimation:e==null?void 0:e.disableAnimation,isDisabled:c,motionProps:N,getTooltipContentProps:ie,getTriggerProps:Z,getTooltipProps:re}}var cw=he((e,t)=>{const{Component:n,children:r,content:o,isOpen:i,portalContainer:s,placement:a,disableAnimation:l,motionProps:u,getTriggerProps:c,getTooltipProps:d,getTooltipContentProps:f}=B8({...e,ref:t});let p;try{const v=h.Children.only(r);p=h.cloneElement(v,c(v.props,v.ref))}catch{p=P.jsx("span",{}),o5("Tooltip must have only one child node. Please, check your code.")}const{ref:y,id:b,style:w,...x}=d(),g=P.jsx("div",{ref:y,id:b,style:w,children:P.jsx(ur.div,{animate:"enter",exit:"exit",initial:"exit",variants:ss.scaleSpring,...Y(u,x),style:{...Rp(a)},children:P.jsx(n,{...f(),children:o})})});return P.jsxs(P.Fragment,{children:[p,l&&i?P.jsx(Em,{portalContainer:s,children:P.jsx("div",{ref:y,id:b,style:w,...x,children:P.jsx(n,{...f(),children:o})})}):P.jsx(ks,{children:i?P.jsx(Em,{portalContainer:s,children:g}):null})]})});cw.displayName="NextUI.Tooltip";var dw=cw;function fw(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:o=!1,isReadOnly:i=!1,type:s="text",validationBehavior:a="aria"}=e,[l,u]=pr(e.value,e.defaultValue||"",e.onChange),{focusableProps:c}=ap(e,t),d=lw({...e,value:l}),{isInvalid:f,validationErrors:p,validationDetails:y}=d.displayValidation,{labelProps:b,fieldProps:w,descriptionProps:x,errorMessageProps:g}=I8({...e,isInvalid:f,errorMessage:e.errorMessage||p}),v=hr(e,{labelable:!0});const S={type:s,pattern:e.pattern};return qS(t,l,u),k8(e,d,t),h.useEffect(()=>{if(t.current instanceof rl(t.current).HTMLTextAreaElement){let k=t.current;Object.defineProperty(k,"defaultValue",{get:()=>k.value,set:()=>{},configurable:!0})}},[t]),{labelProps:b,inputProps:Y(v,n==="input"&&S,{disabled:r,readOnly:i,required:o&&a==="native","aria-required":o&&a==="aria"||void 0,"aria-invalid":f||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:l,onChange:k=>u(k.target.value),autoComplete:e.autoComplete,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...c,...w}),descriptionProps:x,errorMessageProps:g,isInvalid:f,validationErrors:p,validationDetails:y}}function V8(e){const[t,n]=Qt(e,Fm.variantKeys),{ref:r,as:o,label:i,baseRef:s,wrapperRef:a,description:l,errorMessage:u,className:c,classNames:d,autoFocus:f,startContent:p,endContent:y,onClear:b,onChange:w,validationState:x,innerWrapperRef:g,onValueChange:v=()=>{},...S}=t,k=h.useCallback(oe=>{v(oe??"")},[v]),[A,D]=pr(t.value,t.defaultValue,k),[m,L]=h.useState(!1),M=o||"div",E=!!A,N=E||m,C=ne(d==null?void 0:d.base,c,E?"is-filled":""),$=e.isMultiline,R=Fe(r),_=Fe(s),j=Fe(a),I=Fe(g),B=h.useCallback(()=>{D(""),R.current&&(R.current.value="",R.current.focus()),b==null||b()},[R,D,b]),{labelProps:O,inputProps:T,descriptionProps:F,errorMessageProps:V}=fw({...e,"aria-label":n5(e==null?void 0:e["aria-label"],e==null?void 0:e.label,e==null?void 0:e.placeholder),inputElementType:$?"textarea":"input",onChange:D},R),{isFocusVisible:W,isFocused:U,focusProps:Q}=sr({autoFocus:f,isTextInput:!0}),{isHovered:K,hoverProps:G}=un({isDisabled:!!(e!=null&&e.isDisabled)}),{focusProps:Z,isFocusVisible:re}=sr(),{focusWithinProps:ie}=Cs({onFocusWithinChange:L}),{pressProps:de}=ws({isDisabled:!!(e!=null&&e.isDisabled),onPress:B}),ce=x==="invalid"||e.isInvalid,pe=h.useMemo(()=>{var oe;return(!e.labelPlacement||e.labelPlacement==="inside")&&!i?"outside":(oe=e.labelPlacement)!=null?oe:"inside"},[e.labelPlacement,i]),bt=!!b||e.isClearable,q=!!i||!!l||!!u,se=!!t.placeholder,me=!!i,dt=!!l||!!u,Zo=pe==="outside"||pe==="outside-left",je=pe==="inside",At=R.current?(!R.current.value||R.current.value===""||!A||A==="")&&se:!1,Jo=pe==="outside-left",Zt=!!p,Pe=Zo?pe==="outside-left"||se||pe==="outside"&&Zt:!1,_e=pe==="outside"&&!se&&!Zt,ge=h.useMemo(()=>Fm({...n,isInvalid:ce,isClearable:bt}),[...Object.values(n),ce,bt,Zt]),qo=h.useCallback((oe={})=>({ref:_,className:ge.base({class:C}),"data-slot":"base","data-filled":H(E||se||Zt||At),"data-filled-within":H(N||se||Zt||At),"data-focus-within":H(m),"data-focus-visible":H(W),"data-readonly":H(e.isReadOnly),"data-focus":H(U),"data-hover":H(K),"data-required":H(e.isRequired),"data-invalid":H(ce),"data-disabled":H(e.isDisabled),"data-has-elements":H(q),"data-has-helper":H(dt),"data-has-label":H(me),"data-has-value":H(!At),...ie,...oe}),[ge,C,E,U,K,ce,dt,me,q,At,Zt,m,W,N,se,ie,e.isReadOnly,e.isRequired,e.isDisabled]),Ms=h.useCallback((oe={})=>({"data-slot":"label",className:ge.label({class:d==null?void 0:d.label}),...O,...oe}),[ge,O,d==null?void 0:d.label]),du=h.useCallback((oe={})=>({ref:R,"data-slot":"input","data-filled":H(E),"data-filled-within":H(N),"data-has-start-content":H(Zt),"data-has-end-content":H(!!y),className:ge.input({class:ne(d==null?void 0:d.input,A?"is-filled":"")}),...Y(Q,T,ln(S,{enabled:!0,labelable:!0,omitEventNames:new Set(Object.keys(T))}),oe),required:e.isRequired,"aria-readonly":H(e.isReadOnly),"aria-required":H(e.isRequired),onChange:zr(T.onChange,w)}),[ge,A,Q,T,S,E,N,Zt,y,d==null?void 0:d.input,e.isReadOnly,e.isRequired,w]),F3=h.useCallback((oe={})=>({ref:j,"data-slot":"input-wrapper","data-hover":H(K),"data-focus-visible":H(W),"data-focus":H(U),className:ge.inputWrapper({class:ne(d==null?void 0:d.inputWrapper,A?"is-filled":"")}),...Y(oe,G),onClick:ei=>{R.current&&ei.currentTarget===ei.target&&R.current.focus()},style:{cursor:"text",...oe.style}}),[ge,K,W,U,A,d==null?void 0:d.inputWrapper]),j3=h.useCallback((oe={})=>({...oe,ref:I,"data-slot":"inner-wrapper",onClick:ei=>{R.current&&ei.currentTarget===ei.target&&R.current.focus()},className:ge.innerWrapper({class:ne(d==null?void 0:d.innerWrapper,oe==null?void 0:oe.className)})}),[ge,d==null?void 0:d.innerWrapper]),_3=h.useCallback((oe={})=>({...oe,"data-slot":"main-wrapper",className:ge.mainWrapper({class:ne(d==null?void 0:d.mainWrapper,oe==null?void 0:oe.className)})}),[ge,d==null?void 0:d.mainWrapper]),B3=h.useCallback((oe={})=>({...oe,"data-slot":"helper-wrapper",className:ge.helperWrapper({class:ne(d==null?void 0:d.helperWrapper,oe==null?void 0:oe.className)})}),[ge,d==null?void 0:d.helperWrapper]),V3=h.useCallback((oe={})=>({...oe,...F,"data-slot":"description",className:ge.description({class:ne(d==null?void 0:d.description,oe==null?void 0:oe.className)})}),[ge,d==null?void 0:d.description]),K3=h.useCallback((oe={})=>({...oe,...V,"data-slot":"error-message",className:ge.errorMessage({class:ne(d==null?void 0:d.errorMessage,oe==null?void 0:oe.className)})}),[ge,V,d==null?void 0:d.errorMessage]),z3=h.useCallback((oe={})=>({...oe,role:"button",tabIndex:0,"data-slot":"clear-button","data-focus-visible":H(re),className:ge.clearButton({class:ne(d==null?void 0:d.clearButton,oe==null?void 0:oe.className)}),...Y(de,Z)}),[ge,re,de,Z,d==null?void 0:d.clearButton]);return{Component:M,classNames:d,domRef:R,label:i,description:l,startContent:p,endContent:y,labelPlacement:pe,isClearable:bt,isInvalid:ce,hasHelper:dt,hasStartContent:Zt,isLabelOutside:Pe,isOutsideLeft:Jo,isLabelOutsideAsPlaceholder:_e,shouldLabelBeOutside:Zo,shouldLabelBeInside:je,hasPlaceholder:se,errorMessage:u,getBaseProps:qo,getLabelProps:Ms,getInputProps:du,getMainWrapperProps:_3,getInputWrapperProps:F3,getInnerWrapperProps:j3,getHelperWrapperProps:B3,getDescriptionProps:V3,getErrorMessageProps:K3,getClearButtonProps:z3}}var pw=he((e,t)=>{const{Component:n,label:r,description:o,isClearable:i,startContent:s,endContent:a,labelPlacement:l,hasHelper:u,isOutsideLeft:c,shouldLabelBeOutside:d,errorMessage:f,getBaseProps:p,getLabelProps:y,getInputProps:b,getInnerWrapperProps:w,getInputWrapperProps:x,getMainWrapperProps:g,getHelperWrapperProps:v,getDescriptionProps:S,getErrorMessageProps:k,getClearButtonProps:A}=V8({...e,ref:t}),D=r?P.jsx("label",{...y(),children:r}):null,m=h.useMemo(()=>i?P.jsx("span",{...A(),children:a||P.jsx(R5,{})}):a,[i,A]),L=h.useMemo(()=>u?P.jsx("div",{...v(),children:f?P.jsx("div",{...k(),children:f}):o?P.jsx("div",{...S(),children:o}):null}):null,[u,f,o,v,k,S]),M=h.useMemo(()=>s||m?P.jsxs("div",{...w(),children:[s,P.jsx("input",{...b()}),m]}):P.jsx("div",{...w(),children:P.jsx("input",{...b()})}),[s,m,b,w]),E=h.useMemo(()=>d?P.jsxs("div",{...g(),children:[P.jsxs("div",{...x(),children:[c?null:D,M]}),L]}):P.jsxs(P.Fragment,{children:[P.jsxs("div",{...x(),children:[D,M]}),L]}),[l,L,d,D,M,f,o,g,x,k,S]);return P.jsxs(n,{...p(),children:[c?D:null,E]})});pw.displayName="NextUI.Input";var K8=pw;function z8(e,t){const{triggerRef:n,popoverRef:r,showArrow:o,offset:i=7,crossOffset:s=0,scrollRef:a,shouldFlip:l,boundaryElement:u,shouldCloseOnBlur:c=!0,placement:d="top",containerPadding:f,shouldCloseOnInteractOutside:p,isNonModal:y,isKeyboardDismissDisabled:b,...w}=e,x=y||!0,{overlayProps:g,underlayProps:v}=ab({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:c,isDismissable:!0,isKeyboardDismissDisabled:b,shouldCloseOnInteractOutside:p||(D=>{let m=n==null?void 0:n.current;return!m||!m.contains(D)})},r),{overlayProps:S,arrowProps:k,placement:A}=sb({...w,shouldFlip:l,crossOffset:s,targetRef:n,overlayRef:r,isOpen:t.isOpen,scrollRef:a,boundaryElement:u,containerPadding:f,placement:Gx(d),offset:o?i+3:i,onClose:()=>{}});return h.useEffect(()=>{if(t.isOpen&&!x&&r.current)return f8([r.current])},[x,t.isOpen,r]),{popoverProps:Y(g,S),arrowProps:k,underlayProps:v,placement:A}}function hw(e){var t,n;const[r,o]=Qt(e,ml.variantKeys),{as:i,children:s,ref:a,state:l,triggerRef:u,scrollRef:c,defaultOpen:d,onOpenChange:f,isOpen:p,isNonModal:y=!0,shouldFlip:b=!0,containerPadding:w=12,shouldBlockScroll:x=!1,shouldCloseOnBlur:g,portalContainer:v,placement:S="top",triggerType:k="dialog",showArrow:A=!1,offset:D=7,crossOffset:m=0,boundaryElement:L,isKeyboardDismissDisabled:M,shouldCloseOnInteractOutside:E,motionProps:N,className:C,classNames:$,onClose:R,..._}=r,j=i||"div",I=Fe(a),B=h.useRef(null),O=h.useRef(!1),T=u||B,F=(t=e.disableAnimation)!=null?t:!1,V=Fp({isOpen:p,defaultOpen:d,onOpenChange:je=>{f==null||f(je),je||R==null||R()}}),W=l||V,{popoverProps:U,underlayProps:Q,placement:K}=z8({triggerRef:T,isNonModal:y,popoverRef:I,placement:S,offset:D,scrollRef:c,shouldCloseOnBlur:g,boundaryElement:L,crossOffset:m,shouldFlip:b,containerPadding:w,isKeyboardDismissDisabled:M,shouldCloseOnInteractOutside:E},W),{triggerProps:G}=lb({type:k},W,T),{isFocusVisible:Z,isFocused:re,focusProps:ie}=sr(),de=h.useMemo(()=>ml({...o}),[...Object.values(o)]),ce=ne($==null?void 0:$.base,C),pe=(je={})=>({ref:I,...Y(U,_,je),style:Y(U.style,_.style,je.style)}),bt=(je={})=>({"data-slot":"base","data-open":H(W.isOpen),"data-focus":H(re),"data-arrow":H(A),"data-focus-visible":H(Z),"data-placement":$l(K,S),...Y(ie,je),className:de.base({class:ne(ce)}),style:{outline:"none"}}),q=h.useCallback((je={})=>({"data-slot":"content","data-open":H(W.isOpen),"data-arrow":H(A),"data-placement":$l(K,S),className:de.content({class:ne($==null?void 0:$.content,je.className)})}),[de,W.isOpen,A,K,S,$]),se=h.useMemo(()=>d8(K,S)?K:S,[K,S]),me=h.useCallback(je=>{var At;let Jo;return je.pointerType==="touch"&&((e==null?void 0:e.backdrop)==="blur"||(e==null?void 0:e.backdrop)==="opaque")?Jo=setTimeout(()=>{O.current=!0},100):O.current=!0,(At=G.onPress)==null||At.call(G,je),()=>{clearTimeout(Jo)}},[G==null?void 0:G.onPress]),dt=h.useCallback((je={},At=null)=>({"data-slot":"trigger","aria-haspopup":"dialog",...Y(G,je),onPress:me,className:de.trigger({class:ne($==null?void 0:$.trigger,je.className)}),ref:RS(At,T)}),[W,G,me,T]),Zo=h.useCallback((je={})=>({"data-slot":"backdrop",className:de.backdrop({class:$==null?void 0:$.backdrop}),onClick:At=>{if(!O.current){At.preventDefault();return}W.close(),O.current=!1},...Q,...je}),[de,W.isOpen,$,Q]);return h.useEffect(()=>{if(W.isOpen&&(I!=null&&I.current))return Ub([I==null?void 0:I.current])},[W.isOpen,I]),{state:W,Component:j,children:s,classNames:$,showArrow:A,triggerRef:T,placement:se,isNonModal:y,popoverRef:I,portalContainer:v,isOpen:W.isOpen,onClose:W.close,disableAnimation:F,shouldBlockScroll:x,backdrop:(n=e.backdrop)!=null?n:"transparent",motionProps:N,getBackdropProps:Zo,getPopoverProps:pe,getTriggerProps:dt,getDialogProps:bt,getContentProps:q}}var W8=({children:e,motionProps:t,placement:n,disableAnimation:r,style:o={},...i})=>r?P.jsx("div",{...i,children:e}):P.jsx(ur.div,{animate:"enter",exit:"exit",initial:"initial",style:{...o,...Rp(n==="center"?"top":n)},variants:ss.scaleSpringOpacity,...Y(i,t),children:e}),mw=he((e,t)=>{const{Component:n,state:r,children:o,placement:i,backdrop:s,portalContainer:a,disableAnimation:l,motionProps:u,isNonModal:c,getPopoverProps:d,getBackdropProps:f,getDialogProps:p,getContentProps:y}=hw({...e,shouldCloseOnInteractOutside:void 0,ref:t}),b=h.useMemo(()=>s==="transparent"?null:l?P.jsx("div",{...f()}):P.jsx(ur.div,{animate:"enter",exit:"exit",initial:"exit",variants:ss.fade,...f()}),[s,l,f]);return P.jsxs(lp,{portalContainer:a,children:[!c&&b,P.jsx(n,{...d(),children:P.jsxs(W8,{disableAnimation:l,motionProps:u,placement:i,tabIndex:-1,...p(),children:[!c&&P.jsx(fl,{onDismiss:r.close}),P.jsx("div",{...y(),children:o}),P.jsx(fl,{onDismiss:r.close})]})})]})});mw.displayName="NextUI.FreeSoloPopover";var U8=mw,[H8,gw]=Yo({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within ``"});function G8(e,t){let{role:n="dialog"}=e,r=Jn();r=e["aria-label"]?void 0:r;let o=h.useRef(!1);return h.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){ir(t.current);let i=setTimeout(()=>{document.activeElement===t.current&&(o.current=!0,t.current.blur(),ir(t.current),o.current=!1)},500);return()=>{clearTimeout(i)}}},[t]),o$(),{dialogProps:{...hr(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:i=>{o.current&&i.stopPropagation()}},titleProps:{id:r}}}var Aa="right-scroll-bar-position",Ma="width-before-scroll-bar",Y8="with-scroll-bars-hidden",X8="--removed-body-scroll-bar-size";function Q8(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Z8(e,t){var n=h.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}function J8(e,t){return Z8(t||null,function(n){return e.forEach(function(r){return Q8(r,n)})})}function q8(e){return e}function e7(e,t){t===void 0&&(t=q8);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var l=function(){var c=s;s=[],c.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(c){s.push(c),u()},filter:function(c){return s=s.filter(c),n}}}};return o}function t7(e){e===void 0&&(e={});var t=e7(null);return t.options=tn({async:!0,ssr:!1},e),t}var vw=function(e){var t=e.sideCar,n=Xy(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return h.createElement(r,tn({},n))};vw.isSideCarExport=!0;function n7(e,t){return e.useMedium(t),vw}var yw=t7(),pc=function(){},ou=h.forwardRef(function(e,t){var n=h.useRef(null),r=h.useState({onScrollCapture:pc,onWheelCapture:pc,onTouchMoveCapture:pc}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,y=e.inert,b=e.allowPinchZoom,w=e.as,x=w===void 0?"div":w,g=e.gapMode,v=Xy(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=f,k=J8([n,t]),A=tn(tn({},v),o);return h.createElement(h.Fragment,null,c&&h.createElement(S,{sideCar:yw,removeScrollBar:u,shards:d,noIsolation:p,inert:y,setCallbacks:i,allowPinchZoom:!!b,lockRef:n,gapMode:g}),s?h.cloneElement(h.Children.only(a),tn(tn({},A),{ref:k})):h.createElement(x,tn({},A,{className:l,ref:k}),a))});ou.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ou.classNames={fullWidth:Ma,zeroRight:Aa};var ov,r7=function(){if(ov)return ov;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function o7(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=r7();return t&&e.setAttribute("nonce",t),e}function i7(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function s7(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var a7=function(){var e=0,t=null;return{add:function(n){e==0&&(t=o7())&&(i7(t,n),s7(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},l7=function(){var e=a7();return function(t,n){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},bw=function(){var e=l7(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},u7={left:0,top:0,right:0,gap:0},hc=function(e){return parseInt(e||"",10)||0},c7=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[hc(n),hc(r),hc(o)]},d7=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return u7;var t=c7(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},f7=bw(),p7=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),` .`.concat(Y8,` { overflow: hidden `).concat(r,`; padding-right: `).concat(a,"px ").concat(r,`; @@ -101,7 +101,7 @@ Error generating stack: `+i.message+` `)},h7=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,i=h.useMemo(function(){return d7(o)},[o]);return h.createElement(f7,{styles:p7(i,!t,o,n?"":"!important")})},Hd=!1;if(typeof window<"u")try{var la=Object.defineProperty({},"passive",{get:function(){return Hd=!0,!0}});window.addEventListener("test",la,la),window.removeEventListener("test",la,la)}catch{Hd=!1}var oo=Hd?{passive:!1}:!1,m7=function(e){return e.tagName==="TEXTAREA"},xw=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!m7(e)&&n[t]==="visible")},g7=function(e){return xw(e,"overflowY")},v7=function(e){return xw(e,"overflowX")},iv=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=ww(e,r);if(o){var i=Cw(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},y7=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},b7=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},ww=function(e,t){return e==="v"?g7(t):v7(t)},Cw=function(e,t){return e==="v"?y7(t):b7(t)},x7=function(e,t){return e==="h"&&t==="rtl"?-1:1},w7=function(e,t,n,r,o){var i=x7(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,l=t.contains(a),u=!1,c=s>0,d=0,f=0;do{var p=Cw(e,a),y=p[0],b=p[1],w=p[2],x=b-w-i*y;(y||x)&&ww(e,a)&&(d+=x,f+=y),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(c&&(o&&Math.abs(d)<1||!o&&s>d)||!c&&(o&&Math.abs(f)<1||!o&&-s>f))&&(u=!0),u},ua=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},sv=function(e){return[e.deltaX,e.deltaY]},av=function(e){return e&&"current"in e?e.current:e},C7=function(e,t){return e[0]===t[0]&&e[1]===t[1]},S7=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},P7=0,io=[];function $7(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),o=h.useState(P7++)[0],i=h.useState(bw)[0],s=h.useRef(e);h.useEffect(function(){s.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var b=iP([e.lockRef.current],(e.shards||[]).map(av),!0).filter(Boolean);return b.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),b.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=h.useCallback(function(b,w){if("touches"in b&&b.touches.length===2)return!s.current.allowPinchZoom;var x=ua(b),g=n.current,v="deltaX"in b?b.deltaX:g[0]-x[0],S="deltaY"in b?b.deltaY:g[1]-x[1],k,A=b.target,D=Math.abs(v)>Math.abs(S)?"h":"v";if("touches"in b&&D==="h"&&A.type==="range")return!1;var m=iv(D,A);if(!m)return!0;if(m?k=D:(k=D==="v"?"h":"v",m=iv(D,A)),!m)return!1;if(!r.current&&"changedTouches"in b&&(v||S)&&(r.current=k),!k)return!0;var L=r.current||k;return w7(L,w,b,L==="h"?v:S,!0)},[]),l=h.useCallback(function(b){var w=b;if(!(!io.length||io[io.length-1]!==i)){var x="deltaY"in w?sv(w):ua(w),g=t.current.filter(function(k){return k.name===w.type&&(k.target===w.target||w.target===k.shadowParent)&&C7(k.delta,x)})[0];if(g&&g.should){w.cancelable&&w.preventDefault();return}if(!g){var v=(s.current.shards||[]).map(av).filter(Boolean).filter(function(k){return k.contains(w.target)}),S=v.length>0?a(w,v[0]):!s.current.noIsolation;S&&w.cancelable&&w.preventDefault()}}},[]),u=h.useCallback(function(b,w,x,g){var v={name:b,delta:w,target:x,should:g,shadowParent:E7(x)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(S){return S!==v})},1)},[]),c=h.useCallback(function(b){n.current=ua(b),r.current=void 0},[]),d=h.useCallback(function(b){u(b.type,sv(b),b.target,a(b,e.lockRef.current))},[]),f=h.useCallback(function(b){u(b.type,ua(b),b.target,a(b,e.lockRef.current))},[]);h.useEffect(function(){return io.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,oo),document.addEventListener("touchmove",l,oo),document.addEventListener("touchstart",c,oo),function(){io=io.filter(function(b){return b!==i}),document.removeEventListener("wheel",l,oo),document.removeEventListener("touchmove",l,oo),document.removeEventListener("touchstart",c,oo)}},[]);var p=e.removeScrollBar,y=e.inert;return h.createElement(h.Fragment,null,y?h.createElement(i,{styles:S7(o)}):null,p?h.createElement(h7,{gapMode:e.gapMode}):null)}function E7(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const k7=n7(yw,$7);var Sw=h.forwardRef(function(e,t){return h.createElement(ou,tn({},e,{ref:t,sideCar:k7}))});Sw.classNames=ou.classNames;const Pw=Sw;var $w=he((e,t)=>{const{as:n,children:r,className:o,...i}=e,{Component:s,isOpen:a,placement:l,motionProps:u,backdrop:c,disableAnimation:d,shouldBlockScroll:f,getPopoverProps:p,getDialogProps:y,getBackdropProps:b,getContentProps:w,isNonModal:x,onClose:g}=gw(),v=n||s||"div",S=h.useRef(null),{dialogProps:k,titleProps:A}=G8({},S);delete k.role;const D=P.jsxs(P.Fragment,{children:[!x&&P.jsx(fl,{onDismiss:g}),P.jsx(v,{...y(Y(k,i)),ref:S,children:P.jsx("div",{...w({className:o}),children:typeof r=="function"?r(A):r})}),P.jsx(fl,{onDismiss:g})]}),m=h.useMemo(()=>c==="transparent"?null:d?P.jsx("div",{...b()}):P.jsx(ur.div,{animate:"enter",exit:"exit",initial:"exit",variants:ss.fade,...b()}),[c,d,b]);return P.jsxs("div",{...p(),children:[m,P.jsx(Pw,{forwardProps:!0,enabled:f&&a,removeScrollBar:!1,children:d?D:P.jsx(ur.div,{animate:"enter",exit:"exit",initial:"initial",style:{...Rp(l==="center"?"top":l)},variants:ss.scaleSpringOpacity,...u,children:D})})]})});$w.displayName="NextUI.PopoverContent";var T7=$w,Ew=he((e,t)=>{const{triggerRef:n,getTriggerProps:r}=gw(),{children:o,...i}=e,s=h.useMemo(()=>typeof o=="string"?P.jsx("p",{children:o}):h.Children.only(o),[o]),{onPress:a,...l}=h.useMemo(()=>r(Y(s.props,i),s.ref),[r,s.props,i,s.ref]),[,u]=c1(o,Io),{buttonProps:c}=Fp({onPress:a},n),d=h.useMemo(()=>(u==null?void 0:u[0])!==void 0,[u]);return h.cloneElement(s,Y(l,d?{onPress:a}:c))});Ew.displayName="NextUI.PopoverTrigger";var A7=Ew,kw=he((e,t)=>{const{children:n,...r}=e,o=hw({...r,ref:t}),[i,s]=h.Children.toArray(n),a=P.jsx(lp,{portalContainer:o.portalContainer,children:s});return P.jsxs(H8,{value:o,children:[i,o.disableAnimation&&o.isOpen?a:P.jsx(ks,{children:o.isOpen?a:null})]})});kw.displayName="NextUI.Popover";var M7=kw,[L7,Tw]=Yo({name:"DropdownContext",errorMessage:"useDropdownContext: `context` is undefined. Seems you forgot to wrap all popover components within ``"});function D7(e){const{isSelected:t,disableAnimation:n,...r}=e;return P.jsx("svg",{"aria-hidden":"true","data-selected":t,role:"presentation",viewBox:"0 0 17 18",...r,children:P.jsx("polyline",{fill:"none",points:"1 9 7 14 15 4",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,style:n?{}:{transition:"stroke-dashoffset 200ms ease"}})})}function N7(e){return e&&e.__esModule?e.default:e}var Aw={},Mw={};Mw={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var Lw={};Lw={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var Dw={};Dw={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var Nw={};Nw={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var Iw={};Iw={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var Rw={};Rw={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var Fw={};Fw={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var Ow={};Ow={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var jw={};jw={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var _w={};_w={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var Bw={};Bw={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var Vw={};Vw={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var Kw={};Kw={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var zw={};zw={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var Ww={};Ww={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var Uw={};Uw={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var Hw={};Hw={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var Gw={};Gw={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var Yw={};Yw={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var Xw={};Xw={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var Qw={};Qw={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var Zw={};Zw={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var qw={};qw={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var Jw={};Jw={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var e4={};e4={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var t4={};t4={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var n4={};n4={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var r4={};r4={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var o4={};o4={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var i4={};i4={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var s4={};s4={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var a4={};a4={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var l4={};l4={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var u4={};u4={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};Aw={"ar-AE":Mw,"bg-BG":Lw,"cs-CZ":Dw,"da-DK":Nw,"de-DE":Iw,"el-GR":Rw,"en-US":Fw,"es-ES":Ow,"et-EE":jw,"fi-FI":_w,"fr-FR":Bw,"he-IL":Vw,"hr-HR":Kw,"hu-HU":zw,"it-IT":Ww,"ja-JP":Uw,"ko-KR":Hw,"lt-LT":Gw,"lv-LV":Yw,"nb-NO":Xw,"nl-NL":Qw,"pl-PL":Zw,"pt-BR":qw,"pt-PT":Jw,"ro-RO":e4,"ru-RU":t4,"sk-SK":n4,"sl-SI":r4,"sr-SP":o4,"sv-SE":i4,"tr-TR":s4,"uk-UA":a4,"zh-CN":l4,"zh-TW":u4};function c4(e,t,n){let{type:r="menu",isDisabled:o,trigger:i="press"}=e,s=sn(),{triggerProps:a,overlayProps:l}=lb({type:r},t,n),u=p=>{if(!o&&!(i==="longPress"&&!p.altKey)&&n&&n.current)switch(p.key){case"Enter":case" ":if(i==="longPress")return;case"ArrowDown":"continuePropagation"in p||p.stopPropagation(),p.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in p||p.stopPropagation(),p.preventDefault(),t.toggle("last");break;default:"continuePropagation"in p&&p.continuePropagation()}},c=np(N7(Aw)),{longPressProps:d}=tb({isDisabled:o||i!=="longPress",accessibilityDescription:c.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),f={onPressStart(p){p.pointerType!=="touch"&&p.pointerType!=="keyboard"&&!o&&t.toggle(p.pointerType==="virtual"?"first":null)},onPress(p){p.pointerType==="touch"&&!o&&t.toggle()}};return delete a.onPress,{menuTriggerProps:{...a,...i==="press"?f:d,id:s,onKeyDown:u},menuProps:{...l,"aria-labelledby":s,autoFocus:t.focusStrategy||!0,onClose:t.close}}}const d4=new WeakMap;function I7(e,t,n){let{shouldFocusWrap:r=!0,...o}=e;!e["aria-label"]&&!e["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let i=hr(e,{labelable:!0}),{listProps:s}=h1({...o,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return d4.set(t,{onClose:e.onClose,onAction:e.onAction}),{menuProps:Y(i,{role:"menu","aria-hidden":t.expandedKeys.size>0?!0:void 0,...s,onKeyDown:a=>{a.key!=="Escape"&&s.onKeyDown(a)}})}}function R7(e,t,n){var r;let{key:o,closeOnSelect:i,isVirtualized:s,"aria-haspopup":a}=e,{direction:l}=xs(),u=!!a,c=t.expandedKeys.has(o);var d;let f=(d=e.isDisabled)!==null&&d!==void 0?d:t.disabledKeys.has(o);var p;let y=(p=e.isSelected)!==null&&p!==void 0?p:t.selectionManager.isSelected(o),b=h.useRef(),w=h.useCallback(()=>{b.current&&(clearTimeout(b.current),b.current=void 0)},[b]),x=Fe(()=>{w(),t.setExpandedKeys(new Set([o]))});Te(()=>()=>w(),[w]);let g=d4.get(t),v=e.onClose||g.onClose,S=h.useCallback(()=>{x()},[]),k=u?S:e.onAction||g.onAction,A=Gl(),D=V=>{k&&k(o),V.target instanceof HTMLAnchorElement&&A.open(V.target,V)},m="menuitem";t.selectionManager.selectionMode==="single"?m="menuitemradio":t.selectionManager.selectionMode==="multiple"&&(m="menuitemcheckbox");let L=qn(),M=qn(),E=qn(),N={"aria-disabled":f||void 0,role:m,"aria-label":e["aria-label"],"aria-labelledby":L,"aria-describedby":[M,E].filter(Boolean).join(" ")||void 0};t.selectionManager.selectionMode!=="none"&&(N["aria-checked"]=y);let C=t.collection.getItem(o);s&&(N["aria-posinset"]=C==null?void 0:C.index,N["aria-setsize"]=Ip(t.collection)),a!=null&&(N["aria-haspopup"]=a,N["aria-expanded"]=c?"true":"false");let $=V=>{V.pointerType==="keyboard"&&D(V)},R=V=>{V.pointerType!=="keyboard"&&(D(V),!u&&v&&(i??(t.selectionManager.selectionMode!=="multiple"||t.selectionManager.isLink(o)))&&v())},{itemProps:_,isFocused:j}=f1({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none"}),{pressProps:I,isPressed:B}=ws({onPressStart:$,onPressUp:R,isDisabled:f||u&&t.expandedKeys.has(o)}),{hoverProps:F}=un({isDisabled:f,onHoverStart(){!Ko()&&!(u&&t.expandedKeys.has(o))&&(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o),o===t.selectionManager.focusedKey&&t.selectionManager.isFocused&&document.activeElement!==n.current&&ir(n.current))},onHoverChange:V=>{V&&u&&!t.expandedKeys.has(o)?b.current||(b.current=setTimeout(()=>{x()},200)):V||w()}}),{keyboardProps:T}=eb({onKeyDown:V=>{if(V.repeat){V.continuePropagation();return}switch(V.key){case" ":!f&&t.selectionManager.selectionMode==="none"&&!u&&i!==!1&&v&&v();break;case"Enter":!f&&i!==!1&&!u&&v&&v();break;case"ArrowRight":u&&l==="ltr"?x():V.continuePropagation();break;case"ArrowLeft":u&&l==="rtl"?x():V.continuePropagation();break;default:V.continuePropagation();break}}}),O=hr(C.props,{isLink:!!(!(C==null||(r=C.props)===null||r===void 0)&&r.href)});return delete O.id,{menuItemProps:{...N,...Y(O,_,I,F,T)},labelProps:{id:L},descriptionProps:{id:M},keyboardShortcutProps:{id:E},isFocused:j,isSelected:y,isPressed:B,isDisabled:f}}function F7(e){let{heading:t,"aria-label":n}=e,r=sn();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}var O7=700;function f4(){return ys()||typeof window>"u"?!1:window.screen.width<=O7}function j7(e){const[t,n]=Qt(e,gl.variantKeys),{as:r,item:o,state:i,shortcut:s,description:a,startContent:l,endContent:u,isVirtualized:c,selectedIcon:d,className:f,classNames:p,onAction:y,autoFocus:b,onPress:w,onClick:x,hideSelectedIcon:g=!1,isReadOnly:v=!1,closeOnSelect:S,onClose:k,...A}=t,D=e.disableAnimation,m=h.useRef(null),L=r||(A!=null&&A.href?"a":"li"),M=typeof L=="string",{rendered:E,key:N}=o,C=i.disabledKeys.has(N)||e.isDisabled,$=i.selectionManager.selectionMode!=="none",R=f4(),{pressProps:_,isPressed:j}=cp({ref:m,isDisabled:C,onPress:w}),{isHovered:I,hoverProps:B}=un({isDisabled:C}),{isFocusVisible:F,focusProps:T}=sr({autoFocus:b}),{isFocused:O,isSelected:V,menuItemProps:W,labelProps:U,descriptionProps:Q,keyboardShortcutProps:K}=R7({key:N,onClose:k,isDisabled:C,"aria-label":t["aria-label"],closeOnSelect:S,isVirtualized:c,onAction:y},i,m);let G=W;const Z=h.useMemo(()=>gl({...n,isDisabled:C,disableAnimation:D}),[...Object.values(n),C,D]),re=ne(p==null?void 0:p.base,f);v&&(G=s1(G));const ie=(J={})=>({ref:m,...Y(G,v?{}:Y(T,_),B,ln(A,{enabled:M}),J),"data-focus":H(O),"data-selectable":H($),"data-hover":H(R?I||j:I),"data-disabled":H(C),"data-selected":H(V),"data-pressed":H(j),"data-focus-visible":H(F),className:Z.base({class:ne(re,J.className)}),onClick:zr(_.onClick,x)}),de=(J={})=>({...Y(U,J),className:Z.title({class:p==null?void 0:p.title})}),ce=(J={})=>({...Y(Q,J),className:Z.description({class:p==null?void 0:p.description})}),pe=(J={})=>({...Y(K,J),className:Z.shortcut({class:p==null?void 0:p.shortcut})}),bt=h.useCallback((J={})=>({"aria-hidden":H(!0),"data-disabled":H(C),className:Z.selectedIcon({class:p==null?void 0:p.selectedIcon}),...J}),[C,Z,p]);return{Component:L,domRef:m,slots:Z,classNames:p,isSelectable:$,isSelected:V,isDisabled:C,rendered:E,shortcut:s,description:a,startContent:l,endContent:u,selectedIcon:d,disableAnimation:D,getItemProps:ie,getLabelProps:de,hideSelectedIcon:g,getDescriptionProps:ce,getKeyboardShortcutProps:pe,getSelectedIconProps:bt}}var p4=he((e,t)=>{const{Component:n,slots:r,classNames:o,rendered:i,shortcut:s,description:a,isSelectable:l,isSelected:u,isDisabled:c,selectedIcon:d,startContent:f,endContent:p,disableAnimation:y,hideSelectedIcon:b,getItemProps:w,getLabelProps:x,getDescriptionProps:g,getKeyboardShortcutProps:v,getSelectedIconProps:S}=j7(e),k=h.useMemo(()=>{const A=P.jsx(D7,{disableAnimation:y,isSelected:u});return typeof d=="function"?d({icon:A,isSelected:u,isDisabled:c}):d||A},[d,u,c,y]);return P.jsxs(n,{...w(),children:[f,a?P.jsxs("div",{className:r.wrapper({class:o==null?void 0:o.wrapper}),children:[P.jsx("span",{...x(),children:i}),P.jsx("span",{...g(),children:a})]}):P.jsx("span",{...x(),children:i}),s&&P.jsx("kbd",{...v(),children:s}),l&&!b&&P.jsx("span",{...S(),children:k}),p]})});p4.displayName="NextUI.MenuItem";var h4=p4,m4=he(({item:e,state:t,as:n,variant:r,color:o,disableAnimation:i,onAction:s,closeOnSelect:a,className:l,classNames:u,showDivider:c=!1,hideSelectedIcon:d,dividerProps:f={},itemClasses:p,title:y,...b},w)=>{const x=n||"li",g=h.useMemo(()=>o1(),[]),v=ne(u==null?void 0:u.base,l),S=ne(u==null?void 0:u.divider,f==null?void 0:f.className),{itemProps:k,headingProps:A,groupProps:D}=F7({heading:e.rendered,"aria-label":e["aria-label"]});return P.jsxs(x,{"data-slot":"base",...Y(k,b),className:g.base({class:v}),children:[e.rendered&&P.jsx("span",{...A,className:g.heading({class:u==null?void 0:u.heading}),"data-slot":"heading",children:e.rendered}),P.jsxs("ul",{...D,className:g.group({class:u==null?void 0:u.group}),"data-has-title":!!e.rendered,"data-slot":"group",children:[[...e.childNodes].map(m=>{const{key:L,props:M}=m;let E=P.jsx(h4,{classNames:p,closeOnSelect:a,color:o,disableAnimation:i,hideSelectedIcon:d,item:m,state:t,variant:r,onAction:s,...M},L);return m.wrapper&&(E=m.wrapper(E)),E}),c&&P.jsx(Hx,{as:"li",className:g.divider({class:S}),...f})]})]})});m4.displayName="NextUI.MenuSection";var _7=m4;function B7(e){const{as:t,ref:n,variant:r,color:o,children:i,disableAnimation:s,onAction:a,closeOnSelect:l,itemClasses:u,className:c,state:d,topContent:f,bottomContent:p,hideEmptyContent:y=!1,hideSelectedIcon:b=!1,emptyContent:w="No items.",menuProps:x,onClose:g,classNames:v,...S}=e,k=t||"ul",A=Oe(n),D=typeof k=="string",m=a8({...S,children:i}),L=d||m,{menuProps:M}=I7(S,L,A),E=h.useMemo(()=>r1({className:c}),[c]),N=ne(v==null?void 0:v.base,c);return{Component:k,state:L,variant:r,color:o,disableAnimation:s,onAction:a,onClose:g,topContent:f,bottomContent:p,closeOnSelect:l,className:c,itemClasses:u,getBaseProps:(_={})=>({ref:A,"data-slot":"base",className:E.base({class:N}),...ln(S,{enabled:D}),..._}),getListProps:(_={})=>({"data-slot":"list",className:E.list({class:v==null?void 0:v.list}),...x,...M,..._}),hideEmptyContent:y,hideSelectedIcon:b,getEmptyContentProps:(_={})=>({children:w,className:E.emptyContent({class:v==null?void 0:v.emptyContent}),..._})}}function g4(e,t){const{Component:n,state:r,closeOnSelect:o,color:i,disableAnimation:s,hideSelectedIcon:a,hideEmptyContent:l,variant:u,onClose:c,onAction:d,topContent:f,bottomContent:p,itemClasses:y,getBaseProps:b,getListProps:w,getEmptyContentProps:x}=B7({...e,ref:t}),g=P.jsxs(n,{...w(),children:[!r.collection.size&&!l&&P.jsx("li",{children:P.jsx("div",{...x()})}),[...r.collection].map(v=>{const S={closeOnSelect:o,color:i,disableAnimation:s,item:v,state:r,variant:u,onClose:c,onAction:d,hideSelectedIcon:a,...v.props};if(v.type==="section")return P.jsx(_7,{...S,itemClasses:y},v.key);let k=P.jsx(h4,{...S,classNames:y},v.key);return v.wrapper&&(k=v.wrapper(k)),k})]});return P.jsxs("div",{...b(),children:[f,g,p]})}var V7=he(g4);g4.displayName="NextUI.Menu";var K7=Vx,ft=K7;function v4(e,t){const{getMenuProps:n}=Tw();return P.jsx(T7,{children:P.jsx(rb,{contain:!0,restoreFocus:!0,children:P.jsx(V7,{...n(e,t)})})})}var Gd=he(v4);v4.displayName="NextUI.DropdownMenu";var y4=he((e,t)=>{const{getMenuTriggerProps:n}=Tw(),{children:r,...o}=e;return P.jsx(A7,{...n(o),children:r})});y4.displayName="NextUI.DropdownTrigger";var Yd=y4;function b4(e){let t=Op(e),[n,r]=h.useState(null);return{focusStrategy:n,...t,open(o=null){r(o),t.open()},toggle(o=null){r(o),t.toggle()}}}function z7(e){const{as:t,triggerRef:n,isOpen:r,defaultOpen:o,onOpenChange:i,type:s="menu",trigger:a="press",placement:l="bottom",isDisabled:u=!1,closeOnSelect:c=!0,shouldBlockScroll:d=!0,classNames:f,disableAnimation:p=!1,onClose:y,className:b,...w}=e,x=t||"div",g=h.useRef(null),v=n||g,S=h.useRef(null),k=h.useRef(null),A=b4({trigger:a,isOpen:r,defaultOpen:o,onOpenChange:$=>{i==null||i($),$||y==null||y()}}),{menuTriggerProps:D,menuProps:m}=c4({type:s,trigger:a,isDisabled:u},A,v),L=h.useMemo(()=>q$({className:b}),[b]),M=$=>{$!==void 0&&!$||c&&A.close()},E=($={})=>({state:A,placement:l,ref:k,disableAnimation:p,shouldBlockScroll:d,scrollRef:S,triggerRef:v,...Y(w,$),classNames:{...f,...$.classNames,content:ne(L,f==null?void 0:f.content,$.className)}}),N=($={},R=null)=>{const{onKeyDown:_,onPress:j,onPressStart:I,...B}=D;return{...Y(B,$),ref:kd(R,g)}},C=($,R=null)=>({ref:kd(R,S),menuProps:m,...Y($,{onAction:()=>M($==null?void 0:$.closeOnSelect)})});return{Component:x,menuRef:S,menuProps:m,classNames:L,closeOnSelect:c,onClose:A.close,autoFocus:A.focusStrategy||!0,disableAnimation:p,getPopoverProps:E,getMenuProps:C,getMenuTriggerProps:N}}var x4=e=>{const{children:t,...n}=e,r=z7(n),[o,i]=ee.Children.toArray(t);return P.jsx(L7,{value:r,children:P.jsxs(M7,{...r.getPopoverProps(),children:[o,i]})})};x4.displayName="NextUI.Dropdown";var Xd=x4;function W7(e){const[t,n]=Qt(e,Fm.variantKeys),{ref:r,as:o,src:i,className:s,classNames:a,loading:l,isBlurred:u,fallbackSrc:c,isLoading:d,disableSkeleton:f=!!c,removeWrapper:p=!1,onError:y,onLoad:b,srcSet:w,sizes:x,crossOrigin:g,...v}=t,S=Yx({src:i,loading:l,onError:y,onLoad:b,ignoreFallback:!1,srcSet:w,sizes:x,crossOrigin:g}),k=S==="loaded"&&!d,A=S==="loading"||d,D=e.isZoomed,m=o||"img",L=Oe(r),{w:M}=h.useMemo(()=>({w:t.width?typeof t.width=="number"?`${t.width}px`:t.width:"fit-content"}),[t==null?void 0:t.width]),E=(!i||!k)&&!!c,N=A&&!f,C=h.useMemo(()=>Fm({...n,showSkeleton:N}),[...Object.values(n),N]),$=ne(s,a==null?void 0:a.img),R=(I={})=>{const B=ne($,I==null?void 0:I.className);return{src:i,ref:L,"data-loaded":H(k),className:C.img({class:B}),loading:l,srcSet:w,sizes:x,crossOrigin:g,...v}},_=h.useCallback(()=>{const I=E?{backgroundImage:`url(${c})`}:{};return{className:C.wrapper({class:a==null?void 0:a.wrapper}),style:{...I,maxWidth:M}}},[C,E,c,a==null?void 0:a.wrapper]),j=h.useCallback(()=>({src:i,"aria-hidden":H(!0),className:C.blurredImg({class:a==null?void 0:a.blurredImg})}),[C,i,a==null?void 0:a.blurredImg]);return{Component:m,domRef:L,slots:C,classNames:a,isBlurred:u,disableSkeleton:f,fallbackSrc:c,removeWrapper:p,isZoomed:D,isLoading:A,getImgProps:R,getWrapperProps:_,getBlurredImgProps:j}}var w4=he((e,t)=>{const{Component:n,domRef:r,slots:o,classNames:i,isBlurred:s,isZoomed:a,fallbackSrc:l,removeWrapper:u,disableSkeleton:c,getImgProps:d,getWrapperProps:f,getBlurredImgProps:p}=W7({...e,ref:t}),y=P.jsx(n,{ref:r,...d()});if(u)return y;const b=P.jsx("div",{className:o.zoomedWrapper({class:i==null?void 0:i.zoomedWrapper}),children:y});return s?P.jsxs("div",{...f(),children:[a?b:y,h.cloneElement(y,p())]}):a||!c||l?P.jsxs("div",{...f(),children:[" ",a?b:y]}):y});w4.displayName="NextUI.Image";var jp=w4,[U7,_p]=Yo({name:"NavbarContext",strict:!0,errorMessage:"useNavbarContext: `context` is undefined. Seems you forgot to wrap component within "}),H7={enter:{height:"calc(100vh - var(--navbar-height) - 1px)",transition:{duration:.3,easings:"easeOut"}},exit:{height:0,transition:{duration:.25,easings:"easeIn"}}},C4=he((e,t)=>{var n,r;const{className:o,children:i,portalContainer:s,motionProps:a,style:l,...u}=e,c=Oe(t),{slots:d,isMenuOpen:f,height:p,disableAnimation:y,classNames:b}=_p(),w=ne(b==null?void 0:b.menu,o),x=h.useCallback(({children:v})=>P.jsx(Pw,{forwardProps:!0,enabled:f,removeScrollBar:!1,children:v}),[f]),g=y?P.jsx(x,{children:P.jsx("ul",{ref:c,className:(n=d.menu)==null?void 0:n.call(d,{class:w}),"data-open":H(f),style:{"--navbar-height":p},...u,children:i})}):P.jsx(ks,{mode:"wait",children:f?P.jsx(x,{children:P.jsx(ur.ul,{ref:c,layoutScroll:!0,animate:"enter",className:(r=d.menu)==null?void 0:r.call(d,{class:w}),"data-open":H(f),exit:"exit",initial:"exit",style:{"--navbar-height":p,...l},variants:H7,...Y(a,u),children:i})}):null});return P.jsx(lp,{portalContainer:s,children:g})});C4.displayName="NextUI.NavbarMenu";var G7=C4,Y7={visible:{y:0,transition:{ease:jn.easeOut}},hidden:{y:"-100%",transition:{ease:jn.easeIn}}},X7=typeof window<"u";function lv(e){return X7?e?{x:e.scrollLeft,y:e.scrollTop}:{x:window.scrollX,y:window.scrollY}:{x:0,y:0}}var Q7=e=>{const{elementRef:t,delay:n=30,callback:r,isEnabled:o}=e,i=h.useRef(o?lv(t==null?void 0:t.current):{x:0,y:0});let s=null;const a=()=>{const l=lv(t==null?void 0:t.current);typeof r=="function"&&r({prevPos:i.current,currPos:l}),i.current=l,s=null};return h.useEffect(()=>{if(!o)return;const l=()=>{n?s===null&&(s=setTimeout(a,n)):a()},u=(t==null?void 0:t.current)||window;return u.addEventListener("scroll",l),()=>u.removeEventListener("scroll",l)},[t==null?void 0:t.current,n,o]),i.current};function Z7(e){var t;const[n,r]=Qt(e,Im.variantKeys),{ref:o,as:i,parentRef:s,height:a="4rem",shouldHideOnScroll:l=!1,disableScrollHandler:u=!1,onScrollPositionChange:c,isMenuOpen:d,isMenuDefaultOpen:f,onMenuOpenChange:p=()=>{},motionProps:y,className:b,classNames:w,...x}=n,g=i||"nav",v=Oe(o),S=h.useRef(0),k=h.useRef(0),[A,D]=h.useState(!1),m=h.useCallback(_=>{p(_||!1)},[p]),[L,M]=pr(d,f,m),E=()=>{if(v.current){const _=v.current.offsetWidth;_!==S.current&&(S.current=_)}};Vy({ref:v,onResize:()=>{var _;((_=v.current)==null?void 0:_.offsetWidth)!==S.current&&(E(),M(!1))}}),h.useEffect(()=>{var _;E(),k.current=((_=v.current)==null?void 0:_.offsetHeight)||0},[]);const N=h.useMemo(()=>Im({...r,hideOnScroll:l}),[...Object.values(r),l]),C=ne(w==null?void 0:w.base,b);Q7({elementRef:s,isEnabled:l||!u,callback:({prevPos:_,currPos:j})=>{c==null||c(j.y),l&&D(I=>{const B=j.y>_.y&&j.y>k.current;return B!==I?B:I})}});const $=(_={})=>({...Y(x,_),"data-hidden":H(A),"data-menu-open":H(L),ref:v,className:N.base({class:ne(C,_==null?void 0:_.className)}),style:{"--navbar-height":a,...x==null?void 0:x.style,..._==null?void 0:_.style}}),R=(_={})=>({..._,"data-menu-open":H(L),className:N.wrapper({class:ne(w==null?void 0:w.wrapper,_==null?void 0:_.className)})});return{Component:g,slots:N,domRef:v,height:a,isHidden:A,disableAnimation:(t=e.disableAnimation)!=null?t:!1,shouldHideOnScroll:l,isMenuOpen:L,classNames:w,setIsMenuOpen:M,motionProps:y,getBaseProps:$,getWrapperProps:R}}var S4=he((e,t)=>{const{children:n,...r}=e,o=Z7({...r,ref:t}),i=o.Component,[s,a]=c1(n,G7),l=P.jsxs(P.Fragment,{children:[P.jsx("header",{...o.getWrapperProps(),children:s}),a]});return P.jsx(U7,{value:o,children:o.shouldHideOnScroll?P.jsx(ur.nav,{animate:o.isHidden?"hidden":"visible",initial:!1,variants:Y7,...Y(o.getBaseProps(),o.motionProps),children:l}):P.jsx(i,{...o.getBaseProps(),children:l})})});S4.displayName="NextUI.Navbar";var q7=S4,P4=he((e,t)=>{var n;const{as:r,className:o,children:i,...s}=e,a=r||"div",l=Oe(t),{slots:u,classNames:c}=_p(),d=ne(c==null?void 0:c.brand,o);return P.jsx(a,{ref:l,className:(n=u.brand)==null?void 0:n.call(u,{class:d}),...s,children:i})});P4.displayName="NextUI.NavbarBrand";var J7=P4,$4=he((e,t)=>{var n;const{as:r,className:o,children:i,justify:s="start",...a}=e,l=r||"ul",u=Oe(t),{slots:c,classNames:d}=_p(),f=ne(d==null?void 0:d.content,o);return P.jsx(l,{ref:u,className:(n=c.content)==null?void 0:n.call(c,{class:f}),"data-justify":s,...a,children:i})});$4.displayName="NextUI.NavbarContent";var e9=$4;const E4=7e3;let mc=null;function gc(e,t="assertive",n=E4){mc||(mc=new t9),mc.announce(e,t,n)}class t9{createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=E4){if(!this.node)return;let o=document.createElement("div");o.textContent=t,n==="assertive"?this.assertiveLog.appendChild(o):this.politeLog.appendChild(o),t!==""&&setTimeout(()=>{o.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&(this.politeLog.innerHTML=""))}constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}}class Qd{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return(n==null?void 0:n.childNodes)||[]}constructor(t){this.keyMap=new Map,this.iterable=t;let n=i=>{if(this.keyMap.set(i.key,i),i.childNodes&&i.type==="section")for(let s of i.childNodes)n(s)};for(let i of t)n(i);let r,o=0;for(let[i,s]of this.keyMap)r?(r.nextKey=i,s.prevKey=r.key):(this.firstKey=i,s.prevKey=void 0),s.type==="item"&&(s.index=o++),r=s,r.nextKey=void 0;this.lastKey=r==null?void 0:r.key}}function k4(e){let{filter:t}=e,n=zx(e),r=h.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=h.useCallback(u=>t?new Qd(t(u)):new Qd(u),[t]),i=h.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),s=Kx(e,o,i),a=h.useMemo(()=>new Wx(s,n),[s,n]);const l=h.useRef(null);return h.useEffect(()=>{if(n.focusedKey!=null&&!s.getItem(n.focusedKey)){const u=l.current.getItem(n.focusedKey),c=[...l.current.getKeys()].map(b=>{const w=l.current.getItem(b);return w.type==="item"?w:null}).filter(b=>b!==null),d=[...s.getKeys()].map(b=>{const w=s.getItem(b);return w.type==="item"?w:null}).filter(b=>b!==null),f=c.length-d.length;let p=Math.min(f>1?Math.max(u.index-f+1,0):u.index,d.length-1),y;for(;p>=0;){if(!a.isDisabled(d[p].key)){y=d[p];break}pu.index&&(p=u.index),p--)}n.setFocusedKey(y?y.key:null)}l.current=s},[s,a,n,n.focusedKey]),{collection:s,disabledKeys:r,selectionManager:a}}function n9(e){var t;let[n,r]=pr(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),o=h.useMemo(()=>n!=null?[n]:[],[n]),{collection:i,disabledKeys:s,selectionManager:a}=k4({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:u=>{var c;let d=(c=u.values().next().value)!==null&&c!==void 0?c:null;d===n&&e.onSelectionChange&&e.onSelectionChange(d),r(d)}}),l=n!=null?i.getItem(n):null;return{collection:i,disabledKeys:s,selectionManager:a,selectedKey:n,setSelectedKey:r,selectedItem:l}}function r9(e={}){const{domRef:t,isEnabled:n=!0,overflowCheck:r="vertical",visibility:o="auto",offset:i=0,onVisibilityChange:s,updateDeps:a=[]}=e,l=h.useRef(o);h.useEffect(()=>{const u=t==null?void 0:t.current;if(!u||!n)return;const c=(p,y,b,w,x)=>{if(o==="auto"){const g=`${w}${i5(x)}Scroll`;y&&b?(u.dataset[g]="true",u.removeAttribute(`data-${w}-scroll`),u.removeAttribute(`data-${x}-scroll`)):(u.dataset[`${w}Scroll`]=y.toString(),u.dataset[`${x}Scroll`]=b.toString(),u.removeAttribute(`data-${w}-${x}-scroll`))}else{const g=y&&b?"both":y?w:b?x:"none";g!==l.current&&(s==null||s(g),l.current=g)}},d=()=>{const p=[{type:"vertical",prefix:"top",suffix:"bottom"},{type:"horizontal",prefix:"left",suffix:"right"}];for(const{type:y,prefix:b,suffix:w}of p)if(r===y||r==="both"){const x=y==="vertical"?u.scrollTop>i:u.scrollLeft>i,g=y==="vertical"?u.scrollTop+u.clientHeight+i{["top","bottom","topBottom","left","right","leftRight"].forEach(p=>{u.removeAttribute(`data-${p}-scroll`)})};return d(),u.addEventListener("scroll",d),o!=="auto"&&(f(),o==="both"?(u.dataset.topBottomScroll=String(r==="vertical"),u.dataset.leftRightScroll=String(r==="horizontal")):(u.dataset.topBottomScroll="false",u.dataset.leftRightScroll="false",["top","bottom","left","right"].forEach(p=>{u.dataset[`${p}Scroll`]=String(o===p)}))),()=>{u.removeEventListener("scroll",d),f()}},[...a,n,o,r,s,t])}function o9(e){var t;const[n,r]=Qt(e,Rm.variantKeys),{ref:o,as:i,children:s,className:a,style:l,size:u=40,offset:c=0,visibility:d="auto",isEnabled:f=!0,onVisibilityChange:p,...y}=n,b=i||"div",w=Oe(o);r9({domRef:w,offset:c,visibility:d,isEnabled:f,onVisibilityChange:p,updateDeps:[s],overflowCheck:(t=e.orientation)!=null?t:"vertical"});const x=h.useMemo(()=>Rm({...r,className:a}),[...Object.values(r),a]);return{Component:b,styles:x,domRef:w,children:s,getBaseProps:(v={})=>{var S;return{ref:w,className:x,"data-orientation":(S=e.orientation)!=null?S:"vertical",style:{"--scroll-shadow-size":`${u}px`,...l,...v.style},...y,...v}}}}var T4=he((e,t)=>{const{Component:n,children:r,getBaseProps:o}=o9({...e,ref:t});return P.jsx(n,{...o(),children:r})});T4.displayName="NextUI.ScrollShadow";var i9=T4;function s9(e){const{isSelected:t,disableAnimation:n,...r}=e;return P.jsx("svg",{"aria-hidden":"true","data-selected":t,role:"presentation",viewBox:"0 0 17 18",...r,children:P.jsx("polyline",{fill:"none",points:"1 9 7 14 15 4",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,style:n?{}:{transition:"stroke-dashoffset 200ms ease"}})})}const iu=new WeakMap;function a9(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function A4(e,t){let n=iu.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${a9(t)}`}function l9(e,t,n){let r=hr(e,{labelable:!0}),o=e.selectionBehavior||"toggle",i=e.linkBehavior||(o==="replace"?"action":"override");o==="toggle"&&i==="action"&&(i="override");let{listProps:s}=h1({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:i}),{focusWithinProps:a}=Cs({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=sn(e.id);iu.set(t,{id:l,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:i});let{labelProps:u,fieldProps:c}=uw({...e,id:l,labelElementType:"span"});return{labelProps:u,listBoxProps:Y(r,a,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...Y(c,s)})}}function u9(e,t,n){var r;let{key:o}=e,i=iu.get(t);var s;let a=(s=e.isDisabled)!==null&&s!==void 0?s:t.disabledKeys.has(o);var l;let u=(l=e.isSelected)!==null&&l!==void 0?l:t.selectionManager.isSelected(o);var c;let d=(c=e.shouldSelectOnPressUp)!==null&&c!==void 0?c:i==null?void 0:i.shouldSelectOnPressUp;var f;let p=(f=e.shouldFocusOnHover)!==null&&f!==void 0?f:i==null?void 0:i.shouldFocusOnHover;var y;let b=(y=e.shouldUseVirtualFocus)!==null&&y!==void 0?y:i==null?void 0:i.shouldUseVirtualFocus;var w;let x=(w=e.isVirtualized)!==null&&w!==void 0?w:i==null?void 0:i.isVirtualized,g=qn(),v=qn(),S={role:"option","aria-disabled":a||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?u:void 0};An()&&Oy()||(S["aria-label"]=e["aria-label"],S["aria-labelledby"]=g,S["aria-describedby"]=v);let k=t.collection.getItem(o);if(x){let C=Number(k==null?void 0:k.index);S["aria-posinset"]=Number.isNaN(C)?void 0:C+1,S["aria-setsize"]=Ip(t.collection)}let{itemProps:A,isPressed:D,isFocused:m,hasAction:L,allowsSelection:M}=f1({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:d,allowsDifferentPressOrigin:d&&p,isVirtualized:x,shouldUseVirtualFocus:b,isDisabled:a,onAction:i!=null&&i.onAction?()=>{var C;return i==null||(C=i.onAction)===null||C===void 0?void 0:C.call(i,o)}:void 0,linkBehavior:i==null?void 0:i.linkBehavior}),{hoverProps:E}=un({isDisabled:a||!p,onHoverStart(){Ko()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o))}}),N=hr(k==null?void 0:k.props,{isLink:!!(!(k==null||(r=k.props)===null||r===void 0)&&r.href)});return delete N.id,{optionProps:{...S,...Y(N,A,E),id:A4(t,o)},labelProps:{id:g},descriptionProps:{id:v},isFocused:m,isFocusVisible:m&&Ko(),isSelected:u,isDisabled:a,isPressed:D,allowsSelection:M,hasAction:L}}function c9(e){let{heading:t,"aria-label":n}=e,r=sn();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}function d9(e){const[t,n]=Qt(e,gl.variantKeys),{as:r,item:o,state:i,description:s,startContent:a,endContent:l,isVirtualized:u,selectedIcon:c,className:d,classNames:f,autoFocus:p,onPress:y,onClick:b,shouldHighlightOnFocus:w,hideSelectedIcon:x=!1,isReadOnly:g=!1,...v}=t,S=e.disableAnimation,k=h.useRef(null),A=r||(e.href?"a":"li"),D=typeof A=="string",{rendered:m,key:L}=o,M=i.disabledKeys.has(L)||e.isDisabled,E=i.selectionManager.selectionMode!=="none",N=f4(),{pressProps:C,isPressed:$}=cp({ref:k,isDisabled:M,onPress:y}),{isHovered:R,hoverProps:_}=un({isDisabled:M}),{isFocusVisible:j,focusProps:I}=sr({autoFocus:p}),{isFocused:B,isSelected:F,optionProps:T,labelProps:O,descriptionProps:V}=u9({key:L,isDisabled:M,"aria-label":t["aria-label"],isVirtualized:u},i,k);let W=T;const U=h.useMemo(()=>gl({...n,isDisabled:M,disableAnimation:S}),[...Object.values(n),M,S]),Q=ne(f==null?void 0:f.base,d);g&&(W=s1(W));const K=h.useMemo(()=>w&&B?!0:N?R||$:R,[R,$,B,N,w]),G=(ce={})=>({ref:k,...Y({onClick:b},W,g?{}:Y(I,C),_,ln(v,{enabled:D}),ce),"data-selectable":H(E),"data-focus":H(B),"data-hover":H(K),"data-disabled":H(M),"data-selected":H(F),"data-pressed":H($),"data-focus-visible":H(j),className:U.base({class:ne(Q,ce.className)})}),Z=(ce={})=>({...Y(O,ce),"data-label":H(!0),className:U.title({class:f==null?void 0:f.title})}),re=(ce={})=>({...Y(V,ce),className:U.description({class:f==null?void 0:f.description})}),ie=(ce={})=>({...Y(ce),className:U.wrapper({class:f==null?void 0:f.wrapper})}),de=h.useCallback((ce={})=>({"aria-hidden":H(!0),"data-disabled":H(M),className:U.selectedIcon({class:f==null?void 0:f.selectedIcon}),...ce}),[M,U,f]);return{Component:A,domRef:k,slots:U,classNames:f,isSelectable:E,isSelected:F,isDisabled:M,rendered:m,description:s,startContent:a,endContent:l,selectedIcon:c,hideSelectedIcon:x,disableAnimation:S,getItemProps:G,getLabelProps:Z,getWrapperProps:ie,getDescriptionProps:re,getSelectedIconProps:de}}var M4=he((e,t)=>{const{Component:n,rendered:r,description:o,isSelectable:i,isSelected:s,isDisabled:a,selectedIcon:l,startContent:u,endContent:c,hideSelectedIcon:d,disableAnimation:f,getItemProps:p,getLabelProps:y,getWrapperProps:b,getDescriptionProps:w,getSelectedIconProps:x}=d9(e),g=h.useMemo(()=>{const v=P.jsx(s9,{disableAnimation:f,isSelected:s});return typeof l=="function"?l({icon:v,isSelected:s,isDisabled:a}):l||v},[l,s,a,f]);return P.jsxs(n,{...p(),children:[u,o?P.jsxs("div",{...b(),children:[P.jsx("span",{...y(),children:r}),P.jsx("span",{...w(),children:o})]}):P.jsx("span",{...y(),children:r}),i&&!d&&P.jsx("span",{...x(),children:g}),c]})});M4.displayName="NextUI.ListboxItem";var L4=M4,D4=he(({item:e,state:t,as:n,variant:r,color:o,disableAnimation:i,className:s,classNames:a,hideSelectedIcon:l,showDivider:u=!1,dividerProps:c={},itemClasses:d,title:f,...p},y)=>{const b=n||"li",w=h.useMemo(()=>o1(),[]),x=ne(a==null?void 0:a.base,s),g=ne(a==null?void 0:a.divider,c==null?void 0:c.className),{itemProps:v,headingProps:S,groupProps:k}=c9({heading:e.rendered,"aria-label":e["aria-label"]});return P.jsxs(b,{"data-slot":"base",...Y(v,p),className:w.base({class:x}),children:[e.rendered&&P.jsx("span",{...S,className:w.heading({class:a==null?void 0:a.heading}),"data-slot":"heading",children:e.rendered}),P.jsxs("ul",{...k,className:w.group({class:a==null?void 0:a.group}),"data-has-title":!!e.rendered,"data-slot":"group",children:[[...e.childNodes].map(A=>{const{key:D,props:m}=A;let L=P.jsx(L4,{classNames:d,color:o,disableAnimation:i,hideSelectedIcon:l,item:A,state:t,variant:r,...m},D);return A.wrapper&&(L=A.wrapper(L)),L}),u&&P.jsx(Hx,{as:"li",className:w.divider({class:g}),...c})]})]},e.key)});D4.displayName="NextUI.ListboxSection";var f9=D4;function p9(e){const{ref:t,as:n,state:r,variant:o,color:i,onAction:s,children:a,onSelectionChange:l,disableAnimation:u,itemClasses:c,className:d,topContent:f,bottomContent:p,emptyContent:y="No items.",hideSelectedIcon:b=!1,hideEmptyContent:w=!1,shouldHighlightOnFocus:x=!1,classNames:g,...v}=e,S=n||"ul",k=typeof S=="string",A=Oe(t),D=k4({...e,children:a,onSelectionChange:l}),m=r||D,{listBoxProps:L}=l9({...e,onAction:s},m,A),M=h.useMemo(()=>r1({className:d}),[,d]),E=ne(g==null?void 0:g.base,d);return{Component:S,state:m,variant:o,color:i,slots:M,classNames:g,topContent:f,bottomContent:p,emptyContent:y,hideEmptyContent:w,shouldHighlightOnFocus:x,hideSelectedIcon:b,disableAnimation:u,className:d,itemClasses:c,getBaseProps:(R={})=>({ref:A,"data-slot":"base",className:M.base({class:E}),...ln(v,{enabled:k}),...R}),getListProps:(R={})=>({"data-slot":"list",className:M.list({class:g==null?void 0:g.list}),...L,...R}),getEmptyContentProps:(R={})=>({"data-slot":"empty-content",children:y,className:M.emptyContent({class:g==null?void 0:g.emptyContent}),...R})}}function Bp(e,t){const{Component:n,state:r,color:o,variant:i,itemClasses:s,getBaseProps:a,topContent:l,bottomContent:u,hideEmptyContent:c,hideSelectedIcon:d,shouldHighlightOnFocus:f,disableAnimation:p,getEmptyContentProps:y,getListProps:b}=p9({...e,ref:t}),w=P.jsxs(n,{...b(),children:[!r.collection.size&&!c&&P.jsx("li",{children:P.jsx("div",{...y()})}),[...r.collection].map(x=>{var g;const v={color:o,item:x,state:r,variant:i,disableAnimation:p,hideSelectedIcon:d,...x.props};if(x.type==="section")return P.jsx(f9,{...v,itemClasses:s},x.key);let S=P.jsx(L4,{...v,classNames:Y(s,(g=x.props)==null?void 0:g.classNames),shouldHighlightOnFocus:f},x.key);return x.wrapper&&(S=x.wrapper(S)),S})]});return P.jsxs("div",{...a(),children:[l,w,u]})}Bp.displayName="NextUI.Listbox";var h9=he(Bp);Bp.displayName="NextUI.Listbox";var m9=Vx,g9=m9;function v9(e){return e&&e.__esModule?e.default:e}var N4={},I4={};I4={buttonLabel:"عرض المقترحات",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} خيار`,other:()=>`${t.number(e.optionCount)} خيارات`})} متاحة.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`المجموعة المدخلة ${e.groupTitle}, مع ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} خيار`,other:()=>`${t.number(e.groupCount)} خيارات`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", محدد",other:""},e.isSelected)}`,listboxLabel:"مقترحات",selectedAnnouncement:e=>`${e.optionText}، محدد`};var R4={};R4={buttonLabel:"Покажи предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} опция`,other:()=>`${t.number(e.optionCount)} опции`})} на разположение.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Въведена група ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} опция`,other:()=>`${t.number(e.groupCount)} опции`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", избрани",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, избрани`};var F4={};F4={buttonLabel:"Zobrazit doporučení",countAnnouncement:(e,t)=>`K dispozici ${t.plural(e.optionCount,{one:()=>`je ${t.number(e.optionCount)} možnost`,other:()=>`jsou/je ${t.number(e.optionCount)} možnosti/-í`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina „${e.groupTitle}“ ${t.plural(e.groupCount,{one:()=>`s ${t.number(e.groupCount)} možností`,other:()=>`se ${t.number(e.groupCount)} možnostmi`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:" (vybráno)",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybráno`};var O4={};O4={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} mulighed tilgængelig`,other:()=>`${t.number(e.optionCount)} muligheder tilgængelige`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angivet gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} mulighed`,other:()=>`${t.number(e.groupCount)} muligheder`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var j4={};j4={buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} Option`,other:()=>`${t.number(e.optionCount)} Optionen`})} verfügbar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Eingetretene Gruppe ${e.groupTitle}, mit ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} Option`,other:()=>`${t.number(e.groupCount)} Optionen`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", ausgewählt",other:""},e.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:e=>`${e.optionText}, ausgewählt`};var _4={};_4={buttonLabel:"Προβολή προτάσεων",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} επιλογή`,other:()=>`${t.number(e.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Εισαγμένη ομάδα ${e.groupTitle}, με ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} επιλογή`,other:()=>`${t.number(e.groupCount)} επιλογές`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", επιλεγμένο",other:""},e.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:e=>`${e.optionText}, επιλέχθηκε`};var B4={};B4={focusAnnouncement:(e,t)=>`${t.select({true:()=>`Entered group ${e.groupTitle}, with ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"};var V4={};V4={buttonLabel:"Mostrar sugerencias",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opción`,other:()=>`${t.number(e.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Se ha unido al grupo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opción`,other:()=>`${t.number(e.groupCount)} opciones`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seleccionado",other:""},e.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:e=>`${e.optionText}, seleccionado`};var K4={};K4={buttonLabel:"Kuva soovitused",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} valik`,other:()=>`${t.number(e.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Sisestatud rühm ${e.groupTitle}, valikuga ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} valik`,other:()=>`${t.number(e.groupCount)} valikud`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valitud",other:""},e.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:e=>`${e.optionText}, valitud`};var z4={};z4={buttonLabel:"Näytä ehdotukset",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} vaihtoehto`,other:()=>`${t.number(e.optionCount)} vaihtoehdot`})} saatavilla.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Mentiin ryhmään ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} vaihtoehdon`,other:()=>`${t.number(e.groupCount)} vaihtoehdon`})} kanssa.`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valittu",other:""},e.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:e=>`${e.optionText}, valittu`};var W4={};W4={buttonLabel:"Afficher les suggestions",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groupe ${e.groupTitle} saisi, avec ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", sélectionné(s)",other:""},e.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:e=>`${e.optionText}, sélectionné`};var U4={};U4={buttonLabel:"הצג הצעות",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`אפשרות ${t.number(e.optionCount)}`,other:()=>`${t.number(e.optionCount)} אפשרויות`})} במצב זמין.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`נכנס לקבוצה ${e.groupTitle}, עם ${t.plural(e.groupCount,{one:()=>`אפשרות ${t.number(e.groupCount)}`,other:()=>`${t.number(e.groupCount)} אפשרויות`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", נבחר",other:""},e.isSelected)}`,listboxLabel:"הצעות",selectedAnnouncement:e=>`${e.optionText}, נבחר`};var H4={};H4={buttonLabel:"Prikaži prijedloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} opcije/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", odabranih",other:""},e.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:e=>`${e.optionText}, odabrano`};var G4={};G4={buttonLabel:"Javaslatok megjelenítése",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} lehetőség`,other:()=>`${t.number(e.optionCount)} lehetőség`})} áll rendelkezésre.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Belépett a(z) ${e.groupTitle} csoportba, amely ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} lehetőséget`,other:()=>`${t.number(e.groupCount)} lehetőséget`})} tartalmaz. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", kijelölve",other:""},e.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:e=>`${e.optionText}, kijelölve`};var Y4={};Y4={buttonLabel:"Mostra suggerimenti",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opzione disponibile`,other:()=>`${t.number(e.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingresso nel gruppo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opzione`,other:()=>`${t.number(e.groupCount)} opzioni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selezionato",other:""},e.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:e=>`${e.optionText}, selezionato`};var X4={};X4={buttonLabel:"候補を表示",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 個のオプション`,other:()=>`${t.number(e.optionCount)} 個のオプション`})}を利用できます。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`入力されたグループ ${e.groupTitle}、${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 個のオプション`,other:()=>`${t.number(e.groupCount)} 個のオプション`})}を含む。`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:"、選択済み",other:""},e.isSelected)}`,listboxLabel:"候補",selectedAnnouncement:e=>`${e.optionText}、選択済み`};var Q4={};Q4={buttonLabel:"제안 사항 표시",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)}개 옵션`,other:()=>`${t.number(e.optionCount)}개 옵션`})}을 사용할 수 있습니다.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`입력한 그룹 ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)}개 옵션`,other:()=>`${t.number(e.groupCount)}개 옵션`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 선택됨",other:""},e.isSelected)}`,listboxLabel:"제안",selectedAnnouncement:e=>`${e.optionText}, 선택됨`};var Z4={};Z4={buttonLabel:"Rodyti pasiūlymus",countAnnouncement:(e,t)=>`Yra ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} parinktis`,other:()=>`${t.number(e.optionCount)} parinktys (-ių)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Įvesta grupė ${e.groupTitle}, su ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} parinktimi`,other:()=>`${t.number(e.groupCount)} parinktimis (-ių)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", pasirinkta",other:""},e.isSelected)}`,listboxLabel:"Pasiūlymai",selectedAnnouncement:e=>`${e.optionText}, pasirinkta`};var q4={};q4={buttonLabel:"Rādīt ieteikumus",countAnnouncement:(e,t)=>`Pieejamo opciju skaits: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcijas`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ievadīta grupa ${e.groupTitle}, ar ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opciju`,other:()=>`${t.number(e.groupCount)} opcijām`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", atlasīta",other:""},e.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:e=>`${e.optionText}, atlasīta`};var J4={};J4={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angitt gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativer`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var e3={};e3={buttonLabel:"Suggesties weergeven",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} optie`,other:()=>`${t.number(e.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groep ${e.groupTitle} ingevoerd met ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} optie`,other:()=>`${t.number(e.groupCount)} opties`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", geselecteerd",other:""},e.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:e=>`${e.optionText}, geselecteerd`};var t3={};t3={buttonLabel:"Wyświetlaj sugestie",countAnnouncement:(e,t)=>`dostępna/dostępne(-nych) ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcja`,other:()=>`${t.number(e.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Dołączono do grupy ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcją`,other:()=>`${t.number(e.groupCount)} opcjami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", wybrano",other:""},e.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:e=>`${e.optionText}, wybrano`};var n3={};n3={buttonLabel:"Mostrar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo inserido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var r3={};r3={buttonLabel:"Apresentar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo introduzido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var o3={};o3={buttonLabel:"Afișare sugestii",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opțiune`,other:()=>`${t.number(e.optionCount)} opțiuni`})} disponibile.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grup ${e.groupTitle} introdus, cu ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opțiune`,other:()=>`${t.number(e.groupCount)} opțiuni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selectat",other:""},e.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:e=>`${e.optionText}, selectat`};var i3={};i3={buttonLabel:"Показать предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметров`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введенная группа ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметром`,other:()=>`${t.number(e.groupCount)} параметрами`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", выбранными",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, выбрано`};var s3={};s3={buttonLabel:"Zobraziť návrhy",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} možnosť`,other:()=>`${t.number(e.optionCount)} možnosti/-í`})} k dispozícii.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} možnosťou`,other:()=>`${t.number(e.groupCount)} možnosťami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", vybraté",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybraté`};var a3={};a3={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Na voljo je ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Vnesena skupina ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcija`,other:()=>`${t.number(e.groupCount)} opcije`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izbrano",other:""},e.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:e=>`${e.optionText}, izbrano`};var l3={};l3={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena grupa ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} optione/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izabranih",other:""},e.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:e=>`${e.optionText}, izabrano`};var u3={};u3={buttonLabel:"Visa förslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativ`})} tillgängliga.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingick i gruppen ${e.groupTitle} med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativ`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valda",other:""},e.isSelected)}`,listboxLabel:"Förslag",selectedAnnouncement:e=>`${e.optionText}, valda`};var c3={};c3={buttonLabel:"Önerileri göster",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} seçenek`,other:()=>`${t.number(e.optionCount)} seçenekler`})} kullanılabilir.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Girilen grup ${e.groupTitle}, ile ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} seçenek`,other:()=>`${t.number(e.groupCount)} seçenekler`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seçildi",other:""},e.isSelected)}`,listboxLabel:"Öneriler",selectedAnnouncement:e=>`${e.optionText}, seçildi`};var d3={};d3={buttonLabel:"Показати пропозиції",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введена група ${e.groupTitle}, з ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметр`,other:()=>`${t.number(e.groupCount)} параметри(-ів)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", вибрано",other:""},e.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:e=>`${e.optionText}, вибрано`};var f3={};f3={buttonLabel:"显示建议",countAnnouncement:(e,t)=>`有 ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 个选项`,other:()=>`${t.number(e.optionCount)} 个选项`})}可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`进入了 ${e.groupTitle} 组,其中有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 个选项`,other:()=>`${t.number(e.groupCount)} 个选项`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已选择",other:""},e.isSelected)}`,listboxLabel:"建议",selectedAnnouncement:e=>`${e.optionText}, 已选择`};var p3={};p3={buttonLabel:"顯示建議",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 選項`,other:()=>`${t.number(e.optionCount)} 選項`})} 可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`輸入的群組 ${e.groupTitle}, 有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 選項`,other:()=>`${t.number(e.groupCount)} 選項`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已選取",other:""},e.isSelected)}`,listboxLabel:"建議",selectedAnnouncement:e=>`${e.optionText}, 已選取`};N4={"ar-AE":I4,"bg-BG":R4,"cs-CZ":F4,"da-DK":O4,"de-DE":j4,"el-GR":_4,"en-US":B4,"es-ES":V4,"et-EE":K4,"fi-FI":z4,"fr-FR":W4,"he-IL":U4,"hr-HR":H4,"hu-HU":G4,"it-IT":Y4,"ja-JP":X4,"ko-KR":Q4,"lt-LT":Z4,"lv-LV":q4,"nb-NO":J4,"nl-NL":e3,"pl-PL":t3,"pt-BR":n3,"pt-PT":r3,"ro-RO":o3,"ru-RU":i3,"sk-SK":s3,"sl-SI":a3,"sr-SP":l3,"sv-SE":u3,"tr-TR":c3,"uk-UA":d3,"zh-CN":f3,"zh-TW":p3};function y9(e,t){let{buttonRef:n,popoverRef:r,inputRef:o,listBoxRef:i,keyboardDelegate:s,shouldFocusWrap:a,isReadOnly:l,isDisabled:u}=e,c=np(v9(N4)),{menuTriggerProps:d,menuProps:f}=c4({type:"listbox",isDisabled:u||l},t,n);iu.set(t,{id:f.id});let p=h.useMemo(()=>s||new p1(t.collection,t.disabledKeys,i),[s,t.collection,t.disabledKeys,i]),{collectionProps:y}=d1({selectionManager:t.selectionManager,keyboardDelegate:p,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:a,ref:o,isVirtualized:!0}),b=Gl(),w=K=>{switch(K.key){case"Enter":case"Tab":if(t.isOpen&&K.key==="Enter"&&K.preventDefault(),t.isOpen&&t.selectionManager.focusedKey!=null&&t.selectionManager.isLink(t.selectionManager.focusedKey)){if(K.key==="Enter"){let G=i.current.querySelector(`[data-key="${t.selectionManager.focusedKey}"]`);G instanceof HTMLAnchorElement&&b.open(G,K)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&K.continuePropagation(),t.revert();break;case"ArrowDown":t.open("first","manual");break;case"ArrowUp":t.open("last","manual");break;case"ArrowLeft":case"ArrowRight":t.selectionManager.setFocusedKey(null);break}},x=K=>{var G;K.relatedTarget===(n==null?void 0:n.current)||!((G=r.current)===null||G===void 0)&&G.contains(K.relatedTarget)||(e.onBlur&&e.onBlur(K),t.setFocused(!1))},g=K=>{t.isFocused||(e.onFocus&&e.onFocus(K),t.setFocused(!0))},{isInvalid:v,validationErrors:S,validationDetails:k}=t.displayValidation,{labelProps:A,inputProps:D,descriptionProps:m,errorMessageProps:L}=fw({...e,onChange:t.setInputValue,onKeyDown:!l&&zr(t.isOpen&&y.onKeyDown,w,e.onKeyDown),onBlur:x,value:t.inputValue,onFocus:g,autoComplete:"off",validate:void 0,[Wd]:t},o),M=K=>{K.pointerType==="touch"&&(o.current.focus(),t.toggle(null,"manual"))},E=K=>{K.pointerType!=="touch"&&(o.current.focus(),t.toggle(K.pointerType==="keyboard"||K.pointerType==="virtual"?"first":null,"manual"))},N=ol({id:d.id,"aria-label":c.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||A.id}),C=ol({id:f.id,"aria-label":c.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||A.id}),$=h.useRef(0),R=K=>{if(u||l)return;if(K.timeStamp-$.current<500){K.preventDefault(),o.current.focus();return}let G=K.target.getBoundingClientRect(),Z=K.changedTouches[0],re=Math.ceil(G.left+.5*G.width),ie=Math.ceil(G.top+.5*G.height);Z.clientX===re&&Z.clientY===ie&&(K.preventDefault(),o.current.focus(),t.toggle(null,"manual"),$.current=K.timeStamp)},_=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var j;let I=(j=_==null?void 0:_.parentKey)!==null&&j!==void 0?j:null;var B;let F=(B=t.selectionManager.focusedKey)!==null&&B!==void 0?B:null,T=h.useRef(I),O=h.useRef(F);h.useEffect(()=>{if(Sa()&&_!=null&&F!==O.current){let K=t.selectionManager.isSelected(F),G=I!=null?t.collection.getItem(I):null,Z=(G==null?void 0:G["aria-label"])||(typeof(G==null?void 0:G.rendered)=="string"?G.rendered:"")||"",re=c.format("focusAnnouncement",{isGroupChange:G&&I!==T.current,groupTitle:Z,groupCount:G?[...ru(G,t.collection)].length:0,optionText:_["aria-label"]||_.textValue||"",isSelected:K});gc(re)}T.current=I,O.current=F});let V=Ip(t.collection),W=h.useRef(V),U=h.useRef(t.isOpen);h.useEffect(()=>{let K=t.isOpen!==U.current&&(t.selectionManager.focusedKey==null||Sa());if(t.isOpen&&(K||V!==W.current)){let G=c.format("countAnnouncement",{optionCount:V});gc(G)}W.current=V,U.current=t.isOpen});let Q=h.useRef(t.selectedKey);return h.useEffect(()=>{if(Sa()&&t.isFocused&&t.selectedItem&&t.selectedKey!==Q.current){let K=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",G=c.format("selectedAnnouncement",{optionText:K});gc(G)}Q.current=t.selectedKey}),h.useEffect(()=>{if(t.isOpen)return Ub([o.current,r.current])},[t.isOpen,o,r]),{labelProps:A,buttonProps:{...d,...N,excludeFromTabOrder:!0,onPress:M,onPressStart:E,isDisabled:u||l},inputProps:Y(D,{role:"combobox","aria-expanded":d["aria-expanded"],"aria-controls":t.isOpen?f.id:void 0,"aria-autocomplete":"list","aria-activedescendant":_?A4(t,_.key):void 0,onTouchEnd:R,autoCorrect:"off",spellCheck:"false"}),listBoxProps:Y(f,C,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:m,errorMessageProps:L,isInvalid:v,validationErrors:S,validationDetails:k}}function b9(e){var t,n;let{defaultFilter:r,menuTrigger:o="input",allowsEmptyCollection:i=!1,allowsCustomValue:s,shouldCloseOnBlur:a=!0}=e,[l,u]=h.useState(!1),[c,d]=h.useState(!1),f=J=>{e.onSelectionChange&&e.onSelectionChange(J),J===w&&(T(),I())};var p;let{collection:y,selectionManager:b,selectedKey:w,setSelectedKey:x,selectedItem:g,disabledKeys:v}=n9({...e,onSelectionChange:f,items:(p=e.items)!==null&&p!==void 0?p:e.defaultItems});var S,k;let[A,D]=pr(e.inputValue,(k=(S=e.defaultInputValue)!==null&&S!==void 0?S:(t=y.getItem(w))===null||t===void 0?void 0:t.textValue)!==null&&k!==void 0?k:"",e.onInputChange),m=y,L=h.useMemo(()=>e.items!=null||!r?y:x9(y,A,r),[y,A,r,e.items]),[M,E]=h.useState(L),N=h.useRef("focus"),$=b4({...e,onOpenChange:J=>{e.onOpenChange&&e.onOpenChange(J,J?N.current:void 0),b.setFocused(J),J||b.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),R=(J,se)=>{let me=se==="manual"||se==="focus"&&o==="focus";(i||L.size>0||me&&m.size>0||e.items)&&(me&&!$.isOpen&&e.items===void 0&&u(!0),N.current=se,$.open(J))},_=(J,se)=>{let me=se==="manual"||se==="focus"&&o==="focus";!(i||L.size>0||me&&m.size>0||e.items)&&!$.isOpen||(me&&!$.isOpen&&e.items===void 0&&u(!0),$.isOpen||(N.current=se),j(J))},j=h.useCallback(J=>{$.isOpen&&E(L),$.toggle(J)},[$,L]),I=h.useCallback(()=>{$.isOpen&&(E(L),$.close())},[$,L]),[B,F]=h.useState(A),T=()=>{var J,se;let me=(se=(J=y.getItem(w))===null||J===void 0?void 0:J.textValue)!==null&&se!==void 0?se:"";F(me),D(me)};var O,V;let W=h.useRef((V=(O=e.selectedKey)!==null&&O!==void 0?O:e.defaultSelectedKey)!==null&&V!==void 0?V:null);var U;let Q=h.useRef((U=(n=y.getItem(w))===null||n===void 0?void 0:n.textValue)!==null&&U!==void 0?U:"");h.useEffect(()=>{var J;c&&(L.size>0||i)&&!$.isOpen&&A!==B&&o!=="manual"&&R(null,"input"),!l&&!i&&$.isOpen&&L.size===0&&I(),w!=null&&w!==W.current&&I(),A!==B&&(b.setFocusedKey(null),u(!1),A===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&x(null)),w!==W.current&&(e.inputValue===void 0||e.selectedKey===void 0)?T():B!==A&&F(A);var se;let me=(se=(J=y.getItem(w))===null||J===void 0?void 0:J.textValue)!==null&&se!==void 0?se:"";!c&&w!=null&&e.inputValue===void 0&&w===W.current&&Q.current!==me&&(F(me),D(me)),W.current=w,Q.current=me});let K=lw({...e,value:h.useMemo(()=>({inputValue:A,selectedKey:w}),[A,w])}),G=()=>{s&&w==null?Z():re()},Z=()=>{W.current=null,x(null),I()},re=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var J;e.onSelectionChange(w);var se;let me=(se=(J=y.getItem(w))===null||J===void 0?void 0:J.textValue)!==null&&se!==void 0?se:"";F(me),I()}else T(),I()};const ie=()=>{if(s){var J,se;const me=(se=(J=y.getItem(w))===null||J===void 0?void 0:J.textValue)!==null&&se!==void 0?se:"";A===me?re():Z()}else re()};let de=()=>{$.isOpen&&b.focusedKey!=null?w===b.focusedKey?re():x(b.focusedKey):ie()},ce=h.useRef(A),pe=J=>{J?(ce.current=A,o==="focus"&&R(null,"focus")):(a&&ie(),A!==ce.current&&K.commitValidation()),d(J)},bt=h.useMemo(()=>$.isOpen?l?m:L:M,[$.isOpen,m,L,l,M]);return{...K,...$,toggle:_,open:R,close:ie,selectionManager:b,selectedKey:w,setSelectedKey:x,disabledKeys:v,isFocused:c,setFocused:pe,selectedItem:g,collection:bt,inputValue:A,setInputValue:D,commit:de,revert:G}}function x9(e,t,n){return new Qd(h3(e,e,t,n))}function h3(e,t,n,r){let o=[];for(let i of t)if(i.type==="section"&&i.hasChildNodes){let s=h3(e,ru(i,e),n,r);[...s].some(a=>a.type==="item")&&o.push({...i,childNodes:s})}else i.type==="item"&&r(i.textValue,n)?o.push({...i}):i.type!=="item"&&o.push({...i});return o}function w9(e){var t,n,r;const[o,i]=Qt(e,_m.variantKeys),s=(t=e.disableAnimation)!=null?t:!1,a=e.disableClearable!==void 0?!e.disableClearable:e.isClearable,{ref:l,as:u,label:c,isLoading:d,menuTrigger:f="focus",filterOptions:p={sensitivity:"base"},children:y,selectorIcon:b,clearIcon:w,scrollRef:x,defaultFilter:g,endContent:v,allowsEmptyCollection:S=!0,shouldCloseOnBlur:k=!0,popoverProps:A={},inputProps:D={},scrollShadowProps:m={},listboxProps:L={},selectorButtonProps:M={},clearButtonProps:E={},showScrollIndicators:N=!0,allowsCustomValue:C=!1,className:$,classNames:R,onOpenChange:_,onClose:j,...I}=o,{contains:B}=oP(p),F=b9({...e,children:y,menuTrigger:f,shouldCloseOnBlur:k,allowsEmptyCollection:S,defaultFilter:g&&typeof g=="function"?g:B,onOpenChange:(Pe,_e)=>{_==null||_(Pe,_e),Pe||j==null||j()}}),T=h.useRef(null),O=h.useRef(null),V=h.useRef(null),W=h.useRef(null),U=Oe(l),Q=Oe(x),K={inputProps:Y({label:c,ref:U,wrapperRef:O,onClick:()=>{!F.isOpen&&F.selectedItem&&F.open()},isClearable:!1,disableAnimation:s},D),popoverProps:Y({offset:5,placement:"bottom",triggerScaleOnOpen:!1,disableAnimation:s},A),scrollShadowProps:Y({ref:Q,isEnabled:(n=N&&F.collection.size>5)!=null?n:!0,hideScrollBar:!0,offset:15},m),listboxProps:Y({hideEmptyContent:C,emptyContent:"No results found.",disableAnimation:s},L),selectorButtonProps:Y({isLoading:d,size:"sm",variant:"light",radius:"full",color:e!=null&&e.isInvalid?"danger":e==null?void 0:e.color,isIconOnly:!0,disableAnimation:s},M),clearButtonProps:Y({size:"sm",variant:"light",radius:"full",color:e!=null&&e.isInvalid?"danger":e==null?void 0:e.color,isIconOnly:!0,disableAnimation:s},E)},G=ne(R==null?void 0:R.base,$),Z=(r=K.listboxProps)!=null&&r.hideEmptyContent?F.isOpen&&!!F.collection.size:F.isOpen;h.useEffect(()=>{if(Z&&W.current&&O.current){let Pe=O.current.getBoundingClientRect(),_e=W.current;_e.style.width=Pe.width+"px"}},[Z]),h.useEffect(()=>{!Z&&!F.selectedItem&&U.current&&!C&&U.current.blur()},[Z,C]);const{buttonProps:re,inputProps:ie,listBoxProps:de}=y9({...e,inputRef:U,buttonRef:T,listBoxRef:V,popoverRef:W},F),ce=u||"div",pe=h.useMemo(()=>_m({...i,isClearable:a,disableAnimation:s,className:$}),[...Object.values(i),a,s,$]),bt=h.useCallback(()=>{F.setInputValue(""),F.setSelectedKey(null)},[F]),J=h.useCallback(Pe=>{var _e;(_e=U.current)==null||_e.focus(),F.setFocused(Pe)},[F,U]);return{Component:ce,inputRef:U,label:c,state:F,slots:pe,classNames:R,isLoading:d,clearIcon:w,isOpen:Z,endContent:v,isClearable:a,disableAnimation:s,allowsCustomValue:C,selectorIcon:b,getBaseProps:()=>({"data-invalid":H(e==null?void 0:e.isInvalid),"data-open":H(F.isOpen),className:pe.base({class:G})}),getInputProps:()=>({...K.inputProps,...I,...ie,onClick:zr(K.inputProps.onClick,I.onClick)}),getListBoxProps:()=>({state:F,ref:V,shouldHighlightOnFocus:!0,...Y(K.listboxProps,de)}),getPopoverProps:(Pe={})=>{var _e,ge;return{state:F,ref:W,triggerRef:O,scrollRef:V,triggerType:"listbox",...Y(K.popoverProps,Pe),classNames:{content:pe.popoverContent({class:ne(R==null?void 0:R.popoverContent,(ge=(_e=K.popoverProps)==null?void 0:_e.classNames)==null?void 0:ge.content,Pe.className)})}}},getClearButtonProps:()=>{var Pe,_e;return{...Y(re,K.clearButtonProps),onPress:ge=>{var Jo,Ms;if((Ms=(Jo=K.clearButtonProps)==null?void 0:Jo.onPress)==null||Ms.call(Jo,ge),F.selectedItem)bt();else{const du=U.current===document.activeElement;C&&F.setInputValue(""),!du&&J(!0)}},"data-visible":!!F.selectedItem||((Pe=F.inputValue)==null?void 0:Pe.length)>0,className:pe.clearButton({class:ne(R==null?void 0:R.clearButton,(_e=K.clearButtonProps)==null?void 0:_e.className)})}},getSelectorButtonProps:()=>{var Pe;return{ref:T,...Y(re,K.selectorButtonProps),"data-open":H(F.isOpen),className:pe.selectorButton({class:ne(R==null?void 0:R.selectorButton,(Pe=K.selectorButtonProps)==null?void 0:Pe.className)})}},getListBoxWrapperProps:(Pe={})=>{var _e;return{...Y(K.scrollShadowProps,Pe),className:pe.listboxWrapper({class:ne(R==null?void 0:R.listboxWrapper,(_e=K.scrollShadowProps)==null?void 0:_e.className,Pe==null?void 0:Pe.className)})}},getEndContentWrapperProps:(Pe={})=>({className:pe.endContentWrapper({class:ne(R==null?void 0:R.endContentWrapper,Pe==null?void 0:Pe.className)}),onClick:_e=>{!(U.current===document.activeElement)&&!F.isFocused&&_e.currentTarget===_e.target&&J(!0)}})}}function m3(e,t){const{Component:n,state:r,isOpen:o,disableAnimation:i,selectorIcon:s=P.jsx(O5,{}),clearIcon:a=P.jsx(F5,{}),endContent:l,getBaseProps:u,getSelectorButtonProps:c,getInputProps:d,getListBoxProps:f,getPopoverProps:p,getClearButtonProps:y,getListBoxWrapperProps:b,getEndContentWrapperProps:w}=w9({...e,ref:t}),x=o?P.jsx(U8,{...p(),state:r,children:P.jsx(i9,{...b(),children:P.jsx(h9,{...f()})})}):null;return P.jsxs(n,{...u(),children:[P.jsx(K8,{...d(),endContent:P.jsxs("div",{...w(),children:[l||P.jsx(Io,{...y(),children:a}),P.jsx(Io,{...c(),children:s})]})}),i?x:P.jsx(ks,{children:x})]})}var C9=he(m3);m3.displayName="NextUI.Autocomplete";/** +`)},P7=0,io=[];function $7(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),o=h.useState(P7++)[0],i=h.useState(bw)[0],s=h.useRef(e);h.useEffect(function(){s.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var b=iP([e.lockRef.current],(e.shards||[]).map(av),!0).filter(Boolean);return b.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),b.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=h.useCallback(function(b,w){if("touches"in b&&b.touches.length===2)return!s.current.allowPinchZoom;var x=ua(b),g=n.current,v="deltaX"in b?b.deltaX:g[0]-x[0],S="deltaY"in b?b.deltaY:g[1]-x[1],k,A=b.target,D=Math.abs(v)>Math.abs(S)?"h":"v";if("touches"in b&&D==="h"&&A.type==="range")return!1;var m=iv(D,A);if(!m)return!0;if(m?k=D:(k=D==="v"?"h":"v",m=iv(D,A)),!m)return!1;if(!r.current&&"changedTouches"in b&&(v||S)&&(r.current=k),!k)return!0;var L=r.current||k;return w7(L,w,b,L==="h"?v:S,!0)},[]),l=h.useCallback(function(b){var w=b;if(!(!io.length||io[io.length-1]!==i)){var x="deltaY"in w?sv(w):ua(w),g=t.current.filter(function(k){return k.name===w.type&&(k.target===w.target||w.target===k.shadowParent)&&C7(k.delta,x)})[0];if(g&&g.should){w.cancelable&&w.preventDefault();return}if(!g){var v=(s.current.shards||[]).map(av).filter(Boolean).filter(function(k){return k.contains(w.target)}),S=v.length>0?a(w,v[0]):!s.current.noIsolation;S&&w.cancelable&&w.preventDefault()}}},[]),u=h.useCallback(function(b,w,x,g){var v={name:b,delta:w,target:x,should:g,shadowParent:E7(x)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(S){return S!==v})},1)},[]),c=h.useCallback(function(b){n.current=ua(b),r.current=void 0},[]),d=h.useCallback(function(b){u(b.type,sv(b),b.target,a(b,e.lockRef.current))},[]),f=h.useCallback(function(b){u(b.type,ua(b),b.target,a(b,e.lockRef.current))},[]);h.useEffect(function(){return io.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,oo),document.addEventListener("touchmove",l,oo),document.addEventListener("touchstart",c,oo),function(){io=io.filter(function(b){return b!==i}),document.removeEventListener("wheel",l,oo),document.removeEventListener("touchmove",l,oo),document.removeEventListener("touchstart",c,oo)}},[]);var p=e.removeScrollBar,y=e.inert;return h.createElement(h.Fragment,null,y?h.createElement(i,{styles:S7(o)}):null,p?h.createElement(h7,{gapMode:e.gapMode}):null)}function E7(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const k7=n7(yw,$7);var Sw=h.forwardRef(function(e,t){return h.createElement(ou,tn({},e,{ref:t,sideCar:k7}))});Sw.classNames=ou.classNames;const Pw=Sw;var $w=he((e,t)=>{const{as:n,children:r,className:o,...i}=e,{Component:s,isOpen:a,placement:l,motionProps:u,backdrop:c,disableAnimation:d,shouldBlockScroll:f,getPopoverProps:p,getDialogProps:y,getBackdropProps:b,getContentProps:w,isNonModal:x,onClose:g}=gw(),v=n||s||"div",S=h.useRef(null),{dialogProps:k,titleProps:A}=G8({},S);delete k.role;const D=P.jsxs(P.Fragment,{children:[!x&&P.jsx(fl,{onDismiss:g}),P.jsx(v,{...y(Y(k,i)),ref:S,children:P.jsx("div",{...w({className:o}),children:typeof r=="function"?r(A):r})}),P.jsx(fl,{onDismiss:g})]}),m=h.useMemo(()=>c==="transparent"?null:d?P.jsx("div",{...b()}):P.jsx(ur.div,{animate:"enter",exit:"exit",initial:"exit",variants:ss.fade,...b()}),[c,d,b]);return P.jsxs("div",{...p(),children:[m,P.jsx(Pw,{forwardProps:!0,enabled:f&&a,removeScrollBar:!1,children:d?D:P.jsx(ur.div,{animate:"enter",exit:"exit",initial:"initial",style:{...Rp(l==="center"?"top":l)},variants:ss.scaleSpringOpacity,...u,children:D})})]})});$w.displayName="NextUI.PopoverContent";var T7=$w,Ew=he((e,t)=>{const{triggerRef:n,getTriggerProps:r}=gw(),{children:o,...i}=e,s=h.useMemo(()=>typeof o=="string"?P.jsx("p",{children:o}):h.Children.only(o),[o]),{onPress:a,...l}=h.useMemo(()=>r(Y(s.props,i),s.ref),[r,s.props,i,s.ref]),[,u]=c1(o,Io),{buttonProps:c}=Op({onPress:a},n),d=h.useMemo(()=>(u==null?void 0:u[0])!==void 0,[u]);return h.cloneElement(s,Y(l,d?{onPress:a}:c))});Ew.displayName="NextUI.PopoverTrigger";var A7=Ew,kw=he((e,t)=>{const{children:n,...r}=e,o=hw({...r,ref:t}),[i,s]=h.Children.toArray(n),a=P.jsx(lp,{portalContainer:o.portalContainer,children:s});return P.jsxs(H8,{value:o,children:[i,o.disableAnimation&&o.isOpen?a:P.jsx(ks,{children:o.isOpen?a:null})]})});kw.displayName="NextUI.Popover";var M7=kw,[L7,Tw]=Yo({name:"DropdownContext",errorMessage:"useDropdownContext: `context` is undefined. Seems you forgot to wrap all popover components within ``"});function D7(e){const{isSelected:t,disableAnimation:n,...r}=e;return P.jsx("svg",{"aria-hidden":"true","data-selected":t,role:"presentation",viewBox:"0 0 17 18",...r,children:P.jsx("polyline",{fill:"none",points:"1 9 7 14 15 4",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,style:n?{}:{transition:"stroke-dashoffset 200ms ease"}})})}function N7(e){return e&&e.__esModule?e.default:e}var Aw={},Mw={};Mw={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var Lw={};Lw={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var Dw={};Dw={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var Nw={};Nw={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var Iw={};Iw={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var Rw={};Rw={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var Ow={};Ow={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var Fw={};Fw={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var jw={};jw={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var _w={};_w={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var Bw={};Bw={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var Vw={};Vw={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var Kw={};Kw={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var zw={};zw={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var Ww={};Ww={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var Uw={};Uw={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var Hw={};Hw={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var Gw={};Gw={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var Yw={};Yw={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var Xw={};Xw={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var Qw={};Qw={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var Zw={};Zw={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var Jw={};Jw={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var qw={};qw={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var e4={};e4={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var t4={};t4={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var n4={};n4={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var r4={};r4={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var o4={};o4={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var i4={};i4={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var s4={};s4={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var a4={};a4={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var l4={};l4={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var u4={};u4={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};Aw={"ar-AE":Mw,"bg-BG":Lw,"cs-CZ":Dw,"da-DK":Nw,"de-DE":Iw,"el-GR":Rw,"en-US":Ow,"es-ES":Fw,"et-EE":jw,"fi-FI":_w,"fr-FR":Bw,"he-IL":Vw,"hr-HR":Kw,"hu-HU":zw,"it-IT":Ww,"ja-JP":Uw,"ko-KR":Hw,"lt-LT":Gw,"lv-LV":Yw,"nb-NO":Xw,"nl-NL":Qw,"pl-PL":Zw,"pt-BR":Jw,"pt-PT":qw,"ro-RO":e4,"ru-RU":t4,"sk-SK":n4,"sl-SI":r4,"sr-SP":o4,"sv-SE":i4,"tr-TR":s4,"uk-UA":a4,"zh-CN":l4,"zh-TW":u4};function c4(e,t,n){let{type:r="menu",isDisabled:o,trigger:i="press"}=e,s=sn(),{triggerProps:a,overlayProps:l}=lb({type:r},t,n),u=p=>{if(!o&&!(i==="longPress"&&!p.altKey)&&n&&n.current)switch(p.key){case"Enter":case" ":if(i==="longPress")return;case"ArrowDown":"continuePropagation"in p||p.stopPropagation(),p.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in p||p.stopPropagation(),p.preventDefault(),t.toggle("last");break;default:"continuePropagation"in p&&p.continuePropagation()}},c=np(N7(Aw)),{longPressProps:d}=tb({isDisabled:o||i!=="longPress",accessibilityDescription:c.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),f={onPressStart(p){p.pointerType!=="touch"&&p.pointerType!=="keyboard"&&!o&&t.toggle(p.pointerType==="virtual"?"first":null)},onPress(p){p.pointerType==="touch"&&!o&&t.toggle()}};return delete a.onPress,{menuTriggerProps:{...a,...i==="press"?f:d,id:s,onKeyDown:u},menuProps:{...l,"aria-labelledby":s,autoFocus:t.focusStrategy||!0,onClose:t.close}}}const d4=new WeakMap;function I7(e,t,n){let{shouldFocusWrap:r=!0,...o}=e;!e["aria-label"]&&!e["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let i=hr(e,{labelable:!0}),{listProps:s}=h1({...o,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return d4.set(t,{onClose:e.onClose,onAction:e.onAction}),{menuProps:Y(i,{role:"menu","aria-hidden":t.expandedKeys.size>0?!0:void 0,...s,onKeyDown:a=>{a.key!=="Escape"&&s.onKeyDown(a)}})}}function R7(e,t,n){var r;let{key:o,closeOnSelect:i,isVirtualized:s,"aria-haspopup":a}=e,{direction:l}=xs(),u=!!a,c=t.expandedKeys.has(o);var d;let f=(d=e.isDisabled)!==null&&d!==void 0?d:t.disabledKeys.has(o);var p;let y=(p=e.isSelected)!==null&&p!==void 0?p:t.selectionManager.isSelected(o),b=h.useRef(),w=h.useCallback(()=>{b.current&&(clearTimeout(b.current),b.current=void 0)},[b]),x=Oe(()=>{w(),t.setExpandedKeys(new Set([o]))});Te(()=>()=>w(),[w]);let g=d4.get(t),v=e.onClose||g.onClose,S=h.useCallback(()=>{x()},[]),k=u?S:e.onAction||g.onAction,A=Gl(),D=V=>{k&&k(o),V.target instanceof HTMLAnchorElement&&A.open(V.target,V)},m="menuitem";t.selectionManager.selectionMode==="single"?m="menuitemradio":t.selectionManager.selectionMode==="multiple"&&(m="menuitemcheckbox");let L=Jn(),M=Jn(),E=Jn(),N={"aria-disabled":f||void 0,role:m,"aria-label":e["aria-label"],"aria-labelledby":L,"aria-describedby":[M,E].filter(Boolean).join(" ")||void 0};t.selectionManager.selectionMode!=="none"&&(N["aria-checked"]=y);let C=t.collection.getItem(o);s&&(N["aria-posinset"]=C==null?void 0:C.index,N["aria-setsize"]=Ip(t.collection)),a!=null&&(N["aria-haspopup"]=a,N["aria-expanded"]=c?"true":"false");let $=V=>{V.pointerType==="keyboard"&&D(V)},R=V=>{V.pointerType!=="keyboard"&&(D(V),!u&&v&&(i??(t.selectionManager.selectionMode!=="multiple"||t.selectionManager.isLink(o)))&&v())},{itemProps:_,isFocused:j}=f1({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none"}),{pressProps:I,isPressed:B}=ws({onPressStart:$,onPressUp:R,isDisabled:f||u&&t.expandedKeys.has(o)}),{hoverProps:O}=un({isDisabled:f,onHoverStart(){!Ko()&&!(u&&t.expandedKeys.has(o))&&(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o),o===t.selectionManager.focusedKey&&t.selectionManager.isFocused&&document.activeElement!==n.current&&ir(n.current))},onHoverChange:V=>{V&&u&&!t.expandedKeys.has(o)?b.current||(b.current=setTimeout(()=>{x()},200)):V||w()}}),{keyboardProps:T}=eb({onKeyDown:V=>{if(V.repeat){V.continuePropagation();return}switch(V.key){case" ":!f&&t.selectionManager.selectionMode==="none"&&!u&&i!==!1&&v&&v();break;case"Enter":!f&&i!==!1&&!u&&v&&v();break;case"ArrowRight":u&&l==="ltr"?x():V.continuePropagation();break;case"ArrowLeft":u&&l==="rtl"?x():V.continuePropagation();break;default:V.continuePropagation();break}}}),F=hr(C.props,{isLink:!!(!(C==null||(r=C.props)===null||r===void 0)&&r.href)});return delete F.id,{menuItemProps:{...N,...Y(F,_,I,O,T)},labelProps:{id:L},descriptionProps:{id:M},keyboardShortcutProps:{id:E},isFocused:j,isSelected:y,isPressed:B,isDisabled:f}}function O7(e){let{heading:t,"aria-label":n}=e,r=sn();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}var F7=700;function f4(){return ys()||typeof window>"u"?!1:window.screen.width<=F7}function j7(e){const[t,n]=Qt(e,gl.variantKeys),{as:r,item:o,state:i,shortcut:s,description:a,startContent:l,endContent:u,isVirtualized:c,selectedIcon:d,className:f,classNames:p,onAction:y,autoFocus:b,onPress:w,onClick:x,hideSelectedIcon:g=!1,isReadOnly:v=!1,closeOnSelect:S,onClose:k,...A}=t,D=e.disableAnimation,m=h.useRef(null),L=r||(A!=null&&A.href?"a":"li"),M=typeof L=="string",{rendered:E,key:N}=o,C=i.disabledKeys.has(N)||e.isDisabled,$=i.selectionManager.selectionMode!=="none",R=f4(),{pressProps:_,isPressed:j}=cp({ref:m,isDisabled:C,onPress:w}),{isHovered:I,hoverProps:B}=un({isDisabled:C}),{isFocusVisible:O,focusProps:T}=sr({autoFocus:b}),{isFocused:F,isSelected:V,menuItemProps:W,labelProps:U,descriptionProps:Q,keyboardShortcutProps:K}=R7({key:N,onClose:k,isDisabled:C,"aria-label":t["aria-label"],closeOnSelect:S,isVirtualized:c,onAction:y},i,m);let G=W;const Z=h.useMemo(()=>gl({...n,isDisabled:C,disableAnimation:D}),[...Object.values(n),C,D]),re=ne(p==null?void 0:p.base,f);v&&(G=s1(G));const ie=(q={})=>({ref:m,...Y(G,v?{}:Y(T,_),B,ln(A,{enabled:M}),q),"data-focus":H(F),"data-selectable":H($),"data-hover":H(R?I||j:I),"data-disabled":H(C),"data-selected":H(V),"data-pressed":H(j),"data-focus-visible":H(O),className:Z.base({class:ne(re,q.className)}),onClick:zr(_.onClick,x)}),de=(q={})=>({...Y(U,q),className:Z.title({class:p==null?void 0:p.title})}),ce=(q={})=>({...Y(Q,q),className:Z.description({class:p==null?void 0:p.description})}),pe=(q={})=>({...Y(K,q),className:Z.shortcut({class:p==null?void 0:p.shortcut})}),bt=h.useCallback((q={})=>({"aria-hidden":H(!0),"data-disabled":H(C),className:Z.selectedIcon({class:p==null?void 0:p.selectedIcon}),...q}),[C,Z,p]);return{Component:L,domRef:m,slots:Z,classNames:p,isSelectable:$,isSelected:V,isDisabled:C,rendered:E,shortcut:s,description:a,startContent:l,endContent:u,selectedIcon:d,disableAnimation:D,getItemProps:ie,getLabelProps:de,hideSelectedIcon:g,getDescriptionProps:ce,getKeyboardShortcutProps:pe,getSelectedIconProps:bt}}var p4=he((e,t)=>{const{Component:n,slots:r,classNames:o,rendered:i,shortcut:s,description:a,isSelectable:l,isSelected:u,isDisabled:c,selectedIcon:d,startContent:f,endContent:p,disableAnimation:y,hideSelectedIcon:b,getItemProps:w,getLabelProps:x,getDescriptionProps:g,getKeyboardShortcutProps:v,getSelectedIconProps:S}=j7(e),k=h.useMemo(()=>{const A=P.jsx(D7,{disableAnimation:y,isSelected:u});return typeof d=="function"?d({icon:A,isSelected:u,isDisabled:c}):d||A},[d,u,c,y]);return P.jsxs(n,{...w(),children:[f,a?P.jsxs("div",{className:r.wrapper({class:o==null?void 0:o.wrapper}),children:[P.jsx("span",{...x(),children:i}),P.jsx("span",{...g(),children:a})]}):P.jsx("span",{...x(),children:i}),s&&P.jsx("kbd",{...v(),children:s}),l&&!b&&P.jsx("span",{...S(),children:k}),p]})});p4.displayName="NextUI.MenuItem";var h4=p4,m4=he(({item:e,state:t,as:n,variant:r,color:o,disableAnimation:i,onAction:s,closeOnSelect:a,className:l,classNames:u,showDivider:c=!1,hideSelectedIcon:d,dividerProps:f={},itemClasses:p,title:y,...b},w)=>{const x=n||"li",g=h.useMemo(()=>o1(),[]),v=ne(u==null?void 0:u.base,l),S=ne(u==null?void 0:u.divider,f==null?void 0:f.className),{itemProps:k,headingProps:A,groupProps:D}=O7({heading:e.rendered,"aria-label":e["aria-label"]});return P.jsxs(x,{"data-slot":"base",...Y(k,b),className:g.base({class:v}),children:[e.rendered&&P.jsx("span",{...A,className:g.heading({class:u==null?void 0:u.heading}),"data-slot":"heading",children:e.rendered}),P.jsxs("ul",{...D,className:g.group({class:u==null?void 0:u.group}),"data-has-title":!!e.rendered,"data-slot":"group",children:[[...e.childNodes].map(m=>{const{key:L,props:M}=m;let E=P.jsx(h4,{classNames:p,closeOnSelect:a,color:o,disableAnimation:i,hideSelectedIcon:d,item:m,state:t,variant:r,onAction:s,...M},L);return m.wrapper&&(E=m.wrapper(E)),E}),c&&P.jsx(Hx,{as:"li",className:g.divider({class:S}),...f})]})]})});m4.displayName="NextUI.MenuSection";var _7=m4;function B7(e){const{as:t,ref:n,variant:r,color:o,children:i,disableAnimation:s,onAction:a,closeOnSelect:l,itemClasses:u,className:c,state:d,topContent:f,bottomContent:p,hideEmptyContent:y=!1,hideSelectedIcon:b=!1,emptyContent:w="No items.",menuProps:x,onClose:g,classNames:v,...S}=e,k=t||"ul",A=Fe(n),D=typeof k=="string",m=a8({...S,children:i}),L=d||m,{menuProps:M}=I7(S,L,A),E=h.useMemo(()=>r1({className:c}),[c]),N=ne(v==null?void 0:v.base,c);return{Component:k,state:L,variant:r,color:o,disableAnimation:s,onAction:a,onClose:g,topContent:f,bottomContent:p,closeOnSelect:l,className:c,itemClasses:u,getBaseProps:(_={})=>({ref:A,"data-slot":"base",className:E.base({class:N}),...ln(S,{enabled:D}),..._}),getListProps:(_={})=>({"data-slot":"list",className:E.list({class:v==null?void 0:v.list}),...x,...M,..._}),hideEmptyContent:y,hideSelectedIcon:b,getEmptyContentProps:(_={})=>({children:w,className:E.emptyContent({class:v==null?void 0:v.emptyContent}),..._})}}function g4(e,t){const{Component:n,state:r,closeOnSelect:o,color:i,disableAnimation:s,hideSelectedIcon:a,hideEmptyContent:l,variant:u,onClose:c,onAction:d,topContent:f,bottomContent:p,itemClasses:y,getBaseProps:b,getListProps:w,getEmptyContentProps:x}=B7({...e,ref:t}),g=P.jsxs(n,{...w(),children:[!r.collection.size&&!l&&P.jsx("li",{children:P.jsx("div",{...x()})}),[...r.collection].map(v=>{const S={closeOnSelect:o,color:i,disableAnimation:s,item:v,state:r,variant:u,onClose:c,onAction:d,hideSelectedIcon:a,...v.props};if(v.type==="section")return P.jsx(_7,{...S,itemClasses:y},v.key);let k=P.jsx(h4,{...S,classNames:y},v.key);return v.wrapper&&(k=v.wrapper(k)),k})]});return P.jsxs("div",{...b(),children:[f,g,p]})}var V7=he(g4);g4.displayName="NextUI.Menu";var K7=Vx,ft=K7;function v4(e,t){const{getMenuProps:n}=Tw();return P.jsx(T7,{children:P.jsx(rb,{contain:!0,restoreFocus:!0,children:P.jsx(V7,{...n(e,t)})})})}var Gd=he(v4);v4.displayName="NextUI.DropdownMenu";var y4=he((e,t)=>{const{getMenuTriggerProps:n}=Tw(),{children:r,...o}=e;return P.jsx(A7,{...n(o),children:r})});y4.displayName="NextUI.DropdownTrigger";var Yd=y4;function b4(e){let t=Fp(e),[n,r]=h.useState(null);return{focusStrategy:n,...t,open(o=null){r(o),t.open()},toggle(o=null){r(o),t.toggle()}}}function z7(e){const{as:t,triggerRef:n,isOpen:r,defaultOpen:o,onOpenChange:i,type:s="menu",trigger:a="press",placement:l="bottom",isDisabled:u=!1,closeOnSelect:c=!0,shouldBlockScroll:d=!0,classNames:f,disableAnimation:p=!1,onClose:y,className:b,...w}=e,x=t||"div",g=h.useRef(null),v=n||g,S=h.useRef(null),k=h.useRef(null),A=b4({trigger:a,isOpen:r,defaultOpen:o,onOpenChange:$=>{i==null||i($),$||y==null||y()}}),{menuTriggerProps:D,menuProps:m}=c4({type:s,trigger:a,isDisabled:u},A,v),L=h.useMemo(()=>J$({className:b}),[b]),M=$=>{$!==void 0&&!$||c&&A.close()},E=($={})=>({state:A,placement:l,ref:k,disableAnimation:p,shouldBlockScroll:d,scrollRef:S,triggerRef:v,...Y(w,$),classNames:{...f,...$.classNames,content:ne(L,f==null?void 0:f.content,$.className)}}),N=($={},R=null)=>{const{onKeyDown:_,onPress:j,onPressStart:I,...B}=D;return{...Y(B,$),ref:kd(R,g)}},C=($,R=null)=>({ref:kd(R,S),menuProps:m,...Y($,{onAction:()=>M($==null?void 0:$.closeOnSelect)})});return{Component:x,menuRef:S,menuProps:m,classNames:L,closeOnSelect:c,onClose:A.close,autoFocus:A.focusStrategy||!0,disableAnimation:p,getPopoverProps:E,getMenuProps:C,getMenuTriggerProps:N}}var x4=e=>{const{children:t,...n}=e,r=z7(n),[o,i]=ee.Children.toArray(t);return P.jsx(L7,{value:r,children:P.jsxs(M7,{...r.getPopoverProps(),children:[o,i]})})};x4.displayName="NextUI.Dropdown";var Xd=x4;function W7(e){const[t,n]=Qt(e,Om.variantKeys),{ref:r,as:o,src:i,className:s,classNames:a,loading:l,isBlurred:u,fallbackSrc:c,isLoading:d,disableSkeleton:f=!!c,removeWrapper:p=!1,onError:y,onLoad:b,srcSet:w,sizes:x,crossOrigin:g,...v}=t,S=Yx({src:i,loading:l,onError:y,onLoad:b,ignoreFallback:!1,srcSet:w,sizes:x,crossOrigin:g}),k=S==="loaded"&&!d,A=S==="loading"||d,D=e.isZoomed,m=o||"img",L=Fe(r),{w:M}=h.useMemo(()=>({w:t.width?typeof t.width=="number"?`${t.width}px`:t.width:"fit-content"}),[t==null?void 0:t.width]),E=(!i||!k)&&!!c,N=A&&!f,C=h.useMemo(()=>Om({...n,showSkeleton:N}),[...Object.values(n),N]),$=ne(s,a==null?void 0:a.img),R=(I={})=>{const B=ne($,I==null?void 0:I.className);return{src:i,ref:L,"data-loaded":H(k),className:C.img({class:B}),loading:l,srcSet:w,sizes:x,crossOrigin:g,...v}},_=h.useCallback(()=>{const I=E?{backgroundImage:`url(${c})`}:{};return{className:C.wrapper({class:a==null?void 0:a.wrapper}),style:{...I,maxWidth:M}}},[C,E,c,a==null?void 0:a.wrapper]),j=h.useCallback(()=>({src:i,"aria-hidden":H(!0),className:C.blurredImg({class:a==null?void 0:a.blurredImg})}),[C,i,a==null?void 0:a.blurredImg]);return{Component:m,domRef:L,slots:C,classNames:a,isBlurred:u,disableSkeleton:f,fallbackSrc:c,removeWrapper:p,isZoomed:D,isLoading:A,getImgProps:R,getWrapperProps:_,getBlurredImgProps:j}}var w4=he((e,t)=>{const{Component:n,domRef:r,slots:o,classNames:i,isBlurred:s,isZoomed:a,fallbackSrc:l,removeWrapper:u,disableSkeleton:c,getImgProps:d,getWrapperProps:f,getBlurredImgProps:p}=W7({...e,ref:t}),y=P.jsx(n,{ref:r,...d()});if(u)return y;const b=P.jsx("div",{className:o.zoomedWrapper({class:i==null?void 0:i.zoomedWrapper}),children:y});return s?P.jsxs("div",{...f(),children:[a?b:y,h.cloneElement(y,p())]}):a||!c||l?P.jsxs("div",{...f(),children:[" ",a?b:y]}):y});w4.displayName="NextUI.Image";var jp=w4,[U7,_p]=Yo({name:"NavbarContext",strict:!0,errorMessage:"useNavbarContext: `context` is undefined. Seems you forgot to wrap component within "}),H7={enter:{height:"calc(100vh - var(--navbar-height) - 1px)",transition:{duration:.3,easings:"easeOut"}},exit:{height:0,transition:{duration:.25,easings:"easeIn"}}},C4=he((e,t)=>{var n,r;const{className:o,children:i,portalContainer:s,motionProps:a,style:l,...u}=e,c=Fe(t),{slots:d,isMenuOpen:f,height:p,disableAnimation:y,classNames:b}=_p(),w=ne(b==null?void 0:b.menu,o),x=h.useCallback(({children:v})=>P.jsx(Pw,{forwardProps:!0,enabled:f,removeScrollBar:!1,children:v}),[f]),g=y?P.jsx(x,{children:P.jsx("ul",{ref:c,className:(n=d.menu)==null?void 0:n.call(d,{class:w}),"data-open":H(f),style:{"--navbar-height":p},...u,children:i})}):P.jsx(ks,{mode:"wait",children:f?P.jsx(x,{children:P.jsx(ur.ul,{ref:c,layoutScroll:!0,animate:"enter",className:(r=d.menu)==null?void 0:r.call(d,{class:w}),"data-open":H(f),exit:"exit",initial:"exit",style:{"--navbar-height":p,...l},variants:H7,...Y(a,u),children:i})}):null});return P.jsx(lp,{portalContainer:s,children:g})});C4.displayName="NextUI.NavbarMenu";var G7=C4,Y7={visible:{y:0,transition:{ease:jn.easeOut}},hidden:{y:"-100%",transition:{ease:jn.easeIn}}},X7=typeof window<"u";function lv(e){return X7?e?{x:e.scrollLeft,y:e.scrollTop}:{x:window.scrollX,y:window.scrollY}:{x:0,y:0}}var Q7=e=>{const{elementRef:t,delay:n=30,callback:r,isEnabled:o}=e,i=h.useRef(o?lv(t==null?void 0:t.current):{x:0,y:0});let s=null;const a=()=>{const l=lv(t==null?void 0:t.current);typeof r=="function"&&r({prevPos:i.current,currPos:l}),i.current=l,s=null};return h.useEffect(()=>{if(!o)return;const l=()=>{n?s===null&&(s=setTimeout(a,n)):a()},u=(t==null?void 0:t.current)||window;return u.addEventListener("scroll",l),()=>u.removeEventListener("scroll",l)},[t==null?void 0:t.current,n,o]),i.current};function Z7(e){var t;const[n,r]=Qt(e,Im.variantKeys),{ref:o,as:i,parentRef:s,height:a="4rem",shouldHideOnScroll:l=!1,disableScrollHandler:u=!1,onScrollPositionChange:c,isMenuOpen:d,isMenuDefaultOpen:f,onMenuOpenChange:p=()=>{},motionProps:y,className:b,classNames:w,...x}=n,g=i||"nav",v=Fe(o),S=h.useRef(0),k=h.useRef(0),[A,D]=h.useState(!1),m=h.useCallback(_=>{p(_||!1)},[p]),[L,M]=pr(d,f,m),E=()=>{if(v.current){const _=v.current.offsetWidth;_!==S.current&&(S.current=_)}};Vy({ref:v,onResize:()=>{var _;((_=v.current)==null?void 0:_.offsetWidth)!==S.current&&(E(),M(!1))}}),h.useEffect(()=>{var _;E(),k.current=((_=v.current)==null?void 0:_.offsetHeight)||0},[]);const N=h.useMemo(()=>Im({...r,hideOnScroll:l}),[...Object.values(r),l]),C=ne(w==null?void 0:w.base,b);Q7({elementRef:s,isEnabled:l||!u,callback:({prevPos:_,currPos:j})=>{c==null||c(j.y),l&&D(I=>{const B=j.y>_.y&&j.y>k.current;return B!==I?B:I})}});const $=(_={})=>({...Y(x,_),"data-hidden":H(A),"data-menu-open":H(L),ref:v,className:N.base({class:ne(C,_==null?void 0:_.className)}),style:{"--navbar-height":a,...x==null?void 0:x.style,..._==null?void 0:_.style}}),R=(_={})=>({..._,"data-menu-open":H(L),className:N.wrapper({class:ne(w==null?void 0:w.wrapper,_==null?void 0:_.className)})});return{Component:g,slots:N,domRef:v,height:a,isHidden:A,disableAnimation:(t=e.disableAnimation)!=null?t:!1,shouldHideOnScroll:l,isMenuOpen:L,classNames:w,setIsMenuOpen:M,motionProps:y,getBaseProps:$,getWrapperProps:R}}var S4=he((e,t)=>{const{children:n,...r}=e,o=Z7({...r,ref:t}),i=o.Component,[s,a]=c1(n,G7),l=P.jsxs(P.Fragment,{children:[P.jsx("header",{...o.getWrapperProps(),children:s}),a]});return P.jsx(U7,{value:o,children:o.shouldHideOnScroll?P.jsx(ur.nav,{animate:o.isHidden?"hidden":"visible",initial:!1,variants:Y7,...Y(o.getBaseProps(),o.motionProps),children:l}):P.jsx(i,{...o.getBaseProps(),children:l})})});S4.displayName="NextUI.Navbar";var J7=S4,P4=he((e,t)=>{var n;const{as:r,className:o,children:i,...s}=e,a=r||"div",l=Fe(t),{slots:u,classNames:c}=_p(),d=ne(c==null?void 0:c.brand,o);return P.jsx(a,{ref:l,className:(n=u.brand)==null?void 0:n.call(u,{class:d}),...s,children:i})});P4.displayName="NextUI.NavbarBrand";var q7=P4,$4=he((e,t)=>{var n;const{as:r,className:o,children:i,justify:s="start",...a}=e,l=r||"ul",u=Fe(t),{slots:c,classNames:d}=_p(),f=ne(d==null?void 0:d.content,o);return P.jsx(l,{ref:u,className:(n=c.content)==null?void 0:n.call(c,{class:f}),"data-justify":s,...a,children:i})});$4.displayName="NextUI.NavbarContent";var e9=$4;const E4=7e3;let mc=null;function gc(e,t="assertive",n=E4){mc||(mc=new t9),mc.announce(e,t,n)}class t9{createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=E4){if(!this.node)return;let o=document.createElement("div");o.textContent=t,n==="assertive"?this.assertiveLog.appendChild(o):this.politeLog.appendChild(o),t!==""&&setTimeout(()=>{o.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&(this.politeLog.innerHTML=""))}constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}}class Qd{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return(n==null?void 0:n.childNodes)||[]}constructor(t){this.keyMap=new Map,this.iterable=t;let n=i=>{if(this.keyMap.set(i.key,i),i.childNodes&&i.type==="section")for(let s of i.childNodes)n(s)};for(let i of t)n(i);let r,o=0;for(let[i,s]of this.keyMap)r?(r.nextKey=i,s.prevKey=r.key):(this.firstKey=i,s.prevKey=void 0),s.type==="item"&&(s.index=o++),r=s,r.nextKey=void 0;this.lastKey=r==null?void 0:r.key}}function k4(e){let{filter:t}=e,n=zx(e),r=h.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=h.useCallback(u=>t?new Qd(t(u)):new Qd(u),[t]),i=h.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),s=Kx(e,o,i),a=h.useMemo(()=>new Wx(s,n),[s,n]);const l=h.useRef(null);return h.useEffect(()=>{if(n.focusedKey!=null&&!s.getItem(n.focusedKey)){const u=l.current.getItem(n.focusedKey),c=[...l.current.getKeys()].map(b=>{const w=l.current.getItem(b);return w.type==="item"?w:null}).filter(b=>b!==null),d=[...s.getKeys()].map(b=>{const w=s.getItem(b);return w.type==="item"?w:null}).filter(b=>b!==null),f=c.length-d.length;let p=Math.min(f>1?Math.max(u.index-f+1,0):u.index,d.length-1),y;for(;p>=0;){if(!a.isDisabled(d[p].key)){y=d[p];break}pu.index&&(p=u.index),p--)}n.setFocusedKey(y?y.key:null)}l.current=s},[s,a,n,n.focusedKey]),{collection:s,disabledKeys:r,selectionManager:a}}function n9(e){var t;let[n,r]=pr(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),o=h.useMemo(()=>n!=null?[n]:[],[n]),{collection:i,disabledKeys:s,selectionManager:a}=k4({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:u=>{var c;let d=(c=u.values().next().value)!==null&&c!==void 0?c:null;d===n&&e.onSelectionChange&&e.onSelectionChange(d),r(d)}}),l=n!=null?i.getItem(n):null;return{collection:i,disabledKeys:s,selectionManager:a,selectedKey:n,setSelectedKey:r,selectedItem:l}}function r9(e={}){const{domRef:t,isEnabled:n=!0,overflowCheck:r="vertical",visibility:o="auto",offset:i=0,onVisibilityChange:s,updateDeps:a=[]}=e,l=h.useRef(o);h.useEffect(()=>{const u=t==null?void 0:t.current;if(!u||!n)return;const c=(p,y,b,w,x)=>{if(o==="auto"){const g=`${w}${i5(x)}Scroll`;y&&b?(u.dataset[g]="true",u.removeAttribute(`data-${w}-scroll`),u.removeAttribute(`data-${x}-scroll`)):(u.dataset[`${w}Scroll`]=y.toString(),u.dataset[`${x}Scroll`]=b.toString(),u.removeAttribute(`data-${w}-${x}-scroll`))}else{const g=y&&b?"both":y?w:b?x:"none";g!==l.current&&(s==null||s(g),l.current=g)}},d=()=>{const p=[{type:"vertical",prefix:"top",suffix:"bottom"},{type:"horizontal",prefix:"left",suffix:"right"}];for(const{type:y,prefix:b,suffix:w}of p)if(r===y||r==="both"){const x=y==="vertical"?u.scrollTop>i:u.scrollLeft>i,g=y==="vertical"?u.scrollTop+u.clientHeight+i{["top","bottom","topBottom","left","right","leftRight"].forEach(p=>{u.removeAttribute(`data-${p}-scroll`)})};return d(),u.addEventListener("scroll",d),o!=="auto"&&(f(),o==="both"?(u.dataset.topBottomScroll=String(r==="vertical"),u.dataset.leftRightScroll=String(r==="horizontal")):(u.dataset.topBottomScroll="false",u.dataset.leftRightScroll="false",["top","bottom","left","right"].forEach(p=>{u.dataset[`${p}Scroll`]=String(o===p)}))),()=>{u.removeEventListener("scroll",d),f()}},[...a,n,o,r,s,t])}function o9(e){var t;const[n,r]=Qt(e,Rm.variantKeys),{ref:o,as:i,children:s,className:a,style:l,size:u=40,offset:c=0,visibility:d="auto",isEnabled:f=!0,onVisibilityChange:p,...y}=n,b=i||"div",w=Fe(o);r9({domRef:w,offset:c,visibility:d,isEnabled:f,onVisibilityChange:p,updateDeps:[s],overflowCheck:(t=e.orientation)!=null?t:"vertical"});const x=h.useMemo(()=>Rm({...r,className:a}),[...Object.values(r),a]);return{Component:b,styles:x,domRef:w,children:s,getBaseProps:(v={})=>{var S;return{ref:w,className:x,"data-orientation":(S=e.orientation)!=null?S:"vertical",style:{"--scroll-shadow-size":`${u}px`,...l,...v.style},...y,...v}}}}var T4=he((e,t)=>{const{Component:n,children:r,getBaseProps:o}=o9({...e,ref:t});return P.jsx(n,{...o(),children:r})});T4.displayName="NextUI.ScrollShadow";var i9=T4;function s9(e){const{isSelected:t,disableAnimation:n,...r}=e;return P.jsx("svg",{"aria-hidden":"true","data-selected":t,role:"presentation",viewBox:"0 0 17 18",...r,children:P.jsx("polyline",{fill:"none",points:"1 9 7 14 15 4",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,style:n?{}:{transition:"stroke-dashoffset 200ms ease"}})})}const iu=new WeakMap;function a9(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function A4(e,t){let n=iu.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${a9(t)}`}function l9(e,t,n){let r=hr(e,{labelable:!0}),o=e.selectionBehavior||"toggle",i=e.linkBehavior||(o==="replace"?"action":"override");o==="toggle"&&i==="action"&&(i="override");let{listProps:s}=h1({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:i}),{focusWithinProps:a}=Cs({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=sn(e.id);iu.set(t,{id:l,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:i});let{labelProps:u,fieldProps:c}=uw({...e,id:l,labelElementType:"span"});return{labelProps:u,listBoxProps:Y(r,a,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...Y(c,s)})}}function u9(e,t,n){var r;let{key:o}=e,i=iu.get(t);var s;let a=(s=e.isDisabled)!==null&&s!==void 0?s:t.disabledKeys.has(o);var l;let u=(l=e.isSelected)!==null&&l!==void 0?l:t.selectionManager.isSelected(o);var c;let d=(c=e.shouldSelectOnPressUp)!==null&&c!==void 0?c:i==null?void 0:i.shouldSelectOnPressUp;var f;let p=(f=e.shouldFocusOnHover)!==null&&f!==void 0?f:i==null?void 0:i.shouldFocusOnHover;var y;let b=(y=e.shouldUseVirtualFocus)!==null&&y!==void 0?y:i==null?void 0:i.shouldUseVirtualFocus;var w;let x=(w=e.isVirtualized)!==null&&w!==void 0?w:i==null?void 0:i.isVirtualized,g=Jn(),v=Jn(),S={role:"option","aria-disabled":a||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?u:void 0};An()&&Fy()||(S["aria-label"]=e["aria-label"],S["aria-labelledby"]=g,S["aria-describedby"]=v);let k=t.collection.getItem(o);if(x){let C=Number(k==null?void 0:k.index);S["aria-posinset"]=Number.isNaN(C)?void 0:C+1,S["aria-setsize"]=Ip(t.collection)}let{itemProps:A,isPressed:D,isFocused:m,hasAction:L,allowsSelection:M}=f1({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:d,allowsDifferentPressOrigin:d&&p,isVirtualized:x,shouldUseVirtualFocus:b,isDisabled:a,onAction:i!=null&&i.onAction?()=>{var C;return i==null||(C=i.onAction)===null||C===void 0?void 0:C.call(i,o)}:void 0,linkBehavior:i==null?void 0:i.linkBehavior}),{hoverProps:E}=un({isDisabled:a||!p,onHoverStart(){Ko()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o))}}),N=hr(k==null?void 0:k.props,{isLink:!!(!(k==null||(r=k.props)===null||r===void 0)&&r.href)});return delete N.id,{optionProps:{...S,...Y(N,A,E),id:A4(t,o)},labelProps:{id:g},descriptionProps:{id:v},isFocused:m,isFocusVisible:m&&Ko(),isSelected:u,isDisabled:a,isPressed:D,allowsSelection:M,hasAction:L}}function c9(e){let{heading:t,"aria-label":n}=e,r=sn();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}function d9(e){const[t,n]=Qt(e,gl.variantKeys),{as:r,item:o,state:i,description:s,startContent:a,endContent:l,isVirtualized:u,selectedIcon:c,className:d,classNames:f,autoFocus:p,onPress:y,onClick:b,shouldHighlightOnFocus:w,hideSelectedIcon:x=!1,isReadOnly:g=!1,...v}=t,S=e.disableAnimation,k=h.useRef(null),A=r||(e.href?"a":"li"),D=typeof A=="string",{rendered:m,key:L}=o,M=i.disabledKeys.has(L)||e.isDisabled,E=i.selectionManager.selectionMode!=="none",N=f4(),{pressProps:C,isPressed:$}=cp({ref:k,isDisabled:M,onPress:y}),{isHovered:R,hoverProps:_}=un({isDisabled:M}),{isFocusVisible:j,focusProps:I}=sr({autoFocus:p}),{isFocused:B,isSelected:O,optionProps:T,labelProps:F,descriptionProps:V}=u9({key:L,isDisabled:M,"aria-label":t["aria-label"],isVirtualized:u},i,k);let W=T;const U=h.useMemo(()=>gl({...n,isDisabled:M,disableAnimation:S}),[...Object.values(n),M,S]),Q=ne(f==null?void 0:f.base,d);g&&(W=s1(W));const K=h.useMemo(()=>w&&B?!0:N?R||$:R,[R,$,B,N,w]),G=(ce={})=>({ref:k,...Y({onClick:b},W,g?{}:Y(I,C),_,ln(v,{enabled:D}),ce),"data-selectable":H(E),"data-focus":H(B),"data-hover":H(K),"data-disabled":H(M),"data-selected":H(O),"data-pressed":H($),"data-focus-visible":H(j),className:U.base({class:ne(Q,ce.className)})}),Z=(ce={})=>({...Y(F,ce),"data-label":H(!0),className:U.title({class:f==null?void 0:f.title})}),re=(ce={})=>({...Y(V,ce),className:U.description({class:f==null?void 0:f.description})}),ie=(ce={})=>({...Y(ce),className:U.wrapper({class:f==null?void 0:f.wrapper})}),de=h.useCallback((ce={})=>({"aria-hidden":H(!0),"data-disabled":H(M),className:U.selectedIcon({class:f==null?void 0:f.selectedIcon}),...ce}),[M,U,f]);return{Component:A,domRef:k,slots:U,classNames:f,isSelectable:E,isSelected:O,isDisabled:M,rendered:m,description:s,startContent:a,endContent:l,selectedIcon:c,hideSelectedIcon:x,disableAnimation:S,getItemProps:G,getLabelProps:Z,getWrapperProps:ie,getDescriptionProps:re,getSelectedIconProps:de}}var M4=he((e,t)=>{const{Component:n,rendered:r,description:o,isSelectable:i,isSelected:s,isDisabled:a,selectedIcon:l,startContent:u,endContent:c,hideSelectedIcon:d,disableAnimation:f,getItemProps:p,getLabelProps:y,getWrapperProps:b,getDescriptionProps:w,getSelectedIconProps:x}=d9(e),g=h.useMemo(()=>{const v=P.jsx(s9,{disableAnimation:f,isSelected:s});return typeof l=="function"?l({icon:v,isSelected:s,isDisabled:a}):l||v},[l,s,a,f]);return P.jsxs(n,{...p(),children:[u,o?P.jsxs("div",{...b(),children:[P.jsx("span",{...y(),children:r}),P.jsx("span",{...w(),children:o})]}):P.jsx("span",{...y(),children:r}),i&&!d&&P.jsx("span",{...x(),children:g}),c]})});M4.displayName="NextUI.ListboxItem";var L4=M4,D4=he(({item:e,state:t,as:n,variant:r,color:o,disableAnimation:i,className:s,classNames:a,hideSelectedIcon:l,showDivider:u=!1,dividerProps:c={},itemClasses:d,title:f,...p},y)=>{const b=n||"li",w=h.useMemo(()=>o1(),[]),x=ne(a==null?void 0:a.base,s),g=ne(a==null?void 0:a.divider,c==null?void 0:c.className),{itemProps:v,headingProps:S,groupProps:k}=c9({heading:e.rendered,"aria-label":e["aria-label"]});return P.jsxs(b,{"data-slot":"base",...Y(v,p),className:w.base({class:x}),children:[e.rendered&&P.jsx("span",{...S,className:w.heading({class:a==null?void 0:a.heading}),"data-slot":"heading",children:e.rendered}),P.jsxs("ul",{...k,className:w.group({class:a==null?void 0:a.group}),"data-has-title":!!e.rendered,"data-slot":"group",children:[[...e.childNodes].map(A=>{const{key:D,props:m}=A;let L=P.jsx(L4,{classNames:d,color:o,disableAnimation:i,hideSelectedIcon:l,item:A,state:t,variant:r,...m},D);return A.wrapper&&(L=A.wrapper(L)),L}),u&&P.jsx(Hx,{as:"li",className:w.divider({class:g}),...c})]})]},e.key)});D4.displayName="NextUI.ListboxSection";var f9=D4;function p9(e){const{ref:t,as:n,state:r,variant:o,color:i,onAction:s,children:a,onSelectionChange:l,disableAnimation:u,itemClasses:c,className:d,topContent:f,bottomContent:p,emptyContent:y="No items.",hideSelectedIcon:b=!1,hideEmptyContent:w=!1,shouldHighlightOnFocus:x=!1,classNames:g,...v}=e,S=n||"ul",k=typeof S=="string",A=Fe(t),D=k4({...e,children:a,onSelectionChange:l}),m=r||D,{listBoxProps:L}=l9({...e,onAction:s},m,A),M=h.useMemo(()=>r1({className:d}),[,d]),E=ne(g==null?void 0:g.base,d);return{Component:S,state:m,variant:o,color:i,slots:M,classNames:g,topContent:f,bottomContent:p,emptyContent:y,hideEmptyContent:w,shouldHighlightOnFocus:x,hideSelectedIcon:b,disableAnimation:u,className:d,itemClasses:c,getBaseProps:(R={})=>({ref:A,"data-slot":"base",className:M.base({class:E}),...ln(v,{enabled:k}),...R}),getListProps:(R={})=>({"data-slot":"list",className:M.list({class:g==null?void 0:g.list}),...L,...R}),getEmptyContentProps:(R={})=>({"data-slot":"empty-content",children:y,className:M.emptyContent({class:g==null?void 0:g.emptyContent}),...R})}}function Bp(e,t){const{Component:n,state:r,color:o,variant:i,itemClasses:s,getBaseProps:a,topContent:l,bottomContent:u,hideEmptyContent:c,hideSelectedIcon:d,shouldHighlightOnFocus:f,disableAnimation:p,getEmptyContentProps:y,getListProps:b}=p9({...e,ref:t}),w=P.jsxs(n,{...b(),children:[!r.collection.size&&!c&&P.jsx("li",{children:P.jsx("div",{...y()})}),[...r.collection].map(x=>{var g;const v={color:o,item:x,state:r,variant:i,disableAnimation:p,hideSelectedIcon:d,...x.props};if(x.type==="section")return P.jsx(f9,{...v,itemClasses:s},x.key);let S=P.jsx(L4,{...v,classNames:Y(s,(g=x.props)==null?void 0:g.classNames),shouldHighlightOnFocus:f},x.key);return x.wrapper&&(S=x.wrapper(S)),S})]});return P.jsxs("div",{...a(),children:[l,w,u]})}Bp.displayName="NextUI.Listbox";var h9=he(Bp);Bp.displayName="NextUI.Listbox";var m9=Vx,g9=m9;function v9(e){return e&&e.__esModule?e.default:e}var N4={},I4={};I4={buttonLabel:"عرض المقترحات",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} خيار`,other:()=>`${t.number(e.optionCount)} خيارات`})} متاحة.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`المجموعة المدخلة ${e.groupTitle}, مع ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} خيار`,other:()=>`${t.number(e.groupCount)} خيارات`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", محدد",other:""},e.isSelected)}`,listboxLabel:"مقترحات",selectedAnnouncement:e=>`${e.optionText}، محدد`};var R4={};R4={buttonLabel:"Покажи предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} опция`,other:()=>`${t.number(e.optionCount)} опции`})} на разположение.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Въведена група ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} опция`,other:()=>`${t.number(e.groupCount)} опции`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", избрани",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, избрани`};var O4={};O4={buttonLabel:"Zobrazit doporučení",countAnnouncement:(e,t)=>`K dispozici ${t.plural(e.optionCount,{one:()=>`je ${t.number(e.optionCount)} možnost`,other:()=>`jsou/je ${t.number(e.optionCount)} možnosti/-í`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina „${e.groupTitle}“ ${t.plural(e.groupCount,{one:()=>`s ${t.number(e.groupCount)} možností`,other:()=>`se ${t.number(e.groupCount)} možnostmi`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:" (vybráno)",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybráno`};var F4={};F4={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} mulighed tilgængelig`,other:()=>`${t.number(e.optionCount)} muligheder tilgængelige`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angivet gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} mulighed`,other:()=>`${t.number(e.groupCount)} muligheder`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var j4={};j4={buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} Option`,other:()=>`${t.number(e.optionCount)} Optionen`})} verfügbar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Eingetretene Gruppe ${e.groupTitle}, mit ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} Option`,other:()=>`${t.number(e.groupCount)} Optionen`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", ausgewählt",other:""},e.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:e=>`${e.optionText}, ausgewählt`};var _4={};_4={buttonLabel:"Προβολή προτάσεων",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} επιλογή`,other:()=>`${t.number(e.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Εισαγμένη ομάδα ${e.groupTitle}, με ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} επιλογή`,other:()=>`${t.number(e.groupCount)} επιλογές`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", επιλεγμένο",other:""},e.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:e=>`${e.optionText}, επιλέχθηκε`};var B4={};B4={focusAnnouncement:(e,t)=>`${t.select({true:()=>`Entered group ${e.groupTitle}, with ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"};var V4={};V4={buttonLabel:"Mostrar sugerencias",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opción`,other:()=>`${t.number(e.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Se ha unido al grupo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opción`,other:()=>`${t.number(e.groupCount)} opciones`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seleccionado",other:""},e.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:e=>`${e.optionText}, seleccionado`};var K4={};K4={buttonLabel:"Kuva soovitused",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} valik`,other:()=>`${t.number(e.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Sisestatud rühm ${e.groupTitle}, valikuga ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} valik`,other:()=>`${t.number(e.groupCount)} valikud`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valitud",other:""},e.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:e=>`${e.optionText}, valitud`};var z4={};z4={buttonLabel:"Näytä ehdotukset",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} vaihtoehto`,other:()=>`${t.number(e.optionCount)} vaihtoehdot`})} saatavilla.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Mentiin ryhmään ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} vaihtoehdon`,other:()=>`${t.number(e.groupCount)} vaihtoehdon`})} kanssa.`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valittu",other:""},e.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:e=>`${e.optionText}, valittu`};var W4={};W4={buttonLabel:"Afficher les suggestions",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groupe ${e.groupTitle} saisi, avec ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", sélectionné(s)",other:""},e.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:e=>`${e.optionText}, sélectionné`};var U4={};U4={buttonLabel:"הצג הצעות",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`אפשרות ${t.number(e.optionCount)}`,other:()=>`${t.number(e.optionCount)} אפשרויות`})} במצב זמין.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`נכנס לקבוצה ${e.groupTitle}, עם ${t.plural(e.groupCount,{one:()=>`אפשרות ${t.number(e.groupCount)}`,other:()=>`${t.number(e.groupCount)} אפשרויות`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", נבחר",other:""},e.isSelected)}`,listboxLabel:"הצעות",selectedAnnouncement:e=>`${e.optionText}, נבחר`};var H4={};H4={buttonLabel:"Prikaži prijedloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} opcije/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", odabranih",other:""},e.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:e=>`${e.optionText}, odabrano`};var G4={};G4={buttonLabel:"Javaslatok megjelenítése",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} lehetőség`,other:()=>`${t.number(e.optionCount)} lehetőség`})} áll rendelkezésre.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Belépett a(z) ${e.groupTitle} csoportba, amely ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} lehetőséget`,other:()=>`${t.number(e.groupCount)} lehetőséget`})} tartalmaz. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", kijelölve",other:""},e.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:e=>`${e.optionText}, kijelölve`};var Y4={};Y4={buttonLabel:"Mostra suggerimenti",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opzione disponibile`,other:()=>`${t.number(e.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingresso nel gruppo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opzione`,other:()=>`${t.number(e.groupCount)} opzioni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selezionato",other:""},e.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:e=>`${e.optionText}, selezionato`};var X4={};X4={buttonLabel:"候補を表示",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 個のオプション`,other:()=>`${t.number(e.optionCount)} 個のオプション`})}を利用できます。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`入力されたグループ ${e.groupTitle}、${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 個のオプション`,other:()=>`${t.number(e.groupCount)} 個のオプション`})}を含む。`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:"、選択済み",other:""},e.isSelected)}`,listboxLabel:"候補",selectedAnnouncement:e=>`${e.optionText}、選択済み`};var Q4={};Q4={buttonLabel:"제안 사항 표시",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)}개 옵션`,other:()=>`${t.number(e.optionCount)}개 옵션`})}을 사용할 수 있습니다.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`입력한 그룹 ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)}개 옵션`,other:()=>`${t.number(e.groupCount)}개 옵션`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 선택됨",other:""},e.isSelected)}`,listboxLabel:"제안",selectedAnnouncement:e=>`${e.optionText}, 선택됨`};var Z4={};Z4={buttonLabel:"Rodyti pasiūlymus",countAnnouncement:(e,t)=>`Yra ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} parinktis`,other:()=>`${t.number(e.optionCount)} parinktys (-ių)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Įvesta grupė ${e.groupTitle}, su ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} parinktimi`,other:()=>`${t.number(e.groupCount)} parinktimis (-ių)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", pasirinkta",other:""},e.isSelected)}`,listboxLabel:"Pasiūlymai",selectedAnnouncement:e=>`${e.optionText}, pasirinkta`};var J4={};J4={buttonLabel:"Rādīt ieteikumus",countAnnouncement:(e,t)=>`Pieejamo opciju skaits: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcijas`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ievadīta grupa ${e.groupTitle}, ar ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opciju`,other:()=>`${t.number(e.groupCount)} opcijām`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", atlasīta",other:""},e.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:e=>`${e.optionText}, atlasīta`};var q4={};q4={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angitt gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativer`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var e3={};e3={buttonLabel:"Suggesties weergeven",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} optie`,other:()=>`${t.number(e.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groep ${e.groupTitle} ingevoerd met ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} optie`,other:()=>`${t.number(e.groupCount)} opties`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", geselecteerd",other:""},e.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:e=>`${e.optionText}, geselecteerd`};var t3={};t3={buttonLabel:"Wyświetlaj sugestie",countAnnouncement:(e,t)=>`dostępna/dostępne(-nych) ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcja`,other:()=>`${t.number(e.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Dołączono do grupy ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcją`,other:()=>`${t.number(e.groupCount)} opcjami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", wybrano",other:""},e.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:e=>`${e.optionText}, wybrano`};var n3={};n3={buttonLabel:"Mostrar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo inserido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var r3={};r3={buttonLabel:"Apresentar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo introduzido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var o3={};o3={buttonLabel:"Afișare sugestii",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opțiune`,other:()=>`${t.number(e.optionCount)} opțiuni`})} disponibile.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grup ${e.groupTitle} introdus, cu ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opțiune`,other:()=>`${t.number(e.groupCount)} opțiuni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selectat",other:""},e.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:e=>`${e.optionText}, selectat`};var i3={};i3={buttonLabel:"Показать предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметров`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введенная группа ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметром`,other:()=>`${t.number(e.groupCount)} параметрами`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", выбранными",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, выбрано`};var s3={};s3={buttonLabel:"Zobraziť návrhy",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} možnosť`,other:()=>`${t.number(e.optionCount)} možnosti/-í`})} k dispozícii.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} možnosťou`,other:()=>`${t.number(e.groupCount)} možnosťami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", vybraté",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybraté`};var a3={};a3={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Na voljo je ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Vnesena skupina ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcija`,other:()=>`${t.number(e.groupCount)} opcije`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izbrano",other:""},e.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:e=>`${e.optionText}, izbrano`};var l3={};l3={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena grupa ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} optione/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izabranih",other:""},e.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:e=>`${e.optionText}, izabrano`};var u3={};u3={buttonLabel:"Visa förslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativ`})} tillgängliga.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingick i gruppen ${e.groupTitle} med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativ`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valda",other:""},e.isSelected)}`,listboxLabel:"Förslag",selectedAnnouncement:e=>`${e.optionText}, valda`};var c3={};c3={buttonLabel:"Önerileri göster",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} seçenek`,other:()=>`${t.number(e.optionCount)} seçenekler`})} kullanılabilir.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Girilen grup ${e.groupTitle}, ile ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} seçenek`,other:()=>`${t.number(e.groupCount)} seçenekler`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seçildi",other:""},e.isSelected)}`,listboxLabel:"Öneriler",selectedAnnouncement:e=>`${e.optionText}, seçildi`};var d3={};d3={buttonLabel:"Показати пропозиції",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введена група ${e.groupTitle}, з ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметр`,other:()=>`${t.number(e.groupCount)} параметри(-ів)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", вибрано",other:""},e.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:e=>`${e.optionText}, вибрано`};var f3={};f3={buttonLabel:"显示建议",countAnnouncement:(e,t)=>`有 ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 个选项`,other:()=>`${t.number(e.optionCount)} 个选项`})}可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`进入了 ${e.groupTitle} 组,其中有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 个选项`,other:()=>`${t.number(e.groupCount)} 个选项`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已选择",other:""},e.isSelected)}`,listboxLabel:"建议",selectedAnnouncement:e=>`${e.optionText}, 已选择`};var p3={};p3={buttonLabel:"顯示建議",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 選項`,other:()=>`${t.number(e.optionCount)} 選項`})} 可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`輸入的群組 ${e.groupTitle}, 有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 選項`,other:()=>`${t.number(e.groupCount)} 選項`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已選取",other:""},e.isSelected)}`,listboxLabel:"建議",selectedAnnouncement:e=>`${e.optionText}, 已選取`};N4={"ar-AE":I4,"bg-BG":R4,"cs-CZ":O4,"da-DK":F4,"de-DE":j4,"el-GR":_4,"en-US":B4,"es-ES":V4,"et-EE":K4,"fi-FI":z4,"fr-FR":W4,"he-IL":U4,"hr-HR":H4,"hu-HU":G4,"it-IT":Y4,"ja-JP":X4,"ko-KR":Q4,"lt-LT":Z4,"lv-LV":J4,"nb-NO":q4,"nl-NL":e3,"pl-PL":t3,"pt-BR":n3,"pt-PT":r3,"ro-RO":o3,"ru-RU":i3,"sk-SK":s3,"sl-SI":a3,"sr-SP":l3,"sv-SE":u3,"tr-TR":c3,"uk-UA":d3,"zh-CN":f3,"zh-TW":p3};function y9(e,t){let{buttonRef:n,popoverRef:r,inputRef:o,listBoxRef:i,keyboardDelegate:s,shouldFocusWrap:a,isReadOnly:l,isDisabled:u}=e,c=np(v9(N4)),{menuTriggerProps:d,menuProps:f}=c4({type:"listbox",isDisabled:u||l},t,n);iu.set(t,{id:f.id});let p=h.useMemo(()=>s||new p1(t.collection,t.disabledKeys,i),[s,t.collection,t.disabledKeys,i]),{collectionProps:y}=d1({selectionManager:t.selectionManager,keyboardDelegate:p,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:a,ref:o,isVirtualized:!0}),b=Gl(),w=K=>{switch(K.key){case"Enter":case"Tab":if(t.isOpen&&K.key==="Enter"&&K.preventDefault(),t.isOpen&&t.selectionManager.focusedKey!=null&&t.selectionManager.isLink(t.selectionManager.focusedKey)){if(K.key==="Enter"){let G=i.current.querySelector(`[data-key="${t.selectionManager.focusedKey}"]`);G instanceof HTMLAnchorElement&&b.open(G,K)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&K.continuePropagation(),t.revert();break;case"ArrowDown":t.open("first","manual");break;case"ArrowUp":t.open("last","manual");break;case"ArrowLeft":case"ArrowRight":t.selectionManager.setFocusedKey(null);break}},x=K=>{var G;K.relatedTarget===(n==null?void 0:n.current)||!((G=r.current)===null||G===void 0)&&G.contains(K.relatedTarget)||(e.onBlur&&e.onBlur(K),t.setFocused(!1))},g=K=>{t.isFocused||(e.onFocus&&e.onFocus(K),t.setFocused(!0))},{isInvalid:v,validationErrors:S,validationDetails:k}=t.displayValidation,{labelProps:A,inputProps:D,descriptionProps:m,errorMessageProps:L}=fw({...e,onChange:t.setInputValue,onKeyDown:!l&&zr(t.isOpen&&y.onKeyDown,w,e.onKeyDown),onBlur:x,value:t.inputValue,onFocus:g,autoComplete:"off",validate:void 0,[Wd]:t},o),M=K=>{K.pointerType==="touch"&&(o.current.focus(),t.toggle(null,"manual"))},E=K=>{K.pointerType!=="touch"&&(o.current.focus(),t.toggle(K.pointerType==="keyboard"||K.pointerType==="virtual"?"first":null,"manual"))},N=ol({id:d.id,"aria-label":c.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||A.id}),C=ol({id:f.id,"aria-label":c.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||A.id}),$=h.useRef(0),R=K=>{if(u||l)return;if(K.timeStamp-$.current<500){K.preventDefault(),o.current.focus();return}let G=K.target.getBoundingClientRect(),Z=K.changedTouches[0],re=Math.ceil(G.left+.5*G.width),ie=Math.ceil(G.top+.5*G.height);Z.clientX===re&&Z.clientY===ie&&(K.preventDefault(),o.current.focus(),t.toggle(null,"manual"),$.current=K.timeStamp)},_=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var j;let I=(j=_==null?void 0:_.parentKey)!==null&&j!==void 0?j:null;var B;let O=(B=t.selectionManager.focusedKey)!==null&&B!==void 0?B:null,T=h.useRef(I),F=h.useRef(O);h.useEffect(()=>{if(Sa()&&_!=null&&O!==F.current){let K=t.selectionManager.isSelected(O),G=I!=null?t.collection.getItem(I):null,Z=(G==null?void 0:G["aria-label"])||(typeof(G==null?void 0:G.rendered)=="string"?G.rendered:"")||"",re=c.format("focusAnnouncement",{isGroupChange:G&&I!==T.current,groupTitle:Z,groupCount:G?[...ru(G,t.collection)].length:0,optionText:_["aria-label"]||_.textValue||"",isSelected:K});gc(re)}T.current=I,F.current=O});let V=Ip(t.collection),W=h.useRef(V),U=h.useRef(t.isOpen);h.useEffect(()=>{let K=t.isOpen!==U.current&&(t.selectionManager.focusedKey==null||Sa());if(t.isOpen&&(K||V!==W.current)){let G=c.format("countAnnouncement",{optionCount:V});gc(G)}W.current=V,U.current=t.isOpen});let Q=h.useRef(t.selectedKey);return h.useEffect(()=>{if(Sa()&&t.isFocused&&t.selectedItem&&t.selectedKey!==Q.current){let K=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",G=c.format("selectedAnnouncement",{optionText:K});gc(G)}Q.current=t.selectedKey}),h.useEffect(()=>{if(t.isOpen)return Ub([o.current,r.current])},[t.isOpen,o,r]),{labelProps:A,buttonProps:{...d,...N,excludeFromTabOrder:!0,onPress:M,onPressStart:E,isDisabled:u||l},inputProps:Y(D,{role:"combobox","aria-expanded":d["aria-expanded"],"aria-controls":t.isOpen?f.id:void 0,"aria-autocomplete":"list","aria-activedescendant":_?A4(t,_.key):void 0,onTouchEnd:R,autoCorrect:"off",spellCheck:"false"}),listBoxProps:Y(f,C,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:m,errorMessageProps:L,isInvalid:v,validationErrors:S,validationDetails:k}}function b9(e){var t,n;let{defaultFilter:r,menuTrigger:o="input",allowsEmptyCollection:i=!1,allowsCustomValue:s,shouldCloseOnBlur:a=!0}=e,[l,u]=h.useState(!1),[c,d]=h.useState(!1),f=q=>{e.onSelectionChange&&e.onSelectionChange(q),q===w&&(T(),I())};var p;let{collection:y,selectionManager:b,selectedKey:w,setSelectedKey:x,selectedItem:g,disabledKeys:v}=n9({...e,onSelectionChange:f,items:(p=e.items)!==null&&p!==void 0?p:e.defaultItems});var S,k;let[A,D]=pr(e.inputValue,(k=(S=e.defaultInputValue)!==null&&S!==void 0?S:(t=y.getItem(w))===null||t===void 0?void 0:t.textValue)!==null&&k!==void 0?k:"",e.onInputChange),m=y,L=h.useMemo(()=>e.items!=null||!r?y:x9(y,A,r),[y,A,r,e.items]),[M,E]=h.useState(L),N=h.useRef("focus"),$=b4({...e,onOpenChange:q=>{e.onOpenChange&&e.onOpenChange(q,q?N.current:void 0),b.setFocused(q),q||b.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),R=(q,se)=>{let me=se==="manual"||se==="focus"&&o==="focus";(i||L.size>0||me&&m.size>0||e.items)&&(me&&!$.isOpen&&e.items===void 0&&u(!0),N.current=se,$.open(q))},_=(q,se)=>{let me=se==="manual"||se==="focus"&&o==="focus";!(i||L.size>0||me&&m.size>0||e.items)&&!$.isOpen||(me&&!$.isOpen&&e.items===void 0&&u(!0),$.isOpen||(N.current=se),j(q))},j=h.useCallback(q=>{$.isOpen&&E(L),$.toggle(q)},[$,L]),I=h.useCallback(()=>{$.isOpen&&(E(L),$.close())},[$,L]),[B,O]=h.useState(A),T=()=>{var q,se;let me=(se=(q=y.getItem(w))===null||q===void 0?void 0:q.textValue)!==null&&se!==void 0?se:"";O(me),D(me)};var F,V;let W=h.useRef((V=(F=e.selectedKey)!==null&&F!==void 0?F:e.defaultSelectedKey)!==null&&V!==void 0?V:null);var U;let Q=h.useRef((U=(n=y.getItem(w))===null||n===void 0?void 0:n.textValue)!==null&&U!==void 0?U:"");h.useEffect(()=>{var q;c&&(L.size>0||i)&&!$.isOpen&&A!==B&&o!=="manual"&&R(null,"input"),!l&&!i&&$.isOpen&&L.size===0&&I(),w!=null&&w!==W.current&&I(),A!==B&&(b.setFocusedKey(null),u(!1),A===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&x(null)),w!==W.current&&(e.inputValue===void 0||e.selectedKey===void 0)?T():B!==A&&O(A);var se;let me=(se=(q=y.getItem(w))===null||q===void 0?void 0:q.textValue)!==null&&se!==void 0?se:"";!c&&w!=null&&e.inputValue===void 0&&w===W.current&&Q.current!==me&&(O(me),D(me)),W.current=w,Q.current=me});let K=lw({...e,value:h.useMemo(()=>({inputValue:A,selectedKey:w}),[A,w])}),G=()=>{s&&w==null?Z():re()},Z=()=>{W.current=null,x(null),I()},re=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var q;e.onSelectionChange(w);var se;let me=(se=(q=y.getItem(w))===null||q===void 0?void 0:q.textValue)!==null&&se!==void 0?se:"";O(me),I()}else T(),I()};const ie=()=>{if(s){var q,se;const me=(se=(q=y.getItem(w))===null||q===void 0?void 0:q.textValue)!==null&&se!==void 0?se:"";A===me?re():Z()}else re()};let de=()=>{$.isOpen&&b.focusedKey!=null?w===b.focusedKey?re():x(b.focusedKey):ie()},ce=h.useRef(A),pe=q=>{q?(ce.current=A,o==="focus"&&R(null,"focus")):(a&&ie(),A!==ce.current&&K.commitValidation()),d(q)},bt=h.useMemo(()=>$.isOpen?l?m:L:M,[$.isOpen,m,L,l,M]);return{...K,...$,toggle:_,open:R,close:ie,selectionManager:b,selectedKey:w,setSelectedKey:x,disabledKeys:v,isFocused:c,setFocused:pe,selectedItem:g,collection:bt,inputValue:A,setInputValue:D,commit:de,revert:G}}function x9(e,t,n){return new Qd(h3(e,e,t,n))}function h3(e,t,n,r){let o=[];for(let i of t)if(i.type==="section"&&i.hasChildNodes){let s=h3(e,ru(i,e),n,r);[...s].some(a=>a.type==="item")&&o.push({...i,childNodes:s})}else i.type==="item"&&r(i.textValue,n)?o.push({...i}):i.type!=="item"&&o.push({...i});return o}function w9(e){var t,n,r;const[o,i]=Qt(e,_m.variantKeys),s=(t=e.disableAnimation)!=null?t:!1,a=e.disableClearable!==void 0?!e.disableClearable:e.isClearable,{ref:l,as:u,label:c,isLoading:d,menuTrigger:f="focus",filterOptions:p={sensitivity:"base"},children:y,selectorIcon:b,clearIcon:w,scrollRef:x,defaultFilter:g,endContent:v,allowsEmptyCollection:S=!0,shouldCloseOnBlur:k=!0,popoverProps:A={},inputProps:D={},scrollShadowProps:m={},listboxProps:L={},selectorButtonProps:M={},clearButtonProps:E={},showScrollIndicators:N=!0,allowsCustomValue:C=!1,className:$,classNames:R,onOpenChange:_,onClose:j,...I}=o,{contains:B}=oP(p),O=b9({...e,children:y,menuTrigger:f,shouldCloseOnBlur:k,allowsEmptyCollection:S,defaultFilter:g&&typeof g=="function"?g:B,onOpenChange:(Pe,_e)=>{_==null||_(Pe,_e),Pe||j==null||j()}}),T=h.useRef(null),F=h.useRef(null),V=h.useRef(null),W=h.useRef(null),U=Fe(l),Q=Fe(x),K={inputProps:Y({label:c,ref:U,wrapperRef:F,onClick:()=>{!O.isOpen&&O.selectedItem&&O.open()},isClearable:!1,disableAnimation:s},D),popoverProps:Y({offset:5,placement:"bottom",triggerScaleOnOpen:!1,disableAnimation:s},A),scrollShadowProps:Y({ref:Q,isEnabled:(n=N&&O.collection.size>5)!=null?n:!0,hideScrollBar:!0,offset:15},m),listboxProps:Y({hideEmptyContent:C,emptyContent:"No results found.",disableAnimation:s},L),selectorButtonProps:Y({isLoading:d,size:"sm",variant:"light",radius:"full",color:e!=null&&e.isInvalid?"danger":e==null?void 0:e.color,isIconOnly:!0,disableAnimation:s},M),clearButtonProps:Y({size:"sm",variant:"light",radius:"full",color:e!=null&&e.isInvalid?"danger":e==null?void 0:e.color,isIconOnly:!0,disableAnimation:s},E)},G=ne(R==null?void 0:R.base,$),Z=(r=K.listboxProps)!=null&&r.hideEmptyContent?O.isOpen&&!!O.collection.size:O.isOpen;h.useEffect(()=>{if(Z&&W.current&&F.current){let Pe=F.current.getBoundingClientRect(),_e=W.current;_e.style.width=Pe.width+"px"}},[Z]),h.useEffect(()=>{!Z&&!O.selectedItem&&U.current&&!C&&U.current.blur()},[Z,C]);const{buttonProps:re,inputProps:ie,listBoxProps:de}=y9({...e,inputRef:U,buttonRef:T,listBoxRef:V,popoverRef:W},O),ce=u||"div",pe=h.useMemo(()=>_m({...i,isClearable:a,disableAnimation:s,className:$}),[...Object.values(i),a,s,$]),bt=h.useCallback(()=>{O.setInputValue(""),O.setSelectedKey(null)},[O]),q=h.useCallback(Pe=>{var _e;(_e=U.current)==null||_e.focus(),O.setFocused(Pe)},[O,U]);return{Component:ce,inputRef:U,label:c,state:O,slots:pe,classNames:R,isLoading:d,clearIcon:w,isOpen:Z,endContent:v,isClearable:a,disableAnimation:s,allowsCustomValue:C,selectorIcon:b,getBaseProps:()=>({"data-invalid":H(e==null?void 0:e.isInvalid),"data-open":H(O.isOpen),className:pe.base({class:G})}),getInputProps:()=>({...K.inputProps,...I,...ie,onClick:zr(K.inputProps.onClick,I.onClick)}),getListBoxProps:()=>({state:O,ref:V,shouldHighlightOnFocus:!0,...Y(K.listboxProps,de)}),getPopoverProps:(Pe={})=>{var _e,ge;return{state:O,ref:W,triggerRef:F,scrollRef:V,triggerType:"listbox",...Y(K.popoverProps,Pe),classNames:{content:pe.popoverContent({class:ne(R==null?void 0:R.popoverContent,(ge=(_e=K.popoverProps)==null?void 0:_e.classNames)==null?void 0:ge.content,Pe.className)})}}},getClearButtonProps:()=>{var Pe,_e;return{...Y(re,K.clearButtonProps),onPress:ge=>{var qo,Ms;if((Ms=(qo=K.clearButtonProps)==null?void 0:qo.onPress)==null||Ms.call(qo,ge),O.selectedItem)bt();else{const du=U.current===document.activeElement;C&&O.setInputValue(""),!du&&q(!0)}},"data-visible":!!O.selectedItem||((Pe=O.inputValue)==null?void 0:Pe.length)>0,className:pe.clearButton({class:ne(R==null?void 0:R.clearButton,(_e=K.clearButtonProps)==null?void 0:_e.className)})}},getSelectorButtonProps:()=>{var Pe;return{ref:T,...Y(re,K.selectorButtonProps),"data-open":H(O.isOpen),className:pe.selectorButton({class:ne(R==null?void 0:R.selectorButton,(Pe=K.selectorButtonProps)==null?void 0:Pe.className)})}},getListBoxWrapperProps:(Pe={})=>{var _e;return{...Y(K.scrollShadowProps,Pe),className:pe.listboxWrapper({class:ne(R==null?void 0:R.listboxWrapper,(_e=K.scrollShadowProps)==null?void 0:_e.className,Pe==null?void 0:Pe.className)})}},getEndContentWrapperProps:(Pe={})=>({className:pe.endContentWrapper({class:ne(R==null?void 0:R.endContentWrapper,Pe==null?void 0:Pe.className)}),onClick:_e=>{!(U.current===document.activeElement)&&!O.isFocused&&_e.currentTarget===_e.target&&q(!0)}})}}function m3(e,t){const{Component:n,state:r,isOpen:o,disableAnimation:i,selectorIcon:s=P.jsx(F5,{}),clearIcon:a=P.jsx(O5,{}),endContent:l,getBaseProps:u,getSelectorButtonProps:c,getInputProps:d,getListBoxProps:f,getPopoverProps:p,getClearButtonProps:y,getListBoxWrapperProps:b,getEndContentWrapperProps:w}=w9({...e,ref:t}),x=o?P.jsx(U8,{...p(),state:r,children:P.jsx(i9,{...b(),children:P.jsx(h9,{...f()})})}):null;return P.jsxs(n,{...u(),children:[P.jsx(K8,{...d(),endContent:P.jsxs("div",{...w(),children:[l||P.jsx(Io,{...y(),children:a}),P.jsx(Io,{...c(),children:s})]})}),i?x:P.jsx(ks,{children:x})]})}var C9=he(m3);m3.displayName="NextUI.Autocomplete";/** * @remix-run/router v1.14.1 * * Copyright (c) Remix Software Inc. @@ -110,7 +110,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function as(){return as=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Vp(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function P9(){return Math.random().toString(36).substr(2,8)}function cv(e,t){return{usr:e.state,key:e.key,idx:t}}function Zd(e,t,n,r){return n===void 0&&(n=null),as({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Xo(t):t,{state:n,key:t&&t.key||r||P9()})}function El(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Xo(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function $9(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=zn.Pop,l=null,u=c();u==null&&(u=0,s.replaceState(as({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function d(){a=zn.Pop;let w=c(),x=w==null?null:w-u;u=w,l&&l({action:a,location:b.location,delta:x})}function f(w,x){a=zn.Push;let g=Zd(b.location,w,x);n&&n(g,w),u=c()+1;let v=cv(g,u),S=b.createHref(g);try{s.pushState(v,"",S)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;o.location.assign(S)}i&&l&&l({action:a,location:b.location,delta:1})}function p(w,x){a=zn.Replace;let g=Zd(b.location,w,x);n&&n(g,w),u=c();let v=cv(g,u),S=b.createHref(g);s.replaceState(v,"",S),i&&l&&l({action:a,location:b.location,delta:0})}function y(w){let x=o.location.origin!=="null"?o.location.origin:o.location.href,g=typeof w=="string"?w:El(w);return ze(x,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,x)}let b={get action(){return a},get location(){return e(o,s)},listen(w){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(uv,d),l=w,()=>{o.removeEventListener(uv,d),l=null}},createHref(w){return t(o,w)},createURL:y,encodeLocation(w){let x=y(w);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:f,replace:p,go(w){return s.go(w)}};return b}var dv;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(dv||(dv={}));function E9(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Xo(t):t,o=Kp(r.pathname||"/",n);if(o==null)return null;let i=g3(e);k9(i);let s=null;for(let a=0;s==null&&a{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};l.relativePath.startsWith("/")&&(ze(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=tr([r,l.relativePath]),c=n.concat(l);i.children&&i.children.length>0&&(ze(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),g3(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:I9(u,i.index),routesMeta:c})};return e.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,s);else for(let l of v3(i.path))o(i,s,l)}),t}function v3(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=v3(r.join("/")),a=[];return a.push(...s.map(l=>l===""?i:[i,l].join("/"))),o&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function k9(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:R9(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const T9=/^:\w+$/,A9=3,M9=2,L9=1,D9=10,N9=-2,fv=e=>e==="*";function I9(e,t){let n=e.split("/"),r=n.length;return n.some(fv)&&(r+=N9),t&&(r+=M9),n.filter(o=>!fv(o)).reduce((o,i)=>o+(T9.test(i)?A9:i===""?L9:D9),r)}function R9(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function F9(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let s=0;s{let{paramName:f,isOptional:p}=c;if(f==="*"){let b=a[d]||"";s=i.slice(0,i.length-b.length).replace(/(.)\/+$/,"$1")}const y=a[d];return p&&!y?u[f]=void 0:u[f]=B9(y||"",f),u},{}),pathname:i,pathnameBase:s,pattern:e}}function j9(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Vp(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function _9(e){try{return decodeURI(e)}catch(t){return Vp(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function B9(e,t){try{return decodeURIComponent(e)}catch(n){return Vp(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function Kp(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function V9(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Xo(e):e;return{pathname:n?n.startsWith("/")?n:K9(n,t):t,search:U9(r),hash:H9(o)}}function K9(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function vc(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function z9(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function y3(e,t){let n=z9(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function b3(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Xo(e):(o=as({},e),ze(!o.pathname||!o.pathname.includes("?"),vc("?","pathname","search",o)),ze(!o.pathname||!o.pathname.includes("#"),vc("#","pathname","hash",o)),ze(!o.search||!o.search.includes("#"),vc("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,a;if(s==null)a=n;else{let d=t.length-1;if(!r&&s.startsWith("..")){let f=s.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}a=d>=0?t[d]:"/"}let l=V9(o,a),u=s&&s!=="/"&&s.endsWith("/"),c=(i||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const tr=e=>e.join("/").replace(/\/\/+/g,"/"),W9=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),U9=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,H9=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function G9(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const x3=["post","put","patch","delete"];new Set(x3);const Y9=["get",...x3];new Set(Y9);/** + */function as(){return as=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Vp(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function P9(){return Math.random().toString(36).substr(2,8)}function cv(e,t){return{usr:e.state,key:e.key,idx:t}}function Zd(e,t,n,r){return n===void 0&&(n=null),as({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Xo(t):t,{state:n,key:t&&t.key||r||P9()})}function El(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Xo(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function $9(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=zn.Pop,l=null,u=c();u==null&&(u=0,s.replaceState(as({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function d(){a=zn.Pop;let w=c(),x=w==null?null:w-u;u=w,l&&l({action:a,location:b.location,delta:x})}function f(w,x){a=zn.Push;let g=Zd(b.location,w,x);n&&n(g,w),u=c()+1;let v=cv(g,u),S=b.createHref(g);try{s.pushState(v,"",S)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;o.location.assign(S)}i&&l&&l({action:a,location:b.location,delta:1})}function p(w,x){a=zn.Replace;let g=Zd(b.location,w,x);n&&n(g,w),u=c();let v=cv(g,u),S=b.createHref(g);s.replaceState(v,"",S),i&&l&&l({action:a,location:b.location,delta:0})}function y(w){let x=o.location.origin!=="null"?o.location.origin:o.location.href,g=typeof w=="string"?w:El(w);return ze(x,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,x)}let b={get action(){return a},get location(){return e(o,s)},listen(w){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(uv,d),l=w,()=>{o.removeEventListener(uv,d),l=null}},createHref(w){return t(o,w)},createURL:y,encodeLocation(w){let x=y(w);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:f,replace:p,go(w){return s.go(w)}};return b}var dv;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(dv||(dv={}));function E9(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Xo(t):t,o=Kp(r.pathname||"/",n);if(o==null)return null;let i=g3(e);k9(i);let s=null;for(let a=0;s==null&&a{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};l.relativePath.startsWith("/")&&(ze(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=tr([r,l.relativePath]),c=n.concat(l);i.children&&i.children.length>0&&(ze(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),g3(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:I9(u,i.index),routesMeta:c})};return e.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,s);else for(let l of v3(i.path))o(i,s,l)}),t}function v3(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=v3(r.join("/")),a=[];return a.push(...s.map(l=>l===""?i:[i,l].join("/"))),o&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function k9(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:R9(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const T9=/^:\w+$/,A9=3,M9=2,L9=1,D9=10,N9=-2,fv=e=>e==="*";function I9(e,t){let n=e.split("/"),r=n.length;return n.some(fv)&&(r+=N9),t&&(r+=M9),n.filter(o=>!fv(o)).reduce((o,i)=>o+(T9.test(i)?A9:i===""?L9:D9),r)}function R9(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function O9(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let s=0;s{let{paramName:f,isOptional:p}=c;if(f==="*"){let b=a[d]||"";s=i.slice(0,i.length-b.length).replace(/(.)\/+$/,"$1")}const y=a[d];return p&&!y?u[f]=void 0:u[f]=B9(y||"",f),u},{}),pathname:i,pathnameBase:s,pattern:e}}function j9(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Vp(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function _9(e){try{return decodeURI(e)}catch(t){return Vp(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function B9(e,t){try{return decodeURIComponent(e)}catch(n){return Vp(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function Kp(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function V9(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Xo(e):e;return{pathname:n?n.startsWith("/")?n:K9(n,t):t,search:U9(r),hash:H9(o)}}function K9(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function vc(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function z9(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function y3(e,t){let n=z9(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function b3(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Xo(e):(o=as({},e),ze(!o.pathname||!o.pathname.includes("?"),vc("?","pathname","search",o)),ze(!o.pathname||!o.pathname.includes("#"),vc("#","pathname","hash",o)),ze(!o.search||!o.search.includes("#"),vc("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,a;if(s==null)a=n;else{let d=t.length-1;if(!r&&s.startsWith("..")){let f=s.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}a=d>=0?t[d]:"/"}let l=V9(o,a),u=s&&s!=="/"&&s.endsWith("/"),c=(i||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const tr=e=>e.join("/").replace(/\/\/+/g,"/"),W9=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),U9=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,H9=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function G9(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const x3=["post","put","patch","delete"];new Set(x3);const Y9=["get",...x3];new Set(Y9);/** * React Router v6.21.1 * * Copyright (c) Remix Software Inc. @@ -119,7 +119,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function ls(){return ls=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),h.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let d=b3(u,JSON.parse(s),i,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:tr([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,s,i,e])}function S3(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=h.useContext(Yr),{matches:o}=h.useContext(Xr),{pathname:i}=au(),s=JSON.stringify(y3(o,r.v7_relativeSplatPath));return h.useMemo(()=>b3(e,JSON.parse(s),i,n==="path"),[e,s,i,n])}function J9(e,t){return eA(e,t)}function eA(e,t,n,r){Ts()||ze(!1);let{navigator:o}=h.useContext(Yr),{matches:i}=h.useContext(Xr),s=i[i.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let u=au(),c;if(t){var d;let w=typeof t=="string"?Xo(t):t;l==="/"||(d=w.pathname)!=null&&d.startsWith(l)||ze(!1),c=w}else c=u;let f=c.pathname||"/",p=l==="/"?f:f.slice(l.length)||"/",y=E9(e,{pathname:p}),b=iA(y&&y.map(w=>Object.assign({},w,{params:Object.assign({},a,w.params),pathname:tr([l,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:tr([l,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),i,n,r);return t&&b?h.createElement(su.Provider,{value:{location:ls({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:zn.Pop}},b):b}function tA(){let e=uA(),t=G9(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},t),n?h.createElement("pre",{style:o},n):null,i)}const nA=h.createElement(tA,null);class rA extends h.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?h.createElement(Xr.Provider,{value:this.props.routeContext},h.createElement(w3.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function oA(e){let{routeContext:t,match:n,children:r}=e,o=h.useContext(zp);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),h.createElement(Xr.Provider,{value:t},r)}function iA(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let s=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let c=s.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id]));c>=0||ze(!1),s=s.slice(0,Math.min(s.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((c,d,f)=>{let p,y=!1,b=null,w=null;n&&(p=a&&d.route.id?a[d.route.id]:void 0,b=d.route.errorElement||nA,l&&(u<0&&f===0?(dA("route-fallback",!1),y=!0,w=null):u===f&&(y=!0,w=d.route.hydrateFallbackElement||null)));let x=t.concat(s.slice(0,f+1)),g=()=>{let v;return p?v=b:y?v=w:d.route.Component?v=h.createElement(d.route.Component,null):d.route.element?v=d.route.element:v=c,h.createElement(oA,{match:d,routeContext:{outlet:c,matches:x,isDataRoute:n!=null},children:v})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?h.createElement(rA,{location:n.location,revalidation:n.revalidation,component:b,error:p,children:g(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):g()},null)}var P3=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(P3||{}),kl=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(kl||{});function sA(e){let t=h.useContext(zp);return t||ze(!1),t}function aA(e){let t=h.useContext(X9);return t||ze(!1),t}function lA(e){let t=h.useContext(Xr);return t||ze(!1),t}function $3(e){let t=lA(),n=t.matches[t.matches.length-1];return n.route.id||ze(!1),n.route.id}function uA(){var e;let t=h.useContext(w3),n=aA(kl.UseRouteError),r=$3(kl.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function cA(){let{router:e}=sA(P3.UseNavigateStable),t=$3(kl.UseNavigateStable),n=h.useRef(!1);return C3(()=>{n.current=!0}),h.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,ls({fromRouteId:t},i)))},[e,t])}const pv={};function dA(e,t,n){!t&&!pv[e]&&(pv[e]=!0)}function $i(e){ze(!1)}function fA(e){let{basename:t="/",children:n=null,location:r,navigationType:o=zn.Pop,navigator:i,static:s=!1,future:a}=e;Ts()&&ze(!1);let l=t.replace(/^\/*/,"/"),u=h.useMemo(()=>({basename:l,navigator:i,static:s,future:ls({v7_relativeSplatPath:!1},a)}),[l,a,i,s]);typeof r=="string"&&(r=Xo(r));let{pathname:c="/",search:d="",hash:f="",state:p=null,key:y="default"}=r,b=h.useMemo(()=>{let w=Kp(c,l);return w==null?null:{location:{pathname:w,search:d,hash:f,state:p,key:y},navigationType:o}},[l,c,d,f,p,y,o]);return b==null?null:h.createElement(Yr.Provider,{value:u},h.createElement(su.Provider,{children:n,value:b}))}function pA(e){let{children:t,location:n}=e;return J9(qd(t),n)}new Promise(()=>{});function qd(e,t){t===void 0&&(t=[]);let n=[];return h.Children.forEach(e,(r,o)=>{if(!h.isValidElement(r))return;let i=[...t,o];if(r.type===h.Fragment){n.push.apply(n,qd(r.props.children,i));return}r.type!==$i&&ze(!1),!r.props.index||!r.props.children||ze(!1);let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=qd(r.props.children,i)),n.push(s)}),n}/** + */function ls(){return ls=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),h.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let d=b3(u,JSON.parse(s),i,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:tr([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,s,i,e])}function S3(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=h.useContext(Yr),{matches:o}=h.useContext(Xr),{pathname:i}=au(),s=JSON.stringify(y3(o,r.v7_relativeSplatPath));return h.useMemo(()=>b3(e,JSON.parse(s),i,n==="path"),[e,s,i,n])}function q9(e,t){return eA(e,t)}function eA(e,t,n,r){Ts()||ze(!1);let{navigator:o}=h.useContext(Yr),{matches:i}=h.useContext(Xr),s=i[i.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let u=au(),c;if(t){var d;let w=typeof t=="string"?Xo(t):t;l==="/"||(d=w.pathname)!=null&&d.startsWith(l)||ze(!1),c=w}else c=u;let f=c.pathname||"/",p=l==="/"?f:f.slice(l.length)||"/",y=E9(e,{pathname:p}),b=iA(y&&y.map(w=>Object.assign({},w,{params:Object.assign({},a,w.params),pathname:tr([l,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:tr([l,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),i,n,r);return t&&b?h.createElement(su.Provider,{value:{location:ls({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:zn.Pop}},b):b}function tA(){let e=uA(),t=G9(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},t),n?h.createElement("pre",{style:o},n):null,i)}const nA=h.createElement(tA,null);class rA extends h.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?h.createElement(Xr.Provider,{value:this.props.routeContext},h.createElement(w3.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function oA(e){let{routeContext:t,match:n,children:r}=e,o=h.useContext(zp);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),h.createElement(Xr.Provider,{value:t},r)}function iA(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let s=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let c=s.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id]));c>=0||ze(!1),s=s.slice(0,Math.min(s.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((c,d,f)=>{let p,y=!1,b=null,w=null;n&&(p=a&&d.route.id?a[d.route.id]:void 0,b=d.route.errorElement||nA,l&&(u<0&&f===0?(dA("route-fallback",!1),y=!0,w=null):u===f&&(y=!0,w=d.route.hydrateFallbackElement||null)));let x=t.concat(s.slice(0,f+1)),g=()=>{let v;return p?v=b:y?v=w:d.route.Component?v=h.createElement(d.route.Component,null):d.route.element?v=d.route.element:v=c,h.createElement(oA,{match:d,routeContext:{outlet:c,matches:x,isDataRoute:n!=null},children:v})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?h.createElement(rA,{location:n.location,revalidation:n.revalidation,component:b,error:p,children:g(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):g()},null)}var P3=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(P3||{}),kl=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(kl||{});function sA(e){let t=h.useContext(zp);return t||ze(!1),t}function aA(e){let t=h.useContext(X9);return t||ze(!1),t}function lA(e){let t=h.useContext(Xr);return t||ze(!1),t}function $3(e){let t=lA(),n=t.matches[t.matches.length-1];return n.route.id||ze(!1),n.route.id}function uA(){var e;let t=h.useContext(w3),n=aA(kl.UseRouteError),r=$3(kl.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function cA(){let{router:e}=sA(P3.UseNavigateStable),t=$3(kl.UseNavigateStable),n=h.useRef(!1);return C3(()=>{n.current=!0}),h.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,ls({fromRouteId:t},i)))},[e,t])}const pv={};function dA(e,t,n){!t&&!pv[e]&&(pv[e]=!0)}function $i(e){ze(!1)}function fA(e){let{basename:t="/",children:n=null,location:r,navigationType:o=zn.Pop,navigator:i,static:s=!1,future:a}=e;Ts()&&ze(!1);let l=t.replace(/^\/*/,"/"),u=h.useMemo(()=>({basename:l,navigator:i,static:s,future:ls({v7_relativeSplatPath:!1},a)}),[l,a,i,s]);typeof r=="string"&&(r=Xo(r));let{pathname:c="/",search:d="",hash:f="",state:p=null,key:y="default"}=r,b=h.useMemo(()=>{let w=Kp(c,l);return w==null?null:{location:{pathname:w,search:d,hash:f,state:p,key:y},navigationType:o}},[l,c,d,f,p,y,o]);return b==null?null:h.createElement(Yr.Provider,{value:u},h.createElement(su.Provider,{children:n,value:b}))}function pA(e){let{children:t,location:n}=e;return q9(Jd(t),n)}new Promise(()=>{});function Jd(e,t){t===void 0&&(t=[]);let n=[];return h.Children.forEach(e,(r,o)=>{if(!h.isValidElement(r))return;let i=[...t,o];if(r.type===h.Fragment){n.push.apply(n,Jd(r.props.children,i));return}r.type!==$i&&ze(!1),!r.props.index||!r.props.children||ze(!1);let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=Jd(r.props.children,i)),n.push(s)}),n}/** * React Router DOM v6.21.1 * * Copyright (c) Remix Software Inc. @@ -128,8 +128,8 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Jd(){return Jd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function mA(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function gA(e,t){return e.button===0&&(!t||t==="_self")&&!mA(e)}const vA=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],yA="startTransition",hv=sC[yA];function bA(e){let{basename:t,children:n,future:r,window:o}=e,i=h.useRef();i.current==null&&(i.current=S9({window:o,v5Compat:!0}));let s=i.current,[a,l]=h.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=h.useCallback(d=>{u&&hv?hv(()=>l(d)):l(d)},[l,u]);return h.useLayoutEffect(()=>s.listen(c),[s,c]),h.createElement(fA,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const xA=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",wA=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,E3=h.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:s,state:a,target:l,to:u,preventScrollReset:c,unstable_viewTransition:d}=t,f=hA(t,vA),{basename:p}=h.useContext(Yr),y,b=!1;if(typeof u=="string"&&wA.test(u)&&(y=u,xA))try{let v=new URL(window.location.href),S=u.startsWith("//")?new URL(v.protocol+u):new URL(u),k=Kp(S.pathname,p);S.origin===v.origin&&k!=null?u=k+S.search+S.hash:b=!0}catch{}let w=Q9(u,{relative:o}),x=CA(u,{replace:s,state:a,target:l,preventScrollReset:c,relative:o,unstable_viewTransition:d});function g(v){r&&r(v),v.defaultPrevented||x(v)}return h.createElement("a",Jd({},f,{href:y||w,onClick:b||i?r:g,ref:n,target:l}))});var mv;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(mv||(mv={}));var gv;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(gv||(gv={}));function CA(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s,unstable_viewTransition:a}=t===void 0?{}:t,l=Z9(),u=au(),c=S3(e,{relative:s});return h.useCallback(d=>{if(gA(d,n)){d.preventDefault();let f=r!==void 0?r:El(u)===El(c);l(e,{replace:f,state:o,preventScrollReset:i,relative:s,unstable_viewTransition:a})}},[u,l,c,r,o,n,e,i,s,a])}var k3={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},vv=ee.createContext&&ee.createContext(k3),nr=function(){return nr=Object.assign||function(e){for(var t,n=1,r=arguments.length;nP.jsx(C9,{defaultItems:e,"aria-label":"Search for Artworks",classNames:{base:"max-w-lg",listboxWrapper:"max-h-[320px]",selectorButton:"text-default-500"},inputProps:{classNames:{input:"ml-1",inputWrapper:"h-[48px]"}},listboxProps:{hideSelectedIcon:!0,itemClasses:{base:["rounded-medium","text-default-500","transition-opacity","data-[hover=true]:text-foreground","dark:data-[hover=true]:bg-default-50","data-[pressed=true]:opacity-70","data-[hover=true]:bg-default-200","data-[selectable=true]:focus:bg-default-100","data-[focus-visible=true]:ring-default-500"]}},placeholder:"Search",popoverProps:{offset:10,classNames:{base:"rounded-large",content:"p-1 border-small border-default-100 bg-background"}},startContent:P.jsx(EA,{size:18}),radius:"full",variant:"bordered",children:t=>P.jsx(g9,{textValue:t.name,children:P.jsx("div",{className:"flex justify-between items-center",children:P.jsxs("div",{className:"flex gap-2 items-center",children:[P.jsx(Qx,{alt:t.name,className:"flex-shrink-0",size:"sm",src:t.img}),P.jsxs("div",{className:"flex flex-col",children:[P.jsx("span",{className:"text-small",children:t.name}),P.jsx("span",{className:"text-tiny text-default-400",children:t.artist})]})]})})},t.id)}),nM=()=>P.jsxs(Xd,{placement:"bottom-end",children:[P.jsx(Yd,{children:P.jsx(Qx,{isBordered:!0,as:"button",className:"transition-transform",color:"primary",name:"Hafiz Suip",size:"sm",src:"https://clipart-library.com/new_gallery/241-2415819_pikachu-in-ash-ash-ketchum-hat-pikachu.png"})}),P.jsxs(Gd,{"aria-label":"Profile Actions",variant:"flat",children:[P.jsxs(ft,{className:"h-14 gap-2",children:[P.jsx("p",{className:"font-semibold",children:"Signed in as"}),P.jsx("p",{className:"font-semibold",children:"hafizsuip@gmail.com"})]},"profile"),P.jsx(ft,{children:"Settings"},"settings"),P.jsx(ft,{children:"Favourites"},"favourites"),P.jsx(ft,{children:"Notifications"},"notificaitons"),P.jsx(ft,{children:"Help & Support"},"help_and_support"),P.jsx(ft,{children:"Feedback"},"feedback"),P.jsx(ft,{color:"danger",className:"text-danger",children:"Log Out"},"logout")]})]}),rM=()=>{const t=Object.values(Wp).flat().sort((n,r)=>n.name.localeCompare(r.name));return P.jsxs(q7,{maxWidth:"full",isBordered:!0,shouldHideOnScroll:!0,children:[P.jsx(E3,{to:"/artistry-hub/",reloadDocument:!0,children:P.jsx(jp,{src:"./logo.png",alt:"Logo",width:40,height:40,isZoomed:!0})}),P.jsxs(e9,{justify:"start",children:[P.jsx(J7,{children:P.jsx(tM,{allLists:t})}),P.jsx(nM,{})]})]})};var N3={exports:{}};/*! + */function qd(){return qd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function mA(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function gA(e,t){return e.button===0&&(!t||t==="_self")&&!mA(e)}const vA=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],yA="startTransition",hv=sC[yA];function bA(e){let{basename:t,children:n,future:r,window:o}=e,i=h.useRef();i.current==null&&(i.current=S9({window:o,v5Compat:!0}));let s=i.current,[a,l]=h.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=h.useCallback(d=>{u&&hv?hv(()=>l(d)):l(d)},[l,u]);return h.useLayoutEffect(()=>s.listen(c),[s,c]),h.createElement(fA,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const xA=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",wA=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,E3=h.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:s,state:a,target:l,to:u,preventScrollReset:c,unstable_viewTransition:d}=t,f=hA(t,vA),{basename:p}=h.useContext(Yr),y,b=!1;if(typeof u=="string"&&wA.test(u)&&(y=u,xA))try{let v=new URL(window.location.href),S=u.startsWith("//")?new URL(v.protocol+u):new URL(u),k=Kp(S.pathname,p);S.origin===v.origin&&k!=null?u=k+S.search+S.hash:b=!0}catch{}let w=Q9(u,{relative:o}),x=CA(u,{replace:s,state:a,target:l,preventScrollReset:c,relative:o,unstable_viewTransition:d});function g(v){r&&r(v),v.defaultPrevented||x(v)}return h.createElement("a",qd({},f,{href:y||w,onClick:b||i?r:g,ref:n,target:l}))});var mv;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(mv||(mv={}));var gv;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(gv||(gv={}));function CA(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s,unstable_viewTransition:a}=t===void 0?{}:t,l=Z9(),u=au(),c=S3(e,{relative:s});return h.useCallback(d=>{if(gA(d,n)){d.preventDefault();let f=r!==void 0?r:El(u)===El(c);l(e,{replace:f,state:o,preventScrollReset:i,relative:s,unstable_viewTransition:a})}},[u,l,c,r,o,n,e,i,s,a])}var k3={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},vv=ee.createContext&&ee.createContext(k3),nr=function(){return nr=Object.assign||function(e){for(var t,n=1,r=arguments.length;nP.jsx(C9,{defaultItems:e,"aria-label":"Search for Artworks",classNames:{base:"max-w-lg",listboxWrapper:"max-h-[320px]",selectorButton:"text-default-500"},inputProps:{classNames:{input:"ml-1",inputWrapper:"h-[48px]"}},listboxProps:{hideSelectedIcon:!0,itemClasses:{base:["rounded-medium","text-default-500","transition-opacity","data-[hover=true]:text-foreground","dark:data-[hover=true]:bg-default-50","data-[pressed=true]:opacity-70","data-[hover=true]:bg-default-200","data-[selectable=true]:focus:bg-default-100","data-[focus-visible=true]:ring-default-500"]}},placeholder:"Search",popoverProps:{offset:10,classNames:{base:"rounded-large",content:"p-1 border-small border-default-100 bg-background"}},startContent:P.jsx(EA,{size:18}),radius:"full",variant:"bordered",children:t=>P.jsx(g9,{textValue:t.name,children:P.jsx("div",{className:"flex justify-between items-center",children:P.jsxs("div",{className:"flex gap-2 items-center",children:[P.jsx(Qx,{alt:t.name,className:"flex-shrink-0",size:"sm",src:t.img}),P.jsxs("div",{className:"flex flex-col",children:[P.jsx("span",{className:"text-small",children:t.name}),P.jsx("span",{className:"text-tiny text-default-400",children:t.artist})]})]})})},t.id)}),nM=()=>P.jsxs(Xd,{placement:"bottom-end",children:[P.jsx(Yd,{children:P.jsx(Qx,{isBordered:!0,as:"button",className:"transition-transform",color:"primary",name:"Hafiz Suip",size:"sm",src:"https://clipart-library.com/new_gallery/241-2415819_pikachu-in-ash-ash-ketchum-hat-pikachu.png"})}),P.jsxs(Gd,{"aria-label":"Profile Actions",variant:"flat",children:[P.jsxs(ft,{className:"h-14 gap-2",children:[P.jsx("p",{className:"font-semibold",children:"Signed in as"}),P.jsx("p",{className:"font-semibold",children:"hafizsuip@gmail.com"})]},"profile"),P.jsx(ft,{children:"Settings"},"settings"),P.jsx(ft,{children:"Favourites"},"favourites"),P.jsx(ft,{children:"Notifications"},"notificaitons"),P.jsx(ft,{children:"Help & Support"},"help_and_support"),P.jsx(ft,{children:"Feedback"},"feedback"),P.jsx(ft,{color:"danger",className:"text-danger",children:"Log Out"},"logout")]})]}),rM=()=>{const t=Object.values(Wp).flat().sort((n,r)=>n.name.localeCompare(r.name));return P.jsxs(J7,{maxWidth:"full",isBordered:!0,shouldHideOnScroll:!0,children:[P.jsx(E3,{to:"/artistry-hub/",reloadDocument:!0,children:P.jsx(jp,{src:"./logo.png",alt:"Logo",width:40,height:40,isZoomed:!0})}),P.jsxs(e9,{justify:"start",children:[P.jsx(q7,{children:P.jsx(tM,{allLists:t})}),P.jsx(nM,{})]})]})};var N3={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",s=0;s0)return aM(e);if(n==="number"&&isNaN(e)===!1)return t.long?uM(e):lM(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function aM(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]),r=(t[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*iM;case"days":case"day":case"d":return n*fs;case"hours":case"hour":case"hrs":case"hr":case"h":return n*ds;case"minutes":case"minute":case"mins":case"min":case"m":return n*cs;case"seconds":case"second":case"secs":case"sec":case"s":return n*us;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function lM(e){return e>=fs?Math.round(e/fs)+"d":e>=ds?Math.round(e/ds)+"h":e>=cs?Math.round(e/cs)+"m":e>=us?Math.round(e/us)+"s":e+"ms"}function uM(e){return ca(e,fs,"day")||ca(e,ds,"hour")||ca(e,cs,"minute")||ca(e,us,"second")||e+" ms"}function ca(e,t,n){if(!(e=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t.formatters.j=function(u){try{return JSON.stringify(u)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}};function o(u){var c=this.useColors;if(u[0]=(c?"%c":"")+this.namespace+(c?" %c":" ")+u[0]+(c?"%c ":" ")+"+"+t.humanize(this.diff),!!c){var d="color: "+this.color;u.splice(1,0,d,"color: inherit");var f=0,p=0;u[0].replace(/%[a-zA-Z%]/g,function(y){y!=="%%"&&(f++,y==="%c"&&(p=f))}),u.splice(p,0,d)}}function i(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(u){try{u==null?t.storage.removeItem("debug"):t.storage.debug=u}catch{}}function a(){var u;try{u=t.storage.debug}catch{}return!u&&typeof process<"u"&&"env"in process&&(u=n.DEBUG),u}t.enable(a());function l(){try{return window.localStorage}catch{}}})(ef,ef.exports);var dM=ef.exports,yv=dM("jsonp"),fM=mM,pM=0;function hM(){}function mM(e,t,n){typeof t=="function"&&(n=t,t={}),t||(t={});var r=t.prefix||"__jp",o=t.name||r+pM++,i=t.param||"callback",s=t.timeout!=null?t.timeout:6e4,a=encodeURIComponent,l=document.getElementsByTagName("script")[0]||document.head,u,c;s&&(c=setTimeout(function(){d(),n&&n(new Error("Timeout"))},s));function d(){u.parentNode&&u.parentNode.removeChild(u),window[o]=hM,c&&clearTimeout(c)}function f(){window[o]&&d()}return window[o]=function(p){yv("jsonp got",p),d(),n&&n(null,p)},e+=(~e.indexOf("?")?"&":"?")+i+"="+a(o),e=e.replace("?&","?"),yv('jsonp req "%s"',e),u=document.createElement("script"),u.src=e,l.parentNode.insertBefore(u,l),f}const Qr=Al(fM);var gM=Object.defineProperty,vM=Object.defineProperties,yM=Object.getOwnPropertyDescriptors,Tl=Object.getOwnPropertySymbols,R3=Object.prototype.hasOwnProperty,F3=Object.prototype.propertyIsEnumerable,bv=(e,t,n)=>t in e?gM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wt=(e,t)=>{for(var n in t||(t={}))R3.call(t,n)&&bv(e,n,t[n]);if(Tl)for(var n of Tl(t))F3.call(t,n)&&bv(e,n,t[n]);return e},lu=(e,t)=>vM(e,yM(t)),uu=(e,t)=>{var n={};for(var r in e)R3.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Tl)for(var r of Tl(e))t.indexOf(r)<0&&F3.call(e,r)&&(n[r]=e[r]);return n};function As(e){return n=>{var r=n,{bgStyle:o={},borderRadius:i=0,iconFillColor:s="white",round:a=!1,size:l=64}=r,u=uu(r,["bgStyle","borderRadius","iconFillColor","round","size"]);return P.jsxs("svg",lu(wt({viewBox:"0 0 64 64",width:l,height:l},u),{children:[a?P.jsx("circle",{cx:"32",cy:"32",r:"32",fill:e.color,style:o}):P.jsx("rect",{width:"64",height:"64",rx:i,ry:i,fill:e.color,style:o}),P.jsx("path",{d:e.path,fill:s})]}))}}const bM=As({color:"#7f7f7f",networkName:"email",path:"M17,22v20h30V22H17z M41.1,25L32,32.1L22.9,25H41.1z M20,39V26.6l12,9.3l12-9.3V39H20z"}),xM=bM;function xe(e){const t=Object.entries(e).filter(([,n])=>n!=null).map(([n,r])=>`${encodeURIComponent(n)}=${encodeURIComponent(String(r))}`);return t.length>0?`?${t.join("&")}`:""}const wM=e=>!!e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function",CM=(e,t)=>({left:window.outerWidth/2+(window.screenX||window.screenLeft||0)-e/2,top:window.outerHeight/2+(window.screenY||window.screenTop||0)-t/2}),SM=(e,t)=>({top:(window.screen.height-t)/2,left:(window.screen.width-e)/2});function PM(e,t,n){var r=t,{height:o,width:i}=r,s=uu(r,["height","width"]);const a=wt({height:o,width:i,location:"no",toolbar:"no",status:"no",directories:"no",menubar:"no",scrollbars:"yes",resizable:"no",centerscreen:"yes",chrome:"yes"},s),l=window.open(e,"",Object.keys(a).map(u=>`${u}=${a[u]}`).join(", "));if(n){const u=window.setInterval(()=>{try{(l===null||l.closed)&&(window.clearInterval(u),n(l))}catch(c){console.error(c)}},1e3)}return l}function $M(e){var t=e,{beforeOnClick:n,children:r,className:o,disabled:i,disabledStyle:s={opacity:.6},forwardedRef:a,networkLink:l,networkName:u,onClick:c,onShareWindowClose:d,openShareDialogOnClick:f=!0,opts:p,resetButtonStyle:y=!0,style:b,url:w,windowHeight:x=400,windowPosition:g="windowCenter",windowWidth:v=550}=t,S=uu(t,["beforeOnClick","children","className","disabled","disabledStyle","forwardedRef","networkLink","networkName","onClick","onShareWindowClose","openShareDialogOnClick","opts","resetButtonStyle","style","url","windowHeight","windowPosition","windowWidth"]);const k=async m=>{const L=l(w,p);if(!i){if(m.preventDefault(),n){const M=n();wM(M)&&await M}if(f){const M=wt({height:x,width:v},g==="windowCenter"?CM(v,x):SM(v,x));PM(L,M,d)}c&&c(m,L)}},A=I3("react-share__ShareButton",{"react-share__ShareButton--disabled":!!i,disabled:!!i},o),D=wt(wt(y?{backgroundColor:"transparent",border:"none",padding:0,font:"inherit",color:"inherit",cursor:"pointer"}:{},b),i&&s);return P.jsx("button",lu(wt({},S),{className:A,onClick:k,ref:a,style:D,children:r}))}function Ie(e,t,n,r){function o(i,s){const a=n(i),l=wt({},i);return Object.keys(a).forEach(c=>{delete l[c]}),P.jsx($M,lu(wt(wt({},r),l),{forwardedRef:s,networkName:e,networkLink:t,opts:n(i)}))}return o.displayName=`ShareButton-${e}`,h.forwardRef(o)}function EM(e,{subject:t,body:n,separator:r}){return"mailto:"+xe({subject:t,body:n?n+r+e:e})}const kM=Ie("email",EM,e=>({subject:e.subject,body:e.body,separator:e.separator||" "}),{openShareDialogOnClick:!1,onClick:(e,t)=>{window.location.href=t}}),TM=kM,AM=As({color:"#0965FE",networkName:"facebook",path:"M34.1,47V33.3h4.6l0.7-5.3h-5.3v-3.4c0-1.5,0.4-2.6,2.6-2.6l2.8,0v-4.8c-0.5-0.1-2.2-0.2-4.1-0.2 c-4.1,0-6.9,2.5-6.9,7V28H24v5.3h4.6V47H34.1z"}),MM=AM;function LM(e,{appId:t,redirectUri:n,to:r}){return"https://www.facebook.com/dialog/send"+xe({link:e,redirect_uri:n||e,app_id:t,to:r})}Ie("facebookmessenger",LM,e=>({appId:e.appId,redirectUri:e.redirectUri,to:e.to}),{windowWidth:1e3,windowHeight:820});class DM extends Error{constructor(t){super(t),this.name="AssertionError"}}function Me(e,t){if(!e)throw new DM(t)}function NM(e,{hashtag:t}){return Me(e,"facebook.url"),"https://www.facebook.com/sharer/sharer.php"+xe({u:e,hashtag:t})}const IM=Ie("facebook",NM,e=>({hashtag:e.hashtag}),{windowWidth:550,windowHeight:400}),RM=IM;function FM(){const e=h.useRef(!1);return h.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),h.useCallback(()=>e.current,[])}function OM(e){var t=e,{children:n=f=>f,className:r,getCount:o,url:i}=t,s=uu(t,["children","className","getCount","url"]);const a=FM(),[l,u]=h.useState(void 0),[c,d]=h.useState(!1);return h.useEffect(()=>{d(!0),o(i,f=>{a()&&(u(f),d(!1))})},[i]),P.jsx("span",lu(wt({className:I3("react-share__ShareCount",r)},s),{children:!c&&l!==void 0&&n(l)}))}function Zr(e){const t=n=>P.jsx(OM,wt({getCount:e},n));return t.displayName=`ShareCount(${e.name})`,t}function jM(e,t){const n=`https://graph.facebook.com/?id=${e}&fields=og_object{engagement}`;Qr(n,(r,o)=>{t(!r&&o&&o.og_object&&o.og_object.engagement?o.og_object.engagement.count:void 0)})}Zr(jM);function _M(e,{title:t}){return Me(e,"hatena.url"),`http://b.hatena.ne.jp/add?mode=confirm&url=${e}&title=${t}`}Ie("hatena",_M,e=>({title:e.title}),{windowWidth:660,windowHeight:460,windowPosition:"windowCenter"});function BM(e,t){Qr("https://bookmark.hatenaapis.com/count/entry"+xe({url:e}),(r,o)=>{t(o??void 0)})}Zr(BM);function VM(e,{title:t,description:n}){return Me(e,"instapaper.url"),"http://www.instapaper.com/hello2"+xe({url:e,title:t,description:n})}Ie("instapaper",VM,e=>({title:e.title,description:e.description}),{windowWidth:500,windowHeight:500,windowPosition:"windowCenter"});function KM(e,{title:t}){return Me(e,"line.url"),"https://social-plugins.line.me/lineit/share"+xe({url:e,text:t})}Ie("line",KM,e=>({title:e.title}),{windowWidth:500,windowHeight:500});function zM(e,{title:t,summary:n,source:r}){return Me(e,"linkedin.url"),"https://linkedin.com/shareArticle"+xe({url:e,mini:"true",title:t,summary:n,source:r})}Ie("linkedin",zM,({title:e,summary:t,source:n})=>({title:e,summary:t,source:n}),{windowWidth:750,windowHeight:600});function WM(e,{title:t,description:n}){return Me(e,"livejournal.url"),"https://www.livejournal.com/update.bml"+xe({subject:t,event:n})}Ie("livejournal",WM,e=>({title:e.title,description:e.description}),{windowWidth:660,windowHeight:460});function UM(e,{title:t,description:n,imageUrl:r}){return Me(e,"mailru.url"),"https://connect.mail.ru/share"+xe({url:e,title:t,description:n,image_url:r})}Ie("mailru",UM,e=>({title:e.title,description:e.description,imageUrl:e.imageUrl}),{windowWidth:660,windowHeight:460});function HM(e,{title:t,description:n,image:r}){return Me(e,"ok.url"),"https://connect.ok.ru/offer"+xe({url:e,title:t,description:n,imageUrl:r})}Ie("ok",HM,e=>({title:e.title,description:e.description,image:e.image}),{windowWidth:588,windowHeight:480,windowPosition:"screenCenter"});function GM(e,t){window.OK||(window.OK={Share:{count:function(i,s){var a,l;(l=(a=window.OK.callbacks)[i])==null||l.call(a,s)}},callbacks:[]});const n="https://connect.ok.ru/dk",r=window.OK.callbacks.length;return window.ODKL={updateCount(o,i){var s,a;const l=o===""?0:parseInt(o.replace("react-share-",""),10);(a=(s=window.OK.callbacks)[l])==null||a.call(s,i===""?void 0:parseInt(i,10))}},window.OK.callbacks.push(t),Qr(n+xe({"st.cmd":"extLike",uid:`react-share-${r}`,ref:e}))}Zr(GM);function YM(e,{media:t,description:n,pinId:r}){return r?`https://pinterest.com/pin/${r}/repin/x/`:(Me(e,"pinterest.url"),Me(t,"pinterest.media"),"https://pinterest.com/pin/create/button/"+xe({url:e,media:t,description:n}))}Ie("pinterest",YM,e=>({media:e.media,description:e.description,pinId:e.pinId}),{windowWidth:1e3,windowHeight:730});function XM(e,t){Qr("https://api.pinterest.com/v1/urls/count.json"+xe({url:e}),(r,o)=>{t(o?o.count:void 0)})}Zr(XM);function QM(e,{title:t}){return Me(e,"pocket.url"),"https://getpocket.com/save"+xe({url:e,title:t})}Ie("pocket",QM,e=>({title:e.title}),{windowWidth:500,windowHeight:500});const ZM=As({color:"#FF5700",networkName:"reddit",path:"M 53.34375 32 C 53.277344 30.160156 52.136719 28.53125 50.429688 27.839844 C 48.722656 27.148438 46.769531 27.523438 45.441406 28.800781 C 41.800781 26.324219 37.519531 24.957031 33.121094 24.863281 L 35.199219 14.878906 L 42.046875 16.320312 C 42.214844 17.882812 43.496094 19.09375 45.066406 19.171875 C 46.636719 19.253906 48.03125 18.183594 48.359375 16.644531 C 48.6875 15.105469 47.847656 13.558594 46.382812 12.992188 C 44.914062 12.425781 43.253906 13.007812 42.464844 14.367188 L 34.625 12.800781 C 34.363281 12.742188 34.09375 12.792969 33.871094 12.9375 C 33.648438 13.082031 33.492188 13.308594 33.441406 13.566406 L 31.070312 24.671875 C 26.617188 24.738281 22.277344 26.105469 18.59375 28.609375 C 17.242188 27.339844 15.273438 26.988281 13.570312 27.707031 C 11.863281 28.429688 10.746094 30.089844 10.71875 31.941406 C 10.691406 33.789062 11.757812 35.484375 13.441406 36.257812 C 13.402344 36.726562 13.402344 37.195312 13.441406 37.664062 C 13.441406 44.832031 21.792969 50.65625 32.097656 50.65625 C 42.398438 50.65625 50.753906 44.832031 50.753906 37.664062 C 50.789062 37.195312 50.789062 36.726562 50.753906 36.257812 C 52.363281 35.453125 53.371094 33.800781 53.34375 32 Z M 21.34375 35.199219 C 21.34375 33.433594 22.777344 32 24.542969 32 C 26.3125 32 27.742188 33.433594 27.742188 35.199219 C 27.742188 36.96875 26.3125 38.398438 24.542969 38.398438 C 22.777344 38.398438 21.34375 36.96875 21.34375 35.199219 Z M 39.9375 44 C 37.664062 45.710938 34.871094 46.582031 32.03125 46.464844 C 29.191406 46.582031 26.398438 45.710938 24.128906 44 C 23.847656 43.65625 23.871094 43.15625 24.183594 42.839844 C 24.5 42.527344 25 42.503906 25.34375 42.785156 C 27.269531 44.195312 29.617188 44.90625 32 44.800781 C 34.386719 44.929688 36.746094 44.242188 38.6875 42.847656 C 39.042969 42.503906 39.605469 42.511719 39.953125 42.863281 C 40.296875 43.21875 40.289062 43.785156 39.9375 44.128906 Z M 39.359375 38.527344 C 37.59375 38.527344 36.160156 37.09375 36.160156 35.328125 C 36.160156 33.5625 37.59375 32.128906 39.359375 32.128906 C 41.128906 32.128906 42.558594 33.5625 42.558594 35.328125 C 42.59375 36.203125 42.269531 37.054688 41.65625 37.6875 C 41.046875 38.316406 40.203125 38.664062 39.328125 38.65625 Z M 39.359375 38.527344"}),qM=ZM;function JM(e,{title:t}){return Me(e,"reddit.url"),"https://www.reddit.com/submit"+xe({url:e,title:t})}const eL=Ie("reddit",JM,e=>({title:e.title}),{windowWidth:660,windowHeight:460,windowPosition:"windowCenter"}),tL=eL;function nL(e,{title:t}){return Me(e,"gab.url"),"https://gab.com/compose"+xe({url:e,text:t})}Ie("gab",nL,e=>({title:e.title}),{windowWidth:660,windowHeight:640,windowPosition:"windowCenter"});function rL(e,t){const n=`https://www.reddit.com/api/info.json?limit=1&url=${e}`;Qr(n,{param:"jsonp"},(r,o)=>{t(!r&&o&&o.data&&o.data.children.length>0&&o.data.children[0].data.score?o.data.children[0].data.score:void 0)})}Zr(rL);function oL(e,{title:t}){return Me(e,"telegram.url"),"https://telegram.me/share/url"+xe({url:e,text:t})}Ie("telegram",oL,e=>({title:e.title}),{windowWidth:550,windowHeight:400});function iL(e,{title:t,caption:n,tags:r,posttype:o}){return Me(e,"tumblr.url"),"https://www.tumblr.com/widgets/share/tool"+xe({canonicalUrl:e,title:t,caption:n,tags:r,posttype:o})}Ie("tumblr",iL,e=>({title:e.title,tags:(e.tags||[]).join(","),caption:e.caption,posttype:e.posttype||"link"}),{windowWidth:660,windowHeight:460});function sL(e,t){return Qr("https://api.tumblr.com/v2/share/stats"+xe({url:e}),(r,o)=>{t(!r&&o&&o.response?o.response.note_count:void 0)})}Zr(sL);function aL(e,{title:t,via:n,hashtags:r=[],related:o=[]}){return Me(e,"twitter.url"),Me(Array.isArray(r),"twitter.hashtags is not an array"),Me(Array.isArray(o),"twitter.related is not an array"),"https://twitter.com/intent/tweet"+xe({url:e,text:t,via:n,hashtags:r.length>0?r.join(","):void 0,related:o.length>0?o.join(","):void 0})}const lL=Ie("twitter",aL,e=>({hashtags:e.hashtags,title:e.title,via:e.via,related:e.related}),{windowWidth:550,windowHeight:400}),uL=lL;function cL(e,{title:t,separator:n}){return Me(e,"viber.url"),"viber://forward"+xe({text:t?t+n+e:e})}Ie("viber",cL,e=>({title:e.title,separator:e.separator||" "}),{windowWidth:660,windowHeight:460});function dL(e,{title:t,image:n,noParse:r,noVkLinks:o}){return Me(e,"vk.url"),"https://vk.com/share.php"+xe({url:e,title:t,image:n,noparse:r?1:0,no_vk_links:o?1:0})}Ie("vk",dL,e=>({title:e.title,image:e.image,noParse:e.noParse,noVkLinks:e.noVkLinks}),{windowWidth:660,windowHeight:460});function fL(e,t){window.VK||(window.VK={}),window.VK.Share={count:(o,i)=>{var s,a;return(a=(s=window.VK.callbacks)==null?void 0:s[o])==null?void 0:a.call(s,i)}},window.VK.callbacks=[];const n="https://vk.com/share.php",r=window.VK.callbacks.length;return window.VK.callbacks.push(t),Qr(n+xe({act:"count",index:r,url:e}))}Zr(fL);function pL(e,{title:t,image:n}){return Me(e,"weibo.url"),"http://service.weibo.com/share/share.php"+xe({url:e,title:t,pic:n})}Ie("weibo",pL,e=>({title:e.title,image:e.image}),{windowWidth:660,windowHeight:550,windowPosition:"screenCenter"});const hL=As({color:"#25D366",networkName:"whatsapp",path:"m42.32286,33.93287c-0.5178,-0.2589 -3.04726,-1.49644 -3.52105,-1.66732c-0.4712,-0.17346 -0.81554,-0.2589 -1.15987,0.2589c-0.34175,0.51004 -1.33075,1.66474 -1.63108,2.00648c-0.30032,0.33658 -0.60064,0.36247 -1.11327,0.12945c-0.5178,-0.2589 -2.17994,-0.80259 -4.14759,-2.56312c-1.53269,-1.37217 -2.56312,-3.05503 -2.86603,-3.57283c-0.30033,-0.5178 -0.03366,-0.80259 0.22524,-1.06149c0.23301,-0.23301 0.5178,-0.59547 0.7767,-0.90616c0.25372,-0.31068 0.33657,-0.5178 0.51262,-0.85437c0.17088,-0.36246 0.08544,-0.64725 -0.04402,-0.90615c-0.12945,-0.2589 -1.15987,-2.79613 -1.58964,-3.80584c-0.41424,-1.00971 -0.84142,-0.88027 -1.15987,-0.88027c-0.29773,-0.02588 -0.64208,-0.02588 -0.98382,-0.02588c-0.34693,0 -0.90616,0.12945 -1.37736,0.62136c-0.4712,0.5178 -1.80194,1.76053 -1.80194,4.27186c0,2.51134 1.84596,4.945 2.10227,5.30747c0.2589,0.33657 3.63497,5.51458 8.80262,7.74113c1.23237,0.5178 2.1903,0.82848 2.94111,1.08738c1.23237,0.38836 2.35599,0.33657 3.24402,0.20712c0.99159,-0.15534 3.04985,-1.24272 3.47963,-2.45956c0.44013,-1.21683 0.44013,-2.22654 0.31068,-2.45955c-0.12945,-0.23301 -0.46601,-0.36247 -0.98382,-0.59548m-9.40068,12.84407l-0.02589,0c-3.05503,0 -6.08417,-0.82849 -8.72495,-2.38189l-0.62136,-0.37023l-6.47252,1.68286l1.73463,-6.29129l-0.41424,-0.64725c-1.70875,-2.71846 -2.6149,-5.85116 -2.6149,-9.07706c0,-9.39809 7.68934,-17.06155 17.15993,-17.06155c4.58253,0 8.88029,1.78642 12.11655,5.02268c3.23625,3.21036 5.02267,7.50812 5.02267,12.06476c-0.0078,9.3981 -7.69712,17.06155 -17.14699,17.06155m14.58906,-31.58846c-3.93529,-3.80584 -9.1133,-5.95471 -14.62789,-5.95471c-11.36055,0 -20.60848,9.2065 -20.61625,20.52564c0,3.61684 0.94757,7.14565 2.75211,10.26282l-2.92557,10.63564l10.93337,-2.85309c3.0136,1.63108 6.4052,2.4958 9.85634,2.49839l0.01037,0c11.36574,0 20.61884,-9.2091 20.62403,-20.53082c0,-5.48093 -2.14111,-10.64081 -6.03239,-14.51915"}),mL=hL;function gL(){return/(android|iphone|ipad|mobile)/i.test(navigator.userAgent)}function vL(e,{title:t,separator:n}){return Me(e,"whatsapp.url"),"https://"+(gL()?"api":"web")+".whatsapp.com/send"+xe({text:t?t+n+e:e})}const yL=Ie("whatsapp",vL,e=>({title:e.title,separator:e.separator||" "}),{windowWidth:550,windowHeight:400}),bL=yL;function xL(e,{quote:t,hashtag:n}){return Me(e,"workplace.url"),"https://work.facebook.com/sharer.php"+xe({u:e,quote:t,hashtag:n})}Ie("workplace",xL,e=>({quote:e.quote,hashtag:e.hashtag}),{windowWidth:550,windowHeight:400});const wL=As({color:"#000000",networkName:"X",path:"M 41.116 18.375 h 4.962 l -10.8405 12.39 l 12.753 16.86 H 38.005 l -7.821 -10.2255 L 21.235 47.625 H 16.27 l 11.595 -13.2525 L 15.631 18.375 H 25.87 l 7.0695 9.3465 z m -1.7415 26.28 h 2.7495 L 24.376 21.189 H 21.4255 z"}),CL=wL;function SL(e){return Qo({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M16 5l-1.42 1.42-1.59-1.59V16h-1.98V4.83L9.42 6.42 8 5l4-4 4 4zm4 5v11c0 1.1-.9 2-2 2H6a2 2 0 01-2-2V10c0-1.11.89-2 2-2h3v2H6v11h12V10h-3V8h3a2 2 0 012 2z"}}]})(e)}function PL(e){return Qo({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27L15.73 3zM19 14.9L14.9 19H9.1L5 14.9V9.1L9.1 5h5.8L19 9.1v5.8z"}},{tag:"circle",attr:{cx:"12",cy:"16",r:"1"}},{tag:"path",attr:{d:"M11 7h2v7h-2z"}}]})(e)}function $L(e){return Qo({tag:"svg",attr:{viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}},{tag:"path",attr:{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}},{tag:"path",attr:{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}},{tag:"path",attr:{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}}]})(e)}function EL(e){return Qo({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M4.75 17.25a.75.75 0 0 1 .75.75v2.25c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V18a.75.75 0 0 1 1.5 0v2.25A1.75 1.75 0 0 1 18.25 22H5.75A1.75 1.75 0 0 1 4 20.25V18a.75.75 0 0 1 .75-.75Z"}},{tag:"path",attr:{d:"M5.22 9.97a.749.749 0 0 1 1.06 0l4.97 4.969V2.75a.75.75 0 0 1 1.5 0v12.189l4.97-4.969a.749.749 0 1 1 1.06 1.06l-6.25 6.25a.749.749 0 0 1-1.06 0l-6.25-6.25a.749.749 0 0 1 0-1.06Z"}}]})(e)}function kL(){const e="250px",t="text-sm text-default-500 pointer-events-none flex-shrink-0",n="http://github.com",r="GitHub",[o,i]=ee.useState({}),s=l=>{i(u=>({...u,[l]:!u[l]}))},a=(l,u)=>{const c=document.createElement("a");c.href=l,c.download=u||"download",c.click()};return P.jsxs("div",{className:"mt-5",children:[P.jsx("h2",{className:"text-2xl font-bold",children:"More Arts"}),P.jsx("div",{className:"flex flex-wrap justify-start items-center gap-4 mt-4",children:Object.values(Wp).map((l,u)=>P.jsx("div",{className:"flex gap-4 flex-wrap",children:l.map((c,d)=>P.jsxs(E8,{shadow:"sm",isPressable:!0,onPress:()=>console.log("item pressed"),className:"relative overflow-hidden inline-block group transition-opacity duration-300 hover:opacity-90",style:{margin:"0 0 1.5em",width:e,height:"100%"},children:[P.jsx(P8,{className:"absolute z-10 top-1 flex-col !items-start opacity-0 group-hover:opacity-100 transition-opacity duration-300",children:P.jsxs("div",{className:"flex justify-between items-center w-full",children:[P.jsx("span",{className:"text-sm font-medium text-white",children:"Header Tumblr"}),P.jsx(Io,{className:o[d]?"bg-black text-white border-default-200":"",color:"danger",radius:"full",size:"sm",variant:o[d]?"bordered":"solid",onPress:()=>s(d),children:o[d]?"Saved":"Save"})]})}),P.jsx(jp,{removeWrapper:!0,shadow:"sm",radius:"lg",alt:c.name,className:"object-cover -z-1 w-full h-full",src:c.img}),P.jsx(S8,{className:"justify-between before:bg-white/10 overflow-hidden py-1 absolute before:rounded-sm rounded-small bottom-1 w-[calc(100%_-_5px)] shadow-small ml-1 z-10 opacity-0 transition-opacity duration-300 group-hover:opacity-100",children:P.jsxs("div",{className:"flex gap-4 items-center",children:[P.jsxs(Xd,{backdrop:"blur",children:[P.jsx(Yd,{children:P.jsx(Io,{size:"sm",className:"p-1",children:P.jsx(SL,{className:`${t} text-sm`})})}),P.jsxs(Gd,{variant:"faded","aria-label":"Static Actions",children:[P.jsx(ft,{className:"cursor-pointer",children:P.jsxs(RM,{url:n,title:r,className:"Demo__some-network__share-button flex items-center",children:[P.jsx(MM,{size:32,round:!0}),P.jsx("span",{className:"ml-2",children:"Facebook"})]})},"facebook"),P.jsx(ft,{className:"cursor-pointer",children:P.jsxs(bL,{url:n,title:r,className:"Demo__some-network__share-button flex items-center",children:[P.jsx(mL,{size:32,round:!0}),P.jsx("span",{className:"ml-2",children:"Whatsapp"})]})},"whatsapp"),P.jsx(ft,{className:"cursor-pointer",children:P.jsxs(uL,{url:n,title:r,className:"Demo__some-network__share-button flex items-center",children:[P.jsx(CL,{size:32,round:!0}),P.jsx("span",{className:"ml-2",children:"Twitter"})]})},"x"),P.jsx(ft,{className:"cursor-pointer",children:P.jsxs(tL,{url:n,title:r,className:"Demo__some-network__share-button flex items-center",children:[P.jsx(qM,{size:32,round:!0}),P.jsx("span",{className:"ml-2",children:"Reddit"})]})},"reddit"),P.jsx(ft,{className:"cursor-pointer",children:P.jsxs(TM,{url:n,title:r,className:"Demo__some-network__share-button flex items-center",children:[P.jsx(xM,{size:32,round:!0}),P.jsx("span",{className:"ml-2",children:"Email "})]})},"email")]})]}),P.jsxs(Xd,{children:[P.jsx(Yd,{children:P.jsx(Io,{size:"sm",className:"p-1",children:P.jsx($L,{className:`${t} text-sm`})})}),P.jsxs(Gd,{variant:"faded","aria-label":"Dropdown menu with icons",children:[P.jsx(ft,{onClick:()=>a(c.img,c.name),startContent:P.jsx(EL,{className:t}),children:"Download image"}),P.jsx(ft,{color:"danger",startContent:P.jsx(PL,{}),children:"Report"},"logout")]})]})]})})]},d))},u))})]})}function cu(e){return e[Math.floor(Math.random()*e.length)]}const TL=cu(D3),AL=cu(M3),ML=cu(L3),LL=cu(A3),DL=[{name:"Paintings",imageUrl:TL.img,tooltip:"Discover Paintings"},{name:"Landscapes",imageUrl:AL.img,tooltip:"Discover Landscapes"},{name:"Portraits",imageUrl:ML.img,tooltip:"Discover Portraits"},{name:"Abstracts",imageUrl:LL.img,tooltip:"Discover Abstracts"}],NL=({category:e})=>P.jsx(dw,{content:e.tooltip,placement:"top",color:"foreground",showArrow:!0,children:P.jsxs("div",{className:"flex flex-col items-center",children:[P.jsx(jp,{src:e.imageUrl,alt:e.name,isZoomed:!0,className:"w-24 h-24"}),P.jsx("span",{className:"mt-1 text-sm",children:e.name})]})}),IL=()=>P.jsxs("div",{className:"mt-5",children:[P.jsx("h2",{className:"text-xl font-semibold",children:"Categories"}),P.jsx("div",{className:"flex flex-wrap justify-start items-center gap-4 mt-4",children:DL.map(e=>P.jsx(NL,{category:e},e.name))})]}),RL=()=>P.jsxs("div",{className:"p-4 sm:p-6",children:[P.jsxs("div",{className:"flex flex-wrap justify-between items-center",children:[P.jsx("header",{className:"text-xl sm:text-2xl font-bold mb-2 sm:mb-0",children:"ArtistryHub."}),P.jsxs(E3,{to:"/artistry-hub/top-picks",className:"flex items-center text-sm sm:text-lg font-medium text-blue-500 hover:text-blue-600 transition duration-300 ease-in-out",children:["Explore Featured Artworks"," ",P.jsx($A,{className:"ml-1 sm:ml-2 text-base sm:text-lg"})]})]}),P.jsx("p",{className:"text-gray-700 text-sm sm:text-base mt-2",children:"Explore our world of creative designs."}),P.jsx(IL,{}),P.jsx(kL,{})]}),FL=()=>P.jsx("div",{className:"p-6",children:P.jsx("header",{className:"text-2xl font-bold",children:"Test"})}),OL=()=>P.jsx("div",{className:"",children:P.jsx("footer",{className:""})}),jL="/artistry-hub/assets/404image-HYVTqKlJ.png",_L=()=>P.jsx("div",{className:"flex flex-col justify-start items-start min-h-screen bg-gray-100 overflow-hidden p-10 ml-20",children:P.jsxs("div",{className:"flex items-center justify-between w-full p-10 ml-20",children:[P.jsxs("div",{className:"p-10 ml-20",children:[P.jsx("h1",{className:"text-4xl font-bold text-black-500 mb-10 mt-12",children:"ArtistryHub."}),P.jsx("h2",{className:"text-3xl font-bold text-black-500 mb-5",children:"404 Error."}),P.jsx("h2",{className:"text-3xl font-bold text-red-500",children:"Oops! Something went wrong."}),P.jsx("p",{className:"font-bold text-gray-400 mt-3",children:"This page does not exist."})]}),P.jsxs("div",{className:"text-6xl p-10 ml-20",children:[" ",P.jsx("img",{src:jL,alt:"Bot Image"})," "]})]})}),BL=()=>{const e=Object.values(Wp).flat().sort((t,n)=>n.likes-t.likes).slice(0,18);return P.jsxs("div",{className:"p-6",children:[P.jsx("header",{className:"text-2xl font-bold",children:"ArtistryHub."}),P.jsxs("div",{className:"mt-5",children:[P.jsx("h2",{className:"text-xl font-semibold mb-4",children:"Top Picks"}),P.jsx("div",{className:"top-picks-container flex flex-wrap overflow-x-auto",children:e.map(t=>P.jsx(dw,{content:t.name,placement:"bottom",color:"foreground",showArrow:!0,children:P.jsx("div",{className:"flex flex-col items-center mr-3 mb-3",children:P.jsx("div",{className:"w-48 h-48 rounded-lg overflow-hidden bg-white shadow-md border border-gray-300",children:P.jsx("img",{src:t.img,alt:t.name,className:"object-cover w-full h-full"})})})},t.name))})]})]})};function VL(){return P.jsxs("div",{className:"flex flex-col justify-start items-start min-h-screen bg-gray-100",children:[P.jsxs(bA,{children:[P.jsx(rM,{}),P.jsxs(pA,{children:[P.jsx($i,{exact:!0,path:"/artistry-hub/",element:P.jsx(RL,{})}),P.jsx($i,{exact:!0,path:"/artistry-hub/test",element:P.jsx(FL,{})}),P.jsx($i,{exact:!0,path:"/artistry-hub/top-picks",element:P.jsx(BL,{})}),P.jsx($i,{path:"*",element:P.jsx(_L,{})})]})]}),P.jsx(OL,{})]})}yc.createRoot(document.getElementById("root")).render(P.jsx(ee.StrictMode,{children:P.jsx(i$,{children:P.jsx(VL,{})})})); +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",s=0;s0)return aM(e);if(n==="number"&&isNaN(e)===!1)return t.long?uM(e):lM(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function aM(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]),r=(t[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*iM;case"days":case"day":case"d":return n*fs;case"hours":case"hour":case"hrs":case"hr":case"h":return n*ds;case"minutes":case"minute":case"mins":case"min":case"m":return n*cs;case"seconds":case"second":case"secs":case"sec":case"s":return n*us;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function lM(e){return e>=fs?Math.round(e/fs)+"d":e>=ds?Math.round(e/ds)+"h":e>=cs?Math.round(e/cs)+"m":e>=us?Math.round(e/us)+"s":e+"ms"}function uM(e){return ca(e,fs,"day")||ca(e,ds,"hour")||ca(e,cs,"minute")||ca(e,us,"second")||e+" ms"}function ca(e,t,n){if(!(e=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t.formatters.j=function(u){try{return JSON.stringify(u)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}};function o(u){var c=this.useColors;if(u[0]=(c?"%c":"")+this.namespace+(c?" %c":" ")+u[0]+(c?"%c ":" ")+"+"+t.humanize(this.diff),!!c){var d="color: "+this.color;u.splice(1,0,d,"color: inherit");var f=0,p=0;u[0].replace(/%[a-zA-Z%]/g,function(y){y!=="%%"&&(f++,y==="%c"&&(p=f))}),u.splice(p,0,d)}}function i(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(u){try{u==null?t.storage.removeItem("debug"):t.storage.debug=u}catch{}}function a(){var u;try{u=t.storage.debug}catch{}return!u&&typeof process<"u"&&"env"in process&&(u=n.DEBUG),u}t.enable(a());function l(){try{return window.localStorage}catch{}}})(ef,ef.exports);var dM=ef.exports,yv=dM("jsonp"),fM=mM,pM=0;function hM(){}function mM(e,t,n){typeof t=="function"&&(n=t,t={}),t||(t={});var r=t.prefix||"__jp",o=t.name||r+pM++,i=t.param||"callback",s=t.timeout!=null?t.timeout:6e4,a=encodeURIComponent,l=document.getElementsByTagName("script")[0]||document.head,u,c;s&&(c=setTimeout(function(){d(),n&&n(new Error("Timeout"))},s));function d(){u.parentNode&&u.parentNode.removeChild(u),window[o]=hM,c&&clearTimeout(c)}function f(){window[o]&&d()}return window[o]=function(p){yv("jsonp got",p),d(),n&&n(null,p)},e+=(~e.indexOf("?")?"&":"?")+i+"="+a(o),e=e.replace("?&","?"),yv('jsonp req "%s"',e),u=document.createElement("script"),u.src=e,l.parentNode.insertBefore(u,l),f}const Qr=Al(fM);var gM=Object.defineProperty,vM=Object.defineProperties,yM=Object.getOwnPropertyDescriptors,Tl=Object.getOwnPropertySymbols,R3=Object.prototype.hasOwnProperty,O3=Object.prototype.propertyIsEnumerable,bv=(e,t,n)=>t in e?gM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wt=(e,t)=>{for(var n in t||(t={}))R3.call(t,n)&&bv(e,n,t[n]);if(Tl)for(var n of Tl(t))O3.call(t,n)&&bv(e,n,t[n]);return e},lu=(e,t)=>vM(e,yM(t)),uu=(e,t)=>{var n={};for(var r in e)R3.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Tl)for(var r of Tl(e))t.indexOf(r)<0&&O3.call(e,r)&&(n[r]=e[r]);return n};function As(e){return n=>{var r=n,{bgStyle:o={},borderRadius:i=0,iconFillColor:s="white",round:a=!1,size:l=64}=r,u=uu(r,["bgStyle","borderRadius","iconFillColor","round","size"]);return P.jsxs("svg",lu(wt({viewBox:"0 0 64 64",width:l,height:l},u),{children:[a?P.jsx("circle",{cx:"32",cy:"32",r:"32",fill:e.color,style:o}):P.jsx("rect",{width:"64",height:"64",rx:i,ry:i,fill:e.color,style:o}),P.jsx("path",{d:e.path,fill:s})]}))}}const bM=As({color:"#7f7f7f",networkName:"email",path:"M17,22v20h30V22H17z M41.1,25L32,32.1L22.9,25H41.1z M20,39V26.6l12,9.3l12-9.3V39H20z"}),xM=bM;function xe(e){const t=Object.entries(e).filter(([,n])=>n!=null).map(([n,r])=>`${encodeURIComponent(n)}=${encodeURIComponent(String(r))}`);return t.length>0?`?${t.join("&")}`:""}const wM=e=>!!e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function",CM=(e,t)=>({left:window.outerWidth/2+(window.screenX||window.screenLeft||0)-e/2,top:window.outerHeight/2+(window.screenY||window.screenTop||0)-t/2}),SM=(e,t)=>({top:(window.screen.height-t)/2,left:(window.screen.width-e)/2});function PM(e,t,n){var r=t,{height:o,width:i}=r,s=uu(r,["height","width"]);const a=wt({height:o,width:i,location:"no",toolbar:"no",status:"no",directories:"no",menubar:"no",scrollbars:"yes",resizable:"no",centerscreen:"yes",chrome:"yes"},s),l=window.open(e,"",Object.keys(a).map(u=>`${u}=${a[u]}`).join(", "));if(n){const u=window.setInterval(()=>{try{(l===null||l.closed)&&(window.clearInterval(u),n(l))}catch(c){console.error(c)}},1e3)}return l}function $M(e){var t=e,{beforeOnClick:n,children:r,className:o,disabled:i,disabledStyle:s={opacity:.6},forwardedRef:a,networkLink:l,networkName:u,onClick:c,onShareWindowClose:d,openShareDialogOnClick:f=!0,opts:p,resetButtonStyle:y=!0,style:b,url:w,windowHeight:x=400,windowPosition:g="windowCenter",windowWidth:v=550}=t,S=uu(t,["beforeOnClick","children","className","disabled","disabledStyle","forwardedRef","networkLink","networkName","onClick","onShareWindowClose","openShareDialogOnClick","opts","resetButtonStyle","style","url","windowHeight","windowPosition","windowWidth"]);const k=async m=>{const L=l(w,p);if(!i){if(m.preventDefault(),n){const M=n();wM(M)&&await M}if(f){const M=wt({height:x,width:v},g==="windowCenter"?CM(v,x):SM(v,x));PM(L,M,d)}c&&c(m,L)}},A=I3("react-share__ShareButton",{"react-share__ShareButton--disabled":!!i,disabled:!!i},o),D=wt(wt(y?{backgroundColor:"transparent",border:"none",padding:0,font:"inherit",color:"inherit",cursor:"pointer"}:{},b),i&&s);return P.jsx("button",lu(wt({},S),{className:A,onClick:k,ref:a,style:D,children:r}))}function Ie(e,t,n,r){function o(i,s){const a=n(i),l=wt({},i);return Object.keys(a).forEach(c=>{delete l[c]}),P.jsx($M,lu(wt(wt({},r),l),{forwardedRef:s,networkName:e,networkLink:t,opts:n(i)}))}return o.displayName=`ShareButton-${e}`,h.forwardRef(o)}function EM(e,{subject:t,body:n,separator:r}){return"mailto:"+xe({subject:t,body:n?n+r+e:e})}const kM=Ie("email",EM,e=>({subject:e.subject,body:e.body,separator:e.separator||" "}),{openShareDialogOnClick:!1,onClick:(e,t)=>{window.location.href=t}}),TM=kM,AM=As({color:"#0965FE",networkName:"facebook",path:"M34.1,47V33.3h4.6l0.7-5.3h-5.3v-3.4c0-1.5,0.4-2.6,2.6-2.6l2.8,0v-4.8c-0.5-0.1-2.2-0.2-4.1-0.2 c-4.1,0-6.9,2.5-6.9,7V28H24v5.3h4.6V47H34.1z"}),MM=AM;function LM(e,{appId:t,redirectUri:n,to:r}){return"https://www.facebook.com/dialog/send"+xe({link:e,redirect_uri:n||e,app_id:t,to:r})}Ie("facebookmessenger",LM,e=>({appId:e.appId,redirectUri:e.redirectUri,to:e.to}),{windowWidth:1e3,windowHeight:820});class DM extends Error{constructor(t){super(t),this.name="AssertionError"}}function Me(e,t){if(!e)throw new DM(t)}function NM(e,{hashtag:t}){return Me(e,"facebook.url"),"https://www.facebook.com/sharer/sharer.php"+xe({u:e,hashtag:t})}const IM=Ie("facebook",NM,e=>({hashtag:e.hashtag}),{windowWidth:550,windowHeight:400}),RM=IM;function OM(){const e=h.useRef(!1);return h.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),h.useCallback(()=>e.current,[])}function FM(e){var t=e,{children:n=f=>f,className:r,getCount:o,url:i}=t,s=uu(t,["children","className","getCount","url"]);const a=OM(),[l,u]=h.useState(void 0),[c,d]=h.useState(!1);return h.useEffect(()=>{d(!0),o(i,f=>{a()&&(u(f),d(!1))})},[i]),P.jsx("span",lu(wt({className:I3("react-share__ShareCount",r)},s),{children:!c&&l!==void 0&&n(l)}))}function Zr(e){const t=n=>P.jsx(FM,wt({getCount:e},n));return t.displayName=`ShareCount(${e.name})`,t}function jM(e,t){const n=`https://graph.facebook.com/?id=${e}&fields=og_object{engagement}`;Qr(n,(r,o)=>{t(!r&&o&&o.og_object&&o.og_object.engagement?o.og_object.engagement.count:void 0)})}Zr(jM);function _M(e,{title:t}){return Me(e,"hatena.url"),`http://b.hatena.ne.jp/add?mode=confirm&url=${e}&title=${t}`}Ie("hatena",_M,e=>({title:e.title}),{windowWidth:660,windowHeight:460,windowPosition:"windowCenter"});function BM(e,t){Qr("https://bookmark.hatenaapis.com/count/entry"+xe({url:e}),(r,o)=>{t(o??void 0)})}Zr(BM);function VM(e,{title:t,description:n}){return Me(e,"instapaper.url"),"http://www.instapaper.com/hello2"+xe({url:e,title:t,description:n})}Ie("instapaper",VM,e=>({title:e.title,description:e.description}),{windowWidth:500,windowHeight:500,windowPosition:"windowCenter"});function KM(e,{title:t}){return Me(e,"line.url"),"https://social-plugins.line.me/lineit/share"+xe({url:e,text:t})}Ie("line",KM,e=>({title:e.title}),{windowWidth:500,windowHeight:500});function zM(e,{title:t,summary:n,source:r}){return Me(e,"linkedin.url"),"https://linkedin.com/shareArticle"+xe({url:e,mini:"true",title:t,summary:n,source:r})}Ie("linkedin",zM,({title:e,summary:t,source:n})=>({title:e,summary:t,source:n}),{windowWidth:750,windowHeight:600});function WM(e,{title:t,description:n}){return Me(e,"livejournal.url"),"https://www.livejournal.com/update.bml"+xe({subject:t,event:n})}Ie("livejournal",WM,e=>({title:e.title,description:e.description}),{windowWidth:660,windowHeight:460});function UM(e,{title:t,description:n,imageUrl:r}){return Me(e,"mailru.url"),"https://connect.mail.ru/share"+xe({url:e,title:t,description:n,image_url:r})}Ie("mailru",UM,e=>({title:e.title,description:e.description,imageUrl:e.imageUrl}),{windowWidth:660,windowHeight:460});function HM(e,{title:t,description:n,image:r}){return Me(e,"ok.url"),"https://connect.ok.ru/offer"+xe({url:e,title:t,description:n,imageUrl:r})}Ie("ok",HM,e=>({title:e.title,description:e.description,image:e.image}),{windowWidth:588,windowHeight:480,windowPosition:"screenCenter"});function GM(e,t){window.OK||(window.OK={Share:{count:function(i,s){var a,l;(l=(a=window.OK.callbacks)[i])==null||l.call(a,s)}},callbacks:[]});const n="https://connect.ok.ru/dk",r=window.OK.callbacks.length;return window.ODKL={updateCount(o,i){var s,a;const l=o===""?0:parseInt(o.replace("react-share-",""),10);(a=(s=window.OK.callbacks)[l])==null||a.call(s,i===""?void 0:parseInt(i,10))}},window.OK.callbacks.push(t),Qr(n+xe({"st.cmd":"extLike",uid:`react-share-${r}`,ref:e}))}Zr(GM);function YM(e,{media:t,description:n,pinId:r}){return r?`https://pinterest.com/pin/${r}/repin/x/`:(Me(e,"pinterest.url"),Me(t,"pinterest.media"),"https://pinterest.com/pin/create/button/"+xe({url:e,media:t,description:n}))}Ie("pinterest",YM,e=>({media:e.media,description:e.description,pinId:e.pinId}),{windowWidth:1e3,windowHeight:730});function XM(e,t){Qr("https://api.pinterest.com/v1/urls/count.json"+xe({url:e}),(r,o)=>{t(o?o.count:void 0)})}Zr(XM);function QM(e,{title:t}){return Me(e,"pocket.url"),"https://getpocket.com/save"+xe({url:e,title:t})}Ie("pocket",QM,e=>({title:e.title}),{windowWidth:500,windowHeight:500});const ZM=As({color:"#FF5700",networkName:"reddit",path:"M 53.34375 32 C 53.277344 30.160156 52.136719 28.53125 50.429688 27.839844 C 48.722656 27.148438 46.769531 27.523438 45.441406 28.800781 C 41.800781 26.324219 37.519531 24.957031 33.121094 24.863281 L 35.199219 14.878906 L 42.046875 16.320312 C 42.214844 17.882812 43.496094 19.09375 45.066406 19.171875 C 46.636719 19.253906 48.03125 18.183594 48.359375 16.644531 C 48.6875 15.105469 47.847656 13.558594 46.382812 12.992188 C 44.914062 12.425781 43.253906 13.007812 42.464844 14.367188 L 34.625 12.800781 C 34.363281 12.742188 34.09375 12.792969 33.871094 12.9375 C 33.648438 13.082031 33.492188 13.308594 33.441406 13.566406 L 31.070312 24.671875 C 26.617188 24.738281 22.277344 26.105469 18.59375 28.609375 C 17.242188 27.339844 15.273438 26.988281 13.570312 27.707031 C 11.863281 28.429688 10.746094 30.089844 10.71875 31.941406 C 10.691406 33.789062 11.757812 35.484375 13.441406 36.257812 C 13.402344 36.726562 13.402344 37.195312 13.441406 37.664062 C 13.441406 44.832031 21.792969 50.65625 32.097656 50.65625 C 42.398438 50.65625 50.753906 44.832031 50.753906 37.664062 C 50.789062 37.195312 50.789062 36.726562 50.753906 36.257812 C 52.363281 35.453125 53.371094 33.800781 53.34375 32 Z M 21.34375 35.199219 C 21.34375 33.433594 22.777344 32 24.542969 32 C 26.3125 32 27.742188 33.433594 27.742188 35.199219 C 27.742188 36.96875 26.3125 38.398438 24.542969 38.398438 C 22.777344 38.398438 21.34375 36.96875 21.34375 35.199219 Z M 39.9375 44 C 37.664062 45.710938 34.871094 46.582031 32.03125 46.464844 C 29.191406 46.582031 26.398438 45.710938 24.128906 44 C 23.847656 43.65625 23.871094 43.15625 24.183594 42.839844 C 24.5 42.527344 25 42.503906 25.34375 42.785156 C 27.269531 44.195312 29.617188 44.90625 32 44.800781 C 34.386719 44.929688 36.746094 44.242188 38.6875 42.847656 C 39.042969 42.503906 39.605469 42.511719 39.953125 42.863281 C 40.296875 43.21875 40.289062 43.785156 39.9375 44.128906 Z M 39.359375 38.527344 C 37.59375 38.527344 36.160156 37.09375 36.160156 35.328125 C 36.160156 33.5625 37.59375 32.128906 39.359375 32.128906 C 41.128906 32.128906 42.558594 33.5625 42.558594 35.328125 C 42.59375 36.203125 42.269531 37.054688 41.65625 37.6875 C 41.046875 38.316406 40.203125 38.664062 39.328125 38.65625 Z M 39.359375 38.527344"}),JM=ZM;function qM(e,{title:t}){return Me(e,"reddit.url"),"https://www.reddit.com/submit"+xe({url:e,title:t})}const eL=Ie("reddit",qM,e=>({title:e.title}),{windowWidth:660,windowHeight:460,windowPosition:"windowCenter"}),tL=eL;function nL(e,{title:t}){return Me(e,"gab.url"),"https://gab.com/compose"+xe({url:e,text:t})}Ie("gab",nL,e=>({title:e.title}),{windowWidth:660,windowHeight:640,windowPosition:"windowCenter"});function rL(e,t){const n=`https://www.reddit.com/api/info.json?limit=1&url=${e}`;Qr(n,{param:"jsonp"},(r,o)=>{t(!r&&o&&o.data&&o.data.children.length>0&&o.data.children[0].data.score?o.data.children[0].data.score:void 0)})}Zr(rL);function oL(e,{title:t}){return Me(e,"telegram.url"),"https://telegram.me/share/url"+xe({url:e,text:t})}Ie("telegram",oL,e=>({title:e.title}),{windowWidth:550,windowHeight:400});function iL(e,{title:t,caption:n,tags:r,posttype:o}){return Me(e,"tumblr.url"),"https://www.tumblr.com/widgets/share/tool"+xe({canonicalUrl:e,title:t,caption:n,tags:r,posttype:o})}Ie("tumblr",iL,e=>({title:e.title,tags:(e.tags||[]).join(","),caption:e.caption,posttype:e.posttype||"link"}),{windowWidth:660,windowHeight:460});function sL(e,t){return Qr("https://api.tumblr.com/v2/share/stats"+xe({url:e}),(r,o)=>{t(!r&&o&&o.response?o.response.note_count:void 0)})}Zr(sL);function aL(e,{title:t,via:n,hashtags:r=[],related:o=[]}){return Me(e,"twitter.url"),Me(Array.isArray(r),"twitter.hashtags is not an array"),Me(Array.isArray(o),"twitter.related is not an array"),"https://twitter.com/intent/tweet"+xe({url:e,text:t,via:n,hashtags:r.length>0?r.join(","):void 0,related:o.length>0?o.join(","):void 0})}const lL=Ie("twitter",aL,e=>({hashtags:e.hashtags,title:e.title,via:e.via,related:e.related}),{windowWidth:550,windowHeight:400}),uL=lL;function cL(e,{title:t,separator:n}){return Me(e,"viber.url"),"viber://forward"+xe({text:t?t+n+e:e})}Ie("viber",cL,e=>({title:e.title,separator:e.separator||" "}),{windowWidth:660,windowHeight:460});function dL(e,{title:t,image:n,noParse:r,noVkLinks:o}){return Me(e,"vk.url"),"https://vk.com/share.php"+xe({url:e,title:t,image:n,noparse:r?1:0,no_vk_links:o?1:0})}Ie("vk",dL,e=>({title:e.title,image:e.image,noParse:e.noParse,noVkLinks:e.noVkLinks}),{windowWidth:660,windowHeight:460});function fL(e,t){window.VK||(window.VK={}),window.VK.Share={count:(o,i)=>{var s,a;return(a=(s=window.VK.callbacks)==null?void 0:s[o])==null?void 0:a.call(s,i)}},window.VK.callbacks=[];const n="https://vk.com/share.php",r=window.VK.callbacks.length;return window.VK.callbacks.push(t),Qr(n+xe({act:"count",index:r,url:e}))}Zr(fL);function pL(e,{title:t,image:n}){return Me(e,"weibo.url"),"http://service.weibo.com/share/share.php"+xe({url:e,title:t,pic:n})}Ie("weibo",pL,e=>({title:e.title,image:e.image}),{windowWidth:660,windowHeight:550,windowPosition:"screenCenter"});const hL=As({color:"#25D366",networkName:"whatsapp",path:"m42.32286,33.93287c-0.5178,-0.2589 -3.04726,-1.49644 -3.52105,-1.66732c-0.4712,-0.17346 -0.81554,-0.2589 -1.15987,0.2589c-0.34175,0.51004 -1.33075,1.66474 -1.63108,2.00648c-0.30032,0.33658 -0.60064,0.36247 -1.11327,0.12945c-0.5178,-0.2589 -2.17994,-0.80259 -4.14759,-2.56312c-1.53269,-1.37217 -2.56312,-3.05503 -2.86603,-3.57283c-0.30033,-0.5178 -0.03366,-0.80259 0.22524,-1.06149c0.23301,-0.23301 0.5178,-0.59547 0.7767,-0.90616c0.25372,-0.31068 0.33657,-0.5178 0.51262,-0.85437c0.17088,-0.36246 0.08544,-0.64725 -0.04402,-0.90615c-0.12945,-0.2589 -1.15987,-2.79613 -1.58964,-3.80584c-0.41424,-1.00971 -0.84142,-0.88027 -1.15987,-0.88027c-0.29773,-0.02588 -0.64208,-0.02588 -0.98382,-0.02588c-0.34693,0 -0.90616,0.12945 -1.37736,0.62136c-0.4712,0.5178 -1.80194,1.76053 -1.80194,4.27186c0,2.51134 1.84596,4.945 2.10227,5.30747c0.2589,0.33657 3.63497,5.51458 8.80262,7.74113c1.23237,0.5178 2.1903,0.82848 2.94111,1.08738c1.23237,0.38836 2.35599,0.33657 3.24402,0.20712c0.99159,-0.15534 3.04985,-1.24272 3.47963,-2.45956c0.44013,-1.21683 0.44013,-2.22654 0.31068,-2.45955c-0.12945,-0.23301 -0.46601,-0.36247 -0.98382,-0.59548m-9.40068,12.84407l-0.02589,0c-3.05503,0 -6.08417,-0.82849 -8.72495,-2.38189l-0.62136,-0.37023l-6.47252,1.68286l1.73463,-6.29129l-0.41424,-0.64725c-1.70875,-2.71846 -2.6149,-5.85116 -2.6149,-9.07706c0,-9.39809 7.68934,-17.06155 17.15993,-17.06155c4.58253,0 8.88029,1.78642 12.11655,5.02268c3.23625,3.21036 5.02267,7.50812 5.02267,12.06476c-0.0078,9.3981 -7.69712,17.06155 -17.14699,17.06155m14.58906,-31.58846c-3.93529,-3.80584 -9.1133,-5.95471 -14.62789,-5.95471c-11.36055,0 -20.60848,9.2065 -20.61625,20.52564c0,3.61684 0.94757,7.14565 2.75211,10.26282l-2.92557,10.63564l10.93337,-2.85309c3.0136,1.63108 6.4052,2.4958 9.85634,2.49839l0.01037,0c11.36574,0 20.61884,-9.2091 20.62403,-20.53082c0,-5.48093 -2.14111,-10.64081 -6.03239,-14.51915"}),mL=hL;function gL(){return/(android|iphone|ipad|mobile)/i.test(navigator.userAgent)}function vL(e,{title:t,separator:n}){return Me(e,"whatsapp.url"),"https://"+(gL()?"api":"web")+".whatsapp.com/send"+xe({text:t?t+n+e:e})}const yL=Ie("whatsapp",vL,e=>({title:e.title,separator:e.separator||" "}),{windowWidth:550,windowHeight:400}),bL=yL;function xL(e,{quote:t,hashtag:n}){return Me(e,"workplace.url"),"https://work.facebook.com/sharer.php"+xe({u:e,quote:t,hashtag:n})}Ie("workplace",xL,e=>({quote:e.quote,hashtag:e.hashtag}),{windowWidth:550,windowHeight:400});const wL=As({color:"#000000",networkName:"X",path:"M 41.116 18.375 h 4.962 l -10.8405 12.39 l 12.753 16.86 H 38.005 l -7.821 -10.2255 L 21.235 47.625 H 16.27 l 11.595 -13.2525 L 15.631 18.375 H 25.87 l 7.0695 9.3465 z m -1.7415 26.28 h 2.7495 L 24.376 21.189 H 21.4255 z"}),CL=wL;function SL(e){return Qo({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M16 5l-1.42 1.42-1.59-1.59V16h-1.98V4.83L9.42 6.42 8 5l4-4 4 4zm4 5v11c0 1.1-.9 2-2 2H6a2 2 0 01-2-2V10c0-1.11.89-2 2-2h3v2H6v11h12V10h-3V8h3a2 2 0 012 2z"}}]})(e)}function PL(e){return Qo({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27L15.73 3zM19 14.9L14.9 19H9.1L5 14.9V9.1L9.1 5h5.8L19 9.1v5.8z"}},{tag:"circle",attr:{cx:"12",cy:"16",r:"1"}},{tag:"path",attr:{d:"M11 7h2v7h-2z"}}]})(e)}function $L(e){return Qo({tag:"svg",attr:{viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}},{tag:"path",attr:{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}},{tag:"path",attr:{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}},{tag:"path",attr:{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}}]})(e)}function EL(e){return Qo({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M4.75 17.25a.75.75 0 0 1 .75.75v2.25c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V18a.75.75 0 0 1 1.5 0v2.25A1.75 1.75 0 0 1 18.25 22H5.75A1.75 1.75 0 0 1 4 20.25V18a.75.75 0 0 1 .75-.75Z"}},{tag:"path",attr:{d:"M5.22 9.97a.749.749 0 0 1 1.06 0l4.97 4.969V2.75a.75.75 0 0 1 1.5 0v12.189l4.97-4.969a.749.749 0 1 1 1.06 1.06l-6.25 6.25a.749.749 0 0 1-1.06 0l-6.25-6.25a.749.749 0 0 1 0-1.06Z"}}]})(e)}function kL(){const e="250px",t="text-sm text-default-500 pointer-events-none flex-shrink-0",n="http://github.com",r="GitHub",[o,i]=ee.useState({}),s=l=>{i(u=>({...u,[l]:!u[l]}))},a=(l,u)=>{const c=document.createElement("a");c.href=l,c.download=u||"download",c.click()};return P.jsxs("div",{className:"mt-5",children:[P.jsx("h2",{className:"text-2xl font-bold",children:"More Arts"}),P.jsx("div",{className:"flex flex-wrap justify-start items-center gap-4 mt-4",children:Object.values(Wp).map((l,u)=>P.jsx("div",{className:"flex gap-4 flex-wrap",children:l.map((c,d)=>P.jsxs(E8,{shadow:"sm",isPressable:!0,onPress:()=>console.log("item pressed"),className:"relative overflow-hidden inline-block group transition-opacity duration-300 hover:opacity-90",style:{margin:"0 0 1.5em",width:e,height:"100%"},children:[P.jsx(P8,{className:"absolute z-10 top-1 flex-col !items-start opacity-0 group-hover:opacity-100 transition-opacity duration-300",children:P.jsxs("div",{className:"flex justify-between items-center w-full",children:[P.jsx("span",{className:"text-sm font-medium text-white",children:"Header Tumblr"}),P.jsx(Io,{className:o[d]?"bg-black text-white border-default-200":"",color:"danger",radius:"full",size:"sm",variant:o[d]?"bordered":"solid",onPress:()=>s(d),children:o[d]?"Saved":"Save"})]})}),P.jsx(jp,{removeWrapper:!0,shadow:"sm",radius:"lg",alt:c.name,className:"object-cover -z-1 w-full h-full",src:c.img}),P.jsx(S8,{className:"justify-between before:bg-white/10 overflow-hidden py-1 absolute before:rounded-sm rounded-small bottom-1 w-[calc(100%_-_5px)] shadow-small ml-1 z-10 opacity-0 transition-opacity duration-300 group-hover:opacity-100",children:P.jsxs("div",{className:"flex gap-4 items-center",children:[P.jsxs(Xd,{backdrop:"blur",children:[P.jsx(Yd,{children:P.jsx(Io,{size:"sm",className:"p-1",children:P.jsx(SL,{className:`${t} text-sm`})})}),P.jsxs(Gd,{variant:"faded","aria-label":"Static Actions",children:[P.jsx(ft,{className:"cursor-pointer",children:P.jsxs(RM,{url:n,title:r,className:"Demo__some-network__share-button flex items-center",children:[P.jsx(MM,{size:32,round:!0}),P.jsx("span",{className:"ml-2",children:"Facebook"})]})},"facebook"),P.jsx(ft,{className:"cursor-pointer",children:P.jsxs(bL,{url:n,title:r,className:"Demo__some-network__share-button flex items-center",children:[P.jsx(mL,{size:32,round:!0}),P.jsx("span",{className:"ml-2",children:"Whatsapp"})]})},"whatsapp"),P.jsx(ft,{className:"cursor-pointer",children:P.jsxs(uL,{url:n,title:r,className:"Demo__some-network__share-button flex items-center",children:[P.jsx(CL,{size:32,round:!0}),P.jsx("span",{className:"ml-2",children:"Twitter"})]})},"x"),P.jsx(ft,{className:"cursor-pointer",children:P.jsxs(tL,{url:n,title:r,className:"Demo__some-network__share-button flex items-center",children:[P.jsx(JM,{size:32,round:!0}),P.jsx("span",{className:"ml-2",children:"Reddit"})]})},"reddit"),P.jsx(ft,{className:"cursor-pointer",children:P.jsxs(TM,{url:n,title:r,className:"Demo__some-network__share-button flex items-center",children:[P.jsx(xM,{size:32,round:!0}),P.jsx("span",{className:"ml-2",children:"Email "})]})},"email")]})]}),P.jsxs(Xd,{children:[P.jsx(Yd,{children:P.jsx(Io,{size:"sm",className:"p-1",children:P.jsx($L,{className:`${t} text-sm`})})}),P.jsxs(Gd,{variant:"faded","aria-label":"Dropdown menu with icons",children:[P.jsx(ft,{onClick:()=>a(c.img,c.name),startContent:P.jsx(EL,{className:t}),children:"Download image"}),P.jsx(ft,{color:"danger",startContent:P.jsx(PL,{}),children:"Report"},"logout")]})]})]})})]},d))},u))})]})}function cu(e){return e[Math.floor(Math.random()*e.length)]}const TL=cu(D3),AL=cu(M3),ML=cu(L3),LL=cu(A3),DL=[{name:"Paintings",imageUrl:TL.img,tooltip:"Discover Paintings"},{name:"Landscapes",imageUrl:AL.img,tooltip:"Discover Landscapes"},{name:"Portraits",imageUrl:ML.img,tooltip:"Discover Portraits"},{name:"Abstracts",imageUrl:LL.img,tooltip:"Discover Abstracts"}],NL=({category:e})=>P.jsx(dw,{content:e.tooltip,placement:"top",color:"foreground",showArrow:!0,children:P.jsxs("div",{className:"flex flex-col items-center",children:[P.jsx(jp,{src:e.imageUrl,alt:e.name,isZoomed:!0,className:"w-24 h-24"}),P.jsx("span",{className:"mt-1 text-sm",children:e.name})]})}),IL=()=>P.jsxs("div",{className:"mt-5",children:[P.jsx("h2",{className:"text-xl font-semibold",children:"Categories"}),P.jsx("div",{className:"flex flex-wrap justify-start items-center gap-4 mt-4",children:DL.map(e=>P.jsx(NL,{category:e},e.name))})]}),RL=()=>P.jsxs("div",{className:"p-4 sm:p-6",children:[P.jsxs("div",{className:"flex flex-wrap justify-between items-center",children:[P.jsx("header",{className:"text-xl sm:text-2xl font-bold mb-2 sm:mb-0",children:"ArtistryHub."}),P.jsxs(E3,{to:"/artistry-hub/top-picks",className:"flex items-center text-sm sm:text-lg font-medium text-blue-500 hover:text-blue-600 transition duration-300 ease-in-out",children:["Explore Featured Artworks"," ",P.jsx($A,{className:"ml-1 sm:ml-2 text-base sm:text-lg"})]})]}),P.jsx("p",{className:"text-gray-700 text-sm sm:text-base mt-2",children:"Explore our world of creative designs."}),P.jsx(IL,{}),P.jsx(kL,{})]}),OL=()=>P.jsx("div",{className:"p-6",children:P.jsx("header",{className:"text-2xl font-bold",children:"Test"})}),FL=()=>P.jsx("div",{className:"",children:P.jsx("footer",{className:""})}),jL="/artistry-hub/assets/404image-HYVTqKlJ.png",_L=()=>P.jsx("div",{className:"flex flex-col justify-start items-start min-h-screen bg-gray-100 overflow-hidden p-10 ml-20",children:P.jsxs("div",{className:"flex items-center justify-between w-full p-10 ml-20",children:[P.jsxs("div",{className:"p-10 ml-20",children:[P.jsx("h1",{className:"text-4xl font-bold text-black-500 mb-10 mt-12",children:"ArtistryHub."}),P.jsx("h2",{className:"text-3xl font-bold text-black-500 mb-5",children:"404 Error."}),P.jsx("h2",{className:"text-3xl font-bold text-red-500",children:"Oops! Something went wrong."}),P.jsx("p",{className:"font-bold text-gray-400 mt-3",children:"This page does not exist."})]}),P.jsxs("div",{className:"text-6xl p-10 ml-20",children:[" ",P.jsx("img",{src:jL,alt:"Bot Image"})," "]})]})}),BL=()=>{const e=Object.values(Wp).flat().sort((t,n)=>n.likes-t.likes).slice(0,18);return P.jsxs("div",{className:"p-6",children:[P.jsx("header",{className:"text-2xl font-bold",children:"ArtistryHub."}),P.jsxs("div",{className:"mt-5",children:[P.jsx("h2",{className:"text-xl font-semibold mb-4",children:"Top Picks"}),P.jsx("div",{className:"top-picks-container flex flex-wrap overflow-x-auto",children:e.map(t=>P.jsx(dw,{content:t.name,placement:"bottom",color:"foreground",showArrow:!0,children:P.jsx("div",{className:"flex flex-col items-center mr-3 mb-3",children:P.jsx("div",{className:"w-48 h-48 rounded-lg overflow-hidden bg-white shadow-md border border-gray-300",children:P.jsx("img",{src:t.img,alt:t.name,className:"object-cover w-full h-full"})})})},t.name))})]})]})};function VL(){return P.jsxs("div",{className:"flex flex-col justify-start items-start min-h-screen bg-gray-100",children:[P.jsxs(bA,{children:[P.jsx(rM,{}),P.jsxs(pA,{children:[P.jsx($i,{exact:!0,path:"/artistry-hub/",element:P.jsx(RL,{})}),P.jsx($i,{exact:!0,path:"/artistry-hub/test",element:P.jsx(OL,{})}),P.jsx($i,{exact:!0,path:"/artistry-hub/top-picks",element:P.jsx(BL,{})}),P.jsx($i,{path:"*",element:P.jsx(_L,{})})]})]}),P.jsx(FL,{})]})}yc.createRoot(document.getElementById("root")).render(P.jsx(ee.StrictMode,{children:P.jsx(i$,{children:P.jsx(VL,{})})})); diff --git a/index.html b/index.html index e65e5ea..b7de550 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ ArtistryHub - +