react-luminus-components 1.3.128 → 1.3.129

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.
Files changed (29) hide show
  1. package/dist/.vite/manifest.json +67 -67
  2. package/dist/{FullScreenContainer-DJBHY7OX.cjs → FullScreenContainer-2wsbleC5.cjs} +1 -1
  3. package/dist/{FullScreenContainer-ykoJS9e2.js → FullScreenContainer-C6towpIx.js} +1 -1
  4. package/dist/{Loading-31doBIdE.js → Loading-6abhhYJk.js} +1 -1
  5. package/dist/{Loading-BGCivdp4.cjs → Loading-CIwTYkNP.cjs} +1 -1
  6. package/dist/{ResponsiveContextDropdown-CdpFpQxZ.js → ResponsiveContextDropdown-BGJqSLqh.js} +95 -95
  7. package/dist/{ResponsiveContextDropdown-I7HQPGhS.cjs → ResponsiveContextDropdown-DrampG9P.cjs} +1 -1
  8. package/dist/{SimpleTooltip-Dhlap3t6.cjs → SimpleTooltip-YMg3cJC4.cjs} +1 -1
  9. package/dist/{SimpleTooltip-D0G41VQN.js → SimpleTooltip-iUdmzql6.js} +1 -1
  10. package/dist/contexts.cjs.js +1 -1
  11. package/dist/contexts.es.js +3 -3
  12. package/dist/hooks.cjs.js +1 -1
  13. package/dist/hooks.es.js +5 -5
  14. package/dist/layout.cjs.js +1 -1
  15. package/dist/layout.es.js +5 -5
  16. package/dist/main.cjs.js +1 -1
  17. package/dist/main.es.js +8 -8
  18. package/dist/{searchUtils-Bz9T45BA.js → searchUtils-CyKy0KnE.js} +1 -1
  19. package/dist/{searchUtils-BSeOjuYy.cjs → searchUtils-DQPE98I9.cjs} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/{useClipboard-WgVIh4td.cjs → useClipboard-BL8tNA15.cjs} +1 -1
  22. package/dist/{useClipboard-Y0W8_RNe.js → useClipboard-C4yl7IAV.js} +1 -1
  23. package/dist/{useGetApiData-B_2_aA4k.js → useGetApiData-CZtxhEfZ.js} +1 -1
  24. package/dist/{useGetApiData-D204P-_S.cjs → useGetApiData-DW3ZZFya.cjs} +1 -1
  25. package/dist/{usePermissions-eOvXa_bX.cjs → usePermissions-BW77jXwx.cjs} +1 -1
  26. package/dist/{usePermissions-C3jolFW5.js → usePermissions-CSL6mTIq.js} +1 -1
  27. package/dist/utils.cjs.js +1 -1
  28. package/dist/utils.es.js +4 -4
  29. package/package.json +1 -1
@@ -250,7 +250,7 @@ to {
250
250
  *
251
251
  * This source code is licensed under the MIT license found in the
252
252
  * LICENSE file in the root directory of this source tree.
253
- */var fg;function GS(){return fg||(fg=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function b(k){return typeof k=="string"||typeof k=="function"||k===r||k===c||k===i||k===a||k===d||k===f||typeof k=="object"&&k!==null&&(k.$$typeof===m||k.$$typeof===p||k.$$typeof===o||k.$$typeof===s||k.$$typeof===l||k.$$typeof===v||k.$$typeof===x||k.$$typeof===w||k.$$typeof===g)}function T(k){if(typeof k=="object"&&k!==null){var ge=k.$$typeof;switch(ge){case t:var pe=k.type;switch(pe){case u:case c:case r:case i:case a:case d:return pe;default:var de=pe&&pe.$$typeof;switch(de){case s:case l:case m:case p:case o:return de;default:return ge}}case n:return ge}}}var _=u,C=c,$=s,A=o,D=t,j=l,E=r,F=m,M=p,R=n,I=i,U=a,N=d,q=!1;function z(k){return q||(q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),P(k)||T(k)===u}function P(k){return T(k)===c}function W(k){return T(k)===s}function Z(k){return T(k)===o}function ne(k){return typeof k=="object"&&k!==null&&k.$$typeof===t}function Y(k){return T(k)===l}function Q(k){return T(k)===r}function G(k){return T(k)===m}function J(k){return T(k)===p}function re(k){return T(k)===n}function L(k){return T(k)===i}function V(k){return T(k)===a}function ae(k){return T(k)===d}Ye.AsyncMode=_,Ye.ConcurrentMode=C,Ye.ContextConsumer=$,Ye.ContextProvider=A,Ye.Element=D,Ye.ForwardRef=j,Ye.Fragment=E,Ye.Lazy=F,Ye.Memo=M,Ye.Portal=R,Ye.Profiler=I,Ye.StrictMode=U,Ye.Suspense=N,Ye.isAsyncMode=z,Ye.isConcurrentMode=P,Ye.isContextConsumer=W,Ye.isContextProvider=Z,Ye.isElement=ne,Ye.isForwardRef=Y,Ye.isFragment=Q,Ye.isLazy=G,Ye.isMemo=J,Ye.isPortal=re,Ye.isProfiler=L,Ye.isStrictMode=V,Ye.isSuspense=ae,Ye.isValidElementType=b,Ye.typeOf=T}()),Ye}process.env.NODE_ENV==="production"?Gd.exports=YS():Gd.exports=GS();var ZS=Gd.exports,m1=ZS,KS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},XS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},g1={};g1[m1.ForwardRef]=KS;g1[m1.Memo]=XS;function JS(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function Th(e,t){const n=h.useContext(qS);if(!n)throw new Error("Missing <CookiesProvider>");const a=Object.assign(Object.assign({},{doNotUpdate:!0}),t),[i,o]=h.useState(()=>n.getAll(a));JS()&&h.useLayoutEffect(()=>{function l(){const d=n.getAll(a);QS(e||null,d,i)&&o(d)}return n.addChangeListener(l),()=>{n.removeChangeListener(l)}},[n,i]);const s=h.useMemo(()=>n.set.bind(n),[n]),u=h.useMemo(()=>n.remove.bind(n),[n]),c=h.useMemo(()=>n.update.bind(n),[n]);return[i,s,u,c]}function QS(e,t,n){if(!e)return!0;for(let r of e)if(t[r]!==n[r])return!0;return!1}const eO=()=>{const{axiosOptions:e,cookieDomain:t}=h.useContext(bn),[,n,r]=Th(["Authorization"]),a=dt.create(e),i=h.useCallback(()=>localStorage.getItem("token")??null,[]),o=h.useCallback(()=>{const c=i();return c!==null&&c.length>0},[i]),s=h.useCallback(async(c,l)=>a.post("/user/login",{kid:c,password:l}).then(d=>(localStorage.setItem("token",d.data),n("Authorization",d.data,{path:"/",secure:!0,sameSite:"none",domain:t,expires:Zw(new Date(Date.now()),24)}),d.data)).catch(d=>(console.log(d),null)),[a,n,t]),u=h.useCallback(()=>{localStorage.removeItem("token"),localStorage.removeItem("user"),r("Authorization")},[r]);return{isAuthenticated:o,login:s,logout:u,getToken:i}},tO=()=>{const[,,e]=Th(["Authorization"]),{msalScopes:t}=h.useContext(Sh),{instance:n,inProgress:r}=sm.useMsal(),a=sm.useIsAuthenticated(),i=h.useCallback(async()=>{var f;const l=n.getActiveAccount(),d=l??((f=n.getAllAccounts())==null?void 0:f.at(0))??void 0;return d?(l||n.setActiveAccount(d),n.acquireTokenSilent({scopes:t,account:d}).then(p=>p.accessToken).catch(p=>{if(console.error("Error acquiring token",p),p instanceof om.InteractionRequiredAuthError)return console.log("Silent token acquisition failed. Acquiring token using redirect"),n.acquireTokenRedirect({scopes:t}),null;throw p})):null},[n,t]),o=h.useCallback(()=>a,[a]),s=h.useCallback(()=>!o()&&r!==om.InteractionStatus.None,[o,r]),u=h.useCallback(async()=>n.loginRedirect({scopes:t}).then(()=>"").catch(()=>null),[n,t]),c=h.useCallback(()=>{n.logout(),localStorage.removeItem("user"),e("Authorization")},[e,n]);return{isAuthenticated:o,isAuthenticating:s,login:u,logout:c,getToken:i}},v1=()=>{const{useMsal:e}=h.useContext(Sh),t=eO(),n=tO();return{isAuthenticated:e?n.isAuthenticated:t.isAuthenticated,isAuthenticating:e?n.isAuthenticating:()=>!1,getToken:e?n.getToken:t.getToken,login:e?n.login:t.login,logout:e?n.logout:t.logout}},nO="_toast_1s57i_1",Pi={toast:nO},rO=e=>{switch(e){case"success":return 5e3;case"info":return 5e3;case"danger":return 1e4;case"warning":return 1e4;case"prompt":return 1e4;default:return 5e3}},Ch=()=>({addNotification:h.useCallback((t,n)=>{const r=c1(t),a=rO(n),i=y.jsxs(y.Fragment,{children:[r,y.jsx(Ob,{onClick:()=>Aa.dismiss(r),type:"button",style:{position:"absolute",fontSize:"12px",top:"calc(50% - 6px)",right:"8px"}})]});switch(n){case"success":{Aa(i,{id:r,duration:a,position:"top-center",icon:y.jsx(qk,{size:12}),className:ie("luminus-toast-success rounded shadow bg-success",Pi.toast)});break}case"danger":{Aa(i,{id:r,duration:a,position:"top-center",icon:y.jsx(Ik,{size:12}),className:ie("luminus-toast-danger rounded shadow bg-danger",Pi.toast)});break}case"warning":{Aa(i,{id:r,duration:a,position:"top-center",icon:y.jsx(Rk,{size:12}),className:ie("luminus-toast-warning rounded shadow bg-warning",Pi.toast)});break}case"info":{Aa(i,{id:r,duration:a,position:"top-center",icon:y.jsx(Pk,{size:12}),className:ie("luminus-toast-info rounded shadow bg-info",Pi.toast)});break}case"prompt":{Aa(i,{id:r,duration:a,position:"top-center",icon:y.jsx(Dk,{size:12}),className:ie("luminus-toast-prompt rounded shadow bg-light",Pi.toast)});break}}},[])}),aO=dt.CancelToken,ru=e=>{const{authenticated:t=!0,differentBaseUrl:n,silent:r=!1,customToken:a,ignoreDelegation:i,noToastOnStatus:o}={...e},{language:s,axiosOptions:u,texts:{axios:c}}=h.useContext(bn),{delegation:l}=h.useContext(M1),d=h.useMemo(()=>(l==null?void 0:l.id)??null,[l==null?void 0:l.id]),{addNotification:f}=Ch(),{getToken:p}=v1(),m=h.useMemo(()=>dt.create(u),[u]),g=h.useCallback(async x=>{var w,b,T;if(t&&!x.headers.Authorization){const _=a??await p();if(!_)return Promise.reject(new Error("No bearer token"));x.headers.Authorization=`Bearer ${_}`}return d!==null&&!i&&(x.headers.DelegationId=d.toString()),(w=x.url)!=null&&w.includes("culture=")?x.url=(b=x.url)==null?void 0:b.replace(/culture=[a-z]{2}/,`culture=${s}`):x.url=`${x.url}${(T=x.url)!=null&&T.includes("?")?"&":"?"}culture=${s}`,x},[t,p,s,a,d,i]),v=h.useCallback(x=>{var T,_;if(console.log(x),dt.isCancel(x))return Promise.reject(x);const w=_h(x);if(w.length>0){const C=w.find($=>$.name.toLowerCase()==="others");return C?(!r&&f(C.errors,"danger"),Promise.reject(x)):(!r&&f(c.validationError,"warning"),Promise.reject(x))}const b=s1(x);return b!==null?(!r&&f(`${c.permissionError}: ${lo(", ",...b)}`,"danger"),Promise.reject(x)):(o??[]).includes((T=x.response)==null?void 0:T.status)?Promise.reject(x):((_=x.response)==null?void 0:_.status)===403?(!r&&f(c.forbiddenError,"danger"),Promise.reject(x)):x.message&&x.message==="Network Error"?(!r&&f(c.networkError,"danger"),Promise.reject(x)):(dt.isCancel(x)||!r&&f(c.unexpectedError,"danger"),Promise.reject(x))},[f,c.forbiddenError,c.networkError,c.permissionError,c.unexpectedError,c.validationError,r,o]);return h.useEffect(()=>{n&&(m.defaults.baseURL=n),m.interceptors.request.clear(),m.interceptors.response.clear();const x=m.interceptors.request.use(g,b=>Promise.reject(b)),w=m.interceptors.response.use(b=>b,v);return()=>{m.interceptors.request.eject(x),m.interceptors.response.eject(w)}},[m.defaults,m.interceptors.request,m.interceptors.response,n,g,v]),m};let Ul;const y1=()=>{const{show:e,text:t,showConfirm:n,hideConfirm:r}=h.useContext(Eb),a=()=>{r()};return{confirm:async u=>(n(u),new Promise(c=>{Ul=c})),onConfirm:()=>{a(),Ul(!0)},onCancel:()=>{a(),Ul(!1)},show:e,text:t}};var Fe;(function(e){e.assertEqual=a=>a;function t(a){}e.assertIs=t;function n(a){throw new Error}e.assertNever=n,e.arrayToEnum=a=>{const i={};for(const o of a)i[o]=o;return i},e.getValidEnumValues=a=>{const i=e.objectKeys(a).filter(s=>typeof a[a[s]]!="number"),o={};for(const s of i)o[s]=a[s];return e.objectValues(o)},e.objectValues=a=>e.objectKeys(a).map(function(i){return a[i]}),e.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const i=[];for(const o in a)Object.prototype.hasOwnProperty.call(a,o)&&i.push(o);return i},e.find=(a,i)=>{for(const o of a)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&isFinite(a)&&Math.floor(a)===a;function r(a,i=" | "){return a.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(a,i)=>typeof i=="bigint"?i.toString():i})(Fe||(Fe={}));var Zd;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Zd||(Zd={}));const ue=Fe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Or=e=>{switch(typeof e){case"undefined":return ue.undefined;case"string":return ue.string;case"number":return isNaN(e)?ue.nan:ue.number;case"boolean":return ue.boolean;case"function":return ue.function;case"bigint":return ue.bigint;case"symbol":return ue.symbol;case"object":return Array.isArray(e)?ue.array:e===null?ue.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ue.promise:typeof Map<"u"&&e instanceof Map?ue.map:typeof Set<"u"&&e instanceof Set?ue.set:typeof Date<"u"&&e instanceof Date?ue.date:ue.object;default:return ue.unknown}},te=Fe.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),iO=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class gn extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(i){return i.message},r={_errors:[]},a=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(a);else if(o.code==="invalid_return_type")a(o.returnTypeError);else if(o.code==="invalid_arguments")a(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let s=r,u=0;for(;u<o.path.length;){const c=o.path[u];u===o.path.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(n(o))):s[c]=s[c]||{_errors:[]},s=s[c],u++}}};return a(this),r}static assert(t){if(!(t instanceof gn))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Fe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const a of this.issues)a.path.length>0?(n[a.path[0]]=n[a.path[0]]||[],n[a.path[0]].push(t(a))):r.push(t(a));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}gn.create=e=>new gn(e);const Ja=(e,t)=>{let n;switch(e.code){case te.invalid_type:e.received===ue.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case te.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Fe.jsonStringifyReplacer)}`;break;case te.unrecognized_keys:n=`Unrecognized key(s) in object: ${Fe.joinValues(e.keys,", ")}`;break;case te.invalid_union:n="Invalid input";break;case te.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Fe.joinValues(e.options)}`;break;case te.invalid_enum_value:n=`Invalid enum value. Expected ${Fe.joinValues(e.options)}, received '${e.received}'`;break;case te.invalid_arguments:n="Invalid function arguments";break;case te.invalid_return_type:n="Invalid function return type";break;case te.invalid_date:n="Invalid date";break;case te.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Fe.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case te.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case te.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case te.custom:n="Invalid input";break;case te.invalid_intersection_types:n="Intersection results could not be merged";break;case te.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case te.not_finite:n="Number must be finite";break;default:n=t.defaultError,Fe.assertNever(e)}return{message:n}};let b1=Ja;function oO(e){b1=e}function rc(){return b1}const ac=e=>{const{data:t,path:n,errorMaps:r,issueData:a}=e,i=[...n,...a.path||[]],o={...a,path:i};if(a.message!==void 0)return{...a,path:i,message:a.message};let s="";const u=r.filter(c=>!!c).slice().reverse();for(const c of u)s=c(o,{data:t,defaultError:s}).message;return{...a,path:i,message:s}},sO=[];function ce(e,t){const n=rc(),r=ac({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Ja?void 0:Ja].filter(a=>!!a)});e.common.issues.push(r)}class Ht{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const a of n){if(a.status==="aborted")return we;a.status==="dirty"&&t.dirty(),r.push(a.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const a of n){const i=await a.key,o=await a.value;r.push({key:i,value:o})}return Ht.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const a of n){const{key:i,value:o}=a;if(i.status==="aborted"||o.status==="aborted")return we;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||a.alwaysSet)&&(r[i.value]=o.value)}return{status:t.value,value:r}}}const we=Object.freeze({status:"aborted"}),Fa=e=>({status:"dirty",value:e}),Kt=e=>({status:"valid",value:e}),Kd=e=>e.status==="aborted",Xd=e=>e.status==="dirty",fo=e=>e.status==="valid",ho=e=>typeof Promise<"u"&&e instanceof Promise;function ic(e,t,n,r){if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function x1(e,t,n,r,a){if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var me;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(me||(me={}));var Yi,Gi;class Gn{constructor(t,n,r,a){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=a}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const hg=(e,t)=>{if(fo(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new gn(e.common.issues);return this._error=n,this._error}}};function Ee(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:a}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:a}:{errorMap:(o,s)=>{var u,c;const{message:l}=e;return o.code==="invalid_enum_value"?{message:l??s.defaultError}:typeof s.data>"u"?{message:(u=l??r)!==null&&u!==void 0?u:s.defaultError}:o.code!=="invalid_type"?{message:s.defaultError}:{message:(c=l??n)!==null&&c!==void 0?c:s.defaultError}},description:a}}class Re{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return Or(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Or(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Ht,ctx:{common:t.parent.common,data:t.data,parsedType:Or(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(ho(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const a={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Or(t)},i=this._parseSync({data:t,path:a.path,parent:a});return hg(a,i)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Or(t)},a=this._parse({data:t,path:r.path,parent:r}),i=await(ho(a)?a:Promise.resolve(a));return hg(r,i)}refine(t,n){const r=a=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(a):n;return this._refinement((a,i)=>{const o=t(a),s=()=>i.addIssue({code:te.custom,...r(a)});return typeof Promise<"u"&&o instanceof Promise?o.then(u=>u?!0:(s(),!1)):o?!0:(s(),!1)})}refinement(t,n){return this._refinement((r,a)=>t(r)?!0:(a.addIssue(typeof n=="function"?n(r,a):n),!1))}_refinement(t){return new Nn({schema:this,typeName:_e.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return qn.create(this,this._def)}nullable(){return Nr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Dn.create(this,this._def)}promise(){return ei.create(this,this._def)}or(t){return vo.create([this,t],this._def)}and(t){return yo.create(this,t,this._def)}transform(t){return new Nn({...Ee(this._def),schema:this,typeName:_e.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new To({...Ee(this._def),innerType:this,defaultValue:n,typeName:_e.ZodDefault})}brand(){return new kh({typeName:_e.ZodBranded,type:this,...Ee(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Co({...Ee(this._def),innerType:this,catchValue:n,typeName:_e.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Ko.create(this,t)}readonly(){return ko.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const cO=/^c[^\s-]{8,}$/i,uO=/^[0-9a-z]+$/,lO=/^[0-9A-HJKMNP-TV-Z]{26}$/,dO=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,fO=/^[a-z0-9_-]{21}$/i,hO=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,pO=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,mO="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Bl;const gO=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,vO=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,yO=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,_1="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",bO=new RegExp(`^${_1}$`);function w1(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function xO(e){return new RegExp(`^${w1(e)}$`)}function T1(e){let t=`${_1}T${w1(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function _O(e,t){return!!((t==="v4"||!t)&&gO.test(e)||(t==="v6"||!t)&&vO.test(e))}class An extends Re{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ue.string){const i=this._getOrReturnCtx(t);return ce(i,{code:te.invalid_type,expected:ue.string,received:i.parsedType}),we}const r=new Ht;let a;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(a=this._getOrReturnCtx(t,a),ce(a,{code:te.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="max")t.data.length>i.value&&(a=this._getOrReturnCtx(t,a),ce(a,{code:te.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const o=t.data.length>i.value,s=t.data.length<i.value;(o||s)&&(a=this._getOrReturnCtx(t,a),o?ce(a,{code:te.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):s&&ce(a,{code:te.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")pO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"email",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")Bl||(Bl=new RegExp(mO,"u")),Bl.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"emoji",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")dO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"uuid",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")fO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"nanoid",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")cO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"cuid",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")uO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"cuid2",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")lO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"ulid",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),ce(a,{validation:"url",code:te.invalid_string,message:i.message}),r.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"regex",code:te.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(a=this._getOrReturnCtx(t,a),ce(a,{code:te.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(a=this._getOrReturnCtx(t,a),ce(a,{code:te.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(a=this._getOrReturnCtx(t,a),ce(a,{code:te.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?T1(i).test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{code:te.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?bO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{code:te.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?xO(i).test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{code:te.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?hO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"duration",code:te.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?_O(t.data,i.version)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"ip",code:te.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?yO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"base64",code:te.invalid_string,message:i.message}),r.dirty()):Fe.assertNever(i);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(a=>t.test(a),{validation:n,code:te.invalid_string,...me.errToObj(r)})}_addCheck(t){return new An({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...me.errToObj(t)})}url(t){return this._addCheck({kind:"url",...me.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...me.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...me.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...me.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...me.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...me.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...me.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...me.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...me.errToObj(t)})}datetime(t){var n,r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,...me.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...me.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...me.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...me.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...me.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...me.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...me.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...me.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...me.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...me.errToObj(n)})}nonempty(t){return this.min(1,me.errToObj(t))}trim(){return new An({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new An({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new An({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}An.create=e=>{var t;return new An({checks:[],typeName:_e.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Ee(e)})};function wO(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,a=n>r?n:r,i=parseInt(e.toFixed(a).replace(".","")),o=parseInt(t.toFixed(a).replace(".",""));return i%o/Math.pow(10,a)}class Pr extends Re{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==ue.number){const i=this._getOrReturnCtx(t);return ce(i,{code:te.invalid_type,expected:ue.number,received:i.parsedType}),we}let r;const a=new Ht;for(const i of this._def.checks)i.kind==="int"?Fe.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),ce(r,{code:te.invalid_type,expected:"integer",received:"float",message:i.message}),a.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:te.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:te.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="multipleOf"?wO(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),ce(r,{code:te.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),ce(r,{code:te.not_finite,message:i.message}),a.dirty()):Fe.assertNever(i);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,me.toString(n))}gt(t,n){return this.setLimit("min",t,!1,me.toString(n))}lte(t,n){return this.setLimit("max",t,!0,me.toString(n))}lt(t,n){return this.setLimit("max",t,!1,me.toString(n))}setLimit(t,n,r,a){return new Pr({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:me.toString(a)}]})}_addCheck(t){return new Pr({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:me.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:me.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:me.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:me.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:me.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:me.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:me.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:me.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:me.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Fe.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Pr.create=e=>new Pr({checks:[],typeName:_e.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Ee(e)});class Dr extends Re{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==ue.bigint){const i=this._getOrReturnCtx(t);return ce(i,{code:te.invalid_type,expected:ue.bigint,received:i.parsedType}),we}let r;const a=new Ht;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:te.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:te.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:te.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):Fe.assertNever(i);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,me.toString(n))}gt(t,n){return this.setLimit("min",t,!1,me.toString(n))}lte(t,n){return this.setLimit("max",t,!0,me.toString(n))}lt(t,n){return this.setLimit("max",t,!1,me.toString(n))}setLimit(t,n,r,a){return new Dr({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:me.toString(a)}]})}_addCheck(t){return new Dr({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:me.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:me.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:me.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:me.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:me.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Dr.create=e=>{var t;return new Dr({checks:[],typeName:_e.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Ee(e)})};class po extends Re{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ue.boolean){const r=this._getOrReturnCtx(t);return ce(r,{code:te.invalid_type,expected:ue.boolean,received:r.parsedType}),we}return Kt(t.data)}}po.create=e=>new po({typeName:_e.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Ee(e)});class la extends Re{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ue.date){const i=this._getOrReturnCtx(t);return ce(i,{code:te.invalid_type,expected:ue.date,received:i.parsedType}),we}if(isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return ce(i,{code:te.invalid_date}),we}const r=new Ht;let a;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(a=this._getOrReturnCtx(t,a),ce(a,{code:te.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(a=this._getOrReturnCtx(t,a),ce(a,{code:te.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):Fe.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new la({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:me.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:me.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}la.create=e=>new la({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:_e.ZodDate,...Ee(e)});class oc extends Re{_parse(t){if(this._getType(t)!==ue.symbol){const r=this._getOrReturnCtx(t);return ce(r,{code:te.invalid_type,expected:ue.symbol,received:r.parsedType}),we}return Kt(t.data)}}oc.create=e=>new oc({typeName:_e.ZodSymbol,...Ee(e)});class mo extends Re{_parse(t){if(this._getType(t)!==ue.undefined){const r=this._getOrReturnCtx(t);return ce(r,{code:te.invalid_type,expected:ue.undefined,received:r.parsedType}),we}return Kt(t.data)}}mo.create=e=>new mo({typeName:_e.ZodUndefined,...Ee(e)});class go extends Re{_parse(t){if(this._getType(t)!==ue.null){const r=this._getOrReturnCtx(t);return ce(r,{code:te.invalid_type,expected:ue.null,received:r.parsedType}),we}return Kt(t.data)}}go.create=e=>new go({typeName:_e.ZodNull,...Ee(e)});class Qa extends Re{constructor(){super(...arguments),this._any=!0}_parse(t){return Kt(t.data)}}Qa.create=e=>new Qa({typeName:_e.ZodAny,...Ee(e)});class ra extends Re{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Kt(t.data)}}ra.create=e=>new ra({typeName:_e.ZodUnknown,...Ee(e)});class hr extends Re{_parse(t){const n=this._getOrReturnCtx(t);return ce(n,{code:te.invalid_type,expected:ue.never,received:n.parsedType}),we}}hr.create=e=>new hr({typeName:_e.ZodNever,...Ee(e)});class sc extends Re{_parse(t){if(this._getType(t)!==ue.undefined){const r=this._getOrReturnCtx(t);return ce(r,{code:te.invalid_type,expected:ue.void,received:r.parsedType}),we}return Kt(t.data)}}sc.create=e=>new sc({typeName:_e.ZodVoid,...Ee(e)});class Dn extends Re{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),a=this._def;if(n.parsedType!==ue.array)return ce(n,{code:te.invalid_type,expected:ue.array,received:n.parsedType}),we;if(a.exactLength!==null){const o=n.data.length>a.exactLength.value,s=n.data.length<a.exactLength.value;(o||s)&&(ce(n,{code:o?te.too_big:te.too_small,minimum:s?a.exactLength.value:void 0,maximum:o?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),r.dirty())}if(a.minLength!==null&&n.data.length<a.minLength.value&&(ce(n,{code:te.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),r.dirty()),a.maxLength!==null&&n.data.length>a.maxLength.value&&(ce(n,{code:te.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((o,s)=>a.type._parseAsync(new Gn(n,o,n.path,s)))).then(o=>Ht.mergeArray(r,o));const i=[...n.data].map((o,s)=>a.type._parseSync(new Gn(n,o,n.path,s)));return Ht.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new Dn({...this._def,minLength:{value:t,message:me.toString(n)}})}max(t,n){return new Dn({...this._def,maxLength:{value:t,message:me.toString(n)}})}length(t,n){return new Dn({...this._def,exactLength:{value:t,message:me.toString(n)}})}nonempty(t){return this.min(1,t)}}Dn.create=(e,t)=>new Dn({type:e,minLength:null,maxLength:null,exactLength:null,typeName:_e.ZodArray,...Ee(t)});function Na(e){if(e instanceof mt){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=qn.create(Na(r))}return new mt({...e._def,shape:()=>t})}else return e instanceof Dn?new Dn({...e._def,type:Na(e.element)}):e instanceof qn?qn.create(Na(e.unwrap())):e instanceof Nr?Nr.create(Na(e.unwrap())):e instanceof Zn?Zn.create(e.items.map(t=>Na(t))):e}class mt extends Re{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=Fe.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==ue.object){const c=this._getOrReturnCtx(t);return ce(c,{code:te.invalid_type,expected:ue.object,received:c.parsedType}),we}const{status:r,ctx:a}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),s=[];if(!(this._def.catchall instanceof hr&&this._def.unknownKeys==="strip"))for(const c in a.data)o.includes(c)||s.push(c);const u=[];for(const c of o){const l=i[c],d=a.data[c];u.push({key:{status:"valid",value:c},value:l._parse(new Gn(a,d,a.path,c)),alwaysSet:c in a.data})}if(this._def.catchall instanceof hr){const c=this._def.unknownKeys;if(c==="passthrough")for(const l of s)u.push({key:{status:"valid",value:l},value:{status:"valid",value:a.data[l]}});else if(c==="strict")s.length>0&&(ce(a,{code:te.unrecognized_keys,keys:s}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const l of s){const d=a.data[l];u.push({key:{status:"valid",value:l},value:c._parse(new Gn(a,d,a.path,l)),alwaysSet:l in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const c=[];for(const l of u){const d=await l.key,f=await l.value;c.push({key:d,value:f,alwaysSet:l.alwaysSet})}return c}).then(c=>Ht.mergeObjectSync(r,c)):Ht.mergeObjectSync(r,u)}get shape(){return this._def.shape()}strict(t){return me.errToObj,new mt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var a,i,o,s;const u=(o=(i=(a=this._def).errorMap)===null||i===void 0?void 0:i.call(a,n,r).message)!==null&&o!==void 0?o:r.defaultError;return n.code==="unrecognized_keys"?{message:(s=me.errToObj(t).message)!==null&&s!==void 0?s:u}:{message:u}}}:{}})}strip(){return new mt({...this._def,unknownKeys:"strip"})}passthrough(){return new mt({...this._def,unknownKeys:"passthrough"})}extend(t){return new mt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new mt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:_e.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new mt({...this._def,catchall:t})}pick(t){const n={};return Fe.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new mt({...this._def,shape:()=>n})}omit(t){const n={};return Fe.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new mt({...this._def,shape:()=>n})}deepPartial(){return Na(this)}partial(t){const n={};return Fe.objectKeys(this.shape).forEach(r=>{const a=this.shape[r];t&&!t[r]?n[r]=a:n[r]=a.optional()}),new mt({...this._def,shape:()=>n})}required(t){const n={};return Fe.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof qn;)i=i._def.innerType;n[r]=i}}),new mt({...this._def,shape:()=>n})}keyof(){return C1(Fe.objectKeys(this.shape))}}mt.create=(e,t)=>new mt({shape:()=>e,unknownKeys:"strip",catchall:hr.create(),typeName:_e.ZodObject,...Ee(t)});mt.strictCreate=(e,t)=>new mt({shape:()=>e,unknownKeys:"strict",catchall:hr.create(),typeName:_e.ZodObject,...Ee(t)});mt.lazycreate=(e,t)=>new mt({shape:e,unknownKeys:"strip",catchall:hr.create(),typeName:_e.ZodObject,...Ee(t)});class vo extends Re{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function a(i){for(const s of i)if(s.result.status==="valid")return s.result;for(const s of i)if(s.result.status==="dirty")return n.common.issues.push(...s.ctx.common.issues),s.result;const o=i.map(s=>new gn(s.ctx.common.issues));return ce(n,{code:te.invalid_union,unionErrors:o}),we}if(n.common.async)return Promise.all(r.map(async i=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(a);{let i;const o=[];for(const u of r){const c={...n,common:{...n.common,issues:[]},parent:null},l=u._parseSync({data:n.data,path:n.path,parent:c});if(l.status==="valid")return l;l.status==="dirty"&&!i&&(i={result:l,ctx:c}),c.common.issues.length&&o.push(c.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const s=o.map(u=>new gn(u));return ce(n,{code:te.invalid_union,unionErrors:s}),we}}get options(){return this._def.options}}vo.create=(e,t)=>new vo({options:e,typeName:_e.ZodUnion,...Ee(t)});const nr=e=>e instanceof xo?nr(e.schema):e instanceof Nn?nr(e.innerType()):e instanceof _o?[e.value]:e instanceof Ir?e.options:e instanceof wo?Fe.objectValues(e.enum):e instanceof To?nr(e._def.innerType):e instanceof mo?[void 0]:e instanceof go?[null]:e instanceof qn?[void 0,...nr(e.unwrap())]:e instanceof Nr?[null,...nr(e.unwrap())]:e instanceof kh||e instanceof ko?nr(e.unwrap()):e instanceof Co?nr(e._def.innerType):[];class au extends Re{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ue.object)return ce(n,{code:te.invalid_type,expected:ue.object,received:n.parsedType}),we;const r=this.discriminator,a=n.data[r],i=this.optionsMap.get(a);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(ce(n,{code:te.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),we)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const a=new Map;for(const i of n){const o=nr(i.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const s of o){if(a.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);a.set(s,i)}}return new au({typeName:_e.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:a,...Ee(r)})}}function Jd(e,t){const n=Or(e),r=Or(t);if(e===t)return{valid:!0,data:e};if(n===ue.object&&r===ue.object){const a=Fe.objectKeys(t),i=Fe.objectKeys(e).filter(s=>a.indexOf(s)!==-1),o={...e,...t};for(const s of i){const u=Jd(e[s],t[s]);if(!u.valid)return{valid:!1};o[s]=u.data}return{valid:!0,data:o}}else if(n===ue.array&&r===ue.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let i=0;i<e.length;i++){const o=e[i],s=t[i],u=Jd(o,s);if(!u.valid)return{valid:!1};a.push(u.data)}return{valid:!0,data:a}}else return n===ue.date&&r===ue.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class yo extends Re{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=(i,o)=>{if(Kd(i)||Kd(o))return we;const s=Jd(i.value,o.value);return s.valid?((Xd(i)||Xd(o))&&n.dirty(),{status:n.value,value:s.data}):(ce(r,{code:te.invalid_intersection_types}),we)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,o])=>a(i,o)):a(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}yo.create=(e,t,n)=>new yo({left:e,right:t,typeName:_e.ZodIntersection,...Ee(n)});class Zn extends Re{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ue.array)return ce(r,{code:te.invalid_type,expected:ue.array,received:r.parsedType}),we;if(r.data.length<this._def.items.length)return ce(r,{code:te.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),we;!this._def.rest&&r.data.length>this._def.items.length&&(ce(r,{code:te.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((o,s)=>{const u=this._def.items[s]||this._def.rest;return u?u._parse(new Gn(r,o,r.path,s)):null}).filter(o=>!!o);return r.common.async?Promise.all(i).then(o=>Ht.mergeArray(n,o)):Ht.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new Zn({...this._def,rest:t})}}Zn.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Zn({items:e,typeName:_e.ZodTuple,rest:null,...Ee(t)})};class bo extends Re{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ue.object)return ce(r,{code:te.invalid_type,expected:ue.object,received:r.parsedType}),we;const a=[],i=this._def.keyType,o=this._def.valueType;for(const s in r.data)a.push({key:i._parse(new Gn(r,s,r.path,s)),value:o._parse(new Gn(r,r.data[s],r.path,s)),alwaysSet:s in r.data});return r.common.async?Ht.mergeObjectAsync(n,a):Ht.mergeObjectSync(n,a)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof Re?new bo({keyType:t,valueType:n,typeName:_e.ZodRecord,...Ee(r)}):new bo({keyType:An.create(),valueType:t,typeName:_e.ZodRecord,...Ee(n)})}}class cc extends Re{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ue.map)return ce(r,{code:te.invalid_type,expected:ue.map,received:r.parsedType}),we;const a=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map(([s,u],c)=>({key:a._parse(new Gn(r,s,r.path,[c,"key"])),value:i._parse(new Gn(r,u,r.path,[c,"value"]))}));if(r.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const u of o){const c=await u.key,l=await u.value;if(c.status==="aborted"||l.status==="aborted")return we;(c.status==="dirty"||l.status==="dirty")&&n.dirty(),s.set(c.value,l.value)}return{status:n.value,value:s}})}else{const s=new Map;for(const u of o){const c=u.key,l=u.value;if(c.status==="aborted"||l.status==="aborted")return we;(c.status==="dirty"||l.status==="dirty")&&n.dirty(),s.set(c.value,l.value)}return{status:n.value,value:s}}}}cc.create=(e,t,n)=>new cc({valueType:t,keyType:e,typeName:_e.ZodMap,...Ee(n)});class da extends Re{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ue.set)return ce(r,{code:te.invalid_type,expected:ue.set,received:r.parsedType}),we;const a=this._def;a.minSize!==null&&r.data.size<a.minSize.value&&(ce(r,{code:te.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),n.dirty()),a.maxSize!==null&&r.data.size>a.maxSize.value&&(ce(r,{code:te.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),n.dirty());const i=this._def.valueType;function o(u){const c=new Set;for(const l of u){if(l.status==="aborted")return we;l.status==="dirty"&&n.dirty(),c.add(l.value)}return{status:n.value,value:c}}const s=[...r.data.values()].map((u,c)=>i._parse(new Gn(r,u,r.path,c)));return r.common.async?Promise.all(s).then(u=>o(u)):o(s)}min(t,n){return new da({...this._def,minSize:{value:t,message:me.toString(n)}})}max(t,n){return new da({...this._def,maxSize:{value:t,message:me.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}da.create=(e,t)=>new da({valueType:e,minSize:null,maxSize:null,typeName:_e.ZodSet,...Ee(t)});class Ba extends Re{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ue.function)return ce(n,{code:te.invalid_type,expected:ue.function,received:n.parsedType}),we;function r(s,u){return ac({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,rc(),Ja].filter(c=>!!c),issueData:{code:te.invalid_arguments,argumentsError:u}})}function a(s,u){return ac({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,rc(),Ja].filter(c=>!!c),issueData:{code:te.invalid_return_type,returnTypeError:u}})}const i={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof ei){const s=this;return Kt(async function(...u){const c=new gn([]),l=await s._def.args.parseAsync(u,i).catch(p=>{throw c.addIssue(r(u,p)),c}),d=await Reflect.apply(o,this,l);return await s._def.returns._def.type.parseAsync(d,i).catch(p=>{throw c.addIssue(a(d,p)),c})})}else{const s=this;return Kt(function(...u){const c=s._def.args.safeParse(u,i);if(!c.success)throw new gn([r(u,c.error)]);const l=Reflect.apply(o,this,c.data),d=s._def.returns.safeParse(l,i);if(!d.success)throw new gn([a(l,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Ba({...this._def,args:Zn.create(t).rest(ra.create())})}returns(t){return new Ba({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Ba({args:t||Zn.create([]).rest(ra.create()),returns:n||ra.create(),typeName:_e.ZodFunction,...Ee(r)})}}class xo extends Re{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}xo.create=(e,t)=>new xo({getter:e,typeName:_e.ZodLazy,...Ee(t)});class _o extends Re{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return ce(n,{received:n.data,code:te.invalid_literal,expected:this._def.value}),we}return{status:"valid",value:t.data}}get value(){return this._def.value}}_o.create=(e,t)=>new _o({value:e,typeName:_e.ZodLiteral,...Ee(t)});function C1(e,t){return new Ir({values:e,typeName:_e.ZodEnum,...Ee(t)})}class Ir extends Re{constructor(){super(...arguments),Yi.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return ce(n,{expected:Fe.joinValues(r),received:n.parsedType,code:te.invalid_type}),we}if(ic(this,Yi)||x1(this,Yi,new Set(this._def.values)),!ic(this,Yi).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return ce(n,{received:n.data,code:te.invalid_enum_value,options:r}),we}return Kt(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Ir.create(t,{...this._def,...n})}exclude(t,n=this._def){return Ir.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Yi=new WeakMap;Ir.create=C1;class wo extends Re{constructor(){super(...arguments),Gi.set(this,void 0)}_parse(t){const n=Fe.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==ue.string&&r.parsedType!==ue.number){const a=Fe.objectValues(n);return ce(r,{expected:Fe.joinValues(a),received:r.parsedType,code:te.invalid_type}),we}if(ic(this,Gi)||x1(this,Gi,new Set(Fe.getValidEnumValues(this._def.values))),!ic(this,Gi).has(t.data)){const a=Fe.objectValues(n);return ce(r,{received:r.data,code:te.invalid_enum_value,options:a}),we}return Kt(t.data)}get enum(){return this._def.values}}Gi=new WeakMap;wo.create=(e,t)=>new wo({values:e,typeName:_e.ZodNativeEnum,...Ee(t)});class ei extends Re{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ue.promise&&n.common.async===!1)return ce(n,{code:te.invalid_type,expected:ue.promise,received:n.parsedType}),we;const r=n.parsedType===ue.promise?n.data:Promise.resolve(n.data);return Kt(r.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}}ei.create=(e,t)=>new ei({type:e,typeName:_e.ZodPromise,...Ee(t)});class Nn extends Re{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===_e.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=this._def.effect||null,i={addIssue:o=>{ce(r,o),o.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),a.type==="preprocess"){const o=a.transform(r.data,i);if(r.common.async)return Promise.resolve(o).then(async s=>{if(n.value==="aborted")return we;const u=await this._def.schema._parseAsync({data:s,path:r.path,parent:r});return u.status==="aborted"?we:u.status==="dirty"||n.value==="dirty"?Fa(u.value):u});{if(n.value==="aborted")return we;const s=this._def.schema._parseSync({data:o,path:r.path,parent:r});return s.status==="aborted"?we:s.status==="dirty"||n.value==="dirty"?Fa(s.value):s}}if(a.type==="refinement"){const o=s=>{const u=a.refinement(s,i);if(r.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?we:(s.status==="dirty"&&n.dirty(),o(s.value),{status:n.value,value:s.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>s.status==="aborted"?we:(s.status==="dirty"&&n.dirty(),o(s.value).then(()=>({status:n.value,value:s.value}))))}if(a.type==="transform")if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!fo(o))return o;const s=a.transform(o.value,i);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:s}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>fo(o)?Promise.resolve(a.transform(o.value,i)).then(s=>({status:n.value,value:s})):o);Fe.assertNever(a)}}Nn.create=(e,t,n)=>new Nn({schema:e,typeName:_e.ZodEffects,effect:t,...Ee(n)});Nn.createWithPreprocess=(e,t,n)=>new Nn({schema:t,effect:{type:"preprocess",transform:e},typeName:_e.ZodEffects,...Ee(n)});class qn extends Re{_parse(t){return this._getType(t)===ue.undefined?Kt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}qn.create=(e,t)=>new qn({innerType:e,typeName:_e.ZodOptional,...Ee(t)});class Nr extends Re{_parse(t){return this._getType(t)===ue.null?Kt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Nr.create=(e,t)=>new Nr({innerType:e,typeName:_e.ZodNullable,...Ee(t)});class To extends Re{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===ue.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}To.create=(e,t)=>new To({innerType:e,typeName:_e.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ee(t)});class Co extends Re{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},a=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return ho(a)?a.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new gn(r.common.issues)},input:r.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new gn(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Co.create=(e,t)=>new Co({innerType:e,typeName:_e.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ee(t)});class uc extends Re{_parse(t){if(this._getType(t)!==ue.nan){const r=this._getOrReturnCtx(t);return ce(r,{code:te.invalid_type,expected:ue.nan,received:r.parsedType}),we}return{status:"valid",value:t.data}}}uc.create=e=>new uc({typeName:_e.ZodNaN,...Ee(e)});const TO=Symbol("zod_brand");class kh extends Re{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Ko extends Re{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?we:i.status==="dirty"?(n.dirty(),Fa(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const a=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?we:a.status==="dirty"?(n.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:r.path,parent:r})}}static create(t,n){return new Ko({in:t,out:n,typeName:_e.ZodPipeline})}}class ko extends Re{_parse(t){const n=this._def.innerType._parse(t),r=a=>(fo(a)&&(a.value=Object.freeze(a.value)),a);return ho(n)?n.then(a=>r(a)):r(n)}unwrap(){return this._def.innerType}}ko.create=(e,t)=>new ko({innerType:e,typeName:_e.ZodReadonly,...Ee(t)});function k1(e,t={},n){return e?Qa.create().superRefine((r,a)=>{var i,o;if(!e(r)){const s=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,u=(o=(i=s.fatal)!==null&&i!==void 0?i:n)!==null&&o!==void 0?o:!0,c=typeof s=="string"?{message:s}:s;a.addIssue({code:"custom",...c,fatal:u})}}):Qa.create()}const CO={object:mt.lazycreate};var _e;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(_e||(_e={}));const kO=(e,t={message:`Input not instance of ${e.name}`})=>k1(n=>n instanceof e,t),S1=An.create,O1=Pr.create,SO=uc.create,OO=Dr.create,E1=po.create,EO=la.create,$O=oc.create,MO=mo.create,RO=go.create,AO=Qa.create,jO=ra.create,PO=hr.create,DO=sc.create,IO=Dn.create,NO=mt.create,FO=mt.strictCreate,LO=vo.create,UO=au.create,BO=yo.create,WO=Zn.create,zO=bo.create,HO=cc.create,VO=da.create,qO=Ba.create,YO=xo.create,GO=_o.create,ZO=Ir.create,KO=wo.create,XO=ei.create,pg=Nn.create,JO=qn.create,QO=Nr.create,eE=Nn.createWithPreprocess,tE=Ko.create,nE=()=>S1().optional(),rE=()=>O1().optional(),aE=()=>E1().optional(),iE={string:e=>An.create({...e,coerce:!0}),number:e=>Pr.create({...e,coerce:!0}),boolean:e=>po.create({...e,coerce:!0}),bigint:e=>Dr.create({...e,coerce:!0}),date:e=>la.create({...e,coerce:!0})},oE=we;var Ft=Object.freeze({__proto__:null,defaultErrorMap:Ja,setErrorMap:oO,getErrorMap:rc,makeIssue:ac,EMPTY_PATH:sO,addIssueToContext:ce,ParseStatus:Ht,INVALID:we,DIRTY:Fa,OK:Kt,isAborted:Kd,isDirty:Xd,isValid:fo,isAsync:ho,get util(){return Fe},get objectUtil(){return Zd},ZodParsedType:ue,getParsedType:Or,ZodType:Re,datetimeRegex:T1,ZodString:An,ZodNumber:Pr,ZodBigInt:Dr,ZodBoolean:po,ZodDate:la,ZodSymbol:oc,ZodUndefined:mo,ZodNull:go,ZodAny:Qa,ZodUnknown:ra,ZodNever:hr,ZodVoid:sc,ZodArray:Dn,ZodObject:mt,ZodUnion:vo,ZodDiscriminatedUnion:au,ZodIntersection:yo,ZodTuple:Zn,ZodRecord:bo,ZodMap:cc,ZodSet:da,ZodFunction:Ba,ZodLazy:xo,ZodLiteral:_o,ZodEnum:Ir,ZodNativeEnum:wo,ZodPromise:ei,ZodEffects:Nn,ZodTransformer:Nn,ZodOptional:qn,ZodNullable:Nr,ZodDefault:To,ZodCatch:Co,ZodNaN:uc,BRAND:TO,ZodBranded:kh,ZodPipeline:Ko,ZodReadonly:ko,custom:k1,Schema:Re,ZodSchema:Re,late:CO,get ZodFirstPartyTypeKind(){return _e},coerce:iE,any:AO,array:IO,bigint:OO,boolean:E1,date:EO,discriminatedUnion:UO,effect:pg,enum:ZO,function:qO,instanceof:kO,intersection:BO,lazy:YO,literal:GO,map:HO,nan:SO,nativeEnum:KO,never:PO,null:RO,nullable:QO,number:O1,object:NO,oboolean:aE,onumber:rE,optional:JO,ostring:nE,pipeline:tE,preprocess:eE,promise:XO,record:zO,set:VO,strictObject:FO,string:S1,symbol:$O,transformer:pg,tuple:WO,undefined:MO,union:LO,unknown:jO,void:DO,NEVER:oE,ZodIssueCode:te,quotelessJson:iO,ZodError:gn});const iu=()=>{const{texts:{formValidation:e}}=h.useContext(bn),t=h.useCallback(g=>{let v=(g!=null&&g.useCoerce?Ft.coerce:Ft).string({invalid_type_error:e.required,required_error:e.required});return g!=null&&g.email&&(v=v.email(e.invalidEmail)),g!=null&&g.length&&(v=v.min(g.length,e.length(g.length))),g!=null&&g.minLength&&(v=v.min(g.minLength,e.minLength(g.minLength))),g!=null&&g.maxLength&&(v=v.max(g.maxLength,e.maxLength(g.maxLength))),g!=null&&g.numeric&&(v=v.regex(/^\d+$/,e.noCharactersOtherThanNumbers)),v.transform(x=>x??null)},[e]),n=h.useCallback(g=>t(g).nullable().optional().transform(v=>v??null),[t]),r=h.useCallback(g=>{const v=(g==null?void 0:g.min)??Number.MIN_SAFE_INTEGER,x=(g==null?void 0:g.max)??Number.MAX_SAFE_INTEGER,w=(g!=null&&g.useCoerce?Ft.coerce:Ft).number({invalid_type_error:e.required,required_error:e.required}).min(v,e.lessThanMin(v)).max(x,e.moreThanMax(x));return w.transform(b=>b??null),w},[e]),a=h.useCallback(g=>r(g).nullable().optional().transform(v=>v??null),[r]),i=h.useCallback(g=>(g!=null&&g.useCoerce?Ft.coerce:Ft).boolean({invalid_type_error:e.required,required_error:e.required}).transform(v=>v??null),[e.required]),o=h.useCallback(g=>(g!=null&&g.useCoerce?Ft.coerce:Ft).string({invalid_type_error:e.required,required_error:e.required}).refine(l1,{message:e.invalidDate}).transform(x=>x??null),[e.invalidDate,e.required]),s=h.useCallback(g=>o(g).nullable().transform(v=>v??null),[o]),u=h.useCallback((g,v)=>Ft.enum(g,{invalid_type_error:e.required,required_error:e.required}).transform(w=>w??null),[e.required]),c=h.useCallback((g,v)=>u(g,v).nullable().transform(x=>x??null),[u]),l=h.useCallback(g=>Ft.object({id:a({useCoerce:!0})}).nullable().transform(x=>x??null),[a]),d=h.useCallback(g=>Ft.object({id:r()}).transform(x=>x??null),[r]),f=h.useCallback(g=>Ft.object({id:n({useCoerce:!0})}).nullable().transform(x=>x??null),[n]),p=h.useCallback(g=>Ft.object({id:t()}).transform(x=>x??null),[t]),m=h.useCallback(({required:g,multiple:v,maxFileSize:x})=>Ft.any().transform(b=>Array.from(b??[])).refine(b=>!g||(b==null?void 0:b.length)>0,"File is required.").refine(b=>v||(b==null?void 0:b.length)<=1,"Multiple files not allowed.").refine(b=>b.every(T=>T.size<=x),`Maximum file size is ${tu(x)}.`).transform(b=>(v?b:b==null?void 0:b[0])??null),[]);return{zString:n,zStringRequired:t,zNumber:a,zNumberRequired:r,zBool:i,zDate:s,zDateRequired:o,zEnum:c,zEnumRequired:u,zObjectIdInt:l,zObjectIdIntRequired:d,zObjectIdStr:f,zObjectIdStrRequired:p,zFile:m}},$1=(e,t,n)=>h.useMemo(()=>n||e!=="date"&&e!=="datetime-local"&&e!=="time"||t?e:"text",[t,e,n]),Sh=h.createContext({useMsal:!1,msalInstance:null,msalScopes:[]}),M1=h.createContext({delegation:null,setDelegation:()=>{},availableDelegations:null,setAvailableDelegations:()=>{},refreshAvailableDelegations:async()=>{}}),R1=h.createContext({addHelmet:e=>{},removeHelmet:()=>{}}),sE="_button_1wjon_1",cE="_filled_1wjon_7",uE="_sm_1wjon_13",lE="_md_1wjon_18",dE="_lg_1wjon_23",ja={button:sE,filled:cE,sm:uE,md:lE,lg:dE},fa=({variant:e="filled",color:t="primary",size:n="md",className:r,children:a,...i})=>i.as==="link"?y.jsx(jc.Link,{to:i.href??"/",className:ie(`luminus-primary-button ${t} btn ${e==="outlined"?`btn-outline-${t}`:`btn-${t}`} ${r??""}`,ja.button,ja[e],ja[n]),...i,children:a}):i.as==="button"||i.as===void 0?y.jsx("button",{type:"button",className:ie(`luminus-primary-button ${t} btn ${e==="outlined"?`btn-outline-${t}`:`btn-${t}`} ${r??""}`,ja.button,ja[e],ja[n]),...i,children:a}):null,fE="_button_1r3i0_1",Qd={button:fE},ou=({color:e="primary",icon:t,className:n,children:r,...a})=>a.as==="link"?y.jsxs(jc.Link,{to:a.href??"/",className:ie(`luminus-context-button btn text-${e} ${n??""}`,Qd.button),...a,children:[t,r]}):a.as==="button"||a.as===void 0?y.jsxs("button",{type:"button",className:ie(`luminus-context-button btn text-${e} ${n??""}`,Qd.button),...a,children:[t,r]}):null,hE="_icon-button_15e26_1",pE="_sm_15e26_14",mE="_md_15e26_23",gE="_lg_15e26_32",gs={"icon-button":"_icon-button_15e26_1",iconButton:hE,sm:pE,md:mE,lg:gE},su=({type:e="button",color:t="primary",size:n="md",children:r,className:a,...i})=>i.as==="link"?y.jsx(jc.Link,{to:i.href??"/",className:ie(`luminus-icon-button btn text-${t} ${a??""}`,gs.iconButton,gs[n]),...i,children:r}):i.as==="button"||i.as===void 0?y.jsx("button",{type:e,className:ie(`luminus-icon-button btn text-${t} ${a??""}`,gs.iconButton,gs[n]),...i,children:r}):null,vE="_h1_14r4v_1",yE="_h3_14r4v_8",bE="_h6_14r4v_15",xE="_subtitle_14r4v_22",_E="_body_14r4v_29",wE="_body2_14r4v_36",TE="_caption_14r4v_43",CE="_form-label_14r4v_50",_r={h1:vE,h3:yE,h6:bE,subtitle:xE,body:_E,body2:wE,caption:TE,"form-label":"_form-label_14r4v_50",formLabel:CE},kE=({variant:e,className:t,children:n})=>{switch(e){case"h1":return y.jsx("h1",{className:ie("luminus-text-primary luminus-h1",_r.h1,t),children:n});case"h3":return y.jsx("h3",{className:ie("luminus-text luminus-h3",_r.h3,t),children:n});case"h6":return y.jsx("h6",{className:ie("luminus-text luminus-h6",_r.h6,t),children:n});case"subtitle":return y.jsx("div",{className:ie("luminus-text luminus-subtitle",_r.subtitle,t),children:n});case"body":return y.jsx("div",{className:ie("luminus-text luminus-body",_r.body,t),children:n});case"body2":return y.jsx("div",{className:ie("luminus-text luminus-body2",_r.body2,t),children:n});case"caption":return y.jsx("div",{className:ie("luminus-text-muted luminus-caption",_r.caption,t),children:n});case"form-label":return y.jsx("div",{className:ie("luminus-text luminus-form-label",_r.formLabel,t),children:n});default:return y.jsx(y.Fragment,{children:n})}},Oh=({variant:e,className:t,children:n})=>y.jsx(kE,{variant:e,className:t,children:n}),SE="_feedback_esh1j_1",OE="_feedback-spacer_esh1j_8",mg={feedback:SE,"feedback-spacer":"_feedback-spacer_esh1j_8",feedbackSpacer:OE},cu=({message:e})=>y.jsxs(y.Fragment,{children:[y.jsx("div",{className:ie("invalid-feedback luminus-invalid-feedback",mg.feedback),children:e}),y.jsx("div",{className:ie("invalid-feedback-spacer",mg.feedbackSpacer),children:e})]});function EE(e){return Ie({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function $E(e){return Ie({tag:"svg",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 ME(e){return Ie({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"},child:[]}]})(e)}function RE(e){return Ie({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm250.2-143.7c-12.2-12-47-8.7-64.4-6.5-17.2-10.5-28.7-25-36.8-46.3 3.9-16.1 10.1-40.6 5.4-56-4.2-26.2-37.8-23.6-42.6-5.9-4.4 16.1-.4 38.5 7 67.1-10 23.9-24.9 56-35.4 74.4-20 10.3-47 26.2-51 46.2-3.3 15.8 26 55.2 76.1-31.2 22.4-7.4 46.8-16.5 68.4-20.1 18.9 10.2 41 17 55.8 17 25.5 0 28-28.2 17.5-38.7zm-198.1 77.8c5.1-13.7 24.5-29.5 30.4-35-19 30.3-30.4 35.7-30.4 35zm81.6-190.6c7.4 0 6.7 32.1 1.8 40.8-4.4-13.9-4.3-40.8-1.8-40.8zm-24.4 136.6c9.7-16.9 18-37 24.7-54.7 8.3 15.1 18.9 27.2 30.1 35.5-20.8 4.3-38.9 13.1-54.8 19.2zm131.6-5s-5 6-37.3-7.8c35.1-2.6 40.9 5.4 37.3 7.8z"},child:[]}]})(e)}const AE="_item_1dy8x_1",A1={item:AE},ef=({color:e="primary",icon:t,className:n,children:r,...a})=>{const{as:i,to:o,...s}=a;return y.jsxs(co.Item,{className:ie(`btn luminus-dropdown-item text-nowrap rounded text-${e} ${n??""}`,A1.item),as:i==="link"?jc.Link:void 0,to:o??"",...s,children:[t,r]})},jE="_button_qhwih_1",PE={button:jE},j1=h.forwardRef(({color:e="primary",icon:t=y.jsx(Zk,{size:21}),text:n,onClick:r,className:a,children:i,...o},s)=>y.jsxs("button",{type:"button",ref:s,onClick:u=>{u.preventDefault(),r(u)},"aria-label":"dropdown toggle",className:ie(`btn luminus-context-button text-${e} ${a??""}`,PE.button),...o,children:[t,n]})),DE="_avatar-icon_1axl6_1",IE={"avatar-icon":"_avatar-icon_1axl6_1",avatarIcon:DE},P1=({name:e,fontSize:t,size:n})=>{const r=h.useMemo(()=>{const o=e.split(" ");return o.length<2?e:lo(" ",o.at(o.length-2),o.at(o.length-1))},[e]),a=h.useMemo(()=>{const o=r.split(" ");return lo("",...o.map(s=>s.at(0)??void 0))},[r]),i=o=>{let s=0,u;for(u=0;u<o.length;u+=1)s=o.charCodeAt(u)+((s<<5)-s);let c="#";for(u=0;u<3;u+=1){const l=s>>u*8&255;c+=`00${l.toString(16)}`.slice(-2)}return c};return y.jsx(Cb,{placement:"bottom",overlay:y.jsx(mh,{children:e}),children:y.jsx("div",{className:ie("luminus-avatar-icon",IE.avatarIcon),style:{backgroundColor:i(r),fontSize:t??void 0,minHeight:n??void 0,height:n??void 0,maxHeight:n??void 0,minWidth:n??void 0,width:n??void 0,maxWidth:n??void 0},children:y.jsx("div",{children:a})})})},NE=h.forwardRef(({userName:e,onClick:t,children:n},r)=>y.jsxs("button",{type:"button",ref:r,onClick:a=>{a.preventDefault(),t(a)},"aria-label":"User avatar toggle",className:"m-0 p-0",style:{backgroundColor:"transparent",border:"none",cursor:"pointer"},children:[y.jsx(P1,{name:e}),n]})),D1=e=>y.jsx(co.Toggle,{...e}),FE="_dropdown_1lk66_1",LE={dropdown:FE},I1=({toggle:e,children:t,...n})=>y.jsxs(co,{...n,children:[e,y.jsx(co.Menu,{className:ie("luminus-dropdown rounded shadow",LE.dropdown),children:t})]}),UE="_floating-label_1lxzn_1",BE="_without-label_1lxzn_21",WE="_floating-label-check_1lxzn_184",Wl={"floating-label":"_floating-label_1lxzn_1",floatingLabel:UE,"without-label":"_without-label_1lxzn_21",withoutLabel:BE,"floating-label-check":"_floating-label-check_1lxzn_184",floatingLabelCheck:WE},N1=h.forwardRef(({hidden:e,children:t,className:n,isInvalid:r,isForRadioInput:a,inputContainerClassName:i,isForCheckInput:o,...s},u)=>o?y.jsx("div",{className:ie("luminus-floating-label-check",Wl.floatingLabelCheck),children:t}):y.jsx(uh,{ref:u,label:s.withoutLabel?"":s.label,hidden:e??!1,className:ie(`luminus-floating-label ${n??""}`,Wl.floatingLabel,{[i??""]:i},{[Wl.withoutLabel]:s.withoutLabel}),children:t}));N1.displayName="FloatingLabelInput";const zE="_row-label-input_mqkkx_1",HE="_label_mqkkx_4",VE="_input-container_mqkkx_9",qE="_invalid-feedback_mqkkx_104",YE="_keep-check-label_mqkkx_132",GE="_is-invalid_mqkkx_160",Di={"row-label-input":"_row-label-input_mqkkx_1",rowLabelInput:zE,label:HE,"input-container":"_input-container_mqkkx_9",inputContainer:VE,"invalid-feedback":"_invalid-feedback_mqkkx_104",invalidFeedback:qE,"keep-check-label":"_keep-check-label_mqkkx_132",keepCheckLabel:YE,"is-invalid":"_is-invalid_mqkkx_160",isInvalid:GE},Xo=h.forwardRef(({hidden:e,children:t,className:n,isInvalid:r,isForRadioInput:a,isForTextAreaInput:i,inputContainerClassName:o,...s},u)=>y.jsxs("div",{ref:u,className:ie("luminus-row-label row gx-0 gy-0",{"is-invalid":r},{[Di.isInvalid]:r},{[n??""]:n},{"d-none":e},Di.rowLabelInput),children:[!s.withoutLabel&&y.jsx("label",{className:ie("label col-6",{"col-12":i},Di.label),children:y.jsx(Oh,{variant:"form-label",className:r?"text-danger":"",children:s.label})}),y.jsx("div",{className:ie("input-container",Di.inputContainer,{"col-6":!s.withoutLabel&&!i},{"col-12":s.withoutLabel||i},{[Di.keepCheckLabel]:a},{[o??""]:o}),children:t})]}));Xo.displayName="RowLabelInput";const F1=h.forwardRef(({children:e,className:t,hidden:n},r)=>y.jsx("div",{ref:r,className:`${n?"d-none":""} ${t}`,children:e}));F1.displayName="NoInputContainer";const ZE=h.forwardRef(({onClick:e,text:t},n)=>y.jsx("div",{ref:n,onClick:r=>{r.preventDefault(),e(r)},role:"button",className:"middle-div",children:y.jsxs("div",{className:"d-flex flex-column align-items-center",children:[y.jsx("div",{className:"mt-",children:"…"}),y.jsx("div",{className:"mt-1 middle-letter",children:t})]})}));var Eh=Qo(),Se=e=>Jo(e,Eh),$h=Qo();Se.write=e=>Jo(e,$h);var uu=Qo();Se.onStart=e=>Jo(e,uu);var Mh=Qo();Se.onFrame=e=>Jo(e,Mh);var Rh=Qo();Se.onFinish=e=>Jo(e,Rh);var Wa=[];Se.setTimeout=(e,t)=>{const n=Se.now()+t,r=()=>{const i=Wa.findIndex(o=>o.cancel==r);~i&&Wa.splice(i,1),Mr-=~i?1:0},a={time:n,handler:e,cancel:r};return Wa.splice(L1(n),0,a),Mr+=1,U1(),a};var L1=e=>~(~Wa.findIndex(t=>t.time>e)||~Wa.length);Se.cancel=e=>{uu.delete(e),Mh.delete(e),Rh.delete(e),Eh.delete(e),$h.delete(e)};Se.sync=e=>{tf=!0,Se.batchedUpdates(e),tf=!1};Se.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...a){t=a,Se.onStart(n)}return r.handler=e,r.cancel=()=>{uu.delete(n),t=null},r};var Ah=typeof window<"u"?window.requestAnimationFrame:()=>{};Se.use=e=>Ah=e;Se.now=typeof performance<"u"?()=>performance.now():Date.now;Se.batchedUpdates=e=>e();Se.catch=console.error;Se.frameLoop="always";Se.advance=()=>{Se.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):W1()};var $r=-1,Mr=0,tf=!1;function Jo(e,t){tf?(t.delete(e),e(0)):(t.add(e),U1())}function U1(){$r<0&&($r=0,Se.frameLoop!=="demand"&&Ah(B1))}function KE(){$r=-1}function B1(){~$r&&(Ah(B1),Se.batchedUpdates(W1))}function W1(){const e=$r;$r=Se.now();const t=L1($r);if(t&&(z1(Wa.splice(0,t),n=>n.handler()),Mr-=t),!Mr){KE();return}uu.flush(),Eh.flush(e?Math.min(64,$r-e):16.667),Mh.flush(),$h.flush(),Rh.flush()}function Qo(){let e=new Set,t=e;return{add(n){Mr+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Mr-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Mr-=t.size,z1(t,r=>r(n)&&e.add(r)),Mr+=e.size,t=e)}}}function z1(e,t){e.forEach(n=>{try{t(n)}catch(r){Se.catch(r)}})}var XE=Object.defineProperty,JE=(e,t)=>{for(var n in t)XE(e,n,{get:t[n],enumerable:!0})},Fn={};JE(Fn,{assign:()=>e$,colors:()=>Ar,createStringInterpolator:()=>Ph,skipAnimation:()=>V1,to:()=>H1,willAdvance:()=>Dh});function nf(){}var QE=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),ee={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 rr(e,t){if(ee.arr(e)){if(!ee.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var Ce=(e,t)=>e.forEach(t);function Kn(e,t,n){if(ee.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var Zt=e=>ee.und(e)?[]:ee.arr(e)?e:[e];function eo(e,t){if(e.size){const n=Array.from(e);e.clear(),Ce(n,t)}}var Zi=(e,...t)=>eo(e,n=>n(...t)),jh=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Ph,H1,Ar=null,V1=!1,Dh=nf,e$=e=>{e.to&&(H1=e.to),e.now&&(Se.now=e.now),e.colors!==void 0&&(Ar=e.colors),e.skipAnimation!=null&&(V1=e.skipAnimation),e.createStringInterpolator&&(Ph=e.createStringInterpolator),e.requestAnimationFrame&&Se.use(e.requestAnimationFrame),e.batchedUpdates&&(Se.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Dh=e.willAdvance),e.frameLoop&&(Se.frameLoop=e.frameLoop)},to=new Set,Tn=[],zl=[],lc=0,lu={get idle(){return!to.size&&!Tn.length},start(e){lc>e.priority?(to.add(e),Se.onStart(t$)):(q1(e),Se(rf))},advance:rf,sort(e){if(lc)Se.onFrame(()=>lu.sort(e));else{const t=Tn.indexOf(e);~t&&(Tn.splice(t,1),Y1(e))}},clear(){Tn=[],to.clear()}};function t$(){to.forEach(q1),to.clear(),Se(rf)}function q1(e){Tn.includes(e)||Y1(e)}function Y1(e){Tn.splice(n$(Tn,t=>t.priority>e.priority),0,e)}function rf(e){const t=zl;for(let n=0;n<Tn.length;n++){const r=Tn[n];lc=r.priority,r.idle||(Dh(r),r.advance(e),r.idle||t.push(r))}return lc=0,zl=Tn,zl.length=0,Tn=t,Tn.length>0}function n$(e,t){const n=e.findIndex(t);return n<0?e.length:n}var r$=(e,t,n)=>Math.min(Math.max(n,e),t),a$={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},jn="[-+]?\\d*\\.?\\d+",dc=jn+"%";function du(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var i$=new RegExp("rgb"+du(jn,jn,jn)),o$=new RegExp("rgba"+du(jn,jn,jn,jn)),s$=new RegExp("hsl"+du(jn,dc,dc)),c$=new RegExp("hsla"+du(jn,dc,dc,jn)),u$=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,l$=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,d$=/^#([0-9a-fA-F]{6})$/,f$=/^#([0-9a-fA-F]{8})$/;function h$(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=d$.exec(e))?parseInt(t[1]+"ff",16)>>>0:Ar&&Ar[e]!==void 0?Ar[e]:(t=i$.exec(e))?(Pa(t[1])<<24|Pa(t[2])<<16|Pa(t[3])<<8|255)>>>0:(t=o$.exec(e))?(Pa(t[1])<<24|Pa(t[2])<<16|Pa(t[3])<<8|yg(t[4]))>>>0:(t=u$.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=f$.exec(e))?parseInt(t[1],16)>>>0:(t=l$.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=s$.exec(e))?(gg(vg(t[1]),vs(t[2]),vs(t[3]))|255)>>>0:(t=c$.exec(e))?(gg(vg(t[1]),vs(t[2]),vs(t[3]))|yg(t[4]))>>>0:null}function Hl(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function gg(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r,i=Hl(a,r,e+1/3),o=Hl(a,r,e),s=Hl(a,r,e-1/3);return Math.round(i*255)<<24|Math.round(o*255)<<16|Math.round(s*255)<<8}function Pa(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function vg(e){return(parseFloat(e)%360+360)%360/360}function yg(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function vs(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function bg(e){let t=h$(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,a=(t&65280)>>>8,i=(t&255)/255;return`rgba(${n}, ${r}, ${a}, ${i})`}var So=(e,t,n)=>{if(ee.fun(e))return e;if(ee.arr(e))return So({range:e,output:t,extrapolate:n});if(ee.str(e.output[0]))return Ph(e);const r=e,a=r.output,i=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",u=r.easing||(c=>c);return c=>{const l=m$(c,i);return p$(c,i[l],i[l+1],a[l],a[l+1],u,o,s,r.map)}};function p$(e,t,n,r,a,i,o,s,u){let c=u?u(e):e;if(c<t){if(o==="identity")return c;o==="clamp"&&(c=t)}if(c>n){if(s==="identity")return c;s==="clamp"&&(c=n)}return r===a?r:t===n?e<=t?r:a:(t===-1/0?c=-c:n===1/0?c=c-t:c=(c-t)/(n-t),c=i(c),r===-1/0?c=-c:a===1/0?c=c+r:c=c*(a-r)+r,c)}function m$(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var g$=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,a=t==="end"?Math.floor(r):Math.ceil(r);return r$(0,1,a/e)},fc=1.70158,ys=fc*1.525,xg=fc+1,_g=2*Math.PI/3,wg=2*Math.PI/4.5,bs=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,v$={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>xg*e*e*e-fc*e*e,easeOutBack:e=>1+xg*Math.pow(e-1,3)+fc*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((ys+1)*2*e-ys)/2:(Math.pow(2*e-2,2)*((ys+1)*(e*2-2)+ys)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*_g),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*_g)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*wg))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*wg)/2+1,easeInBounce:e=>1-bs(1-e),easeOutBounce:bs,easeInOutBounce:e=>e<.5?(1-bs(1-2*e))/2:(1+bs(2*e-1))/2,steps:g$},Oo=Symbol.for("FluidValue.get"),ti=Symbol.for("FluidValue.observers"),wn=e=>!!(e&&e[Oo]),tn=e=>e&&e[Oo]?e[Oo]():e,Tg=e=>e[ti]||null;function y$(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Eo(e,t){const n=e[ti];n&&n.forEach(r=>{y$(r,t)})}var G1=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");b$(this,e)}},b$=(e,t)=>Z1(e,Oo,t);function pi(e,t){if(e[Oo]){let n=e[ti];n||Z1(e,ti,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function $o(e,t){const n=e[ti];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[ti]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var Z1=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Is=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,x$=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Cg=new RegExp(`(${Is.source})(%|[a-z]+)`,"i"),_$=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,fu=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,K1=e=>{const[t,n]=w$(e);if(!t||jh())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const a=window.getComputedStyle(document.documentElement).getPropertyValue(n);return a||e}else{if(n&&fu.test(n))return K1(n);if(n)return n}return e},w$=e=>{const t=fu.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Vl,T$=(e,t,n,r,a)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${a})`,X1=e=>{Vl||(Vl=Ar?new RegExp(`(${Object.keys(Ar).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(i=>tn(i).replace(fu,K1).replace(x$,bg).replace(Vl,bg)),n=t.map(i=>i.match(Is).map(Number)),a=n[0].map((i,o)=>n.map(s=>{if(!(o in s))throw Error('The arity of each "output" value must be equal');return s[o]})).map(i=>So({...e,output:i}));return i=>{var u;const o=!Cg.test(t[0])&&((u=t.find(c=>Cg.test(c)))==null?void 0:u.replace(Is,""));let s=0;return t[0].replace(Is,()=>`${a[s++](i)}${o||""}`).replace(_$,T$)}},Ih="react-spring: ",J1=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${Ih}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},C$=J1(console.warn);function k$(){C$(`${Ih}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var S$=J1(console.warn);function O$(){S$(`${Ih}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 hu(e){return ee.str(e)&&(e[0]=="#"||/\d/.test(e)||!jh()&&fu.test(e)||e in(Ar||{}))}var Kr=jh()?h.useEffect:h.useLayoutEffect,E$=()=>{const e=h.useRef(!1);return Kr(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Nh(){const e=h.useState()[1],t=E$();return()=>{t.current&&e(Math.random())}}function $$(e,t){const[n]=h.useState(()=>({inputs:t,result:e()})),r=h.useRef(),a=r.current;let i=a;return i?t&&i.inputs&&M$(t,i.inputs)||(i={inputs:t,result:e()}):i=n,h.useEffect(()=>{r.current=i,a==n&&(n.inputs=n.result=void 0)},[i]),i.result}function M$(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Fh=e=>h.useEffect(e,R$),R$=[];function af(e){const t=h.useRef();return h.useEffect(()=>{t.current=e}),t.current}var Mo=Symbol.for("Animated:node"),A$=e=>!!e&&e[Mo]===e,zn=e=>e&&e[Mo],Lh=(e,t)=>QE(e,Mo,t),pu=e=>e&&e[Mo]&&e[Mo].getPayload(),Q1=class{constructor(){Lh(this,this)}getPayload(){return this.payload||[]}},es=class extends Q1{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,ee.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new es(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return ee.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,ee.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Ro=class extends es{constructor(e){super(0),this._string=null,this._toString=So({output:[e,e]})}static create(e){return new Ro(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(ee.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=So({output:[this.getValue(),e]})),this._value=0,super.reset()}},hc={dependencies:null},mu=class extends Q1{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Kn(this.source,(n,r)=>{A$(n)?t[r]=n.getValue(e):wn(n)?t[r]=tn(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Ce(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Kn(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){hc.dependencies&&wn(e)&&hc.dependencies.add(e);const t=pu(e);t&&Ce(t,n=>this.add(n))}},ex=class extends mu{constructor(e){super(e)}static create(e){return new ex(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(j$)),!0)}};function j$(e){return(hu(e)?Ro:es).create(e)}function of(e){const t=zn(e);return t?t.constructor:ee.arr(e)?ex:hu(e)?Ro:es}var kg=(e,t)=>{const n=!ee.fun(e)||e.prototype&&e.prototype.isReactComponent;return h.forwardRef((r,a)=>{const i=h.useRef(null),o=n&&h.useCallback(m=>{i.current=I$(a,m)},[a]),[s,u]=D$(r,t),c=Nh(),l=()=>{const m=i.current;if(n&&!m)return;(m?t.applyAnimatedValues(m,s.getValue(!0)):!1)===!1&&c()},d=new P$(l,u),f=h.useRef();Kr(()=>(f.current=d,Ce(u,m=>pi(m,d)),()=>{f.current&&(Ce(f.current.deps,m=>$o(m,f.current)),Se.cancel(f.current.update))})),h.useEffect(l,[]),Fh(()=>()=>{const m=f.current;Ce(m.deps,g=>$o(g,m))});const p=t.getComponentProps(s.getValue());return oe.createElement(e,{...p,ref:o})})},P$=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&Se.write(this.update)}};function D$(e,t){const n=new Set;return hc.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new mu(e),hc.dependencies=null,[e,n]}function I$(e,t){return e&&(ee.fun(e)?e(t):e.current=t),t}var Sg=Symbol.for("AnimatedComponent"),N$=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=a=>new mu(a),getComponentProps:r=a=>a}={})=>{const a={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=o=>{const s=Og(o)||"Anonymous";return ee.str(o)?o=i[o]||(i[o]=kg(o,a)):o=o[Sg]||(o[Sg]=kg(o,a)),o.displayName=`Animated(${s})`,o};return Kn(e,(o,s)=>{ee.arr(e)&&(s=Og(o)),i[s]=i(o)}),{animated:i}},Og=e=>ee.str(e)?e:e&&ee.str(e.displayName)?e.displayName:ee.fun(e)&&e.name||null;function nn(e,...t){return ee.fun(e)?e(...t):e}var no=(e,t)=>e===!0||!!(t&&e&&(ee.fun(e)?e(t):Zt(e).includes(t))),tx=(e,t)=>ee.obj(e)?t&&e[t]:e,nx=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,F$=e=>e,gu=(e,t=F$)=>{let n=L$;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const a of n){const i=t(e[a],a);ee.und(i)||(r[a]=i)}return r},L$=["config","onProps","onStart","onChange","onPause","onResume","onRest"],U$={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 B$(e){const t={};let n=0;if(Kn(e,(r,a)=>{U$[a]||(t[a]=r,n++)}),n)return t}function Uh(e){const t=B$(e);if(t){const n={to:t};return Kn(e,(r,a)=>a in t||(n[a]=r)),n}return{...e}}function Ao(e){return e=tn(e),ee.arr(e)?e.map(Ao):hu(e)?Fn.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function rx(e){for(const t in e)return!0;return!1}function sf(e){return ee.fun(e)||ee.arr(e)&&ee.obj(e[0])}function cf(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function ax(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var Bh={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},uf={...Bh.default,mass:1,damping:1,easing:v$.linear,clamp:!1},W$=class{constructor(){this.velocity=0,Object.assign(this,uf)}};function z$(e,t,n){n&&(n={...n},Eg(n,t),t={...n,...t}),Eg(e,t),Object.assign(e,t);for(const o in uf)e[o]==null&&(e[o]=uf[o]);let{frequency:r,damping:a}=e;const{mass:i}=e;return ee.und(r)||(r<.01&&(r=.01),a<0&&(a=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*a*i/r),e}function Eg(e,t){if(!ee.und(t.decay))e.duration=void 0;else{const n=!ee.und(t.tension)||!ee.und(t.friction);(n||!ee.und(t.frequency)||!ee.und(t.damping)||!ee.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var $g=[],H$=class{constructor(){this.changed=!1,this.values=$g,this.toValues=null,this.fromValues=$g,this.config=new W$,this.immediate=!1}};function ix(e,{key:t,props:n,defaultProps:r,state:a,actions:i}){return new Promise((o,s)=>{let u,c,l=no(n.cancel??(r==null?void 0:r.cancel),t);if(l)p();else{ee.und(n.pause)||(a.paused=no(n.pause,t));let m=r==null?void 0:r.pause;m!==!0&&(m=a.paused||no(m,t)),u=nn(n.delay||0,t),m?(a.resumeQueue.add(f),i.pause()):(i.resume(),f())}function d(){a.resumeQueue.add(f),a.timeouts.delete(c),c.cancel(),u=c.time-Se.now()}function f(){u>0&&!Fn.skipAnimation?(a.delayed=!0,c=Se.setTimeout(p,u),a.pauseQueue.add(d),a.timeouts.add(c)):p()}function p(){a.delayed&&(a.delayed=!1),a.pauseQueue.delete(d),a.timeouts.delete(c),e<=(a.cancelId||0)&&(l=!0);try{i.start({...n,callId:e,cancel:l},o)}catch(m){s(m)}}})}var Wh=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?za(e.get()):t.every(n=>n.noop)?ox(e.get()):Mn(e.get(),t.every(n=>n.finished)),ox=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Mn=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),za=e=>({value:e,cancelled:!0,finished:!1});function sx(e,t,n,r){const{callId:a,parentId:i,onRest:o}=t,{asyncTo:s,promise:u}=n;return!i&&e===s&&!t.reset?u:n.promise=(async()=>{n.asyncId=a,n.asyncTo=e;const c=gu(t,(v,x)=>x==="onRest"?void 0:v);let l,d;const f=new Promise((v,x)=>(l=v,d=x)),p=v=>{const x=a<=(n.cancelId||0)&&za(r)||a!==n.asyncId&&Mn(r,!1);if(x)throw v.result=x,d(v),v},m=(v,x)=>{const w=new Mg,b=new Rg;return(async()=>{if(Fn.skipAnimation)throw jo(n),b.result=Mn(r,!1),d(b),b;p(w);const T=ee.obj(v)?{...v}:{...x,to:v};T.parentId=a,Kn(c,(C,$)=>{ee.und(T[$])&&(T[$]=C)});const _=await r.start(T);return p(w),n.paused&&await new Promise(C=>{n.resumeQueue.add(C)}),_})()};let g;if(Fn.skipAnimation)return jo(n),Mn(r,!1);try{let v;ee.arr(e)?v=(async x=>{for(const w of x)await m(w)})(e):v=Promise.resolve(e(m,r.stop.bind(r))),await Promise.all([v.then(l),f]),g=Mn(r.get(),!0,!1)}catch(v){if(v instanceof Mg)g=v.result;else if(v instanceof Rg)g=v.result;else throw v}finally{a==n.asyncId&&(n.asyncId=i,n.asyncTo=i?s:void 0,n.promise=i?u:void 0)}return ee.fun(o)&&Se.batchedUpdates(()=>{o(g,r,r.item)}),g})()}function jo(e,t){eo(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Mg=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.")}},Rg=class extends Error{constructor(){super("SkipAnimationSignal")}},lf=e=>e instanceof zh,V$=1,zh=class extends G1{constructor(){super(...arguments),this.id=V$++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=zn(this);return e&&e.getValue()}to(...e){return Fn.to(this,e)}interpolate(...e){return k$(),Fn.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){Eo(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||lu.sort(this),Eo(this,{type:"priority",parent:this,priority:e})}},ha=Symbol.for("SpringPhase"),cx=1,df=2,ff=4,ql=e=>(e[ha]&cx)>0,wr=e=>(e[ha]&df)>0,Ii=e=>(e[ha]&ff)>0,Ag=(e,t)=>t?e[ha]|=df|cx:e[ha]&=~df,jg=(e,t)=>t?e[ha]|=ff:e[ha]&=~ff,q$=class extends zh{constructor(e,t){if(super(),this.animation=new H$,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,!ee.und(e)||!ee.und(t)){const n=ee.obj(e)?{...e}:{...t,from:e};ee.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(wr(this)||this._state.asyncTo)||Ii(this)}get goal(){return tn(this.animation.to)}get velocity(){const e=zn(this);return e instanceof es?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return ql(this)}get isAnimating(){return wr(this)}get isPaused(){return Ii(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:a}=r;const{config:i}=r,o=pu(r.to);!o&&wn(r.to)&&(a=Zt(tn(r.to))),r.values.forEach((c,l)=>{if(c.done)return;const d=c.constructor==Ro?1:o?o[l].lastPosition:a[l];let f=r.immediate,p=d;if(!f){if(p=c.lastPosition,i.tension<=0){c.done=!0;return}let m=c.elapsedTime+=e;const g=r.fromValues[l],v=c.v0!=null?c.v0:c.v0=ee.arr(i.velocity)?i.velocity[l]:i.velocity;let x;const w=i.precision||(g==d?.005:Math.min(1,Math.abs(d-g)*.001));if(ee.und(i.duration))if(i.decay){const b=i.decay===!0?.998:i.decay,T=Math.exp(-(1-b)*m);p=g+v/(1-b)*(1-T),f=Math.abs(c.lastPosition-p)<=w,x=v*T}else{x=c.lastVelocity==null?v:c.lastVelocity;const b=i.restVelocity||w/10,T=i.clamp?0:i.bounce,_=!ee.und(T),C=g==d?c.v0>0:g<d;let $,A=!1;const D=1,j=Math.ceil(e/D);for(let E=0;E<j&&($=Math.abs(x)>b,!(!$&&(f=Math.abs(d-p)<=w,f)));++E){_&&(A=p==d||p>d==C,A&&(x=-x*T,p=d));const F=-i.tension*1e-6*(p-d),M=-i.friction*.001*x,R=(F+M)/i.mass;x=x+R*D,p=p+x*D}}else{let b=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,c.durationProgress>0&&(c.elapsedTime=i.duration*c.durationProgress,m=c.elapsedTime+=e)),b=(i.progress||0)+m/this._memoizedDuration,b=b>1?1:b<0?0:b,c.durationProgress=b),p=g+i.easing(b)*(d-g),x=(p-c.lastPosition)/e,f=b==1}c.lastVelocity=x,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),f=!0)}o&&!o[l].done&&(f=!1),f?c.done=!0:t=!1,c.setValue(p,i.round)&&(n=!0)});const s=zn(this),u=s.getValue();if(t){const c=tn(r.to);(u!==c||n)&&!i.decay?(s.setValue(c),this._onChange(c)):n&&i.decay&&this._onChange(u),this._stop()}else n&&this._onChange(u)}set(e){return Se.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(wr(this)){const{to:e,config:t}=this.animation;Se.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 n;return ee.und(e)?(n=this.queue||[],this.queue=[]):n=[ee.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>Wh(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),jo(this._state,e&&this._lastCallId),Se.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:n,from:r}=e;n=ee.obj(n)?n[t]:n,(n==null||sf(n))&&(n=void 0),r=ee.obj(r)?r[t]:r,r==null&&(r=void 0);const a={to:n,from:r};return ql(this)||(e.reverse&&([n,r]=[r,n]),r=tn(r),ee.und(r)?zn(this)||this._set(n):this._set(r)),a}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,gu(e,(o,s)=>/^on/.test(s)?tx(o,n):o)),Dg(this,e,"onProps"),Fi(this,"onProps",e,this);const a=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 i=this._state;return ix(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{Ii(this)||(jg(this,!0),Zi(i.pauseQueue),Fi(this,"onPause",Mn(this,Ni(this,this.animation.to)),this))},resume:()=>{Ii(this)&&(jg(this,!1),wr(this)&&this._resume(),Zi(i.resumeQueue),Fi(this,"onResume",Mn(this,Ni(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const s=ux(e);if(s)return this._update(s,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(za(this));const r=!ee.und(e.to),a=!ee.und(e.from);if(r||a)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(za(this));const{key:i,defaultProps:o,animation:s}=this,{to:u,from:c}=s;let{to:l=u,from:d=c}=e;a&&!r&&(!t.default||ee.und(l))&&(l=d),t.reverse&&([l,d]=[d,l]);const f=!rr(d,c);f&&(s.from=d),d=tn(d);const p=!rr(l,u);p&&this._focus(l);const m=sf(t.to),{config:g}=s,{decay:v,velocity:x}=g;(r||a)&&(g.velocity=0),t.config&&!m&&z$(g,nn(t.config,i),t.config!==o.config?nn(o.config,i):void 0);let w=zn(this);if(!w||ee.und(l))return n(Mn(this,!0));const b=ee.und(t.reset)?a&&!t.default:!ee.und(d)&&no(t.reset,i),T=b?d:this.get(),_=Ao(l),C=ee.num(_)||ee.arr(_)||hu(_),$=!m&&(!C||no(o.immediate||t.immediate,i));if(p){const E=of(l);if(E!==w.constructor)if($)w=this._set(_);else throw Error(`Cannot animate between ${w.constructor.name} and ${E.name}, as the "to" prop suggests`)}const A=w.constructor;let D=wn(l),j=!1;if(!D){const E=b||!ql(this)&&f;(p||E)&&(j=rr(Ao(T),_),D=!j),(!rr(s.immediate,$)&&!$||!rr(g.decay,v)||!rr(g.velocity,x))&&(D=!0)}if(j&&wr(this)&&(s.changed&&!b?D=!0:D||this._stop(u)),!m&&((D||wn(u))&&(s.values=w.getPayload(),s.toValues=wn(l)?null:A==Ro?[1]:Zt(_)),s.immediate!=$&&(s.immediate=$,!$&&!b&&this._set(u)),D)){const{onRest:E}=s;Ce(G$,M=>Dg(this,t,M));const F=Mn(this,Ni(this,u));Zi(this._pendingCalls,F),this._pendingCalls.add(n),s.changed&&Se.batchedUpdates(()=>{var M;s.changed=!b,E==null||E(F,this),b?nn(o.onRest,F):(M=s.onStart)==null||M.call(s,F,this)})}b&&this._set(T),m?n(sx(t.to,t,this._state,this)):D?this._start():wr(this)&&!p?this._pendingCalls.add(n):n(ox(T))}_focus(e){const t=this.animation;e!==t.to&&(Tg(this)&&this._detach(),t.to=e,Tg(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;wn(t)&&(pi(t,this),lf(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;wn(e)&&$o(e,this)}_set(e,t=!0){const n=tn(e);if(!ee.und(n)){const r=zn(this);if(!r||!rr(n,r.getValue())){const a=of(n);!r||r.constructor!=a?Lh(this,a.create(n)):r.setValue(n),r&&Se.batchedUpdates(()=>{this._onChange(n,t)})}}return zn(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Fi(this,"onStart",Mn(this,Ni(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),nn(this.animation.onChange,e,this)),nn(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;zn(this).reset(tn(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),wr(this)||(Ag(this,!0),Ii(this)||this._resume())}_resume(){Fn.skipAnimation?this.finish():lu.start(this)}_stop(e,t){if(wr(this)){Ag(this,!1);const n=this.animation;Ce(n.values,a=>{a.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Eo(this,{type:"idle",parent:this});const r=t?za(this.get()):Mn(this.get(),Ni(this,e??n.to));Zi(this._pendingCalls,r),n.changed&&(n.changed=!1,Fi(this,"onRest",r,this))}}};function Ni(e,t){const n=Ao(t),r=Ao(e.get());return rr(r,n)}function ux(e,t=e.loop,n=e.to){const r=nn(t);if(r){const a=r!==!0&&Uh(r),i=(a||e).reverse,o=!a||a.reset;return Po({...e,loop:t,default:!1,pause:void 0,to:!i||sf(n)?n:void 0,from:o?e.from:void 0,reset:o,...a})}}function Po(e){const{to:t,from:n}=e=Uh(e),r=new Set;return ee.obj(t)&&Pg(t,r),ee.obj(n)&&Pg(n,r),e.keys=r.size?Array.from(r):null,e}function Y$(e){const t=Po(e);return ee.und(t.default)&&(t.default=gu(t)),t}function Pg(e,t){Kn(e,(n,r)=>n!=null&&t.add(r))}var G$=["onStart","onRest","onChange","onPause","onResume"];function Dg(e,t,n){e.animation[n]=t[n]!==nx(t,n)?tx(t[n],e.key):void 0}function Fi(e,t,...n){var r,a,i,o;(a=(r=e.animation)[t])==null||a.call(r,...n),(o=(i=e.defaultProps)[t])==null||o.call(i,...n)}var Z$=["onStart","onChange","onRest"],K$=1,lx=class{constructor(e,t){this.id=K$++,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,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];ee.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Po(e)),this}start(e){let{queue:t}=this;return e?t=Zt(e).map(Po):this.queue=[],this._flush?this._flush(this,t):(mx(this,t),hf(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Ce(Zt(t),r=>n[r].stop(!!e))}else jo(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(ee.und(e))this.start({pause:!0});else{const t=this.springs;Ce(Zt(e),n=>t[n].pause())}return this}resume(e){if(ee.und(e))this.start({pause:!1});else{const t=this.springs;Ce(Zt(e),n=>t[n].resume())}return this}each(e){Kn(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,a=this._changed.size>0;(r&&!this._started||a&&!this._started)&&(this._started=!0,eo(e,([s,u])=>{u.value=this.get(),s(u,this,this._item)}));const i=!r&&this._started,o=a||i&&n.size?this.get():null;a&&t.size&&eo(t,([s,u])=>{u.value=o,s(u,this,this._item)}),i&&(this._started=!1,eo(n,([s,u])=>{u.value=o,s(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;Se.onFrame(this._onFrame)}};function hf(e,t){return Promise.all(t.map(n=>dx(e,n))).then(n=>Wh(e,n))}async function dx(e,t,n){const{keys:r,to:a,from:i,loop:o,onRest:s,onResolve:u}=t,c=ee.obj(t.default)&&t.default;o&&(t.loop=!1),a===!1&&(t.to=null),i===!1&&(t.from=null);const l=ee.arr(a)||ee.fun(a)?a:void 0;l?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Ce(Z$,g=>{const v=t[g];if(ee.fun(v)){const x=e._events[g];t[g]=({finished:w,cancelled:b})=>{const T=x.get(v);T?(w||(T.finished=!1),b&&(T.cancelled=!0)):x.set(v,{value:null,finished:w||!1,cancelled:b||!1})},c&&(c[g]=t[g])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Zi(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map(g=>e.springs[g].start(t)),p=t.cancel===!0||nx(t,"cancel")===!0;(l||p&&d.asyncId)&&f.push(ix(++e._lastAsyncId,{props:t,state:d,actions:{pause:nf,resume:nf,start(g,v){p?(jo(d,e._lastAsyncId),v(za(e))):(g.onRest=s,v(sx(l,g,d,e)))}}})),d.paused&&await new Promise(g=>{d.resumeQueue.add(g)});const m=Wh(e,await Promise.all(f));if(o&&m.finished&&!(n&&m.noop)){const g=ux(t,o,a);if(g)return mx(e,[g]),dx(e,g,!0)}return u&&Se.batchedUpdates(()=>u(m,e,e.item)),m}function pf(e,t){const n={...e.springs};return t&&Ce(Zt(t),r=>{ee.und(r.keys)&&(r=Po(r)),ee.obj(r.to)||(r={...r,to:void 0}),px(n,r,a=>hx(a))}),fx(e,n),n}function fx(e,t){Kn(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,pi(n,e))})}function hx(e,t){const n=new q$;return n.key=e,t&&pi(n,t),n}function px(e,t,n){t.keys&&Ce(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function mx(e,t){Ce(t,n=>{px(e.springs,n,r=>hx(r,e))})}var ts=({children:e,...t})=>{const n=h.useContext(pc),r=t.pause||!!n.pause,a=t.immediate||!!n.immediate;t=$$(()=>({pause:r,immediate:a}),[r,a]);const{Provider:i}=pc;return oe.createElement(i,{value:t},e)},pc=X$(ts,{});ts.Provider=pc.Provider;ts.Consumer=pc.Consumer;function X$(e,t){return Object.assign(e,oe.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var gx=()=>{const e=[],t=function(r){O$();const a=[];return Ce(e,(i,o)=>{if(ee.und(r))a.push(i.start());else{const s=n(r,i,o);s&&a.push(i.start(s))}}),a};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const a=e.indexOf(r);~a&&e.splice(a,1)},t.pause=function(){return Ce(e,r=>r.pause(...arguments)),this},t.resume=function(){return Ce(e,r=>r.resume(...arguments)),this},t.set=function(r){Ce(e,(a,i)=>{const o=ee.fun(r)?r(i,a):r;o&&a.set(o)})},t.start=function(r){const a=[];return Ce(e,(i,o)=>{if(ee.und(r))a.push(i.start());else{const s=this._getProps(r,i,o);s&&a.push(i.start(s))}}),a},t.stop=function(){return Ce(e,r=>r.stop(...arguments)),this},t.update=function(r){return Ce(e,(a,i)=>a.update(this._getProps(r,a,i))),this};const n=function(r,a,i){return ee.fun(r)?r(i,a):r};return t._getProps=n,t};function J$(e,t,n){const r=ee.fun(t)&&t;r&&!n&&(n=[]);const a=h.useMemo(()=>r||arguments.length==3?gx():void 0,[]),i=h.useRef(0),o=Nh(),s=h.useMemo(()=>({ctrls:[],queue:[],flush(x,w){const b=pf(x,w);return i.current>0&&!s.queue.length&&!Object.keys(b).some(_=>!x.springs[_])?hf(x,w):new Promise(_=>{fx(x,b),s.queue.push(()=>{_(hf(x,w))}),o()})}}),[]),u=h.useRef([...s.ctrls]),c=[],l=af(e)||0;h.useMemo(()=>{Ce(u.current.slice(e,l),x=>{cf(x,a),x.stop(!0)}),u.current.length=e,d(l,e)},[e]),h.useMemo(()=>{d(0,Math.min(l,e))},n);function d(x,w){for(let b=x;b<w;b++){const T=u.current[b]||(u.current[b]=new lx(null,s.flush)),_=r?r(b,T):t[b];_&&(c[b]=Y$(_))}}const f=u.current.map((x,w)=>pf(x,c[w])),p=h.useContext(ts),m=af(p),g=p!==m&&rx(p);Kr(()=>{i.current++,s.ctrls=u.current;const{queue:x}=s;x.length&&(s.queue=[],Ce(x,w=>w())),Ce(u.current,(w,b)=>{a==null||a.add(w),g&&w.start({default:p});const T=c[b];T&&(ax(w,T.ref),w.ref?w.queue.push(T):w.start(T))})}),Fh(()=>()=>{Ce(s.ctrls,x=>x.stop(!0))});const v=f.map(x=>({...x}));return a?[v,a]:v}function vr(e,t){const n=ee.fun(e),[[r],a]=J$(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,a]:r}function xa(e,t,n){const r=ee.fun(t)&&t,{reset:a,sort:i,trail:o=0,expires:s=!0,exitBeforeEnter:u=!1,onDestroyed:c,ref:l,config:d}=r?r():t,f=h.useMemo(()=>r||arguments.length==3?gx():void 0,[]),p=Zt(e),m=[],g=h.useRef(null),v=a?null:g.current;Kr(()=>{g.current=m}),Fh(()=>(Ce(m,R=>{f==null||f.add(R.ctrl),R.ctrl.ref=f}),()=>{Ce(g.current,R=>{R.expired&&clearTimeout(R.expirationId),cf(R.ctrl,f),R.ctrl.stop(!0)})}));const x=e8(p,r?r():t,v),w=a&&g.current||[];Kr(()=>Ce(w,({ctrl:R,item:I,key:U})=>{cf(R,f),nn(c,I,U)}));const b=[];if(v&&Ce(v,(R,I)=>{R.expired?(clearTimeout(R.expirationId),w.push(R)):(I=b[I]=x.indexOf(R.key),~I&&(m[I]=R))}),Ce(p,(R,I)=>{m[I]||(m[I]={key:x[I],item:R,phase:"mount",ctrl:new lx},m[I].ctrl.item=R)}),b.length){let R=-1;const{leave:I}=r?r():t;Ce(b,(U,N)=>{const q=v[N];~U?(R=m.indexOf(q),m[R]={...q,item:p[U]}):I&&m.splice(++R,0,q)})}ee.fun(i)&&m.sort((R,I)=>i(R.item,I.item));let T=-o;const _=Nh(),C=gu(t),$=new Map,A=h.useRef(new Map),D=h.useRef(!1);Ce(m,(R,I)=>{const U=R.key,N=R.phase,q=r?r():t;let z,P;const W=nn(q.delay||0,U);if(N=="mount")z=q.enter,P="enter";else{const Q=x.indexOf(U)<0;if(N!="leave")if(Q)z=q.leave,P="leave";else if(z=q.update)P="update";else return;else if(!Q)z=q.enter,P="enter";else return}if(z=nn(z,R.item,I),z=ee.obj(z)?Uh(z):{to:z},!z.config){const Q=d||C.config;z.config=nn(Q,R.item,I,P)}T+=o;const Z={...C,delay:W+T,ref:l,immediate:q.immediate,reset:!1,...z};if(P=="enter"&&ee.und(Z.from)){const Q=r?r():t,G=ee.und(Q.initial)||v?Q.from:Q.initial;Z.from=nn(G,R.item,I)}const{onResolve:ne}=Z;Z.onResolve=Q=>{nn(ne,Q);const G=g.current,J=G.find(re=>re.key===U);if(J&&!(Q.cancelled&&J.phase!="update")&&J.ctrl.idle){const re=G.every(L=>L.ctrl.idle);if(J.phase=="leave"){const L=nn(s,J.item);if(L!==!1){const V=L===!0?0:L;if(J.expired=!0,!re&&V>0){V<=2147483647&&(J.expirationId=setTimeout(_,V));return}}}re&&G.some(L=>L.expired)&&(A.current.delete(J),u&&(D.current=!0),_())}};const Y=pf(R.ctrl,Z);P==="leave"&&u?A.current.set(R,{phase:P,springs:Y,payload:Z}):$.set(R,{phase:P,springs:Y,payload:Z})});const j=h.useContext(ts),E=af(j),F=j!==E&&rx(j);Kr(()=>{F&&Ce(m,R=>{R.ctrl.start({default:j})})},[j]),Ce($,(R,I)=>{if(A.current.size){const U=m.findIndex(N=>N.key===I.key);m.splice(U,1)}}),Kr(()=>{Ce(A.current.size?A.current:$,({phase:R,payload:I},U)=>{const{ctrl:N}=U;U.phase=R,f==null||f.add(N),F&&R=="enter"&&N.start({default:j}),I&&(ax(N,I.ref),(N.ref||f)&&!D.current?N.update(I):(N.start(I),D.current&&(D.current=!1)))})},a?void 0:n);const M=R=>oe.createElement(oe.Fragment,null,m.map((I,U)=>{const{springs:N}=$.get(I)||I.ctrl,q=R({...N},I.item,I,U);return q&&q.type?oe.createElement(q.type,{...q.props,key:ee.str(I.key)||ee.num(I.key)?I.key:I.ctrl.id,ref:q.ref}):q}));return f?[M,f]:M}var Q$=1;function e8(e,{key:t,keys:n=t},r){if(n===null){const a=new Set;return e.map(i=>{const o=r&&r.find(s=>s.item===i&&s.phase!=="leave"&&!a.has(s));return o?(a.add(o),o.key):Q$++})}return ee.und(n)?e:ee.fun(n)?e.map(n):Zt(n)}var vx=class extends zh{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=So(...t);const n=this._get(),r=of(n);Lh(this,r.create(n))}advance(e){const t=this._get(),n=this.get();rr(t,n)||(zn(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Ig(this._active)&&Yl(this)}_get(){const e=ee.arr(this.source)?this.source.map(tn):Zt(tn(this.source));return this.calc(...e)}_start(){this.idle&&!Ig(this._active)&&(this.idle=!1,Ce(pu(this),e=>{e.done=!1}),Fn.skipAnimation?(Se.batchedUpdates(()=>this.advance()),Yl(this)):lu.start(this))}_attach(){let e=1;Ce(Zt(this.source),t=>{wn(t)&&pi(t,this),lf(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Ce(Zt(this.source),e=>{wn(e)&&$o(e,this)}),this._active.clear(),Yl(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=Zt(this.source).reduce((t,n)=>Math.max(t,(lf(n)?n.priority:0)+1),0))}};function t8(e){return e.idle!==!1}function Ig(e){return!e.size||Array.from(e).every(t8)}function Yl(e){e.idle||(e.idle=!0,Ce(pu(e),t=>{t.done=!0}),Eo(e,{type:"idle",parent:e}))}var Fr=(e,...t)=>new vx(e,t);Fn.assign({createStringInterpolator:X1,to:(e,t)=>new vx(e,t)});var yx=/^--/;function n8(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!yx.test(e)&&!(ro.hasOwnProperty(e)&&ro[e])?t+"px":(""+t).trim()}var Ng={};function r8(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:a,scrollTop:i,scrollLeft:o,viewBox:s,...u}=t,c=Object.values(u),l=Object.keys(u).map(d=>n||e.hasAttribute(d)?d:Ng[d]||(Ng[d]=d.replace(/([A-Z])/g,f=>"-"+f.toLowerCase())));a!==void 0&&(e.textContent=a);for(const d in r)if(r.hasOwnProperty(d)){const f=n8(d,r[d]);yx.test(d)?e.style.setProperty(d,f):e.style[d]=f}l.forEach((d,f)=>{e.setAttribute(d,c[f])}),i!==void 0&&(e.scrollTop=i),o!==void 0&&(e.scrollLeft=o),s!==void 0&&e.setAttribute("viewBox",s)}var ro={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},a8=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),i8=["Webkit","Ms","Moz","O"];ro=Object.keys(ro).reduce((e,t)=>(i8.forEach(n=>e[a8(n,t)]=e[t]),e),ro);var o8=/^(matrix|translate|scale|rotate|skew)/,s8=/^(translate)/,c8=/^(rotate|skew)/,Gl=(e,t)=>ee.num(e)&&e!==0?e+t:e,Ns=(e,t)=>ee.arr(e)?e.every(n=>Ns(n,t)):ee.num(e)?e===t:parseFloat(e)===t,u8=class extends mu{constructor({x:e,y:t,z:n,...r}){const a=[],i=[];(e||t||n)&&(a.push([e||0,t||0,n||0]),i.push(o=>[`translate3d(${o.map(s=>Gl(s,"px")).join(",")})`,Ns(o,0)])),Kn(r,(o,s)=>{if(s==="transform")a.push([o||""]),i.push(u=>[u,u===""]);else if(o8.test(s)){if(delete r[s],ee.und(o))return;const u=s8.test(s)?"px":c8.test(s)?"deg":"";a.push(Zt(o)),i.push(s==="rotate3d"?([c,l,d,f])=>[`rotate3d(${c},${l},${d},${Gl(f,u)})`,Ns(f,0)]:c=>[`${s}(${c.map(l=>Gl(l,u)).join(",")})`,Ns(c,s.startsWith("scale")?1:0)])}}),a.length&&(r.transform=new l8(a,i)),super(r)}},l8=class extends G1{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 Ce(this.inputs,(n,r)=>{const a=tn(n[0]),[i,o]=this.transforms[r](ee.arr(a)?a:n.map(tn));e+=" "+i,t=t&&o}),t?"none":e}observerAdded(e){e==1&&Ce(this.inputs,t=>Ce(t,n=>wn(n)&&pi(n,this)))}observerRemoved(e){e==0&&Ce(this.inputs,t=>Ce(t,n=>wn(n)&&$o(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Eo(this,e)}},d8=["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"];Fn.assign({batchedUpdates:Er.unstable_batchedUpdates,createStringInterpolator:X1,colors:a$});var f8=N$(d8,{applyAnimatedValues:r8,createAnimatedStyle:e=>new u8(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Qe=f8.animated;function pa(){return pa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pa.apply(this,arguments)}var h8={pointerEvents:"none",position:"absolute",zIndex:10,top:0,left:0},Fg=function(e,t){return"translate("+e+"px, "+t+"px)"},bx=h.memo(function(e){var t,n=e.position,r=e.anchor,a=e.children,i=lt(),o=un(),s=o.animate,u=o.config,c=u_(),l=c[0],d=c[1],f=h.useRef(!1),p=void 0,m=!1,g=d.width>0&&d.height>0,v=Math.round(n[0]),x=Math.round(n[1]);g&&(r==="top"?(v-=d.width/2,x-=d.height+14):r==="right"?(v+=14,x-=d.height/2):r==="bottom"?(v-=d.width/2,x+=14):r==="left"?(v-=d.width+14,x-=d.height/2):r==="center"&&(v-=d.width/2,x-=d.height/2),p={transform:Fg(v,x)},f.current||(m=!0),f.current=[v,x]);var w=vr({to:p,config:u,immediate:!s||m}),b=pa({},h8,i.tooltip.wrapper,{transform:(t=w.transform)!=null?t:Fg(v,x),opacity:w.transform?1:0});return y.jsx(Qe.div,{ref:l,style:b,children:a})});bx.displayName="TooltipWrapper";var p8=h.memo(function(e){var t=e.size,n=t===void 0?12:t,r=e.color,a=e.style;return y.jsx("span",{style:pa({display:"block",width:n,height:n,background:r},a===void 0?{}:a)})}),xx=h.memo(function(e){var t,n=e.id,r=e.value,a=e.format,i=e.enableChip,o=i!==void 0&&i,s=e.color,u=e.renderContent,c=lt(),l=pl(a);if(typeof u=="function")t=u();else{var d=r;l!==void 0&&d!==void 0&&(d=l(d)),t=y.jsxs("div",{style:c.tooltip.basic,children:[o&&y.jsx(p8,{color:s,style:c.tooltip.chip}),d!==void 0?y.jsxs("span",{children:[n,": ",y.jsx("strong",{children:""+d})]}):n]})}return y.jsx("div",{style:c.tooltip.container,children:t})}),m8={width:"100%",borderCollapse:"collapse"},g8=h.memo(function(e){var t,n=e.title,r=e.rows,a=r===void 0?[]:r,i=e.renderContent,o=lt();return a.length?(t=typeof i=="function"?i():y.jsxs("div",{children:[n&&n,y.jsx("table",{style:pa({},m8,o.tooltip.table),children:y.jsx("tbody",{children:a.map(function(s,u){return y.jsx("tr",{children:s.map(function(c,l){return y.jsx("td",{style:o.tooltip.tableCell,children:c},l)})},u)})})})]}),y.jsx("div",{style:o.tooltip.container,children:t})):null});g8.displayName="TableTooltip";var mf=h.memo(function(e){var t=e.x0,n=e.x1,r=e.y0,a=e.y1,i=lt(),o=un(),s=o.animate,u=o.config,c=h.useMemo(function(){return pa({},i.crosshair.line,{pointerEvents:"none"})},[i.crosshair.line]),l=vr({x1:t,x2:n,y1:r,y2:a,config:u,immediate:!s});return y.jsx(Qe.line,pa({},l,{fill:"none",style:c}))});mf.displayName="CrosshairLine";var v8=h.memo(function(e){var t,n,r=e.width,a=e.height,i=e.type,o=e.x,s=e.y;return i==="cross"?(t={x0:o,x1:o,y0:0,y1:a},n={x0:0,x1:r,y0:s,y1:s}):i==="top-left"?(t={x0:o,x1:o,y0:0,y1:s},n={x0:0,x1:o,y0:s,y1:s}):i==="top"?t={x0:o,x1:o,y0:0,y1:s}:i==="top-right"?(t={x0:o,x1:o,y0:0,y1:s},n={x0:o,x1:r,y0:s,y1:s}):i==="right"?n={x0:o,x1:r,y0:s,y1:s}:i==="bottom-right"?(t={x0:o,x1:o,y0:s,y1:a},n={x0:o,x1:r,y0:s,y1:s}):i==="bottom"?t={x0:o,x1:o,y0:s,y1:a}:i==="bottom-left"?(t={x0:o,x1:o,y0:s,y1:a},n={x0:0,x1:o,y0:s,y1:s}):i==="left"?n={x0:0,x1:o,y0:s,y1:s}:i==="x"?t={x0:o,x1:o,y0:0,y1:a}:i==="y"&&(n={x0:0,x1:r,y0:s,y1:s}),y.jsxs(y.Fragment,{children:[t&&y.jsx(mf,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&y.jsx(mf,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});v8.displayName="Crosshair";var _x=h.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),gf={isVisible:!1,position:[null,null],content:null,anchor:null},wx=h.createContext(gf),y8=function(e){var t=h.useState(gf),n=t[0],r=t[1],a=h.useCallback(function(s,u,c){var l=u[0],d=u[1];c===void 0&&(c="top"),r({isVisible:!0,position:[l,d],anchor:c,content:s})},[r]),i=h.useCallback(function(s,u,c){c===void 0&&(c="top");var l=e.current.getBoundingClientRect(),d=e.current.offsetWidth,f=d===l.width?1:d/l.width,p="touches"in u?u.touches[0]:u,m=p.clientX,g=p.clientY,v=(m-l.left)*f,x=(g-l.top)*f;c!=="left"&&c!=="right"||(c=v<l.width/2?"right":"left"),r({isVisible:!0,position:[v,x],anchor:c,content:s})},[e,r]),o=h.useCallback(function(){r(gf)},[r]);return{actions:h.useMemo(function(){return{showTooltipAt:a,showTooltipFromEvent:i,hideTooltip:o}},[a,i,o]),state:n}},Hh=function(){var e=h.useContext(_x);if(e===void 0)throw new Error("useTooltip must be used within a TooltipProvider");return e},b8=function(){var e=h.useContext(wx);if(e===void 0)throw new Error("useTooltipState must be used within a TooltipProvider");return e},x8=function(e){return e.isVisible},_8=function(){var e=b8();return x8(e)?y.jsx(bx,{position:e.position,anchor:e.anchor,children:e.content}):null},w8=function(e){var t=e.container,n=e.children,r=y8(t),a=r.actions,i=r.state;return y.jsx(_x.Provider,{value:a,children:y.jsx(wx.Provider,{value:i,children:n})})};function T8(){this.__data__=[],this.size=0}var C8=T8;function k8(e,t){return e===t||e!==e&&t!==t}var ns=k8,S8=ns;function O8(e,t){for(var n=e.length;n--;)if(S8(e[n][0],t))return n;return-1}var vu=O8,E8=vu,$8=Array.prototype,M8=$8.splice;function R8(e){var t=this.__data__,n=E8(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():M8.call(t,n,1),--this.size,!0}var A8=R8,j8=vu;function P8(e){var t=this.__data__,n=j8(t,e);return n<0?void 0:t[n][1]}var D8=P8,I8=vu;function N8(e){return I8(this.__data__,e)>-1}var F8=N8,L8=vu;function U8(e,t){var n=this.__data__,r=L8(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var B8=U8,W8=C8,z8=A8,H8=D8,V8=F8,q8=B8;function mi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}mi.prototype.clear=W8;mi.prototype.delete=z8;mi.prototype.get=H8;mi.prototype.has=V8;mi.prototype.set=q8;var yu=mi,Y8=yu;function G8(){this.__data__=new Y8,this.size=0}var Z8=G8;function K8(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var X8=K8;function J8(e){return this.__data__.get(e)}var Q8=J8;function eM(e){return this.__data__.has(e)}var tM=eM,nM=typeof cs=="object"&&cs&&cs.Object===Object&&cs,Tx=nM,rM=Tx,aM=typeof self=="object"&&self&&self.Object===Object&&self,iM=rM||aM||Function("return this")(),Qn=iM,oM=Qn,sM=oM.Symbol,gi=sM,Lg=gi,Cx=Object.prototype,cM=Cx.hasOwnProperty,uM=Cx.toString,Li=Lg?Lg.toStringTag:void 0;function lM(e){var t=cM.call(e,Li),n=e[Li];try{e[Li]=void 0;var r=!0}catch{}var a=uM.call(e);return r&&(t?e[Li]=n:delete e[Li]),a}var dM=lM,fM=Object.prototype,hM=fM.toString;function pM(e){return hM.call(e)}var mM=pM,Ug=gi,gM=dM,vM=mM,yM="[object Null]",bM="[object Undefined]",Bg=Ug?Ug.toStringTag:void 0;function xM(e){return e==null?e===void 0?bM:yM:Bg&&Bg in Object(e)?gM(e):vM(e)}var zr=xM;function _M(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var er=_M,wM=zr,TM=er,CM="[object AsyncFunction]",kM="[object Function]",SM="[object GeneratorFunction]",OM="[object Proxy]";function EM(e){if(!TM(e))return!1;var t=wM(e);return t==kM||t==SM||t==CM||t==OM}var bu=EM;const kx=Tt(bu);var $M=Qn,MM=$M["__core-js_shared__"],RM=MM,Zl=RM,Wg=function(){var e=/[^.]+$/.exec(Zl&&Zl.keys&&Zl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function AM(e){return!!Wg&&Wg in e}var jM=AM,PM=Function.prototype,DM=PM.toString;function IM(e){if(e!=null){try{return DM.call(e)}catch{}try{return e+""}catch{}}return""}var Sx=IM,NM=bu,FM=jM,LM=er,UM=Sx,BM=/[\\^$.*+?()[\]{}|]/g,WM=/^\[object .+?Constructor\]$/,zM=Function.prototype,HM=Object.prototype,VM=zM.toString,qM=HM.hasOwnProperty,YM=RegExp("^"+VM.call(qM).replace(BM,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function GM(e){if(!LM(e)||FM(e))return!1;var t=NM(e)?YM:WM;return t.test(UM(e))}var ZM=GM;function KM(e,t){return e==null?void 0:e[t]}var XM=KM,JM=ZM,QM=XM;function e7(e,t){var n=QM(e,t);return JM(n)?n:void 0}var _a=e7,t7=_a,n7=Qn,r7=t7(n7,"Map"),Vh=r7,a7=_a,i7=a7(Object,"create"),xu=i7,zg=xu;function o7(){this.__data__=zg?zg(null):{},this.size=0}var s7=o7;function c7(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var u7=c7,l7=xu,d7="__lodash_hash_undefined__",f7=Object.prototype,h7=f7.hasOwnProperty;function p7(e){var t=this.__data__;if(l7){var n=t[e];return n===d7?void 0:n}return h7.call(t,e)?t[e]:void 0}var m7=p7,g7=xu,v7=Object.prototype,y7=v7.hasOwnProperty;function b7(e){var t=this.__data__;return g7?t[e]!==void 0:y7.call(t,e)}var x7=b7,_7=xu,w7="__lodash_hash_undefined__";function T7(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=_7&&t===void 0?w7:t,this}var C7=T7,k7=s7,S7=u7,O7=m7,E7=x7,$7=C7;function vi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}vi.prototype.clear=k7;vi.prototype.delete=S7;vi.prototype.get=O7;vi.prototype.has=E7;vi.prototype.set=$7;var M7=vi,Hg=M7,R7=yu,A7=Vh;function j7(){this.size=0,this.__data__={hash:new Hg,map:new(A7||R7),string:new Hg}}var P7=j7;function D7(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var I7=D7,N7=I7;function F7(e,t){var n=e.__data__;return N7(t)?n[typeof t=="string"?"string":"hash"]:n.map}var _u=F7,L7=_u;function U7(e){var t=L7(this,e).delete(e);return this.size-=t?1:0,t}var B7=U7,W7=_u;function z7(e){return W7(this,e).get(e)}var H7=z7,V7=_u;function q7(e){return V7(this,e).has(e)}var Y7=q7,G7=_u;function Z7(e,t){var n=G7(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var K7=Z7,X7=P7,J7=B7,Q7=H7,e9=Y7,t9=K7;function yi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}yi.prototype.clear=X7;yi.prototype.delete=J7;yi.prototype.get=Q7;yi.prototype.has=e9;yi.prototype.set=t9;var qh=yi,n9=yu,r9=Vh,a9=qh,i9=200;function o9(e,t){var n=this.__data__;if(n instanceof n9){var r=n.__data__;if(!r9||r.length<i9-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new a9(r)}return n.set(e,t),this.size=n.size,this}var s9=o9,c9=yu,u9=Z8,l9=X8,d9=Q8,f9=tM,h9=s9;function bi(e){var t=this.__data__=new c9(e);this.size=t.size}bi.prototype.clear=u9;bi.prototype.delete=l9;bi.prototype.get=d9;bi.prototype.has=f9;bi.prototype.set=h9;var wu=bi,p9=_a,m9=function(){try{var e=p9(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Ox=m9,Vg=Ox;function g9(e,t,n){t=="__proto__"&&Vg?Vg(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Yh=g9,v9=Yh,y9=ns;function b9(e,t,n){(n!==void 0&&!y9(e[t],n)||n===void 0&&!(t in e))&&v9(e,t,n)}var Ex=b9;function x9(e){return function(t,n,r){for(var a=-1,i=Object(t),o=r(t),s=o.length;s--;){var u=o[e?s:++a];if(n(i[u],u,i)===!1)break}return t}}var _9=x9,w9=_9,T9=w9(),$x=T9,mc={exports:{}};mc.exports;(function(e,t){var n=Qn,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,o=i?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;function u(c,l){if(l)return c.slice();var d=c.length,f=s?s(d):new c.constructor(d);return c.copy(f),f}e.exports=u})(mc,mc.exports);var Mx=mc.exports,C9=Qn,k9=C9.Uint8Array,Rx=k9,qg=Rx;function S9(e){var t=new e.constructor(e.byteLength);return new qg(t).set(new qg(e)),t}var Gh=S9,O9=Gh;function E9(e,t){var n=t?O9(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Ax=E9;function $9(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var jx=$9,M9=er,Yg=Object.create,R9=function(){function e(){}return function(t){if(!M9(t))return{};if(Yg)return Yg(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),A9=R9;function j9(e,t){return function(n){return e(t(n))}}var Px=j9,P9=Px,D9=P9(Object.getPrototypeOf,Object),Zh=D9,I9=Object.prototype;function N9(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||I9;return e===n}var Kh=N9,F9=A9,L9=Zh,U9=Kh;function B9(e){return typeof e.constructor=="function"&&!U9(e)?F9(L9(e)):{}}var Dx=B9;function W9(e){return e!=null&&typeof e=="object"}var Un=W9,z9=zr,H9=Un,V9="[object Arguments]";function q9(e){return H9(e)&&z9(e)==V9}var Y9=q9,Gg=Y9,G9=Un,Ix=Object.prototype,Z9=Ix.hasOwnProperty,K9=Ix.propertyIsEnumerable,X9=Gg(function(){return arguments}())?Gg:function(e){return G9(e)&&Z9.call(e,"callee")&&!K9.call(e,"callee")},Tu=X9,J9=Array.isArray,cn=J9,Q9=9007199254740991;function eR(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Q9}var Xh=eR,tR=bu,nR=Xh;function rR(e){return e!=null&&nR(e.length)&&!tR(e)}var xi=rR,aR=xi,iR=Un;function oR(e){return iR(e)&&aR(e)}var Nx=oR,gc={exports:{}};function sR(){return!1}var cR=sR;gc.exports;(function(e,t){var n=Qn,r=cR,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,s=o?n.Buffer:void 0,u=s?s.isBuffer:void 0,c=u||r;e.exports=c})(gc,gc.exports);var Cu=gc.exports,uR=zr,lR=Zh,dR=Un,fR="[object Object]",hR=Function.prototype,pR=Object.prototype,Fx=hR.toString,mR=pR.hasOwnProperty,gR=Fx.call(Object);function vR(e){if(!dR(e)||uR(e)!=fR)return!1;var t=lR(e);if(t===null)return!0;var n=mR.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Fx.call(n)==gR}var Jh=vR;const Qh=Tt(Jh);var yR=zr,bR=Xh,xR=Un,_R="[object Arguments]",wR="[object Array]",TR="[object Boolean]",CR="[object Date]",kR="[object Error]",SR="[object Function]",OR="[object Map]",ER="[object Number]",$R="[object Object]",MR="[object RegExp]",RR="[object Set]",AR="[object String]",jR="[object WeakMap]",PR="[object ArrayBuffer]",DR="[object DataView]",IR="[object Float32Array]",NR="[object Float64Array]",FR="[object Int8Array]",LR="[object Int16Array]",UR="[object Int32Array]",BR="[object Uint8Array]",WR="[object Uint8ClampedArray]",zR="[object Uint16Array]",HR="[object Uint32Array]",ct={};ct[IR]=ct[NR]=ct[FR]=ct[LR]=ct[UR]=ct[BR]=ct[WR]=ct[zR]=ct[HR]=!0;ct[_R]=ct[wR]=ct[PR]=ct[TR]=ct[DR]=ct[CR]=ct[kR]=ct[SR]=ct[OR]=ct[ER]=ct[$R]=ct[MR]=ct[RR]=ct[AR]=ct[jR]=!1;function VR(e){return xR(e)&&bR(e.length)&&!!ct[yR(e)]}var qR=VR;function YR(e){return function(t){return e(t)}}var rs=YR,vc={exports:{}};vc.exports;(function(e,t){var n=Tx,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,o=i&&n.process,s=function(){try{var u=a&&a.require&&a.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(vc,vc.exports);var ku=vc.exports,GR=qR,ZR=rs,Zg=ku,Kg=Zg&&Zg.isTypedArray,KR=Kg?ZR(Kg):GR,ep=KR;function XR(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Lx=XR,JR=Yh,QR=ns,eA=Object.prototype,tA=eA.hasOwnProperty;function nA(e,t,n){var r=e[t];(!(tA.call(e,t)&&QR(r,n))||n===void 0&&!(t in e))&&JR(e,t,n)}var tp=nA,rA=tp,aA=Yh;function iA(e,t,n,r){var a=!n;n||(n={});for(var i=-1,o=t.length;++i<o;){var s=t[i],u=r?r(n[s],e[s],s,n,e):void 0;u===void 0&&(u=e[s]),a?aA(n,s,u):rA(n,s,u)}return n}var _i=iA;function oA(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var sA=oA,cA=9007199254740991,uA=/^(?:0|[1-9]\d*)$/;function lA(e,t){var n=typeof e;return t=t??cA,!!t&&(n=="number"||n!="symbol"&&uA.test(e))&&e>-1&&e%1==0&&e<t}var Su=lA,dA=sA,fA=Tu,hA=cn,pA=Cu,mA=Su,gA=ep,vA=Object.prototype,yA=vA.hasOwnProperty;function bA(e,t){var n=hA(e),r=!n&&fA(e),a=!n&&!r&&pA(e),i=!n&&!r&&!a&&gA(e),o=n||r||a||i,s=o?dA(e.length,String):[],u=s.length;for(var c in e)(t||yA.call(e,c))&&!(o&&(c=="length"||a&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||mA(c,u)))&&s.push(c);return s}var Ux=bA;function xA(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var _A=xA,wA=er,TA=Kh,CA=_A,kA=Object.prototype,SA=kA.hasOwnProperty;function OA(e){if(!wA(e))return CA(e);var t=TA(e),n=[];for(var r in e)r=="constructor"&&(t||!SA.call(e,r))||n.push(r);return n}var EA=OA,$A=Ux,MA=EA,RA=xi;function AA(e){return RA(e)?$A(e,!0):MA(e)}var as=AA,jA=_i,PA=as;function DA(e){return jA(e,PA(e))}var IA=DA,Xg=Ex,NA=Mx,FA=Ax,LA=jx,UA=Dx,Jg=Tu,Qg=cn,BA=Nx,WA=Cu,zA=bu,HA=er,VA=Jh,qA=ep,e0=Lx,YA=IA;function GA(e,t,n,r,a,i,o){var s=e0(e,n),u=e0(t,n),c=o.get(u);if(c){Xg(e,n,c);return}var l=i?i(s,u,n+"",e,t,o):void 0,d=l===void 0;if(d){var f=Qg(u),p=!f&&WA(u),m=!f&&!p&&qA(u);l=u,f||p||m?Qg(s)?l=s:BA(s)?l=LA(s):p?(d=!1,l=NA(u,!0)):m?(d=!1,l=FA(u,!0)):l=[]:VA(u)||Jg(u)?(l=s,Jg(s)?l=YA(s):(!HA(s)||zA(s))&&(l=UA(u))):d=!1}d&&(o.set(u,l),a(l,u,r,i,o),o.delete(u)),Xg(e,n,l)}var ZA=GA,KA=wu,XA=Ex,JA=$x,QA=ZA,ej=er,tj=as,nj=Lx;function Bx(e,t,n,r,a){e!==t&&JA(t,function(i,o){if(a||(a=new KA),ej(i))QA(e,t,o,n,Bx,r,a);else{var s=r?r(nj(e,o),i,o+"",e,t,a):void 0;s===void 0&&(s=i),XA(e,o,s)}},tj)}var rj=Bx;function aj(e){return e}var Ou=aj;function ij(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var oj=ij,sj=oj,t0=Math.max;function cj(e,t,n){return t=t0(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=t0(r.length-t,0),o=Array(i);++a<i;)o[a]=r[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=r[a];return s[t]=n(o),sj(e,this,s)}}var Wx=cj;function uj(e){return function(){return e}}var lj=uj,dj=lj,n0=Ox,fj=Ou,hj=n0?function(e,t){return n0(e,"toString",{configurable:!0,enumerable:!1,value:dj(t),writable:!0})}:fj,pj=hj,mj=800,gj=16,vj=Date.now;function yj(e){var t=0,n=0;return function(){var r=vj(),a=gj-(r-n);if(n=r,a>0){if(++t>=mj)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var bj=yj,xj=pj,_j=bj,wj=_j(xj),zx=wj,Tj=Ou,Cj=Wx,kj=zx;function Sj(e,t){return kj(Cj(e,t,Tj),e+"")}var np=Sj,Oj=ns,Ej=xi,$j=Su,Mj=er;function Rj(e,t,n){if(!Mj(n))return!1;var r=typeof t;return(r=="number"?Ej(n)&&$j(t,n.length):r=="string"&&t in n)?Oj(n[t],e):!1}var Hx=Rj,Aj=np,jj=Hx;function Pj(e){return Aj(function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,o=a>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,o&&jj(n[0],n[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++r<a;){var s=n[r];s&&e(t,s,r,i)}return t})}var Dj=Pj,Ij=rj,Nj=Dj,Fj=Nj(function(e,t,n){Ij(e,t,n)}),Lj=Fj;const Uj=Tt(Lj);var Bj=zr,Wj=Un,zj="[object Symbol]";function Hj(e){return typeof e=="symbol"||Wj(e)&&Bj(e)==zj}var Eu=Hj,Vj=cn,qj=Eu,Yj=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Gj=/^\w*$/;function Zj(e,t){if(Vj(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||qj(e)?!0:Gj.test(e)||!Yj.test(e)||t!=null&&e in Object(t)}var rp=Zj,Vx=qh,Kj="Expected a function";function ap(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Kj);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(ap.Cache||Vx),n}ap.Cache=Vx;var Xj=ap,Jj=Xj,Qj=500;function eP(e){var t=Jj(e,function(r){return n.size===Qj&&n.clear(),r}),n=t.cache;return t}var tP=eP,nP=tP,rP=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,aP=/\\(\\)?/g,iP=nP(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(rP,function(n,r,a,i){t.push(a?i.replace(aP,"$1"):r||n)}),t}),oP=iP;function sP(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}var $u=sP,r0=gi,cP=$u,uP=cn,lP=Eu,dP=1/0,a0=r0?r0.prototype:void 0,i0=a0?a0.toString:void 0;function qx(e){if(typeof e=="string")return e;if(uP(e))return cP(e,qx)+"";if(lP(e))return i0?i0.call(e):"";var t=e+"";return t=="0"&&1/e==-dP?"-0":t}var fP=qx,hP=fP;function pP(e){return e==null?"":hP(e)}var mP=pP,gP=cn,vP=rp,yP=oP,bP=mP;function xP(e,t){return gP(e)?e:vP(e,t)?[e]:yP(bP(e))}var wi=xP,_P=Eu,wP=1/0;function TP(e){if(typeof e=="string"||_P(e))return e;var t=e+"";return t=="0"&&1/e==-wP?"-0":t}var Ti=TP,CP=wi,kP=Ti;function SP(e,t){t=CP(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[kP(t[n++])];return n&&n==r?e:void 0}var is=SP,OP=is;function EP(e,t,n){var r=e==null?void 0:OP(e,t);return r===void 0?n:r}var Yx=EP;const pr=Tt(Yx);var $P=tp,MP=wi,RP=Su,o0=er,AP=Ti;function jP(e,t,n,r){if(!o0(e))return e;t=MP(t,e);for(var a=-1,i=t.length,o=i-1,s=e;s!=null&&++a<i;){var u=AP(t[a]),c=n;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(a!=o){var l=s[u];c=r?r(l,u,s):void 0,c===void 0&&(c=o0(l)?l:RP(t[a+1])?[]:{})}$P(s,u,c),s=s[u]}return e}var Gx=jP,PP=Gx;function DP(e,t,n){return e==null?e:PP(e,t,n)}var IP=DP;const Ki=Tt(IP);function Mu(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ip(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ci(){}var ma=.7,ni=1/ma,Ha="\\s*([+-]?\\d+)\\s*",Do="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Yn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",NP=/^#([0-9a-f]{3,8})$/,FP=new RegExp(`^rgb\\(${Ha},${Ha},${Ha}\\)$`),LP=new RegExp(`^rgb\\(${Yn},${Yn},${Yn}\\)$`),UP=new RegExp(`^rgba\\(${Ha},${Ha},${Ha},${Do}\\)$`),BP=new RegExp(`^rgba\\(${Yn},${Yn},${Yn},${Do}\\)$`),WP=new RegExp(`^hsl\\(${Do},${Yn},${Yn}\\)$`),zP=new RegExp(`^hsla\\(${Do},${Yn},${Yn},${Do}\\)$`),s0={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Mu(Ci,Io,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:c0,formatHex:c0,formatHex8:HP,formatHsl:VP,formatRgb:u0,toString:u0});function c0(){return this.rgb().formatHex()}function HP(){return this.rgb().formatHex8()}function VP(){return Kx(this).formatHsl()}function u0(){return this.rgb().formatRgb()}function Io(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=NP.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?l0(t):n===3?new zt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?xs(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?xs(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=FP.exec(e))?new zt(t[1],t[2],t[3],1):(t=LP.exec(e))?new zt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=UP.exec(e))?xs(t[1],t[2],t[3],t[4]):(t=BP.exec(e))?xs(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=WP.exec(e))?h0(t[1],t[2]/100,t[3]/100,1):(t=zP.exec(e))?h0(t[1],t[2]/100,t[3]/100,t[4]):s0.hasOwnProperty(e)?l0(s0[e]):e==="transparent"?new zt(NaN,NaN,NaN,0):null}function l0(e){return new zt(e>>16&255,e>>8&255,e&255,1)}function xs(e,t,n,r){return r<=0&&(e=t=n=NaN),new zt(e,t,n,r)}function Zx(e){return e instanceof Ci||(e=Io(e)),e?(e=e.rgb(),new zt(e.r,e.g,e.b,e.opacity)):new zt}function ri(e,t,n,r){return arguments.length===1?Zx(e):new zt(e,t,n,r??1)}function zt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Mu(zt,ri,ip(Ci,{brighter(e){return e=e==null?ni:Math.pow(ni,e),new zt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ma:Math.pow(ma,e),new zt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new zt(aa(this.r),aa(this.g),aa(this.b),yc(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:d0,formatHex:d0,formatHex8:qP,formatRgb:f0,toString:f0}));function d0(){return`#${Xr(this.r)}${Xr(this.g)}${Xr(this.b)}`}function qP(){return`#${Xr(this.r)}${Xr(this.g)}${Xr(this.b)}${Xr((isNaN(this.opacity)?1:this.opacity)*255)}`}function f0(){const e=yc(this.opacity);return`${e===1?"rgb(":"rgba("}${aa(this.r)}, ${aa(this.g)}, ${aa(this.b)}${e===1?")":`, ${e})`}`}function yc(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function aa(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Xr(e){return e=aa(e),(e<16?"0":"")+e.toString(16)}function h0(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Rn(e,t,n,r)}function Kx(e){if(e instanceof Rn)return new Rn(e.h,e.s,e.l,e.opacity);if(e instanceof Ci||(e=Io(e)),!e)return new Rn;if(e instanceof Rn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,s=i-a,u=(i+a)/2;return s?(t===i?o=(n-r)/s+(n<r)*6:n===i?o=(r-t)/s+2:o=(t-n)/s+4,s/=u<.5?i+a:2-i-a,o*=60):s=u>0&&u<1?0:o,new Rn(o,s,u,e.opacity)}function YP(e,t,n,r){return arguments.length===1?Kx(e):new Rn(e,t,n,r??1)}function Rn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Mu(Rn,YP,ip(Ci,{brighter(e){return e=e==null?ni:Math.pow(ni,e),new Rn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ma:Math.pow(ma,e),new Rn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new zt(Kl(e>=240?e-240:e+120,a,r),Kl(e,a,r),Kl(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new Rn(p0(this.h),_s(this.s),_s(this.l),yc(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=yc(this.opacity);return`${e===1?"hsl(":"hsla("}${p0(this.h)}, ${_s(this.s)*100}%, ${_s(this.l)*100}%${e===1?")":`, ${e})`}`}}));function p0(e){return e=(e||0)%360,e<0?e+360:e}function _s(e){return Math.max(0,Math.min(1,e||0))}function Kl(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const GP=Math.PI/180,ZP=180/Math.PI;var Xx=-.14861,op=1.78277,sp=-.29227,Ru=-.90649,No=1.97294,m0=No*Ru,g0=No*op,v0=op*sp-Ru*Xx;function KP(e){if(e instanceof ia)return new ia(e.h,e.s,e.l,e.opacity);e instanceof zt||(e=Zx(e));var t=e.r/255,n=e.g/255,r=e.b/255,a=(v0*r+m0*t-g0*n)/(v0+m0-g0),i=r-a,o=(No*(n-a)-sp*i)/Ru,s=Math.sqrt(o*o+i*i)/(No*a*(1-a)),u=s?Math.atan2(o,i)*ZP-120:NaN;return new ia(u<0?u+360:u,s,a,e.opacity)}function Xn(e,t,n,r){return arguments.length===1?KP(e):new ia(e,t,n,r??1)}function ia(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Mu(ia,Xn,ip(Ci,{brighter(e){return e=e==null?ni:Math.pow(ni,e),new ia(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ma:Math.pow(ma,e),new ia(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*GP,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),a=Math.sin(e);return new zt(255*(t+n*(Xx*r+op*a)),255*(t+n*(sp*r+Ru*a)),255*(t+n*(No*r)),this.opacity)}}));function XP(e,t,n,r,a){var i=e*e,o=i*e;return((1-3*e+3*i-o)*t+(4-6*i+3*o)*n+(1+3*e+3*i-3*o)*r+o*a)/6}function JP(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),a=e[r],i=e[r+1],o=r>0?e[r-1]:2*a-i,s=r<t-1?e[r+2]:2*i-a;return XP((n-r/t)*t,o,a,i,s)}}const Au=e=>()=>e;function Jx(e,t){return function(n){return e+n*t}}function QP(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function eD(e,t){var n=t-e;return n?Jx(e,n>180||n<-180?n-360*Math.round(n/360):n):Au(isNaN(e)?t:e)}function tD(e){return(e=+e)==1?Va:function(t,n){return n-t?QP(t,n,e):Au(isNaN(t)?n:t)}}function Va(e,t){var n=t-e;return n?Jx(e,n):Au(isNaN(e)?t:e)}const y0=function e(t){var n=tD(t);function r(a,i){var o=n((a=ri(a)).r,(i=ri(i)).r),s=n(a.g,i.g),u=n(a.b,i.b),c=Va(a.opacity,i.opacity);return function(l){return a.r=o(l),a.g=s(l),a.b=u(l),a.opacity=c(l),a+""}}return r.gamma=e,r}(1);function nD(e){return function(t){var n=t.length,r=new Array(n),a=new Array(n),i=new Array(n),o,s;for(o=0;o<n;++o)s=ri(t[o]),r[o]=s.r||0,a[o]=s.g||0,i[o]=s.b||0;return r=e(r),a=e(a),i=e(i),s.opacity=1,function(u){return s.r=r(u),s.g=a(u),s.b=i(u),s+""}}}var rD=nD(JP);function aD(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(i){for(a=0;a<n;++a)r[a]=e[a]*(1-i)+t[a]*i;return r}}function iD(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function oD(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),i=new Array(n),o;for(o=0;o<r;++o)a[o]=cp(e[o],t[o]);for(;o<n;++o)i[o]=t[o];return function(s){for(o=0;o<r;++o)i[o]=a[o](s);return i}}function sD(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function bc(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function cD(e,t){var n={},r={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?n[a]=cp(e[a],t[a]):r[a]=t[a];return function(i){for(a in n)r[a]=n[a](i);return r}}var vf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Xl=new RegExp(vf.source,"g");function uD(e){return function(){return e}}function lD(e){return function(t){return e(t)+""}}function Qx(e,t){var n=vf.lastIndex=Xl.lastIndex=0,r,a,i,o=-1,s=[],u=[];for(e=e+"",t=t+"";(r=vf.exec(e))&&(a=Xl.exec(t));)(i=a.index)>n&&(i=t.slice(n,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(a=a[0])?s[o]?s[o]+=a:s[++o]=a:(s[++o]=null,u.push({i:o,x:bc(r,a)})),n=Xl.lastIndex;return n<t.length&&(i=t.slice(n),s[o]?s[o]+=i:s[++o]=i),s.length<2?u[0]?lD(u[0].x):uD(t):(t=u.length,function(c){for(var l=0,d;l<t;++l)s[(d=u[l]).i]=d.x(c);return s.join("")})}function cp(e,t){var n=typeof t,r;return t==null||n==="boolean"?Au(t):(n==="number"?bc:n==="string"?(r=Io(t))?(t=r,y0):Qx:t instanceof Io?y0:t instanceof Date?sD:iD(t)?aD:Array.isArray(t)?oD:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?cD:bc)(e,t)}function dD(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function e2(e){return function t(n){n=+n;function r(a,i){var o=e((a=Xn(a)).h,(i=Xn(i)).h),s=Va(a.s,i.s),u=Va(a.l,i.l),c=Va(a.opacity,i.opacity);return function(l){return a.h=o(l),a.s=s(l),a.l=u(Math.pow(l,n)),a.opacity=c(l),a+""}}return r.gamma=t,r}(1)}e2(eD);var up=e2(Va),fD=zr,hD=cn,pD=Un,mD="[object String]";function gD(e){return typeof e=="string"||!hD(e)&&pD(e)&&fD(e)==mD}var vD=gD;const yD=Tt(vD);function bD(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var t2=bD;const ye=Tt(t2);function Fs(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function xD(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function lp(e){let t,n,r;e.length!==2?(t=Fs,n=(s,u)=>Fs(e(s),u),r=(s,u)=>e(s)-u):(t=e===Fs||e===xD?e:_D,n=e,r=e);function a(s,u,c=0,l=s.length){if(c<l){if(t(u,u)!==0)return l;do{const d=c+l>>>1;n(s[d],u)<0?c=d+1:l=d}while(c<l)}return c}function i(s,u,c=0,l=s.length){if(c<l){if(t(u,u)!==0)return l;do{const d=c+l>>>1;n(s[d],u)<=0?c=d+1:l=d}while(c<l)}return c}function o(s,u,c=0,l=s.length){const d=a(s,u,c,l-1);return d>c&&r(s[d-1],u)>-r(s[d],u)?d-1:d}return{left:a,center:o,right:i}}function _D(){return 0}function wD(e){return e===null?NaN:+e}const TD=lp(Fs),CD=TD.right;lp(wD).center;class b0 extends Map{constructor(t,n=OD){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get(x0(this,t))}has(t){return super.has(x0(this,t))}set(t,n){return super.set(kD(this,t),n)}delete(t){return super.delete(SD(this,t))}}function x0({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function kD({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function SD({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function OD(e){return e!==null&&typeof e=="object"?e.valueOf():e}const ED=Math.sqrt(50),$D=Math.sqrt(10),MD=Math.sqrt(2);function xc(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),i=r/Math.pow(10,a),o=i>=ED?10:i>=$D?5:i>=MD?2:1;let s,u,c;return a<0?(c=Math.pow(10,-a)/o,s=Math.round(e*c),u=Math.round(t*c),s/c<e&&++s,u/c>t&&--u,c=-c):(c=Math.pow(10,a)*o,s=Math.round(e/c),u=Math.round(t/c),s*c<e&&++s,u*c>t&&--u),u<s&&.5<=n&&n<2?xc(e,t,n*2):[s,u,c]}function yf(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,i,o]=r?xc(t,e,n):xc(e,t,n);if(!(i>=a))return[];const s=i-a+1,u=new Array(s);if(r)if(o<0)for(let c=0;c<s;++c)u[c]=(i-c)/-o;else for(let c=0;c<s;++c)u[c]=(i-c)*o;else if(o<0)for(let c=0;c<s;++c)u[c]=(a+c)/-o;else for(let c=0;c<s;++c)u[c]=(a+c)*o;return u}function bf(e,t,n){return t=+t,e=+e,n=+n,xc(e,t,n)[2]}function xf(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?bf(t,e,n):bf(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function RD(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(a);++r<a;)i[r]=e+r*n;return i}function wa(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const _0=Symbol("implicit");function Jr(){var e=new b0,t=[],n=[],r=_0;function a(i){let o=e.get(i);if(o===void 0){if(r!==_0)return r;e.set(i,o=t.push(i)-1)}return n[o%n.length]}return a.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new b0;for(const o of i)e.has(o)||e.set(o,t.push(o)-1);return a},a.range=function(i){return arguments.length?(n=Array.from(i),a):n.slice()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return Jr(t,n).unknown(r)},wa.apply(a,arguments),a}function dp(){var e=Jr().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,i,o,s=!1,u=0,c=0,l=.5;delete e.unknown;function d(){var f=t().length,p=a<r,m=p?a:r,g=p?r:a;i=(g-m)/Math.max(1,f-u+c*2),s&&(i=Math.floor(i)),m+=(g-m-i*(f-u))*l,o=i*(1-u),s&&(m=Math.round(m),o=Math.round(o));var v=RD(f).map(function(x){return m+i*x});return n(p?v.reverse():v)}return e.domain=function(f){return arguments.length?(t(f),d()):t()},e.range=function(f){return arguments.length?([r,a]=f,r=+r,a=+a,d()):[r,a]},e.rangeRound=function(f){return[r,a]=f,r=+r,a=+a,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return i},e.round=function(f){return arguments.length?(s=!!f,d()):s},e.padding=function(f){return arguments.length?(u=Math.min(1,c=+f),d()):u},e.paddingInner=function(f){return arguments.length?(u=Math.min(1,f),d()):u},e.paddingOuter=function(f){return arguments.length?(c=+f,d()):c},e.align=function(f){return arguments.length?(l=Math.max(0,Math.min(1,f)),d()):l},e.copy=function(){return dp(t(),[r,a]).round(s).paddingInner(u).paddingOuter(c).align(l)},wa.apply(d(),arguments)}function n2(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return n2(t())},e}function AD(){return n2(dp.apply(null,arguments).paddingInner(1))}function jD(e){return function(){return e}}function PD(e){return+e}var w0=[0,1];function La(e){return e}function _f(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:jD(isNaN(t)?NaN:.5)}function DD(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function ID(e,t,n){var r=e[0],a=e[1],i=t[0],o=t[1];return a<r?(r=_f(a,r),i=n(o,i)):(r=_f(r,a),i=n(i,o)),function(s){return i(r(s))}}function ND(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),i=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)a[o]=_f(e[o],e[o+1]),i[o]=n(t[o],t[o+1]);return function(s){var u=CD(e,s,1,r)-1;return i[u](a[u](s))}}function ju(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function fp(){var e=w0,t=w0,n=cp,r,a,i,o=La,s,u,c;function l(){var f=Math.min(e.length,t.length);return o!==La&&(o=DD(e[0],e[f-1])),s=f>2?ND:ID,u=c=null,d}function d(f){return f==null||isNaN(f=+f)?i:(u||(u=s(e.map(r),t,n)))(r(o(f)))}return d.invert=function(f){return o(a((c||(c=s(t,e.map(r),bc)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,PD),l()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),l()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=dD,l()},d.clamp=function(f){return arguments.length?(o=f?!0:La,l()):o!==La},d.interpolate=function(f){return arguments.length?(n=f,l()):n},d.unknown=function(f){return arguments.length?(i=f,d):i},function(f,p){return r=f,a=p,l()}}function r2(){return fp()(La,La)}function FD(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function _c(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function ai(e){return e=_c(Math.abs(e)),e?e[1]:NaN}function LD(e,t){return function(n,r){for(var a=n.length,i=[],o=0,s=e[0],u=0;a>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),i.push(n.substring(a-=s,a+s)),!((u+=s+1)>r));)s=e[o=(o+1)%e.length];return i.reverse().join(t)}}function UD(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var BD=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Fo(e){if(!(t=BD.exec(e)))throw new Error("invalid format: "+e);var t;return new hp({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Fo.prototype=hp.prototype;function hp(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}hp.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function WD(e){e:for(var t=e.length,n=1,r=-1,a;n<t;++n)switch(e[n]){case".":r=a=n;break;case"0":r===0&&(r=n),a=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var a2;function zD(e,t){var n=_c(e,t);if(!n)return e+"";var r=n[0],a=n[1],i=a-(a2=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+_c(e,Math.max(0,t+i-1))[0]}function T0(e,t){var n=_c(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const C0={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:FD,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return T0(e*100,t)},r:T0,s:zD,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function k0(e){return e}var S0=Array.prototype.map,O0=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function HD(e){var t=e.grouping===void 0||e.thousands===void 0?k0:LD(S0.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?k0:UD(S0.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"-":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function c(d){d=Fo(d);var f=d.fill,p=d.align,m=d.sign,g=d.symbol,v=d.zero,x=d.width,w=d.comma,b=d.precision,T=d.trim,_=d.type;_==="n"?(w=!0,_="g"):C0[_]||(b===void 0&&(b=12),T=!0,_="g"),(v||f==="0"&&p==="=")&&(v=!0,f="0",p="=");var C=g==="$"?n:g==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",$=g==="$"?r:/[%p]/.test(_)?o:"",A=C0[_],D=/[defgprs%]/.test(_);b=b===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function j(E){var F=C,M=$,R,I,U;if(_==="c")M=A(E)+M,E="";else{E=+E;var N=E<0||1/E<0;if(E=isNaN(E)?u:A(Math.abs(E),b),T&&(E=WD(E)),N&&+E==0&&m!=="+"&&(N=!1),F=(N?m==="("?m:s:m==="-"||m==="("?"":m)+F,M=(_==="s"?O0[8+a2/3]:"")+M+(N&&m==="("?")":""),D){for(R=-1,I=E.length;++R<I;)if(U=E.charCodeAt(R),48>U||U>57){M=(U===46?a+E.slice(R+1):E.slice(R))+M,E=E.slice(0,R);break}}}w&&!v&&(E=t(E,1/0));var q=F.length+E.length+M.length,z=q<x?new Array(x-q+1).join(f):"";switch(w&&v&&(E=t(z+E,z.length?x-M.length:1/0),z=""),p){case"<":E=F+E+M+z;break;case"=":E=F+z+E+M;break;case"^":E=z.slice(0,q=z.length>>1)+F+E+M+z.slice(q);break;default:E=z+F+E+M;break}return i(E)}return j.toString=function(){return d+""},j}function l(d,f){var p=c((d=Fo(d),d.type="f",d)),m=Math.max(-8,Math.min(8,Math.floor(ai(f)/3)))*3,g=Math.pow(10,-m),v=O0[8+m/3];return function(x){return p(g*x)+v}}return{format:c,formatPrefix:l}}var ws,os,i2;VD({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function VD(e){return ws=HD(e),os=ws.format,i2=ws.formatPrefix,ws}function qD(e){return Math.max(0,-ai(Math.abs(e)))}function YD(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ai(t)/3)))*3-ai(Math.abs(e)))}function GD(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ai(t)-ai(e))+1}function ZD(e,t,n,r){var a=xf(e,t,n),i;switch(r=Fo(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=YD(a,o))&&(r.precision=i),i2(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=GD(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=qD(a))&&(r.precision=i-(r.type==="%")*2);break}}return os(r)}function o2(e){var t=e.domain;return e.ticks=function(n){var r=t();return yf(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return ZD(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,i=r.length-1,o=r[a],s=r[i],u,c,l=10;for(s<o&&(c=o,o=s,s=c,c=a,a=i,i=c);l-- >0;){if(c=bf(o,s,n),c===u)return r[a]=o,r[i]=s,t(r);if(c>0)o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c;else if(c<0)o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c;else break;u=c}return e},e}function s2(){var e=r2();return e.copy=function(){return ju(e,s2())},wa.apply(e,arguments),o2(e)}function c2(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],i=e[r],o;return i<a&&(o=n,n=r,r=o,o=a,a=i,i=o),e[n]=t.floor(a),e[r]=t.ceil(i),e}function E0(e){return Math.log(e)}function $0(e){return Math.exp(e)}function KD(e){return-Math.log(-e)}function XD(e){return-Math.exp(-e)}function JD(e){return isFinite(e)?+("1e"+e):e<0?0:e}function QD(e){return e===10?JD:e===Math.E?Math.exp:t=>Math.pow(e,t)}function eI(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function M0(e){return(t,n)=>-e(-t,n)}function tI(e){const t=e(E0,$0),n=t.domain;let r=10,a,i;function o(){return a=eI(r),i=QD(r),n()[0]<0?(a=M0(a),i=M0(i),e(KD,XD)):e(E0,$0),t}return t.base=function(s){return arguments.length?(r=+s,o()):r},t.domain=function(s){return arguments.length?(n(s),o()):n()},t.ticks=s=>{const u=n();let c=u[0],l=u[u.length-1];const d=l<c;d&&([c,l]=[l,c]);let f=a(c),p=a(l),m,g;const v=s==null?10:+s;let x=[];if(!(r%1)&&p-f<v){if(f=Math.floor(f),p=Math.ceil(p),c>0){for(;f<=p;++f)for(m=1;m<r;++m)if(g=f<0?m/i(-f):m*i(f),!(g<c)){if(g>l)break;x.push(g)}}else for(;f<=p;++f)for(m=r-1;m>=1;--m)if(g=f>0?m/i(-f):m*i(f),!(g<c)){if(g>l)break;x.push(g)}x.length*2<v&&(x=yf(c,l,v))}else x=yf(f,p,Math.min(p-f,v)).map(i);return d?x.reverse():x},t.tickFormat=(s,u)=>{if(s==null&&(s=10),u==null&&(u=r===10?"s":","),typeof u!="function"&&(!(r%1)&&(u=Fo(u)).precision==null&&(u.trim=!0),u=os(u)),s===1/0)return u;const c=Math.max(1,r*s/t.ticks().length);return l=>{let d=l/i(Math.round(a(l)));return d*r<r-.5&&(d*=r),d<=c?u(l):""}},t.nice=()=>n(c2(n(),{floor:s=>i(Math.floor(a(s))),ceil:s=>i(Math.ceil(a(s)))})),t}function u2(){const e=tI(fp()).domain([1,10]);return e.copy=()=>ju(e,u2()).base(e.base()),wa.apply(e,arguments),e}function R0(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function A0(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function nI(e){var t=1,n=e(R0(t),A0(t));return n.constant=function(r){return arguments.length?e(R0(t=+r),A0(t)):t},o2(n)}function l2(){var e=nI(fp());return e.copy=function(){return ju(e,l2()).constant(e.constant())},wa.apply(e,arguments)}const Jl=new Date,Ql=new Date;function Rt(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const o=a(i),s=a.ceil(i);return i-o<s-i?o:s},a.offset=(i,o)=>(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,s)=>{const u=[];if(i=a.ceil(i),s=s==null?1:Math.floor(s),!(i<o)||!(s>0))return u;let c;do u.push(c=new Date(+i)),t(i,s),e(i);while(c<i&&i<o);return u},a.filter=i=>Rt(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!i(o););else for(;--s>=0;)for(;t(o,1),!i(o););}),n&&(a.count=(i,o)=>(Jl.setTime(+i),Ql.setTime(+o),e(Jl),e(Ql),Math.floor(n(Jl,Ql))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?o=>r(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const wc=Rt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);wc.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Rt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):wc);wc.range;const sr=1e3,Cn=sr*60,cr=Cn*60,mr=cr*24,pp=mr*7,j0=mr*30,ed=mr*365,Qr=Rt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*sr)},(e,t)=>(t-e)/sr,e=>e.getUTCSeconds());Qr.range;const mp=Rt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*sr)},(e,t)=>{e.setTime(+e+t*Cn)},(e,t)=>(t-e)/Cn,e=>e.getMinutes());mp.range;const gp=Rt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Cn)},(e,t)=>(t-e)/Cn,e=>e.getUTCMinutes());gp.range;const vp=Rt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*sr-e.getMinutes()*Cn)},(e,t)=>{e.setTime(+e+t*cr)},(e,t)=>(t-e)/cr,e=>e.getHours());vp.range;const yp=Rt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*cr)},(e,t)=>(t-e)/cr,e=>e.getUTCHours());yp.range;const bp=Rt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Cn)/mr,e=>e.getDate()-1);bp.range;const d2=Rt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mr,e=>e.getUTCDate()-1);d2.range;const f2=Rt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mr,e=>Math.floor(e/mr));f2.range;function Ta(e){return Rt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Cn)/pp)}const xp=Ta(0),rI=Ta(1),aI=Ta(2),iI=Ta(3),oI=Ta(4),sI=Ta(5),cI=Ta(6);xp.range;rI.range;aI.range;iI.range;oI.range;sI.range;cI.range;function Ca(e){return Rt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/pp)}const _p=Ca(0),uI=Ca(1),lI=Ca(2),dI=Ca(3),fI=Ca(4),hI=Ca(5),pI=Ca(6);_p.range;uI.range;lI.range;dI.range;fI.range;hI.range;pI.range;const wp=Rt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());wp.range;const Tp=Rt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Tp.range;const Pu=Rt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Pu.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Rt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Pu.range;const Du=Rt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Du.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Rt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Du.range;function h2(e,t,n,r,a,i){const o=[[Qr,1,sr],[Qr,5,5*sr],[Qr,15,15*sr],[Qr,30,30*sr],[i,1,Cn],[i,5,5*Cn],[i,15,15*Cn],[i,30,30*Cn],[a,1,cr],[a,3,3*cr],[a,6,6*cr],[a,12,12*cr],[r,1,mr],[r,2,2*mr],[n,1,pp],[t,1,j0],[t,3,3*j0],[e,1,ed]];function s(c,l,d){const f=l<c;f&&([c,l]=[l,c]);const p=d&&typeof d.range=="function"?d:u(c,l,d),m=p?p.range(c,+l+1):[];return f?m.reverse():m}function u(c,l,d){const f=Math.abs(l-c)/d,p=lp(([,,v])=>v).right(o,f);if(p===o.length)return e.every(xf(c/ed,l/ed,d));if(p===0)return wc.every(Math.max(xf(c,l,d),1));const[m,g]=o[f/o[p-1][2]<o[p][2]/f?p-1:p];return m.every(g)}return[s,u]}const[mI,gI]=h2(Du,Tp,_p,f2,yp,gp),[vI,yI]=h2(Pu,wp,xp,bp,vp,mp);var td=new Date,nd=new Date;function yr(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=function(i){return e(i=new Date(+i)),i},a.ceil=function(i){return e(i=new Date(i-1)),t(i,1),e(i),i},a.round=function(i){var o=a(i),s=a.ceil(i);return i-o<s-i?o:s},a.offset=function(i,o){return t(i=new Date(+i),o==null?1:Math.floor(o)),i},a.range=function(i,o,s){var u=[],c;if(i=a.ceil(i),s=s==null?1:Math.floor(s),!(i<o)||!(s>0))return u;do u.push(c=new Date(+i)),t(i,s),e(i);while(c<i&&i<o);return u},a.filter=function(i){return yr(function(o){if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},function(o,s){if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!i(o););else for(;--s>=0;)for(;t(o,1),!i(o););})},n&&(a.count=function(i,o){return td.setTime(+i),nd.setTime(+o),e(td),e(nd),Math.floor(n(td,nd))},a.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?function(o){return r(o)%i===0}:function(o){return a.count(0,o)%i===0}):a}),a}const bI=1e3,Cp=bI*60,xI=Cp*60,kp=xI*24,p2=kp*7;var Sp=yr(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Cp)/kp,e=>e.getDate()-1);Sp.range;function ka(e){return yr(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Cp)/p2})}var m2=ka(0),Tc=ka(1),_I=ka(2),wI=ka(3),ii=ka(4),TI=ka(5),CI=ka(6);m2.range;Tc.range;_I.range;wI.range;ii.range;TI.range;CI.range;var ga=yr(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});ga.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:yr(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};ga.range;var Op=yr(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/kp},function(e){return e.getUTCDate()-1});Op.range;function Sa(e){return yr(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/p2})}var g2=Sa(0),Cc=Sa(1),kI=Sa(2),SI=Sa(3),oi=Sa(4),OI=Sa(5),EI=Sa(6);g2.range;Cc.range;kI.range;SI.range;oi.range;OI.range;EI.range;var va=yr(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});va.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:yr(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};va.range;function rd(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function ad(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Ui(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function $I(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,i=e.days,o=e.shortDays,s=e.months,u=e.shortMonths,c=Bi(a),l=Wi(a),d=Bi(i),f=Wi(i),p=Bi(o),m=Wi(o),g=Bi(s),v=Wi(s),x=Bi(u),w=Wi(u),b={a:N,A:q,b:z,B:P,c:null,d:L0,e:L0,f:JI,g:cN,G:lN,H:ZI,I:KI,j:XI,L:v2,m:QI,M:eN,p:W,q:Z,Q:W0,s:z0,S:tN,u:nN,U:rN,V:aN,w:iN,W:oN,x:null,X:null,y:sN,Y:uN,Z:dN,"%":B0},T={a:ne,A:Y,b:Q,B:G,c:null,d:U0,e:U0,f:mN,g:kN,G:ON,H:fN,I:hN,j:pN,L:b2,m:gN,M:vN,p:J,q:re,Q:W0,s:z0,S:yN,u:bN,U:xN,V:_N,w:wN,W:TN,x:null,X:null,y:CN,Y:SN,Z:EN,"%":B0},_={a:j,A:E,b:F,B:M,c:R,d:N0,e:N0,f:VI,g:I0,G:D0,H:F0,I:F0,j:BI,L:HI,m:UI,M:WI,p:D,q:LI,Q:YI,s:GI,S:zI,u:PI,U:DI,V:II,w:jI,W:NI,x:I,X:U,y:I0,Y:D0,Z:FI,"%":qI};b.x=C(n,b),b.X=C(r,b),b.c=C(t,b),T.x=C(n,T),T.X=C(r,T),T.c=C(t,T);function C(L,V){return function(ae){var k=[],ge=-1,pe=0,de=L.length,Ae,Pe,ft;for(ae instanceof Date||(ae=new Date(+ae));++ge<de;)L.charCodeAt(ge)===37&&(k.push(L.slice(pe,ge)),(Pe=P0[Ae=L.charAt(++ge)])!=null?Ae=L.charAt(++ge):Pe=Ae==="e"?" ":"0",(ft=V[Ae])&&(Ae=ft(ae,Pe)),k.push(Ae),pe=ge+1);return k.push(L.slice(pe,ge)),k.join("")}}function $(L,V){return function(ae){var k=Ui(1900,void 0,1),ge=A(k,L,ae+="",0),pe,de;if(ge!=ae.length)return null;if("Q"in k)return new Date(k.Q);if("s"in k)return new Date(k.s*1e3+("L"in k?k.L:0));if(V&&!("Z"in k)&&(k.Z=0),"p"in k&&(k.H=k.H%12+k.p*12),k.m===void 0&&(k.m="q"in k?k.q:0),"V"in k){if(k.V<1||k.V>53)return null;"w"in k||(k.w=1),"Z"in k?(pe=ad(Ui(k.y,0,1)),de=pe.getUTCDay(),pe=de>4||de===0?Cc.ceil(pe):Cc(pe),pe=Op.offset(pe,(k.V-1)*7),k.y=pe.getUTCFullYear(),k.m=pe.getUTCMonth(),k.d=pe.getUTCDate()+(k.w+6)%7):(pe=rd(Ui(k.y,0,1)),de=pe.getDay(),pe=de>4||de===0?Tc.ceil(pe):Tc(pe),pe=Sp.offset(pe,(k.V-1)*7),k.y=pe.getFullYear(),k.m=pe.getMonth(),k.d=pe.getDate()+(k.w+6)%7)}else("W"in k||"U"in k)&&("w"in k||(k.w="u"in k?k.u%7:"W"in k?1:0),de="Z"in k?ad(Ui(k.y,0,1)).getUTCDay():rd(Ui(k.y,0,1)).getDay(),k.m=0,k.d="W"in k?(k.w+6)%7+k.W*7-(de+5)%7:k.w+k.U*7-(de+6)%7);return"Z"in k?(k.H+=k.Z/100|0,k.M+=k.Z%100,ad(k)):rd(k)}}function A(L,V,ae,k){for(var ge=0,pe=V.length,de=ae.length,Ae,Pe;ge<pe;){if(k>=de)return-1;if(Ae=V.charCodeAt(ge++),Ae===37){if(Ae=V.charAt(ge++),Pe=_[Ae in P0?V.charAt(ge++):Ae],!Pe||(k=Pe(L,ae,k))<0)return-1}else if(Ae!=ae.charCodeAt(k++))return-1}return k}function D(L,V,ae){var k=c.exec(V.slice(ae));return k?(L.p=l.get(k[0].toLowerCase()),ae+k[0].length):-1}function j(L,V,ae){var k=p.exec(V.slice(ae));return k?(L.w=m.get(k[0].toLowerCase()),ae+k[0].length):-1}function E(L,V,ae){var k=d.exec(V.slice(ae));return k?(L.w=f.get(k[0].toLowerCase()),ae+k[0].length):-1}function F(L,V,ae){var k=x.exec(V.slice(ae));return k?(L.m=w.get(k[0].toLowerCase()),ae+k[0].length):-1}function M(L,V,ae){var k=g.exec(V.slice(ae));return k?(L.m=v.get(k[0].toLowerCase()),ae+k[0].length):-1}function R(L,V,ae){return A(L,t,V,ae)}function I(L,V,ae){return A(L,n,V,ae)}function U(L,V,ae){return A(L,r,V,ae)}function N(L){return o[L.getDay()]}function q(L){return i[L.getDay()]}function z(L){return u[L.getMonth()]}function P(L){return s[L.getMonth()]}function W(L){return a[+(L.getHours()>=12)]}function Z(L){return 1+~~(L.getMonth()/3)}function ne(L){return o[L.getUTCDay()]}function Y(L){return i[L.getUTCDay()]}function Q(L){return u[L.getUTCMonth()]}function G(L){return s[L.getUTCMonth()]}function J(L){return a[+(L.getUTCHours()>=12)]}function re(L){return 1+~~(L.getUTCMonth()/3)}return{format:function(L){var V=C(L+="",b);return V.toString=function(){return L},V},parse:function(L){var V=$(L+="",!1);return V.toString=function(){return L},V},utcFormat:function(L){var V=C(L+="",T);return V.toString=function(){return L},V},utcParse:function(L){var V=$(L+="",!0);return V.toString=function(){return L},V}}}var P0={"-":"",_:" ",0:"0"},Dt=/^\s*\d+/,MI=/^%/,RI=/[\\^$*+?|[\]().{}]/g;function Be(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i<n?new Array(n-i+1).join(t)+a:a)}function AI(e){return e.replace(RI,"\\$&")}function Bi(e){return new RegExp("^(?:"+e.map(AI).join("|")+")","i")}function Wi(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function jI(e,t,n){var r=Dt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function PI(e,t,n){var r=Dt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function DI(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function II(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function NI(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function D0(e,t,n){var r=Dt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function I0(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function FI(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function LI(e,t,n){var r=Dt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function UI(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function N0(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function BI(e,t,n){var r=Dt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function F0(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function WI(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function zI(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function HI(e,t,n){var r=Dt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function VI(e,t,n){var r=Dt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function qI(e,t,n){var r=MI.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function YI(e,t,n){var r=Dt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function GI(e,t,n){var r=Dt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function L0(e,t){return Be(e.getDate(),t,2)}function ZI(e,t){return Be(e.getHours(),t,2)}function KI(e,t){return Be(e.getHours()%12||12,t,2)}function XI(e,t){return Be(1+Sp.count(ga(e),e),t,3)}function v2(e,t){return Be(e.getMilliseconds(),t,3)}function JI(e,t){return v2(e,t)+"000"}function QI(e,t){return Be(e.getMonth()+1,t,2)}function eN(e,t){return Be(e.getMinutes(),t,2)}function tN(e,t){return Be(e.getSeconds(),t,2)}function nN(e){var t=e.getDay();return t===0?7:t}function rN(e,t){return Be(m2.count(ga(e)-1,e),t,2)}function y2(e){var t=e.getDay();return t>=4||t===0?ii(e):ii.ceil(e)}function aN(e,t){return e=y2(e),Be(ii.count(ga(e),e)+(ga(e).getDay()===4),t,2)}function iN(e){return e.getDay()}function oN(e,t){return Be(Tc.count(ga(e)-1,e),t,2)}function sN(e,t){return Be(e.getFullYear()%100,t,2)}function cN(e,t){return e=y2(e),Be(e.getFullYear()%100,t,2)}function uN(e,t){return Be(e.getFullYear()%1e4,t,4)}function lN(e,t){var n=e.getDay();return e=n>=4||n===0?ii(e):ii.ceil(e),Be(e.getFullYear()%1e4,t,4)}function dN(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Be(t/60|0,"0",2)+Be(t%60,"0",2)}function U0(e,t){return Be(e.getUTCDate(),t,2)}function fN(e,t){return Be(e.getUTCHours(),t,2)}function hN(e,t){return Be(e.getUTCHours()%12||12,t,2)}function pN(e,t){return Be(1+Op.count(va(e),e),t,3)}function b2(e,t){return Be(e.getUTCMilliseconds(),t,3)}function mN(e,t){return b2(e,t)+"000"}function gN(e,t){return Be(e.getUTCMonth()+1,t,2)}function vN(e,t){return Be(e.getUTCMinutes(),t,2)}function yN(e,t){return Be(e.getUTCSeconds(),t,2)}function bN(e){var t=e.getUTCDay();return t===0?7:t}function xN(e,t){return Be(g2.count(va(e)-1,e),t,2)}function x2(e){var t=e.getUTCDay();return t>=4||t===0?oi(e):oi.ceil(e)}function _N(e,t){return e=x2(e),Be(oi.count(va(e),e)+(va(e).getUTCDay()===4),t,2)}function wN(e){return e.getUTCDay()}function TN(e,t){return Be(Cc.count(va(e)-1,e),t,2)}function CN(e,t){return Be(e.getUTCFullYear()%100,t,2)}function kN(e,t){return e=x2(e),Be(e.getUTCFullYear()%100,t,2)}function SN(e,t){return Be(e.getUTCFullYear()%1e4,t,4)}function ON(e,t){var n=e.getUTCDay();return e=n>=4||n===0?oi(e):oi.ceil(e),Be(e.getUTCFullYear()%1e4,t,4)}function EN(){return"+0000"}function B0(){return"%"}function W0(e){return+e}function z0(e){return Math.floor(+e/1e3)}var Da,Iu,_2,w2,T2;$N({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function $N(e){return Da=$I(e),Iu=Da.format,_2=Da.parse,w2=Da.utcFormat,T2=Da.utcParse,Da}function MN(e){return new Date(e)}function RN(e){return e instanceof Date?+e:+new Date(+e)}function Ep(e,t,n,r,a,i,o,s,u,c){var l=r2(),d=l.invert,f=l.domain,p=c(".%L"),m=c(":%S"),g=c("%I:%M"),v=c("%I %p"),x=c("%a %d"),w=c("%b %d"),b=c("%B"),T=c("%Y");function _(C){return(u(C)<C?p:s(C)<C?m:o(C)<C?g:i(C)<C?v:r(C)<C?a(C)<C?x:w:n(C)<C?b:T)(C)}return l.invert=function(C){return new Date(d(C))},l.domain=function(C){return arguments.length?f(Array.from(C,RN)):f().map(MN)},l.ticks=function(C){var $=f();return e($[0],$[$.length-1],C??10)},l.tickFormat=function(C,$){return $==null?_:c($)},l.nice=function(C){var $=f();return(!C||typeof C.range!="function")&&(C=t($[0],$[$.length-1],C??10)),C?f(c2($,C)):l},l.copy=function(){return ju(l,Ep(e,t,n,r,a,i,o,s,u,c))},l}function AN(){return wa.apply(Ep(vI,yI,Pu,wp,xp,bp,vp,mp,Qr,Iu).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function jN(){return wa.apply(Ep(mI,gI,Du,Tp,_p,d2,yp,gp,Qr,w2).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function $e(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(r*6,++r*6);return n}const C2=$e("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),k2=$e("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),S2=$e("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),O2=$e("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),E2=$e("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),$2=$e("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),M2=$e("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),R2=$e("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),$p=$e("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),PN=$e("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),nt=e=>rD(e[e.length-1]);var Nu=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map($e);const DN=nt(Nu);var Fu=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map($e);const IN=nt(Fu);var Lu=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map($e);const NN=nt(Lu);var Uu=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map($e);const FN=nt(Uu);var Bu=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map($e);const LN=nt(Bu);var Wu=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map($e);const UN=nt(Wu);var zu=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map($e);const BN=nt(zu);var Hu=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map($e);const WN=nt(Hu);var Vu=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map($e);const zN=nt(Vu);var qu=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map($e);const HN=nt(qu);var Yu=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map($e);const VN=nt(Yu);var Gu=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map($e);const qN=nt(Gu);var Zu=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map($e);const YN=nt(Zu);var Ku=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map($e);const GN=nt(Ku);var Xu=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map($e);const ZN=nt(Xu);var Ju=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map($e);const KN=nt(Ju);var Qu=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map($e);const XN=nt(Qu);var el=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map($e);const JN=nt(el);var tl=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map($e);const QN=nt(tl);var nl=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map($e);const eF=nt(nl);var rl=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map($e);const tF=nt(rl);var al=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map($e);const nF=nt(al);var il=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map($e);const rF=nt(il);var ol=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map($e);const aF=nt(ol);var sl=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map($e);const iF=nt(sl);var cl=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map($e);const oF=nt(cl);var ul=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map($e);const sF=nt(ul);function cF(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-e*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-e*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-e*2475.67)))))))+")"}const uF=up(Xn(300,.5,0),Xn(-240,.5,1));var lF=up(Xn(-100,.75,.35),Xn(80,1.5,.8)),dF=up(Xn(260,.75,.35),Xn(80,1.5,.8)),Ts=Xn();function fF(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return Ts.h=360*e-100,Ts.s=1.5-1.5*t,Ts.l=.8-.9*t,Ts+""}var Cs=ri(),hF=Math.PI/3,pF=Math.PI*2/3;function mF(e){var t;return e=(.5-e)*Math.PI,Cs.r=255*(t=Math.sin(e))*t,Cs.g=255*(t=Math.sin(e+hF))*t,Cs.b=255*(t=Math.sin(e+pF))*t,Cs+""}function gF(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-e*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+e*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-e*6838.66)))))))+")"}function ll(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const vF=ll($e("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var yF=ll($e("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),bF=ll($e("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),xF=ll($e("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),_F="__lodash_hash_undefined__";function wF(e){return this.__data__.set(e,_F),this}var TF=wF;function CF(e){return this.__data__.has(e)}var kF=CF,SF=qh,OF=TF,EF=kF;function kc(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new SF;++t<n;)this.add(e[t])}kc.prototype.add=kc.prototype.push=OF;kc.prototype.has=EF;var Mp=kc;function $F(e,t,n,r){for(var a=e.length,i=n+(r?1:-1);r?i--:++i<a;)if(t(e[i],i,e))return i;return-1}var MF=$F;function RF(e){return e!==e}var AF=RF;function jF(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}var PF=jF,DF=MF,IF=AF,NF=PF;function FF(e,t,n){return t===t?NF(e,t,n):DF(e,IF,n)}var LF=FF,UF=LF;function BF(e,t){var n=e==null?0:e.length;return!!n&&UF(e,t,0)>-1}var A2=BF;function WF(e,t,n){for(var r=-1,a=e==null?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1}var j2=WF;function zF(e,t){return e.has(t)}var Rp=zF,HF=Mp,VF=A2,qF=j2,YF=$u,GF=rs,ZF=Rp,KF=200;function XF(e,t,n,r){var a=-1,i=VF,o=!0,s=e.length,u=[],c=t.length;if(!s)return u;n&&(t=YF(t,GF(n))),r?(i=qF,o=!1):t.length>=KF&&(i=ZF,o=!1,t=new HF(t));e:for(;++a<s;){var l=e[a],d=n==null?l:n(l);if(l=r||l!==0?l:0,o&&d===d){for(var f=c;f--;)if(t[f]===d)continue e;u.push(l)}else i(t,d,r)||u.push(l)}return u}var JF=XF,QF=JF,eL=np,tL=Nx,nL=eL(function(e,t){return tL(e)?QF(e,t):[]}),rL=nL;const P2=Tt(rL);function ut(e){return function(){return e}}const H0=Math.abs,Ut=Math.atan2,Hr=Math.cos,aL=Math.max,id=Math.min,Bn=Math.sin,Ua=Math.sqrt,Bt=1e-12,Lo=Math.PI,Sc=Lo/2,Ls=2*Lo;function iL(e){return e>1?0:e<-1?Lo:Math.acos(e)}function V0(e){return e>=1?Sc:e<=-1?-Sc:Math.asin(e)}const wf=Math.PI,Tf=2*wf,Yr=1e-6,oL=Tf-Yr;function D2(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function sL(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return D2;const n=10**t;return function(r){this._+=r[0];for(let a=1,i=r.length;a<i;++a)this._+=Math.round(arguments[a]*n)/n+r[a]}}class cL{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?D2:sL(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,a){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+a}`}bezierCurveTo(t,n,r,a,i,o){this._append`C${+t},${+n},${+r},${+a},${this._x1=+i},${this._y1=+o}`}arcTo(t,n,r,a,i){if(t=+t,n=+n,r=+r,a=+a,i=+i,i<0)throw new Error(`negative radius: ${i}`);let o=this._x1,s=this._y1,u=r-t,c=a-n,l=o-t,d=s-n,f=l*l+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(f>Yr)if(!(Math.abs(d*u-c*l)>Yr)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let p=r-o,m=a-s,g=u*u+c*c,v=p*p+m*m,x=Math.sqrt(g),w=Math.sqrt(f),b=i*Math.tan((wf-Math.acos((g+f-v)/(2*x*w)))/2),T=b/w,_=b/x;Math.abs(T-1)>Yr&&this._append`L${t+T*l},${n+T*d}`,this._append`A${i},${i},0,0,${+(d*p>l*m)},${this._x1=t+_*u},${this._y1=n+_*c}`}}arc(t,n,r,a,i,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(a),u=r*Math.sin(a),c=t+s,l=n+u,d=1^o,f=o?a-i:i-a;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>Yr||Math.abs(this._y1-l)>Yr)&&this._append`L${c},${l}`,r&&(f<0&&(f=f%Tf+Tf),f>oL?this._append`A${r},${r},0,1,${d},${t-s},${n-u}A${r},${r},0,1,${d},${this._x1=c},${this._y1=l}`:f>Yr&&this._append`A${r},${r},0,${+(f>=wf)},${d},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function I2(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new cL(t)}function uL(e){return e.innerRadius}function lL(e){return e.outerRadius}function dL(e){return e.startAngle}function fL(e){return e.endAngle}function hL(e){return e&&e.padAngle}function pL(e,t,n,r,a,i,o,s){var u=n-e,c=r-t,l=o-a,d=s-i,f=d*u-l*c;if(!(f*f<Bt))return f=(l*(t-i)-d*(e-a))/f,[e+f*u,t+f*c]}function ks(e,t,n,r,a,i,o){var s=e-n,u=t-r,c=(o?i:-i)/Ua(s*s+u*u),l=c*u,d=-c*s,f=e+l,p=t+d,m=n+l,g=r+d,v=(f+m)/2,x=(p+g)/2,w=m-f,b=g-p,T=w*w+b*b,_=a-i,C=f*g-m*p,$=(b<0?-1:1)*Ua(aL(0,_*_*T-C*C)),A=(C*b-w*$)/T,D=(-C*w-b*$)/T,j=(C*b+w*$)/T,E=(-C*w+b*$)/T,F=A-v,M=D-x,R=j-v,I=E-x;return F*F+M*M>R*R+I*I&&(A=j,D=E),{cx:A,cy:D,x01:-l,y01:-d,x11:A*(a/_-1),y11:D*(a/_-1)}}function mL(){var e=uL,t=lL,n=ut(0),r=null,a=dL,i=fL,o=hL,s=null,u=I2(c);function c(){var l,d,f=+e.apply(this,arguments),p=+t.apply(this,arguments),m=a.apply(this,arguments)-Sc,g=i.apply(this,arguments)-Sc,v=H0(g-m),x=g>m;if(s||(s=l=u()),p<f&&(d=p,p=f,f=d),!(p>Bt))s.moveTo(0,0);else if(v>Ls-Bt)s.moveTo(p*Hr(m),p*Bn(m)),s.arc(0,0,p,m,g,!x),f>Bt&&(s.moveTo(f*Hr(g),f*Bn(g)),s.arc(0,0,f,g,m,x));else{var w=m,b=g,T=m,_=g,C=v,$=v,A=o.apply(this,arguments)/2,D=A>Bt&&(r?+r.apply(this,arguments):Ua(f*f+p*p)),j=id(H0(p-f)/2,+n.apply(this,arguments)),E=j,F=j,M,R;if(D>Bt){var I=V0(D/f*Bn(A)),U=V0(D/p*Bn(A));(C-=I*2)>Bt?(I*=x?1:-1,T+=I,_-=I):(C=0,T=_=(m+g)/2),($-=U*2)>Bt?(U*=x?1:-1,w+=U,b-=U):($=0,w=b=(m+g)/2)}var N=p*Hr(w),q=p*Bn(w),z=f*Hr(_),P=f*Bn(_);if(j>Bt){var W=p*Hr(b),Z=p*Bn(b),ne=f*Hr(T),Y=f*Bn(T),Q;if(v<Lo)if(Q=pL(N,q,ne,Y,W,Z,z,P)){var G=N-Q[0],J=q-Q[1],re=W-Q[0],L=Z-Q[1],V=1/Bn(iL((G*re+J*L)/(Ua(G*G+J*J)*Ua(re*re+L*L)))/2),ae=Ua(Q[0]*Q[0]+Q[1]*Q[1]);E=id(j,(f-ae)/(V-1)),F=id(j,(p-ae)/(V+1))}else E=F=0}$>Bt?F>Bt?(M=ks(ne,Y,N,q,p,F,x),R=ks(W,Z,z,P,p,F,x),s.moveTo(M.cx+M.x01,M.cy+M.y01),F<j?s.arc(M.cx,M.cy,F,Ut(M.y01,M.x01),Ut(R.y01,R.x01),!x):(s.arc(M.cx,M.cy,F,Ut(M.y01,M.x01),Ut(M.y11,M.x11),!x),s.arc(0,0,p,Ut(M.cy+M.y11,M.cx+M.x11),Ut(R.cy+R.y11,R.cx+R.x11),!x),s.arc(R.cx,R.cy,F,Ut(R.y11,R.x11),Ut(R.y01,R.x01),!x))):(s.moveTo(N,q),s.arc(0,0,p,w,b,!x)):s.moveTo(N,q),!(f>Bt)||!(C>Bt)?s.lineTo(z,P):E>Bt?(M=ks(z,P,W,Z,f,-E,x),R=ks(N,q,ne,Y,f,-E,x),s.lineTo(M.cx+M.x01,M.cy+M.y01),E<j?s.arc(M.cx,M.cy,E,Ut(M.y01,M.x01),Ut(R.y01,R.x01),!x):(s.arc(M.cx,M.cy,E,Ut(M.y01,M.x01),Ut(M.y11,M.x11),!x),s.arc(0,0,f,Ut(M.cy+M.y11,M.cx+M.x11),Ut(R.cy+R.y11,R.cx+R.x11),x),s.arc(R.cx,R.cy,E,Ut(R.y11,R.x11),Ut(R.y01,R.x01),!x))):s.arc(0,0,f,_,T,x)}if(s.closePath(),l)return s=null,l+""||null}return c.centroid=function(){var l=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,d=(+a.apply(this,arguments)+ +i.apply(this,arguments))/2-Lo/2;return[Hr(d)*l,Bn(d)*l]},c.innerRadius=function(l){return arguments.length?(e=typeof l=="function"?l:ut(+l),c):e},c.outerRadius=function(l){return arguments.length?(t=typeof l=="function"?l:ut(+l),c):t},c.cornerRadius=function(l){return arguments.length?(n=typeof l=="function"?l:ut(+l),c):n},c.padRadius=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:ut(+l),c):r},c.startAngle=function(l){return arguments.length?(a=typeof l=="function"?l:ut(+l),c):a},c.endAngle=function(l){return arguments.length?(i=typeof l=="function"?l:ut(+l),c):i},c.padAngle=function(l){return arguments.length?(o=typeof l=="function"?l:ut(+l),c):o},c.context=function(l){return arguments.length?(s=l??null,c):s},c}function Ap(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function N2(e){this._context=e}N2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function F2(e){return new N2(e)}function gL(e){return e[0]}function vL(e){return e[1]}function yL(e,t){var n=ut(!0),r=null,a=F2,i=null,o=I2(s);e=typeof e=="function"?e:e===void 0?gL:ut(e),t=typeof t=="function"?t:t===void 0?vL:ut(t);function s(u){var c,l=(u=Ap(u)).length,d,f=!1,p;for(r==null&&(i=a(p=o())),c=0;c<=l;++c)!(c<l&&n(d=u[c],c,u))===f&&((f=!f)?i.lineStart():i.lineEnd()),f&&i.point(+e(d,c,u),+t(d,c,u));if(p)return i=null,p+""||null}return s.x=function(u){return arguments.length?(e=typeof u=="function"?u:ut(+u),s):e},s.y=function(u){return arguments.length?(t=typeof u=="function"?u:ut(+u),s):t},s.defined=function(u){return arguments.length?(n=typeof u=="function"?u:ut(!!u),s):n},s.curve=function(u){return arguments.length?(a=u,r!=null&&(i=a(r)),s):a},s.context=function(u){return arguments.length?(u==null?r=i=null:i=a(r=u),s):r},s}function bL(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function xL(e){return e}function _L(){var e=xL,t=bL,n=null,r=ut(0),a=ut(Ls),i=ut(0);function o(s){var u,c=(s=Ap(s)).length,l,d,f=0,p=new Array(c),m=new Array(c),g=+r.apply(this,arguments),v=Math.min(Ls,Math.max(-Ls,a.apply(this,arguments)-g)),x,w=Math.min(Math.abs(v)/c,i.apply(this,arguments)),b=w*(v<0?-1:1),T;for(u=0;u<c;++u)(T=m[p[u]=u]=+e(s[u],u,s))>0&&(f+=T);for(t!=null?p.sort(function(_,C){return t(m[_],m[C])}):n!=null&&p.sort(function(_,C){return n(s[_],s[C])}),u=0,d=f?(v-c*b)/f:0;u<c;++u,g=x)l=p[u],T=m[l],x=g+(T>0?T*d:0)+b,m[l]={data:s[l],index:u,value:T,startAngle:g,endAngle:x,padAngle:w};return m}return o.value=function(s){return arguments.length?(e=typeof s=="function"?s:ut(+s),o):e},o.sortValues=function(s){return arguments.length?(t=s,n=null,o):t},o.sort=function(s){return arguments.length?(n=s,t=null,o):n},o.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:ut(+s),o):r},o.endAngle=function(s){return arguments.length?(a=typeof s=="function"?s:ut(+s),o):a},o.padAngle=function(s){return arguments.length?(i=typeof s=="function"?s:ut(+s),o):i},o}function Lr(){}function Oc(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function dl(e){this._context=e}dl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Oc(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Oc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function wL(e){return new dl(e)}function L2(e){this._context=e}L2.prototype={areaStart:Lr,areaEnd:Lr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Oc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function TL(e){return new L2(e)}function U2(e){this._context=e}U2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Oc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function CL(e){return new U2(e)}function B2(e,t){this._basis=new dl(e),this._beta=t}B2.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],a=t[0],i=e[n]-r,o=t[n]-a,s=-1,u;++s<=n;)u=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+u*i),this._beta*t[s]+(1-this._beta)*(a+u*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const kL=function e(t){function n(r){return t===1?new dl(r):new B2(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function Ec(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function jp(e,t){this._context=e,this._k=(1-t)/6}jp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Ec(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Ec(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const SL=function e(t){function n(r){return new jp(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Pp(e,t){this._context=e,this._k=(1-t)/6}Pp.prototype={areaStart:Lr,areaEnd:Lr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Ec(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const OL=function e(t){function n(r){return new Pp(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Dp(e,t){this._context=e,this._k=(1-t)/6}Dp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ec(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const EL=function e(t){function n(r){return new Dp(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Ip(e,t,n){var r=e._x1,a=e._y1,i=e._x2,o=e._y2;if(e._l01_a>Bt){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,a=(a*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>Bt){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,l=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*c+e._x1*e._l23_2a-t*e._l12_2a)/l,o=(o*c+e._y1*e._l23_2a-n*e._l12_2a)/l}e._context.bezierCurveTo(r,a,i,o,e._x2,e._y2)}function W2(e,t){this._context=e,this._alpha=t}W2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Ip(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const $L=function e(t){function n(r){return t?new W2(r,t):new jp(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function z2(e,t){this._context=e,this._alpha=t}z2.prototype={areaStart:Lr,areaEnd:Lr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Ip(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const ML=function e(t){function n(r){return t?new z2(r,t):new Pp(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function H2(e,t){this._context=e,this._alpha=t}H2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ip(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const RL=function e(t){function n(r){return t?new H2(r,t):new Dp(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function V2(e){this._context=e}V2.prototype={areaStart:Lr,areaEnd:Lr,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function AL(e){return new V2(e)}function q0(e){return e<0?-1:1}function Y0(e,t,n){var r=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(r||a<0&&-0),o=(n-e._y1)/(a||r<0&&-0),s=(i*a+o*r)/(r+a);return(q0(i)+q0(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(s))||0}function G0(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function od(e,t,n){var r=e._x0,a=e._y0,i=e._x1,o=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,a+s*t,i-s,o-s*n,i,o)}function $c(e){this._context=e}$c.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:od(this,this._t0,G0(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,od(this,G0(this,n=Y0(this,e,t)),n);break;default:od(this,this._t0,n=Y0(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function q2(e){this._context=new Y2(e)}(q2.prototype=Object.create($c.prototype)).point=function(e,t){$c.prototype.point.call(this,t,e)};function Y2(e){this._context=e}Y2.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,a,i){this._context.bezierCurveTo(t,e,r,n,i,a)}};function jL(e){return new $c(e)}function PL(e){return new q2(e)}function G2(e){this._context=e}G2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Z0(e),a=Z0(t),i=0,o=1;o<n;++i,++o)this._context.bezierCurveTo(r[0][i],a[0][i],r[1][i],a[1][i],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Z0(e){var t,n=e.length-1,r,a=new Array(n),i=new Array(n),o=new Array(n);for(a[0]=0,i[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)a[t]=1,i[t]=4,o[t]=4*e[t]+2*e[t+1];for(a[n-1]=2,i[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=a[t]/i[t-1],i[t]-=r,o[t]-=r*o[t-1];for(a[n-1]=o[n-1]/i[n-1],t=n-2;t>=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[n-1]=(e[n]+a[n-1])/2,t=0;t<n-1;++t)i[t]=2*e[t+1]-a[t+1];return[a,i]}function DL(e){return new G2(e)}function fl(e,t){this._context=e,this._t=t}fl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function IL(e){return new fl(e,.5)}function NL(e){return new fl(e,0)}function FL(e){return new fl(e,1)}function K0(e,t){if((o=e.length)>1)for(var n=1,r,a,i=e[t[0]],o,s=i.length;n<o;++n)for(a=i,i=e[t[n]],r=0;r<s;++r)i[r][1]+=i[r][0]=isNaN(a[r][1])?a[r][0]:a[r][1]}function X0(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function LL(e,t){return e[t]}function UL(e){const t=[];return t.key=e,t}function BL(){var e=ut([]),t=X0,n=K0,r=LL;function a(i){var o=Array.from(e.apply(this,arguments),UL),s,u=o.length,c=-1,l;for(const d of i)for(s=0,++c;s<u;++s)(o[s][c]=[0,+r(d,o[s].key,c,i)]).data=d;for(s=0,l=Ap(t(o));s<u;++s)o[l[s]].index=s;return n(o,l),o}return a.keys=function(i){return arguments.length?(e=typeof i=="function"?i:ut(Array.from(i)),a):e},a.value=function(i){return arguments.length?(r=typeof i=="function"?i:ut(+i),a):r},a.order=function(i){return arguments.length?(t=i==null?X0:typeof i=="function"?i:ut(Array.from(i)),a):t},a.offset=function(i){return arguments.length?(n=i??K0,a):n},a}function WL(e,t){if((u=e.length)>0)for(var n,r=0,a,i,o,s,u,c=e[t[0]].length;r<c;++r)for(o=s=0,n=0;n<u;++n)(i=(a=e[t[n]][r])[1]-a[0])>0?(a[0]=o,a[1]=o+=i):i<0?(a[1]=s,a[0]=s+=i):(a[0]=0,a[1]=i)}var zL=is,HL=Gx,VL=wi;function qL(e,t,n){for(var r=-1,a=t.length,i={};++r<a;){var o=t[r],s=zL(e,o);n(s,o)&&HL(i,VL(o,e),s)}return i}var YL=qL;function GL(e,t){return e!=null&&t in Object(e)}var ZL=GL,KL=wi,XL=Tu,JL=cn,QL=Su,eU=Xh,tU=Ti;function nU(e,t,n){t=KL(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var o=tU(t[r]);if(!(i=e!=null&&n(e,o)))break;e=e[o]}return i||++r!=a?i:(a=e==null?0:e.length,!!a&&eU(a)&&QL(o,a)&&(JL(e)||XL(e)))}var rU=nU,aU=ZL,iU=rU;function oU(e,t){return e!=null&&iU(e,t,aU)}var Z2=oU,sU=YL,cU=Z2;function uU(e,t){return sU(e,t,function(n,r){return cU(e,r)})}var lU=uU;function dU(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var Np=dU,J0=gi,fU=Tu,hU=cn,Q0=J0?J0.isConcatSpreadable:void 0;function pU(e){return hU(e)||fU(e)||!!(Q0&&e&&e[Q0])}var mU=pU,gU=Np,vU=mU;function K2(e,t,n,r,a){var i=-1,o=e.length;for(n||(n=vU),a||(a=[]);++i<o;){var s=e[i];t>0&&n(s)?t>1?K2(s,t-1,n,r,a):gU(a,s):r||(a[a.length]=s)}return a}var X2=K2,yU=X2;function bU(e){var t=e==null?0:e.length;return t?yU(e,1):[]}var xU=bU,_U=xU,wU=Wx,TU=zx;function CU(e){return TU(wU(e,void 0,_U),e+"")}var J2=CU,kU=lU,SU=J2,OU=SU(function(e,t){return e==null?{}:kU(e,t)}),EU=OU;const $U=Tt(EU);function MU(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var RU=MU,AU=Mp,jU=RU,PU=Rp,DU=1,IU=2;function NU(e,t,n,r,a,i){var o=n&DU,s=e.length,u=t.length;if(s!=u&&!(o&&u>s))return!1;var c=i.get(e),l=i.get(t);if(c&&l)return c==t&&l==e;var d=-1,f=!0,p=n&IU?new AU:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var m=e[d],g=t[d];if(r)var v=o?r(g,m,d,t,e,i):r(m,g,d,e,t,i);if(v!==void 0){if(v)continue;f=!1;break}if(p){if(!jU(t,function(x,w){if(!PU(p,w)&&(m===x||a(m,x,n,r,i)))return p.push(w)})){f=!1;break}}else if(!(m===g||a(m,g,n,r,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var Q2=NU;function FU(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}var LU=FU;function UU(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Fp=UU,ev=gi,tv=Rx,BU=ns,WU=Q2,zU=LU,HU=Fp,VU=1,qU=2,YU="[object Boolean]",GU="[object Date]",ZU="[object Error]",KU="[object Map]",XU="[object Number]",JU="[object RegExp]",QU="[object Set]",eB="[object String]",tB="[object Symbol]",nB="[object ArrayBuffer]",rB="[object DataView]",nv=ev?ev.prototype:void 0,sd=nv?nv.valueOf:void 0;function aB(e,t,n,r,a,i,o){switch(n){case rB:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case nB:return!(e.byteLength!=t.byteLength||!i(new tv(e),new tv(t)));case YU:case GU:case XU:return BU(+e,+t);case ZU:return e.name==t.name&&e.message==t.message;case JU:case eB:return e==t+"";case KU:var s=zU;case QU:var u=r&VU;if(s||(s=HU),e.size!=t.size&&!u)return!1;var c=o.get(e);if(c)return c==t;r|=qU,o.set(e,t);var l=WU(s(e),s(t),r,a,i,o);return o.delete(e),l;case tB:if(sd)return sd.call(e)==sd.call(t)}return!1}var iB=aB,oB=Np,sB=cn;function cB(e,t,n){var r=t(e);return sB(e)?r:oB(r,n(e))}var e_=cB;function uB(e,t){for(var n=-1,r=e==null?0:e.length,a=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[a++]=o)}return i}var t_=uB;function lB(){return[]}var n_=lB,dB=t_,fB=n_,hB=Object.prototype,pB=hB.propertyIsEnumerable,rv=Object.getOwnPropertySymbols,mB=rv?function(e){return e==null?[]:(e=Object(e),dB(rv(e),function(t){return pB.call(e,t)}))}:fB,Lp=mB,gB=Px,vB=gB(Object.keys,Object),yB=vB,bB=Kh,xB=yB,_B=Object.prototype,wB=_B.hasOwnProperty;function TB(e){if(!bB(e))return xB(e);var t=[];for(var n in Object(e))wB.call(e,n)&&n!="constructor"&&t.push(n);return t}var CB=TB,kB=Ux,SB=CB,OB=xi;function EB(e){return OB(e)?kB(e):SB(e)}var ss=EB,$B=e_,MB=Lp,RB=ss;function AB(e){return $B(e,RB,MB)}var r_=AB,av=r_,jB=1,PB=Object.prototype,DB=PB.hasOwnProperty;function IB(e,t,n,r,a,i){var o=n&jB,s=av(e),u=s.length,c=av(t),l=c.length;if(u!=l&&!o)return!1;for(var d=u;d--;){var f=s[d];if(!(o?f in t:DB.call(t,f)))return!1}var p=i.get(e),m=i.get(t);if(p&&m)return p==t&&m==e;var g=!0;i.set(e,t),i.set(t,e);for(var v=o;++d<u;){f=s[d];var x=e[f],w=t[f];if(r)var b=o?r(w,x,f,t,e,i):r(x,w,f,e,t,i);if(!(b===void 0?x===w||a(x,w,n,r,i):b)){g=!1;break}v||(v=f=="constructor")}if(g&&!v){var T=e.constructor,_=t.constructor;T!=_&&"constructor"in e&&"constructor"in t&&!(typeof T=="function"&&T instanceof T&&typeof _=="function"&&_ instanceof _)&&(g=!1)}return i.delete(e),i.delete(t),g}var NB=IB,FB=_a,LB=Qn,UB=FB(LB,"DataView"),BB=UB,WB=_a,zB=Qn,HB=WB(zB,"Promise"),VB=HB,qB=_a,YB=Qn,GB=qB(YB,"Set"),a_=GB,ZB=_a,KB=Qn,XB=ZB(KB,"WeakMap"),JB=XB,Cf=BB,kf=Vh,Sf=VB,Of=a_,Ef=JB,i_=zr,ki=Sx,iv="[object Map]",QB="[object Object]",ov="[object Promise]",sv="[object Set]",cv="[object WeakMap]",uv="[object DataView]",eW=ki(Cf),tW=ki(kf),nW=ki(Sf),rW=ki(Of),aW=ki(Ef),Gr=i_;(Cf&&Gr(new Cf(new ArrayBuffer(1)))!=uv||kf&&Gr(new kf)!=iv||Sf&&Gr(Sf.resolve())!=ov||Of&&Gr(new Of)!=sv||Ef&&Gr(new Ef)!=cv)&&(Gr=function(e){var t=i_(e),n=t==QB?e.constructor:void 0,r=n?ki(n):"";if(r)switch(r){case eW:return uv;case tW:return iv;case nW:return ov;case rW:return sv;case aW:return cv}return t});var hl=Gr,cd=wu,iW=Q2,oW=iB,sW=NB,lv=hl,dv=cn,fv=Cu,cW=ep,uW=1,hv="[object Arguments]",pv="[object Array]",Ss="[object Object]",lW=Object.prototype,mv=lW.hasOwnProperty;function dW(e,t,n,r,a,i){var o=dv(e),s=dv(t),u=o?pv:lv(e),c=s?pv:lv(t);u=u==hv?Ss:u,c=c==hv?Ss:c;var l=u==Ss,d=c==Ss,f=u==c;if(f&&fv(e)){if(!fv(t))return!1;o=!0,l=!1}if(f&&!l)return i||(i=new cd),o||cW(e)?iW(e,t,n,r,a,i):oW(e,t,u,n,r,a,i);if(!(n&uW)){var p=l&&mv.call(e,"__wrapped__"),m=d&&mv.call(t,"__wrapped__");if(p||m){var g=p?e.value():e,v=m?t.value():t;return i||(i=new cd),a(g,v,n,r,i)}}return f?(i||(i=new cd),sW(e,t,n,r,a,i)):!1}var fW=dW,hW=fW,gv=Un;function o_(e,t,n,r,a){return e===t?!0:e==null||t==null||!gv(e)&&!gv(t)?e!==e&&t!==t:hW(e,t,n,r,o_,a)}var Up=o_,pW=Up;function mW(e,t){return pW(e,t)}var gW=mW;const vW=Tt(gW);var yW={background:"transparent",text:{fontFamily:"sans-serif",fontSize:11,fill:"#333333",outlineWidth:0,outlineColor:"transparent",outlineOpacity:1},axis:{domain:{line:{stroke:"transparent",strokeWidth:1}},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{}},legend:{text:{fontSize:12}}},grid:{line:{stroke:"#dddddd",strokeWidth:1}},legends:{hidden:{symbol:{fill:"#333333",opacity:.6},text:{fill:"#333333",opacity:.6}},text:{},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{fontSize:10}},title:{text:{}}},labels:{text:{}},markers:{lineColor:"#000000",lineStrokeWidth:1,text:{}},dots:{text:{}},tooltip:{container:{background:"white",color:"inherit",fontSize:"inherit",borderRadius:"2px",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.25)",padding:"5px 9px"},basic:{whiteSpace:"pre",display:"flex",alignItems:"center"},chip:{marginRight:7},table:{},tableCell:{padding:"3px 5px"},tableCellValue:{fontWeight:"bold"}},crosshair:{line:{stroke:"#000000",strokeWidth:1,strokeOpacity:.75,strokeDasharray:"6 6"}},annotations:{text:{fontSize:13,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},link:{stroke:"#000000",strokeWidth:1,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},outline:{fill:"none",stroke:"#000000",strokeWidth:2,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},symbol:{fill:"#000000",outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1}}};function In(){return In=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},In.apply(this,arguments)}function Bp(e,t){if(e==null)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}var bW=["axis.ticks.text","axis.legend.text","legends.title.text","legends.text","legends.ticks.text","legends.title.text","labels.text","dots.text","markers.text","annotations.text"],xW=function(e,t){return In({},t,e)},_W=function(e,t){var n=Uj({},e,t);return bW.forEach(function(r){Ki(n,r,xW(pr(n,r),n.text))}),n},s_=h.createContext(),c_=function(e){var t=e.children,n=e.animate,r=n===void 0||n,a=e.config,i=a===void 0?"default":a,o=h.useMemo(function(){var s=yD(i)?Bh[i]:i;return{animate:r,config:s}},[r,i]);return y.jsx(s_.Provider,{value:o,children:t})},vv={animate:O.bool,motionConfig:O.oneOfType([O.oneOf(Object.keys(Bh)),O.shape({mass:O.number,tension:O.number,friction:O.number,clamp:O.bool,precision:O.number,velocity:O.number,duration:O.number,easing:O.func})])};c_.propTypes={children:O.node.isRequired,animate:vv.animate,config:vv.motionConfig};var un=function(){return h.useContext(s_)},wW=function(e){var t=un(),n=t.animate,r=t.config,a=function(s){var u=h.useRef();return h.useEffect(function(){u.current=s},[s]),u.current}(e),i=h.useMemo(function(){return Qx(a,e)},[a,e]),o=vr({from:{value:0},to:{value:1},reset:!0,config:r,immediate:!n}).value;return Fr(o,i)},TW={nivo:["#d76445","#f47560","#e8c1a0","#97e3d5","#61cdbb","#00b0a7"],BrBG:ye(Nu),PRGn:ye(Fu),PiYG:ye(Lu),PuOr:ye(Uu),RdBu:ye(Bu),RdGy:ye(Wu),RdYlBu:ye(zu),RdYlGn:ye(Hu),spectral:ye(Vu),blues:ye(al),greens:ye(il),greys:ye(ol),oranges:ye(ul),purples:ye(sl),reds:ye(cl),BuGn:ye(qu),BuPu:ye(Yu),GnBu:ye(Gu),OrRd:ye(Zu),PuBuGn:ye(Ku),PuBu:ye(Xu),PuRd:ye(Ju),RdPu:ye(Qu),YlGnBu:ye(el),YlGn:ye(tl),YlOrBr:ye(nl),YlOrRd:ye(rl)},CW=Object.keys(TW);ye(Nu),ye(Fu),ye(Lu),ye(Uu),ye(Bu),ye(Wu),ye(zu),ye(Hu),ye(Vu),ye(al),ye(il),ye(ol),ye(ul),ye(sl),ye(cl),ye(qu),ye(Yu),ye(Gu),ye(Zu),ye(Ku),ye(Xu),ye(Ju),ye(Qu),ye(el),ye(tl),ye(nl),ye(rl);O.oneOfType([O.oneOf(CW),O.func,O.arrayOf(O.string)]);var kW={basis:wL,basisClosed:TL,basisOpen:CL,bundle:kL,cardinal:SL,cardinalClosed:OL,cardinalOpen:EL,catmullRom:$L,catmullRomClosed:ML,catmullRomOpen:RL,linear:F2,linearClosed:AL,monotoneX:jL,monotoneY:PL,natural:DL,step:IL,stepAfter:FL,stepBefore:NL},Wp=Object.keys(kW);Wp.filter(function(e){return e.endsWith("Closed")});P2(Wp,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");P2(Wp,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");O.shape({top:O.number,right:O.number,bottom:O.number,left:O.number}).isRequired;var SW=["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"];O.oneOf(SW);Jr($p);var OW={top:0,right:0,bottom:0,left:0},zp=function(e,t,n){return n===void 0&&(n={}),h.useMemo(function(){var r=In({},OW,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}},[e,t,n.top,n.right,n.bottom,n.left])},u_=function(){var e=h.useRef(null),t=h.useState({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],a=h.useState(function(){return typeof ResizeObserver>"u"?null:new ResizeObserver(function(i){var o=i[0];return r(o.contentRect)})})[0];return h.useEffect(function(){return e.current&&a!==null&&a.observe(e.current),function(){a!==null&&a.disconnect()}},[]),[e,n]},EW=function(e){return h.useMemo(function(){return _W(yW,e)},[e])},$W=function(e){return typeof e=="function"?e:typeof e=="string"?e.indexOf("time:")===0?Iu(e.slice("5")):os(e):function(t){return""+t}},pl=function(e){return h.useMemo(function(){return $W(e)},[e])},l_=h.createContext(),MW={},d_=function(e){var t=e.theme,n=t===void 0?MW:t,r=e.children,a=EW(n);return y.jsx(l_.Provider,{value:a,children:r})};d_.propTypes={children:O.node.isRequired,theme:O.object};var lt=function(){return h.useContext(l_)},RW=["outlineWidth","outlineColor","outlineOpacity"],Hp=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,Bp(e,RW)},f_=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?h.cloneElement(r,{},t):t};f_.propTypes={children:O.node.isRequired,condition:O.bool.isRequired,wrapper:O.element.isRequired};var AW={position:"relative"},ml=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,a=r===void 0||r,i=e.isInteractive,o=i===void 0||i,s=e.animate,u=e.motionConfig,c=h.useRef(null);return y.jsx(d_,{theme:n,children:y.jsx(c_,{animate:s,config:u,children:y.jsx(w8,{container:c,children:y.jsxs(f_,{condition:a,wrapper:y.jsx("div",{style:AW,ref:c}),children:[t,o&&y.jsx(_8,{})]})})})})};ml.propTypes={children:O.element.isRequired,isInteractive:O.bool,renderWrapper:O.bool,theme:O.object,animate:O.bool,motionConfig:O.string};O.func.isRequired,O.bool,O.bool,O.object.isRequired,O.bool.isRequired,O.string;var gl=function(e){var t=e.children,n=u_(),r=n[0],a=n[1],i=a.width>0&&a.height>0;return y.jsx("div",{ref:r,style:{width:"100%",height:"100%"},children:i&&t({width:a.width,height:a.height})})};gl.propTypes={children:O.func.isRequired};var jW=["id","colors"],h_=function(e){var t=e.id,n=e.colors,r=Bp(e,jW);return y.jsx("linearGradient",In({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map(function(a){var i=a.offset,o=a.color,s=a.opacity;return y.jsx("stop",{offset:i+"%",stopColor:o,stopOpacity:s!==void 0?s:1},i)})}))};h_.propTypes={id:O.string.isRequired,colors:O.arrayOf(O.shape({offset:O.number.isRequired,color:O.string.isRequired,opacity:O.number})).isRequired,gradientTransform:O.string};var p_={linearGradient:h_},zi={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},$f=h.memo(function(e){var t=e.id,n=e.background,r=n===void 0?zi.background:n,a=e.color,i=a===void 0?zi.color:a,o=e.size,s=o===void 0?zi.size:o,u=e.padding,c=u===void 0?zi.padding:u,l=e.stagger,d=l===void 0?zi.stagger:l,f=s+c,p=s/2,m=c/2;return d===!0&&(f=2*s+2*c),y.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[y.jsx("rect",{width:f,height:f,fill:r}),y.jsx("circle",{cx:m+p,cy:m+p,r:p,fill:i}),d&&y.jsx("circle",{cx:1.5*c+s+p,cy:1.5*c+s+p,r:p,fill:i})]})});$f.displayName="PatternDots",$f.propTypes={id:O.string.isRequired,color:O.string.isRequired,background:O.string.isRequired,size:O.number.isRequired,padding:O.number.isRequired,stagger:O.bool.isRequired};var kn=function(e){return e*Math.PI/180},vl=function(e){return 180*e/Math.PI},PW=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2},oa=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},DW=function(e){var t=e%360;return t<0&&(t+=360),t},IW={svg:{align:{left:"start",center:"middle",right:"end",start:"start",middle:"middle",end:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right",start:"left",middle:"center",end:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},Hi={spacing:5,rotation:0,background:"#000000",color:"#ffffff",lineWidth:2},Mf=h.memo(function(e){var t=e.id,n=e.spacing,r=n===void 0?Hi.spacing:n,a=e.rotation,i=a===void 0?Hi.rotation:a,o=e.background,s=o===void 0?Hi.background:o,u=e.color,c=u===void 0?Hi.color:u,l=e.lineWidth,d=l===void 0?Hi.lineWidth:l,f=Math.round(i)%360,p=Math.abs(r);f>180?f-=360:f>90?f-=180:f<-180?f+=360:f<-90&&(f+=180);var m,g=p,v=p;return f===0?m=`
253
+ */var fg;function GS(){return fg||(fg=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function b(k){return typeof k=="string"||typeof k=="function"||k===r||k===c||k===i||k===a||k===d||k===f||typeof k=="object"&&k!==null&&(k.$$typeof===m||k.$$typeof===p||k.$$typeof===o||k.$$typeof===s||k.$$typeof===l||k.$$typeof===v||k.$$typeof===x||k.$$typeof===w||k.$$typeof===g)}function T(k){if(typeof k=="object"&&k!==null){var ge=k.$$typeof;switch(ge){case t:var pe=k.type;switch(pe){case u:case c:case r:case i:case a:case d:return pe;default:var de=pe&&pe.$$typeof;switch(de){case s:case l:case m:case p:case o:return de;default:return ge}}case n:return ge}}}var _=u,C=c,$=s,A=o,D=t,j=l,E=r,F=m,M=p,R=n,I=i,U=a,N=d,q=!1;function z(k){return q||(q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),P(k)||T(k)===u}function P(k){return T(k)===c}function W(k){return T(k)===s}function Z(k){return T(k)===o}function ne(k){return typeof k=="object"&&k!==null&&k.$$typeof===t}function Y(k){return T(k)===l}function Q(k){return T(k)===r}function G(k){return T(k)===m}function J(k){return T(k)===p}function re(k){return T(k)===n}function L(k){return T(k)===i}function V(k){return T(k)===a}function ae(k){return T(k)===d}Ye.AsyncMode=_,Ye.ConcurrentMode=C,Ye.ContextConsumer=$,Ye.ContextProvider=A,Ye.Element=D,Ye.ForwardRef=j,Ye.Fragment=E,Ye.Lazy=F,Ye.Memo=M,Ye.Portal=R,Ye.Profiler=I,Ye.StrictMode=U,Ye.Suspense=N,Ye.isAsyncMode=z,Ye.isConcurrentMode=P,Ye.isContextConsumer=W,Ye.isContextProvider=Z,Ye.isElement=ne,Ye.isForwardRef=Y,Ye.isFragment=Q,Ye.isLazy=G,Ye.isMemo=J,Ye.isPortal=re,Ye.isProfiler=L,Ye.isStrictMode=V,Ye.isSuspense=ae,Ye.isValidElementType=b,Ye.typeOf=T}()),Ye}process.env.NODE_ENV==="production"?Gd.exports=YS():Gd.exports=GS();var ZS=Gd.exports,m1=ZS,KS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},XS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},g1={};g1[m1.ForwardRef]=KS;g1[m1.Memo]=XS;function JS(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function Th(e,t){const n=h.useContext(qS);if(!n)throw new Error("Missing <CookiesProvider>");const a=Object.assign(Object.assign({},{doNotUpdate:!0}),t),[i,o]=h.useState(()=>n.getAll(a));JS()&&h.useLayoutEffect(()=>{function l(){const d=n.getAll(a);QS(e||null,d,i)&&o(d)}return n.addChangeListener(l),()=>{n.removeChangeListener(l)}},[n,i]);const s=h.useMemo(()=>n.set.bind(n),[n]),u=h.useMemo(()=>n.remove.bind(n),[n]),c=h.useMemo(()=>n.update.bind(n),[n]);return[i,s,u,c]}function QS(e,t,n){if(!e)return!0;for(let r of e)if(t[r]!==n[r])return!0;return!1}const eO=()=>{const{axiosOptions:e,cookieDomain:t}=h.useContext(bn),[,n,r]=Th(["Authorization"]),a=dt.create(e),i=h.useCallback(()=>localStorage.getItem("token")??null,[]),o=h.useCallback(()=>{const c=i();return c!==null&&c.length>0},[i]),s=h.useCallback(async(c,l)=>a.post("/user/login",{kid:c,password:l}).then(d=>(localStorage.setItem("token",d.data),n("Authorization",d.data,{path:"/",secure:!0,sameSite:"none",domain:t,expires:Zw(new Date(Date.now()),24)}),d.data)).catch(d=>(console.log(d),null)),[a,n,t]),u=h.useCallback(()=>{localStorage.removeItem("token"),localStorage.removeItem("user"),r("Authorization")},[r]);return{isAuthenticated:o,login:s,logout:u,getToken:i}},tO=()=>{const[,,e]=Th(["Authorization"]),{msalScopes:t}=h.useContext(Sh),{instance:n,inProgress:r}=sm.useMsal(),a=sm.useIsAuthenticated(),i=h.useCallback(async()=>{var f;const l=n.getActiveAccount(),d=l??((f=n.getAllAccounts())==null?void 0:f.at(0))??void 0;return d?(l||n.setActiveAccount(d),n.acquireTokenSilent({scopes:t,account:d}).then(p=>p.accessToken).catch(p=>{if(console.error("Error acquiring token",p),p instanceof om.InteractionRequiredAuthError)return console.log("Silent token acquisition failed. Acquiring token using redirect"),n.acquireTokenRedirect({scopes:t}),null;throw p})):null},[n,t]),o=h.useCallback(()=>a,[a]),s=h.useCallback(()=>!o()&&r!==om.InteractionStatus.None,[o,r]),u=h.useCallback(async()=>n.loginRedirect({scopes:t}).then(()=>"").catch(()=>null),[n,t]),c=h.useCallback(()=>{n.logout(),localStorage.removeItem("user"),e("Authorization")},[e,n]);return{isAuthenticated:o,isAuthenticating:s,login:u,logout:c,getToken:i}},v1=()=>{const{useMsal:e}=h.useContext(Sh),t=eO(),n=tO();return{isAuthenticated:e?n.isAuthenticated:t.isAuthenticated,isAuthenticating:e?n.isAuthenticating:()=>!1,getToken:e?n.getToken:t.getToken,login:e?n.login:t.login,logout:e?n.logout:t.logout}},nO="_toast_1s57i_1",Pi={toast:nO},rO=e=>{switch(e){case"success":return 5e3;case"info":return 5e3;case"danger":return 1e4;case"warning":return 1e4;case"prompt":return 1e4;default:return 5e3}},Ch=()=>({addNotification:h.useCallback((t,n)=>{const r=c1(t),a=rO(n),i=y.jsxs(y.Fragment,{children:[r,y.jsx(Ob,{onClick:()=>Aa.dismiss(r),type:"button",style:{position:"absolute",fontSize:"12px",top:"calc(50% - 6px)",right:"8px"}})]});switch(n){case"success":{Aa(i,{id:r,duration:a,position:"top-center",icon:y.jsx(qk,{size:12}),className:ie("luminus-toast-success rounded shadow bg-success",Pi.toast)});break}case"danger":{Aa(i,{id:r,duration:a,position:"top-center",icon:y.jsx(Ik,{size:12}),className:ie("luminus-toast-danger rounded shadow bg-danger",Pi.toast)});break}case"warning":{Aa(i,{id:r,duration:a,position:"top-center",icon:y.jsx(Rk,{size:12}),className:ie("luminus-toast-warning rounded shadow bg-warning",Pi.toast)});break}case"info":{Aa(i,{id:r,duration:a,position:"top-center",icon:y.jsx(Pk,{size:12}),className:ie("luminus-toast-info rounded shadow bg-info",Pi.toast)});break}case"prompt":{Aa(i,{id:r,duration:a,position:"top-center",icon:y.jsx(Dk,{size:12}),className:ie("luminus-toast-prompt rounded shadow bg-light",Pi.toast)});break}}},[])}),aO=dt.CancelToken,ru=e=>{const{authenticated:t=!0,differentBaseUrl:n,silent:r=!1,customToken:a,ignoreDelegation:i,noToastOnStatus:o}={...e},{language:s,axiosOptions:u,texts:{axios:c}}=h.useContext(bn),{delegation:l}=h.useContext(M1),d=h.useMemo(()=>(l==null?void 0:l.id)??null,[l==null?void 0:l.id]),{addNotification:f}=Ch(),{getToken:p}=v1(),m=h.useMemo(()=>dt.create(u),[u]),g=h.useCallback(async x=>{var w,b,T;if(t&&!x.headers.Authorization){const _=a??await p();if(!_)return Promise.reject(new Error("No bearer token"));x.headers.Authorization=`Bearer ${_}`}return d!==null&&!i&&(x.headers.DelegationId=d.toString()),(w=x.url)!=null&&w.includes("culture=")?x.url=(b=x.url)==null?void 0:b.replace(/culture=[a-z]{2}/,`culture=${s}`):x.url=`${x.url}${(T=x.url)!=null&&T.includes("?")?"&":"?"}culture=${s}`,x},[t,p,s,a,d,i]),v=h.useCallback(x=>{var T,_;if(console.log(x),dt.isCancel(x))return Promise.reject(x);const w=_h(x);if(w.length>0){const C=w.find($=>$.name.toLowerCase()==="others");return C?(!r&&f(C.errors,"danger"),Promise.reject(x)):(!r&&f(c.validationError,"warning"),Promise.reject(x))}const b=s1(x);return b!==null?(!r&&f(`${c.permissionError}: ${lo(", ",...b)}`,"danger"),Promise.reject(x)):(o??[]).includes((T=x.response)==null?void 0:T.status)?Promise.reject(x):((_=x.response)==null?void 0:_.status)===403?(!r&&f(c.forbiddenError,"danger"),Promise.reject(x)):x.message&&x.message==="Network Error"?(!r&&f(c.networkError,"danger"),Promise.reject(x)):(dt.isCancel(x)||!r&&f(c.unexpectedError,"danger"),Promise.reject(x))},[f,c.forbiddenError,c.networkError,c.permissionError,c.unexpectedError,c.validationError,r,o]);return h.useEffect(()=>{n&&(m.defaults.baseURL=n),m.interceptors.request.clear(),m.interceptors.response.clear();const x=m.interceptors.request.use(g,b=>Promise.reject(b)),w=m.interceptors.response.use(b=>b,v);return()=>{m.interceptors.request.eject(x),m.interceptors.response.eject(w)}},[m.defaults,m.interceptors.request,m.interceptors.response,n,g,v]),m};let Ul;const y1=()=>{const{show:e,text:t,showConfirm:n,hideConfirm:r}=h.useContext(Eb),a=()=>{r()};return{confirm:async u=>(n(u),new Promise(c=>{Ul=c})),onConfirm:()=>{a(),Ul(!0)},onCancel:()=>{a(),Ul(!1)},show:e,text:t}};var Fe;(function(e){e.assertEqual=a=>a;function t(a){}e.assertIs=t;function n(a){throw new Error}e.assertNever=n,e.arrayToEnum=a=>{const i={};for(const o of a)i[o]=o;return i},e.getValidEnumValues=a=>{const i=e.objectKeys(a).filter(s=>typeof a[a[s]]!="number"),o={};for(const s of i)o[s]=a[s];return e.objectValues(o)},e.objectValues=a=>e.objectKeys(a).map(function(i){return a[i]}),e.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const i=[];for(const o in a)Object.prototype.hasOwnProperty.call(a,o)&&i.push(o);return i},e.find=(a,i)=>{for(const o of a)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&isFinite(a)&&Math.floor(a)===a;function r(a,i=" | "){return a.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(a,i)=>typeof i=="bigint"?i.toString():i})(Fe||(Fe={}));var Zd;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Zd||(Zd={}));const ue=Fe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Or=e=>{switch(typeof e){case"undefined":return ue.undefined;case"string":return ue.string;case"number":return isNaN(e)?ue.nan:ue.number;case"boolean":return ue.boolean;case"function":return ue.function;case"bigint":return ue.bigint;case"symbol":return ue.symbol;case"object":return Array.isArray(e)?ue.array:e===null?ue.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ue.promise:typeof Map<"u"&&e instanceof Map?ue.map:typeof Set<"u"&&e instanceof Set?ue.set:typeof Date<"u"&&e instanceof Date?ue.date:ue.object;default:return ue.unknown}},te=Fe.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),iO=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class gn extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(i){return i.message},r={_errors:[]},a=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(a);else if(o.code==="invalid_return_type")a(o.returnTypeError);else if(o.code==="invalid_arguments")a(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let s=r,u=0;for(;u<o.path.length;){const c=o.path[u];u===o.path.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(n(o))):s[c]=s[c]||{_errors:[]},s=s[c],u++}}};return a(this),r}static assert(t){if(!(t instanceof gn))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Fe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const a of this.issues)a.path.length>0?(n[a.path[0]]=n[a.path[0]]||[],n[a.path[0]].push(t(a))):r.push(t(a));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}gn.create=e=>new gn(e);const Ja=(e,t)=>{let n;switch(e.code){case te.invalid_type:e.received===ue.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case te.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Fe.jsonStringifyReplacer)}`;break;case te.unrecognized_keys:n=`Unrecognized key(s) in object: ${Fe.joinValues(e.keys,", ")}`;break;case te.invalid_union:n="Invalid input";break;case te.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Fe.joinValues(e.options)}`;break;case te.invalid_enum_value:n=`Invalid enum value. Expected ${Fe.joinValues(e.options)}, received '${e.received}'`;break;case te.invalid_arguments:n="Invalid function arguments";break;case te.invalid_return_type:n="Invalid function return type";break;case te.invalid_date:n="Invalid date";break;case te.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Fe.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case te.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case te.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case te.custom:n="Invalid input";break;case te.invalid_intersection_types:n="Intersection results could not be merged";break;case te.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case te.not_finite:n="Number must be finite";break;default:n=t.defaultError,Fe.assertNever(e)}return{message:n}};let b1=Ja;function oO(e){b1=e}function rc(){return b1}const ac=e=>{const{data:t,path:n,errorMaps:r,issueData:a}=e,i=[...n,...a.path||[]],o={...a,path:i};if(a.message!==void 0)return{...a,path:i,message:a.message};let s="";const u=r.filter(c=>!!c).slice().reverse();for(const c of u)s=c(o,{data:t,defaultError:s}).message;return{...a,path:i,message:s}},sO=[];function ce(e,t){const n=rc(),r=ac({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Ja?void 0:Ja].filter(a=>!!a)});e.common.issues.push(r)}class Ht{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const a of n){if(a.status==="aborted")return we;a.status==="dirty"&&t.dirty(),r.push(a.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const a of n){const i=await a.key,o=await a.value;r.push({key:i,value:o})}return Ht.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const a of n){const{key:i,value:o}=a;if(i.status==="aborted"||o.status==="aborted")return we;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||a.alwaysSet)&&(r[i.value]=o.value)}return{status:t.value,value:r}}}const we=Object.freeze({status:"aborted"}),Fa=e=>({status:"dirty",value:e}),Kt=e=>({status:"valid",value:e}),Kd=e=>e.status==="aborted",Xd=e=>e.status==="dirty",fo=e=>e.status==="valid",ho=e=>typeof Promise<"u"&&e instanceof Promise;function ic(e,t,n,r){if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function x1(e,t,n,r,a){if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var me;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(me||(me={}));var Yi,Gi;class Gn{constructor(t,n,r,a){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=a}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const hg=(e,t)=>{if(fo(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new gn(e.common.issues);return this._error=n,this._error}}};function Ee(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:a}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:a}:{errorMap:(o,s)=>{var u,c;const{message:l}=e;return o.code==="invalid_enum_value"?{message:l??s.defaultError}:typeof s.data>"u"?{message:(u=l??r)!==null&&u!==void 0?u:s.defaultError}:o.code!=="invalid_type"?{message:s.defaultError}:{message:(c=l??n)!==null&&c!==void 0?c:s.defaultError}},description:a}}class Re{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return Or(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Or(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Ht,ctx:{common:t.parent.common,data:t.data,parsedType:Or(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(ho(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const a={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Or(t)},i=this._parseSync({data:t,path:a.path,parent:a});return hg(a,i)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Or(t)},a=this._parse({data:t,path:r.path,parent:r}),i=await(ho(a)?a:Promise.resolve(a));return hg(r,i)}refine(t,n){const r=a=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(a):n;return this._refinement((a,i)=>{const o=t(a),s=()=>i.addIssue({code:te.custom,...r(a)});return typeof Promise<"u"&&o instanceof Promise?o.then(u=>u?!0:(s(),!1)):o?!0:(s(),!1)})}refinement(t,n){return this._refinement((r,a)=>t(r)?!0:(a.addIssue(typeof n=="function"?n(r,a):n),!1))}_refinement(t){return new Nn({schema:this,typeName:_e.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return qn.create(this,this._def)}nullable(){return Nr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Dn.create(this,this._def)}promise(){return ei.create(this,this._def)}or(t){return vo.create([this,t],this._def)}and(t){return yo.create(this,t,this._def)}transform(t){return new Nn({...Ee(this._def),schema:this,typeName:_e.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new To({...Ee(this._def),innerType:this,defaultValue:n,typeName:_e.ZodDefault})}brand(){return new kh({typeName:_e.ZodBranded,type:this,...Ee(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Co({...Ee(this._def),innerType:this,catchValue:n,typeName:_e.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Ko.create(this,t)}readonly(){return ko.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const cO=/^c[^\s-]{8,}$/i,uO=/^[0-9a-z]+$/,lO=/^[0-9A-HJKMNP-TV-Z]{26}$/,dO=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,fO=/^[a-z0-9_-]{21}$/i,hO=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,pO=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,mO="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Bl;const gO=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,vO=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,yO=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,_1="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",bO=new RegExp(`^${_1}$`);function w1(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function xO(e){return new RegExp(`^${w1(e)}$`)}function T1(e){let t=`${_1}T${w1(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function _O(e,t){return!!((t==="v4"||!t)&&gO.test(e)||(t==="v6"||!t)&&vO.test(e))}class An extends Re{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ue.string){const i=this._getOrReturnCtx(t);return ce(i,{code:te.invalid_type,expected:ue.string,received:i.parsedType}),we}const r=new Ht;let a;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(a=this._getOrReturnCtx(t,a),ce(a,{code:te.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="max")t.data.length>i.value&&(a=this._getOrReturnCtx(t,a),ce(a,{code:te.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const o=t.data.length>i.value,s=t.data.length<i.value;(o||s)&&(a=this._getOrReturnCtx(t,a),o?ce(a,{code:te.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):s&&ce(a,{code:te.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")pO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"email",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")Bl||(Bl=new RegExp(mO,"u")),Bl.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"emoji",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")dO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"uuid",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")fO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"nanoid",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")cO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"cuid",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")uO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"cuid2",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")lO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"ulid",code:te.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),ce(a,{validation:"url",code:te.invalid_string,message:i.message}),r.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"regex",code:te.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(a=this._getOrReturnCtx(t,a),ce(a,{code:te.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(a=this._getOrReturnCtx(t,a),ce(a,{code:te.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(a=this._getOrReturnCtx(t,a),ce(a,{code:te.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?T1(i).test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{code:te.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?bO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{code:te.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?xO(i).test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{code:te.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?hO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"duration",code:te.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?_O(t.data,i.version)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"ip",code:te.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?yO.test(t.data)||(a=this._getOrReturnCtx(t,a),ce(a,{validation:"base64",code:te.invalid_string,message:i.message}),r.dirty()):Fe.assertNever(i);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(a=>t.test(a),{validation:n,code:te.invalid_string,...me.errToObj(r)})}_addCheck(t){return new An({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...me.errToObj(t)})}url(t){return this._addCheck({kind:"url",...me.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...me.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...me.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...me.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...me.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...me.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...me.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...me.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...me.errToObj(t)})}datetime(t){var n,r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,...me.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...me.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...me.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...me.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...me.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...me.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...me.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...me.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...me.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...me.errToObj(n)})}nonempty(t){return this.min(1,me.errToObj(t))}trim(){return new An({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new An({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new An({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}An.create=e=>{var t;return new An({checks:[],typeName:_e.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Ee(e)})};function wO(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,a=n>r?n:r,i=parseInt(e.toFixed(a).replace(".","")),o=parseInt(t.toFixed(a).replace(".",""));return i%o/Math.pow(10,a)}class Pr extends Re{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==ue.number){const i=this._getOrReturnCtx(t);return ce(i,{code:te.invalid_type,expected:ue.number,received:i.parsedType}),we}let r;const a=new Ht;for(const i of this._def.checks)i.kind==="int"?Fe.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),ce(r,{code:te.invalid_type,expected:"integer",received:"float",message:i.message}),a.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:te.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:te.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="multipleOf"?wO(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),ce(r,{code:te.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),ce(r,{code:te.not_finite,message:i.message}),a.dirty()):Fe.assertNever(i);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,me.toString(n))}gt(t,n){return this.setLimit("min",t,!1,me.toString(n))}lte(t,n){return this.setLimit("max",t,!0,me.toString(n))}lt(t,n){return this.setLimit("max",t,!1,me.toString(n))}setLimit(t,n,r,a){return new Pr({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:me.toString(a)}]})}_addCheck(t){return new Pr({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:me.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:me.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:me.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:me.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:me.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:me.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:me.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:me.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:me.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Fe.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Pr.create=e=>new Pr({checks:[],typeName:_e.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Ee(e)});class Dr extends Re{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==ue.bigint){const i=this._getOrReturnCtx(t);return ce(i,{code:te.invalid_type,expected:ue.bigint,received:i.parsedType}),we}let r;const a=new Ht;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:te.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:te.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:te.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):Fe.assertNever(i);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,me.toString(n))}gt(t,n){return this.setLimit("min",t,!1,me.toString(n))}lte(t,n){return this.setLimit("max",t,!0,me.toString(n))}lt(t,n){return this.setLimit("max",t,!1,me.toString(n))}setLimit(t,n,r,a){return new Dr({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:me.toString(a)}]})}_addCheck(t){return new Dr({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:me.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:me.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:me.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:me.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:me.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Dr.create=e=>{var t;return new Dr({checks:[],typeName:_e.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Ee(e)})};class po extends Re{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ue.boolean){const r=this._getOrReturnCtx(t);return ce(r,{code:te.invalid_type,expected:ue.boolean,received:r.parsedType}),we}return Kt(t.data)}}po.create=e=>new po({typeName:_e.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Ee(e)});class la extends Re{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ue.date){const i=this._getOrReturnCtx(t);return ce(i,{code:te.invalid_type,expected:ue.date,received:i.parsedType}),we}if(isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return ce(i,{code:te.invalid_date}),we}const r=new Ht;let a;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(a=this._getOrReturnCtx(t,a),ce(a,{code:te.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(a=this._getOrReturnCtx(t,a),ce(a,{code:te.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):Fe.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new la({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:me.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:me.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}la.create=e=>new la({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:_e.ZodDate,...Ee(e)});class oc extends Re{_parse(t){if(this._getType(t)!==ue.symbol){const r=this._getOrReturnCtx(t);return ce(r,{code:te.invalid_type,expected:ue.symbol,received:r.parsedType}),we}return Kt(t.data)}}oc.create=e=>new oc({typeName:_e.ZodSymbol,...Ee(e)});class mo extends Re{_parse(t){if(this._getType(t)!==ue.undefined){const r=this._getOrReturnCtx(t);return ce(r,{code:te.invalid_type,expected:ue.undefined,received:r.parsedType}),we}return Kt(t.data)}}mo.create=e=>new mo({typeName:_e.ZodUndefined,...Ee(e)});class go extends Re{_parse(t){if(this._getType(t)!==ue.null){const r=this._getOrReturnCtx(t);return ce(r,{code:te.invalid_type,expected:ue.null,received:r.parsedType}),we}return Kt(t.data)}}go.create=e=>new go({typeName:_e.ZodNull,...Ee(e)});class Qa extends Re{constructor(){super(...arguments),this._any=!0}_parse(t){return Kt(t.data)}}Qa.create=e=>new Qa({typeName:_e.ZodAny,...Ee(e)});class ra extends Re{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Kt(t.data)}}ra.create=e=>new ra({typeName:_e.ZodUnknown,...Ee(e)});class hr extends Re{_parse(t){const n=this._getOrReturnCtx(t);return ce(n,{code:te.invalid_type,expected:ue.never,received:n.parsedType}),we}}hr.create=e=>new hr({typeName:_e.ZodNever,...Ee(e)});class sc extends Re{_parse(t){if(this._getType(t)!==ue.undefined){const r=this._getOrReturnCtx(t);return ce(r,{code:te.invalid_type,expected:ue.void,received:r.parsedType}),we}return Kt(t.data)}}sc.create=e=>new sc({typeName:_e.ZodVoid,...Ee(e)});class Dn extends Re{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),a=this._def;if(n.parsedType!==ue.array)return ce(n,{code:te.invalid_type,expected:ue.array,received:n.parsedType}),we;if(a.exactLength!==null){const o=n.data.length>a.exactLength.value,s=n.data.length<a.exactLength.value;(o||s)&&(ce(n,{code:o?te.too_big:te.too_small,minimum:s?a.exactLength.value:void 0,maximum:o?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),r.dirty())}if(a.minLength!==null&&n.data.length<a.minLength.value&&(ce(n,{code:te.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),r.dirty()),a.maxLength!==null&&n.data.length>a.maxLength.value&&(ce(n,{code:te.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((o,s)=>a.type._parseAsync(new Gn(n,o,n.path,s)))).then(o=>Ht.mergeArray(r,o));const i=[...n.data].map((o,s)=>a.type._parseSync(new Gn(n,o,n.path,s)));return Ht.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new Dn({...this._def,minLength:{value:t,message:me.toString(n)}})}max(t,n){return new Dn({...this._def,maxLength:{value:t,message:me.toString(n)}})}length(t,n){return new Dn({...this._def,exactLength:{value:t,message:me.toString(n)}})}nonempty(t){return this.min(1,t)}}Dn.create=(e,t)=>new Dn({type:e,minLength:null,maxLength:null,exactLength:null,typeName:_e.ZodArray,...Ee(t)});function Na(e){if(e instanceof mt){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=qn.create(Na(r))}return new mt({...e._def,shape:()=>t})}else return e instanceof Dn?new Dn({...e._def,type:Na(e.element)}):e instanceof qn?qn.create(Na(e.unwrap())):e instanceof Nr?Nr.create(Na(e.unwrap())):e instanceof Zn?Zn.create(e.items.map(t=>Na(t))):e}class mt extends Re{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=Fe.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==ue.object){const c=this._getOrReturnCtx(t);return ce(c,{code:te.invalid_type,expected:ue.object,received:c.parsedType}),we}const{status:r,ctx:a}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),s=[];if(!(this._def.catchall instanceof hr&&this._def.unknownKeys==="strip"))for(const c in a.data)o.includes(c)||s.push(c);const u=[];for(const c of o){const l=i[c],d=a.data[c];u.push({key:{status:"valid",value:c},value:l._parse(new Gn(a,d,a.path,c)),alwaysSet:c in a.data})}if(this._def.catchall instanceof hr){const c=this._def.unknownKeys;if(c==="passthrough")for(const l of s)u.push({key:{status:"valid",value:l},value:{status:"valid",value:a.data[l]}});else if(c==="strict")s.length>0&&(ce(a,{code:te.unrecognized_keys,keys:s}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const l of s){const d=a.data[l];u.push({key:{status:"valid",value:l},value:c._parse(new Gn(a,d,a.path,l)),alwaysSet:l in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const c=[];for(const l of u){const d=await l.key,f=await l.value;c.push({key:d,value:f,alwaysSet:l.alwaysSet})}return c}).then(c=>Ht.mergeObjectSync(r,c)):Ht.mergeObjectSync(r,u)}get shape(){return this._def.shape()}strict(t){return me.errToObj,new mt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var a,i,o,s;const u=(o=(i=(a=this._def).errorMap)===null||i===void 0?void 0:i.call(a,n,r).message)!==null&&o!==void 0?o:r.defaultError;return n.code==="unrecognized_keys"?{message:(s=me.errToObj(t).message)!==null&&s!==void 0?s:u}:{message:u}}}:{}})}strip(){return new mt({...this._def,unknownKeys:"strip"})}passthrough(){return new mt({...this._def,unknownKeys:"passthrough"})}extend(t){return new mt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new mt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:_e.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new mt({...this._def,catchall:t})}pick(t){const n={};return Fe.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new mt({...this._def,shape:()=>n})}omit(t){const n={};return Fe.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new mt({...this._def,shape:()=>n})}deepPartial(){return Na(this)}partial(t){const n={};return Fe.objectKeys(this.shape).forEach(r=>{const a=this.shape[r];t&&!t[r]?n[r]=a:n[r]=a.optional()}),new mt({...this._def,shape:()=>n})}required(t){const n={};return Fe.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof qn;)i=i._def.innerType;n[r]=i}}),new mt({...this._def,shape:()=>n})}keyof(){return C1(Fe.objectKeys(this.shape))}}mt.create=(e,t)=>new mt({shape:()=>e,unknownKeys:"strip",catchall:hr.create(),typeName:_e.ZodObject,...Ee(t)});mt.strictCreate=(e,t)=>new mt({shape:()=>e,unknownKeys:"strict",catchall:hr.create(),typeName:_e.ZodObject,...Ee(t)});mt.lazycreate=(e,t)=>new mt({shape:e,unknownKeys:"strip",catchall:hr.create(),typeName:_e.ZodObject,...Ee(t)});class vo extends Re{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function a(i){for(const s of i)if(s.result.status==="valid")return s.result;for(const s of i)if(s.result.status==="dirty")return n.common.issues.push(...s.ctx.common.issues),s.result;const o=i.map(s=>new gn(s.ctx.common.issues));return ce(n,{code:te.invalid_union,unionErrors:o}),we}if(n.common.async)return Promise.all(r.map(async i=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(a);{let i;const o=[];for(const u of r){const c={...n,common:{...n.common,issues:[]},parent:null},l=u._parseSync({data:n.data,path:n.path,parent:c});if(l.status==="valid")return l;l.status==="dirty"&&!i&&(i={result:l,ctx:c}),c.common.issues.length&&o.push(c.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const s=o.map(u=>new gn(u));return ce(n,{code:te.invalid_union,unionErrors:s}),we}}get options(){return this._def.options}}vo.create=(e,t)=>new vo({options:e,typeName:_e.ZodUnion,...Ee(t)});const nr=e=>e instanceof xo?nr(e.schema):e instanceof Nn?nr(e.innerType()):e instanceof _o?[e.value]:e instanceof Ir?e.options:e instanceof wo?Fe.objectValues(e.enum):e instanceof To?nr(e._def.innerType):e instanceof mo?[void 0]:e instanceof go?[null]:e instanceof qn?[void 0,...nr(e.unwrap())]:e instanceof Nr?[null,...nr(e.unwrap())]:e instanceof kh||e instanceof ko?nr(e.unwrap()):e instanceof Co?nr(e._def.innerType):[];class au extends Re{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ue.object)return ce(n,{code:te.invalid_type,expected:ue.object,received:n.parsedType}),we;const r=this.discriminator,a=n.data[r],i=this.optionsMap.get(a);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(ce(n,{code:te.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),we)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const a=new Map;for(const i of n){const o=nr(i.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const s of o){if(a.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);a.set(s,i)}}return new au({typeName:_e.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:a,...Ee(r)})}}function Jd(e,t){const n=Or(e),r=Or(t);if(e===t)return{valid:!0,data:e};if(n===ue.object&&r===ue.object){const a=Fe.objectKeys(t),i=Fe.objectKeys(e).filter(s=>a.indexOf(s)!==-1),o={...e,...t};for(const s of i){const u=Jd(e[s],t[s]);if(!u.valid)return{valid:!1};o[s]=u.data}return{valid:!0,data:o}}else if(n===ue.array&&r===ue.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let i=0;i<e.length;i++){const o=e[i],s=t[i],u=Jd(o,s);if(!u.valid)return{valid:!1};a.push(u.data)}return{valid:!0,data:a}}else return n===ue.date&&r===ue.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class yo extends Re{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=(i,o)=>{if(Kd(i)||Kd(o))return we;const s=Jd(i.value,o.value);return s.valid?((Xd(i)||Xd(o))&&n.dirty(),{status:n.value,value:s.data}):(ce(r,{code:te.invalid_intersection_types}),we)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,o])=>a(i,o)):a(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}yo.create=(e,t,n)=>new yo({left:e,right:t,typeName:_e.ZodIntersection,...Ee(n)});class Zn extends Re{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ue.array)return ce(r,{code:te.invalid_type,expected:ue.array,received:r.parsedType}),we;if(r.data.length<this._def.items.length)return ce(r,{code:te.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),we;!this._def.rest&&r.data.length>this._def.items.length&&(ce(r,{code:te.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((o,s)=>{const u=this._def.items[s]||this._def.rest;return u?u._parse(new Gn(r,o,r.path,s)):null}).filter(o=>!!o);return r.common.async?Promise.all(i).then(o=>Ht.mergeArray(n,o)):Ht.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new Zn({...this._def,rest:t})}}Zn.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Zn({items:e,typeName:_e.ZodTuple,rest:null,...Ee(t)})};class bo extends Re{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ue.object)return ce(r,{code:te.invalid_type,expected:ue.object,received:r.parsedType}),we;const a=[],i=this._def.keyType,o=this._def.valueType;for(const s in r.data)a.push({key:i._parse(new Gn(r,s,r.path,s)),value:o._parse(new Gn(r,r.data[s],r.path,s)),alwaysSet:s in r.data});return r.common.async?Ht.mergeObjectAsync(n,a):Ht.mergeObjectSync(n,a)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof Re?new bo({keyType:t,valueType:n,typeName:_e.ZodRecord,...Ee(r)}):new bo({keyType:An.create(),valueType:t,typeName:_e.ZodRecord,...Ee(n)})}}class cc extends Re{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ue.map)return ce(r,{code:te.invalid_type,expected:ue.map,received:r.parsedType}),we;const a=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map(([s,u],c)=>({key:a._parse(new Gn(r,s,r.path,[c,"key"])),value:i._parse(new Gn(r,u,r.path,[c,"value"]))}));if(r.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const u of o){const c=await u.key,l=await u.value;if(c.status==="aborted"||l.status==="aborted")return we;(c.status==="dirty"||l.status==="dirty")&&n.dirty(),s.set(c.value,l.value)}return{status:n.value,value:s}})}else{const s=new Map;for(const u of o){const c=u.key,l=u.value;if(c.status==="aborted"||l.status==="aborted")return we;(c.status==="dirty"||l.status==="dirty")&&n.dirty(),s.set(c.value,l.value)}return{status:n.value,value:s}}}}cc.create=(e,t,n)=>new cc({valueType:t,keyType:e,typeName:_e.ZodMap,...Ee(n)});class da extends Re{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ue.set)return ce(r,{code:te.invalid_type,expected:ue.set,received:r.parsedType}),we;const a=this._def;a.minSize!==null&&r.data.size<a.minSize.value&&(ce(r,{code:te.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),n.dirty()),a.maxSize!==null&&r.data.size>a.maxSize.value&&(ce(r,{code:te.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),n.dirty());const i=this._def.valueType;function o(u){const c=new Set;for(const l of u){if(l.status==="aborted")return we;l.status==="dirty"&&n.dirty(),c.add(l.value)}return{status:n.value,value:c}}const s=[...r.data.values()].map((u,c)=>i._parse(new Gn(r,u,r.path,c)));return r.common.async?Promise.all(s).then(u=>o(u)):o(s)}min(t,n){return new da({...this._def,minSize:{value:t,message:me.toString(n)}})}max(t,n){return new da({...this._def,maxSize:{value:t,message:me.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}da.create=(e,t)=>new da({valueType:e,minSize:null,maxSize:null,typeName:_e.ZodSet,...Ee(t)});class Ba extends Re{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ue.function)return ce(n,{code:te.invalid_type,expected:ue.function,received:n.parsedType}),we;function r(s,u){return ac({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,rc(),Ja].filter(c=>!!c),issueData:{code:te.invalid_arguments,argumentsError:u}})}function a(s,u){return ac({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,rc(),Ja].filter(c=>!!c),issueData:{code:te.invalid_return_type,returnTypeError:u}})}const i={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof ei){const s=this;return Kt(async function(...u){const c=new gn([]),l=await s._def.args.parseAsync(u,i).catch(p=>{throw c.addIssue(r(u,p)),c}),d=await Reflect.apply(o,this,l);return await s._def.returns._def.type.parseAsync(d,i).catch(p=>{throw c.addIssue(a(d,p)),c})})}else{const s=this;return Kt(function(...u){const c=s._def.args.safeParse(u,i);if(!c.success)throw new gn([r(u,c.error)]);const l=Reflect.apply(o,this,c.data),d=s._def.returns.safeParse(l,i);if(!d.success)throw new gn([a(l,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Ba({...this._def,args:Zn.create(t).rest(ra.create())})}returns(t){return new Ba({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Ba({args:t||Zn.create([]).rest(ra.create()),returns:n||ra.create(),typeName:_e.ZodFunction,...Ee(r)})}}class xo extends Re{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}xo.create=(e,t)=>new xo({getter:e,typeName:_e.ZodLazy,...Ee(t)});class _o extends Re{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return ce(n,{received:n.data,code:te.invalid_literal,expected:this._def.value}),we}return{status:"valid",value:t.data}}get value(){return this._def.value}}_o.create=(e,t)=>new _o({value:e,typeName:_e.ZodLiteral,...Ee(t)});function C1(e,t){return new Ir({values:e,typeName:_e.ZodEnum,...Ee(t)})}class Ir extends Re{constructor(){super(...arguments),Yi.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return ce(n,{expected:Fe.joinValues(r),received:n.parsedType,code:te.invalid_type}),we}if(ic(this,Yi)||x1(this,Yi,new Set(this._def.values)),!ic(this,Yi).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return ce(n,{received:n.data,code:te.invalid_enum_value,options:r}),we}return Kt(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Ir.create(t,{...this._def,...n})}exclude(t,n=this._def){return Ir.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Yi=new WeakMap;Ir.create=C1;class wo extends Re{constructor(){super(...arguments),Gi.set(this,void 0)}_parse(t){const n=Fe.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==ue.string&&r.parsedType!==ue.number){const a=Fe.objectValues(n);return ce(r,{expected:Fe.joinValues(a),received:r.parsedType,code:te.invalid_type}),we}if(ic(this,Gi)||x1(this,Gi,new Set(Fe.getValidEnumValues(this._def.values))),!ic(this,Gi).has(t.data)){const a=Fe.objectValues(n);return ce(r,{received:r.data,code:te.invalid_enum_value,options:a}),we}return Kt(t.data)}get enum(){return this._def.values}}Gi=new WeakMap;wo.create=(e,t)=>new wo({values:e,typeName:_e.ZodNativeEnum,...Ee(t)});class ei extends Re{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ue.promise&&n.common.async===!1)return ce(n,{code:te.invalid_type,expected:ue.promise,received:n.parsedType}),we;const r=n.parsedType===ue.promise?n.data:Promise.resolve(n.data);return Kt(r.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}}ei.create=(e,t)=>new ei({type:e,typeName:_e.ZodPromise,...Ee(t)});class Nn extends Re{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===_e.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=this._def.effect||null,i={addIssue:o=>{ce(r,o),o.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),a.type==="preprocess"){const o=a.transform(r.data,i);if(r.common.async)return Promise.resolve(o).then(async s=>{if(n.value==="aborted")return we;const u=await this._def.schema._parseAsync({data:s,path:r.path,parent:r});return u.status==="aborted"?we:u.status==="dirty"||n.value==="dirty"?Fa(u.value):u});{if(n.value==="aborted")return we;const s=this._def.schema._parseSync({data:o,path:r.path,parent:r});return s.status==="aborted"?we:s.status==="dirty"||n.value==="dirty"?Fa(s.value):s}}if(a.type==="refinement"){const o=s=>{const u=a.refinement(s,i);if(r.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?we:(s.status==="dirty"&&n.dirty(),o(s.value),{status:n.value,value:s.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>s.status==="aborted"?we:(s.status==="dirty"&&n.dirty(),o(s.value).then(()=>({status:n.value,value:s.value}))))}if(a.type==="transform")if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!fo(o))return o;const s=a.transform(o.value,i);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:s}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>fo(o)?Promise.resolve(a.transform(o.value,i)).then(s=>({status:n.value,value:s})):o);Fe.assertNever(a)}}Nn.create=(e,t,n)=>new Nn({schema:e,typeName:_e.ZodEffects,effect:t,...Ee(n)});Nn.createWithPreprocess=(e,t,n)=>new Nn({schema:t,effect:{type:"preprocess",transform:e},typeName:_e.ZodEffects,...Ee(n)});class qn extends Re{_parse(t){return this._getType(t)===ue.undefined?Kt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}qn.create=(e,t)=>new qn({innerType:e,typeName:_e.ZodOptional,...Ee(t)});class Nr extends Re{_parse(t){return this._getType(t)===ue.null?Kt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Nr.create=(e,t)=>new Nr({innerType:e,typeName:_e.ZodNullable,...Ee(t)});class To extends Re{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===ue.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}To.create=(e,t)=>new To({innerType:e,typeName:_e.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ee(t)});class Co extends Re{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},a=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return ho(a)?a.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new gn(r.common.issues)},input:r.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new gn(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Co.create=(e,t)=>new Co({innerType:e,typeName:_e.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ee(t)});class uc extends Re{_parse(t){if(this._getType(t)!==ue.nan){const r=this._getOrReturnCtx(t);return ce(r,{code:te.invalid_type,expected:ue.nan,received:r.parsedType}),we}return{status:"valid",value:t.data}}}uc.create=e=>new uc({typeName:_e.ZodNaN,...Ee(e)});const TO=Symbol("zod_brand");class kh extends Re{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Ko extends Re{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?we:i.status==="dirty"?(n.dirty(),Fa(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const a=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?we:a.status==="dirty"?(n.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:r.path,parent:r})}}static create(t,n){return new Ko({in:t,out:n,typeName:_e.ZodPipeline})}}class ko extends Re{_parse(t){const n=this._def.innerType._parse(t),r=a=>(fo(a)&&(a.value=Object.freeze(a.value)),a);return ho(n)?n.then(a=>r(a)):r(n)}unwrap(){return this._def.innerType}}ko.create=(e,t)=>new ko({innerType:e,typeName:_e.ZodReadonly,...Ee(t)});function k1(e,t={},n){return e?Qa.create().superRefine((r,a)=>{var i,o;if(!e(r)){const s=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,u=(o=(i=s.fatal)!==null&&i!==void 0?i:n)!==null&&o!==void 0?o:!0,c=typeof s=="string"?{message:s}:s;a.addIssue({code:"custom",...c,fatal:u})}}):Qa.create()}const CO={object:mt.lazycreate};var _e;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(_e||(_e={}));const kO=(e,t={message:`Input not instance of ${e.name}`})=>k1(n=>n instanceof e,t),S1=An.create,O1=Pr.create,SO=uc.create,OO=Dr.create,E1=po.create,EO=la.create,$O=oc.create,MO=mo.create,RO=go.create,AO=Qa.create,jO=ra.create,PO=hr.create,DO=sc.create,IO=Dn.create,NO=mt.create,FO=mt.strictCreate,LO=vo.create,UO=au.create,BO=yo.create,WO=Zn.create,zO=bo.create,HO=cc.create,VO=da.create,qO=Ba.create,YO=xo.create,GO=_o.create,ZO=Ir.create,KO=wo.create,XO=ei.create,pg=Nn.create,JO=qn.create,QO=Nr.create,eE=Nn.createWithPreprocess,tE=Ko.create,nE=()=>S1().optional(),rE=()=>O1().optional(),aE=()=>E1().optional(),iE={string:e=>An.create({...e,coerce:!0}),number:e=>Pr.create({...e,coerce:!0}),boolean:e=>po.create({...e,coerce:!0}),bigint:e=>Dr.create({...e,coerce:!0}),date:e=>la.create({...e,coerce:!0})},oE=we;var Ft=Object.freeze({__proto__:null,defaultErrorMap:Ja,setErrorMap:oO,getErrorMap:rc,makeIssue:ac,EMPTY_PATH:sO,addIssueToContext:ce,ParseStatus:Ht,INVALID:we,DIRTY:Fa,OK:Kt,isAborted:Kd,isDirty:Xd,isValid:fo,isAsync:ho,get util(){return Fe},get objectUtil(){return Zd},ZodParsedType:ue,getParsedType:Or,ZodType:Re,datetimeRegex:T1,ZodString:An,ZodNumber:Pr,ZodBigInt:Dr,ZodBoolean:po,ZodDate:la,ZodSymbol:oc,ZodUndefined:mo,ZodNull:go,ZodAny:Qa,ZodUnknown:ra,ZodNever:hr,ZodVoid:sc,ZodArray:Dn,ZodObject:mt,ZodUnion:vo,ZodDiscriminatedUnion:au,ZodIntersection:yo,ZodTuple:Zn,ZodRecord:bo,ZodMap:cc,ZodSet:da,ZodFunction:Ba,ZodLazy:xo,ZodLiteral:_o,ZodEnum:Ir,ZodNativeEnum:wo,ZodPromise:ei,ZodEffects:Nn,ZodTransformer:Nn,ZodOptional:qn,ZodNullable:Nr,ZodDefault:To,ZodCatch:Co,ZodNaN:uc,BRAND:TO,ZodBranded:kh,ZodPipeline:Ko,ZodReadonly:ko,custom:k1,Schema:Re,ZodSchema:Re,late:CO,get ZodFirstPartyTypeKind(){return _e},coerce:iE,any:AO,array:IO,bigint:OO,boolean:E1,date:EO,discriminatedUnion:UO,effect:pg,enum:ZO,function:qO,instanceof:kO,intersection:BO,lazy:YO,literal:GO,map:HO,nan:SO,nativeEnum:KO,never:PO,null:RO,nullable:QO,number:O1,object:NO,oboolean:aE,onumber:rE,optional:JO,ostring:nE,pipeline:tE,preprocess:eE,promise:XO,record:zO,set:VO,strictObject:FO,string:S1,symbol:$O,transformer:pg,tuple:WO,undefined:MO,union:LO,unknown:jO,void:DO,NEVER:oE,ZodIssueCode:te,quotelessJson:iO,ZodError:gn});const iu=()=>{const{texts:{formValidation:e}}=h.useContext(bn),t=h.useCallback(g=>{let v=(g!=null&&g.useCoerce?Ft.coerce:Ft).string({invalid_type_error:e.required,required_error:e.required});return g!=null&&g.email&&(v=v.email(e.invalidEmail)),g!=null&&g.length&&(v=v.min(g.length,e.length(g.length))),g!=null&&g.minLength&&(v=v.min(g.minLength,e.minLength(g.minLength))),g!=null&&g.maxLength&&(v=v.max(g.maxLength,e.maxLength(g.maxLength))),g!=null&&g.numeric&&(v=v.regex(/^\d+$/,e.noCharactersOtherThanNumbers)),v.transform(x=>x??null)},[e]),n=h.useCallback(g=>t(g).nullable().optional().transform(v=>v??null),[t]),r=h.useCallback(g=>{const v=(g==null?void 0:g.min)??Number.MIN_SAFE_INTEGER,x=(g==null?void 0:g.max)??Number.MAX_SAFE_INTEGER,w=(g!=null&&g.useCoerce?Ft.coerce:Ft).number({invalid_type_error:e.required,required_error:e.required}).min(v,e.lessThanMin(v)).max(x,e.moreThanMax(x));return w.transform(b=>b??null),w},[e]),a=h.useCallback(g=>r(g).nullable().optional().transform(v=>v??null),[r]),i=h.useCallback(g=>(g!=null&&g.useCoerce?Ft.coerce:Ft).boolean({invalid_type_error:e.required,required_error:e.required}).transform(v=>v??null),[e.required]),o=h.useCallback(g=>(g!=null&&g.useCoerce?Ft.coerce:Ft).string({invalid_type_error:e.required,required_error:e.required}).refine(l1,{message:e.invalidDate}).transform(x=>x??null),[e.invalidDate,e.required]),s=h.useCallback(g=>o(g).nullable().transform(v=>v??null),[o]),u=h.useCallback((g,v)=>Ft.enum(g,{invalid_type_error:e.required,required_error:e.required}).transform(w=>w??null),[e.required]),c=h.useCallback((g,v)=>u(g,v).nullable().transform(x=>x??null),[u]),l=h.useCallback(g=>Ft.object({id:a({useCoerce:!0})}).nullable().transform(x=>x??null),[a]),d=h.useCallback(g=>Ft.object({id:r()}).transform(x=>x??null),[r]),f=h.useCallback(g=>Ft.object({id:n({useCoerce:!0})}).nullable().transform(x=>x??null),[n]),p=h.useCallback(g=>Ft.object({id:t()}).transform(x=>x??null),[t]),m=h.useCallback(({required:g,multiple:v,maxFileSize:x})=>Ft.any().transform(b=>Array.from(b??[])).refine(b=>!g||(b==null?void 0:b.length)>0,"File is required.").refine(b=>v||(b==null?void 0:b.length)<=1,"Multiple files not allowed.").refine(b=>b.every(T=>T.size<=x),`Maximum file size is ${tu(x)}.`).transform(b=>(v?b:b==null?void 0:b[0])??null),[]);return{zString:n,zStringRequired:t,zNumber:a,zNumberRequired:r,zBool:i,zDate:s,zDateRequired:o,zEnum:c,zEnumRequired:u,zObjectIdInt:l,zObjectIdIntRequired:d,zObjectIdStr:f,zObjectIdStrRequired:p,zFile:m}},$1=(e,t,n)=>h.useMemo(()=>n||e!=="date"&&e!=="datetime-local"&&e!=="time"||t?e:"text",[t,e,n]),Sh=h.createContext({useMsal:!1,msalInstance:null,msalScopes:[]}),M1=h.createContext({delegation:null,setDelegation:()=>{},availableDelegations:null,setAvailableDelegations:()=>{},refreshAvailableDelegations:async()=>{}}),R1=h.createContext({addHelmet:e=>{},removeHelmet:()=>{}}),sE="_button_1wjon_1",cE="_filled_1wjon_7",uE="_sm_1wjon_13",lE="_md_1wjon_18",dE="_lg_1wjon_23",ja={button:sE,filled:cE,sm:uE,md:lE,lg:dE},fa=({variant:e="filled",color:t="primary",size:n="md",className:r,children:a,...i})=>i.as==="link"?y.jsx(jc.Link,{to:i.href??"/",className:ie(`luminus-primary-button ${t} btn ${e==="outlined"?`btn-outline-${t}`:`btn-${t}`} ${r??""}`,ja.button,ja[e],ja[n]),...i,children:a}):i.as==="button"||i.as===void 0?y.jsx("button",{type:"button",className:ie(`luminus-primary-button ${t} btn ${e==="outlined"?`btn-outline-${t}`:`btn-${t}`} ${r??""}`,ja.button,ja[e],ja[n]),...i,children:a}):null,fE="_button_1r3i0_1",Qd={button:fE},ou=({color:e="primary",icon:t,className:n,children:r,...a})=>a.as==="link"?y.jsxs(jc.Link,{to:a.href??"/",className:ie(`luminus-context-button btn text-${e} ${n??""}`,Qd.button),...a,children:[t,r]}):a.as==="button"||a.as===void 0?y.jsxs("button",{type:"button",className:ie(`luminus-context-button btn text-${e} ${n??""}`,Qd.button),...a,children:[t,r]}):null,hE="_icon-button_15e26_1",pE="_sm_15e26_14",mE="_md_15e26_23",gE="_lg_15e26_32",gs={"icon-button":"_icon-button_15e26_1",iconButton:hE,sm:pE,md:mE,lg:gE},su=({type:e="button",color:t="primary",size:n="md",children:r,className:a,...i})=>i.as==="link"?y.jsx(jc.Link,{to:i.href??"/",className:ie(`luminus-icon-button btn text-${t} ${a??""}`,gs.iconButton,gs[n]),...i,children:r}):i.as==="button"||i.as===void 0?y.jsx("button",{type:e,className:ie(`luminus-icon-button btn text-${t} ${a??""}`,gs.iconButton,gs[n]),...i,children:r}):null,vE="_h1_14r4v_1",yE="_h3_14r4v_8",bE="_h6_14r4v_15",xE="_subtitle_14r4v_22",_E="_body_14r4v_29",wE="_body2_14r4v_36",TE="_caption_14r4v_43",CE="_form-label_14r4v_50",_r={h1:vE,h3:yE,h6:bE,subtitle:xE,body:_E,body2:wE,caption:TE,"form-label":"_form-label_14r4v_50",formLabel:CE},kE=({variant:e,className:t,children:n})=>{switch(e){case"h1":return y.jsx("h1",{className:ie("luminus-text-primary luminus-h1",_r.h1,t),children:n});case"h3":return y.jsx("h3",{className:ie("luminus-text luminus-h3",_r.h3,t),children:n});case"h6":return y.jsx("h6",{className:ie("luminus-text luminus-h6",_r.h6,t),children:n});case"subtitle":return y.jsx("div",{className:ie("luminus-text luminus-subtitle",_r.subtitle,t),children:n});case"body":return y.jsx("div",{className:ie("luminus-text luminus-body",_r.body,t),children:n});case"body2":return y.jsx("div",{className:ie("luminus-text luminus-body2",_r.body2,t),children:n});case"caption":return y.jsx("div",{className:ie("luminus-text-muted luminus-caption",_r.caption,t),children:n});case"form-label":return y.jsx("div",{className:ie("luminus-text luminus-form-label",_r.formLabel,t),children:n});default:return y.jsx(y.Fragment,{children:n})}},Oh=({variant:e,className:t,children:n})=>y.jsx(kE,{variant:e,className:t,children:n}),SE="_feedback_esh1j_1",OE="_feedback-spacer_esh1j_8",mg={feedback:SE,"feedback-spacer":"_feedback-spacer_esh1j_8",feedbackSpacer:OE},cu=({message:e})=>y.jsxs(y.Fragment,{children:[y.jsx("div",{className:ie("invalid-feedback luminus-invalid-feedback",mg.feedback),children:e}),y.jsx("div",{className:ie("invalid-feedback-spacer",mg.feedbackSpacer),children:e})]});function EE(e){return Ie({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function $E(e){return Ie({tag:"svg",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 ME(e){return Ie({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"},child:[]}]})(e)}function RE(e){return Ie({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm250.2-143.7c-12.2-12-47-8.7-64.4-6.5-17.2-10.5-28.7-25-36.8-46.3 3.9-16.1 10.1-40.6 5.4-56-4.2-26.2-37.8-23.6-42.6-5.9-4.4 16.1-.4 38.5 7 67.1-10 23.9-24.9 56-35.4 74.4-20 10.3-47 26.2-51 46.2-3.3 15.8 26 55.2 76.1-31.2 22.4-7.4 46.8-16.5 68.4-20.1 18.9 10.2 41 17 55.8 17 25.5 0 28-28.2 17.5-38.7zm-198.1 77.8c5.1-13.7 24.5-29.5 30.4-35-19 30.3-30.4 35.7-30.4 35zm81.6-190.6c7.4 0 6.7 32.1 1.8 40.8-4.4-13.9-4.3-40.8-1.8-40.8zm-24.4 136.6c9.7-16.9 18-37 24.7-54.7 8.3 15.1 18.9 27.2 30.1 35.5-20.8 4.3-38.9 13.1-54.8 19.2zm131.6-5s-5 6-37.3-7.8c35.1-2.6 40.9 5.4 37.3 7.8z"},child:[]}]})(e)}const AE="_item_1dy8x_1",A1={item:AE},ef=({color:e="primary",icon:t,className:n,children:r,...a})=>{const{as:i,to:o,...s}=a;return y.jsxs(co.Item,{className:ie(`btn luminus-dropdown-item text-nowrap rounded text-${e} ${n??""}`,A1.item),as:i==="link"?jc.Link:void 0,to:o??"",...s,children:[t,r]})},jE="_button_qhwih_1",PE={button:jE},j1=h.forwardRef(({color:e="primary",icon:t=y.jsx(Zk,{size:21}),text:n,onClick:r,className:a,children:i,...o},s)=>y.jsxs("button",{type:"button",ref:s,onClick:u=>{u.preventDefault(),r(u)},"aria-label":"dropdown toggle",className:ie(`btn luminus-context-button text-${e} ${a??""}`,PE.button),...o,children:[t,n]})),DE="_avatar-icon_1axl6_1",IE={"avatar-icon":"_avatar-icon_1axl6_1",avatarIcon:DE},P1=({name:e,fontSize:t,size:n})=>{const r=h.useMemo(()=>{const o=e.split(" ");return o.length<2?e:lo(" ",o.at(o.length-2),o.at(o.length-1))},[e]),a=h.useMemo(()=>{const o=r.split(" ");return lo("",...o.map(s=>s.at(0)??void 0))},[r]),i=o=>{let s=0,u;for(u=0;u<o.length;u+=1)s=o.charCodeAt(u)+((s<<5)-s);let c="#";for(u=0;u<3;u+=1){const l=s>>u*8&255;c+=`00${l.toString(16)}`.slice(-2)}return c};return y.jsx(Cb,{placement:"bottom",overlay:y.jsx(mh,{children:e}),children:y.jsx("div",{className:ie("luminus-avatar-icon",IE.avatarIcon),style:{backgroundColor:i(r),fontSize:t??void 0,minHeight:n??void 0,height:n??void 0,maxHeight:n??void 0,minWidth:n??void 0,width:n??void 0,maxWidth:n??void 0},children:y.jsx("div",{children:a})})})},NE=h.forwardRef(({userName:e,onClick:t,children:n},r)=>y.jsxs("button",{type:"button",ref:r,onClick:a=>{a.preventDefault(),t(a)},"aria-label":"User avatar toggle",className:"m-0 p-0",style:{backgroundColor:"transparent",border:"none",cursor:"pointer"},children:[y.jsx(P1,{name:e}),n]})),D1=e=>y.jsx(co.Toggle,{...e}),FE="_dropdown_1lk66_1",LE={dropdown:FE},I1=({toggle:e,children:t,...n})=>y.jsxs(co,{...n,children:[e,y.jsx(co.Menu,{className:ie("luminus-dropdown rounded shadow",LE.dropdown),children:t})]}),UE="_floating-label_3xm9u_1",BE="_without-label_3xm9u_21",WE="_floating-label-check_3xm9u_184",Wl={"floating-label":"_floating-label_3xm9u_1",floatingLabel:UE,"without-label":"_without-label_3xm9u_21",withoutLabel:BE,"floating-label-check":"_floating-label-check_3xm9u_184",floatingLabelCheck:WE},N1=h.forwardRef(({hidden:e,children:t,className:n,isInvalid:r,isForRadioInput:a,inputContainerClassName:i,isForCheckInput:o,...s},u)=>o?y.jsx("div",{className:ie("luminus-floating-label-check",Wl.floatingLabelCheck),children:t}):y.jsx(uh,{ref:u,label:s.withoutLabel?"":s.label,hidden:e??!1,className:ie(`luminus-floating-label ${n??""}`,Wl.floatingLabel,{[i??""]:i},{[Wl.withoutLabel]:s.withoutLabel}),children:t}));N1.displayName="FloatingLabelInput";const zE="_row-label-input_mqkkx_1",HE="_label_mqkkx_4",VE="_input-container_mqkkx_9",qE="_invalid-feedback_mqkkx_104",YE="_keep-check-label_mqkkx_132",GE="_is-invalid_mqkkx_160",Di={"row-label-input":"_row-label-input_mqkkx_1",rowLabelInput:zE,label:HE,"input-container":"_input-container_mqkkx_9",inputContainer:VE,"invalid-feedback":"_invalid-feedback_mqkkx_104",invalidFeedback:qE,"keep-check-label":"_keep-check-label_mqkkx_132",keepCheckLabel:YE,"is-invalid":"_is-invalid_mqkkx_160",isInvalid:GE},Xo=h.forwardRef(({hidden:e,children:t,className:n,isInvalid:r,isForRadioInput:a,isForTextAreaInput:i,inputContainerClassName:o,...s},u)=>y.jsxs("div",{ref:u,className:ie("luminus-row-label row gx-0 gy-0",{"is-invalid":r},{[Di.isInvalid]:r},{[n??""]:n},{"d-none":e},Di.rowLabelInput),children:[!s.withoutLabel&&y.jsx("label",{className:ie("label col-6",{"col-12":i},Di.label),children:y.jsx(Oh,{variant:"form-label",className:r?"text-danger":"",children:s.label})}),y.jsx("div",{className:ie("input-container",Di.inputContainer,{"col-6":!s.withoutLabel&&!i},{"col-12":s.withoutLabel||i},{[Di.keepCheckLabel]:a},{[o??""]:o}),children:t})]}));Xo.displayName="RowLabelInput";const F1=h.forwardRef(({children:e,className:t,hidden:n},r)=>y.jsx("div",{ref:r,className:`${n?"d-none":""} ${t}`,children:e}));F1.displayName="NoInputContainer";const ZE=h.forwardRef(({onClick:e,text:t},n)=>y.jsx("div",{ref:n,onClick:r=>{r.preventDefault(),e(r)},role:"button",className:"middle-div",children:y.jsxs("div",{className:"d-flex flex-column align-items-center",children:[y.jsx("div",{className:"mt-",children:"…"}),y.jsx("div",{className:"mt-1 middle-letter",children:t})]})}));var Eh=Qo(),Se=e=>Jo(e,Eh),$h=Qo();Se.write=e=>Jo(e,$h);var uu=Qo();Se.onStart=e=>Jo(e,uu);var Mh=Qo();Se.onFrame=e=>Jo(e,Mh);var Rh=Qo();Se.onFinish=e=>Jo(e,Rh);var Wa=[];Se.setTimeout=(e,t)=>{const n=Se.now()+t,r=()=>{const i=Wa.findIndex(o=>o.cancel==r);~i&&Wa.splice(i,1),Mr-=~i?1:0},a={time:n,handler:e,cancel:r};return Wa.splice(L1(n),0,a),Mr+=1,U1(),a};var L1=e=>~(~Wa.findIndex(t=>t.time>e)||~Wa.length);Se.cancel=e=>{uu.delete(e),Mh.delete(e),Rh.delete(e),Eh.delete(e),$h.delete(e)};Se.sync=e=>{tf=!0,Se.batchedUpdates(e),tf=!1};Se.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...a){t=a,Se.onStart(n)}return r.handler=e,r.cancel=()=>{uu.delete(n),t=null},r};var Ah=typeof window<"u"?window.requestAnimationFrame:()=>{};Se.use=e=>Ah=e;Se.now=typeof performance<"u"?()=>performance.now():Date.now;Se.batchedUpdates=e=>e();Se.catch=console.error;Se.frameLoop="always";Se.advance=()=>{Se.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):W1()};var $r=-1,Mr=0,tf=!1;function Jo(e,t){tf?(t.delete(e),e(0)):(t.add(e),U1())}function U1(){$r<0&&($r=0,Se.frameLoop!=="demand"&&Ah(B1))}function KE(){$r=-1}function B1(){~$r&&(Ah(B1),Se.batchedUpdates(W1))}function W1(){const e=$r;$r=Se.now();const t=L1($r);if(t&&(z1(Wa.splice(0,t),n=>n.handler()),Mr-=t),!Mr){KE();return}uu.flush(),Eh.flush(e?Math.min(64,$r-e):16.667),Mh.flush(),$h.flush(),Rh.flush()}function Qo(){let e=new Set,t=e;return{add(n){Mr+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Mr-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Mr-=t.size,z1(t,r=>r(n)&&e.add(r)),Mr+=e.size,t=e)}}}function z1(e,t){e.forEach(n=>{try{t(n)}catch(r){Se.catch(r)}})}var XE=Object.defineProperty,JE=(e,t)=>{for(var n in t)XE(e,n,{get:t[n],enumerable:!0})},Fn={};JE(Fn,{assign:()=>e$,colors:()=>Ar,createStringInterpolator:()=>Ph,skipAnimation:()=>V1,to:()=>H1,willAdvance:()=>Dh});function nf(){}var QE=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),ee={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 rr(e,t){if(ee.arr(e)){if(!ee.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var Ce=(e,t)=>e.forEach(t);function Kn(e,t,n){if(ee.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var Zt=e=>ee.und(e)?[]:ee.arr(e)?e:[e];function eo(e,t){if(e.size){const n=Array.from(e);e.clear(),Ce(n,t)}}var Zi=(e,...t)=>eo(e,n=>n(...t)),jh=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Ph,H1,Ar=null,V1=!1,Dh=nf,e$=e=>{e.to&&(H1=e.to),e.now&&(Se.now=e.now),e.colors!==void 0&&(Ar=e.colors),e.skipAnimation!=null&&(V1=e.skipAnimation),e.createStringInterpolator&&(Ph=e.createStringInterpolator),e.requestAnimationFrame&&Se.use(e.requestAnimationFrame),e.batchedUpdates&&(Se.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Dh=e.willAdvance),e.frameLoop&&(Se.frameLoop=e.frameLoop)},to=new Set,Tn=[],zl=[],lc=0,lu={get idle(){return!to.size&&!Tn.length},start(e){lc>e.priority?(to.add(e),Se.onStart(t$)):(q1(e),Se(rf))},advance:rf,sort(e){if(lc)Se.onFrame(()=>lu.sort(e));else{const t=Tn.indexOf(e);~t&&(Tn.splice(t,1),Y1(e))}},clear(){Tn=[],to.clear()}};function t$(){to.forEach(q1),to.clear(),Se(rf)}function q1(e){Tn.includes(e)||Y1(e)}function Y1(e){Tn.splice(n$(Tn,t=>t.priority>e.priority),0,e)}function rf(e){const t=zl;for(let n=0;n<Tn.length;n++){const r=Tn[n];lc=r.priority,r.idle||(Dh(r),r.advance(e),r.idle||t.push(r))}return lc=0,zl=Tn,zl.length=0,Tn=t,Tn.length>0}function n$(e,t){const n=e.findIndex(t);return n<0?e.length:n}var r$=(e,t,n)=>Math.min(Math.max(n,e),t),a$={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},jn="[-+]?\\d*\\.?\\d+",dc=jn+"%";function du(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var i$=new RegExp("rgb"+du(jn,jn,jn)),o$=new RegExp("rgba"+du(jn,jn,jn,jn)),s$=new RegExp("hsl"+du(jn,dc,dc)),c$=new RegExp("hsla"+du(jn,dc,dc,jn)),u$=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,l$=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,d$=/^#([0-9a-fA-F]{6})$/,f$=/^#([0-9a-fA-F]{8})$/;function h$(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=d$.exec(e))?parseInt(t[1]+"ff",16)>>>0:Ar&&Ar[e]!==void 0?Ar[e]:(t=i$.exec(e))?(Pa(t[1])<<24|Pa(t[2])<<16|Pa(t[3])<<8|255)>>>0:(t=o$.exec(e))?(Pa(t[1])<<24|Pa(t[2])<<16|Pa(t[3])<<8|yg(t[4]))>>>0:(t=u$.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=f$.exec(e))?parseInt(t[1],16)>>>0:(t=l$.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=s$.exec(e))?(gg(vg(t[1]),vs(t[2]),vs(t[3]))|255)>>>0:(t=c$.exec(e))?(gg(vg(t[1]),vs(t[2]),vs(t[3]))|yg(t[4]))>>>0:null}function Hl(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function gg(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r,i=Hl(a,r,e+1/3),o=Hl(a,r,e),s=Hl(a,r,e-1/3);return Math.round(i*255)<<24|Math.round(o*255)<<16|Math.round(s*255)<<8}function Pa(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function vg(e){return(parseFloat(e)%360+360)%360/360}function yg(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function vs(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function bg(e){let t=h$(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,a=(t&65280)>>>8,i=(t&255)/255;return`rgba(${n}, ${r}, ${a}, ${i})`}var So=(e,t,n)=>{if(ee.fun(e))return e;if(ee.arr(e))return So({range:e,output:t,extrapolate:n});if(ee.str(e.output[0]))return Ph(e);const r=e,a=r.output,i=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",u=r.easing||(c=>c);return c=>{const l=m$(c,i);return p$(c,i[l],i[l+1],a[l],a[l+1],u,o,s,r.map)}};function p$(e,t,n,r,a,i,o,s,u){let c=u?u(e):e;if(c<t){if(o==="identity")return c;o==="clamp"&&(c=t)}if(c>n){if(s==="identity")return c;s==="clamp"&&(c=n)}return r===a?r:t===n?e<=t?r:a:(t===-1/0?c=-c:n===1/0?c=c-t:c=(c-t)/(n-t),c=i(c),r===-1/0?c=-c:a===1/0?c=c+r:c=c*(a-r)+r,c)}function m$(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var g$=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,a=t==="end"?Math.floor(r):Math.ceil(r);return r$(0,1,a/e)},fc=1.70158,ys=fc*1.525,xg=fc+1,_g=2*Math.PI/3,wg=2*Math.PI/4.5,bs=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,v$={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>xg*e*e*e-fc*e*e,easeOutBack:e=>1+xg*Math.pow(e-1,3)+fc*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((ys+1)*2*e-ys)/2:(Math.pow(2*e-2,2)*((ys+1)*(e*2-2)+ys)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*_g),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*_g)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*wg))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*wg)/2+1,easeInBounce:e=>1-bs(1-e),easeOutBounce:bs,easeInOutBounce:e=>e<.5?(1-bs(1-2*e))/2:(1+bs(2*e-1))/2,steps:g$},Oo=Symbol.for("FluidValue.get"),ti=Symbol.for("FluidValue.observers"),wn=e=>!!(e&&e[Oo]),tn=e=>e&&e[Oo]?e[Oo]():e,Tg=e=>e[ti]||null;function y$(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Eo(e,t){const n=e[ti];n&&n.forEach(r=>{y$(r,t)})}var G1=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");b$(this,e)}},b$=(e,t)=>Z1(e,Oo,t);function pi(e,t){if(e[Oo]){let n=e[ti];n||Z1(e,ti,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function $o(e,t){const n=e[ti];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[ti]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var Z1=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Is=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,x$=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Cg=new RegExp(`(${Is.source})(%|[a-z]+)`,"i"),_$=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,fu=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,K1=e=>{const[t,n]=w$(e);if(!t||jh())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const a=window.getComputedStyle(document.documentElement).getPropertyValue(n);return a||e}else{if(n&&fu.test(n))return K1(n);if(n)return n}return e},w$=e=>{const t=fu.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Vl,T$=(e,t,n,r,a)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${a})`,X1=e=>{Vl||(Vl=Ar?new RegExp(`(${Object.keys(Ar).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(i=>tn(i).replace(fu,K1).replace(x$,bg).replace(Vl,bg)),n=t.map(i=>i.match(Is).map(Number)),a=n[0].map((i,o)=>n.map(s=>{if(!(o in s))throw Error('The arity of each "output" value must be equal');return s[o]})).map(i=>So({...e,output:i}));return i=>{var u;const o=!Cg.test(t[0])&&((u=t.find(c=>Cg.test(c)))==null?void 0:u.replace(Is,""));let s=0;return t[0].replace(Is,()=>`${a[s++](i)}${o||""}`).replace(_$,T$)}},Ih="react-spring: ",J1=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${Ih}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},C$=J1(console.warn);function k$(){C$(`${Ih}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var S$=J1(console.warn);function O$(){S$(`${Ih}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 hu(e){return ee.str(e)&&(e[0]=="#"||/\d/.test(e)||!jh()&&fu.test(e)||e in(Ar||{}))}var Kr=jh()?h.useEffect:h.useLayoutEffect,E$=()=>{const e=h.useRef(!1);return Kr(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Nh(){const e=h.useState()[1],t=E$();return()=>{t.current&&e(Math.random())}}function $$(e,t){const[n]=h.useState(()=>({inputs:t,result:e()})),r=h.useRef(),a=r.current;let i=a;return i?t&&i.inputs&&M$(t,i.inputs)||(i={inputs:t,result:e()}):i=n,h.useEffect(()=>{r.current=i,a==n&&(n.inputs=n.result=void 0)},[i]),i.result}function M$(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Fh=e=>h.useEffect(e,R$),R$=[];function af(e){const t=h.useRef();return h.useEffect(()=>{t.current=e}),t.current}var Mo=Symbol.for("Animated:node"),A$=e=>!!e&&e[Mo]===e,zn=e=>e&&e[Mo],Lh=(e,t)=>QE(e,Mo,t),pu=e=>e&&e[Mo]&&e[Mo].getPayload(),Q1=class{constructor(){Lh(this,this)}getPayload(){return this.payload||[]}},es=class extends Q1{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,ee.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new es(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return ee.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,ee.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Ro=class extends es{constructor(e){super(0),this._string=null,this._toString=So({output:[e,e]})}static create(e){return new Ro(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(ee.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=So({output:[this.getValue(),e]})),this._value=0,super.reset()}},hc={dependencies:null},mu=class extends Q1{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Kn(this.source,(n,r)=>{A$(n)?t[r]=n.getValue(e):wn(n)?t[r]=tn(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Ce(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Kn(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){hc.dependencies&&wn(e)&&hc.dependencies.add(e);const t=pu(e);t&&Ce(t,n=>this.add(n))}},ex=class extends mu{constructor(e){super(e)}static create(e){return new ex(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(j$)),!0)}};function j$(e){return(hu(e)?Ro:es).create(e)}function of(e){const t=zn(e);return t?t.constructor:ee.arr(e)?ex:hu(e)?Ro:es}var kg=(e,t)=>{const n=!ee.fun(e)||e.prototype&&e.prototype.isReactComponent;return h.forwardRef((r,a)=>{const i=h.useRef(null),o=n&&h.useCallback(m=>{i.current=I$(a,m)},[a]),[s,u]=D$(r,t),c=Nh(),l=()=>{const m=i.current;if(n&&!m)return;(m?t.applyAnimatedValues(m,s.getValue(!0)):!1)===!1&&c()},d=new P$(l,u),f=h.useRef();Kr(()=>(f.current=d,Ce(u,m=>pi(m,d)),()=>{f.current&&(Ce(f.current.deps,m=>$o(m,f.current)),Se.cancel(f.current.update))})),h.useEffect(l,[]),Fh(()=>()=>{const m=f.current;Ce(m.deps,g=>$o(g,m))});const p=t.getComponentProps(s.getValue());return oe.createElement(e,{...p,ref:o})})},P$=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&Se.write(this.update)}};function D$(e,t){const n=new Set;return hc.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new mu(e),hc.dependencies=null,[e,n]}function I$(e,t){return e&&(ee.fun(e)?e(t):e.current=t),t}var Sg=Symbol.for("AnimatedComponent"),N$=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=a=>new mu(a),getComponentProps:r=a=>a}={})=>{const a={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=o=>{const s=Og(o)||"Anonymous";return ee.str(o)?o=i[o]||(i[o]=kg(o,a)):o=o[Sg]||(o[Sg]=kg(o,a)),o.displayName=`Animated(${s})`,o};return Kn(e,(o,s)=>{ee.arr(e)&&(s=Og(o)),i[s]=i(o)}),{animated:i}},Og=e=>ee.str(e)?e:e&&ee.str(e.displayName)?e.displayName:ee.fun(e)&&e.name||null;function nn(e,...t){return ee.fun(e)?e(...t):e}var no=(e,t)=>e===!0||!!(t&&e&&(ee.fun(e)?e(t):Zt(e).includes(t))),tx=(e,t)=>ee.obj(e)?t&&e[t]:e,nx=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,F$=e=>e,gu=(e,t=F$)=>{let n=L$;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const a of n){const i=t(e[a],a);ee.und(i)||(r[a]=i)}return r},L$=["config","onProps","onStart","onChange","onPause","onResume","onRest"],U$={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 B$(e){const t={};let n=0;if(Kn(e,(r,a)=>{U$[a]||(t[a]=r,n++)}),n)return t}function Uh(e){const t=B$(e);if(t){const n={to:t};return Kn(e,(r,a)=>a in t||(n[a]=r)),n}return{...e}}function Ao(e){return e=tn(e),ee.arr(e)?e.map(Ao):hu(e)?Fn.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function rx(e){for(const t in e)return!0;return!1}function sf(e){return ee.fun(e)||ee.arr(e)&&ee.obj(e[0])}function cf(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function ax(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var Bh={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},uf={...Bh.default,mass:1,damping:1,easing:v$.linear,clamp:!1},W$=class{constructor(){this.velocity=0,Object.assign(this,uf)}};function z$(e,t,n){n&&(n={...n},Eg(n,t),t={...n,...t}),Eg(e,t),Object.assign(e,t);for(const o in uf)e[o]==null&&(e[o]=uf[o]);let{frequency:r,damping:a}=e;const{mass:i}=e;return ee.und(r)||(r<.01&&(r=.01),a<0&&(a=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*a*i/r),e}function Eg(e,t){if(!ee.und(t.decay))e.duration=void 0;else{const n=!ee.und(t.tension)||!ee.und(t.friction);(n||!ee.und(t.frequency)||!ee.und(t.damping)||!ee.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var $g=[],H$=class{constructor(){this.changed=!1,this.values=$g,this.toValues=null,this.fromValues=$g,this.config=new W$,this.immediate=!1}};function ix(e,{key:t,props:n,defaultProps:r,state:a,actions:i}){return new Promise((o,s)=>{let u,c,l=no(n.cancel??(r==null?void 0:r.cancel),t);if(l)p();else{ee.und(n.pause)||(a.paused=no(n.pause,t));let m=r==null?void 0:r.pause;m!==!0&&(m=a.paused||no(m,t)),u=nn(n.delay||0,t),m?(a.resumeQueue.add(f),i.pause()):(i.resume(),f())}function d(){a.resumeQueue.add(f),a.timeouts.delete(c),c.cancel(),u=c.time-Se.now()}function f(){u>0&&!Fn.skipAnimation?(a.delayed=!0,c=Se.setTimeout(p,u),a.pauseQueue.add(d),a.timeouts.add(c)):p()}function p(){a.delayed&&(a.delayed=!1),a.pauseQueue.delete(d),a.timeouts.delete(c),e<=(a.cancelId||0)&&(l=!0);try{i.start({...n,callId:e,cancel:l},o)}catch(m){s(m)}}})}var Wh=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?za(e.get()):t.every(n=>n.noop)?ox(e.get()):Mn(e.get(),t.every(n=>n.finished)),ox=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Mn=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),za=e=>({value:e,cancelled:!0,finished:!1});function sx(e,t,n,r){const{callId:a,parentId:i,onRest:o}=t,{asyncTo:s,promise:u}=n;return!i&&e===s&&!t.reset?u:n.promise=(async()=>{n.asyncId=a,n.asyncTo=e;const c=gu(t,(v,x)=>x==="onRest"?void 0:v);let l,d;const f=new Promise((v,x)=>(l=v,d=x)),p=v=>{const x=a<=(n.cancelId||0)&&za(r)||a!==n.asyncId&&Mn(r,!1);if(x)throw v.result=x,d(v),v},m=(v,x)=>{const w=new Mg,b=new Rg;return(async()=>{if(Fn.skipAnimation)throw jo(n),b.result=Mn(r,!1),d(b),b;p(w);const T=ee.obj(v)?{...v}:{...x,to:v};T.parentId=a,Kn(c,(C,$)=>{ee.und(T[$])&&(T[$]=C)});const _=await r.start(T);return p(w),n.paused&&await new Promise(C=>{n.resumeQueue.add(C)}),_})()};let g;if(Fn.skipAnimation)return jo(n),Mn(r,!1);try{let v;ee.arr(e)?v=(async x=>{for(const w of x)await m(w)})(e):v=Promise.resolve(e(m,r.stop.bind(r))),await Promise.all([v.then(l),f]),g=Mn(r.get(),!0,!1)}catch(v){if(v instanceof Mg)g=v.result;else if(v instanceof Rg)g=v.result;else throw v}finally{a==n.asyncId&&(n.asyncId=i,n.asyncTo=i?s:void 0,n.promise=i?u:void 0)}return ee.fun(o)&&Se.batchedUpdates(()=>{o(g,r,r.item)}),g})()}function jo(e,t){eo(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Mg=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.")}},Rg=class extends Error{constructor(){super("SkipAnimationSignal")}},lf=e=>e instanceof zh,V$=1,zh=class extends G1{constructor(){super(...arguments),this.id=V$++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=zn(this);return e&&e.getValue()}to(...e){return Fn.to(this,e)}interpolate(...e){return k$(),Fn.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){Eo(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||lu.sort(this),Eo(this,{type:"priority",parent:this,priority:e})}},ha=Symbol.for("SpringPhase"),cx=1,df=2,ff=4,ql=e=>(e[ha]&cx)>0,wr=e=>(e[ha]&df)>0,Ii=e=>(e[ha]&ff)>0,Ag=(e,t)=>t?e[ha]|=df|cx:e[ha]&=~df,jg=(e,t)=>t?e[ha]|=ff:e[ha]&=~ff,q$=class extends zh{constructor(e,t){if(super(),this.animation=new H$,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,!ee.und(e)||!ee.und(t)){const n=ee.obj(e)?{...e}:{...t,from:e};ee.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(wr(this)||this._state.asyncTo)||Ii(this)}get goal(){return tn(this.animation.to)}get velocity(){const e=zn(this);return e instanceof es?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return ql(this)}get isAnimating(){return wr(this)}get isPaused(){return Ii(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:a}=r;const{config:i}=r,o=pu(r.to);!o&&wn(r.to)&&(a=Zt(tn(r.to))),r.values.forEach((c,l)=>{if(c.done)return;const d=c.constructor==Ro?1:o?o[l].lastPosition:a[l];let f=r.immediate,p=d;if(!f){if(p=c.lastPosition,i.tension<=0){c.done=!0;return}let m=c.elapsedTime+=e;const g=r.fromValues[l],v=c.v0!=null?c.v0:c.v0=ee.arr(i.velocity)?i.velocity[l]:i.velocity;let x;const w=i.precision||(g==d?.005:Math.min(1,Math.abs(d-g)*.001));if(ee.und(i.duration))if(i.decay){const b=i.decay===!0?.998:i.decay,T=Math.exp(-(1-b)*m);p=g+v/(1-b)*(1-T),f=Math.abs(c.lastPosition-p)<=w,x=v*T}else{x=c.lastVelocity==null?v:c.lastVelocity;const b=i.restVelocity||w/10,T=i.clamp?0:i.bounce,_=!ee.und(T),C=g==d?c.v0>0:g<d;let $,A=!1;const D=1,j=Math.ceil(e/D);for(let E=0;E<j&&($=Math.abs(x)>b,!(!$&&(f=Math.abs(d-p)<=w,f)));++E){_&&(A=p==d||p>d==C,A&&(x=-x*T,p=d));const F=-i.tension*1e-6*(p-d),M=-i.friction*.001*x,R=(F+M)/i.mass;x=x+R*D,p=p+x*D}}else{let b=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,c.durationProgress>0&&(c.elapsedTime=i.duration*c.durationProgress,m=c.elapsedTime+=e)),b=(i.progress||0)+m/this._memoizedDuration,b=b>1?1:b<0?0:b,c.durationProgress=b),p=g+i.easing(b)*(d-g),x=(p-c.lastPosition)/e,f=b==1}c.lastVelocity=x,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),f=!0)}o&&!o[l].done&&(f=!1),f?c.done=!0:t=!1,c.setValue(p,i.round)&&(n=!0)});const s=zn(this),u=s.getValue();if(t){const c=tn(r.to);(u!==c||n)&&!i.decay?(s.setValue(c),this._onChange(c)):n&&i.decay&&this._onChange(u),this._stop()}else n&&this._onChange(u)}set(e){return Se.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(wr(this)){const{to:e,config:t}=this.animation;Se.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 n;return ee.und(e)?(n=this.queue||[],this.queue=[]):n=[ee.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>Wh(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),jo(this._state,e&&this._lastCallId),Se.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:n,from:r}=e;n=ee.obj(n)?n[t]:n,(n==null||sf(n))&&(n=void 0),r=ee.obj(r)?r[t]:r,r==null&&(r=void 0);const a={to:n,from:r};return ql(this)||(e.reverse&&([n,r]=[r,n]),r=tn(r),ee.und(r)?zn(this)||this._set(n):this._set(r)),a}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,gu(e,(o,s)=>/^on/.test(s)?tx(o,n):o)),Dg(this,e,"onProps"),Fi(this,"onProps",e,this);const a=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 i=this._state;return ix(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{Ii(this)||(jg(this,!0),Zi(i.pauseQueue),Fi(this,"onPause",Mn(this,Ni(this,this.animation.to)),this))},resume:()=>{Ii(this)&&(jg(this,!1),wr(this)&&this._resume(),Zi(i.resumeQueue),Fi(this,"onResume",Mn(this,Ni(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const s=ux(e);if(s)return this._update(s,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(za(this));const r=!ee.und(e.to),a=!ee.und(e.from);if(r||a)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(za(this));const{key:i,defaultProps:o,animation:s}=this,{to:u,from:c}=s;let{to:l=u,from:d=c}=e;a&&!r&&(!t.default||ee.und(l))&&(l=d),t.reverse&&([l,d]=[d,l]);const f=!rr(d,c);f&&(s.from=d),d=tn(d);const p=!rr(l,u);p&&this._focus(l);const m=sf(t.to),{config:g}=s,{decay:v,velocity:x}=g;(r||a)&&(g.velocity=0),t.config&&!m&&z$(g,nn(t.config,i),t.config!==o.config?nn(o.config,i):void 0);let w=zn(this);if(!w||ee.und(l))return n(Mn(this,!0));const b=ee.und(t.reset)?a&&!t.default:!ee.und(d)&&no(t.reset,i),T=b?d:this.get(),_=Ao(l),C=ee.num(_)||ee.arr(_)||hu(_),$=!m&&(!C||no(o.immediate||t.immediate,i));if(p){const E=of(l);if(E!==w.constructor)if($)w=this._set(_);else throw Error(`Cannot animate between ${w.constructor.name} and ${E.name}, as the "to" prop suggests`)}const A=w.constructor;let D=wn(l),j=!1;if(!D){const E=b||!ql(this)&&f;(p||E)&&(j=rr(Ao(T),_),D=!j),(!rr(s.immediate,$)&&!$||!rr(g.decay,v)||!rr(g.velocity,x))&&(D=!0)}if(j&&wr(this)&&(s.changed&&!b?D=!0:D||this._stop(u)),!m&&((D||wn(u))&&(s.values=w.getPayload(),s.toValues=wn(l)?null:A==Ro?[1]:Zt(_)),s.immediate!=$&&(s.immediate=$,!$&&!b&&this._set(u)),D)){const{onRest:E}=s;Ce(G$,M=>Dg(this,t,M));const F=Mn(this,Ni(this,u));Zi(this._pendingCalls,F),this._pendingCalls.add(n),s.changed&&Se.batchedUpdates(()=>{var M;s.changed=!b,E==null||E(F,this),b?nn(o.onRest,F):(M=s.onStart)==null||M.call(s,F,this)})}b&&this._set(T),m?n(sx(t.to,t,this._state,this)):D?this._start():wr(this)&&!p?this._pendingCalls.add(n):n(ox(T))}_focus(e){const t=this.animation;e!==t.to&&(Tg(this)&&this._detach(),t.to=e,Tg(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;wn(t)&&(pi(t,this),lf(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;wn(e)&&$o(e,this)}_set(e,t=!0){const n=tn(e);if(!ee.und(n)){const r=zn(this);if(!r||!rr(n,r.getValue())){const a=of(n);!r||r.constructor!=a?Lh(this,a.create(n)):r.setValue(n),r&&Se.batchedUpdates(()=>{this._onChange(n,t)})}}return zn(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Fi(this,"onStart",Mn(this,Ni(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),nn(this.animation.onChange,e,this)),nn(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;zn(this).reset(tn(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),wr(this)||(Ag(this,!0),Ii(this)||this._resume())}_resume(){Fn.skipAnimation?this.finish():lu.start(this)}_stop(e,t){if(wr(this)){Ag(this,!1);const n=this.animation;Ce(n.values,a=>{a.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Eo(this,{type:"idle",parent:this});const r=t?za(this.get()):Mn(this.get(),Ni(this,e??n.to));Zi(this._pendingCalls,r),n.changed&&(n.changed=!1,Fi(this,"onRest",r,this))}}};function Ni(e,t){const n=Ao(t),r=Ao(e.get());return rr(r,n)}function ux(e,t=e.loop,n=e.to){const r=nn(t);if(r){const a=r!==!0&&Uh(r),i=(a||e).reverse,o=!a||a.reset;return Po({...e,loop:t,default:!1,pause:void 0,to:!i||sf(n)?n:void 0,from:o?e.from:void 0,reset:o,...a})}}function Po(e){const{to:t,from:n}=e=Uh(e),r=new Set;return ee.obj(t)&&Pg(t,r),ee.obj(n)&&Pg(n,r),e.keys=r.size?Array.from(r):null,e}function Y$(e){const t=Po(e);return ee.und(t.default)&&(t.default=gu(t)),t}function Pg(e,t){Kn(e,(n,r)=>n!=null&&t.add(r))}var G$=["onStart","onRest","onChange","onPause","onResume"];function Dg(e,t,n){e.animation[n]=t[n]!==nx(t,n)?tx(t[n],e.key):void 0}function Fi(e,t,...n){var r,a,i,o;(a=(r=e.animation)[t])==null||a.call(r,...n),(o=(i=e.defaultProps)[t])==null||o.call(i,...n)}var Z$=["onStart","onChange","onRest"],K$=1,lx=class{constructor(e,t){this.id=K$++,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,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];ee.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Po(e)),this}start(e){let{queue:t}=this;return e?t=Zt(e).map(Po):this.queue=[],this._flush?this._flush(this,t):(mx(this,t),hf(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Ce(Zt(t),r=>n[r].stop(!!e))}else jo(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(ee.und(e))this.start({pause:!0});else{const t=this.springs;Ce(Zt(e),n=>t[n].pause())}return this}resume(e){if(ee.und(e))this.start({pause:!1});else{const t=this.springs;Ce(Zt(e),n=>t[n].resume())}return this}each(e){Kn(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,a=this._changed.size>0;(r&&!this._started||a&&!this._started)&&(this._started=!0,eo(e,([s,u])=>{u.value=this.get(),s(u,this,this._item)}));const i=!r&&this._started,o=a||i&&n.size?this.get():null;a&&t.size&&eo(t,([s,u])=>{u.value=o,s(u,this,this._item)}),i&&(this._started=!1,eo(n,([s,u])=>{u.value=o,s(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;Se.onFrame(this._onFrame)}};function hf(e,t){return Promise.all(t.map(n=>dx(e,n))).then(n=>Wh(e,n))}async function dx(e,t,n){const{keys:r,to:a,from:i,loop:o,onRest:s,onResolve:u}=t,c=ee.obj(t.default)&&t.default;o&&(t.loop=!1),a===!1&&(t.to=null),i===!1&&(t.from=null);const l=ee.arr(a)||ee.fun(a)?a:void 0;l?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Ce(Z$,g=>{const v=t[g];if(ee.fun(v)){const x=e._events[g];t[g]=({finished:w,cancelled:b})=>{const T=x.get(v);T?(w||(T.finished=!1),b&&(T.cancelled=!0)):x.set(v,{value:null,finished:w||!1,cancelled:b||!1})},c&&(c[g]=t[g])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Zi(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map(g=>e.springs[g].start(t)),p=t.cancel===!0||nx(t,"cancel")===!0;(l||p&&d.asyncId)&&f.push(ix(++e._lastAsyncId,{props:t,state:d,actions:{pause:nf,resume:nf,start(g,v){p?(jo(d,e._lastAsyncId),v(za(e))):(g.onRest=s,v(sx(l,g,d,e)))}}})),d.paused&&await new Promise(g=>{d.resumeQueue.add(g)});const m=Wh(e,await Promise.all(f));if(o&&m.finished&&!(n&&m.noop)){const g=ux(t,o,a);if(g)return mx(e,[g]),dx(e,g,!0)}return u&&Se.batchedUpdates(()=>u(m,e,e.item)),m}function pf(e,t){const n={...e.springs};return t&&Ce(Zt(t),r=>{ee.und(r.keys)&&(r=Po(r)),ee.obj(r.to)||(r={...r,to:void 0}),px(n,r,a=>hx(a))}),fx(e,n),n}function fx(e,t){Kn(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,pi(n,e))})}function hx(e,t){const n=new q$;return n.key=e,t&&pi(n,t),n}function px(e,t,n){t.keys&&Ce(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function mx(e,t){Ce(t,n=>{px(e.springs,n,r=>hx(r,e))})}var ts=({children:e,...t})=>{const n=h.useContext(pc),r=t.pause||!!n.pause,a=t.immediate||!!n.immediate;t=$$(()=>({pause:r,immediate:a}),[r,a]);const{Provider:i}=pc;return oe.createElement(i,{value:t},e)},pc=X$(ts,{});ts.Provider=pc.Provider;ts.Consumer=pc.Consumer;function X$(e,t){return Object.assign(e,oe.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var gx=()=>{const e=[],t=function(r){O$();const a=[];return Ce(e,(i,o)=>{if(ee.und(r))a.push(i.start());else{const s=n(r,i,o);s&&a.push(i.start(s))}}),a};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const a=e.indexOf(r);~a&&e.splice(a,1)},t.pause=function(){return Ce(e,r=>r.pause(...arguments)),this},t.resume=function(){return Ce(e,r=>r.resume(...arguments)),this},t.set=function(r){Ce(e,(a,i)=>{const o=ee.fun(r)?r(i,a):r;o&&a.set(o)})},t.start=function(r){const a=[];return Ce(e,(i,o)=>{if(ee.und(r))a.push(i.start());else{const s=this._getProps(r,i,o);s&&a.push(i.start(s))}}),a},t.stop=function(){return Ce(e,r=>r.stop(...arguments)),this},t.update=function(r){return Ce(e,(a,i)=>a.update(this._getProps(r,a,i))),this};const n=function(r,a,i){return ee.fun(r)?r(i,a):r};return t._getProps=n,t};function J$(e,t,n){const r=ee.fun(t)&&t;r&&!n&&(n=[]);const a=h.useMemo(()=>r||arguments.length==3?gx():void 0,[]),i=h.useRef(0),o=Nh(),s=h.useMemo(()=>({ctrls:[],queue:[],flush(x,w){const b=pf(x,w);return i.current>0&&!s.queue.length&&!Object.keys(b).some(_=>!x.springs[_])?hf(x,w):new Promise(_=>{fx(x,b),s.queue.push(()=>{_(hf(x,w))}),o()})}}),[]),u=h.useRef([...s.ctrls]),c=[],l=af(e)||0;h.useMemo(()=>{Ce(u.current.slice(e,l),x=>{cf(x,a),x.stop(!0)}),u.current.length=e,d(l,e)},[e]),h.useMemo(()=>{d(0,Math.min(l,e))},n);function d(x,w){for(let b=x;b<w;b++){const T=u.current[b]||(u.current[b]=new lx(null,s.flush)),_=r?r(b,T):t[b];_&&(c[b]=Y$(_))}}const f=u.current.map((x,w)=>pf(x,c[w])),p=h.useContext(ts),m=af(p),g=p!==m&&rx(p);Kr(()=>{i.current++,s.ctrls=u.current;const{queue:x}=s;x.length&&(s.queue=[],Ce(x,w=>w())),Ce(u.current,(w,b)=>{a==null||a.add(w),g&&w.start({default:p});const T=c[b];T&&(ax(w,T.ref),w.ref?w.queue.push(T):w.start(T))})}),Fh(()=>()=>{Ce(s.ctrls,x=>x.stop(!0))});const v=f.map(x=>({...x}));return a?[v,a]:v}function vr(e,t){const n=ee.fun(e),[[r],a]=J$(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,a]:r}function xa(e,t,n){const r=ee.fun(t)&&t,{reset:a,sort:i,trail:o=0,expires:s=!0,exitBeforeEnter:u=!1,onDestroyed:c,ref:l,config:d}=r?r():t,f=h.useMemo(()=>r||arguments.length==3?gx():void 0,[]),p=Zt(e),m=[],g=h.useRef(null),v=a?null:g.current;Kr(()=>{g.current=m}),Fh(()=>(Ce(m,R=>{f==null||f.add(R.ctrl),R.ctrl.ref=f}),()=>{Ce(g.current,R=>{R.expired&&clearTimeout(R.expirationId),cf(R.ctrl,f),R.ctrl.stop(!0)})}));const x=e8(p,r?r():t,v),w=a&&g.current||[];Kr(()=>Ce(w,({ctrl:R,item:I,key:U})=>{cf(R,f),nn(c,I,U)}));const b=[];if(v&&Ce(v,(R,I)=>{R.expired?(clearTimeout(R.expirationId),w.push(R)):(I=b[I]=x.indexOf(R.key),~I&&(m[I]=R))}),Ce(p,(R,I)=>{m[I]||(m[I]={key:x[I],item:R,phase:"mount",ctrl:new lx},m[I].ctrl.item=R)}),b.length){let R=-1;const{leave:I}=r?r():t;Ce(b,(U,N)=>{const q=v[N];~U?(R=m.indexOf(q),m[R]={...q,item:p[U]}):I&&m.splice(++R,0,q)})}ee.fun(i)&&m.sort((R,I)=>i(R.item,I.item));let T=-o;const _=Nh(),C=gu(t),$=new Map,A=h.useRef(new Map),D=h.useRef(!1);Ce(m,(R,I)=>{const U=R.key,N=R.phase,q=r?r():t;let z,P;const W=nn(q.delay||0,U);if(N=="mount")z=q.enter,P="enter";else{const Q=x.indexOf(U)<0;if(N!="leave")if(Q)z=q.leave,P="leave";else if(z=q.update)P="update";else return;else if(!Q)z=q.enter,P="enter";else return}if(z=nn(z,R.item,I),z=ee.obj(z)?Uh(z):{to:z},!z.config){const Q=d||C.config;z.config=nn(Q,R.item,I,P)}T+=o;const Z={...C,delay:W+T,ref:l,immediate:q.immediate,reset:!1,...z};if(P=="enter"&&ee.und(Z.from)){const Q=r?r():t,G=ee.und(Q.initial)||v?Q.from:Q.initial;Z.from=nn(G,R.item,I)}const{onResolve:ne}=Z;Z.onResolve=Q=>{nn(ne,Q);const G=g.current,J=G.find(re=>re.key===U);if(J&&!(Q.cancelled&&J.phase!="update")&&J.ctrl.idle){const re=G.every(L=>L.ctrl.idle);if(J.phase=="leave"){const L=nn(s,J.item);if(L!==!1){const V=L===!0?0:L;if(J.expired=!0,!re&&V>0){V<=2147483647&&(J.expirationId=setTimeout(_,V));return}}}re&&G.some(L=>L.expired)&&(A.current.delete(J),u&&(D.current=!0),_())}};const Y=pf(R.ctrl,Z);P==="leave"&&u?A.current.set(R,{phase:P,springs:Y,payload:Z}):$.set(R,{phase:P,springs:Y,payload:Z})});const j=h.useContext(ts),E=af(j),F=j!==E&&rx(j);Kr(()=>{F&&Ce(m,R=>{R.ctrl.start({default:j})})},[j]),Ce($,(R,I)=>{if(A.current.size){const U=m.findIndex(N=>N.key===I.key);m.splice(U,1)}}),Kr(()=>{Ce(A.current.size?A.current:$,({phase:R,payload:I},U)=>{const{ctrl:N}=U;U.phase=R,f==null||f.add(N),F&&R=="enter"&&N.start({default:j}),I&&(ax(N,I.ref),(N.ref||f)&&!D.current?N.update(I):(N.start(I),D.current&&(D.current=!1)))})},a?void 0:n);const M=R=>oe.createElement(oe.Fragment,null,m.map((I,U)=>{const{springs:N}=$.get(I)||I.ctrl,q=R({...N},I.item,I,U);return q&&q.type?oe.createElement(q.type,{...q.props,key:ee.str(I.key)||ee.num(I.key)?I.key:I.ctrl.id,ref:q.ref}):q}));return f?[M,f]:M}var Q$=1;function e8(e,{key:t,keys:n=t},r){if(n===null){const a=new Set;return e.map(i=>{const o=r&&r.find(s=>s.item===i&&s.phase!=="leave"&&!a.has(s));return o?(a.add(o),o.key):Q$++})}return ee.und(n)?e:ee.fun(n)?e.map(n):Zt(n)}var vx=class extends zh{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=So(...t);const n=this._get(),r=of(n);Lh(this,r.create(n))}advance(e){const t=this._get(),n=this.get();rr(t,n)||(zn(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Ig(this._active)&&Yl(this)}_get(){const e=ee.arr(this.source)?this.source.map(tn):Zt(tn(this.source));return this.calc(...e)}_start(){this.idle&&!Ig(this._active)&&(this.idle=!1,Ce(pu(this),e=>{e.done=!1}),Fn.skipAnimation?(Se.batchedUpdates(()=>this.advance()),Yl(this)):lu.start(this))}_attach(){let e=1;Ce(Zt(this.source),t=>{wn(t)&&pi(t,this),lf(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Ce(Zt(this.source),e=>{wn(e)&&$o(e,this)}),this._active.clear(),Yl(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=Zt(this.source).reduce((t,n)=>Math.max(t,(lf(n)?n.priority:0)+1),0))}};function t8(e){return e.idle!==!1}function Ig(e){return!e.size||Array.from(e).every(t8)}function Yl(e){e.idle||(e.idle=!0,Ce(pu(e),t=>{t.done=!0}),Eo(e,{type:"idle",parent:e}))}var Fr=(e,...t)=>new vx(e,t);Fn.assign({createStringInterpolator:X1,to:(e,t)=>new vx(e,t)});var yx=/^--/;function n8(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!yx.test(e)&&!(ro.hasOwnProperty(e)&&ro[e])?t+"px":(""+t).trim()}var Ng={};function r8(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:a,scrollTop:i,scrollLeft:o,viewBox:s,...u}=t,c=Object.values(u),l=Object.keys(u).map(d=>n||e.hasAttribute(d)?d:Ng[d]||(Ng[d]=d.replace(/([A-Z])/g,f=>"-"+f.toLowerCase())));a!==void 0&&(e.textContent=a);for(const d in r)if(r.hasOwnProperty(d)){const f=n8(d,r[d]);yx.test(d)?e.style.setProperty(d,f):e.style[d]=f}l.forEach((d,f)=>{e.setAttribute(d,c[f])}),i!==void 0&&(e.scrollTop=i),o!==void 0&&(e.scrollLeft=o),s!==void 0&&e.setAttribute("viewBox",s)}var ro={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},a8=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),i8=["Webkit","Ms","Moz","O"];ro=Object.keys(ro).reduce((e,t)=>(i8.forEach(n=>e[a8(n,t)]=e[t]),e),ro);var o8=/^(matrix|translate|scale|rotate|skew)/,s8=/^(translate)/,c8=/^(rotate|skew)/,Gl=(e,t)=>ee.num(e)&&e!==0?e+t:e,Ns=(e,t)=>ee.arr(e)?e.every(n=>Ns(n,t)):ee.num(e)?e===t:parseFloat(e)===t,u8=class extends mu{constructor({x:e,y:t,z:n,...r}){const a=[],i=[];(e||t||n)&&(a.push([e||0,t||0,n||0]),i.push(o=>[`translate3d(${o.map(s=>Gl(s,"px")).join(",")})`,Ns(o,0)])),Kn(r,(o,s)=>{if(s==="transform")a.push([o||""]),i.push(u=>[u,u===""]);else if(o8.test(s)){if(delete r[s],ee.und(o))return;const u=s8.test(s)?"px":c8.test(s)?"deg":"";a.push(Zt(o)),i.push(s==="rotate3d"?([c,l,d,f])=>[`rotate3d(${c},${l},${d},${Gl(f,u)})`,Ns(f,0)]:c=>[`${s}(${c.map(l=>Gl(l,u)).join(",")})`,Ns(c,s.startsWith("scale")?1:0)])}}),a.length&&(r.transform=new l8(a,i)),super(r)}},l8=class extends G1{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 Ce(this.inputs,(n,r)=>{const a=tn(n[0]),[i,o]=this.transforms[r](ee.arr(a)?a:n.map(tn));e+=" "+i,t=t&&o}),t?"none":e}observerAdded(e){e==1&&Ce(this.inputs,t=>Ce(t,n=>wn(n)&&pi(n,this)))}observerRemoved(e){e==0&&Ce(this.inputs,t=>Ce(t,n=>wn(n)&&$o(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Eo(this,e)}},d8=["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"];Fn.assign({batchedUpdates:Er.unstable_batchedUpdates,createStringInterpolator:X1,colors:a$});var f8=N$(d8,{applyAnimatedValues:r8,createAnimatedStyle:e=>new u8(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Qe=f8.animated;function pa(){return pa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pa.apply(this,arguments)}var h8={pointerEvents:"none",position:"absolute",zIndex:10,top:0,left:0},Fg=function(e,t){return"translate("+e+"px, "+t+"px)"},bx=h.memo(function(e){var t,n=e.position,r=e.anchor,a=e.children,i=lt(),o=un(),s=o.animate,u=o.config,c=u_(),l=c[0],d=c[1],f=h.useRef(!1),p=void 0,m=!1,g=d.width>0&&d.height>0,v=Math.round(n[0]),x=Math.round(n[1]);g&&(r==="top"?(v-=d.width/2,x-=d.height+14):r==="right"?(v+=14,x-=d.height/2):r==="bottom"?(v-=d.width/2,x+=14):r==="left"?(v-=d.width+14,x-=d.height/2):r==="center"&&(v-=d.width/2,x-=d.height/2),p={transform:Fg(v,x)},f.current||(m=!0),f.current=[v,x]);var w=vr({to:p,config:u,immediate:!s||m}),b=pa({},h8,i.tooltip.wrapper,{transform:(t=w.transform)!=null?t:Fg(v,x),opacity:w.transform?1:0});return y.jsx(Qe.div,{ref:l,style:b,children:a})});bx.displayName="TooltipWrapper";var p8=h.memo(function(e){var t=e.size,n=t===void 0?12:t,r=e.color,a=e.style;return y.jsx("span",{style:pa({display:"block",width:n,height:n,background:r},a===void 0?{}:a)})}),xx=h.memo(function(e){var t,n=e.id,r=e.value,a=e.format,i=e.enableChip,o=i!==void 0&&i,s=e.color,u=e.renderContent,c=lt(),l=pl(a);if(typeof u=="function")t=u();else{var d=r;l!==void 0&&d!==void 0&&(d=l(d)),t=y.jsxs("div",{style:c.tooltip.basic,children:[o&&y.jsx(p8,{color:s,style:c.tooltip.chip}),d!==void 0?y.jsxs("span",{children:[n,": ",y.jsx("strong",{children:""+d})]}):n]})}return y.jsx("div",{style:c.tooltip.container,children:t})}),m8={width:"100%",borderCollapse:"collapse"},g8=h.memo(function(e){var t,n=e.title,r=e.rows,a=r===void 0?[]:r,i=e.renderContent,o=lt();return a.length?(t=typeof i=="function"?i():y.jsxs("div",{children:[n&&n,y.jsx("table",{style:pa({},m8,o.tooltip.table),children:y.jsx("tbody",{children:a.map(function(s,u){return y.jsx("tr",{children:s.map(function(c,l){return y.jsx("td",{style:o.tooltip.tableCell,children:c},l)})},u)})})})]}),y.jsx("div",{style:o.tooltip.container,children:t})):null});g8.displayName="TableTooltip";var mf=h.memo(function(e){var t=e.x0,n=e.x1,r=e.y0,a=e.y1,i=lt(),o=un(),s=o.animate,u=o.config,c=h.useMemo(function(){return pa({},i.crosshair.line,{pointerEvents:"none"})},[i.crosshair.line]),l=vr({x1:t,x2:n,y1:r,y2:a,config:u,immediate:!s});return y.jsx(Qe.line,pa({},l,{fill:"none",style:c}))});mf.displayName="CrosshairLine";var v8=h.memo(function(e){var t,n,r=e.width,a=e.height,i=e.type,o=e.x,s=e.y;return i==="cross"?(t={x0:o,x1:o,y0:0,y1:a},n={x0:0,x1:r,y0:s,y1:s}):i==="top-left"?(t={x0:o,x1:o,y0:0,y1:s},n={x0:0,x1:o,y0:s,y1:s}):i==="top"?t={x0:o,x1:o,y0:0,y1:s}:i==="top-right"?(t={x0:o,x1:o,y0:0,y1:s},n={x0:o,x1:r,y0:s,y1:s}):i==="right"?n={x0:o,x1:r,y0:s,y1:s}:i==="bottom-right"?(t={x0:o,x1:o,y0:s,y1:a},n={x0:o,x1:r,y0:s,y1:s}):i==="bottom"?t={x0:o,x1:o,y0:s,y1:a}:i==="bottom-left"?(t={x0:o,x1:o,y0:s,y1:a},n={x0:0,x1:o,y0:s,y1:s}):i==="left"?n={x0:0,x1:o,y0:s,y1:s}:i==="x"?t={x0:o,x1:o,y0:0,y1:a}:i==="y"&&(n={x0:0,x1:r,y0:s,y1:s}),y.jsxs(y.Fragment,{children:[t&&y.jsx(mf,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&y.jsx(mf,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});v8.displayName="Crosshair";var _x=h.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),gf={isVisible:!1,position:[null,null],content:null,anchor:null},wx=h.createContext(gf),y8=function(e){var t=h.useState(gf),n=t[0],r=t[1],a=h.useCallback(function(s,u,c){var l=u[0],d=u[1];c===void 0&&(c="top"),r({isVisible:!0,position:[l,d],anchor:c,content:s})},[r]),i=h.useCallback(function(s,u,c){c===void 0&&(c="top");var l=e.current.getBoundingClientRect(),d=e.current.offsetWidth,f=d===l.width?1:d/l.width,p="touches"in u?u.touches[0]:u,m=p.clientX,g=p.clientY,v=(m-l.left)*f,x=(g-l.top)*f;c!=="left"&&c!=="right"||(c=v<l.width/2?"right":"left"),r({isVisible:!0,position:[v,x],anchor:c,content:s})},[e,r]),o=h.useCallback(function(){r(gf)},[r]);return{actions:h.useMemo(function(){return{showTooltipAt:a,showTooltipFromEvent:i,hideTooltip:o}},[a,i,o]),state:n}},Hh=function(){var e=h.useContext(_x);if(e===void 0)throw new Error("useTooltip must be used within a TooltipProvider");return e},b8=function(){var e=h.useContext(wx);if(e===void 0)throw new Error("useTooltipState must be used within a TooltipProvider");return e},x8=function(e){return e.isVisible},_8=function(){var e=b8();return x8(e)?y.jsx(bx,{position:e.position,anchor:e.anchor,children:e.content}):null},w8=function(e){var t=e.container,n=e.children,r=y8(t),a=r.actions,i=r.state;return y.jsx(_x.Provider,{value:a,children:y.jsx(wx.Provider,{value:i,children:n})})};function T8(){this.__data__=[],this.size=0}var C8=T8;function k8(e,t){return e===t||e!==e&&t!==t}var ns=k8,S8=ns;function O8(e,t){for(var n=e.length;n--;)if(S8(e[n][0],t))return n;return-1}var vu=O8,E8=vu,$8=Array.prototype,M8=$8.splice;function R8(e){var t=this.__data__,n=E8(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():M8.call(t,n,1),--this.size,!0}var A8=R8,j8=vu;function P8(e){var t=this.__data__,n=j8(t,e);return n<0?void 0:t[n][1]}var D8=P8,I8=vu;function N8(e){return I8(this.__data__,e)>-1}var F8=N8,L8=vu;function U8(e,t){var n=this.__data__,r=L8(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var B8=U8,W8=C8,z8=A8,H8=D8,V8=F8,q8=B8;function mi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}mi.prototype.clear=W8;mi.prototype.delete=z8;mi.prototype.get=H8;mi.prototype.has=V8;mi.prototype.set=q8;var yu=mi,Y8=yu;function G8(){this.__data__=new Y8,this.size=0}var Z8=G8;function K8(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var X8=K8;function J8(e){return this.__data__.get(e)}var Q8=J8;function eM(e){return this.__data__.has(e)}var tM=eM,nM=typeof cs=="object"&&cs&&cs.Object===Object&&cs,Tx=nM,rM=Tx,aM=typeof self=="object"&&self&&self.Object===Object&&self,iM=rM||aM||Function("return this")(),Qn=iM,oM=Qn,sM=oM.Symbol,gi=sM,Lg=gi,Cx=Object.prototype,cM=Cx.hasOwnProperty,uM=Cx.toString,Li=Lg?Lg.toStringTag:void 0;function lM(e){var t=cM.call(e,Li),n=e[Li];try{e[Li]=void 0;var r=!0}catch{}var a=uM.call(e);return r&&(t?e[Li]=n:delete e[Li]),a}var dM=lM,fM=Object.prototype,hM=fM.toString;function pM(e){return hM.call(e)}var mM=pM,Ug=gi,gM=dM,vM=mM,yM="[object Null]",bM="[object Undefined]",Bg=Ug?Ug.toStringTag:void 0;function xM(e){return e==null?e===void 0?bM:yM:Bg&&Bg in Object(e)?gM(e):vM(e)}var zr=xM;function _M(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var er=_M,wM=zr,TM=er,CM="[object AsyncFunction]",kM="[object Function]",SM="[object GeneratorFunction]",OM="[object Proxy]";function EM(e){if(!TM(e))return!1;var t=wM(e);return t==kM||t==SM||t==CM||t==OM}var bu=EM;const kx=Tt(bu);var $M=Qn,MM=$M["__core-js_shared__"],RM=MM,Zl=RM,Wg=function(){var e=/[^.]+$/.exec(Zl&&Zl.keys&&Zl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function AM(e){return!!Wg&&Wg in e}var jM=AM,PM=Function.prototype,DM=PM.toString;function IM(e){if(e!=null){try{return DM.call(e)}catch{}try{return e+""}catch{}}return""}var Sx=IM,NM=bu,FM=jM,LM=er,UM=Sx,BM=/[\\^$.*+?()[\]{}|]/g,WM=/^\[object .+?Constructor\]$/,zM=Function.prototype,HM=Object.prototype,VM=zM.toString,qM=HM.hasOwnProperty,YM=RegExp("^"+VM.call(qM).replace(BM,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function GM(e){if(!LM(e)||FM(e))return!1;var t=NM(e)?YM:WM;return t.test(UM(e))}var ZM=GM;function KM(e,t){return e==null?void 0:e[t]}var XM=KM,JM=ZM,QM=XM;function e7(e,t){var n=QM(e,t);return JM(n)?n:void 0}var _a=e7,t7=_a,n7=Qn,r7=t7(n7,"Map"),Vh=r7,a7=_a,i7=a7(Object,"create"),xu=i7,zg=xu;function o7(){this.__data__=zg?zg(null):{},this.size=0}var s7=o7;function c7(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var u7=c7,l7=xu,d7="__lodash_hash_undefined__",f7=Object.prototype,h7=f7.hasOwnProperty;function p7(e){var t=this.__data__;if(l7){var n=t[e];return n===d7?void 0:n}return h7.call(t,e)?t[e]:void 0}var m7=p7,g7=xu,v7=Object.prototype,y7=v7.hasOwnProperty;function b7(e){var t=this.__data__;return g7?t[e]!==void 0:y7.call(t,e)}var x7=b7,_7=xu,w7="__lodash_hash_undefined__";function T7(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=_7&&t===void 0?w7:t,this}var C7=T7,k7=s7,S7=u7,O7=m7,E7=x7,$7=C7;function vi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}vi.prototype.clear=k7;vi.prototype.delete=S7;vi.prototype.get=O7;vi.prototype.has=E7;vi.prototype.set=$7;var M7=vi,Hg=M7,R7=yu,A7=Vh;function j7(){this.size=0,this.__data__={hash:new Hg,map:new(A7||R7),string:new Hg}}var P7=j7;function D7(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var I7=D7,N7=I7;function F7(e,t){var n=e.__data__;return N7(t)?n[typeof t=="string"?"string":"hash"]:n.map}var _u=F7,L7=_u;function U7(e){var t=L7(this,e).delete(e);return this.size-=t?1:0,t}var B7=U7,W7=_u;function z7(e){return W7(this,e).get(e)}var H7=z7,V7=_u;function q7(e){return V7(this,e).has(e)}var Y7=q7,G7=_u;function Z7(e,t){var n=G7(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var K7=Z7,X7=P7,J7=B7,Q7=H7,e9=Y7,t9=K7;function yi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}yi.prototype.clear=X7;yi.prototype.delete=J7;yi.prototype.get=Q7;yi.prototype.has=e9;yi.prototype.set=t9;var qh=yi,n9=yu,r9=Vh,a9=qh,i9=200;function o9(e,t){var n=this.__data__;if(n instanceof n9){var r=n.__data__;if(!r9||r.length<i9-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new a9(r)}return n.set(e,t),this.size=n.size,this}var s9=o9,c9=yu,u9=Z8,l9=X8,d9=Q8,f9=tM,h9=s9;function bi(e){var t=this.__data__=new c9(e);this.size=t.size}bi.prototype.clear=u9;bi.prototype.delete=l9;bi.prototype.get=d9;bi.prototype.has=f9;bi.prototype.set=h9;var wu=bi,p9=_a,m9=function(){try{var e=p9(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Ox=m9,Vg=Ox;function g9(e,t,n){t=="__proto__"&&Vg?Vg(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Yh=g9,v9=Yh,y9=ns;function b9(e,t,n){(n!==void 0&&!y9(e[t],n)||n===void 0&&!(t in e))&&v9(e,t,n)}var Ex=b9;function x9(e){return function(t,n,r){for(var a=-1,i=Object(t),o=r(t),s=o.length;s--;){var u=o[e?s:++a];if(n(i[u],u,i)===!1)break}return t}}var _9=x9,w9=_9,T9=w9(),$x=T9,mc={exports:{}};mc.exports;(function(e,t){var n=Qn,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,o=i?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;function u(c,l){if(l)return c.slice();var d=c.length,f=s?s(d):new c.constructor(d);return c.copy(f),f}e.exports=u})(mc,mc.exports);var Mx=mc.exports,C9=Qn,k9=C9.Uint8Array,Rx=k9,qg=Rx;function S9(e){var t=new e.constructor(e.byteLength);return new qg(t).set(new qg(e)),t}var Gh=S9,O9=Gh;function E9(e,t){var n=t?O9(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Ax=E9;function $9(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var jx=$9,M9=er,Yg=Object.create,R9=function(){function e(){}return function(t){if(!M9(t))return{};if(Yg)return Yg(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),A9=R9;function j9(e,t){return function(n){return e(t(n))}}var Px=j9,P9=Px,D9=P9(Object.getPrototypeOf,Object),Zh=D9,I9=Object.prototype;function N9(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||I9;return e===n}var Kh=N9,F9=A9,L9=Zh,U9=Kh;function B9(e){return typeof e.constructor=="function"&&!U9(e)?F9(L9(e)):{}}var Dx=B9;function W9(e){return e!=null&&typeof e=="object"}var Un=W9,z9=zr,H9=Un,V9="[object Arguments]";function q9(e){return H9(e)&&z9(e)==V9}var Y9=q9,Gg=Y9,G9=Un,Ix=Object.prototype,Z9=Ix.hasOwnProperty,K9=Ix.propertyIsEnumerable,X9=Gg(function(){return arguments}())?Gg:function(e){return G9(e)&&Z9.call(e,"callee")&&!K9.call(e,"callee")},Tu=X9,J9=Array.isArray,cn=J9,Q9=9007199254740991;function eR(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Q9}var Xh=eR,tR=bu,nR=Xh;function rR(e){return e!=null&&nR(e.length)&&!tR(e)}var xi=rR,aR=xi,iR=Un;function oR(e){return iR(e)&&aR(e)}var Nx=oR,gc={exports:{}};function sR(){return!1}var cR=sR;gc.exports;(function(e,t){var n=Qn,r=cR,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,s=o?n.Buffer:void 0,u=s?s.isBuffer:void 0,c=u||r;e.exports=c})(gc,gc.exports);var Cu=gc.exports,uR=zr,lR=Zh,dR=Un,fR="[object Object]",hR=Function.prototype,pR=Object.prototype,Fx=hR.toString,mR=pR.hasOwnProperty,gR=Fx.call(Object);function vR(e){if(!dR(e)||uR(e)!=fR)return!1;var t=lR(e);if(t===null)return!0;var n=mR.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Fx.call(n)==gR}var Jh=vR;const Qh=Tt(Jh);var yR=zr,bR=Xh,xR=Un,_R="[object Arguments]",wR="[object Array]",TR="[object Boolean]",CR="[object Date]",kR="[object Error]",SR="[object Function]",OR="[object Map]",ER="[object Number]",$R="[object Object]",MR="[object RegExp]",RR="[object Set]",AR="[object String]",jR="[object WeakMap]",PR="[object ArrayBuffer]",DR="[object DataView]",IR="[object Float32Array]",NR="[object Float64Array]",FR="[object Int8Array]",LR="[object Int16Array]",UR="[object Int32Array]",BR="[object Uint8Array]",WR="[object Uint8ClampedArray]",zR="[object Uint16Array]",HR="[object Uint32Array]",ct={};ct[IR]=ct[NR]=ct[FR]=ct[LR]=ct[UR]=ct[BR]=ct[WR]=ct[zR]=ct[HR]=!0;ct[_R]=ct[wR]=ct[PR]=ct[TR]=ct[DR]=ct[CR]=ct[kR]=ct[SR]=ct[OR]=ct[ER]=ct[$R]=ct[MR]=ct[RR]=ct[AR]=ct[jR]=!1;function VR(e){return xR(e)&&bR(e.length)&&!!ct[yR(e)]}var qR=VR;function YR(e){return function(t){return e(t)}}var rs=YR,vc={exports:{}};vc.exports;(function(e,t){var n=Tx,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,o=i&&n.process,s=function(){try{var u=a&&a.require&&a.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(vc,vc.exports);var ku=vc.exports,GR=qR,ZR=rs,Zg=ku,Kg=Zg&&Zg.isTypedArray,KR=Kg?ZR(Kg):GR,ep=KR;function XR(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Lx=XR,JR=Yh,QR=ns,eA=Object.prototype,tA=eA.hasOwnProperty;function nA(e,t,n){var r=e[t];(!(tA.call(e,t)&&QR(r,n))||n===void 0&&!(t in e))&&JR(e,t,n)}var tp=nA,rA=tp,aA=Yh;function iA(e,t,n,r){var a=!n;n||(n={});for(var i=-1,o=t.length;++i<o;){var s=t[i],u=r?r(n[s],e[s],s,n,e):void 0;u===void 0&&(u=e[s]),a?aA(n,s,u):rA(n,s,u)}return n}var _i=iA;function oA(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var sA=oA,cA=9007199254740991,uA=/^(?:0|[1-9]\d*)$/;function lA(e,t){var n=typeof e;return t=t??cA,!!t&&(n=="number"||n!="symbol"&&uA.test(e))&&e>-1&&e%1==0&&e<t}var Su=lA,dA=sA,fA=Tu,hA=cn,pA=Cu,mA=Su,gA=ep,vA=Object.prototype,yA=vA.hasOwnProperty;function bA(e,t){var n=hA(e),r=!n&&fA(e),a=!n&&!r&&pA(e),i=!n&&!r&&!a&&gA(e),o=n||r||a||i,s=o?dA(e.length,String):[],u=s.length;for(var c in e)(t||yA.call(e,c))&&!(o&&(c=="length"||a&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||mA(c,u)))&&s.push(c);return s}var Ux=bA;function xA(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var _A=xA,wA=er,TA=Kh,CA=_A,kA=Object.prototype,SA=kA.hasOwnProperty;function OA(e){if(!wA(e))return CA(e);var t=TA(e),n=[];for(var r in e)r=="constructor"&&(t||!SA.call(e,r))||n.push(r);return n}var EA=OA,$A=Ux,MA=EA,RA=xi;function AA(e){return RA(e)?$A(e,!0):MA(e)}var as=AA,jA=_i,PA=as;function DA(e){return jA(e,PA(e))}var IA=DA,Xg=Ex,NA=Mx,FA=Ax,LA=jx,UA=Dx,Jg=Tu,Qg=cn,BA=Nx,WA=Cu,zA=bu,HA=er,VA=Jh,qA=ep,e0=Lx,YA=IA;function GA(e,t,n,r,a,i,o){var s=e0(e,n),u=e0(t,n),c=o.get(u);if(c){Xg(e,n,c);return}var l=i?i(s,u,n+"",e,t,o):void 0,d=l===void 0;if(d){var f=Qg(u),p=!f&&WA(u),m=!f&&!p&&qA(u);l=u,f||p||m?Qg(s)?l=s:BA(s)?l=LA(s):p?(d=!1,l=NA(u,!0)):m?(d=!1,l=FA(u,!0)):l=[]:VA(u)||Jg(u)?(l=s,Jg(s)?l=YA(s):(!HA(s)||zA(s))&&(l=UA(u))):d=!1}d&&(o.set(u,l),a(l,u,r,i,o),o.delete(u)),Xg(e,n,l)}var ZA=GA,KA=wu,XA=Ex,JA=$x,QA=ZA,ej=er,tj=as,nj=Lx;function Bx(e,t,n,r,a){e!==t&&JA(t,function(i,o){if(a||(a=new KA),ej(i))QA(e,t,o,n,Bx,r,a);else{var s=r?r(nj(e,o),i,o+"",e,t,a):void 0;s===void 0&&(s=i),XA(e,o,s)}},tj)}var rj=Bx;function aj(e){return e}var Ou=aj;function ij(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var oj=ij,sj=oj,t0=Math.max;function cj(e,t,n){return t=t0(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=t0(r.length-t,0),o=Array(i);++a<i;)o[a]=r[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=r[a];return s[t]=n(o),sj(e,this,s)}}var Wx=cj;function uj(e){return function(){return e}}var lj=uj,dj=lj,n0=Ox,fj=Ou,hj=n0?function(e,t){return n0(e,"toString",{configurable:!0,enumerable:!1,value:dj(t),writable:!0})}:fj,pj=hj,mj=800,gj=16,vj=Date.now;function yj(e){var t=0,n=0;return function(){var r=vj(),a=gj-(r-n);if(n=r,a>0){if(++t>=mj)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var bj=yj,xj=pj,_j=bj,wj=_j(xj),zx=wj,Tj=Ou,Cj=Wx,kj=zx;function Sj(e,t){return kj(Cj(e,t,Tj),e+"")}var np=Sj,Oj=ns,Ej=xi,$j=Su,Mj=er;function Rj(e,t,n){if(!Mj(n))return!1;var r=typeof t;return(r=="number"?Ej(n)&&$j(t,n.length):r=="string"&&t in n)?Oj(n[t],e):!1}var Hx=Rj,Aj=np,jj=Hx;function Pj(e){return Aj(function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,o=a>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,o&&jj(n[0],n[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++r<a;){var s=n[r];s&&e(t,s,r,i)}return t})}var Dj=Pj,Ij=rj,Nj=Dj,Fj=Nj(function(e,t,n){Ij(e,t,n)}),Lj=Fj;const Uj=Tt(Lj);var Bj=zr,Wj=Un,zj="[object Symbol]";function Hj(e){return typeof e=="symbol"||Wj(e)&&Bj(e)==zj}var Eu=Hj,Vj=cn,qj=Eu,Yj=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Gj=/^\w*$/;function Zj(e,t){if(Vj(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||qj(e)?!0:Gj.test(e)||!Yj.test(e)||t!=null&&e in Object(t)}var rp=Zj,Vx=qh,Kj="Expected a function";function ap(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Kj);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(ap.Cache||Vx),n}ap.Cache=Vx;var Xj=ap,Jj=Xj,Qj=500;function eP(e){var t=Jj(e,function(r){return n.size===Qj&&n.clear(),r}),n=t.cache;return t}var tP=eP,nP=tP,rP=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,aP=/\\(\\)?/g,iP=nP(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(rP,function(n,r,a,i){t.push(a?i.replace(aP,"$1"):r||n)}),t}),oP=iP;function sP(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}var $u=sP,r0=gi,cP=$u,uP=cn,lP=Eu,dP=1/0,a0=r0?r0.prototype:void 0,i0=a0?a0.toString:void 0;function qx(e){if(typeof e=="string")return e;if(uP(e))return cP(e,qx)+"";if(lP(e))return i0?i0.call(e):"";var t=e+"";return t=="0"&&1/e==-dP?"-0":t}var fP=qx,hP=fP;function pP(e){return e==null?"":hP(e)}var mP=pP,gP=cn,vP=rp,yP=oP,bP=mP;function xP(e,t){return gP(e)?e:vP(e,t)?[e]:yP(bP(e))}var wi=xP,_P=Eu,wP=1/0;function TP(e){if(typeof e=="string"||_P(e))return e;var t=e+"";return t=="0"&&1/e==-wP?"-0":t}var Ti=TP,CP=wi,kP=Ti;function SP(e,t){t=CP(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[kP(t[n++])];return n&&n==r?e:void 0}var is=SP,OP=is;function EP(e,t,n){var r=e==null?void 0:OP(e,t);return r===void 0?n:r}var Yx=EP;const pr=Tt(Yx);var $P=tp,MP=wi,RP=Su,o0=er,AP=Ti;function jP(e,t,n,r){if(!o0(e))return e;t=MP(t,e);for(var a=-1,i=t.length,o=i-1,s=e;s!=null&&++a<i;){var u=AP(t[a]),c=n;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(a!=o){var l=s[u];c=r?r(l,u,s):void 0,c===void 0&&(c=o0(l)?l:RP(t[a+1])?[]:{})}$P(s,u,c),s=s[u]}return e}var Gx=jP,PP=Gx;function DP(e,t,n){return e==null?e:PP(e,t,n)}var IP=DP;const Ki=Tt(IP);function Mu(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ip(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ci(){}var ma=.7,ni=1/ma,Ha="\\s*([+-]?\\d+)\\s*",Do="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Yn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",NP=/^#([0-9a-f]{3,8})$/,FP=new RegExp(`^rgb\\(${Ha},${Ha},${Ha}\\)$`),LP=new RegExp(`^rgb\\(${Yn},${Yn},${Yn}\\)$`),UP=new RegExp(`^rgba\\(${Ha},${Ha},${Ha},${Do}\\)$`),BP=new RegExp(`^rgba\\(${Yn},${Yn},${Yn},${Do}\\)$`),WP=new RegExp(`^hsl\\(${Do},${Yn},${Yn}\\)$`),zP=new RegExp(`^hsla\\(${Do},${Yn},${Yn},${Do}\\)$`),s0={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Mu(Ci,Io,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:c0,formatHex:c0,formatHex8:HP,formatHsl:VP,formatRgb:u0,toString:u0});function c0(){return this.rgb().formatHex()}function HP(){return this.rgb().formatHex8()}function VP(){return Kx(this).formatHsl()}function u0(){return this.rgb().formatRgb()}function Io(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=NP.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?l0(t):n===3?new zt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?xs(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?xs(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=FP.exec(e))?new zt(t[1],t[2],t[3],1):(t=LP.exec(e))?new zt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=UP.exec(e))?xs(t[1],t[2],t[3],t[4]):(t=BP.exec(e))?xs(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=WP.exec(e))?h0(t[1],t[2]/100,t[3]/100,1):(t=zP.exec(e))?h0(t[1],t[2]/100,t[3]/100,t[4]):s0.hasOwnProperty(e)?l0(s0[e]):e==="transparent"?new zt(NaN,NaN,NaN,0):null}function l0(e){return new zt(e>>16&255,e>>8&255,e&255,1)}function xs(e,t,n,r){return r<=0&&(e=t=n=NaN),new zt(e,t,n,r)}function Zx(e){return e instanceof Ci||(e=Io(e)),e?(e=e.rgb(),new zt(e.r,e.g,e.b,e.opacity)):new zt}function ri(e,t,n,r){return arguments.length===1?Zx(e):new zt(e,t,n,r??1)}function zt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Mu(zt,ri,ip(Ci,{brighter(e){return e=e==null?ni:Math.pow(ni,e),new zt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ma:Math.pow(ma,e),new zt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new zt(aa(this.r),aa(this.g),aa(this.b),yc(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:d0,formatHex:d0,formatHex8:qP,formatRgb:f0,toString:f0}));function d0(){return`#${Xr(this.r)}${Xr(this.g)}${Xr(this.b)}`}function qP(){return`#${Xr(this.r)}${Xr(this.g)}${Xr(this.b)}${Xr((isNaN(this.opacity)?1:this.opacity)*255)}`}function f0(){const e=yc(this.opacity);return`${e===1?"rgb(":"rgba("}${aa(this.r)}, ${aa(this.g)}, ${aa(this.b)}${e===1?")":`, ${e})`}`}function yc(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function aa(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Xr(e){return e=aa(e),(e<16?"0":"")+e.toString(16)}function h0(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Rn(e,t,n,r)}function Kx(e){if(e instanceof Rn)return new Rn(e.h,e.s,e.l,e.opacity);if(e instanceof Ci||(e=Io(e)),!e)return new Rn;if(e instanceof Rn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,s=i-a,u=(i+a)/2;return s?(t===i?o=(n-r)/s+(n<r)*6:n===i?o=(r-t)/s+2:o=(t-n)/s+4,s/=u<.5?i+a:2-i-a,o*=60):s=u>0&&u<1?0:o,new Rn(o,s,u,e.opacity)}function YP(e,t,n,r){return arguments.length===1?Kx(e):new Rn(e,t,n,r??1)}function Rn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Mu(Rn,YP,ip(Ci,{brighter(e){return e=e==null?ni:Math.pow(ni,e),new Rn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ma:Math.pow(ma,e),new Rn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new zt(Kl(e>=240?e-240:e+120,a,r),Kl(e,a,r),Kl(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new Rn(p0(this.h),_s(this.s),_s(this.l),yc(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=yc(this.opacity);return`${e===1?"hsl(":"hsla("}${p0(this.h)}, ${_s(this.s)*100}%, ${_s(this.l)*100}%${e===1?")":`, ${e})`}`}}));function p0(e){return e=(e||0)%360,e<0?e+360:e}function _s(e){return Math.max(0,Math.min(1,e||0))}function Kl(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const GP=Math.PI/180,ZP=180/Math.PI;var Xx=-.14861,op=1.78277,sp=-.29227,Ru=-.90649,No=1.97294,m0=No*Ru,g0=No*op,v0=op*sp-Ru*Xx;function KP(e){if(e instanceof ia)return new ia(e.h,e.s,e.l,e.opacity);e instanceof zt||(e=Zx(e));var t=e.r/255,n=e.g/255,r=e.b/255,a=(v0*r+m0*t-g0*n)/(v0+m0-g0),i=r-a,o=(No*(n-a)-sp*i)/Ru,s=Math.sqrt(o*o+i*i)/(No*a*(1-a)),u=s?Math.atan2(o,i)*ZP-120:NaN;return new ia(u<0?u+360:u,s,a,e.opacity)}function Xn(e,t,n,r){return arguments.length===1?KP(e):new ia(e,t,n,r??1)}function ia(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Mu(ia,Xn,ip(Ci,{brighter(e){return e=e==null?ni:Math.pow(ni,e),new ia(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ma:Math.pow(ma,e),new ia(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*GP,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),a=Math.sin(e);return new zt(255*(t+n*(Xx*r+op*a)),255*(t+n*(sp*r+Ru*a)),255*(t+n*(No*r)),this.opacity)}}));function XP(e,t,n,r,a){var i=e*e,o=i*e;return((1-3*e+3*i-o)*t+(4-6*i+3*o)*n+(1+3*e+3*i-3*o)*r+o*a)/6}function JP(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),a=e[r],i=e[r+1],o=r>0?e[r-1]:2*a-i,s=r<t-1?e[r+2]:2*i-a;return XP((n-r/t)*t,o,a,i,s)}}const Au=e=>()=>e;function Jx(e,t){return function(n){return e+n*t}}function QP(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function eD(e,t){var n=t-e;return n?Jx(e,n>180||n<-180?n-360*Math.round(n/360):n):Au(isNaN(e)?t:e)}function tD(e){return(e=+e)==1?Va:function(t,n){return n-t?QP(t,n,e):Au(isNaN(t)?n:t)}}function Va(e,t){var n=t-e;return n?Jx(e,n):Au(isNaN(e)?t:e)}const y0=function e(t){var n=tD(t);function r(a,i){var o=n((a=ri(a)).r,(i=ri(i)).r),s=n(a.g,i.g),u=n(a.b,i.b),c=Va(a.opacity,i.opacity);return function(l){return a.r=o(l),a.g=s(l),a.b=u(l),a.opacity=c(l),a+""}}return r.gamma=e,r}(1);function nD(e){return function(t){var n=t.length,r=new Array(n),a=new Array(n),i=new Array(n),o,s;for(o=0;o<n;++o)s=ri(t[o]),r[o]=s.r||0,a[o]=s.g||0,i[o]=s.b||0;return r=e(r),a=e(a),i=e(i),s.opacity=1,function(u){return s.r=r(u),s.g=a(u),s.b=i(u),s+""}}}var rD=nD(JP);function aD(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(i){for(a=0;a<n;++a)r[a]=e[a]*(1-i)+t[a]*i;return r}}function iD(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function oD(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),i=new Array(n),o;for(o=0;o<r;++o)a[o]=cp(e[o],t[o]);for(;o<n;++o)i[o]=t[o];return function(s){for(o=0;o<r;++o)i[o]=a[o](s);return i}}function sD(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function bc(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function cD(e,t){var n={},r={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?n[a]=cp(e[a],t[a]):r[a]=t[a];return function(i){for(a in n)r[a]=n[a](i);return r}}var vf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Xl=new RegExp(vf.source,"g");function uD(e){return function(){return e}}function lD(e){return function(t){return e(t)+""}}function Qx(e,t){var n=vf.lastIndex=Xl.lastIndex=0,r,a,i,o=-1,s=[],u=[];for(e=e+"",t=t+"";(r=vf.exec(e))&&(a=Xl.exec(t));)(i=a.index)>n&&(i=t.slice(n,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(a=a[0])?s[o]?s[o]+=a:s[++o]=a:(s[++o]=null,u.push({i:o,x:bc(r,a)})),n=Xl.lastIndex;return n<t.length&&(i=t.slice(n),s[o]?s[o]+=i:s[++o]=i),s.length<2?u[0]?lD(u[0].x):uD(t):(t=u.length,function(c){for(var l=0,d;l<t;++l)s[(d=u[l]).i]=d.x(c);return s.join("")})}function cp(e,t){var n=typeof t,r;return t==null||n==="boolean"?Au(t):(n==="number"?bc:n==="string"?(r=Io(t))?(t=r,y0):Qx:t instanceof Io?y0:t instanceof Date?sD:iD(t)?aD:Array.isArray(t)?oD:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?cD:bc)(e,t)}function dD(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function e2(e){return function t(n){n=+n;function r(a,i){var o=e((a=Xn(a)).h,(i=Xn(i)).h),s=Va(a.s,i.s),u=Va(a.l,i.l),c=Va(a.opacity,i.opacity);return function(l){return a.h=o(l),a.s=s(l),a.l=u(Math.pow(l,n)),a.opacity=c(l),a+""}}return r.gamma=t,r}(1)}e2(eD);var up=e2(Va),fD=zr,hD=cn,pD=Un,mD="[object String]";function gD(e){return typeof e=="string"||!hD(e)&&pD(e)&&fD(e)==mD}var vD=gD;const yD=Tt(vD);function bD(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var t2=bD;const ye=Tt(t2);function Fs(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function xD(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function lp(e){let t,n,r;e.length!==2?(t=Fs,n=(s,u)=>Fs(e(s),u),r=(s,u)=>e(s)-u):(t=e===Fs||e===xD?e:_D,n=e,r=e);function a(s,u,c=0,l=s.length){if(c<l){if(t(u,u)!==0)return l;do{const d=c+l>>>1;n(s[d],u)<0?c=d+1:l=d}while(c<l)}return c}function i(s,u,c=0,l=s.length){if(c<l){if(t(u,u)!==0)return l;do{const d=c+l>>>1;n(s[d],u)<=0?c=d+1:l=d}while(c<l)}return c}function o(s,u,c=0,l=s.length){const d=a(s,u,c,l-1);return d>c&&r(s[d-1],u)>-r(s[d],u)?d-1:d}return{left:a,center:o,right:i}}function _D(){return 0}function wD(e){return e===null?NaN:+e}const TD=lp(Fs),CD=TD.right;lp(wD).center;class b0 extends Map{constructor(t,n=OD){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get(x0(this,t))}has(t){return super.has(x0(this,t))}set(t,n){return super.set(kD(this,t),n)}delete(t){return super.delete(SD(this,t))}}function x0({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function kD({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function SD({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function OD(e){return e!==null&&typeof e=="object"?e.valueOf():e}const ED=Math.sqrt(50),$D=Math.sqrt(10),MD=Math.sqrt(2);function xc(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),i=r/Math.pow(10,a),o=i>=ED?10:i>=$D?5:i>=MD?2:1;let s,u,c;return a<0?(c=Math.pow(10,-a)/o,s=Math.round(e*c),u=Math.round(t*c),s/c<e&&++s,u/c>t&&--u,c=-c):(c=Math.pow(10,a)*o,s=Math.round(e/c),u=Math.round(t/c),s*c<e&&++s,u*c>t&&--u),u<s&&.5<=n&&n<2?xc(e,t,n*2):[s,u,c]}function yf(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,i,o]=r?xc(t,e,n):xc(e,t,n);if(!(i>=a))return[];const s=i-a+1,u=new Array(s);if(r)if(o<0)for(let c=0;c<s;++c)u[c]=(i-c)/-o;else for(let c=0;c<s;++c)u[c]=(i-c)*o;else if(o<0)for(let c=0;c<s;++c)u[c]=(a+c)/-o;else for(let c=0;c<s;++c)u[c]=(a+c)*o;return u}function bf(e,t,n){return t=+t,e=+e,n=+n,xc(e,t,n)[2]}function xf(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?bf(t,e,n):bf(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function RD(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(a);++r<a;)i[r]=e+r*n;return i}function wa(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const _0=Symbol("implicit");function Jr(){var e=new b0,t=[],n=[],r=_0;function a(i){let o=e.get(i);if(o===void 0){if(r!==_0)return r;e.set(i,o=t.push(i)-1)}return n[o%n.length]}return a.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new b0;for(const o of i)e.has(o)||e.set(o,t.push(o)-1);return a},a.range=function(i){return arguments.length?(n=Array.from(i),a):n.slice()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return Jr(t,n).unknown(r)},wa.apply(a,arguments),a}function dp(){var e=Jr().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,i,o,s=!1,u=0,c=0,l=.5;delete e.unknown;function d(){var f=t().length,p=a<r,m=p?a:r,g=p?r:a;i=(g-m)/Math.max(1,f-u+c*2),s&&(i=Math.floor(i)),m+=(g-m-i*(f-u))*l,o=i*(1-u),s&&(m=Math.round(m),o=Math.round(o));var v=RD(f).map(function(x){return m+i*x});return n(p?v.reverse():v)}return e.domain=function(f){return arguments.length?(t(f),d()):t()},e.range=function(f){return arguments.length?([r,a]=f,r=+r,a=+a,d()):[r,a]},e.rangeRound=function(f){return[r,a]=f,r=+r,a=+a,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return i},e.round=function(f){return arguments.length?(s=!!f,d()):s},e.padding=function(f){return arguments.length?(u=Math.min(1,c=+f),d()):u},e.paddingInner=function(f){return arguments.length?(u=Math.min(1,f),d()):u},e.paddingOuter=function(f){return arguments.length?(c=+f,d()):c},e.align=function(f){return arguments.length?(l=Math.max(0,Math.min(1,f)),d()):l},e.copy=function(){return dp(t(),[r,a]).round(s).paddingInner(u).paddingOuter(c).align(l)},wa.apply(d(),arguments)}function n2(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return n2(t())},e}function AD(){return n2(dp.apply(null,arguments).paddingInner(1))}function jD(e){return function(){return e}}function PD(e){return+e}var w0=[0,1];function La(e){return e}function _f(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:jD(isNaN(t)?NaN:.5)}function DD(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function ID(e,t,n){var r=e[0],a=e[1],i=t[0],o=t[1];return a<r?(r=_f(a,r),i=n(o,i)):(r=_f(r,a),i=n(i,o)),function(s){return i(r(s))}}function ND(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),i=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)a[o]=_f(e[o],e[o+1]),i[o]=n(t[o],t[o+1]);return function(s){var u=CD(e,s,1,r)-1;return i[u](a[u](s))}}function ju(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function fp(){var e=w0,t=w0,n=cp,r,a,i,o=La,s,u,c;function l(){var f=Math.min(e.length,t.length);return o!==La&&(o=DD(e[0],e[f-1])),s=f>2?ND:ID,u=c=null,d}function d(f){return f==null||isNaN(f=+f)?i:(u||(u=s(e.map(r),t,n)))(r(o(f)))}return d.invert=function(f){return o(a((c||(c=s(t,e.map(r),bc)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,PD),l()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),l()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=dD,l()},d.clamp=function(f){return arguments.length?(o=f?!0:La,l()):o!==La},d.interpolate=function(f){return arguments.length?(n=f,l()):n},d.unknown=function(f){return arguments.length?(i=f,d):i},function(f,p){return r=f,a=p,l()}}function r2(){return fp()(La,La)}function FD(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function _c(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function ai(e){return e=_c(Math.abs(e)),e?e[1]:NaN}function LD(e,t){return function(n,r){for(var a=n.length,i=[],o=0,s=e[0],u=0;a>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),i.push(n.substring(a-=s,a+s)),!((u+=s+1)>r));)s=e[o=(o+1)%e.length];return i.reverse().join(t)}}function UD(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var BD=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Fo(e){if(!(t=BD.exec(e)))throw new Error("invalid format: "+e);var t;return new hp({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Fo.prototype=hp.prototype;function hp(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}hp.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function WD(e){e:for(var t=e.length,n=1,r=-1,a;n<t;++n)switch(e[n]){case".":r=a=n;break;case"0":r===0&&(r=n),a=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var a2;function zD(e,t){var n=_c(e,t);if(!n)return e+"";var r=n[0],a=n[1],i=a-(a2=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+_c(e,Math.max(0,t+i-1))[0]}function T0(e,t){var n=_c(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const C0={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:FD,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return T0(e*100,t)},r:T0,s:zD,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function k0(e){return e}var S0=Array.prototype.map,O0=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function HD(e){var t=e.grouping===void 0||e.thousands===void 0?k0:LD(S0.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?k0:UD(S0.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"-":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function c(d){d=Fo(d);var f=d.fill,p=d.align,m=d.sign,g=d.symbol,v=d.zero,x=d.width,w=d.comma,b=d.precision,T=d.trim,_=d.type;_==="n"?(w=!0,_="g"):C0[_]||(b===void 0&&(b=12),T=!0,_="g"),(v||f==="0"&&p==="=")&&(v=!0,f="0",p="=");var C=g==="$"?n:g==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",$=g==="$"?r:/[%p]/.test(_)?o:"",A=C0[_],D=/[defgprs%]/.test(_);b=b===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function j(E){var F=C,M=$,R,I,U;if(_==="c")M=A(E)+M,E="";else{E=+E;var N=E<0||1/E<0;if(E=isNaN(E)?u:A(Math.abs(E),b),T&&(E=WD(E)),N&&+E==0&&m!=="+"&&(N=!1),F=(N?m==="("?m:s:m==="-"||m==="("?"":m)+F,M=(_==="s"?O0[8+a2/3]:"")+M+(N&&m==="("?")":""),D){for(R=-1,I=E.length;++R<I;)if(U=E.charCodeAt(R),48>U||U>57){M=(U===46?a+E.slice(R+1):E.slice(R))+M,E=E.slice(0,R);break}}}w&&!v&&(E=t(E,1/0));var q=F.length+E.length+M.length,z=q<x?new Array(x-q+1).join(f):"";switch(w&&v&&(E=t(z+E,z.length?x-M.length:1/0),z=""),p){case"<":E=F+E+M+z;break;case"=":E=F+z+E+M;break;case"^":E=z.slice(0,q=z.length>>1)+F+E+M+z.slice(q);break;default:E=z+F+E+M;break}return i(E)}return j.toString=function(){return d+""},j}function l(d,f){var p=c((d=Fo(d),d.type="f",d)),m=Math.max(-8,Math.min(8,Math.floor(ai(f)/3)))*3,g=Math.pow(10,-m),v=O0[8+m/3];return function(x){return p(g*x)+v}}return{format:c,formatPrefix:l}}var ws,os,i2;VD({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function VD(e){return ws=HD(e),os=ws.format,i2=ws.formatPrefix,ws}function qD(e){return Math.max(0,-ai(Math.abs(e)))}function YD(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ai(t)/3)))*3-ai(Math.abs(e)))}function GD(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ai(t)-ai(e))+1}function ZD(e,t,n,r){var a=xf(e,t,n),i;switch(r=Fo(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=YD(a,o))&&(r.precision=i),i2(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=GD(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=qD(a))&&(r.precision=i-(r.type==="%")*2);break}}return os(r)}function o2(e){var t=e.domain;return e.ticks=function(n){var r=t();return yf(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return ZD(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,i=r.length-1,o=r[a],s=r[i],u,c,l=10;for(s<o&&(c=o,o=s,s=c,c=a,a=i,i=c);l-- >0;){if(c=bf(o,s,n),c===u)return r[a]=o,r[i]=s,t(r);if(c>0)o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c;else if(c<0)o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c;else break;u=c}return e},e}function s2(){var e=r2();return e.copy=function(){return ju(e,s2())},wa.apply(e,arguments),o2(e)}function c2(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],i=e[r],o;return i<a&&(o=n,n=r,r=o,o=a,a=i,i=o),e[n]=t.floor(a),e[r]=t.ceil(i),e}function E0(e){return Math.log(e)}function $0(e){return Math.exp(e)}function KD(e){return-Math.log(-e)}function XD(e){return-Math.exp(-e)}function JD(e){return isFinite(e)?+("1e"+e):e<0?0:e}function QD(e){return e===10?JD:e===Math.E?Math.exp:t=>Math.pow(e,t)}function eI(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function M0(e){return(t,n)=>-e(-t,n)}function tI(e){const t=e(E0,$0),n=t.domain;let r=10,a,i;function o(){return a=eI(r),i=QD(r),n()[0]<0?(a=M0(a),i=M0(i),e(KD,XD)):e(E0,$0),t}return t.base=function(s){return arguments.length?(r=+s,o()):r},t.domain=function(s){return arguments.length?(n(s),o()):n()},t.ticks=s=>{const u=n();let c=u[0],l=u[u.length-1];const d=l<c;d&&([c,l]=[l,c]);let f=a(c),p=a(l),m,g;const v=s==null?10:+s;let x=[];if(!(r%1)&&p-f<v){if(f=Math.floor(f),p=Math.ceil(p),c>0){for(;f<=p;++f)for(m=1;m<r;++m)if(g=f<0?m/i(-f):m*i(f),!(g<c)){if(g>l)break;x.push(g)}}else for(;f<=p;++f)for(m=r-1;m>=1;--m)if(g=f>0?m/i(-f):m*i(f),!(g<c)){if(g>l)break;x.push(g)}x.length*2<v&&(x=yf(c,l,v))}else x=yf(f,p,Math.min(p-f,v)).map(i);return d?x.reverse():x},t.tickFormat=(s,u)=>{if(s==null&&(s=10),u==null&&(u=r===10?"s":","),typeof u!="function"&&(!(r%1)&&(u=Fo(u)).precision==null&&(u.trim=!0),u=os(u)),s===1/0)return u;const c=Math.max(1,r*s/t.ticks().length);return l=>{let d=l/i(Math.round(a(l)));return d*r<r-.5&&(d*=r),d<=c?u(l):""}},t.nice=()=>n(c2(n(),{floor:s=>i(Math.floor(a(s))),ceil:s=>i(Math.ceil(a(s)))})),t}function u2(){const e=tI(fp()).domain([1,10]);return e.copy=()=>ju(e,u2()).base(e.base()),wa.apply(e,arguments),e}function R0(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function A0(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function nI(e){var t=1,n=e(R0(t),A0(t));return n.constant=function(r){return arguments.length?e(R0(t=+r),A0(t)):t},o2(n)}function l2(){var e=nI(fp());return e.copy=function(){return ju(e,l2()).constant(e.constant())},wa.apply(e,arguments)}const Jl=new Date,Ql=new Date;function Rt(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const o=a(i),s=a.ceil(i);return i-o<s-i?o:s},a.offset=(i,o)=>(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,s)=>{const u=[];if(i=a.ceil(i),s=s==null?1:Math.floor(s),!(i<o)||!(s>0))return u;let c;do u.push(c=new Date(+i)),t(i,s),e(i);while(c<i&&i<o);return u},a.filter=i=>Rt(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!i(o););else for(;--s>=0;)for(;t(o,1),!i(o););}),n&&(a.count=(i,o)=>(Jl.setTime(+i),Ql.setTime(+o),e(Jl),e(Ql),Math.floor(n(Jl,Ql))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?o=>r(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const wc=Rt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);wc.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Rt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):wc);wc.range;const sr=1e3,Cn=sr*60,cr=Cn*60,mr=cr*24,pp=mr*7,j0=mr*30,ed=mr*365,Qr=Rt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*sr)},(e,t)=>(t-e)/sr,e=>e.getUTCSeconds());Qr.range;const mp=Rt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*sr)},(e,t)=>{e.setTime(+e+t*Cn)},(e,t)=>(t-e)/Cn,e=>e.getMinutes());mp.range;const gp=Rt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Cn)},(e,t)=>(t-e)/Cn,e=>e.getUTCMinutes());gp.range;const vp=Rt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*sr-e.getMinutes()*Cn)},(e,t)=>{e.setTime(+e+t*cr)},(e,t)=>(t-e)/cr,e=>e.getHours());vp.range;const yp=Rt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*cr)},(e,t)=>(t-e)/cr,e=>e.getUTCHours());yp.range;const bp=Rt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Cn)/mr,e=>e.getDate()-1);bp.range;const d2=Rt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mr,e=>e.getUTCDate()-1);d2.range;const f2=Rt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mr,e=>Math.floor(e/mr));f2.range;function Ta(e){return Rt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Cn)/pp)}const xp=Ta(0),rI=Ta(1),aI=Ta(2),iI=Ta(3),oI=Ta(4),sI=Ta(5),cI=Ta(6);xp.range;rI.range;aI.range;iI.range;oI.range;sI.range;cI.range;function Ca(e){return Rt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/pp)}const _p=Ca(0),uI=Ca(1),lI=Ca(2),dI=Ca(3),fI=Ca(4),hI=Ca(5),pI=Ca(6);_p.range;uI.range;lI.range;dI.range;fI.range;hI.range;pI.range;const wp=Rt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());wp.range;const Tp=Rt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Tp.range;const Pu=Rt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Pu.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Rt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Pu.range;const Du=Rt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Du.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Rt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Du.range;function h2(e,t,n,r,a,i){const o=[[Qr,1,sr],[Qr,5,5*sr],[Qr,15,15*sr],[Qr,30,30*sr],[i,1,Cn],[i,5,5*Cn],[i,15,15*Cn],[i,30,30*Cn],[a,1,cr],[a,3,3*cr],[a,6,6*cr],[a,12,12*cr],[r,1,mr],[r,2,2*mr],[n,1,pp],[t,1,j0],[t,3,3*j0],[e,1,ed]];function s(c,l,d){const f=l<c;f&&([c,l]=[l,c]);const p=d&&typeof d.range=="function"?d:u(c,l,d),m=p?p.range(c,+l+1):[];return f?m.reverse():m}function u(c,l,d){const f=Math.abs(l-c)/d,p=lp(([,,v])=>v).right(o,f);if(p===o.length)return e.every(xf(c/ed,l/ed,d));if(p===0)return wc.every(Math.max(xf(c,l,d),1));const[m,g]=o[f/o[p-1][2]<o[p][2]/f?p-1:p];return m.every(g)}return[s,u]}const[mI,gI]=h2(Du,Tp,_p,f2,yp,gp),[vI,yI]=h2(Pu,wp,xp,bp,vp,mp);var td=new Date,nd=new Date;function yr(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=function(i){return e(i=new Date(+i)),i},a.ceil=function(i){return e(i=new Date(i-1)),t(i,1),e(i),i},a.round=function(i){var o=a(i),s=a.ceil(i);return i-o<s-i?o:s},a.offset=function(i,o){return t(i=new Date(+i),o==null?1:Math.floor(o)),i},a.range=function(i,o,s){var u=[],c;if(i=a.ceil(i),s=s==null?1:Math.floor(s),!(i<o)||!(s>0))return u;do u.push(c=new Date(+i)),t(i,s),e(i);while(c<i&&i<o);return u},a.filter=function(i){return yr(function(o){if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},function(o,s){if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!i(o););else for(;--s>=0;)for(;t(o,1),!i(o););})},n&&(a.count=function(i,o){return td.setTime(+i),nd.setTime(+o),e(td),e(nd),Math.floor(n(td,nd))},a.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?function(o){return r(o)%i===0}:function(o){return a.count(0,o)%i===0}):a}),a}const bI=1e3,Cp=bI*60,xI=Cp*60,kp=xI*24,p2=kp*7;var Sp=yr(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Cp)/kp,e=>e.getDate()-1);Sp.range;function ka(e){return yr(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Cp)/p2})}var m2=ka(0),Tc=ka(1),_I=ka(2),wI=ka(3),ii=ka(4),TI=ka(5),CI=ka(6);m2.range;Tc.range;_I.range;wI.range;ii.range;TI.range;CI.range;var ga=yr(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});ga.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:yr(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};ga.range;var Op=yr(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/kp},function(e){return e.getUTCDate()-1});Op.range;function Sa(e){return yr(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/p2})}var g2=Sa(0),Cc=Sa(1),kI=Sa(2),SI=Sa(3),oi=Sa(4),OI=Sa(5),EI=Sa(6);g2.range;Cc.range;kI.range;SI.range;oi.range;OI.range;EI.range;var va=yr(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});va.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:yr(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};va.range;function rd(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function ad(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Ui(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function $I(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,i=e.days,o=e.shortDays,s=e.months,u=e.shortMonths,c=Bi(a),l=Wi(a),d=Bi(i),f=Wi(i),p=Bi(o),m=Wi(o),g=Bi(s),v=Wi(s),x=Bi(u),w=Wi(u),b={a:N,A:q,b:z,B:P,c:null,d:L0,e:L0,f:JI,g:cN,G:lN,H:ZI,I:KI,j:XI,L:v2,m:QI,M:eN,p:W,q:Z,Q:W0,s:z0,S:tN,u:nN,U:rN,V:aN,w:iN,W:oN,x:null,X:null,y:sN,Y:uN,Z:dN,"%":B0},T={a:ne,A:Y,b:Q,B:G,c:null,d:U0,e:U0,f:mN,g:kN,G:ON,H:fN,I:hN,j:pN,L:b2,m:gN,M:vN,p:J,q:re,Q:W0,s:z0,S:yN,u:bN,U:xN,V:_N,w:wN,W:TN,x:null,X:null,y:CN,Y:SN,Z:EN,"%":B0},_={a:j,A:E,b:F,B:M,c:R,d:N0,e:N0,f:VI,g:I0,G:D0,H:F0,I:F0,j:BI,L:HI,m:UI,M:WI,p:D,q:LI,Q:YI,s:GI,S:zI,u:PI,U:DI,V:II,w:jI,W:NI,x:I,X:U,y:I0,Y:D0,Z:FI,"%":qI};b.x=C(n,b),b.X=C(r,b),b.c=C(t,b),T.x=C(n,T),T.X=C(r,T),T.c=C(t,T);function C(L,V){return function(ae){var k=[],ge=-1,pe=0,de=L.length,Ae,Pe,ft;for(ae instanceof Date||(ae=new Date(+ae));++ge<de;)L.charCodeAt(ge)===37&&(k.push(L.slice(pe,ge)),(Pe=P0[Ae=L.charAt(++ge)])!=null?Ae=L.charAt(++ge):Pe=Ae==="e"?" ":"0",(ft=V[Ae])&&(Ae=ft(ae,Pe)),k.push(Ae),pe=ge+1);return k.push(L.slice(pe,ge)),k.join("")}}function $(L,V){return function(ae){var k=Ui(1900,void 0,1),ge=A(k,L,ae+="",0),pe,de;if(ge!=ae.length)return null;if("Q"in k)return new Date(k.Q);if("s"in k)return new Date(k.s*1e3+("L"in k?k.L:0));if(V&&!("Z"in k)&&(k.Z=0),"p"in k&&(k.H=k.H%12+k.p*12),k.m===void 0&&(k.m="q"in k?k.q:0),"V"in k){if(k.V<1||k.V>53)return null;"w"in k||(k.w=1),"Z"in k?(pe=ad(Ui(k.y,0,1)),de=pe.getUTCDay(),pe=de>4||de===0?Cc.ceil(pe):Cc(pe),pe=Op.offset(pe,(k.V-1)*7),k.y=pe.getUTCFullYear(),k.m=pe.getUTCMonth(),k.d=pe.getUTCDate()+(k.w+6)%7):(pe=rd(Ui(k.y,0,1)),de=pe.getDay(),pe=de>4||de===0?Tc.ceil(pe):Tc(pe),pe=Sp.offset(pe,(k.V-1)*7),k.y=pe.getFullYear(),k.m=pe.getMonth(),k.d=pe.getDate()+(k.w+6)%7)}else("W"in k||"U"in k)&&("w"in k||(k.w="u"in k?k.u%7:"W"in k?1:0),de="Z"in k?ad(Ui(k.y,0,1)).getUTCDay():rd(Ui(k.y,0,1)).getDay(),k.m=0,k.d="W"in k?(k.w+6)%7+k.W*7-(de+5)%7:k.w+k.U*7-(de+6)%7);return"Z"in k?(k.H+=k.Z/100|0,k.M+=k.Z%100,ad(k)):rd(k)}}function A(L,V,ae,k){for(var ge=0,pe=V.length,de=ae.length,Ae,Pe;ge<pe;){if(k>=de)return-1;if(Ae=V.charCodeAt(ge++),Ae===37){if(Ae=V.charAt(ge++),Pe=_[Ae in P0?V.charAt(ge++):Ae],!Pe||(k=Pe(L,ae,k))<0)return-1}else if(Ae!=ae.charCodeAt(k++))return-1}return k}function D(L,V,ae){var k=c.exec(V.slice(ae));return k?(L.p=l.get(k[0].toLowerCase()),ae+k[0].length):-1}function j(L,V,ae){var k=p.exec(V.slice(ae));return k?(L.w=m.get(k[0].toLowerCase()),ae+k[0].length):-1}function E(L,V,ae){var k=d.exec(V.slice(ae));return k?(L.w=f.get(k[0].toLowerCase()),ae+k[0].length):-1}function F(L,V,ae){var k=x.exec(V.slice(ae));return k?(L.m=w.get(k[0].toLowerCase()),ae+k[0].length):-1}function M(L,V,ae){var k=g.exec(V.slice(ae));return k?(L.m=v.get(k[0].toLowerCase()),ae+k[0].length):-1}function R(L,V,ae){return A(L,t,V,ae)}function I(L,V,ae){return A(L,n,V,ae)}function U(L,V,ae){return A(L,r,V,ae)}function N(L){return o[L.getDay()]}function q(L){return i[L.getDay()]}function z(L){return u[L.getMonth()]}function P(L){return s[L.getMonth()]}function W(L){return a[+(L.getHours()>=12)]}function Z(L){return 1+~~(L.getMonth()/3)}function ne(L){return o[L.getUTCDay()]}function Y(L){return i[L.getUTCDay()]}function Q(L){return u[L.getUTCMonth()]}function G(L){return s[L.getUTCMonth()]}function J(L){return a[+(L.getUTCHours()>=12)]}function re(L){return 1+~~(L.getUTCMonth()/3)}return{format:function(L){var V=C(L+="",b);return V.toString=function(){return L},V},parse:function(L){var V=$(L+="",!1);return V.toString=function(){return L},V},utcFormat:function(L){var V=C(L+="",T);return V.toString=function(){return L},V},utcParse:function(L){var V=$(L+="",!0);return V.toString=function(){return L},V}}}var P0={"-":"",_:" ",0:"0"},Dt=/^\s*\d+/,MI=/^%/,RI=/[\\^$*+?|[\]().{}]/g;function Be(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i<n?new Array(n-i+1).join(t)+a:a)}function AI(e){return e.replace(RI,"\\$&")}function Bi(e){return new RegExp("^(?:"+e.map(AI).join("|")+")","i")}function Wi(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function jI(e,t,n){var r=Dt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function PI(e,t,n){var r=Dt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function DI(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function II(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function NI(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function D0(e,t,n){var r=Dt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function I0(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function FI(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function LI(e,t,n){var r=Dt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function UI(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function N0(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function BI(e,t,n){var r=Dt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function F0(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function WI(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function zI(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function HI(e,t,n){var r=Dt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function VI(e,t,n){var r=Dt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function qI(e,t,n){var r=MI.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function YI(e,t,n){var r=Dt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function GI(e,t,n){var r=Dt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function L0(e,t){return Be(e.getDate(),t,2)}function ZI(e,t){return Be(e.getHours(),t,2)}function KI(e,t){return Be(e.getHours()%12||12,t,2)}function XI(e,t){return Be(1+Sp.count(ga(e),e),t,3)}function v2(e,t){return Be(e.getMilliseconds(),t,3)}function JI(e,t){return v2(e,t)+"000"}function QI(e,t){return Be(e.getMonth()+1,t,2)}function eN(e,t){return Be(e.getMinutes(),t,2)}function tN(e,t){return Be(e.getSeconds(),t,2)}function nN(e){var t=e.getDay();return t===0?7:t}function rN(e,t){return Be(m2.count(ga(e)-1,e),t,2)}function y2(e){var t=e.getDay();return t>=4||t===0?ii(e):ii.ceil(e)}function aN(e,t){return e=y2(e),Be(ii.count(ga(e),e)+(ga(e).getDay()===4),t,2)}function iN(e){return e.getDay()}function oN(e,t){return Be(Tc.count(ga(e)-1,e),t,2)}function sN(e,t){return Be(e.getFullYear()%100,t,2)}function cN(e,t){return e=y2(e),Be(e.getFullYear()%100,t,2)}function uN(e,t){return Be(e.getFullYear()%1e4,t,4)}function lN(e,t){var n=e.getDay();return e=n>=4||n===0?ii(e):ii.ceil(e),Be(e.getFullYear()%1e4,t,4)}function dN(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Be(t/60|0,"0",2)+Be(t%60,"0",2)}function U0(e,t){return Be(e.getUTCDate(),t,2)}function fN(e,t){return Be(e.getUTCHours(),t,2)}function hN(e,t){return Be(e.getUTCHours()%12||12,t,2)}function pN(e,t){return Be(1+Op.count(va(e),e),t,3)}function b2(e,t){return Be(e.getUTCMilliseconds(),t,3)}function mN(e,t){return b2(e,t)+"000"}function gN(e,t){return Be(e.getUTCMonth()+1,t,2)}function vN(e,t){return Be(e.getUTCMinutes(),t,2)}function yN(e,t){return Be(e.getUTCSeconds(),t,2)}function bN(e){var t=e.getUTCDay();return t===0?7:t}function xN(e,t){return Be(g2.count(va(e)-1,e),t,2)}function x2(e){var t=e.getUTCDay();return t>=4||t===0?oi(e):oi.ceil(e)}function _N(e,t){return e=x2(e),Be(oi.count(va(e),e)+(va(e).getUTCDay()===4),t,2)}function wN(e){return e.getUTCDay()}function TN(e,t){return Be(Cc.count(va(e)-1,e),t,2)}function CN(e,t){return Be(e.getUTCFullYear()%100,t,2)}function kN(e,t){return e=x2(e),Be(e.getUTCFullYear()%100,t,2)}function SN(e,t){return Be(e.getUTCFullYear()%1e4,t,4)}function ON(e,t){var n=e.getUTCDay();return e=n>=4||n===0?oi(e):oi.ceil(e),Be(e.getUTCFullYear()%1e4,t,4)}function EN(){return"+0000"}function B0(){return"%"}function W0(e){return+e}function z0(e){return Math.floor(+e/1e3)}var Da,Iu,_2,w2,T2;$N({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function $N(e){return Da=$I(e),Iu=Da.format,_2=Da.parse,w2=Da.utcFormat,T2=Da.utcParse,Da}function MN(e){return new Date(e)}function RN(e){return e instanceof Date?+e:+new Date(+e)}function Ep(e,t,n,r,a,i,o,s,u,c){var l=r2(),d=l.invert,f=l.domain,p=c(".%L"),m=c(":%S"),g=c("%I:%M"),v=c("%I %p"),x=c("%a %d"),w=c("%b %d"),b=c("%B"),T=c("%Y");function _(C){return(u(C)<C?p:s(C)<C?m:o(C)<C?g:i(C)<C?v:r(C)<C?a(C)<C?x:w:n(C)<C?b:T)(C)}return l.invert=function(C){return new Date(d(C))},l.domain=function(C){return arguments.length?f(Array.from(C,RN)):f().map(MN)},l.ticks=function(C){var $=f();return e($[0],$[$.length-1],C??10)},l.tickFormat=function(C,$){return $==null?_:c($)},l.nice=function(C){var $=f();return(!C||typeof C.range!="function")&&(C=t($[0],$[$.length-1],C??10)),C?f(c2($,C)):l},l.copy=function(){return ju(l,Ep(e,t,n,r,a,i,o,s,u,c))},l}function AN(){return wa.apply(Ep(vI,yI,Pu,wp,xp,bp,vp,mp,Qr,Iu).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function jN(){return wa.apply(Ep(mI,gI,Du,Tp,_p,d2,yp,gp,Qr,w2).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function $e(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(r*6,++r*6);return n}const C2=$e("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),k2=$e("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),S2=$e("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),O2=$e("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),E2=$e("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),$2=$e("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),M2=$e("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),R2=$e("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),$p=$e("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),PN=$e("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),nt=e=>rD(e[e.length-1]);var Nu=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map($e);const DN=nt(Nu);var Fu=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map($e);const IN=nt(Fu);var Lu=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map($e);const NN=nt(Lu);var Uu=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map($e);const FN=nt(Uu);var Bu=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map($e);const LN=nt(Bu);var Wu=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map($e);const UN=nt(Wu);var zu=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map($e);const BN=nt(zu);var Hu=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map($e);const WN=nt(Hu);var Vu=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map($e);const zN=nt(Vu);var qu=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map($e);const HN=nt(qu);var Yu=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map($e);const VN=nt(Yu);var Gu=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map($e);const qN=nt(Gu);var Zu=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map($e);const YN=nt(Zu);var Ku=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map($e);const GN=nt(Ku);var Xu=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map($e);const ZN=nt(Xu);var Ju=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map($e);const KN=nt(Ju);var Qu=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map($e);const XN=nt(Qu);var el=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map($e);const JN=nt(el);var tl=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map($e);const QN=nt(tl);var nl=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map($e);const eF=nt(nl);var rl=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map($e);const tF=nt(rl);var al=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map($e);const nF=nt(al);var il=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map($e);const rF=nt(il);var ol=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map($e);const aF=nt(ol);var sl=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map($e);const iF=nt(sl);var cl=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map($e);const oF=nt(cl);var ul=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map($e);const sF=nt(ul);function cF(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-e*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-e*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-e*2475.67)))))))+")"}const uF=up(Xn(300,.5,0),Xn(-240,.5,1));var lF=up(Xn(-100,.75,.35),Xn(80,1.5,.8)),dF=up(Xn(260,.75,.35),Xn(80,1.5,.8)),Ts=Xn();function fF(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return Ts.h=360*e-100,Ts.s=1.5-1.5*t,Ts.l=.8-.9*t,Ts+""}var Cs=ri(),hF=Math.PI/3,pF=Math.PI*2/3;function mF(e){var t;return e=(.5-e)*Math.PI,Cs.r=255*(t=Math.sin(e))*t,Cs.g=255*(t=Math.sin(e+hF))*t,Cs.b=255*(t=Math.sin(e+pF))*t,Cs+""}function gF(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-e*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+e*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-e*6838.66)))))))+")"}function ll(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const vF=ll($e("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var yF=ll($e("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),bF=ll($e("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),xF=ll($e("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),_F="__lodash_hash_undefined__";function wF(e){return this.__data__.set(e,_F),this}var TF=wF;function CF(e){return this.__data__.has(e)}var kF=CF,SF=qh,OF=TF,EF=kF;function kc(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new SF;++t<n;)this.add(e[t])}kc.prototype.add=kc.prototype.push=OF;kc.prototype.has=EF;var Mp=kc;function $F(e,t,n,r){for(var a=e.length,i=n+(r?1:-1);r?i--:++i<a;)if(t(e[i],i,e))return i;return-1}var MF=$F;function RF(e){return e!==e}var AF=RF;function jF(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}var PF=jF,DF=MF,IF=AF,NF=PF;function FF(e,t,n){return t===t?NF(e,t,n):DF(e,IF,n)}var LF=FF,UF=LF;function BF(e,t){var n=e==null?0:e.length;return!!n&&UF(e,t,0)>-1}var A2=BF;function WF(e,t,n){for(var r=-1,a=e==null?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1}var j2=WF;function zF(e,t){return e.has(t)}var Rp=zF,HF=Mp,VF=A2,qF=j2,YF=$u,GF=rs,ZF=Rp,KF=200;function XF(e,t,n,r){var a=-1,i=VF,o=!0,s=e.length,u=[],c=t.length;if(!s)return u;n&&(t=YF(t,GF(n))),r?(i=qF,o=!1):t.length>=KF&&(i=ZF,o=!1,t=new HF(t));e:for(;++a<s;){var l=e[a],d=n==null?l:n(l);if(l=r||l!==0?l:0,o&&d===d){for(var f=c;f--;)if(t[f]===d)continue e;u.push(l)}else i(t,d,r)||u.push(l)}return u}var JF=XF,QF=JF,eL=np,tL=Nx,nL=eL(function(e,t){return tL(e)?QF(e,t):[]}),rL=nL;const P2=Tt(rL);function ut(e){return function(){return e}}const H0=Math.abs,Ut=Math.atan2,Hr=Math.cos,aL=Math.max,id=Math.min,Bn=Math.sin,Ua=Math.sqrt,Bt=1e-12,Lo=Math.PI,Sc=Lo/2,Ls=2*Lo;function iL(e){return e>1?0:e<-1?Lo:Math.acos(e)}function V0(e){return e>=1?Sc:e<=-1?-Sc:Math.asin(e)}const wf=Math.PI,Tf=2*wf,Yr=1e-6,oL=Tf-Yr;function D2(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function sL(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return D2;const n=10**t;return function(r){this._+=r[0];for(let a=1,i=r.length;a<i;++a)this._+=Math.round(arguments[a]*n)/n+r[a]}}class cL{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?D2:sL(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,a){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+a}`}bezierCurveTo(t,n,r,a,i,o){this._append`C${+t},${+n},${+r},${+a},${this._x1=+i},${this._y1=+o}`}arcTo(t,n,r,a,i){if(t=+t,n=+n,r=+r,a=+a,i=+i,i<0)throw new Error(`negative radius: ${i}`);let o=this._x1,s=this._y1,u=r-t,c=a-n,l=o-t,d=s-n,f=l*l+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(f>Yr)if(!(Math.abs(d*u-c*l)>Yr)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let p=r-o,m=a-s,g=u*u+c*c,v=p*p+m*m,x=Math.sqrt(g),w=Math.sqrt(f),b=i*Math.tan((wf-Math.acos((g+f-v)/(2*x*w)))/2),T=b/w,_=b/x;Math.abs(T-1)>Yr&&this._append`L${t+T*l},${n+T*d}`,this._append`A${i},${i},0,0,${+(d*p>l*m)},${this._x1=t+_*u},${this._y1=n+_*c}`}}arc(t,n,r,a,i,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(a),u=r*Math.sin(a),c=t+s,l=n+u,d=1^o,f=o?a-i:i-a;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>Yr||Math.abs(this._y1-l)>Yr)&&this._append`L${c},${l}`,r&&(f<0&&(f=f%Tf+Tf),f>oL?this._append`A${r},${r},0,1,${d},${t-s},${n-u}A${r},${r},0,1,${d},${this._x1=c},${this._y1=l}`:f>Yr&&this._append`A${r},${r},0,${+(f>=wf)},${d},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function I2(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new cL(t)}function uL(e){return e.innerRadius}function lL(e){return e.outerRadius}function dL(e){return e.startAngle}function fL(e){return e.endAngle}function hL(e){return e&&e.padAngle}function pL(e,t,n,r,a,i,o,s){var u=n-e,c=r-t,l=o-a,d=s-i,f=d*u-l*c;if(!(f*f<Bt))return f=(l*(t-i)-d*(e-a))/f,[e+f*u,t+f*c]}function ks(e,t,n,r,a,i,o){var s=e-n,u=t-r,c=(o?i:-i)/Ua(s*s+u*u),l=c*u,d=-c*s,f=e+l,p=t+d,m=n+l,g=r+d,v=(f+m)/2,x=(p+g)/2,w=m-f,b=g-p,T=w*w+b*b,_=a-i,C=f*g-m*p,$=(b<0?-1:1)*Ua(aL(0,_*_*T-C*C)),A=(C*b-w*$)/T,D=(-C*w-b*$)/T,j=(C*b+w*$)/T,E=(-C*w+b*$)/T,F=A-v,M=D-x,R=j-v,I=E-x;return F*F+M*M>R*R+I*I&&(A=j,D=E),{cx:A,cy:D,x01:-l,y01:-d,x11:A*(a/_-1),y11:D*(a/_-1)}}function mL(){var e=uL,t=lL,n=ut(0),r=null,a=dL,i=fL,o=hL,s=null,u=I2(c);function c(){var l,d,f=+e.apply(this,arguments),p=+t.apply(this,arguments),m=a.apply(this,arguments)-Sc,g=i.apply(this,arguments)-Sc,v=H0(g-m),x=g>m;if(s||(s=l=u()),p<f&&(d=p,p=f,f=d),!(p>Bt))s.moveTo(0,0);else if(v>Ls-Bt)s.moveTo(p*Hr(m),p*Bn(m)),s.arc(0,0,p,m,g,!x),f>Bt&&(s.moveTo(f*Hr(g),f*Bn(g)),s.arc(0,0,f,g,m,x));else{var w=m,b=g,T=m,_=g,C=v,$=v,A=o.apply(this,arguments)/2,D=A>Bt&&(r?+r.apply(this,arguments):Ua(f*f+p*p)),j=id(H0(p-f)/2,+n.apply(this,arguments)),E=j,F=j,M,R;if(D>Bt){var I=V0(D/f*Bn(A)),U=V0(D/p*Bn(A));(C-=I*2)>Bt?(I*=x?1:-1,T+=I,_-=I):(C=0,T=_=(m+g)/2),($-=U*2)>Bt?(U*=x?1:-1,w+=U,b-=U):($=0,w=b=(m+g)/2)}var N=p*Hr(w),q=p*Bn(w),z=f*Hr(_),P=f*Bn(_);if(j>Bt){var W=p*Hr(b),Z=p*Bn(b),ne=f*Hr(T),Y=f*Bn(T),Q;if(v<Lo)if(Q=pL(N,q,ne,Y,W,Z,z,P)){var G=N-Q[0],J=q-Q[1],re=W-Q[0],L=Z-Q[1],V=1/Bn(iL((G*re+J*L)/(Ua(G*G+J*J)*Ua(re*re+L*L)))/2),ae=Ua(Q[0]*Q[0]+Q[1]*Q[1]);E=id(j,(f-ae)/(V-1)),F=id(j,(p-ae)/(V+1))}else E=F=0}$>Bt?F>Bt?(M=ks(ne,Y,N,q,p,F,x),R=ks(W,Z,z,P,p,F,x),s.moveTo(M.cx+M.x01,M.cy+M.y01),F<j?s.arc(M.cx,M.cy,F,Ut(M.y01,M.x01),Ut(R.y01,R.x01),!x):(s.arc(M.cx,M.cy,F,Ut(M.y01,M.x01),Ut(M.y11,M.x11),!x),s.arc(0,0,p,Ut(M.cy+M.y11,M.cx+M.x11),Ut(R.cy+R.y11,R.cx+R.x11),!x),s.arc(R.cx,R.cy,F,Ut(R.y11,R.x11),Ut(R.y01,R.x01),!x))):(s.moveTo(N,q),s.arc(0,0,p,w,b,!x)):s.moveTo(N,q),!(f>Bt)||!(C>Bt)?s.lineTo(z,P):E>Bt?(M=ks(z,P,W,Z,f,-E,x),R=ks(N,q,ne,Y,f,-E,x),s.lineTo(M.cx+M.x01,M.cy+M.y01),E<j?s.arc(M.cx,M.cy,E,Ut(M.y01,M.x01),Ut(R.y01,R.x01),!x):(s.arc(M.cx,M.cy,E,Ut(M.y01,M.x01),Ut(M.y11,M.x11),!x),s.arc(0,0,f,Ut(M.cy+M.y11,M.cx+M.x11),Ut(R.cy+R.y11,R.cx+R.x11),x),s.arc(R.cx,R.cy,E,Ut(R.y11,R.x11),Ut(R.y01,R.x01),!x))):s.arc(0,0,f,_,T,x)}if(s.closePath(),l)return s=null,l+""||null}return c.centroid=function(){var l=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,d=(+a.apply(this,arguments)+ +i.apply(this,arguments))/2-Lo/2;return[Hr(d)*l,Bn(d)*l]},c.innerRadius=function(l){return arguments.length?(e=typeof l=="function"?l:ut(+l),c):e},c.outerRadius=function(l){return arguments.length?(t=typeof l=="function"?l:ut(+l),c):t},c.cornerRadius=function(l){return arguments.length?(n=typeof l=="function"?l:ut(+l),c):n},c.padRadius=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:ut(+l),c):r},c.startAngle=function(l){return arguments.length?(a=typeof l=="function"?l:ut(+l),c):a},c.endAngle=function(l){return arguments.length?(i=typeof l=="function"?l:ut(+l),c):i},c.padAngle=function(l){return arguments.length?(o=typeof l=="function"?l:ut(+l),c):o},c.context=function(l){return arguments.length?(s=l??null,c):s},c}function Ap(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function N2(e){this._context=e}N2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function F2(e){return new N2(e)}function gL(e){return e[0]}function vL(e){return e[1]}function yL(e,t){var n=ut(!0),r=null,a=F2,i=null,o=I2(s);e=typeof e=="function"?e:e===void 0?gL:ut(e),t=typeof t=="function"?t:t===void 0?vL:ut(t);function s(u){var c,l=(u=Ap(u)).length,d,f=!1,p;for(r==null&&(i=a(p=o())),c=0;c<=l;++c)!(c<l&&n(d=u[c],c,u))===f&&((f=!f)?i.lineStart():i.lineEnd()),f&&i.point(+e(d,c,u),+t(d,c,u));if(p)return i=null,p+""||null}return s.x=function(u){return arguments.length?(e=typeof u=="function"?u:ut(+u),s):e},s.y=function(u){return arguments.length?(t=typeof u=="function"?u:ut(+u),s):t},s.defined=function(u){return arguments.length?(n=typeof u=="function"?u:ut(!!u),s):n},s.curve=function(u){return arguments.length?(a=u,r!=null&&(i=a(r)),s):a},s.context=function(u){return arguments.length?(u==null?r=i=null:i=a(r=u),s):r},s}function bL(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function xL(e){return e}function _L(){var e=xL,t=bL,n=null,r=ut(0),a=ut(Ls),i=ut(0);function o(s){var u,c=(s=Ap(s)).length,l,d,f=0,p=new Array(c),m=new Array(c),g=+r.apply(this,arguments),v=Math.min(Ls,Math.max(-Ls,a.apply(this,arguments)-g)),x,w=Math.min(Math.abs(v)/c,i.apply(this,arguments)),b=w*(v<0?-1:1),T;for(u=0;u<c;++u)(T=m[p[u]=u]=+e(s[u],u,s))>0&&(f+=T);for(t!=null?p.sort(function(_,C){return t(m[_],m[C])}):n!=null&&p.sort(function(_,C){return n(s[_],s[C])}),u=0,d=f?(v-c*b)/f:0;u<c;++u,g=x)l=p[u],T=m[l],x=g+(T>0?T*d:0)+b,m[l]={data:s[l],index:u,value:T,startAngle:g,endAngle:x,padAngle:w};return m}return o.value=function(s){return arguments.length?(e=typeof s=="function"?s:ut(+s),o):e},o.sortValues=function(s){return arguments.length?(t=s,n=null,o):t},o.sort=function(s){return arguments.length?(n=s,t=null,o):n},o.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:ut(+s),o):r},o.endAngle=function(s){return arguments.length?(a=typeof s=="function"?s:ut(+s),o):a},o.padAngle=function(s){return arguments.length?(i=typeof s=="function"?s:ut(+s),o):i},o}function Lr(){}function Oc(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function dl(e){this._context=e}dl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Oc(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Oc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function wL(e){return new dl(e)}function L2(e){this._context=e}L2.prototype={areaStart:Lr,areaEnd:Lr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Oc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function TL(e){return new L2(e)}function U2(e){this._context=e}U2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Oc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function CL(e){return new U2(e)}function B2(e,t){this._basis=new dl(e),this._beta=t}B2.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],a=t[0],i=e[n]-r,o=t[n]-a,s=-1,u;++s<=n;)u=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+u*i),this._beta*t[s]+(1-this._beta)*(a+u*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const kL=function e(t){function n(r){return t===1?new dl(r):new B2(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function Ec(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function jp(e,t){this._context=e,this._k=(1-t)/6}jp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Ec(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Ec(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const SL=function e(t){function n(r){return new jp(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Pp(e,t){this._context=e,this._k=(1-t)/6}Pp.prototype={areaStart:Lr,areaEnd:Lr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Ec(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const OL=function e(t){function n(r){return new Pp(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Dp(e,t){this._context=e,this._k=(1-t)/6}Dp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ec(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const EL=function e(t){function n(r){return new Dp(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Ip(e,t,n){var r=e._x1,a=e._y1,i=e._x2,o=e._y2;if(e._l01_a>Bt){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,a=(a*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>Bt){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,l=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*c+e._x1*e._l23_2a-t*e._l12_2a)/l,o=(o*c+e._y1*e._l23_2a-n*e._l12_2a)/l}e._context.bezierCurveTo(r,a,i,o,e._x2,e._y2)}function W2(e,t){this._context=e,this._alpha=t}W2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Ip(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const $L=function e(t){function n(r){return t?new W2(r,t):new jp(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function z2(e,t){this._context=e,this._alpha=t}z2.prototype={areaStart:Lr,areaEnd:Lr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Ip(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const ML=function e(t){function n(r){return t?new z2(r,t):new Pp(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function H2(e,t){this._context=e,this._alpha=t}H2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ip(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const RL=function e(t){function n(r){return t?new H2(r,t):new Dp(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function V2(e){this._context=e}V2.prototype={areaStart:Lr,areaEnd:Lr,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function AL(e){return new V2(e)}function q0(e){return e<0?-1:1}function Y0(e,t,n){var r=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(r||a<0&&-0),o=(n-e._y1)/(a||r<0&&-0),s=(i*a+o*r)/(r+a);return(q0(i)+q0(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(s))||0}function G0(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function od(e,t,n){var r=e._x0,a=e._y0,i=e._x1,o=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,a+s*t,i-s,o-s*n,i,o)}function $c(e){this._context=e}$c.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:od(this,this._t0,G0(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,od(this,G0(this,n=Y0(this,e,t)),n);break;default:od(this,this._t0,n=Y0(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function q2(e){this._context=new Y2(e)}(q2.prototype=Object.create($c.prototype)).point=function(e,t){$c.prototype.point.call(this,t,e)};function Y2(e){this._context=e}Y2.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,a,i){this._context.bezierCurveTo(t,e,r,n,i,a)}};function jL(e){return new $c(e)}function PL(e){return new q2(e)}function G2(e){this._context=e}G2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Z0(e),a=Z0(t),i=0,o=1;o<n;++i,++o)this._context.bezierCurveTo(r[0][i],a[0][i],r[1][i],a[1][i],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Z0(e){var t,n=e.length-1,r,a=new Array(n),i=new Array(n),o=new Array(n);for(a[0]=0,i[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)a[t]=1,i[t]=4,o[t]=4*e[t]+2*e[t+1];for(a[n-1]=2,i[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=a[t]/i[t-1],i[t]-=r,o[t]-=r*o[t-1];for(a[n-1]=o[n-1]/i[n-1],t=n-2;t>=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[n-1]=(e[n]+a[n-1])/2,t=0;t<n-1;++t)i[t]=2*e[t+1]-a[t+1];return[a,i]}function DL(e){return new G2(e)}function fl(e,t){this._context=e,this._t=t}fl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function IL(e){return new fl(e,.5)}function NL(e){return new fl(e,0)}function FL(e){return new fl(e,1)}function K0(e,t){if((o=e.length)>1)for(var n=1,r,a,i=e[t[0]],o,s=i.length;n<o;++n)for(a=i,i=e[t[n]],r=0;r<s;++r)i[r][1]+=i[r][0]=isNaN(a[r][1])?a[r][0]:a[r][1]}function X0(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function LL(e,t){return e[t]}function UL(e){const t=[];return t.key=e,t}function BL(){var e=ut([]),t=X0,n=K0,r=LL;function a(i){var o=Array.from(e.apply(this,arguments),UL),s,u=o.length,c=-1,l;for(const d of i)for(s=0,++c;s<u;++s)(o[s][c]=[0,+r(d,o[s].key,c,i)]).data=d;for(s=0,l=Ap(t(o));s<u;++s)o[l[s]].index=s;return n(o,l),o}return a.keys=function(i){return arguments.length?(e=typeof i=="function"?i:ut(Array.from(i)),a):e},a.value=function(i){return arguments.length?(r=typeof i=="function"?i:ut(+i),a):r},a.order=function(i){return arguments.length?(t=i==null?X0:typeof i=="function"?i:ut(Array.from(i)),a):t},a.offset=function(i){return arguments.length?(n=i??K0,a):n},a}function WL(e,t){if((u=e.length)>0)for(var n,r=0,a,i,o,s,u,c=e[t[0]].length;r<c;++r)for(o=s=0,n=0;n<u;++n)(i=(a=e[t[n]][r])[1]-a[0])>0?(a[0]=o,a[1]=o+=i):i<0?(a[1]=s,a[0]=s+=i):(a[0]=0,a[1]=i)}var zL=is,HL=Gx,VL=wi;function qL(e,t,n){for(var r=-1,a=t.length,i={};++r<a;){var o=t[r],s=zL(e,o);n(s,o)&&HL(i,VL(o,e),s)}return i}var YL=qL;function GL(e,t){return e!=null&&t in Object(e)}var ZL=GL,KL=wi,XL=Tu,JL=cn,QL=Su,eU=Xh,tU=Ti;function nU(e,t,n){t=KL(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var o=tU(t[r]);if(!(i=e!=null&&n(e,o)))break;e=e[o]}return i||++r!=a?i:(a=e==null?0:e.length,!!a&&eU(a)&&QL(o,a)&&(JL(e)||XL(e)))}var rU=nU,aU=ZL,iU=rU;function oU(e,t){return e!=null&&iU(e,t,aU)}var Z2=oU,sU=YL,cU=Z2;function uU(e,t){return sU(e,t,function(n,r){return cU(e,r)})}var lU=uU;function dU(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var Np=dU,J0=gi,fU=Tu,hU=cn,Q0=J0?J0.isConcatSpreadable:void 0;function pU(e){return hU(e)||fU(e)||!!(Q0&&e&&e[Q0])}var mU=pU,gU=Np,vU=mU;function K2(e,t,n,r,a){var i=-1,o=e.length;for(n||(n=vU),a||(a=[]);++i<o;){var s=e[i];t>0&&n(s)?t>1?K2(s,t-1,n,r,a):gU(a,s):r||(a[a.length]=s)}return a}var X2=K2,yU=X2;function bU(e){var t=e==null?0:e.length;return t?yU(e,1):[]}var xU=bU,_U=xU,wU=Wx,TU=zx;function CU(e){return TU(wU(e,void 0,_U),e+"")}var J2=CU,kU=lU,SU=J2,OU=SU(function(e,t){return e==null?{}:kU(e,t)}),EU=OU;const $U=Tt(EU);function MU(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var RU=MU,AU=Mp,jU=RU,PU=Rp,DU=1,IU=2;function NU(e,t,n,r,a,i){var o=n&DU,s=e.length,u=t.length;if(s!=u&&!(o&&u>s))return!1;var c=i.get(e),l=i.get(t);if(c&&l)return c==t&&l==e;var d=-1,f=!0,p=n&IU?new AU:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var m=e[d],g=t[d];if(r)var v=o?r(g,m,d,t,e,i):r(m,g,d,e,t,i);if(v!==void 0){if(v)continue;f=!1;break}if(p){if(!jU(t,function(x,w){if(!PU(p,w)&&(m===x||a(m,x,n,r,i)))return p.push(w)})){f=!1;break}}else if(!(m===g||a(m,g,n,r,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var Q2=NU;function FU(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}var LU=FU;function UU(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Fp=UU,ev=gi,tv=Rx,BU=ns,WU=Q2,zU=LU,HU=Fp,VU=1,qU=2,YU="[object Boolean]",GU="[object Date]",ZU="[object Error]",KU="[object Map]",XU="[object Number]",JU="[object RegExp]",QU="[object Set]",eB="[object String]",tB="[object Symbol]",nB="[object ArrayBuffer]",rB="[object DataView]",nv=ev?ev.prototype:void 0,sd=nv?nv.valueOf:void 0;function aB(e,t,n,r,a,i,o){switch(n){case rB:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case nB:return!(e.byteLength!=t.byteLength||!i(new tv(e),new tv(t)));case YU:case GU:case XU:return BU(+e,+t);case ZU:return e.name==t.name&&e.message==t.message;case JU:case eB:return e==t+"";case KU:var s=zU;case QU:var u=r&VU;if(s||(s=HU),e.size!=t.size&&!u)return!1;var c=o.get(e);if(c)return c==t;r|=qU,o.set(e,t);var l=WU(s(e),s(t),r,a,i,o);return o.delete(e),l;case tB:if(sd)return sd.call(e)==sd.call(t)}return!1}var iB=aB,oB=Np,sB=cn;function cB(e,t,n){var r=t(e);return sB(e)?r:oB(r,n(e))}var e_=cB;function uB(e,t){for(var n=-1,r=e==null?0:e.length,a=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[a++]=o)}return i}var t_=uB;function lB(){return[]}var n_=lB,dB=t_,fB=n_,hB=Object.prototype,pB=hB.propertyIsEnumerable,rv=Object.getOwnPropertySymbols,mB=rv?function(e){return e==null?[]:(e=Object(e),dB(rv(e),function(t){return pB.call(e,t)}))}:fB,Lp=mB,gB=Px,vB=gB(Object.keys,Object),yB=vB,bB=Kh,xB=yB,_B=Object.prototype,wB=_B.hasOwnProperty;function TB(e){if(!bB(e))return xB(e);var t=[];for(var n in Object(e))wB.call(e,n)&&n!="constructor"&&t.push(n);return t}var CB=TB,kB=Ux,SB=CB,OB=xi;function EB(e){return OB(e)?kB(e):SB(e)}var ss=EB,$B=e_,MB=Lp,RB=ss;function AB(e){return $B(e,RB,MB)}var r_=AB,av=r_,jB=1,PB=Object.prototype,DB=PB.hasOwnProperty;function IB(e,t,n,r,a,i){var o=n&jB,s=av(e),u=s.length,c=av(t),l=c.length;if(u!=l&&!o)return!1;for(var d=u;d--;){var f=s[d];if(!(o?f in t:DB.call(t,f)))return!1}var p=i.get(e),m=i.get(t);if(p&&m)return p==t&&m==e;var g=!0;i.set(e,t),i.set(t,e);for(var v=o;++d<u;){f=s[d];var x=e[f],w=t[f];if(r)var b=o?r(w,x,f,t,e,i):r(x,w,f,e,t,i);if(!(b===void 0?x===w||a(x,w,n,r,i):b)){g=!1;break}v||(v=f=="constructor")}if(g&&!v){var T=e.constructor,_=t.constructor;T!=_&&"constructor"in e&&"constructor"in t&&!(typeof T=="function"&&T instanceof T&&typeof _=="function"&&_ instanceof _)&&(g=!1)}return i.delete(e),i.delete(t),g}var NB=IB,FB=_a,LB=Qn,UB=FB(LB,"DataView"),BB=UB,WB=_a,zB=Qn,HB=WB(zB,"Promise"),VB=HB,qB=_a,YB=Qn,GB=qB(YB,"Set"),a_=GB,ZB=_a,KB=Qn,XB=ZB(KB,"WeakMap"),JB=XB,Cf=BB,kf=Vh,Sf=VB,Of=a_,Ef=JB,i_=zr,ki=Sx,iv="[object Map]",QB="[object Object]",ov="[object Promise]",sv="[object Set]",cv="[object WeakMap]",uv="[object DataView]",eW=ki(Cf),tW=ki(kf),nW=ki(Sf),rW=ki(Of),aW=ki(Ef),Gr=i_;(Cf&&Gr(new Cf(new ArrayBuffer(1)))!=uv||kf&&Gr(new kf)!=iv||Sf&&Gr(Sf.resolve())!=ov||Of&&Gr(new Of)!=sv||Ef&&Gr(new Ef)!=cv)&&(Gr=function(e){var t=i_(e),n=t==QB?e.constructor:void 0,r=n?ki(n):"";if(r)switch(r){case eW:return uv;case tW:return iv;case nW:return ov;case rW:return sv;case aW:return cv}return t});var hl=Gr,cd=wu,iW=Q2,oW=iB,sW=NB,lv=hl,dv=cn,fv=Cu,cW=ep,uW=1,hv="[object Arguments]",pv="[object Array]",Ss="[object Object]",lW=Object.prototype,mv=lW.hasOwnProperty;function dW(e,t,n,r,a,i){var o=dv(e),s=dv(t),u=o?pv:lv(e),c=s?pv:lv(t);u=u==hv?Ss:u,c=c==hv?Ss:c;var l=u==Ss,d=c==Ss,f=u==c;if(f&&fv(e)){if(!fv(t))return!1;o=!0,l=!1}if(f&&!l)return i||(i=new cd),o||cW(e)?iW(e,t,n,r,a,i):oW(e,t,u,n,r,a,i);if(!(n&uW)){var p=l&&mv.call(e,"__wrapped__"),m=d&&mv.call(t,"__wrapped__");if(p||m){var g=p?e.value():e,v=m?t.value():t;return i||(i=new cd),a(g,v,n,r,i)}}return f?(i||(i=new cd),sW(e,t,n,r,a,i)):!1}var fW=dW,hW=fW,gv=Un;function o_(e,t,n,r,a){return e===t?!0:e==null||t==null||!gv(e)&&!gv(t)?e!==e&&t!==t:hW(e,t,n,r,o_,a)}var Up=o_,pW=Up;function mW(e,t){return pW(e,t)}var gW=mW;const vW=Tt(gW);var yW={background:"transparent",text:{fontFamily:"sans-serif",fontSize:11,fill:"#333333",outlineWidth:0,outlineColor:"transparent",outlineOpacity:1},axis:{domain:{line:{stroke:"transparent",strokeWidth:1}},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{}},legend:{text:{fontSize:12}}},grid:{line:{stroke:"#dddddd",strokeWidth:1}},legends:{hidden:{symbol:{fill:"#333333",opacity:.6},text:{fill:"#333333",opacity:.6}},text:{},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{fontSize:10}},title:{text:{}}},labels:{text:{}},markers:{lineColor:"#000000",lineStrokeWidth:1,text:{}},dots:{text:{}},tooltip:{container:{background:"white",color:"inherit",fontSize:"inherit",borderRadius:"2px",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.25)",padding:"5px 9px"},basic:{whiteSpace:"pre",display:"flex",alignItems:"center"},chip:{marginRight:7},table:{},tableCell:{padding:"3px 5px"},tableCellValue:{fontWeight:"bold"}},crosshair:{line:{stroke:"#000000",strokeWidth:1,strokeOpacity:.75,strokeDasharray:"6 6"}},annotations:{text:{fontSize:13,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},link:{stroke:"#000000",strokeWidth:1,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},outline:{fill:"none",stroke:"#000000",strokeWidth:2,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},symbol:{fill:"#000000",outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1}}};function In(){return In=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},In.apply(this,arguments)}function Bp(e,t){if(e==null)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}var bW=["axis.ticks.text","axis.legend.text","legends.title.text","legends.text","legends.ticks.text","legends.title.text","labels.text","dots.text","markers.text","annotations.text"],xW=function(e,t){return In({},t,e)},_W=function(e,t){var n=Uj({},e,t);return bW.forEach(function(r){Ki(n,r,xW(pr(n,r),n.text))}),n},s_=h.createContext(),c_=function(e){var t=e.children,n=e.animate,r=n===void 0||n,a=e.config,i=a===void 0?"default":a,o=h.useMemo(function(){var s=yD(i)?Bh[i]:i;return{animate:r,config:s}},[r,i]);return y.jsx(s_.Provider,{value:o,children:t})},vv={animate:O.bool,motionConfig:O.oneOfType([O.oneOf(Object.keys(Bh)),O.shape({mass:O.number,tension:O.number,friction:O.number,clamp:O.bool,precision:O.number,velocity:O.number,duration:O.number,easing:O.func})])};c_.propTypes={children:O.node.isRequired,animate:vv.animate,config:vv.motionConfig};var un=function(){return h.useContext(s_)},wW=function(e){var t=un(),n=t.animate,r=t.config,a=function(s){var u=h.useRef();return h.useEffect(function(){u.current=s},[s]),u.current}(e),i=h.useMemo(function(){return Qx(a,e)},[a,e]),o=vr({from:{value:0},to:{value:1},reset:!0,config:r,immediate:!n}).value;return Fr(o,i)},TW={nivo:["#d76445","#f47560","#e8c1a0","#97e3d5","#61cdbb","#00b0a7"],BrBG:ye(Nu),PRGn:ye(Fu),PiYG:ye(Lu),PuOr:ye(Uu),RdBu:ye(Bu),RdGy:ye(Wu),RdYlBu:ye(zu),RdYlGn:ye(Hu),spectral:ye(Vu),blues:ye(al),greens:ye(il),greys:ye(ol),oranges:ye(ul),purples:ye(sl),reds:ye(cl),BuGn:ye(qu),BuPu:ye(Yu),GnBu:ye(Gu),OrRd:ye(Zu),PuBuGn:ye(Ku),PuBu:ye(Xu),PuRd:ye(Ju),RdPu:ye(Qu),YlGnBu:ye(el),YlGn:ye(tl),YlOrBr:ye(nl),YlOrRd:ye(rl)},CW=Object.keys(TW);ye(Nu),ye(Fu),ye(Lu),ye(Uu),ye(Bu),ye(Wu),ye(zu),ye(Hu),ye(Vu),ye(al),ye(il),ye(ol),ye(ul),ye(sl),ye(cl),ye(qu),ye(Yu),ye(Gu),ye(Zu),ye(Ku),ye(Xu),ye(Ju),ye(Qu),ye(el),ye(tl),ye(nl),ye(rl);O.oneOfType([O.oneOf(CW),O.func,O.arrayOf(O.string)]);var kW={basis:wL,basisClosed:TL,basisOpen:CL,bundle:kL,cardinal:SL,cardinalClosed:OL,cardinalOpen:EL,catmullRom:$L,catmullRomClosed:ML,catmullRomOpen:RL,linear:F2,linearClosed:AL,monotoneX:jL,monotoneY:PL,natural:DL,step:IL,stepAfter:FL,stepBefore:NL},Wp=Object.keys(kW);Wp.filter(function(e){return e.endsWith("Closed")});P2(Wp,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");P2(Wp,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");O.shape({top:O.number,right:O.number,bottom:O.number,left:O.number}).isRequired;var SW=["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"];O.oneOf(SW);Jr($p);var OW={top:0,right:0,bottom:0,left:0},zp=function(e,t,n){return n===void 0&&(n={}),h.useMemo(function(){var r=In({},OW,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}},[e,t,n.top,n.right,n.bottom,n.left])},u_=function(){var e=h.useRef(null),t=h.useState({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],a=h.useState(function(){return typeof ResizeObserver>"u"?null:new ResizeObserver(function(i){var o=i[0];return r(o.contentRect)})})[0];return h.useEffect(function(){return e.current&&a!==null&&a.observe(e.current),function(){a!==null&&a.disconnect()}},[]),[e,n]},EW=function(e){return h.useMemo(function(){return _W(yW,e)},[e])},$W=function(e){return typeof e=="function"?e:typeof e=="string"?e.indexOf("time:")===0?Iu(e.slice("5")):os(e):function(t){return""+t}},pl=function(e){return h.useMemo(function(){return $W(e)},[e])},l_=h.createContext(),MW={},d_=function(e){var t=e.theme,n=t===void 0?MW:t,r=e.children,a=EW(n);return y.jsx(l_.Provider,{value:a,children:r})};d_.propTypes={children:O.node.isRequired,theme:O.object};var lt=function(){return h.useContext(l_)},RW=["outlineWidth","outlineColor","outlineOpacity"],Hp=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,Bp(e,RW)},f_=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?h.cloneElement(r,{},t):t};f_.propTypes={children:O.node.isRequired,condition:O.bool.isRequired,wrapper:O.element.isRequired};var AW={position:"relative"},ml=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,a=r===void 0||r,i=e.isInteractive,o=i===void 0||i,s=e.animate,u=e.motionConfig,c=h.useRef(null);return y.jsx(d_,{theme:n,children:y.jsx(c_,{animate:s,config:u,children:y.jsx(w8,{container:c,children:y.jsxs(f_,{condition:a,wrapper:y.jsx("div",{style:AW,ref:c}),children:[t,o&&y.jsx(_8,{})]})})})})};ml.propTypes={children:O.element.isRequired,isInteractive:O.bool,renderWrapper:O.bool,theme:O.object,animate:O.bool,motionConfig:O.string};O.func.isRequired,O.bool,O.bool,O.object.isRequired,O.bool.isRequired,O.string;var gl=function(e){var t=e.children,n=u_(),r=n[0],a=n[1],i=a.width>0&&a.height>0;return y.jsx("div",{ref:r,style:{width:"100%",height:"100%"},children:i&&t({width:a.width,height:a.height})})};gl.propTypes={children:O.func.isRequired};var jW=["id","colors"],h_=function(e){var t=e.id,n=e.colors,r=Bp(e,jW);return y.jsx("linearGradient",In({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map(function(a){var i=a.offset,o=a.color,s=a.opacity;return y.jsx("stop",{offset:i+"%",stopColor:o,stopOpacity:s!==void 0?s:1},i)})}))};h_.propTypes={id:O.string.isRequired,colors:O.arrayOf(O.shape({offset:O.number.isRequired,color:O.string.isRequired,opacity:O.number})).isRequired,gradientTransform:O.string};var p_={linearGradient:h_},zi={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},$f=h.memo(function(e){var t=e.id,n=e.background,r=n===void 0?zi.background:n,a=e.color,i=a===void 0?zi.color:a,o=e.size,s=o===void 0?zi.size:o,u=e.padding,c=u===void 0?zi.padding:u,l=e.stagger,d=l===void 0?zi.stagger:l,f=s+c,p=s/2,m=c/2;return d===!0&&(f=2*s+2*c),y.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[y.jsx("rect",{width:f,height:f,fill:r}),y.jsx("circle",{cx:m+p,cy:m+p,r:p,fill:i}),d&&y.jsx("circle",{cx:1.5*c+s+p,cy:1.5*c+s+p,r:p,fill:i})]})});$f.displayName="PatternDots",$f.propTypes={id:O.string.isRequired,color:O.string.isRequired,background:O.string.isRequired,size:O.number.isRequired,padding:O.number.isRequired,stagger:O.bool.isRequired};var kn=function(e){return e*Math.PI/180},vl=function(e){return 180*e/Math.PI},PW=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2},oa=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},DW=function(e){var t=e%360;return t<0&&(t+=360),t},IW={svg:{align:{left:"start",center:"middle",right:"end",start:"start",middle:"middle",end:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right",start:"left",middle:"center",end:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},Hi={spacing:5,rotation:0,background:"#000000",color:"#ffffff",lineWidth:2},Mf=h.memo(function(e){var t=e.id,n=e.spacing,r=n===void 0?Hi.spacing:n,a=e.rotation,i=a===void 0?Hi.rotation:a,o=e.background,s=o===void 0?Hi.background:o,u=e.color,c=u===void 0?Hi.color:u,l=e.lineWidth,d=l===void 0?Hi.lineWidth:l,f=Math.round(i)%360,p=Math.abs(r);f>180?f-=360:f>90?f-=180:f<-180?f+=360:f<-90&&(f+=180);var m,g=p,v=p;return f===0?m=`
254
254
  M 0 0 L `+g+` 0
255
255
  M 0 `+v+" L "+g+" "+v+`
256
256
  `:f===90?m=`