1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,13090,(e,t,r)=>{"use strict";for(var n=[["Afghanistan (â«Ø§ÙØºØ§ÙØ³ØªØ§Ùâ¬â)","af","93","+..-..-...-...."],["Ã
land Islands","ax","358",""],["Albania (Shqipëri)","al","355","+...(...)...-..."],["Algeria (â«Ø§Ùجزائرâ¬â)","dz","213","+...-..-...-...."],["American Samoa","as","1684","+.(...)...-...."],["Andorra","ad","376","+...-...-..."],["Angola","ao","244","+...(...)...-..."],["Anguilla","ai","1264","+.(...)...-...."],["Antarctica","aq","672",""],["Antigua and Barbuda","ag","1268","+.(...)...-...."],["Argentina","ar","54","+..(...)...-...."],["Armenia (ÕÕ¡ÕµÕ¡Õ½Õ¿Õ¡Õ¶)","am","374","+...-..-...-..."],["Aruba","aw","297","+...-...-...."],["Australia","au","61","+.. ... ... ..."],["Austria (Ãsterreich)","at","43","+..(...)...-...."],["Azerbaijan (AzÉrbaycan)","az","994","+...-..-...-..-.."],["Bahamas","bs","1242","+.(...)...-...."],["Bahrain (â«Ø§ÙØ¨ØØ±ÙÙâ¬â)","bh","973","+...-....-...."],["Bangladesh (বাà¦à¦²à¦¾à¦¦à§à¦¶)","bd","880","+...-..-...-..."],["Barbados","bb","1246","+.(...)...-...."],["Belarus (ÐелаÑÑÑÑ)","by","375","+...(..)...-..-.."],["Belgium (België)","be","32","+.. ... .. .. .."],["Belize","bz","501","+...-...-...."],["Benin (Bénin)","bj","229","+...-..-..-...."],["Bermuda","bm","1441","+.(...)...-...."],["Bhutan (འà½à¾²à½´à½)","bt","975","+...-.-...-..."],["Bolivia","bo","591","+...-.-...-...."],["Bosnia and Herzegovina (ÐоÑна и ХеÑÑеговина)","ba","387","+...-..-...."],["Botswana","bw","267","+...-..-...-..."],["Bouvet Island","bv","47",""],["Brazil (Brasil)","br","55","+..-..-....-...."],["British Indian Ocean Territory","io","246","+...-...-...."],["British Virgin Islands","vg","1284","+.(...)...-...."],["Brunei","bn","673","+...-...-...."],["Bulgaria (ÐÑлгаÑиÑ)","bg","359","+...(...)...-..."],["Burkina Faso","bf","226","+...-..-..-...."],["Burundi (Uburundi)","bi","257","+...-..-..-...."],["Cambodia (ááááá»áá¶)","kh","855","+...-..-...-..."],["Cameroon (Cameroun)","cm","237","+...-....-...."],["Canada","ca","1","+. (...) ...-....",1,["204","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238","+...(...)..-.."],["Caribbean Netherlands","bq","599","+...-...-....",1],["Cayman Islands","ky","1345","+.(...)...-...."],["Central African Republic (République centrafricaine)","cf","236","+...-..-..-...."],["Chad (Tchad)","td","235","+...-..-..-..-.."],["Chile","cl","56","+..-.-....-...."],["China (ä¸å½)","cn","86","+.. ..-........"],["Christmas Island","cx","61",""],["Cocos (Keeling) Islands","cc","61",""],["Colombia","co","57","+..(...)...-...."],["Comoros (â«Ø¬Ø²Ø± اÙÙÙ
رâ¬â)","km","269","+...-..-....."],["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)","cd","243","+...(...)...-..."],["Congo (Republic) (Congo-Brazzaville)","cg","242","+...-..-...-...."],["Cook Islands","ck","682","+...-..-..."],["Costa Rica","cr","506","+... ....-...."],["Côte dâIvoire","ci","225","+...-..-...-..."],["Croatia (Hrvatska)","hr","385","+...-..-...-..."],["Cuba","cu","53","+..-.-...-...."],["Curaçao","cw","599","+...-...-....",0],["Cyprus (ÎÏÏÏοÏ)","cy","357","+...-..-...-..."],["Czech Republic (Äeská republika)","cz","420","+...(...)...-..."],["Denmark (Danmark)","dk","45","+.. .. .. .. .."],["Djibouti","dj","253","+...-..-..-..-.."],["Dominica","dm","1767","+.(...)...-...."],["Dominican Republic (República Dominicana)","do","1","+.(...)...-....",2,["809","829","849"]],["Ecuador","ec","593","+...-.-...-...."],["Egypt (â«Ù
صرâ¬â)","eg","20","+..(...)...-...."],["El Salvador","sv","503","+... ....-...."],["Equatorial Guinea (Guinea Ecuatorial)","gq","240","+...-..-...-...."],["Eritrea","er","291","+...-.-...-..."],["Estonia (Eesti)","ee","372","+...-...-...."],["Ethiopia","et","251","+...-..-...-...."],["Falkland Islands (Islas Malvinas)","fk","500","+...-....."],["Faroe Islands (Føroyar)","fo","298","+...-...-..."],["Fiji","fj","679","+...-..-....."],["Finland (Suomi)","fi","358","+... .. .... ...."],["France","fr","33","+.. . .. .. .. .."],["French Guiana (Guyane française)","gf","594","+...-.....-...."],["French Polynesia (Polynésie française)","pf","689","+...-..-..-.."],["French Southern and Antarctic Lands","tf","262",""],["Gabon","ga","241","+...-.-..-..-.."],["Gambia","gm","220","+...(...)..-.."],["Georgia (á¡áá¥áá ááááá)","ge","995","+...(...)...-..."],["Germany (Deutschland)","de","49","+.. ... ......."],["Ghana (Gaana)","gh","233","+...(...)...-..."],["Gibraltar","gi","350","+...-...-....."],["Greece (Îλλάδα)","gr","30","+..(...)...-...."],["Greenland (Kalaallit Nun
1aat)","gl","299","+...-..-..-.."],["Grenada","gd","1473","+.(...)...-...."],["Guadeloupe","gp","590","",0],["Guam","gu","1671","+.(...)...-...."],["Guatemala","gt","502","+... ....-...."],["Guernsey","gg","44",""],["Guinea (Guinée)","gn","224","+...-..-...-..."],["Guinea-Bissau (Guiné Bissau)","gw","245","+...-.-......"],["Guyana","gy","592","+...-...-...."],["Haiti","ht","509","+... ....-...."],["Heard Island and McDonald Islands","hm","672",""],["Honduras","hn","504","+...-....-...."],["Hong Kong (馿¸¯)","hk","852","+... .... ...."],["Hungary (Magyarország)","hu","36","+..(...)...-..."],["Iceland (Ãsland)","is","354","+... ... ...."],["India (à¤à¤¾à¤°à¤¤)","in","91","+.. .....-....."],["Indonesia","id","62","+..-..-...-.."],["Iran (â«Ø§ÛراÙâ¬â)","ir","98","+..(...)...-...."],["Iraq (â«Ø§ÙعراÙâ¬â)","iq","964","+...(...)...-...."],["Ireland","ie","353","+... .. ......."],["Isle of Man","im","44",""],["Israel (â«×שר××â¬â)","il","972","+...-.-...-...."],["Italy (Italia)","it","39","+.. ... ......",0],["Jamaica","jm","1876","+.(...)...-...."],["Japan (æ¥æ¬)","jp","81","+.. ... .. ...."],["Jersey","je","44",""],["Jordan (â«Ø§ÙأردÙâ¬â)","jo","962","+...-.-....-...."],["Kazakhstan (ÐазаÑ
ÑÑан)","kz","7","+. ... ...-..-..",1],["Kenya","ke","254","+...-...-......"],["Kiribati","ki","686","+...-..-..."],["Kosovo","xk","383",""],["Kuwait (â«Ø§ÙÙÙÙØªâ¬â)","kw","965","+...-....-...."],["Kyrgyzstan (ÐÑÑгÑзÑÑан)","kg","996","+...(...)...-..."],["Laos (ລາວ)","la","856","+...-..-...-..."],["Latvia (Latvija)","lv","371","+...-..-...-..."],["Lebanon (â«ÙØ¨ÙØ§Ùâ¬â)","lb","961","+...-.-...-..."],["Lesotho","ls","266","+...-.-...-...."],["Liberia","lr","231","+...-..-...-..."],["Libya (â«ÙÙØ¨Ùاâ¬â)","ly","218","+...-..-...-..."],["Liechtenstein","li","423","+...(...)...-...."],["Lithuania (Lietuva)","lt","370","+...(...)..-..."],["Luxembourg","lu","352","+...(...)...-..."],["Macau (æ¾³é)","mo","853","+...-....-...."],["Macedonia (FYROM) (ÐакедониÑа)","mk","389","+...-..-...-..."],["Madagascar (Madagasikara)","mg","261","+...-..-..-....."],["Malawi","mw","265","+...-.-....-...."],["Malaysia","my","60","+.. ..-....-...."],["Maldives","mv","960","+...-...-...."],["Mali","ml","223","+...-..-..-...."],["Malta","mt","356","+...-....-...."],["Marshall Islands","mh","692","+...-...-...."],["Martinique","mq","596","+...(...)..-..-.."],["Mauritania (â«Ù
ÙØ±ÙتاÙÙØ§â¬â)","mr","222","+...-..-..-...."],["Mauritius (Moris)","mu","230","+...-...-...."],["Mayotte","yt","262",""],["Mexico (México)","mx","52","+..-..-..-...."],["Micronesia","fm","691","+...-...-...."],["Moldova (Republica Moldova)","md","373","+...-....-...."],["Monaco","mc","377","+...-..-...-..."],["Mongolia (Ðонгол)","mn","976","+...-..-..-...."],["Montenegro (Crna Gora)","me","382","+...-..-...-..."],["Montserrat","ms","1664","+.(...)...-...."],["Morocco (â«Ø§ÙÙ
غربâ¬â)","ma","212","+...-..-....-..."],["Mozambique (Moçambique)","mz","258","+...-..-...-..."],["Myanmar (Burma) (áá¼ááºáá¬)","mm","95","+..-...-..."],["Namibia (Namibië)","na","264","+...-..-...-...."],["Nauru","nr","674","+...-...-...."],["Nepal (नà¥à¤ªà¤¾à¤²)","np","977","+...-..-...-..."],["Netherlands (Nederland)","nl","31","+.. .. ........"],["New Caledonia (Nouvelle-Calédonie)","nc","687","+...-..-...."],["New Zealand","nz","64","+.. ...-...-...."],["Nicaragua","ni","505","+...-....-...."],["Niger (Nijar)","ne","227","+...-..-..-...."],["Nigeria","ng","234","+...-..-...-.."],["Niue","nu","683","+...-...."],["Norfolk Island","nf","672","+...-...-..."],["North Korea (ì¡°ì 민주주ì ì¸ë¯¼ ê³µíêµ)","kp","850","+...-...-..."],["Northern Mariana Islands","mp","1670","+.(...)...-...."],["Norway (Norge)","no","47","+.. ... .. ..."],["Oman (â«Ø¹ÙÙ
اÙâ¬â)","om","968","+...-..-...-..."],["Pakistan (â«Ù¾Ø§Ú©Ø³ØªØ§Ùâ¬â)","pk","92","+.. ...-......."],["Palau","pw","680","+...-...-...."],["Palestine (â«ÙÙØ³Ø·ÙÙâ¬â)","ps","970","+...-..-...-...."],["Panama (Panamá)","pa","507","+...-...-...."],["Papua New Guinea","pg","675","+...(...)..-..."],["Paraguay","py","595","+...(...)...-..."],["Peru (Perú)","pe","51","+..(...)...-..."],["Philippines","ph","63","+.. ... ...."],["Pitcairn Islands","pn","64",""],["Poland (Polska)","pl","48","+.. ...-...-..."],["Portugal","pt","351","+...-..-...-...."],["Puerto Rico","pr","1","+. (...) ...-....",3,["787","939"]],["Qatar (â«Ùطرâ¬â)","qa","974","+...-....-...."],["Réunion (La Réunion)","re","262","+...-.....-...."],["Romania (România)","ro","40","+..-..-...-...."],["Russia (РоÑÑиÑ)","ru","7","+. ... ...-..-..",0],["Rwanda","rw","250","+...(...)...-..."],["Saint Barthélemy (Saint-Barthélemy)","bl","590","",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1869","+.(...)...-...."],["Saint Lucia","lc","1758","+.(...)...-...."],["Saint Martin (Saint-Martin (partie française))","mf","590","",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1784","+.(...)...-...."],["Samoa","ws","685","+...-..-...."],["San Marino","sm","378","+...-....-......"],["São Tomé and PrÃncipe (São Tomé e PrÃncipe)","st","239","+...-..-....."],["Saudi Arabia (â«Ø§ÙÙ
Ù
ÙÙØ© Ø§ÙØ¹Ø±Ø¨ÙØ© Ø§ÙØ³Ø¹ÙØ¯ÙØ©â¬â)","sa","966","+...-..-...-...."],["Senegal (Sénégal)","sn","221","+...-..-...-...."],["Serbia (СÑбиÑа)","rs","381","+...-..-...-...."],["Seychelles","sc","248","+...-.-...-..."],["Sierra Leone","sl","232","+...-..-......"],["Singapore","sg","65","+.. ....-...."],["Sint Maarten","sx","1721","+.(...)...-...."],["Slovakia (Slovensko)","sk","421","+...(...)...-..."],["Slovenia (Slovenija)","si","386","+...-..-...-..."],["Solomon Islands","sb","677","+...-....."],["Somalia (Soomaaliya)","so","252","+...-.-...-..."],["South Africa","za","27","+..-..-...-...."],["South Georgia and the South Sandwich Islands","gs","500",""],["South Korea (ëí민êµ)","kr","82","+..-..-...-...."],["South Sudan (â«Ø¬ÙÙØ¨ Ø§ÙØ³ÙداÙâ¬â)","ss","211","+...-..-...-...."],["Spain (España)","es","34","+.. ... ... ..."],["Sri Lanka (à·à·âර෠ලà¶à¶à·à·)","lk","94","+..-..-...-...."],["Sudan (â«Ø§ÙØ³ÙØ¯Ø§Ùâ¬â)","sd","249","+...-..-...-...."],["Suriname","sr","597","+...-...-..."],["Svalbard and Jan Mayen","sj","47",""],["Swaziland","sz","268","+...-..-..-...."],["Swede
1n (Sverige)","se","46","+.. .. ... .. .."],["Switzerland (Schweiz)","ch","41","+.. .. ... .. .."],["Syria (â«Ø³ÙØ±ÙØ§â¬â)","sy","963","+...-..-....-..."],["Taiwan (å°ç£)","tw","886","+...-....-...."],["Tajikistan","tj","992","+...-..-...-...."],["Tanzania","tz","255","+...-..-...-...."],["Thailand (à¹à¸à¸¢)","th","66","+..-..-...-..."],["Timor-Leste","tl","670","+...-...-...."],["Togo","tg","228","+...-..-...-..."],["Tokelau","tk","690","+...-...."],["Tonga","to","676","+...-....."],["Trinidad and Tobago","tt","1868","+.(...)...-...."],["Tunisia (â«ØªÙÙØ³â¬â)","tn","216","+...-..-...-..."],["Turkey (Türkiye)","tr","90","+.. ... ... .. .."],["Turkmenistan","tm","993","+...-.-...-...."],["Turks and Caicos Islands","tc","1649","+.(...)...-...."],["Tuvalu","tv","688","+...-....."],["U.S. Virgin Islands","vi","1340","+.(...)...-...."],["Uganda","ug","256","+...(...)...-..."],["Ukraine (УкÑаÑна)","ua","380","+...(..)...-..-.."],["United Arab Emirates (â«Ø§ÙØ¥Ù
ارات Ø§ÙØ¹Ø±Ø¨ÙØ© اÙÙ
ØªØØ¯Ø©â¬â)","ae","971","+...-.-...-...."],["United Kingdom","gb","44","+.. .... ......"],["United States","us","1","+. (...) ...-....",0],["United States Minor Outlying Islands","um","1","",2],["Uruguay","uy","598","+...-.-...-..-.."],["Uzbekistan (OÊ»zbekiston)","uz","998","+...-..-...-...."],["Vanuatu","vu","678","+...-....."],["Vatican City (Città del Vaticano)","va","39","+.. .. .... ....",1],["Venezuela","ve","58","+..(...)...-...."],["Vietnam (Viá»t Nam)","vn","84","+..-..-....-..."],["Wallis and Futuna","wf","681","+...-..-...."],["Western Sahara","eh","212","+...-..-...."],["Yemen (â«Ø§ÙÙÙ
Ùâ¬â)","ye","967","+...-.-...-..."],["Zambia","zm","260","+...-..-...-...."],["Zimbabwe","zw","263","+...-.-......"]],i={},o={},a=function(e,t,r){t in i||(i[t]=[]),i[t][r||0]=e},l=0;l<n.length;l++){var s=n[l];if(n[l]={name:s[0],iso2:s[1],dialCode:s[2],priority:s[4]||0},s[3]&&(n[l].format=s[3]),s[5]){n[l].hasAreaCodes=!0;for(var u=0;u<s[5].length;u++){var c=s[2]+s[5][u];a(s[1],c)}}o[n[l].iso2]=l,a(s[1],s[2],s[4])}t.exports={allCountries:n,iso2Lookup:o,allCountryCodes:i}},10810,e=>{"use strict";let t;var r,n,i,o,a,l,s,u,c=e.i(43476),d=e.i(71645),f=e.i(46932),p=e.i(54513),m=e.i(5766),h=e.i(67881),g=e.i(47163);let y=d.forwardRef(({className:e,type:t,...r},n)=>(0,c.jsx)("input",{type:t,className:(0,g.cn)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
1ing-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...r}));y.displayName="Input";let v=d.forwardRef(({className:e,...t},r)=>(0,c.jsx)("textarea",{className:(0,g.cn)("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...t}));v.displayName="Textarea";var x=e.i(74080),w=e.i(91918),b=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,w.createSlot)(`Primitive.${t}`),n=d.forwardRef((e,n)=>{let{asChild:i,...o}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,c.jsx)(i?r:t,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),C=d.forwardRef((e,t)=>(0,c.jsx)(b.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));C.displayName="Label";let S=(0,e.i(25913).cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),E=d.forwardRef(({className:e,...t},r)=>(0,c.jsx)(C,{ref:r,className:(0,g.cn)(S(),e),...t}));function R(e,[t,r]){return Math.min(r,Math.max(t,e))}function j(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}function N(e,t=[]){let r=[],n=()=>{let t=r.map(e=>d.createContext(e));return function(r){let n=r?.[e]||t;return d.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return n.scopeName=e,[function(t,n){let i=d.createContext(n),o=r.length;r=[...r,n];let a=t=>{let{scope:r,children:n,...a}=t,l=r?.[e]?.[o]||i,s=d.useMemo(()=>a,Object.values(a));return(0,c.jsx)(l.Provider,{value:s,children:n})};return a.displayName=t+"Provider",[a,function(r,a){let l=a?.[e]?.[o]||i,s=d.useContext(l);if(s)return s;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(n,...t)]}E.displayName=C.displayName,"undefined"!=typeof window&&window.document&&window.document.createElement;var k=e.i(20783);function P(e){var t;let r,n=(t=e,(r=d.forwardRef((e,t)=>{let{children:r,...n}=e;if(d.isValidElement(r)){var i;let e,o,a=(i=r,(o=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(o=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),l=function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==d.Fragment&&(l.ref=t?(0,k.composeRefs)(t,a):a),d.cloneElement(r,l)}return d.Children.count(r)>1?d.Children.only(null):null})).displayName=`${t}.SlotClone`,r),i=d.forwardRef((e,t)=>{let{children:r,...i}=e,o=d.Children.toArray(r),a=o.find(T);if(a){let e=a.props.children,r=o.map(t=>t!==a?t:d.Children.count(e)>1?d.Children.only(null):d.isValidElement(e)?e.props.children:null);return(0,c.jsx)(n,{...i,ref:t,children:d.isValidElement(e)?d.cloneElement(e,void 0,r):null})}return(0,c.jsx)(n,{...i,ref:t,children:r})});return i.displayName=`${e}.Slot`,i}var A=Symbol("radix.slottable");function T(e){return d.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===A}var M=new WeakMap;function L(e,t){var r,n;let i,o,a;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let l=(r=e,n=t,i=r.length,(a=(o=O(n))>=0?o:i+o)<0||a>=i?-1:a);return -1===l?void 0:e[l]}function O(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],M.set(this,!0)}set(e,t){return M.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let n,i=this.has(t),o=this.#e.length,a=O(e),l=a>=0?a:o+a,s=l<0||l>=o?-1:l;if(s===this.size||i&&s===this.size-1||-1===s)return this.set(t,r),this;let u=this.size+ +!i;a<0&&l++;let c=[...this.#e],d=!1;for(let e=l;e<u;e++)if(l===e){let o=c[e];c[e]===t&&(o=c[e+1]),i&&this.delete(t),n=this.get(o),this.set(t,r)}else{d||c[e-1]!==t||(d=!0);let r=c[d?e:e-1],i=n;n=this.get(r),this.delete(r),this.set(r,i)}return this}with(t,r,n){let i=new e(this);return i.insert(t,r,n),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=L(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=L(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return L(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],i=0;for(let e of this)Reflect.apply(t,r,[e,i,this])&&n.push(e),i++;return new e(n)}map(t,r){let n=[],i=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,i,this])]),i++;return new e(n)}reduce(...e){let[t,r]=e,n=0,i=r??this.at(0);for(let r of this)i=0===n&&1===e.length?r:Reflect.apply(t,this,[i,r,n,this]),n++;return i}reduceRight(...e){let[t,r]=e,n=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let i=this.at(r);
1n=r===this.size-1&&1===e.length?i:Reflect.apply(t,this,[n,i,r,this])}return n}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let n=new e,i=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(i=r-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}});var I=d.createContext(void 0),D=Symbol("radix.slottable");function B(e){return d.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===D}var z=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{var r,n;let i,o,a,l=(n=r=`Primitive.${t}`,(i=d.forwardRef((e,t)=>{let{children:r,...n}=e;if(d.isValidElement(r)){var i;let e,o,a=(i=r,(o=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(o=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),l=function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==d.Fragment&&(l.ref=t?(0,k.composeRefs)(t,a):a),d.cloneElement(r,l)}return d.Children.count(r)>1?d.Children.only(null):null})).displayName=`${n}.SlotClone`,o=i,(a=d.forwardRef((e,t)=>{let{children:r,...n}=e,i=d.Children.toArray(r),a=i.find(B);if(a){let e=a.props.children,r=i.map(t=>t!==a?t:d.Children.count(e)>1?d.Children.only(null):d.isValidElement(e)?e.props.children:null);return(0,c.jsx)(o,{...n,ref:t,children:d.isValidElement(e)?d.cloneElement(e,void 0,r):null})}return(0,c.jsx)(o,{...n,ref:t,children:r})})).displayName=`${r}.Slot`,a),s=d.forwardRef((e,r)=>{let{asChild:n,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,c.jsx)(n?l:t,{...i,ref:r})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function W(e){let t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...e)=>t.current?.(...e),[])}var _="dismissableLayer.update",F=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),V=d.forwardRef((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:a,onDismiss:l,...u}=e,f=d.useContext(F),[p,m]=d.useState(null),h=p?.ownerDocument??globalThis?.document,[,g]=d.useState({}),y=(0,k.useComposedRefs)(t,e=>m(e)),v=Array.from(f.layers),[x]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),w=v.indexOf(x),b=p?v.indexOf(p):-1,C=f.layersWithOutsidePointerEventsDisabled.size>0,S=b>=w,E=function(e,t=globalThis?.document){let r=W(e),n=d.useRef(!1),i=d.useRef(()=>{});return d.useEffect(()=>{let e=e=>{if(e.target&&!n.current){let n=function(){H("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=n,t.addEventListener("click",i.current,{once:!0})):n()}else t.removeEventListener("click",i.current);n.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}(e=>{let t=e.target,r=[...f.branches].some(e=>e.contains(t));S&&!r&&(i?.(e),a?.(e),e.defaultPrevented||l?.())},h),R=function(e,t=globalThis?.document){let r=W(e),n=d.useRef(!1);return d.useEffect(()=>{let e=e=>{e.target&&!n.current&&H("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{let t=e.target;![...f.branches].some(e=>e.contains(t))&&(o?.(e),a?.(e),e.defaultPrevented||l?.())},h);return!function(e,t=globalThis?.document){let r=W(e);d.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{b===f.layers.size-1&&(n?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))},h),d.useEffect(()=>{if(p)return r&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(s=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(p)),f.layers.add(p),$(),()=>{r&&1===f.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=s)}},[p,h,r,f]),d.useEffect(()=>()=>{p&&(f.layers.delete(p),f.layersWithOutsidePointerEventsDisabled.delete(p),$())},[p,f]),d.useEffect(()=>{let e=()=>g({});return document.addEventListener(_,e),()=>document.removeEventListener(_,e)},[]),(0,c.jsx)(z.div,{...u,ref:y,style:{pointerEvents:C?S?"auto":"none":void 0,...e.style},onFocusCapture:j(e.onFocusCapture,R.onFocusCapture),onBlurCapture:j(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:j(e.onPointerDownCapture,E.onPointerDownCapture)})});function $(){let e=new CustomEvent(_);document.dispatchEvent(e)}function H(e,t,r,{discrete:n}){let i=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});if(t&&i.addEventListener(e,t,{once:!0}),n)i&&x.flushSync(()=>i.dispatchEvent(o));else i.dispatchEvent(o)}V.displayName="DismissableLayer",d.forwardRef((e,t)=>
1{let r=d.useContext(F),n=d.useRef(null),i=(0,k.useComposedRefs)(t,n);return d.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,c.jsx)(z.div,{...e,ref:i})}).displayName="DismissableLayerBranch";var K=0;function q(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var G=Symbol("radix.slottable");function U(e){return d.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===G}var Y=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{var r,n;let i,o,a,l=(n=r=`Primitive.${t}`,(i=d.forwardRef((e,t)=>{let{children:r,...n}=e;if(d.isValidElement(r)){var i;let e,o,a=(i=r,(o=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(o=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),l=function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==d.Fragment&&(l.ref=t?(0,k.composeRefs)(t,a):a),d.cloneElement(r,l)}return d.Children.count(r)>1?d.Children.only(null):null})).displayName=`${n}.SlotClone`,o=i,(a=d.forwardRef((e,t)=>{let{children:r,...n}=e,i=d.Children.toArray(r),a=i.find(U);if(a){let e=a.props.children,r=i.map(t=>t!==a?t:d.Children.count(e)>1?d.Children.only(null):d.isValidElement(e)?e.props.children:null);return(0,c.jsx)(o,{...n,ref:t,children:d.isValidElement(e)?d.cloneElement(e,void 0,r):null})}return(0,c.jsx)(o,{...n,ref:t,children:r})})).displayName=`${r}.Slot`,a),s=d.forwardRef((e,r)=>{let{asChild:n,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,c.jsx)(n?l:t,{...i,ref:r})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),Z="focusScope.autoFocusOnMount",X="focusScope.autoFocusOnUnmount",J={bubbles:!1,cancelable:!0},Q=d.forwardRef((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...a}
1=e,[l,s]=d.useState(null),u=W(i),f=W(o),p=d.useRef(null),m=(0,k.useComposedRefs)(t,e=>s(e)),h=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(n){let e=function(e){if(h.paused||!l)return;let t=e.target;l.contains(t)?p.current=t:er(p.current,{select:!0})},t=function(e){if(h.paused||!l)return;let t=e.relatedTarget;null!==t&&(l.contains(t)||er(p.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&er(l)});return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[n,l,h.paused]),d.useEffect(()=>{if(l){en.add(h);let e=document.activeElement;if(!l.contains(e)){let t=new CustomEvent(Z,J);l.addEventListener(Z,u),l.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(er(n,{select:t}),document.activeElement!==r)return}(ee(l).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&er(l))}return()=>{l.removeEventListener(Z,u),setTimeout(()=>{let t=new CustomEvent(X,J);l.addEventListener(X,f),l.dispatchEvent(t),t.defaultPrevented||er(e??document.body,{select:!0}),l.removeEventListener(X,f),en.remove(h)},0)}}},[l,u,f,h]);let g=d.useCallback(e=>{if(!r&&!n||h.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){var o;let t,n=e.currentTarget,[a,l]=[et(t=ee(o=n),o),et(t.reverse(),o)];a&&l?e.shiftKey||i!==l?e.shiftKey&&i===a&&(e.preventDefault(),r&&er(l,{select:!0})):(e.preventDefault(),r&&er(a,{select:!0})):i===n&&e.preventDefault()}},[r,n,h.paused]);return(0,c.jsx)(Y.div,{tabIndex:-1,...a,ref:m,onKeyDown:g})});function ee(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function et(e,t){for(let r of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function er(e,{select:t=!1}={}){if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}Q.displayName="FocusScope";var en=(t=[],{add(e){let r=t[0];e!==r&&r?.pause(),(t=ei(t,e)).unshift(e)},remove(e){t=ei(t,e),t[0]?.resume()}});function ei(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}var eo=globalThis?.document?d.useLayoutEffect:()=>{},ea=d[" useId ".trim().toString()]||(()=>void 0),el=0;function es(e){let[t,r]=d.useState(ea());return eo(()=>{e||r(e=>e??String(el++))},[e]),e||(t?`radix-${t}`:"")}let eu=["top","right","bottom","left"],ec=Math.min,ed=Math.max,ef=Math.round,ep=Math.floor,em=e=>({x:e,y:e}),eh={left:"right",right:"left",bottom:"top",top:"bottom"},eg={start:"end",end:"start"};function ey(e,t){return"function"==typeof e?e(t):e}function ev(e){return e.split("-")[0]}function ex(e){return e.split("-")[1]}function ew(e){return"x"===e?"y":"x"}function eb(e){return"y"===e?"height":"width"}let eC=new Set(["top","bottom"]);function eS(e){return eC.has(ev(e))?"y":"x"}function eE(e){return e.replace(/start|end/g,e=>eg[e])}let eR=["left","right"],ej=["right","left"],eN=["top","bottom"],ek=["bottom","top"];function eP(e){return e.replace(/left|right|bottom|top/g,e=>eh[e])}function eA(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function eT(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function eM(e,t,r){let n,{reference:i,floating:o}=e,a=eS(t),l=ew(eS(t)),s=eb(l),u=ev(t),c="y"===a,d=i.x+i.width/2-o.width/2,f=i.y+i.height/2-o.height/2,p=i[s]/2-o[s]/2;switch(u){case"top":n={x:d,y:i.y-o.height};break;case"bottom":n={x:d,y:i.y+i.height};break;case"right":n={x:i.x+i.width,y:f};break;case"left":n={x:i.x-o.width,y:f};break;default:n={x:i.x,y:i.y}}switch(ex(t)){case"start":n[l]-=p*(r&&c?-1:1);break;case"end":n[l]+=p*(r&&c?-1:1)}return n}let eL=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:a}
1=r,l=o.filter(Boolean),s=await (null==a.isRTL?void 0:a.isRTL(t)),u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=eM(u,n,s),f=n,p={},m=0;for(let r=0;r<l.length;r++){let{name:o,fn:h}=l[r],{x:g,y:y,data:v,reset:x}=await h({x:c,y:d,initialPlacement:n,placement:f,strategy:i,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=y?y:d,p={...p,[o]:{...p[o],...v}},x&&m<=50&&(m++,"object"==typeof x&&(x.placement&&(f=x.placement),x.rects&&(u=!0===x.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:c,y:d}=eM(u,f,s)),r=-1)}return{x:c,y:d,placement:f,strategy:i,middlewareData:p}};async function eO(e,t){var r;void 0===t&&(t={});let{x:n,y:i,platform:o,rects:a,elements:l,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=ey(t,e),m=eA(p),h=l[f?"floating"===d?"reference":"floating":d],g=eT(await o.getClippingRect({element:null==(r=await (null==o.isElement?void 0:o.isElement(h)))||r?h:h.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(l.floating)),boundary:u,rootBoundary:c,strategy:s})),y="floating"===d?{x:n,y:i,width:a.floating.width,height:a.floating.height}:a.reference,v=await (null==o.getOffsetParent?void 0:o.getOffsetParent(l.floating)),x=await (null==o.isElement?void 0:o.isElement(v))&&await (null==o.getScale?void 0:o.getScale(v))||{x:1,y:1},w=eT(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:v,strategy:s}):y);return{top:(g.top-w.top+m.top)/x.y,bottom:(w.bottom-g.bottom+m.bottom)/x.y,left:(g.left-w.left+m.left)/x.x,right:(w.right-g.right+m.right)/x.x}}function eI(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function eD(e){return eu.some(t=>e[t]>=0)}let eB=new Set(["left","top"]);async function ez(e,t){let{placement:r,platform:n,elements:i}=e,o=await (null==n.isRTL?void 0:n.isRTL(i.floating)),a=ev(r),l=ex(r),s="y"===eS(r),u=eB.has(a)?-1:1,c=o&&s?-1:1,d=ey(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&"number"==typeof m&&(p="end"===l?-1*m:m),s?{x:p*c,y:f*u}:{x:f*u,y:p*c}}function eW(){return"undefined"!=typeof window}function e_(e){return e$(e)?(e.nodeName||"").toLowerCase():"#document"}function eF(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function eV(e){var t;return null==(t=(e$(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function e$(e){return!!eW()&&(e instanceof Node||e instanceof eF(e).Node)}function eH(e){return!!eW()&&(e instanceof Element||e instanceof eF(e).Element)}function eK(e){return!!eW()&&(e instanceof HTMLElement||e instanceof eF(e).HTMLElement)}function eq(e){return!!eW()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof eF(e).ShadowRoot)}let eG=new Set(["inline","contents"]);function eU(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=e6(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!eG.has(i)}let eY=new Set(["table","td","th"]),eZ=[":popover-open",":modal"];function eX(e){return eZ.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let eJ=["transform","translate","scale","rotate","perspective"],eQ=["transform","translate","scale","rotate","perspective","filter"],e0=["paint","layout","strict","content"];function e1(e){let t=e2(),r=eH(e)?e6(e):e;return eJ.some(e=>!!r[e]&&"none"!==r[e])||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||eQ.some(e=>(r.willChange||"").includes(e))||e0.some(e=>(r.contain||"").includes(e))}function e2(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let e5=new Set(["html","body","#document"]);function e3(e){return e5.has(e_(e))}function e6(e){return eF(e).getComputedStyle(e)}function e4(e){return eH(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function e7(e){if("html"===e_(e))return e;let t=e.assignedSlot||e.parentNode||eq(e)&&e.host||eV(e);return eq(t)?t.host:t}function e9(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let i=function e(t){let r=e7(t);return e3(r)?t.ownerDocument?t.ownerDocument.body:t.body:eK(r)&&eU(r)?r:e(r)}(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),a=eF(i);if(o){let e=e8(a);
1return t.concat(a,a.visualViewport||[],eU(i)?i:[],e&&r?e9(e):[])}return t.concat(i,e9(i,[],r))}function e8(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function te(e){let t=e6(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=eK(e),o=i?e.offsetWidth:r,a=i?e.offsetHeight:n,l=ef(r)!==o||ef(n)!==a;return l&&(r=o,n=a),{width:r,height:n,$:l}}function tt(e){return eH(e)?e:e.contextElement}function tr(e){let t=tt(e);if(!eK(t))return em(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=te(t),a=(o?ef(r.width):r.width)/n,l=(o?ef(r.height):r.height)/i;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}let tn=em(0);function ti(e){let t=eF(e);return e2()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:tn}function to(e,t,r,n){var i;void 0===t&&(t=!1),void 0===r&&(r=!1);let o=e.getBoundingClientRect(),a=tt(e),l=em(1);t&&(n?eH(n)&&(l=tr(n)):l=tr(e));let s=(void 0===(i=r)&&(i=!1),n&&(!i||n===eF(a))&&i)?ti(a):em(0),u=(o.left+s.x)/l.x,c=(o.top+s.y)/l.y,d=o.width/l.x,f=o.height/l.y;if(a){let e=eF(a),t=n&&eH(n)?eF(n):n,r=e,i=e8(r);for(;i&&n&&t!==r;){let e=tr(i),t=i.getBoundingClientRect(),n=e6(i),o=t.left+(i.clientLeft+parseFloat(n.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(n.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,f*=e.y,u+=o,c+=a,i=e8(r=eF(i))}}return eT({width:d,height:f,x:u,y:c})}function ta(e,t){let r=e4(e).scrollLeft;return t?t.left+r:to(eV(e)).left+r}function tl(e,t){let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-ta(e,r),y:r.top+t.scrollTop}}let ts=new Set(["absolute","fixed"]);function tu(e,t,r){var n;let i;if("viewport"===t)i=function(e,t){let r=eF(e),n=eV(e),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,l=0,s=0;if(i){o=i.width,a=i.height;let e=e2();(!e||e&&"fixed"===t)&&(l=i.offsetLeft,s=i.offsetTop)}let u=ta(n);if(u<=0){let e=n.ownerDocument,t=e.body,r=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,a=Math.abs(n.clientWidth-t.clientWidth-i);a<=25&&(o-=a)}else u<=25&&(o+=u);return{width:o,height:a,x:l,y:s}}(e,r);else if("document"===t){let t,r,o,a,l,s,u;n=eV(e),t=eV(n),r=e4(n),o=n.ownerDocument.body,a=ed(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),l=ed(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),s=-r.scrollLeft+ta(n),u=-r.scrollTop,"rtl"===e6(o).direction&&(s+=ed(t.clientWidth,o.clientWidth)-a),i={width:a,height:l,x:s,y:u}}else if(eH(t)){let e,n,o,a,l,s;n=(e=to(t,!0,"fixed"===r)).top+t.clientTop,o=e.left+t.clientLeft,a=eK(t)?tr(t):em(1),l=t.clientWidth*a.x,s=t.clientHeight*a.y,i={width:l,height:s,x:o*a.x,y:n*a.y}}else{let r=ti(e);i={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return eT(i)}function tc(e){return"static"===e6(e).position}function td(e,t){if(!eK(e)||"fixed"===e6(e).position)return null;if(t)return t(e);let r=e.offsetParent;return eV(e)===r&&(r=r.ownerDocument.body),r}function tf(e,t){var r;let n=eF(e);if(eX(e))return n;if(!eK(e)){let t=e7(e);for(;t&&!e3(t);){if(eH(t)&&!tc(t))return t;t=e7(t)}return n}let i=td(e,t);for(;i&&(r=i,eY.has(e_(r)))&&tc(i);)i=td(i,t);return i&&e3(i)&&tc(i)&&!e1(i)?n:i||function(e){let t=e7(e);for(;eK(t)&&!e3(t);){if(e1(t))return t;if(eX(t))break;t=e7(t)}return null}(e)||n}let tp=async function(e){let t=this.getOffsetParent||tf,r=this.getDimensions,n=await r(e.floating);return{reference:function(e,t,r){let n=eK(t),i=eV(t),o="fixed"===r,a=to(e,!0,o,t),l={scrollLeft:0,scrollTop:0},s=em(0);if(n||!n&&!o)if(("body"!==e_(t)||eU(i))&&(l=e4(t)),n){let e=to(t,!0,o,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=ta(i));o&&!n&&i&&(s.x=ta(i));let u=!i||n||o?em(0):tl(i,l);return{x:a.left+l.scrollLeft-s.x-u.x,y:a.top+l.scrollTop-s.y-u.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},tm={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,o="fixed"===i,a=eV(n),l=!!t&&eX(t.floating);if(n===a||l&&o)return r;let s={scrollLeft:0,scrollTop:0},u=em(1),c=em(0),d=eK(n);
1if((d||!d&&!o)&&(("body"!==e_(n)||eU(a))&&(s=e4(n)),eK(n))){let e=to(n);u=tr(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}let f=!a||d||o?em(0):tl(a,s);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-s.scrollLeft*u.x+c.x+f.x,y:r.y*u.y-s.scrollTop*u.y+c.y+f.y}},getDocumentElement:eV,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,o=[..."clippingAncestors"===r?eX(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=e9(e,[],!1).filter(e=>eH(e)&&"body"!==e_(e)),i=null,o="fixed"===e6(e).position,a=o?e7(e):e;for(;eH(a)&&!e3(a);){let t=e6(a),r=e1(a);r||"fixed"!==t.position||(i=null),(o?!r&&!i:!r&&"static"===t.position&&!!i&&ts.has(i.position)||eU(a)&&!r&&function e(t,r){let n=e7(t);return!(n===r||!eH(n)||e3(n))&&("fixed"===e6(n).position||e(n,r))}(e,a))?n=n.filter(e=>e!==a):i=t,a=e7(a)}return t.set(e,n),n}(t,this._c):[].concat(r),n],a=o[0],l=o.reduce((e,r)=>{let n=tu(t,r,i);return e.top=ed(n.top,e.top),e.right=ec(n.right,e.right),e.bottom=ec(n.bottom,e.bottom),e.left=ed(n.left,e.left),e},tu(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:tf,getElementRects:tp,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=te(e);return{width:t,height:r}},getScale:tr,isElement:eH,isRTL:function(e){return"rtl"===e6(e).direction}};function th(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let tg=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:i,rects:o,platform:a,elements:l,middlewareData:s}=t,{element:u,padding:c=0}=ey(e,t)||{};if(null==u)return{};let d=eA(c),f={x:r,y:n},p=ew(eS(i)),m=eb(p),h=await a.getDimensions(u),g="y"===p,y=g?"clientHeight":"clientWidth",v=o.reference[m]+o.reference[p]-f[p]-o.floating[m],x=f[p]-o.reference[p],w=await (null==a.getOffsetParent?void 0:a.getOffsetParent(u)),b=w?w[y]:0;b&&await (null==a.isElement?void 0:a.isElement(w))||(b=l.floating[y]||o.floating[m]);let C=b/2-h[m]/2-1,S=ec(d[g?"top":"left"],C),E=ec(d[g?"bottom":"right"],C),R=b-h[m]-E,j=b/2-h[m]/2+(v/2-x/2),N=ed(S,ec(j,R)),k=!s.arrow&&null!=ex(i)&&j!==N&&o.reference[m]/2-(j<S?S:E)-h[m]/2<0,P=k?j<S?j-S:j-R:0;return{[p]:f[p]+P,data:{[p]:N,centerOffset:j-N-P,...k&&{alignmentOffset:P}},reset:k}}});var ty="undefined"!=typeof document?d.useLayoutEffect:function(){};function tv(e,t){let r,n,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!tv(e[n],t[n]))return!1;return!0}if((r=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,i[n]))return!1;for(n=r;0!=n--;){let r=i[n];if(("_owner"!==r||!e.$$typeof)&&!tv(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function tx(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function tw(e,t){let r=tx(e);return Math.round(t*r)/r}function tb(e){let t=d.useRef(e);return ty(()=>{t.current=e}),t}var tC=Symbol("radix.slottable");function tS(e){return d.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===tC}var tE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{var r,n;let i,o,a,l=(n=r=`Primitive.${t}`,(i=d.forwardRef((e,t)=>{let{children:r,...n}=e;if(d.isValidElement(r)){var i;let e,o,a=(i=r,(o=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(o=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),l=function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==d.Fragment&&(l.ref=t?(0,k.composeRefs)(t,a):a),d.cloneElement(r,l)}return d.Children.count(r)>1?d.Children.only(null):null})).displayName=`${n}.SlotClone`,o=i,(a=d.forwardRef((e,t)=>
1{let{children:r,...n}=e,i=d.Children.toArray(r),a=i.find(tS);if(a){let e=a.props.children,r=i.map(t=>t!==a?t:d.Children.count(e)>1?d.Children.only(null):d.isValidElement(e)?e.props.children:null);return(0,c.jsx)(o,{...n,ref:t,children:d.isValidElement(e)?d.cloneElement(e,void 0,r):null})}return(0,c.jsx)(o,{...n,ref:t,children:r})})).displayName=`${r}.Slot`,a),s=d.forwardRef((e,r)=>{let{asChild:n,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,c.jsx)(n?l:t,{...i,ref:r})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),tR=d.forwardRef((e,t)=>{let{children:r,width:n=10,height:i=5,...o}=e;return(0,c.jsx)(tE.svg,{...o,ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,c.jsx)("polygon",{points:"0,0 30,0 15,10"})})});tR.displayName="Arrow";var tj=Symbol("radix.slottable");function tN(e){return d.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===tj}var tk=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{var r,n;let i,o,a,l=(n=r=`Primitive.${t}`,(i=d.forwardRef((e,t)=>{let{children:r,...n}=e;if(d.isValidElement(r)){var i;let e,o,a=(i=r,(o=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(o=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),l=function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==d.Fragment&&(l.ref=t?(0,k.composeRefs)(t,a):a),d.cloneElement(r,l)}return d.Children.count(r)>1?d.Children.only(null):null})).displayName=`${n}.SlotClone`,o=i,(a=d.forwardRef((e,t)=>{let{children:r,...n}=e,i=d.Children.toArray(r),a=i.find(tN);if(a){let e=a.props.children,r=i.map(t=>t!==a?t:d.Children.count(e)>1?d.Children.only(null):d.isValidElement(e)?e.props.children:null);return(0,c.jsx)(o,{...n,ref:t,children:d.isValidElement(e)?d.cloneElement(e,void 0,r):null})}return(0,c.jsx)(o,{...n,ref:t,children:r})})).displayName=`${r}.Slot`,a),s=d.forwardRef((e,r)=>{let{asChild:n,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,c.jsx)(n?l:t,{...i,ref:r})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),tP="Popper",[tA,tT]=N(tP),[tM,tL]=tA(tP),tO=e=>{let{__scopePopper:t,children:r}=e,[n,i]=d.useState(null);return(0,c.jsx)(tM,{scope:t,anchor:n,onAnchorChange:i,children:r})};tO.displayName=tP;var tI="PopperAnchor",tD=d.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:n,...i}=e,o=tL(tI,r),a=d.useRef(null),l=(0,k.useComposedRefs)(t,a),s=d.useRef(null);return d.useEffect(()=>{let e=s.current;s.current=n?.current||a.current,e!==s.current&&o.onAnchorChange(s.current)}),n?null:(0,c.jsx)(tk.div,{...i,ref:l})});tD.displayName=tI;var tB="PopperContent",[tz,tW]=tA(tB),t_=d.forwardRef((e,t)=>{var r,n,i,o,a,l,s,u,f,p,m,h,g,y,v,w,b,C,S,E,R;let{__scopePopper:j,side:N="bottom",sideOffset:P=0,align:A="center",alignOffset:T=0,arrowPadding:M=0,avoidCollisions:L=!0,collisionBoundary:O=[],collisionPadding:I=0,sticky:D="partial",hideWhenDetached:B=!1,updatePositionStrategy:z="optimized",onPlaced:_,...F}=e,V=tL(tB,j),[$,H]=d.useState(null),K=(0,k.useComposedRefs)(t,e=>H(e)),[q,G]=d.useState(null),U=function(e){let[t,r]=d.useState(void 0);return eo(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,i=t.blockSize}else n=e.offsetWidth,i=e.offsetHeight;r({width:n,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}(q),Y=U?.width??0,Z=U?.height??0,X="number"==typeof I?I:{top:0,right:0,bottom:0,left:0,...I},J=Array.isArray(O)?O:[O],Q=J.length>0,ee={padding:X,boundary:J.filter(tH),altBoundary:Q},{refs:et,floatingStyles:er,placement:en,isPositioned:ei,middlewareData:ea}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:o,floating:a}={},transform:l=!0,whileElementsMounted:s,open:u}=e,[c,f]=d.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=d.useState(n);tv(p,n)||m(n);let[h,g]=d.useState(null),[y,v]=d.useState(null),w=d.useCallback(e=>
1{e!==E.current&&(E.current=e,g(e))},[]),b=d.useCallback(e=>{e!==R.current&&(R.current=e,v(e))},[]),C=o||h,S=a||y,E=d.useRef(null),R=d.useRef(null),j=d.useRef(c),N=null!=s,k=tb(s),P=tb(i),A=tb(u),T=d.useCallback(()=>{var e,n;let i,o,a;if(!E.current||!R.current)return;let l={placement:t,strategy:r,middleware:p};P.current&&(l.platform=P.current),(e=E.current,n=R.current,i=new Map,a={...(o={platform:tm,...l}).platform,_c:i},eL(e,n,{...o,platform:a})).then(e=>{let t={...e,isPositioned:!1!==A.current};M.current&&!tv(j.current,t)&&(j.current=t,x.flushSync(()=>{f(t)}))})},[p,t,r,P,A]);ty(()=>{!1===u&&j.current.isPositioned&&(j.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[u]);let M=d.useRef(!1);ty(()=>(M.current=!0,()=>{M.current=!1}),[]),ty(()=>{if(C&&(E.current=C),S&&(R.current=S),C&&S){if(k.current)return k.current(C,S,T);T()}},[C,S,T,k,N]);let L=d.useMemo(()=>({reference:E,floating:R,setReference:w,setFloating:b}),[w,b]),O=d.useMemo(()=>({reference:C,floating:S}),[C,S]),I=d.useMemo(()=>{let e={position:r,left:0,top:0};if(!O.floating)return e;let t=tw(O.floating,c.x),n=tw(O.floating,c.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...tx(O.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,l,O.floating,c.x,c.y]);return d.useMemo(()=>({...c,update:T,refs:L,elements:O,floatingStyles:I}),[c,T,L,O,I])}({strategy:"fixed",placement:N+("center"!==A?"-"+A:""),whileElementsMounted:(...e)=>(function(e,t,r,n){let i;void 0===n&&(n={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=n,c=tt(e),d=o||a?[...c?e9(c):[],...e9(t)]:[];d.forEach(e=>{o&&e.addEventListener("scroll",r,{passive:!0}),a&&e.addEventListener("resize",r)});let f=c&&s?function(e,t){let r,n=null,i=eV(e);function o(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return!function a(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),o();let u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:p}=u;if(l||t(),!f||!p)return;let m={rootMargin:-ep(d)+"px "+-ep(i.clientWidth-(c+f))+"px "+-ep(i.clientHeight-(d+p))+"px "+-ep(c)+"px",threshold:ed(0,ec(1,s))||1},h=!0;function g(t){let n=t[0].intersectionRatio;if(n!==s){if(!h)return a();n?a(!1,n):r=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==n||th(u,e.getBoundingClientRect())||a(),h=!1}try{n=new IntersectionObserver(g,{...m,root:i.ownerDocument})}catch(e){n=new IntersectionObserver(g,m)}n.observe(e)}(!0),o}(c,r):null,p=-1,m=null;l&&(m=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),r()}),c&&!u&&m.observe(c),m.observe(t));let h=u?to(e):null;return u&&function t(){let n=to(e);h&&!th(h,n)&&r(),h=n,i=requestAnimationFrame(t)}(),r(),()=>{var e;d.forEach(e=>{o&&e.removeEventListener("scroll",r),a&&e.removeEventListener("resize",r)}),null==f||f(),null==(e=m)||e.disconnect(),m=null,u&&cancelAnimationFrame(i)}})(...e,{animationFrame:"always"===z}),elements:{reference:V.anchor},middleware:[{...{name:"offset",options:i=r={mainAxis:P+Z,alignmentAxis:T},async fn(e){var t,r;let{x:n,y:o,placement:a,middlewareData:l}=e,s=await ez(e,i);return a===(null==(t=l.offset)?void 0:t.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:n+s.x,y:o+s.y,data:{...s,placement:a}}}},options:[r,n]},L&&{...{name:"shift",options:f=s={mainAxis:!0,crossAxis:!1,limiter:"partial"===D?{...(void 0===(l=o)&&(l={}),{options:l,fn(e){let{x:t,y:r,placement:n,rects:i,middlewareData:o}=e,{offset:a=0,mainAxis:s=!0,crossAxis:u=!0}=ey(l,e),c={x:t,y:r},d=eS(n),f=ew(d),p=c[f],m=c[d],h=ey(a,e),g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(s){let e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+g.mainAxis,r=i.reference[f]+i.reference[e]-g.mainAxis;p<t?p=t:p>r&&(p=r)}if(u){var y,v;let e="y"===f?"width":"height",t=eB.has(ev(n)),r=i.reference[d]-i.floating[e]+(t&&(null==(y=o.offset)?void 0:y[d])||0)+(t?0:g.crossAxis),a=i.reference[d]+i.reference[e]+(t?0:(null==(v=o.offset)?void 0:v[d])||0)-(t?g.crossAxis:0);m<r?m=r:m>a&&(m=a)}return{[f]:p,[d]:m}}}),options:[o,a]}:void 0,...ee},async fn(e){let{x:t,y:r,placement:n}=e,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=ey(f,e),s={x:t,y:r},u=await eO(e,l),c=eS(ev(n)),d=ew(c),p=s[d],m=s[c];if(i){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",r=p+u[e],n=p-u[t];p=ed(r,ec(p,n))}if(o){let e="y"===c?"top":"left",t="y"===c?"bottom":"right",r=m+u[e],n=m-u[t];m=ed(r,ec(m,n))}let h=a.fn({...e,[d]:p,[c]:m});return{...h,data:{x:h.x-t,y:h.y-r,enabled:{[d]:i,[c]:o}}}}},options:[s,u]},L&&{...{name:"flip",options:h=p={...ee},async fn(e){var t,r,n,i,o,a,l,s;let u,c,d,{placement:f,middlewareData:p,rects:m,initialPlacement:g,platform:y,elements:v}=e,{mainAxis:x=!0,crossAxis:w=!0,fallbackPlacements:b,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:E=!0,...R}=ey(h,e);if(null!=(t=p.arrow)&&t.alignmentOffset)return{};let j=ev(f),N=eS(g),k=ev(g)===g,P=await (null==y.isRTL?void 0:y.isRTL(v.floating)),A=b||(k||!E?[eP(g)]:(u=eP(g),[eE(g),u,eE(u)])),T="none"!==S;!b&&T&&A.push(...(c=ex(g),d=function(e,t,r){switch(e){case"top":case"bottom":if(r)return t?ej:eR;return t?eR:ej;case"left":case"right":return t?eN:ek;default:return[]}}
1(ev(g),"start"===S,P),c&&(d=d.map(e=>e+"-"+c),E&&(d=d.concat(d.map(eE)))),d));let M=[g,...A],L=await eO(e,R),O=[],I=(null==(r=p.flip)?void 0:r.overflows)||[];if(x&&O.push(L[j]),w){let e,t,r,n,i=(a=f,l=m,void 0===(s=P)&&(s=!1),e=ex(a),r=eb(t=ew(eS(a))),n="x"===t?e===(s?"end":"start")?"right":"left":"start"===e?"bottom":"top",l.reference[r]>l.floating[r]&&(n=eP(n)),[n,eP(n)]);O.push(L[i[0]],L[i[1]])}if(I=[...I,{placement:f,overflows:O}],!O.every(e=>e<=0)){let e=((null==(n=p.flip)?void 0:n.index)||0)+1,t=M[e];if(t&&("alignment"!==w||N===eS(t)||I.every(e=>eS(e.placement)!==N||e.overflows[0]>0)))return{data:{index:e,overflows:I},reset:{placement:t}};let r=null==(i=I.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!r)switch(C){case"bestFit":{let e=null==(o=I.filter(e=>{if(T){let t=eS(e.placement);return t===N||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(r=e);break}case"initialPlacement":r=g}if(f!==r)return{reset:{placement:r}}}return{}}},options:[p,m]},{...{name:"size",options:v=g={...ee,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{let{width:i,height:o}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${r}px`),a.setProperty("--radix-popper-available-height",`${n}px`),a.setProperty("--radix-popper-anchor-width",`${i}px`),a.setProperty("--radix-popper-anchor-height",`${o}px`)}},async fn(e){var t,r;let n,i,{placement:o,rects:a,platform:l,elements:s}=e,{apply:u=()=>{},...c}=ey(v,e),d=await eO(e,c),f=ev(o),p=ex(o),m="y"===eS(o),{width:h,height:g}=a.floating;"top"===f||"bottom"===f?(n=f,i=p===(await (null==l.isRTL?void 0:l.isRTL(s.floating))?"start":"end")?"left":"right"):(i=f,n="end"===p?"top":"bottom");let y=g-d.top-d.bottom,x=h-d.left-d.right,w=ec(g-d[n],y),b=ec(h-d[i],x),C=!e.middlewareData.shift,S=w,E=b;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(E=x),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(S=y),C&&!p){let e=ed(d.left,0),t=ed(d.right,0),r=ed(d.top,0),n=ed(d.bottom,0);m?E=h-2*(0!==e||0!==t?e+t:ed(d.left,d.right)):S=g-2*(0!==r||0!==n?r+n:ed(d.top,d.bottom))}await u({...e,availableWidth:E,availableHeight:S});let R=await l.getDimensions(s.floating);return h!==R.width||g!==R.height?{reset:{rects:!0}}:{}}},options:[g,y]},q&&{...{name:"arrow",options:C=w={element:q,padding:M},fn(e){let{element:t,padding:r}="function"==typeof C?C(e):C;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?tg({element:t.current,padding:r}).fn(e):{}:t?tg({element:t,padding:r}).fn(e):{}}},options:[w,b]},tK({arrowWidth:Y,arrowHeight:Z}),B&&{...{name:"hide",options:R=S={strategy:"referenceHidden",...ee},async fn(e){let{rects:t}=e,{strategy:r="referenceHidden",...n}=ey(R,e);switch(r){case"referenceHidden":{let r=eI(await eO(e,{...n,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:eD(r)}}}case"escaped":{let r=eI(await eO(e,{...n,altBoundary:!0}),t.floating);return{data:{escapedOffsets:r,escaped:eD(r)}}}default:return{}}}},options:[S,E]}]}),[el,es]=tq(en),eu=W(_);eo(()=>{ei&&eu?.()},[ei,eu]);let ef=ea.arrow?.x,em=ea.arrow?.y,eh=ea.arrow?.centerOffset!==0,[eg,eC]=d.useState();return eo(()=>{$&&eC(window.getComputedStyle($).zIndex)},[$]),(0,c.jsx)("div",{ref:et.setFloating,"data-radix-popper-content-wrapper":"",style:{...er,transform:ei?er.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eg,"--radix-popper-transform-origin":[ea.transformOrigin?.x,ea.transformOrigin?.y].join(" "),...ea.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,c.jsx)(tz,{scope:j,placedSide:el,onArrowChange:G,arrowX:ef,arrowY:em,shouldHideArrow:eh,children:(0,c.jsx)(tk.div,{"data-side":el,"data-align":es,...F,ref:K,style:{...F.style,animation:ei?void 0:"none"}})})})});t_.displayName=tB;var tF="PopperArrow",tV={top:"bottom",right:"left",bottom:"top",left:"right"},t$=d.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,i=tW(tF,r),o=tV[i.placedSide];return(0,c.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,c.jsx)(tR,{...n,ref:t,style:{...n.style,display:"block"}})})});function tH(e){return null!==e}t$.displayName=tF;var tK=e=>({name:"transformOrigin",options:e,fn(t){let{placement:r,rects:n,middlewareData:i}=t,o=i.arrow?.centerOffset!==0,a=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[s,u]=tq(r),c={start:"0%",center:"50%",end:"100%"}[u],d=(i.arrow?.x??0)+a/2,f=(i.arrow?.y??0)+l/2,p="",m="";return"bottom"===s?(p=o?c:`${d}px`,m=`${-l}px`):"top"===s?(p=o?c:`${d}px`,m=`${n.floating.height+l}px`):"right"===s?(p=`${-l}px`,m=o?c:`${f}px`):"left"===s&&(p=`${n.floating.width+l}px`,m=o?c:`${f}px`),{data:{x:p,y:m}}}});function tq(e){let[t,r="center"]=e.split("-");return[t,r]}var tG=Symbol("radix.slottable");function tU(e){return d.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===tG}var tY=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>
1{var r,n;let i,o,a,l=(n=r=`Primitive.${t}`,(i=d.forwardRef((e,t)=>{let{children:r,...n}=e;if(d.isValidElement(r)){var i;let e,o,a=(i=r,(o=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(o=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),l=function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==d.Fragment&&(l.ref=t?(0,k.composeRefs)(t,a):a),d.cloneElement(r,l)}return d.Children.count(r)>1?d.Children.only(null):null})).displayName=`${n}.SlotClone`,o=i,(a=d.forwardRef((e,t)=>{let{children:r,...n}=e,i=d.Children.toArray(r),a=i.find(tU);if(a){let e=a.props.children,r=i.map(t=>t!==a?t:d.Children.count(e)>1?d.Children.only(null):d.isValidElement(e)?e.props.children:null);return(0,c.jsx)(o,{...n,ref:t,children:d.isValidElement(e)?d.cloneElement(e,void 0,r):null})}return(0,c.jsx)(o,{...n,ref:t,children:r})})).displayName=`${r}.Slot`,a),s=d.forwardRef((e,r)=>{let{asChild:n,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,c.jsx)(n?l:t,{...i,ref:r})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),tZ=d.forwardRef((e,t)=>{let{container:r,...n}=e,[i,o]=d.useState(!1);eo(()=>o(!0),[]);let a=r||i&&globalThis?.document?.body;return a?x.default.createPortal((0,c.jsx)(tY.div,{...n,ref:t}),a):null});function tX(e){var t;let r,n=(t=e,(r=d.forwardRef((e,t)=>{let{children:r,...n}=e;if(d.isValidElement(r)){var i;let e,o,a=(i=r,(o=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(o=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),l=function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==d.Fragment&&(l.ref=t?(0,k.composeRefs)(t,a):a),d.cloneElement(r,l)}return d.Children.count(r)>1?d.Children.only(null):null})).displayName=`${t}.SlotClone`,r),i=d.forwardRef((e,t)=>{let{children:r,...i}=e,o=d.Children.toArray(r),a=o.find(tQ);if(a){let e=a.props.children,r=o.map(t=>t!==a?t:d.Children.count(e)>1?d.Children.only(null):d.isValidElement(e)?e.props.children:null);return(0,c.jsx)(n,{...i,ref:t,children:d.isValidElement(e)?d.cloneElement(e,void 0,r):null})}return(0,c.jsx)(n,{...i,ref:t,children:r})});return i.displayName=`${e}.Slot`,i}tZ.displayName="Portal";var tJ=Symbol("radix.slottable");function tQ(e){return d.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===tJ}var t0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=tX(`Primitive.${t}`),n=d.forwardRef((e,n)=>{let{asChild:i,...o}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,c.jsx)(i?r:t,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});d[" useEffectEvent ".trim().toString()],d[" useInsertionEffect ".trim().toString()];var t1=d[" useInsertionEffect ".trim().toString()]||eo;function t2({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){let[i,o,a]=function({defaultProp:e,onChange:t}){let[r,n]=d.useState(e),i=d.useRef(r),o=d.useRef(t);return t1(()=>{o.current=t},[t]),d.useEffect(()=>{i.current!==r&&(o.current?.(r),i.current=r)},[r,i]),[r,n,o]}({defaultProp:t,onChange:r}),l=void 0!==e,s=l?e:i;{let t=d.useRef(void 0!==e);d.useEffect(()=>{let e=t.current;if(e!==l){let t=l?"controlled":"uncontrolled";console.warn(`${n} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=l},[l,n])}return[s,d.useCallback(t=>{if(l){let r="function"==typeof t?t(e):t;r!==e&&a.current?.(r)}else o(t)},[l,e,o,a])]}Symbol("RADIX:SYNC_STATE");var t5=Symbol("radix.slottable");function t3(e){return d.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===t5}var t6=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>
1{var r,n;let i,o,a,l=(n=r=`Primitive.${t}`,(i=d.forwardRef((e,t)=>{let{children:r,...n}=e;if(d.isValidElement(r)){var i;let e,o,a=(i=r,(o=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(o=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),l=function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==d.Fragment&&(l.ref=t?(0,k.composeRefs)(t,a):a),d.cloneElement(r,l)}return d.Children.count(r)>1?d.Children.only(null):null})).displayName=`${n}.SlotClone`,o=i,(a=d.forwardRef((e,t)=>{let{children:r,...n}=e,i=d.Children.toArray(r),a=i.find(t3);if(a){let e=a.props.children,r=i.map(t=>t!==a?t:d.Children.count(e)>1?d.Children.only(null):d.isValidElement(e)?e.props.children:null);return(0,c.jsx)(o,{...n,ref:t,children:d.isValidElement(e)?d.cloneElement(e,void 0,r):null})}return(0,c.jsx)(o,{...n,ref:t,children:r})})).displayName=`${r}.Slot`,a),s=d.forwardRef((e,r)=>{let{asChild:n,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,c.jsx)(n?l:t,{...i,ref:r})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),t4=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"});d.forwardRef((e,t)=>(0,c.jsx)(t6.span,{...e,ref:t,style:{...t4,...e.style}})).displayName="VisuallyHidden";var t7=new WeakMap,t9=new WeakMap,t8={},re=0,rt=function(e){return e&&(e.host||rt(e.parentNode))},rr=function(e,t,r,n){var i=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=rt(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});t8[r]||(t8[r]=new WeakMap);var o=t8[r],a=[],l=new Set,s=new Set(i),u=function(e){!e||l.has(e)||(l.add(e),u(e.parentNode))};i.forEach(u);var c=function(e){!e||s.has(e)||Array.prototype.forEach.call(e.children,function(e){if(l.has(e))c(e);else try{var t=e.getAttribute(n),i=null!==t&&"false"!==t,s=(t7.get(e)||0)+1,u=(o.get(e)||0)+1;t7.set(e,s),o.set(e,u),a.push(e),1===s&&i&&t9.set(e,!0),1===u&&e.setAttribute(r,"true"),i||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return c(t),l.clear(),re++,function(){a.forEach(function(e){var t=t7.get(e)-1,i=o.get(e)-1;t7.set(e,t),o.set(e,i),t||(t9.has(e)||e.removeAttribute(n),t9.delete(e)),i||e.removeAttribute(r)}),--re||(t7=new WeakMap,t7=new WeakMap,t9=new WeakMap,t8={})}},rn=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live], script"))),rr(n,i,r,"aria-hidden")):function(){return null}},ri=function(){return(ri=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function ro(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}var ra=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),rl="width-before-scroll-bar";function rs(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var ru="undefined"!=typeof window?d.useLayoutEffect:d.useEffect,rc=new WeakMap,rd=(void 0===r&&(r={}),(void 0===n&&(n=function(e){return e}),i=[],o=!1,a={read:function(){if(o)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:null},useMedium:function(e){var t=n(e,o);return i.push(t),function(){i=i.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(o=!0;i.length;){var t=i;i=[],t.forEach(e)}i={push:function(t){return e(t)},filter:function(){return i}}},assignMedium:function(e){o=!0;var t=[];if(i.length){var r=i;i=[],r.forEach(e),t=i}var n=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(n)};a(),i={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),i}}}}).options=ri({async:!0,ssr:!1},r),a),rf=function(){},rp=d.forwardRef(function(e,t){var r,n,i,o,a=d.useRef(null),l=d.useState({onScrollCapture:rf,onWheelCapture:rf,onTouchMoveCapture:rf}),s=l[0],u=l[1],c=e.forwardProps,f=e.children,p=e.className,m=e.removeScrollBar,h=e.enabled,g=e.shards,y=e.sideCar,v=e.noRelative,x=e.noIsolation,w=e.inert,b=e.allowPinchZoom,C=e.as,S=e.gapMode,E=ro(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=(r=[a,t],n=function(e){return r.forEach(function(t){return rs(t,e)})},(i=(0,d.useState)(function(){return{value:null,callback:n,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=n,o=i.facade,ru(function(){var e=rc.get(o);if(e){var t=new Set(e),n=new Set(r),i=o.current;t.forEach(function(e){n.has(e)||rs(e,null)}
1),n.forEach(function(e){t.has(e)||rs(e,i)})}rc.set(o,r)},[r]),o),j=ri(ri({},E),s);return d.createElement(d.Fragment,null,h&&d.createElement(y,{sideCar:rd,removeScrollBar:m,shards:g,noRelative:v,noIsolation:x,inert:w,setCallbacks:u,allowPinchZoom:!!b,lockRef:a,gapMode:S}),c?d.cloneElement(d.Children.only(f),ri(ri({},j),{ref:R})):d.createElement(void 0===C?"div":C,ri({},j,{className:p,ref:R}),f))});rp.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},rp.classNames={fullWidth:rl,zeroRight:ra};var rm=function(e){var t=e.sideCar,r=ro(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return d.createElement(n,ri({},r))};rm.isSideCarExport=!0;var rh=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=u||("undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0);return t&&e.setAttribute("nonce",t),e}())){var n,i;(n=t).styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),i=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},rg=function(){var e=rh();return function(t,r){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},ry=function(){var e=rg();return function(t){return e(t.styles,t.dynamic),null}},rv={left:0,top:0,right:0,gap:0},rx=function(e){return parseInt(e||"",10)||0},rw=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[rx(r),rx(n),rx(i)]},rb=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return rv;var t=rw(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},rC=ry(),rS="data-scroll-locked",rE=function(e,t,r,n){var i=e.left,o=e.top,a=e.right,l=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(l,"px ").concat(n,";\n }\n body[").concat(rS,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(l,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(ra," {\n right: ").concat(l,"px ").concat(n,";\n }\n \n .").concat(rl," {\n margin-right: ").concat(l,"px ").concat(n,";\n }\n \n .").concat(ra," .").concat(ra," {\n right: 0 ").concat(n,";\n }\n \n .").concat(rl," .").concat(rl," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(rS,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},rR=function(){var e=parseInt(document.body.getAttribute(rS)||"0",10);return isFinite(e)?e:0},rj=function(){d.useEffect(function(){return document.body.setAttribute(rS,(rR()+1).toString()),function(){var e=rR()-1;e<=0?document.body.removeAttribute(rS):document.body.setAttribute(rS,e.toString())}},[])},rN=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=void 0===n?"margin":n;rj();var o=d.useMemo(function(){return rb(i)},[i]);return d.createElement(rC,{styles:rE(o,!t,i,r?"":"!important")})},rk=!1;if("undefined"!=typeof window)try{var rP=Object.defineProperty({},"passive",{get:function(){return rk=!0,!0}});window.addEventListener("test",rP,rP),window.removeEventListener("test",rP,rP)}catch(e){rk=!1}var rA=!!rk&&{passive:!1},rT=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&(r.overflowY!==r.overflowX||"TEXTAREA"===e.tagName||"visible"!==r[t])},rM=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),rL(e,n)){var i=rO(e,n);if(i[1]>i[2])return!0}n=n.parentNode}while(n&&n!==r.body)return!1},rL=function(e,t){return"v"===e?rT(t,"overflowY"):rT(t,"overflowX")},rO=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},rI=function(e,t,r,n,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),l=a*n,s=r.target,u=t.contains(s),c=!1,d=l>0,f=0,p=0;
1do{if(!s)break;var m=rO(e,s),h=m[0],g=m[1]-m[2]-a*h;(h||g)&&rL(e,s)&&(f+=g,p+=h);var y=s.parentNode;s=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!u&&s!==document.body||u&&(t.contains(s)||t===s))return d&&(i&&1>Math.abs(f)||!i&&l>f)?c=!0:!d&&(i&&1>Math.abs(p)||!i&&-l>p)&&(c=!0),c},rD=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},rB=function(e){return[e.deltaX,e.deltaY]},rz=function(e){return e&&"current"in e?e.current:e},rW=0,r_=[];let rF=(l=function(e){var t=d.useRef([]),r=d.useRef([0,0]),n=d.useRef(),i=d.useState(rW++)[0],o=d.useState(ry)[0],a=d.useRef(e);d.useEffect(function(){a.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(rz),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=d.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var i,o=rD(e),l=r.current,s="deltaX"in e?e.deltaX:l[0]-o[0],u="deltaY"in e?e.deltaY:l[1]-o[1],c=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=rM(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=rM(d,c)),!f)return!1;if(!n.current&&"changedTouches"in e&&(s||u)&&(n.current=i),!i)return!0;var p=n.current||i;return rI(p,t,e,"h"===p?s:u,!0)},[]),s=d.useCallback(function(e){if(r_.length&&r_[r_.length-1]===o){var r="deltaY"in e?rB(e):rD(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta,n[0]===r[0]&&n[1]===r[1])})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}
1if(!n){var i=(a.current.shards||[]).map(rz).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?l(e,i[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=d.useCallback(function(e,r,n,i){var o={name:e,delta:r,target:n,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),c=d.useCallback(function(e){r.current=rD(e),n.current=void 0},[]),f=d.useCallback(function(t){u(t.type,rB(t),t.target,l(t,e.lockRef.current))},[]),p=d.useCallback(function(t){u(t.type,rD(t),t.target,l(t,e.lockRef.current))},[]);d.useEffect(function(){return r_.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",s,rA),document.addEventListener("touchmove",s,rA),document.addEventListener("touchstart",c,rA),function(){r_=r_.filter(function(e){return e!==o}),document.removeEventListener("wheel",s,rA),document.removeEventListener("touchmove",s,rA),document.removeEventListener("touchstart",c,rA)}},[]);var m=e.removeScrollBar,h=e.inert;return d.createElement(d.Fragment,null,h?d.createElement(o,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,m?d.createElement(rN,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},rd.useMedium(l),rm);var rV=d.forwardRef(function(e,t){return d.createElement(rp,ri({},e,{ref:t,sideCar:rF}))});rV.classNames=rp.classNames;var r$=[" ","Enter","ArrowUp","ArrowDown"],rH=[" ","Enter"],rK="Select",[rq,rG,rU]=function(e){let t=e+"CollectionProvider",[r,n]=N(t),[i,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=e=>{let{scope:t,children:r}=e,n=d.default.useRef(null),o=d.default.useRef(new Map).current;return(0,c.jsx)(i,{scope:t,itemMap:o,collectionRef:n,children:r})};a.displayName=t;let l=e+"CollectionSlot",s=P(l),u=d.default.forwardRef((e,t)=>{let{scope:r,children:n}=e,i=o(l,r),a=(0,k.useComposedRefs)(t,i.collectionRef);return(0,c.jsx)(s,{ref:a,children:n})});u.displayName=l;let f=e+"CollectionItemSlot",p="data-radix-collection-item",m=P(f),h=d.default.forwardRef((e,t)=>{let{scope:r,children:n,...i}=e,a=d.default.useRef(null),l=(0,k.useComposedRefs)(t,a),s=o(f,r);return d.default.useEffect(()=>(s.itemMap.set(a,{ref:a,...i}),()=>void s.itemMap.delete(a))),(0,c.jsx)(m,{...{[p]:""},ref:l,children:n})});return h.displayName=f,[{Provider:a,Slot:u,ItemSlot:h},function(t){let r=o(e+"CollectionConsumer",t);return d.default.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${p}]`));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},n]}(rK),[rY,rZ]=N(rK,[rU,tT]),rX=tT(),[rJ,rQ]=rY(rK),[r0,r1]=rY(rK),r2=e=>{let t,{__scopeSelect:r,children:n,open:i,defaultOpen:o,onOpenChange:a,value:l,defaultValue:s,onValueChange:u,dir:f,name:p,autoComplete:m,disabled:h,required:g,form:y}=e,v=rX(r),[x,w]=d.useState(null),[b,C]=d.useState(null),[S,E]=d.useState(!1),R=(t=d.useContext(I),f||t||"ltr"),[j,N]=t2({prop:i,defaultProp:o??!1,onChange:a,caller:rK}),[k,P]=t2({prop:l,defaultProp:s,onChange:u,caller:rK}),A=d.useRef(null),T=!x||y||!!x.closest("form"),[M,L]=d.useState(new Set),O=Array.from(M).map(e=>e.props.value).join(";");return(0,c.jsx)(tO,{...v,children:(0,c.jsxs)(rJ,{required:g,scope:r,trigger:x,onTriggerChange:w,valueNode:b,onValueNodeChange:C,valueNodeHasChildren:S,onValueNodeHasChildrenChange:E,contentId:es(),value:k,onValueChange:P,open:j,onOpenChange:N,dir:R,triggerPointerDownPosRef:A,disabled:h,children:[(0,c.jsx)(rq.Provider,{scope:r,children:(0,c.jsx)(r0,{scope:e.__scopeSelect,onNativeOptionAdd:d.useCallback(e=>{L(t=>new Set(t).add(e))},[]),onNativeOptionRemove:d.useCallback(e=>{L(t=>{let r=new Set(t);return r.delete(e),r})},[]),children:n})}),T?(0,c.jsxs)(nT,{"aria-hidden":!0,required:g,tabIndex:-1,name:p,autoComplete:m,value:k,onChange:e=>P(e.target.value),disabled:h,form:y,children:[void 0===k?(0,c.jsx)("option",{value:""}):null,Array.from(M)]},O):null]})})};r2.displayName=rK;var r5="SelectTrigger",r3=d.forwardRef((e,t)=>
1{let{__scopeSelect:r,disabled:n=!1,...i}=e,o=rX(r),a=rQ(r5,r),l=a.disabled||n,s=(0,k.useComposedRefs)(t,a.onTriggerChange),u=rG(r),f=d.useRef("touch"),[p,m,h]=nL(e=>{let t=u().filter(e=>!e.disabled),r=t.find(e=>e.value===a.value),n=nO(t,e,r);void 0!==n&&a.onValueChange(n.value)}),g=e=>{l||(a.onOpenChange(!0),h()),e&&(a.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,c.jsx)(tD,{asChild:!0,...o,children:(0,c.jsx)(t0.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":nM(a.value)?"":void 0,...i,ref:s,onClick:j(i.onClick,e=>{e.currentTarget.focus(),"mouse"!==f.current&&g(e)}),onPointerDown:j(i.onPointerDown,e=>{f.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(g(e),e.preventDefault())}),onKeyDown:j(i.onKeyDown,e=>{let t=""!==p.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||m(e.key),(!t||" "!==e.key)&&r$.includes(e.key)&&(g(),e.preventDefault())})})})});r3.displayName=r5;var r6="SelectValue",r4=d.forwardRef((e,t)=>{let{__scopeSelect:r,className:n,style:i,children:o,placeholder:a="",...l}=e,s=rQ(r6,r),{onValueNodeHasChildrenChange:u}=s,d=void 0!==o,f=(0,k.useComposedRefs)(t,s.onValueNodeChange);return eo(()=>{u(d)},[u,d]),(0,c.jsx)(t0.span,{...l,ref:f,style:{pointerEvents:"none"},children:nM(s.value)?(0,c.jsx)(c.Fragment,{children:a}):o})});r4.displayName=r6;var r7=d.forwardRef((e,t)=>{let{__scopeSelect:r,children:n,...i}=e;return(0,c.jsx)(t0.span,{"aria-hidden":!0,...i,ref:t,children:n||"â¼"})});r7.displayName="SelectIcon";var r9=e=>(0,c.jsx)(tZ,{asChild:!0,...e});r9.displayName="SelectPortal";var r8="SelectContent",ne=d.forwardRef((e,t)=>{let r=rQ(r8,e.__scopeSelect),[n,i]=d.useState();return(eo(()=>{i(new DocumentFragment)},[]),r.open)?(0,c.jsx)(ni,{...e,ref:t}):n?x.createPortal((0,c.jsx)(nt,{scope:e.__scopeSelect,children:(0,c.jsx)(rq.Slot,{scope:e.__scopeSelect,children:(0,c.jsx)("div",{children:e.children})})}),n):null});ne.displayName=r8;var[nt,nr]=rY(r8),nn=tX("SelectContent.RemoveScroll"),ni=d.forwardRef((e,t)=>{let{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:o,onPointerDownOutside:a,side:l,sideOffset:s,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:h,sticky:g,hideWhenDetached:y,avoidCollisions:v,...x}=e,w=rQ(r8,r),[b,C]=d.useState(null),[S,E]=d.useState(null),R=(0,k.useComposedRefs)(t,e=>C(e)),[N,P]=d.useState(null),[A,T]=d.useState(null),M=rG(r),[L,O]=d.useState(!1),I=d.useRef(!1);d.useEffect(()=>{if(b)return rn(b)},[b]),d.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??q()),document.body.insertAdjacentElement("beforeend",e[1]??q()),K++,()=>{1===K&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),K--}},[]);let D=d.useCallback(e=>{let[t,...r]=M().map(e=>e.ref.current),[n]=r.slice(-1),i=document.activeElement;for(let r of e)if(r===i||(r?.scrollIntoView({block:"nearest"}),r===t&&S&&(S.scrollTop=0),r===n&&S&&(S.scrollTop=S.scrollHeight),r?.focus(),document.activeElement!==i))return},[M,S]),B=d.useCallback(()=>D([N,b]),[D,N,b]);d.useEffect(()=>{L&&B()},[L,B]);let{onOpenChange:z,triggerPointerDownPosRef:W}=w;d.useEffect(()=>{if(b){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(W.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(W.current?.y??0))}},r=r=>{e.x<=10&&e.y<=10?r.preventDefault():b.contains(r.target)||z(!1),document.removeEventListener("pointermove",t),W.current=null};return null!==W.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r,{capture:!0})}}},[b,z,W]),d.useEffect(()=>{let e=()=>z(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[z]);let[_,F]=nL(e=>{let t=M().filter(e=>!e.disabled),r=t.find(e=>e.ref.current===document.activeElement),n=nO(t,e,r);n&&setTimeout(()=>n.ref.current.focus())}),$=d.useCallback((e,t,r)=>{let n=!I.current&&!r;(void 0!==w.value&&w.value===t||n)&&(P(e),n&&(I.current=!0))},[w.value]),H=d.useCallback(()=>b?.focus(),[b]),G=d.useCallback((e,t,r)=>{let n=!I.current&&!r;(void 0!==w.value&&w.value===t||n)&&T(e)},[w.value]),U="popper"===n?na:no,Y=U===na?{side:l,sideOffset:s,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:h,sticky:g,hideWhenDetached:y,avoidCollisions:v}:{};return(0,c.jsx)(nt,{scope:r,content:b,viewport:S,onViewportChange:E,itemRefCallback:$,selectedItem:N,onItemLeave:H,itemTextRefCallback:G,focusSelectedItem:B,selectedItemText:A,position:n,isPositioned:L,searchRef:_,children:(0,c.jsx)(rV,{as:nn,allowPinchZoom:!0,children:(0,c.jsx)(Q,{asChild:!0,trapped:w.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:j(i,e=>{w.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,c.jsx)(V,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:(0,c.jsx)(U,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:e=>e.preventDefault(),...x,...Y,onPlaced:()=>O(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:j(x.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;
1if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||F(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=M().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let r=e.target,n=t.indexOf(r);t=t.slice(n+1)}setTimeout(()=>D(t)),e.preventDefault()}})})})})})})});ni.displayName="SelectContentImpl";var no=d.forwardRef((e,t)=>{let{__scopeSelect:r,onPlaced:n,...i}=e,o=rQ(r8,r),a=nr(r8,r),[l,s]=d.useState(null),[u,f]=d.useState(null),p=(0,k.useComposedRefs)(t,e=>f(e)),m=rG(r),h=d.useRef(!1),g=d.useRef(!0),{viewport:y,selectedItem:v,selectedItemText:x,focusSelectedItem:w}=a,b=d.useCallback(()=>{if(o.trigger&&o.valueNode&&l&&u&&y&&v&&x){let e=o.trigger.getBoundingClientRect(),t=u.getBoundingClientRect(),r=o.valueNode.getBoundingClientRect(),i=x.getBoundingClientRect();if("rtl"!==o.dir){let n=i.left-t.left,o=r.left-n,a=e.left-o,s=e.width+a,u=Math.max(s,t.width),c=R(o,[10,Math.max(10,window.innerWidth-10-u)]);l.style.minWidth=s+"px",l.style.left=c+"px"}else{let n=t.right-i.right,o=window.innerWidth-r.right-n,a=window.innerWidth-e.right-o,s=e.width+a,u=Math.max(s,t.width),c=R(o,[10,Math.max(10,window.innerWidth-10-u)]);l.style.minWidth=s+"px",l.style.right=c+"px"}let a=m(),s=window.innerHeight-20,c=y.scrollHeight,d=window.getComputedStyle(u),f=parseInt(d.borderTopWidth,10),p=parseInt(d.paddingTop,10),g=parseInt(d.borderBottomWidth,10),w=f+p+c+parseInt(d.paddingBottom,10)+g,b=Math.min(5*v.offsetHeight,w),C=window.getComputedStyle(y),S=parseInt(C.paddingTop,10),E=parseInt(C.paddingBottom,10),j=e.top+e.height/2-10,N=v.offsetHeight/2,k=f+p+(v.offsetTop+N);if(k<=j){let e=a.length>0&&v===a[a.length-1].ref.current;l.style.bottom="0px";let t=Math.max(s-j,N+(e?E:0)+(u.clientHeight-y.offsetTop-y.offsetHeight)+g);l.style.height=k+t+"px"}else{let e=a.length>0&&v===a[0].ref.current;l.style.top="0px";let t=Math.max(j,f+y.offsetTop+(e?S:0)+N);l.style.height=t+(w-k)+"px",y.scrollTop=k-j+y.offsetTop}l.style.margin="10px 0",l.style.minHeight=b+"px",l.style.maxHeight=s+"px",n?.(),requestAnimationFrame(()=>h.current=!0)}},[m,o.trigger,o.valueNode,l,u,y,v,x,o.dir,n]);eo(()=>b(),[b]);let[C,S]=d.useState();eo(()=>{u&&S(window.getComputedStyle(u).zIndex)},[u]);let E=d.useCallback(e=>{e&&!0===g.current&&(b(),w?.(),g.current=!1)},[b,w]);return(0,c.jsx)(nl,{scope:r,contentWrapper:l,shouldExpandOnScrollRef:h,onScrollButtonChange:E,children:(0,c.jsx)("div",{ref:s,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:(0,c.jsx)(t0.div,{...i,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});no.displayName="SelectItemAlignedPosition";var na=d.forwardRef((e,t)=>{let{__scopeSelect:r,align:n="start",collisionPadding:i=10,...o}=e,a=rX(r);return(0,c.jsx)(t_,{...a,...o,ref:t,align:n,collisionPadding:i,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});na.displayName="SelectPopperPosition";var[nl,ns]=rY(r8,{}),nu="SelectViewport",nc=d.forwardRef((e,t)=>{let{__scopeSelect:r,nonce:n,...i}=e,o=nr(nu,r),a=ns(nu,r),l=(0,k.useComposedRefs)(t,o.onViewportChange),s=d.useRef(0);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),(0,c.jsx)(rq.Slot,{scope:r,children:(0,c.jsx)(t0.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:j(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:r,shouldExpandOnScrollRef:n}=a;if(n?.current&&r){let e=Math.abs(s.current-t.scrollTop);if(e>0){let n=window.innerHeight-20,i=Math.max(parseFloat(r.style.minHeight),parseFloat(r.style.height));if(i<n){let o=i+e,a=Math.min(n,o),l=o-a;r.style.height=a+"px","0px"===r.style.bottom&&(t.scrollTop=l>0?l:0,r.style.justifyContent="flex-end")}}}s.current=t.scrollTop})})})]})});nc.displayName=nu;var nd="SelectGroup",[nf,np]=rY(nd);d.forwardRef((e,t)=>
1{let{__scopeSelect:r,...n}=e,i=es();return(0,c.jsx)(nf,{scope:r,id:i,children:(0,c.jsx)(t0.div,{role:"group","aria-labelledby":i,...n,ref:t})})}).displayName=nd;var nm="SelectLabel",nh=d.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,i=np(nm,r);return(0,c.jsx)(t0.div,{id:i.id,...n,ref:t})});nh.displayName=nm;var ng="SelectItem",[ny,nv]=rY(ng),nx=d.forwardRef((e,t)=>{let{__scopeSelect:r,value:n,disabled:i=!1,textValue:o,...a}=e,l=rQ(ng,r),s=nr(ng,r),u=l.value===n,[f,p]=d.useState(o??""),[m,h]=d.useState(!1),g=(0,k.useComposedRefs)(t,e=>s.itemRefCallback?.(e,n,i)),y=es(),v=d.useRef("touch"),x=()=>{i||(l.onValueChange(n),l.onOpenChange(!1))};if(""===n)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,c.jsx)(ny,{scope:r,value:n,disabled:i,textId:y,isSelected:u,onItemTextChange:d.useCallback(e=>{p(t=>t||(e?.textContent??"").trim())},[]),children:(0,c.jsx)(rq.ItemSlot,{scope:r,value:n,disabled:i,textValue:f,children:(0,c.jsx)(t0.div,{role:"option","aria-labelledby":y,"data-highlighted":m?"":void 0,"aria-selected":u&&m,"data-state":u?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...a,ref:g,onFocus:j(a.onFocus,()=>h(!0)),onBlur:j(a.onBlur,()=>h(!1)),onClick:j(a.onClick,()=>{"mouse"!==v.current&&x()}),onPointerUp:j(a.onPointerUp,()=>{"mouse"===v.current&&x()}),onPointerDown:j(a.onPointerDown,e=>{v.current=e.pointerType}),onPointerMove:j(a.onPointerMove,e=>{v.current=e.pointerType,i?s.onItemLeave?.():"mouse"===v.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:j(a.onPointerLeave,e=>{e.currentTarget===document.activeElement&&s.onItemLeave?.()}),onKeyDown:j(a.onKeyDown,e=>{(s.searchRef?.current===""||" "!==e.key)&&(rH.includes(e.key)&&x()," "===e.key&&e.preventDefault())})})})})});nx.displayName=ng;var nw="SelectItemText",nb=d.forwardRef((e,t)=>{let{__scopeSelect:r,className:n,style:i,...o}=e,a=rQ(nw,r),l=nr(nw,r),s=nv(nw,r),u=r1(nw,r),[f,p]=d.useState(null),m=(0,k.useComposedRefs)(t,e=>p(e),s.onItemTextChange,e=>l.itemTextRefCallback?.(e,s.value,s.disabled)),h=f?.textContent,g=d.useMemo(()=>(0,c.jsx)("option",{value:s.value,disabled:s.disabled,children:h},s.value),[s.disabled,s.value,h]),{onNativeOptionAdd:y,onNativeOptionRemove:v}=u;return eo(()=>(y(g),()=>v(g)),[y,v,g]),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(t0.span,{id:s.textId,...o,ref:m}),s.isSelected&&a.valueNode&&!a.valueNodeHasChildren?x.createPortal(o.children,a.valueNode):null]})});nb.displayName=nw;var nC="SelectItemIndicator",nS=d.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return nv(nC,r).isSelected?(0,c.jsx)(t0.span,{"aria-hidden":!0,...n,ref:t}):null});nS.displayName=nC;var nE="SelectScrollUpButton",nR=d.forwardRef((e,t)=>{let r=nr(nE,e.__scopeSelect),n=ns(nE,e.__scopeSelect),[i,o]=d.useState(!1),a=(0,k.useComposedRefs)(t,n.onScrollButtonChange);return eo(()=>{if(r.viewport&&r.isPositioned){let e=function(){o(t.scrollTop>0)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),i?(0,c.jsx)(nk,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});nR.displayName=nE;var nj="SelectScrollDownButton",nN=d.forwardRef((e,t)=>{let r=nr(nj,e.__scopeSelect),n=ns(nj,e.__scopeSelect),[i,o]=d.useState(!1),a=(0,k.useComposedRefs)(t,n.onScrollButtonChange);return eo(()=>{if(r.viewport&&r.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;o(Math.ceil(t.scrollTop)<e)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),i?(0,c.jsx)(nk,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});nN.displayName=nj;var nk=d.forwardRef((e,t)=>{let{__scopeSelect:r,onAutoScroll:n,...i}=e,o=nr("SelectScrollButton",r),a=d.useRef(null),l=rG(r),s=d.useCallback(()=>{null!==a.current&&(window.clearInterval(a.current),a.current=null)},[]);return d.useEffect(()=>()=>s(),[s]),eo(()=>{let e=l().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[l]),(0,c.jsx)(t0.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:j(i.onPointerDown,()=>{null===a.current&&(a.current=window.setInterval(n,50))}),onPointerMove:j(i.onPointerMove,()=>{o.onItemLeave?.(),null===a.current&&(a.current=window.setInterval(n,50))}),onPointerLeave:j(i.onPointerLeave,()=>{s()})})}),nP=d.forwardRef((e,t)=>
1{let{__scopeSelect:r,...n}=e;return(0,c.jsx)(t0.div,{"aria-hidden":!0,...n,ref:t})});nP.displayName="SelectSeparator";var nA="SelectArrow";d.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,i=rX(r),o=rQ(nA,r),a=nr(nA,r);return o.open&&"popper"===a.position?(0,c.jsx)(t$,{...i,...n,ref:t}):null}).displayName=nA;var nT=d.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{let i,o=d.useRef(null),a=(0,k.useComposedRefs)(n,o),l=(i=d.useRef({value:t,previous:t}),d.useMemo(()=>(i.current.value!==t&&(i.current.previous=i.current.value,i.current.value=t),i.current.previous),[t]));return d.useEffect(()=>{let e=o.current;if(!e)return;let r=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(l!==t&&r){let n=new Event("change",{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[l,t]),(0,c.jsx)(t0.select,{...r,style:{...t4,...r.style},ref:a,defaultValue:t})});function nM(e){return""===e||void 0===e}function nL(e){let t=W(e),r=d.useRef(""),n=d.useRef(0),i=d.useCallback(e=>{let i=r.current+e;t(i),function e(t){r.current=t,window.clearTimeout(n.current),""!==t&&(n.current=window.setTimeout(()=>e(""),1e3))}(i)},[t]),o=d.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return d.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,i,o]}function nO(e,t,r){var n,i;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=r?e.indexOf(r):-1,l=(n=e,i=Math.max(a,0),n.map((e,t)=>n[(i+t)%n.length]));1===o.length&&(l=l.filter(e=>e!==r));let s=l.find(e=>e.textValue.toLowerCase().startsWith(o.toLowerCase()));return s!==r?s:void 0}nT.displayName="SelectBubbleInput";var nI=e.i(75254);let nD=(0,nI.default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);var nB=e.i(64659);let nz=(0,nI.default)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),nW=d.forwardRef(({className:e,children:t,...r},n)=>(0,c.jsxs)(r3,{ref:n,className:(0,g.cn)("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
1ing-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...r,children:[t,(0,c.jsx)(r7,{asChild:!0,children:(0,c.jsx)(nB.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));nW.displayName=r3.displayName;let n_=d.forwardRef(({className:e,...t},r)=>(0,c.jsx)(nR,{ref:r,className:(0,g.cn)("flex cursor-default items-center justify-center py-1",e),...t,children:(0,c.jsx)(nz,{className:"h-4 w-4"})}));n_.displayName=nR.displayName;let nF=d.forwardRef(({className:e,...t},r)=>(0,c.jsx)(nN,{ref:r,className:(0,g.cn)("flex cursor-default items-center justify-center py-1",e),...t,children:(0,c.jsx)(nB.ChevronDown,{className:"h-4 w-4"})}));nF.displayName=nN.displayName;let nV=d.forwardRef(({className:e,children:t,position:r="popper",...n},i)=>(0,c.jsx)(r9,{children:(0,c.jsxs)(ne,{ref:i,className:(0,g.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===r&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...n,children:[(0,c.jsx)(n_,{}),(0,c.jsx)(nc,{className:(0,g.cn)("p-1","popper"===r&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),(0,c.jsx)(nF,{})]})}));nV.displayName=ne.displayName,d.forwardRef(({className:e,...t},r)=>(0,c.jsx)(nh,{ref:r,className:(0,g.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t})).displayName=nh.displayName;let n$=d.forwardRef(({className:e,children:t,...r},n)=>(0,c.jsxs)(nx,{ref:n,className:(0,g.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[(0,c.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,c.jsx)(nS,{children:(0,c.jsx)(nD,{className:"h-4 w-4"})})}),(0,c.jsx)(nb,{children:t})]}));n$.displayName=nx.displayName,d.forwardRef(({className:e,...t},r)=>(0,c.jsx)(nP,{ref:r,className:(0,g.cn)("-mx-1 my-1 h-px bg-muted",e),...t})).displayName=nP.displayName;let nH=(0,nI.default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),nK=(0,nI.default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);var nq=e.i(13090);let nG=["General Inquiry","Legal Consultation","Speaking Engagement","Media Inquiry","Collaboration","Other"],nU=function(){if(!Array.isArray(nq.allCountries)||0===nq.allCountries.length)return[];let e=new Map,t=new Map;nq.allCountries.forEach(r=>{let n=r?.name||"",i=r?.dialCode||"",o=r?.iso2||"",a=n.split("(")[0].trim();if(!i||!a||!o)return;let l=`+${i}`,s=`${l}-${o}`;if(t.has(l)){let r=t.get(l);!(a.length<r.country.length)&&a.toLowerCase().includes("island")&&a.toLowerCase().includes("territory")||a===r.country?e.has(s)||e.set(s,{code:l,country:a,isoCode:o}):(t.set(l,{code:l,country:a,isoCode:o}),e.delete(`${l}-${r.isoCode}`),e.set(s,{code:l,country:a,isoCode:o}))}else t.set(l,{code:l,country:a,isoCode:o}),e.set(s,{code:l,country:a,isoCode:o})});let r=Array.from(e.values()).filter(e=>e.code&&e.country&&"+"!==e.code&&"+undefined"!==e.code),n=new Map;return r.forEach(e=>{n.has(e.code)||n.set(e.code,e)}),Array.from(n.values()).sort((e,t)=>e.country.localeCompare(t.country))}();function nY(){let[e,t]=(0,p.useInView)({triggerOnce:!0,threshold:.1}),[r,n]=(0,d.useState)({name:"",email:"",countryCode:"+91",phone:"",purpose:"",subject:"",message:""}),[i,o]=(0,d.useState)(!1),[a,l]=(0,d.useState)(""),[s,u]=(0,d.useState)("");(0,d.useEffect)(()=>{let e=setTimeout(()=>{u(a)},750);return()=>{clearTimeout(e)}},[a]);let g=(0,d.useMemo)(()=>(function(e,t){if(!t.trim())return e;let r=t.toLowerCase();return e.filter(e=>e.country.toLowerCase().includes(r)||e.code.toLowerCase().includes(r)||e.isoCode.toLowerCase().includes(r))})(nU,s),[s]);(0,d.useMemo)(()=>nU.find(e=>e.code===r.countryCode),[r.countryCode]);let[x,w]=(0,d.useState)(1),b=(0,d.useRef)(s);(0,d.useEffect)(()=>{b.current!==s&&(b.current=s,w(1))},[s]);let C=!s&&g.length>30,S=(0,d.useMemo)(()=>
1{if(C){let e=30+(x-1)*20;return g.slice(0,Math.min(e,g.length))}return g},[g,C,x]),R=(0,d.useCallback)(()=>{C&&30+(x-1)*20<g.length&&w(e=>e+1)},[C,x,g.length]),j=(0,d.useCallback)(e=>{let{name:t,value:r}=e.target;n(e=>({...e,[t]:r}))},[]),N=(0,d.useCallback)(e=>{n(t=>({...t,purpose:e}))},[]),k=(0,d.useCallback)(e=>{n(t=>({...t,countryCode:e})),l(""),w(1)},[]),P=""!==r.phone.trim(),A=!!(r.countryCode&&"+91"!==r.countryCode),T=P||A,M=async e=>{if(e.preventDefault(),T){if(!P)return void m.default.error("Phone number is required when country code is selected.");if(!r.countryCode||""===r.countryCode)return void m.default.error("Please select a country code.")}o(!0);try{let e=await fetch("/api/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}),t=await e.json();if(!e.ok)throw Error(t.error||"Something went wrong");m.default.success("Thank you! Your message has been sent successfully.",{duration:5e3}),n({name:"",email:"",countryCode:"+91",phone:"",purpose:"",subject:"",message:""}),l("")}catch(e){m.default.error(e instanceof Error?e.message:"Failed to send message. Please try again.",{duration:5e3})}finally{o(!1)}};return(0,c.jsx)("section",{id:"contact",className:"min-h-screen w-full flex items-center justify-center py-12 sm:py-16 md:py-20 lg:py-24",style:{backgroundColor:"hsl(35, 25%, 98%)"},children:(0,c.jsx)("div",{ref:e,className:"w-[80%] mx-auto px-4 sm:px-6 lg:px-8",children:(0,c.jsxs)(f.motion.div,{initial:{opacity:0,y:30},animate:t?{opacity:1,y:0}:{},transition:{duration:.8},className:"w-full",children:[(0,c.jsxs)("div",{className:"text-center mb-10 sm:mb-12 md:mb-16",children:[(0,c.jsx)("h2",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-semibold mb-4 sm:mb-6 font-cormorant tracking-wide",style:{color:"hsl(245, 45%, 25%)"},children:"Get In Touch"}),(0,c.jsx)("p",{className:"text-sm sm:text-base md:text-lg text-gray-600 font-poppins font-light max-w-2xl mx-auto",children:"We'd love to hear from you. Send us a message and we'll respond as soon as possible."})]}),(0,c.jsxs)("div",{className:"bg-white rounded-2xl shadow-lg border border-gray-100 p-6 sm:p-8 md:p-10 lg:p-12 relative overflow-visible",children:[(0,c.jsx)("div",{className:"absolute top-0 left-0 z-10",children:(0,c.jsx)("img",{src:"/contactus.png",alt:"Contact Us",className:"h-16 sm:h-20 md:h-28 lg:h-32 xl:h-36 2xl:h-40 w-auto"})}),(0,c.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-[60%_40%] gap-8 lg:gap-12 mt-20 sm:mt-24 md:mt-28 lg:mt-32 xl:mt-36 items-stretch",children:(0,c.jsxs)("div",{className:"order-2 lg:order-1",children:[(0,c.jsxs)("form",{onSubmit:M,className:"space-y-6 sm:space-y-8",children:[(0,c.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-5 sm:gap-6",children:[(0,c.jsxs)("div",{className:"space-y-2.5",children:[(0,c.jsxs)(E,{htmlFor:"name",className:"text-sm font-medium text-gray-700 font-inter",children:["Name ",(0,c.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,c.jsx)(y,{type:"text",id:"name",name:"name",required:!0,value:r.name,onChange:j,placeholder:"Your full name",className:"h-12 sm:h-14 text-sm sm:text-base font-inter bg-gray-50/50 border-gray-200 focus:bg-white focus:border-amber-500 focus:ring-2 focus:ring-amber-500/20 transition-all duration-200 rounded-lg"})]}),(0,c.jsxs)("div",{className:"space-y-2.5",children:[(0,c.jsxs)(E,{htmlFor:"email",className:"text-sm font-medium text-gray-700 font-inter",children:["Email ",(0,c.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,c.jsx)(y,{type:"email",id:"email",name:"email",required:!0,value:r.email,onChange:j,placeholder:"[email protected]",className:"h-12 sm:h-14 text-sm sm:text-base font-inter bg-gray-50/50 border-gray-200 focus:bg-white focus:border-amber-500 focus:ring-2 focus:ring-amber-500/20 transition-all duration-200 rounded-lg"})]})]}),(0,c.jsxs)("div",{className:"space-y-2.5",children:[(0,c.jsxs)(E,{htmlFor:"phone",className:"text-sm font-medium text-gray-700 font-inter",children:["Your Phone No",(""!==r.phone.trim()||r.countryCode&&"+91"!==r.countryCode)&&(0,c.jsx)("span",{className:"text-red-500 ml-1",children:"*"})]}),(0,c.jsxs)("div",{className:"grid grid-cols-[140px_1fr] sm:grid-cols-[160px_1fr] gap-3 sm:gap-4",children:[(0,c.jsxs)(r2,{value:r.countryCode,onValueChange:k,required:""!==r.phone.trim(),children:[(0,c.jsx)(nW,{className:"country-code-select h-12 sm:h-14 text-xs sm:text-sm font-inter bg-gray-50/50 border-gray-200 focus:bg-white focus:border-amber-500 focus:ring-2 focus:ring-amber-500/20 transition-all duration-200 rounded-lg",children:(0,c.jsx)(r4,{placeholder:"Code",children:r.countryCode||"Code"})}),(0,c.jsxs)(nV,{className:"max-h-[400px] z-50 p-0",children:[(0,c.jsx)("div",{className:"sticky top-0 z-10 bg-white border-b border-gray-200 p-2",children:(0,c.jsxs)("div",{className:"relative",children:[(0,c.jsx)(nK,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-gray-400"}),(0,c.jsx)(y,{type:"text",placeholder:"Search country...",value:a,onChange:e=>{e.stopPropagation(),l(e.target.value)},onClick:e=>e.stopPropagation(),onKeyDown:e=>{e.stopPropagation(),"Enter"===e.key&&e.preventDefault()},className:"pl-9 h-9 text-xs sm:text-sm font-inter bg-gray-50 border-gray-200 focus:bg-white focus:border-amber-500"})]})}),(0,c.jsx)("div",{className:"max-h-[300px] overflow-y-auto",onScroll:e=>{let t=e.currentTarget;t.scrollHeight-t.scrollTop-t.clientHeight<100&&C&&R()},children:S.length>0?(0,c.jsxs)(c.Fragment,{children:[S.map(e=>(0,c.jsxs)(n$,{value:e.code,className:"font-inter text-xs sm:text-sm",children:[(0,c.jsx)("span",{className:"font-medium",children:e.code}),(0,c.jsx)("span",{className:"text-gray-600 ml-2",children:e.country})]},`${e.code}-${e.isoCode}`)),C&&S.length<g.length&&(0,c.jsxs)("div",{className:"px-2 py-2 text-center text-xs text-gray-400 font-inter border-t border-gray-100",children:["Showing ",S.length," of"," ",g.length," countries",(0,c.jsx)("br",{}),(0,c.jsx)("span",{className:"text-[10px]",children:"Scroll for more or search to filter"})]})]}):(0,c.jsx)("div",{className:"px-2 py-6 text-center text-sm text-gray-500 font-inter",children:"No countries found"})})]})]}),(0,c.jsx)(y,{type:"tel",id:"phone",name:"phone",value:r.phone,onChange:j,placeholder:"1234567890",required:A,className:"h-12 sm:h-14 text-sm sm:text-base font-inter bg-gray-50/50 border-gray-200 focus:bg-white focus:border-amber-500 focus:ring-2 focus:ring-amber-500/20 transition-all duration-200 rounded-lg"})]})]}),(0,c.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-5 sm:gap-6",children:[(0,c.jsxs)("div",{className:"space-y-2.5",children:[(0,c.jsxs)(E,{htmlFor:"purpose",className:"text-sm font-medium text-gray-700 font-inter",children:["Purpose ",(0,c.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,c.jsxs)(r2,{value:r.purpose,onValueChange:N,required:!0,children:[(0,c.jsx)(nW,{className:"h-12 sm:h-14 text-sm sm:text-base font-inter bg-gray-50/50 border-gray-200 focus:bg-white focus:border-amber-500 focus:ring-2 focus:ring-amber-500/20 transition-all duration-200 rounded-lg",children:(0,c.jsx)(r4,{placeholder:"Select purpose"})}),(0,c.jsx)(nV,{children:nG.map(e=>(0,c.jsx)(n$,{value:e,className:"font-inter",children:e},e))})]})]}),(0,c.jsxs)("div",{className:"space-y-2.5",children:[(0,c.jsxs)(E,{htmlFor:"subject",className:"text-sm font-medium text-gray-700 font-inter",children:["Subject ",(0,c.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,c.jsx)(y,{type:"text",id:"subject",name:"subject",required:!0,value:r.subject,onChange:j,placeholder:"What is this regarding?",className:"h-12 sm:h-14 text-sm sm:text-base font-inter bg-gray-50/50 border-gray-200 focus:bg-white focus:border-amber-500 focus:ring-2 focus:ring-amber-500/20 transition-all duration-200 rounded-lg"})]})]}),(0,c.jsxs)("div",{className:"space-y-2.5",children:[(0,c.jsx)(E,{htmlFor:"message",className:"text-sm font-medium text-gray-700 font-inter",children:"Message"}),(0,c.jsx)(v,{id:"message",name:"message",rows:6,value:r.message,onChange:j,placeholder:"Tell us more about your inquiry...",className:"text-sm sm:text-base resize-none font-inter bg-gray-50/50 border-gray-200 focus:bg-white focus:border-amber-500 focus:ring-2 focus:ring-amber-500/20 transition-all duration-200 rounded-lg min-h-[140px]"})]}),(0,c.jsx)("div",{className:"pt-2",children:(0,c.jsx)(h.Button,{type:"submit",disabled:i,className:"w-full h-12 sm:h-14 text-sm sm:text-base font-medium font-inter bg-gradient-to-r from-amber-500 to-amber-600 hover:from-amber-600 hover:to-amber-700 text-white shadow-md hover:shadow-lg transition-all duration-200 rounded-md disabled:opacity-50 disabled:cursor-not-allowed",size:"lg",children:i?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(nH,{className:"mr-2 h-4 w-4 animate-spin"}),"Sending..."]}):"Send Message"})})]}),(0,c.jsxs)("div",{className:"flex items-center justify-center gap-3 sm:gap-4 md:gap-5 mt-4 sm:mt-6 md:mt-8",children:[(0,c.jsx)("a",{href:"/",target:"_blank",rel:"noopener noreferrer",className:"transition-transform hover:scale-110","aria-label":"YouTube",children:(0,c.jsx)("svg",{className:"w-5 h-5 sm:w-6 sm:h-6 md:w-7 md:h-7",fill:"#FF0000",viewBox:"0 0 24 24",children:(0,c.jsx)("path",{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"})})}),(0,c.jsx)("a",{href:"https://in.linkedin.com/in/richapathak1989",target:"_blank",rel:"noopener noreferrer",className:"transition-transform hover:scale-110","aria-label":"LinkedIn",children:(0,c.jsx)("svg",{className:"w-5 h-5 sm:w-6 sm:h-6 md:w-7 md:h-7",fill:"#0077B5",viewBox:"0 0 24 24",children:(0,c.jsx)("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})})})]})]})})]})]})})})}e.s(["default",()=>nY],10810)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.