efficient-storefront-blocks 0.130.6 → 0.130.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/chunks/{CustomHtmlCodeWindow-Q52YFW2U.js → CustomHtmlCodeWindow-WDJYQRZA.js} +1 -1
- package/dist/chunks/{EditorPreviewCheckout-E4WBOYOR.js → EditorPreviewCheckout-HMNAHJIE.js} +1 -1
- package/dist/chunks/SiteEditorProvider-JT4ASGS5.js +1 -0
- package/dist/chunks/{chunk-NVAI6WFJ.js → chunk-3YVTYYIP.js} +1 -1
- package/dist/chunks/{chunk-LNFDRN7J.js → chunk-7QM6BBAM.js} +2 -2
- package/dist/chunks/{chunk-2ESL6V6A.js → chunk-HEKC2QYZ.js} +1 -1
- package/dist/chunks/{chunk-UT3TWN4Y.js → chunk-KCZDH44S.js} +1 -1
- package/dist/chunks/{chunk-MWASWPCB.js → chunk-LWJKGQLZ.js} +1 -1
- package/dist/chunks/{chunk-RQM4VZZW.js → chunk-NOV6LTTJ.js} +1 -1
- package/dist/chunks/{chunk-RYJPQW5E.js → chunk-QAUFSKVD.js} +1 -1
- package/dist/chunks/{chunk-F36A4DQB.js → chunk-TQIJVK3T.js} +1 -1
- package/dist/chunks/{fitment-data-D7EDIBQ7.js → fitment-data-I4QRQRK6.js} +1 -1
- package/dist/chunks/{section-css-style-IGADRKZW.js → section-css-style-TB33NIO4.js} +1 -1
- package/dist/index.js +24 -24
- package/dist/render/built-with.json +1 -1
- package/dist/routine-index.json +1 -1
- package/dist/value-index.json +1 -1
- package/package.json +1 -1
- package/dist/chunks/SiteEditorProvider-XWNSHTWJ.js +0 -1
- /package/dist/chunks/{chunk-Z7GIOCFP.js → chunk-3DKV2YJ6.js} +0 -0
- /package/dist/chunks/{chunk-PWMBT2HT.js → chunk-5OXXOEE7.js} +0 -0
- /package/dist/chunks/{chunk-LNFDRN7J.js.LEGAL.txt → chunk-7QM6BBAM.js.LEGAL.txt} +0 -0
- /package/dist/chunks/{chunk-2ESL6V6A.js.LEGAL.txt → chunk-HEKC2QYZ.js.LEGAL.txt} +0 -0
- /package/dist/chunks/{chunk-ATQPMU57.js → chunk-RCXMXKPT.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$ as af,D as Ok,E as Ek,F as Qd,G as _k,H as Nk,I as Cr,J as Mk,K as Hk,L as Wk,M as at,N as ef,O as Co,P as de,R as of,S as kr,T as tf,X as $k,Y as rf,Z as vr,_ as zk,a as qo,b as Vs,ba as Qv,c as zd,d as yn,e as Ys,f as nk,fa as fP,g as Sn,h as Ud,ha as cP,ia as Rf,ja as MT,ka as HT,r as ol,t as Tk}from"./chunk-RYJPQW5E.js";import{a as hP,d as gf,e as nt,f as yf,g as Sf,h as kf,l as Ux}from"./chunk-ATQPMU57.js";import{$ as In,$a as pk,$c as wv,$e as yP,$i as ar,$j as Ff,A as wC,Aa as YC,Ab as Ht,Ac as sv,Ad as Hv,Ah as fT,Aj as ST,Al as Ln,B as CC,Ba as XC,Bb as wn,Bc as lv,Bd as Wv,Be as Ct,Bh as cT,Bj as bT,Bk as Hx,Bl as Nf,C as ot,Ca as ZC,Cb as el,Cc as $t,Cd as $v,Cf as _P,Ch as pT,Cj as Rx,D as kC,Da as JC,Dc as Ue,Dd as zv,De as je,Df as Tx,Dg as VP,E as vC,Ea as QC,Ec as Pr,Ed as bx,Ee as kt,Ef as AP,Eg as YP,Ej as En,F as PC,Fa as ek,Fb as mx,Fc as Ix,Fd as Uv,Fe as Te,Ff as FP,Fg as XP,Fj as wT,G as TC,Ga as Sr,Gb as aa,Gc as iv,Gd as wx,Ge as mP,Gf as BP,Gg as ZP,H as OC,Ha as ok,Hb as Jd,Hc as dv,Hd as jv,Hf as LP,Hg as JP,Hk as Bf,I as EC,Ib as kk,Ic as fv,Id as Gv,Ig as _x,Ij as Dx,Ik as Lf,J as _C,Ja as tk,Jb as vk,Jc as pf,Jd as Kv,Jf as RP,Jg as QP,Jj as dl,Jk as Wx,Ka as jd,Kb as Pk,Kc as rl,Kd as zt,Ke as Cx,Kg as Ax,Kk as LT,L as AC,La as Xs,Lb as nf,Lc as cv,Ld as qv,Lg as rr,Lk as pa,M as FC,Ma as Gd,Mb as Gk,Mc as pv,Md as ia,Mg as Fx,Mj as _n,Mk as RT,N as BC,Na as sk,Nb as sf,Nc as uv,Nd as Vv,Ne as ll,Ng as Pf,Nk as DT,O as Dd,Ob as hx,Oc as uf,Od as Pn,Og as eT,Oj as CT,Ok as NT,P as LC,Pb as lf,Pc as mv,Pg as oT,Q as RC,Qc as xv,Qd as or,Qf as DP,Qg as tT,Qk as WT,Ra as lk,Rc as gx,Rd as Yv,Re as xP,Rf as NP,Rg as rT,Rk as $x,Sa as ik,Sc as hv,Sd as sl,Se as kx,Sf as MP,Sg as aT,Ta as Zs,Tc as vn,Td as Xv,Te as IP,Tf as Ox,Tk as $T,Ub as Cn,Ud as da,Uf as HP,Uk as zT,V as ax,Va as bn,Vc as Iv,Vd as Zv,Vf as WP,Vg as nT,Vk as UT,Wa as dk,Wc as gv,Wf as Ex,Wg as sT,Wj as kT,Wk as jT,X as Gs,Xa as Kd,Xb as Kk,Xc as yv,Xd as mf,Xj as Nx,Xk as GT,Y as Nd,Ya as fk,Yb as qk,Yc as Sv,Yd as Or,Yj as vT,Yk as KT,Z as Fo,Za as Js,Zb as Vk,Zc as bv,Zd as Jv,Zi as ca,Zj as PT,_ as nx,_a as ck,_b as tl,_c as na,_e as gP,_f as tr,a as Ao,aa as DC,ab as cx,ad as yx,af as bf,ag as Tn,ak as An,b as mn,ba as NC,bb as uk,bd as Cv,bf as SP,bi as uT,bk as Fn,ca as MC,cb as qd,cd as kv,cf as vx,cg as $P,ch as Tf,ci as mT,ck as fl,d as aC,da as HC,db as mk,dd as vv,df as bP,dg as zP,dk as Bn,e as ex,ea as WC,eb as px,ed as Pv,ef as wP,eg as vf,ek as TT,f as nC,fa as sx,fd as Tv,fe as eP,ff as CP,fg as Er,g as c,gb as xk,gd as Tr,gf as kP,gg as UP,gj as _f,h as Mt,ha as $C,hb as hk,hd as al,hf as wf,i as hn,ia as Md,id as sa,ie as oP,ig as On,ih as lT,ij as IT,j as Us,jb as Vd,jc as kn,jd as Ov,je as tP,jf as vP,k as Mo,kb as Ik,kc as Wt,ke as rP,kh as iT,l as js,lb as gk,lc as Yk,ld as la,lk as OT,mb as yk,mc as Xk,md as nl,mf as Px,mi as xT,mk as ET,n as uC,nb as Sk,nc as Zk,nd as Ev,ni as hT,nl as zx,o as mC,ob as Yd,oc as Jk,od as _v,p as xC,pb as bk,pc as Qk,pe as Ho,q as hC,qc as df,qd as Av,qe as Je,r as IC,rc as ff,rd as Fv,rf as PP,rg as _r,s as gC,sb as wk,sc as ev,sd as Bv,se as xf,sf as TP,sg as jP,t as yC,tb as br,te as aP,tf as Cf,tg as GP,tk as Mx,u as Rd,ub as Xd,uc as ov,ud as Lv,ue as nP,uf as OP,ug as KP,uh as Bx,uj as gT,v as yr,va as GC,vb as Zd,vc as tv,vd as Rv,ve as sP,vf as EP,vh as Of,vk as _T,vl as qT,wa as KC,wb as Ck,wc as rv,wd as Dv,we as lP,wh as fa,wk as AT,wl as VT,x as rx,xa as qC,xb as po,xc as cf,xd as Nv,xe as hf,xh as Ef,xj as yT,xk as FT,xl as Df,y as SC,ya as VC,yb as ux,yc as av,yd as Sx,ye as iP,yj as Af,yl as YT,z as bC,za as dx,zb as Qs,zc as nv,zd as Mv,ze as dP,zg as qP,zh as dT,zj as Lx,zk as BT}from"./chunk-F36A4DQB.js";import{a as cC,b as Ld,c as pC,g as Uk,h as xx,i as jk}from"./chunk-RQM4VZZW.js";import{$ as xb,$a as Db,$c as wo,$d as hw,$e as Xm,$g as tx,A as ro,Ae as qm,Af as Jm,B as tn,Bb as Ms,Bd as Gm,Be as Sw,Ca as Ie,Cb as Zb,D as Rs,Dd as cw,De as Vm,E as sd,Ed as yd,F as Lt,Fg as Xw,G as rn,Ga as Qo,Gb as hd,Gd as et,Gg as Zw,H as ze,Ha as St,Hc as rw,Hd as No,He as wd,Hf as Lw,Hg as Jw,I as qe,Ia as Pm,Id as Ze,Ie as Cd,Ig as Qw,J as an,Ja as Tm,Jc as Wm,Jd as Dt,Je as bw,Jh as fx,K as ld,Kd as Qt,Ke as kd,Kf as er,Kh as gn,L as ib,La as Om,Lb as Jb,Ld as wt,Le as vd,Lg as eC,Lh as rk,M as db,Ma as Em,Md as fn,Me as ww,Mh as tt,Nd as pw,Ne as Cw,Nh as rt,O as fb,Od as cn,Oe as Pd,Og as oC,Oh as $d,P as id,Pd as uw,Pe as Td,Pg as tC,Ph as ak,Q as cb,Qa as _m,Qb as Id,Qc as aw,Qe as ra,Qf as Rw,Qh as qs,R as Qr,Ra as Ob,Re as kw,Rg as rC,S as pb,Sa as Eb,T as ub,Ta as Ge,Tb as Qb,Td as ta,Tg as sC,Th as Ak,U as Ds,Ua as _b,Ub as ew,Ud as mw,Ug as lC,V as km,Va as ud,Vd as xw,Ve as vw,W as we,Wa as Ab,Wb as ow,Wd as pn,Wf as Dw,Wg as gr,X as K,Xa as Fb,Xc as U,Xd as Ws,Xf as Nw,Xh as Fk,Y as mb,Ya as Bb,Yb as Nm,Yc as re,Yd as $s,Ye as Nt,Yf as Mw,Yg as iC,Za as Lb,Zc as $m,Zd as Km,Ze as zs,Zf as Hw,Zg as ox,_ as dd,_a as Rb,_c as L,_e as Ym,_g as dC,a as on,ab as Nb,ad as Zt,ae as Iw,af as Pw,ah as Bd,b as fo,ba as hb,bb as Mb,bd as nw,be as gw,bf as Tw,bg as Ww,c as to,ca as fd,cb as md,cd as W,cf as Od,cg as $w,ch as fC,ci as Bk,d as Yt,da as Ib,db as xd,dd as gd,de as yw,df as Ow,di as wr,ea as gb,eb as Hb,ed as Do,eg as zw,f as Ko,fa as vm,fb as Wb,fc as Mm,fd as sw,fe as Sd,fg as Uw,fi as Lk,g as Ls,ga as yb,gd as bt,gf as Ew,gg as Ad,gi as Rk,h as eb,ha as Sb,hb as $b,hd as Rt,he as bd,hf as Ed,hg as jw,hi as Dk,i as ob,ia as bb,ib as zb,id as zm,if as _w,ig as Fd,j as tb,jb as Am,jd as hr,jf as Zm,jg as Qm,k as rb,kb as Ub,kd as Jt,kf as Aw,la as wb,lb as jb,ld as lw,lf as Fw,li as ko,ma as Cb,mb as Fm,mf as _d,mg as Gw,na as kb,nb as sn,nd as Fe,nf as un,ng as Kw,o as ab,ob as ea,od as oa,of as xn,pa as vb,pb as Bm,pd as Hs,pf as Ir,pi as il,qb as Lm,qd as ln,qg as qw,qh as lx,ra as Pb,rb as Rm,rd as iw,rg as Vw,rh as Hd,s as nb,sa as cd,sb as Gb,sd as Um,sh as zC,ta as Tb,tb as Kb,td as dn,tf as Bw,th as ix,u as Ne,ua as pd,ub as qb,uc as Hm,ud as jm,ug as Yw,uh as UC,v as sb,vb as Dm,w as nd,wb as Vb,wc as tw,wh as Wd,x as lb,xb as Xt,xh as jC,ya as Ns,yb as Yb,yd as dw,yh as Ks,z as Pe,za as nn,zb as Xb,zd as fw}from"./chunk-UT3TWN4Y.js";import{a as z,b as co}from"./chunk-PWMBT2HT.js";import{c as pP,d as uP,e as If}from"./chunk-Z7GIOCFP.js";import{jsx as jx,Fragment as Y4,jsxs as X4}from"react/jsx-runtime";import{createContext as Z4,useContext as J4}from"react";var Q4={mirrorHostStyles:!0,css:null,fontHrefs:[]},XT=Z4(Q4);function hne({value:e,children:o}){return jx(XT.Provider,{value:e,children:o})}function cl(){return J4(XT)}function ZT(){let{css:e,fontHrefs:o}=cl();return X4(Y4,{children:[o.map(t=>jx("link",{rel:"stylesheet",href:t},t)),e?jx("style",{"data-sf-canvas-css":"",children:e}):null]})}import{jsx as e6}from"react/jsx-runtime";import{createContext as o6,useContext as t6}from"react";var JT=o6(void 0);function Sne({metadata:e,children:o}){return e6(JT.Provider,{value:e,children:o})}var QT=()=>t6(JT);import{jsx as lo,Fragment as R4,jsxs as Qi}from"react/jsx-runtime";import{useCallback as _s,useEffect as qt,useRef as zae,useState as A4}from"react";import{SettingsSwitch as Uae}from"efficient-easel/panel";import{PagesIcon as jae,StylesIcon as Gae}from"efficient-easel/rail";import{PaletteIcon as Kae}from"efficient-shell/icons/efficient";import{Subtree as qae,TreeRow as D4}from"efficient-easel/tree";import{useEasel as N4}from"efficient-easel/easel";import{toItemSelector as Vae}from"efficient-easel/node-ops";import{useEaselStrings as M4}from"efficient-easel/strings";import{createContext as r6,useContext as a6}from"react";var Gx=r6(!1),Cne=()=>a6(Gx);import{useMemo as n6,useRef as s6}from"react";import{useEaselApi as l6}from"efficient-easel/easel";import{useSectionOps as i6}from"efficient-easel/screen/lib/document/use-section-ops";function Mf(){let e=l6(),o=i6(),t=s6(o);return t.current=o,n6(()=>({getItemById:r=>e.getState().getItemById(r),getSelectorForId:r=>e.getState().getSelectorForId(r),get components(){return e.getState().config.components},replace:(r,a,n)=>t.current.replaceComponent(r,a,n)}),[e])}import{encodePartId as E6}from"efficient-easel/draw";import{insertAt as _6,moveTo as A6,removeAt as F6}from"efficient-easel/fields";import{useSyncExternalStore as w6}from"react";import{isNodeList as e0}from"efficient-easel/data";var o0="Flex";function Rn(e,o){return Nt(e)?typeof e?.[Ko]=="string"?Kx(o?.[Ko]):"":Kx(e?.[Ko])}var Kx=e=>typeof e=="string"?e.trim():"",d6=e=>e.type===ro&&Array.isArray(e.props?.[Vm])&&e.props[Vm].some(o=>Kx(o?.[Ko])!==""),f6=new Intl.NumberFormat("en-US");function c6(e){return/^\d+$/.test(e)?f6.format(Number(e)):e}function Bne(e,o){let t=o?o.find(r=>r.key===e)?.value:nb(Ls).find(r=>r.key===e)?.value;return t===void 0?null:c6(t)}var p6={[Ko]:"any"};function qx(e,o=!1){let t=e.props;if(!t)return{node:e,names:!1};let r=e.type==="Text"&&(Rn(t)!==""||o&&Rn(t,p6)!==""),a=o||d6(e),n=qe(e,l=>ze(l,i=>{let d=qx(i,a);return d.names&&(r=!0),d.node})).props;if(e.type!==o0)return{node:n===t?e:{...e,props:n},names:r};let s=Ne(n);if(r&&!s&&(n={...n,[to]:Ls}),!r&&s===Ls){let{[to]:l,...i}=n;n=i}return{node:n===t?e:{...e,props:n},names:!1}}function t0(e,o,t){for(let r of e){if(r?.props?.id===o)return t;for(let a of rn(r??{})){let n=t0(a,o,r.type===o0?r:t);if(n!==void 0)return n}}}function Lne(e,o){if(!e0(e))return!0;let t=t0(e,o,null);if(t===void 0)return!0;if(t===null)return!1;let r=Ne(t.props);return!r||r===Ls}function r0(e){let o=e?.content;if(!e0(o))return e;let t=o.map(r=>qx(r));return t.every((r,a)=>r.node===o[a])?e:{...e,content:t.map(r=>r.node)}}function a0(e){return qx(e).node}import{decodePartId as C6}from"efficient-easel/draw";function Dn(e,o){let t=tv(e);return t?.control==="textList"?o.rowKey===(t.itemKey??"text")?AT(t,o.index):null:rv(e)?.[o.rowKey]??null}function Hf(e,o,t){let r=e.node.props,{key:a,row:n}=Wt(e.propKey),s=n?nv(r,a,n,e.kind,o):ov(r,a,e.kind,o);return s?(t(e.zone,e.index,{...e.node,props:s}),!0):!1}import{readHidable as l0}from"efficient-easel/draw";import{parseOption as u6}from"efficient-shell/format";var Vx=e=>String(e+1).padStart(2,"0"),m6=[{label:"01 \xB7",value:"two-digit"},{label:"1.",value:"plain"}],Yx="two-digit",n0=e=>u6(m6,Yx,e),Wf=(e,o)=>e==="plain"?`${o+1}.`:Vx(o);var Jx="Contents",Xx="Flex",s0="Text",x6="numberForm",h6="_contentsEntries",I6="_kickerNumber",i0="data-sf-kicker-number",g6=e=>l0(e).text.trim(),d0=e=>da(e?.anchor),Zx=e=>String(e.props?.id??""),y6=e=>!l0(e.props?.text).hidden&&!Rn(e.props)&&!Nt(e.props),pl=e=>rn(e);function f0(e){for(let o of pl(e))for(let t of o){if(or(t.props??{}))continue;if(t.type===s0&&y6(t))return t;if(t.type===s0)continue;let r=f0(t);if(r)return r}}function c0(e){return pl(e).some(o=>o.some(t=>t&&!or(t.props??{})&&(t.type===Jx||c0(t))))}var p0=e=>e.type===Xx&&Tn(Xx,e.props?.direction)==="row";function u0(e){return pl(e).some(o=>o.some(t=>t&&!or(t.props??{})&&(t.type===Jx||!p0(t)&&u0(t))))}function S6(e){let o=[],t=(r,a)=>{for(let n of r){if(!n||or(n.props??{}))continue;if(n.type===Jx){a.open={contents:n,sections:a.waiting??[]},a.waiting=null,o.push(a.open);continue}if(p0(n)&&u0(n)){let l={inRow:!0,open:null,waiting:[]};for(let i of pl(n))t(i,l);a.inRow||(a.open=null);continue}let s=a.open?.sections??a.waiting;if(n.type===Xx&&d0(n.props)&&s&&!c0(n)){s.push({box:n,kicker:f0(n)});continue}for(let l of pl(n))t(l,a)}};return t(e,{inRow:!1,open:null,waiting:null}),o}function b6(e){return e.map(o=>({label:o.kicker?nn(g6(o.kicker.props?.text)):"",anchor:d0(o.box.props)}))}function Qx(e){let o=e?.length?S6(e):[];if(!o.length)return null;let t=new Map,r=new Map;for(let a of o){let n=Zx(a.contents);n&&t.set(n,b6(a.sections));let s=n0(a.contents.props?.[x6]);a.sections.forEach((l,i)=>{let d=l.kicker?Zx(l.kicker):"";d&&r.set(d,Wf(s,i))})}return{entries:t,numbers:r}}var Qne=e=>e.endsWith(".")?`${e} `:`${e} \xB7 `;function m0(e){let o=e;if(!o?.content?.length)return e;let t=Qx(o.content);if(!t)return e;let{entries:r,numbers:a}=t,n=s=>{let l=qe(s,h=>ze(h,n)),i=l.props??{},d=l!==s,f=Zx(s),x=f?r.get(f):void 0;x&&(i={...i,[h6]:x},d=!0);let u=f?a.get(f):void 0;return u&&(i={...i,[I6]:u},d=!0),d?{...s,props:i}:s};return{...o,content:o.content.map(n)}}var k6=`[${i0}]`,v6=["bold","italic","underline","strike","link","sup","sub"],P6=["bullet","number"];function th(e,o){return e?[...v6,...o?P6:[]]:[]}function x0(e,o){let t=C6(e);if(!t?.propKey)return null;let{nodeId:r,propKey:a}=t,n=o.getItemById(r),s=o.getSelectorForId(r);if(!n||!s)return null;let{key:l,row:i}=Wt(a),d=o.components[n.type]?.fields?.[l],f=i?Dn(d,i):d,x=df(f);if(!x)return null;let u=n.props??{};if(uT(u)!==null||!i&&Od(n.type,u,l)||n.type==="Text"&&l==="text"&&Rn(u)||i&&!(Array.isArray(u[l])&&i.index<u[l].length))return null;let h=i?cf(u[l],i):u[l];return{node:n,selector:s,propKey:a,kind:x,stored:h,offPage:_f(f),panelOnly:Qk(f)}}function $f(e,o){let t=x0(e,o);if(!t)return null;let{text:r,hidden:a}=ca(t.stored);if(!xv({offPage:t.offPage,hidden:!!a,panelOnly:t.panelOnly}))return null;let n=ff(t.kind);return{partId:e,value:r,rules:cd,multiline:n,skip:k6,offered:th(t.kind!=="plainText",n),write:s=>{let l=x0(e,o);l&&Hf({node:l.node,propKey:l.propKey,kind:l.kind,zone:l.selector.zone,index:l.selector.index},s,o.replace)}}}function rh(e,o,t){return e?.isConnected&&e.getAttribute(Ue)===t?e:o?.querySelector(`[${Ue}="${zf(t)}"]`)??null}function zf(e){return e.replace(/["\\]/g,"\\$&")}function h0(e){let o=e.activeElement;return o?o.tagName==="IFRAME"||!!o.closest(".es-canvas"):!1}var eh=null,oh=new Set;function T6(){return eh}function ah(e){if(e!==eh){eh=e;for(let o of oh)o()}}function O6(e){return oh.add(e),()=>{oh.delete(e)}}function I0(){return w6(O6,T6,()=>null)}function g0(e,o){if(e.outer)return null;let t=o.getItemById(e.ownerId);if(!t)return null;let r=ww(t.type);return!r||Ne(t.props)?null:{node:t,rows:r}}function B6(e,o){let t=g0(e,o),r=o.getItemById(e.nodeId);if(!t||!r)return null;let a=Ow(r.type,r.props,e.key);if(!a)return null;let n=t.node.props[t.rows];return!Array.isArray(n)||e.index<0||e.index>=n.length?null:E6(e.ownerId,kn(t.rows,{index:e.index,rowKey:a}))}function Uf(e,o){let t=B6(e,o);return t?$f(t,o):null}function y0(e,o){return Uf(e,o)?.value}function S0(e,o){let t=Uf(e,o);return t?(t.write(e.text),!0):!1}function b0(e,o){let t=g0(e,o),r=t&&o.getSelectorForId(e.ownerId);if(!t||!r)return!1;let a=t.node.props,n=a[t.rows],s=e.index;if(!Array.isArray(n)||s<0||s>=n.length)return!1;let l;switch(e.action){case"addAfter":{let i=o.components[t.node.type]?.fields?.[t.rows];l=_6(n,s+1,{...i?.defaultItemProps??{}});break}case"moveEarlier":case"moveLater":{let i=e.action==="moveEarlier"?s-1:s+1;if(i<0||i>=n.length)return!1;l=A6(n,s,i);break}case"delete":l=F6(n,s);break;default:return!1}return o.replace(r.zone,r.index,{...t.node,props:{...a,[t.rows]:l}}),!0}import{jsx as ke,Fragment as tJ,jsxs as Mu}from"react/jsx-runtime";import{Fragment as rJ,useEffect as eH,useMemo as oH,useRef as aJ,useState as $a}from"react";import{useScreenDocument as sH}from"efficient-easel/screen/components/ScreenDocumentContext";import{UiIcon as Ny}from"efficient-easel/draw/client";import nJ from"efficient-easel/screen/components/SidePanelHead";import{InspectorIconButton as sJ}from"efficient-easel/chrome";import{Input as lJ,LoadingSpinner as iJ,PopupMenu as dJ,PopupMenuItem as tH,toast as rH}from"efficient-shell/ui";import{LayersTree as fJ,TreeGroupLabel as cJ,TreeRow as aH,TreeRowAction as Hu}from"efficient-easel/tree";import{AddIcon as pJ,DuplicateIcon as uJ,PageIcon as mJ,SettingsIcon as xJ}from"efficient-easel/icons";import{PagesIcon as hJ}from"efficient-easel/rail";import{useEaselHost as IJ}from"efficient-easel/screen/lib/host";import{useEaselSession as My}from"efficient-easel/screen/lib/session-context";import{useCallback as jf,useEffect as L6,useSyncExternalStore as R6}from"react";import{useScreenDocument as v0}from"efficient-easel/screen/components/ScreenDocumentContext";var w0=new WeakMap;function ul(e){let o=w0.get(e);return o||(o={rows:null,loading:null,listeners:new Set},w0.set(e,o)),o}function nh(e,o){e.rows=o;for(let t of e.listeners)t()}var Gf=new Set;function Kf(e,o){o?Gf.add(e):Gf.delete(e)}function C0(e){let o=ul(e),t=e.listPages().then(r=>nh(o,Gf.size?r.filter(a=>!Gf.has(a.id)):r),()=>nh(o,[])).finally(()=>{o.loading===t&&(o.loading=null)});return o.loading=t,t}var k0=()=>null,D6=()=>()=>{};function ml(){let{adapter:e,ready:o}=v0(),t=jf(l=>{let{listeners:i}=ul(e);return i.add(l),()=>i.delete(l)},[e]),r=jf(()=>ul(e).rows,[e]),a=R6(o?t:D6,o?r:k0,k0);L6(()=>{if(!o)return;let l=ul(e);l.rows===null&&!l.loading&&C0(e)},[e,o]);let n=jf(()=>o?C0(e):Promise.resolve(),[e,o]),s=jf(l=>nh(ul(e),l),[e]);return{rows:a,reload:n,setRows:s,getRows:r}}function N6(e,o){return e?.find(t=>t.slug===o)?.label?.trim()||`/${o}`}function P0(){let{currentSlug:e}=v0(),{rows:o}=ml();return N6(o,e)}import{canDuplicatePage as gJ,DuplicatePageDialog as yJ}from"efficient-easel/page-copy";import{jsx as To,jsxs as KM}from"react/jsx-runtime";import{useEffect as HZ,useId as WZ,useMemo as $Z,useRef as zZ,useState as Ly}from"react";import{useScreenDocument as UZ}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as jZ}from"efficient-easel/screen/lib/session-context";import{uniqueSlug as qM}from"efficient-easel/page-copy";import{AddIcon as GZ}from"efficient-easel/icons";import{Button as KZ,Dialog as qZ,EmptyState as VZ,LoadingSpinner as YZ,Paragraph as XZ,SidebarLayout as ZZ,SidebarNavItem as Ry,Title as JZ,toast as VM}from"efficient-shell/ui";import{jsx as Tt,jsxs as cR}from"react/jsx-runtime";import{useEffect as U7,useState as Og}from"react";import{CanvasFrame as j7}from"efficient-easel/easel";import{Button as G7,Card as K7,FitFrame as q7,Text as V7}from"efficient-shell/ui";import{jsx as A0,Fragment as Y6,jsxs as X6}from"react/jsx-runtime";import{useEffect as F0,useLayoutEffect as Z6}from"react";var qf="data-theme",T0="light";function M6(e){return e.getAttribute(qf)===T0?"light":"dark"}function H6(e,o){return M6(e)===o?!1:(o==="light"?e.setAttribute(qf,T0):e.removeAttribute(qf),!0)}function W6(e){return Ux(e).getItem(Jm)}function Ose(e,o){Ux(e).setItem(Jm,o)}function $6(e,o,t=new Date().getHours()){return Lw({mode:o.mode,override:W6(e),switchShown:o.switchShown,hour:t})}function O0(e,o){let t=e.documentElement;if(!t)return()=>{};let r=()=>H6(t,$6(e,o));r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[qf]}),()=>n.disconnect()}var z6="style";function U6(e,o){let t=Fd(o),r=!1;for(let a of jw){let n=t[a]??"";e.style.getPropertyValue(a)!==n&&(n?e.style.setProperty(a,n):e.style.removeProperty(a),r=!0)}return r}function E0(e,o){let t=e.body;if(!t)return()=>{};let r=()=>U6(t,o);r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[z6]}),()=>n.disconnect()}import{VIEW_DESKTOP_MIN as j6,VIEW_TABLET_MIN as G6}from"efficient-easel/screen/lib/content/view-tiers";var nr={fit:"data-fit",fitTablet:"data-fit-tablet",fitPhone:"data-fit-phone",min:"data-fit-min",minTablet:"data-fit-min-tablet",minPhone:"data-fit-min-phone",edge:"data-fit-edge"},Vo=nr,K6=e=>e.flatMap(o=>[`[${o}] p`,`[${o}] li`]).join(","),q6=String.raw`(function (doc) {
|
|
1
|
+
import{$ as af,D as Ok,E as Ek,F as Qd,G as _k,H as Nk,I as Cr,J as Mk,K as Hk,L as Wk,M as at,N as ef,O as Co,P as de,R as of,S as kr,T as tf,X as $k,Y as rf,Z as vr,_ as zk,a as qo,b as Vs,ba as Qv,c as zd,d as yn,e as Ys,f as nk,fa as fP,g as Sn,h as Ud,ha as cP,ia as Rf,ja as MT,ka as HT,r as ol,t as Tk}from"./chunk-QAUFSKVD.js";import{a as hP,d as gf,e as nt,f as yf,g as Sf,h as kf,l as Ux}from"./chunk-RCXMXKPT.js";import{$ as In,$a as pk,$c as wv,$e as yP,$i as ar,$j as Ff,A as wC,Aa as YC,Ab as Ht,Ac as sv,Ad as Hv,Ah as fT,Aj as ST,Al as Ln,B as CC,Ba as XC,Bb as wn,Bc as lv,Bd as Wv,Be as Ct,Bh as cT,Bj as bT,Bk as Hx,Bl as Nf,C as ot,Ca as ZC,Cb as el,Cc as $t,Cd as $v,Cf as _P,Ch as pT,Cj as Rx,D as kC,Da as JC,Dc as Ue,Dd as zv,De as je,Df as Tx,Dg as VP,E as vC,Ea as QC,Ec as Pr,Ed as bx,Ee as kt,Ef as AP,Eg as YP,Ej as En,F as PC,Fa as ek,Fb as mx,Fc as Ix,Fd as Uv,Fe as Te,Ff as FP,Fg as XP,Fj as wT,G as TC,Ga as Sr,Gb as aa,Gc as iv,Gd as wx,Ge as mP,Gf as BP,Gg as ZP,H as OC,Ha as ok,Hb as Jd,Hc as dv,Hd as jv,Hf as LP,Hg as JP,Hk as Bf,I as EC,Ib as kk,Ic as fv,Id as Gv,Ig as _x,Ij as Dx,Ik as Lf,J as _C,Ja as tk,Jb as vk,Jc as pf,Jd as Kv,Jf as RP,Jg as QP,Jj as dl,Jk as Wx,Ka as jd,Kb as Pk,Kc as rl,Kd as zt,Ke as Cx,Kg as Ax,Kk as LT,L as AC,La as Xs,Lb as nf,Lc as cv,Ld as qv,Lg as rr,Lk as pa,M as FC,Ma as Gd,Mb as Gk,Mc as pv,Md as ia,Mg as Fx,Mj as _n,Mk as RT,N as BC,Na as sk,Nb as sf,Nc as uv,Nd as Vv,Ne as ll,Ng as Pf,Nk as DT,O as Dd,Ob as hx,Oc as uf,Od as Pn,Og as eT,Oj as CT,Ok as NT,P as LC,Pb as lf,Pc as mv,Pg as oT,Q as RC,Qc as xv,Qd as or,Qf as DP,Qg as tT,Qk as WT,Ra as lk,Rc as gx,Rd as Yv,Re as xP,Rf as NP,Rg as rT,Rk as $x,Sa as ik,Sc as hv,Sd as sl,Se as kx,Sf as MP,Sg as aT,Ta as Zs,Tc as vn,Td as Xv,Te as IP,Tf as Ox,Tk as $T,Ub as Cn,Ud as da,Uf as HP,Uk as zT,V as ax,Va as bn,Vc as Iv,Vd as Zv,Vf as WP,Vg as nT,Vk as UT,Wa as dk,Wc as gv,Wf as Ex,Wg as sT,Wj as kT,Wk as jT,X as Gs,Xa as Kd,Xb as Kk,Xc as yv,Xd as mf,Xj as Nx,Xk as GT,Y as Nd,Ya as fk,Yb as qk,Yc as Sv,Yd as Or,Yj as vT,Yk as KT,Z as Fo,Za as Js,Zb as Vk,Zc as bv,Zd as Jv,Zi as ca,Zj as PT,_ as nx,_a as ck,_b as tl,_c as na,_e as gP,_f as tr,a as Ao,aa as DC,ab as cx,ad as yx,af as bf,ag as Tn,ak as An,b as mn,ba as NC,bb as uk,bd as Cv,bf as SP,bi as uT,bk as Fn,ca as MC,cb as qd,cd as kv,cf as vx,cg as $P,ch as Tf,ci as mT,ck as fl,d as aC,da as HC,db as mk,dd as vv,df as bP,dg as zP,dk as Bn,e as ex,ea as WC,eb as px,ed as Pv,ef as wP,eg as vf,ek as TT,f as nC,fa as sx,fd as Tv,fe as eP,ff as CP,fg as Er,g as c,gb as xk,gd as Tr,gf as kP,gg as UP,gj as _f,h as Mt,ha as $C,hb as hk,hd as al,hf as wf,i as hn,ia as Md,id as sa,ie as oP,ig as On,ih as lT,ij as IT,j as Us,jb as Vd,jc as kn,jd as Ov,je as tP,jf as vP,k as Mo,kb as Ik,kc as Wt,ke as rP,kh as iT,l as js,lb as gk,lc as Yk,ld as la,lk as OT,mb as yk,mc as Xk,md as nl,mf as Px,mi as xT,mk as ET,n as uC,nb as Sk,nc as Zk,nd as Ev,ni as hT,nl as zx,o as mC,ob as Yd,oc as Jk,od as _v,p as xC,pb as bk,pc as Qk,pe as Ho,q as hC,qc as df,qd as Av,qe as Je,r as IC,rc as ff,rd as Fv,rf as PP,rg as _r,s as gC,sb as wk,sc as ev,sd as Bv,se as xf,sf as TP,sg as jP,t as yC,tb as br,te as aP,tf as Cf,tg as GP,tk as Mx,u as Rd,ub as Xd,uc as ov,ud as Lv,ue as nP,uf as OP,ug as KP,uh as Bx,uj as gT,v as yr,va as GC,vb as Zd,vc as tv,vd as Rv,ve as sP,vf as EP,vh as Of,vk as _T,vl as qT,wa as KC,wb as Ck,wc as rv,wd as Dv,we as lP,wh as fa,wk as AT,wl as VT,x as rx,xa as qC,xb as po,xc as cf,xd as Nv,xe as hf,xh as Ef,xj as yT,xk as FT,xl as Df,y as SC,ya as VC,yb as ux,yc as av,yd as Sx,ye as iP,yj as Af,yl as YT,z as bC,za as dx,zb as Qs,zc as nv,zd as Mv,ze as dP,zg as qP,zh as dT,zj as Lx,zk as BT}from"./chunk-TQIJVK3T.js";import{a as cC,b as Ld,c as pC,g as Uk,h as xx,i as jk}from"./chunk-NOV6LTTJ.js";import{$ as xb,$a as Db,$c as wo,$d as hw,$e as Xm,$g as tx,A as ro,Ae as qm,Af as Jm,B as tn,Bb as Ms,Bd as Gm,Be as Sw,Ca as Ie,Cb as Zb,D as Rs,Dd as cw,De as Vm,E as sd,Ed as yd,F as Lt,Fg as Xw,G as rn,Ga as Qo,Gb as hd,Gd as et,Gg as Zw,H as ze,Ha as St,Hc as rw,Hd as No,He as wd,Hf as Lw,Hg as Jw,I as qe,Ia as Pm,Id as Ze,Ie as Cd,Ig as Qw,J as an,Ja as Tm,Jc as Wm,Jd as Dt,Je as bw,Jh as fx,K as ld,Kd as Qt,Ke as kd,Kf as er,Kh as gn,L as ib,La as Om,Lb as Jb,Ld as wt,Le as vd,Lg as eC,Lh as rk,M as db,Ma as Em,Md as fn,Me as ww,Mh as tt,Nd as pw,Ne as Cw,Nh as rt,O as fb,Od as cn,Oe as Pd,Og as oC,Oh as $d,P as id,Pd as uw,Pe as Td,Pg as tC,Ph as ak,Q as cb,Qa as _m,Qb as Id,Qc as aw,Qe as ra,Qf as Rw,Qh as qs,R as Qr,Ra as Ob,Re as kw,Rg as rC,S as pb,Sa as Eb,T as ub,Ta as Ge,Tb as Qb,Td as ta,Tg as sC,Th as Ak,U as Ds,Ua as _b,Ub as ew,Ud as mw,Ug as lC,V as km,Va as ud,Vd as xw,Ve as vw,W as we,Wa as Ab,Wb as ow,Wd as pn,Wf as Dw,Wg as gr,X as K,Xa as Fb,Xc as U,Xd as Ws,Xf as Nw,Xh as Fk,Y as mb,Ya as Bb,Yb as Nm,Yc as re,Yd as $s,Ye as Nt,Yf as Mw,Yg as iC,Za as Lb,Zc as $m,Zd as Km,Ze as zs,Zf as Hw,Zg as ox,_ as dd,_a as Rb,_c as L,_e as Ym,_g as dC,a as on,ab as Nb,ad as Zt,ae as Iw,af as Pw,ah as Bd,b as fo,ba as hb,bb as Mb,bd as nw,be as gw,bf as Tw,bg as Ww,c as to,ca as fd,cb as md,cd as W,cf as Od,cg as $w,ch as fC,ci as Bk,d as Yt,da as Ib,db as xd,dd as gd,de as yw,df as Ow,di as wr,ea as gb,eb as Hb,ed as Do,eg as zw,f as Ko,fa as vm,fb as Wb,fc as Mm,fd as sw,fe as Sd,fg as Uw,fi as Lk,g as Ls,ga as yb,gd as bt,gf as Ew,gg as Ad,gi as Rk,h as eb,ha as Sb,hb as $b,hd as Rt,he as bd,hf as Ed,hg as jw,hi as Dk,i as ob,ia as bb,ib as zb,id as zm,if as _w,ig as Fd,j as tb,jb as Am,jd as hr,jf as Zm,jg as Qm,k as rb,kb as Ub,kd as Jt,kf as Aw,la as wb,lb as jb,ld as lw,lf as Fw,li as ko,ma as Cb,mb as Fm,mf as _d,mg as Gw,na as kb,nb as sn,nd as Fe,nf as un,ng as Kw,o as ab,ob as ea,od as oa,of as xn,pa as vb,pb as Bm,pd as Hs,pf as Ir,pi as il,qb as Lm,qd as ln,qg as qw,qh as lx,ra as Pb,rb as Rm,rd as iw,rg as Vw,rh as Hd,s as nb,sa as cd,sb as Gb,sd as Um,sh as zC,ta as Tb,tb as Kb,td as dn,tf as Bw,th as ix,u as Ne,ua as pd,ub as qb,uc as Hm,ud as jm,ug as Yw,uh as UC,v as sb,vb as Dm,w as nd,wb as Vb,wc as tw,wh as Wd,x as lb,xb as Xt,xh as jC,ya as Ns,yb as Yb,yd as dw,yh as Ks,z as Pe,za as nn,zb as Xb,zd as fw}from"./chunk-KCZDH44S.js";import{a as z,b as co}from"./chunk-5OXXOEE7.js";import{c as pP,d as uP,e as If}from"./chunk-3DKV2YJ6.js";import{jsx as jx,Fragment as Y4,jsxs as X4}from"react/jsx-runtime";import{createContext as Z4,useContext as J4}from"react";var Q4={mirrorHostStyles:!0,css:null,fontHrefs:[]},XT=Z4(Q4);function hne({value:e,children:o}){return jx(XT.Provider,{value:e,children:o})}function cl(){return J4(XT)}function ZT(){let{css:e,fontHrefs:o}=cl();return X4(Y4,{children:[o.map(t=>jx("link",{rel:"stylesheet",href:t},t)),e?jx("style",{"data-sf-canvas-css":"",children:e}):null]})}import{jsx as e6}from"react/jsx-runtime";import{createContext as o6,useContext as t6}from"react";var JT=o6(void 0);function Sne({metadata:e,children:o}){return e6(JT.Provider,{value:e,children:o})}var QT=()=>t6(JT);import{jsx as lo,Fragment as R4,jsxs as Qi}from"react/jsx-runtime";import{useCallback as _s,useEffect as qt,useRef as zae,useState as A4}from"react";import{SettingsSwitch as Uae}from"efficient-easel/panel";import{PagesIcon as jae,StylesIcon as Gae}from"efficient-easel/rail";import{PaletteIcon as Kae}from"efficient-shell/icons/efficient";import{Subtree as qae,TreeRow as D4}from"efficient-easel/tree";import{useEasel as N4}from"efficient-easel/easel";import{toItemSelector as Vae}from"efficient-easel/node-ops";import{useEaselStrings as M4}from"efficient-easel/strings";import{createContext as r6,useContext as a6}from"react";var Gx=r6(!1),Cne=()=>a6(Gx);import{useMemo as n6,useRef as s6}from"react";import{useEaselApi as l6}from"efficient-easel/easel";import{useSectionOps as i6}from"efficient-easel/screen/lib/document/use-section-ops";function Mf(){let e=l6(),o=i6(),t=s6(o);return t.current=o,n6(()=>({getItemById:r=>e.getState().getItemById(r),getSelectorForId:r=>e.getState().getSelectorForId(r),get components(){return e.getState().config.components},replace:(r,a,n)=>t.current.replaceComponent(r,a,n)}),[e])}import{encodePartId as E6}from"efficient-easel/draw";import{insertAt as _6,moveTo as A6,removeAt as F6}from"efficient-easel/fields";import{useSyncExternalStore as w6}from"react";import{isNodeList as e0}from"efficient-easel/data";var o0="Flex";function Rn(e,o){return Nt(e)?typeof e?.[Ko]=="string"?Kx(o?.[Ko]):"":Kx(e?.[Ko])}var Kx=e=>typeof e=="string"?e.trim():"",d6=e=>e.type===ro&&Array.isArray(e.props?.[Vm])&&e.props[Vm].some(o=>Kx(o?.[Ko])!==""),f6=new Intl.NumberFormat("en-US");function c6(e){return/^\d+$/.test(e)?f6.format(Number(e)):e}function Bne(e,o){let t=o?o.find(r=>r.key===e)?.value:nb(Ls).find(r=>r.key===e)?.value;return t===void 0?null:c6(t)}var p6={[Ko]:"any"};function qx(e,o=!1){let t=e.props;if(!t)return{node:e,names:!1};let r=e.type==="Text"&&(Rn(t)!==""||o&&Rn(t,p6)!==""),a=o||d6(e),n=qe(e,l=>ze(l,i=>{let d=qx(i,a);return d.names&&(r=!0),d.node})).props;if(e.type!==o0)return{node:n===t?e:{...e,props:n},names:r};let s=Ne(n);if(r&&!s&&(n={...n,[to]:Ls}),!r&&s===Ls){let{[to]:l,...i}=n;n=i}return{node:n===t?e:{...e,props:n},names:!1}}function t0(e,o,t){for(let r of e){if(r?.props?.id===o)return t;for(let a of rn(r??{})){let n=t0(a,o,r.type===o0?r:t);if(n!==void 0)return n}}}function Lne(e,o){if(!e0(e))return!0;let t=t0(e,o,null);if(t===void 0)return!0;if(t===null)return!1;let r=Ne(t.props);return!r||r===Ls}function r0(e){let o=e?.content;if(!e0(o))return e;let t=o.map(r=>qx(r));return t.every((r,a)=>r.node===o[a])?e:{...e,content:t.map(r=>r.node)}}function a0(e){return qx(e).node}import{decodePartId as C6}from"efficient-easel/draw";function Dn(e,o){let t=tv(e);return t?.control==="textList"?o.rowKey===(t.itemKey??"text")?AT(t,o.index):null:rv(e)?.[o.rowKey]??null}function Hf(e,o,t){let r=e.node.props,{key:a,row:n}=Wt(e.propKey),s=n?nv(r,a,n,e.kind,o):ov(r,a,e.kind,o);return s?(t(e.zone,e.index,{...e.node,props:s}),!0):!1}import{readHidable as l0}from"efficient-easel/draw";import{parseOption as u6}from"efficient-shell/format";var Vx=e=>String(e+1).padStart(2,"0"),m6=[{label:"01 \xB7",value:"two-digit"},{label:"1.",value:"plain"}],Yx="two-digit",n0=e=>u6(m6,Yx,e),Wf=(e,o)=>e==="plain"?`${o+1}.`:Vx(o);var Jx="Contents",Xx="Flex",s0="Text",x6="numberForm",h6="_contentsEntries",I6="_kickerNumber",i0="data-sf-kicker-number",g6=e=>l0(e).text.trim(),d0=e=>da(e?.anchor),Zx=e=>String(e.props?.id??""),y6=e=>!l0(e.props?.text).hidden&&!Rn(e.props)&&!Nt(e.props),pl=e=>rn(e);function f0(e){for(let o of pl(e))for(let t of o){if(or(t.props??{}))continue;if(t.type===s0&&y6(t))return t;if(t.type===s0)continue;let r=f0(t);if(r)return r}}function c0(e){return pl(e).some(o=>o.some(t=>t&&!or(t.props??{})&&(t.type===Jx||c0(t))))}var p0=e=>e.type===Xx&&Tn(Xx,e.props?.direction)==="row";function u0(e){return pl(e).some(o=>o.some(t=>t&&!or(t.props??{})&&(t.type===Jx||!p0(t)&&u0(t))))}function S6(e){let o=[],t=(r,a)=>{for(let n of r){if(!n||or(n.props??{}))continue;if(n.type===Jx){a.open={contents:n,sections:a.waiting??[]},a.waiting=null,o.push(a.open);continue}if(p0(n)&&u0(n)){let l={inRow:!0,open:null,waiting:[]};for(let i of pl(n))t(i,l);a.inRow||(a.open=null);continue}let s=a.open?.sections??a.waiting;if(n.type===Xx&&d0(n.props)&&s&&!c0(n)){s.push({box:n,kicker:f0(n)});continue}for(let l of pl(n))t(l,a)}};return t(e,{inRow:!1,open:null,waiting:null}),o}function b6(e){return e.map(o=>({label:o.kicker?nn(g6(o.kicker.props?.text)):"",anchor:d0(o.box.props)}))}function Qx(e){let o=e?.length?S6(e):[];if(!o.length)return null;let t=new Map,r=new Map;for(let a of o){let n=Zx(a.contents);n&&t.set(n,b6(a.sections));let s=n0(a.contents.props?.[x6]);a.sections.forEach((l,i)=>{let d=l.kicker?Zx(l.kicker):"";d&&r.set(d,Wf(s,i))})}return{entries:t,numbers:r}}var Qne=e=>e.endsWith(".")?`${e} `:`${e} \xB7 `;function m0(e){let o=e;if(!o?.content?.length)return e;let t=Qx(o.content);if(!t)return e;let{entries:r,numbers:a}=t,n=s=>{let l=qe(s,h=>ze(h,n)),i=l.props??{},d=l!==s,f=Zx(s),x=f?r.get(f):void 0;x&&(i={...i,[h6]:x},d=!0);let u=f?a.get(f):void 0;return u&&(i={...i,[I6]:u},d=!0),d?{...s,props:i}:s};return{...o,content:o.content.map(n)}}var k6=`[${i0}]`,v6=["bold","italic","underline","strike","link","sup","sub"],P6=["bullet","number"];function th(e,o){return e?[...v6,...o?P6:[]]:[]}function x0(e,o){let t=C6(e);if(!t?.propKey)return null;let{nodeId:r,propKey:a}=t,n=o.getItemById(r),s=o.getSelectorForId(r);if(!n||!s)return null;let{key:l,row:i}=Wt(a),d=o.components[n.type]?.fields?.[l],f=i?Dn(d,i):d,x=df(f);if(!x)return null;let u=n.props??{};if(uT(u)!==null||!i&&Od(n.type,u,l)||n.type==="Text"&&l==="text"&&Rn(u)||i&&!(Array.isArray(u[l])&&i.index<u[l].length))return null;let h=i?cf(u[l],i):u[l];return{node:n,selector:s,propKey:a,kind:x,stored:h,offPage:_f(f),panelOnly:Qk(f)}}function $f(e,o){let t=x0(e,o);if(!t)return null;let{text:r,hidden:a}=ca(t.stored);if(!xv({offPage:t.offPage,hidden:!!a,panelOnly:t.panelOnly}))return null;let n=ff(t.kind);return{partId:e,value:r,rules:cd,multiline:n,skip:k6,offered:th(t.kind!=="plainText",n),write:s=>{let l=x0(e,o);l&&Hf({node:l.node,propKey:l.propKey,kind:l.kind,zone:l.selector.zone,index:l.selector.index},s,o.replace)}}}function rh(e,o,t){return e?.isConnected&&e.getAttribute(Ue)===t?e:o?.querySelector(`[${Ue}="${zf(t)}"]`)??null}function zf(e){return e.replace(/["\\]/g,"\\$&")}function h0(e){let o=e.activeElement;return o?o.tagName==="IFRAME"||!!o.closest(".es-canvas"):!1}var eh=null,oh=new Set;function T6(){return eh}function ah(e){if(e!==eh){eh=e;for(let o of oh)o()}}function O6(e){return oh.add(e),()=>{oh.delete(e)}}function I0(){return w6(O6,T6,()=>null)}function g0(e,o){if(e.outer)return null;let t=o.getItemById(e.ownerId);if(!t)return null;let r=ww(t.type);return!r||Ne(t.props)?null:{node:t,rows:r}}function B6(e,o){let t=g0(e,o),r=o.getItemById(e.nodeId);if(!t||!r)return null;let a=Ow(r.type,r.props,e.key);if(!a)return null;let n=t.node.props[t.rows];return!Array.isArray(n)||e.index<0||e.index>=n.length?null:E6(e.ownerId,kn(t.rows,{index:e.index,rowKey:a}))}function Uf(e,o){let t=B6(e,o);return t?$f(t,o):null}function y0(e,o){return Uf(e,o)?.value}function S0(e,o){let t=Uf(e,o);return t?(t.write(e.text),!0):!1}function b0(e,o){let t=g0(e,o),r=t&&o.getSelectorForId(e.ownerId);if(!t||!r)return!1;let a=t.node.props,n=a[t.rows],s=e.index;if(!Array.isArray(n)||s<0||s>=n.length)return!1;let l;switch(e.action){case"addAfter":{let i=o.components[t.node.type]?.fields?.[t.rows];l=_6(n,s+1,{...i?.defaultItemProps??{}});break}case"moveEarlier":case"moveLater":{let i=e.action==="moveEarlier"?s-1:s+1;if(i<0||i>=n.length)return!1;l=A6(n,s,i);break}case"delete":l=F6(n,s);break;default:return!1}return o.replace(r.zone,r.index,{...t.node,props:{...a,[t.rows]:l}}),!0}import{jsx as ke,Fragment as tJ,jsxs as Mu}from"react/jsx-runtime";import{Fragment as rJ,useEffect as eH,useMemo as oH,useRef as aJ,useState as $a}from"react";import{useScreenDocument as sH}from"efficient-easel/screen/components/ScreenDocumentContext";import{UiIcon as Ny}from"efficient-easel/draw/client";import nJ from"efficient-easel/screen/components/SidePanelHead";import{InspectorIconButton as sJ}from"efficient-easel/chrome";import{Input as lJ,LoadingSpinner as iJ,PopupMenu as dJ,PopupMenuItem as tH,toast as rH}from"efficient-shell/ui";import{LayersTree as fJ,TreeGroupLabel as cJ,TreeRow as aH,TreeRowAction as Hu}from"efficient-easel/tree";import{AddIcon as pJ,DuplicateIcon as uJ,PageIcon as mJ,SettingsIcon as xJ}from"efficient-easel/icons";import{PagesIcon as hJ}from"efficient-easel/rail";import{useEaselHost as IJ}from"efficient-easel/screen/lib/host";import{useEaselSession as My}from"efficient-easel/screen/lib/session-context";import{useCallback as jf,useEffect as L6,useSyncExternalStore as R6}from"react";import{useScreenDocument as v0}from"efficient-easel/screen/components/ScreenDocumentContext";var w0=new WeakMap;function ul(e){let o=w0.get(e);return o||(o={rows:null,loading:null,listeners:new Set},w0.set(e,o)),o}function nh(e,o){e.rows=o;for(let t of e.listeners)t()}var Gf=new Set;function Kf(e,o){o?Gf.add(e):Gf.delete(e)}function C0(e){let o=ul(e),t=e.listPages().then(r=>nh(o,Gf.size?r.filter(a=>!Gf.has(a.id)):r),()=>nh(o,[])).finally(()=>{o.loading===t&&(o.loading=null)});return o.loading=t,t}var k0=()=>null,D6=()=>()=>{};function ml(){let{adapter:e,ready:o}=v0(),t=jf(l=>{let{listeners:i}=ul(e);return i.add(l),()=>i.delete(l)},[e]),r=jf(()=>ul(e).rows,[e]),a=R6(o?t:D6,o?r:k0,k0);L6(()=>{if(!o)return;let l=ul(e);l.rows===null&&!l.loading&&C0(e)},[e,o]);let n=jf(()=>o?C0(e):Promise.resolve(),[e,o]),s=jf(l=>nh(ul(e),l),[e]);return{rows:a,reload:n,setRows:s,getRows:r}}function N6(e,o){return e?.find(t=>t.slug===o)?.label?.trim()||`/${o}`}function P0(){let{currentSlug:e}=v0(),{rows:o}=ml();return N6(o,e)}import{canDuplicatePage as gJ,DuplicatePageDialog as yJ}from"efficient-easel/page-copy";import{jsx as To,jsxs as KM}from"react/jsx-runtime";import{useEffect as HZ,useId as WZ,useMemo as $Z,useRef as zZ,useState as Ly}from"react";import{useScreenDocument as UZ}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as jZ}from"efficient-easel/screen/lib/session-context";import{uniqueSlug as qM}from"efficient-easel/page-copy";import{AddIcon as GZ}from"efficient-easel/icons";import{Button as KZ,Dialog as qZ,EmptyState as VZ,LoadingSpinner as YZ,Paragraph as XZ,SidebarLayout as ZZ,SidebarNavItem as Ry,Title as JZ,toast as VM}from"efficient-shell/ui";import{jsx as Tt,jsxs as cR}from"react/jsx-runtime";import{useEffect as U7,useState as Og}from"react";import{CanvasFrame as j7}from"efficient-easel/easel";import{Button as G7,Card as K7,FitFrame as q7,Text as V7}from"efficient-shell/ui";import{jsx as A0,Fragment as Y6,jsxs as X6}from"react/jsx-runtime";import{useEffect as F0,useLayoutEffect as Z6}from"react";var qf="data-theme",T0="light";function M6(e){return e.getAttribute(qf)===T0?"light":"dark"}function H6(e,o){return M6(e)===o?!1:(o==="light"?e.setAttribute(qf,T0):e.removeAttribute(qf),!0)}function W6(e){return Ux(e).getItem(Jm)}function Ose(e,o){Ux(e).setItem(Jm,o)}function $6(e,o,t=new Date().getHours()){return Lw({mode:o.mode,override:W6(e),switchShown:o.switchShown,hour:t})}function O0(e,o){let t=e.documentElement;if(!t)return()=>{};let r=()=>H6(t,$6(e,o));r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[qf]}),()=>n.disconnect()}var z6="style";function U6(e,o){let t=Fd(o),r=!1;for(let a of jw){let n=t[a]??"";e.style.getPropertyValue(a)!==n&&(n?e.style.setProperty(a,n):e.style.removeProperty(a),r=!0)}return r}function E0(e,o){let t=e.body;if(!t)return()=>{};let r=()=>U6(t,o);r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[z6]}),()=>n.disconnect()}import{VIEW_DESKTOP_MIN as j6,VIEW_TABLET_MIN as G6}from"efficient-easel/screen/lib/content/view-tiers";var nr={fit:"data-fit",fitTablet:"data-fit-tablet",fitPhone:"data-fit-phone",min:"data-fit-min",minTablet:"data-fit-min-tablet",minPhone:"data-fit-min-phone",edge:"data-fit-edge"},Vo=nr,K6=e=>e.flatMap(o=>[`[${o}] p`,`[${o}] li`]).join(","),q6=String.raw`(function (doc) {
|
|
2
2
|
if (doc.__sfFitWords) return;
|
|
3
3
|
var win = doc.defaultView;
|
|
4
4
|
var SELECTOR = "h1,h2,h3,h4,h5,h6,[class*='font-heading'],[class*='font-display']";
|
|
@@ -301,7 +301,7 @@ import{$ as af,D as Ok,E as Ek,F as Qd,G as _k,H as Nk,I as Cr,J as Mk,K as Hk,L
|
|
|
301
301
|
doc.__sfFitWords.floorOf = floorOf;
|
|
302
302
|
})(document);`,V6="storefront-fit-words";function _0(e){let o=e.createElement("script");return o.id=V6,o.textContent=q6,(e.head??e.documentElement).appendChild(o),()=>{e.__sfFitWords?.(),o.remove()}}var J6=`
|
|
303
303
|
[${Ue}][${Ue}] { cursor: text; }
|
|
304
|
-
`;function Vf({children:e,document:o}){let{theme:t,themeMode:r,themeSwitchShown:a}=ko(),n=er(t);return F0(()=>{if(o)return O0(o,{mode:r,switchShown:a})},[o,r,a]),F0(()=>{if(o)return E0(o,n)},[o,n]),Z6(()=>{if(o)return _0(o)},[o]),X6(Y6,{children:[A0(ZT,{}),A0("style",{children:J6}),e]})}import{jsx as dL}from"react/jsx-runtime";import{memo as PK}from"react";import{Render as TK}from"efficient-easel/render";import{jsx as Nn}from"react/jsx-runtime";import{createContext as Q6,useContext as eW,useMemo as oW}from"react";var sh=Q6(null);function tW({children:e}){return Nn(sh.Provider,{value:"first",children:e})}function Xf({children:e}){return Nn(sh.Provider,{value:"below",children:e})}function xl(){return eW(sh)}function lh(){return xl()==="below"?{loading:"lazy"}:{}}function Zf(e){let o=lh();return Nn("img",{...e,...o})}var B0="laterSlideIds",rW=new Set(["Breadcrumb","CategoryBar","Divider","Spacer","Ticker"]);function L0(e){return bf(e?.filter(o=>!o?.type||!rW.has(o.type)))}function Yf(e,o=[]){if(Array.isArray(e))for(let t of e)Yf(t,o);else if(e&&typeof e=="object"){let{slides:t}=e;if(Array.isArray(t))for(let r of t.slice(1))typeof r?.props?.id=="string"&&o.push(r.props.id);for(let r of Object.values(e))Yf(r,o)}return o}function R0(e,o){let t=o?.type,r=o?.props?.id;return oW(()=>{let a=t?e.components[t]:void 0;if(!t||!a)return e;let n=a.render,s=l=>l.id===r?Nn(tW,{children:Nn(n,{...l})}):Nn(n,{...l});return{...e,components:{...e.components,[t]:{...a,render:s}}}},[e,t,r])}function D0(e){return e.props?qe(e,o=>{let t=ze(o,D0),r=e.type===jC&&t.every(a=>a.type===Hd)?zC(t):t;return r.length!==o.length||r.some((a,n)=>a!==o[n])?r:o}):e}function N0(e){return ld(e,o=>ze(o,D0))}var aW="Flex",M0="ListSearch",H0=["FAQ"],nW="listKey";function W0(e,o){let t={search:e.type===M0,list:H0.includes(String(e.type))};return qe(e,r=>{for(let a of r){let n=W0(a,o);t.search||=n.search,t.list||=n.list}return r}),e.type===aW&&t.search&&t.list&&String(e.props?.id??"")?(o.add(e),{search:!1,list:!1}):t}function $0(e,o,t){let r=o.has(e)?String(e.props?.id):t,a=qe(e,n=>ze(n,s=>$0(s,o,r)));return r&&(e.type===M0||H0.includes(String(e.type)))?{...a,props:{...a.props,[nW]:r}}:a}function z0(e){return an(e,o=>{let t=new Set;for(let r of o)W0(r,t);return t.size?ze(o,r=>$0(r,t,"")):o})}import{isNode as u$,isNodeList as HE}from"efficient-easel/data";import{jsx as Ee,Fragment as o$,jsxs as dr}from"react/jsx-runtime";import{jsx as xh}from"react/jsx-runtime";import{Fragment as cW,jsx as pW}from"react/jsx-runtime";import{jsx as ih}from"react/jsx-runtime";import{createContext as iW,Fragment as dW,useContext as fW}from"react";import{jsx as U0,jsxs as sW}from"react/jsx-runtime";import{lazy as lW}from"react";var j0=lW(()=>import("./section-css-style-IGADRKZW.js"));function G0({css:e,id:o,attr:t}){return U0(j0,{css:e,id:o,attr:t})}var K0={name:"sectionCustomCss",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",panel(e,o,t){e.fields={...e.fields,...t.customCssFields()}},draw(e){e.defaultProps={...e.defaultProps,[Ld]:""};let o=e.render;e.render=t=>{let r=pC(t),a=typeof t.id=="string"?t.id:"";return!r||!a?o(t):sW(vr,{className:"sf-section-css",attrs:{[cC]:a},children:[U0(j0,{css:r,id:a}),o(t)]})}}};var q0=iW(null);function V0({rootProps:e,children:o}){let t=e&&typeof e=="object"?e:null,r=vk(t),a=ih(dW,{children:o},"page");return ih(q0.Provider,{value:t,children:r?[ih(G0,{css:r,id:kk,attr:Jd},"css"),a]:a})}function Y0(){return fW(q0)}function vt(){return Rd(Y0())===yC}function Jf({className:e,children:o}){let t=vt();return pW(cW,{children:o(ot(e,t))})}import{SITE_SIDE as uW}from"efficient-easel/screen/lib/content/length-units";var X0="sideSpace",hl=uW,dh="none",ple=[{value:"box",label:"Box"},{value:hl,label:"Site"},{value:dh,label:"None"}],ule="box",mle="Box: on small screens the Box keeps its own side space, up to 24 px. Site: it uses the site's Side space, as the site's own sections do. None: from 800 px up the Box runs to the screen's edges; on small screens it keeps the site's Side space, up to 20 px.";function Z0(e){return e===hl||e===dh?e:"box"}function xle(e){return e===hl||e===dh?e:void 0}import{parseOption as ph}from"efficient-shell/format";var Qf="standard",oO=[{label:"Standard",value:"standard"},{label:"Editorial",value:"editorial"},{label:"Simple",value:"simple"},{label:"Statement",value:"statement"},{label:"Natural",value:"natural"},{label:"Essay",value:"essay"}],ch=["numStyle","logoSrc","logoAlt","linkText","linkHref","_gLogo"],fh=[...ch,"description"],J0={standard:["eyebrowLook"],editorial:[...ch,"eyebrowLook"],simple:fh,statement:fh,natural:ch,essay:fh},Q0=["gap-5","gap-3"],eO=["text-[length:var(--size-body,16px)]","text-[15px]"];function yle(e){return ph(Q0,Q0[0],e)}function Sle(e){return ph(eO,eO[0],e)}function tO(e){return ph(oO,Qf,e)}function ble(e){let o=oO.map(r=>r.value),t=[...new Set(Object.values(J0).flat())];return et(e,t.map(r=>[[r],yd("headStyle",o,Qf,o.filter(a=>!J0[a].includes(r)))]))}import{readHidable as mW,VIEW_TIERS as xW,viewKeyAt as hW}from"efficient-easel/draw";var ua={direction:"row",share:"content",align:"center"},ma={top:14,bottom:14,topPhone:12,bottomPhone:12},ec={wrap:"nowrap",loop:"scroll",sectionAccent:dC,gap:60,gapPhone:32,separator:"dot",sectionBorder:{top:1,bottom:1}},rO={gap:120,gapPhone:64},oc={...Do,sizeToken:{step:"label",px:14,pxPhone:12},letterSpacing:.25,lineHeight:1.5},aO={textStyle:"heading-3",letterSpacing:.005,case:"upper",lineHeight:1},Il={top:24,bottom:24,topPhone:16,bottomPhone:16},xa={top:16,bottom:16,topPhone:12,bottomPhone:12},gl={justify:"between",wrap:"wrap",gap:32,separator:"none"},yl={...Do,letterSpacing:.1,lineHeight:1.5};var tc={top:24,bottom:24,topPhone:24,bottomPhone:24},rc={top:72,bottom:72,topPhone:72,bottomPhone:72},Mn={top:100,bottom:100,topPhone:60,bottomPhone:60},ac={top:120,bottom:120,topPhone:70,bottomPhone:70},IW={top:24,bottom:24,topPhone:24,bottomPhone:24},gW=40,nc={top:120,bottom:120,topTablet:80,bottomTablet:80,topPhone:80,bottomPhone:80},yW={top:24,bottom:24,topPhone:24,bottomPhone:24},sc={top:24,bottom:24,topPhone:24,bottomPhone:24},SW={top:84,bottom:84,topPhone:84,bottomPhone:84},lc={top:48,bottom:48,topPhone:48,bottomPhone:48},ic={top:80,bottom:80,topPhone:60,bottomPhone:60},dc={top:100,bottom:60,topPhone:60,bottomPhone:40},fc={top:60,bottom:60,topPhone:40,bottomPhone:40},cc={top:80,bottom:80,topTablet:60,bottomTablet:60,topPhone:60,bottomPhone:60},pc={top:76,bottom:76,topPhone:76,bottomPhone:76},uc={top:76,bottom:76,topPhone:76,bottomPhone:76},bl={top:80,bottom:40,topPhone:60,bottomPhone:32},wl={top:76,bottom:76,topPhone:76,bottomPhone:76},mc={top:72,bottom:72,topPhone:72,bottomPhone:72},xc={top:40,bottom:64,topPhone:24,bottomPhone:36},hc={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},Ic={top:48,bottom:48,topPhone:48,bottomPhone:48},Cl=e=>{let o=Ie(e.bandPadding)??gW;return{top:o,bottom:o,topPhone:o,bottomPhone:o}},nO=(e,o,t)=>({desktop:e,tablet:o,mobile:t}),uh=e=>cn(e.headPlacement)==="own-box",Be=(e,o)=>({top:nO(e.top,o?.top??e.topTablet??e.top,e.topPhone),bottom:nO(e.bottom,o?.bottom??e.bottomTablet??e.bottom,e.bottomPhone)}),sO=e=>({top:e.topPhone,bottom:e.bottomPhone}),Sl=e=>o=>uh(o)?{top:0,bottom:e.bottom}:e,bW=(e,o)=>{let t=mW(e[o]);return t.hidden?!1:!!t.text||e.editor?.isEditing===!0},gc={Banner:{frame:()=>Be(tc)},Cards:{frame:Sl(Be(rc))},Chart:{frame:()=>Be(wl)},ContactLocations:{frame:()=>Be(Mn,sO(Mn))},Countdown:{frame:()=>Be(lc)},DocBody:{frame:()=>Be(ic)},DocMasthead:{frame:()=>Be(dc)},DocMetaCards:{frame:()=>Be(fc)},FAQ:{frame:e=>{let o=uh(e)||!["num","title","linkText"].some(r=>bW(e,r)),t=Be(ac);return o?{top:0,bottom:t.bottom}:t},edge:!0},FeaturedCover:{frame:()=>Be(cc)},Grid:{frame:()=>Be(IW)},Integrations:{frame:()=>Be(pc)},KeyFeatures:{frame:()=>Be(uc)},Logos:{frame:e=>uh(e)?0:Be(Cl(e))},LongRead:{frame:Sl(Be(nc))},Masthead:{frame:()=>Be(bl,sO(bl))},Mockup:{frame:()=>Be(wl)},OrderSummary:{frame:()=>Be(yW)},PaymentBadges:{frame:()=>Be(sc)},Prose:{frame:Sl(Be(mc))},SectionHeader:{frame:e=>{let o=Be(xc);return tO(e.headStyle)==="standard"?o:{top:o.top,bottom:0}},edge:!0},Series:{frame:Sl(Be(hc))},Stats:{frame:()=>Be(Ic)},Testimonials:{frame:Sl(Be(SW))},Ticker:{frame:()=>Be(ma),edge:!0}};function Ble(e,o,t){let r=z(gc,e)??t;return r?aa({values:Qs(o,po,!0),frame:r.frame(o),drawsFrame:!0,edge:r.edge},!0).root:null}var lO=(e,o)=>typeof e=="object"&&"top"in e?e[o]:e;function wW(e,o){let t={...e};for(let r of xW)delete t[hW(o,r)];return t}function Lle(e,o,t,r){let a=z(gc,e)??t;if(!a)return{first:null,last:null};let n=a.frame(o),s=Qs(o,po,!0),l=(i,d)=>aa({values:wW(s,i),frame:d,drawsFrame:!0,edge:a.edge},!0).root;return{first:l("bottom",{top:lO(n,"top"),bottom:r.firstBottom}),last:l("top",{top:r.lastTop,bottom:lO(n,"bottom")})}}var CW=/^(?:[^\s]*:)?p[ytb]-/;function iO(e,o,t){if(!o)return t?{className:e,style:t}:{className:e};let r=e.split(/\s+/).filter(n=>n&&!CW.test(n)),a={...t,...o.style};return{className:[...r,o.className].filter(Boolean).join(" "),...Object.keys(a).length?{style:a}:{},...o.attrs}}import{isNodeList as kW}from"efficient-easel/data";var mh=new Set(["FAQ"]);function Yo(e,o){if(!mh.has(e))return!1;let t=o.template;return typeof t=="function"?(t.blockCount??0)>0:kW(t)}var cO={ParagraphsA:{top:60,bottom:80},StatsParagraph:{top:120,bottom:120},Timeline:{top:120,bottom:120},Footprint:{top:120,bottom:120},TimelineTrack:{top:120,bottom:120},TitleWithButtons:{top:140,bottom:140},ProcessSteps:{top:120,bottom:120}},pO=new Set(Object.keys(cO));function hh(e,o){return o?.innerPadding??z(cO,e)}var Hn=e=>hh(e)??{};var yc=new Set(["Flex","Text","Heading","ImageBlock","ButtonBlock"]),vW=new Set(["Divider"]),PW=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),dO=new Set(["ProductGrid"]);function Ih(e,o,t=!1,r){let a=e.render;e.render=n=>{if(o?.(n))return a(n);let s={...Qs(n,po,t),sideSpace:Z0(n.sideSpace)},l=r?aa({values:s,frame:r(n)},!0).outer:bk(s),i=a(n);if(!l)return i;let d=u=>xh(Jf,{className:u?`${l.className} ${u}`:l.className,children:h=>xh(de,{className:h,style:l.style,children:i})}),f=wr(n,{atSectionLine:!0}),x=wr(n);return f===x?d(f):xh(of,{line:"by-box",draw:u=>d(u?x:f)})}}var uO={name:"sectionPadding",applies:(e,o,t)=>o.isSection(e)&&!PW.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=hh(o,e);if(r){e.fields={...e.fields,...t.sidesPaddingFields({keys:br,unitKey:Xd,fallback:r,tablet:!0,siteSide:!0})};return}if(dO.has(o))return;let a=[br.top,br.bottom].filter(s=>e.fields!=null&&s in e.fields);if(a.length)throw new Error(`section-padding: ${o} declares its own ${a.join(" / ")} row; declare \`innerPadding: { top, bottom }\` in its meta and the one Padding row draws on its band`);let n=fO(o,e);if(n){xO(e,o,t,n);return}e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})}},draw(e,o){if(!hh(o,e)){if(dO.has(o)){Ih(e);return}yc.has(o)||vW.has(o)||Ih(e,o==="Flex"?t=>Kk(t.bgImage):mh.has(o)?t=>Yo(o,t):void 0,!0,fO(o,e))}}},TW=["Heading","Text","ImageBlock","ButtonBlock"],OW=["LogoBlock"],mO={Text:e=>Tr(e,"text").textStyle?.startsWith("heading-")?el.heading:el.text,Heading:()=>el.heading,ButtonBlock:()=>el.text,Breadcrumb:()=>mx(Il),SpecStrip:()=>mx(xa),...Object.fromEntries(Object.entries(gc).map(([e,o])=>[e,o.frame]))};function fO(e,o){return z(mO,e)??o?.ownPad?.frame}var EW={ButtonBlock:"Outer padding"};function _W(e,o){let t=e[Ht],r=Array.isArray(t)?t.filter(i=>typeof i=="string"):[],a=wn().filter(i=>o?.[i]);if(!a.length)return e;let n=[...r.filter(i=>!a.includes(i)),...a.filter(i=>typeof e[i]=="number")];if(n.length===r.length&&n.every((i,d)=>i===r[d]))return e;let{[Ht]:s,...l}=e;return n.length?{...l,[Ht]:n}:l}function AW(e,o,t){if(o<=0)return null;let r=Array.isArray(e[Ht])?e[Ht]:[];return(t?wn().filter(a=>a.startsWith(po[t])):wn()).some(a=>typeof e[a]=="number"&&!r.includes(a))?c("plus {n} px (older setting)",{n:o}):null}function xO(e,o,t,r){e.fields={...e.fields,...t.ownPaddingFields?.(r,AW,z(EW,o))??t.sidesPaddingFields({tablet:!0,siteSide:!0})};let a=e.resolveData;e.resolveData=(n,s)=>{let l=n.props??{},i=s?.trigger==="replace"?_W(l,s.changed):l,d=i===l?n:{...n,props:i};return a?a(d,s):d}}var hO={name:"blockPadding",applies:(e,o,t)=>(TW.includes(e)||OW.includes(e))&&!!t&&typeof t.render=="function",panel(e,o,t){let r=z(mO,o);if(!r){e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})};return}xO(e,o,t,r)},draw(e,o){yc.has(o)||Ih(e,void 0,!0)}};import{createContext as gh,useContext as Sc}from"react";var IO=gh(null);function eie(){return Sc(IO)===!0}function oie(){return Sc(IO)!==null}var FW=gh(!1);function tie(){return Sc(FW)}function rie(e,o,t){let r=e.boxes;if(!r)return t;let a=r.indexOf(o);return a>=0?a:(r.push(o),r.length-1)}var bc=gh(null);function aie(){return Sc(bc)}import{jsx as ha}from"react/jsx-runtime";import{Component as WW,createContext as $W,lazy as Sie,Suspense as bie,useContext as zW,useSyncExternalStore as UW}from"react";function BW(e,o){let t=e.trim();if(!wc(t))return!1;if(!o)return!0;let r;try{r=new URL(t,"https://x.invalid").host}catch{return!1}let a=n=>n.toLowerCase().replace(/^www\./,"");return a(r)!==a(o)}function lie(e){return e.startsWith("/")||wc(e)}function wc(e){return/^(?:https?:)?\/\//i.test(e.trim())}var kl=Object.freeze({target:"_blank",rel:"noopener noreferrer"});function gO(e,o){return BW(e,o)?{...kl}:{}}function iie(e){return typeof e=="string"?e.trim():""}var die="data-sf-box-link",yO="absolute inset-0 -z-[1] outline-none focus-visible:z-[2] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent",yh="relative isolate pointer-events-none [&_a]:pointer-events-auto [&_button]:pointer-events-auto [&_input]:pointer-events-auto [&_select]:pointer-events-auto [&_textarea]:pointer-events-auto [&_label]:pointer-events-auto [&_summary]:pointer-events-auto [&_iframe]:pointer-events-auto [&_video]:pointer-events-auto [&_audio]:pointer-events-auto [&_[role=button]]:pointer-events-auto [&_[tabindex]:not([tabindex='-1'])]:pointer-events-auto",LW="data-sf-box-jump";function RW(e){return`sf-box-jump-${e}`}function fie(e,o){return e===!0?da(o):""}function DW({box:e,lit:o,first:t}){let r=s=>s.join(`,
|
|
304
|
+
`;function Vf({children:e,document:o}){let{theme:t,themeMode:r,themeSwitchShown:a}=ko(),n=er(t);return F0(()=>{if(o)return O0(o,{mode:r,switchShown:a})},[o,r,a]),F0(()=>{if(o)return E0(o,n)},[o,n]),Z6(()=>{if(o)return _0(o)},[o]),X6(Y6,{children:[A0(ZT,{}),A0("style",{children:J6}),e]})}import{jsx as dL}from"react/jsx-runtime";import{memo as PK}from"react";import{Render as TK}from"efficient-easel/render";import{jsx as Nn}from"react/jsx-runtime";import{createContext as Q6,useContext as eW,useMemo as oW}from"react";var sh=Q6(null);function tW({children:e}){return Nn(sh.Provider,{value:"first",children:e})}function Xf({children:e}){return Nn(sh.Provider,{value:"below",children:e})}function xl(){return eW(sh)}function lh(){return xl()==="below"?{loading:"lazy"}:{}}function Zf(e){let o=lh();return Nn("img",{...e,...o})}var B0="laterSlideIds",rW=new Set(["Breadcrumb","CategoryBar","Divider","Spacer","Ticker"]);function L0(e){return bf(e?.filter(o=>!o?.type||!rW.has(o.type)))}function Yf(e,o=[]){if(Array.isArray(e))for(let t of e)Yf(t,o);else if(e&&typeof e=="object"){let{slides:t}=e;if(Array.isArray(t))for(let r of t.slice(1))typeof r?.props?.id=="string"&&o.push(r.props.id);for(let r of Object.values(e))Yf(r,o)}return o}function R0(e,o){let t=o?.type,r=o?.props?.id;return oW(()=>{let a=t?e.components[t]:void 0;if(!t||!a)return e;let n=a.render,s=l=>l.id===r?Nn(tW,{children:Nn(n,{...l})}):Nn(n,{...l});return{...e,components:{...e.components,[t]:{...a,render:s}}}},[e,t,r])}function D0(e){return e.props?qe(e,o=>{let t=ze(o,D0),r=e.type===jC&&t.every(a=>a.type===Hd)?zC(t):t;return r.length!==o.length||r.some((a,n)=>a!==o[n])?r:o}):e}function N0(e){return ld(e,o=>ze(o,D0))}var aW="Flex",M0="ListSearch",H0=["FAQ"],nW="listKey";function W0(e,o){let t={search:e.type===M0,list:H0.includes(String(e.type))};return qe(e,r=>{for(let a of r){let n=W0(a,o);t.search||=n.search,t.list||=n.list}return r}),e.type===aW&&t.search&&t.list&&String(e.props?.id??"")?(o.add(e),{search:!1,list:!1}):t}function $0(e,o,t){let r=o.has(e)?String(e.props?.id):t,a=qe(e,n=>ze(n,s=>$0(s,o,r)));return r&&(e.type===M0||H0.includes(String(e.type)))?{...a,props:{...a.props,[nW]:r}}:a}function z0(e){return an(e,o=>{let t=new Set;for(let r of o)W0(r,t);return t.size?ze(o,r=>$0(r,t,"")):o})}import{isNode as u$,isNodeList as HE}from"efficient-easel/data";import{jsx as Ee,Fragment as o$,jsxs as dr}from"react/jsx-runtime";import{jsx as xh}from"react/jsx-runtime";import{Fragment as cW,jsx as pW}from"react/jsx-runtime";import{jsx as ih}from"react/jsx-runtime";import{createContext as iW,Fragment as dW,useContext as fW}from"react";import{jsx as U0,jsxs as sW}from"react/jsx-runtime";import{lazy as lW}from"react";var j0=lW(()=>import("./section-css-style-TB33NIO4.js"));function G0({css:e,id:o,attr:t}){return U0(j0,{css:e,id:o,attr:t})}var K0={name:"sectionCustomCss",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",panel(e,o,t){e.fields={...e.fields,...t.customCssFields()}},draw(e){e.defaultProps={...e.defaultProps,[Ld]:""};let o=e.render;e.render=t=>{let r=pC(t),a=typeof t.id=="string"?t.id:"";return!r||!a?o(t):sW(vr,{className:"sf-section-css",attrs:{[cC]:a},children:[U0(j0,{css:r,id:a}),o(t)]})}}};var q0=iW(null);function V0({rootProps:e,children:o}){let t=e&&typeof e=="object"?e:null,r=vk(t),a=ih(dW,{children:o},"page");return ih(q0.Provider,{value:t,children:r?[ih(G0,{css:r,id:kk,attr:Jd},"css"),a]:a})}function Y0(){return fW(q0)}function vt(){return Rd(Y0())===yC}function Jf({className:e,children:o}){let t=vt();return pW(cW,{children:o(ot(e,t))})}import{SITE_SIDE as uW}from"efficient-easel/screen/lib/content/length-units";var X0="sideSpace",hl=uW,dh="none",ple=[{value:"box",label:"Box"},{value:hl,label:"Site"},{value:dh,label:"None"}],ule="box",mle="Box: on small screens the Box keeps its own side space, up to 24 px. Site: it uses the site's Side space, as the site's own sections do. None: from 800 px up the Box runs to the screen's edges; on small screens it keeps the site's Side space, up to 20 px.";function Z0(e){return e===hl||e===dh?e:"box"}function xle(e){return e===hl||e===dh?e:void 0}import{parseOption as ph}from"efficient-shell/format";var Qf="standard",oO=[{label:"Standard",value:"standard"},{label:"Editorial",value:"editorial"},{label:"Simple",value:"simple"},{label:"Statement",value:"statement"},{label:"Natural",value:"natural"},{label:"Essay",value:"essay"}],ch=["numStyle","logoSrc","logoAlt","linkText","linkHref","_gLogo"],fh=[...ch,"description"],J0={standard:["eyebrowLook"],editorial:[...ch,"eyebrowLook"],simple:fh,statement:fh,natural:ch,essay:fh},Q0=["gap-5","gap-3"],eO=["text-[length:var(--size-body,16px)]","text-[15px]"];function yle(e){return ph(Q0,Q0[0],e)}function Sle(e){return ph(eO,eO[0],e)}function tO(e){return ph(oO,Qf,e)}function ble(e){let o=oO.map(r=>r.value),t=[...new Set(Object.values(J0).flat())];return et(e,t.map(r=>[[r],yd("headStyle",o,Qf,o.filter(a=>!J0[a].includes(r)))]))}import{readHidable as mW,VIEW_TIERS as xW,viewKeyAt as hW}from"efficient-easel/draw";var ua={direction:"row",share:"content",align:"center"},ma={top:14,bottom:14,topPhone:12,bottomPhone:12},ec={wrap:"nowrap",loop:"scroll",sectionAccent:dC,gap:60,gapPhone:32,separator:"dot",sectionBorder:{top:1,bottom:1}},rO={gap:120,gapPhone:64},oc={...Do,sizeToken:{step:"label",px:14,pxPhone:12},letterSpacing:.25,lineHeight:1.5},aO={textStyle:"heading-3",letterSpacing:.005,case:"upper",lineHeight:1},Il={top:24,bottom:24,topPhone:16,bottomPhone:16},xa={top:16,bottom:16,topPhone:12,bottomPhone:12},gl={justify:"between",wrap:"wrap",gap:32,separator:"none"},yl={...Do,letterSpacing:.1,lineHeight:1.5};var tc={top:24,bottom:24,topPhone:24,bottomPhone:24},rc={top:72,bottom:72,topPhone:72,bottomPhone:72},Mn={top:100,bottom:100,topPhone:60,bottomPhone:60},ac={top:120,bottom:120,topPhone:70,bottomPhone:70},IW={top:24,bottom:24,topPhone:24,bottomPhone:24},gW=40,nc={top:120,bottom:120,topTablet:80,bottomTablet:80,topPhone:80,bottomPhone:80},yW={top:24,bottom:24,topPhone:24,bottomPhone:24},sc={top:24,bottom:24,topPhone:24,bottomPhone:24},SW={top:84,bottom:84,topPhone:84,bottomPhone:84},lc={top:48,bottom:48,topPhone:48,bottomPhone:48},ic={top:80,bottom:80,topPhone:60,bottomPhone:60},dc={top:100,bottom:60,topPhone:60,bottomPhone:40},fc={top:60,bottom:60,topPhone:40,bottomPhone:40},cc={top:80,bottom:80,topTablet:60,bottomTablet:60,topPhone:60,bottomPhone:60},pc={top:76,bottom:76,topPhone:76,bottomPhone:76},uc={top:76,bottom:76,topPhone:76,bottomPhone:76},bl={top:80,bottom:40,topPhone:60,bottomPhone:32},wl={top:76,bottom:76,topPhone:76,bottomPhone:76},mc={top:72,bottom:72,topPhone:72,bottomPhone:72},xc={top:40,bottom:64,topPhone:24,bottomPhone:36},hc={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},Ic={top:48,bottom:48,topPhone:48,bottomPhone:48},Cl=e=>{let o=Ie(e.bandPadding)??gW;return{top:o,bottom:o,topPhone:o,bottomPhone:o}},nO=(e,o,t)=>({desktop:e,tablet:o,mobile:t}),uh=e=>cn(e.headPlacement)==="own-box",Be=(e,o)=>({top:nO(e.top,o?.top??e.topTablet??e.top,e.topPhone),bottom:nO(e.bottom,o?.bottom??e.bottomTablet??e.bottom,e.bottomPhone)}),sO=e=>({top:e.topPhone,bottom:e.bottomPhone}),Sl=e=>o=>uh(o)?{top:0,bottom:e.bottom}:e,bW=(e,o)=>{let t=mW(e[o]);return t.hidden?!1:!!t.text||e.editor?.isEditing===!0},gc={Banner:{frame:()=>Be(tc)},Cards:{frame:Sl(Be(rc))},Chart:{frame:()=>Be(wl)},ContactLocations:{frame:()=>Be(Mn,sO(Mn))},Countdown:{frame:()=>Be(lc)},DocBody:{frame:()=>Be(ic)},DocMasthead:{frame:()=>Be(dc)},DocMetaCards:{frame:()=>Be(fc)},FAQ:{frame:e=>{let o=uh(e)||!["num","title","linkText"].some(r=>bW(e,r)),t=Be(ac);return o?{top:0,bottom:t.bottom}:t},edge:!0},FeaturedCover:{frame:()=>Be(cc)},Grid:{frame:()=>Be(IW)},Integrations:{frame:()=>Be(pc)},KeyFeatures:{frame:()=>Be(uc)},Logos:{frame:e=>uh(e)?0:Be(Cl(e))},LongRead:{frame:Sl(Be(nc))},Masthead:{frame:()=>Be(bl,sO(bl))},Mockup:{frame:()=>Be(wl)},OrderSummary:{frame:()=>Be(yW)},PaymentBadges:{frame:()=>Be(sc)},Prose:{frame:Sl(Be(mc))},SectionHeader:{frame:e=>{let o=Be(xc);return tO(e.headStyle)==="standard"?o:{top:o.top,bottom:0}},edge:!0},Series:{frame:Sl(Be(hc))},Stats:{frame:()=>Be(Ic)},Testimonials:{frame:Sl(Be(SW))},Ticker:{frame:()=>Be(ma),edge:!0}};function Ble(e,o,t){let r=z(gc,e)??t;return r?aa({values:Qs(o,po,!0),frame:r.frame(o),drawsFrame:!0,edge:r.edge},!0).root:null}var lO=(e,o)=>typeof e=="object"&&"top"in e?e[o]:e;function wW(e,o){let t={...e};for(let r of xW)delete t[hW(o,r)];return t}function Lle(e,o,t,r){let a=z(gc,e)??t;if(!a)return{first:null,last:null};let n=a.frame(o),s=Qs(o,po,!0),l=(i,d)=>aa({values:wW(s,i),frame:d,drawsFrame:!0,edge:a.edge},!0).root;return{first:l("bottom",{top:lO(n,"top"),bottom:r.firstBottom}),last:l("top",{top:r.lastTop,bottom:lO(n,"bottom")})}}var CW=/^(?:[^\s]*:)?p[ytb]-/;function iO(e,o,t){if(!o)return t?{className:e,style:t}:{className:e};let r=e.split(/\s+/).filter(n=>n&&!CW.test(n)),a={...t,...o.style};return{className:[...r,o.className].filter(Boolean).join(" "),...Object.keys(a).length?{style:a}:{},...o.attrs}}import{isNodeList as kW}from"efficient-easel/data";var mh=new Set(["FAQ"]);function Yo(e,o){if(!mh.has(e))return!1;let t=o.template;return typeof t=="function"?(t.blockCount??0)>0:kW(t)}var cO={ParagraphsA:{top:60,bottom:80},StatsParagraph:{top:120,bottom:120},Timeline:{top:120,bottom:120},Footprint:{top:120,bottom:120},TimelineTrack:{top:120,bottom:120},TitleWithButtons:{top:140,bottom:140},ProcessSteps:{top:120,bottom:120}},pO=new Set(Object.keys(cO));function hh(e,o){return o?.innerPadding??z(cO,e)}var Hn=e=>hh(e)??{};var yc=new Set(["Flex","Text","Heading","ImageBlock","ButtonBlock"]),vW=new Set(["Divider"]),PW=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),dO=new Set(["ProductGrid"]);function Ih(e,o,t=!1,r){let a=e.render;e.render=n=>{if(o?.(n))return a(n);let s={...Qs(n,po,t),sideSpace:Z0(n.sideSpace)},l=r?aa({values:s,frame:r(n)},!0).outer:bk(s),i=a(n);if(!l)return i;let d=u=>xh(Jf,{className:u?`${l.className} ${u}`:l.className,children:h=>xh(de,{className:h,style:l.style,children:i})}),f=wr(n,{atSectionLine:!0}),x=wr(n);return f===x?d(f):xh(of,{line:"by-box",draw:u=>d(u?x:f)})}}var uO={name:"sectionPadding",applies:(e,o,t)=>o.isSection(e)&&!PW.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=hh(o,e);if(r){e.fields={...e.fields,...t.sidesPaddingFields({keys:br,unitKey:Xd,fallback:r,tablet:!0,siteSide:!0})};return}if(dO.has(o))return;let a=[br.top,br.bottom].filter(s=>e.fields!=null&&s in e.fields);if(a.length)throw new Error(`section-padding: ${o} declares its own ${a.join(" / ")} row; declare \`innerPadding: { top, bottom }\` in its meta and the one Padding row draws on its band`);let n=fO(o,e);if(n){xO(e,o,t,n);return}e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})}},draw(e,o){if(!hh(o,e)){if(dO.has(o)){Ih(e);return}yc.has(o)||vW.has(o)||Ih(e,o==="Flex"?t=>Kk(t.bgImage):mh.has(o)?t=>Yo(o,t):void 0,!0,fO(o,e))}}},TW=["Heading","Text","ImageBlock","ButtonBlock"],OW=["LogoBlock"],mO={Text:e=>Tr(e,"text").textStyle?.startsWith("heading-")?el.heading:el.text,Heading:()=>el.heading,ButtonBlock:()=>el.text,Breadcrumb:()=>mx(Il),SpecStrip:()=>mx(xa),...Object.fromEntries(Object.entries(gc).map(([e,o])=>[e,o.frame]))};function fO(e,o){return z(mO,e)??o?.ownPad?.frame}var EW={ButtonBlock:"Outer padding"};function _W(e,o){let t=e[Ht],r=Array.isArray(t)?t.filter(i=>typeof i=="string"):[],a=wn().filter(i=>o?.[i]);if(!a.length)return e;let n=[...r.filter(i=>!a.includes(i)),...a.filter(i=>typeof e[i]=="number")];if(n.length===r.length&&n.every((i,d)=>i===r[d]))return e;let{[Ht]:s,...l}=e;return n.length?{...l,[Ht]:n}:l}function AW(e,o,t){if(o<=0)return null;let r=Array.isArray(e[Ht])?e[Ht]:[];return(t?wn().filter(a=>a.startsWith(po[t])):wn()).some(a=>typeof e[a]=="number"&&!r.includes(a))?c("plus {n} px (older setting)",{n:o}):null}function xO(e,o,t,r){e.fields={...e.fields,...t.ownPaddingFields?.(r,AW,z(EW,o))??t.sidesPaddingFields({tablet:!0,siteSide:!0})};let a=e.resolveData;e.resolveData=(n,s)=>{let l=n.props??{},i=s?.trigger==="replace"?_W(l,s.changed):l,d=i===l?n:{...n,props:i};return a?a(d,s):d}}var hO={name:"blockPadding",applies:(e,o,t)=>(TW.includes(e)||OW.includes(e))&&!!t&&typeof t.render=="function",panel(e,o,t){let r=z(mO,o);if(!r){e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})};return}xO(e,o,t,r)},draw(e,o){yc.has(o)||Ih(e,void 0,!0)}};import{createContext as gh,useContext as Sc}from"react";var IO=gh(null);function eie(){return Sc(IO)===!0}function oie(){return Sc(IO)!==null}var FW=gh(!1);function tie(){return Sc(FW)}function rie(e,o,t){let r=e.boxes;if(!r)return t;let a=r.indexOf(o);return a>=0?a:(r.push(o),r.length-1)}var bc=gh(null);function aie(){return Sc(bc)}import{jsx as ha}from"react/jsx-runtime";import{Component as WW,createContext as $W,lazy as Sie,Suspense as bie,useContext as zW,useSyncExternalStore as UW}from"react";function BW(e,o){let t=e.trim();if(!wc(t))return!1;if(!o)return!0;let r;try{r=new URL(t,"https://x.invalid").host}catch{return!1}let a=n=>n.toLowerCase().replace(/^www\./,"");return a(r)!==a(o)}function lie(e){return e.startsWith("/")||wc(e)}function wc(e){return/^(?:https?:)?\/\//i.test(e.trim())}var kl=Object.freeze({target:"_blank",rel:"noopener noreferrer"});function gO(e,o){return BW(e,o)?{...kl}:{}}function iie(e){return typeof e=="string"?e.trim():""}var die="data-sf-box-link",yO="absolute inset-0 -z-[1] outline-none focus-visible:z-[2] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent",yh="relative isolate pointer-events-none [&_a]:pointer-events-auto [&_button]:pointer-events-auto [&_input]:pointer-events-auto [&_select]:pointer-events-auto [&_textarea]:pointer-events-auto [&_label]:pointer-events-auto [&_summary]:pointer-events-auto [&_iframe]:pointer-events-auto [&_video]:pointer-events-auto [&_audio]:pointer-events-auto [&_[role=button]]:pointer-events-auto [&_[tabindex]:not([tabindex='-1'])]:pointer-events-auto",LW="data-sf-box-jump";function RW(e){return`sf-box-jump-${e}`}function fie(e,o){return e===!0?da(o):""}function DW({box:e,lit:o,first:t}){let r=s=>s.join(`,
|
|
305
305
|
`),a=t(e),n=o.flatMap(t);return`
|
|
306
306
|
${e} {
|
|
307
307
|
outline: 2px solid transparent;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{f as fs,g as hs}from"./chunk-
|
|
1
|
+
import{f as fs,g as hs}from"./chunk-NOV6LTTJ.js";import{a as T,b as Sr}from"./chunk-Y6SLVHK3.js";var Sn=T((ud,Ds)=>{"use strict";function Iu(i,e){this.v=i,this.k=e}function ps(i,e){(e==null||e>i.length)&&(e=i.length);for(var t=0,r=Array(e);t<e;t++)r[t]=i[t];return r}function Lu(i){if(Array.isArray(i))return i}function Du(i,e){var t=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(t!=null){var r,n,s,o,l=[],a=!0,h=!1;try{if(s=(t=t.call(i)).next,e===0){if(Object(t)!==t)return;a=!1}else for(;!(a=(r=s.call(t)).done)&&(l.push(r.value),l.length!==e);a=!0);}catch(f){h=!0,n=f}finally{try{if(!a&&t.return!=null&&(o=t.return(),Object(o)!==o))return}finally{if(h)throw n}}return l}}function Ru(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nu(i,e){return Lu(i)||Du(i,e)||ku(i,e)||Ru()}function ku(i,e){if(i){if(typeof i=="string")return ps(i,e);var t={}.toString.call(i).slice(8,-1);return t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set"?Array.from(i):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ps(i,e):void 0}}function br(i){var e,t;function r(s,o){try{var l=i[s](o),a=l.value,h=a instanceof Iu;Promise.resolve(h?a.v:a).then(function(f){if(h){var _=s==="return"&&a.k?s:"next";if(!a.k||f.done)return r(_,f);f=i[_](f).value}n(!!l.done,f)},function(f){r("throw",f)})}catch(f){n(2,f)}}function n(s,o){s===2?e.reject(o):e.resolve({value:o,done:s}),(e=e.next)?r(e.key,e.arg):t=null}this._invoke=function(s,o){return new Promise(function(l,a){var h={key:s,arg:o,resolve:l,reject:a,next:null};t?t=t.next=h:(e=t=h,r(s,o))})},typeof i.return!="function"&&(this.return=void 0)}br.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},br.prototype.next=function(i){return this._invoke("next",i)},br.prototype.throw=function(i){return this._invoke("throw",i)},br.prototype.return=function(i){return this._invoke("return",i)};var xs=Object.entries,ds=Object.setPrototypeOf,Mu=Object.isFrozen,Fu=Object.getPrototypeOf,qu=Object.getOwnPropertyDescriptor,J=Object.freeze,re=Object.seal,vt=Object.create,Cs=typeof Reflect<"u"&&Reflect,vn=Cs.apply,wn=Cs.construct;J||(J=function(e){return e});re||(re=function(e){return e});vn||(vn=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),s=2;s<r;s++)n[s-2]=arguments[s];return e.apply(t,n)});wn||(wn=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return new e(...r)});var Ge=X(Array.prototype.forEach);Array.prototype.indexOf;var ju=X(Array.prototype.lastIndexOf),ms=X(Array.prototype.pop),kt=X(Array.prototype.push);Array.prototype.slice;var Uu=X(Array.prototype.splice),wt=Array.isArray,qt=X(String.prototype.toLowerCase),pn=X(String.prototype.toString),gs=X(String.prototype.match),Mt=X(String.prototype.replace),ys=X(String.prototype.indexOf),Bu=X(String.prototype.trim),zu=X(Number.prototype.toString),Wu=X(Boolean.prototype.toString),_s=typeof BigInt>"u"?null:X(BigInt.prototype.toString),vs=typeof Symbol>"u"?null:X(Symbol.prototype.toString),ue=X(Object.prototype.hasOwnProperty),Ft=X(Object.prototype.toString),oe=X(RegExp.prototype.test),ke=Hu(TypeError);function X(i){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return vn(i,e,r)}}function Hu(i){return function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return wn(i,t)}}function D(i,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:qt;if(ds&&ds(i,null),!wt(e))return i;let r=e.length;for(;r--;){let n=e[r];if(typeof n=="string"){let s=t(n);s!==n&&(Mu(e)||(e[r]=s),n=s)}i[n]=!0}return i}function Gu(i){for(let e=0;e<i.length;e++)ue(i,e)||(i[e]=null);return i}function he(i){let e=vt(null);for(let r of xs(i)){var t=Nu(r,2);let n=t[0],s=t[1];ue(i,n)&&(wt(s)?e[n]=Gu(s):s&&typeof s=="object"&&s.constructor===Object?e[n]=he(s):e[n]=s)}return e}function Yu(i){switch(typeof i){case"string":return i;case"number":return zu(i);case"boolean":return Wu(i);case"bigint":return _s?_s(i):"0";case"symbol":return vs?vs(i):"Symbol()";case"undefined":return Ft(i);case"function":case"object":{if(i===null)return Ft(i);let e=i,t=me(e,"toString");if(typeof t=="function"){let r=t(e);return typeof r=="string"?r:Ft(r)}return Ft(i)}default:return Ft(i)}}function me(i,e){for(;i!==null;){let r=qu(i,e);if(r){if(r.get)return X(r.get);if(typeof r.value=="function")return X(r.value)}i=Fu(i)}function t(){return null}return t}function $u(i){try{return oe(i,""),!0}catch{return!1}}var ws=J(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),dn=J(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),mn=J(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Vu=J(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),gn=J(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Qu=J(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ss=J(["#text"]),bs=J(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),yn=J(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ts=J(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Tr=J(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Xu=re(/{{[\w\W]*|^[\w\W]*}}/g),Ku=re(/<%[\w\W]*|^[\w\W]*%>/g),Ju=re(/\${[\w\W]*/g),Zu=re(/^data-[\-\w.\u00B7-\uFFFF]+$/),el=re(/^aria-[\-\w]+$/),Es=re(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),tl=re(/^(?:\w+script|data):/i),rl=re(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),nl=re(/^html$/i),il=re(/^[a-z][.\w]*(-[.\w]+)+$/i),Os=re(/<[/\w!]/g),As=re(/<[/\w]/g),sl=re(/<\/no(script|embed|frames)/i),ol=re(/\/>/i),fe={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Is=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],al=J(D({},Is)),ul=(function(){let i={};return Ge(Is,e=>{i[e]=re(new RegExp("</"+e+"(?=[\\t\\n\\f\\r />])","i"))}),J(i)})(),ll=function(){return typeof window>"u"?null:window},cl=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null,n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(r=t.getAttribute(n));let s="dompurify"+(r?"#"+r:"");try{return e.createPolicy(s,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},Ps=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Me=function(e,t,r,n){return ue(e,t)&&wt(e[t])?D(n.base?he(n.base):{},e[t],n.transform):r},_n=function(e,t,r){let n=ue(e,t)?e[t]:void 0;return n&&typeof n=="object"?he(n):r()};function Ls(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ll(),e=y=>Ls(y);if(e.version="3.4.16",e.removed=[],!i||!i.document||i.document.nodeType!==fe.document||!i.Element)return e.isSupported=!1,e;let t=i.document,r=t,n=r.currentScript;i.DocumentFragment;let s=i.HTMLTemplateElement,o=i.Node,l=i.Element,a=i.NodeFilter;i.NamedNodeMap===void 0&&(i.NamedNodeMap||i.MozNamedAttrMap),i.HTMLFormElement;let h=i.DOMParser,f=i.trustedTypes,_=l.prototype,p=me(_,"cloneNode"),d=me(_,"remove"),v=me(_,"removeAttributeNode"),x=me(_,"nextSibling"),E=me(_,"childNodes"),U=me(_,"parentNode"),Y=me(_,"shadowRoot"),K=me(_,"attributes"),k=o&&o.prototype?me(o.prototype,"nodeType"):null,V=o&&o.prototype?me(o.prototype,"nodeName"):null,Q=o&&o.prototype?me(o.prototype,"ownerDocument"):null,ee=function(u){return k?k(u):u.nodeType},Se=function(u){return V?V(u):u.nodeName};if(typeof s=="function"){let y=t.createElement("template");y.content&&y.content.ownerDocument&&(t=y.content.ownerDocument)}let te,pe="",Lt,ar=!1,Be=0,Ni=function(){if(Be>0)throw ke('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},ct=function(u){Ni(),Be++;try{return te.createHTML(u)}finally{Be--}},ru=function(u){Ni(),Be++;try{return te.createScriptURL(u)}finally{Be--}},nu=function(){return ar||(Lt=cl(f,n),ar=!0),Lt},ur=t,Xr=ur.implementation,ki=ur.createNodeIterator,iu=ur.createDocumentFragment,su=ur.getElementsByTagName,ou=r.importNode,B=Ps();e.isSupported=typeof xs=="function"&&typeof U=="function"&&Xr&&Xr.createHTMLDocument!==void 0;let au=Xu,uu=Ku,lu=Ju,cu=Zu,fu=el,hu=tl,Mi=rl,pu=il,Fi=Es,z=null,Kr=D({},[...ws,...dn,...mn,...gn,...Ss]),W=null,Jr=D({},[...bs,...yn,...Ts,...Tr]),be=Object.seal(vt(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Dt=null,qi=null,De=Object.seal(vt(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),ji=!0,Zr=!0,Ui=!1,Bi=!0,Re=!1,ze=!0,We=!1,en=!1,lr=null,cr=null,tn=!1,ft=!1,fr=!1,hr=!1,zi=!0,Wi=!1,Hi="user-content-",rn=!0,nn=!1,ht={},pt=null,Gi=D({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),Yi=null,$i=D({},["audio","video","img","source","image","track"]),Vi=null,Qi=D({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),pr="http://www.w3.org/1998/Math/MathML",dr="http://www.w3.org/2000/svg",Te="http://www.w3.org/1999/xhtml",dt=Te,sn=!1,on=null,du=D({},[pr,dr,Te],pn),Xi=J(["mi","mo","mn","ms","mtext"]),an=D({},Xi),Ki=J(["annotation-xml"]),un=D({},Ki),mu=D({},["title","style","font","a","script"]),Rt=null,gu=["application/xhtml+xml","text/html"],yu="text/html",$=null,mt=null,_u=t.createElement("form"),Ji=function(u){return u instanceof RegExp||u instanceof Function},ln=function(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(mt&&mt===u)return;(!u||typeof u!="object")&&(u={}),u=he(u),Rt=gu.indexOf(u.PARSER_MEDIA_TYPE)===-1?yu:u.PARSER_MEDIA_TYPE,$=Rt==="application/xhtml+xml"?pn:qt,z=Me(u,"ALLOWED_TAGS",Kr,{transform:$}),W=Me(u,"ALLOWED_ATTR",Jr,{transform:$}),on=Me(u,"ALLOWED_NAMESPACES",du,{transform:pn}),Vi=Me(u,"ADD_URI_SAFE_ATTR",Qi,{transform:$,base:Qi}),Yi=Me(u,"ADD_DATA_URI_TAGS",$i,{transform:$,base:$i}),pt=Me(u,"FORBID_CONTENTS",Gi,{transform:$}),Dt=Me(u,"FORBID_TAGS",he({}),{transform:$}),qi=Me(u,"FORBID_ATTR",he({}),{transform:$}),ht=ue(u,"USE_PROFILES")?u.USE_PROFILES&&typeof u.USE_PROFILES=="object"?he(u.USE_PROFILES):u.USE_PROFILES:!1,ji=u.ALLOW_ARIA_ATTR!==!1,Zr=u.ALLOW_DATA_ATTR!==!1,Ui=u.ALLOW_UNKNOWN_PROTOCOLS||!1,Bi=u.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Re=u.SAFE_FOR_TEMPLATES||!1,ze=u.SAFE_FOR_XML!==!1,We=u.WHOLE_DOCUMENT||!1,ft=u.RETURN_DOM||!1,fr=u.RETURN_DOM_FRAGMENT||!1,hr=u.RETURN_TRUSTED_TYPE||!1,tn=u.FORCE_BODY||!1,zi=u.SANITIZE_DOM!==!1,Wi=u.SANITIZE_NAMED_PROPS||!1,rn=u.KEEP_CONTENT!==!1,nn=u.IN_PLACE||!1,Fi=$u(u.ALLOWED_URI_REGEXP)?u.ALLOWED_URI_REGEXP:Es,dt=typeof u.NAMESPACE=="string"?u.NAMESPACE:Te,an=_n(u,"MATHML_TEXT_INTEGRATION_POINTS",()=>D({},Xi)),un=_n(u,"HTML_INTEGRATION_POINTS",()=>D({},Ki));let c=_n(u,"CUSTOM_ELEMENT_HANDLING",()=>vt(null));if(be=vt(null),ue(c,"tagNameCheck")&&Ji(c.tagNameCheck)&&(be.tagNameCheck=c.tagNameCheck),ue(c,"attributeNameCheck")&&Ji(c.attributeNameCheck)&&(be.attributeNameCheck=c.attributeNameCheck),ue(c,"allowCustomizedBuiltInElements")&&typeof c.allowCustomizedBuiltInElements=="boolean"&&(be.allowCustomizedBuiltInElements=c.allowCustomizedBuiltInElements),re(be),Re&&(Zr=!1),fr&&(ft=!0),ht&&(z=D({},Ss),W=vt(null),ht.html===!0&&(D(z,ws),D(W,bs)),ht.svg===!0&&(D(z,dn),D(W,yn),D(W,Tr)),ht.svgFilters===!0&&(D(z,mn),D(W,yn),D(W,Tr)),ht.mathMl===!0&&(D(z,gn),D(W,Ts),D(W,Tr))),De.tagCheck=null,De.attributeCheck=null,ue(u,"ADD_TAGS")&&(typeof u.ADD_TAGS=="function"?De.tagCheck=u.ADD_TAGS:wt(u.ADD_TAGS)&&(z===Kr&&(z=he(z)),D(z,u.ADD_TAGS,$))),ue(u,"ADD_ATTR")&&(typeof u.ADD_ATTR=="function"?De.attributeCheck=u.ADD_ATTR:wt(u.ADD_ATTR)&&(W===Jr&&(W=he(W)),D(W,u.ADD_ATTR,$))),ue(u,"ADD_FORBID_CONTENTS")&&wt(u.ADD_FORBID_CONTENTS)&&(pt===Gi&&(pt=he(pt)),D(pt,u.ADD_FORBID_CONTENTS,$)),rn&&(z["#text"]=!0),We&&D(z,["html","head","body"]),z.table&&(D(z,["tbody"]),delete Dt.tbody),u.TRUSTED_TYPES_POLICY){if(typeof u.TRUSTED_TYPES_POLICY.createHTML!="function")throw ke('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof u.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ke('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let g=te;te=u.TRUSTED_TYPES_POLICY;try{pe=ct("")}catch(w){throw te=g,w}}else u.TRUSTED_TYPES_POLICY===null?(te=void 0,pe=""):(te===void 0&&(te=nu()),te&&typeof pe=="string"&&(pe=ct("")));J&&J(u),mt=u},Zi=D({},[...dn,...mn,...Vu]),es=D({},[...gn,...Qu]),vu=function(u,c,g){return c.namespaceURI===Te?u==="svg":c.namespaceURI===pr?u==="svg"&&(g==="annotation-xml"||an[g]):!!Zi[u]},wu=function(u,c,g){return c.namespaceURI===Te?u==="math":c.namespaceURI===dr?u==="math"&&un[g]:!!es[u]},Su=function(u,c,g){return c.namespaceURI===dr&&!un[g]||c.namespaceURI===pr&&!an[g]?!1:!es[u]&&(mu[u]||!Zi[u])},bu=function(u){let c=U(u);(!c||!c.tagName)&&(c={namespaceURI:dt,tagName:"template"});let g=qt(u.tagName),w=qt(c.tagName);return on[u.namespaceURI]?u.namespaceURI===dr?vu(g,c,w):u.namespaceURI===pr?wu(g,c,w):u.namespaceURI===Te?Su(g,c,w):!!(Rt==="application/xhtml+xml"&&on[u.namespaceURI]):!1},Ne=function(u){kt(e.removed,{element:u});try{U(u).removeChild(u)}catch{if(d(u),!U(u))throw ke("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},ts=function(u,c,g){try{v(u,c)}catch{try{u.removeAttribute(g)}catch{}}},mr=function(u){gr(u);let c=E(u);if(c){let w=[];Ge(c,A=>{kt(w,A)}),Ge(w,A=>{try{d(A)}catch{}})}let g=K(u);if(g)for(let w=g.length-1;w>=0;--w){let A=g[w],C=A&&A.name;typeof C=="string"&&ts(u,A,C)}},He=function(u,c,g){if(!g)try{g=c.getAttributeNode(u)}catch{g=null}kt(e.removed,{attribute:g||null,from:c});try{g?v(c,g):c.removeAttribute(u)}catch{try{c.removeAttribute(u)}catch{}}if(u==="is")if(ft||fr)try{Ne(c)}catch{}else try{c.setAttribute(u,"")}catch{}},Tu=function(u){let c=K(u);if(c)for(let g=c.length-1;g>=0;--g){let w=c[g],A=w&&w.name;typeof A!="string"||W[$(A)]||ts(u,w,A)}},gr=function(u){let c=[u];for(;c.length>0;){let g=c.pop();ee(g)===fe.element&&Tu(g);let w=E(g);if(w)for(let A=w.length-1;A>=0;--A)c.push(w[A])}},rs=function(u,c){return ze?u==="patchsrc"?!0:u==="for"&&c!=="label"&&c!=="output":!1},Eu=function(u){if(!ze)return;let c=[u];for(;c.length>0;){let g=c.pop(),w=ee(g);if(w===fe.processingInstruction||w===fe.comment&&oe(As,g.data)){try{d(g)}catch{}continue}if(w===fe.element){let C=g,L=$(Se(g));try{C.hasAttribute&&C.hasAttribute("patchsrc")&&C.removeAttribute("patchsrc"),C.hasAttribute&&C.hasAttribute("for")&&rs("for",L)&&C.removeAttribute("for")}catch{}}let A=E(g);if(A)for(let C=A.length-1;C>=0;--C)c.push(A[C])}},ns=function(u){let c=null,g=null;if(tn)u="<remove></remove>"+u;else{let C=gs(u,/^[\r\n\t ]+/);g=C&&C[0]}Rt==="application/xhtml+xml"&&dt===Te&&(u='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+u+"</body></html>");let w=te?ct(u):u;if(dt===Te)try{c=new h().parseFromString(w,Rt)}catch{}if(!c||!c.documentElement){c=Xr.createDocument(dt,"template",null);try{c.documentElement.innerHTML=sn?pe:w}catch{}}let A=c.body||c.documentElement;return u&&g&&A.insertBefore(t.createTextNode(g),A.childNodes[0]||null),dt===Te?su.call(c,We?"html":"body")[0]:We?c.documentElement:A},is=function(u){let c=Q?Q(u):u.ownerDocument;return ki.call(c||u,u,a.SHOW_ELEMENT|a.SHOW_COMMENT|a.SHOW_TEXT|a.SHOW_PROCESSING_INSTRUCTION|a.SHOW_CDATA_SECTION,null)},yr=function(u){return u=Mt(u,au," "),u=Mt(u,uu," "),u=Mt(u,lu," "),u},cn=function(u){var c;u.normalize();let g=Q?Q(u):u.ownerDocument,w=ki.call(g||u,u,a.SHOW_TEXT|a.SHOW_COMMENT|a.SHOW_CDATA_SECTION|a.SHOW_PROCESSING_INSTRUCTION,null),A=w.nextNode();for(;A;)A.data=yr(A.data),A=w.nextNode();let C=(c=u.querySelectorAll)===null||c===void 0?void 0:c.call(u,"template");C&&Ge(C,L=>{gt(L.content)&&cn(L.content)})},_r=function(u){let c=V?V(u):null;return typeof c!="string"||$(c)!=="form"?!1:typeof u.nodeName!="string"||typeof u.textContent!="string"||typeof u.removeChild!="function"||u.attributes!==K(u)||typeof u.removeAttribute!="function"||typeof u.removeAttributeNode!="function"||typeof u.getAttributeNode!="function"||typeof u.setAttribute!="function"||typeof u.namespaceURI!="string"||typeof u.insertBefore!="function"||typeof u.hasChildNodes!="function"||u.nodeType!==k(u)||u.childNodes!==E(u)},gt=function(u){if(!k||typeof u!="object"||u===null)return!1;try{return k(u)===fe.documentFragment}catch{return!1}},Nt=function(u){if(!k||typeof u!="object"||u===null)return!1;try{return typeof k(u)=="number"}catch{return!1}};function Ee(y,u,c){y.length!==0&&Ge(y,g=>{g.call(e,u,c,mt)})}let Ou=function(u,c){return!!(ze&&u.hasChildNodes()&&!Nt(u.firstElementChild)&&oe(Os,u.textContent)&&oe(Os,u.innerHTML)||ze&&u.namespaceURI===Te&&al[c]&&(Nt(u.firstElementChild)||typeof u.textContent=="string"&&oe(ul[c],u.textContent))||u.nodeType===fe.processingInstruction||ze&&u.nodeType===fe.comment&&oe(As,u.data))},vr=function(u,c){if(u instanceof RegExp)return oe(u,c);if(u instanceof Function){for(var g=arguments.length,w=new Array(g>2?g-2:0),A=2;A<g;A++)w[A-2]=arguments[A];return!!u(c,...w)}return!1},Au=function(u,c,g){if(!Dt[c]&&us(c)&&vr(be.tagNameCheck,c))return!1;if(rn&&!pt[c]){let w=U(u),A=E(u);if(A&&w){let C=A.length;for(let L=C-1;L>=0;--L){let G=u===g?p(A[L],!0):A[L];w.insertBefore(G,x(u))}}}return Ne(u),!0},ss=function(u,c,g,w){return u.length===0?c:c===g||c===w?he(c):c},yt=function(u,c){return u===c||U(u)!==null?!1:(nn&&gr(u),!0)},os=function(u,c){if(Ee(B.beforeSanitizeElements,u,null),yt(u,c))return!0;if(_r(u))return Ne(u),!0;let g=$(Se(u));if(z=ss(B.uponSanitizeElement,z,Kr,lr),Ee(B.uponSanitizeElement,u,{tagName:g,allowedTags:z}),yt(u,c))return!0;if(Ou(u,g))return Ne(u),!0;if(Dt[g]||!(De.tagCheck instanceof Function&&De.tagCheck(g))&&!z[g]){let w=Au(u,g,c);return w===!1&&(Ee(B.afterSanitizeElements,u,null),yt(u,c))?!0:w}if(ee(u)===fe.element&&!bu(u)||(g==="noscript"||g==="noembed"||g==="noframes")&&oe(sl,u.innerHTML))return Ne(u),!0;if(Re&&u.nodeType===fe.text){let w=yr(u.textContent);u.textContent!==w&&(kt(e.removed,{element:u.cloneNode()}),u.textContent=w)}return Ee(B.afterSanitizeElements,u,null),yt(u,c)},as=function(u,c,g){if(qi[c]||rs(c,u)||zi&&(c==="id"||c==="name")&&(g in t||g in _u))return!1;let w=W[c]||De.attributeCheck instanceof Function&&De.attributeCheck(c,u);return Zr&&oe(cu,c)||ji&&oe(fu,c)?!0:w?Vi[c]||oe(Fi,Mt(g,Mi,""))||(c==="src"||c==="xlink:href"||c==="href")&&u!=="script"&&ys(g,"data:")===0&&Yi[u]||Ui&&!oe(hu,Mt(g,Mi,""))?!0:!g:us(u)&&vr(be.tagNameCheck,u)&&vr(be.attributeNameCheck,c,u)||c==="is"&&be.allowCustomizedBuiltInElements&&vr(be.tagNameCheck,g)},Pu=D({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),us=function(u){return!Pu[qt(u)]&&oe(pu,u)},xu=function(u,c,g,w){if(te&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!g)switch(f.getAttributeType(u,c)){case"TrustedHTML":return ct(w);case"TrustedScriptURL":return ru(w)}return w},Cu=function(u,c,g,w){try{return g?u.setAttributeNS(g,c,w):u.setAttribute(c,w),_r(u)?(Ne(u),!1):!0}catch{return He(c,u),!1}},ls=function(u,c){if(Ee(B.beforeSanitizeAttributes,u,null),yt(u,c))return;let g=u.attributes;if(!g||_r(u))return;W=ss(B.uponSanitizeAttribute,W,Jr,cr);let w={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W,forceKeepAttr:void 0},A=g.length,C=$(u.nodeName);for(;A--;){let L=g[A],G=L.name,de=L.namespaceURI,ce=L.value,_t=$(G),hn=ce,ae=G==="value"?hn:Bu(hn),cs=!1;if(w.attrName=_t,w.attrValue=ae,w.keepAttr=!0,w.forceKeepAttr=void 0,Ee(B.uponSanitizeAttribute,u,w),ae=w.attrValue,Wi&&(_t==="id"||_t==="name")&&ys(ae,Hi)!==0&&(He(G,u,L),ae=Hi+ae,cs=!0),ze&&oe(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,ae)){He(G,u,L);continue}if(_t==="attributename"&&gs(ae,"href")){He(G,u,L);continue}if(!w.forceKeepAttr){if(!w.keepAttr){He(G,u,L);continue}if(!Bi&&oe(ol,ae)){He(G,u,L);continue}if(Re&&(ae=yr(ae)),!as(C,_t,ae)){He(G,u,L);continue}ae=xu(C,_t,de,ae),ae!==hn&&Cu(u,G,de,ae)&&cs&&ms(e.removed)}}Ee(B.afterSanitizeAttributes,u,null),yt(u,c)},wr=function(u){let c=null,g=is(u);for(Ee(B.beforeSanitizeShadowDOM,u,null);c=g.nextNode();)if(Ee(B.uponSanitizeShadowNode,c,null),os(c,u),ls(c,u),gt(c.content)&&wr(c.content),ee(c)===fe.element){let w=Y(c);gt(w)&&(fn(w),wr(w))}Ee(B.afterSanitizeShadowDOM,u,null)},fn=function(u){let c=[{node:u,shadow:null}];for(;c.length>0;){let g=c.pop();if(g.shadow){wr(g.shadow);continue}let w=g.node,A=ee(w)===fe.element,C=E(w);if(C)for(let L=C.length-1;L>=0;--L)c.push({node:C[L],shadow:null});if(A){let L=V?V(w):null;if(typeof L=="string"&&$(L)==="template"){let G=w.content;gt(G)&&c.push({node:G,shadow:null})}}if(A){let L=Y(w);gt(L)&&c.push({node:null,shadow:L},{node:L,shadow:null})}}};return e.sanitize=function(y){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=null,g=null,w=null,A=null;if(sn=!y,sn&&(y="<!-->"),typeof y!="string"&&!Nt(y)&&(y=Yu(y),typeof y!="string"))throw ke("dirty is not a string, aborting");if(!e.isSupported)return y;en?(z=lr,W=cr):ln(u),(B.uponSanitizeElement.length>0||B.uponSanitizeAttribute.length>0)&&(z=he(z)),B.uponSanitizeAttribute.length>0&&(W=he(W)),e.removed=[];let C=nn&&typeof y!="string"&&Nt(y);if(C){Eu(y);let de=Se(y);if(typeof de=="string"){let ce=$(de);if(!z[ce]||Dt[ce])throw mr(y),ke("root node is forbidden and cannot be sanitized in-place")}if(_r(y))throw mr(y),ke("root node is clobbered and cannot be sanitized in-place");try{fn(y)}catch(ce){throw mr(y),ce}}else if(Nt(y))c=ns("<!---->"),g=c.ownerDocument.importNode(y,!0),g.nodeType===fe.element&&g.nodeName==="BODY"||g.nodeName==="HTML"?c=g:c.appendChild(g),fn(c);else{if(!ft&&!Re&&!We&&y.indexOf("<")===-1)return te&&hr?ct(y):y;if(c=ns(y),!c)return ft?null:hr?pe:""}c&&tn&&Ne(c.firstChild);let L=C?y:c;try{let de=is(L);for(;w=de.nextNode();)os(w,L),ls(w,L),gt(w.content)&&wr(w.content)}catch(de){throw C&&(mr(y),Ge(e.removed,ce=>{ce.element&&gr(ce.element)})),de}if(C){let de=!1;if(Ge(e.removed,ce=>{ce.element&&(ce.element===y&&(de=!0),gr(ce.element))}),de)throw ke("a node selected for removal could not be safely returned; refusing to sanitize in place");return Re&&cn(y),y}if(ft){if(Re&&cn(c),fr)for(A=iu.call(c.ownerDocument);c.firstChild;)A.appendChild(c.firstChild);else A=c;return(W.shadowroot||W.shadowrootmode)&&(A=ou.call(r,A,!0)),A}let G=We?c.outerHTML:c.innerHTML;return We&&z["!doctype"]&&c.ownerDocument&&c.ownerDocument.doctype&&c.ownerDocument.doctype.name&&oe(nl,c.ownerDocument.doctype.name)&&(G="<!DOCTYPE "+c.ownerDocument.doctype.name+`>
|
|
3
3
|
`+G),Re&&(G=yr(G)),te&&hr?ct(G):G},e.setConfig=function(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ln(y),en=!0,lr=z,cr=W},e.clearConfig=function(){mt=null,en=!1,lr=null,cr=null,te=Lt,pe=""},e.isValidAttribute=function(y,u,c){mt||ln({});let g=$(y),w=$(u);return as(g,w,c)},e.addHook=function(y,u){typeof u=="function"&&ue(B,y)&&kt(B[y],u)},e.removeHook=function(y,u){if(ue(B,y)){if(u!==void 0){let c=ju(B[y],u);return c===-1?void 0:Uu(B[y],c,1)[0]}return ms(B[y])}},e.removeHooks=function(y){ue(B,y)&&(B[y]=[])},e.removeAllHooks=function(){B=Ps()},e}var fl=Ls();Ds.exports=fl});var Ns=T((ld,bn)=>{"use strict";var P=String,Rs=function(){return{isColorSupported:!1,reset:P,bold:P,dim:P,italic:P,underline:P,inverse:P,hidden:P,strikethrough:P,black:P,red:P,green:P,yellow:P,blue:P,magenta:P,cyan:P,white:P,gray:P,bgBlack:P,bgRed:P,bgGreen:P,bgYellow:P,bgBlue:P,bgMagenta:P,bgCyan:P,bgWhite:P,blackBright:P,redBright:P,greenBright:P,yellowBright:P,blueBright:P,magentaBright:P,cyanBright:P,whiteBright:P,bgBlackBright:P,bgRedBright:P,bgGreenBright:P,bgYellowBright:P,bgBlueBright:P,bgMagentaBright:P,bgCyanBright:P,bgWhiteBright:P}};bn.exports=Rs();bn.exports.createColors=Rs});var Tn=T(()=>{"use strict"});var Er=T((hd,Fs)=>{"use strict";var ks=Ns(),Ms=Tn(),jt=class i extends Error{constructor(e,t,r,n,s,o){super(e),this.name="CssSyntaxError",this.reason=e,s&&(this.file=s),n&&(this.source=n),o&&(this.plugin=o),typeof t<"u"&&typeof r<"u"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,i)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=ks.isColorSupported);let r=f=>f,n=f=>f,s=f=>f;if(e){let{bold:f,gray:_,red:p}=ks.createColors(!0);n=d=>f(p(d)),r=d=>_(d),Ms&&(s=d=>Ms(d))}let o=t.split(/\r?\n/),l=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),h=String(a).length;return o.slice(l,a).map((f,_)=>{let p=l+1+_,d=" "+(" "+p).slice(-h)+" | ";if(p===this.line){if(f.length>160){let x=20,E=typeof this.endColumn=="number"?this.endColumn:this.column,U=Math.max(0,this.column-x),Y=Math.max(this.column+x,E+x),K=f.slice(U,Y),k=r(d.replace(/\d/g," "))+f.slice(0,Math.min(this.column-1,x-1)).replace(/[^\t]/g," ");return n(">")+r(d)+s(K)+`
|
|
4
4
|
`+k+n("^")}let v=r(d.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+r(d)+s(f)+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as P,b as Q}from"./chunk-PWMBT2HT.js";var A=e=>typeof e=="string"&&e?e:void 0;var Se=[{key:"space-grotesk",label:"Space Grotesk",cssVar:"--font-display",category:"sans",italic:!1,italicLoaded:!1},{key:"inter",label:"Inter",cssVar:"--font-body",category:"sans",italic:!0,italicLoaded:!0},{key:"poppins",label:"Poppins",cssVar:"--font-poppins",category:"sans",italic:!0,italicLoaded:!0},{key:"dm-sans",label:"DM Sans",cssVar:"--font-dm-sans",category:"sans",italic:!0,italicLoaded:!0},{key:"sora",label:"Sora",cssVar:"--font-sora",category:"sans",italic:!1,italicLoaded:!1},{key:"oswald",label:"Oswald",cssVar:"--font-oswald",category:"sans",italic:!1,italicLoaded:!1},{key:"archivo",label:"Archivo",cssVar:"--font-archivo",category:"sans",italic:!0,italicLoaded:!0},{key:"outfit",label:"Outfit",cssVar:"--font-outfit",category:"sans",italic:!1,italicLoaded:!1},{key:"manrope",label:"Manrope",cssVar:"--font-manrope",category:"sans",italic:!1,italicLoaded:!1},{key:"big-shoulders",label:"Big Shoulders",cssVar:"--font-big-shoulders",category:"sans",italic:!1,italicLoaded:!1},{key:"michroma",label:"Michroma",cssVar:"--font-michroma",category:"sans",italic:!1,italicLoaded:!1},{key:"assistant",label:"Assistant",cssVar:"--font-assistant",category:"sans",italic:!1,italicLoaded:!1},{key:"jost",label:"Jost",cssVar:"--font-jost",category:"sans",italic:!0,italicLoaded:!0},{key:"fraunces",label:"Fraunces",cssVar:"--font-serif",category:"serif",italic:!0,italicLoaded:!0},{key:"playfair-display",label:"Playfair Display",cssVar:"--font-playfair",category:"serif",italic:!0,italicLoaded:!0},{key:"cormorant",label:"Cormorant",cssVar:"--font-cormorant",category:"serif",italic:!0,italicLoaded:!0},{key:"jetbrains-mono",label:"JetBrains Mono",cssVar:"--font-mono-loaded",category:"mono",italic:!0,italicLoaded:!0}],_e=new Map(Se.map(e=>[e.key,e])),Go="site-",fi="--font-site-",wi=/^[a-z0-9]+(?:-[a-z0-9]+)*$/,v={options:Se,byKey:_e,siteFonts:new Map};function gi(e){if(typeof e?.key!="string"||!e.key.startsWith(Go))return null;let t=e.key.slice(Go.length);if(!wi.test(t))return null;let o=e.italic===!0;return{key:e.key,label:A(e.label)??e.family,cssVar:`${fi}${t}`,category:Object.hasOwn(Wo,e.category)?e.category:"sans",italic:o,italicLoaded:o}}function hu(e){if(!e?.length)return v;let t=new Map(_e),o=[],a=new Map;for(let s of e){let n=gi(s);!n||t.has(n.key)||(t.set(n.key,n),o.push(n),a.set(n.key,s))}return a.size===0?v:{options:[...o,...Se],byKey:t,siteFonts:a}}var Wo={sans:"Sans",serif:"Serif",mono:"Mono"};function bi(e=v){return Object.keys(Wo).map(t=>[t,e.options.filter(o=>o.category===t)]).filter(([,t])=>t.length>0)}function uu(e=v){return bi(e).flatMap(([,t])=>t)}function pu(e,t=v){return t.byKey.get(e)}var Je=["heading","heading2","heading3","body","accent","label"];function mu(e){return typeof e=="string"&&Je.includes(e)?e:null}var fu={heading:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",body:"Body",accent:"Emphasis",label:"Labels"},yi=[["font-heading2","heading2"],["font-heading3","heading3"],["font-display","heading"],["font-serif","accent"],["font-mono","label"],["font-body","body"]],Ei=/var\(--size-(headingLarge|headingMedium|headingSmall|accent|body|label)\s*,/,wu={heading:"headingLarge",heading2:"headingMedium",heading3:"headingSmall",accent:"accent",body:"body",label:"label"},Ti={headingLarge:"heading",headingMedium:"heading2",headingSmall:"heading3",accent:"accent",body:"body",label:"label"};function gu(e){let t=e?Ei.exec(e):null;return t?P(Ti,t[1])??null:Si(e)}function Si(e){if(!e)return null;let t=e.split(/\s+/).filter(o=>!o.slice(0,o.lastIndexOf(":")+1).includes("&")).map(o=>o.slice(o.lastIndexOf(":")+1));for(let[o,a]of yi)if(t.includes(o))return a;return null}var G={heading:"space-grotesk",heading2:"space-grotesk",heading3:"space-grotesk",body:"inter",accent:"fraunces",label:"jetbrains-mono"};function _i(e,t=v){let o=t.byKey,a=s=>{let n=e?.[s];if(n&&o.has(n))return n;if(s==="heading2"||s==="heading3"){let i=e?.heading;return i&&o.has(i)?i:G.heading}return G[s]};return Object.fromEntries(Je.map(s=>[s,a(s)]))}function Oi(e,t,o){return o.byKey.get(e[t])??_e.get(G[t])}function Z(e,t,o){return`var(${Oi(e,t,o).cssVar})`}var bu=[...new Set(Je.map(e=>_e.get(G[e]).cssVar))],yu=[...new Set(Se.map(e=>e.cssVar))];function Eu(e,t=v){let o=_i(e,t);return{"--font-role-heading":Z(o,"heading",t),"--font-role-heading2":Z(o,"heading2",t),"--font-role-heading3":Z(o,"heading3",t),"--font-role-body":Z(o,"body",t),"--font-role-accent":Z(o,"accent",t),"--font-role-label":Z(o,"label",t),fontFamily:"var(--font-role-body)"}}import{VIEW_DESKTOP_MIN as vi,VIEW_TABLET_MIN as xi}from"efficient-easel/screen/lib/content/view-tiers";var Uo="v1",Yo=800,Ou=961,ki={"view-tablet":xi,"view-desktop":vi,"view-wide":Yo};function vu(e){let t=e.startsWith("max-"),o=t?e.slice(4):e,a=P(ki,o);if(a!==void 0)return{px:a,max:t};let s=/^(max|min)-\[(\d+)px\]$/.exec(e);return s?{px:Number(s[2]),max:s[1]==="max"}:void 0}var xu=`(min-width: ${Yo}px)`,Ri="data-sf-line",Ai="edge",ku={[Ri]:Ai},Ru=(e,t)=>e==="edge"||e!=="section"&&t;import{contrastRatio as Wu,hexToRgb as ve,parseHexColor as D,readableInk as zo,relativeLuminance as xe,parseOption as ct}from"efficient-shell/format";import{DEFAULT_SHADOW_COLOR as Hi,pictureShadowColor as Di}from"efficient-easel/screen/lib/document/shadow-values";import{isLengthUnit as Bi}from"efficient-easel/screen/lib/content/length-units";import{CORNER_RADIUS_MAX as qo}from"efficient-easel/screen/lib/content/style-keys";import{VIEW_TIERS as Li,viewKeyAt as Ko}from"efficient-easel/screen/lib/content/view-tiers";var N=e=>typeof e=="number"&&Number.isFinite(e)?e:void 0;import{isLengthUnit as et,lengthOf as Ci,rowGrid as Ii}from"efficient-easel/screen/lib/content/length-units";function tt(e,t){let o=Ci(e,ot(t));return typeof o=="number"?`${o}px`:o}function ot(e,t="px"){return et(e)?e:t}function Nu(e,t,o){return t.unitKey?ot(e[Ko(t.unitKey,o)],t.base??"px"):t.base??"px"}function Hu(e,t=Li){return e.unitKey?t.map(o=>Ko(e.unitKey,o)):[]}function Pi(e,t,o){let a=Ii({kind:e},t,o);return t!=="px"&&o.min>0?{...a,min:a.step}:a}function at(e,t,o,a){let s=N(e);if(!et(t)||t==="px"||s===void 0)return null;let n=Pi(o,t,a),i=Math.min(n.max,Math.max(n.min,s));return Math.round(i*100)/100}function Du(e,t,o,a){let s=at(e,t,o,a);return s===null?null:tt(s,t)}var Ni={cornerRadiusUnit:"corner_radius_unit",siteWidthUnit:"site_width_unit",siteGutterUnit:"site_gutter_unit",siteGutterPhoneUnit:"site_gutter_phone_unit",blockGapUnit:"block_gap_unit",blockGapPhoneUnit:"block_gap_phone_unit"};function Bu(e){let t=e;return Object.fromEntries(Object.entries(Ni).map(([o,a])=>[o,ot(t[a])]))}function Mu(e,t,o){let a=N(e);return et(t)&&t!=="px"&&a!==void 0?a:o(a??null)}import{DEFAULT_SHADOW_COLOR as Tp}from"efficient-easel/screen/lib/document/shadow-values";var Vu="storefront-theme",ju="sf:theme-mode",Xu="sf:theme-switch",zu="hide",qu=["light","dark","auto"],pt="light",mt=!1,Mi=7,Fi=18;function Gi(e){return e>=Mi&&e<Fi}function Qu(e){let{mode:t,override:o,switchShown:a,hour:s}=e;return a&&(o==="light"||o==="dark")?o:t==="auto"?Gi(s)?"light":"dark":ct(["light","dark"],"dark",t)}var J={background:"#0a0a0a",surface:"#131313",line:"#2a2a2a",muted:"#9a9388"},Wi=[{text:"#2e2e2e",accent:"#2e2e2e",background:"#ffffff",surface:"#f7f7f7",line:"#e0e0e0",muted:"#5c5c5c"},{text:"#f7f7f7",accent:"#f7f7f7",background:"#0a0a0a",surface:"#1b1b1b",line:"#363636",muted:"#a3a3a3"},{text:"#ffffff",accent:"#ffffff",background:"#2e2e2e",surface:"#3d3d3d",line:"#545454",muted:"#b0b0b0"},{text:"#0a0a0a",accent:"#0a0a0a",background:"#f7f7f7",surface:"#ffffff",line:"#d9d9d9",muted:"#5c5c5c"}],ke={selected:0,themes:Wi};function Qo(e){return!e||!Array.isArray(e.themes)||e.themes.length===0?{...ke}:{selected:Math.min(Math.max(0,e.selected??0),e.themes.length-1),themes:e.themes}}function st(e,t,o){let a=ve(e),s=ve(t);if(a===null||s===null)return e;let n=(i,r)=>Math.max(0,Math.min(255,Math.round(i+(r-i)*o))).toString(16).padStart(2,"0");return`#${n(a.r,s.r)}${n(a.g,s.g)}${n(a.b,s.b)}`}var Ui={light:"#ffffff",dark:"#0a0a0a"},Zu=["light","dark"];function Ju(e,t){let o=Ui[t],a=t==="light"?"#ffffff":"#000000";return{text:o,accent:o,background:e,surface:st(e,a,.1),line:st(e,a,.22),muted:st(o,e,.35),brandInk:t}}function te(e){let t=Qo(e);return t.themes[t.selected]}function ee(e){return{text:e.text,accent:e.accent,background:e.background||J.background,surface:e.surface||J.surface,line:e.line||J.line,muted:e.muted||J.muted}}var Yi=.4,Ki="#f5f1e8",$o="#0a0a0a";function $i(e){let t=te(e).text,o=xe(t);return o===null||o>=Yi?t:null}var Vi=4.5,ji=3,ep={good:"Good","large-only":"Large text only",hard:"Hard to read"};function tp(e){return e>=Vi?"good":e>=ji?"large-only":"hard"}var Xi=["#000000","#ffffff"];function Re(e){return zo(e,Xi)}function Zo(e,t){let o=t!==void 0&&xe(t)!==null?t:Ki;return zo(e,[$o,o])===o&&o!==$o}var zi=[.25,.4,.55];function op(e){let t=ve(e);return t===null?[]:zi.map(o=>"#"+[t.r,t.g,t.b].map(a=>Math.round(a*(1-o)).toString(16).padStart(2,"0")).join(""))}function ap(e){let t={"--theme-fg":te(e).text},o=$i(e);return o!==null&&(t["--overlay-fg"]=o),t}var qi=82;function ft(e){return`color-mix(in srgb, ${e} ${qi}%, #000)`}function sp(e){let t=te(e);return{"--theme-accent":t.accent,"--theme-accent-2":ft(t.accent),"--theme-accent-ink":Re(t.accent)}}function wt(e){let t=e?.button;return t&&D(t)===t.toLowerCase()?t.toLowerCase():null}function np(e){let t=te(e),o=wt(t),a=Jo(t);if(o===null&&a===null)return{};let s={};return o!==null&&(s["--theme-btn"]=o,s["--theme-btn-2"]=ft(o)),s["--theme-btn-ink"]=a??Re(o),s}function Jo(e){let t=e?.buttonInk;return t&&D(t)===t.toLowerCase()?t.toLowerCase():null}function Qi(e,t){return Jo(e)??Re(wt(e)??t)}function ip(e){let t=te(e);return{fill:wt(t)??t.accent.toLowerCase(),ink:Qi(t,t.accent)}}function rp(e){let t={};return Qo(e).themes.forEach((o,a)=>{let s=ee(o);t[`--theme-preset-${a}-accent`]=s.accent,t[`--theme-preset-${a}-accent-2`]=ft(s.accent),t[`--theme-preset-${a}-accent-ink`]=Re(s.accent),t[`--theme-preset-${a}-bg`]=s.background,t[`--theme-preset-${a}-fg`]=s.text,t[`--theme-preset-${a}-surface`]=s.surface,t[`--theme-preset-${a}-surface-2`]=`color-mix(in srgb, ${s.surface} 60%, ${s.line})`,t[`--theme-preset-${a}-line`]=s.line,t[`--theme-preset-${a}-muted`]=s.muted}),t}var nt=e=>{let t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4},it=e=>255*(e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055);function Vo([e,t,o]){let[a,s,n]=[nt(e),nt(t),nt(o)],i=Math.cbrt(.4122214708*a+.5363325363*s+.0514459929*n),r=Math.cbrt(.2119034982*a+.6806995451*s+.1073969566*n),c=Math.cbrt(.0883024619*a+.2817188376*s+.6299787005*n);return[.2104542553*i+.793617785*r-.0040720468*c,1.9779984951*i-2.428592205*r+.4505937099*c,.0259040371*i+.7827717662*r-.808675766*c]}function Zi([e,t,o]){let a=(e+.3963377774*t+.2158037573*o)**3,s=(e-.1055613458*t-.0638541728*o)**3,n=(e-.0894841775*t-1.291485548*o)**3;return[it(4.0767416621*a-3.3077115913*s+.2309699292*n),it(-1.2684380046*a+2.6097574011*s-.3413193965*n),it(-.0041960863*a-.7034186147*s+1.707614701*n)]}var dt=e=>{let t=ve(e);return t===null?[0,0,0]:[t.r,t.g,t.b]},ea=(e,t,o)=>[e[0]*o+t[0]*(1-o),e[1]*o+t[1]*(1-o),e[2]*o+t[2]*(1-o)],ta=e=>`#${e.map(t=>Math.max(0,Math.min(255,Math.round(t))).toString(16).padStart(2,"0")).join("")}`,oa=e=>ea(dt(e.surface),dt(e.line),.6);function lp(e){return ta(oa(ee(e)))}function Ji(e){let t=ee(e);return ta(Zi(ea(Vo(oa(t)),Vo(dt(t.text)),.92)))}function aa(e,t,o,a){let s=e[t];if(!s)return-1;let n=o(s);if(!n)return-1;let i=ee(s);return e.findIndex((r,c)=>{if(c===t)return!1;let h=ee(r);return D(h.background)!==n?!1:!a||D(h.text??"")===D(i.text??"")&&D(h.accent??"")===D(i.accent??"")})}function cp(e,t){return aa(e,t,Ji,!1)}function dp(e,t){return aa(e,t,o=>D(o.surface??""),!0)}var er=1;function tr(e,t){let o=(e??[]).flatMap((a,s)=>{let n=xe(a.background??""),i=xe(a.text??"");return n!==null&&i!==null&&n<i?[s]:[]});return o.find(a=>a!==t)??o[0]??er}function hp(e){return tr(e?.themes,e?.selected)}var up=["--theme-bg","--theme-surface","--theme-surface-2","--theme-line","--theme-muted"];function pp(e){let t=ee(te(e)),o=`color-mix(in srgb, ${t.surface} 60%, ${t.line})`,a={"--theme-bg":t.background,"--theme-surface":t.surface,"--theme-line":t.line,"--theme-muted":t.muted};return(t.surface!==J.surface||t.line!==J.line)&&(a["--theme-surface-2"]=o),a}var or=["heading","body","label"];function mp(e){if(!e)return null;for(let t of or)if(e.includes(`--size-${t}`))return t;return/--size-heading(Large|Medium|Small)/.test(e)?"heading":null}var sa=["headingLarge","headingMedium","headingSmall","accent","body","label"];var gt={headingLarge:null,headingMedium:null,headingSmall:null,accent:null,body:null,label:null},ar=8,sr=200;function nr(e){if(typeof e!="number"||!Number.isFinite(e))return null;let t=Math.round(e);return t>=ar&&t<=sr?t:null}function ir(e){let t={};for(let o of sa)t[o]=nr(e?.[o]);return t}function fp(e){let t=ir(e),o={};for(let a of sa){let s=t[a];s!==null&&(o[`--size-${a}`]=`${s}px`)}return o}var rr=["square","small","large"],lr="small";function wp(e){return rr.includes(e??"")?e:lr}var Ae=0,cr={min:Ae,max:qo,step:1},gp={square:0,small:null,large:16},ht={"--sf-card-radius":1,"--sf-button-radius":.5,"--site-radius":.5,"--site-radius-xs":.25,"--site-radius-sm":.5,"--site-radius-md":.75,"--site-radius-lg":1,"--site-radius-xl":1.25,"--site-radius-2xl":1.5,"--site-radius-3xl":2,"--site-radius-4xl":2.5};function bt(e){if(e==null||typeof e=="string"&&e.trim()==="")return null;let t=typeof e=="string"?Number(e):e;return Number.isFinite(t)?Math.min(qo,Math.max(Ae,Math.round(t))):null}function jo(e,t){if(Bi(t)&&t!=="px"){if(typeof e!="number"||!Number.isFinite(e))return{};let a=Math.max(0,e);return Object.fromEntries(Object.entries(ht).map(([s,n])=>{let i=Math.round(a*n*1e4)/1e4;return[s,i===0?"0":tt(i,t)]}))}let o=bt(e);return o===null?{}:Object.fromEntries(Object.entries(ht).map(([a,s])=>{let n=o*s/16;return[a,n===0?"0":`${n}rem`]}))}function bp(e){return(bt(e)??Ae)*ht["--sf-button-radius"]}function yp(e,t){let o=at(e,t,"radius",cr);return o!==null?jo(o,t):jo(bt(e)??Ae)}var dr=["none","soft","lifted"],hr="soft",na="none",ur=["tight","normal","roomy"],pr="normal",Le="normal",mr=["none","lift","highlight"],fr="lift",wr="highlight";function ia(e){return dr.includes(e??"")?e:hr}function gr(e){return ur.includes(e??"")?e:pr}function ra(e){return mr.includes(e??"")?e:fr}function Sp(e){let t=ia(e);return t===na?void 0:t}function _p(e){let t=gr(e);return t===Le?void 0:t}function Op(e){let t=ra(e);return t===wr?void 0:t}function vp(e,t,o){let a=Di(t);return a===Hi?{}:ia(e)!==na||ra(o)==="lift"?{"--sf-shadow-color":a}:{}}var br=["normal","tight","compressed"],me="normal";function la(e){return br.includes(e??"")?e:me}function xp(e){let t=la(e);return t===me?void 0:t}function kp(e){switch(la(e)){case"tight":return{lineHeight:.95,letterSpacing:-.01};case"compressed":return{lineHeight:.86,letterSpacing:-.01};default:return{}}}var Xo=["authored","sentence"],yt={case:"authored",weight:null,weightStrong:null,italicStrong:null,maxPx:null,weight2:null,weight3:null,case2:"authored",case3:"authored"},rt=100,lt=900,yr=24,Er=200;function Oe(e,t,o){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,t),o))}function ca(e){let t=Oe(e?.weight,rt,lt),o=ct(Xo,"authored",e?.case),a=n=>n==null?t:Oe(n,rt,lt),s=n=>ct(Xo,o,n);return{case:o,weight:t,weightStrong:Oe(e?.weightStrong,rt,lt),italicStrong:typeof e?.italicStrong=="boolean"?e.italicStrong:null,maxPx:Oe(e?.maxPx,yr,Er),weight2:a(e?.weight2),weight3:a(e?.weight3),case2:s(e?.case2),case3:s(e?.case3)}}function Rp(e){let t=ca(e),o={};return t.case==="sentence"&&(o["--sf-heading-case"]="none"),t.weight!==null&&(o["--sf-heading-weight"]=String(t.weight)),t.weightStrong!==null&&(o["--sf-heading-weight-strong"]=String(t.weightStrong)),t.maxPx!==null&&(o["--sf-heading-max"]=`${t.maxPx}px`),t.weight2!==null&&t.weight2!==t.weight&&(o["--sf-heading-2-weight"]=String(t.weight2)),t.weight3!==null&&t.weight3!==t.weight&&(o["--sf-heading-3-weight"]=String(t.weight3)),t.case2!==t.case&&(o["--sf-heading-2-case"]=t.case2==="sentence"?"none":"uppercase"),t.case3!==t.case&&(o["--sf-heading-3-case"]=t.case3==="sentence"?"none":"uppercase"),o}function Ap(e){return ca({case:e?.heading_case??void 0,weight:e?.heading_weight,weightStrong:e?.heading_weight_strong,italicStrong:e?.accent_italic,maxPx:e?.heading_max_px,weight2:e?.heading_2_weight??void 0,weight3:e?.heading_3_weight??void 0,case2:e?.heading_2_case??void 0,case3:e?.heading_3_case??void 0})}var ut="siteTheme";function Tr(e){let t=e;if(!t||typeof t!="object"||!Array.isArray(t.themes)||!t.themes.every(a=>!!a&&typeof a=="object"))return{};let o=typeof t.selected=="number"&&Number.isInteger(t.selected)&&t.selected>=0?t.selected:0;return{[ut]:{selected:o,themes:t.themes}}}function Lp(e){return Tr(e?.[ut])[ut]}import{parseHexColor as Sr}from"efficient-shell/format";var Et=[{role:"bg",token:"--bg",ink:!1},{role:"fg",token:"--fg",ink:!0},{role:"surface",token:"--site-surface",ink:!1},{role:"surface-2",token:"--site-surface-2",ink:!1},{role:"line",token:"--site-line",ink:!0},{role:"muted",token:"--fg-dim",ink:!0}],_r=Et.filter(e=>e.ink);function da(e){let t={color:e.fg};for(let{role:o,token:a}of _r)t[a]=e[o];return t}var Or={fg:"var(--overlay-fg)",line:"color-mix(in srgb, var(--overlay-fg) 24%, transparent)",muted:"color-mix(in srgb, var(--overlay-fg) 76%, transparent)"},vr=Object.freeze(da(Or)),xr={fg:"var(--overlay-fg-on-light)",line:"color-mix(in srgb, var(--overlay-fg-on-light) 24%, transparent)",muted:"color-mix(in srgb, var(--overlay-fg-on-light) 76%, transparent)"},kr=Object.freeze(da(xr));function Np(e,t){let o=e?Sr(e):null;return o?Zo(o,t)?vr:kr:null}import{jsx as pa}from"react/jsx-runtime";import{createContext as Lr,useCallback as m,useContext as Cr,useMemo as Ir,useState as Pr}from"react";import{createContext as ua,useContext as Tt}from"react";import{createContext as Rr}from"react";var ha=Rr(null);var Ar=ua(null),St=ua({logo:null,placeholder:!1,wordmark:null});function Gp(){let e=Tt(ha),t=Tt(Ar),o=Tt(St),a=!e&&o.placeholder,s=e?e.logoUrl:o.logo?.logoUrl??t?.logoUrl??null;return{src:a?null:s,reversedSrc:e?e.logoReversed:o.logo?.logoReversed??t?.logoReversed??null,inkIsDark:e?e.logoInkIsDark:o.logo?.logoInkIsDark??t?.logoInkIsDark??null,wordmark:e?null:o.wordmark,siteName:e?.siteName??t?.siteName}}var ma={},fa=Lr({settings:null,setSettings:()=>{},primeSettings:()=>{},websiteName:null,templateChrome:!1,templateName:null,chromePlaceholder:!1,themeMode:pt,setThemeMode:()=>{},themeSwitchShown:mt,setThemeSwitchShown:()=>{},theme:ke,themeRow:"none",setTheme:()=>{},fonts:G,setFonts:()=>{},sizes:gt,setSizes:()=>{},cornerRadiusPx:null,setCornerRadiusPx:()=>{},cardShadow:null,setCardShadow:()=>{},shadowColor:null,setShadowColor:()=>{},cardGap:Le,setCardGap:()=>{},hoverEffect:null,setHoverEffect:()=>{},headingCompression:me,setHeadingCompression:()=>{},siteWidth:null,setSiteWidth:()=>{},siteGutter:null,siteGutterPhone:null,blockGap:null,blockGapPhone:null,siteLengthUnits:ma,setSiteLengthUnits:()=>{},setSiteGutter:()=>{},setSiteGutterPhone:()=>{},setBlockGap:()=>{},setBlockGapPhone:()=>{},headingTypography:yt,setHeadingTypography:()=>{},textStyles:null,setTextStyles:()=>{},wordStyles:null,heroBackgroundFollowsWidth:null,setHeroBackgroundFollowsWidth:()=>{},sectionBackgroundWidth:null,setSectionBackgroundWidth:()=>{},sectionContentWidth:null,setSectionContentWidth:()=>{},photographyGrayscale:null,setPhotographyGrayscale:()=>{},shareButtonOnPosts:null,setShareButtonOnPosts:()=>{},themeFromDocument:!1});function jp({children:e,websiteName:t=null,templateChrome:o=!1,templateName:a=null,chromePlaceholder:s=!1,themeMode:n=pt,onThemeModeChange:i,themeSwitchShown:r=mt,onThemeSwitchShownChange:c,theme:h=ke,themeRow:_="none",onThemeChange:O,fonts:Ze=G,onFontsChange:mo,sizes:En=gt,onSizesChange:fo,cornerRadiusPx:Tn=null,onCornerRadiusPxChange:wo,cardShadow:Sn=null,onCardShadowChange:go,shadowColor:_n=null,onShadowColorChange:bo,cardGap:On=Le,onCardGapChange:yo,hoverEffect:vn=null,onHoverEffectChange:Eo,headingCompression:xn=me,onHeadingCompressionChange:To,siteWidth:kn=null,onSiteWidthChange:So,siteGutter:Rn=null,siteGutterPhone:An=null,blockGap:Ln=null,blockGapPhone:Cn=null,siteLengthUnits:In=ma,onSiteLengthUnitsChange:_o,onSiteGutterChange:Oo,onSiteGutterPhoneChange:vo,onBlockGapChange:xo,onBlockGapPhoneChange:ko,headingTypography:Pn=yt,onHeadingTypographyChange:Ro,textStyles:Nn=null,onTextStylesChange:Ao,wordStyles:Hn=null,heroBackgroundFollowsWidth:Dn=null,onHeroBackgroundFollowsWidthChange:Lo,sectionBackgroundWidth:Bn=null,onSectionBackgroundWidthChange:Co,sectionContentWidth:Mn=null,onSectionContentWidthChange:Io,photographyGrayscale:Fn=null,onPhotographyGrayscaleChange:Po,shareButtonOnPosts:Gn=null,onShareButtonOnPostsChange:No,themeFromDocument:Wn=!1}){let[pe,Ho]=Pr(null),Un=m(l=>Ho(mi=>mi??l),[]),Yn=m(l=>i?.(l),[i]),Kn=m(l=>c?.(l),[c]),$n=m(l=>O?.(l),[O]),Vn=m(l=>mo?.(l),[mo]),jn=m(l=>fo?.(l),[fo]),Xn=m(l=>So?.(l),[So]),zn=m(l=>Oo?.(l),[Oo]),qn=m(l=>vo?.(l),[vo]),Qn=m(l=>xo?.(l),[xo]),Zn=m(l=>ko?.(l),[ko]),Jn=m(l=>_o?.(l),[_o]),ei=m(l=>Lo?.(l),[Lo]),ti=m(l=>Co?.(l),[Co]),oi=m(l=>Io?.(l),[Io]),ai=m(l=>Po?.(l),[Po]),si=m(l=>No?.(l),[No]),ni=m(l=>wo?.(l),[wo]),ii=m(l=>go?.(l),[go]),ri=m(l=>bo?.(l),[bo]),li=m(l=>yo?.(l),[yo]),ci=m(l=>Eo?.(l),[Eo]),di=m(l=>To?.(l),[To]),hi=m(l=>Ro?.(l),[Ro]),ui=m(l=>Ao?.(l),[Ao]),Do=pe?.logoUrl,Bo=pe?.logoReversed,Mo=pe?.logoInkIsDark,Fo=pe!==null,pi=Ir(()=>({logo:Fo?{logoUrl:Do,logoReversed:Bo,logoInkIsDark:Mo}:null,placeholder:o||s,wordmark:o?a:t}),[Fo,Do,Bo,Mo,o,s,a,t]);return pa(St.Provider,{value:pi,children:pa(fa.Provider,{value:{settings:pe,setSettings:Ho,primeSettings:Un,websiteName:t,templateChrome:o,templateName:a,chromePlaceholder:s,themeMode:n,setThemeMode:Yn,themeSwitchShown:r,setThemeSwitchShown:Kn,theme:h,themeRow:_,setTheme:$n,fonts:Ze,setFonts:Vn,sizes:En,setSizes:jn,cornerRadiusPx:Tn,setCornerRadiusPx:ni,cardShadow:Sn,setCardShadow:ii,shadowColor:_n,setShadowColor:ri,cardGap:On,setCardGap:li,hoverEffect:vn,setHoverEffect:ci,headingCompression:xn,setHeadingCompression:di,siteWidth:kn,setSiteWidth:Xn,siteGutter:Rn,siteGutterPhone:An,blockGap:Ln,blockGapPhone:Cn,siteLengthUnits:In,setSiteLengthUnits:Jn,setSiteGutter:zn,setSiteGutterPhone:qn,setBlockGap:Qn,setBlockGapPhone:Zn,headingTypography:Pn,setHeadingTypography:hi,textStyles:Nn,setTextStyles:ui,wordStyles:Hn,heroBackgroundFollowsWidth:Dn,setHeroBackgroundFollowsWidth:ei,sectionBackgroundWidth:Bn,setSectionBackgroundWidth:ti,sectionContentWidth:Mn,setSectionContentWidth:oi,photographyGrayscale:Fn,setPhotographyGrayscale:ai,shareButtonOnPosts:Gn,setShareButtonOnPosts:si,themeFromDocument:Wn},children:e})})}var Nr=()=>Cr(fa);function Xp(e,t,o){return e?t===o?"read":"loading":"none"}function zp(e,t){return{value:e,readFor:t}}function qp(e,t,o){return{value:t,readFor:e.readFor===o?o:null}}function Qp(){let{sectionContentWidth:e,themeFromDocument:t}=Nr();return t?null:e}var em=["general","commerce","service"],oe=[{key:"openers",title:"Hero & intros",defaultExpanded:!0,templateable:!0,sections:[{type:"Hero",label:"Hero",set:"general"},{type:"IntroBleed",label:"Scroll-Over Text",set:"general"}]},{key:"shop",title:"Shop & galleries",templateable:!0,sections:[{type:"Collections",label:"Collections",set:"commerce"},{type:"AlloyWheelsListing",label:"List",set:"commerce"},{type:"CatalogFilterBar",label:"Catalog Filter Bar",set:"commerce"},{type:"ProductGrid",label:"Product Grid",set:"commerce"},{type:"FitmentFinder",label:"Fitment Form",set:"commerce"},{type:"GalleryB",label:"Gallery",set:"commerce"}]},{key:"product",title:"Product page",templateable:!0,sections:[{type:"ProductHero",label:"Product Hero",set:"commerce"},{type:"SpecTable",label:"Spec Table",set:"commerce"},{type:"ProcessSteps",label:"Image & Text Columns",set:"general"},{type:"DetailRows",label:"Feature Rows",set:"commerce"},{type:"FitmentTable",label:"Fitment Table",set:"commerce"},{type:"TyreSizes",label:"Tyre Sizes",set:"commerce"}]},{key:"checkout",title:"Checkout & ordering",templateable:!0,sections:[{type:"OrderSummary",label:"Order Table",set:"general"},{type:"CheckoutCTA",label:"Ready-to-Order Banner",set:"commerce"}]},{key:"about",title:"About & brand story",templateable:!0,sections:[{type:"Footprint",label:"Locations Map",set:"general"}]},{key:"content",title:"Text & content",templateable:!0,sections:[{type:"Cards",label:"Cards",set:"general"}]},{key:"proof",title:"Stats & social proof",templateable:!0,sections:[{type:"Stats",label:"Stats",set:"general"},{type:"Chart",label:"Chart",set:"general"},{type:"Mockup",label:"Mockup Card",set:"general"},{type:"Reviews",label:"Reviews",set:"service"}]},{key:"promo",title:"Promotions & sign-ups",templateable:!0,sections:[{type:"Countdown",label:"Countdown",set:"general"}]},{key:"blog",title:"Blog & journal",templateable:!0,sections:[{type:"FeaturedCover",label:"Feature Banner",set:"general"},{type:"LongRead",label:"Article Text",set:"general"},{type:"ArticleBody",label:"Article Body",set:"service"},{type:"Events",label:"Latest Posts",set:"service"}]},{key:"navigation",title:"Navigation & wayfinding",templateable:!0,sections:[{type:"Breadcrumb",label:"Breadcrumb",set:"general"}]},{key:"legal",title:"Legal & documents",templateable:!0,sections:[{type:"DocBody",label:"Document Text",set:"general"}]},{key:"contact",title:"Contact, FAQ & forms",templateable:!0,sections:[{type:"FAQ",label:"Q&A",set:"general"},{type:"ContactRouting",label:"Contact Form",set:"service"},{type:"SubmitBuild",label:"Photo Submission Form",set:"service"},{type:"ReviewForm",label:"Review Form",set:"service"},{type:"Form",label:"Form",set:"service"},{type:"AppointmentBooking",label:"Booking Form",set:"service"}]},{key:"structure",title:"Layout, structure & embeds",templateable:!1,sections:[{type:"SectionHeader",label:"Section Header",set:"general"},{type:"Flex",label:"Box",set:"general"},{type:"Divider",label:"Divider",set:"general"},{type:"CustomHTML",label:"Custom HTML",set:"general"}]},{key:"layouts",title:"Layouts",templateable:!0,sections:[{type:"Manifesto",label:"Brand Text",set:"general"},{type:"Split",label:"Image & Text Split",set:"general"},{type:"Subscribe",label:"Signup Form",set:"service"},{type:"Ticker",label:"Scrolling Bar",set:"general"},{type:"SpecStrip",label:"Spec Strip",set:"general"},{type:"TimelineTrack",label:"Milestone Timeline",set:"general"},{type:"Timeline",label:"Story Timeline",set:"general"},{type:"Logos",label:"Logos",set:"general"},{type:"DocMasthead",label:"Page Header",set:"general"},{type:"DocTabs",label:"Tab Bar",set:"general"},{type:"Prose",label:"Editorial Text",set:"general"},{type:"ParagraphsA",label:"Lead Text",set:"general"},{type:"TitleWithButtons",label:"Call-to-Action Heading",set:"general"},{type:"Banner",label:"Banner",set:"general"}]}];function tm(){return Object.fromEntries(oe.map(e=>[e.key,{title:e.title,components:e.sections.map(t=>t.type),...e.defaultExpanded?{defaultExpanded:!0}:{}}]))}var Hr="2027-02-05",Dr="2027-02-14",wa={CategoryBar:{label:"Category bar",note:`The reviewer, 2026-11-06 (the page headers and the tab bars become TWO Layouts rows, Page Header and Tab Bar): Category Bar folds into the Tab Bar. Retired from the Add menu with no second preset.
|
|
1
|
+
import{a as P,b as Q}from"./chunk-5OXXOEE7.js";var A=e=>typeof e=="string"&&e?e:void 0;var Se=[{key:"space-grotesk",label:"Space Grotesk",cssVar:"--font-display",category:"sans",italic:!1,italicLoaded:!1},{key:"inter",label:"Inter",cssVar:"--font-body",category:"sans",italic:!0,italicLoaded:!0},{key:"poppins",label:"Poppins",cssVar:"--font-poppins",category:"sans",italic:!0,italicLoaded:!0},{key:"dm-sans",label:"DM Sans",cssVar:"--font-dm-sans",category:"sans",italic:!0,italicLoaded:!0},{key:"sora",label:"Sora",cssVar:"--font-sora",category:"sans",italic:!1,italicLoaded:!1},{key:"oswald",label:"Oswald",cssVar:"--font-oswald",category:"sans",italic:!1,italicLoaded:!1},{key:"archivo",label:"Archivo",cssVar:"--font-archivo",category:"sans",italic:!0,italicLoaded:!0},{key:"outfit",label:"Outfit",cssVar:"--font-outfit",category:"sans",italic:!1,italicLoaded:!1},{key:"manrope",label:"Manrope",cssVar:"--font-manrope",category:"sans",italic:!1,italicLoaded:!1},{key:"big-shoulders",label:"Big Shoulders",cssVar:"--font-big-shoulders",category:"sans",italic:!1,italicLoaded:!1},{key:"michroma",label:"Michroma",cssVar:"--font-michroma",category:"sans",italic:!1,italicLoaded:!1},{key:"assistant",label:"Assistant",cssVar:"--font-assistant",category:"sans",italic:!1,italicLoaded:!1},{key:"jost",label:"Jost",cssVar:"--font-jost",category:"sans",italic:!0,italicLoaded:!0},{key:"fraunces",label:"Fraunces",cssVar:"--font-serif",category:"serif",italic:!0,italicLoaded:!0},{key:"playfair-display",label:"Playfair Display",cssVar:"--font-playfair",category:"serif",italic:!0,italicLoaded:!0},{key:"cormorant",label:"Cormorant",cssVar:"--font-cormorant",category:"serif",italic:!0,italicLoaded:!0},{key:"jetbrains-mono",label:"JetBrains Mono",cssVar:"--font-mono-loaded",category:"mono",italic:!0,italicLoaded:!0}],_e=new Map(Se.map(e=>[e.key,e])),Go="site-",fi="--font-site-",wi=/^[a-z0-9]+(?:-[a-z0-9]+)*$/,v={options:Se,byKey:_e,siteFonts:new Map};function gi(e){if(typeof e?.key!="string"||!e.key.startsWith(Go))return null;let t=e.key.slice(Go.length);if(!wi.test(t))return null;let o=e.italic===!0;return{key:e.key,label:A(e.label)??e.family,cssVar:`${fi}${t}`,category:Object.hasOwn(Wo,e.category)?e.category:"sans",italic:o,italicLoaded:o}}function hu(e){if(!e?.length)return v;let t=new Map(_e),o=[],a=new Map;for(let s of e){let n=gi(s);!n||t.has(n.key)||(t.set(n.key,n),o.push(n),a.set(n.key,s))}return a.size===0?v:{options:[...o,...Se],byKey:t,siteFonts:a}}var Wo={sans:"Sans",serif:"Serif",mono:"Mono"};function bi(e=v){return Object.keys(Wo).map(t=>[t,e.options.filter(o=>o.category===t)]).filter(([,t])=>t.length>0)}function uu(e=v){return bi(e).flatMap(([,t])=>t)}function pu(e,t=v){return t.byKey.get(e)}var Je=["heading","heading2","heading3","body","accent","label"];function mu(e){return typeof e=="string"&&Je.includes(e)?e:null}var fu={heading:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",body:"Body",accent:"Emphasis",label:"Labels"},yi=[["font-heading2","heading2"],["font-heading3","heading3"],["font-display","heading"],["font-serif","accent"],["font-mono","label"],["font-body","body"]],Ei=/var\(--size-(headingLarge|headingMedium|headingSmall|accent|body|label)\s*,/,wu={heading:"headingLarge",heading2:"headingMedium",heading3:"headingSmall",accent:"accent",body:"body",label:"label"},Ti={headingLarge:"heading",headingMedium:"heading2",headingSmall:"heading3",accent:"accent",body:"body",label:"label"};function gu(e){let t=e?Ei.exec(e):null;return t?P(Ti,t[1])??null:Si(e)}function Si(e){if(!e)return null;let t=e.split(/\s+/).filter(o=>!o.slice(0,o.lastIndexOf(":")+1).includes("&")).map(o=>o.slice(o.lastIndexOf(":")+1));for(let[o,a]of yi)if(t.includes(o))return a;return null}var G={heading:"space-grotesk",heading2:"space-grotesk",heading3:"space-grotesk",body:"inter",accent:"fraunces",label:"jetbrains-mono"};function _i(e,t=v){let o=t.byKey,a=s=>{let n=e?.[s];if(n&&o.has(n))return n;if(s==="heading2"||s==="heading3"){let i=e?.heading;return i&&o.has(i)?i:G.heading}return G[s]};return Object.fromEntries(Je.map(s=>[s,a(s)]))}function Oi(e,t,o){return o.byKey.get(e[t])??_e.get(G[t])}function Z(e,t,o){return`var(${Oi(e,t,o).cssVar})`}var bu=[...new Set(Je.map(e=>_e.get(G[e]).cssVar))],yu=[...new Set(Se.map(e=>e.cssVar))];function Eu(e,t=v){let o=_i(e,t);return{"--font-role-heading":Z(o,"heading",t),"--font-role-heading2":Z(o,"heading2",t),"--font-role-heading3":Z(o,"heading3",t),"--font-role-body":Z(o,"body",t),"--font-role-accent":Z(o,"accent",t),"--font-role-label":Z(o,"label",t),fontFamily:"var(--font-role-body)"}}import{VIEW_DESKTOP_MIN as vi,VIEW_TABLET_MIN as xi}from"efficient-easel/screen/lib/content/view-tiers";var Uo="v1",Yo=800,Ou=961,ki={"view-tablet":xi,"view-desktop":vi,"view-wide":Yo};function vu(e){let t=e.startsWith("max-"),o=t?e.slice(4):e,a=P(ki,o);if(a!==void 0)return{px:a,max:t};let s=/^(max|min)-\[(\d+)px\]$/.exec(e);return s?{px:Number(s[2]),max:s[1]==="max"}:void 0}var xu=`(min-width: ${Yo}px)`,Ri="data-sf-line",Ai="edge",ku={[Ri]:Ai},Ru=(e,t)=>e==="edge"||e!=="section"&&t;import{contrastRatio as Wu,hexToRgb as ve,parseHexColor as D,readableInk as zo,relativeLuminance as xe,parseOption as ct}from"efficient-shell/format";import{DEFAULT_SHADOW_COLOR as Hi,pictureShadowColor as Di}from"efficient-easel/screen/lib/document/shadow-values";import{isLengthUnit as Bi}from"efficient-easel/screen/lib/content/length-units";import{CORNER_RADIUS_MAX as qo}from"efficient-easel/screen/lib/content/style-keys";import{VIEW_TIERS as Li,viewKeyAt as Ko}from"efficient-easel/screen/lib/content/view-tiers";var N=e=>typeof e=="number"&&Number.isFinite(e)?e:void 0;import{isLengthUnit as et,lengthOf as Ci,rowGrid as Ii}from"efficient-easel/screen/lib/content/length-units";function tt(e,t){let o=Ci(e,ot(t));return typeof o=="number"?`${o}px`:o}function ot(e,t="px"){return et(e)?e:t}function Nu(e,t,o){return t.unitKey?ot(e[Ko(t.unitKey,o)],t.base??"px"):t.base??"px"}function Hu(e,t=Li){return e.unitKey?t.map(o=>Ko(e.unitKey,o)):[]}function Pi(e,t,o){let a=Ii({kind:e},t,o);return t!=="px"&&o.min>0?{...a,min:a.step}:a}function at(e,t,o,a){let s=N(e);if(!et(t)||t==="px"||s===void 0)return null;let n=Pi(o,t,a),i=Math.min(n.max,Math.max(n.min,s));return Math.round(i*100)/100}function Du(e,t,o,a){let s=at(e,t,o,a);return s===null?null:tt(s,t)}var Ni={cornerRadiusUnit:"corner_radius_unit",siteWidthUnit:"site_width_unit",siteGutterUnit:"site_gutter_unit",siteGutterPhoneUnit:"site_gutter_phone_unit",blockGapUnit:"block_gap_unit",blockGapPhoneUnit:"block_gap_phone_unit"};function Bu(e){let t=e;return Object.fromEntries(Object.entries(Ni).map(([o,a])=>[o,ot(t[a])]))}function Mu(e,t,o){let a=N(e);return et(t)&&t!=="px"&&a!==void 0?a:o(a??null)}import{DEFAULT_SHADOW_COLOR as Tp}from"efficient-easel/screen/lib/document/shadow-values";var Vu="storefront-theme",ju="sf:theme-mode",Xu="sf:theme-switch",zu="hide",qu=["light","dark","auto"],pt="light",mt=!1,Mi=7,Fi=18;function Gi(e){return e>=Mi&&e<Fi}function Qu(e){let{mode:t,override:o,switchShown:a,hour:s}=e;return a&&(o==="light"||o==="dark")?o:t==="auto"?Gi(s)?"light":"dark":ct(["light","dark"],"dark",t)}var J={background:"#0a0a0a",surface:"#131313",line:"#2a2a2a",muted:"#9a9388"},Wi=[{text:"#2e2e2e",accent:"#2e2e2e",background:"#ffffff",surface:"#f7f7f7",line:"#e0e0e0",muted:"#5c5c5c"},{text:"#f7f7f7",accent:"#f7f7f7",background:"#0a0a0a",surface:"#1b1b1b",line:"#363636",muted:"#a3a3a3"},{text:"#ffffff",accent:"#ffffff",background:"#2e2e2e",surface:"#3d3d3d",line:"#545454",muted:"#b0b0b0"},{text:"#0a0a0a",accent:"#0a0a0a",background:"#f7f7f7",surface:"#ffffff",line:"#d9d9d9",muted:"#5c5c5c"}],ke={selected:0,themes:Wi};function Qo(e){return!e||!Array.isArray(e.themes)||e.themes.length===0?{...ke}:{selected:Math.min(Math.max(0,e.selected??0),e.themes.length-1),themes:e.themes}}function st(e,t,o){let a=ve(e),s=ve(t);if(a===null||s===null)return e;let n=(i,r)=>Math.max(0,Math.min(255,Math.round(i+(r-i)*o))).toString(16).padStart(2,"0");return`#${n(a.r,s.r)}${n(a.g,s.g)}${n(a.b,s.b)}`}var Ui={light:"#ffffff",dark:"#0a0a0a"},Zu=["light","dark"];function Ju(e,t){let o=Ui[t],a=t==="light"?"#ffffff":"#000000";return{text:o,accent:o,background:e,surface:st(e,a,.1),line:st(e,a,.22),muted:st(o,e,.35),brandInk:t}}function te(e){let t=Qo(e);return t.themes[t.selected]}function ee(e){return{text:e.text,accent:e.accent,background:e.background||J.background,surface:e.surface||J.surface,line:e.line||J.line,muted:e.muted||J.muted}}var Yi=.4,Ki="#f5f1e8",$o="#0a0a0a";function $i(e){let t=te(e).text,o=xe(t);return o===null||o>=Yi?t:null}var Vi=4.5,ji=3,ep={good:"Good","large-only":"Large text only",hard:"Hard to read"};function tp(e){return e>=Vi?"good":e>=ji?"large-only":"hard"}var Xi=["#000000","#ffffff"];function Re(e){return zo(e,Xi)}function Zo(e,t){let o=t!==void 0&&xe(t)!==null?t:Ki;return zo(e,[$o,o])===o&&o!==$o}var zi=[.25,.4,.55];function op(e){let t=ve(e);return t===null?[]:zi.map(o=>"#"+[t.r,t.g,t.b].map(a=>Math.round(a*(1-o)).toString(16).padStart(2,"0")).join(""))}function ap(e){let t={"--theme-fg":te(e).text},o=$i(e);return o!==null&&(t["--overlay-fg"]=o),t}var qi=82;function ft(e){return`color-mix(in srgb, ${e} ${qi}%, #000)`}function sp(e){let t=te(e);return{"--theme-accent":t.accent,"--theme-accent-2":ft(t.accent),"--theme-accent-ink":Re(t.accent)}}function wt(e){let t=e?.button;return t&&D(t)===t.toLowerCase()?t.toLowerCase():null}function np(e){let t=te(e),o=wt(t),a=Jo(t);if(o===null&&a===null)return{};let s={};return o!==null&&(s["--theme-btn"]=o,s["--theme-btn-2"]=ft(o)),s["--theme-btn-ink"]=a??Re(o),s}function Jo(e){let t=e?.buttonInk;return t&&D(t)===t.toLowerCase()?t.toLowerCase():null}function Qi(e,t){return Jo(e)??Re(wt(e)??t)}function ip(e){let t=te(e);return{fill:wt(t)??t.accent.toLowerCase(),ink:Qi(t,t.accent)}}function rp(e){let t={};return Qo(e).themes.forEach((o,a)=>{let s=ee(o);t[`--theme-preset-${a}-accent`]=s.accent,t[`--theme-preset-${a}-accent-2`]=ft(s.accent),t[`--theme-preset-${a}-accent-ink`]=Re(s.accent),t[`--theme-preset-${a}-bg`]=s.background,t[`--theme-preset-${a}-fg`]=s.text,t[`--theme-preset-${a}-surface`]=s.surface,t[`--theme-preset-${a}-surface-2`]=`color-mix(in srgb, ${s.surface} 60%, ${s.line})`,t[`--theme-preset-${a}-line`]=s.line,t[`--theme-preset-${a}-muted`]=s.muted}),t}var nt=e=>{let t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4},it=e=>255*(e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055);function Vo([e,t,o]){let[a,s,n]=[nt(e),nt(t),nt(o)],i=Math.cbrt(.4122214708*a+.5363325363*s+.0514459929*n),r=Math.cbrt(.2119034982*a+.6806995451*s+.1073969566*n),c=Math.cbrt(.0883024619*a+.2817188376*s+.6299787005*n);return[.2104542553*i+.793617785*r-.0040720468*c,1.9779984951*i-2.428592205*r+.4505937099*c,.0259040371*i+.7827717662*r-.808675766*c]}function Zi([e,t,o]){let a=(e+.3963377774*t+.2158037573*o)**3,s=(e-.1055613458*t-.0638541728*o)**3,n=(e-.0894841775*t-1.291485548*o)**3;return[it(4.0767416621*a-3.3077115913*s+.2309699292*n),it(-1.2684380046*a+2.6097574011*s-.3413193965*n),it(-.0041960863*a-.7034186147*s+1.707614701*n)]}var dt=e=>{let t=ve(e);return t===null?[0,0,0]:[t.r,t.g,t.b]},ea=(e,t,o)=>[e[0]*o+t[0]*(1-o),e[1]*o+t[1]*(1-o),e[2]*o+t[2]*(1-o)],ta=e=>`#${e.map(t=>Math.max(0,Math.min(255,Math.round(t))).toString(16).padStart(2,"0")).join("")}`,oa=e=>ea(dt(e.surface),dt(e.line),.6);function lp(e){return ta(oa(ee(e)))}function Ji(e){let t=ee(e);return ta(Zi(ea(Vo(oa(t)),Vo(dt(t.text)),.92)))}function aa(e,t,o,a){let s=e[t];if(!s)return-1;let n=o(s);if(!n)return-1;let i=ee(s);return e.findIndex((r,c)=>{if(c===t)return!1;let h=ee(r);return D(h.background)!==n?!1:!a||D(h.text??"")===D(i.text??"")&&D(h.accent??"")===D(i.accent??"")})}function cp(e,t){return aa(e,t,Ji,!1)}function dp(e,t){return aa(e,t,o=>D(o.surface??""),!0)}var er=1;function tr(e,t){let o=(e??[]).flatMap((a,s)=>{let n=xe(a.background??""),i=xe(a.text??"");return n!==null&&i!==null&&n<i?[s]:[]});return o.find(a=>a!==t)??o[0]??er}function hp(e){return tr(e?.themes,e?.selected)}var up=["--theme-bg","--theme-surface","--theme-surface-2","--theme-line","--theme-muted"];function pp(e){let t=ee(te(e)),o=`color-mix(in srgb, ${t.surface} 60%, ${t.line})`,a={"--theme-bg":t.background,"--theme-surface":t.surface,"--theme-line":t.line,"--theme-muted":t.muted};return(t.surface!==J.surface||t.line!==J.line)&&(a["--theme-surface-2"]=o),a}var or=["heading","body","label"];function mp(e){if(!e)return null;for(let t of or)if(e.includes(`--size-${t}`))return t;return/--size-heading(Large|Medium|Small)/.test(e)?"heading":null}var sa=["headingLarge","headingMedium","headingSmall","accent","body","label"];var gt={headingLarge:null,headingMedium:null,headingSmall:null,accent:null,body:null,label:null},ar=8,sr=200;function nr(e){if(typeof e!="number"||!Number.isFinite(e))return null;let t=Math.round(e);return t>=ar&&t<=sr?t:null}function ir(e){let t={};for(let o of sa)t[o]=nr(e?.[o]);return t}function fp(e){let t=ir(e),o={};for(let a of sa){let s=t[a];s!==null&&(o[`--size-${a}`]=`${s}px`)}return o}var rr=["square","small","large"],lr="small";function wp(e){return rr.includes(e??"")?e:lr}var Ae=0,cr={min:Ae,max:qo,step:1},gp={square:0,small:null,large:16},ht={"--sf-card-radius":1,"--sf-button-radius":.5,"--site-radius":.5,"--site-radius-xs":.25,"--site-radius-sm":.5,"--site-radius-md":.75,"--site-radius-lg":1,"--site-radius-xl":1.25,"--site-radius-2xl":1.5,"--site-radius-3xl":2,"--site-radius-4xl":2.5};function bt(e){if(e==null||typeof e=="string"&&e.trim()==="")return null;let t=typeof e=="string"?Number(e):e;return Number.isFinite(t)?Math.min(qo,Math.max(Ae,Math.round(t))):null}function jo(e,t){if(Bi(t)&&t!=="px"){if(typeof e!="number"||!Number.isFinite(e))return{};let a=Math.max(0,e);return Object.fromEntries(Object.entries(ht).map(([s,n])=>{let i=Math.round(a*n*1e4)/1e4;return[s,i===0?"0":tt(i,t)]}))}let o=bt(e);return o===null?{}:Object.fromEntries(Object.entries(ht).map(([a,s])=>{let n=o*s/16;return[a,n===0?"0":`${n}rem`]}))}function bp(e){return(bt(e)??Ae)*ht["--sf-button-radius"]}function yp(e,t){let o=at(e,t,"radius",cr);return o!==null?jo(o,t):jo(bt(e)??Ae)}var dr=["none","soft","lifted"],hr="soft",na="none",ur=["tight","normal","roomy"],pr="normal",Le="normal",mr=["none","lift","highlight"],fr="lift",wr="highlight";function ia(e){return dr.includes(e??"")?e:hr}function gr(e){return ur.includes(e??"")?e:pr}function ra(e){return mr.includes(e??"")?e:fr}function Sp(e){let t=ia(e);return t===na?void 0:t}function _p(e){let t=gr(e);return t===Le?void 0:t}function Op(e){let t=ra(e);return t===wr?void 0:t}function vp(e,t,o){let a=Di(t);return a===Hi?{}:ia(e)!==na||ra(o)==="lift"?{"--sf-shadow-color":a}:{}}var br=["normal","tight","compressed"],me="normal";function la(e){return br.includes(e??"")?e:me}function xp(e){let t=la(e);return t===me?void 0:t}function kp(e){switch(la(e)){case"tight":return{lineHeight:.95,letterSpacing:-.01};case"compressed":return{lineHeight:.86,letterSpacing:-.01};default:return{}}}var Xo=["authored","sentence"],yt={case:"authored",weight:null,weightStrong:null,italicStrong:null,maxPx:null,weight2:null,weight3:null,case2:"authored",case3:"authored"},rt=100,lt=900,yr=24,Er=200;function Oe(e,t,o){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,t),o))}function ca(e){let t=Oe(e?.weight,rt,lt),o=ct(Xo,"authored",e?.case),a=n=>n==null?t:Oe(n,rt,lt),s=n=>ct(Xo,o,n);return{case:o,weight:t,weightStrong:Oe(e?.weightStrong,rt,lt),italicStrong:typeof e?.italicStrong=="boolean"?e.italicStrong:null,maxPx:Oe(e?.maxPx,yr,Er),weight2:a(e?.weight2),weight3:a(e?.weight3),case2:s(e?.case2),case3:s(e?.case3)}}function Rp(e){let t=ca(e),o={};return t.case==="sentence"&&(o["--sf-heading-case"]="none"),t.weight!==null&&(o["--sf-heading-weight"]=String(t.weight)),t.weightStrong!==null&&(o["--sf-heading-weight-strong"]=String(t.weightStrong)),t.maxPx!==null&&(o["--sf-heading-max"]=`${t.maxPx}px`),t.weight2!==null&&t.weight2!==t.weight&&(o["--sf-heading-2-weight"]=String(t.weight2)),t.weight3!==null&&t.weight3!==t.weight&&(o["--sf-heading-3-weight"]=String(t.weight3)),t.case2!==t.case&&(o["--sf-heading-2-case"]=t.case2==="sentence"?"none":"uppercase"),t.case3!==t.case&&(o["--sf-heading-3-case"]=t.case3==="sentence"?"none":"uppercase"),o}function Ap(e){return ca({case:e?.heading_case??void 0,weight:e?.heading_weight,weightStrong:e?.heading_weight_strong,italicStrong:e?.accent_italic,maxPx:e?.heading_max_px,weight2:e?.heading_2_weight??void 0,weight3:e?.heading_3_weight??void 0,case2:e?.heading_2_case??void 0,case3:e?.heading_3_case??void 0})}var ut="siteTheme";function Tr(e){let t=e;if(!t||typeof t!="object"||!Array.isArray(t.themes)||!t.themes.every(a=>!!a&&typeof a=="object"))return{};let o=typeof t.selected=="number"&&Number.isInteger(t.selected)&&t.selected>=0?t.selected:0;return{[ut]:{selected:o,themes:t.themes}}}function Lp(e){return Tr(e?.[ut])[ut]}import{parseHexColor as Sr}from"efficient-shell/format";var Et=[{role:"bg",token:"--bg",ink:!1},{role:"fg",token:"--fg",ink:!0},{role:"surface",token:"--site-surface",ink:!1},{role:"surface-2",token:"--site-surface-2",ink:!1},{role:"line",token:"--site-line",ink:!0},{role:"muted",token:"--fg-dim",ink:!0}],_r=Et.filter(e=>e.ink);function da(e){let t={color:e.fg};for(let{role:o,token:a}of _r)t[a]=e[o];return t}var Or={fg:"var(--overlay-fg)",line:"color-mix(in srgb, var(--overlay-fg) 24%, transparent)",muted:"color-mix(in srgb, var(--overlay-fg) 76%, transparent)"},vr=Object.freeze(da(Or)),xr={fg:"var(--overlay-fg-on-light)",line:"color-mix(in srgb, var(--overlay-fg-on-light) 24%, transparent)",muted:"color-mix(in srgb, var(--overlay-fg-on-light) 76%, transparent)"},kr=Object.freeze(da(xr));function Np(e,t){let o=e?Sr(e):null;return o?Zo(o,t)?vr:kr:null}import{jsx as pa}from"react/jsx-runtime";import{createContext as Lr,useCallback as m,useContext as Cr,useMemo as Ir,useState as Pr}from"react";import{createContext as ua,useContext as Tt}from"react";import{createContext as Rr}from"react";var ha=Rr(null);var Ar=ua(null),St=ua({logo:null,placeholder:!1,wordmark:null});function Gp(){let e=Tt(ha),t=Tt(Ar),o=Tt(St),a=!e&&o.placeholder,s=e?e.logoUrl:o.logo?.logoUrl??t?.logoUrl??null;return{src:a?null:s,reversedSrc:e?e.logoReversed:o.logo?.logoReversed??t?.logoReversed??null,inkIsDark:e?e.logoInkIsDark:o.logo?.logoInkIsDark??t?.logoInkIsDark??null,wordmark:e?null:o.wordmark,siteName:e?.siteName??t?.siteName}}var ma={},fa=Lr({settings:null,setSettings:()=>{},primeSettings:()=>{},websiteName:null,templateChrome:!1,templateName:null,chromePlaceholder:!1,themeMode:pt,setThemeMode:()=>{},themeSwitchShown:mt,setThemeSwitchShown:()=>{},theme:ke,themeRow:"none",setTheme:()=>{},fonts:G,setFonts:()=>{},sizes:gt,setSizes:()=>{},cornerRadiusPx:null,setCornerRadiusPx:()=>{},cardShadow:null,setCardShadow:()=>{},shadowColor:null,setShadowColor:()=>{},cardGap:Le,setCardGap:()=>{},hoverEffect:null,setHoverEffect:()=>{},headingCompression:me,setHeadingCompression:()=>{},siteWidth:null,setSiteWidth:()=>{},siteGutter:null,siteGutterPhone:null,blockGap:null,blockGapPhone:null,siteLengthUnits:ma,setSiteLengthUnits:()=>{},setSiteGutter:()=>{},setSiteGutterPhone:()=>{},setBlockGap:()=>{},setBlockGapPhone:()=>{},headingTypography:yt,setHeadingTypography:()=>{},textStyles:null,setTextStyles:()=>{},wordStyles:null,heroBackgroundFollowsWidth:null,setHeroBackgroundFollowsWidth:()=>{},sectionBackgroundWidth:null,setSectionBackgroundWidth:()=>{},sectionContentWidth:null,setSectionContentWidth:()=>{},photographyGrayscale:null,setPhotographyGrayscale:()=>{},shareButtonOnPosts:null,setShareButtonOnPosts:()=>{},themeFromDocument:!1});function jp({children:e,websiteName:t=null,templateChrome:o=!1,templateName:a=null,chromePlaceholder:s=!1,themeMode:n=pt,onThemeModeChange:i,themeSwitchShown:r=mt,onThemeSwitchShownChange:c,theme:h=ke,themeRow:_="none",onThemeChange:O,fonts:Ze=G,onFontsChange:mo,sizes:En=gt,onSizesChange:fo,cornerRadiusPx:Tn=null,onCornerRadiusPxChange:wo,cardShadow:Sn=null,onCardShadowChange:go,shadowColor:_n=null,onShadowColorChange:bo,cardGap:On=Le,onCardGapChange:yo,hoverEffect:vn=null,onHoverEffectChange:Eo,headingCompression:xn=me,onHeadingCompressionChange:To,siteWidth:kn=null,onSiteWidthChange:So,siteGutter:Rn=null,siteGutterPhone:An=null,blockGap:Ln=null,blockGapPhone:Cn=null,siteLengthUnits:In=ma,onSiteLengthUnitsChange:_o,onSiteGutterChange:Oo,onSiteGutterPhoneChange:vo,onBlockGapChange:xo,onBlockGapPhoneChange:ko,headingTypography:Pn=yt,onHeadingTypographyChange:Ro,textStyles:Nn=null,onTextStylesChange:Ao,wordStyles:Hn=null,heroBackgroundFollowsWidth:Dn=null,onHeroBackgroundFollowsWidthChange:Lo,sectionBackgroundWidth:Bn=null,onSectionBackgroundWidthChange:Co,sectionContentWidth:Mn=null,onSectionContentWidthChange:Io,photographyGrayscale:Fn=null,onPhotographyGrayscaleChange:Po,shareButtonOnPosts:Gn=null,onShareButtonOnPostsChange:No,themeFromDocument:Wn=!1}){let[pe,Ho]=Pr(null),Un=m(l=>Ho(mi=>mi??l),[]),Yn=m(l=>i?.(l),[i]),Kn=m(l=>c?.(l),[c]),$n=m(l=>O?.(l),[O]),Vn=m(l=>mo?.(l),[mo]),jn=m(l=>fo?.(l),[fo]),Xn=m(l=>So?.(l),[So]),zn=m(l=>Oo?.(l),[Oo]),qn=m(l=>vo?.(l),[vo]),Qn=m(l=>xo?.(l),[xo]),Zn=m(l=>ko?.(l),[ko]),Jn=m(l=>_o?.(l),[_o]),ei=m(l=>Lo?.(l),[Lo]),ti=m(l=>Co?.(l),[Co]),oi=m(l=>Io?.(l),[Io]),ai=m(l=>Po?.(l),[Po]),si=m(l=>No?.(l),[No]),ni=m(l=>wo?.(l),[wo]),ii=m(l=>go?.(l),[go]),ri=m(l=>bo?.(l),[bo]),li=m(l=>yo?.(l),[yo]),ci=m(l=>Eo?.(l),[Eo]),di=m(l=>To?.(l),[To]),hi=m(l=>Ro?.(l),[Ro]),ui=m(l=>Ao?.(l),[Ao]),Do=pe?.logoUrl,Bo=pe?.logoReversed,Mo=pe?.logoInkIsDark,Fo=pe!==null,pi=Ir(()=>({logo:Fo?{logoUrl:Do,logoReversed:Bo,logoInkIsDark:Mo}:null,placeholder:o||s,wordmark:o?a:t}),[Fo,Do,Bo,Mo,o,s,a,t]);return pa(St.Provider,{value:pi,children:pa(fa.Provider,{value:{settings:pe,setSettings:Ho,primeSettings:Un,websiteName:t,templateChrome:o,templateName:a,chromePlaceholder:s,themeMode:n,setThemeMode:Yn,themeSwitchShown:r,setThemeSwitchShown:Kn,theme:h,themeRow:_,setTheme:$n,fonts:Ze,setFonts:Vn,sizes:En,setSizes:jn,cornerRadiusPx:Tn,setCornerRadiusPx:ni,cardShadow:Sn,setCardShadow:ii,shadowColor:_n,setShadowColor:ri,cardGap:On,setCardGap:li,hoverEffect:vn,setHoverEffect:ci,headingCompression:xn,setHeadingCompression:di,siteWidth:kn,setSiteWidth:Xn,siteGutter:Rn,siteGutterPhone:An,blockGap:Ln,blockGapPhone:Cn,siteLengthUnits:In,setSiteLengthUnits:Jn,setSiteGutter:zn,setSiteGutterPhone:qn,setBlockGap:Qn,setBlockGapPhone:Zn,headingTypography:Pn,setHeadingTypography:hi,textStyles:Nn,setTextStyles:ui,wordStyles:Hn,heroBackgroundFollowsWidth:Dn,setHeroBackgroundFollowsWidth:ei,sectionBackgroundWidth:Bn,setSectionBackgroundWidth:ti,sectionContentWidth:Mn,setSectionContentWidth:oi,photographyGrayscale:Fn,setPhotographyGrayscale:ai,shareButtonOnPosts:Gn,setShareButtonOnPosts:si,themeFromDocument:Wn},children:e})})}var Nr=()=>Cr(fa);function Xp(e,t,o){return e?t===o?"read":"loading":"none"}function zp(e,t){return{value:e,readFor:t}}function qp(e,t,o){return{value:t,readFor:e.readFor===o?o:null}}function Qp(){let{sectionContentWidth:e,themeFromDocument:t}=Nr();return t?null:e}var em=["general","commerce","service"],oe=[{key:"openers",title:"Hero & intros",defaultExpanded:!0,templateable:!0,sections:[{type:"Hero",label:"Hero",set:"general"},{type:"IntroBleed",label:"Scroll-Over Text",set:"general"}]},{key:"shop",title:"Shop & galleries",templateable:!0,sections:[{type:"Collections",label:"Collections",set:"commerce"},{type:"AlloyWheelsListing",label:"List",set:"commerce"},{type:"CatalogFilterBar",label:"Catalog Filter Bar",set:"commerce"},{type:"ProductGrid",label:"Product Grid",set:"commerce"},{type:"FitmentFinder",label:"Fitment Form",set:"commerce"},{type:"GalleryB",label:"Gallery",set:"commerce"}]},{key:"product",title:"Product page",templateable:!0,sections:[{type:"ProductHero",label:"Product Hero",set:"commerce"},{type:"SpecTable",label:"Spec Table",set:"commerce"},{type:"ProcessSteps",label:"Image & Text Columns",set:"general"},{type:"DetailRows",label:"Feature Rows",set:"commerce"},{type:"FitmentTable",label:"Fitment Table",set:"commerce"},{type:"TyreSizes",label:"Tyre Sizes",set:"commerce"}]},{key:"checkout",title:"Checkout & ordering",templateable:!0,sections:[{type:"OrderSummary",label:"Order Table",set:"general"},{type:"CheckoutCTA",label:"Ready-to-Order Banner",set:"commerce"}]},{key:"about",title:"About & brand story",templateable:!0,sections:[{type:"Footprint",label:"Locations Map",set:"general"}]},{key:"content",title:"Text & content",templateable:!0,sections:[{type:"Cards",label:"Cards",set:"general"}]},{key:"proof",title:"Stats & social proof",templateable:!0,sections:[{type:"Stats",label:"Stats",set:"general"},{type:"Chart",label:"Chart",set:"general"},{type:"Mockup",label:"Mockup Card",set:"general"},{type:"Reviews",label:"Reviews",set:"service"}]},{key:"promo",title:"Promotions & sign-ups",templateable:!0,sections:[{type:"Countdown",label:"Countdown",set:"general"}]},{key:"blog",title:"Blog & journal",templateable:!0,sections:[{type:"FeaturedCover",label:"Feature Banner",set:"general"},{type:"LongRead",label:"Article Text",set:"general"},{type:"ArticleBody",label:"Article Body",set:"service"},{type:"Events",label:"Latest Posts",set:"service"}]},{key:"navigation",title:"Navigation & wayfinding",templateable:!0,sections:[{type:"Breadcrumb",label:"Breadcrumb",set:"general"}]},{key:"legal",title:"Legal & documents",templateable:!0,sections:[{type:"DocBody",label:"Document Text",set:"general"}]},{key:"contact",title:"Contact, FAQ & forms",templateable:!0,sections:[{type:"FAQ",label:"Q&A",set:"general"},{type:"ContactRouting",label:"Contact Form",set:"service"},{type:"SubmitBuild",label:"Photo Submission Form",set:"service"},{type:"ReviewForm",label:"Review Form",set:"service"},{type:"Form",label:"Form",set:"service"},{type:"AppointmentBooking",label:"Booking Form",set:"service"}]},{key:"structure",title:"Layout, structure & embeds",templateable:!1,sections:[{type:"SectionHeader",label:"Section Header",set:"general"},{type:"Flex",label:"Box",set:"general"},{type:"Divider",label:"Divider",set:"general"},{type:"CustomHTML",label:"Custom HTML",set:"general"}]},{key:"layouts",title:"Layouts",templateable:!0,sections:[{type:"Manifesto",label:"Brand Text",set:"general"},{type:"Split",label:"Image & Text Split",set:"general"},{type:"Subscribe",label:"Signup Form",set:"service"},{type:"Ticker",label:"Scrolling Bar",set:"general"},{type:"SpecStrip",label:"Spec Strip",set:"general"},{type:"TimelineTrack",label:"Milestone Timeline",set:"general"},{type:"Timeline",label:"Story Timeline",set:"general"},{type:"Logos",label:"Logos",set:"general"},{type:"DocMasthead",label:"Page Header",set:"general"},{type:"DocTabs",label:"Tab Bar",set:"general"},{type:"Prose",label:"Editorial Text",set:"general"},{type:"ParagraphsA",label:"Lead Text",set:"general"},{type:"TitleWithButtons",label:"Call-to-Action Heading",set:"general"},{type:"Banner",label:"Banner",set:"general"}]}];function tm(){return Object.fromEntries(oe.map(e=>[e.key,{title:e.title,components:e.sections.map(t=>t.type),...e.defaultExpanded?{defaultExpanded:!0}:{}}]))}var Hr="2027-02-05",Dr="2027-02-14",wa={CategoryBar:{label:"Category bar",note:`The reviewer, 2026-11-06 (the page headers and the tab bars become TWO Layouts rows, Page Header and Tab Bar): Category Bar folds into the Tab Bar. Retired from the Add menu with no second preset.
|
|
2
2
|
|
|
3
3
|
WHAT REPLACES IT: Tab Bar, a Box pinned under the header that stays above the sections after it, with a line below, holding the Menu block (One row, Menu style Tabs, Current page). Set the Menu's content to Blog categories: the blog's own categories, most posts first, each with its count in its cell (the host seeds the count card, Count on). Its converter row (\`section-to-box-rows-tabbar\` \`categoryBar\`, OFF) draws that bar for a stored page that moves later.
|
|
4
4
|
|