@dev-blinq/ui-systems 1.0.115 → 1.0.116
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/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -765,7 +765,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
765
765
|
}
|
|
766
766
|
}
|
|
767
767
|
`,s2=({isRec:e,stepCount:t,isMainApp:n})=>E.jsxs(Iu,{isMainApp:n,children:[E.jsxs(j.Box,{display:"flex",alignItems:"center",gap:1,children:[E.jsx(Ae,{value:"Steps",weight:"semi",size:"lg"}),e&&t>=1&&E.jsx(zu,{icon:E.jsx(ko,{size:14}),severity:"warning",children:"Reuse existing steps by clicking Add Step button"})]}),E.jsx(Ae,{size:"xs",value:`${t} step${t>1?"s":""}`,color:"var(--color-grey-70)"})]}),Ku=({openCollapse:e,arrowColor:t,...n})=>E.jsx(Nu,{children:n.noCollpase?E.jsx(ko,{color:t,width:14}):E.jsx(Lu,{...n,children:E.jsx(di,{cursor:"pointer",color:t,size:10,style:{transform:e?"rotate(0deg)":"rotate(-90deg)",transition:"transform 0.125s ease-in-out"}})})}),c2=({showInfoIcon:e=!1,stepType:t,isActive:n=!1,color:r,handleTextClick:i,anchorEl:a,handleMenuClick:o,handleMenuClose:s,menuItems:u,hasInterceptRouteItems:c=!1})=>E.jsxs(Vu,{children:[e&&E.jsx(Ml,{size:12}),E.jsx(Ae,{"data-no-dnd":"true",value:t,color:r,weight:"semi",onClick:i,sx:{wordBreak:"initial !important",cursor:"pointer"}}),n&&E.jsxs("span",{className:"rec-indicator",children:[E.jsx("span",{className:"dot"})," Rec"]}),s&&u&&a&&E.jsx(Ql,{onClick:o,handleClose:s,anchorEl:a,items:u,id:"keyword-menu"}),c&&E.jsx("div",{children:E.jsx("img",{src:"./icons/plug_24x24.svg",width:"14px",height:"14px",alt:""})})]}),l2=({splits:e,text:t,setIsVisible:n,showCursor:r})=>E.jsx(No,{title:t,enterNextDelay:0,enterDelay:0,children:E.jsx(Uu,{className:"title-text",children:e.map((i,a)=>i.isVariable?E.jsxs(E.Fragment,{children:[E.jsx(Ae,{className:"title-text",component:"span",sx:{visibility:"hidden"},value:"."}),E.jsx(Ae,{value:i.text,className:"title-text",component:"span",color:"var(--color-success-100)",weight:"medium",sx:{cursor:r?"pointer":"inherit"},onMouseDown:o=>{r||o.stopPropagation()},onClick:o=>{r||(o.stopPropagation(),n==null||n(s=>{const u=s.map(c=>!1);return u[a]=!s[a],u}))}}),E.jsx(Ae,{className:"title-text",component:"span",sx:{visibility:"hidden"},value:"."})]}):E.jsx(Ae,{className:"title-text",value:i.text,component:"span",color:"var(--color-grey-80)",weight:"medium"}))})}),u2=({onCancel:e,value:t,preventedKeys:n,onSave:r,setValue:i})=>E.jsx(j.ClickAwayListener,{"data-no-dnd":"true",onClickAway:e,children:E.jsxs(Hu,{"data-no-dnd":"true",children:[E.jsx(Fn,{value:t,name:"",onKeyDown:a=>{a.stopPropagation(),n!=null&&n.includes(a.key)&&a.preventDefault()},onChange:a=>{a.stopPropagation(),i(a.target.value)},fullWidth:!0,minRows:1,multiline:!0,maxRows:5,autoFocus:!0}),E.jsxs(j.Box,{display:"flex",gap:.2,mt:.5,children:[E.jsx(eo,{onClick:a=>{a.stopPropagation(),r(t)},size:"small",children:E.jsx(_l,{color:"var(--color-success-100)",size:14})}),E.jsx(eo,{onClick:e,size:"small",children:E.jsx(kl,{color:"var(--color-error-100)",size:14})})]})]})}),f2=e=>{e.stopPropagation()},d2=({wrapperProps:e,iconProps:t,dndProps:n,openCollapse:r,KeywordComponent:i,isEditing:a,SplitTextComponent:o,EditingTextViewComponent:s,ActionComponent:u,warning:c,CollapseContent:l})=>E.jsxs(Ou,{...e,children:[E.jsx(Ku,{...t}),E.jsxs(Wu,{children:[E.jsxs(ju,{...n,children:[E.jsxs($u,{className:r?"open":"",children:[i,a?s:o]}),E.jsx(j.Box,{onClick:f2,"data-no-dnd":"true",display:"flex",alignItems:"start",children:u})]}),c,E.jsx(j.Collapse,{in:r,children:l})]})]});function h2(e){if(typeof e!="string")return[];const t=[];let n="",r=!1,i=!1,a=0,o=0;for(let s=0;s<e.length;s++){const u=e[s];if(i){n+=u,i=!1,o++;continue}if(u==="\\"){i=!0,n+=u,o++;continue}if(u==='"'){r?(n+=u,t.push({text:n,startIndex:a,endIndex:o,isVariable:qr(n)}),n="",r=!1,o++,a=s+1):(n&&t.push({text:n,startIndex:a,endIndex:o,isVariable:qr(n)}),n=u,r=!0,a=s+1,o++);continue}n+=u,o++}return n&&t.push({text:n,startIndex:a,endIndex:o,isVariable:qr(n)}),t}const qr=e=>e.startsWith('"')&&e.endsWith('"'),p2=["Enter","/","{","}","(",")"],x2=["Given","When","Then"],m2=["Given","When","Then","And","But"];function g2(e){const t=e.split(`
|
|
768
|
-
`).map(f=>f.trim());let n="",r="";const i=[];let a=[],o=!1;for(const f of t){if(f.startsWith("Feature:")){n=f.replace("Feature:","").trim();continue}if(f.startsWith("Scenario")){r=f.replace(/^Scenario( Outline)?:/,"").trim();continue}if(f.startsWith("#")){i.push({keyword:"#",text:f.slice(1).trim(),type:"comment"});continue}const d=f.match(/^(Given|When|Then|And|But)\s+(.*)$/);if(d){i.push({keyword:d[1],text:d[2],type:"step"});continue}if(f.startsWith("Examples:")){o=!0;continue}if(o&&f.startsWith("|")){const p=f.split("|").map(x=>x.trim()).filter(Boolean);a.push(p)}}const s=a[0]??[],c=a.slice(1).map((f,d)=>({datasetId:d,data:s.map((p,x)=>({key:p,value:f[x],allowDeletion:!0,mask:!1}))})),l=i.map((f,d)=>({...f,stepId:`step-${d}`}));return{featureName:n,scenarioName:r,steps:l,params:c}}function y2(e){const{featureName:t,scenarioName:n,steps:r,params:i}=e,a=[],o=" ",s=i&&i.length>0,u=s?"Scenario Outline":"Scenario";a.push(`${u}: ${n}`),a.push("");for(const c of r){if(c.type==="comment"){a.push(`${o}# ${c.text}`);continue}if(c.type==="step"){a.push(`${o}${c.keyword} ${c.text}`);continue}}if(s&&(a.push(""),a.push(`${o}Examples:`),i.length>0)){const c=i[0].data.map(p=>p.key),l=i.map(p=>p.data.map(x=>x.value)),f=c.map((p,x)=>Math.max(p.length,...l.map(h=>h[x].length))),d=p=>`${o} | `+p.map((x,h)=>x.padEnd(f[h]," ")).join(" | ")+" |";a.push(d(c)),l.forEach(p=>a.push(d(p)))}return a.join(`
|
|
768
|
+
`).map(f=>f.trim());let n="",r="";const i=[];let a=[],o=!1;for(const f of t){if(f.startsWith("Feature:")){n=f.replace("Feature:","").trim();continue}if(f.startsWith("Scenario")){r=f.replace(/^Scenario( Outline)?:/,"").trim();continue}if(f.startsWith("#")){i.push({keyword:"#",text:f.slice(1).trim(),type:"comment"});continue}const d=f.match(/^(Given|When|Then|And|But)\s+(.*)$/);if(d){i.push({keyword:d[1],text:d[2],type:"step"});continue}if(f.startsWith("Examples:")){o=!0;continue}if(o&&f.startsWith("|")){const p=f.split("|").map(x=>x.trim()).filter(Boolean);a.push(p)}}const s=a[0]??[],c=a.slice(1).map((f,d)=>({datasetId:d,data:s.map((p,x)=>({key:p,value:f[x],allowDeletion:!0,mask:!1}))})),l=i.map((f,d)=>({...f,stepId:`step-${d}`}));return{featureName:n,scenarioName:r,steps:l,params:c}}function y2(e){const{featureName:t,scenarioName:n,steps:r,params:i}=e,a=[],o=" ",s=i&&i.length>0,u=s?"Scenario Outline":"Scenario";a.push(`${u}: ${n}`),a.push("");for(const c of r){if(c.type==="comment"){a.push(`${o}# ${c.text}`);continue}if(c.type==="step"){a.push(`${o}${c.keyword} ${c.text}`);continue}}if(s&&(a.push(""),a.push(`${o}Examples:`),i.length>0)){const c=i[0].data.map(p=>p.key||""),l=i.map(p=>p.data.map(x=>x.value||"")),f=c.map((p,x)=>Math.max(p.length,...l.map(h=>h[x].length))),d=p=>`${o} | `+p.map((x,h)=>x.padEnd(f[h]," ")).join(" | ")+" |";a.push(d(c)),l.forEach(p=>a.push(d(p)))}return a.join(`
|
|
769
769
|
`)}const Yo=V.createContext({});function qo(e){const t=V.useRef(null);return t.current===null&&(t.current=e()),t.current}const Xo=typeof window<"u",Gu=Xo?V.useLayoutEffect:V.useEffect,Fi=V.createContext(null);function Zo(e,t){e.indexOf(t)===-1&&e.push(t)}function Jo(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const kt=(e,t,n)=>n>t?t:n<e?e:n;function oo(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let _n=()=>{},Mt=()=>{};process.env.NODE_ENV!=="production"&&(_n=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(oo(t,n))},Mt=(e,t,n)=>{if(!e)throw new Error(oo(t,n))});const _t={},Yu=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function qu(e){return typeof e=="object"&&e!==null}const Xu=e=>/^0[^.\s]+$/u.test(e);function Qo(e){let t;return()=>(t===void 0&&(t=e()),t)}const ot=e=>e,v2=(e,t)=>n=>t(e(n)),Er=(...e)=>e.reduce(v2),fr=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class es{constructor(){this.subscriptions=[]}add(t){return Zo(this.subscriptions,t),()=>Jo(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a<i;a++){const o=this.subscriptions[a];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const xt=e=>e*1e3,at=e=>e/1e3;function Zu(e,t){return t?e*(1e3/t):0}const dc=new Set;function ts(e,t,n){e||dc.has(t)||(console.warn(oo(t,n)),dc.add(t))}const Ju=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,C2=1e-7,b2=12;function A2(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Ju(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>C2&&++s<b2);return o}function Sr(e,t,n,r){if(e===t&&n===r)return ot;const i=a=>A2(a,0,1,e,n);return a=>a===0||a===1?a:Ju(i(a),t,r)}const Qu=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ef=e=>t=>1-e(1-t),tf=Sr(.33,1.53,.69,.99),ns=ef(tf),nf=Qu(ns),rf=e=>(e*=2)<1?.5*ns(e):.5*(2-Math.pow(2,-10*(e-1))),rs=e=>1-Math.sin(Math.acos(e)),af=ef(rs),of=Qu(rs),E2=Sr(.42,0,1,1),S2=Sr(0,0,.58,1),sf=Sr(.42,0,.58,1),w2=e=>Array.isArray(e)&&typeof e[0]!="number",cf=e=>Array.isArray(e)&&typeof e[0]=="number",hc={linear:ot,easeIn:E2,easeInOut:sf,easeOut:S2,circIn:rs,circInOut:of,circOut:af,backIn:ns,backInOut:nf,backOut:tf,anticipate:rf},B2=e=>typeof e=="string",pc=e=>{if(cf(e)){Mt(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,i]=e;return Sr(t,n,r,i)}else if(B2(e))return Mt(hc[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),hc[e];return e},$r=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],xc={value:null,addProjectionMetrics:null};function D2(e,t){let n=new Set,r=new Set,i=!1,a=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1},u=0;function c(f){o.has(f)&&(l.schedule(f),e()),u++,f(s)}const l={schedule:(f,d=!1,p=!1)=>{const h=p&&i?n:r;return d&&o.add(f),h.has(f)||h.add(f),f},cancel:f=>{r.delete(f),o.delete(f)},process:f=>{if(s=f,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(c),t&&xc.value&&xc.value.frameloop[t].push(u),u=0,n.clear(),i=!1,a&&(a=!1,l.process(f))}};return l}const T2=40;function lf(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=$r.reduce((g,b)=>(g[b]=D2(a,t?b:void 0),g),{}),{setup:s,read:u,resolveKeyframes:c,preUpdate:l,update:f,preRender:d,render:p,postRender:x}=o,h=()=>{const g=_t.useManualTiming?i.timestamp:performance.now();n=!1,_t.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(g-i.timestamp,T2),1)),i.timestamp=g,i.isProcessing=!0,s.process(i),u.process(i),c.process(i),l.process(i),f.process(i),d.process(i),p.process(i),x.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},v=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:$r.reduce((g,b)=>{const A=o[b];return g[b]=(S,w=!1,T=!1)=>(n||v(),A.schedule(S,w,T)),g},{}),cancel:g=>{for(let b=0;b<$r.length;b++)o[$r[b]].cancel(g)},state:i,steps:o}}const{schedule:Ee,cancel:Ut,state:Le,steps:_a}=lf(typeof requestAnimationFrame<"u"?requestAnimationFrame:ot,!0);let Xr;function F2(){Xr=void 0}const Ye={now:()=>(Xr===void 0&&Ye.set(Le.isProcessing||_t.useManualTiming?Le.timestamp:performance.now()),Xr),set:e=>{Xr=e,queueMicrotask(F2)}},uf=e=>t=>typeof t=="string"&&t.startsWith(e),is=uf("--"),P2=uf("var(--"),as=e=>P2(e)?R2.test(e.split("/*")[0].trim()):!1,R2=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,In={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},dr={...In,transform:e=>kt(0,1,e)},Ur={...In,default:1},ir=e=>Math.round(e*1e5)/1e5,os=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function k2(e){return e==null}const M2=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ss=(e,t)=>n=>!!(typeof n=="string"&&M2.test(n)&&n.startsWith(e)||t&&!k2(n)&&Object.prototype.hasOwnProperty.call(n,t)),ff=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,o,s]=r.match(os);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s!==void 0?parseFloat(s):1}},_2=e=>kt(0,255,e),Ia={...In,transform:e=>Math.round(_2(e))},en={test:ss("rgb","red"),parse:ff("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Ia.transform(e)+", "+Ia.transform(t)+", "+Ia.transform(n)+", "+ir(dr.transform(r))+")"};function I2(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const so={test:ss("#"),parse:I2,transform:en.transform},wr=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Lt=wr("deg"),St=wr("%"),te=wr("px"),O2=wr("vh"),N2=wr("vw"),mc={...St,parse:e=>St.parse(e)/100,transform:e=>St.transform(e*100)},vn={test:ss("hsl","hue"),parse:ff("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+St.transform(ir(t))+", "+St.transform(ir(n))+", "+ir(dr.transform(r))+")"},_e={test:e=>en.test(e)||so.test(e)||vn.test(e),parse:e=>en.test(e)?en.parse(e):vn.test(e)?vn.parse(e):so.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?en.transform(e):vn.transform(e),getAnimatableNone:e=>{const t=_e.parse(e);return t.alpha=0,_e.transform(t)}},L2=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function j2(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(os))==null?void 0:t.length)||0)+(((n=e.match(L2))==null?void 0:n.length)||0)>0}const df="number",hf="color",V2="var",$2="var(",gc="${}",U2=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function hr(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const s=t.replace(U2,u=>(_e.test(u)?(r.color.push(a),i.push(hf),n.push(_e.parse(u))):u.startsWith($2)?(r.var.push(a),i.push(V2),n.push(u)):(r.number.push(a),i.push(df),n.push(parseFloat(u))),++a,gc)).split(gc);return{values:n,split:s,indexes:r,types:i}}function pf(e){return hr(e).values}function xf(e){const{split:t,types:n}=hr(e),r=t.length;return i=>{let a="";for(let o=0;o<r;o++)if(a+=t[o],i[o]!==void 0){const s=n[o];s===df?a+=ir(i[o]):s===hf?a+=_e.transform(i[o]):a+=i[o]}return a}}const H2=e=>typeof e=="number"?0:_e.test(e)?_e.getAnimatableNone(e):e;function z2(e){const t=pf(e);return xf(e)(t.map(H2))}const Ht={test:j2,parse:pf,createTransformer:xf,getAnimatableNone:z2};function Oa(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function W2({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{const s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;i=Oa(u,s,e+1/3),a=Oa(u,s,e),o=Oa(u,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function oi(e,t){return n=>n>0?t:e}const we=(e,t,n)=>e+(t-e)*n,Na=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},K2=[so,en,vn],G2=e=>K2.find(t=>t.test(e));function yc(e){const t=G2(e);if(_n(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===vn&&(n=W2(n)),n}const vc=(e,t)=>{const n=yc(e),r=yc(t);if(!n||!r)return oi(e,t);const i={...n};return a=>(i.red=Na(n.red,r.red,a),i.green=Na(n.green,r.green,a),i.blue=Na(n.blue,r.blue,a),i.alpha=we(n.alpha,r.alpha,a),en.transform(i))},co=new Set(["none","hidden"]);function Y2(e,t){return co.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function q2(e,t){return n=>we(e,t,n)}function cs(e){return typeof e=="number"?q2:typeof e=="string"?as(e)?oi:_e.test(e)?vc:J2:Array.isArray(e)?mf:typeof e=="object"?_e.test(e)?vc:X2:oi}function mf(e,t){const n=[...e],r=n.length,i=e.map((a,o)=>cs(a)(a,t[o]));return a=>{for(let o=0;o<r;o++)n[o]=i[o](a);return n}}function X2(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=cs(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function Z2(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}const J2=(e,t)=>{const n=Ht.createTransformer(t),r=hr(e),i=hr(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?co.has(e)&&!i.values.length||co.has(t)&&!r.values.length?Y2(e,t):Er(mf(Z2(r,i),i.values),n):(_n(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),oi(e,t))};function gf(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?we(e,t,n):cs(e)(e,t)}const Q2=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Ee.update(t,n),stop:()=>Ut(t),now:()=>Le.isProcessing?Le.timestamp:Ye.now()}},yf=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a<i;a++)r+=Math.round(e(a/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},si=2e4;function ls(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<si;)t+=n,r=e.next(t);return t>=si?1/0:t}function ey(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(ls(r),si);return{type:"keyframes",ease:a=>r.next(i*a).value/t,duration:at(i)}}const ty=5;function vf(e,t,n){const r=Math.max(t-ty,0);return Zu(n-e(r),t-r)}const Se={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},La=.001;function ny({duration:e=Se.duration,bounce:t=Se.bounce,velocity:n=Se.velocity,mass:r=Se.mass}){let i,a;_n(e<=xt(Se.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=kt(Se.minDamping,Se.maxDamping,o),e=kt(Se.minDuration,Se.maxDuration,at(e)),o<1?(i=c=>{const l=c*o,f=l*e,d=l-n,p=lo(c,o),x=Math.exp(-f);return La-d/p*x},a=c=>{const f=c*o*e,d=f*n+n,p=Math.pow(o,2)*Math.pow(c,2)*e,x=Math.exp(-f),h=lo(Math.pow(c,2),o);return(-i(c)+La>0?-1:1)*((d-p)*x)/h}):(i=c=>{const l=Math.exp(-c*e),f=(c-n)*e+1;return-La+l*f},a=c=>{const l=Math.exp(-c*e),f=(n-c)*(e*e);return l*f});const s=5/e,u=iy(i,a,s);if(e=xt(e),isNaN(u))return{stiffness:Se.stiffness,damping:Se.damping,duration:e};{const c=Math.pow(u,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const ry=12;function iy(e,t,n){let r=n;for(let i=1;i<ry;i++)r=r-e(r)/t(r);return r}function lo(e,t){return e*Math.sqrt(1-t*t)}const ay=["duration","bounce"],oy=["stiffness","damping","mass"];function Cc(e,t){return t.some(n=>e[n]!==void 0)}function sy(e){let t={velocity:Se.velocity,stiffness:Se.stiffness,damping:Se.damping,mass:Se.mass,isResolvedFromDuration:!1,...e};if(!Cc(e,oy)&&Cc(e,ay))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*kt(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Se.mass,stiffness:i,damping:a}}else{const n=ny(e);t={...t,...n,mass:Se.mass},t.isResolvedFromDuration=!0}return t}function ci(e=Se.visualDuration,t=Se.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:u,damping:c,mass:l,duration:f,velocity:d,isResolvedFromDuration:p}=sy({...n,velocity:-at(n.velocity||0)}),x=d||0,h=c/(2*Math.sqrt(u*l)),v=o-a,C=at(Math.sqrt(u/l)),y=Math.abs(v)<5;r||(r=y?Se.restSpeed.granular:Se.restSpeed.default),i||(i=y?Se.restDelta.granular:Se.restDelta.default);let g;if(h<1){const A=lo(C,h);g=S=>{const w=Math.exp(-h*C*S);return o-w*((x+h*C*v)/A*Math.sin(A*S)+v*Math.cos(A*S))}}else if(h===1)g=A=>o-Math.exp(-C*A)*(v+(x+C*v)*A);else{const A=C*Math.sqrt(h*h-1);g=S=>{const w=Math.exp(-h*C*S),T=Math.min(A*S,300);return o-w*((x+h*C*v)*Math.sinh(T)+A*v*Math.cosh(T))/A}}const b={calculatedDuration:p&&f||null,next:A=>{const S=g(A);if(p)s.done=A>=f;else{let w=A===0?x:0;h<1&&(w=A===0?xt(x):vf(g,A,S));const T=Math.abs(w)<=r,k=Math.abs(o-S)<=i;s.done=T&&k}return s.value=s.done?o:S,s},toString:()=>{const A=Math.min(ls(b),si),S=yf(w=>b.next(A*w).value,A,30);return A+"ms "+S},toTransition:()=>{}};return b}ci.applyToOptions=e=>{const t=ey(e,100,ci);return e.ease=t.ease,e.duration=xt(t.duration),e.type="keyframes",e};function uo({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:u,restDelta:c=.5,restSpeed:l}){const f=e[0],d={done:!1,value:f},p=T=>s!==void 0&&T<s||u!==void 0&&T>u,x=T=>s===void 0?u:u===void 0||Math.abs(s-T)<Math.abs(u-T)?s:u;let h=n*t;const v=f+h,C=o===void 0?v:o(v);C!==v&&(h=C-f);const y=T=>-h*Math.exp(-T/r),g=T=>C+y(T),b=T=>{const k=y(T),m=g(T);d.done=Math.abs(k)<=c,d.value=d.done?C:m};let A,S;const w=T=>{p(d.value)&&(A=T,S=ci({keyframes:[d.value,x(d.value)],velocity:vf(g,T,d.value),damping:i,stiffness:a,restDelta:c,restSpeed:l}))};return w(0),{calculatedDuration:null,next:T=>{let k=!1;return!S&&A===void 0&&(k=!0,b(T),w(T)),A!==void 0&&T>=A?S.next(T-A):(!k&&b(T),d)}}}function cy(e,t,n){const r=[],i=n||_t.mix||gf,a=e.length-1;for(let o=0;o<a;o++){let s=i(e[o],e[o+1]);if(t){const u=Array.isArray(t)?t[o]||ot:t;s=Er(u,s)}r.push(s)}return r}function ly(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(Mt(a===t.length,"Both input and output ranges must be the same length","range-length"),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=cy(t,r,i),u=s.length,c=l=>{if(o&&l<e[0])return t[0];let f=0;if(u>1)for(;f<e.length-2&&!(l<e[f+1]);f++);const d=fr(e[f],e[f+1],l);return s[f](d)};return n?l=>c(kt(e[0],e[a-1],l)):c}function uy(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=fr(0,t,r);e.push(we(n,1,i))}}function fy(e){const t=[0];return uy(t,e.length-1),t}function dy(e,t){return e.map(n=>n*t)}function hy(e,t){return e.map(()=>t||sf).splice(0,e.length-1)}function Cn({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=w2(r)?r.map(pc):pc(r),a={done:!1,value:t[0]},o=dy(n&&n.length===t.length?n:fy(t),e),s=ly(o,t,{ease:Array.isArray(i)?i:hy(t,i)});return{calculatedDuration:e,next:u=>(a.value=s(u),a.done=u>=e,a)}}const py=e=>e!==null;function us(e,{repeat:t,repeatType:n="loop"},r,i=1){const a=e.filter(py),s=i<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!s||r===void 0?a[s]:r}const xy={decay:uo,inertia:uo,tween:Cn,keyframes:Cn,spring:ci};function Cf(e){typeof e.type=="string"&&(e.type=xy[e.type])}class fs{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const my=e=>e/100;class ds extends fs{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==Ye.now()&&this.tick(Ye.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Cf(t);const{type:n=Cn,repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:o=0}=t;let{keyframes:s}=t;const u=n||Cn;process.env.NODE_ENV!=="production"&&u!==Cn&&Mt(s.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${s}`,"spring-two-frames"),u!==Cn&&typeof s[0]!="number"&&(this.mixKeyframes=Er(my,gf(s[0],s[1])),s=[0,100]);const c=u({...t,keyframes:s});a==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...s].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=ls(c));const{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=c}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:a,mirroredGenerator:o,resolvedDuration:s,calculatedDuration:u}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:l,repeat:f,repeatType:d,repeatDelay:p,type:x,onUpdate:h,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const C=this.currentTime-c*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?C<0:C>i;this.currentTime=Math.max(C,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let g=this.currentTime,b=r;if(f){const T=Math.min(this.currentTime,i)/s;let k=Math.floor(T),m=T%1;!m&&T>=1&&(m=1),m===1&&k--,k=Math.min(k,f+1),!!(k%2)&&(d==="reverse"?(m=1-m,p&&(m-=p/s)):d==="mirror"&&(b=o)),g=kt(0,1,m)*s}const A=y?{done:!1,value:l[0]}:b.next(g);a&&(A.value=a(A.value));let{done:S}=A;!y&&u!==null&&(S=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const w=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return w&&x!==uo&&(A.value=us(l,this.options,v,this.speed)),h&&h(A.value),w&&this.finish(),A}then(t,n){return this.finished.then(t,n)}get duration(){return at(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+at(t)}get time(){return at(this.currentTime)}set time(t){var n;t=xt(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Ye.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=at(this.currentTime))}play(){var i,a;if(this.isStopped)return;const{driver:t=Q2,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(a=(i=this.options).onPlay)==null||a.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Ye.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function gy(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const tn=e=>e*180/Math.PI,fo=e=>{const t=tn(Math.atan2(e[1],e[0]));return ho(t)},yy={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:fo,rotateZ:fo,skewX:e=>tn(Math.atan(e[1])),skewY:e=>tn(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ho=e=>(e=e%360,e<0&&(e+=360),e),bc=fo,Ac=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Ec=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),vy={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ac,scaleY:Ec,scale:e=>(Ac(e)+Ec(e))/2,rotateX:e=>ho(tn(Math.atan2(e[6],e[5]))),rotateY:e=>ho(tn(Math.atan2(-e[2],e[0]))),rotateZ:bc,rotate:bc,skewX:e=>tn(Math.atan(e[4])),skewY:e=>tn(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function po(e){return e.includes("scale")?1:0}function xo(e,t){if(!e||e==="none")return po(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=vy,i=n;else{const s=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=yy,i=s}if(!i)return po(t);const a=r[t],o=i[1].split(",").map(by);return typeof a=="function"?a(o):o[a]}const Cy=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return xo(n,t)};function by(e){return parseFloat(e.trim())}const On=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Nn=new Set(On),Sc=e=>e===In||e===te,Ay=new Set(["x","y","z"]),Ey=On.filter(e=>!Ay.has(e));function Sy(e){const t=[];return Ey.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const rn={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>xo(t,"x"),y:(e,{transform:t})=>xo(t,"y")};rn.translateX=rn.x;rn.translateY=rn.y;const an=new Set;let mo=!1,go=!1,yo=!1;function bf(){if(go){const e=Array.from(an).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Sy(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([a,o])=>{var s;(s=r.getValue(a))==null||s.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}go=!1,mo=!1,an.forEach(e=>e.complete(yo)),an.clear()}function Af(){an.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(go=!0)})}function wy(){yo=!0,Af(),bf(),yo=!1}class hs{constructor(t,n,r,i,a,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(an.add(this),mo||(mo=!0,Ee.read(Af),Ee.resolveKeyframes(bf))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const a=i==null?void 0:i.get(),o=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const s=r.readValue(n,o);s!=null&&(t[0]=s)}t[0]===void 0&&(t[0]=o),i&&a===void 0&&i.set(t[0])}gy(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),an.delete(this)}cancel(){this.state==="scheduled"&&(an.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const By=e=>e.startsWith("--");function Dy(e,t,n){By(t)?e.style.setProperty(t,n):e.style[t]=n}const Ty=Qo(()=>window.ScrollTimeline!==void 0),Fy={};function Py(e,t){const n=Qo(e);return()=>Fy[t]??n()}const Ef=Py(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),nr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,wc={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:nr([0,.65,.55,1]),circOut:nr([.55,0,1,.45]),backIn:nr([.31,.01,.66,-.59]),backOut:nr([.33,1.53,.69,.99])};function Sf(e,t){if(e)return typeof e=="function"?Ef()?yf(e,t):"ease-out":cf(e)?nr(e):Array.isArray(e)?e.map(n=>Sf(n,t)||wc.easeOut):wc[e]}function Ry(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:s="easeOut",times:u}={},c=void 0){const l={[t]:n};u&&(l.offset=u);const f=Sf(s,i);Array.isArray(f)&&(l.easing=f);const d={delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"};return c&&(d.pseudoElement=c),e.animate(l,d)}function wf(e){return typeof e=="function"&&"applyToOptions"in e}function ky({type:e,...t}){return wf(e)&&Ef()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class My extends fs{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:a,allowFlatten:o=!1,finalKeyframe:s,onComplete:u}=t;this.isPseudoElement=!!a,this.allowFlatten=o,this.options=t,Mt(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const c=ky(t);this.animation=Ry(n,r,i,c,a),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const l=us(i,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(l):Dy(n,r,l),this.animation.cancel()}u==null||u(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return at(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+at(t)}get time(){return at(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=xt(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Ty()?(this.animation.timeline=t,ot):n(this)}}const Bf={anticipate:rf,backInOut:nf,circInOut:of};function _y(e){return e in Bf}function Iy(e){typeof e.ease=="string"&&_y(e.ease)&&(e.ease=Bf[e.ease])}const Bc=10;class Oy extends My{constructor(t){Iy(t),Cf(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:a,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const s=new ds({...o,autoplay:!1}),u=xt(this.finishedTime??this.time);n.setWithVelocity(s.sample(u-Bc).value,s.sample(u).value,Bc),s.stop()}}const Dc=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ht.test(e)||e==="0")&&!e.startsWith("url("));function Ny(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Ly(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],o=Dc(i,t),s=Dc(a,t);return _n(o===s,`You are trying to animate ${t} from "${i}" to "${a}". "${o?a:i}" is not an animatable value.`,"value-not-animatable"),!o||!s?!1:Ny(e)||(n==="spring"||wf(n))&&r}function vo(e){e.duration=0,e.type="keyframes"}const jy=new Set(["opacity","clipPath","filter","transform"]),Vy=Qo(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function $y(e){var l;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o}=e;if(!(((l=t==null?void 0:t.owner)==null?void 0:l.current)instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:c}=t.owner.getProps();return Vy()&&n&&jy.has(n)&&(n!=="transform"||!c)&&!u&&!r&&i!=="mirror"&&a!==0&&o!=="inertia"}const Uy=40;class Hy extends fs{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:o="loop",keyframes:s,name:u,motionValue:c,element:l,...f}){var x;super(),this.stop=()=>{var h,v;this._animation&&(this._animation.stop(),(h=this.stopTimeline)==null||h.call(this)),(v=this.keyframeResolver)==null||v.cancel()},this.createdAt=Ye.now();const d={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:o,name:u,motionValue:c,element:l,...f},p=(l==null?void 0:l.KeyframeResolver)||hs;this.keyframeResolver=new p(s,(h,v,C)=>this.onKeyframesResolved(h,v,d,!C),u,c,l),(x=this.keyframeResolver)==null||x.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:a,type:o,velocity:s,delay:u,isHandoff:c,onUpdate:l}=r;this.resolvedAt=Ye.now(),Ly(t,a,o,s)||((_t.instantAnimations||!u)&&(l==null||l(us(t,r,n))),t[0]=t[t.length-1],vo(r),r.repeat=0);const d={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Uy?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},p=!c&&$y(d)?new Oy({...d,element:d.motionValue.owner.current}):new ds(d);p.finished.then(()=>this.notifyFinished()).catch(ot),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),wy()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const zy=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Wy(e){const t=zy.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const Ky=4;function Df(e,t,n=1){Mt(n<=Ky,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,i]=Wy(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const o=a.trim();return Yu(o)?parseFloat(o):o}return as(i)?Df(i,t,n+1):i}function ps(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const Tf=new Set(["width","height","top","left","right","bottom",...On]),Gy={test:e=>e==="auto",parse:e=>e},Ff=e=>t=>t.test(e),Pf=[In,te,St,Lt,N2,O2,Gy],Tc=e=>Pf.find(Ff(e));function Yy(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Xu(e):!0}const qy=new Set(["brightness","contrast","saturate","opacity"]);function Xy(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(os)||[];if(!r)return e;const i=n.replace(r,"");let a=qy.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const Zy=/\b([a-z-]*)\(.*?\)/gu,Co={...Ht,getAnimatableNone:e=>{const t=e.match(Zy);return t?t.map(Xy).join(" "):e}},Fc={...In,transform:Math.round},Jy={rotate:Lt,rotateX:Lt,rotateY:Lt,rotateZ:Lt,scale:Ur,scaleX:Ur,scaleY:Ur,scaleZ:Ur,skew:Lt,skewX:Lt,skewY:Lt,distance:te,translateX:te,translateY:te,translateZ:te,x:te,y:te,z:te,perspective:te,transformPerspective:te,opacity:dr,originX:mc,originY:mc,originZ:te},xs={borderWidth:te,borderTopWidth:te,borderRightWidth:te,borderBottomWidth:te,borderLeftWidth:te,borderRadius:te,radius:te,borderTopLeftRadius:te,borderTopRightRadius:te,borderBottomRightRadius:te,borderBottomLeftRadius:te,width:te,maxWidth:te,height:te,maxHeight:te,top:te,right:te,bottom:te,left:te,padding:te,paddingTop:te,paddingRight:te,paddingBottom:te,paddingLeft:te,margin:te,marginTop:te,marginRight:te,marginBottom:te,marginLeft:te,backgroundPositionX:te,backgroundPositionY:te,...Jy,zIndex:Fc,fillOpacity:dr,strokeOpacity:dr,numOctaves:Fc},Qy={...xs,color:_e,backgroundColor:_e,outlineColor:_e,fill:_e,stroke:_e,borderColor:_e,borderTopColor:_e,borderRightColor:_e,borderBottomColor:_e,borderLeftColor:_e,filter:Co,WebkitFilter:Co},Rf=e=>Qy[e];function kf(e,t){let n=Rf(e);return n!==Co&&(n=Ht),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const ev=new Set(["auto","none","0"]);function tv(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!ev.has(a)&&hr(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=kf(n,i)}class nv extends hs{constructor(t,n,r,i,a){super(t,n,r,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let c=t[u];if(typeof c=="string"&&(c=c.trim(),as(c))){const l=Df(c,n.current);l!==void 0&&(t[u]=l),u===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!Tf.has(r)||t.length!==2)return;const[i,a]=t,o=Tc(i),s=Tc(a);if(o!==s)if(Sc(o)&&Sc(s))for(let u=0;u<t.length;u++){const c=t[u];typeof c=="string"&&(t[u]=parseFloat(c))}else rn[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||Yy(t[i]))&&r.push(i);r.length&&tv(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=rn[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var s;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const a=r.length-1,o=r[a];r[a]=rn[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(s=this.removedTransforms)!=null&&s.length&&this.removedTransforms.forEach(([u,c])=>{t.getValue(u).set(c)}),this.resolveNoneKeyframes()}}function rv(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){const i=document.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const Mf=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function _f(e){return qu(e)&&"offsetHeight"in e}const Pc=30,iv=e=>!isNaN(parseFloat(e));class av{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var a;const i=Ye.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((a=this.events.change)==null||a.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Ye.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=iv(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&ts(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new es);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ee.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ye.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Pc)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Pc);return Zu(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Pn(e,t){return new av(e,t)}const{schedule:ms,cancel:v6}=lf(queueMicrotask,!1),ht={x:!1,y:!1};function If(){return ht.x||ht.y}function ov(e){return e==="x"||e==="y"?ht[e]?null:(ht[e]=!0,()=>{ht[e]=!1}):ht.x||ht.y?null:(ht.x=ht.y=!0,()=>{ht.x=ht.y=!1})}function Of(e,t){const n=rv(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Rc(e){return!(e.pointerType==="touch"||If())}function sv(e,t,n={}){const[r,i,a]=Of(e,n),o=s=>{if(!Rc(s))return;const{target:u}=s,c=t(u,s);if(typeof c!="function"||!u)return;const l=f=>{Rc(f)&&(c(f),u.removeEventListener("pointerleave",l))};u.addEventListener("pointerleave",l,i)};return r.forEach(s=>{s.addEventListener("pointerenter",o,i)}),a}const Nf=(e,t)=>t?e===t?!0:Nf(e,t.parentElement):!1,gs=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,cv=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function lv(e){return cv.has(e.tagName)||e.tabIndex!==-1}const Zr=new WeakSet;function kc(e){return t=>{t.key==="Enter"&&e(t)}}function ja(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const uv=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=kc(()=>{if(Zr.has(n))return;ja(n,"down");const i=kc(()=>{ja(n,"up")}),a=()=>ja(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Mc(e){return gs(e)&&!If()}function fv(e,t,n={}){const[r,i,a]=Of(e,n),o=s=>{const u=s.currentTarget;if(!Mc(s))return;Zr.add(u);const c=t(u,s),l=(p,x)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",d),Zr.has(u)&&Zr.delete(u),Mc(p)&&typeof c=="function"&&c(p,{success:x})},f=p=>{l(p,u===window||u===document||n.useGlobalTarget||Nf(u,p.target))},d=p=>{l(p,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",d,i)};return r.forEach(s=>{(n.useGlobalTarget?window:s).addEventListener("pointerdown",o,i),_f(s)&&(s.addEventListener("focus",c=>uv(c,i)),!lv(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),a}function Lf(e){return qu(e)&&"ownerSVGElement"in e}function dv(e){return Lf(e)&&e.tagName==="svg"}const ze=e=>!!(e&&e.getVelocity),hv=[...Pf,_e,Ht],pv=e=>hv.find(Ff(e)),ys=V.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function _c(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function xv(...e){return t=>{let n=!1;const r=e.map(i=>{const a=_c(i,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let i=0;i<r.length;i++){const a=r[i];typeof a=="function"?a():_c(e[i],null)}}}}function mv(...e){return Fe.useCallback(xv(...e),e)}class gv extends Fe.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=_f(r)&&r.offsetWidth||0,a=this.props.sizeRef.current;a.height=n.offsetHeight||0,a.width=n.offsetWidth||0,a.top=n.offsetTop,a.left=n.offsetLeft,a.right=i-a.width-a.left}return null}componentDidUpdate(){}render(){return this.props.children}}function yv({children:e,isPresent:t,anchorX:n,root:r}){const i=V.useId(),a=V.useRef(null),o=V.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:s}=V.useContext(ys),u=mv(a,e==null?void 0:e.ref);return V.useInsertionEffect(()=>{const{width:c,height:l,top:f,left:d,right:p}=o.current;if(t||!a.current||!c||!l)return;const x=n==="left"?`left: ${d}`:`right: ${p}`;a.current.dataset.motionPopId=i;const h=document.createElement("style");s&&(h.nonce=s);const v=r??document.head;return v.appendChild(h),h.sheet&&h.sheet.insertRule(`
|
|
770
770
|
[data-motion-pop-id="${i}"] {
|
|
771
771
|
position: absolute !important;
|
package/dist/index.mjs
CHANGED
|
@@ -13643,7 +13643,7 @@ function h8(e) {
|
|
|
13643
13643
|
}
|
|
13644
13644
|
}
|
|
13645
13645
|
if (s && (a.push(""), a.push(`${o}Examples:`), i.length > 0)) {
|
|
13646
|
-
const c = i[0].data.map((p) => p.key), l = i.map((p) => p.data.map((x) => x.value)), f = c.map(
|
|
13646
|
+
const c = i[0].data.map((p) => p.key || ""), l = i.map((p) => p.data.map((x) => x.value || "")), f = c.map(
|
|
13647
13647
|
(p, x) => Math.max(p.length, ...l.map((h) => h[x].length))
|
|
13648
13648
|
), d = (p) => `${o} | ` + p.map((x, h) => x.padEnd(f[h], " ")).join(" | ") + " |";
|
|
13649
13649
|
a.push(d(c)), l.forEach((p) => a.push(d(p)));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dev-blinq/ui-systems",
|
|
3
3
|
"description": "this package contains all ui components like button, input, checkbox, colors that blinq.io needs",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.116",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|