effcss 1.0.1 → 1.1.0
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/README.md +3 -3
- package/dist/build/define-provider-with-configs.min.js +1 -1
- package/dist/build/define-provider.min.js +1 -1
- package/dist/index.js +1 -1
- package/dist/types/src/_provider/manage.d.ts +18 -13
- package/dist/types/src/configs/ext/Keyframes.d.ts +1 -1
- package/dist/types/src/types.d.ts +28 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ npm i effcss
|
|
|
22
22
|
|
|
23
23
|
## Usage example
|
|
24
24
|
|
|
25
|
-
See simple usage example in `demo` folder
|
|
25
|
+
See simple usage example in `demo` folder or open demo React project on [StackBlitz](https://stackblitz.com/edit/vitejs-react-effcss?file=index.html)
|
|
26
26
|
|
|
27
27
|
## Concepts
|
|
28
28
|
|
|
@@ -31,13 +31,13 @@ Effcss consists of two parts - **style provider** and **style config**.
|
|
|
31
31
|
**Style provider** is the static part that defines special web component (by default, `<style-provider>`). It should be connected in separate script-tag inside html head or manually defined in page scripts. The easiest way is to use the provider script with unpkg:
|
|
32
32
|
|
|
33
33
|
```html
|
|
34
|
-
<script src="https://unpkg.com/effcss@1.
|
|
34
|
+
<script src="https://unpkg.com/effcss@1.1.0/dist/build/define-provider.min.js" crossorigin="anonymous"></script>
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
Or you can use provider script with all library style configs included:
|
|
38
38
|
|
|
39
39
|
```html
|
|
40
|
-
<script src="https://unpkg.com/effcss@1.
|
|
40
|
+
<script src="https://unpkg.com/effcss@1.1.0/dist/build/define-provider-with-configs.min.js" crossorigin="anonymous"></script>
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
**Style config** is the dynamic part that configures the behavior of the web component and defines the initial styles of the page. **Styles config** consists of 3 fields:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"function"==typeof SuppressedError&&SuppressedError;const s=(...s)=>s.join("-"),t=(...s)=>s.join(" "),e=(...s)=>s.join(","),r=s=>`(${s})`,i=(s,t)=>((s,t)=>Object.fromEntries(Object.entries(s).map((s=>t(s)))))(s,(s=>[s[0],t(s[1])])),c=s=>"scale3d"+r(s),a=s=>"scaleX"+r(s),o=s=>"scale"+r(s),l=(s,t,i)=>"translate3d"+r(e(s,t,i)),n=s=>"translateZ"+r(s),p=s=>"rotateX"+r(s),_=s=>"rotateY"+r(s),b=s=>s+":active",m=s=>s+":focus",f=s=>":where"+r(s),h=s=>s&&i(s,(s=>s+"rem")),d=s=>s&&i(s,(s=>s+"ms")),$=s=>s&&i(s,(s=>s+"px")),u=s=>s&&i(s,(s=>s+"deg")),v=s=>s&&i(s,(s=>s+"vw")),g=s=>s&&i(s,(s=>s+"vh")),x=s=>s&&i(s,(s=>s+"vmin")),w=s=>s&&i(s,(s=>s+"vmax")),y=s=>s&&i(s,(s=>s+"cqb")),z=s=>s&&i(s,(s=>s+"cqi")),S=s=>s&&i(s,(s=>s+"cqmin")),j=s=>s&&i(s,(s=>s+"cqmax")),k=s=>s&&i(s,(s=>"span "+s)),O="x",q="y",E="horizontal",A="vertical",N="text",V="font",R="column",W="max",I="min",P="content",C=P+"s",K="items",T="self",X="inline",B="block",L="size",U="radius",Y="direction",Z="outline",D="style",G="end",H="start",J="center",M="word",F="line",Q="break",ss="wrap",ts="nowarp",es="template",rs="rule",is="object",cs="top",as="left",os="bottom",ls="right",ns="width",ps="color",_s="overflow",bs="align",ms="type",fs="transform",hs="all",ds="height",$s="normal",us="opacity",vs="visibility",gs="scale",xs="box",ws="border",ys="position",zs="none",Ss="auto",js="fill",ks="stroke",Os="reverse",qs="space",Es="fixed",As="origin",Ns="alpha",Vs="luminance",Rs="clip",Ws="zoom",Is="scroll",Ps="padding",Cs="margin",Ks="both",Ts="mode",Xs="repeat",Bs="light",Ls="linear",Us="hidden",Ys=s(ws,os),Zs=s(ws,as),Ds=s(ws,ls),Gs=s(ws,cs),Hs=s(ws,B),Js=s(ws,X),Ms=s(Hs,H),Fs=s(Hs,G),Qs=s(Js,H),st=s(Js,G),tt=s(ws,ns),et=s(Ys,ns),rt=s(Zs,ns),it=s(Ds,ns),ct=s(Gs,ns),at=s(Hs,ns),ot=s(Js,ns),lt=s(Ms,ns),nt=s(Fs,ns),pt=s(Qs,ns),_t=s(st,ns),bt=s(ws,U),mt=s(ws,os,as,U),ft=s(ws,os,ls,U),ht=s(ws,cs,as,U),dt=s(ws,cs,ls,U),$t=s(ws,H,G,U),ut=s(ws,H,H,U),vt=s(ws,G,G,U),gt=s(ws,G,H,U),xt=s(ws,ps),wt=s(Zs,ps),yt=s(Ds,ps),zt=s(Gs,ps),St=s(Ys,ps),jt=s(Hs,ps),kt=s(Js,ps),Ot=s(Ms,ps),qt=s(Fs,ps),Et=s(Qs,ps),At=s(st,ps),Nt=s(ws,D),Vt=s(Zs,D),Rt=s(Ds,D),Wt=s(Gs,D),It=s(Ys,D),Pt=s(Hs,D),Ct=s(Js,D),Kt=s(Ms,D),Tt=s(Fs,D),Xt=s(Qs,D),Bt=s(st,D),Lt=s(Z,ps),Ut=s(Z,ns),Yt=s(Z,D),Zt=s(Z,"offset"),Dt=s(_s,O),Gt=s(_s,q),Ht=s(is,"fit"),Jt=s(is,ys),Mt=s(gs,"down"),Ft=s(xs,"shadow"),Qt=s(Ps,xs),se=s(ws,xs),te=s(P,xs),ee=s(js,xs),re=s(ks,xs),ie=s("view",xs),ce=s("no",Rs),ae=s(Xs,O),oe=s(Xs,q),le=s("no",Xs),ne=s(Ps,as),pe=s(Ps,cs),_e=s(Ps,ls),be=s(Ps,os),me=s(Cs,as),fe=s(Cs,cs),he=s(Cs,ls),de=s(Cs,os),$e="grid",ue="row",ve="justify",ge="flex",xe=s(X,ge),we=s(ge,"basis"),ye=s(ge,"grow"),ze=s(ge,"shrink"),Se=s(ge,Y),je=s(ge,ss),ke=s(ve,P),Oe=s(ve,K),qe=s(bs,K),Ee=s(bs,P),Ae=s(bs,T),Ne=s($e,es,ue+"s"),Ve=s($e,es,R+"s"),Re=s(ue,"gap"),We=s(R,"gap"),Ie=s(ve,T),Pe=s($e,ue,G),Ce=s($e,ue,H),Ke=s($e,R,G),Te=s($e,R,H),Xe=s(R,"count"),Be=s(R,js),Le=s(R,rs,ps),Ue=s(R,rs,D),Ye=s(R,rs,ns),Ze=s(R,"span"),De=s(R,ns),Ge=s(ue,Os),He=s(R,Os),Je=s(ss,Os),Me=s(ge,G),Fe=s(ge,H),Qe=s(qs,"between"),sr=s(qs,"around"),tr=s(qs,"evenly"),er=s(X,$e),rr="mask",ir=s(rr,Rs),cr=s(rr,"composite"),ar=s(rr,Ts),or=s(rr,As),lr=s(rr,ys),nr=s(rr,Xs),pr=s(rr,L),_r=s(rr,ms),br="timing-function",mr="delay",fr="duration",hr="animation",dr=s(hr,"name"),$r=s(hr,br),ur=s(hr,Y),vr=s(hr,"iteration-count"),gr=s(hr,fr),xr=s(hr,mr),wr=hr+"-play-state",yr=s(hr,js,Ts),zr="transition",Sr=zr+"-behavior",jr=zr+"-property",kr=s(zr,br),Or=s(zr,fr),qr=s(zr,mr),Er="alternate",Ar=s(Er,Os),Nr="-out",Vr="ease",Rr=Vr+"-in",Wr=Rr+Nr,Ir=Vr+Nr,Pr="step",Cr=s(Pr,H),Kr=s(Pr,G),Tr="translate",Xr="rotate",Br="perspective",Lr=s(Br,As),Ur=t(as,cs),Yr=t(ls,cs),Zr=t(as,os),Dr=t(ls,os),Gr="inset",Hr=s(fs,xs),Jr=s(fs,As),Mr=s(fs,D),Fr=s(Gr,B),Qr=s(Gr,B,G),si=s(Gr,B,H),ti=s(Gr,X),ei=s(Gr,X,G),ri=s(Gr,X,H),ii=s("fit",P),ci=s(I,P),ai=s(W,P),oi=s(xs,"sizing"),li=s(W,ns),ni=s(I,ns),pi=s(W,ds),_i=s(I,ds),bi=s(B,L),mi=s(W,bi),fi=s(I,bi),hi=s(X,L),di=s(W,hi),$i=s(I,hi),ui="snap",vi=s(Is,"behavior"),gi=s(Is,Cs),xi=s(Is,Cs,cs),wi=s(Is,Cs,os),yi=s(Is,Cs,as),zi=s(Is,Cs,ls),Si=s(Is,Cs,B),ji=s(Is,Cs,B,G),ki=s(Is,Cs,B,H),Oi=s(Is,Cs,X),qi=s(Is,Cs,X,G),Ei=s(Is,Cs,X,H),Ai=s(Is,Ps),Ni=s(Is,Ps,cs),Vi=s(Is,Ps,os),Ri=s(Is,Ps,as),Wi=s(Is,Ps,ls),Ii=s(Is,Ps,B),Pi=s(Is,Ps,B,G),Ci=s(Is,Ps,B,H),Ki=s(Is,Ps,X),Ti=s(Is,Ps,X,G),Xi=s(Is,Ps,X,H),Bi=s(Is,ui,bs),Li=s(Is,ui,"stop"),Ui=s(Is,ui,ms),Yi="mandatory",Zi=t(O,Yi),Di=t(q,Yi),Gi=t(B,Yi),Hi=t(X,Yi),Ji=t(Ks,Yi),Mi="proximity",Fi=t(O,Mi),Qi=t(q,Mi),sc=t(B,Mi),tc=t(X,Mi),ec=t(Ks,Mi),rc=s(N,"decoration"),ic=s(rc,ps),cc=s(N,fs),ac=s(N,bs),oc=s(N,_s),lc=s(N,"orientation"),nc=s(M,Q),pc=s(V,L),_c=V+"-weight",bc=V+"-family",mc=s(V,D),fc=s("writing",Ts),hc=s(F,ds),dc=s(F,Q),$c=F+"-through",uc="over"+F,vc="under"+F,gc="pre",xc=s(gc,F),wc=s(gc,ss),yc=Q+"-spaces",zc=s(Q,hs),Sc=s(Q,M),jc=E+"-tb",kc=A+"-lr",Oc=A+"-rl",qc="keep-"+hs,Ec="pointer",Ac="pan",Nc=s(Ac,O),Vc=s(Ac,as),Rc=s(Ac,ls),Wc=s(Ac,q),Ic=s(Ac,"up"),Pc=s(Ac,"down"),Cc=s("pinch",Ws),Kc=s(A,N),Tc="grab",Xc=Tc+"bing",Bc="resize",Lc="col-"+Bc,Uc="row-"+Bc,Yc="n-"+Bc,Zc="e-"+Bc,Dc="s-"+Bc,Gc="w-"+Bc,Hc="ne-"+Bc,Jc="ew-"+Bc,Mc="nw-"+Bc,Fc="se-"+Bc,Qc="sw-"+Bc,sa="ns-"+Bc,ta="nesw-"+Bc,ea="nwse-"+Bc,ra=s(Ws,"in"),ia=s(Ws,"out"),ca=s(Ec,"events"),aa=s(Is,ys),oa=s("caret",ps),la=s("accent",ps),na="filter",pa="backdrop-"+na,_a="background",ba=s(_a,ps),ma=s(_a,Rs),fa=s(_a,As),ha=s(_a,ys),da=s(_a,ys,O),$a=s(_a,ys,q),ua=s(_a,Xs),va=s(_a,L),ga=s(_a,"blend",Ts),xa=s(_a,"attachment"),wa="gradient",ya=s(Ls,wa);s("radial",wa),s("conic",wa);const za=s(P,vs);s(ks,ns),s(js,rs);const Sa=s(ps,"dodge"),ja=s(ps,"burn"),ka=s("hard",Bs),Oa=s("soft",Bs);s(ps,"mix");const qa="revert",Ea={uni:{ini:"initial",inh:"inherit",u:"unset",r:qa,rl:s(qa,"layer"),a:Ss,no:zs},ali:{s:H,e:G,c:J,st:"stretch",sb:Qe,sa:sr,se:tr,b:"baseline",fs:Fe,fe:Me,no:zs},dis:{g:$e,ig:er,f:ge,if:xe},fd:{r:ue,rr:Ge,c:R,cr:He},fw:{w:ss,nw:ts,wr:Je},rep:{rx:ae,ry:oe,r:Xs,s:qs,ro:"round",nr:le},ttf:{l:Ls,e:Vr,ei:Rr,eo:Ir,eio:Wr,ss:Cr,se:Kr},ws:{n:$s,nw:ts,p:gc,pl:xc,pw:wc,bs:yc},wb:{n:$s,ba:zc,ka:qc,bw:Sc},wm:{htb:jc,vlr:kc,vrl:Oc},hyp:{no:zs,m:"manual",a:Ss},tt:{l:"lowercase",u:"uppercase",c:"capitalize"},td:{lt:$c,o:uc,u:vc},tor:{m:"mixed",u:"upright",sr:"sideways-right",s:"sideways",ugo:"use-glyph-orientation"},ta:{l:as,c:J,j:ve,r:ls,s:H,e:G},tp:{all:hs,col:e(ps,ba,xt,ic),icon:e(js,ks),filter:e(na,pa),ind:e(Ps,Cs),sz:e(ns,li,ni,ds,pi,_i),esz:e(fi,bi,mi,$i,hi,di),o:us,b:ws,f:ge,g:$e,pos:e(ys,as,cs,os,ls),tf:e(fs,Tr,gs,Xr,"skew",Br)},lb:{a:Ss,any:"anywhere",n:$s,l:"loose",s:"strict"},ov:{h:Us,s:Is,a:Ss,c:Rs,e:"ellipsis"},v:{h:Us,v:"visible",c:"collapse",a:Ss},wc:{a:Ss,sp:aa,c:C,tf:fs,o:us,i:Gr,tfi:fs+","+Gr},afm:{no:zs,f:"forwards",b:"backwards",both:Ks},adir:{r:Os,a:Er,ar:Ar},aps:{r:"running",p:"paused"},tb:{ad:"allow-discrete",n:$s},app:{n:zs,a:Ss},pe:{a:Ss,no:zs,all:hs,f:js,s:ks},cur:{h:"help",a:Ss,p:Ec,cm:"context-menu",pr:"progress",w:"wait",cell:"cell",crh:"crosshair",t:N,vt:Kc,cp:"copy",m:"move",g:Tc,gng:Xc,cr:Lc,rr:Uc,nr:Yc,er:Zc,sr:Dc,wr:Gc,ner:Hc,ewr:Jc,nwr:Mc,ser:Fc,swr:Qc,nsr:sa,neswr:ta,nwser:ea,zi:ra,zo:ia},res:{n:zs,v:A,h:E,b:Ks},toa:{a:Ss,no:zs,px:Nc,pl:Vc,pr:Rc,py:Wc,pu:Ic,pd:Pc,pz:Cc,m:"manipulation"},us:{n:zs,t:N,all:hs,a:Ss},sb:{a:Ss,s:"smooth"},sss:{n:$s,a:"always"},sst:{n:zs,x:O,y:q,b:B,i:X,both:Ks,xm:Zi,ym:Di,bm:Gi,im:Hi,bothm:Ji,xp:Fi,yp:Qi,bp:sc,ip:tc,bothp:ec},fst:{i:"italic",n:$s,o:"oblique"},pos:{r:"relative",a:"absolute",f:Es,s:"static"},posv:{b:os,t:cs,c:J,l:as,r:ls,lt:Ur,rt:Yr,lb:Zr,rb:Dr},csz:{cv:"cover",cn:"contain",a:Ss,f:js,sd:Mt},cf:{a:Ss,b:"balance"},cs:{no:zs,all:hs},box:{c:te,p:Qt,b:se,f:ee,s:re,v:ie,nc:ce,t:N},mcm:{a:"add",s:"subtract",i:"intersect",e:"exclude"},mtp:{a:Ns,l:Vs},mm:{a:Ns,l:Vs,m:"match-source"},bgbm:{n:$s,m:"multiply",scr:"screen",o:"overlay",d:"darken",l:Bs+"en",dif:"difference",exc:"exclusion",h:"hue",sat:"saturation",c:ps,lum:"luminosity",cd:Sa,cb:ja,hl:ka,sl:Oa},bga:{s:Is,f:Es,l:"local"},ls:{no:zs,dt:"dotted",i:Gr,h:Us,ds:"dashed",s:"solid",db:"double",o:"outset",r:"ridge",g:"groove"},usz:{min:ci,max:ai,fit:ii,no:0,a:Ss}},Aa={a:hr,an:dr,adur:gr,adel:xr,aps:wr,afm:yr,adir:ur,aic:vr,atf:$r,trn:zr,tdur:Or,tdel:qr,tb:Sr,tp:jr,ttf:kr,bor:ws,bw:tt,br:bt,bs:Nt,bls:Vt,brs:Rt,bts:Wt,bbs:It,bbls:Pt,bis:Ct,bbss:Kt,bbes:Tt,biss:Xt,bies:Bt,brw:it,blw:rt,btw:ct,bbw:et,btlr:ht,btrr:dt,bbrr:ft,bblr:mt,biw:ot,bblw:at,bbew:nt,bbsw:lt,bisw:pt,biew:_t,besr:gt,beer:vt,bssr:ut,bser:$t,bc:xt,blc:wt,brc:yt,btc:zt,bbc:St,bblc:jt,bic:kt,bbsc:Ot,bbec:qt,bisc:Et,biec:At,bgc:ba,c:ps,acc:la,ctc:oa,st:ks,fi:js,flt:na,bf:pa,g:$e,f:ge,dis:"display",jc:ke,ji:Oe,ai:qe,ac:Ee,gtr:Ne,gtc:Ve,rg:Re,cg:We,as:Ae,js:Ie,gre:Pe,grs:Ce,gce:Ke,gcs:Te,fd:Se,fw:je,fs:ze,fg:ye,fb:we,ord:"order",m:Cs,ml:me,mr:he,mt:fe,mb:de,p:Ps,pl:ne,pr:_e,pt:pe,pb:be,oc:Lt,ow:Ut,os:Yt,oo:Zt,l:as,r:ls,t:cs,b:os,ins:Gr,ib:Fr,ibe:Qr,ibs:si,ii:ti,iie:ei,iis:ri,wc:"will-change",app:"appearance",pe:ca,cur:"cursor",toa:"touch-action",us:"user-select",res:Bc,sb:vi,ssa:Bi,sss:Li,sst:Ui,sm:gi,sml:yi,smr:zi,smt:xi,smb:wi,sp:Ai,spl:Ri,spr:Wi,spt:Ni,spb:Vi,smbl:Si,smbe:ji,smbs:ki,smi:Oi,smie:qi,smis:Ei,spbl:Ii,spbe:Pi,spbs:Ci,spi:Ki,spie:Ti,spis:Xi,ar:"aspect-ratio",w:ns,maxw:li,minw:ni,h:ds,minh:_i,maxh:pi,bl:bi,maxb:mi,minb:fi,i:hi,mini:$i,maxi:di,per:Br,pero:Lr,rot:Xr,sc:gs,tf:fs,tfb:Hr,tfo:Jr,tfs:Mr,tr:Tr,z:Ws,lts:"letter-spacing",lh:hc,lb:dc,fst:mc,ff:bc,fwg:_c,fsz:pc,tt:cc,td:rc,ta:ac,to:oc,ws:"white-space",tor:lc,wb:nc,wm:fc,hyp:"hyphens",bsz:oi,bsh:Ft,pos:ys,cf:Be,crs:Ue,crc:Le,crw:Ye,cs:Ze,cw:De,cc:Xe,bgcl:ma,bgp:ha,bgpx:da,bgpy:$a,bgbm:ga,bgo:fa,bgr:ua,bga:xa,bgsz:va,mcl:ir,mcm:cr,mm:ar,mo:or,mp:lr,mre:nr,msz:pr,mtp:_r,obf:Ht,obp:Jt,cnt:P,ov:_s,ovx:Dt,ovy:Gt,v:vs,cv:za,o:us,zi:"z-index",zm:Ws,lg:ya,inf:"infinite",r_:":root","":"*",h_:":hover",f_:":focus",a_:":active",v_:":visited",val_:":valid",inv_:":invalid",e_:":empty",d_:":disabled",fc_:":first-child",lc_:":last-child",oc_:":only-child",odd_:":nth-child(odd)",even_:":nth-child(even)",ft_:":first-of-type",lt_:":last-of-type",ot_:":only-of-type",bef_:"::before",aft_:"::after",bd_:"::backdrop",ba_:"&::before,&::after",light_:"@media(prefers-color-scheme: light)",dark_:"@media(prefers-color-scheme: dark)"},Na={light:{lig:{def:.75,c:.05,s:.65,m:.75,l:.85,n:.9}},dark:{lig:{def:.4,n:.25,s:.3,m:.4,l:.5,c:.95}},root:Object.assign({lig:{def:.75,c:.05,s:.65,m:.75,l:.85,n:.9},hue:{def:261.35,b:261.35,i:194.77,e:29.23,w:70.66,s:142.49},chr:{def:.03,xs:.03,s:.06,m:.1,l:.15,xl:.25},alp:{def:1,min:0,xs:.1,s:.25,m:.5,l:.75,xl:.9,max:1},rem:{def:16},ff:{def:"Roboto, sans-serif",b:"Georgia, serif"},fwg:{xs:100,s:200,m:400,l:600,xl:700},time:{def:300,xs:100,s:200,m:300,l:450,xl:600,no:0,min:50,max:750},coef:[0,1,2,3,4,5,6,7,8,9,10,11,12].reduce(((s,t)=>(s[t]=t,s)),{}),rat:{1:1,"2/1":2,"1/2":.5,"4/3":1.3333,"3/4":.75,"9/16":.5625,"16/9":1.7778},sp:{"3xs":.125,"2xs":.25,xs:.5,s:.75,m:1,l:1.25,xl:1.5,"2xl":2,"3xl":4},sz:{"3xs":1,"2xs":1.5,xs:2,s:5,m:10,l:15,xl:20,"2xl":25,"3xl":30},szu:{a:"auto",no:0},bp:{xs:30,sm:40,md:48,lg:64,xl:80},o:{min:0,xs:.1,s:.25,m:.5,l:.75,xl:.9,max:1},vu:{0:0,"1/4":25,"1/2":50,"3/4":75,1:100},cqu:{0:0,"1/4":25,"1/2":50,"3/4":75,1:100},fr:{0:0,"1/12":"0.0833","1/10":"0.1","1/6":"0.1667","1/5":"0.2","1/4":"0.25","3/10":"0.3","1/3":"0.3333","2/5":"0.4","5/12":"0.4167","1/2":"0.5","7/12":"0.5833","3/5":"0.6","2/3":"0.6667","7/10":"0.7","3/4":"0.75","4/5":"0.8","5/6":"0.8333","9/10":"0.9","11/12":"0.9167",1:"1"},rad:{s:.5,m:1,l:2},th:{s:.1,m:.25,l:.5},sc:{xs:.5,s:.67,m:1,l:1.5,xl:2},tr:{xs:.25,s:.5,m:1,l:1.5,xl:2},sk:{xs:-15,s:-10,m:0,l:10,xl:15},rot:{xs:-180,s:-90,m:0,l:90,xl:180},zm:{s:.8,m:1,l:1.2},pers:{s:"100px",m:"200px"},fsz:{xs:.25,s:.5,m:1,l:1.5,xl:2},lh:{xs:1,s:1.25,m:1.5,l:1.75,xl:2},lsp:{no:0,s:.05,m:.1,l:.2},zi:{1:1,2:2,3:3,4:4,5:5},ic:{inf:"infinite",1:1,2:2}},Ea)},Va=s=>`{${s}}`,Ra=Object.assign.bind(Object),Wa=(s,t)=>`${s}:${t};`,Ia=(s,t)=>["@property",s,Va(Wa("syntax",t.syn||'"*"')+Wa("inherits",t.inh||!1)+(t.ini?Wa("initial-value",t.ini):""))].join(" "),Pa=s=>`var(${s})`,Ca=({l:s,c:t,h:e,a:r=1})=>`oklch(${s} ${t} ${e} / ${r})`,Ka=["l","c","h","a"];class Ta{constructor(s){this.baseStyles="",this._prefix="eff",this._mode="a",this._params=Na,this._compKeys={},this._compValues={},this._analyzeParams=s=>{var t,e;if(s)for(const t in s)this._params[t]=Ra(this._params[t]||{},s[t]);const{time:r,rem:c,coef:a,szu:o,sz:l,sp:n,rad:p,th:_,fr:b,bp:m,fsz:f,lsp:O,tr:q,sk:E,rot:A,fg:N,fs:V,fb:R,fo:W,ra:I,ro:P,co:C,ca:K,ins:T,cqu:X,cqb:B,cqi:L,cqmin:U,cqmax:Y,vu:Z,vw:D,vh:G,vmin:H,vmax:J}=this._params.root,M=(s=>s&&i(s,(s=>100*Number(s)+"%")))(b);this._params.root=Ra(this._params.root,{cqb:y(B||X),cqi:z(L||X),cqmin:S(U||X),cqmax:j(Y||X),vw:v(D||Z),vh:g(G||Z),vmin:x(H||Z),vmax:w(J||Z),fo:W||a,fg:N||a,fs:V||a,fb:R||M,ra:I||k(a),ro:P||a,ca:K||k(a),co:C||a,ins:T||M,sz:Ra(h(l)||{},o),sp:Ra(h(n)||{},o),rad:h(p),th:h(_),bp:h(m),fsz:h(f),lsp:h(O),tr:h(q),sk:u(E),rot:u(A),perc:M,time:d(r),rem:$(c)});const F=function(s,t){var e={};for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&t.indexOf(r)<0&&(e[r]=s[r]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(s);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(s,r[i])&&(e[r[i]]=s[r[i]])}return e}(this._params,["root"]),Q=Object.entries(F),ss={_mode:{root:{}}},ts={};Q.forEach((([s,t])=>{ss._mode[s]||(ss._mode[s]={}),Object.entries(t).forEach((([t,e])=>{Object.entries(e).forEach((([e,r])=>{const i=this._prepareVarName(t,e);ss._mode[s][i]=r,ss._mode.root[i]||(ss._mode.root[i]=r,ts[t]||(ts[t]={}),ts[t][e]=`var(${i})`)}))}))})),this._compValues=ts,this._compKeys=Object.entries(this._compValues.bp||{}).reduce(((s,[t,e])=>(s[t+"_"]=`@media (min-width:${e})`,s[t.toUpperCase()+"_"]=`@media (max-width:${e})`,s)),{}),this.baseStyles=this.compile("init",{c:Object.assign(Object.assign(Object.assign(Object.assign({},ss),{$r_:Object.assign(Object.assign({},ss._mode.root),{$c:"{uni.inh}",$fsz:"{rem.def}",$ff:"{ff.def}",$:{$c:"{uni.inh}",$fsz:"{rem.def}",$ff:"{ff.def}"}})}),(null===(t=ss._mode)||void 0===t?void 0:t.dark)?{$dark_:{$r_:ss._mode.dark}}:{}),(null===(e=ss._mode)||void 0===e?void 0:e.light)?{$light_:{$r_:ss._mode.light}}:{})})},this._prepareVarName=(...s)=>["-",this._prefix,...s].join("-"),this.compile=(s,t)=>{const{_:e,kf:r,k:i={},v:c={},c:a}=t,o=this._prepareSelector.bind(this),l=this._parseSelector.bind(this);let n=Ra({},a),p=Ra({},i),_=Ra({_:{}},c),b="";if(e)for(let t in e){const r=e[t];if("c"===r.typ){const e={};Ka.forEach((i=>{const c=t+i,a=this._prepareVarName(s,c);e[i]=a,p["_"+c]=e[i],b+=Ia(a,r)})),_._[t]=Ca({l:Pa(e.l),c:Pa(e.c),h:Pa(e.h),a:Pa(e.a)}),r.all&&(n["_"+t+"l"]=`&lig=>${this._prepareVarName(s,t+"l")}:{1}`,n["_"+t+"c"]=`&chr=>${this._prepareVarName(s,t+"c")}:{1}`,n["_"+t+"h"]=`&hue=>${this._prepareVarName(s,t+"h")}:{1}`,n["_"+t+"a"]=`&alp=>${this._prepareVarName(s,t+"a")}:{1}`)}else{const e=this._prepareVarName(s,t);p["_"+t]=e,_._[t]=Pa(e),b+=Ia(e,r)}}const m=s=>p[s]||this._compKeys[s]||Aa[s],f=s=>_[s]||this._compValues[s]||this._params.root[s],h=s=>s.replaceAll(/\{(.+?)\}/g,((s,t)=>{const[e,r]=t.split(".");if(r){const s=f(e);return(null==s?void 0:s[r])||(null==s?void 0:s.def)}return m(e)})),d=s=>{const t=s.split("?");let e;for(let s in t){const r=t[s],[i,c]=r.split("=>"),[a,o,l]=i.match(/(\w+)(\[[\w,]+\])?/),n=f(o);if(!n)continue;e=n;let p=Object.entries(e);const _=null==l?void 0:l.slice(1,-1).split(",");if(_){const s=new Set(_);p=p.filter((([t,e])=>s.has(t)))}if(c){let[s,t]=c.split("|");void 0===t&&(t=s,s=""),p=p.map((([e,r])=>[s.replace("{0}",e)||e,h(t.replaceAll("{1}",r))]))}(_||c)&&(e=Object.fromEntries(p));break}return e};function $(t,e,r){var i,c,a;let n=""+t;if((null===(i=null==t?void 0:t.startsWith)||void 0===i?void 0:i.call(t,"$"))&&(n=m(t.slice(1)),!n))return"";if(Array.isArray(e))return $(n,Object.assign({},...e.map((s=>"string"==typeof s?d(s):s))),r);if(null==e)return"";if("object"==typeof e){const t=!r||n.startsWith("&")||n.startsWith("@")?"":"&";if(n.startsWith("_")){const{e:r,m:i,mv:c}=l(n);return i&&"string"!=typeof c?Object.entries(e).reduce(((e,[c,a])=>{let l;return l="object"==typeof a?Object.entries(a).reduce(((s,t)=>s+$(...t,n)),""):a+";",e+t+o({b:s,e:r,m:i,mv:c})+Va(l)}),""):t+o({b:s,e:r,m:i,mv:c})+Va(Object.entries(e).reduce(((s,t)=>s+$(...t,n)),""))}return t+n+Va(Object.entries(e).reduce(((s,t)=>s+$(...t,n)),""))}{let s=""+e;return(null===(c=null==s?void 0:s.startsWith)||void 0===c?void 0:c.call(s,"&"))?$(n,d(s.slice(1)),r):(null===(a=null==s?void 0:s.includes)||void 0===a?void 0:a.call(s,"{"))?$(n,h(s),r):Wa(n,e)}}let u="";if(r)for(let s in r){const t=r[s];u+=`@keyframes ${s} `+Va(Object.entries(t).reduce(((s,[t,e])=>s+t+(String(+t)===t?"%":"")+Va(Object.entries(e).reduce(((s,t)=>s+$(...t)),""))),""))}return b+u+Object.entries(n).reduce(((s,t)=>s+$(...t)),"")};const{mode:t,prefix:e,params:r}=s;this._mode=t||"a",this._prefix=e||"eff","c"===this._mode?this._prepareSelector=({b:s,e:t,m:e,mv:r,s:i})=>`.${s}${(t?"__"+t:"")+(e?"_"+e:"")+(e&&r?"_"+r:"")+(i?":"+i:"")}`:this._prepareSelector=({b:s,e:t,m:e,mv:r,s:i})=>`[data-${s}${t?"-"+t:""}${e?'~="'+e+(r?"-"+r:"")+(i?":"+i:"")+'"':""}]`,this._analyzeParams(r)}_parseSelector(s){let t,e,r,i;return s.startsWith("__")?[t,e,r]=s.slice(2).split("_"):[t,e,r]=s.split("_"),r&&([r,i]=r.split(":")),{e:t,m:e,mv:r,s:i}}expandSelector(s,t){const{e:e,m:r,mv:i,s:c}=this._parseSelector(t),a=c&&this._getStateSelector(c);return[this._prepareSelector({b:s,e:e,m:r,mv:i}),this._prepareSelector({b:s,e:e,m:r,mv:i,s:c})+"{"+a]}_getStateSelector(s){const t=s+"_",e=this._compKeys[t]||Aa[t];if(e)return(e.startsWith("&")||e.startsWith("@")?"":"&")+e}}class Xa{constructor(s){if(this._stylesheets={},this._rules={},this._expandedSelectors={},this._styleSheetsArray=[],s)for(let t in s)this.pack(t,s[t])}get(s){return this._stylesheets[s]}getAll(){return this._stylesheets}add(s,t){if(!this._stylesheets[s])return this._stylesheets[s]=t,this._styleSheetsArray.push(t),this.cacheRules(s,t),!0}remove(s){const t=this.get(s);if(!t)return;const e=this._styleSheetsArray.findIndex((s=>s===t));return e>-1&&(this._styleSheetsArray.splice(e,1),delete this._stylesheets[s],delete this._rules[s],delete this._expandedSelectors[s]),!0}removeAll(){return this._styleSheetsArray.splice(0),this._stylesheets={},this._rules={},this._expandedSelectors={},!0}pack(s,t){const e=new CSSStyleSheet;if(e.replaceSync(t),e.cssRules.length)return this.add(s,e),e;console.log(`StyleSheet '${s}' is empty`)}cacheRules(s,t){[...t.cssRules].forEach((t=>{const e=t.cssText.split(" {")[0];e&&(this._rules[s]||(this._rules[s]={}),this._rules[s][e]=t)})),this._expandedSelectors[s]=new Set}getExpandedSelectors(s){return this._expandedSelectors[s]}expandRule(s,t,e){const r=this._rules[s];if(!r)return void console.log(`No stylesheet found with key '${s}'`);const i=r[t];if(!i)return void console.log(`No rule with selector '${t}' found in stylesheet with key '${s}'`);const[c,a]=i.cssText.split("{");if(i.parentStyleSheet){const t=e+"{"+a+"}",c=i.parentStyleSheet.insertRule(t,i.parentStyleSheet.cssRules.length),o=i.parentStyleSheet.cssRules[c],l=e.split("{")[0];return r[l]=o,this._expandedSelectors[s].add(l),!0}}apply(s){s.adoptedStyleSheets=this._styleSheetsArray}}const Ba="style-provider";const La=((...s)=>u(Object.fromEntries(s.map((s=>[s,s])))))(-20,-15,-5,10,90),Ua="In",Ya="Out",Za="Down",Da="Up",Ga="Left",Ha="Right",Ja="zoom",Ma=Ja+Ua,Fa=Ja+Ya,Qa="pulse",so="bounce",to=so+Ua,eo=so+Ya,ro="fade",io=ro+Ua,co=io+Za,ao=io+Da,oo=io+Ga,lo=io+Ha,no=ro+Ya,po=no+Za,_o=no+Da,bo=no+Ga,mo=no+Ha,fo="flip",ho=fo+Ua+"x",$o=fo+Ua+"y",uo=fo+Ya+"x",vo=fo+Ya+"y",go="slide",xo=go+Ua,wo=xo+Za,yo=xo+Da,zo=xo+Ha,So=xo+Ga,jo=go+Ya,ko=jo+Za,Oo=jo+Da,qo=jo+Ha,Eo=jo+Ga,Ao="heartBeat",No="perspective"+r("25rem");var Vo,Ro={kf:{[Ma]:{0:{$o:0,$tf:c(e(.25,.25,.25))},50:{$o:1}},[Fa]:{0:{$o:1},50:{$o:0,$tf:c(e(.25,.25,.25))},to:{$o:0}},[Qa]:{0:{$tf:a(1)},50:{$tf:c(e(1.05,1.05,1.05))},to:{$tf:a(1)}},[Ao]:{0:{$tf:o(1)},15:{$tf:o(1.25)},30:{$tf:o(1)},45:{$tf:o(1.25)},70:{$tf:o(0)}},[to]:{"0, 20%, 40%, 60%, 80%, to":{$atf:"cubic-bezier(.215,.61,.355,1)"},0:{$o:0,$tf:c(e(.25,.25,.25))},20:{$tf:c(e(1.1,1.1,1.1))},40:{$tf:c(e(.9,.9,.9))},60:{$o:1,$tf:c(e(1.05,1.05,1.05))},80:{$tf:c(e(.95,.95,.95))},to:{$o:1,$tf:a(1)}},[eo]:{20:{$tf:c(e(.9,.9,.9))},"50%, 55%":{$o:1,$tf:c(e(1.1,1.1,1.1))},to:{$o:0,$tf:c(e(.3,.3,.3))}},[io]:{0:{$o:0},to:{$o:1}},[co]:{0:{$o:0,$tf:l(0,"100%",0)},to:{$o:1,$tf:n(0)}},[oo]:{0:{$o:0,$tf:l("-100%",0,0)},to:{$o:1,$tf:n(0)}},[lo]:{0:{$o:0,$tf:l("-100%",0,0)},to:{$o:1,$tf:n(0)}},[ao]:{0:{$o:0,$tf:l(0,"100%",0)},to:{$o:1,$tf:n(0)}},[no]:{0:{$o:1},to:{$o:0}},[po]:{0:{$o:1},to:{$o:0,$tf:l(0,"-100%",0)}},[bo]:{0:{$o:1},to:{$o:0,$tf:l("-100%",0,0)}},[mo]:{0:{$o:1},to:{$o:0,$tf:l("100%",0,0)}},[_o]:{0:{$o:1},to:{$o:0,$tf:l(0,"-100%",0)}},[ho]:{0:{$atf:"{ttf.ei}",$o:0,$tf:t(No,p(La[90]))},40:{$atf:"{ttf.ei}",$tf:t(No,p(La[-20]))},60:{$o:1,$tf:t(No,p(La[10]))},80:{$tf:t(No,p(La[-5]))},to:{$tf:No}},[$o]:{0:{$atf:"{ttf.ei}",$o:0,$tf:t(No,_(La[90]))},40:{$atf:"{ttf.ei}",$tf:t(No,_(La[-20]))},60:{$o:1,$tf:t(No,_(La[10]))},80:{$tf:t(No,_(La[-5]))},to:{$tf:No}},[uo]:{0:{$tf:No},30:{$o:1,$tf:t(No,p(La[-20]))},to:{$o:0,$tf:t(No,p(La[90]))}},[vo]:{0:{$tf:No},30:{$o:1,$tf:t(No,_(La[-15]))},to:{$o:0,$tf:t(No,_(La[90]))}},[wo]:{0:{$tf:l(0,"-100%",0),$v:"{v.v}"},to:{$tf:n(0)}},[So]:{0:{$tf:l("-100%",0,0),$v:"{v.v}"},to:{$tf:n(0)}},[zo]:{0:{$tf:l("100%",0,0),$v:"{v.v}"},to:{$tf:n(0)}},[yo]:{0:{$tf:l(0,"100%",0),$v:"{v.v}"},to:{$tf:n(0)}},[ko]:{0:{$tf:n(0)},to:{$tf:l(0,"100%",0),$v:"{v.h}"}},[Eo]:{0:{$tf:n(0)},to:{$tf:l("-100%",0,0),$v:"{v.h}"}},[qo]:{0:{$tf:n(0)},to:{$tf:l("100%",0,0),$v:"{v.h}"}},[Oo]:{0:{$tf:n(0)},to:{$tf:l(0,"-100%",0),$v:"{v.h}"}}},c:(Vo=[Ma,Fa,Qa,Ao,to,eo,io,co,oo,lo,ao,no,po,bo,mo,_o,ho,$o,uo,vo,wo,So,zo,yo,ko,Eo,qo,Oo],{$an:Vo.reduce(((s,t)=>(s[t]=t,s)),{})})},Wo={t:"",k:{},c:{$:{$p:0,$m:0,$bor:"{uni.no}",$bsz:"{box.b}",$ba_:{$bsz:"{box.b}"}},[f(e("a",(s=>s+":link")("a"),(s=>s+":visited")("a"),(s=>s+":hover")("a")))]:{$td:"{uni.no}"},[f("aside,nav,footer,header,section,main")]:{$dis:"{dis.b}"},":host,html":{$lh:1.5},[f("menu,ol,ul")]:{$ls:"{ls.no}"},[f("input,textarea,button,select")]:{$ff:"{uni.inh}",$fsz:"{uni.inh}",$c:"{uni.inh}",$bgc:"transparent"},[f(e(m("input"),b("input"),m("button"),b("button")))]:{$o:"none"}}},Io=Object.freeze({__proto__:null,kf:Ro,reset:Wo});const Po="{_.sz}",Co=`calc(-1 * ${Po})`,Ko=`calc(0.5 * ${Po})`,To=`calc(-0.5 * ${Po})`,Xo="{_.c}";var Bo={_:{sz:{},c:{typ:"c",wrap:!0}},c:{_:{$pos:"{pos.r}",$_cl:"{lig.def}",$_ch:"{hue.def}",$_cc:"{chr.def}",$_ca:1,$_sz:"{sp.m}"},_ssz:"&sp=>{_sz}:{1}",_shp:{r:{$bsh:t(Po,0,Ko,To,Xo)},l:{$bsh:t(Co,0,Ko,To,Xo)},t:{$bsh:t(0,Co,Ko,To,Xo)},b:{$bsh:t(0,Po,Ko,To,Xo)},x:{$bsh:e(t(Po,0,Ko,To,Xo),t(Co,0,Ko,To,Xo))},y:{$bsh:e(t(0,Co,Ko,To,Xo),t(0,Po,Ko,To,Xo))},f:{$bsh:t(0,0,Po,Ko,Xo)},tr:{$bsh:t(Po,Co,Po,To,Xo)},tl:{$bsh:t(Co,Co,Po,To,Xo)},br:{$bsh:t(Po,Po,Po,To,Xo)},bl:{$bsh:t(Co,Po,Po,To,Xo)}},_bsz:"&box[c,b]=>{bsz}:{1}"}};const Lo=["sz","perc"],Uo=["cqw","cqmin","cqmax"],Yo=["vw","vmin","vmax"],Zo=["cqh","cqmin","cqmax"],Do=["vh","vmin","vmax"];var Go={c:{_w:[...Lo.map((s=>`&${s}=>{w}:{1}`)),...Uo.map((s=>`&${s}=>{0}${s}|{w}:{1}`)),...Yo.map((s=>`&${s}=>{0}${s}|{w}:{1}`))],_maxw:[...Lo.map((s=>`&${s}=>{maxw}:{1}`)),...Uo.map((s=>`&${s}=>{0}${s}|{maxw}:{1}`)),...Yo.map((s=>`&${s}=>{0}${s}|{maxw}:{1}`))],_minw:[...Lo.map((s=>`&${s}=>{minw}:{1}`)),...Uo.map((s=>`&${s}=>{0}${s}|{minw}:{1}`)),...Yo.map((s=>`&${s}=>{0}${s}|{minw}:{1}`))],_h:[...Lo.map((s=>`&${s}=>{h}:{1}`)),...Zo.map((s=>`&${s}=>{h}:{1}`)),...Do.map((s=>`&${s}=>{0}${s}|{h}:{1}`))],_maxh:[...Lo.map((s=>`&${s}=>{maxh}:{1}`)),...Zo.map((s=>`&${s}=>{0}${s}|{maxh}:{1}`)),...Do.map((s=>`&${s}=>{0}${s}|{maxh}:{1}`))],_minh:[...Lo.map((s=>`&${s}=>{minh}:{1}`)),...Zo.map((s=>`&${s}=>{0}${s}|{minh}:{1}`)),...Do.map((s=>`&${s}=>{0}${s}|{minh}:{1}`))],_ar:"&rat=>{ar}:{1}"}};const Ho=["sz","perc"],Jo=["cqb","cqmin","cqmax"],Mo=["vw","vh","vmin","vmax"],Fo=["cqi","cqmin","cqmax"];var Qo,sl={c:{_b:[...Ho.map((s=>`&${s}=>{b}:{1}`)),...Jo.map((s=>`&${s}=>{0}${s}|{b}:{1}`)),...Mo.map((s=>`&${s}=>{0}${s}|{b}:{1}`))],_maxb:[...Ho.map((s=>`&${s}=>{maxb}:{1}`)),...Jo.map((s=>`&${s}=>{0}${s}|{maxb}:{1}`)),...Mo.map((s=>`&${s}=>{0}${s}|{maxb}:{1}`))],_minb:[...Ho.map((s=>`&${s}=>{minb}:{1}`)),...Jo.map((s=>`&${s}=>{0}${s}|{minb}:{1}`)),...Mo.map((s=>`&${s}=>{0}${s}|{minb}:{1}`))],_i:[...Ho.map((s=>`&${s}=>{i}:{1}`)),...Fo.map((s=>`&${s}=>{0}${s}|{i}:{1}`)),...Mo.map((s=>`&${s}=>{0}${s}|{i}:{1}`))],_maxi:[...Ho.map((s=>`&${s}=>{maxi}:{1}`)),...Fo.map((s=>`&${s}=>{0}${s}|{maxi}:{1}`)),...Mo.map((s=>`&${s}=>{0}${s}|{maxi}:{1}`))],_mini:[...Ho.map((s=>`&${s}=>{mini}:{1}`)),...Fo.map((s=>`&${s}=>{0}${s}|{mini}:{1}`)),...Mo.map((s=>`&${s}=>{0}${s}|{mini}:{1}`))],_ar:"&rat=>{ar}:{1}"}},tl={_:{scx:{ini:"0"},scy:{ini:"0"},skx:{ini:"0"},sky:{ini:"0"},x:{ini:"0"},y:{ini:"0"},z:{ini:"0"}},c:{_:{$sc:"{_scx} {_scy}",$tf:"skew({_skx},{_sky})",$tr:"{_x} {_y} {_z}"},_x:"&tr=>{_x}:{1}",_y:"&tr=>{_y}:{1}",_z:"&tr=>{_z}:{1}",_skx:"&sk=>{_skx}:{1}",_sky:"&sk=>{_sky}:{1}",_scx:"&sc=>{_scx}:{1}",_scy:"&sc=>{_scy}:{1}",_sc:"&sc=>{sc}:{1}",_rx:"&rot=>{rot}:X {1}",_ry:"&rot=>{rot}:Y {1}",_rz:"&rot=>{rot}:Z {1}",_zm:"&zm=>{zm}:{1}",_per:"&per=>{per}:{1}",_pero:"&posv=>{pero}:{1}",_b:"&box[c,b,f,s,v]=>{tfb}:{1}",_o:"&pos=>{tfo}:{1}",_s:{p:"{tfs}:preserve-3",f:"{tfs}:flat"}}},el=Object.freeze({__proto__:null,a:{c:{_dur:"&time=>{adur}:{1}",_del:"&time=>{adel}:{1}",_ps:"&aps=>{aps}:{1}",_fm:"&afm=>{afm}:{1}",_dir:"&adir=>{adir}:{1}",_ic:"&ic=>{aic}:{1}",_tf:"&ttf=>{atf}:{1}"}},ac:{_:{cr:{typ:"c",all:!0},ac:{typ:"c",all:!0}},c:{_:{$_crc:"{chr.xs}",$_crh:"{hue.def}",$_crl:"{lig.c}",$_cra:1,$_acc:"{chr.def}",$_acl:"{lig.c}",$_ach:"{hue.def}",$_aca:1},_ac_:{$_acc:"{_.ac}"},_cc_:{$_ctc:"{_.cr}"}}},ag:{c:{_app:"&app=>{app}:{1}",_wc:"&wc=>{wc}:{1}"}},b:{_:{c:{typ:"c",all:!0}},c:{_:{$bw:0,$br:0,$bs:"{ls.s}",$bc:"{_.c}"},_w:"&th=>{bw}:{1}",_xw:"&th=>{blw}:{1};{brw}:{1}",_yw:"&th=>{btw}:{1};{bbw}:{1}",_rw:"&th=>{brw}:{1}",_lw:"&th=>{blw}:{1}",_tw:"&th=>{btw}:{1}",_bw:"&th=>{bbw}:{1}",_r:"&rad=>{br}:{1}",_lr:"&rad=>{btlr}:{1};{bblr}:{1}",_rr:"&rad=>{btrr}:{1};{bbrr}:{1}",_tr:"&rad=>{btlr}:{1};{btrr}:{1}",_br:"&rad=>{bblr}:{1};{bbrr}:{1}",_tlr:"&rad=>{btlr}:{1}",_trr:"&rad=>{btrr}:{1}",_blr:"&rad=>{bblr}:{1}",_brr:"&rad=>{bbrr}:{1}",_s:"&lst=>{bs}:{1}"}},be:{c:{_iw:"&th=>{biw}:{1}",_blw:"&th=>{bblw}:{1}",_bew:"&th=>{bbew}:{1}",_bsw:"&th=>{bbsw}:{1}",_iew:"&th=>{biew}:{1}",_isw:"&th=>{bisw}:{1}",_bsr:"&rad=>{bser}:{1};{bssr}:{1}",_isr:"&rad=>{besr}:{1};{bssr}:{1}",_ber:"&rad=>{besr}:{1};{beer}:{1}",_ier:"&rad=>{bser}:{1};{beer}:{1}",_esr:"&rad=>{besr}:{1}",_ssr:"&rad=>{bssr}:{1}",_ser:"&rad=>{bser}:{1}",_eer:"&rad=>{beer}:{1}"}},bg:{c:{_bm:"&bgbm=>{bgbm}:{1}",_a:"&bga=>{bga}:{1}",_cl:"&box[c,p,b,t]=>{bgcl}:{1}",_o:"&box[c,p,b]=>{bgo}:{1}",_p:"&posv=>{bgp}:{1}",_px:"&posv[r,l,c]=>{bgpx}:{1}",_py:"&posv[t,b,c]=>{bgpy}:{1}",_r:"&rep=>{bgr}:{1}",_sz:"&csz[cv,cn,a]=>{bgsz}:{1}"}},bx:Bo,c:{_:{c:{typ:"c",all:!0},b:{typ:"c",all:!0},s:{typ:"c",all:!0},f:{typ:"c",all:!0}},c:{_:{$_cc:"{chr.xs}",$_ch:"{hue.def}",$_cl:"{lig.c}",$_ca:1,$_bc:"{chr.xs}",$_bl:"{lig.n}",$_bh:"{hue.def}",$_ba:1,$_fc:"{chr.xs}",$_fh:"{hue.def}",$_fl:"{lig.c}",$_fa:1,$_sc:"{chr.xs}",$_sl:"{lig.n}",$_sh:"{hue.def}",$_sa:1},_b_:{$bgc:"{_.b}"},_c_:{$c:"{_.c}"},_f_:{$fi:"{_.f}"},_s_:{$st:"{_.s}"}}},col:{_:{c:{typ:"c",wrap:!0}},c:{_:{$_cc:"{c.def}",$_ch:"{h.def}",$_cl:"{l.def}",$crc:"{_.c}"},_cf:"&cf=>{cf}:{1}",_cg:"&sp=>{cg}:{1}",_crs:"&lst=>{crs}:{1}",_crw:"&th=>{crw}:{1}",_cs:"&cs=>{cs}:{1}",_cw:"&sz=>{cw}:{1}",_cc:"&sp=>{cc}:{1}"}},f:{c:{_ls:"&ls=>{ls}:{1}",_lh:"&lh=>{lh}:{1}",_lb:"&lb=>{lb}:{1}",_st:"&fst=>{fst}:{1}",_w:"&fwg=>{fwg}:{1}",_f:"&ff=>{ff}:{1}",_sz:"&fsz=>{fsz}:{1}"}},fc:{c:{_:{$dis:"{dis.f}"},_dis:"&dis[if,f]=>{dis}:{1}",_dir:"&fd=>{fd}:{1}",_w:"&fw=>{fw}:{1}",_jc:"&ali[s,e,c,st,sb,sa,se,fs,fe]=>{jc}:{1}",_ai:"&ali[c,st,b,fs,fe]=>{ai}:{1}",_ac:"&ali[c,st,sb,sa,se,fs,fe]=>{ac}:{1}"}},fi:{c:{_as:"&ali[s,e,c,st,fs,fe]=>{as}:{1}",_fg:"&fg=>{fg}:{1}",_fs:"&fs=>{fs}:{1}",_fb:"&fb=>{fb}:{1}",_o:"&fo=>{ord}:{1}"}},gc:{c:{_:{$dis:"{dis.g}"},_dis:"&dis[g,ig]=>{dis}:{1}",_jc:"&ali[s,e,c,st,sb,sa,se]=>{jc}:{1}",_ji:"&ali[s,e,c,st]=>{ji}:{1}",_ai:"&ali[s,e,c,st,b]=>{ai}:{1}",_ac:"&ali[sb,se,sa,c,st]=>{ac}:{1}",_gtr:">r=>{gtr}:{1}?coef=>{gtr}:repeat({1},1fr)",_gtc:">c=>{gtc}:{1}?coef=>{gtc}:repeat({1},1fr)",_rg:"&sp=>{rg}:{1}",_cg:"&sp=>{cg}:{1}"}},gi:{c:{_as:"&ali[s,e,c,st]=>{as}:{1}",_js:"&ali[s,e,c,st]=>{js}:{1}",_ra:"&ra=>{gre}:{1}",_ca:"&ca=>{gce}:{1}",_ro:"&ro=>{grs}:{1}",_co:"&co=>{gcs}:{1}"}},i:{c:{_t:"&ins=>{t}:{1}",_b:"&ins=>{b}:{1}",_l:"&ins=>{l}:{1}",_r:"&ins=>{r}:{1}",_x:"&ins=>{r}:{1};{l}:{1}",_y:"&ins=>{t}:{1};{b}:{1}",_ib:"&ins=>{ib}:{1}",_ibe:"&ins=>{ibe}:{1}",_ibs:"&ins=>{ibs}:{1}",_ii:"&ins=>{ii}:{1}",_iie:"&ins=>{iie}:{1}",_iis:"&ins=>{iis}:{1}"}},ind:{c:{_m:"&sp=>{m}:{1}",_mx:"&sp=>{ml}:{1};{mr}:{1}",_my:"&sp=>{mt}:{1};{mb}:{1}",_mt:"&sp=>{mt}:{1}",_ml:"&sp=>{ml}:{1}",_mr:"&sp=>{mr}:{1}",_mb:"&sp=>{mb}:{1}",_p:"&sp=>{p}:{1}",_px:"&sp=>{pl}:{1};{pr}:{1}",_py:"&sp=>{pt}:{1};{pb}:{1}",_pt:"&sp=>{pt}:{1}",_pl:"&sp=>{pl}:{1}",_pr:"&sp=>{pr}:{1}",_pb:"&sp=>{pb}:{1}"}},mk:{c:{_clip:"&box[c,p,b,f,s,v]=>{mcl}:{1}",_comp:"&mcm=>{mcm}:{1}",_m:"&mm=>{mm}:{1}",_o:"&box[c,p,b,f,s,v]=>{mo}:{1}",_p:"&posv=>{mp}:{1}",_r:"&rep=>{mre}:{1}",_sz:"&csz[cv,cn,a]=>{msz}:{1}",_t:"&mtp=>{mtp}:{1}"}},o:{_:{oc:{typ:"c",all:!0}},c:{_:{$oc:"{_.oc}",$ow:0,$os:"{ls.s}"},_oo:"&sp=>{oo}:{1}",_os:"&lst=>{os}:{1}",_ow:"&th=>{ow}:{1}"}},obj:{c:{_f:"&csz[cv,cn,a]=>{obf}:{1}",_p:"&posv=>{obp}:{1}"}},sc:{_:{st:{}},c:{_:{">*":{$sst:"{_.st}"}},_b:"&sb=>{sb}:{1}",_sa:"&ali[s,e,c,no]=>{ssa}:{1}",_ss:"&sss=>{sss}:{1}",_st:"&sst=>{st}:{1}",_m:"&sp=>{sm}:{1}",_mx:"&sp=>{sml}:{1};{smr}:{1}",_my:"&sp=>{smt}:{1};{smb}:{1}",_mt:"&sp=>{smt}:{1}",_ml:"&sp=>{sml}:{1}",_mr:"&sp=>{smr}:{1}",_mb:"&sp=>{smb}:{1}",_p:"&sp=>{sp}:{1}",_px:"&sp=>{spl}:{1};{spr}:{1}",_py:"&sp=>{spt}:{1};{spb}:{1}",_pt:"&sp=>{spt}:{1}",_pl:"&sp=>{spl}:{1}",_pr:"&sp=>{spr}:{1}",_pb:"&sp=>{spb}:{1}"}},sce:{c:{_mbl:"&sp=>{smbl}:{1}",_mbe:"&sp=>{smbe}:{1}",_mbs:"&sp=>{smbs}:{1}",_mi:"&sp=>{smi}:{1}",_mie:"&sp=>{smie}:{1}",_mis:"&sp=>{smis}:{1}",_pbl:"&sp=>{spbl}:{1}",_pbe:"&sp=>{spbe}:{1}",_pbs:"&sp=>{spbs}:{1}",_pi:"&sp=>{spi}:{1}",_pie:"&sp=>{spie}:{1}",_pis:"&sp=>{spis}:{1}"}},sz:Go,sze:sl,t:{c:{_:{$tdur:"{time.s}",$tdel:"{time.no}"},_tdur:"&time=>{tdur}:{1}",_tdel:"&time=>{tdel}:{1}",_tb:"&tb=>{tb}:{1}",_tp:"&tp=>{tp}:{1}",_ttf:"&ttf=>{ttf}:{1}"}},tf:tl,tx:{c:{_tt:"&tt=>{tt}:{1}",_td:"&td=>{td}:{1}",_ta:"&ta=>{ta}:{1}",_to:"&ov[c,e]=>{to}:{1}",_ws:"&ws=>{ws}:{1}",_wb:"&wb=>{wb}:{1}",_wm:"&wm=>{wm}:{1}",_hyp:"&hyp=>{hyp}:{1}",_tor:"&tor=>{tor}:{1}"}},u:{c:{_pe:"&pe=>{pe}:{1}",_us:"&us=>{us}:{1}",_toa:"&toa=>{toa}:{1}",_res:"&res=>{res}:{1}",_cur:"&cur=>{cur}:{1}"}},v:{c:{_pos:"&pos=>{pos}:{1}",_ov:"&ov=>{ov}:{1}",_ovx:"&ov=>{ovx}:{1}",_ovy:"&ov=>{ovy}:{1}",_v:"&v[v,h,c]=>{v}:{1}",_o:"&o=>{o}:{1}",_zi:"&zi=>{zi}:{1}",_cv:"&v[v,h,a]=>{v}:{1}"}}});Qo={config:{styles:Object.assign(Object.assign({},el),Io)}},customElements.define((null==Qo?void 0:Qo.name)||Ba,class extends HTMLElement{get settingsId(){return this.getAttribute("settingsid")||"effcss"}constructor(){super(),this.getSettings=()=>{var s;const t=null===(s=null===document||void 0===document?void 0:document.getElementById(this.settingsId))||void 0===s?void 0:s.textContent;return t?JSON.parse(t):(null==Qo?void 0:Qo.config)||{}}}connectedCallback(){const s=this.getSettings(),{params:t,styles:e,ext:r}=s;this.processor=new Ta({prefix:this.getAttribute("prefix")||void 0,mode:this.getAttribute("mode")||void 0,params:t}),this.manager=new Xa({init:`${Ba} {display: contents;}`+this.processor.baseStyles}),this.processStyles(e,r),this.manager.apply(document)}compileStyleSheet(s,t){var e,r;const i=null===(e=this.processor)||void 0===e?void 0:e.compile(s,t);if(i)return null===(r=this.manager)||void 0===r?void 0:r.pack(s,i)}expandStyleSheet(s,t){var e;const r=null===(e=this.manager)||void 0===e?void 0:e.getExpandedSelectors(s);if(this.processor&&r){const e=new Set(t).difference(r),i=e.size;return i&&this.processor&&e.keys().forEach((t=>{var e;const[r,i]=this.processor.expandSelector(s,t);null===(e=this.manager)||void 0===e||e.expandRule(s,r,i)})),i}}processStyles(s,t){if(s)for(let t in s){const e=s[t];this.compileStyleSheet(t,e)}if(t)for(let s in t){const e=t[s];this.expandStyleSheet(s,e)}}});
|
|
1
|
+
"function"==typeof SuppressedError&&SuppressedError;const s=(...s)=>s.join("-"),t=(...s)=>s.join(" "),e=(...s)=>s.join(","),r=s=>`(${s})`,i=(s,t)=>((s,t)=>Object.fromEntries(Object.entries(s).map((s=>t(s)))))(s,(s=>[s[0],t(s[1])])),c=s=>"scale3d"+r(s),o=s=>"scaleX"+r(s),a=s=>"scale"+r(s),l=(s,t,i)=>"translate3d"+r(e(s,t,i)),n=s=>"translateZ"+r(s),p=s=>"rotateX"+r(s),_=s=>"rotateY"+r(s),b=s=>s+":active",m=s=>s+":focus",f=s=>":where"+r(s),h=s=>s&&i(s,(s=>s+"rem")),d=s=>s&&i(s,(s=>s+"ms")),$=s=>s&&i(s,(s=>s+"px")),u=s=>s&&i(s,(s=>s+"deg")),v=s=>s&&i(s,(s=>s+"vw")),g=s=>s&&i(s,(s=>s+"vh")),x=s=>s&&i(s,(s=>s+"vmin")),w=s=>s&&i(s,(s=>s+"vmax")),y=s=>s&&i(s,(s=>s+"cqb")),z=s=>s&&i(s,(s=>s+"cqi")),S=s=>s&&i(s,(s=>s+"cqmin")),j=s=>s&&i(s,(s=>s+"cqmax")),k=s=>s&&i(s,(s=>"span "+s)),O="x",q="y",E="horizontal",A="vertical",N="text",R="font",V="column",W="max",I="min",P="content",C=P+"s",K="items",T="self",X="inline",B="block",L="size",U="radius",Y="direction",Z="outline",D="style",G="end",H="start",J="center",M="word",F="line",Q="break",ss="wrap",ts="nowarp",es="template",rs="rule",is="object",cs="top",os="left",as="bottom",ls="right",ns="width",ps="color",_s="overflow",bs="align",ms="type",fs="transform",hs="all",ds="height",$s="normal",us="opacity",vs="visibility",gs="scale",xs="box",ws="border",ys="position",zs="none",Ss="auto",js="fill",ks="stroke",Os="reverse",qs="space",Es="fixed",As="origin",Ns="alpha",Rs="luminance",Vs="clip",Ws="zoom",Is="scroll",Ps="padding",Cs="margin",Ks="both",Ts="mode",Xs="repeat",Bs="light",Ls="linear",Us="hidden",Ys=s(ws,as),Zs=s(ws,os),Ds=s(ws,ls),Gs=s(ws,cs),Hs=s(ws,B),Js=s(ws,X),Ms=s(Hs,H),Fs=s(Hs,G),Qs=s(Js,H),st=s(Js,G),tt=s(ws,ns),et=s(Ys,ns),rt=s(Zs,ns),it=s(Ds,ns),ct=s(Gs,ns),ot=s(Hs,ns),at=s(Js,ns),lt=s(Ms,ns),nt=s(Fs,ns),pt=s(Qs,ns),_t=s(st,ns),bt=s(ws,U),mt=s(ws,as,os,U),ft=s(ws,as,ls,U),ht=s(ws,cs,os,U),dt=s(ws,cs,ls,U),$t=s(ws,H,G,U),ut=s(ws,H,H,U),vt=s(ws,G,G,U),gt=s(ws,G,H,U),xt=s(ws,ps),wt=s(Zs,ps),yt=s(Ds,ps),zt=s(Gs,ps),St=s(Ys,ps),jt=s(Hs,ps),kt=s(Js,ps),Ot=s(Ms,ps),qt=s(Fs,ps),Et=s(Qs,ps),At=s(st,ps),Nt=s(ws,D),Rt=s(Zs,D),Vt=s(Ds,D),Wt=s(Gs,D),It=s(Ys,D),Pt=s(Hs,D),Ct=s(Js,D),Kt=s(Ms,D),Tt=s(Fs,D),Xt=s(Qs,D),Bt=s(st,D),Lt=s(Z,ps),Ut=s(Z,ns),Yt=s(Z,D),Zt=s(Z,"offset"),Dt=s(_s,O),Gt=s(_s,q),Ht=s(is,"fit"),Jt=s(is,ys),Mt=s(gs,"down"),Ft=s(xs,"shadow"),Qt=s(Ps,xs),se=s(ws,xs),te=s(P,xs),ee=s(js,xs),re=s(ks,xs),ie=s("view",xs),ce=s("no",Vs),oe=s(Xs,O),ae=s(Xs,q),le=s("no",Xs),ne=s(Ps,os),pe=s(Ps,cs),_e=s(Ps,ls),be=s(Ps,as),me=s(Cs,os),fe=s(Cs,cs),he=s(Cs,ls),de=s(Cs,as),$e="grid",ue="row",ve="justify",ge="flex",xe=s(X,ge),we=s(ge,"basis"),ye=s(ge,"grow"),ze=s(ge,"shrink"),Se=s(ge,Y),je=s(ge,ss),ke=s(ve,P),Oe=s(ve,K),qe=s(bs,K),Ee=s(bs,P),Ae=s(bs,T),Ne=s($e,es,ue+"s"),Re=s($e,es,V+"s"),Ve=s(ue,"gap"),We=s(V,"gap"),Ie=s(ve,T),Pe=s($e,ue,G),Ce=s($e,ue,H),Ke=s($e,V,G),Te=s($e,V,H),Xe=s(V,"count"),Be=s(V,js),Le=s(V,rs,ps),Ue=s(V,rs,D),Ye=s(V,rs,ns),Ze=s(V,"span"),De=s(V,ns),Ge=s(ue,Os),He=s(V,Os),Je=s(ss,Os),Me=s(ge,G),Fe=s(ge,H),Qe=s(qs,"between"),sr=s(qs,"around"),tr=s(qs,"evenly"),er=s(X,$e),rr="mask",ir=s(rr,Vs),cr=s(rr,"composite"),or=s(rr,Ts),ar=s(rr,As),lr=s(rr,ys),nr=s(rr,Xs),pr=s(rr,L),_r=s(rr,ms),br="timing-function",mr="delay",fr="duration",hr="animation",dr=s(hr,"name"),$r=s(hr,br),ur=s(hr,Y),vr=s(hr,"iteration-count"),gr=s(hr,fr),xr=s(hr,mr),wr=hr+"-play-state",yr=s(hr,js,Ts),zr="transition",Sr=zr+"-behavior",jr=zr+"-property",kr=s(zr,br),Or=s(zr,fr),qr=s(zr,mr),Er="alternate",Ar=s(Er,Os),Nr="-out",Rr="ease",Vr=Rr+"-in",Wr=Vr+Nr,Ir=Rr+Nr,Pr="step",Cr=s(Pr,H),Kr=s(Pr,G),Tr="translate",Xr="rotate",Br="perspective",Lr=s(Br,As),Ur=t(os,cs),Yr=t(ls,cs),Zr=t(os,as),Dr=t(ls,as),Gr="inset",Hr=s(fs,xs),Jr=s(fs,As),Mr=s(fs,D),Fr=s(Gr,B),Qr=s(Gr,B,G),si=s(Gr,B,H),ti=s(Gr,X),ei=s(Gr,X,G),ri=s(Gr,X,H),ii=s("fit",P),ci=s(I,P),oi=s(W,P),ai=s(xs,"sizing"),li=s(W,ns),ni=s(I,ns),pi=s(W,ds),_i=s(I,ds),bi=s(B,L),mi=s(W,bi),fi=s(I,bi),hi=s(X,L),di=s(W,hi),$i=s(I,hi),ui="snap",vi=s(Is,"behavior"),gi=s(Is,Cs),xi=s(Is,Cs,cs),wi=s(Is,Cs,as),yi=s(Is,Cs,os),zi=s(Is,Cs,ls),Si=s(Is,Cs,B),ji=s(Is,Cs,B,G),ki=s(Is,Cs,B,H),Oi=s(Is,Cs,X),qi=s(Is,Cs,X,G),Ei=s(Is,Cs,X,H),Ai=s(Is,Ps),Ni=s(Is,Ps,cs),Ri=s(Is,Ps,as),Vi=s(Is,Ps,os),Wi=s(Is,Ps,ls),Ii=s(Is,Ps,B),Pi=s(Is,Ps,B,G),Ci=s(Is,Ps,B,H),Ki=s(Is,Ps,X),Ti=s(Is,Ps,X,G),Xi=s(Is,Ps,X,H),Bi=s(Is,ui,bs),Li=s(Is,ui,"stop"),Ui=s(Is,ui,ms),Yi="mandatory",Zi=t(O,Yi),Di=t(q,Yi),Gi=t(B,Yi),Hi=t(X,Yi),Ji=t(Ks,Yi),Mi="proximity",Fi=t(O,Mi),Qi=t(q,Mi),sc=t(B,Mi),tc=t(X,Mi),ec=t(Ks,Mi),rc=s(N,"decoration"),ic=s(rc,ps),cc=s(N,fs),oc=s(N,bs),ac=s(N,_s),lc=s(N,"orientation"),nc=s(M,Q),pc=s(R,L),_c=R+"-weight",bc=R+"-family",mc=s(R,D),fc=s("writing",Ts),hc=s(F,ds),dc=s(F,Q),$c=F+"-through",uc="over"+F,vc="under"+F,gc="pre",xc=s(gc,F),wc=s(gc,ss),yc=Q+"-spaces",zc=s(Q,hs),Sc=s(Q,M),jc=E+"-tb",kc=A+"-lr",Oc=A+"-rl",qc="keep-"+hs,Ec="pointer",Ac="pan",Nc=s(Ac,O),Rc=s(Ac,os),Vc=s(Ac,ls),Wc=s(Ac,q),Ic=s(Ac,"up"),Pc=s(Ac,"down"),Cc=s("pinch",Ws),Kc=s(A,N),Tc="grab",Xc=Tc+"bing",Bc="resize",Lc="col-"+Bc,Uc="row-"+Bc,Yc="n-"+Bc,Zc="e-"+Bc,Dc="s-"+Bc,Gc="w-"+Bc,Hc="ne-"+Bc,Jc="ew-"+Bc,Mc="nw-"+Bc,Fc="se-"+Bc,Qc="sw-"+Bc,so="ns-"+Bc,to="nesw-"+Bc,eo="nwse-"+Bc,ro=s(Ws,"in"),io=s(Ws,"out"),co=s(Ec,"events"),oo=s(Is,ys),ao=s("caret",ps),lo=s("accent",ps),no="filter",po="backdrop-"+no,_o="background",bo=s(_o,ps),mo=s(_o,Vs),fo=s(_o,As),ho=s(_o,ys),$o=s(_o,ys,O),uo=s(_o,ys,q),vo=s(_o,Xs),go=s(_o,L),xo=s(_o,"blend",Ts),wo=s(_o,"attachment"),yo="gradient",zo=s(Ls,yo);s("radial",yo),s("conic",yo);const So=s(P,vs);s(ks,ns),s(js,rs);const jo=s(ps,"dodge"),ko=s(ps,"burn"),Oo=s("hard",Bs),qo=s("soft",Bs);s(ps,"mix");const Eo="revert",Ao={uni:{ini:"initial",inh:"inherit",u:"unset",r:Eo,rl:s(Eo,"layer"),a:Ss,no:zs},ali:{s:H,e:G,c:J,st:"stretch",sb:Qe,sa:sr,se:tr,b:"baseline",fs:Fe,fe:Me,no:zs},dis:{g:$e,ig:er,f:ge,if:xe},fd:{r:ue,rr:Ge,c:V,cr:He},fw:{w:ss,nw:ts,wr:Je},rep:{rx:oe,ry:ae,r:Xs,s:qs,ro:"round",nr:le},ttf:{l:Ls,e:Rr,ei:Vr,eo:Ir,eio:Wr,ss:Cr,se:Kr},ws:{n:$s,nw:ts,p:gc,pl:xc,pw:wc,bs:yc},wb:{n:$s,ba:zc,ka:qc,bw:Sc},wm:{htb:jc,vlr:kc,vrl:Oc},hyp:{no:zs,m:"manual",a:Ss},tt:{l:"lowercase",u:"uppercase",c:"capitalize"},td:{lt:$c,o:uc,u:vc},tor:{m:"mixed",u:"upright",sr:"sideways-right",s:"sideways",ugo:"use-glyph-orientation"},ta:{l:os,c:J,j:ve,r:ls,s:H,e:G},tp:{all:hs,col:e(ps,bo,xt,ic),icon:e(js,ks),filter:e(no,po),ind:e(Ps,Cs),sz:e(ns,li,ni,ds,pi,_i),esz:e(fi,bi,mi,$i,hi,di),o:us,b:ws,f:ge,g:$e,pos:e(ys,os,cs,as,ls),tf:e(fs,Tr,gs,Xr,"skew",Br)},lb:{a:Ss,any:"anywhere",n:$s,l:"loose",s:"strict"},ov:{h:Us,s:Is,a:Ss,c:Vs,e:"ellipsis"},v:{h:Us,v:"visible",c:"collapse",a:Ss},wc:{a:Ss,sp:oo,c:C,tf:fs,o:us,i:Gr,tfi:fs+","+Gr},afm:{no:zs,f:"forwards",b:"backwards",both:Ks},adir:{r:Os,a:Er,ar:Ar},aps:{r:"running",p:"paused"},tb:{ad:"allow-discrete",n:$s},app:{n:zs,a:Ss},pe:{a:Ss,no:zs,all:hs,f:js,s:ks},cur:{h:"help",a:Ss,p:Ec,cm:"context-menu",pr:"progress",w:"wait",cell:"cell",crh:"crosshair",t:N,vt:Kc,cp:"copy",m:"move",g:Tc,gng:Xc,cr:Lc,rr:Uc,nr:Yc,er:Zc,sr:Dc,wr:Gc,ner:Hc,ewr:Jc,nwr:Mc,ser:Fc,swr:Qc,nsr:so,neswr:to,nwser:eo,zi:ro,zo:io},res:{n:zs,v:A,h:E,b:Ks},toa:{a:Ss,no:zs,px:Nc,pl:Rc,pr:Vc,py:Wc,pu:Ic,pd:Pc,pz:Cc,m:"manipulation"},us:{n:zs,t:N,all:hs,a:Ss},sb:{a:Ss,s:"smooth"},sss:{n:$s,a:"always"},sst:{n:zs,x:O,y:q,b:B,i:X,both:Ks,xm:Zi,ym:Di,bm:Gi,im:Hi,bothm:Ji,xp:Fi,yp:Qi,bp:sc,ip:tc,bothp:ec},fst:{i:"italic",n:$s,o:"oblique"},pos:{r:"relative",a:"absolute",f:Es,s:"static"},posv:{b:as,t:cs,c:J,l:os,r:ls,lt:Ur,rt:Yr,lb:Zr,rb:Dr},csz:{cv:"cover",cn:"contain",a:Ss,f:js,sd:Mt},cf:{a:Ss,b:"balance"},cs:{no:zs,all:hs},box:{c:te,p:Qt,b:se,f:ee,s:re,v:ie,nc:ce,t:N},mcm:{a:"add",s:"subtract",i:"intersect",e:"exclude"},mtp:{a:Ns,l:Rs},mm:{a:Ns,l:Rs,m:"match-source"},bgbm:{n:$s,m:"multiply",scr:"screen",o:"overlay",d:"darken",l:Bs+"en",dif:"difference",exc:"exclusion",h:"hue",sat:"saturation",c:ps,lum:"luminosity",cd:jo,cb:ko,hl:Oo,sl:qo},bga:{s:Is,f:Es,l:"local"},ls:{no:zs,dt:"dotted",i:Gr,h:Us,ds:"dashed",s:"solid",db:"double",o:"outset",r:"ridge",g:"groove"},usz:{min:ci,max:oi,fit:ii,no:0,a:Ss}},No={a:hr,an:dr,adur:gr,adel:xr,aps:wr,afm:yr,adir:ur,aic:vr,atf:$r,trn:zr,tdur:Or,tdel:qr,tb:Sr,tp:jr,ttf:kr,bor:ws,bw:tt,br:bt,bs:Nt,bls:Rt,brs:Vt,bts:Wt,bbs:It,bbls:Pt,bis:Ct,bbss:Kt,bbes:Tt,biss:Xt,bies:Bt,brw:it,blw:rt,btw:ct,bbw:et,btlr:ht,btrr:dt,bbrr:ft,bblr:mt,biw:at,bblw:ot,bbew:nt,bbsw:lt,bisw:pt,biew:_t,besr:gt,beer:vt,bssr:ut,bser:$t,bc:xt,blc:wt,brc:yt,btc:zt,bbc:St,bblc:jt,bic:kt,bbsc:Ot,bbec:qt,bisc:Et,biec:At,bgc:bo,c:ps,acc:lo,ctc:ao,st:ks,fi:js,flt:no,bf:po,g:$e,f:ge,dis:"display",jc:ke,ji:Oe,ai:qe,ac:Ee,gtr:Ne,gtc:Re,rg:Ve,cg:We,as:Ae,js:Ie,gre:Pe,grs:Ce,gce:Ke,gcs:Te,fd:Se,fw:je,fs:ze,fg:ye,fb:we,ord:"order",m:Cs,ml:me,mr:he,mt:fe,mb:de,p:Ps,pl:ne,pr:_e,pt:pe,pb:be,oc:Lt,ow:Ut,os:Yt,oo:Zt,l:os,r:ls,t:cs,b:as,ins:Gr,ib:Fr,ibe:Qr,ibs:si,ii:ti,iie:ei,iis:ri,wc:"will-change",app:"appearance",pe:co,cur:"cursor",toa:"touch-action",us:"user-select",res:Bc,sb:vi,ssa:Bi,sss:Li,sst:Ui,sm:gi,sml:yi,smr:zi,smt:xi,smb:wi,sp:Ai,spl:Vi,spr:Wi,spt:Ni,spb:Ri,smbl:Si,smbe:ji,smbs:ki,smi:Oi,smie:qi,smis:Ei,spbl:Ii,spbe:Pi,spbs:Ci,spi:Ki,spie:Ti,spis:Xi,ar:"aspect-ratio",w:ns,maxw:li,minw:ni,h:ds,minh:_i,maxh:pi,bl:bi,maxb:mi,minb:fi,i:hi,mini:$i,maxi:di,per:Br,pero:Lr,rot:Xr,sc:gs,tf:fs,tfb:Hr,tfo:Jr,tfs:Mr,tr:Tr,z:Ws,lts:"letter-spacing",lh:hc,lb:dc,fst:mc,ff:bc,fwg:_c,fsz:pc,tt:cc,td:rc,ta:oc,to:ac,ws:"white-space",tor:lc,wb:nc,wm:fc,hyp:"hyphens",bsz:ai,bsh:Ft,pos:ys,cf:Be,crs:Ue,crc:Le,crw:Ye,cs:Ze,cw:De,cc:Xe,bgcl:mo,bgp:ho,bgpx:$o,bgpy:uo,bgbm:xo,bgo:fo,bgr:vo,bga:wo,bgsz:go,mcl:ir,mcm:cr,mm:or,mo:ar,mp:lr,mre:nr,msz:pr,mtp:_r,obf:Ht,obp:Jt,cnt:P,ov:_s,ovx:Dt,ovy:Gt,v:vs,cv:So,o:us,zi:"z-index",zm:Ws,lg:zo,inf:"infinite",r_:":root","":"*",h_:":hover",f_:":focus",a_:":active",v_:":visited",val_:":valid",inv_:":invalid",e_:":empty",d_:":disabled",fc_:":first-child",lc_:":last-child",oc_:":only-child",odd_:":nth-child(odd)",even_:":nth-child(even)",ft_:":first-of-type",lt_:":last-of-type",ot_:":only-of-type",bef_:"::before",aft_:"::after",bd_:"::backdrop",ba_:"&::before,&::after",light_:"@media(prefers-color-scheme: light)",dark_:"@media(prefers-color-scheme: dark)"},Ro={light:{lig:{def:.75,c:.05,s:.65,m:.75,l:.85,n:.9}},dark:{lig:{def:.4,n:.25,s:.3,m:.4,l:.5,c:.95}},root:Object.assign({lig:{def:.75,c:.05,s:.65,m:.75,l:.85,n:.9},hue:{def:261.35,b:261.35,i:194.77,e:29.23,w:70.66,s:142.49},chr:{def:.03,xs:.03,s:.06,m:.1,l:.15,xl:.25},alp:{def:1,min:0,xs:.1,s:.25,m:.5,l:.75,xl:.9,max:1},rem:{def:16},ff:{def:"Roboto, sans-serif",b:"Georgia, serif"},fwg:{xs:100,s:200,m:400,l:600,xl:700},time:{def:300,xs:100,s:200,m:300,l:450,xl:600,no:0,min:50,max:750},coef:[0,1,2,3,4,5,6,7,8,9,10,11,12].reduce(((s,t)=>(s[t]=t,s)),{}),rat:{1:1,"2/1":2,"1/2":.5,"4/3":1.3333,"3/4":.75,"9/16":.5625,"16/9":1.7778},sp:{"3xs":.125,"2xs":.25,xs:.5,s:.75,m:1,l:1.25,xl:1.5,"2xl":2,"3xl":4},sz:{"3xs":1,"2xs":1.5,xs:2,s:5,m:10,l:15,xl:20,"2xl":25,"3xl":30},szu:{a:"auto",no:0},bp:{xs:30,sm:40,md:48,lg:64,xl:80},o:{min:0,xs:.1,s:.25,m:.5,l:.75,xl:.9,max:1},vu:{0:0,"1/4":25,"1/2":50,"3/4":75,1:100},cqu:{0:0,"1/4":25,"1/2":50,"3/4":75,1:100},fr:{0:0,"1/12":"0.0833","1/10":"0.1","1/6":"0.1667","1/5":"0.2","1/4":"0.25","3/10":"0.3","1/3":"0.3333","2/5":"0.4","5/12":"0.4167","1/2":"0.5","7/12":"0.5833","3/5":"0.6","2/3":"0.6667","7/10":"0.7","3/4":"0.75","4/5":"0.8","5/6":"0.8333","9/10":"0.9","11/12":"0.9167",1:"1"},rad:{s:.5,m:1,l:2},th:{s:.1,m:.25,l:.5},sc:{xs:.5,s:.67,m:1,l:1.5,xl:2},tr:{xs:.25,s:.5,m:1,l:1.5,xl:2},sk:{xs:-15,s:-10,m:0,l:10,xl:15},rot:{xs:-180,s:-90,m:0,l:90,xl:180},zm:{s:.8,m:1,l:1.2},pers:{s:"100px",m:"200px"},fsz:{xs:.25,s:.5,m:1,l:1.5,xl:2},lh:{xs:1,s:1.25,m:1.5,l:1.75,xl:2},lsp:{no:0,s:.05,m:.1,l:.2},zi:{1:1,2:2,3:3,4:4,5:5},ic:{inf:"infinite",1:1,2:2}},Ao)},Vo=s=>`{${s}}`,Wo=Object.assign.bind(Object),Io=(s,t)=>`${s}:${t};`,Po=(s,t)=>["@property",s,Vo(Io("syntax",t.syn||'"*"')+Io("inherits",t.inh||!1)+(t.ini?Io("initial-value",t.ini):""))].join(" "),Co=s=>`var(${s})`,Ko=({l:s,c:t,h:e,a:r=1})=>`oklch(${s} ${t} ${e} / ${r})`,To=["l","c","h","a"];class Xo{constructor(s){this.baseStyles="",this._prefix="eff",this._mode="a",this._params=Ro,this._compKeys={},this._compValues={},this._analyzeParams=s=>{var t,e;if(s)for(const t in s)this._params[t]=Wo(this._params[t]||{},s[t]);const{time:r,rem:c,coef:o,szu:a,sz:l,sp:n,rad:p,th:_,fr:b,bp:m,fsz:f,lsp:O,tr:q,sk:E,rot:A,fg:N,fs:R,fb:V,fo:W,ra:I,ro:P,co:C,ca:K,ins:T,cqu:X,cqb:B,cqi:L,cqmin:U,cqmax:Y,vu:Z,vw:D,vh:G,vmin:H,vmax:J}=this._params.root,M=(s=>s&&i(s,(s=>100*Number(s)+"%")))(b);this._params.root=Wo(this._params.root,{cqb:y(B||X),cqi:z(L||X),cqmin:S(U||X),cqmax:j(Y||X),vw:v(D||Z),vh:g(G||Z),vmin:x(H||Z),vmax:w(J||Z),fo:W||o,fg:N||o,fs:R||o,fb:V||M,ra:I||k(o),ro:P||o,ca:K||k(o),co:C||o,ins:T||M,sz:Wo(h(l)||{},a),sp:Wo(h(n)||{},a),rad:h(p),th:h(_),bp:h(m),fsz:h(f),lsp:h(O),tr:h(q),sk:u(E),rot:u(A),perc:M,time:d(r),rem:$(c)});const F=function(s,t){var e={};for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&t.indexOf(r)<0&&(e[r]=s[r]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(s);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(s,r[i])&&(e[r[i]]=s[r[i]])}return e}(this._params,["root"]),Q=Object.entries(F),ss={_mode:{root:{}}},ts={};Q.forEach((([s,t])=>{ss._mode[s]||(ss._mode[s]={}),Object.entries(t).forEach((([t,e])=>{Object.entries(e).forEach((([e,r])=>{const i=this._prepareVarName(t,e);ss._mode[s][i]=r,ss._mode.root[i]||(ss._mode.root[i]=r,ts[t]||(ts[t]={}),ts[t][e]=`var(${i})`)}))}))})),this._compValues=ts,this._compKeys=Object.entries(this._compValues.bp||{}).reduce(((s,[t,e])=>(s[t+"_"]=`@media (min-width:${e})`,s[t.toUpperCase()+"_"]=`@media (max-width:${e})`,s)),{}),this.baseStyles=this.compile("init",{c:Object.assign(Object.assign(Object.assign(Object.assign({},ss),{$r_:Object.assign(Object.assign({},ss._mode.root),{$c:"{uni.inh}",$fsz:"{rem.def}",$ff:"{ff.def}",$:{$c:"{uni.inh}",$fsz:"{rem.def}",$ff:"{ff.def}"}})}),(null===(t=ss._mode)||void 0===t?void 0:t.dark)?{$dark_:{$r_:ss._mode.dark}}:{}),(null===(e=ss._mode)||void 0===e?void 0:e.light)?{$light_:{$r_:ss._mode.light}}:{})})},this._prepareVarName=(...s)=>["-",this._prefix,...s].join("-"),this.compile=(s,t)=>{const{_:e,kf:r,k:i={},v:c={},c:o}=t,a=this._prepareSelector.bind(this),l=this._parseSelector.bind(this);let n=Wo({},o),p=Wo({},i),_=Wo({_:{}},c),b="";if(e)for(let t in e){const r=e[t];if("c"===r.typ){const e={};To.forEach((i=>{const c=t+i,o=this._prepareVarName(s,c);e[i]=o,p["_"+c]=e[i],b+=Po(o,r)})),_._[t]=Ko({l:Co(e.l),c:Co(e.c),h:Co(e.h),a:Co(e.a)}),r.all&&(n["_"+t+"l"]=`&lig=>${this._prepareVarName(s,t+"l")}:{1}`,n["_"+t+"c"]=`&chr=>${this._prepareVarName(s,t+"c")}:{1}`,n["_"+t+"h"]=`&hue=>${this._prepareVarName(s,t+"h")}:{1}`,n["_"+t+"a"]=`&alp=>${this._prepareVarName(s,t+"a")}:{1}`)}else{const e=this._prepareVarName(s,t);p["_"+t]=e,_._[t]=Co(e),b+=Po(e,r)}}const m=s=>p[s]||this._compKeys[s]||No[s],f=s=>_[s]||this._compValues[s]||this._params.root[s],h=s=>s.replaceAll(/\{(.+?)\}/g,((s,t)=>{const[e,r]=t.split(".");if(r){const s=f(e);return(null==s?void 0:s[r])||(null==s?void 0:s.def)}return m(e)})),d=s=>{const t=s.split("?");let e;for(let s in t){const r=t[s],[i,c]=r.split("=>"),[o,a,l]=i.match(/(\w+)(\[[\w,]+\])?/),n=f(a);if(!n)continue;e=n;let p=Object.entries(e);const _=null==l?void 0:l.slice(1,-1).split(",");if(_){const s=new Set(_);p=p.filter((([t,e])=>s.has(t)))}if(c){let[s,t]=c.split("|");void 0===t&&(t=s,s=""),p=p.map((([e,r])=>[s.replace("{0}",e)||e,h(t.replaceAll("{1}",r))]))}(_||c)&&(e=Object.fromEntries(p));break}return e};function $(t,e,r){var i,c,o;let n=""+t;if((null===(i=null==t?void 0:t.startsWith)||void 0===i?void 0:i.call(t,"$"))&&(n=m(t.slice(1)),!n))return"";if(Array.isArray(e))return $(n,Object.assign({},...e.map((s=>"string"==typeof s?d(s):s))),r);if(null==e)return"";if("object"==typeof e){const t=!r||n.startsWith("&")||n.startsWith("@")?"":"&";if(n.startsWith("_")){const{e:r,m:i,mv:c}=l(n);return i&&"string"!=typeof c?Object.entries(e).reduce(((e,[c,o])=>{let l;return l="object"==typeof o?Object.entries(o).reduce(((s,t)=>s+$(...t,n)),""):o+";",e+t+a({b:s,e:r,m:i,mv:c})+Vo(l)}),""):t+a({b:s,e:r,m:i,mv:c})+Vo(Object.entries(e).reduce(((s,t)=>s+$(...t,n)),""))}return t+n+Vo(Object.entries(e).reduce(((s,t)=>s+$(...t,n)),""))}{let s=""+e;return(null===(c=null==s?void 0:s.startsWith)||void 0===c?void 0:c.call(s,"&"))?$(n,d(s.slice(1)),r):(null===(o=null==s?void 0:s.includes)||void 0===o?void 0:o.call(s,"{"))?$(n,h(s),r):Io(n,e)}}let u="";if(r)for(let s in r){const t=r[s];u+=`@keyframes ${s} `+Vo(Object.entries(t).reduce(((s,[t,e])=>s+t+(String(+t)===t?"%":"")+Vo(Object.entries(e).reduce(((s,t)=>s+$(...t)),""))),""))}return b+u+Object.entries(n).reduce(((s,t)=>s+$(...t)),"")};const{mode:t,prefix:e,params:r}=s;this._mode=t||"a",this._prefix=e||"eff","c"===this._mode?this._prepareSelector=({b:s,e:t,m:e,mv:r,s:i})=>`.${s}${(t?"__"+t:"")+(e?"_"+e:"")+(e&&r?"_"+r:"")+(i?":"+i:"")}`:this._prepareSelector=({b:s,e:t,m:e,mv:r,s:i})=>`[data-${s}${t?"-"+t:""}${e?'~="'+e+(r?"-"+r:"")+(i?":"+i:"")+'"':""}]`,this._analyzeParams(r)}_parseSelector(s){let t,e,r,i;return s.startsWith("__")?[t,e,r]=s.slice(2).split("_"):[t,e,r]=s.split("_"),r&&([r,i]=r.split(":")),{e:t,m:e,mv:r,s:i}}expandSelector(s,t){const{e:e,m:r,mv:i,s:c}=this._parseSelector(t),o=c&&this._getStateSelector(c);return[this._prepareSelector({b:s,e:e,m:r,mv:i}),this._prepareSelector({b:s,e:e,m:r,mv:i,s:c})+"{"+o]}_getStateSelector(s){const t=s+"_",e=this._compKeys[t]||No[t];if(e)return(e.startsWith("&")||e.startsWith("@")?"":"&")+e}}class Bo{constructor(s){if(this._stylesheets={},this._rules={},this._expandedSelectors={},this._styleSheetsArray=[],this._listeners=[],this.get=s=>this._stylesheets[s],this.getAll=()=>this._stylesheets,this.add=(s,t)=>{if(!this._stylesheets[s])return this._stylesheets[s]=t,this._styleSheetsArray.push(t),this.cacheRules(s,t),this.notify(),!0},this.remove=s=>{const t=this.get(s);if(!t)return;const e=this._styleSheetsArray.findIndex((s=>s===t));return e>-1&&(this._styleSheetsArray.splice(e,1),delete this._stylesheets[s],delete this._rules[s],delete this._expandedSelectors[s]),this.notify(),!0},this.pack=(s,t)=>{const e=new CSSStyleSheet;if(e.replaceSync(t),e.cssRules.length)return this.add(s,e),e;console.log(`StyleSheet '${s}' is empty`)},this.cacheRules=(s,t)=>{[...t.cssRules].forEach((t=>{const e=t.cssText.split(" {")[0];e&&(this._rules[s]||(this._rules[s]={}),this._rules[s][e]=t)})),this._expandedSelectors[s]=new Set},this.getExpandedSelectors=s=>this._expandedSelectors[s],this.expandRule=(s,t,e)=>{const r=this._rules[s];if(!r)return void console.log(`No stylesheet found with key '${s}'`);const i=r[t];if(!i)return void console.log(`No rule with selector '${t}' found in stylesheet with key '${s}'`);const[c,o]=i.cssText.split("{");if(i.parentStyleSheet){const t=e+"{"+o+"}",c=i.parentStyleSheet.insertRule(t,i.parentStyleSheet.cssRules.length),a=i.parentStyleSheet.cssRules[c],l=e.split("{")[0];return r[l]=a,this._expandedSelectors[s].add(l),!0}},this.apply=s=>{s.adoptedStyleSheets=this._styleSheetsArray},this.registerNode=s=>{this._listeners.push(new WeakRef(s)),this.apply(s)},this.unregisterNode=s=>{const t=this._listeners.findIndex((t=>t.deref()===s));t>=0&&this._listeners.splice(t,1)},this.notify=()=>{this._listeners=this._listeners.reduce(((s,t)=>{const e=t.deref();return e&&(this.apply(e),s.push(t)),s}),[])},s)for(let t in s)this.pack(t,s[t])}removeAll(){return this._styleSheetsArray.splice(0),this._stylesheets={},this._rules={},this._expandedSelectors={},this.notify(),!0}}const Lo="style-provider";const Uo=((...s)=>u(Object.fromEntries(s.map((s=>[s,s])))))(-20,-15,-5,10,90),Yo="In",Zo="Out",Do="Down",Go="Up",Ho="Left",Jo="Right",Mo="zoom",Fo=Mo+Yo,Qo=Mo+Zo,sa="pulse",ta="bounce",ea=ta+Yo,ra=ta+Zo,ia="fade",ca=ia+Yo,oa=ca+Do,aa=ca+Go,la=ca+Ho,na=ca+Jo,pa=ia+Zo,_a=pa+Do,ba=pa+Go,ma=pa+Ho,fa=pa+Jo,ha="flip",da=ha+Yo+"x",$a=ha+Yo+"y",ua=ha+Zo+"x",va=ha+Zo+"y",ga="slide",xa=ga+Yo,wa=xa+Do,ya=xa+Go,za=xa+Jo,Sa=xa+Ho,ja=ga+Zo,ka=ja+Do,Oa=ja+Go,qa=ja+Jo,Ea=ja+Ho,Aa="heartBeat",Na="perspective"+r("25rem");var Ra,Va={kf:{[Fo]:{0:{$o:0,$tf:c(e(.25,.25,.25))},50:{$o:1}},[Qo]:{0:{$o:1},50:{$o:0,$tf:c(e(.25,.25,.25))},to:{$o:0}},[sa]:{0:{$tf:o(1)},50:{$tf:c(e(1.05,1.05,1.05))},to:{$tf:o(1)}},[Aa]:{0:{$tf:a(1)},15:{$tf:a(1.25)},30:{$tf:a(1)},45:{$tf:a(1.25)},70:{$tf:a(0)}},[ea]:{"0, 20%, 40%, 60%, 80%, to":{$atf:"cubic-bezier(.215,.61,.355,1)"},0:{$o:0,$tf:c(e(.25,.25,.25))},20:{$tf:c(e(1.1,1.1,1.1))},40:{$tf:c(e(.9,.9,.9))},60:{$o:1,$tf:c(e(1.05,1.05,1.05))},80:{$tf:c(e(.95,.95,.95))},to:{$o:1,$tf:o(1)}},[ra]:{20:{$tf:c(e(.9,.9,.9))},"50%, 55%":{$o:1,$tf:c(e(1.1,1.1,1.1))},to:{$o:0,$tf:c(e(.3,.3,.3))}},[ca]:{0:{$o:0},to:{$o:1}},[oa]:{0:{$o:0,$tf:l(0,"100%",0)},to:{$o:1,$tf:n(0)}},[la]:{0:{$o:0,$tf:l("-100%",0,0)},to:{$o:1,$tf:n(0)}},[na]:{0:{$o:0,$tf:l("-100%",0,0)},to:{$o:1,$tf:n(0)}},[aa]:{0:{$o:0,$tf:l(0,"100%",0)},to:{$o:1,$tf:n(0)}},[pa]:{0:{$o:1},to:{$o:0}},[_a]:{0:{$o:1},to:{$o:0,$tf:l(0,"-100%",0)}},[ma]:{0:{$o:1},to:{$o:0,$tf:l("-100%",0,0)}},[fa]:{0:{$o:1},to:{$o:0,$tf:l("100%",0,0)}},[ba]:{0:{$o:1},to:{$o:0,$tf:l(0,"-100%",0)}},[da]:{0:{$atf:"{ttf.ei}",$o:0,$tf:t(Na,p(Uo[90]))},40:{$atf:"{ttf.ei}",$tf:t(Na,p(Uo[-20]))},60:{$o:1,$tf:t(Na,p(Uo[10]))},80:{$tf:t(Na,p(Uo[-5]))},to:{$tf:Na}},[$a]:{0:{$atf:"{ttf.ei}",$o:0,$tf:t(Na,_(Uo[90]))},40:{$atf:"{ttf.ei}",$tf:t(Na,_(Uo[-20]))},60:{$o:1,$tf:t(Na,_(Uo[10]))},80:{$tf:t(Na,_(Uo[-5]))},to:{$tf:Na}},[ua]:{0:{$tf:Na},30:{$o:1,$tf:t(Na,p(Uo[-20]))},to:{$o:0,$tf:t(Na,p(Uo[90]))}},[va]:{0:{$tf:Na},30:{$o:1,$tf:t(Na,_(Uo[-15]))},to:{$o:0,$tf:t(Na,_(Uo[90]))}},[wa]:{0:{$tf:l(0,"-100%",0),$v:"{v.v}"},to:{$tf:n(0)}},[Sa]:{0:{$tf:l("-100%",0,0),$v:"{v.v}"},to:{$tf:n(0)}},[za]:{0:{$tf:l("100%",0,0),$v:"{v.v}"},to:{$tf:n(0)}},[ya]:{0:{$tf:l(0,"100%",0),$v:"{v.v}"},to:{$tf:n(0)}},[ka]:{0:{$tf:n(0)},to:{$tf:l(0,"100%",0),$v:"{v.h}"}},[Ea]:{0:{$tf:n(0)},to:{$tf:l("-100%",0,0),$v:"{v.h}"}},[qa]:{0:{$tf:n(0)},to:{$tf:l("100%",0,0),$v:"{v.h}"}},[Oa]:{0:{$tf:n(0)},to:{$tf:l(0,"-100%",0),$v:"{v.h}"}}},c:(Ra=[Fo,Qo,sa,Aa,ea,ra,ca,oa,la,na,aa,pa,_a,ma,fa,ba,da,$a,ua,va,wa,Sa,za,ya,ka,Ea,qa,Oa],{$an:Ra.reduce(((s,t)=>(s[t]=t,s)),{})})},Wa={t:"",k:{},c:{$:{$p:0,$m:0,$bor:"{uni.no}",$bsz:"{box.b}",$ba_:{$bsz:"{box.b}"}},[f(e("a",(s=>s+":link")("a"),(s=>s+":visited")("a"),(s=>s+":hover")("a")))]:{$td:"{uni.no}"},[f("aside,nav,footer,header,section,main")]:{$dis:"{dis.b}"},":host,html":{$lh:1.5},[f("menu,ol,ul")]:{$ls:"{ls.no}"},[f("input,textarea,button,select")]:{$ff:"{uni.inh}",$fsz:"{uni.inh}",$c:"{uni.inh}",$bgc:"transparent"},[f(e(m("input"),b("input"),m("button"),b("button")))]:{$o:"none"}}},Ia=Object.freeze({__proto__:null,kf:Va,reset:Wa});const Pa="{_.sz}",Ca=`calc(-1 * ${Pa})`,Ka=`calc(0.5 * ${Pa})`,Ta=`calc(-0.5 * ${Pa})`,Xa="{_.c}";var Ba={_:{sz:{},c:{typ:"c",wrap:!0}},c:{_:{$pos:"{pos.r}",$_cl:"{lig.def}",$_ch:"{hue.def}",$_cc:"{chr.def}",$_ca:1,$_sz:"{sp.m}"},_ssz:"&sp=>{_sz}:{1}",_shp:{r:{$bsh:t(Pa,0,Ka,Ta,Xa)},l:{$bsh:t(Ca,0,Ka,Ta,Xa)},t:{$bsh:t(0,Ca,Ka,Ta,Xa)},b:{$bsh:t(0,Pa,Ka,Ta,Xa)},x:{$bsh:e(t(Pa,0,Ka,Ta,Xa),t(Ca,0,Ka,Ta,Xa))},y:{$bsh:e(t(0,Ca,Ka,Ta,Xa),t(0,Pa,Ka,Ta,Xa))},f:{$bsh:t(0,0,Pa,Ka,Xa)},tr:{$bsh:t(Pa,Ca,Pa,Ta,Xa)},tl:{$bsh:t(Ca,Ca,Pa,Ta,Xa)},br:{$bsh:t(Pa,Pa,Pa,Ta,Xa)},bl:{$bsh:t(Ca,Pa,Pa,Ta,Xa)}},_bsz:"&box[c,b]=>{bsz}:{1}"}};const La=["sz","perc"],Ua=["cqw","cqmin","cqmax"],Ya=["vw","vmin","vmax"],Za=["cqh","cqmin","cqmax"],Da=["vh","vmin","vmax"];var Ga={c:{_w:[...La.map((s=>`&${s}=>{w}:{1}`)),...Ua.map((s=>`&${s}=>{0}${s}|{w}:{1}`)),...Ya.map((s=>`&${s}=>{0}${s}|{w}:{1}`))],_maxw:[...La.map((s=>`&${s}=>{maxw}:{1}`)),...Ua.map((s=>`&${s}=>{0}${s}|{maxw}:{1}`)),...Ya.map((s=>`&${s}=>{0}${s}|{maxw}:{1}`))],_minw:[...La.map((s=>`&${s}=>{minw}:{1}`)),...Ua.map((s=>`&${s}=>{0}${s}|{minw}:{1}`)),...Ya.map((s=>`&${s}=>{0}${s}|{minw}:{1}`))],_h:[...La.map((s=>`&${s}=>{h}:{1}`)),...Za.map((s=>`&${s}=>{h}:{1}`)),...Da.map((s=>`&${s}=>{0}${s}|{h}:{1}`))],_maxh:[...La.map((s=>`&${s}=>{maxh}:{1}`)),...Za.map((s=>`&${s}=>{0}${s}|{maxh}:{1}`)),...Da.map((s=>`&${s}=>{0}${s}|{maxh}:{1}`))],_minh:[...La.map((s=>`&${s}=>{minh}:{1}`)),...Za.map((s=>`&${s}=>{0}${s}|{minh}:{1}`)),...Da.map((s=>`&${s}=>{0}${s}|{minh}:{1}`))],_ar:"&rat=>{ar}:{1}"}};const Ha=["sz","perc"],Ja=["cqb","cqmin","cqmax"],Ma=["vw","vh","vmin","vmax"],Fa=["cqi","cqmin","cqmax"];var Qa,sl={c:{_b:[...Ha.map((s=>`&${s}=>{b}:{1}`)),...Ja.map((s=>`&${s}=>{0}${s}|{b}:{1}`)),...Ma.map((s=>`&${s}=>{0}${s}|{b}:{1}`))],_maxb:[...Ha.map((s=>`&${s}=>{maxb}:{1}`)),...Ja.map((s=>`&${s}=>{0}${s}|{maxb}:{1}`)),...Ma.map((s=>`&${s}=>{0}${s}|{maxb}:{1}`))],_minb:[...Ha.map((s=>`&${s}=>{minb}:{1}`)),...Ja.map((s=>`&${s}=>{0}${s}|{minb}:{1}`)),...Ma.map((s=>`&${s}=>{0}${s}|{minb}:{1}`))],_i:[...Ha.map((s=>`&${s}=>{i}:{1}`)),...Fa.map((s=>`&${s}=>{0}${s}|{i}:{1}`)),...Ma.map((s=>`&${s}=>{0}${s}|{i}:{1}`))],_maxi:[...Ha.map((s=>`&${s}=>{maxi}:{1}`)),...Fa.map((s=>`&${s}=>{0}${s}|{maxi}:{1}`)),...Ma.map((s=>`&${s}=>{0}${s}|{maxi}:{1}`))],_mini:[...Ha.map((s=>`&${s}=>{mini}:{1}`)),...Fa.map((s=>`&${s}=>{0}${s}|{mini}:{1}`)),...Ma.map((s=>`&${s}=>{0}${s}|{mini}:{1}`))],_ar:"&rat=>{ar}:{1}"}},tl={_:{scx:{ini:"0"},scy:{ini:"0"},skx:{ini:"0"},sky:{ini:"0"},x:{ini:"0"},y:{ini:"0"},z:{ini:"0"}},c:{_:{$sc:"{_scx} {_scy}",$tf:"skew({_skx},{_sky})",$tr:"{_x} {_y} {_z}"},_x:"&tr=>{_x}:{1}",_y:"&tr=>{_y}:{1}",_z:"&tr=>{_z}:{1}",_skx:"&sk=>{_skx}:{1}",_sky:"&sk=>{_sky}:{1}",_scx:"&sc=>{_scx}:{1}",_scy:"&sc=>{_scy}:{1}",_sc:"&sc=>{sc}:{1}",_rx:"&rot=>{rot}:X {1}",_ry:"&rot=>{rot}:Y {1}",_rz:"&rot=>{rot}:Z {1}",_zm:"&zm=>{zm}:{1}",_per:"&per=>{per}:{1}",_pero:"&posv=>{pero}:{1}",_b:"&box[c,b,f,s,v]=>{tfb}:{1}",_o:"&pos=>{tfo}:{1}",_s:{p:"{tfs}:preserve-3",f:"{tfs}:flat"}}},el=Object.freeze({__proto__:null,a:{c:{_dur:"&time=>{adur}:{1}",_del:"&time=>{adel}:{1}",_ps:"&aps=>{aps}:{1}",_fm:"&afm=>{afm}:{1}",_dir:"&adir=>{adir}:{1}",_ic:"&ic=>{aic}:{1}",_tf:"&ttf=>{atf}:{1}"}},ac:{_:{cr:{typ:"c",all:!0},ac:{typ:"c",all:!0}},c:{_:{$_crc:"{chr.xs}",$_crh:"{hue.def}",$_crl:"{lig.c}",$_cra:1,$_acc:"{chr.def}",$_acl:"{lig.c}",$_ach:"{hue.def}",$_aca:1},_ac_:{$_acc:"{_.ac}"},_cc_:{$_ctc:"{_.cr}"}}},ag:{c:{_app:"&app=>{app}:{1}",_wc:"&wc=>{wc}:{1}"}},b:{_:{c:{typ:"c",all:!0}},c:{_:{$bw:0,$br:0,$bs:"{ls.s}",$bc:"{_.c}"},_w:"&th=>{bw}:{1}",_xw:"&th=>{blw}:{1};{brw}:{1}",_yw:"&th=>{btw}:{1};{bbw}:{1}",_rw:"&th=>{brw}:{1}",_lw:"&th=>{blw}:{1}",_tw:"&th=>{btw}:{1}",_bw:"&th=>{bbw}:{1}",_r:"&rad=>{br}:{1}",_lr:"&rad=>{btlr}:{1};{bblr}:{1}",_rr:"&rad=>{btrr}:{1};{bbrr}:{1}",_tr:"&rad=>{btlr}:{1};{btrr}:{1}",_br:"&rad=>{bblr}:{1};{bbrr}:{1}",_tlr:"&rad=>{btlr}:{1}",_trr:"&rad=>{btrr}:{1}",_blr:"&rad=>{bblr}:{1}",_brr:"&rad=>{bbrr}:{1}",_s:"&lst=>{bs}:{1}"}},be:{c:{_iw:"&th=>{biw}:{1}",_blw:"&th=>{bblw}:{1}",_bew:"&th=>{bbew}:{1}",_bsw:"&th=>{bbsw}:{1}",_iew:"&th=>{biew}:{1}",_isw:"&th=>{bisw}:{1}",_bsr:"&rad=>{bser}:{1};{bssr}:{1}",_isr:"&rad=>{besr}:{1};{bssr}:{1}",_ber:"&rad=>{besr}:{1};{beer}:{1}",_ier:"&rad=>{bser}:{1};{beer}:{1}",_esr:"&rad=>{besr}:{1}",_ssr:"&rad=>{bssr}:{1}",_ser:"&rad=>{bser}:{1}",_eer:"&rad=>{beer}:{1}"}},bg:{c:{_bm:"&bgbm=>{bgbm}:{1}",_a:"&bga=>{bga}:{1}",_cl:"&box[c,p,b,t]=>{bgcl}:{1}",_o:"&box[c,p,b]=>{bgo}:{1}",_p:"&posv=>{bgp}:{1}",_px:"&posv[r,l,c]=>{bgpx}:{1}",_py:"&posv[t,b,c]=>{bgpy}:{1}",_r:"&rep=>{bgr}:{1}",_sz:"&csz[cv,cn,a]=>{bgsz}:{1}"}},bx:Ba,c:{_:{c:{typ:"c",all:!0},b:{typ:"c",all:!0},s:{typ:"c",all:!0},f:{typ:"c",all:!0}},c:{_:{$_cc:"{chr.xs}",$_ch:"{hue.def}",$_cl:"{lig.c}",$_ca:1,$_bc:"{chr.xs}",$_bl:"{lig.n}",$_bh:"{hue.def}",$_ba:1,$_fc:"{chr.xs}",$_fh:"{hue.def}",$_fl:"{lig.c}",$_fa:1,$_sc:"{chr.xs}",$_sl:"{lig.n}",$_sh:"{hue.def}",$_sa:1},_b_:{$bgc:"{_.b}"},_c_:{$c:"{_.c}"},_f_:{$fi:"{_.f}"},_s_:{$st:"{_.s}"}}},col:{_:{c:{typ:"c",wrap:!0}},c:{_:{$_cc:"{c.def}",$_ch:"{h.def}",$_cl:"{l.def}",$crc:"{_.c}"},_cf:"&cf=>{cf}:{1}",_cg:"&sp=>{cg}:{1}",_crs:"&lst=>{crs}:{1}",_crw:"&th=>{crw}:{1}",_cs:"&cs=>{cs}:{1}",_cw:"&sz=>{cw}:{1}",_cc:"&sp=>{cc}:{1}"}},f:{c:{_ls:"&ls=>{ls}:{1}",_lh:"&lh=>{lh}:{1}",_lb:"&lb=>{lb}:{1}",_st:"&fst=>{fst}:{1}",_w:"&fwg=>{fwg}:{1}",_f:"&ff=>{ff}:{1}",_sz:"&fsz=>{fsz}:{1}"}},fc:{c:{_:{$dis:"{dis.f}"},_dis:"&dis[if,f]=>{dis}:{1}",_dir:"&fd=>{fd}:{1}",_w:"&fw=>{fw}:{1}",_jc:"&ali[s,e,c,st,sb,sa,se,fs,fe]=>{jc}:{1}",_ai:"&ali[c,st,b,fs,fe]=>{ai}:{1}",_ac:"&ali[c,st,sb,sa,se,fs,fe]=>{ac}:{1}"}},fi:{c:{_as:"&ali[s,e,c,st,fs,fe]=>{as}:{1}",_fg:"&fg=>{fg}:{1}",_fs:"&fs=>{fs}:{1}",_fb:"&fb=>{fb}:{1}",_o:"&fo=>{ord}:{1}"}},gc:{c:{_:{$dis:"{dis.g}"},_dis:"&dis[g,ig]=>{dis}:{1}",_jc:"&ali[s,e,c,st,sb,sa,se]=>{jc}:{1}",_ji:"&ali[s,e,c,st]=>{ji}:{1}",_ai:"&ali[s,e,c,st,b]=>{ai}:{1}",_ac:"&ali[sb,se,sa,c,st]=>{ac}:{1}",_gtr:">r=>{gtr}:{1}?coef=>{gtr}:repeat({1},1fr)",_gtc:">c=>{gtc}:{1}?coef=>{gtc}:repeat({1},1fr)",_rg:"&sp=>{rg}:{1}",_cg:"&sp=>{cg}:{1}"}},gi:{c:{_as:"&ali[s,e,c,st]=>{as}:{1}",_js:"&ali[s,e,c,st]=>{js}:{1}",_ra:"&ra=>{gre}:{1}",_ca:"&ca=>{gce}:{1}",_ro:"&ro=>{grs}:{1}",_co:"&co=>{gcs}:{1}"}},i:{c:{_t:"&ins=>{t}:{1}",_b:"&ins=>{b}:{1}",_l:"&ins=>{l}:{1}",_r:"&ins=>{r}:{1}",_x:"&ins=>{r}:{1};{l}:{1}",_y:"&ins=>{t}:{1};{b}:{1}",_ib:"&ins=>{ib}:{1}",_ibe:"&ins=>{ibe}:{1}",_ibs:"&ins=>{ibs}:{1}",_ii:"&ins=>{ii}:{1}",_iie:"&ins=>{iie}:{1}",_iis:"&ins=>{iis}:{1}"}},ind:{c:{_m:"&sp=>{m}:{1}",_mx:"&sp=>{ml}:{1};{mr}:{1}",_my:"&sp=>{mt}:{1};{mb}:{1}",_mt:"&sp=>{mt}:{1}",_ml:"&sp=>{ml}:{1}",_mr:"&sp=>{mr}:{1}",_mb:"&sp=>{mb}:{1}",_p:"&sp=>{p}:{1}",_px:"&sp=>{pl}:{1};{pr}:{1}",_py:"&sp=>{pt}:{1};{pb}:{1}",_pt:"&sp=>{pt}:{1}",_pl:"&sp=>{pl}:{1}",_pr:"&sp=>{pr}:{1}",_pb:"&sp=>{pb}:{1}"}},mk:{c:{_clip:"&box[c,p,b,f,s,v]=>{mcl}:{1}",_comp:"&mcm=>{mcm}:{1}",_m:"&mm=>{mm}:{1}",_o:"&box[c,p,b,f,s,v]=>{mo}:{1}",_p:"&posv=>{mp}:{1}",_r:"&rep=>{mre}:{1}",_sz:"&csz[cv,cn,a]=>{msz}:{1}",_t:"&mtp=>{mtp}:{1}"}},o:{_:{oc:{typ:"c",all:!0}},c:{_:{$oc:"{_.oc}",$ow:0,$os:"{ls.s}"},_oo:"&sp=>{oo}:{1}",_os:"&lst=>{os}:{1}",_ow:"&th=>{ow}:{1}"}},obj:{c:{_f:"&csz[cv,cn,a]=>{obf}:{1}",_p:"&posv=>{obp}:{1}"}},sc:{_:{st:{}},c:{_:{">*":{$sst:"{_.st}"}},_b:"&sb=>{sb}:{1}",_sa:"&ali[s,e,c,no]=>{ssa}:{1}",_ss:"&sss=>{sss}:{1}",_st:"&sst=>{st}:{1}",_m:"&sp=>{sm}:{1}",_mx:"&sp=>{sml}:{1};{smr}:{1}",_my:"&sp=>{smt}:{1};{smb}:{1}",_mt:"&sp=>{smt}:{1}",_ml:"&sp=>{sml}:{1}",_mr:"&sp=>{smr}:{1}",_mb:"&sp=>{smb}:{1}",_p:"&sp=>{sp}:{1}",_px:"&sp=>{spl}:{1};{spr}:{1}",_py:"&sp=>{spt}:{1};{spb}:{1}",_pt:"&sp=>{spt}:{1}",_pl:"&sp=>{spl}:{1}",_pr:"&sp=>{spr}:{1}",_pb:"&sp=>{spb}:{1}"}},sce:{c:{_mbl:"&sp=>{smbl}:{1}",_mbe:"&sp=>{smbe}:{1}",_mbs:"&sp=>{smbs}:{1}",_mi:"&sp=>{smi}:{1}",_mie:"&sp=>{smie}:{1}",_mis:"&sp=>{smis}:{1}",_pbl:"&sp=>{spbl}:{1}",_pbe:"&sp=>{spbe}:{1}",_pbs:"&sp=>{spbs}:{1}",_pi:"&sp=>{spi}:{1}",_pie:"&sp=>{spie}:{1}",_pis:"&sp=>{spis}:{1}"}},sz:Ga,sze:sl,t:{c:{_:{$tdur:"{time.s}",$tdel:"{time.no}"},_tdur:"&time=>{tdur}:{1}",_tdel:"&time=>{tdel}:{1}",_tb:"&tb=>{tb}:{1}",_tp:"&tp=>{tp}:{1}",_ttf:"&ttf=>{ttf}:{1}"}},tf:tl,tx:{c:{_tt:"&tt=>{tt}:{1}",_td:"&td=>{td}:{1}",_ta:"&ta=>{ta}:{1}",_to:"&ov[c,e]=>{to}:{1}",_ws:"&ws=>{ws}:{1}",_wb:"&wb=>{wb}:{1}",_wm:"&wm=>{wm}:{1}",_hyp:"&hyp=>{hyp}:{1}",_tor:"&tor=>{tor}:{1}"}},u:{c:{_pe:"&pe=>{pe}:{1}",_us:"&us=>{us}:{1}",_toa:"&toa=>{toa}:{1}",_res:"&res=>{res}:{1}",_cur:"&cur=>{cur}:{1}"}},v:{c:{_pos:"&pos=>{pos}:{1}",_ov:"&ov=>{ov}:{1}",_ovx:"&ov=>{ovx}:{1}",_ovy:"&ov=>{ovy}:{1}",_v:"&v[v,h,c]=>{v}:{1}",_o:"&o=>{o}:{1}",_zi:"&zi=>{zi}:{1}",_cv:"&v[v,h,a]=>{v}:{1}"}}});Qa={config:{styles:Object.assign(Object.assign({},el),Ia)}},customElements.define((null==Qa?void 0:Qa.name)||Lo,class extends HTMLElement{get settingsId(){return this.getAttribute("settingsid")||"effcss"}constructor(){super(),this.getSettings=()=>{var s;const t=null===(s=null===document||void 0===document?void 0:document.getElementById(this.settingsId))||void 0===s?void 0:s.textContent;return t?JSON.parse(t):(null==Qa?void 0:Qa.config)||{}},this.compileStyleSheet=(s,t)=>{var e,r;const i=null===(e=this.processor)||void 0===e?void 0:e.compile(s,t);if(i)return null===(r=this.manager)||void 0===r?void 0:r.pack(s,i)},this.expandStyleSheet=(s,t)=>{var e;const r=null===(e=this.manager)||void 0===e?void 0:e.getExpandedSelectors(s);if(this.processor&&r){const e=new Set(t).difference(r),i=e.size;return i&&this.processor&&e.keys().forEach((t=>{var e;const[r,i]=this.processor.expandSelector(s,t);null===(e=this.manager)||void 0===e||e.expandRule(s,r,i)})),i}},this.processStyles=(s,t)=>{if(s)for(let t in s){const e=s[t];this.compileStyleSheet(t,e)}if(t)for(let s in t){const e=t[s];this.expandStyleSheet(s,e)}return!0}}connectedCallback(){const s=this.getSettings(),{params:t,styles:e,ext:r}=s;this.processor=new Xo({prefix:this.getAttribute("prefix")||void 0,mode:this.getAttribute("mode")||void 0,params:t}),this.manager=new Bo({init:`${Lo} {display: contents;}`+this.processor.baseStyles}),this.processStyles(e,r),null===this.getAttribute("isolated")&&this.manager.registerNode(document)}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"function"==typeof SuppressedError&&SuppressedError;const e=(...e)=>e.join("-"),t=(...e)=>e.join(" "),s=(...e)=>e.join(","),r=(e,t)=>((e,t)=>Object.fromEntries(Object.entries(e).map((e=>t(e)))))(e,(e=>[e[0],t(e[1])])),i=e=>e&&r(e,(e=>e+"rem")),o=e=>e&&r(e,(e=>e+"ms")),l=e=>e&&r(e,(e=>e+"px")),n=e=>e&&r(e,(e=>e+"deg")),a=e=>e&&r(e,(e=>e+"vw")),c=e=>e&&r(e,(e=>e+"vh")),p=e=>e&&r(e,(e=>e+"vmin")),m=e=>e&&r(e,(e=>e+"vmax")),h=e=>e&&r(e,(e=>e+"cqb")),d=e=>e&&r(e,(e=>e+"cqi")),b=e=>e&&r(e,(e=>e+"cqmin")),f=e=>e&&r(e,(e=>e+"cqmax")),u=e=>e&&r(e,(e=>"span "+e)),_="x",g="y",y="horizontal",v="vertical",x="text",w="font",S="column",j="max",$="min",z="content",O=z+"s",k="items",E="self",q="inline",A="block",N="size",V="radius",R="direction",W="outline",I="style",P="end",C="start",K="center",T="word",B="line",G="break",H="wrap",J="nowarp",L="template",M="rule",U="object",D="top",F="left",Q="bottom",X="right",Y="width",Z="color",ee="overflow",te="align",se="type",re="transform",ie="all",oe="height",le="normal",ne="opacity",ae="visibility",ce="scale",pe="box",me="border",he="position",de="none",be="auto",fe="fill",ue="stroke",_e="reverse",ge="space",ye="fixed",ve="origin",xe="alpha",we="luminance",Se="clip",je="zoom",$e="scroll",ze="padding",Oe="margin",ke="both",Ee="mode",qe="repeat",Ae="light",Ne="linear",Ve="hidden",Re=e(me,Q),We=e(me,F),Ie=e(me,X),Pe=e(me,D),Ce=e(me,A),Ke=e(me,q),Te=e(Ce,C),Be=e(Ce,P),Ge=e(Ke,C),He=e(Ke,P),Je=e(me,Y),Le=e(Re,Y),Me=e(We,Y),Ue=e(Ie,Y),De=e(Pe,Y),Fe=e(Ce,Y),Qe=e(Ke,Y),Xe=e(Te,Y),Ye=e(Be,Y),Ze=e(Ge,Y),et=e(He,Y),tt=e(me,V),st=e(me,Q,F,V),rt=e(me,Q,X,V),it=e(me,D,F,V),ot=e(me,D,X,V),lt=e(me,C,P,V),nt=e(me,C,C,V),at=e(me,P,P,V),ct=e(me,P,C,V),pt=e(me,Z),mt=e(We,Z),ht=e(Ie,Z),dt=e(Pe,Z),bt=e(Re,Z),ft=e(Ce,Z),ut=e(Ke,Z),_t=e(Te,Z),gt=e(Be,Z),yt=e(Ge,Z),vt=e(He,Z),xt=e(me,I),wt=e(We,I),St=e(Ie,I),jt=e(Pe,I),$t=e(Re,I),zt=e(Ce,I),Ot=e(Ke,I),kt=e(Te,I),Et=e(Be,I),qt=e(Ge,I),At=e(He,I),Nt=e(W,Z),Vt=e(W,Y),Rt=e(W,I),Wt=e(W,"offset"),It=e(ee,_),Pt=e(ee,g),Ct=e(U,"fit"),Kt=e(U,he),Tt=e(ce,"down"),Bt=e(pe,"shadow"),Gt=e(ze,pe),Ht=e(me,pe),Jt=e(z,pe),Lt=e(fe,pe),Mt=e(ue,pe),Ut=e("view",pe),Dt=e("no",Se),Ft=e(qe,_),Qt=e(qe,g),Xt=e("no",qe),Yt=e(ze,F),Zt=e(ze,D),es=e(ze,X),ts=e(ze,Q),ss=e(Oe,F),rs=e(Oe,D),is=e(Oe,X),os=e(Oe,Q),ls="grid",ns="row",as="justify",cs="flex",ps=e(q,cs),ms=e(cs,"basis"),hs=e(cs,"grow"),ds=e(cs,"shrink"),bs=e(cs,R),fs=e(cs,H),us=e(as,z),_s=e(as,k),gs=e(te,k),ys=e(te,z),vs=e(te,E),xs=e(ls,L,ns+"s"),ws=e(ls,L,S+"s"),Ss=e(ns,"gap"),js=e(S,"gap"),$s=e(as,E),zs=e(ls,ns,P),Os=e(ls,ns,C),ks=e(ls,S,P),Es=e(ls,S,C),qs=e(S,"count"),As=e(S,fe),Ns=e(S,M,Z),Vs=e(S,M,I),Rs=e(S,M,Y),Ws=e(S,"span"),Is=e(S,Y),Ps=e(ns,_e),Cs=e(S,_e),Ks=e(H,_e),Ts=e(cs,P),Bs=e(cs,C),Gs=e(ge,"between"),Hs=e(ge,"around"),Js=e(ge,"evenly"),Ls=e(q,ls),Ms="mask",Us=e(Ms,Se),Ds=e(Ms,"composite"),Fs=e(Ms,Ee),Qs=e(Ms,ve),Xs=e(Ms,he),Ys=e(Ms,qe),Zs=e(Ms,N),er=e(Ms,se),tr="timing-function",sr="delay",rr="duration",ir="animation",or=e(ir,"name"),lr=e(ir,tr),nr=e(ir,R),ar=e(ir,"iteration-count"),cr=e(ir,rr),pr=e(ir,sr),mr=ir+"-play-state",hr=e(ir,fe,Ee),dr="transition",br=dr+"-behavior",fr=dr+"-property",ur=e(dr,tr),_r=e(dr,rr),gr=e(dr,sr),yr="alternate",vr=e(yr,_e),xr="-out",wr="ease",Sr=wr+"-in",jr=Sr+xr,$r=wr+xr,zr="step",Or=e(zr,C),kr=e(zr,P),Er="translate",qr="rotate",Ar="perspective",Nr=e(Ar,ve),Vr=t(F,D),Rr=t(X,D),Wr=t(F,Q),Ir=t(X,Q),Pr="inset",Cr=e(re,pe),Kr=e(re,ve),Tr=e(re,I),Br=e(Pr,A),Gr=e(Pr,A,P),Hr=e(Pr,A,C),Jr=e(Pr,q),Lr=e(Pr,q,P),Mr=e(Pr,q,C),Ur=e("fit",z),Dr=e($,z),Fr=e(j,z),Qr=e(pe,"sizing"),Xr=e(j,Y),Yr=e($,Y),Zr=e(j,oe),ei=e($,oe),ti=e(A,N),si=e(j,ti),ri=e($,ti),ii=e(q,N),oi=e(j,ii),li=e($,ii),ni="snap",ai=e($e,"behavior"),ci=e($e,Oe),pi=e($e,Oe,D),mi=e($e,Oe,Q),hi=e($e,Oe,F),di=e($e,Oe,X),bi=e($e,Oe,A),fi=e($e,Oe,A,P),ui=e($e,Oe,A,C),_i=e($e,Oe,q),gi=e($e,Oe,q,P),yi=e($e,Oe,q,C),vi=e($e,ze),xi=e($e,ze,D),wi=e($e,ze,Q),Si=e($e,ze,F),ji=e($e,ze,X),$i=e($e,ze,A),zi=e($e,ze,A,P),Oi=e($e,ze,A,C),ki=e($e,ze,q),Ei=e($e,ze,q,P),qi=e($e,ze,q,C),Ai=e($e,ni,te),Ni=e($e,ni,"stop"),Vi=e($e,ni,se),Ri="mandatory",Wi=t(_,Ri),Ii=t(g,Ri),Pi=t(A,Ri),Ci=t(q,Ri),Ki=t(ke,Ri),Ti="proximity",Bi=t(_,Ti),Gi=t(g,Ti),Hi=t(A,Ti),Ji=t(q,Ti),Li=t(ke,Ti),Mi=e(x,"decoration"),Ui=e(Mi,Z),Di=e(x,re),Fi=e(x,te),Qi=e(x,ee),Xi=e(x,"orientation"),Yi=e(T,G),Zi=e(w,N),eo=w+"-weight",to=w+"-family",so=e(w,I),ro=e("writing",Ee),io=e(B,oe),oo=e(B,G),lo=B+"-through",no="over"+B,ao="under"+B,co="pre",po=e(co,B),mo=e(co,H),ho=G+"-spaces",bo=e(G,ie),fo=e(G,T),uo=y+"-tb",_o=v+"-lr",go=v+"-rl",yo="keep-"+ie,vo="pointer",xo="pan",wo=e(xo,_),So=e(xo,F),jo=e(xo,X),$o=e(xo,g),zo=e(xo,"up"),Oo=e(xo,"down"),ko=e("pinch",je),Eo=e(v,x),qo="grab",Ao=qo+"bing",No="resize",Vo="col-"+No,Ro="row-"+No,Wo="n-"+No,Io="e-"+No,Po="s-"+No,Co="w-"+No,Ko="ne-"+No,To="ew-"+No,Bo="nw-"+No,Go="se-"+No,Ho="sw-"+No,Jo="ns-"+No,Lo="nesw-"+No,Mo="nwse-"+No,Uo=e(je,"in"),Do=e(je,"out"),Fo=e(vo,"events"),Qo=e($e,he),Xo=e("caret",Z),Yo=e("accent",Z),Zo="filter",el="backdrop-"+Zo,tl="background",sl=e(tl,Z),rl=e(tl,Se),il=e(tl,ve),ol=e(tl,he),ll=e(tl,he,_),nl=e(tl,he,g),al=e(tl,qe),cl=e(tl,N),pl=e(tl,"blend",Ee),ml=e(tl,"attachment"),hl="gradient",dl=e(Ne,hl);e("radial",hl),e("conic",hl);const bl=e(z,ae);e(ue,Y),e(fe,M);const fl=e(Z,"dodge"),ul=e(Z,"burn"),_l=e("hard",Ae),gl=e("soft",Ae);e(Z,"mix");const yl="revert",vl={uni:{ini:"initial",inh:"inherit",u:"unset",r:yl,rl:e(yl,"layer"),a:be,no:de},ali:{s:C,e:P,c:K,st:"stretch",sb:Gs,sa:Hs,se:Js,b:"baseline",fs:Bs,fe:Ts,no:de},dis:{g:ls,ig:Ls,f:cs,if:ps},fd:{r:ns,rr:Ps,c:S,cr:Cs},fw:{w:H,nw:J,wr:Ks},rep:{rx:Ft,ry:Qt,r:qe,s:ge,ro:"round",nr:Xt},ttf:{l:Ne,e:wr,ei:Sr,eo:$r,eio:jr,ss:Or,se:kr},ws:{n:le,nw:J,p:co,pl:po,pw:mo,bs:ho},wb:{n:le,ba:bo,ka:yo,bw:fo},wm:{htb:uo,vlr:_o,vrl:go},hyp:{no:de,m:"manual",a:be},tt:{l:"lowercase",u:"uppercase",c:"capitalize"},td:{lt:lo,o:no,u:ao},tor:{m:"mixed",u:"upright",sr:"sideways-right",s:"sideways",ugo:"use-glyph-orientation"},ta:{l:F,c:K,j:as,r:X,s:C,e:P},tp:{all:ie,col:s(Z,sl,pt,Ui),icon:s(fe,ue),filter:s(Zo,el),ind:s(ze,Oe),sz:s(Y,Xr,Yr,oe,Zr,ei),esz:s(ri,ti,si,li,ii,oi),o:ne,b:me,f:cs,g:ls,pos:s(he,F,D,Q,X),tf:s(re,Er,ce,qr,"skew",Ar)},lb:{a:be,any:"anywhere",n:le,l:"loose",s:"strict"},ov:{h:Ve,s:$e,a:be,c:Se,e:"ellipsis"},v:{h:Ve,v:"visible",c:"collapse",a:be},wc:{a:be,sp:Qo,c:O,tf:re,o:ne,i:Pr,tfi:re+","+Pr},afm:{no:de,f:"forwards",b:"backwards",both:ke},adir:{r:_e,a:yr,ar:vr},aps:{r:"running",p:"paused"},tb:{ad:"allow-discrete",n:le},app:{n:de,a:be},pe:{a:be,no:de,all:ie,f:fe,s:ue},cur:{h:"help",a:be,p:vo,cm:"context-menu",pr:"progress",w:"wait",cell:"cell",crh:"crosshair",t:x,vt:Eo,cp:"copy",m:"move",g:qo,gng:Ao,cr:Vo,rr:Ro,nr:Wo,er:Io,sr:Po,wr:Co,ner:Ko,ewr:To,nwr:Bo,ser:Go,swr:Ho,nsr:Jo,neswr:Lo,nwser:Mo,zi:Uo,zo:Do},res:{n:de,v:v,h:y,b:ke},toa:{a:be,no:de,px:wo,pl:So,pr:jo,py:$o,pu:zo,pd:Oo,pz:ko,m:"manipulation"},us:{n:de,t:x,all:ie,a:be},sb:{a:be,s:"smooth"},sss:{n:le,a:"always"},sst:{n:de,x:_,y:g,b:A,i:q,both:ke,xm:Wi,ym:Ii,bm:Pi,im:Ci,bothm:Ki,xp:Bi,yp:Gi,bp:Hi,ip:Ji,bothp:Li},fst:{i:"italic",n:le,o:"oblique"},pos:{r:"relative",a:"absolute",f:ye,s:"static"},posv:{b:Q,t:D,c:K,l:F,r:X,lt:Vr,rt:Rr,lb:Wr,rb:Ir},csz:{cv:"cover",cn:"contain",a:be,f:fe,sd:Tt},cf:{a:be,b:"balance"},cs:{no:de,all:ie},box:{c:Jt,p:Gt,b:Ht,f:Lt,s:Mt,v:Ut,nc:Dt,t:x},mcm:{a:"add",s:"subtract",i:"intersect",e:"exclude"},mtp:{a:xe,l:we},mm:{a:xe,l:we,m:"match-source"},bgbm:{n:le,m:"multiply",scr:"screen",o:"overlay",d:"darken",l:Ae+"en",dif:"difference",exc:"exclusion",h:"hue",sat:"saturation",c:Z,lum:"luminosity",cd:fl,cb:ul,hl:_l,sl:gl},bga:{s:$e,f:ye,l:"local"},ls:{no:de,dt:"dotted",i:Pr,h:Ve,ds:"dashed",s:"solid",db:"double",o:"outset",r:"ridge",g:"groove"},usz:{min:Dr,max:Fr,fit:Ur,no:0,a:be}},xl={a:ir,an:or,adur:cr,adel:pr,aps:mr,afm:hr,adir:nr,aic:ar,atf:lr,trn:dr,tdur:_r,tdel:gr,tb:br,tp:fr,ttf:ur,bor:me,bw:Je,br:tt,bs:xt,bls:wt,brs:St,bts:jt,bbs:$t,bbls:zt,bis:Ot,bbss:kt,bbes:Et,biss:qt,bies:At,brw:Ue,blw:Me,btw:De,bbw:Le,btlr:it,btrr:ot,bbrr:rt,bblr:st,biw:Qe,bblw:Fe,bbew:Ye,bbsw:Xe,bisw:Ze,biew:et,besr:ct,beer:at,bssr:nt,bser:lt,bc:pt,blc:mt,brc:ht,btc:dt,bbc:bt,bblc:ft,bic:ut,bbsc:_t,bbec:gt,bisc:yt,biec:vt,bgc:sl,c:Z,acc:Yo,ctc:Xo,st:ue,fi:fe,flt:Zo,bf:el,g:ls,f:cs,dis:"display",jc:us,ji:_s,ai:gs,ac:ys,gtr:xs,gtc:ws,rg:Ss,cg:js,as:vs,js:$s,gre:zs,grs:Os,gce:ks,gcs:Es,fd:bs,fw:fs,fs:ds,fg:hs,fb:ms,ord:"order",m:Oe,ml:ss,mr:is,mt:rs,mb:os,p:ze,pl:Yt,pr:es,pt:Zt,pb:ts,oc:Nt,ow:Vt,os:Rt,oo:Wt,l:F,r:X,t:D,b:Q,ins:Pr,ib:Br,ibe:Gr,ibs:Hr,ii:Jr,iie:Lr,iis:Mr,wc:"will-change",app:"appearance",pe:Fo,cur:"cursor",toa:"touch-action",us:"user-select",res:No,sb:ai,ssa:Ai,sss:Ni,sst:Vi,sm:ci,sml:hi,smr:di,smt:pi,smb:mi,sp:vi,spl:Si,spr:ji,spt:xi,spb:wi,smbl:bi,smbe:fi,smbs:ui,smi:_i,smie:gi,smis:yi,spbl:$i,spbe:zi,spbs:Oi,spi:ki,spie:Ei,spis:qi,ar:"aspect-ratio",w:Y,maxw:Xr,minw:Yr,h:oe,minh:ei,maxh:Zr,bl:ti,maxb:si,minb:ri,i:ii,mini:li,maxi:oi,per:Ar,pero:Nr,rot:qr,sc:ce,tf:re,tfb:Cr,tfo:Kr,tfs:Tr,tr:Er,z:je,lts:"letter-spacing",lh:io,lb:oo,fst:so,ff:to,fwg:eo,fsz:Zi,tt:Di,td:Mi,ta:Fi,to:Qi,ws:"white-space",tor:Xi,wb:Yi,wm:ro,hyp:"hyphens",bsz:Qr,bsh:Bt,pos:he,cf:As,crs:Vs,crc:Ns,crw:Rs,cs:Ws,cw:Is,cc:qs,bgcl:rl,bgp:ol,bgpx:ll,bgpy:nl,bgbm:pl,bgo:il,bgr:al,bga:ml,bgsz:cl,mcl:Us,mcm:Ds,mm:Fs,mo:Qs,mp:Xs,mre:Ys,msz:Zs,mtp:er,obf:Ct,obp:Kt,cnt:z,ov:ee,ovx:It,ovy:Pt,v:ae,cv:bl,o:ne,zi:"z-index",zm:je,lg:dl,inf:"infinite",r_:":root","":"*",h_:":hover",f_:":focus",a_:":active",v_:":visited",val_:":valid",inv_:":invalid",e_:":empty",d_:":disabled",fc_:":first-child",lc_:":last-child",oc_:":only-child",odd_:":nth-child(odd)",even_:":nth-child(even)",ft_:":first-of-type",lt_:":last-of-type",ot_:":only-of-type",bef_:"::before",aft_:"::after",bd_:"::backdrop",ba_:"&::before,&::after",light_:"@media(prefers-color-scheme: light)",dark_:"@media(prefers-color-scheme: dark)"},wl={light:{lig:{def:.75,c:.05,s:.65,m:.75,l:.85,n:.9}},dark:{lig:{def:.4,n:.25,s:.3,m:.4,l:.5,c:.95}},root:Object.assign({lig:{def:.75,c:.05,s:.65,m:.75,l:.85,n:.9},hue:{def:261.35,b:261.35,i:194.77,e:29.23,w:70.66,s:142.49},chr:{def:.03,xs:.03,s:.06,m:.1,l:.15,xl:.25},alp:{def:1,min:0,xs:.1,s:.25,m:.5,l:.75,xl:.9,max:1},rem:{def:16},ff:{def:"Roboto, sans-serif",b:"Georgia, serif"},fwg:{xs:100,s:200,m:400,l:600,xl:700},time:{def:300,xs:100,s:200,m:300,l:450,xl:600,no:0,min:50,max:750},coef:[0,1,2,3,4,5,6,7,8,9,10,11,12].reduce(((e,t)=>(e[t]=t,e)),{}),rat:{1:1,"2/1":2,"1/2":.5,"4/3":1.3333,"3/4":.75,"9/16":.5625,"16/9":1.7778},sp:{"3xs":.125,"2xs":.25,xs:.5,s:.75,m:1,l:1.25,xl:1.5,"2xl":2,"3xl":4},sz:{"3xs":1,"2xs":1.5,xs:2,s:5,m:10,l:15,xl:20,"2xl":25,"3xl":30},szu:{a:"auto",no:0},bp:{xs:30,sm:40,md:48,lg:64,xl:80},o:{min:0,xs:.1,s:.25,m:.5,l:.75,xl:.9,max:1},vu:{0:0,"1/4":25,"1/2":50,"3/4":75,1:100},cqu:{0:0,"1/4":25,"1/2":50,"3/4":75,1:100},fr:{0:0,"1/12":"0.0833","1/10":"0.1","1/6":"0.1667","1/5":"0.2","1/4":"0.25","3/10":"0.3","1/3":"0.3333","2/5":"0.4","5/12":"0.4167","1/2":"0.5","7/12":"0.5833","3/5":"0.6","2/3":"0.6667","7/10":"0.7","3/4":"0.75","4/5":"0.8","5/6":"0.8333","9/10":"0.9","11/12":"0.9167",1:"1"},rad:{s:.5,m:1,l:2},th:{s:.1,m:.25,l:.5},sc:{xs:.5,s:.67,m:1,l:1.5,xl:2},tr:{xs:.25,s:.5,m:1,l:1.5,xl:2},sk:{xs:-15,s:-10,m:0,l:10,xl:15},rot:{xs:-180,s:-90,m:0,l:90,xl:180},zm:{s:.8,m:1,l:1.2},pers:{s:"100px",m:"200px"},fsz:{xs:.25,s:.5,m:1,l:1.5,xl:2},lh:{xs:1,s:1.25,m:1.5,l:1.75,xl:2},lsp:{no:0,s:.05,m:.1,l:.2},zi:{1:1,2:2,3:3,4:4,5:5},ic:{inf:"infinite",1:1,2:2}},vl)},Sl=e=>`{${e}}`,jl=Object.assign.bind(Object),$l=(e,t)=>`${e}:${t};`,zl=(e,t)=>["@property",e,Sl($l("syntax",t.syn||'"*"')+$l("inherits",t.inh||!1)+(t.ini?$l("initial-value",t.ini):""))].join(" "),Ol=e=>`var(${e})`,kl=({l:e,c:t,h:s,a:r=1})=>`oklch(${e} ${t} ${s} / ${r})`,El=["l","c","h","a"];class ql{constructor(e){this.baseStyles="",this._prefix="eff",this._mode="a",this._params=wl,this._compKeys={},this._compValues={},this._analyzeParams=e=>{var t,s;if(e)for(const t in e)this._params[t]=jl(this._params[t]||{},e[t]);const{time:_,rem:g,coef:y,szu:v,sz:x,sp:w,rad:S,th:j,fr:$,bp:z,fsz:O,lsp:k,tr:E,sk:q,rot:A,fg:N,fs:V,fb:R,fo:W,ra:I,ro:P,co:C,ca:K,ins:T,cqu:B,cqb:G,cqi:H,cqmin:J,cqmax:L,vu:M,vw:U,vh:D,vmin:F,vmax:Q}=this._params.root,X=(e=>e&&r(e,(e=>100*Number(e)+"%")))($);this._params.root=jl(this._params.root,{cqb:h(G||B),cqi:d(H||B),cqmin:b(J||B),cqmax:f(L||B),vw:a(U||M),vh:c(D||M),vmin:p(F||M),vmax:m(Q||M),fo:W||y,fg:N||y,fs:V||y,fb:R||X,ra:I||u(y),ro:P||y,ca:K||u(y),co:C||y,ins:T||X,sz:jl(i(x)||{},v),sp:jl(i(w)||{},v),rad:i(S),th:i(j),bp:i(z),fsz:i(O),lsp:i(k),tr:i(E),sk:n(q),rot:n(A),perc:X,time:o(_),rem:l(g)});const Y=function(e,t){var s={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(s[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(s[r[i]]=e[r[i]])}return s}(this._params,["root"]),Z=Object.entries(Y),ee={_mode:{root:{}}},te={};Z.forEach((([e,t])=>{ee._mode[e]||(ee._mode[e]={}),Object.entries(t).forEach((([t,s])=>{Object.entries(s).forEach((([s,r])=>{const i=this._prepareVarName(t,s);ee._mode[e][i]=r,ee._mode.root[i]||(ee._mode.root[i]=r,te[t]||(te[t]={}),te[t][s]=`var(${i})`)}))}))})),this._compValues=te,this._compKeys=Object.entries(this._compValues.bp||{}).reduce(((e,[t,s])=>(e[t+"_"]=`@media (min-width:${s})`,e[t.toUpperCase()+"_"]=`@media (max-width:${s})`,e)),{}),this.baseStyles=this.compile("init",{c:Object.assign(Object.assign(Object.assign(Object.assign({},ee),{$r_:Object.assign(Object.assign({},ee._mode.root),{$c:"{uni.inh}",$fsz:"{rem.def}",$ff:"{ff.def}",$:{$c:"{uni.inh}",$fsz:"{rem.def}",$ff:"{ff.def}"}})}),(null===(t=ee._mode)||void 0===t?void 0:t.dark)?{$dark_:{$r_:ee._mode.dark}}:{}),(null===(s=ee._mode)||void 0===s?void 0:s.light)?{$light_:{$r_:ee._mode.light}}:{})})},this._prepareVarName=(...e)=>["-",this._prefix,...e].join("-"),this.compile=(e,t)=>{const{_:s,kf:r,k:i={},v:o={},c:l}=t,n=this._prepareSelector.bind(this),a=this._parseSelector.bind(this);let c=jl({},l),p=jl({},i),m=jl({_:{}},o),h="";if(s)for(let t in s){const r=s[t];if("c"===r.typ){const s={};El.forEach((i=>{const o=t+i,l=this._prepareVarName(e,o);s[i]=l,p["_"+o]=s[i],h+=zl(l,r)})),m._[t]=kl({l:Ol(s.l),c:Ol(s.c),h:Ol(s.h),a:Ol(s.a)}),r.all&&(c["_"+t+"l"]=`&lig=>${this._prepareVarName(e,t+"l")}:{1}`,c["_"+t+"c"]=`&chr=>${this._prepareVarName(e,t+"c")}:{1}`,c["_"+t+"h"]=`&hue=>${this._prepareVarName(e,t+"h")}:{1}`,c["_"+t+"a"]=`&alp=>${this._prepareVarName(e,t+"a")}:{1}`)}else{const s=this._prepareVarName(e,t);p["_"+t]=s,m._[t]=Ol(s),h+=zl(s,r)}}const d=e=>p[e]||this._compKeys[e]||xl[e],b=e=>m[e]||this._compValues[e]||this._params.root[e],f=e=>e.replaceAll(/\{(.+?)\}/g,((e,t)=>{const[s,r]=t.split(".");if(r){const e=b(s);return(null==e?void 0:e[r])||(null==e?void 0:e.def)}return d(s)})),u=e=>{const t=e.split("?");let s;for(let e in t){const r=t[e],[i,o]=r.split("=>"),[l,n,a]=i.match(/(\w+)(\[[\w,]+\])?/),c=b(n);if(!c)continue;s=c;let p=Object.entries(s);const m=null==a?void 0:a.slice(1,-1).split(",");if(m){const e=new Set(m);p=p.filter((([t,s])=>e.has(t)))}if(o){let[e,t]=o.split("|");void 0===t&&(t=e,e=""),p=p.map((([s,r])=>[e.replace("{0}",s)||s,f(t.replaceAll("{1}",r))]))}(m||o)&&(s=Object.fromEntries(p));break}return s};function _(t,s,r){var i,o,l;let c=""+t;if((null===(i=null==t?void 0:t.startsWith)||void 0===i?void 0:i.call(t,"$"))&&(c=d(t.slice(1)),!c))return"";if(Array.isArray(s))return _(c,Object.assign({},...s.map((e=>"string"==typeof e?u(e):e))),r);if(null==s)return"";if("object"==typeof s){const t=!r||c.startsWith("&")||c.startsWith("@")?"":"&";if(c.startsWith("_")){const{e:r,m:i,mv:o}=a(c);return i&&"string"!=typeof o?Object.entries(s).reduce(((s,[o,l])=>{let a;return a="object"==typeof l?Object.entries(l).reduce(((e,t)=>e+_(...t,c)),""):l+";",s+t+n({b:e,e:r,m:i,mv:o})+Sl(a)}),""):t+n({b:e,e:r,m:i,mv:o})+Sl(Object.entries(s).reduce(((e,t)=>e+_(...t,c)),""))}return t+c+Sl(Object.entries(s).reduce(((e,t)=>e+_(...t,c)),""))}{let e=""+s;return(null===(o=null==e?void 0:e.startsWith)||void 0===o?void 0:o.call(e,"&"))?_(c,u(e.slice(1)),r):(null===(l=null==e?void 0:e.includes)||void 0===l?void 0:l.call(e,"{"))?_(c,f(e),r):$l(c,s)}}let g="";if(r)for(let e in r){const t=r[e];g+=`@keyframes ${e} `+Sl(Object.entries(t).reduce(((e,[t,s])=>e+t+(String(+t)===t?"%":"")+Sl(Object.entries(s).reduce(((e,t)=>e+_(...t)),""))),""))}return h+g+Object.entries(c).reduce(((e,t)=>e+_(...t)),"")};const{mode:t,prefix:s,params:_}=e;this._mode=t||"a",this._prefix=s||"eff","c"===this._mode?this._prepareSelector=({b:e,e:t,m:s,mv:r,s:i})=>`.${e}${(t?"__"+t:"")+(s?"_"+s:"")+(s&&r?"_"+r:"")+(i?":"+i:"")}`:this._prepareSelector=({b:e,e:t,m:s,mv:r,s:i})=>`[data-${e}${t?"-"+t:""}${s?'~="'+s+(r?"-"+r:"")+(i?":"+i:"")+'"':""}]`,this._analyzeParams(_)}_parseSelector(e){let t,s,r,i;return e.startsWith("__")?[t,s,r]=e.slice(2).split("_"):[t,s,r]=e.split("_"),r&&([r,i]=r.split(":")),{e:t,m:s,mv:r,s:i}}expandSelector(e,t){const{e:s,m:r,mv:i,s:o}=this._parseSelector(t),l=o&&this._getStateSelector(o);return[this._prepareSelector({b:e,e:s,m:r,mv:i}),this._prepareSelector({b:e,e:s,m:r,mv:i,s:o})+"{"+l]}_getStateSelector(e){const t=e+"_",s=this._compKeys[t]||xl[t];if(s)return(s.startsWith("&")||s.startsWith("@")?"":"&")+s}}class Al{constructor(e){if(this._stylesheets={},this._rules={},this._expandedSelectors={},this._styleSheetsArray=[],e)for(let t in e)this.pack(t,e[t])}get(e){return this._stylesheets[e]}getAll(){return this._stylesheets}add(e,t){if(!this._stylesheets[e])return this._stylesheets[e]=t,this._styleSheetsArray.push(t),this.cacheRules(e,t),!0}remove(e){const t=this.get(e);if(!t)return;const s=this._styleSheetsArray.findIndex((e=>e===t));return s>-1&&(this._styleSheetsArray.splice(s,1),delete this._stylesheets[e],delete this._rules[e],delete this._expandedSelectors[e]),!0}removeAll(){return this._styleSheetsArray.splice(0),this._stylesheets={},this._rules={},this._expandedSelectors={},!0}pack(e,t){const s=new CSSStyleSheet;if(s.replaceSync(t),s.cssRules.length)return this.add(e,s),s;console.log(`StyleSheet '${e}' is empty`)}cacheRules(e,t){[...t.cssRules].forEach((t=>{const s=t.cssText.split(" {")[0];s&&(this._rules[e]||(this._rules[e]={}),this._rules[e][s]=t)})),this._expandedSelectors[e]=new Set}getExpandedSelectors(e){return this._expandedSelectors[e]}expandRule(e,t,s){const r=this._rules[e];if(!r)return void console.log(`No stylesheet found with key '${e}'`);const i=r[t];if(!i)return void console.log(`No rule with selector '${t}' found in stylesheet with key '${e}'`);const[o,l]=i.cssText.split("{");if(i.parentStyleSheet){const t=s+"{"+l+"}",o=i.parentStyleSheet.insertRule(t,i.parentStyleSheet.cssRules.length),n=i.parentStyleSheet.cssRules[o],a=s.split("{")[0];return r[a]=n,this._expandedSelectors[e].add(a),!0}}apply(e){e.adoptedStyleSheets=this._styleSheetsArray}}const Nl="style-provider";customElements.define(Nl,class extends HTMLElement{get settingsId(){return this.getAttribute("settingsid")||"effcss"}constructor(){super(),this.getSettings=()=>{var e;const t=null===(e=null===document||void 0===document?void 0:document.getElementById(this.settingsId))||void 0===e?void 0:e.textContent;return t?JSON.parse(t):{}}}connectedCallback(){const e=this.getSettings(),{params:t,styles:s,ext:r}=e;this.processor=new ql({prefix:this.getAttribute("prefix")||void 0,mode:this.getAttribute("mode")||void 0,params:t}),this.manager=new Al({init:`${Nl} {display: contents;}`+this.processor.baseStyles}),this.processStyles(s,r),this.manager.apply(document)}compileStyleSheet(e,t){var s,r;const i=null===(s=this.processor)||void 0===s?void 0:s.compile(e,t);if(i)return null===(r=this.manager)||void 0===r?void 0:r.pack(e,i)}expandStyleSheet(e,t){var s;const r=null===(s=this.manager)||void 0===s?void 0:s.getExpandedSelectors(e);if(this.processor&&r){const s=new Set(t).difference(r),i=s.size;return i&&this.processor&&s.keys().forEach((t=>{var s;const[r,i]=this.processor.expandSelector(e,t);null===(s=this.manager)||void 0===s||s.expandRule(e,r,i)})),i}}processStyles(e,t){if(e)for(let t in e){const s=e[t];this.compileStyleSheet(t,s)}if(t)for(let e in t){const s=t[e];this.expandStyleSheet(e,s)}}});
|
|
1
|
+
"function"==typeof SuppressedError&&SuppressedError;const e=(...e)=>e.join("-"),t=(...e)=>e.join(" "),s=(...e)=>e.join(","),i=(e,t)=>((e,t)=>Object.fromEntries(Object.entries(e).map((e=>t(e)))))(e,(e=>[e[0],t(e[1])])),r=e=>e&&i(e,(e=>e+"rem")),o=e=>e&&i(e,(e=>e+"ms")),n=e=>e&&i(e,(e=>e+"px")),l=e=>e&&i(e,(e=>e+"deg")),a=e=>e&&i(e,(e=>e+"vw")),c=e=>e&&i(e,(e=>e+"vh")),p=e=>e&&i(e,(e=>e+"vmin")),h=e=>e&&i(e,(e=>e+"vmax")),d=e=>e&&i(e,(e=>e+"cqb")),m=e=>e&&i(e,(e=>e+"cqi")),b=e=>e&&i(e,(e=>e+"cqmin")),f=e=>e&&i(e,(e=>e+"cqmax")),u=e=>e&&i(e,(e=>"span "+e)),_="x",g="y",y="horizontal",v="vertical",x="text",w="font",S="column",j="max",$="min",z="content",k=z+"s",O="items",A="self",E="inline",q="block",N="size",V="radius",R="direction",W="outline",I="style",P="end",C="start",K="center",T="word",B="line",G="break",H="wrap",J="nowarp",L="template",M="rule",U="object",D="top",F="left",Q="bottom",X="right",Y="width",Z="color",ee="overflow",te="align",se="type",ie="transform",re="all",oe="height",ne="normal",le="opacity",ae="visibility",ce="scale",pe="box",he="border",de="position",me="none",be="auto",fe="fill",ue="stroke",_e="reverse",ge="space",ye="fixed",ve="origin",xe="alpha",we="luminance",Se="clip",je="zoom",$e="scroll",ze="padding",ke="margin",Oe="both",Ae="mode",Ee="repeat",qe="light",Ne="linear",Ve="hidden",Re=e(he,Q),We=e(he,F),Ie=e(he,X),Pe=e(he,D),Ce=e(he,q),Ke=e(he,E),Te=e(Ce,C),Be=e(Ce,P),Ge=e(Ke,C),He=e(Ke,P),Je=e(he,Y),Le=e(Re,Y),Me=e(We,Y),Ue=e(Ie,Y),De=e(Pe,Y),Fe=e(Ce,Y),Qe=e(Ke,Y),Xe=e(Te,Y),Ye=e(Be,Y),Ze=e(Ge,Y),et=e(He,Y),tt=e(he,V),st=e(he,Q,F,V),it=e(he,Q,X,V),rt=e(he,D,F,V),ot=e(he,D,X,V),nt=e(he,C,P,V),lt=e(he,C,C,V),at=e(he,P,P,V),ct=e(he,P,C,V),pt=e(he,Z),ht=e(We,Z),dt=e(Ie,Z),mt=e(Pe,Z),bt=e(Re,Z),ft=e(Ce,Z),ut=e(Ke,Z),_t=e(Te,Z),gt=e(Be,Z),yt=e(Ge,Z),vt=e(He,Z),xt=e(he,I),wt=e(We,I),St=e(Ie,I),jt=e(Pe,I),$t=e(Re,I),zt=e(Ce,I),kt=e(Ke,I),Ot=e(Te,I),At=e(Be,I),Et=e(Ge,I),qt=e(He,I),Nt=e(W,Z),Vt=e(W,Y),Rt=e(W,I),Wt=e(W,"offset"),It=e(ee,_),Pt=e(ee,g),Ct=e(U,"fit"),Kt=e(U,de),Tt=e(ce,"down"),Bt=e(pe,"shadow"),Gt=e(ze,pe),Ht=e(he,pe),Jt=e(z,pe),Lt=e(fe,pe),Mt=e(ue,pe),Ut=e("view",pe),Dt=e("no",Se),Ft=e(Ee,_),Qt=e(Ee,g),Xt=e("no",Ee),Yt=e(ze,F),Zt=e(ze,D),es=e(ze,X),ts=e(ze,Q),ss=e(ke,F),is=e(ke,D),rs=e(ke,X),os=e(ke,Q),ns="grid",ls="row",as="justify",cs="flex",ps=e(E,cs),hs=e(cs,"basis"),ds=e(cs,"grow"),ms=e(cs,"shrink"),bs=e(cs,R),fs=e(cs,H),us=e(as,z),_s=e(as,O),gs=e(te,O),ys=e(te,z),vs=e(te,A),xs=e(ns,L,ls+"s"),ws=e(ns,L,S+"s"),Ss=e(ls,"gap"),js=e(S,"gap"),$s=e(as,A),zs=e(ns,ls,P),ks=e(ns,ls,C),Os=e(ns,S,P),As=e(ns,S,C),Es=e(S,"count"),qs=e(S,fe),Ns=e(S,M,Z),Vs=e(S,M,I),Rs=e(S,M,Y),Ws=e(S,"span"),Is=e(S,Y),Ps=e(ls,_e),Cs=e(S,_e),Ks=e(H,_e),Ts=e(cs,P),Bs=e(cs,C),Gs=e(ge,"between"),Hs=e(ge,"around"),Js=e(ge,"evenly"),Ls=e(E,ns),Ms="mask",Us=e(Ms,Se),Ds=e(Ms,"composite"),Fs=e(Ms,Ae),Qs=e(Ms,ve),Xs=e(Ms,de),Ys=e(Ms,Ee),Zs=e(Ms,N),ei=e(Ms,se),ti="timing-function",si="delay",ii="duration",ri="animation",oi=e(ri,"name"),ni=e(ri,ti),li=e(ri,R),ai=e(ri,"iteration-count"),ci=e(ri,ii),pi=e(ri,si),hi=ri+"-play-state",di=e(ri,fe,Ae),mi="transition",bi=mi+"-behavior",fi=mi+"-property",ui=e(mi,ti),_i=e(mi,ii),gi=e(mi,si),yi="alternate",vi=e(yi,_e),xi="-out",wi="ease",Si=wi+"-in",ji=Si+xi,$i=wi+xi,zi="step",ki=e(zi,C),Oi=e(zi,P),Ai="translate",Ei="rotate",qi="perspective",Ni=e(qi,ve),Vi=t(F,D),Ri=t(X,D),Wi=t(F,Q),Ii=t(X,Q),Pi="inset",Ci=e(ie,pe),Ki=e(ie,ve),Ti=e(ie,I),Bi=e(Pi,q),Gi=e(Pi,q,P),Hi=e(Pi,q,C),Ji=e(Pi,E),Li=e(Pi,E,P),Mi=e(Pi,E,C),Ui=e("fit",z),Di=e($,z),Fi=e(j,z),Qi=e(pe,"sizing"),Xi=e(j,Y),Yi=e($,Y),Zi=e(j,oe),er=e($,oe),tr=e(q,N),sr=e(j,tr),ir=e($,tr),rr=e(E,N),or=e(j,rr),nr=e($,rr),lr="snap",ar=e($e,"behavior"),cr=e($e,ke),pr=e($e,ke,D),hr=e($e,ke,Q),dr=e($e,ke,F),mr=e($e,ke,X),br=e($e,ke,q),fr=e($e,ke,q,P),ur=e($e,ke,q,C),_r=e($e,ke,E),gr=e($e,ke,E,P),yr=e($e,ke,E,C),vr=e($e,ze),xr=e($e,ze,D),wr=e($e,ze,Q),Sr=e($e,ze,F),jr=e($e,ze,X),$r=e($e,ze,q),zr=e($e,ze,q,P),kr=e($e,ze,q,C),Or=e($e,ze,E),Ar=e($e,ze,E,P),Er=e($e,ze,E,C),qr=e($e,lr,te),Nr=e($e,lr,"stop"),Vr=e($e,lr,se),Rr="mandatory",Wr=t(_,Rr),Ir=t(g,Rr),Pr=t(q,Rr),Cr=t(E,Rr),Kr=t(Oe,Rr),Tr="proximity",Br=t(_,Tr),Gr=t(g,Tr),Hr=t(q,Tr),Jr=t(E,Tr),Lr=t(Oe,Tr),Mr=e(x,"decoration"),Ur=e(Mr,Z),Dr=e(x,ie),Fr=e(x,te),Qr=e(x,ee),Xr=e(x,"orientation"),Yr=e(T,G),Zr=e(w,N),eo=w+"-weight",to=w+"-family",so=e(w,I),io=e("writing",Ae),ro=e(B,oe),oo=e(B,G),no=B+"-through",lo="over"+B,ao="under"+B,co="pre",po=e(co,B),ho=e(co,H),mo=G+"-spaces",bo=e(G,re),fo=e(G,T),uo=y+"-tb",_o=v+"-lr",go=v+"-rl",yo="keep-"+re,vo="pointer",xo="pan",wo=e(xo,_),So=e(xo,F),jo=e(xo,X),$o=e(xo,g),zo=e(xo,"up"),ko=e(xo,"down"),Oo=e("pinch",je),Ao=e(v,x),Eo="grab",qo=Eo+"bing",No="resize",Vo="col-"+No,Ro="row-"+No,Wo="n-"+No,Io="e-"+No,Po="s-"+No,Co="w-"+No,Ko="ne-"+No,To="ew-"+No,Bo="nw-"+No,Go="se-"+No,Ho="sw-"+No,Jo="ns-"+No,Lo="nesw-"+No,Mo="nwse-"+No,Uo=e(je,"in"),Do=e(je,"out"),Fo=e(vo,"events"),Qo=e($e,de),Xo=e("caret",Z),Yo=e("accent",Z),Zo="filter",en="backdrop-"+Zo,tn="background",sn=e(tn,Z),rn=e(tn,Se),on=e(tn,ve),nn=e(tn,de),ln=e(tn,de,_),an=e(tn,de,g),cn=e(tn,Ee),pn=e(tn,N),hn=e(tn,"blend",Ae),dn=e(tn,"attachment"),mn="gradient",bn=e(Ne,mn);e("radial",mn),e("conic",mn);const fn=e(z,ae);e(ue,Y),e(fe,M);const un=e(Z,"dodge"),_n=e(Z,"burn"),gn=e("hard",qe),yn=e("soft",qe);e(Z,"mix");const vn="revert",xn={uni:{ini:"initial",inh:"inherit",u:"unset",r:vn,rl:e(vn,"layer"),a:be,no:me},ali:{s:C,e:P,c:K,st:"stretch",sb:Gs,sa:Hs,se:Js,b:"baseline",fs:Bs,fe:Ts,no:me},dis:{g:ns,ig:Ls,f:cs,if:ps},fd:{r:ls,rr:Ps,c:S,cr:Cs},fw:{w:H,nw:J,wr:Ks},rep:{rx:Ft,ry:Qt,r:Ee,s:ge,ro:"round",nr:Xt},ttf:{l:Ne,e:wi,ei:Si,eo:$i,eio:ji,ss:ki,se:Oi},ws:{n:ne,nw:J,p:co,pl:po,pw:ho,bs:mo},wb:{n:ne,ba:bo,ka:yo,bw:fo},wm:{htb:uo,vlr:_o,vrl:go},hyp:{no:me,m:"manual",a:be},tt:{l:"lowercase",u:"uppercase",c:"capitalize"},td:{lt:no,o:lo,u:ao},tor:{m:"mixed",u:"upright",sr:"sideways-right",s:"sideways",ugo:"use-glyph-orientation"},ta:{l:F,c:K,j:as,r:X,s:C,e:P},tp:{all:re,col:s(Z,sn,pt,Ur),icon:s(fe,ue),filter:s(Zo,en),ind:s(ze,ke),sz:s(Y,Xi,Yi,oe,Zi,er),esz:s(ir,tr,sr,nr,rr,or),o:le,b:he,f:cs,g:ns,pos:s(de,F,D,Q,X),tf:s(ie,Ai,ce,Ei,"skew",qi)},lb:{a:be,any:"anywhere",n:ne,l:"loose",s:"strict"},ov:{h:Ve,s:$e,a:be,c:Se,e:"ellipsis"},v:{h:Ve,v:"visible",c:"collapse",a:be},wc:{a:be,sp:Qo,c:k,tf:ie,o:le,i:Pi,tfi:ie+","+Pi},afm:{no:me,f:"forwards",b:"backwards",both:Oe},adir:{r:_e,a:yi,ar:vi},aps:{r:"running",p:"paused"},tb:{ad:"allow-discrete",n:ne},app:{n:me,a:be},pe:{a:be,no:me,all:re,f:fe,s:ue},cur:{h:"help",a:be,p:vo,cm:"context-menu",pr:"progress",w:"wait",cell:"cell",crh:"crosshair",t:x,vt:Ao,cp:"copy",m:"move",g:Eo,gng:qo,cr:Vo,rr:Ro,nr:Wo,er:Io,sr:Po,wr:Co,ner:Ko,ewr:To,nwr:Bo,ser:Go,swr:Ho,nsr:Jo,neswr:Lo,nwser:Mo,zi:Uo,zo:Do},res:{n:me,v:v,h:y,b:Oe},toa:{a:be,no:me,px:wo,pl:So,pr:jo,py:$o,pu:zo,pd:ko,pz:Oo,m:"manipulation"},us:{n:me,t:x,all:re,a:be},sb:{a:be,s:"smooth"},sss:{n:ne,a:"always"},sst:{n:me,x:_,y:g,b:q,i:E,both:Oe,xm:Wr,ym:Ir,bm:Pr,im:Cr,bothm:Kr,xp:Br,yp:Gr,bp:Hr,ip:Jr,bothp:Lr},fst:{i:"italic",n:ne,o:"oblique"},pos:{r:"relative",a:"absolute",f:ye,s:"static"},posv:{b:Q,t:D,c:K,l:F,r:X,lt:Vi,rt:Ri,lb:Wi,rb:Ii},csz:{cv:"cover",cn:"contain",a:be,f:fe,sd:Tt},cf:{a:be,b:"balance"},cs:{no:me,all:re},box:{c:Jt,p:Gt,b:Ht,f:Lt,s:Mt,v:Ut,nc:Dt,t:x},mcm:{a:"add",s:"subtract",i:"intersect",e:"exclude"},mtp:{a:xe,l:we},mm:{a:xe,l:we,m:"match-source"},bgbm:{n:ne,m:"multiply",scr:"screen",o:"overlay",d:"darken",l:qe+"en",dif:"difference",exc:"exclusion",h:"hue",sat:"saturation",c:Z,lum:"luminosity",cd:un,cb:_n,hl:gn,sl:yn},bga:{s:$e,f:ye,l:"local"},ls:{no:me,dt:"dotted",i:Pi,h:Ve,ds:"dashed",s:"solid",db:"double",o:"outset",r:"ridge",g:"groove"},usz:{min:Di,max:Fi,fit:Ui,no:0,a:be}},wn={a:ri,an:oi,adur:ci,adel:pi,aps:hi,afm:di,adir:li,aic:ai,atf:ni,trn:mi,tdur:_i,tdel:gi,tb:bi,tp:fi,ttf:ui,bor:he,bw:Je,br:tt,bs:xt,bls:wt,brs:St,bts:jt,bbs:$t,bbls:zt,bis:kt,bbss:Ot,bbes:At,biss:Et,bies:qt,brw:Ue,blw:Me,btw:De,bbw:Le,btlr:rt,btrr:ot,bbrr:it,bblr:st,biw:Qe,bblw:Fe,bbew:Ye,bbsw:Xe,bisw:Ze,biew:et,besr:ct,beer:at,bssr:lt,bser:nt,bc:pt,blc:ht,brc:dt,btc:mt,bbc:bt,bblc:ft,bic:ut,bbsc:_t,bbec:gt,bisc:yt,biec:vt,bgc:sn,c:Z,acc:Yo,ctc:Xo,st:ue,fi:fe,flt:Zo,bf:en,g:ns,f:cs,dis:"display",jc:us,ji:_s,ai:gs,ac:ys,gtr:xs,gtc:ws,rg:Ss,cg:js,as:vs,js:$s,gre:zs,grs:ks,gce:Os,gcs:As,fd:bs,fw:fs,fs:ms,fg:ds,fb:hs,ord:"order",m:ke,ml:ss,mr:rs,mt:is,mb:os,p:ze,pl:Yt,pr:es,pt:Zt,pb:ts,oc:Nt,ow:Vt,os:Rt,oo:Wt,l:F,r:X,t:D,b:Q,ins:Pi,ib:Bi,ibe:Gi,ibs:Hi,ii:Ji,iie:Li,iis:Mi,wc:"will-change",app:"appearance",pe:Fo,cur:"cursor",toa:"touch-action",us:"user-select",res:No,sb:ar,ssa:qr,sss:Nr,sst:Vr,sm:cr,sml:dr,smr:mr,smt:pr,smb:hr,sp:vr,spl:Sr,spr:jr,spt:xr,spb:wr,smbl:br,smbe:fr,smbs:ur,smi:_r,smie:gr,smis:yr,spbl:$r,spbe:zr,spbs:kr,spi:Or,spie:Ar,spis:Er,ar:"aspect-ratio",w:Y,maxw:Xi,minw:Yi,h:oe,minh:er,maxh:Zi,bl:tr,maxb:sr,minb:ir,i:rr,mini:nr,maxi:or,per:qi,pero:Ni,rot:Ei,sc:ce,tf:ie,tfb:Ci,tfo:Ki,tfs:Ti,tr:Ai,z:je,lts:"letter-spacing",lh:ro,lb:oo,fst:so,ff:to,fwg:eo,fsz:Zr,tt:Dr,td:Mr,ta:Fr,to:Qr,ws:"white-space",tor:Xr,wb:Yr,wm:io,hyp:"hyphens",bsz:Qi,bsh:Bt,pos:de,cf:qs,crs:Vs,crc:Ns,crw:Rs,cs:Ws,cw:Is,cc:Es,bgcl:rn,bgp:nn,bgpx:ln,bgpy:an,bgbm:hn,bgo:on,bgr:cn,bga:dn,bgsz:pn,mcl:Us,mcm:Ds,mm:Fs,mo:Qs,mp:Xs,mre:Ys,msz:Zs,mtp:ei,obf:Ct,obp:Kt,cnt:z,ov:ee,ovx:It,ovy:Pt,v:ae,cv:fn,o:le,zi:"z-index",zm:je,lg:bn,inf:"infinite",r_:":root","":"*",h_:":hover",f_:":focus",a_:":active",v_:":visited",val_:":valid",inv_:":invalid",e_:":empty",d_:":disabled",fc_:":first-child",lc_:":last-child",oc_:":only-child",odd_:":nth-child(odd)",even_:":nth-child(even)",ft_:":first-of-type",lt_:":last-of-type",ot_:":only-of-type",bef_:"::before",aft_:"::after",bd_:"::backdrop",ba_:"&::before,&::after",light_:"@media(prefers-color-scheme: light)",dark_:"@media(prefers-color-scheme: dark)"},Sn={light:{lig:{def:.75,c:.05,s:.65,m:.75,l:.85,n:.9}},dark:{lig:{def:.4,n:.25,s:.3,m:.4,l:.5,c:.95}},root:Object.assign({lig:{def:.75,c:.05,s:.65,m:.75,l:.85,n:.9},hue:{def:261.35,b:261.35,i:194.77,e:29.23,w:70.66,s:142.49},chr:{def:.03,xs:.03,s:.06,m:.1,l:.15,xl:.25},alp:{def:1,min:0,xs:.1,s:.25,m:.5,l:.75,xl:.9,max:1},rem:{def:16},ff:{def:"Roboto, sans-serif",b:"Georgia, serif"},fwg:{xs:100,s:200,m:400,l:600,xl:700},time:{def:300,xs:100,s:200,m:300,l:450,xl:600,no:0,min:50,max:750},coef:[0,1,2,3,4,5,6,7,8,9,10,11,12].reduce(((e,t)=>(e[t]=t,e)),{}),rat:{1:1,"2/1":2,"1/2":.5,"4/3":1.3333,"3/4":.75,"9/16":.5625,"16/9":1.7778},sp:{"3xs":.125,"2xs":.25,xs:.5,s:.75,m:1,l:1.25,xl:1.5,"2xl":2,"3xl":4},sz:{"3xs":1,"2xs":1.5,xs:2,s:5,m:10,l:15,xl:20,"2xl":25,"3xl":30},szu:{a:"auto",no:0},bp:{xs:30,sm:40,md:48,lg:64,xl:80},o:{min:0,xs:.1,s:.25,m:.5,l:.75,xl:.9,max:1},vu:{0:0,"1/4":25,"1/2":50,"3/4":75,1:100},cqu:{0:0,"1/4":25,"1/2":50,"3/4":75,1:100},fr:{0:0,"1/12":"0.0833","1/10":"0.1","1/6":"0.1667","1/5":"0.2","1/4":"0.25","3/10":"0.3","1/3":"0.3333","2/5":"0.4","5/12":"0.4167","1/2":"0.5","7/12":"0.5833","3/5":"0.6","2/3":"0.6667","7/10":"0.7","3/4":"0.75","4/5":"0.8","5/6":"0.8333","9/10":"0.9","11/12":"0.9167",1:"1"},rad:{s:.5,m:1,l:2},th:{s:.1,m:.25,l:.5},sc:{xs:.5,s:.67,m:1,l:1.5,xl:2},tr:{xs:.25,s:.5,m:1,l:1.5,xl:2},sk:{xs:-15,s:-10,m:0,l:10,xl:15},rot:{xs:-180,s:-90,m:0,l:90,xl:180},zm:{s:.8,m:1,l:1.2},pers:{s:"100px",m:"200px"},fsz:{xs:.25,s:.5,m:1,l:1.5,xl:2},lh:{xs:1,s:1.25,m:1.5,l:1.75,xl:2},lsp:{no:0,s:.05,m:.1,l:.2},zi:{1:1,2:2,3:3,4:4,5:5},ic:{inf:"infinite",1:1,2:2}},xn)},jn=e=>`{${e}}`,$n=Object.assign.bind(Object),zn=(e,t)=>`${e}:${t};`,kn=(e,t)=>["@property",e,jn(zn("syntax",t.syn||'"*"')+zn("inherits",t.inh||!1)+(t.ini?zn("initial-value",t.ini):""))].join(" "),On=e=>`var(${e})`,An=({l:e,c:t,h:s,a:i=1})=>`oklch(${e} ${t} ${s} / ${i})`,En=["l","c","h","a"];class qn{constructor(e){this.baseStyles="",this._prefix="eff",this._mode="a",this._params=Sn,this._compKeys={},this._compValues={},this._analyzeParams=e=>{var t,s;if(e)for(const t in e)this._params[t]=$n(this._params[t]||{},e[t]);const{time:_,rem:g,coef:y,szu:v,sz:x,sp:w,rad:S,th:j,fr:$,bp:z,fsz:k,lsp:O,tr:A,sk:E,rot:q,fg:N,fs:V,fb:R,fo:W,ra:I,ro:P,co:C,ca:K,ins:T,cqu:B,cqb:G,cqi:H,cqmin:J,cqmax:L,vu:M,vw:U,vh:D,vmin:F,vmax:Q}=this._params.root,X=(e=>e&&i(e,(e=>100*Number(e)+"%")))($);this._params.root=$n(this._params.root,{cqb:d(G||B),cqi:m(H||B),cqmin:b(J||B),cqmax:f(L||B),vw:a(U||M),vh:c(D||M),vmin:p(F||M),vmax:h(Q||M),fo:W||y,fg:N||y,fs:V||y,fb:R||X,ra:I||u(y),ro:P||y,ca:K||u(y),co:C||y,ins:T||X,sz:$n(r(x)||{},v),sp:$n(r(w)||{},v),rad:r(S),th:r(j),bp:r(z),fsz:r(k),lsp:r(O),tr:r(A),sk:l(E),rot:l(q),perc:X,time:o(_),rem:n(g)});const Y=function(e,t){var s={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(s[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(s[i[r]]=e[i[r]])}return s}(this._params,["root"]),Z=Object.entries(Y),ee={_mode:{root:{}}},te={};Z.forEach((([e,t])=>{ee._mode[e]||(ee._mode[e]={}),Object.entries(t).forEach((([t,s])=>{Object.entries(s).forEach((([s,i])=>{const r=this._prepareVarName(t,s);ee._mode[e][r]=i,ee._mode.root[r]||(ee._mode.root[r]=i,te[t]||(te[t]={}),te[t][s]=`var(${r})`)}))}))})),this._compValues=te,this._compKeys=Object.entries(this._compValues.bp||{}).reduce(((e,[t,s])=>(e[t+"_"]=`@media (min-width:${s})`,e[t.toUpperCase()+"_"]=`@media (max-width:${s})`,e)),{}),this.baseStyles=this.compile("init",{c:Object.assign(Object.assign(Object.assign(Object.assign({},ee),{$r_:Object.assign(Object.assign({},ee._mode.root),{$c:"{uni.inh}",$fsz:"{rem.def}",$ff:"{ff.def}",$:{$c:"{uni.inh}",$fsz:"{rem.def}",$ff:"{ff.def}"}})}),(null===(t=ee._mode)||void 0===t?void 0:t.dark)?{$dark_:{$r_:ee._mode.dark}}:{}),(null===(s=ee._mode)||void 0===s?void 0:s.light)?{$light_:{$r_:ee._mode.light}}:{})})},this._prepareVarName=(...e)=>["-",this._prefix,...e].join("-"),this.compile=(e,t)=>{const{_:s,kf:i,k:r={},v:o={},c:n}=t,l=this._prepareSelector.bind(this),a=this._parseSelector.bind(this);let c=$n({},n),p=$n({},r),h=$n({_:{}},o),d="";if(s)for(let t in s){const i=s[t];if("c"===i.typ){const s={};En.forEach((r=>{const o=t+r,n=this._prepareVarName(e,o);s[r]=n,p["_"+o]=s[r],d+=kn(n,i)})),h._[t]=An({l:On(s.l),c:On(s.c),h:On(s.h),a:On(s.a)}),i.all&&(c["_"+t+"l"]=`&lig=>${this._prepareVarName(e,t+"l")}:{1}`,c["_"+t+"c"]=`&chr=>${this._prepareVarName(e,t+"c")}:{1}`,c["_"+t+"h"]=`&hue=>${this._prepareVarName(e,t+"h")}:{1}`,c["_"+t+"a"]=`&alp=>${this._prepareVarName(e,t+"a")}:{1}`)}else{const s=this._prepareVarName(e,t);p["_"+t]=s,h._[t]=On(s),d+=kn(s,i)}}const m=e=>p[e]||this._compKeys[e]||wn[e],b=e=>h[e]||this._compValues[e]||this._params.root[e],f=e=>e.replaceAll(/\{(.+?)\}/g,((e,t)=>{const[s,i]=t.split(".");if(i){const e=b(s);return(null==e?void 0:e[i])||(null==e?void 0:e.def)}return m(s)})),u=e=>{const t=e.split("?");let s;for(let e in t){const i=t[e],[r,o]=i.split("=>"),[n,l,a]=r.match(/(\w+)(\[[\w,]+\])?/),c=b(l);if(!c)continue;s=c;let p=Object.entries(s);const h=null==a?void 0:a.slice(1,-1).split(",");if(h){const e=new Set(h);p=p.filter((([t,s])=>e.has(t)))}if(o){let[e,t]=o.split("|");void 0===t&&(t=e,e=""),p=p.map((([s,i])=>[e.replace("{0}",s)||s,f(t.replaceAll("{1}",i))]))}(h||o)&&(s=Object.fromEntries(p));break}return s};function _(t,s,i){var r,o,n;let c=""+t;if((null===(r=null==t?void 0:t.startsWith)||void 0===r?void 0:r.call(t,"$"))&&(c=m(t.slice(1)),!c))return"";if(Array.isArray(s))return _(c,Object.assign({},...s.map((e=>"string"==typeof e?u(e):e))),i);if(null==s)return"";if("object"==typeof s){const t=!i||c.startsWith("&")||c.startsWith("@")?"":"&";if(c.startsWith("_")){const{e:i,m:r,mv:o}=a(c);return r&&"string"!=typeof o?Object.entries(s).reduce(((s,[o,n])=>{let a;return a="object"==typeof n?Object.entries(n).reduce(((e,t)=>e+_(...t,c)),""):n+";",s+t+l({b:e,e:i,m:r,mv:o})+jn(a)}),""):t+l({b:e,e:i,m:r,mv:o})+jn(Object.entries(s).reduce(((e,t)=>e+_(...t,c)),""))}return t+c+jn(Object.entries(s).reduce(((e,t)=>e+_(...t,c)),""))}{let e=""+s;return(null===(o=null==e?void 0:e.startsWith)||void 0===o?void 0:o.call(e,"&"))?_(c,u(e.slice(1)),i):(null===(n=null==e?void 0:e.includes)||void 0===n?void 0:n.call(e,"{"))?_(c,f(e),i):zn(c,s)}}let g="";if(i)for(let e in i){const t=i[e];g+=`@keyframes ${e} `+jn(Object.entries(t).reduce(((e,[t,s])=>e+t+(String(+t)===t?"%":"")+jn(Object.entries(s).reduce(((e,t)=>e+_(...t)),""))),""))}return d+g+Object.entries(c).reduce(((e,t)=>e+_(...t)),"")};const{mode:t,prefix:s,params:_}=e;this._mode=t||"a",this._prefix=s||"eff","c"===this._mode?this._prepareSelector=({b:e,e:t,m:s,mv:i,s:r})=>`.${e}${(t?"__"+t:"")+(s?"_"+s:"")+(s&&i?"_"+i:"")+(r?":"+r:"")}`:this._prepareSelector=({b:e,e:t,m:s,mv:i,s:r})=>`[data-${e}${t?"-"+t:""}${s?'~="'+s+(i?"-"+i:"")+(r?":"+r:"")+'"':""}]`,this._analyzeParams(_)}_parseSelector(e){let t,s,i,r;return e.startsWith("__")?[t,s,i]=e.slice(2).split("_"):[t,s,i]=e.split("_"),i&&([i,r]=i.split(":")),{e:t,m:s,mv:i,s:r}}expandSelector(e,t){const{e:s,m:i,mv:r,s:o}=this._parseSelector(t),n=o&&this._getStateSelector(o);return[this._prepareSelector({b:e,e:s,m:i,mv:r}),this._prepareSelector({b:e,e:s,m:i,mv:r,s:o})+"{"+n]}_getStateSelector(e){const t=e+"_",s=this._compKeys[t]||wn[t];if(s)return(s.startsWith("&")||s.startsWith("@")?"":"&")+s}}class Nn{constructor(e){if(this._stylesheets={},this._rules={},this._expandedSelectors={},this._styleSheetsArray=[],this._listeners=[],this.get=e=>this._stylesheets[e],this.getAll=()=>this._stylesheets,this.add=(e,t)=>{if(!this._stylesheets[e])return this._stylesheets[e]=t,this._styleSheetsArray.push(t),this.cacheRules(e,t),this.notify(),!0},this.remove=e=>{const t=this.get(e);if(!t)return;const s=this._styleSheetsArray.findIndex((e=>e===t));return s>-1&&(this._styleSheetsArray.splice(s,1),delete this._stylesheets[e],delete this._rules[e],delete this._expandedSelectors[e]),this.notify(),!0},this.pack=(e,t)=>{const s=new CSSStyleSheet;if(s.replaceSync(t),s.cssRules.length)return this.add(e,s),s;console.log(`StyleSheet '${e}' is empty`)},this.cacheRules=(e,t)=>{[...t.cssRules].forEach((t=>{const s=t.cssText.split(" {")[0];s&&(this._rules[e]||(this._rules[e]={}),this._rules[e][s]=t)})),this._expandedSelectors[e]=new Set},this.getExpandedSelectors=e=>this._expandedSelectors[e],this.expandRule=(e,t,s)=>{const i=this._rules[e];if(!i)return void console.log(`No stylesheet found with key '${e}'`);const r=i[t];if(!r)return void console.log(`No rule with selector '${t}' found in stylesheet with key '${e}'`);const[o,n]=r.cssText.split("{");if(r.parentStyleSheet){const t=s+"{"+n+"}",o=r.parentStyleSheet.insertRule(t,r.parentStyleSheet.cssRules.length),l=r.parentStyleSheet.cssRules[o],a=s.split("{")[0];return i[a]=l,this._expandedSelectors[e].add(a),!0}},this.apply=e=>{e.adoptedStyleSheets=this._styleSheetsArray},this.registerNode=e=>{this._listeners.push(new WeakRef(e)),this.apply(e)},this.unregisterNode=e=>{const t=this._listeners.findIndex((t=>t.deref()===e));t>=0&&this._listeners.splice(t,1)},this.notify=()=>{this._listeners=this._listeners.reduce(((e,t)=>{const s=t.deref();return s&&(this.apply(s),e.push(t)),e}),[])},e)for(let t in e)this.pack(t,e[t])}removeAll(){return this._styleSheetsArray.splice(0),this._stylesheets={},this._rules={},this._expandedSelectors={},this.notify(),!0}}const Vn="style-provider";customElements.define(Vn,class extends HTMLElement{get settingsId(){return this.getAttribute("settingsid")||"effcss"}constructor(){super(),this.getSettings=()=>{var e;const t=null===(e=null===document||void 0===document?void 0:document.getElementById(this.settingsId))||void 0===e?void 0:e.textContent;return t?JSON.parse(t):{}},this.compileStyleSheet=(e,t)=>{var s,i;const r=null===(s=this.processor)||void 0===s?void 0:s.compile(e,t);if(r)return null===(i=this.manager)||void 0===i?void 0:i.pack(e,r)},this.expandStyleSheet=(e,t)=>{var s;const i=null===(s=this.manager)||void 0===s?void 0:s.getExpandedSelectors(e);if(this.processor&&i){const s=new Set(t).difference(i),r=s.size;return r&&this.processor&&s.keys().forEach((t=>{var s;const[i,r]=this.processor.expandSelector(e,t);null===(s=this.manager)||void 0===s||s.expandRule(e,i,r)})),r}},this.processStyles=(e,t)=>{if(e)for(let t in e){const s=e[t];this.compileStyleSheet(t,s)}if(t)for(let e in t){const s=t[e];this.expandStyleSheet(e,s)}return!0}}connectedCallback(){const e=this.getSettings(),{params:t,styles:s,ext:i}=e;this.processor=new qn({prefix:this.getAttribute("prefix")||void 0,mode:this.getAttribute("mode")||void 0,params:t}),this.manager=new Nn({init:`${Vn} {display: contents;}`+this.processor.baseStyles}),this.processStyles(s,i),null===this.getAttribute("isolated")&&this.manager.registerNode(document)}});
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{values as e,keys as t}from"./css/dict.js";import{toPercent as s,toCqb as r,toCqi as i,toCqmin as l,toCqmax as o,toVw as n,toVh as c,toVmin as a,toVmax as h,toSpan as p,toRem as m,toDeg as d,toMs as f,toPx as u}from"./css/functions.js";import{COMPONENT_NAME as _,SETTINGS_ID as x,getProviderStyles as y}from"./utils.js";"function"==typeof SuppressedError&&SuppressedError;const S={light:{lig:{def:.75,c:.05,s:.65,m:.75,l:.85,n:.9}},dark:{lig:{def:.4,n:.25,s:.3,m:.4,l:.5,c:.95}},root:Object.assign({lig:{def:.75,c:.05,s:.65,m:.75,l:.85,n:.9},hue:{def:261.35,b:261.35,i:194.77,e:29.23,w:70.66,s:142.49},chr:{def:.03,xs:.03,s:.06,m:.1,l:.15,xl:.25},alp:{def:1,min:0,xs:.1,s:.25,m:.5,l:.75,xl:.9,max:1},rem:{def:16},ff:{def:"Roboto, sans-serif",b:"Georgia, serif"},fwg:{xs:100,s:200,m:400,l:600,xl:700},time:{def:300,xs:100,s:200,m:300,l:450,xl:600,no:0,min:50,max:750},coef:[0,1,2,3,4,5,6,7,8,9,10,11,12].reduce(((e,t)=>(e[t]=t,e)),{}),rat:{1:1,"2/1":2,"1/2":.5,"4/3":1.3333,"3/4":.75,"9/16":.5625,"16/9":1.7778},sp:{"3xs":.125,"2xs":.25,xs:.5,s:.75,m:1,l:1.25,xl:1.5,"2xl":2,"3xl":4},sz:{"3xs":1,"2xs":1.5,xs:2,s:5,m:10,l:15,xl:20,"2xl":25,"3xl":30},szu:{a:"auto",no:0},bp:{xs:30,sm:40,md:48,lg:64,xl:80},o:{min:0,xs:.1,s:.25,m:.5,l:.75,xl:.9,max:1},vu:{0:0,"1/4":25,"1/2":50,"3/4":75,1:100},cqu:{0:0,"1/4":25,"1/2":50,"3/4":75,1:100},fr:{0:0,"1/12":"0.0833","1/10":"0.1","1/6":"0.1667","1/5":"0.2","1/4":"0.25","3/10":"0.3","1/3":"0.3333","2/5":"0.4","5/12":"0.4167","1/2":"0.5","7/12":"0.5833","3/5":"0.6","2/3":"0.6667","7/10":"0.7","3/4":"0.75","4/5":"0.8","5/6":"0.8333","9/10":"0.9","11/12":"0.9167",1:"1"},rad:{s:.5,m:1,l:2},th:{s:.1,m:.25,l:.5},sc:{xs:.5,s:.67,m:1,l:1.5,xl:2},tr:{xs:.25,s:.5,m:1,l:1.5,xl:2},sk:{xs:-15,s:-10,m:0,l:10,xl:15},rot:{xs:-180,s:-90,m:0,l:90,xl:180},zm:{s:.8,m:1,l:1.2},pers:{s:"100px",m:"200px"},fsz:{xs:.25,s:.5,m:1,l:1.5,xl:2},lh:{xs:1,s:1.25,m:1.5,l:1.75,xl:2},lsp:{no:0,s:.05,m:.1,l:.2},zi:{1:1,2:2,3:3,4:4,5:5},ic:{inf:"infinite",1:1,2:2}},e)},v=e=>`{${e}}`,b=Object.assign.bind(Object),g=(e,t)=>`${e}:${t};`,$=(e,t)=>["@property",e,v(g("syntax",t.syn||'"*"')+g("inherits",t.inh||!1)+(t.ini?g("initial-value",t.ini):""))].join(" "),j=e=>`var(${e})`,O=({l:e,c:t,h:s,a:r=1})=>`oklch(${e} ${t} ${s} / ${r})`,w=["l","c","h","a"];class k{constructor(e){this.baseStyles="",this._prefix="eff",this._mode="a",this._params=S,this._compKeys={},this._compValues={},this._analyzeParams=e=>{var t,_;if(e)for(const t in e)this._params[t]=b(this._params[t]||{},e[t]);const{time:x,rem:y,coef:S,szu:v,sz:g,sp:$,rad:j,th:O,fr:w,bp:k,fsz:z,lsp:A,tr:E,sk:V,rot:N,fg:q,fs:R,fb:W,fo:I,ra:P,ro:C,co:K,ca:T,ins:B,cqu:G,cqb:H,cqi:J,cqmin:L,cqmax:M,vu:U,vw:D,vh:F,vmin:Q,vmax:X}=this._params.root,Y=s(w);this._params.root=b(this._params.root,{cqb:r(H||G),cqi:i(J||G),cqmin:l(L||G),cqmax:o(M||G),vw:n(D||U),vh:c(F||U),vmin:a(Q||U),vmax:h(X||U),fo:I||S,fg:q||S,fs:R||S,fb:W||Y,ra:P||p(S),ro:C||S,ca:T||p(S),co:K||S,ins:B||Y,sz:b(m(g)||{},v),sp:b(m($)||{},v),rad:m(j),th:m(O),bp:m(k),fsz:m(z),lsp:m(A),tr:m(E),sk:d(V),rot:d(N),perc:Y,time:f(x),rem:u(y)});const Z=function(e,t){var s={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(s[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(s[r[i]]=e[r[i]])}return s}(this._params,["root"]),ee=Object.entries(Z),te={_mode:{root:{}}},se={};ee.forEach((([e,t])=>{te._mode[e]||(te._mode[e]={}),Object.entries(t).forEach((([t,s])=>{Object.entries(s).forEach((([s,r])=>{const i=this._prepareVarName(t,s);te._mode[e][i]=r,te._mode.root[i]||(te._mode.root[i]=r,se[t]||(se[t]={}),se[t][s]=`var(${i})`)}))}))})),this._compValues=se,this._compKeys=Object.entries(this._compValues.bp||{}).reduce(((e,[t,s])=>(e[t+"_"]=`@media (min-width:${s})`,e[t.toUpperCase()+"_"]=`@media (max-width:${s})`,e)),{}),this.baseStyles=this.compile("init",{c:Object.assign(Object.assign(Object.assign(Object.assign({},te),{$r_:Object.assign(Object.assign({},te._mode.root),{$c:"{uni.inh}",$fsz:"{rem.def}",$ff:"{ff.def}",$:{$c:"{uni.inh}",$fsz:"{rem.def}",$ff:"{ff.def}"}})}),(null===(t=te._mode)||void 0===t?void 0:t.dark)?{$dark_:{$r_:te._mode.dark}}:{}),(null===(_=te._mode)||void 0===_?void 0:_.light)?{$light_:{$r_:te._mode.light}}:{})})},this._prepareVarName=(...e)=>["-",this._prefix,...e].join("-"),this.compile=(e,s)=>{const{_:r,kf:i,k:l={},v:o={},c:n}=s,c=this._prepareSelector.bind(this),a=this._parseSelector.bind(this);let h=b({},n),p=b({},l),m=b({_:{}},o),d="";if(r)for(let t in r){const s=r[t];if("c"===s.typ){const r={};w.forEach((i=>{const l=t+i,o=this._prepareVarName(e,l);r[i]=o,p["_"+l]=r[i],d+=$(o,s)})),m._[t]=O({l:j(r.l),c:j(r.c),h:j(r.h),a:j(r.a)}),s.all&&(h["_"+t+"l"]=`&lig=>${this._prepareVarName(e,t+"l")}:{1}`,h["_"+t+"c"]=`&chr=>${this._prepareVarName(e,t+"c")}:{1}`,h["_"+t+"h"]=`&hue=>${this._prepareVarName(e,t+"h")}:{1}`,h["_"+t+"a"]=`&alp=>${this._prepareVarName(e,t+"a")}:{1}`)}else{const r=this._prepareVarName(e,t);p["_"+t]=r,m._[t]=j(r),d+=$(r,s)}}const f=e=>p[e]||this._compKeys[e]||t[e],u=e=>m[e]||this._compValues[e]||this._params.root[e],_=e=>e.replaceAll(/\{(.+?)\}/g,((e,t)=>{const[s,r]=t.split(".");if(r){const e=u(s);return(null==e?void 0:e[r])||(null==e?void 0:e.def)}return f(s)})),x=e=>{const t=e.split("?");let s;for(let e in t){const r=t[e],[i,l]=r.split("=>"),[o,n,c]=i.match(/(\w+)(\[[\w,]+\])?/),a=u(n);if(!a)continue;s=a;let h=Object.entries(s);const p=null==c?void 0:c.slice(1,-1).split(",");if(p){const e=new Set(p);h=h.filter((([t,s])=>e.has(t)))}if(l){let[e,t]=l.split("|");void 0===t&&(t=e,e=""),h=h.map((([s,r])=>[e.replace("{0}",s)||s,_(t.replaceAll("{1}",r))]))}(p||l)&&(s=Object.fromEntries(h));break}return s};function y(t,s,r){var i,l,o;let n=""+t;if((null===(i=null==t?void 0:t.startsWith)||void 0===i?void 0:i.call(t,"$"))&&(n=f(t.slice(1)),!n))return"";if(Array.isArray(s))return y(n,Object.assign({},...s.map((e=>"string"==typeof e?x(e):e))),r);if(null==s)return"";if("object"==typeof s){const t=!r||n.startsWith("&")||n.startsWith("@")?"":"&";if(n.startsWith("_")){const{e:r,m:i,mv:l}=a(n);return i&&"string"!=typeof l?Object.entries(s).reduce(((s,[l,o])=>{let a;return a="object"==typeof o?Object.entries(o).reduce(((e,t)=>e+y(...t,n)),""):o+";",s+t+c({b:e,e:r,m:i,mv:l})+v(a)}),""):t+c({b:e,e:r,m:i,mv:l})+v(Object.entries(s).reduce(((e,t)=>e+y(...t,n)),""))}return t+n+v(Object.entries(s).reduce(((e,t)=>e+y(...t,n)),""))}{let e=""+s;return(null===(l=null==e?void 0:e.startsWith)||void 0===l?void 0:l.call(e,"&"))?y(n,x(e.slice(1)),r):(null===(o=null==e?void 0:e.includes)||void 0===o?void 0:o.call(e,"{"))?y(n,_(e),r):g(n,s)}}let S="";if(i)for(let e in i){const t=i[e];S+=`@keyframes ${e} `+v(Object.entries(t).reduce(((e,[t,s])=>e+t+(String(+t)===t?"%":"")+v(Object.entries(s).reduce(((e,t)=>e+y(...t)),""))),""))}return d+S+Object.entries(h).reduce(((e,t)=>e+y(...t)),"")};const{mode:_,prefix:x,params:y}=e;this._mode=_||"a",this._prefix=x||"eff","c"===this._mode?this._prepareSelector=({b:e,e:t,m:s,mv:r,s:i})=>`.${e}${(t?"__"+t:"")+(s?"_"+s:"")+(s&&r?"_"+r:"")+(i?":"+i:"")}`:this._prepareSelector=({b:e,e:t,m:s,mv:r,s:i})=>`[data-${e}${t?"-"+t:""}${s?'~="'+s+(r?"-"+r:"")+(i?":"+i:"")+'"':""}]`,this._analyzeParams(y)}_parseSelector(e){let t,s,r,i;return e.startsWith("__")?[t,s,r]=e.slice(2).split("_"):[t,s,r]=e.split("_"),r&&([r,i]=r.split(":")),{e:t,m:s,mv:r,s:i}}expandSelector(e,t){const{e:s,m:r,mv:i,s:l}=this._parseSelector(t),o=l&&this._getStateSelector(l);return[this._prepareSelector({b:e,e:s,m:r,mv:i}),this._prepareSelector({b:e,e:s,m:r,mv:i,s:l})+"{"+o]}_getStateSelector(e){const s=e+"_",r=this._compKeys[s]||t[s];if(r)return(r.startsWith("&")||r.startsWith("@")?"":"&")+r}}class z{constructor(e){if(this._stylesheets={},this._rules={},this._expandedSelectors={},this._styleSheetsArray=[],e)for(let t in e)this.pack(t,e[t])}get(e){return this._stylesheets[e]}getAll(){return this._stylesheets}add(e,t){if(!this._stylesheets[e])return this._stylesheets[e]=t,this._styleSheetsArray.push(t),this.cacheRules(e,t),!0}remove(e){const t=this.get(e);if(!t)return;const s=this._styleSheetsArray.findIndex((e=>e===t));return s>-1&&(this._styleSheetsArray.splice(s,1),delete this._stylesheets[e],delete this._rules[e],delete this._expandedSelectors[e]),!0}removeAll(){return this._styleSheetsArray.splice(0),this._stylesheets={},this._rules={},this._expandedSelectors={},!0}pack(e,t){const s=new CSSStyleSheet;if(s.replaceSync(t),s.cssRules.length)return this.add(e,s),s;console.log(`StyleSheet '${e}' is empty`)}cacheRules(e,t){[...t.cssRules].forEach((t=>{const s=t.cssText.split(" {")[0];s&&(this._rules[e]||(this._rules[e]={}),this._rules[e][s]=t)})),this._expandedSelectors[e]=new Set}getExpandedSelectors(e){return this._expandedSelectors[e]}expandRule(e,t,s){const r=this._rules[e];if(!r)return void console.log(`No stylesheet found with key '${e}'`);const i=r[t];if(!i)return void console.log(`No rule with selector '${t}' found in stylesheet with key '${e}'`);const[l,o]=i.cssText.split("{");if(i.parentStyleSheet){const t=s+"{"+o+"}",l=i.parentStyleSheet.insertRule(t,i.parentStyleSheet.cssRules.length),n=i.parentStyleSheet.cssRules[l],c=s.split("{")[0];return r[c]=n,this._expandedSelectors[e].add(c),!0}}apply(e){e.adoptedStyleSheets=this._styleSheetsArray}}function A(e){customElements.define((null==e?void 0:e.name)||_,class extends HTMLElement{get settingsId(){return this.getAttribute("settingsid")||x}constructor(){super(),this.getSettings=()=>{var t;const s=null===(t=null===document||void 0===document?void 0:document.getElementById(this.settingsId))||void 0===t?void 0:t.textContent;return s?JSON.parse(s):(null==e?void 0:e.config)||{}}}connectedCallback(){const e=this.getSettings(),{params:t,styles:s,ext:r}=e;this.processor=new k({prefix:this.getAttribute("prefix")||void 0,mode:this.getAttribute("mode")||void 0,params:t}),this.manager=new z({init:y()+this.processor.baseStyles}),this.processStyles(s,r),this.manager.apply(document)}compileStyleSheet(e,t){var s,r;const i=null===(s=this.processor)||void 0===s?void 0:s.compile(e,t);if(i)return null===(r=this.manager)||void 0===r?void 0:r.pack(e,i)}expandStyleSheet(e,t){var s;const r=null===(s=this.manager)||void 0===s?void 0:s.getExpandedSelectors(e);if(this.processor&&r){const s=new Set(t).difference(r),i=s.size;return i&&this.processor&&s.keys().forEach((t=>{var s;const[r,i]=this.processor.expandSelector(e,t);null===(s=this.manager)||void 0===s||s.expandRule(e,r,i)})),i}}processStyles(e,t){if(e)for(let t in e){const s=e[t];this.compileStyleSheet(t,s)}if(t)for(let e in t){const s=t[e];this.expandStyleSheet(e,s)}}})}export{A as defineStyleProvider};
|
|
1
|
+
import{values as e,keys as t}from"./css/dict.js";import{toPercent as s,toCqb as i,toCqi as r,toCqmin as l,toCqmax as o,toVw as n,toVh as c,toVmin as a,toVmax as h,toSpan as p,toRem as d,toDeg as m,toMs as f,toPx as u}from"./css/functions.js";import{COMPONENT_NAME as _,SETTINGS_ID as y,getProviderStyles as x}from"./utils.js";"function"==typeof SuppressedError&&SuppressedError;const S={light:{lig:{def:.75,c:.05,s:.65,m:.75,l:.85,n:.9}},dark:{lig:{def:.4,n:.25,s:.3,m:.4,l:.5,c:.95}},root:Object.assign({lig:{def:.75,c:.05,s:.65,m:.75,l:.85,n:.9},hue:{def:261.35,b:261.35,i:194.77,e:29.23,w:70.66,s:142.49},chr:{def:.03,xs:.03,s:.06,m:.1,l:.15,xl:.25},alp:{def:1,min:0,xs:.1,s:.25,m:.5,l:.75,xl:.9,max:1},rem:{def:16},ff:{def:"Roboto, sans-serif",b:"Georgia, serif"},fwg:{xs:100,s:200,m:400,l:600,xl:700},time:{def:300,xs:100,s:200,m:300,l:450,xl:600,no:0,min:50,max:750},coef:[0,1,2,3,4,5,6,7,8,9,10,11,12].reduce(((e,t)=>(e[t]=t,e)),{}),rat:{1:1,"2/1":2,"1/2":.5,"4/3":1.3333,"3/4":.75,"9/16":.5625,"16/9":1.7778},sp:{"3xs":.125,"2xs":.25,xs:.5,s:.75,m:1,l:1.25,xl:1.5,"2xl":2,"3xl":4},sz:{"3xs":1,"2xs":1.5,xs:2,s:5,m:10,l:15,xl:20,"2xl":25,"3xl":30},szu:{a:"auto",no:0},bp:{xs:30,sm:40,md:48,lg:64,xl:80},o:{min:0,xs:.1,s:.25,m:.5,l:.75,xl:.9,max:1},vu:{0:0,"1/4":25,"1/2":50,"3/4":75,1:100},cqu:{0:0,"1/4":25,"1/2":50,"3/4":75,1:100},fr:{0:0,"1/12":"0.0833","1/10":"0.1","1/6":"0.1667","1/5":"0.2","1/4":"0.25","3/10":"0.3","1/3":"0.3333","2/5":"0.4","5/12":"0.4167","1/2":"0.5","7/12":"0.5833","3/5":"0.6","2/3":"0.6667","7/10":"0.7","3/4":"0.75","4/5":"0.8","5/6":"0.8333","9/10":"0.9","11/12":"0.9167",1:"1"},rad:{s:.5,m:1,l:2},th:{s:.1,m:.25,l:.5},sc:{xs:.5,s:.67,m:1,l:1.5,xl:2},tr:{xs:.25,s:.5,m:1,l:1.5,xl:2},sk:{xs:-15,s:-10,m:0,l:10,xl:15},rot:{xs:-180,s:-90,m:0,l:90,xl:180},zm:{s:.8,m:1,l:1.2},pers:{s:"100px",m:"200px"},fsz:{xs:.25,s:.5,m:1,l:1.5,xl:2},lh:{xs:1,s:1.25,m:1.5,l:1.75,xl:2},lsp:{no:0,s:.05,m:.1,l:.2},zi:{1:1,2:2,3:3,4:4,5:5},ic:{inf:"infinite",1:1,2:2}},e)},v=e=>`{${e}}`,g=Object.assign.bind(Object),b=(e,t)=>`${e}:${t};`,$=(e,t)=>["@property",e,v(b("syntax",t.syn||'"*"')+b("inherits",t.inh||!1)+(t.ini?b("initial-value",t.ini):""))].join(" "),j=e=>`var(${e})`,O=({l:e,c:t,h:s,a:i=1})=>`oklch(${e} ${t} ${s} / ${i})`,w=["l","c","h","a"];class k{constructor(e){this.baseStyles="",this._prefix="eff",this._mode="a",this._params=S,this._compKeys={},this._compValues={},this._analyzeParams=e=>{var t,_;if(e)for(const t in e)this._params[t]=g(this._params[t]||{},e[t]);const{time:y,rem:x,coef:S,szu:v,sz:b,sp:$,rad:j,th:O,fr:w,bp:k,fsz:A,lsp:z,tr:E,sk:N,rot:V,fg:R,fs:q,fb:W,fo:I,ra:P,ro:C,co:K,ca:T,ins:B,cqu:G,cqb:H,cqi:J,cqmin:L,cqmax:M,vu:U,vw:D,vh:F,vmin:Q,vmax:X}=this._params.root,Y=s(w);this._params.root=g(this._params.root,{cqb:i(H||G),cqi:r(J||G),cqmin:l(L||G),cqmax:o(M||G),vw:n(D||U),vh:c(F||U),vmin:a(Q||U),vmax:h(X||U),fo:I||S,fg:R||S,fs:q||S,fb:W||Y,ra:P||p(S),ro:C||S,ca:T||p(S),co:K||S,ins:B||Y,sz:g(d(b)||{},v),sp:g(d($)||{},v),rad:d(j),th:d(O),bp:d(k),fsz:d(A),lsp:d(z),tr:d(E),sk:m(N),rot:m(V),perc:Y,time:f(y),rem:u(x)});const Z=function(e,t){var s={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(s[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(s[i[r]]=e[i[r]])}return s}(this._params,["root"]),ee=Object.entries(Z),te={_mode:{root:{}}},se={};ee.forEach((([e,t])=>{te._mode[e]||(te._mode[e]={}),Object.entries(t).forEach((([t,s])=>{Object.entries(s).forEach((([s,i])=>{const r=this._prepareVarName(t,s);te._mode[e][r]=i,te._mode.root[r]||(te._mode.root[r]=i,se[t]||(se[t]={}),se[t][s]=`var(${r})`)}))}))})),this._compValues=se,this._compKeys=Object.entries(this._compValues.bp||{}).reduce(((e,[t,s])=>(e[t+"_"]=`@media (min-width:${s})`,e[t.toUpperCase()+"_"]=`@media (max-width:${s})`,e)),{}),this.baseStyles=this.compile("init",{c:Object.assign(Object.assign(Object.assign(Object.assign({},te),{$r_:Object.assign(Object.assign({},te._mode.root),{$c:"{uni.inh}",$fsz:"{rem.def}",$ff:"{ff.def}",$:{$c:"{uni.inh}",$fsz:"{rem.def}",$ff:"{ff.def}"}})}),(null===(t=te._mode)||void 0===t?void 0:t.dark)?{$dark_:{$r_:te._mode.dark}}:{}),(null===(_=te._mode)||void 0===_?void 0:_.light)?{$light_:{$r_:te._mode.light}}:{})})},this._prepareVarName=(...e)=>["-",this._prefix,...e].join("-"),this.compile=(e,s)=>{const{_:i,kf:r,k:l={},v:o={},c:n}=s,c=this._prepareSelector.bind(this),a=this._parseSelector.bind(this);let h=g({},n),p=g({},l),d=g({_:{}},o),m="";if(i)for(let t in i){const s=i[t];if("c"===s.typ){const i={};w.forEach((r=>{const l=t+r,o=this._prepareVarName(e,l);i[r]=o,p["_"+l]=i[r],m+=$(o,s)})),d._[t]=O({l:j(i.l),c:j(i.c),h:j(i.h),a:j(i.a)}),s.all&&(h["_"+t+"l"]=`&lig=>${this._prepareVarName(e,t+"l")}:{1}`,h["_"+t+"c"]=`&chr=>${this._prepareVarName(e,t+"c")}:{1}`,h["_"+t+"h"]=`&hue=>${this._prepareVarName(e,t+"h")}:{1}`,h["_"+t+"a"]=`&alp=>${this._prepareVarName(e,t+"a")}:{1}`)}else{const i=this._prepareVarName(e,t);p["_"+t]=i,d._[t]=j(i),m+=$(i,s)}}const f=e=>p[e]||this._compKeys[e]||t[e],u=e=>d[e]||this._compValues[e]||this._params.root[e],_=e=>e.replaceAll(/\{(.+?)\}/g,((e,t)=>{const[s,i]=t.split(".");if(i){const e=u(s);return(null==e?void 0:e[i])||(null==e?void 0:e.def)}return f(s)})),y=e=>{const t=e.split("?");let s;for(let e in t){const i=t[e],[r,l]=i.split("=>"),[o,n,c]=r.match(/(\w+)(\[[\w,]+\])?/),a=u(n);if(!a)continue;s=a;let h=Object.entries(s);const p=null==c?void 0:c.slice(1,-1).split(",");if(p){const e=new Set(p);h=h.filter((([t,s])=>e.has(t)))}if(l){let[e,t]=l.split("|");void 0===t&&(t=e,e=""),h=h.map((([s,i])=>[e.replace("{0}",s)||s,_(t.replaceAll("{1}",i))]))}(p||l)&&(s=Object.fromEntries(h));break}return s};function x(t,s,i){var r,l,o;let n=""+t;if((null===(r=null==t?void 0:t.startsWith)||void 0===r?void 0:r.call(t,"$"))&&(n=f(t.slice(1)),!n))return"";if(Array.isArray(s))return x(n,Object.assign({},...s.map((e=>"string"==typeof e?y(e):e))),i);if(null==s)return"";if("object"==typeof s){const t=!i||n.startsWith("&")||n.startsWith("@")?"":"&";if(n.startsWith("_")){const{e:i,m:r,mv:l}=a(n);return r&&"string"!=typeof l?Object.entries(s).reduce(((s,[l,o])=>{let a;return a="object"==typeof o?Object.entries(o).reduce(((e,t)=>e+x(...t,n)),""):o+";",s+t+c({b:e,e:i,m:r,mv:l})+v(a)}),""):t+c({b:e,e:i,m:r,mv:l})+v(Object.entries(s).reduce(((e,t)=>e+x(...t,n)),""))}return t+n+v(Object.entries(s).reduce(((e,t)=>e+x(...t,n)),""))}{let e=""+s;return(null===(l=null==e?void 0:e.startsWith)||void 0===l?void 0:l.call(e,"&"))?x(n,y(e.slice(1)),i):(null===(o=null==e?void 0:e.includes)||void 0===o?void 0:o.call(e,"{"))?x(n,_(e),i):b(n,s)}}let S="";if(r)for(let e in r){const t=r[e];S+=`@keyframes ${e} `+v(Object.entries(t).reduce(((e,[t,s])=>e+t+(String(+t)===t?"%":"")+v(Object.entries(s).reduce(((e,t)=>e+x(...t)),""))),""))}return m+S+Object.entries(h).reduce(((e,t)=>e+x(...t)),"")};const{mode:_,prefix:y,params:x}=e;this._mode=_||"a",this._prefix=y||"eff","c"===this._mode?this._prepareSelector=({b:e,e:t,m:s,mv:i,s:r})=>`.${e}${(t?"__"+t:"")+(s?"_"+s:"")+(s&&i?"_"+i:"")+(r?":"+r:"")}`:this._prepareSelector=({b:e,e:t,m:s,mv:i,s:r})=>`[data-${e}${t?"-"+t:""}${s?'~="'+s+(i?"-"+i:"")+(r?":"+r:"")+'"':""}]`,this._analyzeParams(x)}_parseSelector(e){let t,s,i,r;return e.startsWith("__")?[t,s,i]=e.slice(2).split("_"):[t,s,i]=e.split("_"),i&&([i,r]=i.split(":")),{e:t,m:s,mv:i,s:r}}expandSelector(e,t){const{e:s,m:i,mv:r,s:l}=this._parseSelector(t),o=l&&this._getStateSelector(l);return[this._prepareSelector({b:e,e:s,m:i,mv:r}),this._prepareSelector({b:e,e:s,m:i,mv:r,s:l})+"{"+o]}_getStateSelector(e){const s=e+"_",i=this._compKeys[s]||t[s];if(i)return(i.startsWith("&")||i.startsWith("@")?"":"&")+i}}class A{constructor(e){if(this._stylesheets={},this._rules={},this._expandedSelectors={},this._styleSheetsArray=[],this._listeners=[],this.get=e=>this._stylesheets[e],this.getAll=()=>this._stylesheets,this.add=(e,t)=>{if(!this._stylesheets[e])return this._stylesheets[e]=t,this._styleSheetsArray.push(t),this.cacheRules(e,t),this.notify(),!0},this.remove=e=>{const t=this.get(e);if(!t)return;const s=this._styleSheetsArray.findIndex((e=>e===t));return s>-1&&(this._styleSheetsArray.splice(s,1),delete this._stylesheets[e],delete this._rules[e],delete this._expandedSelectors[e]),this.notify(),!0},this.pack=(e,t)=>{const s=new CSSStyleSheet;if(s.replaceSync(t),s.cssRules.length)return this.add(e,s),s;console.log(`StyleSheet '${e}' is empty`)},this.cacheRules=(e,t)=>{[...t.cssRules].forEach((t=>{const s=t.cssText.split(" {")[0];s&&(this._rules[e]||(this._rules[e]={}),this._rules[e][s]=t)})),this._expandedSelectors[e]=new Set},this.getExpandedSelectors=e=>this._expandedSelectors[e],this.expandRule=(e,t,s)=>{const i=this._rules[e];if(!i)return void console.log(`No stylesheet found with key '${e}'`);const r=i[t];if(!r)return void console.log(`No rule with selector '${t}' found in stylesheet with key '${e}'`);const[l,o]=r.cssText.split("{");if(r.parentStyleSheet){const t=s+"{"+o+"}",l=r.parentStyleSheet.insertRule(t,r.parentStyleSheet.cssRules.length),n=r.parentStyleSheet.cssRules[l],c=s.split("{")[0];return i[c]=n,this._expandedSelectors[e].add(c),!0}},this.apply=e=>{e.adoptedStyleSheets=this._styleSheetsArray},this.registerNode=e=>{this._listeners.push(new WeakRef(e)),this.apply(e)},this.unregisterNode=e=>{const t=this._listeners.findIndex((t=>t.deref()===e));t>=0&&this._listeners.splice(t,1)},this.notify=()=>{this._listeners=this._listeners.reduce(((e,t)=>{const s=t.deref();return s&&(this.apply(s),e.push(t)),e}),[])},e)for(let t in e)this.pack(t,e[t])}removeAll(){return this._styleSheetsArray.splice(0),this._stylesheets={},this._rules={},this._expandedSelectors={},this.notify(),!0}}function z(e){customElements.define((null==e?void 0:e.name)||_,class extends HTMLElement{get settingsId(){return this.getAttribute("settingsid")||y}constructor(){super(),this.getSettings=()=>{var t;const s=null===(t=null===document||void 0===document?void 0:document.getElementById(this.settingsId))||void 0===t?void 0:t.textContent;return s?JSON.parse(s):(null==e?void 0:e.config)||{}},this.compileStyleSheet=(e,t)=>{var s,i;const r=null===(s=this.processor)||void 0===s?void 0:s.compile(e,t);if(r)return null===(i=this.manager)||void 0===i?void 0:i.pack(e,r)},this.expandStyleSheet=(e,t)=>{var s;const i=null===(s=this.manager)||void 0===s?void 0:s.getExpandedSelectors(e);if(this.processor&&i){const s=new Set(t).difference(i),r=s.size;return r&&this.processor&&s.keys().forEach((t=>{var s;const[i,r]=this.processor.expandSelector(e,t);null===(s=this.manager)||void 0===s||s.expandRule(e,i,r)})),r}},this.processStyles=(e,t)=>{if(e)for(let t in e){const s=e[t];this.compileStyleSheet(t,s)}if(t)for(let e in t){const s=t[e];this.expandStyleSheet(e,s)}return!0}}connectedCallback(){const e=this.getSettings(),{params:t,styles:s,ext:i}=e;this.processor=new k({prefix:this.getAttribute("prefix")||void 0,mode:this.getAttribute("mode")||void 0,params:t}),this.manager=new A({init:x()+this.processor.baseStyles}),this.processStyles(s,i),null===this.getAttribute("isolated")&&this.manager.registerNode(document)}})}export{z as defineStyleProvider};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IStyleManager } from 'types';
|
|
1
|
+
import { IStyleManager, TStyleConsumer } from 'types';
|
|
2
2
|
/**
|
|
3
3
|
* Style manager
|
|
4
4
|
*/
|
|
@@ -18,18 +18,23 @@ export declare class Manager implements IStyleManager {
|
|
|
18
18
|
/**
|
|
19
19
|
* Stylesheets array
|
|
20
20
|
*/
|
|
21
|
-
protected
|
|
21
|
+
protected _styleSheetsArray: CSSStyleSheet[];
|
|
22
|
+
/**
|
|
23
|
+
* Dependent nodes
|
|
24
|
+
*/
|
|
25
|
+
protected _listeners: WeakRef<TStyleConsumer>[];
|
|
22
26
|
constructor(config: Record<string, string>);
|
|
23
|
-
get(key: string)
|
|
24
|
-
getAll()
|
|
25
|
-
add(key: string, stylesheet: CSSStyleSheet)
|
|
26
|
-
remove(key: string)
|
|
27
|
+
get: (key: string) => CSSStyleSheet;
|
|
28
|
+
getAll: () => Record<string, CSSStyleSheet>;
|
|
29
|
+
add: (key: string, stylesheet: CSSStyleSheet) => true | undefined;
|
|
30
|
+
remove: (key: string) => true | undefined;
|
|
27
31
|
removeAll(): boolean;
|
|
28
|
-
pack(key: string, styles: string)
|
|
29
|
-
cacheRules(key: string, stylesheet: CSSStyleSheet)
|
|
30
|
-
getExpandedSelectors(key: string)
|
|
31
|
-
expandRule(key: string, init: string, exp: string)
|
|
32
|
-
apply(root:
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
pack: (key: string, styles: string) => CSSStyleSheet | undefined;
|
|
33
|
+
cacheRules: (key: string, stylesheet: CSSStyleSheet) => void;
|
|
34
|
+
getExpandedSelectors: (key: string) => Set<string>;
|
|
35
|
+
expandRule: (key: string, init: string, exp: string) => true | undefined;
|
|
36
|
+
apply: (root: TStyleConsumer) => void;
|
|
37
|
+
registerNode: (node: TStyleConsumer) => void;
|
|
38
|
+
unregisterNode: (node: TStyleConsumer) => void;
|
|
39
|
+
notify: () => void;
|
|
35
40
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TStyleConfig } from 'types';
|
|
2
2
|
export interface IKeyframesConfig {
|
|
3
|
-
an: 'zoomIn' | 'zoomOut' | 'pulse' | '
|
|
3
|
+
an: 'zoomIn' | 'zoomOut' | 'pulse' | 'heartBeat' | 'bounceIn' | 'bounceOut' | 'fadeIn' | 'fadeInRight' | 'fadeInLeft' | 'fadeInDown' | 'fadeInUp' | 'fadeOut' | 'fadeOutRight' | 'fadeOutLeft' | 'fadeOutDown' | 'fadeOutUp' | 'flipInX' | 'flipInY' | 'flipOutX' | 'flipOutY' | 'slideInDown' | 'slideInLeft' | 'slideInRight' | 'slideInUp' | 'slideOutDown' | 'slideOutLeft' | 'slideOutRight' | 'slideOutUp';
|
|
4
4
|
}
|
|
5
5
|
declare const _default: TStyleConfig;
|
|
6
6
|
export default _default;
|
|
@@ -59,6 +59,24 @@ export interface IStyleManager {
|
|
|
59
59
|
apply(root: {
|
|
60
60
|
adoptedStyleSheets: CSSStyleSheet[];
|
|
61
61
|
}): void;
|
|
62
|
+
/**
|
|
63
|
+
* Register dependent node
|
|
64
|
+
* @param node
|
|
65
|
+
*/
|
|
66
|
+
registerNode(node: {
|
|
67
|
+
adoptedStyleSheets: CSSStyleSheet[];
|
|
68
|
+
}): void;
|
|
69
|
+
/**
|
|
70
|
+
* Unregister dependent node
|
|
71
|
+
* @param node
|
|
72
|
+
*/
|
|
73
|
+
unregisterNode(node: {
|
|
74
|
+
adoptedStyleSheets: CSSStyleSheet[];
|
|
75
|
+
}): void;
|
|
76
|
+
/**
|
|
77
|
+
* Apply style changes to dependent nodes
|
|
78
|
+
*/
|
|
79
|
+
notify(): void;
|
|
62
80
|
}
|
|
63
81
|
/**
|
|
64
82
|
* Style processor
|
|
@@ -343,6 +361,9 @@ export interface IValues {
|
|
|
343
361
|
ca: TVariants;
|
|
344
362
|
}
|
|
345
363
|
export type TModeValues = Record<string, Record<string, Record<string, string | number>>>;
|
|
364
|
+
/**
|
|
365
|
+
* Attributes of style provider web component
|
|
366
|
+
*/
|
|
346
367
|
export interface IStyleProviderParams {
|
|
347
368
|
/**
|
|
348
369
|
* Settings script element id
|
|
@@ -358,5 +379,12 @@ export interface IStyleProviderParams {
|
|
|
358
379
|
* `a` - data-attributes, `c` - classes
|
|
359
380
|
*/
|
|
360
381
|
mode?: 'a' | 'c' | null;
|
|
382
|
+
/**
|
|
383
|
+
* If provider shoudn`t register document as dependent node
|
|
384
|
+
*/
|
|
385
|
+
isolated?: string | null;
|
|
361
386
|
}
|
|
387
|
+
export type TStyleConsumer = {
|
|
388
|
+
adoptedStyleSheets: CSSStyleSheet[];
|
|
389
|
+
};
|
|
362
390
|
export {};
|