ymy-components 0.0.21 → 0.0.23
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/collections/ListItem.d.ts +15 -0
- package/dist/collections/ListItem.styles.d.ts +8 -0
- package/dist/index.cjs.js +68 -23
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +1090 -1019
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("react"),ga=require("react-dom");function va(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const jn=va(N);var Zt={exports:{}},
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("react"),ga=require("react-dom");function va(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const jn=va(N);var Zt={exports:{}},Et={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var gi;function ba(){if(gi)return
|
|
9
|
+
*/var gi;function ba(){if(gi)return Et;gi=1;var e=N,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(a,u,l){var f,d={},h=null,p=null;l!==void 0&&(h=""+l),u.key!==void 0&&(h=""+u.key),u.ref!==void 0&&(p=u.ref);for(f in u)n.call(u,f)&&!o.hasOwnProperty(f)&&(d[f]=u[f]);if(a&&a.defaultProps)for(f in u=a.defaultProps,u)d[f]===void 0&&(d[f]=u[f]);return{$$typeof:t,type:a,key:h,ref:p,props:d,_owner:i.current}}return Et.Fragment=r,Et.jsx=s,Et.jsxs=s,Et}var St={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,23 +14,23 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var vi;function wa(){return vi||(vi=1,process.env.NODE_ENV!=="production"&&function(){var e=N,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),y=Symbol.iterator,E="@@iterator";function w(c){if(c===null||typeof c!="object")return null;var g=y&&c[y]||c[E];return typeof g=="function"?g:null}var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(c){{for(var g=arguments.length,
|
|
18
|
-
`+Re+c}}var
|
|
19
|
-
`),X=
|
|
20
|
-
`),
|
|
21
|
-
`+T[
|
|
17
|
+
*/var vi;function wa(){return vi||(vi=1,process.env.NODE_ENV!=="production"&&function(){var e=N,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),y=Symbol.iterator,E="@@iterator";function w(c){if(c===null||typeof c!="object")return null;var g=y&&c[y]||c[E];return typeof g=="function"?g:null}var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(c){{for(var g=arguments.length,x=new Array(g>1?g-1:0),C=1;C<g;C++)x[C-1]=arguments[C];m("error",c,x)}}function m(c,g,x){{var C=v.ReactDebugCurrentFrame,V=C.getStackAddendum();V!==""&&(g+="%s",x=x.concat([V]));var $=x.map(function(I){return String(I)});$.unshift("Warning: "+g),Function.prototype.apply.call(console[c],console,$)}}var S=!1,k=!1,P=!1,O=!1,j=!1,z;z=Symbol.for("react.module.reference");function fe(c){return!!(typeof c=="string"||typeof c=="function"||c===n||c===o||j||c===i||c===l||c===f||O||c===p||S||k||P||typeof c=="object"&&c!==null&&(c.$$typeof===h||c.$$typeof===d||c.$$typeof===s||c.$$typeof===a||c.$$typeof===u||c.$$typeof===z||c.getModuleId!==void 0))}function G(c,g,x){var C=c.displayName;if(C)return C;var V=g.displayName||g.name||"";return V!==""?x+"("+V+")":x}function de(c){return c.displayName||"Context"}function H(c){if(c==null)return null;if(typeof c.tag=="number"&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case n:return"Fragment";case r:return"Portal";case o:return"Profiler";case i:return"StrictMode";case l:return"Suspense";case f:return"SuspenseList"}if(typeof c=="object")switch(c.$$typeof){case a:var g=c;return de(g)+".Consumer";case s:var x=c;return de(x._context)+".Provider";case u:return G(c,c.render,"ForwardRef");case d:var C=c.displayName||null;return C!==null?C:H(c.type)||"Memo";case h:{var V=c,$=V._payload,I=V._init;try{return H(I($))}catch{return null}}}return null}var he=Object.assign,$e=0,Qt,Ze,bt,se,Ne,Ce,Q;function et(){}et.__reactDisabledLog=!0;function wt(){{if($e===0){Qt=console.log,Ze=console.info,bt=console.warn,se=console.error,Ne=console.group,Ce=console.groupCollapsed,Q=console.groupEnd;var c={configurable:!0,enumerable:!0,value:et,writable:!0};Object.defineProperties(console,{info:c,log:c,warn:c,error:c,group:c,groupCollapsed:c,groupEnd:c})}$e++}}function tt(){{if($e--,$e===0){var c={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:he({},c,{value:Qt}),info:he({},c,{value:Ze}),warn:he({},c,{value:bt}),error:he({},c,{value:se}),group:he({},c,{value:Ne}),groupCollapsed:he({},c,{value:Ce}),groupEnd:he({},c,{value:Q})})}$e<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var xe=v.ReactCurrentDispatcher,Re;function pe(c,g,x){{if(Re===void 0)try{throw Error()}catch(V){var C=V.stack.trim().match(/\n( *(at )?)/);Re=C&&C[1]||""}return`
|
|
18
|
+
`+Re+c}}var me=!1,Ae;{var rt=typeof WeakMap=="function"?WeakMap:Map;Ae=new rt}function ye(c,g){if(!c||me)return"";{var x=Ae.get(c);if(x!==void 0)return x}var C;me=!0;var V=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var $;$=xe.current,xe.current=null,wt();try{if(g){var I=function(){throw Error()};if(Object.defineProperty(I.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(I,[])}catch(J){C=J}Reflect.construct(c,[],I)}else{try{I.call()}catch(J){C=J}c.call(I.prototype)}}else{try{throw Error()}catch(J){C=J}c()}}catch(J){if(J&&C&&typeof J.stack=="string"){for(var T=J.stack.split(`
|
|
19
|
+
`),X=C.stack.split(`
|
|
20
|
+
`),U=T.length-1,q=X.length-1;U>=1&&q>=0&&T[U]!==X[q];)q--;for(;U>=1&&q>=0;U--,q--)if(T[U]!==X[q]){if(U!==1||q!==1)do if(U--,q--,q<0||T[U]!==X[q]){var ae=`
|
|
21
|
+
`+T[U].replace(" at new "," at ");return c.displayName&&ae.includes("<anonymous>")&&(ae=ae.replace("<anonymous>",c.displayName)),typeof c=="function"&&Ae.set(c,ae),ae}while(U>=1&&q>=0);break}}}finally{me=!1,xe.current=$,tt(),Error.prepareStackTrace=V}var it=c?c.displayName||c.name:"",ze=it?pe(it):"";return typeof c=="function"&&Ae.set(c,ze),ze}function Ys(c,g,x){return ye(c,!1)}function Gs(c){var g=c.prototype;return!!(g&&g.isReactComponent)}function Xt(c,g,x){if(c==null)return"";if(typeof c=="function")return ye(c,Gs(c));if(typeof c=="string")return pe(c);switch(c){case l:return pe("Suspense");case f:return pe("SuspenseList")}if(typeof c=="object")switch(c.$$typeof){case u:return Ys(c.render);case d:return Xt(c.type,g,x);case h:{var C=c,V=C._payload,$=C._init;try{return Xt($(V),g,x)}catch{}}}return""}var _t=Object.prototype.hasOwnProperty,ni={},ii=v.ReactDebugCurrentFrame;function Jt(c){if(c){var g=c._owner,x=Xt(c.type,c._source,g?g.type:null);ii.setExtraStackFrame(x)}else ii.setExtraStackFrame(null)}function Ks(c,g,x,C,V){{var $=Function.call.bind(_t);for(var I in c)if($(c,I)){var T=void 0;try{if(typeof c[I]!="function"){var X=Error((C||"React class")+": "+x+" type `"+I+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof c[I]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw X.name="Invariant Violation",X}T=c[I](g,I,C,x,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(U){T=U}T&&!(T instanceof Error)&&(Jt(V),b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",C||"React class",x,I,typeof T),Jt(null)),T instanceof Error&&!(T.message in ni)&&(ni[T.message]=!0,Jt(V),b("Failed %s type: %s",x,T.message),Jt(null))}}}var Qs=Array.isArray;function Wr(c){return Qs(c)}function Xs(c){{var g=typeof Symbol=="function"&&Symbol.toStringTag,x=g&&c[Symbol.toStringTag]||c.constructor.name||"Object";return x}}function Js(c){try{return oi(c),!1}catch{return!0}}function oi(c){return""+c}function si(c){if(Js(c))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Xs(c)),oi(c)}var ai=v.ReactCurrentOwner,Zs={key:!0,ref:!0,__self:!0,__source:!0},ci,ui;function ea(c){if(_t.call(c,"ref")){var g=Object.getOwnPropertyDescriptor(c,"ref").get;if(g&&g.isReactWarning)return!1}return c.ref!==void 0}function ta(c){if(_t.call(c,"key")){var g=Object.getOwnPropertyDescriptor(c,"key").get;if(g&&g.isReactWarning)return!1}return c.key!==void 0}function ra(c,g){typeof c.ref=="string"&&ai.current}function na(c,g){{var x=function(){ci||(ci=!0,b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",g))};x.isReactWarning=!0,Object.defineProperty(c,"key",{get:x,configurable:!0})}}function ia(c,g){{var x=function(){ui||(ui=!0,b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",g))};x.isReactWarning=!0,Object.defineProperty(c,"ref",{get:x,configurable:!0})}}var oa=function(c,g,x,C,V,$,I){var T={$$typeof:t,type:c,key:g,ref:x,props:I,_owner:$};return T._store={},Object.defineProperty(T._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(T,"_self",{configurable:!1,enumerable:!1,writable:!1,value:C}),Object.defineProperty(T,"_source",{configurable:!1,enumerable:!1,writable:!1,value:V}),Object.freeze&&(Object.freeze(T.props),Object.freeze(T)),T};function sa(c,g,x,C,V){{var $,I={},T=null,X=null;x!==void 0&&(si(x),T=""+x),ta(g)&&(si(g.key),T=""+g.key),ea(g)&&(X=g.ref,ra(g,V));for($ in g)_t.call(g,$)&&!Zs.hasOwnProperty($)&&(I[$]=g[$]);if(c&&c.defaultProps){var U=c.defaultProps;for($ in U)I[$]===void 0&&(I[$]=U[$])}if(T||X){var q=typeof c=="function"?c.displayName||c.name||"Unknown":c;T&&na(I,q),X&&ia(I,q)}return oa(c,T,X,V,C,ai.current,I)}}var Hr=v.ReactCurrentOwner,li=v.ReactDebugCurrentFrame;function nt(c){if(c){var g=c._owner,x=Xt(c.type,c._source,g?g.type:null);li.setExtraStackFrame(x)}else li.setExtraStackFrame(null)}var Yr;Yr=!1;function Gr(c){return typeof c=="object"&&c!==null&&c.$$typeof===t}function fi(){{if(Hr.current){var c=H(Hr.current.type);if(c)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+c+"`."}return""}}function aa(c){return""}var di={};function ca(c){{var g=fi();if(!g){var
|
|
23
|
+
Check the render method of \``+c+"`."}return""}}function aa(c){return""}var di={};function ca(c){{var g=fi();if(!g){var x=typeof c=="string"?c:c.displayName||c.name;x&&(g=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+
|
|
25
|
+
Check the top-level render call using <`+x+">.")}return g}}function hi(c,g){{if(!c._store||c._store.validated||c.key!=null)return;c._store.validated=!0;var x=ca(g);if(di[x])return;di[x]=!0;var C="";c&&c._owner&&c._owner!==Hr.current&&(C=" It was passed a child from "+H(c._owner.type)+"."),nt(c),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',x,C),nt(null)}}function pi(c,g){{if(typeof c!="object")return;if(Wr(c))for(var x=0;x<c.length;x++){var C=c[x];Gr(C)&&hi(C,g)}else if(Gr(c))c._store&&(c._store.validated=!0);else if(c){var V=w(c);if(typeof V=="function"&&V!==c.entries)for(var $=V.call(c),I;!(I=$.next()).done;)Gr(I.value)&&hi(I.value,g)}}}function ua(c){{var g=c.type;if(g==null||typeof g=="string")return;var x;if(typeof g=="function")x=g.propTypes;else if(typeof g=="object"&&(g.$$typeof===u||g.$$typeof===d))x=g.propTypes;else return;if(x){var C=H(g);Ks(x,c.props,"prop",C,c)}else if(g.PropTypes!==void 0&&!Yr){Yr=!0;var V=H(g);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",V||"Unknown")}typeof g.getDefaultProps=="function"&&!g.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function la(c){{for(var g=Object.keys(c.props),x=0;x<g.length;x++){var C=g[x];if(C!=="children"&&C!=="key"){nt(c),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",C),nt(null);break}}c.ref!==null&&(nt(c),b("Invalid attribute `ref` supplied to `React.Fragment`."),nt(null))}}var mi={};function yi(c,g,x,C,V,$){{var I=fe(c);if(!I){var T="";(c===void 0||typeof c=="object"&&c!==null&&Object.keys(c).length===0)&&(T+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var X=aa();X?T+=X:T+=fi();var U;c===null?U="null":Wr(c)?U="array":c!==void 0&&c.$$typeof===t?(U="<"+(H(c.type)||"Unknown")+" />",T=" Did you accidentally export a JSX literal instead of a component?"):U=typeof c,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",U,T)}var q=sa(c,g,x,V,$);if(q==null)return q;if(I){var ae=g.children;if(ae!==void 0)if(C)if(Wr(ae)){for(var it=0;it<ae.length;it++)pi(ae[it],c);Object.freeze&&Object.freeze(ae)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else pi(ae,c)}if(_t.call(g,"key")){var ze=H(c),J=Object.keys(g).filter(function(ya){return ya!=="key"}),Kr=J.length>0?"{key: someKey, "+J.join(": ..., ")+": ...}":"{key: someKey}";if(!mi[ze+Kr]){var ma=J.length>0?"{"+J.join(": ..., ")+": ...}":"{}";b(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
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,Me,ma,Me),mi[Me+Kr]=!0}}return c===n?la(U):ua(U),U}}function fa(c,g,O){return yi(c,g,O,!0)}function da(c,g,O){return yi(c,g,O,!1)}var ha=da,pa=fa;Et.Fragment=n,Et.jsx=ha,Et.jsxs=pa}()),Et}var bi;function _a(){return bi||(bi=1,process.env.NODE_ENV==="production"?Zt.exports=ba():Zt.exports=wa()),Zt.exports}var K=_a(),Vn=Ht(),C=e=>Wt(e,Vn),$n=Ht();C.write=e=>Wt(e,$n);var Pr=Ht();C.onStart=e=>Wt(e,Pr);var Mn=Ht();C.onFrame=e=>Wt(e,Mn);var Fn=Ht();C.onFinish=e=>Wt(e,Fn);var ot=[];C.setTimeout=(e,t)=>{const r=C.now()+t,n=()=>{const o=ot.findIndex(s=>s.cancel==n);~o&&ot.splice(o,1),je-=~o?1:0},i={time:r,handler:e,cancel:n};return ot.splice(go(r),0,i),je+=1,vo(),i};var go=e=>~(~ot.findIndex(t=>t.time>e)||~ot.length);C.cancel=e=>{Pr.delete(e),Mn.delete(e),Fn.delete(e),Vn.delete(e),$n.delete(e)};C.sync=e=>{ln=!0,C.batchedUpdates(e),ln=!1};C.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function n(...i){t=i,C.onStart(r)}return n.handler=e,n.cancel=()=>{Pr.delete(r),t=null},n};var zn=typeof window<"u"?window.requestAnimationFrame:()=>{};C.use=e=>zn=e;C.now=typeof performance<"u"?()=>performance.now():Date.now;C.batchedUpdates=e=>e();C.catch=console.error;C.frameLoop="always";C.advance=()=>{C.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):wo()};var Ie=-1,je=0,ln=!1;function Wt(e,t){ln?(t.delete(e),e(0)):(t.add(e),vo())}function vo(){Ie<0&&(Ie=0,C.frameLoop!=="demand"&&zn(bo))}function Ea(){Ie=-1}function bo(){~Ie&&(zn(bo),C.batchedUpdates(wo))}function wo(){const e=Ie;Ie=C.now();const t=go(Ie);if(t&&(_o(ot.splice(0,t),r=>r.handler()),je-=t),!je){Ea();return}Pr.flush(),Vn.flush(e?Math.min(64,Ie-e):16.667),Mn.flush(),$n.flush(),Fn.flush()}function Ht(){let e=new Set,t=e;return{add(r){je+=t==e&&!e.has(r)?1:0,e.add(r)},delete(r){return je-=t==e&&e.has(r)?1:0,e.delete(r)},flush(r){t.size&&(e=new Set,je-=t.size,_o(t,n=>n(r)&&e.add(n)),je+=e.size,t=e)}}}function _o(e,t){e.forEach(r=>{try{t(r)}catch(n){C.catch(n)}})}var Sa=Object.defineProperty,Oa=(e,t)=>{for(var r in t)Sa(e,r,{get:t[r],enumerable:!0})},be={};Oa(be,{assign:()=>xa,colors:()=>Ve,createStringInterpolator:()=>Ln,skipAnimation:()=>So,to:()=>Eo,willAdvance:()=>Un});function fn(){}var ka=(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 Oe(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 Ee(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 re=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 xt=(e,...t)=>Rt(e,r=>r(...t)),Bn=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Ln,Eo,Ve=null,So=!1,Un=fn,xa=e=>{e.to&&(Eo=e.to),e.now&&(C.now=e.now),e.colors!==void 0&&(Ve=e.colors),e.skipAnimation!=null&&(So=e.skipAnimation),e.createStringInterpolator&&(Ln=e.createStringInterpolator),e.requestAnimationFrame&&C.use(e.requestAnimationFrame),e.batchedUpdates&&(C.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Un=e.willAdvance),e.frameLoop&&(C.frameLoop=e.frameLoop)},Ct=new Set,ce=[],Qr=[],pr=0,Nr={get idle(){return!Ct.size&&!ce.length},start(e){pr>e.priority?(Ct.add(e),C.onStart(Pa)):(Oo(e),C(dn))},advance:dn,sort(e){if(pr)C.onFrame(()=>Nr.sort(e));else{const t=ce.indexOf(e);~t&&(ce.splice(t,1),ko(e))}},clear(){ce=[],Ct.clear()}};function Pa(){Ct.forEach(Oo),Ct.clear(),C(dn)}function Oo(e){ce.includes(e)||ko(e)}function ko(e){ce.splice(Na(ce,t=>t.priority>e.priority),0,e)}function dn(e){const t=Qr;for(let r=0;r<ce.length;r++){const n=ce[r];pr=n.priority,n.idle||(Un(n),n.advance(e),n.idle||t.push(n))}return pr=0,Qr=ce,Qr.length=0,ce=t,ce.length>0}function Na(e,t){const r=e.findIndex(t);return r<0?e.length:r}var Ra={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},ge="[-+]?\\d*\\.?\\d+",mr=ge+"%";function Rr(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Ca=new RegExp("rgb"+Rr(ge,ge,ge)),Aa=new RegExp("rgba"+Rr(ge,ge,ge,ge)),Ta=new RegExp("hsl"+Rr(ge,mr,mr)),Da=new RegExp("hsla"+Rr(ge,mr,mr,ge)),Ia=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ja=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Va=/^#([0-9a-fA-F]{6})$/,$a=/^#([0-9a-fA-F]{8})$/;function Ma(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Va.exec(e))?parseInt(t[1]+"ff",16)>>>0:Ve&&Ve[e]!==void 0?Ve[e]:(t=Ca.exec(e))?(nt(t[1])<<24|nt(t[2])<<16|nt(t[3])<<8|255)>>>0:(t=Aa.exec(e))?(nt(t[1])<<24|nt(t[2])<<16|nt(t[3])<<8|Ei(t[4]))>>>0:(t=Ia.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=$a.exec(e))?parseInt(t[1],16)>>>0:(t=ja.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Ta.exec(e))?(wi(_i(t[1]),er(t[2]),er(t[3]))|255)>>>0:(t=Da.exec(e))?(wi(_i(t[1]),er(t[2]),er(t[3]))|Ei(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 wi(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 nt(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function _i(e){return(parseFloat(e)%360+360)%360/360}function Ei(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 Si(e){let t=Ma(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 It=(e,t,r)=>{if(_.fun(e))return e;if(_.arr(e))return It({range:e,output:t,extrapolate:r});if(_.str(e.output[0]))return Ln(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=za(l,o);return Fa(l,o[f],o[f+1],i[f],i[f+1],u,s,a,n.map)}};function Fa(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 za(e,t){for(var r=1;r<t.length-1&&!(t[r]>=e);++r);return r-1}var Ba={linear:e=>e},jt=Symbol.for("FluidValue.get"),at=Symbol.for("FluidValue.observers"),ae=e=>!!(e&&e[jt]),Z=e=>e&&e[jt]?e[jt]():e,Oi=e=>e[at]||null;function La(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Vt(e,t){const r=e[at];r&&r.forEach(n=>{La(n,t)})}var xo=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Ua(this,e)}},Ua=(e,t)=>Po(e,jt,t);function pt(e,t){if(e[jt]){let r=e[at];r||Po(e,at,r=new Set),r.has(t)||(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function $t(e,t){const r=e[at];if(r&&r.has(t)){const n=r.size-1;n?r.delete(t):e[at]=null,e.observerRemoved&&e.observerRemoved(n,t)}}var Po=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),ar=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,qa=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ki=new RegExp(`(${ar.source})(%|[a-z]+)`,"i"),Wa=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Cr=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,No=e=>{const[t,r]=Ha(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&&Cr.test(r))return No(r);if(r)return r}return e},Ha=e=>{const t=Cr.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]},Jr,Ya=(e,t,r,n,i)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(n)}, ${i})`,Ro=e=>{Jr||(Jr=Ve?new RegExp(`(${Object.keys(Ve).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(o=>Z(o).replace(Cr,No).replace(qa,Si).replace(Jr,Si)),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=>It({...e,output:o}));return o=>{var u;const s=!ki.test(t[0])&&((u=t.find(l=>ki.test(l)))==null?void 0:u.replace(ar,""));let a=0;return t[0].replace(ar,()=>`${i[a++](o)}${s||""}`).replace(Wa,Ya)}},qn="react-spring: ",Co=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)}},Ga=Co(console.warn);function Ka(){Ga(`${qn}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var Qa=Co(console.warn);function Xa(){Qa(`${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()&&Cr.test(e)||e in(Ve||{}))}var Wn=Bn()?N.useEffect:N.useLayoutEffect,Ja=()=>{const e=N.useRef(!1);return Wn(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Ao(){const e=N.useState()[1],t=Ja();return()=>{t.current&&e(Math.random())}}function Za(e,t){const[r]=N.useState(()=>({inputs:t,result:e()})),n=N.useRef(),i=n.current;let o=i;return o?t&&o.inputs&&ec(t,o.inputs)||(o={inputs:t,result:e()}):o=r,N.useEffect(()=>{n.current=o,i==r&&(r.inputs=r.result=void 0)},[o]),o.result}function ec(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 To=e=>N.useEffect(e,tc),tc=[];function xi(e){const t=N.useRef();return N.useEffect(()=>{t.current=e}),t.current}var Mt=Symbol.for("Animated:node"),rc=e=>!!e&&e[Mt]===e,we=e=>e&&e[Mt],Hn=(e,t)=>ka(e,Mt,t),Tr=e=>e&&e[Mt]&&e[Mt].getPayload(),Do=class{constructor(){Hn(this,this)}getPayload(){return this.payload||[]}},Yt=class extends Do{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,_.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Yt(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 Yt{constructor(e){super(0),this._string=null,this._toString=It({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=It({output:[this.getValue(),e]})),this._value=0,super.reset()}},yr={dependencies:null},Dr=class extends Do{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Ee(this.source,(r,n)=>{rc(r)?t[n]=r.getValue(e):ae(r)?t[n]=Z(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 Ee(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){yr.dependencies&&ae(e)&&yr.dependencies.add(e);const t=Tr(e);t&&D(t,r=>this.add(r))}},Io=class extends Dr{constructor(e){super(e)}static create(e){return new Io(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(nc)),!0)}};function nc(e){return(Ar(e)?Ft:Yt).create(e)}function hn(e){const t=we(e);return t?t.constructor:_.arr(e)?Io:Ar(e)?Ft:Yt}var Pi=(e,t)=>{const r=!_.fun(e)||e.prototype&&e.prototype.isReactComponent;return N.forwardRef((n,i)=>{const o=N.useRef(null),s=r&&N.useCallback(y=>{o.current=sc(i,y)},[i]),[a,u]=oc(n,t),l=Ao(),f=()=>{const y=o.current;if(r&&!y)return;(y?t.applyAnimatedValues(y,a.getValue(!0)):!1)===!1&&l()},d=new ic(f,u),h=N.useRef();Wn(()=>(h.current=d,D(u,y=>pt(y,d)),()=>{h.current&&(D(h.current.deps,y=>$t(y,h.current)),C.cancel(h.current.update))})),N.useEffect(f,[]),To(()=>()=>{const y=h.current;D(y.deps,E=>$t(E,y))});const p=t.getComponentProps(a.getValue());return jn.createElement(e,{...p,ref:s})})},ic=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&C.write(this.update)}};function oc(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 sc(e,t){return e&&(_.fun(e)?e(t):e.current=t),t}var Ni=Symbol.for("AnimatedComponent"),ac=(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=Ri(s)||"Anonymous";return _.str(s)?s=o[s]||(o[s]=Pi(s,i)):s=s[Ni]||(s[Ni]=Pi(s,i)),s.displayName=`Animated(${a})`,s};return Ee(e,(s,a)=>{_.arr(e)&&(a=Ri(s)),o[a]=o(s)}),{animated:o}},Ri=e=>_.str(e)?e:e&&_.str(e.displayName)?e.displayName:_.fun(e)&&e.name||null;function ze(e,...t){return _.fun(e)?e(...t):e}var At=(e,t)=>e===!0||!!(t&&e&&(_.fun(e)?e(t):re(e).includes(t))),jo=(e,t)=>_.obj(e)?t&&e[t]:e,Vo=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,cc=e=>e,Yn=(e,t=cc)=>{let r=uc;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},uc=["config","onProps","onStart","onChange","onPause","onResume","onRest"],lc={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 fc(e){const t={};let r=0;if(Ee(e,(n,i)=>{lc[i]||(t[i]=n,r++)}),r)return t}function $o(e){const t=fc(e);if(t){const r={to:t};return Ee(e,(n,i)=>i in t||(r[i]=n)),r}return{...e}}function zt(e){return e=Z(e),_.arr(e)?e.map(zt):Ar(e)?be.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function dc(e){for(const t in e)return!0;return!1}function pn(e){return _.fun(e)||_.arr(e)&&_.obj(e[0])}function hc(e,t){var r;(r=e.ref)==null||r.delete(e),t==null||t.delete(e)}function pc(e,t){var r;t&&e.ref!==t&&((r=e.ref)==null||r.delete(e),t.add(e),e.ref=t)}var mc={default:{tension:170,friction:26}},mn={...mc.default,mass:1,damping:1,easing:Ba.linear,clamp:!1},yc=class{constructor(){this.velocity=0,Object.assign(this,mn)}};function gc(e,t,r){r&&(r={...r},Ci(r,t),t={...r,...t}),Ci(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 Ci(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 Ai=[],vc=class{constructor(){this.changed=!1,this.values=Ai,this.toValues=null,this.fromValues=Ai,this.config=new yc,this.immediate=!1}};function Mo(e,{key:t,props:r,defaultProps:n,state:i,actions:o}){return new Promise((s,a)=>{let u,l,f=At(r.cancel??(n==null?void 0:n.cancel),t);if(f)p();else{_.und(r.pause)||(i.paused=At(r.pause,t));let y=n==null?void 0:n.pause;y!==!0&&(y=i.paused||At(y,t)),u=ze(r.delay||0,t),y?(i.resumeQueue.add(h),o.pause()):(o.resume(),h())}function d(){i.resumeQueue.add(h),i.timeouts.delete(l),l.cancel(),u=l.time-C.now()}function h(){u>0&&!be.skipAnimation?(i.delayed=!0,l=C.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(y){a(y)}}})}var Gn=(e,t)=>t.length==1?t[0]:t.some(r=>r.cancelled)?st(e.get()):t.every(r=>r.noop)?Fo(e.get()):ye(e.get(),t.every(r=>r.finished)),Fo=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),ye=(e,t,r=!1)=>({value:e,finished:t,cancelled:r}),st=e=>({value:e,cancelled:!0,finished:!1});function zo(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=Yn(t,(w,v)=>v==="onRest"?void 0:w);let f,d;const h=new Promise((w,v)=>(f=w,d=v)),p=w=>{const v=i<=(r.cancelId||0)&&st(n)||i!==r.asyncId&&ye(n,!1);if(v)throw w.result=v,d(w),w},y=(w,v)=>{const b=new Ti,m=new Di;return(async()=>{if(be.skipAnimation)throw Bt(r),m.result=ye(n,!1),d(m),m;p(b);const S=_.obj(w)?{...w}:{...v,to:w};S.parentId=i,Ee(l,(P,k)=>{_.und(S[k])&&(S[k]=P)});const x=await n.start(S);return p(b),r.paused&&await new Promise(P=>{r.resumeQueue.add(P)}),x})()};let E;if(be.skipAnimation)return Bt(r),ye(n,!1);try{let w;_.arr(e)?w=(async v=>{for(const b of v)await y(b)})(e):w=Promise.resolve(e(y,n.stop.bind(n))),await Promise.all([w.then(f),h]),E=ye(n.get(),!0,!1)}catch(w){if(w instanceof Ti)E=w.result;else if(w instanceof Di)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)&&C.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 Ti=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.")}},Di=class extends Error{constructor(){super("SkipAnimationSignal")}},yn=e=>e instanceof Kn,bc=1,Kn=class extends xo{constructor(){super(...arguments),this.id=bc++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=we(this);return e&&e.getValue()}to(...e){return be.to(this,e)}interpolate(...e){return Ka(),be.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){Vt(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Nr.sort(this),Vt(this,{type:"priority",parent:this,priority:e})}},He=Symbol.for("SpringPhase"),Bo=1,Lo=2,Uo=4,Zr=e=>(e[He]&Bo)>0,Ae=e=>(e[He]&Lo)>0,St=e=>(e[He]&Uo)>0,Ii=(e,t)=>t?e[He]|=Lo|Bo:e[He]&=-3,ji=(e,t)=>t?e[He]|=Uo:e[He]&=-5,wc=class extends Kn{constructor(e,t){if(super(),this.animation=new vc,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!(Ae(this)||this._state.asyncTo)||St(this)}get goal(){return Z(this.animation.to)}get velocity(){const e=we(this);return e instanceof Yt?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Zr(this)}get isAnimating(){return Ae(this)}get isPaused(){return St(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&&ae(n.to)&&(i=re(Z(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 y=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 v;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)*y);p=E+w/(1-m)*(1-S),h=Math.abs(l.lastPosition-p)<=b,v=w*S}else{v=l.lastVelocity==null?w:l.lastVelocity;const m=o.restVelocity||b/10,S=o.clamp?0:o.bounce,x=!_.und(S),P=E==d?l.v0>0:E<d;let k,j=!1;const F=1,le=Math.ceil(e/F);for(let Y=0;Y<le&&(k=Math.abs(v)>m,!(!k&&(h=Math.abs(d-p)<=b,h)));++Y){x&&(j=p==d||p>d==P,j&&(v=-v*S,p=d));const fe=-o.tension*1e-6*(p-d),W=-o.friction*.001*v,de=(fe+W)/o.mass;v=v+de*F,p=p+v*F}}else{let m=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,l.durationProgress>0&&(l.elapsedTime=o.duration*l.durationProgress,y=l.elapsedTime+=e)),m=(o.progress||0)+y/this._memoizedDuration,m=m>1?1:m<0?0:m,l.durationProgress=m),p=E+o.easing(m)*(d-E),v=(p-l.lastPosition)/e,h=m==1}l.lastVelocity=v,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=we(this),u=a.getValue();if(t){const l=Z(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 C.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Ae(this)){const{to:e,config:t}=this.animation;C.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=>Gn(this,n))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Bt(this._state,e&&this._lastCallId),C.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=Z(n),_.und(n)?we(this)||this._set(r):this._set(n)),i}_update({...e},t){const{key:r,defaultProps:n}=this;e.default&&Object.assign(n,Yn(e,(s,a)=>/^on/.test(a)?jo(s,r):s)),$i(this,e,"onProps"),kt(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 Mo(++this._lastCallId,{key:r,props:e,defaultProps:n,state:o,actions:{pause:()=>{St(this)||(ji(this,!0),xt(o.pauseQueue),kt(this,"onPause",ye(this,Ot(this,this.animation.to)),this))},resume:()=>{St(this)&&(ji(this,!1),Ae(this)&&this._resume(),xt(o.resumeQueue),kt(this,"onResume",ye(this,Ot(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(s=>{if(e.loop&&s.finished&&!(t&&s.noop)){const a=qo(e);if(a)return this._update(a,!0)}return s})}_merge(e,t,r){if(t.cancel)return this.stop(!0),r(st(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(st(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=!Oe(d,l);h&&(a.from=d),d=Z(d);const p=!Oe(f,u);p&&this._focus(f);const y=pn(t.to),{config:E}=a,{decay:w,velocity:v}=E;(n||i)&&(E.velocity=0),t.config&&!y&&gc(E,ze(t.config,o),t.config!==s.config?ze(s.config,o):void 0);let b=we(this);if(!b||_.und(f))return r(ye(this,!0));const m=_.und(t.reset)?i&&!t.default:!_.und(d)&&At(t.reset,o),S=m?d:this.get(),x=zt(f),P=_.num(x)||_.arr(x)||Ar(x),k=!y&&(!P||At(s.immediate||t.immediate,o));if(p){const Y=hn(f);if(Y!==b.constructor)if(k)b=this._set(x);else throw Error(`Cannot animate between ${b.constructor.name} and ${Y.name}, as the "to" prop suggests`)}const j=b.constructor;let F=ae(f),le=!1;if(!F){const Y=m||!Zr(this)&&h;(p||Y)&&(le=Oe(zt(S),x),F=!le),(!Oe(a.immediate,k)&&!k||!Oe(E.decay,w)||!Oe(E.velocity,v))&&(F=!0)}if(le&&Ae(this)&&(a.changed&&!m?F=!0:F||this._stop(u)),!y&&((F||ae(u))&&(a.values=b.getPayload(),a.toValues=ae(f)?null:j==Ft?[1]:re(x)),a.immediate!=k&&(a.immediate=k,!k&&!m&&this._set(u)),F)){const{onRest:Y}=a;D(Ec,W=>$i(this,t,W));const fe=ye(this,Ot(this,u));xt(this._pendingCalls,fe),this._pendingCalls.add(r),a.changed&&C.batchedUpdates(()=>{var W;a.changed=!m,Y==null||Y(fe,this),m?ze(s.onRest,fe):(W=a.onStart)==null||W.call(a,fe,this)})}m&&this._set(S),y?r(zo(t.to,t,this._state,this)):F?this._start():Ae(this)&&!p?this._pendingCalls.add(r):r(Fo(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;ae(t)&&(pt(t,this),yn(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;ae(e)&&$t(e,this)}_set(e,t=!0){const r=Z(e);if(!_.und(r)){const n=we(this);if(!n||!Oe(r,n.getValue())){const i=hn(r);!n||n.constructor!=i?Hn(this,i.create(r)):n.setValue(r),n&&C.batchedUpdates(()=>{this._onChange(r,t)})}}return we(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,kt(this,"onStart",ye(this,Ot(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),ze(this.animation.onChange,e,this)),ze(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;we(this).reset(Z(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Ae(this)||(Ii(this,!0),St(this)||this._resume())}_resume(){be.skipAnimation?this.finish():Nr.start(this)}_stop(e,t){if(Ae(this)){Ii(this,!1);const r=this.animation;D(r.values,i=>{i.done=!0}),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),Vt(this,{type:"idle",parent:this});const n=t?st(this.get()):ye(this.get(),Ot(this,e??r.to));xt(this._pendingCalls,n),r.changed&&(r.changed=!1,kt(this,"onRest",n,this))}}};function Ot(e,t){const r=zt(t),n=zt(e.get());return Oe(n,r)}function qo(e,t=e.loop,r=e.to){const n=ze(t);if(n){const i=n!==!0&&$o(n),o=(i||e).reverse,s=!i||i.reset;return Lt({...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 Lt(e){const{to:t,from:r}=e=$o(e),n=new Set;return _.obj(t)&&Vi(t,n),_.obj(r)&&Vi(r,n),e.keys=n.size?Array.from(n):null,e}function _c(e){const t=Lt(e);return _.und(t.default)&&(t.default=Yn(t)),t}function Vi(e,t){Ee(e,(r,n)=>r!=null&&t.add(n))}var Ec=["onStart","onRest","onChange","onPause","onResume"];function $i(e,t,r){e.animation[r]=t[r]!==Vo(t,r)?jo(t[r],e.key):void 0}function kt(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 Sc=["onStart","onChange","onRest"],Oc=1,kc=class{constructor(e,t){this.id=Oc++,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(Lt(e)),this}start(e){let{queue:t}=this;return e?t=re(e).map(Lt):this.queue=[],this._flush?this._flush(this,t):(Ko(this,t),gn(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const r=this.springs;D(re(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(re(e),r=>t[r].pause())}return this}resume(e){if(_.und(e))this.start({pause:!1});else{const t=this.springs;D(re(e),r=>t[r].resume())}return this}each(e){Ee(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;C.onFrame(this._onFrame)}};function gn(e,t){return Promise.all(t.map(r=>Wo(e,r))).then(r=>Gn(e,r))}async function Wo(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(Sc,E=>{const w=t[E];if(_.fun(w)){const v=e._events[E];t[E]=({finished:b,cancelled:m})=>{const S=v.get(w);S?(b||(S.finished=!1),m&&(S.cancelled=!0)):v.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,xt(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||Vo(t,"cancel")===!0;(f||p&&d.asyncId)&&h.push(Mo(++e._lastAsyncId,{props:t,state:d,actions:{pause:fn,resume:fn,start(E,w){p?(Bt(d,e._lastAsyncId),w(st(e))):(E.onRest=a,w(zo(f,E,d,e)))}}})),d.paused&&await new Promise(E=>{d.resumeQueue.add(E)});const y=Gn(e,await Promise.all(h));if(s&&y.finished&&!(r&&y.noop)){const E=qo(t,s,i);if(E)return Ko(e,[E]),Wo(e,E,!0)}return u&&C.batchedUpdates(()=>u(y,e,e.item)),y}function Mi(e,t){const r={...e.springs};return t&&D(re(t),n=>{_.und(n.keys)&&(n=Lt(n)),_.obj(n.to)||(n={...n,to:void 0}),Go(r,n,i=>Yo(i))}),Ho(e,r),r}function Ho(e,t){Ee(t,(r,n)=>{e.springs[n]||(e.springs[n]=r,pt(r,e))})}function Yo(e,t){const r=new wc;return r.key=e,t&&pt(r,t),r}function Go(e,t,r){t.keys&&D(t.keys,n=>{(e[n]||(e[n]=r(n)))._prepareNode(t)})}function Ko(e,t){D(t,r=>{Go(e.springs,r,n=>Yo(n,e))})}var Ir=({children:e,...t})=>{const r=N.useContext(gr),n=t.pause||!!r.pause,i=t.immediate||!!r.immediate;t=Za(()=>({pause:n,immediate:i}),[n,i]);const{Provider:o}=gr;return jn.createElement(o,{value:t},e)},gr=xc(Ir,{});Ir.Provider=gr.Provider;Ir.Consumer=gr.Consumer;function xc(e,t){return Object.assign(e,jn.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var Pc=()=>{const e=[],t=function(n){Xa();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 Nc(e,t,r){const n=_.fun(t)&&t;n&&!r&&(r=[]);const i=N.useMemo(()=>n||arguments.length==3?Pc():void 0,[]),o=N.useRef(0),s=Ao(),a=N.useMemo(()=>({ctrls:[],queue:[],flush(v,b){const m=Mi(v,b);return o.current>0&&!a.queue.length&&!Object.keys(m).some(x=>!v.springs[x])?gn(v,b):new Promise(x=>{Ho(v,m),a.queue.push(()=>{x(gn(v,b))}),s()})}}),[]),u=N.useRef([...a.ctrls]),l=[],f=xi(e)||0;N.useMemo(()=>{D(u.current.slice(e,f),v=>{hc(v,i),v.stop(!0)}),u.current.length=e,d(f,e)},[e]),N.useMemo(()=>{d(0,Math.min(f,e))},r);function d(v,b){for(let m=v;m<b;m++){const S=u.current[m]||(u.current[m]=new kc(null,a.flush)),x=n?n(m,S):t[m];x&&(l[m]=_c(x))}}const h=u.current.map((v,b)=>Mi(v,l[b])),p=N.useContext(Ir),y=xi(p),E=p!==y&&dc(p);Wn(()=>{o.current++,a.ctrls=u.current;const{queue:v}=a;v.length&&(a.queue=[],D(v,b=>b())),D(u.current,(b,m)=>{i==null||i.add(b),E&&b.start({default:p});const S=l[m];S&&(pc(b,S.ref),b.ref?b.queue.push(S):b.start(S))})}),To(()=>()=>{D(a.ctrls,v=>v.stop(!0))});const w=h.map(v=>({...v}));return i?[w,i]:w}function Qo(e,t){const r=_.fun(e),[[n],i]=Nc(1,r?e:[e],r?[]:t);return r||arguments.length==2?[n,i]:n}var Rc=class extends Kn{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=It(...t);const r=this._get(),n=hn(r);Hn(this,n.create(r))}advance(e){const t=this._get(),r=this.get();Oe(t,r)||(we(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Fi(this._active)&&en(this)}_get(){const e=_.arr(this.source)?this.source.map(Z):re(Z(this.source));return this.calc(...e)}_start(){this.idle&&!Fi(this._active)&&(this.idle=!1,D(Tr(this),e=>{e.done=!1}),be.skipAnimation?(C.batchedUpdates(()=>this.advance()),en(this)):Nr.start(this))}_attach(){let e=1;D(re(this.source),t=>{ae(t)&&pt(t,this),yn(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){D(re(this.source),e=>{ae(e)&&$t(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=re(this.source).reduce((t,r)=>Math.max(t,(yn(r)?r.priority:0)+1),0))}};function Cc(e){return e.idle!==!1}function Fi(e){return!e.size||Array.from(e).every(Cc)}function en(e){e.idle||(e.idle=!0,D(Tr(e),t=>{t.done=!0}),Vt(e,{type:"idle",parent:e}))}be.assign({createStringInterpolator:Ro,to:(e,t)=>new Rc(e,t)});var Xo=/^--/;function Ac(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!Xo.test(e)&&!(Tt.hasOwnProperty(e)&&Tt[e])?t+"px":(""+t).trim()}var zi={};function Tc(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:zi[h]||(zi[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=Ac(h,i[h]);Xo.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 Tt={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},Dc=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),Ic=["Webkit","Ms","Moz","O"];Tt=Object.keys(Tt).reduce((e,t)=>(Ic.forEach(r=>e[Dc(r,t)]=e[t]),e),Tt);var jc=/^(matrix|translate|scale|rotate|skew)/,Vc=/^(translate)/,$c=/^(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,Mc=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)])),Ee(n,(s,a)=>{if(a==="transform")i.push([s||""]),o.push(u=>[u,u===""]);else if(jc.test(a)){if(delete n[a],_.und(s))return;const u=Vc.test(a)?"px":$c.test(a)?"deg":"";i.push(re(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 Fc(i,o)),super(n)}},Fc=class extends xo{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=Z(r[0]),[o,s]=this.transforms[n](_.arr(i)?i:r.map(Z));e+=" "+o,t=t&&s}),t?"none":e}observerAdded(e){e==1&&D(this.inputs,t=>D(t,r=>ae(r)&&pt(r,this)))}observerRemoved(e){e==0&&D(this.inputs,t=>D(t,r=>ae(r)&&$t(r,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Vt(this,e)}},zc=["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"];be.assign({batchedUpdates:ga.unstable_batchedUpdates,createStringInterpolator:Ro,colors:Ra});var Bc=ac(zc,{applyAnimatedValues:Tc,createAnimatedStyle:e=>new Mc(e),getComponentProps:({scrollTop:e,scrollLeft:t,...r})=>r}),Jo=Bc.animated;function Zo(e){const t=e.htmlElement??"div",[r,n]=N.useState(!1),i=N.useRef(null),o=N.useRef(null),[s,a]=N.useState(null),[u,l]=Qo(()=>({from:{opacity:0,transform:"scale(0)"},to:{opacity:1,transform:"scale(1)"}})),f=(p,y)=>Math.floor(Math.random()*(y-p+1))+p;N.useEffect(()=>{if(i.current&&o.current){const p=i.current.getBoundingClientRect(),y=o.current.getBoundingClientRect(),E=Math.max(p.height,y.height);a(E)}},[]),N.useEffect(()=>{if(!e.animate)return;const p=setTimeout(()=>{l({opacity:0,transform:"translateY(15px)",config:{duration:200},onRest:()=>{n(y=>!y),l({opacity:1,transform:"translateY(0px)",config:{duration:200}})}})},f(3500,15e3));return()=>clearTimeout(p)},[r,e.animate,l]);const d=e.animate&&r?e.content.simplified:e.content.english,h={...e.textStyles,minHeight:s!==null?`${s}px`:void 0,display:"inline-block",alignContent:"center"};return K.jsxs(K.Fragment,{children:[K.jsx("div",{ref:i,style:{position:"absolute",visibility:"hidden",pointerEvents:"none",whiteSpace:"nowrap",font:"inherit"},children:e.content.english}),K.jsx("div",{ref:o,style:{position:"absolute",visibility:"hidden",pointerEvents:"none",whiteSpace:"nowrap",font:"inherit"},children:e.content.simplified}),K.jsx(Jo.div,{style:u,children:K.jsx(t,{style:h,children:d})})]})}var te=function(){return te=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},te.apply(this,arguments)};function Ye(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 Lc(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Uc=/^((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)-.*))$/,qc=Lc(function(e){return Uc.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),z="-ms-",Dt="-moz-",$="-webkit-",es="comm",jr="rule",Qn="decl",Wc="@import",ts="@keyframes",Hc="@layer",rs=Math.abs,Xn=String.fromCharCode,vn=Object.assign;function Yc(e,t){return H(e,0)^45?(((t<<2^H(e,0))<<2^H(e,1))<<2^H(e,2))<<2^H(e,3):0}function ns(e){return e.trim()}function ke(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 H(e,t){return e.charCodeAt(t)|0}function ct(e,t,r){return e.slice(t,r)}function _e(e){return e.length}function is(e){return e.length}function Pt(e,t){return t.push(e),e}function Gc(e,t){return e.map(t).join("")}function Bi(e,t){return e.filter(function(r){return!ke(r,t)})}var Vr=1,ut=1,os=0,ue=0,q=0,mt="";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:ut,length:s,return:"",siblings:a}}function Te(e,t){return vn($r("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function it(e){for(;e.root;)e=Te(e.root,{children:[e]});Pt(e,e.siblings)}function Kc(){return q}function Qc(){return q=ue>0?H(mt,--ue):0,ut--,q===10&&(ut=1,Vr--),q}function ve(){return q=ue<os?H(mt,ue++):0,ut++,q===10&&(ut=1,Vr++),q}function Ue(){return H(mt,ue)}function lr(){return ue}function Mr(e,t){return ct(mt,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 Xc(e){return Vr=ut=1,os=_e(mt=e),ue=0,[]}function Jc(e){return mt="",e}function rn(e){return ns(Mr(ue-1,wn(e===91?e+2:e===40?e+1:e)))}function Zc(e){for(;(q=Ue())&&q<33;)ve();return bn(e)>2||bn(q)>3?"":" "}function eu(e,t){for(;--t&&ve()&&!(q<48||q>102||q>57&&q<65||q>70&&q<97););return Mr(e,lr()+(t<6&&Ue()==32&&ve()==32))}function wn(e){for(;ve();)switch(q){case e:return ue;case 34:case 39:e!==34&&e!==39&&wn(q);break;case 40:e===41&&wn(e);break;case 92:ve();break}return ue}function tu(e,t){for(;ve()&&e+q!==57;)if(e+q===84&&Ue()===47)break;return"/*"+Mr(t,ue-1)+"*"+Xn(e===47?e:ve())}function ru(e){for(;!bn(Ue());)ve();return Mr(e,ue)}function nu(e){return Jc(fr("",null,null,null,[""],e=Xc(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,y=0,E=1,w=1,v=1,b=0,m="",S=i,x=o,P=n,k=m;w;)switch(y=b,b=ve()){case 40:if(y!=108&&H(k,d-1)==58){ur(k+=A(rn(b),"&","&\f"),"&\f",rs(l?a[l-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:k+=rn(b);break;case 9:case 10:case 13:case 32:k+=Zc(y);break;case 92:k+=eu(lr()-1,7);continue;case 47:switch(Ue()){case 42:case 47:Pt(iu(tu(ve(),lr()),t,r,u),u);break;default:k+="/"}break;case 123*E:a[l++]=_e(k)*v;case 125*E:case 59:case 0:switch(b){case 0:case 125:w=0;case 59+f:v==-1&&(k=A(k,/\f/g,"")),p>0&&_e(k)-d&&Pt(p>32?Ui(k+";",n,r,d-1,u):Ui(A(k," ","")+";",n,r,d-2,u),u);break;case 59:k+=";";default:if(Pt(P=Li(k,t,r,l,f,i,a,m,S=[],x=[],d,o),o),b===123)if(f===0)fr(k,t,P,P,S,o,d,a,x);else switch(h===99&&H(k,3)===110?100:h){case 100:case 108:case 109:case 115:fr(e,P,P,n&&Pt(Li(e,P,P,0,0,i,a,m,i,S=[],d,x),x),i,x,d,a,n?S:x);break;default:fr(k,P,P,P,[""],x,0,a,x)}}l=f=p=0,E=v=1,m=k="",d=s;break;case 58:d=1+_e(k),p=y;default:if(E<1){if(b==123)--E;else if(b==125&&E++==0&&Qc()==125)continue}switch(k+=Xn(b),b*E){case 38:v=f>0?1:(k+="\f",-1);break;case 44:a[l++]=(_e(k)-1)*v,v=1;break;case 64:Ue()===45&&(k+=rn(ve())),h=Ue(),f=d=_e(m=k+=ru(lr())),b++;break;case 45:y===45&&_e(k)==2&&(E=0)}}return o}function Li(e,t,r,n,i,o,s,a,u,l,f,d){for(var h=i-1,p=i===0?o:[""],y=is(p),E=0,w=0,v=0;E<n;++E)for(var b=0,m=ct(e,h+1,h=rs(w=s[E])),S=e;b<y;++b)(S=ns(w>0?p[b]+" "+m:A(m,/&\f/g,p[b])))&&(u[v++]=S);return $r(e,t,r,i===0?jr:a,u,l,f,d)}function iu(e,t,r,n){return $r(e,t,r,es,Xn(Kc()),ct(e,2,-2),0,n)}function Ui(e,t,r,n,i){return $r(e,t,r,Qn,ct(e,0,n),ct(e,n+1,-1),n,i)}function ss(e,t,r){switch(Yc(e,t)){case 5103:return $+"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 $+e+e;case 4789:return Dt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $+e+Dt+e+z+e+e;case 5936:switch(H(e,t+11)){case 114:return $+e+z+A(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $+e+z+A(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $+e+z+A(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return $+e+z+e+e;case 6165:return $+e+z+"flex-"+e+e;case 5187:return $+e+A(e,/(\w+).+(:[^]+)/,$+"box-$1$2"+z+"flex-$1$2")+e;case 5443:return $+e+z+"flex-item-"+A(e,/flex-|-self/g,"")+(ke(e,/flex-|baseline/)?"":z+"grid-row-"+A(e,/flex-|-self/g,""))+e;case 4675:return $+e+z+"flex-line-pack"+A(e,/align-content|flex-|-self/g,"")+e;case 5548:return $+e+z+A(e,"shrink","negative")+e;case 5292:return $+e+z+A(e,"basis","preferred-size")+e;case 6060:return $+"box-"+A(e,"-grow","")+$+e+z+A(e,"grow","positive")+e;case 4554:return $+A(e,/([^-])(transform)/g,"$1"+$+"$2")+e;case 6187:return A(A(A(e,/(zoom-|grab)/,$+"$1"),/(image-set)/,$+"$1"),e,"")+e;case 5495:case 3959:return A(e,/(image-set\([^]*)/,$+"$1$`$1");case 4968:return A(A(e,/(.+:)(flex-)?(.*)/,$+"box-pack:$3"+z+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$+e+e;case 4200:if(!ke(e,/flex-|baseline/))return z+"grid-column-align"+ct(e,t)+e;break;case 2592:case 3360:return z+A(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,i){return t=i,ke(n.props,/grid-\w+-end/)})?~ur(e+(r=r[t].value),"span",0)?e:z+A(e,"-start","")+e+z+"grid-row-span:"+(~ur(r,"span",0)?ke(r,/\d+/):+ke(r,/\d+/)-+ke(e,/\d+/))+";":z+A(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return ke(n.props,/grid-\w+-start/)})?e:z+A(A(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return A(e,/(.+)-inline(.+)/,$+"$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(_e(e)-1-t>6)switch(H(e,t+1)){case 109:if(H(e,t+4)!==45)break;case 102:return A(e,/(.+:)(.+)-([^]+)/,"$1"+$+"$2-$3$1"+Dt+(H(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ur(e,"stretch",0)?ss(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 z+i+":"+o+l+(s?z+i+"-span:"+(a?u:+u-+o)+l:"")+e});case 4949:if(H(e,t+6)===121)return A(e,":",":"+$)+e;break;case 6444:switch(H(e,H(e,14)===45?18:11)){case 120:return A(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+$+(H(e,14)===45?"inline-":"")+"box$3$1"+$+"$2$3$1"+z+"$2box$3")+e;case 100:return A(e,":",":"+z)+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 ou(e,t,r,n){switch(e.type){case Hc:if(e.children.length)break;case Wc:case Qn:return e.return=e.return||e.value;case es:return"";case ts:return e.return=e.value+"{"+vr(e.children,n)+"}";case jr:if(!_e(e.value=e.props.join(",")))return""}return _e(r=vr(e.children,n))?e.return=e.value+"{"+r+"}":""}function su(e){var t=is(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 au(e){return function(t){t.root||(t=t.return)&&e(t)}}function cu(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Qn:e.return=ss(e.value,e.length,r);return;case ts:return vr([Te(e,{value:A(e.value,"@","@"+$)})],n);case jr:if(e.length)return Gc(r=e.props,function(i){switch(ke(i,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":it(Te(e,{props:[A(i,/:(read-\w+)/,":"+Dt+"$1")]})),it(Te(e,{props:[i]})),vn(e,{props:Bi(r,n)});break;case"::placeholder":it(Te(e,{props:[A(i,/:(plac\w+)/,":"+$+"input-$1")]})),it(Te(e,{props:[A(i,/:(plac\w+)/,":"+Dt+"$1")]})),it(Te(e,{props:[A(i,/:(plac\w+)/,z+"input-$1")]})),it(Te(e,{props:[i]})),vn(e,{props:Bi(r,n)});break}return""})}}var uu={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},Ge=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",as="active",cs="data-styled-version",Fr="6.1.16",Jn=`/*!sc*/
|
|
30
|
+
<%s key={someKey} {...props} />`,Kr,ze,ma,ze),mi[ze+Kr]=!0}}return c===n?la(q):ua(q),q}}function fa(c,g,x){return yi(c,g,x,!0)}function da(c,g,x){return yi(c,g,x,!1)}var ha=da,pa=fa;St.Fragment=n,St.jsx=ha,St.jsxs=pa}()),St}var bi;function _a(){return bi||(bi=1,process.env.NODE_ENV==="production"?Zt.exports=ba():Zt.exports=wa()),Zt.exports}var B=_a(),Vn=Yt(),R=e=>Ht(e,Vn),Mn=Yt();R.write=e=>Ht(e,Mn);var Pr=Yt();R.onStart=e=>Ht(e,Pr);var $n=Yt();R.onFrame=e=>Ht(e,$n);var zn=Yt();R.onFinish=e=>Ht(e,zn);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(go(r),0,i),Ve+=1,vo(),i};var go=e=>~(~at.findIndex(t=>t.time>e)||~at.length);R.cancel=e=>{Pr.delete(e),$n.delete(e),zn.delete(e),Vn.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 Fn=typeof window<"u"?window.requestAnimationFrame:()=>{};R.use=e=>Fn=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"):wo()};var je=-1,Ve=0,ln=!1;function Ht(e,t){ln?(t.delete(e),e(0)):(t.add(e),vo())}function vo(){je<0&&(je=0,R.frameLoop!=="demand"&&Fn(bo))}function Ea(){je=-1}function bo(){~je&&(Fn(bo),R.batchedUpdates(wo))}function wo(){const e=je;je=R.now();const t=go(je);if(t&&(_o(at.splice(0,t),r=>r.handler()),Ve-=t),!Ve){Ea();return}Pr.flush(),Vn.flush(e?Math.min(64,je-e):16.667),$n.flush(),Mn.flush(),zn.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,_o(t,n=>n(r)&&e.add(n)),Ve+=e.size,t=e)}}}function _o(e,t){e.forEach(r=>{try{t(r)}catch(n){R.catch(n)}})}var Sa=Object.defineProperty,xa=(e,t)=>{for(var r in t)Sa(e,r,{get:t[r],enumerable:!0})},we={};xa(we,{assign:()=>ka,colors:()=>Me,createStringInterpolator:()=>Bn,skipAnimation:()=>So,to:()=>Eo,willAdvance:()=>Un});function fn(){}var Oa=(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 Oe(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 ne=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)),Ln=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Bn,Eo,Me=null,So=!1,Un=fn,ka=e=>{e.to&&(Eo=e.to),e.now&&(R.now=e.now),e.colors!==void 0&&(Me=e.colors),e.skipAnimation!=null&&(So=e.skipAnimation),e.createStringInterpolator&&(Bn=e.createStringInterpolator),e.requestAnimationFrame&&R.use(e.requestAnimationFrame),e.batchedUpdates&&(R.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Un=e.willAdvance),e.frameLoop&&(R.frameLoop=e.frameLoop)},At=new Set,ue=[],Qr=[],pr=0,Nr={get idle(){return!At.size&&!ue.length},start(e){pr>e.priority?(At.add(e),R.onStart(Pa)):(xo(e),R(dn))},advance:dn,sort(e){if(pr)R.onFrame(()=>Nr.sort(e));else{const t=ue.indexOf(e);~t&&(ue.splice(t,1),Oo(e))}},clear(){ue=[],At.clear()}};function Pa(){At.forEach(xo),At.clear(),R(dn)}function xo(e){ue.includes(e)||Oo(e)}function Oo(e){ue.splice(Na(ue,t=>t.priority>e.priority),0,e)}function dn(e){const t=Qr;for(let r=0;r<ue.length;r++){const n=ue[r];pr=n.priority,n.idle||(Un(n),n.advance(e),n.idle||t.push(n))}return pr=0,Qr=ue,Qr.length=0,ue=t,ue.length>0}function Na(e,t){const r=e.findIndex(t);return r<0?e.length:r}var Ca={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 Cr(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Ra=new RegExp("rgb"+Cr(ve,ve,ve)),Aa=new RegExp("rgba"+Cr(ve,ve,ve,ve)),Ta=new RegExp("hsl"+Cr(ve,mr,mr)),Da=new RegExp("hsla"+Cr(ve,mr,mr,ve)),Ia=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ja=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Va=/^#([0-9a-fA-F]{6})$/,Ma=/^#([0-9a-fA-F]{8})$/;function $a(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Va.exec(e))?parseInt(t[1]+"ff",16)>>>0:Me&&Me[e]!==void 0?Me[e]:(t=Ra.exec(e))?(ot(t[1])<<24|ot(t[2])<<16|ot(t[3])<<8|255)>>>0:(t=Aa.exec(e))?(ot(t[1])<<24|ot(t[2])<<16|ot(t[3])<<8|Ei(t[4]))>>>0:(t=Ia.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Ma.exec(e))?parseInt(t[1],16)>>>0:(t=ja.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Ta.exec(e))?(wi(_i(t[1]),er(t[2]),er(t[3]))|255)>>>0:(t=Da.exec(e))?(wi(_i(t[1]),er(t[2]),er(t[3]))|Ei(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 wi(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 _i(e){return(parseFloat(e)%360+360)%360/360}function Ei(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 Si(e){let t=$a(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 Bn(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=Fa(l,o);return za(l,o[f],o[f+1],i[f],i[f+1],u,s,a,n.map)}};function za(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 Fa(e,t){for(var r=1;r<t.length-1&&!(t[r]>=e);++r);return r-1}var La={linear:e=>e},Vt=Symbol.for("FluidValue.get"),ut=Symbol.for("FluidValue.observers"),ce=e=>!!(e&&e[Vt]),Z=e=>e&&e[Vt]?e[Vt]():e,xi=e=>e[ut]||null;function Ba(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Mt(e,t){const r=e[ut];r&&r.forEach(n=>{Ba(n,t)})}var ko=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Ua(this,e)}},Ua=(e,t)=>Po(e,Vt,t);function yt(e,t){if(e[Vt]){let r=e[ut];r||Po(e,ut,r=new Set),r.has(t)||(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function $t(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 Po=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),ar=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,qa=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Oi=new RegExp(`(${ar.source})(%|[a-z]+)`,"i"),Wa=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Rr=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,No=e=>{const[t,r]=Ha(e);if(!t||Ln())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 No(r);if(r)return r}return e},Ha=e=>{const t=Rr.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]},Jr,Ya=(e,t,r,n,i)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(n)}, ${i})`,Co=e=>{Jr||(Jr=Me?new RegExp(`(${Object.keys(Me).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(o=>Z(o).replace(Rr,No).replace(qa,Si).replace(Jr,Si)),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=!Oi.test(t[0])&&((u=t.find(l=>Oi.test(l)))==null?void 0:u.replace(ar,""));let a=0;return t[0].replace(ar,()=>`${i[a++](o)}${s||""}`).replace(Wa,Ya)}},qn="react-spring: ",Ro=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)}},Ga=Ro(console.warn);function Ka(){Ga(`${qn}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var Qa=Ro(console.warn);function Xa(){Qa(`${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)||!Ln()&&Rr.test(e)||e in(Me||{}))}var Wn=Ln()?N.useEffect:N.useLayoutEffect,Ja=()=>{const e=N.useRef(!1);return Wn(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Ao(){const e=N.useState()[1],t=Ja();return()=>{t.current&&e(Math.random())}}function Za(e,t){const[r]=N.useState(()=>({inputs:t,result:e()})),n=N.useRef(),i=n.current;let o=i;return o?t&&o.inputs&&ec(t,o.inputs)||(o={inputs:t,result:e()}):o=r,N.useEffect(()=>{n.current=o,i==r&&(r.inputs=r.result=void 0)},[o]),o.result}function ec(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 To=e=>N.useEffect(e,tc),tc=[];function ki(e){const t=N.useRef();return N.useEffect(()=>{t.current=e}),t.current}var zt=Symbol.for("Animated:node"),rc=e=>!!e&&e[zt]===e,_e=e=>e&&e[zt],Hn=(e,t)=>Oa(e,zt,t),Tr=e=>e&&e[zt]&&e[zt].getPayload(),Do=class{constructor(){Hn(this,this)}getPayload(){return this.payload||[]}},Gt=class extends Do{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 Do{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Se(this.source,(r,n)=>{rc(r)?t[n]=r.getValue(e):ce(r)?t[n]=Z(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&&ce(e)&&yr.dependencies.add(e);const t=Tr(e);t&&D(t,r=>this.add(r))}},Io=class extends Dr{constructor(e){super(e)}static create(e){return new Io(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(nc)),!0)}};function nc(e){return(Ar(e)?Ft:Gt).create(e)}function hn(e){const t=_e(e);return t?t.constructor:_.arr(e)?Io:Ar(e)?Ft:Gt}var Pi=(e,t)=>{const r=!_.fun(e)||e.prototype&&e.prototype.isReactComponent;return N.forwardRef((n,i)=>{const o=N.useRef(null),s=r&&N.useCallback(y=>{o.current=sc(i,y)},[i]),[a,u]=oc(n,t),l=Ao(),f=()=>{const y=o.current;if(r&&!y)return;(y?t.applyAnimatedValues(y,a.getValue(!0)):!1)===!1&&l()},d=new ic(f,u),h=N.useRef();Wn(()=>(h.current=d,D(u,y=>yt(y,d)),()=>{h.current&&(D(h.current.deps,y=>$t(y,h.current)),R.cancel(h.current.update))})),N.useEffect(f,[]),To(()=>()=>{const y=h.current;D(y.deps,E=>$t(E,y))});const p=t.getComponentProps(a.getValue());return jn.createElement(e,{...p,ref:s})})},ic=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&R.write(this.update)}};function oc(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 sc(e,t){return e&&(_.fun(e)?e(t):e.current=t),t}var Ni=Symbol.for("AnimatedComponent"),ac=(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=Ci(s)||"Anonymous";return _.str(s)?s=o[s]||(o[s]=Pi(s,i)):s=s[Ni]||(s[Ni]=Pi(s,i)),s.displayName=`Animated(${a})`,s};return Se(e,(s,a)=>{_.arr(e)&&(a=Ci(s)),o[a]=o(s)}),{animated:o}},Ci=e=>_.str(e)?e:e&&_.str(e.displayName)?e.displayName:_.fun(e)&&e.name||null;function Le(e,...t){return _.fun(e)?e(...t):e}var Tt=(e,t)=>e===!0||!!(t&&e&&(_.fun(e)?e(t):ne(e).includes(t))),jo=(e,t)=>_.obj(e)?t&&e[t]:e,Vo=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,cc=e=>e,Yn=(e,t=cc)=>{let r=uc;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},uc=["config","onProps","onStart","onChange","onPause","onResume","onRest"],lc={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 fc(e){const t={};let r=0;if(Se(e,(n,i)=>{lc[i]||(t[i]=n,r++)}),r)return t}function Mo(e){const t=fc(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=Z(e),_.arr(e)?e.map(Lt):Ar(e)?we.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function dc(e){for(const t in e)return!0;return!1}function pn(e){return _.fun(e)||_.arr(e)&&_.obj(e[0])}function hc(e,t){var r;(r=e.ref)==null||r.delete(e),t==null||t.delete(e)}function pc(e,t){var r;t&&e.ref!==t&&((r=e.ref)==null||r.delete(e),t.add(e),e.ref=t)}var mc={default:{tension:170,friction:26}},mn={...mc.default,mass:1,damping:1,easing:La.linear,clamp:!1},yc=class{constructor(){this.velocity=0,Object.assign(this,mn)}};function gc(e,t,r){r&&(r={...r},Ri(r,t),t={...r,...t}),Ri(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 Ri(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 Ai=[],vc=class{constructor(){this.changed=!1,this.values=Ai,this.toValues=null,this.fromValues=Ai,this.config=new yc,this.immediate=!1}};function $o(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 y=n==null?void 0:n.pause;y!==!0&&(y=i.paused||Tt(y,t)),u=Le(r.delay||0,t),y?(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(y){a(y)}}})}var Gn=(e,t)=>t.length==1?t[0]:t.some(r=>r.cancelled)?ct(e.get()):t.every(r=>r.noop)?zo(e.get()):ge(e.get(),t.every(r=>r.finished)),zo=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 Fo(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=Yn(t,(w,v)=>v==="onRest"?void 0:w);let f,d;const h=new Promise((w,v)=>(f=w,d=v)),p=w=>{const v=i<=(r.cancelId||0)&&ct(n)||i!==r.asyncId&&ge(n,!1);if(v)throw w.result=v,d(w),w},y=(w,v)=>{const b=new Ti,m=new Di;return(async()=>{if(we.skipAnimation)throw Bt(r),m.result=ge(n,!1),d(m),m;p(b);const S=_.obj(w)?{...w}:{...v,to:w};S.parentId=i,Se(l,(P,O)=>{_.und(S[O])&&(S[O]=P)});const k=await n.start(S);return p(b),r.paused&&await new Promise(P=>{r.resumeQueue.add(P)}),k})()};let E;if(we.skipAnimation)return Bt(r),ge(n,!1);try{let w;_.arr(e)?w=(async v=>{for(const b of v)await y(b)})(e):w=Promise.resolve(e(y,n.stop.bind(n))),await Promise.all([w.then(f),h]),E=ge(n.get(),!0,!1)}catch(w){if(w instanceof Ti)E=w.result;else if(w instanceof Di)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 Ti=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.")}},Di=class extends Error{constructor(){super("SkipAnimationSignal")}},yn=e=>e instanceof Kn,bc=1,Kn=class extends ko{constructor(){super(...arguments),this.id=bc++,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 Ka(),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){Mt(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Nr.sort(this),Mt(this,{type:"priority",parent:this,priority:e})}},Ye=Symbol.for("SpringPhase"),Lo=1,Bo=2,Uo=4,Zr=e=>(e[Ye]&Lo)>0,Te=e=>(e[Ye]&Bo)>0,xt=e=>(e[Ye]&Uo)>0,Ii=(e,t)=>t?e[Ye]|=Bo|Lo:e[Ye]&=-3,ji=(e,t)=>t?e[Ye]|=Uo:e[Ye]&=-5,wc=class extends Kn{constructor(e,t){if(super(),this.animation=new vc,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 Z(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&&ce(n.to)&&(i=ne(Z(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 y=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 v;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)*y);p=E+w/(1-m)*(1-S),h=Math.abs(l.lastPosition-p)<=b,v=w*S}else{v=l.lastVelocity==null?w:l.lastVelocity;const m=o.restVelocity||b/10,S=o.clamp?0:o.bounce,k=!_.und(S),P=E==d?l.v0>0:E<d;let O,j=!1;const z=1,fe=Math.ceil(e/z);for(let G=0;G<fe&&(O=Math.abs(v)>m,!(!O&&(h=Math.abs(d-p)<=b,h)));++G){k&&(j=p==d||p>d==P,j&&(v=-v*S,p=d));const de=-o.tension*1e-6*(p-d),H=-o.friction*.001*v,he=(de+H)/o.mass;v=v+he*z,p=p+v*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,y=l.elapsedTime+=e)),m=(o.progress||0)+y/this._memoizedDuration,m=m>1?1:m<0?0:m,l.durationProgress=m),p=E+o.easing(m)*(d-E),v=(p-l.lastPosition)/e,h=m==1}l.lastVelocity=v,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=Z(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=>Gn(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=Z(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,Yn(e,(s,a)=>/^on/.test(a)?jo(s,r):s)),Mi(this,e,"onProps"),kt(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 $o(++this._lastCallId,{key:r,props:e,defaultProps:n,state:o,actions:{pause:()=>{xt(this)||(ji(this,!0),Pt(o.pauseQueue),kt(this,"onPause",ge(this,Ot(this,this.animation.to)),this))},resume:()=>{xt(this)&&(ji(this,!1),Te(this)&&this._resume(),Pt(o.resumeQueue),kt(this,"onResume",ge(this,Ot(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(s=>{if(e.loop&&s.finished&&!(t&&s.noop)){const a=qo(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=!Oe(d,l);h&&(a.from=d),d=Z(d);const p=!Oe(f,u);p&&this._focus(f);const y=pn(t.to),{config:E}=a,{decay:w,velocity:v}=E;(n||i)&&(E.velocity=0),t.config&&!y&&gc(E,Le(t.config,o),t.config!==s.config?Le(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(),k=Lt(f),P=_.num(k)||_.arr(k)||Ar(k),O=!y&&(!P||Tt(s.immediate||t.immediate,o));if(p){const G=hn(f);if(G!==b.constructor)if(O)b=this._set(k);else throw Error(`Cannot animate between ${b.constructor.name} and ${G.name}, as the "to" prop suggests`)}const j=b.constructor;let z=ce(f),fe=!1;if(!z){const G=m||!Zr(this)&&h;(p||G)&&(fe=Oe(Lt(S),k),z=!fe),(!Oe(a.immediate,O)&&!O||!Oe(E.decay,w)||!Oe(E.velocity,v))&&(z=!0)}if(fe&&Te(this)&&(a.changed&&!m?z=!0:z||this._stop(u)),!y&&((z||ce(u))&&(a.values=b.getPayload(),a.toValues=ce(f)?null:j==Ft?[1]:ne(k)),a.immediate!=O&&(a.immediate=O,!O&&!m&&this._set(u)),z)){const{onRest:G}=a;D(Ec,H=>Mi(this,t,H));const de=ge(this,Ot(this,u));Pt(this._pendingCalls,de),this._pendingCalls.add(r),a.changed&&R.batchedUpdates(()=>{var H;a.changed=!m,G==null||G(de,this),m?Le(s.onRest,de):(H=a.onStart)==null||H.call(a,de,this)})}m&&this._set(S),y?r(Fo(t.to,t,this._state,this)):z?this._start():Te(this)&&!p?this._pendingCalls.add(r):r(zo(S))}_focus(e){const t=this.animation;e!==t.to&&(xi(this)&&this._detach(),t.to=e,xi(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;ce(t)&&(yt(t,this),yn(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;ce(e)&&$t(e,this)}_set(e,t=!0){const r=Z(e);if(!_.und(r)){const n=_e(this);if(!n||!Oe(r,n.getValue())){const i=hn(r);!n||n.constructor!=i?Hn(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,kt(this,"onStart",ge(this,Ot(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Le(this.animation.onChange,e,this)),Le(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;_e(this).reset(Z(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),Te(this)||(Ii(this,!0),xt(this)||this._resume())}_resume(){we.skipAnimation?this.finish():Nr.start(this)}_stop(e,t){if(Te(this)){Ii(this,!1);const r=this.animation;D(r.values,i=>{i.done=!0}),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),Mt(this,{type:"idle",parent:this});const n=t?ct(this.get()):ge(this.get(),Ot(this,e??r.to));Pt(this._pendingCalls,n),r.changed&&(r.changed=!1,kt(this,"onRest",n,this))}}};function Ot(e,t){const r=Lt(t),n=Lt(e.get());return Oe(n,r)}function qo(e,t=e.loop,r=e.to){const n=Le(t);if(n){const i=n!==!0&&Mo(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=Mo(e),n=new Set;return _.obj(t)&&Vi(t,n),_.obj(r)&&Vi(r,n),e.keys=n.size?Array.from(n):null,e}function _c(e){const t=Ut(e);return _.und(t.default)&&(t.default=Yn(t)),t}function Vi(e,t){Se(e,(r,n)=>r!=null&&t.add(n))}var Ec=["onStart","onRest","onChange","onPause","onResume"];function Mi(e,t,r){e.animation[r]=t[r]!==Vo(t,r)?jo(t[r],e.key):void 0}function kt(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 Sc=["onStart","onChange","onRest"],xc=1,Oc=class{constructor(e,t){this.id=xc++,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=ne(e).map(Ut):this.queue=[],this._flush?this._flush(this,t):(Ko(this,t),gn(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const r=this.springs;D(ne(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(ne(e),r=>t[r].pause())}return this}resume(e){if(_.und(e))this.start({pause:!1});else{const t=this.springs;D(ne(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=>Wo(e,r))).then(r=>Gn(e,r))}async function Wo(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(Sc,E=>{const w=t[E];if(_.fun(w)){const v=e._events[E];t[E]=({finished:b,cancelled:m})=>{const S=v.get(w);S?(b||(S.finished=!1),m&&(S.cancelled=!0)):v.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||Vo(t,"cancel")===!0;(f||p&&d.asyncId)&&h.push($o(++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(Fo(f,E,d,e)))}}})),d.paused&&await new Promise(E=>{d.resumeQueue.add(E)});const y=Gn(e,await Promise.all(h));if(s&&y.finished&&!(r&&y.noop)){const E=qo(t,s,i);if(E)return Ko(e,[E]),Wo(e,E,!0)}return u&&R.batchedUpdates(()=>u(y,e,e.item)),y}function $i(e,t){const r={...e.springs};return t&&D(ne(t),n=>{_.und(n.keys)&&(n=Ut(n)),_.obj(n.to)||(n={...n,to:void 0}),Go(r,n,i=>Yo(i))}),Ho(e,r),r}function Ho(e,t){Se(t,(r,n)=>{e.springs[n]||(e.springs[n]=r,yt(r,e))})}function Yo(e,t){const r=new wc;return r.key=e,t&&yt(r,t),r}function Go(e,t,r){t.keys&&D(t.keys,n=>{(e[n]||(e[n]=r(n)))._prepareNode(t)})}function Ko(e,t){D(t,r=>{Go(e.springs,r,n=>Yo(n,e))})}var Ir=({children:e,...t})=>{const r=N.useContext(gr),n=t.pause||!!r.pause,i=t.immediate||!!r.immediate;t=Za(()=>({pause:n,immediate:i}),[n,i]);const{Provider:o}=gr;return jn.createElement(o,{value:t},e)},gr=kc(Ir,{});Ir.Provider=gr.Provider;Ir.Consumer=gr.Consumer;function kc(e,t){return Object.assign(e,jn.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var Pc=()=>{const e=[],t=function(n){Xa();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 Nc(e,t,r){const n=_.fun(t)&&t;n&&!r&&(r=[]);const i=N.useMemo(()=>n||arguments.length==3?Pc():void 0,[]),o=N.useRef(0),s=Ao(),a=N.useMemo(()=>({ctrls:[],queue:[],flush(v,b){const m=$i(v,b);return o.current>0&&!a.queue.length&&!Object.keys(m).some(k=>!v.springs[k])?gn(v,b):new Promise(k=>{Ho(v,m),a.queue.push(()=>{k(gn(v,b))}),s()})}}),[]),u=N.useRef([...a.ctrls]),l=[],f=ki(e)||0;N.useMemo(()=>{D(u.current.slice(e,f),v=>{hc(v,i),v.stop(!0)}),u.current.length=e,d(f,e)},[e]),N.useMemo(()=>{d(0,Math.min(f,e))},r);function d(v,b){for(let m=v;m<b;m++){const S=u.current[m]||(u.current[m]=new Oc(null,a.flush)),k=n?n(m,S):t[m];k&&(l[m]=_c(k))}}const h=u.current.map((v,b)=>$i(v,l[b])),p=N.useContext(Ir),y=ki(p),E=p!==y&&dc(p);Wn(()=>{o.current++,a.ctrls=u.current;const{queue:v}=a;v.length&&(a.queue=[],D(v,b=>b())),D(u.current,(b,m)=>{i==null||i.add(b),E&&b.start({default:p});const S=l[m];S&&(pc(b,S.ref),b.ref?b.queue.push(S):b.start(S))})}),To(()=>()=>{D(a.ctrls,v=>v.stop(!0))});const w=h.map(v=>({...v}));return i?[w,i]:w}function Qo(e,t){const r=_.fun(e),[[n],i]=Nc(1,r?e:[e],r?[]:t);return r||arguments.length==2?[n,i]:n}var Cc=class extends Kn{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);Hn(this,n.create(r))}advance(e){const t=this._get(),r=this.get();Oe(t,r)||(_e(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&zi(this._active)&&en(this)}_get(){const e=_.arr(this.source)?this.source.map(Z):ne(Z(this.source));return this.calc(...e)}_start(){this.idle&&!zi(this._active)&&(this.idle=!1,D(Tr(this),e=>{e.done=!1}),we.skipAnimation?(R.batchedUpdates(()=>this.advance()),en(this)):Nr.start(this))}_attach(){let e=1;D(ne(this.source),t=>{ce(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(ne(this.source),e=>{ce(e)&&$t(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=ne(this.source).reduce((t,r)=>Math.max(t,(yn(r)?r.priority:0)+1),0))}};function Rc(e){return e.idle!==!1}function zi(e){return!e.size||Array.from(e).every(Rc)}function en(e){e.idle||(e.idle=!0,D(Tr(e),t=>{t.done=!0}),Mt(e,{type:"idle",parent:e}))}we.assign({createStringInterpolator:Co,to:(e,t)=>new Cc(e,t)});var Xo=/^--/;function Ac(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!Xo.test(e)&&!(Dt.hasOwnProperty(e)&&Dt[e])?t+"px":(""+t).trim()}var Fi={};function Tc(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:Fi[h]||(Fi[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=Ac(h,i[h]);Xo.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},Dc=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),Ic=["Webkit","Ms","Moz","O"];Dt=Object.keys(Dt).reduce((e,t)=>(Ic.forEach(r=>e[Dc(r,t)]=e[t]),e),Dt);var jc=/^(matrix|translate|scale|rotate|skew)/,Vc=/^(translate)/,Mc=/^(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,$c=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(jc.test(a)){if(delete n[a],_.und(s))return;const u=Vc.test(a)?"px":Mc.test(a)?"deg":"";i.push(ne(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 zc(i,o)),super(n)}},zc=class extends ko{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=Z(r[0]),[o,s]=this.transforms[n](_.arr(i)?i:r.map(Z));e+=" "+o,t=t&&s}),t?"none":e}observerAdded(e){e==1&&D(this.inputs,t=>D(t,r=>ce(r)&&yt(r,this)))}observerRemoved(e){e==0&&D(this.inputs,t=>D(t,r=>ce(r)&&$t(r,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Mt(this,e)}},Fc=["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:ga.unstable_batchedUpdates,createStringInterpolator:Co,colors:Ca});var Lc=ac(Fc,{applyAnimatedValues:Tc,createAnimatedStyle:e=>new $c(e),getComponentProps:({scrollTop:e,scrollLeft:t,...r})=>r}),Jo=Lc.animated;function Zo(e){const t=e.htmlElement??"div",[r,n]=N.useState(!1),i=N.useRef(null),o=N.useRef(null),[s,a]=N.useState(null),[u,l]=Qo(()=>({from:{opacity:0,transform:"scale(0)"},to:{opacity:1,transform:"scale(1)"}})),f=(p,y)=>Math.floor(Math.random()*(y-p+1))+p;N.useEffect(()=>{if(i.current&&o.current){const p=i.current.getBoundingClientRect(),y=o.current.getBoundingClientRect(),E=Math.max(p.height,y.height);a(E)}},[]),N.useEffect(()=>{if(!e.animate)return;const p=setTimeout(()=>{l({opacity:0,transform:"translateY(15px)",config:{duration:200},onRest:()=>{n(y=>!y),l({opacity:1,transform:"translateY(0px)",config:{duration:200}})}})},f(3500,15e3));return()=>clearTimeout(p)},[r,e.animate,l]);const d=e.animate&&r?e.content.simplified:e.content.english,h={...e.textStyles,minHeight:s!==null?`${s}px`:void 0,display:"inline-block",alignContent:"center"};return B.jsxs(B.Fragment,{children:[B.jsx("div",{ref:i,style:{position:"absolute",visibility:"hidden",pointerEvents:"none",whiteSpace:"nowrap",font:"inherit"},children:e.content.english}),B.jsx("div",{ref:o,style:{position:"absolute",visibility:"hidden",pointerEvents:"none",whiteSpace:"nowrap",font:"inherit"},children:e.content.simplified}),B.jsx(Jo.div,{style:u,children:B.jsx(t,{style:h,children:d})})]})}var te=function(){return te=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},te.apply(this,arguments)};function Ge(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 Bc(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Uc=/^((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)-.*))$/,qc=Bc(function(e){return Uc.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),F="-ms-",It="-moz-",M="-webkit-",es="comm",jr="rule",Qn="decl",Wc="@import",ts="@keyframes",Hc="@layer",rs=Math.abs,Xn=String.fromCharCode,vn=Object.assign;function Yc(e,t){return Y(e,0)^45?(((t<<2^Y(e,0))<<2^Y(e,1))<<2^Y(e,2))<<2^Y(e,3):0}function ns(e){return e.trim()}function ke(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 Y(e,t){return e.charCodeAt(t)|0}function lt(e,t,r){return e.slice(t,r)}function Ee(e){return e.length}function is(e){return e.length}function Nt(e,t){return t.push(e),e}function Gc(e,t){return e.map(t).join("")}function Li(e,t){return e.filter(function(r){return!ke(r,t)})}var Vr=1,ft=1,os=0,le=0,W=0,gt="";function Mr(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(Mr("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function st(e){for(;e.root;)e=De(e.root,{children:[e]});Nt(e,e.siblings)}function Kc(){return W}function Qc(){return W=le>0?Y(gt,--le):0,ft--,W===10&&(ft=1,Vr--),W}function be(){return W=le<os?Y(gt,le++):0,ft++,W===10&&(ft=1,Vr++),W}function qe(){return Y(gt,le)}function lr(){return le}function $r(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 Xc(e){return Vr=ft=1,os=Ee(gt=e),le=0,[]}function Jc(e){return gt="",e}function rn(e){return ns($r(le-1,wn(e===91?e+2:e===40?e+1:e)))}function Zc(e){for(;(W=qe())&&W<33;)be();return bn(e)>2||bn(W)>3?"":" "}function eu(e,t){for(;--t&&be()&&!(W<48||W>102||W>57&&W<65||W>70&&W<97););return $r(e,lr()+(t<6&&qe()==32&&be()==32))}function wn(e){for(;be();)switch(W){case e:return le;case 34:case 39:e!==34&&e!==39&&wn(W);break;case 40:e===41&&wn(e);break;case 92:be();break}return le}function tu(e,t){for(;be()&&e+W!==57;)if(e+W===84&&qe()===47)break;return"/*"+$r(t,le-1)+"*"+Xn(e===47?e:be())}function ru(e){for(;!bn(qe());)be();return $r(e,le)}function nu(e){return Jc(fr("",null,null,null,[""],e=Xc(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,y=0,E=1,w=1,v=1,b=0,m="",S=i,k=o,P=n,O=m;w;)switch(y=b,b=be()){case 40:if(y!=108&&Y(O,d-1)==58){ur(O+=A(rn(b),"&","&\f"),"&\f",rs(l?a[l-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:O+=rn(b);break;case 9:case 10:case 13:case 32:O+=Zc(y);break;case 92:O+=eu(lr()-1,7);continue;case 47:switch(qe()){case 42:case 47:Nt(iu(tu(be(),lr()),t,r,u),u);break;default:O+="/"}break;case 123*E:a[l++]=Ee(O)*v;case 125*E:case 59:case 0:switch(b){case 0:case 125:w=0;case 59+f:v==-1&&(O=A(O,/\f/g,"")),p>0&&Ee(O)-d&&Nt(p>32?Ui(O+";",n,r,d-1,u):Ui(A(O," ","")+";",n,r,d-2,u),u);break;case 59:O+=";";default:if(Nt(P=Bi(O,t,r,l,f,i,a,m,S=[],k=[],d,o),o),b===123)if(f===0)fr(O,t,P,P,S,o,d,a,k);else switch(h===99&&Y(O,3)===110?100:h){case 100:case 108:case 109:case 115:fr(e,P,P,n&&Nt(Bi(e,P,P,0,0,i,a,m,i,S=[],d,k),k),i,k,d,a,n?S:k);break;default:fr(O,P,P,P,[""],k,0,a,k)}}l=f=p=0,E=v=1,m=O="",d=s;break;case 58:d=1+Ee(O),p=y;default:if(E<1){if(b==123)--E;else if(b==125&&E++==0&&Qc()==125)continue}switch(O+=Xn(b),b*E){case 38:v=f>0?1:(O+="\f",-1);break;case 44:a[l++]=(Ee(O)-1)*v,v=1;break;case 64:qe()===45&&(O+=rn(be())),h=qe(),f=d=Ee(m=O+=ru(lr())),b++;break;case 45:y===45&&Ee(O)==2&&(E=0)}}return o}function Bi(e,t,r,n,i,o,s,a,u,l,f,d){for(var h=i-1,p=i===0?o:[""],y=is(p),E=0,w=0,v=0;E<n;++E)for(var b=0,m=lt(e,h+1,h=rs(w=s[E])),S=e;b<y;++b)(S=ns(w>0?p[b]+" "+m:A(m,/&\f/g,p[b])))&&(u[v++]=S);return Mr(e,t,r,i===0?jr:a,u,l,f,d)}function iu(e,t,r,n){return Mr(e,t,r,es,Xn(Kc()),lt(e,2,-2),0,n)}function Ui(e,t,r,n,i){return Mr(e,t,r,Qn,lt(e,0,n),lt(e,n+1,-1),n,i)}function ss(e,t,r){switch(Yc(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+F+e+e;case 5936:switch(Y(e,t+11)){case 114:return M+e+F+A(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return M+e+F+A(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return M+e+F+A(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return M+e+F+e+e;case 6165:return M+e+F+"flex-"+e+e;case 5187:return M+e+A(e,/(\w+).+(:[^]+)/,M+"box-$1$2"+F+"flex-$1$2")+e;case 5443:return M+e+F+"flex-item-"+A(e,/flex-|-self/g,"")+(ke(e,/flex-|baseline/)?"":F+"grid-row-"+A(e,/flex-|-self/g,""))+e;case 4675:return M+e+F+"flex-line-pack"+A(e,/align-content|flex-|-self/g,"")+e;case 5548:return M+e+F+A(e,"shrink","negative")+e;case 5292:return M+e+F+A(e,"basis","preferred-size")+e;case 6060:return M+"box-"+A(e,"-grow","")+M+e+F+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"+F+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+M+e+e;case 4200:if(!ke(e,/flex-|baseline/))return F+"grid-column-align"+lt(e,t)+e;break;case 2592:case 3360:return F+A(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,i){return t=i,ke(n.props,/grid-\w+-end/)})?~ur(e+(r=r[t].value),"span",0)?e:F+A(e,"-start","")+e+F+"grid-row-span:"+(~ur(r,"span",0)?ke(r,/\d+/):+ke(r,/\d+/)-+ke(e,/\d+/))+";":F+A(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return ke(n.props,/grid-\w+-start/)})?e:F+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(Y(e,t+1)){case 109:if(Y(e,t+4)!==45)break;case 102:return A(e,/(.+:)(.+)-([^]+)/,"$1"+M+"$2-$3$1"+It+(Y(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ur(e,"stretch",0)?ss(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 F+i+":"+o+l+(s?F+i+"-span:"+(a?u:+u-+o)+l:"")+e});case 4949:if(Y(e,t+6)===121)return A(e,":",":"+M)+e;break;case 6444:switch(Y(e,Y(e,14)===45?18:11)){case 120:return A(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+M+(Y(e,14)===45?"inline-":"")+"box$3$1"+M+"$2$3$1"+F+"$2box$3")+e;case 100:return A(e,":",":"+F)+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 ou(e,t,r,n){switch(e.type){case Hc:if(e.children.length)break;case Wc:case Qn:return e.return=e.return||e.value;case es:return"";case ts: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 su(e){var t=is(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 au(e){return function(t){t.root||(t=t.return)&&e(t)}}function cu(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Qn:e.return=ss(e.value,e.length,r);return;case ts:return vr([De(e,{value:A(e.value,"@","@"+M)})],n);case jr:if(e.length)return Gc(r=e.props,function(i){switch(ke(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:Li(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+)/,F+"input-$1")]})),st(De(e,{props:[i]})),vn(e,{props:Li(r,n)});break}return""})}}var uu={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},Ke=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",as="active",cs="data-styled-version",zr="6.1.16",Jn=`/*!sc*/
|
|
31
31
|
`,br=typeof window<"u"&&"HTMLElement"in window,lu=!!(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"),qi=/invalid hook call/i,tr=new Set,fu=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
|
-
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];qi.test(s)?(o=!1,tr.delete(n)):i.apply(void 0,
|
|
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];qi.test(s)?(o=!1,tr.delete(n)):i.apply(void 0,Ge([s],a,!1))},N.useRef(),o&&!tr.has(n)&&(console.warn(n),tr.add(n))}catch(s){qi.test(s.message)&&tr.delete(n)}finally{console.error=i}}},Fr=Object.freeze([]),dt=Object.freeze({});function du(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"]),hu=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,pu=/(^-|-$)/g;function Wi(e){return e.replace(hu,"-").replace(pu,"")}var mu=/(a)(d)/gi,rr=52,Hi=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=Hi(t%rr)+r;return(Hi(t%rr)+r).replace(mu,"$1-$2")}var nn,us=5381,Be=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},ls=function(e){return Be(us,e)};function fs(e){return En(ls(e)>>>0)}function ds(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 hs=typeof Symbol=="function"&&Symbol.for,ps=hs?Symbol.for("react.memo"):60115,yu=hs?Symbol.for("react.forward_ref"):60112,gu={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},vu={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ms={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},bu=((nn={})[yu]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},nn[ps]=ms,nn);function Yi(e){return("type"in(t=e)&&t.type.$$typeof)===ps?ms:"$$typeof"in e?bu[e.$$typeof]:gu;var t}var wu=Object.defineProperty,_u=Object.getOwnPropertyNames,Gi=Object.getOwnPropertySymbols,Eu=Object.getOwnPropertyDescriptor,Su=Object.getPrototypeOf,Ki=Object.prototype;function ys(e,t,r){if(typeof t!="string"){if(Ki){var n=Su(t);n&&n!==Ki&&ys(e,n,r)}var i=_u(t);Gi&&(i=i.concat(Gi(t)));for(var o=Yi(e),s=Yi(t),a=0;a<i.length;++a){var u=i[a];if(!(u in vu||r&&r[u]||s&&u in s||o&&u in o)){var l=Eu(t,u);try{wu(e,u,l)}catch{}}}}return e}function ht(e){return typeof e=="function"}function Zn(e){return typeof e=="object"&&"styledComponentId"in e}function Ue(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 ei(e,t){Object.defineProperty(e,"toString",{value:t})}var xu=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
|
34
34
|
|
|
35
35
|
`,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
|
|
36
36
|
|
|
@@ -71,7 +71,7 @@ as for instance in your render method then you may be running into this limitati
|
|
|
71
71
|
|
|
72
72
|
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
|
73
73
|
Has styled-components' style tag been unmounted or altered by another script?
|
|
74
|
-
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function ku(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e[0],n=[],i=1,o=e.length;i<o;i+=1)n.push(e[i]);return n.forEach(function(s){r=r.replace(/%[a-z]/,s)}),r}function yt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(ku.apply(void 0,Ye([Ou[e]],t,!1)).trim())}var xu=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,n=0;n<t;n++)r+=this.groupSizes[n];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var n=this.groupSizes,i=n.length,o=i;t>=o;)if((o<<=1)<0)throw yt(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var s=i;s<o;s++)this.groupSizes[s]=0}for(var a=this.indexOfGroup(t+1),u=(s=0,r.length);s<u;s++)this.tag.insertRule(a,r[s])&&(this.groupSizes[t]++,a++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],n=this.indexOfGroup(t),i=n+r;this.groupSizes[t]=0;for(var o=n;o<i;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var n=this.groupSizes[t],i=this.indexOfGroup(t),o=i+n,s=i;s<o;s++)r+="".concat(this.tag.getRule(s)).concat(Jn);return r},e}(),Pu=1<<30,dr=new Map,wr=new Map,hr=1,nr=function(e){if(dr.has(e))return dr.get(e);for(;wr.has(hr);)hr++;var t=hr++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>Pu))throw yt(16,"".concat(t));return dr.set(e,t),wr.set(t,e),t},Nu=function(e,t){hr=t+1,dr.set(e,t),wr.set(t,e)},Ru="style[".concat(Ge,"][").concat(cs,'="').concat(Fr,'"]'),Cu=new RegExp("^".concat(Ge,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Au=function(e,t,r){for(var n,i=r.split(","),o=0,s=i.length;o<s;o++)(n=i[o])&&e.registerName(t,n)},Tu=function(e,t){for(var r,n=((r=t.textContent)!==null&&r!==void 0?r:"").split(Jn),i=[],o=0,s=n.length;o<s;o++){var a=n[o].trim();if(a){var u=a.match(Cu);if(u){var l=0|parseInt(u[1],10),f=u[2];l!==0&&(Nu(f,l),Au(e,f,u[3]),e.getTag().insertRules(l,i)),i.length=0}else i.push(a)}}},Qi=function(e){for(var t=document.querySelectorAll(Ru),r=0,n=t.length;r<n;r++){var i=t[r];i&&i.getAttribute(Ge)!==as&&(Tu(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function Du(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var gs=function(e){var t=document.head,r=e||t,n=document.createElement("style"),i=function(a){var u=Array.from(a.querySelectorAll("style[".concat(Ge,"]")));return u[u.length-1]}(r),o=i!==void 0?i.nextSibling:null;n.setAttribute(Ge,as),n.setAttribute(cs,Fr);var s=Du();return s&&n.setAttribute("nonce",s),r.insertBefore(n,o),n},Iu=function(){function e(t){this.element=gs(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,i=0,o=n.length;i<o;i++){var s=n[i];if(s.ownerNode===r)return s}throw yt(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e}(),ju=function(){function e(t){this.element=gs(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var n=document.createTextNode(r);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),Vu=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),Xi=br,$u={isServer:!br,useCSSOMInjection:!lu},vs=function(){function e(t,r,n){t===void 0&&(t=lt),r===void 0&&(r={});var i=this;this.options=te(te({},$u),t),this.gs=r,this.names=new Map(n),this.server=!!t.isServer,!this.server&&br&&Xi&&(Xi=!1,Qi(this)),ei(this,function(){return function(o){for(var s=o.getTag(),a=s.length,u="",l=function(d){var h=function(v){return wr.get(v)}(d);if(h===void 0)return"continue";var p=o.names.get(h),y=s.getGroup(d);if(p===void 0||!p.size||y.length===0)return"continue";var E="".concat(Ge,".g").concat(d,'[id="').concat(h,'"]'),w="";p!==void 0&&p.forEach(function(v){v.length>0&&(w+="".concat(v,","))}),u+="".concat(y).concat(E,'{content:"').concat(w,'"}').concat(Jn)},f=0;f<a;f++)l(f);return u}(i)})}return e.registerId=function(t){return nr(t)},e.prototype.rehydrate=function(){!this.server&&br&&Qi(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(te(te({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(r){var n=r.useCSSOMInjection,i=r.target;return r.isServer?new Vu(i):n?new Iu(i):new ju(i)}(this.options),new xu(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(nr(t),this.names.has(t))this.names.get(t).add(r);else{var n=new Set;n.add(r),this.names.set(t,n)}},e.prototype.insertRules=function(t,r,n){this.registerName(t,r),this.getTag().insertRules(nr(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(nr(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Mu=/&/g,Fu=/^\s*\/\/.*$/gm;function bs(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(n){return"".concat(t," ").concat(n)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=bs(r.children,t)),r})}function zu(e){var t,r,n,i=lt,o=i.options,s=o===void 0?lt:o,a=i.plugins,u=a===void 0?zr:a,l=function(h,p,y){return y.startsWith(r)&&y.endsWith(r)&&y.replaceAll(r,"").length>0?".".concat(t):h},f=u.slice();f.push(function(h){h.type===jr&&h.value.includes("&")&&(h.props[0]=h.props[0].replace(Mu,r).replace(n,l))}),s.prefix&&f.push(cu),f.push(ou);var d=function(h,p,y,E){p===void 0&&(p=""),y===void 0&&(y=""),E===void 0&&(E="&"),t=E,r=p,n=new RegExp("\\".concat(r,"\\b"),"g");var w=h.replace(Fu,""),v=nu(y||p?"".concat(y," ").concat(p," { ").concat(w," }"):w);s.namespace&&(v=bs(v,s.namespace));var b=[];return vr(v,su(f.concat(au(function(m){return b.push(m)})))),b};return d.hash=u.length?u.reduce(function(h,p){return p.name||yt(15),Be(h,p.name)},us).toString():"",d}var Bu=new vs,kn=zu(),ws=N.createContext({shouldForwardProp:void 0,styleSheet:Bu,stylis:kn});ws.Consumer;N.createContext(void 0);function Ji(){return N.useContext(ws)}var xn=function(){function e(t,r){var n=this;this.inject=function(i,o){o===void 0&&(o=kn);var s=n.name+o.hash;i.hasNameForId(n.id,s)||i.insertRules(n.id,s,o(n.rules,s,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,ei(this,function(){throw yt(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=kn),this.name+t.hash},e}(),Lu=function(e){return e>="A"&&e<="Z"};function Zi(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(r===1&&n==="-"&&e[0]==="-")return e;Lu(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var _s=function(e){return e==null||e===!1||e===""},Es=function(e){var t,r,n=[];for(var i in e){var o=e[i];e.hasOwnProperty(i)&&!_s(o)&&(Array.isArray(o)&&o.isCss||ft(o)?n.push("".concat(Zi(i),":"),o,";"):dt(o)?n.push.apply(n,Ye(Ye(["".concat(i," {")],Es(o),!1),["}"],!1)):n.push("".concat(Zi(i),": ").concat((t=i,(r=o)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in uu||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function qe(e,t,r,n){if(_s(e))return[];if(Zn(e))return[".".concat(e.styledComponentId)];if(ft(e)){if(!ft(o=e)||o.prototype&&o.prototype.isReactComponent||!t)return[e];var i=e(t);return process.env.NODE_ENV==="production"||typeof i!="object"||Array.isArray(i)||i instanceof xn||dt(i)||i===null||console.error("".concat(ds(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),qe(i,t,r,n)}var o;return e instanceof xn?r?(e.inject(r,n),[e.getName(n)]):[e]:dt(e)?Es(e):Array.isArray(e)?Array.prototype.concat.apply(zr,e.map(function(s){return qe(s,t,r,n)})):[e.toString()]}function Uu(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(ft(r)&&!Zn(r))return!1}return!0}var qu=ls(Fr),Wu=function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(n===void 0||n.isStatic)&&Uu(t),this.componentId=r,this.baseHash=Be(qu,r),this.baseStyle=n,vs.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,n){var i=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))i=Le(i,this.staticRulesId);else{var o=Sn(qe(this.rules,t,r,n)),s=En(Be(this.baseHash,o)>>>0);if(!r.hasNameForId(this.componentId,s)){var a=n(o,".".concat(s),void 0,this.componentId);r.insertRules(this.componentId,s,a)}i=Le(i,s),this.staticRulesId=s}else{for(var u=Be(this.baseHash,n.hash),l="",f=0;f<this.rules.length;f++){var d=this.rules[f];if(typeof d=="string")l+=d,process.env.NODE_ENV!=="production"&&(u=Be(u,d));else if(d){var h=Sn(qe(d,t,r,n));u=Be(u,h+f),l+=h}}if(l){var p=En(u>>>0);r.hasNameForId(this.componentId,p)||r.insertRules(this.componentId,p,n(l,".".concat(p),void 0,this.componentId)),i=Le(i,p)}}return i},e}(),Ss=N.createContext(void 0);Ss.Consumer;var sn={},eo=new Set;function Hu(e,t,r){var n=Zn(e),i=e,o=!on(e),s=t.attrs,a=s===void 0?zr:s,u=t.componentId,l=u===void 0?function(S,x){var P=typeof S!="string"?"sc":Wi(S);sn[P]=(sn[P]||0)+1;var k="".concat(P,"-").concat(fs(Fr+P+sn[P]));return x?"".concat(x,"-").concat(k):k}(t.displayName,t.parentComponentId):u,f=t.displayName,d=f===void 0?function(S){return on(S)?"styled.".concat(S):"Styled(".concat(ds(S),")")}(e):f,h=t.displayName&&t.componentId?"".concat(Wi(t.displayName),"-").concat(t.componentId):t.componentId||l,p=n&&i.attrs?i.attrs.concat(a).filter(Boolean):a,y=t.shouldForwardProp;if(n&&i.shouldForwardProp){var E=i.shouldForwardProp;if(t.shouldForwardProp){var w=t.shouldForwardProp;y=function(S,x){return E(S,x)&&w(S,x)}}else y=E}var v=new Wu(r,h,n?i.componentStyle:void 0);function b(S,x){return function(P,k,j){var F=P.attrs,le=P.componentStyle,Y=P.defaultProps,fe=P.foldedComponentIds,W=P.styledComponentId,de=P.target,$e=N.useContext(Ss),Qt=Ji(),Xe=P.shouldForwardProp||Qt.shouldForwardProp;process.env.NODE_ENV!=="production"&&N.useDebugValue(W);var vt=du(k,$e,Y)||lt,oe=function(Ze,Se,Re){for(var he,pe=te(te({},Se),{className:void 0,theme:Re}),Ce=0;Ce<Ze.length;Ce+=1){var et=ft(he=Ze[Ce])?he(pe):he;for(var me in et)pe[me]=me==="className"?Le(pe[me],et[me]):me==="style"?te(te({},pe[me]),et[me]):et[me]}return Se.className&&(pe.className=Le(pe.className,Se.className)),pe}(F,k,vt),Pe=oe.as||de,Ne={};for(var Q in oe)oe[Q]===void 0||Q[0]==="$"||Q==="as"||Q==="theme"&&oe.theme===vt||(Q==="forwardedAs"?Ne.as=oe.forwardedAs:Xe&&!Xe(Q,Pe)||(Ne[Q]=oe[Q],Xe||process.env.NODE_ENV!=="development"||qc(Q)||eo.has(Q)||!_n.has(Pe)||(eo.add(Q),console.warn('styled-components: it looks like an unknown prop "'.concat(Q,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var Je=function(Ze,Se){var Re=Ji(),he=Ze.generateAndInjectStyles(Se,Re.styleSheet,Re.stylis);return process.env.NODE_ENV!=="production"&&N.useDebugValue(he),he}(le,oe);process.env.NODE_ENV!=="production"&&P.warnTooManyClasses&&P.warnTooManyClasses(Je);var bt=Le(fe,W);return Je&&(bt+=" "+Je),oe.className&&(bt+=" "+oe.className),Ne[on(Pe)&&!_n.has(Pe)?"class":"className"]=bt,j&&(Ne.ref=j),N.createElement(Pe,Ne)}(m,S,x)}b.displayName=d;var m=N.forwardRef(b);return m.attrs=p,m.componentStyle=v,m.displayName=d,m.shouldForwardProp=y,m.foldedComponentIds=n?Le(i.foldedComponentIds,i.styledComponentId):"",m.styledComponentId=h,m.target=n?i.target:e,Object.defineProperty(m,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(S){this._foldedDefaultProps=n?function(x){for(var P=[],k=1;k<arguments.length;k++)P[k-1]=arguments[k];for(var j=0,F=P;j<F.length;j++)On(x,F[j],!0);return x}({},i.defaultProps,S):S}}),process.env.NODE_ENV!=="production"&&(fu(d,h),m.warnTooManyClasses=function(S,x){var P={},k=!1;return function(j){if(!k&&(P[j]=!0,Object.keys(P).length>=200)){var F=x?' with the id of "'.concat(x,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(S).concat(F,`.
|
|
74
|
+
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Ou(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e[0],n=[],i=1,o=e.length;i<o;i+=1)n.push(e[i]);return n.forEach(function(s){r=r.replace(/%[a-z]/,s)}),r}function vt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(Ou.apply(void 0,Ge([xu[e]],t,!1)).trim())}var ku=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,n=0;n<t;n++)r+=this.groupSizes[n];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var n=this.groupSizes,i=n.length,o=i;t>=o;)if((o<<=1)<0)throw vt(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var s=i;s<o;s++)this.groupSizes[s]=0}for(var a=this.indexOfGroup(t+1),u=(s=0,r.length);s<u;s++)this.tag.insertRule(a,r[s])&&(this.groupSizes[t]++,a++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],n=this.indexOfGroup(t),i=n+r;this.groupSizes[t]=0;for(var o=n;o<i;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var n=this.groupSizes[t],i=this.indexOfGroup(t),o=i+n,s=i;s<o;s++)r+="".concat(this.tag.getRule(s)).concat(Jn);return r},e}(),Pu=1<<30,dr=new Map,wr=new Map,hr=1,nr=function(e){if(dr.has(e))return dr.get(e);for(;wr.has(hr);)hr++;var t=hr++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>Pu))throw vt(16,"".concat(t));return dr.set(e,t),wr.set(t,e),t},Nu=function(e,t){hr=t+1,dr.set(e,t),wr.set(t,e)},Cu="style[".concat(Ke,"][").concat(cs,'="').concat(zr,'"]'),Ru=new RegExp("^".concat(Ke,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Au=function(e,t,r){for(var n,i=r.split(","),o=0,s=i.length;o<s;o++)(n=i[o])&&e.registerName(t,n)},Tu=function(e,t){for(var r,n=((r=t.textContent)!==null&&r!==void 0?r:"").split(Jn),i=[],o=0,s=n.length;o<s;o++){var a=n[o].trim();if(a){var u=a.match(Ru);if(u){var l=0|parseInt(u[1],10),f=u[2];l!==0&&(Nu(f,l),Au(e,f,u[3]),e.getTag().insertRules(l,i)),i.length=0}else i.push(a)}}},Qi=function(e){for(var t=document.querySelectorAll(Cu),r=0,n=t.length;r<n;r++){var i=t[r];i&&i.getAttribute(Ke)!==as&&(Tu(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function Du(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var gs=function(e){var t=document.head,r=e||t,n=document.createElement("style"),i=function(a){var u=Array.from(a.querySelectorAll("style[".concat(Ke,"]")));return u[u.length-1]}(r),o=i!==void 0?i.nextSibling:null;n.setAttribute(Ke,as),n.setAttribute(cs,zr);var s=Du();return s&&n.setAttribute("nonce",s),r.insertBefore(n,o),n},Iu=function(){function e(t){this.element=gs(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,i=0,o=n.length;i<o;i++){var s=n[i];if(s.ownerNode===r)return s}throw vt(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e}(),ju=function(){function e(t){this.element=gs(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var n=document.createTextNode(r);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),Vu=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),Xi=br,Mu={isServer:!br,useCSSOMInjection:!lu},vs=function(){function e(t,r,n){t===void 0&&(t=dt),r===void 0&&(r={});var i=this;this.options=te(te({},Mu),t),this.gs=r,this.names=new Map(n),this.server=!!t.isServer,!this.server&&br&&Xi&&(Xi=!1,Qi(this)),ei(this,function(){return function(o){for(var s=o.getTag(),a=s.length,u="",l=function(d){var h=function(v){return wr.get(v)}(d);if(h===void 0)return"continue";var p=o.names.get(h),y=s.getGroup(d);if(p===void 0||!p.size||y.length===0)return"continue";var E="".concat(Ke,".g").concat(d,'[id="').concat(h,'"]'),w="";p!==void 0&&p.forEach(function(v){v.length>0&&(w+="".concat(v,","))}),u+="".concat(y).concat(E,'{content:"').concat(w,'"}').concat(Jn)},f=0;f<a;f++)l(f);return u}(i)})}return e.registerId=function(t){return nr(t)},e.prototype.rehydrate=function(){!this.server&&br&&Qi(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(te(te({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(r){var n=r.useCSSOMInjection,i=r.target;return r.isServer?new Vu(i):n?new Iu(i):new ju(i)}(this.options),new ku(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(nr(t),this.names.has(t))this.names.get(t).add(r);else{var n=new Set;n.add(r),this.names.set(t,n)}},e.prototype.insertRules=function(t,r,n){this.registerName(t,r),this.getTag().insertRules(nr(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(nr(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),$u=/&/g,zu=/^\s*\/\/.*$/gm;function bs(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(n){return"".concat(t," ").concat(n)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=bs(r.children,t)),r})}function Fu(e){var t,r,n,i=dt,o=i.options,s=o===void 0?dt:o,a=i.plugins,u=a===void 0?Fr:a,l=function(h,p,y){return y.startsWith(r)&&y.endsWith(r)&&y.replaceAll(r,"").length>0?".".concat(t):h},f=u.slice();f.push(function(h){h.type===jr&&h.value.includes("&")&&(h.props[0]=h.props[0].replace($u,r).replace(n,l))}),s.prefix&&f.push(cu),f.push(ou);var d=function(h,p,y,E){p===void 0&&(p=""),y===void 0&&(y=""),E===void 0&&(E="&"),t=E,r=p,n=new RegExp("\\".concat(r,"\\b"),"g");var w=h.replace(zu,""),v=nu(y||p?"".concat(y," ").concat(p," { ").concat(w," }"):w);s.namespace&&(v=bs(v,s.namespace));var b=[];return vr(v,su(f.concat(au(function(m){return b.push(m)})))),b};return d.hash=u.length?u.reduce(function(h,p){return p.name||vt(15),Be(h,p.name)},us).toString():"",d}var Lu=new vs,On=Fu(),ws=N.createContext({shouldForwardProp:void 0,styleSheet:Lu,stylis:On});ws.Consumer;N.createContext(void 0);function Ji(){return N.useContext(ws)}var kn=function(){function e(t,r){var n=this;this.inject=function(i,o){o===void 0&&(o=On);var s=n.name+o.hash;i.hasNameForId(n.id,s)||i.insertRules(n.id,s,o(n.rules,s,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,ei(this,function(){throw vt(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=On),this.name+t.hash},e}(),Bu=function(e){return e>="A"&&e<="Z"};function Zi(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(r===1&&n==="-"&&e[0]==="-")return e;Bu(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var _s=function(e){return e==null||e===!1||e===""},Es=function(e){var t,r,n=[];for(var i in e){var o=e[i];e.hasOwnProperty(i)&&!_s(o)&&(Array.isArray(o)&&o.isCss||ht(o)?n.push("".concat(Zi(i),":"),o,";"):pt(o)?n.push.apply(n,Ge(Ge(["".concat(i," {")],Es(o),!1),["}"],!1)):n.push("".concat(Zi(i),": ").concat((t=i,(r=o)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in uu||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function We(e,t,r,n){if(_s(e))return[];if(Zn(e))return[".".concat(e.styledComponentId)];if(ht(e)){if(!ht(o=e)||o.prototype&&o.prototype.isReactComponent||!t)return[e];var i=e(t);return process.env.NODE_ENV==="production"||typeof i!="object"||Array.isArray(i)||i instanceof kn||pt(i)||i===null||console.error("".concat(ds(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),We(i,t,r,n)}var o;return e instanceof kn?r?(e.inject(r,n),[e.getName(n)]):[e]:pt(e)?Es(e):Array.isArray(e)?Array.prototype.concat.apply(Fr,e.map(function(s){return We(s,t,r,n)})):[e.toString()]}function Uu(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(ht(r)&&!Zn(r))return!1}return!0}var qu=ls(zr),Wu=function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(n===void 0||n.isStatic)&&Uu(t),this.componentId=r,this.baseHash=Be(qu,r),this.baseStyle=n,vs.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,n){var i=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))i=Ue(i,this.staticRulesId);else{var o=Sn(We(this.rules,t,r,n)),s=En(Be(this.baseHash,o)>>>0);if(!r.hasNameForId(this.componentId,s)){var a=n(o,".".concat(s),void 0,this.componentId);r.insertRules(this.componentId,s,a)}i=Ue(i,s),this.staticRulesId=s}else{for(var u=Be(this.baseHash,n.hash),l="",f=0;f<this.rules.length;f++){var d=this.rules[f];if(typeof d=="string")l+=d,process.env.NODE_ENV!=="production"&&(u=Be(u,d));else if(d){var h=Sn(We(d,t,r,n));u=Be(u,h+f),l+=h}}if(l){var p=En(u>>>0);r.hasNameForId(this.componentId,p)||r.insertRules(this.componentId,p,n(l,".".concat(p),void 0,this.componentId)),i=Ue(i,p)}}return i},e}(),Ss=N.createContext(void 0);Ss.Consumer;var sn={},eo=new Set;function Hu(e,t,r){var n=Zn(e),i=e,o=!on(e),s=t.attrs,a=s===void 0?Fr:s,u=t.componentId,l=u===void 0?function(S,k){var P=typeof S!="string"?"sc":Wi(S);sn[P]=(sn[P]||0)+1;var O="".concat(P,"-").concat(fs(zr+P+sn[P]));return k?"".concat(k,"-").concat(O):O}(t.displayName,t.parentComponentId):u,f=t.displayName,d=f===void 0?function(S){return on(S)?"styled.".concat(S):"Styled(".concat(ds(S),")")}(e):f,h=t.displayName&&t.componentId?"".concat(Wi(t.displayName),"-").concat(t.componentId):t.componentId||l,p=n&&i.attrs?i.attrs.concat(a).filter(Boolean):a,y=t.shouldForwardProp;if(n&&i.shouldForwardProp){var E=i.shouldForwardProp;if(t.shouldForwardProp){var w=t.shouldForwardProp;y=function(S,k){return E(S,k)&&w(S,k)}}else y=E}var v=new Wu(r,h,n?i.componentStyle:void 0);function b(S,k){return function(P,O,j){var z=P.attrs,fe=P.componentStyle,G=P.defaultProps,de=P.foldedComponentIds,H=P.styledComponentId,he=P.target,$e=N.useContext(Ss),Qt=Ji(),Ze=P.shouldForwardProp||Qt.shouldForwardProp;process.env.NODE_ENV!=="production"&&N.useDebugValue(H);var bt=du(O,$e,G)||dt,se=function(tt,xe,Re){for(var pe,me=te(te({},xe),{className:void 0,theme:Re}),Ae=0;Ae<tt.length;Ae+=1){var rt=ht(pe=tt[Ae])?pe(me):pe;for(var ye in rt)me[ye]=ye==="className"?Ue(me[ye],rt[ye]):ye==="style"?te(te({},me[ye]),rt[ye]):rt[ye]}return xe.className&&(me.className=Ue(me.className,xe.className)),me}(z,O,bt),Ne=se.as||he,Ce={};for(var Q in se)se[Q]===void 0||Q[0]==="$"||Q==="as"||Q==="theme"&&se.theme===bt||(Q==="forwardedAs"?Ce.as=se.forwardedAs:Ze&&!Ze(Q,Ne)||(Ce[Q]=se[Q],Ze||process.env.NODE_ENV!=="development"||qc(Q)||eo.has(Q)||!_n.has(Ne)||(eo.add(Q),console.warn('styled-components: it looks like an unknown prop "'.concat(Q,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var et=function(tt,xe){var Re=Ji(),pe=tt.generateAndInjectStyles(xe,Re.styleSheet,Re.stylis);return process.env.NODE_ENV!=="production"&&N.useDebugValue(pe),pe}(fe,se);process.env.NODE_ENV!=="production"&&P.warnTooManyClasses&&P.warnTooManyClasses(et);var wt=Ue(de,H);return et&&(wt+=" "+et),se.className&&(wt+=" "+se.className),Ce[on(Ne)&&!_n.has(Ne)?"class":"className"]=wt,j&&(Ce.ref=j),N.createElement(Ne,Ce)}(m,S,k)}b.displayName=d;var m=N.forwardRef(b);return m.attrs=p,m.componentStyle=v,m.displayName=d,m.shouldForwardProp=y,m.foldedComponentIds=n?Ue(i.foldedComponentIds,i.styledComponentId):"",m.styledComponentId=h,m.target=n?i.target:e,Object.defineProperty(m,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(S){this._foldedDefaultProps=n?function(k){for(var P=[],O=1;O<arguments.length;O++)P[O-1]=arguments[O];for(var j=0,z=P;j<z.length;j++)xn(k,z[j],!0);return k}({},i.defaultProps,S):S}}),process.env.NODE_ENV!=="production"&&(fu(d,h),m.warnTooManyClasses=function(S,k){var P={},O=!1;return function(j){if(!O&&(P[j]=!0,Object.keys(P).length>=200)){var z=k?' with the id of "'.concat(k,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(S).concat(z,`.
|
|
75
75
|
`)+`Consider using the attrs method, together with a style object for frequently changed styles.
|
|
76
76
|
Example:
|
|
77
77
|
const Component = styled.div.attrs(props => ({
|
|
@@ -80,9 +80,9 @@ Example:
|
|
|
80
80
|
},
|
|
81
81
|
}))\`width: 100%;\`
|
|
82
82
|
|
|
83
|
-
<Component />`),
|
|
83
|
+
<Component />`),O=!0,P={}}}}(d,h)),ei(m,function(){return".".concat(m.styledComponentId)}),o&&ys(m,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),m}function to(e,t){for(var r=[e[0]],n=0,i=t.length;n<i;n+=1)r.push(t[n],e[n+1]);return r}var ro=function(e){return Object.assign(e,{isCss:!0})};function xs(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(ht(e)||pt(e))return ro(We(to(Fr,Ge([e],t,!0))));var n=e;return t.length===0&&n.length===1&&typeof n[0]=="string"?We(n):ro(We(to(n,t)))}function Pn(e,t,r){if(r===void 0&&(r=dt),!t)throw vt(1,t);var n=function(i){for(var o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];return e(t,r,xs.apply(void 0,Ge([i],o,!1)))};return n.attrs=function(i){return Pn(e,t,te(te({},r),{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},n.withConfig=function(i){return Pn(e,t,te(te({},r),i))},n}var Os=function(e){return Pn(Hu,e)},re=Os;_n.forEach(function(e){re[e]=Os(e)});function Yu(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var n=Sn(xs.apply(void 0,Ge([e],t,!1))),i=fs(n);return new kn(i,n)}process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
84
84
|
Perhaps you're looking to import 'styled-components/native'?
|
|
85
|
-
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var ir="__sc-".concat(
|
|
85
|
+
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var ir="__sc-".concat(Ke,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[ir]||(window[ir]=0),window[ir]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
86
86
|
|
|
87
87
|
See https://s-c.sh/2BAXzed for more info.`),window[ir]+=1);const Gu=Yu`
|
|
88
88
|
0% {
|
|
@@ -94,7 +94,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ir]+=1);const Gu=Yu`
|
|
|
94
94
|
100% {
|
|
95
95
|
transform: scale(1);
|
|
96
96
|
}
|
|
97
|
-
`,Ku=
|
|
97
|
+
`,Ku=re.div`
|
|
98
98
|
display: inline-block;
|
|
99
99
|
position: relative;
|
|
100
100
|
overflow: hidden;
|
|
@@ -105,7 +105,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[ir]+=1);const Gu=Yu`
|
|
|
105
105
|
&:active {
|
|
106
106
|
animation: ${Gu} 0.2s;
|
|
107
107
|
}
|
|
108
|
-
`,Qu=
|
|
108
|
+
`,Qu=re.button`
|
|
109
109
|
display: flex;
|
|
110
110
|
align-items: center;
|
|
111
111
|
position: relative;
|
|
@@ -124,13 +124,13 @@ See https://s-c.sh/2BAXzed for more info.`),window[ir]+=1);const Gu=Yu`
|
|
|
124
124
|
background-color: #ffb652;
|
|
125
125
|
color: black;
|
|
126
126
|
}
|
|
127
|
-
`,Xu=
|
|
127
|
+
`,Xu=re.div`
|
|
128
128
|
margin-right: 1.25rem;
|
|
129
129
|
|
|
130
130
|
@media (min-width: 640px) {
|
|
131
131
|
margin-right: 0.25rem;
|
|
132
132
|
}
|
|
133
|
-
`;var
|
|
133
|
+
`;var ks={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},no=N.createContext&&N.createContext(ks),Ju=["attr","size","title"];function Zu(e,t){if(e==null)return{};var r=el(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function el(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function _r(){return _r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_r.apply(this,arguments)}function io(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Er(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?io(Object(r),!0).forEach(function(n){tl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):io(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tl(e,t,r){return t=rl(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rl(e){var t=nl(e,"string");return typeof t=="symbol"?t:t+""}function nl(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ps(e){return e&&e.map((t,r)=>N.createElement(t.tag,Er({key:r},t.attr),Ps(t.child)))}function Je(e){return t=>N.createElement(il,_r({attr:Er({},e.attr)},t),Ps(e.child))}function il(e){var t=r=>{var{attr:n,size:i,title:o}=e,s=Zu(e,Ju),a=i||r.size||"1em",u;return r.className&&(u=r.className),e.className&&(u=(u?u+" ":"")+e.className),N.createElement("svg",_r({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,s,{className:u,style:Er(Er({color:e.color||r.color},r.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),o&&N.createElement("title",null,o),e.children)};return no!==void 0?N.createElement(no.Consumer,null,r=>t(r)):t(ks)}function ol(e){return Je({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function sl(e){return Je({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"22",y1:"2",x2:"11",y2:"13"},child:[]},{tag:"polygon",attr:{points:"22 2 15 22 11 13 2 9 22 2"},child:[]}]})(e)}const al=({iconComponent:e,buttonText:t,buttonType:r="primary",onClick:n})=>{let i;e==="plus"?i=B.jsx(ol,{}):e==="send"&&(i=B.jsx(sl,{}));const o=()=>{n&&n()};return B.jsx(Ku,{onClick:o,children:B.jsxs(Qu,{className:r,children:[B.jsx(Xu,{children:i}),B.jsx(Zo,{textStyles:{minWidth:"3rem"},content:t,animate:!0})]})})},cl=re(Jo.div)`
|
|
134
134
|
width: 2.5rem;
|
|
135
135
|
height: 2.5rem;
|
|
136
136
|
border-radius: 50%;
|
|
@@ -139,16 +139,61 @@ See https://s-c.sh/2BAXzed for more info.`),window[ir]+=1);const Gu=Yu`
|
|
|
139
139
|
align-items: center;
|
|
140
140
|
justify-content: center;
|
|
141
141
|
cursor: pointer;
|
|
142
|
-
`,ul=
|
|
142
|
+
`,ul=re.span`
|
|
143
143
|
display: flex;
|
|
144
144
|
color: black;
|
|
145
145
|
font-size: 1.125rem;
|
|
146
|
-
`;function ll(e){return Gt({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6m2-3a2 2 0 1 1-4 0 2 2 0 0 1 4 0m4 8c0 1-1 1-1 1H3s-1 0-1-1 1-4 6-4 6 3 6 4m-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10s-3.516.68-4.168 1.332c-.678.678-.83 1.418-.832 1.664z"},child:[]}]})(e)}function fl(e){return Gt({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M0 .5A.5.5 0 0 1 .5 0h3a.5.5 0 0 1 0 1H1v2.5a.5.5 0 0 1-1 0zm12 0a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-1 0V1h-2.5a.5.5 0 0 1-.5-.5M.5 12a.5.5 0 0 1 .5.5V15h2.5a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 .5-.5m15 0a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1 0-1H15v-2.5a.5.5 0 0 1 .5-.5M4 4h1v1H4z"},child:[]},{tag:"path",attr:{d:"M7 2H2v5h5zM3 3h3v3H3zm2 8H4v1h1z"},child:[]},{tag:"path",attr:{d:"M7 9H2v5h5zm-4 1h3v3H3zm8-6h1v1h-1z"},child:[]},{tag:"path",attr:{d:"M9 2h5v5H9zm1 1v3h3V3zM8 8v2h1v1H8v1h2v-2h1v2h1v-1h2v-1h-3V8zm2 2H9V9h1zm4 2h-1v1h-2v1h3zm-4 2v-1H8v1z"},child:[]},{tag:"path",attr:{d:"M12 9h2V8h-2z"},child:[]}]})(e)}const dl=({iconComponent:e,onClick:t})=>{const r=Qo({from:{opacity:0,transform:"scale(0.5)"},to:{opacity:1,transform:"scale(1)"}}),n=()=>{t&&t()};let i;return e==="person"?i=K.jsx(ll,{}):e==="qr"&&(i=K.jsx(fl,{})),K.jsx(cl,{style:r,onClick:n,children:K.jsx(ul,{children:i})})};function hl(e){return Gt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M328 112 184 256l144 144"},child:[]}]})(e)}const pl=({size:e,onClick:t})=>{const r=()=>{t&&t()};return K.jsx(hl,{size:e??"1.5rem",onClick:r})};function G(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var ml=typeof Symbol=="function"&&Symbol.observable||"@@observable",oo=ml,an=()=>Math.random().toString(36).substring(7).split("").join("."),yl={INIT:`@@redux/INIT${an()}`,REPLACE:`@@redux/REPLACE${an()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${an()}`},We=yl;function Kt(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function gl(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(wl(e))return"date";if(bl(e))return"error";const r=vl(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function vl(e){return typeof e.constructor=="function"?e.constructor.name:null}function bl(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function wl(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function De(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=gl(e)),t}function Ns(e,t,r){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?G(2):`Expected the root reducer to be a function. Instead, received: '${De(e)}'`);if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?G(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?G(1):`Expected the enhancer to be a function. Instead, received: '${De(r)}'`);return r(Ns)(e,t)}let n=e,i=t,o=new Map,s=o,a=0,u=!1;function l(){s===o&&(s=new Map,o.forEach((w,v)=>{s.set(v,w)}))}function f(){if(u)throw new Error(process.env.NODE_ENV==="production"?G(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function d(w){if(typeof w!="function")throw new Error(process.env.NODE_ENV==="production"?G(4):`Expected the listener to be a function. Instead, received: '${De(w)}'`);if(u)throw new Error(process.env.NODE_ENV==="production"?G(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let v=!0;l();const b=a++;return s.set(b,w),function(){if(v){if(u)throw new Error(process.env.NODE_ENV==="production"?G(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");v=!1,l(),s.delete(b),o=null}}}function h(w){if(!Kt(w))throw new Error(process.env.NODE_ENV==="production"?G(7):`Actions must be plain objects. Instead, the actual type was: '${De(w)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof w.type>"u")throw new Error(process.env.NODE_ENV==="production"?G(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof w.type!="string")throw new Error(process.env.NODE_ENV==="production"?G(17):`Action "type" property must be a string. Instead, the actual type was: '${De(w.type)}'. Value was: '${w.type}' (stringified)`);if(u)throw new Error(process.env.NODE_ENV==="production"?G(9):"Reducers may not dispatch actions.");try{u=!0,i=n(i,w)}finally{u=!1}return(o=s).forEach(b=>{b()}),w}function p(w){if(typeof w!="function")throw new Error(process.env.NODE_ENV==="production"?G(10):`Expected the nextReducer to be a function. Instead, received: '${De(w)}`);n=w,h({type:We.REPLACE})}function y(){const w=d;return{subscribe(v){if(typeof v!="object"||v===null)throw new Error(process.env.NODE_ENV==="production"?G(11):`Expected the observer to be an object. Instead, received: '${De(v)}'`);function b(){const S=v;S.next&&S.next(f())}return b(),{unsubscribe:w(b)}},[oo](){return this}}}return h({type:We.INIT}),{dispatch:h,subscribe:d,getState:f,replaceReducer:p,[oo]:y}}function so(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function _l(e,t,r,n){const i=Object.keys(t),o=r&&r.type===We.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Kt(e))return`The ${o} has unexpected type of "${De(e)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const s=Object.keys(e).filter(a=>!t.hasOwnProperty(a)&&!n[a]);if(s.forEach(a=>{n[a]=!0}),!(r&&r.type===We.REPLACE)&&s.length>0)return`Unexpected ${s.length>1?"keys":"key"} "${s.join('", "')}" found in ${o}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function El(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:We.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?G(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:We.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?G(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${We.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function Rs(e){const t=Object.keys(e),r={};for(let s=0;s<t.length;s++){const a=t[s];process.env.NODE_ENV!=="production"&&typeof e[a]>"u"&&so(`No reducer provided for key "${a}"`),typeof e[a]=="function"&&(r[a]=e[a])}const n=Object.keys(r);let i;process.env.NODE_ENV!=="production"&&(i={});let o;try{El(r)}catch(s){o=s}return function(a={},u){if(o)throw o;if(process.env.NODE_ENV!=="production"){const d=_l(a,r,u,i);d&&so(d)}let l=!1;const f={};for(let d=0;d<n.length;d++){const h=n[d],p=r[h],y=a[h],E=p(y,u);if(typeof E>"u"){const w=u&&u.type;throw new Error(process.env.NODE_ENV==="production"?G(14):`When called with an action of type ${w?`"${String(w)}"`:"(unknown type)"}, the slice reducer for key "${h}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}f[h]=E,l=l||E!==y}return l=l||n.length!==Object.keys(a).length,l?f:a}}function Sr(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function Sl(...e){return t=>(r,n)=>{const i=t(r,n);let o=()=>{throw new Error(process.env.NODE_ENV==="production"?G(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const s={getState:i.getState,dispatch:(u,...l)=>o(u,...l)},a=e.map(u=>u(s));return o=Sr(...a)(i.dispatch),{...i,dispatch:o}}}function Cs(e){return Kt(e)&&"type"in e&&typeof e.type=="string"}var As=Symbol.for("immer-nothing"),ao=Symbol.for("immer-draftable"),ne=Symbol.for("immer-state"),Ol=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function ee(e,...t){if(process.env.NODE_ENV!=="production"){const r=Ol[e],n=typeof r=="function"?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ht=Object.getPrototypeOf;function Ke(e){return!!e&&!!e[ne]}function xe(e){var t;return e?Ts(e)||Array.isArray(e)||!!e[ao]||!!((t=e.constructor)!=null&&t[ao])||Lr(e)||Ur(e):!1}var kl=Object.prototype.constructor.toString();function Ts(e){if(!e||typeof e!="object")return!1;const t=ht(e);if(t===null)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===kl}function Or(e,t){Br(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function Br(e){const t=e[ne];return t?t.type_:Array.isArray(e)?1:Lr(e)?2:Ur(e)?3:0}function Nn(e,t){return Br(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ds(e,t,r){const n=Br(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function xl(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Lr(e){return e instanceof Map}function Ur(e){return e instanceof Set}function Fe(e){return e.copy_||e.base_}function Rn(e,t){if(Lr(e))return new Map(e);if(Ur(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=Ts(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[ne];let i=Reflect.ownKeys(n);for(let o=0;o<i.length;o++){const s=i[o],a=n[s];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(n[s]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[s]})}return Object.create(ht(e),n)}else{const n=ht(e);if(n!==null&&r)return{...e};const i=Object.create(n);return Object.assign(i,e)}}function ti(e,t=!1){return qr(e)||Ke(e)||!xe(e)||(Br(e)>1&&(e.set=e.add=e.clear=e.delete=Pl),Object.freeze(e),t&&Object.entries(e).forEach(([r,n])=>ti(n,!0))),e}function Pl(){ee(2)}function qr(e){return Object.isFrozen(e)}var Nl={};function Qe(e){const t=Nl[e];return t||ee(0,e),t}var Ut;function Is(){return Ut}function Rl(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function co(e,t){t&&(Qe("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Cn(e){An(e),e.drafts_.forEach(Cl),e.drafts_=null}function An(e){e===Ut&&(Ut=e.parent_)}function uo(e){return Ut=Rl(Ut,e)}function Cl(e){const t=e[ne];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function lo(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[ne].modified_&&(Cn(t),ee(4)),xe(e)&&(e=kr(t,e),t.parent_||xr(t,e)),t.patches_&&Qe("Patches").generateReplacementPatches_(r[ne].base_,e,t.patches_,t.inversePatches_)):e=kr(t,r,[]),Cn(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==As?e:void 0}function kr(e,t,r){if(qr(t))return t;const n=t[ne];if(!n)return Or(t,(i,o)=>fo(e,n,t,i,o,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return xr(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const i=n.copy_;let o=i,s=!1;n.type_===3&&(o=new Set(i),i.clear(),s=!0),Or(o,(a,u)=>fo(e,n,i,a,u,r,s)),xr(e,i,!1),r&&e.patches_&&Qe("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function fo(e,t,r,n,i,o,s){if(process.env.NODE_ENV!=="production"&&i===r&&ee(5),Ke(i)){const a=o&&t&&t.type_!==3&&!Nn(t.assigned_,n)?o.concat(n):void 0,u=kr(e,i,a);if(Ds(r,n,u),Ke(u))e.canAutoFreeze_=!1;else return}else s&&r.add(i);if(xe(i)&&!qr(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;kr(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&Object.prototype.propertyIsEnumerable.call(r,n)&&xr(e,i)}}function xr(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&ti(t,r)}function Al(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:Is(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,o=ri;r&&(i=[n],o=qt);const{revoke:s,proxy:a}=Proxy.revocable(i,o);return n.draft_=a,n.revoke_=s,a}var ri={get(e,t){if(t===ne)return e;const r=Fe(e);if(!Nn(r,t))return Tl(e,r,t);const n=r[t];return e.finalized_||!xe(n)?n:n===cn(e.base_,t)?(un(e),e.copy_[t]=Dn(n,e)):n},has(e,t){return t in Fe(e)},ownKeys(e){return Reflect.ownKeys(Fe(e))},set(e,t,r){const n=js(Fe(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=cn(Fe(e),t),o=i==null?void 0:i[ne];if(o&&o.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(xl(r,i)&&(r!==void 0||Nn(e.base_,t)))return!0;un(e),Tn(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return cn(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,un(e),Tn(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Fe(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){ee(11)},getPrototypeOf(e){return ht(e.base_)},setPrototypeOf(){ee(12)}},qt={};Or(ri,(e,t)=>{qt[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});qt.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&ee(13),qt.set.call(this,e,t,void 0)};qt.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&ee(14),ri.set.call(this,e[0],t,r,e[0])};function cn(e,t){const r=e[ne];return(r?Fe(r):e)[t]}function Tl(e,t,r){var i;const n=js(t,r);return n?"value"in n?n.value:(i=n.get)==null?void 0:i.call(e.draft_):void 0}function js(e,t){if(!(t in e))return;let r=ht(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=ht(r)}}function Tn(e){e.modified_||(e.modified_=!0,e.parent_&&Tn(e.parent_))}function un(e){e.copy_||(e.copy_=Rn(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Dl=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const o=r;r=t;const s=this;return function(u=o,...l){return s.produce(u,f=>r.call(this,f,...l))}}typeof r!="function"&&ee(6),n!==void 0&&typeof n!="function"&&ee(7);let i;if(xe(t)){const o=uo(this),s=Dn(t,void 0);let a=!0;try{i=r(s),a=!1}finally{a?Cn(o):An(o)}return co(o,n),lo(i,o)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===As&&(i=void 0),this.autoFreeze_&&ti(i,!0),n){const o=[],s=[];Qe("Patches").generateReplacementPatches_(t,i,o,s),n(o,s)}return i}else ee(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(s,...a)=>this.produceWithPatches(s,u=>t(u,...a));let n,i;return[this.produce(t,r,(s,a)=>{n=s,i=a}),n,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){xe(e)||ee(8),Ke(e)&&(e=Il(e));const t=uo(this),r=Dn(e,void 0);return r[ne].isManual_=!0,An(t),r}finishDraft(e,t){const r=e&&e[ne];(!r||!r.isManual_)&&ee(9);const{scope_:n}=r;return co(n,t),lo(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));const n=Qe("Patches").applyPatches_;return Ke(e)?n(e,t):this.produce(e,i=>n(i,t))}};function Dn(e,t){const r=Lr(e)?Qe("MapSet").proxyMap_(e,t):Ur(e)?Qe("MapSet").proxySet_(e,t):Al(e,t);return(t?t.scope_:Is()).drafts_.push(r),r}function Il(e){return Ke(e)||ee(10,e),Vs(e)}function Vs(e){if(!xe(e)||qr(e))return e;const t=e[ne];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Rn(e,t.scope_.immer_.useStrictShallowCopy_)}else r=Rn(e,!0);return Or(r,(n,i)=>{Ds(r,n,Vs(i))}),t&&(t.finalized_=!1),r}var ie=new Dl,$s=ie.produce;ie.produceWithPatches.bind(ie);ie.setAutoFreeze.bind(ie);ie.setUseStrictShallowCopy.bind(ie);ie.applyPatches.bind(ie);ie.createDraft.bind(ie);ie.finishDraft.bind(ie);function Ms(e){return({dispatch:r,getState:n})=>i=>o=>typeof o=="function"?o(r,n,e):i(o)}var jl=Ms(),Vl=Ms,$l=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Sr:Sr.apply(null,arguments)},Ml=e=>e&&typeof e.match=="function";function ho(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(process.env.NODE_ENV==="production"?B(0):"prepareAction did not return an object");return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>Cs(n)&&n.type===e,r}function Fl(e){return typeof e=="function"&&"type"in e&&Ml(e)}function zl(e){const t=e?`${e}`.split("/"):[],r=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched.
|
|
147
|
-
|
|
146
|
+
`;function ll(e){return Je({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6m2-3a2 2 0 1 1-4 0 2 2 0 0 1 4 0m4 8c0 1-1 1-1 1H3s-1 0-1-1 1-4 6-4 6 3 6 4m-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10s-3.516.68-4.168 1.332c-.678.678-.83 1.418-.832 1.664z"},child:[]}]})(e)}function fl(e){return Je({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M0 .5A.5.5 0 0 1 .5 0h3a.5.5 0 0 1 0 1H1v2.5a.5.5 0 0 1-1 0zm12 0a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-1 0V1h-2.5a.5.5 0 0 1-.5-.5M.5 12a.5.5 0 0 1 .5.5V15h2.5a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 .5-.5m15 0a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1 0-1H15v-2.5a.5.5 0 0 1 .5-.5M4 4h1v1H4z"},child:[]},{tag:"path",attr:{d:"M7 2H2v5h5zM3 3h3v3H3zm2 8H4v1h1z"},child:[]},{tag:"path",attr:{d:"M7 9H2v5h5zm-4 1h3v3H3zm8-6h1v1h-1z"},child:[]},{tag:"path",attr:{d:"M9 2h5v5H9zm1 1v3h3V3zM8 8v2h1v1H8v1h2v-2h1v2h1v-1h2v-1h-3V8zm2 2H9V9h1zm4 2h-1v1h-2v1h3zm-4 2v-1H8v1z"},child:[]},{tag:"path",attr:{d:"M12 9h2V8h-2z"},child:[]}]})(e)}const dl=({iconComponent:e,onClick:t})=>{const r=Qo({from:{opacity:0,transform:"scale(0.5)"},to:{opacity:1,transform:"scale(1)"}}),n=()=>{t&&t()};let i;return e==="person"?i=B.jsx(ll,{}):e==="qr"&&(i=B.jsx(fl,{})),B.jsx(cl,{style:r,onClick:n,children:B.jsx(ul,{children:i})})};function hl(e){return Je({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M328 112 184 256l144 144"},child:[]}]})(e)}const pl=({size:e,onClick:t})=>{const r=()=>{t&&t()};return B.jsx(hl,{size:e??"1.5rem",onClick:r})};re.div`
|
|
147
|
+
position: absolute;
|
|
148
|
+
left: 0;
|
|
149
|
+
right: 0;
|
|
150
|
+
display: flex;
|
|
151
|
+
flex-direction: column;
|
|
152
|
+
z-index: 1;
|
|
153
|
+
`;re.div`
|
|
154
|
+
display: flex;
|
|
155
|
+
flex-direction: column;
|
|
156
|
+
padding: 1.5rem var(--app-standard-padding);
|
|
157
|
+
color: black;
|
|
158
|
+
gap: 2rem;
|
|
159
|
+
justify-self: center;
|
|
160
|
+
`;re.div`
|
|
161
|
+
display: flex;
|
|
162
|
+
flex-direction: column;
|
|
163
|
+
gap: 1.5rem;
|
|
164
|
+
`;const ml=re.ul`
|
|
165
|
+
display: flex;
|
|
166
|
+
flex-direction: column;
|
|
167
|
+
justify-content: center;
|
|
168
|
+
padding-inline-start: unset;
|
|
169
|
+
`,yl=re.li`
|
|
170
|
+
position: relative;
|
|
171
|
+
list-style: none;
|
|
172
|
+
|
|
173
|
+
&::after {
|
|
174
|
+
content: '';
|
|
175
|
+
position: absolute;
|
|
176
|
+
left: 0;
|
|
177
|
+
width: 100%;
|
|
178
|
+
height: 1px;
|
|
179
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
180
|
+
}
|
|
181
|
+
`,gl=re.div`
|
|
182
|
+
display: flex;
|
|
183
|
+
flex-direction: row;
|
|
184
|
+
gap: 2rem;
|
|
185
|
+
`,vl=re.div`
|
|
186
|
+
display: flex;
|
|
187
|
+
flex-direction: column;
|
|
188
|
+
justify-content: center;
|
|
189
|
+
`,bl=re.p`
|
|
190
|
+
font-size: 1.2rem;
|
|
191
|
+
`;function wl(e){return Je({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m12.87 15.07-2.54-2.51.03-.03A17.52 17.52 0 0 0 14.07 6H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7 1.62-4.33L19.12 17h-3.24z"},child:[]}]})(e)}function _l(e){return Je({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"m6.76 4.84-1.8-1.79-1.41 1.41 1.79 1.79zM1 10.5h3v2H1zM11 .55h2V3.5h-2zm8.04 2.495 1.408 1.407-1.79 1.79-1.407-1.408zm-1.8 15.115 1.79 1.8 1.41-1.41-1.8-1.79zM20 10.5h3v2h-3zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm0 10c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm-1 4h2v2.95h-2zm-7.45-.96 1.41 1.41 1.79-1.8-1.41-1.41z"},child:[]}]})(e)}const El={translate:wl,sunny:_l,character:()=>B.jsx("p",{style:{fontSize:"1rem",fontWeight:500},children:"字"})},Sl=({icon:e,text:t,onClick:r,styles:n})=>{const i=El[e];return B.jsx(yl,{onClick:r,style:n,children:B.jsxs(gl,{children:[B.jsxs(vl,{children:[B.jsx(i,{size:"1.2rem"})," "]}),B.jsx(bl,{children:t})]})})};function K(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var xl=typeof Symbol=="function"&&Symbol.observable||"@@observable",oo=xl,an=()=>Math.random().toString(36).substring(7).split("").join("."),Ol={INIT:`@@redux/INIT${an()}`,REPLACE:`@@redux/REPLACE${an()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${an()}`},He=Ol;function Kt(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function kl(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(Cl(e))return"date";if(Nl(e))return"error";const r=Pl(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function Pl(e){return typeof e.constructor=="function"?e.constructor.name:null}function Nl(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function Cl(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Ie(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=kl(e)),t}function Ns(e,t,r){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?K(2):`Expected the root reducer to be a function. Instead, received: '${Ie(e)}'`);if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?K(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?K(1):`Expected the enhancer to be a function. Instead, received: '${Ie(r)}'`);return r(Ns)(e,t)}let n=e,i=t,o=new Map,s=o,a=0,u=!1;function l(){s===o&&(s=new Map,o.forEach((w,v)=>{s.set(v,w)}))}function f(){if(u)throw new Error(process.env.NODE_ENV==="production"?K(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function d(w){if(typeof w!="function")throw new Error(process.env.NODE_ENV==="production"?K(4):`Expected the listener to be a function. Instead, received: '${Ie(w)}'`);if(u)throw new Error(process.env.NODE_ENV==="production"?K(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let v=!0;l();const b=a++;return s.set(b,w),function(){if(v){if(u)throw new Error(process.env.NODE_ENV==="production"?K(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");v=!1,l(),s.delete(b),o=null}}}function h(w){if(!Kt(w))throw new Error(process.env.NODE_ENV==="production"?K(7):`Actions must be plain objects. Instead, the actual type was: '${Ie(w)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof w.type>"u")throw new Error(process.env.NODE_ENV==="production"?K(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof w.type!="string")throw new Error(process.env.NODE_ENV==="production"?K(17):`Action "type" property must be a string. Instead, the actual type was: '${Ie(w.type)}'. Value was: '${w.type}' (stringified)`);if(u)throw new Error(process.env.NODE_ENV==="production"?K(9):"Reducers may not dispatch actions.");try{u=!0,i=n(i,w)}finally{u=!1}return(o=s).forEach(b=>{b()}),w}function p(w){if(typeof w!="function")throw new Error(process.env.NODE_ENV==="production"?K(10):`Expected the nextReducer to be a function. Instead, received: '${Ie(w)}`);n=w,h({type:He.REPLACE})}function y(){const w=d;return{subscribe(v){if(typeof v!="object"||v===null)throw new Error(process.env.NODE_ENV==="production"?K(11):`Expected the observer to be an object. Instead, received: '${Ie(v)}'`);function b(){const S=v;S.next&&S.next(f())}return b(),{unsubscribe:w(b)}},[oo](){return this}}}return h({type:He.INIT}),{dispatch:h,subscribe:d,getState:f,replaceReducer:p,[oo]:y}}function so(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function Rl(e,t,r,n){const i=Object.keys(t),o=r&&r.type===He.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Kt(e))return`The ${o} has unexpected type of "${Ie(e)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const s=Object.keys(e).filter(a=>!t.hasOwnProperty(a)&&!n[a]);if(s.forEach(a=>{n[a]=!0}),!(r&&r.type===He.REPLACE)&&s.length>0)return`Unexpected ${s.length>1?"keys":"key"} "${s.join('", "')}" found in ${o}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function Al(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:He.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?K(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:He.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?K(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${He.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function Cs(e){const t=Object.keys(e),r={};for(let s=0;s<t.length;s++){const a=t[s];process.env.NODE_ENV!=="production"&&typeof e[a]>"u"&&so(`No reducer provided for key "${a}"`),typeof e[a]=="function"&&(r[a]=e[a])}const n=Object.keys(r);let i;process.env.NODE_ENV!=="production"&&(i={});let o;try{Al(r)}catch(s){o=s}return function(a={},u){if(o)throw o;if(process.env.NODE_ENV!=="production"){const d=Rl(a,r,u,i);d&&so(d)}let l=!1;const f={};for(let d=0;d<n.length;d++){const h=n[d],p=r[h],y=a[h],E=p(y,u);if(typeof E>"u"){const w=u&&u.type;throw new Error(process.env.NODE_ENV==="production"?K(14):`When called with an action of type ${w?`"${String(w)}"`:"(unknown type)"}, the slice reducer for key "${h}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}f[h]=E,l=l||E!==y}return l=l||n.length!==Object.keys(a).length,l?f:a}}function Sr(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function Tl(...e){return t=>(r,n)=>{const i=t(r,n);let o=()=>{throw new Error(process.env.NODE_ENV==="production"?K(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const s={getState:i.getState,dispatch:(u,...l)=>o(u,...l)},a=e.map(u=>u(s));return o=Sr(...a)(i.dispatch),{...i,dispatch:o}}}function Rs(e){return Kt(e)&&"type"in e&&typeof e.type=="string"}var As=Symbol.for("immer-nothing"),ao=Symbol.for("immer-draftable"),ie=Symbol.for("immer-state"),Dl=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function ee(e,...t){if(process.env.NODE_ENV!=="production"){const r=Dl[e],n=typeof r=="function"?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var mt=Object.getPrototypeOf;function Qe(e){return!!e&&!!e[ie]}function Pe(e){var t;return e?Ts(e)||Array.isArray(e)||!!e[ao]||!!((t=e.constructor)!=null&&t[ao])||Br(e)||Ur(e):!1}var Il=Object.prototype.constructor.toString();function Ts(e){if(!e||typeof e!="object")return!1;const t=mt(e);if(t===null)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===Il}function xr(e,t){Lr(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function Lr(e){const t=e[ie];return t?t.type_:Array.isArray(e)?1:Br(e)?2:Ur(e)?3:0}function Nn(e,t){return Lr(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ds(e,t,r){const n=Lr(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function jl(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Br(e){return e instanceof Map}function Ur(e){return e instanceof Set}function Fe(e){return e.copy_||e.base_}function Cn(e,t){if(Br(e))return new Map(e);if(Ur(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=Ts(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[ie];let i=Reflect.ownKeys(n);for(let o=0;o<i.length;o++){const s=i[o],a=n[s];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(n[s]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[s]})}return Object.create(mt(e),n)}else{const n=mt(e);if(n!==null&&r)return{...e};const i=Object.create(n);return Object.assign(i,e)}}function ti(e,t=!1){return qr(e)||Qe(e)||!Pe(e)||(Lr(e)>1&&(e.set=e.add=e.clear=e.delete=Vl),Object.freeze(e),t&&Object.entries(e).forEach(([r,n])=>ti(n,!0))),e}function Vl(){ee(2)}function qr(e){return Object.isFrozen(e)}var Ml={};function Xe(e){const t=Ml[e];return t||ee(0,e),t}var qt;function Is(){return qt}function $l(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function co(e,t){t&&(Xe("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Rn(e){An(e),e.drafts_.forEach(zl),e.drafts_=null}function An(e){e===qt&&(qt=e.parent_)}function uo(e){return qt=$l(qt,e)}function zl(e){const t=e[ie];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function lo(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[ie].modified_&&(Rn(t),ee(4)),Pe(e)&&(e=Or(t,e),t.parent_||kr(t,e)),t.patches_&&Xe("Patches").generateReplacementPatches_(r[ie].base_,e,t.patches_,t.inversePatches_)):e=Or(t,r,[]),Rn(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==As?e:void 0}function Or(e,t,r){if(qr(t))return t;const n=t[ie];if(!n)return xr(t,(i,o)=>fo(e,n,t,i,o,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return kr(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const i=n.copy_;let o=i,s=!1;n.type_===3&&(o=new Set(i),i.clear(),s=!0),xr(o,(a,u)=>fo(e,n,i,a,u,r,s)),kr(e,i,!1),r&&e.patches_&&Xe("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function fo(e,t,r,n,i,o,s){if(process.env.NODE_ENV!=="production"&&i===r&&ee(5),Qe(i)){const a=o&&t&&t.type_!==3&&!Nn(t.assigned_,n)?o.concat(n):void 0,u=Or(e,i,a);if(Ds(r,n,u),Qe(u))e.canAutoFreeze_=!1;else return}else s&&r.add(i);if(Pe(i)&&!qr(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Or(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&Object.prototype.propertyIsEnumerable.call(r,n)&&kr(e,i)}}function kr(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&ti(t,r)}function Fl(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:Is(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,o=ri;r&&(i=[n],o=Wt);const{revoke:s,proxy:a}=Proxy.revocable(i,o);return n.draft_=a,n.revoke_=s,a}var ri={get(e,t){if(t===ie)return e;const r=Fe(e);if(!Nn(r,t))return Ll(e,r,t);const n=r[t];return e.finalized_||!Pe(n)?n:n===cn(e.base_,t)?(un(e),e.copy_[t]=Dn(n,e)):n},has(e,t){return t in Fe(e)},ownKeys(e){return Reflect.ownKeys(Fe(e))},set(e,t,r){const n=js(Fe(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=cn(Fe(e),t),o=i==null?void 0:i[ie];if(o&&o.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(jl(r,i)&&(r!==void 0||Nn(e.base_,t)))return!0;un(e),Tn(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return cn(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,un(e),Tn(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Fe(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){ee(11)},getPrototypeOf(e){return mt(e.base_)},setPrototypeOf(){ee(12)}},Wt={};xr(ri,(e,t)=>{Wt[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Wt.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&ee(13),Wt.set.call(this,e,t,void 0)};Wt.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&ee(14),ri.set.call(this,e[0],t,r,e[0])};function cn(e,t){const r=e[ie];return(r?Fe(r):e)[t]}function Ll(e,t,r){var i;const n=js(t,r);return n?"value"in n?n.value:(i=n.get)==null?void 0:i.call(e.draft_):void 0}function js(e,t){if(!(t in e))return;let r=mt(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=mt(r)}}function Tn(e){e.modified_||(e.modified_=!0,e.parent_&&Tn(e.parent_))}function un(e){e.copy_||(e.copy_=Cn(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Bl=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const o=r;r=t;const s=this;return function(u=o,...l){return s.produce(u,f=>r.call(this,f,...l))}}typeof r!="function"&&ee(6),n!==void 0&&typeof n!="function"&&ee(7);let i;if(Pe(t)){const o=uo(this),s=Dn(t,void 0);let a=!0;try{i=r(s),a=!1}finally{a?Rn(o):An(o)}return co(o,n),lo(i,o)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===As&&(i=void 0),this.autoFreeze_&&ti(i,!0),n){const o=[],s=[];Xe("Patches").generateReplacementPatches_(t,i,o,s),n(o,s)}return i}else ee(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(s,...a)=>this.produceWithPatches(s,u=>t(u,...a));let n,i;return[this.produce(t,r,(s,a)=>{n=s,i=a}),n,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Pe(e)||ee(8),Qe(e)&&(e=Ul(e));const t=uo(this),r=Dn(e,void 0);return r[ie].isManual_=!0,An(t),r}finishDraft(e,t){const r=e&&e[ie];(!r||!r.isManual_)&&ee(9);const{scope_:n}=r;return co(n,t),lo(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));const n=Xe("Patches").applyPatches_;return Qe(e)?n(e,t):this.produce(e,i=>n(i,t))}};function Dn(e,t){const r=Br(e)?Xe("MapSet").proxyMap_(e,t):Ur(e)?Xe("MapSet").proxySet_(e,t):Fl(e,t);return(t?t.scope_:Is()).drafts_.push(r),r}function Ul(e){return Qe(e)||ee(10,e),Vs(e)}function Vs(e){if(!Pe(e)||qr(e))return e;const t=e[ie];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Cn(e,t.scope_.immer_.useStrictShallowCopy_)}else r=Cn(e,!0);return xr(r,(n,i)=>{Ds(r,n,Vs(i))}),t&&(t.finalized_=!1),r}var oe=new Bl,Ms=oe.produce;oe.produceWithPatches.bind(oe);oe.setAutoFreeze.bind(oe);oe.setUseStrictShallowCopy.bind(oe);oe.applyPatches.bind(oe);oe.createDraft.bind(oe);oe.finishDraft.bind(oe);function $s(e){return({dispatch:r,getState:n})=>i=>o=>typeof o=="function"?o(r,n,e):i(o)}var ql=$s(),Wl=$s,Hl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Sr:Sr.apply(null,arguments)},Yl=e=>e&&typeof e.match=="function";function ho(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(process.env.NODE_ENV==="production"?L(0):"prepareAction did not return an object");return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>Rs(n)&&n.type===e,r}function Gl(e){return typeof e=="function"&&"type"in e&&Yl(e)}function Kl(e){const t=e?`${e}`.split("/"):[],r=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched.
|
|
192
|
+
Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${r}())\` instead of \`dispatch(${r})\`. This is necessary even if the action has no payload.`}function Ql(e={}){if(process.env.NODE_ENV==="production")return()=>r=>n=>r(n);const{isActionCreator:t=Gl}=e;return()=>r=>n=>(t(n)&&console.warn(Kl(n.type)),r(n))}function zs(e,t){let r=0;return{measureTime(n){const i=Date.now();try{return n()}finally{const o=Date.now();r+=o-i}},warnIfExceeded(){r>e&&console.warn(`${t} took ${r}ms, which is more than the warning threshold of ${e}ms.
|
|
148
193
|
If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
|
|
149
|
-
It is disabled in production builds, so you don't need to worry about that.`)}}}var
|
|
194
|
+
It is disabled in production builds, so you don't need to worry about that.`)}}}var Fs=class Ct extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Ct.prototype)}static get[Symbol.species](){return Ct}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Ct(...t[0].concat(this)):new Ct(...t.concat(this))}};function po(e){return Pe(e)?Ms(e,()=>{}):e}function mo(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function Xl(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function Jl(e,t,r){const n=Ls(e,t,r);return{detectMutations(){return Bs(e,t,n,r)}}}function Ls(e,t=[],r,n="",i=new Set){const o={value:r};if(!e(r)&&!i.has(r)){i.add(r),o.children={};for(const s in r){const a=n?n+"."+s:s;t.length&&t.indexOf(a)!==-1||(o.children[s]=Ls(e,t,r[s],a))}}return o}function Bs(e,t=[],r,n,i=!1,o=""){const s=r?r.value:void 0,a=s===n;if(i&&!a&&!Number.isNaN(n))return{wasMutated:!0,path:o};if(e(s)||e(n))return{wasMutated:!1};const u={};for(let f in r.children)u[f]=!0;for(let f in n)u[f]=!0;const l=t.length>0;for(let f in u){const d=o?o+"."+f:f;if(l&&t.some(y=>y instanceof RegExp?y.test(d):d===y))continue;const h=Bs(e,t,r.children[f],n[f],a,d);if(h.wasMutated)return h}return{wasMutated:!1}}function Zl(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{let t=function(a,u,l,f){return JSON.stringify(a,r(u,f),l)},r=function(a,u){let l=[],f=[];return u||(u=function(d,h){return l[0]===h?"[Circular ~]":"[Circular ~."+f.slice(0,l.indexOf(h)).join(".")+"]"}),function(d,h){if(l.length>0){var p=l.indexOf(this);~p?l.splice(p+1):l.push(this),~p?f.splice(p,1/0,d):f.push(d),~l.indexOf(h)&&(h=u.call(this,d,h))}else l.push(h);return a==null?h:a.call(this,d,h)}},{isImmutable:n=Xl,ignoredPaths:i,warnAfter:o=32}=e;const s=Jl.bind(null,n,i);return({getState:a})=>{let u=a(),l=s(u),f;return d=>h=>{const p=zs(o,"ImmutableStateInvariantMiddleware");p.measureTime(()=>{if(u=a(),f=l.detectMutations(),l=s(u),f.wasMutated)throw new Error(process.env.NODE_ENV==="production"?L(19):`A state mutation was detected between dispatches, in the path '${f.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const y=d(h);return p.measureTime(()=>{if(u=a(),f=l.detectMutations(),l=s(u),f.wasMutated)throw new Error(process.env.NODE_ENV==="production"?L(20):`A state mutation was detected inside a dispatch, in the path: ${f.path||""}. Take a look at the reducer(s) handling the action ${t(h)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),p.warnIfExceeded(),y}}}}function Us(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||Kt(e)}function In(e,t="",r=Us,n,i=[],o){let s;if(!r(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null||o!=null&&o.has(e))return!1;const a=n!=null?n(e):Object.entries(e),u=i.length>0;for(const[l,f]of a){const d=t?t+"."+l:l;if(!(u&&i.some(p=>p instanceof RegExp?p.test(d):d===p))){if(!r(f))return{keyPath:d,value:f};if(typeof f=="object"&&(s=In(f,d,r,n,i,o),s))return s}}return o&&qs(e)&&o.add(e),!1}function qs(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if(!(typeof t!="object"||t===null)&&!qs(t))return!1;return!0}function ef(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{const{isSerializable:t=Us,getEntries:r,ignoredActions:n=[],ignoredActionPaths:i=["meta.arg","meta.baseQueryMeta"],ignoredPaths:o=[],warnAfter:s=32,ignoreState:a=!1,ignoreActions:u=!1,disableCache:l=!1}=e,f=!l&&WeakSet?new WeakSet:void 0;return d=>h=>p=>{if(!Rs(p))return h(p);const y=h(p),E=zs(s,"SerializableStateInvariantMiddleware");return!u&&!(n.length&&n.indexOf(p.type)!==-1)&&E.measureTime(()=>{const w=In(p,"",t,r,i,f);if(w){const{keyPath:v,value:b}=w;console.error(`A non-serializable value was detected in an action, in the path: \`${v}\`. Value:`,b,`
|
|
150
195
|
Take a look at the logic that dispatched this action: `,p,`
|
|
151
196
|
(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
|
|
152
197
|
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),a||(E.measureTime(()=>{const w=d.getState(),v=In(w,"",t,r,o,f);if(v){const{keyPath:b,value:m}=v;console.error(`A non-serializable value was detected in the state, in the path: \`${b}\`. Value:`,m,`
|
|
153
198
|
Take a look at the reducer(s) handling this action type: ${p.type}.
|
|
154
|
-
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),E.warnIfExceeded()),y}}}function or(e){return typeof e=="boolean"}var Hl=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let s=new zs;if(r&&(or(r)?s.push(jl):s.push(Vl(r.extraArgument))),process.env.NODE_ENV!=="production"){if(n){let a={};or(n)||(a=n),s.unshift(ql(a))}if(i){let a={};or(i)||(a=i),s.push(Wl(a))}if(o){let a={};or(o)||(a=o),s.unshift(Bl(a))}}return s},Yl="RTK_autoBatch",yo=e=>t=>{setTimeout(t,e)},Gl=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,o=!1,s=!1;const a=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:yo(10):e.type==="callback"?e.queueNotification:yo(e.timeout),l=()=>{s=!1,o&&(o=!1,a.forEach(f=>f()))};return Object.assign({},n,{subscribe(f){const d=()=>i&&f(),h=n.subscribe(d);return a.add(f),()=>{h(),a.delete(f)}},dispatch(f){var d;try{return i=!((d=f==null?void 0:f.meta)!=null&&d[Yl]),o=!i,o&&(s||(s=!0,u(l))),n.dispatch(f)}finally{i=!0}}})},Kl=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new zs(e);return n&&i.push(Gl(typeof n=="object"?n:void 0)),i};function Ql(e){const t=Hl(),{reducer:r=void 0,middleware:n,devTools:i=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{};let a;if(typeof r=="function")a=r;else if(Kt(r))a=Rs(r);else throw new Error(process.env.NODE_ENV==="production"?B(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(process.env.NODE_ENV!=="production"&&n&&typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?B(2):"`middleware` field must be a callback");let u;if(typeof n=="function"){if(u=n(t),process.env.NODE_ENV!=="production"&&!Array.isArray(u))throw new Error(process.env.NODE_ENV==="production"?B(3):"when using a middleware builder function, an array of middleware must be returned")}else u=t();if(process.env.NODE_ENV!=="production"&&u.some(y=>typeof y!="function"))throw new Error(process.env.NODE_ENV==="production"?B(4):"each middleware provided to configureStore must be a function");let l=Sr;i&&(l=$l({trace:process.env.NODE_ENV!=="production",...typeof i=="object"&&i}));const f=Sl(...u),d=Kl(f);if(process.env.NODE_ENV!=="production"&&s&&typeof s!="function")throw new Error(process.env.NODE_ENV==="production"?B(5):"`enhancers` field must be a callback");let h=typeof s=="function"?s(d):d();if(process.env.NODE_ENV!=="production"&&!Array.isArray(h))throw new Error(process.env.NODE_ENV==="production"?B(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&h.some(y=>typeof y!="function"))throw new Error(process.env.NODE_ENV==="production"?B(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&u.length&&!h.includes(f)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const p=l(...h);return Ns(a,o,p)}function Ws(e){const t={},r=[];let n;const i={addCase(o,s){if(process.env.NODE_ENV!=="production"){if(r.length>0)throw new Error(process.env.NODE_ENV==="production"?B(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error(process.env.NODE_ENV==="production"?B(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const a=typeof o=="string"?o:o.type;if(!a)throw new Error(process.env.NODE_ENV==="production"?B(28):"`builder.addCase` cannot be called with an empty action type");if(a in t)throw new Error(process.env.NODE_ENV==="production"?B(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${a}'`);return t[a]=s,i},addMatcher(o,s){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?B(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:o,reducer:s}),i},addDefaultCase(o){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?B(31):"`builder.addDefaultCase` can only be called once");return n=o,i}};return e(i),[t,r,n]}function Xl(e){return typeof e=="function"}function Jl(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?B(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[r,n,i]=Ws(t),o;if(Xl(e))o=()=>po(e());else{const a=po(e);o=()=>a}function s(a=o(),u){let l=[r[u.type],...n.filter(({matcher:f})=>f(u)).map(({reducer:f})=>f)];return l.filter(f=>!!f).length===0&&(l=[i]),l.reduce((f,d)=>{if(d)if(Ke(f)){const p=d(f,u);return p===void 0?f:p}else{if(xe(f))return $s(f,h=>d(h,u));{const h=d(f,u);if(h===void 0){if(f===null)return f;throw Error("A case reducer on a non-draftable value must not return undefined")}return h}}return f},a)}return s.getInitialState=o,s}var Zl=Symbol.for("rtk-slice-createasyncthunk");function ef(e,t){return`${e}/${t}`}function tf({creators:e}={}){var r;const t=(r=e==null?void 0:e.asyncThunk)==null?void 0:r[Zl];return function(i){const{name:o,reducerPath:s=o}=i;if(!o)throw new Error(process.env.NODE_ENV==="production"?B(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&i.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const a=(typeof i.reducers=="function"?i.reducers(of()):i.reducers)||{},u=Object.keys(a),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},f={addCase(m,S){const x=typeof m=="string"?m:m.type;if(!x)throw new Error(process.env.NODE_ENV==="production"?B(12):"`context.addCase` cannot be called with an empty action type");if(x in l.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?B(13):"`context.addCase` cannot be called with two reducers for the same action type: "+x);return l.sliceCaseReducersByType[x]=S,f},addMatcher(m,S){return l.sliceMatchers.push({matcher:m,reducer:S}),f},exposeAction(m,S){return l.actionCreators[m]=S,f},exposeCaseReducer(m,S){return l.sliceCaseReducersByName[m]=S,f}};u.forEach(m=>{const S=a[m],x={reducerName:m,type:ef(o,m),createNotation:typeof i.reducers=="function"};af(S)?uf(x,S,f,t):sf(x,S,f)});function d(){if(process.env.NODE_ENV!=="production"&&typeof i.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?B(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[m={},S=[],x=void 0]=typeof i.extraReducers=="function"?Ws(i.extraReducers):[i.extraReducers],P={...m,...l.sliceCaseReducersByType};return Jl(i.initialState,k=>{for(let j in P)k.addCase(j,P[j]);for(let j of l.sliceMatchers)k.addMatcher(j.matcher,j.reducer);for(let j of S)k.addMatcher(j.matcher,j.reducer);x&&k.addDefaultCase(x)})}const h=m=>m,p=new Map;let y;function E(m,S){return y||(y=d()),y(m,S)}function w(){return y||(y=d()),y.getInitialState()}function v(m,S=!1){function x(k){let j=k[m];if(typeof j>"u"){if(S)j=w();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?B(15):"selectSlice returned undefined for an uninjected slice reducer")}return j}function P(k=h){const j=mo(p,S,()=>new WeakMap);return mo(j,k,()=>{const F={};for(const[le,Y]of Object.entries(i.selectors??{}))F[le]=rf(Y,k,w,S);return F})}return{reducerPath:m,getSelectors:P,get selectors(){return P(x)},selectSlice:x}}const b={name:o,reducer:E,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:w,...v(s),injectInto(m,{reducerPath:S,...x}={}){const P=S??s;return m.inject({reducerPath:P,reducer:E},x),{...b,...v(P,!0)}}};return b}}function rf(e,t,r,n){function i(o,...s){let a=t(o);if(typeof a>"u"){if(n)a=r();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?B(16):"selectState returned undefined for an uninjected slice reducer")}return e(a,...s)}return i.unwrapped=e,i}var nf=tf();function of(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function sf({type:e,reducerName:t,createNotation:r},n,i){let o,s;if("reducer"in n){if(r&&!cf(n))throw new Error(process.env.NODE_ENV==="production"?B(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");o=n.reducer,s=n.prepare}else o=n;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,s?ho(e,s):ho(e))}function af(e){return e._reducerDefinitionType==="asyncThunk"}function cf(e){return e._reducerDefinitionType==="reducerWithPrepare"}function uf({type:e,reducerName:t},r,n,i){if(!i)throw new Error(process.env.NODE_ENV==="production"?B(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:o,fulfilled:s,pending:a,rejected:u,settled:l,options:f}=r,d=i(e,o,f);n.exposeAction(t,d),s&&n.addCase(d.fulfilled,s),a&&n.addCase(d.pending,a),u&&n.addCase(d.rejected,u),l&&n.addMatcher(d.settled,l),n.exposeCaseReducer(t,{fulfilled:s||sr,pending:a||sr,rejected:u||sr,settled:l||sr})}function sr(){}function B(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const lf={cardPosition:"transit-to-home"},Hs=nf({name:"navigation",initialState:lf,reducers:{setCardState:(e,t)=>(e.cardPosition=t.payload.state,e)}}),{setCardState:hf}=Hs.actions,ff=Rs({navigation:Hs.reducer}),df=Ql({reducer:ff});exports.AnimatedText=Zo;exports.BackButton=pl;exports.BannerButton=al;exports.CircleIconButton=dl;exports.ymyStore=df;
|
|
199
|
+
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),E.warnIfExceeded()),y}}}function or(e){return typeof e=="boolean"}var tf=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let s=new Fs;if(r&&(or(r)?s.push(ql):s.push(Wl(r.extraArgument))),process.env.NODE_ENV!=="production"){if(n){let a={};or(n)||(a=n),s.unshift(Zl(a))}if(i){let a={};or(i)||(a=i),s.push(ef(a))}if(o){let a={};or(o)||(a=o),s.unshift(Ql(a))}}return s},rf="RTK_autoBatch",yo=e=>t=>{setTimeout(t,e)},nf=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,o=!1,s=!1;const a=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:yo(10):e.type==="callback"?e.queueNotification:yo(e.timeout),l=()=>{s=!1,o&&(o=!1,a.forEach(f=>f()))};return Object.assign({},n,{subscribe(f){const d=()=>i&&f(),h=n.subscribe(d);return a.add(f),()=>{h(),a.delete(f)}},dispatch(f){var d;try{return i=!((d=f==null?void 0:f.meta)!=null&&d[rf]),o=!i,o&&(s||(s=!0,u(l))),n.dispatch(f)}finally{i=!0}}})},of=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new Fs(e);return n&&i.push(nf(typeof n=="object"?n:void 0)),i};function sf(e){const t=tf(),{reducer:r=void 0,middleware:n,devTools:i=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{};let a;if(typeof r=="function")a=r;else if(Kt(r))a=Cs(r);else throw new Error(process.env.NODE_ENV==="production"?L(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(process.env.NODE_ENV!=="production"&&n&&typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?L(2):"`middleware` field must be a callback");let u;if(typeof n=="function"){if(u=n(t),process.env.NODE_ENV!=="production"&&!Array.isArray(u))throw new Error(process.env.NODE_ENV==="production"?L(3):"when using a middleware builder function, an array of middleware must be returned")}else u=t();if(process.env.NODE_ENV!=="production"&&u.some(y=>typeof y!="function"))throw new Error(process.env.NODE_ENV==="production"?L(4):"each middleware provided to configureStore must be a function");let l=Sr;i&&(l=Hl({trace:process.env.NODE_ENV!=="production",...typeof i=="object"&&i}));const f=Tl(...u),d=of(f);if(process.env.NODE_ENV!=="production"&&s&&typeof s!="function")throw new Error(process.env.NODE_ENV==="production"?L(5):"`enhancers` field must be a callback");let h=typeof s=="function"?s(d):d();if(process.env.NODE_ENV!=="production"&&!Array.isArray(h))throw new Error(process.env.NODE_ENV==="production"?L(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&h.some(y=>typeof y!="function"))throw new Error(process.env.NODE_ENV==="production"?L(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&u.length&&!h.includes(f)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const p=l(...h);return Ns(a,o,p)}function Ws(e){const t={},r=[];let n;const i={addCase(o,s){if(process.env.NODE_ENV!=="production"){if(r.length>0)throw new Error(process.env.NODE_ENV==="production"?L(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error(process.env.NODE_ENV==="production"?L(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const a=typeof o=="string"?o:o.type;if(!a)throw new Error(process.env.NODE_ENV==="production"?L(28):"`builder.addCase` cannot be called with an empty action type");if(a in t)throw new Error(process.env.NODE_ENV==="production"?L(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${a}'`);return t[a]=s,i},addMatcher(o,s){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?L(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:o,reducer:s}),i},addDefaultCase(o){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?L(31):"`builder.addDefaultCase` can only be called once");return n=o,i}};return e(i),[t,r,n]}function af(e){return typeof e=="function"}function cf(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?L(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[r,n,i]=Ws(t),o;if(af(e))o=()=>po(e());else{const a=po(e);o=()=>a}function s(a=o(),u){let l=[r[u.type],...n.filter(({matcher:f})=>f(u)).map(({reducer:f})=>f)];return l.filter(f=>!!f).length===0&&(l=[i]),l.reduce((f,d)=>{if(d)if(Qe(f)){const p=d(f,u);return p===void 0?f:p}else{if(Pe(f))return Ms(f,h=>d(h,u));{const h=d(f,u);if(h===void 0){if(f===null)return f;throw Error("A case reducer on a non-draftable value must not return undefined")}return h}}return f},a)}return s.getInitialState=o,s}var uf=Symbol.for("rtk-slice-createasyncthunk");function lf(e,t){return`${e}/${t}`}function ff({creators:e}={}){var r;const t=(r=e==null?void 0:e.asyncThunk)==null?void 0:r[uf];return function(i){const{name:o,reducerPath:s=o}=i;if(!o)throw new Error(process.env.NODE_ENV==="production"?L(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&i.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const a=(typeof i.reducers=="function"?i.reducers(pf()):i.reducers)||{},u=Object.keys(a),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},f={addCase(m,S){const k=typeof m=="string"?m:m.type;if(!k)throw new Error(process.env.NODE_ENV==="production"?L(12):"`context.addCase` cannot be called with an empty action type");if(k in l.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?L(13):"`context.addCase` cannot be called with two reducers for the same action type: "+k);return l.sliceCaseReducersByType[k]=S,f},addMatcher(m,S){return l.sliceMatchers.push({matcher:m,reducer:S}),f},exposeAction(m,S){return l.actionCreators[m]=S,f},exposeCaseReducer(m,S){return l.sliceCaseReducersByName[m]=S,f}};u.forEach(m=>{const S=a[m],k={reducerName:m,type:lf(o,m),createNotation:typeof i.reducers=="function"};yf(S)?vf(k,S,f,t):mf(k,S,f)});function d(){if(process.env.NODE_ENV!=="production"&&typeof i.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?L(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[m={},S=[],k=void 0]=typeof i.extraReducers=="function"?Ws(i.extraReducers):[i.extraReducers],P={...m,...l.sliceCaseReducersByType};return cf(i.initialState,O=>{for(let j in P)O.addCase(j,P[j]);for(let j of l.sliceMatchers)O.addMatcher(j.matcher,j.reducer);for(let j of S)O.addMatcher(j.matcher,j.reducer);k&&O.addDefaultCase(k)})}const h=m=>m,p=new Map;let y;function E(m,S){return y||(y=d()),y(m,S)}function w(){return y||(y=d()),y.getInitialState()}function v(m,S=!1){function k(O){let j=O[m];if(typeof j>"u"){if(S)j=w();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?L(15):"selectSlice returned undefined for an uninjected slice reducer")}return j}function P(O=h){const j=mo(p,S,()=>new WeakMap);return mo(j,O,()=>{const z={};for(const[fe,G]of Object.entries(i.selectors??{}))z[fe]=df(G,O,w,S);return z})}return{reducerPath:m,getSelectors:P,get selectors(){return P(k)},selectSlice:k}}const b={name:o,reducer:E,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:w,...v(s),injectInto(m,{reducerPath:S,...k}={}){const P=S??s;return m.inject({reducerPath:P,reducer:E},k),{...b,...v(P,!0)}}};return b}}function df(e,t,r,n){function i(o,...s){let a=t(o);if(typeof a>"u"){if(n)a=r();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?L(16):"selectState returned undefined for an uninjected slice reducer")}return e(a,...s)}return i.unwrapped=e,i}var hf=ff();function pf(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function mf({type:e,reducerName:t,createNotation:r},n,i){let o,s;if("reducer"in n){if(r&&!gf(n))throw new Error(process.env.NODE_ENV==="production"?L(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");o=n.reducer,s=n.prepare}else o=n;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,s?ho(e,s):ho(e))}function yf(e){return e._reducerDefinitionType==="asyncThunk"}function gf(e){return e._reducerDefinitionType==="reducerWithPrepare"}function vf({type:e,reducerName:t},r,n,i){if(!i)throw new Error(process.env.NODE_ENV==="production"?L(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:o,fulfilled:s,pending:a,rejected:u,settled:l,options:f}=r,d=i(e,o,f);n.exposeAction(t,d),s&&n.addCase(d.fulfilled,s),a&&n.addCase(d.pending,a),u&&n.addCase(d.rejected,u),l&&n.addMatcher(d.settled,l),n.exposeCaseReducer(t,{fulfilled:s||sr,pending:a||sr,rejected:u||sr,settled:l||sr})}function sr(){}function L(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const bf={cardPosition:"transit-to-home"},Hs=hf({name:"navigation",initialState:bf,reducers:{setCardState:(e,t)=>(e.cardPosition=t.payload.state,e)}}),{setCardState:Ef}=Hs.actions,wf=Cs({navigation:Hs.reducer}),_f=sf({reducer:wf});exports.AnimatedText=Zo;exports.BackButton=pl;exports.BannerButton=al;exports.CircleIconButton=dl;exports.ListItem=Sl;exports.UnorderedListItemContainer=ml;exports.ymyStore=_f;
|