PageSourceSearch

https://vietclay.com/assets/index-i9kZfBaI.js

js vietclay.com collected 2026-10-08 00:37:17 UTC 229,866 bytes, 103 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Home-DINetoPm.js","assets/react-BwyZ05Tv.js","assets/CommerceBookingPanel-BV7Tttd_.js","assets/chevron-down-CEjQA8iN.js","assets/style-xiMy4gMA.css","assets/vendor-w1xroBfg.js","assets/Home-BK3XHfbb.css","assets/Workshops-DzNNIeni.js","assets/vietclay-CvdMiWXF.js","assets/WorkshopDetail-DqdUC9Me.js","assets/WorkshopWheelLanding-Ck1KVNN6.js","assets/BookingExperiencePanel-DSoS-xDU.js","assets/accordion-BeoNh__8.js","assets/calendar-clock-CE_0ww2e.js","assets/arrow-right-JVcvPmDw.js","assets/x-BRD35TAm.js","assets/chevron-left-CpTh-rrl.js","assets/chevron-right-DV932AbK.js","assets/WorkshopHandbuildingLanding-CilSegM6.js","assets/clock-3-Dqp-uDmK.js","assets/Courses-Bugim1kp.js","assets/BasicPotteryCourse-CCV8hMbH.js","assets/Studio-BBsvK2Mv.js","assets/EditorialProfilePage-Kak_MwDj.js","assets/editorialProfileSeo-C6wyj5vw.js","assets/Pay-BzaQm4ad.js","assets/payment-qrcode-CjSdxGTc.js","assets/PayTest-6ZSZd3ef.js","assets/PaySuccess-B4S2ikmq.js","assets/PayCancelled-SZhZ2hPX.js","assets/ProductDetail-wW9oKLWS.js","assets/Toast-Bl-ulfpN.js","assets/CartPage-D4gWJeT-.js","assets/CheckoutPage-DoBVmlCx.js","assets/admin-divisions-Vt_X1K8h.js","assets/OrderSuccessPage-CSeWcvOo.js","assets/OrderFailedPage-CNyuEkyk.js","assets/LegacySlugResolver-B6rMuj9R.js","assets/guideArticles-DYULWA2C.js","assets/badge-DXV5lvQg.js","assets/card-HXZemr4C.js","assets/NotFoundPage-UQIS199_.js","assets/sliders-horizontal-CHJBFMag.js","assets/GuideArticlesPage-DfgG_Jeb.js","assets/LoginPage-Dndvobfx.js","assets/useAccountPageContent-CCpvEpLw.js","assets/RegisterPage-owlg5XD_.js","assets/AuthCallback-BsmvHEhb.js","assets/ForgotPasswordPage-D4ZlAo2B.js","assets/ResetPasswordPage-Dv3YksKy.js","assets/AccountPage-RsP7TktG.js","assets/separator-BZbZRmO3.js","assets/table-CIeqOnPA.js","assets/EmptyState-qgF9AgIj.js","assets/StatCard-B76cK5Jg.js","assets/ProfilePage-BYC2Sviu.js","assets/skeleton-wyCm_ByX.js","assets/AddressPage-B7Jtn1OP.js","assets/OrderListPage-BTlGf4Ru.js","assets/OrderDetailPage-x3xoW3kW.js","assets/DiscountPage-QeQeCp3b.js","assets/LegalPage-CmjGvQYU.js"])))=>i.map(i=>d[i]);
2import{j as i,r as c,u as qr,L as se,R as oo,a as ro,b as Le,c as ca,d as un,e as la,f as R,N as Se,g as at,B as ua,h as $e,i as da}from"./react-BwyZ05Tv.js";import{c as ha,_ as De,a as Kr,b as fa,i as ft,d as pa,u as dn}from"./vendor-w1xroBfg.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&o(a)}).observe(document,{childList:!0,subtree:!0});function n(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function o(r){if(r.ep)return;r.ep=!0;const s=n(r);fetch(r.href,s)}})();const ma="modulepreload",ga=function(e){return"/"+e},So={},Y=function(t,n,o){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));r=Promise.allSettled(n.map(u=>{if(u=ga(u),u in So)return;So[u]=!0;const d=u.endsWith(".css"),h=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${h}`))return;const f=document.createElement("link");if(f.rel=d?"stylesheet":ma,d||(f.as="script"),f.crossOrigin="",f.href=u,l&&f.setAttribute("nonce",l),document.head.appendChild(f),d)return new Promise((p,m)=>{f.addEventListener("load",p),f.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${u}`)))})}))}function s(a){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=a,window.dispatchEvent(l),!l.defaultPrevented)throw a}return r.then(a=>{for(const l of a||[])l.status==="rejected"&&s(l.reason);return t().catch(s)})};function ba({className:e="",viewport:t=!1}){return i.jsxs("div",{className:["relative isolate flex items-center justify-center overflow-hidden rounded-[2rem]",t?"min-h-[calc(100svh-8rem)]":"min-h-[34vh]",e].join(" "),children:[i.jsx("div",{"aria-hidden":"true",className:"absolute left-1/2 top-1/2 h-40 w-40 -translate-x-[120%] -translate-y-[70%] rounded-full bg-primary/12 blur-3xl"}),i.jsx("div",{"aria-hidden":"true",className:"absolute left-1/2 top-1/2 h-44 w-44 -translate-y-[10%] translate-x-[25%] rounded-full bg-primary/10 blur-3xl"}),i.jsxs("div",{className:"relative w-full max-w-sm rounded-[1.75rem] border border-white/60 bg-white/72 px-8 py-10 text-center shadow-[0_24px_80px_rgba(15,23,42,0.12)] backdrop-blur-xl",children:[i.jsx("div",{className:"mx-auto flex w-fit items-center justify-center rounded-full border border-primary/12 bg-primary/5 p-4 shadow-[0_12px_32px_rgba(201,114,70,0.14)]",children:i.jsxs("span",{className:"relative block h-12 w-12",children:[i.jsx("span",{className:"absolute inset-0 rounded-full border border-primary/15"}),i.jsx("span",{className:"absolute inset-0 rounded-full border-[2.5px] border-transparent border-t-primary/80 border-r-primary/35 animate-spin"}),i.jsx("span",{className:"absolute inset-[9px] rounded-full bg-white/85"}),i.jsx("span",{className:"absolute inset-1/2 h-1.5 w-1.5 -translate-x-1/2 -translate-y-1/2 roun
2ded-full bg-primary/75 shadow-[0_0_18px_rgba(201,114,70,0.45)]"})]})}),i.jsx("div",{className:"mt-5 text-sm font-medium tracking-[0.22em] text-primary/75",children:"Đang tải..."}),i.jsx("div",{"aria-hidden":"true",className:"mx-auto mt-4 h-1.5 w-28 overflow-hidden rounded-full bg-black/5",children:i.jsx("div",{className:"h-full w-1/2 rounded-full bg-gradient-to-r from-primary/35 via-primary/80 to-primary/35 animate-pulse"})}),i.jsxs("div",{"aria-hidden":"true",className:"mt-6 flex justify-center gap-2",children:[i.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-primary/45 animate-pulse"}),i.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-primary/60 animate-pulse [animation-delay:160ms]"}),i.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-primary/45 animate-pulse [animation-delay:320ms]"})]})]})]})}const ya="https://btouuftofgdfwlngvodh.supabase.co",xa="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImJ0b3V1ZnRvZmdkZndsbmd2b2RoIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTQ5MDc5OTQsImV4cCI6MjA3MDQ4Mzk5NH0.1SR_zY7SbmIA2bpL4h8TOVN-nmiMAkjIc2U8VvCedIo",ee=ha(ya,xa,{auth:{detectSessionInUrl:!0,flowType:"pkce"}}),Yr="vietclay_cart_v1",Xr=c.createContext(null),Zr=e=>{var t;return e.itemType==="booking"&&!!((t=e.booking)!=null&&t.slotId)},va=e=>{var t;return e.itemType==="course"&&!!((t=e.course)!=null&&t.courseCode)},En=e=>{var t,n;return Zr(e)?`booking:${((t=e.booking)==null?void 0:t.slotId)??""}`:va(e)?`course:${((n=e.course)==null?void 0:n.courseCode)??e.variantId}`:`product:${e.variantId}`};function wa(e,t){switch(t.type){case"ADD_ITEM":{const n=En(t.payload);return e.items.find(r=>En(r)===n)?{items:e.items.map(r=>{if(En(r)!==n)return r;const s=Math.min(r.quantity+t.payload.quantity,r.maxStock);return{...r,quantity:s,booking:r.booking?{...r.booking,participantQuantity:s}:r.booking}})}:{items:[...e.items,{...t.payload,cartItemId:crypto.randomUUID()}]}}case"REMOVE_ITEM":return{items:e.items.filter(n=>n.cartItemId!==t.payload.cartItemId)};case"UPDATE_QTY":{const{cartItemId:n,quantity:o}=t.payload;return o<=0?{items:e.items.filter(r=>r.cartItemId!==n)}:{items:e.items.map(r=>{if(r.cartItemId!==n)return r;const s=Math.min(o,r.maxStock);return{...r,quantity:s,booking:r.booking?{...r.booking,participantQuantity:s}:r.booking}})}}case"CLEAR_CART":return{items:[]};case"REPAIR_PRICES":{const n=t.payload;return{items:e.items.map(r=>{if(r.price!==0)return r;const s=n[r.variantId];return s==null||s<=0?r:{...r,price:s}})}}case"REPAIR_IMAGES":{const n=t.payload;return{items:e.items.map(r=>{if(r.imageUrl)return r;const s=n[r.cartItemId];return s?{...r,imageUrl:s}:r})}}default:return e}}function ka(){try{const e=localStorage.getItem(Yr);if(!e)return{items:[]};const t=JSON.parse(e);return Array.isArray(t==null?void 0:t.items)?{items:t.items.map(n=>({...n,itemType:n.booking?"booking":n.course?"course":"product"}))}:{items:[]}}catch{return{items:[]}}}function Ca(e){try{localStorage.setItem(Yr,JSON.stringify(e))}catch{}}function Ea({children:e}){const[t,n]=c.useReducer(wa,void 0,ka);c.useEffect(()=>{Ca(t)},[t]);const[o,r]=c.useState(!1);c.useEffect(()=>{if(o||!ee)return;const m=t.items.filter(b=>b.price===0);if(m.length===0){r(!0);return}let y=!1;return(async()=>{const b=m.map(S=>S.variantId),k=await ee.from("vietclay_sapo_variants").select("id, sellable, vietclay_sapo_variant_prices(value,price_list_id)").in("id",b);if(y||k.error||!k.data)return;const x={},C=(()=>{const S="1507248";{const j=Number(S.trim());return Number.isFinite(j)?j:null}})();for(const S of k.data){if(S.sellable!==!0)continue;const j=S.vietclay_sapo_variant_prices??[],P=F=>{if(typeof F=="number")return Number.isFinite(F)?F:null;if(typeof F=="string"){const A=Number(F.trim());return Number.isFinite(A)?A:null}return null},E=F=>F!=null&&F>0,D=C==null?[]:j.filter(F=>F.price_list_id===C).map(F=>P(F.value)).filter(E),W=D.length>0?D:j.map(F=>P(F.value)).filter(E);W.length>0&&(x[S.id]=Math.max(...W))}Object.keys(x).length!==0&&n({type:"REPAIR_PRICES",payload:x})})().finally(()=>r(!0)),()=>{y=!0}},[o,t.items]);const[s,a]=c.useState(!1);c.useEffect(()=>{if(s||!ee)return;const m=t.items.filter(b=>
2!b.imageUrl&&Zr(b));if(m.length===0){a(!0);return}let y=!1;return(async()=>{var v;const b={};for(const k of m){const x=String(k.productId||"").trim();if(!x)continue;const{data:C}=await ee.from("vietclay_sapo_products").select("id").eq("external_id",x).limit(1).maybeSingle(),S=typeof(C==null?void 0:C.id)=="number"?C.id:null;if(!S)continue;const{data:j}=await ee.from("vietclay_sapo_product_images").select("full_path").eq("product_id",S).order("position",{ascending:!0}).limit(1),P=typeof((v=j==null?void 0:j[0])==null?void 0:v.full_path)=="string"?j[0].full_path.trim():"";P&&(b[k.cartItemId]=P)}y||Object.keys(b).length!==0&&n({type:"REPAIR_IMAGES",payload:b})})().finally(()=>a(!0)),()=>{y=!0}},[s,t.items]);const l=m=>n({type:"ADD_ITEM",payload:m}),u=m=>n({type:"REMOVE_ITEM",payload:{cartItemId:m}}),d=(m,y)=>n({type:"UPDATE_QTY",payload:{cartItemId:m,quantity:y}}),h=()=>n({type:"CLEAR_CART"}),f=t.items.reduce((m,y)=>m+y.quantity,0),p=t.items.reduce((m,y)=>m+y.price*y.quantity,0);return i.jsx(Xr.Provider,{value:{...t,addItem:l,removeItem:u,updateQuantity:d,clearCart:h,totalItems:f,totalPrice:p},children:e})}function Qr(){const e=c.useContext(Xr);if(!e)throw new Error("useCart must be used inside CartProvider");return e}function Jr(e){return`${e.toLocaleString("vi-VN")}₫`}function ja({item:e}){const{updateQuantity:t,removeItem:n}=Qr();return i.jsxs("div",{className:"flex items-start gap-3 rounded-xl border-b border-black/5 px-4 py-3 last:border-b-0",children:[i.jsx(se,{to:`/${e.slug}`,className:"shrink-0",onClick:o=>o.stopPropagation(),children:e.imageUrl?i.jsx("img",{src:e.imageUrl,alt:e.productName,className:"h-14 w-14 rounded-lg border border-black/5 object-cover"}):i.jsx("div",{className:"h-14 w-14 shrink-0 rounded-lg bg-gray-100"})}),i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsx(se,{to:`/${e.slug}`,className:"block truncate text-sm font-semibold text-gray-900 hover:underline",onClick:o=>o.stopPropagation(),children:e.productName}),e.variantLabel?i.jsx("p",{className:"text-xs text-gray-500",children:e.variantLabel}):null,i.jsx("p",{className:"mt-0.5 text-xs font-semibold text-gray-900",children:Jr(e.price*e.quantity)}),i.jsxs("div",{className:"mt-1.5 flex items-center gap-2",children:[i.jsx("button",{type:"button","aria-label":"Giảm",onClick:o=>{o.stopPropagation(),t(e.cartItemId,e.quantity-1)},className:"flex h-6 w-6 items-center justify-center rounded-full border border-black/10 bg-white text-gray-700 text-xs transition hover:bg-gray-50",children:"−"}),i.jsx("span",{className:"w-4 text-center text-xs font-semibold text-gray-900",children:e.quantity}),i.jsx("button",{type:"button","aria-label":"Tăng",onClick:o=>{o.stopPropagation(),t(e.cartItemId,e.quantity+1)},className:"flex h-6 w-6 items-center justify-center rounded-full border border-black/10 bg-white text-gray-700 text-xs transition hover:bg-gray-50",children:"+"}),i.jsx("button",{type:"button","aria-label":"Xóa",onClick:o=>{o.stopPropagation(),n(e.cartItemId)},className:"ml-auto text-gray-400 transition hover:text-red-500",children:i.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round","aria-hidden":"true",children:i.jsx("path",{d:"M6 6L18 18M18 6L6 18"})})})]})]})]})}function _o(){const{items:e,totalItems:t,totalPrice:n}=Qr(),o=qr(),[r,s]=c.useState(!1),a=c.useRef(null),l=c.useRef(!1);c.useEffect(()=>{if(!r)return;const d=f=>{a.current&&!a.current.contains(f.target)&&s(!1)},h=f=>{f.key==="Escape"&&s(!1)};return document.addEventListener("mousedown",d),document.addEventListener("keydown",h),()=>{document.removeEventListener("mousedown",d),document.removeEventListener("keydown",h)}},[r]);const u=()=>{l.current=!0,s(d=>!d)};return i.jsxs("div",{ref:a,className:"relative",onMouseEnter:()=>{l.current||s(!0)},onMouseLeave:()=>{l.current||s(!1)},children:[i.jsxs("button",{type:"button",onClick:u,"aria-label":t>0?`Giỏ hàng, ${t} sản phẩm`:"Giỏ hàng","aria-expanded":r,className:"relative flex items-center justify-center rounded-full p-2 text-white transition hover:bg-white/10",children:[i.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[i.jsx("circle",{cx:"9",cy:"21",r:"1"}),i.jsx("circle",{cx:"20",cy:"21",r:"1"}),i.jsx("path",{d:"M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"})]}),t>0&&i.jsx("span",{className:"absolute -right-0.5 -top-0.5 flex h-4 min-w-4 items-center justify-center rounded-full bg-red-500 px-1 text-[10px] font-bold leading-none text-white",children:t>99?"99+":t})]}),r&&i.jsxs("div",{className:"absolute right-0 top-full z-50 w-80 origin-top-right overflow-hidden rounded-2xl border border-black/10 bg-white pt-2 shadow-[0_12px_40px_rgba(15,23,42,0.12)]",children:[i.jsx("div",{className:"px-4 pt-4 pb-2",children:i.jsxs("h3",{className:"text-sm font-semibold text-gray-900",children:["Giỏ hàng của bạn (",t,")"]})}),e.length===0?i.jsxs("div",{className:"px-4 py-8 text-center",children:[i.jsxs("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round",className:"mx-auto text-gray-300","aria-hidden":"true",children:[i.jsx("circle",{cx:"9",cy:"21",r:"1"}),i.jsx("circle",{cx:"20",cy:"21",r:"1"}),i.jsx("path",{d:"M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"})]}),i.jsx("p",{className:"mt-2 text-sm text-gray-500",children:"Giỏ hàng đang trống"})]}):i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"max-h-64 overflow-y-auto",children:e.map(d=>i.jsx(ja,{item:d},d.cartItemId))}),i.jsxs("div",{className:"border-t border-black/10 px-4 py-3",children:[i.jsxs("div",{className:"flex justify-between text-sm font-semibold text-gray-900",children:[i.jsx("span",{children:"Tổng cộng"}),i.jsx("span",{children:Jr(n)})]}),i.jsxs("div",{className:"mt-3 grid grid-cols-2 gap-2",children:[i.jsx(se,{to:"/gio-hang",onClick:()=>s(!1),className:"flex h-9 items-center justify-center rounded-full border border-black/10 bg-white text-xs font-semibold text-gray-700 transition hover:bg-gray-50",children:"Xem giỏ hàng"}),i.jsx("button",{type:"button",onClick:()=>{s(!1),o("/thanh-toan")},className:"flex h-9 items-center justify-center rounded-full bg-primary text-xs font-semibold text-white transition hover:opacity-90",children:"Thanh toán"})]})]})]})]})]})}function Ro(e,t){if(typeof e=="function")return e(t);
2e!=null&&(e.current=t)}function Sa(...e){return t=>{let n=!1;const o=e.map(r=>{const s=Ro(r,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let r=0;r<o.length;r++){const s=o[r];typeof s=="function"?s():Ro(e[r],null)}}}}function _a(...e){return c.useCallback(Sa(...e),e)}function Ra(e){const t=c.forwardRef((n,o)=>{let{children:r,...s}=n,a=null,l=!1;const u=[];Po(r)&&typeof Rt=="function"&&(r=Rt(r._payload)),c.Children.forEach(r,p=>{var m;if(Ia(p)){l=!0;const y=p;let g="child"in y.props?y.props.child:y.props.children;Po(g)&&typeof Rt=="function"&&(g=Rt(g._payload)),a=Na(y,g),u.push((m=a==null?void 0:a.props)==null?void 0:m.children)}else u.push(p)}),a?a=c.cloneElement(a,void 0,u):!l&&c.Children.count(r)===1&&c.isValidElement(r)&&(a=r);const d=a?Ma(a):void 0,h=_a(o,d);if(!a){if(r||r===0)throw new Error(l?Va(e):Da(e));return r}const f=Ta(s,a.props??{});return a.type!==c.Fragment&&(f.ref=o?h:d),c.cloneElement(a,f)});return t.displayName=`${e}.Slot`,t}var Pa=Ra("Slot"),Aa=Symbol.for("radix.slottable"),Na=(e,t)=>{if("child"in e.props){const n=e.props.child;return c.isValidElement(n)?c.cloneElement(n,void 0,e.props.children(n.props.children)):null}return c.isValidElement(t)?t:null};function Ta(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...l)=>{const u=s(...l);return r(...l),u}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function Ma(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Ia(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Aa}var La=Symbol.for("react.lazy");function Po(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===La&&"_payload"in e&&Oa(e._payload)}function Oa(e){return typeof e=="object"&&e!==null&&"then"in e}var Da=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,Va=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,Rt=oo[" use ".trim().toString()];function ei(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=ei(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function ti(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=ei(e))&&(o&&(o+=" "),o+=t);return o}const Ao=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,No=ti,Fa=(e,t)=>n=>{var o;if((t==null?void 0:t.variants)==null)return No(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:s}=t,a=Object.keys(r).map(d=>{const h=n==null?void 0:n[d],f=s==null?void 0:s[d];if(h===null)return null;const p=Ao(h)||Ao(f);return r[d][p]}),l=n&&Object.entries(n).reduce((d,h)=>{let[f,p]=h;return p===void 0||(d[f]=p),d},{}),u=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((d,h)=>{let{class:f,className:p,...m}=h;return Object.entries(m).every(y=>{let[g,b]=y;return Array.isArray(b)?b.includes({...s,...l}[g]):{...s,...l}[g]===b})?[...d,f,p]:d},[]);return No(e,a,u,n==null?void 0:n.class,n==null?void 0:n.className)},Wa=(e,t)=>{const n=new Array(e.length+t.length);for(let o=0;o<e.length;o++)n[o]=e[o];for(let o=0;o<t.length;o++)n[e.length+o]=t[o];return n},Ba=(e,t)=>({classGroupId:e,validator:t}),ni=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),nn="-",To=[],$a="arbitrary..",za=e=>{const t=Ha(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return Ua(a);const l=a.split(nn),u=l[0]===""&&l.length>1?1:0;return oi(l,u,t)},getConflictingClassGroupIds:(a,l)=>{if(l){const u=o[a],d=n[a];return u?d?Wa(d,u):u:d||To}return n[a]||To}}},oi=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const r=e[t],s=n.nextPart.get(r);if(s){const d=oi(e,t+1,s);if(d)return d}const a=n.validators;if(a===null)return;const l=t===0?e.join(nn):e.slice(t).join(nn),u=a.length;for(let d=0;d<u;d++){const h=a[d];if(h.validator(l))return h.classGroupId}},Ua=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),o=t.slice(0,n);return o?$a+o:void 0})(),Ha=e=>{const{theme:t,classGroups:n}=e;return Ga(n,t)},Ga=(e,t)=>{const n=ni();for(const o in e){const r=e[o];io(r,n,o,t)}return n},io=(e,t,n,o)=>{const r=e.length;for(let s=0;s<r;s++){const a=e[s];qa(a,t,n,o)}},qa=(e,t,n,o)=>
vendor: 4,366 bytes, line 2
2{if(typeof e=="string"){Ka(e,t,n);return}if(typeof e=="function"){Ya(e,t,n,o);return}Xa(e,t,n,o)},Ka=(e,t,n)=>{const o=e===""?t:ri(t,e);o.classGroupId=n},Ya=(e,t,n,o)=>{if(Za(e)){io(e(o),t,n,o);return}t.validators===null&&(t.validators=[]),t.validators.push(Ba(n,e))},Xa=(e,t,n,o)=>{const r=Object.entries(e),s=r.length;for(let a=0;a<s;a++){const[l,u]=r[a];io(u,ri(t,l),n,o)}},ri=(e,t)=>{let n=e;const o=t.split(nn),r=o.length;for(let s=0;s<r;s++){const a=o[s];let l=n.nextPart.get(a);l||(l=ni(),n.nextPart.set(a,l)),n=l}return n},Za=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Qa=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),o=Object.create(null);const r=(s,a)=>{n[s]=a,t++,t>e&&(t=0,o=n,n=Object.create(null))};return{get(s){let a=n[s];if(a!==void 0)return a;if((a=o[s])!==void 0)return r(s,a),a},set(s,a){s in n?n[s]=a:r(s,a)}}},Hn="!",Mo=":",Ja=[],Io=(e,t,n,o,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:o,isExternal:r}),ec=e=>{const{prefix:t,experimentalParseClassName:n}=e;let o=r=>{const s=[];let a=0,l=0,u=0,d;const h=r.length;for(let g=0;g<h;g++){const b=r[g];if(a===0&&l===0){if(b===Mo){s.push(r.slice(u,g)),u=g+1;continue}if(b==="/"){d=g;continue}}b==="["?a++:b==="]"?a--:b==="("?l++:b===")"&&l--}const f=s.length===0?r:r.slice(u);let p=f,m=!1;f.endsWith(Hn)?(p=f.slice(0,-1),m=!0):f.startsWith(Hn)&&(p=f.slice(1),m=!0);const y=d&&d>u?d-u:void 0;return Io(s,m,p,y)};if(t){const r=t+Mo,s=o;o=a=>a.startsWith(r)?s(a.slice(r.length)):Io(Ja,!1,a,void 0,!0)}if(n){const r=o;o=s=>n({className:s,parseClassName:r})}return o},tc=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,o)=>{t.set(n,1e6+o)}),n=>{const o=[];let r=[];for(let s=0;s<n.length;s++){const a=n[s],l=a[0]==="[",u=t.has(a);l||u?(r.length>0&&(r.sort(),o.push(...r),r=[]),o.push(a)):r.push(a)}return r.length>0&&(r.sort(),o.push(...r)),o}},nc=e=>({cache:Qa(e.cacheSize),parseClassName:ec(e),sortModifiers:tc(e),...za(e)}),oc=/\s+/,rc=(e,t)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:s}=t,a=[],l=e.trim().split(oc);let u="";for(let d=l.length-1;d>=0;d-=1){const h=l[d],{isExternal:f,modifiers:p,hasImportantModifier:m,baseClassName:y,maybePostfixModifierPosition:g}=n(h);if(f){u=h+(u.length>0?" "+u:u);continue}let b=!!g,v=o(b?y.substring(0,g):y);if(!v){if(!b){u=h+(u.length>0?" "+u:u);continue}if(v=o(y),!v){u=h+(u.length>0?" "+u:u);continue}b=!1}const k=p.length===0?"":p.length===1?p[0]:s(p).join(":"),x=m?k+Hn:k,C=x+v;if(a.indexOf(C)>-1)continue;a.push(C);const S=r(v,b);for(let j=0;j<S.length;++j){const P=S[j];a.push(x+P)}u=h+(u.length>0?" "+u:u)}return u},ic=(...e)=>{let t=0,n,o,r="";for(;t<e.length;)(n=e[t++])&&(o=ii(n))&&(r&&(r+=" "),r+=o);return r},ii=e=>{if(typeof e=="string")return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=ii(e[o]))&&(n&&(n+=" "),n+=t);return n},sc=(e,...t)=>{let n,o,r,s;const a=u=>{const d=t.reduce((h,f)=>f(h),e());return n=nc(d),o=n.cache.get,r=n.cache.set,s=l,l(u)},l=u=>{const d=o(u);if(d)return d;const h=rc(u,n);return r(u,h),h};return s=a,(...u)=>s(ic(...u))},ac=[],re=e=>{const t=n=>n[e]||ac;return t.isThemeGetter=!0,t},si=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ai=/^\((?:(\w[\w-]*):)?(.+)\)$/i,cc=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,lc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,uc=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,dc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,hc=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Te=e=>cc.test(e),H=e=>!!e&&!Number.isNaN(Number(e)),Me=e=>!!e&&Number.isInteger(Number(e)),jn=e=>e.endsWith("%")&&H(e.slice(0,-1)),_e=e=>lc.test(e),ci=()=>!0,pc=e=>uc.test(e)&&!dc.test(e),so=()=>!1,mc=e=>hc.test(e),gc=e=>fc.test(e),bc=e=>!T(e)&&!M(e),yc=e=>Be(e,di,so),T=e=>si.test(e),ze=e=>Be(e,hi,pc),Lo=e=>Be(e,Sc,H),xc=e=>Be(e,pi,ci),vc=e=>Be(e,fi,so),Oo=e=>Be(e,li,so),wc=e=>Be(e,ui,gc),Pt=e=>Be(e,mi,mc),M=e=>ai.test(e),ct=e=>Ge(e,hi),kc=e=>Ge(e,fi),Do=e=>Ge(e,li),Cc=e=>Ge(e,di),Ec=e=>Ge(e,ui),At=e=>Ge(e,mi,!0),jc=e=>Ge(e,pi,!0),Be=(e,t,n)=>{const o=si.exec(e);return o?o[1]?t(o[1]):n(o[2]):!1},Ge=(e,t,n=!1)=>{const o=ai.exec(e);return o?o[1]?t(o[1]):n:!1},li=e=>e==="position"||e==="percentage",ui=e=>
vendor: 4,541 bytes, line 2
2e==="image"||e==="url",di=e=>e==="length"||e==="size"||e==="bg-size",hi=e=>e==="length",Sc=e=>e==="number",fi=e=>e==="family-name",pi=e=>e==="number"||e==="weight",mi=e=>e==="shadow",_c=()=>{const e=re("color"),t=re("font"),n=re("text"),o=re("font-weight"),r=re("tracking"),s=re("leading"),a=re("breakpoint"),l=re("container"),u=re("spacing"),d=re("radius"),h=re("shadow"),f=re("inset-shadow"),p=re("text-shadow"),m=re("drop-shadow"),y=re("blur"),g=re("perspective"),b=re("aspect"),v=re("ease"),k=re("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...C(),M,T],j=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],E=()=>[M,T,u],D=()=>[Te,"full","auto",...E()],W=()=>[Me,"none","subgrid",M,T],F=()=>["auto",{span:["full",Me,M,T]},Me,M,T],A=()=>[Me,"auto",M,T],I=()=>["auto","min","max","fr",M,T],B=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],V=()=>["start","end","center","stretch","center-safe","end-safe"],O=()=>["auto",...E()],L=()=>[Te,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],N=()=>[Te,"screen","full","dvw","lvw","svw","min","max","fit",...E()],_=()=>[Te,"screen","full","lh","dvh","lvh","svh","min","max","fit",...E()],w=()=>[e,M,T],X=()=>[...C(),Do,Oo,{position:[M,T]}],Z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Q=()=>["auto","cover","contain",Cc,yc,{size:[M,T]}],te=()=>[jn,ct,ze],J=()=>["","none","full",d,M,T],q=()=>["",H,ct,ze],oe=()=>["solid","dashed","dotted","double"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],U=()=>[H,jn,Do,Oo],ne=()=>["","none",y,M,T],$=()=>["none",H,M,T],me=()=>["none",H,M,T],he=()=>[H,M,T],ge=()=>[Te,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[_e],breakpoint:[_e],color:[ci],container:[_e],"drop-shadow":[_e],ease:["in","out","in-out"],font:[bc],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[_e],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[_e],shadow:[_e],spacing:["px",H],text:[_e],"text-shadow":[_e],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Te,T,M,b]}],container:["container"],columns:[{columns:[H,T,M,l]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:S()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{"inset-s":D(),start:D()}],end:[{"inset-e":D(),end:D()}],"inset-bs":[{"inset-bs":D()}],"inset-be":[{"inset-be":D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[Me,"auto",M,T]}],basis:[{basis:[Te,"full","auto",l,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[H,Te,"auto","initial","none",T]}],grow:[{grow:["",H,M,T]}],shrink:[{shrink:["",H,M,T]}],order:[{order:[Me,"first","last","none",M,T]}],"grid-cols":[{"grid-cols":W()}],"col-start-end":[{col:F()}],"col-start":[{"col-start":A()}
vendor: 4,170 bytes, line 2
2],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":W()}],"row-start-end":[{row:F()}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":I()}],"auto-rows":[{"auto-rows":I()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...B(),"normal"]}],"justify-items":[{"justify-items":[...V(),"normal"]}],"justify-self":[{"justify-self":["auto",...V()]}],"align-content":[{content:["normal",...B()]}],"align-items":[{items:[...V(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...V(),{baseline:["","last"]}]}],"place-content":[{"place-content":B()}],"place-items":[{"place-items":[...V(),"baseline"]}],"place-self":[{"place-self":["auto",...V()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pbs:[{pbs:E()}],pbe:[{pbe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mbs:[{mbs:O()}],mbe:[{mbe:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:L()}],"inline-size":[{inline:["auto",...N()]}],"min-inline-size":[{"min-inline":["auto",...N()]}],"max-inline-size":[{"max-inline":["none",...N()]}],"block-size":[{block:["auto",..._()]}],"min-block-size":[{"min-block":["auto",..._()]}],"max-block-size":[{"max-block":["none",..._()]}],w:[{w:[l,"screen",...L()]}],"min-w":[{"min-w":[l,"screen","none",...L()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[a]},...L()]}],h:[{h:["screen","lh",...L()]}],"min-h":[{"min-h":["screen","lh","none",...L()]}],"max-h":[{"max-h":["screen","lh",...L()]}],"font-size":[{text:["base",n,ct,ze]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,jc,xc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",jn,T]}],"font-family":[{font:[kc,vc,t]}],"font-features":[{"font-features":[T]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,M,T]}],"line-clamp":[{"line-clamp":[H,"none",M,Lo]}],leading:[{leading:[s,...E()]}],"list-image":[{"list-image":["none",M,T]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",M,T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:w()}],"text-color":[{text:w()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:[H,"from-font","auto",M,ze]}],"text-decoration-color":[{decoration:w()}],"underline-offset":[{"underline-offset":[H,"auto",M,T]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",M,T]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",M,T]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:X()}],"bg-repeat":[{bg:Z()}],"bg-size":[{bg:Q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Me,M,T],radial:["",M,T],conic:[Me,M,T]},Ec,wc]}],"bg-color":[{bg:w()}],"gradient-from-pos":[{from:te()}
vendor: 7,271 bytes, line 2
2],"gradient-via-pos":[{via:te()}],"gradient-to-pos":[{to:te()}],"gradient-from":[{from:w()}],"gradient-via":[{via:w()}],"gradient-to":[{to:w()}],rounded:[{rounded:J()}],"rounded-s":[{"rounded-s":J()}],"rounded-e":[{"rounded-e":J()}],"rounded-t":[{"rounded-t":J()}],"rounded-r":[{"rounded-r":J()}],"rounded-b":[{"rounded-b":J()}],"rounded-l":[{"rounded-l":J()}],"rounded-ss":[{"rounded-ss":J()}],"rounded-se":[{"rounded-se":J()}],"rounded-ee":[{"rounded-ee":J()}],"rounded-es":[{"rounded-es":J()}],"rounded-tl":[{"rounded-tl":J()}],"rounded-tr":[{"rounded-tr":J()}],"rounded-br":[{"rounded-br":J()}],"rounded-bl":[{"rounded-bl":J()}],"border-w":[{border:q()}],"border-w-x":[{"border-x":q()}],"border-w-y":[{"border-y":q()}],"border-w-s":[{"border-s":q()}],"border-w-e":[{"border-e":q()}],"border-w-bs":[{"border-bs":q()}],"border-w-be":[{"border-be":q()}],"border-w-t":[{"border-t":q()}],"border-w-r":[{"border-r":q()}],"border-w-b":[{"border-b":q()}],"border-w-l":[{"border-l":q()}],"divide-x":[{"divide-x":q()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":q()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...oe(),"hidden","none"]}],"divide-style":[{divide:[...oe(),"hidden","none"]}],"border-color":[{border:w()}],"border-color-x":[{"border-x":w()}],"border-color-y":[{"border-y":w()}],"border-color-s":[{"border-s":w()}],"border-color-e":[{"border-e":w()}],"border-color-bs":[{"border-bs":w()}],"border-color-be":[{"border-be":w()}],"border-color-t":[{"border-t":w()}],"border-color-r":[{"border-r":w()}],"border-color-b":[{"border-b":w()}],"border-color-l":[{"border-l":w()}],"divide-color":[{divide:w()}],"outline-style":[{outline:[...oe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[H,M,T]}],"outline-w":[{outline:["",H,ct,ze]}],"outline-color":[{outline:w()}],shadow:[{shadow:["","none",h,At,Pt]}],"shadow-color":[{shadow:w()}],"inset-shadow":[{"inset-shadow":["none",f,At,Pt]}],"inset-shadow-color":[{"inset-shadow":w()}],"ring-w":[{ring:q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:w()}],"ring-offset-w":[{"ring-offset":[H,ze]}],"ring-offset-color":[{"ring-offset":w()}],"inset-ring-w":[{"inset-ring":q()}],"inset-ring-color":[{"inset-ring":w()}],"text-shadow":[{"text-shadow":["none",p,At,Pt]}],"text-shadow-color":[{"text-shadow":w()}],opacity:[{opacity:[H,M,T]}],"mix-blend":[{"mix-blend":[...ie(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ie()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[H]}],"mask-image-linear-from-pos":[{"mask-linear-from":U()}],"mask-image-linear-to-pos":[{"mask-linear-to":U()}],"mask-image-linear-from-color":[{"mask-linear-from":w()}],"mask-image-linear-to-color":[{"mask-linear-to":w()}],"mask-image-t-from-pos":[{"mask-t-from":U()}],"mask-image-t-to-pos":[{"mask-t-to":U()}],"mask-image-t-from-color":[{"mask-t-from":w()}],"mask-image-t-to-color":[{"mask-t-to":w()}],"mask-image-r-from-pos":[{"mask-r-from":U()}],"mask-image-r-to-pos":[{"mask-r-to":U()}],"mask-image-r-from-color":[{"mask-r-from":w()}],"mask-image-r-to-color":[{"mask-r-to":w()}],"mask-image-b-from-pos":[{"mask-b-from":U()}],"mask-image-b-to-pos":[{"mask-b-to":U()}],"mask-image-b-from-color":[{"mask-b-from":w()}],"mask-image-b-to-color":[{"mask-b-to":w()}],"mask-image-l-from-pos":[{"mask-l-from":U()}],"mask-image-l-to-pos":[{"mask-l-to":U()}],"mask-image-l-from-color":[{"mask-l-from":w()}],"mask-image-l-to-color":[{"mask-l-to":w()}],"mask-image-x-from-pos":[{"mask-x-from":U()}],"mask-image-x-to-pos":[{"mask-x-to":U()}],"mask-image-x-from-color":[{"mask-x-from":w()}],"mask-image-x-to-color":[{"mask-x-to":w()}],"mask-image-y-from-pos":[{"mask-y-from":U()}],"mask-image-y-to-pos":[{"mask-y-to":U()}],"mask-image-y-from-color":[{"mask-y-from":w()}],"mask-image-y-to-color":[{"mask-y-to":w()}],"mask-image-radial":[{"mask-radial":[M,T]}],"mask-image-radial-from-pos":[{"mask-radial-from":U()}],"mask-image-radial-to-pos":[{"mask-radial-to":U()}],"mask-image-radial-from-color":[{"mask-radial-from":w()}],"mask-image-radial-to-color":[{"mask-radial-to":w()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[H]}],"mask-image-conic-from-pos":[{"mask-conic-from":U()}],"mask-image-conic-to-pos":[{"mask-conic-to":U()}],"mask-image-conic-from-color":[{"mask-conic-from":w()}],"mask-image-conic-to-color":[{"mask-conic-to":w()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:X()}],"mask-repeat":[{mask:Z()}],"mask-size":[{mask:Q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",M,T]}],filter:[{filter:["","none",M,T]}],blur:[{blur:ne()}],brightness:[{brightness:[H,M,T]}],contrast:[{contrast:[H,M,T]}],"drop-shadow":[{"drop-shadow":["","none",m,At,Pt]}],"drop-shadow-color":[{"drop-shadow":w()}],grayscale:[{grayscale:["",H,M,T]}],"hue-rotate":[{"hue-rotate":[H,M,T]}],invert:[{invert:["",H,M,T]}],saturate:[{saturate:[H,M,T]}],sepia:[{sepia:["",H,M,T]}],"backdrop-filter":[{"backdrop-filter":["","none",M,T]}],"backdrop-blur":[{"backdrop-blur":ne()}],"backdrop-brightness":[{"backdrop-brightness":[H,M,T]}],"backdrop-contrast":[{"backdrop-contrast":[H,M,T]}],"backdrop-grayscale":[{"backdrop-grayscale":["",H,M,T]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[H,M,T]}],"backdrop-invert":[{"backdrop-invert":["",H,M,T]}],"backdrop-opacity":[{"backdrop-opacity":[H,M,T]}],"backdrop-saturate":[{"backdrop-saturate":[H,M,T]}],"backdrop-sepia":[{"backdrop-sepia":["",H,M,T]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",M,T]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[H,"initial",M,T]}],ease:[{ease:["linear","initial",v,M,T]}],delay:[{delay:[H,M,T]}],animate:[{animate:["none",k,M,T]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,M,T]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:$()}],"rotate-x":[{"rotate-x":$()}],"rotate-y":[{"rotate-y":$()}],"rotate-z":[{"rotate-z":$()}],scale:[{scale:me()}],"scale-x":[{"scale-x":me()}],"scale-y":[{"scale-y":me()}],"scale-z":[{"scale-z":me()}],"scale-3d":["scale-3d"],skew:[{skew:he()}],"skew-x":[{"skew-x":he()}],"skew-y":[{"skew-y":he()}],transform:[{transform:[M,T,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ge()}],"translate-x":[{"translate-x":ge()}],"translate-y":[{"translate-y":ge()}],"translate-z":[{"translate-z":ge()}],"translate-none":["translate-none"],accent:[{accent:w()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:w()}
2],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",M,T]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mbs":[{"scroll-mbs":E()}],"scroll-mbe":[{"scroll-mbe":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pbs":[{"scroll-pbs":E()}],"scroll-pbe":[{"scroll-pbe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",M,T]}],fill:[{fill:["none",...w()]}],"stroke-w":[{stroke:[H,ct,ze,Lo]}],stroke:[{stroke:["none",...w()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Rc=sc(_c);function nt(...e){return Rc(ti(e))}const Pc=Fa("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-white hover:bg-primary/90",destructive:"bg-red-600 text-white hover:bg-red-600/90",outline:"border border-black/10 bg-white hover:bg-black/5",secondary:"bg-black text-white hover:bg-black/85",ghost:"hover:bg-black/5",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Ut=c.forwardRef(({className:e,variant:t,size:n,asChild:o=!1,...r},s)=>{const a=o?Pa:"button";return i.jsx(a,{className:nt(Pc({variant:t,size:n,className:e})),ref:s,...r})});Ut.displayName="Button";const gi=c.forwardRef(({className:e,type:t,...n},o)=>i.jsx("input",{type:t,className:nt("flex h-10 w-full rounded-md border border-black/10 bg-white px-3 py-2 text-sm text-gray-800 ring-offset-white file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-gray-400 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/25 disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...n}));gi.displayName="Input";const Vo="studio-opening-waitlist",Ac=e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.trim());function Nc({locale:e,label:t,className:n}){const o=e==="en",r=c.useRef(null),[s,a]=c.useState(!1),[l,u]=c.useState(""),[d,h]=c.useState(""),[f,p]=c.useState("idle"),[m,y]=c.useState(null),g=c.useRef(null),b=c.useRef(null),v=c.useRef(!1);c.useEffect(()=>{if(!s)return;const x=S=>{S.key==="Escape"&&a(!1)},C=document.body.style.overflow;
2return document.body.style.overflow="hidden",window.addEventListener("keydown",x),requestAnimationFrame(()=>{var S;return(S=g.current)==null?void 0:S.focus()}),()=>{document.body.style.overflow=C,window.removeEventListener("keydown",x)}},[s]),c.useEffect(()=>{var x;if(s){v.current=!0;return}v.current&&((x=r.current)==null||x.focus({preventScroll:!0}),v.current=!1)},[s]);const k=async x=>{x.preventDefault();const C=l.trim();if(d)return;if(!C){y(o?"Email is required.":"Vui lòng nhập email.");return}if(!Ac(C)||C.length>254){y(o?"Enter a valid email address.":"Email chưa đúng định dạng.");return}y(null),p("submitting");const S=new Date().toISOString(),j={email:C,locale:e,page_url:window.location.href,submitted_at:S,"bot-field":""};try{if(!(await fetch("/.netlify/functions/studio-opening-waitlist",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(j)})).ok)throw new Error("Submission failed");u(""),p("success")}catch{p("error")}requestAnimationFrame(()=>{var P;return(P=b.current)==null?void 0:P.focus()})};return i.jsxs(i.Fragment,{children:[i.jsx("button",{ref:r,type:"button",onClick:()=>a(!0),className:n,children:t}),s&&ro.createPortal(i.jsx("div",{className:"fixed inset-0 z-[9999] flex items-end justify-center bg-black/60 p-0 backdrop-blur-sm sm:items-center sm:p-6",role:"presentation",onClick:x=>{x.target===x.currentTarget&&f!=="submitting"&&a(!1)},children:i.jsxs("div",{role:"dialog","aria-modal":"true","aria-labelledby":"studio-waitlist-title","aria-describedby":"studio-waitlist-description",onMouseDown:x=>x.stopPropagation(),className:"w-full overflow-hidden rounded-t-3xl border border-black/10 bg-[#fffaf7] shadow-[0_-18px_55px_rgba(0,0,0,0.35)] sm:max-w-md sm:rounded-2xl sm:shadow-[0_30px_80px_rgba(0,0,0,0.45)]",children:[i.jsxs("div",{className:"flex items-start justify-between gap-6 border-b border-black/10 px-6 pb-4 pt-6",children:[i.jsxs("div",{className:"min-w-0",children:[i.jsx("p",{className:"text-[11px] font-semibold uppercase tracking-[0.22em] text-primary",children:"Vietclay Studio"}),i.jsx("h2",{id:"studio-waitlist-title",className:"mt-2 text-xl font-semibold tracking-tight text-gray-950",children:o?"Get notified when we reopen":"Nhận thông báo khi mở cá»­a"}),i.jsx("p",{id:"studio-waitlist-description",className:"mt-2 text-sm leading-6 text-gray-600",children:o?"Drop your email and we'll let you know the moment our new studio is ready.":"Để lại email, Vietclay sẽ báo ngay khi studio mới sẵn sàng mở cá»­a."})]}),i.jsx(Ut,{type:"button",variant:"ghost",size:"icon","aria-label":o?"Close":"Đóng",onClick:()=>a(!1),disabled:f==="submitting",className:"shrink-0 rounded-full text-lg text-gray-500 hover:text-gray-900",children:"×"})]}),i.jsx("div",{className:"px-6 pb-6 pt-5",children:f==="success"?i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{ref:b,tabIndex:-1,className:"flex items-start gap-3 rounded-2xl border border-emerald-200 bg-emerald-50 px-4 py-4 text-sm text-emerald-800 outline-none",role:"status","aria-live":"polite",children:[i.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",className:"mt-0.5 shrink-0","aria-hidden":"true",children:i.jsx("path",{d:"m5 13 4 4L19 7",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})}),i.jsx("span",{children:o?"You're on the list! We'll email you the moment we reopen.":"Đã ghi nhận. Vietclay sẽ email cho bạn khi mở cá»­a."})]}),i.jsx(Ut,{type:"button",variant:"outline",onClick:()=>a(!1),className:"h-11 w-full rounded-full",children:o?"Close":"Đóng"})]}):i.jsxs("form",{onSubmit:x=>void k(x),name:Vo,noValidate:!0,className:"space-y-4",children:[i.jsx("input",{type:"hidden",name:"form-name",value:Vo}),i.jsxs("label",{className:"absolute -left-[10000px]","aria-hidden":"true",children:["Leave empty",i.jsx("input",{name:"bot-field",tabIndex:-1,autoComplete:"off",value:d,onChange:x=>h(x.target.value)})]}),i.jsxs("div",{className:"space-y-1.5",children:[i.jsx("label",{htmlFor:"studio-waitlist-email",className:"block text-sm font-medium text-gray-800",children:"Email *"}),i.jsx(gi,{ref:g,id:"studio-waitlist-email",name:"email",type:"email",autoComplete:"email",placeholder:"[email protected]",maxLength:254,value:l,onCh
vendor: 15,456 bytes, line 2
2ange:x=>u(x.target.value),"aria-invalid":!!m,"aria-describedby":m?"studio-waitlist-email-error":void 0,className:"h-11 rounded-xl"}),m&&i.jsx("p",{id:"studio-waitlist-email-error",className:"text-xs text-red-600",children:m})]}),f==="error"&&i.jsx("p",{className:"rounded-xl bg-red-50 px-4 py-3 text-sm text-red-700",children:o?"Please try again.":"Vui lòng thử lại."}),i.jsx(Ut,{type:"submit",disabled:f==="submitting",className:"h-11 w-full rounded-full text-sm font-semibold",children:f==="submitting"?o?"Saving…":"Đang lưu…":o?"Notify me":"Nhận thông báo"})]})})]})}),document.body)]})}function K(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function Fo(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ot(...e){return t=>{let n=!1;const o=e.map(r=>{const s=Fo(r,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let r=0;r<o.length;r++){const s=o[r];typeof s=="function"?s():Fo(e[r],null)}}}}function de(...e){return c.useCallback(ot(...e),e)}function yt(e,t=[]){let n=[];function o(s,a){const l=c.createContext(a),u=n.length;n=[...n,a];const d=f=>{var v;const{scope:p,children:m,...y}=f,g=((v=p==null?void 0:p[e])==null?void 0:v[u])||l,b=c.useMemo(()=>y,Object.values(y));return i.jsx(g.Provider,{value:b,children:m})};d.displayName=s+"Provider";function h(f,p){var g;const m=((g=p==null?void 0:p[e])==null?void 0:g[u])||l,y=c.useContext(m);if(y)return y;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[d,h]}const r=()=>{const s=n.map(a=>c.createContext(a));return function(l){const u=(l==null?void 0:l[e])||s;return c.useMemo(()=>({[`__scope${e}`]:{...l,[e]:u}}),[l,u])}};return r.scopeName=e,[o,Tc(r,...t)]}function Tc(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const a=o.reduce((l,{useScope:u,scopeName:d})=>{const f=u(s)[`__scope${d}`];return{...l,...f}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var Ve=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{},Mc=oo[" useInsertionEffect ".trim().toString()]||Ve;function bi({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,s,a]=Ic({defaultProp:t,onChange:n}),l=e!==void 0,u=l?e:r;{const h=c.useRef(e!==void 0);c.useEffect(()=>{const f=h.current;f!==l&&console.warn(`${o} is changing from ${f?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. 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.`),h.current=l},[l,o])}const d=c.useCallback(h=>{var f;if(l){const p=Lc(h)?h(e):h;p!==e&&((f=a.current)==null||f.call(a,p))}else s(h)},[l,e,s,a]);return[u,d]}function Ic({defaultProp:e,onChange:t}){const[n,o]=c.useState(e),r=c.useRef(n),s=c.useRef(t);return Mc(()=>{s.current=t},[t]),c.useEffect(()=>{var a;r.current!==n&&((a=s.current)==null||a.call(s,n),r.current=n)},[n,r]),[n,o,s]}function Lc(e){return typeof e=="function"}function Oc(e){const t=Dc(e),n=c.forwardRef((o,r)=>{const{children:s,...a}=o,l=c.Children.toArray(s),u=l.find(Fc);if(u){const d=u.props.children,h=l.map(f=>f===u?c.Children.count(d)>1?c.Children.only(null):c.isValidElement(d)?d.props.children:null:f);return i.jsx(t,{...a,ref:r,children:c.isValidElement(d)?c.cloneElement(d,void 0,h):null})}return i.jsx(t,{...a,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function Dc(e){const t=c.forwardRef((n,o)=>{const{children:r,...s}=n;if(c.isValidElement(r)){const a=Bc(r),l=Wc(s,r.props);return r.type!==c.Fragment&&(l.ref=o?ot(o,a):a),c.cloneElement(r,l)}return c.Children.count(r)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Vc=Symbol("radix.slottable");function Fc(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Vc}function Wc(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...l)=>{const u=s(...l);return r(...l),u}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function Bc(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var $c=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ce=$c.reduce((e,t)=>{const n=Oc(`Primitive.${t}`),o=c.forwardRef((r,s)=>{const{asChild:a,...l}=r,u=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),i.jsx(u,{...l,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function yi(e,t){e&&ro.flushSync(()=>e.dispatchEvent(t))}function Wo(e){const t=zc(e),n=c.forwardRef((o,r)=>{const{children:s,...a}=o,l=c.Children.toArray(s),u=l.find(Hc);if(u){const d=u.props.children,h=l.map(f=>f===u?c.Children.count(d)>1?c.Children.only(null):c.isValidElement(d)?d.props.children:null:f);return i.jsx(t,{...a,ref:r,children:c.isValidElement(d)?c.cloneElement(d,void 0,h):null})}return i.jsx(t,{...a,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function zc(e){const t=c.forwardRef((n,o)=>{const{children:r,...s}=n;if(c.isValidElement(r)){const a=qc(r),l=Gc(s,r.props);return r.type!==c.Fragment&&(l.ref=o?ot(o,a):a),c.cloneElement(r,l)}return c.Children.count(r)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Uc=Symbol("radix.slottable");function Hc(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Uc}function Gc(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...l)=>{const u=s(...l);return r(...l),u}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function qc(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function xi(e){const t=e+"CollectionProvider",[n,o]=yt(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=g=>{const{scope:b,children:v}=g,k=Le.useRef(null),x=Le.useRef(new Map).current;return i.jsx(r,{scope:b,itemMap:x,collectionRef:k,children:v})};a.displayName=t;const l=e+"CollectionSlot",u=Wo(l),d=Le.forwardRef((g,b)=>{const{scope:v,children:k}=g,x=s(l,v),C=de(b,x.collectionRef);return i.jsx(u,{ref:C,children:k})});d.displayName=l;const h=e+"CollectionItemSlot",f="data-radix-collection-item",p=Wo(h),m=Le.forwardRef((g,b)=>{const{scope:v,children:k,...x}=g,C=Le.useRef(null),S=de(b,C),j=s(h,v);return Le.useEffect(()=>(j.itemMap.set(C,{ref:C,...x}),()=>void j.itemMap.delete(C))),i.jsx(p,{[f]:"",ref:S,children:k})});m.displayName=h;function y(g){const b=s(e+"CollectionConsumer",g);return Le.useCallback(()=>{const k=b.collectionRef.current;if(!k)return[];const x=Array.from(k.querySelectorAll(`[${f}]`));return Array.from(b.itemMap.values()).sort((j,P)=>x.indexOf(j.ref.current)-x.indexOf(P.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:a,Slot:d,ItemSlot:m},y,o]}var Kc=c.createContext(void 0);function vi(e){const t=c.useContext(Kc);return e||t||"ltr"}function Re(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[])}function Yc(e,t=globalThis==null?void 0:globalThis.document){const n=Re(e);c.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var Xc="DismissableLayer",Gn="dismissableLayer.update",Zc="dismissableLayer.pointerDownOutside",Qc="dismissableLayer.focusOutside",Bo,wi=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ki=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:a,onDismiss:l,...u}=e,d=c.useContext(wi),[h,f]=c.useState(null),p=(h==null?void 0:h.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=c.useState({}),y=de(t,P=>f(P)),g=Array.from(d.layers),[b]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(b),k=h?g.indexOf(h):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,C=k>=v,S=tl(P=>{const E=P.target,D=[...d.branches].some(W=>W.contains(E));!C||D||(r==null||r(P),a==null||a(P),P.defaultPrevented||l==null||l())},p),j=nl(P=>{const E=P.target;[...d.branches].some(W=>W.contains(E))||(s==null||s(P),a==null||a(P),P.defaultPrevented||l==null||l())},p);return Yc(P=>{k===d.layers.size-1&&(o==null||o(P),!P.defaultPrevented&&l&&(P.preventDefault(),l()))},p),c.useEffect(()=>{if(h)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Bo=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(h)),d.layers.add(h),$o(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Bo)}},[h,p,n,d]),c.useEffect(()=>()=>{h&&(d.layers.delete(h),d.layersWithOutsidePointerEventsDisabled.delete(h),$o())},[h,d]),c.useEffect(()=>{const P=()=>m({});return document.addEventListener(Gn,P),()=>document.removeEventListener(Gn,P)},[]),i.jsx(ce.div,{...u,ref:y,style:{pointerEvents:x?C?"auto":"none":void 0,...e.style},onFocusCapture:K(e.onFocusCapture,j.onFocusCapture),onBlurCapture:K(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:K(e.onPointerDownCapture,S.onPointerDownCapture)})});ki.displayName=Xc;var Jc="DismissableLayerBranch",el=c.forwardRef((e,t)=>{const n=c.useContext(wi),o=c.useRef(null),r=de(t,o);return c.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),i.jsx(ce.div,{...e,ref:r})});el.displayName=Jc;function tl(e,t=globalThis==null?void 0:globalThis.document){const n=Re(e),o=c.useRef(!1),r=c.useRef(()=>{});return c.useEffect(()=>{const s=l=>{if(l.target&&!o.current){let u=function(){Ci(Zc,n,d,{discrete:!0})};const d={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=u,t.addEventListener("click",r.current,{once:!0})):u()}else t.removeEventListener("click",r.current);o.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function nl(e,t=globalThis==null?void 0:globalThis.document){const n=Re(e),o=c.useRef(!1);return c.useEffect(()=>{const r=s=>{s.target&&!o.current&&Ci(Qc,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function $o(){const e=new CustomEvent(Gn);document.dispatchEvent(e)}function Ci(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?yi(r,s):r.dispatchEvent(s)}var Sn=0;function ol(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??zo()),document.body.insertAdjacentElement("beforeend",e[1]??zo()),Sn++,()=>{Sn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Sn--}},[])}function zo(){const 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 _n="focusScope.autoFocusOnMount",Rn="focusScope.autoFocusOnUnmount",Uo={bubbles:!1,cancelable:!0},rl="FocusScope",Ei=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...a}=e,[l,u]=c.useState(null),d=Re(r),h=Re(s),f=c.useRef(null),p=de(t,g=>u(g)),m=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(o){let g=function(x){if(m.paused||!l)return;const C=x.target;l.contains(C)?f.current=C:Oe(f.current,{select:!0})},b=function(x){if(m.paused||!l)return;const C=x.relatedTarget;C!==null&&(l.contains(C)||Oe(f.current,{select:!0}))},v=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&Oe(l)};document.addEventListener("focusin",g),document.addEventListener("focusout",b);const k=new MutationObserver(v);return l&&k.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",b),k.disconnect()}}},[o,l,m.paused]),c.useEffect(()=>{if(l){Go.add(m);const g=document.activeElement;if(!l.contains(g)){const v=new CustomEvent(_n,Uo);l.addEventListener(_n,d),l.dispatchEvent(v),v.defaultPrevented||(il(ul(ji(l)),{select:!0}),document.activeElement===g&&Oe(l))}return()=>{l.removeEventListener(_n,d),setTimeout(()=>{const v=new CustomEvent(Rn,Uo);l.addEventListener(Rn,h),l.dispatchEvent(v),v.defaultPrevented||Oe(g??document.body,{select:!0}),l.removeEventListener(Rn,h),Go.remove(m)},0)}}},[l,d,h,m]);const y=c.useCallback(g=>{if(!n&&!o||m.paused)return;const b=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,v=document.activeElement;if(b&&v){const k=g.currentTarget,[x,C]=sl(k);x&&C?!g.shiftKey&&v===C?(g.preventDefault(),n&&Oe(x,{select:!0})):g.shiftKey&&v===x&&(g.preventDefault(),n&&Oe(C,{select:!0})):v===k&&g.preventDefault()}},[n,o,m.paused]);return i.jsx(ce.div,{tabIndex:-1,...a,ref:p,onKeyDown:y})});Ei.displayName=rl;function il(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(Oe(o,{select:t}),document.activeElement!==n)return}function sl(e){const t=ji(e),n=Ho(t,e),o=Ho(t.reverse(),e);return[n,o]}function ji(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ho(e,t){for(const n of e)if(!al(n,{upTo:t}))return n}function al(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function cl(e){return e instanceof HTMLInputElement&&"select"in e}function Oe(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&cl(e)&&t&&e.select()}}var Go=ll();function ll(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=qo(e,t),e.unshift(t)},remove(t){var n;e=qo(e,t),(n=e[0])==null||n.resume()}}}function qo(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function ul(e){return e.filter(t=>t.tagName!=="A")}var dl=oo[" useId ".trim().toString()]||(()=>{}),hl=0;function qn(e){const[t,n]=c.useState(dl());return Ve(()=>{n(o=>o??String(hl++))},[e]),t?`radix-${t}`:""}const fl=["top","right","bottom","left"],Fe=Math.min,fe=Math.max,on=Math.round,Nt=Math.floor,ke=e=>({x:e,y:e}
vendor: 11,849 bytes, line 2
2),pl={left:"right",right:"left",bottom:"top",top:"bottom"};function Kn(e,t,n){return fe(e,Fe(t,n))}function Pe(e,t){return typeof e=="function"?e(t):e}function Ae(e){return e.split("-")[0]}function rt(e){return e.split("-")[1]}function ao(e){return e==="x"?"y":"x"}function co(e){return e==="y"?"height":"width"}function we(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function lo(e){return ao(we(e))}function ml(e,t,n){n===void 0&&(n=!1);const o=rt(e),r=lo(e),s=co(r);let a=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=rn(a)),[a,rn(a)]}function gl(e){const t=rn(e);return[Yn(e),t,Yn(t)]}function Yn(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Ko=["left","right"],Yo=["right","left"],bl=["top","bottom"],yl=["bottom","top"];function xl(e,t,n){switch(e){case"top":case"bottom":return n?t?Yo:Ko:t?Ko:Yo;case"left":case"right":return t?bl:yl;default:return[]}}function vl(e,t,n,o){const r=rt(e);let s=xl(Ae(e),n==="start",o);return r&&(s=s.map(a=>a+"-"+r),t&&(s=s.concat(s.map(Yn)))),s}function rn(e){const t=Ae(e);return pl[t]+e.slice(t.length)}function wl(e){return{top:0,right:0,bottom:0,left:0,...e}}function Si(e){return typeof e!="number"?wl(e):{top:e,right:e,bottom:e,left:e}}function sn(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function Xo(e,t,n){let{reference:o,floating:r}=e;const s=we(t),a=lo(t),l=co(a),u=Ae(t),d=s==="y",h=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,p=o[l]/2-r[l]/2;let m;switch(u){case"top":m={x:h,y:o.y-r.height};break;case"bottom":m={x:h,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:f};break;case"left":m={x:o.x-r.width,y:f};break;default:m={x:o.x,y:o.y}}switch(rt(t)){case"start":m[a]-=p*(n&&d?-1:1);break;case"end":m[a]+=p*(n&&d?-1:1);break}return m}async function kl(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:a,elements:l,strategy:u}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=Pe(t,e),y=Si(m),b=l[p?f==="floating"?"reference":"floating":f],v=sn(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(b)))==null||n?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:d,rootBoundary:h,strategy:u})),k=f==="floating"?{x:o,y:r,width:a.floating.width,height:a.floating.height}:a.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),C=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},S=sn(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:k,offsetParent:x,strategy:u}):k);return{top:(v.top-S.top+y.top)/C.y,bottom:(S.bottom-v.bottom+y.bottom)/C.y,left:(v.left-S.left+y.left)/C.x,right:(S.right-v.right+y.right)/C.x}}const Cl=50,El=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:a}=n,l=a.detectOverflow?a:{...a,detectOverflow:kl},u=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:h,y:f}=Xo(d,o,u),p=o,m=0;const y={};for(let g=0;g<s.length;g++){const b=s[g];if(!b)continue;const{name:v,fn:k}=b,{x,y:C,data:S,reset:j}=await k({x:h,y:f,initialPlacement:o,placement:p,strategy:r,middlewareData:y,rects:d,platform:l,elements:{reference:e,floating:t}});h=x??h,f=C??f,y[v]={...y[v],...S},j&&m<Cl&&(m++,typeof j=="object"&&(j.placement&&(p=j.placement),j.rects&&(d=j.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:r}):j.rects),{x:h,y:f}=Xo(d,p,u)),g=-1)}return{x:h,y:f,placement:p,strategy:r,middlewareData:y}},jl=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:a,elements:l,middlewareData:u}=t,{element:d,padding:h=0}=Pe(e,t)||{};if(d==null)return{};const f=Si(h),p={x:n,y:o},m=lo(r),y=co(m),g=await a.getDimensions(d),b=m==="y",v=b?"top":"left",k=b?"bottom":"right",x=b?"clientHeight":"clientWidth",C=s.reference[y]+s.reference[m]-p[m]-s.floating[y],S=p[m]-s.reference[m],j=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let P=j?j[x]:0;(!P||!await(a.isElement==null?void 0:a.isElement(j)))&&(P=l.floating[x]||s.floating[y]);const E=C/2-S/2,D=P/2-g[y]/2-1,W=Fe(f[v],D),F=Fe(f[k],D),A=W,I=P-g[y]-F,B=P/2-g[y]/2+E,V=Kn(A,B,I),O=!u.arrow&&rt(r)!=null&&B!==V&&s.reference[y]/2-(B<A?W:F)-g[y]/2<0,L=O?B<A?B-A:B-I:0;return{[m]:p[m]+L,data:{[m]:V,centerOffset:B-V-L,...O&&{alignmentOffset:L}},reset:O}}}),Sl=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:s,rects:a,initialPlacement:l,platform:u,elements:d}=t,{mainAxis:h=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:g=!0,...b}=Pe(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=Ae(r),k=we(l),x=Ae(l)===l,C=await(u.isRTL==null?void 0:u.isRTL(d.floating)),S=p||(x||!g?[rn(l)]:gl(l)),j=y!=="none";!p&&j&&S.push(...vl(l,g,y,C));const P=[l,...S],E=await u.detectOverflow(t,b),D=[];let W=((o=s.flip)==null?void 0:o.overflows)||[];if(h&&D.push(E[v]),f){const B=ml(r,a,C);D.push(E[B[0]],E[B[1]])}if(W=[...W,{placement:r,overflows:D}],!D.every(B=>B<=0)){var F,A;const B=(((F=s.flip)==null?void 0:F.index)||0)+1,V=P[B];if(V&&(!(f==="alignment"?k!==we(V):!1)||W.every(N=>we(N.placement)===k?N.overflows[0]>0:!0)))return{data:{index:B,overflows:W},reset:{placement:V}};let O=(A=W.filter(L=>L.overflows[0]<=0).sort((L,N)=>L.overflows[1]-N.overflows[1])[0])==null?void 0:A.placement;if(!O)switch(m){case"bestFit":{var I;const L=(I=W.filter(N=>{if(j){const _=we(N.placement);return _===k||_==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(_=>_>0).reduce((_,w)=>_+w,0)]).sort((N,_)=>N[1]-_[1])[0])==null?void 0:I[0];L&&(O=L);break}case"initialPlacement":O=l;break}if(r!==O)return{reset:{placement:O}}}return{}}}};function Zo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Qo(e){return fl.some(t=>e[t]>=0)}const _l=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:r="referenceHidden",...s}=Pe(e,t);switch(r){case"referenceHidden":{const a=await o.detectOverflow(t,{...s,elementContext:"reference"}),l=Zo(a,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:Qo(l)}}}case"escaped":{const a=await o.detectOverflow(t,{...s,altBoundary:!0}),l=Zo(a,n.floating);return{data:{escapedOffsets:l,escaped:Qo(l)}}}default:return{}}}}},_i=new Set(["left","top"]);async function Rl(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),a=Ae(n),l=rt(n),u=we(n)==="y",d=_i.has(a)?-1:1,h=s&&u?-1:1,f=Pe(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:y}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof y=="number"&&(m=l==="end"?y*-1:y),u?{x:m*h,y:p*d}:{x:p*d,y:m*h}}const Pl=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:a,middlewareData:l}=t,u=await Rl(t,e);return a===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:r+u.x,y:s+u.y,data:{...u,placement:a}}}}},Al=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:s}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:u={fn:v=>{let{x:k,y:x}=v;return{x:k,y:x}}},...d}=Pe(e,t),h={x:n,y:o},f=await s.detectOverflow(t,d),p=we(Ae(r)),m=ao(p);let y=h[m],g=h[p];if(a){const v=m==="y"?"top":"left",k=m==="y"?"bottom":"right",x=y+f[v],C=y-f[k];y=Kn(x,y,C)}if(l){const v=p==="y"?"top":"left",k=p==="y"?"bottom":"right",x=g+f[v],C=g-f[k];g=Kn(x,g,C)}const b=u.fn({...t,[m]:y,[p]:g});return{...b,data:{x:b.x-n,y:b.y-o,enabled:{[m]:a,[p]:l}}}}}},Nl=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:s,middlewareData:a}=t,{offset:l=0,mainAxis:u=!0,crossAxis:d=!0}=Pe(e,t),h={x:n,y:o},f=we(r),p=ao(f);let m=h[p],y=h[f];const g=Pe(l,t),b=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(u){const x=p==="y"?"height":"width",C=s.reference[p]-s.floating[x]+b.mainAxis,S=s.reference[p]+s.reference[x]-b.mainAxis;m<C?m=C:m>S&&(m=S)}if(d){var v,k;const x=p==="y"?"width":"height",C=_i.has(Ae(r)),S=s.reference[f]-s.floating[x]+(C&&((v=a.offset)==null?void 0:v[f])||0)+(C?0:b.crossAxis),j=s.reference[f]+s.reference[x]+(C?0:((k=a.offset)==null?void 0:k[f])||0)-(C?b.crossAxis:0);y<S?y=S:y>j&&(y=j)}return{[p]:m,[f]:y}}}},Tl=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:s,platform:a,elements:l}=t,{apply:u=()=>{},...d}=Pe(e,t),h=await a.detectOverflow(t,d),f=Ae(r),p=rt(r),m=we(r)==="y",{width:y,height:g}=s.floating;let b,v;f==="top"||f==="bottom"?(b=f,v=p===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(v=f,b=p==="end"?"top":"bottom");const k=g-h.top-h.bottom,x=y-h.left-h.right,C=Fe(g-h[b],k),S=Fe(y-h[v],x),j=!t.middlewareData.shift;let P=C,E=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=x),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(P=k),j&&!p){const W=fe(h.left,0),F=fe(h.right,0),A=fe(h.top,0),I=fe(h.bottom,0);m?E=y-2*(W!==0||F!==0?W+F:fe(h.left,h.right)):P=g-2*(A!==0||I!==0?A+I:fe(h.top,h.bottom))}await u({...t,availableWidth:E,availableHeight:P});const D=await a.getDimensions(l.floating);return y!==D.width||g!==D.height?{reset:{rects:!0}}:{}}}};function hn(){return typeof window<"u"}function it(e){return Ri(e)?(e.nodeName||"").toLowerCase():"#document"}function pe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ce(e){var t;return(t=(Ri(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ri(e){return hn()?e instanceof Node||e instanceof pe(e).Node:!1}function ye(e){return hn()?e instanceof Element||e instanceof pe(e).Element:!1}function Ne(e){return hn()?e instanceof HTMLElement||e instanceof pe(e).HTMLElement:!1}function Jo(e){return!hn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof pe(e).ShadowRoot}function xt(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=xe(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&r!=="inline"&&r!=="contents"}function Ml(e){return/^(table|td|th)$/.test(it(e))}function fn(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Il=/transform|translate|scale|rotate|perspective|filter/,Ll=/paint|layout|strict|content/,Ue=e=>!!e&&e!=="none";let Pn;function uo(e){const t=ye(e)?xe(e):e;return Ue(t.transform)||Ue(t.translate)||Ue(t.scale)||Ue(t.rotate)||Ue(t.perspective)||!ho()&&(Ue(t.backdropFilter)||Ue(t.filter))||Il.test(t.willChange||"")||Ll.test(t.contain||"")}function Ol(e){let t=We(e);for(;Ne(t)&&!tt(t);){if(uo(t))return t;if(fn(t))return null;t=We(t)}return null}function ho(){return Pn==null&&(Pn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Pn}function tt(e){return/^(html|body|#document)$/.test(it(e))}function xe(e){return pe(e).getComputedStyle(e)}function pn(e){return ye(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function We(e){if(it(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Jo(e)&&e.host||Ce(e);return Jo(t)?t.host:t}function Pi(e){const t=We(e);return tt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ne(t)&&xt(t)?t:Pi(t)}function pt(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=Pi(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),a=pe(r);if(s){const l=Xn(a);
vendor: 26,686 bytes, line 2
2return t.concat(a,a.visualViewport||[],xt(r)?r:[],l&&n?pt(l):[])}else return t.concat(r,pt(r,[],n))}function Xn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ai(e){const t=xe(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Ne(e),s=r?e.offsetWidth:n,a=r?e.offsetHeight:o,l=on(n)!==s||on(o)!==a;return l&&(n=s,o=a),{width:n,height:o,$:l}}function fo(e){return ye(e)?e:e.contextElement}function Je(e){const t=fo(e);if(!Ne(t))return ke(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=Ai(t);let a=(s?on(n.width):n.width)/o,l=(s?on(n.height):n.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const Dl=ke(0);function Ni(e){const t=pe(e);return!ho()||!t.visualViewport?Dl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Vl(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==pe(e)?!1:t}function He(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=fo(e);let a=ke(1);t&&(o?ye(o)&&(a=Je(o)):a=Je(e));const l=Vl(s,n,o)?Ni(s):ke(0);let u=(r.left+l.x)/a.x,d=(r.top+l.y)/a.y,h=r.width/a.x,f=r.height/a.y;if(s){const p=pe(s),m=o&&ye(o)?pe(o):o;let y=p,g=Xn(y);for(;g&&o&&m!==y;){const b=Je(g),v=g.getBoundingClientRect(),k=xe(g),x=v.left+(g.clientLeft+parseFloat(k.paddingLeft))*b.x,C=v.top+(g.clientTop+parseFloat(k.paddingTop))*b.y;u*=b.x,d*=b.y,h*=b.x,f*=b.y,u+=x,d+=C,y=pe(g),g=Xn(y)}}return sn({width:h,height:f,x:u,y:d})}function mn(e,t){const n=pn(e).scrollLeft;return t?t.left+n:He(Ce(e)).left+n}function Ti(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-mn(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function Fl(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",a=Ce(o),l=t?fn(t.floating):!1;if(o===a||l&&s)return n;let u={scrollLeft:0,scrollTop:0},d=ke(1);const h=ke(0),f=Ne(o);if((f||!f&&!s)&&((it(o)!=="body"||xt(a))&&(u=pn(o)),f)){const m=He(o);d=Je(o),h.x=m.x+o.clientLeft,h.y=m.y+o.clientTop}const p=a&&!f&&!s?Ti(a,u):ke(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-u.scrollLeft*d.x+h.x+p.x,y:n.y*d.y-u.scrollTop*d.y+h.y+p.y}}function Wl(e){return Array.from(e.getClientRects())}function Bl(e){const t=Ce(e),n=pn(e),o=e.ownerDocument.body,r=fe(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=fe(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+mn(e);const l=-n.scrollTop;return xe(o).direction==="rtl"&&(a+=fe(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:a,y:l}}const er=25;function $l(e,t){const n=pe(e),o=Ce(e),r=n.visualViewport;let s=o.clientWidth,a=o.clientHeight,l=0,u=0;if(r){s=r.width,a=r.height;const h=ho();(!h||h&&t==="fixed")&&(l=r.offsetLeft,u=r.offsetTop)}const d=mn(o);if(d<=0){const h=o.ownerDocument,f=h.body,p=getComputedStyle(f),m=h.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,y=Math.abs(o.clientWidth-f.clientWidth-m);y<=er&&(s-=y)}else d<=er&&(s+=d);return{width:s,height:a,x:l,y:u}}function zl(e,t){const n=He(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=Ne(e)?Je(e):ke(1),a=e.clientWidth*s.x,l=e.clientHeight*s.y,u=r*s.x,d=o*s.y;return{width:a,height:l,x:u,y:d}}function tr(e,t,n){let o;if(t==="viewport")o=$l(e,n);else if(t==="document")o=Bl(Ce(e));else if(ye(t))o=zl(t,n);else{const r=Ni(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return sn(o)}function Mi(e,t){const n=We(e);return n===t||!ye(n)||tt(n)?!1:xe(n).position==="fixed"||Mi(n,t)}function Ul(e,t){const n=t.get(e);if(n)return n;let o=pt(e,[],!1).filter(l=>ye(l)&&it(l)!=="body"),r=null;const s=xe(e).position==="fixed";let a=s?We(e):e;for(;ye(a)&&!tt(a);){const l=xe(a),u=uo(a);!u&&l.position==="fixed"&&(r=null),(s?!u&&!r:!u&&l.position==="static"&&!!r&&(r.position==="absolute"||r.position==="fixed")||xt(a)&&!u&&Mi(e,a))?o=o.filter(h=>h!==a):r=l,a=We(a)}return t.set(e,o),o}function Hl(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const a=[...n==="clippingAncestors"?fn(t)?[]:Ul(t,this._c):[].concat(n),o],l=tr(t,a[0],r);let u=l.top,d=l.right,h=l.bottom,f=l.left;for(let p=1;p<a.length;p++){const m=tr(t,a[p],r);u=fe(m.top,u),d=Fe(m.right,d),h=Fe(m.bottom,h),f=fe(m.left,f)}return{width:d-f,height:h-u,x:f,y:u}}function Gl(e){const{width:t,height:n}=Ai(e);return{width:t,height:n}}function ql(e,t,n){const o=Ne(t),r=Ce(t),s=n==="fixed",a=He(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const u=ke(0);function d(){u.x=mn(r)}if(o||!o&&!s)if((it(t)!=="body"||xt(r))&&(l=pn(t)),o){const m=He(t,!0,s,t);u.x=m.x+t.clientLeft,u.y=m.y+t.clientTop}else r&&d();s&&!o&&r&&d();const h=r&&!o&&!s?Ti(r,l):ke(0),f=a.left+l.scrollLeft-u.x-h.x,p=a.top+l.scrollTop-u.y-h.y;return{x:f,y:p,width:a.width,height:a.height}}function An(e){return xe(e).position==="static"}function nr(e,t){if(!Ne(e)||xe(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ce(e)===n&&(n=n.ownerDocument.body),n}function Ii(e,t){const n=pe(e);if(fn(e))return n;if(!Ne(e)){let r=We(e);for(;r&&!tt(r);){if(ye(r)&&!An(r))return r;r=We(r)}return n}let o=nr(e,t);for(;o&&Ml(o)&&An(o);)o=nr(o,t);return o&&tt(o)&&An(o)&&!uo(o)?n:o||Ol(e)||n}const Kl=async function(e){const t=this.getOffsetParent||Ii,n=this.getDimensions,o=await n(e.floating);return{reference:ql(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Yl(e){return xe(e).direction==="rtl"}const Xl={convertOffsetParentRelativeRectToViewportRelativeRect:Fl,getDocumentElement:Ce,getClippingRect:Hl,getOffsetParent:Ii,getElementRects:Kl,getClientRects:Wl,getDimensions:Gl,getScale:Je,isElement:ye,isRTL:Yl};function Li(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Zl(e,t){let n=null,o;const r=Ce(e);function s(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function a(l,u){l===void 0&&(l=!1),u===void 0&&(u=1),s();const d=e.getBoundingClientRect(),{left:h,top:f,width:p,height:m}=d;if(l||t(),!p||!m)return;const y=Nt(f),g=Nt(r.clientWidth-(h+p)),b=Nt(r.clientHeight-(f+m)),v=Nt(h),x={rootMargin:-y+"px "+-g+"px "+-b+"px "+-v+"px",threshold:fe(0,Fe(1,u))||1};let C=!0;function S(j){const P=j[0].intersectionRatio;if(P!==u){if(!C)return a();P?a(!1,P):o=setTimeout(()=>{a(!1,1e-7)},1e3)}P===1&&!Li(d,e.getBoundingClientRect())&&a(),C=!1}try{n=new IntersectionObserver(S,{...x,root:r.ownerDocument})}catch{n=new IntersectionObserver(S,x)}n.observe(e)}return a(!0),s}function Ql(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:u=!1}=o,d=fo(e),h=r||s?[...d?pt(d):[],...t?pt(t):[]]:[];h.forEach(v=>{r&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const f=d&&l?Zl(d,n):null;let p=-1,m=null;a&&(m=new ResizeObserver(v=>{let[k]=v;k&&k.target===d&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var x;(x=m)==null||x.observe(t)})),n()}),d&&!u&&m.observe(d),t&&m.observe(t));let y,g=u?He(e):null;u&&b();function b(){const v=He(e);g&&!Li(g,v)&&n(),g=v,y=requestAnimationFrame(b)}return n(),()=>{var v;h.forEach(k=>{r&&k.removeEventListener("scroll",n),s&&k.removeEventListener("resize",n)}),f==null||f(),(v=m)==null||v.disconnect(),m=null,u&&cancelAnimationFrame(y)}}const Jl=Pl,eu=Al,tu=Sl,nu=Tl,ou=_l,or=jl,ru=Nl,iu=(e,t,n)=>{const o=new Map,r={platform:Xl,...n},s={...r.platform,_c:o};return El(e,t,{...r,platform:s})};var su=typeof document<"u",au=function(){},Ht=su?c.useLayoutEffect:au;function an(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!an(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const s=r[o];if(!(s==="_owner"&&e.$$typeof)&&!an(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Oi(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function rr(e,t){const n=Oi(e);return Math.round(t*n)/n}function Nn(e){const t=c.useRef(e);return Ht(()=>{t.current=e}),t}function cu(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:s,floating:a}={},transform:l=!0,whileElementsMounted:u,open:d}=e,[h,f]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=c.useState(o);an(p,o)||m(o);const[y,g]=c.useState(null),[b,v]=c.useState(null),k=c.useCallback(N=>{N!==j.current&&(j.current=N,g(N))},[]),x=c.useCallback(N=>{N!==P.current&&(P.current=N,v(N))},[]),C=s||y,S=a||b,j=c.useRef(null),P=c.useRef(null),E=c.useRef(h),D=u!=null,W=Nn(u),F=Nn(r),A=Nn(d),I=c.useCallback(()=>{if(!j.current||!P.current)return;const N={placement:t,strategy:n,middleware:p};F.current&&(N.platform=F.current),iu(j.current,P.current,N).then(_=>{const w={..._,isPositioned:A.current!==!1};B.current&&!an(E.current,w)&&(E.current=w,ro.flushSync(()=>{f(w)}))})},[p,t,n,F,A]);Ht(()=>{d===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,f(N=>({...N,isPositioned:!1})))},[d]);const B=c.useRef(!1);Ht(()=>(B.current=!0,()=>{B.current=!1}),[]),Ht(()=>{if(C&&(j.current=C),S&&(P.current=S),C&&S){if(W.current)return W.current(C,S,I);I()}},[C,S,I,W,D]);const V=c.useMemo(()=>({reference:j,floating:P,setReference:k,setFloating:x}),[k,x]),O=c.useMemo(()=>({reference:C,floating:S}),[C,S]),L=c.useMemo(()=>{const N={position:n,left:0,top:0};if(!O.floating)return N;const _=rr(O.floating,h.x),w=rr(O.floating,h.y);return l?{...N,transform:"translate("+_+"px, "+w+"px)",...Oi(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:_,top:w}},[n,l,O.floating,h.x,h.y]);return c.useMemo(()=>({...h,update:I,refs:V,elements:O,floatingStyles:L}),[h,I,V,O,L])}const lu=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?or({element:o.current,padding:r}).fn(n):{}:o?or({element:o,padding:r}).fn(n):{}}}},uu=(e,t)=>{const n=Jl(e);return{name:n.name,fn:n.fn,options:[e,t]}},du=(e,t)=>{const n=eu(e);return{name:n.name,fn:n.fn,options:[e,t]}},hu=(e,t)=>({fn:ru(e).fn,options:[e,t]}),fu=(e,t)=>{const n=tu(e);return{name:n.name,fn:n.fn,options:[e,t]}},pu=(e,t)=>{const n=nu(e);return{name:n.name,fn:n.fn,options:[e,t]}},mu=(e,t)=>{const n=ou(e);return{name:n.name,fn:n.fn,options:[e,t]}},gu=(e,t)=>{const n=lu(e);return{name:n.name,fn:n.fn,options:[e,t]}};var bu="Arrow",Di=c.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...s}=e;return i.jsx(ce.svg,{...s,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:i.jsx("polygon",{points:"0,0 30,0 15,10"})})});Di.displayName=bu;var yu=Di;function xu(e){const[t,n]=c.useState(void 0);return Ve(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const s=r[0];let a,l;if("borderBoxSize"in s){const u=s.borderBoxSize,d=Array.isArray(u)?u[0]:u;a=d.inlineSize,l=d.blockSize}else a=e.offsetWidth,l=e.offsetHeight;n({width:a,height:l})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var po="Popper",[Vi,Fi]=yt(po),[vu,Wi]=Vi(po),Bi=e=>{const{__scopePopper:t,children:n}=e,[o,r]=c.useState(null);return i.jsx(vu,{scope:t,anchor:o,onAnchorChange:r,children:n})};Bi.displayName=po;var $i="PopperAnchor",zi=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,s=Wi($i,n),a=c.useRef(null),l=de(t,a),u=c.useRef(null);return c.useEffect(()=>{const d=u.current;u.current=(o==null?void 0:o.current)||a.current,d!==u.current&&s.onAnchorChange(u.current)}),o?null:i.jsx(ce.div,{...r,ref:l})});zi.displayName=$i;var mo="PopperContent",[wu,ku]=Vi(mo),Ui=c.forwardRef((e,t)=>{var oe,ie,U,ne,$,me;const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:s="center",alignOffset:a=0,arrowPadding:l=0,avoidCollisions:u=!0,collisionBoundary:d=[],collisionPadding:h=0,sticky:f="partial",hideWhenDetached:p=!1,updatePositionStrategy:m="optimized",onPlaced:y,...g}=e,b=Wi(mo,n),[v,k]=c.useState(null),x=de(t,he=>k(he)),[C,S]=c.useState(null),j=xu(C),P=(j==null?void 0:j.width)??0,E=(j==null?void 0:j.height)??0,D=o+(s!=="center"?"-"+s:""),W=typeof h=="number"?h:{top:0,right:0,bottom:0,left:0,...h},F=Array.isArray(d)?d:[d],A=F.length>0,I={padding:W,boundary:F.filter(Eu),altBoundary:A},{refs:B,floatingStyles:V,placement:O,isPositioned:L,middlewareData:N}=cu({strategy:"fixed",placement:D,whileElementsMounted:(...he)=>Ql(...he,{animationFrame:m==="always"}),elements:{reference:b.anchor},middleware:[uu({mainAxis:r+E,alignmentAxis:a}),u&&du({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?hu():void 0,...I}),u&&fu({...I}),pu({...I,apply:({elements:he,rects:ge,availableWidth:vn,availableHeight:wn})=>{const{width:kn,height:Ee}=ge.reference,Ye=he.floating.style;Ye.setProperty("--radix-popper-available-width",`${vn}px`),Ye.setProperty("--radix-popper-available-height",`${wn}px`),Ye.setProperty("--radix-popper-anchor-width",`${kn}px`),Ye.setProperty("--radix-popper-anchor-height",`${Ee}px`)}}),C&&gu({element:C,padding:l}),ju({arrowWidth:P,arrowHeight:E}),p&&mu({strategy:"referenceHidden",...I})]}),[_,w]=qi(O),X=Re(y);Ve(()=>{L&&(X==null||X())},[L,X]);const Z=(oe=N.arrow)==null?void 0:oe.x,Q=(ie=N.arrow)==null?void 0:ie.y,te=((U=N.arrow)==null?void 0:U.centerOffset)!==0,[J,q]=c.useState();return Ve(()=>{v&&q(window.getComputedStyle(v).zIndex)},[v]),i.jsx("div",{ref:B.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:L?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[(ne=N.transformOrigin)==null?void 0:ne.x,($=N.transformOrigin)==null?void 0:$.y].join(" "),...((me=N.hide)==null?void 0:me.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:i.jsx(wu,{scope:n,placedSide:_,onArrowChange:S,arrowX:Z,arrowY:Q,shouldHideArrow:te,children:i.jsx(ce.div,{"data-side":_,"data-align":w,...g,ref:x,style:{...g.style,animation:L?void 0:"none"}})})})});Ui.displayName=mo;var Hi="PopperArrow",Cu={top:"bottom",right:"left",bottom:"top",left:"right"},Gi=c.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,s=ku(Hi,o),a=Cu[s.placedSide];return i.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:i.jsx(yu,{...r,ref:n,style:{...r.style,display:"block"}})})});Gi.displayName=Hi;function Eu(e){return e!==null}var ju=e=>({name:"transformOrigin",options:e,fn(t){var b,v,k;const{placement:n,rects:o,middlewareData:r}=t,a=((b=r.arrow)==null?void 0:b.centerOffset)!==0,l=a?0:e.arrowWidth,u=a?0:e.arrowHeight,[d,h]=qi(n),f={start:"0%",center:"50%",end:"100%"}[h],p=(((v=r.arrow)==null?void 0:v.x)??0)+l/2,m=(((k=r.arrow)==null?void 0:k.y)??0)+u/2;let y="",g="";return d==="bottom"?(y=a?f:`${p}px`,g=`${-u}px`):d==="top"?(y=a?f:`${p}px`,g=`${o.floating.height+u}px`):d==="right"?(y=`${-u}px`,g=a?f:`${m}px`):d==="left"&&(y=`${o.floating.width+u}px`,g=a?f:`${m}px`),{data:{x:y,y:g}}}});function qi(e){const[t,n="center"]=e.split("-");return[t,n]}var Su=Bi,_u=zi,Ru=Ui,Pu=Gi,Au="Portal",Ki=c.forwardRef((e,t)=>{var l;const{container:n,...o}=e,[r,s]=c.useState(!1);Ve(()=>s(!0),[]);const a=n||r&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return a?ca.createPortal(i.jsx(ce.div,{...o,ref:t}),a):null});Ki.displayName=Au;function Nu(e,t){return c.useReducer((n,o)=>t[n][o]??n,e)}var vt=e=>{const{present:t,children:n}=e,o=Tu(t),r=typeof n=="function"?n({present:o.isPresent}):c.Children.only(n),s=de(o.ref,Mu(r));return typeof n=="function"||o.isPresent?c.cloneElement(r,{ref:s}):null};vt.displayName="Presence";function Tu(e){const[t,n]=c.useState(),o=c.useRef(null),r=c.useRef(e),s=c.useRef("none"),a=e?"mounted":"unmounted",[l,u]=Nu(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const d=Tt(o.current);s.current=l==="mounted"?d:"none"},[l]),Ve(()=>{const d=o.current,h=r.current;if(h!==e){const p=s.current,m=Tt(d);e?u("MOUNT"):m==="none"||(d==null?void 0:d.display)==="none"?u("UNMOUNT"):u(h&&p!==m?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,u]),Ve(()=>{if(t){let d;const h=t.ownerDocument.defaultView??window,f=m=>{const g=Tt(o.current).includes(CSS.escape(m.animationName));if(m.target===t&&g&&(u("ANIMATION_END"),!r.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",d=h.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},p=m=>{m.target===t&&(s.current=Tt(o.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{h.clearTimeout(d),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:c.useCallback(d=>{o.current=d?getComputedStyle(d):null,n(d)},[])}}function Tt(e){return(e==null?void 0:e.animationName)||"none"}function Mu(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Tn="rovingFocusGroup.onEntryFocus",Iu={bubbles:!1,cancelable:!0},wt="RovingFocusGroup",[Zn,Yi,Lu]=xi(wt),[Ou,Xi]=yt(wt,[Lu]),[Du,Vu]=Ou(wt),Zi=c.forwardRef((e,t)=>i.jsx(Zn.Provider,{scope:e.__scopeRovingFocusGroup,children:i.jsx(Zn.Slot,{scope:e.__scopeRovingFocusGroup,children:i.jsx(Fu,{...e,ref:t})})}));Zi.displayName=wt;var Fu=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:r=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:d,preventScrollOnEntryFocus:h=!1,...f}=e,p=c.useRef(null),m=de(t,p),y=vi(s),[g,b]=bi({prop:a,defaultProp:l??null,onChange:u,caller:wt}),[v,k]=c.useState(!1),x=Re(d),C=Yi(n),S=c.useRef(!1),[j,P]=c.useState(0);return c.useEffect(()=>{const E=p.current;if(E)return E.addEventListener(Tn,x),()=>E.removeEventListener(Tn,x)},[x]),i.jsx(Du,{scope:n,orientation:o,dir:y,loop:r,currentTabStopId:g,onItemFocus:c.useCallback(E=>b(E),[b]),onItemShiftTab:c.useCallback(()=>k(!0),[]),onFocusableItemAdd:c.useCallback(()=>P(E=>E+1),[]),onFocusableItemRemove:c.useCallback(()=>P(E=>E-1),[]),children:i.jsx(ce.div,{tabIndex:v||j===0?-1:0,"data-orientation":o,...f,ref:m,style:{outline:"none",...e.style},onMouseDown:K(e.onMouseDown,()=>{S.current=!0}),onFocus:K(e.onFocus,E=>{const D=!S.current;if(E.target===E.currentTarget&&D&&!v){const W=new CustomEvent(Tn,Iu);if(E.currentTarget.dispatchEvent(W),!W.defaultPrevented){const F=C().filter(O=>O.focusable),A=F.find(O=>O.active),I=F.find(O=>O.id===g),V=[A,I,...F].filter(Boolean).map(O=>O.ref.current);es(V,h)}}S.current=!1}),onBlur:K(e.onBlur,()=>k(!1))})})}),Qi="RovingFocusGroupItem",Ji=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:r=!1,tabStopId:s,children:a,...l}=e,u=qn(),d=s||u,h=Vu(Qi,n),f=h.currentTabStopId===d,p=Yi(n),{onFocusableItemAdd:m,onFocusableItemRemove:y,currentTabStopId:g}=h;return c.useEffect(()=>{if(o)return m(),()=>y()},[o,m,y]),i.jsx(Zn.ItemSlot,{scope:n,id:d,focusable:o,active:r,children:i.jsx(ce.span,{tabIndex:f?0:-1,"data-orientation":h.orientation,...l,ref:t,onMouseDown:K(e.onMouseDown,b=>{o?h.onItemFocus(d):b.preventDefault()}),onFocus:K(e.onFocus,()=>h.onItemFocus(d)),onKeyDown:K(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){h.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const v=$u(b,h.orientation,h.dir);if(v!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let x=p().filter(C=>C.focusable).map(C=>C.ref.current);if(v==="last")x.reverse();else if(v==="prev"||v==="next"){v==="prev"&&x.reverse();const C=x.indexOf(b.currentTarget);x=h.loop?zu(x,C+1):x.slice(C+1)}setTimeout(()=>es(x))}}),children:typeof a=="function"?a({isCurrentTabStop:f,hasTabStop:g!=null}):a})})});Ji.displayName=Qi;var Wu={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Bu(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function $u(e,t,n){const o=Bu(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return Wu[o]}function es(e,t=!1){const n=document.activeElement;for(const o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}function zu(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var Uu=Zi,Hu=Ji;function Gu(e){const t=qu(e),n=c.forwardRef((o,r)=>{const{children:s,...a}=o,l=c.Children.toArray(s),u=l.find(Yu);if(u){const d=u.props.children,h=l.map(f=>f===u?c.Children.count(d)>1?c.Children.only(null):c.isValidElement(d)?d.props.children:null:f);return i.jsx(t,{...a,ref:r,children:c.isValidElement(d)?c.cloneElement(d,void 0,h):null})}return i.jsx(t,{...a,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function qu(e){const t=c.forwardRef((n,o)=>{const{children:r,...s}=n;if(c.isValidElement(r)){const a=Zu(r),l=Xu(s,r.props);return r.type!==c.Fragment&&(l.ref=o?ot(o,a):a),c.cloneElement(r,l)}return c.Children.count(r)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ku=Symbol("radix.slottable");function Yu(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ku}function Xu(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...l)=>{const u=s(...l);return r(...l),u}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function Zu(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Qu=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Xe=new WeakMap,Mt=new WeakMap,It={},Mn=0,ts=function(e){return e&&(e.host||ts(e.parentNode))},Ju=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=ts(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},ed=function(e,t,n,o){var r=Ju(t,Array.isArray(e)?e:[e]);It[n]||(It[n]=new WeakMap);var s=It[n],a=[],l=new Set,u=new Set(r),d=function(f){!f||l.has(f)||(l.add(f),d(f.parentNode))};r.forEach(d);var h=function(f){!f||u.has(f)||Array.prototype.forEach.call(f.children,function(p){if(l.has(p))h(p);else try{var m=p.getAttribute(o),y=m!==null&&m!=="false",g=(Xe.get(p)||0)+1,b=(s.get(p)||0)+1;Xe.set(p,g),s.set(p,b),a.push(p),g===1&&y&&Mt.set(p,!0),b===1&&p.setAttribute(n,"true"),y||p.setAttribute(o,"true")}catch(v){console.error("aria-hidden: cannot operate on ",p,v)}})};return h(t),l.clear(),Mn++,function(){a.forEach(function(f){var p=Xe.get(f)-1,m=s.get(f)-1;Xe.set(f,p),s.set(f,m),p||(Mt.has(f)||f.removeAttribute(o),Mt.delete(f)),m||f.removeAttribute(n)}),Mn--,Mn||(Xe=new WeakMap,Xe=new WeakMap,Mt=new WeakMap,It={})}},td=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=Qu(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),ed(o,r,n,"aria-hidden")):function(){return null}},Gt="right-scroll-bar-position",qt="width-before-scroll-bar",nd="with-scroll-bars-hidden",od="--removed-body-scroll-bar-size";function In(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function rd(e,t){var n=c.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=t,n.facade}var id=typeof window<"u"?c.useLayoutEffect:c.useEffect,ir=new WeakMap;function sd(e,t){var n=rd(null,function(o){return e.forEach(function(r){return In(r,o)})});return id(function(){var o=ir.get(n);if(o){var r=new Set(o),s=new Set(e),a=n.current;r.forEach(function(l){s.has(l)||In(l,null)}),s.forEach(function(l){r.has(l)||In(l,a)})}ir.set(n,e)},[e]),n}function ad(e){return e}function cd(e,t){t===void 0&&(t=ad);var n=[],o=!1,r={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var a=t(s,o);return n.push(a),function(){n=n.filter(function(l){return l!==a})}},assignSyncMedium:function(s){for(o=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(l){return s(l)},filter:function(){return n}}},assignMedium:function(s){o=!0;var a=[];if(n.length){var l=n;n=[],l.forEach(s),a=n}var u=function(){var h=a;a=[],h.forEach(s)},d=function(){return Promise.resolve().then(u)};d(),n={push:function(h){a.push(h),d()},filter:function(h){return a=a.filter(h),n}}}};return r}function ld(e){e===void 0&&(e={});var t=cd(null);return t.options=De({async:!0,ssr:!1},e),t}var ns=function(e){var t=e.sideCar,n=Kr(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return c.createElement(o,De({},n))};ns.isSideCarExport=!0;function ud(e,t){return e.useMedium(t),ns}var os=ld(),Ln=function(){},gn=c.forwardRef(function(e,t){var n=c.useRef(null),o=c.useState({onScrollCapture:Ln,onWheelCapture:Ln,onTouchMoveCapture:Ln}),r=o[0],s=o[1],a=e.forwardProps,l=e.children,u=e.className,d=e.removeScrollBar,h=e.enabled,f=e.shards,p=e.sideCar,m=e.noRelative,y=e.noIsolation,g=e.inert,b=e.allowPinchZoom,v=e.as,k=v===void 0?"div":v,x=e.gapMode,C=Kr(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=p,j=sd([n,t]),P=De(De({}
vendor: 6,649 bytes, lines 2-42
2,C),r);return c.createElement(c.Fragment,null,h&&c.createElement(S,{sideCar:os,removeScrollBar:d,shards:f,noRelative:m,noIsolation:y,inert:g,setCallbacks:s,allowPinchZoom:!!b,lockRef:n,gapMode:x}),a?c.cloneElement(c.Children.only(l),De(De({},P),{ref:j})):c.createElement(k,De({},P,{className:u,ref:j}),l))});gn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};gn.classNames={fullWidth:qt,zeroRight:Gt};var dd=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function hd(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=dd();return t&&e.setAttribute("nonce",t),e}function fd(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function pd(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var md=function(){var e=0,t=null;return{add:function(n){e==0&&(t=hd())&&(fd(t,n),pd(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},gd=function(){var e=md();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},rs=function(){var e=gd(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},bd={left:0,top:0,right:0,gap:0},On=function(e){return parseInt(e||"",10)||0},yd=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[On(n),On(o),On(r)]},xd=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return bd;var t=yd(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},vd=rs(),et="data-scroll-locked",wd=function(e,t,n,o){var r=e.left,s=e.top,a=e.right,l=e.gap;return n===void 0&&(n="margin"),`
3  .`.concat(nd,` {
4   overflow: hidden `).concat(o,`;
5   padding-right: `).concat(l,"px ").concat(o,`;
6  }
7  body[`).concat(et,`] {
8    overflow: hidden `).concat(o,`;
9    overscroll-behavior: contain;
10    `).concat([t&&"position: relative ".concat(o,";"),n==="margin"&&`
11    padding-left: `.concat(r,`px;
12    padding-top: `).concat(s,`px;
13    padding-right: `).concat(a,`px;
14    margin-left:0;
15    margin-top:0;
16    margin-right: `).concat(l,"px ").concat(o,`;
17    `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(o,";")].filter(Boolean).join(""),`
18  }
19  
20  .`).concat(Gt,` {
21    right: `).concat(l,"px ").concat(o,`;
22  }
23  
24  .`).concat(qt,` {
25    margin-right: `).concat(l,"px ").concat(o,`;
26  }
27  
28  .`).concat(Gt," .").concat(Gt,` {
29    right: 0 `).concat(o,`;
30  }
31  
32  .`).concat(qt," .").concat(qt,` {
33    margin-right: 0 `).concat(o,`;
34  }
35  
36  body[`).concat(et,`] {
37    `).concat(od,": ").concat(l,`px;
38  }
39`)},sr=function(){var e=parseInt(document.body.getAttribute(et)||"0",10);return isFinite(e)?e:0},kd=function(){c.useEffect(function(){return document.body.setAttribute(et,(sr()+1).toString()),function(){var e=sr()-1;e<=0?document.body.removeAttribute(et):document.body.setAttribute(et,e.toString())}},[])},Cd=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;kd();var s=c.useMemo(function(){return xd(r)},[r]);return c.createElement(vd,{styles:wd(s,!t,r,n?"":"!important")})},Qn=!1;if(typeof window<"u")try{var Lt=Object.defineProperty({},"passive",{get:function(){return Qn=!0,!0}});window.addEventListener("test",Lt,Lt),window.removeEventListener("test",Lt,Lt)}catch{Qn=!1}var Ze=Qn?{passive:!1}:!1,Ed=function(e){return e.tagName==="TEXTAREA"},is=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Ed(e)&&n[t]==="visible")},jd=function(e){return is(e,"overflowY")},Sd=function(e){return is(e,"overflowX")},ar=function(e,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=ss(e,o);if(r){var s=as(e,o),a=s[1],l=s[2];if(a>l)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},_d=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},Rd=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},ss=function(e,t){return e==="v"?jd(t):Sd(t)},as=function(e,t){return e==="v"?_d(t):Rd(t)},Pd=function(e,t){return e==="h"&&t==="rtl"?-1:1},Ad=function(e,t,n,o,r){var s=Pd(e,window.getComputedStyle(t).direction),a=s*o,l=n.target,u=t.contains(l),d=!1,h=a>0,f=0,p=0;do{if(!l)break;var m=as(e,l),y=m[0],g=m[1],b=m[2],v=g-b-s*y;(y||v)&&ss(e,l)&&(f+=v,p+=y);var k=l.parentNode;l=k&&k.nodeType===Node.DOCUMENT_FRAGMENT_NODE?k.host:k}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return(h&&Math.abs(f)<1||!h&&Math.abs(p)<1)&&(d=!0),d},Ot=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},cr=function(e){return[e.deltaX,e.deltaY]},lr=function(e){return e&&"current"in e?e.current:e},Nd=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Td=function(e){return`
40  .block-interactivity-`.concat(e,` {pointer-events: none;}
41  .allow-interactivity-`).concat(e,` {pointer-events: all;}
42`)},Md=0,Qe=[];function Id(e){var t=c.useRef([]),n=c.useRef([0,0]),o=c.useRef(),r=c.useState(Md++)[0],s=c.useState(rs)[0],a=c.useRef(e);c.useEffect(function(){a.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var g=fa([e.lockRef.current],(e.shards||[]).map(lr),!0).filter(Boolean);return g.forEach(function(b){return b.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),g.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var l=c.useCallback(function(g,b){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!a.current.allowPinchZoom;var v=Ot(g),k=n.current,x="deltaX"in g?g.deltaX:k[0]-v[0],C="deltaY"in g?g.deltaY:k[1]-v[1],S,j=g.target,P=Math.abs(x)>Math.abs(C)?"h":"v";if("touches"in g&&P==="h"&&j.type==="range")return!1;var E=window.getSelection(),D=E&&E.anchorNode,W=D?D===j||D.contains(j):!1;if(W)return!1;var F=ar(P,j);if(!F)return!0;if(F?S=P:(S=P==="v"?"h":"v",F=ar(P,j)),!F)return!1;if(!o.current&&"changedTouches"in g&&(x||C)&&(o.current=S),!S)return!0;var A=o.current||S;return Ad(A,b,g,A==="h"?x:C)},[]),u=c.useCallback(function(g){var b=g;if(!(!Qe.length||Qe[Qe.length-1]!==s)){var v="deltaY"in b?cr(b):Ot(b),k=t.current.filter(function(S){return S.name===b.type&&(S.target===b.target||b.target===S.shadowParent)&&Nd(S.delta,v)})[0];if(k&&k.should){b.cancelable&&b.preventDefault();return}
vendor: 15,509 bytes, line 42
42if(!k){var x=(a.current.shards||[]).map(lr).filter(Boolean).filter(function(S){return S.contains(b.target)}),C=x.length>0?l(b,x[0]):!a.current.noIsolation;C&&b.cancelable&&b.preventDefault()}}},[]),d=c.useCallback(function(g,b,v,k){var x={name:g,delta:b,target:v,should:k,shadowParent:Ld(v)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(C){return C!==x})},1)},[]),h=c.useCallback(function(g){n.current=Ot(g),o.current=void 0},[]),f=c.useCallback(function(g){d(g.type,cr(g),g.target,l(g,e.lockRef.current))},[]),p=c.useCallback(function(g){d(g.type,Ot(g),g.target,l(g,e.lockRef.current))},[]);c.useEffect(function(){return Qe.push(s),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,Ze),document.addEventListener("touchmove",u,Ze),document.addEventListener("touchstart",h,Ze),function(){Qe=Qe.filter(function(g){return g!==s}),document.removeEventListener("wheel",u,Ze),document.removeEventListener("touchmove",u,Ze),document.removeEventListener("touchstart",h,Ze)}},[]);var m=e.removeScrollBar,y=e.inert;return c.createElement(c.Fragment,null,y?c.createElement(s,{styles:Td(r)}):null,m?c.createElement(Cd,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ld(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Od=ud(os,Id);var cs=c.forwardRef(function(e,t){return c.createElement(gn,De({},e,{ref:t,sideCar:Od}))});cs.classNames=gn.classNames;var Jn=["Enter"," "],Dd=["ArrowDown","PageUp","Home"],ls=["ArrowUp","PageDown","End"],Vd=[...Dd,...ls],Fd={ltr:[...Jn,"ArrowRight"],rtl:[...Jn,"ArrowLeft"]},Wd={ltr:["ArrowLeft"],rtl:["ArrowRight"]},kt="Menu",[mt,Bd,$d]=xi(kt),[qe,us]=yt(kt,[$d,Fi,Xi]),bn=Fi(),ds=Xi(),[zd,Ke]=qe(kt),[Ud,Ct]=qe(kt),hs=e=>{const{__scopeMenu:t,open:n=!1,children:o,dir:r,onOpenChange:s,modal:a=!0}=e,l=bn(t),[u,d]=c.useState(null),h=c.useRef(!1),f=Re(s),p=vi(r);return c.useEffect(()=>{const m=()=>{h.current=!0,document.addEventListener("pointerdown",y,{capture:!0,once:!0}),document.addEventListener("pointermove",y,{capture:!0,once:!0})},y=()=>h.current=!1;return document.addEventListener("keydown",m,{capture:!0}),()=>{document.removeEventListener("keydown",m,{capture:!0}),document.removeEventListener("pointerdown",y,{capture:!0}),document.removeEventListener("pointermove",y,{capture:!0})}},[]),i.jsx(Su,{...l,children:i.jsx(zd,{scope:t,open:n,onOpenChange:f,content:u,onContentChange:d,children:i.jsx(Ud,{scope:t,onClose:c.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:h,dir:p,modal:a,children:o})})})};hs.displayName=kt;var Hd="MenuAnchor",go=c.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=bn(n);return i.jsx(_u,{...r,...o,ref:t})});go.displayName=Hd;var bo="MenuPortal",[Gd,fs]=qe(bo,{forceMount:void 0}),ps=e=>{const{__scopeMenu:t,forceMount:n,children:o,container:r}=e,s=Ke(bo,t);return i.jsx(Gd,{scope:t,forceMount:n,children:i.jsx(vt,{present:n||s.open,children:i.jsx(Ki,{asChild:!0,container:r,children:o})})})};ps.displayName=bo;var be="MenuContent",[qd,yo]=qe(be),ms=c.forwardRef((e,t)=>{const n=fs(be,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,s=Ke(be,e.__scopeMenu),a=Ct(be,e.__scopeMenu);return i.jsx(mt.Provider,{scope:e.__scopeMenu,children:i.jsx(vt,{present:o||s.open,children:i.jsx(mt.Slot,{scope:e.__scopeMenu,children:a.modal?i.jsx(Kd,{...r,ref:t}):i.jsx(Yd,{...r,ref:t})})})})}),Kd=c.forwardRef((e,t)=>{const n=Ke(be,e.__scopeMenu),o=c.useRef(null),r=de(t,o);return c.useEffect(()=>{const s=o.current;if(s)return td(s)},[]),i.jsx(xo,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:K(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Yd=c.forwardRef((e,t)=>{const n=Ke(be,e.__scopeMenu);return i.jsx(xo,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Xd=Gu("MenuContent.ScrollLock"),xo=c.forwardRef((e,t)=>{const{__scopeMenu:n,loop:o=!1,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:l,onEntryFocus:u,onEscapeKeyDown:d,onPointerDownOutside:h,onFocusOutside:f,onInteractOutside:p,onDismiss:m,disableOutsideScroll:y,...g}=e,b=Ke(be,n),v=Ct(be,n),k=bn(n),x=ds(n),C=Bd(n),[S,j]=c.useState(null),P=c.useRef(null),E=de(t,P,b.onContentChange),D=c.useRef(0),W=c.useRef(""),F=c.useRef(0),A=c.useRef(null),I=c.useRef("right"),B=c.useRef(0),V=y?cs:c.Fragment,O=y?{as:Xd,allowPinchZoom:!0}:void 0,L=_=>{var oe,ie;const w=W.current+_,X=C().filter(U=>!U.disabled),Z=document.activeElement,Q=(oe=X.find(U=>U.ref.current===Z))==null?void 0:oe.textValue,te=X.map(U=>U.textValue),J=ch(te,w,Q),q=(ie=X.find(U=>U.textValue===J))==null?void 0:ie.ref.current;(function U(ne){W.current=ne,window.clearTimeout(D.current),ne!==""&&(D.current=window.setTimeout(()=>U(""),1e3))})(w),q&&setTimeout(()=>q.focus())};c.useEffect(()=>()=>window.clearTimeout(D.current),[]),ol();const N=c.useCallback(_=>{var X,Z;return I.current===((X=A.current)==null?void 0:X.side)&&uh(_,(Z=A.current)==null?void 0:Z.area)},[]);return i.jsx(qd,{scope:n,searchRef:W,onItemEnter:c.useCallback(_=>{N(_)&&_.preventDefault()},[N]),onItemLeave:c.useCallback(_=>{var w;N(_)||((w=P.current)==null||w.focus(),j(null))},[N]),onTriggerLeave:c.useCallback(_=>{N(_)&&_.preventDefault()},[N]),pointerGraceTimerRef:F,onPointerGraceIntentChange:c.useCallback(_=>{A.current=_},[]),children:i.jsx(V,{...O,children:i.jsx(Ei,{asChild:!0,trapped:r,onMountAutoFocus:K(s,_=>{var w;_.preventDefault(),(w=P.current)==null||w.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:i.jsx(ki,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:d,onPointerDownOutside:h,onFocusOutside:f,onInteractOutside:p,onDismiss:m,children:i.jsx(Uu,{asChild:!0,...x,dir:v.dir,orientation:"vertical",loop:o,currentTabStopId:S,onCurrentTabStopIdChange:j,onEntryFocus:K(u,_=>{v.isUsingKeyboardRef.current||_.preventDefault()}),preventScrollOnEntryFocus:!0,children:i.jsx(Ru,{role:"menu","aria-orientation":"vertical","data-state":Ns(b.open),"data-radix-menu-content":"",dir:v.dir,...k,...g,ref:E,style:{outline:"none",...g.style},onKeyDown:K(g.onKeyDown,_=>{const X=_.target.closest("[data-radix-menu-content]")===_.currentTarget,Z=_.ctrlKey||_.altKey||_.metaKey,Q=_.key.length===1;X&&(_.key==="Tab"&&_.preventDefault(),!Z&&Q&&L(_.key));const te=P.current;if(_.target!==te||!Vd.includes(_.key))return;_.preventDefault();const q=C().filter(oe=>!oe.disabled).map(oe=>oe.ref.current);ls.includes(_.key)&&q.reverse(),sh(q)}),onBlur:K(e.onBlur,_=>{_.currentTarget.contains(_.target)||(window.clearTimeout(D.current),W.current="")}),onPointerMove:K(e.onPointerMove,gt(_=>{const w=_.target,X=B.current!==_.clientX;if(_.currentTarget.contains(w)&&X){const Z=_.clientX>B.current?"right":"left";I.current=Z,B.current=_.clientX}}))})})})})})})});ms.displayName=be;var Zd="MenuGroup",vo=c.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return i.jsx(ce.div,{role:"group",...o,ref:t})});vo.displayName=Zd;var Qd="MenuLabel",gs=c.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return i.jsx(ce.div,{...o,ref:t})});gs.displayName=Qd;var cn="MenuItem",ur="menu.itemSelect",yn=c.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:o,...r}=e,s=c.useRef(null),a=Ct(cn,e.__scopeMenu),l=yo(cn,e.__scopeMenu),u=de(t,s),d=c.useRef(!1),h=()=>{const f=s.current;if(!n&&f){const p=new CustomEvent(ur,{bubbles:!0,cancelable:!0});f.addEventListener(ur,m=>o==null?void 0:o(m),{once:!0}),yi(f,p),p.defaultPrevented?d.current=!1:a.onClose()}};return i.jsx(bs,{...r,ref:u,disabled:n,onClick:K(e.onClick,h),onPointerDown:f=>{var p;(p=e.onPointerDown)==null||p.call(e,f),d.current=!0},onPointerUp:K(e.onPointerUp,f=>{var p;d.current||(p=f.currentTarget)==null||p.click()}),onKeyDown:K(e.onKeyDown,f=>{const p=l.searchRef.current!=="";n||p&&f.key===" "||Jn.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});yn.displayName=cn;var bs=c.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:o=!1,textValue:r,...s}=e,a=yo(cn,n),l=ds(n),u=c.useRef(null),d=de(t,u),[h,f]=c.useState(!1),[p,m]=c.useState("");return c.useEffect(()=>{const y=u.current;y&&m((y.textContent??"").trim())},[s.children]),i.jsx(mt.ItemSlot,{scope:n,disabled:o,textValue:r??p,children:i.jsx(Hu,{asChild:!0,...l,focusable:!o,children:i.jsx(ce.div,{role:"menuitem","data-highlighted":h?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:d,onPointerMove:K(e.onPointerMove,gt(y=>{o?a.onItemLeave(y):(a.onItemEnter(y),y.defaultPrevented||y.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:K(e.onPointerLeave,gt(y=>a.onItemLeave(y))),onFocus:K(e.onFocus,()=>f(!0)),onBlur:K(e.onBlur,()=>f(!1))})})})}),Jd="MenuCheckboxItem",ys=c.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:o,...r}=e;return i.jsx(Cs,{scope:e.__scopeMenu,checked:n,children:i.jsx(yn,{role:"menuitemcheckbox","aria-checked":ln(n)?"mixed":n,...r,ref:t,"data-state":ko(n),onSelect:K(r.onSelect,()=>o==null?void 0:o(ln(n)?!0:!n),{checkForDefaultPrevented:!1})})})});ys.displayName=Jd;var xs="MenuRadioGroup",[eh,th]=qe(xs,{value:void 0,onValueChange:()=>{}}),vs=c.forwardRef((e,t)=>{const{value:n,onValueChange:o,...r}=e,s=Re(o);return i.jsx(eh,{scope:e.__scopeMenu,value:n,onValueChange:s,children:i.jsx(vo,{...r,ref:t})})});vs.displayName=xs;var ws="MenuRadioItem",ks=c.forwardRef((e,t)=>{const{value:n,...o}=e,r=th(ws,e.__scopeMenu),s=n===r.value;return i.jsx(Cs,{scope:e.__scopeMenu,checked:s,children:i.jsx(yn,{role:"menuitemradio","aria-checked":s,...o,ref:t,"data-state":ko(s),onSelect:K(o.onSelect,()=>{var a;return(a=r.onValueChange)==null?void 0:a.call(r,n)},{checkForDefaultPrevented:!1})})})});ks.displayName=ws;var wo="MenuItemIndicator",[Cs,nh]=qe(wo,{checked:!1}),Es=c.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:o,...r}=e,s=nh(wo,n);return i.jsx(vt,{present:o||ln(s.checked)||s.checked===!0,children:i.jsx(ce.span,{...r,ref:t,"data-state":ko(s.checked)})})});Es.displayName=wo;var oh="MenuSeparator",js=c.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return i.jsx(ce.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})});js.displayName=oh;var rh="MenuArrow",Ss=c.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=bn(n);return i.jsx(Pu,{...r,...o,ref:t})});Ss.displayName=rh;var ih="MenuSub",[ip,_s]=qe(ih),lt="MenuSubTrigger",Rs=c.forwardRef((e,t)=>{const n=Ke(lt,e.__scopeMenu),o=Ct(lt,e.__scopeMenu),r=_s(lt,e.__scopeMenu),s=yo(lt,e.__scopeMenu),a=c.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:u}=s,d={__scopeMenu:e.__scopeMenu},h=c.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return c.useEffect(()=>h,[h]),c.useEffect(()=>{const f=l.current;return()=>{window.clearTimeout(f),u(null)}},[l,u]),i.jsx(go,{asChild:!0,...d,children:i.jsx(bs,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":Ns(n.open),...e,ref:ot(t,r.onTriggerChange),onClick:f=>{var p;(p=e.onClick)==null||p.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:K(e.onPointerMove,gt(f=>{s.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(s.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),h()},100))})),onPointerLeave:K(e.onPointerLeave,gt(f=>{var m,y;h();const p=(m=n.content)==null?void 0:m.getBoundingClientRect();if(p){const g=(y=n.content)==null?void 0:y.dataset.side,b=g==="right",v=b?-5:5,k=p[b?"left":"right"],x=p[b?"right":"left"];s.onPointerGraceIntentChange({area:[{x:f.clientX+v,y:f.clientY},{x:k,y:p.top},{x,y:p.top},{x,y:p.bottom},{x:k,y:p.bottom}],side:g}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(f),f.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:K(e.onKeyDown,f=>{var m;const p=s.searchRef.current!=="";e.disabled||p&&f.key===" "||Fd[o.dir].includes(f.key)&&(n.onOpenChange(!0),(m=n.content)==null||m.focus(),f.preventDefault())})})})});Rs.displayName=lt;var Ps="MenuSubContent",As=c.forwardRef((e,t)=>{const n=fs(be,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,s=Ke(be,e.__scopeMenu),a=Ct(be,e.__scopeMenu),l=_s(Ps,e.__scopeMenu),u=c.useRef(null),d=de(t,u);return i.jsx(mt.Provider,{scope:e.__scopeMenu,children:i.jsx(vt,{present:o||s.open,children:i.jsx(mt.Slot,{scope:e.__scopeMenu,children:i.jsx(xo,{id:l.contentId,"aria-labelledby":l.triggerId,...r,ref:d,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:h=>{var f;a.isUsingKeyboardRef.current&&((f=u.current)==null||f.focus()),h.preventDefault()},onCloseAutoFocus:h=>h.preventDefault(),onFocusOutside:K(e.onFocusOutside,h=>{h.target!==l.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:K(e.onEscapeKeyDown,h=>{a.onClose(),h.preventDefault()}),onKeyDown:K(e.onKeyDown,h=>{var m;const f=h.currentTarget.contains(h.target),p=Wd[a.dir].includes(h.key);f&&p&&(s.onOpenChange(!1),(m=l.trigger)==null||m.focus(),h.preventDefault())})})})})})});As.displayName=Ps;function Ns(e){return e?"open":"closed"}function ln(e){return e==="indeterminate"}function ko(e){return ln(e)?"indeterminate":e?"checked":"unchecked"}function sh(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function ah(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function ch(e,t,n){const r=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=ah(e,Math.max(s,0));r.length===1&&(a=a.filter(d=>d!==n));const u=a.find(d=>d.toLowerCase().startsWith(r.toLowerCase()));return u!==n?u:void 0}function lh(e,t){const{x:n,y:o}=e;let r=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const l=t[s],u=t[a],d=l.x,h=l.y,f=u.x,p=u.y;h>o!=p>o&&n<(f-d)*(o-h)/(p-h)+d&&(r=!r)}return r}function uh(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return lh(n,t)}function gt(e){return t=>t.pointerType==="mouse"?e(t):void 0}var dh=hs,hh=go,fh=ps,ph=ms,mh=vo,gh=gs,bh=yn,yh=ys,xh=vs,vh=ks,wh=Es,kh=js,Ch=Ss,Eh=Rs,jh=As,xn="DropdownMenu",[Sh]=yt(xn,[us]),le=us(),[_h,Ts]=Sh(xn),Ms=e=>{const{__scopeDropdownMenu:t,children:n,dir:o,open:r,defaultOpen:s,onOpenChange:a,modal:l=!0}=e,u=le(t),d=c.useRef(null),[h,f]=bi({prop:r,defaultProp:s??!1,onChange:a,caller:xn});return i.jsx(_h,{scope:t,triggerId:qn(),triggerRef:d,contentId:qn(),open:h,onOpenChange:f,onOpenToggle:c.useCallback(()=>f(p=>!p),[f]),modal:l,children:i.jsx(dh,{...u,open:h,onOpenChange:f,dir:o,modal:l,children:n})})};Ms.displayName=xn;var Is="DropdownMenuTrigger",Ls=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:o=!1,...r}=e,s=Ts(Is,n),a=le(n);return i.jsx(hh,{asChild:!0,...a,children:i.jsx(ce.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...r,ref:ot(t,s.triggerRef),onPointerDown:K(e.onPointerDown,l=>{!o&&l.button===0&&l.ctrlKey===!1&&(s.onOpenToggle(),s.open||l.preventDefault())}),onKeyDown:K(e.onKeyDown,l=>{o||(["Enter"," "].includes(l.key)&&s.onOpenToggle(),l.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})})});Ls.displayName=Is;var Rh="DropdownMenuPortal",Os=e=>{const{__scopeDropdownMenu:t,...n}=e,o=le(t);return i.jsx(fh,{...o,...n})};Os.displayName=Rh;var Ds="DropdownMenuContent",Vs=c.forwardRef((e,t)=>
42{const{__scopeDropdownMenu:n,...o}=e,r=Ts(Ds,n),s=le(n),a=c.useRef(!1);return i.jsx(ph,{id:r.contentId,"aria-labelledby":r.triggerId,...s,...o,ref:t,onCloseAutoFocus:K(e.onCloseAutoFocus,l=>{var u;a.current||(u=r.triggerRef.current)==null||u.focus(),a.current=!1,l.preventDefault()}),onInteractOutside:K(e.onInteractOutside,l=>{const u=l.detail.originalEvent,d=u.button===0&&u.ctrlKey===!0,h=u.button===2||d;(!r.modal||h)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Vs.displayName=Ds;var Ph="DropdownMenuGroup",Ah=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=le(n);return i.jsx(mh,{...r,...o,ref:t})});Ah.displayName=Ph;var Nh="DropdownMenuLabel",Th=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=le(n);return i.jsx(gh,{...r,...o,ref:t})});Th.displayName=Nh;var Mh="DropdownMenuItem",Fs=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=le(n);return i.jsx(bh,{...r,...o,ref:t})});Fs.displayName=Mh;var Ih="DropdownMenuCheckboxItem",Lh=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=le(n);return i.jsx(yh,{...r,...o,ref:t})});Lh.displayName=Ih;var Oh="DropdownMenuRadioGroup",Ws=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=le(n);return i.jsx(xh,{...r,...o,ref:t})});Ws.displayName=Oh;var Dh="DropdownMenuRadioItem",Bs=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=le(n);return i.jsx(vh,{...r,...o,ref:t})});Bs.displayName=Dh;var Vh="DropdownMenuItemIndicator",Fh=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=le(n);return i.jsx(wh,{...r,...o,ref:t})});Fh.displayName=Vh;var Wh="DropdownMenuSeparator",Bh=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=le(n);return i.jsx(kh,{...r,...o,ref:t})});Bh.displayName=Wh;var $h="DropdownMenuArrow",zh=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=le(n);return i.jsx(Ch,{...r,...o,ref:t})});zh.displayName=$h;var Uh="DropdownMenuSubTrigger",Hh=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=le(n);return i.jsx(Eh,{...r,...o,ref:t})});Hh.displayName=Uh;var Gh="DropdownMenuSubContent",qh=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=le(n);return i.jsx(jh,{...r,...o,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});qh.displayName=Gh;var Kh=Ms,Yh=Ls,Xh=Os,$s=Vs,zs=Fs,Zh=Ws,Us=Bs;const Qh=Kh,Jh=Yh,sp=Zh,Hs=c.forwardRef(({className:e,sideOffset:t=8,...n},o)=>i.jsx(Xh,{children:i.jsx($s,{ref:o,sideOffset:t,className:nt("z-50 min-w-[10rem] overflow-hidden rounded-xl border border-black/10 bg-white p-1 text-gray-900 shadow-[0_16px_45px_rgba(0,0,0,0.08)] data-[state=open]:animate-in data-[state=closed]:animate-out",e),...n})}));Hs.displayName=$s.displayName;const Kt=c.forwardRef(({className:e,...t},n)=>i.jsx(zs,{ref:n,className:nt("relative flex cursor-default select-none items-center rounded-md px-2.5 py-2 text-sm font-medium text-gray-700 outline-none transition-colors focus:bg-black/5",e),...t}));Kt.displayName=zs.displayName;const ef=c.forwardRef(({className:e,children:t,...n},o)=>i.jsx(Us,{ref:o,className:nt("relative flex cursor-default select-none items-center rounded-md px-2.5 py-2 text-sm font-medium text-gray-700 outline-none transition-colors focus:bg-black/5",e),...n,children:t}));
42ef.displayName=Us.displayName;const Gs=c.createContext(null);function Dn(e,t){if(!e)return t;try{const n=new URL(e,window.location.origin);return n.origin!==window.location.origin?t:`${n.pathname}${n.search}${n.hash}`||t}catch{return e.startsWith("/")?e:t}}async function eo(e){if(!ee)return null;const{data:t}=await ee.from("vietclay_customer_profiles").select("*").eq("id",e).single();return t}async function tf(e){var r,s,a,l,u,d,h,f;const t=await eo(e.id);if(t)return t;const n=await fetch("/.netlify/functions/customer-register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({auth_uid:e.id,email:e.email,auth_provider:((r=e.app_metadata)==null?void 0:r.provider)??"email",first_name:((a=(s=e.user_metadata)==null?void 0:s.full_name)==null?void 0:a.split(" ").slice(0,-1).join(" "))||((l=e.user_metadata)==null?void 0:l.first_name)||"",last_name:((d=(u=e.user_metadata)==null?void 0:u.full_name)==null?void 0:d.split(" ").slice(-1)[0])||((h=e.user_metadata)==null?void 0:h.last_name)||"",phone:((f=e.user_metadata)==null?void 0:f.phone)||""})});return n.ok?(await n.json()).profile??eo(e.id):null}function nf({children:e}){const[t,n]=c.useState(null),[o,r]=c.useState(null),[s,a]=c.useState(null),[l,u]=c.useState(!0),d=c.useCallback(async()=>{if(!t){a(null);return}const v=await eo(t.id);a(v)},[t]);c.useEffect(()=>{if(!ee){u(!1);return}ee.auth.getSession().then(({data:{session:k}})=>{r(k),n((k==null?void 0:k.user)??null)}).catch(()=>{r(null),n(null)}).finally(()=>u(!1));const{data:{subscription:v}}=ee.auth.onAuthStateChange((k,x)=>{r(x),n((x==null?void 0:x.user)??null)});return()=>v.unsubscribe()},[]),c.useEffect(()=>{if(!t){a(null);return}tf(t).then(a)},[t]);const h=async(v,k)=>{if(!ee)return{error:"Supabase not configured"};const{error:x}=await ee.auth.signInWithPassword({email:v,password:k});return{error:(x==null?void 0:x.message)??null}},f=async(v,k)=>{if(!ee)return{error:"Supabase not configured"};const x=window.location.pathname.startsWith("/en")||window.location.pathname==="/login"||window.location.pathname==="/register",C=Dn(k==null?void 0:k.redirectPath,x?"/en/account":"/tai-khoan"),S=new URL("/auth/callback",window.location.origin);S.searchParams.set("redirect",C);const{error:j}=await ee.auth.signInWithOtp({email:v,options:{emailRedirectTo:S.toString(),shouldCreateUser:(k==null?void 0:k.shouldCreateUser)??!0,data:(k==null?void 0:k.data)??{}}});return{error:(j==null?void 0:j.message)??null}},p=async(v,k)=>{if(!ee)return{error:"Supabase not configured"};const{error:x}=await ee.auth.verifyOtp({email:v,token:k,type:"email"});return{error:(x==null?void 0:x.message)??null}},m=async(v,k,x,C,S)=>{if(!ee)return{error:"Supabase not configured",pendingConfirmation:!1};const{data:j,error:P}=await ee.auth.signUp({email:v,password:k,options:{data:{first_name:x,last_name:C,phone:S||""}}});if(P)return{error:P.message,pendingConfirmation:!1};const E=j.user;return E!=null&&E.id&&await fetch("/.netlify/functions/customer-register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({auth_uid:E.id,email:v,first_name:x,last_name:C,phone:S||"",auth_provider:"email"})}),{error:null,pendingConfirmation:!j.session}},y=async(v,k)=>{if(!ee)return{error:"Supabase not configured"};const x=window.location.pathname.startsWith("/en")||window.location.pathname==="/login"||window.location.pathname==="/register",C=Dn(k==null?void 0:k.redirectPath,x?"/en/account":"/tai-khoan"),S=new URL("/auth/callback",window.location.origin);S.searchParams.set("redirect",C);const{error:j}=await ee.auth.updateUser({email:v},{emailRedirectTo:S.toString()});return{error:(j==null?void 0:j.message)??null}},g=async v=>{if(!ee)return{error:"Supabase not configured"};const k=window.location.pathname.startsWith("/en")||window.location.pathname==="/login"||window.location.pathname==="/register",x=Dn(v,k?"/en/account":"/tai-khoan"),C=new URL("/auth/callback",window.location.origin);C.searchParams.set("redirect",x);const{data:S,error:j}=await ee.auth.signInWithOAuth({provider:"google",options:{redirectTo:C.toString(),skipBrowserRedirect:!0}});return!j&&(S!=null&&S.url)&&window.location.assign(S.url),{error:(j==null?void 0:j.message)??null}},b=async()=>{ee&&(await ee.auth.signOut(),a(null))};return i.jsx(Gs.Provider,{value:{user:t,session:o,profile:s,loading:l,signInWithEmail:h,signInWithMagicLink:f,verifyEmailOtp:p,signUpWithEmail:m,updateEmail:y,signInWithGoogle:g,signOut:b,refreshProfile:d},children:e})}function of(){const e=c.useContext(Gs);if(!e)throw new Error("useAuth must be used within AuthProvider");return e}const rf={vi:{translation:{app:{header:{openMenu:"Mở menu",closeMenu:"Đóng menu",closeMenuOverlay:"Đóng menu",mobileNavigation:"Điều hướng trên điện thoại",languageVi:"Tiếng Việt",languageEn:"English"},footer:{eyebrow:"Liên Hệ",titleLine1:"Nhắn cho Vietclay biết",titleLine2:"nhu cầu của bạn nhé",mapLoading:"Đang tải bản đồ…",mapTitle:"Bản đồ Vietclay",bctLabel:"Đã thông báo Bộ Công Thương",contact:{phoneTitle:"Gọi điện/Zalo qua số điện thoại",emailTitle:"Nhắn tin vào hòm thư điện tử",chatTitle:"Chat trực tiếp",chatValue:"Click vào đây",addressTitle:"Tới địa chỉ của tiệm gốm tại:",addressValue:"Vietclay Studio đang xây dựng không gi
42an mới"}},pausePopup:{eyebrow:"Thông báo từ Vietclay",title:"Vietclay đang tạm nghỉ để chuyển sang không gian mới",description:"Chào bạn! Vietclay đang tạm nghỉ một thời gian để chuyển sang không gian mới. Tụi mình đang tất bật tìm kiếm mặt bằng phù hợp cho tiệm gốm. Nếu bạn đang muốn tham gia workshop hay tìm những món đồ gốm xinh, hãy đón chờ Vietclay sớm quay lại bạn nhé!",ctaLabel:"Nhắn tin",closeAnnouncement:"Đóng thông báo",closePopup:"Đóng popup",later:"Để sau"}},pages:{notFound:{title:"Không tìm thấy trang",description:"Đường dẫn có thể đã thay đổi hoặc không còn tồn tại.",viewBlog:"Xem blog",backHome:"Về trang chủ"},workshops:{title:"Workshops",loading:"Đang tải...",error:"Không tải được danh sách workshops",priceLabel:"Giá",hourUnit:"giờ",maxCapacity:"Tối đa {{count}}",details:"Xem chi tiết",empty:"Chưa có workshop nào được publish."},studio:{title:"Thuê studio làm gốm",seoTitle:"Thuê Xưởng Làm Gốm Hà Nội | Studio Nặn Gốm Chất Lượng",seoDescription:"Dịch vụ thuê xưởng làm gốm chất lượng tại Hà Nội. Khám phá nghệ thuật làm gốm và sáng tạo tại Vietclay. Viết câu chuyện làm gốm của bạn!",heroEyebrow:"Studio Gốm · Vietclay Hà Nội",heroHeadline:"Thuê Studio Hà Nội",heroHeadlineAccent:"Không gian thực hành của người yêu gốm.",heroDescription:"Bàn xoay điện · Nặn tay · Lò nung · Studio 100m² · Thuê theo giờ.",heroCta:"Kiểm tra lịch trống",priceFrom:"Từ 250.000₫ / 2 giờ",intro:"Làm gốm là một hành trình đầy thú vị đòi hỏi sự luyện tập không ngừng, và tại Vietclay ở Hà Nội, chúng tôi cung cấp một môi trường hoàn hảo cho những ai đang ở giai đoạn đầu tiên của hành trình làm gốm, muốn khám phá và làm quen với bộ môn nghệ thuật này. Với không gian rộng rãi, trang thiết bị đầy đủ và dịch vụ thuê linh hoạt, bạn có thể thỏa sức sáng tạo và thực hành làm gốm.",stats:[{value:"100m²",label:"Khu vực làm gốm"},{value:"500m²",label:"Sân vườn cạnh sông Hồng"},{value:"02 kg",label:"Đất thực hành đã bao gồm"}],spacesTitle:"Hai không gian riêng biệt",spacesIntro:"Studio được chia thành hai không gian riêng biệt, mỗi không gian có chức năng và mục đích sử dụng đặc trưng.",spaces:[{name:"Khu vực Nặn Tay",desc:`Nặn tay là một quá trình cần sự chậm rãi, tập trung và có đủ không gian để thoải mái thao tác. Vì vậy, tụi mình dành riêng một khu vực cho nặn tay, tách khỏi khu bàn xoay, để bạn có thể ngồi làm yên hơn, không bị cuốn theo nhịp nhanh và âm thanh từ bàn xoay.
43
44Không gian ở khu nặn tay khá rộng rãi, phù hợp cho các kỹ thuật như cán slab, cuộn coil, chắp nối, vuốt miệng, chỉnh dáng hay hoàn thiện chi tiết. Bạn có thể thong thả làm theo nhịp của mình, vừa nghe nhạc, vừa để ý tưởng dẫn dắt cho tới khi tác phẩm thật sự “tới” đúng ý.
45
46Studio có sẵn các dụng cụ cơ bản dùng chung như ribs, trimming tools, kim, miếng bọt biển… đủ để bạn thực hành các kỹ thuật nặn tay cơ bản. Trong gói thuê không gian đã bao gồm 2kg đất; nếu cần thêm đất trong quá trình làm, bạn chỉ cần báo tụi mình, phần phát sinh sẽ được tính thêm với một khoản phụ phí nhỏ.
47
48Với những tác phẩm đang làm dở, bạn có thể để lại tại các kệ chung của studio để tiếp tục hoàn thiện ở buổi sau. Tụi mình cũng có hộp giữ ẩm để bảo quản đất còn thừa hoặc tác phẩm chưa xong, giúp đất không bị khô quá nhanh và bạn có thể quay lại làm tiếp một cách liền mạch.
49
50Bên mình cũng chuẩn bị sẵn bộ màu cơ bản để bạn tô sau khi hoàn thiện dáng. Riêng phần nung sẽ được tính theo từng sản phẩm, tùy vào kích thước và số lượng. Khi bạn làm xong, tụi mình sẽ kiểm tra sản phẩm và báo giá trước khi tiến hành nung.`,points:["Không gi
50an nặn tay rộng rãi, tách riêng khỏi khu bàn xoay.","Phù hợp cho các kỹ thuật: slab, coil, chắp nối, vuốt miệng, chỉnh dáng.","Có kệ chung và hộp giữ ẩm để lưu tác phẩm giữa các buổi.","Dụng cụ cơ bản dùng chung có sẵn tại studio.","Gói thuê bao gồm 2kg đất; có thể yêu cầu thêm khi cần.","Có bộ màu cơ bản để tô.","Phí nung tính theo từng sản phẩm và được báo trước."]},{name:"Khu vực Bàn Xoay",desc:`Khu vực bàn xoay dành cho người dùng đã có nền tảng cơ bản và cần một không gian ổn định để tự luyện tập, lên dáng, trimming hoặc hoàn thiện sản phẩm. Đây là khu vực thực hành độc lập, phù hợp với người làm gốm đã quen với các bước như chuẩn bị đất, centering, kéo dáng và xử lý form.
51
52Studio có sẵn bàn xoay, dụng cụ cơ bản dùng chung và khu vực thao tác đủ thoải mái để mỗi người có thể làm việc theo nhịp riêng. Không gian này phù hợp để luyện tay, thử dáng mới, hoàn thiện bài đang làm dở hoặc dành thời gian chỉnh lại những chi tiết nhỏ mà ở lớp học thường không có đủ thời gian để làm kỹ.
53
54Với các sản phẩm chưa hoàn thiện trong một buổi, bạn có thể để lại tại kệ chung. Tụi mình cũng có hộp giữ ẩm để bảo quản tác phẩm đang dang dở hoặc phần đất còn thừa, giúp việc quay lại làm tiếp ở buổi sau được liền mạch hơn.
55
56Gói thuê không gian đã bao gồm 2kg đất. Nếu cần thêm đất trong quá trình làm, có thể báo tụi mình để chuẩn bị thêm. Studio cũng có bộ màu cơ bản để sử dụng khi sản phẩm đã sẵn sàng cho bước hoàn thiện bề mặt.
57
58Phần nung sẽ được tính riêng theo từng sản phẩm, tùy vào kích thước và số lượng. Sau khi sản phẩm hoàn thiện, tụi mình sẽ kiểm tra và báo giá trước khi tiến hành nung.
59
60Sau mỗi buổi sá»­ dụng, người dùng vui lòng vệ sinh lại bàn xoay, dụng cụ và khu vá»±c làm việc để không gian luôn gọn gàng, sạch sẽ và sẵn sàng cho người tiếp theo.`,points:["Dành cho người làm gốm đã có nền tảng và có thể tá»± thá»±c hành độc lập.","Có sẵn bàn xoay, dụng cụ cÆ¡ bản và khu vá»±c thao tác chung.","Phù hợp để luyện tay, lên dáng, trimming và hoàn thiện sản phẩm.","Có kệ chung và hộp giữ ẩm để lưu tác phẩm giữa các buổi.","Gói thuê bao gồm 2kg đất; có thể yêu cầu thêm khi cần.","Có bộ màu cÆ¡ bản để tô.","Phí nung tính theo từng sản phẩm và được báo trước.","Người dùng tá»± vệ sinh bàn xoay, dụng cụ và khu vá»±c làm việc sau buổi thuê."]}],equipmentTitle:"Trang bị đầy đủ máy móc thiết bị, dụng cụ",equipmentHeadline:"Mọi thứ bạn cần để sáng tạo",equipmentIntro:"Không gian làm gốm cá»§a Vietclay được trang bị đầy đủ các dụng cụ và vật liệu cần thiết để làm gốm. Nếu bạn cần hướng dẫn sá»­ dụng, đừng ngần ngại hỏi — chúng mình sẵn lòng chia sẻ kinh nghiệm.",equipment:[{name:"Lò nung",desc:"Nhiệt độ cao, chín trọn vẹn cho mọi tác phẩm",category:"Máy móc"},{name:"Máy nghiền men",desc:"Nghiền mịn, tá»± pha màu men theo ý muốn",category:"Máy móc"},{name:"Pít tông ép đất",desc:"Ép đất nhanh và đều theo khuôn",category:"Máy móc"},{name:"Bàn dạt đất",desc:"Cán tấm đất mỏng đồng đều, dễ tạo hình",category:"Máy móc"},{name:"Bàn xoay tay",desc:"Lý tưởng cho người mới làm quen với gốm",category:"Máy móc"},{name:"Bàn xoay điện",desc:"Tốc độ ổn định, trải nghiệm chuyên nghiệp",category:"Máy móc"},{name:"Hoạ cụ",desc:"Cọ, bút, màu đa dạng để trang trí",category:"Dụng cụ"},{name:"Tạp dề",desc:"Giữ trang phục sạch suốt phiên làm việc",category:"Dụng cụ"},{name:"Dụng cụ làm gốm",desc:"Dao gọt, mút, dây cắt… đầy đủ bộ",category:"Dụng cụ"},{name:"Đất sét cao cấp",desc:"Dễ nặn, tạo hình nét tinh tế",category:"Vật liệu"}],pricingTitle:"Lá»±a chọn thuê xưởng làm gốm linh hoạt theo thời gian",pricingIntro:"Chúng tôi cung cấp dịch vụ thuê dụng cụ tá»± nặn tại xưởng gốm, với các lá»±a chọn linh hoạt phù hợp với mọi yêu cầu và lịch trình cá nhân. Giá khởi điểm là 250.000 VNĐ cho 2 giờ đầu tiên; mỗi giờ tiếp theo được tính theo bảng giá hiện hành.",pricing:"2 tiếng: 250.000₫ • 3 tiếng: 350.000₫ • 4 tiếng: 450.000₫ • 5 tiếng: 550.000₫ • 6 tiếng: 650.000₫ • 7 tiếng: 750.000₫ • 8 tiếng: 850.000₫ • Bao gồm 2kg đất / người",pricingNote:"Giá thuê đã bao gồm trang thiết bị, dụng cụ, điện nước sinh hoạt, và 02 kg đất để thá»±c hành. Nếu bạn cần thêm đất, vui lòng liên hệ chúng tôi để biết thêm thông tin và báo giá.",included:["2kg đá
60º¥t","Dụng cụ","Điện nước"],bookingTitle:"Đặt lịch thuê studio",bookingHeadline:"Giữ chỗ cá»§a bạn trong 2 phút",bookingIntro:"Để đặt lịch trá»±c tuyến, vui lòng kiểm tra chỗ trống và đặt lịch dưới đây.",howToTitle:"Cách thức đăng ký",howToIntro:"Chỉ 3 bước đơn giản để đặt lịch thuê studio gốm.",startBookingCta:"Bắt đầu đặt lịch",stepHint1:"Chọn ngày",stepHint2:"Thanh toán",stepHint3:"Email xác nhận",howTo:[{title:"Chọn ngày và khung giờ",desc:"Chọn ngày thuê, giờ bắt đầu, số giờ và số người phù hợp. Chỗ cá»§a bạn sẽ được giữ tá»± động trong 24 giờ để bạn thanh toán chuyển khoản."},{title:"Thanh toán chuyển khoản",desc:"Điền thông tin liên hệ và chuyển khoản ngân hàng theo hướng dẫn. Bạn có thể quét mã QR hoặc sao chép số tài khoản để thanh toán nhanh."},{title:"Nhận xác nhận qua email",desc:"Sau khi Vietclay xác nhận thanh toán, bạn sẽ nhận email xác nhận chính thức cùng thông tin đến studio trong vòng 30 phút."}],faqTitle:"Câu Hỏi Thường Gặp",faq:[{q:"Làm thế nào để đăng ký thuê xưởng làm gốm tại Vietclay?",a:"Bạn có thể kiểm tra lịch trống và đặt lịch trá»±c tuyến, hoặc liên hệ trá»±c tiếp với Vietclay để sắp xếp thời gian thuê xưởng phù hợp."},{q:"Tôi cần làm gì sau khi đặt lịch thuê xưởng?",a:"Sau khi chọn lịch, bạn điền thông tin liên hệ và chuyển khoản theo hướng dẫn. Sau khi xác nhận thanh toán, Vietclay sẽ gá»­i email xác nhận chính thức cho bạn."},{q:"Vietclay có chính sách há»§y đặt lịch và hoàn lại tiền không?",a:"Vietclay không áp dụng chính sách há»§y đặt lịch và hoàn lại tiền. Vì vậy, bạn cần cân nhắc kỹ trước khi đăng ký."},{q:"Tôi muốn thay đổi ca hoặc ngày học thuê studio, tôi cần làm gì?",a:"Trong trường hợp muốn đổi ca hoặc ngày học, bạn cần nhắn thông báo cho Vietclay trước hai ngày để nhận được sá»± hỗ trợ tốt nhất."}],policyTitle:"Những lưu ý quan trọng",policy:"Đổi lịch trước 2 ngày • Không hoàn tiền",policyCards:[{icon:"🚫",title:"Không hoàn tiền",desc:"Vietclay không áp dụng chính sách há»§y đặt lịch và hoàn lại tiền thuê, vì vậy hãy cân nhắc kỹ trước khi đăng ký."},{icon:"🔄",title:"Đổi lịch",desc:"Trường hợp đổi ca hoặc ngày học thuê studio làm gốm, các bạn vui lòng nhắn trước hai (02) ngày để nhận được sá»± hỗ trợ tốt nhất."},{icon:"⚠️",title:"An toàn",desc:"Trước khi làm gốm, hãy tìm hiểu cách sá»­ dụng trang thiết bị và dụng cụ để đảm bảo an toàn cho bản thân. Vietclay không chịu trách nhiệm đối với tổn thất hoặc chấn thương phát sinh do việc sá»­ dụng thiết bị và không gian không đúng cách."},{icon:"🔧",title:"Thiết bị hỏng",desc:"Trường hợp thiết bị, dụng cụ bị hỏng do sá»± bất cẩn hay cố ý cá»§a người thuê, Vietclay có quyền yêu cầu chi phí sá»­a chữa, thay thế."}],policyConsent:"Tôi đã đọc và đồng ý với <termsLink>Điều khoản và Điều kiện</termsLink> cùng <privacyLink>Chính sách bảo mật</privacyLink> cá»§a Vietclay.",policyContinueNotice:"Bằng việc tiếp tục, bạn xác nhận đã đọc và đồng ý với <termsLink>Điều khoản và Điều kiện</termsLink> và <privacyLink>Chính sách bảo mật</privacyLink>.",confirmation:{title:"Đã giữ chỗ!",paymentTitle:"Thông tin chuyển khoản",bank:"Ngân hàng",accountNumber:"Số tài khoản",accountName:"Chá»§ tài khoản",amount:"Số tiền",transferContent:"Nội dung CK",copy:"Sao chép",copied:"Đã sao chép!",scanToPay:"Quét mã QR để thanh toán",qrInstruction:"Mở app ngân hàng → QR Pay → Quét mã này",holdTimer:"Giữ chỗ trong {time}",holdExpired:"Slot đã hết hạn. Vui lòng chọn lại.",finalizeCta:"Hoàn tất đặt lịch",chooseAgain:"Chọn lại",timeline1:"Giữ chỗ",timeline2:"Chuyển khoản",timeline3:"Xác nhận email",nextSteps:"Sau khi chuyển khoản, bạn sẽ nhận email xác nhận trong vòng 30 phút.",support:"Cần hỗ trợ?"}
60,directionsTitle:"Không gian làm gốm rộng rãi và thoáng mát",directionsIntro:"Không gian làm gốm rộng rãi, thoáng mát tại Vietclay là nơi lý tưởng cho mọi hoạt động từ nặn gốm bằng bàn xoay điện đến thủ công, tráng men, và nung sản phẩm. Với khu vực làm gốm hơn 100m² và sân vườn rộng 500m² cạnh sông Hồng, bạn sẽ tìm thấy sự yên bình và tập trung cần thiết cho quá trình sáng tạo nghệ thuật của mình.",address:"Vietclay Studio đang xây dựng không gian mới",openingHours:"Các ngày trong tuần (9:00 - 20:00); Cuối tuần (9:00 - 19:00)",footerCtaTitle:"Nhắn cho Vietclay biết nhu cầu của bạn nhé",footerCtaButton:"Đặt lịch ngay",nav:{spaces:"Không gian",pricing:"Bảng giá",booking:"Đặt lịch",location:"Đường đi"},trust:[{icon:"shield",text:"Thanh toán chuyển khoản an toàn"},{icon:"mail",text:"Xác nhận tức thì qua email"},{icon:"check",text:"Đầy đủ thiết bị & 2kg đất thực hành"}]},courses:{title:"Khoá học gốm căn bản",summary:"07 buổi • 7.000.000 VNĐ/người/khoá • Lịch linh hoạt"},paySuccess:{title:"Thanh toán thành công",description:"Cảm ơn bạn. Vietclay sẽ xác nhận lịch của bạn sớm nhất.",sessionId:"Mã thanh toán: {{value}}",backHome:"Quay lại trang chủ"},payCancelled:{title:"Thanh toán chưa hoàn tất",description:"Bạn có thể thử thanh toán lại để giữ chỗ.",retry:"Thanh toán lại",home:"Trang chủ"},guideListing:{defaultTopic:"Tất cả",defaultHeroTitle:"Câu Chuyện Của Đất",defaultHeroDescription:"Chia sẻ kinh nghiệm, những câu chuyện và bài học từ hành trình làm gốm của Vietclay",journalEyebrow:"Câu chuyện của đất",journalTitle:"Vietclay Blogs",journalDescription:"Một thư viện biên tập về gốm thủ công, kỹ thuật thực hành và đời sống sáng tạo quanh đất.",publishedCount:"bài viết đã xuất bản",latestTitle:"Mới từ Journal",defaultTopicDescription:"Khám phá các bài viết theo danh mục để tìm đúng nội dung bạn cần.",defaultSeoTitle:"Blog Vietclay",errorTitle:"Blog tạm thời chưa sẵn sàng",errorMessage:"Không tải được danh sách bài viết.",searchAndFilter:"Tìm kiếm & bộ lọc",refreshing:"Đang cập nhật...",reset:"Đặt lại",collapseFilters:"Thu gọn",expandFilters:"Mở bộ lọc",searchLabel:"Tìm kiếm bài viết",searchPlaceholder:"Nhập từ khoá: workshop, kỹ thuật, Vietclay...",searchPlaceholderShort:"Tìm trong Journal...",clearSearch:"Xoá từ khoá",scrollTopicsLeft:"Xem các chủ đề phía trước",scrollTopicsRight:"Xem thêm chủ đề phía sau",matchingResults:"{{count}} bài phù hợp",sortPrefix:"Sắp xếp",featuredTitle:"Tuyển chọn",featuredBadge:"Nổi bật",editorsSelection:"Tuyển chọn của biên tập",allArticles:"Mới nhất",searchResults:"Kết quả tìm kiếm",empty:"Chưa có bài viết nào được xuất bản.",readArticle:"Đọc bài viết",paginationLabel:"Phân trang blog",previous:"Trước",next:"Sau",newest:"Mới nhất",oldest:"Cũ nhất",az:"A-Z",viewingLatest:"Đang xem toàn bộ bài viết mới nhất",categoryFallback:"Danh mục",sortSummary:"Sắp xếp: {{value}}",pageLabel:"Trang {{page}}",searchResultsDescription:'Kết quả cho "{{query}}" trong kho bài viết gốm thủ công của Vietclay.'}}}},en:{translation:{app:{header:{openMenu:"Open menu",closeMenu:"Close menu",closeMenuOverlay:"Close menu",mobileNavigation:"Mobile navigation",languageVi:"Tiếng Việt",languageEn:"English"},footer:{eyebrow:"Contact",titleLine1:"Tell Vietclay",titleLine2:"what you need",mapLoading:"Loading map…",mapTitle:"Vietclay map",bctLabel:"Registered with the Ministry of Industry and Trade",contact:{phoneTitle:"Call or message us on Zalo",emailTitle:"Send us an email",chatTitle:"Chat with us directly",chatValue:"Click here",addressTitle:"Visit the studio at:",addressValue:"Vietclay Studio is building a new space"}},pausePopup:{eyebrow:"Update from Vietclay",title:"Vietclay is taking a short break while moving to a new space",description:"Hi there! Vietclay is taking a short break while we move to a new studio space. We are currently looking for the right new home for the pottery shop. If you are planning to join a workshop or looking for handmade pottery, please stay tuned. We will be back soon.",ctaLabel:"Message us",closeAnnouncement:"Close announcement",closePopup:"Close popup",later:"Maybe later"}},pages:{notFound:{title:"Page not found",description:"The URL may have changed or no longer exists.",viewBlog:"View blog",backHome:"Back to home"},workshops:{title:"Workshops",loading:"Loading...",error:"Failed to load w
60orkshops",priceLabel:"Price",hourUnit:"hours",maxCapacity:"Up to {{count}} guests",details:"View details",empty:"No workshops have been published yet."},studio:{title:"Pottery studio rental",seoTitle:"Pottery Studio Rental in Hanoi — Vietclay",seoDescription:"Rent a pottery studio in Hanoi. Wheels, hand-building, kiln. 100m² workspace, 500m² garden by the Red River. Book online for 2–8 hours.",heroEyebrow:"Pottery Studio · Vietclay Hanoi",heroHeadline:"Pottery Studio Rental in Hanoi",heroHeadlineAccent:"A calm space to practice, experiment, and create.",heroDescription:"Wheel throwing · Hand-building · Kiln. 100m² studio, rent by the hour — book online.",heroCta:"See available slots",priceFrom:"From 250,000₫ / 2 hours",intro:"Pottery gets better with steady practice — and Vietclay is a warm, well-equipped place in Hanoi to keep showing up for it. Come on your own or with friends, settle in at the wheel or hand-building table, and take your time. If you need a quick refresher on tools or process, just ask.",stats:[{value:"100m²",label:"Pottery work area"},{value:"500m²",label:"Garden by the Red River"},{value:"02 kg",label:"Practice clay included"}],spacesTitle:"Two separate spaces",spacesIntro:"The studio is divided into two spaces, so you can work in the vibe you prefer — quiet hand-building or focused wheel practice.",spaces:[{name:"Hand-building Area",desc:`Hand-building needs room to move. We set aside a dedicated zone away from the wheels, so you can work in a quieter space without the noise and pace of throwing.
61
62It is calm here, with music playing — settle in and follow your ideas: rolling slabs, building coils, scoring and slipping, refining rims, adjusting forms… slow and steady until the piece feels right.
63
64There is plenty of shared shelf space to store works-in-progress between sessions. We also have damp boxes to keep leftover clay or half-finished pieces moist, so you can pick up where you left off next time.
65
66Basic communal hand-building tools are on hand (ribs, trimming tools, needles, sponges…) — enough for standard techniques. Each booking includes 2kg of clay; let us know if you need more and we will charge a small extra fee.
67
68Basic underglazes are available for decorating. Firing is priced per piece depending on size; leave your finished work with us and we will inspect and quote before firing.`,points:["Spacious tables for hand-building.","Shared shelves + damp boxes to store pieces and clay between sessions.","Basic communal tools available.","2kg clay included per booking; extra clay available on request.","Basic underglazes provided for decorating.","Firing priced per piece; quote given before firing."]},{name:"Wheel-throwing space",desc:`The wheel-throwing space is for those who already have a basic foundation and want a steady place to practice independently — centering, pulling walls, trimming, and finishing forms.
69
70We provide wheels, shared basic tools, and enough room to work at your own pace. It’s a great setup for quiet practice, trying new shapes, and refining details.
71
72Unfinished work can be left on the shared shelves. We also have damp boxes to keep pieces or leftover clay moist between sessions.
73
74Each booking includes 2kg of clay. If you need more, just let us know. Basic underglazes are available once your piece is ready for surface decoration.
75
76Firing is charged per piece depending on size and quantity. After you finish, we’ll inspect and quote before firing.
77
78After each session, please clean the wheel, tools, and workspace so everything is ready for the next person.`,points:["For potters with a foundation who can practice independently.","Wheels, basic tools, and shared workspace provided.","Suitable for practice, pulling forms, trimming, and finishing.","Shared shelves + damp boxes to store pieces between sessions.","2kg clay included per booking; extra clay available on request.","Basic underglazes provided for decorating.","Firing priced per piece; quote given before firing.","Users clean the wheel, tools, and workspace after each session."]}],equipmentTitle:"Fully equipped machinery and tools",equipmentHeadline:"Everything you need to create",equipmentIntro:"Vietclay’s pottery space is fully equipped with tools and materials for your session. If you need a quick refresher on how something works, don’t he
78sitate to ask — we’re happy to help.",equipment:[{name:"Kiln",desc:"High-temp firing for fully vitrified pieces",category:"Machinery"},{name:"Glaze grinder",desc:"Fine grind for custom glaze colors",category:"Machinery"},{name:"Clay extruder",desc:"Extrudes clay quickly and evenly",category:"Machinery"},{name:"Slab roller",desc:"Rolls even clay slabs for easy shaping",category:"Machinery"},{name:"Hand wheel",desc:"Ideal for beginners finding their feel",category:"Machinery"},{name:"Electric wheel",desc:"Steady speed for a professional feel",category:"Machinery"},{name:"Art supplies",desc:"Brushes & colors for decorating pieces",category:"Tools"},{name:"Apron",desc:"Keeps clothes clean throughout the session",category:"Tools"},{name:"Pottery tools",desc:"Knife, sponge, wire — a complete kit",category:"Tools"},{name:"High-quality clay",desc:"Pliable clay for fine, detailed work",category:"Materials"}],pricingTitle:"Flexible studio rental by time",pricingIntro:"Choose the studio time that fits your plan. Rates start at 250,000₫ for two hours; each additional hour follows the current studio rate.",pricing:"2 hours: 250,000₫ • 3 hours: 350,000₫ • 4 hours: 450,000₫ • 5 hours: 550,000₫ • 6 hours: 650,000₫ • 7 hours: 750,000₫ • 8 hours: 850,000₫ • Includes 2kg clay / person",pricingNote:"The rental price includes equipment, tools, utilities, and 02 kg of clay for practice. If you need more clay, just let us know and we’ll share the options and pricing.",included:["2kg clay","Tools","Utilities"],bookingTitle:"Book the studio",bookingHeadline:"Reserve your spot in 2 minutes",bookingIntro:"To book online, please check availability and book below.",howToTitle:"How to register",howToIntro:"Just 3 simple steps to book the pottery studio.",startBookingCta:"Start booking",stepHint1:"Pick date",stepHint2:"Pay",stepHint3:"Email confirm",howTo:[{title:"Pick your date and time",desc:"Choose your rental date, start time, duration, and number of participants. Your spot is held automatically for 24 hours while you complete the bank transfer."},{title:"Pay by bank transfer",desc:"Enter your contact details and transfer the payment following the instructions. You can scan the QR code or copy the account number for a quick transfer."},{title:"Get confirmation by email",desc:"Once Vietclay verifies your payment, you will receive an official confirmation email with studio details within 30 minutes."}],faqTitle:"Frequently Asked Questions",faq:[{q:"How do I book a studio session at Vietclay?",a:"You can check availability and book online, or message Vietclay directly and we’ll help you find a suitable time."},{q:"What should I do after booking?",a:"After selecting your slot, enter your contact details and complete the bank transfer following the instructions. Once we verify your payment, you’ll receive an official confirmation email."},{q:"Do you have a cancellation and refund policy?",a:"Vietclay does not offer cancellations or refunds for studio bookings, so please choose your slot carefully."},{q:"Can I reschedule my session?",a:"If you need to reschedule, please notify Vietclay at least two days in advance so we can support you the best we can."}],policyTitle:"A few important notes",policy:"Reschedule at least 2 days in advance • Non-refundable",policyCards:[{icon:"🚫",title:"Non-refundable",desc:"Studio bookings are non-refundable, so please double-check your slot before confirming."},{icon:"🔄",title:"Rescheduling",desc:"If you need to reschedule, please message us at least two (02) days in advance so we can support you."},{icon:"⚠️",title:"Safety",desc:"Please learn how to use the equipment and tools safely. Vietclay is not responsible for loss or injury arising from improper use of the space or equipment."},{icon:"🔧",title:"Equipment damage",desc:"If tools or equipment are damaged due to carelessness or intent, Vietclay may request repair or replacement costs."}],policyConsent:"I have read and agree to Vietclay's <termsLink>Terms and Conditions</termsLink> and <privacyLink>Privacy Policy</privacyLink>.",policyContinueNotice:"By continuing, you confirm you have read and agree to the <termsLink>Terms and Conditions</termsLink> and <privacyLink>Privacy Policy</privacyLink>.",confirmation:{title:"Slot reserved!",paymentTitle:"Bank transfer details",bank:"Bank",accountNumber:"Account number",accountName:"Account holder",amount:"Amount",transferContent:"Memo",copy:"Copy",copied:"Copied!",scanToPay:"Scan QR to pay",qrInstru
78ction:"Open banking app → QR Pay → Scan this code",holdTimer:"Hold valid for {time}",holdExpired:"The hold has expired. Please choose again.",finalizeCta:"Finalize booking",chooseAgain:"Choose again",timeline1:"Hold",timeline2:"Transfer",timeline3:"Email confirm",nextSteps:"After transferring, you will receive a confirmation email within 30 minutes.",support:"Need help?"},directionsTitle:"A spacious and airy pottery space",directionsIntro:"Vietclay’s spacious, airy pottery space is the ideal place for all activities from electric wheel throwing to hand-building, glazing, and firing. With a pottery area of over 100m² and a 500m² garden by the Red River, you will find the peace and focus needed for your artistic creative process.",address:"Vietclay Studio is building a new space",openingHours:"Weekdays (9:00 - 20:00); Weekends (9:00 - 19:00)",footerCtaTitle:"Tell Vietclay what you need",footerCtaButton:"Book now",nav:{spaces:"Spaces",pricing:"Pricing",booking:"Book",location:"Directions"},trust:[{icon:"shield",text:"Secure bank transfer"},{icon:"mail",text:"Instant email confirmation"},{icon:"check",text:"Full equipment & 2kg clay included"}]},courses:{title:"Beginner pottery course",summary:"7 sessions • 7,000,000 VND per student • Flexible schedule"},paySuccess:{title:"Payment successful",description:"Thank you. Vietclay will confirm your schedule as soon as possible.",sessionId:"Payment ID: {{value}}",backHome:"Back to home"},payCancelled:{title:"Payment not completed",description:"You can try the payment again to keep your booking.",retry:"Try again",home:"Home"},guideListing:{defaultTopic:"All",defaultHeroTitle:"Stories of Clay",defaultHeroDescription:"Stories, lessons and practical insights from Vietclay’s pottery journey.",journalEyebrow:"Stories of clay",journalTitle:"Vietclay Blogs",journalDescription:"An editorial library of handmade pottery, practical techniques and creative life around clay.",publishedCount:"published articles",latestTitle:"New from the Journal",defaultTopicDescription:"Explore articles by topic to quickly find the content you need.",defaultSeoTitle:"Vietclay Blog",errorTitle:"The blog is temporarily unavailable",errorMessage:"Failed to load the article list.",searchAndFilter:"Search & filters",refreshing:"Refreshing...",reset:"Reset",collapseFilters:"Collapse",expandFilters:"Open filters",searchLabel:"Search articles",searchPlaceholder:"Enter keywords: workshop, technique, Vietclay...",searchPlaceholderShort:"Search the Journal...",clearSearch:"Clear search",scrollTopicsLeft:"View previous topics",scrollTopicsRight:"View more topics",matchingResults:"{{count}} matching articles",sortPrefix:"Sort",featuredTitle:"Curated",featuredBadge:"Featured",editorsSelection:"Editor's selection",allArticles:"Latest stories",searchResults:"Search results",empty:"No articles have been published yet.",readArticle:"Read article",paginationLabel:"Blog pagination",previous:"Previous",next:"Next",newest:"Newest",oldest:"Oldest",az:"A-Z",viewingLatest:"Viewing the latest articles",categoryFallback:"Category",sortSummary:"Sort: {{value}}",pageLabel:"Page {{page}}",searchResultsDescription:'Results for "{{query}}" in Vietclay’s pottery article library.'}}}}};ft.isInitialized||ft.use(pa).init({resources:rf,lng:"vi",fallbackLng:"vi",interpolation:{escapeValue:!1}});const ap=(e,t)=>{if(typeof document>"u")return;let n=document.head.querySelector(e);n||(n=document.createElement("meta"),document.head.appendChild(n)),Object.entries(t).forEach(([o,r])=>n==null?void 0:n.setAttribute(o,r))},cp=e=>{if(typeof document>"u")return;let t=document.head.querySelector('link[rel="canonical"]');t||(t=document.createElement("link"),t.setAttribute("rel","canonical"),document.head.appendChild(t)),t.setAttribute("href",e)},lp=(e,t)=>{if(typeof document>"u")return;const n=`link[rel="alternate"][hreflang="${e}"]`;let o=document.head.querySelector(n);o||(o=document.createElement("link"),o.setAttribute("rel","alternate"),o.setAttribute("hreflang",e),document.head.appendChild(o)),o.setAttribute("href",t)},up=()=>{typeof document>"u"||document.head.querySelectorAll('link[rel="alternate"][hreflang]').forEach(e
78=>e.remove())},dp=(e,t)=>{if(typeof document>"u")return;let n=document.head.querySelector(`script[type="application/ld+json"][id="${e}"]`);n||(n=document.createElement("script"),n.id=e,n.type="application/ld+json",document.head.appendChild(n)),n.textContent=JSON.stringify(t).replaceAll("<","\\u003c")},hp=e=>{var t;typeof document>"u"||(t=document.head.querySelector(`script[type="application/ld+json"][id="${e}"]`))==null||t.remove()},sf=e=>{typeof document>"u"||(document.documentElement.lang=e)},fp=e=>typeof window>"u"?"":new URL(e,window.location.origin).toString(),ut={terms:{vi:"/dieu-khoan-va-dieu-kien",en:"/terms-and-conditions"},privacy:{vi:"/chinh-sach-bao-mat",en:"/privacy-policy"}},to=(e,t)=>ut[e][t],qs=e=>{const t=(e||"/").replace(/\/+$/,"")||"/",n=ut.terms.vi;if(t===n)return{pageType:"terms",locale:"vi"};const o=ut.terms.en;if(t===o)return{pageType:"terms",locale:"en"};const r=ut.privacy.vi;if(t===r)return{pageType:"privacy",locale:"vi"};const s=ut.privacy.en;return t===s?{pageType:"privacy",locale:"en"}:null},dt="vi",Ks=e=>e==="vi"||e==="en",af=e=>{const t=qs(e);if(t)return t.locale;const[n]=e.split("/").filter(Boolean);return Ks(n)?n:dt},bt=e=>{const t=e.split("/").filter(Boolean);if(t.length===0)return"/";if(!Ks(t[0]))return e||"/";const n=`/${t.slice(1).join("/")}`;return n==="/"?"/":n.replace(/\/+$/,"")},Co=(e,t)=>{const n=bt(e||"/"),o=qs(n);return o?to(o.pageType,t):n==="/thue-studio-lam-gom"||n==="/studio-rental"?t==="en"?"/en/studio-rental":"/thue-studio-lam-gom":n==="/workshop-gom-ban-xoay"||n==="/pottery-wheel-workshop"||n==="/workshops/workshop-gom-ban-xoay"?t==="en"?"/en/pottery-wheel-workshop":"/workshop-gom-ban-xoay":n==="/workshop-lam-gom-nan-tay"||n==="/handbuilding-pottery-workshop"||n==="/workshops/workshop-lam-gom-nan-tay"?t==="en"?"/en/handbuilding-pottery-workshop":"/workshop-lam-gom-nan-tay":n==="/khoa-hoc-gom-can-ban"||n==="/basic-pottery-course"?t==="en"?"/en/basic-pottery-course":"/khoa-hoc-gom-can-ban":t===dt?n:n==="/"?`/${t}`:`/${t}${n}`},ve=(e,t)=>e.startsWith("/")?Co(e,t):e,cf=e=>e===dt?[dt]:[e,dt],Ys={slug:"",status:"idle"};let Yt=Ys;const no=new Set,lf=(e,t)=>{const n=t==="idle"?Ys:{slug:e,status:t};Yt.status===n.status&&Yt.slug===n.slug||(Yt=n,no.forEach(o=>o()))},uf=e=>(no.add(e),()=>{no.delete(e)}),dr=()=>Yt,hr=c.lazy(()=>Y(()=>import("./Home-DINetoPm.js"),__vite__mapDeps([0,1,2,3,4,5,6]))),fr=c.lazy(()=>Y(()=>import("./Workshops-DzNNIeni.js"),__vite__mapDeps([7,1,8,5]))),pr=c.lazy(()=>Y(()=>import("./WorkshopDetail-DqdUC9Me.js"),__vite__mapDeps([9,1,8,5])));let Xt=null,mr=null;const Xs=()=>(mr??(mr=Y(()=>import("./WorkshopWheelLanding-Ck1KVNN6.js"),__vite__mapDeps([10,1,11,2,3,4,12,13,14,15,16,17,5]))),mr),df=c.lazy(Xs),hf=async()=>{Xt=await Xs()};function gr({locale:e}){const t=(Xt==null?void 0:Xt.default)??df;return i.jsx(t,{locale:e})}let Zt=null,br=null;const Zs=()=>(br??(br=Y(()=>import("./WorkshopHandbuildingLanding-CilSegM6.js"),__vite__mapDeps([18,1,11,2,3,4,12,14,19,5]))),br),ff=c.lazy(Zs),pf=async()=>{Zt=await Zs()};function yr({locale:e}){const t=(Zt==null?void 0:Zt.default)??ff;return i.jsx(t,{locale:e})}const xr=c.lazy(()=>Y(()=>import("./Courses-Bugim1kp.js"),__vite__mapDeps([20,1,5])));let Qt=null,vr=null;const Qs=()=>(vr??(vr=Y(()=>import("./BasicPotteryCourse-CCV8hMbH.js"),__vite__mapDeps([21,1,12,5]))),vr),mf=c.lazy(Qs),gf=async()=>{Qt=await Qs()};function wr(){const e=(Qt==null?void 0:Qt.default)??mf;return i.jsx(e,{})}let Jt=null,kr=null;const Js=()=>(kr??(kr=Y(()=>import("./Studio-BBsvK2Mv.js"),__vite__mapDeps([22,1,12,5,4]))),kr),bf=c.lazy(Js),yf=async()=>{Jt=await Js()};function Dt(){const e=(Jt==null?void 0:Jt.default)??bf;return i.jsx(e,{})}let en=null,Cr=null;const ea=()=>(Cr??(Cr=Y(()=>import("./EditorialProfilePage-Kak_MwDj.js"),__vite__mapDeps([23,1,24,13,5]))),Cr),xf=c.lazy(ea),vf=async()=>{en=await ea()};function Er({locale:e}){const t=(en==null?void 0:en.default)??xf;return i.jsx(t,{locale:e})}const jr=c.lazy(()=>Y(()=>import("./Pay-BzaQm4ad.js"),__vite__mapDeps([25,1,26]))),Sr=c.lazy(()=>Y(()=>import("./PayTest-6ZSZd3ef.js"),__vite__mapDeps([27,1,26]))),_r=c.lazy(()=>Y(()=>import("./PaySuccess-B4S2ikmq.js"),__vite__mapDeps([28,1,5]))),Rr=c.lazy(()=>Y(()=>import("./PayCancelled-SZhZ2hPX.js"),__vite__mapDeps([29,1,5]))),Pr=c.lazy(()=>Y(()=>import("./ProductDetail-wW9oKLWS.js"),__vite__mapDeps([30,1,31,17,14,5]))),Ar=c.lazy(()=>Y(()=>import("./CartPage-D4gWJeT-.js"),__vite__mapDeps([32,1,5]))),Nr=c.lazy(()=>Y(()=>
78import("./CheckoutPage-DoBVmlCx.js"),__vite__mapDeps([33,1,34,5]))),Tr=c.lazy(()=>Y(()=>import("./OrderSuccessPage-CSeWcvOo.js"),__vite__mapDeps([35,1,26]))),Mr=c.lazy(()=>Y(()=>import("./OrderFailedPage-CNyuEkyk.js"),__vite__mapDeps([36,1])));let ht=null,Ir=null;const ta=()=>(Ir??(Ir=Y(()=>import("./LegacySlugResolver-B6rMuj9R.js"),__vite__mapDeps([37,1,38,31,39,40,24,41,5,19,3,14,42,17,15]))),Ir),wf=c.lazy(ta),Lr=async(e="",t)=>{ht=await ta(),e&&t&&(ht.primeGuideArticleRouteSnapshot(e,t),lf(e,"guide"))};function Or(){const e=(ht==null?void 0:ht.default)??wf;return i.jsx(e,{})}let tn=null,Dr=null;const na=()=>(Dr??(Dr=Y(()=>import("./GuideArticlesPage-DfgG_Jeb.js"),__vite__mapDeps([43,1,38,5,42,15,16,17]))),Dr),kf=c.lazy(na),Vn=async(e,t)=>{const[n,o]=await Promise.all([na(),Y(()=>import("./guideArticles-DYULWA2C.js"),[])]);tn=n,e&&o.primeGuideArticlesListing(e),t&&o.primeGuideCategories(t)};function Vr(){const e=(tn==null?void 0:tn.default)??kf;return i.jsx(e,{})}const Cf=c.lazy(()=>Y(()=>import("./NotFoundPage-UQIS199_.js"),__vite__mapDeps([41,1,5]))),Vt=c.lazy(()=>Y(()=>import("./LoginPage-Dndvobfx.js"),__vite__mapDeps([44,1,45,40,5]))),Ft=c.lazy(()=>Y(()=>import("./RegisterPage-owlg5XD_.js"),__vite__mapDeps([46,1,45,40,5]))),Fr=c.lazy(()=>Y(()=>import("./AuthCallback-BsmvHEhb.js"),__vite__mapDeps([47,1,5]))),Wt=c.lazy(()=>Y(()=>import("./ForgotPasswordPage-D4ZlAo2B.js"),__vite__mapDeps([48,1,40,5]))),Wr=c.lazy(()=>Y(()=>import("./ResetPasswordPage-Dv3YksKy.js"),__vite__mapDeps([49,1,40,5]))),Fn=c.lazy(()=>Y(()=>import("./AccountPage-RsP7TktG.js"),__vite__mapDeps([50,1,45,51,52,53,54,5]))),Wn=c.lazy(()=>Y(()=>import("./ProfilePage-BYC2Sviu.js"),__vite__mapDeps([55,1,56,45,54,5]))),Bn=c.lazy(()=>Y(()=>import("./AddressPage-B7Jtn1OP.js"),__vite__mapDeps([57,1,39,56,34,53,54,5]))),$n=c.lazy(()=>Y(()=>import("./OrderListPage-BTlGf4Ru.js"),__vite__mapDeps([58,1,56,52,53,54,45,5]))),zn=c.lazy(()=>Y(()=>import("./OrderDetailPage-x3xoW3kW.js"),__vite__mapDeps([59,1,51,56,52,5]))),Un=c.lazy(()=>Y(()=>import("./DiscountPage-QeQeCp3b.js"),__vite__mapDeps([60,1,39,56,53,54,45,5]))),Bt=c.lazy(()=>Y(()=>import("./LegalPage-CmjGvQYU.js"),__vite__mapDeps([61,1,5]))),$t="vietclay-pause-popup-dismissed-v1",Br=!1,Ef=new Set(["/","/workshop-gom-ban-xoay","/pottery-wheel-workshop","/workshop-lam-gom-nan-tay","/handbuilding-pottery-workshop","/khoa-hoc-gom-can-ban","/basic-pottery-course","/thue-studio-lam-gom","/studio-rental"]),$r=e=>{var o,r,s,a,l,u;if(!e)return null;const t=e==null?void 0:e.url;if(typeof t=="string"&&t.length>0)return t;const n=((o=e==null?void 0:e.data)==null?void 0:o.url)??((s=(r=e==null?void 0:e.data)==null?void 0:r.attributes)==null?void 0:s.url);if(typeof n=="string"&&n.length>0)return n;if(Array.isArray(e==null?void 0:e.data)){const d=(u=(l=(a=e.data)==null?void 0:a[0])==null?void 0:l.attributes)==null?void 0:u.url;if(typeof d=="string"&&d.length>0)return d}return null},zr=(e,t)=>t?t.startsWith("http://")||t.startsWith("https://")||!e?t:`${e}${t.startsWith("/")?"":"/"}${t}`:null,jf=e=>[{kind:"phone",title:e("app.footer.contact.phoneTitle"),value:"0788 281 992",href:"tel:0788281992"},{kind:"email",title:e("app.footer.contact.emailTitle"),value:"[email protected]",href:"mailto:[email protected]"},{kind:"chat",title:e("app.footer.contact.chatTitle"),value:e("app.footer.contact.chatValue"),href:"https://m.me/104596121562167"}],zt={"Liên Hệ":"Get in touch","Nhắn cho Vietclay biết":"Let's talk about","nhu cầu cá»§a bạn nhé":"what you need","© 2021 - 2025 Bản quyền thuộc về Vietclay.":"© 2021 - 2025 Vietclay. All rights reserved."},Sf={"Gọi điện/Zalo qua số điện thoại":"Call or Zalo","Nhắn tin vào hòm thư điện tá»­":"Email us","Chat trá»±c tiếp":"Chat with us","Tới địa chỉ cá»§a tiệm gốm tại:":"Drop by our studio"},_f={"Click vào đây":"Start a chat"},Rf="",Pf="http://online.gov.vn/(X(1)S(mxje1v4rgdxtfyvdvlketlvi))/Home/WebDetails/82557?AspxAutoDetectCookieSupport=1",Ur="/brand/logo.webp",Hr="/brand/bct.webp",Gr=e=>({eyebrow:e("app.pausePopup.eyebrow"),title:e("app.pausePopup.title"),description:e("app.pausePopup.description"),ctaLabel:e("app.pausePopup.ctaLabel"),ctaHref:"https://m.me/104596121562167"}),Af=e=>e==="en"?[{label:"Workshops",href:"/workshops",children:[{label:"Wheel Pottery Workshop",href:"/pottery-wheel-workshop"},{label:"Handbuilding Pottery Workshop",href:"/workshop-lam-gom-nan-tay"}]},{label:"Sản phẩm",href:"/de-lot-ly-mieng-lot-coc",children:[{label:"Đế lót ly / Miếng lót cốc",href:"/de-lot-ly-mieng-lot-coc"}]},{label:"Basic Pottery Course",href:"/basic-pottery-course"},{label:"Pottery Studio Rental",href:"/studio-rental"},{label:"Blog",href:"/blogs"}]:[{label:"Workshops",href:"/workshops",children:[{label:"Workshop Gốm Bàn Xoay",href:"/workshop-gom-ban-xoay"},{label:"Workshop Gốm Nặn Tay",href:"/workshop-lam-gom-nan-tay"}]},{label:"Sản phẩm",href:"/de-lot-ly-mieng-lot-coc",children:[{label:"Đế lót ly / Miếng lót cốc",href:"/de-lot-ly-mieng-lot-coc"}]},{label:"Khoá Học Gốm Căn Bản",href:"/khoa-hoc-gom-can-ban"},{label:"Thuê Studio",href:"/thue-studio-lam-gom"},{label:"Blog",href:"/blogs"}],Nf=e=>{const t="Sản phẩm",n="Đế lót ly / Miếng lót cốc",o="/de-lot-ly-mieng-lot-coc",r=u=>u.trim().toLowerCase(),s=e.findIndex(u=>r(u.label)===r(t)),a=u=>{const d=Array.isArray(u.children)?u.children:[];return d.some(f=>r(f.label)===r(n)&&f.href===o)?u:{...u,children:[...d,{label:n,href:o}]}};if(s>=0)return e.map((u,d)=>d===s?a(u):u);const l={label:t,href:o,children:[{label:n,href:o}]};return e.length===0?[l]:[e[0],l,...e.slice(1)]};function Tf(){return i.jsx("section",{children:i.jsx(ba,{viewport:!0})})}
78function Mf({isOverlay:e,isGuideArticleRoute:t,content:n,locale:o}){var W,F;const{t:r}=dn(),{user:s,signOut:a}=of(),[l,u]=c.useState(!1),[d,h]=c.useState(!1),[f,p]=c.useState(null),m=un(),y=(W=n==null?void 0:n.navItems)!=null&&W.length?n.navItems:Af(o),g=Nf(y),b=(F=n==null?void 0:n.logoUrl)!=null&&F.trim()?n.logoUrl.trim():Ur,v=g.length>0,k=A=>{if(t)return A==="en"?"/en/blogs":"/blogs";const I=bt(m.pathname);return I==="/doi-ngu-bien-tap"||I==="/editorial-team"?A==="en"?"/en/editorial-team":"/doi-ngu-bien-tap":`${Co(m.pathname,A)}${m.search}${m.hash}`},x=o==="en"?"/login":"/dang-nhap",C=o==="en"?"/account":"/tai-khoan",S=o==="en"?"/account/orders":"/tai-khoan/don-hang",j=A=>{if(/^https?:\/\/workshops\.vietclay\.com\/workshop-lam-gom-nan-tay\/?$/i.test(A))return"/workshop-lam-gom-nan-tay";if(/^https?:\/\/workshops\.vietclay\.com\/workshop-gom-ban-xoay\/?$/i.test(A))return o==="en"?"/pottery-wheel-workshop":"/workshop-gom-ban-xoay";if(/^https?:\/\/workshops\.vietclay\.com\/khoa-hoc-gom-can-ban-vi\/?$/i.test(A))return o==="en"?"/basic-pottery-course":"/khoa-hoc-gom-can-ban";const I=bt(A);return I==="/studio"||I==="/studio-rental"||/^https?:\/\/workshops\.vietclay\.com\/thue-studio-lam-gom\/?$/i.test(A)?o==="en"?"/studio-rental":"/thue-studio-lam-gom":A},P=(()=>{var B,V,O;const A=typeof((B=s==null?void 0:s.user_metadata)==null?void 0:B.first_name)=="string"?s.user_metadata.first_name.trim():"";if(A)return A;const I=typeof((V=s==null?void 0:s.user_metadata)==null?void 0:V.full_name)=="string"?s.user_metadata.full_name.trim():"";if(I){const L=I.split(" ").filter(Boolean);return L.length?o==="en"?L[0]:L[L.length-1]:I}return((O=s==null?void 0:s.email)==null?void 0:O.split("@")[0])||(o==="en"?"Account":"Tài khoản")})(),E=A=>o===A?"rounded-full bg-white/15 px-3 py-2 font-semibold text-white":"rounded-full px-3 py-2 text-white/75 hover:text-white hover:bg-white/10 transition",D=({isActive:A})=>e?A?"inline-flex items-center whitespace-nowrap rounded-full bg-white/15 px-3 py-2 font-semibold text-white":"inline-flex items-center whitespace-nowrap rounded-full px-3 py-2 text-white/85 transition hover:bg-white/10 hover:text-white":A?"inline-flex items-center whitespace-nowrap px-3 py-2 font-semibold underline underline-offset-8":"inline-flex items-center whitespace-nowrap px-3 py-2 text-white/90 transition hover:text-white";return c.useEffect(()=>{if(!e){u(!1);return}const A=()=>{u(window.scrollY>12)};return A(),window.addEventListener("scroll",A,{passive:!0}),()=>{window.removeEventListener("scroll",A)}},[e]),c.useEffect(()=>{h(!1)},[m.hash,m.pathname,m.search]),c.useEffect(()=>{if(!d)return;const A=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=A}},[d]),c.useEffect(()=>{d&&p(null)},[d]),c.useEffect(()=>{if(!d)return;const A=I=>{I.key==="Escape"&&(I.preventDefault(),h(!1))};return window.addEventListener("keydown",A),()=>window.removeEventListener("keydown",A)},[d]),i.jsxs("header",{id:"app-header","data-component":"AppHeader",className:[e?"fixed inset-x-0 top-0 z-50 text-white":"sticky top-0 z-50 bg-black text-white","dbg-app-header"].join(" "),children:[e&&i.jsx("div",{className:["absolute inset-0 transition-all duration-300 ease-[cubic-bezier(0.22,1,0.36,1)]",l?"bg-[#0000008C] backdrop-blur border-b border-white/10":"bg-gradient-to-b from-[#0000008C] to-transparent"].join(" ")}),i.jsxs("div",{className:"relative mx-auto grid h-16 max-w-7xl grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-4 px-4 xl:grid-cols-[minmax(15rem,1fr)_auto_minmax(15rem,1fr)]",children:[i.jsx("a",{href:"https://vietclay.com/",className:"flex items-center justify-self-start",children:i.jsx("img",{src:b??void 0,srcSet:b===Ur?"/brand/logo-96.webp 96w, /brand/logo-144.webp 144w, /brand/logo.webp 173w":void 0,sizes:"80px",alt:"Vietclay",width:173,height:95,className:"h-10 w-auto object-contain"})}),i.jsx("div",{className:"hidden min-w-0 items-center justify-center xl:flex",children:v?i.jsx("nav",{className:"flex min-w-0 items-center justify-center gap-2 overflow-visible",children:g.map(A=>{const I=A.href,B=j(I),V=`${I}-${A.label}`,O=Array.isArray(A.children)?A.children:[],L=O.length>0,N=f===V;if(L)return i.jsxs("div",{className:"relative",onMouseEnter:()=>p(V),onMouseLeave:()=>p(w=>w===V?null:w),children:[i.jsxs("button",{type:"button",className:["inline-flex items-center gap-2 rounded-full px-3 py-2 text-white/90 hover:text-white whitespace-nowrap",e?"hover:bg-white/10":""].join(" "),"aria-expanded":N,"aria-haspopup":"menu",onClick:()=>p(w=>w===V?null:V),children:[A.label,i.jsx("span",{"aria-hidden":"true",className:["text-white/60 transition",N?"rotate-180":""].join(" "),children:"▾"})]}),i.jsx("div",{className:"absolute left-0 top-full h-2 w-full","aria-hidden":"true"}),i.jsx("div",{className:["absolute left-0 top-full z-50 mt-2 min-w-[280px] rounded-2xl border border-white/10 bg-black/85 p-2 shadow-[0_20px_60px_rgba(0,0,0,0.45)] backdrop-blur transition",N?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"].join(" "),children:O.map(w=>j(w.href).startsWith("/")?i.jsx(at,{to:ve(j(w.href),o),className:"block rounded-xl px-3 py-2 text-sm text-white/90 hover:bg-white/10 hover:text-white transition",children:w.label},`${V}-${w.href}-${w.label}`):i.jsx("a",{href:j(w.href),target:w.href.startsWith("http")?"_blank":void 0,rel:w.href.startsWith("http")?"noreferrer":void 0,className:"block rounded-xl px-3 py-2 text-sm text-white/90 hover:bg-white/10 hover:text-white transition",children:w.label},`${V}-${w.href}-${w.label}`))})]},V);if(B.startsWith("/"))return i.jsx(at,{to:ve(B,o),className:D,children:A.label},V);const _=e?"inline-flex items-center whitespace-nowrap rounded-full px-3 py-2 text-white/85 transition hover:bg-white/10 hover:text-white":"inline-flex items-center whitespace-nowrap px-3 py-2 text-white/90 transition hover:text-white";return i.jsx("a",{href:B,target:I.startsWith("http")?"_blank":void 0,rel:I.startsWith("http")?"noreferrer":void 0,className:_,children:A.label},V)})}):null}),i.jsxs("div",{className:"hidden shrink-0 items-center gap-2 justify-self-end xl
78:flex",children:[i.jsx(_o,{}),s?i.jsxs(Qh,{children:[i.jsxs(Jh,{className:"inline-flex items-center gap-2 rounded-full border border-white/10 bg-white/5 px-4 py-2 text-sm font-semibold text-white/90 backdrop-blur transition hover:bg-white/10 focus:outline-none focus:ring-2 focus:ring-white/30",children:[i.jsx("span",{className:"inline-flex h-7 w-7 items-center justify-center rounded-full bg-white/15 text-xs uppercase",children:P.slice(0,1)}),i.jsx("span",{children:P})]}),i.jsxs(Hs,{className:"rounded-2xl border-[#ead7cd] p-2",children:[i.jsx(Kt,{asChild:!0,children:i.jsx(se,{to:ve(C,o),children:o==="en"?"My account":"Tài khoản của tôi"})}),i.jsx(Kt,{asChild:!0,children:i.jsx(se,{to:ve(S,o),children:o==="en"?"Orders":"Đơn hàng"})}),i.jsx(Kt,{onSelect:()=>void a(),children:o==="en"?"Sign out":"Đăng xuất"})]})]}):i.jsx(se,{to:ve(x,o),className:"rounded-full bg-primary px-4 py-2 text-sm font-semibold text-white transition hover:bg-primary/90",children:o==="en"?"Sign in":"Đăng nhập"}),i.jsxs("div",{className:"flex items-center gap-1 rounded-full border border-white/10 bg-white/5 p-1 backdrop-blur",children:[i.jsx(se,{to:k("vi"),className:E("vi"),"aria-label":r("app.header.languageVi"),children:"VI"}),i.jsx(se,{to:k("en"),className:E("en"),"aria-label":r("app.header.languageEn"),children:"EN"})]})]}),i.jsxs("div",{className:"ml-auto flex items-center gap-2 xl:hidden",children:[i.jsx(_o,{}),i.jsx("button",{type:"button",className:"inline-flex h-11 w-11 items-center justify-center rounded-full border border-white/10 bg-white/5 text-white/90 backdrop-blur hover:bg-white/10 transition focus:outline-none focus:ring-2 focus:ring-white/30","aria-label":r(d?"app.header.closeMenu":"app.header.openMenu"),"aria-expanded":d,"aria-controls":"mobile-nav",onClick:()=>h(A=>!A),children:d?i.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:i.jsx("path",{d:"M6 6L18 18M18 6L6 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})}):i.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:i.jsx("path",{d:"M4 7h16M4 12h16M4 17h16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})})]})]}),d?i.jsxs("div",{className:"xl:hidden",children:[i.jsx("button",{type:"button",className:"fixed inset-0 z-40 bg-black/60 backdrop-blur-[2px]","aria-label":r("app.header.closeMenuOverlay"),onClick:()=>h(!1)}),i.jsx("div",{id:"mobile-nav",className:["fixed inset-x-0 top-16 z-50","mx-4 overflow-hidden rounded-3xl border border-white/10 bg-black/70 backdrop-blur","shadow-[0_26px_90px_rgba(0,0,0,0.55)]","max-h-[calc(100svh-4rem)] overflow-auto"].join(" "),children:i.jsxs("div",{className:"p-3",children:[v?i.jsx("nav",{"aria-label":r("app.header.mobileNavigation"),className:"grid gap-1",children:g.map(A=>{const I=A.href,B=j(I),V=`${I}-${A.label}-mobile`,O=Array.isArray(A.children)?A.children:[],L=O.length>0,N=["flex items-center justify-between gap-4 rounded-2xl px-4 py-3.5","text-base font-semibold text-white/90","bg-white/5 hover:bg-white/10 transition","focus:outline-none focus:ring-2 focus:ring-white/30"].join(" ");return L?i.jsxs("div",{className:"rounded-2xl border border-white/10 bg-white/5 p-2",children:[B.startsWith("/")?i.jsxs(at,{to:ve(B,o),className:"flex items-center justify-between rounded-xl px-3 py-2 text-base font-semibold text-white/90 hover:bg-white/10 transition",onClick:()=>h(!1),children:[i.jsx("span",{children:A.label}),i.jsx("span",{"aria-hidden":"true",className:"text-white/60",children:"→"})]}):i.jsxs("a",{href:B,target:I.startsWith("http")?"_blank":void 0,rel:I.startsWith("http")?"noreferrer":void 0,className:"flex items-center justify-between rounded-xl px-3 py-2 text-base font-semibold text-white/90 hover:bg-white/10 transition",children:[i.jsx("span",{children:A.label}),i.jsx("span",{"aria-hidden":"true",className:"text-white/60",children:"→"})]}),i.jsx("div",{className:"mt-1 grid gap-1",children:O.map(_=>j(_.href).startsWith("/")?i.jsx(at,{to:ve(j(_.href),o),className:"rounded-xl px-3 py-2 text-sm text-white/80 hover:text-white hover:bg-white/10 transition",onClick:()=>h(!1),children:_.label},`${V}-${_.href}-${_.label}`):i.jsx("a",{href:j(_.href),target:_.href.startsWith("http")?"_blank":void 0,rel:_.href.startsWith("http")?"noreferrer":void 0,className:"rounded-xl px-3 py-2 text-sm text-white/80 hover:text-white hover:bg-white/10 transition",onClick:()=>h(!1),children:_.label},`${V}-${_.href}-${_.label}`))})]},V):B.startsWith("/")?i.jsxs(at,{to:ve(B,o),className:N,onClick:()=>h(!1),children:[i.jsx("span",{children:A.label}),i.jsx("span",{"aria-hidden":"true",className:"text-white/60",children:"→"})]},V):i.jsxs("a",{href:I,target:I.startsWith("http")?"_blank":void 0,rel:I.startsWith("http")?"noreferrer":void 0,className:N,onClick:()=>h(!1),children:[i.jsx("span",{children:A.label}),i.jsx("span",{"aria-hidden":"true",className:"text-white/60",children:"→"})]},V)})}):null,i.jsx("div",{className:"mt-3 grid gap-2",children:s?i.jsxs(i.Fragment,{children:[i.jsx(se,{to:ve(C,o),className:"rounded-2xl bg-primary px-4 py-3 text-center text-sm font-semibold text-white transition hover:bg-primary/90",onClick:()=>h(!1),children:o==="en"?"Open account":"Mở tài khoản"}),i.jsx("button",{type:"button",className:"rounded-2xl bg-white/5 px-4 py-3 text-sm font-semibold text-white/85 transition hover:bg-white/10",onClick:()=>{h(!1),a()},children:o==="en"?"Sign out":"Đăng xuất"})]}):i.jsx(se,{to:ve(x,o),className:"rounded-2xl bg-primary px-4 py-3 text-center text-sm font-semibold text-white transition hover:bg-primary/90",onClick:()=>h(!1),children:o==="en"?"Sign in":"Đăng nhập"})}),i.jsxs("div",{className:"mt-3 grid grid-cols-2 gap-2",children:[i.jsx(se,{to:k("vi"),className:["rounded-2xl px-4 py-3 text-center text-sm font-semibold transition",o==="vi"?"bg-white text-black":"bg-white/5 text-white/85 hover:bg-white/10"].join(" "),onClick:()=>h(!1),children:r("app.header.languageVi")}),i.jsx(se,{to:k("en"),className:["rounded-2xl px-4 py-3 text-center text-sm font-semibold transition",o==="en"?"bg-white text-black":"bg-white/5 text-white/85 hover:bg-white/10"].join(" "),onClick:()=>h(!1),children:r("app.header.languageEn")})]})]})})]}):null]})}function If({content:e,omitTopMargin:t,reserveMobilePurchaseBar:n,isGuideArt
78icleRoute:o,locale:r}){var F,A,I,B,V,O,L,N,_;const{t:s,i18n:a}=dn(),[l,u]=c.useState(!1),d=un(),h=w=>{if(o)return w==="en"?"/en/blogs":"/blogs";const X=bt(d.pathname);return X==="/doi-ngu-bien-tap"||X==="/editorial-team"?w==="en"?"/en/editorial-team":"/doi-ngu-bien-tap":`${Co(d.pathname,w)}${d.search}${d.hash}`},f=to("terms",r),p=to("privacy",r),m=r==="en"?"Terms and Conditions":"Điều khoản và Điều kiện",y=r==="en"?"Privacy Policy":"Chính sách bảo mật",g=((F=e==null?void 0:e.contactItems)!=null&&F.length?e.contactItems:jf(s)).map(w=>({...w,href:w.kind==="chat"?"https://m.me/104596121562167":w.href,icon:w.kind==="phone"?i.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:i.jsx("path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.79 19.79 0 0 1 2.08 4.18 2 2 0 0 1 4.06 2h3a2 2 0 0 1 2 1.72c.12.86.31 1.7.57 2.5a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.58-1.09a2 2 0 0 1 2.11-.45c.8.26 1.64.45 2.5.57A2 2 0 0 1 22 16.92Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):w.kind==="email"?i.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[i.jsx("path",{d:"M4 6h16v12H4V6Z",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),i.jsx("path",{d:"M4 7l8 6 8-6",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"})]}):w.kind==="chat"?i.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[i.jsx("path",{d:"M21 12a8 8 0 0 1-8 8H7l-4 3V12a8 8 0 0 1 8-8h2a8 8 0 0 1 8 8Z",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),i.jsx("path",{d:"M8 12h8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}):i.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[i.jsx("path",{d:"M12 21s7-5.3 7-12a7 7 0 1 0-14 0c0 6.7 7 12 7 12Z",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),i.jsx("path",{d:"M12 11.5a2.5 2.5 0 1 0 0-5a2.5 2.5 0 0 0 0 5Z",stroke:"currentColor",strokeWidth:"2"})]})})),b=((A=e==null?void 0:e.eyebrow)==null?void 0:A.trim())||s("app.footer.eyebrow"),v=((I=e==null?void 0:e.titleLine1)==null?void 0:I.trim())||s("app.footer.titleLine1"),k=((B=e==null?void 0:e.titleLine2)==null?void 0:B.trim())||s("app.footer.titleLine2");(V=e==null?void 0:e.mapEmbedUrl)!=null&&V.trim();const x=new Date().getFullYear(),C=a.resolvedLanguage==="en"?`© 2021 - ${x} Vietclay. All rights reserved.`:`© 2021 - ${x} Bản quyền thuộc về Vietclay.`,S=((O=e==null?void 0:e.copyright)==null?void 0:O.trim())||"",j=S&&!/^©\s*2021\s*-\s*\d{4}\s+(Bản quyền thuộc về Vietclay\.|Vietclay\.\s+All rights reserved\.)\s*$/u.test(S)?S:C,P=((L=e==null?void 0:e.bctLink)==null?void 0:L.trim())||Pf,E=(N=e==null?void 0:e.bctLogoUrl)!=null&&N.trim()?e.bctLogoUrl.trim():Hr,D=(_=e==null?void 0:e.socialLinks)!=null&&_.length?e.socialLinks:null,W="inline-flex h-10 w-10 items-center justify-center rounded-full border border-white/10 bg-white/5 text-white/70 transition duration-300 hover:-translate-y-0.5 hover:border-[#f2b8a2]/40 hover:bg-white/10 hover:text-[#f2b8a2]";return i.jsxs("footer",{id:"app-footer","data-component":"AppFooter",className:["relative -mx-[calc((100vw-100%)/2)] overflow-hidden bg-[#0b0b0b] text-white dbg-app-footer",t?"mt-0":"mt-20",n?"pb-[calc(5rem+env(safe-area-inset-bottom))] lg:pb-0":""].join(" "),children:[i.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(circle_at_20%_15%,rgba(242,184,162,0.16),transparent_55%),radial-gradient(circle_at_80%_65%,rgba(178,85,56,0.22),transparent_58%)]"}),i.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-black/25 via-black/40 to-black/65"}),i.jsxs("div",{className:"relative container py-12 sm:py-16",children:[i.jsxs("div",{className:"grid gap-10 lg:grid-cols-[minmax(0,1.05fr)_minmax(0,0.95fr)] lg:items-start lg:gap-14",children:[i.jsxs("div",{className:"mx-auto max-w-xl text-center lg:mx-0 lg:text-left",children:[i.jsxs("div",{className:"inline-flex items-center gap-3 text-xs font-bold uppercase tracking-[0.28em] text-primary-light",children:[i.jsx("span",{"aria-hidden":!0,
78className:"h-px w-8 bg-primary/60"}),b]}),i.jsxs("h2",{className:"mt-4 text-3xl font-semibold leading-tight tracking-tight sm:text-4xl",children:[v,i.jsx("span",{className:"mt-1 block bg-gradient-to-r from-white via-[#f2b8a2] to-[#b25538] bg-clip-text text-transparent",children:k})]})]}),i.jsx("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-1",children:g.map(w=>i.jsxs("a",{href:w.href,target:w.href.startsWith("http")?"_blank":void 0,rel:w.href.startsWith("http")?"noreferrer":void 0,className:"vc-interactive group flex items-start gap-3.5 rounded-2xl border border-white/10 bg-white/[0.04] px-4 py-4 backdrop-blur transition duration-300 hover:-translate-y-0.5 hover:border-[#f2b8a2]/30 hover:bg-white/[0.07] hover:shadow-[0_18px_40px_-20px_rgba(242,184,162,0.55)]",children:[i.jsx("span",{className:"mt-0.5 inline-flex h-10 w-10 shrink-0 items-center justify-center rounded-xl bg-[#f2b8a2]/15 text-[#f2b8a2] ring-1 ring-white/10 transition duration-300 group-hover:bg-[#f2b8a2]/25 group-hover:ring-[#f2b8a2]/30",children:w.icon}),i.jsxs("span",{className:"min-w-0",children:[i.jsx("span",{className:"block text-sm font-semibold text-white/90",children:w.title}),i.jsx("span",{className:"mt-1 block text-sm text-white/65 transition group-hover:text-white/85",children:w.value})]})]},`${w.kind}-${w.value}`))})]}),i.jsx("div",{className:"mt-10",children:i.jsxs("div",{className:"relative overflow-hidden rounded-3xl border border-white/10 bg-white/5",children:[i.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(120deg,rgba(242,184,162,0.16),rgba(255,255,255,0.05),rgba(178,85,56,0.18))]"}),i.jsx("div",{className:"pointer-events-none absolute -right-16 -top-16 h-48 w-48 rounded-full bg-[#f2b8a2]/20 blur-3xl"}),i.jsx("div",{className:"pointer-events-none absolute -bottom-20 -left-10 h-52 w-52 rounded-full bg-[#b25538]/20 blur-3xl"}),i.jsxs("div",{className:"relative grid gap-6 p-6 sm:p-8 lg:grid-cols-[1.15fr_0.85fr] lg:items-center lg:gap-10",children:[i.jsxs("div",{children:[i.jsxs("span",{className:"inline-flex items-center gap-2 rounded-full border border-white/15 bg-white/5 px-3 py-1 text-xs font-semibold text-primary-light backdrop-blur",children:[i.jsxs("span",{className:"relative flex h-2 w-2",children:[i.jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-[#f2b8a2] opacity-75"}),i.jsx("span",{className:"relative inline-flex h-2 w-2 rounded-full bg-[#f2b8a2]"})]}),r==="en"?"Vietclay temporarily closed":"Vietclay tạm thời đóng cửa"]}),i.jsx("p",{className:"mt-4 text-xs font-bold uppercase tracking-[0.22em] text-primary-light",children:"Vietclay Studio"}),i.jsx("h3",{className:"mt-2 max-w-2xl text-2xl font-bold tracking-tight text-white sm:text-3xl lg:text-4xl",children:r==="en"?"We're preparing a brand-new studio.":"Vietclay Studio đang chuẩn bị cho một không gian mới."}),i.jsx("p",{className:"mt-4 max-w-2xl text-sm leading-6 text-white/70 sm:text-base",children:r==="en"?"We've closed for a little while to put the finishing touches on a warmer, more inspiring space. Drop your email and we'll be the first to let you know once we set an opening date.":"Tụi mình tạm thời đóng cửa để hoàn thiện studio mới chỉn chu và truyền cảm hứng hơn. Để lại email, Vietclay sẽ gửi bạn thông báo ngay khi có ngày mở cửa chính thức."})]}),i.jsx("div",{className:"rounded-[2rem] border border-white/10 bg-black/20 p-5 shadow-[0_24px_60px_rgba(0,0,0,0.35)] backdrop-blur-xl sm:p-6",children:i.jsx(Nc,{locale:r,label:r==="en"?"Get notified when we reopen":"Nhận thông báo ngày mở cửa",className:"min-h-11 w-full rounded-full bg-primary px-6 text-sm font-bold text-white transition hover:bg-primary/90"})})]})]})}),i.jsx("div",{className:"mt-10 border-t border-white/10 pt-8",children:i.jsxs("div",{className:"flex flex-col items-center gap-6 lg:flex-row lg:items-center lg:justify-between",children:[i.jsxs("div",{className:"flex flex-col items-center gap-2 text-center lg:items-start lg:text-left",children:[i.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-x-3 gap-y-1 text-sm text-white/65 lg:justify-start",children:[i.jsx(se,{to:f,className:"transition hover:text-white/90",children:m}
78),i.jsx("span",{"aria-hidden":!0,className:"text-white/25",children:"•"}),i.jsx(se,{to:p,className:"transition hover:text-white/90",children:y})]}),i.jsx("div",{className:"text-sm text-white/55",children:j})]}),i.jsxs("div",{className:"flex flex-col items-center gap-5 sm:flex-row sm:gap-6",children:[i.jsxs("div",{className:"inline-flex items-center gap-1 rounded-full border border-white/10 bg-white/5 p-1 backdrop-blur",children:[i.jsx(se,{to:h("vi"),className:["rounded-full px-4 py-2 text-xs font-semibold transition",r==="vi"?"bg-white text-black":"text-white/75 hover:text-white hover:bg-white/10"].join(" "),"aria-label":s("app.header.languageVi"),children:"VI"}),i.jsx(se,{to:h("en"),className:["rounded-full px-4 py-2 text-xs font-semibold transition",r==="en"?"bg-white text-black":"text-white/75 hover:text-white hover:bg-white/10"].join(" "),"aria-label":s("app.header.languageEn"),children:"EN"})]}),i.jsx("div",{className:"flex items-center gap-2",children:D?D.map(w=>w.platform==="facebook"?i.jsx("a",{href:w.href,target:w.href.startsWith("http")?"_blank":void 0,rel:w.href.startsWith("http")?"noreferrer":void 0,className:W,"aria-label":"Facebook",children:i.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:i.jsx("path",{d:"M14 8h2V5h-2c-2.2 0-4 1.8-4 4v2H8v3h2v7h3v-7h2.2l.8-3H13V9c0-.6.4-1 1-1Z",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"})})},w.platform):w.platform==="instagram"?i.jsx("a",{href:w.href,target:w.href.startsWith("http")?"_blank":void 0,rel:w.href.startsWith("http")?"noreferrer":void 0,className:W,"aria-label":"Instagram",children:i.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[i.jsx("path",{d:"M7 3h10a4 4 0 0 1 4 4v10a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V7a4 4 0 0 1 4-4Z",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),i.jsx("path",{d:"M12 16a4 4 0 1 0 0-8a4 4 0 0 0 0 8Z",stroke:"currentColor",strokeWidth:"2"}),i.jsx("path",{d:"M17.5 6.5h.01",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})]})},w.platform):i.jsx("a",{href:w.href,target:w.href.startsWith("http")?"_blank":void 0,rel:w.href.startsWith("http")?"noreferrer":void 0,className:W,"aria-label":"TikTok",children:i.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[i.jsx("path",{d:"M14 3v10.2a3.8 3.8 0 1 1-3.3-3.8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),i.jsx("path",{d:"M14 6c1.2 2.2 3 3.4 6 3.5V6.5c-2.4 0-4.2-1.2-6-3.5",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"})]})},w.platform)):i.jsxs(i.Fragment,{children:[i.jsx("button",{type:"button",className:W,"aria-label":"Facebook",children:i.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:i.jsx("path",{d:"M14 8h2V5h-2c-2.2 0-4 1.8-4 4v2H8v3h2v7h3v-7h2.2l.8-3H13V9c0-.6.4-1 1-1Z",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"})})}),i.jsx("button",{type:"button",className:W,"aria-label":"Instagram",children:i.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[i.jsx("path",{d:"M7 3h10a4 4 0 0 1 4 4v10a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V7a4 4 0 0 1 4-4Z",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),i.jsx("path",{d:"M12 16a4 4 0 1 0 0-8a4 4 0 0 0 0 8Z",stroke:"currentColor",strokeWidth:"2"}),i.jsx("path",{d:"M17.5 6.5h.01",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})]})}),i.jsx("button",{type:"button",className:W,"aria-label":"TikTok",children:i.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[i.jsx("path",{d:"M14 3v10.2a3.8 3.8 0 1 1-3.3-3.8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),i.jsx("path",{d:"M14 6c1.2 2.2 3 3.4 6 3.5V6.5c-2.4 0-4.2-1.2-6-3.5",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"})]})})]})}),i.jsx("a",{href:P,target:"_blank",rel:"noreferrer",className:"vc-interactive inline-flex items-center justify-center rounded-2xl border border-white/10 bg-white/5 px-4 py-2.5 backdrop-blur transition hover:border-[#f2b8a2]/30 hover:bg-white/10","aria-label":s("app.footer.bctLabel"),children:i.jsx("img",{src:E??void 0,srcSet:E===Hr?"/brand/bct-optimized.webp 240w":void 0,sizes:"(max-width: 639px) 116px, 127px",alt:s("app.footer.bctLabel"),width:240,height:91,loading:"lazy",className:"h-11 w-auto sm:h-12"})})]})]})})]})]})}function Lf({open:e,onClose:t,content:n}){const{t:o}=dn();return c.useEffect(()=>{if(!e)return;const r=document.body.style.overflow;document.body.style.overflow="hidden";const s=a=>{a.key==="Escape"&&(a.preventDefault(),t())};return window.addEventListener("keydown",s),()=>{document.body.style.overflow=r,window.removeEventListener("keydown",s)}},[t,e]),e?i.jsxs("div",{className:"fixed inset-0 z-[120] flex items-center justify-center p-4 sm:p-6",children:[i.jsx("button",{type:"button","aria-label":o("app.pausePopup.closeAnnouncement"),className:"absolute inset-0 bg-black/55 backdrop-blur-[3px]",onClick:t}),i.jsxs("div",{role:"dialog","aria-modal":"true","aria-labelledby":"pause-popup-title","aria-describedby":"pause-popup-description",className:"relative w-full max-w-[640px] overflow-hidden rounded-[28px] border border-[#
78E4D3C2] bg-[#FFF9F2] p-6 sm:p-8 shadow-[0_24px_80px_rgba(55,32,18,0.35)]",children:[i.jsx("div",{className:"pointer-events-none absolute -top-24 -right-24 h-48 w-48 rounded-full bg-[#D48352]/30 blur-2xl"}),i.jsx("div",{className:"pointer-events-none absolute -bottom-16 -left-20 h-52 w-52 rounded-full bg-[#A86A44]/25 blur-2xl"}),i.jsxs("div",{className:"relative",children:[i.jsx("button",{type:"button",onClick:t,className:"absolute right-0 top-0 inline-flex h-10 w-10 items-center justify-center rounded-full border border-[#C9AE93] bg-white/70 text-[#694B38] transition hover:bg-white","aria-label":o("app.pausePopup.closePopup"),children:i.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:i.jsx("path",{d:"M6 6L18 18M18 6L6 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}),i.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-[#D9BFA6] bg-white/80 px-4 py-2 text-xs font-semibold tracking-[0.16em] text-[#8C6042] uppercase",children:[i.jsx("span",{className:"inline-block h-2 w-2 rounded-full bg-[#C56B3C]"}),n.eyebrow]}),i.jsx("h2",{id:"pause-popup-title",className:"mt-5 max-w-[30ch] text-2xl sm:text-[30px] font-semibold leading-tight text-[#3F2A1E]",children:n.title}),i.jsx("p",{id:"pause-popup-description",className:"mt-4 text-sm sm:text-base leading-7 text-[#5E4433]",children:n.description}),i.jsxs("div",{className:"mt-7 flex items-center gap-3",children:[i.jsx("a",{href:n.ctaHref,target:"_blank",rel:"noreferrer",className:"inline-flex items-center justify-center rounded-full bg-[#A65E36] px-6 py-3 text-sm font-semibold text-white transition hover:bg-[#8F4F2E]",children:n.ctaLabel}),i.jsx("button",{type:"button",onClick:t,className:"inline-flex items-center justify-center rounded-full border border-[#CCB197] px-5 py-3 text-sm font-semibold text-[#6D4A34] transition hover:bg-white/80",children:o("app.pausePopup.later")})]})]})]})]}):null}function Of(){const{t:e}=dn(),t=un(),n=qr(),o=af(t.pathname),r=bt(t.pathname),s=r==="/",a=r==="/blogs",l=r==="/pay"||r.startsWith("/pay/"),u=r.startsWith("/products/"),h=(r.replace(/\/+$/,"")||"/").split("/").filter(Boolean),f=h[0]??"",p=["workshops","courses","studio","blogs","pay","products","dieu-khoan-va-dieu-kien","chinh-sach-bao-mat","terms-and-conditions","privacy-policy","doi-ngu-bien-tap","editorial-team","workshop-gom-ban-xoay","workshop-gom-nan-tay","gio-hang","thanh-toan","dat-hang-thanh-cong","dat-hang-that-bai","login","register","dang-nhap","dang-ky","tai-khoan","account"],m=h.length===1&&!p.includes(f),y=h.length===1&&!["workshops","courses","studio","blogs","pay","products","dieu-khoan-va-dieu-kien","chinh-sach-bao-mat","terms-and-conditions","privacy-policy","doi-ngu-bien-tap","editorial-team","gio-hang","thanh-toan","dat-hang-thanh-cong","dat-hang-that-bai","login","register","dang-nhap","dang-ky","tai-khoan","account"].includes(f),g=c.useSyncExternalStore(uf,dr,dr),b=y&&g.slug===f&&(g.status==="guide"||g.status==="pending"),v="https://cms.vietclay.com".replace(/\/admin\/?$/,"").replace(/\/$/,"")??"",k=!v||typeof window<"u"&&window.location.protocol==="https:"&&/^http:\/\/(localhost|127\.0\.0\.1)(:\d+)?$/i.test(v),[x,C]=c.useState(null),[S,j]=c.useState(null),[P,E]=c.useState(!1),[D,W]=c.useState(Br),[F,A]=c.useState(!1),[I,B]=c.useState(()=>Gr(e)),V=c.useMemo(()=>Gr(e),[e]);c.useEffect(()=>{ft.resolvedLanguage!==o&&ft.changeLanguage(o)},[o]),c.useEffect(()=>{sf(o==="en"?"en":"vi")},[o]);const O=()=>{E(!1),!(typeof window>"u")&&window.sessionStorage.setItem($t,"1")};return c.useLayoutEffect(()=>{var N;(N=t.hash)!=null&&N.startsWith("#")&&t.hash.slice(1)||window.scrollTo({top:0,left:0,behavior:"auto"})},[t.hash,t.pathname]),c.useEffect(()=>{if(!F)return;const L=r.replace(/\/+$/,"")||"/";if(!Ef.has(L)||!D){E(!1),D||window.sessionStorage.removeItem($t);return}if(window.sessionStorage.getItem($t)==="1")return;const _=window.setTimeout(()=>E(!0),420);return()=>window.clearTimeout(_)},[F,D,r]),c.useEffect(()=>{let L=!1;return(async()=>{const _="?populate[header][populate][logo]=*&populate[header][populate][navItems]=*&populate[footer][populate][contactItems]=*&populate[footer][populate][socialLinks]=*&populate[footer][populate][bctLogo]=*",w=[`/api/homepage${_}`,`/api/homepages${_}`];for(const X of cf(o))for(const Z of w)try{const Q=`${Z}&locale=${X}`,te=k?`/.netlify/functions/strapi-proxy?endpoint=${encodeURIComponent(Q)}`:`${v}${Q}`,J=await fetch(te);if(!J.ok)continue;const q=await J.json();if(L)return;const ie=(J.headers.get("x-vietclay-strapi-base-url")??"").replace(/\/$/,"")||v,U=(q==null?void 0:q.data)??null,
78ne=Array.isArray(U)?U[0]??null:U,$=(ne==null?void 0:ne.attributes)??ne??null;if(!$)continue;const me=typeof($==null?void 0:$.pausePopupEnabled)=="boolean"?$.pausePopupEnabled:Br,he=typeof($==null?void 0:$.pausePopupEyebrow)=="string"&&$.pausePopupEyebrow.trim()?$.pausePopupEyebrow.trim():V.eyebrow,ge=typeof($==null?void 0:$.pausePopupTitle)=="string"&&$.pausePopupTitle.trim()?$.pausePopupTitle.trim():V.title,vn=typeof($==null?void 0:$.pausePopupDescription)=="string"&&$.pausePopupDescription.trim()?$.pausePopupDescription.trim():V.description,wn=typeof($==null?void 0:$.pausePopupCtaLabel)=="string"&&$.pausePopupCtaLabel.trim()?$.pausePopupCtaLabel.trim():V.ctaLabel,kn=typeof($==null?void 0:$.pausePopupCtaHref)=="string"&&$.pausePopupCtaHref.trim()?$.pausePopupCtaHref.trim():V.ctaHref,Ee=$==null?void 0:$.header,Ye=Array.isArray(Ee==null?void 0:Ee.navItems)?Ee.navItems:[],Eo=z=>{const ue=typeof(z==null?void 0:z.label)=="string"?z.label.trim():"",je=typeof(z==null?void 0:z.href)=="string"?z.href.trim():"";if(!ue||!je)return null;const st=(Array.isArray(z==null?void 0:z.children)?z.children:[]).map(Eo).filter(Boolean);return st.length?{label:ue,href:je,children:st}:{label:ue,href:je}},ia=Ye.map(Eo).filter(Boolean),G=$==null?void 0:$.footer,jo=(Array.isArray(G==null?void 0:G.contactItems)?G.contactItems:[]).map(z=>{const ue=z==null?void 0:z.kind;if(ue!=="phone"&&ue!=="email"&&ue!=="chat"&&ue!=="address")return null;const je=typeof(z==null?void 0:z.title)=="string"?z.title.trim():"",Cn=typeof(z==null?void 0:z.value)=="string"?z.value.trim():"",st=typeof(z==null?void 0:z.href)=="string"?z.href.trim():"";return!je||!Cn||!st?null:{kind:ue,title:je,value:Cn,href:st}}).filter(Boolean),sa=(Array.isArray(G==null?void 0:G.socialLinks)?G.socialLinks:[]).map(z=>{const ue=z==null?void 0:z.platform;if(ue!=="facebook"&&ue!=="instagram"&&ue!=="tiktok")return null;const je=typeof(z==null?void 0:z.href)=="string"?z.href.trim():"";return je?{platform:ue,href:je}:null}).filter(Boolean);
78C({logoUrl:zr(ie,$r((Ee==null?void 0:Ee.logo)??null))??null,navItems:ia});const Et=typeof(G==null?void 0:G.eyebrow)=="string"?G.eyebrow:null,jt=typeof(G==null?void 0:G.titleLine1)=="string"?G.titleLine1:null,St=typeof(G==null?void 0:G.titleLine2)=="string"?G.titleLine2:null,_t=typeof(G==null?void 0:G.copyright)=="string"?G.copyright:null,aa=o==="en"?jo.map(z=>({...z,title:Sf[z.title]??z.title,value:_f[z.value]??z.value})):jo;j({eyebrow:o==="en"&&Et?zt[Et]??Et:Et,titleLine1:o==="en"&&jt?zt[jt]??jt:jt,titleLine2:o==="en"&&St?zt[St]??St:St,contactItems:aa,mapEmbedUrl:typeof(G==null?void 0:G.mapEmbedUrl)=="string"?G.mapEmbedUrl:null,copyright:o==="en"&&_t?zt[_t]??_t:_t,socialLinks:sa,bctLink:typeof(G==null?void 0:G.bctLink)=="string"?G.bctLink:null,bctLogoUrl:zr(ie,$r((G==null?void 0:G.bctLogo)??null))??null}),me||window.sessionStorage.removeItem($t),W(me),B({eyebrow:he,title:ge,description:vn,ctaLabel:wn,ctaHref:kn}),A(!0);return}catch{if(L)return;continue}L||(C(null),j(null),A(!0))})(),()=>{L=!0}},[o,V,k,v]),c.useEffect(()=>{var w,X;if(((X=(w=window.matchMedia)==null?void 0:w.call(window,"(prefers-reduced-motion: reduce)"))==null?void 0:X.matches)??!1)return;const N=Array.from(document.querySelectorAll(".vc-reveal"));N.forEach(Z=>{Z.dataset.vcReveal||(Z.dataset.vcReveal="out"),Z.classList.contains("vc-stagger")&&Array.from(Z.children).forEach((Q,te)=>{Q instanceof HTMLElement&&Q.style.setProperty("--vc-index",String(te))})});const _=new IntersectionObserver(Z=>{Z.forEach(Q=>{if(!Q.isIntersecting)return;const te=Q.target;te.dataset.vcReveal="in",_.unobserve(te)})},{threshold:.14,rootMargin:"0px 0px -10% 0px"});return N.forEach(Z=>_.observe(Z)),()=>_.disconnect()},[t.pathname]),c.useEffect(()=>{const L=N=>{var J,q,oe;if(N.button!==0||N.metaKey||N.ctrlKey||N.shiftKey||N.altKey)return;const _=N.target,w=(J=_==null?void 0:_.closest)==null?void 0:J.call(_,"a");if(!w)return;const X=w.getAttribute("href");if(!X||!X.startsWith("#")||X==="#")return;const Z=decodeURIComponent(X.slice(1));if(!Z)return;const Q=document.getElementById(Z);if(!Q)return;N.preventDefault();const te=`#${encodeURIComponent(Z)}`;if(t.hash!==te)n({pathname:t.pathname,search:t.search,hash:te});else{const ie=((oe=(q=window.matchMedia)==null?void 0:q.call(window,"(prefers-reduced-motion: reduce)"))==null?void 0:oe.matches)??!1,U=ie?"auto":"smooth",ne=document.querySelector("header"),$=ne?window.getComputedStyle(ne):null,me=ne&&$&&($.position==="fixed"||$.position==="sticky")?ne.getBoundingClientRect().height+12:12,he=Q.getBoundingClientRect().top+window.scrollY-me;window.scrollTo({top:Math.max(0,he),behavior:U}),ie||(Q.classList.remove("vc-anchor-flash"),Q.offsetWidth,Q.classList.add("vc-anchor-flash"),window.setTimeout(()=>Q.classList.remove("vc-anchor-flash"),950));const ge=Q.hasAttribute("tabindex");ge||Q.setAttribute("tabindex","-1");try{Q.focus({preventScroll:!0})}catch{Q.focus()}window.setTimeout(()=>{ge||Q.removeAttribute("tabindex")},1e3)}};return document.addEventListener("click",L,!0),()=>document.removeEventListener("click",L,!0)},[t.hash,t.pathname,t.search,n]),c.useEffect(()=>{var ie,U,ne;const L=((U=(ie=window.matchMedia)==null?void 0:ie.call(window,"(prefers-reduced-motion: reduce)"))==null?void 0:U.matches)??!1,N=(ne=t.hash)!=null&&ne.startsWith("#")?t.hash.slice(1):"",_=N?decodeURIComponent(N):"";if(!_)return;const w=document.getElementById(_);if(!w)return;const X=L?"auto":"smooth",Z=document.querySelector("header"),Q=Z?window.getComputedStyle(Z):null,te=Z&&Q&&(Q.position==="fixed"||Q.position==="sticky")?Z.getBoundingClientRect().height+12:12,J=w.getBoundingClientRect().top+window.scrollY-te;window.scrollTo({top:Math.max(0,J),behavior:X}),L||(w.classList.remove("vc-anchor-flash"),w.offsetWidth,w.classList.add("vc-anchor-flash"));const q=w.hasAttribute("tabindex");q||w.setAttribute("tabindex","-1");try{w.focus({preventScroll:!0})}catch{w.focus()}const oe=window.setTimeout(()=>{L||w.classList.remove("vc-anchor-flash"),q||w.removeAttribute("tabindex")},950);return()=>{window.clearTimeout(oe),w.classList.remove("vc-anchor-flash"),q||w.removeAttribute("tabindex")}},[t.pathname,t.hash]),i.jsxs(Ea,{children:[i.jsx(Mf,{isOverlay:!b&&!a,isGuideArt
78icleRoute:b,content:x,locale:o}),i.jsx("main",{className:s?"container pt-0 pb-8":l?"container pt-16 md:pt-20 pb-0":u||y||a?"pt-0 pb-0":"container pt-20 md:pt-24 pb-8",style:m||u||y||a?{maxWidth:"100%",paddingLeft:0,paddingRight:0}:void 0,children:i.jsx(c.Suspense,{fallback:i.jsx(Tf,{}),children:i.jsxs(la,{children:[i.jsx(R,{path:"/",element:i.jsx(hr,{locale:o})}),i.jsx(R,{path:"/en",element:i.jsx(hr,{locale:o})}),i.jsx(R,{path:"/dieu-khoan-va-dieu-kien",element:i.jsx(Bt,{pageType:"terms",locale:"vi"})}),i.jsx(R,{path:"/terms-and-conditions",element:i.jsx(Bt,{pageType:"terms",locale:"en"})}),i.jsx(R,{path:"/chinh-sach-bao-mat",element:i.jsx(Bt,{pageType:"privacy",locale:"vi"})}),i.jsx(R,{path:"/privacy-policy",element:i.jsx(Bt,{pageType:"privacy",locale:"en"})}),i.jsx(R,{path:"/doi-ngu-bien-tap",element:i.jsx(Er,{locale:"vi"})}),i.jsx(R,{path:"/en/editorial-team",element:i.jsx(Er,{locale:"en"})}),i.jsx(R,{path:"/workshops",element:i.jsx(fr,{})}),i.jsx(R,{path:"/en/workshops",element:i.jsx(fr,{})}),i.jsx(R,{path:"/workshop-lam-gom-nan-tay",element:i.jsx(yr,{locale:"vi"})}),i.jsx(R,{path:"/en/handbuilding-pottery-workshop",element:i.jsx(yr,{locale:"en"})}),i.jsx(R,{path:"/en/workshop-lam-gom-nan-tay",element:i.jsx(Se,{to:"/en/handbuilding-pottery-workshop",replace:!0})}),i.jsx(R,{path:"/workshops/workshop-lam-gom-nan-tay",element:i.jsx(Se,{to:"/workshop-lam-gom-nan-tay",replace:!0})}),i.jsx(R,{path:"/workshop-gom-ban-xoay",element:i.jsx(gr,{locale:"vi"})}),i.jsx(R,{path:"/en/pottery-wheel-workshop",element:i.jsx(gr,{locale:"en"})}),i.jsx(R,{path:"/workshops/workshop-gom-ban-xoay",element:i.jsx(Se,{to:"/workshop-gom-ban-xoay",replace:!0})}),i.jsx(R,{path:"/en/workshops/workshop-gom-ban-xoay",element:i.jsx(Se,{to:"/en/pottery-wheel-workshop",replace:!0})}),i.jsx(R,{path:"/en/workshop-gom-ban-xoay",element:i.jsx(Se,{to:"/en/pottery-wheel-workshop",replace:!0})}),i.jsx(R,{path:"/workshops/:slug",element:i.jsx(pr,{})}),i.jsx(R,{path:"/en/workshops/:slug",element:i.jsx(pr,{})}),i.jsx(R,{path:"/courses",element:i.jsx(xr,{})}),i.jsx(R,{path:"/en/courses",element:i.jsx(xr,{})}),i.jsx(R,{path:"/khoa-hoc-gom-can-ban",element:i.jsx(wr,{})}),i.jsx(R,{path:"/en/basic-pottery-course",element:i.jsx(wr,{})}),i.jsx(R,{path:"/khoa-hoc-gom-can-ban-vi",element:i.jsx(Se,{to:"/khoa-hoc-gom-can-ban",replace:!0})}),i.jsx(R,{path:"/studio",element:i.jsx(Dt,{})}),i.jsx(R,{path:"/en/studio",element:i.jsx(Dt,{})}),i.jsx(R,{path:"/thue-studio-lam-gom",element:i.jsx(Dt,{})}),i.jsx(R,{path:"/en/thue-studio-lam-gom",element:i.jsx(Se,{to:"/en/studio-rental",replace:!0})}),i.jsx(R,{path:"/en/studio-rental",element:i.jsx(Dt,{})}),i.jsx(R,{path:"/pay",element:i.jsx(jr,{})}),i.jsx(R,{path:"/en/pay",element:i.jsx(jr,{})}),i.jsx(R,{path:"/pay/test",element:i.jsx(Sr,{})}),i.jsx(R,{path:"/en/pay/test",element:i.jsx(Sr,{})}),i.jsx(R,{path:"/pay/success",element:i.jsx(_r,{})}),i.jsx(R,{path:"/en/pay/success",element:i.jsx(_r,{})}),i.jsx(R,{path:"/pay/cancelled",element:i.jsx(Rr,{})}),i.jsx(R,{path:"/en/pay/cancelled",element:i.jsx(Rr,{})}),i.jsx(R,{path:"/blog",element:i.jsx(Se,{to:"/blogs",replace:!0})}),i.jsx(R,{path:"/en/blog",element:i.jsx(Se,{to:"/en/blogs",replace:!0})}),i.jsx(R,{path:"/blogs",element:i.jsx(Vr,{})}),i.jsx(R,{path:"/en/blogs",element:i.jsx(Vr,{})}),i.jsx(R,{path:"/login",element:i.jsx(Vt,{})}),i.jsx(R,{path:"/en/login",element:i.jsx(Vt,{})}),i.jsx(R,{path:"/dang-nhap",element:i.jsx(Vt,{})}),i.jsx(R,{path:"/en/dang-nhap",element:i.jsx(Vt,{})}),i.jsx(R,{path:"/forgot-password",element:i.jsx(Wt,{})}),i.jsx(R,{path:"/en/forgot-password",element:i.jsx(Wt,{})}),i.jsx(R,{path:"/quen-mat-khau",element:i.jsx(Wt,{})}),i.jsx(R,{path:"/en/quen-mat-khau",element:i.jsx(Wt,{})}),i.jsx(R,{path:"/register",element:i.jsx(Ft,{})}),i.jsx(R,{path:"/en/register",element:i.jsx(Ft,{})}),i.jsx(R,{path:"/dang-ky",element:i.jsx(Ft,{})}),i.jsx(R,{path:"/en/dang-ky",element:i.jsx(Ft,{})}),i.jsx(R,{path:"/auth/callback",element:i.jsx(Fr,{})}),i.jsx(R,{path:"/en/auth/callback",element:i.jsx(Fr,{})}),i.jsx(R,{path:"/auth/reset-password",element:i.jsx(Wr,{})}),i.jsx(R,{path:"/en/auth/reset-password",element:i.jsx(Wr,{})}),i.jsxs(R,{path:"/tai-khoan",element:i.jsx(Fn,{}),children:[i.jsx(R,{path:"ho-so",element:i.jsx(Wn,{})}),i.jsx(R,{path:"don-hang",element:i.jsx($n,{})}),i.jsx(R,{path:"don-hang/:id",element:i.jsx(zn,{})}),i.jsx(R,{path:"dia-chi",element:i.jsx(Bn,{})}),i.jsx(R,{path:"uu-dai",element:i.jsx(Un,{})})]}),i.jsxs(R,{path:"/account",element:i.jsx(Fn,{}),children:[i.jsx(R,{path:"profile",element:i.jsx(Wn,{})}),i.jsx(R,{path:"orders",element:i.jsx($n,{})}),i.jsx(R,{path:"orders/:id",element:i.jsx(zn,{})}),i.jsx(R,{path:"addresses",element:i.jsx(Bn,{})}),i.jsx(R,{path:"offers",element:i.jsx(Un,{})})]}),i.jsxs(R,{path:"/en/account",element:i.jsx(Fn,{}),children:[i.jsx(R,{path:"profile",element:i.jsx(Wn,{})}),i.jsx(R,{path:"orders",element:i.jsx($n,{})}),i.jsx(R,{path:"orders/:id",element:i.jsx(zn,{})}),i.jsx(R,{path:"addresses",element:i.jsx(Bn,{})}),i.jsx(R,{path:"offers",element:i.jsx(Un,{})})]}),i.jsx(R,{path:"/products/:productSlug",element:i.jsx(Pr,{})}),i.jsx(R,{path:"/en/products/:productSlug",element:i.jsx(Pr,{})}),i.jsx(R,{path:"/gio-hang",element:i.jsx(Ar,{})}),i.jsx(R,{path:"/en/gio-hang",element:i.jsx(Ar,{})}),i.jsx(R,{path:"/thanh-toan",element:i.jsx(Nr,{})}),i.jsx(R,{path:"/en/thanh-toan",element:i.jsx(Nr,{})}),i.jsx(R,{path:"/dat-hang-thanh-cong",element:i.jsx(Tr,{})}),i.jsx(R,{path:"/en/dat-hang-thanh-cong",element:i.jsx(Tr,{})}),i.jsx(R,{path:"/dat-hang-that-bai",element:i.jsx(Mr,{})}),i.jsx(R,{path:"/en/dat-hang-that-bai",element:i.jsx(Mr,{})}),i.jsx(R,{path:"/en/:categorySlug",element:i.jsx(Or,{})}),i.jsx(R,{path:"/:categorySlug",element:i.jsx(Or,{})}),i.jsx(R,{path:"*",element:i.jsx(Cf,{})})]})})}),i.jsx(If,{content:S,omitTopMargin:l||y||a||u,reserveMobilePurchaseBar:u,isGuideArt
78icleRoute:b,locale:o}),i.jsx(Lf,{open:P,onClose:O,content:I})]})}/**
79 * @license lucide-react v0.468.0 - ISC
80 *
81 * This source code is licensed under the ISC license.
82 * See the LICENSE file in the root directory of this source tree.
83 */const Df=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),oa=(...e)=>e.filter((t,n,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===n).join(" ").trim();/**
84 * @license lucide-react v0.468.0 - ISC
85 *
86 * This source code is licensed under the ISC license.
87 * See the LICENSE file in the root directory of this source tree.
88 */var Vf={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
89 * @license lucide-react v0.468.0 - ISC
90 *
91 * This source code is licensed under the ISC license.
92 * See the LICENSE file in the root directory of this source tree.
93 */const Ff=c.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:o,className:r="",children:s,iconNode:a,...l},u)=>c.createElement("svg",{ref:u,...Vf,width:t,height:t,stroke:e,strokeWidth:o?Number(n)*24/Number(t):n,className:oa("lucide",r),...l},[...a.map(([d,h])=>c.createElement(d,h)),...Array.isArray(s)?s:[s]]));/**
94 * @license lucide-react v0.468.0 - ISC
95 *
96 * This source code is licensed under the ISC license.
97 * See the LICENSE file in the root directory of this source tree.
98 */const Wf=(e,t)=>{const n=c.forwardRef(({className:o,...r},s)=>c.createElement(Ff,{ref:s,iconNode:t,className:oa(`lucide-${Df(e)}`,o),...r}));return n.displayName=`${e}`,n};/**
99 * @license lucide-react v0.468.0 - ISC
100 *
101 * This source code is licensed under the ISC license.
102 * See the LICENSE file in the root directory of this source tree.
103 */const Bf=Wf("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]),$f="https://m.me/104596121562167",zf=new Set(["/studio","/en/studio","/thue-studio-lam-gom","/en/studio-rental"]);function Uf(){const{pathname:e}=un(),t=e==="/en"||e.startsWith("/en/"),n=zf.has(e.replace(/\/+$/,"")||"/"),o=e.includes("/products/");return i.jsx("a",{href:$f,target:"_blank",rel:"noopener noreferrer","aria-label":t?"Chat with Vietclay on Facebook Messenger":"Nhắn tin với Vietclay qua Facebook Messenger",className:nt("fixed z-[70] inline-flex h-14 w-14 items-center justify-center rounded-2xl bg-[#b25538] text-white shadow-[0_14px_34px_rgba(99,43,27,0.32)] transition-[bottom,transform,box-shadow] duration-300 hover:-translate-y-1 hover:shadow-[0_18px_42px_rgba(99,43,27,0.38)] focus:outline-none focus-visible:ring-2 focus-visible:ring-[#b25538] focus-visible:ring-offset-4 active:scale-95 sm:h-16 sm:w-16",n&&"max-md:hidden",o&&"vc-messenger-product-detail"),style:{bottom:"var(--vc-messenger-bubble-bottom, calc(env(safe-area-inset-bottom) + 1.25rem))",right:"var(--vc-messenger-bubble-right, 1.25rem)"},children:i.jsx(Bf,{className:"h-7 w-7 sm:h-8 sm:w-8",strokeWidth:2.1,"aria-hidden":"true"})})}const ra="vietclay_analytics_consent",Hf=/(?:^|_)(?:email|phone|name|content|body|text|message|address|full_name)(?:_|$)/i,Gf=e=>/^GTM-[A-Z0-9]+$/.test((e==null?void 0:e.trim())??"");function qf(e){return Object.fromEntries(Object.entries(e).filter(([t])=>!Hf.test(t)))}function Kf(e,t={}){var r;if(typeof window>"u")return;const n={event:e,...qf(t)};(r=window.dataLayer)==null||r.push(n),window.dispatchEvent(new CustomEvent("vietclay:analytics",{detail:n}))}function Yf(){if(typeof window>"u")return null;const e=window.localStorage.getItem(ra);return e==="granted"||e==="denied"?e:null}function Xf(e){var n;if(typeof window>"u")return;window.localStorage.setItem(ra,e);const t=window;(n=t.gtag)==null||n.call(t,"consent","update",{analytics_storage:e,ad_storage:"denied",ad_user_data:"denied",ad_personalization:"denied"}),Kf("analytics_consent_update",{analytics_consent:e})}function Zf(){const e="GTM-NRNFGV6Q".trim(),[t,n]=c.useState(()=>Yf());if(!Gf(e)||t)return null;const o=window.location.pathname==="/en"||window.location.pathname.startsWith("/en/"),r=s=>{Xf(s),n(s)};return i.jsx("aside",{"aria-label":o?"Analytics preference":"Tùy chọn phân tích",className:"fixed inset-x-0 bottom-0 z-[80] border-t border-border bg-white px-4 py-3 shadow-[0_-8px_24px_rgba(45,41,38,0.12)]",children:i.jsxs("div",{className:"mx-auto flex max-w-5xl flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[i.jsxs("p",{className:"m-0 max-w-2xl text-sm leading-6 text-muted-foreground",children:[o?"Vietclay uses privacy-safe analytics to understand page usage. Advertising storage remains disabled.":"Vietclay dùng dữ liệu phân tích không chứa thông tin liên hệ để hiểu cách website được sử dụng. Lưu trữ quảng cáo luôn tắt."," ",i.jsx(se,{to:o?"/privacy-policy":"/chinh-sach-bao-mat",className:"font-semibold text-primary underline underline-offset-4",children:o?"Privacy policy":"Chính sách bảo mật"})]}),i.jsxs("div",{className:"flex shrink-0 flex-wrap gap-2",children:[i.jsx("button",{type:"button",className:"border border-border bg-white px-4 py-2 text-sm font-semibold text-foreground hover:bg-muted",onClick:()=>r("denied"),children:o?"Necessary only":"Chỉ cần thiết"}),i.jsx("button",{type:"button",className:"bg-primary px-4 py-2 text-sm font-semibold text-primary-foreground hover:bg-primary/90",onClick:()=>r("granted"),children:o?"Allow analytics":"Cho phép phân tích"})]})]})})}const ae=document.getElementById("root"),Qf=window.location.pathname==="/en"||window.location.pathname.startsWith("/en/")?"en":"vi",Jf=ft.changeLanguage(Qf),Ie=i.jsx(Le.StrictMode,{children:i.jsxs(ua,{future:{v7_startTransition:!0,v7_relativeSplatPath:!0},children:[i.jsx(nf,{children:i.jsx(Of,{})}),i.jsx(Uf,{}),i.jsx(Zf,{})]})}),ep=async()=>{var e,t;
103if(await Jf,ae.dataset.prerendered==="guide-listing"){const n=document.getElementById("guide-listing-snapshot");if(n!=null&&n.textContent)try{const o=JSON.parse(n.textContent);await Vn(o.listing,o.categories)}catch{await Vn()}else await Vn();$e(ae,Ie);return}if(ae.dataset.prerendered==="guide-article"){const n=document.getElementById("guide-article-snapshot");if(n!=null&&n.textContent)try{const o=JSON.parse(n.textContent),r=((t=(e=o.bundle)==null?void 0:e.article)==null?void 0:t.slug)??"";o.bundle&&r&&await Lr(r,o.bundle)}catch{}await Lr(),$e(ae,Ie);return}if(ae.dataset.prerendered==="workshop-handbuilding"){await pf(),$e(ae,Ie);return}if(ae.dataset.prerendered==="workshop-wheel"){await hf(),$e(ae,Ie);return}if(ae.dataset.prerendered==="basic-pottery-course"){await gf(),$e(ae,Ie);return}if(ae.dataset.prerendered==="studio-rental"){await yf(),$e(ae,Ie);return}if(ae.dataset.prerendered==="editorial-profile"){await vf(),$e(ae,Ie);return}da(ae).render(Ie)};ep();export{ef as A,Ut as B,to as C,Qh as D,Fa as E,gi as I,ba as P,Nc as S,cp as a,lp as b,dp as c,hp as d,af as e,Wf as f,cf as g,sf as h,nt as i,Qr as j,va as k,ve as l,Ra as m,Zr as n,of as o,Jh as p,Hs as q,up as r,ee as s,Kf as t,ap as u,Kt as v,lf as w,Co as x,fp as y,sp as z};

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.