1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,19449,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(22016),s=e.i(57688),i=e.i(18566),a=e.i(2344),o=e.i(76293),l=e.i(68711);let c=({locale:e,currentLocale:r,onSelect:s})=>{let{mouse:i,handlers:a}=function(){let[e,t]=(0,n.useState)({x:0,y:0,active:!1});return{mouse:e,handlers:{onMouseMove:(0,n.useCallback)(e=>{let n=e.currentTarget.getBoundingClientRect();t({x:e.clientX-n.left,y:e.clientY-n.top,active:!0})},[]),onMouseLeave:(0,n.useCallback)(()=>t(e=>({...e,active:!1})),[])}}}(),o=e===r;return(0,t.jsxs)("button",{role:"option","aria-selected":o,onClick:()=>s(e),className:`group relative flex w-full items-center gap-3 overflow-hidden rounded-lg px-3 py-2.5 text-left font-[family-name:var(--font-geist-mono)] text-[14px] font-medium transition-colors ${o?"bg-white/[0.07] text-white hover:bg-white/[0.1]":"text-white/70 hover:bg-white/[0.05] hover:text-white"}`,...a,children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute inset-0 pointer-events-none rounded-[inherit]",style:{backgroundImage:"linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px)",backgroundSize:"14px 14px",opacity:+!!i.active,WebkitMaskImage:`radial-gradient(circle 52px at ${i.x}px ${i.y}px, black 0%, transparent 100%)`,maskImage:`radial-gradient(circle 52px at ${i.x}px ${i.y}px, black 0%, transparent 100%)`}}),(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute inset-0 pointer-events-none rounded-[inherit]",style:{background:`radial-gradient(circle 80px at ${i.x}px ${i.y}px, rgba(114,232,87,0.09), transparent 70%)`,opacity:+!!i.active,transition:"opacity 0.2s"}}),(0,t.jsx)("span",{className:"relative flex h-4 w-4 items-center justify-center",children:o&&(0,t.jsx)("svg",{"aria-hidden":"true",className:"h-3.5 w-3.5",fill:"currentColor",viewBox:"0 0 20 20",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})}),(0,t.jsx)("span",{className:"relative",children:l.localeNames[e]})]})},d=({currentLocale:e})=>{let[r,s]=(0,n.useState)(!1),d=(0,n.useRef)(null),u=(0,n.useRef)(null),h=(0,i.useRouter)(),p=(0,n.useCallback)(()=>{d.current&&clearTimeout(d.current),r||window.dispatchEvent(new Event("waffo:language-menu-open")),s(!0)},[r]),x=(0,n.useCallback)(()=>{d.current=setTimeout(()=>s(!1),120)},[]);(0,n.useEffect)(()=>{if(!r)return;let e=e=>{u.current?.contains(e.target)||s(!1)},t=e=>{"Escape"===e.key&&s(!1)};return document.addEventListener("pointerdown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("pointerdown",e),document.removeEventListener("keydown",t)}},[r]),(0,n.useEffect)(()=>()=>{d.current&&clearTimeout(d.current)},[]);let m=e=>{s(!1),(0,o.rememberLanguageChoice)(e),h.push((0,a.switchLocalePath)(window.location.pathname,e)+window.location.search+window.location.hash)};return(0,t.jsxs)("div",{className:"relative h-[64px] flex items-center",ref:u,onPointerEnter:e=>{"mouse"===e.pointerType&&d.current&&clearTimeout(d.current)},onPointerLeave:e=>{"mouse"===e.pointerType&&x()},children:[(0,t.jsxs)("button",{"aria-expanded":r,"aria-haspopup":"listbox",onClick:()=>{d.current&&clearTimeout(d.current),r?s(!1):p()},onKeyDown:e=>{"Escape"===e.key&&s(!1)},className:"flex items-center gap-2 rounded-full px-3 py-2 text-[14px] font-medium text-white/80 hover:text-white transition-all duration-200 font-[family-name:var(--font-geist-mono)] hover:bg-white/5",children:[(0,t.jsxs)("svg",{"aria-hidden":"true",className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12 21a9 9 0 100-18 9 9 0 000 18z"}),(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M3.6 9h16.8M3.6 15h16.8"}),(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12 3a15.3 15.3 0 014 9 15.3 15.3 0 01-4 9 15.3 15.3 0 01-4-9 15.3 15.3 0 014-9z"})]}),(0,t.jsx)("span",{children:l.localeNames[e]}),(0,t.jsx)("svg",{"aria-hidden":"true",className:`w-3 h-3 transition-transform duration-200 ${r?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),r&&(0,t.jsx)("div",{role:"listbox",className:"absolute left-0 lg:left-auto lg:right-0 top-full z-50 w-[180px] overflow-hidden rounded-xl py-1.5 px-1 flex flex-col gap-1 backdrop-blur-xl",style:{background:"rgba(10, 10, 10, 0.98)",border:"1px solid rgba(255, 255, 255, 0.1)",boxShadow:"0 24px 48px rgba(0,0,0,0.5)"},children:l.i18n.locales.map(n=>(0,t.jsx)(c,{locale:n,currentLocale:e,onSelect:m},n))})]})};function u({children:e,href:n,onClick:r,className:s=""}){let i=`shiny-cta ${s}`;return n?(0,t.jsx)("a",{href:n,className:i,children:(0,t.jsx)("span",{children:e})}):(0,t.jsx)("button",{className:i,onClick:r,children:(0,t.jsx)("span",{children:e})})}var h=e.i(17698);let p={en:"About",zh:"å
³äºæä»¬",ja:"ä¼ç¤¾æ¦è¦"},x=[{key:"mor",icon:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z",type:"internal",path:"/features/mor"},{key:"billing",icon:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15",type:"internal",path:"/features/billing-subscription"},{key:"portal",icon:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z",type:"internal",path:"/features/portal"}],m=[{key:"ai",icon:"M13 10V3L4 14h7v7l9-11h-7z",type:"internal",path:"/features/ai-integration"},{key:"openclaw",icon:"M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4",type:"internal",path:"/features/plugin"}],f={mor:{en:"MoR",zh:"MoR",ja:"MoR"},billing:{en:"Billing & Subscription",zh:"计费ä¸è®¢é
",ja:"è«æ±ã¨ãµãã¹ã¯"},portal:{en:"Customer Portal",zh:"æ¶è´¹è
鍿·",ja:"ã«ã¹ã¿ãã¼ãã¼ã¿ã«"},ai:{en:"AI Integration",zh:"AI éæ",ja:"AI çµ±å"},openclaw:{en:"Openclaw / Hermes Plugin",zh:"Openclaw / Hermes æä»¶",ja:"Openclaw / Hermes ãã©ã°ã¤ã³"}},g={mor:{en:"Tax, compliance & direct payouts",zh:"å
¨çç¨å¡åè§ä¸ç´æ¥åºæ¬¾",ja:"ç¨åã
1»ã³ã³ãã©ã¤ã¢ã³ã¹ã»ç´æ¥å
¥é"},billing:{en:"Recurring billing, trials & upgrades",zh:"订é
计费ãè¯ç¨ä¸å级",ja:"ç¶ç¶èª²éã»ãã©ã¤ã¢ã«ã»ãã©ã³å¤æ´"},portal:{en:"Self-service portal for your customers",zh:"é¢åç»ç«¯å®¢æ·çèªå©é¨æ·",ja:"顧客åãã»ã«ããµã¼ãã¹ãã¼ã¿ã«"},ai:{en:"Hook AI agents into your billing",zh:"ç¨ AI agent éææ¥å
¥è®¡è´¹ç³»ç»",ja:"AI ã¨ã¼ã¸ã§ã³ã飿ºã§æ±ºæ¸ã·ã¹ãã ã«æ¥ç¶"},openclaw:{en:"No-code options",zh:"é¶ä»£ç æ¥å
¥",ja:"ãã¼ã³ã¼ã飿º"}},v={en:"PLATFORM",zh:"å¹³å°",ja:"ãã©ãããã©ã¼ã "},y={en:"AI-NATIVE",zh:"AI åç",ja:"AI ãã¤ãã£ã"},b=(e,t,n)=>{if("placeholder"===e.type)return"#";if("external"===e.type){let n="en"===t?"https://docs.waffo.ai":`https://docs.waffo.ai/${t}`;return e.path?`${n}${e.path}`:n}return`${n}${e.path}`},j=[{key:"introduction",icon:"M12 6.042A8.967 8.967 0 006 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 016 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 016-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0018 18a8.967 8.967 0 00-6 2.292m0-14.25v14.25",type:"docs",path:""},{key:"quickstart",icon:"M13 10V3L4 14h7v7l9-11h-7z",type:"docs",path:"/quickstart"},{key:"apiReference",icon:"M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4",type:"docs",path:"/api-reference/introduction"}],k=[{key:"products",icon:"M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4",type:"docs",path:"/features/products"},{key:"subscriptions",icon:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15",type:"docs",path:"/features/subscriptions"},{key:"checkout",icon:"M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 100 4 2 2 0 000-4z",type:"docs",path:"/checkout/customization"}],w={introduction:{en:"Introduction",zh:"ä»ç»",ja:"ç´¹ä»"},quickstart:{en:"Quickstart",zh:"å¿«éå¼å§",ja:"ã¯ã¤ãã¯ã¹ã¿ã¼ã"},apiReference:{en:"API Reference",zh:"API åè",ja:"API ãªãã¡ã¬ã³ã¹"},products:{en:"Products",zh:"产å",ja:"ãããã¯ã"},subscriptions:{en:"Subscriptions",zh:"订é
",ja:"ãµãã¹ã¯ãªãã·ã§ã³"},checkout:{en:"Checkout",zh:"æ¶é¶å°",ja:"ãã§ãã¯ã¢ã¦ã"}},N={introduction:{en:"Learn what Waffo Pancake is",zh:"äºè§£ Waffo Pancake",ja:"Waffo Pancake ã«ã¤ãã¦"},quickstart:{en:"Integrate with AI",zh:"ä½¿ç¨ AI å·¥å
· 5 åééæ",ja:"AI ã§çµ±åãã"},apiReference:{en:"Complete API documentation",zh:"宿´ API ææ¡£",ja:"å®å
¨ãª API ããã¥ã¡ã³ã"},products:{en:"Billing object for checkout, tax & reporting",zh:"ç¨äºç»è´¦ãç¨å¡ä¸æ¥è¡¨ç计费对象",ja:"決æ¸ã»ç¨åã»ã¬ãã¼ãç¨ã®èª²éãªãã¸ã§ã¯ã"},subscriptions:{en:"Lifecycle, renewals & plan changes",zh:"çå½å¨æãç»è´¹ä¸æ¹æ¡åæ´",ja:"ã©ã¤ããµã¤ã¯ã«ã»æ´æ°ã»ãã©ã³å¤æ´"},checkout:{en:"Customize the checkout experience",zh:"èªå®ä¹ç»è´¦ä½éª",ja:"決æ¸ä½é¨ã®ã«ã¹ã¿ãã¤ãº"}},_={en:"GET STARTED",zh:"å¿«éå¼å§",ja:"ã¯ããã«"},S={en:"FEATURES",zh:"åè½",ja:"æ©è½"},C=(e,t,n)=>{if("placeholder"===e.type)return"#";if("internal"===e.type)return`${n}/${e.path}`;let r="en"===t?"https://docs.waffo.ai":`https://docs.waffo.ai/${t}`;return e.path?`${r}${e.path}`:r};function z(){let[e,t]=(0,n.useState)({x:0,y:0,active:!1});return{mouse:e,handlers:{onMouseMove:(0,n.useCallback)(e=>{let n=e.currentTarget.getBoundingClientRect();t({x:e.clientX-n.left,y:e.clientY-n.top,active:!0})},[]),onMouseLeave:(0,n.useCallback)(()=>t(e=>({...e,active:!1})),[])}}}let L=({x:e,y:n,active:r})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute inset-0 pointer-events-none rounded-[inherit]",style:{backgroundImage:"linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px)",backgroundSize:"14px 14px",opacity:+!!r,WebkitMaskImage:`radial-gradient(circle 52px at ${e}px ${n}px, black 0%, transparent 100%)`,maskImage:`radial-gradient(circle 52px at ${e}px ${n}px, black 0%, transparent 100%)`}}
1),(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute inset-0 pointer-events-none rounded-[inherit]",style:{background:`radial-gradient(circle 80px at ${e}px ${n}px, rgba(114,232,87,0.09), transparent 70%)`,opacity:+!!r,transition:"opacity 0.2s"}})]}),R=({item:e,locale:n,homeUrl:s,onClose:i})=>{let{mouse:a,handlers:o}=z(),l=f[e.key]?.[n]||f[e.key]?.en,c=g[e.key]?.[n]||g[e.key]?.en,d="placeholder"===e.type,u=`group relative flex items-center gap-3 px-3 py-3 rounded-lg transition-colors overflow-hidden ${d?"opacity-50 cursor-default":"hover:bg-white/[0.05]"}`,h=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(L,{x:a.x,y:a.y,active:a.active}),(0,t.jsx)("div",{className:"relative w-9 h-9 rounded-lg flex items-center justify-center shrink-0 transition-colors",style:{background:"rgba(255, 255, 255, 0.04)",border:"1px solid rgba(255, 255, 255, 0.06)"},children:(0,t.jsx)("svg",{className:`w-[17px] h-[17px] text-white/30 transition-colors ${d?"":"group-hover:text-white"}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:e.icon})})}),(0,t.jsxs)("div",{className:"relative min-w-0 flex-1",children:[(0,t.jsx)("span",{className:`block text-white text-[14px] font-semibold leading-tight transition-colors truncate ${d?"":"group-hover:text-white"}`,children:l}),c&&(0,t.jsx)("span",{className:"block text-white/40 text-[12px] mt-0.5 leading-snug break-words",children:c})]})]});return d?(0,t.jsx)("div",{className:u,"aria-disabled":"true",...o,children:h}):"internal"===e.type?(0,t.jsx)(r.default,{href:b(e,n,s),onClick:i,className:u,...o,children:h}):(0,t.jsx)("a",{href:b(e,n,s),target:"_blank",rel:"noopener noreferrer",onClick:i,className:u,...o,children:h})},A=({item:e,locale:n,homeUrl:s,onClose:i})=>{let{mouse:a,handlers:o}=z(),l=w[e.key]?.[n]||w[e.key]?.en,c=N[e.key]?.[n]||N[e.key]?.en,d="placeholder"===e.type,u=`group relative flex items-center gap-3 px-3 py-3 rounded-lg transition-colors overflow-hidden ${d?"opacity-50 cursor-default":"hover:bg-white/[0.05]"}`,h=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(L,{x:a.x,y:a.y,active:a.active}),(0,t.jsx)("div",{className:"relative w-9 h-9 rounded-lg flex items-center justify-center shrink-0 transition-colors",style:{background:"rgba(255, 255, 255, 0.04)",border:"1px solid rgba(255, 255, 255, 0.06)"},children:(0,t.jsx)("svg",{className:`w-[17px] h-[17px] text-white/30 transition-colors ${d?"":"group-hover:text-white"}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:e.icon})})}),(0,t.jsxs)("div",{className:"relative min-w-0 overflow-hidden",children:[(0,t.jsx)("span",{className:`block text-white text-[14px] font-semibold leading-tight transition-colors truncate ${d?"":"group-hover:text-white"}`,children:l}),(0,t.jsx)("span",{className:"block text-white/40 text-[12px] mt-0.5 leading-snug truncate",children:c})]})]});return d?(0,t.jsx)("div",{className:u,"aria-disabled":"true",...o,children:h}):"internal"===e.type?(0,t.jsx)(r.default,{href:C(e,n,s),onClick:i,className:u,...o,children:h}):(0,t.jsx)("a",{href:C(e,n,s),target:"_blank",rel:"noopener noreferrer",onClick:i,className:u,...o,children:h})};e.s(["default",0,({dict:e,locale:i})=>
1{let a=(0,h.useDashboardSigninUrl)(),[o,l]=(0,n.useState)(!1),[c,z]=(0,n.useState)(!1),[L,M]=(0,n.useState)(!1),[$,E]=(0,n.useState)(!1),[T,F]=(0,n.useState)(!1),I=(0,n.useRef)(null),B=(0,n.useRef)(null),P=(0,n.useRef)(null),W=(0,n.useRef)(null);(0,n.useEffect)(()=>{let e=e=>{let t=e.target;I.current&&!I.current.contains(t)&&z(!1),P.current&&!P.current.contains(t)&&E(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,n.useEffect)(()=>{document.body.style.overflow=o?"hidden":"";let e=e=>{"Escape"===e.key&&o&&l(!1)};return document.addEventListener("keydown",e),()=>{document.body.style.overflow="",document.removeEventListener("keydown",e)}},[o]);let D=(0,n.useCallback)(e=>{"Escape"===e.key?z(!1):("Enter"===e.key||" "===e.key)&&(e.preventDefault(),z(e=>!e))},[]),O=(0,n.useCallback)(()=>{B.current&&(clearTimeout(B.current),B.current=null),z(!0),E(!1)},[]),H=(0,n.useCallback)(()=>{B.current=setTimeout(()=>z(!1),150)},[]),U=(0,n.useCallback)(e=>{"Escape"===e.key?E(!1):("Enter"===e.key||" "===e.key)&&(e.preventDefault(),E(e=>!e))},[]),q=(0,n.useCallback)(()=>{W.current&&(clearTimeout(W.current),W.current=null),E(!0),z(!1)},[]),Y=(0,n.useCallback)(()=>{W.current=setTimeout(()=>E(!1),150)},[]),K="en"===i?"":`/${i}`,V=e=>{let n=w[e.key]?.[i]||w[e.key]?.en,s=N[e.key]?.[i]||N[e.key]?.en,a="placeholder"===e.type,o=`flex items-center gap-3 py-2.5 px-3 rounded-lg transition-colors ${a?"opacity-50 cursor-default":"hover:bg-white/[0.04]"}`,c=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"w-8 h-8 rounded-md bg-[#262626]/60 flex items-center justify-center shrink-0",children:(0,t.jsx)("svg",{className:"w-4 h-4 text-[#737373]",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:e.icon})})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"block text-white text-[14px]",children:n}),(0,t.jsx)("span",{className:"block text-[#737373] text-[11px]",children:s})]})]});return a?(0,t.jsx)("div",{className:o,"aria-disabled":"true",children:c},e.key):"internal"===e.type?(0,t.jsx)(r.default,{href:C(e,i,K),className:o,onClick:()=>l(!1),children:c},e.key):(0,t.jsx)("a",{href:C(e,i,K),target:"_blank",rel:"noopener noreferrer",className:o,onClick:()=>l(!1),children:c},e.key)},X=e=>{let n=f[e.key]?.[i]||f[e.key]?.en,s=g[e.key]?.[i]||g[e.key]?.en,a="placeholder"===e.type,o=`flex items-center gap-3 py-2.5 px-3 rounded-lg transition-colors ${a?"opacity-50 cursor-default":"hover:bg-white/[0.04]"}`,c=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"w-8 h-8 rounded-md bg-[#262626]/60 flex items-center justify-center shrink-0",children:(0,t.jsx)("svg",{className:"w-4 h-4 text-[#737373]",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:e.icon})})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"block text-white text-[14px]",children:n}),s&&(0,t.jsx)("span",{className:"block text-[#737373] text-[11px]",children:s})]})]});return a?(0,t.jsx)("div",{className:o,"aria-disabled":"true",children:c},e.key):"internal"===e.type?(0,t.jsx)(r.default,{href:b(e,i,K),className:o,onClick:()=>l(!1),children:c},e.key):(0,t.jsx)("a",{href:b(e,i,K),target:"_blank",rel:"noopener noreferrer",className:o,onClick:()=>l(!1),children:c},e.key)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("nav",{className:"enter-down fixed left-0 right-0 h-[64px] bg-[#0A0A0A]/80 backdrop-blur-xl text-white text-[14px] font-[family-name:var(--font-geist-mono)] z-50",style:{to
1p:"var(--announcement-h, 0px)",borderBottom:"1px solid rgba(255, 255, 255, 0.1)",animationDuration:"500ms","--enter-distance":"8px"},children:(0,t.jsxs)("div",{className:"h-full w-full max-w-[1280px] mx-auto flex items-center justify-between px-4 sm:px-6 lg:px-0",children:[(0,t.jsx)(r.default,{href:K||"/",onClick:()=>l(!1),className:"enter-left flex items-center h-full shrink-0",style:{animationDuration:"400ms",animationDelay:"100ms","--enter-distance":"8px"},children:(0,t.jsx)(s.default,{src:"/logo-dark.svg",alt:"Waffo Pancake",width:104,height:30,className:"h-[30px] w-auto"})}),(0,t.jsxs)("div",{className:"enter-down hidden lg:flex items-center gap-8",style:{animationDuration:"400ms",animationDelay:"150ms","--enter-distance":"4px"},children:[(0,t.jsxs)("div",{ref:I,className:"relative h-[64px] flex items-center",onMouseEnter:O,onMouseLeave:H,children:[(0,t.jsxs)("button",{"aria-expanded":c,"aria-controls":"desktop-features-panel",onKeyDown:D,className:"flex items-center gap-1.5 px-4 py-2 rounded-full hover:bg-white/[0.08] transition-colors font-medium text-[13px]",children:[(0,t.jsx)("span",{children:e.features}),(0,t.jsx)("svg",{"aria-hidden":"true",className:`w-3 h-3 transition-transform duration-200 ${c?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M19 9l-7 7-7-7"})})]}),(0,t.jsx)("div",{id:"desktop-features-panel",inert:!c,"aria-hidden":!c,className:"absolute top-full left-1/2",style:{opacity:+!!c,transform:`translateX(-50%) translateY(${c?"0":"-6px"})`,pointerEvents:c?"auto":"none",transition:"opacity 0.2s ease, transform 0.2s ease"},children:(0,t.jsx)("div",{className:"w-[680px] rounded-b-xl backdrop-blur-xl overflow-hidden",style:{background:"rgba(10, 10, 10, 0.98)",border:"1px solid rgba(255, 255, 255, 0.06)",borderTop:"none",boxShadow:"0 24px 48px rgba(0,0,0,0.5)"},children:(0,t.jsxs)("div",{className:"grid grid-cols-2 p-2.5 gap-x-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-white/30 text-[12px] font-semibold uppercase tracking-[0.12em] px-3 pt-2 pb-1.5",children:v[i]||v.en}),x.map(e=>(0,t.jsx)(R,{item:e,locale:i,homeUrl:K,onClose:()=>z(!1)},e.key))]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-white/30 text-[12px] font-semibold uppercase tracking-[0.12em] px-3 pt-2 pb-1.5",children:y[i]||y.en}),m.map(e=>(0,t.jsx)(R,{item:e,locale:i,homeUrl:K,onClose:()=>z(!1)},e.key))]})]})})})]}),(0,t.jsxs)("div",{ref:P,className:"relative h-[64px] flex items-center",onMouseEnter:q,onMouseLeave:Y,children:[(0,t.jsxs)("button",{"aria-expanded":$,"aria-controls":"desktop-docs-panel",onKeyDown:U,className:"flex items-center gap-1.5 px-4 py-2 rounded-full hover:bg-white/[0.08] transition-colors font-medium text-[13px]",children:[(0,t.jsx)("span",{children:e.docs}),(0,t.jsx)("svg",{"aria-hidden":"true",className:`w-3 h-3 transition-transform duration-200 ${$?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M19 9l-7 7-7-7"})})]}),(0,t.jsx)("div",{id:"desktop-docs-panel",inert:!$,"aria-hidden":!$,className:"absolute top-full left-1/2",style:{opacity:+!!$,transform:`translateX(-50%) translateY(${$?"0":"-6px"})`,pointerEvents:$?"auto":"none",transition:"opacity 0.2s ease, transform 0.2s ease"},children:(0,t.jsx)("div",{className:"w-[820px] rounded-b-xl backdrop-blur-xl overflow-hidden",style:{background:"rgba(10, 10, 10, 0.98)",border:"1px solid rgba(255, 255, 255, 0.06)",borderTop:"none",boxShadow:"0 24px 48px rgba(0,0,0,0.5)"},children:(0,t.jsxs)("div",{className:"grid grid-cols-2 p-2.5 gap-x-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-white/30 text-[12px] font-semibold uppercase tracking-[0.12em] px-3 pt-2 pb-1.5",children:_[i]||_.en}),j.map(e=>(0,t.jsx)(A,{item:e,locale:i,homeUrl:K,onClose:()=>E(!1)},e.key))]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-white/30 text-[12px] font-semibold uppercase tracking-[0.12em] px-3 pt-2 pb-1.5",children:S[i]||S.en}),k.map(e=>(0,t.jsx)(A,{item:e,locale:i,homeUrl:K,onClose:()=>E(!1)},e.key))]})]})})})]}),(0,t.jsx)(r.default,{href:`${K}/pricing`,className:"font-medium text-[13px] px-4 py-2 rounded-full hover:bg-white/[0.08] transition-colors",children:e.pricing}),(0,t.jsx)(r.default,{href:`${K}/about`,className:"font-medium text-[13px] px-4 py-2 rounded-full hover:bg-white/[0.08] transition-colors",children:p[i]||p.en})]}),(0,t.jsxs)("div",{className:"enter-right hidden lg:flex items-center gap-3",style:{animationDuration:"400ms",animationDelay:"200ms","--enter-distance":"8px"},children:[(0,t.jsx)(d,{currentLocale:i}),(0,t.jsx)(u,{href:a,children:e.login})]}),(0,t.jsx)("button",{className:"lg:hidden flex items-center justify-center w-10 h-10 text-white",onClick:()=>l(!o),"aria-label":"Toggle menu","aria-expanded":o,"aria-controls":"mobile-navigation-panel",children:(0,t.jsxs)("div",{className:"relative w-5 h-4 flex flex-col justify-between",children:[(0,t.jsx)("span",{className:"block w-full h-[1.5px] bg-white rounded-full transition-all duration-300 origin-center",style:{transform:o?"translateY(7px) rotate(45deg)":"none"}}),(0,t.jsx)("span",{className:"block w-full h-[1.5px] bg-white rounded-full transition-all duration-300",style:{opacity:+!o}}),(0,t.jsx)("span",{className:"block w-full h-[1.5px] bg-white rounded-full transition-all duration-300 origin-center",style:{transform:o?"translateY(-7px) rotate(-45deg)":"none"}})]})})]})}),(0,t.jsx)("div",{style:{height:"calc(64px + var(--announcement-h, 0px))"}}),o&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{"aria-hidden":"true",className:"lg:hidden fixed inset-0 z-40 bg-black/60 backdrop-blur-sm",style:{to
1p:"calc(64px + var(--announcement-h, 0px))"},onClick:()=>l(!1)}),(0,t.jsx)("div",{id:"mobile-navigation-panel",className:"lg:hidden fixed left-0 right-0 z-50 overflow-y-auto",style:{top:"calc(64px + var(--announcement-h, 0px))",maxHeight:"calc(100dvh - 64px - var(--announcement-h, 0px))",background:"linear-gradient(180deg, #0A0A0A 0%, #171717 100%)",borderBottom:"1px solid rgba(33, 46, 49, 0.5)",animation:"slideDown 0.2s ease-out"},children:(0,t.jsxs)("div",{className:"px-5 py-5 space-y-1 font-[family-name:var(--font-geist-mono)]",children:[(0,t.jsxs)("button",{onClick:()=>M(!L),"aria-expanded":L,"aria-controls":"mobile-features-panel",className:"flex items-center justify-between w-full py-3 text-white text-[15px] font-medium",children:[(0,t.jsx)("span",{children:e.features}),(0,t.jsx)("svg",{"aria-hidden":"true",className:`w-4 h-4 text-[#737373] transition-transform duration-200 ${L?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),(0,t.jsx)("div",{id:"mobile-features-panel",inert:!L,"aria-hidden":!L,className:"overflow-hidden transition-all duration-300",style:{maxHeight:L?"600px":"0px",opacity:+!!L},children:(0,t.jsxs)("div",{className:"pl-1 pb-3",children:[(0,t.jsx)("div",{className:"text-white/30 text-[12px] font-semibold uppercase tracking-[0.12em] px-3 pt-2 pb-1.5",children:v[i]||v.en}),(0,t.jsx)("div",{className:"space-y-0.5",children:x.map(X)}),(0,t.jsx)("div",{className:"text-white/30 text-[12px] font-semibold uppercase tracking-[0.12em] px-3 pt-3 pb-1.5",children:y[i]||y.en}),(0,t.jsx)("div",{className:"space-y-0.5",children:m.map(X)})]})}),(0,t.jsx)("div",{className:"h-px bg-[#262626]/40"}),(0,t.jsxs)("button",{onClick:()=>F(!T),"aria-expanded":T,"aria-controls":"mobile-docs-panel",className:"flex items-center justify-between w-full py-3 text-white text-[15px] font-medium",children:[(0,t.jsx)("span",{children:e.docs}),(0,t.jsx)("svg",{"aria-hidden":"true",className:`w-4 h-4 text-[#737373] transition-transform duration-200 ${T?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),(0,t.jsx)("div",{id:"mobile-docs-panel",inert:!T,"aria-hidden":!T,className:"overflow-hidden transition-all duration-300",style:{maxHeight:T?"800px":"0px",opacity:+!!T},children:(0,t.jsxs)("div",{className:"pl-1 pb-3",children:[(0,t.jsx)("div",{className:"text-white/30 text-[12px] font-semibold uppercase tracking-[0.12em] px-3 pt-2 pb-1.5",children:_[i]||_.en}),(0,t.jsx)("div",{className:"space-y-0.5",children:j.map(V)}),(0,t.jsx)("div",{className:"text-white/30 text-[12px] font-semibold uppercase tracking-[0.12em] px-3 pt-3 pb-1.5",children:S[i]||S.en}),(0,t.jsx)("div",{className:"space-y-0.5",children:k.map(V)})]})}),(0,t.jsx)("div",{className:"h-px bg-[#262626]/40"}),(0,t.jsx)(r.default,{href:`${K}/pricing`,className:"block py-3 text-white text-[15px] font-medium hover:text-[#72e857] transition-colors",onClick:()=>l(!1),children:e.pricing}),(0,t.jsx)("div",{className:"h-px bg-[#262626]/40"}),(0,t.jsx)(r.default,{href:`${K}/about`,className:"block py-3 text-white text-[15px] font-medium hover:text-[#72e857] transition-colors",onClick:()=>l(!1),children:p[i]||p.en}),(0,t.jsx)("div",{className:"h-px bg-[#262626]/40"}),(0,t.jsx)("div",{className:"pt-3 pb-1",children:(0,t.jsx)(d,{currentLocale:i})}),(0,t.jsx)("div",{className:"mt-3",onClick:()=>l(!1),children:(0,t.jsx)(u,{href:a,className:"w-full !text-[16px]",children:e.login})})]})})]})]})}],19449)},16015,(e,t,n)=>{},98547,(e,t,n)=>{var r=e.i(47167);e.r(16015);var s=e.r(71645),i=s&&"object"==typeof s&&"default"in s?s:{default:s},a=void 0!==r.default&&r.default.env&&!0,o=function(e){return"[object String]"===Object.prototype.toString.call(e)},l=function(){function e(e){var t=void 0===e?{}:e,n=t.name,r=void 0===n?"stylesheet":n,s=t.optimizeForSpeed,i=void 0===s?a:s;c(o(r),"`name` must be a string"),this._name=r,this._deletedRulePlaceholder="#"+r+"-deleted-rule____{}",c("boolean"==typeof i,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=i,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var l="undefined"!=typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=l?l.getAttribute("content"):null}var t,n=e.prototype;return n.setOptimizeForSpeed=function(e){c("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),c(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},n.isOptimizeForSpeed=function(){return this._optimizeForSpeed},n.inject=function(){var e=this;if(c(!this._injected,"sheet already injected"),this._injected=!0,"undefined"!=typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.get
1Sheet(),this._optimizeForSpeed||(a||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,n){return"number"==typeof n?e._serverSheet.cssRules[n]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),n},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},n.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},n.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},n.insertRule=function(e,t){if(c(o(e),"`insertRule` accepts only strings"),"undefined"==typeof window)return"number"!=typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;if(this._optimizeForSpeed){var n=this.getSheet();"number"!=typeof t&&(t=n.cssRules.length);try{n.insertRule(e,t)}catch(t){return a||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var r=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,r))}return this._rulesCount++},n.replaceRule=function(e,t){if(this._optimizeForSpeed||"undefined"==typeof window){var n="undefined"!=typeof window?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!n.cssRules[e])return e;n.deleteRule(e);try{n.insertRule(t,e)}catch(r){a||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),n.insertRule(this._deletedRulePlaceholder,e)}}else{var r=this._tags[e];c(r,"old rule at index `"+e+"` not found"),r.textContent=t}return e},n.deleteRule=function(e){if("undefined"==typeof window)return void this._serverSheet.deleteRule(e);if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];c(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},n.flush=function(){this._injected=!1,this._rulesCount=0,"undefined"!=typeof window?(this._tags.forEac
1h(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},n.cssRules=function(){var e=this;return"undefined"==typeof window?this._serverSheet.cssRules:this._tags.reduce(function(t,n){return n?t=t.concat(Array.prototype.map.call(e.getSheetForTag(n).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},n.makeStyleTag=function(e,t,n){t&&c(o(t),"makeStyleTag accepts only strings as second parameter");var r=document.createElement("style");this._nonce&&r.setAttribute("nonce",this._nonce),r.type="text/css",r.setAttribute("data-"+e,""),t&&r.appendChild(document.createTextNode(t));var s=document.head||document.getElementsByTagName("head")[0];return n?s.insertBefore(r,n):s.appendChild(r),r},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function c(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var d=function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0},u={};function h(e,t){if(!t)return"jsx-"+e;var n=String(t),r=e+n;return u[r]||(u[r]="jsx-"+d(e+"-"+n)),u[r]}function p(e,t){"undefined"==typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var n=e+t;return u[n]||(u[n]=t.replace(/__jsx-style-dynamic-selector/g,e)),u[n]}var x=function(){function e(e){var t=void 0===e?{}:e,n=t.styleSheet,r=void 0===n?null:n,s=t.optimizeForSpeed,i=void 0!==s&&s;this._sheet=r||new l({name:"styled-jsx",optimizeForSpeed:i}),this._sheet.inject(),r&&"boolean"==typeof i&&(this._sheet.setOptimizeForSpeed(i),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"undefined"==typeof window||this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var n=this.getIdAndRules(e),r=n.styleId,s=n.rules;if(r in this._instancesCounts){this._instancesCounts[r]+=1;return}var i=s.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[r]=i,this._instancesCounts[r]=1},t.remove=function(e){var t=this,n=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(n in this._instancesCounts,"styleId: `"+n+"` not found"),this._instancesCounts[n]-=1,this._instancesCounts[n]<1){var r=this._fromServer&&this._fromServer[n];r?(r.parentNode.removeChild(r),delete this._fromServer[n]):(this._indices[n].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[n]),delete this._instancesCounts[n]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],n=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return n[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,n;return t=this.cssRules(),void 0===(n=e)&&(n={}),t.map(function(e){var t=e[0],r=e[1];return i.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:n.nonce?n.nonce:void 0,dangerouslySetInnerHTML:{__html:r}})})},t.getIdAndRules=function(e){var t=e.children,n=e.dynamic,r=e.id;if(n){var s=h(r,n);return{styleId:s,rules:Array.isArray(t)?t.map(function(e){return p(s,e)}):[p(s,t)]}}return{styleId:h(r),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),m=s.createContext(null);function f(){return new x}function g(){return s.useContext(m)}m.displayName="StyleSheetContext";var v=i.default.useInsertionEffect||i.default.useLayoutEffect,y="undefined"!=typeof window?f():void 0;function b(e){var t=y||g();return t&&("undefined"==typeof window?t.add(e):v(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}b.dynamic=function(e){return e.map(function(e){return h(e[0],e[1])}).join(" ")},n.StyleRegistry=function(e){var t=e.registry,n=e.children,r=s.useContext(m),a=s.useState(function(){return r||t||f()})[0];return i.default.createElement(m.Provider,{value:a},n)},n.createStyleRegistry=f,n.style=b,n.useStyleRegistry=g},37902,(e,t,n)=>{t.exports=e.r(98547).style}
1,6425,e=>{"use strict";var t=e.i(43476),n=e.i(13642);e.s(["default",0,({footerDict:e,locale:r})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"h-px w-full bg-white/[0.1]","aria-hidden":"true"}),(0,t.jsx)(n.default,{footerDict:e,locale:r})]})])},36229,e=>{"use strict";var t=e.i(6552);function n(e,n){(0,t.loadPostHog)().then(t=>t.capture(e,n)).catch(()=>{})}e.s(["trackBlogEvent",()=>n])},63376,e=>{"use strict";var t=e.i(43476),n=e.i(2344),r=e.i(71645),s=e.i(22016),i=e.i(36229);let a={en:{all:"All Categories",search:"Search",featured:"Featured blogs",read:"Read article",results:"results",empty:"No matching articles."},zh:{all:"å
¨é¨åç±»",search:"æç´¢",featured:"ç²¾éæç« ",read:"é
读å
¨æ",results:"ç¯ç»æ",empty:"没æå¹é
çæç« ã"},ja:{all:"ãã¹ã¦ã®ã«ãã´ãª",search:"æ¤ç´¢",featured:"注ç®ã®è¨äº",read:"è¨äºãèªã",results:"ä»¶",empty:"該å½ããè¨äºã¯ããã¾ããã"}},o={en:"en-US",zh:"zh-CN",ja:"ja-JP"};function l(e,t){return new Intl.DateTimeFormat(o[t],{year:"numeric",month:"short",day:"numeric",timeZone:"UTC"}).format(new Date(`${e}T00:00:00Z`))}function c({label:e}){return(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-md bg-white/[0.06] px-2.5 py-1 text-[12px] text-greyscale-200",children:[(0,t.jsx)("svg",{className:"h-3.5 w-3.5 text-accent/70",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.8,d:"M7 7h.01M7 3h5a2 2 0 011.4.6l7 7a2 2 0 010 2.8l-5 5a2 2 0 01-2.8 0l-7-7A2 2 0 014 7V5a2 2 0 012-2z"})}),e]})}function d({cover:e,label:n,className:r=""}){return e?(0,t.jsx)("img",{src:e,alt:"",className:`h-full w-full object-cover ${r}`,loading:"lazy"}):(0,t.jsx)("div",{className:`flex h-full w-full items-center justify-center bg-[radial-gradient(circle_at_30%_20%,rgba(173,255,133,0.16),transparent_55%),linear-gradient(135deg,#10231a_0%,#0a0a0a_70%)] ${r}`,children:(0,t.jsx)("span",{className:"px-6 text-center text-[15px] font-medium uppercase tracking-[0.16em] text-white/30",children:n})})}function u({label:e}){return(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-[14px] font-medium text-accent transition-transform group-hover:gap-2.5",children:[e,(0,t.jsx)("svg",{className:"h-4 w-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 12h14M13 6l6 6-6 6"})})]})}function h({item:e,locale:r,t:a}){return(0,t.jsxs)(s.default,{href:(0,n.localizedPath)(r,`/blog/${e.slug}`),onClick:()=>(0,i.trackBlogEvent)("blog_read_more_clicked",{slug:e.slug,category:e.category,locale:r,position:"featured"}),className:"group flex flex-col overflow-hidden rounded-2xl border border-border transition-colors hover:border-accent/40",children:[(0,t.jsx)("div",{className:"aspect-[1600/679] w-full",children:(0,t.jsx)(d,{cover:e.cover,label:e.categoryLabel})}),(0,t.jsxs)("div",{className:"flex flex-col p-7 sm:p-9",children:[(0,t.jsxs)("div",{className:"mb-5 flex items-center justify-between gap-4",children:[(0,t.jsx)(c,{label:e.categoryLabel}),(0,t.jsx)("time",{dateTime:e.date,className:"text-[13px] text-greyscale-400",children:l(e.date,r)})]}),(0,t.jsx)("h3",{className:"text-2xl font-semibold leading-snug text-white transition-colors group-hover:text-accent sm:text-[26px]",children:e.title}),(0,t.jsx)("p",{className:"mt-3 line-clamp-3 text-[15px] leading-7 text-greyscale-300",children:e.description}),(0,t.jsx)("div",{className:"mt-auto pt-6",children:(0,t.jsx)(u,{label:a.read})})]})]})}function p({item:e,locale:r,t:a}){return(0,t.jsxs)(s.default,{href:(0,n.localizedPath)(r,`/blog/${e.slug}`),onClick:()=>(0,i.trackBlogEvent)("blog_read_more_clicked",{slug:e.slug,category:e.category,locale:r,position:"grid"}),className:"group flex flex-col overflow-hidden rounded-2xl border border-border transition-colors hover:border-accent/40",children:[(0,t.jsx)("div",{className:"aspect-[1600/679] w-full",children:(0,t.jsx)(d,{cover:e.cover,label:e.categoryLabel})}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col p-5",children:[(0,t.jsxs)("div",{className:"mb-3 flex items-center justify-between gap-3",children:[(0,t.jsx)(c,{label:e.categoryLabel}),(0,t.jsx)("time",{dateTime:e.date,className:"text-[12px] text-greyscale-400",children:l(e.date,r)}
1)]}),(0,t.jsx)("h3",{className:"line-clamp-2 text-[17px] font-semibold leading-snug text-white transition-colors group-hover:text-accent",children:e.title}),(0,t.jsx)("p",{className:"mt-2 line-clamp-2 text-[13.5px] leading-6 text-greyscale-400",children:e.description}),(0,t.jsx)("div",{className:"mt-auto pt-5",children:(0,t.jsx)(u,{label:a.read})})]})]})}function x({items:e,locale:n,featuredSlug:s}){let o=a[n],[l,c]=(0,r.useState)("all"),[d,u]=(0,r.useState)(""),[x,m]=(0,r.useState)(!1),f=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=e=>{f.current&&!f.current.contains(e.target)&&m(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);let g=(0,r.useMemo)(()=>{let t=new Map;for(let n of e)t.has(n.category)||t.set(n.category,n.categoryLabel);return Array.from(t,([e,t])=>({key:e,label:t}))},[e]),v=d.trim().toLowerCase(),y=(0,r.useMemo)(()=>e.filter(e=>("all"===l||e.category===l)&&(""===v||`${e.title} ${e.description}`.toLowerCase().includes(v))),[e,l,v]),b=(0,r.useRef)(0);b.current=y.length,(0,r.useEffect)(()=>{if(""===v)return;let e=setTimeout(()=>{(0,i.trackBlogEvent)("blog_searched",{query:v,results:b.current,locale:n})},600);return()=>clearTimeout(e)},[v,n]);let j="all"===l&&""===v,k=j?e.find(e=>e.slug===s)??y[0]:void 0,w=j?y.filter(e=>e.slug!==k?.slug):y,N="all"===l?o.all:g.find(e=>e.key===l)?.label??o.all;return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"mb-12 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,t.jsxs)("div",{ref:f,className:"relative",children:[(0,t.jsxs)("button",{type:"button","aria-haspopup":"listbox","aria-expanded":x,onClick:()=>m(e=>!e),className:"inline-flex w-full items-center justify-between gap-3 rounded-xl border border-border bg-card px-4 py-2.5 text-[14px] text-white sm:w-auto sm:min-w-[200px]",children:[(0,t.jsx)("span",{children:N}),(0,t.jsx)("svg",{className:`h-4 w-4 text-greyscale-400 transition-transform ${x?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),x&&(0,t.jsx)("div",{role:"listbox",className:"absolute z-20 mt-2 w-full min-w-[200px] overflow-hidden rounded-xl border border-border bg-[#0d0d0d] py-1 shadow-2xl",children:[{key:"all",label:o.all},...g].map(e=>(0,t.jsx)("button",{type:"button",role:"option","aria-selected":l===e.key,onClick:()=>{c(e.key),m(!1),e.key!==l&&(0,i.trackBlogEvent)("blog_category_filtered",{category:e.key,locale:n})},className:`block w-full px-4 py-2.5 text-left text-[14px] transition-colors hover:bg-white/[0.05] ${l===e.key?"text-accent":"text-greyscale-200"}`,children:e.label},e.key))})]}),(0,t.jsxs)("div",{className:"relative sm:w-[320px]",children:[(0,t.jsx)("svg",{className:"pointer-events-none absolute left-3.5 top-1/2 h-4 w-4 -translate-y-1/2 text-greyscale-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-4.3-4.3M11 19a8 8 0 100-16 8 8 0 000 16z"})}),(0,t.jsx)("input",{type:"search",value:d,onChange:e=>u(e.target.value),placeholder:o.search,"aria-label":o.search,className:"w-full rounded-xl border border-border bg-card py-2.5 pl-10 pr-4 text-[14px] text-white placeholder:text-greyscale-500 focus:border-accent/50 focus:outline-none"})]})]}),k&&(0,t.jsxs)("section",{className:"mb-14",children:[(0,t.jsx)("h2",{className:"mb-6 text-3xl font-semibold text-white sm:text-4xl",children:o.featured}),(0,t.jsx)(h,{item:k,locale:n,t:o})]}),!j&&(0,t.jsxs)("p",{className:"mb-6 text-[13px] text-greyscale-400",children:[y.length," ",o.results]}),w.length>0?(0,t.jsx)("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3",children:w.map(e=>(0,t.jsx)(p,{item:e,locale:n,t:o},e.slug))}):!k&&(0,t.jsx)("p",{className:"text-greyscale-400",children:o.empty})]})}e.s(["default",()=>x])}]);
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.