| Looks | Light, Dark |
| Fonts | General Sans (free, from Fontshare) and Beautique Display (paid, for headings) |
| Theme file | maple-ui.theme.css |
| Motion file (optional) | maple-ui.runtime.js |
| What motion adds | Gentle fades and rises, counting numbers, tabs and sliders |
1. Theme file
Save this asmaple-ui.theme.css next to your main CSS file, then add the import line right below @import "tailwindcss";:
app.css
@import "tailwindcss";
@import "./maple-ui.theme.css";
maple-ui.theme.css
@theme inline reference {
--color-background: var(--background);
--color-foreground: var(--foreground);
--color-card: var(--card);
--color-card-foreground: var(--card-foreground);
--color-popover: var(--popover);
--color-popover-foreground: var(--popover-foreground);
--color-primary: var(--primary);
--color-primary-foreground: var(--primary-foreground);
--color-secondary: var(--secondary);
--color-secondary-foreground: var(--secondary-foreground);
--color-muted: var(--muted);
--color-muted-foreground: var(--muted-foreground);
--color-accent: var(--accent);
--color-accent-foreground: var(--accent-foreground);
--color-destructive: var(--destructive);
--color-border: var(--border);
--color-input: var(--input);
--color-ring: var(--ring);
--color-highlight: var(--highlight);
--color-surface: var(--surface);
--color-surface-foreground: var(--surface-foreground);
--color-overlay: var(--overlay);
--color-overlay-foreground: var(--overlay-foreground);
--color-wire: var(--wire);
--color-wire-foreground: var(--wire-foreground);
--color-wire-muted: var(--wire-muted);
--color-wire-muted-foreground: var(--wire-muted-foreground);
--color-wire-border: var(--wire-border);
--font-heading: var(--font-heading);
--animate-drift: var(--pg-animate-drift);
--animate-marquee: var(--pg-animate-marquee);
--animate-marquee-reverse: var(--pg-animate-marquee-reverse);
--animate-parallax: var(--pg-animate-parallax);
--animate-spin-slow: var(--pg-animate-spin-slow);
}
@custom-variant pg-light (&:where([data-pg-theme=light], [data-pg-theme=light] *):not(:where([data-pg-theme=light] [data-pg-theme]:not([data-pg-theme=light]), [data-pg-theme=light] [data-pg-theme]:not([data-pg-theme=light]) *)));
@custom-variant pg-dark (&:where([data-pg-theme=dark], [data-pg-theme=dark] *):not(:where([data-pg-theme=dark] [data-pg-theme]:not([data-pg-theme=dark]), [data-pg-theme=dark] [data-pg-theme]:not([data-pg-theme=dark]) *)));
[data-pg-theme] {
--color-background: var(--background);
--color-foreground: var(--foreground);
--color-card: var(--card);
--color-card-foreground: var(--card-foreground);
--color-popover: var(--popover);
--color-popover-foreground: var(--popover-foreground);
--color-primary: var(--primary);
--color-primary-foreground: var(--primary-foreground);
--color-secondary: var(--secondary);
--color-secondary-foreground: var(--secondary-foreground);
--color-muted: var(--muted);
--color-muted-foreground: var(--muted-foreground);
--color-accent: var(--accent);
--color-accent-foreground: var(--accent-foreground);
--color-destructive: var(--destructive);
--color-border: var(--border);
--color-input: var(--input);
--color-ring: var(--ring);
--color-highlight: var(--highlight);
--color-surface: var(--surface);
--color-surface-foreground: var(--surface-foreground);
--color-overlay: var(--overlay);
--color-overlay-foreground: var(--overlay-foreground);
--color-wire: var(--wire);
--color-wire-foreground: var(--wire-foreground);
--color-wire-muted: var(--wire-muted);
--color-wire-muted-foreground: var(--wire-muted-foreground);
--color-wire-border: var(--wire-border);
--spacing: 0.25rem;
--radius: 0.5rem;
--radius-sm: 0.25rem;
--radius-md: 0.375rem;
--radius-lg: 0.5rem;
--radius-xl: 0.75rem;
--radius-2xl: 1rem;
--radius-3xl: 1.5rem;
--radius-4xl: 2rem;
--text-xs: 0.75rem;
--text-xs--line-height: calc(1 / 0.75);
--text-xs--letter-spacing: initial;
--text-xs--font-weight: initial;
--text-sm: 0.875rem;
--text-sm--line-height: calc(1.25 / 0.875);
--text-sm--letter-spacing: initial;
--text-sm--font-weight: initial;
--text-base: 1rem;
--text-base--line-height: calc(26 / 16);
--text-base--letter-spacing: initial;
--text-base--font-weight: initial;
--text-lg: 1.125rem;
--text-lg--line-height: calc(1.75 / 1.125);
--text-lg--letter-spacing: initial;
--text-lg--font-weight: initial;
--text-xl: 1.25rem;
--text-xl--line-height: calc(30 / 20);
--text-xl--letter-spacing: initial;
--text-xl--font-weight: initial;
--text-2xl: 1.5rem;
--text-2xl--line-height: calc(34 / 24);
--text-2xl--letter-spacing: initial;
--text-2xl--font-weight: initial;
--text-3xl: 2rem;
--text-3xl--line-height: calc(40 / 32);
--text-3xl--letter-spacing: initial;
--text-3xl--font-weight: initial;
--text-4xl: 2.5rem;
--text-4xl--line-height: calc(50 / 40);
--text-4xl--letter-spacing: initial;
--text-4xl--font-weight: initial;
--text-5xl: 3rem;
--text-5xl--line-height: calc(56 / 48);
--text-5xl--letter-spacing: initial;
--text-5xl--font-weight: initial;
--text-6xl: 3.75rem;
--text-6xl--line-height: calc(74 / 60);
--text-6xl--letter-spacing: initial;
--text-6xl--font-weight: initial;
--text-7xl: 4.5rem;
--text-7xl--line-height: calc(80 / 72);
--text-7xl--letter-spacing: initial;
--text-7xl--font-weight: initial;
--text-8xl: 6.25rem;
--text-8xl--line-height: calc(112 / 100);
--text-8xl--letter-spacing: initial;
--text-8xl--font-weight: initial;
--text-9xl: 8.75rem;
--text-9xl--line-height: 1;
--text-9xl--letter-spacing: initial;
--text-9xl--font-weight: initial;
--font-weight-thin: 100;
--font-weight-extralight: 200;
--font-weight-light: 300;
--font-weight-normal: 400;
--font-weight-medium: 500;
--font-weight-semibold: 600;
--font-weight-bold: 700;
--font-weight-extrabold: 800;
--font-weight-black: 900;
--tracking-tighter: -0.05em;
--tracking-tight: -0.025em;
--tracking-normal: 0em;
--tracking-wide: 0.025em;
--tracking-wider: 0.05em;
--tracking-widest: 0.1em;
--leading-tight: 1.25;
--leading-snug: 1.375;
--leading-normal: 1.5;
--leading-relaxed: 1.625;
--leading-loose: 2;
--container-3xs: 16rem;
--container-2xs: 18rem;
--container-xs: 20rem;
--container-sm: 24rem;
--container-md: 28rem;
--container-lg: 32rem;
--container-xl: 36rem;
--container-2xl: 42rem;
--container-3xl: 48rem;
--container-4xl: 56rem;
--container-5xl: 64rem;
--container-6xl: 72rem;
--container-7xl: 80rem;
--font-sans: "General Sans", ui-sans-serif, system-ui, sans-serif;
--font-heading: "Beautique Display", ui-serif, Georgia, serif;
--font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
--font-sans--font-feature-settings: normal;
--font-sans--font-variation-settings: normal;
--font-heading--font-feature-settings: normal;
--font-heading--font-variation-settings: normal;
--font-mono--font-feature-settings: normal;
--font-mono--font-variation-settings: normal;
--default-transition-duration: 300ms;
--default-transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
--pg-motion-duration: 900ms;
--pg-motion-ease: cubic-bezier(0.16, 1, 0.3, 1);
--pg-animate-drift: pg-maple-ui-drift 18s ease-in-out infinite;
--pg-animate-marquee: pg-maple-ui-marquee 40s linear infinite;
--pg-animate-marquee-reverse: pg-maple-ui-marquee-reverse 40s linear infinite;
--pg-animate-parallax: pg-maple-ui-parallax 1s linear 1;
--pg-animate-spin-slow: pg-maple-ui-spin-slow 24s linear infinite;
}
[data-pg-theme="light"] {
color-scheme: light;
--background: oklch(0.988 0.007 53.45);
--foreground: oklch(0.209 0.059 25.33);
--card: oklch(0.988 0.007 53.45);
--card-foreground: oklch(0.209 0.059 25.33);
--popover: oklch(0.988 0.007 53.45);
--popover-foreground: oklch(0.209 0.059 25.33);
--primary: oklch(0.209 0.059 25.33);
--primary-foreground: oklch(1 0 0);
--secondary: oklch(0.988 0.007 53.45);
--secondary-foreground: oklch(0.209 0.059 25.33);
--muted: oklch(0.937 0.02 53.25);
--muted-foreground: oklch(0.209 0.059 25.33);
--accent: oklch(0.654 0.235 34.04);
--accent-foreground: oklch(0.209 0.059 25.33);
--destructive: oklch(0.577 0.202 26.06);
--border: oklch(0.209 0.059 25.33);
--input: oklch(0.209 0.059 25.33);
--ring: oklch(0.209 0.059 25.33);
--highlight: oklch(0.654 0.235 34.04);
--surface: oklch(0.209 0.059 25.33);
--surface-foreground: oklch(0.988 0.007 53.45);
--overlay: oklch(0.209 0.059 25.33 / 70%);
--overlay-foreground: oklch(0.988 0.007 53.45);
--wire: oklch(1 0 0);
--wire-foreground: oklch(0.201 0.002 17.29);
--wire-muted: oklch(0.904 0 0);
--wire-muted-foreground: oklch(0.68 0 0);
--wire-border: oklch(0.201 0.002 17.29 / 12%);
}
[data-pg-theme="dark"] {
color-scheme: dark;
--background: oklch(0.209 0.059 25.33);
--foreground: oklch(0.988 0.007 53.45);
--card: oklch(0.209 0.059 25.33);
--card-foreground: oklch(0.988 0.007 53.45);
--popover: oklch(0.209 0.059 25.33);
--popover-foreground: oklch(0.988 0.007 53.45);
--primary: oklch(0.988 0.007 53.45);
--primary-foreground: oklch(0.209 0.059 25.33);
--secondary: oklch(0.209 0.059 25.33);
--secondary-foreground: oklch(0.988 0.007 53.45);
--muted: oklch(0.279 0.053 22.83);
--muted-foreground: oklch(0.988 0.007 53.45);
--accent: oklch(0.654 0.235 34.04);
--accent-foreground: oklch(0.209 0.059 25.33);
--destructive: oklch(0.674 0.155 22.57);
--border: oklch(1 0 0);
--input: oklch(1 0 0);
--ring: oklch(0.988 0.007 53.45);
--highlight: oklch(0.654 0.235 34.04);
--surface: oklch(0.988 0.007 53.45);
--surface-foreground: oklch(0.209 0.059 25.33);
--overlay: oklch(0.209 0.059 25.33 / 70%);
--overlay-foreground: oklch(0.988 0.007 53.45);
--wire: oklch(0.201 0.002 17.29);
--wire-foreground: oklch(0.955 0 0);
--wire-muted: oklch(0.904 0 0);
--wire-muted-foreground: oklch(0.68 0 0);
--wire-border: oklch(1 0 0 / 12%);
}
@keyframes pg-maple-ui-blur-in {
from { opacity: 0; filter: blur(10px); }
}
@keyframes pg-maple-ui-fade {
from { opacity: 0; }
}
@keyframes pg-maple-ui-fade-down {
from { opacity: 0; transform: translate(0px, -40px) scale(1); }
}
@keyframes pg-maple-ui-fade-left {
from { opacity: 0; transform: translate(40px, 0px) scale(1); }
}
@keyframes pg-maple-ui-fade-right {
from { opacity: 0; transform: translate(-40px, 0px) scale(1); }
}
@keyframes pg-maple-ui-fade-up {
from { opacity: 0; transform: translate(0px, 40px) scale(1); }
}
@keyframes pg-maple-ui-fill {
from { opacity: 0.2; }
}
@keyframes pg-maple-ui-line-up {
from { transform: translate(0px, 110%) scale(1); }
}
@keyframes pg-maple-ui-rise-soft {
from { opacity: 0; transform: translate(0px, 40px) scale(1); filter: blur(6px); }
}
@keyframes pg-maple-ui-scale-in {
from { opacity: 0; transform: translate(0px, 0px) scale(0.94); }
}
@keyframes pg-maple-ui-settle {
from { transform: translate(0px, 0px) scale(1.12); }
}
@keyframes pg-maple-ui-drift {
0% { transform: translate(0, 0) scale(1); }
50% { transform: translate(4%, -6%) scale(1.08); }
100% { transform: translate(0, 0) scale(1); }
}
@keyframes pg-maple-ui-marquee {
from { transform: translateX(0); }
to { transform: translateX(-100%); }
}
@keyframes pg-maple-ui-marquee-reverse {
from { transform: translateX(-100%); }
to { transform: translateX(0); }
}
@keyframes pg-maple-ui-parallax {
from { transform: translateY(-8%); }
to { transform: translateY(8%); }
}
@keyframes pg-maple-ui-spin-slow {
to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: no-preference) {
[data-pg-library="maple-ui"] [data-pg-motion="blur-in"][data-pg-motion-trigger="load"] { animation: pg-maple-ui-blur-in 900ms cubic-bezier(0.16, 1, 0.3, 1) backwards; }
[data-pg-library="maple-ui"] [data-pg-motion="fade"][data-pg-motion-trigger="load"] { animation: pg-maple-ui-fade 900ms cubic-bezier(0.16, 1, 0.3, 1) backwards; }
[data-pg-library="maple-ui"] [data-pg-motion="fade-down"][data-pg-motion-trigger="load"] { animation: pg-maple-ui-fade-down 900ms cubic-bezier(0.16, 1, 0.3, 1) backwards; }
[data-pg-library="maple-ui"] [data-pg-motion="fade-left"][data-pg-motion-trigger="load"] { animation: pg-maple-ui-fade-left 900ms cubic-bezier(0.16, 1, 0.3, 1) backwards; }
[data-pg-library="maple-ui"] [data-pg-motion="fade-right"][data-pg-motion-trigger="load"] { animation: pg-maple-ui-fade-right 900ms cubic-bezier(0.16, 1, 0.3, 1) backwards; }
[data-pg-library="maple-ui"] [data-pg-motion="fade-up"][data-pg-motion-trigger="load"] { animation: pg-maple-ui-fade-up 900ms cubic-bezier(0.16, 1, 0.3, 1) backwards; }
[data-pg-library="maple-ui"] [data-pg-motion="fill"][data-pg-motion-trigger="load"] { animation: pg-maple-ui-fill 900ms cubic-bezier(0.16, 1, 0.3, 1) backwards; }
[data-pg-library="maple-ui"] [data-pg-motion="line-up"][data-pg-motion-trigger="load"] { animation: pg-maple-ui-line-up 1400ms cubic-bezier(0.16, 1, 0.3, 1) backwards; }
[data-pg-library="maple-ui"] [data-pg-motion="rise-soft"][data-pg-motion-trigger="load"] { animation: pg-maple-ui-rise-soft 1400ms cubic-bezier(0.16, 1, 0.3, 1) backwards; }
[data-pg-library="maple-ui"] [data-pg-motion="scale-in"][data-pg-motion-trigger="load"] { animation: pg-maple-ui-scale-in 900ms cubic-bezier(0.16, 1, 0.3, 1) backwards; }
[data-pg-library="maple-ui"] [data-pg-motion="settle"][data-pg-motion-trigger="load"] { animation: pg-maple-ui-settle 1400ms cubic-bezier(0.16, 1, 0.3, 1) backwards; }
[data-pg-library="maple-ui"] [data-pg-motion-trigger="load"][data-pg-motion-delay="50"] { animation-delay: 50ms; }
[data-pg-library="maple-ui"] [data-pg-motion-trigger="load"][data-pg-motion-delay="100"] { animation-delay: 100ms; }
[data-pg-library="maple-ui"] [data-pg-motion-trigger="load"][data-pg-motion-delay="150"] { animation-delay: 150ms; }
[data-pg-library="maple-ui"] [data-pg-motion-trigger="load"][data-pg-motion-delay="200"] { animation-delay: 200ms; }
[data-pg-library="maple-ui"] [data-pg-motion-trigger="load"][data-pg-motion-delay="250"] { animation-delay: 250ms; }
[data-pg-library="maple-ui"] [data-pg-motion-trigger="load"][data-pg-motion-delay="300"] { animation-delay: 300ms; }
[data-pg-library="maple-ui"] [data-pg-motion-trigger="load"][data-pg-motion-delay="350"] { animation-delay: 350ms; }
[data-pg-library="maple-ui"] [data-pg-motion-trigger="load"][data-pg-motion-delay="400"] { animation-delay: 400ms; }
[data-pg-library="maple-ui"] [data-pg-motion-trigger="load"][data-pg-motion-delay="450"] { animation-delay: 450ms; }
[data-pg-library="maple-ui"] [data-pg-motion-trigger="load"][data-pg-motion-delay="500"] { animation-delay: 500ms; }
[data-pg-library="maple-ui"] [data-pg-motion-trigger="load"][data-pg-motion-delay="550"] { animation-delay: 550ms; }
[data-pg-library="maple-ui"] [data-pg-motion-trigger="load"][data-pg-motion-delay="600"] { animation-delay: 600ms; }
[data-pg-library="maple-ui"] [data-pg-motion-trigger="load"][data-pg-motion-delay="650"] { animation-delay: 650ms; }
[data-pg-library="maple-ui"] [data-pg-motion-trigger="load"][data-pg-motion-delay="700"] { animation-delay: 700ms; }
[data-pg-library="maple-ui"] [data-pg-motion-trigger="load"][data-pg-motion-delay="750"] { animation-delay: 750ms; }
[data-pg-library="maple-ui"] [data-pg-motion-trigger="load"][data-pg-motion-delay="800"] { animation-delay: 800ms; }
[data-pg-library="maple-ui"] [data-pg-motion-trigger="load"][data-pg-motion-delay="850"] { animation-delay: 850ms; }
[data-pg-library="maple-ui"] [data-pg-motion-trigger="load"][data-pg-motion-delay="900"] { animation-delay: 900ms; }
[data-pg-library="maple-ui"] [data-pg-motion-trigger="load"][data-pg-motion-delay="950"] { animation-delay: 950ms; }
[data-pg-library="maple-ui"] [data-pg-motion-trigger="load"][data-pg-motion-delay="1000"] { animation-delay: 1000ms; }
}
2. Fonts
Add General Sans to your layout’s<head>:
index.html
<link rel="stylesheet" href="https://api.fontshare.com/v2/css?f%5B%5D=general-sans@400,500,501,600,700&display=swap" />
Beautique Display is a paid font, and Pagifye can’t include it. Until you add it, headings use a serif font such as Georgia instead.
- Want the original look? Buy a web license from its maker, then add it to your site, or ask your AI to: “Add my Beautique Display font files with @font-face, named Beautique Display.”
- Want it free? Pick another bold heading font, for example from Google Fonts, add its link, and change
--font-headingin the theme file to its name.
--font-sans and --font-heading in the theme file.
3. Motion file (optional)
Sections look complete without it. It adds fades as you scroll, counting numbers, tab switching and slider arrows. Save it asmaple-ui.runtime.js in your public folder and load it on every page. Tailwind Setup shows how for Next.js, Astro, React and more. In plain HTML:
index.html
<script src="/maple-ui.runtime.js" defer></script>
maple-ui.runtime.js
(function(){let e={};/*#__NO_SIDE_EFFECTS__*/
function t(e){let t;return()=>(t===void 0&&(t=e()),t)}let n=/* @__NO_SIDE_EFFECTS__ */ e=>e,r=/* @__NO_SIDE_EFFECTS__ */ e=>e*1e3,i=/* @__NO_SIDE_EFFECTS__ */ e=>e/1e3,a=(e,t,n)=>e*(3*(1-e)*((1-e)*t+e*n)+e*e);/*#__NO_SIDE_EFFECTS__*/
function o(e,t,r,i){return e===t&&r===i?n:n=>{let o=0,s=1,c=n;for(let t=0;;t++){c>=o&&c<=s||(c=(o+s)/2);let i=a(c,e,r)-n;if(i*i<1e-28||t===40)break;i>0?s=c:o=c,c-=i*1e-7/(a(c+1e-7,e,r)-n-i)}return a(c,t,i)}}let s=/* @__NO_SIDE_EFFECTS__ */ e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,c=/* @__NO_SIDE_EFFECTS__ */ e=>t=>1-e(1-t),l=/*@__PURE__*/ o(.33,1.53,.69,.99),u=/*@__PURE__*/ c(l),d=/*@__PURE__*/ s(u),f=e=>e>=1?1:(e*=2)<1?.5*u(e):.5*(2-2**(-10*(e-1))),p=e=>1-Math.sin(Math.acos(e)),m=/* @__PURE__ */ c(p),h=/* @__PURE__ */ s(p),g=/*@__PURE__*/ o(.42,0,1,1),_=/*@__PURE__*/ o(0,0,.58,1),v=/*@__PURE__*/ o(.42,0,.58,1),y=/* @__NO_SIDE_EFFECTS__ */ e=>Array.isArray(e)&&typeof e[0]==`number`,b={linear:n,easeIn:g,easeInOut:v,easeOut:_,circIn:p,circInOut:h,circOut:m,backIn:u,backInOut:d,backOut:l,anticipate:f},x=e=>typeof e==`string`,S=e=>{if(/* @__PURE__ */ y(e)){let[t,n,r,i]=e;return/* @__PURE__ */ o(t,n,r,i)}return x(e)?b[e]:e},C={delta:0,timestamp:0,isProcessing:!1},w;function ee(){w=void 0}let T={now:()=>(w===void 0&&T.set(C.isProcessing||e.useManualTiming?C.timestamp:performance.now()),w),set:e=>{w=e,queueMicrotask(ee)}},te=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`};function ne(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a,o,s=0;for(let t=0;t<e.length;t++){let n=e[t];n!==null&&(s++||(a=n),o=n)}let c=i<0||t&&n!==`loop`&&t%2==1?0:s-1;return!c||r===void 0?c?o:a:r}function re(e,t){return{kind:e,animation:t,timestamp:T.now(),frameTimestamp:C.timestamp,frameIsProcessing:C.isProcessing}}function ie(e,t,n){let r=globalThis.__MOTION_INSPECT__;if(r)try{r({...re(`animation-start`,e),options:n?{...t,...n}:t})}catch{}}var ae=class{constructor(){this.isResolved=!1}get finished(){return this._finished||=this.isResolved?Promise.resolve():new Promise(e=>{this._resolve=e}),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(e,t){return this.finished.then(e,t)}};function oe(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}let E=e=>e.startsWith(`--`);function se(e,t,n){E(t)?e.style.setProperty(t,n):e.style[t]=n}let ce={};function D(e,n){let r=/* @__PURE__ */ t(e);return()=>ce[n]??r()}let le=/* @__PURE__ */ D(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),O=/*@__PURE__*/ D(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),k=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,A={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:/*@__PURE__*/ k([0,.65,.55,1]),circOut:/*@__PURE__*/ k([.55,0,1,.45]),backIn:/*@__PURE__*/ k([.31,.01,.66,-.59]),backOut:/*@__PURE__*/ k([.33,1.53,.69,.99])};function j(e,t){if(e)return typeof e==`function`?O()?te(e,t):`ease-out`:/* @__PURE__ */ y(e)?k(e):Array.isArray(e)?e.map(e=>j(e,t)||A.easeOut):A[e]}function ue(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=j(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function de(e){return typeof e==`function`&&`applyToOptions`in e}function fe({type:e,...t}){return de(e)&&O()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var pe=class extends ae{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e;let c=fe(e);this.animation=ue(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=this.onFinish=()=>{if(this.animation.onfinish=null,this.finishedTime=this.time,!i){let e=ne(r,this.options,o,this.speed);this.updateMotionValue?.(e),se(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()},ie(this,e,c)}play(){this.isStopped||(this.manualStartTime=null,this.animation.onfinish=this.onFinish,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.isStopped||(this.animation.onfinish=this.onFinish),this.animation.finish?.()}cancel(){this.animation.onfinish=null;try{this.animation.cancel()}catch{}}stop(){this.isStopped||(this.isStopped=!0,this.state!==`idle`&&this.finishedTime===null&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel()))}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return/* @__PURE__ */ i(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+/* @__PURE__ */ i(e)}get time(){return/* @__PURE__ */ i(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=/* @__PURE__ */ r(e),t&&(this.animation.pause(),this.updateFinished())}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,onAttach:t,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=this.onFinish=null,e&&le()?(this.animation.timeline=e,t?.(this.animation),n):r(this)}},me=class{constructor(e){this.stop=()=>{for(let e of this.animations)e.stop()},this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){for(let t of this.animations)t.time=e}get speed(){return this.getAll(`speed`)}set speed(e){for(let t of this.animations)t.speed=e}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return M(this.animations,`duration`)}get iterationDuration(){return M(this.animations,`iterationDuration`)}play(){for(let e of this.animations)e.play()}pause(){for(let e of this.animations)e.pause()}cancel(){for(let e of this.animations)e.cancel()}complete(){for(let e of this.animations)e.complete()}};function M(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];i!==null&&i>n&&(n=i)}return n}var he=class extends me{then(e,t){return this.finished.finally(e).then(()=>{})}};let N=/* @__PURE__ */ new WeakMap,P=(e,t=``)=>`${e}:${t}`;function F(e){let t=N.get(e);return t||(t=/* @__PURE__ */ new Map,N.set(e,t)),t}function I(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function L(e,t){let n=e?.[t]??e?.default??e;return n===e?n:I(n,e)}let R=/* @__PURE__ */ new Set(/* @__PURE__ */ `borderWidth.borderTopWidth.borderRightWidth.borderBottomWidth.borderLeftWidth.borderRadius.borderTopLeftRadius.borderTopRightRadius.borderBottomRightRadius.borderBottomLeftRadius.width.maxWidth.height.maxHeight.top.right.bottom.left.inset.insetBlock.insetBlockStart.insetBlockEnd.insetInline.insetInlineStart.insetInlineEnd.padding.paddingTop.paddingRight.paddingBottom.paddingLeft.paddingBlock.paddingBlockStart.paddingBlockEnd.paddingInline.paddingInlineStart.paddingInlineEnd.margin.marginTop.marginRight.marginBottom.marginLeft.marginBlock.marginBlockStart.marginBlockEnd.marginInline.marginInlineStart.marginInlineEnd.fontSize.backgroundPositionX.backgroundPositionY`.split(`.`));function ge(e,t){for(let n=0;n<e.length;n++)typeof e[n]==`number`&&R.has(t)&&(e[n]=e[n]+`px`)}let z={};function _e(e){return z.current?.add(e),e}let ve=e=>z.current?z.current.bind(e):e;function B(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=t?t.current:z.current?.root||document,i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}function V(e,t){let n=window.getComputedStyle(e);return E(t)?n.getPropertyValue(t):n[t]}function ye(e=.1,{startDelay:t=0,from:n=0,ease:r,grid:i}={}){let a={};return(o,s)=>{let c=a[s];if(!c){let[e,t]=i||[1/0,1],r=Math.min(e,s)-1,o=Math.max(t,Math.ceil(s/e))-1,l=typeof n==`number`,u=n===`first`?0:n===`last`?1:.5,d=l?n%e:r*u,f=l?Math.floor(n/e):o*u;c=a[s]=[];for(let t=0;t<s;t++){let i=t%e,a=Math.floor(t/e),s=Math.min(i,r-i),l=Math.min(a,o-a);if(n===`random`){let e=Math.random()*(t+1)|0;c[t]=c[e],c[e]=t}else c[t]=n===`edges`?Math.min(r?s:l,o?l:s):Math.hypot(i-d,a-f)}c.push(i?Math.max(...c):s)}let l=e*c[o],u=e*c[s];return r&&u&&(l=S(r)(l/u)*u),t+l}}function be(e,t,n,r){let i=[];return xe(i,e,t,n,r),Se(i)}function xe(e,t,n,i,a){if(t==null)return;let o=B(t,a),s=o.length;for(let t=0;t<s;t++){let a=o[t],c={...i};typeof c.delay==`function`&&(c.delay=c.delay(t,s));for(let t in n){let i=n[t];Array.isArray(i)||(i=[i]);let o={...L(c,t)};o.duration&&=/* @__PURE__ */ r(o.duration),o.delay&&=/* @__PURE__ */ r(o.delay);let s=F(a),l=P(t,o.pseudoElement||``),u=s.get(l);u&&u.stop(),e.push({map:s,key:l,unresolvedKeyframes:i,options:{...o,element:a,name:t,allowFlatten:!c.type&&!c.ease}})}}}function Se(e){for(let t=0;t<e.length;t++){let{unresolvedKeyframes:n,options:r}=e[t],{element:i,name:a,pseudoElement:o}=r;!o&&n[0]===null&&(n[0]=V(i,a)),oe(n),ge(n,a),!o&&n.length<2&&n.unshift(V(i,a)),r.keyframes=n}let t=[];for(let n=0;n<e.length;n++){let{map:r,key:i,options:a}=e[n],o=new pe(a);r.set(i,o),o.finished.finally(()=>r.delete(i)),t.push(o)}return t}let Ce=/*@__PURE__*/ (e=>{function t(t,n,r){return new he(be(t,n,r,e))}return t})(),we={some:0,all:1};function Te(e,t,{root:n,margin:r,amount:i=`some`}={}){let a=B(e);t=ve(t);let o=/* @__PURE__ */ new WeakMap,s=new IntersectionObserver(e=>{e.forEach(e=>{let n=o.get(e.target);if(e.isIntersecting!==!!n){if(e.isIntersecting){let n=t(e.target,e);typeof n==`function`?o.set(e.target,n):s.unobserve(e.target)}else typeof n==`function`&&(n(e),o.delete(e.target))}})},{root:n,rootMargin:r,threshold:typeof i==`number`?i:we[i]});return a.forEach(e=>s.observe(e)),_e(()=>s.disconnect())}let H=`data-pg-motion`,U=`data-pg-motion-state`,W=`data-pg-motion-stagger`,G=`data-pg-motion-ready`,K=`data-pg-behavior`,q=`data-pg-behavior-ready`,Ee={some:`some`,half:.5,all:`all`},De=/* @__PURE__ */ new Set([`first`,`last`,`center`]),Oe=()=>performance.getEntriesByName(`first-contentful-paint`).length>0,J=e=>{let t=e.getBoundingClientRect();return t.top<innerHeight&&t.bottom>0},Y=e=>e.parentElement?.closest(`[${W}], [${H}]`),X=(e,t,n)=>e.getAttribute(`${H}-${t}`)??n;function ke({library:e,config:t,kinds:n,behaviors:r={}}){window.pg??={};let i=window.pg[e];if(i)return i;let{tokens:a}=t,o={};for(let[e,r]of Object.entries(t.presets)){let t=n[r.kind]?.(r,a);t&&(o[e]=t)}let s=document.documentElement,c=matchMedia(`(prefers-reduced-motion: reduce)`),l=/* @__PURE__ */ new Set,u=/* @__PURE__ */ new Set,d=()=>s.getAttribute(`data-pg-motion-mode`)??(c.matches?`reduce`:`full`),f=t=>t.closest(`[data-pg-library]`)?.getAttribute(`data-pg-library`)===e,p=e=>o[e.getAttribute(H)??``];function m(e){let t=[];for(let n of e.querySelectorAll(`[${W}]`)){let e=[...n.querySelectorAll(`[${H}]`)].filter(e=>Y(e)===n);t.push({trigger:n,items:e})}for(let n of e.querySelectorAll(`[${H}]`))Y(n)?.hasAttribute(W)||t.push({trigger:n,items:[n]});return t.filter(e=>e.items.length>0&&!e.trigger.hasAttribute(U)&&f(e.trigger))}function h({trigger:e,items:t}){let n=Number(X(e,`delay`,`0`))/1e3,r=X(e,`from`,`first`),i=r===`edges`?(e,t)=>n+a.stagger*Math.min(e,t-1-e):ye(a.stagger,{from:De.has(r)?r:`first`,startDelay:n}),o=[];return t.forEach((e,r)=>{let a=p(e);a&&(e.setAttribute(U,`pending`),o.push({el:e,handle:a(e,{delay:t.length>1?i(r,t.length):n})}))}),e.setAttribute(U,`pending`),{handles:o,play:()=>{e.setAttribute(U,`running`);let t=o.map(({el:e,handle:t})=>(l.add(t),t.play().then(()=>{l.delete(t),e.setAttribute(U,`done`)})));Promise.all(t).then(()=>e.setAttribute(U,`done`))}}}function g(e,t){let n=d()===`full`,r=/* @__PURE__ */ new Map;for(let i of m(e)){let e=X(i.trigger,`trigger`,`in-view`)===`load`;if(e&&i.items.every(e=>p(e)?.css))continue;if(!n||!e&&t&&J(i.trigger)){i.trigger.setAttribute(U,`done`);continue}let o=h(i);if(e||J(i.trigger)){o.play();continue}let s=X(i.trigger,`amount`,a.inView.amount),c=r.get(s)??/* @__PURE__ */ new Map;c.set(i.trigger,{...o,once:X(i.trigger,`once`,`true`)!==`false`}),r.set(s,c)}for(let[e,t]of r){let n=Te([...t.keys()],e=>{let n=t.get(e);if(n&&(n.play(),!n.once))return()=>n.handles.forEach(({handle:e})=>e.reset())},{amount:Ee[e]??`some`,margin:a.inView.margin});u.add(n)}}function _(e){for(let t of e.querySelectorAll(`[${K}]:not([${q}])`)){let e=r[t.getAttribute(K)??``];e&&f(t)&&(e(t),t.setAttribute(q,``))}}function v(t=document,{late:n=!1}={}){let r=new Set((s.getAttribute(G)??``).split(` `).filter(Boolean)).add(e);s.setAttribute(G,[...r].join(` `)),_(t),g(t,n)}function y(e=document){u.forEach(e=>e()),u.clear(),l.forEach(e=>e.finish());for(let t of e.querySelectorAll(`[${U}]`))if(f(t)){t.getAnimations().forEach(e=>e.cancel()),t.removeAttribute(U);for(let e of[`opacity`,`transform`,`filter`])t.style.removeProperty(e)}}function b(e=document){y(e);for(let t of e.querySelectorAll(`[${H}-trigger="load"]`))f(t)&&t.getAnimations().forEach(e=>{e.cancel(),e.play()});v(e)}c.addEventListener(`change`,()=>{c.matches&&l.forEach(e=>e.finish())});let x={init:v,reset:y,replay:b,presets:Object.keys(o)};window.pg[e]=x;let S=()=>v(document,{late:Oe()});return document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,S,{once:!0}):S(),x}let Ae={"--previous":-1,"--next":1};function je(e,t,n){let r=Math.abs(n.at);return{start:r<2,end:r>n.max-2,hidden:t.map(t=>t.right-e.left<1||e.right-t.left<1)}}function Me(e,t,n,r){let[i,a]=e,o=i&&a?a.left-i.left:t.width,s=Math.abs(o)||1,c=r&&Math.min(r.from,r.to)-2<t.at&&t.at<Math.max(r.from,r.to)+2,l=Math.abs(c?r.to:t.at)/s,u=n>0?Math.floor(l+2/s):Math.ceil(l-2/s);return Math.sign(o)*Math.min(t.max,Math.max(0,(u+n)*s))}let Ne=e=>{let t=[...e.querySelectorAll(`button[type="button"][command]`)].flatMap(t=>{let n=Ae[t.getAttribute(`command`)??``];return n&&t.closest(`[data-pg-behavior]`)===e?[{button:t,direction:n}]:[]}),n=t[0]?.button.getAttribute(`commandfor`),r=n?e.querySelector(`#${CSS.escape(n)}`):null;if(!r)return;let i=[...r.children],a=matchMedia(`(prefers-reduced-motion: reduce)`),o=0,s,c,l=``,u=()=>({at:r.scrollLeft,max:r.scrollWidth-r.clientWidth}),d=()=>i.map(e=>e.getBoundingClientRect()),f=()=>{c=void 0},p=()=>{o=0,c&&Math.abs(r.scrollLeft-c.to)<2&&f();let{start:e,end:n,hidden:a}=je(r.getBoundingClientRect(),d(),u()),s=a.map((e,t)=>e&&!i[t]?.contains(document.activeElement)),p=JSON.stringify([e,n,s]);if(p!==l){l=p;for(let{button:r,direction:i}of t)r.setAttribute(`aria-disabled`,String(i<0?e:n));i.forEach((e,t)=>{e.inert=s[t]??!1})}},m=()=>{o||=requestAnimationFrame(p)};for(let{button:e,direction:n}of t)e.addEventListener(`click`,()=>{let e=u();c={from:e.at,to:Me(d(),{...e,width:r.clientWidth},n,c)};let t=document.documentElement.getAttribute(`data-pg-motion-mode`)??(a.matches?`reduce`:`full`);r.scrollTo({left:c.to,behavior:t===`full`?`smooth`:`instant`}),m()});r.addEventListener(`scroll`,()=>{clearTimeout(s),s=setTimeout(f,150),m()},{passive:!0}),r.addEventListener(`focusin`,m),r.addEventListener(`focusout`,m);let h=new ResizeObserver(m);for(let e of[r,...i])h.observe(e);p()},Pe=e=>{let t=e.querySelector(`[role="tablist"]`);if(!t)return;let n=[...t.querySelectorAll(`[role="tab"]`)],r=t=>{let n=t.getAttribute(`aria-controls`);return n?e.querySelector(`#${CSS.escape(n)}`):null},i=(e,t)=>{for(let t of n){let n=t===e;t.setAttribute(`aria-selected`,String(n)),t.tabIndex=n?0:-1;let i=r(t);i&&(i.hidden=!n)}t&&e.focus()};t.addEventListener(`click`,e=>{let t=e.target.closest(`[role="tab"]`);t&&n.includes(t)&&i(t,!1)}),t.addEventListener(`keydown`,e=>{let t=n.indexOf(document.activeElement);if(t<0)return;let r={ArrowRight:t+1,ArrowLeft:t-1,Home:0,End:n.length-1}[e.key];if(r===void 0)return;e.preventDefault();let a=n[(r+n.length)%n.length];a&&i(a,!0)});let a=n.find(e=>e.getAttribute(`aria-selected`)===`true`)??n[0];a&&i(a,!1)},Fe=/\d{1,3}(?:,\d{3})+(?:\.\d+)?|\d+(?:\.\d+)?/;function Ie(e){let t=Fe.exec(e);if(!t)return null;let[n]=t,[r=``,i=``]=n.replaceAll(`,`,``).split(`.`),a=Number(n.replaceAll(`,`,``)),o=e.slice(0,t.index),s=e.slice(t.index+n.length);return e=>{let[t=``,c]=(a*Math.max(0,e)).toFixed(i.length).split(`.`),l=r.startsWith(`0`)?t.padStart(r.length,`0`):t,u=n.includes(`,`)?l.replace(/\B(?=(\d{3})+(?!\d))/g,`,`):l;return`${o}${u}${c?`.${c}`:``}${s}`}}function Z(e,t){let n=e.textContent??``,r=Ie(n),i=0,a,o,s=!1,c=()=>{cancelAnimationFrame(i),clearTimeout(a),s&&(s=!1,e.style.removeProperty(`min-width`),e.style.removeProperty(`text-align`),e.textContent=n)},l=()=>{c(),o?.(),o=void 0};return{play:()=>new Promise(n=>{if(o=n,!r)return l();a=setTimeout(()=>{e.style.minWidth=`${e.offsetWidth/parseFloat(getComputedStyle(e).fontSize)}em`,e.style.textAlign=`end`,s=!0;let n=performance.now(),a=o=>{let s=Math.min((o-n)/(t.duration*1e3),1);if(s===1)return l();e.textContent=r(t.ease(s)),i=requestAnimationFrame(a)};a(n)},t.delay*1e3)}),finish:l,reset:()=>{c(),o=void 0}}}let Le=(e,t)=>{let n=e.speed??`base`,[r=0,i=0,a=1,s=1]=t.ease,c=/* @__PURE__ */ o(r,i,a,s);return(e,{delay:r})=>Z(e,{duration:t.duration[n],delay:r,ease:c})},Re={opacity:`opacity`,transform:`transform`,filter:`filter`},ze=[`distance`,`scale`,`blur`];function Q(e,t){if(typeof e==`number`)return e;let n=e.startsWith(`-`),r=n?e.slice(1):e;if(ze.includes(r)){let e=t[r];return n?-e:e}return e}let $=e=>typeof e==`number`?`${e}px`:e;function Be(e,t){let n=Q(e.x??0,t),r=Q(e.y??0,t),i=Q(e.scale??1,t),a=Q(e.blur??0,t),o=e.opacity??0,s={};return o!==1&&(s.opacity=o),(n||r||i!==1)&&(s.transform=`translate(${$(n)}, ${$(r)}) scale(${i})`),a&&(s.filter=`blur(${$(a)})`),s}function Ve(e,t,n){let r=getComputedStyle(e),i=Object.fromEntries(Object.entries(t).map(([e,t])=>[e,[t,r.getPropertyValue(e)]])),a=Ce(e,i,{duration:n.duration,delay:n.delay,ease:[...n.ease],autoplay:!1}),o=()=>Object.keys(i).forEach(t=>e.style.removeProperty(Re[t]));return{play:()=>(a.play(),a.finished.then(o)),finish:()=>a.complete(),reset:()=>{a.pause(),a.time=0}}}ke({library:`maple-ui`,config:{tokens:{duration:{fast:.3,base:.9,slow:1.4},ease:[.16,1,.3,1],distance:40,scale:.94,blur:10,stagger:.09,inView:{margin:`0px 0px -12% 0px`,amount:`some`}},presets:{fade:{kind:`reveal`,from:{}},fill:{kind:`reveal`,from:{opacity:.2}},"fade-up":{kind:`reveal`,from:{y:`distance`}},"fade-down":{kind:`reveal`,from:{y:`-distance`}},"fade-left":{kind:`reveal`,from:{x:`distance`}},"fade-right":{kind:`reveal`,from:{x:`-distance`}},"scale-in":{kind:`reveal`,from:{scale:`scale`}},"blur-in":{kind:`reveal`,from:{blur:`blur`}},"rise-soft":{kind:`reveal`,from:{y:`distance`,blur:6},speed:`slow`},settle:{kind:`reveal`,from:{scale:1.12,opacity:1},speed:`slow`},"line-up":{kind:`reveal`,from:{y:`110%`,opacity:1},speed:`slow`},count:{kind:`counter`,speed:`slow`}},animations:{marquee:{keyframes:{from:{transform:`translateX(0)`},to:{transform:`translateX(-100%)`}},duration:`40s`,timing:`linear`,iterations:`infinite`},"marquee-reverse":{keyframes:{from:{transform:`translateX(-100%)`},to:{transform:`translateX(0)`}},duration:`40s`,timing:`linear`,iterations:`infinite`},drift:{keyframes:{"0%":{transform:`translate(0, 0) scale(1)`},"50%":{transform:`translate(4%, -6%) scale(1.08)`},"100%":{transform:`translate(0, 0) scale(1)`}},duration:`18s`,timing:`ease-in-out`,iterations:`infinite`},"spin-slow":{keyframes:{to:{transform:`rotate(360deg)`}},duration:`24s`,timing:`linear`,iterations:`infinite`},parallax:{keyframes:{from:{transform:`translateY(-8%)`},to:{transform:`translateY(8%)`}},duration:`1s`,timing:`linear`,iterations:`1`}}},kinds:{reveal:(e,t)=>{let n=Be(e.from,t),r=e.speed??`base`;return Object.assign((e,{delay:i})=>Ve(e,n,{duration:t.duration[r],delay:i,ease:t.ease}),{css:!0})},counter:Le},behaviors:{slider:Ne,tabs:Pe}})})();