ymy-components 0.0.41 → 0.0.42
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.cjs.js +1 -1
- package/dist/index.es.js +12 -3
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -27,7 +27,7 @@ Check the top-level render call using <`+x+">.")}return v}}function mi(c,v){{if(
|
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,Kr,Fe,ba,Fe),gi[Fe+Kr]=!0}}return c===n?pa(Y):ha(Y),Y}}function ma(c,v,x){return vi(c,v,x,!0)}function ya(c,v,x){return vi(c,v,x,!1)}var ga=ya,va=ma;St.Fragment=n,St.jsx=ga,St.jsxs=va}()),St}var _i;function ka(){return _i||(_i=1,process.env.NODE_ENV==="production"?Zt.exports=Sa():Zt.exports=xa()),Zt.exports}var V=ka(),$n=Yt(),R=e=>Ht(e,$n),Mn=Yt();R.write=e=>Ht(e,Mn);var Pr=Yt();R.onStart=e=>Ht(e,Pr);var zn=Yt();R.onFrame=e=>Ht(e,zn);var Fn=Yt();R.onFinish=e=>Ht(e,Fn);var at=[];R.setTimeout=(e,t)=>{const r=R.now()+t,n=()=>{const o=at.findIndex(s=>s.cancel==n);~o&&at.splice(o,1),Ve-=~o?1:0},i={time:r,handler:e,cancel:n};return at.splice(wo(r),0,i),Ve+=1,_o(),i};var wo=e=>~(~at.findIndex(t=>t.time>e)||~at.length);R.cancel=e=>{Pr.delete(e),zn.delete(e),Fn.delete(e),$n.delete(e),Mn.delete(e)};R.sync=e=>{ln=!0,R.batchedUpdates(e),ln=!1};R.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function n(...i){t=i,R.onStart(r)}return n.handler=e,n.cancel=()=>{Pr.delete(r),t=null},n};var Ln=typeof window<"u"?window.requestAnimationFrame:()=>{};R.use=e=>Ln=e;R.now=typeof performance<"u"?()=>performance.now():Date.now;R.batchedUpdates=e=>e();R.catch=console.error;R.frameLoop="always";R.advance=()=>{R.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):So()};var je=-1,Ve=0,ln=!1;function Ht(e,t){ln?(t.delete(e),e(0)):(t.add(e),_o())}function _o(){je<0&&(je=0,R.frameLoop!=="demand"&&Ln(Eo))}function Oa(){je=-1}function Eo(){~je&&(Ln(Eo),R.batchedUpdates(So))}function So(){const e=je;je=R.now();const t=wo(je);if(t&&(xo(at.splice(0,t),r=>r.handler()),Ve-=t),!Ve){Oa();return}Pr.flush(),$n.flush(e?Math.min(64,je-e):16.667),zn.flush(),Mn.flush(),Fn.flush()}function Yt(){let e=new Set,t=e;return{add(r){Ve+=t==e&&!e.has(r)?1:0,e.add(r)},delete(r){return Ve-=t==e&&e.has(r)?1:0,e.delete(r)},flush(r){t.size&&(e=new Set,Ve-=t.size,xo(t,n=>n(r)&&e.add(n)),Ve+=e.size,t=e)}}}function xo(e,t){e.forEach(r=>{try{t(r)}catch(n){R.catch(n)}})}var Pa=Object.defineProperty,Ca=(e,t)=>{for(var r in t)Pa(e,r,{get:t[r],enumerable:!0})},we={};Ca(we,{assign:()=>Ra,colors:()=>$e,createStringInterpolator:()=>Un,skipAnimation:()=>Oo,to:()=>ko,willAdvance:()=>Wn});function fn(){}var Na=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),_={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function ke(e,t){if(_.arr(e)){if(!_.arr(t)||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return e===t}var D=(e,t)=>e.forEach(t);function Se(e,t,r){if(_.arr(e)){for(let n=0;n<e.length;n++)t.call(r,e[n],`${n}`);return}for(const n in e)e.hasOwnProperty(n)&&t.call(r,e[n],n)}var se=e=>_.und(e)?[]:_.arr(e)?e:[e];function Rt(e,t){if(e.size){const r=Array.from(e);e.clear(),D(r,t)}}var Pt=(e,...t)=>Rt(e,r=>r(...t)),Bn=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Un,ko,$e=null,Oo=!1,Wn=fn,Ra=e=>{e.to&&(ko=e.to),e.now&&(R.now=e.now),e.colors!==void 0&&($e=e.colors),e.skipAnimation!=null&&(Oo=e.skipAnimation),e.createStringInterpolator&&(Un=e.createStringInterpolator),e.requestAnimationFrame&&R.use(e.requestAnimationFrame),e.batchedUpdates&&(R.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Wn=e.willAdvance),e.frameLoop&&(R.frameLoop=e.frameLoop)},At=new Set,de=[],Qr=[],pr=0,Cr={get idle(){return!At.size&&!de.length},start(e){pr>e.priority?(At.add(e),R.onStart(Aa)):(Po(e),R(dn))},advance:dn,sort(e){if(pr)R.onFrame(()=>Cr.sort(e));else{const t=de.indexOf(e);~t&&(de.splice(t,1),Co(e))}},clear(){de=[],At.clear()}};function Aa(){At.forEach(Po),At.clear(),R(dn)}function Po(e){de.includes(e)||Co(e)}function Co(e){de.splice(Ta(de,t=>t.priority>e.priority),0,e)}function dn(e){const t=Qr;for(let r=0;r<de.length;r++){const n=de[r];pr=n.priority,n.idle||(Wn(n),n.advance(e),n.idle||t.push(n))}return pr=0,Qr=de,Qr.length=0,de=t,de.length>0}function Ta(e,t){const r=e.findIndex(t);return r<0?e.length:r}var Da={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},ve="[-+]?\\d*\\.?\\d+",mr=ve+"%";function Nr(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Ia=new RegExp("rgb"+Nr(ve,ve,ve)),ja=new RegExp("rgba"+Nr(ve,ve,ve,ve)),Va=new RegExp("hsl"+Nr(ve,mr,mr)),$a=new RegExp("hsla"+Nr(ve,mr,mr,ve)),Ma=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,za=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Fa=/^#([0-9a-fA-F]{6})$/,La=/^#([0-9a-fA-F]{8})$/;function Ba(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Fa.exec(e))?parseInt(t[1]+"ff",16)>>>0:$e&&$e[e]!==void 0?$e[e]:(t=Ia.exec(e))?(ot(t[1])<<24|ot(t[2])<<16|ot(t[3])<<8|255)>>>0:(t=ja.exec(e))?(ot(t[1])<<24|ot(t[2])<<16|ot(t[3])<<8|xi(t[4]))>>>0:(t=Ma.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=La.exec(e))?parseInt(t[1],16)>>>0:(t=za.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Va.exec(e))?(Ei(Si(t[1]),er(t[2]),er(t[3]))|255)>>>0:(t=$a.exec(e))?(Ei(Si(t[1]),er(t[2]),er(t[3]))|xi(t[4]))>>>0:null}function Xr(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Ei(e,t,r){const n=r<.5?r*(1+t):r+t-r*t,i=2*r-n,o=Xr(i,n,e+1/3),s=Xr(i,n,e),a=Xr(i,n,e-1/3);return Math.round(o*255)<<24|Math.round(s*255)<<16|Math.round(a*255)<<8}function ot(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Si(e){return(parseFloat(e)%360+360)%360/360}function xi(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function er(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function ki(e){let t=Ba(e);if(t===null)return e;t=t||0;const r=(t&4278190080)>>>24,n=(t&16711680)>>>16,i=(t&65280)>>>8,o=(t&255)/255;return`rgba(${r}, ${n}, ${i}, ${o})`}var jt=(e,t,r)=>{if(_.fun(e))return e;if(_.arr(e))return jt({range:e,output:t,extrapolate:r});if(_.str(e.output[0]))return Un(e);const n=e,i=n.output,o=n.range||[0,1],s=n.extrapolateLeft||n.extrapolate||"extend",a=n.extrapolateRight||n.extrapolate||"extend",u=n.easing||(l=>l);return l=>{const f=Wa(l,o);return Ua(l,o[f],o[f+1],i[f],i[f+1],u,s,a,n.map)}};function Ua(e,t,r,n,i,o,s,a,u){let l=u?u(e):e;if(l<t){if(s==="identity")return l;s==="clamp"&&(l=t)}if(l>r){if(a==="identity")return l;a==="clamp"&&(l=r)}return n===i?n:t===r?e<=t?n:i:(t===-1/0?l=-l:r===1/0?l=l-t:l=(l-t)/(r-t),l=o(l),n===-1/0?l=-l:i===1/0?l=l+n:l=l*(i-n)+n,l)}function Wa(e,t){for(var r=1;r<t.length-1&&!(t[r]>=e);++r);return r-1}var qa={linear:e=>e},Vt=Symbol.for("FluidValue.get"),ut=Symbol.for("FluidValue.observers"),fe=e=>!!(e&&e[Vt]),re=e=>e&&e[Vt]?e[Vt]():e,Oi=e=>e[ut]||null;function Ha(e,t){e.eventObserved?e.eventObserved(t):e(t)}function $t(e,t){const r=e[ut];r&&r.forEach(n=>{Ha(n,t)})}var No=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Ya(this,e)}},Ya=(e,t)=>Ro(e,Vt,t);function yt(e,t){if(e[Vt]){let r=e[ut];r||Ro(e,ut,r=new Set),r.has(t)||(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function Mt(e,t){const r=e[ut];if(r&&r.has(t)){const n=r.size-1;n?r.delete(t):e[ut]=null,e.observerRemoved&&e.observerRemoved(n,t)}}var Ro=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),ar=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Ga=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Pi=new RegExp(`(${ar.source})(%|[a-z]+)`,"i"),Ka=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Rr=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Ao=e=>{const[t,r]=Qa(e);if(!t||Bn())return e;const n=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(n)return n.trim();if(r&&r.startsWith("--")){const i=window.getComputedStyle(document.documentElement).getPropertyValue(r);return i||e}else{if(r&&Rr.test(r))return Ao(r);if(r)return r}return e},Qa=e=>{const t=Rr.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]},Jr,Xa=(e,t,r,n,i)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(n)}, ${i})`,To=e=>{Jr||(Jr=$e?new RegExp(`(${Object.keys($e).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(o=>re(o).replace(Rr,Ao).replace(Ga,ki).replace(Jr,ki)),r=t.map(o=>o.match(ar).map(Number)),i=r[0].map((o,s)=>r.map(a=>{if(!(s in a))throw Error('The arity of each "output" value must be equal');return a[s]})).map(o=>jt({...e,output:o}));return o=>{var u;const s=!Pi.test(t[0])&&((u=t.find(l=>Pi.test(l)))==null?void 0:u.replace(ar,""));let a=0;return t[0].replace(ar,()=>`${i[a++](o)}${s||""}`).replace(Ka,Xa)}},qn="react-spring: ",Do=e=>{const t=e;let r=!1;if(typeof t!="function")throw new TypeError(`${qn}once requires a function parameter`);return(...n)=>{r||(t(...n),r=!0)}},Ja=Do(console.warn);function Za(){Ja(`${qn}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var ec=Do(console.warn);function tc(){ec(`${qn}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function Ar(e){return _.str(e)&&(e[0]=="#"||/\d/.test(e)||!Bn()&&Rr.test(e)||e in($e||{}))}var Hn=Bn()?C.useEffect:C.useLayoutEffect,rc=()=>{const e=C.useRef(!1);return Hn(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Io(){const e=C.useState()[1],t=rc();return()=>{t.current&&e(Math.random())}}function nc(e,t){const[r]=C.useState(()=>({inputs:t,result:e()})),n=C.useRef(),i=n.current;let o=i;return o?t&&o.inputs&&ic(t,o.inputs)||(o={inputs:t,result:e()}):o=r,C.useEffect(()=>{n.current=o,i==r&&(r.inputs=r.result=void 0)},[o]),o.result}function ic(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var jo=e=>C.useEffect(e,oc),oc=[];function Ci(e){const t=C.useRef();return C.useEffect(()=>{t.current=e}),t.current}var zt=Symbol.for("Animated:node"),sc=e=>!!e&&e[zt]===e,_e=e=>e&&e[zt],Yn=(e,t)=>Na(e,zt,t),Tr=e=>e&&e[zt]&&e[zt].getPayload(),Vo=class{constructor(){Yn(this,this)}getPayload(){return this.payload||[]}},Gt=class extends Vo{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,_.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Gt(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return _.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,_.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Ft=class extends Gt{constructor(e){super(0),this._string=null,this._toString=jt({output:[e,e]})}static create(e){return new Ft(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(_.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=jt({output:[this.getValue(),e]})),this._value=0,super.reset()}},yr={dependencies:null},Dr=class extends Vo{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Se(this.source,(r,n)=>{sc(r)?t[n]=r.getValue(e):fe(r)?t[n]=re(r):e||(t[n]=r)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&D(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Se(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){yr.dependencies&&fe(e)&&yr.dependencies.add(e);const t=Tr(e);t&&D(t,r=>this.add(r))}},$o=class extends Dr{constructor(e){super(e)}static create(e){return new $o(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((r,n)=>r.setValue(e[n])).some(Boolean):(super.setValue(e.map(ac)),!0)}};function ac(e){return(Ar(e)?Ft:Gt).create(e)}function hn(e){const t=_e(e);return t?t.constructor:_.arr(e)?$o:Ar(e)?Ft:Gt}var Ni=(e,t)=>{const r=!_.fun(e)||e.prototype&&e.prototype.isReactComponent;return C.forwardRef((n,i)=>{const o=C.useRef(null),s=r&&C.useCallback(g=>{o.current=lc(i,g)},[i]),[a,u]=uc(n,t),l=Io(),f=()=>{const g=o.current;if(r&&!g)return;(g?t.applyAnimatedValues(g,a.getValue(!0)):!1)===!1&&l()},d=new cc(f,u),h=C.useRef();Hn(()=>(h.current=d,D(u,g=>yt(g,d)),()=>{h.current&&(D(h.current.deps,g=>Mt(g,h.current)),R.cancel(h.current.update))})),C.useEffect(f,[]),jo(()=>()=>{const g=h.current;D(g.deps,E=>Mt(E,g))});const p=t.getComponentProps(a.getValue());return Vn.createElement(e,{...p,ref:s})})},cc=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&R.write(this.update)}};function uc(e,t){const r=new Set;return yr.dependencies=r,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Dr(e),yr.dependencies=null,[e,r]}function lc(e,t){return e&&(_.fun(e)?e(t):e.current=t),t}var Ri=Symbol.for("AnimatedComponent"),fc=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:r=i=>new Dr(i),getComponentProps:n=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:n},o=s=>{const a=Ai(s)||"Anonymous";return _.str(s)?s=o[s]||(o[s]=Ni(s,i)):s=s[Ri]||(s[Ri]=Ni(s,i)),s.displayName=`Animated(${a})`,s};return Se(e,(s,a)=>{_.arr(e)&&(a=Ai(s)),o[a]=o(s)}),{animated:o}},Ai=e=>_.str(e)?e:e&&_.str(e.displayName)?e.displayName:_.fun(e)&&e.name||null;function Be(e,...t){return _.fun(e)?e(...t):e}var Tt=(e,t)=>e===!0||!!(t&&e&&(_.fun(e)?e(t):se(e).includes(t))),Mo=(e,t)=>_.obj(e)?t&&e[t]:e,zo=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,dc=e=>e,Gn=(e,t=dc)=>{let r=hc;e.default&&e.default!==!0&&(e=e.default,r=Object.keys(e));const n={};for(const i of r){const o=t(e[i],i);_.und(o)||(n[i]=o)}return n},hc=["config","onProps","onStart","onChange","onPause","onResume","onRest"],pc={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function mc(e){const t={};let r=0;if(Se(e,(n,i)=>{pc[i]||(t[i]=n,r++)}),r)return t}function Fo(e){const t=mc(e);if(t){const r={to:t};return Se(e,(n,i)=>i in t||(r[i]=n)),r}return{...e}}function Lt(e){return e=re(e),_.arr(e)?e.map(Lt):Ar(e)?we.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function yc(e){for(const t in e)return!0;return!1}function pn(e){return _.fun(e)||_.arr(e)&&_.obj(e[0])}function gc(e,t){var r;(r=e.ref)==null||r.delete(e),t==null||t.delete(e)}function vc(e,t){var r;t&&e.ref!==t&&((r=e.ref)==null||r.delete(e),t.add(e),e.ref=t)}var bc={default:{tension:170,friction:26}},mn={...bc.default,mass:1,damping:1,easing:qa.linear,clamp:!1},wc=class{constructor(){this.velocity=0,Object.assign(this,mn)}};function _c(e,t,r){r&&(r={...r},Ti(r,t),t={...r,...t}),Ti(e,t),Object.assign(e,t);for(const s in mn)e[s]==null&&(e[s]=mn[s]);let{frequency:n,damping:i}=e;const{mass:o}=e;return _.und(n)||(n<.01&&(n=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/n,2)*o,e.friction=4*Math.PI*i*o/n),e}function Ti(e,t){if(!_.und(t.decay))e.duration=void 0;else{const r=!_.und(t.tension)||!_.und(t.friction);(r||!_.und(t.frequency)||!_.und(t.damping)||!_.und(t.mass))&&(e.duration=void 0,e.decay=void 0),r&&(e.frequency=void 0)}}var Di=[],Ec=class{constructor(){this.changed=!1,this.values=Di,this.toValues=null,this.fromValues=Di,this.config=new wc,this.immediate=!1}};function Lo(e,{key:t,props:r,defaultProps:n,state:i,actions:o}){return new Promise((s,a)=>{let u,l,f=Tt(r.cancel??(n==null?void 0:n.cancel),t);if(f)p();else{_.und(r.pause)||(i.paused=Tt(r.pause,t));let g=n==null?void 0:n.pause;g!==!0&&(g=i.paused||Tt(g,t)),u=Be(r.delay||0,t),g?(i.resumeQueue.add(h),o.pause()):(o.resume(),h())}function d(){i.resumeQueue.add(h),i.timeouts.delete(l),l.cancel(),u=l.time-R.now()}function h(){u>0&&!we.skipAnimation?(i.delayed=!0,l=R.setTimeout(p,u),i.pauseQueue.add(d),i.timeouts.add(l)):p()}function p(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(l),e<=(i.cancelId||0)&&(f=!0);try{o.start({...r,callId:e,cancel:f},s)}catch(g){a(g)}}})}var Kn=(e,t)=>t.length==1?t[0]:t.some(r=>r.cancelled)?ct(e.get()):t.every(r=>r.noop)?Bo(e.get()):ge(e.get(),t.every(r=>r.finished)),Bo=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),ge=(e,t,r=!1)=>({value:e,finished:t,cancelled:r}),ct=e=>({value:e,cancelled:!0,finished:!1});function Uo(e,t,r,n){const{callId:i,parentId:o,onRest:s}=t,{asyncTo:a,promise:u}=r;return!o&&e===a&&!t.reset?u:r.promise=(async()=>{r.asyncId=i,r.asyncTo=e;const l=Gn(t,(w,y)=>y==="onRest"?void 0:w);let f,d;const h=new Promise((w,y)=>(f=w,d=y)),p=w=>{const y=i<=(r.cancelId||0)&&ct(n)||i!==r.asyncId&&ge(n,!1);if(y)throw w.result=y,d(w),w},g=(w,y)=>{const b=new Ii,m=new ji;return(async()=>{if(we.skipAnimation)throw Bt(r),m.result=ge(n,!1),d(m),m;p(b);const S=_.obj(w)?{...w}:{...y,to:w};S.parentId=i,Se(l,(P,k)=>{_.und(S[k])&&(S[k]=P)});const O=await n.start(S);return p(b),r.paused&&await new Promise(P=>{r.resumeQueue.add(P)}),O})()};let E;if(we.skipAnimation)return Bt(r),ge(n,!1);try{let w;_.arr(e)?w=(async y=>{for(const b of y)await g(b)})(e):w=Promise.resolve(e(g,n.stop.bind(n))),await Promise.all([w.then(f),h]),E=ge(n.get(),!0,!1)}catch(w){if(w instanceof Ii)E=w.result;else if(w instanceof ji)E=w.result;else throw w}finally{i==r.asyncId&&(r.asyncId=o,r.asyncTo=o?a:void 0,r.promise=o?u:void 0)}return _.fun(s)&&R.batchedUpdates(()=>{s(E,n,n.item)}),E})()}function Bt(e,t){Rt(e.timeouts,r=>r.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Ii=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},ji=class extends Error{constructor(){super("SkipAnimationSignal")}},yn=e=>e instanceof Qn,Sc=1,Qn=class extends No{constructor(){super(...arguments),this.id=Sc++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=_e(this);return e&&e.getValue()}to(...e){return we.to(this,e)}interpolate(...e){return Za(),we.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){$t(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Cr.sort(this),$t(this,{type:"priority",parent:this,priority:e})}},Ge=Symbol.for("SpringPhase"),Wo=1,qo=2,Ho=4,Zr=e=>(e[Ge]&Wo)>0,Te=e=>(e[Ge]&qo)>0,xt=e=>(e[Ge]&Ho)>0,Vi=(e,t)=>t?e[Ge]|=qo|Wo:e[Ge]&=-3,$i=(e,t)=>t?e[Ge]|=Ho:e[Ge]&=-5,xc=class extends Qn{constructor(e,t){if(super(),this.animation=new Ec,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!_.und(e)||!_.und(t)){const r=_.obj(e)?{...e}:{...t,from:e};_.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(Te(this)||this._state.asyncTo)||xt(this)}get goal(){return re(this.animation.to)}get velocity(){const e=_e(this);return e instanceof Gt?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Zr(this)}get isAnimating(){return Te(this)}get isPaused(){return xt(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,r=!1;const n=this.animation;let{toValues:i}=n;const{config:o}=n,s=Tr(n.to);!s&&fe(n.to)&&(i=se(re(n.to))),n.values.forEach((l,f)=>{if(l.done)return;const d=l.constructor==Ft?1:s?s[f].lastPosition:i[f];let h=n.immediate,p=d;if(!h){if(p=l.lastPosition,o.tension<=0){l.done=!0;return}let g=l.elapsedTime+=e;const E=n.fromValues[f],w=l.v0!=null?l.v0:l.v0=_.arr(o.velocity)?o.velocity[f]:o.velocity;let y;const b=o.precision||(E==d?.005:Math.min(1,Math.abs(d-E)*.001));if(_.und(o.duration))if(o.decay){const m=o.decay===!0?.998:o.decay,S=Math.exp(-(1-m)*g);p=E+w/(1-m)*(1-S),h=Math.abs(l.lastPosition-p)<=b,y=w*S}else{y=l.lastVelocity==null?w:l.lastVelocity;const m=o.restVelocity||b/10,S=o.clamp?0:o.bounce,O=!_.und(S),P=E==d?l.v0>0:E<d;let k,j=!1;const z=1,K=Math.ceil(e/z);for(let W=0;W<K&&(k=Math.abs(y)>m,!(!k&&(h=Math.abs(d-p)<=b,h)));++W){O&&(j=p==d||p>d==P,j&&(y=-y*S,p=d));const J=-o.tension*1e-6*(p-d),U=-o.friction*.001*y,oe=(J+U)/o.mass;y=y+oe*z,p=p+y*z}}else{let m=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,l.durationProgress>0&&(l.elapsedTime=o.duration*l.durationProgress,g=l.elapsedTime+=e)),m=(o.progress||0)+g/this._memoizedDuration,m=m>1?1:m<0?0:m,l.durationProgress=m),p=E+o.easing(m)*(d-E),y=(p-l.lastPosition)/e,h=m==1}l.lastVelocity=y,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),h=!0)}s&&!s[f].done&&(h=!1),h?l.done=!0:t=!1,l.setValue(p,o.round)&&(r=!0)});const a=_e(this),u=a.getValue();if(t){const l=re(n.to);(u!==l||r)&&!o.decay?(a.setValue(l),this._onChange(l)):r&&o.decay&&this._onChange(u),this._stop()}else r&&this._onChange(u)}set(e){return R.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Te(this)){const{to:e,config:t}=this.animation;R.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let r;return _.und(e)?(r=this.queue||[],this.queue=[]):r=[_.obj(e)?e:{...t,to:e}],Promise.all(r.map(n=>this._update(n))).then(n=>Kn(this,n))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Bt(this._state,e&&this._lastCallId),R.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:r,from:n}=e;r=_.obj(r)?r[t]:r,(r==null||pn(r))&&(r=void 0),n=_.obj(n)?n[t]:n,n==null&&(n=void 0);const i={to:r,from:n};return Zr(this)||(e.reverse&&([r,n]=[n,r]),n=re(n),_.und(n)?_e(this)||this._set(r):this._set(n)),i}_update({...e},t){const{key:r,defaultProps:n}=this;e.default&&Object.assign(n,Gn(e,(s,a)=>/^on/.test(a)?Mo(s,r):s)),zi(this,e,"onProps"),Ot(this,"onProps",e,this);const i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const o=this._state;return Lo(++this._lastCallId,{key:r,props:e,defaultProps:n,state:o,actions:{pause:()=>{xt(this)||($i(this,!0),Pt(o.pauseQueue),Ot(this,"onPause",ge(this,kt(this,this.animation.to)),this))},resume:()=>{xt(this)&&($i(this,!1),Te(this)&&this._resume(),Pt(o.resumeQueue),Ot(this,"onResume",ge(this,kt(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(s=>{if(e.loop&&s.finished&&!(t&&s.noop)){const a=Yo(e);if(a)return this._update(a,!0)}return s})}_merge(e,t,r){if(t.cancel)return this.stop(!0),r(ct(this));const n=!_.und(e.to),i=!_.und(e.from);if(n||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return r(ct(this));const{key:o,defaultProps:s,animation:a}=this,{to:u,from:l}=a;let{to:f=u,from:d=l}=e;i&&!n&&(!t.default||_.und(f))&&(f=d),t.reverse&&([f,d]=[d,f]);const h=!ke(d,l);h&&(a.from=d),d=re(d);const p=!ke(f,u);p&&this._focus(f);const g=pn(t.to),{config:E}=a,{decay:w,velocity:y}=E;(n||i)&&(E.velocity=0),t.config&&!g&&_c(E,Be(t.config,o),t.config!==s.config?Be(s.config,o):void 0);let b=_e(this);if(!b||_.und(f))return r(ge(this,!0));const m=_.und(t.reset)?i&&!t.default:!_.und(d)&&Tt(t.reset,o),S=m?d:this.get(),O=Lt(f),P=_.num(O)||_.arr(O)||Ar(O),k=!g&&(!P||Tt(s.immediate||t.immediate,o));if(p){const W=hn(f);if(W!==b.constructor)if(k)b=this._set(O);else throw Error(`Cannot animate between ${b.constructor.name} and ${W.name}, as the "to" prop suggests`)}const j=b.constructor;let z=fe(f),K=!1;if(!z){const W=m||!Zr(this)&&h;(p||W)&&(K=ke(Lt(S),O),z=!K),(!ke(a.immediate,k)&&!k||!ke(E.decay,w)||!ke(E.velocity,y))&&(z=!0)}if(K&&Te(this)&&(a.changed&&!m?z=!0:z||this._stop(u)),!g&&((z||fe(u))&&(a.values=b.getPayload(),a.toValues=fe(f)?null:j==Ft?[1]:se(O)),a.immediate!=k&&(a.immediate=k,!k&&!m&&this._set(u)),z)){const{onRest:W}=a;D(Oc,U=>zi(this,t,U));const J=ge(this,kt(this,u));Pt(this._pendingCalls,J),this._pendingCalls.add(r),a.changed&&R.batchedUpdates(()=>{var U;a.changed=!m,W==null||W(J,this),m?Be(s.onRest,J):(U=a.onStart)==null||U.call(a,J,this)})}m&&this._set(S),g?r(Uo(t.to,t,this._state,this)):z?this._start():Te(this)&&!p?this._pendingCalls.add(r):r(Bo(S))}_focus(e){const t=this.animation;e!==t.to&&(Oi(this)&&this._detach(),t.to=e,Oi(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;fe(t)&&(yt(t,this),yn(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;fe(e)&&Mt(e,this)}_set(e,t=!0){const r=re(e);if(!_.und(r)){const n=_e(this);if(!n||!ke(r,n.getValue())){const i=hn(r);!n||n.constructor!=i?Yn(this,i.create(r)):n.setValue(r),n&&R.batchedUpdates(()=>{this._onChange(r,t)})}}return _e(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Ot(this,"onStart",ge(this,kt(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Be(this.animation.onChange,e,this)),Be(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;_e(this).reset(re(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Te(this)||(Vi(this,!0),xt(this)||this._resume())}_resume(){we.skipAnimation?this.finish():Cr.start(this)}_stop(e,t){if(Te(this)){Vi(this,!1);const r=this.animation;D(r.values,i=>{i.done=!0}),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),$t(this,{type:"idle",parent:this});const n=t?ct(this.get()):ge(this.get(),kt(this,e??r.to));Pt(this._pendingCalls,n),r.changed&&(r.changed=!1,Ot(this,"onRest",n,this))}}};function kt(e,t){const r=Lt(t),n=Lt(e.get());return ke(n,r)}function Yo(e,t=e.loop,r=e.to){const n=Be(t);if(n){const i=n!==!0&&Fo(n),o=(i||e).reverse,s=!i||i.reset;return Ut({...e,loop:t,default:!1,pause:void 0,to:!o||pn(r)?r:void 0,from:s?e.from:void 0,reset:s,...i})}}function Ut(e){const{to:t,from:r}=e=Fo(e),n=new Set;return _.obj(t)&&Mi(t,n),_.obj(r)&&Mi(r,n),e.keys=n.size?Array.from(n):null,e}function kc(e){const t=Ut(e);return _.und(t.default)&&(t.default=Gn(t)),t}function Mi(e,t){Se(e,(r,n)=>r!=null&&t.add(n))}var Oc=["onStart","onRest","onChange","onPause","onResume"];function zi(e,t,r){e.animation[r]=t[r]!==zo(t,r)?Mo(t[r],e.key):void 0}function Ot(e,t,...r){var n,i,o,s;(i=(n=e.animation)[t])==null||i.call(n,...r),(s=(o=e.defaultProps)[t])==null||s.call(o,...r)}var Pc=["onStart","onChange","onRest"],Cc=1,Nc=class{constructor(e,t){this.id=Cc++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,r)=>e[r]=t.get()),e}set(e){for(const t in e){const r=e[t];_.und(r)||this.springs[t].set(r)}}update(e){return e&&this.queue.push(Ut(e)),this}start(e){let{queue:t}=this;return e?t=se(e).map(Ut):this.queue=[],this._flush?this._flush(this,t):(Jo(this,t),gn(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const r=this.springs;D(se(t),n=>r[n].stop(!!e))}else Bt(this._state,this._lastAsyncId),this.each(r=>r.stop(!!e));return this}pause(e){if(_.und(e))this.start({pause:!0});else{const t=this.springs;D(se(e),r=>t[r].pause())}return this}resume(e){if(_.und(e))this.start({pause:!1});else{const t=this.springs;D(se(e),r=>t[r].resume())}return this}each(e){Se(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:r}=this._events,n=this._active.size>0,i=this._changed.size>0;(n&&!this._started||i&&!this._started)&&(this._started=!0,Rt(e,([a,u])=>{u.value=this.get(),a(u,this,this._item)}));const o=!n&&this._started,s=i||o&&r.size?this.get():null;i&&t.size&&Rt(t,([a,u])=>{u.value=s,a(u,this,this._item)}),o&&(this._started=!1,Rt(r,([a,u])=>{u.value=s,a(u,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;R.onFrame(this._onFrame)}};function gn(e,t){return Promise.all(t.map(r=>Go(e,r))).then(r=>Kn(e,r))}async function Go(e,t,r){const{keys:n,to:i,from:o,loop:s,onRest:a,onResolve:u}=t,l=_.obj(t.default)&&t.default;s&&(t.loop=!1),i===!1&&(t.to=null),o===!1&&(t.from=null);const f=_.arr(i)||_.fun(i)?i:void 0;f?(t.to=void 0,t.onRest=void 0,l&&(l.onRest=void 0)):D(Pc,E=>{const w=t[E];if(_.fun(w)){const y=e._events[E];t[E]=({finished:b,cancelled:m})=>{const S=y.get(w);S?(b||(S.finished=!1),m&&(S.cancelled=!0)):y.set(w,{value:null,finished:b||!1,cancelled:m||!1})},l&&(l[E]=t[E])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Pt(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const h=(n||Object.keys(e.springs)).map(E=>e.springs[E].start(t)),p=t.cancel===!0||zo(t,"cancel")===!0;(f||p&&d.asyncId)&&h.push(Lo(++e._lastAsyncId,{props:t,state:d,actions:{pause:fn,resume:fn,start(E,w){p?(Bt(d,e._lastAsyncId),w(ct(e))):(E.onRest=a,w(Uo(f,E,d,e)))}}})),d.paused&&await new Promise(E=>{d.resumeQueue.add(E)});const g=Kn(e,await Promise.all(h));if(s&&g.finished&&!(r&&g.noop)){const E=Yo(t,s,i);if(E)return Jo(e,[E]),Go(e,E,!0)}return u&&R.batchedUpdates(()=>u(g,e,e.item)),g}function Fi(e,t){const r={...e.springs};return t&&D(se(t),n=>{_.und(n.keys)&&(n=Ut(n)),_.obj(n.to)||(n={...n,to:void 0}),Xo(r,n,i=>Qo(i))}),Ko(e,r),r}function Ko(e,t){Se(t,(r,n)=>{e.springs[n]||(e.springs[n]=r,yt(r,e))})}function Qo(e,t){const r=new xc;return r.key=e,t&&yt(r,t),r}function Xo(e,t,r){t.keys&&D(t.keys,n=>{(e[n]||(e[n]=r(n)))._prepareNode(t)})}function Jo(e,t){D(t,r=>{Xo(e.springs,r,n=>Qo(n,e))})}var Ir=({children:e,...t})=>{const r=C.useContext(gr),n=t.pause||!!r.pause,i=t.immediate||!!r.immediate;t=nc(()=>({pause:n,immediate:i}),[n,i]);const{Provider:o}=gr;return Vn.createElement(o,{value:t},e)},gr=Rc(Ir,{});Ir.Provider=gr.Provider;Ir.Consumer=gr.Consumer;function Rc(e,t){return Object.assign(e,Vn.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var Ac=()=>{const e=[],t=function(n){tc();const i=[];return D(e,(o,s)=>{if(_.und(n))i.push(o.start());else{const a=r(n,o,s);a&&i.push(o.start(a))}}),i};t.current=e,t.add=function(n){e.includes(n)||e.push(n)},t.delete=function(n){const i=e.indexOf(n);~i&&e.splice(i,1)},t.pause=function(){return D(e,n=>n.pause(...arguments)),this},t.resume=function(){return D(e,n=>n.resume(...arguments)),this},t.set=function(n){D(e,(i,o)=>{const s=_.fun(n)?n(o,i):n;s&&i.set(s)})},t.start=function(n){const i=[];return D(e,(o,s)=>{if(_.und(n))i.push(o.start());else{const a=this._getProps(n,o,s);a&&i.push(o.start(a))}}),i},t.stop=function(){return D(e,n=>n.stop(...arguments)),this},t.update=function(n){return D(e,(i,o)=>i.update(this._getProps(n,i,o))),this};const r=function(n,i,o){return _.fun(n)?n(o,i):n};return t._getProps=r,t};function Tc(e,t,r){const n=_.fun(t)&&t;n&&!r&&(r=[]);const i=C.useMemo(()=>n||arguments.length==3?Ac():void 0,[]),o=C.useRef(0),s=Io(),a=C.useMemo(()=>({ctrls:[],queue:[],flush(y,b){const m=Fi(y,b);return o.current>0&&!a.queue.length&&!Object.keys(m).some(O=>!y.springs[O])?gn(y,b):new Promise(O=>{Ko(y,m),a.queue.push(()=>{O(gn(y,b))}),s()})}}),[]),u=C.useRef([...a.ctrls]),l=[],f=Ci(e)||0;C.useMemo(()=>{D(u.current.slice(e,f),y=>{gc(y,i),y.stop(!0)}),u.current.length=e,d(f,e)},[e]),C.useMemo(()=>{d(0,Math.min(f,e))},r);function d(y,b){for(let m=y;m<b;m++){const S=u.current[m]||(u.current[m]=new Nc(null,a.flush)),O=n?n(m,S):t[m];O&&(l[m]=kc(O))}}const h=u.current.map((y,b)=>Fi(y,l[b])),p=C.useContext(Ir),g=Ci(p),E=p!==g&&yc(p);Hn(()=>{o.current++,a.ctrls=u.current;const{queue:y}=a;y.length&&(a.queue=[],D(y,b=>b())),D(u.current,(b,m)=>{i==null||i.add(b),E&&b.start({default:p});const S=l[m];S&&(vc(b,S.ref),b.ref?b.queue.push(S):b.start(S))})}),jo(()=>()=>{D(a.ctrls,y=>y.stop(!0))});const w=h.map(y=>({...y}));return i?[w,i]:w}function Zo(e,t){const r=_.fun(e),[[n],i]=Tc(1,r?e:[e],r?[]:t);return r||arguments.length==2?[n,i]:n}var Dc=class extends Qn{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=jt(...t);const r=this._get(),n=hn(r);Yn(this,n.create(r))}advance(e){const t=this._get(),r=this.get();ke(t,r)||(_e(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Li(this._active)&&en(this)}_get(){const e=_.arr(this.source)?this.source.map(re):se(re(this.source));return this.calc(...e)}_start(){this.idle&&!Li(this._active)&&(this.idle=!1,D(Tr(this),e=>{e.done=!1}),we.skipAnimation?(R.batchedUpdates(()=>this.advance()),en(this)):Cr.start(this))}_attach(){let e=1;D(se(this.source),t=>{fe(t)&&yt(t,this),yn(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){D(se(this.source),e=>{fe(e)&&Mt(e,this)}),this._active.clear(),en(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=se(this.source).reduce((t,r)=>Math.max(t,(yn(r)?r.priority:0)+1),0))}};function Ic(e){return e.idle!==!1}function Li(e){return!e.size||Array.from(e).every(Ic)}function en(e){e.idle||(e.idle=!0,D(Tr(e),t=>{t.done=!0}),$t(e,{type:"idle",parent:e}))}we.assign({createStringInterpolator:To,to:(e,t)=>new Dc(e,t)});var es=/^--/;function jc(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!es.test(e)&&!(Dt.hasOwnProperty(e)&&Dt[e])?t+"px":(""+t).trim()}var Bi={};function Vc(e,t){if(!e.nodeType||!e.setAttribute)return!1;const r=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:n,style:i,children:o,scrollTop:s,scrollLeft:a,viewBox:u,...l}=t,f=Object.values(l),d=Object.keys(l).map(h=>r||e.hasAttribute(h)?h:Bi[h]||(Bi[h]=h.replace(/([A-Z])/g,p=>"-"+p.toLowerCase())));o!==void 0&&(e.textContent=o);for(const h in i)if(i.hasOwnProperty(h)){const p=jc(h,i[h]);es.test(h)?e.style.setProperty(h,p):e.style[h]=p}d.forEach((h,p)=>{e.setAttribute(h,f[p])}),n!==void 0&&(e.className=n),s!==void 0&&(e.scrollTop=s),a!==void 0&&(e.scrollLeft=a),u!==void 0&&e.setAttribute("viewBox",u)}var Dt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},$c=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),Mc=["Webkit","Ms","Moz","O"];Dt=Object.keys(Dt).reduce((e,t)=>(Mc.forEach(r=>e[$c(r,t)]=e[t]),e),Dt);var zc=/^(matrix|translate|scale|rotate|skew)/,Fc=/^(translate)/,Lc=/^(rotate|skew)/,tn=(e,t)=>_.num(e)&&e!==0?e+t:e,cr=(e,t)=>_.arr(e)?e.every(r=>cr(r,t)):_.num(e)?e===t:parseFloat(e)===t,Bc=class extends Dr{constructor({x:e,y:t,z:r,...n}){const i=[],o=[];(e||t||r)&&(i.push([e||0,t||0,r||0]),o.push(s=>[`translate3d(${s.map(a=>tn(a,"px")).join(",")})`,cr(s,0)])),Se(n,(s,a)=>{if(a==="transform")i.push([s||""]),o.push(u=>[u,u===""]);else if(zc.test(a)){if(delete n[a],_.und(s))return;const u=Fc.test(a)?"px":Lc.test(a)?"deg":"";i.push(se(s)),o.push(a==="rotate3d"?([l,f,d,h])=>[`rotate3d(${l},${f},${d},${tn(h,u)})`,cr(h,0)]:l=>[`${a}(${l.map(f=>tn(f,u)).join(",")})`,cr(l,a.startsWith("scale")?1:0)])}}),i.length&&(n.transform=new Uc(i,o)),super(n)}},Uc=class extends No{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return D(this.inputs,(r,n)=>{const i=re(r[0]),[o,s]=this.transforms[n](_.arr(i)?i:r.map(re));e+=" "+o,t=t&&s}),t?"none":e}observerAdded(e){e==1&&D(this.inputs,t=>D(t,r=>fe(r)&&yt(r,this)))}observerRemoved(e){e==0&&D(this.inputs,t=>D(t,r=>fe(r)&&Mt(r,this)))}eventObserved(e){e.type=="change"&&(this._value=null),$t(this,e)}},Wc=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];we.assign({batchedUpdates:_a.unstable_batchedUpdates,createStringInterpolator:To,colors:Da});var qc=fc(Wc,{applyAnimatedValues:Vc,createAnimatedStyle:e=>new Bc(e),getComponentProps:({scrollTop:e,scrollLeft:t,...r})=>r}),ts=qc.animated;function Xn({animate:e=!0,content:t,textStyles:r,htmlElement:n,fadeIn:i,characterPreference:o="simplified"}){const s=n??"div",[a,u]=C.useState(!1),[l,f]=C.useState(void 0),d=C.useRef(null),[h,p]=Zo(()=>({opacity:i?0:1,transform:i?"scale(0)":"scale(1)",config:{duration:200}})),g=C.useRef(e);C.useLayoutEffect(()=>{if(!d.current)return;const K=d.current,W=K.textContent,J=[t.english,t.simplified,t.traditional];let U=0;J.forEach(oe=>{K.textContent=oe,U=Math.max(U,K.offsetWidth)}),K.textContent=W,f(U)},[t.english,t.simplified,t.traditional]),C.useEffect(()=>{if(!e){g.current=e;return}const K=!g.current&&e;g.current=e;const W=K?500:Math.floor(Math.random()*11501)+3500,J=setTimeout(()=>{p.start({opacity:0,transform:"translateY(15px)",onRest:()=>{u(U=>!U),p.start({opacity:1,transform:"translateY(0px)"})}})},W);return()=>clearTimeout(J)},[a,e,p]);const E=o==="traditional"?t.traditional:t.simplified,w=e&&a?E:t.english,{fontSize:y,fontFamily:b,fontWeight:m,fontStyle:S,letterSpacing:O,lineHeight:P,...k}=r||{},z={...k,...{fontSize:y,fontFamily:b,fontWeight:m,fontStyle:S,letterSpacing:O,lineHeight:P},display:"inline-block",alignContent:"center",minWidth:l!==void 0?`${l}px`:void 0};return V.jsx(ts.div,{style:h,children:V.jsx(s,{style:z,children:V.jsx("span",{ref:d,children:w})})})}var ie=function(){return ie=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},ie.apply(this,arguments)};function Ke(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function Hc(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Yc=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Gc=Hc(function(e){return Yc.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),L="-ms-",It="-moz-",M="-webkit-",rs="comm",jr="rule",Jn="decl",Kc="@import",ns="@keyframes",Qc="@layer",is=Math.abs,Zn=String.fromCharCode,vn=Object.assign;function Xc(e,t){return Q(e,0)^45?(((t<<2^Q(e,0))<<2^Q(e,1))<<2^Q(e,2))<<2^Q(e,3):0}function os(e){return e.trim()}function Oe(e,t){return(e=t.exec(e))?e[0]:e}function A(e,t,r){return e.replace(t,r)}function ur(e,t,r){return e.indexOf(t,r)}function Q(e,t){return e.charCodeAt(t)|0}function lt(e,t,r){return e.slice(t,r)}function Ee(e){return e.length}function ss(e){return e.length}function Ct(e,t){return t.push(e),e}function Jc(e,t){return e.map(t).join("")}function Ui(e,t){return e.filter(function(r){return!Oe(r,t)})}var Vr=1,ft=1,as=0,he=0,G=0,gt="";function $r(e,t,r,n,i,o,s,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Vr,column:ft,length:s,return:"",siblings:a}}function De(e,t){return vn($r("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function st(e){for(;e.root;)e=De(e.root,{children:[e]});Ct(e,e.siblings)}function Zc(){return G}function eu(){return G=he>0?Q(gt,--he):0,ft--,G===10&&(ft=1,Vr--),G}function be(){return G=he<as?Q(gt,he++):0,ft++,G===10&&(ft=1,Vr++),G}function qe(){return Q(gt,he)}function lr(){return he}function Mr(e,t){return lt(gt,e,t)}function bn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function tu(e){return Vr=ft=1,as=Ee(gt=e),he=0,[]}function ru(e){return gt="",e}function rn(e){return os(Mr(he-1,wn(e===91?e+2:e===40?e+1:e)))}function nu(e){for(;(G=qe())&&G<33;)be();return bn(e)>2||bn(G)>3?"":" "}function iu(e,t){for(;--t&&be()&&!(G<48||G>102||G>57&&G<65||G>70&&G<97););return Mr(e,lr()+(t<6&&qe()==32&&be()==32))}function wn(e){for(;be();)switch(G){case e:return he;case 34:case 39:e!==34&&e!==39&&wn(G);break;case 40:e===41&&wn(e);break;case 92:be();break}return he}function ou(e,t){for(;be()&&e+G!==57;)if(e+G===84&&qe()===47)break;return"/*"+Mr(t,he-1)+"*"+Zn(e===47?e:be())}function su(e){for(;!bn(qe());)be();return Mr(e,he)}function au(e){return ru(fr("",null,null,null,[""],e=tu(e),0,[0],e))}function fr(e,t,r,n,i,o,s,a,u){for(var l=0,f=0,d=s,h=0,p=0,g=0,E=1,w=1,y=1,b=0,m="",S=i,O=o,P=n,k=m;w;)switch(g=b,b=be()){case 40:if(g!=108&&Q(k,d-1)==58){ur(k+=A(rn(b),"&","&\f"),"&\f",is(l?a[l-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:k+=rn(b);break;case 9:case 10:case 13:case 32:k+=nu(g);break;case 92:k+=iu(lr()-1,7);continue;case 47:switch(qe()){case 42:case 47:Ct(cu(ou(be(),lr()),t,r,u),u);break;default:k+="/"}break;case 123*E:a[l++]=Ee(k)*y;case 125*E:case 59:case 0:switch(b){case 0:case 125:w=0;case 59+f:y==-1&&(k=A(k,/\f/g,"")),p>0&&Ee(k)-d&&Ct(p>32?qi(k+";",n,r,d-1,u):qi(A(k," ","")+";",n,r,d-2,u),u);break;case 59:k+=";";default:if(Ct(P=Wi(k,t,r,l,f,i,a,m,S=[],O=[],d,o),o),b===123)if(f===0)fr(k,t,P,P,S,o,d,a,O);else switch(h===99&&Q(k,3)===110?100:h){case 100:case 108:case 109:case 115:fr(e,P,P,n&&Ct(Wi(e,P,P,0,0,i,a,m,i,S=[],d,O),O),i,O,d,a,n?S:O);break;default:fr(k,P,P,P,[""],O,0,a,O)}}l=f=p=0,E=y=1,m=k="",d=s;break;case 58:d=1+Ee(k),p=g;default:if(E<1){if(b==123)--E;else if(b==125&&E++==0&&eu()==125)continue}switch(k+=Zn(b),b*E){case 38:y=f>0?1:(k+="\f",-1);break;case 44:a[l++]=(Ee(k)-1)*y,y=1;break;case 64:qe()===45&&(k+=rn(be())),h=qe(),f=d=Ee(m=k+=su(lr())),b++;break;case 45:g===45&&Ee(k)==2&&(E=0)}}return o}function Wi(e,t,r,n,i,o,s,a,u,l,f,d){for(var h=i-1,p=i===0?o:[""],g=ss(p),E=0,w=0,y=0;E<n;++E)for(var b=0,m=lt(e,h+1,h=is(w=s[E])),S=e;b<g;++b)(S=os(w>0?p[b]+" "+m:A(m,/&\f/g,p[b])))&&(u[y++]=S);return $r(e,t,r,i===0?jr:a,u,l,f,d)}function cu(e,t,r,n){return $r(e,t,r,rs,Zn(Zc()),lt(e,2,-2),0,n)}function qi(e,t,r,n,i){return $r(e,t,r,Jn,lt(e,0,n),lt(e,n+1,-1),n,i)}function cs(e,t,r){switch(Xc(e,t)){case 5103:return M+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return M+e+e;case 4789:return It+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return M+e+It+e+L+e+e;case 5936:switch(Q(e,t+11)){case 114:return M+e+L+A(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return M+e+L+A(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return M+e+L+A(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return M+e+L+e+e;case 6165:return M+e+L+"flex-"+e+e;case 5187:return M+e+A(e,/(\w+).+(:[^]+)/,M+"box-$1$2"+L+"flex-$1$2")+e;case 5443:return M+e+L+"flex-item-"+A(e,/flex-|-self/g,"")+(Oe(e,/flex-|baseline/)?"":L+"grid-row-"+A(e,/flex-|-self/g,""))+e;case 4675:return M+e+L+"flex-line-pack"+A(e,/align-content|flex-|-self/g,"")+e;case 5548:return M+e+L+A(e,"shrink","negative")+e;case 5292:return M+e+L+A(e,"basis","preferred-size")+e;case 6060:return M+"box-"+A(e,"-grow","")+M+e+L+A(e,"grow","positive")+e;case 4554:return M+A(e,/([^-])(transform)/g,"$1"+M+"$2")+e;case 6187:return A(A(A(e,/(zoom-|grab)/,M+"$1"),/(image-set)/,M+"$1"),e,"")+e;case 5495:case 3959:return A(e,/(image-set\([^]*)/,M+"$1$`$1");case 4968:return A(A(e,/(.+:)(flex-)?(.*)/,M+"box-pack:$3"+L+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+M+e+e;case 4200:if(!Oe(e,/flex-|baseline/))return L+"grid-column-align"+lt(e,t)+e;break;case 2592:case 3360:return L+A(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,i){return t=i,Oe(n.props,/grid-\w+-end/)})?~ur(e+(r=r[t].value),"span",0)?e:L+A(e,"-start","")+e+L+"grid-row-span:"+(~ur(r,"span",0)?Oe(r,/\d+/):+Oe(r,/\d+/)-+Oe(e,/\d+/))+";":L+A(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return Oe(n.props,/grid-\w+-start/)})?e:L+A(A(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return A(e,/(.+)-inline(.+)/,M+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ee(e)-1-t>6)switch(Q(e,t+1)){case 109:if(Q(e,t+4)!==45)break;case 102:return A(e,/(.+:)(.+)-([^]+)/,"$1"+M+"$2-$3$1"+It+(Q(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ur(e,"stretch",0)?cs(A(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return A(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,i,o,s,a,u,l){return L+i+":"+o+l+(s?L+i+"-span:"+(a?u:+u-+o)+l:"")+e});case 4949:if(Q(e,t+6)===121)return A(e,":",":"+M)+e;break;case 6444:switch(Q(e,Q(e,14)===45?18:11)){case 120:return A(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+M+(Q(e,14)===45?"inline-":"")+"box$3$1"+M+"$2$3$1"+L+"$2box$3")+e;case 100:return A(e,":",":"+L)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return A(e,"scroll-","scroll-snap-")+e}return e}function vr(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function uu(e,t,r,n){switch(e.type){case Qc:if(e.children.length)break;case Kc:case Jn:return e.return=e.return||e.value;case rs:return"";case ns:return e.return=e.value+"{"+vr(e.children,n)+"}";case jr:if(!Ee(e.value=e.props.join(",")))return""}return Ee(r=vr(e.children,n))?e.return=e.value+"{"+r+"}":""}function lu(e){var t=ss(e);return function(r,n,i,o){for(var s="",a=0;a<t;a++)s+=e[a](r,n,i,o)||"";return s}}function fu(e){return function(t){t.root||(t=t.return)&&e(t)}}function du(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Jn:e.return=cs(e.value,e.length,r);return;case ns:return vr([De(e,{value:A(e.value,"@","@"+M)})],n);case jr:if(e.length)return Jc(r=e.props,function(i){switch(Oe(i,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":st(De(e,{props:[A(i,/:(read-\w+)/,":"+It+"$1")]})),st(De(e,{props:[i]})),vn(e,{props:Ui(r,n)});break;case"::placeholder":st(De(e,{props:[A(i,/:(plac\w+)/,":"+M+"input-$1")]})),st(De(e,{props:[A(i,/:(plac\w+)/,":"+It+"$1")]})),st(De(e,{props:[A(i,/:(plac\w+)/,L+"input-$1")]})),st(De(e,{props:[i]})),vn(e,{props:Ui(r,n)});break}return""})}}var hu={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Qe=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",us="active",ls="data-styled-version",zr="6.1.16",ei=`/*!sc*/
|
|
30
|
+
<%s key={someKey} {...props} />`,Kr,Fe,ba,Fe),gi[Fe+Kr]=!0}}return c===n?pa(Y):ha(Y),Y}}function ma(c,v,x){return vi(c,v,x,!0)}function ya(c,v,x){return vi(c,v,x,!1)}var ga=ya,va=ma;St.Fragment=n,St.jsx=ga,St.jsxs=va}()),St}var _i;function ka(){return _i||(_i=1,process.env.NODE_ENV==="production"?Zt.exports=Sa():Zt.exports=xa()),Zt.exports}var V=ka(),$n=Yt(),R=e=>Ht(e,$n),Mn=Yt();R.write=e=>Ht(e,Mn);var Pr=Yt();R.onStart=e=>Ht(e,Pr);var zn=Yt();R.onFrame=e=>Ht(e,zn);var Fn=Yt();R.onFinish=e=>Ht(e,Fn);var at=[];R.setTimeout=(e,t)=>{const r=R.now()+t,n=()=>{const o=at.findIndex(s=>s.cancel==n);~o&&at.splice(o,1),Ve-=~o?1:0},i={time:r,handler:e,cancel:n};return at.splice(wo(r),0,i),Ve+=1,_o(),i};var wo=e=>~(~at.findIndex(t=>t.time>e)||~at.length);R.cancel=e=>{Pr.delete(e),zn.delete(e),Fn.delete(e),$n.delete(e),Mn.delete(e)};R.sync=e=>{ln=!0,R.batchedUpdates(e),ln=!1};R.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function n(...i){t=i,R.onStart(r)}return n.handler=e,n.cancel=()=>{Pr.delete(r),t=null},n};var Ln=typeof window<"u"?window.requestAnimationFrame:()=>{};R.use=e=>Ln=e;R.now=typeof performance<"u"?()=>performance.now():Date.now;R.batchedUpdates=e=>e();R.catch=console.error;R.frameLoop="always";R.advance=()=>{R.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):So()};var je=-1,Ve=0,ln=!1;function Ht(e,t){ln?(t.delete(e),e(0)):(t.add(e),_o())}function _o(){je<0&&(je=0,R.frameLoop!=="demand"&&Ln(Eo))}function Oa(){je=-1}function Eo(){~je&&(Ln(Eo),R.batchedUpdates(So))}function So(){const e=je;je=R.now();const t=wo(je);if(t&&(xo(at.splice(0,t),r=>r.handler()),Ve-=t),!Ve){Oa();return}Pr.flush(),$n.flush(e?Math.min(64,je-e):16.667),zn.flush(),Mn.flush(),Fn.flush()}function Yt(){let e=new Set,t=e;return{add(r){Ve+=t==e&&!e.has(r)?1:0,e.add(r)},delete(r){return Ve-=t==e&&e.has(r)?1:0,e.delete(r)},flush(r){t.size&&(e=new Set,Ve-=t.size,xo(t,n=>n(r)&&e.add(n)),Ve+=e.size,t=e)}}}function xo(e,t){e.forEach(r=>{try{t(r)}catch(n){R.catch(n)}})}var Pa=Object.defineProperty,Ca=(e,t)=>{for(var r in t)Pa(e,r,{get:t[r],enumerable:!0})},we={};Ca(we,{assign:()=>Ra,colors:()=>$e,createStringInterpolator:()=>Un,skipAnimation:()=>Oo,to:()=>ko,willAdvance:()=>Wn});function fn(){}var Na=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),_={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function ke(e,t){if(_.arr(e)){if(!_.arr(t)||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return e===t}var D=(e,t)=>e.forEach(t);function Se(e,t,r){if(_.arr(e)){for(let n=0;n<e.length;n++)t.call(r,e[n],`${n}`);return}for(const n in e)e.hasOwnProperty(n)&&t.call(r,e[n],n)}var se=e=>_.und(e)?[]:_.arr(e)?e:[e];function Rt(e,t){if(e.size){const r=Array.from(e);e.clear(),D(r,t)}}var Pt=(e,...t)=>Rt(e,r=>r(...t)),Bn=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Un,ko,$e=null,Oo=!1,Wn=fn,Ra=e=>{e.to&&(ko=e.to),e.now&&(R.now=e.now),e.colors!==void 0&&($e=e.colors),e.skipAnimation!=null&&(Oo=e.skipAnimation),e.createStringInterpolator&&(Un=e.createStringInterpolator),e.requestAnimationFrame&&R.use(e.requestAnimationFrame),e.batchedUpdates&&(R.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Wn=e.willAdvance),e.frameLoop&&(R.frameLoop=e.frameLoop)},At=new Set,de=[],Qr=[],pr=0,Cr={get idle(){return!At.size&&!de.length},start(e){pr>e.priority?(At.add(e),R.onStart(Aa)):(Po(e),R(dn))},advance:dn,sort(e){if(pr)R.onFrame(()=>Cr.sort(e));else{const t=de.indexOf(e);~t&&(de.splice(t,1),Co(e))}},clear(){de=[],At.clear()}};function Aa(){At.forEach(Po),At.clear(),R(dn)}function Po(e){de.includes(e)||Co(e)}function Co(e){de.splice(Ta(de,t=>t.priority>e.priority),0,e)}function dn(e){const t=Qr;for(let r=0;r<de.length;r++){const n=de[r];pr=n.priority,n.idle||(Wn(n),n.advance(e),n.idle||t.push(n))}return pr=0,Qr=de,Qr.length=0,de=t,de.length>0}function Ta(e,t){const r=e.findIndex(t);return r<0?e.length:r}var Da={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},ve="[-+]?\\d*\\.?\\d+",mr=ve+"%";function Nr(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Ia=new RegExp("rgb"+Nr(ve,ve,ve)),ja=new RegExp("rgba"+Nr(ve,ve,ve,ve)),Va=new RegExp("hsl"+Nr(ve,mr,mr)),$a=new RegExp("hsla"+Nr(ve,mr,mr,ve)),Ma=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,za=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Fa=/^#([0-9a-fA-F]{6})$/,La=/^#([0-9a-fA-F]{8})$/;function Ba(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Fa.exec(e))?parseInt(t[1]+"ff",16)>>>0:$e&&$e[e]!==void 0?$e[e]:(t=Ia.exec(e))?(ot(t[1])<<24|ot(t[2])<<16|ot(t[3])<<8|255)>>>0:(t=ja.exec(e))?(ot(t[1])<<24|ot(t[2])<<16|ot(t[3])<<8|xi(t[4]))>>>0:(t=Ma.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=La.exec(e))?parseInt(t[1],16)>>>0:(t=za.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Va.exec(e))?(Ei(Si(t[1]),er(t[2]),er(t[3]))|255)>>>0:(t=$a.exec(e))?(Ei(Si(t[1]),er(t[2]),er(t[3]))|xi(t[4]))>>>0:null}function Xr(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Ei(e,t,r){const n=r<.5?r*(1+t):r+t-r*t,i=2*r-n,o=Xr(i,n,e+1/3),s=Xr(i,n,e),a=Xr(i,n,e-1/3);return Math.round(o*255)<<24|Math.round(s*255)<<16|Math.round(a*255)<<8}function ot(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Si(e){return(parseFloat(e)%360+360)%360/360}function xi(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function er(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function ki(e){let t=Ba(e);if(t===null)return e;t=t||0;const r=(t&4278190080)>>>24,n=(t&16711680)>>>16,i=(t&65280)>>>8,o=(t&255)/255;return`rgba(${r}, ${n}, ${i}, ${o})`}var jt=(e,t,r)=>{if(_.fun(e))return e;if(_.arr(e))return jt({range:e,output:t,extrapolate:r});if(_.str(e.output[0]))return Un(e);const n=e,i=n.output,o=n.range||[0,1],s=n.extrapolateLeft||n.extrapolate||"extend",a=n.extrapolateRight||n.extrapolate||"extend",u=n.easing||(l=>l);return l=>{const f=Wa(l,o);return Ua(l,o[f],o[f+1],i[f],i[f+1],u,s,a,n.map)}};function Ua(e,t,r,n,i,o,s,a,u){let l=u?u(e):e;if(l<t){if(s==="identity")return l;s==="clamp"&&(l=t)}if(l>r){if(a==="identity")return l;a==="clamp"&&(l=r)}return n===i?n:t===r?e<=t?n:i:(t===-1/0?l=-l:r===1/0?l=l-t:l=(l-t)/(r-t),l=o(l),n===-1/0?l=-l:i===1/0?l=l+n:l=l*(i-n)+n,l)}function Wa(e,t){for(var r=1;r<t.length-1&&!(t[r]>=e);++r);return r-1}var qa={linear:e=>e},Vt=Symbol.for("FluidValue.get"),ut=Symbol.for("FluidValue.observers"),fe=e=>!!(e&&e[Vt]),re=e=>e&&e[Vt]?e[Vt]():e,Oi=e=>e[ut]||null;function Ha(e,t){e.eventObserved?e.eventObserved(t):e(t)}function $t(e,t){const r=e[ut];r&&r.forEach(n=>{Ha(n,t)})}var No=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Ya(this,e)}},Ya=(e,t)=>Ro(e,Vt,t);function yt(e,t){if(e[Vt]){let r=e[ut];r||Ro(e,ut,r=new Set),r.has(t)||(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function Mt(e,t){const r=e[ut];if(r&&r.has(t)){const n=r.size-1;n?r.delete(t):e[ut]=null,e.observerRemoved&&e.observerRemoved(n,t)}}var Ro=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),ar=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Ga=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Pi=new RegExp(`(${ar.source})(%|[a-z]+)`,"i"),Ka=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Rr=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Ao=e=>{const[t,r]=Qa(e);if(!t||Bn())return e;const n=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(n)return n.trim();if(r&&r.startsWith("--")){const i=window.getComputedStyle(document.documentElement).getPropertyValue(r);return i||e}else{if(r&&Rr.test(r))return Ao(r);if(r)return r}return e},Qa=e=>{const t=Rr.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]},Jr,Xa=(e,t,r,n,i)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(n)}, ${i})`,To=e=>{Jr||(Jr=$e?new RegExp(`(${Object.keys($e).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(o=>re(o).replace(Rr,Ao).replace(Ga,ki).replace(Jr,ki)),r=t.map(o=>o.match(ar).map(Number)),i=r[0].map((o,s)=>r.map(a=>{if(!(s in a))throw Error('The arity of each "output" value must be equal');return a[s]})).map(o=>jt({...e,output:o}));return o=>{var u;const s=!Pi.test(t[0])&&((u=t.find(l=>Pi.test(l)))==null?void 0:u.replace(ar,""));let a=0;return t[0].replace(ar,()=>`${i[a++](o)}${s||""}`).replace(Ka,Xa)}},qn="react-spring: ",Do=e=>{const t=e;let r=!1;if(typeof t!="function")throw new TypeError(`${qn}once requires a function parameter`);return(...n)=>{r||(t(...n),r=!0)}},Ja=Do(console.warn);function Za(){Ja(`${qn}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var ec=Do(console.warn);function tc(){ec(`${qn}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function Ar(e){return _.str(e)&&(e[0]=="#"||/\d/.test(e)||!Bn()&&Rr.test(e)||e in($e||{}))}var Hn=Bn()?C.useEffect:C.useLayoutEffect,rc=()=>{const e=C.useRef(!1);return Hn(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Io(){const e=C.useState()[1],t=rc();return()=>{t.current&&e(Math.random())}}function nc(e,t){const[r]=C.useState(()=>({inputs:t,result:e()})),n=C.useRef(),i=n.current;let o=i;return o?t&&o.inputs&&ic(t,o.inputs)||(o={inputs:t,result:e()}):o=r,C.useEffect(()=>{n.current=o,i==r&&(r.inputs=r.result=void 0)},[o]),o.result}function ic(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var jo=e=>C.useEffect(e,oc),oc=[];function Ci(e){const t=C.useRef();return C.useEffect(()=>{t.current=e}),t.current}var zt=Symbol.for("Animated:node"),sc=e=>!!e&&e[zt]===e,_e=e=>e&&e[zt],Yn=(e,t)=>Na(e,zt,t),Tr=e=>e&&e[zt]&&e[zt].getPayload(),Vo=class{constructor(){Yn(this,this)}getPayload(){return this.payload||[]}},Gt=class extends Vo{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,_.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Gt(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return _.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,_.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Ft=class extends Gt{constructor(e){super(0),this._string=null,this._toString=jt({output:[e,e]})}static create(e){return new Ft(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(_.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=jt({output:[this.getValue(),e]})),this._value=0,super.reset()}},yr={dependencies:null},Dr=class extends Vo{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Se(this.source,(r,n)=>{sc(r)?t[n]=r.getValue(e):fe(r)?t[n]=re(r):e||(t[n]=r)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&D(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Se(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){yr.dependencies&&fe(e)&&yr.dependencies.add(e);const t=Tr(e);t&&D(t,r=>this.add(r))}},$o=class extends Dr{constructor(e){super(e)}static create(e){return new $o(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((r,n)=>r.setValue(e[n])).some(Boolean):(super.setValue(e.map(ac)),!0)}};function ac(e){return(Ar(e)?Ft:Gt).create(e)}function hn(e){const t=_e(e);return t?t.constructor:_.arr(e)?$o:Ar(e)?Ft:Gt}var Ni=(e,t)=>{const r=!_.fun(e)||e.prototype&&e.prototype.isReactComponent;return C.forwardRef((n,i)=>{const o=C.useRef(null),s=r&&C.useCallback(g=>{o.current=lc(i,g)},[i]),[a,u]=uc(n,t),l=Io(),f=()=>{const g=o.current;if(r&&!g)return;(g?t.applyAnimatedValues(g,a.getValue(!0)):!1)===!1&&l()},d=new cc(f,u),h=C.useRef();Hn(()=>(h.current=d,D(u,g=>yt(g,d)),()=>{h.current&&(D(h.current.deps,g=>Mt(g,h.current)),R.cancel(h.current.update))})),C.useEffect(f,[]),jo(()=>()=>{const g=h.current;D(g.deps,E=>Mt(E,g))});const p=t.getComponentProps(a.getValue());return Vn.createElement(e,{...p,ref:s})})},cc=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&R.write(this.update)}};function uc(e,t){const r=new Set;return yr.dependencies=r,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Dr(e),yr.dependencies=null,[e,r]}function lc(e,t){return e&&(_.fun(e)?e(t):e.current=t),t}var Ri=Symbol.for("AnimatedComponent"),fc=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:r=i=>new Dr(i),getComponentProps:n=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:n},o=s=>{const a=Ai(s)||"Anonymous";return _.str(s)?s=o[s]||(o[s]=Ni(s,i)):s=s[Ri]||(s[Ri]=Ni(s,i)),s.displayName=`Animated(${a})`,s};return Se(e,(s,a)=>{_.arr(e)&&(a=Ai(s)),o[a]=o(s)}),{animated:o}},Ai=e=>_.str(e)?e:e&&_.str(e.displayName)?e.displayName:_.fun(e)&&e.name||null;function Be(e,...t){return _.fun(e)?e(...t):e}var Tt=(e,t)=>e===!0||!!(t&&e&&(_.fun(e)?e(t):se(e).includes(t))),Mo=(e,t)=>_.obj(e)?t&&e[t]:e,zo=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,dc=e=>e,Gn=(e,t=dc)=>{let r=hc;e.default&&e.default!==!0&&(e=e.default,r=Object.keys(e));const n={};for(const i of r){const o=t(e[i],i);_.und(o)||(n[i]=o)}return n},hc=["config","onProps","onStart","onChange","onPause","onResume","onRest"],pc={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function mc(e){const t={};let r=0;if(Se(e,(n,i)=>{pc[i]||(t[i]=n,r++)}),r)return t}function Fo(e){const t=mc(e);if(t){const r={to:t};return Se(e,(n,i)=>i in t||(r[i]=n)),r}return{...e}}function Lt(e){return e=re(e),_.arr(e)?e.map(Lt):Ar(e)?we.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function yc(e){for(const t in e)return!0;return!1}function pn(e){return _.fun(e)||_.arr(e)&&_.obj(e[0])}function gc(e,t){var r;(r=e.ref)==null||r.delete(e),t==null||t.delete(e)}function vc(e,t){var r;t&&e.ref!==t&&((r=e.ref)==null||r.delete(e),t.add(e),e.ref=t)}var bc={default:{tension:170,friction:26}},mn={...bc.default,mass:1,damping:1,easing:qa.linear,clamp:!1},wc=class{constructor(){this.velocity=0,Object.assign(this,mn)}};function _c(e,t,r){r&&(r={...r},Ti(r,t),t={...r,...t}),Ti(e,t),Object.assign(e,t);for(const s in mn)e[s]==null&&(e[s]=mn[s]);let{frequency:n,damping:i}=e;const{mass:o}=e;return _.und(n)||(n<.01&&(n=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/n,2)*o,e.friction=4*Math.PI*i*o/n),e}function Ti(e,t){if(!_.und(t.decay))e.duration=void 0;else{const r=!_.und(t.tension)||!_.und(t.friction);(r||!_.und(t.frequency)||!_.und(t.damping)||!_.und(t.mass))&&(e.duration=void 0,e.decay=void 0),r&&(e.frequency=void 0)}}var Di=[],Ec=class{constructor(){this.changed=!1,this.values=Di,this.toValues=null,this.fromValues=Di,this.config=new wc,this.immediate=!1}};function Lo(e,{key:t,props:r,defaultProps:n,state:i,actions:o}){return new Promise((s,a)=>{let u,l,f=Tt(r.cancel??(n==null?void 0:n.cancel),t);if(f)p();else{_.und(r.pause)||(i.paused=Tt(r.pause,t));let g=n==null?void 0:n.pause;g!==!0&&(g=i.paused||Tt(g,t)),u=Be(r.delay||0,t),g?(i.resumeQueue.add(h),o.pause()):(o.resume(),h())}function d(){i.resumeQueue.add(h),i.timeouts.delete(l),l.cancel(),u=l.time-R.now()}function h(){u>0&&!we.skipAnimation?(i.delayed=!0,l=R.setTimeout(p,u),i.pauseQueue.add(d),i.timeouts.add(l)):p()}function p(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(l),e<=(i.cancelId||0)&&(f=!0);try{o.start({...r,callId:e,cancel:f},s)}catch(g){a(g)}}})}var Kn=(e,t)=>t.length==1?t[0]:t.some(r=>r.cancelled)?ct(e.get()):t.every(r=>r.noop)?Bo(e.get()):ge(e.get(),t.every(r=>r.finished)),Bo=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),ge=(e,t,r=!1)=>({value:e,finished:t,cancelled:r}),ct=e=>({value:e,cancelled:!0,finished:!1});function Uo(e,t,r,n){const{callId:i,parentId:o,onRest:s}=t,{asyncTo:a,promise:u}=r;return!o&&e===a&&!t.reset?u:r.promise=(async()=>{r.asyncId=i,r.asyncTo=e;const l=Gn(t,(w,y)=>y==="onRest"?void 0:w);let f,d;const h=new Promise((w,y)=>(f=w,d=y)),p=w=>{const y=i<=(r.cancelId||0)&&ct(n)||i!==r.asyncId&&ge(n,!1);if(y)throw w.result=y,d(w),w},g=(w,y)=>{const b=new Ii,m=new ji;return(async()=>{if(we.skipAnimation)throw Bt(r),m.result=ge(n,!1),d(m),m;p(b);const S=_.obj(w)?{...w}:{...y,to:w};S.parentId=i,Se(l,(P,k)=>{_.und(S[k])&&(S[k]=P)});const O=await n.start(S);return p(b),r.paused&&await new Promise(P=>{r.resumeQueue.add(P)}),O})()};let E;if(we.skipAnimation)return Bt(r),ge(n,!1);try{let w;_.arr(e)?w=(async y=>{for(const b of y)await g(b)})(e):w=Promise.resolve(e(g,n.stop.bind(n))),await Promise.all([w.then(f),h]),E=ge(n.get(),!0,!1)}catch(w){if(w instanceof Ii)E=w.result;else if(w instanceof ji)E=w.result;else throw w}finally{i==r.asyncId&&(r.asyncId=o,r.asyncTo=o?a:void 0,r.promise=o?u:void 0)}return _.fun(s)&&R.batchedUpdates(()=>{s(E,n,n.item)}),E})()}function Bt(e,t){Rt(e.timeouts,r=>r.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Ii=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},ji=class extends Error{constructor(){super("SkipAnimationSignal")}},yn=e=>e instanceof Qn,Sc=1,Qn=class extends No{constructor(){super(...arguments),this.id=Sc++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=_e(this);return e&&e.getValue()}to(...e){return we.to(this,e)}interpolate(...e){return Za(),we.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){$t(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Cr.sort(this),$t(this,{type:"priority",parent:this,priority:e})}},Ge=Symbol.for("SpringPhase"),Wo=1,qo=2,Ho=4,Zr=e=>(e[Ge]&Wo)>0,Te=e=>(e[Ge]&qo)>0,xt=e=>(e[Ge]&Ho)>0,Vi=(e,t)=>t?e[Ge]|=qo|Wo:e[Ge]&=-3,$i=(e,t)=>t?e[Ge]|=Ho:e[Ge]&=-5,xc=class extends Qn{constructor(e,t){if(super(),this.animation=new Ec,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!_.und(e)||!_.und(t)){const r=_.obj(e)?{...e}:{...t,from:e};_.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(Te(this)||this._state.asyncTo)||xt(this)}get goal(){return re(this.animation.to)}get velocity(){const e=_e(this);return e instanceof Gt?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Zr(this)}get isAnimating(){return Te(this)}get isPaused(){return xt(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,r=!1;const n=this.animation;let{toValues:i}=n;const{config:o}=n,s=Tr(n.to);!s&&fe(n.to)&&(i=se(re(n.to))),n.values.forEach((l,f)=>{if(l.done)return;const d=l.constructor==Ft?1:s?s[f].lastPosition:i[f];let h=n.immediate,p=d;if(!h){if(p=l.lastPosition,o.tension<=0){l.done=!0;return}let g=l.elapsedTime+=e;const E=n.fromValues[f],w=l.v0!=null?l.v0:l.v0=_.arr(o.velocity)?o.velocity[f]:o.velocity;let y;const b=o.precision||(E==d?.005:Math.min(1,Math.abs(d-E)*.001));if(_.und(o.duration))if(o.decay){const m=o.decay===!0?.998:o.decay,S=Math.exp(-(1-m)*g);p=E+w/(1-m)*(1-S),h=Math.abs(l.lastPosition-p)<=b,y=w*S}else{y=l.lastVelocity==null?w:l.lastVelocity;const m=o.restVelocity||b/10,S=o.clamp?0:o.bounce,O=!_.und(S),P=E==d?l.v0>0:E<d;let k,j=!1;const z=1,K=Math.ceil(e/z);for(let W=0;W<K&&(k=Math.abs(y)>m,!(!k&&(h=Math.abs(d-p)<=b,h)));++W){O&&(j=p==d||p>d==P,j&&(y=-y*S,p=d));const J=-o.tension*1e-6*(p-d),U=-o.friction*.001*y,oe=(J+U)/o.mass;y=y+oe*z,p=p+y*z}}else{let m=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,l.durationProgress>0&&(l.elapsedTime=o.duration*l.durationProgress,g=l.elapsedTime+=e)),m=(o.progress||0)+g/this._memoizedDuration,m=m>1?1:m<0?0:m,l.durationProgress=m),p=E+o.easing(m)*(d-E),y=(p-l.lastPosition)/e,h=m==1}l.lastVelocity=y,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),h=!0)}s&&!s[f].done&&(h=!1),h?l.done=!0:t=!1,l.setValue(p,o.round)&&(r=!0)});const a=_e(this),u=a.getValue();if(t){const l=re(n.to);(u!==l||r)&&!o.decay?(a.setValue(l),this._onChange(l)):r&&o.decay&&this._onChange(u),this._stop()}else r&&this._onChange(u)}set(e){return R.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Te(this)){const{to:e,config:t}=this.animation;R.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let r;return _.und(e)?(r=this.queue||[],this.queue=[]):r=[_.obj(e)?e:{...t,to:e}],Promise.all(r.map(n=>this._update(n))).then(n=>Kn(this,n))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Bt(this._state,e&&this._lastCallId),R.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:r,from:n}=e;r=_.obj(r)?r[t]:r,(r==null||pn(r))&&(r=void 0),n=_.obj(n)?n[t]:n,n==null&&(n=void 0);const i={to:r,from:n};return Zr(this)||(e.reverse&&([r,n]=[n,r]),n=re(n),_.und(n)?_e(this)||this._set(r):this._set(n)),i}_update({...e},t){const{key:r,defaultProps:n}=this;e.default&&Object.assign(n,Gn(e,(s,a)=>/^on/.test(a)?Mo(s,r):s)),zi(this,e,"onProps"),Ot(this,"onProps",e,this);const i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const o=this._state;return Lo(++this._lastCallId,{key:r,props:e,defaultProps:n,state:o,actions:{pause:()=>{xt(this)||($i(this,!0),Pt(o.pauseQueue),Ot(this,"onPause",ge(this,kt(this,this.animation.to)),this))},resume:()=>{xt(this)&&($i(this,!1),Te(this)&&this._resume(),Pt(o.resumeQueue),Ot(this,"onResume",ge(this,kt(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(s=>{if(e.loop&&s.finished&&!(t&&s.noop)){const a=Yo(e);if(a)return this._update(a,!0)}return s})}_merge(e,t,r){if(t.cancel)return this.stop(!0),r(ct(this));const n=!_.und(e.to),i=!_.und(e.from);if(n||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return r(ct(this));const{key:o,defaultProps:s,animation:a}=this,{to:u,from:l}=a;let{to:f=u,from:d=l}=e;i&&!n&&(!t.default||_.und(f))&&(f=d),t.reverse&&([f,d]=[d,f]);const h=!ke(d,l);h&&(a.from=d),d=re(d);const p=!ke(f,u);p&&this._focus(f);const g=pn(t.to),{config:E}=a,{decay:w,velocity:y}=E;(n||i)&&(E.velocity=0),t.config&&!g&&_c(E,Be(t.config,o),t.config!==s.config?Be(s.config,o):void 0);let b=_e(this);if(!b||_.und(f))return r(ge(this,!0));const m=_.und(t.reset)?i&&!t.default:!_.und(d)&&Tt(t.reset,o),S=m?d:this.get(),O=Lt(f),P=_.num(O)||_.arr(O)||Ar(O),k=!g&&(!P||Tt(s.immediate||t.immediate,o));if(p){const W=hn(f);if(W!==b.constructor)if(k)b=this._set(O);else throw Error(`Cannot animate between ${b.constructor.name} and ${W.name}, as the "to" prop suggests`)}const j=b.constructor;let z=fe(f),K=!1;if(!z){const W=m||!Zr(this)&&h;(p||W)&&(K=ke(Lt(S),O),z=!K),(!ke(a.immediate,k)&&!k||!ke(E.decay,w)||!ke(E.velocity,y))&&(z=!0)}if(K&&Te(this)&&(a.changed&&!m?z=!0:z||this._stop(u)),!g&&((z||fe(u))&&(a.values=b.getPayload(),a.toValues=fe(f)?null:j==Ft?[1]:se(O)),a.immediate!=k&&(a.immediate=k,!k&&!m&&this._set(u)),z)){const{onRest:W}=a;D(Oc,U=>zi(this,t,U));const J=ge(this,kt(this,u));Pt(this._pendingCalls,J),this._pendingCalls.add(r),a.changed&&R.batchedUpdates(()=>{var U;a.changed=!m,W==null||W(J,this),m?Be(s.onRest,J):(U=a.onStart)==null||U.call(a,J,this)})}m&&this._set(S),g?r(Uo(t.to,t,this._state,this)):z?this._start():Te(this)&&!p?this._pendingCalls.add(r):r(Bo(S))}_focus(e){const t=this.animation;e!==t.to&&(Oi(this)&&this._detach(),t.to=e,Oi(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;fe(t)&&(yt(t,this),yn(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;fe(e)&&Mt(e,this)}_set(e,t=!0){const r=re(e);if(!_.und(r)){const n=_e(this);if(!n||!ke(r,n.getValue())){const i=hn(r);!n||n.constructor!=i?Yn(this,i.create(r)):n.setValue(r),n&&R.batchedUpdates(()=>{this._onChange(r,t)})}}return _e(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Ot(this,"onStart",ge(this,kt(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Be(this.animation.onChange,e,this)),Be(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;_e(this).reset(re(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Te(this)||(Vi(this,!0),xt(this)||this._resume())}_resume(){we.skipAnimation?this.finish():Cr.start(this)}_stop(e,t){if(Te(this)){Vi(this,!1);const r=this.animation;D(r.values,i=>{i.done=!0}),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),$t(this,{type:"idle",parent:this});const n=t?ct(this.get()):ge(this.get(),kt(this,e??r.to));Pt(this._pendingCalls,n),r.changed&&(r.changed=!1,Ot(this,"onRest",n,this))}}};function kt(e,t){const r=Lt(t),n=Lt(e.get());return ke(n,r)}function Yo(e,t=e.loop,r=e.to){const n=Be(t);if(n){const i=n!==!0&&Fo(n),o=(i||e).reverse,s=!i||i.reset;return Ut({...e,loop:t,default:!1,pause:void 0,to:!o||pn(r)?r:void 0,from:s?e.from:void 0,reset:s,...i})}}function Ut(e){const{to:t,from:r}=e=Fo(e),n=new Set;return _.obj(t)&&Mi(t,n),_.obj(r)&&Mi(r,n),e.keys=n.size?Array.from(n):null,e}function kc(e){const t=Ut(e);return _.und(t.default)&&(t.default=Gn(t)),t}function Mi(e,t){Se(e,(r,n)=>r!=null&&t.add(n))}var Oc=["onStart","onRest","onChange","onPause","onResume"];function zi(e,t,r){e.animation[r]=t[r]!==zo(t,r)?Mo(t[r],e.key):void 0}function Ot(e,t,...r){var n,i,o,s;(i=(n=e.animation)[t])==null||i.call(n,...r),(s=(o=e.defaultProps)[t])==null||s.call(o,...r)}var Pc=["onStart","onChange","onRest"],Cc=1,Nc=class{constructor(e,t){this.id=Cc++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,r)=>e[r]=t.get()),e}set(e){for(const t in e){const r=e[t];_.und(r)||this.springs[t].set(r)}}update(e){return e&&this.queue.push(Ut(e)),this}start(e){let{queue:t}=this;return e?t=se(e).map(Ut):this.queue=[],this._flush?this._flush(this,t):(Jo(this,t),gn(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const r=this.springs;D(se(t),n=>r[n].stop(!!e))}else Bt(this._state,this._lastAsyncId),this.each(r=>r.stop(!!e));return this}pause(e){if(_.und(e))this.start({pause:!0});else{const t=this.springs;D(se(e),r=>t[r].pause())}return this}resume(e){if(_.und(e))this.start({pause:!1});else{const t=this.springs;D(se(e),r=>t[r].resume())}return this}each(e){Se(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:r}=this._events,n=this._active.size>0,i=this._changed.size>0;(n&&!this._started||i&&!this._started)&&(this._started=!0,Rt(e,([a,u])=>{u.value=this.get(),a(u,this,this._item)}));const o=!n&&this._started,s=i||o&&r.size?this.get():null;i&&t.size&&Rt(t,([a,u])=>{u.value=s,a(u,this,this._item)}),o&&(this._started=!1,Rt(r,([a,u])=>{u.value=s,a(u,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;R.onFrame(this._onFrame)}};function gn(e,t){return Promise.all(t.map(r=>Go(e,r))).then(r=>Kn(e,r))}async function Go(e,t,r){const{keys:n,to:i,from:o,loop:s,onRest:a,onResolve:u}=t,l=_.obj(t.default)&&t.default;s&&(t.loop=!1),i===!1&&(t.to=null),o===!1&&(t.from=null);const f=_.arr(i)||_.fun(i)?i:void 0;f?(t.to=void 0,t.onRest=void 0,l&&(l.onRest=void 0)):D(Pc,E=>{const w=t[E];if(_.fun(w)){const y=e._events[E];t[E]=({finished:b,cancelled:m})=>{const S=y.get(w);S?(b||(S.finished=!1),m&&(S.cancelled=!0)):y.set(w,{value:null,finished:b||!1,cancelled:m||!1})},l&&(l[E]=t[E])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Pt(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const h=(n||Object.keys(e.springs)).map(E=>e.springs[E].start(t)),p=t.cancel===!0||zo(t,"cancel")===!0;(f||p&&d.asyncId)&&h.push(Lo(++e._lastAsyncId,{props:t,state:d,actions:{pause:fn,resume:fn,start(E,w){p?(Bt(d,e._lastAsyncId),w(ct(e))):(E.onRest=a,w(Uo(f,E,d,e)))}}})),d.paused&&await new Promise(E=>{d.resumeQueue.add(E)});const g=Kn(e,await Promise.all(h));if(s&&g.finished&&!(r&&g.noop)){const E=Yo(t,s,i);if(E)return Jo(e,[E]),Go(e,E,!0)}return u&&R.batchedUpdates(()=>u(g,e,e.item)),g}function Fi(e,t){const r={...e.springs};return t&&D(se(t),n=>{_.und(n.keys)&&(n=Ut(n)),_.obj(n.to)||(n={...n,to:void 0}),Xo(r,n,i=>Qo(i))}),Ko(e,r),r}function Ko(e,t){Se(t,(r,n)=>{e.springs[n]||(e.springs[n]=r,yt(r,e))})}function Qo(e,t){const r=new xc;return r.key=e,t&&yt(r,t),r}function Xo(e,t,r){t.keys&&D(t.keys,n=>{(e[n]||(e[n]=r(n)))._prepareNode(t)})}function Jo(e,t){D(t,r=>{Xo(e.springs,r,n=>Qo(n,e))})}var Ir=({children:e,...t})=>{const r=C.useContext(gr),n=t.pause||!!r.pause,i=t.immediate||!!r.immediate;t=nc(()=>({pause:n,immediate:i}),[n,i]);const{Provider:o}=gr;return Vn.createElement(o,{value:t},e)},gr=Rc(Ir,{});Ir.Provider=gr.Provider;Ir.Consumer=gr.Consumer;function Rc(e,t){return Object.assign(e,Vn.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var Ac=()=>{const e=[],t=function(n){tc();const i=[];return D(e,(o,s)=>{if(_.und(n))i.push(o.start());else{const a=r(n,o,s);a&&i.push(o.start(a))}}),i};t.current=e,t.add=function(n){e.includes(n)||e.push(n)},t.delete=function(n){const i=e.indexOf(n);~i&&e.splice(i,1)},t.pause=function(){return D(e,n=>n.pause(...arguments)),this},t.resume=function(){return D(e,n=>n.resume(...arguments)),this},t.set=function(n){D(e,(i,o)=>{const s=_.fun(n)?n(o,i):n;s&&i.set(s)})},t.start=function(n){const i=[];return D(e,(o,s)=>{if(_.und(n))i.push(o.start());else{const a=this._getProps(n,o,s);a&&i.push(o.start(a))}}),i},t.stop=function(){return D(e,n=>n.stop(...arguments)),this},t.update=function(n){return D(e,(i,o)=>i.update(this._getProps(n,i,o))),this};const r=function(n,i,o){return _.fun(n)?n(o,i):n};return t._getProps=r,t};function Tc(e,t,r){const n=_.fun(t)&&t;n&&!r&&(r=[]);const i=C.useMemo(()=>n||arguments.length==3?Ac():void 0,[]),o=C.useRef(0),s=Io(),a=C.useMemo(()=>({ctrls:[],queue:[],flush(y,b){const m=Fi(y,b);return o.current>0&&!a.queue.length&&!Object.keys(m).some(O=>!y.springs[O])?gn(y,b):new Promise(O=>{Ko(y,m),a.queue.push(()=>{O(gn(y,b))}),s()})}}),[]),u=C.useRef([...a.ctrls]),l=[],f=Ci(e)||0;C.useMemo(()=>{D(u.current.slice(e,f),y=>{gc(y,i),y.stop(!0)}),u.current.length=e,d(f,e)},[e]),C.useMemo(()=>{d(0,Math.min(f,e))},r);function d(y,b){for(let m=y;m<b;m++){const S=u.current[m]||(u.current[m]=new Nc(null,a.flush)),O=n?n(m,S):t[m];O&&(l[m]=kc(O))}}const h=u.current.map((y,b)=>Fi(y,l[b])),p=C.useContext(Ir),g=Ci(p),E=p!==g&&yc(p);Hn(()=>{o.current++,a.ctrls=u.current;const{queue:y}=a;y.length&&(a.queue=[],D(y,b=>b())),D(u.current,(b,m)=>{i==null||i.add(b),E&&b.start({default:p});const S=l[m];S&&(vc(b,S.ref),b.ref?b.queue.push(S):b.start(S))})}),jo(()=>()=>{D(a.ctrls,y=>y.stop(!0))});const w=h.map(y=>({...y}));return i?[w,i]:w}function Zo(e,t){const r=_.fun(e),[[n],i]=Tc(1,r?e:[e],r?[]:t);return r||arguments.length==2?[n,i]:n}var Dc=class extends Qn{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=jt(...t);const r=this._get(),n=hn(r);Yn(this,n.create(r))}advance(e){const t=this._get(),r=this.get();ke(t,r)||(_e(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Li(this._active)&&en(this)}_get(){const e=_.arr(this.source)?this.source.map(re):se(re(this.source));return this.calc(...e)}_start(){this.idle&&!Li(this._active)&&(this.idle=!1,D(Tr(this),e=>{e.done=!1}),we.skipAnimation?(R.batchedUpdates(()=>this.advance()),en(this)):Cr.start(this))}_attach(){let e=1;D(se(this.source),t=>{fe(t)&&yt(t,this),yn(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){D(se(this.source),e=>{fe(e)&&Mt(e,this)}),this._active.clear(),en(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=se(this.source).reduce((t,r)=>Math.max(t,(yn(r)?r.priority:0)+1),0))}};function Ic(e){return e.idle!==!1}function Li(e){return!e.size||Array.from(e).every(Ic)}function en(e){e.idle||(e.idle=!0,D(Tr(e),t=>{t.done=!0}),$t(e,{type:"idle",parent:e}))}we.assign({createStringInterpolator:To,to:(e,t)=>new Dc(e,t)});var es=/^--/;function jc(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!es.test(e)&&!(Dt.hasOwnProperty(e)&&Dt[e])?t+"px":(""+t).trim()}var Bi={};function Vc(e,t){if(!e.nodeType||!e.setAttribute)return!1;const r=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:n,style:i,children:o,scrollTop:s,scrollLeft:a,viewBox:u,...l}=t,f=Object.values(l),d=Object.keys(l).map(h=>r||e.hasAttribute(h)?h:Bi[h]||(Bi[h]=h.replace(/([A-Z])/g,p=>"-"+p.toLowerCase())));o!==void 0&&(e.textContent=o);for(const h in i)if(i.hasOwnProperty(h)){const p=jc(h,i[h]);es.test(h)?e.style.setProperty(h,p):e.style[h]=p}d.forEach((h,p)=>{e.setAttribute(h,f[p])}),n!==void 0&&(e.className=n),s!==void 0&&(e.scrollTop=s),a!==void 0&&(e.scrollLeft=a),u!==void 0&&e.setAttribute("viewBox",u)}var Dt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},$c=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),Mc=["Webkit","Ms","Moz","O"];Dt=Object.keys(Dt).reduce((e,t)=>(Mc.forEach(r=>e[$c(r,t)]=e[t]),e),Dt);var zc=/^(matrix|translate|scale|rotate|skew)/,Fc=/^(translate)/,Lc=/^(rotate|skew)/,tn=(e,t)=>_.num(e)&&e!==0?e+t:e,cr=(e,t)=>_.arr(e)?e.every(r=>cr(r,t)):_.num(e)?e===t:parseFloat(e)===t,Bc=class extends Dr{constructor({x:e,y:t,z:r,...n}){const i=[],o=[];(e||t||r)&&(i.push([e||0,t||0,r||0]),o.push(s=>[`translate3d(${s.map(a=>tn(a,"px")).join(",")})`,cr(s,0)])),Se(n,(s,a)=>{if(a==="transform")i.push([s||""]),o.push(u=>[u,u===""]);else if(zc.test(a)){if(delete n[a],_.und(s))return;const u=Fc.test(a)?"px":Lc.test(a)?"deg":"";i.push(se(s)),o.push(a==="rotate3d"?([l,f,d,h])=>[`rotate3d(${l},${f},${d},${tn(h,u)})`,cr(h,0)]:l=>[`${a}(${l.map(f=>tn(f,u)).join(",")})`,cr(l,a.startsWith("scale")?1:0)])}}),i.length&&(n.transform=new Uc(i,o)),super(n)}},Uc=class extends No{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return D(this.inputs,(r,n)=>{const i=re(r[0]),[o,s]=this.transforms[n](_.arr(i)?i:r.map(re));e+=" "+o,t=t&&s}),t?"none":e}observerAdded(e){e==1&&D(this.inputs,t=>D(t,r=>fe(r)&&yt(r,this)))}observerRemoved(e){e==0&&D(this.inputs,t=>D(t,r=>fe(r)&&Mt(r,this)))}eventObserved(e){e.type=="change"&&(this._value=null),$t(this,e)}},Wc=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];we.assign({batchedUpdates:_a.unstable_batchedUpdates,createStringInterpolator:To,colors:Da});var qc=fc(Wc,{applyAnimatedValues:Vc,createAnimatedStyle:e=>new Bc(e),getComponentProps:({scrollTop:e,scrollLeft:t,...r})=>r}),ts=qc.animated;function Xn({animate:e=!0,content:t,textStyles:r,htmlElement:n,fadeIn:i,characterPreference:o="simplified"}){const s=n??"div",[a,u]=C.useState(!1),[l,f]=C.useState(void 0),d=C.useRef(null),[h,p]=Zo(()=>({opacity:i?0:1,transform:i?"scale(0)":"scale(1)",config:{duration:200}})),g=C.useRef(e);C.useLayoutEffect(()=>{if(!d.current)return;const K=d.current,W=K.textContent,J=[t.english,t.simplified,t.traditional];let U=0;J.forEach(oe=>{K.textContent=oe,U=Math.max(U,K.offsetWidth)}),K.textContent=W,f(U)},[t.english,t.simplified,t.traditional]),C.useEffect(()=>{if(!e){g.current=e;return}const K=!g.current&&e;g.current=e;const W=K?500:Math.floor(Math.random()*11501)+3500,J=setTimeout(()=>{p.start({opacity:0,transform:"translateY(15px)",onRest:()=>{u(U=>!U),p.start({opacity:1,transform:"translateY(0px)"})}})},W);return()=>clearTimeout(J)},[a,e,p]);const E=o==="traditional"?t.traditional:t.simplified,w=e&&a?E:t.english,{fontSize:y,fontFamily:b,fontWeight:m,fontStyle:S,letterSpacing:O,lineHeight:P,...k}=r||{},z={...k,...{fontSize:y,fontFamily:b,fontWeight:m,fontStyle:S,letterSpacing:O,lineHeight:P},display:"inline-block",alignContent:"center"};return V.jsx(ts.div,{style:{...h,display:"inline-block",minWidth:l!==void 0?`${l}px`:void 0},children:V.jsx(s,{style:z,children:V.jsx("span",{ref:d,children:w})})})}var ie=function(){return ie=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},ie.apply(this,arguments)};function Ke(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function Hc(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Yc=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Gc=Hc(function(e){return Yc.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),L="-ms-",It="-moz-",M="-webkit-",rs="comm",jr="rule",Jn="decl",Kc="@import",ns="@keyframes",Qc="@layer",is=Math.abs,Zn=String.fromCharCode,vn=Object.assign;function Xc(e,t){return Q(e,0)^45?(((t<<2^Q(e,0))<<2^Q(e,1))<<2^Q(e,2))<<2^Q(e,3):0}function os(e){return e.trim()}function Oe(e,t){return(e=t.exec(e))?e[0]:e}function A(e,t,r){return e.replace(t,r)}function ur(e,t,r){return e.indexOf(t,r)}function Q(e,t){return e.charCodeAt(t)|0}function lt(e,t,r){return e.slice(t,r)}function Ee(e){return e.length}function ss(e){return e.length}function Ct(e,t){return t.push(e),e}function Jc(e,t){return e.map(t).join("")}function Ui(e,t){return e.filter(function(r){return!Oe(r,t)})}var Vr=1,ft=1,as=0,he=0,G=0,gt="";function $r(e,t,r,n,i,o,s,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Vr,column:ft,length:s,return:"",siblings:a}}function De(e,t){return vn($r("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function st(e){for(;e.root;)e=De(e.root,{children:[e]});Ct(e,e.siblings)}function Zc(){return G}function eu(){return G=he>0?Q(gt,--he):0,ft--,G===10&&(ft=1,Vr--),G}function be(){return G=he<as?Q(gt,he++):0,ft++,G===10&&(ft=1,Vr++),G}function qe(){return Q(gt,he)}function lr(){return he}function Mr(e,t){return lt(gt,e,t)}function bn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function tu(e){return Vr=ft=1,as=Ee(gt=e),he=0,[]}function ru(e){return gt="",e}function rn(e){return os(Mr(he-1,wn(e===91?e+2:e===40?e+1:e)))}function nu(e){for(;(G=qe())&&G<33;)be();return bn(e)>2||bn(G)>3?"":" "}function iu(e,t){for(;--t&&be()&&!(G<48||G>102||G>57&&G<65||G>70&&G<97););return Mr(e,lr()+(t<6&&qe()==32&&be()==32))}function wn(e){for(;be();)switch(G){case e:return he;case 34:case 39:e!==34&&e!==39&&wn(G);break;case 40:e===41&&wn(e);break;case 92:be();break}return he}function ou(e,t){for(;be()&&e+G!==57;)if(e+G===84&&qe()===47)break;return"/*"+Mr(t,he-1)+"*"+Zn(e===47?e:be())}function su(e){for(;!bn(qe());)be();return Mr(e,he)}function au(e){return ru(fr("",null,null,null,[""],e=tu(e),0,[0],e))}function fr(e,t,r,n,i,o,s,a,u){for(var l=0,f=0,d=s,h=0,p=0,g=0,E=1,w=1,y=1,b=0,m="",S=i,O=o,P=n,k=m;w;)switch(g=b,b=be()){case 40:if(g!=108&&Q(k,d-1)==58){ur(k+=A(rn(b),"&","&\f"),"&\f",is(l?a[l-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:k+=rn(b);break;case 9:case 10:case 13:case 32:k+=nu(g);break;case 92:k+=iu(lr()-1,7);continue;case 47:switch(qe()){case 42:case 47:Ct(cu(ou(be(),lr()),t,r,u),u);break;default:k+="/"}break;case 123*E:a[l++]=Ee(k)*y;case 125*E:case 59:case 0:switch(b){case 0:case 125:w=0;case 59+f:y==-1&&(k=A(k,/\f/g,"")),p>0&&Ee(k)-d&&Ct(p>32?qi(k+";",n,r,d-1,u):qi(A(k," ","")+";",n,r,d-2,u),u);break;case 59:k+=";";default:if(Ct(P=Wi(k,t,r,l,f,i,a,m,S=[],O=[],d,o),o),b===123)if(f===0)fr(k,t,P,P,S,o,d,a,O);else switch(h===99&&Q(k,3)===110?100:h){case 100:case 108:case 109:case 115:fr(e,P,P,n&&Ct(Wi(e,P,P,0,0,i,a,m,i,S=[],d,O),O),i,O,d,a,n?S:O);break;default:fr(k,P,P,P,[""],O,0,a,O)}}l=f=p=0,E=y=1,m=k="",d=s;break;case 58:d=1+Ee(k),p=g;default:if(E<1){if(b==123)--E;else if(b==125&&E++==0&&eu()==125)continue}switch(k+=Zn(b),b*E){case 38:y=f>0?1:(k+="\f",-1);break;case 44:a[l++]=(Ee(k)-1)*y,y=1;break;case 64:qe()===45&&(k+=rn(be())),h=qe(),f=d=Ee(m=k+=su(lr())),b++;break;case 45:g===45&&Ee(k)==2&&(E=0)}}return o}function Wi(e,t,r,n,i,o,s,a,u,l,f,d){for(var h=i-1,p=i===0?o:[""],g=ss(p),E=0,w=0,y=0;E<n;++E)for(var b=0,m=lt(e,h+1,h=is(w=s[E])),S=e;b<g;++b)(S=os(w>0?p[b]+" "+m:A(m,/&\f/g,p[b])))&&(u[y++]=S);return $r(e,t,r,i===0?jr:a,u,l,f,d)}function cu(e,t,r,n){return $r(e,t,r,rs,Zn(Zc()),lt(e,2,-2),0,n)}function qi(e,t,r,n,i){return $r(e,t,r,Jn,lt(e,0,n),lt(e,n+1,-1),n,i)}function cs(e,t,r){switch(Xc(e,t)){case 5103:return M+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return M+e+e;case 4789:return It+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return M+e+It+e+L+e+e;case 5936:switch(Q(e,t+11)){case 114:return M+e+L+A(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return M+e+L+A(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return M+e+L+A(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return M+e+L+e+e;case 6165:return M+e+L+"flex-"+e+e;case 5187:return M+e+A(e,/(\w+).+(:[^]+)/,M+"box-$1$2"+L+"flex-$1$2")+e;case 5443:return M+e+L+"flex-item-"+A(e,/flex-|-self/g,"")+(Oe(e,/flex-|baseline/)?"":L+"grid-row-"+A(e,/flex-|-self/g,""))+e;case 4675:return M+e+L+"flex-line-pack"+A(e,/align-content|flex-|-self/g,"")+e;case 5548:return M+e+L+A(e,"shrink","negative")+e;case 5292:return M+e+L+A(e,"basis","preferred-size")+e;case 6060:return M+"box-"+A(e,"-grow","")+M+e+L+A(e,"grow","positive")+e;case 4554:return M+A(e,/([^-])(transform)/g,"$1"+M+"$2")+e;case 6187:return A(A(A(e,/(zoom-|grab)/,M+"$1"),/(image-set)/,M+"$1"),e,"")+e;case 5495:case 3959:return A(e,/(image-set\([^]*)/,M+"$1$`$1");case 4968:return A(A(e,/(.+:)(flex-)?(.*)/,M+"box-pack:$3"+L+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+M+e+e;case 4200:if(!Oe(e,/flex-|baseline/))return L+"grid-column-align"+lt(e,t)+e;break;case 2592:case 3360:return L+A(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,i){return t=i,Oe(n.props,/grid-\w+-end/)})?~ur(e+(r=r[t].value),"span",0)?e:L+A(e,"-start","")+e+L+"grid-row-span:"+(~ur(r,"span",0)?Oe(r,/\d+/):+Oe(r,/\d+/)-+Oe(e,/\d+/))+";":L+A(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return Oe(n.props,/grid-\w+-start/)})?e:L+A(A(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return A(e,/(.+)-inline(.+)/,M+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ee(e)-1-t>6)switch(Q(e,t+1)){case 109:if(Q(e,t+4)!==45)break;case 102:return A(e,/(.+:)(.+)-([^]+)/,"$1"+M+"$2-$3$1"+It+(Q(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ur(e,"stretch",0)?cs(A(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return A(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,i,o,s,a,u,l){return L+i+":"+o+l+(s?L+i+"-span:"+(a?u:+u-+o)+l:"")+e});case 4949:if(Q(e,t+6)===121)return A(e,":",":"+M)+e;break;case 6444:switch(Q(e,Q(e,14)===45?18:11)){case 120:return A(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+M+(Q(e,14)===45?"inline-":"")+"box$3$1"+M+"$2$3$1"+L+"$2box$3")+e;case 100:return A(e,":",":"+L)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return A(e,"scroll-","scroll-snap-")+e}return e}function vr(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function uu(e,t,r,n){switch(e.type){case Qc:if(e.children.length)break;case Kc:case Jn:return e.return=e.return||e.value;case rs:return"";case ns:return e.return=e.value+"{"+vr(e.children,n)+"}";case jr:if(!Ee(e.value=e.props.join(",")))return""}return Ee(r=vr(e.children,n))?e.return=e.value+"{"+r+"}":""}function lu(e){var t=ss(e);return function(r,n,i,o){for(var s="",a=0;a<t;a++)s+=e[a](r,n,i,o)||"";return s}}function fu(e){return function(t){t.root||(t=t.return)&&e(t)}}function du(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Jn:e.return=cs(e.value,e.length,r);return;case ns:return vr([De(e,{value:A(e.value,"@","@"+M)})],n);case jr:if(e.length)return Jc(r=e.props,function(i){switch(Oe(i,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":st(De(e,{props:[A(i,/:(read-\w+)/,":"+It+"$1")]})),st(De(e,{props:[i]})),vn(e,{props:Ui(r,n)});break;case"::placeholder":st(De(e,{props:[A(i,/:(plac\w+)/,":"+M+"input-$1")]})),st(De(e,{props:[A(i,/:(plac\w+)/,":"+It+"$1")]})),st(De(e,{props:[A(i,/:(plac\w+)/,L+"input-$1")]})),st(De(e,{props:[i]})),vn(e,{props:Ui(r,n)});break}return""})}}var hu={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Qe=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",us="active",ls="data-styled-version",zr="6.1.16",ei=`/*!sc*/
|
|
31
31
|
`,br=typeof window<"u"&&"HTMLElement"in window,pu=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),Hi=/invalid hook call/i,tr=new Set,mu=function(e,t){if(process.env.NODE_ENV!=="production"){var r=t?' with the id of "'.concat(t,'"'):"",n="The component ".concat(e).concat(r,` has been created dynamically.
|
|
32
32
|
`)+`You may see this warning because you've called styled inside another component.
|
|
33
33
|
To resolve this only create new StyledComponents outside of any render method and function component.`,i=console.error;try{var o=!0;console.error=function(s){for(var a=[],u=1;u<arguments.length;u++)a[u-1]=arguments[u];Hi.test(s)?(o=!1,tr.delete(n)):i.apply(void 0,Ke([s],a,!1))},C.useRef(),o&&!tr.has(n)&&(console.warn(n),tr.add(n))}catch(s){Hi.test(s.message)&&tr.delete(n)}finally{console.error=i}}},Fr=Object.freeze([]),dt=Object.freeze({});function yu(e,t,r){return r===void 0&&(r=dt),e.theme!==r.theme&&e.theme||t||r.theme}var _n=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),gu=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,vu=/(^-|-$)/g;function Yi(e){return e.replace(gu,"-").replace(vu,"")}var bu=/(a)(d)/gi,rr=52,Gi=function(e){return String.fromCharCode(e+(e>25?39:97))};function En(e){var t,r="";for(t=Math.abs(e);t>rr;t=t/rr|0)r=Gi(t%rr)+r;return(Gi(t%rr)+r).replace(bu,"$1-$2")}var nn,fs=5381,Ue=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},ds=function(e){return Ue(fs,e)};function hs(e){return En(ds(e)>>>0)}function ps(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function on(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var ms=typeof Symbol=="function"&&Symbol.for,ys=ms?Symbol.for("react.memo"):60115,wu=ms?Symbol.for("react.forward_ref"):60112,_u={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Eu={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},gs={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Su=((nn={})[wu]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},nn[ys]=gs,nn);function Ki(e){return("type"in(t=e)&&t.type.$$typeof)===ys?gs:"$$typeof"in e?Su[e.$$typeof]:_u;var t}var xu=Object.defineProperty,ku=Object.getOwnPropertyNames,Qi=Object.getOwnPropertySymbols,Ou=Object.getOwnPropertyDescriptor,Pu=Object.getPrototypeOf,Xi=Object.prototype;function vs(e,t,r){if(typeof t!="string"){if(Xi){var n=Pu(t);n&&n!==Xi&&vs(e,n,r)}var i=ku(t);Qi&&(i=i.concat(Qi(t)));for(var o=Ki(e),s=Ki(t),a=0;a<i.length;++a){var u=i[a];if(!(u in Eu||r&&r[u]||s&&u in s||o&&u in o)){var l=Ou(t,u);try{xu(e,u,l)}catch{}}}}return e}function ht(e){return typeof e=="function"}function ti(e){return typeof e=="object"&&"styledComponentId"in e}function We(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Sn(e,t){if(e.length===0)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function pt(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function xn(e,t,r){if(r===void 0&&(r=!1),!r&&!pt(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=xn(e[n],t[n]);else if(pt(t))for(var n in t)e[n]=xn(e[n],t[n]);return e}function ri(e,t){Object.defineProperty(e,"toString",{value:t})}var Cu=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
package/dist/index.es.js
CHANGED
|
@@ -2863,10 +2863,19 @@ function cs({
|
|
|
2863
2863
|
lineHeight: P
|
|
2864
2864
|
},
|
|
2865
2865
|
display: "inline-block",
|
|
2866
|
-
alignContent: "center"
|
|
2867
|
-
minWidth: l !== void 0 ? `${l}px` : void 0
|
|
2866
|
+
alignContent: "center"
|
|
2868
2867
|
};
|
|
2869
|
-
return /* @__PURE__ */ j.jsx(
|
|
2868
|
+
return /* @__PURE__ */ j.jsx(
|
|
2869
|
+
as.div,
|
|
2870
|
+
{
|
|
2871
|
+
style: {
|
|
2872
|
+
...h,
|
|
2873
|
+
display: "inline-block",
|
|
2874
|
+
minWidth: l !== void 0 ? `${l}px` : void 0
|
|
2875
|
+
},
|
|
2876
|
+
children: /* @__PURE__ */ j.jsx(s, { style: M, children: /* @__PURE__ */ j.jsx("span", { ref: d, children: w }) })
|
|
2877
|
+
}
|
|
2878
|
+
);
|
|
2870
2879
|
}
|
|
2871
2880
|
var ne = function() {
|
|
2872
2881
|
return ne = Object.assign || function(t) {
|